Skip to content

Commit a538177

Browse files
committed
restore original task names
1 parent dc171b5 commit a538177

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

data-streams/getting-started/hardhat/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ Expect output similar to the following in your terminal:
109109
Programmatically register and fund a new `Log Trigger` upkeep with 1 LINK:
110110

111111
```bash
112-
npx hardhat register-upkeep --streams-upkeep <StreamsUpkeepRegistrarAddress> --log-emitter <LogEmitterAddress> --network arbitrumSepolia
112+
npx hardhat registerAndFundUpkeep --streams-upkeep <StreamsUpkeepRegistrarAddress> --log-emitter <LogEmitterAddress> --network arbitrumSepolia
113113
```
114114

115115
Replace `<StreamsUpkeepRegistrarAddress>` and `<LogEmitterAddress>` with the addresses of your `StreamsUpkeepRegistrar` and `LogEmitter` contracts.
@@ -128,7 +128,7 @@ Expect output similar to the following in your terminal:
128128
Now, you can use your emitter contract to emit a log and initiate the upkeep, which retrieves data for the specified Data Streams feed ID.
129129

130130
```bash
131-
npx hardhat emit-log --log-emitter <LogEmitterAddress> --network arbitrumSepolia
131+
npx hardhat emitLog --log-emitter <LogEmitterAddress> --network arbitrumSepolia
132132
```
133133

134134
Replace `<LogEmitterAddress>` with the address of your `LogEmitter` contract.
@@ -146,7 +146,7 @@ After the transaction is complete, the log is emitted, and the upkeep is trigger
146146
The retrieved price is stored in the `lastDecodedPrice` contract variable and emitted in the logs. To see the price retrieved by the `StreamsUpkeepRegistrar` contract:
147147

148148
```bash
149-
npx hardhat get-last-price --streams-upkeep <StreamsUpkeepRegistrarAddress> --network arbitrumSepolia
149+
npx hardhat getLastRetrievedPrice --streams-upkeep <StreamsUpkeepRegistrarAddress> --network arbitrumSepolia
150150
```
151151

152152
Replace `<StreamsUpkeepRegistrarAddress>` with the address of your `StreamsUpkeepRegistrar` contract.

data-streams/getting-started/hardhat/tasks/emitLog.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import { task } from "hardhat/config";
22
import { HardhatRuntimeEnvironment } from "hardhat/types/hre";
33
import { spin } from "./utils/index.js";
44

5-
// Define a Hardhat task named "emit-log" to trigger log emission from the LogEmitter contract.
5+
// Define a Hardhat task named "emitLog" to trigger log emission from the LogEmitter contract.
66
export const emitLog = task(
7-
"emit-log",
7+
"emitLog",
88
"Emits a log from the LogEmitter contract"
99
)
1010
.addOption({

data-streams/getting-started/hardhat/tasks/getLastRetrievedPrice.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { spin } from "./utils/index.js";
77
* This task requires the address of the deployed StreamsUpkeep contract as input.
88
*/
99
export const getLastPrice = task(
10-
"get-last-price",
10+
"getLastRetrievedPrice",
1111
"Gets the last retrieved price from StreamsUpkeep"
1212
)
1313
.addOption({

data-streams/getting-started/hardhat/tasks/registerAndFundLogUpkeep.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { spin } from "./utils/index.js";
1010
* request to a specified StreamsUpkeep contract.
1111
*/
1212
export const registerUpkeep = task(
13-
"register-upkeep",
13+
"registerAndFundUpkeep",
1414
"Registers and funds an upkeep with Chainlink Automation"
1515
)
1616
.addOption({

0 commit comments

Comments
 (0)