impermax-sdk 1.2.112 → 2.0.0

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 (357) hide show
  1. package/lib/abis/ImpermaxABI.d.ts +2 -2
  2. package/lib/abis/ImpermaxABI.js +3 -3
  3. package/lib/abis/contracts/ClaimAggregator.json +2015 -2015
  4. package/lib/abis/contracts/IAllowanceTransfer.json +3772 -0
  5. package/lib/abis/contracts/IBorrowable.json +13207 -13207
  6. package/lib/abis/contracts/IClaimable.json +406 -406
  7. package/lib/abis/contracts/ICollateral.json +9052 -9052
  8. package/lib/abis/contracts/IERC20.json +2376 -2376
  9. package/lib/abis/contracts/IERC721.json +3515 -0
  10. package/lib/abis/contracts/IFactory.json +3660 -3660
  11. package/lib/abis/contracts/IFarmingPool.json +3584 -3584
  12. package/lib/abis/contracts/ILendingVaultV1.json +8358 -8358
  13. package/lib/abis/contracts/IMerkleDistributor.json +1134 -1134
  14. package/lib/abis/contracts/IRouter02.json +7283 -7283
  15. package/lib/abis/contracts/ISimpleUniswapOracle.json +1469 -1469
  16. package/lib/abis/contracts/IStakedLPToken.json +7309 -7309
  17. package/lib/abis/contracts/IStakingRewards.json +1036 -1036
  18. package/lib/abis/contracts/ITokenizedUniswapV2Position.json +4167 -0
  19. package/lib/abis/contracts/ITokenizedUniswapV3Position.json +5539 -0
  20. package/lib/abis/contracts/IUniswapV2Factory.json +1690 -1690
  21. package/lib/abis/contracts/IUniswapV2Pair.json +6761 -6761
  22. package/lib/abis/contracts/IUniswapV3Pool.json +6606 -0
  23. package/lib/abis/contracts/ImpermaxChef.json +20945 -20945
  24. package/lib/abis/contracts/ImpermaxConfigManager.json +31595 -31595
  25. package/lib/abis/contracts/ImpermaxV3Borrowable.json +22131 -0
  26. package/lib/abis/contracts/ImpermaxV3Collateral.json +22988 -0
  27. package/lib/abis/contracts/ImpermaxV3Factory.json +17645 -0
  28. package/lib/abis/contracts/ImpermaxV3UniV2Router01.json +32488 -0
  29. package/lib/abis/contracts/ImpermaxV3UniV3Router01.json +37742 -0
  30. package/lib/abis/contracts/LendingVaultWatcher01.json +4076 -4076
  31. package/lib/abis/contracts/PoolTokenRouter01.json +9058 -0
  32. package/lib/config/amms.d.ts +102 -104
  33. package/lib/config/amms.js +433 -436
  34. package/lib/config/chainId.d.ts +2 -0
  35. package/lib/config/chainId.js +26 -0
  36. package/lib/config/contracts/claim-aggregators.d.ts +2 -2
  37. package/lib/config/contracts/claim-aggregators.js +26 -26
  38. package/lib/config/contracts/impermax-chef.d.ts +2 -2
  39. package/lib/config/contracts/impermax-chef.js +27 -27
  40. package/lib/config/contracts/impermax-config-manager.d.ts +2 -2
  41. package/lib/config/contracts/impermax-config-manager.js +26 -26
  42. package/lib/config/contracts/impermax-factories.d.ts +4 -4
  43. package/lib/config/contracts/impermax-factories.js +87 -87
  44. package/lib/config/contracts/imxes.d.ts +2 -2
  45. package/lib/config/contracts/imxes.js +26 -26
  46. package/lib/config/contracts/lending-vault-watcher.d.ts +2 -2
  47. package/lib/config/contracts/lending-vault-watcher.js +26 -26
  48. package/lib/config/contracts/merkle-distributors.d.ts +4 -4
  49. package/lib/config/contracts/merkle-distributors.js +70 -70
  50. package/lib/config/contracts/routers.d.ts +4 -3
  51. package/lib/config/contracts/routers.js +118 -94
  52. package/lib/config/contracts/simple-uniswap-oracles.d.ts +2 -2
  53. package/lib/config/contracts/simple-uniswap-oracles.js +49 -49
  54. package/lib/config/contracts/weths.d.ts +2 -2
  55. package/lib/config/contracts/weths.js +27 -27
  56. package/lib/config/debank-ids.d.ts +2 -2
  57. package/lib/config/debank-ids.js +26 -26
  58. package/lib/config/endpoints/merkle-distributors.d.ts +4 -4
  59. package/lib/config/endpoints/merkle-distributors.js +70 -70
  60. package/lib/config/eth.d.ts +3 -3
  61. package/lib/config/eth.js +48 -48
  62. package/lib/config/factories.d.ts +7 -7
  63. package/lib/config/factories.js +31 -30
  64. package/lib/config/farms.d.ts +109 -111
  65. package/lib/config/farms.js +207 -210
  66. package/lib/config/general.d.ts +5 -5
  67. package/lib/config/general.js +8 -8
  68. package/lib/config/subgraphs.d.ts +45 -45
  69. package/lib/config/subgraphs.js +187 -187
  70. package/lib/config/types.d.ts +85 -72
  71. package/lib/config/types.js +72 -58
  72. package/lib/index.d.ts +36 -35
  73. package/lib/index.js +159 -152
  74. package/lib/offchain/account/index.d.ts +9 -7
  75. package/lib/offchain/account/index.js +43 -39
  76. package/lib/offchain/account/lendingPool/borrowable.d.ts +14 -0
  77. package/lib/offchain/account/lendingPool/borrowable.js +73 -0
  78. package/lib/offchain/account/lendingPool/collateral.d.ts +12 -0
  79. package/lib/offchain/account/lendingPool/collateral.js +42 -0
  80. package/lib/offchain/account/lendingPool/index.d.ts +6 -5
  81. package/lib/offchain/account/lendingPool/index.js +14 -12
  82. package/lib/offchain/account/lendingPool/offchainAccountBorrowable.d.ts +14 -17
  83. package/lib/offchain/account/lendingPool/offchainAccountBorrowable.js +45 -71
  84. package/lib/offchain/account/lendingPool/offchainAccountCollateral.d.ts +11 -13
  85. package/lib/offchain/account/lendingPool/offchainAccountCollateral.js +31 -43
  86. package/lib/offchain/account/lendingPool/offchainAccountLendingPool.d.ts +28 -21
  87. package/lib/offchain/account/lendingPool/offchainAccountLendingPool.js +69 -68
  88. package/lib/offchain/account/lendingPool/offchainLeveragedPosition.d.ts +25 -0
  89. package/lib/offchain/account/lendingPool/offchainLeveragedPosition.js +116 -0
  90. package/lib/offchain/account/lendingVault.d.ts +11 -0
  91. package/lib/offchain/account/lendingVault.js +38 -0
  92. package/lib/offchain/account/offchainAccount.d.ts +25 -25
  93. package/lib/offchain/account/offchainAccount.js +129 -129
  94. package/lib/offchain/account/offchainAccountLendingVault.d.ts +16 -16
  95. package/lib/offchain/account/offchainAccountLendingVault.js +64 -64
  96. package/lib/offchain/account/offchainAccountPoolToken.d.ts +7 -7
  97. package/lib/offchain/account/offchainAccountPoolToken.js +24 -24
  98. package/lib/offchain/account/offchainMultichainAccount.d.ts +34 -0
  99. package/lib/offchain/account/offchainMultichainAccount.js +66 -0
  100. package/lib/offchain/account/poolToken.d.ts +6 -0
  101. package/lib/offchain/account/poolToken.js +21 -0
  102. package/lib/offchain/account/vault/index.d.ts +3 -0
  103. package/lib/offchain/account/vault/index.js +7 -0
  104. package/lib/offchain/account/vault/offchainAccountVault.d.ts +16 -0
  105. package/lib/offchain/account/vault/offchainAccountVault.js +64 -0
  106. package/lib/offchain/configManager/index.d.ts +5 -5
  107. package/lib/offchain/configManager/index.js +12 -12
  108. package/lib/offchain/configManager/offchainConfigManager.d.ts +25 -25
  109. package/lib/offchain/configManager/offchainConfigManager.js +76 -76
  110. package/lib/offchain/configManager/offchainConfigManagerInitializer.d.ts +6 -6
  111. package/lib/offchain/configManager/offchainConfigManagerInitializer.js +53 -53
  112. package/lib/offchain/configManager/offchainPairConfig.d.ts +40 -40
  113. package/lib/offchain/configManager/offchainPairConfig.js +86 -86
  114. package/lib/offchain/configManager/offchainProposal.d.ts +17 -17
  115. package/lib/offchain/configManager/offchainProposal.js +53 -53
  116. package/lib/offchain/index.d.ts +15 -14
  117. package/lib/offchain/index.js +55 -53
  118. package/lib/offchain/initializer.d.ts +32 -0
  119. package/lib/offchain/initializer.js +627 -0
  120. package/lib/offchain/lendingPool/borrowable.d.ts +55 -0
  121. package/lib/offchain/lendingPool/borrowable.js +351 -0
  122. package/lib/offchain/lendingPool/collateral.d.ts +17 -0
  123. package/lib/offchain/lendingPool/collateral.js +72 -0
  124. package/lib/offchain/lendingPool/index.d.ts +5 -5
  125. package/lib/offchain/lendingPool/index.js +12 -12
  126. package/lib/offchain/lendingPool/offchainBorrowable.d.ts +59 -59
  127. package/lib/offchain/lendingPool/offchainBorrowable.js +366 -366
  128. package/lib/offchain/lendingPool/offchainCollateral.d.ts +20 -19
  129. package/lib/offchain/lendingPool/offchainCollateral.js +81 -75
  130. package/lib/offchain/lendingPool/offchainLendingPool.d.ts +60 -47
  131. package/lib/offchain/lendingPool/offchainLendingPool.js +277 -230
  132. package/lib/offchain/lendingVault.d.ts +22 -0
  133. package/lib/offchain/lendingVault.js +115 -0
  134. package/lib/offchain/offchain.d.ts +106 -113
  135. package/lib/offchain/offchain.js +248 -251
  136. package/lib/offchain/offchainAPRHelper.d.ts +45 -45
  137. package/lib/offchain/offchainAPRHelper.js +239 -239
  138. package/lib/offchain/offchainEndpointManager.d.ts +25 -25
  139. package/lib/offchain/offchainEndpointManager.js +126 -126
  140. package/lib/offchain/offchainInitializer.d.ts +52 -52
  141. package/lib/offchain/offchainInitializer.js +792 -792
  142. package/lib/offchain/offchainLendingVault.d.ts +25 -25
  143. package/lib/offchain/offchainLendingVault.js +114 -114
  144. package/lib/offchain/offchainMultichain.d.ts +50 -0
  145. package/lib/offchain/offchainMultichain.js +75 -0
  146. package/lib/offchain/offchainPoolToken.d.ts +21 -21
  147. package/lib/offchain/offchainPoolToken.js +128 -128
  148. package/lib/offchain/offchainPriceHelper.d.ts +22 -22
  149. package/lib/offchain/offchainPriceHelper.js +364 -364
  150. package/lib/offchain/offchainSolidexHelper.d.ts +16 -16
  151. package/lib/offchain/offchainSolidexHelper.js +58 -58
  152. package/lib/offchain/offchainTypes.d.ts +212 -212
  153. package/lib/offchain/offchainTypes.js +3 -3
  154. package/lib/offchain/poolToken.d.ts +20 -0
  155. package/lib/offchain/poolToken.js +120 -0
  156. package/lib/offchain/priceHelper.d.ts +21 -0
  157. package/lib/offchain/priceHelper.js +195 -0
  158. package/lib/offchain/queries/apis/ponder/index.d.ts +14 -14
  159. package/lib/offchain/queries/apis/ponder/index.js +281 -281
  160. package/lib/offchain/queries/apis/thegraph/index.d.ts +19 -19
  161. package/lib/offchain/queries/apis/thegraph/index.js +355 -355
  162. package/lib/offchain/queries/index.d.ts +20 -20
  163. package/lib/offchain/queries/index.js +51 -51
  164. package/lib/offchain/queries/interfaces/query-builder.d.ts +19 -19
  165. package/lib/offchain/queries/interfaces/query-builder.js +2 -2
  166. package/lib/offchain/queries/interfaces/transformers.js +9 -9
  167. package/lib/offchain/query.d.ts +15 -0
  168. package/lib/offchain/query.js +323 -0
  169. package/lib/offchain/solidexHelper.d.ts +16 -0
  170. package/lib/offchain/solidexHelper.js +58 -0
  171. package/lib/offchain/types.d.ts +150 -0
  172. package/lib/offchain/types.js +3 -0
  173. package/lib/offchain/vault/index.d.ts +6 -0
  174. package/lib/offchain/vault/index.js +14 -0
  175. package/lib/offchain/vault/offchainHedgedVault.d.ts +9 -0
  176. package/lib/offchain/vault/offchainHedgedVault.js +57 -0
  177. package/lib/offchain/vault/offchainLendingVault.d.ts +16 -0
  178. package/lib/offchain/vault/offchainLendingVault.js +73 -0
  179. package/lib/offchain/vault/offchainLeveragedVault.d.ts +9 -0
  180. package/lib/offchain/vault/offchainLeveragedVault.js +57 -0
  181. package/lib/offchain/vault/offchainVault.d.ts +34 -0
  182. package/lib/offchain/vault/offchainVault.js +130 -0
  183. package/lib/onchain/account/index.d.ts +6 -6
  184. package/lib/onchain/account/index.js +38 -38
  185. package/lib/onchain/account/interactions/index.d.ts +28 -0
  186. package/lib/onchain/account/interactions/index.js +158 -0
  187. package/lib/onchain/account/interactions/lendingPool/borrowable.d.ts +16 -0
  188. package/lib/onchain/account/interactions/lendingPool/borrowable.js +49 -0
  189. package/lib/onchain/account/interactions/lendingPool/collateral.d.ts +15 -0
  190. package/lib/onchain/account/interactions/lendingPool/collateral.js +33 -0
  191. package/lib/onchain/account/interactions/lendingPool/index.d.ts +41 -0
  192. package/lib/onchain/account/interactions/lendingPool/index.js +120 -0
  193. package/lib/onchain/account/interactions/lendingVault.d.ts +10 -0
  194. package/lib/onchain/account/interactions/lendingVault.js +12 -0
  195. package/lib/onchain/account/interactions/poolToken.d.ts +33 -0
  196. package/lib/onchain/account/interactions/poolToken.js +180 -0
  197. package/lib/onchain/account/lendingPool/borrowable.d.ts +29 -0
  198. package/lib/onchain/account/lendingPool/borrowable.js +135 -0
  199. package/lib/onchain/account/lendingPool/collateral.d.ts +15 -0
  200. package/lib/onchain/account/lendingPool/collateral.js +66 -0
  201. package/lib/onchain/account/lendingPool/index.d.ts +12 -5
  202. package/lib/onchain/account/lendingPool/index.js +49 -12
  203. package/lib/onchain/account/lendingPool/nftlp/index.d.ts +4 -0
  204. package/lib/onchain/account/lendingPool/nftlp/index.js +11 -0
  205. package/lib/onchain/account/lendingPool/nftlp/onchainAccountNftlp.d.ts +7 -0
  206. package/lib/onchain/account/lendingPool/nftlp/onchainAccountNftlp.js +12 -0
  207. package/lib/onchain/account/lendingPool/nftlp/onchainAccountNftlpUniswapV3.d.ts +4 -0
  208. package/lib/onchain/account/lendingPool/nftlp/onchainAccountNftlpUniswapV3.js +13 -0
  209. package/lib/onchain/account/lendingPool/onchainAccountBorrowable.d.ts +39 -34
  210. package/lib/onchain/account/lendingPool/onchainAccountBorrowable.js +131 -176
  211. package/lib/onchain/account/lendingPool/onchainAccountBorrowableV2.d.ts +10 -0
  212. package/lib/onchain/account/lendingPool/onchainAccountBorrowableV2.js +55 -0
  213. package/lib/onchain/account/lendingPool/onchainAccountBorrowableV3.d.ts +10 -0
  214. package/lib/onchain/account/lendingPool/onchainAccountBorrowableV3.js +28 -0
  215. package/lib/onchain/account/lendingPool/onchainAccountCollateral.d.ts +10 -23
  216. package/lib/onchain/account/lendingPool/onchainAccountCollateral.js +26 -109
  217. package/lib/onchain/account/lendingPool/onchainAccountCollateralV2.d.ts +25 -0
  218. package/lib/onchain/account/lendingPool/onchainAccountCollateralV2.js +99 -0
  219. package/lib/onchain/account/lendingPool/onchainAccountCollateralV3.d.ts +18 -0
  220. package/lib/onchain/account/lendingPool/onchainAccountCollateralV3.js +44 -0
  221. package/lib/onchain/account/lendingPool/onchainAccountLendingPool.d.ts +42 -57
  222. package/lib/onchain/account/lendingPool/onchainAccountLendingPool.js +142 -352
  223. package/lib/onchain/account/lendingPool/onchainAccountLendingPoolV2.d.ts +44 -0
  224. package/lib/onchain/account/lendingPool/onchainAccountLendingPoolV2.js +285 -0
  225. package/lib/onchain/account/lendingPool/onchainAccountLendingPoolV3.d.ts +27 -0
  226. package/lib/onchain/account/lendingPool/onchainAccountLendingPoolV3.js +32 -0
  227. package/lib/onchain/account/lendingVault.d.ts +10 -0
  228. package/lib/onchain/account/lendingVault.js +35 -0
  229. package/lib/onchain/account/onchainAccount.d.ts +32 -32
  230. package/lib/onchain/account/onchainAccount.js +166 -167
  231. package/lib/onchain/account/onchainAccountLendingVault.d.ts +19 -19
  232. package/lib/onchain/account/onchainAccountLendingVault.js +48 -48
  233. package/lib/onchain/account/onchainAccountPoolToken.d.ts +30 -30
  234. package/lib/onchain/account/onchainAccountPoolToken.js +86 -86
  235. package/lib/onchain/account/poolToken.d.ts +24 -0
  236. package/lib/onchain/account/poolToken.js +84 -0
  237. package/lib/onchain/configManager/index.d.ts +5 -5
  238. package/lib/onchain/configManager/index.js +12 -12
  239. package/lib/onchain/configManager/onchainConfigManager.d.ts +12 -12
  240. package/lib/onchain/configManager/onchainConfigManager.js +38 -38
  241. package/lib/onchain/configManager/onchainPairConfig.d.ts +38 -38
  242. package/lib/onchain/configManager/onchainPairConfig.js +85 -85
  243. package/lib/onchain/configManager/onchainProposal.d.ts +17 -17
  244. package/lib/onchain/configManager/onchainProposal.js +55 -55
  245. package/lib/onchain/contractsHelper.d.ts +29 -0
  246. package/lib/onchain/contractsHelper.js +52 -0
  247. package/lib/onchain/impermaxFactory/index.d.ts +7 -5
  248. package/lib/onchain/impermaxFactory/index.js +39 -35
  249. package/lib/onchain/impermaxFactory/lendingPool/borrowable.d.ts +36 -0
  250. package/lib/onchain/impermaxFactory/lendingPool/borrowable.js +153 -0
  251. package/lib/onchain/impermaxFactory/lendingPool/collateral.d.ts +17 -0
  252. package/lib/onchain/impermaxFactory/lendingPool/collateral.js +59 -0
  253. package/lib/onchain/impermaxFactory/lendingPool/index.d.ts +12 -5
  254. package/lib/onchain/impermaxFactory/lendingPool/index.js +50 -12
  255. package/lib/onchain/impermaxFactory/lendingPool/nftlp/index.d.ts +4 -0
  256. package/lib/onchain/impermaxFactory/lendingPool/nftlp/index.js +11 -0
  257. package/lib/onchain/impermaxFactory/lendingPool/nftlp/onchainNftlp.d.ts +22 -0
  258. package/lib/onchain/impermaxFactory/lendingPool/nftlp/onchainNftlp.js +19 -0
  259. package/lib/onchain/impermaxFactory/lendingPool/nftlp/onchainNftlpUniswapV3.d.ts +24 -0
  260. package/lib/onchain/impermaxFactory/lendingPool/nftlp/onchainNftlpUniswapV3.js +90 -0
  261. package/lib/onchain/impermaxFactory/lendingPool/onchainBorrowable.d.ts +38 -34
  262. package/lib/onchain/impermaxFactory/lendingPool/onchainBorrowable.js +137 -156
  263. package/lib/onchain/impermaxFactory/lendingPool/onchainBorrowableV2.d.ts +9 -0
  264. package/lib/onchain/impermaxFactory/lendingPool/onchainBorrowableV2.js +36 -0
  265. package/lib/onchain/impermaxFactory/lendingPool/onchainBorrowableV3.d.ts +7 -0
  266. package/lib/onchain/impermaxFactory/lendingPool/onchainBorrowableV3.js +23 -0
  267. package/lib/onchain/impermaxFactory/lendingPool/onchainCollateral.d.ts +8 -19
  268. package/lib/onchain/impermaxFactory/lendingPool/onchainCollateral.js +24 -61
  269. package/lib/onchain/impermaxFactory/lendingPool/onchainCollateralV2.d.ts +20 -0
  270. package/lib/onchain/impermaxFactory/lendingPool/onchainCollateralV2.js +58 -0
  271. package/lib/onchain/impermaxFactory/lendingPool/onchainCollateralV3.d.ts +13 -0
  272. package/lib/onchain/impermaxFactory/lendingPool/onchainCollateralV3.js +36 -0
  273. package/lib/onchain/impermaxFactory/lendingPool/onchainLendingPool.d.ts +43 -58
  274. package/lib/onchain/impermaxFactory/lendingPool/onchainLendingPool.js +81 -367
  275. package/lib/onchain/impermaxFactory/lendingPool/onchainLendingPoolV2.d.ts +76 -0
  276. package/lib/onchain/impermaxFactory/lendingPool/onchainLendingPoolV2.js +338 -0
  277. package/lib/onchain/impermaxFactory/lendingPool/onchainLendingPoolV3.d.ts +42 -0
  278. package/lib/onchain/impermaxFactory/lendingPool/onchainLendingPoolV3.js +39 -0
  279. package/lib/onchain/impermaxFactory/onchainImpermaxFactory.d.ts +26 -16
  280. package/lib/onchain/impermaxFactory/onchainImpermaxFactory.js +42 -52
  281. package/lib/onchain/impermaxFactory/onchainImpermaxFactoryV2.d.ts +16 -0
  282. package/lib/onchain/impermaxFactory/onchainImpermaxFactoryV2.js +81 -0
  283. package/lib/onchain/impermaxFactory/onchainImpermaxFactoryV3.d.ts +16 -0
  284. package/lib/onchain/impermaxFactory/onchainImpermaxFactoryV3.js +88 -0
  285. package/lib/onchain/index.d.ts +10 -10
  286. package/lib/onchain/index.js +49 -49
  287. package/lib/onchain/interactions/index.d.ts +8 -8
  288. package/lib/onchain/interactions/index.js +41 -41
  289. package/lib/onchain/interactions/lendingPool/borrowable.d.ts +14 -0
  290. package/lib/onchain/interactions/lendingPool/borrowable.js +47 -0
  291. package/lib/onchain/interactions/lendingPool/collateral.d.ts +13 -0
  292. package/lib/onchain/interactions/lendingPool/collateral.js +31 -0
  293. package/lib/onchain/interactions/lendingPool/index.d.ts +12 -5
  294. package/lib/onchain/interactions/lendingPool/index.js +49 -12
  295. package/lib/onchain/interactions/lendingPool/nftlp/index.d.ts +4 -0
  296. package/lib/onchain/interactions/lendingPool/nftlp/index.js +11 -0
  297. package/lib/onchain/interactions/lendingPool/nftlp/onchainInteractionsNftlp.d.ts +7 -0
  298. package/lib/onchain/interactions/lendingPool/nftlp/onchainInteractionsNftlp.js +12 -0
  299. package/lib/onchain/interactions/lendingPool/nftlp/onchainInteractionsNftlpUniswapV3.d.ts +4 -0
  300. package/lib/onchain/interactions/lendingPool/nftlp/onchainInteractionsNftlpUniswapV3.js +13 -0
  301. package/lib/onchain/interactions/lendingPool/onchainInteractionsBorrowable.d.ts +17 -21
  302. package/lib/onchain/interactions/lendingPool/onchainInteractionsBorrowable.js +24 -56
  303. package/lib/onchain/interactions/lendingPool/onchainInteractionsBorrowableV2.d.ts +15 -0
  304. package/lib/onchain/interactions/lendingPool/onchainInteractionsBorrowableV2.js +63 -0
  305. package/lib/onchain/interactions/lendingPool/onchainInteractionsBorrowableV3.d.ts +9 -0
  306. package/lib/onchain/interactions/lendingPool/onchainInteractionsBorrowableV3.js +14 -0
  307. package/lib/onchain/interactions/lendingPool/onchainInteractionsCollateral.d.ts +7 -19
  308. package/lib/onchain/interactions/lendingPool/onchainInteractionsCollateral.js +11 -43
  309. package/lib/onchain/interactions/lendingPool/onchainInteractionsCollateralV2.d.ts +20 -0
  310. package/lib/onchain/interactions/lendingPool/onchainInteractionsCollateralV2.js +48 -0
  311. package/lib/onchain/interactions/lendingPool/onchainInteractionsCollateralV3.d.ts +13 -0
  312. package/lib/onchain/interactions/lendingPool/onchainInteractionsCollateralV3.js +20 -0
  313. package/lib/onchain/interactions/lendingPool/onchainInteractionsLendingPool.d.ts +31 -46
  314. package/lib/onchain/interactions/lendingPool/onchainInteractionsLendingPool.js +53 -135
  315. package/lib/onchain/interactions/lendingPool/onchainInteractionsLendingPoolV2.d.ts +42 -0
  316. package/lib/onchain/interactions/lendingPool/onchainInteractionsLendingPoolV2.js +114 -0
  317. package/lib/onchain/interactions/lendingPool/onchainInteractionsLendingPoolV3.d.ts +27 -0
  318. package/lib/onchain/interactions/lendingPool/onchainInteractionsLendingPoolV3.js +32 -0
  319. package/lib/onchain/interactions/lendingVault.d.ts +8 -0
  320. package/lib/onchain/interactions/lendingVault.js +15 -0
  321. package/lib/onchain/interactions/onchainInteractions.d.ts +31 -31
  322. package/lib/onchain/interactions/onchainInteractions.js +136 -137
  323. package/lib/onchain/interactions/onchainInteractionsConfigManager.d.ts +17 -17
  324. package/lib/onchain/interactions/onchainInteractionsConfigManager.js +44 -44
  325. package/lib/onchain/interactions/onchainInteractionsLendingVault.d.ts +14 -14
  326. package/lib/onchain/interactions/onchainInteractionsLendingVault.js +21 -21
  327. package/lib/onchain/interactions/onchainInteractionsPoolToken.d.ts +35 -35
  328. package/lib/onchain/interactions/onchainInteractionsPoolToken.js +134 -186
  329. package/lib/onchain/interactions/poolToken.d.ts +31 -0
  330. package/lib/onchain/interactions/poolToken.js +181 -0
  331. package/lib/onchain/lendingVault.d.ts +17 -0
  332. package/lib/onchain/lendingVault.js +56 -0
  333. package/lib/onchain/onchain.d.ts +38 -35
  334. package/lib/onchain/onchain.js +78 -70
  335. package/lib/onchain/onchainContractsHelper.d.ts +42 -31
  336. package/lib/onchain/onchainContractsHelper.js +90 -56
  337. package/lib/onchain/onchainLendingVault.d.ts +22 -22
  338. package/lib/onchain/onchainLendingVault.js +69 -69
  339. package/lib/onchain/onchainPermitHelper.d.ts +21 -0
  340. package/lib/onchain/onchainPermitHelper.js +198 -0
  341. package/lib/onchain/onchainPoolToken.d.ts +35 -35
  342. package/lib/onchain/onchainPoolToken.js +129 -129
  343. package/lib/onchain/onchainTypes.d.ts +70 -64
  344. package/lib/onchain/onchainTypes.js +14 -14
  345. package/lib/onchain/poolToken.d.ts +32 -0
  346. package/lib/onchain/poolToken.js +121 -0
  347. package/lib/onchain/types.d.ts +45 -0
  348. package/lib/onchain/types.js +14 -0
  349. package/lib/utils/ether-utils.d.ts +5 -5
  350. package/lib/utils/ether-utils.js +26 -26
  351. package/lib/utils/index.d.ts +3 -3
  352. package/lib/utils/index.js +16 -16
  353. package/lib/utils/lliquidity-math.d.ts +30 -30
  354. package/lib/utils/lliquidity-math.js +139 -139
  355. package/lib/utils/price-from-reserves.d.ts +2 -0
  356. package/lib/utils/price-from-reserves.js +19 -0
  357. package/package.json +36 -36
