Commit Graph

192 Commits

Author SHA1 Message Date
Ali Behjati b6c39ce7bb chore(ethereum): deploy to new networks 2024-01-11 18:48:19 +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
Amin Moghaddam 51d23a2f52
chore(eth) Add zksync-sepolia (#1190) 2023-12-18 10:29:59 +01:00
guibescos 1d82f92d80
[xc-admin] Add activate button for drafts (#1183)
* add proposals

* Revert

* rename

* Add waiting before retrying

* Increase retries, add time between retries

* Bump retries to 10

* Do it

* Update
2023-12-13 22:32:01 +07:00
guibescos f12df1528b
Update wormhole endpoint (#1171) 2023-12-09 00:54:38 +07:00
Amin Moghaddam 8adac4344f
chore(eth) Add bttc (#1172)
* chore(eth) Add bttc
2023-12-08 22:56:16 +08:00
guibescos 003cba26d6
[xc-admin-proposer] Handle RPC errors (#1167)
* Fix server

* Add some comments
2023-12-06 13:27:56 +07:00
guibescos e6d04f9914
Names (#1164) 2023-12-04 19:53:57 +07:00
guibescos 5de008fb92
Add staking program and mesh program to xc-admin UI (#1157)
* Do it

* Small bug

* Fix CI

* Address comments
2023-12-04 14:37:34 +07:00
Amin Moghaddam 8a98279fb2
chore(eth) deploy to mode (#1159) 2023-12-03 13:20:38 +03:30
guibescos 57b1367b91
Add staking instructions to xc-admin (#1160)
* Do it

* Add xc-admin-cli command for proposing deactivate-stake instructions

* Cleanup

---------

Co-authored-by: Thomaz Leite <thomaz@pyth.network>
2023-12-02 01:55:51 +00:00
Jayant Krishnamurthy 99be611684
[stacks] Add constants for Stacks (#1158)
* add constants for stacks

* di
2023-11-30 11:57:15 -08:00
guibescos f1bec26581
Do it (#1155) 2023-11-29 17:12:10 +00: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
guibescos 7f54f4226b
Ship 64 pubs (#1144) 2023-11-23 21:21:07 +00: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 49d1a579c3 chore: cleanup repo 2023-10-18 18:32:42 +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
guibescos 5c0c252cee
Refactor MultisigInstruction (#1098)
* Refactor unknown

* Cleanup

* Cleanup further
2023-10-13 15:12:13 +01:00
guibescos f72c0d93ad
[xc-admin] add bpf loader (#1097)
* Add bpf loader

* Add close program

* Cleanup

* Add comment

* Show in xc-admin

* Remove console log

* Fix comment
2023-10-13 13:48:20 +01:00
guibescos b158f28c58
Fix the race condition by putting the setters at the end of the function (#1091) 2023-10-12 11:41:01 +01:00
guibescos 9d98c71ef8
[xc-admin-frontend] Add rates (#1094)
* Add rates

* Add commodities
2023-10-12 11:40:50 +01: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
guibescos 4bfa1c38f6
Allow changing the symbol (#1075)
* Allow changing the symbol

* Format
2023-10-04 15:39:43 +01:00
Ali Behjati a34f759061 chore(eth): deploy to horizen eon/gobi 2023-09-12 15:10:09 +02:00
guibescos b91360ab6b
Add system instruction (#1046)
* Add system instruction

* Update string logic

* Fix comments
2023-09-11 20:34:51 +01:00
guibescos f7699bb6b0
Update dockerfile (#1041)
* Update dockerfile

* Drive by v4

* Reduce scope

* Revert dockerfile

* Revert dockerfile changes

* Cleanup the other dockerfile

* Remove contracts dir

* Remove old cli
2023-09-04 16:19:39 +01:00
guibescos cfdfb9d2fb
Price account v2 for remote clusters (#1040) 2023-09-04 14:37:19 +01:00
Ali Behjati 9cec35b251 chore(contract_manager): add ronin networks 2023-08-28 14:40:09 +02:00
Ali Behjati f1eeb94210 chore(eth): add scroll sepolia 2023-08-08 10:21:05 +03:30
Mohammad Amin Khashkhashi Moghaddam 7674a3a07c
[docs] More documentation on different packages (#992)
* More documentation on different packages
2023-07-28 17:11:29 +01:00
Mohammad Amin Khashkhashi Moghaddam 49fe0c96e6
[xc-admin] Governance continue proposal (#993)
* Add ability to continue constructing a proposal

* Bugfix on cosmwasm proposal checking
2023-07-28 15:41:19 +01:00
Ali Behjati 928027a270
chore(ethereum): deploy to base and syndr_testnet (#988) 2023-07-27 16:16:45 +03:30
Mohammad Amin Khashkhashi Moghaddam 31ad2b66a3
[contract-manager] Evm upgrades (#971)
* Add evm contract infos + minor improvements

* Throw error if chainId is invalid instead of using 0 silently

* Add wormholeChainName property for chains to use in governance actions

* Return all signatures upon proposal execution

* Unify privateKey schema for contract manager

* Implement getLastExecutedGovernanceSequence for all contract types

* Unify getPriceFeed interface between contracts

* Add update price feed for evm

* Adjust gasPrice on evm

* Add setter for datasources + add global chain for universal governance instructions

* Add utility function to execute arbitrary governance Vaa

* Remove redundant contract

* Better error message when gas is not enough on deployment

* Add aptos mainnet config

* Restore sui override of setFee governance message generation

* Export executeVaa function

* Address PR feedbacks

* More documentation and cleanup

* Remove INFURA_KEY logic and replace RPC endpoints with public ones

* EVMContract -> EvmContract, EVMChain -> EvmChain

* Make executeUpdatePriceFeed interface on cosmos similar to evm

* Better error message and more comment regarding gas
2023-07-25 08:14:31 +02:00
Mohammad Amin Khashkhashi Moghaddam db6bba9526
Show multisig network on proposal page (#975) 2023-07-24 20:40:07 +03:30
Mohammad Amin Khashkhashi Moghaddam 4c69764b5a
[xc-admin-frontend] Rename title for clarification (#973)
We only check for pyth oracle programs addresses not all pyth programs,
the name was misleading
2023-07-24 10:51:05 +02:00
Daniel Chew 59d8742da3
break when key is too long (#972) 2023-07-24 15:27:51 +09:00
Mohammad Amin Khashkhashi Moghaddam 813ad34b68
[xc-admin-frontend] XC admin frontend fix part2 (#970)
* Add some missing hook dependencies

* Smarter target cluster detection

* Show approved/rejected count for active proposals
2023-07-21 16:06:28 +02:00
Mohammad Amin Khashkhashi Moghaddam fbd004f359
[xc-admin-frontend] Xc admin minor fixes (#968)
* Simplify refresh logic

* Bump wormhole-sdk version to include new chain names
2023-07-21 07:31:55 +02:00
Mohammad Amin Khashkhashi Moghaddam 0e018b44c1
Reset currentProposalPubkey when it is removed from the url (#967) 2023-07-20 13:06:49 +02:00
Mohammad Amin Khashkhashi Moghaddam f595d61ccd
Xc admin frontend refactor (#964)
* Remove fetching proposal internals on page load

Without the internals we can not show the verified/voted icons in the proposals page,
therefore we have to remove them

* Refactor squads creation based on wallet

Previously there was a logic to use a separate wallet for proposeSquads
but now it is removed and we can unify vote/propose squads

* Disable propose button if no action and show hint

* Expose refresh functionality on multisig proposals

* Fetch instructions within proposal and calculate voted/verified properties inside

* Extract WormholeInstructionView as a separate component

Moved some name mappings to pythContext so we don't need prop drilling

* Add support for parsing governance instructions + minor refactors

* Add ability to show / approve upgrade proposals

* fix buttons overflow

* Use the actual targetChainId instead of relying on the cluster context for instruction visualization

* Do not fetch the data again if the multisigCluster remains the same

---------

Co-authored-by: Daniel Chew <cctdaniel@outlook.com>
2023-07-20 12:18:05 +02:00
Mohammad Amin Khashkhashi Moghaddam 03185cb17c
Fix Uint64BE encoding/decoding on browsers (#965)
Inspired by https://github.com/solana-labs/buffer-layout/blob/master/src/Layout.ts
2023-07-19 16:33:15 +02:00
Ali Behjati e63490be48
[eth] Add EOS network (#963) 2023-07-18 23:00:47 +03:30
Mohammad Amin Khashkhashi Moghaddam c732fcf586
Abolish xc governance sdk (#957)
* Replace xc-governance-sdk with xc_admin_common package

xc_admin_package was not using the CHAIN overrides declared in the governance-sdk so it was moved
to that package as well

* Replace xc-governance-sdk with xc_admin_common in other packages

* Remove the package and all of its references

* Fix tests

* Fix bug in GovernanceDataSourceTransfer encoding

* Rename all references to the old package

* Redeploy neutron_testnet contract with new chain id

* Move SetWormholeAddress to separate file
2023-07-17 15:24:54 +02:00
Mohammad Amin Khashkhashi Moghaddam 6c52eb6606
Contract manager upgrades (#952)
* Reuse xc_governance logic as much as possible in contract manager

Some functions in xc_governance were moved and refactored in order to become usable in
contract manager

* Add getBaseUpdateFee function for contract manager

* Add method for executeGovernanceInstructions

* Move up SetFee method to base class

* Add governance upgrade instruction

* Move governance payload generators out of contract classes into chain classes

* Switch from json to yaml for storage

* Remove test script for ci

* Add minimal aptos implementation

* Remove global Chains and Contracts variable and put them in DefaultStore

* Move aptos getClient function to Chain class

* Make denom field in baseUpdateFee optional and remove it from non-cosmwasm chains

* More documentation and minor fixes

* Add vaults storage

Although the set of vaults used in testing/production is just 2 it's a good idea to
not set them as predefined constants. So that for development purposes, we can create
new vaults and test them on the fly without changing too many places.
2023-07-14 12:14:24 +02:00
Jayant Krishnamurthy 78917f6d65
Implement PythGovernanceAction (#906)
* blah

* rename workflow

* grrr

* ok progress

* ok progress

* ok progress

* grrr

* ok

* fix

* fix layout
2023-07-05 08:35:47 -07:00
guibescos 387f172fc6
Update readme (#939) 2023-07-04 14:49:38 +01:00
Jayant Krishnamurthy 92aa157e85
fix docker build (#898) 2023-06-16 10:39:26 -07:00
Jayant Krishnamurthy 25c1ac2c33
[xc-admin] Contract management tool (#885)
* cleanup

* blah

* gr

* stuff

* hm

* hmm

* wtf

* ah fix this

* ok finally it does something

* ok

* hrm

* hrm

* blah

* blah
2023-06-15 07:17:20 -07:00
guibescos e1377e5627
[Xc admin cli] add and remove members (#887)
* Checkpoint

* Checkpoint

* Checkpoint

* Checkpoint

* Checkpoint

* Checkpoint

* Checkpoint

* Comment

* Comment
2023-06-15 13:08:14 +01:00
swimricky 23f676f99a
feat(xc-admin): enable message buffer for pythnet (#890) 2023-06-14 15:07:18 +01:00
Jayant Krishnamurthy 3ffcf12a70
Encapsulate parameters to proposeX methods (#870)
* refactor

* stuff

* i think this works

* cleanup

* fix
2023-06-13 10:23:01 -07:00
Ali Behjati c1ccef239c
[xc-admin] Fix frontend Dockerfile (#873) 2023-06-09 21:03:08 +02:00
Ali Behjati 95ca9d1d92
[xc-admin] Add message buffer instructions (#869)
* [xc-admin] Add message buffer instructions

* Use coral-xyz/anchor

* Address feedbacks

* Address feedbacks
2023-06-09 19:56:40 +02:00
Ali Behjati 183081cc20
Expose pythnet message buffer idls (#865) 2023-06-09 14:10:28 +02:00
guibescos e7b6dabdd8
Increase payload to 50MB (#848) 2023-05-30 09:46:36 -05:00
guibescos ce8e064c98
Fix race condition once and for all (#847) 2023-05-26 20:26:38 -05:00
guibescos 479a2d8b09
Make proposer server url a serverside prop (#840)
* Make proposer server url a serverside prop

* Make low caps
2023-05-24 15:37:26 -05:00
guibescos ddc0b48118
[Xc admin] frontend to use server (#832)
* Import axios

* Switch to axios

* Fix

* Error handling
2023-05-23 10:32:48 -05:00
guibescos 4f67343323
Test different precommit level (#831) 2023-05-22 12:56:06 -05:00
guibescos f70f163f72
Build proposer server (#820) 2023-05-16 16:59:11 -05:00
guibescos e243e6734b
[Xc admin] proposer server (#816)
* Proposer server

* Add package-lock.json

* Add rpc as enviornment variables
2023-05-16 13:15:08 -05:00
guibescos 4796516209
Fix modal for delete product (#768) 2023-04-17 21:34:54 -05:00
guibescos 3aa953e153
[xc-admin] Add support for arbitrary wormhole payloads (#759)
* Add vaa

* Remove the command from multisig_wh_message_builder

* Add comment to the multisig addresses
2023-04-13 11:51:57 -05:00
guibescos 99ed193764
[xc-admin] Add ser/de for Cosmos Upgrades (#758)
* Add ser/de for Cosmos Upgrades

* Add comment

* Fix print
2023-04-13 11:51:47 -05:00
guibescos f5d11c248d
Rename init price (#755)
* Rename init price

* Set exponent
2023-04-10 20:30:58 -05:00
guibescos e476199c2c
[xc-admin] Add pythtest-crosschain (#749)
* Add pythtest-crosschain

* Restore urls
2023-04-06 17:48:54 -05:00
guibescos 3842c9460b
Enable exponent update (#750) 2023-04-06 13:34:55 -05:00
guibescos 8e8fcf133b
[xc-admin] Introduce the new UPGRADE_OPS_KEY (#716)
* Do it

* Cleanup
2023-03-23 17:03:27 -05:00
guibescos f62676d11d
Add send sol command (#715) 2023-03-23 17:03:19 -05:00
Jayant Krishnamurthy e995a2b89e
Add CI workflow to publish javascript packages (#707)
* workflows

* try private

* private

* more private

* update files

* fix workflow

* hm

* hm

* bump version

* bump version

* another bump

* text

* update readme

* update package lock
2023-03-21 12:25:30 -07:00
guibescos ab779d058f
Reset urlIndex (#700) 2023-03-16 20:46:07 -05:00
guibescos eaf5f45212
Fix typo (#692) 2023-03-14 22:48:36 -05:00
Daniel Chew d4551a01ee
change voted icon (#684) 2023-03-11 11:18:11 +09:00
Daniel Chew 51f0c10756
[xc-admin] fix xc-admin-frontend bugs (#681)
* allow proposing without connecting wallet

* show voted icon on proposals
2023-03-10 12:32:47 -06:00
Daniel Chew 5aa38d2ba1
also fix signer mapping ui for rejected and cancelled (#678) 2023-03-09 23:57:24 +09:00
Daniel Chew c6d9b8df50
change signer mapping ui (#677) 2023-03-08 23:26:23 -06:00
Daniel Chew 06d58bad5e
fix directory error (#676) 2023-03-09 14:01:58 +09:00
Daniel Chew af77a2a987
[xc-admin] improve xc-admin-frontend UI/UX (#673)
* add expired status

* add proposal status filter

* allow proposals to be proposed from ops key

* check if ops keypair file exists

* update mappings

* fix UpdatePermissions

* trigger deployment

* fix precommit

* address comments

* use SECRETS_BASE_PATH

* fix path

* fix
2023-03-09 13:42:54 +09:00
guibescos cafb0eb4bc
Fix lerna command (#675) 2023-03-09 13:34:05 +09:00
guibescos 590d5b0414
[xc-admin-frontend] Stop reloading proposals when you connect a wallet (#670)
* Make wallet simpler

* Fix
2023-03-07 20:41:42 -06:00
guibescos 64255d4504
Fix build process (#672) 2023-03-07 19:23:23 -06:00
Daniel Chew 60b1a3688b
[xc-admin] enable publisher key and multisig signer key mapping when available (#663)
* enable publisher key and multisig signer key mapping when available

* fix permission/depermission button border radius

* address comments and add mapping filepath

* fix precommit error
2023-03-07 14:44:29 +09:00
Daniel Chew 55a8f85254
[xc-admin] add README to xc_admin_cli (#614) 2023-03-07 11:47:39 +09:00
guibescos 66a3856585
Extend readme (#665) 2023-03-06 16:54:44 -06:00
guibescos ee9ee50959
Remove comment, vaults have been created (#664) 2023-03-06 16:27:18 -06:00
guibescos 33d2ffc487
Do it (#661) 2023-03-03 17:31:54 -06:00
guibescos 081a8bc12a
Don't throw error if all VAAs were relayed (#660) 2023-03-03 16:41:23 -06:00
guibescos bd9c126247
Use proxy rpcs (#659) 2023-03-03 16:32:35 -06:00
guibescos a0db4266ba
Fix relaying (#658) 2023-03-03 15:42:37 -06:00
Daniel Chew 40bc1e67d0
[xc-admin] add Dockerfile for xc-admin-frontend (#656)
* add Dockerfile for xc-admin-frontend

* add newline

* add gh workflow to push xc-admin-frontend image

* Push on every commit to main

---------

Co-authored-by: Guillermo Bescos <gbescos@stanford.edu>
2023-03-03 13:23:45 -06:00
Daniel Chew 5c16987153
[xc-admin] delete product (#651)
* add delete product feature

* fix delete product bug

* refactor

* fix precommit
2023-03-03 13:17:58 +09:00
Daniel Chew c3ca23f3b6
remove duplicate publishers from json (#646) 2023-03-01 09:35:53 -06:00
Jayant Krishnamurthy b9430aee81
[sdk] Add new SDK packages to lerna (#630) 2023-02-28 09:14:52 +01:00
guibescos a549d535f8
[xc-admin] Output symbol when more than 32 publishers (#625)
* Make change

* Add check for duplicates

* Remove console log
2023-02-24 01:32:00 +01:00