@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.
@@ -120,19 +120,11 @@ var memoizedAddressTableLookupDecoder;
120
120
  function getAddressTableLookupDecoder() {
121
121
  if (!memoizedAddressTableLookupDecoder) {
122
122
  const indexEncoder = codecsDataStructures.getArrayDecoder(codecsNumbers.getU8Decoder(), { size: codecsNumbers.getShortU16Decoder() });
123
- memoizedAddressTableLookupDecoder = codecsCore.transformDecoder(
124
- codecsDataStructures.getStructDecoder([
125
- ["lookupTableAddress", addresses.getAddressDecoder()],
126
- ["writableIndexes", indexEncoder],
127
- ["readonlyIndexes", indexEncoder]
128
- ]),
129
- (lookupTable) => "readableIndices" in lookupTable ? {
130
- ...lookupTable,
131
- readonlyIndexes: lookupTable.readableIndices,
132
- // @ts-expect-error Remove when `readableIndices` and `writableIndices` are removed.
133
- writableIndexes: lookupTable.writableIndices
134
- } : lookupTable
135
- );
123
+ memoizedAddressTableLookupDecoder = codecsDataStructures.getStructDecoder([
124
+ ["lookupTableAddress", addresses.getAddressDecoder()],
125
+ ["writableIndexes", indexEncoder],
126
+ ["readonlyIndexes", indexEncoder]
127
+ ]);
136
128
  }
137
129
  return memoizedAddressTableLookupDecoder;
138
130
  }
@@ -516,18 +508,12 @@ function getCompiledAddressTableLookups(orderedAccounts) {
516
508
  continue;
517
509
  }
518
510
  const entry = index[account.lookupTableAddress] ||= {
519
- /** @deprecated Remove in a future major version */
520
- readableIndices: [],
521
511
  readonlyIndexes: [],
522
- writableIndexes: [],
523
- /** @deprecated Remove in a future major version */
524
- writableIndices: []
512
+ writableIndexes: []
525
513
  };
526
514
  if (account.role === instructions.AccountRole.WRITABLE) {
527
515
  entry.writableIndexes.push(account.addressIndex);
528
- entry.writableIndices.push(account.addressIndex);
529
516
  } else {
530
- entry.readableIndices.push(account.addressIndex);
531
517
  entry.readonlyIndexes.push(account.addressIndex);
532
518
  }
533
519
  }
@@ -831,10 +817,8 @@ function getAddressLookupMetas(compiledAddressTableLookups, addressesByLookupTab
831
817
  const writableMetas = [];
832
818
  for (const lookup of compiledAddressTableLookups) {
833
819
  const addresses = addressesByLookupTableAddress[lookup.lookupTableAddress];
834
- const readonlyIndexes = lookup.readonlyIndexes ?? /** @deprecated Remove in a future major version */
835
- lookup.readableIndices;
836
- const writableIndexes = lookup.writableIndexes ?? /** @deprecated Remove in a future major version */
837
- lookup.writableIndices;
820
+ const readonlyIndexes = lookup.readonlyIndexes;
821
+ const writableIndexes = lookup.writableIndexes;
838
822
  const highestIndex = Math.max(...readonlyIndexes, ...writableIndexes);
839
823
  if (highestIndex >= addresses.length) {
840
824
  throw new errors.SolanaError(
@@ -928,13 +912,8 @@ function decompileTransactionMessage(compiledTransactionMessage, config) {
928
912
  );
929
913
  }
930
914
 
931
- // src/deprecated.ts
932
- var assertIsDurableNonceTransactionMessage = assertIsTransactionMessageWithDurableNonceLifetime;
933
- var isDurableNonceTransaction = isTransactionMessageWithDurableNonceLifetime;
934
-
935
915
  exports.appendTransactionMessageInstruction = appendTransactionMessageInstruction;
936
916
  exports.appendTransactionMessageInstructions = appendTransactionMessageInstructions;
937
- exports.assertIsDurableNonceTransactionMessage = assertIsDurableNonceTransactionMessage;
938
917
  exports.assertIsTransactionMessageWithBlockhashLifetime = assertIsTransactionMessageWithBlockhashLifetime;
939
918
  exports.assertIsTransactionMessageWithDurableNonceLifetime = assertIsTransactionMessageWithDurableNonceLifetime;
940
919
  exports.compileTransactionMessage = compileTransactionMessage;
@@ -948,7 +927,6 @@ exports.getTransactionVersionCodec = getTransactionVersionCodec;
948
927
  exports.getTransactionVersionDecoder = getTransactionVersionDecoder;
949
928
  exports.getTransactionVersionEncoder = getTransactionVersionEncoder;
950
929
  exports.isAdvanceNonceAccountInstruction = isAdvanceNonceAccountInstruction;
951
- exports.isDurableNonceTransaction = isDurableNonceTransaction;
952
930
  exports.isTransactionMessageWithBlockhashLifetime = isTransactionMessageWithBlockhashLifetime;
953
931
  exports.isTransactionMessageWithDurableNonceLifetime = isTransactionMessageWithDurableNonceLifetime;
954
932
  exports.prependTransactionMessageInstruction = prependTransactionMessageInstruction;