Skip to content

Instantly share code, notes, and snippets.

View Man-Jain's full-sized avatar
🏖️
Working from home

Manank Patni Man-Jain

🏖️
Working from home
View GitHub Profile

Introduction

  1. What's new with the Metamask plugin
  • Permission System :- users are forced to consent to some truly excessive permissions
  • Plugin System :- important innovations are happening all around us, from scaling strategies, to new smart contract protocols, and many of these require interacting with a user’s accounts, and running a persistent script
  1. How this improves the extension

Hedera Composer Tutorial

Hedera provides a very accessible way for users to connect with and perform transactions on their favorite apps. This comes in the form of Composer, which is a browser extension of Hashing Systems. Composer provides users with a non-custodial crypto wallet from which users can easily manage their HBAR, making transactions, interacting with smart contracts, and buy Hashing Name Service domains, etc.

Note that it is currently available on only Google Chrome.

Composer also gives their developers an easy way to test their dapps on mainnet and testnet. They are making it a smooth experience to develop dapps on Hedera Platform.

You can learn more about how to get started with Composer here

pragma solidity ^0.5.0;
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/ownership/Ownable.sol";
/// @title Factory Contract for creating Uniswap Market for Tokens
/// @author Manank Patni
/// @notice The contract creates a uniswap factory taking token as input and also add inital liquidity
/// @dev Interface for ERC20 Token
pragma solidity ^0.5.0;
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/GSN/Context.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/IERC20.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/math/SafeMath.sol";
/**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
{
"data": "aa"
}
@Man-Jain
Man-Jain / pool.sh
Last active November 14, 2022 14:34
#!/bin/bash
apt-get install -y nodejs
apt-get install -y npm
npm install -g yarn
git clone https://github.com/KYVENetwork/node.git
cd node
yarn
yarn setup
wget -O /root/arweave.json $LINK_ARWEAVE_WALLET
@Man-Jain
Man-Jain / pool.sh
Last active December 12, 2022 11:25
echo "Downloading Kyve Linux Binary..."
wget https://github.com/KYVENetwork/kyvejs/releases/download/%40kyve%2Fkysor%401.0.0-beta.1/kysor-linux-x64.zip
unzip kysor-linux-x64.zip
mv kysor-linux-x64 kysor
chmod +x kysor
echo wget -O ./arweave.json $LINK_ARWEAVE_WALLET
wget -O ./arweave.json $LINK_ARWEAVE_WALLET
{
"anchor": {
"ethereum-rpc-url": "https://eg_infura_endpoint" // Replace with an Ethereum RPC endpoint to avoid rate limiting
},
"http-api": {
"cors-allowed-origins": [
".*"
]
},
"ipfs": {
@Man-Jain
Man-Jain / sui.sh
Last active December 23, 2022 13:30
curl -fLJO https://github.com/MystenLabs/sui-genesis/raw/main/devnet/genesis.blob
curl -o fullnode.yaml https://raw.githubusercontent.com/MystenLabs/sui/main/crates/sui-config/data/fullnode-template.yaml
/usr/local/bin/sui-node --config-path fullnode.yaml
@Man-Jain
Man-Jain / Public IPFS Gateway.md
Created January 20, 2023 12:08 — forked from NatoBoram/Public IPFS Gateway.md
The complete guide to hosting a public IPFS gateway

Hosting a public IPFS gateway

This guide assumes that you've used ssh before. If not, then you must read How to Set Up SSH Keys.

I'm also going to assume you've used ipfs before. If not, then take some time to discover IPFS with IPFS Desktop, IPFS Companion and go-ipfs!

Get a host

A public IPFS gateway can be hosted at home or on the cloud.