UNPKG

@dstoken-solana/rwa-token-sdk

Version:

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

28 lines 1.59 kB
import { Provider } from "@coral-xyz/anchor"; import { type PolicyEngineAccount, type TrackerAccount } from "./types"; /** * Retrieves policy engine account associated with a specific asset mint. * @param assetMint - The string representation of the asset mint. * @returns A promise resolving to {@link PolicyEngineAccount}, or `undefined` if it doesn't exist. */ export declare function getPolicyEngineAccount(assetMint: string, provider: Provider): Promise<PolicyEngineAccount | undefined>; export interface PolicyEngineFilter { assetMint?: string; authority?: string; } export declare const POLICY_ENGINE_ASSET_MINT_OFFSET = 9; export declare const POLICY_ENGINE_AUTHORITY_OFFSET = 41; /** * Retrieves policy engine accounts with a filter. * @param filter - The filter to apply to the policy engine accounts. * @returns A promise resolving to an array of {@link PolicyEngineAccount}, or `undefined` if it doesn't exist. */ export declare function getPolicyEngineAccountsWithFilter(filter: PolicyEngineFilter, provider: Provider): Promise<PolicyEngineAccount[] | undefined>; /** * Retrieves a tracker account pda associated with a specific asset mint and owner. * @param assetMint - The string representation of the asset mint. * @param owner - The string representation of the owner's public key. * @returns A promise resolving to the fetched tracker account, or `undefined` if it doesn't exist. */ export declare function getTrackerAccount(assetMint: string, owner: string, provider: Provider): Promise<TrackerAccount | undefined>; //# sourceMappingURL=data.d.ts.map