@volare.finance/utils.js
Version:
The Blockchain Utils
24 lines (23 loc) • 906 B
TypeScript
/**
* @file native.ts
* @author astra <astra@volare.finance>
* @date 2022
*/
import { TransactionResponse } from '@ethersproject/providers';
import { ContractInterface, Wallet } from 'ethers';
import { Provider } from '../provider';
import { Address, BigNumber, Sym } from '../type';
export declare class Native extends Provider {
static ABI(): ContractInterface;
static Name(): Promise<string>;
static Symbol(): Promise<Sym>;
static Decimals(): Promise<number>;
static BalanceOf(owner: Address): Promise<BigNumber>;
static Transfer(owner: Wallet, to: Address, value: BigNumber): Promise<TransactionResponse>;
constructor(endpoint: string);
name(): Promise<string>;
symbol(): Promise<Sym>;
decimals(): Promise<number>;
balanceOf(owner: Address): Promise<BigNumber>;
transfer(owner: Wallet, to: Address, value: BigNumber): Promise<TransactionResponse>;
}