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

13 lines (12 loc) 750 B
import type { AbstractAddress } from "../../common/address.js"; import { BlockchainLayer1Enum } from "../../union/enum/domain.js"; export type FlowAddress = AbstractAddress<BlockchainLayer1Enum.FLOW> & { __IS_FLOW_ADDRESS__: true; }; export declare const flowAddressRegExp: RegExp; export declare function isFlowAddress(x: string): x is FlowAddress; export declare const flowAddressValidator: import("../../common/common.js").ILayer1fulValidator<BlockchainLayer1Enum.FLOW, FlowAddress>; export declare function toFlowAddress(value: string): FlowAddress; export declare function toFlowAddressSafe(raw: string): FlowAddress | undefined; export declare const FLOW_ZERO_ADDRESS: FlowAddress; export declare function randomFlowAddress(): FlowAddress;