Commit Graph

1667 Commits

Author SHA1 Message Date
Serguei 087506dec6
sdk/solana: post_message: added multiple seeds. (#838) 2022-03-03 12:23:56 -06:00
Hendrik Hofstadt 4bc5daa8d1
Hardening against governance message spoofing (#938) 2022-03-03 17:55:02 +01:00
Kevin Peters ea67521d11 sdk/js: Added relayerFee parameters to transfer functions 2022-03-03 11:04:08 -05:00
justinschuldt 1ac00415e9 add functions-framework dep
commit-id:f71b8422
2022-03-02 13:18:16 -06:00
justinschuldt a89350745e Explorer functions - use GSC for cache documents
commit-id:08e1c0c3
2022-03-02 13:18:16 -06:00
justinschuldt 69390882af sum chains and tokens for /notionaltvl
commit-id:cfa4c5dd
2022-03-02 13:18:16 -06:00
justinschuldt ccfc7fd13e add token info to transfer data
commit-id:7d73cb43
2022-03-02 13:18:16 -06:00
justinschuldt d6d04f61bb add useCache option for cloud functions
commit-id:8d771c77
2022-03-02 13:18:16 -06:00
justinschuldt e582c872ec fix cache call
commit-id:12f02fb8
2022-03-02 13:18:16 -06:00
justinschuldt a7b9e3b7ad add bulk token price fetching from CoinGecko
commit-id:e75c7290
2022-03-02 13:18:16 -06:00
justinschuldt 40aff0c6e1 TVL calculation from transfer messages
commit-id:bbc62fc8
2022-03-02 13:18:16 -06:00
Stan Drozd 972939ee31 pyth2wormhole: Fix attestation validation bug
commit-id:567942d7
2022-03-02 15:55:46 +01:00
Evan Gray baec96654e fix: oasis addresses 2022-03-02 06:10:21 -05:00
Evan Gray e7cc32e447 bridge_ui: add fantom beta 2022-03-01 21:58:41 -05:00
Jeff Schroeder fd96dced3a
Fantom updates (#928)
* node: Add fantom to guardiand admin list-nodes

* node: check fantom readiness for mainnet
2022-03-01 20:32:31 -05:00
Evan Gray 695dcac26c support custom root ca 2022-03-01 12:35:27 -05: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