Go to file
Leo c51a2da83f Update operations.md 2021-02-04 20:09:33 +01:00
.run
bridge Added Terra node height monitoring (#176) 2021-02-04 19:48:54 +01:00
dashboards Add example Grafana dashboard 2021-02-04 18:38:19 +01:00
devnet devnet: Add new command line flags for native Solana poller 2021-01-21 11:40:58 +01:00
docs Update operations.md 2021-02-04 20:09:33 +01:00
ethereum Use /usr/bin/env for shell scripts; web/.dockerignore: node_modules (#159) 2021-01-23 18:20:17 +01:00
proto bridge: refuse to use deterministic keys in production 2021-01-29 12:40:55 +01:00
scripts Use /usr/bin/env for shell scripts; web/.dockerignore: node_modules (#159) 2021-01-23 18:20:17 +01:00
solana don't subsidize guardian set creation (#172) 2021-02-02 21:20:48 +01:00
terra Added missing e2e tests between Terra and Ethereum/Solana (#168) 2021-02-01 20:38:13 +01:00
third_party third_party/solana: update to v1.4.25 2021-02-01 22:22:28 +01:00
tilt_modules Use /usr/bin/env for shell scripts; web/.dockerignore: node_modules (#159) 2021-01-23 18:20:17 +01:00
tools Use /usr/bin/env for shell scripts; web/.dockerignore: node_modules (#159) 2021-01-23 18:20:17 +01:00
web update web ui for mainnet 2021-02-03 12:09:55 +01:00
.gitignore
DEVELOP.md Added missing e2e tests between Terra and Ethereum/Solana (#168) 2021-02-01 20:38:13 +01:00
Dockerfile.agent
LICENSE
Makefile Add version stamp to binary and include in heartbeat 2021-01-28 21:46:09 +01:00
README.md Update audit status in README 2021-01-19 17:40:15 +01:00
Tiltfile bridge: add initial set of basic Prometheus metrics 2021-01-25 20:17:58 +01:00
buf.yml
dev-install.sh Use /usr/bin/env for shell scripts; web/.dockerignore: node_modules (#159) 2021-01-23 18:20:17 +01:00
generate-abi.sh Use /usr/bin/env for shell scripts; web/.dockerignore: node_modules (#159) 2021-01-23 18:20:17 +01:00
generate-protos.sh Use /usr/bin/env for shell scripts; web/.dockerignore: node_modules (#159) 2021-01-23 18:20:17 +01:00

README.md

Wormhole

Read our introduction blog article for more details on Wormhole and its major design decisions.

See DEVELOP.md for instructions on how to set up a local devnet.

See docs/operations.md for node operator instructions.

Audit / Feature Status

Feature Maintainer Auditor Status
Ethereum contract Certus One Kudelski ✔️ Audited
Solana contract Certus One Kudelski ✔️ Audited
Bridge node Certus One Kudelski ✔️ Audited
Terra contract Everstake Kudelski ✔️ Audited

This software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Or plainly spoken - this is a very complex software which targets a bleeding-edge, experimental smart contract runtime. Mistakes happens, and no matter how hard you try and whether or not you pay someone to audit it, it may eat your tokens, set your printer on fire or startle your cat.

Cryptocurrencies in general are a high-risk investment, there's decent chance you'll lose your money, and you most certainly shouldn't put your life savings into a Wormhole contract (or any other).

Repo overview

  • bridge/ — The guardian node which connects to both chains, observes lockups and submits VAAs. Written in pure Go.

    • cmd/ - CLI entry point, deals with the mechanics of parsing command line flags and loading keys.
    • pkg/processor — Most of the business logic for cross-chain communication lives here. Talks to multiple loosely coupled services communicating via Go channels.
    • pkg/p2p — libp2p-based gossip network.
    • pkg/devnet — Constants and helper functions for the deterministic local devnet.
    • pkg/ethereum — Ethereum chain interface with auto-generated contract ABI. Uses go-ethereum to directly connect to an Eth node.
    • pkg/solana — Solana chain interface. Light gRPC wrapper around a Rust agent (see below) which actually talks to Solana.
    • pkg/supervisor — Erlang-inspired process supervision tree imported from Certus One's internal code base. We use this everywhere in the bridge code for fault tolerance and fast convergence.
    • pkg/vaa — Go implementation of our VAA structure, including serialization code.
  • ethereum/ — Ethereum wormhole contract, tests and fixtures.

    • contracts/ — Wormhole itself, the wrapped token and helper libraries.
    • migrations/ — Ganache migration that deploys the contracts to a local devnet. This is the starting point for both the tests and the devnet. Note that devnet and tests result in different devnet states.
    • src/send-lockups.js — Sends ETH lockups in a loop. See DEVELOP.md for usage.
  • solana/ — Solana sidecar agent, contract and CLI.

    • agent/ — Rust agent sidecar deployed alongside each Guardian node. It serves a local gRPC API to interface with the Solana blockchain. This is far easier to maintain than a pure-Go Solana client.
    • bridge/ — Solana Wormhole smart contract code.
    • cli/ — Wormhole user CLI tool for interaction with the smart contract.
    • devnet_setup.sh — Devnet initialization and lockup generator (the Solana equivalent to the Ganache migration + send-lockups.js). Runs as a sidecar alongside the Solana devnet.
  • proto/ — Protocol Buffer definitions for the P2P network and the local Solana agent RPC. These are heavily commented and a good intro.

  • third_party/ — Build machinery and tooling for third party applications we use.

    • abigen/ — Reproducible build for the go-ethereum ABI code generator we use.
    • solana/ — Build for the full Solana project plus a floating patchset we maintain while waiting for features to be implemented in the upstream project.
  • docs/ — Operator documentation and project specs.

  • web/ — User interface for cross-chain transfers. Not yet wired into the local devnet. Uses Metamask and Web3.js to initiate transfers from a browser. Watch this video as an introduction.

  • tools/ — Reproducible builds for local development tooling like buf and protoc-gen-go.

  • Tiltfile, devnet/ and various Dockerfiles — deployment code and fixtures for local development. Deploys a deterministic devnet with an Ethereum devnet, Solana devnet, and a variably sized guardian set that can be used to simulate full cross-chain transfers. The Dockerfiles are carefully designed for fast incremental builds with local caching, and require a recent Docker version with Buildkit support. See DEVELOP.md for usage.

  • generate-abi.sh and generate-protos.sh — Helper scripts to (re-)build generated code. The Eth ABI is committed to the repo, so you only need to run this script if the Wormhole.sol interface changes. The protobuf libraries are not committed and will be regenerated automatically by the Tiltfile.