@gearbox-protocol/sdk 9.12.14 → 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 (228) 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/utils/viem/simulateWithPriceUpdates.js +3 -2
  78. package/dist/esm/abi/310/configure/creditSuiteParams.js +104 -0
  79. package/dist/esm/abi/310/configure/iCreditConfigureActions.js +157 -0
  80. package/dist/esm/abi/310/configure/iPoolConfigureActions.js +56 -0
  81. package/dist/esm/abi/310/configure/iPriceOracleConfigureActions.js +25 -0
  82. package/dist/esm/abi/310/crossChainMultisig.js +516 -0
  83. package/dist/esm/abi/310/iBytecodeRepository.js +873 -0
  84. package/dist/esm/abi/310/iMarketConfiguratorFactory.js +165 -0
  85. package/dist/esm/abi/310/iPriceFeedStore.js +393 -0
  86. package/dist/esm/abi/310/iTreasurySplitter.js +12 -0
  87. package/dist/esm/abi/310/instanceManager.js +250 -0
  88. package/dist/esm/abi/compressors/creditAccountCompressor.js +432 -0
  89. package/dist/esm/abi/compressors/creditSuiteCompressor.js +750 -0
  90. package/dist/esm/abi/compressors/defillamaCompressor.js +159 -0
  91. package/dist/esm/abi/compressors/gaugeCompressor.js +160 -0
  92. package/dist/esm/abi/compressors/marketCompressor.js +2453 -0
  93. package/dist/esm/abi/compressors/peripheryCompressor.js +178 -0
  94. package/dist/esm/abi/compressors/priceFeedCompressor.js +557 -0
  95. package/dist/esm/abi/compressors/rewardsCompressor.js +58 -0
  96. package/dist/esm/abi/compressors/subcompressors/infinifiWithdrawalSubcompressor.js +163 -0
  97. package/dist/esm/abi/compressors/subcompressors/mellowWithdrawalSubcompressor.js +163 -0
  98. package/dist/esm/abi/compressors/subcompressors/midasWithdrawalSubcompressor.js +163 -0
  99. package/dist/esm/abi/compressors/subcompressors/upshiftWithdrawalSubcompressor.js +163 -0
  100. package/dist/esm/abi/compressors/tokenCompressor.js +71 -0
  101. package/dist/esm/abi/compressors/withdrawalCompressor.js +248 -0
  102. package/dist/esm/abi/governance/batchesChain.js +44 -0
  103. package/dist/esm/abi/governance/governor.js +448 -0
  104. package/dist/esm/abi/governance/iTimeLock.js +233 -0
  105. package/dist/esm/abi/router/balancerV2Worker.js +706 -0
  106. package/dist/esm/abi/router/balancerV3Worker.js +710 -0
  107. package/dist/esm/abi/router/camelotV3Worker.js +534 -0
  108. package/dist/esm/abi/router/convexWorker.js +517 -0
  109. package/dist/esm/abi/router/curveWorker.js +694 -0
  110. package/dist/esm/abi/router/daiUsdsWorker.js +517 -0
  111. package/dist/esm/abi/router/equalizerRouterWorker.js +517 -0
  112. package/dist/esm/abi/router/erc4626Worker.js +548 -0
  113. package/dist/esm/abi/router/fluidDexWorker.js +527 -0
  114. package/dist/esm/abi/router/gearboxRouter.js +627 -0
  115. package/dist/esm/abi/router/infraredVaultWorker.js +517 -0
  116. package/dist/esm/abi/router/kodiakWorker.js +708 -0
  117. package/dist/esm/abi/router/lidoWorker.js +517 -0
  118. package/dist/esm/abi/router/mellow4626Worker.js +517 -0
  119. package/dist/esm/abi/router/mellowDVVWorker.js +517 -0
  120. package/dist/esm/abi/router/mellowVaultWorker.js +527 -0
  121. package/dist/esm/abi/router/pendleRouterWorker.js +543 -0
  122. package/dist/esm/abi/router/routingManager.js +373 -0
  123. package/dist/esm/abi/router/stakingRewardsWorker.js +517 -0
  124. package/dist/esm/abi/router/traderJoeWorker.js +517 -0
  125. package/dist/esm/abi/router/uniswapV2Worker.js +517 -0
  126. package/dist/esm/abi/router/uniswapV3Worker.js +544 -0
  127. package/dist/esm/abi/router/upshiftWorker.js +517 -0
  128. package/dist/esm/abi/router/velodromeV2Worker.js +517 -0
  129. package/dist/esm/abi/router/wstETHWorker.js +517 -0
  130. package/dist/esm/abi/router/yearnV2Worker.js +517 -0
  131. package/dist/esm/dev/migrateFaucet.js +1 -1
  132. package/dist/esm/plugins/accounts-counter/AccountsCounterPlugin.js +3 -3
  133. package/dist/esm/plugins/bots/BotsPlugin.js +2 -2
  134. package/dist/esm/plugins/pools-history/Pools7DAgoPlugin.js +2 -2
  135. package/dist/esm/plugins/zappers/ZappersPlugin.js +2 -2
  136. package/dist/esm/sdk/accounts/AbstractCreditAccountsService.js +10 -12
  137. package/dist/esm/sdk/accounts/CreditAccountsServiceV310.js +1 -1
  138. package/dist/esm/sdk/chain/detectNetwork.js +1 -1
  139. package/dist/esm/sdk/core/address-provider/AddressProviderV310Contract.js +1 -1
  140. package/dist/esm/sdk/gauges/GaugeStakingService.js +2 -2
  141. package/dist/esm/sdk/market/MarketConfiguratorContract.js +1 -1
  142. package/dist/esm/sdk/market/MarketRegister.js +3 -3
  143. package/dist/esm/sdk/market/credit/CreditConfiguratorV310Contract.js +1 -1
  144. package/dist/esm/sdk/market/credit/CreditFacadeV310Contract.js +2 -2
  145. package/dist/esm/sdk/market/credit/CreditManagerV310Contract.js +1 -1
  146. package/dist/esm/sdk/market/oracle/PriceOracleBaseContract.js +2 -2
  147. package/dist/esm/sdk/market/oracle/PriceOracleV310Contract.js +1 -1
  148. package/dist/esm/sdk/market/pool/PoolQuotaKeeperV310Contract.js +1 -1
  149. package/dist/esm/sdk/market/pool/PoolV310Contract.js +1 -1
  150. package/dist/esm/sdk/market/pool/TumblerContract.js +1 -1
  151. package/dist/esm/sdk/market/pricefeeds/PriceFeedsRegister.js +3 -3
  152. package/dist/esm/sdk/router/RouterV310Contract.js +2 -2
  153. package/dist/esm/sdk/utils/viem/simulateWithPriceUpdates.js +2 -1
  154. package/dist/types/abi/310/configure/creditSuiteParams.d.ts +92 -0
  155. package/dist/types/abi/310/configure/iCreditConfigureActions.d.ts +187 -0
  156. package/dist/types/abi/310/configure/iPoolConfigureActions.d.ts +65 -0
  157. package/dist/types/abi/310/configure/iPriceOracleConfigureActions.d.ts +29 -0
  158. package/dist/types/abi/310/crossChainMultisig.d.ts +709 -0
  159. package/dist/types/abi/310/iBytecodeRepository.d.ts +1139 -0
  160. package/dist/types/abi/310/iMarketConfiguratorFactory.d.ts +218 -0
  161. package/dist/types/abi/310/iPriceFeedStore.d.ts +526 -0
  162. package/dist/types/abi/310/iTreasurySplitter.d.ts +11 -0
  163. package/dist/types/abi/{iPriceFeedStore.d.ts → 310/instanceManager.d.ts} +183 -143
  164. package/dist/types/abi/compressors/creditAccountCompressor.d.ts +828 -0
  165. package/dist/types/abi/compressors/creditSuiteCompressor.d.ts +829 -0
  166. package/dist/types/abi/compressors/defillamaCompressor.d.ts +201 -0
  167. package/dist/types/abi/compressors/gaugeCompressor.d.ts +228 -0
  168. package/dist/types/abi/{compressors.d.ts → compressors/marketCompressor.d.ts} +1322 -4121
  169. package/dist/types/abi/compressors/peripheryCompressor.d.ts +217 -0
  170. package/dist/types/abi/compressors/priceFeedCompressor.d.ts +684 -0
  171. package/dist/types/abi/compressors/rewardsCompressor.d.ts +70 -0
  172. package/dist/types/abi/compressors/subcompressors/infinifiWithdrawalSubcompressor.d.ts +220 -0
  173. package/dist/types/abi/compressors/subcompressors/mellowWithdrawalSubcompressor.d.ts +220 -0
  174. package/dist/types/abi/compressors/subcompressors/midasWithdrawalSubcompressor.d.ts +220 -0
  175. package/dist/types/abi/compressors/subcompressors/upshiftWithdrawalSubcompressor.d.ts +220 -0
  176. package/dist/types/abi/compressors/tokenCompressor.d.ts +101 -0
  177. package/dist/types/abi/{routerV310.d.ts → compressors/withdrawalCompressor.d.ts} +175 -253
  178. package/dist/types/abi/governance/batchesChain.d.ts +31 -0
  179. package/dist/types/abi/governance/governor.d.ts +584 -0
  180. package/dist/types/abi/governance/iTimeLock.d.ts +328 -0
  181. package/dist/types/abi/router/balancerV2Worker.d.ts +961 -0
  182. package/dist/types/abi/router/balancerV3Worker.d.ts +961 -0
  183. package/dist/types/abi/router/camelotV3Worker.d.ts +754 -0
  184. package/dist/types/abi/router/convexWorker.d.ts +726 -0
  185. package/dist/types/abi/router/curveWorker.d.ts +947 -0
  186. package/dist/types/abi/router/daiUsdsWorker.d.ts +726 -0
  187. package/dist/types/abi/router/equalizerRouterWorker.d.ts +726 -0
  188. package/dist/types/abi/router/erc4626Worker.d.ts +769 -0
  189. package/dist/types/abi/router/fluidDexWorker.d.ts +740 -0
  190. package/dist/types/abi/router/gearboxRouter.d.ts +881 -0
  191. package/dist/types/abi/router/infraredVaultWorker.d.ts +726 -0
  192. package/dist/types/abi/router/kodiakWorker.d.ts +967 -0
  193. package/dist/types/abi/router/lidoWorker.d.ts +726 -0
  194. package/dist/types/abi/router/mellow4626Worker.d.ts +726 -0
  195. package/dist/types/abi/router/mellowDVVWorker.d.ts +726 -0
  196. package/dist/types/abi/router/mellowVaultWorker.d.ts +740 -0
  197. package/dist/types/abi/router/pendleRouterWorker.d.ts +760 -0
  198. package/dist/types/abi/router/routingManager.d.ts +494 -0
  199. package/dist/types/abi/router/stakingRewardsWorker.d.ts +726 -0
  200. package/dist/types/abi/router/traderJoeWorker.d.ts +726 -0
  201. package/dist/types/abi/router/uniswapV2Worker.d.ts +726 -0
  202. package/dist/types/abi/router/uniswapV3Worker.d.ts +774 -0
  203. package/dist/types/abi/router/upshiftWorker.d.ts +726 -0
  204. package/dist/types/abi/router/velodromeV2Worker.d.ts +726 -0
  205. package/dist/types/abi/router/wstETHWorker.d.ts +726 -0
  206. package/dist/types/abi/router/yearnV2Worker.d.ts +726 -0
  207. package/dist/types/plugins/bots/types.d.ts +2 -2
  208. package/dist/types/plugins/zappers/types.d.ts +2 -2
  209. package/dist/types/sdk/accounts/types.d.ts +2 -2
  210. package/dist/types/sdk/base/types.d.ts +11 -7
  211. package/dist/types/sdk/market/credit/CreditManagerV310Contract.d.ts +1 -1
  212. package/dist/types/sdk/market/oracle/types.d.ts +3 -3
  213. package/dist/types/sdk/router/RouterV310Contract.d.ts +481 -1
  214. package/dist/types/sdk/sdk-legacy/payload/pool.d.ts +2 -2
  215. package/package.json +1 -1
  216. package/dist/cjs/abi/compressors.js +0 -4555
  217. package/dist/cjs/abi/iPriceFeedStore.js +0 -254
  218. package/dist/cjs/abi/index.js +0 -46
  219. package/dist/cjs/abi/package.json +0 -1
  220. package/dist/cjs/abi/routerV310.js +0 -276
  221. package/dist/esm/abi/compressors.js +0 -4524
  222. package/dist/esm/abi/iPriceFeedStore.js +0 -230
  223. package/dist/esm/abi/index.js +0 -13
  224. package/dist/esm/abi/package.json +0 -1
  225. package/dist/esm/abi/routerV310.js +0 -252
  226. package/dist/types/abi/index.d.ts +0 -13
  227. /package/dist/esm/abi/{v310.js → 310/generated.js} +0 -0
  228. /package/dist/types/abi/{v310.d.ts → 310/generated.d.ts} +0 -0
