Skip to content

A beautifully simple CLI to log Solidity smart contract interactions.

Notifications You must be signed in to change notification settings

liamzebedee/chainlog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chainlog

Imgur

A beautifully simple CLI to log Solidity smart contract interactions.

  • logs function calls and events
  • detects new deployments of contracts
  • connects to any Ethereum JSON-RPC provider
  • works with Truffle and sol-compiler artifacts

Developed as part of our interchain bridging protocol, ohdex.

Usage

CLI

Configure chainwatch.yml:

rpcUrl: http://localhost:10000
contracts:
  artifacts: ./../../packages/contracts/build/artifacts/*.json
  addresses:
    - EventEmitter: '0x2559d11bbcaf82b35848876e0bd66eddc8c337e5'
    - EventEmitter: '0xa50aB77b35DF04AE960C393610158102fb63283a'
  watch_new: true
truffle: false

Then run yarn start.

Node.js API

require("chainlog")({ config: require.resolve('./blah.yml') })

About

A beautifully simple CLI to log Solidity smart contract interactions.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published