Commit Graph

1814 Commits

Author SHA1 Message Date
Ali Behjati 1d34c1c0c8 Fix unchanged cache mount paths 2022-03-07 11:50:22 +00:00
Ali Behjati 186e79c334
Merge pull request #44 from pyth-network/abehjati/p2w-sdk-rust
Add p2w rust sdk
2022-03-07 12:22:55 +01:00
Ali Behjati 4d576850c5
Merge pull request #63 from pyth-network/abehjati/move-wasm-docker-root
Move wasm docker to root of project
2022-03-07 12:21:58 +01:00
Ali Behjati d9c7c86f4d Move WASM gen docker to root
It is because wasm is going to be used for p2w-sdk too.
2022-03-07 10:11:40 +00:00
Ali Behjati 3389acddf3 Add new line 2022-03-07 09:39:08 +00:00
Ali Behjati fa052ff355 Add emitter type and add wasm function for it
- It requires solitaire and it requires nightly rust
- No logic is applied, code is from p2w solana contract. (Eventually will be removed from there)
2022-03-07 09:36:19 +00:00
Ali Behjati 87d8b05c4e Add p2w sdk
It uses Pyth clients structs and cleans some of definitions for Pyth2Wormhole structures.
2022-03-07 09:09:31 +00:00
Ali Behjati 907d5824ab
Merge pull request #43 from pyth-network/abehjati/move-p2w-js-sdk-to-js-folder
Move js sdk on p2w-sdk to js folder
2022-03-07 08:38:28 +01:00
Stanisław Drozd f1bda29873
Merge pull request #45 from pyth-network/drozdziak1/p2w-attest-validation-hotfix
Attest validation hotfix
2022-03-06 12:02:37 +01:00
Stan Drozd eb0929a053 pyth2wormhole: Fix attestation validation bug
commit-id:567942d7
2022-03-06 11:11:00 +01:00
Ali Behjati 73f4391f54 Add newline to a file 2022-03-04 14:04:18 +00:00
Ali Behjati 084ef0f39f Reversed removal of wasm build for nodejs 2022-03-04 14:02:48 +00:00
Ali Behjati 247371cb7b Move js sdk on p2w-sdk to js folder
Also modifies other dependencies to correct path
2022-03-04 13:09:06 +00:00
Justin Schuldt d26e2b85b1 Explorer - fetch stats on first load 2022-02-28 17:30:41 -06:00
bruce-riley 60363dd3d1
Fantom deploy (#920)
* Truffle changes

* Always require fantomRPC
2022-02-28 16:32:22 -05:00
Stan Drozd 0642288697 pyth2wormhole: rustfmt --config-path solana/rustfmt.toml
commit-id:a4fae495
2022-02-28 12:29:58 +00:00
Kevin Peters b13c565e59 explorer: use 2 decimals for TVL 2022-02-25 18:24:48 -05:00
justinschuldt a20b6adb18 all the changes from Tibi and Adrian 2022-02-25 17:43:02 -05:00
Kevin Peters 7e461f489c bridge_ui: tvl chain name fix 2022-02-25 14:47:31 -05:00
Kevin Peters 2080c27ef2 bridge_ui: Use new TVL calculation in useTVL hook, 48h transaction count 2022-02-25 11:40:04 -05:00
Evan Gray 02848a6560
eth: add nft bridge to 1conf (#906)
* eth: add nft bridge to 1conf
2022-02-24 14:57:06 -06:00
Stan Drozd 1e953e637f pyth2wormhole-client: make sure we raise batch errors on exit
commit-id:65022128
2022-02-24 19:40:04 +01:00
kev1n-peters d4b7dbf98b
bridge_ui: xdefi and leap wallet support (#866)
* bridge_ui: xdefi and leap wallet support

* bridge_ui: wallet connect feature refactor

* bridge_ui: terra native balance fix

* bridge_ui: bumped max polygon confirmations to 512
2022-02-23 23:52:02 -05:00
Stanisław Drozd 2ea41b8176
[WIP] Pr/drozdziak1/p2w batching/5e704f8b (#877)
* ethereum: p2w contract -> p2w emitter, fill in essential envs

Change-Id: I6fa9364a96738d2cc02ec829a31fedba0586d8e8

commit-id:0a56f1f8

* Add p2w-relay, a p2w-sdk integration test

commit-id:6bfab639

* p2w-sdk: Expand README

Change-Id: I17cb547d6aaddc240588923561c26d11a787df2e

commit-id:6ebd6a22

* p2w-sdk: don't build ETH contracts, only the types

Change-Id: I7cbd18328227700635d7688aa24a9671e8919fcd

commit-id:adf079f7

* p2w: configurability and sane envs

commit-id:f10fd90e

* Solitaire: Implement Option<T> support in structs

commit-id:31aa12d6

* bridge/governance.rs: Stop pestering about EMITTER_ADDRESS

commit-id:d5bd7234

* p2w-attest: price batching

This commit introduces support for multiple Pyth product/price pairs
per call. The initial maximum batch size is 5 and is enforced using a
`P2W_MAX_BATCH_SIZE` constant.

solana/pyth2wormhole/program:
* On-chain batching logic
* Batch message parsing logic

solana/pyth2wormhole/client:
* Off-chain batching logic - divides any number of symbols into
largest possible batches
* Use a multi-symbol config file instead of CLI arguments

third_party/pyth/p2w-sdk:
* Expose batch parsing logic

third_party/pyth/p2w-relay:
* Comment out target chain calls until ETH contract supports batching
* Test the batch parsing function

third_party/pyth/p2w_autoattest.py:
* Generate and use the symbol config file  with pyth2wormhole-client

third_party/pyth/pyth_publisher.py:
* Add a configurable number of mock Pyth symbols
* Adjust HTTP endpoint for multiple symbols

commit-id:73787a61

* p2w-attest: mention attestation size in batch

This commit ensures that no matter the attestation format, a batch
will never contain attestations of different sizes. This guarantee
enables forward compatibility by adding new constant-size fields at
the end of a batch at all times. An older implementation will simply
not consume the remaining newer values while respecting the stated
batch member alignment.

commit-id:210da230

* pyth2wormhole-client: use fresh blockhashes, harden batch errors

This commit makes sure we don't have to deal with expired transactions
due to stale blockhashes. The problem existed with larger symbol
configs as well as on Solana mainnet. Additionally, the attestation logic
now treats transaction errors as non-critical - a failure for a batch
does not prevent attestation attempts for batches farther in the queue

commit-id:5e704f8b
2022-02-23 19:12:16 +01:00
Paul Noel 3b10f124a1
node/hack/repair_terra re-observation (#871)
* node/hack/repair_terra added file

Change-Id: Ie015cb3364c56211ba51550cfae307836071532a

* node/hack/repair_terra code inspection fixes

Change-Id: I91dfeeedf7d7f04591cc8ef47fde52f933a45d0a
2022-02-21 17:43:40 -05:00
Jonathan Claudius d47089741c
Add unit-test for governance (#867)
* Add unit-test for governance

* Gofmt governance_test.go

* Use structs for testing governance VAA

Co-authored-by: claudijd <jclaudius@jumptrading.com>
2022-02-21 17:23:34 -05:00
Evan Gray 885754e723 specify dependabot dirs 2022-02-19 08:06:35 -05:00
Leo a9e36ea7fb node/cmd: remove an extra err check
commit-id:e3096e20
2022-02-18 09:00:26 -05:00
Jonathan Claudius 6686d6aec8
Add stronger nonce/confidence parsing (#865)
* Add negative guards for nonce and confirmation number/level

* Fix copy pasta on nonce vs consistencyLevel

* Add more direct int parsing of args

* Remove redundant checks for upper/lower bounds on int parsing

Co-authored-by: claudijd <jclaudius@jumptrading.com>
2022-02-18 08:43:09 -05:00
Leopold Schabel 44c1f9e6a9
solana: compile wasm and contracts with --locked (#874) 2022-02-18 12:48:10 +01:00
Leopold Schabel 870d15d483
*: bump pyth-client to 0.2.2 (#873)
The v2 branch on the Git origin disappeared. Use the crate instead.
Updated lockfiles using `cargo update -w`.

commit-id:d2655ef8
2022-02-18 00:01:13 -06:00
Leo b7ab34a1ee Tiltfile: remove outdated generate-protos.sh mention
commit-id:155067a3
2022-02-16 15:41:37 +01:00
Paul Noel 7af9d22221 node/hack/repair: oasis support
Change-Id: I2b7b825ab49dad68e7072a4f488bbc411cbaabd6
2022-02-15 17:20:03 -05:00
Leo d2d6128c12 node/hack/repair_eth: add tx replay via Etherscan API
commit-id:023a6afb
2022-02-15 16:47:20 -05:00
Leo 799c1e9942 node/hack/repair: rename to repair_solana
commit-id:9cf72c8a
2022-02-15 16:47:20 -05:00
Leo de7cfe6cc7 node/hack/findmissing: add simple script to find all missing messages
This is different from "admin find-missing-messages" insofar as
having a hardcoded list of emitters.

commit-id:b934f672
2022-02-15 16:47:20 -05:00
Leo 8bf1176401 node/pkg/common: add list of known mainnet emitters
commit-id:f4d2389f
2022-02-15 16:47:20 -05:00
Leo 93ee5f3d31 node: remove duplicated public RPC node definitions
commit-id:452deba7
2022-02-15 16:47:20 -05:00
Leo 632e8acbee node/hack/repair: remove state directory
commit-id:74906ad4
2022-02-15 16:47:20 -05:00
Jeff Schroeder b54b7e1183 node: add fantom support
Only run in testnet until the contracts are deployed to mainnet.
2022-02-15 13:51:11 -05:00
Evan Gray fce0708e11 feat: use sdk in js client 2022-02-14 07:56:38 -05:00
Evan Gray fd62d71f61 feat: tilt labels
fix: terra dependencies
2022-02-14 07:56:38 -05:00
Evan Gray 075defa634 feat: improve bridge_ui tilt
properly cache npm ci in Docker container image
support hotloading outside ci
2022-02-14 07:56:38 -05:00
Evan Gray bb1402367c fix: terra-contracts readiness 2022-02-14 07:56:38 -05:00
Jeff Schroeder 65c1e4141c Ensure the k8s jobs are deleted when tearing down
Otherwise, the test resources can be left between build jobs.

This comes from the Job resource used to run the ci tests.
2022-02-13 16:07:25 -05:00
Evan Gray 9ed71c0038 node: terra reobservation 2022-02-12 15:03:32 +01:00
Jeff Schroeder 7220f4d598 Update the bug bounty to $10m 2022-02-11 19:33:42 -05:00
Leo c28b492e03 node: add reobservation requests for Eth chains
commit-id:e4fa6adf
2022-02-12 01:06:06 +01:00
Leo 8f63e123a5 node/pkg/ethereum: add MessageEventsForTransaction
This retrieves a single transaction's MessagePublication events. This
has the same security assumptions than listening to the log events -
namely, ensuring the right contract has emitted them.

Tested locally with a mainnet transaction.

commit-id:64347ecc
2022-02-12 01:06:06 +01:00
rm0594 9771128e59
Create ImmuneFi Bug Bounty.MD (#832)
* Create ImmuneFi bug-bounty.md

Co-authored-by: Jeff Schroeder <jeffschroeder@computer.org>
2022-02-11 15:38:52 -06:00