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,1036 +1,1036 @@
1
- {
2
- "contractName": "IStakingRewards",
3
- "abi": [
4
- {
5
- "constant": true,
6
- "inputs": [],
7
- "name": "rewardsToken",
8
- "outputs": [
9
- {
10
- "internalType": "address",
11
- "name": "",
12
- "type": "address"
13
- }
14
- ],
15
- "payable": false,
16
- "stateMutability": "view",
17
- "type": "function"
18
- },
19
- {
20
- "constant": true,
21
- "inputs": [],
22
- "name": "stakingToken",
23
- "outputs": [
24
- {
25
- "internalType": "address",
26
- "name": "",
27
- "type": "address"
28
- }
29
- ],
30
- "payable": false,
31
- "stateMutability": "view",
32
- "type": "function"
33
- },
34
- {
35
- "constant": true,
36
- "inputs": [
37
- {
38
- "internalType": "address",
39
- "name": "account",
40
- "type": "address"
41
- }
42
- ],
43
- "name": "balanceOf",
44
- "outputs": [
45
- {
46
- "internalType": "uint256",
47
- "name": "",
48
- "type": "uint256"
49
- }
50
- ],
51
- "payable": false,
52
- "stateMutability": "view",
53
- "type": "function"
54
- },
55
- {
56
- "constant": true,
57
- "inputs": [
58
- {
59
- "internalType": "address",
60
- "name": "account",
61
- "type": "address"
62
- }
63
- ],
64
- "name": "earned",
65
- "outputs": [
66
- {
67
- "internalType": "uint256",
68
- "name": "",
69
- "type": "uint256"
70
- }
71
- ],
72
- "payable": false,
73
- "stateMutability": "view",
74
- "type": "function"
75
- },
76
- {
77
- "constant": false,
78
- "inputs": [
79
- {
80
- "internalType": "uint256",
81
- "name": "amount",
82
- "type": "uint256"
83
- }
84
- ],
85
- "name": "stake",
86
- "outputs": [],
87
- "payable": false,
88
- "stateMutability": "nonpayable",
89
- "type": "function"
90
- },
91
- {
92
- "constant": false,
93
- "inputs": [
94
- {
95
- "internalType": "uint256",
96
- "name": "amount",
97
- "type": "uint256"
98
- }
99
- ],
100
- "name": "withdraw",
101
- "outputs": [],
102
- "payable": false,
103
- "stateMutability": "nonpayable",
104
- "type": "function"
105
- },
106
- {
107
- "constant": false,
108
- "inputs": [],
109
- "name": "getReward",
110
- "outputs": [],
111
- "payable": false,
112
- "stateMutability": "nonpayable",
113
- "type": "function"
114
- }
115
- ],
116
- "metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"earned\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"getReward\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"rewardsToken\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"stake\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"stakingToken\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"withdraw\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/C/Users/simor/Desktop/staked-lp-token/contracts/interfaces/IStakingRewards.sol\":\"IStakingRewards\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":999999},\"remappings\":[]},\"sources\":{\"/C/Users/simor/Desktop/staked-lp-token/contracts/interfaces/IStakingRewards.sol\":{\"keccak256\":\"0x8cf078d277b734d06324f8ee69829465fa50c7c8aef5abbceacd18fef1a3055c\",\"urls\":[\"bzz-raw://3f7f6c5e632fdc3162116509e53f0ca75c9cb57962687d3930cf059d778d6a73\",\"dweb:/ipfs/QmSBTmZwQuJ7skrLQ6WEi3CYnCpXFrXJzFjdjBdMefnpaN\"]}},\"version\":1}",
117
- "bytecode": "0x",
118
- "deployedBytecode": "0x",
119
- "sourceMap": "",
120
- "deployedSourceMap": "",
121
- "source": "pragma solidity >=0.5.0;\r\n\r\ninterface IStakingRewards {\r\n function rewardsToken() external view returns (address);\r\n function stakingToken() external view returns (address);\r\n function balanceOf(address account) external view returns (uint256);\r\n function earned(address account) external view returns (uint256);\r\n\r\n function stake(uint256 amount) external;\r\n function withdraw(uint256 amount) external;\r\n function getReward() external;\r\n}",
122
- "sourcePath": "C:\\Users\\simor\\Desktop\\staked-lp-token\\contracts\\interfaces\\IStakingRewards.sol",
123
- "ast": {
124
- "absolutePath": "/C/Users/simor/Desktop/staked-lp-token/contracts/interfaces/IStakingRewards.sol",
125
- "exportedSymbols": {
126
- "IStakingRewards": [
127
- 2413
128
- ]
129
- },
130
- "id": 2414,
131
- "nodeType": "SourceUnit",
132
- "nodes": [
133
- {
134
- "id": 2375,
135
- "literals": [
136
- "solidity",
137
- ">=",
138
- "0.5",
139
- ".0"
140
- ],
141
- "nodeType": "PragmaDirective",
142
- "src": "0:24:8"
143
- },
144
- {
145
- "baseContracts": [],
146
- "contractDependencies": [],
147
- "contractKind": "interface",
148
- "documentation": null,
149
- "fullyImplemented": false,
150
- "id": 2413,
151
- "linearizedBaseContracts": [
152
- 2413
153
- ],
154
- "name": "IStakingRewards",
155
- "nodeType": "ContractDefinition",
156
- "nodes": [
157
- {
158
- "body": null,
159
- "documentation": null,
160
- "id": 2380,
161
- "implemented": false,
162
- "kind": "function",
163
- "modifiers": [],
164
- "name": "rewardsToken",
165
- "nodeType": "FunctionDefinition",
166
- "parameters": {
167
- "id": 2376,
168
- "nodeType": "ParameterList",
169
- "parameters": [],
170
- "src": "82:2:8"
171
- },
172
- "returnParameters": {
173
- "id": 2379,
174
- "nodeType": "ParameterList",
175
- "parameters": [
176
- {
177
- "constant": false,
178
- "id": 2378,
179
- "name": "",
180
- "nodeType": "VariableDeclaration",
181
- "scope": 2380,
182
- "src": "108:7:8",
183
- "stateVariable": false,
184
- "storageLocation": "default",
185
- "typeDescriptions": {
186
- "typeIdentifier": "t_address",
187
- "typeString": "address"
188
- },
189
- "typeName": {
190
- "id": 2377,
191
- "name": "address",
192
- "nodeType": "ElementaryTypeName",
193
- "src": "108:7:8",
194
- "stateMutability": "nonpayable",
195
- "typeDescriptions": {
196
- "typeIdentifier": "t_address",
197
- "typeString": "address"
198
- }
199
- },
200
- "value": null,
201
- "visibility": "internal"
202
- }
203
- ],
204
- "src": "107:9:8"
205
- },
206
- "scope": 2413,
207
- "src": "61:56:8",
208
- "stateMutability": "view",
209
- "superFunction": null,
210
- "visibility": "external"
211
- },
212
- {
213
- "body": null,
214
- "documentation": null,
215
- "id": 2385,
216
- "implemented": false,
217
- "kind": "function",
218
- "modifiers": [],
219
- "name": "stakingToken",
220
- "nodeType": "FunctionDefinition",
221
- "parameters": {
222
- "id": 2381,
223
- "nodeType": "ParameterList",
224
- "parameters": [],
225
- "src": "144:2:8"
226
- },
227
- "returnParameters": {
228
- "id": 2384,
229
- "nodeType": "ParameterList",
230
- "parameters": [
231
- {
232
- "constant": false,
233
- "id": 2383,
234
- "name": "",
235
- "nodeType": "VariableDeclaration",
236
- "scope": 2385,
237
- "src": "170:7:8",
238
- "stateVariable": false,
239
- "storageLocation": "default",
240
- "typeDescriptions": {
241
- "typeIdentifier": "t_address",
242
- "typeString": "address"
243
- },
244
- "typeName": {
245
- "id": 2382,
246
- "name": "address",
247
- "nodeType": "ElementaryTypeName",
248
- "src": "170:7:8",
249
- "stateMutability": "nonpayable",
250
- "typeDescriptions": {
251
- "typeIdentifier": "t_address",
252
- "typeString": "address"
253
- }
254
- },
255
- "value": null,
256
- "visibility": "internal"
257
- }
258
- ],
259
- "src": "169:9:8"
260
- },
261
- "scope": 2413,
262
- "src": "123:56:8",
263
- "stateMutability": "view",
264
- "superFunction": null,
265
- "visibility": "external"
266
- },
267
- {
268
- "body": null,
269
- "documentation": null,
270
- "id": 2392,
271
- "implemented": false,
272
- "kind": "function",
273
- "modifiers": [],
274
- "name": "balanceOf",
275
- "nodeType": "FunctionDefinition",
276
- "parameters": {
277
- "id": 2388,
278
- "nodeType": "ParameterList",
279
- "parameters": [
280
- {
281
- "constant": false,
282
- "id": 2387,
283
- "name": "account",
284
- "nodeType": "VariableDeclaration",
285
- "scope": 2392,
286
- "src": "204:15:8",
287
- "stateVariable": false,
288
- "storageLocation": "default",
289
- "typeDescriptions": {
290
- "typeIdentifier": "t_address",
291
- "typeString": "address"
292
- },
293
- "typeName": {
294
- "id": 2386,
295
- "name": "address",
296
- "nodeType": "ElementaryTypeName",
297
- "src": "204:7:8",
298
- "stateMutability": "nonpayable",
299
- "typeDescriptions": {
300
- "typeIdentifier": "t_address",
301
- "typeString": "address"
302
- }
303
- },
304
- "value": null,
305
- "visibility": "internal"
306
- }
307
- ],
308
- "src": "203:17:8"
309
- },
310
- "returnParameters": {
311
- "id": 2391,
312
- "nodeType": "ParameterList",
313
- "parameters": [
314
- {
315
- "constant": false,
316
- "id": 2390,
317
- "name": "",
318
- "nodeType": "VariableDeclaration",
319
- "scope": 2392,
320
- "src": "244:7:8",
321
- "stateVariable": false,
322
- "storageLocation": "default",
323
- "typeDescriptions": {
324
- "typeIdentifier": "t_uint256",
325
- "typeString": "uint256"
326
- },
327
- "typeName": {
328
- "id": 2389,
329
- "name": "uint256",
330
- "nodeType": "ElementaryTypeName",
331
- "src": "244:7:8",
332
- "typeDescriptions": {
333
- "typeIdentifier": "t_uint256",
334
- "typeString": "uint256"
335
- }
336
- },
337
- "value": null,
338
- "visibility": "internal"
339
- }
340
- ],
341
- "src": "243:9:8"
342
- },
343
- "scope": 2413,
344
- "src": "185:68:8",
345
- "stateMutability": "view",
346
- "superFunction": null,
347
- "visibility": "external"
348
- },
349
- {
350
- "body": null,
351
- "documentation": null,
352
- "id": 2399,
353
- "implemented": false,
354
- "kind": "function",
355
- "modifiers": [],
356
- "name": "earned",
357
- "nodeType": "FunctionDefinition",
358
- "parameters": {
359
- "id": 2395,
360
- "nodeType": "ParameterList",
361
- "parameters": [
362
- {
363
- "constant": false,
364
- "id": 2394,
365
- "name": "account",
366
- "nodeType": "VariableDeclaration",
367
- "scope": 2399,
368
- "src": "275:15:8",
369
- "stateVariable": false,
370
- "storageLocation": "default",
371
- "typeDescriptions": {
372
- "typeIdentifier": "t_address",
373
- "typeString": "address"
374
- },
375
- "typeName": {
376
- "id": 2393,
377
- "name": "address",
378
- "nodeType": "ElementaryTypeName",
379
- "src": "275:7:8",
380
- "stateMutability": "nonpayable",
381
- "typeDescriptions": {
382
- "typeIdentifier": "t_address",
383
- "typeString": "address"
384
- }
385
- },
386
- "value": null,
387
- "visibility": "internal"
388
- }
389
- ],
390
- "src": "274:17:8"
391
- },
392
- "returnParameters": {
393
- "id": 2398,
394
- "nodeType": "ParameterList",
395
- "parameters": [
396
- {
397
- "constant": false,
398
- "id": 2397,
399
- "name": "",
400
- "nodeType": "VariableDeclaration",
401
- "scope": 2399,
402
- "src": "315:7:8",
403
- "stateVariable": false,
404
- "storageLocation": "default",
405
- "typeDescriptions": {
406
- "typeIdentifier": "t_uint256",
407
- "typeString": "uint256"
408
- },
409
- "typeName": {
410
- "id": 2396,
411
- "name": "uint256",
412
- "nodeType": "ElementaryTypeName",
413
- "src": "315:7:8",
414
- "typeDescriptions": {
415
- "typeIdentifier": "t_uint256",
416
- "typeString": "uint256"
417
- }
418
- },
419
- "value": null,
420
- "visibility": "internal"
421
- }
422
- ],
423
- "src": "314:9:8"
424
- },
425
- "scope": 2413,
426
- "src": "259:65:8",
427
- "stateMutability": "view",
428
- "superFunction": null,
429
- "visibility": "external"
430
- },
431
- {
432
- "body": null,
433
- "documentation": null,
434
- "id": 2404,
435
- "implemented": false,
436
- "kind": "function",
437
- "modifiers": [],
438
- "name": "stake",
439
- "nodeType": "FunctionDefinition",
440
- "parameters": {
441
- "id": 2402,
442
- "nodeType": "ParameterList",
443
- "parameters": [
444
- {
445
- "constant": false,
446
- "id": 2401,
447
- "name": "amount",
448
- "nodeType": "VariableDeclaration",
449
- "scope": 2404,
450
- "src": "347:14:8",
451
- "stateVariable": false,
452
- "storageLocation": "default",
453
- "typeDescriptions": {
454
- "typeIdentifier": "t_uint256",
455
- "typeString": "uint256"
456
- },
457
- "typeName": {
458
- "id": 2400,
459
- "name": "uint256",
460
- "nodeType": "ElementaryTypeName",
461
- "src": "347:7:8",
462
- "typeDescriptions": {
463
- "typeIdentifier": "t_uint256",
464
- "typeString": "uint256"
465
- }
466
- },
467
- "value": null,
468
- "visibility": "internal"
469
- }
470
- ],
471
- "src": "346:16:8"
472
- },
473
- "returnParameters": {
474
- "id": 2403,
475
- "nodeType": "ParameterList",
476
- "parameters": [],
477
- "src": "371:0:8"
478
- },
479
- "scope": 2413,
480
- "src": "332:40:8",
481
- "stateMutability": "nonpayable",
482
- "superFunction": null,
483
- "visibility": "external"
484
- },
485
- {
486
- "body": null,
487
- "documentation": null,
488
- "id": 2409,
489
- "implemented": false,
490
- "kind": "function",
491
- "modifiers": [],
492
- "name": "withdraw",
493
- "nodeType": "FunctionDefinition",
494
- "parameters": {
495
- "id": 2407,
496
- "nodeType": "ParameterList",
497
- "parameters": [
498
- {
499
- "constant": false,
500
- "id": 2406,
501
- "name": "amount",
502
- "nodeType": "VariableDeclaration",
503
- "scope": 2409,
504
- "src": "396:14:8",
505
- "stateVariable": false,
506
- "storageLocation": "default",
507
- "typeDescriptions": {
508
- "typeIdentifier": "t_uint256",
509
- "typeString": "uint256"
510
- },
511
- "typeName": {
512
- "id": 2405,
513
- "name": "uint256",
514
- "nodeType": "ElementaryTypeName",
515
- "src": "396:7:8",
516
- "typeDescriptions": {
517
- "typeIdentifier": "t_uint256",
518
- "typeString": "uint256"
519
- }
520
- },
521
- "value": null,
522
- "visibility": "internal"
523
- }
524
- ],
525
- "src": "395:16:8"
526
- },
527
- "returnParameters": {
528
- "id": 2408,
529
- "nodeType": "ParameterList",
530
- "parameters": [],
531
- "src": "420:0:8"
532
- },
533
- "scope": 2413,
534
- "src": "378:43:8",
535
- "stateMutability": "nonpayable",
536
- "superFunction": null,
537
- "visibility": "external"
538
- },
539
- {
540
- "body": null,
541
- "documentation": null,
542
- "id": 2412,
543
- "implemented": false,
544
- "kind": "function",
545
- "modifiers": [],
546
- "name": "getReward",
547
- "nodeType": "FunctionDefinition",
548
- "parameters": {
549
- "id": 2410,
550
- "nodeType": "ParameterList",
551
- "parameters": [],
552
- "src": "445:2:8"
553
- },
554
- "returnParameters": {
555
- "id": 2411,
556
- "nodeType": "ParameterList",
557
- "parameters": [],
558
- "src": "456:0:8"
559
- },
560
- "scope": 2413,
561
- "src": "427:30:8",
562
- "stateMutability": "nonpayable",
563
- "superFunction": null,
564
- "visibility": "external"
565
- }
566
- ],
567
- "scope": 2414,
568
- "src": "28:432:8"
569
- }
570
- ],
571
- "src": "0:460:8"
572
- },
573
- "legacyAST": {
574
- "absolutePath": "/C/Users/simor/Desktop/staked-lp-token/contracts/interfaces/IStakingRewards.sol",
575
- "exportedSymbols": {
576
- "IStakingRewards": [
577
- 2413
578
- ]
579
- },
580
- "id": 2414,
581
- "nodeType": "SourceUnit",
582
- "nodes": [
583
- {
584
- "id": 2375,
585
- "literals": [
586
- "solidity",
587
- ">=",
588
- "0.5",
589
- ".0"
590
- ],
591
- "nodeType": "PragmaDirective",
592
- "src": "0:24:8"
593
- },
594
- {
595
- "baseContracts": [],
596
- "contractDependencies": [],
597
- "contractKind": "interface",
598
- "documentation": null,
599
- "fullyImplemented": false,
600
- "id": 2413,
601
- "linearizedBaseContracts": [
602
- 2413
603
- ],
604
- "name": "IStakingRewards",
605
- "nodeType": "ContractDefinition",
606
- "nodes": [
607
- {
608
- "body": null,
609
- "documentation": null,
610
- "id": 2380,
611
- "implemented": false,
612
- "kind": "function",
613
- "modifiers": [],
614
- "name": "rewardsToken",
615
- "nodeType": "FunctionDefinition",
616
- "parameters": {
617
- "id": 2376,
618
- "nodeType": "ParameterList",
619
- "parameters": [],
620
- "src": "82:2:8"
621
- },
622
- "returnParameters": {
623
- "id": 2379,
624
- "nodeType": "ParameterList",
625
- "parameters": [
626
- {
627
- "constant": false,
628
- "id": 2378,
629
- "name": "",
630
- "nodeType": "VariableDeclaration",
631
- "scope": 2380,
632
- "src": "108:7:8",
633
- "stateVariable": false,
634
- "storageLocation": "default",
635
- "typeDescriptions": {
636
- "typeIdentifier": "t_address",
637
- "typeString": "address"
638
- },
639
- "typeName": {
640
- "id": 2377,
641
- "name": "address",
642
- "nodeType": "ElementaryTypeName",
643
- "src": "108:7:8",
644
- "stateMutability": "nonpayable",
645
- "typeDescriptions": {
646
- "typeIdentifier": "t_address",
647
- "typeString": "address"
648
- }
649
- },
650
- "value": null,
651
- "visibility": "internal"
652
- }
653
- ],
654
- "src": "107:9:8"
655
- },
656
- "scope": 2413,
657
- "src": "61:56:8",
658
- "stateMutability": "view",
659
- "superFunction": null,
660
- "visibility": "external"
661
- },
662
- {
663
- "body": null,
664
- "documentation": null,
665
- "id": 2385,
666
- "implemented": false,
667
- "kind": "function",
668
- "modifiers": [],
669
- "name": "stakingToken",
670
- "nodeType": "FunctionDefinition",
671
- "parameters": {
672
- "id": 2381,
673
- "nodeType": "ParameterList",
674
- "parameters": [],
675
- "src": "144:2:8"
676
- },
677
- "returnParameters": {
678
- "id": 2384,
679
- "nodeType": "ParameterList",
680
- "parameters": [
681
- {
682
- "constant": false,
683
- "id": 2383,
684
- "name": "",
685
- "nodeType": "VariableDeclaration",
686
- "scope": 2385,
687
- "src": "170:7:8",
688
- "stateVariable": false,
689
- "storageLocation": "default",
690
- "typeDescriptions": {
691
- "typeIdentifier": "t_address",
692
- "typeString": "address"
693
- },
694
- "typeName": {
695
- "id": 2382,
696
- "name": "address",
697
- "nodeType": "ElementaryTypeName",
698
- "src": "170:7:8",
699
- "stateMutability": "nonpayable",
700
- "typeDescriptions": {
701
- "typeIdentifier": "t_address",
702
- "typeString": "address"
703
- }
704
- },
705
- "value": null,
706
- "visibility": "internal"
707
- }
708
- ],
709
- "src": "169:9:8"
710
- },
711
- "scope": 2413,
712
- "src": "123:56:8",
713
- "stateMutability": "view",
714
- "superFunction": null,
715
- "visibility": "external"
716
- },
717
- {
718
- "body": null,
719
- "documentation": null,
720
- "id": 2392,
721
- "implemented": false,
722
- "kind": "function",
723
- "modifiers": [],
724
- "name": "balanceOf",
725
- "nodeType": "FunctionDefinition",
726
- "parameters": {
727
- "id": 2388,
728
- "nodeType": "ParameterList",
729
- "parameters": [
730
- {
731
- "constant": false,
732
- "id": 2387,
733
- "name": "account",
734
- "nodeType": "VariableDeclaration",
735
- "scope": 2392,
736
- "src": "204:15:8",
737
- "stateVariable": false,
738
- "storageLocation": "default",
739
- "typeDescriptions": {
740
- "typeIdentifier": "t_address",
741
- "typeString": "address"
742
- },
743
- "typeName": {
744
- "id": 2386,
745
- "name": "address",
746
- "nodeType": "ElementaryTypeName",
747
- "src": "204:7:8",
748
- "stateMutability": "nonpayable",
749
- "typeDescriptions": {
750
- "typeIdentifier": "t_address",
751
- "typeString": "address"
752
- }
753
- },
754
- "value": null,
755
- "visibility": "internal"
756
- }
757
- ],
758
- "src": "203:17:8"
759
- },
760
- "returnParameters": {
761
- "id": 2391,
762
- "nodeType": "ParameterList",
763
- "parameters": [
764
- {
765
- "constant": false,
766
- "id": 2390,
767
- "name": "",
768
- "nodeType": "VariableDeclaration",
769
- "scope": 2392,
770
- "src": "244:7:8",
771
- "stateVariable": false,
772
- "storageLocation": "default",
773
- "typeDescriptions": {
774
- "typeIdentifier": "t_uint256",
775
- "typeString": "uint256"
776
- },
777
- "typeName": {
778
- "id": 2389,
779
- "name": "uint256",
780
- "nodeType": "ElementaryTypeName",
781
- "src": "244:7:8",
782
- "typeDescriptions": {
783
- "typeIdentifier": "t_uint256",
784
- "typeString": "uint256"
785
- }
786
- },
787
- "value": null,
788
- "visibility": "internal"
789
- }
790
- ],
791
- "src": "243:9:8"
792
- },
793
- "scope": 2413,
794
- "src": "185:68:8",
795
- "stateMutability": "view",
796
- "superFunction": null,
797
- "visibility": "external"
798
- },
799
- {
800
- "body": null,
801
- "documentation": null,
802
- "id": 2399,
803
- "implemented": false,
804
- "kind": "function",
805
- "modifiers": [],
806
- "name": "earned",
807
- "nodeType": "FunctionDefinition",
808
- "parameters": {
809
- "id": 2395,
810
- "nodeType": "ParameterList",
811
- "parameters": [
812
- {
813
- "constant": false,
814
- "id": 2394,
815
- "name": "account",
816
- "nodeType": "VariableDeclaration",
817
- "scope": 2399,
818
- "src": "275:15:8",
819
- "stateVariable": false,
820
- "storageLocation": "default",
821
- "typeDescriptions": {
822
- "typeIdentifier": "t_address",
823
- "typeString": "address"
824
- },
825
- "typeName": {
826
- "id": 2393,
827
- "name": "address",
828
- "nodeType": "ElementaryTypeName",
829
- "src": "275:7:8",
830
- "stateMutability": "nonpayable",
831
- "typeDescriptions": {
832
- "typeIdentifier": "t_address",
833
- "typeString": "address"
834
- }
835
- },
836
- "value": null,
837
- "visibility": "internal"
838
- }
839
- ],
840
- "src": "274:17:8"
841
- },
842
- "returnParameters": {
843
- "id": 2398,
844
- "nodeType": "ParameterList",
845
- "parameters": [
846
- {
847
- "constant": false,
848
- "id": 2397,
849
- "name": "",
850
- "nodeType": "VariableDeclaration",
851
- "scope": 2399,
852
- "src": "315:7:8",
853
- "stateVariable": false,
854
- "storageLocation": "default",
855
- "typeDescriptions": {
856
- "typeIdentifier": "t_uint256",
857
- "typeString": "uint256"
858
- },
859
- "typeName": {
860
- "id": 2396,
861
- "name": "uint256",
862
- "nodeType": "ElementaryTypeName",
863
- "src": "315:7:8",
864
- "typeDescriptions": {
865
- "typeIdentifier": "t_uint256",
866
- "typeString": "uint256"
867
- }
868
- },
869
- "value": null,
870
- "visibility": "internal"
871
- }
872
- ],
873
- "src": "314:9:8"
874
- },
875
- "scope": 2413,
876
- "src": "259:65:8",
877
- "stateMutability": "view",
878
- "superFunction": null,
879
- "visibility": "external"
880
- },
881
- {
882
- "body": null,
883
- "documentation": null,
884
- "id": 2404,
885
- "implemented": false,
886
- "kind": "function",
887
- "modifiers": [],
888
- "name": "stake",
889
- "nodeType": "FunctionDefinition",
890
- "parameters": {
891
- "id": 2402,
892
- "nodeType": "ParameterList",
893
- "parameters": [
894
- {
895
- "constant": false,
896
- "id": 2401,
897
- "name": "amount",
898
- "nodeType": "VariableDeclaration",
899
- "scope": 2404,
900
- "src": "347:14:8",
901
- "stateVariable": false,
902
- "storageLocation": "default",
903
- "typeDescriptions": {
904
- "typeIdentifier": "t_uint256",
905
- "typeString": "uint256"
906
- },
907
- "typeName": {
908
- "id": 2400,
909
- "name": "uint256",
910
- "nodeType": "ElementaryTypeName",
911
- "src": "347:7:8",
912
- "typeDescriptions": {
913
- "typeIdentifier": "t_uint256",
914
- "typeString": "uint256"
915
- }
916
- },
917
- "value": null,
918
- "visibility": "internal"
919
- }
920
- ],
921
- "src": "346:16:8"
922
- },
923
- "returnParameters": {
924
- "id": 2403,
925
- "nodeType": "ParameterList",
926
- "parameters": [],
927
- "src": "371:0:8"
928
- },
929
- "scope": 2413,
930
- "src": "332:40:8",
931
- "stateMutability": "nonpayable",
932
- "superFunction": null,
933
- "visibility": "external"
934
- },
935
- {
936
- "body": null,
937
- "documentation": null,
938
- "id": 2409,
939
- "implemented": false,
940
- "kind": "function",
941
- "modifiers": [],
942
- "name": "withdraw",
943
- "nodeType": "FunctionDefinition",
944
- "parameters": {
945
- "id": 2407,
946
- "nodeType": "ParameterList",
947
- "parameters": [
948
- {
949
- "constant": false,
950
- "id": 2406,
951
- "name": "amount",
952
- "nodeType": "VariableDeclaration",
953
- "scope": 2409,
954
- "src": "396:14:8",
955
- "stateVariable": false,
956
- "storageLocation": "default",
957
- "typeDescriptions": {
958
- "typeIdentifier": "t_uint256",
959
- "typeString": "uint256"
960
- },
961
- "typeName": {
962
- "id": 2405,
963
- "name": "uint256",
964
- "nodeType": "ElementaryTypeName",
965
- "src": "396:7:8",
966
- "typeDescriptions": {
967
- "typeIdentifier": "t_uint256",
968
- "typeString": "uint256"
969
- }
970
- },
971
- "value": null,
972
- "visibility": "internal"
973
- }
974
- ],
975
- "src": "395:16:8"
976
- },
977
- "returnParameters": {
978
- "id": 2408,
979
- "nodeType": "ParameterList",
980
- "parameters": [],
981
- "src": "420:0:8"
982
- },
983
- "scope": 2413,
984
- "src": "378:43:8",
985
- "stateMutability": "nonpayable",
986
- "superFunction": null,
987
- "visibility": "external"
988
- },
989
- {
990
- "body": null,
991
- "documentation": null,
992
- "id": 2412,
993
- "implemented": false,
994
- "kind": "function",
995
- "modifiers": [],
996
- "name": "getReward",
997
- "nodeType": "FunctionDefinition",
998
- "parameters": {
999
- "id": 2410,
1000
- "nodeType": "ParameterList",
1001
- "parameters": [],
1002
- "src": "445:2:8"
1003
- },
1004
- "returnParameters": {
1005
- "id": 2411,
1006
- "nodeType": "ParameterList",
1007
- "parameters": [],
1008
- "src": "456:0:8"
1009
- },
1010
- "scope": 2413,
1011
- "src": "427:30:8",
1012
- "stateMutability": "nonpayable",
1013
- "superFunction": null,
1014
- "visibility": "external"
1015
- }
1016
- ],
1017
- "scope": 2414,
1018
- "src": "28:432:8"
1019
- }
1020
- ],
1021
- "src": "0:460:8"
1022
- },
1023
- "compiler": {
1024
- "name": "solc",
1025
- "version": "0.5.16+commit.9c3226ce.Emscripten.clang"
1026
- },
1027
- "networks": {},
1028
- "schemaVersion": "3.3.2",
1029
- "updatedAt": "2021-06-04T15:59:20.444Z",
1030
- "devdoc": {
1031
- "methods": {}
1032
- },
1033
- "userdoc": {
1034
- "methods": {}
1035
- }
1036
- }
1
+ {
2
+ "contractName": "IStakingRewards",
3
+ "abi": [
4
+ {
5
+ "constant": true,
6
+ "inputs": [],
7
+ "name": "rewardsToken",
8
+ "outputs": [
9
+ {
10
+ "internalType": "address",
11
+ "name": "",
12
+ "type": "address"
13
+ }
14
+ ],
15
+ "payable": false,
16
+ "stateMutability": "view",
17
+ "type": "function"
18
+ },
19
+ {
20
+ "constant": true,
21
+ "inputs": [],
22
+ "name": "stakingToken",
23
+ "outputs": [
24
+ {
25
+ "internalType": "address",
26
+ "name": "",
27
+ "type": "address"
28
+ }
29
+ ],
30
+ "payable": false,
31
+ "stateMutability": "view",
32
+ "type": "function"
33
+ },
34
+ {
35
+ "constant": true,
36
+ "inputs": [
37
+ {
38
+ "internalType": "address",
39
+ "name": "account",
40
+ "type": "address"
41
+ }
42
+ ],
43
+ "name": "balanceOf",
44
+ "outputs": [
45
+ {
46
+ "internalType": "uint256",
47
+ "name": "",
48
+ "type": "uint256"
49
+ }
50
+ ],
51
+ "payable": false,
52
+ "stateMutability": "view",
53
+ "type": "function"
54
+ },
55
+ {
56
+ "constant": true,
57
+ "inputs": [
58
+ {
59
+ "internalType": "address",
60
+ "name": "account",
61
+ "type": "address"
62
+ }
63
+ ],
64
+ "name": "earned",
65
+ "outputs": [
66
+ {
67
+ "internalType": "uint256",
68
+ "name": "",
69
+ "type": "uint256"
70
+ }
71
+ ],
72
+ "payable": false,
73
+ "stateMutability": "view",
74
+ "type": "function"
75
+ },
76
+ {
77
+ "constant": false,
78
+ "inputs": [
79
+ {
80
+ "internalType": "uint256",
81
+ "name": "amount",
82
+ "type": "uint256"
83
+ }
84
+ ],
85
+ "name": "stake",
86
+ "outputs": [],
87
+ "payable": false,
88
+ "stateMutability": "nonpayable",
89
+ "type": "function"
90
+ },
91
+ {
92
+ "constant": false,
93
+ "inputs": [
94
+ {
95
+ "internalType": "uint256",
96
+ "name": "amount",
97
+ "type": "uint256"
98
+ }
99
+ ],
100
+ "name": "withdraw",
101
+ "outputs": [],
102
+ "payable": false,
103
+ "stateMutability": "nonpayable",
104
+ "type": "function"
105
+ },
106
+ {
107
+ "constant": false,
108
+ "inputs": [],
109
+ "name": "getReward",
110
+ "outputs": [],
111
+ "payable": false,
112
+ "stateMutability": "nonpayable",
113
+ "type": "function"
114
+ }
115
+ ],
116
+ "metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"earned\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"getReward\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"rewardsToken\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"stake\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"stakingToken\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"withdraw\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/C/Users/simor/Desktop/staked-lp-token/contracts/interfaces/IStakingRewards.sol\":\"IStakingRewards\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":999999},\"remappings\":[]},\"sources\":{\"/C/Users/simor/Desktop/staked-lp-token/contracts/interfaces/IStakingRewards.sol\":{\"keccak256\":\"0x8cf078d277b734d06324f8ee69829465fa50c7c8aef5abbceacd18fef1a3055c\",\"urls\":[\"bzz-raw://3f7f6c5e632fdc3162116509e53f0ca75c9cb57962687d3930cf059d778d6a73\",\"dweb:/ipfs/QmSBTmZwQuJ7skrLQ6WEi3CYnCpXFrXJzFjdjBdMefnpaN\"]}},\"version\":1}",
117
+ "bytecode": "0x",
118
+ "deployedBytecode": "0x",
119
+ "sourceMap": "",
120
+ "deployedSourceMap": "",
121
+ "source": "pragma solidity >=0.5.0;\r\n\r\ninterface IStakingRewards {\r\n function rewardsToken() external view returns (address);\r\n function stakingToken() external view returns (address);\r\n function balanceOf(address account) external view returns (uint256);\r\n function earned(address account) external view returns (uint256);\r\n\r\n function stake(uint256 amount) external;\r\n function withdraw(uint256 amount) external;\r\n function getReward() external;\r\n}",
122
+ "sourcePath": "C:\\Users\\simor\\Desktop\\staked-lp-token\\contracts\\interfaces\\IStakingRewards.sol",
123
+ "ast": {
124
+ "absolutePath": "/C/Users/simor/Desktop/staked-lp-token/contracts/interfaces/IStakingRewards.sol",
125
+ "exportedSymbols": {
126
+ "IStakingRewards": [
127
+ 2413
128
+ ]
129
+ },
130
+ "id": 2414,
131
+ "nodeType": "SourceUnit",
132
+ "nodes": [
133
+ {
134
+ "id": 2375,
135
+ "literals": [
136
+ "solidity",
137
+ ">=",
138
+ "0.5",
139
+ ".0"
140
+ ],
141
+ "nodeType": "PragmaDirective",
142
+ "src": "0:24:8"
143
+ },
144
+ {
145
+ "baseContracts": [],
146
+ "contractDependencies": [],
147
+ "contractKind": "interface",
148
+ "documentation": null,
149
+ "fullyImplemented": false,
150
+ "id": 2413,
151
+ "linearizedBaseContracts": [
152
+ 2413
153
+ ],
154
+ "name": "IStakingRewards",
155
+ "nodeType": "ContractDefinition",
156
+ "nodes": [
157
+ {
158
+ "body": null,
159
+ "documentation": null,
160
+ "id": 2380,
161
+ "implemented": false,
162
+ "kind": "function",
163
+ "modifiers": [],
164
+ "name": "rewardsToken",
165
+ "nodeType": "FunctionDefinition",
166
+ "parameters": {
167
+ "id": 2376,
168
+ "nodeType": "ParameterList",
169
+ "parameters": [],
170
+ "src": "82:2:8"
171
+ },
172
+ "returnParameters": {
173
+ "id": 2379,
174
+ "nodeType": "ParameterList",
175
+ "parameters": [
176
+ {
177
+ "constant": false,
178
+ "id": 2378,
179
+ "name": "",
180
+ "nodeType": "VariableDeclaration",
181
+ "scope": 2380,
182
+ "src": "108:7:8",
183
+ "stateVariable": false,
184
+ "storageLocation": "default",
185
+ "typeDescriptions": {
186
+ "typeIdentifier": "t_address",
187
+ "typeString": "address"
188
+ },
189
+ "typeName": {
190
+ "id": 2377,
191
+ "name": "address",
192
+ "nodeType": "ElementaryTypeName",
193
+ "src": "108:7:8",
194
+ "stateMutability": "nonpayable",
195
+ "typeDescriptions": {
196
+ "typeIdentifier": "t_address",
197
+ "typeString": "address"
198
+ }
199
+ },
200
+ "value": null,
201
+ "visibility": "internal"
202
+ }
203
+ ],
204
+ "src": "107:9:8"
205
+ },
206
+ "scope": 2413,
207
+ "src": "61:56:8",
208
+ "stateMutability": "view",
209
+ "superFunction": null,
210
+ "visibility": "external"
211
+ },
212
+ {
213
+ "body": null,
214
+ "documentation": null,
215
+ "id": 2385,
216
+ "implemented": false,
217
+ "kind": "function",
218
+ "modifiers": [],
219
+ "name": "stakingToken",
220
+ "nodeType": "FunctionDefinition",
221
+ "parameters": {
222
+ "id": 2381,
223
+ "nodeType": "ParameterList",
224
+ "parameters": [],
225
+ "src": "144:2:8"
226
+ },
227
+ "returnParameters": {
228
+ "id": 2384,
229
+ "nodeType": "ParameterList",
230
+ "parameters": [
231
+ {
232
+ "constant": false,
233
+ "id": 2383,
234
+ "name": "",
235
+ "nodeType": "VariableDeclaration",
236
+ "scope": 2385,
237
+ "src": "170:7:8",
238
+ "stateVariable": false,
239
+ "storageLocation": "default",
240
+ "typeDescriptions": {
241
+ "typeIdentifier": "t_address",
242
+ "typeString": "address"
243
+ },
244
+ "typeName": {
245
+ "id": 2382,
246
+ "name": "address",
247
+ "nodeType": "ElementaryTypeName",
248
+ "src": "170:7:8",
249
+ "stateMutability": "nonpayable",
250
+ "typeDescriptions": {
251
+ "typeIdentifier": "t_address",
252
+ "typeString": "address"
253
+ }
254
+ },
255
+ "value": null,
256
+ "visibility": "internal"
257
+ }
258
+ ],
259
+ "src": "169:9:8"
260
+ },
261
+ "scope": 2413,
262
+ "src": "123:56:8",
263
+ "stateMutability": "view",
264
+ "superFunction": null,
265
+ "visibility": "external"
266
+ },
267
+ {
268
+ "body": null,
269
+ "documentation": null,
270
+ "id": 2392,
271
+ "implemented": false,
272
+ "kind": "function",
273
+ "modifiers": [],
274
+ "name": "balanceOf",
275
+ "nodeType": "FunctionDefinition",
276
+ "parameters": {
277
+ "id": 2388,
278
+ "nodeType": "ParameterList",
279
+ "parameters": [
280
+ {
281
+ "constant": false,
282
+ "id": 2387,
283
+ "name": "account",
284
+ "nodeType": "VariableDeclaration",
285
+ "scope": 2392,
286
+ "src": "204:15:8",
287
+ "stateVariable": false,
288
+ "storageLocation": "default",
289
+ "typeDescriptions": {
290
+ "typeIdentifier": "t_address",
291
+ "typeString": "address"
292
+ },
293
+ "typeName": {
294
+ "id": 2386,
295
+ "name": "address",
296
+ "nodeType": "ElementaryTypeName",
297
+ "src": "204:7:8",
298
+ "stateMutability": "nonpayable",
299
+ "typeDescriptions": {
300
+ "typeIdentifier": "t_address",
301
+ "typeString": "address"
302
+ }
303
+ },
304
+ "value": null,
305
+ "visibility": "internal"
306
+ }
307
+ ],
308
+ "src": "203:17:8"
309
+ },
310
+ "returnParameters": {
311
+ "id": 2391,
312
+ "nodeType": "ParameterList",
313
+ "parameters": [
314
+ {
315
+ "constant": false,
316
+ "id": 2390,
317
+ "name": "",
318
+ "nodeType": "VariableDeclaration",
319
+ "scope": 2392,
320
+ "src": "244:7:8",
321
+ "stateVariable": false,
322
+ "storageLocation": "default",
323
+ "typeDescriptions": {
324
+ "typeIdentifier": "t_uint256",
325
+ "typeString": "uint256"
326
+ },
327
+ "typeName": {
328
+ "id": 2389,
329
+ "name": "uint256",
330
+ "nodeType": "ElementaryTypeName",
331
+ "src": "244:7:8",
332
+ "typeDescriptions": {
333
+ "typeIdentifier": "t_uint256",
334
+ "typeString": "uint256"
335
+ }
336
+ },
337
+ "value": null,
338
+ "visibility": "internal"
339
+ }
340
+ ],
341
+ "src": "243:9:8"
342
+ },
343
+ "scope": 2413,
344
+ "src": "185:68:8",
345
+ "stateMutability": "view",
346
+ "superFunction": null,
347
+ "visibility": "external"
348
+ },
349
+ {
350
+ "body": null,
351
+ "documentation": null,
352
+ "id": 2399,
353
+ "implemented": false,
354
+ "kind": "function",
355
+ "modifiers": [],
356
+ "name": "earned",
357
+ "nodeType": "FunctionDefinition",
358
+ "parameters": {
359
+ "id": 2395,
360
+ "nodeType": "ParameterList",
361
+ "parameters": [
362
+ {
363
+ "constant": false,
364
+ "id": 2394,
365
+ "name": "account",
366
+ "nodeType": "VariableDeclaration",
367
+ "scope": 2399,
368
+ "src": "275:15:8",
369
+ "stateVariable": false,
370
+ "storageLocation": "default",
371
+ "typeDescriptions": {
372
+ "typeIdentifier": "t_address",
373
+ "typeString": "address"
374
+ },
375
+ "typeName": {
376
+ "id": 2393,
377
+ "name": "address",
378
+ "nodeType": "ElementaryTypeName",
379
+ "src": "275:7:8",
380
+ "stateMutability": "nonpayable",
381
+ "typeDescriptions": {
382
+ "typeIdentifier": "t_address",
383
+ "typeString": "address"
384
+ }
385
+ },
386
+ "value": null,
387
+ "visibility": "internal"
388
+ }
389
+ ],
390
+ "src": "274:17:8"
391
+ },
392
+ "returnParameters": {
393
+ "id": 2398,
394
+ "nodeType": "ParameterList",
395
+ "parameters": [
396
+ {
397
+ "constant": false,
398
+ "id": 2397,
399
+ "name": "",
400
+ "nodeType": "VariableDeclaration",
401
+ "scope": 2399,
402
+ "src": "315:7:8",
403
+ "stateVariable": false,
404
+ "storageLocation": "default",
405
+ "typeDescriptions": {
406
+ "typeIdentifier": "t_uint256",
407
+ "typeString": "uint256"
408
+ },
409
+ "typeName": {
410
+ "id": 2396,
411
+ "name": "uint256",
412
+ "nodeType": "ElementaryTypeName",
413
+ "src": "315:7:8",
414
+ "typeDescriptions": {
415
+ "typeIdentifier": "t_uint256",
416
+ "typeString": "uint256"
417
+ }
418
+ },
419
+ "value": null,
420
+ "visibility": "internal"
421
+ }
422
+ ],
423
+ "src": "314:9:8"
424
+ },
425
+ "scope": 2413,
426
+ "src": "259:65:8",
427
+ "stateMutability": "view",
428
+ "superFunction": null,
429
+ "visibility": "external"
430
+ },
431
+ {
432
+ "body": null,
433
+ "documentation": null,
434
+ "id": 2404,
435
+ "implemented": false,
436
+ "kind": "function",
437
+ "modifiers": [],
438
+ "name": "stake",
439
+ "nodeType": "FunctionDefinition",
440
+ "parameters": {
441
+ "id": 2402,
442
+ "nodeType": "ParameterList",
443
+ "parameters": [
444
+ {
445
+ "constant": false,
446
+ "id": 2401,
447
+ "name": "amount",
448
+ "nodeType": "VariableDeclaration",
449
+ "scope": 2404,
450
+ "src": "347:14:8",
451
+ "stateVariable": false,
452
+ "storageLocation": "default",
453
+ "typeDescriptions": {
454
+ "typeIdentifier": "t_uint256",
455
+ "typeString": "uint256"
456
+ },
457
+ "typeName": {
458
+ "id": 2400,
459
+ "name": "uint256",
460
+ "nodeType": "ElementaryTypeName",
461
+ "src": "347:7:8",
462
+ "typeDescriptions": {
463
+ "typeIdentifier": "t_uint256",
464
+ "typeString": "uint256"
465
+ }
466
+ },
467
+ "value": null,
468
+ "visibility": "internal"
469
+ }
470
+ ],
471
+ "src": "346:16:8"
472
+ },
473
+ "returnParameters": {
474
+ "id": 2403,
475
+ "nodeType": "ParameterList",
476
+ "parameters": [],
477
+ "src": "371:0:8"
478
+ },
479
+ "scope": 2413,
480
+ "src": "332:40:8",
481
+ "stateMutability": "nonpayable",
482
+ "superFunction": null,
483
+ "visibility": "external"
484
+ },
485
+ {
486
+ "body": null,
487
+ "documentation": null,
488
+ "id": 2409,
489
+ "implemented": false,
490
+ "kind": "function",
491
+ "modifiers": [],
492
+ "name": "withdraw",
493
+ "nodeType": "FunctionDefinition",
494
+ "parameters": {
495
+ "id": 2407,
496
+ "nodeType": "ParameterList",
497
+ "parameters": [
498
+ {
499
+ "constant": false,
500
+ "id": 2406,
501
+ "name": "amount",
502
+ "nodeType": "VariableDeclaration",
503
+ "scope": 2409,
504
+ "src": "396:14:8",
505
+ "stateVariable": false,
506
+ "storageLocation": "default",
507
+ "typeDescriptions": {
508
+ "typeIdentifier": "t_uint256",
509
+ "typeString": "uint256"
510
+ },
511
+ "typeName": {
512
+ "id": 2405,
513
+ "name": "uint256",
514
+ "nodeType": "ElementaryTypeName",
515
+ "src": "396:7:8",
516
+ "typeDescriptions": {
517
+ "typeIdentifier": "t_uint256",
518
+ "typeString": "uint256"
519
+ }
520
+ },
521
+ "value": null,
522
+ "visibility": "internal"
523
+ }
524
+ ],
525
+ "src": "395:16:8"
526
+ },
527
+ "returnParameters": {
528
+ "id": 2408,
529
+ "nodeType": "ParameterList",
530
+ "parameters": [],
531
+ "src": "420:0:8"
532
+ },
533
+ "scope": 2413,
534
+ "src": "378:43:8",
535
+ "stateMutability": "nonpayable",
536
+ "superFunction": null,
537
+ "visibility": "external"
538
+ },
539
+ {
540
+ "body": null,
541
+ "documentation": null,
542
+ "id": 2412,
543
+ "implemented": false,
544
+ "kind": "function",
545
+ "modifiers": [],
546
+ "name": "getReward",
547
+ "nodeType": "FunctionDefinition",
548
+ "parameters": {
549
+ "id": 2410,
550
+ "nodeType": "ParameterList",
551
+ "parameters": [],
552
+ "src": "445:2:8"
553
+ },
554
+ "returnParameters": {
555
+ "id": 2411,
556
+ "nodeType": "ParameterList",
557
+ "parameters": [],
558
+ "src": "456:0:8"
559
+ },
560
+ "scope": 2413,
561
+ "src": "427:30:8",
562
+ "stateMutability": "nonpayable",
563
+ "superFunction": null,
564
+ "visibility": "external"
565
+ }
566
+ ],
567
+ "scope": 2414,
568
+ "src": "28:432:8"
569
+ }
570
+ ],
571
+ "src": "0:460:8"
572
+ },
573
+ "legacyAST": {
574
+ "absolutePath": "/C/Users/simor/Desktop/staked-lp-token/contracts/interfaces/IStakingRewards.sol",
575
+ "exportedSymbols": {
576
+ "IStakingRewards": [
577
+ 2413
578
+ ]
579
+ },
580
+ "id": 2414,
581
+ "nodeType": "SourceUnit",
582
+ "nodes": [
583
+ {
584
+ "id": 2375,
585
+ "literals": [
586
+ "solidity",
587
+ ">=",
588
+ "0.5",
589
+ ".0"
590
+ ],
591
+ "nodeType": "PragmaDirective",
592
+ "src": "0:24:8"
593
+ },
594
+ {
595
+ "baseContracts": [],
596
+ "contractDependencies": [],
597
+ "contractKind": "interface",
598
+ "documentation": null,
599
+ "fullyImplemented": false,
600
+ "id": 2413,
601
+ "linearizedBaseContracts": [
602
+ 2413
603
+ ],
604
+ "name": "IStakingRewards",
605
+ "nodeType": "ContractDefinition",
606
+ "nodes": [
607
+ {
608
+ "body": null,
609
+ "documentation": null,
610
+ "id": 2380,
611
+ "implemented": false,
612
+ "kind": "function",
613
+ "modifiers": [],
614
+ "name": "rewardsToken",
615
+ "nodeType": "FunctionDefinition",
616
+ "parameters": {
617
+ "id": 2376,
618
+ "nodeType": "ParameterList",
619
+ "parameters": [],
620
+ "src": "82:2:8"
621
+ },
622
+ "returnParameters": {
623
+ "id": 2379,
624
+ "nodeType": "ParameterList",
625
+ "parameters": [
626
+ {
627
+ "constant": false,
628
+ "id": 2378,
629
+ "name": "",
630
+ "nodeType": "VariableDeclaration",
631
+ "scope": 2380,
632
+ "src": "108:7:8",
633
+ "stateVariable": false,
634
+ "storageLocation": "default",
635
+ "typeDescriptions": {
636
+ "typeIdentifier": "t_address",
637
+ "typeString": "address"
638
+ },
639
+ "typeName": {
640
+ "id": 2377,
641
+ "name": "address",
642
+ "nodeType": "ElementaryTypeName",
643
+ "src": "108:7:8",
644
+ "stateMutability": "nonpayable",
645
+ "typeDescriptions": {
646
+ "typeIdentifier": "t_address",
647
+ "typeString": "address"
648
+ }
649
+ },
650
+ "value": null,
651
+ "visibility": "internal"
652
+ }
653
+ ],
654
+ "src": "107:9:8"
655
+ },
656
+ "scope": 2413,
657
+ "src": "61:56:8",
658
+ "stateMutability": "view",
659
+ "superFunction": null,
660
+ "visibility": "external"
661
+ },
662
+ {
663
+ "body": null,
664
+ "documentation": null,
665
+ "id": 2385,
666
+ "implemented": false,
667
+ "kind": "function",
668
+ "modifiers": [],
669
+ "name": "stakingToken",
670
+ "nodeType": "FunctionDefinition",
671
+ "parameters": {
672
+ "id": 2381,
673
+ "nodeType": "ParameterList",
674
+ "parameters": [],
675
+ "src": "144:2:8"
676
+ },
677
+ "returnParameters": {
678
+ "id": 2384,
679
+ "nodeType": "ParameterList",
680
+ "parameters": [
681
+ {
682
+ "constant": false,
683
+ "id": 2383,
684
+ "name": "",
685
+ "nodeType": "VariableDeclaration",
686
+ "scope": 2385,
687
+ "src": "170:7:8",
688
+ "stateVariable": false,
689
+ "storageLocation": "default",
690
+ "typeDescriptions": {
691
+ "typeIdentifier": "t_address",
692
+ "typeString": "address"
693
+ },
694
+ "typeName": {
695
+ "id": 2382,
696
+ "name": "address",
697
+ "nodeType": "ElementaryTypeName",
698
+ "src": "170:7:8",
699
+ "stateMutability": "nonpayable",
700
+ "typeDescriptions": {
701
+ "typeIdentifier": "t_address",
702
+ "typeString": "address"
703
+ }
704
+ },
705
+ "value": null,
706
+ "visibility": "internal"
707
+ }
708
+ ],
709
+ "src": "169:9:8"
710
+ },
711
+ "scope": 2413,
712
+ "src": "123:56:8",
713
+ "stateMutability": "view",
714
+ "superFunction": null,
715
+ "visibility": "external"
716
+ },
717
+ {
718
+ "body": null,
719
+ "documentation": null,
720
+ "id": 2392,
721
+ "implemented": false,
722
+ "kind": "function",
723
+ "modifiers": [],
724
+ "name": "balanceOf",
725
+ "nodeType": "FunctionDefinition",
726
+ "parameters": {
727
+ "id": 2388,
728
+ "nodeType": "ParameterList",
729
+ "parameters": [
730
+ {
731
+ "constant": false,
732
+ "id": 2387,
733
+ "name": "account",
734
+ "nodeType": "VariableDeclaration",
735
+ "scope": 2392,
736
+ "src": "204:15:8",
737
+ "stateVariable": false,
738
+ "storageLocation": "default",
739
+ "typeDescriptions": {
740
+ "typeIdentifier": "t_address",
741
+ "typeString": "address"
742
+ },
743
+ "typeName": {
744
+ "id": 2386,
745
+ "name": "address",
746
+ "nodeType": "ElementaryTypeName",
747
+ "src": "204:7:8",
748
+ "stateMutability": "nonpayable",
749
+ "typeDescriptions": {
750
+ "typeIdentifier": "t_address",
751
+ "typeString": "address"
752
+ }
753
+ },
754
+ "value": null,
755
+ "visibility": "internal"
756
+ }
757
+ ],
758
+ "src": "203:17:8"
759
+ },
760
+ "returnParameters": {
761
+ "id": 2391,
762
+ "nodeType": "ParameterList",
763
+ "parameters": [
764
+ {
765
+ "constant": false,
766
+ "id": 2390,
767
+ "name": "",
768
+ "nodeType": "VariableDeclaration",
769
+ "scope": 2392,
770
+ "src": "244:7:8",
771
+ "stateVariable": false,
772
+ "storageLocation": "default",
773
+ "typeDescriptions": {
774
+ "typeIdentifier": "t_uint256",
775
+ "typeString": "uint256"
776
+ },
777
+ "typeName": {
778
+ "id": 2389,
779
+ "name": "uint256",
780
+ "nodeType": "ElementaryTypeName",
781
+ "src": "244:7:8",
782
+ "typeDescriptions": {
783
+ "typeIdentifier": "t_uint256",
784
+ "typeString": "uint256"
785
+ }
786
+ },
787
+ "value": null,
788
+ "visibility": "internal"
789
+ }
790
+ ],
791
+ "src": "243:9:8"
792
+ },
793
+ "scope": 2413,
794
+ "src": "185:68:8",
795
+ "stateMutability": "view",
796
+ "superFunction": null,
797
+ "visibility": "external"
798
+ },
799
+ {
800
+ "body": null,
801
+ "documentation": null,
802
+ "id": 2399,
803
+ "implemented": false,
804
+ "kind": "function",
805
+ "modifiers": [],
806
+ "name": "earned",
807
+ "nodeType": "FunctionDefinition",
808
+ "parameters": {
809
+ "id": 2395,
810
+ "nodeType": "ParameterList",
811
+ "parameters": [
812
+ {
813
+ "constant": false,
814
+ "id": 2394,
815
+ "name": "account",
816
+ "nodeType": "VariableDeclaration",
817
+ "scope": 2399,
818
+ "src": "275:15:8",
819
+ "stateVariable": false,
820
+ "storageLocation": "default",
821
+ "typeDescriptions": {
822
+ "typeIdentifier": "t_address",
823
+ "typeString": "address"
824
+ },
825
+ "typeName": {
826
+ "id": 2393,
827
+ "name": "address",
828
+ "nodeType": "ElementaryTypeName",
829
+ "src": "275:7:8",
830
+ "stateMutability": "nonpayable",
831
+ "typeDescriptions": {
832
+ "typeIdentifier": "t_address",
833
+ "typeString": "address"
834
+ }
835
+ },
836
+ "value": null,
837
+ "visibility": "internal"
838
+ }
839
+ ],
840
+ "src": "274:17:8"
841
+ },
842
+ "returnParameters": {
843
+ "id": 2398,
844
+ "nodeType": "ParameterList",
845
+ "parameters": [
846
+ {
847
+ "constant": false,
848
+ "id": 2397,
849
+ "name": "",
850
+ "nodeType": "VariableDeclaration",
851
+ "scope": 2399,
852
+ "src": "315:7:8",
853
+ "stateVariable": false,
854
+ "storageLocation": "default",
855
+ "typeDescriptions": {
856
+ "typeIdentifier": "t_uint256",
857
+ "typeString": "uint256"
858
+ },
859
+ "typeName": {
860
+ "id": 2396,
861
+ "name": "uint256",
862
+ "nodeType": "ElementaryTypeName",
863
+ "src": "315:7:8",
864
+ "typeDescriptions": {
865
+ "typeIdentifier": "t_uint256",
866
+ "typeString": "uint256"
867
+ }
868
+ },
869
+ "value": null,
870
+ "visibility": "internal"
871
+ }
872
+ ],
873
+ "src": "314:9:8"
874
+ },
875
+ "scope": 2413,
876
+ "src": "259:65:8",
877
+ "stateMutability": "view",
878
+ "superFunction": null,
879
+ "visibility": "external"
880
+ },
881
+ {
882
+ "body": null,
883
+ "documentation": null,
884
+ "id": 2404,
885
+ "implemented": false,
886
+ "kind": "function",
887
+ "modifiers": [],
888
+ "name": "stake",
889
+ "nodeType": "FunctionDefinition",
890
+ "parameters": {
891
+ "id": 2402,
892
+ "nodeType": "ParameterList",
893
+ "parameters": [
894
+ {
895
+ "constant": false,
896
+ "id": 2401,
897
+ "name": "amount",
898
+ "nodeType": "VariableDeclaration",
899
+ "scope": 2404,
900
+ "src": "347:14:8",
901
+ "stateVariable": false,
902
+ "storageLocation": "default",
903
+ "typeDescriptions": {
904
+ "typeIdentifier": "t_uint256",
905
+ "typeString": "uint256"
906
+ },
907
+ "typeName": {
908
+ "id": 2400,
909
+ "name": "uint256",
910
+ "nodeType": "ElementaryTypeName",
911
+ "src": "347:7:8",
912
+ "typeDescriptions": {
913
+ "typeIdentifier": "t_uint256",
914
+ "typeString": "uint256"
915
+ }
916
+ },
917
+ "value": null,
918
+ "visibility": "internal"
919
+ }
920
+ ],
921
+ "src": "346:16:8"
922
+ },
923
+ "returnParameters": {
924
+ "id": 2403,
925
+ "nodeType": "ParameterList",
926
+ "parameters": [],
927
+ "src": "371:0:8"
928
+ },
929
+ "scope": 2413,
930
+ "src": "332:40:8",
931
+ "stateMutability": "nonpayable",
932
+ "superFunction": null,
933
+ "visibility": "external"
934
+ },
935
+ {
936
+ "body": null,
937
+ "documentation": null,
938
+ "id": 2409,
939
+ "implemented": false,
940
+ "kind": "function",
941
+ "modifiers": [],
942
+ "name": "withdraw",
943
+ "nodeType": "FunctionDefinition",
944
+ "parameters": {
945
+ "id": 2407,
946
+ "nodeType": "ParameterList",
947
+ "parameters": [
948
+ {
949
+ "constant": false,
950
+ "id": 2406,
951
+ "name": "amount",
952
+ "nodeType": "VariableDeclaration",
953
+ "scope": 2409,
954
+ "src": "396:14:8",
955
+ "stateVariable": false,
956
+ "storageLocation": "default",
957
+ "typeDescriptions": {
958
+ "typeIdentifier": "t_uint256",
959
+ "typeString": "uint256"
960
+ },
961
+ "typeName": {
962
+ "id": 2405,
963
+ "name": "uint256",
964
+ "nodeType": "ElementaryTypeName",
965
+ "src": "396:7:8",
966
+ "typeDescriptions": {
967
+ "typeIdentifier": "t_uint256",
968
+ "typeString": "uint256"
969
+ }
970
+ },
971
+ "value": null,
972
+ "visibility": "internal"
973
+ }
974
+ ],
975
+ "src": "395:16:8"
976
+ },
977
+ "returnParameters": {
978
+ "id": 2408,
979
+ "nodeType": "ParameterList",
980
+ "parameters": [],
981
+ "src": "420:0:8"
982
+ },
983
+ "scope": 2413,
984
+ "src": "378:43:8",
985
+ "stateMutability": "nonpayable",
986
+ "superFunction": null,
987
+ "visibility": "external"
988
+ },
989
+ {
990
+ "body": null,
991
+ "documentation": null,
992
+ "id": 2412,
993
+ "implemented": false,
994
+ "kind": "function",
995
+ "modifiers": [],
996
+ "name": "getReward",
997
+ "nodeType": "FunctionDefinition",
998
+ "parameters": {
999
+ "id": 2410,
1000
+ "nodeType": "ParameterList",
1001
+ "parameters": [],
1002
+ "src": "445:2:8"
1003
+ },
1004
+ "returnParameters": {
1005
+ "id": 2411,
1006
+ "nodeType": "ParameterList",
1007
+ "parameters": [],
1008
+ "src": "456:0:8"
1009
+ },
1010
+ "scope": 2413,
1011
+ "src": "427:30:8",
1012
+ "stateMutability": "nonpayable",
1013
+ "superFunction": null,
1014
+ "visibility": "external"
1015
+ }
1016
+ ],
1017
+ "scope": 2414,
1018
+ "src": "28:432:8"
1019
+ }
1020
+ ],
1021
+ "src": "0:460:8"
1022
+ },
1023
+ "compiler": {
1024
+ "name": "solc",
1025
+ "version": "0.5.16+commit.9c3226ce.Emscripten.clang"
1026
+ },
1027
+ "networks": {},
1028
+ "schemaVersion": "3.3.2",
1029
+ "updatedAt": "2021-06-04T15:59:20.444Z",
1030
+ "devdoc": {
1031
+ "methods": {}
1032
+ },
1033
+ "userdoc": {
1034
+ "methods": {}
1035
+ }
1036
+ }