@huma-finance/soroban-pool-storage 0.0.8-beta.2 → 0.0.11-beta.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -8,7 +8,7 @@ This library was automatically generated by Soroban CLI using a command similar
8
8
  soroban contract bindings ts \
9
9
  --rpc-url https://soroban-testnet.stellar.org:443 \
10
10
  --network-passphrase "Test SDF Network ; September 2015" \
11
- --contract-id CAKPKH2G3ALGKW2E5BJFUJ6WR3RXJVGIXEAPVI5S6Q4HKSDCMKEYJSBR \
11
+ --contract-id CDL3YWC2SMRK363QPS4AR5TGVFESE3FMIPOGHEQBMJJA3RTQQ2ALW73U \
12
12
  --output-dir ./path/to/tb-poolStorage
13
13
  ```
14
14
 
@@ -30,7 +30,7 @@ However, we've actually encountered [frustration](https://github.com/stellar/sor
30
30
 
31
31
  ```json
32
32
  "scripts": {
33
- "postinstall": "soroban contract bindings ts --rpc-url https://soroban-testnet.stellar.org:443 --network-passphrase \"Test SDF Network ; September 2015\" --id CAKPKH2G3ALGKW2E5BJFUJ6WR3RXJVGIXEAPVI5S6Q4HKSDCMKEYJSBR --name tb-poolStorage"
33
+ "postinstall": "soroban contract bindings ts --rpc-url https://soroban-testnet.stellar.org:443 --network-passphrase \"Test SDF Network ; September 2015\" --id CDL3YWC2SMRK363QPS4AR5TGVFESE3FMIPOGHEQBMJJA3RTQQ2ALW73U --name tb-poolStorage"
34
34
  }
