benduran 31c364cf41 feat: performed a minor bump all packages, since all were changed in the big dual package update 2 settimane fa
..
src e191517da2 fix: fixed more builds 3 settimane fa
.prettierignore 6efbe89542 chore: updated prettier ignores to prevent bikeshedding 2 settimane fa
README.md df8e20aad1 chore(target_chains/cosmwasm): replace xion_testnet with xion_testnet_2 (#2510) 8 mesi fa
package.json 31c364cf41 feat: performed a minor bump all packages, since all were changed in the big dual package update 2 settimane fa
tsconfig.build.json 87679545bb chore: removed npm-specific things and removed more packageManager fields 2 settimane fa
tsconfig.json fe92275443 chore: migrated all package.json and tsconfig files to a single, modern standard 3 settimane fa

README.md

How to add a new chain or contract

  1. Add the chain information to contract manager 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).
  2. If the wormhole contract is not deployed on the target chain run the following command:

    pnpm 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

  1. Deploy the pyth contract:

    pnpm instantiate-pyth --contract-version <X.Y.Z> --private-key <YOUR_PRIVATE_KEY_HEX> \
       --deploy <stable or edge> --wormhole <WORMHOLE_CONTRACT_ADDRESS> --chain <chain>
    
  2. You can test the new contract via contract manager scripts like this:

    cd ../../../contract_manager
    pnpm exec ts-node scripts/update_pricefeed.ts --private-key <YOUR_PRIVATE_KEY_HEX> --contract <CONTRACT_ID> --feed-id <FEED_ID>
    
  3. Commit the new entries added to contract manager yaml files

  4. Update documentation repos and add the new contract address