@defisaver/positions-sdk 0.0.16 → 0.0.17

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.
Files changed (83) hide show
  1. package/cjs/compoundV3/index.d.ts +1 -1
  2. package/cjs/compoundV3/index.js +3 -2
  3. package/cjs/config/contracts.d.ts +72 -184
  4. package/cjs/config/contracts.js +0 -16
  5. package/cjs/helpers/compoundHelpers/index.js +2 -2
  6. package/cjs/markets/curveUsd/index.d.ts +0 -2
  7. package/cjs/markets/curveUsd/index.js +1 -14
  8. package/cjs/types/compound.d.ts +1 -0
  9. package/cjs/types/contracts/generated/index.d.ts +0 -2
  10. package/cjs/types/curveUsd.d.ts +1 -2
  11. package/cjs/types/curveUsd.js +0 -1
  12. package/esm/compoundV3/index.d.ts +1 -1
  13. package/esm/compoundV3/index.js +3 -2
  14. package/esm/config/contracts.d.ts +72 -184
  15. package/esm/config/contracts.js +0 -16
  16. package/esm/helpers/compoundHelpers/index.js +2 -2
  17. package/esm/markets/curveUsd/index.d.ts +0 -2
  18. package/esm/markets/curveUsd/index.js +0 -12
  19. package/esm/types/compound.d.ts +1 -0
  20. package/esm/types/contracts/generated/index.d.ts +0 -2
  21. package/esm/types/curveUsd.d.ts +1 -2
  22. package/esm/types/curveUsd.js +0 -1
  23. package/package.json +40 -40
  24. package/src/aaveV2/index.ts +220 -220
  25. package/src/aaveV3/index.ts +556 -556
  26. package/src/assets/index.ts +60 -60
  27. package/src/chickenBonds/index.ts +123 -123
  28. package/src/compoundV2/index.ts +206 -206
  29. package/src/compoundV3/index.ts +273 -269
  30. package/src/config/contracts.js +651 -651
  31. package/src/constants/index.ts +3 -3
  32. package/src/contracts.ts +100 -100
  33. package/src/curveUsd/index.ts +228 -228
  34. package/src/exchange/index.ts +17 -17
  35. package/src/helpers/aaveHelpers/index.ts +134 -134
  36. package/src/helpers/chickenBondsHelpers/index.ts +23 -23
  37. package/src/helpers/compoundHelpers/index.ts +181 -181
  38. package/src/helpers/curveUsdHelpers/index.ts +32 -32
  39. package/src/helpers/index.ts +5 -5
  40. package/src/helpers/makerHelpers/index.ts +94 -94
  41. package/src/helpers/sparkHelpers/index.ts +106 -106
  42. package/src/index.ts +40 -40
  43. package/src/liquity/index.ts +103 -103
  44. package/src/maker/index.ts +101 -101
  45. package/src/markets/aave/index.ts +80 -80
  46. package/src/markets/aave/marketAssets.ts +32 -32
  47. package/src/markets/compound/index.ts +85 -85
  48. package/src/markets/compound/marketsAssets.ts +35 -35
  49. package/src/markets/curveUsd/index.ts +69 -69
  50. package/src/markets/index.ts +3 -3
  51. package/src/markets/spark/index.ts +29 -29
  52. package/src/markets/spark/marketAssets.ts +9 -9
  53. package/src/moneymarket/moneymarketCommonService.ts +75 -75
  54. package/src/morpho/markets.ts +39 -39
  55. package/src/morphoAaveV2/index.ts +254 -254
  56. package/src/morphoAaveV3/index.ts +617 -617
  57. package/src/multicall/index.ts +22 -22
  58. package/src/services/dsrService.ts +15 -15
  59. package/src/services/priceService.ts +21 -21
  60. package/src/services/utils.ts +34 -34
  61. package/src/spark/index.ts +413 -413
  62. package/src/staking/staking.ts +167 -167
  63. package/src/types/aave.ts +256 -256
  64. package/src/types/chickenBonds.ts +45 -45
  65. package/src/types/common.ts +83 -83
  66. package/src/types/compound.ts +122 -121
  67. package/src/types/contracts/generated/index.ts +0 -2
  68. package/src/types/curveUsd.ts +112 -112
  69. package/src/types/index.ts +6 -6
  70. package/src/types/liquity.ts +29 -29
  71. package/src/types/maker.ts +50 -50
  72. package/src/types/spark.ts +106 -106
  73. package/cjs/types/contracts/generated/CrvUSDsfrxETHAmm.d.ts +0 -139
  74. package/cjs/types/contracts/generated/CrvUSDsfrxETHAmm.js +0 -5
  75. package/cjs/types/contracts/generated/CrvUSDsfrxETHController.d.ts +0 -205
  76. package/cjs/types/contracts/generated/CrvUSDsfrxETHController.js +0 -5
  77. package/esm/types/contracts/generated/CrvUSDsfrxETHAmm.d.ts +0 -139
  78. package/esm/types/contracts/generated/CrvUSDsfrxETHAmm.js +0 -4
  79. package/esm/types/contracts/generated/CrvUSDsfrxETHController.d.ts +0 -205
  80. package/esm/types/contracts/generated/CrvUSDsfrxETHController.js +0 -4
  81. package/src/types/contracts/generated/CrvUSDsfrxETHAmm.ts +0 -286
  82. package/src/types/contracts/generated/CrvUSDsfrxETHController.ts +0 -403
  83. package/yarn-error.log +0 -64
