The home for Hyperlane core contracts, sdk packages, and other infrastructure
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
hyperlane-monorepo/rust/tools/abacus-cli/README.md

22 lines
821 B

## Prover CLI
This CLI directly accesses a synced or partially-synced processor DB, retrieves
messages and proofs, and dispatches them to the contracts.
### Usage
- `cargo run --bin prove-cli`
- `--leaf-index` - specify the leaf to prove
- `--leaf-hash` - specify the leaf to prove
- if both are specified `--leaf-index` takes precedence
- `--rpc` specify the RPC endpoint
- `--key` specify the hex key to use to sign txns
- in future versions this will be an env var or a node or aws signer
- `--db` specify the filepath to the DB
- `--address` specify the Replica address to submit to
### Example
Submit a proof of leaf 23 in SOME tree to celo.
- `cargo run --bin prove-cli --leaf-index 23 --rpc "https://forno.celo.org" --key $FUNDED_CELO_PRIVKEY --db ../dbs/whatever --address 0x1234..abcd`