@percolatorct/sdk 0.5.0 → 0.5.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/dist/index.js CHANGED
@@ -1463,6 +1463,7 @@ var V1M_ACCOUNT_SIZE = 248;
1463
1463
  var V1M2_ENGINE_OFF = 616;
1464
1464
  var V1M2_CONFIG_LEN = 512;
1465
1465
  var V1M_ENGINE_PARAMS_OFF = 72;
1466
+ var V1M2_ENGINE_PARAMS_OFF = 96;
1466
1467
  var V1M_PARAMS_SIZE = 336;
1467
1468
  var V1M_ENGINE_CURRENT_SLOT_OFF = 408;
1468
1469
  var V1M_ENGINE_FUNDING_INDEX_OFF = 416;
@@ -1824,8 +1825,8 @@ function buildLayoutV1M2(maxAccounts) {
1824
1825
  bitmapWords,
1825
1826
  accountsOff: engineOff + accountsOffRel,
1826
1827
  engineInsuranceOff: 16,
1827
- engineParamsOff: V1M_ENGINE_PARAMS_OFF,
1828
- // 72same as V1M
1828
+ engineParamsOff: V1M2_ENGINE_PARAMS_OFF,
1829
+ // 96expanded InsuranceFund
1829
1830
  paramsSize: V1M_PARAMS_SIZE,
1830
1831
  // 336 — same as V1M
1831
1832
  // Runtime fields: same as V1M up to fundingRateBps, then +32 shift
@@ -1962,7 +1963,7 @@ function detectSlabLayout(dataLen, data) {
1962
1963
  const vadln = V_ADL_SIZES.get(dataLen);
1963
1964
  if (vadln !== void 0) {
1964
1965
  if (data && data.length >= 752) {
1965
- const maxAcctsV1M2 = readU64LE(data, V1M2_ENGINE_OFF + V1M_ENGINE_PARAMS_OFF + 32);
1966
+ const maxAcctsV1M2 = readU64LE(data, V1M2_ENGINE_OFF + V1M2_ENGINE_PARAMS_OFF + 32);
1966
1967
  if (maxAcctsV1M2 === BigInt(vadln)) {
1967
1968
  return buildLayoutV1M2(vadln);
1968
1969
  }