Skip to content

Instantly share code, notes, and snippets.

Avatar

FLCoder flcoder

View GitHub Profile
View single dapp chain (sdc)
Just going to leave this here... the future will see hundreds of thousands of single dapp chains.
Different services have different transactional demand.
Having multiple services on the same chain is like forcing people to pay for jet fuel whether
they are flying across the planet or just mowing their lawn.
@flcoder
flcoder / GenericNFT.sol
Created Mar 6, 2021
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.0+commit.c7dfd78e.js&optimize=false&runs=200&gist=
View GenericNFT.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
pragma experimental ABIEncoderV2;
import "https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-contracts/master/contracts/token/ERC721/ERC721.sol";
import "https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-contracts/master/contracts/utils/Counters.sol";
contract GenericNFT is ERC721 {
@flcoder
flcoder / README.txt
Created Mar 6, 2021
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.0+commit.c7dfd78e.js&optimize=false&runs=200&gist=
View README.txt
REMIX EXAMPLE PROJECT
Remix example project is present when Remix loads very first time or there are no files existing in the File Explorer.
It contains 3 directories:
1. 'contracts': Holds three contracts with different complexity level, denoted with number prefix in file name.
2. 'scripts': Holds two scripts to deploy a contract. It is explained below.
3. 'tests': Contains one test file for 'Ballot' contract with unit tests in Solidity.
SCRIPTS
@flcoder
flcoder / README.txt
Created Mar 6, 2021
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.0+commit.c7dfd78e.js&optimize=false&runs=200&gist=
View README.txt
REMIX EXAMPLE PROJECT
Remix example project is present when Remix loads very first time or there are no files existing in the File Explorer.
It contains 3 directories:
1. 'contracts': Holds three contracts with different complexity level, denoted with number prefix in file name.
2. 'scripts': Holds two scripts to deploy a contract. It is explained below.
3. 'tests': Contains one test file for 'Ballot' contract with unit tests in Solidity.
SCRIPTS
View README.md
const NUM_OPS = 300000
const NUM_ELS = 100
const ops = [] 
const {random, floor} = Math

let arr, set

for(let i = 0; i < NUM_OPS; ++i) ops.push([random() < 0.5, floor(random()*NUM_ELS)])
View keybase.md

Keybase proof

I hereby claim:

  • I am flcoder on github.
  • I am flcoder (https://keybase.io/flcoder) on keybase.
  • I have a public key ASCm8O724_-ffPZR815D71N0gBI9XnwqL5toy8Yi0bcCXAo

To claim this, I am signing this object: