@solana/kit 6.9.0-canary-20260505230336 → 6.9.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.
@@ -3570,6 +3570,11 @@ this.globalThis.solanaWeb3 = (function (exports) {
3570
3570
  function gteBinaryFixedPoint(a, b) {
3571
3571
  return cmpBinaryFixedPoint(a, b) >= 0;
3572
3572
  }
3573
+ function binaryFixedPointToBase10(value) {
3574
+ const decimals = value.fractionalBits;
3575
+ const raw = decimals === 0 ? value.raw : value.raw * 5n ** BigInt(decimals);
3576
+ return { decimals, raw };
3577
+ }
3573
3578
  function toUnsignedBinaryFixedPoint(value) {
3574
3579
  if (value.signedness === "unsigned") {
3575
3580
  return value;
@@ -3711,11 +3716,14 @@ this.globalThis.solanaWeb3 = (function (exports) {
3711
3716
  }
3712
3717
  function binaryFixedPointToString(value, options) {
3713
3718
  var _a;
3714
- const base10Decimals = value.fractionalBits;
3715
- const base10Raw = base10Decimals === 0 ? value.raw : value.raw * 5n ** BigInt(base10Decimals);
3716
- const { decimals, raw } = applyDecimalsOption("binaryFixedPoint", base10Raw, base10Decimals, options);
3719
+ const base10 = binaryFixedPointToBase10(value);
3720
+ const { decimals, raw } = applyDecimalsOption("binaryFixedPoint", base10.raw, base10.decimals, options);
3717
3721
  return formatScaledBigint(raw, decimals, (_a = options == null ? void 0 : options.padTrailingZeros) != null ? _a : false);
3718
3722
  }
3723
+ function formatBinaryFixedPoint(formatter, value) {
3724
+ const { decimals, raw } = binaryFixedPointToBase10(value);
3725
+ return formatter.format(`${raw}E-${decimals}`);
3726
+ }
3719
3727
  function binaryFixedPointToNumber(value) {
3720
3728
  const { fractionalBits, raw } = value;
3721
3729
  if (fractionalBits === 0) {
@@ -3980,6 +3988,9 @@ this.globalThis.solanaWeb3 = (function (exports) {
3980
3988
  const { decimals, raw } = applyDecimalsOption("decimalFixedPoint", value.raw, value.decimals, options);
3981
3989
  return formatScaledBigint(raw, decimals, (_a = options == null ? void 0 : options.padTrailingZeros) != null ? _a : false);
3982
3990
  }
3991
+ function formatDecimalFixedPoint(formatter, value) {
3992
+ return formatter.format(`${value.raw}E-${value.decimals}`);
3993
+ }
3983
3994
  function decimalFixedPointToNumber(value) {
3984
3995
  return Number(value.raw) / 10 ** value.decimals;
3985
3996
  }
@@ -9908,7 +9919,7 @@ ${lastLines.map((line) => ` > ${line}
9908
9919
  ...config.headers ? normalizeHeaders2(config.headers) : void 0,
9909
9920
  ...{
9910
9921
  // Keep these headers lowercase so they will override any user-supplied headers above.
9911
- "solana-client": `js/${"6.9.0-canary-20260505230336"}`
9922
+ "solana-client": `js/${"6.9.0"}`
9912
9923
  }
9913
9924
  }
9914
9925
  }),
@@ -12647,6 +12658,7 @@ ${lastLines.map((line) => ` > ${line}
12647
12658
  exports.assertValidBaseString = assertValidBaseString;
12648
12659
  exports.assertValidNumberOfItemsForCodec = assertValidNumberOfItemsForCodec;
12649
12660
  exports.binaryFixedPoint = binaryFixedPoint;
12661
+ exports.binaryFixedPointToBase10 = binaryFixedPointToBase10;
12650
12662
  exports.binaryFixedPointToNumber = binaryFixedPointToNumber;
12651
12663
  exports.binaryFixedPointToString = binaryFixedPointToString;
12652
12664
  exports.blockhash = blockhash;
@@ -12741,6 +12753,8 @@ ${lastLines.map((line) => ` > ${line}
12741
12753
  exports.flattenInstructionPlan = flattenInstructionPlan;
12742
12754
  exports.flattenTransactionPlan = flattenTransactionPlan;
12743
12755
  exports.flattenTransactionPlanResult = flattenTransactionPlanResult;
12756
+ exports.formatBinaryFixedPoint = formatBinaryFixedPoint;
12757
+ exports.formatDecimalFixedPoint = formatDecimalFixedPoint;
12744
12758
  exports.generateKeyPair = generateKeyPair;
12745
12759
  exports.generateKeyPairSigner = generateKeyPairSigner;
12746
12760
  exports.getAddressCodec = getAddressCodec;