damm-sdk 1.4.36 → 1.4.37

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.
Files changed (39) hide show
  1. package/dist/index.cjs +32968 -40246
  2. package/dist/index.cjs.map +122 -200
  3. package/dist/index.js +40234 -39832
  4. package/dist/index.js.map +82 -96
  5. package/dist/integrations/index.d.ts +1 -0
  6. package/dist/integrations/index.d.ts.map +1 -1
  7. package/dist/integrations/lagoonV1/delay.proxy.admin.d.ts +208 -0
  8. package/dist/integrations/lagoonV1/delay.proxy.admin.d.ts.map +1 -0
  9. package/dist/integrations/lagoonV1/index.d.ts +1 -0
  10. package/dist/integrations/lagoonV1/index.d.ts.map +1 -1
  11. package/dist/integrations/lagoonV1/lagoon.v1.d.ts +17 -0
  12. package/dist/integrations/lagoonV1/lagoon.v1.d.ts.map +1 -1
  13. package/dist/integrations/lagoonV2/addresses.d.ts +19 -0
  14. package/dist/integrations/lagoonV2/addresses.d.ts.map +1 -0
  15. package/dist/integrations/lagoonV2/factory.abi.d.ts +183 -0
  16. package/dist/integrations/lagoonV2/factory.abi.d.ts.map +1 -0
  17. package/dist/integrations/lagoonV2/index.d.ts +7 -0
  18. package/dist/integrations/lagoonV2/index.d.ts.map +1 -0
  19. package/dist/integrations/lagoonV2/lagoon.v2.d.ts +132 -0
  20. package/dist/integrations/lagoonV2/lagoon.v2.d.ts.map +1 -0
  21. package/dist/integrations/lagoonV2/lagoon.v2.permissions.d.ts +268 -0
  22. package/dist/integrations/lagoonV2/lagoon.v2.permissions.d.ts.map +1 -0
  23. package/dist/integrations/lagoonV2/lagoon.v2.setters.d.ts +293 -0
  24. package/dist/integrations/lagoonV2/lagoon.v2.setters.d.ts.map +1 -0
  25. package/dist/integrations/lagoonV2/vault.abi.d.ts +349 -0
  26. package/dist/integrations/lagoonV2/vault.abi.d.ts.map +1 -0
  27. package/package.json +1 -1
  28. package/src/integrations/index.ts +1 -0
  29. package/src/integrations/lagoonV1/delay.proxy.admin.ts +358 -0
  30. package/src/integrations/lagoonV1/index.ts +1 -0
  31. package/src/integrations/lagoonV1/lagoon.v1.ts +109 -36
  32. package/src/integrations/lagoonV2/addresses.ts +35 -0
  33. package/src/integrations/lagoonV2/factory.abi.ts +110 -0
  34. package/src/integrations/lagoonV2/index.ts +6 -0
  35. package/src/integrations/lagoonV2/lagoon.v2.permissions.ts +578 -0
  36. package/src/integrations/lagoonV2/lagoon.v2.setters.ts +521 -0
  37. package/src/integrations/lagoonV2/lagoon.v2.ts +345 -0
  38. package/src/integrations/lagoonV2/vault.abi.ts +479 -0
  39. package/src/lib/contractsRegistry.json +4 -2
