Host chain is arbitrum_goerli
Some args are not needed within the CLI as it'll be asked live within the task execution
Note: make sure to get the latest deployments for tapioca-sdk by executing:
git submodule update --init
Deployment steps [UPDATED]:
- use
tapioca-mocks
to deploy WETHMock token on all chains- npx hardhat deployERC20Mock --network goerli --save
- use
tapioca-mocks
to deploy "native" tokens for each chain (WETH for goerli, ARB for arbitrum, MATIC for mumbai, AVAX for fuji, BNB for bsc testnet)npx hardhat deployERC20Mock --network goerli --save
- use
tap-token
to deploy TapOFT and export it to the SDKnpx hardhat deployTapOFT --network arbitrum_goerli
npx hardhat exportSDK
(make sure to first do a git pull on the submodule folder)
- use tap-token
npx hardhat setLZConfig --network <each network>
- for TapOFT
- use Tapioca-bar
npx hardhat deployFullStack --network arbitrum_goerli
npx hardhat deployLinkedChainStack --network <everything else>
npx hardhat setLZConfig --network <each network>
- for each token
- use TapiocaZ to deploy TapiocaWrapper to each chain
npx hardhat deployTapiocaWrapper --network arbitrum_goerli
- use TapiocaZ to deploy TOFT to each chain + linked TOFTs
npx hardhat deployTOFT --network
npx hardhat setLZConfig --is-toft --network
for each TOFT, for each chain
- deploy strategies for YB asset registration (for host chain, no need to deploy for USDO and Tap as these 2 are already registered from previous deployments)
npx hardhat deployEmptyStrats --type 0 --network
, for each chain, for each tokennpx hardhat deployEmptyStrats --type 1 --network
, for each chain, for each tokennpx hardhat deployEmptyStrats --type 2 --network
, for each chain, for each token
- register YB assets on Tapioca-bar by using
npx hardhat registerYbAssets --network
- deploy SGL market on Tapioca-bar by using
npx hardhat deploySGLMarket --network
- deploy empty strategy for the token you want to use
npx hardhat deployEmptyStrateg --type 3 --network arbitrum_goerli
- register yb asset
- deploy BB
npx hardhat deployBigBangMarket --network arbitrum_goerli
- Use
tap-token
repohh deployStack --network arbitrum_goerli
to deploy the entire stack on the native chainhh deployTapOFT --network fuji_avalanche
for linked chain