Commit Graph

903 Commits

Author SHA1 Message Date
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
Reisen 2846b29810 clients/token_bridge: add basic terra governance
Change-Id: I10fca1e939b0485812e26b42e3dcb5f9b435a64f
2021-08-19 17:13:53 +00:00
Reisen 3795cb15fb bridge_ui: terra, terra transfers
Change-Id: I9a615bd69ed2cf82c9eccee304b1211fd0c9a96c
2021-08-19 17:13:50 +00:00
Evan Gray d09abac78f devnet: fix eth addresses
Change-Id: I83bd59f35b65e87b14183410e49dd9aca6c62c85
2021-08-19 17:06:18 +00:00
Evan Gray a32e66fb71 bridge_ui: reset slice upon success
Change-Id: I5b6e6f0bc80436cdcdc2abde2f9b18a060c6ec08
2021-08-19 17:06:05 +00:00
Evan Gray 848d8d1462 sdk/js: readme, changelog, license
Change-Id: Id47bb140c4c89f192e5373600b271eaf8c6853f8
2021-08-19 17:05:55 +00:00
valentin 5eea4cc51b update devnet addresses for new deployment
Change-Id: I51ea1fc2d15759e8c86ecdaf80e110d61cbe36ec
2021-08-19 18:21:08 +02:00
valentin 245409852f bridge: mint directly to recipient
Change-Id: Idfa06609c5b9982c885eaa14b402965514b2e143
2021-08-19 10:19:48 +00:00
valentin 45d22ce84f bridge: move evm state setup into a separate contract
Change-Id: Ibc790ba971be5144c0af65870d424c9c62b52039
2021-08-19 10:19:40 +00:00
valentin a055af1416 move EVM state setup into a seperate contract
Change-Id: Ie000dd042c4ebbd7084511d38d87a7555c5d8048
2021-08-19 10:19:26 +00:00
Evan Gray 1175eb1315 sdk/js: move solana and eth transactions
Change-Id: I04cdb6591c21507a23b3bd809d9a8b557b860a90
2021-08-18 13:42:51 +00:00
Evan Gray c7b61b7470 sdk/js: simplify getSignedVAA
Change-Id: Ieaecd9070d0b4284467e5097f912c1a44e1827be
2021-08-18 13:42:35 +00:00
Evan Gray 1c2e7444e8 sdk/js: migrate ethers contracts and solana wasm
Change-Id: Ibb66962eaa6bbb95d2845e4277b406bf36df7044
2021-08-18 13:41:33 +00:00
Stan Drozd a97a34e174 Add a test pyth instance
Change-Id: Ifa5b50fb80f01f386fc8079eec3a0564df8072e1
2021-08-18 12:54:11 +02:00