@solana/web3.js 1.43.6 → 1.44.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.d.ts CHANGED
@@ -2982,7 +2982,8 @@ declare module '@solana/web3.js' {
2982
2982
  | 'InitializeNonceAccount'
2983
2983
  | 'Transfer'
2984
2984
  | 'TransferWithSeed'
2985
- | 'WithdrawNonceAccount';
2985
+ | 'WithdrawNonceAccount'
2986
+ | 'UpgradeNonceAccount';
2986
2987
  /**
2987
2988
  * Factory class for transactions to interact with the System program
2988
2989
  */
@@ -3416,6 +3417,15 @@ declare module '@solana/web3.js' {
3416
3417
  options?: ConfirmOptions,
3417
3418
  ): Promise<TransactionSignature>;
3418
3419
 
3420
+ export class TransactionExpiredBlockheightExceededError extends Error {
3421
+ signature: string;
3422
+ constructor(signature: string);
3423
+ }
3424
+ export class TransactionExpiredTimeoutError extends Error {
3425
+ signature: string;
3426
+ constructor(signature: string, timeoutSeconds: number);
3427
+ }
3428
+
3419
3429
  export type Cluster = 'devnet' | 'testnet' | 'mainnet-beta';
3420
3430
  /**
3421
3431
  * Retrieves the RPC API URL for the specified cluster
package/lib/index.esm.js CHANGED
@@ -3573,6 +3573,10 @@ const SYSTEM_INSTRUCTION_LAYOUTS = Object.freeze({
3573
3573
  TransferWithSeed: {
3574
3574
  index: 11,
3575
3575
  layout: BufferLayout.struct([BufferLayout.u32('instruction'), u64('lamports'), rustString('seed'), publicKey('programId')])
3576
+ },
3577
+ UpgradeNonceAccount: {
3578
+ index: 12,
3579
+ layout: BufferLayout.struct([BufferLayout.u32('instruction')])
3576
3580
  }
3577
3581
  });
3578
3582
  /**
@@ -6804,7 +6808,13 @@ class Connection {
6804
6808
  throw new Error('failed to get transactions: ' + res.error.message);
6805
6809
  }
6806
6810
 
6807
- return res.result;
6811
+ const result = res.result;
6812
+ if (!result) return result;
6813
+ return { ...result,
6814
+ transaction: { ...result.transaction,
6815
+ message: new Message(result.transaction.message)
6816
+ }
6817
+ };
6808
6818
  });
6809
6819
  return res;
6810
6820
  }
@@ -9857,5 +9867,5 @@ function clusterApiUrl(cluster, tls) {
9857
9867
 
9858
9868
  const LAMPORTS_PER_SOL = 1000000000;
9859
9869
 
9860
- export { Account, Authorized, BLOCKHASH_CACHE_TIMEOUT_MS, BPF_LOADER_DEPRECATED_PROGRAM_ID, BPF_LOADER_PROGRAM_ID, BpfLoader, COMPUTE_BUDGET_INSTRUCTION_LAYOUTS, ComputeBudgetInstruction, ComputeBudgetProgram, Connection, Ed25519Program, Enum, EpochSchedule, FeeCalculatorLayout, Keypair, LAMPORTS_PER_SOL, Loader, Lockup, MAX_SEED_LENGTH, Message, NONCE_ACCOUNT_LENGTH, NonceAccount, PACKET_DATA_SIZE, PublicKey, SIGNATURE_LENGTH_IN_BYTES, SOLANA_SCHEMA, STAKE_CONFIG_ID, STAKE_INSTRUCTION_LAYOUTS, SYSTEM_INSTRUCTION_LAYOUTS, SYSVAR_CLOCK_PUBKEY, SYSVAR_EPOCH_SCHEDULE_PUBKEY, SYSVAR_INSTRUCTIONS_PUBKEY, SYSVAR_RECENT_BLOCKHASHES_PUBKEY, SYSVAR_RENT_PUBKEY, SYSVAR_REWARDS_PUBKEY, SYSVAR_SLOT_HASHES_PUBKEY, SYSVAR_SLOT_HISTORY_PUBKEY, SYSVAR_STAKE_HISTORY_PUBKEY, Secp256k1Program, SendTransactionError, StakeAuthorizationLayout, StakeInstruction, StakeProgram, Struct, SystemInstruction, SystemProgram, Transaction, TransactionInstruction, TransactionStatus, VALIDATOR_INFO_KEY, VOTE_PROGRAM_ID, ValidatorInfo, VoteAccount, VoteAuthorizationLayout, VoteInit, VoteInstruction, VoteProgram, clusterApiUrl, sendAndConfirmRawTransaction, sendAndConfirmTransaction };
9870
+ export { Account, Authorized, BLOCKHASH_CACHE_TIMEOUT_MS, BPF_LOADER_DEPRECATED_PROGRAM_ID, BPF_LOADER_PROGRAM_ID, BpfLoader, COMPUTE_BUDGET_INSTRUCTION_LAYOUTS, ComputeBudgetInstruction, ComputeBudgetProgram, Connection, Ed25519Program, Enum, EpochSchedule, FeeCalculatorLayout, Keypair, LAMPORTS_PER_SOL, Loader, Lockup, MAX_SEED_LENGTH, Message, NONCE_ACCOUNT_LENGTH, NonceAccount, PACKET_DATA_SIZE, PublicKey, SIGNATURE_LENGTH_IN_BYTES, SOLANA_SCHEMA, STAKE_CONFIG_ID, STAKE_INSTRUCTION_LAYOUTS, SYSTEM_INSTRUCTION_LAYOUTS, SYSVAR_CLOCK_PUBKEY, SYSVAR_EPOCH_SCHEDULE_PUBKEY, SYSVAR_INSTRUCTIONS_PUBKEY, SYSVAR_RECENT_BLOCKHASHES_PUBKEY, SYSVAR_RENT_PUBKEY, SYSVAR_REWARDS_PUBKEY, SYSVAR_SLOT_HASHES_PUBKEY, SYSVAR_SLOT_HISTORY_PUBKEY, SYSVAR_STAKE_HISTORY_PUBKEY, Secp256k1Program, SendTransactionError, StakeAuthorizationLayout, StakeInstruction, StakeProgram, Struct, SystemInstruction, SystemProgram, Transaction, TransactionExpiredBlockheightExceededError, TransactionExpiredTimeoutError, TransactionInstruction, TransactionStatus, VALIDATOR_INFO_KEY, VOTE_PROGRAM_ID, ValidatorInfo, VoteAccount, VoteAuthorizationLayout, VoteInit, VoteInstruction, VoteProgram, clusterApiUrl, sendAndConfirmRawTransaction, sendAndConfirmTransaction };
9861
9871
  //# sourceMappingURL=index.esm.js.map