@win-trader/bindings 0.0.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/config-manager/dist/index.d.ts +766 -0
- package/config-manager/dist/index.js +313 -0
- package/mock-token/dist/index.d.ts +1448 -0
- package/mock-token/dist/index.js +635 -0
- package/oracle/dist/index.d.ts +421 -0
- package/oracle/dist/index.js +140 -0
- package/oracle-router/dist/index.d.ts +487 -0
- package/oracle-router/dist/index.js +186 -0
- package/package.json +36 -0
- package/position-manager/dist/index.d.ts +709 -0
- package/position-manager/dist/index.js +256 -0
- package/vault/dist/index.d.ts +1914 -0
- package/vault/dist/index.js +776 -0
|
@@ -0,0 +1,1914 @@
|
|
|
1
|
+
import { Buffer } from "buffer";
|
|
2
|
+
import { AssembledTransaction, Client as ContractClient, ClientOptions as ContractClientOptions, MethodOptions } from "@stellar/stellar-sdk/contract";
|
|
3
|
+
import type { u32, u64, i128, Option } from "@stellar/stellar-sdk/contract";
|
|
4
|
+
export * from "@stellar/stellar-sdk";
|
|
5
|
+
export * as contract from "@stellar/stellar-sdk/contract";
|
|
6
|
+
export * as rpc from "@stellar/stellar-sdk/rpc";
|
|
7
|
+
export declare const VaultError: {
|
|
8
|
+
1: {
|
|
9
|
+
message: string;
|
|
10
|
+
};
|
|
11
|
+
2: {
|
|
12
|
+
message: string;
|
|
13
|
+
};
|
|
14
|
+
3: {
|
|
15
|
+
message: string;
|
|
16
|
+
};
|
|
17
|
+
4: {
|
|
18
|
+
message: string;
|
|
19
|
+
};
|
|
20
|
+
5: {
|
|
21
|
+
message: string;
|
|
22
|
+
};
|
|
23
|
+
6: {
|
|
24
|
+
message: string;
|
|
25
|
+
};
|
|
26
|
+
7: {
|
|
27
|
+
message: string;
|
|
28
|
+
};
|
|
29
|
+
8: {
|
|
30
|
+
message: string;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Reservation would exceed total vault assets.
|
|
34
|
+
*/
|
|
35
|
+
9: {
|
|
36
|
+
message: string;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* claim_fees_to amount exceeds available unclaimed fees.
|
|
40
|
+
*/
|
|
41
|
+
10: {
|
|
42
|
+
message: string;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* `record_absorbed_collateral` saw a vault balance delta that differs from
|
|
46
|
+
* the supplied `amount` — PM and Vault disagree on what actually moved.
|
|
47
|
+
*/
|
|
48
|
+
12: {
|
|
49
|
+
message: string;
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* `deposit`/`mint` only accept self-deposits: receiver, from, and operator
|
|
53
|
+
* must all match.
|
|
54
|
+
*/
|
|
55
|
+
13: {
|
|
56
|
+
message: string;
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* `upgrade` rejected — no `propose_upgrade` was made before commit.
|
|
60
|
+
*/
|
|
61
|
+
14: {
|
|
62
|
+
message: string;
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* `upgrade` rejected — timelock has not elapsed yet.
|
|
66
|
+
*/
|
|
67
|
+
15: {
|
|
68
|
+
message: string;
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* `upgrade` rejected — `new_wasm_hash` does not match the proposed
|
|
72
|
+
* `PendingUpgrade.wasm_hash`.
|
|
73
|
+
*/
|
|
74
|
+
16: {
|
|
75
|
+
message: string;
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* `withdraw`/`redeem` rejected — positions are open and the PM-synced
|
|
79
|
+
* `NetGlobalTraderPnl` is older than `PNL_SYNC_MAX_AGE_SECS`, so
|
|
80
|
+
* `free_liquidity` cannot be trusted to cover open trader profits.
|
|
81
|
+
*/
|
|
82
|
+
17: {
|
|
83
|
+
message: string;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
export type VaultDataKey = {
|
|
87
|
+
tag: "Initialized";
|
|
88
|
+
values: void;
|
|
89
|
+
} | {
|
|
90
|
+
tag: "ConfigManager";
|
|
91
|
+
values: void;
|
|
92
|
+
} | {
|
|
93
|
+
tag: "PositionManager";
|
|
94
|
+
values: void;
|
|
95
|
+
} | {
|
|
96
|
+
tag: "ReservedUsdc";
|
|
97
|
+
values: void;
|
|
98
|
+
} | {
|
|
99
|
+
tag: "UnclaimedFees";
|
|
100
|
+
values: void;
|
|
101
|
+
} | {
|
|
102
|
+
tag: "NetGlobalTraderPnl";
|
|
103
|
+
values: void;
|
|
104
|
+
} | {
|
|
105
|
+
tag: "LastPnlSyncTime";
|
|
106
|
+
values: void;
|
|
107
|
+
} | {
|
|
108
|
+
tag: "IsPaused";
|
|
109
|
+
values: void;
|
|
110
|
+
} | {
|
|
111
|
+
tag: "Version";
|
|
112
|
+
values: void;
|
|
113
|
+
} | {
|
|
114
|
+
tag: "LockupExpiresAt";
|
|
115
|
+
values: readonly [string];
|
|
116
|
+
};
|
|
117
|
+
export interface OwnerTokensKey {
|
|
118
|
+
index: u32;
|
|
119
|
+
owner: string;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Storage keys for the data associated with the enumerable extension of
|
|
123
|
+
* `NonFungibleToken`
|
|
124
|
+
*/
|
|
125
|
+
export type NFTEnumerableStorageKey = {
|
|
126
|
+
tag: "TotalSupply";
|
|
127
|
+
values: void;
|
|
128
|
+
} | {
|
|
129
|
+
tag: "OwnerTokens";
|
|
130
|
+
values: readonly [OwnerTokensKey];
|
|
131
|
+
} | {
|
|
132
|
+
tag: "OwnerTokensIndex";
|
|
133
|
+
values: readonly [u32];
|
|
134
|
+
} | {
|
|
135
|
+
tag: "GlobalTokens";
|
|
136
|
+
values: readonly [u32];
|
|
137
|
+
} | {
|
|
138
|
+
tag: "GlobalTokensIndex";
|
|
139
|
+
values: readonly [u32];
|
|
140
|
+
};
|
|
141
|
+
/**
|
|
142
|
+
* Storage keys for the data associated with the consecutive extension of
|
|
143
|
+
* `NonFungibleToken`
|
|
144
|
+
*/
|
|
145
|
+
export type NFTConsecutiveStorageKey = {
|
|
146
|
+
tag: "Approval";
|
|
147
|
+
values: readonly [u32];
|
|
148
|
+
} | {
|
|
149
|
+
tag: "Owner";
|
|
150
|
+
values: readonly [u32];
|
|
151
|
+
} | {
|
|
152
|
+
tag: "OwnershipBucket";
|
|
153
|
+
values: readonly [u32];
|
|
154
|
+
} | {
|
|
155
|
+
tag: "BurnedToken";
|
|
156
|
+
values: readonly [u32];
|
|
157
|
+
};
|
|
158
|
+
/**
|
|
159
|
+
* Storage container for royalty information
|
|
160
|
+
*/
|
|
161
|
+
export interface RoyaltyInfo {
|
|
162
|
+
basis_points: u32;
|
|
163
|
+
receiver: string;
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* Storage keys for royalty data
|
|
167
|
+
*/
|
|
168
|
+
export type NFTRoyaltiesStorageKey = {
|
|
169
|
+
tag: "DefaultRoyalty";
|
|
170
|
+
values: void;
|
|
171
|
+
} | {
|
|
172
|
+
tag: "TokenRoyalty";
|
|
173
|
+
values: readonly [u32];
|
|
174
|
+
};
|
|
175
|
+
export declare const NonFungibleTokenError: {
|
|
176
|
+
/**
|
|
177
|
+
* Indicates a non-existent `token_id`.
|
|
178
|
+
*/
|
|
179
|
+
200: {
|
|
180
|
+
message: string;
|
|
181
|
+
};
|
|
182
|
+
/**
|
|
183
|
+
* Indicates an error related to the ownership over a particular token.
|
|
184
|
+
* Used in transfers.
|
|
185
|
+
*/
|
|
186
|
+
201: {
|
|
187
|
+
message: string;
|
|
188
|
+
};
|
|
189
|
+
/**
|
|
190
|
+
* Indicates a failure with the `operator`s approval. Used in transfers.
|
|
191
|
+
*/
|
|
192
|
+
202: {
|
|
193
|
+
message: string;
|
|
194
|
+
};
|
|
195
|
+
/**
|
|
196
|
+
* Indicates a failure with the `approver` of a token to be approved. Used
|
|
197
|
+
* in approvals.
|
|
198
|
+
*/
|
|
199
|
+
203: {
|
|
200
|
+
message: string;
|
|
201
|
+
};
|
|
202
|
+
/**
|
|
203
|
+
* Indicates an invalid value for `live_until_ledger` when setting
|
|
204
|
+
* approvals.
|
|
205
|
+
*/
|
|
206
|
+
204: {
|
|
207
|
+
message: string;
|
|
208
|
+
};
|
|
209
|
+
/**
|
|
210
|
+
* Indicates overflow when adding two values
|
|
211
|
+
*/
|
|
212
|
+
205: {
|
|
213
|
+
message: string;
|
|
214
|
+
};
|
|
215
|
+
/**
|
|
216
|
+
* Indicates all possible `token_id`s are already in use.
|
|
217
|
+
*/
|
|
218
|
+
206: {
|
|
219
|
+
message: string;
|
|
220
|
+
};
|
|
221
|
+
/**
|
|
222
|
+
* Indicates an invalid amount to batch mint in `consecutive` extension.
|
|
223
|
+
*/
|
|
224
|
+
207: {
|
|
225
|
+
message: string;
|
|
226
|
+
};
|
|
227
|
+
/**
|
|
228
|
+
* Indicates the token does not exist in owner's list.
|
|
229
|
+
*/
|
|
230
|
+
208: {
|
|
231
|
+
message: string;
|
|
232
|
+
};
|
|
233
|
+
/**
|
|
234
|
+
* Indicates the token does not exist in global list.
|
|
235
|
+
*/
|
|
236
|
+
209: {
|
|
237
|
+
message: string;
|
|
238
|
+
};
|
|
239
|
+
/**
|
|
240
|
+
* Indicates access to unset metadata.
|
|
241
|
+
*/
|
|
242
|
+
210: {
|
|
243
|
+
message: string;
|
|
244
|
+
};
|
|
245
|
+
/**
|
|
246
|
+
* Indicates the length of the base URI exceeds the maximum allowed.
|
|
247
|
+
*/
|
|
248
|
+
211: {
|
|
249
|
+
message: string;
|
|
250
|
+
};
|
|
251
|
+
/**
|
|
252
|
+
* Indicates the royalty amount is higher than 10_000 (100%) basis points.
|
|
253
|
+
*/
|
|
254
|
+
212: {
|
|
255
|
+
message: string;
|
|
256
|
+
};
|
|
257
|
+
/**
|
|
258
|
+
* Indicates the length of the name exceeds the maximum allowed.
|
|
259
|
+
*/
|
|
260
|
+
213: {
|
|
261
|
+
message: string;
|
|
262
|
+
};
|
|
263
|
+
/**
|
|
264
|
+
* Indicates the length of the symbol exceeds the maximum allowed.
|
|
265
|
+
*/
|
|
266
|
+
214: {
|
|
267
|
+
message: string;
|
|
268
|
+
};
|
|
269
|
+
};
|
|
270
|
+
export type NFTSequentialStorageKey = {
|
|
271
|
+
tag: "TokenIdCounter";
|
|
272
|
+
values: void;
|
|
273
|
+
};
|
|
274
|
+
/**
|
|
275
|
+
* Storage container for token metadata
|
|
276
|
+
*/
|
|
277
|
+
export interface Metadata {
|
|
278
|
+
base_uri: string;
|
|
279
|
+
name: string;
|
|
280
|
+
symbol: string;
|
|
281
|
+
}
|
|
282
|
+
/**
|
|
283
|
+
* Storage container for the token for which an approval is granted
|
|
284
|
+
* and the ledger number at which this approval expires.
|
|
285
|
+
*/
|
|
286
|
+
export interface ApprovalData {
|
|
287
|
+
approved: string;
|
|
288
|
+
live_until_ledger: u32;
|
|
289
|
+
}
|
|
290
|
+
/**
|
|
291
|
+
* Storage keys for the data associated with `NonFungibleToken`
|
|
292
|
+
*/
|
|
293
|
+
export type NFTStorageKey = {
|
|
294
|
+
tag: "Owner";
|
|
295
|
+
values: readonly [u32];
|
|
296
|
+
} | {
|
|
297
|
+
tag: "Balance";
|
|
298
|
+
values: readonly [string];
|
|
299
|
+
} | {
|
|
300
|
+
tag: "Approval";
|
|
301
|
+
values: readonly [u32];
|
|
302
|
+
} | {
|
|
303
|
+
tag: "ApprovalForAll";
|
|
304
|
+
values: readonly [string, string];
|
|
305
|
+
} | {
|
|
306
|
+
tag: "Metadata";
|
|
307
|
+
values: void;
|
|
308
|
+
};
|
|
309
|
+
/**
|
|
310
|
+
* Hook types for modular compliance system.
|
|
311
|
+
*
|
|
312
|
+
* Each hook type represents a specific event or validation point
|
|
313
|
+
* where compliance modules can be executed.
|
|
314
|
+
*/
|
|
315
|
+
export type ComplianceHook = {
|
|
316
|
+
tag: "Transferred";
|
|
317
|
+
values: void;
|
|
318
|
+
} | {
|
|
319
|
+
tag: "Created";
|
|
320
|
+
values: void;
|
|
321
|
+
} | {
|
|
322
|
+
tag: "Destroyed";
|
|
323
|
+
values: void;
|
|
324
|
+
} | {
|
|
325
|
+
tag: "CanTransfer";
|
|
326
|
+
values: void;
|
|
327
|
+
} | {
|
|
328
|
+
tag: "CanCreate";
|
|
329
|
+
values: void;
|
|
330
|
+
};
|
|
331
|
+
export declare const ComplianceError: {
|
|
332
|
+
/**
|
|
333
|
+
* Indicates a module is already registered for this hook.
|
|
334
|
+
*/
|
|
335
|
+
360: {
|
|
336
|
+
message: string;
|
|
337
|
+
};
|
|
338
|
+
/**
|
|
339
|
+
* Indicates a module is not registered for this hook.
|
|
340
|
+
*/
|
|
341
|
+
361: {
|
|
342
|
+
message: string;
|
|
343
|
+
};
|
|
344
|
+
/**
|
|
345
|
+
* Indicates a module bound is exceeded.
|
|
346
|
+
*/
|
|
347
|
+
362: {
|
|
348
|
+
message: string;
|
|
349
|
+
};
|
|
350
|
+
/**
|
|
351
|
+
* Indicates a token is not bound to this compliance contract.
|
|
352
|
+
*/
|
|
353
|
+
363: {
|
|
354
|
+
message: string;
|
|
355
|
+
};
|
|
356
|
+
};
|
|
357
|
+
/**
|
|
358
|
+
* Storage keys for the modular compliance contract.
|
|
359
|
+
*/
|
|
360
|
+
export type ComplianceDataKey = {
|
|
361
|
+
tag: "HookModules";
|
|
362
|
+
values: readonly [ComplianceHook];
|
|
363
|
+
};
|
|
364
|
+
/**
|
|
365
|
+
* Error codes for document management operations.
|
|
366
|
+
*/
|
|
367
|
+
export declare const DocumentError: {
|
|
368
|
+
/**
|
|
369
|
+
* The specified document was not found.
|
|
370
|
+
*/
|
|
371
|
+
380: {
|
|
372
|
+
message: string;
|
|
373
|
+
};
|
|
374
|
+
/**
|
|
375
|
+
* Maximum number of documents has been reached.
|
|
376
|
+
*/
|
|
377
|
+
381: {
|
|
378
|
+
message: string;
|
|
379
|
+
};
|
|
380
|
+
/**
|
|
381
|
+
* The URI exceeds the maximum allowed length.
|
|
382
|
+
*/
|
|
383
|
+
382: {
|
|
384
|
+
message: string;
|
|
385
|
+
};
|
|
386
|
+
};
|
|
387
|
+
/**
|
|
388
|
+
* Represents a document with its metadata.
|
|
389
|
+
*/
|
|
390
|
+
export interface Document {
|
|
391
|
+
/**
|
|
392
|
+
* The hash of the document contents.
|
|
393
|
+
*/
|
|
394
|
+
document_hash: Buffer;
|
|
395
|
+
/**
|
|
396
|
+
* Timestamp when the document was last modified.
|
|
397
|
+
*/
|
|
398
|
+
timestamp: u64;
|
|
399
|
+
/**
|
|
400
|
+
* The URI where the document can be accessed.
|
|
401
|
+
*/
|
|
402
|
+
uri: string;
|
|
403
|
+
}
|
|
404
|
+
/**
|
|
405
|
+
* Storage keys for document management.
|
|
406
|
+
*/
|
|
407
|
+
export type DocumentStorageKey = {
|
|
408
|
+
tag: "Index";
|
|
409
|
+
values: readonly [Buffer];
|
|
410
|
+
} | {
|
|
411
|
+
tag: "Bucket";
|
|
412
|
+
values: readonly [u32];
|
|
413
|
+
} | {
|
|
414
|
+
tag: "Count";
|
|
415
|
+
values: void;
|
|
416
|
+
};
|
|
417
|
+
export declare const ClaimIssuerError: {
|
|
418
|
+
/**
|
|
419
|
+
* Signature data length does not match the expected scheme.
|
|
420
|
+
*/
|
|
421
|
+
350: {
|
|
422
|
+
message: string;
|
|
423
|
+
};
|
|
424
|
+
/**
|
|
425
|
+
* The provided key is empty.
|
|
426
|
+
*/
|
|
427
|
+
351: {
|
|
428
|
+
message: string;
|
|
429
|
+
};
|
|
430
|
+
/**
|
|
431
|
+
* The key is already allowed for the specified topic.
|
|
432
|
+
*/
|
|
433
|
+
352: {
|
|
434
|
+
message: string;
|
|
435
|
+
};
|
|
436
|
+
/**
|
|
437
|
+
* The specified key was not found in the allowed keys.
|
|
438
|
+
*/
|
|
439
|
+
353: {
|
|
440
|
+
message: string;
|
|
441
|
+
};
|
|
442
|
+
/**
|
|
443
|
+
* The claim issuer is not allowed to sign claims about the specified
|
|
444
|
+
* claim topic.
|
|
445
|
+
*/
|
|
446
|
+
354: {
|
|
447
|
+
message: string;
|
|
448
|
+
};
|
|
449
|
+
/**
|
|
450
|
+
* Maximum limit exceeded (keys per topic or registries per key).
|
|
451
|
+
*/
|
|
452
|
+
355: {
|
|
453
|
+
message: string;
|
|
454
|
+
};
|
|
455
|
+
/**
|
|
456
|
+
* No signing keys found for the specified claim topic.
|
|
457
|
+
*/
|
|
458
|
+
356: {
|
|
459
|
+
message: string;
|
|
460
|
+
};
|
|
461
|
+
/**
|
|
462
|
+
* Invalid claim data encoding.
|
|
463
|
+
*/
|
|
464
|
+
357: {
|
|
465
|
+
message: string;
|
|
466
|
+
};
|
|
467
|
+
/**
|
|
468
|
+
* Recovery of the Secp256k1 public key failed.
|
|
469
|
+
*/
|
|
470
|
+
358: {
|
|
471
|
+
message: string;
|
|
472
|
+
};
|
|
473
|
+
/**
|
|
474
|
+
* Indicates overflow when adding two values.
|
|
475
|
+
*/
|
|
476
|
+
359: {
|
|
477
|
+
message: string;
|
|
478
|
+
};
|
|
479
|
+
};
|
|
480
|
+
export interface SigningKey {
|
|
481
|
+
public_key: Buffer;
|
|
482
|
+
scheme: u32;
|
|
483
|
+
}
|
|
484
|
+
/**
|
|
485
|
+
* Signature data for Ed25519 scheme.
|
|
486
|
+
*/
|
|
487
|
+
export interface Ed25519SignatureData {
|
|
488
|
+
public_key: Buffer;
|
|
489
|
+
signature: Buffer;
|
|
490
|
+
}
|
|
491
|
+
/**
|
|
492
|
+
* Storage keys for claim issuer key management.
|
|
493
|
+
*/
|
|
494
|
+
export type ClaimIssuerStorageKey = {
|
|
495
|
+
tag: "Topics";
|
|
496
|
+
values: readonly [u32];
|
|
497
|
+
} | {
|
|
498
|
+
tag: "Pairs";
|
|
499
|
+
values: readonly [SigningKey];
|
|
500
|
+
} | {
|
|
501
|
+
tag: "RevokedClaim";
|
|
502
|
+
values: readonly [Buffer];
|
|
503
|
+
} | {
|
|
504
|
+
tag: "ClaimNonce";
|
|
505
|
+
values: readonly [string, u32];
|
|
506
|
+
};
|
|
507
|
+
/**
|
|
508
|
+
* Signature data for Secp256k1 scheme.
|
|
509
|
+
*/
|
|
510
|
+
export interface Secp256k1SignatureData {
|
|
511
|
+
public_key: Buffer;
|
|
512
|
+
recovery_id: u32;
|
|
513
|
+
signature: Buffer;
|
|
514
|
+
}
|
|
515
|
+
/**
|
|
516
|
+
* Signature data for Secp256r1 scheme.
|
|
517
|
+
*/
|
|
518
|
+
export interface Secp256r1SignatureData {
|
|
519
|
+
public_key: Buffer;
|
|
520
|
+
signature: Buffer;
|
|
521
|
+
}
|
|
522
|
+
export declare const ClaimsError: {
|
|
523
|
+
/**
|
|
524
|
+
* Claim ID does not exist.
|
|
525
|
+
*/
|
|
526
|
+
340: {
|
|
527
|
+
message: string;
|
|
528
|
+
};
|
|
529
|
+
/**
|
|
530
|
+
* Claim Issuer cannot validate the claim (revocation, signature mismatch,
|
|
531
|
+
* unauthorized signing key, etc.)
|
|
532
|
+
*/
|
|
533
|
+
341: {
|
|
534
|
+
message: string;
|
|
535
|
+
};
|
|
536
|
+
};
|
|
537
|
+
/**
|
|
538
|
+
* Represents a claim stored on-chain.
|
|
539
|
+
*/
|
|
540
|
+
export interface Claim {
|
|
541
|
+
/**
|
|
542
|
+
* The claim data
|
|
543
|
+
*/
|
|
544
|
+
data: Buffer;
|
|
545
|
+
/**
|
|
546
|
+
* The address of the claim issuer
|
|
547
|
+
*/
|
|
548
|
+
issuer: string;
|
|
549
|
+
/**
|
|
550
|
+
* The signature scheme used
|
|
551
|
+
*/
|
|
552
|
+
scheme: u32;
|
|
553
|
+
/**
|
|
554
|
+
* The cryptographic signature
|
|
555
|
+
*/
|
|
556
|
+
signature: Buffer;
|
|
557
|
+
/**
|
|
558
|
+
* The claim topic (numeric identifier)
|
|
559
|
+
*/
|
|
560
|
+
topic: u32;
|
|
561
|
+
/**
|
|
562
|
+
* Optional URI for additional information
|
|
563
|
+
*/
|
|
564
|
+
uri: string;
|
|
565
|
+
}
|
|
566
|
+
/**
|
|
567
|
+
* Storage keys for the data associated with Identity Claims.
|
|
568
|
+
*/
|
|
569
|
+
export type ClaimsStorageKey = {
|
|
570
|
+
tag: "Claim";
|
|
571
|
+
values: readonly [Buffer];
|
|
572
|
+
} | {
|
|
573
|
+
tag: "ClaimsByTopic";
|
|
574
|
+
values: readonly [u32];
|
|
575
|
+
};
|
|
576
|
+
/**
|
|
577
|
+
* Storage keys for the data associated with `RWA` token
|
|
578
|
+
*/
|
|
579
|
+
export type IdentityVerifierStorageKey = {
|
|
580
|
+
tag: "ClaimTopicsAndIssuers";
|
|
581
|
+
values: void;
|
|
582
|
+
} | {
|
|
583
|
+
tag: "IdentityRegistryStorage";
|
|
584
|
+
values: void;
|
|
585
|
+
};
|
|
586
|
+
export declare const RWAError: {
|
|
587
|
+
/**
|
|
588
|
+
* Indicates an error related to insufficient balance for the operation.
|
|
589
|
+
*/
|
|
590
|
+
300: {
|
|
591
|
+
message: string;
|
|
592
|
+
};
|
|
593
|
+
/**
|
|
594
|
+
* Indicates an error when an input must be >= 0.
|
|
595
|
+
*/
|
|
596
|
+
301: {
|
|
597
|
+
message: string;
|
|
598
|
+
};
|
|
599
|
+
/**
|
|
600
|
+
* Indicates the address is frozen and cannot perform operations.
|
|
601
|
+
*/
|
|
602
|
+
302: {
|
|
603
|
+
message: string;
|
|
604
|
+
};
|
|
605
|
+
/**
|
|
606
|
+
* Indicates insufficient free tokens (due to partial freezing).
|
|
607
|
+
*/
|
|
608
|
+
303: {
|
|
609
|
+
message: string;
|
|
610
|
+
};
|
|
611
|
+
/**
|
|
612
|
+
* Indicates an identity cannot be verified.
|
|
613
|
+
*/
|
|
614
|
+
304: {
|
|
615
|
+
message: string;
|
|
616
|
+
};
|
|
617
|
+
/**
|
|
618
|
+
* Indicates the transfer does not comply with the compliance rules.
|
|
619
|
+
*/
|
|
620
|
+
305: {
|
|
621
|
+
message: string;
|
|
622
|
+
};
|
|
623
|
+
/**
|
|
624
|
+
* Indicates the mint operation does not comply with the compliance rules.
|
|
625
|
+
*/
|
|
626
|
+
306: {
|
|
627
|
+
message: string;
|
|
628
|
+
};
|
|
629
|
+
/**
|
|
630
|
+
* Indicates the compliance contract is not set.
|
|
631
|
+
*/
|
|
632
|
+
307: {
|
|
633
|
+
message: string;
|
|
634
|
+
};
|
|
635
|
+
/**
|
|
636
|
+
* Indicates the onchain ID is not set.
|
|
637
|
+
*/
|
|
638
|
+
308: {
|
|
639
|
+
message: string;
|
|
640
|
+
};
|
|
641
|
+
/**
|
|
642
|
+
* Indicates the version is not set.
|
|
643
|
+
*/
|
|
644
|
+
309: {
|
|
645
|
+
message: string;
|
|
646
|
+
};
|
|
647
|
+
/**
|
|
648
|
+
* Indicates the claim topics and issuers contract is not set.
|
|
649
|
+
*/
|
|
650
|
+
310: {
|
|
651
|
+
message: string;
|
|
652
|
+
};
|
|
653
|
+
/**
|
|
654
|
+
* Indicates the identity registry storage contract is not set.
|
|
655
|
+
*/
|
|
656
|
+
311: {
|
|
657
|
+
message: string;
|
|
658
|
+
};
|
|
659
|
+
/**
|
|
660
|
+
* Indicates the identity verifier contract is not set.
|
|
661
|
+
*/
|
|
662
|
+
312: {
|
|
663
|
+
message: string;
|
|
664
|
+
};
|
|
665
|
+
/**
|
|
666
|
+
* Indicates the old account and new account have different identities.
|
|
667
|
+
*/
|
|
668
|
+
313: {
|
|
669
|
+
message: string;
|
|
670
|
+
};
|
|
671
|
+
};
|
|
672
|
+
export declare const ClaimTopicsAndIssuersError: {
|
|
673
|
+
/**
|
|
674
|
+
* Indicates a non-existent claim topic.
|
|
675
|
+
*/
|
|
676
|
+
370: {
|
|
677
|
+
message: string;
|
|
678
|
+
};
|
|
679
|
+
/**
|
|
680
|
+
* Indicates a non-existent trusted issuer.
|
|
681
|
+
*/
|
|
682
|
+
371: {
|
|
683
|
+
message: string;
|
|
684
|
+
};
|
|
685
|
+
/**
|
|
686
|
+
* Indicates a claim topic already exists.
|
|
687
|
+
*/
|
|
688
|
+
372: {
|
|
689
|
+
message: string;
|
|
690
|
+
};
|
|
691
|
+
/**
|
|
692
|
+
* Indicates a trusted issuer already exists.
|
|
693
|
+
*/
|
|
694
|
+
373: {
|
|
695
|
+
message: string;
|
|
696
|
+
};
|
|
697
|
+
/**
|
|
698
|
+
* Indicates max claim topics limit is reached.
|
|
699
|
+
*/
|
|
700
|
+
374: {
|
|
701
|
+
message: string;
|
|
702
|
+
};
|
|
703
|
+
/**
|
|
704
|
+
* Indicates max trusted issuers limit is reached.
|
|
705
|
+
*/
|
|
706
|
+
375: {
|
|
707
|
+
message: string;
|
|
708
|
+
};
|
|
709
|
+
/**
|
|
710
|
+
* Indicates claim topics set provided for the issuer cannot be empty.
|
|
711
|
+
*/
|
|
712
|
+
376: {
|
|
713
|
+
message: string;
|
|
714
|
+
};
|
|
715
|
+
};
|
|
716
|
+
/**
|
|
717
|
+
* Storage keys for the data associated with the claim topics and issuers
|
|
718
|
+
* extension
|
|
719
|
+
*/
|
|
720
|
+
export type ClaimTopicsAndIssuersStorageKey = {
|
|
721
|
+
tag: "ClaimTopics";
|
|
722
|
+
values: void;
|
|
723
|
+
} | {
|
|
724
|
+
tag: "TrustedIssuers";
|
|
725
|
+
values: void;
|
|
726
|
+
} | {
|
|
727
|
+
tag: "IssuerClaimTopics";
|
|
728
|
+
values: readonly [string];
|
|
729
|
+
} | {
|
|
730
|
+
tag: "ClaimTopicIssuers";
|
|
731
|
+
values: readonly [u32];
|
|
732
|
+
};
|
|
733
|
+
/**
|
|
734
|
+
* Error codes for the Identity Registry Storage system.
|
|
735
|
+
*/
|
|
736
|
+
export declare const IRSError: {
|
|
737
|
+
/**
|
|
738
|
+
* An identity already exists for the given account.
|
|
739
|
+
*/
|
|
740
|
+
320: {
|
|
741
|
+
message: string;
|
|
742
|
+
};
|
|
743
|
+
/**
|
|
744
|
+
* No identity found for the given account.
|
|
745
|
+
*/
|
|
746
|
+
321: {
|
|
747
|
+
message: string;
|
|
748
|
+
};
|
|
749
|
+
/**
|
|
750
|
+
* Country data not found at the specified index.
|
|
751
|
+
*/
|
|
752
|
+
322: {
|
|
753
|
+
message: string;
|
|
754
|
+
};
|
|
755
|
+
/**
|
|
756
|
+
* Identity can't be with empty country data list.
|
|
757
|
+
*/
|
|
758
|
+
323: {
|
|
759
|
+
message: string;
|
|
760
|
+
};
|
|
761
|
+
/**
|
|
762
|
+
* The maximum number of country entries has been reached.
|
|
763
|
+
*/
|
|
764
|
+
324: {
|
|
765
|
+
message: string;
|
|
766
|
+
};
|
|
767
|
+
/**
|
|
768
|
+
* Account has been recovered and cannot be used.
|
|
769
|
+
*/
|
|
770
|
+
325: {
|
|
771
|
+
message: string;
|
|
772
|
+
};
|
|
773
|
+
/**
|
|
774
|
+
* Metadata has too many entries (exceeds MAX_METADATA_ENTRIES).
|
|
775
|
+
*/
|
|
776
|
+
326: {
|
|
777
|
+
message: string;
|
|
778
|
+
};
|
|
779
|
+
/**
|
|
780
|
+
* Metadata string value is too long (exceeds MAX_METADATA_STRING_LEN).
|
|
781
|
+
*/
|
|
782
|
+
327: {
|
|
783
|
+
message: string;
|
|
784
|
+
};
|
|
785
|
+
};
|
|
786
|
+
/**
|
|
787
|
+
* A country data containing the country relationship and optional metadata
|
|
788
|
+
*/
|
|
789
|
+
export interface CountryData {
|
|
790
|
+
/**
|
|
791
|
+
* Type of country relationship
|
|
792
|
+
*/
|
|
793
|
+
country: CountryRelation;
|
|
794
|
+
/**
|
|
795
|
+
* Optional metadata (e.g., visa type, validity period)
|
|
796
|
+
*/
|
|
797
|
+
metadata: Option<Map<string, string>>;
|
|
798
|
+
}
|
|
799
|
+
/**
|
|
800
|
+
* Represents the type of identity holder
|
|
801
|
+
*/
|
|
802
|
+
export type IdentityType = {
|
|
803
|
+
tag: "Individual";
|
|
804
|
+
values: void;
|
|
805
|
+
} | {
|
|
806
|
+
tag: "Organization";
|
|
807
|
+
values: void;
|
|
808
|
+
};
|
|
809
|
+
/**
|
|
810
|
+
* Storage keys for the data associated with Identity Storage Registry.
|
|
811
|
+
*/
|
|
812
|
+
export type IRSStorageKey = {
|
|
813
|
+
tag: "Identity";
|
|
814
|
+
values: readonly [string];
|
|
815
|
+
} | {
|
|
816
|
+
tag: "IdentityProfile";
|
|
817
|
+
values: readonly [string];
|
|
818
|
+
} | {
|
|
819
|
+
tag: "RecoveredTo";
|
|
820
|
+
values: readonly [string];
|
|
821
|
+
};
|
|
822
|
+
/**
|
|
823
|
+
* Unified country relationship that can be either individual or organizational
|
|
824
|
+
*/
|
|
825
|
+
export type CountryRelation = {
|
|
826
|
+
tag: "Individual";
|
|
827
|
+
values: readonly [IndividualCountryRelation];
|
|
828
|
+
} | {
|
|
829
|
+
tag: "Organization";
|
|
830
|
+
values: readonly [OrganizationCountryRelation];
|
|
831
|
+
};
|
|
832
|
+
/**
|
|
833
|
+
* Complete identity profile containing identity type and country data
|
|
834
|
+
*/
|
|
835
|
+
export interface IdentityProfile {
|
|
836
|
+
countries: Array<CountryData>;
|
|
837
|
+
identity_type: IdentityType;
|
|
838
|
+
}
|
|
839
|
+
/**
|
|
840
|
+
* Represents different types of country relationships for individuals
|
|
841
|
+
* ISO 3166-1 numeric country code
|
|
842
|
+
*/
|
|
843
|
+
export type IndividualCountryRelation = {
|
|
844
|
+
tag: "Residence";
|
|
845
|
+
values: readonly [u32];
|
|
846
|
+
} | {
|
|
847
|
+
tag: "Citizenship";
|
|
848
|
+
values: readonly [u32];
|
|
849
|
+
} | {
|
|
850
|
+
tag: "SourceOfFunds";
|
|
851
|
+
values: readonly [u32];
|
|
852
|
+
} | {
|
|
853
|
+
tag: "TaxResidency";
|
|
854
|
+
values: readonly [u32];
|
|
855
|
+
} | {
|
|
856
|
+
tag: "Custom";
|
|
857
|
+
values: readonly [string, u32];
|
|
858
|
+
};
|
|
859
|
+
/**
|
|
860
|
+
* Represents different types of country relationships for organizations
|
|
861
|
+
*/
|
|
862
|
+
export type OrganizationCountryRelation = {
|
|
863
|
+
tag: "Incorporation";
|
|
864
|
+
values: readonly [u32];
|
|
865
|
+
} | {
|
|
866
|
+
tag: "OperatingJurisdiction";
|
|
867
|
+
values: readonly [u32];
|
|
868
|
+
} | {
|
|
869
|
+
tag: "TaxJurisdiction";
|
|
870
|
+
values: readonly [u32];
|
|
871
|
+
} | {
|
|
872
|
+
tag: "SourceOfFunds";
|
|
873
|
+
values: readonly [u32];
|
|
874
|
+
} | {
|
|
875
|
+
tag: "Custom";
|
|
876
|
+
values: readonly [string, u32];
|
|
877
|
+
};
|
|
878
|
+
/**
|
|
879
|
+
* Error codes for the Token Binder system.
|
|
880
|
+
*/
|
|
881
|
+
export declare const TokenBinderError: {
|
|
882
|
+
/**
|
|
883
|
+
* The specified token was not found in the bound tokens list.
|
|
884
|
+
*/
|
|
885
|
+
330: {
|
|
886
|
+
message: string;
|
|
887
|
+
};
|
|
888
|
+
/**
|
|
889
|
+
* Attempted to bind a token that is already bound.
|
|
890
|
+
*/
|
|
891
|
+
331: {
|
|
892
|
+
message: string;
|
|
893
|
+
};
|
|
894
|
+
/**
|
|
895
|
+
* Total token capacity (MAX_TOKENS) has been reached.
|
|
896
|
+
*/
|
|
897
|
+
332: {
|
|
898
|
+
message: string;
|
|
899
|
+
};
|
|
900
|
+
/**
|
|
901
|
+
* Batch bind size exceeded.
|
|
902
|
+
*/
|
|
903
|
+
333: {
|
|
904
|
+
message: string;
|
|
905
|
+
};
|
|
906
|
+
/**
|
|
907
|
+
* The batch contains duplicates.
|
|
908
|
+
*/
|
|
909
|
+
334: {
|
|
910
|
+
message: string;
|
|
911
|
+
};
|
|
912
|
+
};
|
|
913
|
+
/**
|
|
914
|
+
* Storage keys for the token binder system.
|
|
915
|
+
*
|
|
916
|
+
* - Tokens are stored in buckets of 100 addresses each
|
|
917
|
+
* - Each bucket is a `Vec<Address>` stored under its bucket index
|
|
918
|
+
* - Total count is tracked separately
|
|
919
|
+
* - When a token is unbound, the last token is moved to fill the gap
|
|
920
|
+
* (swap-remove pattern)
|
|
921
|
+
*/
|
|
922
|
+
export type TokenBinderStorageKey = {
|
|
923
|
+
tag: "TokenBucket";
|
|
924
|
+
values: readonly [u32];
|
|
925
|
+
} | {
|
|
926
|
+
tag: "TotalCount";
|
|
927
|
+
values: void;
|
|
928
|
+
};
|
|
929
|
+
/**
|
|
930
|
+
* Storage keys for the data associated with `RWA` token
|
|
931
|
+
*/
|
|
932
|
+
export type RWAStorageKey = {
|
|
933
|
+
tag: "AddressFrozen";
|
|
934
|
+
values: readonly [string];
|
|
935
|
+
} | {
|
|
936
|
+
tag: "FrozenTokens";
|
|
937
|
+
values: readonly [string];
|
|
938
|
+
} | {
|
|
939
|
+
tag: "Compliance";
|
|
940
|
+
values: void;
|
|
941
|
+
} | {
|
|
942
|
+
tag: "OnchainId";
|
|
943
|
+
values: void;
|
|
944
|
+
} | {
|
|
945
|
+
tag: "Version";
|
|
946
|
+
values: void;
|
|
947
|
+
} | {
|
|
948
|
+
tag: "IdentityVerifier";
|
|
949
|
+
values: void;
|
|
950
|
+
};
|
|
951
|
+
export declare const VaultTokenError: {
|
|
952
|
+
/**
|
|
953
|
+
* Indicates access to uninitialized vault asset address.
|
|
954
|
+
*/
|
|
955
|
+
400: {
|
|
956
|
+
message: string;
|
|
957
|
+
};
|
|
958
|
+
/**
|
|
959
|
+
* Indicates that vault asset address is already set.
|
|
960
|
+
*/
|
|
961
|
+
401: {
|
|
962
|
+
message: string;
|
|
963
|
+
};
|
|
964
|
+
/**
|
|
965
|
+
* Indicates that vault virtual decimals offset is already set.
|
|
966
|
+
*/
|
|
967
|
+
402: {
|
|
968
|
+
message: string;
|
|
969
|
+
};
|
|
970
|
+
/**
|
|
971
|
+
* Indicates the amount is not a valid vault assets value.
|
|
972
|
+
*/
|
|
973
|
+
403: {
|
|
974
|
+
message: string;
|
|
975
|
+
};
|
|
976
|
+
/**
|
|
977
|
+
* Indicates the amount is not a valid vault shares value.
|
|
978
|
+
*/
|
|
979
|
+
404: {
|
|
980
|
+
message: string;
|
|
981
|
+
};
|
|
982
|
+
/**
|
|
983
|
+
* Attempted to deposit more assets than the max amount for address.
|
|
984
|
+
*/
|
|
985
|
+
405: {
|
|
986
|
+
message: string;
|
|
987
|
+
};
|
|
988
|
+
/**
|
|
989
|
+
* Attempted to mint more shares than the max amount for address.
|
|
990
|
+
*/
|
|
991
|
+
406: {
|
|
992
|
+
message: string;
|
|
993
|
+
};
|
|
994
|
+
/**
|
|
995
|
+
* Attempted to withdraw more assets than the max amount for address.
|
|
996
|
+
*/
|
|
997
|
+
407: {
|
|
998
|
+
message: string;
|
|
999
|
+
};
|
|
1000
|
+
/**
|
|
1001
|
+
* Attempted to redeem more shares than the max amount for address.
|
|
1002
|
+
*/
|
|
1003
|
+
408: {
|
|
1004
|
+
message: string;
|
|
1005
|
+
};
|
|
1006
|
+
/**
|
|
1007
|
+
* Maximum number of decimals offset exceeded
|
|
1008
|
+
*/
|
|
1009
|
+
409: {
|
|
1010
|
+
message: string;
|
|
1011
|
+
};
|
|
1012
|
+
/**
|
|
1013
|
+
* Indicates overflow due to mathematical operations
|
|
1014
|
+
*/
|
|
1015
|
+
410: {
|
|
1016
|
+
message: string;
|
|
1017
|
+
};
|
|
1018
|
+
};
|
|
1019
|
+
/**
|
|
1020
|
+
* Storage keys for the data associated with the vault extension
|
|
1021
|
+
*/
|
|
1022
|
+
export type VaultStorageKey = {
|
|
1023
|
+
tag: "AssetAddress";
|
|
1024
|
+
values: void;
|
|
1025
|
+
} | {
|
|
1026
|
+
tag: "VirtualDecimalsOffset";
|
|
1027
|
+
values: void;
|
|
1028
|
+
};
|
|
1029
|
+
/**
|
|
1030
|
+
* Storage keys for the data associated with the allowlist extension
|
|
1031
|
+
*/
|
|
1032
|
+
export type AllowListStorageKey = {
|
|
1033
|
+
tag: "Allowed";
|
|
1034
|
+
values: readonly [string];
|
|
1035
|
+
};
|
|
1036
|
+
/**
|
|
1037
|
+
* Storage keys for the data associated with the blocklist extension
|
|
1038
|
+
*/
|
|
1039
|
+
export type BlockListStorageKey = {
|
|
1040
|
+
tag: "Blocked";
|
|
1041
|
+
values: readonly [string];
|
|
1042
|
+
};
|
|
1043
|
+
export declare const FungibleTokenError: {
|
|
1044
|
+
/**
|
|
1045
|
+
* Indicates an error related to the current balance of account from which
|
|
1046
|
+
* tokens are expected to be transferred.
|
|
1047
|
+
*/
|
|
1048
|
+
100: {
|
|
1049
|
+
message: string;
|
|
1050
|
+
};
|
|
1051
|
+
/**
|
|
1052
|
+
* Indicates a failure with the allowance mechanism when a given spender
|
|
1053
|
+
* doesn't have enough allowance.
|
|
1054
|
+
*/
|
|
1055
|
+
101: {
|
|
1056
|
+
message: string;
|
|
1057
|
+
};
|
|
1058
|
+
/**
|
|
1059
|
+
* Indicates an invalid value for `live_until_ledger` when setting an
|
|
1060
|
+
* allowance.
|
|
1061
|
+
*/
|
|
1062
|
+
102: {
|
|
1063
|
+
message: string;
|
|
1064
|
+
};
|
|
1065
|
+
/**
|
|
1066
|
+
* Indicates an error when an input that must be >= 0
|
|
1067
|
+
*/
|
|
1068
|
+
103: {
|
|
1069
|
+
message: string;
|
|
1070
|
+
};
|
|
1071
|
+
/**
|
|
1072
|
+
* Indicates overflow when adding two values
|
|
1073
|
+
*/
|
|
1074
|
+
104: {
|
|
1075
|
+
message: string;
|
|
1076
|
+
};
|
|
1077
|
+
/**
|
|
1078
|
+
* Indicates access to uninitialized metadata
|
|
1079
|
+
*/
|
|
1080
|
+
105: {
|
|
1081
|
+
message: string;
|
|
1082
|
+
};
|
|
1083
|
+
/**
|
|
1084
|
+
* Indicates that the operation would have caused `total_supply` to exceed
|
|
1085
|
+
* the `cap`.
|
|
1086
|
+
*/
|
|
1087
|
+
106: {
|
|
1088
|
+
message: string;
|
|
1089
|
+
};
|
|
1090
|
+
/**
|
|
1091
|
+
* Indicates the supplied `cap` is not a valid cap value.
|
|
1092
|
+
*/
|
|
1093
|
+
107: {
|
|
1094
|
+
message: string;
|
|
1095
|
+
};
|
|
1096
|
+
/**
|
|
1097
|
+
* Indicates the Cap was not set.
|
|
1098
|
+
*/
|
|
1099
|
+
108: {
|
|
1100
|
+
message: string;
|
|
1101
|
+
};
|
|
1102
|
+
/**
|
|
1103
|
+
* Indicates the SAC address was not set.
|
|
1104
|
+
*/
|
|
1105
|
+
109: {
|
|
1106
|
+
message: string;
|
|
1107
|
+
};
|
|
1108
|
+
/**
|
|
1109
|
+
* Indicates a SAC address different than expected.
|
|
1110
|
+
*/
|
|
1111
|
+
110: {
|
|
1112
|
+
message: string;
|
|
1113
|
+
};
|
|
1114
|
+
/**
|
|
1115
|
+
* Indicates a missing function parameter in the SAC contract context.
|
|
1116
|
+
*/
|
|
1117
|
+
111: {
|
|
1118
|
+
message: string;
|
|
1119
|
+
};
|
|
1120
|
+
/**
|
|
1121
|
+
* Indicates an invalid function parameter in the SAC contract context.
|
|
1122
|
+
*/
|
|
1123
|
+
112: {
|
|
1124
|
+
message: string;
|
|
1125
|
+
};
|
|
1126
|
+
/**
|
|
1127
|
+
* The user is not allowed to perform this operation
|
|
1128
|
+
*/
|
|
1129
|
+
113: {
|
|
1130
|
+
message: string;
|
|
1131
|
+
};
|
|
1132
|
+
/**
|
|
1133
|
+
* The user is blocked and cannot perform this operation
|
|
1134
|
+
*/
|
|
1135
|
+
114: {
|
|
1136
|
+
message: string;
|
|
1137
|
+
};
|
|
1138
|
+
};
|
|
1139
|
+
/**
|
|
1140
|
+
* Storage key for accessing the SAC address
|
|
1141
|
+
*/
|
|
1142
|
+
export type SACAdminGenericDataKey = {
|
|
1143
|
+
tag: "Sac";
|
|
1144
|
+
values: void;
|
|
1145
|
+
};
|
|
1146
|
+
/**
|
|
1147
|
+
* Storage key for accessing the SAC address
|
|
1148
|
+
*/
|
|
1149
|
+
export type SACAdminWrapperDataKey = {
|
|
1150
|
+
tag: "Sac";
|
|
1151
|
+
values: void;
|
|
1152
|
+
};
|
|
1153
|
+
/**
|
|
1154
|
+
* Storage container for token metadata
|
|
1155
|
+
*/
|
|
1156
|
+
export interface Metadata {
|
|
1157
|
+
decimals: u32;
|
|
1158
|
+
name: string;
|
|
1159
|
+
symbol: string;
|
|
1160
|
+
}
|
|
1161
|
+
/**
|
|
1162
|
+
* Storage keys for the data associated with `FungibleToken`
|
|
1163
|
+
*/
|
|
1164
|
+
export type StorageKey = {
|
|
1165
|
+
tag: "TotalSupply";
|
|
1166
|
+
values: void;
|
|
1167
|
+
} | {
|
|
1168
|
+
tag: "Balance";
|
|
1169
|
+
values: readonly [string];
|
|
1170
|
+
} | {
|
|
1171
|
+
tag: "Allowance";
|
|
1172
|
+
values: readonly [AllowanceKey];
|
|
1173
|
+
};
|
|
1174
|
+
/**
|
|
1175
|
+
* Storage key that maps to [`AllowanceData`]
|
|
1176
|
+
*/
|
|
1177
|
+
export interface AllowanceKey {
|
|
1178
|
+
owner: string;
|
|
1179
|
+
spender: string;
|
|
1180
|
+
}
|
|
1181
|
+
/**
|
|
1182
|
+
* Storage container for the amount of tokens for which an allowance is granted
|
|
1183
|
+
* and the ledger number at which this allowance expires.
|
|
1184
|
+
*/
|
|
1185
|
+
export interface AllowanceData {
|
|
1186
|
+
amount: i128;
|
|
1187
|
+
live_until_ledger: u32;
|
|
1188
|
+
}
|
|
1189
|
+
/**
|
|
1190
|
+
* Represents a single trader's open leveraged position.
|
|
1191
|
+
*/
|
|
1192
|
+
export interface Position {
|
|
1193
|
+
/**
|
|
1194
|
+
* USDC collateral deposited by the trader.
|
|
1195
|
+
*/
|
|
1196
|
+
collateral: i128;
|
|
1197
|
+
/**
|
|
1198
|
+
* Global borrow accumulator index at position open (for lazy fee calc).
|
|
1199
|
+
*/
|
|
1200
|
+
entry_borrow_index: i128;
|
|
1201
|
+
/**
|
|
1202
|
+
* Global funding accumulator index at position open (for lazy fee calc).
|
|
1203
|
+
*/
|
|
1204
|
+
entry_funding_index: i128;
|
|
1205
|
+
/**
|
|
1206
|
+
* Oracle price at the time the position was opened (scaled by 1e7).
|
|
1207
|
+
*/
|
|
1208
|
+
entry_price: i128;
|
|
1209
|
+
/**
|
|
1210
|
+
* Flat USDC fee escrowed when TP or SL is set. Paid to executor on trigger, refunded on user close / ADL, forfeited to revenue on liquidation.
|
|
1211
|
+
*/
|
|
1212
|
+
execution_fee_escrow: i128;
|
|
1213
|
+
/**
|
|
1214
|
+
* True for a long position, false for a short.
|
|
1215
|
+
*/
|
|
1216
|
+
is_long: boolean;
|
|
1217
|
+
/**
|
|
1218
|
+
* Block timestamp when the position was last increased (anti-front-running lock).
|
|
1219
|
+
*/
|
|
1220
|
+
last_increased_time: u64;
|
|
1221
|
+
/**
|
|
1222
|
+
* Notional size of the position in USDC.
|
|
1223
|
+
*/
|
|
1224
|
+
size: i128;
|
|
1225
|
+
/**
|
|
1226
|
+
* Stop-loss price (scaled by 1e7). 0 = not set.
|
|
1227
|
+
*/
|
|
1228
|
+
stop_loss: i128;
|
|
1229
|
+
/**
|
|
1230
|
+
* Take-profit price (scaled by 1e7). 0 = not set.
|
|
1231
|
+
*/
|
|
1232
|
+
take_profit: i128;
|
|
1233
|
+
}
|
|
1234
|
+
/**
|
|
1235
|
+
* Global market state for a single tradeable asset symbol.
|
|
1236
|
+
*/
|
|
1237
|
+
export interface MarketInfo {
|
|
1238
|
+
/**
|
|
1239
|
+
* Cumulative borrow fee index (grows monotonically with time).
|
|
1240
|
+
*/
|
|
1241
|
+
acc_borrow_index: i128;
|
|
1242
|
+
/**
|
|
1243
|
+
* Cumulative funding rate index (signed; positive = longs pay shorts).
|
|
1244
|
+
*/
|
|
1245
|
+
acc_funding_index: i128;
|
|
1246
|
+
/**
|
|
1247
|
+
* Volume-weighted average entry price of all active long positions.
|
|
1248
|
+
*/
|
|
1249
|
+
global_long_avg_price: i128;
|
|
1250
|
+
/**
|
|
1251
|
+
* Volume-weighted average entry price of all active short positions.
|
|
1252
|
+
*/
|
|
1253
|
+
global_short_avg_price: i128;
|
|
1254
|
+
/**
|
|
1255
|
+
* Timestamp of the last keeper index update.
|
|
1256
|
+
*/
|
|
1257
|
+
last_index_update: u64;
|
|
1258
|
+
/**
|
|
1259
|
+
* Total notional size of all open long positions.
|
|
1260
|
+
*/
|
|
1261
|
+
long_open_interest: i128;
|
|
1262
|
+
/**
|
|
1263
|
+
* Total notional size of all open short positions.
|
|
1264
|
+
*/
|
|
1265
|
+
short_open_interest: i128;
|
|
1266
|
+
}
|
|
1267
|
+
/**
|
|
1268
|
+
* Global safety thresholds for price validation.
|
|
1269
|
+
*/
|
|
1270
|
+
export interface OracleConfig {
|
|
1271
|
+
/**
|
|
1272
|
+
* How long a cached aggregated price remains valid (in seconds). A
|
|
1273
|
+
* `get_price` call within this window of the last fetch returns the
|
|
1274
|
+
* cached value without re-querying sources. Must be > 0 and
|
|
1275
|
+
* <= `staleness_threshold` (otherwise the cache could outlive a fresh
|
|
1276
|
+
* source price and serve stale data).
|
|
1277
|
+
*/
|
|
1278
|
+
cache_duration: u64;
|
|
1279
|
+
/**
|
|
1280
|
+
* Maximum allowed spread between oracle sources in basis points
|
|
1281
|
+
* (e.g., 100 = 1%). Bounded at `shared::constants::MAX_DEVIATION_BPS_CEILING`.
|
|
1282
|
+
*/
|
|
1283
|
+
max_deviation_bps: i128;
|
|
1284
|
+
/**
|
|
1285
|
+
* Minimum number of source responses that must agree within
|
|
1286
|
+
* `max_deviation_bps` for OracleRouter to return a price. Floored at
|
|
1287
|
+
* `shared::constants::MIN_REQUIRED_SOURCES_FLOOR`, ceilinged at
|
|
1288
|
+
* `shared::constants::MAX_ORACLE_SOURCES`.
|
|
1289
|
+
*/
|
|
1290
|
+
min_required_sources: u32;
|
|
1291
|
+
/**
|
|
1292
|
+
* Maximum age of an external SEP-40 price feed before it is rejected
|
|
1293
|
+
* as stale (in seconds).
|
|
1294
|
+
*/
|
|
1295
|
+
staleness_threshold: u64;
|
|
1296
|
+
}
|
|
1297
|
+
/**
|
|
1298
|
+
* Data required during a WASM migration. Single definition for all contracts.
|
|
1299
|
+
*/
|
|
1300
|
+
export interface MigrationData {
|
|
1301
|
+
version: u32;
|
|
1302
|
+
}
|
|
1303
|
+
/**
|
|
1304
|
+
* Pending WASM upgrade — set by `propose_upgrade`, consumed by `upgrade`
|
|
1305
|
+
* (cleared atomically on a successful install), or cleared by `cancel_upgrade`.
|
|
1306
|
+
* Single shape across every protocol contract; all four contracts store it at
|
|
1307
|
+
* the shared `pending_upgrade` Symbol key in their own instance storage (see
|
|
1308
|
+
* `interfaces::upgrade::pending_upgrade_key`). `upgrade` refuses to install
|
|
1309
|
+
* unless `pending.wasm_hash` matches the supplied hash and `now >= eta`.
|
|
1310
|
+
*/
|
|
1311
|
+
export interface PendingUpgrade {
|
|
1312
|
+
eta: u64;
|
|
1313
|
+
wasm_hash: Buffer;
|
|
1314
|
+
}
|
|
1315
|
+
export declare const UpgradeableError: {
|
|
1316
|
+
/**
|
|
1317
|
+
* When migration is attempted but not allowed due to upgrade state.
|
|
1318
|
+
*/
|
|
1319
|
+
1100: {
|
|
1320
|
+
message: string;
|
|
1321
|
+
};
|
|
1322
|
+
};
|
|
1323
|
+
export declare const MerkleDistributorError: {
|
|
1324
|
+
/**
|
|
1325
|
+
* The merkle root is not set.
|
|
1326
|
+
*/
|
|
1327
|
+
1300: {
|
|
1328
|
+
message: string;
|
|
1329
|
+
};
|
|
1330
|
+
/**
|
|
1331
|
+
* The provided index was already claimed.
|
|
1332
|
+
*/
|
|
1333
|
+
1301: {
|
|
1334
|
+
message: string;
|
|
1335
|
+
};
|
|
1336
|
+
/**
|
|
1337
|
+
* The proof is invalid.
|
|
1338
|
+
*/
|
|
1339
|
+
1302: {
|
|
1340
|
+
message: string;
|
|
1341
|
+
};
|
|
1342
|
+
};
|
|
1343
|
+
/**
|
|
1344
|
+
* Storage keys for the data associated with `MerkleDistributor`
|
|
1345
|
+
*/
|
|
1346
|
+
export type MerkleDistributorStorageKey = {
|
|
1347
|
+
tag: "Root";
|
|
1348
|
+
values: void;
|
|
1349
|
+
} | {
|
|
1350
|
+
tag: "Claimed";
|
|
1351
|
+
values: readonly [u32];
|
|
1352
|
+
};
|
|
1353
|
+
/**
|
|
1354
|
+
* Rounding direction for division operations
|
|
1355
|
+
*/
|
|
1356
|
+
export type Rounding = {
|
|
1357
|
+
tag: "Floor";
|
|
1358
|
+
values: void;
|
|
1359
|
+
} | {
|
|
1360
|
+
tag: "Ceil";
|
|
1361
|
+
values: void;
|
|
1362
|
+
} | {
|
|
1363
|
+
tag: "Truncate";
|
|
1364
|
+
values: void;
|
|
1365
|
+
};
|
|
1366
|
+
export declare const SorobanFixedPointError: {
|
|
1367
|
+
/**
|
|
1368
|
+
* Arithmetic overflow occurred
|
|
1369
|
+
*/
|
|
1370
|
+
1500: {
|
|
1371
|
+
message: string;
|
|
1372
|
+
};
|
|
1373
|
+
/**
|
|
1374
|
+
* Division by zero
|
|
1375
|
+
*/
|
|
1376
|
+
1501: {
|
|
1377
|
+
message: string;
|
|
1378
|
+
};
|
|
1379
|
+
};
|
|
1380
|
+
export declare const CryptoError: {
|
|
1381
|
+
/**
|
|
1382
|
+
* The merkle proof length is out of bounds.
|
|
1383
|
+
*/
|
|
1384
|
+
1400: {
|
|
1385
|
+
message: string;
|
|
1386
|
+
};
|
|
1387
|
+
/**
|
|
1388
|
+
* The index of the leaf is out of bounds.
|
|
1389
|
+
*/
|
|
1390
|
+
1401: {
|
|
1391
|
+
message: string;
|
|
1392
|
+
};
|
|
1393
|
+
/**
|
|
1394
|
+
* No data in hasher state.
|
|
1395
|
+
*/
|
|
1396
|
+
1402: {
|
|
1397
|
+
message: string;
|
|
1398
|
+
};
|
|
1399
|
+
};
|
|
1400
|
+
export declare const PausableError: {
|
|
1401
|
+
/**
|
|
1402
|
+
* The operation failed because the contract is paused.
|
|
1403
|
+
*/
|
|
1404
|
+
1000: {
|
|
1405
|
+
message: string;
|
|
1406
|
+
};
|
|
1407
|
+
/**
|
|
1408
|
+
* The operation failed because the contract is not paused.
|
|
1409
|
+
*/
|
|
1410
|
+
1001: {
|
|
1411
|
+
message: string;
|
|
1412
|
+
};
|
|
1413
|
+
};
|
|
1414
|
+
/**
|
|
1415
|
+
* Storage key for the pausable state
|
|
1416
|
+
*/
|
|
1417
|
+
export type PausableStorageKey = {
|
|
1418
|
+
tag: "Paused";
|
|
1419
|
+
values: void;
|
|
1420
|
+
};
|
|
1421
|
+
/**
|
|
1422
|
+
* Execution-bounty and open-fee parameters charged to traders.
|
|
1423
|
+
* `open_fee_bps` and `liquidation_bounty_bps` are in basis points;
|
|
1424
|
+
* `tp_sl_execution_fee` is a flat USDC amount at PRECISION scale.
|
|
1425
|
+
*/
|
|
1426
|
+
export interface FeeConfig {
|
|
1427
|
+
liquidation_bounty_bps: u32;
|
|
1428
|
+
open_fee_bps: u32;
|
|
1429
|
+
tp_sl_execution_fee: i128;
|
|
1430
|
+
}
|
|
1431
|
+
/**
|
|
1432
|
+
* Defines how protocol revenue is split between parties.
|
|
1433
|
+
* All values are in basis points (bps). Must sum to 10_000.
|
|
1434
|
+
*/
|
|
1435
|
+
export interface FeeSplits {
|
|
1436
|
+
dev_bps: u32;
|
|
1437
|
+
lp_bps: u32;
|
|
1438
|
+
staker_bps: u32;
|
|
1439
|
+
}
|
|
1440
|
+
/**
|
|
1441
|
+
* Global protocol risk and timing parameters.
|
|
1442
|
+
*/
|
|
1443
|
+
export interface ProtocolLimits {
|
|
1444
|
+
adl_pnl_bps: u32;
|
|
1445
|
+
adl_utilization_bps: u32;
|
|
1446
|
+
cooldown_duration: u64;
|
|
1447
|
+
funding_cut_bps: u32;
|
|
1448
|
+
liquidation_threshold_bps: u32;
|
|
1449
|
+
max_utilization_ratio: i128;
|
|
1450
|
+
min_collateral: i128;
|
|
1451
|
+
min_position_lifetime: u64;
|
|
1452
|
+
}
|
|
1453
|
+
/**
|
|
1454
|
+
* Borrow rate kink curve and funding rate parameters (all in basis points).
|
|
1455
|
+
*/
|
|
1456
|
+
export interface BorrowRateConfig {
|
|
1457
|
+
base_borrow_rate_bps: i128;
|
|
1458
|
+
base_funding_rate_bps: i128;
|
|
1459
|
+
optimal_utilization_bps: i128;
|
|
1460
|
+
slope1_bps: i128;
|
|
1461
|
+
slope2_bps: i128;
|
|
1462
|
+
}
|
|
1463
|
+
export interface Client {
|
|
1464
|
+
/**
|
|
1465
|
+
* Construct and simulate a mint transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
1466
|
+
*/
|
|
1467
|
+
mint: ({ shares, receiver, from, operator }: {
|
|
1468
|
+
shares: i128;
|
|
1469
|
+
receiver: string;
|
|
1470
|
+
from: string;
|
|
1471
|
+
operator: string;
|
|
1472
|
+
}, options?: MethodOptions) => Promise<AssembledTransaction<i128>>;
|
|
1473
|
+
/**
|
|
1474
|
+
* Construct and simulate a name transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
1475
|
+
* Returns the name for this token.
|
|
1476
|
+
*
|
|
1477
|
+
* # Arguments
|
|
1478
|
+
*
|
|
1479
|
+
* * `e` - Access to Soroban environment.
|
|
1480
|
+
*/
|
|
1481
|
+
name: (options?: MethodOptions) => Promise<AssembledTransaction<string>>;
|
|
1482
|
+
/**
|
|
1483
|
+
* Construct and simulate a pause transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
1484
|
+
*/
|
|
1485
|
+
pause: ({ caller }: {
|
|
1486
|
+
caller: string;
|
|
1487
|
+
}, options?: MethodOptions) => Promise<AssembledTransaction<null>>;
|
|
1488
|
+
/**
|
|
1489
|
+
* Construct and simulate a redeem transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
1490
|
+
*/
|
|
1491
|
+
redeem: ({ shares, receiver, owner, operator }: {
|
|
1492
|
+
shares: i128;
|
|
1493
|
+
receiver: string;
|
|
1494
|
+
owner: string;
|
|
1495
|
+
operator: string;
|
|
1496
|
+
}, options?: MethodOptions) => Promise<AssembledTransaction<i128>>;
|
|
1497
|
+
/**
|
|
1498
|
+
* Construct and simulate a symbol transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
1499
|
+
* Returns the symbol for this token.
|
|
1500
|
+
*
|
|
1501
|
+
* # Arguments
|
|
1502
|
+
*
|
|
1503
|
+
* * `e` - Access to Soroban environment.
|
|
1504
|
+
*/
|
|
1505
|
+
symbol: (options?: MethodOptions) => Promise<AssembledTransaction<string>>;
|
|
1506
|
+
/**
|
|
1507
|
+
* Construct and simulate a approve transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
1508
|
+
* Sets the amount of tokens a `spender` is allowed to spend on behalf of
|
|
1509
|
+
* an `owner`. Overrides any existing allowance set between `spender` and
|
|
1510
|
+
* `owner`.
|
|
1511
|
+
*
|
|
1512
|
+
* # Arguments
|
|
1513
|
+
*
|
|
1514
|
+
* * `e` - Access to Soroban environment.
|
|
1515
|
+
* * `owner` - The address holding the tokens.
|
|
1516
|
+
* * `spender` - The address authorized to spend the tokens.
|
|
1517
|
+
* * `amount` - The amount of tokens made available to `spender`.
|
|
1518
|
+
* * `live_until_ledger` - The ledger number at which the allowance
|
|
1519
|
+
* expires.
|
|
1520
|
+
*
|
|
1521
|
+
* # Errors
|
|
1522
|
+
*
|
|
1523
|
+
* * [`FungibleTokenError::InvalidLiveUntilLedger`] - Occurs when
|
|
1524
|
+
* attempting to set `live_until_ledger` that is less than the current
|
|
1525
|
+
* ledger number and greater than `0`.
|
|
1526
|
+
* * [`FungibleTokenError::LessThanZero`] - Occurs when `amount < 0`.
|
|
1527
|
+
*
|
|
1528
|
+
* # Events
|
|
1529
|
+
*
|
|
1530
|
+
* * topics - `["approve", from: Address, spender: Address]`
|
|
1531
|
+
* * data - `[amount: i128, live_until_ledger: u32]`
|
|
1532
|
+
*/
|
|
1533
|
+
approve: ({ owner, spender, amount, live_until_ledger }: {
|
|
1534
|
+
owner: string;
|
|
1535
|
+
spender: string;
|
|
1536
|
+
amount: i128;
|
|
1537
|
+
live_until_ledger: u32;
|
|
1538
|
+
}, options?: MethodOptions) => Promise<AssembledTransaction<null>>;
|
|
1539
|
+
/**
|
|
1540
|
+
* Construct and simulate a balance transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
1541
|
+
* Returns the amount of tokens held by `account`.
|
|
1542
|
+
*
|
|
1543
|
+
* # Arguments
|
|
1544
|
+
*
|
|
1545
|
+
* * `e` - Access to the Soroban environment.
|
|
1546
|
+
* * `account` - The address for which the balance is being queried.
|
|
1547
|
+
*/
|
|
1548
|
+
balance: ({ account }: {
|
|
1549
|
+
account: string;
|
|
1550
|
+
}, options?: MethodOptions) => Promise<AssembledTransaction<i128>>;
|
|
1551
|
+
/**
|
|
1552
|
+
* Construct and simulate a deposit transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
1553
|
+
*/
|
|
1554
|
+
deposit: ({ assets, receiver, from, operator }: {
|
|
1555
|
+
assets: i128;
|
|
1556
|
+
receiver: string;
|
|
1557
|
+
from: string;
|
|
1558
|
+
operator: string;
|
|
1559
|
+
}, options?: MethodOptions) => Promise<AssembledTransaction<i128>>;
|
|
1560
|
+
/**
|
|
1561
|
+
* Construct and simulate a migrate transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
1562
|
+
*/
|
|
1563
|
+
migrate: ({ migration_data, operator }: {
|
|
1564
|
+
migration_data: MigrationData;
|
|
1565
|
+
operator: string;
|
|
1566
|
+
}, options?: MethodOptions) => Promise<AssembledTransaction<null>>;
|
|
1567
|
+
/**
|
|
1568
|
+
* Construct and simulate a unpause transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
1569
|
+
*/
|
|
1570
|
+
unpause: ({ caller }: {
|
|
1571
|
+
caller: string;
|
|
1572
|
+
}, options?: MethodOptions) => Promise<AssembledTransaction<null>>;
|
|
1573
|
+
/**
|
|
1574
|
+
* Construct and simulate a upgrade transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
1575
|
+
*/
|
|
1576
|
+
upgrade: ({ new_wasm_hash, operator }: {
|
|
1577
|
+
new_wasm_hash: Buffer;
|
|
1578
|
+
operator: string;
|
|
1579
|
+
}, options?: MethodOptions) => Promise<AssembledTransaction<null>>;
|
|
1580
|
+
/**
|
|
1581
|
+
* Construct and simulate a decimals transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
1582
|
+
*/
|
|
1583
|
+
decimals: (options?: MethodOptions) => Promise<AssembledTransaction<u32>>;
|
|
1584
|
+
/**
|
|
1585
|
+
* Construct and simulate a max_mint transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
1586
|
+
*/
|
|
1587
|
+
max_mint: ({ receiver }: {
|
|
1588
|
+
receiver: string;
|
|
1589
|
+
}, options?: MethodOptions) => Promise<AssembledTransaction<i128>>;
|
|
1590
|
+
/**
|
|
1591
|
+
* Construct and simulate a transfer transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
1592
|
+
* Override to propagate the sender's remaining lockup onto a recipient
|
|
1593
|
+
* who held no shares before the transfer. Without this, an LP could
|
|
1594
|
+
* circumvent the cooldown by transferring LP shares to a fresh address
|
|
1595
|
+
* that then withdraws. Recipients with an existing balance keep their
|
|
1596
|
+
* own expiry — see `propagate_lockup_on_transfer`.
|
|
1597
|
+
*/
|
|
1598
|
+
transfer: ({ from, to, amount }: {
|
|
1599
|
+
from: string;
|
|
1600
|
+
to: string;
|
|
1601
|
+
amount: i128;
|
|
1602
|
+
}, options?: MethodOptions) => Promise<AssembledTransaction<null>>;
|
|
1603
|
+
/**
|
|
1604
|
+
* Construct and simulate a withdraw transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
1605
|
+
*/
|
|
1606
|
+
withdraw: ({ assets, receiver, owner, operator }: {
|
|
1607
|
+
assets: i128;
|
|
1608
|
+
receiver: string;
|
|
1609
|
+
owner: string;
|
|
1610
|
+
operator: string;
|
|
1611
|
+
}, options?: MethodOptions) => Promise<AssembledTransaction<i128>>;
|
|
1612
|
+
/**
|
|
1613
|
+
* Construct and simulate a allowance transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
1614
|
+
* Returns the amount of tokens a `spender` is allowed to spend on behalf
|
|
1615
|
+
* of an `owner`.
|
|
1616
|
+
*
|
|
1617
|
+
* # Arguments
|
|
1618
|
+
*
|
|
1619
|
+
* * `e` - Access to Soroban environment.
|
|
1620
|
+
* * `owner` - The address holding the tokens.
|
|
1621
|
+
* * `spender` - The address authorized to spend the tokens.
|
|
1622
|
+
*/
|
|
1623
|
+
allowance: ({ owner, spender }: {
|
|
1624
|
+
owner: string;
|
|
1625
|
+
spender: string;
|
|
1626
|
+
}, options?: MethodOptions) => Promise<AssembledTransaction<i128>>;
|
|
1627
|
+
/**
|
|
1628
|
+
* Construct and simulate a claim_fees transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
1629
|
+
*/
|
|
1630
|
+
claim_fees: ({ caller, recipient }: {
|
|
1631
|
+
caller: string;
|
|
1632
|
+
recipient: string;
|
|
1633
|
+
}, options?: MethodOptions) => Promise<AssembledTransaction<null>>;
|
|
1634
|
+
/**
|
|
1635
|
+
* Construct and simulate a max_redeem transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
1636
|
+
*/
|
|
1637
|
+
max_redeem: ({ owner }: {
|
|
1638
|
+
owner: string;
|
|
1639
|
+
}, options?: MethodOptions) => Promise<AssembledTransaction<i128>>;
|
|
1640
|
+
/**
|
|
1641
|
+
* Construct and simulate a pay_profit transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
1642
|
+
* Pay `amount` from the vault to `trader` to settle a profitable close.
|
|
1643
|
+
* Loss settlement does NOT route through here — see ADR-0001.
|
|
1644
|
+
*/
|
|
1645
|
+
pay_profit: ({ caller, trader, amount }: {
|
|
1646
|
+
caller: string;
|
|
1647
|
+
trader: string;
|
|
1648
|
+
amount: i128;
|
|
1649
|
+
}, options?: MethodOptions) => Promise<AssembledTransaction<null>>;
|
|
1650
|
+
/**
|
|
1651
|
+
* Construct and simulate a accrue_fees transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
1652
|
+
* Books PM-pushed revenue into `unclaimed_fees`, clamped so
|
|
1653
|
+
* `unclaimed_fees + reserved_usdc` never exceeds `total_assets` — fee
|
|
1654
|
+
* claims can only ever be tagged against capital the vault holds. A
|
|
1655
|
+
* clamped accrual emits `FeeAccrualClamped` for monitoring instead of
|
|
1656
|
+
* reverting: this runs inside PM's close/liquidation paths, which must
|
|
1657
|
+
* never fail on fee bookkeeping.
|
|
1658
|
+
*
|
|
1659
|
+
* Emits `TotalAssetsUpdate` alongside `AccrueFees`. PM's `recv_revenue`
|
|
1660
|
+
* pushes fee USDC into the vault via a raw token transfer immediately
|
|
1661
|
+
* before this call, and no other vault entrypoint witnesses that
|
|
1662
|
+
* transfer — without the snapshot, off-chain indexers would lose the
|
|
1663
|
+
* LP slice (`fee - non_lp_slice`) on every accrual.
|
|
1664
|
+
*/
|
|
1665
|
+
accrue_fees: ({ caller, amount }: {
|
|
1666
|
+
caller: string;
|
|
1667
|
+
amount: i128;
|
|
1668
|
+
}, options?: MethodOptions) => Promise<AssembledTransaction<null>>;
|
|
1669
|
+
/**
|
|
1670
|
+
* Construct and simulate a max_deposit transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
1671
|
+
*/
|
|
1672
|
+
max_deposit: ({ receiver }: {
|
|
1673
|
+
receiver: string;
|
|
1674
|
+
}, options?: MethodOptions) => Promise<AssembledTransaction<i128>>;
|
|
1675
|
+
/**
|
|
1676
|
+
* Construct and simulate a query_asset transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
1677
|
+
*/
|
|
1678
|
+
query_asset: (options?: MethodOptions) => Promise<AssembledTransaction<string>>;
|
|
1679
|
+
/**
|
|
1680
|
+
* Construct and simulate a max_withdraw transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
1681
|
+
*/
|
|
1682
|
+
max_withdraw: ({ owner }: {
|
|
1683
|
+
owner: string;
|
|
1684
|
+
}, options?: MethodOptions) => Promise<AssembledTransaction<i128>>;
|
|
1685
|
+
/**
|
|
1686
|
+
* Construct and simulate a preview_mint transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
1687
|
+
*/
|
|
1688
|
+
preview_mint: ({ shares }: {
|
|
1689
|
+
shares: i128;
|
|
1690
|
+
}, options?: MethodOptions) => Promise<AssembledTransaction<i128>>;
|
|
1691
|
+
/**
|
|
1692
|
+
* Construct and simulate a total_assets transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
1693
|
+
*/
|
|
1694
|
+
total_assets: (options?: MethodOptions) => Promise<AssembledTransaction<i128>>;
|
|
1695
|
+
/**
|
|
1696
|
+
* Construct and simulate a total_supply transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
1697
|
+
* Returns the total amount of tokens in circulation.
|
|
1698
|
+
*
|
|
1699
|
+
* # Arguments
|
|
1700
|
+
*
|
|
1701
|
+
* * `e` - Access to the Soroban environment.
|
|
1702
|
+
*/
|
|
1703
|
+
total_supply: (options?: MethodOptions) => Promise<AssembledTransaction<i128>>;
|
|
1704
|
+
/**
|
|
1705
|
+
* Construct and simulate a claim_fees_to transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
1706
|
+
*/
|
|
1707
|
+
claim_fees_to: ({ caller, recipient, amount }: {
|
|
1708
|
+
caller: string;
|
|
1709
|
+
recipient: string;
|
|
1710
|
+
amount: i128;
|
|
1711
|
+
}, options?: MethodOptions) => Promise<AssembledTransaction<null>>;
|
|
1712
|
+
/**
|
|
1713
|
+
* Construct and simulate a reserved_usdc transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
1714
|
+
*/
|
|
1715
|
+
reserved_usdc: (options?: MethodOptions) => Promise<AssembledTransaction<i128>>;
|
|
1716
|
+
/**
|
|
1717
|
+
* Construct and simulate a transfer_from transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
1718
|
+
* Same lockup-propagation guarantee for the allowance-based path.
|
|
1719
|
+
*/
|
|
1720
|
+
transfer_from: ({ spender, from, to, amount }: {
|
|
1721
|
+
spender: string;
|
|
1722
|
+
from: string;
|
|
1723
|
+
to: string;
|
|
1724
|
+
amount: i128;
|
|
1725
|
+
}, options?: MethodOptions) => Promise<AssembledTransaction<null>>;
|
|
1726
|
+
/**
|
|
1727
|
+
* Construct and simulate a cancel_upgrade transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
1728
|
+
* PAUSER veto of a pending upgrade.
|
|
1729
|
+
*/
|
|
1730
|
+
cancel_upgrade: ({ caller }: {
|
|
1731
|
+
caller: string;
|
|
1732
|
+
}, options?: MethodOptions) => Promise<AssembledTransaction<null>>;
|
|
1733
|
+
/**
|
|
1734
|
+
* Construct and simulate a free_liquidity transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
1735
|
+
*/
|
|
1736
|
+
free_liquidity: (options?: MethodOptions) => Promise<AssembledTransaction<i128>>;
|
|
1737
|
+
/**
|
|
1738
|
+
* Construct and simulate a preview_redeem transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
1739
|
+
*/
|
|
1740
|
+
preview_redeem: ({ shares }: {
|
|
1741
|
+
shares: i128;
|
|
1742
|
+
}, options?: MethodOptions) => Promise<AssembledTransaction<i128>>;
|
|
1743
|
+
/**
|
|
1744
|
+
* Construct and simulate a unclaimed_fees transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
1745
|
+
* Accrued non-LP revenue awaiting `claim_fees` / `claim_fees_to`. Exposed
|
|
1746
|
+
* so tests can reconcile counter movement against token-side transfers
|
|
1747
|
+
* without inferring via subtraction.
|
|
1748
|
+
*/
|
|
1749
|
+
unclaimed_fees: (options?: MethodOptions) => Promise<AssembledTransaction<i128>>;
|
|
1750
|
+
/**
|
|
1751
|
+
* Construct and simulate a update_net_pnl transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
1752
|
+
*/
|
|
1753
|
+
update_net_pnl: ({ caller, pnl }: {
|
|
1754
|
+
caller: string;
|
|
1755
|
+
pnl: i128;
|
|
1756
|
+
}, options?: MethodOptions) => Promise<AssembledTransaction<null>>;
|
|
1757
|
+
/**
|
|
1758
|
+
* Construct and simulate a preview_deposit transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
1759
|
+
*/
|
|
1760
|
+
preview_deposit: ({ assets }: {
|
|
1761
|
+
assets: i128;
|
|
1762
|
+
}, options?: MethodOptions) => Promise<AssembledTransaction<i128>>;
|
|
1763
|
+
/**
|
|
1764
|
+
* Construct and simulate a propose_upgrade transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
1765
|
+
* Propose a WASM upgrade. UPGRADER role only. Records `{wasm_hash, eta}`
|
|
1766
|
+
* where `eta = now + timelock` so `upgrade` can refuse to install a
|
|
1767
|
+
* different hash or fire before `eta`.
|
|
1768
|
+
*/
|
|
1769
|
+
propose_upgrade: ({ caller, wasm_hash }: {
|
|
1770
|
+
caller: string;
|
|
1771
|
+
wasm_hash: Buffer;
|
|
1772
|
+
}, options?: MethodOptions) => Promise<AssembledTransaction<null>>;
|
|
1773
|
+
/**
|
|
1774
|
+
* Construct and simulate a bump_vault_state transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
1775
|
+
*/
|
|
1776
|
+
bump_vault_state: (options?: MethodOptions) => Promise<AssembledTransaction<null>>;
|
|
1777
|
+
/**
|
|
1778
|
+
* Construct and simulate a preview_withdraw transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
1779
|
+
*/
|
|
1780
|
+
preview_withdraw: ({ assets }: {
|
|
1781
|
+
assets: i128;
|
|
1782
|
+
}, options?: MethodOptions) => Promise<AssembledTransaction<i128>>;
|
|
1783
|
+
/**
|
|
1784
|
+
* Construct and simulate a convert_to_assets transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
1785
|
+
*/
|
|
1786
|
+
convert_to_assets: ({ shares }: {
|
|
1787
|
+
shares: i128;
|
|
1788
|
+
}, options?: MethodOptions) => Promise<AssembledTransaction<i128>>;
|
|
1789
|
+
/**
|
|
1790
|
+
* Construct and simulate a convert_to_shares transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
1791
|
+
*/
|
|
1792
|
+
convert_to_shares: ({ assets }: {
|
|
1793
|
+
assets: i128;
|
|
1794
|
+
}, options?: MethodOptions) => Promise<AssembledTransaction<i128>>;
|
|
1795
|
+
/**
|
|
1796
|
+
* Construct and simulate a lockup_expires_at transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
1797
|
+
* Returns the unix timestamp at which `user` may next withdraw/redeem.
|
|
1798
|
+
* Returns 0 if `user` has never deposited (no lockup recorded).
|
|
1799
|
+
*/
|
|
1800
|
+
lockup_expires_at: ({ user }: {
|
|
1801
|
+
user: string;
|
|
1802
|
+
}, options?: MethodOptions) => Promise<AssembledTransaction<u64>>;
|
|
1803
|
+
/**
|
|
1804
|
+
* Construct and simulate a release_liquidity transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
1805
|
+
*/
|
|
1806
|
+
release_liquidity: ({ caller, amount }: {
|
|
1807
|
+
caller: string;
|
|
1808
|
+
amount: i128;
|
|
1809
|
+
}, options?: MethodOptions) => Promise<AssembledTransaction<null>>;
|
|
1810
|
+
/**
|
|
1811
|
+
* Construct and simulate a reserve_liquidity transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
1812
|
+
*/
|
|
1813
|
+
reserve_liquidity: ({ caller, amount }: {
|
|
1814
|
+
caller: string;
|
|
1815
|
+
amount: i128;
|
|
1816
|
+
}, options?: MethodOptions) => Promise<AssembledTransaction<null>>;
|
|
1817
|
+
/**
|
|
1818
|
+
* Construct and simulate a net_global_trader_pnl transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
1819
|
+
* Net unrealized PnL across all open trader positions, as last synced by
|
|
1820
|
+
* PM via `update_net_pnl`. Realized PnL is intentionally NOT included —
|
|
1821
|
+
* it has already moved physically through `pay_profit` /
|
|
1822
|
+
* `record_absorbed_collateral` and is reflected directly in `total_assets`.
|
|
1823
|
+
*/
|
|
1824
|
+
net_global_trader_pnl: (options?: MethodOptions) => Promise<AssembledTransaction<i128>>;
|
|
1825
|
+
/**
|
|
1826
|
+
* Construct and simulate a total_assets_excl_pnl transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
1827
|
+
* Total assets minus only the fee buffer — PnL is excluded so consumers
|
|
1828
|
+
* (PM's utilization gate) are not subject to mark-price feedback into
|
|
1829
|
+
* the utilization denominator. LP-facing flows still use `free_liquidity`.
|
|
1830
|
+
*/
|
|
1831
|
+
total_assets_excl_pnl: (options?: MethodOptions) => Promise<AssembledTransaction<i128>>;
|
|
1832
|
+
/**
|
|
1833
|
+
* Construct and simulate a record_absorbed_collateral transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
1834
|
+
* Notify the vault that PositionManager has just transferred `amount`
|
|
1835
|
+
* USDC of seized/loss-settlement collateral directly into the vault's
|
|
1836
|
+
* wallet. This call does NOT move tokens, but it DOES verify the
|
|
1837
|
+
* on-chain delta — `post - pre` must equal `amount`, otherwise PM and
|
|
1838
|
+
* Vault have diverged and we panic. See ADR-0001.
|
|
1839
|
+
*/
|
|
1840
|
+
record_absorbed_collateral: ({ caller, trader, amount, pre_balance }: {
|
|
1841
|
+
caller: string;
|
|
1842
|
+
trader: string;
|
|
1843
|
+
amount: i128;
|
|
1844
|
+
pre_balance: i128;
|
|
1845
|
+
}, options?: MethodOptions) => Promise<AssembledTransaction<null>>;
|
|
1846
|
+
}
|
|
1847
|
+
export declare class Client extends ContractClient {
|
|
1848
|
+
readonly options: ContractClientOptions;
|
|
1849
|
+
static deploy<T = Client>(
|
|
1850
|
+
/** Constructor/Initialization Args for the contract's `__constructor` method */
|
|
1851
|
+
{ asset, config_manager, position_manager }: {
|
|
1852
|
+
asset: string;
|
|
1853
|
+
config_manager: string;
|
|
1854
|
+
position_manager: string;
|
|
1855
|
+
},
|
|
1856
|
+
/** Options for initializing a Client as well as for calling a method, with extras specific to deploying. */
|
|
1857
|
+
options: MethodOptions & Omit<ContractClientOptions, "contractId"> & {
|
|
1858
|
+
/** The hash of the Wasm blob, which must already be installed on-chain. */
|
|
1859
|
+
wasmHash: Buffer | string;
|
|
1860
|
+
/** Salt used to generate the contract's ID. Passed through to {@link Operation.createCustomContract}. Default: random. */
|
|
1861
|
+
salt?: Buffer | Uint8Array;
|
|
1862
|
+
/** The format used to decode `wasmHash`, if it's provided as a string. */
|
|
1863
|
+
format?: "hex" | "base64";
|
|
1864
|
+
}): Promise<AssembledTransaction<T>>;
|
|
1865
|
+
constructor(options: ContractClientOptions);
|
|
1866
|
+
readonly fromJSON: {
|
|
1867
|
+
mint: (json: string) => AssembledTransaction<bigint>;
|
|
1868
|
+
name: (json: string) => AssembledTransaction<string>;
|
|
1869
|
+
pause: (json: string) => AssembledTransaction<null>;
|
|
1870
|
+
redeem: (json: string) => AssembledTransaction<bigint>;
|
|
1871
|
+
symbol: (json: string) => AssembledTransaction<string>;
|
|
1872
|
+
approve: (json: string) => AssembledTransaction<null>;
|
|
1873
|
+
balance: (json: string) => AssembledTransaction<bigint>;
|
|
1874
|
+
deposit: (json: string) => AssembledTransaction<bigint>;
|
|
1875
|
+
migrate: (json: string) => AssembledTransaction<null>;
|
|
1876
|
+
unpause: (json: string) => AssembledTransaction<null>;
|
|
1877
|
+
upgrade: (json: string) => AssembledTransaction<null>;
|
|
1878
|
+
decimals: (json: string) => AssembledTransaction<number>;
|
|
1879
|
+
max_mint: (json: string) => AssembledTransaction<bigint>;
|
|
1880
|
+
transfer: (json: string) => AssembledTransaction<null>;
|
|
1881
|
+
withdraw: (json: string) => AssembledTransaction<bigint>;
|
|
1882
|
+
allowance: (json: string) => AssembledTransaction<bigint>;
|
|
1883
|
+
claim_fees: (json: string) => AssembledTransaction<null>;
|
|
1884
|
+
max_redeem: (json: string) => AssembledTransaction<bigint>;
|
|
1885
|
+
pay_profit: (json: string) => AssembledTransaction<null>;
|
|
1886
|
+
accrue_fees: (json: string) => AssembledTransaction<null>;
|
|
1887
|
+
max_deposit: (json: string) => AssembledTransaction<bigint>;
|
|
1888
|
+
query_asset: (json: string) => AssembledTransaction<string>;
|
|
1889
|
+
max_withdraw: (json: string) => AssembledTransaction<bigint>;
|
|
1890
|
+
preview_mint: (json: string) => AssembledTransaction<bigint>;
|
|
1891
|
+
total_assets: (json: string) => AssembledTransaction<bigint>;
|
|
1892
|
+
total_supply: (json: string) => AssembledTransaction<bigint>;
|
|
1893
|
+
claim_fees_to: (json: string) => AssembledTransaction<null>;
|
|
1894
|
+
reserved_usdc: (json: string) => AssembledTransaction<bigint>;
|
|
1895
|
+
transfer_from: (json: string) => AssembledTransaction<null>;
|
|
1896
|
+
cancel_upgrade: (json: string) => AssembledTransaction<null>;
|
|
1897
|
+
free_liquidity: (json: string) => AssembledTransaction<bigint>;
|
|
1898
|
+
preview_redeem: (json: string) => AssembledTransaction<bigint>;
|
|
1899
|
+
unclaimed_fees: (json: string) => AssembledTransaction<bigint>;
|
|
1900
|
+
update_net_pnl: (json: string) => AssembledTransaction<null>;
|
|
1901
|
+
preview_deposit: (json: string) => AssembledTransaction<bigint>;
|
|
1902
|
+
propose_upgrade: (json: string) => AssembledTransaction<null>;
|
|
1903
|
+
bump_vault_state: (json: string) => AssembledTransaction<null>;
|
|
1904
|
+
preview_withdraw: (json: string) => AssembledTransaction<bigint>;
|
|
1905
|
+
convert_to_assets: (json: string) => AssembledTransaction<bigint>;
|
|
1906
|
+
convert_to_shares: (json: string) => AssembledTransaction<bigint>;
|
|
1907
|
+
lockup_expires_at: (json: string) => AssembledTransaction<bigint>;
|
|
1908
|
+
release_liquidity: (json: string) => AssembledTransaction<null>;
|
|
1909
|
+
reserve_liquidity: (json: string) => AssembledTransaction<null>;
|
|
1910
|
+
net_global_trader_pnl: (json: string) => AssembledTransaction<bigint>;
|
|
1911
|
+
total_assets_excl_pnl: (json: string) => AssembledTransaction<bigint>;
|
|
1912
|
+
record_absorbed_collateral: (json: string) => AssembledTransaction<null>;
|
|
1913
|
+
};
|
|
1914
|
+
}
|