UNPKG

witnet-solidity-bridge

Version:

Witnet Solidity Bridge contracts for EVM-compatible chains

27 lines (25 loc) 5.07 kB
// This file was autogenerated by Hardhat, do not edit it. // prettier-ignore // tslint:disable // eslint-disable // biome-ignore format: see above export interface IWitRandomnessLegacy$Type { readonly _format: "hh3-artifact-1"; readonly contractName: "IWitRandomnessLegacy"; readonly sourceName: "contracts/interfaces/legacy/IWitRandomnessLegacy.sol"; readonly abi: [{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"blockNumber","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"evmTxGasPrice","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"evmRandomizeFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"witnetQueryId","type":"uint256"},{"components":[{"internalType":"uint8","name":"committeeSize","type":"uint8"},{"internalType":"uint64","name":"witnessingFeeNanoWit","type":"uint64"}],"indexed":false,"internalType":"struct IWitRandomnessLegacy.RandomizeQueryParams","name":"witnetQuerySLA","type":"tuple"}],"name":"Randomizing","type":"event"},{"inputs":[{"internalType":"uint256","name":"evmGasPrice","type":"uint256"}],"name":"estimateRandomizeFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"fetchRandomnessAfter","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"fetchRandomnessAfterProof","outputs":[{"internalType":"bytes32","name":"witnetResultRandomness","type":"bytes32"},{"internalType":"uint64","name":"witnetResultTimestamp","type":"uint64"},{"internalType":"bytes32","name":"witnetResultTallyHash","type":"bytes32"},{"internalType":"uint256","name":"witnetResultFinalityBlock","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLastRandomizeBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"getRandomizeData","outputs":[{"internalType":"uint256","name":"witnetQueryId","type":"uint256"},{"internalType":"uint256","name":"prevRandomizeBlock","type":"uint256"},{"internalType":"uint256","name":"nextRandomizeBlock","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"getRandomizeNextBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"getRandomizePrevBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"getRandomizeStatus","outputs":[{"internalType":"enum IWitRandomnessLegacy.RandomizeStatus","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"isRandomized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"range","type":"uint32"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"random","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"randomize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"witnet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"witnetQuerySLA","outputs":[{"components":[{"internalType":"uint8","name":"committeeSize","type":"uint8"},{"internalType":"uint64","name":"witnessingFeeNanoWit","type":"uint64"}],"internalType":"struct IWitRandomnessLegacy.RandomizeQueryParams","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"witnetRadHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"}]; readonly bytecode: "0x"; readonly deployedBytecode: "0x"; readonly linkReferences: {}; readonly deployedLinkReferences: {}; readonly immutableReferences: {}; readonly inputSourceName: "project/contracts/interfaces/legacy/IWitRandomnessLegacy.sol"; readonly buildInfoId: "solc-0_8_30-47301052af11a5aa5062e9b98ca44d5e142950cf"; }; import "hardhat/types/artifacts"; declare module "hardhat/types/artifacts" { interface ArtifactMap { ["IWitRandomnessLegacy"]: IWitRandomnessLegacy$Type; ["contracts/interfaces/legacy/IWitRandomnessLegacy.sol:IWitRandomnessLegacy"]: IWitRandomnessLegacy$Type; } }