/** * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ import { type AccountMeta, type AccountSignerMeta, type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount, type WritableSignerAccount } from '@solana/kit'; import { MOONSHOT_BLINDBOX_SMART_CONTRACT_PROGRAM_ADDRESS } from '../programs'; import { type GrantRoleArgs, type GrantRoleArgsArgs } from '../types'; export declare const GRANT_ROLE_DISCRIMINATOR: Uint8Array; export declare function getGrantRoleDiscriminatorBytes(): ReadonlyUint8Array; export type GrantRoleInstruction = string, TAccountConfig extends string | AccountMeta = string, TAccountAccountToGrant extends string | AccountMeta = string, TAccountCapability extends string | AccountMeta = string, TAccountSystemProgram extends string | AccountMeta = '11111111111111111111111111111111', TAccountEventAuthority extends string | AccountMeta = string, TAccountProgram extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountOwner extends string ? WritableSignerAccount & AccountSignerMeta : TAccountOwner, TAccountConfig extends string ? WritableAccount : TAccountConfig, TAccountAccountToGrant extends string ? ReadonlyAccount : TAccountAccountToGrant, TAccountCapability extends string ? WritableAccount : TAccountCapability, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, TAccountEventAuthority extends string ? ReadonlyAccount : TAccountEventAuthority, TAccountProgram extends string ? ReadonlyAccount : TAccountProgram, ...TRemainingAccounts ]>; export type GrantRoleInstructionData = { discriminator: ReadonlyUint8Array; args: GrantRoleArgs; }; export type GrantRoleInstructionDataArgs = { args: GrantRoleArgsArgs; }; export declare function getGrantRoleInstructionDataEncoder(): FixedSizeEncoder; export declare function getGrantRoleInstructionDataDecoder(): FixedSizeDecoder; export declare function getGrantRoleInstructionDataCodec(): FixedSizeCodec; export type GrantRoleAsyncInput = { owner: TransactionSigner; config: Address; accountToGrant: Address; capability: Address; systemProgram?: Address; eventAuthority?: Address; program: Address; args: GrantRoleInstructionDataArgs['args']; }; export declare function getGrantRoleInstructionAsync(input: GrantRoleAsyncInput, config?: { programAddress?: TProgramAddress; }): Promise>; export type GrantRoleInput = { owner: TransactionSigner; config: Address; accountToGrant: Address; capability: Address; systemProgram?: Address; eventAuthority: Address; program: Address; args: GrantRoleInstructionDataArgs['args']; }; export declare function getGrantRoleInstruction(input: GrantRoleInput, config?: { programAddress?: TProgramAddress; }): GrantRoleInstruction; export type ParsedGrantRoleInstruction = { programAddress: Address; accounts: { owner: TAccountMetas[0]; config: TAccountMetas[1]; accountToGrant: TAccountMetas[2]; capability: TAccountMetas[3]; systemProgram: TAccountMetas[4]; eventAuthority: TAccountMetas[5]; program: TAccountMetas[6]; }; data: GrantRoleInstructionData; }; export declare function parseGrantRoleInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedGrantRoleInstruction; //# sourceMappingURL=grantRole.d.ts.map