@@ -1,286 +0,0 @@
1
- /* Autogenerated file. Do not edit manually. */
2
- /* tslint:disable */
3
- /* eslint-disable */
4
-
5
- import type BN from "bn.js";
6
- import type { ContractOptions } from "web3-eth-contract";
7
- import type { EventLog } from "web3-core";
8
- import type { EventEmitter } from "events";
9
- import type {
10
- Callback,
11
- PayableTransactionObject,
12
- NonPayableTransactionObject,
13
- BlockType,
14
- ContractEventLog,
15
- BaseContract,
16
- } from "./types";
17
-
18
- export interface EventOptions {
19
- filter?: object;
20
- fromBlock?: BlockType;
21
- topics?: string[];
22
- }
23
-
24
- export type TokenExchange = ContractEventLog<{
25
- buyer: string;
26
- sold_id: string;
27
- tokens_sold: string;
28
- bought_id: string;
29
- tokens_bought: string;
30
- 0: string;
31
- 1: string;
32
- 2: string;
33
- 3: string;
34
- 4: string;
35
- }>;
36
- export type Deposit = ContractEventLog<{
37
- provider: string;
38
- amount: string;
39
- n1: string;
40
- n2: string;
41
- 0: string;
42
- 1: string;
43
- 2: string;
44
- 3: string;
45
- }>;
46
- export type Withdraw = ContractEventLog<{
47
- provider: string;
48
- amount_borrowed: string;
49
- amount_collateral: string;
50
- 0: string;
51
- 1: string;
52
- 2: string;
53
- }>;
54
- export type SetRate = ContractEventLog<{
55
- rate: string;
56
- rate_mul: string;
57
- time: string;
58
- 0: string;
59
- 1: string;
60
- 2: string;
61
- }>;
62
- export type SetFee = ContractEventLog<{
63
- fee: string;
64
- 0: string;
65
- }>;
66
- export type SetAdminFee = ContractEventLog<{
67
- fee: string;
68
- 0: string;
69
- }>;
70
-
71
- export interface CrvUSDsfrxETHAmm extends BaseContract {
72
- constructor(
73
- jsonInterface: any[],
74
- address?: string,
75
- options?: ContractOptions
76
- ): CrvUSDsfrxETHAmm;
77
- clone(): CrvUSDsfrxETHAmm;
78
- methods: {
79
- set_admin(_admin: string): NonPayableTransactionObject<void>;
80
-
81
- coins(i: number | string | BN): NonPayableTransactionObject<string>;
82
-
83
- price_oracle(): NonPayableTransactionObject<string>;
84
-
85
- dynamic_fee(): NonPayableTransactionObject<string>;
86
-
87
- get_rate_mul(): NonPayableTransactionObject<string>;
88
-
89
- get_base_price(): NonPayableTransactionObject<string>;
90
-
91
- p_current_up(n: number | string | BN): NonPayableTransactionObject<string>;
92
-
93
- p_current_down(
94
- n: number | string | BN
95
- ): NonPayableTransactionObject<string>;
96
-
97
- p_oracle_up(n: number | string | BN): NonPayableTransactionObject<string>;
98
-
99
- p_oracle_down(n: number | string | BN): NonPayableTransactionObject<string>;
100
-
101
- get_p(): NonPayableTransactionObject<string>;
102
-
103
- read_user_tick_numbers(
104
- user: string
105
- ): NonPayableTransactionObject<[string, string]>;
106
-
107
- can_skip_bands(
108
- n_end: number | string | BN
109
- ): NonPayableTransactionObject<boolean>;
110
-
111
- active_band_with_skip(): NonPayableTransactionObject<string>;
112
-
113
- has_liquidity(user: string): NonPayableTransactionObject<boolean>;
114
-
115
- deposit_range(
116
- user: string,
117
- amount: number | string | BN,
118
- n1: number | string | BN,
119
- n2: number | string | BN
120
- ): NonPayableTransactionObject<void>;
121
-
122
- withdraw(
123
- user: string,
124
- frac: number | string | BN
125
- ): NonPayableTransactionObject<[string, string]>;
126
-
127
- get_dy(
128
- i: number | string | BN,
129
- j: number | string | BN,
130
- in_amount: number | string | BN
131
- ): NonPayableTransactionObject<string>;
132
-
133
- get_dxdy(
134
- i: number | string | BN,
135
- j: number | string | BN,
136
- in_amount: number | string | BN
137
- ): NonPayableTransactionObject<[string, string]>;
138
-
139
- get_dx(
140
- i: number | string | BN,
141
- j: number | string | BN,
142
- out_amount: number | string | BN
143
- ): NonPayableTransactionObject<string>;
144
-
145
- get_dydx(
146
- i: number | string | BN,
147
- j: number | string | BN,
148
- out_amount: number | string | BN
149
- ): NonPayableTransactionObject<[string, string]>;
150
-
151
- "exchange(uint256,uint256,uint256,uint256)"(
152
- i: number | string | BN,
153
- j: number | string | BN,
154
- in_amount: number | string | BN,
155
- min_amount: number | string | BN
156
- ): NonPayableTransactionObject<[string, string]>;
157
-
158
- "exchange(uint256,uint256,uint256,uint256,address)"(
159
- i: number | string | BN,
160
- j: number | string | BN,
161
- in_amount: number | string | BN,
162
- min_amount: number | string | BN,
163
- _for: string
164
- ): NonPayableTransactionObject<[string, string]>;
165
-
166
- "exchange_dy(uint256,uint256,uint256,uint256)"(
167
- i: number | string | BN,
168
- j: number | string | BN,
169
- out_amount: number | string | BN,
170
- max_amount: number | string | BN
171
- ): NonPayableTransactionObject<[string, string]>;
172
-
173
- "exchange_dy(uint256,uint256,uint256,uint256,address)"(
174
- i: number | string | BN,
175
- j: number | string | BN,
176
- out_amount: number | string | BN,
177
- max_amount: number | string | BN,
178
- _for: string
179
- ): NonPayableTransactionObject<[string, string]>;
180
-
181
- get_y_up(user: string): NonPayableTransactionObject<string>;
182
-
183
- get_x_down(user: string): NonPayableTransactionObject<string>;
184
-
185
- get_sum_xy(user: string): NonPayableTransactionObject<[string, string]>;
186
-
187
- get_xy(user: string): NonPayableTransactionObject<[string[], string[]]>;
188
-
189
- get_amount_for_price(
190
- p: number | string | BN
191
- ): NonPayableTransactionObject<[string, boolean]>;
192
-
193
- set_rate(rate: number | string | BN): NonPayableTransactionObject<string>;
194
-
195
- set_fee(fee: number | string | BN): NonPayableTransactionObject<void>;
196
-
197
- set_admin_fee(fee: number | string | BN): NonPayableTransactionObject<void>;
198
-
199
- reset_admin_fees(): NonPayableTransactionObject<void>;
200
-
201
- set_callback(
202
- liquidity_mining_callback: string
203
- ): NonPayableTransactionObject<void>;
204
-
205
- admin(): NonPayableTransactionObject<string>;
206
-
207
- A(): NonPayableTransactionObject<string>;
208
-
209
- fee(): NonPayableTransactionObject<string>;
210
-
211
- admin_fee(): NonPayableTransactionObject<string>;
212
-
213
- rate(): NonPayableTransactionObject<string>;
214
-
215
- active_band(): NonPayableTransactionObject<string>;
216
-
217
- min_band(): NonPayableTransactionObject<string>;
218
-
219
- max_band(): NonPayableTransactionObject<string>;
220
-
221
- admin_fees_x(): NonPayableTransactionObject<string>;
222
-
223
- admin_fees_y(): NonPayableTransactionObject<string>;
224
-
225
- price_oracle_contract(): NonPayableTransactionObject<string>;
226
-
227
- bands_x(arg0: number | string | BN): NonPayableTransactionObject<string>;
228
-
229
- bands_y(arg0: number | string | BN): NonPayableTransactionObject<string>;
230
-
231
- liquidity_mining_callback(): NonPayableTransactionObject<string>;
232
- };
233
- events: {
234
- TokenExchange(cb?: Callback<TokenExchange>): EventEmitter;
235
- TokenExchange(
236
- options?: EventOptions,
237
- cb?: Callback<TokenExchange>
238
- ): EventEmitter;
239
-
240
- Deposit(cb?: Callback<Deposit>): EventEmitter;
241
- Deposit(options?: EventOptions, cb?: Callback<Deposit>): EventEmitter;
242
-
243
- Withdraw(cb?: Callback<Withdraw>): EventEmitter;
244
- Withdraw(options?: EventOptions, cb?: Callback<Withdraw>): EventEmitter;
245
-
246
- SetRate(cb?: Callback<SetRate>): EventEmitter;
247
- SetRate(options?: EventOptions, cb?: Callback<SetRate>): EventEmitter;
248
-
249
- SetFee(cb?: Callback<SetFee>): EventEmitter;
250
- SetFee(options?: EventOptions, cb?: Callback<SetFee>): EventEmitter;
251
-
252
- SetAdminFee(cb?: Callback<SetAdminFee>): EventEmitter;
253
- SetAdminFee(
254
- options?: EventOptions,
255
- cb?: Callback<SetAdminFee>
256
- ): EventEmitter;
257
-
258
- allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter;
259
- };
260
-
261
- once(event: "TokenExchange", cb: Callback<TokenExchange>): void;
262
- once(
263
- event: "TokenExchange",
264
- options: EventOptions,
265
- cb: Callback<TokenExchange>
266
- ): void;
267
-
268
- once(event: "Deposit", cb: Callback<Deposit>): void;
269
- once(event: "Deposit", options: EventOptions, cb: Callback<Deposit>): void;
270
-
271
- once(event: "Withdraw", cb: Callback<Withdraw>): void;
272
- once(event: "Withdraw", options: EventOptions, cb: Callback<Withdraw>): void;
273
-
274
- once(event: "SetRate", cb: Callback<SetRate>): void;
275
- once(event: "SetRate", options: EventOptions, cb: Callback<SetRate>): void;
276
-
277
- once(event: "SetFee", cb: Callback<SetFee>): void;
278
- once(event: "SetFee", options: EventOptions, cb: Callback<SetFee>): void;
279
-
280
- once(event: "SetAdminFee", cb: Callback<SetAdminFee>): void;
281
- once(
282
- event: "SetAdminFee",
283
- options: EventOptions,
284
- cb: Callback<SetAdminFee>
285
- ): void;
286
- }
@@ -1,403 +0,0 @@
1
- /* Autogenerated file. Do not edit manually. */
2
- /* tslint:disable */
3
- /* eslint-disable */
4
-
5
- import type BN from "bn.js";
6
- import type { ContractOptions } from "web3-eth-contract";
7
- import type { EventLog } from "web3-core";
8
- import type { EventEmitter } from "events";
9
- import type {
10
- Callback,
11
- PayableTransactionObject,
12
- NonPayableTransactionObject,
13
- BlockType,
14
- ContractEventLog,
15
- BaseContract,
16
- } from "./types";
17
-
18
- export interface EventOptions {
19
- filter?: object;
20
- fromBlock?: BlockType;
21
- topics?: string[];
22
- }
23
-
24
- export type UserState = ContractEventLog<{
25
- user: string;
26
- collateral: string;
27
- debt: string;
28
- n1: string;
29
- n2: string;
30
- liquidation_discount: string;
31
- 0: string;
32
- 1: string;
33
- 2: string;
34
- 3: string;
35
- 4: string;
36
- 5: string;
37
- }>;
38
- export type Borrow = ContractEventLog<{
39
- user: string;
40
- collateral_increase: string;
41
- loan_increase: string;
42
- 0: string;
43
- 1: string;
44
- 2: string;
45
- }>;
46
- export type Repay = ContractEventLog<{
47
- user: string;
48
- collateral_decrease: string;
49
- loan_decrease: string;
50
- 0: string;
51
- 1: string;
52
- 2: string;
53
- }>;
54
- export type RemoveCollateral = ContractEventLog<{
55
- user: string;
56
- collateral_decrease: string;
57
- 0: string;
58
- 1: string;
59
- }>;
60
- export type Liquidate = ContractEventLog<{
61
- liquidator: string;
62
- user: string;
63
- collateral_received: string;
64
- stablecoin_received: string;
65
- debt: string;
66
- 0: string;
67
- 1: string;
68
- 2: string;
69
- 3: string;
70
- 4: string;
71
- }>;
72
- export type SetMonetaryPolicy = ContractEventLog<{
73
- monetary_policy: string;
74
- 0: string;
75
- }>;
76
- export type SetBorrowingDiscounts = ContractEventLog<{
77
- loan_discount: string;
78
- liquidation_discount: string;
79
- 0: string;
80
- 1: string;
81
- }>;
82
- export type CollectFees = ContractEventLog<{
83
- amount: string;
84
- new_supply: string;
85
- 0: string;
86
- 1: string;
87
- }>;
88
-
89
- export interface CrvUSDsfrxETHController extends BaseContract {
90
- constructor(
91
- jsonInterface: any[],
92
- address?: string,
93
- options?: ContractOptions
94
- ): CrvUSDsfrxETHController;
95
- clone(): CrvUSDsfrxETHController;
96
- methods: {
97
- factory(): NonPayableTransactionObject<string>;
98
-
99
- amm(): NonPayableTransactionObject<string>;
100
-
101
- collateral_token(): NonPayableTransactionObject<string>;
102
-
103
- debt(user: string): NonPayableTransactionObject<string>;
104
-
105
- loan_exists(user: string): NonPayableTransactionObject<boolean>;
106
-
107
- total_debt(): NonPayableTransactionObject<string>;
108
-
109
- "max_borrowable(uint256,uint256)"(
110
- collateral: number | string | BN,
111
- N: number | string | BN
112
- ): NonPayableTransactionObject<string>;
113
-
114
- "max_borrowable(uint256,uint256,uint256)"(
115
- collateral: number | string | BN,
116
- N: number | string | BN,
117
- current_debt: number | string | BN
118
- ): NonPayableTransactionObject<string>;
119
-
120
- min_collateral(
121
- debt: number | string | BN,
122
- N: number | string | BN
123
- ): NonPayableTransactionObject<string>;
124
-
125
- calculate_debt_n1(
126
- collateral: number | string | BN,
127
- debt: number | string | BN,
128
- N: number | string | BN
129
- ): NonPayableTransactionObject<string>;
130
-
131
- create_loan(
132
- collateral: number | string | BN,
133
- debt: number | string | BN,
134
- N: number | string | BN
135
- ): PayableTransactionObject<void>;
136
-
137
- create_loan_extended(
138
- collateral: number | string | BN,
139
- debt: number | string | BN,
140
- N: number | string | BN,
141
- callbacker: string,
142
- callback_args: number | string | BN[]
143
- ): PayableTransactionObject<void>;
144
-
145
- "add_collateral(uint256)"(
146
- collateral: number | string | BN
147
- ): PayableTransactionObject<void>;
148
-
149
- "add_collateral(uint256,address)"(
150
- collateral: number | string | BN,
151
- _for: string
152
- ): PayableTransactionObject<void>;
153
-
154
- "remove_collateral(uint256)"(
155
- collateral: number | string | BN
156
- ): NonPayableTransactionObject<void>;
157
-
158
- "remove_collateral(uint256,bool)"(
159
- collateral: number | string | BN,
160
- use_eth: boolean
161
- ): NonPayableTransactionObject<void>;
162
-
163
- borrow_more(
164
- collateral: number | string | BN,
165
- debt: number | string | BN
166
- ): PayableTransactionObject<void>;
167
-
168
- "repay(uint256)"(
169
- _d_debt: number | string | BN
170
- ): NonPayableTransactionObject<void>;
171
-
172
- "repay(uint256,address)"(
173
- _d_debt: number | string | BN,
174
- _for: string
175
- ): NonPayableTransactionObject<void>;
176
-
177
- "repay(uint256,address,int256)"(
178
- _d_debt: number | string | BN,
179
- _for: string,
180
- max_active_band: number | string | BN
181
- ): NonPayableTransactionObject<void>;
182
-
183
- "repay(uint256,address,int256,bool)"(
184
- _d_debt: number | string | BN,
185
- _for: string,
186
- max_active_band: number | string | BN,
187
- use_eth: boolean
188
- ): NonPayableTransactionObject<void>;
189
-
190
- repay_extended(
191
- callbacker: string,
192
- callback_args: number | string | BN[]
193
- ): NonPayableTransactionObject<void>;
194
-
195
- "health_calculator(address,int256,int256,bool)"(
196
- user: string,
197
- d_collateral: number | string | BN,
198
- d_debt: number | string | BN,
199
- full: boolean
200
- ): NonPayableTransactionObject<string>;
201
-
202
- "health_calculator(address,int256,int256,bool,uint256)"(
203
- user: string,
204
- d_collateral: number | string | BN,
205
- d_debt: number | string | BN,
206
- full: boolean,
207
- N: number | string | BN
208
- ): NonPayableTransactionObject<string>;
209
-
210
- "liquidate(address,uint256)"(
211
- user: string,
212
- min_x: number | string | BN
213
- ): NonPayableTransactionObject<void>;
214
-
215
- "liquidate(address,uint256,bool)"(
216
- user: string,
217
- min_x: number | string | BN,
218
- use_eth: boolean
219
- ): NonPayableTransactionObject<void>;
220
-
221
- liquidate_extended(
222
- user: string,
223
- min_x: number | string | BN,
224
- frac: number | string | BN,
225
- use_eth: boolean,
226
- callbacker: string,
227
- callback_args: number | string | BN[]
228
- ): NonPayableTransactionObject<void>;
229
-
230
- "tokens_to_liquidate(address)"(
231
- user: string
232
- ): NonPayableTransactionObject<string>;
233
-
234
- "tokens_to_liquidate(address,uint256)"(
235
- user: string,
236
- frac: number | string | BN
237
- ): NonPayableTransactionObject<string>;
238
-
239
- "health(address)"(user: string): NonPayableTransactionObject<string>;
240
-
241
- "health(address,bool)"(
242
- user: string,
243
- full: boolean
244
- ): NonPayableTransactionObject<string>;
245
-
246
- "users_to_liquidate()"(): NonPayableTransactionObject<
247
- [string, string, string, string, string] &
248
- { user: string; x: string; y: string; debt: string; health: string }[]
249
- >;
250
-
251
- "users_to_liquidate(uint256)"(
252
- _from: number | string | BN
253
- ): NonPayableTransactionObject<
254
- [string, string, string, string, string] &
255
- { user: string; x: string; y: string; debt: string; health: string }[]
256
- >;
257
-
258
- "users_to_liquidate(uint256,uint256)"(
259
- _from: number | string | BN,
260
- _limit: number | string | BN
261
- ): NonPayableTransactionObject<
262
- [string, string, string, string, string] &
263
- { user: string; x: string; y: string; debt: string; health: string }[]
264
- >;
265
-
266
- amm_price(): NonPayableTransactionObject<string>;
267
-
268
- user_prices(user: string): NonPayableTransactionObject<[string, string]>;
269
-
270
- user_state(
271
- user: string
272
- ): NonPayableTransactionObject<[string, string, string, string]>;
273
-
274
- set_amm_fee(fee: number | string | BN): NonPayableTransactionObject<void>;
275
-
276
- set_amm_admin_fee(
277
- fee: number | string | BN
278
- ): NonPayableTransactionObject<void>;
279
-
280
- set_monetary_policy(
281
- monetary_policy: string
282
- ): NonPayableTransactionObject<void>;
283
-
284
- set_borrowing_discounts(
285
- loan_discount: number | string | BN,
286
- liquidation_discount: number | string | BN
287
- ): NonPayableTransactionObject<void>;
288
-
289
- set_callback(cb: string): NonPayableTransactionObject<void>;
290
-
291
- admin_fees(): NonPayableTransactionObject<string>;
292
-
293
- collect_fees(): NonPayableTransactionObject<string>;
294
-
295
- liquidation_discounts(arg0: string): NonPayableTransactionObject<string>;
296
-
297
- loans(arg0: number | string | BN): NonPayableTransactionObject<string>;
298
-
299
- loan_ix(arg0: string): NonPayableTransactionObject<string>;
300
-
301
- n_loans(): NonPayableTransactionObject<string>;
302
-
303
- minted(): NonPayableTransactionObject<string>;
304
-
305
- redeemed(): NonPayableTransactionObject<string>;
306
-
307
- monetary_policy(): NonPayableTransactionObject<string>;
308
-
309
- liquidation_discount(): NonPayableTransactionObject<string>;
310
-
311
- loan_discount(): NonPayableTransactionObject<string>;
312
- };
313
- events: {
314
- UserState(cb?: Callback<UserState>): EventEmitter;
315
- UserState(options?: EventOptions, cb?: Callback<UserState>): EventEmitter;
316
-
317
- Borrow(cb?: Callback<Borrow>): EventEmitter;
318
- Borrow(options?: EventOptions, cb?: Callback<Borrow>): EventEmitter;
319
-
320
- Repay(cb?: Callback<Repay>): EventEmitter;
321
- Repay(options?: EventOptions, cb?: Callback<Repay>): EventEmitter;
322
-
323
- RemoveCollateral(cb?: Callback<RemoveCollateral>): EventEmitter;
324
- RemoveCollateral(
325
- options?: EventOptions,
326
- cb?: Callback<RemoveCollateral>
327
- ): EventEmitter;
328
-
329
- Liquidate(cb?: Callback<Liquidate>): EventEmitter;
330
- Liquidate(options?: EventOptions, cb?: Callback<Liquidate>): EventEmitter;
331
-
332
- SetMonetaryPolicy(cb?: Callback<SetMonetaryPolicy>): EventEmitter;
333
- SetMonetaryPolicy(
334
- options?: EventOptions,
335
- cb?: Callback<SetMonetaryPolicy>
336
- ): EventEmitter;
337
-
338
- SetBorrowingDiscounts(cb?: Callback<SetBorrowingDiscounts>): EventEmitter;
339
- SetBorrowingDiscounts(
340
- options?: EventOptions,
341
- cb?: Callback<SetBorrowingDiscounts>
342
- ): EventEmitter;
343
-
344
- CollectFees(cb?: Callback<CollectFees>): EventEmitter;
345
- CollectFees(
346
- options?: EventOptions,
347
- cb?: Callback<CollectFees>
348
- ): EventEmitter;
349
-
350
- allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter;
351
- };
352
-
353
- once(event: "UserState", cb: Callback<UserState>): void;
354
- once(
355
- event: "UserState",
356
- options: EventOptions,
357
- cb: Callback<UserState>
358
- ): void;
359
-
360
- once(event: "Borrow", cb: Callback<Borrow>): void;
361
- once(event: "Borrow", options: EventOptions, cb: Callback<Borrow>): void;
362
-
363
- once(event: "Repay", cb: Callback<Repay>): void;
364
- once(event: "Repay", options: EventOptions, cb: Callback<Repay>): void;
365
-
366
- once(event: "RemoveCollateral", cb: Callback<RemoveCollateral>): void;
367
- once(
368
- event: "RemoveCollateral",
369
- options: EventOptions,
370
- cb: Callback<RemoveCollateral>
371
- ): void;
372
-
373
- once(event: "Liquidate", cb: Callback<Liquidate>): void;
374
- once(
375
- event: "Liquidate",
376
- options: EventOptions,
377
- cb: Callback<Liquidate>
378
- ): void;
379
-
380
- once(event: "SetMonetaryPolicy", cb: Callback<SetMonetaryPolicy>): void;
381
- once(
382
- event: "SetMonetaryPolicy",
383
- options: EventOptions,
384
- cb: Callback<SetMonetaryPolicy>
385
- ): void;
386
-
387
- once(
388
- event: "SetBorrowingDiscounts",
389
- cb: Callback<SetBorrowingDiscounts>
390
- ): void;
391
- once(
392
- event: "SetBorrowingDiscounts",
393
- options: EventOptions,
394
- cb: Callback<SetBorrowingDiscounts>
395
- ): void;
396
-
397
- once(event: "CollectFees", cb: Callback<CollectFees>): void;
398
- once(
399
- event: "CollectFees",
400
- options: EventOptions,
401
- cb: Callback<CollectFees>
402
- ): void;
403
- }