@percolatorct/sdk 0.3.1 → 0.4.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.
- package/README.md +62 -1
- package/dist/index.js +122 -35
- package/dist/index.js.map +1 -1
- package/dist/solana/slab.d.ts +10 -0
- package/package.json +2 -9
package/dist/solana/slab.d.ts
CHANGED
|
@@ -84,6 +84,16 @@ export declare const SLAB_TIERS_V1M: Record<string, {
|
|
|
84
84
|
label: string;
|
|
85
85
|
description: string;
|
|
86
86
|
}>;
|
|
87
|
+
/**
|
|
88
|
+
* V1M2 slab tier sizes — mainnet program with 312-byte accounts.
|
|
89
|
+
* Same engine layout as V1M but larger accounts. Sizes match V_ADL exactly.
|
|
90
|
+
*/
|
|
91
|
+
export declare const SLAB_TIERS_V1M2: Record<string, {
|
|
92
|
+
maxAccounts: number;
|
|
93
|
+
dataSize: number;
|
|
94
|
+
label: string;
|
|
95
|
+
description: string;
|
|
96
|
+
}>;
|
|
87
97
|
/**
|
|
88
98
|
* V_ADL slab tier sizes — PERC-8270/8271 ADL-upgraded program.
|
|
89
99
|
* ENGINE_OFF=624, BITMAP_OFF=1006, ACCOUNT_SIZE=312, postBitmap=18.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@percolatorct/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"dist"
|
|
21
21
|
],
|
|
22
22
|
"scripts": {
|
|
23
|
-
"build": "tsup",
|
|
23
|
+
"build": "tsup && tsc --emitDeclarationOnly --declaration --outDir dist",
|
|
24
24
|
"test": "tsx test/abi.test.ts && tsx test/slab.test.ts && tsx test/validation.test.ts && tsx test/dex-oracle.test.ts && tsx test/trading.test.ts && tsx test/warmup-leverage-cap.test.ts && tsx test/dynamic-fees.test.ts && tsx test/oracle.test.ts && vitest run",
|
|
25
25
|
"lint": "tsc --noEmit"
|
|
26
26
|
},
|
|
@@ -34,12 +34,5 @@
|
|
|
34
34
|
"tsx": "^4.21.0",
|
|
35
35
|
"typescript": "^5.7.2",
|
|
36
36
|
"vitest": "^4.0.18"
|
|
37
|
-
},
|
|
38
|
-
"repository": {
|
|
39
|
-
"type": "git",
|
|
40
|
-
"url": "https://github.com/dcccrypto/percolator-sdk.git"
|
|
41
|
-
},
|
|
42
|
-
"publishConfig": {
|
|
43
|
-
"access": "public"
|
|
44
37
|
}
|
|
45
38
|
}
|