0.0.4 • Published 2 years ago
@big-whale-labs/seal-hub-memorabilia-token-contracts v0.0.4
Contracts for SealHub memorabilia token
Usage
- Clone the repository with
git clone git@github.com:BigWhaleLabs/seal-hub-memorabilia-token-contracts - Install the dependencies with
yarn - Add environment variables to your
.envfile - Run
yarn download-ptauto download the correct ptau file - Check out
yarn generate-inputsscript to get inputs - Run
yarn compileto compile the circom circuits, create proof, verify proof, export verifier as a solidity Verifier.sol - Run
yarn testto run the test suits - Use the artifacts from the
publicfolder in snarkjs - Run
yarn deployto deploy the verifier smart contracts to blockchain - Run
yarn releaseto publish an NPM package with typings that can later be used in any of your JS/TS projects
Environment variables
| Name | Description |
|---|---|
ETHERSCAN_API_KEY | Etherscan API key |
ETH_RPC | Ethereum RPC URL |
CONTRACT_OWNER_PRIVATE_KEY | Private key of the contract owner |
Also check out the .env.example file for more information.
Available scripts
yarn build— compiles the contracts' ts interfaces to thetypechaindirectoryyarn compile- compiles the circom circuit, creates proof, verifies proof, exports verifier as a solidity file, exports artifacts to thepublicdirectoryyarn test— runs the test suiteyarn deploy— deploys the contract to the networkyarn eth-lint— runs the linter for the solidity contractsyarn lint— runs all the lintersyarn prettify— prettifies the code in th projectyarn release— relases thetypechaindirectory to NPMyarn download-ptau— downloads the correct ptau file