UNPKG

@rarible/types

Version:

`@rarible/types` is a TypeScript library that provides type definitions and interfaces for the Rarible ecosystem. This package is designed to facilitate seamless integration with Rarible's APIs and services, ensuring type safety and improved developer exp

14 lines (13 loc) 441 B
import type { WithBlockchain } from "../../blockchains/index.js"; export type CurrencyId = WithBlockchain & { __IS_CURRENCY_ID__: true; }; /** * Convert string to {@link CurrencyId}. Examples: * * - "ETHEREUM:native" for ETH * - "ETHEREUM:0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2" for WETH * - "POLYGON:native" for Matic * @param value string value to convert */ export declare function toCurrencyId(value: string): CurrencyId;