UNPKG

@graphprotocol/toolshed

Version:

A collection of tools and utilities for the Graph Protocol Typescript components

29 lines 1.74 kB
import type { HardhatEthersProvider } from '@nomicfoundation/hardhat-ethers/internal/hardhat-ethers-provider'; import type { HardhatEthersSigner } from '@nomicfoundation/hardhat-ethers/signers'; declare enum GraphAccountIndex { Deployer = 0, Governor = 1, Arbitrator = 2, PauseGuardian = 3, SubgraphAvailabilityOracle = 4, Gateway = 5 } export type GraphAccounts = { deployer: HardhatEthersSigner; governor: HardhatEthersSigner; arbitrator: HardhatEthersSigner; pauseGuardian: HardhatEthersSigner; subgraphAvailabilityOracle: HardhatEthersSigner; gateway: HardhatEthersSigner; test: HardhatEthersSigner[]; }; export declare function getAccounts(provider: HardhatEthersProvider): Promise<GraphAccounts>; export declare function getDeployer(provider: HardhatEthersProvider, accountIndex?: GraphAccountIndex): Promise<HardhatEthersSigner>; export declare function getGovernor(provider: HardhatEthersProvider, accountIndex?: GraphAccountIndex): Promise<HardhatEthersSigner>; export declare function getArbitrator(provider: HardhatEthersProvider, accountIndex?: GraphAccountIndex): Promise<HardhatEthersSigner>; export declare function getPauseGuardian(provider: HardhatEthersProvider, accountIndex?: GraphAccountIndex): Promise<HardhatEthersSigner>; export declare function getSubgraphAvailabilityOracle(provider: HardhatEthersProvider, accountIndex?: GraphAccountIndex): Promise<HardhatEthersSigner>; export declare function getGateway(provider: HardhatEthersProvider, accountIndex?: GraphAccountIndex): Promise<HardhatEthersSigner>; export declare function getTestAccounts(provider: HardhatEthersProvider): Promise<HardhatEthersSigner[]>; export {}; //# sourceMappingURL=accounts.d.ts.map