Reisen dd56ac64f6 feat(near): contract manager integration %!s(int64=2) %!d(string=hai) anos
..
scripts dd56ac64f6 feat(near): contract manager integration %!s(int64=2) %!d(string=hai) anos
src dd56ac64f6 feat(near): contract manager integration %!s(int64=2) %!d(string=hai) anos
store 2c93737366 chore(eth): deploy stable contracts on testnets (#1146) %!s(int64=2) %!d(string=hai) anos
.eslintrc.js b9dbd54d5a [contract-manager] General improvements (#1024) %!s(int64=2) %!d(string=hai) anos
.gitignore c732fcf586 Abolish xc governance sdk (#957) %!s(int64=2) %!d(string=hai) anos
README.md dd56ac64f6 feat(near): contract manager integration %!s(int64=2) %!d(string=hai) anos
package.json dd56ac64f6 feat(near): contract manager integration %!s(int64=2) %!d(string=hai) anos
tsconfig.json 66e5f186b2 Initial version of contract manager sdk (#943) %!s(int64=2) %!d(string=hai) anos

README.md

Contract Manager

The contract manager is a tool to interact with Pyth related contracts on all supported chains.

It has the following structure:

  • store contains all the necessary information for registered chains and deployed contracts
  • scripts contains utility scripts to interact with the contract manager and accomplish common tasks
  • src contains the contract manager code

Guide to add new Chain

Adding a new chain type to the contract manager can be done like so:

  1. Add a new Chain type to src/chains.ts extending Chain.
  2. Add a new Contract under src/contracts/. See another contract for reference.
  3. Update shell.ts and store.ts with your new Chain type.
  4. Add scripts that use the new contract under scripts/ for useful tasks.