@huma-finance/soroban-pool-storage 0.0.31 → 0.0.32-beta.180
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.d.ts +92 -689
- package/dist/cjs/index.js +15 -6
- package/dist/index.d.ts +92 -689
- package/dist/index.js +15 -6
- package/package.json +4 -4
- package/src/index.ts +89 -784
- package/tsconfig.cjs.json +2 -10
- package/tsconfig.tsbuildinfo +1 -1
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { Buffer } from "buffer";
|
|
2
|
-
import { AssembledTransaction, Client as ContractClient, ClientOptions as ContractClientOptions } from
|
|
3
|
-
import type { u32, u64, u128, Option } from
|
|
4
|
-
export * from
|
|
5
|
-
export * as contract from
|
|
6
|
-
export * as rpc from
|
|
2
|
+
import { AssembledTransaction, Client as ContractClient, ClientOptions as ContractClientOptions, MethodOptions } from "@stellar/stellar-sdk/contract";
|
|
3
|
+
import type { u32, u64, u128, 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
7
|
export declare const networks: {
|
|
8
8
|
readonly testnet: {
|
|
9
9
|
readonly networkPassphrase: "Test SDF Network ; September 2015";
|
|
10
|
-
readonly contractId: "
|
|
10
|
+
readonly contractId: "CDH36NMUGJOJRKAEXCBS4CCJ4CQPIRBJY6ZLT426RWC6DWTRNXBECUTN";
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
export declare const
|
|
13
|
+
export declare const PoolStorageError: {
|
|
14
14
|
201: {
|
|
15
15
|
message: string;
|
|
16
16
|
};
|
|
@@ -23,30 +23,6 @@ export declare const Errors: {
|
|
|
23
23
|
204: {
|
|
24
24
|
message: string;
|
|
25
25
|
};
|
|
26
|
-
801: {
|
|
27
|
-
message: string;
|
|
28
|
-
};
|
|
29
|
-
1: {
|
|
30
|
-
message: string;
|
|
31
|
-
};
|
|
32
|
-
2: {
|
|
33
|
-
message: string;
|
|
34
|
-
};
|
|
35
|
-
3: {
|
|
36
|
-
message: string;
|
|
37
|
-
};
|
|
38
|
-
4: {
|
|
39
|
-
message: string;
|
|
40
|
-
};
|
|
41
|
-
5: {
|
|
42
|
-
message: string;
|
|
43
|
-
};
|
|
44
|
-
6: {
|
|
45
|
-
message: string;
|
|
46
|
-
};
|
|
47
|
-
7: {
|
|
48
|
-
message: string;
|
|
49
|
-
};
|
|
50
26
|
};
|
|
51
27
|
export interface YieldTrackerRefreshedEvent {
|
|
52
28
|
last_updated_date: u64;
|
|
@@ -78,6 +54,34 @@ export type PayPeriodDuration = {
|
|
|
78
54
|
tag: "SemiAnnually";
|
|
79
55
|
values: void;
|
|
80
56
|
};
|
|
57
|
+
export declare const CalendarError: {
|
|
58
|
+
801: {
|
|
59
|
+
message: string;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
export declare const CommonError: {
|
|
63
|
+
1: {
|
|
64
|
+
message: string;
|
|
65
|
+
};
|
|
66
|
+
2: {
|
|
67
|
+
message: string;
|
|
68
|
+
};
|
|
69
|
+
3: {
|
|
70
|
+
message: string;
|
|
71
|
+
};
|
|
72
|
+
4: {
|
|
73
|
+
message: string;
|
|
74
|
+
};
|
|
75
|
+
5: {
|
|
76
|
+
message: string;
|
|
77
|
+
};
|
|
78
|
+
6: {
|
|
79
|
+
message: string;
|
|
80
|
+
};
|
|
81
|
+
7: {
|
|
82
|
+
message: string;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
81
85
|
export type TranchesPolicyType = {
|
|
82
86
|
tag: "FixedSeniorYield";
|
|
83
87
|
values: void;
|
|
@@ -141,20 +145,7 @@ export interface Client {
|
|
|
141
145
|
addrs: Array<string>;
|
|
142
146
|
tranche_addrs: Array<Option<string>>;
|
|
143
147
|
tranches_policy: TranchesPolicyType;
|
|
144
|
-
}, options?:
|
|
145
|
-
/**
|
|
146
|
-
* The fee to pay for the transaction. Default: BASE_FEE
|
|
147
|
-
*/
|
|
148
|
-
fee?: number;
|
|
149
|
-
/**
|
|
150
|
-
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
151
|
-
*/
|
|
152
|
-
timeoutInSeconds?: number;
|
|
153
|
-
/**
|
|
154
|
-
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
155
|
-
*/
|
|
156
|
-
simulate?: boolean;
|
|
157
|
-
}) => Promise<AssembledTransaction<null>>;
|
|
148
|
+
}, options?: MethodOptions) => Promise<AssembledTransaction<null>>;
|
|
158
149
|
/**
|
|
159
150
|
* Construct and simulate a set_contract_addrs 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.
|
|
160
151
|
*/
|
|
@@ -162,20 +153,7 @@ export interface Client {
|
|
|
162
153
|
pool: string;
|
|
163
154
|
pool_manager: string;
|
|
164
155
|
credit: string;
|
|
165
|
-
}, options?:
|
|
166
|
-
/**
|
|
167
|
-
* The fee to pay for the transaction. Default: BASE_FEE
|
|
168
|
-
*/
|
|
169
|
-
fee?: number;
|
|
170
|
-
/**
|
|
171
|
-
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
172
|
-
*/
|
|
173
|
-
timeoutInSeconds?: number;
|
|
174
|
-
/**
|
|
175
|
-
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
176
|
-
*/
|
|
177
|
-
simulate?: boolean;
|
|
178
|
-
}) => Promise<AssembledTransaction<null>>;
|
|
156
|
+
}, options?: MethodOptions) => Promise<AssembledTransaction<null>>;
|
|
179
157
|
/**
|
|
180
158
|
* Construct and simulate a set_huma_config 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.
|
|
181
159
|
*/
|
|
@@ -183,155 +161,51 @@ export interface Client {
|
|
|
183
161
|
huma_config: string;
|
|
184
162
|
huma_owner: string;
|
|
185
163
|
sentinel: string;
|
|
186
|
-
}, options?:
|
|
187
|
-
/**
|
|
188
|
-
* The fee to pay for the transaction. Default: BASE_FEE
|
|
189
|
-
*/
|
|
190
|
-
fee?: number;
|
|
191
|
-
/**
|
|
192
|
-
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
193
|
-
*/
|
|
194
|
-
timeoutInSeconds?: number;
|
|
195
|
-
/**
|
|
196
|
-
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
197
|
-
*/
|
|
198
|
-
simulate?: boolean;
|
|
199
|
-
}) => Promise<AssembledTransaction<null>>;
|
|
164
|
+
}, options?: MethodOptions) => Promise<AssembledTransaction<null>>;
|
|
200
165
|
/**
|
|
201
166
|
* Construct and simulate a set_pool_owner 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.
|
|
202
167
|
*/
|
|
203
168
|
set_pool_owner: ({ pool_owner }: {
|
|
204
169
|
pool_owner: string;
|
|
205
|
-
}, options?:
|
|
206
|
-
/**
|
|
207
|
-
* The fee to pay for the transaction. Default: BASE_FEE
|
|
208
|
-
*/
|
|
209
|
-
fee?: number;
|
|
210
|
-
/**
|
|
211
|
-
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
212
|
-
*/
|
|
213
|
-
timeoutInSeconds?: number;
|
|
214
|
-
/**
|
|
215
|
-
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
216
|
-
*/
|
|
217
|
-
simulate?: boolean;
|
|
218
|
-
}) => Promise<AssembledTransaction<null>>;
|
|
170
|
+
}, options?: MethodOptions) => Promise<AssembledTransaction<null>>;
|
|
219
171
|
/**
|
|
220
172
|
* Construct and simulate a set_pool_owner_treasury 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.
|
|
221
173
|
*/
|
|
222
174
|
set_pool_owner_treasury: ({ pool_owner_treasury }: {
|
|
223
175
|
pool_owner_treasury: string;
|
|
224
|
-
}, options?:
|
|
225
|
-
/**
|
|
226
|
-
* The fee to pay for the transaction. Default: BASE_FEE
|
|
227
|
-
*/
|
|
228
|
-
fee?: number;
|
|
229
|
-
/**
|
|
230
|
-
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
231
|
-
*/
|
|
232
|
-
timeoutInSeconds?: number;
|
|
233
|
-
/**
|
|
234
|
-
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
235
|
-
*/
|
|
236
|
-
simulate?: boolean;
|
|
237
|
-
}) => Promise<AssembledTransaction<null>>;
|
|
176
|
+
}, options?: MethodOptions) => Promise<AssembledTransaction<null>>;
|
|
238
177
|
/**
|
|
239
178
|
* Construct and simulate a set_evaluation_agent 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.
|
|
240
179
|
*/
|
|
241
180
|
set_evaluation_agent: ({ ea }: {
|
|
242
181
|
ea: string;
|
|
243
|
-
}, options?:
|
|
244
|
-
/**
|
|
245
|
-
* The fee to pay for the transaction. Default: BASE_FEE
|
|
246
|
-
*/
|
|
247
|
-
fee?: number;
|
|
248
|
-
/**
|
|
249
|
-
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
250
|
-
*/
|
|
251
|
-
timeoutInSeconds?: number;
|
|
252
|
-
/**
|
|
253
|
-
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
254
|
-
*/
|
|
255
|
-
simulate?: boolean;
|
|
256
|
-
}) => Promise<AssembledTransaction<null>>;
|
|
182
|
+
}, options?: MethodOptions) => Promise<AssembledTransaction<null>>;
|
|
257
183
|
/**
|
|
258
184
|
* Construct and simulate a set_tranche_addresses 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.
|
|
259
185
|
*/
|
|
260
186
|
set_tranche_addresses: ({ junior_addr, senior_addr }: {
|
|
261
187
|
junior_addr: string;
|
|
262
188
|
senior_addr: Option<string>;
|
|
263
|
-
}, options?:
|
|
264
|
-
/**
|
|
265
|
-
* The fee to pay for the transaction. Default: BASE_FEE
|
|
266
|
-
*/
|
|
267
|
-
fee?: number;
|
|
268
|
-
/**
|
|
269
|
-
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
270
|
-
*/
|
|
271
|
-
timeoutInSeconds?: number;
|
|
272
|
-
/**
|
|
273
|
-
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
274
|
-
*/
|
|
275
|
-
simulate?: boolean;
|
|
276
|
-
}) => Promise<AssembledTransaction<null>>;
|
|
189
|
+
}, options?: MethodOptions) => Promise<AssembledTransaction<null>>;
|
|
277
190
|
/**
|
|
278
191
|
* Construct and simulate a set_pool_operator 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.
|
|
279
192
|
*/
|
|
280
193
|
set_pool_operator: ({ addr, is_operator }: {
|
|
281
194
|
addr: string;
|
|
282
195
|
is_operator: boolean;
|
|
283
|
-
}, options?:
|
|
284
|
-
/**
|
|
285
|
-
* The fee to pay for the transaction. Default: BASE_FEE
|
|
286
|
-
*/
|
|
287
|
-
fee?: number;
|
|
288
|
-
/**
|
|
289
|
-
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
290
|
-
*/
|
|
291
|
-
timeoutInSeconds?: number;
|
|
292
|
-
/**
|
|
293
|
-
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
294
|
-
*/
|
|
295
|
-
simulate?: boolean;
|
|
296
|
-
}) => Promise<AssembledTransaction<null>>;
|
|
196
|
+
}, options?: MethodOptions) => Promise<AssembledTransaction<null>>;
|
|
297
197
|
/**
|
|
298
198
|
* Construct and simulate a set_pool_status 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.
|
|
299
199
|
*/
|
|
300
200
|
set_pool_status: ({ status }: {
|
|
301
201
|
status: PoolStatus;
|
|
302
|
-
}, options?:
|
|
303
|
-
/**
|
|
304
|
-
* The fee to pay for the transaction. Default: BASE_FEE
|
|
305
|
-
*/
|
|
306
|
-
fee?: number;
|
|
307
|
-
/**
|
|
308
|
-
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
309
|
-
*/
|
|
310
|
-
timeoutInSeconds?: number;
|
|
311
|
-
/**
|
|
312
|
-
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
313
|
-
*/
|
|
314
|
-
simulate?: boolean;
|
|
315
|
-
}) => Promise<AssembledTransaction<null>>;
|
|
202
|
+
}, options?: MethodOptions) => Promise<AssembledTransaction<null>>;
|
|
316
203
|
/**
|
|
317
204
|
* Construct and simulate a set_epoch 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.
|
|
318
205
|
*/
|
|
319
206
|
set_epoch: ({ epoch }: {
|
|
320
207
|
epoch: Epoch;
|
|
321
|
-
}, options?:
|
|
322
|
-
/**
|
|
323
|
-
* The fee to pay for the transaction. Default: BASE_FEE
|
|
324
|
-
*/
|
|
325
|
-
fee?: number;
|
|
326
|
-
/**
|
|
327
|
-
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
328
|
-
*/
|
|
329
|
-
timeoutInSeconds?: number;
|
|
330
|
-
/**
|
|
331
|
-
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
332
|
-
*/
|
|
333
|
-
simulate?: boolean;
|
|
334
|
-
}) => Promise<AssembledTransaction<null>>;
|
|
208
|
+
}, options?: MethodOptions) => Promise<AssembledTransaction<null>>;
|
|
335
209
|
/**
|
|
336
210
|
* Construct and simulate a set_admin_rnr 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.
|
|
337
211
|
*/
|
|
@@ -340,20 +214,7 @@ export interface Client {
|
|
|
340
214
|
pool_owner_liquidity_rate: u32;
|
|
341
215
|
ea_reward_rate: u32;
|
|
342
216
|
ea_liquidity_rate: u32;
|
|
343
|
-
}, options?:
|
|
344
|
-
/**
|
|
345
|
-
* The fee to pay for the transaction. Default: BASE_FEE
|
|
346
|
-
*/
|
|
347
|
-
fee?: number;
|
|
348
|
-
/**
|
|
349
|
-
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
350
|
-
*/
|
|
351
|
-
timeoutInSeconds?: number;
|
|
352
|
-
/**
|
|
353
|
-
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
354
|
-
*/
|
|
355
|
-
simulate?: boolean;
|
|
356
|
-
}) => Promise<AssembledTransaction<null>>;
|
|
217
|
+
}, options?: MethodOptions) => Promise<AssembledTransaction<null>>;
|
|
357
218
|
/**
|
|
358
219
|
* Construct and simulate a set_pool_settings 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.
|
|
359
220
|
*/
|
|
@@ -364,20 +225,7 @@ export interface Client {
|
|
|
364
225
|
late_payment_grace_period_days: u32;
|
|
365
226
|
default_grace_period_days: u32;
|
|
366
227
|
principal_only_payment_allowed: boolean;
|
|
367
|
-
}, options?:
|
|
368
|
-
/**
|
|
369
|
-
* The fee to pay for the transaction. Default: BASE_FEE
|
|
370
|
-
*/
|
|
371
|
-
fee?: number;
|
|
372
|
-
/**
|
|
373
|
-
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
374
|
-
*/
|
|
375
|
-
timeoutInSeconds?: number;
|
|
376
|
-
/**
|
|
377
|
-
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
378
|
-
*/
|
|
379
|
-
simulate?: boolean;
|
|
380
|
-
}) => Promise<AssembledTransaction<null>>;
|
|
228
|
+
}, options?: MethodOptions) => Promise<AssembledTransaction<null>>;
|
|
381
229
|
/**
|
|
382
230
|
* Construct and simulate a set_lp_config 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.
|
|
383
231
|
*/
|
|
@@ -388,20 +236,7 @@ export interface Client {
|
|
|
388
236
|
tranches_risk_adjustment_bps: u32;
|
|
389
237
|
withdrawal_lockout_period_days: u32;
|
|
390
238
|
auto_redemption_after_lockup: boolean;
|
|
391
|
-
}, options?:
|
|
392
|
-
/**
|
|
393
|
-
* The fee to pay for the transaction. Default: BASE_FEE
|
|
394
|
-
*/
|
|
395
|
-
fee?: number;
|
|
396
|
-
/**
|
|
397
|
-
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
398
|
-
*/
|
|
399
|
-
timeoutInSeconds?: number;
|
|
400
|
-
/**
|
|
401
|
-
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
402
|
-
*/
|
|
403
|
-
simulate?: boolean;
|
|
404
|
-
}) => Promise<AssembledTransaction<null>>;
|
|
239
|
+
}, options?: MethodOptions) => Promise<AssembledTransaction<null>>;
|
|
405
240
|
/**
|
|
406
241
|
* Construct and simulate a set_fee_structure 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.
|
|
407
242
|
*/
|
|
@@ -410,39 +245,13 @@ export interface Client {
|
|
|
410
245
|
late_fee_bps: u32;
|
|
411
246
|
front_loading_fee_flat: u128;
|
|
412
247
|
front_loading_fee_bps: u32;
|
|
413
|
-
}, options?:
|
|
414
|
-
/**
|
|
415
|
-
* The fee to pay for the transaction. Default: BASE_FEE
|
|
416
|
-
*/
|
|
417
|
-
fee?: number;
|
|
418
|
-
/**
|
|
419
|
-
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
420
|
-
*/
|
|
421
|
-
timeoutInSeconds?: number;
|
|
422
|
-
/**
|
|
423
|
-
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
424
|
-
*/
|
|
425
|
-
simulate?: boolean;
|
|
426
|
-
}) => Promise<AssembledTransaction<null>>;
|
|
248
|
+
}, options?: MethodOptions) => Promise<AssembledTransaction<null>>;
|
|
427
249
|
/**
|
|
428
250
|
* Construct and simulate a set_tranches_policy_type 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.
|
|
429
251
|
*/
|
|
430
252
|
set_tranches_policy_type: ({ policy_type }: {
|
|
431
253
|
policy_type: TranchesPolicyType;
|
|
432
|
-
}, options?:
|
|
433
|
-
/**
|
|
434
|
-
* The fee to pay for the transaction. Default: BASE_FEE
|
|
435
|
-
*/
|
|
436
|
-
fee?: number;
|
|
437
|
-
/**
|
|
438
|
-
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
439
|
-
*/
|
|
440
|
-
timeoutInSeconds?: number;
|
|
441
|
-
/**
|
|
442
|
-
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
443
|
-
*/
|
|
444
|
-
simulate?: boolean;
|
|
445
|
-
}) => Promise<AssembledTransaction<null>>;
|
|
254
|
+
}, options?: MethodOptions) => Promise<AssembledTransaction<null>>;
|
|
446
255
|
/**
|
|
447
256
|
* Construct and simulate a send_tokens 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.
|
|
448
257
|
*/
|
|
@@ -450,487 +259,136 @@ export interface Client {
|
|
|
450
259
|
to: string;
|
|
451
260
|
amount: u128;
|
|
452
261
|
caller: string;
|
|
453
|
-
}, options?:
|
|
454
|
-
/**
|
|
455
|
-
* The fee to pay for the transaction. Default: BASE_FEE
|
|
456
|
-
*/
|
|
457
|
-
fee?: number;
|
|
458
|
-
/**
|
|
459
|
-
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
460
|
-
*/
|
|
461
|
-
timeoutInSeconds?: number;
|
|
462
|
-
/**
|
|
463
|
-
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
464
|
-
*/
|
|
465
|
-
simulate?: boolean;
|
|
466
|
-
}) => Promise<AssembledTransaction<null>>;
|
|
262
|
+
}, options?: MethodOptions) => Promise<AssembledTransaction<null>>;
|
|
467
263
|
/**
|
|
468
264
|
* Construct and simulate a add_tranche_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.
|
|
469
265
|
*/
|
|
470
266
|
add_tranche_assets: ({ addr, amount }: {
|
|
471
267
|
addr: string;
|
|
472
268
|
amount: u128;
|
|
473
|
-
}, options?:
|
|
474
|
-
/**
|
|
475
|
-
* The fee to pay for the transaction. Default: BASE_FEE
|
|
476
|
-
*/
|
|
477
|
-
fee?: number;
|
|
478
|
-
/**
|
|
479
|
-
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
480
|
-
*/
|
|
481
|
-
timeoutInSeconds?: number;
|
|
482
|
-
/**
|
|
483
|
-
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
484
|
-
*/
|
|
485
|
-
simulate?: boolean;
|
|
486
|
-
}) => Promise<AssembledTransaction<null>>;
|
|
269
|
+
}, options?: MethodOptions) => Promise<AssembledTransaction<null>>;
|
|
487
270
|
/**
|
|
488
271
|
* Construct and simulate a reduce_tranche_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.
|
|
489
272
|
*/
|
|
490
273
|
reduce_tranche_assets: ({ addr, amount }: {
|
|
491
274
|
addr: string;
|
|
492
275
|
amount: u128;
|
|
493
|
-
}, options?:
|
|
494
|
-
/**
|
|
495
|
-
* The fee to pay for the transaction. Default: BASE_FEE
|
|
496
|
-
*/
|
|
497
|
-
fee?: number;
|
|
498
|
-
/**
|
|
499
|
-
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
500
|
-
*/
|
|
501
|
-
timeoutInSeconds?: number;
|
|
502
|
-
/**
|
|
503
|
-
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
504
|
-
*/
|
|
505
|
-
simulate?: boolean;
|
|
506
|
-
}) => Promise<AssembledTransaction<null>>;
|
|
276
|
+
}, options?: MethodOptions) => Promise<AssembledTransaction<null>>;
|
|
507
277
|
/**
|
|
508
278
|
* Construct and simulate a update_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.
|
|
509
279
|
*/
|
|
510
280
|
update_assets: ({ caller, tranche_assets }: {
|
|
511
281
|
caller: string;
|
|
512
282
|
tranche_assets: TrancheAssets;
|
|
513
|
-
}, options?:
|
|
514
|
-
/**
|
|
515
|
-
* The fee to pay for the transaction. Default: BASE_FEE
|
|
516
|
-
*/
|
|
517
|
-
fee?: number;
|
|
518
|
-
/**
|
|
519
|
-
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
520
|
-
*/
|
|
521
|
-
timeoutInSeconds?: number;
|
|
522
|
-
/**
|
|
523
|
-
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
524
|
-
*/
|
|
525
|
-
simulate?: boolean;
|
|
526
|
-
}) => Promise<AssembledTransaction<null>>;
|
|
283
|
+
}, options?: MethodOptions) => Promise<AssembledTransaction<null>>;
|
|
527
284
|
/**
|
|
528
285
|
* Construct and simulate a update_admin_fees_reserve 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.
|
|
529
286
|
*/
|
|
530
287
|
update_admin_fees_reserve: ({ amount, increase }: {
|
|
531
288
|
amount: u128;
|
|
532
289
|
increase: boolean;
|
|
533
|
-
}, options?:
|
|
534
|
-
/**
|
|
535
|
-
* The fee to pay for the transaction. Default: BASE_FEE
|
|
536
|
-
*/
|
|
537
|
-
fee?: number;
|
|
538
|
-
/**
|
|
539
|
-
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
540
|
-
*/
|
|
541
|
-
timeoutInSeconds?: number;
|
|
542
|
-
/**
|
|
543
|
-
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
544
|
-
*/
|
|
545
|
-
simulate?: boolean;
|
|
546
|
-
}) => Promise<AssembledTransaction<null>>;
|
|
290
|
+
}, options?: MethodOptions) => Promise<AssembledTransaction<null>>;
|
|
547
291
|
/**
|
|
548
292
|
* Construct and simulate a distribute_profit_to_tranches 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.
|
|
549
293
|
*/
|
|
550
294
|
distribute_profit_to_tranches: ({ profit, admin_fees }: {
|
|
551
295
|
profit: u128;
|
|
552
296
|
admin_fees: u128;
|
|
553
|
-
}, options?:
|
|
554
|
-
/**
|
|
555
|
-
* The fee to pay for the transaction. Default: BASE_FEE
|
|
556
|
-
*/
|
|
557
|
-
fee?: number;
|
|
558
|
-
/**
|
|
559
|
-
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
560
|
-
*/
|
|
561
|
-
timeoutInSeconds?: number;
|
|
562
|
-
/**
|
|
563
|
-
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
564
|
-
*/
|
|
565
|
-
simulate?: boolean;
|
|
566
|
-
}) => Promise<AssembledTransaction<TrancheAssets>>;
|
|
297
|
+
}, options?: MethodOptions) => Promise<AssembledTransaction<TrancheAssets>>;
|
|
567
298
|
/**
|
|
568
299
|
* Construct and simulate a refresh_yield_tracker 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.
|
|
569
300
|
*/
|
|
570
301
|
refresh_yield_tracker: ({ tranche_assets }: {
|
|
571
302
|
tranche_assets: TrancheAssets;
|
|
572
|
-
}, options?:
|
|
573
|
-
/**
|
|
574
|
-
* The fee to pay for the transaction. Default: BASE_FEE
|
|
575
|
-
*/
|
|
576
|
-
fee?: number;
|
|
577
|
-
/**
|
|
578
|
-
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
579
|
-
*/
|
|
580
|
-
timeoutInSeconds?: number;
|
|
581
|
-
/**
|
|
582
|
-
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
583
|
-
*/
|
|
584
|
-
simulate?: boolean;
|
|
585
|
-
}) => Promise<AssembledTransaction<null>>;
|
|
303
|
+
}, options?: MethodOptions) => Promise<AssembledTransaction<null>>;
|
|
586
304
|
/**
|
|
587
305
|
* 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.
|
|
588
306
|
*/
|
|
589
307
|
upgrade: ({ new_wasm_hash }: {
|
|
590
308
|
new_wasm_hash: Buffer;
|
|
591
|
-
}, options?:
|
|
592
|
-
/**
|
|
593
|
-
* The fee to pay for the transaction. Default: BASE_FEE
|
|
594
|
-
*/
|
|
595
|
-
fee?: number;
|
|
596
|
-
/**
|
|
597
|
-
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
598
|
-
*/
|
|
599
|
-
timeoutInSeconds?: number;
|
|
600
|
-
/**
|
|
601
|
-
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
602
|
-
*/
|
|
603
|
-
simulate?: boolean;
|
|
604
|
-
}) => Promise<AssembledTransaction<null>>;
|
|
309
|
+
}, options?: MethodOptions) => Promise<AssembledTransaction<null>>;
|
|
605
310
|
/**
|
|
606
311
|
* Construct and simulate a get_huma_owner 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.
|
|
607
312
|
*/
|
|
608
|
-
get_huma_owner: (options?:
|
|
609
|
-
/**
|
|
610
|
-
* The fee to pay for the transaction. Default: BASE_FEE
|
|
611
|
-
*/
|
|
612
|
-
fee?: number;
|
|
613
|
-
/**
|
|
614
|
-
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
615
|
-
*/
|
|
616
|
-
timeoutInSeconds?: number;
|
|
617
|
-
/**
|
|
618
|
-
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
619
|
-
*/
|
|
620
|
-
simulate?: boolean;
|
|
621
|
-
}) => Promise<AssembledTransaction<string>>;
|
|
313
|
+
get_huma_owner: (options?: MethodOptions) => Promise<AssembledTransaction<string>>;
|
|
622
314
|
/**
|
|
623
315
|
* Construct and simulate a get_pool_owner 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.
|
|
624
316
|
*/
|
|
625
|
-
get_pool_owner: (options?:
|
|
626
|
-
/**
|
|
627
|
-
* The fee to pay for the transaction. Default: BASE_FEE
|
|
628
|
-
*/
|
|
629
|
-
fee?: number;
|
|
630
|
-
/**
|
|
631
|
-
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
632
|
-
*/
|
|
633
|
-
timeoutInSeconds?: number;
|
|
634
|
-
/**
|
|
635
|
-
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
636
|
-
*/
|
|
637
|
-
simulate?: boolean;
|
|
638
|
-
}) => Promise<AssembledTransaction<string>>;
|
|
317
|
+
get_pool_owner: (options?: MethodOptions) => Promise<AssembledTransaction<string>>;
|
|
639
318
|
/**
|
|
640
319
|
* Construct and simulate a get_pool_owner_treasury 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.
|
|
641
320
|
*/
|
|
642
|
-
get_pool_owner_treasury: (options?:
|
|
643
|
-
/**
|
|
644
|
-
* The fee to pay for the transaction. Default: BASE_FEE
|
|
645
|
-
*/
|
|
646
|
-
fee?: number;
|
|
647
|
-
/**
|
|
648
|
-
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
649
|
-
*/
|
|
650
|
-
timeoutInSeconds?: number;
|
|
651
|
-
/**
|
|
652
|
-
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
653
|
-
*/
|
|
654
|
-
simulate?: boolean;
|
|
655
|
-
}) => Promise<AssembledTransaction<string>>;
|
|
321
|
+
get_pool_owner_treasury: (options?: MethodOptions) => Promise<AssembledTransaction<string>>;
|
|
656
322
|
/**
|
|
657
323
|
* Construct and simulate a get_evaluation_agent 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.
|
|
658
324
|
*/
|
|
659
|
-
get_evaluation_agent: (options?:
|
|
660
|
-
/**
|
|
661
|
-
* The fee to pay for the transaction. Default: BASE_FEE
|
|
662
|
-
*/
|
|
663
|
-
fee?: number;
|
|
664
|
-
/**
|
|
665
|
-
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
666
|
-
*/
|
|
667
|
-
timeoutInSeconds?: number;
|
|
668
|
-
/**
|
|
669
|
-
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
670
|
-
*/
|
|
671
|
-
simulate?: boolean;
|
|
672
|
-
}) => Promise<AssembledTransaction<string>>;
|
|
325
|
+
get_evaluation_agent: (options?: MethodOptions) => Promise<AssembledTransaction<string>>;
|
|
673
326
|
/**
|
|
674
327
|
* Construct and simulate a get_sentinel 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.
|
|
675
328
|
*/
|
|
676
|
-
get_sentinel: (options?:
|
|
677
|
-
/**
|
|
678
|
-
* The fee to pay for the transaction. Default: BASE_FEE
|
|
679
|
-
*/
|
|
680
|
-
fee?: number;
|
|
681
|
-
/**
|
|
682
|
-
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
683
|
-
*/
|
|
684
|
-
timeoutInSeconds?: number;
|
|
685
|
-
/**
|
|
686
|
-
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
687
|
-
*/
|
|
688
|
-
simulate?: boolean;
|
|
689
|
-
}) => Promise<AssembledTransaction<string>>;
|
|
329
|
+
get_sentinel: (options?: MethodOptions) => Promise<AssembledTransaction<string>>;
|
|
690
330
|
/**
|
|
691
331
|
* Construct and simulate a get_underlying_token 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.
|
|
692
332
|
*/
|
|
693
|
-
get_underlying_token: (options?:
|
|
694
|
-
/**
|
|
695
|
-
* The fee to pay for the transaction. Default: BASE_FEE
|
|
696
|
-
*/
|
|
697
|
-
fee?: number;
|
|
698
|
-
/**
|
|
699
|
-
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
700
|
-
*/
|
|
701
|
-
timeoutInSeconds?: number;
|
|
702
|
-
/**
|
|
703
|
-
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
704
|
-
*/
|
|
705
|
-
simulate?: boolean;
|
|
706
|
-
}) => Promise<AssembledTransaction<string>>;
|
|
333
|
+
get_underlying_token: (options?: MethodOptions) => Promise<AssembledTransaction<string>>;
|
|
707
334
|
/**
|
|
708
335
|
* Construct and simulate a get_available_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.
|
|
709
336
|
*/
|
|
710
|
-
get_available_balance: (options?:
|
|
711
|
-
/**
|
|
712
|
-
* The fee to pay for the transaction. Default: BASE_FEE
|
|
713
|
-
*/
|
|
714
|
-
fee?: number;
|
|
715
|
-
/**
|
|
716
|
-
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
717
|
-
*/
|
|
718
|
-
timeoutInSeconds?: number;
|
|
719
|
-
/**
|
|
720
|
-
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
721
|
-
*/
|
|
722
|
-
simulate?: boolean;
|
|
723
|
-
}) => Promise<AssembledTransaction<u128>>;
|
|
337
|
+
get_available_balance: (options?: MethodOptions) => Promise<AssembledTransaction<u128>>;
|
|
724
338
|
/**
|
|
725
339
|
* Construct and simulate a get_pool_status 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.
|
|
726
340
|
*/
|
|
727
|
-
get_pool_status: (options?:
|
|
728
|
-
/**
|
|
729
|
-
* The fee to pay for the transaction. Default: BASE_FEE
|
|
730
|
-
*/
|
|
731
|
-
fee?: number;
|
|
732
|
-
/**
|
|
733
|
-
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
734
|
-
*/
|
|
735
|
-
timeoutInSeconds?: number;
|
|
736
|
-
/**
|
|
737
|
-
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
738
|
-
*/
|
|
739
|
-
simulate?: boolean;
|
|
740
|
-
}) => Promise<AssembledTransaction<PoolStatus>>;
|
|
341
|
+
get_pool_status: (options?: MethodOptions) => Promise<AssembledTransaction<PoolStatus>>;
|
|
741
342
|
/**
|
|
742
343
|
* Construct and simulate a get_pool_settings 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.
|
|
743
344
|
*/
|
|
744
|
-
get_pool_settings: (options?:
|
|
745
|
-
/**
|
|
746
|
-
* The fee to pay for the transaction. Default: BASE_FEE
|
|
747
|
-
*/
|
|
748
|
-
fee?: number;
|
|
749
|
-
/**
|
|
750
|
-
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
751
|
-
*/
|
|
752
|
-
timeoutInSeconds?: number;
|
|
753
|
-
/**
|
|
754
|
-
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
755
|
-
*/
|
|
756
|
-
simulate?: boolean;
|
|
757
|
-
}) => Promise<AssembledTransaction<PoolSettings>>;
|
|
345
|
+
get_pool_settings: (options?: MethodOptions) => Promise<AssembledTransaction<PoolSettings>>;
|
|
758
346
|
/**
|
|
759
347
|
* Construct and simulate a get_lp_config 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.
|
|
760
348
|
*/
|
|
761
|
-
get_lp_config: (options?:
|
|
762
|
-
/**
|
|
763
|
-
* The fee to pay for the transaction. Default: BASE_FEE
|
|
764
|
-
*/
|
|
765
|
-
fee?: number;
|
|
766
|
-
/**
|
|
767
|
-
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
768
|
-
*/
|
|
769
|
-
timeoutInSeconds?: number;
|
|
770
|
-
/**
|
|
771
|
-
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
772
|
-
*/
|
|
773
|
-
simulate?: boolean;
|
|
774
|
-
}) => Promise<AssembledTransaction<LPConfig>>;
|
|
349
|
+
get_lp_config: (options?: MethodOptions) => Promise<AssembledTransaction<LPConfig>>;
|
|
775
350
|
/**
|
|
776
351
|
* Construct and simulate a get_fee_structure 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.
|
|
777
352
|
*/
|
|
778
|
-
get_fee_structure: (options?:
|
|
779
|
-
/**
|
|
780
|
-
* The fee to pay for the transaction. Default: BASE_FEE
|
|
781
|
-
*/
|
|
782
|
-
fee?: number;
|
|
783
|
-
/**
|
|
784
|
-
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
785
|
-
*/
|
|
786
|
-
timeoutInSeconds?: number;
|
|
787
|
-
/**
|
|
788
|
-
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
789
|
-
*/
|
|
790
|
-
simulate?: boolean;
|
|
791
|
-
}) => Promise<AssembledTransaction<FeeStructure>>;
|
|
353
|
+
get_fee_structure: (options?: MethodOptions) => Promise<AssembledTransaction<FeeStructure>>;
|
|
792
354
|
/**
|
|
793
355
|
* Construct and simulate a get_admin_rnr 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.
|
|
794
356
|
*/
|
|
795
|
-
get_admin_rnr: (options?:
|
|
796
|
-
/**
|
|
797
|
-
* The fee to pay for the transaction. Default: BASE_FEE
|
|
798
|
-
*/
|
|
799
|
-
fee?: number;
|
|
800
|
-
/**
|
|
801
|
-
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
802
|
-
*/
|
|
803
|
-
timeoutInSeconds?: number;
|
|
804
|
-
/**
|
|
805
|
-
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
806
|
-
*/
|
|
807
|
-
simulate?: boolean;
|
|
808
|
-
}) => Promise<AssembledTransaction<AdminRnR>>;
|
|
357
|
+
get_admin_rnr: (options?: MethodOptions) => Promise<AssembledTransaction<AdminRnR>>;
|
|
809
358
|
/**
|
|
810
359
|
* Construct and simulate a get_current_epoch 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.
|
|
811
360
|
*/
|
|
812
|
-
get_current_epoch: (options?:
|
|
813
|
-
/**
|
|
814
|
-
* The fee to pay for the transaction. Default: BASE_FEE
|
|
815
|
-
*/
|
|
816
|
-
fee?: number;
|
|
817
|
-
/**
|
|
818
|
-
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
819
|
-
*/
|
|
820
|
-
timeoutInSeconds?: number;
|
|
821
|
-
/**
|
|
822
|
-
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
823
|
-
*/
|
|
824
|
-
simulate?: boolean;
|
|
825
|
-
}) => Promise<AssembledTransaction<Epoch>>;
|
|
361
|
+
get_current_epoch: (options?: MethodOptions) => Promise<AssembledTransaction<Epoch>>;
|
|
826
362
|
/**
|
|
827
363
|
* Construct and simulate a get_tranche_assets_by_addr 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.
|
|
828
364
|
*/
|
|
829
365
|
get_tranche_assets_by_addr: ({ addr }: {
|
|
830
366
|
addr: string;
|
|
831
|
-
}, options?:
|
|
832
|
-
/**
|
|
833
|
-
* The fee to pay for the transaction. Default: BASE_FEE
|
|
834
|
-
*/
|
|
835
|
-
fee?: number;
|
|
836
|
-
/**
|
|
837
|
-
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
838
|
-
*/
|
|
839
|
-
timeoutInSeconds?: number;
|
|
840
|
-
/**
|
|
841
|
-
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
842
|
-
*/
|
|
843
|
-
simulate?: boolean;
|
|
844
|
-
}) => Promise<AssembledTransaction<u128>>;
|
|
367
|
+
}, options?: MethodOptions) => Promise<AssembledTransaction<u128>>;
|
|
845
368
|
/**
|
|
846
369
|
* Construct and simulate a get_tranche_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.
|
|
847
370
|
*/
|
|
848
|
-
get_tranche_assets: (options?:
|
|
849
|
-
/**
|
|
850
|
-
* The fee to pay for the transaction. Default: BASE_FEE
|
|
851
|
-
*/
|
|
852
|
-
fee?: number;
|
|
853
|
-
/**
|
|
854
|
-
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
855
|
-
*/
|
|
856
|
-
timeoutInSeconds?: number;
|
|
857
|
-
/**
|
|
858
|
-
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
859
|
-
*/
|
|
860
|
-
simulate?: boolean;
|
|
861
|
-
}) => Promise<AssembledTransaction<TrancheAssets>>;
|
|
371
|
+
get_tranche_assets: (options?: MethodOptions) => Promise<AssembledTransaction<TrancheAssets>>;
|
|
862
372
|
/**
|
|
863
373
|
* Construct and simulate a get_tranche_addresses 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.
|
|
864
374
|
*/
|
|
865
|
-
get_tranche_addresses: (options?:
|
|
866
|
-
/**
|
|
867
|
-
* The fee to pay for the transaction. Default: BASE_FEE
|
|
868
|
-
*/
|
|
869
|
-
fee?: number;
|
|
870
|
-
/**
|
|
871
|
-
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
872
|
-
*/
|
|
873
|
-
timeoutInSeconds?: number;
|
|
874
|
-
/**
|
|
875
|
-
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
876
|
-
*/
|
|
877
|
-
simulate?: boolean;
|
|
878
|
-
}) => Promise<AssembledTransaction<TrancheAddresses>>;
|
|
375
|
+
get_tranche_addresses: (options?: MethodOptions) => Promise<AssembledTransaction<TrancheAddresses>>;
|
|
879
376
|
/**
|
|
880
377
|
* Construct and simulate a is_pool_owner_or_huma_owner 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.
|
|
881
378
|
*/
|
|
882
379
|
is_pool_owner_or_huma_owner: ({ addr }: {
|
|
883
380
|
addr: string;
|
|
884
|
-
}, options?:
|
|
885
|
-
/**
|
|
886
|
-
* The fee to pay for the transaction. Default: BASE_FEE
|
|
887
|
-
*/
|
|
888
|
-
fee?: number;
|
|
889
|
-
/**
|
|
890
|
-
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
891
|
-
*/
|
|
892
|
-
timeoutInSeconds?: number;
|
|
893
|
-
/**
|
|
894
|
-
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
895
|
-
*/
|
|
896
|
-
simulate?: boolean;
|
|
897
|
-
}) => Promise<AssembledTransaction<boolean>>;
|
|
381
|
+
}, options?: MethodOptions) => Promise<AssembledTransaction<boolean>>;
|
|
898
382
|
/**
|
|
899
383
|
* Construct and simulate a is_pool_operator 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.
|
|
900
384
|
*/
|
|
901
385
|
is_pool_operator: ({ addr }: {
|
|
902
386
|
addr: string;
|
|
903
|
-
}, options?:
|
|
904
|
-
/**
|
|
905
|
-
* The fee to pay for the transaction. Default: BASE_FEE
|
|
906
|
-
*/
|
|
907
|
-
fee?: number;
|
|
908
|
-
/**
|
|
909
|
-
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
910
|
-
*/
|
|
911
|
-
timeoutInSeconds?: number;
|
|
912
|
-
/**
|
|
913
|
-
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
914
|
-
*/
|
|
915
|
-
simulate?: boolean;
|
|
916
|
-
}) => Promise<AssembledTransaction<boolean>>;
|
|
387
|
+
}, options?: MethodOptions) => Promise<AssembledTransaction<boolean>>;
|
|
917
388
|
/**
|
|
918
389
|
* Construct and simulate a is_protocol_and_pool_on 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.
|
|
919
390
|
*/
|
|
920
|
-
is_protocol_and_pool_on: (options?:
|
|
921
|
-
/**
|
|
922
|
-
* The fee to pay for the transaction. Default: BASE_FEE
|
|
923
|
-
*/
|
|
924
|
-
fee?: number;
|
|
925
|
-
/**
|
|
926
|
-
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
927
|
-
*/
|
|
928
|
-
timeoutInSeconds?: number;
|
|
929
|
-
/**
|
|
930
|
-
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
931
|
-
*/
|
|
932
|
-
simulate?: boolean;
|
|
933
|
-
}) => Promise<AssembledTransaction<boolean>>;
|
|
391
|
+
is_protocol_and_pool_on: (options?: MethodOptions) => Promise<AssembledTransaction<boolean>>;
|
|
934
392
|
/**
|
|
935
393
|
* Construct and simulate a check_liquidity_requirements 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.
|
|
936
394
|
*/
|
|
@@ -938,101 +396,46 @@ export interface Client {
|
|
|
938
396
|
lender: string;
|
|
939
397
|
tranche_vault: string;
|
|
940
398
|
balance: u128;
|
|
941
|
-
}, options?:
|
|
942
|
-
/**
|
|
943
|
-
* The fee to pay for the transaction. Default: BASE_FEE
|
|
944
|
-
*/
|
|
945
|
-
fee?: number;
|
|
946
|
-
/**
|
|
947
|
-
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
948
|
-
*/
|
|
949
|
-
timeoutInSeconds?: number;
|
|
950
|
-
/**
|
|
951
|
-
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
952
|
-
*/
|
|
953
|
-
simulate?: boolean;
|
|
954
|
-
}) => Promise<AssembledTransaction<null>>;
|
|
399
|
+
}, options?: MethodOptions) => Promise<AssembledTransaction<null>>;
|
|
955
400
|
/**
|
|
956
401
|
* Construct and simulate a check_pool_owner_liquidity_req 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.
|
|
957
402
|
*/
|
|
958
403
|
check_pool_owner_liquidity_req: ({ tranche_vault, balance }: {
|
|
959
404
|
tranche_vault: string;
|
|
960
405
|
balance: u128;
|
|
961
|
-
}, options?:
|
|
962
|
-
/**
|
|
963
|
-
* The fee to pay for the transaction. Default: BASE_FEE
|
|
964
|
-
*/
|
|
965
|
-
fee?: number;
|
|
966
|
-
/**
|
|
967
|
-
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
968
|
-
*/
|
|
969
|
-
timeoutInSeconds?: number;
|
|
970
|
-
/**
|
|
971
|
-
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
972
|
-
*/
|
|
973
|
-
simulate?: boolean;
|
|
974
|
-
}) => Promise<AssembledTransaction<null>>;
|
|
406
|
+
}, options?: MethodOptions) => Promise<AssembledTransaction<null>>;
|
|
975
407
|
/**
|
|
976
408
|
* Construct and simulate a check_ea_liquidity_req 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.
|
|
977
409
|
*/
|
|
978
410
|
check_ea_liquidity_req: ({ tranche_vault, balance }: {
|
|
979
411
|
tranche_vault: string;
|
|
980
412
|
balance: u128;
|
|
981
|
-
}, options?:
|
|
982
|
-
/**
|
|
983
|
-
* The fee to pay for the transaction. Default: BASE_FEE
|
|
984
|
-
*/
|
|
985
|
-
fee?: number;
|
|
986
|
-
/**
|
|
987
|
-
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
988
|
-
*/
|
|
989
|
-
timeoutInSeconds?: number;
|
|
990
|
-
/**
|
|
991
|
-
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
992
|
-
*/
|
|
993
|
-
simulate?: boolean;
|
|
994
|
-
}) => Promise<AssembledTransaction<null>>;
|
|
413
|
+
}, options?: MethodOptions) => Promise<AssembledTransaction<null>>;
|
|
995
414
|
/**
|
|
996
415
|
* Construct and simulate a get_pool_owner_min_liquidity_req 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.
|
|
997
416
|
*/
|
|
998
417
|
get_pool_owner_min_liquidity_req: ({ index }: {
|
|
999
418
|
index: u32;
|
|
1000
|
-
}, options?:
|
|
1001
|
-
/**
|
|
1002
|
-
* The fee to pay for the transaction. Default: BASE_FEE
|
|
1003
|
-
*/
|
|
1004
|
-
fee?: number;
|
|
1005
|
-
/**
|
|
1006
|
-
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
1007
|
-
*/
|
|
1008
|
-
timeoutInSeconds?: number;
|
|
1009
|
-
/**
|
|
1010
|
-
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
1011
|
-
*/
|
|
1012
|
-
simulate?: boolean;
|
|
1013
|
-
}) => Promise<AssembledTransaction<u128>>;
|
|
419
|
+
}, options?: MethodOptions) => Promise<AssembledTransaction<u128>>;
|
|
1014
420
|
/**
|
|
1015
421
|
* Construct and simulate a get_ea_min_liquidity_req 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.
|
|
1016
422
|
*/
|
|
1017
423
|
get_ea_min_liquidity_req: ({ index }: {
|
|
1018
424
|
index: u32;
|
|
1019
|
-
}, options?:
|
|
1020
|
-
/**
|
|
1021
|
-
* The fee to pay for the transaction. Default: BASE_FEE
|
|
1022
|
-
*/
|
|
1023
|
-
fee?: number;
|
|
1024
|
-
/**
|
|
1025
|
-
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
1026
|
-
*/
|
|
1027
|
-
timeoutInSeconds?: number;
|
|
1028
|
-
/**
|
|
1029
|
-
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
1030
|
-
*/
|
|
1031
|
-
simulate?: boolean;
|
|
1032
|
-
}) => Promise<AssembledTransaction<u128>>;
|
|
425
|
+
}, options?: MethodOptions) => Promise<AssembledTransaction<u128>>;
|
|
1033
426
|
}
|
|
1034
427
|
export declare class Client extends ContractClient {
|
|
1035
428
|
readonly options: ContractClientOptions;
|
|
429
|
+
static deploy<T = Client>(
|
|
430
|
+
/** Options for initializing a Client as well as for calling a method, with extras specific to deploying. */
|
|
431
|
+
options: MethodOptions & Omit<ContractClientOptions, "contractId"> & {
|
|
432
|
+
/** The hash of the Wasm blob, which must already be installed on-chain. */
|
|
433
|
+
wasmHash: Buffer | string;
|
|
434
|
+
/** Salt used to generate the contract's ID. Passed through to {@link Operation.createCustomContract}. Default: random. */
|
|
435
|
+
salt?: Buffer | Uint8Array;
|
|
436
|
+
/** The format used to decode `wasmHash`, if it's provided as a string. */
|
|
437
|
+
format?: "hex" | "base64";
|
|
438
|
+
}): Promise<AssembledTransaction<T>>;
|
|
1036
439
|
constructor(options: ContractClientOptions);
|
|
1037
440
|
readonly fromJSON: {
|
|
1038
441
|
initialize: (json: string) => AssembledTransaction<null>;
|