a7d133d063
* Integrate with contract manager for wormhole script * Remove deprecated scripts and more integration with contract manager * Remove cosmwasm tools store These configs are now held in the contract manager * Update docs on cosmwasm * Split cosmwasm package into 2 for fixing dependency issues * Fix cosmwasm README.md Co-authored-by: Ali Behjati <bahjatia@gmail.com> |
||
---|---|---|
.. | ||
src | ||
README.md | ||
package.json | ||
tsconfig.json |
README.md
How to add a new chain or contract
-
Add the chain information to contract manager
CosmWasmChains.yaml
. You can lookup for rpc endpoints in this repo. ThegasPrice
is theaverage_gas_price
of the chain + the chain tokendenom
(Available in chain-registrychain.json
file). -
If the wormhole contract is not deployed on the target chain run the following command:
npm run instantiate-wormhole -- --private-key <YOUR_PRIVATE_KEY_HEX> --deploy <stable or edge> --chain <chain id>
You can re-build the wormhole contract using the scripts given in
wormhole-stub
. Runbuild.sh
and you will get the compiled contract code inwormhole-stub/artifacts
-
Deploy the pyth contract:
npm run instantiate-pyth --contract-version <X.Y.Z> --private-key <YOUR_PRIVATE_KEY_HEX> --deploy <stable or edge>
-
You can test the new contract via contract manager scripts like this:
cd ../../../contract_manager npx ts-node scripts/update_pricefeed.ts --private-key <YOUR_PRIVATE_KEY_HEX> --contract <CONTRACT_ID> --feed-id <FEED_ID>
-
Commit the new entries added to contract manager yaml files
-
Update documentation repos and add the new contract address