@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,897 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var iBytecodeRepository_exports = {};
20
+ __export(iBytecodeRepository_exports, {
21
+ iBytecodeRepositoryAbi: () => iBytecodeRepositoryAbi
22
+ });
23
+ module.exports = __toCommonJS(iBytecodeRepository_exports);
24
+ const iBytecodeRepositoryAbi = [
25
+ {
26
+ type: "function",
27
+ inputs: [],
28
+ name: "AUDIT_REPORT_TYPEHASH",
29
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
30
+ stateMutability: "view"
31
+ },
32
+ {
33
+ type: "function",
34
+ inputs: [],
35
+ name: "BYTECODE_TYPEHASH",
36
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
37
+ stateMutability: "view"
38
+ },
39
+ {
40
+ type: "function",
41
+ inputs: [
42
+ { name: "auditor", internalType: "address", type: "address" },
43
+ { name: "name", internalType: "string", type: "string" }
44
+ ],
45
+ name: "addAuditor",
46
+ outputs: [],
47
+ stateMutability: "nonpayable"
48
+ },
49
+ {
50
+ type: "function",
51
+ inputs: [{ name: "domain", internalType: "bytes32", type: "bytes32" }],
52
+ name: "addPublicDomain",
53
+ outputs: [],
54
+ stateMutability: "nonpayable"
55
+ },
56
+ {
57
+ type: "function",
58
+ inputs: [
59
+ { name: "bytecodeHash", internalType: "bytes32", type: "bytes32" }
60
+ ],
61
+ name: "allowPublicContract",
62
+ outputs: [],
63
+ stateMutability: "nonpayable"
64
+ },
65
+ {
66
+ type: "function",
67
+ inputs: [
68
+ { name: "bytecodeHash", internalType: "bytes32", type: "bytes32" }
69
+ ],
70
+ name: "allowSystemContract",
71
+ outputs: [],
72
+ stateMutability: "nonpayable"
73
+ },
74
+ {
75
+ type: "function",
76
+ inputs: [
77
+ { name: "contractType", internalType: "bytes32", type: "bytes32" },
78
+ { name: "version", internalType: "uint256", type: "uint256" },
79
+ { name: "constructorParams", internalType: "bytes", type: "bytes" },
80
+ { name: "salt", internalType: "bytes32", type: "bytes32" },
81
+ { name: "deployer", internalType: "address", type: "address" }
82
+ ],
83
+ name: "computeAddress",
84
+ outputs: [{ name: "", internalType: "address", type: "address" }],
85
+ stateMutability: "view"
86
+ },
87
+ {
88
+ type: "function",
89
+ inputs: [
90
+ { name: "bytecodeHash", internalType: "bytes32", type: "bytes32" },
91
+ {
92
+ name: "report",
93
+ internalType: "struct AuditReport",
94
+ type: "tuple",
95
+ components: [
96
+ { name: "auditor", internalType: "address", type: "address" },
97
+ { name: "reportUrl", internalType: "string", type: "string" },
98
+ { name: "signature", internalType: "bytes", type: "bytes" }
99
+ ]
100
+ }
101
+ ],
102
+ name: "computeAuditReportHash",
103
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
104
+ stateMutability: "view"
105
+ },
106
+ {
107
+ type: "function",
108
+ inputs: [
109
+ {
110
+ name: "bytecode",
111
+ internalType: "struct Bytecode",
112
+ type: "tuple",
113
+ components: [
114
+ { name: "contractType", internalType: "bytes32", type: "bytes32" },
115
+ { name: "version", internalType: "uint256", type: "uint256" },
116
+ { name: "initCode", internalType: "bytes", type: "bytes" },
117
+ { name: "author", internalType: "address", type: "address" },
118
+ { name: "source", internalType: "string", type: "string" },
119
+ { name: "authorSignature", internalType: "bytes", type: "bytes" }
120
+ ]
121
+ }
122
+ ],
123
+ name: "computeBytecodeHash",
124
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
125
+ stateMutability: "view"
126
+ },
127
+ {
128
+ type: "function",
129
+ inputs: [],
130
+ name: "contractType",
131
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
132
+ stateMutability: "view"
133
+ },
134
+ {
135
+ type: "function",
136
+ inputs: [
137
+ { name: "contractType", internalType: "bytes32", type: "bytes32" },
138
+ { name: "version", internalType: "uint256", type: "uint256" },
139
+ { name: "constructorParams", internalType: "bytes", type: "bytes" },
140
+ { name: "salt", internalType: "bytes32", type: "bytes32" }
141
+ ],
142
+ name: "deploy",
143
+ outputs: [{ name: "", internalType: "address", type: "address" }],
144
+ stateMutability: "nonpayable"
145
+ },
146
+ {
147
+ type: "function",
148
+ inputs: [],
149
+ name: "domainSeparatorV4",
150
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
151
+ stateMutability: "view"
152
+ },
153
+ {
154
+ type: "function",
155
+ inputs: [
156
+ { name: "initCodeHash", internalType: "bytes32", type: "bytes32" }
157
+ ],
158
+ name: "forbidInitCode",
159
+ outputs: [],
160
+ stateMutability: "nonpayable"
161
+ },
162
+ {
163
+ type: "function",
164
+ inputs: [
165
+ { name: "contractType", internalType: "bytes32", type: "bytes32" },
166
+ { name: "version", internalType: "uint256", type: "uint256" }
167
+ ],
168
+ name: "getAllowedBytecodeHash",
169
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
170
+ stateMutability: "view"
171
+ },
172
+ {
173
+ type: "function",
174
+ inputs: [
175
+ { name: "bytecodeHash", internalType: "bytes32", type: "bytes32" },
176
+ { name: "index", internalType: "uint256", type: "uint256" }
177
+ ],
178
+ name: "getAuditReport",
179
+ outputs: [
180
+ {
181
+ name: "",
182
+ internalType: "struct AuditReport",
183
+ type: "tuple",
184
+ components: [
185
+ { name: "auditor", internalType: "address", type: "address" },
186
+ { name: "reportUrl", internalType: "string", type: "string" },
187
+ { name: "signature", internalType: "bytes", type: "bytes" }
188
+ ]
189
+ }
190
+ ],
191
+ stateMutability: "view"
192
+ },
193
+ {
194
+ type: "function",
195
+ inputs: [
196
+ { name: "bytecodeHash", internalType: "bytes32", type: "bytes32" }
197
+ ],
198
+ name: "getAuditReports",
199
+ outputs: [
200
+ {
201
+ name: "",
202
+ internalType: "struct AuditReport[]",
203
+ type: "tuple[]",
204
+ components: [
205
+ { name: "auditor", internalType: "address", type: "address" },
206
+ { name: "reportUrl", internalType: "string", type: "string" },
207
+ { name: "signature", internalType: "bytes", type: "bytes" }
208
+ ]
209
+ }
210
+ ],
211
+ stateMutability: "view"
212
+ },
213
+ {
214
+ type: "function",
215
+ inputs: [{ name: "auditor", internalType: "address", type: "address" }],
216
+ name: "getAuditorName",
217
+ outputs: [{ name: "", internalType: "string", type: "string" }],
218
+ stateMutability: "view"
219
+ },
220
+ {
221
+ type: "function",
222
+ inputs: [],
223
+ name: "getAuditors",
224
+ outputs: [{ name: "", internalType: "address[]", type: "address[]" }],
225
+ stateMutability: "view"
226
+ },
227
+ {
228
+ type: "function",
229
+ inputs: [
230
+ { name: "bytecodeHash", internalType: "bytes32", type: "bytes32" }
231
+ ],
232
+ name: "getBytecode",
233
+ outputs: [
234
+ {
235
+ name: "",
236
+ internalType: "struct Bytecode",
237
+ type: "tuple",
238
+ components: [
239
+ { name: "contractType", internalType: "bytes32", type: "bytes32" },
240
+ { name: "version", internalType: "uint256", type: "uint256" },
241
+ { name: "initCode", internalType: "bytes", type: "bytes" },
242
+ { name: "author", internalType: "address", type: "address" },
243
+ { name: "source", internalType: "string", type: "string" },
244
+ { name: "authorSignature", internalType: "bytes", type: "bytes" }
245
+ ]
246
+ }
247
+ ],
248
+ stateMutability: "view"
249
+ },
250
+ {
251
+ type: "function",
252
+ inputs: [
253
+ { name: "contractType", internalType: "bytes32", type: "bytes32" }
254
+ ],
255
+ name: "getContractTypeOwner",
256
+ outputs: [{ name: "", internalType: "address", type: "address" }],
257
+ stateMutability: "view"
258
+ },
259
+ {
260
+ type: "function",
261
+ inputs: [
262
+ { name: "deployedContract", internalType: "address", type: "address" }
263
+ ],
264
+ name: "getDeployedContractBytecodeHash",
265
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
266
+ stateMutability: "view"
267
+ },
268
+ {
269
+ type: "function",
270
+ inputs: [
271
+ { name: "contractType", internalType: "bytes32", type: "bytes32" },
272
+ { name: "majorVersion", internalType: "uint256", type: "uint256" }
273
+ ],
274
+ name: "getLatestMinorVersion",
275
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
276
+ stateMutability: "view"
277
+ },
278
+ {
279
+ type: "function",
280
+ inputs: [
281
+ { name: "contractType", internalType: "bytes32", type: "bytes32" },
282
+ { name: "minorVersion", internalType: "uint256", type: "uint256" }
283
+ ],
284
+ name: "getLatestPatchVersion",
285
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
286
+ stateMutability: "view"
287
+ },
288
+ {
289
+ type: "function",
290
+ inputs: [
291
+ { name: "contractType", internalType: "bytes32", type: "bytes32" }
292
+ ],
293
+ name: "getLatestVersion",
294
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
295
+ stateMutability: "view"
296
+ },
297
+ {
298
+ type: "function",
299
+ inputs: [
300
+ { name: "bytecodeHash", internalType: "bytes32", type: "bytes32" }
301
+ ],
302
+ name: "getNumAuditReports",
303
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
304
+ stateMutability: "view"
305
+ },
306
+ {
307
+ type: "function",
308
+ inputs: [],
309
+ name: "getPublicDomains",
310
+ outputs: [{ name: "", internalType: "bytes32[]", type: "bytes32[]" }],
311
+ stateMutability: "view"
312
+ },
313
+ {
314
+ type: "function",
315
+ inputs: [],
316
+ name: "getSystemDomains",
317
+ outputs: [{ name: "", internalType: "bytes32[]", type: "bytes32[]" }],
318
+ stateMutability: "view"
319
+ },
320
+ {
321
+ type: "function",
322
+ inputs: [{ name: "token", internalType: "address", type: "address" }],
323
+ name: "getTokenSpecificPostfix",
324
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
325
+ stateMutability: "view"
326
+ },
327
+ {
328
+ type: "function",
329
+ inputs: [
330
+ { name: "contractType", internalType: "bytes32", type: "bytes32" }
331
+ ],
332
+ name: "getVersions",
333
+ outputs: [{ name: "", internalType: "uint256[]", type: "uint256[]" }],
334
+ stateMutability: "view"
335
+ },
336
+ {
337
+ type: "function",
338
+ inputs: [{ name: "auditor", internalType: "address", type: "address" }],
339
+ name: "isAuditor",
340
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
341
+ stateMutability: "view"
342
+ },
343
+ {
344
+ type: "function",
345
+ inputs: [
346
+ { name: "bytecodeHash", internalType: "bytes32", type: "bytes32" }
347
+ ],
348
+ name: "isBytecodeAudited",
349
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
350
+ stateMutability: "view"
351
+ },
352
+ {
353
+ type: "function",
354
+ inputs: [
355
+ { name: "bytecodeHash", internalType: "bytes32", type: "bytes32" }
356
+ ],
357
+ name: "isBytecodeUploaded",
358
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
359
+ stateMutability: "view"
360
+ },
361
+ {
362
+ type: "function",
363
+ inputs: [
364
+ { name: "deployedContract", internalType: "address", type: "address" }
365
+ ],
366
+ name: "isDeployedFromRepository",
367
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
368
+ stateMutability: "view"
369
+ },
370
+ {
371
+ type: "function",
372
+ inputs: [
373
+ { name: "initCodeHash", internalType: "bytes32", type: "bytes32" }
374
+ ],
375
+ name: "isInitCodeForbidden",
376
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
377
+ stateMutability: "view"
378
+ },
379
+ {
380
+ type: "function",
381
+ inputs: [{ name: "domain", internalType: "bytes32", type: "bytes32" }],
382
+ name: "isPublicDomain",
383
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
384
+ stateMutability: "view"
385
+ },
386
+ {
387
+ type: "function",
388
+ inputs: [{ name: "domain", internalType: "bytes32", type: "bytes32" }],
389
+ name: "isSystemDomain",
390
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
391
+ stateMutability: "view"
392
+ },
393
+ {
394
+ type: "function",
395
+ inputs: [],
396
+ name: "owner",
397
+ outputs: [{ name: "", internalType: "address", type: "address" }],
398
+ stateMutability: "view"
399
+ },
400
+ {
401
+ type: "function",
402
+ inputs: [{ name: "auditor", internalType: "address", type: "address" }],
403
+ name: "removeAuditor",
404
+ outputs: [],
405
+ stateMutability: "nonpayable"
406
+ },
407
+ {
408
+ type: "function",
409
+ inputs: [
410
+ { name: "contractType", internalType: "bytes32", type: "bytes32" }
411
+ ],
412
+ name: "removePublicContractType",
413
+ outputs: [],
414
+ stateMutability: "nonpayable"
415
+ },
416
+ {
417
+ type: "function",
418
+ inputs: [
419
+ { name: "token", internalType: "address", type: "address" },
420
+ { name: "postfix", internalType: "bytes32", type: "bytes32" }
421
+ ],
422
+ name: "setTokenSpecificPostfix",
423
+ outputs: [],
424
+ stateMutability: "nonpayable"
425
+ },
426
+ {
427
+ type: "function",
428
+ inputs: [
429
+ { name: "bytecodeHash", internalType: "bytes32", type: "bytes32" },
430
+ {
431
+ name: "auditReport",
432
+ internalType: "struct AuditReport",
433
+ type: "tuple",
434
+ components: [
435
+ { name: "auditor", internalType: "address", type: "address" },
436
+ { name: "reportUrl", internalType: "string", type: "string" },
437
+ { name: "signature", internalType: "bytes", type: "bytes" }
438
+ ]
439
+ }
440
+ ],
441
+ name: "submitAuditReport",
442
+ outputs: [],
443
+ stateMutability: "nonpayable"
444
+ },
445
+ {
446
+ type: "function",
447
+ inputs: [
448
+ {
449
+ name: "bytecode",
450
+ internalType: "struct Bytecode",
451
+ type: "tuple",
452
+ components: [
453
+ { name: "contractType", internalType: "bytes32", type: "bytes32" },
454
+ { name: "version", internalType: "uint256", type: "uint256" },
455
+ { name: "initCode", internalType: "bytes", type: "bytes" },
456
+ { name: "author", internalType: "address", type: "address" },
457
+ { name: "source", internalType: "string", type: "string" },
458
+ { name: "authorSignature", internalType: "bytes", type: "bytes" }
459
+ ]
460
+ }
461
+ ],
462
+ name: "uploadBytecode",
463
+ outputs: [],
464
+ stateMutability: "nonpayable"
465
+ },
466
+ {
467
+ type: "function",
468
+ inputs: [],
469
+ name: "version",
470
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
471
+ stateMutability: "view"
472
+ },
473
+ {
474
+ type: "event",
475
+ anonymous: false,
476
+ inputs: [
477
+ {
478
+ name: "auditor",
479
+ internalType: "address",
480
+ type: "address",
481
+ indexed: true
482
+ },
483
+ { name: "name", internalType: "string", type: "string", indexed: false }
484
+ ],
485
+ name: "AddAuditor"
486
+ },
487
+ {
488
+ type: "event",
489
+ anonymous: false,
490
+ inputs: [
491
+ {
492
+ name: "domain",
493
+ internalType: "bytes32",
494
+ type: "bytes32",
495
+ indexed: true
496
+ }
497
+ ],
498
+ name: "AddPublicDomain"
499
+ },
500
+ {
501
+ type: "event",
502
+ anonymous: false,
503
+ inputs: [
504
+ {
505
+ name: "domain",
506
+ internalType: "bytes32",
507
+ type: "bytes32",
508
+ indexed: true
509
+ }
510
+ ],
511
+ name: "AddSystemDomain"
512
+ },
513
+ {
514
+ type: "event",
515
+ anonymous: false,
516
+ inputs: [
517
+ {
518
+ name: "bytecodeHash",
519
+ internalType: "bytes32",
520
+ type: "bytes32",
521
+ indexed: true
522
+ },
523
+ {
524
+ name: "contractType",
525
+ internalType: "bytes32",
526
+ type: "bytes32",
527
+ indexed: true
528
+ },
529
+ {
530
+ name: "version",
531
+ internalType: "uint256",
532
+ type: "uint256",
533
+ indexed: true
534
+ }
535
+ ],
536
+ name: "AllowContract"
537
+ },
538
+ {
539
+ type: "event",
540
+ anonymous: false,
541
+ inputs: [
542
+ {
543
+ name: "bytecodeHash",
544
+ internalType: "bytes32",
545
+ type: "bytes32",
546
+ indexed: true
547
+ },
548
+ {
549
+ name: "auditor",
550
+ internalType: "address",
551
+ type: "address",
552
+ indexed: true
553
+ },
554
+ {
555
+ name: "reportUrl",
556
+ internalType: "string",
557
+ type: "string",
558
+ indexed: false
559
+ },
560
+ {
561
+ name: "signature",
562
+ internalType: "bytes",
563
+ type: "bytes",
564
+ indexed: false
565
+ }
566
+ ],
567
+ name: "AuditBytecode"
568
+ },
569
+ {
570
+ type: "event",
571
+ anonymous: false,
572
+ inputs: [
573
+ {
574
+ name: "bytecodeHash",
575
+ internalType: "bytes32",
576
+ type: "bytes32",
577
+ indexed: true
578
+ },
579
+ {
580
+ name: "contractType",
581
+ internalType: "bytes32",
582
+ type: "bytes32",
583
+ indexed: true
584
+ },
585
+ {
586
+ name: "version",
587
+ internalType: "uint256",
588
+ type: "uint256",
589
+ indexed: true
590
+ },
591
+ {
592
+ name: "contractAddress",
593
+ internalType: "address",
594
+ type: "address",
595
+ indexed: false
596
+ },
597
+ {
598
+ name: "constructorParams",
599
+ internalType: "bytes",
600
+ type: "bytes",
601
+ indexed: false
602
+ }
603
+ ],
604
+ name: "DeployContract"
605
+ },
606
+ {
607
+ type: "event",
608
+ anonymous: false,
609
+ inputs: [
610
+ {
611
+ name: "bytecodeHash",
612
+ internalType: "bytes32",
613
+ type: "bytes32",
614
+ indexed: true
615
+ },
616
+ {
617
+ name: "contractType",
618
+ internalType: "bytes32",
619
+ type: "bytes32",
620
+ indexed: true
621
+ },
622
+ {
623
+ name: "version",
624
+ internalType: "uint256",
625
+ type: "uint256",
626
+ indexed: true
627
+ }
628
+ ],
629
+ name: "ForbidContract"
630
+ },
631
+ {
632
+ type: "event",
633
+ anonymous: false,
634
+ inputs: [
635
+ {
636
+ name: "initCodeHash",
637
+ internalType: "bytes32",
638
+ type: "bytes32",
639
+ indexed: true
640
+ }
641
+ ],
642
+ name: "ForbidInitCode"
643
+ },
644
+ {
645
+ type: "event",
646
+ anonymous: false,
647
+ inputs: [
648
+ {
649
+ name: "auditor",
650
+ internalType: "address",
651
+ type: "address",
652
+ indexed: true
653
+ }
654
+ ],
655
+ name: "RemoveAuditor"
656
+ },
657
+ {
658
+ type: "event",
659
+ anonymous: false,
660
+ inputs: [
661
+ {
662
+ name: "contractType",
663
+ internalType: "bytes32",
664
+ type: "bytes32",
665
+ indexed: true
666
+ }
667
+ ],
668
+ name: "RemoveContractTypeOwner"
669
+ },
670
+ {
671
+ type: "event",
672
+ anonymous: false,
673
+ inputs: [
674
+ {
675
+ name: "contractType",
676
+ internalType: "bytes32",
677
+ type: "bytes32",
678
+ indexed: true
679
+ },
680
+ {
681
+ name: "owner",
682
+ internalType: "address",
683
+ type: "address",
684
+ indexed: true
685
+ }
686
+ ],
687
+ name: "SetContractTypeOwner"
688
+ },
689
+ {
690
+ type: "event",
691
+ anonymous: false,
692
+ inputs: [
693
+ {
694
+ name: "token",
695
+ internalType: "address",
696
+ type: "address",
697
+ indexed: true
698
+ },
699
+ {
700
+ name: "postfix",
701
+ internalType: "bytes32",
702
+ type: "bytes32",
703
+ indexed: true
704
+ }
705
+ ],
706
+ name: "SetTokenSpecificPostfix"
707
+ },
708
+ {
709
+ type: "event",
710
+ anonymous: false,
711
+ inputs: [
712
+ {
713
+ name: "bytecodeHash",
714
+ internalType: "bytes32",
715
+ type: "bytes32",
716
+ indexed: true
717
+ },
718
+ {
719
+ name: "contractType",
720
+ internalType: "bytes32",
721
+ type: "bytes32",
722
+ indexed: true
723
+ },
724
+ {
725
+ name: "version",
726
+ internalType: "uint256",
727
+ type: "uint256",
728
+ indexed: true
729
+ },
730
+ {
731
+ name: "author",
732
+ internalType: "address",
733
+ type: "address",
734
+ indexed: false
735
+ },
736
+ {
737
+ name: "source",
738
+ internalType: "string",
739
+ type: "string",
740
+ indexed: false
741
+ },
742
+ {
743
+ name: "signature",
744
+ internalType: "bytes",
745
+ type: "bytes",
746
+ indexed: false
747
+ }
748
+ ],
749
+ name: "UploadBytecode"
750
+ },
751
+ {
752
+ type: "error",
753
+ inputs: [{ name: "auditor", internalType: "address", type: "address" }],
754
+ name: "AuditorIsNotApprovedException"
755
+ },
756
+ {
757
+ type: "error",
758
+ inputs: [
759
+ { name: "contractType", internalType: "bytes32", type: "bytes32" },
760
+ { name: "author", internalType: "address", type: "address" }
761
+ ],
762
+ name: "AuthorIsNotContractTypeOwnerException"
763
+ },
764
+ {
765
+ type: "error",
766
+ inputs: [
767
+ { name: "contractType", internalType: "bytes32", type: "bytes32" },
768
+ { name: "version", internalType: "uint256", type: "uint256" }
769
+ ],
770
+ name: "BytecodeIsAlreadyAllowedException"
771
+ },
772
+ {
773
+ type: "error",
774
+ inputs: [
775
+ { name: "bytecodeHash", internalType: "bytes32", type: "bytes32" },
776
+ { name: "auditor", internalType: "address", type: "address" }
777
+ ],
778
+ name: "BytecodeIsAlreadySignedByAuditorException"
779
+ },
780
+ {
781
+ type: "error",
782
+ inputs: [
783
+ { name: "contractType", internalType: "bytes32", type: "bytes32" },
784
+ { name: "version", internalType: "uint256", type: "uint256" }
785
+ ],
786
+ name: "BytecodeIsNotAllowedException"
787
+ },
788
+ {
789
+ type: "error",
790
+ inputs: [
791
+ { name: "bytecodeHash", internalType: "bytes32", type: "bytes32" }
792
+ ],
793
+ name: "BytecodeIsNotAuditedException"
794
+ },
795
+ {
796
+ type: "error",
797
+ inputs: [
798
+ { name: "bytecodeHash", internalType: "bytes32", type: "bytes32" }
799
+ ],
800
+ name: "BytecodeIsNotUploadedException"
801
+ },
802
+ {
803
+ type: "error",
804
+ inputs: [{ name: "caller", internalType: "address", type: "address" }],
805
+ name: "CallerIsNotBytecodeAuthorException"
806
+ },
807
+ {
808
+ type: "error",
809
+ inputs: [{ name: "caller", internalType: "address", type: "address" }],
810
+ name: "CallerIsNotOwnerException"
811
+ },
812
+ {
813
+ type: "error",
814
+ inputs: [
815
+ { name: "deployedContract", internalType: "address", type: "address" }
816
+ ],
817
+ name: "ContractIsAlreadyDeployedException"
818
+ },
819
+ {
820
+ type: "error",
821
+ inputs: [
822
+ { name: "contractType", internalType: "bytes32", type: "bytes32" }
823
+ ],
824
+ name: "ContractTypeIsNotInPublicDomainException"
825
+ },
826
+ {
827
+ type: "error",
828
+ inputs: [{ name: "domain", internalType: "bytes32", type: "bytes32" }],
829
+ name: "DomainIsAlreadyMarkedAsPublicException"
830
+ },
831
+ {
832
+ type: "error",
833
+ inputs: [{ name: "domain", internalType: "bytes32", type: "bytes32" }],
834
+ name: "DomainIsAlreadyMarkedAsSystemException"
835
+ },
836
+ { type: "error", inputs: [], name: "InitCodeIsEmptyException" },
837
+ {
838
+ type: "error",
839
+ inputs: [
840
+ { name: "initCodeHash", internalType: "bytes32", type: "bytes32" }
841
+ ],
842
+ name: "InitCodeIsForbiddenException"
843
+ },
844
+ {
845
+ type: "error",
846
+ inputs: [{ name: "auditor", internalType: "address", type: "address" }],
847
+ name: "InvalidAuditorSignatureException"
848
+ },
849
+ {
850
+ type: "error",
851
+ inputs: [{ name: "author", internalType: "address", type: "address" }],
852
+ name: "InvalidAuthorSignatureException"
853
+ },
854
+ {
855
+ type: "error",
856
+ inputs: [
857
+ { name: "bytecodeHash", internalType: "bytes32", type: "bytes32" }
858
+ ],
859
+ name: "InvalidBytecodeException"
860
+ },
861
+ {
862
+ type: "error",
863
+ inputs: [
864
+ { name: "contractType", internalType: "bytes32", type: "bytes32" }
865
+ ],
866
+ name: "InvalidContractTypeException"
867
+ },
868
+ {
869
+ type: "error",
870
+ inputs: [{ name: "domain", internalType: "bytes32", type: "bytes32" }],
871
+ name: "InvalidDomainException"
872
+ },
873
+ {
874
+ type: "error",
875
+ inputs: [{ name: "postfix", internalType: "bytes32", type: "bytes32" }],
876
+ name: "InvalidPostfixException"
877
+ },
878
+ {
879
+ type: "error",
880
+ inputs: [
881
+ { name: "contractType", internalType: "bytes32", type: "bytes32" },
882
+ { name: "version", internalType: "uint256", type: "uint256" }
883
+ ],
884
+ name: "InvalidVersionException"
885
+ },
886
+ {
887
+ type: "error",
888
+ inputs: [
889
+ { name: "contractType", internalType: "bytes32", type: "bytes32" }
890
+ ],
891
+ name: "VersionNotFoundException"
892
+ }
893
+ ];
894
+ // Annotate the CommonJS export names for ESM import in node:
895
+ 0 && (module.exports = {
896
+ iBytecodeRepositoryAbi
897
+ });