Skip to content

Instantly share code, notes, and snippets.

@critesjosh
critesjosh / Cert721_ABI.json
Created Oct 11, 2019
mint a bunch of NFTs, waiting for each txn to process before sending the next one
View Cert721_ABI.json
[
{
"constant": false,
"inputs": [
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
View SimpleStorage.json
{
"contractName": "SimpleStorage",
"abi": [
{
"constant": false,
"inputs": [
{
"name": "x",
"type": "uint256"
}
@critesjosh
critesjosh / Non-transferable ERC 721
Last active Sep 27, 2019
This contract describes a non-transferable ERC 721 token with an update-able token URI data
View Non-transferable ERC 721
pragma solidity ^0.5.0;
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC721/ERC721MetadataMintable.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC721/ERC721Enumerable.sol";
contract Cert721 is ERC721MetadataMintable, ERC721Enumerable {
constructor (string memory name, string memory symbol)
public
ERC721Metadata(name, symbol)
View 721 Devcon V Scholar NFT metadata
{
"description": "This token certifies the holder as a graduate of the Devcon V Scholars program.",
"image": "https://i.ibb.co/mFz0Zjh/deva2019b-2.png",
"name": "Devcon V Scholar NFT",
"external_url": "https://medium.com/ethereum-foundation-devcon-scholars"
}
View 3box proof
This post links my 3Box profile to my Github account! Web3 social profiles by 3Box.
✅ did:muport:QmaBNA6ykghaKJVkLob3fiNtNF25EURzQUu7dez2dyi67y ✅
Create your profile today to start building social connection and trust online at https://3Box.io/
View ERC20Lockable.sol
pragma solidity ^0.5.0;
import "http://github.com/OpenZeppelin/openzeppelin-solidity/contracts/token/ERC20/ERC20.sol";
contract ERC20Lockable is ERC20 {
mapping (address => uint) unlockTime;
mapping (address => bool) isLocked;
uint lockDuration = 1000;
View keybase.md

Keybase proof

I hereby claim:

  • I am critesjosh on github.
  • I am critesjosh (https://keybase.io/critesjosh) on keybase.
  • I have a public key ASALHa0sxv6oOg3lRoNaBG2hCwHcVMGGUiXAbF4L-p0bFgo

To claim this, I am signing this object:

View 3boxVerify.txt
3Box is a social profiles network for web3. This post links my 3Box profile to my Github account!
✅ did:muport:Qma2o5oqaVY9hdyNKpdCfGCutgWiotrL9mN3aPWFjnZ8kN ✅
Create your profile today to start building social connection and trust online. https://3box.io/
@critesjosh
critesjosh / Optimized.sol
Created May 17, 2018
Optimizations to the Unoptimized.sol contract
View Optimized.sol
pragma solidity ^0.4.0;
contract Optimized {
bool oftenTrue = true;
bool oftenFalse = false;
uint loops = 0;
bytes32 constant statictext = "Hello world";
@critesjosh
critesjosh / Unoptimized.sol
Last active May 17, 2018
An unoptimized solidity contract
View Unoptimized.sol
pragma solidity ^0.4.0;
contract Unoptimized {
bool oftenTrue = true;
bool oftenFalse = false;
uint loops = 0;
string greeting;