state.ts 374 B

123456789101112
  1. import { Idl, StateCoder } from "@coral-xyz/anchor";
  2. export class SplNameServiceStateCoder implements StateCoder {
  3. constructor(_idl: Idl) {}
  4. encode<T = any>(_name: string, _account: T): Promise<Buffer> {
  5. throw new Error("SplNameService does not have state");
  6. }
  7. decode<T = any>(_ix: Buffer): T {
  8. throw new Error("SplNameService does not have state");
  9. }
  10. }