- Node.js v20.11.0
- run:
nvm use
- run:
- Yarn
- run:
npm install --global yarn
- run:
- To install dependencies:
yarn
- contracts: contains FunC contracts sources
- scripts: contains utilities scripts
- test: contains jest tests for FunC contracts
- wrappers: wrappers to interact with deployed contracts
- Place
<name>.fc
incontracts
folder - Run
yarn compile <name>
- If compilation succeeds you will have compilation results as
<name>.compiled.json
insidebuild
folder
- Select mainnet or testnet in
constants.ts
. - Run
yarn compile <name>
- Setup a wrapper of the contract in
wrappers
named as<Name>Contract.ts
- Run
yarn deploy <name>