0.0.6 • Published 2 years ago

@georacle/hardhat-georacle v0.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

npm CircleCI hardhat

Georacle Hardhat Plugin

Installation

To install this plugin use:

npm install @georacle/hardhat-georacle --save

Import the plugin in your hardhat.config.js:

require("@georacle/hardhat-georacle");

Or if you are using TypeScript, in your hardhat.config.ts:

import "@georacle/hardhat-georacle";

Usage

You need to add the following Georacle config to your hardhat.config.js file:

module.exports = {
  networks: {
    mainnet: { ... }
  },
  georacle: {
    // Your API key for Georacle
    // Obtain one at https://georacle.io/
    apiKey: "YOUR_GEORACLE_API_KEY"
  }
};

Tasks

This plugin adds tasks to authorize and remove a contract under your Georacle account.

Authorize a contract

npx hardhat authorize-contract --contract <contract address>

Remove a contract

npx hardhat remove-contract --contract <contract address>

Environment extensions

This plugin adds the corresponding functions to authorize and remove contracts within the Hardhat Runtime Environment.

Authorize a contract

hre.authorizeContract(hre, contractAddress);

Remove a contract

hre.removeContract(hre, contractAddress);