Commit Graph

108 Commits

Author SHA1 Message Date
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