UNPKG

zodor-protocol-web3

Version:

SDK to interact with zodor protocol

30 lines 1.03 kB
import { ContractRunner, ethers } from 'ethers'; import { Network } from '../types'; export declare class Merc20 { readonly contract: ethers.Contract; readonly network: Network; constructor(options: { network: Network; contractAddress: string; contractRunner?: ContractRunner; privateKey?: string; customRpcUrl?: string; }); name(): Promise<string>; symbol(): Promise<string>; decimals(): Promise<number>; totalSupply(): Promise<number>; balanceOf(walletAddress: string): Promise<string>; allowance(walletAdress: string, spender: string): Promise<any>; requiredClaims(): Promise<string[]>; approve(spender: string, amount: { value: string; }, signature: string): Promise<any>; transfer(to: string, amount: { value: string; }, signature: string): Promise<any>; transferFrom(from: string, to: string, amount: { value: string; }, signature: string): Promise<any>; } //# sourceMappingURL=merc20.d.ts.map