Commit Graph

2198 Commits

Author SHA1 Message Date
Dev Kalra 62083eb6d6
[cosmwasm] Move data structures to pyth-sdk-cw (#578)
* pyth-sdk-cw add data structures

* consume pyth-sdk-cw data structure

* pre commit hooks
2023-02-11 00:23:24 +05:30
Jayant Krishnamurthy 3e9472b8ef
[price service] Return VAA without prepending publish time (#577)
* [price service] Return VAA without prepending publish time

* bump version

---------

Co-authored-by: Jayant Krishnamurthy <jkrishnamurthy@jumptrading.com>
2023-02-10 10:15:49 -08:00
Dev Kalra 7f991bbdbc
[cosmwasm] pyth-sdk-cw (#575)
* pyth-sdk-cw

* update contract to use pyth-sdk-cw

* update schema

* update tilt config

* pre commit hooks

* remove raw schema
2023-02-10 22:48:09 +05:30
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
Dev Kalra 138fbd924f
fix build.sh script (#574) 2023-02-10 00:15:16 +05:30
Ali Behjati 981d62c933
[price_service/server] Improve vaa counter metric (#573)
* [price_service/server] Improve vaa counter metric

* Bump the version

* Update comment

* Update comment again
2023-02-09 18:13:30 +01: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
Stanisław Drozd d52f4d406e
wormhole_attester: per-symbol PDAs for attestation state (#567)
* wormhole-attester: Add a last trading publish timestamp field

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

The new field is backed by a new PDA kind for the attester contract, called
'attestation state'. In these PDAs, we store metadata for every price, seeded by its pubkey. Currently, the metadata stores just the
last tradind 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

* wormhole_attester: per-symbol state PDAs, stop using prod accounts

* attester: Use Option to detect if previous state exists

Using Option<> for this makes fallback to latest value more convenient

* wormhole_attester: client AccountMeta typo

* wormhole_attester: fix mutability error

* wormhole_attester: stop using Option<> for on-chain state

* wormhole_attester: remove unused realloc logic for attestation state
2023-02-08 17:04:55 +01:00
Ali Behjati 611b240fe8
[lerna] Update the lock after price server upgrade (#569) 2023-02-07 16:00:06 +01: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
Ali Behjati 85cf4fbaaa
[price-service] Bump version to 2.3.4 (#566) 2023-02-06 13:15:01 +01:00
Ali Behjati 3f7cffd5b2
[price-service/client] Add e2 test (#559) 2023-02-06 10:04:52 +01: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 56e5ed8c1d
[prettier] Prettier sync (#562)
* Prettier

* Pin prettier

* Revert chagne
2023-02-03 14:09:34 +01:00
guibescos 40287f6dbd
[price-service] Make the README better (#560)
* Make the README better

* Now fix p2wrelay

* Space in docker compose
2023-02-03 09:23:55 +01:00
guibescos 8d73d07bbd
Second try (#565) 2023-02-02 21:34:54 -06:00
guibescos ec070f37d6
Add workflow for xc-admin releases (#564) 2023-02-02 20:13:22 -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
Jayant Krishnamurthy abb238f1af
pretty sure this is fine (#542)
Co-authored-by: Jayant Krishnamurthy <jkrishnamurthy@jumptrading.com>
2023-02-02 09:57:24 +01:00
Ali Behjati 58505a21c8
[ethereum] Update truffle config (#552)
* [ethereum] Update truffle config

hdwallet package was updated in the PR bringing lerna to this repo.
In the new package the constructor arguments have changed. This PR updates that and adds a helper function to make the config more clear.

* Update truffle-config.js
2023-02-02 09:55:43 +01:00
guibescos f4d18167cd
[xc-admin] Add dockerfile (#556)
* Add dockerfile

* Dockerfile for xc-admin

* Add dockerfile
2023-02-01 16:57:24 -06:00
guibescos e49fc3a13d
Update package lock (#558) 2023-02-01 16:57:16 -06:00
Jayant Krishnamurthy 91533aa02d
update links (#554)
Co-authored-by: Jayant Krishnamurthy <jkrishnamurthy@jumptrading.com>
2023-02-01 09:48:13 -08: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 34347c8629
[price-service] Remove wasm from readme and workflow (#548)
* Remove wasm from readme and workflow

* Update CI and Readme with lerna

---------

Co-authored-by: Ali Behjati <bahjatia@gmail.com>
2023-02-01 10:18:27 -06:00
guibescos d978315ec8
Wormhole bump to check if anything breaks (#547) 2023-02-01 10:16:26 -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
Jayant Krishnamurthy 3b44d02828
[oracle-swap] Improve oracle-swap frontend (#544)
* stuff

* make this look better

* improving ux

* basic functionality works

* clean up appearance

* 3 seconds

* clean up code a bit

* blah

* change website title and favicon and fix useEffect warning

* actually change website title and fix useEffect warning

* update metadata

* trigger deployment

---------

Co-authored-by: Daniel Chew <cctdaniel@outlook.com>
2023-01-31 11:00:09 -08: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
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