-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
e2pg/config: declarative based indexing (#172)
Breaking change. Old config file format is no longer valid. New config file format enables declarative based indexing.
- Loading branch information
1 parent
a999b7c
commit 0edb55f
Showing
10 changed files
with
601 additions
and
395 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,56 @@ | ||
[ | ||
{ | ||
"name": "mainnet", | ||
"id": 1, | ||
"chain": 1, | ||
"concurrency": 8, | ||
"batch": 128, | ||
"eth": "https://1.rlps.indexsupply.net", | ||
"pg": "postgres:///e2pg", | ||
"integrations": ["erc721", "erc1155"] | ||
}, | ||
{ | ||
"name": "bedrock", | ||
"id": 2, | ||
"chain": 10, | ||
"concurrency": 8, | ||
"batch": 1024, | ||
"eth": "http://10.rlps.indexsupply.net", | ||
"pg": "postgres:///e2pg", | ||
"integrations": ["erc20"] | ||
} | ||
] | ||
{ | ||
"pg_url": "postgres:///e2pg", | ||
"eth_sources": [ | ||
{"name": "goerli", "chain_id": 5, "url": "https://5.rlps.indexsupply.net"} | ||
], | ||
"integrations": [ | ||
{ | ||
"name": "ERC20 Transfers", | ||
"enabled": true, | ||
"sources": [{"name": "goerli"}], | ||
"table": { | ||
"name": "e20_transfers", | ||
"columns": [ | ||
{"name": "chain_id", "type": "numeric"}, | ||
{"name": "block_num", "type": "numeric"}, | ||
{"name": "tx_hash", "type": "bytea"}, | ||
{"name": "contract", "type": "bytea"}, | ||
{"name": "f", "type": "bytea"}, | ||
{"name": "t", "type": "bytea"}, | ||
{"name": "amt", "type": "numeric"} | ||
] | ||
}, | ||
"block": [ | ||
{"name": "chain_id", "column": "chain_id"}, | ||
{"name": "block_num", "column": "block_num"}, | ||
{"name": "tx_hash", "column": "tx_hash"}, | ||
{"name": "log_addr", "column": "contract"} | ||
], | ||
"event": { | ||
"name": "Transfer", | ||
"type": "event", | ||
"anonymous": false, | ||
"inputs": [ | ||
{ | ||
"indexed": true, | ||
"name": "from", | ||
"type": "address", | ||
"column": "f" | ||
}, | ||
{ | ||
"indexed": true, | ||
"name": "to", | ||
"type": "address", | ||
"column": "t" | ||
}, | ||
{ | ||
"indexed": true, | ||
"name": "amount", | ||
"type": "uint256", | ||
"column": "amt" | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.