The following assumes the use of node@>=14
.
yarn install
yarn compile
Create a .env
file, remember to replace placeholders with real value.
cat > .env <<EOF
DEPLOYER_PRIVATE_KEY=< replace with your private key >
RPC_URL=< polyjuice web3 rpc >
NETWORK_SUFFIX=< gw-testnet or gw-mainnet >
ROLLUP_TYPE_HASH=< replace with godwoken rollup type hash >
ETH_ACCOUNT_LOCK_CODE_HASH=< replace with godwoken eth-account-lock code hash >
YOK_ADDRESS=< replace with YOK address >
EOF
Then compile and deploy.
yarn compile
yarn deploy