Skip to content

Commit

Permalink
Merge pull request #29 from hirosystems/update-contract-addresses
Browse files Browse the repository at this point in the history
chore: update contract addresses
  • Loading branch information
Ludo Galabru authored Dec 13, 2023
2 parents 79ae569 + ad786d8 commit 987326d
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 47 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ $ npm test

| network | address |
|---------|---------------------------------------------------------------------|
| testnet | [ST3XVPDNZJ9QN0KJ327SYPKP6YS15PHJRBKWXTZ3M.pyth-helper-v1](https://explorer.hiro.so/txid/0x55bb516f989e18fc55e0f0921201a73c4f95e77abad9e3b129a61a2d43e92a68?chain=testnet) |
| mainnet | [SP19F0S4GN8CJQ4K9PKWRBVE00G2C86QTPTRXZ7GP.pyth-helper-v1](https://explorer.hiro.so/txid/0xd43086bd98922ae0f8988c5988bbd37d8cb48acbe6b01c399dde14ca800ac10d?chain=mainnet) |
| testnet | [ST2T5JKWWP3FYYX4YRK8GK5BG2YCNGEAEY1JKX06E.pyth-helper-v1](https://explorer.hiro.so/txid/0x5339f90ccdbb88e437b9b889613f1554c377d5815e3b90bbc6305b317b7bb8e8?chain=testnet) |
| mainnet | [SP2T5JKWWP3FYYX4YRK8GK5BG2YCNGEAEY2P2PKN0.pyth-helper-v1](https://explorer.hiro.so/txid/0xd86c2fda8a090c43016250c33231878673af62ac95d9c50645f6e2c303b9a173?chain=mainnet) |

### Onchain

Expand All @@ -61,7 +61,7 @@ That can be consumed with the following invocation:

```clarity
(contract-call?
'SP19F0S4GN8CJQ4K9PKWRBVE00G2C86QTPTRXZ7GP.pyth-helper-v1 ;; Address of the helper contract
'SP2T5JKWWP3FYYX4YRK8GK5BG2YCNGEAEY2P2PKN0.pyth-helper-v1 ;; Address of the helper contract
read-price
0xe62df6c8b4a85fe1a67db44dc12de5db330f7ac66b72dc658afedf0f4a415b43) ;; BTC-USD price identifier
```
Expand Down Expand Up @@ -121,7 +121,7 @@ This VAA can be encoded as a Clarity buffer, and submitted to the Pyth contract

```clarity
(contract-call?
'SP19F0S4GN8CJQ4K9PKWRBVE00G2C86QTPTRXZ7GP.pyth-helper-v1 ;; Address of the helper contract
'SP2T5JKWWP3FYYX4YRK8GK5BG2YCNGEAEY2P2PKN0.pyth-helper-v1 ;; Address of the helper contract
verify-and-update-price
0x504e41550100000003b8...a7b10321ad7c2404a910) ;; BTC-USD price update
```
Expand Down
42 changes: 21 additions & 21 deletions deployments/v1/default.mainnet-plan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,56 +10,56 @@ plan:
transactions:
- contract-publish:
contract-name: wormhole-traits-v1
expected-sender: SP19F0S4GN8CJQ4K9PKWRBVE00G2C86QTPTRXZ7GP
expected-sender: SP2T5JKWWP3FYYX4YRK8GK5BG2YCNGEAEY2P2PKN0
cost: 1486613
path: contracts/wormhole/wormhole-traits-v1.clar
anchor-block-only: true
clarity-version: 2
- contract-publish:
contract-name: pyth-traits-v1
expected-sender: SP19F0S4GN8CJQ4K9PKWRBVE00G2C86QTPTRXZ7GP
expected-sender: SP2T5JKWWP3FYYX4YRK8GK5BG2YCNGEAEY2P2PKN0
cost: 1487019
path: contracts/pyth-traits-v1.clar
anchor-block-only: true
clarity-version: 2
- contract-publish:
contract-name: pyth-governance-v1
expected-sender: SP19F0S4GN8CJQ4K9PKWRBVE00G2C86QTPTRXZ7GP
expected-sender: SP2T5JKWWP3FYYX4YRK8GK5BG2YCNGEAEY2P2PKN0
cost: 1495228
path: contracts/pyth-governance-v1.clar
anchor-block-only: true
clarity-version: 2
- contract-publish:
contract-name: pyth-oracle-v1
expected-sender: SP19F0S4GN8CJQ4K9PKWRBVE00G2C86QTPTRXZ7GP
expected-sender: SP2T5JKWWP3FYYX4YRK8GK5BG2YCNGEAEY2P2PKN0
cost: 1487263
path: contracts/pyth-oracle-v1.clar
anchor-block-only: true
clarity-version: 2
- contract-publish:
contract-name: pyth-pnau-decoder-v1
expected-sender: SP19F0S4GN8CJQ4K9PKWRBVE00G2C86QTPTRXZ7GP
expected-sender: SP2T5JKWWP3FYYX4YRK8GK5BG2YCNGEAEY2P2PKN0
cost: 1492627
path: contracts/pyth-pnau-decoder-v1.clar
anchor-block-only: true
clarity-version: 2
- contract-publish:
contract-name: pyth-store-v1
expected-sender: SP19F0S4GN8CJQ4K9PKWRBVE00G2C86QTPTRXZ7GP
expected-sender: SP2T5JKWWP3FYYX4YRK8GK5BG2YCNGEAEY2P2PKN0
cost: 1487263
path: contracts/pyth-store-v1.clar
anchor-block-only: true
clarity-version: 2
- contract-publish:
contract-name: wormhole-core-v1
expected-sender: SP19F0S4GN8CJQ4K9PKWRBVE00G2C86QTPTRXZ7GP
expected-sender: SP2T5JKWWP3FYYX4YRK8GK5BG2YCNGEAEY2P2PKN0
cost: 1494091
path: contracts/wormhole/wormhole-core-v1.clar
anchor-block-only: true
clarity-version: 2
- contract-publish:
contract-name: pyth-helper-v1
expected-sender: SP19F0S4GN8CJQ4K9PKWRBVE00G2C86QTPTRXZ7GP
expected-sender: SP2T5JKWWP3FYYX4YRK8GK5BG2YCNGEAEY2P2PKN0
cost: 1486613
path: contracts/pyth-helper-v1.clar
anchor-block-only: true
Expand All @@ -68,8 +68,8 @@ plan:
- id: 1
transactions:
- contract-call:
contract-id: SP19F0S4GN8CJQ4K9PKWRBVE00G2C86QTPTRXZ7GP.wormhole-core-v1
expected-sender: SP19F0S4GN8CJQ4K9PKWRBVE00G2C86QTPTRXZ7GP
contract-id: SP2T5JKWWP3FYYX4YRK8GK5BG2YCNGEAEY2P2PKN0.wormhole-core-v1
expected-sender: SP2T5JKWWP3FYYX4YRK8GK5BG2YCNGEAEY2P2PKN0
method: update-guardians-set
parameters:
# VAA of 1st guardians rotation
Expand All @@ -95,10 +95,10 @@ plan:
0x4881345cbb299fa7c60ab2d16cb7fe7bf8d14675506ef6eb6037038b5b7092ea0a9e4d0b53ba3904edd99f86717d6ba81dffe44eb5b23c6fd22c91ab73c33021
0xee3d4cc17633afe7e1794fcfd728e0643325e3d130eb1daa39c0c5cb05a200b43876117a182cabdcc3795632aa529473a0c8245f9e4f6e43e54c3f1da28bcb82
0x21f338444e96af31cf44958acf5764844efbddace3b823ed761c340c59ed2685d829818c83eebe8f00f783f1048a53515845536668a9e0c059ade7579a0f4204)'
cost: 5960
cost: 1000000
- contract-call:
contract-id: SP19F0S4GN8CJQ4K9PKWRBVE00G2C86QTPTRXZ7GP.wormhole-core-v1
expected-sender: SP19F0S4GN8CJQ4K9PKWRBVE00G2C86QTPTRXZ7GP
contract-id: SP2T5JKWWP3FYYX4YRK8GK5BG2YCNGEAEY2P2PKN0.wormhole-core-v1
expected-sender: SP2T5JKWWP3FYYX4YRK8GK5BG2YCNGEAEY2P2PKN0
method: update-guardians-set
parameters:
# VAA of 2nd guardians rotation
Expand All @@ -124,10 +124,10 @@ plan:
0x4881345cbb299fa7c60ab2d16cb7fe7bf8d14675506ef6eb6037038b5b7092ea0a9e4d0b53ba3904edd99f86717d6ba81dffe44eb5b23c6fd22c91ab73c33021
0xee3d4cc17633afe7e1794fcfd728e0643325e3d130eb1daa39c0c5cb05a200b43876117a182cabdcc3795632aa529473a0c8245f9e4f6e43e54c3f1da28bcb82
0x21f338444e96af31cf44958acf5764844efbddace3b823ed761c340c59ed2685d829818c83eebe8f00f783f1048a53515845536668a9e0c059ade7579a0f4204)'
cost: 5960
cost: 1000000
- contract-call:
contract-id: SP19F0S4GN8CJQ4K9PKWRBVE00G2C86QTPTRXZ7GP.wormhole-core-v1
expected-sender: SP19F0S4GN8CJQ4K9PKWRBVE00G2C86QTPTRXZ7GP
contract-id: SP2T5JKWWP3FYYX4YRK8GK5BG2YCNGEAEY2P2PKN0.wormhole-core-v1
expected-sender: SP2T5JKWWP3FYYX4YRK8GK5BG2YCNGEAEY2P2PKN0
method: update-guardians-set
parameters:
# VAA of 3rd guardians rotation
Expand All @@ -153,13 +153,13 @@ plan:
0x4881345cbb299fa7c60ab2d16cb7fe7bf8d14675506ef6eb6037038b5b7092ea0a9e4d0b53ba3904edd99f86717d6ba81dffe44eb5b23c6fd22c91ab73c33021
0xee3d4cc17633afe7e1794fcfd728e0643325e3d130eb1daa39c0c5cb05a200b43876117a182cabdcc3795632aa529473a0c8245f9e4f6e43e54c3f1da28bcb82
0x21f338444e96af31cf44958acf5764844efbddace3b823ed761c340c59ed2685d829818c83eebe8f00f783f1048a53515845536668a9e0c059ade7579a0f4204)'
cost: 5960
cost: 1000000
- contract-call:
contract-id: SP19F0S4GN8CJQ4K9PKWRBVE00G2C86QTPTRXZ7GP.pyth-helper-v1
expected-sender: SP19F0S4GN8CJQ4K9PKWRBVE00G2C86QTPTRXZ7GP
contract-id: SP2T5JKWWP3FYYX4YRK8GK5BG2YCNGEAEY2P2PKN0.pyth-helper-v1
expected-sender: SP2T5JKWWP3FYYX4YRK8GK5BG2YCNGEAEY2P2PKN0
method: verify-and-update-price
parameters:
# PNAU payload
- 0x504e41550100000003b801000000030d002c9e33a703a8c86012c117474849ae41118270cf56e2db61c7af28f64ce322391d33cb738930dc3ffcfe5ae35dbd99c4e08a8ac4b390c858d94dc1f0b91e24d00101901948561c54c17b7a21a9885d3f60a85b410e18209b02ebe098b0dd422b02667565e3b5011203303a6445cf629d20cec3d4771f0b391ab03bfd54364ac049f70002a030ed0060f1ba123ddf5473bef4c1c8f4aec8737b47f11023f94d5339b72c4c3aa325515956ea702537a3950d74f86134396de437bfc97a5365fc090dbb382c0103f1f64ba806fe8ba7b7db3846d85fccbe7d803865e7b757301f4a5de6ebde40f923ee925a7df78871d39299d70fd117635263b91fe53f792bfff450d210431316000439e31501d7b661a1b075a9302b57a6fc500c1e760de7e949e30994055b061b280cefcab3eb3b5c780f56cd555e88ee3c674b798ddeb8713bd27a361b8b8f1c730008db908c61e4158d1a7a7d53b2ec14027a4a2b2f3207edf0db2fbb0f431f3cdc020ee9fc9f38e812d094dcf5dd18f3a8d1d1ee94e840f504b00e08d0fbd607ed6d0109cf5c52aed9f4a42691c3c33bc366fde4a3ad23aacdd46c14669ad321106cf8d257b9379fc45cbe91a26ee87f4800951c5ca89ff0069e4a47299f988b368c6b74000b1241dea623dd874e13135682d760ee48ac1888149bddcfac54ff3787f4b89629063d89e084350ff1168999365918f9bdf469323b817a25491e56341a0da5c498000d538baecc668df092ce3cfeebfa5968447584916cb503ce50e7f77443bbd2a3441bb1d962a7f3401bfcf30f444a3301ab72dcb87cc04b681bdada93d45001f53d010e2fd97eeac94ceb3fd87a6e4ab3b785c64db221d522e58230a6d9eb10cba3b53a086ba6989e4285ab0816a26ff64c1a3a05175d0ffa61f4f744f928d6c5b3f92600107f999fa2f5cd826520cdf36f2e3434f4619eca4c2fb944bdec79d84903f76aaa02727844ec451378ab165910140c866ebdc65aea2cc6717da4747d4ed8a7338700115ce8f97f4a39ccdf5a61c9425d8a306a35b598db9d0f936bece6f2d92e79f9b1306d4c4789fb73ba5bd29bf0d306f2e8079aae818bc70aa9db111b745f1f4ab900126933d7f1317e3e45d98687e66ae033d871e1026e92f1ad168ec197a92ad653571837b78ee8e2263f2aca1dfa112fc78de63de9e2231f62ab79db2d956704146c0165131de200000000001ae101faedac5851e32b9b23b5f9411a8c2bac4aae3ed4dd7b811dd1a72ea4aa710000000000df92280141555756000000000005e1b46c00002710dbdd79b598d499596393b24358343774fd54e63c01005500ec7a775f46379b5e943c3526b1c8d54cd49749176b0b98e02dde68d1bd335c170000000002bf687c00000000000091effffffff80000000065131de10000000065131de00000000002c073dc0000000000008d5f09014cff5b7c5413efc667d2bca5549edadde5324814fed82e330d4110d610f5d0325deddb5541eacccd70da0a613768335768226657b201a456613163b0b4a21cf17276c2be6d02280ff05d08a6d4cf481c00c544f4adff1c86c6845a21871b75b4cffdc9314a2b46bddcb2bd44861fa48d4cc429a0783cb122a3eda67b7a13ad6298995c3bddd6cfa1ba547ddd38f0da18fcb0f7ead4d1de56db6c0442b94883a78f40b3541982a58d2d400dbfb761cce7bf780c
cost: 5960
- 0x504e41550100000003b801000000030d0053bbe5d6ec86360500482ecfe68f015ee39b20b51f2498a1cd216669cf7a124a462f7c37adecd50eeb95c48304a6df8b252166660499ef5e29bf68b9934a81d200017d675c2ac214abad26560dad001d62b1fd439b5f683c77d6142ff43a7d48f3f1487cd40468d60859ffba22761c9baec08b70809e7d3ae9a7095696d8469516d6010227780a41bdf2b51327e4e34f6bf2c5a0afc8d395d0be32c600c86bed8b33993436e5a7129a5f42b4980947a7ee6d0011437fe83096a7be11f120e9e6cbb1f62d00034decb38b18b67835e95ec3e723d8aa5f927c0edf6fda818da1c1c6461ac03eed54ae2d0c71258bee206f4efb098ca8f1428d717a38d1e467d1d093b1a0e7439b0004a11bdedf6f73d2828f457b45ab0dcabb03369d5aa25173d874a77d09860297213eb54cdbc88ad0302c7f6cd19aafb4739b090771be5e64eeb299fc5ed561210d00068efddedd53845d43acf3fffda71ff8d8a5cb460c1db7701bb8d628562e1ed1bf495ad6280e839160e5accc3999d748405a97950e9db40739bc20c9ab9b03657f0008f2257f31d1faf556dc14756e05c83abbbfbfac47427655c0ea201bdf40c30f8701022545ab20a6712e94cda029804db77bdcb72290a8f8372cc03d31c42b951a000a71e288608dcd65999d7a778b0fc164da395fb0ab43f4e3969f900d2ae163d4097ce40c846966b43ecd82cdb420e273fb843f2e7f924ccd39694f432f4784c4c1000b0ad80690d2ae077b10f61b27fa3628e7d8d44b479bcf38716dfb51230e281b8b3efb3168ca630ab7988f66d2bbf392c5b76251d5707b78dcedfc03dc9a77574b010db88988868497aec5c9c3cdc83a2f39ec5b4ce8eba8efc391cc65e384cd98ba13650ee3e1c1d6f7ba7de3a91d68df67befb87ba853764becad0e2445f338d2a0c000ea7e6435467b12136983eef340c917512aa3178a6362915813ee2403a6afe7e8674e615e9949fff600a8fd5ed134099f4630db60c96d6bf41d5c65b49a0e856df0110d8abf4382fc05a7b1f7ee0344b4b6ab2d99ce05a09da44629091b8bec6441e225d2a47f857c32c9eaee55c0d97b01850978604ccc604d209fbb2e21f790a2d27001228c1e49492a1ca1eb324890d4d8edce37e73df2c6545409f92f5af038f12a106550e40d52c490ae0d26ab04748fc8ac017f365891795d55902838e04561f98f1006579e52f00000000001ae101faedac5851e32b9b23b5f9411a8c2bac4aae3ed4dd7b811dd1a72ea4aa710000000001dc08de0141555756000000000006e32d640000271082bd6338b7168545099d3b89575382a1719fd5b001005500ec7a775f46379b5e943c3526b1c8d54cd49749176b0b98e02dde68d1bd335c1700000000059b8cf00000000000013602fffffff8000000006579e52e000000006579e52e0000000005a89ef900000000000177390a8b1d580b30d9ff6ef843cb9e44f79d459b390e17ff15ce2dac75a2e3c2698a36411fc08faa4fa6de90f134a2daf2c1341e26eb084e134223b97dc008d9f0beb19e9ebed8ca4a8515ca9f2e62a9d57f9a10745d339f162052998a2979999e905223f48ec37f8272cabd22210512e0948b7f531c0cb71fca82952cd3ba5b3cbdbf54e52cc47ffe6ea1bdbd5074ea6fa95a91feaa758a6294fd1663ee9d40877c5dd57e98390e59ba61a7771f0452439f3f6459ac4ad455b31fe2f509e9fc0a84f3d862467a5a0a5a88
cost: 1000000
epoch: "2.4"
Loading

0 comments on commit 987326d

Please sign in to comment.