@agentsgot/agent-kit 0.0.0-stage → 1.0.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 (411) hide show
  1. package/ARCHITECTURE.md +5 -0
  2. package/README.md +13 -2
  3. package/dist/a2a.d.ts +35 -0
  4. package/dist/a2a.d.ts.map +1 -0
  5. package/dist/a2a.js +109 -0
  6. package/dist/a2a.js.map +1 -0
  7. package/dist/cli/binding.d.ts +24 -0
  8. package/dist/cli/binding.d.ts.map +1 -0
  9. package/dist/cli/binding.js +52 -0
  10. package/dist/cli/binding.js.map +1 -0
  11. package/dist/cli/commands.d.ts +18 -0
  12. package/dist/cli/commands.d.ts.map +1 -0
  13. package/dist/cli/commands.js +191 -0
  14. package/dist/cli/commands.js.map +1 -0
  15. package/dist/cli/context.d.ts +61 -0
  16. package/dist/cli/context.d.ts.map +1 -0
  17. package/dist/cli/context.js +147 -0
  18. package/dist/cli/context.js.map +1 -0
  19. package/dist/cli/doctor.d.ts +34 -0
  20. package/dist/cli/doctor.d.ts.map +1 -0
  21. package/dist/cli/doctor.js +109 -0
  22. package/dist/cli/doctor.js.map +1 -0
  23. package/dist/cli/home.d.ts +37 -0
  24. package/dist/cli/home.d.ts.map +1 -0
  25. package/dist/cli/home.js +77 -0
  26. package/dist/cli/home.js.map +1 -0
  27. package/dist/cli/index.d.ts +5 -0
  28. package/dist/cli/index.d.ts.map +1 -0
  29. package/dist/cli/index.js +120 -0
  30. package/dist/cli/index.js.map +1 -0
  31. package/dist/cli/install.d.ts +19 -0
  32. package/dist/cli/install.d.ts.map +1 -0
  33. package/dist/cli/install.js +64 -0
  34. package/dist/cli/install.js.map +1 -0
  35. package/dist/cli/keystore.d.ts +25 -0
  36. package/dist/cli/keystore.d.ts.map +1 -0
  37. package/dist/cli/keystore.js +57 -0
  38. package/dist/cli/keystore.js.map +1 -0
  39. package/dist/cli/mcp.d.ts +7 -0
  40. package/dist/cli/mcp.d.ts.map +1 -0
  41. package/dist/cli/mcp.js +28 -0
  42. package/dist/cli/mcp.js.map +1 -0
  43. package/dist/cli/prompt.d.ts +10 -0
  44. package/dist/cli/prompt.d.ts.map +1 -0
  45. package/dist/cli/prompt.js +71 -0
  46. package/dist/cli/prompt.js.map +1 -0
  47. package/dist/cli/reports.d.ts +42 -0
  48. package/dist/cli/reports.d.ts.map +1 -0
  49. package/dist/cli/reports.js +121 -0
  50. package/dist/cli/reports.js.map +1 -0
  51. package/dist/cli/run.d.ts +21 -0
  52. package/dist/cli/run.d.ts.map +1 -0
  53. package/dist/cli/run.js +125 -0
  54. package/dist/cli/run.js.map +1 -0
  55. package/dist/cli/wallet.d.ts +19 -0
  56. package/dist/cli/wallet.d.ts.map +1 -0
  57. package/dist/cli/wallet.js +58 -0
  58. package/dist/cli/wallet.js.map +1 -0
  59. package/dist/guides.d.ts +7 -0
  60. package/dist/guides.d.ts.map +1 -0
  61. package/dist/guides.js +94 -0
  62. package/dist/guides.js.map +1 -0
  63. package/dist/index.d.ts +20 -0
  64. package/dist/index.d.ts.map +1 -0
  65. package/dist/index.js +23 -0
  66. package/dist/index.js.map +1 -0
  67. package/dist/llm.d.ts +16 -0
  68. package/dist/llm.d.ts.map +1 -0
  69. package/dist/llm.js +30 -0
  70. package/dist/llm.js.map +1 -0
  71. package/dist/mcp/cli.d.ts +3 -0
  72. package/dist/mcp/cli.d.ts.map +1 -0
  73. package/dist/mcp/cli.js +6 -0
  74. package/dist/mcp/cli.js.map +1 -0
  75. package/dist/mcp/server.d.ts +38 -0
  76. package/dist/mcp/server.d.ts.map +1 -0
  77. package/dist/mcp/server.js +693 -0
  78. package/dist/mcp/server.js.map +1 -0
  79. package/dist/ports.d.ts +123 -0
  80. package/dist/ports.d.ts.map +1 -0
  81. package/dist/ports.js +134 -0
  82. package/dist/ports.js.map +1 -0
  83. package/dist/roles.d.ts +16 -0
  84. package/dist/roles.d.ts.map +1 -0
  85. package/dist/roles.js +49 -0
  86. package/dist/roles.js.map +1 -0
  87. package/dist/runner.d.ts +126 -0
  88. package/dist/runner.d.ts.map +1 -0
  89. package/dist/runner.js +292 -0
  90. package/dist/runner.js.map +1 -0
  91. package/dist/schedules.d.ts +34 -0
  92. package/dist/schedules.d.ts.map +1 -0
  93. package/dist/schedules.js +116 -0
  94. package/dist/schedules.js.map +1 -0
  95. package/dist/sdk/base64.d.ts +4 -0
  96. package/dist/sdk/base64.d.ts.map +1 -0
  97. package/dist/sdk/base64.js +15 -0
  98. package/dist/sdk/base64.js.map +1 -0
  99. package/dist/sdk/client.d.ts +198 -0
  100. package/dist/sdk/client.d.ts.map +1 -0
  101. package/dist/sdk/client.js +413 -0
  102. package/dist/sdk/client.js.map +1 -0
  103. package/dist/security.d.ts +10 -0
  104. package/dist/security.d.ts.map +1 -0
  105. package/dist/security.js +24 -0
  106. package/dist/security.js.map +1 -0
  107. package/dist/skills.d.ts +21 -0
  108. package/dist/skills.d.ts.map +1 -0
  109. package/dist/skills.js +93 -0
  110. package/dist/skills.js.map +1 -0
  111. package/dist/workers.d.ts +64 -0
  112. package/dist/workers.d.ts.map +1 -0
  113. package/dist/workers.js +127 -0
  114. package/dist/workers.js.map +1 -0
  115. package/dist/zip.d.ts +8 -0
  116. package/dist/zip.d.ts.map +1 -0
  117. package/dist/zip.js +80 -0
  118. package/dist/zip.js.map +1 -0
  119. package/docs/README.md +25 -0
  120. package/docs/architecture.md +18 -0
  121. package/docs/deployment.md +26 -0
  122. package/docs/reference/01-RULES.md +822 -0
  123. package/docs/reference/02-INTERFACES.md +487 -0
  124. package/docs/reference/03-STAKING-PENALTY-SPEC.md +739 -0
  125. package/docs/updates.md +61 -0
  126. package/docs/verification.md +72 -0
  127. package/package.json +87 -4
  128. package/skills/dist/agent-skills.json +68 -0
  129. package/skills/dist/arbitrator/SKILL.md +186 -0
  130. package/skills/dist/executor/SKILL.md +219 -0
  131. package/skills/dist/publisher/SKILL.md +172 -0
  132. package/skills/dist/tester/SKILL.md +198 -0
  133. package/vendor/shared/ARCHITECTURE.md +97 -0
  134. package/vendor/shared/README.md +5 -0
  135. package/vendor/shared/abi/index.js +2 -0
  136. package/vendor/shared/abi/index.ts +2 -0
  137. package/vendor/shared/abi/protocol/AgentRegistry.js +1623 -0
  138. package/vendor/shared/abi/protocol/AgentRegistry.json +1623 -0
  139. package/vendor/shared/abi/protocol/AgentRegistry.ts +1623 -0
  140. package/vendor/shared/abi/protocol/ArbitrationCaseProofVerifier.js +154 -0
  141. package/vendor/shared/abi/protocol/ArbitrationCaseProofVerifier.json +154 -0
  142. package/vendor/shared/abi/protocol/ArbitrationCaseProofVerifier.ts +154 -0
  143. package/vendor/shared/abi/protocol/ArbitrationCourt.js +1550 -0
  144. package/vendor/shared/abi/protocol/ArbitrationCourt.json +1550 -0
  145. package/vendor/shared/abi/protocol/ArbitrationCourt.ts +1550 -0
  146. package/vendor/shared/abi/protocol/ArbitrationPool.js +509 -0
  147. package/vendor/shared/abi/protocol/ArbitrationPool.json +509 -0
  148. package/vendor/shared/abi/protocol/ArbitrationPool.ts +509 -0
  149. package/vendor/shared/abi/protocol/ArbitrationProgressor.js +44 -0
  150. package/vendor/shared/abi/protocol/ArbitrationProgressor.json +44 -0
  151. package/vendor/shared/abi/protocol/ArbitrationProgressor.ts +44 -0
  152. package/vendor/shared/abi/protocol/ArbitrationSelection.js +1153 -0
  153. package/vendor/shared/abi/protocol/ArbitrationSelection.json +1153 -0
  154. package/vendor/shared/abi/protocol/ArbitrationSelection.ts +1153 -0
  155. package/vendor/shared/abi/protocol/ArbitrationSettlement.js +956 -0
  156. package/vendor/shared/abi/protocol/ArbitrationSettlement.json +956 -0
  157. package/vendor/shared/abi/protocol/ArbitrationSettlement.ts +956 -0
  158. package/vendor/shared/abi/protocol/ArbitrationStream.js +964 -0
  159. package/vendor/shared/abi/protocol/ArbitrationStream.json +964 -0
  160. package/vendor/shared/abi/protocol/ArbitrationStream.ts +964 -0
  161. package/vendor/shared/abi/protocol/EmissionController.js +1436 -0
  162. package/vendor/shared/abi/protocol/EmissionController.json +1436 -0
  163. package/vendor/shared/abi/protocol/EmissionController.ts +1436 -0
  164. package/vendor/shared/abi/protocol/HourlyAnchor.js +611 -0
  165. package/vendor/shared/abi/protocol/HourlyAnchor.json +611 -0
  166. package/vendor/shared/abi/protocol/HourlyAnchor.ts +611 -0
  167. package/vendor/shared/abi/protocol/IncentiveVault.js +480 -0
  168. package/vendor/shared/abi/protocol/IncentiveVault.json +480 -0
  169. package/vendor/shared/abi/protocol/IncentiveVault.ts +480 -0
  170. package/vendor/shared/abi/protocol/ParamRegistry.js +814 -0
  171. package/vendor/shared/abi/protocol/ParamRegistry.json +814 -0
  172. package/vendor/shared/abi/protocol/ParamRegistry.ts +814 -0
  173. package/vendor/shared/abi/protocol/PlatformTreasury.js +553 -0
  174. package/vendor/shared/abi/protocol/PlatformTreasury.json +553 -0
  175. package/vendor/shared/abi/protocol/PlatformTreasury.ts +553 -0
  176. package/vendor/shared/abi/protocol/ProtocolProof.js +1171 -0
  177. package/vendor/shared/abi/protocol/ProtocolProof.json +1171 -0
  178. package/vendor/shared/abi/protocol/ProtocolProof.ts +1171 -0
  179. package/vendor/shared/abi/protocol/PublisherStaking.js +1227 -0
  180. package/vendor/shared/abi/protocol/PublisherStaking.json +1227 -0
  181. package/vendor/shared/abi/protocol/PublisherStaking.ts +1227 -0
  182. package/vendor/shared/abi/protocol/RewardVesting.js +1027 -0
  183. package/vendor/shared/abi/protocol/RewardVesting.json +1027 -0
  184. package/vendor/shared/abi/protocol/RewardVesting.ts +1027 -0
  185. package/vendor/shared/abi/protocol/TaskEscrow.js +2219 -0
  186. package/vendor/shared/abi/protocol/TaskEscrow.json +2219 -0
  187. package/vendor/shared/abi/protocol/TaskEscrow.ts +2219 -0
  188. package/vendor/shared/abi/protocol/TesterAssignment.js +1375 -0
  189. package/vendor/shared/abi/protocol/TesterAssignment.json +1375 -0
  190. package/vendor/shared/abi/protocol/TesterAssignment.ts +1375 -0
  191. package/vendor/shared/abi/protocol/ValidatorStaking.js +1614 -0
  192. package/vendor/shared/abi/protocol/ValidatorStaking.json +1614 -0
  193. package/vendor/shared/abi/protocol/ValidatorStaking.ts +1614 -0
  194. package/vendor/shared/abi/protocol/index.js +19 -0
  195. package/vendor/shared/abi/protocol/index.ts +19 -0
  196. package/vendor/shared/abi/token/AGTToken.js +1018 -0
  197. package/vendor/shared/abi/token/AGTToken.json +1018 -0
  198. package/vendor/shared/abi/token/AGTToken.ts +1018 -0
  199. package/vendor/shared/abi/token/GenesisDistributor.js +242 -0
  200. package/vendor/shared/abi/token/GenesisDistributor.json +242 -0
  201. package/vendor/shared/abi/token/GenesisDistributor.ts +242 -0
  202. package/vendor/shared/abi/token/LPLocker.js +21 -0
  203. package/vendor/shared/abi/token/LPLocker.json +21 -0
  204. package/vendor/shared/abi/token/LPLocker.ts +21 -0
  205. package/vendor/shared/abi/token/LaunchLiquidity.js +335 -0
  206. package/vendor/shared/abi/token/LaunchLiquidity.json +335 -0
  207. package/vendor/shared/abi/token/LaunchLiquidity.ts +335 -0
  208. package/vendor/shared/abi/token/LiquidityAdder.js +228 -0
  209. package/vendor/shared/abi/token/LiquidityAdder.json +228 -0
  210. package/vendor/shared/abi/token/LiquidityAdder.ts +228 -0
  211. package/vendor/shared/abi/token/TaxDistributor.js +235 -0
  212. package/vendor/shared/abi/token/TaxDistributor.json +235 -0
  213. package/vendor/shared/abi/token/TaxDistributor.ts +235 -0
  214. package/vendor/shared/abi/token/TestFaucet.js +214 -0
  215. package/vendor/shared/abi/token/TestFaucet.json +214 -0
  216. package/vendor/shared/abi/token/TestFaucet.ts +214 -0
  217. package/vendor/shared/abi/token/index.js +7 -0
  218. package/vendor/shared/abi/token/index.ts +7 -0
  219. package/vendor/shared/dist/abi/index.d.ts +3 -0
  220. package/vendor/shared/dist/abi/index.d.ts.map +1 -0
  221. package/vendor/shared/dist/abi/index.js +3 -0
  222. package/vendor/shared/dist/abi/index.js.map +1 -0
  223. package/vendor/shared/dist/abi/protocol/AgentRegistry.d.ts +1249 -0
  224. package/vendor/shared/dist/abi/protocol/AgentRegistry.d.ts.map +1 -0
  225. package/vendor/shared/dist/abi/protocol/AgentRegistry.js +1624 -0
  226. package/vendor/shared/dist/abi/protocol/AgentRegistry.js.map +1 -0
  227. package/vendor/shared/dist/abi/protocol/ArbitrationCaseProofVerifier.d.ts +119 -0
  228. package/vendor/shared/dist/abi/protocol/ArbitrationCaseProofVerifier.d.ts.map +1 -0
  229. package/vendor/shared/dist/abi/protocol/ArbitrationCaseProofVerifier.js +155 -0
  230. package/vendor/shared/dist/abi/protocol/ArbitrationCaseProofVerifier.js.map +1 -0
  231. package/vendor/shared/dist/abi/protocol/ArbitrationCourt.d.ts +1205 -0
  232. package/vendor/shared/dist/abi/protocol/ArbitrationCourt.d.ts.map +1 -0
  233. package/vendor/shared/dist/abi/protocol/ArbitrationCourt.js +1551 -0
  234. package/vendor/shared/dist/abi/protocol/ArbitrationCourt.js.map +1 -0
  235. package/vendor/shared/dist/abi/protocol/ArbitrationPool.d.ts +391 -0
  236. package/vendor/shared/dist/abi/protocol/ArbitrationPool.d.ts.map +1 -0
  237. package/vendor/shared/dist/abi/protocol/ArbitrationPool.js +510 -0
  238. package/vendor/shared/dist/abi/protocol/ArbitrationPool.js.map +1 -0
  239. package/vendor/shared/dist/abi/protocol/ArbitrationProgressor.d.ts +34 -0
  240. package/vendor/shared/dist/abi/protocol/ArbitrationProgressor.d.ts.map +1 -0
  241. package/vendor/shared/dist/abi/protocol/ArbitrationProgressor.js +45 -0
  242. package/vendor/shared/dist/abi/protocol/ArbitrationProgressor.js.map +1 -0
  243. package/vendor/shared/dist/abi/protocol/ArbitrationSelection.d.ts +885 -0
  244. package/vendor/shared/dist/abi/protocol/ArbitrationSelection.d.ts.map +1 -0
  245. package/vendor/shared/dist/abi/protocol/ArbitrationSelection.js +1154 -0
  246. package/vendor/shared/dist/abi/protocol/ArbitrationSelection.js.map +1 -0
  247. package/vendor/shared/dist/abi/protocol/ArbitrationSettlement.d.ts +742 -0
  248. package/vendor/shared/dist/abi/protocol/ArbitrationSettlement.d.ts.map +1 -0
  249. package/vendor/shared/dist/abi/protocol/ArbitrationSettlement.js +957 -0
  250. package/vendor/shared/dist/abi/protocol/ArbitrationSettlement.js.map +1 -0
  251. package/vendor/shared/dist/abi/protocol/ArbitrationStream.d.ts +741 -0
  252. package/vendor/shared/dist/abi/protocol/ArbitrationStream.d.ts.map +1 -0
  253. package/vendor/shared/dist/abi/protocol/ArbitrationStream.js +965 -0
  254. package/vendor/shared/dist/abi/protocol/ArbitrationStream.js.map +1 -0
  255. package/vendor/shared/dist/abi/protocol/EmissionController.d.ts +1110 -0
  256. package/vendor/shared/dist/abi/protocol/EmissionController.d.ts.map +1 -0
  257. package/vendor/shared/dist/abi/protocol/EmissionController.js +1437 -0
  258. package/vendor/shared/dist/abi/protocol/EmissionController.js.map +1 -0
  259. package/vendor/shared/dist/abi/protocol/HourlyAnchor.d.ts +467 -0
  260. package/vendor/shared/dist/abi/protocol/HourlyAnchor.d.ts.map +1 -0
  261. package/vendor/shared/dist/abi/protocol/HourlyAnchor.js +612 -0
  262. package/vendor/shared/dist/abi/protocol/HourlyAnchor.js.map +1 -0
  263. package/vendor/shared/dist/abi/protocol/IncentiveVault.d.ts +369 -0
  264. package/vendor/shared/dist/abi/protocol/IncentiveVault.d.ts.map +1 -0
  265. package/vendor/shared/dist/abi/protocol/IncentiveVault.js +481 -0
  266. package/vendor/shared/dist/abi/protocol/IncentiveVault.js.map +1 -0
  267. package/vendor/shared/dist/abi/protocol/ParamRegistry.d.ts +628 -0
  268. package/vendor/shared/dist/abi/protocol/ParamRegistry.d.ts.map +1 -0
  269. package/vendor/shared/dist/abi/protocol/ParamRegistry.js +815 -0
  270. package/vendor/shared/dist/abi/protocol/ParamRegistry.js.map +1 -0
  271. package/vendor/shared/dist/abi/protocol/PlatformTreasury.d.ts +426 -0
  272. package/vendor/shared/dist/abi/protocol/PlatformTreasury.d.ts.map +1 -0
  273. package/vendor/shared/dist/abi/protocol/PlatformTreasury.js +554 -0
  274. package/vendor/shared/dist/abi/protocol/PlatformTreasury.js.map +1 -0
  275. package/vendor/shared/dist/abi/protocol/ProtocolProof.d.ts +903 -0
  276. package/vendor/shared/dist/abi/protocol/ProtocolProof.d.ts.map +1 -0
  277. package/vendor/shared/dist/abi/protocol/ProtocolProof.js +1172 -0
  278. package/vendor/shared/dist/abi/protocol/ProtocolProof.js.map +1 -0
  279. package/vendor/shared/dist/abi/protocol/PublisherStaking.d.ts +947 -0
  280. package/vendor/shared/dist/abi/protocol/PublisherStaking.d.ts.map +1 -0
  281. package/vendor/shared/dist/abi/protocol/PublisherStaking.js +1228 -0
  282. package/vendor/shared/dist/abi/protocol/PublisherStaking.js.map +1 -0
  283. package/vendor/shared/dist/abi/protocol/RewardVesting.d.ts +793 -0
  284. package/vendor/shared/dist/abi/protocol/RewardVesting.d.ts.map +1 -0
  285. package/vendor/shared/dist/abi/protocol/RewardVesting.js +1028 -0
  286. package/vendor/shared/dist/abi/protocol/RewardVesting.js.map +1 -0
  287. package/vendor/shared/dist/abi/protocol/TaskEscrow.d.ts +1725 -0
  288. package/vendor/shared/dist/abi/protocol/TaskEscrow.d.ts.map +1 -0
  289. package/vendor/shared/dist/abi/protocol/TaskEscrow.js +2220 -0
  290. package/vendor/shared/dist/abi/protocol/TaskEscrow.js.map +1 -0
  291. package/vendor/shared/dist/abi/protocol/TesterAssignment.d.ts +1058 -0
  292. package/vendor/shared/dist/abi/protocol/TesterAssignment.d.ts.map +1 -0
  293. package/vendor/shared/dist/abi/protocol/TesterAssignment.js +1376 -0
  294. package/vendor/shared/dist/abi/protocol/TesterAssignment.js.map +1 -0
  295. package/vendor/shared/dist/abi/protocol/ValidatorStaking.d.ts +1236 -0
  296. package/vendor/shared/dist/abi/protocol/ValidatorStaking.d.ts.map +1 -0
  297. package/vendor/shared/dist/abi/protocol/ValidatorStaking.js +1615 -0
  298. package/vendor/shared/dist/abi/protocol/ValidatorStaking.js.map +1 -0
  299. package/vendor/shared/dist/abi/protocol/index.d.ts +20 -0
  300. package/vendor/shared/dist/abi/protocol/index.d.ts.map +1 -0
  301. package/vendor/shared/dist/abi/protocol/index.js +20 -0
  302. package/vendor/shared/dist/abi/protocol/index.js.map +1 -0
  303. package/vendor/shared/dist/abi/token/AGTToken.d.ts +786 -0
  304. package/vendor/shared/dist/abi/token/AGTToken.d.ts.map +1 -0
  305. package/vendor/shared/dist/abi/token/AGTToken.js +1019 -0
  306. package/vendor/shared/dist/abi/token/AGTToken.js.map +1 -0
  307. package/vendor/shared/dist/abi/token/GenesisDistributor.d.ts +187 -0
  308. package/vendor/shared/dist/abi/token/GenesisDistributor.d.ts.map +1 -0
  309. package/vendor/shared/dist/abi/token/GenesisDistributor.js +243 -0
  310. package/vendor/shared/dist/abi/token/GenesisDistributor.js.map +1 -0
  311. package/vendor/shared/dist/abi/token/LPLocker.d.ts +16 -0
  312. package/vendor/shared/dist/abi/token/LPLocker.d.ts.map +1 -0
  313. package/vendor/shared/dist/abi/token/LPLocker.js +22 -0
  314. package/vendor/shared/dist/abi/token/LPLocker.js.map +1 -0
  315. package/vendor/shared/dist/abi/token/LaunchLiquidity.d.ts +260 -0
  316. package/vendor/shared/dist/abi/token/LaunchLiquidity.d.ts.map +1 -0
  317. package/vendor/shared/dist/abi/token/LaunchLiquidity.js +336 -0
  318. package/vendor/shared/dist/abi/token/LaunchLiquidity.js.map +1 -0
  319. package/vendor/shared/dist/abi/token/LiquidityAdder.d.ts +176 -0
  320. package/vendor/shared/dist/abi/token/LiquidityAdder.d.ts.map +1 -0
  321. package/vendor/shared/dist/abi/token/LiquidityAdder.js +229 -0
  322. package/vendor/shared/dist/abi/token/LiquidityAdder.js.map +1 -0
  323. package/vendor/shared/dist/abi/token/TaxDistributor.d.ts +182 -0
  324. package/vendor/shared/dist/abi/token/TaxDistributor.d.ts.map +1 -0
  325. package/vendor/shared/dist/abi/token/TaxDistributor.js +236 -0
  326. package/vendor/shared/dist/abi/token/TaxDistributor.js.map +1 -0
  327. package/vendor/shared/dist/abi/token/TestFaucet.d.ts +164 -0
  328. package/vendor/shared/dist/abi/token/TestFaucet.d.ts.map +1 -0
  329. package/vendor/shared/dist/abi/token/TestFaucet.js +215 -0
  330. package/vendor/shared/dist/abi/token/TestFaucet.js.map +1 -0
  331. package/vendor/shared/dist/abi/token/index.d.ts +8 -0
  332. package/vendor/shared/dist/abi/token/index.d.ts.map +1 -0
  333. package/vendor/shared/dist/abi/token/index.js +8 -0
  334. package/vendor/shared/dist/abi/token/index.js.map +1 -0
  335. package/vendor/shared/dist/emission-schedule.d.ts +51 -0
  336. package/vendor/shared/dist/emission-schedule.d.ts.map +1 -0
  337. package/vendor/shared/dist/emission-schedule.js +116 -0
  338. package/vendor/shared/dist/emission-schedule.js.map +1 -0
  339. package/vendor/shared/dist/index.d.ts +7 -0
  340. package/vendor/shared/dist/index.d.ts.map +1 -0
  341. package/vendor/shared/dist/index.js +7 -0
  342. package/vendor/shared/dist/index.js.map +1 -0
  343. package/vendor/shared/dist/params/index.d.ts +6 -0
  344. package/vendor/shared/dist/params/index.d.ts.map +1 -0
  345. package/vendor/shared/dist/params/index.js +84 -0
  346. package/vendor/shared/dist/params/index.js.map +1 -0
  347. package/vendor/shared/dist/protocol-proofs.d.ts +267 -0
  348. package/vendor/shared/dist/protocol-proofs.d.ts.map +1 -0
  349. package/vendor/shared/dist/protocol-proofs.js +205 -0
  350. package/vendor/shared/dist/protocol-proofs.js.map +1 -0
  351. package/vendor/shared/dist/rules/index.d.ts +204 -0
  352. package/vendor/shared/dist/rules/index.d.ts.map +1 -0
  353. package/vendor/shared/dist/rules/index.js +802 -0
  354. package/vendor/shared/dist/rules/index.js.map +1 -0
  355. package/vendor/shared/dist/rules/spec-content.d.ts +21 -0
  356. package/vendor/shared/dist/rules/spec-content.d.ts.map +1 -0
  357. package/vendor/shared/dist/rules/spec-content.js +90 -0
  358. package/vendor/shared/dist/rules/spec-content.js.map +1 -0
  359. package/vendor/shared/dist/rules/task-risk.d.ts +35 -0
  360. package/vendor/shared/dist/rules/task-risk.d.ts.map +1 -0
  361. package/vendor/shared/dist/rules/task-risk.js +438 -0
  362. package/vendor/shared/dist/rules/task-risk.js.map +1 -0
  363. package/vendor/shared/dist/schemas/domain.d.ts +195 -0
  364. package/vendor/shared/dist/schemas/domain.d.ts.map +1 -0
  365. package/vendor/shared/dist/schemas/domain.js +158 -0
  366. package/vendor/shared/dist/schemas/domain.js.map +1 -0
  367. package/vendor/shared/dist/schemas/draft.d.ts +730 -0
  368. package/vendor/shared/dist/schemas/draft.d.ts.map +1 -0
  369. package/vendor/shared/dist/schemas/draft.js +110 -0
  370. package/vendor/shared/dist/schemas/draft.js.map +1 -0
  371. package/vendor/shared/dist/schemas/enums.d.ts +130 -0
  372. package/vendor/shared/dist/schemas/enums.d.ts.map +1 -0
  373. package/vendor/shared/dist/schemas/enums.js +63 -0
  374. package/vendor/shared/dist/schemas/enums.js.map +1 -0
  375. package/vendor/shared/dist/schemas/index.d.ts +4 -0
  376. package/vendor/shared/dist/schemas/index.d.ts.map +1 -0
  377. package/vendor/shared/dist/schemas/index.js +4 -0
  378. package/vendor/shared/dist/schemas/index.js.map +1 -0
  379. package/vendor/shared/dist/units.d.ts +10 -0
  380. package/vendor/shared/dist/units.d.ts.map +1 -0
  381. package/vendor/shared/dist/units.js +44 -0
  382. package/vendor/shared/dist/units.js.map +1 -0
  383. package/vendor/shared/openapi.json +78754 -0
  384. package/vendor/shared/package.json +43 -0
  385. package/vendor/shared/params/params.json +152 -0
  386. package/vendor/shared/params/ranges.json +574 -0
  387. package/vendor/shared/src/emission-schedule.ts +151 -0
  388. package/vendor/shared/src/index.ts +6 -0
  389. package/vendor/shared/src/params/index.ts +139 -0
  390. package/vendor/shared/src/protocol-proofs.ts +235 -0
  391. package/vendor/shared/src/rules/index.ts +1081 -0
  392. package/vendor/shared/src/rules/spec-content.ts +120 -0
  393. package/vendor/shared/src/rules/task-risk.ts +550 -0
  394. package/vendor/shared/src/schemas/domain.ts +187 -0
  395. package/vendor/shared/src/schemas/draft.ts +141 -0
  396. package/vendor/shared/src/schemas/enums.ts +73 -0
  397. package/vendor/shared/src/schemas/index.ts +3 -0
  398. package/vendor/shared/src/units.ts +43 -0
  399. package/vendor/shared/test/emission-schedule.test.ts +115 -0
  400. package/vendor/shared/test/fixtures/emission-vectors.json +1055 -0
  401. package/vendor/shared/test/fixtures.ts +65 -0
  402. package/vendor/shared/test/params.test.ts +48 -0
  403. package/vendor/shared/test/properties.test.ts +136 -0
  404. package/vendor/shared/test/protocol-proofs.test.ts +88 -0
  405. package/vendor/shared/test/rules.test.ts +474 -0
  406. package/vendor/shared/test/schemas.test.ts +130 -0
  407. package/vendor/shared/test/task-risk.test.ts +489 -0
  408. package/vendor/shared/tsconfig.abi.json +11 -0
  409. package/vendor/shared/tsconfig.json +23 -0
  410. package/vendor/shared/types/api/index.d.ts +303 -0
  411. package/vendor/shared/vitest.config.ts +8 -0
