@gearbox-protocol/sdk 9.12.13 → 9.13.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 (230) hide show
  1. package/dist/cjs/abi/310/configure/creditSuiteParams.js +130 -0
  2. package/dist/cjs/abi/310/configure/iCreditConfigureActions.js +181 -0
  3. package/dist/cjs/abi/310/configure/iPoolConfigureActions.js +80 -0
  4. package/dist/cjs/abi/310/configure/iPriceOracleConfigureActions.js +49 -0
  5. package/dist/cjs/abi/310/crossChainMultisig.js +540 -0
  6. package/dist/cjs/abi/{v310.js → 310/generated.js} +3 -3
  7. package/dist/cjs/abi/310/iBytecodeRepository.js +897 -0
  8. package/dist/cjs/abi/310/iMarketConfiguratorFactory.js +189 -0
  9. package/dist/cjs/abi/310/iPriceFeedStore.js +417 -0
  10. package/dist/cjs/abi/310/iTreasurySplitter.js +36 -0
  11. package/dist/cjs/abi/310/instanceManager.js +274 -0
  12. package/dist/cjs/abi/compressors/creditAccountCompressor.js +456 -0
  13. package/dist/cjs/abi/compressors/creditSuiteCompressor.js +774 -0
  14. package/dist/cjs/abi/compressors/defillamaCompressor.js +183 -0
  15. package/dist/cjs/abi/compressors/gaugeCompressor.js +184 -0
  16. package/dist/cjs/abi/compressors/marketCompressor.js +2477 -0
  17. package/dist/cjs/abi/compressors/peripheryCompressor.js +202 -0
  18. package/dist/cjs/abi/compressors/priceFeedCompressor.js +581 -0
  19. package/dist/cjs/abi/compressors/rewardsCompressor.js +82 -0
  20. package/dist/cjs/abi/compressors/subcompressors/infinifiWithdrawalSubcompressor.js +187 -0
  21. package/dist/cjs/abi/compressors/subcompressors/mellowWithdrawalSubcompressor.js +187 -0
  22. package/dist/cjs/abi/compressors/subcompressors/midasWithdrawalSubcompressor.js +187 -0
  23. package/dist/cjs/abi/compressors/subcompressors/upshiftWithdrawalSubcompressor.js +187 -0
  24. package/dist/cjs/abi/compressors/tokenCompressor.js +95 -0
  25. package/dist/cjs/abi/compressors/withdrawalCompressor.js +272 -0
  26. package/dist/cjs/abi/governance/batchesChain.js +68 -0
  27. package/dist/cjs/abi/governance/governor.js +472 -0
  28. package/dist/cjs/abi/governance/iTimeLock.js +257 -0
  29. package/dist/cjs/abi/router/balancerV2Worker.js +730 -0
  30. package/dist/cjs/abi/router/balancerV3Worker.js +734 -0
  31. package/dist/cjs/abi/router/camelotV3Worker.js +558 -0
  32. package/dist/cjs/abi/router/convexWorker.js +541 -0
  33. package/dist/cjs/abi/router/curveWorker.js +718 -0
  34. package/dist/cjs/abi/router/daiUsdsWorker.js +541 -0
  35. package/dist/cjs/abi/router/equalizerRouterWorker.js +541 -0
  36. package/dist/cjs/abi/router/erc4626Worker.js +572 -0
  37. package/dist/cjs/abi/router/fluidDexWorker.js +551 -0
  38. package/dist/cjs/abi/router/gearboxRouter.js +651 -0
  39. package/dist/cjs/abi/router/infraredVaultWorker.js +541 -0
  40. package/dist/cjs/abi/router/kodiakWorker.js +732 -0
  41. package/dist/cjs/abi/router/lidoWorker.js +541 -0
  42. package/dist/cjs/abi/router/mellow4626Worker.js +541 -0
  43. package/dist/cjs/abi/router/mellowDVVWorker.js +541 -0
  44. package/dist/cjs/abi/router/mellowVaultWorker.js +551 -0
  45. package/dist/cjs/abi/router/pendleRouterWorker.js +567 -0
  46. package/dist/cjs/abi/router/routingManager.js +397 -0
  47. package/dist/cjs/abi/router/stakingRewardsWorker.js +541 -0
  48. package/dist/cjs/abi/router/traderJoeWorker.js +541 -0
  49. package/dist/cjs/abi/router/uniswapV2Worker.js +541 -0
  50. package/dist/cjs/abi/router/uniswapV3Worker.js +568 -0
  51. package/dist/cjs/abi/router/upshiftWorker.js +541 -0
  52. package/dist/cjs/abi/router/velodromeV2Worker.js +541 -0
  53. package/dist/cjs/abi/router/wstETHWorker.js +541 -0
  54. package/dist/cjs/abi/router/yearnV2Worker.js +541 -0
  55. package/dist/cjs/dev/migrateFaucet.js +6 -6
  56. package/dist/cjs/plugins/accounts-counter/AccountsCounterPlugin.js +3 -3
  57. package/dist/cjs/plugins/bots/BotsPlugin.js +2 -2
  58. package/dist/cjs/plugins/pools-history/Pools7DAgoPlugin.js +2 -2
  59. package/dist/cjs/plugins/zappers/ZappersPlugin.js +2 -2
  60. package/dist/cjs/sdk/accounts/AbstractCreditAccountsService.js +11 -9
  61. package/dist/cjs/sdk/accounts/CreditAccountsServiceV310.js +2 -2
  62. package/dist/cjs/sdk/chain/detectNetwork.js +2 -2
  63. package/dist/cjs/sdk/core/address-provider/AddressProviderV310Contract.js +2 -2
  64. package/dist/cjs/sdk/gauges/GaugeStakingService.js +2 -2
  65. package/dist/cjs/sdk/market/MarketConfiguratorContract.js +2 -2
  66. package/dist/cjs/sdk/market/MarketRegister.js +3 -3
  67. package/dist/cjs/sdk/market/credit/CreditConfiguratorV310Contract.js +2 -2
  68. package/dist/cjs/sdk/market/credit/CreditFacadeV310Contract.js +3 -3
  69. package/dist/cjs/sdk/market/credit/CreditManagerV310Contract.js +2 -2
  70. package/dist/cjs/sdk/market/oracle/PriceOracleBaseContract.js +2 -2
  71. package/dist/cjs/sdk/market/oracle/PriceOracleV310Contract.js +3 -3
  72. package/dist/cjs/sdk/market/pool/PoolQuotaKeeperV310Contract.js +2 -2
  73. package/dist/cjs/sdk/market/pool/PoolV310Contract.js +2 -2
  74. package/dist/cjs/sdk/market/pool/TumblerContract.js +2 -2
  75. package/dist/cjs/sdk/market/pricefeeds/PriceFeedsRegister.js +3 -3
  76. package/dist/cjs/sdk/router/RouterV310Contract.js +2 -2
  77. package/dist/cjs/sdk/sdk-legacy/tokens/tokenData.js +2 -1
  78. package/dist/cjs/sdk/utils/viem/simulateWithPriceUpdates.js +3 -2
  79. package/dist/esm/abi/310/configure/creditSuiteParams.js +104 -0
  80. package/dist/esm/abi/310/configure/iCreditConfigureActions.js +157 -0
  81. package/dist/esm/abi/310/configure/iPoolConfigureActions.js +56 -0
  82. package/dist/esm/abi/310/configure/iPriceOracleConfigureActions.js +25 -0
  83. package/dist/esm/abi/310/crossChainMultisig.js +516 -0
  84. package/dist/esm/abi/310/iBytecodeRepository.js +873 -0
  85. package/dist/esm/abi/310/iMarketConfiguratorFactory.js +165 -0
  86. package/dist/esm/abi/310/iPriceFeedStore.js +393 -0
  87. package/dist/esm/abi/310/iTreasurySplitter.js +12 -0
  88. package/dist/esm/abi/310/instanceManager.js +250 -0
  89. package/dist/esm/abi/compressors/creditAccountCompressor.js +432 -0
  90. package/dist/esm/abi/compressors/creditSuiteCompressor.js +750 -0
  91. package/dist/esm/abi/compressors/defillamaCompressor.js +159 -0
  92. package/dist/esm/abi/compressors/gaugeCompressor.js +160 -0
  93. package/dist/esm/abi/compressors/marketCompressor.js +2453 -0
  94. package/dist/esm/abi/compressors/peripheryCompressor.js +178 -0
  95. package/dist/esm/abi/compressors/priceFeedCompressor.js +557 -0
  96. package/dist/esm/abi/compressors/rewardsCompressor.js +58 -0
  97. package/dist/esm/abi/compressors/subcompressors/infinifiWithdrawalSubcompressor.js +163 -0
  98. package/dist/esm/abi/compressors/subcompressors/mellowWithdrawalSubcompressor.js +163 -0
  99. package/dist/esm/abi/compressors/subcompressors/midasWithdrawalSubcompressor.js +163 -0
  100. package/dist/esm/abi/compressors/subcompressors/upshiftWithdrawalSubcompressor.js +163 -0
  101. package/dist/esm/abi/compressors/tokenCompressor.js +71 -0
  102. package/dist/esm/abi/compressors/withdrawalCompressor.js +248 -0
  103. package/dist/esm/abi/governance/batchesChain.js +44 -0
  104. package/dist/esm/abi/governance/governor.js +448 -0
  105. package/dist/esm/abi/governance/iTimeLock.js +233 -0
  106. package/dist/esm/abi/router/balancerV2Worker.js +706 -0
  107. package/dist/esm/abi/router/balancerV3Worker.js +710 -0
  108. package/dist/esm/abi/router/camelotV3Worker.js +534 -0
  109. package/dist/esm/abi/router/convexWorker.js +517 -0
  110. package/dist/esm/abi/router/curveWorker.js +694 -0
  111. package/dist/esm/abi/router/daiUsdsWorker.js +517 -0
  112. package/dist/esm/abi/router/equalizerRouterWorker.js +517 -0
  113. package/dist/esm/abi/router/erc4626Worker.js +548 -0
  114. package/dist/esm/abi/router/fluidDexWorker.js +527 -0
  115. package/dist/esm/abi/router/gearboxRouter.js +627 -0
  116. package/dist/esm/abi/router/infraredVaultWorker.js +517 -0
  117. package/dist/esm/abi/router/kodiakWorker.js +708 -0
  118. package/dist/esm/abi/router/lidoWorker.js +517 -0
  119. package/dist/esm/abi/router/mellow4626Worker.js +517 -0
  120. package/dist/esm/abi/router/mellowDVVWorker.js +517 -0
  121. package/dist/esm/abi/router/mellowVaultWorker.js +527 -0
  122. package/dist/esm/abi/router/pendleRouterWorker.js +543 -0
  123. package/dist/esm/abi/router/routingManager.js +373 -0
  124. package/dist/esm/abi/router/stakingRewardsWorker.js +517 -0
  125. package/dist/esm/abi/router/traderJoeWorker.js +517 -0
  126. package/dist/esm/abi/router/uniswapV2Worker.js +517 -0
  127. package/dist/esm/abi/router/uniswapV3Worker.js +544 -0
  128. package/dist/esm/abi/router/upshiftWorker.js +517 -0
  129. package/dist/esm/abi/router/velodromeV2Worker.js +517 -0
  130. package/dist/esm/abi/router/wstETHWorker.js +517 -0
  131. package/dist/esm/abi/router/yearnV2Worker.js +517 -0
  132. package/dist/esm/dev/migrateFaucet.js +1 -1
  133. package/dist/esm/plugins/accounts-counter/AccountsCounterPlugin.js +3 -3
  134. package/dist/esm/plugins/bots/BotsPlugin.js +2 -2
  135. package/dist/esm/plugins/pools-history/Pools7DAgoPlugin.js +2 -2
  136. package/dist/esm/plugins/zappers/ZappersPlugin.js +2 -2
  137. package/dist/esm/sdk/accounts/AbstractCreditAccountsService.js +10 -12
  138. package/dist/esm/sdk/accounts/CreditAccountsServiceV310.js +1 -1
  139. package/dist/esm/sdk/chain/detectNetwork.js +1 -1
  140. package/dist/esm/sdk/core/address-provider/AddressProviderV310Contract.js +1 -1
  141. package/dist/esm/sdk/gauges/GaugeStakingService.js +2 -2
  142. package/dist/esm/sdk/market/MarketConfiguratorContract.js +1 -1
  143. package/dist/esm/sdk/market/MarketRegister.js +3 -3
  144. package/dist/esm/sdk/market/credit/CreditConfiguratorV310Contract.js +1 -1
  145. package/dist/esm/sdk/market/credit/CreditFacadeV310Contract.js +2 -2
  146. package/dist/esm/sdk/market/credit/CreditManagerV310Contract.js +1 -1
  147. package/dist/esm/sdk/market/oracle/PriceOracleBaseContract.js +2 -2
  148. package/dist/esm/sdk/market/oracle/PriceOracleV310Contract.js +1 -1
  149. package/dist/esm/sdk/market/pool/PoolQuotaKeeperV310Contract.js +1 -1
  150. package/dist/esm/sdk/market/pool/PoolV310Contract.js +1 -1
  151. package/dist/esm/sdk/market/pool/TumblerContract.js +1 -1
  152. package/dist/esm/sdk/market/pricefeeds/PriceFeedsRegister.js +3 -3
  153. package/dist/esm/sdk/router/RouterV310Contract.js +2 -2
  154. package/dist/esm/sdk/sdk-legacy/tokens/tokenData.js +2 -1
  155. package/dist/esm/sdk/utils/viem/simulateWithPriceUpdates.js +2 -1
  156. package/dist/types/abi/310/configure/creditSuiteParams.d.ts +92 -0
  157. package/dist/types/abi/310/configure/iCreditConfigureActions.d.ts +187 -0
  158. package/dist/types/abi/310/configure/iPoolConfigureActions.d.ts +65 -0
  159. package/dist/types/abi/310/configure/iPriceOracleConfigureActions.d.ts +29 -0
  160. package/dist/types/abi/310/crossChainMultisig.d.ts +709 -0
  161. package/dist/types/abi/310/iBytecodeRepository.d.ts +1139 -0
  162. package/dist/types/abi/310/iMarketConfiguratorFactory.d.ts +218 -0
  163. package/dist/types/abi/310/iPriceFeedStore.d.ts +526 -0
  164. package/dist/types/abi/310/iTreasurySplitter.d.ts +11 -0
  165. package/dist/types/abi/{iPriceFeedStore.d.ts → 310/instanceManager.d.ts} +183 -143
  166. package/dist/types/abi/compressors/creditAccountCompressor.d.ts +828 -0
  167. package/dist/types/abi/compressors/creditSuiteCompressor.d.ts +829 -0
  168. package/dist/types/abi/compressors/defillamaCompressor.d.ts +201 -0
  169. package/dist/types/abi/compressors/gaugeCompressor.d.ts +228 -0
  170. package/dist/types/abi/{compressors.d.ts → compressors/marketCompressor.d.ts} +1322 -4121
  171. package/dist/types/abi/compressors/peripheryCompressor.d.ts +217 -0
  172. package/dist/types/abi/compressors/priceFeedCompressor.d.ts +684 -0
  173. package/dist/types/abi/compressors/rewardsCompressor.d.ts +70 -0
  174. package/dist/types/abi/compressors/subcompressors/infinifiWithdrawalSubcompressor.d.ts +220 -0
  175. package/dist/types/abi/compressors/subcompressors/mellowWithdrawalSubcompressor.d.ts +220 -0
  176. package/dist/types/abi/compressors/subcompressors/midasWithdrawalSubcompressor.d.ts +220 -0
  177. package/dist/types/abi/compressors/subcompressors/upshiftWithdrawalSubcompressor.d.ts +220 -0
  178. package/dist/types/abi/compressors/tokenCompressor.d.ts +101 -0
  179. package/dist/types/abi/{routerV310.d.ts → compressors/withdrawalCompressor.d.ts} +175 -253
  180. package/dist/types/abi/governance/batchesChain.d.ts +31 -0
  181. package/dist/types/abi/governance/governor.d.ts +584 -0
  182. package/dist/types/abi/governance/iTimeLock.d.ts +328 -0
  183. package/dist/types/abi/router/balancerV2Worker.d.ts +961 -0
  184. package/dist/types/abi/router/balancerV3Worker.d.ts +961 -0
  185. package/dist/types/abi/router/camelotV3Worker.d.ts +754 -0
  186. package/dist/types/abi/router/convexWorker.d.ts +726 -0
  187. package/dist/types/abi/router/curveWorker.d.ts +947 -0
  188. package/dist/types/abi/router/daiUsdsWorker.d.ts +726 -0
  189. package/dist/types/abi/router/equalizerRouterWorker.d.ts +726 -0
  190. package/dist/types/abi/router/erc4626Worker.d.ts +769 -0
  191. package/dist/types/abi/router/fluidDexWorker.d.ts +740 -0
  192. package/dist/types/abi/router/gearboxRouter.d.ts +881 -0
  193. package/dist/types/abi/router/infraredVaultWorker.d.ts +726 -0
  194. package/dist/types/abi/router/kodiakWorker.d.ts +967 -0
  195. package/dist/types/abi/router/lidoWorker.d.ts +726 -0
  196. package/dist/types/abi/router/mellow4626Worker.d.ts +726 -0
  197. package/dist/types/abi/router/mellowDVVWorker.d.ts +726 -0
  198. package/dist/types/abi/router/mellowVaultWorker.d.ts +740 -0
  199. package/dist/types/abi/router/pendleRouterWorker.d.ts +760 -0
  200. package/dist/types/abi/router/routingManager.d.ts +494 -0
  201. package/dist/types/abi/router/stakingRewardsWorker.d.ts +726 -0
  202. package/dist/types/abi/router/traderJoeWorker.d.ts +726 -0
  203. package/dist/types/abi/router/uniswapV2Worker.d.ts +726 -0
  204. package/dist/types/abi/router/uniswapV3Worker.d.ts +774 -0
  205. package/dist/types/abi/router/upshiftWorker.d.ts +726 -0
  206. package/dist/types/abi/router/velodromeV2Worker.d.ts +726 -0
  207. package/dist/types/abi/router/wstETHWorker.d.ts +726 -0
  208. package/dist/types/abi/router/yearnV2Worker.d.ts +726 -0
  209. package/dist/types/plugins/bots/types.d.ts +2 -2
  210. package/dist/types/plugins/zappers/types.d.ts +2 -2
  211. package/dist/types/sdk/accounts/types.d.ts +2 -2
  212. package/dist/types/sdk/base/types.d.ts +11 -7
  213. package/dist/types/sdk/market/credit/CreditManagerV310Contract.d.ts +1 -1
  214. package/dist/types/sdk/market/oracle/types.d.ts +3 -3
  215. package/dist/types/sdk/router/RouterV310Contract.d.ts +481 -1
  216. package/dist/types/sdk/sdk-legacy/payload/pool.d.ts +2 -2
  217. package/package.json +1 -1
  218. package/dist/cjs/abi/compressors.js +0 -4555
  219. package/dist/cjs/abi/iPriceFeedStore.js +0 -254
  220. package/dist/cjs/abi/index.js +0 -46
  221. package/dist/cjs/abi/package.json +0 -1
  222. package/dist/cjs/abi/routerV310.js +0 -276
  223. package/dist/esm/abi/compressors.js +0 -4524
  224. package/dist/esm/abi/iPriceFeedStore.js +0 -230
  225. package/dist/esm/abi/index.js +0 -13
  226. package/dist/esm/abi/package.json +0 -1
  227. package/dist/esm/abi/routerV310.js +0 -252
  228. package/dist/types/abi/index.d.ts +0 -13
  229. /package/dist/esm/abi/{v310.js → 310/generated.js} +0 -0
  230. /package/dist/types/abi/{v310.d.ts → 310/generated.d.ts} +0 -0
