Commit Graph

156 Commits

Author SHA1 Message Date
guibescos 8a6e0e6e4b
[xc-admin-frontend] Some cleanup (#606)
* Some cleanup

* Fix

* Fix
2023-02-17 12:14:36 +00:00
Daniel Chew b2cae745c8
[xc-admin] improve UI/UX of xc-admin-frontend (#605)
* fetch all proposals instructions and pass to individual proposal row

* add new verified icon

* enable scroll to top when clicking on individual proposal

* split devnet/pythtest and mainnet-beta/pythnet proposals

* show symbols for product and price account when possible

* fix typo

* move getAllIxs to hook and remove verified for draft proposals
2023-02-17 14:05:21 +09:00
guibescos 10818699d4
Add USDC in xc-admin-cli (#604)
* Add USDC in xc-admin-cli

* Improve comment
2023-02-16 14:57:39 +00:00
guibescos 66a7d243ac
[xc-admin] Make execute ready green (#603)
* Make button green

* Darker green
2023-02-15 14:41:24 +00:00
Daniel Chew 950d65746f
fix bug where proposal sometimes doesnt load (#602) 2023-02-15 22:52:30 +09:00
guibescos aba0390495
Refactor (#599) 2023-02-15 12:13:51 +00:00
Daniel Chew 234cac4261
[xc-admin] make UI responsive (#597) 2023-02-15 21:02:51 +09:00
guibescos 0bc2601fe5
[xc-admin] Show rejected instead of cancelled (#600) 2023-02-15 08:43:41 +09:00
Daniel Chew e841989fa2
[xc-admin] remove unused tabs (#596) 2023-02-14 20:55:39 +09:00
guibescos e3831ec0f6
Display proposal cluster (#592) 2023-02-14 11:15:16 +00:00
guibescos 301fd95781
Restore approve (#591) 2023-02-14 11:15:04 +00:00
guibescos c7af4a0838
Crank changes (#588) 2023-02-14 11:14:32 +00:00
guibescos 6d806f78f6
[xc-admin] crank relayer needs to create price and product accounts (#589)
* Add code

* Revert
2023-02-14 11:14:08 +00:00
Daniel Chew f1ead1ca7a
[xc-admin] add verified/unverified tags for individual proposals (#584)
* fix urlsIndex not being reset to 0 when changing cluster

* fix proposals accept/reject buttons not centered when on mobile view

* add verified tag to individual proposals

* fix pre-commit error

* fix color scheme

* address comments
2023-02-14 13:32:18 +09:00
guibescos ca1a03b507
Add product in one step (#586) 2023-02-13 16:49:20 +00:00
guibescos e250049a90
[xc-admin] Enable proposal page for testnet and pythtest (#582)
* Enable proposal page

* Revert this file
2023-02-10 20:49:48 -06:00
guibescos 13e48bdd51
Renames (#581) 2023-02-10 20:12:15 -06:00
guibescos f3925b4447
[xc-admin] Crank : Improve error logging (#580)
* Improve error logging

* Rethrow
2023-02-10 16:21:49 -06:00
Daniel Chew 0e00fb0d4a
[xc-admin] add approve/reject/execute/cancel buttons (#576)
* add approve/reject/execute/cancel buttons

* fix useMultisig hook not returning correct isLoading value
2023-02-10 15:05:06 -06:00
Daniel Chew a478d9f8cc
[xc-admin] add proposals page (#570)
* add proposals page

* address feedback

* show program id for unknown ix

* unwrap wormhole ixs

* fix error

* address feedback

* address comments
2023-02-10 15:15:43 +09:00
guibescos 6fe551cd86
Add remote to general tab (#572) 2023-02-08 23:53:08 -06:00
Daniel Chew 881bf768fb
fix bug where add new price feed doesnt work (#571) 2023-02-09 13:55:07 +09:00
guibescos 747886a089
Xc admin/crank for creating accounts (#568)
* Crank can create accounts

* Cleanup

* Cleanup

* Cleanup

* Comment

* Done
2023-02-06 21:24:57 -06:00
Daniel Chew d331393c81
[xc-admin] add general tab (#551)
* add UpdateProductMetadata page

* add first iteration of general tab

* add more functions

* fix ModalContent to show diff

* add feature to add new price account

* ignore price account address in json when adding new price feeds

* ignore product address and price account address in json for new pricefeed

* address comments

* fix preview crashing

* Restore addresses

* fix error when no price account exists

* fix validation

---------

Co-authored-by: Guillermo Bescos Alapont <gbescos@stanford.edu>
2023-02-07 12:14:03 +09:00
guibescos fc08ec277e
[Xc-admin] ledger (#561)
* Add ledger support

* Checkpoint

* Checkpoint

* Package locK

* Console err
2023-02-03 12:07:15 -06:00
guibescos 8c57458c39
Remove code that checks duplicated (#563) 2023-02-03 09:16:18 +09:00
Daniel Chew f1c5aba31b
[xc_admin] add update product metadata (#550) 2023-02-03 07:28:06 +09:00
guibescos f4d18167cd
[xc-admin] Add dockerfile (#556)
* Add dockerfile

* Dockerfile for xc-admin

* Add dockerfile
2023-02-01 16:57:24 -06:00
Ali Behjati 481c61bc2c
[refactor] Improve typescript codebase (#553)
* Use base tsconfig

* Add lint check

* Fix tilt
2023-02-01 11:26:23 -06:00
guibescos 5cf1afbc2f
[Xc_admin] hyphen to underscore (#545)
* Checkpoint

* New package lock

* Trigger CI

* Trigger CI

* Typo

* Package update after rebase

* CI

---------

Co-authored-by: Ali Behjati <bahjatia@gmail.com>
2023-01-31 15:36:56 -06:00
Ali Behjati 4c5d0d5e1b
[refactor] Add global lerna (#546)
* Move lerna to the top

* Set version to independent

Packages are versioned independently

* Update packages and the lock

* Add build cache and better reference

* Add lerna docker base

* Add wormhole_attester sdk and some minor impr

* Update tsconfig to fix outDir impact by composite

* Update eth package

* Update p2w to use solidity-sdk

* Change xc-admin CI to lerna CI action

* Add more packages to the list + bugfixes

* Update dockerfiles to have tilt working

* Format the code

* Fix some issues

* Fix the change of usePyth.ts

* lerna build fix

* Fix foundry
2023-01-31 17:09:31 +01:00
guibescos 2e63f9a2c4
[Xc admin] upd permissions remote (#541)
* Checkpoint

* Format

* Checkpoint

* Cleanup

* Bring back Pythtestet
2023-01-30 11:43:58 -06:00
guibescos e0a8b2ef6e
[xc-admin] Enable remote program upgrade (#540)
* Checkpoint

* Checkpoint

* Format
2023-01-27 18:03:59 -06:00
guibescos 94e97e6f14
More log and fix OFFSET bug (#538) 2023-01-27 18:03:03 -06:00
guibescos bb4a59f126
Fix import (#539) 2023-01-27 18:02:50 -06:00
guibescos 6f700d17f0
[Xc admin] init price (#526)
* Format

* Change exponent

* Format
2023-01-27 13:27:03 -06:00
guibescos fdb2c5e012
[Xc admin] centralize some things (#527)
* Checkpoint

* Checkpoint

* Prettify

* Fix typo

* Move bpf upgradable loader

* Add file
2023-01-27 12:17:58 -06:00
guibescos 277599b458
[xc-admin] Add pythnet relayer (#511)
* Add pythnet relayer

* Bugfix

* Reset clusters

* Revert cluster change

* Add comment
2023-01-26 10:35:00 -06:00
guibescos 5900550008
[remote-executor] Add idl (#510)
* Add idl

* Move
2023-01-26 10:26:50 -06:00
guibescos d673d2ba92
Pythtest feature (#536) 2023-01-26 09:00:06 -06:00
Daniel Chew e02afb7ee9
[xc-admin] add add/remove publishers page (#530)
* add initial add/remove publishers page

* add download/upload json feature and send proposal

* show connect wallet button in change modal when wallet is not connected

* address comments

* use symbol instead of price account key

* sort json

* fix sorting bug

* remove prettify while sorting

* fix upload bug

* fix reordering bug
2023-01-26 18:37:14 +09:00
Daniel Chew 16b7977179
sort symbols (#529) 2023-01-25 14:24:47 +09:00
Daniel Chew fe3816f69a
[xc-admin] frontend update permissions bugfix (#528)
* fix bug where setting new pubkey and reverting the change doesnt reflect properly

* fix bug where switching to cluster with permissionAccount and switching back doesnt show default value

* remove console.log
2023-01-25 14:14:53 +09:00
Daniel Chew 2c6eb7d1e3
[xc-admin] min pub page (#519) 2023-01-25 13:50:23 +09:00
Daniel Chew 227079be0e
remove approve tx after activating tx (#523) 2023-01-24 12:26:44 -06:00
Ali Behjati 084acdb57e
[refactor] Convert hyphen to underscore in the directory tree (#524)
* Move price-service to price_service

* Update references to price-service

* Rename target-chains to target_chains

* Update references to target-chains

* Rename tilt-devnet to tilt_devnet

* Update references to tilt-devnet

* Rename wormhole-attester to wormhole_attester

* Update references to wormhole-attester

* Rename multisig-wh-message-builder

* Update references to wh-msg-bldr

* Fix dockerfile issue

* Rename remove-executor to remote_executor

* Update references to remote-executor

* Rename xc-governance-sdk-js

* Update references to the governance sdk

* Move docker-images to docker_images

* Update references to docker-images
2023-01-24 19:06:22 +01:00
guibescos d2411b7d7f
[xc-admin] CLI command to upgrade solana programs (#522)
* Format checkpoint

* Add comment

* Add comment
2023-01-23 15:25:28 -06:00
Daniel Chew 88d8039c36
[xc-admin] add feature to send proposal to update permissions (#498)
* fix wallet hydration error

* update package-lock.json

* add edit feature

* [wip] sqds proposal

* [wip] fix multisig hook

* checkpoint

* update UI

* fix error

* refactor

* make Modal reusable

* address comments
2023-01-22 23:26:53 +09:00
Ali Behjati a7accadce3
[xc-governance-sdk] Add cosmwasm upgrade ix (#514)
* [xc-governance-sdk] Add cosmwasm upgrade ix

* Format the file
2023-01-20 09:38:27 +01:00
guibescos 1940a0bb2e
[xc-admin] Add wormhole logic to the crank-executor (#504)
* Add wormhole and fix some bugs

* Export WormholeMultisigInstruction

* Restore some unrelated parts of the code

* Cleanup

* Don't change this file
2023-01-17 17:19:13 -06:00
guibescos 1f64ce52b7
[xc-admin] multisig hook (#496)
* Fix next config

* Checkpoint

* Checkpoint

* Cleanup

* Cleanup
2023-01-17 12:12:29 -06:00
Daniel Chew 47c9993675
[xc-admin] permission accounts (#494)
* Rework pyth hooks

* xc admin/add min pub page (#492)

* add min pubs page

* add wallet

* update connect wallet button

* fix header

* add ClusterSwitch

* fix header css

* add update permissions tab

* fix default tab

* show default value when permission account does not exists

* use table and add copy text function

* update package-lock.json

* update package-lock.json

* trigger deployment

* remove unused icon

* capitalize tabInfo

* remove -1 index check

* refactor

* refactor TabInfo to TAB_INFO

* trigger deployment

* remove unused icon

Co-authored-by: Guillermo Bescos Alapont <gbescos@stanford.edu>
2023-01-17 11:04:42 +09:00
guibescos d2d82136c9
Sort mapping accounts (#497) 2023-01-16 19:40:25 -06:00
guibescos e55a3bbb96
[xc-admin] rework pyth hook (#490)
* Rework pyth hooks

* Delete unused files

* Checkpoint

* xc admin/add min pub page (#492)

* add min pubs page

* add wallet

* update connect wallet button

* fix header

* add ClusterSwitch

* fix header css

* Cleanup

Co-authored-by: Daniel Chew <cctdaniel@outlook.com>
2023-01-16 13:14:18 -06:00
guibescos c10ed691da
Title (#491) 2023-01-14 14:26:58 -06:00
Ali Behjati daad5c6dc5
[governance] move governance related components under this directory (#489)
* [governance] bring related stuff in governance dir

* [governance] fix changes
2023-01-13 18:58:44 +01:00