Skip to content

Commit

Permalink
refactor: move things around and add testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
ali-bahjati committed Apr 19, 2024
1 parent 876fb30 commit 5ec7b59
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 39 deletions.
16 changes: 10 additions & 6 deletions deployments/utils/update-price.mainnet-plan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,15 @@ plan:
- id: 0
transactions:
- contract-call:
contract-id: SP19F0S4GN8CJQ4K9PKWRBVE00G2C86QTPTRXZ7GP.pyth-helper-v1
expected-sender: SP19F0S4GN8CJQ4K9PKWRBVE00G2C86QTPTRXZ7GP
method: verify-and-update-price
contract-id: SP2T5JKWWP3FYYX4YRK8GK5BG2YCNGEAEY2P2PKN0.pyth-oracle-v2
expected-sender: SP2T5JKWWP3FYYX4YRK8GK5BG2YCNGEAEY2P2PKN0
method: verify-and-update-price-feeds
parameters:
# PNAU payload
- 0x504e41550100000003b801000000030d0002d213f58d7f9d7fc48fc2b2e99c51e7484a95fa339984e34cf92f03ad054d994c9ef0026a9bb6446d3b8ac5c1f3abb97df4e105ac57b1e191970eb7f6f4757e0002db2d3a1c1b7fd484aec6d58648263256dfeb23008f64af580c431900ed22d3194df8950c48e00461f2694b7f64e2e50f10bbd630d7c74c1d4287be913df5c306010318fbbdee25032ef071bae6c3570e7e5b3934ef207388e713170ec93b6c252a402b64a32b8a6a9b014deeb10aaa4b1fbed2064c89038de81cce3c81970c1713800104811679e99e5f5723c5d41241682b1cc881482b1bd1dfbe1ce5bf138189dbd2630f69cc75e81c1b23b7e04419ee6dbba72accb0e76e49d996299a34f5154294c00106b2f14ae4d4cb67ce39b920e76cd1f6ae98918dcd6e0ac0633e36343d8f623b2402bc85d974e45b0be7c8adba21f73693c012728aaad52d2cc6744279884d014600082aead75ff574662bb55297fd4d8d0c04ffe1adec400c61a049d0ee9a5cc905da6aa1fa1fa97a1c1dff9da23abfe5123f81e956223a42d96ff63ac49bd8247c8a000a81c622be7f87559bd1c2955c19e244275eae745a4b5f786ecb9c89b68a7b7ff7320fa7a5683e024303c301a315e8a8f67eb77f90a769f958dcaee416490df726000c298720f3303cd124f03155308d7dcd12445725bd0321b1d61fd6a720ec87be034d5a5fd45b8cd65d8e4880ee37a082f44b5122105547c35acbb29f51544c6b39010dbd566589e5f644f5d4d719a680e09f301c2917e7ca622fa1dab7551d481f23f629a880292debbc1ffbc04d96714aadc48be1b719067ceb611286de312bdba2e0010e598b69cc78e66deef66e79714b5c6374b482870076ecfa44c440f819ee83b5754fa5255ce8ec5e2be6ffb274948dbf49aabb4040d6a3576bea8c6aef222e57bc0010591d8c591af760a4723fe709118bc9b87e050be1589f330d1ce3402fd602ac5b08c54812e42a953946aec9d81b95582a96b82e91438040a69633ba7e4b1102b50011e97153c1e98d8df48b77e71f24ed174c8ef1d3f6a98fbc5000f46b3c30e4fd977feb7e88192faf6fa796b39e6a950eb63fe79bbc058d07bb6a56cbf8b8f7ff540012e66b19c43912ca0e5a9e2e8f54cdd14fd46aa458c39da1d41b53ba79f82f81111682cf74976e46a46226248cc618d2fa19f0cd78ac8641ef4df76453004b8e70006570bc7200000000001ae101faedac5851e32b9b23b5f9411a8c2bac4aae3ed4dd7b811dd1a72ea4aa710000000001c5bad80141555756000000000006cca0cd0000271014ce3c6d1a13b1a478d541e35c4ef1f173c3dede01005500e62df6c8b4a85fe1a67db44dc12de5db330f7ac66b72dc658afedf0f4a415b43000003feab9141c00000000073b14f40fffffff8000000006570bc72000000006570bc71000003ffb97079e000000000560a95640a9f087dfe219838720776216dd0dc700886d824e34c8859faf965f7d1295ba21e31b30c8afb66a256803f454c8b33c383ec5e25a99736e7e4e8ef0859e6a2971507b0c06d11998c885af67e9828204ede1c3970e5206e546d4bf5c603d96dcfac78de41a4dd877d9db79df2a321f63389c6991f0ce963785137861310d2077fa500fe7d48f44b2a5fc0d65af67a39b5a97208baf62d816ade0ab2c66ef6ec8366b64f3a9227e91af433335743c7adb6ea642106a730debd9aeccbcc89b47e746617be6e89399d264b
cost: 596000
epoch: "2.4"
- 0x504e41550100000003b801000000040d009764f10b16b4937d5b10637552e67f85d3422a86fcf33062f9a986b889c2655d071b8b1e81ff7fedd7c40eda9f4e64dbe1f653128a4747f5257eb875528016860001f7e0d441b68739e32e0c55eaf1dbe1f4f017191ad25ca0e813e58cfd4cd24ab61f644fbf6b58b52845113877dcdc8ffe96410363516e4013f55047ef30d513590002a83c7a9397480bceaebdb8b3cb4a39f3592f2fb033b201db00e095549651ccb02a5c740cbaa5112c0b7d31c0d054ac10e5de1ca55818dfb6f1dd32f147d8235a01032abc479599481cd7b6b7a4ed5ddda8f054569bc28ecb8b0eacdf4254f7f86cc82a3ded85d8e4f8e0cfec317772f84e11477c4974c58232438953d394913e78f2010601bac86eaf7526ec765083808a9355957d7687fde48688e1f42334a7efdb59e067934f067864dcb0310ec20c62118c26bbe13615024e811e80847fdb671a765900082320a274ee9dfd1e1b3c7041591678168d115b03a8fd7143bfdc6ee209f717063e1240122de8d4edf2ce146b580923923de91ad07338e0be73142cbf621adbb60109333f3eab1d03a47b88254c57473e8058865802e9727e3f9353272b2b800517cf6ffb9c5bfa731e41afc2cb45f220d65204fb22ac2fb284ca4d124cd524220c3e000aebe496ce314223a56142a811f72b598d7d66f917af30cba2d90c0c6a04fe9c60544524d8075bfae44df5f6dcca89b9c61489bf36709b48a15afa5ae5b436e33f000ba0232b7b2e4989432c2233b4f9690614ca7902cfb0f3035e1076d5a13f905fb438ac346da1253fc82f3dc0c8e1af26ab08711af0ed0a2d1409f8397496c86f90010caac05a7e60c0fb4ad68cc2d25a8fe8e798c67c763fa1a28617d97b85084f90a174f81bd07a3e8d897755d168ab4ed272433e1c19464484588b7b8800c64166d6000d7c74630a9ce0d0dd28826dfc419c248eeb35b56c7b627276b2bb37f61a57dab612127e123a89c5ced1ad1034ce2ec64665983dbe9b0f4565195498329532a9fa000e516a64ab6db2ae4041762c716b765accf28d075df1ae1c99aa0f878bf388caa35d761338b08c0ba59fde3a0d55c2b83b928327f3be5ac8166b7e582b5c419d470112e59f242f4e2b7dc100c2f2ca4ee3482de87722aed0a711543bbd0d39a63761b85454c740c16b3a5d79a6aa1744219ca3b130d6406225f01cf672bdbfde02c7330066225ade00000000001ae101faedac5851e32b9b23b5f9411a8c2bac4aae3ed4dd7b811dd1a72ea4aa71000000000311c57f01415557560000000000081bb9f700002710cf647a56a139b249245eaaf115357ef8e7381de501005500e62df6c8b4a85fe1a67db44dc12de5db330f7ac66b72dc658afedf0f4a415b43000005e7c94e82b600000000dd69ab96fffffff80000000066225add0000000066225add000005e5f18d02c000000000f58a7be00ac96cd6da5ef5983eedb01eab12f5a88f5ad4ce44e2d73b321b7502a21f10e08d81d471f48b4a4565391f72c0cb93c7981ea1339cc74176888a1e17fa1f4c5ca3a181d70005adc0dae9eac2638c268a06cdc60fc62ff05cd395bf8e286ae6f307003ba670db208a575e337404821633ecaa4dcce150cfb87aaf917427e972b95287f80fdb962c6d6943e662445f4640537460f4b7e192c22ec470561dfa7d78b188a0991bd16da2a4f9d8160e2cdd4106f85c1a3f08427700b90f75f4045b77223ff5515270545927
- "{
pyth-storage-contract: 'SP2T5JKWWP3FYYX4YRK8GK5BG2YCNGEAEY2P2PKN0.pyth-store-v1,
pyth-decoder-contract: 'SP2T5JKWWP3FYYX4YRK8GK5BG2YCNGEAEY2P2PKN0.pyth-pnau-decoder-v1,
wormhole-core-contract: 'SP2T5JKWWP3FYYX4YRK8GK5BG2YCNGEAEY2P2PKN0.wormhole-core-v2
}"
cost: 1000000
Original file line number Diff line number Diff line change
@@ -1,42 +1,39 @@
---
id: 0
name: Devnet deployment
network: devnet
stacks-node: "http://localhost:20443"
bitcoin-node: "http://devnet:devnet@localhost:18443"
name: Mainnet wormhole guardian set update
network: mainnet
stacks-node: "https://api.hiro.so"
bitcoin-node: "http://blockstack:[email protected]:8332"
plan:
batches:
- id: 0
transactions:
# Guardian upgrade 4
- contract-call:
contract-id: ST1PQHQKV0RJXZFY1DGX8MNSNYVE3VGZJSRTPGZGM.wormhole-core-v1
expected-sender: ST1PQHQKV0RJXZFY1DGX8MNSNYVE3VGZJSRTPGZGM
contract-id: SP2T5JKWWP3FYYX4YRK8GK5BG2YCNGEAEY2P2PKN0.wormhole-core-v2
expected-sender: SP2T5JKWWP3FYYX4YRK8GK5BG2YCNGEAEY2P2PKN0
method: update-guardians-set
parameters: [
parameters:
# VAA of 4th guardians rotation
- 0x01000000030d03d4a37a6ff4361d91714730831e9d49785f61624c8f348a9c6c1d82bc1d98cadc5e936338204445c6250bb4928f3f3e165ad47ca03a5d63111168a2de4576856301049a5df10464ea4e1961589fd30fc18d1970a7a2ffaad617e56a0f7777f25275253af7d10a0f0f2494dc6e99fc80e444ab9ebbbee252ded2d5dcb50cbf7a54bb5a01055f4603b553b9ba9e224f9c55c7bca3da00abb10abd19e0081aecd3b352be061a70f79f5f388ebe5190838ef3cd13a2f22459c9a94206883b739c90b40d5d74640006a8fade3997f650a36e46bceb1f609edff201ab32362266f166c5c7da713f6a19590c20b68ed3f0119cb24813c727560ede086b3d610c2d7a1efa66f655bad90900080f5e495a75ea52241c59d145c616bfac01e57182ad8d784cbcc9862ed3afb60c0983ccbc690553961ffcf115a0c917367daada8e60be2cbb8b8008bac6341a8c010935ab11e0eea28b87a1edc5ccce3f1fac25f75b5f640fe6b0673a7cd74513c9dc01c544216cf364cc9993b09fda612e0cd1ced9c00fb668b872a16a64ebb55d27010ab2bc39617a2396e7defa24cd7c22f42dc31f3c42ffcd9d1472b02df8468a4d0563911e8fb6a4b5b0ce0bd505daa53779b08ff660967b31f246126ed7f6f29a7e000bdb6d3fd7b33bdc9ac3992916eb4aacb97e7e21d19649e7fa28d2dd6e337937e4274516a96c13ac7a8895da9f91948ea3a09c25f44b982c62ce8842b58e20c8a9000d3d1b19c8bb000856b6610b9d28abde6c35cb7705c6ca5db711f7be96d60eed9d72cfa402a6bfe8bf0496dbc7af35796fc768da51a067b95941b3712dce8ae1e7010ec80085033157fd1a5628fc0c56267469a86f0e5a66d7dede1ad4ce74ecc3dff95b60307a39c3bfbeedc915075070da30d0395def9635130584f709b3885e1bdc0010fc480eb9ee715a2d151b23722b48b42581d7f4001fc1696c75425040bfc1ffc5394fe418adb2b64bd3dc692efda4cc408163677dbe233b16bcdabb853a20843301118ee9e115e1a0c981f19d0772b850e666591322da742a9a12cce9f52a5665bd474abdd59c580016bee8aae67fdf39b315be2528d12eec3a652910e03cc4c6fa3801129d0d1e2e429e969918ec163d16a7a5b2c6729aa44af5dccad07d25d19891556a79b574f42d9adbd9e2a9ae5a6b8750331d2fccb328dd94c3bf8791ee1bfe85aa00661e99781981faea00010000000000000000000000000000000000000000000000000000000000000004fd4c6c55ec8dfd342000000000000000000000000000000000000000000000000000000000436f726502000000000004135893b5a76c3f739645648885bdccc06cd70a3cd3ff6cb952589bde862c25ef4392132fb9d4a42157114de8460193bdf3a2fcf81f86a09765f4762fd1107a0086b32d7a0977926a205131d8731d39cbeb8c82b2fd82faed2711d59af0f2499d16e726f6b211b39756c042441be6d8650b69b54ebe715e234354ce5b4d348fb74b958e8966e2ec3dbd4958a7cd15e7caf07c4e3dc8e7c469f92c8cd88fb8005a2074a3bf913953d695260d88bc1aa25a4eee363ef0000ac0076727b35fbea2dac28fee5ccb0fea768eaf45ced136b9d9e24903464ae889f5c8a723fc14f93124b7c738843cbb89e864c862c38cddcccf95d2cc37a4dc036a8d232b48f62cdd4731412f4890da798f6896a3331f64b48c12d1d57fd9cbe7081171aa1be1d36cafe3867910f99c09e347899c19c38192b6e7387ccd768277c17dab1b7a5027c0b3cf178e21ad2e77ae06711549cfbb1f9c7a9d8096e85e1487f35515d02a92753504a8d75471b9f49edb6fbebc898f403e4773e95feb15e80c9a99c8348d
- [
0x9a1e801daa25d9808e70aae9981353086f958955cc94ef33a461b0e596feaef90a8474dd10cf6ae967143f86105c16d6304a3d268ea952fda9389139d4bb9da1, # 0: ?
0x2766db08820e311b22e109801ab8ea505b12e3df3d91ebc87c999ffb6929d1abb0ade987c74aa37db26eea4086ee738a2f34a5594edb8760da0eac5be356b731, # 1: Staked
0x54177ff4a8329520b76efd86f8bfce5c942554db16e673267dc1133b3f5e230b2d8cbf90fe274946045d4491de288d736680edc2ee9ee5b1b15416b0a34806c4, # 2: Figment
0x7fa3e98fcc2621337b217b61408a98facaabd25bad2b158438728ce863c14708cfcda1f3b50a16ca0211199079fb338d479a54546ec3c5f775af23a7d7f4fb24, # 3: ChainodeTech
0x0bdcbccc0297c2a4f92a7c39358c42f22a8ed700a78bd05c39c8b61aaf2338e825b6c0d26d1f2a2ae4129cd751201f73d7234c753bd0735212a5288b19748fd2, # 4: Inotel
0xcfd90084be68de514fe14a7c281f492223f045566f859ea5c166d6e60bc650c23940909a8e96c2fbffbd15a598b4e6a5b5aa14c126bf58cc1a9e396fe7771965, # 5: HashQuark
0x8edf3f9d997357a0e2c916ee090392c3a645ebac4f6cd8f826d3ecc0173b33bf06b7c14e8002fc9a5d01af9824a5cb3778472cd477e0ab378091448bca6f0417, # 6: ChainLayer
0x47b15c5039dcb2850b59bea323db662cc597dd7d48fe6b8dbb6cd8704c45854bf0e92fa267c844ba1a700105e157c8099d55c82316cb5e50c56a5d0920ff91c2, # 7: xLabs
0xd5225476d7849b362226952ffc561bab99832f3f8b99741f6d81bbeaffa8e7f6e54a85e5029a3b510707eaa9684df496e4b1268075ad0328693a30bf1b1e0033, # 8: Forbole
0xd9fa78b5b958bea1929080b8ad96dc555d34b051a27aebf711eb1186b807b0448316d994606ac807121838d6c41a58f308bc6307acdf69491fa4b17282f3e66f, # 9: StakingFund
0xcc64af75ec2e2741fb9af9f6191cb9ee187d6d26af4d1e96d7bab47e6ec09be12d3192030dc4bbf54d1da319a7a2acfc7a9dd4c644af6646a4aaa02b1024bbab, # 10: MoonletWallet
0xb5943b6e284682ad2e011d6962d41febf86af2f5fc0c9c8f4b81358ff077f9c96ba0880eaf93541eae94b4fa41dba66dab7fb0201cc9af7c75681e5719b0c95f, # 11: P2PValidator
0x0cfc9d5b5dcf702a1525f9d4ed1841e8eb8b34434cc82470dd35435f1dbdc73ffb51544b7500394eac9c7fa567868b495326075147a2d809ebbfd43273eeec91, # 12: 01node
0x0aa78894d894a15933969f5826347439e2c309f2049277a10066c9197840499498ad19ee3d1b291f932ec0890bbdafcec292c4f02a446670cd0084f997e25e2f, # 13: MCFV2MAINNET
0x00f400e3fe40f64032485aad9240ead45a8e1fc83ec08c96db861c0eca155ac898df8673e778e3ccaae8a0f9e6af415fe40e99b0cbc88d7610e536b6041b07fb, # 14: Everstake
0x604f384174c7ed3a0dc5f476569a978266a7943bd775449d1b8b27f4eb8beb99cdf095f9200a2dabb1bc5d68c3d96ea3d47f4d34499d59953669b6c8c093d578, # 15: ChorusOne
0x4881345cbb299fa7c60ab2d16cb7fe7bf8d14675506ef6eb6037038b5b7092ea0a9e4d0b53ba3904edd99f86717d6ba81dffe44eb5b23c6fd22c91ab73c33021, # 16: syncnode
0xee3d4cc17633afe7e1794fcfd728e0643325e3d130eb1daa39c0c5cb05a200b43876117a182cabdcc3795632aa529473a0c8245f9e4f6e43e54c3f1da28bcb82, # 17: Triton
0x21f338444e96af31cf44958acf5764844efbddace3b823ed761c340c59ed2685d829818c83eebe8f00f783f1048a53515845536668a9e0c059ade7579a0f4204, # 18: StakingFacilities
]
]
cost: 5960
epoch: "2.4"

