Commit Graph

712 Commits

Author SHA1 Message Date
Hendrik Hofstadt c819165d5c Port terra governance changes to token bridge
Change-Id: I534b408c4539a6badf636d298b57f6d2df3c34d8
2021-07-26 19:04:20 +00:00
Leopold Schabel 4a8b1fe7fc Update CONTRIBUTING.md
Change-Id: I515b0a1e69ad9cc0714a33e34a1861e1cf3a2e03
2021-07-26 16:17:53 +00:00
Reisen db4c0f8f74 Handle Invalid Instructions
Change-Id: I8a6a15b7744e69c7eab88ef50295480bc5fb96ae
2021-07-26 16:09:01 +00:00
Reisen 28c0c3c195 Add Token Bridge test for initialize
Change-Id: Ia65c14b7a7bc6712e79db2b6f4244cb93f63093b
2021-07-26 16:09:01 +00:00
Reisen 191537ef8a Set correct mutability on Initialize
Change-Id: I102cb98678cc20fad6cb07da8835c1effa4973ea
2021-07-26 16:09:01 +00:00
Reisen f8174b7355 Set correct mutability on Attest
Change-Id: Ib9ead9dcc7c150292dcc00be60ac0a9b73935b48
2021-07-26 16:09:01 +00:00
Reisen 5f0707c75d Remove persistent from Bridge tests.
Change-Id: Id149bf38a9b3061964cd2ac2b539ba03c9af0c29
2021-07-26 16:09:01 +00:00
Reisen 64c1d86e4d Change serialize hierarchy for Governance
Change-Id: Id5581f84e9d325e1546f1690ba977b7470915491
2021-07-26 16:09:01 +00:00
Evan Gray 5e37afdb82 bridge_ui: initial commit
Change-Id: I35315035270dece70c5dcb511f4b2e5c6494452b
2021-07-26 15:34:58 +00:00
Leo 514560f52c node: use promauto to auto-register metrics
Fixes certusone/wormhole#188

Change-Id: I26c0e3f05993e44185b6ee2531b7673f7fbc0eb6
2021-07-26 13:01:55 +00:00
Stan Drozd fe48f05366 shell.nix: Set EMITTER_ADDRESS=changeme for development, add node
Change-Id: Id97b1188f890f1325fde3b9052242dd0d00496a8
2021-07-23 15:37:57 +02:00
valentin 1ef05996c6 token amounts and decimal shifts
Change-Id: Ib676ddf8936e2e68b06992e42913f197a356809c
2021-07-23 12:18:11 +00:00
Hendrik Hofstadt 393b522f76 Add Terra and Ethereum Wormhole CLI
Change-Id: I35aa7a801abf77a2e35faa192e685ce738869624
2021-07-23 11:40:36 +00:00
Leo 24b15bba9c node: update Go dependencies and upgrade to Go 1.16.6
Accomplished by simply deleting go.mod and letting go mod tidy recreate
it. Manually bumped terra.go to include the typo I fixed in...January?

Nothing broke in any sort of obvious fashion.

Change-Id: I27ba4bc13a5a55bb6b8fa4fa1d3e83b899b6a294
2021-07-22 23:16:00 +00:00
valentin 70520b210f comply with governance messaging spec
Change-Id: Ia655b430a215df7925ea0ec6977fc9819f0fd892
2021-07-22 16:55:46 +00:00
Leo a191017d22 node: add "admin list-nodes" command
Change-Id: Idbcfb449be300e0dc7f4a655b3f1fc455e4d8158
2021-07-22 15:11:35 +02:00
Leo 4fdfbcdea4 node: expose publicrpc service in admin socket
This makes the publicrpc service available to the admin CLI
regardless of whether the publicrpc socket is enabled on the node.

Change-Id: If0265f3cd14af44a7f8e9726af796f8879dd7a4b
2021-07-22 13:31:46 +02:00
Leo 54b2e51379 publicrpc: move runnable to cmd/guardiand
This matches the adminrpc implementation, removing the runnable
and socket listener from pkg/publicrpc API surface.

Change-Id: Ia6461c2ff839f39462391c5afd2694b1619b30b6
2021-07-22 13:26:19 +02:00
Leo a897166a0c publicrpc: expose PublicrpcServer
This is necessary if we want to register the service
with an existing gRPC server, rather than a separate service.

Also renames PublicRawHeartbeatConnections to RawHeartbeatConns
for brevity and fixes some typos.

Change-Id: If508de0e2fa68738ba204c4aafa1159139c6d1f8
2021-07-22 13:18:22 +02:00
Leo 89c1c92c7f docs: update operations.md
Change-Id: Ief25490d553430a679512f8135173bacc37b90be
2021-07-21 19:52:51 +00:00
Leo 5471d52613 docs: update overview diagram
https://i.imgur.com/o1z42iD.png

Change-Id: I50843041dc63813024e04afbb966eec8ec05e094
2021-07-21 19:52:51 +00:00
Leo 07106497f1 readiness: fix data race
Change-Id: If548f2b28d4ebaaa7d5a2127f684371fad6c2451
2021-07-21 19:52:51 +00:00
Leo e58730168d node: add no-op required dataDir flag
Change-Id: I8090550bbfb26686dcc5f30c3c3dcd66aae8ec10
2021-07-21 19:52:51 +00:00
Leo c5442b9598 dashboards: remove fee payer graphs
Change-Id: I7a316a8c94a454dadd8068699b0443b868725453
2021-07-21 19:52:51 +00:00
Leo ee34086c39 proto: remove fee payer from heartbeat
This wasn't implemented in v1

