UNPKG

@bridgesplit/rwa-token-sdk

Version:

RWA Token SDK for the development of permissioned tokens on SVM blockchains.

29 lines (28 loc) 1.5 kB
/// <reference types="@coral-xyz/anchor/node_modules/@solana/web3.js" /> import { Program, type Provider } from "@coral-xyz/anchor"; import { PublicKey } from "@solana/web3.js"; import { type IdentityRegistryIdlTypes } from "../programs/types"; /** Address of the identity registry program. */ export declare const identityRegistryProgramId: PublicKey; export declare const getIdentityRegistryProgram: (provider: Provider) => Program<IdentityRegistryIdlTypes>; /** * Retrieves the identity registry pda public key for a specific asset mint. * @param assetMint - The string representation of the asset's mint address. * @returns The identity registry pda. */ export declare const getIdentityRegistryPda: (assetMint: string) => PublicKey; /** * Retrieves the identity account pda public key for a specific asset mint. * @param assetMint - The string representation of the asset's mint address. * @param owner - The string representation of the asset's owner. * @returns The identity account pda. */ export declare const getIdentityAccountPda: (assetMint: string, owner: string) => PublicKey; /** * Retrieves the identity metadata account pda public key for a specific asset mint. * @param assetMint - The string representation of the asset's mint address. * @param level - The level of the identity account. * @returns The identity metadata pda. */ export declare const getIdentityMetadataPda: (assetMint: string, level: number) => PublicKey; export declare const POLICY_SKIP_LEVEL = 255;