@@ -0,0 +1,448 @@
1
+ const governorAbi = [
2
+ {
3
+ type: "constructor",
4
+ inputs: [
5
+ { name: "_owner", type: "address", internalType: "address" },
6
+ { name: "_vetoAdmin", type: "address", internalType: "address" },
7
+ { name: "_delay", type: "uint256", internalType: "uint256" },
8
+ {
9
+ name: "_allowPermissionlessExecution",
10
+ type: "bool",
11
+ internalType: "bool"
12
+ }
13
+ ],
14
+ stateMutability: "nonpayable"
15
+ },
16
+ {
17
+ type: "function",
18
+ name: "acceptOwnership",
19
+ inputs: [],
20
+ outputs: [],
21
+ stateMutability: "nonpayable"
22
+ },
23
+ {
24
+ type: "function",
25
+ name: "addExecutionAdmin",
26
+ inputs: [{ name: "admin", type: "address", internalType: "address" }],
27
+ outputs: [],
28
+ stateMutability: "nonpayable"
29
+ },
30
+ {
31
+ type: "function",
32
+ name: "addQueueAdmin",
33
+ inputs: [{ name: "admin", type: "address", internalType: "address" }],
34
+ outputs: [],
35
+ stateMutability: "nonpayable"
36
+ },
37
+ {
38
+ type: "function",
39
+ name: "allowPermissionlessExecution",
40
+ inputs: [],
41
+ outputs: [],
42
+ stateMutability: "nonpayable"
43
+ },
44
+ {
45
+ type: "function",
46
+ name: "batchInfo",
47
+ inputs: [{ name: "", type: "uint256", internalType: "uint256" }],
48
+ outputs: [
49
+ { name: "initiator", type: "address", internalType: "address" },
50
+ { name: "length", type: "uint16", internalType: "uint16" },
51
+ { name: "eta", type: "uint80", internalType: "uint80" }
52
+ ],
53
+ stateMutability: "view"
54
+ },
55
+ {
56
+ type: "function",
57
+ name: "batchedTxInfo",
58
+ inputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
59
+ outputs: [
60
+ { name: "batchBlock", type: "uint64", internalType: "uint64" },
61
+ { name: "index", type: "uint16", internalType: "uint16" }
62
+ ],
63
+ stateMutability: "view"
64
+ },
65
+ {
66
+ type: "function",
67
+ name: "cancelBatch",
68
+ inputs: [
69
+ {
70
+ name: "txs",
71
+ type: "tuple[]",
72
+ internalType: "struct IGovernor.TxParams[]",
73
+ components: [
74
+ { name: "target", type: "address", internalType: "address" },
75
+ { name: "value", type: "uint256", internalType: "uint256" },
76
+ { name: "signature", type: "string", internalType: "string" },
77
+ { name: "data", type: "bytes", internalType: "bytes" },
78
+ { name: "eta", type: "uint256", internalType: "uint256" }
79
+ ]
80
+ }
81
+ ],
82
+ outputs: [],
83
+ stateMutability: "nonpayable"
84
+ },
85
+ {
86
+ type: "function",
87
+ name: "cancelTransaction",
88
+ inputs: [
89
+ { name: "target", type: "address", internalType: "address" },
90
+ { name: "value", type: "uint256", internalType: "uint256" },
91
+ { name: "signature", type: "string", internalType: "string" },
92
+ { name: "data", type: "bytes", internalType: "bytes" },
93
+ { name: "eta", type: "uint256", internalType: "uint256" }
94
+ ],
95
+ outputs: [],
96
+ stateMutability: "nonpayable"
97
+ },
98
+ {
99
+ type: "function",
100
+ name: "contractType",
101
+ inputs: [],
102
+ outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
103
+ stateMutability: "view"
104
+ },
105
+ {
106
+ type: "function",
107
+ name: "executeBatch",
108
+ inputs: [
109
+ {
110
+ name: "txs",
111
+ type: "tuple[]",
112
+ internalType: "struct IGovernor.TxParams[]",
113
+ components: [
114
+ { name: "target", type: "address", internalType: "address" },
115
+ { name: "value", type: "uint256", internalType: "uint256" },
116
+ { name: "signature", type: "string", internalType: "string" },
117
+ { name: "data", type: "bytes", internalType: "bytes" },
118
+ { name: "eta", type: "uint256", internalType: "uint256" }
119
+ ]
120
+ }
121
+ ],
122
+ outputs: [],
123
+ stateMutability: "payable"
124
+ },
125
+ {
126
+ type: "function",
127
+ name: "executeTransaction",
128
+ inputs: [
129
+ { name: "target", type: "address", internalType: "address" },
130
+ { name: "value", type: "uint256", internalType: "uint256" },
131
+ { name: "signature", type: "string", internalType: "string" },
132
+ { name: "data", type: "bytes", internalType: "bytes" },
133
+ { name: "eta", type: "uint256", internalType: "uint256" }
134
+ ],
135
+ outputs: [{ name: "", type: "bytes", internalType: "bytes" }],
136
+ stateMutability: "payable"
137
+ },
138
+ {
139
+ type: "function",
140
+ name: "executionAdmins",
141
+ inputs: [],
142
+ outputs: [{ name: "", type: "address[]", internalType: "address[]" }],
143
+ stateMutability: "view"
144
+ },
145
+ {
146
+ type: "function",
147
+ name: "forbidPermissionlessExecution",
148
+ inputs: [],
149
+ outputs: [],
150
+ stateMutability: "nonpayable"
151
+ },
152
+ {
153
+ type: "function",
154
+ name: "isPermissionlessExecutionAllowed",
155
+ inputs: [],
156
+ outputs: [{ name: "", type: "bool", internalType: "bool" }],
157
+ stateMutability: "view"
158
+ },
159
+ {
160
+ type: "function",
161
+ name: "owner",
162
+ inputs: [],
163
+ outputs: [{ name: "", type: "address", internalType: "address" }],
164
+ stateMutability: "view"
165
+ },
166
+ {
167
+ type: "function",
168
+ name: "pendingOwner",
169
+ inputs: [],
170
+ outputs: [{ name: "", type: "address", internalType: "address" }],
171
+ stateMutability: "view"
172
+ },
173
+ {
174
+ type: "function",
175
+ name: "queueAdmins",
176
+ inputs: [],
177
+ outputs: [{ name: "", type: "address[]", internalType: "address[]" }],
178
+ stateMutability: "view"
179
+ },
180
+ {
181
+ type: "function",
182
+ name: "queueTransaction",
183
+ inputs: [
184
+ { name: "target", type: "address", internalType: "address" },
185
+ { name: "value", type: "uint256", internalType: "uint256" },
186
+ { name: "signature", type: "string", internalType: "string" },
187
+ { name: "data", type: "bytes", internalType: "bytes" },
188
+ { name: "eta", type: "uint256", internalType: "uint256" }
189
+ ],
190
+ outputs: [{ name: "txHash", type: "bytes32", internalType: "bytes32" }],
191
+ stateMutability: "nonpayable"
192
+ },
193
+ {
194
+ type: "function",
195
+ name: "removeExecutionAdmin",
196
+ inputs: [{ name: "admin", type: "address", internalType: "address" }],
197
+ outputs: [],
198
+ stateMutability: "nonpayable"
199
+ },
200
+ {
201
+ type: "function",
202
+ name: "removeQueueAdmin",
203
+ inputs: [{ name: "admin", type: "address", internalType: "address" }],
204
+ outputs: [],
205
+ stateMutability: "nonpayable"
206
+ },
207
+ {
208
+ type: "function",
209
+ name: "renounceOwnership",
210
+ inputs: [],
211
+ outputs: [],
212
+ stateMutability: "pure"
213
+ },
214
+ {
215
+ type: "function",
216
+ name: "startBatch",
217
+ inputs: [{ name: "eta", type: "uint80", internalType: "uint80" }],
218
+ outputs: [],
219
+ stateMutability: "nonpayable"
220
+ },
221
+ {
222
+ type: "function",
223
+ name: "timeLock",
224
+ inputs: [],
225
+ outputs: [{ name: "", type: "address", internalType: "address" }],
226
+ stateMutability: "view"
227
+ },
228
+ {
229
+ type: "function",
230
+ name: "transferOwnership",
231
+ inputs: [{ name: "newOwner", type: "address", internalType: "address" }],
232
+ outputs: [],
233
+ stateMutability: "nonpayable"
234
+ },
235
+ {
236
+ type: "function",
237
+ name: "updateVetoAdmin",
238
+ inputs: [{ name: "admin", type: "address", internalType: "address" }],
239
+ outputs: [],
240
+ stateMutability: "nonpayable"
241
+ },
242
+ {
243
+ type: "function",
244
+ name: "version",
245
+ inputs: [],
246
+ outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
247
+ stateMutability: "view"
248
+ },
249
+ {
250
+ type: "function",
251
+ name: "vetoAdmin",
252
+ inputs: [],
253
+ outputs: [{ name: "", type: "address", internalType: "address" }],
254
+ stateMutability: "view"
255
+ },
256
+ {
257
+ type: "event",
258
+ name: "AddExecutionAdmin",
259
+ inputs: [
260
+ {
261
+ name: "admin",
262
+ type: "address",
263
+ indexed: true,
264
+ internalType: "address"
265
+ }
266
+ ],
267
+ anonymous: false
268
+ },
269
+ {
270
+ type: "event",
271
+ name: "AddQueueAdmin",
272
+ inputs: [
273
+ {
274
+ name: "admin",
275
+ type: "address",
276
+ indexed: true,
277
+ internalType: "address"
278
+ }
279
+ ],
280
+ anonymous: false
281
+ },
282
+ {
283
+ type: "event",
284
+ name: "AllowPermissionlessExecution",
285
+ inputs: [],
286
+ anonymous: false
287
+ },
288
+ {
289
+ type: "event",
290
+ name: "CancelBatch",
291
+ inputs: [
292
+ {
293
+ name: "caller",
294
+ type: "address",
295
+ indexed: true,
296
+ internalType: "address"
297
+ },
298
+ {
299
+ name: "batchBlock",
300
+ type: "uint256",
301
+ indexed: true,
302
+ internalType: "uint256"
303
+ }
304
+ ],
305
+ anonymous: false
306
+ },
307
+ {
308
+ type: "event",
309
+ name: "ExecuteBatch",
310
+ inputs: [
311
+ {
312
+ name: "caller",
313
+ type: "address",
314
+ indexed: true,
315
+ internalType: "address"
316
+ },
317
+ {
318
+ name: "batchBlock",
319
+ type: "uint256",
320
+ indexed: true,
321
+ internalType: "uint256"
322
+ }
323
+ ],
324
+ anonymous: false
325
+ },
326
+ {
327
+ type: "event",
328
+ name: "ForbidPermissionlessExecution",
329
+ inputs: [],
330
+ anonymous: false
331
+ },
332
+ {
333
+ type: "event",
334
+ name: "OwnershipTransferStarted",
335
+ inputs: [
336
+ {
337
+ name: "previousOwner",
338
+ type: "address",
339
+ indexed: true,
340
+ internalType: "address"
341
+ },
342
+ {
343
+ name: "newOwner",
344
+ type: "address",
345
+ indexed: true,
346
+ internalType: "address"
347
+ }
348
+ ],
349
+ anonymous: false
350
+ },
351
+ {
352
+ type: "event",
353
+ name: "OwnershipTransferred",
354
+ inputs: [
355
+ {
356
+ name: "previousOwner",
357
+ type: "address",
358
+ indexed: true,
359
+ internalType: "address"
360
+ },
361
+ {
362
+ name: "newOwner",
363
+ type: "address",
364
+ indexed: true,
365
+ internalType: "address"
366
+ }
367
+ ],
368
+ anonymous: false
369
+ },
370
+ {
371
+ type: "event",
372
+ name: "QueueBatch",
373
+ inputs: [
374
+ {
375
+ name: "caller",
376
+ type: "address",
377
+ indexed: true,
378
+ internalType: "address"
379
+ },
380
+ {
381
+ name: "batchBlock",
382
+ type: "uint256",
383
+ indexed: true,
384
+ internalType: "uint256"
385
+ }
386
+ ],
387
+ anonymous: false
388
+ },
389
+ {
390
+ type: "event",
391
+ name: "RemoveExecutionAdmin",
392
+ inputs: [
393
+ {
394
+ name: "admin",
395
+ type: "address",
396
+ indexed: true,
397
+ internalType: "address"
398
+ }
399
+ ],
400
+ anonymous: false
401
+ },
402
+ {
403
+ type: "event",
404
+ name: "RemoveQueueAdmin",
405
+ inputs: [
406
+ {
407
+ name: "admin",
408
+ type: "address",
409
+ indexed: true,
410
+ internalType: "address"
411
+ }
412
+ ],
413
+ anonymous: false
414
+ },
415
+ {
416
+ type: "event",
417
+ name: "UpdateVetoAdmin",
418
+ inputs: [
419
+ {
420
+ name: "admin",
421
+ type: "address",
422
+ indexed: true,
423
+ internalType: "address"
424
+ }
425
+ ],
426
+ anonymous: false
427
+ },
428
+ { type: "error", name: "AdminCantBeZeroAddressException", inputs: [] },
429
+ { type: "error", name: "BatchAlreadyStartedException", inputs: [] },
430
+ { type: "error", name: "CallerNotBatchInitiatorException", inputs: [] },
431
+ { type: "error", name: "CallerNotExecutionAdminException", inputs: [] },
432
+ { type: "error", name: "CallerNotQueueAdminException", inputs: [] },
433
+ { type: "error", name: "CallerNotTimelockException", inputs: [] },
434
+ { type: "error", name: "CallerNotVetoAdminException", inputs: [] },
435
+ { type: "error", name: "CannotRenounceOwnershipException", inputs: [] },
436
+ { type: "error", name: "CantPerformActionOutsideBatchException", inputs: [] },
437
+ { type: "error", name: "ETAMistmatchException", inputs: [] },
438
+ { type: "error", name: "IncorrectBatchException", inputs: [] },
439
+ { type: "error", name: "TransactionAlreadyQueuedException", inputs: [] },
440
+ {
441
+ type: "error",
442
+ name: "UnexpectedTransactionException",
443
+ inputs: [{ name: "txHash", type: "bytes32", internalType: "bytes32" }]
444
+ }
445
+ ];
446
+ export {
447
+ governorAbi
448
+ };
@@ -0,0 +1,233 @@
1
+ const iTimeLockAbi = [
2
+ {
3
+ type: "function",
4
+ inputs: [],
5
+ name: "GRACE_PERIOD",
6
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
7
+ stateMutability: "view"
8
+ },
9
+ {
10
+ type: "function",
11
+ inputs: [],
12
+ name: "MAXIMUM_DELAY",
13
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
14
+ stateMutability: "view"
15
+ },
16
+ {
17
+ type: "function",
18
+ inputs: [],
19
+ name: "MINIMUM_DELAY",
20
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
21
+ stateMutability: "view"
22
+ },
23
+ {
24
+ type: "function",
25
+ inputs: [],
26
+ name: "admin",
27
+ outputs: [{ name: "", internalType: "address", type: "address" }],
28
+ stateMutability: "view"
29
+ },
30
+ {
31
+ type: "function",
32
+ inputs: [
33
+ { name: "target", internalType: "address", type: "address" },
34
+ { name: "value", internalType: "uint256", type: "uint256" },
35
+ { name: "signature", internalType: "string", type: "string" },
36
+ { name: "data", internalType: "bytes", type: "bytes" },
37
+ { name: "eta", internalType: "uint256", type: "uint256" }
38
+ ],
39
+ name: "cancelTransaction",
40
+ outputs: [],
41
+ stateMutability: "nonpayable"
42
+ },
43
+ {
44
+ type: "function",
45
+ inputs: [],
46
+ name: "delay",
47
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
48
+ stateMutability: "view"
49
+ },
50
+ {
51
+ type: "function",
52
+ inputs: [
53
+ { name: "target", internalType: "address", type: "address" },
54
+ { name: "value", internalType: "uint256", type: "uint256" },
55
+ { name: "signature", internalType: "string", type: "string" },
56
+ { name: "data", internalType: "bytes", type: "bytes" },
57
+ { name: "eta", internalType: "uint256", type: "uint256" }
58
+ ],
59
+ name: "executeTransaction",
60
+ outputs: [{ name: "result", internalType: "bytes", type: "bytes" }],
61
+ stateMutability: "payable"
62
+ },
63
+ {
64
+ type: "function",
65
+ inputs: [
66
+ { name: "target", internalType: "address", type: "address" },
67
+ { name: "value", internalType: "uint256", type: "uint256" },
68
+ { name: "signature", internalType: "string", type: "string" },
69
+ { name: "data", internalType: "bytes", type: "bytes" },
70
+ { name: "eta", internalType: "uint256", type: "uint256" }
71
+ ],
72
+ name: "queueTransaction",
73
+ outputs: [{ name: "txHash", internalType: "bytes32", type: "bytes32" }],
74
+ stateMutability: "nonpayable"
75
+ },
76
+ {
77
+ type: "function",
78
+ inputs: [{ name: "txHash", internalType: "bytes32", type: "bytes32" }],
79
+ name: "queuedTransactions",
80
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
81
+ stateMutability: "view"
82
+ },
83
+ {
84
+ type: "function",
85
+ inputs: [{ name: "newDelay", internalType: "uint256", type: "uint256" }],
86
+ name: "setDelay",
87
+ outputs: [],
88
+ stateMutability: "nonpayable"
89
+ },
90
+ {
91
+ type: "event",
92
+ anonymous: false,
93
+ inputs: [
94
+ {
95
+ name: "txHash",
96
+ internalType: "bytes32",
97
+ type: "bytes32",
98
+ indexed: true
99
+ },
100
+ {
101
+ name: "target",
102
+ internalType: "address",
103
+ type: "address",
104
+ indexed: true
105
+ },
106
+ {
107
+ name: "value",
108
+ internalType: "uint256",
109
+ type: "uint256",
110
+ indexed: false
111
+ },
112
+ {
113
+ name: "signature",
114
+ internalType: "string",
115
+ type: "string",
116
+ indexed: false
117
+ },
118
+ { name: "data", internalType: "bytes", type: "bytes", indexed: false },
119
+ { name: "eta", internalType: "uint256", type: "uint256", indexed: false }
120
+ ],
121
+ name: "CancelTransaction"
122
+ },
123
+ {
124
+ type: "event",
125
+ anonymous: false,
126
+ inputs: [
127
+ {
128
+ name: "txHash",
129
+ internalType: "bytes32",
130
+ type: "bytes32",
131
+ indexed: true
132
+ },
133
+ {
134
+ name: "target",
135
+ internalType: "address",
136
+ type: "address",
137
+ indexed: true
138
+ },
139
+ {
140
+ name: "value",
141
+ internalType: "uint256",
142
+ type: "uint256",
143
+ indexed: false
144
+ },
145
+ {
146
+ name: "signature",
147
+ internalType: "string",
148
+ type: "string",
149
+ indexed: false
150
+ },
151
+ { name: "data", internalType: "bytes", type: "bytes", indexed: false },
152
+ { name: "eta", internalType: "uint256", type: "uint256", indexed: false }
153
+ ],
154
+ name: "ExecuteTransaction"
155
+ },
156
+ {
157
+ type: "event",
158
+ anonymous: false,
159
+ inputs: [
160
+ {
161
+ name: "newDelay",
162
+ internalType: "uint256",
163
+ type: "uint256",
164
+ indexed: true
165
+ }
166
+ ],
167
+ name: "NewDelay"
168
+ },
169
+ {
170
+ type: "event",
171
+ anonymous: false,
172
+ inputs: [
173
+ {
174
+ name: "txHash",
175
+ internalType: "bytes32",
176
+ type: "bytes32",
177
+ indexed: true
178
+ },
179
+ {
180
+ name: "target",
181
+ internalType: "address",
182
+ type: "address",
183
+ indexed: true
184
+ },
185
+ {
186
+ name: "value",
187
+ internalType: "uint256",
188
+ type: "uint256",
189
+ indexed: false
190
+ },
191
+ {
192
+ name: "signature",
193
+ internalType: "string",
194
+ type: "string",
195
+ indexed: false
196
+ },
197
+ { name: "data", internalType: "bytes", type: "bytes", indexed: false },
198
+ { name: "eta", internalType: "uint256", type: "uint256", indexed: false }
199
+ ],
200
+ name: "QueueTransaction"
201
+ },
202
+ {
203
+ type: "error",
204
+ inputs: [{ name: "caller", internalType: "address", type: "address" }],
205
+ name: "CallerIsNotAdminException"
206
+ },
207
+ {
208
+ type: "error",
209
+ inputs: [{ name: "caller", internalType: "address", type: "address" }],
210
+ name: "CallerIsNotSelfException"
211
+ },
212
+ { type: "error", inputs: [], name: "DelayNotSatisfiedException" },
213
+ { type: "error", inputs: [], name: "IncorrectDelayException" },
214
+ {
215
+ type: "error",
216
+ inputs: [{ name: "txHash", internalType: "bytes32", type: "bytes32" }],
217
+ name: "StaleTransactionException"
218
+ },
219
+ { type: "error", inputs: [], name: "TimelockNotSurpassedException" },
220
+ {
221
+ type: "error",
222
+ inputs: [{ name: "txHash", internalType: "bytes32", type: "bytes32" }],
223
+ name: "TransactionExecutionRevertedException"
224
+ },
225
+ {
226
+ type: "error",
227
+ inputs: [{ name: "txHash", internalType: "bytes32", type: "bytes32" }],
228
+ name: "TransactionIsNotQueuedException"
229
+ }
230
+ ];
231
+ export {
232
+ iTimeLockAbi
233
+ };