impermax-sdk 1.0.1 → 1.0.3

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 (103) hide show
  1. package/package.json +9 -3
  2. package/.idea/impermax-sdk.iml +0 -12
  3. package/.idea/misc.xml +0 -6
  4. package/.idea/modules.xml +0 -8
  5. package/.idea/workspace.xml +0 -642
  6. package/abis/ImpermaxABI.ts +0 -3
  7. package/abis/contracts/BAllowance.json +0 -4735
  8. package/abis/contracts/BDeployer.json +0 -1195
  9. package/abis/contracts/BInterestRateModel.json +0 -10796
  10. package/abis/contracts/BSetter.json +0 -6219
  11. package/abis/contracts/BStorage.json +0 -2613
  12. package/abis/contracts/Borrowable.json +0 -19937
  13. package/abis/contracts/CDeployer.json +0 -1104
  14. package/abis/contracts/CSetter.json +0 -5094
  15. package/abis/contracts/CStorage.json +0 -516
  16. package/abis/contracts/ClaimAggregator.json +0 -2015
  17. package/abis/contracts/Collateral.json +0 -21615
  18. package/abis/contracts/ERC20.json +0 -819
  19. package/abis/contracts/Factory.json +0 -21986
  20. package/abis/contracts/FarmingPool.json +0 -8601
  21. package/abis/contracts/IBDeployer.json +0 -351
  22. package/abis/contracts/IBorrowTracker.json +0 -346
  23. package/abis/contracts/IBorrowable.json +0 -13207
  24. package/abis/contracts/ICDeployer.json +0 -294
  25. package/abis/contracts/IClaimable.json +0 -406
  26. package/abis/contracts/ICollateral.json +0 -8952
  27. package/abis/contracts/IERC20.json +0 -2376
  28. package/abis/contracts/IFactory.json +0 -3660
  29. package/abis/contracts/IFarmingPool.json +0 -3584
  30. package/abis/contracts/IImpermaxCallee.json +0 -679
  31. package/abis/contracts/IMerkleDistributor.json +0 -1134
  32. package/abis/contracts/IPoolToken.json +0 -5343
  33. package/abis/contracts/IRouter01.json +0 -6891
  34. package/abis/contracts/IRouter02.json +0 -7283
  35. package/abis/contracts/ISimpleUniswapOracle.json +0 -1469
  36. package/abis/contracts/IStakedLPToken.json +0 -7309
  37. package/abis/contracts/IStakingRewards.json +0 -1036
  38. package/abis/contracts/IUniswapV2Callee.json +0 -403
  39. package/abis/contracts/IUniswapV2ERC20.json +0 -3155
  40. package/abis/contracts/IUniswapV2Factory.json +0 -1690
  41. package/abis/contracts/IUniswapV2Pair.json +0 -6761
  42. package/abis/contracts/IWETH.json +0 -561
  43. package/abis/contracts/ImpermaxChef.json +0 -20945
  44. package/abis/contracts/ImpermaxERC20.json +0 -12095
  45. package/abis/contracts/Math.json +0 -1966
  46. package/abis/contracts/MockERC20.json +0 -8884
  47. package/abis/contracts/PoolToken.json +0 -10784
  48. package/abis/contracts/Router01.json +0 -43963
  49. package/abis/contracts/SafeMath.json +0 -6828
  50. package/abis/contracts/SimpleUniswapOracle.json +0 -9640
  51. package/abis/contracts/TransferHelper.json +0 -4875
  52. package/abis/contracts/UQ112x112.json +0 -1201
  53. package/abis/contracts/UniswapV2ERC20.json +0 -10969
  54. package/abis/contracts/UniswapV2Factory.json +0 -5521
  55. package/abis/contracts/UniswapV2Library.json +0 -13789
  56. package/abis/contracts/UniswapV2Pair.json +0 -30782
  57. package/abis/contracts/WETH9.json +0 -6613
  58. package/config/amms.ts +0 -199
  59. package/config/contracts/claim-aggregators.ts +0 -16
  60. package/config/contracts/impermax-chef.ts +0 -16
  61. package/config/contracts/imxes.ts +0 -16
  62. package/config/contracts/merkle-distributors.ts +0 -13
  63. package/config/contracts/routers.ts +0 -36
  64. package/config/contracts/simple-uniswap-oracles.ts +0 -33
  65. package/config/contracts/weths.ts +0 -18
  66. package/config/debank-ids.ts +0 -15
  67. package/config/endpoints/merkle-distributors.ts +0 -13
  68. package/config/eth.ts +0 -32
  69. package/config/factories.ts +0 -26
  70. package/config/farms.ts +0 -119
  71. package/config/general.ts +0 -8
  72. package/config/subgraphs.ts +0 -69
  73. package/config/types.ts +0 -81
  74. package/impermax-router/Account.ts +0 -123
  75. package/impermax-router/AccountBorrowable.ts +0 -110
  76. package/impermax-router/AccountCollateral.ts +0 -40
  77. package/impermax-router/AccountLendingPool.ts +0 -231
  78. package/impermax-router/AccountPoolToken.ts +0 -76
  79. package/impermax-router/Borrowable.ts +0 -86
  80. package/impermax-router/Collateral.ts +0 -26
  81. package/impermax-router/ContractsHelper.ts +0 -64
  82. package/impermax-router/ImpermaxFactory.ts +0 -47
  83. package/impermax-router/Interactions.ts +0 -94
  84. package/impermax-router/InteractionsLendingPool.ts +0 -129
  85. package/impermax-router/InteractionsPoolToken.ts +0 -187
  86. package/impermax-router/LendingPool.ts +0 -256
  87. package/impermax-router/PoolToken.ts +0 -112
  88. package/impermax-router/index.ts +0 -49
  89. package/impermax-router/interfaces.ts +0 -233
  90. package/index.ts +0 -5
  91. package/subgraph/Account.ts +0 -93
  92. package/subgraph/AccountLendingPool.ts +0 -60
  93. package/subgraph/AccountPoolToken.ts +0 -60
  94. package/subgraph/LendingPool.ts +0 -179
  95. package/subgraph/PoolToken.ts +0 -381
  96. package/subgraph/PriceHelper.ts +0 -150
  97. package/subgraph/SolidexHelper.ts +0 -54
  98. package/subgraph/index.ts +0 -166
  99. package/subgraph/initializer.ts +0 -509
  100. package/subgraph/query.ts +0 -224
  101. package/tsconfig.json +0 -16
  102. package/utils/ether-utils.ts +0 -22
  103. package/utils/index.ts +0 -12
