@solana/web3.js 1.50.2 → 1.51.1

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
@@ -719,6 +719,13 @@ declare module '@solana/web3.js' {
719
719
  * @deprecated Deprecated since Solana v1.8.0. Please use {@link ParsedTransactionMeta} instead.
720
720
  */
721
721
  export type ParsedConfirmedTransactionMeta = ParsedTransactionMeta;
722
+ /**
723
+ * Collection of addresses loaded by a transaction using address table lookups
724
+ */
725
+ export type LoadedAddresses = {
726
+ writable: Array<PublicKey>;
727
+ readonly: Array<PublicKey>;
728
+ };
722
729
  /**
723
730
  * Metadata for a parsed transaction on the ledger
724
731
  */
@@ -739,6 +746,8 @@ declare module '@solana/web3.js' {
739
746
  postTokenBalances?: Array<TokenBalance> | null;
740
747
  /** The error result of transaction processing */
741
748
  err: TransactionError | null;
749
+ /** The collection of addresses loaded using address lookup tables */
750
+ loadedAddresses?: LoadedAddresses;
742
751
  };
743
752
  export type CompiledInnerInstruction = {
744
753
  index: number;
package/lib/index.esm.js CHANGED
@@ -5738,6 +5738,10 @@ const TokenBalanceResult = type({
5738
5738
  owner: optional(string()),
5739
5739
  uiTokenAmount: TokenAmountResult
5740
5740
  });
5741
+ const LoadedAddressesResult = type({
5742
+ writable: array(PublicKeyFromString),
5743
+ readonly: array(PublicKeyFromString)
5744
+ });
5741
5745
  /**
5742
5746
  * @internal
5743
5747
  */
@@ -5757,7 +5761,8 @@ const ConfirmedTransactionMetaResult = type({
5757
5761
  postBalances: array(number()),
5758
5762
  logMessages: optional(nullable(array(string()))),
5759
5763
  preTokenBalances: optional(nullable(array(TokenBalanceResult))),
5760
- postTokenBalances: optional(nullable(array(TokenBalanceResult)))
5764
+ postTokenBalances: optional(nullable(array(TokenBalanceResult))),
5765
+ loadedAddresses: optional(LoadedAddressesResult)
5761
5766
  });
5762
5767
  /**
5763
5768
  * @internal
@@ -5774,7 +5779,8 @@ const ParsedConfirmedTransactionMetaResult = type({
5774
5779
  postBalances: array(number()),
5775
5780
  logMessages: optional(nullable(array(string()))),
5776
5781
  preTokenBalances: optional(nullable(array(TokenBalanceResult))),
5777
- postTokenBalances: optional(nullable(array(TokenBalanceResult)))
5782
+ postTokenBalances: optional(nullable(array(TokenBalanceResult))),
5783
+ loadedAddresses: optional(LoadedAddressesResult)
5778
5784
  });
5779
5785
  /**
5780
5786
  * Expected JSON RPC response for the "getBlock" message
@@ -5929,7 +5935,7 @@ const LogsNotificationResult = type({
5929
5935
 
5930
5936
  /** @internal */
5931
5937
  const COMMON_HTTP_HEADERS = {
5932
- 'solana-client': `js/${(_process$env$npm_pack = "1.50.2") !== null && _process$env$npm_pack !== void 0 ? _process$env$npm_pack : 'UNKNOWN'}`
5938
+ 'solana-client': `js/${(_process$env$npm_pack = "1.51.1") !== null && _process$env$npm_pack !== void 0 ? _process$env$npm_pack : 'UNKNOWN'}`
5933
5939
  };
5934
5940
  /**
5935
5941
  * A connection to a fullnode JSON RPC endpoint