Change-Id: I271c8abe2b3bb79462e54d6fa37afd235e310df8
2021-07-21 19:52:51 +00:00
Hendrik Hofstadt deb2dc3a11 Fix governance checks in Terra
Change-Id: I5633a0398605327f7a1f96fd91f0336cae248252
2021-07-21 19:47:32 +00:00
Leo 052d922036 Clean up docs and packages for v2
Change-Id: I1020e648f4a8bd51412cf06196e78665308efdac
2021-07-21 19:46:10 +02:00
Leo 5ad3814575 devnet: split up proto generation in web and non-web
This avoids requiring npm for "make bridge"

Change-Id: I10de809a5d7064b53986acd39e52129db195a235
2021-07-21 19:04:04 +02:00
Leo 01564150db e2e: remove
These were testing the token bridge and do not currently pass
(or even compile). We will bring back later some of the code.

Change-Id: I34e9ae5aa901c9b20572d1fc8d87a599fa49ad93
2021-07-21 19:02:55 +02:00
Leo abe95522b1 node: remove terra fee payer argument
Forgot this when cleaning up the Terra submitter

Change-Id: Ied5af6570decf68e5e29c0d793da5e02509a2245
2021-07-21 18:41:42 +02:00
valentin 2e6a93b643 ethereum token bridge on wormhole
Change-Id: Iab8d6f6aae6163d1c65f7d5a7395a943c62cdb0c
2021-07-21 14:11:58 +00:00
Hendrik Hofstadt 98810080cc Fix readiness probe in guardian
Change-Id: Ia83ba29a7facf687d1765bf45fe012969a9835dc
2021-07-21 14:05:13 +00:00
Hendrik Hofstadt 858da0cb85 Fix governance VAA parsing on terra
Change-Id: I467fda757fb961cf4a391fcdb771f45af1a908f3
2021-07-21 13:14:26 +02:00
Hendrik Hofstadt 5a8d67c1d1 Improve terra deployment script
Change-Id: I2642018f434b56d47ae09d56079cd15c505ffe46
2021-07-21 12:18:04 +02:00
Hendrik Hofstadt 4753700d3f Remove persistence remainders from terra
Change-Id: I27657333ebd4f8b7ba433c6d0680ee061b965571
2021-07-20 23:52:40 +02:00
Hendrik Hofstadt 9fbb8d76c9 Remove persistence remainders from the guardian
Change-Id: I1c4c02820c2e5c0aca0c07402b854ffebd5cff0b
2021-07-20 23:50:38 +02:00
Hendrik Hofstadt c0228415f8 Fix devnet
Change-Id: I1d62e6323cc2169cce43581f9aeefb537bc84a76
2021-07-20 23:34:37 +02:00
Leo 60775101c5 docs: update to account for removed agent build
Change-Id: Iec5267ccf3b3dfbcd121800cc4f1d4bf5093a6f5
2021-07-20 23:17:47 +02:00
Leo 4e9cc401cc node: go mod tidy
Change-Id: Ia8f13037101457f51687fa98f2f1b4dc92097c4a
2021-07-20 23:17:47 +02:00
Leo af31436915 node: remove VAA submission and channel
Change-Id: Iae82b6353852dc052a7e220f483e5557a0f157c4
2021-07-20 23:17:47 +02:00
Leo 584bfcba2d node: remove terra fee payer
Change-Id: Iffdf5a790fd546b9b43137ee03018da3d94d3ac8
2021-07-20 23:17:47 +02:00
Leo ce6b39e3be devnet,docs: remove agent build and deployment
Change-Id: I04ab07f6db21918297e891de5475f61d22f58cc5
2021-07-20 23:17:47 +02:00
Leo 95473e1eb0 Tiltfile: remove fancy dependency graph
Too annoying to keep up to date

Change-Id: Idddb20168b009d3cb359f8e08e9e42f923471d3c
2021-07-20 23:17:47 +02:00
Leo 64c7ad9adc Tiltfile: reformat according to Bazel IntelliJ plugin
Change-Id: I3ce9f19411a68bc0866d87092c0a5e604fbe0b31
2021-07-20 23:17:47 +02:00
Leo d509693367 node: remove Solana VAA submitter and agent connection
Change-Id: I6201b00f3cbf9f0fee0cc14ce8fdc8ca8583ce97
2021-07-20 23:17:47 +02:00
Leo 1b01c373c2 tools: specify build tag to remove IntelliJ error
Change-Id: Ieef26a1f13290e51ebb6da387c3fdfd47f77c6e5
2021-07-20 23:17:46 +02:00
Leo 772922c9a6 node: remove terraEnabled flag
Terra is now always enabled

Change-Id: I2a898dd1a5027d1981cc4c65a65d14bd7c0f9fb0
2021-07-20 23:17:46 +02:00
Leo 349bf24937 design: remove message persistence on Solana
As discussed yesterday, we are going to build our own data availability
mechanism for signed VAAs, which will be specified in a new design doc.

This means that we can simplify our existing design:

- The special role of Solana as a fancy K/V store is eliminated
  along with the postVAA method. The Solana smart contract is now
  identical to all other chain contracts in terms of functionality.

- We no longer need optional persistence - our own data availability
  layer will not be limited by on-chain performance considerations,
  so we can simply persist all messages.

- Submission of VAAs to Solana now happens entirely client-side.
  Guardians no longer need to run the separate agent or spend SOL.

Change-Id: I1ec755803731796b70a546868c5ba5bc032b02e5
2021-07-20 23:17:46 +02:00
valentin bb8c1a312f add .env to gitignore
Change-Id: I31cee1436ff1b2566b38d088e9c864be93f95a7b
2021-07-20 23:05:28 +02:00
Reisen 6ea55f8c25 Upgrade Contract Changes + Test
Change-Id: Iafa06cd7df6dddd514cd2032b7693188d8202c46
2021-07-20 20:56:38 +00:00