Decrease Ponder start block to process contract transfer event at deployment
This commit is contained in:
parent
6812347078
commit
2b4745c771
@ -35,7 +35,7 @@ export const config: Config = {
|
|||||||
network: "fixturenet",
|
network: "fixturenet",
|
||||||
abi: "./abis/AdventureGold.json",
|
abi: "./abis/AdventureGold.json",
|
||||||
address: process.env.ERC20_CONTRACT,
|
address: process.env.ERC20_CONTRACT,
|
||||||
startBlock: 5,
|
startBlock: 1,
|
||||||
maxBlockRange: 100,
|
maxBlockRange: 100,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
@ -34,7 +34,7 @@ export const config: Config = {
|
|||||||
network: "fixturenet",
|
network: "fixturenet",
|
||||||
abi: "./abis/AdventureGold.json",
|
abi: "./abis/AdventureGold.json",
|
||||||
address: process.env.ERC20_CONTRACT,
|
address: process.env.ERC20_CONTRACT,
|
||||||
startBlock: 5,
|
startBlock: 1,
|
||||||
maxBlockRange: 100,
|
maxBlockRange: 100,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
@ -15,7 +15,7 @@ export const config: Config = {
|
|||||||
network: "fixturenet",
|
network: "fixturenet",
|
||||||
abi: "./abis/AdventureGold.json",
|
abi: "./abis/AdventureGold.json",
|
||||||
address: process.env.ERC20_CONTRACT,
|
address: process.env.ERC20_CONTRACT,
|
||||||
startBlock: 5,
|
startBlock: 1,
|
||||||
maxBlockRange: 100,
|
maxBlockRange: 100,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
@ -158,8 +158,6 @@ Stack components:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
* No entities will be returned at this point
|
|
||||||
|
|
||||||
* Transfer an ERC20 token on chain
|
* 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"
|
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
|
* Check the GQL query again in http://localhost:42069 to see a new `TransferEvent` entity
|
||||||
|
Loading…
Reference in New Issue
Block a user