@gearbox-protocol/sdk 0.0.7 → 0.0.10

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 (47) hide show
  1. package/lib/core/oracles.d.ts +41 -5
  2. package/lib/core/oracles.js +10 -0
  3. package/lib/core/priceFeeds.d.ts +3 -0
  4. package/lib/core/priceFeeds.js +391 -0
  5. package/lib/core/token.d.ts +3 -0
  6. package/lib/core/token.js +8 -3
  7. package/lib/index.d.ts +1 -0
  8. package/lib/index.js +1 -0
  9. package/package.json +1 -1
  10. package/src/core/oracles.ts +50 -5
  11. package/src/core/priceFeeds.ts +422 -0
  12. package/src/core/token.ts +9 -4
  13. package/src/index.ts +1 -0
  14. package/lib/core/event.d.ts +0 -42
  15. package/lib/core/event.js +0 -2
  16. package/lib/types/AbstractAccountMiner.d.ts +0 -143
  17. package/lib/types/AccountMinerAuction.d.ts +0 -391
  18. package/lib/types/AccountMinerMock.d.ts +0 -241
  19. package/lib/types/AccountMinerNonReceivableTest.d.ts +0 -127
  20. package/lib/types/AccountMinerOwnFunds.d.ts +0 -218
  21. package/lib/types/AdaptersDeployer.d.ts +0 -262
  22. package/lib/types/CoreDeployer.d.ts +0 -394
  23. package/lib/types/Deployer.d.ts +0 -224
  24. package/lib/types/GenesisDeployer.d.ts +0 -282
  25. package/lib/types/ICreditAccountData.d.ts +0 -347
  26. package/lib/types/PoolDeployer.d.ts +0 -282
  27. package/lib/types/Proxy.d.ts +0 -78
  28. package/lib/types/VestingDeployer.d.ts +0 -247
  29. package/lib/types/factories/AbstractAccountMiner__factory.d.ts +0 -30
  30. package/lib/types/factories/AbstractAccountMiner__factory.js +0 -61
  31. package/lib/types/factories/AccountMinerAuction__factory.js +0 -304
  32. package/lib/types/factories/AccountMinerMock__factory.js +0 -196
  33. package/lib/types/factories/AccountMinerNonReceivableTest__factory.js +0 -84
  34. package/lib/types/factories/AccountMinerOwnFunds__factory.js +0 -181
  35. package/lib/types/factories/AdaptersDeployer__factory.d.ts +0 -85
  36. package/lib/types/factories/AdaptersDeployer__factory.js +0 -202
  37. package/lib/types/factories/CoreDeployer__factory.js +0 -331
  38. package/lib/types/factories/Deployer__factory.js +0 -248
  39. package/lib/types/factories/GenesisDeployer__factory.d.ts +0 -108
  40. package/lib/types/factories/GenesisDeployer__factory.js +0 -231
  41. package/lib/types/factories/ICreditAccountData__factory.d.ts +0 -35
  42. package/lib/types/factories/ICreditAccountData__factory.js +0 -216
  43. package/lib/types/factories/PoolDeployer__factory.d.ts +0 -113
  44. package/lib/types/factories/PoolDeployer__factory.js +0 -257
  45. package/lib/types/factories/Proxy__factory.d.ts +0 -13
  46. package/lib/types/factories/Proxy__factory.js +0 -30
  47. package/lib/types/factories/VestingDeployer__factory.js +0 -216
