Decrease Ponder start block to process contract transfer event at deployment

This commit is contained in:
Nabarun 2023-10-19 12:19:51 +05:30
parent 6812347078
commit 2b4745c771
4 changed files with 9 additions and 5 deletions

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

@ -159,8 +159,6 @@ Stack components:
}
```
* No entities will be returned at this point
* Transfer an ERC20 token on chain
* Get the deployed ERC20 token address
@ -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