@project-serum/anchor
Advanced tools
Comparing version 0.13.2 to 0.14.0
@@ -114,3 +114,3 @@ "use strict"; | ||
[LangErrorCode.ConstraintSigner, "A signer constraint was violated"], | ||
[LangErrorCode.ConstraintRaw, "A raw constraint as violated"], | ||
[LangErrorCode.ConstraintRaw, "A raw constraint was violated"], | ||
[LangErrorCode.ConstraintOwner, "An owner constraint was violated"], | ||
@@ -117,0 +117,0 @@ [LangErrorCode.ConstraintRentExempt, "A rent exempt constraint was violated"], |
@@ -46,3 +46,3 @@ "use strict"; | ||
if (this._onLogsSubscriptionId !== undefined) { | ||
return; | ||
return listener; | ||
} | ||
@@ -55,3 +55,3 @@ this._onLogsSubscriptionId = this._provider.connection.onLogs(this._programId, (logs, ctx) => { | ||
this._eventParser.parseLogs(logs.logs, (event) => { | ||
const allListeners = this._eventListeners.get(eventName); | ||
const allListeners = this._eventListeners.get(event.name); | ||
if (allListeners) { | ||
@@ -77,3 +77,3 @@ allListeners.forEach((listener) => { | ||
if (!listeners) { | ||
throw new Error(`Event listeners dont' exist for ${eventName}!`); | ||
throw new Error(`Event listeners don't exist for ${eventName}!`); | ||
} | ||
@@ -80,0 +80,0 @@ // Update both maps. |
@@ -172,2 +172,4 @@ "use strict"; | ||
/** | ||
* @deprecated since version 14.0. | ||
* | ||
* Function returning the associated account. Args are keys to associate. | ||
@@ -181,2 +183,4 @@ * Order matters. | ||
/** | ||
* @deprecated since version 14.0. | ||
* | ||
* Function returning the associated address. Args are keys to associate. | ||
@@ -183,0 +187,0 @@ * Order matters. |
@@ -109,3 +109,3 @@ export class IdlError extends Error { | ||
[LangErrorCode.ConstraintSigner, "A signer constraint was violated"], | ||
[LangErrorCode.ConstraintRaw, "A raw constraint as violated"], | ||
[LangErrorCode.ConstraintRaw, "A raw constraint was violated"], | ||
[LangErrorCode.ConstraintOwner, "An owner constraint was violated"], | ||
@@ -112,0 +112,0 @@ [LangErrorCode.ConstraintRentExempt, "A rent exempt constraint was violated"], |
@@ -24,3 +24,3 @@ import * as assert from "assert"; | ||
if (this._onLogsSubscriptionId !== undefined) { | ||
return; | ||
return listener; | ||
} | ||
@@ -33,3 +33,3 @@ this._onLogsSubscriptionId = this._provider.connection.onLogs(this._programId, (logs, ctx) => { | ||
this._eventParser.parseLogs(logs.logs, (event) => { | ||
const allListeners = this._eventListeners.get(eventName); | ||
const allListeners = this._eventListeners.get(event.name); | ||
if (allListeners) { | ||
@@ -55,3 +55,3 @@ allListeners.forEach((listener) => { | ||
if (!listeners) { | ||
throw new Error(`Event listeners dont' exist for ${eventName}!`); | ||
throw new Error(`Event listeners don't exist for ${eventName}!`); | ||
} | ||
@@ -58,0 +58,0 @@ // Update both maps. |
@@ -146,2 +146,4 @@ import camelCase from "camelcase"; | ||
/** | ||
* @deprecated since version 14.0. | ||
* | ||
* Function returning the associated account. Args are keys to associate. | ||
@@ -155,2 +157,4 @@ * Order matters. | ||
/** | ||
* @deprecated since version 14.0. | ||
* | ||
* Function returning the associated address. Args are keys to associate. | ||
@@ -157,0 +161,0 @@ * Order matters. |
@@ -81,2 +81,4 @@ /// <reference types="node" /> | ||
/** | ||
* @deprecated since version 14.0. | ||
* | ||
* Function returning the associated account. Args are keys to associate. | ||
@@ -87,2 +89,4 @@ * Order matters. | ||
/** | ||
* @deprecated since version 14.0. | ||
* | ||
* Function returning the associated address. Args are keys to associate. | ||
@@ -89,0 +93,0 @@ * Order matters. |
{ | ||
"name": "@project-serum/anchor", | ||
"version": "0.13.2", | ||
"version": "0.14.0", | ||
"description": "Anchor client", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js", |
@@ -124,3 +124,3 @@ export class IdlError extends Error {} | ||
[LangErrorCode.ConstraintSigner, "A signer constraint was violated"], | ||
[LangErrorCode.ConstraintRaw, "A raw constraint as violated"], | ||
[LangErrorCode.ConstraintRaw, "A raw constraint was violated"], | ||
[LangErrorCode.ConstraintOwner, "An owner constraint was violated"], | ||
@@ -127,0 +127,0 @@ [LangErrorCode.ConstraintRentExempt, "A rent exempt constraint was violated"], |
@@ -82,4 +82,5 @@ import { PublicKey } from "@solana/web3.js"; | ||
if (this._onLogsSubscriptionId !== undefined) { | ||
return; | ||
return listener; | ||
} | ||
this._onLogsSubscriptionId = this._provider.connection.onLogs( | ||
@@ -93,3 +94,3 @@ this._programId, | ||
this._eventParser.parseLogs(logs.logs, (event) => { | ||
const allListeners = this._eventListeners.get(eventName); | ||
const allListeners = this._eventListeners.get(event.name); | ||
if (allListeners) { | ||
@@ -119,3 +120,3 @@ allListeners.forEach((listener) => { | ||
if (!listeners) { | ||
throw new Error(`Event listeners dont' exist for ${eventName}!`); | ||
throw new Error(`Event listeners don't exist for ${eventName}!`); | ||
} | ||
@@ -122,0 +123,0 @@ |
@@ -246,2 +246,4 @@ import camelCase from "camelcase"; | ||
/** | ||
* @deprecated since version 14.0. | ||
* | ||
* Function returning the associated account. Args are keys to associate. | ||
@@ -256,2 +258,4 @@ * Order matters. | ||
/** | ||
* @deprecated since version 14.0. | ||
* | ||
* Function returning the associated address. Args are keys to associate. | ||
@@ -258,0 +262,0 @@ * Order matters. |
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
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
743322
9811