Skip to content

Instantly share code, notes, and snippets.

View flcoder's full-sized avatar

FLCoder flcoder

View GitHub Profile

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:

@flcoder
flcoder / README.md
Last active December 27, 2020 06:26
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)])
@flcoder
flcoder / README.txt
Created March 6, 2021 14:43
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=
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 March 6, 2021 14:44
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=
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 / GenericNFT.sol
Created March 6, 2021 14:46
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=
// 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 {
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.

Introduction

  • Concepts come in order of dependence.
  • Essentially, I try to explain something before I reference it.
  • If something doesn't make sense, move on and then come back to it and it will probably make more sense.

New Blockchain Concepts

  • Automated Block Hash Auction (ABHA)

  • Produces non-fungible items at designated block intervals.