@@ -0,0 +1,1614 @@
1
+ export const validatorStakingAbi = [
2
+ {
3
+ "type": "constructor",
4
+ "inputs": [
5
+ {
6
+ "name": "token_",
7
+ "type": "address",
8
+ "internalType": "contract IERC20"
9
+ },
10
+ {
11
+ "name": "params_",
12
+ "type": "address",
13
+ "internalType": "contract IParamRegistry"
14
+ },
15
+ {
16
+ "name": "protocolProof_",
17
+ "type": "address",
18
+ "internalType": "contract IProtocolProof"
19
+ },
20
+ {
21
+ "name": "arbitrationStream_",
22
+ "type": "address",
23
+ "internalType": "contract IArbitrationStream"
24
+ }
25
+ ],
26
+ "stateMutability": "nonpayable"
27
+ },
28
+ {
29
+ "type": "function",
30
+ "name": "COURT_ROLE",
31
+ "inputs": [],
32
+ "outputs": [
33
+ {
34
+ "name": "",
35
+ "type": "bytes32",
36
+ "internalType": "bytes32"
37
+ }
38
+ ],
39
+ "stateMutability": "view"
40
+ },
41
+ {
42
+ "type": "function",
43
+ "name": "DEFAULT_ADMIN_ROLE",
44
+ "inputs": [],
45
+ "outputs": [
46
+ {
47
+ "name": "",
48
+ "type": "bytes32",
49
+ "internalType": "bytes32"
50
+ }
51
+ ],
52
+ "stateMutability": "view"
53
+ },
54
+ {
55
+ "type": "function",
56
+ "name": "GOVERNANCE_ROLE",
57
+ "inputs": [],
58
+ "outputs": [
59
+ {
60
+ "name": "",
61
+ "type": "bytes32",
62
+ "internalType": "bytes32"
63
+ }
64
+ ],
65
+ "stateMutability": "view"
66
+ },
67
+ {
68
+ "type": "function",
69
+ "name": "TESTER_ROLE",
70
+ "inputs": [],
71
+ "outputs": [
72
+ {
73
+ "name": "",
74
+ "type": "bytes32",
75
+ "internalType": "bytes32"
76
+ }
77
+ ],
78
+ "stateMutability": "view"
79
+ },
80
+ {
81
+ "type": "function",
82
+ "name": "UPGRADER_ROLE",
83
+ "inputs": [],
84
+ "outputs": [
85
+ {
86
+ "name": "",
87
+ "type": "bytes32",
88
+ "internalType": "bytes32"
89
+ }
90
+ ],
91
+ "stateMutability": "view"
92
+ },
93
+ {
94
+ "type": "function",
95
+ "name": "UPGRADE_INTERFACE_VERSION",
96
+ "inputs": [],
97
+ "outputs": [
98
+ {
99
+ "name": "",
100
+ "type": "string",
101
+ "internalType": "string"
102
+ }
103
+ ],
104
+ "stateMutability": "view"
105
+ },
106
+ {
107
+ "type": "function",
108
+ "name": "activeCases",
109
+ "inputs": [
110
+ {
111
+ "name": "validator",
112
+ "type": "address",
113
+ "internalType": "address"
114
+ }
115
+ ],
116
+ "outputs": [
117
+ {
118
+ "name": "",
119
+ "type": "uint256",
120
+ "internalType": "uint256"
121
+ }
122
+ ],
123
+ "stateMutability": "view"
124
+ },
125
+ {
126
+ "type": "function",
127
+ "name": "arbitrationStream",
128
+ "inputs": [],
129
+ "outputs": [
130
+ {
131
+ "name": "",
132
+ "type": "address",
133
+ "internalType": "contract IArbitrationStream"
134
+ }
135
+ ],
136
+ "stateMutability": "view"
137
+ },
138
+ {
139
+ "type": "function",
140
+ "name": "banned",
141
+ "inputs": [
142
+ {
143
+ "name": "",
144
+ "type": "address",
145
+ "internalType": "address"
146
+ }
147
+ ],
148
+ "outputs": [
149
+ {
150
+ "name": "",
151
+ "type": "bool",
152
+ "internalType": "bool"
153
+ }
154
+ ],
155
+ "stateMutability": "view"
156
+ },
157
+ {
158
+ "type": "function",
159
+ "name": "caseActive",
160
+ "inputs": [
161
+ {
162
+ "name": "",
163
+ "type": "address",
164
+ "internalType": "address"
165
+ },
166
+ {
167
+ "name": "",
168
+ "type": "bytes32",
169
+ "internalType": "bytes32"
170
+ }
171
+ ],
172
+ "outputs": [
173
+ {
174
+ "name": "",
175
+ "type": "bool",
176
+ "internalType": "bool"
177
+ }
178
+ ],
179
+ "stateMutability": "view"
180
+ },
181
+ {
182
+ "type": "function",
183
+ "name": "caseLockOf",
184
+ "inputs": [
185
+ {
186
+ "name": "validator",
187
+ "type": "address",
188
+ "internalType": "address"
189
+ },
190
+ {
191
+ "name": "caseId",
192
+ "type": "bytes32",
193
+ "internalType": "bytes32"
194
+ }
195
+ ],
196
+ "outputs": [
197
+ {
198
+ "name": "",
199
+ "type": "uint256",
200
+ "internalType": "uint256"
201
+ }
202
+ ],
203
+ "stateMutability": "view"
204
+ },
205
+ {
206
+ "type": "function",
207
+ "name": "caseLocks",
208
+ "inputs": [
209
+ {
210
+ "name": "",
211
+ "type": "address",
212
+ "internalType": "address"
213
+ },
214
+ {
215
+ "name": "",
216
+ "type": "bytes32",
217
+ "internalType": "bytes32"
218
+ }
219
+ ],
220
+ "outputs": [
221
+ {
222
+ "name": "",
223
+ "type": "uint256",
224
+ "internalType": "uint256"
225
+ }
226
+ ],
227
+ "stateMutability": "view"
228
+ },
229
+ {
230
+ "type": "function",
231
+ "name": "deposit",
232
+ "inputs": [
233
+ {
234
+ "name": "amount",
235
+ "type": "uint256",
236
+ "internalType": "uint256"
237
+ }
238
+ ],
239
+ "outputs": [],
240
+ "stateMutability": "nonpayable"
241
+ },
242
+ {
243
+ "type": "function",
244
+ "name": "finalizeExit",
245
+ "inputs": [],
246
+ "outputs": [
247
+ {
248
+ "name": "amount",
249
+ "type": "uint256",
250
+ "internalType": "uint256"
251
+ }
252
+ ],
253
+ "stateMutability": "nonpayable"
254
+ },
255
+ {
256
+ "type": "function",
257
+ "name": "getRoleAdmin",
258
+ "inputs": [
259
+ {
260
+ "name": "role",
261
+ "type": "bytes32",
262
+ "internalType": "bytes32"
263
+ }
264
+ ],
265
+ "outputs": [
266
+ {
267
+ "name": "",
268
+ "type": "bytes32",
269
+ "internalType": "bytes32"
270
+ }
271
+ ],
272
+ "stateMutability": "view"
273
+ },
274
+ {
275
+ "type": "function",
276
+ "name": "grantRole",
277
+ "inputs": [
278
+ {
279
+ "name": "role",
280
+ "type": "bytes32",
281
+ "internalType": "bytes32"
282
+ },
283
+ {
284
+ "name": "account",
285
+ "type": "address",
286
+ "internalType": "address"
287
+ }
288
+ ],
289
+ "outputs": [],
290
+ "stateMutability": "nonpayable"
291
+ },
292
+ {
293
+ "type": "function",
294
+ "name": "hasRole",
295
+ "inputs": [
296
+ {
297
+ "name": "role",
298
+ "type": "bytes32",
299
+ "internalType": "bytes32"
300
+ },
301
+ {
302
+ "name": "account",
303
+ "type": "address",
304
+ "internalType": "address"
305
+ }
306
+ ],
307
+ "outputs": [
308
+ {
309
+ "name": "",
310
+ "type": "bool",
311
+ "internalType": "bool"
312
+ }
313
+ ],
314
+ "stateMutability": "view"
315
+ },
316
+ {
317
+ "type": "function",
318
+ "name": "initialize",
319
+ "inputs": [
320
+ {
321
+ "name": "governance",
322
+ "type": "address",
323
+ "internalType": "address"
324
+ },
325
+ {
326
+ "name": "court",
327
+ "type": "address",
328
+ "internalType": "address"
329
+ }
330
+ ],
331
+ "outputs": [],
332
+ "stateMutability": "nonpayable"
333
+ },
334
+ {
335
+ "type": "function",
336
+ "name": "isBanned",
337
+ "inputs": [
338
+ {
339
+ "name": "validator",
340
+ "type": "address",
341
+ "internalType": "address"
342
+ }
343
+ ],
344
+ "outputs": [
345
+ {
346
+ "name": "",
347
+ "type": "bool",
348
+ "internalType": "bool"
349
+ }
350
+ ],
351
+ "stateMutability": "view"
352
+ },
353
+ {
354
+ "type": "function",
355
+ "name": "isCaseActive",
356
+ "inputs": [
357
+ {
358
+ "name": "validator",
359
+ "type": "address",
360
+ "internalType": "address"
361
+ },
362
+ {
363
+ "name": "caseId",
364
+ "type": "bytes32",
365
+ "internalType": "bytes32"
366
+ }
367
+ ],
368
+ "outputs": [
369
+ {
370
+ "name": "",
371
+ "type": "bool",
372
+ "internalType": "bool"
373
+ }
374
+ ],
375
+ "stateMutability": "view"
376
+ },
377
+ {
378
+ "type": "function",
379
+ "name": "isEligible",
380
+ "inputs": [
381
+ {
382
+ "name": "validator",
383
+ "type": "address",
384
+ "internalType": "address"
385
+ }
386
+ ],
387
+ "outputs": [
388
+ {
389
+ "name": "",
390
+ "type": "bool",
391
+ "internalType": "bool"
392
+ }
393
+ ],
394
+ "stateMutability": "view"
395
+ },
396
+ {
397
+ "type": "function",
398
+ "name": "joinedAt",
399
+ "inputs": [
400
+ {
401
+ "name": "validator",
402
+ "type": "address",
403
+ "internalType": "address"
404
+ }
405
+ ],
406
+ "outputs": [
407
+ {
408
+ "name": "",
409
+ "type": "uint64",
410
+ "internalType": "uint64"
411
+ }
412
+ ],
413
+ "stateMutability": "view"
414
+ },
415
+ {
416
+ "type": "function",
417
+ "name": "lastRequiredIncreaseAt",
418
+ "inputs": [],
419
+ "outputs": [
420
+ {
421
+ "name": "",
422
+ "type": "uint64",
423
+ "internalType": "uint64"
424
+ }
425
+ ],
426
+ "stateMutability": "view"
427
+ },
428
+ {
429
+ "type": "function",
430
+ "name": "lockCase",
431
+ "inputs": [
432
+ {
433
+ "name": "validator",
434
+ "type": "address",
435
+ "internalType": "address"
436
+ },
437
+ {
438
+ "name": "caseId",
439
+ "type": "bytes32",
440
+ "internalType": "bytes32"
441
+ },
442
+ {
443
+ "name": "amount",
444
+ "type": "uint256",
445
+ "internalType": "uint256"
446
+ }
447
+ ],
448
+ "outputs": [],
449
+ "stateMutability": "nonpayable"
450
+ },
451
+ {
452
+ "type": "function",
453
+ "name": "lockedOf",
454
+ "inputs": [
455
+ {
456
+ "name": "validator",
457
+ "type": "address",
458
+ "internalType": "address"
459
+ }
460
+ ],
461
+ "outputs": [
462
+ {
463
+ "name": "",
464
+ "type": "uint256",
465
+ "internalType": "uint256"
466
+ }
467
+ ],
468
+ "stateMutability": "view"
469
+ },
470
+ {
471
+ "type": "function",
472
+ "name": "meetsMinimum",
473
+ "inputs": [
474
+ {
475
+ "name": "validator",
476
+ "type": "address",
477
+ "internalType": "address"
478
+ },
479
+ {
480
+ "name": "role",
481
+ "type": "uint8",
482
+ "internalType": "enum IValidatorStaking.Role"
483
+ }
484
+ ],
485
+ "outputs": [
486
+ {
487
+ "name": "",
488
+ "type": "bool",
489
+ "internalType": "bool"
490
+ }
491
+ ],
492
+ "stateMutability": "view"
493
+ },
494
+ {
495
+ "type": "function",
496
+ "name": "minimumStake",
497
+ "inputs": [
498
+ {
499
+ "name": "role",
500
+ "type": "uint8",
501
+ "internalType": "enum IValidatorStaking.Role"
502
+ }
503
+ ],
504
+ "outputs": [
505
+ {
506
+ "name": "",
507
+ "type": "uint256",
508
+ "internalType": "uint256"
509
+ }
510
+ ],
511
+ "stateMutability": "view"
512
+ },
513
+ {
514
+ "type": "function",
515
+ "name": "params",
516
+ "inputs": [],
517
+ "outputs": [
518
+ {
519
+ "name": "",
520
+ "type": "address",
521
+ "internalType": "contract IParamRegistry"
522
+ }
523
+ ],
524
+ "stateMutability": "view"
525
+ },
526
+ {
527
+ "type": "function",
528
+ "name": "positions",
529
+ "inputs": [
530
+ {
531
+ "name": "",
532
+ "type": "address",
533
+ "internalType": "address"
534
+ }
535
+ ],
536
+ "outputs": [
537
+ {
538
+ "name": "stake",
539
+ "type": "uint256",
540
+ "internalType": "uint256"
541
+ },
542
+ {
543
+ "name": "locked",
544
+ "type": "uint256",
545
+ "internalType": "uint256"
546
+ },
547
+ {
548
+ "name": "joinedAt",
549
+ "type": "uint64",
550
+ "internalType": "uint64"
551
+ },
552
+ {
553
+ "name": "exitRequestedAt",
554
+ "type": "uint64",
555
+ "internalType": "uint64"
556
+ },
557
+ {
558
+ "name": "cases",
559
+ "type": "uint32",
560
+ "internalType": "uint32"
561
+ }
562
+ ],
563
+ "stateMutability": "view"
564
+ },
565
+ {
566
+ "type": "function",
567
+ "name": "protocolProof",
568
+ "inputs": [],
569
+ "outputs": [
570
+ {
571
+ "name": "",
572
+ "type": "address",
573
+ "internalType": "contract IProtocolProof"
574
+ }
575
+ ],
576
+ "stateMutability": "view"
577
+ },
578
+ {
579
+ "type": "function",
580
+ "name": "proxiableUUID",
581
+ "inputs": [],
582
+ "outputs": [
583
+ {
584
+ "name": "",
585
+ "type": "bytes32",
586
+ "internalType": "bytes32"
587
+ }
588
+ ],
589
+ "stateMutability": "view"
590
+ },
591
+ {
592
+ "type": "function",
593
+ "name": "renounceRole",
594
+ "inputs": [
595
+ {
596
+ "name": "role",
597
+ "type": "bytes32",
598
+ "internalType": "bytes32"
599
+ },
600
+ {
601
+ "name": "callerConfirmation",
602
+ "type": "address",
603
+ "internalType": "address"
604
+ }
605
+ ],
606
+ "outputs": [],
607
+ "stateMutability": "nonpayable"
608
+ },
609
+ {
610
+ "type": "function",
611
+ "name": "requestExit",
612
+ "inputs": [],
613
+ "outputs": [],
614
+ "stateMutability": "nonpayable"
615
+ },
616
+ {
617
+ "type": "function",
618
+ "name": "requiredStakeAgt",
619
+ "inputs": [],
620
+ "outputs": [
621
+ {
622
+ "name": "",
623
+ "type": "uint256",
624
+ "internalType": "uint256"
625
+ }
626
+ ],
627
+ "stateMutability": "view"
628
+ },
629
+ {
630
+ "type": "function",
631
+ "name": "requiredStakeUpdatedAt",
632
+ "inputs": [],
633
+ "outputs": [
634
+ {
635
+ "name": "",
636
+ "type": "uint64",
637
+ "internalType": "uint64"
638
+ }
639
+ ],
640
+ "stateMutability": "view"
641
+ },
642
+ {
643
+ "type": "function",
644
+ "name": "requirementCheckpoints",
645
+ "inputs": [
646
+ {
647
+ "name": "",
648
+ "type": "uint256",
649
+ "internalType": "uint256"
650
+ }
651
+ ],
652
+ "outputs": [
653
+ {
654
+ "name": "value",
655
+ "type": "uint256",
656
+ "internalType": "uint256"
657
+ },
658
+ {
659
+ "name": "updatedAt",
660
+ "type": "uint64",
661
+ "internalType": "uint64"
662
+ }
663
+ ],
664
+ "stateMutability": "view"
665
+ },
666
+ {
667
+ "type": "function",
668
+ "name": "requirementEpoch",
669
+ "inputs": [],
670
+ "outputs": [
671
+ {
672
+ "name": "",
673
+ "type": "uint256",
674
+ "internalType": "uint256"
675
+ }
676
+ ],
677
+ "stateMutability": "view"
678
+ },
679
+ {
680
+ "type": "function",
681
+ "name": "revokeRole",
682
+ "inputs": [
683
+ {
684
+ "name": "role",
685
+ "type": "bytes32",
686
+ "internalType": "bytes32"
687
+ },
688
+ {
689
+ "name": "account",
690
+ "type": "address",
691
+ "internalType": "address"
692
+ }
693
+ ],
694
+ "outputs": [],
695
+ "stateMutability": "nonpayable"
696
+ },
697
+ {
698
+ "type": "function",
699
+ "name": "slash",
700
+ "inputs": [
701
+ {
702
+ "name": "validator",
703
+ "type": "address",
704
+ "internalType": "address"
705
+ },
706
+ {
707
+ "name": "caseId",
708
+ "type": "bytes32",
709
+ "internalType": "bytes32"
710
+ },
711
+ {
712
+ "name": "bps",
713
+ "type": "uint16",
714
+ "internalType": "uint16"
715
+ },
716
+ {
717
+ "name": "recipients",
718
+ "type": "address[]",
719
+ "internalType": "address[]"
720
+ },
721
+ {
722
+ "name": "sharesBps",
723
+ "type": "uint16[]",
724
+ "internalType": "uint16[]"
725
+ }
726
+ ],
727
+ "outputs": [
728
+ {
729
+ "name": "amount",
730
+ "type": "uint256",
731
+ "internalType": "uint256"
732
+ }
733
+ ],
734
+ "stateMutability": "nonpayable"
735
+ },
736
+ {
737
+ "type": "function",
738
+ "name": "slashAll",
739
+ "inputs": [
740
+ {
741
+ "name": "validator",
742
+ "type": "address",
743
+ "internalType": "address"
744
+ },
745
+ {
746
+ "name": "recipients",
747
+ "type": "address[]",
748
+ "internalType": "address[]"
749
+ },
750
+ {
751
+ "name": "sharesBps",
752
+ "type": "uint16[]",
753
+ "internalType": "uint16[]"
754
+ }
755
+ ],
756
+ "outputs": [
757
+ {
758
+ "name": "amount",
759
+ "type": "uint256",
760
+ "internalType": "uint256"
761
+ }
762
+ ],
763
+ "stateMutability": "nonpayable"
764
+ },
765
+ {
766
+ "type": "function",
767
+ "name": "slashByRole",
768
+ "inputs": [
769
+ {
770
+ "name": "validator",
771
+ "type": "address",
772
+ "internalType": "address"
773
+ },
774
+ {
775
+ "name": "role",
776
+ "type": "uint8",
777
+ "internalType": "enum IValidatorStaking.Role"
778
+ },
779
+ {
780
+ "name": "amount",
781
+ "type": "uint256",
782
+ "internalType": "uint256"
783
+ },
784
+ {
785
+ "name": "recipients",
786
+ "type": "address[]",
787
+ "internalType": "address[]"
788
+ },
789
+ {
790
+ "name": "sharesBps",
791
+ "type": "uint16[]",
792
+ "internalType": "uint16[]"
793
+ }
794
+ ],
795
+ "outputs": [
796
+ {
797
+ "name": "slashed",
798
+ "type": "uint256",
799
+ "internalType": "uint256"
800
+ }
801
+ ],
802
+ "stateMutability": "nonpayable"
803
+ },
804
+ {
805
+ "type": "function",
806
+ "name": "sqrtWeight",
807
+ "inputs": [
808
+ {
809
+ "name": "validator",
810
+ "type": "address",
811
+ "internalType": "address"
812
+ }
813
+ ],
814
+ "outputs": [
815
+ {
816
+ "name": "",
817
+ "type": "uint256",
818
+ "internalType": "uint256"
819
+ }
820
+ ],
821
+ "stateMutability": "view"
822
+ },
823
+ {
824
+ "type": "function",
825
+ "name": "stakeOf",
826
+ "inputs": [
827
+ {
828
+ "name": "validator",
829
+ "type": "address",
830
+ "internalType": "address"
831
+ }
832
+ ],
833
+ "outputs": [
834
+ {
835
+ "name": "",
836
+ "type": "uint256",
837
+ "internalType": "uint256"
838
+ }
839
+ ],
840
+ "stateMutability": "view"
841
+ },
842
+ {
843
+ "type": "function",
844
+ "name": "status",
845
+ "inputs": [
846
+ {
847
+ "name": "validator",
848
+ "type": "address",
849
+ "internalType": "address"
850
+ }
851
+ ],
852
+ "outputs": [
853
+ {
854
+ "name": "",
855
+ "type": "uint8",
856
+ "internalType": "enum IValidatorStaking.ValidatorStatus"
857
+ }
858
+ ],
859
+ "stateMutability": "view"
860
+ },
861
+ {
862
+ "type": "function",
863
+ "name": "supportsInterface",
864
+ "inputs": [
865
+ {
866
+ "name": "interfaceId",
867
+ "type": "bytes4",
868
+ "internalType": "bytes4"
869
+ }
870
+ ],
871
+ "outputs": [
872
+ {
873
+ "name": "",
874
+ "type": "bool",
875
+ "internalType": "bool"
876
+ }
877
+ ],
878
+ "stateMutability": "view"
879
+ },
880
+ {
881
+ "type": "function",
882
+ "name": "token",
883
+ "inputs": [],
884
+ "outputs": [
885
+ {
886
+ "name": "",
887
+ "type": "address",
888
+ "internalType": "contract IERC20"
889
+ }
890
+ ],
891
+ "stateMutability": "view"
892
+ },
893
+ {
894
+ "type": "function",
895
+ "name": "totalStaked",
896
+ "inputs": [],
897
+ "outputs": [
898
+ {
899
+ "name": "",
900
+ "type": "uint256",
901
+ "internalType": "uint256"
902
+ }
903
+ ],
904
+ "stateMutability": "view"
905
+ },
906
+ {
907
+ "type": "function",
908
+ "name": "unlockCase",
909
+ "inputs": [
910
+ {
911
+ "name": "validator",
912
+ "type": "address",
913
+ "internalType": "address"
914
+ },
915
+ {
916
+ "name": "caseId",
917
+ "type": "bytes32",
918
+ "internalType": "bytes32"
919
+ }
920
+ ],
921
+ "outputs": [],
922
+ "stateMutability": "nonpayable"
923
+ },
924
+ {
925
+ "type": "function",
926
+ "name": "updateRequiredStake",
927
+ "inputs": [
928
+ {
929
+ "name": "",
930
+ "type": "uint256",
931
+ "internalType": "uint256"
932
+ },
933
+ {
934
+ "name": "",
935
+ "type": "uint256",
936
+ "internalType": "uint256"
937
+ },
938
+ {
939
+ "name": "",
940
+ "type": "uint64",
941
+ "internalType": "uint64"
942
+ },
943
+ {
944
+ "name": "",
945
+ "type": "bytes",
946
+ "internalType": "bytes"
947
+ }
948
+ ],
949
+ "outputs": [],
950
+ "stateMutability": "pure"
951
+ },
952
+ {
953
+ "type": "function",
954
+ "name": "upgradeToAndCall",
955
+ "inputs": [
956
+ {
957
+ "name": "newImplementation",
958
+ "type": "address",
959
+ "internalType": "address"
960
+ },
961
+ {
962
+ "name": "data",
963
+ "type": "bytes",
964
+ "internalType": "bytes"
965
+ }
966
+ ],
967
+ "outputs": [],
968
+ "stateMutability": "payable"
969
+ },
970
+ {
971
+ "type": "function",
972
+ "name": "weightOf",
973
+ "inputs": [
974
+ {
975
+ "name": "validator",
976
+ "type": "address",
977
+ "internalType": "address"
978
+ },
979
+ {
980
+ "name": "cap",
981
+ "type": "uint256",
982
+ "internalType": "uint256"
983
+ }
984
+ ],
985
+ "outputs": [
986
+ {
987
+ "name": "",
988
+ "type": "uint256",
989
+ "internalType": "uint256"
990
+ }
991
+ ],
992
+ "stateMutability": "view"
993
+ },
994
+ {
995
+ "type": "event",
996
+ "name": "CaseLocked",
997
+ "inputs": [
998
+ {
999
+ "name": "validator",
1000
+ "type": "address",
1001
+ "indexed": true,
1002
+ "internalType": "address"
1003
+ },
1004
+ {
1005
+ "name": "caseId",
1006
+ "type": "bytes32",
1007
+ "indexed": true,
1008
+ "internalType": "bytes32"
1009
+ },
1010
+ {
1011
+ "name": "amount",
1012
+ "type": "uint256",
1013
+ "indexed": false,
1014
+ "internalType": "uint256"
1015
+ }
1016
+ ],
1017
+ "anonymous": false
1018
+ },
1019
+ {
1020
+ "type": "event",
1021
+ "name": "CaseUnlocked",
1022
+ "inputs": [
1023
+ {
1024
+ "name": "validator",
1025
+ "type": "address",
1026
+ "indexed": true,
1027
+ "internalType": "address"
1028
+ },
1029
+ {
1030
+ "name": "caseId",
1031
+ "type": "bytes32",
1032
+ "indexed": true,
1033
+ "internalType": "bytes32"
1034
+ },
1035
+ {
1036
+ "name": "amount",
1037
+ "type": "uint256",
1038
+ "indexed": false,
1039
+ "internalType": "uint256"
1040
+ }
1041
+ ],
1042
+ "anonymous": false
1043
+ },
1044
+ {
1045
+ "type": "event",
1046
+ "name": "ExitFinalized",
1047
+ "inputs": [
1048
+ {
1049
+ "name": "validator",
1050
+ "type": "address",
1051
+ "indexed": true,
1052
+ "internalType": "address"
1053
+ },
1054
+ {
1055
+ "name": "amount",
1056
+ "type": "uint256",
1057
+ "indexed": false,
1058
+ "internalType": "uint256"
1059
+ }
1060
+ ],
1061
+ "anonymous": false
1062
+ },
1063
+ {
1064
+ "type": "event",
1065
+ "name": "ExitRequested",
1066
+ "inputs": [
1067
+ {
1068
+ "name": "validator",
1069
+ "type": "address",
1070
+ "indexed": true,
1071
+ "internalType": "address"
1072
+ },
1073
+ {
1074
+ "name": "requestedAt",
1075
+ "type": "uint64",
1076
+ "indexed": false,
1077
+ "internalType": "uint64"
1078
+ }
1079
+ ],
1080
+ "anonymous": false
1081
+ },
1082
+ {
1083
+ "type": "event",
1084
+ "name": "Initialized",
1085
+ "inputs": [
1086
+ {
1087
+ "name": "version",
1088
+ "type": "uint64",
1089
+ "indexed": false,
1090
+ "internalType": "uint64"
1091
+ }
1092
+ ],
1093
+ "anonymous": false
1094
+ },
1095
+ {
1096
+ "type": "event",
1097
+ "name": "RoleAdminChanged",
1098
+ "inputs": [
1099
+ {
1100
+ "name": "role",
1101
+ "type": "bytes32",
1102
+ "indexed": true,
1103
+ "internalType": "bytes32"
1104
+ },
1105
+ {
1106
+ "name": "previousAdminRole",
1107
+ "type": "bytes32",
1108
+ "indexed": true,
1109
+ "internalType": "bytes32"
1110
+ },
1111
+ {
1112
+ "name": "newAdminRole",
1113
+ "type": "bytes32",
1114
+ "indexed": true,
1115
+ "internalType": "bytes32"
1116
+ }
1117
+ ],
1118
+ "anonymous": false
1119
+ },
1120
+ {
1121
+ "type": "event",
1122
+ "name": "RoleGranted",
1123
+ "inputs": [
1124
+ {
1125
+ "name": "role",
1126
+ "type": "bytes32",
1127
+ "indexed": true,
1128
+ "internalType": "bytes32"
1129
+ },
1130
+ {
1131
+ "name": "account",
1132
+ "type": "address",
1133
+ "indexed": true,
1134
+ "internalType": "address"
1135
+ },
1136
+ {
1137
+ "name": "sender",
1138
+ "type": "address",
1139
+ "indexed": true,
1140
+ "internalType": "address"
1141
+ }
1142
+ ],
1143
+ "anonymous": false
1144
+ },
1145
+ {
1146
+ "type": "event",
1147
+ "name": "RoleRevoked",
1148
+ "inputs": [
1149
+ {
1150
+ "name": "role",
1151
+ "type": "bytes32",
1152
+ "indexed": true,
1153
+ "internalType": "bytes32"
1154
+ },
1155
+ {
1156
+ "name": "account",
1157
+ "type": "address",
1158
+ "indexed": true,
1159
+ "internalType": "address"
1160
+ },
1161
+ {
1162
+ "name": "sender",
1163
+ "type": "address",
1164
+ "indexed": true,
1165
+ "internalType": "address"
1166
+ }
1167
+ ],
1168
+ "anonymous": false
1169
+ },
1170
+ {
1171
+ "type": "event",
1172
+ "name": "RoleSlashed",
1173
+ "inputs": [
1174
+ {
1175
+ "name": "validator",
1176
+ "type": "address",
1177
+ "indexed": true,
1178
+ "internalType": "address"
1179
+ },
1180
+ {
1181
+ "name": "role",
1182
+ "type": "uint8",
1183
+ "indexed": true,
1184
+ "internalType": "enum IValidatorStaking.Role"
1185
+ },
1186
+ {
1187
+ "name": "amount",
1188
+ "type": "uint256",
1189
+ "indexed": false,
1190
+ "internalType": "uint256"
1191
+ }
1192
+ ],
1193
+ "anonymous": false
1194
+ },
1195
+ {
1196
+ "type": "event",
1197
+ "name": "Slashed",
1198
+ "inputs": [
1199
+ {
1200
+ "name": "validator",
1201
+ "type": "address",
1202
+ "indexed": true,
1203
+ "internalType": "address"
1204
+ },
1205
+ {
1206
+ "name": "caseId",
1207
+ "type": "bytes32",
1208
+ "indexed": true,
1209
+ "internalType": "bytes32"
1210
+ },
1211
+ {
1212
+ "name": "amount",
1213
+ "type": "uint256",
1214
+ "indexed": false,
1215
+ "internalType": "uint256"
1216
+ }
1217
+ ],
1218
+ "anonymous": false
1219
+ },
1220
+ {
1221
+ "type": "event",
1222
+ "name": "SlashedAll",
1223
+ "inputs": [
1224
+ {
1225
+ "name": "validator",
1226
+ "type": "address",
1227
+ "indexed": true,
1228
+ "internalType": "address"
1229
+ },
1230
+ {
1231
+ "name": "amount",
1232
+ "type": "uint256",
1233
+ "indexed": false,
1234
+ "internalType": "uint256"
1235
+ }
1236
+ ],
1237
+ "anonymous": false
1238
+ },
1239
+ {
1240
+ "type": "event",
1241
+ "name": "StakeDeposited",
1242
+ "inputs": [
1243
+ {
1244
+ "name": "validator",
1245
+ "type": "address",
1246
+ "indexed": true,
1247
+ "internalType": "address"
1248
+ },
1249
+ {
1250
+ "name": "amount",
1251
+ "type": "uint256",
1252
+ "indexed": false,
1253
+ "internalType": "uint256"
1254
+ },
1255
+ {
1256
+ "name": "totalStake",
1257
+ "type": "uint256",
1258
+ "indexed": false,
1259
+ "internalType": "uint256"
1260
+ }
1261
+ ],
1262
+ "anonymous": false
1263
+ },
1264
+ {
1265
+ "type": "event",
1266
+ "name": "Upgraded",
1267
+ "inputs": [
1268
+ {
1269
+ "name": "implementation",
1270
+ "type": "address",
1271
+ "indexed": true,
1272
+ "internalType": "address"
1273
+ }
1274
+ ],
1275
+ "anonymous": false
1276
+ },
1277
+ {
1278
+ "type": "event",
1279
+ "name": "ValidatorBanned",
1280
+ "inputs": [
1281
+ {
1282
+ "name": "validator",
1283
+ "type": "address",
1284
+ "indexed": true,
1285
+ "internalType": "address"
1286
+ }
1287
+ ],
1288
+ "anonymous": false
1289
+ },
1290
+ {
1291
+ "type": "event",
1292
+ "name": "ValidatorJoined",
1293
+ "inputs": [
1294
+ {
1295
+ "name": "validator",
1296
+ "type": "address",
1297
+ "indexed": true,
1298
+ "internalType": "address"
1299
+ },
1300
+ {
1301
+ "name": "amount",
1302
+ "type": "uint256",
1303
+ "indexed": false,
1304
+ "internalType": "uint256"
1305
+ },
1306
+ {
1307
+ "name": "totalStake",
1308
+ "type": "uint256",
1309
+ "indexed": false,
1310
+ "internalType": "uint256"
1311
+ },
1312
+ {
1313
+ "name": "joinedAt",
1314
+ "type": "uint64",
1315
+ "indexed": false,
1316
+ "internalType": "uint64"
1317
+ }
1318
+ ],
1319
+ "anonymous": false
1320
+ },
1321
+ {
1322
+ "type": "error",
1323
+ "name": "AccessControlBadConfirmation",
1324
+ "inputs": []
1325
+ },
1326
+ {
1327
+ "type": "error",
1328
+ "name": "AccessControlUnauthorizedAccount",
1329
+ "inputs": [
1330
+ {
1331
+ "name": "account",
1332
+ "type": "address",
1333
+ "internalType": "address"
1334
+ },
1335
+ {
1336
+ "name": "neededRole",
1337
+ "type": "bytes32",
1338
+ "internalType": "bytes32"
1339
+ }
1340
+ ]
1341
+ },
1342
+ {
1343
+ "type": "error",
1344
+ "name": "ActiveCasesRemain",
1345
+ "inputs": [
1346
+ {
1347
+ "name": "count",
1348
+ "type": "uint256",
1349
+ "internalType": "uint256"
1350
+ }
1351
+ ]
1352
+ },
1353
+ {
1354
+ "type": "error",
1355
+ "name": "AddressEmptyCode",
1356
+ "inputs": [
1357
+ {
1358
+ "name": "target",
1359
+ "type": "address",
1360
+ "internalType": "address"
1361
+ }
1362
+ ]
1363
+ },
1364
+ {
1365
+ "type": "error",
1366
+ "name": "AddressInsufficientBalance",
1367
+ "inputs": [
1368
+ {
1369
+ "name": "account",
1370
+ "type": "address",
1371
+ "internalType": "address"
1372
+ }
1373
+ ]
1374
+ },
1375
+ {
1376
+ "type": "error",
1377
+ "name": "CaseAlreadyLocked",
1378
+ "inputs": [
1379
+ {
1380
+ "name": "validator",
1381
+ "type": "address",
1382
+ "internalType": "address"
1383
+ },
1384
+ {
1385
+ "name": "caseId",
1386
+ "type": "bytes32",
1387
+ "internalType": "bytes32"
1388
+ }
1389
+ ]
1390
+ },
1391
+ {
1392
+ "type": "error",
1393
+ "name": "CaseNotLocked",
1394
+ "inputs": [
1395
+ {
1396
+ "name": "validator",
1397
+ "type": "address",
1398
+ "internalType": "address"
1399
+ },
1400
+ {
1401
+ "name": "caseId",
1402
+ "type": "bytes32",
1403
+ "internalType": "bytes32"
1404
+ }
1405
+ ]
1406
+ },
1407
+ {
1408
+ "type": "error",
1409
+ "name": "ConcurrentCasesExceeded",
1410
+ "inputs": [
1411
+ {
1412
+ "name": "maximum",
1413
+ "type": "uint256",
1414
+ "internalType": "uint256"
1415
+ }
1416
+ ]
1417
+ },
1418
+ {
1419
+ "type": "error",
1420
+ "name": "CoolingDown",
1421
+ "inputs": []
1422
+ },
1423
+ {
1424
+ "type": "error",
1425
+ "name": "ERC1967InvalidImplementation",
1426
+ "inputs": [
1427
+ {
1428
+ "name": "implementation",
1429
+ "type": "address",
1430
+ "internalType": "address"
1431
+ }
1432
+ ]
1433
+ },
1434
+ {
1435
+ "type": "error",
1436
+ "name": "ERC1967NonPayable",
1437
+ "inputs": []
1438
+ },
1439
+ {
1440
+ "type": "error",
1441
+ "name": "ExitAlreadyRequested",
1442
+ "inputs": []
1443
+ },
1444
+ {
1445
+ "type": "error",
1446
+ "name": "ExitCooldownActive",
1447
+ "inputs": [
1448
+ {
1449
+ "name": "unlockAt",
1450
+ "type": "uint256",
1451
+ "internalType": "uint256"
1452
+ }
1453
+ ]
1454
+ },
1455
+ {
1456
+ "type": "error",
1457
+ "name": "ExitNotRequested",
1458
+ "inputs": []
1459
+ },
1460
+ {
1461
+ "type": "error",
1462
+ "name": "FailedInnerCall",
1463
+ "inputs": []
1464
+ },
1465
+ {
1466
+ "type": "error",
1467
+ "name": "IneligibleValidator",
1468
+ "inputs": [
1469
+ {
1470
+ "name": "validator",
1471
+ "type": "address",
1472
+ "internalType": "address"
1473
+ }
1474
+ ]
1475
+ },
1476
+ {
1477
+ "type": "error",
1478
+ "name": "InitialLockActive",
1479
+ "inputs": [
1480
+ {
1481
+ "name": "unlockAt",
1482
+ "type": "uint256",
1483
+ "internalType": "uint256"
1484
+ }
1485
+ ]
1486
+ },
1487
+ {
1488
+ "type": "error",
1489
+ "name": "InvalidAddress",
1490
+ "inputs": []
1491
+ },
1492
+ {
1493
+ "type": "error",
1494
+ "name": "InvalidAmount",
1495
+ "inputs": []
1496
+ },
1497
+ {
1498
+ "type": "error",
1499
+ "name": "InvalidBps",
1500
+ "inputs": [
1501
+ {
1502
+ "name": "bps",
1503
+ "type": "uint256",
1504
+ "internalType": "uint256"
1505
+ }
1506
+ ]
1507
+ },
1508
+ {
1509
+ "type": "error",
1510
+ "name": "InvalidInitialization",
1511
+ "inputs": []
1512
+ },
1513
+ {
1514
+ "type": "error",
1515
+ "name": "InvalidShares",
1516
+ "inputs": []
1517
+ },
1518
+ {
1519
+ "type": "error",
1520
+ "name": "LockExceeded",
1521
+ "inputs": [
1522
+ {
1523
+ "name": "requested",
1524
+ "type": "uint256",
1525
+ "internalType": "uint256"
1526
+ },
1527
+ {
1528
+ "name": "maximum",
1529
+ "type": "uint256",
1530
+ "internalType": "uint256"
1531
+ }
1532
+ ]
1533
+ },
1534
+ {
1535
+ "type": "error",
1536
+ "name": "NotInitializing",
1537
+ "inputs": []
1538
+ },
1539
+ {
1540
+ "type": "error",
1541
+ "name": "PermanentlyBanned",
1542
+ "inputs": [
1543
+ {
1544
+ "name": "validator",
1545
+ "type": "address",
1546
+ "internalType": "address"
1547
+ }
1548
+ ]
1549
+ },
1550
+ {
1551
+ "type": "error",
1552
+ "name": "ReentrancyGuardReentrantCall",
1553
+ "inputs": []
1554
+ },
1555
+ {
1556
+ "type": "error",
1557
+ "name": "RequirementDeprecated",
1558
+ "inputs": []
1559
+ },
1560
+ {
1561
+ "type": "error",
1562
+ "name": "SafeERC20FailedOperation",
1563
+ "inputs": [
1564
+ {
1565
+ "name": "token",
1566
+ "type": "address",
1567
+ "internalType": "address"
1568
+ }
1569
+ ]
1570
+ },
1571
+ {
1572
+ "type": "error",
1573
+ "name": "UUPSUnauthorizedCallContext",
1574
+ "inputs": []
1575
+ },
1576
+ {
1577
+ "type": "error",
1578
+ "name": "UUPSUnsupportedProxiableUUID",
1579
+ "inputs": [
1580
+ {
1581
+ "name": "slot",
1582
+ "type": "bytes32",
1583
+ "internalType": "bytes32"
1584
+ }
1585
+ ]
1586
+ },
1587
+ {
1588
+ "type": "error",
1589
+ "name": "UpgradeUnauthorized",
1590
+ "inputs": [
1591
+ {
1592
+ "name": "caller",
1593
+ "type": "address",
1594
+ "internalType": "address"
1595
+ }
1596
+ ]
1597
+ },
1598
+ {
1599
+ "type": "error",
1600
+ "name": "VoluntaryMaximumExceeded",
1601
+ "inputs": [
1602
+ {
1603
+ "name": "resultingStake",
1604
+ "type": "uint256",
1605
+ "internalType": "uint256"
1606
+ },
1607
+ {
1608
+ "name": "maximum",
1609
+ "type": "uint256",
1610
+ "internalType": "uint256"
1611
+ }
1612
+ ]
1613
+ }
1614
+ ];