Commit Graph

2516 Commits

Author SHA1 Message Date
guibescos 2e63f9a2c4
[Xc admin] upd permissions remote (#541)
* Checkpoint

* Format

* Checkpoint

* Cleanup

* Bring back Pythtestet
2023-01-30 11:43:58 -06:00
Daniel Chew 6fea30bdeb
fix evm example broken links (#543) 2023-01-29 21:54:10 +08: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
Ali Behjati f9e0145352
[wormhole-attester] Remove wasm in js sdk (#537)
* [wormhole-attester] Remove wasm in js sdk

* Cleanup dependencies and unused codes

* Cleanup rust

* Add tests + minor improvements

* Add ignored price status

* Revert cargo lock
2023-01-27 17:11:00 +01: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
Ali Behjati fac47b5bef
[refactor] Move eth example to the target_chains (#535)
This happened because the PR was older than the restructure
2023-01-25 18:32:15 +01:00
Ali Behjati 3b358eec39
[refactor] Remove package-lock.json in the root (#533) 2023-01-25 18:31:38 +01:00
Dev Kalra 8ad5c374bc
update to use cosmwasm release (#532) 2023-01-25 22:54:17 +05:30
Ali Behjati 70fd0a6c15
[wormhole-attester] Move p2w-sdk inside wormhole_attester directory (#534)
* Move p2w-sdk to wormhole_attester

* Update references to the sdk
2023-01-25 18:14:02 +01:00
Jayant Krishnamurthy 3af759b790
[eth] Add token swap example application (#518)
* add swap example

* make example a swap

* whatever

* make swap

* working on this thing

* it kind of works

* whatever

* doc

* cleanup

* pre-commit

* pr comments

* fix tests

* add disclaimer

Co-authored-by: Jayant Krishnamurthy <jkrishnamurthy@jumptrading.com>
2023-01-25 08:38:53 -08:00
Ali Behjati b4cf527f00
[price-service] Add price service client and sdk to this repo (#525)
* Move price service to server directory

* Update references to price service

* Add pyth-common-js as the service client

* Update package names

* Add pyth-sdk-js

* Rename the sdk

* Change readme a bit
2023-01-25 17:17:32 +01: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
Ali Behjati 58f3ddcb13
[price-service] Improve and update tests (#521)
* Update/improve existing tests
* Add test for VaaCache + a little refactor
* Add tests for get_vaa endpoint
* Add tests to tilt
2023-01-24 10:40:24 +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
Dev Kalra a69f5fb9f1
[cosmwasm] add readme to pyth cosmwasm (#520)
* add readme to pyth cosmwasm

* update readme

* update readme
2023-01-23 23:00:32 +05:30
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
njkumr ad2d1ebc51
updating security.md (#517) 2023-01-20 17:12:09 +00:00
Dev Kalra 11d0b3ca55
[cosmwasm] Add example cw contract (#516)
* move example to cosmwasm

* gen schema and update developing.md

* update readme file

* remove example schema gen file

* correct var name

* correct the response of the query

* correct schema output
2023-01-20 20:36:40 +05:30
Dev Kalra 18b1479c4c
[cosmwasm] generate schema (#515)
* schema gen

* include bin for schema gen

* update cosmwasm compiler

* update compiler version

* update their sha digest
2023-01-20 14:20:15 +05:30
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
Stanisław Drozd 7202b9339e
wormhole-attester: Add a previous attestation timestamp field (#488)
* wormhole-attester: Add a previous attestation timestamp field

This change bumps price batch format to v3.1 with a new backwards
compatible field - prev_attestation_time. This is the last time we've
successfully attested the price. If no prior record exists, the
current time is used (the same as attestation_time).

The new field is backed by a new PDA for the attester contract, called
'attestation state'. In this PDA, we store a Pubkey -> Metadata
hashmap for every price. Currently, the metadata stores just the
latest successful attestation timestamp for use with the new field.

* wormhole-attester: Use publish_time instead of attestation_time

* wormhole_attester: use prev_publish_time for non-trading prices
2023-01-19 14:38:45 +01:00
Dev Kalra 1f4c0ba9cc
update key to v4 (#513) 2023-01-19 16:46:26 +05:30
Dev Kalra 5d0acc1a76
[cosmwasm] update contract (#509)
* contract updated

* add tests for the logic
2023-01-19 15:27:59 +05:30
guibescos f3f28b4214
[tilt] make multisig approvals easy (#512)
* For convinience

* Fix comment
2023-01-18 22:05:16 -06:00
Ali Behjati 59b0efbf6c
[price-service] Hotfix cache (#508) 2023-01-18 19:20:48 +01:00
guibescos 0812994745
[tilt] Bump pyth-client to 2.20 (#505)
* Bump to 2.20

* Rename to pyth_oracle.so

* Cleanup
2023-01-18 11:35:02 -06:00
Dev Kalra ff89f36c46
[cosmwasm] Add osmosis testnet config (#499)
* add osmosis testnet config

* empty commit
2023-01-18 15:23:37 +05:30
Ali Behjati e4963f4df3
[price-service] Hotfix leading 0x problem (#507) 2023-01-18 10:39:59 +01:00
Ali Behjati 0eac7246bd
[price-service] Hotfix a serde problem (#503)
* Fix linting error
* Bump patch version
* Revert seqNum to number
2023-01-18 09:51:29 +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
Ali Behjati 5e8b9f868a
[price-service] Add get_vaa_ccip endpoint (#500)
* [price-service] Refactor + bugfix

* [price-service] Add get_vaa_ccip endpoint

* [price-service] Refactor + add retry

* [price-service] Address feedback + handle api error
2023-01-17 18:14:07 +01:00
Ali Behjati 9d2bd87f95
[ethereum] Update receiver guardian set (#493)
* [ethereum] Update receiver guardian set

* Remove the test vaa

* Add docs + reformat

* Empty commit to trigger CI
2023-01-17 16:25:45 +01:00
Stanisław Drozd 99246c24d4
Drozdziak1/refactor p2w autoattest py (#502)
* p2w_autoattest.py: Stop using non-daemon mode

* wormhole_attester: Remove non-daemon mode and its uses, v3.0.0

We used to need non-daemon mode to run a manual healthcheck on the
attester process and its configuration. Currently, we're able to
handle this much better with the build-in healthcheck HTTP
endpoint. For production, we should be able to get rid of
p2w_autoattest.py entirely.

Co-authored-by: Stan Drozd <stan@pyth.network>
2023-01-17 16:01:16 +01:00
Ali Behjati 9cbdeb3588
[price-service] Handle WS error (#501) 2023-01-17 15:42:59 +01: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
Ali Behjati b05845ede5
[price-service] Update wormhole sdk package (#495)
* [price-service] Update wormhole sdk package

Wormhole new sdk does not use wasm and is cleaner. It makes our code one
step closer to no wasm too.

* trigger ci

* Fix pre-commit errors
2023-01-16 19:07:08 +01:00