ts: Add bool, u128, i128 for idl types
@@ -81,10 +81,12 @@ export type InstructionContextFnArgs<
type TypeMap = {
publicKey: PublicKey;
- u64: BN;
- i64: BN;
+ bool: boolean;
} & {
[K in "u8" | "i8" | "u16" | "i16" | "u32" | "i32"]: number;
+} &
+ {
+ [K in "u64" | "i64" | "u128" | "i128"]: BN;
};
export type DecodeType<T extends IdlType, Defined> = T extends keyof TypeMap
