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

10 lines (9 loc) 713 B
import type { AbstractAddress } from "../../common/address.js"; import { BlockchainLayer1Enum } from "../../union/enum/domain.js"; export type SolanaAddress = AbstractAddress<BlockchainLayer1Enum.SOLANA>; export declare function isSolanaAddress(address: string): address is SolanaAddress; export declare const solanaAddressValidator: import("../../common/common.js").ILayer1fulValidator<BlockchainLayer1Enum.SOLANA, SolanaAddress>; export declare function toSolanaAddress(address: string): SolanaAddress; export declare function toSolanaAddressSafe(address: string): SolanaAddress | undefined; export declare const SOLANA_ZERO_ADDRESS: SolanaAddress; export declare function randomSolanaAddress(): SolanaAddress;