@aastar/sdk 0.16.6 → 0.16.8

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 (763) hide show
  1. package/README.md +96 -245
  2. package/dist/account/src/accounts/simple.d.ts +18 -0
  3. package/{packages/account/src/accounts/simple.ts → dist/account/src/accounts/simple.js} +12 -47
  4. package/dist/account/src/eoa.d.ts +10 -0
  5. package/dist/account/src/eoa.js +21 -0
  6. package/dist/account/src/index.d.ts +19 -0
  7. package/dist/account/src/index.js +49 -0
  8. package/dist/core/src/abis/BLSAggregator.json +686 -0
  9. package/dist/core/src/abis/BLSValidator.json +42 -0
  10. package/dist/core/src/abis/DVTValidator.json +368 -0
  11. package/dist/core/src/abis/EntryPoint.json +1382 -0
  12. package/dist/core/src/abis/GToken.json +513 -0
  13. package/dist/core/src/abis/GTokenStaking.json +949 -0
  14. package/dist/core/src/abis/MySBT.json +1518 -0
  15. package/dist/core/src/abis/Paymaster.json +1143 -0
  16. package/dist/core/src/abis/PaymasterFactory.json +640 -0
  17. package/dist/core/src/abis/Registry.json +1942 -0
  18. package/dist/core/src/abis/ReputationSystem.json +699 -0
  19. package/dist/core/src/abis/SimpleAccount.json +560 -0
  20. package/dist/core/src/abis/SimpleAccountFactory.json +111 -0
  21. package/dist/core/src/abis/SuperPaymaster.json +1781 -0
  22. package/dist/core/src/abis/index.d.ts +1126 -0
  23. package/{packages/core/src/abis/index.ts → dist/core/src/abis/index.js} +7 -20
  24. package/dist/core/src/abis/xPNTsFactory.json +718 -0
  25. package/dist/core/src/abis/xPNTsToken.json +1280 -0
  26. package/dist/core/src/actions/StateValidator.d.ts +68 -0
  27. package/{packages/core/src/actions/StateValidator.ts → dist/core/src/actions/StateValidator.js} +68 -134
  28. package/dist/core/src/actions/account.d.ts +55 -0
  29. package/dist/core/src/actions/account.js +133 -0
  30. package/dist/core/src/actions/aggregator.d.ts +17 -0
  31. package/dist/core/src/actions/aggregator.js +31 -0
  32. package/dist/core/src/actions/dvt.d.ts +30 -0
  33. package/dist/core/src/actions/dvt.js +41 -0
  34. package/dist/core/src/actions/entryPoint.d.ts +90 -0
  35. package/dist/core/src/actions/entryPoint.js +211 -0
  36. package/dist/core/src/actions/factory.d.ts +215 -0
  37. package/dist/core/src/actions/factory.js +442 -0
  38. package/dist/core/src/actions/faucet.d.ts +48 -0
  39. package/{packages/core/src/actions/faucet.ts → dist/core/src/actions/faucet.js} +58 -142
  40. package/dist/core/src/actions/gtokenExtended.d.ts +39 -0
  41. package/dist/core/src/actions/gtokenExtended.js +115 -0
  42. package/dist/core/src/actions/index.d.ts +15 -0
  43. package/{packages/core/src/actions/index.ts → dist/core/src/actions/index.js} +0 -1
  44. package/dist/core/src/actions/paymasterV4.d.ts +170 -0
  45. package/dist/core/src/actions/paymasterV4.js +334 -0
  46. package/dist/core/src/actions/registry.d.ts +246 -0
  47. package/dist/core/src/actions/registry.js +667 -0
  48. package/dist/core/src/actions/reputation.d.ts +129 -0
  49. package/dist/core/src/actions/reputation.js +281 -0
  50. package/dist/core/src/actions/sbt.d.ts +191 -0
  51. package/dist/core/src/actions/sbt.js +533 -0
  52. package/dist/core/src/actions/staking.d.ts +132 -0
  53. package/{packages/core/src/actions/staking.ts → dist/core/src/actions/staking.js} +83 -174
  54. package/dist/core/src/actions/superPaymaster.d.ts +237 -0
  55. package/dist/core/src/actions/superPaymaster.js +644 -0
  56. package/dist/core/src/actions/tokens.d.ts +229 -0
  57. package/dist/core/src/actions/tokens.js +415 -0
  58. package/dist/core/src/branding.d.ts +30 -0
  59. package/dist/core/src/branding.js +30 -0
  60. package/dist/core/src/clients/BaseClient.d.ts +25 -0
  61. package/{packages/core/src/clients/BaseClient.ts → dist/core/src/clients/BaseClient.js} +16 -28
  62. package/{packages/core/src/clients/types.ts → dist/core/src/clients/types.d.ts} +0 -9
  63. package/dist/core/src/clients/types.js +1 -0
  64. package/dist/core/src/clients.d.ts +5 -0
  65. package/dist/core/src/clients.js +11 -0
  66. package/dist/core/src/communities.d.ts +52 -0
  67. package/dist/core/src/communities.js +73 -0
  68. package/dist/core/src/config/ContractConfigManager.d.ts +20 -0
  69. package/{packages/core/src/config/ContractConfigManager.ts → dist/core/src/config/ContractConfigManager.js} +8 -23
  70. package/dist/core/src/constants.d.ts +88 -0
  71. package/dist/core/src/constants.js +125 -0
  72. package/dist/core/src/contract-addresses.d.ts +110 -0
  73. package/dist/core/src/contract-addresses.js +99 -0
  74. package/dist/core/src/contracts.d.ts +424 -0
  75. package/dist/core/src/contracts.js +343 -0
  76. package/dist/core/src/crypto/blsSigner.d.ts +64 -0
  77. package/{packages/core/src/crypto/blsSigner.ts → dist/core/src/crypto/blsSigner.js} +23 -49
  78. package/dist/core/src/crypto/index.js +1 -0
  79. package/dist/core/src/index.d.ts +21 -0
  80. package/{packages/core/src/index.ts → dist/core/src/index.js} +0 -1
  81. package/dist/core/src/networks.d.ts +127 -0
  82. package/{lib/shared-config/src/networks.ts → dist/core/src/networks.js} +34 -33
  83. package/dist/core/src/requirementChecker.d.ts +38 -0
  84. package/{packages/core/src/requirementChecker.ts → dist/core/src/requirementChecker.js} +26 -74
  85. package/dist/core/src/roles.d.ts +204 -0
  86. package/{packages/core/src/roles.ts → dist/core/src/roles.js} +23 -67
  87. package/dist/core/src/utils/validation.d.ts +24 -0
  88. package/{packages/core/src/utils/validation.ts → dist/core/src/utils/validation.js} +6 -16
  89. package/{packages/dapp/src/index.ts → dist/dapp/src/index.d.ts} +0 -1
  90. package/dist/dapp/src/index.js +3 -0
  91. package/dist/dapp/src/ui/hooks/useCreditScore.d.ts +13 -0
  92. package/{packages/dapp/src/ui/hooks/useCreditScore.ts → dist/dapp/src/ui/hooks/useCreditScore.js} +11 -23
  93. package/dist/dapp/src/ui/hooks/useSuperPaymaster.d.ts +8 -0
  94. package/{packages/dapp/src/ui/hooks/useSuperPaymaster.ts → dist/dapp/src/ui/hooks/useSuperPaymaster.js} +9 -17
  95. package/dist/dapp/src/ui/index.d.ts +4 -0
  96. package/{packages/dapp/src/ui/index.ts → dist/dapp/src/ui/index.js} +3 -8
  97. package/dist/identity/src/index.d.ts +46 -0
  98. package/{packages/identity/src/index.ts → dist/identity/src/index.js} +21 -41
  99. package/dist/identity/src/mysbt.d.ts +13 -0
  100. package/{packages/identity/src/mysbt.ts → dist/identity/src/mysbt.js} +9 -20
  101. package/dist/paymaster/src/SuperPaymaster/index.d.ts +44 -0
  102. package/{packages/paymaster/src/SuperPaymaster/index.ts → dist/paymaster/src/SuperPaymaster/index.js} +27 -62
  103. package/dist/paymaster/src/V4/PaymasterClient.d.ts +79 -0
  104. package/{packages/paymaster/src/V4/PaymasterClient.ts → dist/paymaster/src/V4/PaymasterClient.js} +63 -133
  105. package/dist/paymaster/src/V4/PaymasterOperator.d.ts +41 -0
  106. package/{packages/paymaster/src/V4/PaymasterOperator.ts → dist/paymaster/src/V4/PaymasterOperator.js} +66 -107
  107. package/dist/paymaster/src/V4/PaymasterUtils.d.ts +55 -0
  108. package/{packages/paymaster/src/V4/PaymasterUtils.ts → dist/paymaster/src/V4/PaymasterUtils.js} +19 -80
  109. package/dist/paymaster/src/V4/SuperPaymasterClient.d.ts +21 -0
  110. package/{packages/paymaster/src/V4/SuperPaymasterClient.ts → dist/paymaster/src/V4/SuperPaymasterClient.js} +18 -68
  111. package/dist/paymaster/src/V4/index.js +4 -0
  112. package/dist/paymaster/src/index.d.ts +2 -0
  113. package/{packages/paymaster/src/index.ts → dist/paymaster/src/index.js} +0 -1
  114. package/dist/sdk/src/clients/ExperimentClient.d.ts +34 -0
  115. package/{packages/sdk/src/clients/ExperimentClient.ts → dist/sdk/src/clients/ExperimentClient.js} +11 -33
  116. package/dist/sdk/src/clients/ExperimentClient.test.d.ts +1 -0
  117. package/{packages/sdk/src/clients/ExperimentClient.test.ts → dist/sdk/src/clients/ExperimentClient.test.js} +4 -16
  118. package/dist/sdk/src/clients/admin.d.ts +57 -0
  119. package/dist/sdk/src/clients/admin.js +105 -0
  120. package/dist/sdk/src/clients/admin.test.d.ts +1 -0
  121. package/{packages/sdk/src/clients/admin.test.ts → dist/sdk/src/clients/admin.test.js} +18 -37
  122. package/dist/sdk/src/clients/clients.test.d.ts +1 -0
  123. package/{packages/sdk/src/clients/clients.test.ts → dist/sdk/src/clients/clients.test.js} +22 -35
  124. package/dist/sdk/src/clients/community.d.ts +48 -0
  125. package/{packages/sdk/src/clients/community.ts → dist/sdk/src/clients/community.js} +63 -156
  126. package/dist/sdk/src/clients/community.test.d.ts +1 -0
  127. package/dist/sdk/src/clients/community.test.js +99 -0
  128. package/dist/sdk/src/clients/endUser.d.ts +95 -0
  129. package/dist/sdk/src/clients/endUser.js +388 -0
  130. package/dist/sdk/src/clients/endUser.test.d.ts +1 -0
  131. package/dist/sdk/src/clients/endUser.test.js +188 -0
  132. package/dist/sdk/src/clients/operator.d.ts +96 -0
  133. package/{packages/sdk/src/clients/operator.ts → dist/sdk/src/clients/operator.js} +70 -178
  134. package/dist/sdk/src/clients/operator.test.d.ts +1 -0
  135. package/dist/sdk/src/clients/operator.test.js +139 -0
  136. package/dist/sdk/src/errors/AAStarError.d.ts +26 -0
  137. package/dist/sdk/src/errors/AAStarError.js +32 -0
  138. package/dist/sdk/src/errors/AAStarError.test.d.ts +1 -0
  139. package/{packages/sdk/src/errors/AAStarError.test.ts → dist/sdk/src/errors/AAStarError.test.js} +0 -18
  140. package/dist/sdk/src/errors/decoder.d.ts +1 -0
  141. package/{packages/sdk/src/errors/decoder.ts → dist/sdk/src/errors/decoder.js} +20 -28
  142. package/dist/sdk/src/errors/decoder.test.d.ts +1 -0
  143. package/{packages/sdk/src/errors/decoder.test.ts → dist/sdk/src/errors/decoder.test.js} +10 -27
  144. package/dist/sdk/src/index.d.ts +16 -0
  145. package/{packages/sdk/src/index.ts → dist/sdk/src/index.js} +0 -3
  146. package/{packages/sdk/src/node/index.ts → dist/sdk/src/node/index.d.ts} +0 -1
  147. package/dist/sdk/src/node/index.js +7 -0
  148. package/dist/sdk/src/types/result.d.ts +15 -0
  149. package/{packages/sdk/src/types/result.ts → dist/sdk/src/types/result.js} +5 -11
  150. package/dist/sdk/src/utils/errorHandler.d.ts +40 -0
  151. package/{packages/sdk/src/utils/errorHandler.ts → dist/sdk/src/utils/errorHandler.js} +22 -75
  152. package/dist/sdk/src/utils/errorHandler.test.d.ts +1 -0
  153. package/{packages/sdk/src/utils/errorHandler.test.ts → dist/sdk/src/utils/errorHandler.test.js} +1 -14
  154. package/dist/sdk/src/utils/eventDecoder.d.ts +7 -0
  155. package/{packages/sdk/src/utils/eventDecoder.ts → dist/sdk/src/utils/eventDecoder.js} +14 -26
  156. package/dist/sdk/src/utils/eventDecoder.test.d.ts +1 -0
  157. package/{packages/sdk/src/utils/eventDecoder.test.ts → dist/sdk/src/utils/eventDecoder.test.js} +10 -18
  158. package/dist/sdk/src/utils/funding.d.ts +115 -0
  159. package/{packages/sdk/src/utils/funding.ts → dist/sdk/src/utils/funding.js} +27 -119
  160. package/dist/sdk/src/utils/funding.test.d.ts +1 -0
  161. package/{packages/sdk/src/utils/funding.test.ts → dist/sdk/src/utils/funding.test.js} +18 -30
  162. package/dist/sdk/src/utils/keys.d.ts +73 -0
  163. package/{packages/sdk/src/utils/keys.ts → dist/sdk/src/utils/keys.js} +17 -54
  164. package/dist/sdk/src/utils/keys.test.d.ts +1 -0
  165. package/{packages/sdk/src/utils/keys.test.ts → dist/sdk/src/utils/keys.test.js} +13 -37
  166. package/dist/sdk/src/utils/roleData.d.ts +66 -0
  167. package/{packages/sdk/src/utils/roleData.ts → dist/sdk/src/utils/roleData.js} +28 -53
  168. package/dist/sdk/src/utils/roleData.test.d.ts +1 -0
  169. package/{packages/sdk/src/utils/roleData.test.ts → dist/sdk/src/utils/roleData.test.js} +2 -13
  170. package/dist/sdk/src/utils/testScenarios.d.ts +33 -0
  171. package/dist/sdk/src/utils/testScenarios.js +85 -0
  172. package/dist/sdk/src/utils/testScenarios.test.d.ts +1 -0
  173. package/{packages/sdk/src/utils/testScenarios.test.ts → dist/sdk/src/utils/testScenarios.test.js} +19 -30
  174. package/dist/sdk/src/utils/userOp.d.ts +78 -0
  175. package/{packages/sdk/src/utils/userOp.ts → dist/sdk/src/utils/userOp.js} +61 -131
  176. package/dist/sdk/src/utils/userOp.test.d.ts +1 -0
  177. package/{packages/sdk/src/utils/userOp.test.ts → dist/sdk/src/utils/userOp.test.js} +55 -93
  178. package/dist/tokens/src/index.d.ts +56 -0
  179. package/{packages/tokens/src/index.ts → dist/tokens/src/index.js} +52 -95
  180. package/examples/regression_test.d.ts +2 -0
  181. package/examples/regression_test.d.ts.map +1 -0
  182. package/examples/regression_test.js +89 -0
  183. package/examples/regression_test.js.map +1 -0
  184. package/package.json +40 -58
  185. package/scripts/v2_regression/01_setup_and_fund.ts +1 -1
  186. package/scripts/v2_regression/02_operator_onboarding.ts +1 -1
  187. package/scripts/v2_regression/03_community_registry.ts +1 -1
  188. package/scripts/v2_regression/04_enduser_flow.ts +1 -1
  189. package/scripts/v2_regression/05_admin_audit.ts +1 -1
  190. package/.eslintrc.cjs +0 -30
  191. package/.gitmodules +0 -9
  192. package/aastar-sdk.code-workspace +0 -14
  193. package/abis/BLSAggregator.json +0 -572
  194. package/abis/BLSValidator.json +0 -39
  195. package/abis/DVTValidator.json +0 -383
  196. package/abis/Eip7702Support.json +0 -24
  197. package/abis/EntryPoint.json +0 -1379
  198. package/abis/GToken.json +0 -510
  199. package/abis/GTokenStaking.json +0 -918
  200. package/abis/LegacyAccount.json +0 -625
  201. package/abis/MySBT.json +0 -1547
  202. package/abis/Paymaster.json +0 -1192
  203. package/abis/PaymasterFactory.json +0 -637
  204. package/abis/PaymasterV4_2.json +0 -1193
  205. package/abis/Registry.json +0 -1677
  206. package/abis/ReputationSystem.json +0 -659
  207. package/abis/SenderCreator.json +0 -99
  208. package/abis/Simple7702Account.json +0 -395
  209. package/abis/SimpleAccount.json +0 -625
  210. package/abis/SimpleAccountFactory.json +0 -108
  211. package/abis/SimpleAccountFactoryV08.json +0 -87
  212. package/abis/SimpleAccountV08.json +0 -557
  213. package/abis/SuperPaymaster.json +0 -1568
  214. package/abis/UserOperationLib.json +0 -57
  215. package/abis/aPNTs.json +0 -1160
  216. package/abis/xPNTsFactory.json +0 -715
  217. package/abis/xPNTsToken.json +0 -1160
  218. package/config/networks/README.md +0 -54
  219. package/config/networks/mainnet.env.example +0 -39
  220. package/config/networks/optimism-sepolia.env.example +0 -35
  221. package/config/networks/optimism.env.example +0 -36
  222. package/config/networks/sepolia.env.example +0 -36
  223. package/config.anvil.json +0 -1
  224. package/config.sepolia.json +0 -1
  225. package/config.test.json +0 -27
  226. package/data/experiment_data.csv +0 -36
  227. package/data/industry_baseline_2025-12-23.json +0 -154
  228. package/data/industry_baseline_latest.json +0 -154
  229. package/docs/ABI_Change_Tracking_Workflow.md +0 -41
  230. package/docs/ABI_MAINTENANCE_PLAN.md +0 -132
  231. package/docs/API_REFERENCE.md +0 -956
  232. package/docs/Configuration_Sync.md +0 -47
  233. package/docs/DAO_Mining_Distribution_Plan.md +0 -522
  234. package/docs/DEMO_REFACTOR_PLAN.md +0 -289
  235. package/docs/DOCUMENTATION_PLAN.md +0 -455
  236. package/docs/ENV_SEPOLIA_UPDATE.md +0 -68
  237. package/docs/Faucet_Gasless_Plan.md +0 -56
  238. package/docs/L2_BUSINESS_CLIENTS_PLAN.md +0 -394
  239. package/docs/L4_Manual_Test_CheatSheet.md +0 -215
  240. package/docs/Plan.md +0 -266
  241. package/docs/Regression_Testing_Guide.md +0 -70
  242. package/docs/SDK_ABI_COVERAGE.md +0 -839
  243. package/docs/SDK_COVERAGE_STRATEGY.md +0 -397
  244. package/docs/SDK_Optimization_Evaluation_Plan.md +0 -51
  245. package/docs/SDK_REGRESSION_AND_API_PLAN.md +0 -98
  246. package/docs/SDK_STAGE3_PLAN.md +0 -151
  247. package/docs/SEPOLIA_ENV_REFERENCE.md +0 -51
  248. package/docs/STAGE3.md +0 -191
  249. package/docs/Script_Comparison_Report.md +0 -91
  250. package/docs/Sepolia_Latest_Deployment.md +0 -117
  251. package/docs/TESTER_GUIDE_GASLESS.md +0 -663
  252. package/docs/TEST_COVERAGE_MATRIX.md +0 -72
  253. package/docs/TODO_SDK_COVERAGE.md +0 -55
  254. package/docs/USER_CASE_DESIGN.md +0 -110
  255. package/docs/Verifier_L4_Gasless_Plan.md +0 -454
  256. package/docs/api/@aastar/account.md +0 -235
  257. package/docs/api/@aastar/analytics.md +0 -219
  258. package/docs/api/@aastar/core.md +0 -26830
  259. package/docs/api/@aastar/dapp.md +0 -130
  260. package/docs/api/@aastar/identity.md +0 -482
  261. package/docs/api/@aastar/paymaster.md +0 -1387
  262. package/docs/api/@aastar/sdk/README.md +0 -155
  263. package/docs/api/@aastar/sdk/node.md +0 -4044
  264. package/docs/api/@aastar/tokens.md +0 -1971
  265. package/docs/api/README.md +0 -10
  266. package/docs/changelog.md +0 -99
  267. package/docs/examples/README.md +0 -18
  268. package/docs/examples/community-flow.md +0 -28
  269. package/docs/examples/enduser-flow.md +0 -24
  270. package/docs/examples/index.md +0 -18
  271. package/docs/examples/multi-chain.md +0 -31
  272. package/docs/examples/operator-flow.md +0 -28
  273. package/docs/guide/CLI_GUIDE.md +0 -65
  274. package/docs/guide/DOCUMENTATION_PLAN.md +0 -455
  275. package/docs/guide/Security-solution.md +0 -106
  276. package/docs/guide/TEST_COMMANDS.md +0 -320
  277. package/docs/guide/concepts/account-abstraction.md +0 -95
  278. package/docs/guide/concepts/rainbow-bridge.md +0 -68
  279. package/docs/guide/concepts/reputation.md +0 -95
  280. package/docs/guide/concepts/superpaymaster.md +0 -141
  281. package/docs/guide/getting-started.md +0 -133
  282. package/docs/guide/installation.md +0 -40
  283. package/docs/guide/paper-data-collection.md +0 -69
  284. package/docs/guide/quick-start.md +0 -52
  285. package/docs/guide/task_breakdown.md +0 -121
  286. package/docs/guide/use-cases/community-management.md +0 -141
  287. package/docs/guide/use-cases/gasless-transactions.md +0 -71
  288. package/docs/guide/use-cases/operator-staking.md +0 -84
  289. package/docs/guide/use-cases/yop.md +0 -72
  290. package/docs/old-solution.md +0 -1078
  291. package/docs/paper-data-collection.md +0 -69
  292. package/docs/refactor/2026-01-13-221242-trae-refactor.md +0 -224
  293. package/docs/refactor/2026-01-13-audit-analysis.md +0 -96
  294. package/docs/refactor/2026-01-13-audit-report-v0.16.2.md +0 -76
  295. package/docs/refactor/2026-01-13-audit-report-v0.17.0.md +0 -74
  296. package/docs/refactor/2026-01-13-cursor-refactor.md +0 -511
  297. package/docs/refactor/2026-01-13-refactor-plan.md +0 -88
  298. package/docs/refactor/2026-01-13-refactor-response-plan.md +0 -77
  299. package/docs/refactor/2026-01-13-refactor-review.md +0 -39
  300. package/docs/refactor/2026-01-13-sdk-enhancement-plan.md +0 -120
  301. package/docs/refactor/2026-01-14-audit-response.md +0 -242
  302. package/docs/refactor/2026-01-14-audit-summary.md +0 -133
  303. package/docs/refactor/cursor-2026-01-13-14-00-audit-report.md +0 -267
  304. package/docs/technical_plan.md +0 -510
  305. package/docs/zh/examples/community-flow.md +0 -38
  306. package/docs/zh/examples/complete-workflow.md +0 -10
  307. package/docs/zh/examples/enduser-flow.md +0 -33
  308. package/docs/zh/examples/index.md +0 -18
  309. package/docs/zh/examples/multi-chain.md +0 -46
  310. package/docs/zh/examples/operator-flow.md +0 -37
  311. package/docs/zh/guide/CLI_GUIDE.md +0 -48
  312. package/docs/zh/guide/DOCUMENTATION_PLAN.md +0 -455
  313. package/docs/zh/guide/Plan.md +0 -266
  314. package/docs/zh/guide/SDK_Optimization_Evaluation_Plan.md +0 -51
  315. package/docs/zh/guide/Security-solution.md +0 -106
  316. package/docs/zh/guide/TEST_COMMANDS.md +0 -125
  317. package/docs/zh/guide/TEST_COVERAGE_MATRIX.md +0 -72
  318. package/docs/zh/guide/concepts/account-abstraction.md +0 -95
  319. package/docs/zh/guide/concepts/rainbow-bridge.md +0 -68
  320. package/docs/zh/guide/concepts/reputation.md +0 -95
  321. package/docs/zh/guide/concepts/superpaymaster.md +0 -141
  322. package/docs/zh/guide/getting-started.md +0 -133
  323. package/docs/zh/guide/installation.md +0 -107
  324. package/docs/zh/guide/old-solution.md +0 -1078
  325. package/docs/zh/guide/paper-data-collection.md +0 -69
  326. package/docs/zh/guide/quick-start.md +0 -134
  327. package/docs/zh/guide/sdk-readme.md +0 -253
  328. package/docs/zh/guide/task_breakdown.md +0 -76
  329. package/docs/zh/guide/technical_plan.md +0 -510
  330. package/docs/zh/guide/use-cases/community-management.md +0 -141
  331. package/docs/zh/guide/use-cases/gasless-transactions.md +0 -71
  332. package/docs/zh/guide/use-cases/operator-staking.md +0 -84
  333. package/docs/zh/guide/use-cases/yop.md +0 -72
  334. package/env.template +0 -32
  335. package/examples/l1-api-demo.ts +0 -184
  336. package/examples/l2-clients-demo.ts +0 -138
  337. package/examples/l3-user-onboarding.ts +0 -74
  338. package/examples/prepare-gasless.ts +0 -89
  339. package/examples/sdk-demo/DEVELOPER_GUIDE.md +0 -159
  340. package/examples/sdk-demo/README.md +0 -30
  341. package/examples/sdk-demo/usage.ts +0 -137
  342. package/examples/simple-gasless-demo.ts +0 -80
  343. package/examples/simple-superpaymaster-demo.ts +0 -96
  344. package/ext/aastar-shared-config/.env.example +0 -6
  345. package/ext/aastar-shared-config/.github/workflows/check-secrets.yml +0 -257
  346. package/ext/aastar-shared-config/AGENTS.md +0 -21
  347. package/ext/aastar-shared-config/CHANGELOG.md +0 -99
  348. package/ext/aastar-shared-config/LICENSE +0 -21
  349. package/ext/aastar-shared-config/QUICK_START.md +0 -215
  350. package/ext/aastar-shared-config/README.md +0 -412
  351. package/ext/aastar-shared-config/SHARED_CONFIG_SUMMARY.md +0 -273
  352. package/ext/aastar-shared-config/check-locker-status.mjs +0 -7
  353. package/ext/aastar-shared-config/favicon.ico +0 -0
  354. package/ext/aastar-shared-config/generate-comparison-table.sh +0 -67
  355. package/ext/aastar-shared-config/package.json +0 -46
  356. package/ext/aastar-shared-config/pnpm-lock.yaml +0 -1182
  357. package/ext/aastar-shared-config/src/abis/BLSAggregator.json +0 -1
  358. package/ext/aastar-shared-config/src/abis/DVTValidator.json +0 -1
  359. package/ext/aastar-shared-config/src/abis/GToken.json +0 -1
  360. package/ext/aastar-shared-config/src/abis/GTokenStaking.json +0 -1
  361. package/ext/aastar-shared-config/src/abis/MySBT.json +0 -1
  362. package/ext/aastar-shared-config/src/abis/PaymasterFactory.json +0 -1
  363. package/ext/aastar-shared-config/src/abis/PaymasterV4.json +0 -1098
  364. package/ext/aastar-shared-config/src/abis/Registry.json +0 -1
  365. package/ext/aastar-shared-config/src/abis/SimpleAccount.json +0 -557
  366. package/ext/aastar-shared-config/src/abis/SimpleAccountFactory.json +0 -87
  367. package/ext/aastar-shared-config/src/abis/SuperPaymasterV2.json +0 -1
  368. package/ext/aastar-shared-config/src/abis/index.ts +0 -45
  369. package/ext/aastar-shared-config/src/abis/xPNTsFactory.json +0 -1
  370. package/ext/aastar-shared-config/src/abis/xPNTsToken.json +0 -1
  371. package/ext/aastar-shared-config/src/branding.ts +0 -32
  372. package/ext/aastar-shared-config/src/communities.ts +0 -93
  373. package/ext/aastar-shared-config/src/constants.ts +0 -67
  374. package/ext/aastar-shared-config/src/contract-addresses.ts +0 -95
  375. package/ext/aastar-shared-config/src/contract-versions.ts +0 -374
  376. package/ext/aastar-shared-config/src/contracts.ts +0 -414
  377. package/ext/aastar-shared-config/src/index.ts +0 -14
  378. package/ext/aastar-shared-config/src/networks.ts +0 -117
  379. package/ext/aastar-shared-config/sync-abis.sh +0 -92
  380. package/ext/aastar-shared-config/sync-versions.mjs +0 -150
  381. package/ext/aastar-shared-config/tsconfig.json +0 -18
  382. package/ext/aastar-shared-config/tsup.config.ts +0 -10
  383. package/ext/aastar-shared-config/verify-all.sh +0 -207
  384. package/ext/aastar-shared-config/verify-contracts.sh +0 -85
  385. package/ext/aastar-shared-config/verify-mysbt-v243.mjs +0 -27
  386. package/ext/aastar-shared-config/verify-onchain-versions.mjs +0 -93
  387. package/l4-setup.sh +0 -11
  388. package/lib/SHARED_CONFIG_REFERENCE.md +0 -133
  389. package/lib/shared-config/.env.example +0 -6
  390. package/lib/shared-config/.github/workflows/check-secrets.yml +0 -257
  391. package/lib/shared-config/AGENTS.md +0 -21
  392. package/lib/shared-config/CHANGELOG.md +0 -99
  393. package/lib/shared-config/LICENSE +0 -21
  394. package/lib/shared-config/QUICK_START.md +0 -215
  395. package/lib/shared-config/README.md +0 -412
  396. package/lib/shared-config/SHARED_CONFIG_SUMMARY.md +0 -273
  397. package/lib/shared-config/check-locker-status.mjs +0 -7
  398. package/lib/shared-config/favicon.ico +0 -0
  399. package/lib/shared-config/generate-comparison-table.sh +0 -67
  400. package/lib/shared-config/package.json +0 -46
  401. package/lib/shared-config/pnpm-lock.yaml +0 -1182
  402. package/lib/shared-config/src/abis/BLSAggregator.json +0 -1
  403. package/lib/shared-config/src/abis/DVTValidator.json +0 -1
  404. package/lib/shared-config/src/abis/GToken.json +0 -1
  405. package/lib/shared-config/src/abis/GTokenStaking.json +0 -1
  406. package/lib/shared-config/src/abis/MySBT.json +0 -1
  407. package/lib/shared-config/src/abis/PaymasterFactory.json +0 -1
  408. package/lib/shared-config/src/abis/PaymasterV4.json +0 -1098
  409. package/lib/shared-config/src/abis/Registry.json +0 -1
  410. package/lib/shared-config/src/abis/SimpleAccount.json +0 -557
  411. package/lib/shared-config/src/abis/SimpleAccountFactory.json +0 -87
  412. package/lib/shared-config/src/abis/SuperPaymasterV2.json +0 -1
  413. package/lib/shared-config/src/abis/index.ts +0 -45
  414. package/lib/shared-config/src/abis/xPNTsFactory.json +0 -1
  415. package/lib/shared-config/src/abis/xPNTsToken.json +0 -1
  416. package/lib/shared-config/src/branding.ts +0 -32
  417. package/lib/shared-config/src/communities.ts +0 -93
  418. package/lib/shared-config/src/constants.ts +0 -67
  419. package/lib/shared-config/src/contract-addresses.ts +0 -95
  420. package/lib/shared-config/src/contract-versions.ts +0 -374
  421. package/lib/shared-config/src/contracts.ts +0 -414
  422. package/lib/shared-config/src/index.ts +0 -14
  423. package/lib/shared-config/sync-abis.sh +0 -92
  424. package/lib/shared-config/sync-versions.mjs +0 -150
  425. package/lib/shared-config/tsconfig.json +0 -18
  426. package/lib/shared-config/tsup.config.ts +0 -10
  427. package/lib/shared-config/verify-all.sh +0 -207
  428. package/lib/shared-config/verify-contracts.sh +0 -85
  429. package/lib/shared-config/verify-mysbt-v243.mjs +0 -27
  430. package/lib/shared-config/verify-onchain-versions.mjs +0 -93
  431. package/packages/account/package.json +0 -23
  432. package/packages/account/src/accounts/simple.test.ts +0 -93
  433. package/packages/account/src/eoa.test.ts +0 -37
  434. package/packages/account/src/eoa.ts +0 -33
  435. package/packages/account/src/index.test.ts +0 -34
  436. package/packages/account/src/index.ts +0 -61
  437. package/packages/account/tsconfig.json +0 -11
  438. package/packages/analytics/package.json +0 -28
  439. package/packages/analytics/src/index.ts +0 -145
  440. package/packages/analytics/tsconfig.json +0 -11
  441. package/packages/core/package.json +0 -32
  442. package/packages/core/scripts/audit-abi-coverage.ts +0 -165
  443. package/packages/core/scripts/debug-regex.ts +0 -36
  444. package/packages/core/src/abis/.abi-hashes.json +0 -26
  445. package/packages/core/src/abis/BLSAggregator.json +0 -686
  446. package/packages/core/src/abis/BLSValidator.json +0 -42
  447. package/packages/core/src/abis/DVTValidator.json +0 -368
  448. package/packages/core/src/abis/Eip7702Support.json +0 -24
  449. package/packages/core/src/abis/EntryPoint.json +0 -1382
  450. package/packages/core/src/abis/GToken.json +0 -513
  451. package/packages/core/src/abis/GTokenStaking.json +0 -949
  452. package/packages/core/src/abis/LegacyAccount.json +0 -625
  453. package/packages/core/src/abis/MySBT.json +0 -1518
  454. package/packages/core/src/abis/Paymaster.json +0 -1143
  455. package/packages/core/src/abis/PaymasterFactory.json +0 -640
  456. package/packages/core/src/abis/Registry.json +0 -1942
  457. package/packages/core/src/abis/ReputationSystem.json +0 -699
  458. package/packages/core/src/abis/SenderCreator.json +0 -99
  459. package/packages/core/src/abis/Simple7702Account.json +0 -395
  460. package/packages/core/src/abis/SimpleAccount.json +0 -560
  461. package/packages/core/src/abis/SimpleAccountFactory.json +0 -111
  462. package/packages/core/src/abis/SimpleAccountFactoryV08.json +0 -87
  463. package/packages/core/src/abis/SimpleAccountV08.json +0 -557
  464. package/packages/core/src/abis/SuperPaymaster.json +0 -1781
  465. package/packages/core/src/abis/UserOperationLib.json +0 -57
  466. package/packages/core/src/abis/abi.config.json +0 -24
  467. package/packages/core/src/abis/xPNTsFactory.json +0 -718
  468. package/packages/core/src/abis/xPNTsToken.json +0 -1280
  469. package/packages/core/src/actions/StateValidator.test.ts +0 -175
  470. package/packages/core/src/actions/account.test.ts +0 -155
  471. package/packages/core/src/actions/account.ts +0 -179
  472. package/packages/core/src/actions/aggregator.test.ts +0 -88
  473. package/packages/core/src/actions/aggregator.ts +0 -41
  474. package/packages/core/src/actions/dvt.test.ts +0 -124
  475. package/packages/core/src/actions/dvt.ts +0 -53
  476. package/packages/core/src/actions/entryPoint.test.ts +0 -176
  477. package/packages/core/src/actions/entryPoint.ts +0 -266
  478. package/packages/core/src/actions/factory.test.ts +0 -250
  479. package/packages/core/src/actions/factory.ts +0 -613
  480. package/packages/core/src/actions/faucet.test.ts +0 -202
  481. package/packages/core/src/actions/gtokenExtended.test.ts +0 -162
  482. package/packages/core/src/actions/gtokenExtended.ts +0 -153
  483. package/packages/core/src/actions/paymasterV4.test.ts +0 -209
  484. package/packages/core/src/actions/paymasterV4.ts +0 -455
  485. package/packages/core/src/actions/registry.test.ts +0 -443
  486. package/packages/core/src/actions/registry.ts +0 -860
  487. package/packages/core/src/actions/reputation.test.ts +0 -225
  488. package/packages/core/src/actions/reputation.ts +0 -378
  489. package/packages/core/src/actions/sbt.test.ts +0 -322
  490. package/packages/core/src/actions/sbt.ts +0 -681
  491. package/packages/core/src/actions/staking.test.ts +0 -273
  492. package/packages/core/src/actions/superPaymaster.test.ts +0 -356
  493. package/packages/core/src/actions/superPaymaster.ts +0 -828
  494. package/packages/core/src/actions/tokens.test.ts +0 -60
  495. package/packages/core/src/actions/tokens.ts +0 -527
  496. package/packages/core/src/actions/validators.test.ts +0 -239
  497. package/packages/core/src/actions/validators.ts +0 -590
  498. package/packages/core/src/branding.ts +0 -32
  499. package/packages/core/src/clients.ts +0 -13
  500. package/packages/core/src/communities.ts +0 -93
  501. package/packages/core/src/constants.ts +0 -145
  502. package/packages/core/src/contract-addresses.ts +0 -125
  503. package/packages/core/src/contracts.test.ts +0 -58
  504. package/packages/core/src/contracts.ts +0 -414
  505. package/packages/core/src/networks.ts +0 -127
  506. package/packages/core/src/requirementChecker.test.ts +0 -71
  507. package/packages/core/src/roles.test.ts +0 -34
  508. package/packages/core/src/utils/validation.test.ts +0 -50
  509. package/packages/core/src/utils.ts +0 -23
  510. package/packages/core/tsconfig.json +0 -12
  511. package/packages/core/vitest.config.ts +0 -14
  512. package/packages/dapp/package.json +0 -30
  513. package/packages/dapp/src/ui/components/EvaluationPanel.tsx +0 -40
  514. package/packages/dapp/tsconfig.json +0 -12
  515. package/packages/identity/package.json +0 -25
  516. package/packages/identity/tsconfig.json +0 -11
  517. package/packages/paymaster/package.json +0 -25
  518. package/packages/paymaster/src/V4/PaymasterClient.test.ts +0 -114
  519. package/packages/paymaster/src/V4/PaymasterOperator.test.ts +0 -80
  520. package/packages/paymaster/src/V4/PaymasterUtils.test.ts +0 -54
  521. package/packages/paymaster/src/V4/SuperPaymasterClient.test.ts +0 -79
  522. package/packages/paymaster/tsconfig.json +0 -11
  523. package/packages/sdk/README.md +0 -150
  524. package/packages/sdk/aastar/package.json +0 -21
  525. package/packages/sdk/aastar/src/index.ts +0 -3
  526. package/packages/sdk/aastar/tsconfig.json +0 -7
  527. package/packages/sdk/coverage_output.txt +0 -393
  528. package/packages/sdk/coverage_output_final.txt +0 -739
  529. package/packages/sdk/coverage_output_final_v2.txt +0 -722
  530. package/packages/sdk/coverage_output_final_v3.txt +0 -722
  531. package/packages/sdk/package.json +0 -44
  532. package/packages/sdk/src/clients/admin.ts +0 -154
  533. package/packages/sdk/src/clients/community.test.ts +0 -118
  534. package/packages/sdk/src/clients/endUser.test.ts +0 -221
  535. package/packages/sdk/src/clients/endUser.ts +0 -551
  536. package/packages/sdk/src/clients/operator.test.ts +0 -162
  537. package/packages/sdk/src/errors/AAStarError.ts +0 -70
  538. package/packages/sdk/src/utils/testScenarios.ts +0 -128
  539. package/packages/sdk/tests/scenarios/01_onboard_community.ts +0 -62
  540. package/packages/sdk/tests/scenarios/02_onboard_operator.ts +0 -109
  541. package/packages/sdk/tests/scenarios/03_onboard_user.ts +0 -53
  542. package/packages/sdk/tests/scenarios/04_gasless_tx_flow.ts +0 -68
  543. package/packages/sdk/tests/scenarios/check_entrypoint.ts +0 -19
  544. package/packages/sdk/tests/scenarios/check_initialization.ts +0 -65
  545. package/packages/sdk/tests/scenarios/debug_addresses.ts +0 -26
  546. package/packages/sdk/tests/scenarios/diagnose_scenario4.ts +0 -55
  547. package/packages/sdk/tests/scenarios/setup.ts +0 -33
  548. package/packages/sdk/tests/scenarios/test_entrypoint_nonce.ts +0 -46
  549. package/packages/sdk/tsconfig.json +0 -11
  550. package/packages/tokens/package.json +0 -25
  551. package/packages/tokens/tsconfig.json +0 -11
  552. package/pnpm-workspace.yaml +0 -2
  553. package/run_l4_gasless_regression.sh +0 -79
  554. package/run_sdk_regression.sh +0 -238
  555. package/scripts/00_utils.ts +0 -59
  556. package/scripts/00_verify_phase1.ts +0 -130
  557. package/scripts/01_1_prep_gtoken.ts +0 -81
  558. package/scripts/01_2_register_sbt.ts +0 -88
  559. package/scripts/01_3_prep_tokens_paymaster.ts +0 -102
  560. package/scripts/01_prepare_all.ts +0 -222
  561. package/scripts/02_test_eoa.ts +0 -53
  562. package/scripts/03_test_standard_aa.ts +0 -68
  563. package/scripts/04_0_check_deploy.ts +0 -24
  564. package/scripts/04_1_check_allowance.ts +0 -44
  565. package/scripts/04_2_construct_verify.ts +0 -96
  566. package/scripts/04_3_verify_estimate.ts +0 -66
  567. package/scripts/04_4_verify_pack.ts +0 -74
  568. package/scripts/04_test_paymaster_v4.ts +0 -60
  569. package/scripts/05_1_deposit.ts +0 -48
  570. package/scripts/05_test_superpaymaster.ts +0 -58
  571. package/scripts/06_local_test_v3_admin.ts +0 -163
  572. package/scripts/06_local_test_v3_execution.ts +0 -132
  573. package/scripts/06_local_test_v3_full.ts +0 -490
  574. package/scripts/06_local_test_v3_funding.ts +0 -124
  575. package/scripts/06_local_test_v3_reputation.ts +0 -234
  576. package/scripts/07_local_test_v3_audit.ts +0 -181
  577. package/scripts/08_local_test_registry_lifecycle.ts +0 -382
  578. package/scripts/09_local_test_community_lifecycle.ts +0 -385
  579. package/scripts/09_local_test_community_simple.ts +0 -108
  580. package/scripts/09_scenario_bread_independent.ts +0 -247
  581. package/scripts/10_scenario_super_shared.ts +0 -196
  582. package/scripts/10_test_protocol_admin_full.ts +0 -173
  583. package/scripts/11_scenario_hacker_defense.ts +0 -104
  584. package/scripts/11_test_core_flows_full.ts +0 -157
  585. package/scripts/12_test_slash_mechanism.ts +0 -205
  586. package/scripts/12_test_slash_queries.ts +0 -83
  587. package/scripts/12_test_staking_exit.ts +0 -152
  588. package/scripts/12_test_staking_slash.ts +0 -301
  589. package/scripts/12_test_tier2_slash.ts +0 -139
  590. package/scripts/13_test_sbt_burn_linkage.ts +0 -266
  591. package/scripts/14_test_credit_redesign.ts +0 -266
  592. package/scripts/15_test_bls_full.ts +0 -148
  593. package/scripts/15_test_dvt_bls_full.ts +0 -140
  594. package/scripts/17_test_cross_role_collaboration.ts +0 -95
  595. package/scripts/18_sdk_e2e_verification.ts +0 -67
  596. package/scripts/18_test_dvt_sdk_flow.ts +0 -138
  597. package/scripts/18_test_lifecycle_completion.ts +0 -144
  598. package/scripts/19_sdk_experiment_runner.ts +0 -114
  599. package/scripts/19_sdk_experiment_runner.ts.backup +0 -391
  600. package/scripts/20_sdk_full_capability.ts +0 -93
  601. package/scripts/20_test_superpaymaster_new_apis.ts +0 -193
  602. package/scripts/21_test_paymasterv4_complete.ts +0 -341
  603. package/scripts/22_test_bls_signing.ts +0 -260
  604. package/scripts/23_test_middleware.ts +0 -197
  605. package/scripts/98_edge_reentrancy.ts +0 -85
  606. package/scripts/99_bug_hunting_fast.ts +0 -99
  607. package/scripts/analyze_abi_coverage.ts +0 -169
  608. package/scripts/check-admin.ts +0 -95
  609. package/scripts/check-jason-status.ts +0 -184
  610. package/scripts/check-roles.ts +0 -36
  611. package/scripts/clear-nonce.ts +0 -47
  612. package/scripts/collect_industry_baseline.ts +0 -236
  613. package/scripts/complete-jack-superpaymaster.ts +0 -171
  614. package/scripts/complete_env_config.ts +0 -97
  615. package/scripts/debug-addr.ts +0 -43
  616. package/scripts/debug-community-registration.ts +0 -92
  617. package/scripts/debug-deploy-v4.ts +0 -116
  618. package/scripts/debug-paymaster.ts +0 -127
  619. package/scripts/debug-register-role.ts +0 -101
  620. package/scripts/debug-version.ts +0 -71
  621. package/scripts/debug_account_c.ts +0 -43
  622. package/scripts/debug_bls.ts +0 -58
  623. package/scripts/debug_config_v036.ts +0 -13
  624. package/scripts/debug_contracts.ts +0 -2
  625. package/scripts/debug_env.ts +0 -69
  626. package/scripts/debug_find_paymaster.ts +0 -98
  627. package/scripts/debug_isolated_registration.ts +0 -256
  628. package/scripts/debug_paymaster_config.ts +0 -19
  629. package/scripts/debug_pim_addr.ts +0 -23
  630. package/scripts/debug_pm_status.ts +0 -51
  631. package/scripts/debug_registry.ts +0 -39
  632. package/scripts/debug_registry_setup.ts +0 -129
  633. package/scripts/debug_sanity.ts +0 -32
  634. package/scripts/debug_shared_config.ts +0 -10
  635. package/scripts/debug_token_compat.ts +0 -51
  636. package/scripts/debug_tokens.ts +0 -41
  637. package/scripts/debug_vcheck.ts +0 -33
  638. package/scripts/deploy-sync.ts +0 -104
  639. package/scripts/deploy_and_init_v3.sh +0 -134
  640. package/scripts/deploy_anvil_accounts.ts +0 -144
  641. package/scripts/deploy_paymaster_v4.ts +0 -139
  642. package/scripts/deploy_test_accounts.ts +0 -401
  643. package/scripts/deprecated/check_aa_entrypoint.ts +0 -29
  644. package/scripts/deprecated/check_paymaster_deposits.ts +0 -45
  645. package/scripts/deprecated/debug_aoa_function.ts +0 -28
  646. package/scripts/deprecated/debug_aoa_issue.ts +0 -16
  647. package/scripts/deprecated/debug_pimlico_aa23.ts +0 -40
  648. package/scripts/deprecated/debug_summary.ts +0 -34
  649. package/scripts/deprecated/deploy_v07_aa.ts +0 -99
  650. package/scripts/deprecated/fix_all_issues.ts +0 -61
  651. package/scripts/deprecated/fund_bpnts.ts +0 -52
  652. package/scripts/deprecated/get_factory_addresses.ts +0 -28
  653. package/scripts/deprecated/recheck_pim.ts +0 -34
  654. package/scripts/dev_tools/extract_abis.sh +0 -151
  655. package/scripts/dev_tools/extract_addresses_to_env.sh +0 -67
  656. package/scripts/dev_tools/final_safe_harmonize.py +0 -77
  657. package/scripts/dev_tools/safe_harmonize.py +0 -107
  658. package/scripts/dev_tools/surgical_harmonize.py +0 -83
  659. package/scripts/experiment/stage3/SETUP_GUIDE.md +0 -258
  660. package/scripts/experiment/stage3/archived_scripts/00_token_distribution.ts +0 -78
  661. package/scripts/experiment/stage3/archived_scripts/01_dao_launch.ts +0 -96
  662. package/scripts/experiment/stage3/archived_scripts/01b_bread_launch.ts +0 -112
  663. package/scripts/experiment/stage3/archived_scripts/02_operator_setup.ts +0 -84
  664. package/scripts/experiment/stage3/archived_scripts/02b_operator_b_setup.ts +0 -104
  665. package/scripts/experiment/stage3/archived_scripts/02c_finalize_operators.ts +0 -86
  666. package/scripts/experiment/stage3/archived_scripts/02d_operator_collateral.ts +0 -89
  667. package/scripts/experiment/stage3/archived_scripts/03_user_onboarding.ts +0 -83
  668. package/scripts/experiment/stage3/archived_scripts/03b_deploy_aa_account.ts +0 -61
  669. package/scripts/experiment/stage3/archived_scripts/03c_aa_onboarding.ts +0 -104
  670. package/scripts/experiment/stage3/archived_scripts/03d_mint_points.ts +0 -60
  671. package/scripts/experiment/stage3/archived_scripts/04_benchmarking.ts +0 -100
  672. package/scripts/experiment/stage3/archived_scripts/05_multi_op_setup.ts +0 -149
  673. package/scripts/experiment/stage3/archived_scripts/README.md +0 -58
  674. package/scripts/experiment/stage3/archived_scripts/check_roles.ts +0 -29
  675. package/scripts/experiment/stage3/archived_scripts/decode_error.ts +0 -23
  676. package/scripts/experiment/stage3/archived_scripts/fund_user.ts +0 -51
  677. package/scripts/experiment/stage3/archived_scripts/gen_b_key.ts +0 -3
  678. package/scripts/experiment/stage3/archived_scripts/gen_keys.ts +0 -4
  679. package/scripts/experiment/stage3/archived_scripts/setup.ts +0 -105
  680. package/scripts/experiment/stage3/archived_scripts/test_key.ts +0 -4
  681. package/scripts/experiment/stage3/archived_scripts/verify_state.ts +0 -59
  682. package/scripts/experiment/stage3/refactored/00_token_distribution.ts +0 -46
  683. package/scripts/experiment/stage3/refactored/02_operator_setup.ts +0 -65
  684. package/scripts/experiment/stage3/refactored/03_user_onboarding.ts +0 -68
  685. package/scripts/experiment/stage3/refactored/05_multi_op_setup.ts +0 -63
  686. package/scripts/experiment/stage3/refactored/README.md +0 -71
  687. package/scripts/extract-docs.sh +0 -141
  688. package/scripts/fund-jack.ts +0 -38
  689. package/scripts/generate_env_from_deployment.ts +0 -109
  690. package/scripts/inspect-anni-token.ts +0 -116
  691. package/scripts/inspect-factory.ts +0 -83
  692. package/scripts/l4-paymasterv4-transfer-test.ts +0 -228
  693. package/scripts/l4-setup.ts +0 -453
  694. package/scripts/l4-state.json +0 -80
  695. package/scripts/phase1_verify_contracts.ts +0 -207
  696. package/scripts/pre_test_sync.ts +0 -83
  697. package/scripts/prepare_sepolia_resources.ts +0 -154
  698. package/scripts/publish_all.sh +0 -39
  699. package/scripts/query-jack-token.ts +0 -22
  700. package/scripts/quick_setup.ts +0 -124
  701. package/scripts/quick_setup_account.ts +0 -80
  702. package/scripts/run_automated_experiment.sh +0 -121
  703. package/scripts/run_daily_experiment.ts +0 -70
  704. package/scripts/run_l4_gasless_regression.sh +0 -32
  705. package/scripts/run_sdk_experiment.sh +0 -13
  706. package/scripts/run_sdk_regression-v2.sh +0 -38
  707. package/scripts/sdk_regression_v2.ts +0 -162
  708. package/scripts/security_audit.sh +0 -172
  709. package/scripts/setup-bbq-community.ts +0 -187
  710. package/scripts/setup-dancing-community.ts +0 -223
  711. package/scripts/setup_test_accounts.ts +0 -88
  712. package/scripts/setup_test_environment.ts +0 -147
  713. package/scripts/sync_anvil_config.cjs +0 -44
  714. package/scripts/sync_config_to_env.ts +0 -88
  715. package/scripts/sync_contract_addresses.ts +0 -186
  716. package/scripts/sync_sepolia_config.cjs +0 -90
  717. package/scripts/sync_sepolia_config.mjs +0 -74
  718. package/scripts/test-brown-v4-deploy.ts +0 -90
  719. package/scripts/test-faucet-and-gasless.ts +0 -170
  720. package/scripts/test-jack-gasless.ts +0 -119
  721. package/scripts/test-jack-registration.ts +0 -133
  722. package/scripts/test-jack-superpaymaster-api.ts +0 -112
  723. package/scripts/test-kms-gasless.ts +0 -138
  724. package/scripts/test_groups.ts +0 -138
  725. package/scripts/test_multi_community_anvil.ts +0 -276
  726. package/scripts/test_new_sdk_apis_sepolia.ts +0 -193
  727. package/scripts/test_sdk_join_idempotent.ts +0 -233
  728. package/scripts/test_simple_sepolia.ts +0 -44
  729. package/scripts/update_env_from_config.ts +0 -83
  730. package/scripts/v2_regression/README.md +0 -161
  731. package/scripts/verify-tx-status.ts +0 -81
  732. package/scripts/verify_onchain_milestone.ts +0 -114
  733. package/scripts/verify_phase1.ts +0 -66
  734. package/scripts/verify_phase2.ts +0 -66
  735. package/sdk_experiment_data.csv +0 -4
  736. package/simple-test-paymaster.sh +0 -2
  737. package/simple-test-superpaymaster.sh +0 -1
  738. package/tests/l1-regression.test.ts +0 -458
  739. package/tests/l4-test-anni-gasless.ts +0 -105
  740. package/tests/l4-test-jason1-gasless.ts +0 -150
  741. package/tests/l4-test-jason2-gasless.ts +0 -174
  742. package/tests/l4-test-pmv4-deposit.ts +0 -111
  743. package/tests/l4-test-pmv4-gasless.ts +0 -166
  744. package/tests/l4-test-pmv4-submit.ts +0 -223
  745. package/tests/regression/README.md +0 -168
  746. package/tests/regression/config.ts +0 -215
  747. package/tests/regression/display-versions.ts +0 -85
  748. package/tests/regression/index.ts +0 -67
  749. package/tests/regression/l1-tests.ts +0 -267
  750. package/tests/regression/l2-tests.ts +0 -171
  751. package/tests/regression/l3-tests.ts +0 -125
  752. package/tests/regression/l4-gasless.ts +0 -897
  753. package/tests/regression/l4-runner.ts +0 -52
  754. package/tests/reports/phase1_contract_verification.md +0 -45
  755. package/tests/utils/contractVerifier.ts +0 -237
  756. package/tests/utils/userOpHelper.ts +0 -194
  757. package/tsconfig.json +0 -41
  758. package/typedoc.json +0 -59
  759. package/vitest.config.ts +0 -16
  760. /package/{packages/core/src/crypto/index.ts → dist/core/src/crypto/index.d.ts} +0 -0
  761. /package/{packages/paymaster/src/V4/index.ts → dist/paymaster/src/V4/index.d.ts} +0 -0
  762. /package/{packages/sdk/examples → examples}/config.json +0 -0
  763. /package/{packages/sdk/examples → examples}/regression_test.ts +0 -0
