Commit Graph

92 Commits

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