wormhole/sdk/js/src/solana/nftBridge/coder/index.ts

25 lines
913 B
TypeScript

import { Coder, Idl } from "@project-serum/anchor";
import { NftBridgeAccountsCoder } from "./accounts";
import { NftBridgeEventsCoder } from "./events";
import { NftBridgeInstructionCoder } from "./instruction";
import { NftBridgeStateCoder } from "./state";
import { NftBridgeTypesCoder } from "./types";
export { NftBridgeInstruction } from "./instruction";
export class NftBridgeCoder implements Coder {
readonly instruction: NftBridgeInstructionCoder;
readonly accounts: NftBridgeAccountsCoder;
readonly state: NftBridgeStateCoder;
readonly events: NftBridgeEventsCoder;
readonly types: NftBridgeTypesCoder;
constructor(idl: Idl) {
this.instruction = new NftBridgeInstructionCoder(idl);
this.accounts = new NftBridgeAccountsCoder(idl);
this.state = new NftBridgeStateCoder(idl);
this.events = new NftBridgeEventsCoder(idl);
this.types = new NftBridgeTypesCoder(idl);
}
}