@@ -1,1677 +0,0 @@
1
- [
2
- {
3
- "type": "constructor",
4
- "inputs": [
5
- {
6
- "name": "_gtoken",
7
- "type": "address",
8
- "internalType": "address"
9
- },
10
- {
11
- "name": "_gtokenStaking",
12
- "type": "address",
13
- "internalType": "address"
14
- },
15
- {
16
- "name": "_mysbt",
17
- "type": "address",
18
- "internalType": "address"
19
- }
20
- ],
21
- "stateMutability": "nonpayable"
22
- },
23
- {
24
- "type": "function",
25
- "name": "GTOKEN_STAKING",
26
- "inputs": [],
27
- "outputs": [
28
- {
29
- "name": "",
30
- "type": "address",
31
- "internalType": "contract IGTokenStakingV3"
32
- }
33
- ],
34
- "stateMutability": "view"
35
- },
36
- {
37
- "type": "function",
38
- "name": "MYSBT",
39
- "inputs": [],
40
- "outputs": [
41
- {
42
- "name": "",
43
- "type": "address",
44
- "internalType": "contract IMySBTV3"
45
- }
46
- ],
47
- "stateMutability": "view"
48
- },
49
- {
50
- "type": "function",
51
- "name": "ROLE_ANODE",
52
- "inputs": [],
53
- "outputs": [
54
- {
55
- "name": "",
56
- "type": "bytes32",
57
- "internalType": "bytes32"
58
- }
59
- ],
60
- "stateMutability": "view"
61
- },
62
- {
63
- "type": "function",
64
- "name": "ROLE_COMMUNITY",
65
- "inputs": [],
66
- "outputs": [
67
- {
68
- "name": "",
69
- "type": "bytes32",
70
- "internalType": "bytes32"
71
- }
72
- ],
73
- "stateMutability": "view"
74
- },
75
- {
76
- "type": "function",
77
- "name": "ROLE_DVT",
78
- "inputs": [],
79
- "outputs": [
80
- {
81
- "name": "",
82
- "type": "bytes32",
83
- "internalType": "bytes32"
84
- }
85
- ],
86
- "stateMutability": "view"
87
- },
88
- {
89
- "type": "function",
90
- "name": "ROLE_ENDUSER",
91
- "inputs": [],
92
- "outputs": [
93
- {
94
- "name": "",
95
- "type": "bytes32",
96
- "internalType": "bytes32"
97
- }
98
- ],
99
- "stateMutability": "view"
100
- },
101
- {
102
- "type": "function",
103
- "name": "ROLE_KMS",
104
- "inputs": [],
105
- "outputs": [
106
- {
107
- "name": "",
108
- "type": "bytes32",
109
- "internalType": "bytes32"
110
- }
111
- ],
112
- "stateMutability": "view"
113
- },
114
- {
115
- "type": "function",
116
- "name": "ROLE_PAYMASTER_AOA",
117
- "inputs": [],
118
- "outputs": [
119
- {
120
- "name": "",
121
- "type": "bytes32",
122
- "internalType": "bytes32"
123
- }
124
- ],
125
- "stateMutability": "view"
126
- },
127
- {
128
- "type": "function",
129
- "name": "ROLE_PAYMASTER_SUPER",
130
- "inputs": [],
131
- "outputs": [
132
- {
133
- "name": "",
134
- "type": "bytes32",
135
- "internalType": "bytes32"
136
- }
137
- ],
138
- "stateMutability": "view"
139
- },
140
- {
141
- "type": "function",
142
- "name": "SUPER_PAYMASTER",
143
- "inputs": [],
144
- "outputs": [
145
- {
146
- "name": "",
147
- "type": "address",
148
- "internalType": "address"
149
- }
150
- ],
151
- "stateMutability": "view"
152
- },
153
- {
154
- "type": "function",
155
- "name": "accountToUser",
156
- "inputs": [
157
- {
158
- "name": "",
159
- "type": "address",
160
- "internalType": "address"
161
- }
162
- ],
163
- "outputs": [
164
- {
165
- "name": "",
166
- "type": "address",
167
- "internalType": "address"
168
- }
169
- ],
170
- "stateMutability": "view"
171
- },
172
- {
173
- "type": "function",
174
- "name": "addLevelThreshold",
175
- "inputs": [
176
- {
177
- "name": "threshold",
178
- "type": "uint256",
179
- "internalType": "uint256"
180
- }
181
- ],
182
- "outputs": [],
183
- "stateMutability": "nonpayable"
184
- },
185
- {
186
- "type": "function",
187
- "name": "adminConfigureRole",
188
- "inputs": [
189
- {
190
- "name": "roleId",
191
- "type": "bytes32",
192
- "internalType": "bytes32"
193
- },
194
- {
195
- "name": "minStake",
196
- "type": "uint256",
197
- "internalType": "uint256"
198
- },
199
- {
200
- "name": "entryBurn",
201
- "type": "uint256",
202
- "internalType": "uint256"
203
- },
204
- {
205
- "name": "exitFeePercent",
206
- "type": "uint256",
207
- "internalType": "uint256"
208
- },
209
- {
210
- "name": "minExitFee",
211
- "type": "uint256",
212
- "internalType": "uint256"
213
- }
214
- ],
215
- "outputs": [],
216
- "stateMutability": "nonpayable"
217
- },
218
- {
219
- "type": "function",
220
- "name": "batchUpdateGlobalReputation",
221
- "inputs": [
222
- {
223
- "name": "users",
224
- "type": "address[]",
225
- "internalType": "address[]"
226
- },
227
- {
228
- "name": "newScores",
229
- "type": "uint256[]",
230
- "internalType": "uint256[]"
231
- },
232
- {
233
- "name": "epoch",
234
- "type": "uint256",
235
- "internalType": "uint256"
236
- },
237
- {
238
- "name": "proof",
239
- "type": "bytes",
240
- "internalType": "bytes"
241
- }
242
- ],
243
- "outputs": [],
244
- "stateMutability": "nonpayable"
245
- },
246
- {
247
- "type": "function",
248
- "name": "blsAggregator",
249
- "inputs": [],
250
- "outputs": [
251
- {
252
- "name": "",
253
- "type": "address",
254
- "internalType": "address"
255
- }
256
- ],
257
- "stateMutability": "view"
258
- },
259
- {
260
- "type": "function",
261
- "name": "blsValidator",
262
- "inputs": [],
263
- "outputs": [
264
- {
265
- "name": "",
266
- "type": "address",
267
- "internalType": "contract IBLSValidator"
268
- }
269
- ],
270
- "stateMutability": "view"
271
- },
272
- {
273
- "type": "function",
274
- "name": "calculateExitFee",
275
- "inputs": [
276
- {
277
- "name": "roleId",
278
- "type": "bytes32",
279
- "internalType": "bytes32"
280
- },
281
- {
282
- "name": "amount",
283
- "type": "uint256",
284
- "internalType": "uint256"
285
- }
286
- ],
287
- "outputs": [
288
- {
289
- "name": "",
290
- "type": "uint256",
291
- "internalType": "uint256"
292
- }
293
- ],
294
- "stateMutability": "view"
295
- },
296
- {
297
- "type": "function",
298
- "name": "communityByENSV3",
299
- "inputs": [
300
- {
301
- "name": "",
302
- "type": "string",
303
- "internalType": "string"
304
- }
305
- ],
306
- "outputs": [
307
- {
308
- "name": "",
309
- "type": "address",
310
- "internalType": "address"
311
- }
312
- ],
313
- "stateMutability": "view"
314
- },
315
- {
316
- "type": "function",
317
- "name": "communityByNameV3",
318
- "inputs": [
319
- {
320
- "name": "",
321
- "type": "string",
322
- "internalType": "string"
323
- }
324
- ],
325
- "outputs": [
326
- {
327
- "name": "",
328
- "type": "address",
329
- "internalType": "address"
330
- }
331
- ],
332
- "stateMutability": "view"
333
- },
334
- {
335
- "type": "function",
336
- "name": "configureRole",
337
- "inputs": [
338
- {
339
- "name": "roleId",
340
- "type": "bytes32",
341
- "internalType": "bytes32"
342
- },
343
- {
344
- "name": "config",
345
- "type": "tuple",
346
- "internalType": "struct IRegistryV3.RoleConfig",
347
- "components": [
348
- {
349
- "name": "minStake",
350
- "type": "uint256",
351
- "internalType": "uint256"
352
- },
353
- {
354
- "name": "entryBurn",
355
- "type": "uint256",
356
- "internalType": "uint256"
357
- },
358
- {
359
- "name": "slashThreshold",
360
- "type": "uint256",
361
- "internalType": "uint256"
362
- },
363
- {
364
- "name": "slashBase",
365
- "type": "uint256",
366
- "internalType": "uint256"
367
- },
368
- {
369
- "name": "slashIncrement",
370
- "type": "uint256",
371
- "internalType": "uint256"
372
- },
373
- {
374
- "name": "slashMax",
375
- "type": "uint256",
376
- "internalType": "uint256"
377
- },
378
- {
379
- "name": "exitFeePercent",
380
- "type": "uint256",
381
- "internalType": "uint256"
382
- },
383
- {
384
- "name": "minExitFee",
385
- "type": "uint256",
386
- "internalType": "uint256"
387
- },
388
- {
389
- "name": "isActive",
390
- "type": "bool",
391
- "internalType": "bool"
392
- },
393
- {
394
- "name": "description",
395
- "type": "string",
396
- "internalType": "string"
397
- }
398
- ]
399
- }
400
- ],
401
- "outputs": [],
402
- "stateMutability": "nonpayable"
403
- },
404
- {
405
- "type": "function",
406
- "name": "createNewRole",
407
- "inputs": [
408
- {
409
- "name": "roleId",
410
- "type": "bytes32",
411
- "internalType": "bytes32"
412
- },
413
- {
414
- "name": "config",
415
- "type": "tuple",
416
- "internalType": "struct IRegistryV3.RoleConfig",
417
- "components": [
418
- {
419
- "name": "minStake",
420
- "type": "uint256",
421
- "internalType": "uint256"
422
- },
423
- {
424
- "name": "entryBurn",
425
- "type": "uint256",
426
- "internalType": "uint256"
427
- },
428
- {
429
- "name": "slashThreshold",
430
- "type": "uint256",
431
- "internalType": "uint256"
432
- },
433
- {
434
- "name": "slashBase",
435
- "type": "uint256",
436
- "internalType": "uint256"
437
- },
438
- {
439
- "name": "slashIncrement",
440
- "type": "uint256",
441
- "internalType": "uint256"
442
- },
443
- {
444
- "name": "slashMax",
445
- "type": "uint256",
446
- "internalType": "uint256"
447
- },
448
- {
449
- "name": "exitFeePercent",
450
- "type": "uint256",
451
- "internalType": "uint256"
452
- },
453
- {
454
- "name": "minExitFee",
455
- "type": "uint256",
456
- "internalType": "uint256"
457
- },
458
- {
459
- "name": "isActive",
460
- "type": "bool",
461
- "internalType": "bool"
462
- },
463
- {
464
- "name": "description",
465
- "type": "string",
466
- "internalType": "string"
467
- }
468
- ]
469
- },
470
- {
471
- "name": "roleOwner",
472
- "type": "address",
473
- "internalType": "address"
474
- }
475
- ],
476
- "outputs": [],
477
- "stateMutability": "nonpayable"
478
- },
479
- {
480
- "type": "function",
481
- "name": "creditTierConfig",
482
- "inputs": [
483
- {
484
- "name": "",
485
- "type": "uint256",
486
- "internalType": "uint256"
487
- }
488
- ],
489
- "outputs": [
490
- {
491
- "name": "",
492
- "type": "uint256",
493
- "internalType": "uint256"
494
- }
495
- ],
496
- "stateMutability": "view"
497
- },
498
- {
499
- "type": "function",
500
- "name": "exitRole",
501
- "inputs": [
502
- {
503
- "name": "roleId",
504
- "type": "bytes32",
505
- "internalType": "bytes32"
506
- }
507
- ],
508
- "outputs": [],
509
- "stateMutability": "nonpayable"
510
- },
511
- {
512
- "type": "function",
513
- "name": "getCreditLimit",
514
- "inputs": [
515
- {
516
- "name": "user",
517
- "type": "address",
518
- "internalType": "address"
519
- }
520
- ],
521
- "outputs": [
522
- {
523
- "name": "",
524
- "type": "uint256",
525
- "internalType": "uint256"
526
- }
527
- ],
528
- "stateMutability": "view"
529
- },
530
- {
531
- "type": "function",
532
- "name": "getRoleConfig",
533
- "inputs": [
534
- {
535
- "name": "roleId",
536
- "type": "bytes32",
537
- "internalType": "bytes32"
538
- }
539
- ],
540
- "outputs": [
541
- {
542
- "name": "",
543
- "type": "tuple",
544
- "internalType": "struct IRegistryV3.RoleConfig",
545
- "components": [
546
- {
547
- "name": "minStake",
548
- "type": "uint256",
549
- "internalType": "uint256"
550
- },
551
- {
552
- "name": "entryBurn",
553
- "type": "uint256",
554
- "internalType": "uint256"
555
- },
556
- {
557
- "name": "slashThreshold",
558
- "type": "uint256",
559
- "internalType": "uint256"
560
- },
561
- {
562
- "name": "slashBase",
563
- "type": "uint256",
564
- "internalType": "uint256"
565
- },
566
- {
567
- "name": "slashIncrement",
568
- "type": "uint256",
569
- "internalType": "uint256"
570
- },
571
- {
572
- "name": "slashMax",
573
- "type": "uint256",
574
- "internalType": "uint256"
575
- },
576
- {
577
- "name": "exitFeePercent",
578
- "type": "uint256",
579
- "internalType": "uint256"
580
- },
581
- {
582
- "name": "minExitFee",
583
- "type": "uint256",
584
- "internalType": "uint256"
585
- },
586
- {
587
- "name": "isActive",
588
- "type": "bool",
589
- "internalType": "bool"
590
- },
591
- {
592
- "name": "description",
593
- "type": "string",
594
- "internalType": "string"
595
- }
596
- ]
597
- }
598
- ],
599
- "stateMutability": "view"
600
- },
601
- {
602
- "type": "function",
603
- "name": "getRoleMembers",
604
- "inputs": [
605
- {
606
- "name": "roleId",
607
- "type": "bytes32",
608
- "internalType": "bytes32"
609
- }
610
- ],
611
- "outputs": [
612
- {
613
- "name": "",
614
- "type": "address[]",
615
- "internalType": "address[]"
616
- }
617
- ],
618
- "stateMutability": "view"
619
- },
620
- {
621
- "type": "function",
622
- "name": "getRoleUserCount",
623
- "inputs": [
624
- {
625
- "name": "roleId",
626
- "type": "bytes32",
627
- "internalType": "bytes32"
628
- }
629
- ],
630
- "outputs": [
631
- {
632
- "name": "",
633
- "type": "uint256",
634
- "internalType": "uint256"
635
- }
636
- ],
637
- "stateMutability": "view"
638
- },
639
- {
640
- "type": "function",
641
- "name": "getUserRoles",
642
- "inputs": [
643
- {
644
- "name": "user",
645
- "type": "address",
646
- "internalType": "address"
647
- }
648
- ],
649
- "outputs": [
650
- {
651
- "name": "",
652
- "type": "bytes32[]",
653
- "internalType": "bytes32[]"
654
- }
655
- ],
656
- "stateMutability": "view"
657
- },
658
- {
659
- "type": "function",
660
- "name": "globalReputation",
661
- "inputs": [
662
- {
663
- "name": "",
664
- "type": "address",
665
- "internalType": "address"
666
- }
667
- ],
668
- "outputs": [
669
- {
670
- "name": "",
671
- "type": "uint256",
672
- "internalType": "uint256"
673
- }
674
- ],
675
- "stateMutability": "view"
676
- },
677
- {
678
- "type": "function",
679
- "name": "hasRole",
680
- "inputs": [
681
- {
682
- "name": "",
683
- "type": "bytes32",
684
- "internalType": "bytes32"
685
- },
686
- {
687
- "name": "",
688
- "type": "address",
689
- "internalType": "address"
690
- }
691
- ],
692
- "outputs": [
693
- {
694
- "name": "",
695
- "type": "bool",
696
- "internalType": "bool"
697
- }
698
- ],
699
- "stateMutability": "view"
700
- },
701
- {
702
- "type": "function",
703
- "name": "isReputationSource",
704
- "inputs": [
705
- {
706
- "name": "",
707
- "type": "address",
708
- "internalType": "address"
709
- }
710
- ],
711
- "outputs": [
712
- {
713
- "name": "",
714
- "type": "bool",
715
- "internalType": "bool"
716
- }
717
- ],
718
- "stateMutability": "view"
719
- },
720
- {
721
- "type": "function",
722
- "name": "lastReputationEpoch",
723
- "inputs": [
724
- {
725
- "name": "",
726
- "type": "address",
727
- "internalType": "address"
728
- }
729
- ],
730
- "outputs": [
731
- {
732
- "name": "",
733
- "type": "uint256",
734
- "internalType": "uint256"
735
- }
736
- ],
737
- "stateMutability": "view"
738
- },
739
- {
740
- "type": "function",
741
- "name": "levelThresholds",
742
- "inputs": [
743
- {
744
- "name": "",
745
- "type": "uint256",
746
- "internalType": "uint256"
747
- }
748
- ],
749
- "outputs": [
750
- {
751
- "name": "",
752
- "type": "uint256",
753
- "internalType": "uint256"
754
- }
755
- ],
756
- "stateMutability": "view"
757
- },
758
- {
759
- "type": "function",
760
- "name": "owner",
761
- "inputs": [],
762
- "outputs": [
763
- {
764
- "name": "",
765
- "type": "address",
766
- "internalType": "address"
767
- }
768
- ],
769
- "stateMutability": "view"
770
- },
771
- {
772
- "type": "function",
773
- "name": "proposedRoleNames",
774
- "inputs": [
775
- {
776
- "name": "",
777
- "type": "bytes32",
778
- "internalType": "bytes32"
779
- }
780
- ],
781
- "outputs": [
782
- {
783
- "name": "",
784
- "type": "string",
785
- "internalType": "string"
786
- }
787
- ],
788
- "stateMutability": "view"
789
- },
790
- {
791
- "type": "function",
792
- "name": "registerRole",
793
- "inputs": [
794
- {
795
- "name": "roleId",
796
- "type": "bytes32",
797
- "internalType": "bytes32"
798
- },
799
- {
800
- "name": "user",
801
- "type": "address",
802
- "internalType": "address"
803
- },
804
- {
805
- "name": "roleData",
806
- "type": "bytes",
807
- "internalType": "bytes"
808
- }
809
- ],
810
- "outputs": [],
811
- "stateMutability": "nonpayable"
812
- },
813
- {
814
- "type": "function",
815
- "name": "registerRoleSelf",
816
- "inputs": [
817
- {
818
- "name": "roleId",
819
- "type": "bytes32",
820
- "internalType": "bytes32"
821
- },
822
- {
823
- "name": "roleData",
824
- "type": "bytes",
825
- "internalType": "bytes"
826
- }
827
- ],
828
- "outputs": [
829
- {
830
- "name": "sbtTokenId",
831
- "type": "uint256",
832
- "internalType": "uint256"
833
- }
834
- ],
835
- "stateMutability": "nonpayable"
836
- },
837
- {
838
- "type": "function",
839
- "name": "renounceOwnership",
840
- "inputs": [],
841
- "outputs": [],
842
- "stateMutability": "nonpayable"
843
- },
844
- {
845
- "type": "function",
846
- "name": "roleConfigs",
847
- "inputs": [
848
- {
849
- "name": "",
850
- "type": "bytes32",
851
- "internalType": "bytes32"
852
- }
853
- ],
854
- "outputs": [
855
- {
856
- "name": "minStake",
857
- "type": "uint256",
858
- "internalType": "uint256"
859
- },
860
- {
861
- "name": "entryBurn",
862
- "type": "uint256",
863
- "internalType": "uint256"
864
- },
865
- {
866
- "name": "slashThreshold",
867
- "type": "uint256",
868
- "internalType": "uint256"
869
- },
870
- {
871
- "name": "slashBase",
872
- "type": "uint256",
873
- "internalType": "uint256"
874
- },
875
- {
876
- "name": "slashIncrement",
877
- "type": "uint256",
878
- "internalType": "uint256"
879
- },
880
- {
881
- "name": "slashMax",
882
- "type": "uint256",
883
- "internalType": "uint256"
884
- },
885
- {
886
- "name": "exitFeePercent",
887
- "type": "uint256",
888
- "internalType": "uint256"
889
- },
890
- {
891
- "name": "minExitFee",
892
- "type": "uint256",
893
- "internalType": "uint256"
894
- },
895
- {
896
- "name": "isActive",
897
- "type": "bool",
898
- "internalType": "bool"
899
- },
900
- {
901
- "name": "description",
902
- "type": "string",
903
- "internalType": "string"
904
- }
905
- ],
906
- "stateMutability": "view"
907
- },
908
- {
909
- "type": "function",
910
- "name": "roleLockDurations",
911
- "inputs": [
912
- {
913
- "name": "",
914
- "type": "bytes32",
915
- "internalType": "bytes32"
916
- }
917
- ],
918
- "outputs": [
919
- {
920
- "name": "",
921
- "type": "uint256",
922
- "internalType": "uint256"
923
- }
924
- ],
925
- "stateMutability": "view"
926
- },
927
- {
928
- "type": "function",
929
- "name": "roleMemberIndex",
930
- "inputs": [
931
- {
932
- "name": "",
933
- "type": "bytes32",
934
- "internalType": "bytes32"
935
- },
936
- {
937
- "name": "",
938
- "type": "address",
939
- "internalType": "address"
940
- }
941
- ],
942
- "outputs": [
943
- {
944
- "name": "",
945
- "type": "uint256",
946
- "internalType": "uint256"
947
- }
948
- ],
949
- "stateMutability": "view"
950
- },
951
- {
952
- "type": "function",
953
- "name": "roleMembers",
954
- "inputs": [
955
- {
956
- "name": "",
957
- "type": "bytes32",
958
- "internalType": "bytes32"
959
- },
960
- {
961
- "name": "",
962
- "type": "uint256",
963
- "internalType": "uint256"
964
- }
965
- ],
966
- "outputs": [
967
- {
968
- "name": "",
969
- "type": "address",
970
- "internalType": "address"
971
- }
972
- ],
973
- "stateMutability": "view"
974
- },
975
- {
976
- "type": "function",
977
- "name": "roleMetadata",
978
- "inputs": [
979
- {
980
- "name": "",
981
- "type": "bytes32",
982
- "internalType": "bytes32"
983
- },
984
- {
985
- "name": "",
986
- "type": "address",
987
- "internalType": "address"
988
- }
989
- ],
990
- "outputs": [
991
- {
992
- "name": "",
993
- "type": "bytes",
994
- "internalType": "bytes"
995
- }
996
- ],
997
- "stateMutability": "view"
998
- },
999
- {
1000
- "type": "function",
1001
- "name": "roleOwners",
1002
- "inputs": [
1003
- {
1004
- "name": "",
1005
- "type": "bytes32",
1006
- "internalType": "bytes32"
1007
- }
1008
- ],
1009
- "outputs": [
1010
- {
1011
- "name": "",
1012
- "type": "address",
1013
- "internalType": "address"
1014
- }
1015
- ],
1016
- "stateMutability": "view"
1017
- },
1018
- {
1019
- "type": "function",
1020
- "name": "roleSBTTokenIds",
1021
- "inputs": [
1022
- {
1023
- "name": "",
1024
- "type": "bytes32",
1025
- "internalType": "bytes32"
1026
- },
1027
- {
1028
- "name": "",
1029
- "type": "address",
1030
- "internalType": "address"
1031
- }
1032
- ],
1033
- "outputs": [
1034
- {
1035
- "name": "",
1036
- "type": "uint256",
1037
- "internalType": "uint256"
1038
- }
1039
- ],
1040
- "stateMutability": "view"
1041
- },
1042
- {
1043
- "type": "function",
1044
- "name": "roleStakes",
1045
- "inputs": [
1046
- {
1047
- "name": "",
1048
- "type": "bytes32",
1049
- "internalType": "bytes32"
1050
- },
1051
- {
1052
- "name": "",
1053
- "type": "address",
1054
- "internalType": "address"
1055
- }
1056
- ],
1057
- "outputs": [
1058
- {
1059
- "name": "",
1060
- "type": "uint256",
1061
- "internalType": "uint256"
1062
- }
1063
- ],
1064
- "stateMutability": "view"
1065
- },
1066
- {
1067
- "type": "function",
1068
- "name": "safeMintForRole",
1069
- "inputs": [
1070
- {
1071
- "name": "roleId",
1072
- "type": "bytes32",
1073
- "internalType": "bytes32"
1074
- },
1075
- {
1076
- "name": "user",
1077
- "type": "address",
1078
- "internalType": "address"
1079
- },
1080
- {
1081
- "name": "data",
1082
- "type": "bytes",
1083
- "internalType": "bytes"
1084
- }
1085
- ],
1086
- "outputs": [
1087
- {
1088
- "name": "tokenId",
1089
- "type": "uint256",
1090
- "internalType": "uint256"
1091
- }
1092
- ],
1093
- "stateMutability": "nonpayable"
1094
- },
1095
- {
1096
- "type": "function",
1097
- "name": "setBLSAggregator",
1098
- "inputs": [
1099
- {
1100
- "name": "_aggregator",
1101
- "type": "address",
1102
- "internalType": "address"
1103
- }
1104
- ],
1105
- "outputs": [],
1106
- "stateMutability": "nonpayable"
1107
- },
1108
- {
1109
- "type": "function",
1110
- "name": "setBLSValidator",
1111
- "inputs": [
1112
- {
1113
- "name": "_validator",
1114
- "type": "address",
1115
- "internalType": "address"
1116
- }
1117
- ],
1118
- "outputs": [],
1119
- "stateMutability": "nonpayable"
1120
- },
1121
- {
1122
- "type": "function",
1123
- "name": "setCreditTier",
1124
- "inputs": [
1125
- {
1126
- "name": "level",
1127
- "type": "uint256",
1128
- "internalType": "uint256"
1129
- },
1130
- {
1131
- "name": "limit",
1132
- "type": "uint256",
1133
- "internalType": "uint256"
1134
- }
1135
- ],
1136
- "outputs": [],
1137
- "stateMutability": "nonpayable"
1138
- },
1139
- {
1140
- "type": "function",
1141
- "name": "setLevelThreshold",
1142
- "inputs": [
1143
- {
1144
- "name": "index",
1145
- "type": "uint256",
1146
- "internalType": "uint256"
1147
- },
1148
- {
1149
- "name": "threshold",
1150
- "type": "uint256",
1151
- "internalType": "uint256"
1152
- }
1153
- ],
1154
- "outputs": [],
1155
- "stateMutability": "nonpayable"
1156
- },
1157
- {
1158
- "type": "function",
1159
- "name": "setMySBT",
1160
- "inputs": [
1161
- {
1162
- "name": "_mysbt",
1163
- "type": "address",
1164
- "internalType": "address"
1165
- }
1166
- ],
1167
- "outputs": [],
1168
- "stateMutability": "nonpayable"
1169
- },
1170
- {
1171
- "type": "function",
1172
- "name": "setReputationSource",
1173
- "inputs": [
1174
- {
1175
- "name": "source",
1176
- "type": "address",
1177
- "internalType": "address"
1178
- },
1179
- {
1180
- "name": "active",
1181
- "type": "bool",
1182
- "internalType": "bool"
1183
- }
1184
- ],
1185
- "outputs": [],
1186
- "stateMutability": "nonpayable"
1187
- },
1188
- {
1189
- "type": "function",
1190
- "name": "setRoleLockDuration",
1191
- "inputs": [
1192
- {
1193
- "name": "roleId",
1194
- "type": "bytes32",
1195
- "internalType": "bytes32"
1196
- },
1197
- {
1198
- "name": "duration",
1199
- "type": "uint256",
1200
- "internalType": "uint256"
1201
- }
1202
- ],
1203
- "outputs": [],
1204
- "stateMutability": "nonpayable"
1205
- },
1206
- {
1207
- "type": "function",
1208
- "name": "setRoleOwner",
1209
- "inputs": [
1210
- {
1211
- "name": "roleId",
1212
- "type": "bytes32",
1213
- "internalType": "bytes32"
1214
- },
1215
- {
1216
- "name": "newOwner",
1217
- "type": "address",
1218
- "internalType": "address"
1219
- }
1220
- ],
1221
- "outputs": [],
1222
- "stateMutability": "nonpayable"
1223
- },
1224
- {
1225
- "type": "function",
1226
- "name": "setStaking",
1227
- "inputs": [
1228
- {
1229
- "name": "_staking",
1230
- "type": "address",
1231
- "internalType": "address"
1232
- }
1233
- ],
1234
- "outputs": [],
1235
- "stateMutability": "nonpayable"
1236
- },
1237
- {
1238
- "type": "function",
1239
- "name": "setSuperPaymaster",
1240
- "inputs": [
1241
- {
1242
- "name": "_sp",
1243
- "type": "address",
1244
- "internalType": "address"
1245
- }
1246
- ],
1247
- "outputs": [],
1248
- "stateMutability": "nonpayable"
1249
- },
1250
- {
1251
- "type": "function",
1252
- "name": "transferOwnership",
1253
- "inputs": [
1254
- {
1255
- "name": "newOwner",
1256
- "type": "address",
1257
- "internalType": "address"
1258
- }
1259
- ],
1260
- "outputs": [],
1261
- "stateMutability": "nonpayable"
1262
- },
1263
- {
1264
- "type": "function",
1265
- "name": "updateOperatorBlacklist",
1266
- "inputs": [
1267
- {
1268
- "name": "operator",
1269
- "type": "address",
1270
- "internalType": "address"
1271
- },
1272
- {
1273
- "name": "users",
1274
- "type": "address[]",
1275
- "internalType": "address[]"
1276
- },
1277
- {
1278
- "name": "statuses",
1279
- "type": "bool[]",
1280
- "internalType": "bool[]"
1281
- },
1282
- {
1283
- "name": "proof",
1284
- "type": "bytes",
1285
- "internalType": "bytes"
1286
- }
1287
- ],
1288
- "outputs": [],
1289
- "stateMutability": "nonpayable"
1290
- },
1291
- {
1292
- "type": "function",
1293
- "name": "version",
1294
- "inputs": [],
1295
- "outputs": [
1296
- {
1297
- "name": "",
1298
- "type": "string",
1299
- "internalType": "string"
1300
- }
1301
- ],
1302
- "stateMutability": "pure"
1303
- },
1304
- {
1305
- "type": "event",
1306
- "name": "BurnExecuted",
1307
- "inputs": [
1308
- {
1309
- "name": "user",
1310
- "type": "address",
1311
- "indexed": true,
1312
- "internalType": "address"
1313
- },
1314
- {
1315
- "name": "roleId",
1316
- "type": "bytes32",
1317
- "indexed": true,
1318
- "internalType": "bytes32"
1319
- },
1320
- {
1321
- "name": "amount",
1322
- "type": "uint256",
1323
- "indexed": false,
1324
- "internalType": "uint256"
1325
- },
1326
- {
1327
- "name": "reason",
1328
- "type": "string",
1329
- "indexed": false,
1330
- "internalType": "string"
1331
- }
1332
- ],
1333
- "anonymous": false
1334
- },
1335
- {
1336
- "type": "event",
1337
- "name": "CreditTierUpdated",
1338
- "inputs": [
1339
- {
1340
- "name": "level",
1341
- "type": "uint256",
1342
- "indexed": false,
1343
- "internalType": "uint256"
1344
- },
1345
- {
1346
- "name": "creditLimit",
1347
- "type": "uint256",
1348
- "indexed": false,
1349
- "internalType": "uint256"
1350
- }
1351
- ],
1352
- "anonymous": false
1353
- },
1354
- {
1355
- "type": "event",
1356
- "name": "GlobalReputationUpdated",
1357
- "inputs": [
1358
- {
1359
- "name": "user",
1360
- "type": "address",
1361
- "indexed": true,
1362
- "internalType": "address"
1363
- },
1364
- {
1365
- "name": "newScore",
1366
- "type": "uint256",
1367
- "indexed": false,
1368
- "internalType": "uint256"
1369
- },
1370
- {
1371
- "name": "epoch",
1372
- "type": "uint256",
1373
- "indexed": false,
1374
- "internalType": "uint256"
1375
- }
1376
- ],
1377
- "anonymous": false
1378
- },
1379
- {
1380
- "type": "event",
1381
- "name": "OwnershipTransferred",
1382
- "inputs": [
1383
- {
1384
- "name": "previousOwner",
1385
- "type": "address",
1386
- "indexed": true,
1387
- "internalType": "address"
1388
- },
1389
- {
1390
- "name": "newOwner",
1391
- "type": "address",
1392
- "indexed": true,
1393
- "internalType": "address"
1394
- }
1395
- ],
1396
- "anonymous": false
1397
- },
1398
- {
1399
- "type": "event",
1400
- "name": "ReputationSourceUpdated",
1401
- "inputs": [
1402
- {
1403
- "name": "source",
1404
- "type": "address",
1405
- "indexed": true,
1406
- "internalType": "address"
1407
- },
1408
- {
1409
- "name": "isActive",
1410
- "type": "bool",
1411
- "indexed": false,
1412
- "internalType": "bool"
1413
- }
1414
- ],
1415
- "anonymous": false
1416
- },
1417
- {
1418
- "type": "event",
1419
- "name": "RoleConfigured",
1420
- "inputs": [
1421
- {
1422
- "name": "roleId",
1423
- "type": "bytes32",
1424
- "indexed": true,
1425
- "internalType": "bytes32"
1426
- },
1427
- {
1428
- "name": "config",
1429
- "type": "tuple",
1430
- "indexed": false,
1431
- "internalType": "struct IRegistryV3.RoleConfig",
1432
- "components": [
1433
- {
1434
- "name": "minStake",
1435
- "type": "uint256",
1436
- "internalType": "uint256"
1437
- },
1438
- {
1439
- "name": "entryBurn",
1440
- "type": "uint256",
1441
- "internalType": "uint256"
1442
- },
1443
- {
1444
- "name": "slashThreshold",
1445
- "type": "uint256",
1446
- "internalType": "uint256"
1447
- },
1448
- {
1449
- "name": "slashBase",
1450
- "type": "uint256",
1451
- "internalType": "uint256"
1452
- },
1453
- {
1454
- "name": "slashIncrement",
1455
- "type": "uint256",
1456
- "internalType": "uint256"
1457
- },
1458
- {
1459
- "name": "slashMax",
1460
- "type": "uint256",
1461
- "internalType": "uint256"
1462
- },
1463
- {
1464
- "name": "exitFeePercent",
1465
- "type": "uint256",
1466
- "internalType": "uint256"
1467
- },
1468
- {
1469
- "name": "minExitFee",
1470
- "type": "uint256",
1471
- "internalType": "uint256"
1472
- },
1473
- {
1474
- "name": "isActive",
1475
- "type": "bool",
1476
- "internalType": "bool"
1477
- },
1478
- {
1479
- "name": "description",
1480
- "type": "string",
1481
- "internalType": "string"
1482
- }
1483
- ]
1484
- },
1485
- {
1486
- "name": "timestamp",
1487
- "type": "uint256",
1488
- "indexed": false,
1489
- "internalType": "uint256"
1490
- }
1491
- ],
1492
- "anonymous": false
1493
- },
1494
- {
1495
- "type": "event",
1496
- "name": "RoleExited",
1497
- "inputs": [
1498
- {
1499
- "name": "roleId",
1500
- "type": "bytes32",
1501
- "indexed": true,
1502
- "internalType": "bytes32"
1503
- },
1504
- {
1505
- "name": "user",
1506
- "type": "address",
1507
- "indexed": true,
1508
- "internalType": "address"
1509
- },
1510
- {
1511
- "name": "exitFee",
1512
- "type": "uint256",
1513
- "indexed": false,
1514
- "internalType": "uint256"
1515
- },
1516
- {
1517
- "name": "timestamp",
1518
- "type": "uint256",
1519
- "indexed": false,
1520
- "internalType": "uint256"
1521
- }
1522
- ],
1523
- "anonymous": false
1524
- },
1525
- {
1526
- "type": "event",
1527
- "name": "RoleLockDurationUpdated",
1528
- "inputs": [
1529
- {
1530
- "name": "roleId",
1531
- "type": "bytes32",
1532
- "indexed": true,
1533
- "internalType": "bytes32"
1534
- },
1535
- {
1536
- "name": "duration",
1537
- "type": "uint256",
1538
- "indexed": false,
1539
- "internalType": "uint256"
1540
- }
1541
- ],
1542
- "anonymous": false
1543
- },
1544
- {
1545
- "type": "event",
1546
- "name": "RoleRegistered",
1547
- "inputs": [
1548
- {
1549
- "name": "roleId",
1550
- "type": "bytes32",
1551
- "indexed": true,
1552
- "internalType": "bytes32"
1553
- },
1554
- {
1555
- "name": "user",
1556
- "type": "address",
1557
- "indexed": true,
1558
- "internalType": "address"
1559
- },
1560
- {
1561
- "name": "burnAmount",
1562
- "type": "uint256",
1563
- "indexed": false,
1564
- "internalType": "uint256"
1565
- },
1566
- {
1567
- "name": "timestamp",
1568
- "type": "uint256",
1569
- "indexed": false,
1570
- "internalType": "uint256"
1571
- }
1572
- ],
1573
- "anonymous": false
1574
- },
1575
- {
1576
- "type": "error",
1577
- "name": "InsufficientStake",
1578
- "inputs": [
1579
- {
1580
- "name": "provided",
1581
- "type": "uint256",
1582
- "internalType": "uint256"
1583
- },
1584
- {
1585
- "name": "required",
1586
- "type": "uint256",
1587
- "internalType": "uint256"
1588
- }
1589
- ]
1590
- },
1591
- {
1592
- "type": "error",
1593
- "name": "InvalidParameter",
1594
- "inputs": [
1595
- {
1596
- "name": "message",
1597
- "type": "string",
1598
- "internalType": "string"
1599
- }
1600
- ]
1601
- },
1602
- {
1603
- "type": "error",
1604
- "name": "OwnableInvalidOwner",
1605
- "inputs": [
1606
- {
1607
- "name": "owner",
1608
- "type": "address",
1609
- "internalType": "address"
1610
- }
1611
- ]
1612
- },
1613
- {
1614
- "type": "error",
1615
- "name": "OwnableUnauthorizedAccount",
1616
- "inputs": [
1617
- {
1618
- "name": "account",
1619
- "type": "address",
1620
- "internalType": "address"
1621
- }
1622
- ]
1623
- },
1624
- {
1625
- "type": "error",
1626
- "name": "ReentrancyGuardReentrantCall",
1627
- "inputs": []
1628
- },
1629
- {
1630
- "type": "error",
1631
- "name": "RoleAlreadyGranted",
1632
- "inputs": [
1633
- {
1634
- "name": "roleId",
1635
- "type": "bytes32",
1636
- "internalType": "bytes32"
1637
- },
1638
- {
1639
- "name": "user",
1640
- "type": "address",
1641
- "internalType": "address"
1642
- }
1643
- ]
1644
- },
1645
- {
1646
- "type": "error",
1647
- "name": "RoleNotConfigured",
1648
- "inputs": [
1649
- {
1650
- "name": "roleId",
1651
- "type": "bytes32",
1652
- "internalType": "bytes32"
1653
- },
1654
- {
1655
- "name": "isActive",
1656
- "type": "bool",
1657
- "internalType": "bool"
1658
- }
1659
- ]
1660
- },
1661
- {
1662
- "type": "error",
1663
- "name": "RoleNotGranted",
1664
- "inputs": [
1665
- {
1666
- "name": "roleId",
1667
- "type": "bytes32",
1668
- "internalType": "bytes32"
1669
- },
1670
- {
1671
- "name": "user",
1672
- "type": "address",
1673
- "internalType": "address"
1674
- }
1675
- ]
1676
- }
1677
- ]