@huma-finance/soroban-pool 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 +62 -125
- package/dist/cjs/index.js +38 -43
- package/dist/esm/index.d.ts +62 -125
- package/dist/esm/index.js +44 -49
- 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 +62 -125
- package/package.json +2 -2
- package/src/index.ts +198 -271
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 CCUM2YAJM3EY2RTFMX5P6PDBT7ZZWPNNQLMW4CGIGQJKLTLT7J2SMAMV \
|
|
12
12
|
--output-dir ./path/to/tb-pool
|
|
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 CCUM2YAJM3EY2RTFMX5P6PDBT7ZZWPNNQLMW4CGIGQJKLTLT7J2SMAMV --name tb-pool"
|
|
34
34
|
}
|
|
35
35
|
```
|
|
36
36
|
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1,27 +1,53 @@
|
|
|
1
|
-
import { AssembledTransaction, ContractClient, ContractClientOptions } from
|
|
2
|
-
import type { u32, u64, u128, Option } from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
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";
|
|
6
6
|
export declare const networks: {
|
|
7
7
|
readonly testnet: {
|
|
8
8
|
readonly networkPassphrase: "Test SDF Network ; September 2015";
|
|
9
|
-
readonly contractId: "
|
|
9
|
+
readonly contractId: "CCUM2YAJM3EY2RTFMX5P6PDBT7ZZWPNNQLMW4CGIGQJKLTLT7J2SMAMV";
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
12
|
export type ClientDataKey = {
|
|
13
|
-
tag:
|
|
13
|
+
tag: "HumaConfig";
|
|
14
14
|
values: void;
|
|
15
15
|
} | {
|
|
16
|
-
tag:
|
|
16
|
+
tag: "PoolStorage";
|
|
17
17
|
values: void;
|
|
18
18
|
} | {
|
|
19
|
-
tag:
|
|
19
|
+
tag: "PoolManager";
|
|
20
20
|
values: void;
|
|
21
21
|
} | {
|
|
22
|
-
tag:
|
|
22
|
+
tag: "Credit";
|
|
23
|
+
values: void;
|
|
24
|
+
} | {
|
|
25
|
+
tag: "CreditManager";
|
|
23
26
|
values: void;
|
|
24
27
|
};
|
|
28
|
+
export interface HumaConfigChangedEvent {
|
|
29
|
+
huma_config: string;
|
|
30
|
+
}
|
|
31
|
+
export interface PoolAddressesChangedEvent {
|
|
32
|
+
credit: string;
|
|
33
|
+
credit_manager: string;
|
|
34
|
+
pool_manager: string;
|
|
35
|
+
pool_storage: string;
|
|
36
|
+
}
|
|
37
|
+
export interface HumaConfigChangedEvent {
|
|
38
|
+
huma_config: string;
|
|
39
|
+
}
|
|
40
|
+
export interface PoolAddressesChangedEvent {
|
|
41
|
+
pool_manager: string;
|
|
42
|
+
pool_storage: string;
|
|
43
|
+
}
|
|
44
|
+
export interface CreditAddressesChangedEvent {
|
|
45
|
+
credit: string;
|
|
46
|
+
credit_manager: string;
|
|
47
|
+
}
|
|
48
|
+
export interface TranchesPolicyTypeChangedEvent {
|
|
49
|
+
policy_type: TranchesPolicyType;
|
|
50
|
+
}
|
|
25
51
|
/**
|
|
26
52
|
* Event for the distribution of profit in the pool.
|
|
27
53
|
* # Fields:
|
|
@@ -66,41 +92,11 @@ export interface LossRecoveryDistributedEvent {
|
|
|
66
92
|
senior_total_assets: u128;
|
|
67
93
|
senior_total_loss: u128;
|
|
68
94
|
}
|
|
69
|
-
export interface TranchesPolicyTypeChangedEvent {
|
|
70
|
-
policy_type: TranchesPolicyType;
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* The senior yield tracker has been refreshed.
|
|
74
|
-
* # Fields:
|
|
75
|
-
* * `total_assets` - The total assets in the senior tranche after the refresh.
|
|
76
|
-
* * `unpaid_yield` - The amount of unpaid yield to the senior tranche after the refresh.
|
|
77
|
-
* * `last_updated_date` - The last time the tracker was updated after the refresh.
|
|
78
|
-
*/
|
|
79
|
-
export interface YieldTrackerRefreshedEvent {
|
|
80
|
-
last_updated_date: u64;
|
|
81
|
-
total_assets: u128;
|
|
82
|
-
unpaid_yield: u128;
|
|
83
|
-
}
|
|
84
|
-
export type FixedSeniorYieldTranchesPolicyDataKey = {
|
|
85
|
-
tag: 'SeniorYieldTracker';
|
|
86
|
-
values: void;
|
|
87
|
-
};
|
|
88
|
-
export interface SeniorYieldTracker {
|
|
89
|
-
last_updated_date: u64;
|
|
90
|
-
total_assets: u128;
|
|
91
|
-
unpaid_yield: u128;
|
|
92
|
-
}
|
|
93
|
-
export interface FixedSeniorYieldTranchesPolicy {
|
|
94
|
-
placeholder: boolean;
|
|
95
|
-
}
|
|
96
|
-
export interface RiskAdjustedTranchesPolicy {
|
|
97
|
-
placeholder: boolean;
|
|
98
|
-
}
|
|
99
95
|
export type TranchesPolicyType = {
|
|
100
|
-
tag:
|
|
96
|
+
tag: "FixedSeniorYield";
|
|
101
97
|
values: void;
|
|
102
98
|
} | {
|
|
103
|
-
tag:
|
|
99
|
+
tag: "RiskAdjusted";
|
|
104
100
|
values: void;
|
|
105
101
|
};
|
|
106
102
|
export interface TrancheLosses {
|
|
@@ -112,13 +108,13 @@ export interface AccruedIncomes {
|
|
|
112
108
|
protocol_income: u128;
|
|
113
109
|
}
|
|
114
110
|
export type PayPeriodDuration = {
|
|
115
|
-
tag:
|
|
111
|
+
tag: "Monthly";
|
|
116
112
|
values: void;
|
|
117
113
|
} | {
|
|
118
|
-
tag:
|
|
114
|
+
tag: "Quarterly";
|
|
119
115
|
values: void;
|
|
120
116
|
} | {
|
|
121
|
-
tag:
|
|
117
|
+
tag: "SemiAnnually";
|
|
122
118
|
values: void;
|
|
123
119
|
};
|
|
124
120
|
export interface PoolSettings {
|
|
@@ -143,16 +139,16 @@ export interface FeeStructure {
|
|
|
143
139
|
yield_bps: u32;
|
|
144
140
|
}
|
|
145
141
|
export type PoolStatus = {
|
|
146
|
-
tag:
|
|
142
|
+
tag: "Off";
|
|
147
143
|
values: void;
|
|
148
144
|
} | {
|
|
149
|
-
tag:
|
|
145
|
+
tag: "On";
|
|
150
146
|
values: void;
|
|
151
147
|
} | {
|
|
152
|
-
tag:
|
|
148
|
+
tag: "Closed";
|
|
153
149
|
values: void;
|
|
154
150
|
};
|
|
155
|
-
export interface
|
|
151
|
+
export interface Epoch {
|
|
156
152
|
end_time: u64;
|
|
157
153
|
id: u64;
|
|
158
154
|
}
|
|
@@ -172,12 +168,12 @@ export interface Client {
|
|
|
172
168
|
/**
|
|
173
169
|
* 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.
|
|
174
170
|
*/
|
|
175
|
-
initialize: ({ huma_config, pool_manager, pool_storage,
|
|
171
|
+
initialize: ({ huma_config, pool_manager, pool_storage, credit_manager, credit, }: {
|
|
176
172
|
huma_config: string;
|
|
177
173
|
pool_manager: string;
|
|
178
174
|
pool_storage: string;
|
|
175
|
+
credit_manager: string;
|
|
179
176
|
credit: string;
|
|
180
|
-
tranches_policy: TranchesPolicyType;
|
|
181
177
|
}, options?: {
|
|
182
178
|
/**
|
|
183
179
|
* The fee to pay for the transaction. Default: BASE_FEE
|
|
@@ -195,69 +191,8 @@ export interface Client {
|
|
|
195
191
|
/**
|
|
196
192
|
* 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.
|
|
197
193
|
*/
|
|
198
|
-
set_huma_config: ({
|
|
199
|
-
|
|
200
|
-
caller: string;
|
|
201
|
-
}, options?: {
|
|
202
|
-
/**
|
|
203
|
-
* The fee to pay for the transaction. Default: BASE_FEE
|
|
204
|
-
*/
|
|
205
|
-
fee?: number;
|
|
206
|
-
/**
|
|
207
|
-
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
208
|
-
*/
|
|
209
|
-
timeoutInSeconds?: number;
|
|
210
|
-
/**
|
|
211
|
-
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
212
|
-
*/
|
|
213
|
-
simulate?: boolean;
|
|
214
|
-
}) => Promise<AssembledTransaction<null>>;
|
|
215
|
-
/**
|
|
216
|
-
* Construct and simulate a set_pool_storage 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.
|
|
217
|
-
*/
|
|
218
|
-
set_pool_storage: ({ addr, caller }: {
|
|
219
|
-
addr: string;
|
|
220
|
-
caller: string;
|
|
221
|
-
}, options?: {
|
|
222
|
-
/**
|
|
223
|
-
* The fee to pay for the transaction. Default: BASE_FEE
|
|
224
|
-
*/
|
|
225
|
-
fee?: number;
|
|
226
|
-
/**
|
|
227
|
-
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
228
|
-
*/
|
|
229
|
-
timeoutInSeconds?: number;
|
|
230
|
-
/**
|
|
231
|
-
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
232
|
-
*/
|
|
233
|
-
simulate?: boolean;
|
|
234
|
-
}) => Promise<AssembledTransaction<null>>;
|
|
235
|
-
/**
|
|
236
|
-
* Construct and simulate a set_credit 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.
|
|
237
|
-
*/
|
|
238
|
-
set_credit: ({ addr, caller }: {
|
|
239
|
-
addr: string;
|
|
240
|
-
caller: string;
|
|
241
|
-
}, options?: {
|
|
242
|
-
/**
|
|
243
|
-
* The fee to pay for the transaction. Default: BASE_FEE
|
|
244
|
-
*/
|
|
245
|
-
fee?: number;
|
|
246
|
-
/**
|
|
247
|
-
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
248
|
-
*/
|
|
249
|
-
timeoutInSeconds?: number;
|
|
250
|
-
/**
|
|
251
|
-
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
252
|
-
*/
|
|
253
|
-
simulate?: boolean;
|
|
254
|
-
}) => Promise<AssembledTransaction<null>>;
|
|
255
|
-
/**
|
|
256
|
-
* 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.
|
|
257
|
-
*/
|
|
258
|
-
set_pool_manager: ({ addr, caller }: {
|
|
259
|
-
addr: string;
|
|
260
|
-
caller: string;
|
|
194
|
+
set_huma_config: ({ huma_config }: {
|
|
195
|
+
huma_config: string;
|
|
261
196
|
}, options?: {
|
|
262
197
|
/**
|
|
263
198
|
* The fee to pay for the transaction. Default: BASE_FEE
|
|
@@ -273,11 +208,13 @@ export interface Client {
|
|
|
273
208
|
simulate?: boolean;
|
|
274
209
|
}) => Promise<AssembledTransaction<null>>;
|
|
275
210
|
/**
|
|
276
|
-
* Construct and simulate a
|
|
211
|
+
* 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.
|
|
277
212
|
*/
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
213
|
+
set_contract_addrs: ({ pool_storage, pool_manager, credit, credit_manager, }: {
|
|
214
|
+
pool_storage: string;
|
|
215
|
+
pool_manager: string;
|
|
216
|
+
credit: string;
|
|
217
|
+
credit_manager: string;
|
|
281
218
|
}, options?: {
|
|
282
219
|
/**
|
|
283
220
|
* The fee to pay for the transaction. Default: BASE_FEE
|
|
@@ -295,7 +232,8 @@ export interface Client {
|
|
|
295
232
|
/**
|
|
296
233
|
* Construct and simulate a distribute_profit 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.
|
|
297
234
|
*/
|
|
298
|
-
distribute_profit: ({ profit }: {
|
|
235
|
+
distribute_profit: ({ caller, profit }: {
|
|
236
|
+
caller: string;
|
|
299
237
|
profit: u128;
|
|
300
238
|
}, options?: {
|
|
301
239
|
/**
|
|
@@ -314,7 +252,8 @@ export interface Client {
|
|
|
314
252
|
/**
|
|
315
253
|
* Construct and simulate a distribute_loss 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.
|
|
316
254
|
*/
|
|
317
|
-
distribute_loss: ({ loss }: {
|
|
255
|
+
distribute_loss: ({ caller, loss }: {
|
|
256
|
+
caller: string;
|
|
318
257
|
loss: u128;
|
|
319
258
|
}, options?: {
|
|
320
259
|
/**
|
|
@@ -333,7 +272,8 @@ export interface Client {
|
|
|
333
272
|
/**
|
|
334
273
|
* Construct and simulate a distribute_loss_recovery 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.
|
|
335
274
|
*/
|
|
336
|
-
distribute_loss_recovery: ({ loss_recovery }: {
|
|
275
|
+
distribute_loss_recovery: ({ caller, loss_recovery }: {
|
|
276
|
+
caller: string;
|
|
337
277
|
loss_recovery: u128;
|
|
338
278
|
}, options?: {
|
|
339
279
|
/**
|
|
@@ -407,10 +347,7 @@ export declare class Client extends ContractClient {
|
|
|
407
347
|
readonly fromJSON: {
|
|
408
348
|
initialize: (json: string) => AssembledTransaction<null>;
|
|
409
349
|
set_huma_config: (json: string) => AssembledTransaction<null>;
|
|
410
|
-
|
|
411
|
-
set_credit: (json: string) => AssembledTransaction<null>;
|
|
412
|
-
set_pool_manager: (json: string) => AssembledTransaction<null>;
|
|
413
|
-
set_tranches_policy_type: (json: string) => AssembledTransaction<null>;
|
|
350
|
+
set_contract_addrs: (json: string) => AssembledTransaction<null>;
|
|
414
351
|
distribute_profit: (json: string) => AssembledTransaction<null>;
|
|
415
352
|
distribute_loss: (json: string) => AssembledTransaction<null>;
|
|
416
353
|
distribute_loss_recovery: (json: string) => AssembledTransaction<null>;
|
package/dist/cjs/index.js
CHANGED
|
@@ -21,66 +21,61 @@ 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: "CCUM2YAJM3EY2RTFMX5P6PDBT7ZZWPNNQLMW4CGIGQJKLTLT7J2SMAMV",
|
|
32
32
|
},
|
|
33
33
|
};
|
|
34
34
|
class Client extends index_js_1.ContractClient {
|
|
35
35
|
options;
|
|
36
36
|
constructor(options) {
|
|
37
37
|
super(new stellar_sdk_1.ContractSpec([
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
'AAAAAQAAAAAAAAAAAAAAEFRyYW5jaGVBZGRyZXNzZXMAAAABAAAAAAAAAAVhZGRycwAAAAAAA+oAAAPoAAAAEw==',
|
|
73
|
-
'AAAAAQAAAAAAAAAAAAAADVRyYW5jaGVBc3NldHMAAAAAAAABAAAAAAAAAAZhc3NldHMAAAAAA+oAAAAK',
|
|
38
|
+
"AAAAAgAAAAAAAAAAAAAADUNsaWVudERhdGFLZXkAAAAAAAAFAAAAAAAAAAAAAAAKSHVtYUNvbmZpZwAAAAAAAAAAAAAAAAALUG9vbFN0b3JhZ2UAAAAAAAAAAAAAAAALUG9vbE1hbmFnZXIAAAAAAAAAAAAAAAAGQ3JlZGl0AAAAAAAAAAAAAAAAAA1DcmVkaXRNYW5hZ2VyAAAA",
|
|
39
|
+
"AAAAAQAAAA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dGVfZmVlX2JwcwAAAAQAAAAAAAAACXlpZWxkX2JwcwAAAAAAAAQ=",
|
|
67
|
+
"AAAAAgAAAAAAAAAAAAAAClBvb2xTdGF0dXMAAAAAAAMAAAAAAAAAAAAAAANPZmYAAAAAAAAAAAAAAAACT24AAAAAAAAAAAAAAAAABkNsb3NlZAAA",
|
|
68
|
+
"AAAAAQAAAAAAAAAAAAAABUVwb2NoAAAAAAAAAgAAAAAAAAAIZW5kX3RpbWUAAAAGAAAAAAAAAAJpZAAAAAAABg==",
|
|
69
|
+
"AAAAAQAAAAAAAAAAAAAACEFkbWluUm5SAAAABAAAAAAAAAAVbGlxdWlkaXR5X3JhdGVfYnBzX2VhAAAAAAAABAAAAAAAAAAdbGlxdWlkaXR5X3JhdGVfYnBzX3Bvb2xfb3duZXIAAAAAAAAEAAAAAAAAABJyZXdhcmRfcmF0ZV9icHNfZWEAAAAAAAQAAAAAAAAAGnJld2FyZF9yYXRlX2Jwc19wb29sX293bmVyAAAAAAAE",
|
|
70
|
+
"AAAAAQAAAAAAAAAAAAAAEFRyYW5jaGVBZGRyZXNzZXMAAAABAAAAAAAAAAVhZGRycwAAAAAAA+oAAAPoAAAAEw==",
|
|
71
|
+
"AAAAAQAAAAAAAAAAAAAADVRyYW5jaGVBc3NldHMAAAAAAAABAAAAAAAAAAZhc3NldHMAAAAAA+oAAAAK",
|
|
74
72
|
]), options);
|
|
75
73
|
this.options = options;
|
|
76
74
|
}
|
|
77
75
|
fromJSON = {
|
|
78
76
|
initialize: (this.txFromJSON),
|
|
79
77
|
set_huma_config: (this.txFromJSON),
|
|
80
|
-
|
|
81
|
-
set_credit: (this.txFromJSON),
|
|
82
|
-
set_pool_manager: (this.txFromJSON),
|
|
83
|
-
set_tranches_policy_type: (this.txFromJSON),
|
|
78
|
+
set_contract_addrs: (this.txFromJSON),
|
|
84
79
|
distribute_profit: (this.txFromJSON),
|
|
85
80
|
distribute_loss: (this.txFromJSON),
|
|
86
81
|
distribute_loss_recovery: (this.txFromJSON),
|