@aastar/sdk 0.14.0 → 0.16.6

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