Commit Graph

64 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
Amin Moghaddam 51d23a2f52
chore(eth) Add zksync-sepolia (#1190) 2023-12-18 10:29:59 +01:00
Amin Moghaddam 8adac4344f
chore(eth) Add bttc (#1172)
* chore(eth) Add bttc
2023-12-08 22:56:16 +08:00
Amin Moghaddam 8a98279fb2
chore(eth) deploy to mode (#1159) 2023-12-03 13:20:38 +03:30
Ali Behjati ff0d9fe65c
chore(eth): update mentions to evm-testnet and hermes-beta (#1151)
We have deployed new Pyth contracts on testnets using the stable
feeds and users no longer need to use hermes-beta in many networks.
This change updates the mentions to them.
2023-11-27 10:12:52 +01:00
Ali Behjati 2c93737366
chore(eth): deploy stable contracts on testnets (#1146)
* chore(eth): deploy stable contracts on testnets

* chore(eth): address feedbacks

* Add op sepolia

---------

Co-authored-by: Amin Moghaddam <amin@pyth.network>
2023-11-24 11:59:04 +01:00
Ali Behjati 9335898ece feat(contract-manager): add script to fetch account balances 2023-11-21 17:53:43 +01:00
Amin Moghaddam 16832aba51
chore(eth): Add tomochain (#1134) 2023-11-07 10:28:52 +01:00
Amin Moghaddam 8d99ac402c
chore(evm) Add more networks (#1121) 2023-10-23 11:41:07 +02:00
Ali Behjati efcfae3ed7 chore(eth): deploy to chiliz mainnet 2023-10-20 17:42:47 +02:00
Ali Behjati 65e21997e4 chore: remove price service mentions in the repo 2023-10-19 09:25:03 +02:00
Amin Moghaddam c0057809f5
chore(evm): deploy to new networks (#1107) 2023-10-18 17:20:44 +02:00
Amin Moghaddam 4bc11b863c
chore(evm): deploy to new networks (#1104)
zetachain testnet
2023-10-17 18:15:17 +02:00
Ali Behjati ad277ec7f2 chore(evm): deploy to new networks
chiliz_spicy and scroll
2023-10-17 10:04:34 +02:00
Amin Moghaddam 6cebfef1df
[evm] Evm runs (#1099)
* Show chain id when checking proposals

* Reduce number of optimizations to 200 in order to defeat the Spurious Dragon
2023-10-13 15:45:35 +02:00
Amin Moghaddam f5698bf509 Add optimism sepolia 2023-10-11 21:12:11 +02:00
Amin Moghaddam 0e67978aea
Add manta (#1085) 2023-10-11 11:05:05 +02:00
Amin Moghaddam 17f489e629 Add boba deployment files 2023-10-09 11:04:42 +02:00
Amin Moghaddam 061f6a028d
Fix sui js sdk and bump contract (#1071)
* Bump sui version

* Add sui cli package to lerna

* Fix bug in fetching price feed object ids after upgrade
2023-09-29 10:52:41 +02:00
Amin Moghaddam a093a8f9c8
Switch from arbitrum goerli to arbitrum sepolia (#1066)
* Change canto rpc address because last one was unreachable

* Deploy on arbitrum sepolia and remove arbitrum goerli
2023-09-27 12:28:09 +02:00
Amin Moghaddam f2ca88176a
Add shimmer mainnet (#1053) 2023-09-15 18:23:12 +02:00
Amin Moghaddam 79ea43553f
Add sepolia testnet (#1051) 2023-09-13 15:53:18 +02:00
Ali Behjati a34f759061 chore(eth): deploy to horizen eon/gobi 2023-09-12 15:10:09 +02:00
Amin Moghaddam 51afd5aef2
Improve contract manager and switch evmos rpc (#1044)
* Small fixes and logging improvement

* Switch evmos rpc as the older one was not working anymore
2023-09-07 15:16:14 +09:00
Amin Moghaddam 497a52bb94 Make contract manager evm chains accept rpc urls 2023-08-28 14:40:09 +02:00
Ali Behjati 9cec35b251 chore(contract_manager): add ronin networks 2023-08-28 14:40:09 +02:00
Amin Moghaddam a7d133d063
[cosmwasm] CosmWasm integration with contract manager (#1025)
* Integrate with contract manager for wormhole script

* Remove deprecated scripts and more integration with contract manager

* Remove cosmwasm tools store

These configs are now held in the contract manager

* Update docs on cosmwasm

* Split cosmwasm package into 2 for fixing dependency issues

* Fix cosmwasm README.md

Co-authored-by: Ali Behjati <bahjatia@gmail.com>
2023-08-25 16:38:42 +02:00
Amin Moghaddam cf78791560
[sui] [contract-manager] Sui cm updates (#1030)
* Minor documentation and improvements on contract manager

* Add published addresses for sui contracts
2023-08-25 14:42:31 +02:00
Mohammad Amin Khashkhashi Moghaddam 78ca49dcc3
[evm] [cosmwasm] Minor cleanup (#1027)
* Remove old cosmwasm address documentation

* Remove old evm migration folder and keep prod-receiver
2023-08-24 11:41:59 +02:00
Mohammad Amin Khashkhashi Moghaddam b9dbd54d5a
[contract-manager] General improvements (#1024)
* Better return types for transaction execution functions

* Use new type for passing PrivateKey

* Small typing improvements

* Stricter liniting

* Rename edge to beta for DeploymentType

* Reduce any usage across the contract manager

* Fix explicit any linting warnings
2023-08-23 16:29:43 +02:00
Mohammad Amin Khashkhashi Moghaddam f316a512c3
[contract-manager] Utility script to fetch fees on different contracts (#1026)
* Utility script to fetch fees on different contracts
2023-08-23 16:28:27 +02:00
Mohammad Amin Khashkhashi Moghaddam 5a714662b0
[sui] Use manual serialization for vaas (#1016)
* Use manual serialization in most of the places

* Update sui js lib and change cli package config
2023-08-22 12:44:43 +02:00
Mohammad Amin Khashkhashi Moghaddam b189937365
[sui] Sui dx improvement (#1011)
* Use the actual wormhole deployment on testnet for sui testnet config

* Simpler deployment script

* Bugfix in upgrade payload deserialization

* Bugfix in fetching upgrade digest

* Small contract manager refactoring and more integration for upgrade script in sui

* Remove old scripts

* Add script for just generating the sui contract digest

* Restrict HotPotatoVector borrow access

The return value of `create_price_infos_hot_potato` should not be inspectable
outside of the package.

* Reorganize the cli lib for sui

* Add minimal README for sui cli

* Update the general README for sui

* Reuse sui sdk logic in contract manager


* Manual serialization of accumulator updates for increasing payload size

Default payload size seems to be 1024 bytes which is not enough for messages
with multiple feeds

* Bump sdk version
2023-08-15 17:56:43 +02:00
Mohammad Amin Khashkhashi Moghaddam e422fb9321
[evm] Wormhole receiver deploy all (#1009)
* Add verification logic for evm set wormhole address instruction

* Minor improvements and cleanup on contract manager evm

* Batch deploy script

* Better docs on verification

* Fix zkSync deployment script and update documentation
2023-08-09 18:22:47 +02:00
Ali Behjati f1eeb94210 chore(eth): add scroll sepolia 2023-08-08 10:21:05 +03:30
Mohammad Amin Khashkhashi Moghaddam 272f3c1984
[contract-manager] Contract manager improvements (#1000)
* Use arrays instead of separate files per config

* Remove redundant endpoint on cosmwasm

* Add functions for upgrading the wormhole guardian sets

* Add wormhole contract management on evm and cosmwasm

* Add getter functions to check what sort of wormhole-deployment is used

* Reorganize contract manager package to be used via other packages

* Remove .env files per network and create a script that outputs the same file

* Use env variables in truffle config and output config in deployments

* Add executeUpdatePriceFeed to contract interface

* Add update pricefeed script

* Add saving functionality to store

* Save new contract configs automatically on Evm

* Make deploy script use the create-env.js internally

* Add utility function to get implementation address for Evm Proxy contracts

* Add shimmer testnet and replace evmos nunfunctional rpc

* New procedure for contract verification

* Update docs and remove duplicate configurations

* Remove shimmer configs

* Read default data source configs via contract manager

* Remove flattened contract before compiling/deploying
2023-08-07 14:13:29 +02:00
Mohammad Amin Khashkhashi Moghaddam 175dfef5bd
Deploy to the latest shimmer testnet (#1001) 2023-08-02 16:59:39 +01:00
optke3 c890d350ae
[Sui 19/x] - sui contract manager additions (#953)
* getSetDataSourcesPayload, getSetStalePriceThresholdPayload

* use parent functions for SuiChain
2023-08-01 13:24:00 -04:00
Mohammad Amin Khashkhashi Moghaddam ce66a36415
Revert aptos address change (#998) 2023-08-01 16:47:36 +01:00
Mohammad Amin Khashkhashi Moghaddam 1d5a96c35a
[aptos] New address for aptos deployments and some small improvements (#996)
* Add abi diff command and small documentation fix

* Redeploy aptos package and update the address
2023-08-01 07:36:52 +01:00