@huma-finance/soroban-pool-manager 0.0.15-beta.53 → 0.0.15-beta.59
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 +780 -0
- package/dist/cjs/index.js +163 -0
- package/package.json +10 -5
- package/tsconfig.cjs.json +22 -0
|
@@ -0,0 +1,780 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
/// <reference types="node" />
|
|
3
|
+
import { Buffer } from "buffer";
|
|
4
|
+
import { AssembledTransaction, Client as ContractClient, ClientOptions as ContractClientOptions } from "@stellar/stellar-sdk/contract";
|
|
5
|
+
import type { u32, u64, u128, Option } from "@stellar/stellar-sdk/contract";
|
|
6
|
+
export * from "@stellar/stellar-sdk";
|
|
7
|
+
export * as contract from "@stellar/stellar-sdk/contract";
|
|
8
|
+
export * as rpc from "@stellar/stellar-sdk/rpc";
|
|
9
|
+
export declare const networks: {
|
|
10
|
+
readonly unknown: {
|
|
11
|
+
readonly networkPassphrase: "Public Global Stellar Network ; September 2015";
|
|
12
|
+
readonly contractId: "CBQ7KII3OETETYM65TFJT2YPVFFK42V4WUBIMJJNWKTIZ5XOWYZW3XAO";
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export interface PoolManagerAddressesChangedEvent {
|
|
16
|
+
pool: string;
|
|
17
|
+
pool_storage: string;
|
|
18
|
+
}
|
|
19
|
+
export interface PoolStorageAddressesChangedEvent {
|
|
20
|
+
credit: string;
|
|
21
|
+
pool: string;
|
|
22
|
+
pool_manager: string;
|
|
23
|
+
}
|
|
24
|
+
export type ClientDataKey = {
|
|
25
|
+
tag: "HumaConfig";
|
|
26
|
+
values: void;
|
|
27
|
+
} | {
|
|
28
|
+
tag: "PoolStorage";
|
|
29
|
+
values: void;
|
|
30
|
+
} | {
|
|
31
|
+
tag: "Pool";
|
|
32
|
+
values: void;
|
|
33
|
+
};
|
|
34
|
+
export interface PoolOperatorAddedEvent {
|
|
35
|
+
operator: string;
|
|
36
|
+
}
|
|
37
|
+
export interface PoolOperatorRemovedEvent {
|
|
38
|
+
operator: string;
|
|
39
|
+
}
|
|
40
|
+
export interface HumaConfigChangedEvent {
|
|
41
|
+
huma_config: string;
|
|
42
|
+
huma_owner: string;
|
|
43
|
+
sentinel: string;
|
|
44
|
+
}
|
|
45
|
+
export interface TrancheAddressesChangedEvent {
|
|
46
|
+
junior_addr: string;
|
|
47
|
+
senior_addr: string;
|
|
48
|
+
}
|
|
49
|
+
export interface JuniorTrancheAddressChangedEvent {
|
|
50
|
+
junior_addr: string;
|
|
51
|
+
}
|
|
52
|
+
export interface NewEpochStartedEvent {
|
|
53
|
+
end_time: u64;
|
|
54
|
+
epoch_id: u64;
|
|
55
|
+
}
|
|
56
|
+
export interface EpochClosedEvent {
|
|
57
|
+
epoch_id: u64;
|
|
58
|
+
}
|
|
59
|
+
export interface EpochProcessedAfterPoolClosureEvent {
|
|
60
|
+
epoch_id: u64;
|
|
61
|
+
}
|
|
62
|
+
export interface RedemptionRequestsProcessedEvent {
|
|
63
|
+
junior_tranche_assets: u128;
|
|
64
|
+
junior_tranche_price: u128;
|
|
65
|
+
senior_tranche_assets: u128;
|
|
66
|
+
senior_tranche_price: u128;
|
|
67
|
+
unprocessed_amount: u128;
|
|
68
|
+
}
|
|
69
|
+
export interface PoolEnabledEvent {
|
|
70
|
+
by: string;
|
|
71
|
+
}
|
|
72
|
+
export interface PoolDisabledEvent {
|
|
73
|
+
by: string;
|
|
74
|
+
}
|
|
75
|
+
export interface PoolClosedEvent {
|
|
76
|
+
by: string;
|
|
77
|
+
}
|
|
78
|
+
export interface PoolOwnerChangedEvent {
|
|
79
|
+
pool_owner: string;
|
|
80
|
+
}
|
|
81
|
+
export interface PoolOwnerTreasuryChangedEvent {
|
|
82
|
+
treasury: string;
|
|
83
|
+
}
|
|
84
|
+
export interface EvaluationAgentChangedEvent {
|
|
85
|
+
ea: string;
|
|
86
|
+
}
|
|
87
|
+
export interface TranchesPolicyTypeChangedEvent {
|
|
88
|
+
policy_type: TranchesPolicyType;
|
|
89
|
+
}
|
|
90
|
+
export interface PoolSettingsChangedEvent {
|
|
91
|
+
default_grace_period_days: u32;
|
|
92
|
+
late_payment_grace_period_days: u32;
|
|
93
|
+
max_credit_line: u128;
|
|
94
|
+
min_deposit_amount: u128;
|
|
95
|
+
pay_period_duration: PayPeriodDuration;
|
|
96
|
+
principal_only_payment_allowed: boolean;
|
|
97
|
+
}
|
|
98
|
+
export interface LPConfigChangedEvent {
|
|
99
|
+
auto_redemption_after_lockup: boolean;
|
|
100
|
+
fixed_senior_yield_bps: u32;
|
|
101
|
+
liquidity_cap: u128;
|
|
102
|
+
max_senior_junior_ratio: u32;
|
|
103
|
+
tranches_risk_adjustment_bps: u32;
|
|
104
|
+
withdrawal_lockout_period_days: u32;
|
|
105
|
+
}
|
|
106
|
+
export interface FeeStructureChangedEvent {
|
|
107
|
+
front_loading_fee_bps: u32;
|
|
108
|
+
front_loading_fee_flat: u128;
|
|
109
|
+
late_fee_bps: u32;
|
|
110
|
+
yield_bps: u32;
|
|
111
|
+
}
|
|
112
|
+
export interface AdminRnRChangedEvent {
|
|
113
|
+
ea_liquidity_rate: u32;
|
|
114
|
+
ea_reward_rate: u32;
|
|
115
|
+
pool_owner_liquidity_rate: u32;
|
|
116
|
+
pool_owner_reward_rate: u32;
|
|
117
|
+
}
|
|
118
|
+
export interface PoolNameChangedEvent {
|
|
119
|
+
name: string;
|
|
120
|
+
}
|
|
121
|
+
export interface ProtocolRewardsWithdrawnEvent {
|
|
122
|
+
amount: u128;
|
|
123
|
+
receiver: string;
|
|
124
|
+
}
|
|
125
|
+
export interface PoolRewardsWithdrawnEvent {
|
|
126
|
+
amount: u128;
|
|
127
|
+
receiver: string;
|
|
128
|
+
}
|
|
129
|
+
export interface PoolRewardsWithdrawalFailedEvent {
|
|
130
|
+
amount: u128;
|
|
131
|
+
receiver: string;
|
|
132
|
+
}
|
|
133
|
+
export interface EvaluationAgentRewardsWithdrawnEvent {
|
|
134
|
+
amount: u128;
|
|
135
|
+
receiver: string;
|
|
136
|
+
}
|
|
137
|
+
export interface EARewardsWithdrawalFailedEvent {
|
|
138
|
+
amount: u128;
|
|
139
|
+
receiver: string;
|
|
140
|
+
}
|
|
141
|
+
export type PayPeriodDuration = {
|
|
142
|
+
tag: "Monthly";
|
|
143
|
+
values: void;
|
|
144
|
+
} | {
|
|
145
|
+
tag: "Quarterly";
|
|
146
|
+
values: void;
|
|
147
|
+
} | {
|
|
148
|
+
tag: "SemiAnnually";
|
|
149
|
+
values: void;
|
|
150
|
+
};
|
|
151
|
+
export declare const Errors: {
|
|
152
|
+
801: {
|
|
153
|
+
message: string;
|
|
154
|
+
};
|
|
155
|
+
1: {
|
|
156
|
+
message: string;
|
|
157
|
+
};
|
|
158
|
+
2: {
|
|
159
|
+
message: string;
|
|
160
|
+
};
|
|
161
|
+
3: {
|
|
162
|
+
message: string;
|
|
163
|
+
};
|
|
164
|
+
4: {
|
|
165
|
+
message: string;
|
|
166
|
+
};
|
|
167
|
+
5: {
|
|
168
|
+
message: string;
|
|
169
|
+
};
|
|
170
|
+
6: {
|
|
171
|
+
message: string;
|
|
172
|
+
};
|
|
173
|
+
7: {
|
|
174
|
+
message: string;
|
|
175
|
+
};
|
|
176
|
+
301: {
|
|
177
|
+
message: string;
|
|
178
|
+
};
|
|
179
|
+
302: {
|
|
180
|
+
message: string;
|
|
181
|
+
};
|
|
182
|
+
303: {
|
|
183
|
+
message: string;
|
|
184
|
+
};
|
|
185
|
+
304: {
|
|
186
|
+
message: string;
|
|
187
|
+
};
|
|
188
|
+
305: {
|
|
189
|
+
message: string;
|
|
190
|
+
};
|
|
191
|
+
306: {
|
|
192
|
+
message: string;
|
|
193
|
+
};
|
|
194
|
+
307: {
|
|
195
|
+
message: string;
|
|
196
|
+
};
|
|
197
|
+
};
|
|
198
|
+
export type TranchesPolicyType = {
|
|
199
|
+
tag: "FixedSeniorYield";
|
|
200
|
+
values: void;
|
|
201
|
+
} | {
|
|
202
|
+
tag: "RiskAdjusted";
|
|
203
|
+
values: void;
|
|
204
|
+
};
|
|
205
|
+
export interface PoolSettings {
|
|
206
|
+
default_grace_period_days: u32;
|
|
207
|
+
late_payment_grace_period_days: u32;
|
|
208
|
+
max_credit_line: u128;
|
|
209
|
+
min_deposit_amount: u128;
|
|
210
|
+
pay_period_duration: PayPeriodDuration;
|
|
211
|
+
principal_only_payment_allowed: boolean;
|
|
212
|
+
}
|
|
213
|
+
export interface LPConfig {
|
|
214
|
+
auto_redemption_after_lockup: boolean;
|
|
215
|
+
fixed_senior_yield_bps: u32;
|
|
216
|
+
liquidity_cap: u128;
|
|
217
|
+
max_senior_junior_ratio: u32;
|
|
218
|
+
tranches_risk_adjustment_bps: u32;
|
|
219
|
+
withdrawal_lockout_period_days: u32;
|
|
220
|
+
}
|
|
221
|
+
export interface FeeStructure {
|
|
222
|
+
front_loading_fee_bps: u32;
|
|
223
|
+
front_loading_fee_flat: u128;
|
|
224
|
+
late_fee_bps: u32;
|
|
225
|
+
yield_bps: u32;
|
|
226
|
+
}
|
|
227
|
+
export type PoolStatus = {
|
|
228
|
+
tag: "Off";
|
|
229
|
+
values: void;
|
|
230
|
+
} | {
|
|
231
|
+
tag: "On";
|
|
232
|
+
values: void;
|
|
233
|
+
} | {
|
|
234
|
+
tag: "Closed";
|
|
235
|
+
values: void;
|
|
236
|
+
};
|
|
237
|
+
export interface Epoch {
|
|
238
|
+
end_time: u64;
|
|
239
|
+
id: u64;
|
|
240
|
+
}
|
|
241
|
+
export interface AdminRnR {
|
|
242
|
+
liquidity_rate_bps_ea: u32;
|
|
243
|
+
liquidity_rate_bps_pool_owner: u32;
|
|
244
|
+
reward_rate_bps_ea: u32;
|
|
245
|
+
reward_rate_bps_pool_owner: u32;
|
|
246
|
+
}
|
|
247
|
+
export interface TrancheAddresses {
|
|
248
|
+
addrs: Array<Option<string>>;
|
|
249
|
+
}
|
|
250
|
+
export interface TrancheAssets {
|
|
251
|
+
assets: Array<u128>;
|
|
252
|
+
}
|
|
253
|
+
export interface EpochRedemptionSummary {
|
|
254
|
+
epoch_id: u64;
|
|
255
|
+
total_amount_processed: u128;
|
|
256
|
+
total_shares_processed: u128;
|
|
257
|
+
total_shares_requested: u128;
|
|
258
|
+
}
|
|
259
|
+
export interface Client {
|
|
260
|
+
/**
|
|
261
|
+
* 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.
|
|
262
|
+
*/
|
|
263
|
+
initialize: ({ pool_name, huma_config, pool_storage, pool, }: {
|
|
264
|
+
pool_name: string;
|
|
265
|
+
huma_config: string;
|
|
266
|
+
pool_storage: string;
|
|
267
|
+
pool: string;
|
|
268
|
+
}, options?: {
|
|
269
|
+
/**
|
|
270
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
271
|
+
*/
|
|
272
|
+
fee?: number;
|
|
273
|
+
/**
|
|
274
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
275
|
+
*/
|
|
276
|
+
timeoutInSeconds?: number;
|
|
277
|
+
/**
|
|
278
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
279
|
+
*/
|
|
280
|
+
simulate?: boolean;
|
|
281
|
+
}) => Promise<AssembledTransaction<null>>;
|
|
282
|
+
/**
|
|
283
|
+
* 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.
|
|
284
|
+
*/
|
|
285
|
+
set_huma_config: ({ huma_config }: {
|
|
286
|
+
huma_config: string;
|
|
287
|
+
}, options?: {
|
|
288
|
+
/**
|
|
289
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
290
|
+
*/
|
|
291
|
+
fee?: number;
|
|
292
|
+
/**
|
|
293
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
294
|
+
*/
|
|
295
|
+
timeoutInSeconds?: number;
|
|
296
|
+
/**
|
|
297
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
298
|
+
*/
|
|
299
|
+
simulate?: boolean;
|
|
300
|
+
}) => Promise<AssembledTransaction<null>>;
|
|
301
|
+
/**
|
|
302
|
+
* 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.
|
|
303
|
+
*/
|
|
304
|
+
set_contract_addrs: ({ caller, pool_storage, pool, }: {
|
|
305
|
+
caller: string;
|
|
306
|
+
pool_storage: string;
|
|
307
|
+
pool: string;
|
|
308
|
+
}, options?: {
|
|
309
|
+
/**
|
|
310
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
311
|
+
*/
|
|
312
|
+
fee?: number;
|
|
313
|
+
/**
|
|
314
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
315
|
+
*/
|
|
316
|
+
timeoutInSeconds?: number;
|
|
317
|
+
/**
|
|
318
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
319
|
+
*/
|
|
320
|
+
simulate?: boolean;
|
|
321
|
+
}) => Promise<AssembledTransaction<null>>;
|
|
322
|
+
/**
|
|
323
|
+
* 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.
|
|
324
|
+
*/
|
|
325
|
+
set_storage_contract_addrs: ({ caller, pool, pool_manager, credit, }: {
|
|
326
|
+
caller: string;
|
|
327
|
+
pool: string;
|
|
328
|
+
pool_manager: string;
|
|
329
|
+
credit: string;
|
|
330
|
+
}, options?: {
|
|
331
|
+
/**
|
|
332
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
333
|
+
*/
|
|
334
|
+
fee?: number;
|
|
335
|
+
/**
|
|
336
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
337
|
+
*/
|
|
338
|
+
timeoutInSeconds?: number;
|
|
339
|
+
/**
|
|
340
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
341
|
+
*/
|
|
342
|
+
simulate?: boolean;
|
|
343
|
+
}) => Promise<AssembledTransaction<null>>;
|
|
344
|
+
/**
|
|
345
|
+
* 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.
|
|
346
|
+
*/
|
|
347
|
+
set_pool_name: ({ caller, name }: {
|
|
348
|
+
caller: string;
|
|
349
|
+
name: string;
|
|
350
|
+
}, options?: {
|
|
351
|
+
/**
|
|
352
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
353
|
+
*/
|
|
354
|
+
fee?: number;
|
|
355
|
+
/**
|
|
356
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
357
|
+
*/
|
|
358
|
+
timeoutInSeconds?: number;
|
|
359
|
+
/**
|
|
360
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
361
|
+
*/
|
|
362
|
+
simulate?: boolean;
|
|
363
|
+
}) => Promise<AssembledTransaction<null>>;
|
|
364
|
+
/**
|
|
365
|
+
* 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.
|
|
366
|
+
*/
|
|
367
|
+
set_pool_owner: ({ caller, addr }: {
|
|
368
|
+
caller: string;
|
|
369
|
+
addr: string;
|
|
370
|
+
}, options?: {
|
|
371
|
+
/**
|
|
372
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
373
|
+
*/
|
|
374
|
+
fee?: number;
|
|
375
|
+
/**
|
|
376
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
377
|
+
*/
|
|
378
|
+
timeoutInSeconds?: number;
|
|
379
|
+
/**
|
|
380
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
381
|
+
*/
|
|
382
|
+
simulate?: boolean;
|
|
383
|
+
}) => Promise<AssembledTransaction<null>>;
|
|
384
|
+
/**
|
|
385
|
+
* 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.
|
|
386
|
+
*/
|
|
387
|
+
set_pool_owner_treasury: ({ caller, addr }: {
|
|
388
|
+
caller: string;
|
|
389
|
+
addr: string;
|
|
390
|
+
}, options?: {
|
|
391
|
+
/**
|
|
392
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
393
|
+
*/
|
|
394
|
+
fee?: number;
|
|
395
|
+
/**
|
|
396
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
397
|
+
*/
|
|
398
|
+
timeoutInSeconds?: number;
|
|
399
|
+
/**
|
|
400
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
401
|
+
*/
|
|
402
|
+
simulate?: boolean;
|
|
403
|
+
}) => Promise<AssembledTransaction<null>>;
|
|
404
|
+
/**
|
|
405
|
+
* 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.
|
|
406
|
+
*/
|
|
407
|
+
set_evaluation_agent: ({ caller, addr }: {
|
|
408
|
+
caller: string;
|
|
409
|
+
addr: string;
|
|
410
|
+
}, options?: {
|
|
411
|
+
/**
|
|
412
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
413
|
+
*/
|
|
414
|
+
fee?: number;
|
|
415
|
+
/**
|
|
416
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
417
|
+
*/
|
|
418
|
+
timeoutInSeconds?: number;
|
|
419
|
+
/**
|
|
420
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
421
|
+
*/
|
|
422
|
+
simulate?: boolean;
|
|
423
|
+
}) => Promise<AssembledTransaction<null>>;
|
|
424
|
+
/**
|
|
425
|
+
* 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.
|
|
426
|
+
*/
|
|
427
|
+
set_tranche_addresses: ({ caller, junior_addr, senior_addr, }: {
|
|
428
|
+
caller: string;
|
|
429
|
+
junior_addr: string;
|
|
430
|
+
senior_addr: Option<string>;
|
|
431
|
+
}, options?: {
|
|
432
|
+
/**
|
|
433
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
434
|
+
*/
|
|
435
|
+
fee?: number;
|
|
436
|
+
/**
|
|
437
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
438
|
+
*/
|
|
439
|
+
timeoutInSeconds?: number;
|
|
440
|
+
/**
|
|
441
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
442
|
+
*/
|
|
443
|
+
simulate?: boolean;
|
|
444
|
+
}) => Promise<AssembledTransaction<null>>;
|
|
445
|
+
/**
|
|
446
|
+
* 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.
|
|
447
|
+
*/
|
|
448
|
+
set_admin_rnr: ({ caller, pool_owner_reward_rate, pool_owner_liquidity_rate, ea_reward_rate, ea_liquidity_rate, }: {
|
|
449
|
+
caller: string;
|
|
450
|
+
pool_owner_reward_rate: u32;
|
|
451
|
+
pool_owner_liquidity_rate: u32;
|
|
452
|
+
ea_reward_rate: u32;
|
|
453
|
+
ea_liquidity_rate: u32;
|
|
454
|
+
}, options?: {
|
|
455
|
+
/**
|
|
456
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
457
|
+
*/
|
|
458
|
+
fee?: number;
|
|
459
|
+
/**
|
|
460
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
461
|
+
*/
|
|
462
|
+
timeoutInSeconds?: number;
|
|
463
|
+
/**
|
|
464
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
465
|
+
*/
|
|
466
|
+
simulate?: boolean;
|
|
467
|
+
}) => Promise<AssembledTransaction<null>>;
|
|
468
|
+
/**
|
|
469
|
+
* 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.
|
|
470
|
+
*/
|
|
471
|
+
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, }: {
|
|
472
|
+
caller: string;
|
|
473
|
+
max_credit_line: u128;
|
|
474
|
+
min_deposit_amount: u128;
|
|
475
|
+
pay_period_duration: PayPeriodDuration;
|
|
476
|
+
late_payment_grace_period_days: u32;
|
|
477
|
+
default_grace_period_days: u32;
|
|
478
|
+
principal_only_payment_allowed: boolean;
|
|
479
|
+
}, options?: {
|
|
480
|
+
/**
|
|
481
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
482
|
+
*/
|
|
483
|
+
fee?: number;
|
|
484
|
+
/**
|
|
485
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
486
|
+
*/
|
|
487
|
+
timeoutInSeconds?: number;
|
|
488
|
+
/**
|
|
489
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
490
|
+
*/
|
|
491
|
+
simulate?: boolean;
|
|
492
|
+
}) => Promise<AssembledTransaction<null>>;
|
|
493
|
+
/**
|
|
494
|
+
* 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.
|
|
495
|
+
*/
|
|
496
|
+
set_lp_config: ({ caller, liquidity_cap, max_senior_junior_ratio, fixed_senior_yield_bps, tranches_risk_adjustment_bps, withdrawal_lockout_period_days, auto_redemption_after_lockup, }: {
|
|
497
|
+
caller: string;
|
|
498
|
+
liquidity_cap: u128;
|
|
499
|
+
max_senior_junior_ratio: u32;
|
|
500
|
+
fixed_senior_yield_bps: u32;
|
|
501
|
+
tranches_risk_adjustment_bps: u32;
|
|
502
|
+
withdrawal_lockout_period_days: u32;
|
|
503
|
+
auto_redemption_after_lockup: boolean;
|
|
504
|
+
}, options?: {
|
|
505
|
+
/**
|
|
506
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
507
|
+
*/
|
|
508
|
+
fee?: number;
|
|
509
|
+
/**
|
|
510
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
511
|
+
*/
|
|
512
|
+
timeoutInSeconds?: number;
|
|
513
|
+
/**
|
|
514
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
515
|
+
*/
|
|
516
|
+
simulate?: boolean;
|
|
517
|
+
}) => Promise<AssembledTransaction<null>>;
|
|
518
|
+
/**
|
|
519
|
+
* 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.
|
|
520
|
+
*/
|
|
521
|
+
set_fee_structure: ({ caller, yield_bps, late_fee_bps, front_loading_fee_flat, front_loading_fee_bps, }: {
|
|
522
|
+
caller: string;
|
|
523
|
+
yield_bps: u32;
|
|
524
|
+
late_fee_bps: u32;
|
|
525
|
+
front_loading_fee_flat: u128;
|
|
526
|
+
front_loading_fee_bps: u32;
|
|
527
|
+
}, options?: {
|
|
528
|
+
/**
|
|
529
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
530
|
+
*/
|
|
531
|
+
fee?: number;
|
|
532
|
+
/**
|
|
533
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
534
|
+
*/
|
|
535
|
+
timeoutInSeconds?: number;
|
|
536
|
+
/**
|
|
537
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
538
|
+
*/
|
|
539
|
+
simulate?: boolean;
|
|
540
|
+
}) => Promise<AssembledTransaction<null>>;
|
|
541
|
+
/**
|
|
542
|
+
* 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.
|
|
543
|
+
*/
|
|
544
|
+
set_tranches_policy_type: ({ caller, policy_type, }: {
|
|
545
|
+
caller: string;
|
|
546
|
+
policy_type: TranchesPolicyType;
|
|
547
|
+
}, options?: {
|
|
548
|
+
/**
|
|
549
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
550
|
+
*/
|
|
551
|
+
fee?: number;
|
|
552
|
+
/**
|
|
553
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
554
|
+
*/
|
|
555
|
+
timeoutInSeconds?: number;
|
|
556
|
+
/**
|
|
557
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
558
|
+
*/
|
|
559
|
+
simulate?: boolean;
|
|
560
|
+
}) => Promise<AssembledTransaction<null>>;
|
|
561
|
+
/**
|
|
562
|
+
* 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.
|
|
563
|
+
*/
|
|
564
|
+
add_pool_operator: ({ addr }: {
|
|
565
|
+
addr: string;
|
|
566
|
+
}, options?: {
|
|
567
|
+
/**
|
|
568
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
569
|
+
*/
|
|
570
|
+
fee?: number;
|
|
571
|
+
/**
|
|
572
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
573
|
+
*/
|
|
574
|
+
timeoutInSeconds?: number;
|
|
575
|
+
/**
|
|
576
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
577
|
+
*/
|
|
578
|
+
simulate?: boolean;
|
|
579
|
+
}) => Promise<AssembledTransaction<null>>;
|
|
580
|
+
/**
|
|
581
|
+
* 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.
|
|
582
|
+
*/
|
|
583
|
+
remove_pool_operator: ({ addr }: {
|
|
584
|
+
addr: string;
|
|
585
|
+
}, options?: {
|
|
586
|
+
/**
|
|
587
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
588
|
+
*/
|
|
589
|
+
fee?: number;
|
|
590
|
+
/**
|
|
591
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
592
|
+
*/
|
|
593
|
+
timeoutInSeconds?: number;
|
|
594
|
+
/**
|
|
595
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
596
|
+
*/
|
|
597
|
+
simulate?: boolean;
|
|
598
|
+
}) => Promise<AssembledTransaction<null>>;
|
|
599
|
+
/**
|
|
600
|
+
* 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.
|
|
601
|
+
*/
|
|
602
|
+
enable_pool: ({ caller }: {
|
|
603
|
+
caller: string;
|
|
604
|
+
}, options?: {
|
|
605
|
+
/**
|
|
606
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
607
|
+
*/
|
|
608
|
+
fee?: number;
|
|
609
|
+
/**
|
|
610
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
611
|
+
*/
|
|
612
|
+
timeoutInSeconds?: number;
|
|
613
|
+
/**
|
|
614
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
615
|
+
*/
|
|
616
|
+
simulate?: boolean;
|
|
617
|
+
}) => Promise<AssembledTransaction<null>>;
|
|
618
|
+
/**
|
|
619
|
+
* 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.
|
|
620
|
+
*/
|
|
621
|
+
disable_pool: ({ caller }: {
|
|
622
|
+
caller: string;
|
|
623
|
+
}, options?: {
|
|
624
|
+
/**
|
|
625
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
626
|
+
*/
|
|
627
|
+
fee?: number;
|
|
628
|
+
/**
|
|
629
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
630
|
+
*/
|
|
631
|
+
timeoutInSeconds?: number;
|
|
632
|
+
/**
|
|
633
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
634
|
+
*/
|
|
635
|
+
simulate?: boolean;
|
|
636
|
+
}) => Promise<AssembledTransaction<null>>;
|
|
637
|
+
/**
|
|
638
|
+
* 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.
|
|
639
|
+
*/
|
|
640
|
+
close_pool: ({ caller }: {
|
|
641
|
+
caller: string;
|
|
642
|
+
}, 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<null>>;
|
|
656
|
+
/**
|
|
657
|
+
* 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.
|
|
658
|
+
*/
|
|
659
|
+
close_epoch: (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<null>>;
|
|
673
|
+
/**
|
|
674
|
+
* 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.
|
|
675
|
+
*/
|
|
676
|
+
withdraw_protocol_fees: ({ amount }: {
|
|
677
|
+
amount: u128;
|
|
678
|
+
}, options?: {
|
|
679
|
+
/**
|
|
680
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
681
|
+
*/
|
|
682
|
+
fee?: number;
|
|
683
|
+
/**
|
|
684
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
685
|
+
*/
|
|
686
|
+
timeoutInSeconds?: number;
|
|
687
|
+
/**
|
|
688
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
689
|
+
*/
|
|
690
|
+
simulate?: boolean;
|
|
691
|
+
}) => Promise<AssembledTransaction<null>>;
|
|
692
|
+
/**
|
|
693
|
+
* 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.
|
|
694
|
+
*/
|
|
695
|
+
withdraw_pool_owner_fees: ({ amount }: {
|
|
696
|
+
amount: u128;
|
|
697
|
+
}, options?: {
|
|
698
|
+
/**
|
|
699
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
700
|
+
*/
|
|
701
|
+
fee?: number;
|
|
702
|
+
/**
|
|
703
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
704
|
+
*/
|
|
705
|
+
timeoutInSeconds?: number;
|
|
706
|
+
/**
|
|
707
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
708
|
+
*/
|
|
709
|
+
simulate?: boolean;
|
|
710
|
+
}) => Promise<AssembledTransaction<null>>;
|
|
711
|
+
/**
|
|
712
|
+
* 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.
|
|
713
|
+
*/
|
|
714
|
+
withdraw_ea_fees: ({ caller, amount }: {
|
|
715
|
+
caller: string;
|
|
716
|
+
amount: u128;
|
|
717
|
+
}, options?: {
|
|
718
|
+
/**
|
|
719
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
720
|
+
*/
|
|
721
|
+
fee?: number;
|
|
722
|
+
/**
|
|
723
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
724
|
+
*/
|
|
725
|
+
timeoutInSeconds?: number;
|
|
726
|
+
/**
|
|
727
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
728
|
+
*/
|
|
729
|
+
simulate?: boolean;
|
|
730
|
+
}) => Promise<AssembledTransaction<null>>;
|
|
731
|
+
/**
|
|
732
|
+
* 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.
|
|
733
|
+
*/
|
|
734
|
+
upgrade: ({ new_wasm_hash }: {
|
|
735
|
+
new_wasm_hash: Buffer;
|
|
736
|
+
}, options?: {
|
|
737
|
+
/**
|
|
738
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
739
|
+
*/
|
|
740
|
+
fee?: number;
|
|
741
|
+
/**
|
|
742
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
743
|
+
*/
|
|
744
|
+
timeoutInSeconds?: number;
|
|
745
|
+
/**
|
|
746
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
747
|
+
*/
|
|
748
|
+
simulate?: boolean;
|
|
749
|
+
}) => Promise<AssembledTransaction<null>>;
|
|
750
|
+
}
|
|
751
|
+
export declare class Client extends ContractClient {
|
|
752
|
+
readonly options: ContractClientOptions;
|
|
753
|
+
constructor(options: ContractClientOptions);
|
|
754
|
+
readonly fromJSON: {
|
|
755
|
+
initialize: (json: string) => AssembledTransaction<null>;
|
|
756
|
+
set_huma_config: (json: string) => AssembledTransaction<null>;
|
|
757
|
+
set_contract_addrs: (json: string) => AssembledTransaction<null>;
|
|
758
|
+
set_storage_contract_addrs: (json: string) => AssembledTransaction<null>;
|
|
759
|
+
set_pool_name: (json: string) => AssembledTransaction<null>;
|
|
760
|
+
set_pool_owner: (json: string) => AssembledTransaction<null>;
|
|
761
|
+
set_pool_owner_treasury: (json: string) => AssembledTransaction<null>;
|
|
762
|
+
set_evaluation_agent: (json: string) => AssembledTransaction<null>;
|
|
763
|
+
set_tranche_addresses: (json: string) => AssembledTransaction<null>;
|
|
764
|
+
set_admin_rnr: (json: string) => AssembledTransaction<null>;
|
|
765
|
+
set_pool_settings: (json: string) => AssembledTransaction<null>;
|
|
766
|
+
set_lp_config: (json: string) => AssembledTransaction<null>;
|
|
767
|
+
set_fee_structure: (json: string) => AssembledTransaction<null>;
|
|
768
|
+
set_tranches_policy_type: (json: string) => AssembledTransaction<null>;
|
|
769
|
+
add_pool_operator: (json: string) => AssembledTransaction<null>;
|
|
770
|
+
remove_pool_operator: (json: string) => AssembledTransaction<null>;
|
|
771
|
+
enable_pool: (json: string) => AssembledTransaction<null>;
|
|
772
|
+
disable_pool: (json: string) => AssembledTransaction<null>;
|
|
773
|
+
close_pool: (json: string) => AssembledTransaction<null>;
|
|
774
|
+
close_epoch: (json: string) => AssembledTransaction<null>;
|
|
775
|
+
withdraw_protocol_fees: (json: string) => AssembledTransaction<null>;
|
|
776
|
+
withdraw_pool_owner_fees: (json: string) => AssembledTransaction<null>;
|
|
777
|
+
withdraw_ea_fees: (json: string) => AssembledTransaction<null>;
|
|
778
|
+
upgrade: (json: string) => AssembledTransaction<null>;
|
|
779
|
+
};
|
|
780
|
+
}
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
19
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
20
|
+
};
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.Client = exports.Errors = exports.networks = exports.rpc = exports.contract = void 0;
|
|
30
|
+
const buffer_1 = require("buffer");
|
|
31
|
+
const contract_1 = require("@stellar/stellar-sdk/contract");
|
|
32
|
+
__exportStar(require("@stellar/stellar-sdk"), exports);
|
|
33
|
+
exports.contract = __importStar(require("@stellar/stellar-sdk/contract"));
|
|
34
|
+
exports.rpc = __importStar(require("@stellar/stellar-sdk/rpc"));
|
|
35
|
+
if (typeof window !== "undefined") {
|
|
36
|
+
//@ts-ignore Buffer exists
|
|
37
|
+
window.Buffer = window.Buffer || buffer_1.Buffer;
|
|
38
|
+
}
|
|
39
|
+
exports.networks = {
|
|
40
|
+
unknown: {
|
|
41
|
+
networkPassphrase: "Public Global Stellar Network ; September 2015",
|
|
42
|
+
contractId: "CBQ7KII3OETETYM65TFJT2YPVFFK42V4WUBIMJJNWKTIZ5XOWYZW3XAO",
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
exports.Errors = {
|
|
46
|
+
801: { message: "StartDateLaterThanEndDate" },
|
|
47
|
+
1: { message: "AlreadyInitialized" },
|
|
48
|
+
2: { message: "ProtocolIsPausedOrPoolIsNotOn" },
|
|
49
|
+
3: { message: "PoolOwnerOrHumaOwnerRequired" },
|
|
50
|
+
4: { message: "PoolOperatorRequired" },
|
|
51
|
+
5: { message: "AuthorizedContractCallerRequired" },
|
|
52
|
+
6: { message: "UnsupportedFunction" },
|
|
53
|
+
7: { message: "ZeroAmountProvided" },
|
|
54
|
+
301: { message: "PoolOwnerOrEARequired" },
|
|
55
|
+
302: { message: "AdminRewardRateTooHigh" },
|
|
56
|
+
303: { message: "MinDepositAmountTooLow" },
|
|
57
|
+
304: { message: "LatePaymentGracePeriodTooLong" },
|
|
58
|
+
305: { message: "InsufficientAmountForRequest" },
|
|
59
|
+
306: { message: "InvalidBasisPointHigherThan10000" },
|
|
60
|
+
307: { message: "EpochClosedTooEarly" },
|
|
61
|
+
};
|
|
62
|
+
class Client extends contract_1.Client {
|
|
63
|
+
options;
|
|
64
|
+
constructor(options) {
|
|
65
|
+
super(new contract_1.Spec([
|
|
66
|
+
"AAAAAQAAAAAAAAAAAAAAIFBvb2xNYW5hZ2VyQWRkcmVzc2VzQ2hhbmdlZEV2ZW50AAAAAgAAAAAAAAAEcG9vbAAAABMAAAAAAAAADHBvb2xfc3RvcmFnZQAAABM=",
|
|
67
|
+
"AAAAAQAAAAAAAAAAAAAAIFBvb2xTdG9yYWdlQWRkcmVzc2VzQ2hhbmdlZEV2ZW50AAAAAwAAAAAAAAAGY3JlZGl0AAAAAAATAAAAAAAAAARwb29sAAAAEwAAAAAAAAAMcG9vbF9tYW5hZ2VyAAAAEw==",
|
|
68
|
+
"AAAAAgAAAAAAAAAAAAAADUNsaWVudERhdGFLZXkAAAAAAAADAAAAAAAAAAAAAAAKSHVtYUNvbmZpZwAAAAAAAAAAAAAAAAALUG9vbFN0b3JhZ2UAAAAAAAAAAAAAAAAEUG9vbA==",
|
|
69
|
+
"AAAAAQAAAAAAAAAAAAAAFlBvb2xPcGVyYXRvckFkZGVkRXZlbnQAAAAAAAEAAAAAAAAACG9wZXJhdG9yAAAAEw==",
|
|
70
|
+
"AAAAAQAAAAAAAAAAAAAAGFBvb2xPcGVyYXRvclJlbW92ZWRFdmVudAAAAAEAAAAAAAAACG9wZXJhdG9yAAAAEw==",
|
|
71
|
+
"AAAAAQAAAAAAAAAAAAAAFkh1bWFDb25maWdDaGFuZ2VkRXZlbnQAAAAAAAMA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ZWxkX2JwcwAAAAAAAAQ=",
|
|
127
|
+
"AAAAAgAAAAAAAAAAAAAAClBvb2xTdGF0dXMAAAAAAAMAAAAAAAAAAAAAAANPZmYAAAAAAAAAAAAAAAACT24AAAAAAAAAAAAAAAAABkNsb3NlZAAA",
|
|
128
|
+
"AAAAAQAAAAAAAAAAAAAABUVwb2NoAAAAAAAAAgAAAAAAAAAIZW5kX3RpbWUAAAAGAAAAAAAAAAJpZAAAAAAABg==",
|
|
129
|
+
"AAAAAQAAAAAAAAAAAAAACEFkbWluUm5SAAAABAAAAAAAAAAVbGlxdWlkaXR5X3JhdGVfYnBzX2VhAAAAAAAABAAAAAAAAAAdbGlxdWlkaXR5X3JhdGVfYnBzX3Bvb2xfb3duZXIAAAAAAAAEAAAAAAAAABJyZXdhcmRfcmF0ZV9icHNfZWEAAAAAAAQAAAAAAAAAGnJld2FyZF9yYXRlX2Jwc19wb29sX293bmVyAAAAAAAE",
|
|
130
|
+
"AAAAAQAAAAAAAAAAAAAAEFRyYW5jaGVBZGRyZXNzZXMAAAABAAAAAAAAAAVhZGRycwAAAAAAA+oAAAPoAAAAEw==",
|
|
131
|
+
"AAAAAQAAAAAAAAAAAAAADVRyYW5jaGVBc3NldHMAAAAAAAABAAAAAAAAAAZhc3NldHMAAAAAA+oAAAAK",
|
|
132
|
+
"AAAAAQAAAAAAAAAAAAAAFkVwb2NoUmVkZW1wdGlvblN1bW1hcnkAAAAAAAQAAAAAAAAACGVwb2NoX2lkAAAABgAAAAAAAAAWdG90YWxfYW1vdW50X3Byb2Nlc3NlZAAAAAAACgAAAAAAAAAWdG90YWxfc2hhcmVzX3Byb2Nlc3NlZAAAAAAACgAAAAAAAAAWdG90YWxfc2hhcmVzX3JlcXVlc3RlZAAAAAAACg==",
|
|
133
|
+
]), options);
|
|
134
|
+
this.options = options;
|
|
135
|
+
}
|
|
136
|
+
fromJSON = {
|
|
137
|
+
initialize: (this.txFromJSON),
|
|
138
|
+
set_huma_config: (this.txFromJSON),
|
|
139
|
+
set_contract_addrs: (this.txFromJSON),
|
|
140
|
+
set_storage_contract_addrs: (this.txFromJSON),
|
|
141
|
+
set_pool_name: (this.txFromJSON),
|
|
142
|
+
set_pool_owner: (this.txFromJSON),
|
|
143
|
+
set_pool_owner_treasury: (this.txFromJSON),
|
|
144
|
+
set_evaluation_agent: (this.txFromJSON),
|
|
145
|
+
set_tranche_addresses: (this.txFromJSON),
|
|
146
|
+
set_admin_rnr: (this.txFromJSON),
|
|
147
|
+
set_pool_settings: (this.txFromJSON),
|
|
148
|
+
set_lp_config: (this.txFromJSON),
|
|
149
|
+
set_fee_structure: (this.txFromJSON),
|
|
150
|
+
set_tranches_policy_type: (this.txFromJSON),
|
|
151
|
+
add_pool_operator: (this.txFromJSON),
|
|
152
|
+
remove_pool_operator: (this.txFromJSON),
|
|
153
|
+
enable_pool: (this.txFromJSON),
|
|
154
|
+
disable_pool: (this.txFromJSON),
|
|
155
|
+
close_pool: (this.txFromJSON),
|
|
156
|
+
close_epoch: (this.txFromJSON),
|
|
157
|
+
withdraw_protocol_fees: (this.txFromJSON),
|
|
158
|
+
withdraw_pool_owner_fees: (this.txFromJSON),
|
|
159
|
+
withdraw_ea_fees: (this.txFromJSON),
|
|
160
|
+
upgrade: (this.txFromJSON),
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
exports.Client = Client;
|
package/package.json
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.0.15-beta.
|
|
2
|
+
"version": "0.0.15-beta.59+40fd4aa",
|
|
3
3
|
"name": "@huma-finance/soroban-pool-manager",
|
|
4
|
-
"exports":
|
|
4
|
+
"exports": {
|
|
5
|
+
".": {
|
|
6
|
+
"require": "./dist/cjs/index.js",
|
|
7
|
+
"import": "./dist/index.js"
|
|
8
|
+
}
|
|
9
|
+
},
|
|
5
10
|
"typings": "dist/index.d.ts",
|
|
6
11
|
"scripts": {
|
|
7
|
-
"build": "tsc",
|
|
8
|
-
"clean": "tsc --build --clean"
|
|
12
|
+
"build": "tsc --project ./tsconfig.json && tsc --project ./tsconfig.cjs.json",
|
|
13
|
+
"clean": "tsc --build --clean && rm -rf dist"
|
|
9
14
|
},
|
|
10
15
|
"dependencies": {
|
|
11
16
|
"@stellar/stellar-sdk": "12.1.0",
|
|
@@ -18,5 +23,5 @@
|
|
|
18
23
|
"access": "public",
|
|
19
24
|
"registry": "https://registry.npmjs.org/"
|
|
20
25
|
},
|
|
21
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "40fd4aa4c664fa6ece33dd926437e8bfdbe346d1"
|
|
22
27
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"module": "commonjs",
|
|
4
|
+
"target": "ESNext",
|
|
5
|
+
"rootDir": "./src",
|
|
6
|
+
"outDir": "./dist/cjs" /* Redirect output structure to the directory. */,
|
|
7
|
+
"declaration": true /* Generate .d.ts files from TypeScript and JavaScript files in your project. */,
|
|
8
|
+
"strict": true,
|
|
9
|
+
"esModuleInterop": true,
|
|
10
|
+
"skipLibCheck": true,
|
|
11
|
+
"resolveJsonModule": true,
|
|
12
|
+
"forceConsistentCasingInFileNames": true,
|
|
13
|
+
"paths": {
|
|
14
|
+
"@stellar/stellar-sdk/contract": [
|
|
15
|
+
"../../node_modules/@stellar/stellar-sdk/lib/contract"
|
|
16
|
+
],
|
|
17
|
+
"@stellar/stellar-sdk/rpc": [
|
|
18
|
+
"../../node_modules/@stellar/stellar-sdk/lib/rpc"
|
|
19
|
+
]
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|