events-to-table
v0.0.9
Published
A CLI tool that generates ClickHouse table schemas from Ethereum contract events.
Downloads
15
Readme
events-to-clickhouse-table
A CLI tool that generates ClickHouse table schemas from Ethereum contract events.
Installation
npm install -g events-to-tableUsage
The CLI has one command: generate
Generate from contract address
events-to-table generate --from address --contract 0x1f9840a85d5af5bf1d1762f925bdaddc4201f984 --etherscan $ETHERSCAN_KEYGenerate from ABI file
events-to-table generate --from abi --abi ./path/to/abi.jsonOptions
--from <'address' | 'abi'>- Source for the ABI data--contract <string>- Contract address (required when using--from address)--etherscan <string>- Etherscan API key (required when using--from address)--abi <string>- Path to local ABI file (required when using--from abi)--output <string>- Output directory for generated files (optional)--case <snake | camel | preserve>- The case style used to name the table and fields. (defaults to snake)
It uses Effect btw
