@dstoken-solana/rwa-token-sdk
Version:
RWA Token SDK for the development of permissioned tokens on SVM blockchains.
29 lines • 1.55 kB
TypeScript
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 wallet identity account pda public key for a specific asset mint.
* @param assetMint - The string representation of the asset's mint address.
* @param wallet - The string representation of the wallet address.
* @returns The identity account pda.
*/
export declare const getWalletIdentityAccountPda: (assetMint: string, wallet: string) => PublicKey;
export declare const POLICY_SKIP_LEVEL = 255;
export declare const getIdentityRegistryEventAuthority: () => PublicKey;
//# sourceMappingURL=utils.d.ts.map