Commit Graph

2409 Commits

Author SHA1 Message Date
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
guibescos ca1a03b507
Add product in one step (#586) 2023-02-13 16:49:20 +00:00
Dev Kalra 66a46dd488
add testing module (#585) 2023-02-13 22:05:58 +05:30
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
guibescos 69bafc74c1
Commit package-lock from previous PR (#579) 2023-02-10 15:46:51 -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
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