Commit Graph

916 Commits

Author SHA1 Message Date
Alwin Peng e08116635e deduct taxes from coins sent to wormhole contract from token bridge, in case fee denom switches from uluna
Change-Id: I141b53b51c883162b49d6caa74225ce1c030995f
2021-08-30 08:43:37 +00:00
Reisen 7945662d8a clients/token_bridge: terra flags for testnet
Change-Id: I71bcc671efe3b9f95b04ad20a731f514260fb67d
2021-08-26 14:40:11 +00:00
Reisen 731bc11dc0 bridge_ui: fetch terra target from LCD
Change-Id: Ia21821526981c887b3cf5e30fe3421736c396235
2021-08-26 14:40:11 +00:00
Reisen 4921ed6ef4 terra/devnet: update to 0.4.9 for wasm queries
Change-Id: I8760edfe770ebb4d57f875a52dd58b62b6dbe6c5
2021-08-26 14:40:11 +00:00
Reisen bb7a67d4c7 token_bridge/client: add emitter derivation helper
Change-Id: I403e421ebf46b76561c59c6cdd2aac0442a3c8d6
2021-08-26 14:40:10 +00:00
Hendrik Hofstadt 6e3e43d35b Deploy plain ERC20 as test token
Previously we were using a Wormhole Wrapped asset which could cause confusions

Change-Id: Id3d52c30dad839ab97caed6ea892555f7a9f12a3
2021-08-26 14:19:19 +00:00
Hendrik Hofstadt 4469df136e Correctly pad Solana asset meta
Change-Id: Id2630bbd546695be7901927331e220406647b6da
2021-08-26 14:19:19 +00:00
Hendrik Hofstadt 56d8aa5e39 Create token meta for Solana devnet tokens
Change-Id: Ic7e2bd4a808640e10b646ee85abf963f9c6c586d
2021-08-26 14:19:19 +00:00
Hendrik Hofstadt 50afa0fe9e Prefix wormhole token names
Change-Id: Ieea61ea2833f66c29a2fa0f52ae1a914a3956146
2021-08-26 14:19:19 +00:00
Evan Gray f97ff5e079 bridge_ui: fix solana native target balance
Change-Id: I187c08cb2108f83090c43f43e1ebf43487d9a50c
2021-08-26 13:44:08 +00:00
Hendrik Hofstadt 568210edd4 Fix node path in eth client
Change-Id: I4e5bcd9c2ee3b51764c77ca81857109f9104378e
2021-08-26 13:16:59 +00:00
Leo 4f0759b8f2 Tiltfile: replace shell scripts by direct commands
This removes all locally ran shell scripts, which should hopefully
enable the Tiltfile to run without changes on Windows.

We lose the invariant of clearing the output directories, which
seems like a reasonable sacrifice for banishing bash.

Change-Id: I756928a25cada1b613ed9fda145809a414a46466
2021-08-26 12:59:20 +02:00
Leo 68be226c9d Containerize protobuf generation and remove node build dep
The Go dependency is still required to build the pack binary.

Use "tilt docker" to use Minikube's Docker instance, if available,
removing the local Docker dependency for Minikube users.

The Makefile continues to not require Docker and runs buf locally.

