@solana/transaction-confirmation
Advanced tools
Comparing version 2.0.0-experimental.900b946 to 2.0.0-experimental.9084fdd
@@ -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__NONCE_INVALID, SOLANA_ERROR__NONCE_ACCOUNT_NOT_FOUND, getSolanaErrorFromTransactionError } from '@solana/errors'; | ||
import { getBase58Decoder, getBase64Encoder } from '@solana/codecs-strings'; | ||
@@ -143,5 +143,3 @@ import { commitmentComparator } from '@solana/rpc-types'; | ||
if (signatureStatusNotification.value.err) { | ||
throw new Error(`The transaction with signature \`${signature}\` failed.`, { | ||
cause: signatureStatusNotification.value.err | ||
}); | ||
throw getSolanaErrorFromTransactionError(signatureStatusNotification.value.err); | ||
} else { | ||
@@ -148,0 +146,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__NONCE_INVALID, SOLANA_ERROR__NONCE_ACCOUNT_NOT_FOUND, getSolanaErrorFromTransactionError } from '@solana/errors'; | ||
import { getBase58Decoder, getBase64Encoder } from '@solana/codecs-strings'; | ||
@@ -143,5 +143,3 @@ import { commitmentComparator } from '@solana/rpc-types'; | ||
if (signatureStatusNotification.value.err) { | ||
throw new Error(`The transaction with signature \`${signature}\` failed.`, { | ||
cause: signatureStatusNotification.value.err | ||
}); | ||
throw getSolanaErrorFromTransactionError(signatureStatusNotification.value.err); | ||
} else { | ||
@@ -148,0 +146,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__NONCE_INVALID, SOLANA_ERROR__NONCE_ACCOUNT_NOT_FOUND, getSolanaErrorFromTransactionError } from '@solana/errors'; | ||
import { getBase58Decoder, getBase64Encoder } from '@solana/codecs-strings'; | ||
@@ -143,5 +143,3 @@ import { commitmentComparator } from '@solana/rpc-types'; | ||
if (signatureStatusNotification.value.err) { | ||
throw new Error(`The transaction with signature \`${signature}\` failed.`, { | ||
cause: signatureStatusNotification.value.err | ||
}); | ||
throw getSolanaErrorFromTransactionError(signatureStatusNotification.value.err); | ||
} else { | ||
@@ -148,0 +146,0 @@ return; |
@@ -1,4 +0,4 @@ | ||
import type { GetEpochInfoApi, SlotNotificationsApi } from '@solana/rpc-core'; | ||
import type { Rpc, RpcSubscriptions } from '@solana/rpc-types'; | ||
import { Commitment } from '@solana/rpc-types'; | ||
import type { GetEpochInfoApi, Rpc } from '@solana/rpc'; | ||
import type { RpcSubscriptions, SlotNotificationsApi } from '@solana/rpc-subscriptions'; | ||
import type { Commitment } from '@solana/rpc-types'; | ||
type GetBlockHeightExceedencePromiseFn = (config: { | ||
@@ -5,0 +5,0 @@ abortSignal: AbortSignal; |
@@ -1,5 +0,6 @@ | ||
import { Address } from '@solana/addresses'; | ||
import type { AccountNotificationsApi, GetAccountInfoApi } from '@solana/rpc-core'; | ||
import type { Commitment, Rpc, RpcSubscriptions } from '@solana/rpc-types'; | ||
import { Nonce } from '@solana/transactions'; | ||
import type { Address } from '@solana/addresses'; | ||
import type { GetAccountInfoApi, Rpc } from '@solana/rpc'; | ||
import type { AccountNotificationsApi, RpcSubscriptions } from '@solana/rpc-subscriptions'; | ||
import type { Commitment } from '@solana/rpc-types'; | ||
import type { Nonce } from '@solana/transactions'; | ||
type GetNonceInvalidationPromiseFn = (config: { | ||
@@ -6,0 +7,0 @@ abortSignal: AbortSignal; |
@@ -1,3 +0,3 @@ | ||
import { Signature } from '@solana/keys'; | ||
import { Commitment } from '@solana/rpc-types'; | ||
import type { Signature } from '@solana/keys'; | ||
import type { Commitment } from '@solana/rpc-types'; | ||
import { createRecentSignatureConfirmationPromiseFactory } from './confirmation-strategy-recent-signature.js'; | ||
@@ -4,0 +4,0 @@ export interface BaseTransactionConfirmationStrategyConfig { |
@@ -1,4 +0,5 @@ | ||
import { Signature } from '@solana/keys'; | ||
import type { GetSignatureStatusesApi, SignatureNotificationsApi } from '@solana/rpc-core'; | ||
import { type Commitment, type Rpc, type RpcSubscriptions } from '@solana/rpc-types'; | ||
import type { Signature } from '@solana/keys'; | ||
import type { GetSignatureStatusesApi, Rpc } from '@solana/rpc'; | ||
import type { RpcSubscriptions, SignatureNotificationsApi } from '@solana/rpc-subscriptions'; | ||
import { type Commitment } from '@solana/rpc-types'; | ||
type GetRecentSignatureConfirmationPromiseFn = (config: { | ||
@@ -5,0 +6,0 @@ abortSignal: AbortSignal; |
@@ -1,2 +0,2 @@ | ||
import { Commitment } from '@solana/rpc-types'; | ||
import type { Commitment } from '@solana/rpc-types'; | ||
type Config = Readonly<{ | ||
@@ -3,0 +3,0 @@ abortSignal: AbortSignal; |
{ | ||
"name": "@solana/transaction-confirmation", | ||
"version": "2.0.0-experimental.900b946", | ||
"version": "2.0.0-experimental.9084fdd", | ||
"description": "Helpers for confirming Solana transactions", | ||
@@ -52,9 +52,10 @@ "exports": { | ||
"dependencies": { | ||
"@solana/addresses": "2.0.0-experimental.900b946", | ||
"@solana/errors": "2.0.0-experimental.900b946", | ||
"@solana/codecs-strings": "2.0.0-experimental.900b946", | ||
"@solana/rpc-core": "2.0.0-development", | ||
"@solana/rpc-types": "2.0.0-development", | ||
"@solana/transactions": "2.0.0-experimental.900b946", | ||
"@solana/keys": "2.0.0-experimental.900b946" | ||
"@solana/addresses": "2.0.0-experimental.9084fdd", | ||
"@solana/codecs-strings": "2.0.0-experimental.9084fdd", | ||
"@solana/errors": "2.0.0-experimental.9084fdd", | ||
"@solana/keys": "2.0.0-experimental.9084fdd", | ||
"@solana/rpc": "2.0.0-experimental.9084fdd", | ||
"@solana/rpc-subscriptions": "2.0.0-experimental.9084fdd", | ||
"@solana/rpc-types": "2.0.0-experimental.9084fdd", | ||
"@solana/transactions": "2.0.0-experimental.9084fdd" | ||
}, | ||
@@ -61,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
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
8
1716
+ Added@solana/addresses@2.0.0-experimental.9084fdd(transitive)
+ Added@solana/assertions@2.0.0-experimental.9084fdd(transitive)
+ Added@solana/codecs-core@2.0.0-experimental.9084fdd(transitive)
+ Added@solana/codecs-data-structures@2.0.0-experimental.9084fdd(transitive)
+ Added@solana/codecs-numbers@2.0.0-experimental.9084fdd(transitive)
+ Added@solana/codecs-strings@2.0.0-experimental.9084fdd(transitive)
+ Added@solana/errors@2.0.0-experimental.9084fdd(transitive)
+ Added@solana/functional@2.0.0-experimental.9084fdd(transitive)
+ Added@solana/keys@2.0.0-experimental.9084fdd(transitive)
+ Added@solana/rpc@2.0.0-experimental.9084fdd(transitive)
+ Added@solana/rpc-api@2.0.0-experimental.9084fdd(transitive)
+ Added@solana/rpc-parsed-types@2.0.0-experimental.9084fdd(transitive)
+ Added@solana/rpc-spec@2.0.0-experimental.9084fdd(transitive)
+ Added@solana/rpc-spec-types@2.0.0-experimental.9084fdd(transitive)
+ Added@solana/rpc-subscriptions@2.0.0-experimental.9084fdd(transitive)
+ Added@solana/rpc-subscriptions-api@2.0.0-experimental.9084fdd(transitive)
+ Added@solana/rpc-subscriptions-spec@2.0.0-experimental.9084fdd(transitive)
+ Added@solana/rpc-subscriptions-transport-websocket@2.0.0-experimental.9084fdd(transitive)
+ Added@solana/rpc-transformers@2.0.0-experimental.9084fdd(transitive)
+ Added@solana/rpc-transport-http@2.0.0-experimental.9084fdd(transitive)
+ Added@solana/rpc-types@2.0.0-experimental.9084fdd(transitive)
+ Added@solana/transactions@2.0.0-experimental.9084fdd(transitive)
+ Addedcommander@12.1.0(transitive)
+ Addedfast-stable-stringify@1.0.0(transitive)
+ Addedundici@6.20.0(transitive)
- Removed@solana/rpc-core@2.0.0-development
- Removed@solana/addresses@2.0.0-experimental.900b946(transitive)
- Removed@solana/assertions@2.0.0-experimental.900b946(transitive)
- Removed@solana/codecs-core@2.0.0-experimental.900b946(transitive)
- Removed@solana/codecs-data-structures@2.0.0-development(transitive)
- Removed@solana/codecs-numbers@2.0.0-experimental.900b946(transitive)
- Removed@solana/codecs-strings@2.0.0-experimental.900b946(transitive)
- Removed@solana/errors@2.0.0-experimental.900b946(transitive)
- Removed@solana/functional@2.0.0-experimental.900b946(transitive)
- Removed@solana/keys@2.0.0-experimental.900b946(transitive)
- Removed@solana/rpc-core@2.0.0-development(transitive)
- Removed@solana/rpc-parsed-types@2.0.0-experimental.4f33613(transitive)
- Removed@solana/rpc-transport@2.0.0-experimental.4f33613(transitive)
- Removed@solana/rpc-types@2.0.0-development(transitive)
- Removed@solana/transactions@2.0.0-experimental.900b946(transitive)
- Removedcommander@11.1.0(transitive)