Skip to content

BigWhaleLabs/seal-cred-posts-contract

Repository files navigation

Seal Cred Posts contract

Used to save post data on the blockchain.

Usage

  1. Clone the repository with git clone [email protected]:BigWhaleLabs/seal-cred-posts-contract
  2. Install the dependencies with yarn
  3. Add environment vareables to your .env file
  4. Run the scripts below

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 to deploy the contracts
COINMARKETCAP_API_KEY Coinmarketcap API key

Also check out the .env.sample file for more information.

Available scripts

  • yarn build — compiles the contract ts interface to the typechain directory
  • yarn test — runs the test suite
  • yarn deploy — deploys the contract to the network
  • yarn eth-lint — runs the linter for the solidity contract
  • yarn lint — runs all the linters
  • yarn prettify — prettifies the code in th project
  • yarn release — relases the typechain directory to NPM