@huma-finance/soroban-pool-manager 0.0.11-beta.17 → 0.0.15-beta.20

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.
@@ -0,0 +1,786 @@
1
+ /// <reference types="node" />
2
+ import { Buffer } from "buffer";
3
+ import { AssembledTransaction, ContractClient, ContractClientOptions } from "@stellar/stellar-sdk/lib/contract_client/index.js";
4
+ import type { u32, u64, u128, Option } from "@stellar/stellar-sdk/lib/contract_client";
5
+ export * from "@stellar/stellar-sdk";
6
+ export * from "@stellar/stellar-sdk/lib/contract_client/index.js";
7
+ export * from "@stellar/stellar-sdk/lib/rust_types/index.js";
8
+ export declare const networks: {
9
+ readonly testnet: {
10
+ readonly networkPassphrase: "Test SDF Network ; September 2015";
11
+ readonly contractId: "CDPNNXOD6LVIXD2VYAH6CKQ6TPQYDITGJ4END7LFLR7OIZNHLCWLF347";
12
+ };
13
+ };
14
+ export type ClientDataKey = {
15
+ tag: "HumaConfig";
16
+ values: void;
17
+ } | {
18
+ tag: "PoolStorage";
19
+ values: void;
20
+ } | {
21
+ tag: "Pool";
22
+ values: void;
23
+ };
24
+ export interface PoolManagerAddressesChangedEvent {
25
+ pool: string;
26
+ pool_storage: string;
27
+ }
28
+ export interface PoolStorageAddressesChangedEvent {
29
+ credit: string;
30
+ pool: string;
31
+ pool_manager: string;
32
+ }
33
+ export interface PoolOperatorAddedEvent {
34
+ operator: string;
35
+ }
36
+ export interface PoolOperatorRemovedEvent {
37
+ operator: string;
38
+ }
39
+ export interface HumaConfigChangedEvent {
40
+ huma_config: string;
41
+ huma_owner: string;
42
+ is_protocol_on: boolean;
43
+ sentinel: string;
44
+ }
45
+ export interface TrancheAddressesChangedEvent {
46
+ junior_addr: string;
47
+ senior_addr: string;
48
+ }
49
+ /**
50
+ * Event indicating that a new epoch has started.
51
+ * # Fields:
52
+ * * `epoch_id` - The ID of the epoch that just started.
53
+ * * `end_time` - The time when the current epoch should end.
54
+ */
55
+ export interface NewEpochStartedEvent {
56
+ end_time: u64;
57
+ epoch_id: u64;
58
+ }
59
+ /**
60
+ * Event indicating that the current epoch has closed.
61
+ * # Fields:
62
+ * * `epoch_id` - The ID of the epoch that just closed.
63
+ */
64
+ export interface EpochClosedEvent {
65
+ epoch_id: u64;
66
+ }
67
+ /**
68
+ * Event indicating that the epoch has been processed after the pool is closed.
69
+ * # Fields:
70
+ * * `epoch_id` - The ID of the epoch that has been processed.
71
+ */
72
+ export interface EpochProcessedAfterPoolClosureEvent {
73
+ epoch_id: u64;
74
+ }
75
+ /**
76
+ * Event indicating that pending redemption requests have been processed.
77
+ * # Fields:
78
+ * * `senior_tranche_assets` - The total amount of assets in the senior tranche.
79
+ * * `senior_tranche_price` - The LP token price of the senior tranche.
80
+ * * `junior_tranche_assets` - The total amount of assets in the junior tranche.
81
+ * * `junior_tranche_price` - The LP token price of the junior tranche.
82
+ * * `unprocessed_amount` - The amount of assets requested for redemption but not fulfilled.
83
+ */
84
+ export interface RedemptionRequestsProcessedEvent {
85
+ junior_tranche_assets: u128;
86
+ junior_tranche_price: u128;
87
+ senior_tranche_assets: u128;
88
+ senior_tranche_price: u128;
89
+ unprocessed_amount: u128;
90
+ }
91
+ export declare const Errors: {
92
+ 301: {
93
+ message: string;
94
+ };
95
+ 302: {
96
+ message: string;
97
+ };
98
+ 303: {
99
+ message: string;
100
+ };
101
+ 304: {
102
+ message: string;
103
+ };
104
+ 305: {
105
+ message: string;
106
+ };
107
+ 306: {
108
+ message: string;
109
+ };
110
+ 307: {
111
+ message: string;
112
+ };
113
+ 308: {
114
+ message: string;
115
+ };
116
+ 309: {
117
+ message: string;
118
+ };
119
+ };
120
+ /**
121
+ * Event indicating that the pool has been enabled.
122
+ * # Fields:
123
+ * * `by` - The address that enabled the pool.
124
+ */
125
+ export interface PoolEnabledEvent {
126
+ by: string;
127
+ }
128
+ /**
129
+ * Event indicating that the pool has been disabled.
130
+ * # Fields:
131
+ * * `by` - The address that disabled the pool.
132
+ */
133
+ export interface PoolDisabledEvent {
134
+ by: string;
135
+ }
136
+ /**
137
+ * Event indicating that the pool has been closed.
138
+ * # Fields:
139
+ * * `by` - The address that closed the pool.
140
+ */
141
+ export interface PoolClosedEvent {
142
+ by: string;
143
+ }
144
+ export interface PoolOwnerChangedEvent {
145
+ pool_owner: string;
146
+ }
147
+ export interface PoolOwnerTreasuryChangedEvent {
148
+ treasury: string;
149
+ }
150
+ export interface EvaluationAgentChangedEvent {
151
+ ea: string;
152
+ }
153
+ export interface TranchesPolicyTypeChangedEvent {
154
+ policy_type: TranchesPolicyType;
155
+ }
156
+ export interface PoolSettingsChangedEvent {
157
+ default_grace_period_days: u32;
158
+ late_payment_grace_period_days: u32;
159
+ max_credit_line: u128;
160
+ min_deposit_amount: u128;
161
+ pay_period_duration: PayPeriodDuration;
162
+ principal_only_payment_allowed: boolean;
163
+ }
164
+ export interface LPConfigChangedEvent {
165
+ fixed_senior_yield_bps: u32;
166
+ liquidity_cap: u128;
167
+ max_senior_junior_ratio: u32;
168
+ tranches_risk_adjustment_bps: u32;
169
+ withdrawal_lockout_period_days: u32;
170
+ }
171
+ export interface FeeStructureChangedEvent {
172
+ front_loading_fee_bps: u32;
173
+ front_loading_fee_flat: u128;
174
+ late_fee_bps: u32;
175
+ yield_bps: u32;
176
+ }
177
+ export interface AdminRnRChangedEvent {
178
+ ea_liquidity_rate: u32;
179
+ ea_reward_rate: u32;
180
+ pool_owner_liquidity_rate: u32;
181
+ pool_owner_reward_rate: u32;
182
+ }
183
+ export interface PoolNameChangedEvent {
184
+ name: string;
185
+ }
186
+ export interface ProtocolRewardsWithdrawnEvent {
187
+ amount: u128;
188
+ receiver: string;
189
+ }
190
+ export interface PoolRewardsWithdrawnEvent {
191
+ amount: u128;
192
+ receiver: string;
193
+ }
194
+ export interface EvaluationAgentRewardsWithdrawnEvent {
195
+ amount: u128;
196
+ receiver: string;
197
+ }
198
+ export type PayPeriodDuration = {
199
+ tag: "Monthly";
200
+ values: void;
201
+ } | {
202
+ tag: "Quarterly";
203
+ values: void;
204
+ } | {
205
+ tag: "SemiAnnually";
206
+ values: void;
207
+ };
208
+ export type TranchesPolicyType = {
209
+ tag: "FixedSeniorYield";
210
+ values: void;
211
+ } | {
212
+ tag: "RiskAdjusted";
213
+ values: void;
214
+ };
215
+ export interface PoolSettings {
216
+ default_grace_period_days: u32;
217
+ late_payment_grace_period_days: u32;
218
+ max_credit_line: u128;
219
+ min_deposit_amount: u128;
220
+ pay_period_duration: PayPeriodDuration;
221
+ principal_only_payment_allowed: boolean;
222
+ }
223
+ export interface LPConfig {
224
+ fixed_senior_yield_bps: u32;
225
+ liquidity_cap: u128;
226
+ max_senior_junior_ratio: u32;
227
+ tranches_risk_adjustment_bps: u32;
228
+ withdrawal_lockout_period_days: u32;
229
+ }
230
+ export interface FeeStructure {
231
+ front_loading_fee_bps: u32;
232
+ front_loading_fee_flat: u128;
233
+ late_fee_bps: u32;
234
+ yield_bps: u32;
235
+ }
236
+ export type PoolStatus = {
237
+ tag: "Off";
238
+ values: void;
239
+ } | {
240
+ tag: "On";
241
+ values: void;
242
+ } | {
243
+ tag: "Closed";
244
+ values: void;
245
+ };
246
+ export interface Epoch {
247
+ end_time: u64;
248
+ id: u64;
249
+ }
250
+ export interface AdminRnR {
251
+ liquidity_rate_bps_ea: u32;
252
+ liquidity_rate_bps_pool_owner: u32;
253
+ reward_rate_bps_ea: u32;
254
+ reward_rate_bps_pool_owner: u32;
255
+ }
256
+ export interface TrancheAddresses {
257
+ addrs: Array<Option<string>>;
258
+ }
259
+ export interface TrancheAssets {
260
+ assets: Array<u128>;
261
+ }
262
+ export interface EpochRedemptionSummary {
263
+ epoch_id: u64;
264
+ total_amount_processed: u128;
265
+ total_shares_processed: u128;
266
+ total_shares_requested: u128;
267
+ }
268
+ export interface Client {
269
+ /**
270
+ * Construct and simulate a initialize 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.
271
+ */
272
+ initialize: ({ pool_name, huma_config, pool_storage, pool, }: {
273
+ pool_name: string;
274
+ huma_config: string;
275
+ pool_storage: string;
276
+ pool: string;
277
+ }, options?: {
278
+ /**
279
+ * The fee to pay for the transaction. Default: BASE_FEE
280
+ */
281
+ fee?: number;
282
+ /**
283
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
284
+ */
285
+ timeoutInSeconds?: number;
286
+ /**
287
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
288
+ */
289
+ simulate?: boolean;
290
+ }) => Promise<AssembledTransaction<null>>;
291
+ /**
292
+ * 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.
293
+ */
294
+ set_huma_config: ({ huma_config }: {
295
+ huma_config: string;
296
+ }, options?: {
297
+ /**
298
+ * The fee to pay for the transaction. Default: BASE_FEE
299
+ */
300
+ fee?: number;
301
+ /**
302
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
303
+ */
304
+ timeoutInSeconds?: number;
305
+ /**
306
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
307
+ */
308
+ simulate?: boolean;
309
+ }) => Promise<AssembledTransaction<null>>;
310
+ /**
311
+ * 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.
312
+ */
313
+ set_contract_addrs: ({ pool_storage, pool }: {
314
+ pool_storage: string;
315
+ pool: string;
316
+ }, options?: {
317
+ /**
318
+ * The fee to pay for the transaction. Default: BASE_FEE
319
+ */
320
+ fee?: number;
321
+ /**
322
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
323
+ */
324
+ timeoutInSeconds?: number;
325
+ /**
326
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
327
+ */
328
+ simulate?: boolean;
329
+ }) => Promise<AssembledTransaction<null>>;
330
+ /**
331
+ * Construct and simulate a set_storage_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.
332
+ */
333
+ set_storage_contract_addrs: ({ pool, pool_manager, credit, }: {
334
+ pool: string;
335
+ pool_manager: string;
336
+ credit: string;
337
+ }, options?: {
338
+ /**
339
+ * The fee to pay for the transaction. Default: BASE_FEE
340
+ */
341
+ fee?: number;
342
+ /**
343
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
344
+ */
345
+ timeoutInSeconds?: number;
346
+ /**
347
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
348
+ */
349
+ simulate?: boolean;
350
+ }) => Promise<AssembledTransaction<null>>;
351
+ /**
352
+ * Construct and simulate a set_pool_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.
353
+ */
354
+ set_pool_name: ({ caller, name }: {
355
+ caller: string;
356
+ name: string;
357
+ }, options?: {
358
+ /**
359
+ * The fee to pay for the transaction. Default: BASE_FEE
360
+ */
361
+ fee?: number;
362
+ /**
363
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
364
+ */
365
+ timeoutInSeconds?: number;
366
+ /**
367
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
368
+ */
369
+ simulate?: boolean;
370
+ }) => Promise<AssembledTransaction<null>>;
371
+ /**
372
+ * 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.
373
+ */
374
+ set_pool_owner: ({ caller, addr }: {
375
+ caller: string;
376
+ addr: string;
377
+ }, options?: {
378
+ /**
379
+ * The fee to pay for the transaction. Default: BASE_FEE
380
+ */
381
+ fee?: number;
382
+ /**
383
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
384
+ */
385
+ timeoutInSeconds?: number;
386
+ /**
387
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
388
+ */
389
+ simulate?: boolean;
390
+ }) => Promise<AssembledTransaction<null>>;
391
+ /**
392
+ * 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.
393
+ */
394
+ set_pool_owner_treasury: ({ caller, addr }: {
395
+ caller: string;
396
+ addr: string;
397
+ }, options?: {
398
+ /**
399
+ * The fee to pay for the transaction. Default: BASE_FEE
400
+ */
401
+ fee?: number;
402
+ /**
403
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
404
+ */
405
+ timeoutInSeconds?: number;
406
+ /**
407
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
408
+ */
409
+ simulate?: boolean;
410
+ }) => Promise<AssembledTransaction<null>>;
411
+ /**
412
+ * 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.
413
+ */
414
+ set_evaluation_agent: ({ caller, addr }: {
415
+ caller: string;
416
+ addr: string;
417
+ }, options?: {
418
+ /**
419
+ * The fee to pay for the transaction. Default: BASE_FEE
420
+ */
421
+ fee?: number;
422
+ /**
423
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
424
+ */
425
+ timeoutInSeconds?: number;
426
+ /**
427
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
428
+ */
429
+ simulate?: boolean;
430
+ }) => Promise<AssembledTransaction<null>>;
431
+ /**
432
+ * 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.
433
+ */
434
+ set_tranche_addresses: ({ caller, junior_addr, senior_addr, }: {
435
+ caller: string;
436
+ junior_addr: string;
437
+ senior_addr: Option<string>;
438
+ }, options?: {
439
+ /**
440
+ * The fee to pay for the transaction. Default: BASE_FEE
441
+ */
442
+ fee?: number;
443
+ /**
444
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
445
+ */
446
+ timeoutInSeconds?: number;
447
+ /**
448
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
449
+ */
450
+ simulate?: boolean;
451
+ }) => Promise<AssembledTransaction<null>>;
452
+ /**
453
+ * 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.
454
+ */
455
+ set_admin_rnr: ({ caller, pool_owner_reward_rate, pool_owner_liquidity_rate, ea_reward_rate, ea_liquidity_rate, }: {
456
+ caller: string;
457
+ pool_owner_reward_rate: u32;
458
+ pool_owner_liquidity_rate: u32;
459
+ ea_reward_rate: u32;
460
+ ea_liquidity_rate: u32;
461
+ }, options?: {
462
+ /**
463
+ * The fee to pay for the transaction. Default: BASE_FEE
464
+ */
465
+ fee?: number;
466
+ /**
467
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
468
+ */
469
+ timeoutInSeconds?: number;
470
+ /**
471
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
472
+ */
473
+ simulate?: boolean;
474
+ }) => Promise<AssembledTransaction<null>>;
475
+ /**
476
+ * 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.
477
+ */
478
+ set_pool_settings: ({ caller, max_credit_line, min_deposit_amount, pay_period_duration, late_payment_grace_period_days, default_grace_period_days, principal_only_payment_allowed, }: {
479
+ caller: string;
480
+ max_credit_line: u128;
481
+ min_deposit_amount: u128;
482
+ pay_period_duration: PayPeriodDuration;
483
+ late_payment_grace_period_days: u32;
484
+ default_grace_period_days: u32;
485
+ principal_only_payment_allowed: boolean;
486
+ }, options?: {
487
+ /**
488
+ * The fee to pay for the transaction. Default: BASE_FEE
489
+ */
490
+ fee?: number;
491
+ /**
492
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
493
+ */
494
+ timeoutInSeconds?: number;
495
+ /**
496
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
497
+ */
498
+ simulate?: boolean;
499
+ }) => Promise<AssembledTransaction<null>>;
500
+ /**
501
+ * 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.
502
+ */
503
+ set_lp_config: ({ caller, liquidity_cap, max_senior_junior_ratio, fixed_senior_yield_bps, tranches_risk_adjustment_bps, withdrawal_lockout_period_days, }: {
504
+ caller: string;
505
+ liquidity_cap: u128;
506
+ max_senior_junior_ratio: u32;
507
+ fixed_senior_yield_bps: u32;
508
+ tranches_risk_adjustment_bps: u32;
509
+ withdrawal_lockout_period_days: u32;
510
+ }, options?: {
511
+ /**
512
+ * The fee to pay for the transaction. Default: BASE_FEE
513
+ */
514
+ fee?: number;
515
+ /**
516
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
517
+ */
518
+ timeoutInSeconds?: number;
519
+ /**
520
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
521
+ */
522
+ simulate?: boolean;
523
+ }) => Promise<AssembledTransaction<null>>;
524
+ /**
525
+ * 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.
526
+ */
527
+ set_fee_structure: ({ caller, yield_bps, late_fee_bps, front_loading_fee_flat, front_loading_fee_bps, }: {
528
+ caller: string;
529
+ yield_bps: u32;
530
+ late_fee_bps: u32;
531
+ front_loading_fee_flat: u128;
532
+ front_loading_fee_bps: u32;
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>>;
547
+ /**
548
+ * 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.
549
+ */
550
+ set_tranches_policy_type: ({ caller, policy_type, }: {
551
+ caller: string;
552
+ policy_type: TranchesPolicyType;
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<null>>;
567
+ /**
568
+ * Construct and simulate a add_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.
569
+ */
570
+ add_pool_operator: ({ addr }: {
571
+ addr: string;
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>>;
586
+ /**
587
+ * Construct and simulate a remove_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.
588
+ */
589
+ remove_pool_operator: ({ addr }: {
590
+ addr: string;
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>>;
605
+ /**
606
+ * Construct and simulate a enable_pool 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
+ */
608
+ enable_pool: ({ caller }: {
609
+ caller: string;
610
+ }, options?: {
611
+ /**
612
+ * The fee to pay for the transaction. Default: BASE_FEE
613
+ */
614
+ fee?: number;
615
+ /**
616
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
617
+ */
618
+ timeoutInSeconds?: number;
619
+ /**
620
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
621
+ */
622
+ simulate?: boolean;
623
+ }) => Promise<AssembledTransaction<null>>;
624
+ /**
625
+ * Construct and simulate a disable_pool 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.
626
+ */
627
+ disable_pool: ({ caller }: {
628
+ caller: string;
629
+ }, options?: {
630
+ /**
631
+ * The fee to pay for the transaction. Default: BASE_FEE
632
+ */
633
+ fee?: number;
634
+ /**
635
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
636
+ */
637
+ timeoutInSeconds?: number;
638
+ /**
639
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
640
+ */
641
+ simulate?: boolean;
642
+ }) => Promise<AssembledTransaction<null>>;
643
+ /**
644
+ * Construct and simulate a close_pool 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.
645
+ */
646
+ close_pool: ({ caller }: {
647
+ caller: string;
648
+ }, options?: {
649
+ /**
650
+ * The fee to pay for the transaction. Default: BASE_FEE
651
+ */
652
+ fee?: number;
653
+ /**
654
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
655
+ */
656
+ timeoutInSeconds?: number;
657
+ /**
658
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
659
+ */
660
+ simulate?: boolean;
661
+ }) => Promise<AssembledTransaction<null>>;
662
+ /**
663
+ * Construct and simulate a close_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.
664
+ */
665
+ close_epoch: (options?: {
666
+ /**
667
+ * The fee to pay for the transaction. Default: BASE_FEE
668
+ */
669
+ fee?: number;
670
+ /**
671
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
672
+ */
673
+ timeoutInSeconds?: number;
674
+ /**
675
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
676
+ */
677
+ simulate?: boolean;
678
+ }) => Promise<AssembledTransaction<null>>;
679
+ /**
680
+ * Construct and simulate a withdraw_protocol_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.
681
+ */
682
+ withdraw_protocol_fees: ({ amount }: {
683
+ amount: u128;
684
+ }, options?: {
685
+ /**
686
+ * The fee to pay for the transaction. Default: BASE_FEE
687
+ */
688
+ fee?: number;
689
+ /**
690
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
691
+ */
692
+ timeoutInSeconds?: number;
693
+ /**
694
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
695
+ */
696
+ simulate?: boolean;
697
+ }) => Promise<AssembledTransaction<null>>;
698
+ /**
699
+ * Construct and simulate a withdraw_pool_owner_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.
700
+ */
701
+ withdraw_pool_owner_fees: ({ amount }: {
702
+ amount: u128;
703
+ }, options?: {
704
+ /**
705
+ * The fee to pay for the transaction. Default: BASE_FEE
706
+ */
707
+ fee?: number;
708
+ /**
709
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
710
+ */
711
+ timeoutInSeconds?: number;
712
+ /**
713
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
714
+ */
715
+ simulate?: boolean;
716
+ }) => Promise<AssembledTransaction<null>>;
717
+ /**
718
+ * Construct and simulate a withdraw_ea_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.
719
+ */
720
+ withdraw_ea_fees: ({ caller, amount }: {
721
+ caller: string;
722
+ amount: u128;
723
+ }, options?: {
724
+ /**
725
+ * The fee to pay for the transaction. Default: BASE_FEE
726
+ */
727
+ fee?: number;
728
+ /**
729
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
730
+ */
731
+ timeoutInSeconds?: number;
732
+ /**
733
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
734
+ */
735
+ simulate?: boolean;
736
+ }) => Promise<AssembledTransaction<null>>;
737
+ /**
738
+ * 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.
739
+ */
740
+ upgrade: ({ new_wasm_hash }: {
741
+ new_wasm_hash: Buffer;
742
+ }, options?: {
743
+ /**
744
+ * The fee to pay for the transaction. Default: BASE_FEE
745
+ */
746
+ fee?: number;
747
+ /**
748
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
749
+ */
750
+ timeoutInSeconds?: number;
751
+ /**
752
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
753
+ */
754
+ simulate?: boolean;
755
+ }) => Promise<AssembledTransaction<null>>;
756
+ }
757
+ export declare class Client extends ContractClient {
758
+ readonly options: ContractClientOptions;
759
+ constructor(options: ContractClientOptions);
760
+ readonly fromJSON: {
761
+ initialize: (json: string) => AssembledTransaction<null>;
762
+ set_huma_config: (json: string) => AssembledTransaction<null>;
763
+ set_contract_addrs: (json: string) => AssembledTransaction<null>;
764
+ set_storage_contract_addrs: (json: string) => AssembledTransaction<null>;
765
+ set_pool_name: (json: string) => AssembledTransaction<null>;
766
+ set_pool_owner: (json: string) => AssembledTransaction<null>;
767
+ set_pool_owner_treasury: (json: string) => AssembledTransaction<null>;
768
+ set_evaluation_agent: (json: string) => AssembledTransaction<null>;
769
+ set_tranche_addresses: (json: string) => AssembledTransaction<null>;
770
+ set_admin_rnr: (json: string) => AssembledTransaction<null>;
771
+ set_pool_settings: (json: string) => AssembledTransaction<null>;
772
+ set_lp_config: (json: string) => AssembledTransaction<null>;
773
+ set_fee_structure: (json: string) => AssembledTransaction<null>;
774
+ set_tranches_policy_type: (json: string) => AssembledTransaction<null>;
775
+ add_pool_operator: (json: string) => AssembledTransaction<null>;
776
+ remove_pool_operator: (json: string) => AssembledTransaction<null>;
777
+ enable_pool: (json: string) => AssembledTransaction<null>;
778
+ disable_pool: (json: string) => AssembledTransaction<null>;
779
+ close_pool: (json: string) => AssembledTransaction<null>;
780
+ close_epoch: (json: string) => AssembledTransaction<null>;
781
+ withdraw_protocol_fees: (json: string) => AssembledTransaction<null>;
782
+ withdraw_pool_owner_fees: (json: string) => AssembledTransaction<null>;
783
+ withdraw_ea_fees: (json: string) => AssembledTransaction<null>;
784
+ upgrade: (json: string) => AssembledTransaction<null>;
785
+ };
786
+ }