Source Code Explorer
Navigate the OPP_NET codebase. Every module, every function, documented.
opshrew
WASM indexer, CLI tools, TypeScript SDK
src/opshrew (indexer)lib.rs— WASM entry points and view exportsindexer.rs— Block processing, envelope parsing, contract executionnetwork.rs— Network config, chain IDs, HRP prefixesview.rs— All metashrew view functions (simulate, getcode, blocknumber, etc.)
src/storage/Storage Layertables.rs— RocksDB table definitionscontract_storage.rs— Bytecode and slot storageglobal_storage.rs— Block metadata, receipts, traces, epochs
crates/opshrew-vm/opshrew-vmrunner.rs— WASM contract execution enginestate.rs— EnvironmentVars, RunnerCallbacks, execution contextimports.rs— Host functions exposed to contract WASM
crates/opshrew-support/opshrew-supportenvelope.rs— OP_NET envelope parsing from tapscripttransaction.rs— extract_opnet_envelopes from Bitcoin transactionsaddress.rs— hash160, P2OP address derivation
crates/opnet-cli/opnet-climain.rs— All CLI commands: deploy, interact, call, wallet, mine, queries
crates/opnet-cli-common/opnet-cli-commonclient.rs— JSON-RPC client for all btc_* methodswallet.rs— HD wallet (BIP86 taproot, AES-256-GCM keystore)deploy.rs— Contract deployment (commit/reveal, PoW mining)interact.rs— Contract interaction (commit/reveal)envelope.rs— Envelope construction for transactions
crates/opcrypt/opcryptlib.rs— Cryptographic primitivesmldsa.rs— ML-DSA (post-quantum) key operations
crates/opminer/opminermain.rs— Standalone PoW minermining.rs— SHA-1 PoW challenge solvinggpu.rs— OpenCL GPU mining kernelrpc.rs— Mining RPC client
ts-sdk/@opnet/ts-sdksrc/provider/index.ts— MetashrewClient, OPNetProvidersrc/wallet/— WASM-compiled wallet bindingssrc/types.ts— TypeScript type definitions