UNPKG

@reclaimprotocol/attestor-core

Version:

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

28 lines (27 loc) 790 B
import { ethers } from 'ethers'; import { logger as LOGGER } from '../../utils'; type RegisterOpts = { logger?: typeof LOGGER; /** * What chain to register the operator on * @default -- env variable CHAIN_ID */ chainId?: string; /** * wallet of the operator. * @default -- wallet specified in the contracts * fetched by the chainId */ wallet?: ethers.Wallet; /** * URL of the Reclaim RPC server. * @default -- env variable RECLAIM_PUBLIC_URL */ reclaimRpcUrl?: string; }; /** * Registers the operator on the chain, if required. * If already registered -- will just pass through */ export declare function registerOperator({ logger, chainId, wallet, reclaimRpcUrl }?: RegisterOpts): Promise<void>; export {};