Source Code Explorer

Navigate the OPP_NET codebase. Every module, every function, documented.

opshrew

WASM indexer, CLI tools, TypeScript SDK

src/opshrew (indexer)
  • lib.rsWASM entry points and view exports
  • indexer.rsBlock processing, envelope parsing, contract execution
  • network.rsNetwork config, chain IDs, HRP prefixes
  • view.rsAll metashrew view functions (simulate, getcode, blocknumber, etc.)
src/storage/Storage Layer
  • tables.rsRocksDB table definitions
  • contract_storage.rsBytecode and slot storage
  • global_storage.rsBlock metadata, receipts, traces, epochs
crates/opshrew-vm/opshrew-vm
  • runner.rsWASM contract execution engine
  • state.rsEnvironmentVars, RunnerCallbacks, execution context
  • imports.rsHost functions exposed to contract WASM
crates/opshrew-support/opshrew-support
  • envelope.rsOP_NET envelope parsing from tapscript
  • transaction.rsextract_opnet_envelopes from Bitcoin transactions
  • address.rshash160, P2OP address derivation
crates/opnet-cli/opnet-cli
  • main.rsAll CLI commands: deploy, interact, call, wallet, mine, queries
crates/opnet-cli-common/opnet-cli-common
  • client.rsJSON-RPC client for all btc_* methods
  • wallet.rsHD wallet (BIP86 taproot, AES-256-GCM keystore)
  • deploy.rsContract deployment (commit/reveal, PoW mining)
  • interact.rsContract interaction (commit/reveal)
  • envelope.rsEnvelope construction for transactions
crates/opcrypt/opcrypt
  • lib.rsCryptographic primitives
  • mldsa.rsML-DSA (post-quantum) key operations
crates/opminer/opminer
  • main.rsStandalone PoW miner
  • mining.rsSHA-1 PoW challenge solving
  • gpu.rsOpenCL GPU mining kernel
  • rpc.rsMining RPC client
ts-sdk/@opnet/ts-sdk
  • src/provider/index.tsMetashrewClient, OPNetProvider
  • src/wallet/WASM-compiled wallet bindings
  • src/types.tsTypeScript type definitions