@@ -0,0 +1,349 @@
1
+ /**
2
+ * Minimal v0.6 Lagoon vault ABI — only functions targeted by the permission builders.
3
+ *
4
+ * All signatures verified against the deployed v0.6 implementations:
5
+ * Arbitrum: 0x3f5A9e1D82c595d14bA93c97eB8a77928cFdee70
6
+ * Ethereum: 0x6C77c47FB8168E22976C3B0338CB1769c952249f
7
+ *
8
+ * Selector verification (2026-06-08, via cast sig + bytecode grep on both impls):
9
+ * settleDeposit(uint256) 0xd24ca58a
10
+ * settleRedeem(uint256) 0xa627df66
11
+ * updateNewTotalAssets(uint256) 0xbcd1bf34
12
+ * expireTotalAssets() 0x927b15df
13
+ * pause() 0x8456cb59
14
+ * unpause() 0x3f4ba83a
15
+ * addToWhitelist(address[]) 0x7f649783
16
+ * revokeFromWhitelist(address[]) 0x86af6e68
17
+ * addToBlacklist(address[]) 0x935eb35f
18
+ * revokeFromBlacklist(address[]) 0x4cc724c2
19
+ * updateRates((uint16,uint16,uint16,uint16,uint16)) 0x0190b902
20
+ * updateWhitelistManager(address) 0xf1a76fcc
21
+ * updateValuationManager(address) 0x65ccfcef
22
+ * updateFeeReceiver(address) 0xc69bebe4
23
+ * updateSecurityCouncil(address) 0xdbfe3e96
24
+ * updateSuperOperator(address) 0x3a891d3b
25
+ *
26
+ * SDK-C additions (verified 2026-06-08, Arb impl 0x3f5A9e1D82c595d14bA93c97eB8a77928cFdee70):
27
+ * updateMaxCap(uint256) 0xe81ba080
28
+ * setSyncMode(uint8) 0x363d8de8
29
+ * updateTotalAssetsLifespan(uint128) 0xae16ea8c
30
+ * updateGuardrails((uint256,int256)) 0xced9a8de
31
+ * updateActivated(bool) 0xdc324cb2
32
+ * securityCouncilUpdateTotalAssets(uint256) 0xdeb337a5
33
+ * setExternalSanctionsList(address) 0x7de5c4f4
34
+ * lockUpdateSafe() 0x8c9881a9
35
+ * lockSuperOperator() 0x32c06a4e
36
+ * claimSharesOnBehalf(address[]) 0xf15be6f9
37
+ * claimAssetsOnBehalf(address[]) 0x26d6c82f
38
+ * updateName(string) 0x84da92a7
39
+ * updateSymbol(string) 0x537f5312
40
+ *
41
+ * Key v0.6 differences from v0.5:
42
+ * - updateRates takes a 5-field Rates struct (not 2 fields)
43
+ * - addToWhitelist / revokeFromWhitelist retained for Whitelist mode
44
+ * - addToBlacklist / revokeFromBlacklist are NEW (Blacklist mode)
45
+ * - updateSecurityCouncil and updateSuperOperator are NEW roles
46
+ */
47
+ declare const _default: readonly [{
48
+ readonly type: "function";
49
+ readonly name: "settleDeposit";
50
+ readonly inputs: readonly [{
51
+ readonly name: "epoch";
52
+ readonly type: "uint256";
53
+ readonly internalType: "uint256";
54
+ }];
55
+ readonly outputs: readonly [];
56
+ readonly stateMutability: "nonpayable";
57
+ }, {
58
+ readonly type: "function";
59
+ readonly name: "settleRedeem";
60
+ readonly inputs: readonly [{
61
+ readonly name: "epoch";
62
+ readonly type: "uint256";
63
+ readonly internalType: "uint256";
64
+ }];
65
+ readonly outputs: readonly [];
66
+ readonly stateMutability: "nonpayable";
67
+ }, {
68
+ readonly type: "function";
69
+ readonly name: "updateNewTotalAssets";
70
+ readonly inputs: readonly [{
71
+ readonly name: "newTotalAssets";
72
+ readonly type: "uint256";
73
+ readonly internalType: "uint256";
74
+ }];
75
+ readonly outputs: readonly [];
76
+ readonly stateMutability: "nonpayable";
77
+ }, {
78
+ readonly type: "function";
79
+ readonly name: "expireTotalAssets";
80
+ readonly inputs: readonly [];
81
+ readonly outputs: readonly [];
82
+ readonly stateMutability: "nonpayable";
83
+ }, {
84
+ readonly type: "function";
85
+ readonly name: "pause";
86
+ readonly inputs: readonly [];
87
+ readonly outputs: readonly [];
88
+ readonly stateMutability: "nonpayable";
89
+ }, {
90
+ readonly type: "function";
91
+ readonly name: "unpause";
92
+ readonly inputs: readonly [];
93
+ readonly outputs: readonly [];
94
+ readonly stateMutability: "nonpayable";
95
+ }, {
96
+ readonly type: "function";
97
+ readonly name: "addToWhitelist";
98
+ readonly inputs: readonly [{
99
+ readonly name: "accounts";
100
+ readonly type: "address[]";
101
+ readonly internalType: "address[]";
102
+ }];
103
+ readonly outputs: readonly [];
104
+ readonly stateMutability: "nonpayable";
105
+ }, {
106
+ readonly type: "function";
107
+ readonly name: "revokeFromWhitelist";
108
+ readonly inputs: readonly [{
109
+ readonly name: "accounts";
110
+ readonly type: "address[]";
111
+ readonly internalType: "address[]";
112
+ }];
113
+ readonly outputs: readonly [];
114
+ readonly stateMutability: "nonpayable";
115
+ }, {
116
+ readonly type: "function";
117
+ readonly name: "addToBlacklist";
118
+ readonly inputs: readonly [{
119
+ readonly name: "accounts";
120
+ readonly type: "address[]";
121
+ readonly internalType: "address[]";
122
+ }];
123
+ readonly outputs: readonly [];
124
+ readonly stateMutability: "nonpayable";
125
+ }, {
126
+ readonly type: "function";
127
+ readonly name: "revokeFromBlacklist";
128
+ readonly inputs: readonly [{
129
+ readonly name: "accounts";
130
+ readonly type: "address[]";
131
+ readonly internalType: "address[]";
132
+ }];
133
+ readonly outputs: readonly [];
134
+ readonly stateMutability: "nonpayable";
135
+ }, {
136
+ readonly type: "function";
137
+ readonly name: "updateRates";
138
+ readonly inputs: readonly [{
139
+ readonly name: "rates";
140
+ readonly type: "tuple";
141
+ readonly internalType: "struct Rates";
142
+ readonly components: readonly [{
143
+ readonly name: "managementRate";
144
+ readonly type: "uint16";
145
+ readonly internalType: "uint16";
146
+ }, {
147
+ readonly name: "performanceRate";
148
+ readonly type: "uint16";
149
+ readonly internalType: "uint16";
150
+ }, {
151
+ readonly name: "entryRate";
152
+ readonly type: "uint16";
153
+ readonly internalType: "uint16";
154
+ }, {
155
+ readonly name: "exitRate";
156
+ readonly type: "uint16";
157
+ readonly internalType: "uint16";
158
+ }, {
159
+ readonly name: "haircutRate";
160
+ readonly type: "uint16";
161
+ readonly internalType: "uint16";
162
+ }];
163
+ }];
164
+ readonly outputs: readonly [];
165
+ readonly stateMutability: "nonpayable";
166
+ }, {
167
+ readonly type: "function";
168
+ readonly name: "updateWhitelistManager";
169
+ readonly inputs: readonly [{
170
+ readonly name: "newWhitelistManager";
171
+ readonly type: "address";
172
+ readonly internalType: "address";
173
+ }];
174
+ readonly outputs: readonly [];
175
+ readonly stateMutability: "nonpayable";
176
+ }, {
177
+ readonly type: "function";
178
+ readonly name: "updateValuationManager";
179
+ readonly inputs: readonly [{
180
+ readonly name: "newValuationManager";
181
+ readonly type: "address";
182
+ readonly internalType: "address";
183
+ }];
184
+ readonly outputs: readonly [];
185
+ readonly stateMutability: "nonpayable";
186
+ }, {
187
+ readonly type: "function";
188
+ readonly name: "updateFeeReceiver";
189
+ readonly inputs: readonly [{
190
+ readonly name: "newFeeReceiver";
191
+ readonly type: "address";
192
+ readonly internalType: "address";
193
+ }];
194
+ readonly outputs: readonly [];
195
+ readonly stateMutability: "nonpayable";
196
+ }, {
197
+ readonly type: "function";
198
+ readonly name: "updateSecurityCouncil";
199
+ readonly inputs: readonly [{
200
+ readonly name: "newSecurityCouncil";
201
+ readonly type: "address";
202
+ readonly internalType: "address";
203
+ }];
204
+ readonly outputs: readonly [];
205
+ readonly stateMutability: "nonpayable";
206
+ }, {
207
+ readonly type: "function";
208
+ readonly name: "updateSuperOperator";
209
+ readonly inputs: readonly [{
210
+ readonly name: "newSuperOperator";
211
+ readonly type: "address";
212
+ readonly internalType: "address";
213
+ }];
214
+ readonly outputs: readonly [];
215
+ readonly stateMutability: "nonpayable";
216
+ }, {
217
+ readonly type: "function";
218
+ readonly name: "updateMaxCap";
219
+ readonly inputs: readonly [{
220
+ readonly name: "maxCap";
221
+ readonly type: "uint256";
222
+ readonly internalType: "uint256";
223
+ }];
224
+ readonly outputs: readonly [];
225
+ readonly stateMutability: "nonpayable";
226
+ }, {
227
+ readonly type: "function";
228
+ readonly name: "setSyncMode";
229
+ readonly inputs: readonly [{
230
+ readonly name: "syncMode";
231
+ readonly type: "uint8";
232
+ readonly internalType: "uint8";
233
+ }];
234
+ readonly outputs: readonly [];
235
+ readonly stateMutability: "nonpayable";
236
+ }, {
237
+ readonly type: "function";
238
+ readonly name: "updateTotalAssetsLifespan";
239
+ readonly inputs: readonly [{
240
+ readonly name: "lifespan";
241
+ readonly type: "uint128";
242
+ readonly internalType: "uint128";
243
+ }];
244
+ readonly outputs: readonly [];
245
+ readonly stateMutability: "nonpayable";
246
+ }, {
247
+ readonly type: "function";
248
+ readonly name: "updateGuardrails";
249
+ readonly inputs: readonly [{
250
+ readonly name: "guardrails";
251
+ readonly type: "tuple";
252
+ readonly internalType: "struct Guardrails";
253
+ readonly components: readonly [{
254
+ readonly name: "upperRate";
255
+ readonly type: "uint256";
256
+ readonly internalType: "uint256";
257
+ }, {
258
+ readonly name: "lowerRate";
259
+ readonly type: "int256";
260
+ readonly internalType: "int256";
261
+ }];
262
+ }];
263
+ readonly outputs: readonly [];
264
+ readonly stateMutability: "nonpayable";
265
+ }, {
266
+ readonly type: "function";
267
+ readonly name: "updateActivated";
268
+ readonly inputs: readonly [{
269
+ readonly name: "activated";
270
+ readonly type: "bool";
271
+ readonly internalType: "bool";
272
+ }];
273
+ readonly outputs: readonly [];
274
+ readonly stateMutability: "nonpayable";
275
+ }, {
276
+ readonly type: "function";
277
+ readonly name: "securityCouncilUpdateTotalAssets";
278
+ readonly inputs: readonly [{
279
+ readonly name: "newTotalAssets";
280
+ readonly type: "uint256";
281
+ readonly internalType: "uint256";
282
+ }];
283
+ readonly outputs: readonly [];
284
+ readonly stateMutability: "nonpayable";
285
+ }, {
286
+ readonly type: "function";
287
+ readonly name: "setExternalSanctionsList";
288
+ readonly inputs: readonly [{
289
+ readonly name: "sanctionsList";
290
+ readonly type: "address";
291
+ readonly internalType: "address";
292
+ }];
293
+ readonly outputs: readonly [];
294
+ readonly stateMutability: "nonpayable";
295
+ }, {
296
+ readonly type: "function";
297
+ readonly name: "lockUpdateSafe";
298
+ readonly inputs: readonly [];
299
+ readonly outputs: readonly [];
300
+ readonly stateMutability: "nonpayable";
301
+ }, {
302
+ readonly type: "function";
303
+ readonly name: "lockSuperOperator";
304
+ readonly inputs: readonly [];
305
+ readonly outputs: readonly [];
306
+ readonly stateMutability: "nonpayable";
307
+ }, {
308
+ readonly type: "function";
309
+ readonly name: "claimSharesOnBehalf";
310
+ readonly inputs: readonly [{
311
+ readonly name: "receivers";
312
+ readonly type: "address[]";
313
+ readonly internalType: "address[]";
314
+ }];
315
+ readonly outputs: readonly [];
316
+ readonly stateMutability: "nonpayable";
317
+ }, {
318
+ readonly type: "function";
319
+ readonly name: "claimAssetsOnBehalf";
320
+ readonly inputs: readonly [{
321
+ readonly name: "receivers";
322
+ readonly type: "address[]";
323
+ readonly internalType: "address[]";
324
+ }];
325
+ readonly outputs: readonly [];
326
+ readonly stateMutability: "nonpayable";
327
+ }, {
328
+ readonly type: "function";
329
+ readonly name: "updateName";
330
+ readonly inputs: readonly [{
331
+ readonly name: "name";
332
+ readonly type: "string";
333
+ readonly internalType: "string";
334
+ }];
335
+ readonly outputs: readonly [];
336
+ readonly stateMutability: "nonpayable";
337
+ }, {
338
+ readonly type: "function";
339
+ readonly name: "updateSymbol";
340
+ readonly inputs: readonly [{
341
+ readonly name: "symbol";
342
+ readonly type: "string";
343
+ readonly internalType: "string";
344
+ }];
345
+ readonly outputs: readonly [];
346
+ readonly stateMutability: "nonpayable";
347
+ }];
348
+ export default _default;
349
+ //# sourceMappingURL=vault.abi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vault.abi.d.ts","sourceRoot":"","sources":["../../../src/integrations/lagoonV2/vault.abi.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACH,wBAgbW"}
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "main": "./dist/index.cjs",
5
5
  "types": "./dist/index.d.ts",
6
6
  "type": "module",
7
- "version": "1.4.36",
7
+ "version": "1.4.37",
8
8
  "files": [
9
9
  "dist",
10
10
  "src",
@@ -6,6 +6,7 @@ export * from "./gmx";
6
6
  export * from "./zodiac";
7
7
  export * from "./permit2";
8
8
  export * from "./lagoonV1";
9
+ export * from "./lagoonV2";
9
10
  export * from "./lendleV1";
10
11
  export * from "./morphoBlue";
11
12
  export * from "./erc20";