@bronlabs/intents-sdk
Version:
SDK for Intents DeFi smart contracts
18 lines (17 loc) • 683 B
TypeScript
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>;