Skip to content

Commit a78f959

Browse files
authored
Template README refinements (#164)
* update go por README trigger time * update transaction hash * update transaction hash in ts template * update TS template to be the same as GO
1 parent d142fb5 commit a78f959

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

cmd/creinit/template/workflow/porExampleDev/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ This will create Go binding files for all the contracts (ReserveManager, SimpleE
8282
## 6. Configure workflow
8383

8484
Configure `config.json` for the workflow
85-
- `schedule` should be set to `"*/3 * * * * *"` for every 3 seconds or any other cron expression you prefer
85+
- `schedule` should be set to `"0 */1 * * * *"` for every 1 minute(s) or any other cron expression you prefer, note [CRON service quotas](https://docs.chain.link/cre/service-quotas)
8686
- `url` should be set to existing reserves HTTP endpoint API
8787
- `tokenAddress` should be the SimpleERC20 contract address
8888
- `reserveManagerAddress` should be the ReserveManager contract address
@@ -135,16 +135,16 @@ Select option 1, and the workflow should immediately execute.
135135

136136
Select option 2, and then two additional prompts will come up and you can pass in the example inputs:
137137

138-
Transaction Hash: 0x420721d7d00130a03c5b525b2dbfd42550906ddb3075e8377f9bb5d1a5992f8e
138+
Transaction Hash: 0x9394cc015736e536da215c31e4f59486a8d85f4cfc3641e309bf00c34b2bf410
139139
Log Event Index: 0
140140

141141
The output will look like:
142142
```
143143
🔗 EVM Trigger Configuration:
144144
Please provide the transaction hash and event index for the EVM log event.
145-
Enter transaction hash (0x...): 0x420721d7d00130a03c5b525b2dbfd42550906ddb3075e8377f9bb5d1a5992f8e
145+
Enter transaction hash (0x...): 0x9394cc015736e536da215c31e4f59486a8d85f4cfc3641e309bf00c34b2bf410
146146
Enter event index (0-based): 0
147-
Fetching transaction receipt for transaction 0x420721d7d00130a03c5b525b2dbfd42550906ddb3075e8377f9bb5d1a5992f8e...
147+
Fetching transaction receipt for transaction 0x9394cc015736e536da215c31e4f59486a8d85f4cfc3641e309bf00c34b2bf410...
148148
Found log event at index 0: contract=0x1d598672486ecB50685Da5497390571Ac4E93FDc, topics=3
149-
Created EVM trigger log for transaction 0x420721d7d00130a03c5b525b2dbfd42550906ddb3075e8377f9bb5d1a5992f8e, event 0
150-
```
149+
Created EVM trigger log for transaction 0x9394cc015736e536da215c31e4f59486a8d85f4cfc3641e309bf00c34b2bf410, event 0
150+
```

cmd/creinit/template/workflow/typescriptPorExampleDev/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ For a quick start, every contract used in this workflow is already provided in t
8080

8181
Configure `config.json` for the workflow
8282

83-
- `schedule` should be set to `"*/30 * * * * *"` for every 30 seconds or any other cron expression you prefer
83+
- `schedule` should be set to `"0 */1 * * * *"` for every 1 minute(s) or any other cron expression you prefer, note [CRON service quotas](https://docs.chain.link/cre/service-quotas)
8484
- `url` should be set to existing reserves HTTP endpoint API
8585
- `tokenAddress` should be the SimpleERC20 contract address
8686
- `porAddress` should be the ReserveManager contract address
@@ -138,17 +138,17 @@ Select option 1, and the workflow should immediately execute.
138138

139139
Select option 2, and then two additional prompts will come up and you can pass in the example inputs:
140140

141-
Transaction Hash: 0x420721d7d00130a03c5b525b2dbfd42550906ddb3075e8377f9bb5d1a5992f8e
141+
Transaction Hash: 0x9394cc015736e536da215c31e4f59486a8d85f4cfc3641e309bf00c34b2bf410
142142
Log Event Index: 0
143143

144144
The output will look like:
145145

146146
```
147147
🔗 EVM Trigger Configuration:
148148
Please provide the transaction hash and event index for the EVM log event.
149-
Enter transaction hash (0x...): 0x420721d7d00130a03c5b525b2dbfd42550906ddb3075e8377f9bb5d1a5992f8e
149+
Enter transaction hash (0x...): 0x9394cc015736e536da215c31e4f59486a8d85f4cfc3641e309bf00c34b2bf410
150150
Enter event index (0-based): 0
151-
Fetching transaction receipt for transaction 0x420721d7d00130a03c5b525b2dbfd42550906ddb3075e8377f9bb5d1a5992f8e...
151+
Fetching transaction receipt for transaction 0x9394cc015736e536da215c31e4f59486a8d85f4cfc3641e309bf00c34b2bf410...
152152
Found log event at index 0: contract=0x1d598672486ecB50685Da5497390571Ac4E93FDc, topics=3
153-
Created EVM trigger log for transaction 0x420721d7d00130a03c5b525b2dbfd42550906ddb3075e8377f9bb5d1a5992f8e, event 0
153+
Created EVM trigger log for transaction 0x9394cc015736e536da215c31e4f59486a8d85f4cfc3641e309bf00c34b2bf410, event 0
154154
```

0 commit comments

Comments
 (0)