@solana/transaction-messages 3.0.0-canary-20250722221247 → 3.0.0-canary-20250724091815

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.
@@ -118,19 +118,11 @@ var memoizedAddressTableLookupDecoder;
118
118
  function getAddressTableLookupDecoder() {
119
119
  if (!memoizedAddressTableLookupDecoder) {
120
120
  const indexEncoder = getArrayDecoder(getU8Decoder(), { size: getShortU16Decoder() });
121
- memoizedAddressTableLookupDecoder = transformDecoder(
122
- getStructDecoder([
123
- ["lookupTableAddress", getAddressDecoder()],
124
- ["writableIndexes", indexEncoder],
125
- ["readonlyIndexes", indexEncoder]
126
- ]),
127
- (lookupTable) => "readableIndices" in lookupTable ? {
128
- ...lookupTable,
129
- readonlyIndexes: lookupTable.readableIndices,
130
- // @ts-expect-error Remove when `readableIndices` and `writableIndices` are removed.
131
- writableIndexes: lookupTable.writableIndices
132
- } : lookupTable
133
- );
121
+ memoizedAddressTableLookupDecoder = getStructDecoder([
122
+ ["lookupTableAddress", getAddressDecoder()],
123
+ ["writableIndexes", indexEncoder],
124
+ ["readonlyIndexes", indexEncoder]
125
+ ]);
134
126
  }
135
127
  return memoizedAddressTableLookupDecoder;
136
128
  }
@@ -514,18 +506,12 @@ function getCompiledAddressTableLookups(orderedAccounts) {
514
506
  continue;
515
507
  }
516
508
  const entry = index[account.lookupTableAddress] ||= {
517
- /** @deprecated Remove in a future major version */
518
- readableIndices: [],
519
509
  readonlyIndexes: [],
520
- writableIndexes: [],
521
- /** @deprecated Remove in a future major version */
522
- writableIndices: []
510
+ writableIndexes: []
523
511
  };
524
512
  if (account.role === AccountRole.WRITABLE) {
525
513
  entry.writableIndexes.push(account.addressIndex);
526
- entry.writableIndices.push(account.addressIndex);
527
514
  } else {
528
- entry.readableIndices.push(account.addressIndex);
529
515
  entry.readonlyIndexes.push(account.addressIndex);
530
516
  }
531
517
  }
@@ -829,10 +815,8 @@ function getAddressLookupMetas(compiledAddressTableLookups, addressesByLookupTab
829
815
  const writableMetas = [];
830
816
  for (const lookup of compiledAddressTableLookups) {
831
817
  const addresses = addressesByLookupTableAddress[lookup.lookupTableAddress];
832
- const readonlyIndexes = lookup.readonlyIndexes ?? /** @deprecated Remove in a future major version */
833
- lookup.readableIndices;
834
- const writableIndexes = lookup.writableIndexes ?? /** @deprecated Remove in a future major version */
835
- lookup.writableIndices;
818
+ const readonlyIndexes = lookup.readonlyIndexes;
819
+ const writableIndexes = lookup.writableIndexes;
836
820
  const highestIndex = Math.max(...readonlyIndexes, ...writableIndexes);
837
821
  if (highestIndex >= addresses.length) {
838
822
  throw new SolanaError(
@@ -926,10 +910,6 @@ function decompileTransactionMessage(compiledTransactionMessage, config) {
926
910
  );
927
911
  }
928
912
 
929
- // src/deprecated.ts
930
- var assertIsDurableNonceTransactionMessage = assertIsTransactionMessageWithDurableNonceLifetime;
931
- var isDurableNonceTransaction = isTransactionMessageWithDurableNonceLifetime;
932
-
933
- export { appendTransactionMessageInstruction, appendTransactionMessageInstructions, assertIsDurableNonceTransactionMessage, assertIsTransactionMessageWithBlockhashLifetime, assertIsTransactionMessageWithDurableNonceLifetime, compileTransactionMessage, compressTransactionMessageUsingAddressLookupTables, createTransactionMessage, decompileTransactionMessage, getCompiledTransactionMessageCodec, getCompiledTransactionMessageDecoder, getCompiledTransactionMessageEncoder, getTransactionVersionCodec, getTransactionVersionDecoder, getTransactionVersionEncoder, isAdvanceNonceAccountInstruction, isDurableNonceTransaction, isTransactionMessageWithBlockhashLifetime, isTransactionMessageWithDurableNonceLifetime, prependTransactionMessageInstruction, prependTransactionMessageInstructions, setTransactionMessageFeePayer, setTransactionMessageLifetimeUsingBlockhash, setTransactionMessageLifetimeUsingDurableNonce };
913
+ export { appendTransactionMessageInstruction, appendTransactionMessageInstructions, assertIsTransactionMessageWithBlockhashLifetime, assertIsTransactionMessageWithDurableNonceLifetime, compileTransactionMessage, compressTransactionMessageUsingAddressLookupTables, createTransactionMessage, decompileTransactionMessage, getCompiledTransactionMessageCodec, getCompiledTransactionMessageDecoder, getCompiledTransactionMessageEncoder, getTransactionVersionCodec, getTransactionVersionDecoder, getTransactionVersionEncoder, isAdvanceNonceAccountInstruction, isTransactionMessageWithBlockhashLifetime, isTransactionMessageWithDurableNonceLifetime, prependTransactionMessageInstruction, prependTransactionMessageInstructions, setTransactionMessageFeePayer, setTransactionMessageLifetimeUsingBlockhash, setTransactionMessageLifetimeUsingDurableNonce };
934
914
  //# sourceMappingURL=index.browser.mjs.map
935
915
  //# sourceMappingURL=index.browser.mjs.map