Commit Graph

1799 Commits

Author SHA1 Message Date
Leo 7ae4b3d6aa node: increase Polygon minimum confirmation to 512
It appears that in spite of exceeding the recommended value by 2x,
256 offers insufficient safety margin given that we saw two reorgs
of depths 178 and 187 recently: https://polygonscan.com/blocks_forked

This will increase confirmation delay from ~10 minutes to ~20 minutes.

commit-id:cf2b1503
2022-02-08 17:39:53 +01:00
Leo cf3f6def68 .github: include workflow name in concurrency ID
This hopefully fixes PRs failing as "cancelled". Drive-by cleanup
old branch name while we're at it.

commit-id:ec0076e0
2022-02-08 12:41:48 +01:00
Leo 6c02299f2b node/pkg/solana: skip failed transactions
Avoid unnecessary RPC calls/retries.

Makes no difference for safety, which relies on VAA accounts rather than
any transaction metadata.

commit-id:0cd82ed4
2022-02-08 12:41:48 +01:00
Leo 7144d6b538 node/hack: add repair script
Fetches the list of missing Solana messages, finds the corresponding
on-chain transactions, sends an ObservationRequest to the network
and waits for consensus.

Hacky one-off script with a couple of edge cases (doesn't filter
failed txs, crashes if the boundary is not a valid tx). We can later
refactor this and add it to the find-missing-messages admin command
if we keep needing it.

commit-id:9b338dfa
2022-02-08 12:41:48 +01:00
Leo 95fea79276 node/pkg/db: add db.VaaIDFromString and vaa.StringToAddress helpers
commit-id:1fb9f998
2022-02-08 12:41:10 +01:00
chase-45 28c713a6dd
Tilt tests (#688)
* tests run in tilt / ci

* changed bridge_ui test process

* tests use kube proxy when in ci

* fix: allTests.sh permission

* fix: bridge_ui dockerfile sha for amd64

* fix: bridge_ui should use cra test

* fix: ci tests

Co-authored-by: Evan Gray <battledingo@gmail.com>
2022-02-08 03:55:10 -05:00
Evan Gray d1de172699 fix: tvl bad prices 2022-02-07 10:53:24 -05:00
Leo 3c20a0493b staging/algorand: apply global Apache 2 license
As previously discussed, staging/algorand will be relicensed as
Apache 2. Replace all license headers by the global license.

Rand Labs needs to sign off on this PR to formally relicense
their contributions.

commit-id:cd31637e
2022-02-05 09:30:28 -05:00
Csongor Kiss dc2e6d8990
solana: add correct spl_token_metadata.so (#815)
Co-authored-by: Csongor Kiss <ckiss@jumptrading.com>
2022-02-03 19:10:16 +00:00
Leo 29cd5a3934 cmd/guardiand: fix governance VAA serialization
And add some extra debug logging for governance-vaa-verify.

commit-id:10deaff4
2022-02-03 04:14:29 +01:00
Justin Schuldt 91296e6772 update Buidl copy 2022-02-02 13:57:52 -05:00
Evan Gray 135279838e audits: add neodyme audit 2022-02-02 13:45:29 -05:00
Evan Gray ea1b852b98 testing: evm rollback test 2022-02-02 13:45:17 -05:00
Hendrik Hofstadt 7edbbd3677 Update Solana to 1.9.4
Change-Id: I9c1ce5f25b21ca81599957a7faa730558d8fc03e
2022-02-02 11:31:33 -05:00
justinschuldt 79ab522f80 marketing site copy tweak 2022-02-01 10:17:42 -06:00
Justin Schuldt 497a1c6e83
Explorer v2 (#789)
* initial commit

* cleanup, spacing fixes

* update copy

* responsive footer

* logo link

* router link active underline

* fix side-by-side padding

* app card links

* initial network table

* sort guardians

* network selector

* add envs to unbreak deployment

* 404

* wip explorer

* recent messages list

* fix activeNetwork context init

* add Oasis and Avalanche utils

* add title to RecentMessages

* add explorer ChainOverviewCard

* add explorer PastWeekCard

* save exact versions of npm packages

* add explorer search functionality

* mvp

* remove dupe page

* add basic social images

* add social sharing metadata

* update development siteUrl

* test with example prod url

* fix social card name

* update number of chains

* decode payload with WASM

* updated copy

* fix index portal link

* prod .env variables

* show more recent messages for chain or contract

* fix decodePayload summary

* delete explorer v1

* fix explorer dockerfile

* fix explorer serve settings for devent

* remove proto-gen-web for explorer

* rm proto-gen-web for explorer

Co-authored-by: Evan Gray <battledingo@gmail.com>
Co-authored-by: Evan Gray <56235822+evan-gray@users.noreply.github.com>
2022-02-01 09:40:53 -06:00
Kevin Peters 613773d3fc bridge_ui: Changed title to Portal Token Bridge 2022-02-01 10:11:53 -05:00
justinschuldt 763c62b73e supply credentials file to PubSub
commit-id:563f6718
2022-02-01 10:32:58 +01:00
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