35
35
  ```
36
36
 
@@ -1,39 +1,69 @@
1
- import { AssembledTransaction, ContractClient, ContractClientOptions } from '@stellar/stellar-sdk/lib/contract_client/index.js';
2
- import type { u32, u64, u128, Option } from '@stellar/stellar-sdk/lib/contract_client';
3
- export * from '@stellar/stellar-sdk';
4
- export * from '@stellar/stellar-sdk/lib/contract_client/index.js';
5
- export * from '@stellar/stellar-sdk/lib/rust_types/index.js';
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";
6
8
  export declare const networks: {
7
9
  readonly testnet: {
8
10
  readonly networkPassphrase: "Test SDF Network ; September 2015";
9
- readonly contractId: "CAKPKH2G3ALGKW2E5BJFUJ6WR3RXJVGIXEAPVI5S6Q4HKSDCMKEYJSBR";
11
+ readonly contractId: "CDL3YWC2SMRK363QPS4AR5TGVFESE3FMIPOGHEQBMJJA3RTQQ2ALW73U";
10
12
  };
11
13
  };
12
14
  export declare const Errors: {
13
- 8: {
15
+ 201: {
14
16
  message: string;
15
17
  };
16
- 1: {
18
+ 202: {
17
19
  message: string;
18
20
  };
19
- 96: {
20
- message: string;
21
- };
22
- 97: {
23
- message: string;
24
- };
25
- 79: {
21
+ 203: {
26
22
  message: string;
27
23
  };
28
24
  };
25
+ /**
26
+ * The senior yield tracker has been refreshed.
27
+ * # Fields:
28
+ * * `total_assets` - The total assets in the senior tranche after the refresh.
29
+ * * `unpaid_yield` - The amount of unpaid yield to the senior tranche after the refresh.
30
+ * * `last_updated_date` - The last time the tracker was updated after the refresh.
31
+ */
32
+ export interface YieldTrackerRefreshedEvent {
33
+ last_updated_date: u64;
34
+ total_assets: u128;
35
+ unpaid_yield: u128;
36
+ }
37
+ export type FixedSeniorYieldTranchesPolicyDataKey = {
38
+ tag: "SeniorYieldTracker";
39
+ values: void;
40
+ };
41
+ export interface SeniorYieldTracker {
42
+ last_updated_date: u64;
43
+ total_assets: u128;
44
+ unpaid_yield: u128;
45
+ }
46
+ export interface FixedSeniorYieldTranchesPolicy {
47
+ placeholder: boolean;
48
+ }
49
+ export interface RiskAdjustedTranchesPolicy {
50
+ placeholder: boolean;
51
+ }
29
52
  export type PayPeriodDuration = {
30
- tag: 'Monthly';
53
+ tag: "Monthly";
31
54
  values: void;
32
55
  } | {
33
- tag: 'Quarterly';
56
+ tag: "Quarterly";
34
57
  values: void;
35
58
  } | {
36
- tag: 'SemiAnnually';
59
+ tag: "SemiAnnually";
60
+ values: void;
61
+ };
62
+ export type TranchesPolicyType = {
63
+ tag: "FixedSeniorYield";
64
+ values: void;
65
+ } | {
66
+ tag: "RiskAdjusted";
37
67
  values: void;
38
68
  };
39
69
  export interface PoolSettings {
@@ -58,16 +88,16 @@ export interface FeeStructure {
58
88
  yield_bps: u32;
59
89
  }
60
90
  export type PoolStatus = {
61
- tag: 'Off';
91
+ tag: "Off";
62
92
  values: void;
63
93
  } | {
64
- tag: 'On';
94
+ tag: "On";
65
95
  values: void;
66
96
  } | {
67
- tag: 'Closed';
97
+ tag: "Closed";
68
98
  values: void;
69
99
  };
70
- export interface CurrentEpoch {
100
+ export interface Epoch {
71
101
  end_time: u64;
72
102
  id: u64;
73
103
  }
@@ -87,11 +117,11 @@ export interface Client {
87
117
  /**
88
118
  * 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.
89
119
  */
90
- initialize: ({ addrs, protocol_on, pool_status, tranche_addrs, }: {
120
+ initialize: ({ addrs, protocol_on, tranche_addrs, tranches_policy, }: {
91
121
  addrs: Array<string>;
92
122
  protocol_on: boolean;
93
- pool_status: PoolStatus;
94
123
  tranche_addrs: Array<Option<string>>;
124
+ tranches_policy: TranchesPolicyType;
95
125
  }, options?: {
96
126
  /**
97
127
  * The fee to pay for the transaction. Default: BASE_FEE
@@ -107,10 +137,12 @@ export interface Client {
107
137
  simulate?: boolean;
108
138
  }) => Promise<AssembledTransaction<null>>;
109
139
  /**
110
- * Construct and simulate a set_pool_manager 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.
140
+ * 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.
111
141
  */
112
- set_pool_manager: ({ addr }: {
113
- addr: string;
142
+ set_contract_addrs: ({ pool, pool_manager, credit, }: {
143
+ pool: string;
144
+ pool_manager: string;
145
+ credit: string;
114
146
  }, options?: {
115
147
  /**
116
148
  * The fee to pay for the transaction. Default: BASE_FEE
@@ -148,11 +180,47 @@ export interface Client {
148
180
  simulate?: boolean;
149
181
  }) => Promise<AssembledTransaction<null>>;
150
182
  /**
151
- * Construct and simulate a set_admins 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.
183
+ * 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.
152
184
  */
153
- set_admins: ({ pool_owner, pool_owner_treasury, ea, }: {
185
+ set_pool_owner: ({ pool_owner }: {
154
186
  pool_owner: string;
187
+ }, options?: {
188
+ /**
189
+ * The fee to pay for the transaction. Default: BASE_FEE
190
+ */
191
+ fee?: number;
192
+ /**
193
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
194
+ */
195
+ timeoutInSeconds?: number;
196
+ /**
197
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
198
+ */
199
+ simulate?: boolean;
200
+ }) => Promise<AssembledTransaction<null>>;
201
+ /**
202
+ * 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.
203
+ */
204
+ set_pool_owner_treasury: ({ pool_owner_treasury }: {
155
205
  pool_owner_treasury: string;
206
+ }, options?: {
207
+ /**
208
+ * The fee to pay for the transaction. Default: BASE_FEE
209
+ */
210
+ fee?: number;
211
+ /**
212
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
213
+ */
214
+ timeoutInSeconds?: number;
215
+ /**
216
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
217
+ */
218
+ simulate?: boolean;
219
+ }) => Promise<AssembledTransaction<null>>;
220
+ /**
221
+ * 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.
222
+ */
223
+ set_evaluation_agent: ({ ea }: {
156
224
  ea: string;
157
225
  }, options?: {
158
226
  /**
@@ -231,7 +299,7 @@ export interface Client {
231
299
  * 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.
232
300
  */
233
301
  set_epoch: ({ epoch }: {
234
- epoch: CurrentEpoch;
302
+ epoch: Epoch;
235
303
  }, options?: {
236
304
  /**
237
305
  * The fee to pay for the transaction. Default: BASE_FEE
@@ -337,6 +405,25 @@ export interface Client {
337
405
  */
338
406
  simulate?: boolean;
339
407
  }) => Promise<AssembledTransaction<null>>;
408
+ /**
409
+ * 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.
410
+ */
411
+ set_tranches_policy_type: ({ policy_type }: {
412
+ policy_type: TranchesPolicyType;
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>>;
340
427
  /**
341
428
  * 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.
342
429
  */
@@ -401,7 +488,8 @@ export interface Client {
401
488
  /**
402
489
  * 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.
403
490
  */
404
- update_assets: ({ junior_assets, senior_assets, }: {
491
+ update_assets: ({ caller, junior_assets, senior_assets, }: {
492
+ caller: string;
405
493
  junior_assets: u128;
406
494
  senior_assets: u128;
407
495
  }, options?: {
@@ -418,6 +506,62 @@ export interface Client {
418
506
  */
419
507
  simulate?: boolean;
420
508
  }) => Promise<AssembledTransaction<null>>;
509
+ /**
510
+ * 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.
511
+ */
512
+ distribute_profit_to_tranches: ({ profit, admin_fees }: {
513
+ profit: u128;
514
+ admin_fees: u128;
515
+ }, options?: {
516
+ /**
517
+ * The fee to pay for the transaction. Default: BASE_FEE
518
+ */
519
+ fee?: number;
520
+ /**
521
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
522
+ */
523
+ timeoutInSeconds?: number;
524
+ /**
525
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
526
+ */
527
+ simulate?: boolean;
528
+ }) => Promise<AssembledTransaction<readonly [u128, u128]>>;
529
+ /**
530
+ * 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.
531
+ */
532
+ refresh_yield_tracker: ({ tranche_assets }: {
533
+ tranche_assets: TrancheAssets;
534
+ }, options?: {
535
+ /**
536
+ * The fee to pay for the transaction. Default: BASE_FEE
537
+ */
538
+ fee?: number;
539
+ /**
540
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
541
+ */
542
+ timeoutInSeconds?: number;
543
+ /**
544
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
545
+ */
546
+ simulate?: boolean;
547
+ }) => Promise<AssembledTransaction<null>>;
548
+ /**
549
+ * 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.
550
+ */
551
+ get_huma_owner: (options?: {
552
+ /**
553
+ * The fee to pay for the transaction. Default: BASE_FEE
554
+ */
555
+ fee?: number;
556
+ /**
557
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
558
+ */
559
+ timeoutInSeconds?: number;
560
+ /**
561
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
562
+ */
563
+ simulate?: boolean;
564
+ }) => Promise<AssembledTransaction<string>>;
421
565
  /**
422
566
  * 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.
423
567
  */
@@ -487,9 +631,9 @@ export interface Client {
487
631
  simulate?: boolean;
488
632
  }) => Promise<AssembledTransaction<AdminRnR>>;
489
633
  /**
490
- * Construct and simulate a 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.
634
+ * 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.
491
635
  */
492
- pool_owner: (options?: {
636
+ get_pool_owner: (options?: {
493
637
  /**
494
638
  * The fee to pay for the transaction. Default: BASE_FEE
495
639
  */
@@ -593,9 +737,9 @@ export interface Client {
593
737
  simulate?: boolean;
594
738
  }) => Promise<AssembledTransaction<string>>;
595
739
  /**
596
- * Construct and simulate a 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.
740
+ * 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.
597
741
  */
598
- pool_owner_treasury: (options?: {
742
+ get_pool_owner_treasury: (options?: {
599
743
  /**
600
744
  * The fee to pay for the transaction. Default: BASE_FEE
601
745
  */
@@ -642,7 +786,7 @@ export interface Client {
642
786
  * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
643
787
  */
644
788
  simulate?: boolean;
645
- }) => Promise<AssembledTransaction<CurrentEpoch>>;
789
+ }) => Promise<AssembledTransaction<Epoch>>;
646
790
  /**
647
791
  * 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.
648
792
  */
@@ -717,6 +861,46 @@ export interface Client {
717
861
  */
718
862
  simulate?: boolean;
719
863
  }) => Promise<AssembledTransaction<null>>;
864
+ /**
865
+ * 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.
866
+ */
867
+ check_pool_owner_liquidity_req: ({ tranche_vault, balance }: {
868
+ tranche_vault: string;
869
+ balance: u128;
870
+ }, options?: {
871
+ /**
872
+ * The fee to pay for the transaction. Default: BASE_FEE
873
+ */
874
+ fee?: number;
875
+ /**
876
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
877
+ */
878
+ timeoutInSeconds?: number;
879
+ /**
880
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
881
+ */
882
+ simulate?: boolean;
883
+ }) => Promise<AssembledTransaction<null>>;
884
+ /**
885
+ * 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.
886
+ */
887
+ check_ea_liquidity_req: ({ tranche_vault, balance }: {
888
+ tranche_vault: string;
889
+ balance: u128;
890
+ }, options?: {
891
+ /**
892
+ * The fee to pay for the transaction. Default: BASE_FEE
893
+ */
894
+ fee?: number;
895
+ /**
896
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
897
+ */
898
+ timeoutInSeconds?: number;
899
+ /**
900
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
901
+ */
902
+ simulate?: boolean;
903
+ }) => Promise<AssembledTransaction<null>>;
720
904
  /**
721
905
  * 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.
722
906
  */
@@ -754,8 +938,7 @@ export interface Client {
754
938
  /**
755
939
  * Construct and simulate a reduce_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.
756
940
  */
757
- reduce_admin_fees_reserve: ({ caller, amount, increase, }: {
758
- caller: string;
941
+ reduce_admin_fees_reserve: ({ amount, increase }: {
759
942
  amount: u128;
760
943
  increase: boolean;
761
944
  }, options?: {
@@ -772,15 +955,36 @@ export interface Client {
772
955
  */
773
956
  simulate?: boolean;
774
957
  }) => Promise<AssembledTransaction<null>>;
958
+ /**
959
+ * 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.
960
+ */
961
+ upgrade: ({ new_wasm_hash }: {
962
+ new_wasm_hash: Buffer;
963
+ }, options?: {
964
+ /**
965
+ * The fee to pay for the transaction. Default: BASE_FEE
966
+ */
967
+ fee?: number;
968
+ /**
969
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
970
+ */
971
+ timeoutInSeconds?: number;
972
+ /**
973
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
974
+ */
975
+ simulate?: boolean;
976
+ }) => Promise<AssembledTransaction<null>>;
775
977
  }
776
978
  export declare class Client extends ContractClient {
777
979
  readonly options: ContractClientOptions;
778
980
  constructor(options: ContractClientOptions);
779
981
  readonly fromJSON: {
780
982
  initialize: (json: string) => AssembledTransaction<null>;
781
- set_pool_manager: (json: string) => AssembledTransaction<null>;
983
+ set_contract_addrs: (json: string) => AssembledTransaction<null>;
782
984
  set_huma_config: (json: string) => AssembledTransaction<null>;
783
- set_admins: (json: string) => AssembledTransaction<null>;
985
+ set_pool_owner: (json: string) => AssembledTransaction<null>;
986
+ set_pool_owner_treasury: (json: string) => AssembledTransaction<null>;
987
+ set_evaluation_agent: (json: string) => AssembledTransaction<null>;
784
988
  set_tranche_addresses: (json: string) => AssembledTransaction<null>;
785
989
  set_pool_operator: (json: string) => AssembledTransaction<null>;
786
990
  set_pool_status: (json: string) => AssembledTransaction<null>;
@@ -789,29 +993,36 @@ export declare class Client extends ContractClient {
789
993
  set_pool_settings: (json: string) => AssembledTransaction<null>;
790
994
  set_lp_config: (json: string) => AssembledTransaction<null>;
791
995
  set_fee_structure: (json: string) => AssembledTransaction<null>;
996
+ set_tranches_policy_type: (json: string) => AssembledTransaction<null>;
792
997
  send_tokens: (json: string) => AssembledTransaction<null>;
793
998
  add_tranche_assets: (json: string) => AssembledTransaction<null>;
794
999
  reduce_tranche_assets: (json: string) => AssembledTransaction<null>;
795
1000
  update_assets: (json: string) => AssembledTransaction<null>;
1001
+ distribute_profit_to_tranches: (json: string) => AssembledTransaction<readonly [bigint, bigint]>;
1002
+ refresh_yield_tracker: (json: string) => AssembledTransaction<null>;
1003
+ get_huma_owner: (json: string) => AssembledTransaction<string>;
796
1004
  get_pool_settings: (json: string) => AssembledTransaction<PoolSettings>;
797
1005
  get_lp_config: (json: string) => AssembledTransaction<LPConfig>;
798
1006
  get_fee_structure: (json: string) => AssembledTransaction<FeeStructure>;
799
1007
  get_admin_rnr: (json: string) => AssembledTransaction<AdminRnR>;
800
- pool_owner: (json: string) => AssembledTransaction<string>;
1008
+ get_pool_owner: (json: string) => AssembledTransaction<string>;
801
1009
  is_pool_owner_or_huma_owner: (json: string) => AssembledTransaction<boolean>;
802
1010
  is_pool_operator: (json: string) => AssembledTransaction<boolean>;
803
1011
  is_protocol_and_pool_on: (json: string) => AssembledTransaction<boolean>;
804
1012
  get_evaluation_agent: (json: string) => AssembledTransaction<string>;
805
1013
  get_sentinel: (json: string) => AssembledTransaction<string>;
806
- pool_owner_treasury: (json: string) => AssembledTransaction<string>;
1014
+ get_pool_owner_treasury: (json: string) => AssembledTransaction<string>;
807
1015
  get_pool_status: (json: string) => AssembledTransaction<PoolStatus>;
808
- get_current_epoch: (json: string) => AssembledTransaction<CurrentEpoch>;
1016
+ get_current_epoch: (json: string) => AssembledTransaction<Epoch>;
809
1017
  get_tranche_assets_by_addr: (json: string) => AssembledTransaction<bigint>;
810
1018
  get_tranche_assets: (json: string) => AssembledTransaction<TrancheAssets>;
811
1019
  get_tranche_addresses: (json: string) => AssembledTransaction<TrancheAddresses>;
812
1020
  check_liquidity_requirements: (json: string) => AssembledTransaction<null>;
1021
+ check_pool_owner_liquidity_req: (json: string) => AssembledTransaction<null>;
1022
+ check_ea_liquidity_req: (json: string) => AssembledTransaction<null>;
813
1023
  get_underlying_token: (json: string) => AssembledTransaction<string>;
814
1024
  get_available_balance: (json: string) => AssembledTransaction<bigint>;
815
1025
  reduce_admin_fees_reserve: (json: string) => AssembledTransaction<null>;
1026
+ upgrade: (json: string) => AssembledTransaction<null>;
816
1027
  };
817
1028
  }