UNPKG

viem-erc20

Version:
20 lines 1.31 kB
import { type Account, type Chain, type Client, type Transport } from "viem"; import { allowance } from "./public/allowance.js"; import { balanceOf } from "./public/balanceOf.js"; import { decimals } from "./public/decimals.js"; import { name } from "./public/name.js"; import { symbol } from "./public/symbol.js"; import { totalSupply } from "./public/totalSupply.js"; import { approve } from "./wallet/approve.js"; export declare const erc20PublicActions: () => <TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TAccount extends Account | undefined = Account | undefined>(client: Client<TTransport, TChain, TAccount>) => { allowance: (params: Parameters<typeof allowance>[1]) => Promise<bigint>; balanceOf: (params: Parameters<typeof balanceOf>[1]) => Promise<bigint>; decimals: (params: Parameters<typeof decimals>[1]) => Promise<number>; name: (params: Parameters<typeof name>[1]) => Promise<string>; symbol: (params: Parameters<typeof symbol>[1]) => Promise<string>; totalSupply: (params: Parameters<typeof totalSupply>[1]) => Promise<bigint>; }; export declare const erc20WalletActions: () => (client: Client) => { approve: (params: Parameters<typeof approve>[1]) => Promise<`0x${string}`>; }; //# sourceMappingURL=index.d.ts.map