# Uncompressed public keys of selected guardians: RockawayX, Staked, Figment, ChainodeTech, Inotel, HashQuark, ChainLayer, xLabs, Forbole, StakingFund, MoonletWallet, P2PValidator, 01node, MCFV2MAINNET, Everstake, ChorusOne, syncnode, Triton, StakingFacilities, cost: 5960
- '(list
0x9a1e801daa25d9808e70aae9981353086f958955cc94ef33a461b0e596feaef90a8474dd10cf6ae967143f86105c16d6304a3d268ea952fda9389139d4bb9da1
0x2766db08820e311b22e109801ab8ea505b12e3df3d91ebc87c999ffb6929d1abb0ade987c74aa37db26eea4086ee738a2f34a5594edb8760da0eac5be356b731
0x54177ff4a8329520b76efd86f8bfce5c942554db16e673267dc1133b3f5e230b2d8cbf90fe274946045d4491de288d736680edc2ee9ee5b1b15416b0a34806c4
0x7fa3e98fcc2621337b217b61408a98facaabd25bad2b158438728ce863c14708cfcda1f3b50a16ca0211199079fb338d479a54546ec3c5f775af23a7d7f4fb24
0x0bdcbccc0297c2a4f92a7c39358c42f22a8ed700a78bd05c39c8b61aaf2338e825b6c0d26d1f2a2ae4129cd751201f73d7234c753bd0735212a5288b19748fd2
0xcfd90084be68de514fe14a7c281f492223f045566f859ea5c166d6e60bc650c23940909a8e96c2fbffbd15a598b4e6a5b5aa14c126bf58cc1a9e396fe7771965
0x8edf3f9d997357a0e2c916ee090392c3a645ebac4f6cd8f826d3ecc0173b33bf06b7c14e8002fc9a5d01af9824a5cb3778472cd477e0ab378091448bca6f0417
0x47b15c5039dcb2850b59bea323db662cc597dd7d48fe6b8dbb6cd8704c45854bf0e92fa267c844ba1a700105e157c8099d55c82316cb5e50c56a5d0920ff91c2
0xd5225476d7849b362226952ffc561bab99832f3f8b99741f6d81bbeaffa8e7f6e54a85e5029a3b510707eaa9684df496e4b1268075ad0328693a30bf1b1e0033
0xd9fa78b5b958bea1929080b8ad96dc555d34b051a27aebf711eb1186b807b0448316d994606ac807121838d6c41a58f308bc6307acdf69491fa4b17282f3e66f
0xcc64af75ec2e2741fb9af9f6191cb9ee187d6d26af4d1e96d7bab47e6ec09be12d3192030dc4bbf54d1da319a7a2acfc7a9dd4c644af6646a4aaa02b1024bbab
0xb5943b6e284682ad2e011d6962d41febf86af2f5fc0c9c8f4b81358ff077f9c96ba0880eaf93541eae94b4fa41dba66dab7fb0201cc9af7c75681e5719b0c95f
0x0cfc9d5b5dcf702a1525f9d4ed1841e8eb8b34434cc82470dd35435f1dbdc73ffb51544b7500394eac9c7fa567868b495326075147a2d809ebbfd43273eeec91
0x0aa78894d894a15933969f5826347439e2c309f2049277a10066c9197840499498ad19ee3d1b291f932ec0890bbdafcec292c4f02a446670cd0084f997e25e2f
0x00f400e3fe40f64032485aad9240ead45a8e1fc83ec08c96db861c0eca155ac898df8673e778e3ccaae8a0f9e6af415fe40e99b0cbc88d7610e536b6041b07fb
0x604f384174c7ed3a0dc5f476569a978266a7943bd775449d1b8b27f4eb8beb99cdf095f9200a2dabb1bc5d68c3d96ea3d47f4d34499d59953669b6c8c093d578
0x4881345cbb299fa7c60ab2d16cb7fe7bf8d14675506ef6eb6037038b5b7092ea0a9e4d0b53ba3904edd99f86717d6ba81dffe44eb5b23c6fd22c91ab73c33021
0xee3d4cc17633afe7e1794fcfd728e0643325e3d130eb1daa39c0c5cb05a200b43876117a182cabdcc3795632aa529473a0c8245f9e4f6e43e54c3f1da28bcb82
0x21f338444e96af31cf44958acf5764844efbddace3b823ed761c340c59ed2685d829818c83eebe8f00f783f1048a53515845536668a9e0c059ade7579a0f4204)'
cost: 1000000
Loading

0 comments on commit 5ec7b59

Please sign in to comment.