This repo contains Warp and TypeScript implementation of SmartWeave contract standards. Contracts are written in Rust(Wasm runtime) or TypeScript(or both).
- Contracts
- Examples
Run: yarn
Select contract you want to build and run:
yarn build:[CONTRACT_NAME]
eg.:
yarn build:erc20
Select example contract you want to build and run
yarn build:example:[EXAMPLE_CONTRACT_NAME]
eg.:
yarn build:example:staking
Select contract you want to test and run:
yarn test:[CONTRACT_NAME]
eg.:
yarn test:erc20
To run deploy and tests scripts select contract and script and run:
yarn run workspace:[CONTRACT_WORKSPACE_NAME] scripts/[SCRIPT-NAME]
eg.:
yarn run workspace:warp-erc scripts/deploy.js
All of the testing scripts should be invoked with a --network
parameter
specifying one of the 3 possible networks:
- mainnet
- testnet
- local