@@ -1,35 +0,0 @@
1
- export var __esModule: boolean;
2
- export function ICreditAccountData__factory(): void;
3
- export namespace ICreditAccountData__factory {
4
- export function createInterface(): ethers_1.ethers.utils.Interface;
5
- export function connect(address: any, signerOrProvider: any): ethers_1.ethers.Contract;
6
- export { _abi as abi };
7
- }
8
- import ethers_1 = require("ethers");
9
- declare var _abi: {
10
- inputs: never[];
11
- name: string;
12
- outputs: {
13
- components: ({
14
- internalType: string;
15
- name: string;
16
- type: string;
17
- components?: undefined;
18
- } | {
19
- components: {
20
- internalType: string;
21
- name: string;
22
- type: string;
23
- }[];
24
- internalType: string;
25
- name: string;
26
- type: string;
27
- })[];
28
- internalType: string;
29
- name: string;
30
- type: string;
31
- }[];
32
- stateMutability: string;
33
- type: string;
34
- }[];
35
- export {};
@@ -1,216 +0,0 @@
1
- "use strict";
2
- /* Autogenerated file. Do not edit manually. */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.ICreditAccountData__factory = void 0;
7
- var ethers_1 = require("ethers");
8
- var _abi = [
9
- {
10
- inputs: [],
11
- name: "getCreditAccountDataExtended",
12
- outputs: [
13
- {
14
- components: [
15
- {
16
- internalType: "address",
17
- name: "addr",
18
- type: "address",
19
- },
20
- {
21
- internalType: "address",
22
- name: "borrower",
23
- type: "address",
24
- },
25
- {
26
- internalType: "bool",
27
- name: "inUse",
28
- type: "bool",
29
- },
30
- {
31
- internalType: "address",
32
- name: "creditManager",
33
- type: "address",
34
- },
35
- {
36
- internalType: "address",
37
- name: "underlyingToken",
38
- type: "address",
39
- },
40
- {
41
- internalType: "uint256",
42
- name: "borrowedAmountPlusInterest",
43
- type: "uint256",
44
- },
45
- {
46
- internalType: "uint256",
47
- name: "totalValue",
48
- type: "uint256",
49
- },
50
- {
51
- internalType: "uint256",
52
- name: "healthFactor",
53
- type: "uint256",
54
- },
55
- {
56
- internalType: "uint256",
57
- name: "borrowRate",
58
- type: "uint256",
59
- },
60
- {
61
- components: [
62
- {
63
- internalType: "address",
64
- name: "token",
65
- type: "address",
66
- },
67
- {
68
- internalType: "uint256",
69
- name: "balance",
70
- type: "uint256",
71
- },
72
- ],
73
- internalType: "struct DataTypes.TokenBalance[]",
74
- name: "balances",
75
- type: "tuple[]",
76
- },
77
- {
78
- internalType: "uint256",
79
- name: "repayAmount",
80
- type: "uint256",
81
- },
82
- {
83
- internalType: "uint256",
84
- name: "liquidationAmount",
85
- type: "uint256",
86
- },
87
- {
88
- internalType: "bool",
89
- name: "canBeClosed",
90
- type: "bool",
91
- },
92
- {
93
- internalType: "uint256",
94
- name: "borrowedAmount",
95
- type: "uint256",
96
- },
97
- {
98
- internalType: "uint256",
99
- name: "cumulativeIndexAtOpen",
100
- type: "uint256",
101
- },
102
- {
103
- internalType: "uint256",
104
- name: "since",
105
- type: "uint256",
106
- },
107
- ],
108
- internalType: "struct DataTypes.CreditAccountDataExtended",
109
- name: "",
110
- type: "tuple",
111
- },
112
- ],
113
- stateMutability: "view",
114
- type: "function",
115
- },
116
- {
117
- inputs: [],
118
- name: "getCreditManagerData",
119
- outputs: [
120
- {
121
- components: [
122
- {
123
- internalType: "address",
124
- name: "addr",
125
- type: "address",
126
- },
127
- {
128
- internalType: "bool",
129
- name: "hasAccount",
130
- type: "bool",
131
- },
132
- {
133
- internalType: "address",
134
- name: "underlyingToken",
135
- type: "address",
136
- },
137
- {
138
- internalType: "bool",
139
- name: "isWETH",
140
- type: "bool",
141
- },
142
- {
143
- internalType: "bool",
144
- name: "canBorrow",
145
- type: "bool",
146
- },
147
- {
148
- internalType: "uint256",
149
- name: "borrowRate",
150
- type: "uint256",
151
- },
152
- {
153
- internalType: "uint256",
154
- name: "minAmount",
155
- type: "uint256",
156
- },
157
- {
158
- internalType: "uint256",
159
- name: "maxAmount",
160
- type: "uint256",
161
- },
162
- {
163
- internalType: "uint256",
164
- name: "maxLeverageFactor",
165
- type: "uint256",
166
- },
167
- {
168
- internalType: "uint256",
169
- name: "availableLiquidity",
170
- type: "uint256",
171
- },
172
- {
173
- internalType: "address[]",
174
- name: "allowedTokens",
175
- type: "address[]",
176
- },
177
- {
178
- components: [
179
- {
180
- internalType: "address",
181
- name: "allowedContract",
182
- type: "address",
183
- },
184
- {
185
- internalType: "address",
186
- name: "adapter",
187
- type: "address",
188
- },
189
- ],
190
- internalType: "struct DataTypes.ContractAdapter[]",
191
- name: "adapters",
192
- type: "tuple[]",
193
- },
194
- ],
195
- internalType: "struct DataTypes.CreditManagerData",
196
- name: "",
197
- type: "tuple",
198
- },
199
- ],
200
- stateMutability: "view",
201
- type: "function",
202
- },
203
- ];
204
- var ICreditAccountData__factory = /** @class */ (function () {
205
- function ICreditAccountData__factory() {
206
- }
207
- ICreditAccountData__factory.createInterface = function () {
208
- return new ethers_1.utils.Interface(_abi);
209
- };
210
- ICreditAccountData__factory.connect = function (address, signerOrProvider) {
211
- return new ethers_1.Contract(address, _abi, signerOrProvider);
212
- };
213
- ICreditAccountData__factory.abi = _abi;
214
- return ICreditAccountData__factory;
215
- }());
216
- exports.ICreditAccountData__factory = ICreditAccountData__factory;