@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
12 lines (11 loc) • 845 B
TypeScript
import type { AbstractContractAddress } from "../../common/contract-address.js";
import { BlockchainLayer1Enum } from "../../union/enum/domain.js";
export type FlowContractAddress = AbstractContractAddress<BlockchainLayer1Enum.FLOW> & {
__IS_FLOW_CONTRACT_ADDRESS__: true;
};
export declare const flowContractRegExp: RegExp;
export declare function isFlowContractAddress(raw: string): raw is FlowContractAddress;
export declare const flowContractAddressValidator: import("../../common/common.js").ILayer1fulValidator<BlockchainLayer1Enum.FLOW, FlowContractAddress>;
export declare function toFlowContractAddress(value: string): FlowContractAddress;
export declare function toFlowContractAddressSafe(raw: string): FlowContractAddress | undefined;
export declare function randomFlowContractAddress(contractName?: string): FlowContractAddress;