forked from cerc-io/ipld-eth-server
remove accidental duplicate vendor lib that was imported by goland
This commit is contained in:
@@ -85,9 +85,11 @@ In some cases (such as recent Ubuntu systems), it may be necessary to overcome f
|
||||
Syncs VulcanizeDB with the configured Ethereum node.
|
||||
1. Start the node
|
||||
- If node state is not yet fully synced, Vulcanize will not be able to operate on the fetched data. You will need to wait for the initial sync to finish.
|
||||
1. Start the vulcanize_db sync
|
||||
1. Start the vulcanize_db sync or lightSync
|
||||
- Execute `./vulcanizedb sync --config <path to config.toml>`
|
||||
- Or `./vulcanizedb lightSync --config <path to config.toml>`
|
||||
- Or to sync from a specific block: `./vulcanizedb sync --config <config.toml> --starting-block-number <block-number>`
|
||||
- Or `./vulcanizedb lightSync --config <config.toml> --starting-block-number <block-number>`
|
||||
|
||||
## Alternatively, sync from Geth's underlying LevelDB
|
||||
Sync VulcanizeDB from the LevelDB underlying a Geth node.
|
||||
@@ -135,3 +137,23 @@ false
|
||||
```
|
||||
|
||||
If you have full rinkeby chaindata you can move it to `rinkeby_vulcanizedb_geth_data` docker volume to skip long wait of sync.
|
||||
|
||||
## omniWatcher and lightOmniWatcher
|
||||
These commands require a pre-synced (full or light, respectively) vulcanizeDB
|
||||
To watch all events of a contract:
|
||||
- Execute `./vulcanizedb omniWatcher --config <path to config.toml> --contract-address <contract address>`
|
||||
- Execute `./vulcanizedb lightOmniWatcher --config <path to config.toml> --contract-address <contract address>`
|
||||
To watch contracts on a network other than mainnet, use the network flag:
|
||||
- Execute `./vulcanizedb lightOmniWatcher --config <path to config.toml> --contract-address <contract address> --network <ropsten, kovan, or rinkeby>`
|
||||
To watch events within a certain block range use the starting block and ending block flags:
|
||||
- Execute `./vulcanizedb lightOmniWatcher --config <path to config.toml> --contract-address <contract address> --starting-block-number <#> --ending-block-number <#>`
|
||||
To watch only select events use the contract events flag:
|
||||
- Execute `./vulcanizedb lightOmniWatcher --config <path to config.toml> --contract-address <contract address> --contract-events <EventName1> --contract-events <EventName2>`
|
||||
To watch all events and poll select methods with the addresses emitted by those events:
|
||||
- Execute `./vulcanizedb lightOmniWatcher --config <path to config.toml> --contract-address <contract address> --contract-methods <methodName1> --contract-methods <methodName2>`
|
||||
To watch select event and poll select method:
|
||||
- Execute `./vulcanizedb lightOmniWatcher --config <path to config.toml> --contract-address <contract address> --contract-events <EventName> --contract-methods <methodName>`
|
||||
To watch all types of events of the contract but only persist the ones that emit one of the filtered-for addresses:
|
||||
- Execute `./vulcanizedb lightOmniWatcher --config <path to config.toml> --contract-address <contract address> --event-filter-addresses <account address 1> --event-filter-addresses <account address 2>`
|
||||
To watch all events of the contract but only poll a select method with specified addresses:
|
||||
- Execute `./vulcanizedb lightOmniWatcher --config <path to config.toml> --contract-address <contract address> --method-filter-addresses <account address 1> --method-filter-addresses <account address 2>`
|
||||
Reference in New Issue
Block a user