@underscore-finance/sdk 1.0.11 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (310) hide show
  1. package/dist/contracts/AaveV3.d.ts +603 -279
  2. package/dist/contracts/AaveV3.d.ts.map +1 -1
  3. package/dist/contracts/AaveV3.js +718 -331
  4. package/dist/contracts/AeroClassic.d.ts +4 -17
  5. package/dist/contracts/AeroClassic.d.ts.map +1 -1
  6. package/dist/contracts/AeroClassic.js +5 -24
  7. package/dist/contracts/AeroSlipstream.d.ts +4 -17
  8. package/dist/contracts/AeroSlipstream.d.ts.map +1 -1
  9. package/dist/contracts/AeroSlipstream.js +5 -24
  10. package/dist/contracts/Appraiser.d.ts +4 -0
  11. package/dist/contracts/Appraiser.d.ts.map +1 -1
  12. package/dist/contracts/Appraiser.js +5 -1
  13. package/dist/contracts/CompoundV3.d.ts +556 -246
  14. package/dist/contracts/CompoundV3.d.ts.map +1 -1
  15. package/dist/contracts/CompoundV3.js +695 -327
  16. package/dist/contracts/Curve.d.ts +4 -17
  17. package/dist/contracts/Curve.d.ts.map +1 -1
  18. package/dist/contracts/Curve.js +5 -24
  19. package/dist/contracts/Euler.d.ts +581 -253
  20. package/dist/contracts/Euler.d.ts.map +1 -1
  21. package/dist/contracts/Euler.js +714 -324
  22. package/dist/contracts/Fluid.d.ts +644 -302
  23. package/dist/contracts/Fluid.d.ts.map +1 -1
  24. package/dist/contracts/Fluid.js +743 -334
  25. package/dist/contracts/{Agent_v1.d.ts → FortyAcres.d.ts} +1516 -1699
  26. package/dist/contracts/FortyAcres.d.ts.map +1 -0
  27. package/dist/contracts/{AgentTemplate.js → FortyAcres.js} +1681 -1946
  28. package/dist/contracts/LegoBook.d.ts +7 -0
  29. package/dist/contracts/LegoBook.d.ts.map +1 -1
  30. package/dist/contracts/LegoBook.js +9 -1
  31. package/dist/contracts/LegoTools.d.ts +4 -0
  32. package/dist/contracts/LegoTools.d.ts.map +1 -1
  33. package/dist/contracts/LegoTools.js +5 -1
  34. package/dist/contracts/Moonwell.d.ts +582 -254
  35. package/dist/contracts/Moonwell.d.ts.map +1 -1
  36. package/dist/contracts/Moonwell.js +705 -315
  37. package/dist/contracts/Morpho.d.ts +580 -252
  38. package/dist/contracts/Morpho.d.ts.map +1 -1
  39. package/dist/contracts/Morpho.js +723 -333
  40. package/dist/contracts/RipeLego.d.ts +719 -363
  41. package/dist/contracts/RipeLego.d.ts.map +1 -1
  42. package/dist/contracts/RipeLego.js +839 -413
  43. package/dist/contracts/SignatureHelperV1.d.ts +229 -229
  44. package/dist/contracts/SignatureHelperV1.js +333 -333
  45. package/dist/contracts/SwitchboardCharlie.d.ts +1470 -0
  46. package/dist/contracts/SwitchboardCharlie.d.ts.map +1 -0
  47. package/dist/contracts/{v0_3_OracleRegistry.js → SwitchboardCharlie.js} +954 -691
  48. package/dist/contracts/{v0_1_Agent.d.ts → UnderscoreLego.d.ts} +1469 -1663
  49. package/dist/contracts/UnderscoreLego.d.ts.map +1 -0
  50. package/dist/contracts/{Agent_v1.js → UnderscoreLego.js} +1601 -1882
  51. package/dist/contracts/UndyBtc.d.ts +1487 -0
  52. package/dist/contracts/UndyBtc.d.ts.map +1 -0
  53. package/dist/contracts/{LegoUniswapV3.js → UndyBtc.js} +991 -754
  54. package/dist/contracts/UndyEth.d.ts +1487 -0
  55. package/dist/contracts/UndyEth.d.ts.map +1 -0
  56. package/dist/contracts/{v0_3_LegoUniswapV3.js → UndyEth.js} +991 -754
  57. package/dist/contracts/UndyRewardsLego.d.ts +3 -0
  58. package/dist/contracts/UndyRewardsLego.d.ts.map +1 -1
  59. package/dist/contracts/UndyRewardsLego.js +5 -1
  60. package/dist/contracts/UndyUsd.d.ts +1487 -0
  61. package/dist/contracts/UndyUsd.d.ts.map +1 -0
  62. package/dist/contracts/{LegoAeroSlipstream.js → UndyUsd.js} +1009 -725
  63. package/dist/contracts/UniswapV2.d.ts +4 -17
  64. package/dist/contracts/UniswapV2.d.ts.map +1 -1
  65. package/dist/contracts/UniswapV2.js +5 -24
  66. package/dist/contracts/UniswapV3.d.ts +4 -17
  67. package/dist/contracts/UniswapV3.d.ts.map +1 -1
  68. package/dist/contracts/UniswapV3.js +5 -24
  69. package/dist/contracts/VaultRegistry.d.ts +2265 -0
  70. package/dist/contracts/VaultRegistry.d.ts.map +1 -0
  71. package/dist/contracts/VaultRegistry.js +2848 -0
  72. package/dist/contracts/index.d.ts +7 -0
  73. package/dist/contracts/index.d.ts.map +1 -1
  74. package/dist/contracts/index.js +7 -0
  75. package/dist/contracts/sdk.d.ts +14 -0
  76. package/dist/contracts/sdk.d.ts.map +1 -1
  77. package/dist/contracts/sdk.js +14 -0
  78. package/dist/getContracts.d.ts +1 -0
  79. package/dist/getContracts.d.ts.map +1 -1
  80. package/dist/getContracts.js +1 -0
  81. package/package.json +1 -1
  82. package/dist/contracts/AddyRegistry.d.ts +0 -1109
  83. package/dist/contracts/AddyRegistry.d.ts.map +0 -1
  84. package/dist/contracts/AddyRegistry.js +0 -1392
  85. package/dist/contracts/AddyRegistry_v1.d.ts +0 -473
  86. package/dist/contracts/AddyRegistry_v1.d.ts.map +0 -1
  87. package/dist/contracts/AddyRegistry_v1.js +0 -594
  88. package/dist/contracts/AddyRegistry_v2.d.ts +0 -1050
  89. package/dist/contracts/AddyRegistry_v2.d.ts.map +0 -1
  90. package/dist/contracts/AddyRegistry_v2.js +0 -1313
  91. package/dist/contracts/AgentFactory.d.ts +0 -1665
  92. package/dist/contracts/AgentFactory.d.ts.map +0 -1
  93. package/dist/contracts/AgentFactory.js +0 -2078
  94. package/dist/contracts/AgentFactory_v1.d.ts +0 -1054
  95. package/dist/contracts/AgentFactory_v1.d.ts.map +0 -1
  96. package/dist/contracts/AgentFactory_v1.js +0 -1336
  97. package/dist/contracts/AgentFactory_v2.d.ts +0 -1275
  98. package/dist/contracts/AgentFactory_v2.d.ts.map +0 -1
  99. package/dist/contracts/AgentFactory_v2.js +0 -1609
  100. package/dist/contracts/AgentTemplate.d.ts +0 -2629
  101. package/dist/contracts/AgentTemplate.d.ts.map +0 -1
  102. package/dist/contracts/Agent_v1.d.ts.map +0 -1
  103. package/dist/contracts/Agent_v2.d.ts +0 -2709
  104. package/dist/contracts/Agent_v2.d.ts.map +0 -1
  105. package/dist/contracts/Agent_v2.js +0 -3458
  106. package/dist/contracts/ChainlinkFeeds.d.ts +0 -706
  107. package/dist/contracts/ChainlinkFeeds.d.ts.map +0 -1
  108. package/dist/contracts/ChainlinkFeeds.js +0 -900
  109. package/dist/contracts/LegoAaveV3.d.ts +0 -1033
  110. package/dist/contracts/LegoAaveV3.d.ts.map +0 -1
  111. package/dist/contracts/LegoAaveV3.js +0 -1330
  112. package/dist/contracts/LegoAeroClassic.d.ts +0 -1204
  113. package/dist/contracts/LegoAeroClassic.d.ts.map +0 -1
  114. package/dist/contracts/LegoAeroClassic.js +0 -1546
  115. package/dist/contracts/LegoAeroSlipstream.d.ts +0 -1300
  116. package/dist/contracts/LegoAeroSlipstream.d.ts.map +0 -1
  117. package/dist/contracts/LegoCommon.d.ts +0 -164
  118. package/dist/contracts/LegoCommon.d.ts.map +0 -1
  119. package/dist/contracts/LegoCommon.js +0 -202
  120. package/dist/contracts/LegoCompoundV3.d.ts +0 -1060
  121. package/dist/contracts/LegoCompoundV3.d.ts.map +0 -1
  122. package/dist/contracts/LegoCompoundV3.js +0 -1365
  123. package/dist/contracts/LegoCredit.d.ts +0 -140
  124. package/dist/contracts/LegoCredit.d.ts.map +0 -1
  125. package/dist/contracts/LegoCredit.js +0 -179
  126. package/dist/contracts/LegoCurve.d.ts +0 -1189
  127. package/dist/contracts/LegoCurve.d.ts.map +0 -1
  128. package/dist/contracts/LegoCurve.js +0 -1519
  129. package/dist/contracts/LegoDex.d.ts +0 -587
  130. package/dist/contracts/LegoDex.d.ts.map +0 -1
  131. package/dist/contracts/LegoDex.js +0 -774
  132. package/dist/contracts/LegoEuler.d.ts +0 -1074
  133. package/dist/contracts/LegoEuler.d.ts.map +0 -1
  134. package/dist/contracts/LegoEuler.js +0 -1383
  135. package/dist/contracts/LegoFluid.d.ts +0 -1025
  136. package/dist/contracts/LegoFluid.d.ts.map +0 -1
  137. package/dist/contracts/LegoFluid.js +0 -1320
  138. package/dist/contracts/LegoHelper.d.ts +0 -1563
  139. package/dist/contracts/LegoHelper.d.ts.map +0 -1
  140. package/dist/contracts/LegoHelper.js +0 -1947
  141. package/dist/contracts/LegoMoonwell.d.ts +0 -1042
  142. package/dist/contracts/LegoMoonwell.d.ts.map +0 -1
  143. package/dist/contracts/LegoMoonwell.js +0 -1342
  144. package/dist/contracts/LegoMorpho.d.ts +0 -1074
  145. package/dist/contracts/LegoMorpho.d.ts.map +0 -1
  146. package/dist/contracts/LegoMorpho.js +0 -1383
  147. package/dist/contracts/LegoRegistry.d.ts +0 -1079
  148. package/dist/contracts/LegoRegistry.d.ts.map +0 -1
  149. package/dist/contracts/LegoRegistry.js +0 -1368
  150. package/dist/contracts/LegoSky.d.ts +0 -923
  151. package/dist/contracts/LegoSky.d.ts.map +0 -1
  152. package/dist/contracts/LegoSky.js +0 -1180
  153. package/dist/contracts/LegoUniswapV0_2.d.ts +0 -1204
  154. package/dist/contracts/LegoUniswapV0_2.d.ts.map +0 -1
  155. package/dist/contracts/LegoUniswapV0_2.js +0 -1546
  156. package/dist/contracts/LegoUniswapV2.d.ts +0 -1204
  157. package/dist/contracts/LegoUniswapV2.d.ts.map +0 -1
  158. package/dist/contracts/LegoUniswapV2.js +0 -1546
  159. package/dist/contracts/LegoUniswapV3.d.ts +0 -1338
  160. package/dist/contracts/LegoUniswapV3.d.ts.map +0 -1
  161. package/dist/contracts/LegoYield.d.ts +0 -390
  162. package/dist/contracts/LegoYield.d.ts.map +0 -1
  163. package/dist/contracts/LegoYield.js +0 -511
  164. package/dist/contracts/OracleParser.d.ts +0 -207
  165. package/dist/contracts/OracleParser.d.ts.map +0 -1
  166. package/dist/contracts/OracleParser.js +0 -264
  167. package/dist/contracts/OracleRegistry.d.ts +0 -1221
  168. package/dist/contracts/OracleRegistry.d.ts.map +0 -1
  169. package/dist/contracts/OracleRegistry.js +0 -1562
  170. package/dist/contracts/PriceSheets.d.ts +0 -1127
  171. package/dist/contracts/PriceSheets.d.ts.map +0 -1
  172. package/dist/contracts/PriceSheets.js +0 -1383
  173. package/dist/contracts/PythFeeds.d.ts +0 -640
  174. package/dist/contracts/PythFeeds.d.ts.map +0 -1
  175. package/dist/contracts/PythFeeds.js +0 -813
  176. package/dist/contracts/StorkFeeds.d.ts +0 -640
  177. package/dist/contracts/StorkFeeds.d.ts.map +0 -1
  178. package/dist/contracts/StorkFeeds.js +0 -813
  179. package/dist/contracts/UserWalletConfig_v1.d.ts +0 -1400
  180. package/dist/contracts/UserWalletConfig_v1.d.ts.map +0 -1
  181. package/dist/contracts/UserWalletConfig_v1.js +0 -1676
  182. package/dist/contracts/UserWalletConfig_v2.d.ts +0 -1468
  183. package/dist/contracts/UserWalletConfig_v2.d.ts.map +0 -1
  184. package/dist/contracts/UserWalletConfig_v2.js +0 -1764
  185. package/dist/contracts/UserWallet_v1.d.ts +0 -1980
  186. package/dist/contracts/UserWallet_v1.d.ts.map +0 -1
  187. package/dist/contracts/UserWallet_v1.js +0 -2581
  188. package/dist/contracts/UserWallet_v2.d.ts +0 -1958
  189. package/dist/contracts/UserWallet_v2.d.ts.map +0 -1
  190. package/dist/contracts/UserWallet_v2.js +0 -2553
  191. package/dist/contracts/WalletConfig.d.ts +0 -1398
  192. package/dist/contracts/WalletConfig.d.ts.map +0 -1
  193. package/dist/contracts/WalletConfig.js +0 -1674
  194. package/dist/contracts/WalletFunds.d.ts +0 -1978
  195. package/dist/contracts/WalletFunds.d.ts.map +0 -1
  196. package/dist/contracts/WalletFunds.js +0 -2579
  197. package/dist/contracts/v0_1_AddyRegistry.d.ts +0 -473
  198. package/dist/contracts/v0_1_AddyRegistry.d.ts.map +0 -1
  199. package/dist/contracts/v0_1_AddyRegistry.js +0 -594
  200. package/dist/contracts/v0_1_Agent.d.ts.map +0 -1
  201. package/dist/contracts/v0_1_Agent.js +0 -3372
  202. package/dist/contracts/v0_1_AgentFactory.d.ts +0 -1054
  203. package/dist/contracts/v0_1_AgentFactory.d.ts.map +0 -1
  204. package/dist/contracts/v0_1_AgentFactory.js +0 -1336
  205. package/dist/contracts/v0_1_UserWallet.d.ts +0 -1980
  206. package/dist/contracts/v0_1_UserWallet.d.ts.map +0 -1
  207. package/dist/contracts/v0_1_UserWallet.js +0 -2581
  208. package/dist/contracts/v0_1_UserWalletConfig.d.ts +0 -1400
  209. package/dist/contracts/v0_1_UserWalletConfig.d.ts.map +0 -1
  210. package/dist/contracts/v0_1_UserWalletConfig.js +0 -1676
  211. package/dist/contracts/v0_2_AddyRegistry.d.ts +0 -1050
  212. package/dist/contracts/v0_2_AddyRegistry.d.ts.map +0 -1
  213. package/dist/contracts/v0_2_AddyRegistry.js +0 -1313
  214. package/dist/contracts/v0_2_Agent.d.ts +0 -2709
  215. package/dist/contracts/v0_2_Agent.d.ts.map +0 -1
  216. package/dist/contracts/v0_2_Agent.js +0 -3458
  217. package/dist/contracts/v0_2_AgentFactory.d.ts +0 -1275
  218. package/dist/contracts/v0_2_AgentFactory.d.ts.map +0 -1
  219. package/dist/contracts/v0_2_AgentFactory.js +0 -1609
  220. package/dist/contracts/v0_2_UserWallet.d.ts +0 -1958
  221. package/dist/contracts/v0_2_UserWallet.d.ts.map +0 -1
  222. package/dist/contracts/v0_2_UserWallet.js +0 -2553
  223. package/dist/contracts/v0_2_UserWalletConfig.d.ts +0 -1468
  224. package/dist/contracts/v0_2_UserWalletConfig.d.ts.map +0 -1
  225. package/dist/contracts/v0_2_UserWalletConfig.js +0 -1764
  226. package/dist/contracts/v0_3_AddyRegistry.d.ts +0 -1109
  227. package/dist/contracts/v0_3_AddyRegistry.d.ts.map +0 -1
  228. package/dist/contracts/v0_3_AddyRegistry.js +0 -1392
  229. package/dist/contracts/v0_3_Agent.d.ts +0 -2709
  230. package/dist/contracts/v0_3_Agent.d.ts.map +0 -1
  231. package/dist/contracts/v0_3_Agent.js +0 -3458
  232. package/dist/contracts/v0_3_AgentFactory.d.ts +0 -1665
  233. package/dist/contracts/v0_3_AgentFactory.d.ts.map +0 -1
  234. package/dist/contracts/v0_3_AgentFactory.js +0 -2078
  235. package/dist/contracts/v0_3_ChainlinkFeeds.d.ts +0 -706
  236. package/dist/contracts/v0_3_ChainlinkFeeds.d.ts.map +0 -1
  237. package/dist/contracts/v0_3_ChainlinkFeeds.js +0 -900
  238. package/dist/contracts/v0_3_LegoAaveV3.d.ts +0 -1033
  239. package/dist/contracts/v0_3_LegoAaveV3.d.ts.map +0 -1
  240. package/dist/contracts/v0_3_LegoAaveV3.js +0 -1330
  241. package/dist/contracts/v0_3_LegoAeroClassic.d.ts +0 -1204
  242. package/dist/contracts/v0_3_LegoAeroClassic.d.ts.map +0 -1
  243. package/dist/contracts/v0_3_LegoAeroClassic.js +0 -1546
  244. package/dist/contracts/v0_3_LegoAeroSlipstream.d.ts +0 -1300
  245. package/dist/contracts/v0_3_LegoAeroSlipstream.d.ts.map +0 -1
  246. package/dist/contracts/v0_3_LegoAeroSlipstream.js +0 -1671
  247. package/dist/contracts/v0_3_LegoCommon.d.ts +0 -164
  248. package/dist/contracts/v0_3_LegoCommon.d.ts.map +0 -1
  249. package/dist/contracts/v0_3_LegoCommon.js +0 -202
  250. package/dist/contracts/v0_3_LegoCompoundV3.d.ts +0 -1060
  251. package/dist/contracts/v0_3_LegoCompoundV3.d.ts.map +0 -1
  252. package/dist/contracts/v0_3_LegoCompoundV3.js +0 -1365
  253. package/dist/contracts/v0_3_LegoCredit.d.ts +0 -140
  254. package/dist/contracts/v0_3_LegoCredit.d.ts.map +0 -1
  255. package/dist/contracts/v0_3_LegoCredit.js +0 -179
  256. package/dist/contracts/v0_3_LegoCurve.d.ts +0 -1189
  257. package/dist/contracts/v0_3_LegoCurve.d.ts.map +0 -1
  258. package/dist/contracts/v0_3_LegoCurve.js +0 -1519
  259. package/dist/contracts/v0_3_LegoDex.d.ts +0 -587
  260. package/dist/contracts/v0_3_LegoDex.d.ts.map +0 -1
  261. package/dist/contracts/v0_3_LegoDex.js +0 -774
  262. package/dist/contracts/v0_3_LegoEuler.d.ts +0 -1074
  263. package/dist/contracts/v0_3_LegoEuler.d.ts.map +0 -1
  264. package/dist/contracts/v0_3_LegoEuler.js +0 -1383
  265. package/dist/contracts/v0_3_LegoFluid.d.ts +0 -1025
  266. package/dist/contracts/v0_3_LegoFluid.d.ts.map +0 -1
  267. package/dist/contracts/v0_3_LegoFluid.js +0 -1320
  268. package/dist/contracts/v0_3_LegoHelper.d.ts +0 -1563
  269. package/dist/contracts/v0_3_LegoHelper.d.ts.map +0 -1
  270. package/dist/contracts/v0_3_LegoHelper.js +0 -1947
  271. package/dist/contracts/v0_3_LegoMoonwell.d.ts +0 -1042
  272. package/dist/contracts/v0_3_LegoMoonwell.d.ts.map +0 -1
  273. package/dist/contracts/v0_3_LegoMoonwell.js +0 -1342
  274. package/dist/contracts/v0_3_LegoMorpho.d.ts +0 -1074
  275. package/dist/contracts/v0_3_LegoMorpho.d.ts.map +0 -1
  276. package/dist/contracts/v0_3_LegoMorpho.js +0 -1383
  277. package/dist/contracts/v0_3_LegoRegistry.d.ts +0 -1079
  278. package/dist/contracts/v0_3_LegoRegistry.d.ts.map +0 -1
  279. package/dist/contracts/v0_3_LegoRegistry.js +0 -1368
  280. package/dist/contracts/v0_3_LegoSky.d.ts +0 -923
  281. package/dist/contracts/v0_3_LegoSky.d.ts.map +0 -1
  282. package/dist/contracts/v0_3_LegoSky.js +0 -1180
  283. package/dist/contracts/v0_3_LegoUniswapV3.d.ts +0 -1338
  284. package/dist/contracts/v0_3_LegoUniswapV3.d.ts.map +0 -1
  285. package/dist/contracts/v0_3_LegoYield.d.ts +0 -390
  286. package/dist/contracts/v0_3_LegoYield.d.ts.map +0 -1
  287. package/dist/contracts/v0_3_LegoYield.js +0 -511
  288. package/dist/contracts/v0_3_OracleParser.d.ts +0 -207
  289. package/dist/contracts/v0_3_OracleParser.d.ts.map +0 -1
  290. package/dist/contracts/v0_3_OracleParser.js +0 -264
  291. package/dist/contracts/v0_3_OracleRegistry.d.ts +0 -1221
  292. package/dist/contracts/v0_3_OracleRegistry.d.ts.map +0 -1
  293. package/dist/contracts/v0_3_PriceSheets.d.ts +0 -1127
  294. package/dist/contracts/v0_3_PriceSheets.d.ts.map +0 -1
  295. package/dist/contracts/v0_3_PriceSheets.js +0 -1383
  296. package/dist/contracts/v0_3_PythFeeds.d.ts +0 -640
  297. package/dist/contracts/v0_3_PythFeeds.d.ts.map +0 -1
  298. package/dist/contracts/v0_3_PythFeeds.js +0 -813
  299. package/dist/contracts/v0_3_StorkFeeds.d.ts +0 -640
  300. package/dist/contracts/v0_3_StorkFeeds.d.ts.map +0 -1
  301. package/dist/contracts/v0_3_StorkFeeds.js +0 -813
  302. package/dist/contracts/v0_3_UserWallet.d.ts +0 -1975
  303. package/dist/contracts/v0_3_UserWallet.d.ts.map +0 -1
  304. package/dist/contracts/v0_3_UserWallet.js +0 -2577
  305. package/dist/contracts/v0_3_UserWalletConfig.d.ts +0 -1852
  306. package/dist/contracts/v0_3_UserWalletConfig.d.ts.map +0 -1
  307. package/dist/contracts/v0_3_UserWalletConfig.js +0 -2263
  308. package/dist/getLegacyContracts.d.ts +0 -69
  309. package/dist/getLegacyContracts.d.ts.map +0 -1
  310. package/dist/getLegacyContracts.js +0 -55
