hardhat
Version:
Hardhat is an extensible developer tool that helps smart contract developers increase productivity by reliably bringing together the tools they want.
8 lines • 475 B
JavaScript
import { emptyTask, task } from "../../../../core/config.js";
import { buildUtilsTask } from "../utils-task.js";
export function fetch(prefix) {
const fetchTask = emptyTask([...prefix, "fetch"], "Fetch on-chain data").build();
const blockNumberTask = buildUtilsTask(task([...prefix, "fetch", "block-number"], "Print the latest block number"), async () => await import("./block-number.js"));
return [fetchTask, blockNumberTask];
}
//# sourceMappingURL=index.js.map