@defisaver/positions-sdk 0.0.47 → 0.0.49
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 +236 -0
- package/cjs/config/contracts.js +25 -1
- package/cjs/contracts.d.ts +1 -0
- package/cjs/contracts.js +2 -1
- package/cjs/helpers/index.d.ts +1 -0
- package/cjs/helpers/index.js +2 -1
- package/cjs/helpers/llamaLendHelpers/index.d.ts +9 -0
- package/cjs/helpers/llamaLendHelpers/index.js +53 -0
- package/cjs/index.d.ts +2 -1
- package/cjs/index.js +3 -1
- package/cjs/llamaLend/index.d.ts +7 -0
- package/cjs/llamaLend/index.js +238 -0
- package/cjs/markets/index.d.ts +1 -0
- package/cjs/markets/index.js +3 -1
- package/cjs/markets/llamaLend/index.d.ts +12 -0
- package/cjs/markets/llamaLend/index.js +53 -0
- package/cjs/services/utils.d.ts +1 -0
- package/cjs/services/utils.js +3 -1
- package/cjs/types/contracts/generated/LlamaLendCRVCrvUSDController.d.ts +209 -0
- package/cjs/types/contracts/generated/LlamaLendCRVCrvUSDController.js +5 -0
- package/cjs/types/contracts/generated/LlamaLendCrvUSDCRVDController.d.ts +209 -0
- package/cjs/types/contracts/generated/LlamaLendCrvUSDCRVDController.js +5 -0
- package/cjs/types/contracts/generated/LlamaLendView.d.ts +260 -0
- package/cjs/types/contracts/generated/LlamaLendView.js +5 -0
- package/cjs/types/contracts/generated/LlamaLendWstETHCrvUSDController.d.ts +209 -0
- package/cjs/types/contracts/generated/LlamaLendWstETHCrvUSDController.js +5 -0
- package/cjs/types/contracts/generated/index.d.ts +4 -0
- package/cjs/types/index.d.ts +1 -0
- package/cjs/types/index.js +1 -0
- package/cjs/types/llamaLend.d.ts +110 -0
- package/cjs/types/llamaLend.js +17 -0
- package/esm/config/contracts.d.ts +236 -0
- package/esm/config/contracts.js +25 -1
- package/esm/contracts.d.ts +1 -0
- package/esm/contracts.js +1 -0
- package/esm/helpers/index.d.ts +1 -0
- package/esm/helpers/index.js +1 -0
- package/esm/helpers/llamaLendHelpers/index.d.ts +9 -0
- package/esm/helpers/llamaLendHelpers/index.js +46 -0
- package/esm/index.d.ts +2 -1
- package/esm/index.js +2 -1
- package/esm/llamaLend/index.d.ts +7 -0
- package/esm/llamaLend/index.js +228 -0
- package/esm/markets/index.d.ts +1 -0
- package/esm/markets/index.js +1 -0
- package/esm/markets/llamaLend/index.d.ts +12 -0
- package/esm/markets/llamaLend/index.js +45 -0
- package/esm/services/utils.d.ts +1 -0
- package/esm/services/utils.js +1 -0
- package/esm/types/contracts/generated/LlamaLendCRVCrvUSDController.d.ts +209 -0
- package/esm/types/contracts/generated/LlamaLendCRVCrvUSDController.js +4 -0
- package/esm/types/contracts/generated/LlamaLendCrvUSDCRVDController.d.ts +209 -0
- package/esm/types/contracts/generated/LlamaLendCrvUSDCRVDController.js +4 -0
- package/esm/types/contracts/generated/LlamaLendView.d.ts +260 -0
- package/esm/types/contracts/generated/LlamaLendView.js +4 -0
- package/esm/types/contracts/generated/LlamaLendWstETHCrvUSDController.d.ts +209 -0
- package/esm/types/contracts/generated/LlamaLendWstETHCrvUSDController.js +4 -0
- package/esm/types/contracts/generated/index.d.ts +4 -0
- package/esm/types/index.d.ts +1 -0
- package/esm/types/index.js +1 -0
- package/esm/types/llamaLend.d.ts +110 -0
- package/esm/types/llamaLend.js +14 -0
- package/package.json +1 -1
- package/src/config/contracts.js +25 -1
- package/src/contracts.ts +3 -1
- package/src/helpers/index.ts +2 -1
- package/src/helpers/llamaLendHelpers/index.ts +45 -0
- package/src/index.ts +2 -0
- package/src/llamaLend/index.ts +278 -0
- package/src/markets/index.ts +2 -1
- package/src/markets/llamaLend/index.ts +51 -0
- package/src/services/utils.ts +4 -1
- package/src/types/contracts/generated/LlamaLendCRVCrvUSDController.ts +416 -0
- package/src/types/contracts/generated/LlamaLendCrvUSDCRVDController.ts +416 -0
- package/src/types/contracts/generated/LlamaLendView.ts +335 -0
- package/src/types/contracts/generated/LlamaLendWstETHCrvUSDController.ts +416 -0
- package/src/types/contracts/generated/index.ts +4 -0
- package/src/types/index.ts +2 -1
- package/src/types/llamaLend.ts +118 -0
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import type BN from "bn.js";
|
|
3
|
+
import type { ContractOptions } from "web3-eth-contract";
|
|
4
|
+
import type { EventLog } from "web3-core";
|
|
5
|
+
import type { EventEmitter } from "events";
|
|
6
|
+
import type { Callback, NonPayableTransactionObject, BlockType, ContractEventLog, BaseContract } from "./types";
|
|
7
|
+
export interface EventOptions {
|
|
8
|
+
filter?: object;
|
|
9
|
+
fromBlock?: BlockType;
|
|
10
|
+
topics?: string[];
|
|
11
|
+
}
|
|
12
|
+
export type UserState = ContractEventLog<{
|
|
13
|
+
user: string;
|
|
14
|
+
collateral: string;
|
|
15
|
+
debt: string;
|
|
16
|
+
n1: string;
|
|
17
|
+
n2: string;
|
|
18
|
+
liquidation_discount: string;
|
|
19
|
+
0: string;
|
|
20
|
+
1: string;
|
|
21
|
+
2: string;
|
|
22
|
+
3: string;
|
|
23
|
+
4: string;
|
|
24
|
+
5: string;
|
|
25
|
+
}>;
|
|
26
|
+
export type Borrow = ContractEventLog<{
|
|
27
|
+
user: string;
|
|
28
|
+
collateral_increase: string;
|
|
29
|
+
loan_increase: string;
|
|
30
|
+
0: string;
|
|
31
|
+
1: string;
|
|
32
|
+
2: string;
|
|
33
|
+
}>;
|
|
34
|
+
export type Repay = ContractEventLog<{
|
|
35
|
+
user: string;
|
|
36
|
+
collateral_decrease: string;
|
|
37
|
+
loan_decrease: string;
|
|
38
|
+
0: string;
|
|
39
|
+
1: string;
|
|
40
|
+
2: string;
|
|
41
|
+
}>;
|
|
42
|
+
export type RemoveCollateral = ContractEventLog<{
|
|
43
|
+
user: string;
|
|
44
|
+
collateral_decrease: string;
|
|
45
|
+
0: string;
|
|
46
|
+
1: string;
|
|
47
|
+
}>;
|
|
48
|
+
export type Liquidate = ContractEventLog<{
|
|
49
|
+
liquidator: string;
|
|
50
|
+
user: string;
|
|
51
|
+
collateral_received: string;
|
|
52
|
+
stablecoin_received: string;
|
|
53
|
+
debt: string;
|
|
54
|
+
0: string;
|
|
55
|
+
1: string;
|
|
56
|
+
2: string;
|
|
57
|
+
3: string;
|
|
58
|
+
4: string;
|
|
59
|
+
}>;
|
|
60
|
+
export type SetMonetaryPolicy = ContractEventLog<{
|
|
61
|
+
monetary_policy: string;
|
|
62
|
+
0: string;
|
|
63
|
+
}>;
|
|
64
|
+
export type SetBorrowingDiscounts = ContractEventLog<{
|
|
65
|
+
loan_discount: string;
|
|
66
|
+
liquidation_discount: string;
|
|
67
|
+
0: string;
|
|
68
|
+
1: string;
|
|
69
|
+
}>;
|
|
70
|
+
export type CollectFees = ContractEventLog<{
|
|
71
|
+
amount: string;
|
|
72
|
+
new_supply: string;
|
|
73
|
+
0: string;
|
|
74
|
+
1: string;
|
|
75
|
+
}>;
|
|
76
|
+
export interface LlamaLendWstETHCrvUSDController extends BaseContract {
|
|
77
|
+
constructor(jsonInterface: any[], address?: string, options?: ContractOptions): LlamaLendWstETHCrvUSDController;
|
|
78
|
+
clone(): LlamaLendWstETHCrvUSDController;
|
|
79
|
+
methods: {
|
|
80
|
+
factory(): NonPayableTransactionObject<string>;
|
|
81
|
+
amm(): NonPayableTransactionObject<string>;
|
|
82
|
+
collateral_token(): NonPayableTransactionObject<string>;
|
|
83
|
+
borrowed_token(): NonPayableTransactionObject<string>;
|
|
84
|
+
save_rate(): NonPayableTransactionObject<void>;
|
|
85
|
+
debt(user: string): NonPayableTransactionObject<string>;
|
|
86
|
+
loan_exists(user: string): NonPayableTransactionObject<boolean>;
|
|
87
|
+
total_debt(): NonPayableTransactionObject<string>;
|
|
88
|
+
"max_borrowable(uint256,uint256)"(collateral: number | string | BN, N: number | string | BN): NonPayableTransactionObject<string>;
|
|
89
|
+
"max_borrowable(uint256,uint256,uint256)"(collateral: number | string | BN, N: number | string | BN, current_debt: number | string | BN): NonPayableTransactionObject<string>;
|
|
90
|
+
min_collateral(debt: number | string | BN, N: number | string | BN): NonPayableTransactionObject<string>;
|
|
91
|
+
calculate_debt_n1(collateral: number | string | BN, debt: number | string | BN, N: number | string | BN): NonPayableTransactionObject<string>;
|
|
92
|
+
create_loan(collateral: number | string | BN, debt: number | string | BN, N: number | string | BN): NonPayableTransactionObject<void>;
|
|
93
|
+
create_loan_extended(collateral: number | string | BN, debt: number | string | BN, N: number | string | BN, callbacker: string, callback_args: number | string | BN[]): NonPayableTransactionObject<void>;
|
|
94
|
+
"add_collateral(uint256)"(collateral: number | string | BN): NonPayableTransactionObject<void>;
|
|
95
|
+
"add_collateral(uint256,address)"(collateral: number | string | BN, _for: string): NonPayableTransactionObject<void>;
|
|
96
|
+
"remove_collateral(uint256)"(collateral: number | string | BN): NonPayableTransactionObject<void>;
|
|
97
|
+
"remove_collateral(uint256,bool)"(collateral: number | string | BN, use_eth: boolean): NonPayableTransactionObject<void>;
|
|
98
|
+
borrow_more(collateral: number | string | BN, debt: number | string | BN): NonPayableTransactionObject<void>;
|
|
99
|
+
borrow_more_extended(collateral: number | string | BN, debt: number | string | BN, callbacker: string, callback_args: number | string | BN[]): NonPayableTransactionObject<void>;
|
|
100
|
+
"repay(uint256)"(_d_debt: number | string | BN): NonPayableTransactionObject<void>;
|
|
101
|
+
"repay(uint256,address)"(_d_debt: number | string | BN, _for: string): NonPayableTransactionObject<void>;
|
|
102
|
+
"repay(uint256,address,int256)"(_d_debt: number | string | BN, _for: string, max_active_band: number | string | BN): NonPayableTransactionObject<void>;
|
|
103
|
+
"repay(uint256,address,int256,bool)"(_d_debt: number | string | BN, _for: string, max_active_band: number | string | BN, use_eth: boolean): NonPayableTransactionObject<void>;
|
|
104
|
+
repay_extended(callbacker: string, callback_args: number | string | BN[]): NonPayableTransactionObject<void>;
|
|
105
|
+
"health_calculator(address,int256,int256,bool)"(user: string, d_collateral: number | string | BN, d_debt: number | string | BN, full: boolean): NonPayableTransactionObject<string>;
|
|
106
|
+
"health_calculator(address,int256,int256,bool,uint256)"(user: string, d_collateral: number | string | BN, d_debt: number | string | BN, full: boolean, N: number | string | BN): NonPayableTransactionObject<string>;
|
|
107
|
+
"liquidate(address,uint256)"(user: string, min_x: number | string | BN): NonPayableTransactionObject<void>;
|
|
108
|
+
"liquidate(address,uint256,bool)"(user: string, min_x: number | string | BN, use_eth: boolean): NonPayableTransactionObject<void>;
|
|
109
|
+
liquidate_extended(user: string, min_x: number | string | BN, frac: number | string | BN, use_eth: boolean, callbacker: string, callback_args: number | string | BN[]): NonPayableTransactionObject<void>;
|
|
110
|
+
"tokens_to_liquidate(address)"(user: string): NonPayableTransactionObject<string>;
|
|
111
|
+
"tokens_to_liquidate(address,uint256)"(user: string, frac: number | string | BN): NonPayableTransactionObject<string>;
|
|
112
|
+
"health(address)"(user: string): NonPayableTransactionObject<string>;
|
|
113
|
+
"health(address,bool)"(user: string, full: boolean): NonPayableTransactionObject<string>;
|
|
114
|
+
"users_to_liquidate()"(): NonPayableTransactionObject<[
|
|
115
|
+
string,
|
|
116
|
+
string,
|
|
117
|
+
string,
|
|
118
|
+
string,
|
|
119
|
+
string
|
|
120
|
+
] & {
|
|
121
|
+
user: string;
|
|
122
|
+
x: string;
|
|
123
|
+
y: string;
|
|
124
|
+
debt: string;
|
|
125
|
+
health: string;
|
|
126
|
+
}[]>;
|
|
127
|
+
"users_to_liquidate(uint256)"(_from: number | string | BN): NonPayableTransactionObject<[
|
|
128
|
+
string,
|
|
129
|
+
string,
|
|
130
|
+
string,
|
|
131
|
+
string,
|
|
132
|
+
string
|
|
133
|
+
] & {
|
|
134
|
+
user: string;
|
|
135
|
+
x: string;
|
|
136
|
+
y: string;
|
|
137
|
+
debt: string;
|
|
138
|
+
health: string;
|
|
139
|
+
}[]>;
|
|
140
|
+
"users_to_liquidate(uint256,uint256)"(_from: number | string | BN, _limit: number | string | BN): NonPayableTransactionObject<[
|
|
141
|
+
string,
|
|
142
|
+
string,
|
|
143
|
+
string,
|
|
144
|
+
string,
|
|
145
|
+
string
|
|
146
|
+
] & {
|
|
147
|
+
user: string;
|
|
148
|
+
x: string;
|
|
149
|
+
y: string;
|
|
150
|
+
debt: string;
|
|
151
|
+
health: string;
|
|
152
|
+
}[]>;
|
|
153
|
+
amm_price(): NonPayableTransactionObject<string>;
|
|
154
|
+
user_prices(user: string): NonPayableTransactionObject<[string, string]>;
|
|
155
|
+
user_state(user: string): NonPayableTransactionObject<[string, string, string, string]>;
|
|
156
|
+
set_amm_fee(fee: number | string | BN): NonPayableTransactionObject<void>;
|
|
157
|
+
set_amm_admin_fee(fee: number | string | BN): NonPayableTransactionObject<void>;
|
|
158
|
+
set_monetary_policy(monetary_policy: string): NonPayableTransactionObject<void>;
|
|
159
|
+
set_borrowing_discounts(loan_discount: number | string | BN, liquidation_discount: number | string | BN): NonPayableTransactionObject<void>;
|
|
160
|
+
set_callback(cb: string): NonPayableTransactionObject<void>;
|
|
161
|
+
admin_fees(): NonPayableTransactionObject<string>;
|
|
162
|
+
collect_fees(): NonPayableTransactionObject<string>;
|
|
163
|
+
check_lock(): NonPayableTransactionObject<boolean>;
|
|
164
|
+
liquidation_discounts(arg0: string): NonPayableTransactionObject<string>;
|
|
165
|
+
loans(arg0: number | string | BN): NonPayableTransactionObject<string>;
|
|
166
|
+
loan_ix(arg0: string): NonPayableTransactionObject<string>;
|
|
167
|
+
n_loans(): NonPayableTransactionObject<string>;
|
|
168
|
+
minted(): NonPayableTransactionObject<string>;
|
|
169
|
+
redeemed(): NonPayableTransactionObject<string>;
|
|
170
|
+
monetary_policy(): NonPayableTransactionObject<string>;
|
|
171
|
+
liquidation_discount(): NonPayableTransactionObject<string>;
|
|
172
|
+
loan_discount(): NonPayableTransactionObject<string>;
|
|
173
|
+
};
|
|
174
|
+
events: {
|
|
175
|
+
UserState(cb?: Callback<UserState>): EventEmitter;
|
|
176
|
+
UserState(options?: EventOptions, cb?: Callback<UserState>): EventEmitter;
|
|
177
|
+
Borrow(cb?: Callback<Borrow>): EventEmitter;
|
|
178
|
+
Borrow(options?: EventOptions, cb?: Callback<Borrow>): EventEmitter;
|
|
179
|
+
Repay(cb?: Callback<Repay>): EventEmitter;
|
|
180
|
+
Repay(options?: EventOptions, cb?: Callback<Repay>): EventEmitter;
|
|
181
|
+
RemoveCollateral(cb?: Callback<RemoveCollateral>): EventEmitter;
|
|
182
|
+
RemoveCollateral(options?: EventOptions, cb?: Callback<RemoveCollateral>): EventEmitter;
|
|
183
|
+
Liquidate(cb?: Callback<Liquidate>): EventEmitter;
|
|
184
|
+
Liquidate(options?: EventOptions, cb?: Callback<Liquidate>): EventEmitter;
|
|
185
|
+
SetMonetaryPolicy(cb?: Callback<SetMonetaryPolicy>): EventEmitter;
|
|
186
|
+
SetMonetaryPolicy(options?: EventOptions, cb?: Callback<SetMonetaryPolicy>): EventEmitter;
|
|
187
|
+
SetBorrowingDiscounts(cb?: Callback<SetBorrowingDiscounts>): EventEmitter;
|
|
188
|
+
SetBorrowingDiscounts(options?: EventOptions, cb?: Callback<SetBorrowingDiscounts>): EventEmitter;
|
|
189
|
+
CollectFees(cb?: Callback<CollectFees>): EventEmitter;
|
|
190
|
+
CollectFees(options?: EventOptions, cb?: Callback<CollectFees>): EventEmitter;
|
|
191
|
+
allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter;
|
|
192
|
+
};
|
|
193
|
+
once(event: "UserState", cb: Callback<UserState>): void;
|
|
194
|
+
once(event: "UserState", options: EventOptions, cb: Callback<UserState>): void;
|
|
195
|
+
once(event: "Borrow", cb: Callback<Borrow>): void;
|
|
196
|
+
once(event: "Borrow", options: EventOptions, cb: Callback<Borrow>): void;
|
|
197
|
+
once(event: "Repay", cb: Callback<Repay>): void;
|
|
198
|
+
once(event: "Repay", options: EventOptions, cb: Callback<Repay>): void;
|
|
199
|
+
once(event: "RemoveCollateral", cb: Callback<RemoveCollateral>): void;
|
|
200
|
+
once(event: "RemoveCollateral", options: EventOptions, cb: Callback<RemoveCollateral>): void;
|
|
201
|
+
once(event: "Liquidate", cb: Callback<Liquidate>): void;
|
|
202
|
+
once(event: "Liquidate", options: EventOptions, cb: Callback<Liquidate>): void;
|
|
203
|
+
once(event: "SetMonetaryPolicy", cb: Callback<SetMonetaryPolicy>): void;
|
|
204
|
+
once(event: "SetMonetaryPolicy", options: EventOptions, cb: Callback<SetMonetaryPolicy>): void;
|
|
205
|
+
once(event: "SetBorrowingDiscounts", cb: Callback<SetBorrowingDiscounts>): void;
|
|
206
|
+
once(event: "SetBorrowingDiscounts", options: EventOptions, cb: Callback<SetBorrowingDiscounts>): void;
|
|
207
|
+
once(event: "CollectFees", cb: Callback<CollectFees>): void;
|
|
208
|
+
once(event: "CollectFees", options: EventOptions, cb: Callback<CollectFees>): void;
|
|
209
|
+
}
|
|
@@ -30,6 +30,10 @@ export type { LendingPoolAddressesProvider } from "./LendingPoolAddressesProvide
|
|
|
30
30
|
export type { Lido } from "./Lido";
|
|
31
31
|
export type { LiquityActivePool } from "./LiquityActivePool";
|
|
32
32
|
export type { LiquityView } from "./LiquityView";
|
|
33
|
+
export type { LlamaLendCRVCrvUSDController } from "./LlamaLendCRVCrvUSDController";
|
|
34
|
+
export type { LlamaLendCrvUSDCRVDController } from "./LlamaLendCrvUSDCRVDController";
|
|
35
|
+
export type { LlamaLendView } from "./LlamaLendView";
|
|
36
|
+
export type { LlamaLendWstETHCrvUSDController } from "./LlamaLendWstETHCrvUSDController";
|
|
33
37
|
export type { McdDog } from "./McdDog";
|
|
34
38
|
export type { McdJug } from "./McdJug";
|
|
35
39
|
export type { McdSpotter } from "./McdSpotter";
|
package/cjs/types/index.d.ts
CHANGED
package/cjs/types/index.js
CHANGED
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { EthAddress, NetworkNumber } from './common';
|
|
2
|
+
import { BandData, UserBandData } from './curveUsd';
|
|
3
|
+
export declare enum LlamaLendVersions {
|
|
4
|
+
'LlamaLendwstETHcrvUSD' = "llamaLendwstETHcrvUSD",
|
|
5
|
+
'LlamaLendCRVcrvUSD' = "llamaLendCRVcrvUSD",
|
|
6
|
+
'LlamaLendcrvUSDCRV' = "llamaLendcrvUSDCRV"
|
|
7
|
+
}
|
|
8
|
+
export declare enum LlamaLendStatus {
|
|
9
|
+
Nonexistant = "Nonexistant",
|
|
10
|
+
Safe = "Safe",
|
|
11
|
+
Risk = "Risk",
|
|
12
|
+
SoftLiquidating = "SoftLiquidating",
|
|
13
|
+
SoftLiquidated = "SoftLiquidated"
|
|
14
|
+
}
|
|
15
|
+
export interface LlamaLendMarketData {
|
|
16
|
+
chainIds: NetworkNumber[];
|
|
17
|
+
label: string;
|
|
18
|
+
shortLabel: string;
|
|
19
|
+
value: LlamaLendVersions;
|
|
20
|
+
collAsset: string;
|
|
21
|
+
baseAsset: string;
|
|
22
|
+
controllerAddress: string;
|
|
23
|
+
vaultAddress: EthAddress;
|
|
24
|
+
url: string;
|
|
25
|
+
}
|
|
26
|
+
export interface LlamaLendAssetData {
|
|
27
|
+
symbol: string;
|
|
28
|
+
address: string;
|
|
29
|
+
price: string;
|
|
30
|
+
supplyRate: string;
|
|
31
|
+
borrowRate: string;
|
|
32
|
+
totalSupply?: string;
|
|
33
|
+
totalBorrow?: string;
|
|
34
|
+
canBeSupplied?: boolean;
|
|
35
|
+
canBeBorrowed?: boolean;
|
|
36
|
+
shares?: string;
|
|
37
|
+
}
|
|
38
|
+
export type LlamaLendAssetsData = {
|
|
39
|
+
[key: string]: LlamaLendAssetData;
|
|
40
|
+
};
|
|
41
|
+
export interface LlamaLendGlobalMarketData {
|
|
42
|
+
collateral: string;
|
|
43
|
+
decimals: string;
|
|
44
|
+
activeBand: string;
|
|
45
|
+
totalDebt: string;
|
|
46
|
+
ammPrice: string;
|
|
47
|
+
basePrice: string;
|
|
48
|
+
oraclePrice: string;
|
|
49
|
+
minted: string;
|
|
50
|
+
redeemed: string;
|
|
51
|
+
monetaryPolicyRate: string;
|
|
52
|
+
ammRate: string;
|
|
53
|
+
minBand: string;
|
|
54
|
+
maxBand: string;
|
|
55
|
+
debtCeiling: string;
|
|
56
|
+
borrowRate: string;
|
|
57
|
+
lendRate: string;
|
|
58
|
+
futureBorrowRate: string;
|
|
59
|
+
leftToBorrow: string;
|
|
60
|
+
bands: BandData[];
|
|
61
|
+
assetsData: LlamaLendAssetsData;
|
|
62
|
+
}
|
|
63
|
+
export interface LlamaLendAggregatedPositionData {
|
|
64
|
+
ratio: string;
|
|
65
|
+
suppliedUsd: string;
|
|
66
|
+
borrowedUsd: string;
|
|
67
|
+
suppliedForYieldUsd: string;
|
|
68
|
+
safetyRatio: string;
|
|
69
|
+
borrowLimitUsd: string;
|
|
70
|
+
minAllowedRatio: number;
|
|
71
|
+
collFactor: string;
|
|
72
|
+
leveragedType: string;
|
|
73
|
+
leveragedAsset?: string;
|
|
74
|
+
liquidationPrice?: string;
|
|
75
|
+
}
|
|
76
|
+
export interface LlamaLendUsedAsset {
|
|
77
|
+
isSupplied: boolean;
|
|
78
|
+
supplied: string;
|
|
79
|
+
suppliedUsd: string;
|
|
80
|
+
borrowed: string;
|
|
81
|
+
borrowedUsd: string;
|
|
82
|
+
isBorrowed: boolean;
|
|
83
|
+
symbol: string;
|
|
84
|
+
collateral: boolean;
|
|
85
|
+
price: string;
|
|
86
|
+
interestRate?: string;
|
|
87
|
+
suppliedForYield?: string;
|
|
88
|
+
suppliedForYieldUsd?: string;
|
|
89
|
+
shares?: string;
|
|
90
|
+
}
|
|
91
|
+
export interface LlamaLendUsedAssets {
|
|
92
|
+
[key: string]: LlamaLendUsedAsset;
|
|
93
|
+
}
|
|
94
|
+
export interface LlamaLendUserData {
|
|
95
|
+
debtAmount: string;
|
|
96
|
+
health: string;
|
|
97
|
+
healthPercent: string;
|
|
98
|
+
priceHigh: string;
|
|
99
|
+
priceLow: string;
|
|
100
|
+
liquidationDiscount: string;
|
|
101
|
+
numOfBands: string;
|
|
102
|
+
usedAssets: LlamaLendUsedAssets;
|
|
103
|
+
status: LlamaLendStatus;
|
|
104
|
+
ratio: string;
|
|
105
|
+
suppliedUsd: string;
|
|
106
|
+
borrowedUsd: string;
|
|
107
|
+
suppliedForYieldUsd: string;
|
|
108
|
+
safetyRatio: string;
|
|
109
|
+
userBands: UserBandData[];
|
|
110
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LlamaLendStatus = exports.LlamaLendVersions = void 0;
|
|
4
|
+
var LlamaLendVersions;
|
|
5
|
+
(function (LlamaLendVersions) {
|
|
6
|
+
LlamaLendVersions["LlamaLendwstETHcrvUSD"] = "llamaLendwstETHcrvUSD";
|
|
7
|
+
LlamaLendVersions["LlamaLendCRVcrvUSD"] = "llamaLendCRVcrvUSD";
|
|
8
|
+
LlamaLendVersions["LlamaLendcrvUSDCRV"] = "llamaLendcrvUSDCRV";
|
|
9
|
+
})(LlamaLendVersions || (exports.LlamaLendVersions = LlamaLendVersions = {}));
|
|
10
|
+
var LlamaLendStatus;
|
|
11
|
+
(function (LlamaLendStatus) {
|
|
12
|
+
LlamaLendStatus["Nonexistant"] = "Nonexistant";
|
|
13
|
+
LlamaLendStatus["Safe"] = "Safe";
|
|
14
|
+
LlamaLendStatus["Risk"] = "Risk";
|
|
15
|
+
LlamaLendStatus["SoftLiquidating"] = "SoftLiquidating";
|
|
16
|
+
LlamaLendStatus["SoftLiquidated"] = "SoftLiquidated";
|
|
17
|
+
})(LlamaLendStatus || (exports.LlamaLendStatus = LlamaLendStatus = {}));
|
|
@@ -4617,3 +4617,239 @@ export namespace FeedRegistry {
|
|
|
4617
4617
|
};
|
|
4618
4618
|
export { networks_68 as networks };
|
|
4619
4619
|
}
|
|
4620
|
+
export namespace LlamaLendView {
|
|
4621
|
+
let abi_69: ({
|
|
4622
|
+
inputs: {
|
|
4623
|
+
internalType: string;
|
|
4624
|
+
name: string;
|
|
4625
|
+
type: string;
|
|
4626
|
+
}[];
|
|
4627
|
+
name: string;
|
|
4628
|
+
outputs: {
|
|
4629
|
+
components: ({
|
|
4630
|
+
internalType: string;
|
|
4631
|
+
name: string;
|
|
4632
|
+
type: string;
|
|
4633
|
+
components?: undefined;
|
|
4634
|
+
} | {
|
|
4635
|
+
components: {
|
|
4636
|
+
internalType: string;
|
|
4637
|
+
name: string;
|
|
4638
|
+
type: string;
|
|
4639
|
+
}[];
|
|
4640
|
+
internalType: string;
|
|
4641
|
+
name: string;
|
|
4642
|
+
type: string;
|
|
4643
|
+
})[];
|
|
4644
|
+
internalType: string;
|
|
4645
|
+
name: string;
|
|
4646
|
+
type: string;
|
|
4647
|
+
}[];
|
|
4648
|
+
stateMutability: string;
|
|
4649
|
+
type: string;
|
|
4650
|
+
} | {
|
|
4651
|
+
inputs: {
|
|
4652
|
+
internalType: string;
|
|
4653
|
+
name: string;
|
|
4654
|
+
type: string;
|
|
4655
|
+
}[];
|
|
4656
|
+
name: string;
|
|
4657
|
+
outputs: {
|
|
4658
|
+
internalType: string;
|
|
4659
|
+
name: string;
|
|
4660
|
+
type: string;
|
|
4661
|
+
}[];
|
|
4662
|
+
stateMutability: string;
|
|
4663
|
+
type: string;
|
|
4664
|
+
})[];
|
|
4665
|
+
export { abi_69 as abi };
|
|
4666
|
+
let networks_69: {
|
|
4667
|
+
"1": {
|
|
4668
|
+
address: string;
|
|
4669
|
+
};
|
|
4670
|
+
};
|
|
4671
|
+
export { networks_69 as networks };
|
|
4672
|
+
}
|
|
4673
|
+
export namespace LlamaLendWstETHCrvUSDController {
|
|
4674
|
+
let abi_70: ({
|
|
4675
|
+
name: string;
|
|
4676
|
+
inputs: {
|
|
4677
|
+
name: string;
|
|
4678
|
+
type: string;
|
|
4679
|
+
indexed: boolean;
|
|
4680
|
+
}[];
|
|
4681
|
+
anonymous: boolean;
|
|
4682
|
+
type: string;
|
|
4683
|
+
stateMutability?: undefined;
|
|
4684
|
+
outputs?: undefined;
|
|
4685
|
+
} | {
|
|
4686
|
+
stateMutability: string;
|
|
4687
|
+
type: string;
|
|
4688
|
+
inputs: {
|
|
4689
|
+
name: string;
|
|
4690
|
+
type: string;
|
|
4691
|
+
}[];
|
|
4692
|
+
outputs: never[];
|
|
4693
|
+
name?: undefined;
|
|
4694
|
+
anonymous?: undefined;
|
|
4695
|
+
} | {
|
|
4696
|
+
stateMutability: string;
|
|
4697
|
+
type: string;
|
|
4698
|
+
name: string;
|
|
4699
|
+
inputs: {
|
|
4700
|
+
name: string;
|
|
4701
|
+
type: string;
|
|
4702
|
+
}[];
|
|
4703
|
+
outputs: {
|
|
4704
|
+
name: string;
|
|
4705
|
+
type: string;
|
|
4706
|
+
}[];
|
|
4707
|
+
anonymous?: undefined;
|
|
4708
|
+
} | {
|
|
4709
|
+
stateMutability: string;
|
|
4710
|
+
type: string;
|
|
4711
|
+
name: string;
|
|
4712
|
+
inputs: {
|
|
4713
|
+
name: string;
|
|
4714
|
+
type: string;
|
|
4715
|
+
}[];
|
|
4716
|
+
outputs: {
|
|
4717
|
+
name: string;
|
|
4718
|
+
type: string;
|
|
4719
|
+
components: {
|
|
4720
|
+
name: string;
|
|
4721
|
+
type: string;
|
|
4722
|
+
}[];
|
|
4723
|
+
}[];
|
|
4724
|
+
anonymous?: undefined;
|
|
4725
|
+
})[];
|
|
4726
|
+
export { abi_70 as abi };
|
|
4727
|
+
let networks_70: {
|
|
4728
|
+
"1": {
|
|
4729
|
+
address: string;
|
|
4730
|
+
};
|
|
4731
|
+
};
|
|
4732
|
+
export { networks_70 as networks };
|
|
4733
|
+
}
|
|
4734
|
+
export namespace LlamaLendCRVCrvUSDController {
|
|
4735
|
+
let abi_71: ({
|
|
4736
|
+
name: string;
|
|
4737
|
+
inputs: {
|
|
4738
|
+
name: string;
|
|
4739
|
+
type: string;
|
|
4740
|
+
indexed: boolean;
|
|
4741
|
+
}[];
|
|
4742
|
+
anonymous: boolean;
|
|
4743
|
+
type: string;
|
|
4744
|
+
stateMutability?: undefined;
|
|
4745
|
+
outputs?: undefined;
|
|
4746
|
+
} | {
|
|
4747
|
+
stateMutability: string;
|
|
4748
|
+
type: string;
|
|
4749
|
+
inputs: {
|
|
4750
|
+
name: string;
|
|
4751
|
+
type: string;
|
|
4752
|
+
}[];
|
|
4753
|
+
outputs: never[];
|
|
4754
|
+
name?: undefined;
|
|
4755
|
+
anonymous?: undefined;
|
|
4756
|
+
} | {
|
|
4757
|
+
stateMutability: string;
|
|
4758
|
+
type: string;
|
|
4759
|
+
name: string;
|
|
4760
|
+
inputs: {
|
|
4761
|
+
name: string;
|
|
4762
|
+
type: string;
|
|
4763
|
+
}[];
|
|
4764
|
+
outputs: {
|
|
4765
|
+
name: string;
|
|
4766
|
+
type: string;
|
|
4767
|
+
}[];
|
|
4768
|
+
anonymous?: undefined;
|
|
4769
|
+
} | {
|
|
4770
|
+
stateMutability: string;
|
|
4771
|
+
type: string;
|
|
4772
|
+
name: string;
|
|
4773
|
+
inputs: {
|
|
4774
|
+
name: string;
|
|
4775
|
+
type: string;
|
|
4776
|
+
}[];
|
|
4777
|
+
outputs: {
|
|
4778
|
+
name: string;
|
|
4779
|
+
type: string;
|
|
4780
|
+
components: {
|
|
4781
|
+
name: string;
|
|
4782
|
+
type: string;
|
|
4783
|
+
}[];
|
|
4784
|
+
}[];
|
|
4785
|
+
anonymous?: undefined;
|
|
4786
|
+
})[];
|
|
4787
|
+
export { abi_71 as abi };
|
|
4788
|
+
let networks_71: {
|
|
4789
|
+
"1": {
|
|
4790
|
+
address: string;
|
|
4791
|
+
};
|
|
4792
|
+
};
|
|
4793
|
+
export { networks_71 as networks };
|
|
4794
|
+
}
|
|
4795
|
+
export namespace LlamaLendCrvUSDCRVDController {
|
|
4796
|
+
let abi_72: ({
|
|
4797
|
+
name: string;
|
|
4798
|
+
inputs: {
|
|
4799
|
+
name: string;
|
|
4800
|
+
type: string;
|
|
4801
|
+
indexed: boolean;
|
|
4802
|
+
}[];
|
|
4803
|
+
anonymous: boolean;
|
|
4804
|
+
type: string;
|
|
4805
|
+
stateMutability?: undefined;
|
|
4806
|
+
outputs?: undefined;
|
|
4807
|
+
} | {
|
|
4808
|
+
stateMutability: string;
|
|
4809
|
+
type: string;
|
|
4810
|
+
inputs: {
|
|
4811
|
+
name: string;
|
|
4812
|
+
type: string;
|
|
4813
|
+
}[];
|
|
4814
|
+
outputs: never[];
|
|
4815
|
+
name?: undefined;
|
|
4816
|
+
anonymous?: undefined;
|
|
4817
|
+
} | {
|
|
4818
|
+
stateMutability: string;
|
|
4819
|
+
type: string;
|
|
4820
|
+
name: string;
|
|
4821
|
+
inputs: {
|
|
4822
|
+
name: string;
|
|
4823
|
+
type: string;
|
|
4824
|
+
}[];
|
|
4825
|
+
outputs: {
|
|
4826
|
+
name: string;
|
|
4827
|
+
type: string;
|
|
4828
|
+
}[];
|
|
4829
|
+
anonymous?: undefined;
|
|
4830
|
+
} | {
|
|
4831
|
+
stateMutability: string;
|
|
4832
|
+
type: string;
|
|
4833
|
+
name: string;
|
|
4834
|
+
inputs: {
|
|
4835
|
+
name: string;
|
|
4836
|
+
type: string;
|
|
4837
|
+
}[];
|
|
4838
|
+
outputs: {
|
|
4839
|
+
name: string;
|
|
4840
|
+
type: string;
|
|
4841
|
+
components: {
|
|
4842
|
+
name: string;
|
|
4843
|
+
type: string;
|
|
4844
|
+
}[];
|
|
4845
|
+
}[];
|
|
4846
|
+
anonymous?: undefined;
|
|
4847
|
+
})[];
|
|
4848
|
+
export { abi_72 as abi };
|
|
4849
|
+
let networks_72: {
|
|
4850
|
+
"1": {
|
|
4851
|
+
address: string;
|
|
4852
|
+
};
|
|
4853
|
+
};
|
|
4854
|
+
export { networks_72 as networks };
|
|
4855
|
+
}
|