@volare.finance/utils.js
Version:
The Blockchain Utils
19 lines (18 loc) • 577 B
TypeScript
/**
* @file erc1155Tradable.ts
* @author astra <astra@volare.finance>
* @date 2022
*/
import { ContractInterface } from 'ethers';
import { ERC1155 } from '../token';
import { Address, BigNumber } from '../type';
export declare class ERC1155Tradable extends ERC1155 {
constructor(contract: Address, endpoint: string);
static ABI(): ContractInterface;
/**
* @dev Returns the total quantity for a token ID
* @param id uint256 ID of the token to query
* @return amount of token in existence
*/
totalSupply(id: number): Promise<BigNumber>;
}