|
|
před 1 rokem | |
|---|---|---|
| .. | ||
| src | ef922220ee chore(contract_manager): Rename package to @pythnetwork/contract-manager (#1507) | před 1 rokem |
| README.md | 2398afefa7 chore(target_chains/cosmwasm): add rol_testnet network (#1419) | před 1 rokem |
| package.json | ef922220ee chore(contract_manager): Rename package to @pythnetwork/contract-manager (#1507) | před 1 rokem |
| tsconfig.json | a7d133d063 [cosmwasm] CosmWasm integration with contract manager (#1025) | před 2 roky |
CosmWasmChains.yaml. You can lookup for rpc endpoints in this repo. The gasPrice is the average_gas_price of the chain + the chain token denom (Available in chain-registry chain.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>
You can re-build the wormhole contract using the scripts given in wormhole-stub.
Run build.sh and you will get the compiled contract code in wormhole-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> --wormhole <WORMHOLE_CONTRACT_ADDRESS> --chain <chain>
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