UNPKG

@bridgesplit/rwa-token-sdk

Version:

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

50 lines (49 loc) 2.3 kB
/// <reference types="@coral-xyz/anchor/node_modules/@solana/web3.js" /> import { type TransactionInstruction } from "@solana/web3.js"; import { type CommonArgs } from "../utils"; import { type AnchorProvider } from "@coral-xyz/anchor"; /** Represents arguments for creating an on identity registry on chain. */ export type CreateIdentityRegistryArgs = { authority: string; signer: string; } & CommonArgs; /** * Builds the transaction instruction to create an identity registry. * @param args - {@link CreateIdentityRegistryArgs}. * @returns Create identity registry transaction instruction. */ export declare function getCreateIdentityRegistryIx(args: CreateIdentityRegistryArgs, provider: AnchorProvider): Promise<TransactionInstruction>; /** Represents arguments for creating an identity account on chain. */ export type CreateIdentityAccountArgs = { level: number; owner: string; } & CommonArgs; /** * Builds the transaction instruction to create an identity account. * @param args - {@link CreateIdentityAccountArgs}. * @returns Create identity account transaction instruction. */ export declare function getCreateIdentityAccountIx(args: CreateIdentityAccountArgs, provider: AnchorProvider): Promise<TransactionInstruction>; /** Represents the arguments required to add a level to an identity account. */ export type AddLevelToIdentityAccountArgs = { owner: string; level: number; signer: string; } & CommonArgs; /** * Builds the transaction instruction to add a level to identity account * @param args - {@link AddLevelToIdentityAccountArgs}. * @returns Add level to identity account transaction instruction. */ export declare function getAddLevelToIdentityAccount(args: AddLevelToIdentityAccountArgs, provider: AnchorProvider): Promise<TransactionInstruction>; export type RemoveLevelFromIdentityAccountArgs = { owner: string; level: number; signer: string; } & CommonArgs; /** * Builds the transaction instruction to remove a level from identity account * @param args - {@link RemoveLevelFromIdentityAccount}. * @returns Add level to identity account transaction instruction. */ export declare function getRemoveLevelFromIdentityAccount(args: AddLevelToIdentityAccountArgs, provider: AnchorProvider): Promise<TransactionInstruction>;