@@ -0,0 +1,165 @@
1
+ const iMarketConfiguratorFactoryAbi = [
2
+ {
3
+ type: "function",
4
+ inputs: [
5
+ { name: "marketConfigurator", internalType: "address", type: "address" }
6
+ ],
7
+ name: "addMarketConfigurator",
8
+ outputs: [],
9
+ stateMutability: "nonpayable"
10
+ },
11
+ {
12
+ type: "function",
13
+ inputs: [],
14
+ name: "addressProvider",
15
+ outputs: [{ name: "", internalType: "address", type: "address" }],
16
+ stateMutability: "view"
17
+ },
18
+ {
19
+ type: "function",
20
+ inputs: [],
21
+ name: "bytecodeRepository",
22
+ outputs: [{ name: "", internalType: "address", type: "address" }],
23
+ stateMutability: "view"
24
+ },
25
+ {
26
+ type: "function",
27
+ inputs: [],
28
+ name: "contractType",
29
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
30
+ stateMutability: "view"
31
+ },
32
+ {
33
+ type: "function",
34
+ inputs: [
35
+ { name: "emergencyAdmin", internalType: "address", type: "address" },
36
+ { name: "adminFeeTreasury", internalType: "address", type: "address" },
37
+ { name: "curatorName", internalType: "string", type: "string" },
38
+ { name: "deployGovernor", internalType: "bool", type: "bool" }
39
+ ],
40
+ name: "createMarketConfigurator",
41
+ outputs: [
42
+ { name: "marketConfigurator", internalType: "address", type: "address" }
43
+ ],
44
+ stateMutability: "nonpayable"
45
+ },
46
+ {
47
+ type: "function",
48
+ inputs: [{ name: "index", internalType: "uint256", type: "uint256" }],
49
+ name: "getMarketConfigurator",
50
+ outputs: [{ name: "", internalType: "address", type: "address" }],
51
+ stateMutability: "view"
52
+ },
53
+ {
54
+ type: "function",
55
+ inputs: [],
56
+ name: "getMarketConfigurators",
57
+ outputs: [{ name: "", internalType: "address[]", type: "address[]" }],
58
+ stateMutability: "view"
59
+ },
60
+ {
61
+ type: "function",
62
+ inputs: [],
63
+ name: "getNumMarketConfigurators",
64
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
65
+ stateMutability: "view"
66
+ },
67
+ {
68
+ type: "function",
69
+ inputs: [],
70
+ name: "getShutdownMarketConfigurators",
71
+ outputs: [{ name: "", internalType: "address[]", type: "address[]" }],
72
+ stateMutability: "view"
73
+ },
74
+ {
75
+ type: "function",
76
+ inputs: [{ name: "account", internalType: "address", type: "address" }],
77
+ name: "isMarketConfigurator",
78
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
79
+ stateMutability: "view"
80
+ },
81
+ {
82
+ type: "function",
83
+ inputs: [
84
+ { name: "marketConfigurator", internalType: "address", type: "address" }
85
+ ],
86
+ name: "shutdownMarketConfigurator",
87
+ outputs: [],
88
+ stateMutability: "nonpayable"
89
+ },
90
+ {
91
+ type: "function",
92
+ inputs: [],
93
+ name: "version",
94
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
95
+ stateMutability: "view"
96
+ },
97
+ {
98
+ type: "event",
99
+ anonymous: false,
100
+ inputs: [
101
+ {
102
+ name: "marketConfigurator",
103
+ internalType: "address",
104
+ type: "address",
105
+ indexed: true
106
+ },
107
+ { name: "name", internalType: "string", type: "string", indexed: false }
108
+ ],
109
+ name: "CreateMarketConfigurator"
110
+ },
111
+ {
112
+ type: "event",
113
+ anonymous: false,
114
+ inputs: [
115
+ {
116
+ name: "marketConfigurator",
117
+ internalType: "address",
118
+ type: "address",
119
+ indexed: true
120
+ }
121
+ ],
122
+ name: "ShutdownMarketConfigurator"
123
+ },
124
+ {
125
+ type: "error",
126
+ inputs: [{ name: "caller", internalType: "address", type: "address" }],
127
+ name: "CallerIsNotCrossChainGovernanceException"
128
+ },
129
+ {
130
+ type: "error",
131
+ inputs: [{ name: "caller", internalType: "address", type: "address" }],
132
+ name: "CallerIsNotMarketConfiguratorAdminException"
133
+ },
134
+ {
135
+ type: "error",
136
+ inputs: [
137
+ { name: "marketConfigurator", internalType: "address", type: "address" }
138
+ ],
139
+ name: "CantShutdownMarketConfiguratorException"
140
+ },
141
+ {
142
+ type: "error",
143
+ inputs: [
144
+ { name: "marketConfigurator", internalType: "address", type: "address" }
145
+ ],
146
+ name: "MarketConfiguratorIsAlreadyAddedException"
147
+ },
148
+ {
149
+ type: "error",
150
+ inputs: [
151
+ { name: "marketConfigruator", internalType: "address", type: "address" }
152
+ ],
153
+ name: "MarketConfiguratorIsAlreadyShutdownException"
154
+ },
155
+ {
156
+ type: "error",
157
+ inputs: [
158
+ { name: "marketConfigurator", internalType: "address", type: "address" }
159
+ ],
160
+ name: "MarketConfiguratorIsNotRegisteredException"
161
+ }
162
+ ];
163
+ export {
164
+ iMarketConfiguratorFactoryAbi
165
+ };
@@ -0,0 +1,393 @@
1
+ const iPriceFeedStoreAbi = [
2
+ {
3
+ type: "function",
4
+ inputs: [
5
+ { name: "priceFeed", internalType: "address", type: "address" },
6
+ { name: "stalenessPeriod", internalType: "uint32", type: "uint32" },
7
+ { name: "name", internalType: "string", type: "string" }
8
+ ],
9
+ name: "addPriceFeed",
10
+ outputs: [],
11
+ stateMutability: "nonpayable"
12
+ },
13
+ {
14
+ type: "function",
15
+ inputs: [],
16
+ name: "addressProvider",
17
+ outputs: [{ name: "", internalType: "address", type: "address" }],
18
+ stateMutability: "view"
19
+ },
20
+ {
21
+ type: "function",
22
+ inputs: [
23
+ { name: "token", internalType: "address", type: "address" },
24
+ { name: "priceFeed", internalType: "address", type: "address" }
25
+ ],
26
+ name: "allowPriceFeed",
27
+ outputs: [],
28
+ stateMutability: "nonpayable"
29
+ },
30
+ {
31
+ type: "function",
32
+ inputs: [],
33
+ name: "bytecodeRepository",
34
+ outputs: [{ name: "", internalType: "address", type: "address" }],
35
+ stateMutability: "view"
36
+ },
37
+ {
38
+ type: "function",
39
+ inputs: [
40
+ {
41
+ name: "calls",
42
+ internalType: "struct Call[]",
43
+ type: "tuple[]",
44
+ components: [
45
+ { name: "target", internalType: "address", type: "address" },
46
+ { name: "callData", internalType: "bytes", type: "bytes" }
47
+ ]
48
+ }
49
+ ],
50
+ name: "configurePriceFeeds",
51
+ outputs: [],
52
+ stateMutability: "nonpayable"
53
+ },
54
+ {
55
+ type: "function",
56
+ inputs: [],
57
+ name: "contractType",
58
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
59
+ stateMutability: "view"
60
+ },
61
+ {
62
+ type: "function",
63
+ inputs: [
64
+ { name: "token", internalType: "address", type: "address" },
65
+ { name: "priceFeed", internalType: "address", type: "address" }
66
+ ],
67
+ name: "forbidPriceFeed",
68
+ outputs: [],
69
+ stateMutability: "nonpayable"
70
+ },
71
+ {
72
+ type: "function",
73
+ inputs: [
74
+ { name: "token", internalType: "address", type: "address" },
75
+ { name: "priceFeed", internalType: "address", type: "address" }
76
+ ],
77
+ name: "getAllowanceTimestamp",
78
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
79
+ stateMutability: "view"
80
+ },
81
+ {
82
+ type: "function",
83
+ inputs: [],
84
+ name: "getKnownPriceFeeds",
85
+ outputs: [{ name: "", internalType: "address[]", type: "address[]" }],
86
+ stateMutability: "view"
87
+ },
88
+ {
89
+ type: "function",
90
+ inputs: [],
91
+ name: "getKnownTokens",
92
+ outputs: [{ name: "", internalType: "address[]", type: "address[]" }],
93
+ stateMutability: "view"
94
+ },
95
+ {
96
+ type: "function",
97
+ inputs: [{ name: "token", internalType: "address", type: "address" }],
98
+ name: "getPriceFeeds",
99
+ outputs: [{ name: "", internalType: "address[]", type: "address[]" }],
100
+ stateMutability: "view"
101
+ },
102
+ {
103
+ type: "function",
104
+ inputs: [{ name: "priceFeed", internalType: "address", type: "address" }],
105
+ name: "getStalenessPeriod",
106
+ outputs: [{ name: "", internalType: "uint32", type: "uint32" }],
107
+ stateMutability: "view"
108
+ },
109
+ {
110
+ type: "function",
111
+ inputs: [],
112
+ name: "getTokenPriceFeedsMap",
113
+ outputs: [
114
+ {
115
+ name: "connectedPriceFeeds",
116
+ internalType: "struct ConnectedPriceFeed[]",
117
+ type: "tuple[]",
118
+ components: [
119
+ { name: "token", internalType: "address", type: "address" },
120
+ { name: "priceFeeds", internalType: "address[]", type: "address[]" }
121
+ ]
122
+ }
123
+ ],
124
+ stateMutability: "view"
125
+ },
126
+ {
127
+ type: "function",
128
+ inputs: [],
129
+ name: "getUpdatablePriceFeeds",
130
+ outputs: [{ name: "", internalType: "address[]", type: "address[]" }],
131
+ stateMutability: "view"
132
+ },
133
+ {
134
+ type: "function",
135
+ inputs: [
136
+ { name: "token", internalType: "address", type: "address" },
137
+ { name: "priceFeed", internalType: "address", type: "address" }
138
+ ],
139
+ name: "isAllowedPriceFeed",
140
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
141
+ stateMutability: "view"
142
+ },
143
+ {
144
+ type: "function",
145
+ inputs: [{ name: "priceFeed", internalType: "address", type: "address" }],
146
+ name: "isKnownPriceFeed",
147
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
148
+ stateMutability: "view"
149
+ },
150
+ {
151
+ type: "function",
152
+ inputs: [{ name: "token", internalType: "address", type: "address" }],
153
+ name: "isKnownToken",
154
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
155
+ stateMutability: "view"
156
+ },
157
+ {
158
+ type: "function",
159
+ inputs: [],
160
+ name: "owner",
161
+ outputs: [{ name: "", internalType: "address", type: "address" }],
162
+ stateMutability: "view"
163
+ },
164
+ {
165
+ type: "function",
166
+ inputs: [{ name: "priceFeed", internalType: "address", type: "address" }],
167
+ name: "priceFeedInfo",
168
+ outputs: [
169
+ {
170
+ name: "",
171
+ internalType: "struct PriceFeedInfo",
172
+ type: "tuple",
173
+ components: [
174
+ { name: "name", internalType: "string", type: "string" },
175
+ { name: "stalenessPeriod", internalType: "uint32", type: "uint32" },
176
+ { name: "priceFeedType", internalType: "bytes32", type: "bytes32" },
177
+ { name: "version", internalType: "uint256", type: "uint256" }
178
+ ]
179
+ }
180
+ ],
181
+ stateMutability: "view"
182
+ },
183
+ {
184
+ type: "function",
185
+ inputs: [{ name: "priceFeed", internalType: "address", type: "address" }],
186
+ name: "removePriceFeed",
187
+ outputs: [],
188
+ stateMutability: "nonpayable"
189
+ },
190
+ {
191
+ type: "function",
192
+ inputs: [
193
+ { name: "priceFeed", internalType: "address", type: "address" },
194
+ { name: "stalenessPeriod", internalType: "uint32", type: "uint32" }
195
+ ],
196
+ name: "setStalenessPeriod",
197
+ outputs: [],
198
+ stateMutability: "nonpayable"
199
+ },
200
+ {
201
+ type: "function",
202
+ inputs: [
203
+ {
204
+ name: "updates",
205
+ internalType: "struct PriceUpdate[]",
206
+ type: "tuple[]",
207
+ components: [
208
+ { name: "priceFeed", internalType: "address", type: "address" },
209
+ { name: "data", internalType: "bytes", type: "bytes" }
210
+ ]
211
+ }
212
+ ],
213
+ name: "updatePrices",
214
+ outputs: [],
215
+ stateMutability: "nonpayable"
216
+ },
217
+ {
218
+ type: "function",
219
+ inputs: [],
220
+ name: "version",
221
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
222
+ stateMutability: "view"
223
+ },
224
+ {
225
+ type: "function",
226
+ inputs: [],
227
+ name: "zeroPriceFeed",
228
+ outputs: [{ name: "", internalType: "address", type: "address" }],
229
+ stateMutability: "view"
230
+ },
231
+ {
232
+ type: "event",
233
+ anonymous: false,
234
+ inputs: [
235
+ {
236
+ name: "priceFeed",
237
+ internalType: "address",
238
+ type: "address",
239
+ indexed: true
240
+ },
241
+ {
242
+ name: "stalenessPeriod",
243
+ internalType: "uint32",
244
+ type: "uint32",
245
+ indexed: false
246
+ },
247
+ { name: "name", internalType: "string", type: "string", indexed: false }
248
+ ],
249
+ name: "AddPriceFeed"
250
+ },
251
+ {
252
+ type: "event",
253
+ anonymous: false,
254
+ inputs: [
255
+ {
256
+ name: "priceFeed",
257
+ internalType: "address",
258
+ type: "address",
259
+ indexed: true
260
+ }
261
+ ],
262
+ name: "AddUpdatablePriceFeed"
263
+ },
264
+ {
265
+ type: "event",
266
+ anonymous: false,
267
+ inputs: [
268
+ {
269
+ name: "token",
270
+ internalType: "address",
271
+ type: "address",
272
+ indexed: true
273
+ },
274
+ {
275
+ name: "priceFeed",
276
+ internalType: "address",
277
+ type: "address",
278
+ indexed: true
279
+ }
280
+ ],
281
+ name: "AllowPriceFeed"
282
+ },
283
+ {
284
+ type: "event",
285
+ anonymous: false,
286
+ inputs: [
287
+ {
288
+ name: "token",
289
+ internalType: "address",
290
+ type: "address",
291
+ indexed: true
292
+ },
293
+ {
294
+ name: "priceFeed",
295
+ internalType: "address",
296
+ type: "address",
297
+ indexed: true
298
+ }
299
+ ],
300
+ name: "ForbidPriceFeed"
301
+ },
302
+ {
303
+ type: "event",
304
+ anonymous: false,
305
+ inputs: [
306
+ {
307
+ name: "priceFeed",
308
+ internalType: "address",
309
+ type: "address",
310
+ indexed: true
311
+ }
312
+ ],
313
+ name: "RemovePriceFeed"
314
+ },
315
+ {
316
+ type: "event",
317
+ anonymous: false,
318
+ inputs: [
319
+ {
320
+ name: "priceFeed",
321
+ internalType: "address",
322
+ type: "address",
323
+ indexed: true
324
+ },
325
+ {
326
+ name: "stalenessPeriod",
327
+ internalType: "uint32",
328
+ type: "uint32",
329
+ indexed: false
330
+ }
331
+ ],
332
+ name: "SetStalenessPeriod"
333
+ },
334
+ {
335
+ type: "error",
336
+ inputs: [{ name: "", internalType: "address", type: "address" }],
337
+ name: "AddressIsNotContractException"
338
+ },
339
+ {
340
+ type: "error",
341
+ inputs: [{ name: "caller", internalType: "address", type: "address" }],
342
+ name: "CallerIsNotOwnerException"
343
+ },
344
+ {
345
+ type: "error",
346
+ inputs: [{ name: "selector", internalType: "bytes4", type: "bytes4" }],
347
+ name: "ForbiddenConfigurationMethodException"
348
+ },
349
+ { type: "error", inputs: [], name: "IncorrectParameterException" },
350
+ { type: "error", inputs: [], name: "IncorrectPriceException" },
351
+ { type: "error", inputs: [], name: "IncorrectPriceFeedException" },
352
+ {
353
+ type: "error",
354
+ inputs: [{ name: "priceFeed", internalType: "address", type: "address" }],
355
+ name: "PriceFeedIsAlreadyAddedException"
356
+ },
357
+ {
358
+ type: "error",
359
+ inputs: [
360
+ { name: "token", internalType: "address", type: "address" },
361
+ { name: "priceFeed", internalType: "address", type: "address" }
362
+ ],
363
+ name: "PriceFeedIsAlreadyAllowedException"
364
+ },
365
+ {
366
+ type: "error",
367
+ inputs: [
368
+ { name: "token", internalType: "address", type: "address" },
369
+ { name: "priceFeed", internalType: "address", type: "address" }
370
+ ],
371
+ name: "PriceFeedIsNotAllowedException"
372
+ },
373
+ {
374
+ type: "error",
375
+ inputs: [{ name: "priceFeed", internalType: "address", type: "address" }],
376
+ name: "PriceFeedIsNotKnownException"
377
+ },
378
+ {
379
+ type: "error",
380
+ inputs: [{ name: "priceFeed", internalType: "address", type: "address" }],
381
+ name: "PriceFeedIsNotOwnedByStore"
382
+ },
383
+ {
384
+ type: "error",
385
+ inputs: [{ name: "priceFeed", internalType: "address", type: "address" }],
386
+ name: "PriceFeedIsNotUpdatableException"
387
+ },
388
+ { type: "error", inputs: [], name: "StalePriceException" },
389
+ { type: "error", inputs: [], name: "ZeroAddressException" }
390
+ ];
391
+ export {
392
+ iPriceFeedStoreAbi
393
+ };
@@ -0,0 +1,12 @@
1
+ const ITreasurySplitterAbi = [
2
+ {
3
+ type: "function",
4
+ name: "distribute",
5
+ inputs: [{ name: "token", type: "address", internalType: "address" }],
6
+ outputs: [],
7
+ stateMutability: "nonpayable"
8
+ }
9
+ ];
10
+ export {
11
+ ITreasurySplitterAbi
12
+ };