UNPKG

@bronlabs/intents-sdk

Version:
18 lines (17 loc) 683 B
import { NetworkConfig } from '../config.js'; export interface TransactionData { to: string; token: string; amount: bigint; confirmed: boolean; } export interface Network { getDecimals(tokenAddress: string): Promise<number>; getTxData(txHash: string, tokenAddress: string, recipientAddress: string): Promise<TransactionData | undefined>; transfer(privateKey: string, to: string, value: bigint, tokenAddress: string): Promise<string>; readonly retryDelay: number; reconcileInterval?: number; } export declare const initNetworks: (configs: { [key: string]: NetworkConfig; }, filter?: (cfg: NetworkConfig) => boolean) => Record<string, Network>;