@@ -1,1134 +1,1134 @@
1
- {
2
- "contractName": "IMerkleDistributor",
3
- "abi": [
4
- {
5
- "anonymous": false,
6
- "inputs": [
7
- {
8
- "indexed": false,
9
- "internalType": "uint256",
10
- "name": "index",
11
- "type": "uint256"
12
- },
13
- {
14
- "indexed": false,
15
- "internalType": "address",
16
- "name": "account",
17
- "type": "address"
18
- },
19
- {
20
- "indexed": false,
21
- "internalType": "uint256",
22
- "name": "amount",
23
- "type": "uint256"
24
- }
25
- ],
26
- "name": "Claimed",
27
- "type": "event"
28
- },
29
- {
30
- "inputs": [],
31
- "name": "token",
32
- "outputs": [
33
- {
34
- "internalType": "address",
35
- "name": "",
36
- "type": "address"
37
- }
38
- ],
39
- "stateMutability": "view",
40
- "type": "function"
41
- },
42
- {
43
- "inputs": [],
44
- "name": "merkleRoot",
45
- "outputs": [
46
- {
47
- "internalType": "bytes32",
48
- "name": "",
49
- "type": "bytes32"
50
- }
51
- ],
52
- "stateMutability": "view",
53
- "type": "function"
54
- },
55
- {
56
- "inputs": [
57
- {
58
- "internalType": "uint256",
59
- "name": "index",
60
- "type": "uint256"
61
- }
62
- ],
63
- "name": "isClaimed",
64
- "outputs": [
65
- {
66
- "internalType": "bool",
67
- "name": "",
68
- "type": "bool"
69
- }
70
- ],
71
- "stateMutability": "view",
72
- "type": "function"
73
- },
74
- {
75
- "inputs": [
76
- {
77
- "internalType": "uint256",
78
- "name": "index",
79
- "type": "uint256"
80
- },
81
- {
82
- "internalType": "address",
83
- "name": "account",
84
- "type": "address"
85
- },
86
- {
87
- "internalType": "uint256",
88
- "name": "amount",
89
- "type": "uint256"
90
- },
91
- {
92
- "internalType": "bytes32[]",
93
- "name": "merkleProof",
94
- "type": "bytes32[]"
95
- }
96
- ],
97
- "name": "claim",
98
- "outputs": [],
99
- "stateMutability": "nonpayable",
100
- "type": "function"
101
- }
102
- ],
103
- "metadata": "{\"compiler\":{\"version\":\"0.6.11+commit.5ef660b1\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Claimed\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"bytes32[]\",\"name\":\"merkleProof\",\"type\":\"bytes32[]\"}],\"name\":\"claim\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"isClaimed\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"merkleRoot\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"token\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"/C/Users/simor/Desktop/merkle-distributor-master/contracts/interfaces/IMerkleDistributor.sol\":\"IMerkleDistributor\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":999999},\"remappings\":[]},\"sources\":{\"/C/Users/simor/Desktop/merkle-distributor-master/contracts/interfaces/IMerkleDistributor.sol\":{\"keccak256\":\"0x8cd6f78943994972a4c670ab91894a82bd9ed629c9381db6ca9d0483fe8b698f\",\"license\":\"UNLICENSED\",\"urls\":[\"bzz-raw://621484f0c5e702f7fb421c968bda5cd8218c3915cc6d79956c2d68fb0887f280\",\"dweb:/ipfs/QmXftsLwy64Z4rFn1WoXY5cj1iuqPctA8HoeraLb3Wd4ES\"]}},\"version\":1}",
104
- "bytecode": "0x",
105
- "deployedBytecode": "0x",
106
- "immutableReferences": {},
107
- "sourceMap": "",
108
- "deployedSourceMap": "",
109
- "source": "// SPDX-License-Identifier: UNLICENSED\npragma solidity >=0.5.0;\n\n// Allows anyone to claim a token if they exist in a merkle root.\ninterface IMerkleDistributor {\n // Returns the address of the token distributed by this contract.\n function token() external view returns (address);\n // Returns the merkle root of the merkle tree containing account balances available to claim.\n function merkleRoot() external view returns (bytes32);\n // Returns true if the index has been marked claimed.\n function isClaimed(uint256 index) external view returns (bool);\n // Claim the given amount of the token to the given address. Reverts if the inputs are invalid.\n function claim(uint256 index, address account, uint256 amount, bytes32[] calldata merkleProof) external;\n\n // This event is triggered whenever a call to #claim succeeds.\n event Claimed(uint256 index, address account, uint256 amount);\n}",
110
- "sourcePath": "C:/Users/simor/Desktop/merkle-distributor-master/contracts/interfaces/IMerkleDistributor.sol",
111
- "ast": {
112
- "absolutePath": "/C/Users/simor/Desktop/merkle-distributor-master/contracts/interfaces/IMerkleDistributor.sol",
113
- "exportedSymbols": {
114
- "IMerkleDistributor": [
115
- 391
116
- ]
117
- },
118
- "id": 392,
119
- "license": "UNLICENSED",
120
- "nodeType": "SourceUnit",
121
- "nodes": [
122
- {
123
- "id": 353,
124
- "literals": [
125
- "solidity",
126
- ">=",
127
- "0.5",
128
- ".0"
129
- ],
130
- "nodeType": "PragmaDirective",
131
- "src": "39:24:1"
132
- },
133
- {
134
- "abstract": false,
135
- "baseContracts": [],
136
- "contractDependencies": [],
137
- "contractKind": "interface",
138
- "documentation": null,
139
- "fullyImplemented": false,
140
- "id": 391,
141
- "linearizedBaseContracts": [
142
- 391
143
- ],
144
- "name": "IMerkleDistributor",
145
- "nodeType": "ContractDefinition",
146
- "nodes": [
147
- {
148
- "body": null,
149
- "documentation": null,
150
- "functionSelector": "fc0c546a",
151
- "id": 358,
152
- "implemented": false,
153
- "kind": "function",
154
- "modifiers": [],
155
- "name": "token",
156
- "nodeType": "FunctionDefinition",
157
- "overrides": null,
158
- "parameters": {
159
- "id": 354,
160
- "nodeType": "ParameterList",
161
- "parameters": [],
162
- "src": "250:2:1"
163
- },
164
- "returnParameters": {
165
- "id": 357,
166
- "nodeType": "ParameterList",
167
- "parameters": [
168
- {
169
- "constant": false,
170
- "id": 356,
171
- "mutability": "mutable",
172
- "name": "",
173
- "nodeType": "VariableDeclaration",
174
- "overrides": null,
175
- "scope": 358,
176
- "src": "276:7:1",
177
- "stateVariable": false,
178
- "storageLocation": "default",
179
- "typeDescriptions": {
180
- "typeIdentifier": "t_address",
181
- "typeString": "address"
182
- },
183
- "typeName": {
184
- "id": 355,
185
- "name": "address",
186
- "nodeType": "ElementaryTypeName",
187
- "src": "276:7:1",
188
- "stateMutability": "nonpayable",
189
- "typeDescriptions": {
190
- "typeIdentifier": "t_address",
191
- "typeString": "address"
192
- }
193
- },
194
- "value": null,
195
- "visibility": "internal"
196
- }
197
- ],
198
- "src": "275:9:1"
199
- },
200
- "scope": 391,
201
- "src": "236:49:1",
202
- "stateMutability": "view",
203
- "virtual": false,
204
- "visibility": "external"
205
- },
206
- {
207
- "body": null,
208
- "documentation": null,
209
- "functionSelector": "2eb4a7ab",
210
- "id": 363,
211
- "implemented": false,
212
- "kind": "function",
213
- "modifiers": [],
214
- "name": "merkleRoot",
215
- "nodeType": "FunctionDefinition",
216
- "overrides": null,
217
- "parameters": {
218
- "id": 359,
219
- "nodeType": "ParameterList",
220
- "parameters": [],
221
- "src": "407:2:1"
222
- },
223
- "returnParameters": {
224
- "id": 362,
225
- "nodeType": "ParameterList",
226
- "parameters": [
227
- {
228
- "constant": false,
229
- "id": 361,
230
- "mutability": "mutable",
231
- "name": "",
232
- "nodeType": "VariableDeclaration",
233
- "overrides": null,
234
- "scope": 363,
235
- "src": "433:7:1",
236
- "stateVariable": false,
237
- "storageLocation": "default",
238
- "typeDescriptions": {
239
- "typeIdentifier": "t_bytes32",
240
- "typeString": "bytes32"
241
- },
242
- "typeName": {
243
- "id": 360,
244
- "name": "bytes32",
245
- "nodeType": "ElementaryTypeName",
246
- "src": "433:7:1",
247
- "typeDescriptions": {
248
- "typeIdentifier": "t_bytes32",
249
- "typeString": "bytes32"
250
- }
251
- },
252
- "value": null,
253
- "visibility": "internal"
254
- }
255
- ],
256
- "src": "432:9:1"
257
- },
258
- "scope": 391,
259
- "src": "388:54:1",
260
- "stateMutability": "view",
261
- "virtual": false,
262
- "visibility": "external"
263
- },
264
- {
265
- "body": null,
266
- "documentation": null,
267
- "functionSelector": "9e34070f",
268
- "id": 370,
269
- "implemented": false,
270
- "kind": "function",
271
- "modifiers": [],
272
- "name": "isClaimed",
273
- "nodeType": "FunctionDefinition",
274
- "overrides": null,
275
- "parameters": {
276
- "id": 366,
277
- "nodeType": "ParameterList",
278
- "parameters": [
279
- {
280
- "constant": false,
281
- "id": 365,
282
- "mutability": "mutable",
283
- "name": "index",
284
- "nodeType": "VariableDeclaration",
285
- "overrides": null,
286
- "scope": 370,
287
- "src": "524:13:1",
288
- "stateVariable": false,
289
- "storageLocation": "default",
290
- "typeDescriptions": {
291
- "typeIdentifier": "t_uint256",
292
- "typeString": "uint256"
293
- },
294
- "typeName": {
295
- "id": 364,
296
- "name": "uint256",
297
- "nodeType": "ElementaryTypeName",
298
- "src": "524:7:1",
299
- "typeDescriptions": {
300
- "typeIdentifier": "t_uint256",
301
- "typeString": "uint256"
302
- }
303
- },
304
- "value": null,
305
- "visibility": "internal"
306
- }
307
- ],
308
- "src": "523:15:1"
309
- },
310
- "returnParameters": {
311
- "id": 369,
312
- "nodeType": "ParameterList",
313
- "parameters": [
314
- {
315
- "constant": false,
316
- "id": 368,
317
- "mutability": "mutable",
318
- "name": "",
319
- "nodeType": "VariableDeclaration",
320
- "overrides": null,
321
- "scope": 370,
322
- "src": "562:4:1",
323
- "stateVariable": false,
324
- "storageLocation": "default",
325
- "typeDescriptions": {
326
- "typeIdentifier": "t_bool",
327
- "typeString": "bool"
328
- },
329
- "typeName": {
330
- "id": 367,
331
- "name": "bool",
332
- "nodeType": "ElementaryTypeName",
333
- "src": "562:4:1",
334
- "typeDescriptions": {
335
- "typeIdentifier": "t_bool",
336
- "typeString": "bool"
337
- }
338
- },
339
- "value": null,
340
- "visibility": "internal"
341
- }
342
- ],
343
- "src": "561:6:1"
344
- },
345
- "scope": 391,
346
- "src": "505:63:1",
347
- "stateMutability": "view",
348
- "virtual": false,
349
- "visibility": "external"
350
- },
351
- {
352
- "body": null,
353
- "documentation": null,
354
- "functionSelector": "2e7ba6ef",
355
- "id": 382,
356
- "implemented": false,
357
- "kind": "function",
358
- "modifiers": [],
359
- "name": "claim",
360
- "nodeType": "FunctionDefinition",
361
- "overrides": null,
362
- "parameters": {
363
- "id": 380,
364
- "nodeType": "ParameterList",
365
- "parameters": [
366
- {
367
- "constant": false,
368
- "id": 372,
369
- "mutability": "mutable",
370
- "name": "index",
371
- "nodeType": "VariableDeclaration",
372
- "overrides": null,
373
- "scope": 382,
374
- "src": "688:13:1",
375
- "stateVariable": false,
376
- "storageLocation": "default",
377
- "typeDescriptions": {
378
- "typeIdentifier": "t_uint256",
379
- "typeString": "uint256"
380
- },
381
- "typeName": {
382
- "id": 371,
383
- "name": "uint256",
384
- "nodeType": "ElementaryTypeName",
385
- "src": "688:7:1",
386
- "typeDescriptions": {
387
- "typeIdentifier": "t_uint256",
388
- "typeString": "uint256"
389
- }
390
- },
391
- "value": null,
392
- "visibility": "internal"
393
- },
394
- {
395
- "constant": false,
396
- "id": 374,
397
- "mutability": "mutable",
398
- "name": "account",
399
- "nodeType": "VariableDeclaration",
400
- "overrides": null,
401
- "scope": 382,
402
- "src": "703:15:1",
403
- "stateVariable": false,
404
- "storageLocation": "default",
405
- "typeDescriptions": {
406
- "typeIdentifier": "t_address",
407
- "typeString": "address"
408
- },
409
- "typeName": {
410
- "id": 373,
411
- "name": "address",
412
- "nodeType": "ElementaryTypeName",
413
- "src": "703:7:1",
414
- "stateMutability": "nonpayable",
415
- "typeDescriptions": {
416
- "typeIdentifier": "t_address",
417
- "typeString": "address"
418
- }
419
- },
420
- "value": null,
421
- "visibility": "internal"
422
- },
423
- {
424
- "constant": false,
425
- "id": 376,
426
- "mutability": "mutable",
427
- "name": "amount",
428
- "nodeType": "VariableDeclaration",
429
- "overrides": null,
430
- "scope": 382,
431
- "src": "720:14:1",
432
- "stateVariable": false,
433
- "storageLocation": "default",
434
- "typeDescriptions": {
435
- "typeIdentifier": "t_uint256",
436
- "typeString": "uint256"
437
- },
438
- "typeName": {
439
- "id": 375,
440
- "name": "uint256",
441
- "nodeType": "ElementaryTypeName",
442
- "src": "720:7:1",
443
- "typeDescriptions": {
444
- "typeIdentifier": "t_uint256",
445
- "typeString": "uint256"
446
- }
447
- },
448
- "value": null,
449
- "visibility": "internal"
450
- },
451
- {
452
- "constant": false,
453
- "id": 379,
454
- "mutability": "mutable",
455
- "name": "merkleProof",
456
- "nodeType": "VariableDeclaration",
457
- "overrides": null,
458
- "scope": 382,
459
- "src": "736:30:1",
460
- "stateVariable": false,
461
- "storageLocation": "calldata",
462
- "typeDescriptions": {
463
- "typeIdentifier": "t_array$_t_bytes32_$dyn_calldata_ptr",
464
- "typeString": "bytes32[]"
465
- },
466
- "typeName": {
467
- "baseType": {
468
- "id": 377,
469
- "name": "bytes32",
470
- "nodeType": "ElementaryTypeName",
471
- "src": "736:7:1",
472
- "typeDescriptions": {
473
- "typeIdentifier": "t_bytes32",
474
- "typeString": "bytes32"
475
- }
476
- },
477
- "id": 378,
478
- "length": null,
479
- "nodeType": "ArrayTypeName",
480
- "src": "736:9:1",
481
- "typeDescriptions": {
482
- "typeIdentifier": "t_array$_t_bytes32_$dyn_storage_ptr",
483
- "typeString": "bytes32[]"
484
- }
485
- },
486
- "value": null,
487
- "visibility": "internal"
488
- }
489
- ],
490
- "src": "687:80:1"
491
- },
492
- "returnParameters": {
493
- "id": 381,
494
- "nodeType": "ParameterList",
495
- "parameters": [],
496
- "src": "776:0:1"
497
- },
498
- "scope": 391,
499
- "src": "673:104:1",
500
- "stateMutability": "nonpayable",
501
- "virtual": false,
502
- "visibility": "external"
503
- },
504
- {
505
- "anonymous": false,
506
- "documentation": null,
507
- "id": 390,
508
- "name": "Claimed",
509
- "nodeType": "EventDefinition",
510
- "parameters": {
511
- "id": 389,
512
- "nodeType": "ParameterList",
513
- "parameters": [
514
- {
515
- "constant": false,
516
- "id": 384,
517
- "indexed": false,
518
- "mutability": "mutable",
519
- "name": "index",
520
- "nodeType": "VariableDeclaration",
521
- "overrides": null,
522
- "scope": 390,
523
- "src": "864:13:1",
524
- "stateVariable": false,
525
- "storageLocation": "default",
526
- "typeDescriptions": {
527
- "typeIdentifier": "t_uint256",
528
- "typeString": "uint256"
529
- },
530
- "typeName": {
531
- "id": 383,
532
- "name": "uint256",
533
- "nodeType": "ElementaryTypeName",
534
- "src": "864:7:1",
535
- "typeDescriptions": {
536
- "typeIdentifier": "t_uint256",
537
- "typeString": "uint256"
538
- }
539
- },
540
- "value": null,
541
- "visibility": "internal"
542
- },
543
- {
544
- "constant": false,
545
- "id": 386,
546
- "indexed": false,
547
- "mutability": "mutable",
548
- "name": "account",
549
- "nodeType": "VariableDeclaration",
550
- "overrides": null,
551
- "scope": 390,
552
- "src": "879:15:1",
553
- "stateVariable": false,
554
- "storageLocation": "default",
555
- "typeDescriptions": {
556
- "typeIdentifier": "t_address",
557
- "typeString": "address"
558
- },
559
- "typeName": {
560
- "id": 385,
561
- "name": "address",
562
- "nodeType": "ElementaryTypeName",
563
- "src": "879:7:1",
564
- "stateMutability": "nonpayable",
565
- "typeDescriptions": {
566
- "typeIdentifier": "t_address",
567
- "typeString": "address"
568
- }
569
- },
570
- "value": null,
571
- "visibility": "internal"
572
- },
573
- {
574
- "constant": false,
575
- "id": 388,
576
- "indexed": false,
577
- "mutability": "mutable",
578
- "name": "amount",
579
- "nodeType": "VariableDeclaration",
580
- "overrides": null,
581
- "scope": 390,
582
- "src": "896:14:1",
583
- "stateVariable": false,
584
- "storageLocation": "default",
585
- "typeDescriptions": {
586
- "typeIdentifier": "t_uint256",
587
- "typeString": "uint256"
588
- },
589
- "typeName": {
590
- "id": 387,
591
- "name": "uint256",
592
- "nodeType": "ElementaryTypeName",
593
- "src": "896:7:1",
594
- "typeDescriptions": {
595
- "typeIdentifier": "t_uint256",
596
- "typeString": "uint256"
597
- }
598
- },
599
- "value": null,
600
- "visibility": "internal"
601
- }
602
- ],
603
- "src": "863:48:1"
604
- },
605
- "src": "850:62:1"
606
- }
607
- ],
608
- "scope": 392,
609
- "src": "131:783:1"
610
- }
611
- ],
612
- "src": "39:875:1"
613
- },
614
- "legacyAST": {
615
- "absolutePath": "/C/Users/simor/Desktop/merkle-distributor-master/contracts/interfaces/IMerkleDistributor.sol",
616
- "exportedSymbols": {
617
- "IMerkleDistributor": [
618
- 391
619
- ]
620
- },
621
- "id": 392,
622
- "license": "UNLICENSED",
623
- "nodeType": "SourceUnit",
624
- "nodes": [
625
- {
626
- "id": 353,
627
- "literals": [
628
- "solidity",
629
- ">=",
630
- "0.5",
631
- ".0"
632
- ],
633
- "nodeType": "PragmaDirective",
634
- "src": "39:24:1"
635
- },
636
- {
637
- "abstract": false,
638
- "baseContracts": [],
639
- "contractDependencies": [],
640
- "contractKind": "interface",
641
- "documentation": null,
642
- "fullyImplemented": false,
643
- "id": 391,
644
- "linearizedBaseContracts": [
645
- 391
646
- ],
647
- "name": "IMerkleDistributor",
648
- "nodeType": "ContractDefinition",
649
- "nodes": [
650
- {
651
- "body": null,
652
- "documentation": null,
653
- "functionSelector": "fc0c546a",
654
- "id": 358,
655
- "implemented": false,
656
- "kind": "function",
657
- "modifiers": [],
658
- "name": "token",
659
- "nodeType": "FunctionDefinition",
660
- "overrides": null,
661
- "parameters": {
662
- "id": 354,
663
- "nodeType": "ParameterList",
664
- "parameters": [],
665
- "src": "250:2:1"
666
- },
667
- "returnParameters": {
668
- "id": 357,
669
- "nodeType": "ParameterList",
670
- "parameters": [
671
- {
672
- "constant": false,
673
- "id": 356,
674
- "mutability": "mutable",
675
- "name": "",
676
- "nodeType": "VariableDeclaration",
677
- "overrides": null,
678
- "scope": 358,
679
- "src": "276:7:1",
680
- "stateVariable": false,
681
- "storageLocation": "default",
682
- "typeDescriptions": {
683
- "typeIdentifier": "t_address",
684
- "typeString": "address"
685
- },
686
- "typeName": {
687
- "id": 355,
688
- "name": "address",
689
- "nodeType": "ElementaryTypeName",
690
- "src": "276:7:1",
691
- "stateMutability": "nonpayable",
692
- "typeDescriptions": {
693
- "typeIdentifier": "t_address",
694
- "typeString": "address"
695
- }
696
- },
697
- "value": null,
698
- "visibility": "internal"
699
- }
700
- ],
701
- "src": "275:9:1"
702
- },
703
- "scope": 391,
704
- "src": "236:49:1",
705
- "stateMutability": "view",
706
- "virtual": false,
707
- "visibility": "external"
708
- },
709
- {
710
- "body": null,
711
- "documentation": null,
712
- "functionSelector": "2eb4a7ab",
713
- "id": 363,
714
- "implemented": false,
715
- "kind": "function",
716
- "modifiers": [],
717
- "name": "merkleRoot",
718
- "nodeType": "FunctionDefinition",
719
- "overrides": null,
720
- "parameters": {
721
- "id": 359,
722
- "nodeType": "ParameterList",
723
- "parameters": [],
724
- "src": "407:2:1"
725
- },
726
- "returnParameters": {
727
- "id": 362,
728
- "nodeType": "ParameterList",
729
- "parameters": [
730
- {
731
- "constant": false,
732
- "id": 361,
733
- "mutability": "mutable",
734
- "name": "",
735
- "nodeType": "VariableDeclaration",
736
- "overrides": null,
737
- "scope": 363,
738
- "src": "433:7:1",
739
- "stateVariable": false,
740
- "storageLocation": "default",
741
- "typeDescriptions": {
742
- "typeIdentifier": "t_bytes32",
743
- "typeString": "bytes32"
744
- },
745
- "typeName": {
746
- "id": 360,
747
- "name": "bytes32",
748
- "nodeType": "ElementaryTypeName",
749
- "src": "433:7:1",
750
- "typeDescriptions": {
751
- "typeIdentifier": "t_bytes32",
752
- "typeString": "bytes32"
753
- }
754
- },
755
- "value": null,
756
- "visibility": "internal"
757
- }
758
- ],
759
- "src": "432:9:1"
760
- },
761
- "scope": 391,
762
- "src": "388:54:1",
763
- "stateMutability": "view",
764
- "virtual": false,
765
- "visibility": "external"
766
- },
767
- {
768
- "body": null,
769
- "documentation": null,
770
- "functionSelector": "9e34070f",
771
- "id": 370,
772
- "implemented": false,
773
- "kind": "function",
774
- "modifiers": [],
775
- "name": "isClaimed",
776
- "nodeType": "FunctionDefinition",
777
- "overrides": null,
778
- "parameters": {
779
- "id": 366,
780
- "nodeType": "ParameterList",
781
- "parameters": [
782
- {
783
- "constant": false,
784
- "id": 365,
785
- "mutability": "mutable",
786
- "name": "index",
787
- "nodeType": "VariableDeclaration",
788
- "overrides": null,
789
- "scope": 370,
790
- "src": "524:13:1",
791
- "stateVariable": false,
792
- "storageLocation": "default",
793
- "typeDescriptions": {
794
- "typeIdentifier": "t_uint256",
795
- "typeString": "uint256"
796
- },
797
- "typeName": {
798
- "id": 364,
799
- "name": "uint256",
800
- "nodeType": "ElementaryTypeName",
801
- "src": "524:7:1",
802
- "typeDescriptions": {
803
- "typeIdentifier": "t_uint256",
804
- "typeString": "uint256"
805
- }
806
- },
807
- "value": null,
808
- "visibility": "internal"
809
- }
810
- ],
811
- "src": "523:15:1"
812
- },
813
- "returnParameters": {
814
- "id": 369,
815
- "nodeType": "ParameterList",
816
- "parameters": [
817
- {
818
- "constant": false,
819
- "id": 368,
820
- "mutability": "mutable",
821
- "name": "",
822
- "nodeType": "VariableDeclaration",
823
- "overrides": null,
824
- "scope": 370,
825
- "src": "562:4:1",
826
- "stateVariable": false,
827
- "storageLocation": "default",
828
- "typeDescriptions": {
829
- "typeIdentifier": "t_bool",
830
- "typeString": "bool"
831
- },
832
- "typeName": {
833
- "id": 367,
834
- "name": "bool",
835
- "nodeType": "ElementaryTypeName",
836
- "src": "562:4:1",
837
- "typeDescriptions": {
838
- "typeIdentifier": "t_bool",
839
- "typeString": "bool"
840
- }
841
- },
842
- "value": null,
843
- "visibility": "internal"
844
- }
845
- ],
846
- "src": "561:6:1"
847
- },
848
- "scope": 391,
849
- "src": "505:63:1",
850
- "stateMutability": "view",
851
- "virtual": false,
852
- "visibility": "external"
853
- },
854
- {
855
- "body": null,
856
- "documentation": null,
857
- "functionSelector": "2e7ba6ef",
858
- "id": 382,
859
- "implemented": false,
860
- "kind": "function",
861
- "modifiers": [],
862
- "name": "claim",
863
- "nodeType": "FunctionDefinition",
864
- "overrides": null,
865
- "parameters": {
866
- "id": 380,
867
- "nodeType": "ParameterList",
868
- "parameters": [
869
- {
870
- "constant": false,
871
- "id": 372,
872
- "mutability": "mutable",
873
- "name": "index",
874
- "nodeType": "VariableDeclaration",
875
- "overrides": null,
876
- "scope": 382,
877
- "src": "688:13:1",
878
- "stateVariable": false,
879
- "storageLocation": "default",
880
- "typeDescriptions": {
881
- "typeIdentifier": "t_uint256",
882
- "typeString": "uint256"
883
- },
884
- "typeName": {
885
- "id": 371,
886
- "name": "uint256",
887
- "nodeType": "ElementaryTypeName",
888
- "src": "688:7:1",
889
- "typeDescriptions": {
890
- "typeIdentifier": "t_uint256",
891
- "typeString": "uint256"
892
- }
893
- },
894
- "value": null,
895
- "visibility": "internal"
896
- },
897
- {
898
- "constant": false,
899
- "id": 374,
900
- "mutability": "mutable",
901
- "name": "account",
902
- "nodeType": "VariableDeclaration",
903
- "overrides": null,
904
- "scope": 382,
905
- "src": "703:15:1",
906
- "stateVariable": false,
907
- "storageLocation": "default",
908
- "typeDescriptions": {
909
- "typeIdentifier": "t_address",
910
- "typeString": "address"
911
- },
912
- "typeName": {
913
- "id": 373,
914
- "name": "address",
915
- "nodeType": "ElementaryTypeName",
916
- "src": "703:7:1",
917
- "stateMutability": "nonpayable",
918
- "typeDescriptions": {
919
- "typeIdentifier": "t_address",
920
- "typeString": "address"
921
- }
922
- },
923
- "value": null,
924
- "visibility": "internal"
925
- },
926
- {
927
- "constant": false,
928
- "id": 376,
929
- "mutability": "mutable",
930
- "name": "amount",
931
- "nodeType": "VariableDeclaration",
932
- "overrides": null,
933
- "scope": 382,
934
- "src": "720:14:1",
935
- "stateVariable": false,
936
- "storageLocation": "default",
937
- "typeDescriptions": {
938
- "typeIdentifier": "t_uint256",
939
- "typeString": "uint256"
940
- },
941
- "typeName": {
942
- "id": 375,
943
- "name": "uint256",
944
- "nodeType": "ElementaryTypeName",
945
- "src": "720:7:1",
946
- "typeDescriptions": {
947
- "typeIdentifier": "t_uint256",
948
- "typeString": "uint256"
949
- }
950
- },
951
- "value": null,
952
- "visibility": "internal"
953
- },
954
- {
955
- "constant": false,
956
- "id": 379,
957
- "mutability": "mutable",
958
- "name": "merkleProof",
959
- "nodeType": "VariableDeclaration",
960
- "overrides": null,
961
- "scope": 382,
962
- "src": "736:30:1",
963
- "stateVariable": false,
964
- "storageLocation": "calldata",
965
- "typeDescriptions": {
966
- "typeIdentifier": "t_array$_t_bytes32_$dyn_calldata_ptr",
967
- "typeString": "bytes32[]"
968
- },
969
- "typeName": {
970
- "baseType": {
971
- "id": 377,
972
- "name": "bytes32",
973
- "nodeType": "ElementaryTypeName",
974
- "src": "736:7:1",
975
- "typeDescriptions": {
976
- "typeIdentifier": "t_bytes32",
977
- "typeString": "bytes32"
978
- }
979
- },
980
- "id": 378,
981
- "length": null,
982
- "nodeType": "ArrayTypeName",
983
- "src": "736:9:1",
984
- "typeDescriptions": {
985
- "typeIdentifier": "t_array$_t_bytes32_$dyn_storage_ptr",
986
- "typeString": "bytes32[]"
987
- }
988
- },
989
- "value": null,
990
- "visibility": "internal"
991
- }
992
- ],
993
- "src": "687:80:1"
994
- },
995
- "returnParameters": {
996
- "id": 381,
997
- "nodeType": "ParameterList",
998
- "parameters": [],
999
- "src": "776:0:1"
1000
- },
1001
- "scope": 391,
1002
- "src": "673:104:1",
1003
- "stateMutability": "nonpayable",
1004
- "virtual": false,
1005
- "visibility": "external"
1006
- },
1007
- {
1008
- "anonymous": false,
1009
- "documentation": null,
1010
- "id": 390,
1011
- "name": "Claimed",
1012
- "nodeType": "EventDefinition",
1013
- "parameters": {
1014
- "id": 389,
1015
- "nodeType": "ParameterList",
1016
- "parameters": [
1017
- {
1018
- "constant": false,
1019
- "id": 384,
1020
- "indexed": false,
1021
- "mutability": "mutable",
1022
- "name": "index",
1023
- "nodeType": "VariableDeclaration",
1024
- "overrides": null,
1025
- "scope": 390,
1026
- "src": "864:13:1",
1027
- "stateVariable": false,
1028
- "storageLocation": "default",
1029
- "typeDescriptions": {
1030
- "typeIdentifier": "t_uint256",
1031
- "typeString": "uint256"
1032
- },
1033
- "typeName": {
1034
- "id": 383,
1035
- "name": "uint256",
1036
- "nodeType": "ElementaryTypeName",
1037
- "src": "864:7:1",
1038
- "typeDescriptions": {
1039
- "typeIdentifier": "t_uint256",
1040
- "typeString": "uint256"
1041
- }
1042
- },
1043
- "value": null,
1044
- "visibility": "internal"
1045
- },
1046
- {
1047
- "constant": false,
1048
- "id": 386,
1049
- "indexed": false,
1050
- "mutability": "mutable",
1051
- "name": "account",
1052
- "nodeType": "VariableDeclaration",
1053
- "overrides": null,
1054
- "scope": 390,
1055
- "src": "879:15:1",
1056
- "stateVariable": false,
1057
- "storageLocation": "default",
1058
- "typeDescriptions": {
1059
- "typeIdentifier": "t_address",
1060
- "typeString": "address"
1061
- },
1062
- "typeName": {
1063
- "id": 385,
1064
- "name": "address",
1065
- "nodeType": "ElementaryTypeName",
1066
- "src": "879:7:1",
1067
- "stateMutability": "nonpayable",
1068
- "typeDescriptions": {
1069
- "typeIdentifier": "t_address",
1070
- "typeString": "address"
1071
- }
1072
- },
1073
- "value": null,
1074
- "visibility": "internal"
1075
- },
1076
- {
1077
- "constant": false,
1078
- "id": 388,
1079
- "indexed": false,
1080
- "mutability": "mutable",
1081
- "name": "amount",
1082
- "nodeType": "VariableDeclaration",
1083
- "overrides": null,
1084
- "scope": 390,
1085
- "src": "896:14:1",
1086
- "stateVariable": false,
1087
- "storageLocation": "default",
1088
- "typeDescriptions": {
1089
- "typeIdentifier": "t_uint256",
1090
- "typeString": "uint256"
1091
- },
1092
- "typeName": {
1093
- "id": 387,
1094
- "name": "uint256",
1095
- "nodeType": "ElementaryTypeName",
1096
- "src": "896:7:1",
1097
- "typeDescriptions": {
1098
- "typeIdentifier": "t_uint256",
1099
- "typeString": "uint256"
1100
- }
1101
- },
1102
- "value": null,
1103
- "visibility": "internal"
1104
- }
1105
- ],
1106
- "src": "863:48:1"
1107
- },
1108
- "src": "850:62:1"
1109
- }
1110
- ],
1111
- "scope": 392,
1112
- "src": "131:783:1"
1113
- }
1114
- ],
1115
- "src": "39:875:1"
1116
- },
1117
- "compiler": {
1118
- "name": "solc",
1119
- "version": "0.6.11+commit.5ef660b1.Emscripten.clang"
1120
- },
1121
- "networks": {},
1122
- "schemaVersion": "3.3.2",
1123
- "updatedAt": "2021-03-15T18:03:06.218Z",
1124
- "devdoc": {
1125
- "kind": "dev",
1126
- "methods": {},
1127
- "version": 1
1128
- },
1129
- "userdoc": {
1130
- "kind": "user",
1131
- "methods": {},
1132
- "version": 1
1133
- }
1134
- }
1
+ {
2
+ "contractName": "IMerkleDistributor",
3
+ "abi": [
4
+ {
5
+ "anonymous": false,
6
+ "inputs": [
7
+ {
8
+ "indexed": false,
9
+ "internalType": "uint256",
10
+ "name": "index",
11
+ "type": "uint256"
12
+ },
13
+ {
14
+ "indexed": false,
15
+ "internalType": "address",
16
+ "name": "account",
17
+ "type": "address"
18
+ },
19
+ {
20
+ "indexed": false,
21
+ "internalType": "uint256",
22
+ "name": "amount",
23
+ "type": "uint256"
24
+ }
25
+ ],
26
+ "name": "Claimed",
27
+ "type": "event"
28
+ },
29
+ {
30
+ "inputs": [],
31
+ "name": "token",
32
+ "outputs": [
33
+ {
34
+ "internalType": "address",
35
+ "name": "",
36
+ "type": "address"
37
+ }
38
+ ],
39
+ "stateMutability": "view",
40
+ "type": "function"
41
+ },
42
+ {
43
+ "inputs": [],
44
+ "name": "merkleRoot",
45
+ "outputs": [
46
+ {
47
+ "internalType": "bytes32",
48
+ "name": "",
49
+ "type": "bytes32"
50
+ }
51
+ ],
52
+ "stateMutability": "view",
53
+ "type": "function"
54
+ },
55
+ {
56
+ "inputs": [
57
+ {
58
+ "internalType": "uint256",
59
+ "name": "index",
60
+ "type": "uint256"
61
+ }
62
+ ],
63
+ "name": "isClaimed",
64
+ "outputs": [
65
+ {
66
+ "internalType": "bool",
67
+ "name": "",
68
+ "type": "bool"
69
+ }
70
+ ],
71
+ "stateMutability": "view",
72
+ "type": "function"
73
+ },
74
+ {
75
+ "inputs": [
76
+ {
77
+ "internalType": "uint256",
78
+ "name": "index",
79
+ "type": "uint256"
80
+ },
81
+ {
82
+ "internalType": "address",
83
+ "name": "account",
84
+ "type": "address"
85
+ },
86
+ {
87
+ "internalType": "uint256",
88
+ "name": "amount",
89
+ "type": "uint256"
90
+ },
91
+ {
92
+ "internalType": "bytes32[]",
93
+ "name": "merkleProof",
94
+ "type": "bytes32[]"
95
+ }
96
+ ],
97
+ "name": "claim",
98
+ "outputs": [],
99
+ "stateMutability": "nonpayable",
100
+ "type": "function"
101
+ }
102
+ ],
103
+ "metadata": "{\"compiler\":{\"version\":\"0.6.11+commit.5ef660b1\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Claimed\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"bytes32[]\",\"name\":\"merkleProof\",\"type\":\"bytes32[]\"}],\"name\":\"claim\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"isClaimed\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"merkleRoot\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"token\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"/C/Users/simor/Desktop/merkle-distributor-master/contracts/interfaces/IMerkleDistributor.sol\":\"IMerkleDistributor\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":999999},\"remappings\":[]},\"sources\":{\"/C/Users/simor/Desktop/merkle-distributor-master/contracts/interfaces/IMerkleDistributor.sol\":{\"keccak256\":\"0x8cd6f78943994972a4c670ab91894a82bd9ed629c9381db6ca9d0483fe8b698f\",\"license\":\"UNLICENSED\",\"urls\":[\"bzz-raw://621484f0c5e702f7fb421c968bda5cd8218c3915cc6d79956c2d68fb0887f280\",\"dweb:/ipfs/QmXftsLwy64Z4rFn1WoXY5cj1iuqPctA8HoeraLb3Wd4ES\"]}},\"version\":1}",
104
+ "bytecode": "0x",
105
+ "deployedBytecode": "0x",
106
+ "immutableReferences": {},
107
+ "sourceMap": "",
108
+ "deployedSourceMap": "",
109
+ "source": "// SPDX-License-Identifier: UNLICENSED\npragma solidity >=0.5.0;\n\n// Allows anyone to claim a token if they exist in a merkle root.\ninterface IMerkleDistributor {\n // Returns the address of the token distributed by this contract.\n function token() external view returns (address);\n // Returns the merkle root of the merkle tree containing account balances available to claim.\n function merkleRoot() external view returns (bytes32);\n // Returns true if the index has been marked claimed.\n function isClaimed(uint256 index) external view returns (bool);\n // Claim the given amount of the token to the given address. Reverts if the inputs are invalid.\n function claim(uint256 index, address account, uint256 amount, bytes32[] calldata merkleProof) external;\n\n // This event is triggered whenever a call to #claim succeeds.\n event Claimed(uint256 index, address account, uint256 amount);\n}",
110
+ "sourcePath": "C:/Users/simor/Desktop/merkle-distributor-master/contracts/interfaces/IMerkleDistributor.sol",
111
+ "ast": {
112
+ "absolutePath": "/C/Users/simor/Desktop/merkle-distributor-master/contracts/interfaces/IMerkleDistributor.sol",
113
+ "exportedSymbols": {
114
+ "IMerkleDistributor": [
115
+ 391
116
+ ]
117
+ },
118
+ "id": 392,
119
+ "license": "UNLICENSED",
120
+ "nodeType": "SourceUnit",
121
+ "nodes": [
122
+ {
123
+ "id": 353,
124
+ "literals": [
125
+ "solidity",
126
+ ">=",
127
+ "0.5",
128
+ ".0"
129
+ ],
130
+ "nodeType": "PragmaDirective",
131
+ "src": "39:24:1"
132
+ },
133
+ {
134
+ "abstract": false,
135
+ "baseContracts": [],
136
+ "contractDependencies": [],
137
+ "contractKind": "interface",
138
+ "documentation": null,
139
+ "fullyImplemented": false,
140
+ "id": 391,
141
+ "linearizedBaseContracts": [
142
+ 391
143
+ ],
144
+ "name": "IMerkleDistributor",
145
+ "nodeType": "ContractDefinition",
146
+ "nodes": [
147
+ {
148
+ "body": null,
149
+ "documentation": null,
150
+ "functionSelector": "fc0c546a",
151
+ "id": 358,
152
+ "implemented": false,
153
+ "kind": "function",
154
+ "modifiers": [],
155
+ "name": "token",
156
+ "nodeType": "FunctionDefinition",
157
+ "overrides": null,
158
+ "parameters": {
159
+ "id": 354,
160
+ "nodeType": "ParameterList",
161
+ "parameters": [],
162
+ "src": "250:2:1"
163
+ },
164
+ "returnParameters": {
165
+ "id": 357,
166
+ "nodeType": "ParameterList",
167
+ "parameters": [
168
+ {
169
+ "constant": false,
170
+ "id": 356,
171
+ "mutability": "mutable",
172
+ "name": "",
173
+ "nodeType": "VariableDeclaration",
174
+ "overrides": null,
175
+ "scope": 358,
176
+ "src": "276:7:1",
177
+ "stateVariable": false,
178
+ "storageLocation": "default",
179
+ "typeDescriptions": {
180
+ "typeIdentifier": "t_address",
181
+ "typeString": "address"
182
+ },
183
+ "typeName": {
184
+ "id": 355,
185
+ "name": "address",
186
+ "nodeType": "ElementaryTypeName",
187
+ "src": "276:7:1",
188
+ "stateMutability": "nonpayable",
189
+ "typeDescriptions": {
190
+ "typeIdentifier": "t_address",
191
+ "typeString": "address"
192
+ }
193
+ },
194
+ "value": null,
195
+ "visibility": "internal"
196
+ }
197
+ ],
198
+ "src": "275:9:1"
199
+ },
200
+ "scope": 391,
201
+ "src": "236:49:1",
202
+ "stateMutability": "view",
203
+ "virtual": false,
204
+ "visibility": "external"
205
+ },
206
+ {
207
+ "body": null,
208
+ "documentation": null,
209
+ "functionSelector": "2eb4a7ab",
210
+ "id": 363,
211
+ "implemented": false,
212
+ "kind": "function",
213
+ "modifiers": [],
214
+ "name": "merkleRoot",
215
+ "nodeType": "FunctionDefinition",
216
+ "overrides": null,
217
+ "parameters": {
218
+ "id": 359,
219
+ "nodeType": "ParameterList",
220
+ "parameters": [],
221
+ "src": "407:2:1"
222
+ },
223
+ "returnParameters": {
224
+ "id": 362,
225
+ "nodeType": "ParameterList",
226
+ "parameters": [
227
+ {
228
+ "constant": false,
229
+ "id": 361,
230
+ "mutability": "mutable",
231
+ "name": "",
232
+ "nodeType": "VariableDeclaration",
233
+ "overrides": null,
234
+ "scope": 363,
235
+ "src": "433:7:1",
236
+ "stateVariable": false,
237
+ "storageLocation": "default",
238
+ "typeDescriptions": {
239
+ "typeIdentifier": "t_bytes32",
240
+ "typeString": "bytes32"
241
+ },
242
+ "typeName": {
243
+ "id": 360,
244
+ "name": "bytes32",
245
+ "nodeType": "ElementaryTypeName",
246
+ "src": "433:7:1",
247
+ "typeDescriptions": {
248
+ "typeIdentifier": "t_bytes32",
249
+ "typeString": "bytes32"
250
+ }
251
+ },
252
+ "value": null,
253
+ "visibility": "internal"
254
+ }
255
+ ],
256
+ "src": "432:9:1"
257
+ },
258
+ "scope": 391,
259
+ "src": "388:54:1",
260
+ "stateMutability": "view",
261
+ "virtual": false,
262
+ "visibility": "external"
263
+ },
264
+ {
265
+ "body": null,
266
+ "documentation": null,
267
+ "functionSelector": "9e34070f",
268
+ "id": 370,
269
+ "implemented": false,
270
+ "kind": "function",
271
+ "modifiers": [],
272
+ "name": "isClaimed",
273
+ "nodeType": "FunctionDefinition",
274
+ "overrides": null,
275
+ "parameters": {
276
+ "id": 366,
277
+ "nodeType": "ParameterList",
278
+ "parameters": [
279
+ {
280
+ "constant": false,
281
+ "id": 365,
282
+ "mutability": "mutable",
283
+ "name": "index",
284
+ "nodeType": "VariableDeclaration",
285
+ "overrides": null,
286
+ "scope": 370,
287
+ "src": "524:13:1",
288
+ "stateVariable": false,
289
+ "storageLocation": "default",
290
+ "typeDescriptions": {
291
+ "typeIdentifier": "t_uint256",
292
+ "typeString": "uint256"
293
+ },
294
+ "typeName": {
295
+ "id": 364,
296
+ "name": "uint256",
297
+ "nodeType": "ElementaryTypeName",
298
+ "src": "524:7:1",
299
+ "typeDescriptions": {
300
+ "typeIdentifier": "t_uint256",
301
+ "typeString": "uint256"
302
+ }
303
+ },
304
+ "value": null,
305
+ "visibility": "internal"
306
+ }
307
+ ],
308
+ "src": "523:15:1"
309
+ },
310
+ "returnParameters": {
311
+ "id": 369,
312
+ "nodeType": "ParameterList",
313
+ "parameters": [
314
+ {
315
+ "constant": false,
316
+ "id": 368,
317
+ "mutability": "mutable",
318
+ "name": "",
319
+ "nodeType": "VariableDeclaration",
320
+ "overrides": null,
321
+ "scope": 370,
322
+ "src": "562:4:1",
323
+ "stateVariable": false,
324
+ "storageLocation": "default",
325
+ "typeDescriptions": {
326
+ "typeIdentifier": "t_bool",
327
+ "typeString": "bool"
328
+ },
329
+ "typeName": {
330
+ "id": 367,
331
+ "name": "bool",
332
+ "nodeType": "ElementaryTypeName",
333
+ "src": "562:4:1",
334
+ "typeDescriptions": {
335
+ "typeIdentifier": "t_bool",
336
+ "typeString": "bool"
337
+ }
338
+ },
339
+ "value": null,
340
+ "visibility": "internal"
341
+ }
342
+ ],
343
+ "src": "561:6:1"
344
+ },
345
+ "scope": 391,
346
+ "src": "505:63:1",
347
+ "stateMutability": "view",
348
+ "virtual": false,
349
+ "visibility": "external"
350
+ },
351
+ {
352
+ "body": null,
353
+ "documentation": null,
354
+ "functionSelector": "2e7ba6ef",
355
+ "id": 382,
356
+ "implemented": false,
357
+ "kind": "function",
358
+ "modifiers": [],
359
+ "name": "claim",
360
+ "nodeType": "FunctionDefinition",
361
+ "overrides": null,
362
+ "parameters": {
363
+ "id": 380,
364
+ "nodeType": "ParameterList",
365
+ "parameters": [
366
+ {
367
+ "constant": false,
368
+ "id": 372,
369
+ "mutability": "mutable",
370
+ "name": "index",
371
+ "nodeType": "VariableDeclaration",
372
+ "overrides": null,
373
+ "scope": 382,
374
+ "src": "688:13:1",
375
+ "stateVariable": false,
376
+ "storageLocation": "default",
377
+ "typeDescriptions": {
378
+ "typeIdentifier": "t_uint256",
379
+ "typeString": "uint256"
380
+ },
381
+ "typeName": {
382
+ "id": 371,
383
+ "name": "uint256",
384
+ "nodeType": "ElementaryTypeName",
385
+ "src": "688:7:1",
386
+ "typeDescriptions": {
387
+ "typeIdentifier": "t_uint256",
388
+ "typeString": "uint256"
389
+ }
390
+ },
391
+ "value": null,
392
+ "visibility": "internal"
393
+ },
394
+ {
395
+ "constant": false,
396
+ "id": 374,
397
+ "mutability": "mutable",
398
+ "name": "account",
399
+ "nodeType": "VariableDeclaration",
400
+ "overrides": null,
401
+ "scope": 382,
402
+ "src": "703:15:1",
403
+ "stateVariable": false,
404
+ "storageLocation": "default",
405
+ "typeDescriptions": {
406
+ "typeIdentifier": "t_address",
407
+ "typeString": "address"
408
+ },
409
+ "typeName": {
410
+ "id": 373,
411
+ "name": "address",
412
+ "nodeType": "ElementaryTypeName",
413
+ "src": "703:7:1",
414
+ "stateMutability": "nonpayable",
415
+ "typeDescriptions": {
416
+ "typeIdentifier": "t_address",
417
+ "typeString": "address"
418
+ }
419
+ },
420
+ "value": null,
421
+ "visibility": "internal"
422
+ },
423
+ {
424
+ "constant": false,
425
+ "id": 376,
426
+ "mutability": "mutable",
427
+ "name": "amount",
428
+ "nodeType": "VariableDeclaration",
429
+ "overrides": null,
430
+ "scope": 382,
431
+ "src": "720:14:1",
432
+ "stateVariable": false,
433
+ "storageLocation": "default",
434
+ "typeDescriptions": {
435
+ "typeIdentifier": "t_uint256",
436
+ "typeString": "uint256"
437
+ },
438
+ "typeName": {
439
+ "id": 375,
440
+ "name": "uint256",
441
+ "nodeType": "ElementaryTypeName",
442
+ "src": "720:7:1",
443
+ "typeDescriptions": {
444
+ "typeIdentifier": "t_uint256",
445
+ "typeString": "uint256"
446
+ }
447
+ },
448
+ "value": null,
449
+ "visibility": "internal"
450
+ },
451
+ {
452
+ "constant": false,
453
+ "id": 379,
454
+ "mutability": "mutable",
455
+ "name": "merkleProof",
456
+ "nodeType": "VariableDeclaration",
457
+ "overrides": null,
458
+ "scope": 382,
459
+ "src": "736:30:1",
460
+ "stateVariable": false,
461
+ "storageLocation": "calldata",
462
+ "typeDescriptions": {
463
+ "typeIdentifier": "t_array$_t_bytes32_$dyn_calldata_ptr",
464
+ "typeString": "bytes32[]"
465
+ },
466
+ "typeName": {
467
+ "baseType": {
468
+ "id": 377,
469
+ "name": "bytes32",
470
+ "nodeType": "ElementaryTypeName",
471
+ "src": "736:7:1",
472
+ "typeDescriptions": {
473
+ "typeIdentifier": "t_bytes32",
474
+ "typeString": "bytes32"
475
+ }
476
+ },
477
+ "id": 378,
478
+ "length": null,
479
+ "nodeType": "ArrayTypeName",
480
+ "src": "736:9:1",
481
+ "typeDescriptions": {
482
+ "typeIdentifier": "t_array$_t_bytes32_$dyn_storage_ptr",
483
+ "typeString": "bytes32[]"
484
+ }
485
+ },
486
+ "value": null,
487
+ "visibility": "internal"
488
+ }
489
+ ],
490
+ "src": "687:80:1"
491
+ },
492
+ "returnParameters": {
493
+ "id": 381,
494
+ "nodeType": "ParameterList",
495
+ "parameters": [],
496
+ "src": "776:0:1"
497
+ },
498
+ "scope": 391,
499
+ "src": "673:104:1",
500
+ "stateMutability": "nonpayable",
501
+ "virtual": false,
502
+ "visibility": "external"
503
+ },
504
+ {
505
+ "anonymous": false,
506
+ "documentation": null,
507
+ "id": 390,
508
+ "name": "Claimed",
509
+ "nodeType": "EventDefinition",
510
+ "parameters": {
511
+ "id": 389,
512
+ "nodeType": "ParameterList",
513
+ "parameters": [
514
+ {
515
+ "constant": false,
516
+ "id": 384,
517
+ "indexed": false,
518
+ "mutability": "mutable",
519
+ "name": "index",
520
+ "nodeType": "VariableDeclaration",
521
+ "overrides": null,
522
+ "scope": 390,
523
+ "src": "864:13:1",
524
+ "stateVariable": false,
525
+ "storageLocation": "default",
526
+ "typeDescriptions": {
527
+ "typeIdentifier": "t_uint256",
528
+ "typeString": "uint256"
529
+ },
530
+ "typeName": {
531
+ "id": 383,
532
+ "name": "uint256",
533
+ "nodeType": "ElementaryTypeName",
534
+ "src": "864:7:1",
535
+ "typeDescriptions": {
536
+ "typeIdentifier": "t_uint256",
537
+ "typeString": "uint256"
538
+ }
539
+ },
540
+ "value": null,
541
+ "visibility": "internal"
542
+ },
543
+ {
544
+ "constant": false,
545
+ "id": 386,
546
+ "indexed": false,
547
+ "mutability": "mutable",
548
+ "name": "account",
549
+ "nodeType": "VariableDeclaration",
550
+ "overrides": null,
551
+ "scope": 390,
552
+ "src": "879:15:1",
553
+ "stateVariable": false,
554
+ "storageLocation": "default",
555
+ "typeDescriptions": {
556
+ "typeIdentifier": "t_address",
557
+ "typeString": "address"
558
+ },
559
+ "typeName": {
560
+ "id": 385,
561
+ "name": "address",
562
+ "nodeType": "ElementaryTypeName",
563
+ "src": "879:7:1",
564
+ "stateMutability": "nonpayable",
565
+ "typeDescriptions": {
566
+ "typeIdentifier": "t_address",
567
+ "typeString": "address"
568
+ }
569
+ },
570
+ "value": null,
571
+ "visibility": "internal"
572
+ },
573
+ {
574
+ "constant": false,
575
+ "id": 388,
576
+ "indexed": false,
577
+ "mutability": "mutable",
578
+ "name": "amount",
579
+ "nodeType": "VariableDeclaration",
580
+ "overrides": null,
581
+ "scope": 390,
582
+ "src": "896:14:1",
583
+ "stateVariable": false,
584
+ "storageLocation": "default",
585
+ "typeDescriptions": {
586
+ "typeIdentifier": "t_uint256",
587
+ "typeString": "uint256"
588
+ },
589
+ "typeName": {
590
+ "id": 387,
591
+ "name": "uint256",
592
+ "nodeType": "ElementaryTypeName",
593
+ "src": "896:7:1",
594
+ "typeDescriptions": {
595
+ "typeIdentifier": "t_uint256",
596
+ "typeString": "uint256"
597
+ }
598
+ },
599
+ "value": null,
600
+ "visibility": "internal"
601
+ }
602
+ ],
603
+ "src": "863:48:1"
604
+ },
605
+ "src": "850:62:1"
606
+ }
607
+ ],
608
+ "scope": 392,
609
+ "src": "131:783:1"
610
+ }
611
+ ],
612
+ "src": "39:875:1"
613
+ },
614
+ "legacyAST": {
615
+ "absolutePath": "/C/Users/simor/Desktop/merkle-distributor-master/contracts/interfaces/IMerkleDistributor.sol",
616
+ "exportedSymbols": {
617
+ "IMerkleDistributor": [
618
+ 391
619
+ ]
620
+ },
621
+ "id": 392,
622
+ "license": "UNLICENSED",
623
+ "nodeType": "SourceUnit",
624
+ "nodes": [
625
+ {
626
+ "id": 353,
627
+ "literals": [
628
+ "solidity",
629
+ ">=",
630
+ "0.5",
631
+ ".0"
632
+ ],
633
+ "nodeType": "PragmaDirective",
634
+ "src": "39:24:1"
635
+ },
636
+ {
637
+ "abstract": false,
638
+ "baseContracts": [],
639
+ "contractDependencies": [],
640
+ "contractKind": "interface",
641
+ "documentation": null,
642
+ "fullyImplemented": false,
643
+ "id": 391,
644
+ "linearizedBaseContracts": [
645
+ 391
646
+ ],
647
+ "name": "IMerkleDistributor",
648
+ "nodeType": "ContractDefinition",
649
+ "nodes": [
650
+ {
651
+ "body": null,
652
+ "documentation": null,
653
+ "functionSelector": "fc0c546a",
654
+ "id": 358,
655
+ "implemented": false,
656
+ "kind": "function",
657
+ "modifiers": [],
658
+ "name": "token",
659
+ "nodeType": "FunctionDefinition",
660
+ "overrides": null,
661
+ "parameters": {
662
+ "id": 354,
663
+ "nodeType": "ParameterList",
664
+ "parameters": [],
665
+ "src": "250:2:1"
666
+ },
667
+ "returnParameters": {
668
+ "id": 357,
669
+ "nodeType": "ParameterList",
670
+ "parameters": [
671
+ {
672
+ "constant": false,
673
+ "id": 356,
674
+ "mutability": "mutable",
675
+ "name": "",
676
+ "nodeType": "VariableDeclaration",
677
+ "overrides": null,
678
+ "scope": 358,
679
+ "src": "276:7:1",
680
+ "stateVariable": false,
681
+ "storageLocation": "default",
682
+ "typeDescriptions": {
683
+ "typeIdentifier": "t_address",
684
+ "typeString": "address"
685
+ },
686
+ "typeName": {
687
+ "id": 355,
688
+ "name": "address",
689
+ "nodeType": "ElementaryTypeName",
690
+ "src": "276:7:1",
691
+ "stateMutability": "nonpayable",
692
+ "typeDescriptions": {
693
+ "typeIdentifier": "t_address",
694
+ "typeString": "address"
695
+ }
696
+ },
697
+ "value": null,
698
+ "visibility": "internal"
699
+ }
700
+ ],
701
+ "src": "275:9:1"
702
+ },
703
+ "scope": 391,
704
+ "src": "236:49:1",
705
+ "stateMutability": "view",
706
+ "virtual": false,
707
+ "visibility": "external"
708
+ },
709
+ {
710
+ "body": null,
711
+ "documentation": null,
712
+ "functionSelector": "2eb4a7ab",
713
+ "id": 363,
714
+ "implemented": false,
715
+ "kind": "function",
716
+ "modifiers": [],
717
+ "name": "merkleRoot",
718
+ "nodeType": "FunctionDefinition",
719
+ "overrides": null,
720
+ "parameters": {
721
+ "id": 359,
722
+ "nodeType": "ParameterList",
723
+ "parameters": [],
724
+ "src": "407:2:1"
725
+ },
726
+ "returnParameters": {
727
+ "id": 362,
728
+ "nodeType": "ParameterList",
729
+ "parameters": [
730
+ {
731
+ "constant": false,
732
+ "id": 361,
733
+ "mutability": "mutable",
734
+ "name": "",
735
+ "nodeType": "VariableDeclaration",
736
+ "overrides": null,
737
+ "scope": 363,
738
+ "src": "433:7:1",
739
+ "stateVariable": false,
740
+ "storageLocation": "default",
741
+ "typeDescriptions": {
742
+ "typeIdentifier": "t_bytes32",
743
+ "typeString": "bytes32"
744
+ },
745
+ "typeName": {
746
+ "id": 360,
747
+ "name": "bytes32",
748
+ "nodeType": "ElementaryTypeName",
749
+ "src": "433:7:1",
750
+ "typeDescriptions": {
751
+ "typeIdentifier": "t_bytes32",
752
+ "typeString": "bytes32"
753
+ }
754
+ },
755
+ "value": null,
756
+ "visibility": "internal"
757
+ }
758
+ ],
759
+ "src": "432:9:1"
760
+ },
761
+ "scope": 391,
762
+ "src": "388:54:1",
763
+ "stateMutability": "view",
764
+ "virtual": false,
765
+ "visibility": "external"
766
+ },
767
+ {
768
+ "body": null,
769
+ "documentation": null,
770
+ "functionSelector": "9e34070f",
771
+ "id": 370,
772
+ "implemented": false,
773
+ "kind": "function",
774
+ "modifiers": [],
775
+ "name": "isClaimed",
776
+ "nodeType": "FunctionDefinition",
777
+ "overrides": null,
778
+ "parameters": {
779
+ "id": 366,
780
+ "nodeType": "ParameterList",
781
+ "parameters": [
782
+ {
783
+ "constant": false,
784
+ "id": 365,
785
+ "mutability": "mutable",
786
+ "name": "index",
787
+ "nodeType": "VariableDeclaration",
788
+ "overrides": null,
789
+ "scope": 370,
790
+ "src": "524:13:1",
791
+ "stateVariable": false,
792
+ "storageLocation": "default",
793
+ "typeDescriptions": {
794
+ "typeIdentifier": "t_uint256",
795
+ "typeString": "uint256"
796
+ },
797
+ "typeName": {
798
+ "id": 364,
799
+ "name": "uint256",
800
+ "nodeType": "ElementaryTypeName",
801
+ "src": "524:7:1",
802
+ "typeDescriptions": {
803
+ "typeIdentifier": "t_uint256",
804
+ "typeString": "uint256"
805
+ }
806
+ },
807
+ "value": null,
808
+ "visibility": "internal"
809
+ }
810
+ ],
811
+ "src": "523:15:1"
812
+ },
813
+ "returnParameters": {
814
+ "id": 369,
815
+ "nodeType": "ParameterList",
816
+ "parameters": [
817
+ {
818
+ "constant": false,
819
+ "id": 368,
820
+ "mutability": "mutable",
821
+ "name": "",
822
+ "nodeType": "VariableDeclaration",
823
+ "overrides": null,
824
+ "scope": 370,
825
+ "src": "562:4:1",
826
+ "stateVariable": false,
827
+ "storageLocation": "default",
828
+ "typeDescriptions": {
829
+ "typeIdentifier": "t_bool",
830
+ "typeString": "bool"
831
+ },
832
+ "typeName": {
833
+ "id": 367,
834
+ "name": "bool",
835
+ "nodeType": "ElementaryTypeName",
836
+ "src": "562:4:1",
837
+ "typeDescriptions": {
838
+ "typeIdentifier": "t_bool",
839
+ "typeString": "bool"
840
+ }
841
+ },
842
+ "value": null,
843
+ "visibility": "internal"
844
+ }
845
+ ],
846
+ "src": "561:6:1"
847
+ },
848
+ "scope": 391,
849
+ "src": "505:63:1",
850
+ "stateMutability": "view",
851
+ "virtual": false,
852
+ "visibility": "external"
853
+ },
854
+ {
855
+ "body": null,
856
+ "documentation": null,
857
+ "functionSelector": "2e7ba6ef",
858
+ "id": 382,
859
+ "implemented": false,
860
+ "kind": "function",
861
+ "modifiers": [],
862
+ "name": "claim",
863
+ "nodeType": "FunctionDefinition",
864
+ "overrides": null,
865
+ "parameters": {
866
+ "id": 380,
867
+ "nodeType": "ParameterList",
868
+ "parameters": [
869
+ {
870
+ "constant": false,
871
+ "id": 372,
872
+ "mutability": "mutable",
873
+ "name": "index",
874
+ "nodeType": "VariableDeclaration",
875
+ "overrides": null,
876
+ "scope": 382,
877
+ "src": "688:13:1",
878
+ "stateVariable": false,
879
+ "storageLocation": "default",
880
+ "typeDescriptions": {
881
+ "typeIdentifier": "t_uint256",
882
+ "typeString": "uint256"
883
+ },
884
+ "typeName": {
885
+ "id": 371,
886
+ "name": "uint256",
887
+ "nodeType": "ElementaryTypeName",
888
+ "src": "688:7:1",
889
+ "typeDescriptions": {
890
+ "typeIdentifier": "t_uint256",
891
+ "typeString": "uint256"
892
+ }
893
+ },
894
+ "value": null,
895
+ "visibility": "internal"
896
+ },
897
+ {
898
+ "constant": false,
899
+ "id": 374,
900
+ "mutability": "mutable",
901
+ "name": "account",
902
+ "nodeType": "VariableDeclaration",
903
+ "overrides": null,
904
+ "scope": 382,
905
+ "src": "703:15:1",
906
+ "stateVariable": false,
907
+ "storageLocation": "default",
908
+ "typeDescriptions": {
909
+ "typeIdentifier": "t_address",
910
+ "typeString": "address"
911
+ },
912
+ "typeName": {
913
+ "id": 373,
914
+ "name": "address",
915
+ "nodeType": "ElementaryTypeName",
916
+ "src": "703:7:1",
917
+ "stateMutability": "nonpayable",
918
+ "typeDescriptions": {
919
+ "typeIdentifier": "t_address",
920
+ "typeString": "address"
921
+ }
922
+ },
923
+ "value": null,
924
+ "visibility": "internal"
925
+ },
926
+ {
927
+ "constant": false,
928
+ "id": 376,
929
+ "mutability": "mutable",
930
+ "name": "amount",
931
+ "nodeType": "VariableDeclaration",
932
+ "overrides": null,
933
+ "scope": 382,
934
+ "src": "720:14:1",
935
+ "stateVariable": false,
936
+ "storageLocation": "default",
937
+ "typeDescriptions": {
938
+ "typeIdentifier": "t_uint256",
939
+ "typeString": "uint256"
940
+ },
941
+ "typeName": {
942
+ "id": 375,
943
+ "name": "uint256",
944
+ "nodeType": "ElementaryTypeName",
945
+ "src": "720:7:1",
946
+ "typeDescriptions": {
947
+ "typeIdentifier": "t_uint256",
948
+ "typeString": "uint256"
949
+ }
950
+ },
951
+ "value": null,
952
+ "visibility": "internal"
953
+ },
954
+ {
955
+ "constant": false,
956
+ "id": 379,
957
+ "mutability": "mutable",
958
+ "name": "merkleProof",
959
+ "nodeType": "VariableDeclaration",
960
+ "overrides": null,
961
+ "scope": 382,
962
+ "src": "736:30:1",
963
+ "stateVariable": false,
964
+ "storageLocation": "calldata",
965
+ "typeDescriptions": {
966
+ "typeIdentifier": "t_array$_t_bytes32_$dyn_calldata_ptr",
967
+ "typeString": "bytes32[]"
968
+ },
969
+ "typeName": {
970
+ "baseType": {
971
+ "id": 377,
972
+ "name": "bytes32",
973
+ "nodeType": "ElementaryTypeName",
974
+ "src": "736:7:1",
975
+ "typeDescriptions": {
976
+ "typeIdentifier": "t_bytes32",
977
+ "typeString": "bytes32"
978
+ }
979
+ },
980
+ "id": 378,
981
+ "length": null,
982
+ "nodeType": "ArrayTypeName",
983
+ "src": "736:9:1",
984
+ "typeDescriptions": {
985
+ "typeIdentifier": "t_array$_t_bytes32_$dyn_storage_ptr",
986
+ "typeString": "bytes32[]"
987
+ }
988
+ },
989
+ "value": null,
990
+ "visibility": "internal"
991
+ }
992
+ ],
993
+ "src": "687:80:1"
994
+ },
995
+ "returnParameters": {
996
+ "id": 381,
997
+ "nodeType": "ParameterList",
998
+ "parameters": [],
999
+ "src": "776:0:1"
1000
+ },
1001
+ "scope": 391,
1002
+ "src": "673:104:1",
1003
+ "stateMutability": "nonpayable",
1004
+ "virtual": false,
1005
+ "visibility": "external"
1006
+ },
1007
+ {
1008
+ "anonymous": false,
1009
+ "documentation": null,
1010
+ "id": 390,
1011
+ "name": "Claimed",
1012
+ "nodeType": "EventDefinition",
1013
+ "parameters": {
1014
+ "id": 389,
1015
+ "nodeType": "ParameterList",
1016
+ "parameters": [
1017
+ {
1018
+ "constant": false,
1019
+ "id": 384,
1020
+ "indexed": false,
1021
+ "mutability": "mutable",
1022
+ "name": "index",
1023
+ "nodeType": "VariableDeclaration",
1024
+ "overrides": null,
1025
+ "scope": 390,
1026
+ "src": "864:13:1",
1027
+ "stateVariable": false,
1028
+ "storageLocation": "default",
1029
+ "typeDescriptions": {
1030
+ "typeIdentifier": "t_uint256",
1031
+ "typeString": "uint256"
1032
+ },
1033
+ "typeName": {
1034
+ "id": 383,
1035
+ "name": "uint256",
1036
+ "nodeType": "ElementaryTypeName",
1037
+ "src": "864:7:1",
1038
+ "typeDescriptions": {
1039
+ "typeIdentifier": "t_uint256",
1040
+ "typeString": "uint256"
1041
+ }
1042
+ },
1043
+ "value": null,
1044
+ "visibility": "internal"
1045
+ },
1046
+ {
1047
+ "constant": false,
1048
+ "id": 386,
1049
+ "indexed": false,
1050
+ "mutability": "mutable",
1051
+ "name": "account",
1052
+ "nodeType": "VariableDeclaration",
1053
+ "overrides": null,
1054
+ "scope": 390,
1055
+ "src": "879:15:1",
1056
+ "stateVariable": false,
1057
+ "storageLocation": "default",
1058
+ "typeDescriptions": {
1059
+ "typeIdentifier": "t_address",
1060
+ "typeString": "address"
1061
+ },
1062
+ "typeName": {
1063
+ "id": 385,
1064
+ "name": "address",
1065
+ "nodeType": "ElementaryTypeName",
1066
+ "src": "879:7:1",
1067
+ "stateMutability": "nonpayable",
1068
+ "typeDescriptions": {
1069
+ "typeIdentifier": "t_address",
1070
+ "typeString": "address"
1071
+ }
1072
+ },
1073
+ "value": null,
1074
+ "visibility": "internal"
1075
+ },
1076
+ {
1077
+ "constant": false,
1078
+ "id": 388,
1079
+ "indexed": false,
1080
+ "mutability": "mutable",
1081
+ "name": "amount",
1082
+ "nodeType": "VariableDeclaration",
1083
+ "overrides": null,
1084
+ "scope": 390,
1085
+ "src": "896:14:1",
1086
+ "stateVariable": false,
1087
+ "storageLocation": "default",
1088
+ "typeDescriptions": {
1089
+ "typeIdentifier": "t_uint256",
1090
+ "typeString": "uint256"
1091
+ },
1092
+ "typeName": {
1093
+ "id": 387,
1094
+ "name": "uint256",
1095
+ "nodeType": "ElementaryTypeName",
1096
+ "src": "896:7:1",
1097
+ "typeDescriptions": {
1098
+ "typeIdentifier": "t_uint256",
1099
+ "typeString": "uint256"
1100
+ }
1101
+ },
1102
+ "value": null,
1103
+ "visibility": "internal"
1104
+ }
1105
+ ],
1106
+ "src": "863:48:1"
1107
+ },
1108
+ "src": "850:62:1"
1109
+ }
1110
+ ],
1111
+ "scope": 392,
1112
+ "src": "131:783:1"
1113
+ }
1114
+ ],
1115
+ "src": "39:875:1"
1116
+ },
1117
+ "compiler": {
1118
+ "name": "solc",
1119
+ "version": "0.6.11+commit.5ef660b1.Emscripten.clang"
1120
+ },
1121
+ "networks": {},
1122
+ "schemaVersion": "3.3.2",
1123
+ "updatedAt": "2021-03-15T18:03:06.218Z",
1124
+ "devdoc": {
1125
+ "kind": "dev",
1126
+ "methods": {},
1127
+ "version": 1
1128
+ },
1129
+ "userdoc": {
1130
+ "kind": "user",
1131
+ "methods": {},
1132
+ "version": 1
1133
+ }
1134
+ }