Commit Graph

1731 Commits

Author SHA1 Message Date
Csongor Kiss 60d313b23c
ethereum: Add contract verification instructions (#792) 2022-01-28 14:52:54 +01:00
Csongor Kiss 0044bb5e44 terra/token_bridge: remove migration code
This migration handler has successfuly completed (txn:
67E8FCFF48EEFE11BF6A975E621B6866BA930F9D2A85BC9AC5A70F009EE354C7) so
we can remove it.
2022-01-28 10:44:10 +00:00
Evan Gray 608c724a76 evm/token_bridge: reentrancy protection 2022-01-28 10:44:10 +00:00
Csongor Kiss 52562cacb0 terra/token_bridge: reentrancy protection
commit-id:2c0bdfaf
2022-01-28 10:44:10 +00:00
kev1n-peters 83b97bedb8
bridge_ui: Put new wormhole SVGs into icons directory (#787) 2022-01-27 11:36:23 -06:00
Leo f200a6bd23 node/pkg/solana: fix context memory leak
commit-id:69632fa8
2022-01-27 12:43:03 +01:00
Justin Schuldt d4735fc7c1
update bridge copy (#778) 2022-01-26 09:22:52 -06:00
Leo f829195ea5 node/pkg/solana: kill recovery feature
This is no longer needed with SignedObservationRequest.

commit-id:9a3fbf4e
2022-01-26 13:00:23 +01:00
Leo 73a5b72857 node: implement observation requests via gossip
Limitations:

- Only supported for Solana and for confirmation level Finalized,
  which the token/NFT bridges use. Need to take a close look before
  enabling it for both (since we're bypassing the tx fetcher and would
  fetch and process accounts of the "wrong" confirmation levels).

- Rate limiting not implemented yet, will be done in a future release
  when things are not currently on fire.

Test: https://gist.github.com/leoluk/bab3a18e922057109facea1cf1f26b2f

commit-id:6a0d4c32
2022-01-26 13:00:23 +01:00
justinschuldt 79f489bd28 code review update
commit-id:55c28b21
2022-01-26 12:16:16 +01:00
justinschuldt 054d800f19 improve logging around GCP PubSub message path
commit-id:04012992
2022-01-26 12:16:16 +01:00
Leo 07c599ab68 node/pkg/telemetry: reduce log level to INFO
It appears that GCP Cloud Logging cannot handle the volume of logs
we're throwing at it... full text search slows to a crawl (LOL)

Reduce log level until we can move to something else.

commit-id:b71c3467
2022-01-25 22:36:24 +01:00
Leo 68bdd4b0b6 node/pkg/processor: expire late observations
Fixes https://github.com/certusone/wormhole/issues/685.

Example occurrence this fixes: https://i.imgur.com/gZWKf1n.png

Possible future optimizations include:

- Ignore late messages in the processor (but we can only ignore
  them post settlement time, so we need the cleanup logic regardless).

- Ignoring late observations from other nodes.

- Using the stored VAA to calculate misses.

- Drop incomplete local observations. However, this is not trivial
  since we do not know the message ID for those.

commit-id:47e1e59f
2022-01-25 22:36:24 +01:00
Leo b8c30314b5 node: avoid clobbering terminal with binary data
commit-id:222d1f31
2022-01-25 22:36:24 +01:00
Evan Gray 7a9a5e6487 testing: weth-switch 2022-01-24 12:40:43 -05:00
Evan Gray 5cc332cc40 bridge_ui: redesign 2022-01-24 11:24:14 -05:00
Evan Gray c2a879ec7c bridge_ui: solana tps warning 2022-01-22 11:08:05 -05:00
Hernán Di Pietro 9fdda91368
Pricecaster V2-alpha (#716)
* Removed unnecessary file.

Change-Id: Ic85cb42fef37028bc99d266148fae35107d2cf5f

* Update sample pyth VAA information  on README

Change-Id: I2a4d3b23bfbc525d25f3f0360605aece0c104f4b

* Test and lib fixes.

Change-Id: I4af5e0313ba04b322f428a15a19bc7b30c6ae027

* Check owner balance + Feed ALGOs to stateless account address.

Change-Id: Ibf57c66b24153b917f5d33febff97a002c163b59

* Working VAA verification test.

Change-Id: Ib44e96ce8979161cdf703b1c4c92742cdc3e9cae

* Lot of new tests and a little refactoring.

Change-Id: Ic1da9be0a91fc3ace136c80cc5b2329cb3bf2e77

* Removed parts of old Pricekeeper logic

Change-Id: Id77f4366d30dac2b89d039cea9b115a46a189e2d

* Proper fetching, parsing and unpacking of Pyth-Wormhole data

Change-Id: Id3b5002f072873d8161fa619f387171483a3e66c

* Pricekeeper V2 PyTEAL contract.

Change-Id: Idc1771e1ade371f51befdfd36ab6add55b3081fc

* Streamlined and refac support library. Removed old code.

Change-Id: I1f9633700527b1e0ca5ea9a38d24d3960e3e2341

* Changes to successfully publish price in target contract.

Change-Id: Ie346648cec5b7b0b70786c2a99373df9bf71633d

* pclib: Concurrent internal group TXs supported.

Change-Id: I78e16d0dbf71c86fbb6be61e956aa370a4c48130

* Fetching and publishing from Wormhole/Spy.   Removed most of old Pricekeeper V1 functionality. Simplified code.

Change-Id: I197436c52460c04143501a60e3db9609159e9f25

* README + Deployment tool updated

Change-Id: Iaf1f76ce69ea303f734c2a79f529f60ebf55a4ca

* Modifications to use compiled stateless program.

Change-Id: Ibc294412728052c1e29c7df929b3d9e481d714be

* Removed old settings file.

Change-Id: I1b8ca64426983b0a56f55f99a69304aaca702fee

* Implements Randlabs Logger (C3PROT-92)

Change-Id: Ia527169dc56bb2622fcde2fcfad53ed2efb5f399

* STEPS updated to 8.

Change-Id: I9b092bb321231cde003e12b5a68cf90404f670f8

* Fixed handling double-hashing

Change-Id: I5695e2783d439a85a61af44cab03ba99898cb16b

* Added option to dump failed TX and diagnostic information in README

Change-Id: If3d7b068d8d408851bcaae443ff412dc9cc30c69

* Fixed chainId handling.

Change-Id: Id798a2e7afc0d646a179e3bd682204ba738fa53a

* Successfully push prices to priceKeeper V2.

Change-Id: Ib04da78b819e17579677e0187c9f5bd6bb1e2feb

* Fixed price output log

Change-Id: I99df39a05c667b5eb1af6cda988326cd768f89ee

* Update WIP Tests.

Change-Id: I4c2f94306dcaab578c30e487ceb6c140ea902ac3

* Support for VAAs with minimal quorum (>  2/3+1 signers )

Change-Id: I65dc52f6ef531cd24f7d080108451c5302e08524

* Remove old files.

Change-Id: I9fd2127d9374617f53cb1cc6f721a2a655b79385

* Removed unnecessary entries in gitignore file

Change-Id: I498ee2e192eb87d090767d8a12fd59ac679c8579

Co-authored-by: Josh Siegel <jsiegel@jumptrading.com>
Co-authored-by: jumpsiegel <83408952+jumpsiegel@users.noreply.github.com>
2022-01-21 08:37:49 -06:00
Csongor Kiss 5d90af5195
terra/token_bridge: fix cw20 migrations (#745)
commit-id:c8aac03a
2022-01-20 19:06:34 +00:00
Keone Hon 00ddd5f02b update WROSE_ADDRESS to 0x21C7 2022-01-17 20:04:48 -05:00
Reisen 3cd7ea173a solana: compile token metadata with 1.8.1 toolchain
Change-Id: Ifcfa984840a33326b3dbd59f23b6cf662651c2f8
2022-01-14 14:55:40 -05:00
Reisen 03aae4a48a terra: fix messenger builds for sdk
Change-Id: Id30399c6a0521621c60f8382f13bd29714e6c116
2022-01-14 14:55:40 -05:00
Reisen e561d6de02 sdk: fixes to types and builds
Change-Id: I10b753450445cc021dbeb9f28ddb0384070e9635
2022-01-14 13:09:12 +00:00
Reisen e8ed614e0d examples: add terra sdk examples
Change-Id: Ife13184bb98c55891fcbd6c721051ec355b63ac3
2022-01-14 13:09:12 +00:00
Reisen ca1f0264b0 examples: add solana sdk examples
Change-Id: I2f0cc982c880ba1830ad1e1c4a4a409876c4ad66
2022-01-14 13:09:12 +00:00
Reisen 7f1c7ec62f solitaire: expose entrypoint and relax lifetimes
The current lifetimes 'a/'b restrict the &data and &program_id lifetimes which makes the
entrypoint unusable in solana_test_program's processor!() harness, which expects the more
relaxed (but equivelent for us) type of:

    fn processor<'a, 'b: 'a, 'c, 'd>(
      program_id: &'c Pubkey,
      accounts:   &'a [AccountInfo<'b>],
      data:       &'d [u8]
    )

It has no effect on our current programs.

Change-Id: Ia657462141165064c629fdff02b5ec451aab50f0
2022-01-14 13:09:12 +00:00
Reisen 982ce08c4a sdk: rustfmt rules for sdk
Change-Id: I43d4252facd6f0c817053e07a35bb74d874064bd
2022-01-14 13:09:12 +00:00
Reisen ee0fea0436 sdk: add underlying sdk for wormhole programs
Change-Id: I858f3e43e6458af51131de9165a63078e4bb024c
2022-01-14 13:09:12 +00:00
Reisen 97566d878a sdk: add core types for wormhole projects
Change-Id: Iabaebb7b4319d5b759044896b2b396d39bda33d7
2022-01-14 13:09:12 +00:00
Reisen d21f08d2cb rust: rename wormhole libraries
Change-Id: I9bf5255c13b13d3724d7f8809489b04612b90747
2022-01-14 13:09:12 +00:00
victorshevtsov 4c7f6fb32f docs: fixed broken links
Fixed broken links to whitepapers
2022-01-13 09:46:51 -05:00
Evan Gray 25357d3848 bridge_ui: fix oasis explorer link 2022-01-13 09:46:45 -05:00
victorshevtsov d80da14852 docs: fixed broken
Fixed broken link to 0005_data_availability.md
2022-01-13 08:17:39 -05:00
Hendrik Hofstadt 32e9063910 Check whether vaa recipient matches the token account
Change-Id: Iab326cd735c764649dc031d813dbb8818d5e74f3
2022-01-13 14:07:40 +01:00
Kevin Peters 7882eccac4 bridge_ui: Terra fee denomination support 2022-01-11 18:28:02 -05:00
Evan Gray 8eea035490 bridge_ui: update oasis explorer links 2022-01-11 15:52:39 -05:00
Evan Gray b563772d46 bridge_ui: add footer link to docs 2022-01-11 15:52:39 -05:00
Evan Gray a32c7343e5 bridge_ui: update polygon confs 2022-01-11 15:52:39 -05:00
Leo aff369ff4d node/pkg/solana: push recovery date
commit-id:a3c51648
2022-01-11 15:10:12 +01:00
Leo 1c0815e107 node/pkg/ethereum: increase log levels
commit-id:8ec48eb6
2022-01-11 15:10:12 +01:00
Leo af2bd5be36 node/cmd: add public telemetry for logs
commit-id:582fc943
2022-01-11 15:10:12 +01:00
Leo 870afc5193 node/pkg/ethereum: do not override outer scope's cancel function
Otherwise, we might end up cancelling the root context by accident.

commit-id:09a5287e
2022-01-11 15:10:12 +01:00
Leo a5223c074a node/pkg/ethereum: reduce timeout for TransactionReceipt
We should spend as little time holding pendingMu as possible.
Ideally, we would refactor the component to do non-blocking I/O.

commit-id:b464c384
2022-01-11 15:10:12 +01:00
Leo 146c08d5af node/pkg/ethereum: correctly log "not found" error
commit-id:23a5fd80
2022-01-11 15:10:12 +01:00
Leo 81d1e821c0 node/pkg/ethereum: minimum confirmations for Polygon
commit-id:0d95a63c
2022-01-11 15:10:12 +01:00
Leo ab18f278fe node/cmd: use plain global root logger
Get our own root logger and pass that to ipfslog. Prerequisite for
getting fancy about using Zap plugins.

commit-id:ad22324d
2022-01-11 15:10:12 +01:00
Leo 26a946fef7 node/pkg/solana: update recovery.cfg
commit-id:facc30f4
2022-01-11 15:10:12 +01:00
Leo 33717ebcc9 node/pkg/ethereum: check for rpc.ErrNoResult with non-nil tx
This cannot currently happen the way TransactionReceipt is implemented,
but make sure to check the tx != nil case anyway in case the API
is changed in future releases of go-ethereum.

commit-id:b721f0be
2022-01-11 15:10:12 +01:00
Leo 5de9d11b51 node/pkg/ethereum: improve confirmation logging
Makes the log slightly nicer to grep when looking for a tx.

commit-id:dc7cd00a
2022-01-11 15:10:12 +01:00
Stanisław Drozd 02a1dcecbc
solana: hide wasm-bindgen dependency behind the feature flag (#730)
commit-id:480d3b7a
2022-01-10 15:31:36 +01:00