impermax-sdk 1.0.1 → 1.0.2

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