Commit Graph

2081 Commits

Author SHA1 Message Date
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
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