@@ -1,813 +0,0 @@
1
- /* Autogenerated file. Do not edit manually. */
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /* @ts-nocheck */
5
- import { singleQuery, mutate } from '@dappql/async';
6
- export const abi = [
7
- {
8
- anonymous: false,
9
- inputs: [
10
- {
11
- indexed: true,
12
- name: 'asset',
13
- type: 'address',
14
- },
15
- {
16
- indexed: true,
17
- name: 'feedId',
18
- type: 'bytes32',
19
- },
20
- ],
21
- name: 'StorkFeedAdded',
22
- type: 'event',
23
- },
24
- {
25
- anonymous: false,
26
- inputs: [
27
- {
28
- indexed: true,
29
- name: 'asset',
30
- type: 'address',
31
- },
32
- ],
33
- name: 'StorkFeedDisabled',
34
- type: 'event',
35
- },
36
- {
37
- anonymous: false,
38
- inputs: [
39
- {
40
- indexed: false,
41
- name: 'payload',
42
- type: 'bytes',
43
- },
44
- {
45
- indexed: false,
46
- name: 'feeAmount',
47
- type: 'uint256',
48
- },
49
- {
50
- indexed: true,
51
- name: 'caller',
52
- type: 'address',
53
- },
54
- ],
55
- name: 'StorkPriceUpdated',
56
- type: 'event',
57
- },
58
- {
59
- anonymous: false,
60
- inputs: [
61
- {
62
- indexed: true,
63
- name: 'recipient',
64
- type: 'address',
65
- },
66
- {
67
- indexed: false,
68
- name: 'amount',
69
- type: 'uint256',
70
- },
71
- ],
72
- name: 'EthRecoveredFromStork',
73
- type: 'event',
74
- },
75
- {
76
- anonymous: false,
77
- inputs: [
78
- {
79
- indexed: true,
80
- name: 'prevGov',
81
- type: 'address',
82
- },
83
- {
84
- indexed: true,
85
- name: 'newGov',
86
- type: 'address',
87
- },
88
- {
89
- indexed: false,
90
- name: 'confirmBlock',
91
- type: 'uint256',
92
- },
93
- ],
94
- name: 'GovChangeInitiated',
95
- type: 'event',
96
- },
97
- {
98
- anonymous: false,
99
- inputs: [
100
- {
101
- indexed: true,
102
- name: 'prevGov',
103
- type: 'address',
104
- },
105
- {
106
- indexed: true,
107
- name: 'newGov',
108
- type: 'address',
109
- },
110
- {
111
- indexed: false,
112
- name: 'initiatedBlock',
113
- type: 'uint256',
114
- },
115
- {
116
- indexed: false,
117
- name: 'confirmBlock',
118
- type: 'uint256',
119
- },
120
- ],
121
- name: 'GovChangeConfirmed',
122
- type: 'event',
123
- },
124
- {
125
- anonymous: false,
126
- inputs: [
127
- {
128
- indexed: true,
129
- name: 'cancelledGov',
130
- type: 'address',
131
- },
132
- {
133
- indexed: false,
134
- name: 'initiatedBlock',
135
- type: 'uint256',
136
- },
137
- {
138
- indexed: false,
139
- name: 'confirmBlock',
140
- type: 'uint256',
141
- },
142
- ],
143
- name: 'GovChangeCancelled',
144
- type: 'event',
145
- },
146
- {
147
- anonymous: false,
148
- inputs: [
149
- {
150
- indexed: false,
151
- name: 'delayBlocks',
152
- type: 'uint256',
153
- },
154
- ],
155
- name: 'GovChangeDelaySet',
156
- type: 'event',
157
- },
158
- {
159
- inputs: [
160
- {
161
- name: '_address',
162
- type: 'address',
163
- },
164
- ],
165
- name: 'canGovern',
166
- outputs: [
167
- {
168
- name: '',
169
- type: 'bool',
170
- },
171
- ],
172
- stateMutability: 'view',
173
- type: 'function',
174
- },
175
- {
176
- inputs: [],
177
- name: 'hasPendingGovChange',
178
- outputs: [
179
- {
180
- name: '',
181
- type: 'bool',
182
- },
183
- ],
184
- stateMutability: 'view',
185
- type: 'function',
186
- },
187
- {
188
- inputs: [
189
- {
190
- name: '_newGov',
191
- type: 'address',
192
- },
193
- ],
194
- name: 'changeGovernance',
195
- outputs: [],
196
- stateMutability: 'nonpayable',
197
- type: 'function',
198
- },
199
- {
200
- inputs: [],
201
- name: 'confirmGovernanceChange',
202
- outputs: [],
203
- stateMutability: 'nonpayable',
204
- type: 'function',
205
- },
206
- {
207
- inputs: [],
208
- name: 'cancelGovernanceChange',
209
- outputs: [],
210
- stateMutability: 'nonpayable',
211
- type: 'function',
212
- },
213
- {
214
- inputs: [
215
- {
216
- name: '_numBlocks',
217
- type: 'uint256',
218
- },
219
- ],
220
- name: 'setGovernanceChangeDelay',
221
- outputs: [],
222
- stateMutability: 'nonpayable',
223
- type: 'function',
224
- },
225
- {
226
- inputs: [],
227
- name: 'governance',
228
- outputs: [
229
- {
230
- name: '',
231
- type: 'address',
232
- },
233
- ],
234
- stateMutability: 'view',
235
- type: 'function',
236
- },
237
- {
238
- inputs: [],
239
- name: 'pendingGov',
240
- outputs: [
241
- {
242
- components: [
243
- {
244
- name: 'newGov',
245
- type: 'address',
246
- },
247
- {
248
- name: 'initiatedBlock',
249
- type: 'uint256',
250
- },
251
- {
252
- name: 'confirmBlock',
253
- type: 'uint256',
254
- },
255
- ],
256
- name: '',
257
- type: 'tuple',
258
- },
259
- ],
260
- stateMutability: 'view',
261
- type: 'function',
262
- },
263
- {
264
- inputs: [],
265
- name: 'govChangeDelay',
266
- outputs: [
267
- {
268
- name: '',
269
- type: 'uint256',
270
- },
271
- ],
272
- stateMutability: 'view',
273
- type: 'function',
274
- },
275
- {
276
- inputs: [],
277
- name: 'MIN_GOV_CHANGE_DELAY',
278
- outputs: [
279
- {
280
- name: '',
281
- type: 'uint256',
282
- },
283
- ],
284
- stateMutability: 'view',
285
- type: 'function',
286
- },
287
- {
288
- inputs: [],
289
- name: 'MAX_GOV_CHANGE_DELAY',
290
- outputs: [
291
- {
292
- name: '',
293
- type: 'uint256',
294
- },
295
- ],
296
- stateMutability: 'view',
297
- type: 'function',
298
- },
299
- {
300
- inputs: [],
301
- name: 'getConfiguredAssets',
302
- outputs: [
303
- {
304
- name: '',
305
- type: 'address[]',
306
- },
307
- ],
308
- stateMutability: 'view',
309
- type: 'function',
310
- },
311
- {
312
- inputs: [
313
- {
314
- name: 'arg0',
315
- type: 'uint256',
316
- },
317
- ],
318
- name: 'assets',
319
- outputs: [
320
- {
321
- name: '',
322
- type: 'address',
323
- },
324
- ],
325
- stateMutability: 'view',
326
- type: 'function',
327
- },
328
- {
329
- inputs: [
330
- {
331
- name: 'arg0',
332
- type: 'address',
333
- },
334
- ],
335
- name: 'indexOfAsset',
336
- outputs: [
337
- {
338
- name: '',
339
- type: 'uint256',
340
- },
341
- ],
342
- stateMutability: 'view',
343
- type: 'function',
344
- },
345
- {
346
- inputs: [],
347
- name: 'numAssets',
348
- outputs: [
349
- {
350
- name: '',
351
- type: 'uint256',
352
- },
353
- ],
354
- stateMutability: 'view',
355
- type: 'function',
356
- },
357
- {
358
- stateMutability: 'payable',
359
- type: 'fallback',
360
- },
361
- {
362
- inputs: [
363
- {
364
- name: '_asset',
365
- type: 'address',
366
- },
367
- ],
368
- name: 'getPrice',
369
- outputs: [
370
- {
371
- name: '',
372
- type: 'uint256',
373
- },
374
- ],
375
- stateMutability: 'view',
376
- type: 'function',
377
- },
378
- {
379
- inputs: [
380
- {
381
- name: '_asset',
382
- type: 'address',
383
- },
384
- {
385
- name: '_staleTime',
386
- type: 'uint256',
387
- },
388
- ],
389
- name: 'getPrice',
390
- outputs: [
391
- {
392
- name: '',
393
- type: 'uint256',
394
- },
395
- ],
396
- stateMutability: 'view',
397
- type: 'function',
398
- },
399
- {
400
- inputs: [
401
- {
402
- name: '_asset',
403
- type: 'address',
404
- },
405
- {
406
- name: '_staleTime',
407
- type: 'uint256',
408
- },
409
- {
410
- name: '_oracleRegistry',
411
- type: 'address',
412
- },
413
- ],
414
- name: 'getPrice',
415
- outputs: [
416
- {
417
- name: '',
418
- type: 'uint256',
419
- },
420
- ],
421
- stateMutability: 'view',
422
- type: 'function',
423
- },
424
- {
425
- inputs: [
426
- {
427
- name: '_asset',
428
- type: 'address',
429
- },
430
- ],
431
- name: 'getPriceAndHasFeed',
432
- outputs: [
433
- {
434
- name: '',
435
- type: 'uint256',
436
- },
437
- {
438
- name: '',
439
- type: 'bool',
440
- },
441
- ],
442
- stateMutability: 'view',
443
- type: 'function',
444
- },
445
- {
446
- inputs: [
447
- {
448
- name: '_asset',
449
- type: 'address',
450
- },
451
- {
452
- name: '_staleTime',
453
- type: 'uint256',
454
- },
455
- ],
456
- name: 'getPriceAndHasFeed',
457
- outputs: [
458
- {
459
- name: '',
460
- type: 'uint256',
461
- },
462
- {
463
- name: '',
464
- type: 'bool',
465
- },
466
- ],
467
- stateMutability: 'view',
468
- type: 'function',
469
- },
470
- {
471
- inputs: [
472
- {
473
- name: '_asset',
474
- type: 'address',
475
- },
476
- {
477
- name: '_staleTime',
478
- type: 'uint256',
479
- },
480
- {
481
- name: '_oracleRegistry',
482
- type: 'address',
483
- },
484
- ],
485
- name: 'getPriceAndHasFeed',
486
- outputs: [
487
- {
488
- name: '',
489
- type: 'uint256',
490
- },
491
- {
492
- name: '',
493
- type: 'bool',
494
- },
495
- ],
496
- stateMutability: 'view',
497
- type: 'function',
498
- },
499
- {
500
- inputs: [
501
- {
502
- name: '_asset',
503
- type: 'address',
504
- },
505
- ],
506
- name: 'hasPriceFeed',
507
- outputs: [
508
- {
509
- name: '',
510
- type: 'bool',
511
- },
512
- ],
513
- stateMutability: 'view',
514
- type: 'function',
515
- },
516
- {
517
- inputs: [
518
- {
519
- name: '_payloads',
520
- type: 'bytes[]',
521
- },
522
- ],
523
- name: 'updateStorkPrices',
524
- outputs: [],
525
- stateMutability: 'nonpayable',
526
- type: 'function',
527
- },
528
- {
529
- inputs: [
530
- {
531
- name: '_asset',
532
- type: 'address',
533
- },
534
- {
535
- name: '_feedId',
536
- type: 'bytes32',
537
- },
538
- ],
539
- name: 'isValidStorkFeed',
540
- outputs: [
541
- {
542
- name: '',
543
- type: 'bool',
544
- },
545
- ],
546
- stateMutability: 'view',
547
- type: 'function',
548
- },
549
- {
550
- inputs: [
551
- {
552
- name: '_asset',
553
- type: 'address',
554
- },
555
- {
556
- name: '_feedId',
557
- type: 'bytes32',
558
- },
559
- ],
560
- name: 'setStorkFeed',
561
- outputs: [
562
- {
563
- name: '',
564
- type: 'bool',
565
- },
566
- ],
567
- stateMutability: 'nonpayable',
568
- type: 'function',
569
- },
570
- {
571
- inputs: [
572
- {
573
- name: '_asset',
574
- type: 'address',
575
- },
576
- ],
577
- name: 'disableStorkPriceFeed',
578
- outputs: [
579
- {
580
- name: '',
581
- type: 'bool',
582
- },
583
- ],
584
- stateMutability: 'nonpayable',
585
- type: 'function',
586
- },
587
- {
588
- inputs: [
589
- {
590
- name: '_recipient',
591
- type: 'address',
592
- },
593
- ],
594
- name: 'isValidEthRecovery',
595
- outputs: [
596
- {
597
- name: '',
598
- type: 'bool',
599
- },
600
- ],
601
- stateMutability: 'view',
602
- type: 'function',
603
- },
604
- {
605
- inputs: [
606
- {
607
- name: '_recipient',
608
- type: 'address',
609
- },
610
- ],
611
- name: 'recoverEthBalance',
612
- outputs: [
613
- {
614
- name: '',
615
- type: 'bool',
616
- },
617
- ],
618
- stateMutability: 'nonpayable',
619
- type: 'function',
620
- },
621
- {
622
- inputs: [
623
- {
624
- name: '_oracleId',
625
- type: 'uint256',
626
- },
627
- ],
628
- name: 'setOraclePartnerId',
629
- outputs: [
630
- {
631
- name: '',
632
- type: 'bool',
633
- },
634
- ],
635
- stateMutability: 'nonpayable',
636
- type: 'function',
637
- },
638
- {
639
- inputs: [],
640
- name: 'STORK',
641
- outputs: [
642
- {
643
- name: '',
644
- type: 'address',
645
- },
646
- ],
647
- stateMutability: 'view',
648
- type: 'function',
649
- },
650
- {
651
- inputs: [
652
- {
653
- name: 'arg0',
654
- type: 'address',
655
- },
656
- ],
657
- name: 'feedConfig',
658
- outputs: [
659
- {
660
- name: '',
661
- type: 'bytes32',
662
- },
663
- ],
664
- stateMutability: 'view',
665
- type: 'function',
666
- },
667
- {
668
- inputs: [],
669
- name: 'oraclePartnerId',
670
- outputs: [
671
- {
672
- name: '',
673
- type: 'uint256',
674
- },
675
- ],
676
- stateMutability: 'view',
677
- type: 'function',
678
- },
679
- {
680
- inputs: [],
681
- name: 'ADDY_REGISTRY',
682
- outputs: [
683
- {
684
- name: '',
685
- type: 'address',
686
- },
687
- ],
688
- stateMutability: 'view',
689
- type: 'function',
690
- },
691
- {
692
- inputs: [
693
- {
694
- name: '_stork',
695
- type: 'address',
696
- },
697
- {
698
- name: '_addyRegistry',
699
- type: 'address',
700
- },
701
- ],
702
- outputs: [],
703
- stateMutability: 'nonpayable',
704
- type: 'constructor',
705
- },
706
- ];
707
- export const deployAddress = '0xD47D74C56c17Bf3B7236e8a7eb97D3194c3d477c';
708
- function getRequest(method, args, contractAddressOrOptions) {
709
- const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
710
- const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
711
- const call = {
712
- contractName: 'v0_3_StorkFeeds',
713
- method,
714
- args,
715
- address,
716
- deployAddress,
717
- defaultValue,
718
- getAbi: () => abi,
719
- with: (options) => {
720
- call.address = options.contractAddress;
721
- call.defaultValue = options.defaultValue;
722
- return call;
723
- },
724
- defaultTo: (defaultValue) => {
725
- call.defaultValue = defaultValue;
726
- return call;
727
- },
728
- at: (address) => {
729
- call.address = address;
730
- return call;
731
- },
732
- };
733
- return call;
734
- }
735
- export const call = {
736
- canGovern: (...args) => getRequest('canGovern', args),
737
- hasPendingGovChange: (...args) => getRequest('hasPendingGovChange', args),
738
- governance: (...args) => getRequest('governance', args),
739
- pendingGov: (...args) => getRequest('pendingGov', args),
740
- govChangeDelay: (...args) => getRequest('govChangeDelay', args),
741
- MIN_GOV_CHANGE_DELAY: (...args) => getRequest('MIN_GOV_CHANGE_DELAY', args),
742
- MAX_GOV_CHANGE_DELAY: (...args) => getRequest('MAX_GOV_CHANGE_DELAY', args),
743
- getConfiguredAssets: (...args) => getRequest('getConfiguredAssets', args),
744
- assets: (...args) => getRequest('assets', args),
745
- indexOfAsset: (...args) => getRequest('indexOfAsset', args),
746
- numAssets: (...args) => getRequest('numAssets', args),
747
- getPrice: (...args) => getRequest('getPrice', args),
748
- getPriceAndHasFeed: (...args) => getRequest('getPriceAndHasFeed', args),
749
- hasPriceFeed: (...args) => getRequest('hasPriceFeed', args),
750
- isValidStorkFeed: (...args) => getRequest('isValidStorkFeed', args),
751
- isValidEthRecovery: (...args) => getRequest('isValidEthRecovery', args),
752
- STORK: (...args) => getRequest('STORK', args),
753
- feedConfig: (...args) => getRequest('feedConfig', args),
754
- oraclePartnerId: (...args) => getRequest('oraclePartnerId', args),
755
- ADDY_REGISTRY: (...args) => getRequest('ADDY_REGISTRY', args),
756
- };
757
- function getMutation(functionName) {
758
- return {
759
- contractName: 'v0_3_StorkFeeds',
760
- functionName,
761
- deployAddress,
762
- argsType: undefined,
763
- getAbi: () => abi,
764
- };
765
- }
766
- export const mutation = {
767
- changeGovernance: getMutation('changeGovernance'),
768
- confirmGovernanceChange: getMutation('confirmGovernanceChange'),
769
- cancelGovernanceChange: getMutation('cancelGovernanceChange'),
770
- setGovernanceChangeDelay: getMutation('setGovernanceChangeDelay'),
771
- updateStorkPrices: getMutation('updateStorkPrices'),
772
- setStorkFeed: getMutation('setStorkFeed'),
773
- disableStorkPriceFeed: getMutation('disableStorkPriceFeed'),
774
- recoverEthBalance: getMutation('recoverEthBalance'),
775
- setOraclePartnerId: getMutation('setOraclePartnerId'),
776
- };
777
- export function toSdk(publicClient, walletClient) {
778
- return {
779
- deployAddress,
780
- abi,
781
- // Queries
782
- canGovern: (...args) => singleQuery(publicClient, call.canGovern(...args)),
783
- hasPendingGovChange: (...args) => singleQuery(publicClient, call.hasPendingGovChange(...args)),
784
- governance: (...args) => singleQuery(publicClient, call.governance(...args)),
785
- pendingGov: (...args) => singleQuery(publicClient, call.pendingGov(...args)),
786
- govChangeDelay: (...args) => singleQuery(publicClient, call.govChangeDelay(...args)),
787
- MIN_GOV_CHANGE_DELAY: (...args) => singleQuery(publicClient, call.MIN_GOV_CHANGE_DELAY(...args)),
788
- MAX_GOV_CHANGE_DELAY: (...args) => singleQuery(publicClient, call.MAX_GOV_CHANGE_DELAY(...args)),
789
- getConfiguredAssets: (...args) => singleQuery(publicClient, call.getConfiguredAssets(...args)),
790
- assets: (...args) => singleQuery(publicClient, call.assets(...args)),
791
- indexOfAsset: (...args) => singleQuery(publicClient, call.indexOfAsset(...args)),
792
- numAssets: (...args) => singleQuery(publicClient, call.numAssets(...args)),
793
- getPrice: (...args) => singleQuery(publicClient, call.getPrice(...args)),
794
- getPriceAndHasFeed: (...args) => singleQuery(publicClient, call.getPriceAndHasFeed(...args)),
795
- hasPriceFeed: (...args) => singleQuery(publicClient, call.hasPriceFeed(...args)),
796
- isValidStorkFeed: (...args) => singleQuery(publicClient, call.isValidStorkFeed(...args)),
797
- isValidEthRecovery: (...args) => singleQuery(publicClient, call.isValidEthRecovery(...args)),
798
- STORK: (...args) => singleQuery(publicClient, call.STORK(...args)),
799
- feedConfig: (...args) => singleQuery(publicClient, call.feedConfig(...args)),
800
- oraclePartnerId: (...args) => singleQuery(publicClient, call.oraclePartnerId(...args)),
801
- ADDY_REGISTRY: (...args) => singleQuery(publicClient, call.ADDY_REGISTRY(...args)),
802
- // Mutations
803
- changeGovernance: (...args) => mutate(walletClient, mutation.changeGovernance)(...args),
804
- confirmGovernanceChange: (...args) => mutate(walletClient, mutation.confirmGovernanceChange)(...args),
805
- cancelGovernanceChange: (...args) => mutate(walletClient, mutation.cancelGovernanceChange)(...args),
806
- setGovernanceChangeDelay: (...args) => mutate(walletClient, mutation.setGovernanceChangeDelay)(...args),
807
- updateStorkPrices: (...args) => mutate(walletClient, mutation.updateStorkPrices)(...args),
808
- setStorkFeed: (...args) => mutate(walletClient, mutation.setStorkFeed)(...args),
809
- disableStorkPriceFeed: (...args) => mutate(walletClient, mutation.disableStorkPriceFeed)(...args),
810
- recoverEthBalance: (...args) => mutate(walletClient, mutation.recoverEthBalance)(...args),
811
- setOraclePartnerId: (...args) => mutate(walletClient, mutation.setOraclePartnerId)(...args),
812
- };
813
- }