Stanisław Drozd
0a8db01c10
Dockerfile.client, Dockerfile.solana: harden caching to cut CI time ( #332 )
...
* Dockerfile.client, Dockerfile.solana: harden caching to cut CI time
This change attempts to add useful items to the docker caching which
should save time downloading crates and by adding path=<full path> and
dropping id=<name> ensure that no Dockerfile cache mismatches occur. I
think the id= param is meant to help group builds that benefit from
common cache, but in case of pyth2wormhole-client/SOL contract builds
it became a competition between the two replacing the other's caches
* Dockerfile.client: remove malformed id= params
2022-10-20 12:33:18 +02:00
Daniel Chew
b784abd144
add change-threshold, add-member, and remove-member ( #358 )
2022-10-20 17:25:53 +08:00
Ali Behjati
bdc492f919
[eth] Some contract improvements ( #356 )
2022-10-19 19:47:09 +02:00
Ali Behjati
398b18743d
[eth] Make governance transfer less error-prone ( #355 )
2022-10-19 19:46:26 +02:00
guibescos
808e9392e3
Update address again ( #357 )
2022-10-18 20:45:09 -05:00
Ali Behjati
d3d10f2ce2
Add set fee to tests + add some sanity checks ( #350 )
...
* Add set fee to tests + add some sanity checks
* Add fee to evm relayer
2022-10-18 19:07:37 +02:00
Ali Behjati
e4160b2f08
Run remote exec CI only if it's changed ( #352 )
...
* Run remote exec CI only if it's changed
To save more GH actions time + have faster CI checks (sometimes it takes longer than tilt!)
* Update remote-executor.yml
2022-10-18 11:33:34 -05:00
guibescos
0e49c8ea7b
Update example addresses ( #354 )
2022-10-18 11:25:54 -05:00
Ali Behjati
b05a63fe5a
[attestation-cli] Fix corner case of product with no price ( #351 )
...
* Fix corner case of product with no price
2022-10-18 16:32:44 +02:00
Tom Pointon
079f8cc0b7
Add AptosAuthorizeUpgradeContractInstruction to xc-governance-sdk-js ( #328 )
2022-10-17 16:20:23 +02:00
Ali Behjati
c47199d6cb
[eth] contract improvement ( #348 )
...
* Make Pyth.initialize private
* Make contract upgrade more resillient + add fail test
* Remove deployCommitHash
The deployCommitHash process is error-prone and it's alternatives
require changing many parts of the code.
And as it is not used anywhere. I believe it is not
worth the effort.
* Improve price not found log
2022-10-17 16:19:55 +02:00
Ali Behjati
62ef9d7d1f
Add set fee mainnet deployment info ( #349 )
2022-10-17 13:46:11 +02:00
Tom Pointon
2c8efdba2a
Add link to on-demand and update fee docs ( #347 )
...
* Add link to update fees section
* Add link to on-demand docs
* Tweak wording
2022-10-16 11:50:38 +01:00
Ali Behjati
f7958e387f
[eth] Add set fee migration step + deployment process improvement ( #346 )
...
* Remove celo conf files as we are not there
* Remove some unused files
* Move common variables to cluster env
Also rename mainnet to ethereum
* Update migration scripts
* Remove ropsten, it's decommissioned
* Update template
* Create deployment script
* Add set fee migration step
* Comment out old upgrade process with good comments
* Address Tom comments
* Use a helper function for loading env
2022-10-13 19:09:52 -05:00
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