Remove broken Powershell scripts (can't test on Windows). These scripts
should now be substantially easier to write.

Change-Id: Ie80bf68e0e468a747861bea36fa5b353d9de110d
2021-08-26 12:41:22 +02:00
Leo e98463cfe3 node: rename bridge/ to node/
Calling guardiand a bridge dates back to v1 and no longer makes sense.

Change-Id: I27d24a5d7a64c3e37d6a5ce9c402c6248ad9c59e
2021-08-26 11:36:36 +02:00
Hendrik Hofstadt a8a8cbe183 👿
if you like it then you should have put a box 'round it

Change-Id: I504dd476f53bb5d0dd101a5278f485e83b32bd08
2021-08-25 19:49:57 +00:00
Stan Drozd 5f52dc6d76 solitaire: Implement Keyed for Mut<T: Keyed>
Change-Id: I6680315db9ac2fe913a85b01b471572047cbe658
2021-08-25 14:51:46 +00:00
Leo 63b77714ec proto: add strict linting and fix up existing protos
Passing the strict lint checks requires a number of backwards-
incompatible changes:

- Rename the NodePrivileged service to NodePrivilegedService.
  This is only used in CLI tooling, which are upgraded at the same
  time as the server binary.

- The Publicrpc service was renamed to PublicRPCService.

- The EmitterChain type is renamed to ChainID.

- The default value for the ChainID type is renamed to
  CHAIN_ID_UNSPECIFIED. This value wasn't referenced anywhere.

- The response and request types for GetLastHeartbeats were updated
  to match the rpc method name.

Change-Id: I3954130d3b25ab1f859390407bba3d3c02ffe03c
2021-08-25 14:26:33 +00:00
justinschuldt cf36c9bfe0 explorer: lookup BigTable data
- Explorer page fetch data from hosted Cloud Functions.

- Network page use GetLastHeartbeats rather than gRPC stream.

Change-Id: I57dce2ee0b84c4b31fcf7308855668a139ffe20e
2021-08-25 14:01:31 +00:00
justinschuldt 986b4b58f1 Add bigtable to devnet
- Add development BigTable instance

- Devnet Guardians save to local bigtable automatically

- Cloud Functions run in devnet containers

Change-Id: I9fa32a06b24218cf5c9c01cdff6f37c67e8d1e7c
2021-08-25 14:01:31 +00:00
Leo fea2226e83 tools: add pack binary
Change-Id: Id158850116bca1012f6ddb89a640b9f7ac74eee4
2021-08-25 14:01:31 +00:00
Evan Gray c33f3c0cb9 bridge_ui: set target address in state
Change-Id: Ie2f87582ffdc8da53ccc0f34721c3985d7807933
2021-08-25 13:48:05 +00:00
Stan Drozd 1f214029f5 nix/scripts.nix: Add explorer/guardian port forwards to whremote
Change-Id: Id69e9df77306f110cbeb0c53145bb3656f59dab8
2021-08-25 13:44:55 +02:00
Leo d622b0b22b proto: add module name
We now have auto-generated docs at
https://buf.build/certusone/wormhole/docs/main/publicrpc.v1

Change-Id: Ic29f8fc67013a605ec33732f048a7b9361f5e60d
2021-08-24 17:08:36 +02:00
Leo aeb673a164 Add presubmit CI test that runs "tilt ci"
- Use "npm ci" instead of "npm install" in a couple of places.

- Migrate generate-wasm.sh to a Dockerfile so it can be cached.

- Disable namespace creation and explorer build in CI.

Change-Id: I2e6ee806438863ca81ada701e14684f9f4cc0a76
2021-08-24 17:08:36 +02:00
Evan Gray eace2fcfea bridge_ui: worm.to icons
Change-Id: I819e69117229d33637663b193ce2a26f3996b93b
2021-08-24 09:36:43 -04:00
justinschuldt cf980cf290 devnet Guardian fix
Change-Id: I8fbcc60295e42e9bcc947d9e047cde760515785c
2021-08-24 13:10:46 +00:00
Reisen d884f7be17 solitaire: force deserialization into a new stack frame
Change-Id: I5ffe4ed6b831f4ddbad4e36fad31487fcd1765cd
2021-08-24 07:08:48 +00:00
justinschuldt d3acd39c71 Add grpc-web dependency to bridge
Change-Id: Ib659e2207e9235c34ecfa5b9d4fcda1ead959e4f
2021-08-23 15:15:10 -05:00
justinschuldt 44fe7bd726 Cloud function for BigTable queries
Change-Id: I8a2c0e349bdebeeeaf8b79f02285615b3a147884
2021-08-23 19:35:04 +00:00
Hendrik Hofstadt 37b654e7f9 Set updated addresses in web config
Change-Id: I01b5e232fc603e2a42efeff34ae7a2ee619f00df
2021-08-23 18:03:48 +00:00
Hendrik Hofstadt fdceea9515 Fix wasm generation scripts
Change-Id: I23aa186d7cb0b805b6a6cc30063e8be3147fd7d8
2021-08-23 18:03:39 +00:00
Hendrik Hofstadt d95e38da47 Don't verify core bridge config in token bridge
This is checked when we do CPI calls and did not work since derive is using ctx.this as context address

Change-Id: Ie8fefedb40c3c5eb4966bb0b85f207a40e0fe3be
2021-08-23 18:02:12 +00:00
justinschuldt 44cb47c2d8 Write attestation events to BigTable
Change-Id: I90fd86ff83a2e963ca306b7189528b415f5511d2
2021-08-23 09:54:28 -05:00
Hendrik Hofstadt 72477c46a4 Allow the emitter to be mutable
This is the case when the emitter is the fee payer.

Change-Id: Ib21658c6cbbbb246a7434057c0f03f24bec8c013
2021-08-23 13:54:07 +00:00
Reisen 254f1c8674 Use bridge config to decide fee payer.
Change-Id: I5eb7601737eb5cbc687dee07567a6fab4e5ca4c5
2021-08-23 13:54:03 +00:00
Leo 3ec4ad6ad3 node: remove raw heartbeat stream
As discussed with Justin, we no longer need this endpoint.

Removing it means we no longer have to worry about
long-lived connections.

Change-Id: I75020652d383a6b5f79a3cad1b52ae87d323f012
2021-08-23 10:51:09 +00:00
Leo dc94553751 node/cmd: add support for systemd listener sockets
This enables zero-downtime restarts for --publicWeb

Change-Id: I074ff91bebb456bd5d21b4facbb76ecd1fb1fad4
2021-08-23 10:51:09 +00:00
Leo 739e0f2bb9 node/pkg/ethereum: fetch guardian set at startup
Rather than waiting 15s for the timer to tick, request the
guardian set immediately at startup.

This has the added advantage of being able to crash the
runnable if the guardian set can't be fetched initially.

Change-Id: Ib4cb476c05e92ecd06496043d248eb3ca25b8065
2021-08-23 10:51:09 +00:00
Leo 369a18a21c node/cmd: gRPC logging and metrics
Change-Id: Ie2fb7bb7244bd7d786867ad456f4a9531f81f879
2021-08-23 10:51:09 +00:00
Leo a35604f811 node/cmd: rename publicREST to publicWeb
Should be early enough to make this backwards-incompatible change.

Change-Id: I5ef119e286cac48839c7e20acd7b5efd0513ac78
2021-08-23 10:51:09 +00:00
Leo a587316e7d node/cmd: add support for grpcweb and tls auto-provisioning
Change-Id: I41d76216fe4095772740e127adb0d62b05964d94
2021-08-23 10:51:09 +00:00
Hendrik Hofstadt 2437a76ad7 Implement fees in the solana token bridge
Change-Id: I0bc29ced7e14c37294d0bde7ada173a90b5fcae4
2021-08-23 08:35:59 +00:00
Hendrik Hofstadt f42453be45 Resolve rust compiler warnings
Change-Id: Iaac63d0fb44ecb7e03d68a10df7bddbb521c73a0
2021-08-23 09:51:31 +02:00
Hendrik Hofstadt a05017c043 Update rust dependencies
Change-Id: Ib587cf608255afc46dcb435a4168e0f8f8cfb8a8
2021-08-23 09:39:36 +02:00
Hendrik Hofstadt d242fd0fa4 Set bridge address via env variable
Change-Id: If301b31525dbe1d9f892f93ffbc1a35507be4625
2021-08-23 09:39:24 +02:00
Evan Gray 2148aff3e6 bridge_ui: initial testnet support
Change-Id: I8e75fb83008eb85decebd69d0f29d86711cf3d2e
2021-08-21 03:53:19 +00:00
Evan Gray 5f5a2a56f5 bridge_ui: notistack, hooks, cleanup
Change-Id: Ia553e514afee655c6cd8e26320e539fc59041e49
2021-08-20 22:33:13 -04:00
chase-45 0fab2481ca swapped in solana wallet adapter
Change-Id: I3075380313f10fdb579a4b777e0f10506e7e1ede
2021-08-20 21:59:15 -04:00
Reisen 2a317ab923 sdk: move terra functions to sdk
Change-Id: Idb255bc0c63189f69f5e79efce4a801e2aeedf46
2021-08-20 19:14:42 +00:00
valentin cea46cdfbe add mainnnet deployment config
Change-Id: I70314f8ab49f5d129012b80cecdf19fe6cb9dc1a
2021-08-19 22:31:28 +00:00