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,1690 +0,0 @@
1
- {
2
- "contractName": "IUniswapV2Factory",
3
- "abi": [
4
- {
5
- "anonymous": false,
6
- "inputs": [
7
- {
8
- "indexed": true,
9
- "internalType": "address",
10
- "name": "token0",
11
- "type": "address"
12
- },
13
- {
14
- "indexed": true,
15
- "internalType": "address",
16
- "name": "token1",
17
- "type": "address"
18
- },
19
- {
20
- "indexed": false,
21
- "internalType": "address",
22
- "name": "pair",
23
- "type": "address"
24
- },
25
- {
26
- "indexed": false,
27
- "internalType": "uint256",
28
- "name": "",
29
- "type": "uint256"
30
- }
31
- ],
32
- "name": "PairCreated",
33
- "type": "event"
34
- },
35
- {
36
- "constant": true,
37
- "inputs": [],
38
- "name": "feeTo",
39
- "outputs": [
40
- {
41
- "internalType": "address",
42
- "name": "",
43
- "type": "address"
44
- }
45
- ],
46
- "payable": false,
47
- "stateMutability": "view",
48
- "type": "function"
49
- },
50
- {
51
- "constant": true,
52
- "inputs": [],
53
- "name": "feeToSetter",
54
- "outputs": [
55
- {
56
- "internalType": "address",
57
- "name": "",
58
- "type": "address"
59
- }
60
- ],
61
- "payable": false,
62
- "stateMutability": "view",
63
- "type": "function"
64
- },
65
- {
66
- "constant": true,
67
- "inputs": [
68
- {
69
- "internalType": "address",
70
- "name": "tokenA",
71
- "type": "address"
72
- },
73
- {
74
- "internalType": "address",
75
- "name": "tokenB",
76
- "type": "address"
77
- }
78
- ],
79
- "name": "getPair",
80
- "outputs": [
81
- {
82
- "internalType": "address",
83
- "name": "pair",
84
- "type": "address"
85
- }
86
- ],
87
- "payable": false,
88
- "stateMutability": "view",
89
- "type": "function"
90
- },
91
- {
92
- "constant": true,
93
- "inputs": [
94
- {
95
- "internalType": "uint256",
96
- "name": "",
97
- "type": "uint256"
98
- }
99
- ],
100
- "name": "allPairs",
101
- "outputs": [
102
- {
103
- "internalType": "address",
104
- "name": "pair",
105
- "type": "address"
106
- }
107
- ],
108
- "payable": false,
109
- "stateMutability": "view",
110
- "type": "function"
111
- },
112
- {
113
- "constant": true,
114
- "inputs": [],
115
- "name": "allPairsLength",
116
- "outputs": [
117
- {
118
- "internalType": "uint256",
119
- "name": "",
120
- "type": "uint256"
121
- }
122
- ],
123
- "payable": false,
124
- "stateMutability": "view",
125
- "type": "function"
126
- },
127
- {
128
- "constant": false,
129
- "inputs": [
130
- {
131
- "internalType": "address",
132
- "name": "tokenA",
133
- "type": "address"
134
- },
135
- {
136
- "internalType": "address",
137
- "name": "tokenB",
138
- "type": "address"
139
- }
140
- ],
141
- "name": "createPair",
142
- "outputs": [
143
- {
144
- "internalType": "address",
145
- "name": "pair",
146
- "type": "address"
147
- }
148
- ],
149
- "payable": false,
150
- "stateMutability": "nonpayable",
151
- "type": "function"
152
- },
153
- {
154
- "constant": false,
155
- "inputs": [
156
- {
157
- "internalType": "address",
158
- "name": "",
159
- "type": "address"
160
- }
161
- ],
162
- "name": "setFeeTo",
163
- "outputs": [],
164
- "payable": false,
165
- "stateMutability": "nonpayable",
166
- "type": "function"
167
- },
168
- {
169
- "constant": false,
170
- "inputs": [
171
- {
172
- "internalType": "address",
173
- "name": "",
174
- "type": "address"
175
- }
176
- ],
177
- "name": "setFeeToSetter",
178
- "outputs": [],
179
- "payable": false,
180
- "stateMutability": "nonpayable",
181
- "type": "function"
182
- }
183
- ],
184
- "metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token0\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token1\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"pair\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"PairCreated\",\"type\":\"event\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"allPairs\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"pair\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"allPairsLength\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenA\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenB\",\"type\":\"address\"}],\"name\":\"createPair\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"pair\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"feeTo\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"feeToSetter\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenA\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenB\",\"type\":\"address\"}],\"name\":\"getPair\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"pair\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"setFeeTo\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"setFeeToSetter\",\"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/IUniswapV2Factory.sol\":\"IUniswapV2Factory\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"/C/Users/simor/Desktop/impermax-x-uniswapv2-periphery/test/Contracts/univ2-core/interfaces/IUniswapV2Factory.sol\":{\"keccak256\":\"0xe5905c0989cf5a865ed9bb7b9252536ca011c5b744017a82a7d4443b9c00a891\",\"urls\":[\"bzz-raw://5d2a90a0a796491507462a3da18c3f8819721d571572d765a2207c35bf0a0389\",\"dweb:/ipfs/Qmf9ACYiT3qzjgsYuhm866FBdiBpRMXAPpQhSFbgqcyhHt\"]}},\"version\":1}",
185
- "bytecode": "0x",
186
- "deployedBytecode": "0x",
187
- "sourceMap": "",
188
- "deployedSourceMap": "",
189
- "source": "pragma solidity >=0.5.0;\n\ninterface IUniswapV2Factory {\n event PairCreated(address indexed token0, address indexed token1, address pair, uint);\n\n function feeTo() external view returns (address);\n function feeToSetter() external view returns (address);\n\n function getPair(address tokenA, address tokenB) external view returns (address pair);\n function allPairs(uint) external view returns (address pair);\n function allPairsLength() external view returns (uint);\n\n function createPair(address tokenA, address tokenB) external returns (address pair);\n\n function setFeeTo(address) external;\n function setFeeToSetter(address) external;\n}\n",
190
- "sourcePath": "C:\\Users\\simor\\Desktop\\impermax-x-uniswapv2-periphery\\test\\Contracts\\univ2-core\\interfaces\\IUniswapV2Factory.sol",
191
- "ast": {
192
- "absolutePath": "/C/Users/simor/Desktop/impermax-x-uniswapv2-periphery/test/Contracts/univ2-core/interfaces/IUniswapV2Factory.sol",
193
- "exportedSymbols": {
194
- "IUniswapV2Factory": [
195
- 9350
196
- ]
197
- },
198
- "id": 9351,
199
- "nodeType": "SourceUnit",
200
- "nodes": [
201
- {
202
- "id": 9289,
203
- "literals": [
204
- "solidity",
205
- ">=",
206
- "0.5",
207
- ".0"
208
- ],
209
- "nodeType": "PragmaDirective",
210
- "src": "0:24:43"
211
- },
212
- {
213
- "baseContracts": [],
214
- "contractDependencies": [],
215
- "contractKind": "interface",
216
- "documentation": null,
217
- "fullyImplemented": false,
218
- "id": 9350,
219
- "linearizedBaseContracts": [
220
- 9350
221
- ],
222
- "name": "IUniswapV2Factory",
223
- "nodeType": "ContractDefinition",
224
- "nodes": [
225
- {
226
- "anonymous": false,
227
- "documentation": null,
228
- "id": 9299,
229
- "name": "PairCreated",
230
- "nodeType": "EventDefinition",
231
- "parameters": {
232
- "id": 9298,
233
- "nodeType": "ParameterList",
234
- "parameters": [
235
- {
236
- "constant": false,
237
- "id": 9291,
238
- "indexed": true,
239
- "name": "token0",
240
- "nodeType": "VariableDeclaration",
241
- "scope": 9299,
242
- "src": "78:22:43",
243
- "stateVariable": false,
244
- "storageLocation": "default",
245
- "typeDescriptions": {
246
- "typeIdentifier": "t_address",
247
- "typeString": "address"
248
- },
249
- "typeName": {
250
- "id": 9290,
251
- "name": "address",
252
- "nodeType": "ElementaryTypeName",
253
- "src": "78:7:43",
254
- "stateMutability": "nonpayable",
255
- "typeDescriptions": {
256
- "typeIdentifier": "t_address",
257
- "typeString": "address"
258
- }
259
- },
260
- "value": null,
261
- "visibility": "internal"
262
- },
263
- {
264
- "constant": false,
265
- "id": 9293,
266
- "indexed": true,
267
- "name": "token1",
268
- "nodeType": "VariableDeclaration",
269
- "scope": 9299,
270
- "src": "102:22:43",
271
- "stateVariable": false,
272
- "storageLocation": "default",
273
- "typeDescriptions": {
274
- "typeIdentifier": "t_address",
275
- "typeString": "address"
276
- },
277
- "typeName": {
278
- "id": 9292,
279
- "name": "address",
280
- "nodeType": "ElementaryTypeName",
281
- "src": "102:7:43",
282
- "stateMutability": "nonpayable",
283
- "typeDescriptions": {
284
- "typeIdentifier": "t_address",
285
- "typeString": "address"
286
- }
287
- },
288
- "value": null,
289
- "visibility": "internal"
290
- },
291
- {
292
- "constant": false,
293
- "id": 9295,
294
- "indexed": false,
295
- "name": "pair",
296
- "nodeType": "VariableDeclaration",
297
- "scope": 9299,
298
- "src": "126:12:43",
299
- "stateVariable": false,
300
- "storageLocation": "default",
301
- "typeDescriptions": {
302
- "typeIdentifier": "t_address",
303
- "typeString": "address"
304
- },
305
- "typeName": {
306
- "id": 9294,
307
- "name": "address",
308
- "nodeType": "ElementaryTypeName",
309
- "src": "126:7:43",
310
- "stateMutability": "nonpayable",
311
- "typeDescriptions": {
312
- "typeIdentifier": "t_address",
313
- "typeString": "address"
314
- }
315
- },
316
- "value": null,
317
- "visibility": "internal"
318
- },
319
- {
320
- "constant": false,
321
- "id": 9297,
322
- "indexed": false,
323
- "name": "",
324
- "nodeType": "VariableDeclaration",
325
- "scope": 9299,
326
- "src": "140:4:43",
327
- "stateVariable": false,
328
- "storageLocation": "default",
329
- "typeDescriptions": {
330
- "typeIdentifier": "t_uint256",
331
- "typeString": "uint256"
332
- },
333
- "typeName": {
334
- "id": 9296,
335
- "name": "uint",
336
- "nodeType": "ElementaryTypeName",
337
- "src": "140:4:43",
338
- "typeDescriptions": {
339
- "typeIdentifier": "t_uint256",
340
- "typeString": "uint256"
341
- }
342
- },
343
- "value": null,
344
- "visibility": "internal"
345
- }
346
- ],
347
- "src": "77:68:43"
348
- },
349
- "src": "60:86:43"
350
- },
351
- {
352
- "body": null,
353
- "documentation": null,
354
- "id": 9304,
355
- "implemented": false,
356
- "kind": "function",
357
- "modifiers": [],
358
- "name": "feeTo",
359
- "nodeType": "FunctionDefinition",
360
- "parameters": {
361
- "id": 9300,
362
- "nodeType": "ParameterList",
363
- "parameters": [],
364
- "src": "166:2:43"
365
- },
366
- "returnParameters": {
367
- "id": 9303,
368
- "nodeType": "ParameterList",
369
- "parameters": [
370
- {
371
- "constant": false,
372
- "id": 9302,
373
- "name": "",
374
- "nodeType": "VariableDeclaration",
375
- "scope": 9304,
376
- "src": "192:7:43",
377
- "stateVariable": false,
378
- "storageLocation": "default",
379
- "typeDescriptions": {
380
- "typeIdentifier": "t_address",
381
- "typeString": "address"
382
- },
383
- "typeName": {
384
- "id": 9301,
385
- "name": "address",
386
- "nodeType": "ElementaryTypeName",
387
- "src": "192:7:43",
388
- "stateMutability": "nonpayable",
389
- "typeDescriptions": {
390
- "typeIdentifier": "t_address",
391
- "typeString": "address"
392
- }
393
- },
394
- "value": null,
395
- "visibility": "internal"
396
- }
397
- ],
398
- "src": "191:9:43"
399
- },
400
- "scope": 9350,
401
- "src": "152:49:43",
402
- "stateMutability": "view",
403
- "superFunction": null,
404
- "visibility": "external"
405
- },
406
- {
407
- "body": null,
408
- "documentation": null,
409
- "id": 9309,
410
- "implemented": false,
411
- "kind": "function",
412
- "modifiers": [],
413
- "name": "feeToSetter",
414
- "nodeType": "FunctionDefinition",
415
- "parameters": {
416
- "id": 9305,
417
- "nodeType": "ParameterList",
418
- "parameters": [],
419
- "src": "226:2:43"
420
- },
421
- "returnParameters": {
422
- "id": 9308,
423
- "nodeType": "ParameterList",
424
- "parameters": [
425
- {
426
- "constant": false,
427
- "id": 9307,
428
- "name": "",
429
- "nodeType": "VariableDeclaration",
430
- "scope": 9309,
431
- "src": "252:7:43",
432
- "stateVariable": false,
433
- "storageLocation": "default",
434
- "typeDescriptions": {
435
- "typeIdentifier": "t_address",
436
- "typeString": "address"
437
- },
438
- "typeName": {
439
- "id": 9306,
440
- "name": "address",
441
- "nodeType": "ElementaryTypeName",
442
- "src": "252:7:43",
443
- "stateMutability": "nonpayable",
444
- "typeDescriptions": {
445
- "typeIdentifier": "t_address",
446
- "typeString": "address"
447
- }
448
- },
449
- "value": null,
450
- "visibility": "internal"
451
- }
452
- ],
453
- "src": "251:9:43"
454
- },
455
- "scope": 9350,
456
- "src": "206:55:43",
457
- "stateMutability": "view",
458
- "superFunction": null,
459
- "visibility": "external"
460
- },
461
- {
462
- "body": null,
463
- "documentation": null,
464
- "id": 9318,
465
- "implemented": false,
466
- "kind": "function",
467
- "modifiers": [],
468
- "name": "getPair",
469
- "nodeType": "FunctionDefinition",
470
- "parameters": {
471
- "id": 9314,
472
- "nodeType": "ParameterList",
473
- "parameters": [
474
- {
475
- "constant": false,
476
- "id": 9311,
477
- "name": "tokenA",
478
- "nodeType": "VariableDeclaration",
479
- "scope": 9318,
480
- "src": "284:14:43",
481
- "stateVariable": false,
482
- "storageLocation": "default",
483
- "typeDescriptions": {
484
- "typeIdentifier": "t_address",
485
- "typeString": "address"
486
- },
487
- "typeName": {
488
- "id": 9310,
489
- "name": "address",
490
- "nodeType": "ElementaryTypeName",
491
- "src": "284:7:43",
492
- "stateMutability": "nonpayable",
493
- "typeDescriptions": {
494
- "typeIdentifier": "t_address",
495
- "typeString": "address"
496
- }
497
- },
498
- "value": null,
499
- "visibility": "internal"
500
- },
501
- {
502
- "constant": false,
503
- "id": 9313,
504
- "name": "tokenB",
505
- "nodeType": "VariableDeclaration",
506
- "scope": 9318,
507
- "src": "300:14:43",
508
- "stateVariable": false,
509
- "storageLocation": "default",
510
- "typeDescriptions": {
511
- "typeIdentifier": "t_address",
512
- "typeString": "address"
513
- },
514
- "typeName": {
515
- "id": 9312,
516
- "name": "address",
517
- "nodeType": "ElementaryTypeName",
518
- "src": "300:7:43",
519
- "stateMutability": "nonpayable",
520
- "typeDescriptions": {
521
- "typeIdentifier": "t_address",
522
- "typeString": "address"
523
- }
524
- },
525
- "value": null,
526
- "visibility": "internal"
527
- }
528
- ],
529
- "src": "283:32:43"
530
- },
531
- "returnParameters": {
532
- "id": 9317,
533
- "nodeType": "ParameterList",
534
- "parameters": [
535
- {
536
- "constant": false,
537
- "id": 9316,
538
- "name": "pair",
539
- "nodeType": "VariableDeclaration",
540
- "scope": 9318,
541
- "src": "339:12:43",
542
- "stateVariable": false,
543
- "storageLocation": "default",
544
- "typeDescriptions": {
545
- "typeIdentifier": "t_address",
546
- "typeString": "address"
547
- },
548
- "typeName": {
549
- "id": 9315,
550
- "name": "address",
551
- "nodeType": "ElementaryTypeName",
552
- "src": "339:7:43",
553
- "stateMutability": "nonpayable",
554
- "typeDescriptions": {
555
- "typeIdentifier": "t_address",
556
- "typeString": "address"
557
- }
558
- },
559
- "value": null,
560
- "visibility": "internal"
561
- }
562
- ],
563
- "src": "338:14:43"
564
- },
565
- "scope": 9350,
566
- "src": "267:86:43",
567
- "stateMutability": "view",
568
- "superFunction": null,
569
- "visibility": "external"
570
- },
571
- {
572
- "body": null,
573
- "documentation": null,
574
- "id": 9325,
575
- "implemented": false,
576
- "kind": "function",
577
- "modifiers": [],
578
- "name": "allPairs",
579
- "nodeType": "FunctionDefinition",
580
- "parameters": {
581
- "id": 9321,
582
- "nodeType": "ParameterList",
583
- "parameters": [
584
- {
585
- "constant": false,
586
- "id": 9320,
587
- "name": "",
588
- "nodeType": "VariableDeclaration",
589
- "scope": 9325,
590
- "src": "376:4:43",
591
- "stateVariable": false,
592
- "storageLocation": "default",
593
- "typeDescriptions": {
594
- "typeIdentifier": "t_uint256",
595
- "typeString": "uint256"
596
- },
597
- "typeName": {
598
- "id": 9319,
599
- "name": "uint",
600
- "nodeType": "ElementaryTypeName",
601
- "src": "376:4:43",
602
- "typeDescriptions": {
603
- "typeIdentifier": "t_uint256",
604
- "typeString": "uint256"
605
- }
606
- },
607
- "value": null,
608
- "visibility": "internal"
609
- }
610
- ],
611
- "src": "375:6:43"
612
- },
613
- "returnParameters": {
614
- "id": 9324,
615
- "nodeType": "ParameterList",
616
- "parameters": [
617
- {
618
- "constant": false,
619
- "id": 9323,
620
- "name": "pair",
621
- "nodeType": "VariableDeclaration",
622
- "scope": 9325,
623
- "src": "405:12:43",
624
- "stateVariable": false,
625
- "storageLocation": "default",
626
- "typeDescriptions": {
627
- "typeIdentifier": "t_address",
628
- "typeString": "address"
629
- },
630
- "typeName": {
631
- "id": 9322,
632
- "name": "address",
633
- "nodeType": "ElementaryTypeName",
634
- "src": "405:7:43",
635
- "stateMutability": "nonpayable",
636
- "typeDescriptions": {
637
- "typeIdentifier": "t_address",
638
- "typeString": "address"
639
- }
640
- },
641
- "value": null,
642
- "visibility": "internal"
643
- }
644
- ],
645
- "src": "404:14:43"
646
- },
647
- "scope": 9350,
648
- "src": "358:61:43",
649
- "stateMutability": "view",
650
- "superFunction": null,
651
- "visibility": "external"
652
- },
653
- {
654
- "body": null,
655
- "documentation": null,
656
- "id": 9330,
657
- "implemented": false,
658
- "kind": "function",
659
- "modifiers": [],
660
- "name": "allPairsLength",
661
- "nodeType": "FunctionDefinition",
662
- "parameters": {
663
- "id": 9326,
664
- "nodeType": "ParameterList",
665
- "parameters": [],
666
- "src": "447:2:43"
667
- },
668
- "returnParameters": {
669
- "id": 9329,
670
- "nodeType": "ParameterList",
671
- "parameters": [
672
- {
673
- "constant": false,
674
- "id": 9328,
675
- "name": "",
676
- "nodeType": "VariableDeclaration",
677
- "scope": 9330,
678
- "src": "473:4:43",
679
- "stateVariable": false,
680
- "storageLocation": "default",
681
- "typeDescriptions": {
682
- "typeIdentifier": "t_uint256",
683
- "typeString": "uint256"
684
- },
685
- "typeName": {
686
- "id": 9327,
687
- "name": "uint",
688
- "nodeType": "ElementaryTypeName",
689
- "src": "473:4:43",
690
- "typeDescriptions": {
691
- "typeIdentifier": "t_uint256",
692
- "typeString": "uint256"
693
- }
694
- },
695
- "value": null,
696
- "visibility": "internal"
697
- }
698
- ],
699
- "src": "472:6:43"
700
- },
701
- "scope": 9350,
702
- "src": "424:55:43",
703
- "stateMutability": "view",
704
- "superFunction": null,
705
- "visibility": "external"
706
- },
707
- {
708
- "body": null,
709
- "documentation": null,
710
- "id": 9339,
711
- "implemented": false,
712
- "kind": "function",
713
- "modifiers": [],
714
- "name": "createPair",
715
- "nodeType": "FunctionDefinition",
716
- "parameters": {
717
- "id": 9335,
718
- "nodeType": "ParameterList",
719
- "parameters": [
720
- {
721
- "constant": false,
722
- "id": 9332,
723
- "name": "tokenA",
724
- "nodeType": "VariableDeclaration",
725
- "scope": 9339,
726
- "src": "505:14:43",
727
- "stateVariable": false,
728
- "storageLocation": "default",
729
- "typeDescriptions": {
730
- "typeIdentifier": "t_address",
731
- "typeString": "address"
732
- },
733
- "typeName": {
734
- "id": 9331,
735
- "name": "address",
736
- "nodeType": "ElementaryTypeName",
737
- "src": "505:7:43",
738
- "stateMutability": "nonpayable",
739
- "typeDescriptions": {
740
- "typeIdentifier": "t_address",
741
- "typeString": "address"
742
- }
743
- },
744
- "value": null,
745
- "visibility": "internal"
746
- },
747
- {
748
- "constant": false,
749
- "id": 9334,
750
- "name": "tokenB",
751
- "nodeType": "VariableDeclaration",
752
- "scope": 9339,
753
- "src": "521:14:43",
754
- "stateVariable": false,
755
- "storageLocation": "default",
756
- "typeDescriptions": {
757
- "typeIdentifier": "t_address",
758
- "typeString": "address"
759
- },
760
- "typeName": {
761
- "id": 9333,
762
- "name": "address",
763
- "nodeType": "ElementaryTypeName",
764
- "src": "521:7:43",
765
- "stateMutability": "nonpayable",
766
- "typeDescriptions": {
767
- "typeIdentifier": "t_address",
768
- "typeString": "address"
769
- }
770
- },
771
- "value": null,
772
- "visibility": "internal"
773
- }
774
- ],
775
- "src": "504:32:43"
776
- },
777
- "returnParameters": {
778
- "id": 9338,
779
- "nodeType": "ParameterList",
780
- "parameters": [
781
- {
782
- "constant": false,
783
- "id": 9337,
784
- "name": "pair",
785
- "nodeType": "VariableDeclaration",
786
- "scope": 9339,
787
- "src": "555:12:43",
788
- "stateVariable": false,
789
- "storageLocation": "default",
790
- "typeDescriptions": {
791
- "typeIdentifier": "t_address",
792
- "typeString": "address"
793
- },
794
- "typeName": {
795
- "id": 9336,
796
- "name": "address",
797
- "nodeType": "ElementaryTypeName",
798
- "src": "555:7:43",
799
- "stateMutability": "nonpayable",
800
- "typeDescriptions": {
801
- "typeIdentifier": "t_address",
802
- "typeString": "address"
803
- }
804
- },
805
- "value": null,
806
- "visibility": "internal"
807
- }
808
- ],
809
- "src": "554:14:43"
810
- },
811
- "scope": 9350,
812
- "src": "485:84:43",
813
- "stateMutability": "nonpayable",
814
- "superFunction": null,
815
- "visibility": "external"
816
- },
817
- {
818
- "body": null,
819
- "documentation": null,
820
- "id": 9344,
821
- "implemented": false,
822
- "kind": "function",
823
- "modifiers": [],
824
- "name": "setFeeTo",
825
- "nodeType": "FunctionDefinition",
826
- "parameters": {
827
- "id": 9342,
828
- "nodeType": "ParameterList",
829
- "parameters": [
830
- {
831
- "constant": false,
832
- "id": 9341,
833
- "name": "",
834
- "nodeType": "VariableDeclaration",
835
- "scope": 9344,
836
- "src": "593:7:43",
837
- "stateVariable": false,
838
- "storageLocation": "default",
839
- "typeDescriptions": {
840
- "typeIdentifier": "t_address",
841
- "typeString": "address"
842
- },
843
- "typeName": {
844
- "id": 9340,
845
- "name": "address",
846
- "nodeType": "ElementaryTypeName",
847
- "src": "593:7:43",
848
- "stateMutability": "nonpayable",
849
- "typeDescriptions": {
850
- "typeIdentifier": "t_address",
851
- "typeString": "address"
852
- }
853
- },
854
- "value": null,
855
- "visibility": "internal"
856
- }
857
- ],
858
- "src": "592:9:43"
859
- },
860
- "returnParameters": {
861
- "id": 9343,
862
- "nodeType": "ParameterList",
863
- "parameters": [],
864
- "src": "610:0:43"
865
- },
866
- "scope": 9350,
867
- "src": "575:36:43",
868
- "stateMutability": "nonpayable",
869
- "superFunction": null,
870
- "visibility": "external"
871
- },
872
- {
873
- "body": null,
874
- "documentation": null,
875
- "id": 9349,
876
- "implemented": false,
877
- "kind": "function",
878
- "modifiers": [],
879
- "name": "setFeeToSetter",
880
- "nodeType": "FunctionDefinition",
881
- "parameters": {
882
- "id": 9347,
883
- "nodeType": "ParameterList",
884
- "parameters": [
885
- {
886
- "constant": false,
887
- "id": 9346,
888
- "name": "",
889
- "nodeType": "VariableDeclaration",
890
- "scope": 9349,
891
- "src": "640:7:43",
892
- "stateVariable": false,
893
- "storageLocation": "default",
894
- "typeDescriptions": {
895
- "typeIdentifier": "t_address",
896
- "typeString": "address"
897
- },
898
- "typeName": {
899
- "id": 9345,
900
- "name": "address",
901
- "nodeType": "ElementaryTypeName",
902
- "src": "640:7:43",
903
- "stateMutability": "nonpayable",
904
- "typeDescriptions": {
905
- "typeIdentifier": "t_address",
906
- "typeString": "address"
907
- }
908
- },
909
- "value": null,
910
- "visibility": "internal"
911
- }
912
- ],
913
- "src": "639:9:43"
914
- },
915
- "returnParameters": {
916
- "id": 9348,
917
- "nodeType": "ParameterList",
918
- "parameters": [],
919
- "src": "657:0:43"
920
- },
921
- "scope": 9350,
922
- "src": "616:42:43",
923
- "stateMutability": "nonpayable",
924
- "superFunction": null,
925
- "visibility": "external"
926
- }
927
- ],
928
- "scope": 9351,
929
- "src": "26:634:43"
930
- }
931
- ],
932
- "src": "0:661:43"
933
- },
934
- "legacyAST": {
935
- "absolutePath": "/C/Users/simor/Desktop/impermax-x-uniswapv2-periphery/test/Contracts/univ2-core/interfaces/IUniswapV2Factory.sol",
936
- "exportedSymbols": {
937
- "IUniswapV2Factory": [
938
- 9350
939
- ]
940
- },
941
- "id": 9351,
942
- "nodeType": "SourceUnit",
943
- "nodes": [
944
- {
945
- "id": 9289,
946
- "literals": [
947
- "solidity",
948
- ">=",
949
- "0.5",
950
- ".0"
951
- ],
952
- "nodeType": "PragmaDirective",
953
- "src": "0:24:43"
954
- },
955
- {
956
- "baseContracts": [],
957
- "contractDependencies": [],
958
- "contractKind": "interface",
959
- "documentation": null,
960
- "fullyImplemented": false,
961
- "id": 9350,
962
- "linearizedBaseContracts": [
963
- 9350
964
- ],
965
- "name": "IUniswapV2Factory",
966
- "nodeType": "ContractDefinition",
967
- "nodes": [
968
- {
969
- "anonymous": false,
970
- "documentation": null,
971
- "id": 9299,
972
- "name": "PairCreated",
973
- "nodeType": "EventDefinition",
974
- "parameters": {
975
- "id": 9298,
976
- "nodeType": "ParameterList",
977
- "parameters": [
978
- {
979
- "constant": false,
980
- "id": 9291,
981
- "indexed": true,
982
- "name": "token0",
983
- "nodeType": "VariableDeclaration",
984
- "scope": 9299,
985
- "src": "78:22:43",
986
- "stateVariable": false,
987
- "storageLocation": "default",
988
- "typeDescriptions": {
989
- "typeIdentifier": "t_address",
990
- "typeString": "address"
991
- },
992
- "typeName": {
993
- "id": 9290,
994
- "name": "address",
995
- "nodeType": "ElementaryTypeName",
996
- "src": "78:7:43",
997
- "stateMutability": "nonpayable",
998
- "typeDescriptions": {
999
- "typeIdentifier": "t_address",
1000
- "typeString": "address"
1001
- }
1002
- },
1003
- "value": null,
1004
- "visibility": "internal"
1005
- },
1006
- {
1007
- "constant": false,
1008
- "id": 9293,
1009
- "indexed": true,
1010
- "name": "token1",
1011
- "nodeType": "VariableDeclaration",
1012
- "scope": 9299,
1013
- "src": "102:22:43",
1014
- "stateVariable": false,
1015
- "storageLocation": "default",
1016
- "typeDescriptions": {
1017
- "typeIdentifier": "t_address",
1018
- "typeString": "address"
1019
- },
1020
- "typeName": {
1021
- "id": 9292,
1022
- "name": "address",
1023
- "nodeType": "ElementaryTypeName",
1024
- "src": "102:7:43",
1025
- "stateMutability": "nonpayable",
1026
- "typeDescriptions": {
1027
- "typeIdentifier": "t_address",
1028
- "typeString": "address"
1029
- }
1030
- },
1031
- "value": null,
1032
- "visibility": "internal"
1033
- },
1034
- {
1035
- "constant": false,
1036
- "id": 9295,
1037
- "indexed": false,
1038
- "name": "pair",
1039
- "nodeType": "VariableDeclaration",
1040
- "scope": 9299,
1041
- "src": "126:12:43",
1042
- "stateVariable": false,
1043
- "storageLocation": "default",
1044
- "typeDescriptions": {
1045
- "typeIdentifier": "t_address",
1046
- "typeString": "address"
1047
- },
1048
- "typeName": {
1049
- "id": 9294,
1050
- "name": "address",
1051
- "nodeType": "ElementaryTypeName",
1052
- "src": "126:7:43",
1053
- "stateMutability": "nonpayable",
1054
- "typeDescriptions": {
1055
- "typeIdentifier": "t_address",
1056
- "typeString": "address"
1057
- }
1058
- },
1059
- "value": null,
1060
- "visibility": "internal"
1061
- },
1062
- {
1063
- "constant": false,
1064
- "id": 9297,
1065
- "indexed": false,
1066
- "name": "",
1067
- "nodeType": "VariableDeclaration",
1068
- "scope": 9299,
1069
- "src": "140:4:43",
1070
- "stateVariable": false,
1071
- "storageLocation": "default",
1072
- "typeDescriptions": {
1073
- "typeIdentifier": "t_uint256",
1074
- "typeString": "uint256"
1075
- },
1076
- "typeName": {
1077
- "id": 9296,
1078
- "name": "uint",
1079
- "nodeType": "ElementaryTypeName",
1080
- "src": "140:4:43",
1081
- "typeDescriptions": {
1082
- "typeIdentifier": "t_uint256",
1083
- "typeString": "uint256"
1084
- }
1085
- },
1086
- "value": null,
1087
- "visibility": "internal"
1088
- }
1089
- ],
1090
- "src": "77:68:43"
1091
- },
1092
- "src": "60:86:43"
1093
- },
1094
- {
1095
- "body": null,
1096
- "documentation": null,
1097
- "id": 9304,
1098
- "implemented": false,
1099
- "kind": "function",
1100
- "modifiers": [],
1101
- "name": "feeTo",
1102
- "nodeType": "FunctionDefinition",
1103
- "parameters": {
1104
- "id": 9300,
1105
- "nodeType": "ParameterList",
1106
- "parameters": [],
1107
- "src": "166:2:43"
1108
- },
1109
- "returnParameters": {
1110
- "id": 9303,
1111
- "nodeType": "ParameterList",
1112
- "parameters": [
1113
- {
1114
- "constant": false,
1115
- "id": 9302,
1116
- "name": "",
1117
- "nodeType": "VariableDeclaration",
1118
- "scope": 9304,
1119
- "src": "192:7:43",
1120
- "stateVariable": false,
1121
- "storageLocation": "default",
1122
- "typeDescriptions": {
1123
- "typeIdentifier": "t_address",
1124
- "typeString": "address"
1125
- },
1126
- "typeName": {
1127
- "id": 9301,
1128
- "name": "address",
1129
- "nodeType": "ElementaryTypeName",
1130
- "src": "192:7:43",
1131
- "stateMutability": "nonpayable",
1132
- "typeDescriptions": {
1133
- "typeIdentifier": "t_address",
1134
- "typeString": "address"
1135
- }
1136
- },
1137
- "value": null,
1138
- "visibility": "internal"
1139
- }
1140
- ],
1141
- "src": "191:9:43"
1142
- },
1143
- "scope": 9350,
1144
- "src": "152:49:43",
1145
- "stateMutability": "view",
1146
- "superFunction": null,
1147
- "visibility": "external"
1148
- },
1149
- {
1150
- "body": null,
1151
- "documentation": null,
1152
- "id": 9309,
1153
- "implemented": false,
1154
- "kind": "function",
1155
- "modifiers": [],
1156
- "name": "feeToSetter",
1157
- "nodeType": "FunctionDefinition",
1158
- "parameters": {
1159
- "id": 9305,
1160
- "nodeType": "ParameterList",
1161
- "parameters": [],
1162
- "src": "226:2:43"
1163
- },
1164
- "returnParameters": {
1165
- "id": 9308,
1166
- "nodeType": "ParameterList",
1167
- "parameters": [
1168
- {
1169
- "constant": false,
1170
- "id": 9307,
1171
- "name": "",
1172
- "nodeType": "VariableDeclaration",
1173
- "scope": 9309,
1174
- "src": "252:7:43",
1175
- "stateVariable": false,
1176
- "storageLocation": "default",
1177
- "typeDescriptions": {
1178
- "typeIdentifier": "t_address",
1179
- "typeString": "address"
1180
- },
1181
- "typeName": {
1182
- "id": 9306,
1183
- "name": "address",
1184
- "nodeType": "ElementaryTypeName",
1185
- "src": "252:7:43",
1186
- "stateMutability": "nonpayable",
1187
- "typeDescriptions": {
1188
- "typeIdentifier": "t_address",
1189
- "typeString": "address"
1190
- }
1191
- },
1192
- "value": null,
1193
- "visibility": "internal"
1194
- }
1195
- ],
1196
- "src": "251:9:43"
1197
- },
1198
- "scope": 9350,
1199
- "src": "206:55:43",
1200
- "stateMutability": "view",
1201
- "superFunction": null,
1202
- "visibility": "external"
1203
- },
1204
- {
1205
- "body": null,
1206
- "documentation": null,
1207
- "id": 9318,
1208
- "implemented": false,
1209
- "kind": "function",
1210
- "modifiers": [],
1211
- "name": "getPair",
1212
- "nodeType": "FunctionDefinition",
1213
- "parameters": {
1214
- "id": 9314,
1215
- "nodeType": "ParameterList",
1216
- "parameters": [
1217
- {
1218
- "constant": false,
1219
- "id": 9311,
1220
- "name": "tokenA",
1221
- "nodeType": "VariableDeclaration",
1222
- "scope": 9318,
1223
- "src": "284:14:43",
1224
- "stateVariable": false,
1225
- "storageLocation": "default",
1226
- "typeDescriptions": {
1227
- "typeIdentifier": "t_address",
1228
- "typeString": "address"
1229
- },
1230
- "typeName": {
1231
- "id": 9310,
1232
- "name": "address",
1233
- "nodeType": "ElementaryTypeName",
1234
- "src": "284:7:43",
1235
- "stateMutability": "nonpayable",
1236
- "typeDescriptions": {
1237
- "typeIdentifier": "t_address",
1238
- "typeString": "address"
1239
- }
1240
- },
1241
- "value": null,
1242
- "visibility": "internal"
1243
- },
1244
- {
1245
- "constant": false,
1246
- "id": 9313,
1247
- "name": "tokenB",
1248
- "nodeType": "VariableDeclaration",
1249
- "scope": 9318,
1250
- "src": "300:14:43",
1251
- "stateVariable": false,
1252
- "storageLocation": "default",
1253
- "typeDescriptions": {
1254
- "typeIdentifier": "t_address",
1255
- "typeString": "address"
1256
- },
1257
- "typeName": {
1258
- "id": 9312,
1259
- "name": "address",
1260
- "nodeType": "ElementaryTypeName",
1261
- "src": "300:7:43",
1262
- "stateMutability": "nonpayable",
1263
- "typeDescriptions": {
1264
- "typeIdentifier": "t_address",
1265
- "typeString": "address"
1266
- }
1267
- },
1268
- "value": null,
1269
- "visibility": "internal"
1270
- }
1271
- ],
1272
- "src": "283:32:43"
1273
- },
1274
- "returnParameters": {
1275
- "id": 9317,
1276
- "nodeType": "ParameterList",
1277
- "parameters": [
1278
- {
1279
- "constant": false,
1280
- "id": 9316,
1281
- "name": "pair",
1282
- "nodeType": "VariableDeclaration",
1283
- "scope": 9318,
1284
- "src": "339:12:43",
1285
- "stateVariable": false,
1286
- "storageLocation": "default",
1287
- "typeDescriptions": {
1288
- "typeIdentifier": "t_address",
1289
- "typeString": "address"
1290
- },
1291
- "typeName": {
1292
- "id": 9315,
1293
- "name": "address",
1294
- "nodeType": "ElementaryTypeName",
1295
- "src": "339:7:43",
1296
- "stateMutability": "nonpayable",
1297
- "typeDescriptions": {
1298
- "typeIdentifier": "t_address",
1299
- "typeString": "address"
1300
- }
1301
- },
1302
- "value": null,
1303
- "visibility": "internal"
1304
- }
1305
- ],
1306
- "src": "338:14:43"
1307
- },
1308
- "scope": 9350,
1309
- "src": "267:86:43",
1310
- "stateMutability": "view",
1311
- "superFunction": null,
1312
- "visibility": "external"
1313
- },
1314
- {
1315
- "body": null,
1316
- "documentation": null,
1317
- "id": 9325,
1318
- "implemented": false,
1319
- "kind": "function",
1320
- "modifiers": [],
1321
- "name": "allPairs",
1322
- "nodeType": "FunctionDefinition",
1323
- "parameters": {
1324
- "id": 9321,
1325
- "nodeType": "ParameterList",
1326
- "parameters": [
1327
- {
1328
- "constant": false,
1329
- "id": 9320,
1330
- "name": "",
1331
- "nodeType": "VariableDeclaration",
1332
- "scope": 9325,
1333
- "src": "376:4:43",
1334
- "stateVariable": false,
1335
- "storageLocation": "default",
1336
- "typeDescriptions": {
1337
- "typeIdentifier": "t_uint256",
1338
- "typeString": "uint256"
1339
- },
1340
- "typeName": {
1341
- "id": 9319,
1342
- "name": "uint",
1343
- "nodeType": "ElementaryTypeName",
1344
- "src": "376:4:43",
1345
- "typeDescriptions": {
1346
- "typeIdentifier": "t_uint256",
1347
- "typeString": "uint256"
1348
- }
1349
- },
1350
- "value": null,
1351
- "visibility": "internal"
1352
- }
1353
- ],
1354
- "src": "375:6:43"
1355
- },
1356
- "returnParameters": {
1357
- "id": 9324,
1358
- "nodeType": "ParameterList",
1359
- "parameters": [
1360
- {
1361
- "constant": false,
1362
- "id": 9323,
1363
- "name": "pair",
1364
- "nodeType": "VariableDeclaration",
1365
- "scope": 9325,
1366
- "src": "405:12:43",
1367
- "stateVariable": false,
1368
- "storageLocation": "default",
1369
- "typeDescriptions": {
1370
- "typeIdentifier": "t_address",
1371
- "typeString": "address"
1372
- },
1373
- "typeName": {
1374
- "id": 9322,
1375
- "name": "address",
1376
- "nodeType": "ElementaryTypeName",
1377
- "src": "405:7:43",
1378
- "stateMutability": "nonpayable",
1379
- "typeDescriptions": {
1380
- "typeIdentifier": "t_address",
1381
- "typeString": "address"
1382
- }
1383
- },
1384
- "value": null,
1385
- "visibility": "internal"
1386
- }
1387
- ],
1388
- "src": "404:14:43"
1389
- },
1390
- "scope": 9350,
1391
- "src": "358:61:43",
1392
- "stateMutability": "view",
1393
- "superFunction": null,
1394
- "visibility": "external"
1395
- },
1396
- {
1397
- "body": null,
1398
- "documentation": null,
1399
- "id": 9330,
1400
- "implemented": false,
1401
- "kind": "function",
1402
- "modifiers": [],
1403
- "name": "allPairsLength",
1404
- "nodeType": "FunctionDefinition",
1405
- "parameters": {
1406
- "id": 9326,
1407
- "nodeType": "ParameterList",
1408
- "parameters": [],
1409
- "src": "447:2:43"
1410
- },
1411
- "returnParameters": {
1412
- "id": 9329,
1413
- "nodeType": "ParameterList",
1414
- "parameters": [
1415
- {
1416
- "constant": false,
1417
- "id": 9328,
1418
- "name": "",
1419
- "nodeType": "VariableDeclaration",
1420
- "scope": 9330,
1421
- "src": "473:4:43",
1422
- "stateVariable": false,
1423
- "storageLocation": "default",
1424
- "typeDescriptions": {
1425
- "typeIdentifier": "t_uint256",
1426
- "typeString": "uint256"
1427
- },
1428
- "typeName": {
1429
- "id": 9327,
1430
- "name": "uint",
1431
- "nodeType": "ElementaryTypeName",
1432
- "src": "473:4:43",
1433
- "typeDescriptions": {
1434
- "typeIdentifier": "t_uint256",
1435
- "typeString": "uint256"
1436
- }
1437
- },
1438
- "value": null,
1439
- "visibility": "internal"
1440
- }
1441
- ],
1442
- "src": "472:6:43"
1443
- },
1444
- "scope": 9350,
1445
- "src": "424:55:43",
1446
- "stateMutability": "view",
1447
- "superFunction": null,
1448
- "visibility": "external"
1449
- },
1450
- {
1451
- "body": null,
1452
- "documentation": null,
1453
- "id": 9339,
1454
- "implemented": false,
1455
- "kind": "function",
1456
- "modifiers": [],
1457
- "name": "createPair",
1458
- "nodeType": "FunctionDefinition",
1459
- "parameters": {
1460
- "id": 9335,
1461
- "nodeType": "ParameterList",
1462
- "parameters": [
1463
- {
1464
- "constant": false,
1465
- "id": 9332,
1466
- "name": "tokenA",
1467
- "nodeType": "VariableDeclaration",
1468
- "scope": 9339,
1469
- "src": "505:14:43",
1470
- "stateVariable": false,
1471
- "storageLocation": "default",
1472
- "typeDescriptions": {
1473
- "typeIdentifier": "t_address",
1474
- "typeString": "address"
1475
- },
1476
- "typeName": {
1477
- "id": 9331,
1478
- "name": "address",
1479
- "nodeType": "ElementaryTypeName",
1480
- "src": "505:7:43",
1481
- "stateMutability": "nonpayable",
1482
- "typeDescriptions": {
1483
- "typeIdentifier": "t_address",
1484
- "typeString": "address"
1485
- }
1486
- },
1487
- "value": null,
1488
- "visibility": "internal"
1489
- },
1490
- {
1491
- "constant": false,
1492
- "id": 9334,
1493
- "name": "tokenB",
1494
- "nodeType": "VariableDeclaration",
1495
- "scope": 9339,
1496
- "src": "521:14:43",
1497
- "stateVariable": false,
1498
- "storageLocation": "default",
1499
- "typeDescriptions": {
1500
- "typeIdentifier": "t_address",
1501
- "typeString": "address"
1502
- },
1503
- "typeName": {
1504
- "id": 9333,
1505
- "name": "address",
1506
- "nodeType": "ElementaryTypeName",
1507
- "src": "521:7:43",
1508
- "stateMutability": "nonpayable",
1509
- "typeDescriptions": {
1510
- "typeIdentifier": "t_address",
1511
- "typeString": "address"
1512
- }
1513
- },
1514
- "value": null,
1515
- "visibility": "internal"
1516
- }
1517
- ],
1518
- "src": "504:32:43"
1519
- },
1520
- "returnParameters": {
1521
- "id": 9338,
1522
- "nodeType": "ParameterList",
1523
- "parameters": [
1524
- {
1525
- "constant": false,
1526
- "id": 9337,
1527
- "name": "pair",
1528
- "nodeType": "VariableDeclaration",
1529
- "scope": 9339,
1530
- "src": "555:12:43",
1531
- "stateVariable": false,
1532
- "storageLocation": "default",
1533
- "typeDescriptions": {
1534
- "typeIdentifier": "t_address",
1535
- "typeString": "address"
1536
- },
1537
- "typeName": {
1538
- "id": 9336,
1539
- "name": "address",
1540
- "nodeType": "ElementaryTypeName",
1541
- "src": "555:7:43",
1542
- "stateMutability": "nonpayable",
1543
- "typeDescriptions": {
1544
- "typeIdentifier": "t_address",
1545
- "typeString": "address"
1546
- }
1547
- },
1548
- "value": null,
1549
- "visibility": "internal"
1550
- }
1551
- ],
1552
- "src": "554:14:43"
1553
- },
1554
- "scope": 9350,
1555
- "src": "485:84:43",
1556
- "stateMutability": "nonpayable",
1557
- "superFunction": null,
1558
- "visibility": "external"
1559
- },
1560
- {
1561
- "body": null,
1562
- "documentation": null,
1563
- "id": 9344,
1564
- "implemented": false,
1565
- "kind": "function",
1566
- "modifiers": [],
1567
- "name": "setFeeTo",
1568
- "nodeType": "FunctionDefinition",
1569
- "parameters": {
1570
- "id": 9342,
1571
- "nodeType": "ParameterList",
1572
- "parameters": [
1573
- {
1574
- "constant": false,
1575
- "id": 9341,
1576
- "name": "",
1577
- "nodeType": "VariableDeclaration",
1578
- "scope": 9344,
1579
- "src": "593:7:43",
1580
- "stateVariable": false,
1581
- "storageLocation": "default",
1582
- "typeDescriptions": {
1583
- "typeIdentifier": "t_address",
1584
- "typeString": "address"
1585
- },
1586
- "typeName": {
1587
- "id": 9340,
1588
- "name": "address",
1589
- "nodeType": "ElementaryTypeName",
1590
- "src": "593:7:43",
1591
- "stateMutability": "nonpayable",
1592
- "typeDescriptions": {
1593
- "typeIdentifier": "t_address",
1594
- "typeString": "address"
1595
- }
1596
- },
1597
- "value": null,
1598
- "visibility": "internal"
1599
- }
1600
- ],
1601
- "src": "592:9:43"
1602
- },
1603
- "returnParameters": {
1604
- "id": 9343,
1605
- "nodeType": "ParameterList",
1606
- "parameters": [],
1607
- "src": "610:0:43"
1608
- },
1609
- "scope": 9350,
1610
- "src": "575:36:43",
1611
- "stateMutability": "nonpayable",
1612
- "superFunction": null,
1613
- "visibility": "external"
1614
- },
1615
- {
1616
- "body": null,
1617
- "documentation": null,
1618
- "id": 9349,
1619
- "implemented": false,
1620
- "kind": "function",
1621
- "modifiers": [],
1622
- "name": "setFeeToSetter",
1623
- "nodeType": "FunctionDefinition",
1624
- "parameters": {
1625
- "id": 9347,
1626
- "nodeType": "ParameterList",
1627
- "parameters": [
1628
- {
1629
- "constant": false,
1630
- "id": 9346,
1631
- "name": "",
1632
- "nodeType": "VariableDeclaration",
1633
- "scope": 9349,
1634
- "src": "640:7:43",
1635
- "stateVariable": false,
1636
- "storageLocation": "default",
1637
- "typeDescriptions": {
1638
- "typeIdentifier": "t_address",
1639
- "typeString": "address"
1640
- },
1641
- "typeName": {
1642
- "id": 9345,
1643
- "name": "address",
1644
- "nodeType": "ElementaryTypeName",
1645
- "src": "640:7:43",
1646
- "stateMutability": "nonpayable",
1647
- "typeDescriptions": {
1648
- "typeIdentifier": "t_address",
1649
- "typeString": "address"
1650
- }
1651
- },
1652
- "value": null,
1653
- "visibility": "internal"
1654
- }
1655
- ],
1656
- "src": "639:9:43"
1657
- },
1658
- "returnParameters": {
1659
- "id": 9348,
1660
- "nodeType": "ParameterList",
1661
- "parameters": [],
1662
- "src": "657:0:43"
1663
- },
1664
- "scope": 9350,
1665
- "src": "616:42:43",
1666
- "stateMutability": "nonpayable",
1667
- "superFunction": null,
1668
- "visibility": "external"
1669
- }
1670
- ],
1671
- "scope": 9351,
1672
- "src": "26:634:43"
1673
- }
1674
- ],
1675
- "src": "0:661:43"
1676
- },
1677
- "compiler": {
1678
- "name": "solc",
1679
- "version": "0.5.16+commit.9c3226ce.Emscripten.clang"
1680
- },
1681
- "networks": {},
1682
- "schemaVersion": "3.3.2",
1683
- "updatedAt": "2021-01-07T23:07:24.834Z",
1684
- "devdoc": {
1685
- "methods": {}
1686
- },
1687
- "userdoc": {
1688
- "methods": {}
1689
- }
1690
- }