UNPKG

web3agent-aof

Version:

AI Framework for Onchain Operations and DeFi Interactions

21 lines (20 loc) 551 B
import { ethers } from 'ethers'; export type NetworkConfig = { chainId: number; name: string; rpcUrl: string; explorerUrl: string; contracts: { uniswapV2Router: string; aaveV3Pool: string; }; }; export declare const NETWORKS: { [key: string]: NetworkConfig; }; export declare const setupWallet: (network?: string) => Promise<{ wallet: ethers.Wallet; provider: ethers.JsonRpcProvider; network: NetworkConfig; }>; export declare const getExplorerUrl: (txHash: string, network?: string) => string;