@huma-finance/soroban-pool-manager 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 +2 -2
- package/dist/cjs/index.d.ts +214 -50
- package/dist/cjs/index.js +83 -58
- package/dist/esm/index.d.ts +214 -50
- package/dist/esm/index.js +89 -64
- package/dist/scripts/tsconfig.cjs.tsbuildinfo +1 -1
- package/dist/scripts/tsconfig.esm.tsbuildinfo +1 -1
- package/dist/scripts/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/index.d.ts +214 -50
- package/package.json +2 -2
- package/src/index.ts +484 -269
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
|
|
11
|
+
--contract-id CDPNNXOD6LVIXD2VYAH6CKQ6TPQYDITGJ4END7LFLR7OIZNHLCWLF347 \
|
|
12
12
|
--output-dir ./path/to/tb-poolManager
|
|
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
|
|
33
|
+
"postinstall": "soroban contract bindings ts --rpc-url https://soroban-testnet.stellar.org:443 --network-passphrase \"Test SDF Network ; September 2015\" --id CDPNNXOD6LVIXD2VYAH6CKQ6TPQYDITGJ4END7LFLR7OIZNHLCWLF347 --name tb-poolManager"
|
|
34
34
|
}
|
|
35
35
|
```
|
|
36
36
|
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1,24 +1,51 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export * from
|
|
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: "
|
|
11
|
+
readonly contractId: "CDPNNXOD6LVIXD2VYAH6CKQ6TPQYDITGJ4END7LFLR7OIZNHLCWLF347";
|
|
10
12
|
};
|
|
11
13
|
};
|
|
12
14
|
export type ClientDataKey = {
|
|
13
|
-
tag:
|
|
15
|
+
tag: "HumaConfig";
|
|
14
16
|
values: void;
|
|
15
17
|
} | {
|
|
16
|
-
tag:
|
|
18
|
+
tag: "PoolStorage";
|
|
17
19
|
values: void;
|
|
18
20
|
} | {
|
|
19
|
-
tag:
|
|
21
|
+
tag: "Pool";
|
|
20
22
|
values: void;
|
|
21
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
|
+
}
|
|
22
49
|
/**
|
|
23
50
|
* Event indicating that a new epoch has started.
|
|
24
51
|
* # Fields:
|
|
@@ -62,37 +89,31 @@ export interface RedemptionRequestsProcessedEvent {
|
|
|
62
89
|
unprocessed_amount: u128;
|
|
63
90
|
}
|
|
64
91
|
export declare const Errors: {
|
|
65
|
-
|
|
66
|
-
message: string;
|
|
67
|
-
};
|
|
68
|
-
72: {
|
|
69
|
-
message: string;
|
|
70
|
-
};
|
|
71
|
-
21: {
|
|
92
|
+
301: {
|
|
72
93
|
message: string;
|
|
73
94
|
};
|
|
74
|
-
|
|
95
|
+
302: {
|
|
75
96
|
message: string;
|
|
76
97
|
};
|
|
77
|
-
|
|
98
|
+
303: {
|
|
78
99
|
message: string;
|
|
79
100
|
};
|
|
80
|
-
|
|
101
|
+
304: {
|
|
81
102
|
message: string;
|
|
82
103
|
};
|
|
83
|
-
|
|
104
|
+
305: {
|
|
84
105
|
message: string;
|
|
85
106
|
};
|
|
86
|
-
|
|
107
|
+
306: {
|
|
87
108
|
message: string;
|
|
88
109
|
};
|
|
89
|
-
|
|
110
|
+
307: {
|
|
90
111
|
message: string;
|
|
91
112
|
};
|
|
92
|
-
|
|
113
|
+
308: {
|
|
93
114
|
message: string;
|
|
94
115
|
};
|
|
95
|
-
|
|
116
|
+
309: {
|
|
96
117
|
message: string;
|
|
97
118
|
};
|
|
98
119
|
};
|
|
@@ -120,14 +141,75 @@ export interface PoolDisabledEvent {
|
|
|
120
141
|
export interface PoolClosedEvent {
|
|
121
142
|
by: string;
|
|
122
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
|
+
}
|
|
123
198
|
export type PayPeriodDuration = {
|
|
124
|
-
tag:
|
|
199
|
+
tag: "Monthly";
|
|
200
|
+
values: void;
|
|
201
|
+
} | {
|
|
202
|
+
tag: "Quarterly";
|
|
125
203
|
values: void;
|
|
126
204
|
} | {
|
|
127
|
-
tag:
|
|
205
|
+
tag: "SemiAnnually";
|
|
206
|
+
values: void;
|
|
207
|
+
};
|
|
208
|
+
export type TranchesPolicyType = {
|
|
209
|
+
tag: "FixedSeniorYield";
|
|
128
210
|
values: void;
|
|
129
211
|
} | {
|
|
130
|
-
tag:
|
|
212
|
+
tag: "RiskAdjusted";
|
|
131
213
|
values: void;
|
|
132
214
|
};
|
|
133
215
|
export interface PoolSettings {
|
|
@@ -152,16 +234,16 @@ export interface FeeStructure {
|
|
|
152
234
|
yield_bps: u32;
|
|
153
235
|
}
|
|
154
236
|
export type PoolStatus = {
|
|
155
|
-
tag:
|
|
237
|
+
tag: "Off";
|
|
156
238
|
values: void;
|
|
157
239
|
} | {
|
|
158
|
-
tag:
|
|
240
|
+
tag: "On";
|
|
159
241
|
values: void;
|
|
160
242
|
} | {
|
|
161
|
-
tag:
|
|
243
|
+
tag: "Closed";
|
|
162
244
|
values: void;
|
|
163
245
|
};
|
|
164
|
-
export interface
|
|
246
|
+
export interface Epoch {
|
|
165
247
|
end_time: u64;
|
|
166
248
|
id: u64;
|
|
167
249
|
}
|
|
@@ -207,11 +289,10 @@ export interface Client {
|
|
|
207
289
|
simulate?: boolean;
|
|
208
290
|
}) => Promise<AssembledTransaction<null>>;
|
|
209
291
|
/**
|
|
210
|
-
* Construct and simulate a
|
|
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.
|
|
211
293
|
*/
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
pool: string;
|
|
294
|
+
set_huma_config: ({ huma_config }: {
|
|
295
|
+
huma_config: string;
|
|
215
296
|
}, options?: {
|
|
216
297
|
/**
|
|
217
298
|
* The fee to pay for the transaction. Default: BASE_FEE
|
|
@@ -227,11 +308,11 @@ export interface Client {
|
|
|
227
308
|
simulate?: boolean;
|
|
228
309
|
}) => Promise<AssembledTransaction<null>>;
|
|
229
310
|
/**
|
|
230
|
-
* Construct and simulate a
|
|
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.
|
|
231
312
|
*/
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
313
|
+
set_contract_addrs: ({ pool_storage, pool }: {
|
|
314
|
+
pool_storage: string;
|
|
315
|
+
pool: string;
|
|
235
316
|
}, options?: {
|
|
236
317
|
/**
|
|
237
318
|
* The fee to pay for the transaction. Default: BASE_FEE
|
|
@@ -247,10 +328,12 @@ export interface Client {
|
|
|
247
328
|
simulate?: boolean;
|
|
248
329
|
}) => Promise<AssembledTransaction<null>>;
|
|
249
330
|
/**
|
|
250
|
-
* Construct and simulate a
|
|
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.
|
|
251
332
|
*/
|
|
252
|
-
|
|
253
|
-
|
|
333
|
+
set_storage_contract_addrs: ({ pool, pool_manager, credit, }: {
|
|
334
|
+
pool: string;
|
|
335
|
+
pool_manager: string;
|
|
336
|
+
credit: string;
|
|
254
337
|
}, options?: {
|
|
255
338
|
/**
|
|
256
339
|
* The fee to pay for the transaction. Default: BASE_FEE
|
|
@@ -286,13 +369,51 @@ export interface Client {
|
|
|
286
369
|
simulate?: boolean;
|
|
287
370
|
}) => Promise<AssembledTransaction<null>>;
|
|
288
371
|
/**
|
|
289
|
-
* Construct and simulate a
|
|
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.
|
|
290
413
|
*/
|
|
291
|
-
|
|
414
|
+
set_evaluation_agent: ({ caller, addr }: {
|
|
292
415
|
caller: string;
|
|
293
|
-
|
|
294
|
-
pool_owner_treasury: string;
|
|
295
|
-
ea: string;
|
|
416
|
+
addr: string;
|
|
296
417
|
}, options?: {
|
|
297
418
|
/**
|
|
298
419
|
* The fee to pay for the transaction. Default: BASE_FEE
|
|
@@ -423,6 +544,26 @@ export interface Client {
|
|
|
423
544
|
*/
|
|
424
545
|
simulate?: boolean;
|
|
425
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>>;
|
|
426
567
|
/**
|
|
427
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.
|
|
428
569
|
*/
|
|
@@ -593,22 +734,44 @@ export interface Client {
|
|
|
593
734
|
*/
|
|
594
735
|
simulate?: boolean;
|
|
595
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>>;
|
|
596
756
|
}
|
|
597
757
|
export declare class Client extends ContractClient {
|
|
598
758
|
readonly options: ContractClientOptions;
|
|
599
759
|
constructor(options: ContractClientOptions);
|
|
600
760
|
readonly fromJSON: {
|
|
601
761
|
initialize: (json: string) => AssembledTransaction<null>;
|
|
602
|
-
set_pool: (json: string) => AssembledTransaction<null>;
|
|
603
|
-
set_pool_storage: (json: string) => AssembledTransaction<null>;
|
|
604
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>;
|
|
605
765
|
set_pool_name: (json: string) => AssembledTransaction<null>;
|
|
606
|
-
|
|
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>;
|
|
607
769
|
set_tranche_addresses: (json: string) => AssembledTransaction<null>;
|
|
608
770
|
set_admin_rnr: (json: string) => AssembledTransaction<null>;
|
|
609
771
|
set_pool_settings: (json: string) => AssembledTransaction<null>;
|
|
610
772
|
set_lp_config: (json: string) => AssembledTransaction<null>;
|
|
611
773
|
set_fee_structure: (json: string) => AssembledTransaction<null>;
|
|
774
|
+
set_tranches_policy_type: (json: string) => AssembledTransaction<null>;
|
|
612
775
|
add_pool_operator: (json: string) => AssembledTransaction<null>;
|
|
613
776
|
remove_pool_operator: (json: string) => AssembledTransaction<null>;
|
|
614
777
|
enable_pool: (json: string) => AssembledTransaction<null>;
|
|
@@ -618,5 +781,6 @@ export declare class Client extends ContractClient {
|
|
|
618
781
|
withdraw_protocol_fees: (json: string) => AssembledTransaction<null>;
|
|
619
782
|
withdraw_pool_owner_fees: (json: string) => AssembledTransaction<null>;
|
|
620
783
|
withdraw_ea_fees: (json: string) => AssembledTransaction<null>;
|
|
784
|
+
upgrade: (json: string) => AssembledTransaction<null>;
|
|
621
785
|
};
|
|
622
786
|
}
|
package/dist/cjs/index.js
CHANGED
|
@@ -21,89 +21,113 @@ const index_js_1 = require("@stellar/stellar-sdk/lib/contract_client/index.js");
|
|
|
21
21
|
__exportStar(require("@stellar/stellar-sdk"), exports);
|
|
22
22
|
__exportStar(require("@stellar/stellar-sdk/lib/contract_client/index.js"), exports);
|
|
23
23
|
__exportStar(require("@stellar/stellar-sdk/lib/rust_types/index.js"), exports);
|
|
24
|
-
if (typeof window !==
|
|
24
|
+
if (typeof window !== "undefined") {
|
|
25
25
|
//@ts-ignore Buffer exists
|
|
26
26
|
window.Buffer = window.Buffer || buffer_1.Buffer;
|
|
27
27
|
}
|
|
28
28
|
exports.networks = {
|
|
29
29
|
testnet: {
|
|
30
|
-
networkPassphrase:
|
|
31
|
-
contractId:
|
|
30
|
+
networkPassphrase: "Test SDF Network ; September 2015",
|
|
31
|
+
contractId: "CDPNNXOD6LVIXD2VYAH6CKQ6TPQYDITGJ4END7LFLR7OIZNHLCWLF347",
|
|
32
32
|
},
|
|
33
33
|
};
|
|
34
34
|
exports.Errors = {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
93: { message: '' },
|
|
45
|
-
53: { message: '' },
|
|
35
|
+
301: { message: "" },
|
|
36
|
+
302: { message: "" },
|
|
37
|
+
303: { message: "" },
|
|
38
|
+
304: { message: "" },
|
|
39
|
+
305: { message: "" },
|
|
40
|
+
306: { message: "" },
|
|
41
|
+
307: { message: "" },
|
|
42
|
+
308: { message: "" },
|
|
43
|
+
309: { message: "" },
|
|
46
44
|
};
|
|
47
45
|
class Client extends index_js_1.ContractClient {
|
|
48
46
|
options;
|
|
49
47
|
constructor(options) {
|
|
50
48
|
super(new stellar_sdk_1.ContractSpec([
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
49
|
+
"AAAAAgAAAAAAAAAAAAAADUNsaWVudERhdGFLZXkAAAAAAAADAAAAAAAAAAAAAAAKSHVtYUNvbmZpZwAAAAAAAAAAAAAA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Jld2FyZF9yYXRlX2Jwc19wb29sX293bmVyAAAAAAAE",
|
|
110
|
+
"AAAAAQAAAAAAAAAAAAAAEFRyYW5jaGVBZGRyZXNzZXMAAAABAAAAAAAAAAVhZGRycwAAAAAAA+oAAAPoAAAAEw==",
|
|
111
|
+
"AAAAAQAAAAAAAAAAAAAADVRyYW5jaGVBc3NldHMAAAAAAAABAAAAAAAAAAZhc3NldHMAAAAAA+oAAAAK",
|
|
112
|
+
"AAAAAQAAAAAAAAAAAAAAFkVwb2NoUmVkZW1wdGlvblN1bW1hcnkAAAAAAAQAAAAAAAAACGVwb2NoX2lkAAAABgAAAAAAAAAWdG90YWxfYW1vdW50X3Byb2Nlc3NlZAAAAAAACgAAAAAAAAAWdG90YWxfc2hhcmVzX3Byb2Nlc3NlZAAAAAAACgAAAAAAAAAWdG90YWxfc2hhcmVzX3JlcXVlc3RlZAAAAAAACg==",
|
|
92
113
|
]), options);
|
|
93
114
|
this.options = options;
|
|
94
115
|
}
|
|
95
116
|
fromJSON = {
|
|
96
117
|
initialize: (this.txFromJSON),
|
|
97
|
-
set_pool: (this.txFromJSON),
|
|
98
|
-
set_pool_storage: (this.txFromJSON),
|
|
99
118
|
set_huma_config: (this.txFromJSON),
|
|
119
|
+
set_contract_addrs: (this.txFromJSON),
|
|
120
|
+
set_storage_contract_addrs: (this.txFromJSON),
|
|
100
121
|
set_pool_name: (this.txFromJSON),
|
|
101
|
-
|
|
122
|
+
set_pool_owner: (this.txFromJSON),
|
|
123
|
+
set_pool_owner_treasury: (this.txFromJSON),
|
|
124
|
+
set_evaluation_agent: (this.txFromJSON),
|
|
102
125
|
set_tranche_addresses: (this.txFromJSON),
|
|
103
126
|
set_admin_rnr: (this.txFromJSON),
|
|
104
127
|
set_pool_settings: (this.txFromJSON),
|
|
105
128
|
set_lp_config: (this.txFromJSON),
|
|
106
129
|
set_fee_structure: (this.txFromJSON),
|
|
130
|
+
set_tranches_policy_type: (this.txFromJSON),
|
|
107
131
|
add_pool_operator: (this.txFromJSON),
|
|
108
132
|
remove_pool_operator: (this.txFromJSON),
|
|
109
133
|
enable_pool: (this.txFromJSON),
|
|
@@ -113,6 +137,7 @@ class Client extends index_js_1.ContractClient {
|
|
|
113
137
|
withdraw_protocol_fees: (this.txFromJSON),
|
|
114
138
|
withdraw_pool_owner_fees: (this.txFromJSON),
|
|
115
139
|
withdraw_ea_fees: (this.txFromJSON),
|
|
140
|
+
upgrade: (this.txFromJSON),
|
|
116
141
|
};
|
|
117
142
|
}
|
|
118
143
|
exports.Client = Client;
|