Commit Graph

72 Commits

Author SHA1 Message Date
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
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 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
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
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 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 4796516209
Fix modal for delete product (#768) 2023-04-17 21:34:54 -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 ab779d058f
Reset urlIndex (#700) 2023-03-16 20:46:07 -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
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 bd9c126247
Use proxy rpcs (#659) 2023-03-03 16:32:35 -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
Daniel Chew 8cb720c476
[xc-admin] add permission/depermission publisher keys for all asset types (#620) 2023-02-23 17:43:24 +09:00
guibescos 6f49dfbb4b
Display symbol for new price feeds (#616) 2023-02-21 12:42:38 +09:00
Daniel Chew 562a5cd0fa
make order of ixs deterministic when sending proposal (#613) 2023-02-20 16:51:56 +01:00
Daniel Chew 4b008810e2
[xc-admin] improve approve/reject UX (#608)
* add spinner while approving/rejecting and update result in real time

* fix confirmed/rejected/cancelled section

* remove console.log

* update previous list of proposals to the most updated one after approving/rejecting

* fix precommit

* fix bug

* refactor
2023-02-18 09:07:47 +09:00
guibescos f015e9ed31
Delete publishers before adding (#610) 2023-02-17 14:27:33 +00:00
guibescos 040169a196
[xc-admin] Forbid more than 32 pubs (#607)
* Ban 32 pubs

* Add period
2023-02-17 12:19:53 +00:00