@@ -1,346 +0,0 @@
1
- {
2
- "contractName": "IBorrowTracker",
3
- "abi": [
4
- {
5
- "constant": false,
6
- "inputs": [
7
- {
8
- "internalType": "address",
9
- "name": "borrower",
10
- "type": "address"
11
- },
12
- {
13
- "internalType": "uint256",
14
- "name": "borrowBalance",
15
- "type": "uint256"
16
- },
17
- {
18
- "internalType": "uint256",
19
- "name": "borrowIndex",
20
- "type": "uint256"
21
- }
22
- ],
23
- "name": "trackBorrow",
24
- "outputs": [],
25
- "payable": false,
26
- "stateMutability": "nonpayable",
27
- "type": "function"
28
- }
29
- ],
30
- "metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"borrower\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"borrowBalance\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"borrowIndex\",\"type\":\"uint256\"}],\"name\":\"trackBorrow\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/C/Users/simor/Desktop/impermax-x-uniswapv2-periphery/test/Contracts/imx-univ2-core/interfaces/IBorrowTracker.sol\":\"IBorrowTracker\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"/C/Users/simor/Desktop/impermax-x-uniswapv2-periphery/test/Contracts/imx-univ2-core/interfaces/IBorrowTracker.sol\":{\"keccak256\":\"0xc2ddd380effc1179ff0ca88f4733113ff8ab9b7317e75483df57abc2f4dfab0b\",\"urls\":[\"bzz-raw://3bde59cee4b505dc0ed83cc67e6a26a530b08dfe02bdaf9a8da096576a630ff5\",\"dweb:/ipfs/QmNdnZBVo4eWPirmUU8AhoC5adUbS2xferbeBi1AZkaLtW\"]}},\"version\":1}",
31
- "bytecode": "0x",
32
- "deployedBytecode": "0x",
33
- "sourceMap": "",
34
- "deployedSourceMap": "",
35
- "source": "pragma solidity >=0.5.0;\r\n\r\ninterface IBorrowTracker {\r\n\tfunction trackBorrow(address borrower, uint borrowBalance, uint borrowIndex) external;\r\n}",
36
- "sourcePath": "C:\\Users\\simor\\Desktop\\impermax-x-uniswapv2-periphery\\test\\Contracts\\imx-univ2-core\\interfaces\\IBorrowTracker.sol",
37
- "ast": {
38
- "absolutePath": "/C/Users/simor/Desktop/impermax-x-uniswapv2-periphery/test/Contracts/imx-univ2-core/interfaces/IBorrowTracker.sol",
39
- "exportedSymbols": {
40
- "IBorrowTracker": [
41
- 4944
42
- ]
43
- },
44
- "id": 4945,
45
- "nodeType": "SourceUnit",
46
- "nodes": [
47
- {
48
- "id": 4934,
49
- "literals": [
50
- "solidity",
51
- ">=",
52
- "0.5",
53
- ".0"
54
- ],
55
- "nodeType": "PragmaDirective",
56
- "src": "0:24:18"
57
- },
58
- {
59
- "baseContracts": [],
60
- "contractDependencies": [],
61
- "contractKind": "interface",
62
- "documentation": null,
63
- "fullyImplemented": false,
64
- "id": 4944,
65
- "linearizedBaseContracts": [
66
- 4944
67
- ],
68
- "name": "IBorrowTracker",
69
- "nodeType": "ContractDefinition",
70
- "nodes": [
71
- {
72
- "body": null,
73
- "documentation": null,
74
- "id": 4943,
75
- "implemented": false,
76
- "kind": "function",
77
- "modifiers": [],
78
- "name": "trackBorrow",
79
- "nodeType": "FunctionDefinition",
80
- "parameters": {
81
- "id": 4941,
82
- "nodeType": "ParameterList",
83
- "parameters": [
84
- {
85
- "constant": false,
86
- "id": 4936,
87
- "name": "borrower",
88
- "nodeType": "VariableDeclaration",
89
- "scope": 4943,
90
- "src": "78:16:18",
91
- "stateVariable": false,
92
- "storageLocation": "default",
93
- "typeDescriptions": {
94
- "typeIdentifier": "t_address",
95
- "typeString": "address"
96
- },
97
- "typeName": {
98
- "id": 4935,
99
- "name": "address",
100
- "nodeType": "ElementaryTypeName",
101
- "src": "78:7:18",
102
- "stateMutability": "nonpayable",
103
- "typeDescriptions": {
104
- "typeIdentifier": "t_address",
105
- "typeString": "address"
106
- }
107
- },
108
- "value": null,
109
- "visibility": "internal"
110
- },
111
- {
112
- "constant": false,
113
- "id": 4938,
114
- "name": "borrowBalance",
115
- "nodeType": "VariableDeclaration",
116
- "scope": 4943,
117
- "src": "96:18:18",
118
- "stateVariable": false,
119
- "storageLocation": "default",
120
- "typeDescriptions": {
121
- "typeIdentifier": "t_uint256",
122
- "typeString": "uint256"
123
- },
124
- "typeName": {
125
- "id": 4937,
126
- "name": "uint",
127
- "nodeType": "ElementaryTypeName",
128
- "src": "96:4:18",
129
- "typeDescriptions": {
130
- "typeIdentifier": "t_uint256",
131
- "typeString": "uint256"
132
- }
133
- },
134
- "value": null,
135
- "visibility": "internal"
136
- },
137
- {
138
- "constant": false,
139
- "id": 4940,
140
- "name": "borrowIndex",
141
- "nodeType": "VariableDeclaration",
142
- "scope": 4943,
143
- "src": "116:16:18",
144
- "stateVariable": false,
145
- "storageLocation": "default",
146
- "typeDescriptions": {
147
- "typeIdentifier": "t_uint256",
148
- "typeString": "uint256"
149
- },
150
- "typeName": {
151
- "id": 4939,
152
- "name": "uint",
153
- "nodeType": "ElementaryTypeName",
154
- "src": "116:4:18",
155
- "typeDescriptions": {
156
- "typeIdentifier": "t_uint256",
157
- "typeString": "uint256"
158
- }
159
- },
160
- "value": null,
161
- "visibility": "internal"
162
- }
163
- ],
164
- "src": "77:56:18"
165
- },
166
- "returnParameters": {
167
- "id": 4942,
168
- "nodeType": "ParameterList",
169
- "parameters": [],
170
- "src": "142:0:18"
171
- },
172
- "scope": 4944,
173
- "src": "57:86:18",
174
- "stateMutability": "nonpayable",
175
- "superFunction": null,
176
- "visibility": "external"
177
- }
178
- ],
179
- "scope": 4945,
180
- "src": "28:118:18"
181
- }
182
- ],
183
- "src": "0:146:18"
184
- },
185
- "legacyAST": {
186
- "absolutePath": "/C/Users/simor/Desktop/impermax-x-uniswapv2-periphery/test/Contracts/imx-univ2-core/interfaces/IBorrowTracker.sol",
187
- "exportedSymbols": {
188
- "IBorrowTracker": [
189
- 4944
190
- ]
191
- },
192
- "id": 4945,
193
- "nodeType": "SourceUnit",
194
- "nodes": [
195
- {
196
- "id": 4934,
197
- "literals": [
198
- "solidity",
199
- ">=",
200
- "0.5",
201
- ".0"
202
- ],
203
- "nodeType": "PragmaDirective",
204
- "src": "0:24:18"
205
- },
206
- {
207
- "baseContracts": [],
208
- "contractDependencies": [],
209
- "contractKind": "interface",
210
- "documentation": null,
211
- "fullyImplemented": false,
212
- "id": 4944,
213
- "linearizedBaseContracts": [
214
- 4944
215
- ],
216
- "name": "IBorrowTracker",
217
- "nodeType": "ContractDefinition",
218
- "nodes": [
219
- {
220
- "body": null,
221
- "documentation": null,
222
- "id": 4943,
223
- "implemented": false,
224
- "kind": "function",
225
- "modifiers": [],
226
- "name": "trackBorrow",
227
- "nodeType": "FunctionDefinition",
228
- "parameters": {
229
- "id": 4941,
230
- "nodeType": "ParameterList",
231
- "parameters": [
232
- {
233
- "constant": false,
234
- "id": 4936,
235
- "name": "borrower",
236
- "nodeType": "VariableDeclaration",
237
- "scope": 4943,
238
- "src": "78:16:18",
239
- "stateVariable": false,
240
- "storageLocation": "default",
241
- "typeDescriptions": {
242
- "typeIdentifier": "t_address",
243
- "typeString": "address"
244
- },
245
- "typeName": {
246
- "id": 4935,
247
- "name": "address",
248
- "nodeType": "ElementaryTypeName",
249
- "src": "78:7:18",
250
- "stateMutability": "nonpayable",
251
- "typeDescriptions": {
252
- "typeIdentifier": "t_address",
253
- "typeString": "address"
254
- }
255
- },
256
- "value": null,
257
- "visibility": "internal"
258
- },
259
- {
260
- "constant": false,
261
- "id": 4938,
262
- "name": "borrowBalance",
263
- "nodeType": "VariableDeclaration",
264
- "scope": 4943,
265
- "src": "96:18:18",
266
- "stateVariable": false,
267
- "storageLocation": "default",
268
- "typeDescriptions": {
269
- "typeIdentifier": "t_uint256",
270
- "typeString": "uint256"
271
- },
272
- "typeName": {
273
- "id": 4937,
274
- "name": "uint",
275
- "nodeType": "ElementaryTypeName",
276
- "src": "96:4:18",
277
- "typeDescriptions": {
278
- "typeIdentifier": "t_uint256",
279
- "typeString": "uint256"
280
- }
281
- },
282
- "value": null,
283
- "visibility": "internal"
284
- },
285
- {
286
- "constant": false,
287
- "id": 4940,
288
- "name": "borrowIndex",
289
- "nodeType": "VariableDeclaration",
290
- "scope": 4943,
291
- "src": "116:16:18",
292
- "stateVariable": false,
293
- "storageLocation": "default",
294
- "typeDescriptions": {
295
- "typeIdentifier": "t_uint256",
296
- "typeString": "uint256"
297
- },
298
- "typeName": {
299
- "id": 4939,
300
- "name": "uint",
301
- "nodeType": "ElementaryTypeName",
302
- "src": "116:4:18",
303
- "typeDescriptions": {
304
- "typeIdentifier": "t_uint256",
305
- "typeString": "uint256"
306
- }
307
- },
308
- "value": null,
309
- "visibility": "internal"
310
- }
311
- ],
312
- "src": "77:56:18"
313
- },
314
- "returnParameters": {
315
- "id": 4942,
316
- "nodeType": "ParameterList",
317
- "parameters": [],
318
- "src": "142:0:18"
319
- },
320
- "scope": 4944,
321
- "src": "57:86:18",
322
- "stateMutability": "nonpayable",
323
- "superFunction": null,
324
- "visibility": "external"
325
- }
326
- ],
327
- "scope": 4945,
328
- "src": "28:118:18"
329
- }
330
- ],
331
- "src": "0:146:18"
332
- },
333
- "compiler": {
334
- "name": "solc",
335
- "version": "0.5.16+commit.9c3226ce.Emscripten.clang"
336
- },
337
- "networks": {},
338
- "schemaVersion": "3.3.2",
339
- "updatedAt": "2021-01-07T23:07:24.814Z",
340
- "devdoc": {
341
- "methods": {}
342
- },
343
- "userdoc": {
344
- "methods": {}
345
- }
346
- }