UNPKG

hardhat-scilla-plugin

Version:
23 lines 1.22 kB
import { Account, Transaction } from "@zilliqa-js/account"; import { BN } from "@zilliqa-js/util"; import { Zilliqa } from "@zilliqa-js/zilliqa"; import { HardhatRuntimeEnvironment } from "hardhat/types"; import * as ScillaContractDeployer from "./deployer/ScillaContractDeployer"; export declare class ZilliqaHardhatObject { getEventLog(tx: Transaction): any; getZilliqaSetup(): ScillaContractDeployer.Setup; getZilliqaJSObject(): Zilliqa; getAccounts(): Account[]; getDefaultAccount(): Account | undefined; /** Push a private key onto the accounts array, returning a pair of the * account and the index at which it can be found */ pushPrivateKey(privKey: string): [Account, number]; createPrivateKey(): string; transferTo(toAccount: Account, value: BN, txParams?: {}): Promise<Transaction>; transferToAddress(toAddress: string, value: BN, txParams?: {}): Promise<Transaction>; getBalance(account: Account): Promise<[BN, number]>; getBalanceForAddress(addressToQuery: string): Promise<[BN, number]>; } export declare function loadZilliqaHardhatObject(_hre: HardhatRuntimeEnvironment): ZilliqaHardhatObject; //# sourceMappingURL=ZilliqaHardhatObject.d.ts.map