Closed lumtis closed 1 month ago
I propose we:
Ideally, all the helpers in the toolkit work with localnet, but that may be a larger refactoring.
As a quick workaround, we can modify the deploy and interact task to accept custom system contract/gateway addresses.
Localnet is designed for the new architecture with Gateway.
What if we introduced npx hardhat universal
that generates a universal app template that is compatible with localnet as well as testnet/mainnet when it's shipped.
I agree on the idea to have the functionality available published on NPM and not having to clone this repo. I think as a first step we could introduce a read me here to provide some info to test the contract
that is compatible with localnet as well as testnet/mainnet when it's shipped.
What do you mean by compatible, the app is scaffolded with a script to deploy the smart contract to the localnet, and to a live network?
@lumtis I mean the current npx hardhat omnichain
generates a contract and HH tasks for interacting with the contract using TSS and custody contract. We can keep it right now, because that's how it works on the live network.
I propose adding npx hardhat universal
that is compatible with Gateway and will eventually replace the omnichain
command. Since Gateway is not on testnet yet, this will also be an opportunity to make the deploy
/interact
tasks compatible with localnet.
We now have localnet
Local dev environment has been implemented to https://github.com/zeta-chain/protocol-contracts/pull/202
The goal of this issue is to wrap up the current environment to make it already promotable and usable for external devs.
cc @fadeev if you have any inputs