@saberhq/anchor-contrib
Advanced tools
Comparing version 1.13.29 to 1.13.30
@@ -0,1 +1,5 @@ | ||
/** | ||
* [[include:anchor-contrib/README.md]] | ||
* @module | ||
*/ | ||
export * from "./errors.js"; | ||
@@ -2,0 +6,0 @@ export * from "./generateAccountParsers.js"; |
"use strict"; | ||
/** | ||
* [[include:anchor-contrib/README.md]] | ||
* @module | ||
*/ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -3,0 +7,0 @@ const tslib_1 = require("tslib"); |
@@ -1,5 +0,7 @@ | ||
import type { Provider as IAnchorProvider } from "@project-serum/anchor"; | ||
import * as anchor from "@project-serum/anchor"; | ||
import type { AnchorProvider as AnchorProviderImpl, Provider as IAnchorProvider } from "@project-serum/anchor"; | ||
import type { Provider as SaberProvider, ReadonlyProvider as ReadonlySaberProvider, Wallet } from "@saberhq/solana-contrib"; | ||
import type { ConfirmOptions, Connection } from "@solana/web3.js"; | ||
/** | ||
* Interface of an AnchorProvider. | ||
*/ | ||
export interface AnchorProvider extends IAnchorProvider { | ||
@@ -12,3 +14,3 @@ wallet: Wallet; | ||
*/ | ||
export declare const AnchorProviderClass: AnchorProviderCtor & typeof anchor.AnchorProvider; | ||
export declare const AnchorProviderClass: AnchorProviderCtor & typeof AnchorProviderImpl; | ||
/** | ||
@@ -38,3 +40,3 @@ * Constructor for an Anchor provider. | ||
*/ | ||
export declare const makeSaberProvider: (anchorProvider: anchor.AnchorProvider) => SaberProvider; | ||
export declare const makeSaberProvider: (anchorProvider: AnchorProvider) => SaberProvider; | ||
/** | ||
@@ -41,0 +43,0 @@ * Creates an Anchor Provider from a Saber provider. |
@@ -0,1 +1,5 @@ | ||
/** | ||
* [[include:anchor-contrib/README.md]] | ||
* @module | ||
*/ | ||
export * from "./errors.js"; | ||
@@ -2,0 +6,0 @@ export * from "./generateAccountParsers.js"; |
@@ -0,1 +1,5 @@ | ||
/** | ||
* [[include:anchor-contrib/README.md]] | ||
* @module | ||
*/ | ||
export * from "./errors.js"; | ||
@@ -2,0 +6,0 @@ export * from "./generateAccountParsers.js"; |
@@ -1,5 +0,7 @@ | ||
import type { Provider as IAnchorProvider } from "@project-serum/anchor"; | ||
import * as anchor from "@project-serum/anchor"; | ||
import type { AnchorProvider as AnchorProviderImpl, Provider as IAnchorProvider } from "@project-serum/anchor"; | ||
import type { Provider as SaberProvider, ReadonlyProvider as ReadonlySaberProvider, Wallet } from "@saberhq/solana-contrib"; | ||
import type { ConfirmOptions, Connection } from "@solana/web3.js"; | ||
/** | ||
* Interface of an AnchorProvider. | ||
*/ | ||
export interface AnchorProvider extends IAnchorProvider { | ||
@@ -12,3 +14,3 @@ wallet: Wallet; | ||
*/ | ||
export declare const AnchorProviderClass: AnchorProviderCtor & typeof anchor.AnchorProvider; | ||
export declare const AnchorProviderClass: AnchorProviderCtor & typeof AnchorProviderImpl; | ||
/** | ||
@@ -38,3 +40,3 @@ * Constructor for an Anchor provider. | ||
*/ | ||
export declare const makeSaberProvider: (anchorProvider: anchor.AnchorProvider) => SaberProvider; | ||
export declare const makeSaberProvider: (anchorProvider: AnchorProvider) => SaberProvider; | ||
/** | ||
@@ -41,0 +43,0 @@ * Creates an Anchor Provider from a Saber provider. |
{ | ||
"name": "@saberhq/anchor-contrib", | ||
"version": "1.13.29", | ||
"version": "1.13.30", | ||
"description": "TypeScript client for Anchor programs.", | ||
@@ -31,11 +31,11 @@ "homepage": "https://github.com/saber-hq/saber-common/tree/master/packages/anchor-contrib#readme", | ||
"@project-serum/anchor": "^0.25.0-beta.1", | ||
"@saberhq/tsconfig": "^1.13.29", | ||
"@solana/web3.js": "^1.44.0", | ||
"@saberhq/tsconfig": "^1.13.30", | ||
"@solana/web3.js": "^1.44.2", | ||
"@types/lodash.camelcase": "^4.3.7", | ||
"@types/lodash.mapvalues": "^4.6.7", | ||
"bn.js": "^5.2.1", | ||
"typescript": "^4.7.3" | ||
"typescript": "^4.7.4" | ||
}, | ||
"dependencies": { | ||
"@saberhq/solana-contrib": "^1.13.29", | ||
"@saberhq/solana-contrib": "^1.13.30", | ||
"eventemitter3": "^4.0.7", | ||
@@ -42,0 +42,0 @@ "lodash.camelcase": "^4.3.0", |
@@ -1,2 +0,2 @@ | ||
# `anchor-contrib` | ||
# @saberhq/anchor-contrib | ||
@@ -3,0 +3,0 @@ TypeScript client for Anchor programs. |
@@ -0,1 +1,6 @@ | ||
/** | ||
* [[include:anchor-contrib/README.md]] | ||
* @module | ||
*/ | ||
export * from "./errors.js"; | ||
@@ -2,0 +7,0 @@ export * from "./generateAccountParsers.js"; |
@@ -1,2 +0,5 @@ | ||
import type { Provider as IAnchorProvider } from "@project-serum/anchor"; | ||
import type { | ||
AnchorProvider as AnchorProviderImpl, | ||
Provider as IAnchorProvider, | ||
} from "@project-serum/anchor"; | ||
import * as anchor from "@project-serum/anchor"; | ||
@@ -14,2 +17,5 @@ import type { | ||
/** | ||
* Interface of an AnchorProvider. | ||
*/ | ||
export interface AnchorProvider extends IAnchorProvider { | ||
@@ -26,3 +32,3 @@ wallet: Wallet; | ||
export const AnchorProviderClass: AnchorProviderCtor & | ||
typeof anchor.AnchorProvider = | ||
typeof AnchorProviderImpl = | ||
"AnchorProvider" in anchorModule | ||
@@ -32,3 +38,3 @@ ? anchorModule.AnchorProvider | ||
anchorModule as unknown as { | ||
Provider: AnchorProviderCtor & typeof anchor.AnchorProvider; | ||
Provider: AnchorProviderCtor & typeof AnchorProviderImpl; | ||
} | ||
@@ -79,3 +85,3 @@ ).Provider; | ||
export const makeSaberProvider = ( | ||
anchorProvider: anchor.AnchorProvider | ||
anchorProvider: AnchorProvider | ||
): SaberProvider => { | ||
@@ -82,0 +88,0 @@ return SolanaProvider.init({ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
268270
2372