UNPKG

@photonswap/sdk

Version:

🛠 An example SDK for building applications on top of Photonswap.

35 lines (34 loc) • 1.27 kB
import { ChainId } from '..'; /** * A currency is any fungible financial instrument on Ethereum, including Ether and all ERC20 tokens. * * The only instance of the base class `Currency` is Ether. */ export declare class Currency { readonly decimals: number; readonly symbol?: string; readonly name?: string; /** * The only instance of the base class `Currency`. */ static readonly ETHER: Currency; static readonly BNB: Currency; static readonly CRO: Currency; static readonly MATIC: Currency; static readonly EVMOS: Currency; static readonly KAVA: Currency; static readonly SHARDEUM: Currency; static readonly ISLM: Currency; static readonly REBUS: Currency; static readonly MINTME: Currency; /** * Constructs an instance of the base class `Currency`. The only instance of the base class `Currency` is `Currency.ETHER`. * @param decimals decimals of the currency * @param symbol symbol of the currency * @param name of the currency */ protected constructor(decimals: number, symbol?: string, name?: string); getDisplaySymbol(chainId: ChainId | undefined): string | undefined; } declare const ETHER: Currency; export { ETHER };