You want your token to have fixed max supply (NFT is just token with 1 max supply).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Sources flattened with hardhat v2.4.3 https://hardhat.org | |
// File @openzeppelin/contracts/token/ERC20/IERC20.sol@v4.2.0 | |
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.0; | |
/** | |
* @dev Interface of the ERC20 standard as defined in the EIP. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[package] | |
name = "async-benchmark" | |
version = "0.1.0" | |
authors = ["yihuang <yi.codeplayer@gmail.com>"] | |
edition = "2018" | |
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | |
[dependencies] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import sys | |
if len(sys.argv) < 3: | |
print( | |
"""add_genesis_accounts.py accounts.json path/to/genesis.json | |
new genesis file is print to stdout | |
""", | |
file=sys.stderr, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import base64 | |
import json | |
# import hashlib | |
import sys | |
import bech32 | |
def clear_staking(genesis): |
$ nix-env -i hello
installing 'hello-2.10'
these paths will be fetched (0.02 MiB download, 0.07 MiB unpacked):
/nix/store/mmlnjqg7gbr4w7xjlwj614z97kk1rvfv-hello-2.10
copying path '/nix/store/mmlnjqg7gbr4w7xjlwj614z97kk1rvfv-hello-2.10' from 'https://cache.nixos.org'...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[package] | |
name = "test-rust" | |
version = "0.1.0" | |
authors = ["yihuang <yi.codeplayer@gmail.com>"] | |
edition = "2018" | |
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | |
[dependencies] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# file generated from go.mod using vgo2nix (https://github.com/adisbladis/vgo2nix) | |
[ | |
{ | |
goPackagePath = "github.com/cespare/xxhash/v2"; | |
fetch = { | |
type = "git"; | |
url = "https://github.com/yihuang/test-golang-module-major-version"; | |
rev = "4a13e4bfd5a9"; | |
sha256 = "0i1bpw3v73jhwnpa8vv276qhy39fk6qhgyci0wng9mwr2pxfha5y"; | |
moduleDir = ""; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[package] | |
name = "open-rpc-test" | |
version = "0.1.0" | |
authors = ["yihuang <yi.codeplayer@gmail.com>"] | |
edition = "2018" | |
[dependencies] | |
schemars = "0.7" | |
serde = "1.0" | |
serde_json = "1.0" |