UNPKG

@zkp2p/reclaim-witness-sdk

Version:

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

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