zodor-protocol-web3
Version:
SDK to interact with zodor protocol
23 lines • 859 B
TypeScript
import { ContractRunner, ethers } from 'ethers';
import { Network } from '../types';
export declare class Erc20 {
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<number>;
allowance(walletAdress: string, spender: string): Promise<any>;
approve(spender: string, amount: number): Promise<any>;
transfer(to: string, amount: number): Promise<any>;
transferFrom(from: string, to: string, amount: number): Promise<any>;
}
//# sourceMappingURL=erc20.d.ts.map