Commit Graph

1889 Commits

Author SHA1 Message Date
guibescos 4b37fda80c
Guibescos/aptos example 2 (#327)
* Add example

* Subfolder for my example

* Ready to merge

* Cleanup

* Gitignore right

* Renaming

* Named address reset

* Bump pyth-common-js

* Cleanup

* More cleanup

* Cleanup

* dev addresses

* Link to addresses

* Rename app

* Add link

* Fix

* refactor

* Renamed

* Rename

* Add import statement for Price

* Update to pass vaa to get_update_fee

* Update README

* Rename directory

* Comments

* Add recency check

* Format

* Cleanup, remove bad practices

* Better comments

* Get rid of recency check

* Update README
2022-10-13 11:48:57 -05:00
Ali Behjati f77987df70
Fix logging of vaa as hex (#345) 2022-10-13 11:08:02 -05:00
Tom Pointon 412ef5e221
Fix example to reflect breaking api change (#344) 2022-10-13 14:55:20 +01:00
Tom Pointon b820c78ac1
Add comment clarifying deployed addresses (#343) 2022-10-12 14:47:35 +01:00
Tom Pointon 86df3ef997
Make imports used for tests test only (#342) 2022-10-12 14:47:26 +01:00
Tom Pointon 13f2d481d5
Charge update fees per VAA submitted (#340)
* Charge update fees per VAA submitted

* Rename UpdateFee struct to BaseUpdateFee

* Update comment
2022-10-11 18:17:02 +01:00
Tom Pointon dec51832bf
Start all pyth tilt pods by default (#339)
* Start all pyth tilt pods by default

* Remove pyth tiltfile variable
2022-10-11 14:15:34 +01:00
Stanisław Drozd b3dbc96086
pyth_publisher.py: Add a new symbol every 2 minutes (#331)
This change will help us verify the correctness of the mapping
crawling logic in p2w-attest.
2022-10-11 13:46:26 +02:00
Stanisław Drozd 6407eaa244
pyth2wormhole-client:should_resend(): optimize interval-only batches (#338)
* pyth2wormhole-client:should_resend(): optimize interval-only batches

Most attestation conditions in prod are interval-only. This change
ensures that interval-only batches don't waste time on the on-chain
state lookup request.

* pyth2wormhole: Fix build error, redundant new_symbol_states decl

* pyth2wormhole-client: is_onchain -> needs_onchain_lookup

* pyth2wormhole-client: typo
2022-10-10 20:57:23 +02:00
Tom Pointon 124589da09
Only register account to receive coins if already unregistered (#336) 2022-10-10 17:13:15 +01:00
Tom Pointon 9d4a6b88c4
Ensure initialization data source emitter address and chain ids are the same length (#337) 2022-10-10 15:40:30 +01:00
Stanisław Drozd 44559109f0
p2w-client: Remove --log-level, rely on RUST_LOG, provide default (#333) 2022-10-10 13:25:19 +02:00
Tom Pointon 207616d47c
Add explanatory comments (#335)
* Add explanatory comments

* Add second best practices link
2022-10-07 14:48:23 +01:00
Stan Drozd 660160b31a
pyth2wormhole-client: Switch to multi-threaded tokio runtime 2022-10-06 19:04:31 +02:00
Stanisław Drozd ef37c86b32
p2w-client: move rpc_interval to config, test fast rate accuracy (#334) 2022-10-06 17:44:26 +02:00
Tom Pointon e97b3bd7cf
Add update_price_feeds_if_fresh_with_funder (#329) 2022-10-06 11:28:33 +01:00
Ali Behjati d7f436a856
Cascade Pyth SDK JS update to downstream packages (#326)
* Fix annoying ethereum problem

* Update p2w-sdk

* rename + lint + format + bump to 1.0.0

* Update price service

* Bump version + format + add lint

* Fix price service linting issues

* Fix package rename issue

* Update package lock of dependencies

local dependency is aweful!

* Fix exclusion bug
2022-10-06 09:21:04 +02:00
Tom Pointon 5ff244941c
Add example Aptos contract (#325)
* Add example Aptos contract

* Remove unneeded dependencies

* Remove comment
2022-10-05 13:46:19 +01:00
Tom Pointon 51080bcf5f
Pyth Aptos Target Chain Contract (#291)
Initial pyth aptos contract
2022-10-04 14:59:34 +01:00
Stanisław Drozd c81a420a79
pyth2wormhole/migrate: add pythnet rent adjustment (#315)
* pyth2wormhole/migrate: add pythnet rent adjustment

* p2w/migrate: leave a note about rent calculation
2022-10-04 13:13:14 +02:00
Ali Behjati 983813d2f8
Use sdk getIxAuthorityPDA + format (#324) 2022-09-30 19:49:58 +02:00
Jayant Krishnamurthy 575199f724
set is-active fixes (#323)
* merge

* use the right command here

* fix handling of boolean

* cleanup

Co-authored-by: Jayant Krishnamurthy <jkrishnamurthy@jumptrading.com>
2022-09-30 09:00:48 -07:00
Daniel Chew 29f53df71c
add support to execute tx through squads ui (#322) 2022-09-30 21:24:16 +08:00
Ali Behjati 8760bfb739
Add deployment files (#320) 2022-09-30 10:38:05 +02:00
guibescos 3a56d0a8d9
Fix error (#321) 2022-09-29 23:03:03 -05:00
Jayant Krishnamurthy 0d3f030ad2
update staleness check (#319)
Co-authored-by: Jayant Krishnamurthy <jkrishnamurthy@jumptrading.com>
2022-09-29 13:36:39 -07:00
guibescos 16bdc0f4c3
Guibescos/cli for attester admin (#314)
* Add payload generators

* Executor cli no longer a lib

* Expose instructions in client

* Format

* Cli

* Fix CI

* Fix CI, second try

* Fix CI, second try

* Fix CI, third try

* Fix CI, foruth try

* Remove pythnet from dockerfile wasm

* Test

* Revert "Test"

This reverts commit ffa702b249f821aee0a781b680bdf51d038859cf.
2022-09-29 15:24:47 -05:00
Jayant Krishnamurthy 89cc35d3a0
Run prettier (#318)
Co-authored-by: Jayant Krishnamurthy <jkrishnamurthy@jumptrading.com>
2022-09-29 13:22:14 -07:00
Jayant Krishnamurthy 863a983a1a
Add set-is-active instruction and some minor tweaks (#317)
* add set-is-active instruction and some minor tweaks

* stuff

* whoops

Co-authored-by: Jayant Krishnamurthy <jkrishnamurthy@jumptrading.com>
2022-09-29 12:57:35 -07:00
guibescos 57bdb092f5
Fix program account not being passed to CPI (#316)
* Fix program account not being passed to CPI

* Fix transaction sending
2022-09-29 12:49:48 -05:00
guibescos c4238c7a91
Guibescos/expose attester instructions (#313)
* Add payload generators

* Executor cli no longer a lib

* Expose instructions in client

* Format
2022-09-29 09:15:42 -05:00
guibescos 3176d6a07f
Add payload generators (#312)
* Add payload generators

* Executor cli no longer a lib
2022-09-28 21:08:53 -05:00
guibescos 5214d185e8
Guibescos/executor cli (#309)
* Add tests to CI

* Fix yaml format

* Update pythnet address

* Checkpoint

* Format

* Reorder args

* Update executor contract

* Checkpoint

* Deployment address and fix deser bug

* Cli cleanup

* Format

* Get wormhole sdk from git

* Format

* Fix some bugs

* Non-emtpy lib
2022-09-28 10:55:11 -05:00
Daniel Chew 0a1f31a952
use squads mesh package instead (#310) 2022-09-28 15:24:13 +08:00
Ali Behjati d5b4f571f0
Set/Update governance emitter addresses (#307) 2022-09-28 09:22:50 +02:00
guibescos 834e045812
Fix AnchorVaa struct (#308)
* Deployment address and fix deser bug

* Format
2022-09-27 19:40:40 -05:00
Ali Behjati 4cec02d4da
Upgrade bnb testnet and renounce ownership (#303) 2022-09-28 00:44:51 +02:00
Stanisław Drozd c9b4a34ae4
pyth2wormhole-client: fix mapping_addr default for attestation config (#306) 2022-09-27 14:44:31 +02:00
Stanisław Drozd b59bd702c2
p2w: Monitor and realloc() + rent adjuist on cfg account size change (#305)
* p2w: Monitor and realloc() + rent adjuist on cfg account size change

* p2w/set_config: reorder data assignment and realloc()
2022-09-27 08:53:59 +02:00
Daniel Chew 6d528ffbe2
update solidity package version (#304) 2022-09-26 23:43:47 +08:00
Ali Behjati 9a285cf799
Abehjati/eth-update-interface (#301)
* Update contract interface to the latest sdk

* Add migration step

* Fix eth2 chainid change

* Address reviews
2022-09-23 19:19:02 +02:00
guibescos 40b031a223
Add executor tests to CI (#302)
* Add tests to CI

* Fix yaml format
2022-09-22 13:50:48 -05:00
guibescos 6898b390e6
Better program (#297)
* Add tests

* Add tests to CI

* Remote test from precommit hook

* New test

* Remove merge error

* Comments and increase seqno

* Remove unnecesary dep

* Fix rebase

* Fix feedback

* Move anchor checks

* Fix comment

* Restore deny warnings

* Better comments

* Typo

* Improve comments

* Better comment

* Tests for the remote executor (#298)

* Tests

* Cleanup

* Comments

* Comments

* Tests complete
2022-09-22 12:40:18 -05:00
Ali Behjati bc48a31576
Fixing some bugs on clap and processing logic (#299) 2022-09-22 15:04:00 +02:00
Ali Behjati 77083cf760
Attestation: Add ops owner and set-is-active ix (#295)
* Attestation: Add ops owner and set-is-active ix

* Update solana/pyth2wormhole/client/src/cli.rs

Co-authored-by: Stanisław Drozd <stan@nexantic.com>

* Fix typos

* Add a test without owner

Co-authored-by: Stanisław Drozd <stan@nexantic.com>
2022-09-21 21:14:23 +02:00
Jayant Krishnamurthy bf032f07c2
Delete one more noisy log message (#296)
Co-authored-by: Jayant Krishnamurthy <jkrishnamurthy@jumptrading.com>
2022-09-21 11:24:14 -07:00
Jayant Krishnamurthy 71a6ae687e
Make this log message less noisy (#285)
* make this log message less noisy

* build

Co-authored-by: Jayant Krishnamurthy <jkrishnamurthy@jumptrading.com>
2022-09-21 11:06:13 -07:00
guibescos c32f2d99b9
Setting up rust tests (#292)
* Add tests

* Add tests to CI

* Remote test from precommit hook

* New test

* Remove merge error

* Comments and increase seqno

* Remove unnecesary dep

* Fix rebase

* Fix feedback
2022-09-21 12:51:57 -05:00
guibescos 1ad419e0ba
Guibescos/executor deser test (#290)
* Add tests

* Add tests to CI

* Remote test from precommit hook
2022-09-21 10:11:14 -05:00
Stanisław Drozd fdafbe32a4
Drozdziak1/p2w client use mapping crawl (#294)
* p2w-client: Add attestation config merging logic

This change adds code to append new symbols to an existing attestation
config. In conjunction with the mapping crawling logic, this will aid
in hot reloading attestation configs in runtime

* pyth2wormhole-client: Use the crawled mapping symbols
2022-09-21 16:49:37 +02:00