@gearbox-protocol/sdk 9.12.14 → 9.13.1

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