@saberhq/anchor-contrib
Advanced tools
Comparing version 1.3.14 to 1.3.15
@@ -34,7 +34,2 @@ /// <reference types="node" /> | ||
declare type TransactionNamespace<R extends InstructionsParsed> = MakeInstructionsNamespace<R, Transaction>; | ||
declare type StateNamespace<R extends InstructionsParsed, S> = Omit<StateClient, "rpc" | "fetch" | "instruction"> & { | ||
rpc: RpcNamespace<R>; | ||
fetch: () => Promise<S>; | ||
instruction: InstructionNamespace<R>; | ||
}; | ||
declare type AccountsNamespace<A> = { | ||
@@ -102,3 +97,3 @@ [K in keyof A]: Omit<AccountClient, "fetch" | "all" | "associated"> & { | ||
rpc: RpcNamespace<RPCInstructions>; | ||
state: StateNamespace<Methods, AnchorState<IDL, Defined>>; | ||
state: StateClient<IDL>; | ||
account: AccountsNamespace<A>; | ||
@@ -105,0 +100,0 @@ transaction: TransactionNamespace<RPCInstructions & Methods>; |
@@ -7,3 +7,3 @@ { | ||
}, | ||
"version": "1.3.14", | ||
"version": "1.3.15", | ||
"main": "dist/index.js", | ||
@@ -22,3 +22,3 @@ "author": "Ian Macalinao <ian@saber.so>", | ||
"devDependencies": { | ||
"@project-serum/anchor": "^0.16.2", | ||
"@project-serum/anchor": "^0.17.1-beta.1", | ||
"@solana/web3.js": "^1.29.2" | ||
@@ -36,3 +36,3 @@ }, | ||
}, | ||
"gitHead": "51017994f21fdf9d169c98e7c39c67c8945419b8" | ||
"gitHead": "59a7c3ade242c05519e82585cb05db803418fb09" | ||
} |
@@ -82,11 +82,2 @@ import type { | ||
type StateNamespace<R extends InstructionsParsed, S> = Omit< | ||
StateClient, | ||
"rpc" | "fetch" | "instruction" | ||
> & { | ||
rpc: RpcNamespace<R>; | ||
fetch: () => Promise<S>; | ||
instruction: InstructionNamespace<R>; | ||
}; | ||
type AccountsNamespace<A> = { | ||
@@ -170,3 +161,3 @@ [K in keyof A]: Omit<AccountClient, "fetch" | "all" | "associated"> & { | ||
rpc: RpcNamespace<RPCInstructions>; | ||
state: StateNamespace<Methods, AnchorState<IDL, Defined>>; | ||
state: StateClient<IDL>; | ||
account: AccountsNamespace<A>; | ||
@@ -173,0 +164,0 @@ transaction: TransactionNamespace<RPCInstructions & Methods>; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32929
386