@solana/kit 8.1.0-canary-20260827164440 → 8.1.0

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.
@@ -211,6 +211,8 @@ this.globalThis.solanaWeb3 = (function (exports) {
211
211
  var SOLANA_ERROR__TRANSACTION__FAILED_TO_ESTIMATE_LOADED_ACCOUNTS_DATA_SIZE_LIMIT = 5663036;
212
212
  var SOLANA_ERROR__TRANSACTION__FAILED_WHEN_SIMULATING_TO_ESTIMATE_RESOURCE_LIMITS = 5663037;
213
213
  var SOLANA_ERROR__TRANSACTION__FAILED_TO_DECOMPILE_INSTRUCTION_ACCOUNT_INDEX_OUT_OF_RANGE = 5663038;
214
+ var SOLANA_ERROR__TRANSACTION__COMPUTE_UNIT_LIMIT_OUT_OF_RANGE = 5663039;
215
+ var SOLANA_ERROR__TRANSACTION__INVALID_HEAP_SIZE = 5663040;
214
216
  var SOLANA_ERROR__TRANSACTION_INTROSPECTION__CANNOT_DECODE_JSON_PARSED_TRANSACTION = 5664e3;
215
217
  var SOLANA_ERROR__TRANSACTION_INTROSPECTION__UNRECOGNIZED_GET_TRANSACTION_RESPONSE = 5664001;
216
218
  var SOLANA_ERROR__TRANSACTION_ERROR__UNKNOWN = 705e4;
@@ -615,6 +617,7 @@ this.globalThis.solanaWeb3 = (function (exports) {
615
617
  [SOLANA_ERROR__TRANSACTION__ADDRESSES_CANNOT_SIGN_TRANSACTION]: "Attempted to sign a transaction with an address that is not a signer for it",
616
618
  [SOLANA_ERROR__TRANSACTION__ADDRESS_MISSING]: "Transaction is missing an address at index: $index.",
617
619
  [SOLANA_ERROR__TRANSACTION__CANNOT_ENCODE_WITH_EMPTY_SIGNATURES]: "Transaction has no expected signers therefore it cannot be encoded",
620
+ [SOLANA_ERROR__TRANSACTION__COMPUTE_UNIT_LIMIT_OUT_OF_RANGE]: "Transaction compute unit limit must be an integer in the range [0, $maxComputeUnitLimit]. `$computeUnitLimit` given",
618
621
  [SOLANA_ERROR__TRANSACTION__EXCEEDS_SIZE_LIMIT]: "Transaction size $transactionSize exceeds limit of $transactionSizeLimit bytes",
619
622
  [SOLANA_ERROR__TRANSACTION__EXPECTED_BLOCKHASH_LIFETIME]: "Transaction does not have a blockhash lifetime",
620
623
  [SOLANA_ERROR__TRANSACTION__EXPECTED_NONCE_LIFETIME]: "Transaction is not a durable nonce transaction",
@@ -643,6 +646,7 @@ this.globalThis.solanaWeb3 = (function (exports) {
643
646
  [SOLANA_ERROR__TRANSACTION__CANNOT_DECODE_EMPTY_TRANSACTION_BYTES]: "Transaction bytes are empty, so no transaction can be decoded",
644
647
  [SOLANA_ERROR__TRANSACTION__VERSION_ZERO_MUST_BE_ENCODED_WITH_SIGNATURES_FIRST]: "Transaction version 0 must be encoded with signatures first. This transaction was encoded with first byte $firstByte, which is expected to be a signature count for v0 transactions.",
645
648
  [SOLANA_ERROR__TRANSACTION__SIGNATURE_COUNT_TOO_HIGH_FOR_TRANSACTION_BYTES]: "The provided transaction bytes expect that there should be $numExpectedSignatures signatures, but the bytes are not long enough to contain a transaction message with this many signatures. The provided bytes are $transactionBytesLength bytes long.",
649
+ [SOLANA_ERROR__TRANSACTION__INVALID_HEAP_SIZE]: "Transaction heap size must be an integer multiple of $multipleOf bytes in the range [$minHeapSize, $maxHeapSize]. `$heapSize` given",
646
650
  [SOLANA_ERROR__TRANSACTION__INVALID_NONCE_ACCOUNT_INDEX]: "The transaction has a durable nonce lifetime, but the nonce account index is invalid. Expected a nonce account index less than $numberOfStaticAccounts, got $nonceAccountIndex.",
647
651
  [SOLANA_ERROR__TRANSACTION__INVALID_CONFIG_VALUE_KIND]: "The transaction config value for $configName has the incorrect kind. Expected $expectedKind, got $actualKind.",
648
652
  [SOLANA_ERROR__TRANSACTION__INSTRUCTION_HEADERS_PAYLOADS_MISMATCH]: "The transaction does not have the same number of instruction headers and instruction payloads. Got $numInstructionHeaders instruction headers, and $numInstructionPayloads instruction payloads.",
@@ -4822,6 +4826,102 @@ this.globalThis.solanaWeb3 = (function (exports) {
4822
4826
  }
4823
4827
  );
4824
4828
  }
4829
+ var COMPUTE_BUDGET_PROGRAM_ADDRESS = "ComputeBudget111111111111111111111111111111";
4830
+ var MAX_COMPUTE_UNIT_LIMIT = 14e5;
4831
+ var REQUEST_HEAP_FRAME_DISCRIMINATOR = 1;
4832
+ var SET_COMPUTE_UNIT_LIMIT_DISCRIMINATOR = 2;
4833
+ var SET_COMPUTE_UNIT_PRICE_DISCRIMINATOR = 3;
4834
+ var SET_LOADED_ACCOUNTS_DATA_SIZE_LIMIT_DISCRIMINATOR = 4;
4835
+ function getComputeBudgetInstruction(discriminator, value) {
4836
+ const data = getStructEncoder([
4837
+ ["discriminator", getU8Encoder()],
4838
+ ["value", getBytesEncoder()]
4839
+ ]).encode({ discriminator, value });
4840
+ return Object.freeze({
4841
+ data,
4842
+ programAddress: COMPUTE_BUDGET_PROGRAM_ADDRESS
4843
+ });
4844
+ }
4845
+ function isComputeBudgetInstruction(instruction, discriminator, expectedDataLength) {
4846
+ return instruction.programAddress === COMPUTE_BUDGET_PROGRAM_ADDRESS && "data" in instruction && instruction.data != null && instruction.data.byteLength === expectedDataLength && instruction.data[0] === discriminator;
4847
+ }
4848
+ function getSetComputeUnitLimitInstruction(units) {
4849
+ return getComputeBudgetInstruction(SET_COMPUTE_UNIT_LIMIT_DISCRIMINATOR, getU32Encoder().encode(units));
4850
+ }
4851
+ function isSetComputeUnitLimitInstruction(instruction) {
4852
+ return isComputeBudgetInstruction(instruction, SET_COMPUTE_UNIT_LIMIT_DISCRIMINATOR, 5);
4853
+ }
4854
+ function getComputeUnitLimitFromInstructionData(data) {
4855
+ return getU32Decoder().decode(data, 1);
4856
+ }
4857
+ function getSetComputeUnitPriceInstruction(microLamports) {
4858
+ return getComputeBudgetInstruction(SET_COMPUTE_UNIT_PRICE_DISCRIMINATOR, getU64Encoder().encode(microLamports));
4859
+ }
4860
+ function isSetComputeUnitPriceInstruction(instruction) {
4861
+ return isComputeBudgetInstruction(instruction, SET_COMPUTE_UNIT_PRICE_DISCRIMINATOR, 9);
4862
+ }
4863
+ function getPriorityFeeFromInstructionData(data) {
4864
+ return getU64Decoder().decode(data, 1);
4865
+ }
4866
+ function getRequestHeapFrameInstruction(bytes) {
4867
+ return getComputeBudgetInstruction(REQUEST_HEAP_FRAME_DISCRIMINATOR, getU32Encoder().encode(bytes));
4868
+ }
4869
+ function isRequestHeapFrameInstruction(instruction) {
4870
+ return isComputeBudgetInstruction(instruction, REQUEST_HEAP_FRAME_DISCRIMINATOR, 5);
4871
+ }
4872
+ function getHeapSizeFromInstructionData(data) {
4873
+ return getU32Decoder().decode(data, 1);
4874
+ }
4875
+ function getSetLoadedAccountsDataSizeLimitInstruction(limit) {
4876
+ return getComputeBudgetInstruction(
4877
+ SET_LOADED_ACCOUNTS_DATA_SIZE_LIMIT_DISCRIMINATOR,
4878
+ getU32Encoder().encode(limit)
4879
+ );
4880
+ }
4881
+ function isSetLoadedAccountsDataSizeLimitInstruction(instruction) {
4882
+ return isComputeBudgetInstruction(instruction, SET_LOADED_ACCOUNTS_DATA_SIZE_LIMIT_DISCRIMINATOR, 5);
4883
+ }
4884
+ function getLoadedAccountsDataSizeLimitFromInstructionData(data) {
4885
+ return getU32Decoder().decode(data, 1);
4886
+ }
4887
+ function replaceTransactionMessageInstruction(index, newInstruction, transactionMessage) {
4888
+ const nextInstructions = [...transactionMessage.instructions];
4889
+ nextInstructions[index] = newInstruction;
4890
+ return Object.freeze({
4891
+ ...transactionMessage,
4892
+ instructions: Object.freeze(nextInstructions)
4893
+ });
4894
+ }
4895
+ function removeTransactionMessageInstruction(index, transactionMessage) {
4896
+ return Object.freeze({
4897
+ ...transactionMessage,
4898
+ instructions: Object.freeze([
4899
+ ...transactionMessage.instructions.slice(0, index),
4900
+ ...transactionMessage.instructions.slice(index + 1)
4901
+ ])
4902
+ });
4903
+ }
4904
+ var MIN_HEAP_SIZE = 32 * 1024;
4905
+ var MAX_HEAP_SIZE = 256 * 1024;
4906
+ var HEAP_SIZE_MULTIPLE_OF = 1024;
4907
+ function assertIsValidComputeUnitLimit(computeUnitLimit) {
4908
+ if (!Number.isInteger(computeUnitLimit) || computeUnitLimit < 0 || computeUnitLimit > MAX_COMPUTE_UNIT_LIMIT) {
4909
+ throw new SolanaError(SOLANA_ERROR__TRANSACTION__COMPUTE_UNIT_LIMIT_OUT_OF_RANGE, {
4910
+ computeUnitLimit,
4911
+ maxComputeUnitLimit: MAX_COMPUTE_UNIT_LIMIT
4912
+ });
4913
+ }
4914
+ }
4915
+ function assertIsValidHeapSize(heapSize) {
4916
+ if (!Number.isInteger(heapSize) || heapSize < MIN_HEAP_SIZE || heapSize > MAX_HEAP_SIZE || heapSize % HEAP_SIZE_MULTIPLE_OF !== 0) {
4917
+ throw new SolanaError(SOLANA_ERROR__TRANSACTION__INVALID_HEAP_SIZE, {
4918
+ heapSize,
4919
+ maxHeapSize: MAX_HEAP_SIZE,
4920
+ minHeapSize: MIN_HEAP_SIZE,
4921
+ multipleOf: HEAP_SIZE_MULTIPLE_OF
4922
+ });
4923
+ }
4924
+ }
4825
4925
  function isV1ConfigEmpty(config) {
4826
4926
  return config.computeUnitLimit === void 0 && config.heapSize === void 0 && config.loadedAccountsDataSizeLimit === void 0 && config.priorityFeeLamports === void 0;
4827
4927
  }
@@ -4829,6 +4929,12 @@ this.globalThis.solanaWeb3 = (function (exports) {
4829
4929
  return config1.computeUnitLimit === config2.computeUnitLimit && config1.heapSize === config2.heapSize && config1.loadedAccountsDataSizeLimit === config2.loadedAccountsDataSizeLimit && config1.priorityFeeLamports === config2.priorityFeeLamports;
4830
4930
  }
4831
4931
  function setTransactionMessageConfig(config, transactionMessage) {
4932
+ if (config.computeUnitLimit !== void 0) {
4933
+ assertIsValidComputeUnitLimit(config.computeUnitLimit);
4934
+ }
4935
+ if (config.heapSize !== void 0) {
4936
+ assertIsValidHeapSize(config.heapSize);
4937
+ }
4832
4938
  const mergedConfig = {
4833
4939
  ...transactionMessage.config,
4834
4940
  ...config
@@ -5674,80 +5780,6 @@ this.globalThis.solanaWeb3 = (function (exports) {
5674
5780
  updatedAnyInstructions ? { ...transactionMessage, instructions: newInstructions } : transactionMessage
5675
5781
  );
5676
5782
  }
5677
- var COMPUTE_BUDGET_PROGRAM_ADDRESS = "ComputeBudget111111111111111111111111111111";
5678
- var REQUEST_HEAP_FRAME_DISCRIMINATOR = 1;
5679
- var SET_COMPUTE_UNIT_LIMIT_DISCRIMINATOR = 2;
5680
- var SET_COMPUTE_UNIT_PRICE_DISCRIMINATOR = 3;
5681
- var SET_LOADED_ACCOUNTS_DATA_SIZE_LIMIT_DISCRIMINATOR = 4;
5682
- function getComputeBudgetInstruction(discriminator, value) {
5683
- const data = getStructEncoder([
5684
- ["discriminator", getU8Encoder()],
5685
- ["value", getBytesEncoder()]
5686
- ]).encode({ discriminator, value });
5687
- return Object.freeze({
5688
- data,
5689
- programAddress: COMPUTE_BUDGET_PROGRAM_ADDRESS
5690
- });
5691
- }
5692
- function isComputeBudgetInstruction(instruction, discriminator, expectedDataLength) {
5693
- return instruction.programAddress === COMPUTE_BUDGET_PROGRAM_ADDRESS && "data" in instruction && instruction.data != null && instruction.data.byteLength === expectedDataLength && instruction.data[0] === discriminator;
5694
- }
5695
- function getSetComputeUnitLimitInstruction(units) {
5696
- return getComputeBudgetInstruction(SET_COMPUTE_UNIT_LIMIT_DISCRIMINATOR, getU32Encoder().encode(units));
5697
- }
5698
- function isSetComputeUnitLimitInstruction(instruction) {
5699
- return isComputeBudgetInstruction(instruction, SET_COMPUTE_UNIT_LIMIT_DISCRIMINATOR, 5);
5700
- }
5701
- function getComputeUnitLimitFromInstructionData(data) {
5702
- return getU32Decoder().decode(data, 1);
5703
- }
5704
- function getSetComputeUnitPriceInstruction(microLamports) {
5705
- return getComputeBudgetInstruction(SET_COMPUTE_UNIT_PRICE_DISCRIMINATOR, getU64Encoder().encode(microLamports));
5706
- }
5707
- function isSetComputeUnitPriceInstruction(instruction) {
5708
- return isComputeBudgetInstruction(instruction, SET_COMPUTE_UNIT_PRICE_DISCRIMINATOR, 9);
5709
- }
5710
- function getPriorityFeeFromInstructionData(data) {
5711
- return getU64Decoder().decode(data, 1);
5712
- }
5713
- function getRequestHeapFrameInstruction(bytes) {
5714
- return getComputeBudgetInstruction(REQUEST_HEAP_FRAME_DISCRIMINATOR, getU32Encoder().encode(bytes));
5715
- }
5716
- function isRequestHeapFrameInstruction(instruction) {
5717
- return isComputeBudgetInstruction(instruction, REQUEST_HEAP_FRAME_DISCRIMINATOR, 5);
5718
- }
5719
- function getHeapSizeFromInstructionData(data) {
5720
- return getU32Decoder().decode(data, 1);
5721
- }
5722
- function getSetLoadedAccountsDataSizeLimitInstruction(limit) {
5723
- return getComputeBudgetInstruction(
5724
- SET_LOADED_ACCOUNTS_DATA_SIZE_LIMIT_DISCRIMINATOR,
5725
- getU32Encoder().encode(limit)
5726
- );
5727
- }
5728
- function isSetLoadedAccountsDataSizeLimitInstruction(instruction) {
5729
- return isComputeBudgetInstruction(instruction, SET_LOADED_ACCOUNTS_DATA_SIZE_LIMIT_DISCRIMINATOR, 5);
5730
- }
5731
- function getLoadedAccountsDataSizeLimitFromInstructionData(data) {
5732
- return getU32Decoder().decode(data, 1);
5733
- }
5734
- function replaceTransactionMessageInstruction(index, newInstruction, transactionMessage) {
5735
- const nextInstructions = [...transactionMessage.instructions];
5736
- nextInstructions[index] = newInstruction;
5737
- return Object.freeze({
5738
- ...transactionMessage,
5739
- instructions: Object.freeze(nextInstructions)
5740
- });
5741
- }
5742
- function removeTransactionMessageInstruction(index, transactionMessage) {
5743
- return Object.freeze({
5744
- ...transactionMessage,
5745
- instructions: Object.freeze([
5746
- ...transactionMessage.instructions.slice(0, index),
5747
- ...transactionMessage.instructions.slice(index + 1)
5748
- ])
5749
- });
5750
- }
5751
5783
  function appendTransactionMessageInstruction(instruction, transactionMessage) {
5752
5784
  return appendTransactionMessageInstructions([instruction], transactionMessage);
5753
5785
  }
@@ -5787,6 +5819,9 @@ this.globalThis.solanaWeb3 = (function (exports) {
5787
5819
  return existingInstruction ? getComputeUnitLimitFromInstructionData(existingInstruction.data) : void 0;
5788
5820
  }
5789
5821
  function setTransactionMessageComputeUnitLimit(computeUnitLimit, transactionMessage) {
5822
+ if (computeUnitLimit !== void 0) {
5823
+ assertIsValidComputeUnitLimit(computeUnitLimit);
5824
+ }
5790
5825
  switch (transactionMessage.version) {
5791
5826
  case 1:
5792
5827
  return setTransactionMessageComputeUnitLimitUsingConfig(
@@ -6161,7 +6196,10 @@ this.globalThis.solanaWeb3 = (function (exports) {
6161
6196
  );
6162
6197
  return pipe(
6163
6198
  createTransactionMessage({ version: 1 }),
6164
- (m) => setTransactionMessageConfig(transactionConfig, m),
6199
+ // Attach the decoded config directly instead of going through `setTransactionMessageConfig`,
6200
+ // which validates resource limits. Decoding must not reject a transaction merely because it
6201
+ // carries values the runtime would refuse; callers need to be able to inspect such messages.
6202
+ (m) => isV1ConfigEmpty(transactionConfig) ? m : Object.freeze({ ...m, config: Object.freeze(transactionConfig) }),
6165
6203
  (m) => setTransactionMessageFeePayer(feePayer, m),
6166
6204
  (m) => appendTransactionMessageInstructions(instructions, m),
6167
6205
  (m) => "blockhash" in lifetimeConstraint ? setTransactionMessageLifetimeUsingBlockhash(lifetimeConstraint, m) : setTransactionMessageLifetimeUsingDurableNonce(lifetimeConstraint, m)
@@ -6196,6 +6234,9 @@ this.globalThis.solanaWeb3 = (function (exports) {
6196
6234
  return existingInstruction ? getHeapSizeFromInstructionData(existingInstruction.data) : void 0;
6197
6235
  }
6198
6236
  function setTransactionMessageHeapSize(heapSize, transactionMessage) {
6237
+ if (heapSize !== void 0) {
6238
+ assertIsValidHeapSize(heapSize);
6239
+ }
6199
6240
  switch (transactionMessage.version) {
6200
6241
  case 1:
6201
6242
  return setTransactionMessageHeapSizeUsingConfig(heapSize, transactionMessage);
@@ -10719,7 +10760,7 @@ ${lastLines.map((line) => ` > ${line}
10719
10760
  ...config.headers ? normalizeHeaders2(config.headers) : void 0,
10720
10761
  ...{
10721
10762
  // Keep these headers lowercase so they will override any user-supplied headers above.
10722
- "solana-client": `js/${"8.1.0-canary-20260827164440"}`
10763
+ "solana-client": `js/${"8.1.0"}`
10723
10764
  }
10724
10765
  }
10725
10766
  }),
@@ -12855,7 +12896,7 @@ ${lastLines.map((line) => ` > ${line}
12855
12896
 
12856
12897
  // src/resource-limit-estimation.ts
12857
12898
  var PROVISORY_LIMIT = 0;
12858
- var MAX_COMPUTE_UNIT_LIMIT = 14e5;
12899
+ var MAX_COMPUTE_UNIT_LIMIT2 = 14e5;
12859
12900
  var MAX_LOADED_ACCOUNTS_DATA_SIZE_LIMIT = 64 * 1024 * 1024;
12860
12901
  function estimateResourceLimitsFactory({
12861
12902
  rpc
@@ -12866,7 +12907,7 @@ ${lastLines.map((line) => ` > ${line}
12866
12907
  const isDataSizeRequired = transactionMessage.version === 1;
12867
12908
  const transaction = pipe(
12868
12909
  transactionMessage,
12869
- (m) => setTransactionMessageComputeUnitLimit(MAX_COMPUTE_UNIT_LIMIT, m),
12910
+ (m) => setTransactionMessageComputeUnitLimit(MAX_COMPUTE_UNIT_LIMIT2, m),
12870
12911
  (m) => isDataSizeRequired ? setTransactionMessageLoadedAccountsDataSizeLimit(MAX_LOADED_ACCOUNTS_DATA_SIZE_LIMIT, m) : m,
12871
12912
  compileTransaction
12872
12913
  );
@@ -12912,7 +12953,7 @@ ${lastLines.map((line) => ` > ${line}
12912
12953
  function estimateAndSetResourceLimitsFactory(estimateResourceLimits) {
12913
12954
  return async function estimateAndSetResourceLimits(transactionMessage, config) {
12914
12955
  const existingComputeUnitLimit = getTransactionMessageComputeUnitLimit(transactionMessage);
12915
- const computeUnitLimitIsExplicit = existingComputeUnitLimit !== void 0 && existingComputeUnitLimit !== PROVISORY_LIMIT && existingComputeUnitLimit !== MAX_COMPUTE_UNIT_LIMIT;
12956
+ const computeUnitLimitIsExplicit = existingComputeUnitLimit !== void 0 && existingComputeUnitLimit !== PROVISORY_LIMIT && existingComputeUnitLimit !== MAX_COMPUTE_UNIT_LIMIT2;
12916
12957
  const isV1 = transactionMessage.version === 1;
12917
12958
  let loadedAccountsDataSizeLimitIsExplicit = true;
12918
12959
  if (isV1) {
@@ -13421,6 +13462,7 @@ ${lastLines.map((line) => ` > ${line}
13421
13462
  exports.SOLANA_ERROR__TRANSACTION__CANNOT_DECODE_EMPTY_TRANSACTION_BYTES = SOLANA_ERROR__TRANSACTION__CANNOT_DECODE_EMPTY_TRANSACTION_BYTES;
13422
13463
  exports.SOLANA_ERROR__TRANSACTION__CANNOT_ENCODE_WITH_EMPTY_MESSAGE_BYTES = SOLANA_ERROR__TRANSACTION__CANNOT_ENCODE_WITH_EMPTY_MESSAGE_BYTES;
13423
13464
  exports.SOLANA_ERROR__TRANSACTION__CANNOT_ENCODE_WITH_EMPTY_SIGNATURES = SOLANA_ERROR__TRANSACTION__CANNOT_ENCODE_WITH_EMPTY_SIGNATURES;
13465
+ exports.SOLANA_ERROR__TRANSACTION__COMPUTE_UNIT_LIMIT_OUT_OF_RANGE = SOLANA_ERROR__TRANSACTION__COMPUTE_UNIT_LIMIT_OUT_OF_RANGE;
13424
13466
  exports.SOLANA_ERROR__TRANSACTION__EXCEEDS_SIZE_LIMIT = SOLANA_ERROR__TRANSACTION__EXCEEDS_SIZE_LIMIT;
13425
13467
  exports.SOLANA_ERROR__TRANSACTION__EXPECTED_BLOCKHASH_LIFETIME = SOLANA_ERROR__TRANSACTION__EXPECTED_BLOCKHASH_LIFETIME;
13426
13468
  exports.SOLANA_ERROR__TRANSACTION__EXPECTED_NONCE_LIFETIME = SOLANA_ERROR__TRANSACTION__EXPECTED_NONCE_LIFETIME;
@@ -13438,6 +13480,7 @@ ${lastLines.map((line) => ` > ${line}
13438
13480
  exports.SOLANA_ERROR__TRANSACTION__INSTRUCTION_HEADERS_PAYLOADS_MISMATCH = SOLANA_ERROR__TRANSACTION__INSTRUCTION_HEADERS_PAYLOADS_MISMATCH;
13439
13481
  exports.SOLANA_ERROR__TRANSACTION__INVALID_CONFIG_MASK_PRIORITY_FEE_BITS = SOLANA_ERROR__TRANSACTION__INVALID_CONFIG_MASK_PRIORITY_FEE_BITS;
13440
13482
  exports.SOLANA_ERROR__TRANSACTION__INVALID_CONFIG_VALUE_KIND = SOLANA_ERROR__TRANSACTION__INVALID_CONFIG_VALUE_KIND;
13483
+ exports.SOLANA_ERROR__TRANSACTION__INVALID_HEAP_SIZE = SOLANA_ERROR__TRANSACTION__INVALID_HEAP_SIZE;
13441
13484
  exports.SOLANA_ERROR__TRANSACTION__INVALID_NONCE_ACCOUNT_INDEX = SOLANA_ERROR__TRANSACTION__INVALID_NONCE_ACCOUNT_INDEX;
13442
13485
  exports.SOLANA_ERROR__TRANSACTION__INVALID_NONCE_TRANSACTION_FIRST_INSTRUCTION_MUST_BE_ADVANCE_NONCE = SOLANA_ERROR__TRANSACTION__INVALID_NONCE_TRANSACTION_FIRST_INSTRUCTION_MUST_BE_ADVANCE_NONCE;
13443
13486
  exports.SOLANA_ERROR__TRANSACTION__INVALID_NONCE_TRANSACTION_INSTRUCTIONS_MISSING = SOLANA_ERROR__TRANSACTION__INVALID_NONCE_TRANSACTION_INSTRUCTIONS_MISSING;