/** * This code was GENERATED using the solita package. * Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality. * * See: https://github.com/metaplex-foundation/solita */ import * as beet from '@metaplex-foundation/beet' import * as web3 from '@solana/web3.js' /** * @category Instructions * @category RevertCall * @category generated */ export const revertCallStruct = new beet.BeetArgsStruct<{ instructionDiscriminator: number[] /* size: 8 */ }>( [['instructionDiscriminator', beet.uniformFixedSizeArray(beet.u8, 8)]], 'RevertCallInstructionArgs' ) export const revertCallInstructionDiscriminator = [ 124, 243, 145, 116, 106, 203, 93, 114, ] /** * Creates a _RevertCall_ instruction. * * @category Instructions * @category RevertCall * @category generated */ export function createRevertCallInstruction(programId: web3.PublicKey) { const [data] = revertCallStruct.serialize({ instructionDiscriminator: revertCallInstructionDiscriminator, }) const keys: web3.AccountMeta[] = [] const ix = new web3.TransactionInstruction({ programId, keys, data, }) return ix } /** * Creates a _RevertCall_ instructionAccounts. * * @category Instructions * @category RevertCall * @category generated */ export function createRevertCallInstructionAccounts(programId: web3.PublicKey) { const keys: web3.AccountMeta[] = [] return keys }