#ethereum #relay #integrate #bonsai #relayer #contract-address #key

bin+lib bonsai-ethereum-relay

A relayer to integrate Ethereum with Bonsai

8 releases

0.6.1 Feb 1, 2024
0.6.0 Jan 29, 2024
0.6.0-rc.1 Dec 19, 2023
0.5.1 Nov 9, 2023

#9 in #relayer

50 downloads per month

Apache-2.0

9.5MB
114K SLoC

Solidity 52K SLoC // 0.3% comments JavaScript 36K SLoC // 0.0% comments Rust 18K SLoC // 0.1% comments RPM Specfile 3.5K SLoC AsciiDoc 3.5K SLoC // 0.0% comments Shell 398 SLoC // 0.1% comments GNU Style Assembly 370 SLoC // 0.5% comments Handlebars 149 SLoC TypeScript 115 SLoC // 0.0% comments

Bonsai Ethereum Relay

This repository provides the bonsai-ethereum-relay, a tool to integrate Ethereum with Bonsai. It is coupled with an Ethereum Smart Contract able to relay the interaction from Ethereum to Bonsai and vice versa.

Usage

A relayer to integrate Ethereum with Bonsai.

Usage: bonsai-ethereum-relay [OPTIONS] --contract-address <CONTRACT_ADDRESS> --eth-node-url <ETH_NODE_URL> --wallet-key-identifier <WALLET_KEY_IDENTIFIER>

Options:
  -p, --port <PORT>
          The port of the relay REST API [default: 8080]
      --rest-api
          Toggle to disable the relay REST API
      --contract-address <CONTRACT_ADDRESS>
          Bonsai Relay contract address on Ethereum
      --eth-node-url <ETH_NODE_URL>
          Ethereum Node endpoint
      --eth-chain-id <ETH_CHAIN_ID>
          Ethereum chain ID [default: 5]
  -w, --wallet-key-identifier <WALLET_KEY_IDENTIFIER>
          Wallet Key Identifier. Can be a private key as a hex string, or an AWS KMS key identifier [env: WALLET_KEY_IDENTIFIER=]
      --bonsai-api-url <BONSAI_API_URL>
          Bonsai API URL [env: BONSAI_API_URL=http://localhost:8081] [default: http://localhost:8081]
      --bonsai-api-key <BONSAI_API_KEY>
          Bonsai API Key Defaults to empty, providing no authentication [env: BONSAI_API_KEY=none] [default: ]
      --risc0-dev-mode
          Toggle to enable dev_mode: only a local executor runs your zkVM program and no proof is generated [env: RISC0_DEV_MODE=]
  -h, --help
          Print help
  -V, --version
          Print version

For additional instructions please refer to our documentation and our Bonsai Foundry template.

Dependencies

~50–71MB
~1.5M SLoC