@solana/transaction-confirmation
Advanced tools
Comparing version 2.0.0-experimental.fbbf6ba to 2.0.0-experimental.feaeef2
@@ -1,2 +0,2 @@ | ||
import { SOLANA_ERROR__BLOCK_HEIGHT_EXCEEDED, SolanaError, SOLANA_ERROR__NONCE_INVALID, SOLANA_ERROR__NONCE_ACCOUNT_NOT_FOUND } from '@solana/errors'; | ||
import { SOLANA_ERROR__BLOCK_HEIGHT_EXCEEDED, SolanaError, SOLANA_ERROR__INVALID_NONCE, SOLANA_ERROR__NONCE_ACCOUNT_NOT_FOUND, getSolanaErrorFromTransactionError } from '@solana/errors'; | ||
import { getBase58Decoder, getBase64Encoder } from '@solana/codecs-strings'; | ||
@@ -88,3 +88,3 @@ import { commitmentComparator } from '@solana/rpc-types'; | ||
if (nonceValue !== expectedNonceValue) { | ||
throw new SolanaError(SOLANA_ERROR__NONCE_INVALID, { | ||
throw new SolanaError(SOLANA_ERROR__INVALID_NONCE, { | ||
actualNonceValue: nonceValue, | ||
@@ -113,3 +113,3 @@ expectedNonceValue | ||
if (nonceValue !== expectedNonceValue) { | ||
throw new SolanaError(SOLANA_ERROR__NONCE_INVALID, { | ||
throw new SolanaError(SOLANA_ERROR__INVALID_NONCE, { | ||
actualNonceValue: nonceValue, | ||
@@ -145,5 +145,3 @@ expectedNonceValue | ||
if (signatureStatusNotification.value.err) { | ||
throw new Error(`The transaction with signature \`${signature}\` failed.`, { | ||
cause: signatureStatusNotification.value.err | ||
}); | ||
throw getSolanaErrorFromTransactionError(signatureStatusNotification.value.err); | ||
} else { | ||
@@ -150,0 +148,0 @@ return; |
@@ -1,2 +0,2 @@ | ||
import { SOLANA_ERROR__BLOCK_HEIGHT_EXCEEDED, SolanaError, SOLANA_ERROR__NONCE_INVALID, SOLANA_ERROR__NONCE_ACCOUNT_NOT_FOUND } from '@solana/errors'; | ||
import { SOLANA_ERROR__BLOCK_HEIGHT_EXCEEDED, SolanaError, SOLANA_ERROR__INVALID_NONCE, SOLANA_ERROR__NONCE_ACCOUNT_NOT_FOUND, getSolanaErrorFromTransactionError } from '@solana/errors'; | ||
import { getBase58Decoder, getBase64Encoder } from '@solana/codecs-strings'; | ||
@@ -88,3 +88,3 @@ import { commitmentComparator } from '@solana/rpc-types'; | ||
if (nonceValue !== expectedNonceValue) { | ||
throw new SolanaError(SOLANA_ERROR__NONCE_INVALID, { | ||
throw new SolanaError(SOLANA_ERROR__INVALID_NONCE, { | ||
actualNonceValue: nonceValue, | ||
@@ -113,3 +113,3 @@ expectedNonceValue | ||
if (nonceValue !== expectedNonceValue) { | ||
throw new SolanaError(SOLANA_ERROR__NONCE_INVALID, { | ||
throw new SolanaError(SOLANA_ERROR__INVALID_NONCE, { | ||
actualNonceValue: nonceValue, | ||
@@ -145,5 +145,3 @@ expectedNonceValue | ||
if (signatureStatusNotification.value.err) { | ||
throw new Error(`The transaction with signature \`${signature}\` failed.`, { | ||
cause: signatureStatusNotification.value.err | ||
}); | ||
throw getSolanaErrorFromTransactionError(signatureStatusNotification.value.err); | ||
} else { | ||
@@ -150,0 +148,0 @@ return; |
@@ -1,2 +0,2 @@ | ||
import { SOLANA_ERROR__BLOCK_HEIGHT_EXCEEDED, SolanaError, SOLANA_ERROR__NONCE_INVALID, SOLANA_ERROR__NONCE_ACCOUNT_NOT_FOUND } from '@solana/errors'; | ||
import { SOLANA_ERROR__BLOCK_HEIGHT_EXCEEDED, SolanaError, SOLANA_ERROR__INVALID_NONCE, SOLANA_ERROR__NONCE_ACCOUNT_NOT_FOUND, getSolanaErrorFromTransactionError } from '@solana/errors'; | ||
import { getBase58Decoder, getBase64Encoder } from '@solana/codecs-strings'; | ||
@@ -88,3 +88,3 @@ import { commitmentComparator } from '@solana/rpc-types'; | ||
if (nonceValue !== expectedNonceValue) { | ||
throw new SolanaError(SOLANA_ERROR__NONCE_INVALID, { | ||
throw new SolanaError(SOLANA_ERROR__INVALID_NONCE, { | ||
actualNonceValue: nonceValue, | ||
@@ -113,3 +113,3 @@ expectedNonceValue | ||
if (nonceValue !== expectedNonceValue) { | ||
throw new SolanaError(SOLANA_ERROR__NONCE_INVALID, { | ||
throw new SolanaError(SOLANA_ERROR__INVALID_NONCE, { | ||
actualNonceValue: nonceValue, | ||
@@ -145,5 +145,3 @@ expectedNonceValue | ||
if (signatureStatusNotification.value.err) { | ||
throw new Error(`The transaction with signature \`${signature}\` failed.`, { | ||
cause: signatureStatusNotification.value.err | ||
}); | ||
throw getSolanaErrorFromTransactionError(signatureStatusNotification.value.err); | ||
} else { | ||
@@ -150,0 +148,0 @@ return; |
{ | ||
"name": "@solana/transaction-confirmation", | ||
"version": "2.0.0-experimental.fbbf6ba", | ||
"version": "2.0.0-experimental.feaeef2", | ||
"description": "Helpers for confirming Solana transactions", | ||
@@ -52,10 +52,10 @@ "exports": { | ||
"dependencies": { | ||
"@solana/addresses": "2.0.0-experimental.fbbf6ba", | ||
"@solana/codecs-strings": "2.0.0-experimental.fbbf6ba", | ||
"@solana/keys": "2.0.0-experimental.fbbf6ba", | ||
"@solana/rpc": "2.0.0-experimental.fbbf6ba", | ||
"@solana/rpc-subscriptions": "2.0.0-experimental.fbbf6ba", | ||
"@solana/errors": "2.0.0-experimental.fbbf6ba", | ||
"@solana/rpc-types": "2.0.0-experimental.fbbf6ba", | ||
"@solana/transactions": "2.0.0-experimental.fbbf6ba" | ||
"@solana/addresses": "2.0.0-experimental.feaeef2", | ||
"@solana/codecs-strings": "2.0.0-experimental.feaeef2", | ||
"@solana/errors": "2.0.0-experimental.feaeef2", | ||
"@solana/rpc": "2.0.0-experimental.feaeef2", | ||
"@solana/keys": "2.0.0-experimental.feaeef2", | ||
"@solana/rpc-subscriptions": "2.0.0-experimental.feaeef2", | ||
"@solana/rpc-types": "2.0.0-experimental.feaeef2", | ||
"@solana/transactions": "2.0.0-experimental.feaeef2" | ||
}, | ||
@@ -62,0 +62,0 @@ "bundlewatch": { |
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
204845
1716
+ Added@solana/addresses@2.0.0-experimental.feaeef2(transitive)
+ Added@solana/assertions@2.0.0-experimental.feaeef2(transitive)
+ Added@solana/codecs-core@2.0.0-experimental.feaeef2(transitive)
+ Added@solana/codecs-data-structures@2.0.0-experimental.feaeef2(transitive)
+ Added@solana/codecs-numbers@2.0.0-experimental.feaeef2(transitive)
+ Added@solana/codecs-strings@2.0.0-experimental.feaeef2(transitive)
+ Added@solana/errors@2.0.0-experimental.feaeef2(transitive)
+ Added@solana/functional@2.0.0-experimental.feaeef2(transitive)
+ Added@solana/keys@2.0.0-experimental.feaeef2(transitive)
+ Added@solana/rpc@2.0.0-experimental.feaeef2(transitive)
+ Added@solana/rpc-api@2.0.0-experimental.feaeef2(transitive)
+ Added@solana/rpc-parsed-types@2.0.0-experimental.feaeef2(transitive)
+ Added@solana/rpc-spec@2.0.0-experimental.feaeef2(transitive)
+ Added@solana/rpc-spec-types@2.0.0-experimental.feaeef2(transitive)
+ Added@solana/rpc-subscriptions@2.0.0-experimental.feaeef2(transitive)
+ Added@solana/rpc-subscriptions-api@2.0.0-experimental.feaeef2(transitive)
+ Added@solana/rpc-subscriptions-spec@2.0.0-experimental.feaeef2(transitive)
+ Added@solana/rpc-subscriptions-transport-websocket@2.0.0-experimental.feaeef2(transitive)
+ Added@solana/rpc-transformers@2.0.0-experimental.feaeef2(transitive)
+ Added@solana/rpc-transport-http@2.0.0-experimental.feaeef2(transitive)
+ Added@solana/rpc-types@2.0.0-experimental.feaeef2(transitive)
+ Added@solana/transactions@2.0.0-experimental.feaeef2(transitive)
+ Addedcommander@12.1.0(transitive)
+ Addedundici@6.20.0(transitive)
- Removed@solana/addresses@2.0.0-experimental.fbbf6ba(transitive)
- Removed@solana/assertions@2.0.0-experimental.fbbf6ba(transitive)
- Removed@solana/codecs-core@2.0.0-experimental.fbbf6ba(transitive)
- Removed@solana/codecs-data-structures@2.0.0-experimental.fbbf6ba(transitive)
- Removed@solana/codecs-numbers@2.0.0-experimental.fbbf6ba(transitive)
- Removed@solana/codecs-strings@2.0.0-experimental.fbbf6ba(transitive)
- Removed@solana/errors@2.0.0-experimental.fbbf6ba(transitive)
- Removed@solana/functional@2.0.0-experimental.fbbf6ba(transitive)
- Removed@solana/keys@2.0.0-experimental.fbbf6ba(transitive)
- Removed@solana/rpc@2.0.0-experimental.fbbf6ba(transitive)
- Removed@solana/rpc-api@2.0.0-experimental.fbbf6ba(transitive)
- Removed@solana/rpc-parsed-types@2.0.0-experimental.fbbf6ba(transitive)
- Removed@solana/rpc-spec@2.0.0-experimental.fbbf6ba(transitive)
- Removed@solana/rpc-spec-types@2.0.0-experimental.fbbf6ba(transitive)
- Removed@solana/rpc-subscriptions@2.0.0-experimental.fbbf6ba(transitive)
- Removed@solana/rpc-subscriptions-api@2.0.0-experimental.fbbf6ba(transitive)
- Removed@solana/rpc-subscriptions-spec@2.0.0-experimental.fbbf6ba(transitive)
- Removed@solana/rpc-subscriptions-transport-websocket@2.0.0-experimental.fbbf6ba(transitive)
- Removed@solana/rpc-transformers@2.0.0-experimental.fbbf6ba(transitive)
- Removed@solana/rpc-transport-http@2.0.0-experimental.fbbf6ba(transitive)
- Removed@solana/rpc-types@2.0.0-experimental.fbbf6ba(transitive)
- Removed@solana/transactions@2.0.0-experimental.fbbf6ba(transitive)
- Removedcommander@11.1.0(transitive)