Commit Graph

2755 Commits

Author SHA1 Message Date
Dev Kalra f3ad917c6b
[contract_manager] Support for entropy and evm executor (#1251)
* Add EvmExecute structures for governance

* Add ExecuteAction file

* uint 256 (#1250)

* Add in value field in ExecuteAction

* Add value arg in contract manager

* add tests for evm execute (#1252)

* add tests for evm execute

* add tests for buffer layout

* remove unneccessary test

* accept admin and ownership payload

* rename to add entropy

* update comment

* address comments

* minor rename

---------

Co-authored-by: Amin Moghaddam <amin@pyth.network>
2024-01-29 17:40:53 +05:30
guibescos e1db4aad65
[rust] Remove serde_wormhole patch (#1249)
* Do it

* Do it
2024-01-25 20:05:07 +00:00
guibescos 9697fad077
[solana/cosmwasm/near] Rust tests refactor (#1238)
* Try

* Near

* revert

* Try to add CI

* Cleanup

* Cleanup

* Fmt

* cleanup

* Fix CI

* Cleanup

* Cleanup

* Cleanup rust toolchains

* Pin to tag

* Rename to test-utils

* Add deps

* Checkpoint

* Checkpoint

* Checkpoint

* Fix wormhole stub

* Checkpoint

* Start debugging

* Green

* More green

* Cleanup

* More cleanup

* Cleanup

* Factor create_dummy_price_feed_message

* Format

* Cleanup imports

* Cleanup

* Near cleanup:

* Format

* Refactor constants

* cleanup

* More refactor

* Cleanup more magic numbers

* Remove magic numbers

* Cleanup

* Format

* Remove magic numnber
2024-01-25 18:25:07 +00:00
Dev Kalra 82cd11cc77
[Executor] minor fix (#1246) 2024-01-25 17:41:39 +05:30
guibescos 3e762aa985
[Near] Bump wormhole (#1239)
* Try

* Near

* revert

* Try to add CI

* Cleanup

* Cleanup

* Fmt

* cleanup

* Fix CI

* Cleanup

* Cleanup

* Cleanup rust toolchains

* Pin to tag
2024-01-25 11:31:36 +00:00
Amin Moghaddam 17ea0c19e0
Fix store saving/loading procedure (#1244)
yaml file names were based on contract types but they were using the old format
entropy contracts were not serialized
2024-01-25 15:04:20 +05:30
guibescos 6917c84b0e
[cosmwasm] Use ParsedVaa from wormhole contract (#1237)
* Use ParsedVaa from wormhole contract

* Cleanup

* Pin it

* Test this CI

* Cleanup

* Revert "Test this CI"

This reverts commit 0cb2caedd3d3f7d49d7f53cd0d67fc12be092c2f.

* Use tag
2024-01-24 17:40:15 +00:00
guibescos 35b5736533
[cosmwasm] Fix release ci (#1243)
* Fix ci

* Do it

* Try if it succeeds

* Another try

* Fix
2024-01-24 15:47:17 +00:00
Amin Moghaddam eef8468a22
Entropy support in contract manager (#1242)
* Rename contracts to PriceFeedContracts

* Initial version of EvmEntropyContract
2024-01-24 14:36:10 +01:00
Dev Kalra 70c6db0020
[evm contracts] add version to entropy and executor (#1240)
* add version to entropy and executor

* resolve
2024-01-24 18:05:34 +05:30
Dev Kalra 7db31aa7b5
[governance] add chain ids (#1241)
* add chain ids

* pre commit fix
2024-01-24 17:38:39 +05:30
guibescos 4abbbd1a46
Add rpc url override (#1234) 2024-01-23 12:05:10 +00:00
Ali Behjati c5d02afe53 fix(ethereum): emit update event on parse* methods in MockPyth 2024-01-23 10:46:39 +01:00
Dev Kalra ab10b9f5fa
[fortuna] script to setup a provider for all chains (#1229)
* auto register script

* renaming

* add comments

* update abi file path

* pre commit

* pre commit

* resolved some

* better comment

* resolve comments

* fix bug

* pre commit

* fix

* update version
2024-01-23 01:53:19 +05:30
Ali Behjati 7529b053e3 chore(ethereum): add new networks
This change adds RPC configuration for Filecoin and Hedera and adds the
contract addresses for Filecoin.
2024-01-22 19:36:38 +01:00
Daniel Chew 69e4fee501
add /v2/updates/price/latest endpoint (#1225)
* add /v2/updates/price/latest endpoint

* Update data type in BinaryPriceUpdate struct

* support compressed update data

* Update API endpoint in index.rs

* Update hermes/src/api/types.rs

Co-authored-by: Ali Behjati <bahjatia@gmail.com>

* move to v2 module and address comments

* address more comments

* address more comments

---------

Co-authored-by: Ali Behjati <bahjatia@gmail.com>
2024-01-19 11:53:19 +00:00
Ali Behjati be8447324c fix(target_chains/ethereum): update MockPyth to address Pyth
We've recently changed Pyth to store the feeds on parse* methods if
the updateData provided contains fresh prices. This change adds the
same feature to the MockPyth.
2024-01-19 11:36:11 +00:00
Dev Kalra 658d7ca032
[entropy] set provider fee and uri (#1230)
* set provider fee and uri

* update comment

* pre commit

* abis gen

* update tests
2024-01-18 13:55:48 +05:30
guibescos 112db1d69e
[Solana] Elevate wormhole core bridge dependency to workspace, stop using my branch (#1228)
* Do it

* Do it
2024-01-17 15:56:54 +00:00
guibescos d3ed683b91
[Solana] tests (#1226)
* Checkpoint

* Checkpoint

* Checkpoint

* Nice

* Finally works

* Cleanup

* Cleanup

* Cleanup

* Cleanup

* Checkpoint

* Works

* Final cleanup

* Remove async

* Continue
2024-01-17 15:46:31 +00:00
Ali Behjati b6c39ce7bb chore(ethereum): deploy to new networks 2024-01-11 18:48:19 +01:00
Amin Moghaddam 084f2018a6
[contract-manager] More utility scripts and docs (#1222)
* Remove mainnet condition in check proposal

Testnet contracts can also listen to mainnet governance so this check does not make
sense anymore

* Simple script for executing vaas

* Add script for evm upgrades

* Script to list evm contracts with their versions

* More docs
2024-01-11 13:45:40 +01:00
Amin Moghaddam cee5da93d8
Movement move (#1211)
* [contract manager] Implement WormholeAptosContract and integrate aptos cli with the manager

* Add getChainId for wormhole contracts

* Add movement contracts

* Simplify aptos cli
2024-01-11 12:35:52 +01:00
Jayant Krishnamurthy 7cf7420203
[entropy] add entropy ABIs to solidity sdk (#1219) 2024-01-10 10:57:03 -08:00
Dev Kalra 0eee513bf9
[fortuna] bind provider and contract address (#1218)
* bind provider and contract address

* pre commit
2024-01-10 14:49:34 +05:30
guibescos 43bc28d000
[Solana] readme update (#1217)
* Reuse accounts

* Readme update

* Readme udpate

* revert this one
2024-01-09 12:10:33 +00:00
Amin Moghaddam d0ceb076d8
[evm] Persist price updates if more recent (#1208)
* Persist price info if it is more recent in parse functions

* Refactor setLatestPrice to include checks and event in a single place

* Add test cases
2024-01-09 10:30:20 +01:00
guibescos a94194184b
[solana] Reuse accounts (#1216)
* Reuse accounts

* add comment
2024-01-08 20:08:55 +00:00
guibescos 0ce4c4c8fe
Fix it (#1215) 2024-01-08 20:04:31 +00:00
guibescos e388281dc0
[solana] Fix guardian set owner bug (#1214)
* Fix the owner bug

* Remove seeds in context
2024-01-08 19:58:28 +00:00
guibescos c1cc7127c2
Use official wormhole, introducing VerificationLevel (#1212)
* Do it

* Do it

* Cleanup deps

* Delete this
2024-01-08 19:03:30 +00:00
guibescos 6c45ed81ad
Fix pythnet-sdk ci (#1213)
* Fix CI

* Does this work?
2024-01-08 18:09:31 +00:00
guibescos 3458dd5b7d
[solana] Post update atomic (#1210)
* Post update atomic

* Checkpoint cli

* Fix bug

* Atomic

* Cleanup

* Cleanup

* Cleanup

* Cleanup

* Comment

* Add wormhole errors

* refactor trim signatures
2024-01-08 14:27:03 +00:00
Dev Kalra 2d5e030149
[executor] call contract with value (#1206)
* call contract with value

* address feedback
2024-01-08 17:29:32 +05:30
Dev Kalra 3e05edba24
[fortuna] accept only a secret file as argument (#1204)
* accept file only

* pre commit
2024-01-08 16:24:43 +05:30
Dev Kalra 220e06a62d
test owner upgradable (#1207) 2024-01-07 17:31:34 +05:30
guibescos 1778871b8b
[solana] Post price with 13 signature verifications in 2 transactions (#1209)
* Rebalance transactions so you can post an update in two transactions

* Remove magic number

* Cleanup

* Cleanup

* Add comment
2024-01-05 17:41:35 +00:00
Dev Kalra 1816838c8a
[executor] implement upgradability (#1198)
* get all test to work

* executor upgradable

* update comments

* address feedback

* fix tests
2024-01-04 15:59:29 +05:30
Dev Kalra cd604d56f2
copy dependency too (#1203) 2024-01-04 15:54:23 +05:30
Dev Kalra 009c5cdabe
[audit] Secrets appear in environment variables and command line arguments (#1201)
* accept secret as a file too

* run pre-commit

* address feedback
2024-01-04 14:47:33 +05:30
Amin Moghaddam e1606a42b5
Add Base sepolia + some minor improvements (#1202)
* Add base sepolia

* Fix broken rpc urls

* Small fix
2024-01-03 11:30:17 +01:00
Dev Kalra 6463f1a98f
fix check an active request (#1200) 2023-12-21 15:50:47 +05:30
Dev Kalra 3565ee627e
point entropy sdk docs to pyth docs for current deployments (#1199) 2023-12-21 15:26:26 +05:30
Dev Kalra 5bdc7adf5e
[fortuna] sample config (#1193)
* it should be a sample config

* fix pre commit

* remove config.yaml
2023-12-19 17:23:45 +05:30
Ali Behjati a270b64844 chore(price_service): update spy version and bootstrappers
The new spy has a QUIC upgrade logic for mainnet which happens on
January 16. This upgrade is breaking and all the spy runners should
upgraded their spies.
2023-12-19 11:15:25 +01:00
Ali Behjati 4f7c5e9dcd chore(target_chains/ethereum): update testnet contract addresses 2023-12-19 10:47:49 +01:00
Ali Behjati db13b7b25d address feedbacks 2023-12-19 10:11:34 +01:00
Ali Behjati 39df9a2465 feat(contract_manager): add a script to deploy evm contract 2023-12-19 10:11:34 +01:00
guibescos 6f3dd5cd10
[solana-reciever] update docs (#1192)
* Docs

* Fix

* Do it

* Address feedback
2023-12-18 21:56:02 +07:00
Amin Moghaddam 51d23a2f52
chore(eth) Add zksync-sepolia (#1190) 2023-12-18 10:29:59 +01:00