// @ts-nocheck import * as B from "@native-to-anchor/buffer-layout"; import { AccountsCoder, Idl } from "@coral-xyz/anchor"; import { IdlTypeDef } from "@coral-xyz/anchor/dist/cjs/idl"; export class SplStatelessAsksAccountsCoder implements AccountsCoder { constructor(_idl: Idl) {} public async encode(accountName: A, account: T): Promise { switch (accountName) { default: { throw new Error(`Invalid account name: ${accountName}`); } } } public decode(accountName: A, ix: Buffer): T { return this.decodeUnchecked(accountName, ix); } public decodeUnchecked(accountName: A, ix: Buffer): T { switch (accountName) { default: { throw new Error(`Invalid account name: ${accountName}`); } } } public memcmp( accountName: A, _appendData?: Buffer ): { dataSize?: number; offset?: number; bytes?: string } { switch (accountName) { default: { throw new Error(`Invalid account name: ${accountName}`); } } } public size(idlAccount: IdlTypeDef): number { switch (idlAccount.name) { default: { throw new Error(`Invalid account name: ${idlAccount.name}`); } } } }