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
@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
{
"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 / 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
@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
{
"data": "aa"
}
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
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

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

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