@percolatorct/sdk 2.0.4 → 2.0.5
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/README.md +1 -1
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -1
- package/dist/solana/slab.d.ts +17 -0
- package/package.json +1 -1
package/dist/solana/slab.d.ts
CHANGED
|
@@ -158,6 +158,23 @@ export declare const SLAB_TIERS_V12_17: Record<string, {
|
|
|
158
158
|
label: string;
|
|
159
159
|
description: string;
|
|
160
160
|
}>;
|
|
161
|
+
/**
|
|
162
|
+
* V12_19 slab tier sizes (probe-confirmed via cargo build-sbf compile-time
|
|
163
|
+
* assertions on 2026-04-28). Used by `discoverMarkets` to filter program
|
|
164
|
+
* accounts by dataSize. Without this tier set, v12.19 slabs (the only kind
|
|
165
|
+
* the deployed mainnet program ESa89R5... produces post-2026-04-28 upgrade)
|
|
166
|
+
* fall through to the memcmp fallback path with no layout hint.
|
|
167
|
+
*
|
|
168
|
+
* Sizes derived from V12_19_SIZES Map (defined earlier in this file at the
|
|
169
|
+
* V12_19 layout block). Kept as Record for parity with other SLAB_TIERS_*
|
|
170
|
+
* exports consumed by discovery.ts.
|
|
171
|
+
*/
|
|
172
|
+
export declare const SLAB_TIERS_V12_19: Record<string, {
|
|
173
|
+
maxAccounts: number;
|
|
174
|
+
dataSize: number;
|
|
175
|
+
label: string;
|
|
176
|
+
description: string;
|
|
177
|
+
}>;
|
|
161
178
|
/**
|
|
162
179
|
* Detect the slab layout version from the raw account data length.
|
|
163
180
|
* Returns the full SlabLayout descriptor, or null if the size is unrecognised.
|