Commit Graph

2782 Commits

Author SHA1 Message Date
Amin Moghaddam 89e67be9af
Check output of build command and panic if not successful (#1278) 2024-02-08 12:31:18 +01:00
Amin Moghaddam 5c8e372ef6
Initial version of js sdk for express relay (#1281) 2024-02-08 10:56:17 +01:00
Dev Kalra ca852ea989
[contract_manager] entropy deployment script (#1280)
* entropy deployment

* entropy deployment script

* remove unused

* refactored

* requested changes

* correct comment
2024-02-08 00:36:46 +05:30
Dev Kalra c330e40277
[contract_manager] support for executor (#1268)
* [contract_manager] support for executor

* refactor

* clean up

* fix ci

* rename method
2024-02-06 17:44:41 +05:30
guibescos 8f62566dbb
[solana] Fix idl (#1279)
* Test

* Fix idl

* Cleanup

* Add the script
2024-02-06 11:36:19 +00:00
guibescos 1d0d27ab3d
Revert pythnet (#1271) 2024-02-02 14:43:15 +00:00
guibescos 3555b9a976
Rename to singular (#1276) 2024-02-02 14:27:47 +00:00
Daniel Chew 2d1324e350
[hermes] add /v2/updates/price/<timestamp> endpoint (#1269)
* add /v2/updates/price/<timestamp> endpoint

* refactor

* refactor imports

* address comments

* address comments
2024-02-02 17:46:38 +09:00
guibescos 604e30ff75
Remove proposer squad (#1273) 2024-02-01 18:56:24 +00:00
Ali Behjati b8aeac327d
chore(wormhole_attester): update cargo packages to fix ci (#1275) 2024-02-01 19:05:55 +01:00
Jayant Krishnamurthy f172adb389
[doc] Provide installation directions for Foundry (#1274)
By default, foundry expects every library to be a git project. This approach does not work well with SDKs in monorepos (like ours). However, you can also install the dependencies using NPM and then use remappings.txt to point to the SDK. This is a little janky, but it seems to be the recommended approach for this case 🤷

see issue here foundry-rs/foundry#1847
2024-02-01 09:52:31 -08:00
guibescos b2c90a310d
[Solana] Load balance treasury (#1267)
* Checkpoint

* Checkpoint

* Cleanup

* Checkpoint, debug

* Go

* Checkpoint

* Fix

* Add new error and test

* Cleanup

* Add another test

* Keep adding errors

* Another test

* Add comment

* More

* Do it

* Again

* Nice

* Checkpoint

* Checkpoint

* Nice
2024-02-01 16:27:35 +00:00
Ali Behjati f5b78e5a8c
chore: remove attester and price service (#1272) 2024-02-01 15:53:07 +00:00
guibescos 7e65fd6597
[solana] reclaim rent (#1266)
* Checkpoint

* Checkpoint

* Cleanup

* Checkpoint, debug

* Go

* Checkpoint

* Fix

* Add new error and test

* Cleanup

* Add another test

* Keep adding errors

* Another test

* Add comment

* More

* Do it

* Again

* Nice

* Ship it
2024-02-01 15:51:24 +00:00
Ali Behjati f01d17e8ad
chore(ethereum): deploy to new networks (#1270)
also update the ethereum sdk js to include the newly deployed contracts
2024-02-01 12:38:05 +01:00
guibescos 1871ca1bf3
[Solana] More tests (#1263)
* Checkpoint

* Checkpoint

* Cleanup

* Checkpoint, debug

* Go

* Checkpoint

* Fix

* Add new error and test

* Cleanup

* Add another test

* Keep adding errors

* Another test

* Add comment

* More

* Do it

* Again

* Nice (#1265)

* Test governance

* Fix
2024-01-31 16:53:48 +00:00
guibescos 2ab72d994d
[solana] Add wrong vaa tests (#1262)
* Checkpoint

* Checkpoint

* Cleanup

* Checkpoint, debug

* Go

* Checkpoint

* Fix

* Add new error and test

* Cleanup

* Add another test

* Keep adding errors

* Another test

* Add comment

* Rename

* Rename
2024-01-31 14:16:43 +00:00
Dev Kalra 4edef3a4ed
[contract_manager] upgrade evm executor contracts (#1264) 2024-01-31 18:58:52 +05:30
Dev Kalra 2952eb0dc2
add sei to evm entropy file (#1261) 2024-01-30 20:00:07 +05:30
guibescos b0c6497fca
[solana] Solana tests 2 (#1255)
* Checkpoint

* Checkpoint

* Cleanup

* Checkpoint, debug

* Go

* update comment

* Add ci

* Update solana workflow

* Rename create_guardians

* Signatures

* Add some randomness

* Add randomness

* More randomness

* Do it

* Fix some clippies

* Change trim signatures
2024-01-30 13:55:23 +00:00
Dev Kalra 11c1fa7101
[executor/contract] add get methods and tests (#1260)
* add methods and tests

* add sequence check
2024-01-30 17:27:35 +05:30
Dev Kalra 343c784dd1
[EVM Price feed] deployments - lightlink, sei, fantom (#1245) 2024-01-30 17:15:30 +05:30
Ali Behjati 9c6bdfdcf9
feat(contract_manager): script for EVM feeds contract deployment (#1254)
* feat(contract_manager): script for EVM feeds contract deployment

This change adds a script to replace truffle deployment scripts. This
gives us more control and flexibility over the deployment process.

* chore: address comments

---------

Co-authored-by: Dev Kalra <kalradev@outlook.com>
2024-01-30 12:11:19 +01:00
Amin Moghaddam 16b60d426e
Add entropy error signatures for easier access and debugging (#1259)
* Add entropy error signatures for easier access and debugging

* Add signatures for ExecutorErrors
2024-01-30 11:32:48 +01:00
Dev Kalra 58411495a0
[Fortuna] register fortuna uri on chain (#1257)
* uri registration

* pre-commit

* use uri to create register uri

* pre commit

* move get register uri to api
2024-01-30 14:00:51 +05:30
Dev Kalra 6870209f45
[xc_admin] print hex instead of number (#1256)
* print hex instead of number

* rename copypubkey

* add spaces
2024-01-29 22:29:30 +05:30
Dev Kalra f7624d666f
[xc_admin_frontend] parse evm execute (#1253)
* parse evm execute

* add copy
2024-01-29 21:55:19 +05:30
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