@defisaver/positions-sdk 0.0.199 → 0.0.201-fluid-dev
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/cjs/config/contracts.d.ts +169 -4
- package/cjs/config/contracts.js +20 -0
- package/cjs/contracts.d.ts +2 -0
- package/cjs/contracts.js +3 -1
- package/cjs/fluid/index.d.ts +38 -0
- package/cjs/fluid/index.js +163 -0
- package/cjs/helpers/fluidHelpers/index.d.ts +6 -0
- package/cjs/helpers/fluidHelpers/index.js +40 -0
- package/cjs/helpers/index.d.ts +2 -0
- package/cjs/helpers/index.js +3 -1
- package/cjs/helpers/liquityV2Helpers/index.d.ts +12 -0
- package/cjs/helpers/liquityV2Helpers/index.js +63 -0
- package/cjs/index.d.ts +3 -1
- package/cjs/index.js +5 -1
- package/cjs/liquityV2/index.d.ts +18 -0
- package/cjs/liquityV2/index.js +194 -0
- package/cjs/markets/aave/marketAssets.js +1 -1
- package/cjs/markets/fluid/index.d.ts +174 -0
- package/cjs/markets/fluid/index.js +1286 -0
- package/cjs/markets/index.d.ts +2 -0
- package/cjs/markets/index.js +5 -1
- package/cjs/markets/liquityV2/index.d.ts +10 -0
- package/cjs/markets/liquityV2/index.js +47 -0
- package/cjs/moneymarket/moneymarketCommonService.js +1 -1
- package/cjs/types/contracts/generated/FluidView.d.ts +318 -0
- package/cjs/types/contracts/generated/FluidView.js +5 -0
- package/cjs/types/contracts/generated/LiquityV2CollSurplusPool.d.ts +64 -0
- package/cjs/types/contracts/generated/LiquityV2CollSurplusPool.js +5 -0
- package/cjs/types/contracts/generated/LiquityV2TroveNFT.d.ts +73 -0
- package/cjs/types/contracts/generated/LiquityV2TroveNFT.js +5 -0
- package/cjs/types/contracts/generated/LiquityV2View.d.ts +244 -0
- package/cjs/types/contracts/generated/LiquityV2View.js +5 -0
- package/cjs/types/contracts/generated/index.d.ts +4 -0
- package/cjs/types/fluid.d.ts +225 -0
- package/cjs/types/fluid.js +129 -0
- package/cjs/types/index.d.ts +2 -0
- package/cjs/types/index.js +2 -0
- package/cjs/types/liquityV2.d.ts +111 -0
- package/cjs/types/liquityV2.js +24 -0
- package/esm/config/contracts.d.ts +169 -4
- package/esm/config/contracts.js +20 -0
- package/esm/contracts.d.ts +2 -0
- package/esm/contracts.js +2 -0
- package/esm/fluid/index.d.ts +38 -0
- package/esm/fluid/index.js +153 -0
- package/esm/helpers/fluidHelpers/index.d.ts +6 -0
- package/esm/helpers/fluidHelpers/index.js +33 -0
- package/esm/helpers/index.d.ts +2 -0
- package/esm/helpers/index.js +2 -0
- package/esm/helpers/liquityV2Helpers/index.d.ts +12 -0
- package/esm/helpers/liquityV2Helpers/index.js +55 -0
- package/esm/index.d.ts +3 -1
- package/esm/index.js +3 -1
- package/esm/liquityV2/index.d.ts +18 -0
- package/esm/liquityV2/index.js +183 -0
- package/esm/markets/aave/marketAssets.js +1 -1
- package/esm/markets/fluid/index.d.ts +174 -0
- package/esm/markets/fluid/index.js +1196 -0
- package/esm/markets/index.d.ts +2 -0
- package/esm/markets/index.js +2 -0
- package/esm/markets/liquityV2/index.d.ts +10 -0
- package/esm/markets/liquityV2/index.js +40 -0
- package/esm/moneymarket/moneymarketCommonService.js +1 -1
- package/esm/types/contracts/generated/FluidView.d.ts +318 -0
- package/esm/types/contracts/generated/FluidView.js +4 -0
- package/esm/types/contracts/generated/LiquityV2CollSurplusPool.d.ts +64 -0
- package/esm/types/contracts/generated/LiquityV2CollSurplusPool.js +4 -0
- package/esm/types/contracts/generated/LiquityV2TroveNFT.d.ts +73 -0
- package/esm/types/contracts/generated/LiquityV2TroveNFT.js +4 -0
- package/esm/types/contracts/generated/LiquityV2View.d.ts +244 -0
- package/esm/types/contracts/generated/LiquityV2View.js +4 -0
- package/esm/types/contracts/generated/index.d.ts +4 -0
- package/esm/types/fluid.d.ts +225 -0
- package/esm/types/fluid.js +126 -0
- package/esm/types/index.d.ts +2 -0
- package/esm/types/index.js +2 -0
- package/esm/types/liquityV2.d.ts +111 -0
- package/esm/types/liquityV2.js +21 -0
- package/package.json +2 -2
- package/src/config/contracts.js +20 -0
- package/src/contracts.ts +2 -0
- package/src/fluid/index.ts +220 -0
- package/src/helpers/fluidHelpers/index.ts +54 -0
- package/src/helpers/index.ts +3 -1
- package/src/helpers/liquityV2Helpers/index.ts +80 -0
- package/src/index.ts +4 -0
- package/src/liquityV2/index.ts +228 -0
- package/src/markets/aave/marketAssets.ts +1 -1
- package/src/markets/fluid/index.ts +1290 -0
- package/src/markets/index.ts +3 -2
- package/src/markets/liquityV2/index.ts +44 -0
- package/src/moneymarket/moneymarketCommonService.ts +1 -1
- package/src/types/contracts/generated/FluidView.ts +399 -0
- package/src/types/contracts/generated/LiquityV2CollSurplusPool.ts +130 -0
- package/src/types/contracts/generated/LiquityV2TroveNFT.ts +150 -0
- package/src/types/contracts/generated/LiquityV2View.ts +315 -0
- package/src/types/contracts/generated/index.ts +4 -0
- package/src/types/fluid.ts +240 -0
- package/src/types/index.ts +3 -1
- package/src/types/liquityV2.ts +119 -0
|
@@ -0,0 +1,150 @@
|
|
|
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 Approval = ContractEventLog<{
|
|
25
|
+
owner: string;
|
|
26
|
+
approved: string;
|
|
27
|
+
tokenId: string;
|
|
28
|
+
0: string;
|
|
29
|
+
1: string;
|
|
30
|
+
2: string;
|
|
31
|
+
}>;
|
|
32
|
+
export type ApprovalForAll = ContractEventLog<{
|
|
33
|
+
owner: string;
|
|
34
|
+
operator: string;
|
|
35
|
+
approved: boolean;
|
|
36
|
+
0: string;
|
|
37
|
+
1: string;
|
|
38
|
+
2: boolean;
|
|
39
|
+
}>;
|
|
40
|
+
export type Transfer = ContractEventLog<{
|
|
41
|
+
from: string;
|
|
42
|
+
to: string;
|
|
43
|
+
tokenId: string;
|
|
44
|
+
0: string;
|
|
45
|
+
1: string;
|
|
46
|
+
2: string;
|
|
47
|
+
}>;
|
|
48
|
+
|
|
49
|
+
export interface LiquityV2TroveNFT extends BaseContract {
|
|
50
|
+
constructor(
|
|
51
|
+
jsonInterface: any[],
|
|
52
|
+
address?: string,
|
|
53
|
+
options?: ContractOptions
|
|
54
|
+
): LiquityV2TroveNFT;
|
|
55
|
+
clone(): LiquityV2TroveNFT;
|
|
56
|
+
methods: {
|
|
57
|
+
approve(
|
|
58
|
+
to: string,
|
|
59
|
+
tokenId: number | string | BN
|
|
60
|
+
): NonPayableTransactionObject<void>;
|
|
61
|
+
|
|
62
|
+
balanceOf(owner: string): NonPayableTransactionObject<string>;
|
|
63
|
+
|
|
64
|
+
burn(_troveId: number | string | BN): NonPayableTransactionObject<void>;
|
|
65
|
+
|
|
66
|
+
getApproved(
|
|
67
|
+
tokenId: number | string | BN
|
|
68
|
+
): NonPayableTransactionObject<string>;
|
|
69
|
+
|
|
70
|
+
isApprovedForAll(
|
|
71
|
+
owner: string,
|
|
72
|
+
operator: string
|
|
73
|
+
): NonPayableTransactionObject<boolean>;
|
|
74
|
+
|
|
75
|
+
metadataNFT(): NonPayableTransactionObject<string>;
|
|
76
|
+
|
|
77
|
+
mint(
|
|
78
|
+
_owner: string,
|
|
79
|
+
_troveId: number | string | BN
|
|
80
|
+
): NonPayableTransactionObject<void>;
|
|
81
|
+
|
|
82
|
+
name(): NonPayableTransactionObject<string>;
|
|
83
|
+
|
|
84
|
+
ownerOf(tokenId: number | string | BN): NonPayableTransactionObject<string>;
|
|
85
|
+
|
|
86
|
+
"safeTransferFrom(address,address,uint256)"(
|
|
87
|
+
from: string,
|
|
88
|
+
to: string,
|
|
89
|
+
tokenId: number | string | BN
|
|
90
|
+
): NonPayableTransactionObject<void>;
|
|
91
|
+
|
|
92
|
+
"safeTransferFrom(address,address,uint256,bytes)"(
|
|
93
|
+
from: string,
|
|
94
|
+
to: string,
|
|
95
|
+
tokenId: number | string | BN,
|
|
96
|
+
data: string | number[]
|
|
97
|
+
): NonPayableTransactionObject<void>;
|
|
98
|
+
|
|
99
|
+
setApprovalForAll(
|
|
100
|
+
operator: string,
|
|
101
|
+
approved: boolean
|
|
102
|
+
): NonPayableTransactionObject<void>;
|
|
103
|
+
|
|
104
|
+
supportsInterface(
|
|
105
|
+
interfaceId: string | number[]
|
|
106
|
+
): NonPayableTransactionObject<boolean>;
|
|
107
|
+
|
|
108
|
+
symbol(): NonPayableTransactionObject<string>;
|
|
109
|
+
|
|
110
|
+
tokenURI(
|
|
111
|
+
_tokenId: number | string | BN
|
|
112
|
+
): NonPayableTransactionObject<string>;
|
|
113
|
+
|
|
114
|
+
transferFrom(
|
|
115
|
+
from: string,
|
|
116
|
+
to: string,
|
|
117
|
+
tokenId: number | string | BN
|
|
118
|
+
): NonPayableTransactionObject<void>;
|
|
119
|
+
|
|
120
|
+
troveManager(): NonPayableTransactionObject<string>;
|
|
121
|
+
};
|
|
122
|
+
events: {
|
|
123
|
+
Approval(cb?: Callback<Approval>): EventEmitter;
|
|
124
|
+
Approval(options?: EventOptions, cb?: Callback<Approval>): EventEmitter;
|
|
125
|
+
|
|
126
|
+
ApprovalForAll(cb?: Callback<ApprovalForAll>): EventEmitter;
|
|
127
|
+
ApprovalForAll(
|
|
128
|
+
options?: EventOptions,
|
|
129
|
+
cb?: Callback<ApprovalForAll>
|
|
130
|
+
): EventEmitter;
|
|
131
|
+
|
|
132
|
+
Transfer(cb?: Callback<Transfer>): EventEmitter;
|
|
133
|
+
Transfer(options?: EventOptions, cb?: Callback<Transfer>): EventEmitter;
|
|
134
|
+
|
|
135
|
+
allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter;
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
once(event: "Approval", cb: Callback<Approval>): void;
|
|
139
|
+
once(event: "Approval", options: EventOptions, cb: Callback<Approval>): void;
|
|
140
|
+
|
|
141
|
+
once(event: "ApprovalForAll", cb: Callback<ApprovalForAll>): void;
|
|
142
|
+
once(
|
|
143
|
+
event: "ApprovalForAll",
|
|
144
|
+
options: EventOptions,
|
|
145
|
+
cb: Callback<ApprovalForAll>
|
|
146
|
+
): void;
|
|
147
|
+
|
|
148
|
+
once(event: "Transfer", cb: Callback<Transfer>): void;
|
|
149
|
+
once(event: "Transfer", options: EventOptions, cb: Callback<Transfer>): void;
|
|
150
|
+
}
|
|
@@ -0,0 +1,315 @@
|
|
|
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 declare namespace LiquityV2View {
|
|
25
|
+
export type MarketDataStruct =
|
|
26
|
+
| [
|
|
27
|
+
string,
|
|
28
|
+
number | string | BN,
|
|
29
|
+
number | string | BN,
|
|
30
|
+
number | string | BN,
|
|
31
|
+
number | string | BN,
|
|
32
|
+
number | string | BN,
|
|
33
|
+
number | string | BN,
|
|
34
|
+
number | string | BN,
|
|
35
|
+
string,
|
|
36
|
+
string,
|
|
37
|
+
string,
|
|
38
|
+
string,
|
|
39
|
+
string,
|
|
40
|
+
string,
|
|
41
|
+
string,
|
|
42
|
+
string,
|
|
43
|
+
string,
|
|
44
|
+
string,
|
|
45
|
+
number | string | BN,
|
|
46
|
+
boolean
|
|
47
|
+
]
|
|
48
|
+
| {
|
|
49
|
+
market: string;
|
|
50
|
+
CCR: number | string | BN;
|
|
51
|
+
MCR: number | string | BN;
|
|
52
|
+
SCR: number | string | BN;
|
|
53
|
+
LIQUIDATION_PENALTY_SP: number | string | BN;
|
|
54
|
+
LIQUIDATION_PENALTY_REDISTRIBUTION: number | string | BN;
|
|
55
|
+
entireSystemColl: number | string | BN;
|
|
56
|
+
entireSystemDebt: number | string | BN;
|
|
57
|
+
collToken: string;
|
|
58
|
+
troveNFT: string;
|
|
59
|
+
borrowerOperations: string;
|
|
60
|
+
troveManager: string;
|
|
61
|
+
stabilityPool: string;
|
|
62
|
+
sortedTroves: string;
|
|
63
|
+
collSurplusPool: string;
|
|
64
|
+
activePool: string;
|
|
65
|
+
hintHelpers: string;
|
|
66
|
+
priceFeed: string;
|
|
67
|
+
collPrice: number | string | BN;
|
|
68
|
+
isShutDown: boolean;
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
export type MarketDataStructOutputArray = [
|
|
72
|
+
string,
|
|
73
|
+
string,
|
|
74
|
+
string,
|
|
75
|
+
string,
|
|
76
|
+
string,
|
|
77
|
+
string,
|
|
78
|
+
string,
|
|
79
|
+
string,
|
|
80
|
+
string,
|
|
81
|
+
string,
|
|
82
|
+
string,
|
|
83
|
+
string,
|
|
84
|
+
string,
|
|
85
|
+
string,
|
|
86
|
+
string,
|
|
87
|
+
string,
|
|
88
|
+
string,
|
|
89
|
+
string,
|
|
90
|
+
string,
|
|
91
|
+
boolean
|
|
92
|
+
];
|
|
93
|
+
export type MarketDataStructOutputStruct = {
|
|
94
|
+
market: string;
|
|
95
|
+
CCR: string;
|
|
96
|
+
MCR: string;
|
|
97
|
+
SCR: string;
|
|
98
|
+
LIQUIDATION_PENALTY_SP: string;
|
|
99
|
+
LIQUIDATION_PENALTY_REDISTRIBUTION: string;
|
|
100
|
+
entireSystemColl: string;
|
|
101
|
+
entireSystemDebt: string;
|
|
102
|
+
collToken: string;
|
|
103
|
+
troveNFT: string;
|
|
104
|
+
borrowerOperations: string;
|
|
105
|
+
troveManager: string;
|
|
106
|
+
stabilityPool: string;
|
|
107
|
+
sortedTroves: string;
|
|
108
|
+
collSurplusPool: string;
|
|
109
|
+
activePool: string;
|
|
110
|
+
hintHelpers: string;
|
|
111
|
+
priceFeed: string;
|
|
112
|
+
collPrice: string;
|
|
113
|
+
isShutDown: boolean;
|
|
114
|
+
};
|
|
115
|
+
export type MarketDataStructOutput = MarketDataStructOutputArray &
|
|
116
|
+
MarketDataStructOutputStruct;
|
|
117
|
+
|
|
118
|
+
export type TroveDataStruct =
|
|
119
|
+
| [
|
|
120
|
+
number | string | BN,
|
|
121
|
+
string,
|
|
122
|
+
string,
|
|
123
|
+
number | string | BN,
|
|
124
|
+
number | string | BN,
|
|
125
|
+
number | string | BN,
|
|
126
|
+
number | string | BN,
|
|
127
|
+
number | string | BN,
|
|
128
|
+
number | string | BN,
|
|
129
|
+
string,
|
|
130
|
+
number | string | BN
|
|
131
|
+
]
|
|
132
|
+
| {
|
|
133
|
+
troveId: number | string | BN;
|
|
134
|
+
owner: string;
|
|
135
|
+
collToken: string;
|
|
136
|
+
status: number | string | BN;
|
|
137
|
+
collAmount: number | string | BN;
|
|
138
|
+
debtAmount: number | string | BN;
|
|
139
|
+
collPrice: number | string | BN;
|
|
140
|
+
TCRatio: number | string | BN;
|
|
141
|
+
annualInterestRate: number | string | BN;
|
|
142
|
+
interestBatchManager: string;
|
|
143
|
+
batchDebtShares: number | string | BN;
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
export type TroveDataStructOutputArray = [
|
|
147
|
+
string,
|
|
148
|
+
string,
|
|
149
|
+
string,
|
|
150
|
+
string,
|
|
151
|
+
string,
|
|
152
|
+
string,
|
|
153
|
+
string,
|
|
154
|
+
string,
|
|
155
|
+
string,
|
|
156
|
+
string,
|
|
157
|
+
string
|
|
158
|
+
];
|
|
159
|
+
export type TroveDataStructOutputStruct = {
|
|
160
|
+
troveId: string;
|
|
161
|
+
owner: string;
|
|
162
|
+
collToken: string;
|
|
163
|
+
status: string;
|
|
164
|
+
collAmount: string;
|
|
165
|
+
debtAmount: string;
|
|
166
|
+
collPrice: string;
|
|
167
|
+
TCRatio: string;
|
|
168
|
+
annualInterestRate: string;
|
|
169
|
+
interestBatchManager: string;
|
|
170
|
+
batchDebtShares: string;
|
|
171
|
+
};
|
|
172
|
+
export type TroveDataStructOutput = TroveDataStructOutputArray &
|
|
173
|
+
TroveDataStructOutputStruct;
|
|
174
|
+
|
|
175
|
+
export type ExistingTroveStruct =
|
|
176
|
+
| [number | string | BN, boolean]
|
|
177
|
+
| { troveId: number | string | BN; ownedByUser: boolean };
|
|
178
|
+
|
|
179
|
+
export type ExistingTroveStructOutputArray = [string, boolean];
|
|
180
|
+
export type ExistingTroveStructOutputStruct = {
|
|
181
|
+
troveId: string;
|
|
182
|
+
ownedByUser: boolean;
|
|
183
|
+
};
|
|
184
|
+
export type ExistingTroveStructOutput = ExistingTroveStructOutputArray &
|
|
185
|
+
ExistingTroveStructOutputStruct;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
export interface LiquityV2View extends BaseContract {
|
|
189
|
+
constructor(
|
|
190
|
+
jsonInterface: any[],
|
|
191
|
+
address?: string,
|
|
192
|
+
options?: ContractOptions
|
|
193
|
+
): LiquityV2View;
|
|
194
|
+
clone(): LiquityV2View;
|
|
195
|
+
methods: {
|
|
196
|
+
findInsertPosition(
|
|
197
|
+
_market: string,
|
|
198
|
+
_interestRate: number | string | BN,
|
|
199
|
+
_prevId: number | string | BN,
|
|
200
|
+
_nextId: number | string | BN
|
|
201
|
+
): NonPayableTransactionObject<
|
|
202
|
+
[string, string] & { prevId: string; nextId: string }
|
|
203
|
+
>;
|
|
204
|
+
|
|
205
|
+
getApproxHint(
|
|
206
|
+
_market: string,
|
|
207
|
+
_collIndex: number | string | BN,
|
|
208
|
+
_interestRate: number | string | BN,
|
|
209
|
+
_numTrials: number | string | BN,
|
|
210
|
+
_inputRandomSeed: number | string | BN
|
|
211
|
+
): NonPayableTransactionObject<
|
|
212
|
+
[string, string, string] & {
|
|
213
|
+
hintId: string;
|
|
214
|
+
diff: string;
|
|
215
|
+
latestRandomSeed: string;
|
|
216
|
+
}
|
|
217
|
+
>;
|
|
218
|
+
|
|
219
|
+
getDebtInFront(
|
|
220
|
+
_market: string,
|
|
221
|
+
_troveId: number | string | BN,
|
|
222
|
+
_acc: number | string | BN,
|
|
223
|
+
_iterations: number | string | BN
|
|
224
|
+
): NonPayableTransactionObject<
|
|
225
|
+
[string, string] & { next: string; debt: string }
|
|
226
|
+
>;
|
|
227
|
+
|
|
228
|
+
getDebtInFrontByInterestRate(
|
|
229
|
+
_market: string,
|
|
230
|
+
_troveId: number | string | BN,
|
|
231
|
+
_acc: number | string | BN,
|
|
232
|
+
_iterations: number | string | BN,
|
|
233
|
+
_targetIR: number | string | BN
|
|
234
|
+
): NonPayableTransactionObject<
|
|
235
|
+
[string, string] & { next: string; debt: string }
|
|
236
|
+
>;
|
|
237
|
+
|
|
238
|
+
getDebtInFrontByTroveNum(
|
|
239
|
+
_market: string,
|
|
240
|
+
_numTroves: number | string | BN
|
|
241
|
+
): NonPayableTransactionObject<string>;
|
|
242
|
+
|
|
243
|
+
getDepositorInfo(
|
|
244
|
+
_market: string,
|
|
245
|
+
_depositor: string
|
|
246
|
+
): NonPayableTransactionObject<
|
|
247
|
+
[string, string, string] & {
|
|
248
|
+
compoundedBOLD: string;
|
|
249
|
+
collGain: string;
|
|
250
|
+
boldGain: string;
|
|
251
|
+
}
|
|
252
|
+
>;
|
|
253
|
+
|
|
254
|
+
getInsertPosition(
|
|
255
|
+
_market: string,
|
|
256
|
+
_collIndex: number | string | BN,
|
|
257
|
+
_interestRate: number | string | BN,
|
|
258
|
+
_numTrials: number | string | BN,
|
|
259
|
+
_inputRandomSeed: number | string | BN
|
|
260
|
+
): NonPayableTransactionObject<
|
|
261
|
+
[string, string] & { prevId: string; nextId: string }
|
|
262
|
+
>;
|
|
263
|
+
|
|
264
|
+
getMarketData(
|
|
265
|
+
_market: string
|
|
266
|
+
): NonPayableTransactionObject<LiquityV2View.MarketDataStructOutput>;
|
|
267
|
+
|
|
268
|
+
getNumOfTrovesInFrontOfTrove(
|
|
269
|
+
_market: string,
|
|
270
|
+
_troveId: number | string | BN,
|
|
271
|
+
_iterations: number | string | BN
|
|
272
|
+
): NonPayableTransactionObject<
|
|
273
|
+
[string, string] & { next: string; numTroves: string }
|
|
274
|
+
>;
|
|
275
|
+
|
|
276
|
+
getTroveInfo(
|
|
277
|
+
_market: string,
|
|
278
|
+
_troveId: number | string | BN
|
|
279
|
+
): NonPayableTransactionObject<LiquityV2View.TroveDataStructOutput>;
|
|
280
|
+
|
|
281
|
+
getTrovePosition(
|
|
282
|
+
_market: string,
|
|
283
|
+
_collIndex: number | string | BN,
|
|
284
|
+
_troveId: number | string | BN,
|
|
285
|
+
_numTrials: number | string | BN,
|
|
286
|
+
_inputRandomSeed: number | string | BN
|
|
287
|
+
): NonPayableTransactionObject<
|
|
288
|
+
[string, string] & { prevId: string; nextId: string }
|
|
289
|
+
>;
|
|
290
|
+
|
|
291
|
+
getUserTroves(
|
|
292
|
+
_user: string,
|
|
293
|
+
_market: string,
|
|
294
|
+
_startIndex: number | string | BN,
|
|
295
|
+
_endIndex: number | string | BN
|
|
296
|
+
): NonPayableTransactionObject<
|
|
297
|
+
[LiquityV2View.ExistingTroveStructOutput[], string] & {
|
|
298
|
+
troves: LiquityV2View.ExistingTroveStructOutput[];
|
|
299
|
+
nextFreeTroveIndex: string;
|
|
300
|
+
}
|
|
301
|
+
>;
|
|
302
|
+
|
|
303
|
+
isShutDown(_market: string): NonPayableTransactionObject<boolean>;
|
|
304
|
+
|
|
305
|
+
predictAdjustTroveUpfrontFee(
|
|
306
|
+
_market: string,
|
|
307
|
+
_collIndex: number | string | BN,
|
|
308
|
+
_troveId: number | string | BN,
|
|
309
|
+
_debtIncrease: number | string | BN
|
|
310
|
+
): NonPayableTransactionObject<string>;
|
|
311
|
+
};
|
|
312
|
+
events: {
|
|
313
|
+
allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter;
|
|
314
|
+
};
|
|
315
|
+
}
|
|
@@ -32,6 +32,7 @@ export type { ETHPriceFeed } from "./ETHPriceFeed";
|
|
|
32
32
|
export type { Erc20 } from "./Erc20";
|
|
33
33
|
export type { EulerV2View } from "./EulerV2View";
|
|
34
34
|
export type { FeedRegistry } from "./FeedRegistry";
|
|
35
|
+
export type { FluidView } from "./FluidView";
|
|
35
36
|
export type { GHO } from "./GHO";
|
|
36
37
|
export type { GhoDiscountRateStrategy } from "./GhoDiscountRateStrategy";
|
|
37
38
|
export type { IAToken } from "./IAToken";
|
|
@@ -39,6 +40,9 @@ export type { IVariableDebtToken } from "./IVariableDebtToken";
|
|
|
39
40
|
export type { LendingPoolAddressesProvider } from "./LendingPoolAddressesProvider";
|
|
40
41
|
export type { Lido } from "./Lido";
|
|
41
42
|
export type { LiquityActivePool } from "./LiquityActivePool";
|
|
43
|
+
export type { LiquityV2CollSurplusPool } from "./LiquityV2CollSurplusPool";
|
|
44
|
+
export type { LiquityV2TroveNFT } from "./LiquityV2TroveNFT";
|
|
45
|
+
export type { LiquityV2View } from "./LiquityV2View";
|
|
42
46
|
export type { LiquityView } from "./LiquityView";
|
|
43
47
|
export type { LlamaLendControllerAbi } from "./LlamaLendControllerAbi";
|
|
44
48
|
export type { LlamaLendView } from "./LlamaLendView";
|