Commit Graph

2155 Commits

Author SHA1 Message Date
Thomaz Leite 4fc698050b
Pass debug flag to run_or_die in pyth_publisher.py 2023-02-22 16:20:59 -03:00
Thomaz Leite b870da18db
Update solana-devnet service
Expose websocket port and let the service assign a cluster ip
2023-02-22 16:20:59 -03:00
Thomaz Leite 0cee91e5dc
Run `solana logs` in a separate container for solana-devnet 2023-02-22 16:20:59 -03:00
Thomaz Leite 6d8d5f9088
Add updates/namespace config to Tiltfile 2023-02-22 16:20:59 -03:00
Thomaz Leite f75fa1528c
Don't exit multisig script when vault exists
It looks like this condition should have matched the `res.returncode == errno.EEXIST`, but the return code is coming back as `1`, probably due to the wrapping around the subprocess call.

So we match directly on the stdout of the subprocess call and prevent the script from exiting when the output says the vault exists.
2023-02-22 16:20:59 -03:00
Thomaz Leite 2bb9c18b8f
Set debug (enable output) when creating mapping account in pyth 2023-02-22 16:20:59 -03:00
Thomaz Leite dda1e5559e
Add cpu/memory resources to terra-devnet 2023-02-22 16:20:59 -03:00
Thomaz Leite bf976c0bf5
Mount volumes and use initContainer in terra-devnet 2023-02-22 16:20:59 -03:00
Thomaz Leite 511f9da56a
Mount volumes and add initContainer in pyth
This allows the pod to run with readOnlyFilesystem.

The initContainer is needed because the pyth-publisher container will try to write to a directory with pre-existing files from the image and we need that to happen in a separate volume with write access.
2023-02-22 16:20:59 -03:00
Thomaz Leite 01b040c23c
Mount volumes in spy
This allows the pod to run with readOnlyFilesystem
2023-02-22 16:20:59 -03:00
Thomaz Leite ef24b34c32
Set cpu/memory requirements for guardiand 2023-02-22 16:20:59 -03:00
Thomaz Leite 6fc955a4cb
Mount volumes in guardiand
This allows the pod to run with readOnlyFilesystem
2023-02-22 16:20:59 -03:00
Thomaz Leite 5210e23b90
Mount volumes in eth-devnet
This allows the eth-devnet and eth-devnet2 pods to run with readOnlyFilesystem
2023-02-22 16:20:59 -03:00
Thomaz Leite 8481298fa1
Pass debug value to inner function in pyth_utils.py
Otherwise we can't see the output of failing commands in the pyth_pbulishers.py script
2023-02-22 16:20:59 -03:00
Thomaz Leite 508de6efc9
Increase size of solana-devnet ledger volume 2023-02-22 16:20:59 -03:00
Thomaz Leite 2876d9e692
Set cpu/memory requirements on solana-devnet 2023-02-22 16:20:59 -03:00
Thomaz Leite 01ae7bef5c
Set the RPC url of solana-devnet bridge client image to localhost
The previous value - service address - caused the pod to never reach a ready state (because the client couldn't reach the RPC server), and that caused the server to never serve requests because one of the container in the pods behind the service (the client one) never reached a ready state. In other words, this removes a circular dependency between the pod and its service.
2023-02-22 16:20:59 -03:00
Thomaz Leite 73b10c8ddc
Declare volumes where solana-devnet pod write on
This allows the pod to run with the readOnlyFilesystem security context set on its containers.
2023-02-22 16:20:59 -03:00
Thomaz Leite c52ea26658
Take Tiltfile config from env. variables 2023-02-22 16:20:57 -03:00
guibescos 20b18e291d
Batch transactions (#619) 2023-02-21 18:55:44 +01:00
guibescos b34ec4e882
[xc-admin] error if proposals have more than 255 instructions (#618)
* Make the change

* Revert other files

* Remove console log

* Fix typo

* Add new keyword
2023-02-21 10:50:54 -06:00
guibescos ecb0e174d4
[xc-admin] batch wormhole messages (#615)
* Add

* Cleanup

* Add unit test
2023-02-21 11:29:03 +01: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
guibescos 58db641ddd
[xc-admin] Batch instructions (#612)
* Checkpoint

* Working

* Remove console log

* Restore send all

* Fix tests
2023-02-20 15:58:31 +01:00
Stanisław Drozd 8e11caa1ee
Bump wormhole rust crates to v2.14.8, remove rent adjustment (#601)
This change upgrades our wormhole dependency to the current latest
release. It introduces a fix in rent calculation logic, making Solitaire compatible with
PythNet. This lets us get rid of dedicated rent adjustment logic,
which we also remove in this change.
2023-02-20 11:06:57 +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 0b35be7015
[xc-admin] Add activate (#609)
* Add activate

* Rebase

* Remove extra file

* Restore other part of code
2023-02-17 13:49:29 +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
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
Yunhao Zhang 16caff1b04
[solana] Start to implement the solana receiver contract (#557)
* Start to implement the solana receiver contract

* Use "cargo run" instead of the compiled binary under target/debug

* Update cargo dependency

* Add "pyth-" prefix to crate names

* Remove the transfer step in cli which is only necessary for pythnet, not solana
2023-02-15 15:43:51 +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
Ali Behjati 2a906b6d90
[wormhole-attester/sdk/js] Fix Status Enum case (#598) 2023-02-14 16:11:41 +01:00
Dev Kalra 40e42a5b21
[cosmwasm] pyth-sdk-cw update version v1.0.0 (#595)
* update version

* update contract version
2023-02-14 20:22:14 +05:30
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
Dev Kalra d95c9247a2
[cosmwasm] Release setup (#594)
* update comment

* add a workflow

* update contracts readme

* add readme to pyth-sdk-cw
2023-02-14 15:28:31 +05:30
Dev Kalra 6daeb88244
[cosmwasm] Update example contract (#593)
* consume pyth-sdk-cw

* use helper queriers

* expose UnixTimestamp

* add testing examples
2023-02-14 14:55:42 +05:30
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
Dev Kalra c59c00333a
add query helper functions (#587) 2023-02-13 22:50:38 +05:30