@percolatorct/sdk 2.0.6 → 2.0.8
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 +10 -10
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2316,7 +2316,7 @@ var V12_19_HEADER_LEN_SBF = 136;
|
|
|
2316
2316
|
var V12_19_CONFIG_LEN = 480;
|
|
2317
2317
|
var V12_19_ENGINE_OFF_SBF = 616;
|
|
2318
2318
|
var V12_19_ACCOUNT_SIZE_SBF = 360;
|
|
2319
|
-
var V12_19_SBF_ENGINE_BITMAP_OFF =
|
|
2319
|
+
var V12_19_SBF_ENGINE_BITMAP_OFF = 736;
|
|
2320
2320
|
var V12_19_SBF_ENGINE_CURRENT_SLOT_OFF = 200;
|
|
2321
2321
|
var V12_19_SBF_ENGINE_MARKET_MODE_OFF = 208;
|
|
2322
2322
|
var V12_19_SBF_ENGINE_RESOLVED_LIVE_PRICE_OFF = 304;
|
|
@@ -2333,13 +2333,13 @@ var V12_19_SBF_ENGINE_LAST_MARKET_SLOT_OFF = 640;
|
|
|
2333
2333
|
var V12_19_SBF_ENGINE_F_LONG_NUM_OFF = 648;
|
|
2334
2334
|
var V12_19_SBF_ENGINE_F_SHORT_NUM_OFF = 664;
|
|
2335
2335
|
var V12_19_SIZES = /* @__PURE__ */ new Map([
|
|
2336
|
-
[
|
|
2336
|
+
[26872, 64],
|
|
2337
2337
|
// --features micro (derived)
|
|
2338
|
-
[
|
|
2338
|
+
[96784, 256],
|
|
2339
2339
|
// --features small (probe-confirmed; deployed mainnet ESa89R5...)
|
|
2340
|
-
[
|
|
2340
|
+
[376432, 1024],
|
|
2341
2341
|
// --features medium (derived)
|
|
2342
|
-
[
|
|
2342
|
+
[1495024, 4096]
|
|
2343
2343
|
// default features / large (derived)
|
|
2344
2344
|
]);
|
|
2345
2345
|
function buildLayoutV12_19(maxAccounts, _dataLen) {
|
|
@@ -2876,10 +2876,10 @@ for (const [label, n] of [["Small", 256], ["Medium", 1024], ["Large", 4096]]) {
|
|
|
2876
2876
|
SLAB_TIERS_V12_17[label.toLowerCase()] = { maxAccounts: n, dataSize: size, label, description: `${n} slots (v12.17)` };
|
|
2877
2877
|
}
|
|
2878
2878
|
var SLAB_TIERS_V12_19 = {
|
|
2879
|
-
micro: { maxAccounts: 64, dataSize:
|
|
2880
|
-
small: { maxAccounts: 256, dataSize:
|
|
2881
|
-
medium: { maxAccounts: 1024, dataSize:
|
|
2882
|
-
large: { maxAccounts: 4096, dataSize:
|
|
2879
|
+
micro: { maxAccounts: 64, dataSize: 26872, label: "Micro", description: "64 slots (v12.19, --features micro)" },
|
|
2880
|
+
small: { maxAccounts: 256, dataSize: 96784, label: "Small", description: "256 slots (v12.19, --features small) \u2014 deployed mainnet ESa89R5..." },
|
|
2881
|
+
medium: { maxAccounts: 1024, dataSize: 376432, label: "Medium", description: "1024 slots (v12.19, --features medium)" },
|
|
2882
|
+
large: { maxAccounts: 4096, dataSize: 1495024, label: "Large", description: "4096 slots (v12.19, default features)" }
|
|
2883
2883
|
};
|
|
2884
2884
|
function buildLayoutVSetDexPool(maxAccounts) {
|
|
2885
2885
|
const engineOff = V_SETDEXPOOL_ENGINE_OFF;
|
|
@@ -4001,7 +4001,7 @@ function parseAccount(data, idx) {
|
|
|
4001
4001
|
const isV12_1 = !isV12_17 && !isV12_15 && !isV12_1EP && (layout.engineOff === V12_1_ENGINE_OFF || layout.engineOff === V12_1_SBF_ENGINE_OFF) && (layout.accountSize === V12_1_ACCOUNT_SIZE || layout.accountSize === V12_1_ACCOUNT_SIZE_SBF);
|
|
4002
4002
|
const isAdl = !isV12_17 && !isV12_15 && (layout.accountSize >= 312 || isV12_1 || isV12_1EP);
|
|
4003
4003
|
if (isV12_17) {
|
|
4004
|
-
const isSbf = layout.accountSize === V12_17_ACCOUNT_SIZE_SBF;
|
|
4004
|
+
const isSbf = layout.accountSize === V12_17_ACCOUNT_SIZE_SBF || layout.accountSize === V12_19_ACCOUNT_SIZE_SBF;
|
|
4005
4005
|
const d1 = isSbf ? 8 : 0;
|
|
4006
4006
|
const d2 = isSbf ? 16 : 0;
|
|
4007
4007
|
const kindByte2 = readU8(data, base + V12_17_ACCT_KIND_OFF);
|