Run multiple Ponder indexers in payment stack #588

Merged
nikugogoi merged 8 commits from sk-add-multiple-indexers into main 2023-10-19 06:56:10 +00:00
4 changed files with 9 additions and 5 deletions
Showing only changes of commit 2b4745c771 - Show all commits

View File

@ -35,7 +35,7 @@ export const config: Config = {
network: "fixturenet",
abi: "./abis/AdventureGold.json",
address: process.env.ERC20_CONTRACT,
startBlock: 5,
startBlock: 1,
maxBlockRange: 100,
},
],

View File

@ -34,7 +34,7 @@ export const config: Config = {
network: "fixturenet",
abi: "./abis/AdventureGold.json",
address: process.env.ERC20_CONTRACT,
startBlock: 5,
startBlock: 1,
maxBlockRange: 100,
},
],

View File

@ -15,7 +15,7 @@ export const config: Config = {
network: "fixturenet",
abi: "./abis/AdventureGold.json",
address: process.env.ERC20_CONTRACT,
startBlock: 5,
startBlock: 1,
maxBlockRange: 100,
},
],

View File

@ -158,8 +158,6 @@ Stack components:
}
}
```
* No entities will be returned at this point
* Transfer an ERC20 token on chain
@ -175,4 +173,10 @@ Stack components:
docker exec -it payments-ponder-er20-contracts-1 bash -c "yarn token:transfer:docker --token ${TOKEN_ADDRESS} --to 0xe22AD83A0dE117bA0d03d5E94Eb4E0d80a69C62a --amount 5000"
```
* Wait for a log in watcher Ponder app
```bash
06:40:47.567 INFO handlers Processed 1 event (up to Oct 19, 2023)
```
* Check the GQL query again in http://localhost:42069 to see a new `TransferEvent` entity