|
@@ -1,13 +1,11 @@
|
|
import { Idl } from "../idl";
|
|
import { Idl } from "../idl";
|
|
import { InstructionCoder } from "./instruction";
|
|
import { InstructionCoder } from "./instruction";
|
|
import { AccountsCoder } from "./accounts";
|
|
import { AccountsCoder } from "./accounts";
|
|
-import { TypesCoder } from "./types";
|
|
|
|
import { EventCoder } from "./event";
|
|
import { EventCoder } from "./event";
|
|
import { StateCoder } from "./state";
|
|
import { StateCoder } from "./state";
|
|
import { sighash } from "./common";
|
|
import { sighash } from "./common";
|
|
|
|
|
|
export { accountSize } from "./common";
|
|
export { accountSize } from "./common";
|
|
-export { TypesCoder } from "./types";
|
|
|
|
export { InstructionCoder } from "./instruction";
|
|
export { InstructionCoder } from "./instruction";
|
|
export { AccountsCoder, ACCOUNT_DISCRIMINATOR_SIZE } from "./accounts";
|
|
export { AccountsCoder, ACCOUNT_DISCRIMINATOR_SIZE } from "./accounts";
|
|
export { EventCoder, eventDiscriminator } from "./event";
|
|
export { EventCoder, eventDiscriminator } from "./event";
|
|
@@ -27,11 +25,6 @@ export default class Coder<A extends string = string> {
|
|
*/
|
|
*/
|
|
readonly accounts: AccountsCoder<A>;
|
|
readonly accounts: AccountsCoder<A>;
|
|
|
|
|
|
- /**
|
|
|
|
- * Types coder.
|
|
|
|
- */
|
|
|
|
- readonly types: TypesCoder;
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* Coder for state structs.
|
|
* Coder for state structs.
|
|
*/
|
|
*/
|
|
@@ -45,7 +38,6 @@ export default class Coder<A extends string = string> {
|
|
constructor(idl: Idl) {
|
|
constructor(idl: Idl) {
|
|
this.instruction = new InstructionCoder(idl);
|
|
this.instruction = new InstructionCoder(idl);
|
|
this.accounts = new AccountsCoder(idl);
|
|
this.accounts = new AccountsCoder(idl);
|
|
- this.types = new TypesCoder(idl);
|
|
|
|
this.events = new EventCoder(idl);
|
|
this.events = new EventCoder(idl);
|
|
if (idl.state) {
|
|
if (idl.state) {
|
|
this.state = new StateCoder(idl);
|
|
this.state = new StateCoder(idl);
|