UNPKG

@reclaimprotocol/attestor-core

Version:

<div> <div> <img src="https://raw.githubusercontent.com/reclaimprotocol/.github/main/assets/banners/Attestor-Core.png" /> </div> </div>

22 lines (21 loc) 893 B
import { Contract, JsonRpcProvider, Wallet } from 'ethers'; import type { ChainConfig } from '../../avs/types/index.ts'; /** * get the contracts for the given chain ID */ export declare function getContracts(chainId?: string): { provider: JsonRpcProvider; wallet: Wallet | undefined; delegationManager: Contract; contract: import("../../avs/contracts/index.ts").ReclaimServiceManager; registryContract: Contract; avsDirectory: Contract; }; export declare function initialiseContracts({ rpcUrl, stakeRegistryAddress, avsDirectoryAddress, contractAddress, delegationManagerAddress, }: ChainConfig, privateKey?: string | undefined): { provider: JsonRpcProvider; wallet: Wallet | undefined; delegationManager: Contract; contract: import("../../avs/contracts/index.ts").ReclaimServiceManager; registryContract: Contract; avsDirectory: Contract; };