/** * 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 Version * @category generated */ export const versionStruct = new beet.BeetArgsStruct<{ instructionDiscriminator: number[] /* size: 8 */ }>( [['instructionDiscriminator', beet.uniformFixedSizeArray(beet.u8, 8)]], 'VersionInstructionArgs' ) export const versionInstructionDiscriminator = [ 118, 65, 195, 198, 129, 216, 252, 192, ] /** * Creates a _Version_ instruction. * * @category Instructions * @category Version * @category generated */ export function createVersionInstruction(programId: web3.PublicKey) { const [data] = versionStruct.serialize({ instructionDiscriminator: versionInstructionDiscriminator, }) const keys: web3.AccountMeta[] = [] const ix = new web3.TransactionInstruction({ programId, keys, data, }) return ix } /** * Creates a _Version_ instructionAccounts. * * @category Instructions * @category Version * @category generated */ export function createVersionInstructionAccounts(programId: web3.PublicKey) { const keys: web3.AccountMeta[] = [] return keys }