Example Inspector Module
To be defined here...
Building and running the example
go build && ./module start --services acl,example
2024-05-07T09:56:47.561+0200 INFO syncer/service.go:17 Injecting service dependencies {"service": "syncer"}
2024-05-07T09:56:47.561+0200 INFO acl/service.go:20 Injecting service dependencies {"service": "acl"}
2024-05-07T09:56:47.561+0200 INFO rpc/service.go:18 Injecting service dependencies {"service": "rpc"}
2024-05-07T09:56:47.562+0200 INFO module/service.go:26 Injecting service dependencies {"service": "example"}
2024-05-07T09:56:47.562+0200 INFO query/service.go:17 Injecting service dependencies {"service": "graphql"}
2024-05-07T09:56:47.562+0200 INFO service/service.go:223 Starting up unpack services {"network": "ethereum", "network_id": "1", "services": ["acl","example"]}
2024-05-07T09:56:47.562+0200 INFO module/service.go:43 Starting up the service {"network": "ethereum", "network_id": "1", "module": "Example Module"}
2024-05-07T09:56:47.562+0200 INFO pprof/pprof.go:39 Started up pprof server {"service": "default", "address": "0.0.0.0:4888"}
2024-05-07T09:56:47.562+0200 INFO stats/prometheus.go:51 Started up prometheus server {"service": "default", "address": "0.0.0.0:8510"}
Output
go build && ./module
NAME:
unpack - Solidity (Ethereum) Smart Contract Analysis Toolchain
USAGE:
unpack [global options] command [command options]
VERSION:
v
AUTHORS:
Nevio Vesic <info@unpack.dev>
Your Name <your@email.com>
COMMANDS:
example Example command on how to extend inspector
syncer Downloads and syncs blockchain smart contract information
start Starts all or selected unpack services
migrations Dataset (database) migration related commands
acl Manage user access control lists (ACL)
generators Generate application layer schemas (JSON-RPC, GraphQL)
datasets Manage database exports and imports
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--help, -h show help
--version, -v print the version
go build && ./module example --network ethereum
Example command action response ethereum