micro-eth-signer
Version:
Minimal library for Ethereum transactions, addresses and smart contracts
24 lines • 1.69 kB
TypeScript
import { type ContractABI, type ContractInfo, Decoder, createContract, deployContract, events } from './abi-decoder.ts';
import { default as ERC1155 } from './abi-erc1155.ts';
import { default as ERC20 } from './abi-erc20.ts';
import { default as ERC721 } from './abi-erc721.ts';
import { KYBER_NETWORK_PROXY_CONTRACT } from './abi-kyber.ts';
import { UNISWAP_V2_ROUTER_CONTRACT } from './abi-uniswap-v2.ts';
import { UNISWAP_V3_ROUTER_CONTRACT } from './abi-uniswap-v3.ts';
import { default as WETH } from './abi-weth.ts';
export { ERC1155, ERC20, ERC721, KYBER_NETWORK_PROXY_CONTRACT, UNISWAP_V2_ROUTER_CONTRACT, UNISWAP_V3_ROUTER_CONTRACT, WETH, };
export { Decoder, createContract, deployContract, events };
export type { ContractABI, ContractInfo };
export declare const TOKENS: Record<string, ContractInfo>;
export declare const CONTRACTS: Record<string, ContractInfo>;
export declare const tokenFromSymbol: (symbol: string) => {
contract: string;
} & ContractInfo;
export type DecoderOpt = {
customContracts?: Record<string, ContractInfo>;
noDefault?: boolean;
};
export declare const decodeData: (to: string, data: string, amount?: bigint, opt?: DecoderOpt) => import("./abi-decoder.ts").SignatureInfo | import("./abi-decoder.ts").SignatureInfo[] | undefined;
export declare const decodeTx: (transaction: string, opt?: DecoderOpt) => import("./abi-decoder.ts").SignatureInfo | import("./abi-decoder.ts").SignatureInfo[] | undefined;
export declare const decodeEvent: (to: string, topics: string[], data: string, opt?: DecoderOpt) => import("./abi-decoder.ts").SignatureInfo | import("./abi-decoder.ts").SignatureInfo[] | undefined;
//# sourceMappingURL=abi.d.ts.map