Add a .env
file (to the root project directory) with your MNEMONIC="your mnemonic"
and fund your wallet in order to deploy!
- Deploy two contracts:
npx hardhat --network ethereum-sepolia deploy --tags SpheraKitBag
npx hardhat --network ethereum-sepolia deploy --tags SpheraHead
npx hardhat --network manta-testnet deploy --tags SpheraHead
- Set the "trusted remotes", so each contract can send & receive messages from one another, and only one another.
npx hardhat --network ethereum-sepolia setTrustedRemote --target-network manta-testnet --contract SpheraHead
npx hardhat --network manta-testnet setTrustedRemote --target-network ethereum-sepolia --contract SpheraHead
- Set the min gas required on the destination
npx hardhat --network ethereum-sepolia setMinDstGas --target-network manta-testnet --contract SpheraHead --packet-type 1 --min-gas 240000
npx hardhat --network manta-testnet setMinDstGas --target-network ethereum-sepolia --contract SpheraHead --packet-type 1 --min-gas 240000
- Send ONFT across chains
npx hardhat --network ethereum-sepolia SpheraHeadSend --target-network manta-testnet --token-id 201 --contract SpheraHead
npx hardhat --network manta-testnet SpheraHeadSend --target-network ethereum-sepolia --token-id 200 --contract SpheraHead