@aastar/sdk 0.24.1 → 0.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (132) hide show
  1. package/dist/UserClient-5PQP6APK.js +6 -0
  2. package/dist/{UserClient-KYDCMAIU.js.map → UserClient-5PQP6APK.js.map} +1 -1
  3. package/dist/UserClient-CD7R3335.cjs +15 -0
  4. package/dist/{UserClient-S6LS3CB6.cjs.map → UserClient-CD7R3335.cjs.map} +1 -1
  5. package/dist/account.cjs +8 -8
  6. package/dist/account.js +3 -3
  7. package/dist/addresses-D12T3kLs.d.cts +210 -0
  8. package/dist/addresses-D12T3kLs.d.ts +210 -0
  9. package/dist/admin.cjs +4 -4
  10. package/dist/admin.js +3 -3
  11. package/dist/airaccount.cjs +111 -103
  12. package/dist/airaccount.d.cts +1 -1
  13. package/dist/airaccount.d.ts +1 -1
  14. package/dist/airaccount.js +3 -3
  15. package/dist/channel.cjs +7 -7
  16. package/dist/channel.js +3 -3
  17. package/dist/{chunk-72JZKARR.cjs → chunk-2RHBOBL7.cjs} +6 -6
  18. package/dist/{chunk-72JZKARR.cjs.map → chunk-2RHBOBL7.cjs.map} +1 -1
  19. package/dist/{chunk-BYVG7MO7.js → chunk-6DZCDV4Q.js} +2137 -13
  20. package/dist/chunk-6DZCDV4Q.js.map +1 -0
  21. package/dist/{chunk-VEAYV52I.cjs → chunk-6IZASQSB.cjs} +236 -109
  22. package/dist/chunk-6IZASQSB.cjs.map +1 -0
  23. package/dist/{chunk-NVYVTCHJ.cjs → chunk-7HTUDNH3.cjs} +11 -11
  24. package/dist/{chunk-NVYVTCHJ.cjs.map → chunk-7HTUDNH3.cjs.map} +1 -1
  25. package/dist/{chunk-PNBK2CLK.js → chunk-7JVL5CU3.js} +3 -3
  26. package/dist/{chunk-PNBK2CLK.js.map → chunk-7JVL5CU3.js.map} +1 -1
  27. package/dist/{chunk-654GQ7G7.js → chunk-A4FO6FKN.js} +3 -3
  28. package/dist/{chunk-654GQ7G7.js.map → chunk-A4FO6FKN.js.map} +1 -1
  29. package/dist/{chunk-A4ICWCHR.cjs → chunk-CI4UJW5Y.cjs} +5 -5
  30. package/dist/{chunk-A4ICWCHR.cjs.map → chunk-CI4UJW5Y.cjs.map} +1 -1
  31. package/dist/{chunk-RZ2M2RVP.js → chunk-COTHBCR2.js} +3 -3
  32. package/dist/{chunk-RZ2M2RVP.js.map → chunk-COTHBCR2.js.map} +1 -1
  33. package/dist/{chunk-2UC7UPHV.js → chunk-D2RDBN46.js} +227 -102
  34. package/dist/chunk-D2RDBN46.js.map +1 -0
  35. package/dist/{chunk-WVOJV4Q5.cjs → chunk-FIMXPANS.cjs} +4 -4
  36. package/dist/{chunk-WVOJV4Q5.cjs.map → chunk-FIMXPANS.cjs.map} +1 -1
  37. package/dist/{chunk-MXJEULSE.cjs → chunk-G33MXEHU.cjs} +29 -2
  38. package/dist/chunk-G33MXEHU.cjs.map +1 -0
  39. package/dist/{chunk-D667CUUS.cjs → chunk-GASCTLKR.cjs} +9 -9
  40. package/dist/{chunk-D667CUUS.cjs.map → chunk-GASCTLKR.cjs.map} +1 -1
  41. package/dist/{chunk-PXQDAFXD.js → chunk-IG4BG25C.js} +6 -6
  42. package/dist/{chunk-PXQDAFXD.js.map → chunk-IG4BG25C.js.map} +1 -1
  43. package/dist/{chunk-5PH5CSM7.cjs → chunk-J3UAXGNP.cjs} +16 -16
  44. package/dist/{chunk-5PH5CSM7.cjs.map → chunk-J3UAXGNP.cjs.map} +1 -1
  45. package/dist/{chunk-WC25H5VG.js → chunk-JCEUTCFZ.js} +4 -4
  46. package/dist/{chunk-WC25H5VG.js.map → chunk-JCEUTCFZ.js.map} +1 -1
  47. package/dist/{chunk-MOJJ7QF6.cjs → chunk-KOWTQJIX.cjs} +2177 -49
  48. package/dist/chunk-KOWTQJIX.cjs.map +1 -0
  49. package/dist/chunk-L6D2AGTF.js +500 -0
  50. package/dist/chunk-L6D2AGTF.js.map +1 -0
  51. package/dist/{chunk-VHY6R2PI.cjs → chunk-LRPAX5AG.cjs} +32 -32
  52. package/dist/{chunk-VHY6R2PI.cjs.map → chunk-LRPAX5AG.cjs.map} +1 -1
  53. package/dist/{chunk-UCLK6LTB.js → chunk-MBWBHKUE.js} +28 -3
  54. package/dist/chunk-MBWBHKUE.js.map +1 -0
  55. package/dist/{chunk-BOVDJSMK.cjs → chunk-NHDZQPDE.cjs} +26 -26
  56. package/dist/{chunk-BOVDJSMK.cjs.map → chunk-NHDZQPDE.cjs.map} +1 -1
  57. package/dist/{chunk-HNJBQR5U.cjs → chunk-OBPTMV5W.cjs} +5 -5
  58. package/dist/{chunk-HNJBQR5U.cjs.map → chunk-OBPTMV5W.cjs.map} +1 -1
  59. package/dist/{chunk-JMW5AHLC.js → chunk-QTXPAGNX.js} +9 -9
  60. package/dist/{chunk-JMW5AHLC.js.map → chunk-QTXPAGNX.js.map} +1 -1
  61. package/dist/{chunk-WVJ4LQVB.js → chunk-UANSP3OK.js} +3 -3
  62. package/dist/{chunk-WVJ4LQVB.js.map → chunk-UANSP3OK.js.map} +1 -1
  63. package/dist/{chunk-DAMWXGKD.js → chunk-UTSFTWFC.js} +3 -3
  64. package/dist/{chunk-DAMWXGKD.js.map → chunk-UTSFTWFC.js.map} +1 -1
  65. package/dist/chunk-WTURYJEA.cjs +504 -0
  66. package/dist/chunk-WTURYJEA.cjs.map +1 -0
  67. package/dist/{chunk-LDARLWS3.js → chunk-YR7CTWY6.js} +3 -3
  68. package/dist/{chunk-LDARLWS3.js.map → chunk-YR7CTWY6.js.map} +1 -1
  69. package/dist/{contract-addresses-RABD77VP.cjs → contract-addresses-6K6IB5OB.cjs} +13 -13
  70. package/dist/{contract-addresses-RABD77VP.cjs.map → contract-addresses-6K6IB5OB.cjs.map} +1 -1
  71. package/dist/{contract-addresses-TVXSRQ7I.js → contract-addresses-CHZ7PK5H.js} +3 -3
  72. package/dist/{contract-addresses-TVXSRQ7I.js.map → contract-addresses-CHZ7PK5H.js.map} +1 -1
  73. package/dist/core.cjs +285 -261
  74. package/dist/core.d.cts +6 -175
  75. package/dist/core.d.ts +6 -175
  76. package/dist/core.js +2 -2
  77. package/dist/dapp.cjs +6 -6
  78. package/dist/dapp.js +3 -3
  79. package/dist/email.cjs +91 -0
  80. package/dist/email.cjs.map +1 -0
  81. package/dist/email.d.cts +115 -0
  82. package/dist/email.d.ts +115 -0
  83. package/dist/email.js +88 -0
  84. package/dist/email.js.map +1 -0
  85. package/dist/enduser.cjs +7 -7
  86. package/dist/enduser.js +4 -4
  87. package/dist/identity.cjs +6 -6
  88. package/dist/identity.js +3 -3
  89. package/dist/index.cjs +406 -374
  90. package/dist/index.d.cts +3 -2
  91. package/dist/index.d.ts +3 -2
  92. package/dist/index.js +17 -17
  93. package/dist/kms.cjs +111 -103
  94. package/dist/kms.d.cts +199 -19
  95. package/dist/kms.d.ts +199 -19
  96. package/dist/kms.js +3 -3
  97. package/dist/operator.cjs +7 -7
  98. package/dist/operator.js +3 -3
  99. package/dist/paymaster.cjs +16 -16
  100. package/dist/paymaster.js +3 -3
  101. package/dist/{src-N72HAQXS.cjs → src-DNURNUIA.cjs} +287 -263
  102. package/dist/src-DNURNUIA.cjs.map +1 -0
  103. package/dist/{src-72GWEAPA.cjs → src-DZDH3BSU.cjs} +18 -18
  104. package/dist/src-DZDH3BSU.cjs.map +1 -0
  105. package/dist/{src-UNS5B7FX.js → src-EVM7OESP.js} +5 -5
  106. package/dist/src-EVM7OESP.js.map +1 -0
  107. package/dist/src-FY3KAPPC.js +5 -0
  108. package/dist/src-FY3KAPPC.js.map +1 -0
  109. package/dist/tokens.cjs +12 -4
  110. package/dist/tokens.d.cts +133 -1
  111. package/dist/tokens.d.ts +133 -1
  112. package/dist/tokens.js +3 -3
  113. package/dist/x402.cjs +26 -26
  114. package/dist/x402.js +3 -3
  115. package/package.json +17 -2
  116. package/dist/UserClient-KYDCMAIU.js +0 -6
  117. package/dist/UserClient-S6LS3CB6.cjs +0 -15
  118. package/dist/chunk-2UC7UPHV.js.map +0 -1
  119. package/dist/chunk-7RVONA2R.js +0 -226
  120. package/dist/chunk-7RVONA2R.js.map +0 -1
  121. package/dist/chunk-BYVG7MO7.js.map +0 -1
  122. package/dist/chunk-GDH4DSVM.cjs +0 -228
  123. package/dist/chunk-GDH4DSVM.cjs.map +0 -1
  124. package/dist/chunk-MOJJ7QF6.cjs.map +0 -1
  125. package/dist/chunk-MXJEULSE.cjs.map +0 -1
  126. package/dist/chunk-UCLK6LTB.js.map +0 -1
  127. package/dist/chunk-VEAYV52I.cjs.map +0 -1
  128. package/dist/src-5URXSFKD.js +0 -5
  129. package/dist/src-5URXSFKD.js.map +0 -1
  130. package/dist/src-72GWEAPA.cjs.map +0 -1
  131. package/dist/src-N72HAQXS.cjs.map +0 -1
  132. package/dist/src-UNS5B7FX.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import { TEST_TOKEN_ADDRESSES, COMMUNITY_OWNERS, MONITORING_ADDRESSES, CORE_ADDRESSES, TOKEN_ADDRESSES, TEST_COMMUNITIES, OFFICIAL_ADDRESSES, PAYMASTER_ADDRESSES, TEST_ACCOUNT_ADDRESSES } from './chunk-UCLK6LTB.js';
1
+ import { TEST_TOKEN_ADDRESSES, COMMUNITY_OWNERS, MONITORING_ADDRESSES, CORE_ADDRESSES, TOKEN_ADDRESSES, TEST_COMMUNITIES, OFFICIAL_ADDRESSES, PAYMASTER_ADDRESSES, TEST_ACCOUNT_ADDRESSES } from './chunk-MBWBHKUE.js';
2
2
  import { keccak256, toHex, parseEther, parseAbi, createPublicClient, http, toBytes, decodeFunctionData, decodeAbiParameters, zeroAddress, erc20Abi, formatEther, encodeAbiParameters, parseAbiParameters, encodePacked, isHex, size, isAddressEqual, concat, numberToHex, pad, sha256 as sha256$1, isAddress, custom } from 'viem';
3
3
  import { sepolia, mainnet } from 'viem/chains';
4
4
  import * as nc from 'crypto';
@@ -29981,6 +29981,2126 @@ var AirAccountExtension_default = {
29981
29981
  ]
29982
29982
  };
29983
29983
 
29984
+ // ../core/src/abis/ERC20.json
29985
+ var ERC20_default = [
29986
+ {
29987
+ type: "function",
29988
+ name: "name",
29989
+ inputs: [],
29990
+ outputs: [{ name: "", type: "string" }],
29991
+ stateMutability: "view"
29992
+ },
29993
+ {
29994
+ type: "function",
29995
+ name: "symbol",
29996
+ inputs: [],
29997
+ outputs: [{ name: "", type: "string" }],
29998
+ stateMutability: "view"
29999
+ },
30000
+ {
30001
+ type: "function",
30002
+ name: "decimals",
30003
+ inputs: [],
30004
+ outputs: [{ name: "", type: "uint8" }],
30005
+ stateMutability: "view"
30006
+ },
30007
+ {
30008
+ type: "function",
30009
+ name: "totalSupply",
30010
+ inputs: [],
30011
+ outputs: [{ name: "", type: "uint256" }],
30012
+ stateMutability: "view"
30013
+ },
30014
+ {
30015
+ type: "function",
30016
+ name: "balanceOf",
30017
+ inputs: [{ name: "account", type: "address" }],
30018
+ outputs: [{ name: "", type: "uint256" }],
30019
+ stateMutability: "view"
30020
+ },
30021
+ {
30022
+ type: "function",
30023
+ name: "allowance",
30024
+ inputs: [
30025
+ { name: "owner", type: "address" },
30026
+ { name: "spender", type: "address" }
30027
+ ],
30028
+ outputs: [{ name: "", type: "uint256" }],
30029
+ stateMutability: "view"
30030
+ },
30031
+ {
30032
+ type: "function",
30033
+ name: "approve",
30034
+ inputs: [
30035
+ { name: "spender", type: "address" },
30036
+ { name: "amount", type: "uint256" }
30037
+ ],
30038
+ outputs: [{ name: "", type: "bool" }],
30039
+ stateMutability: "nonpayable"
30040
+ },
30041
+ {
30042
+ type: "function",
30043
+ name: "transfer",
30044
+ inputs: [
30045
+ { name: "to", type: "address" },
30046
+ { name: "amount", type: "uint256" }
30047
+ ],
30048
+ outputs: [{ name: "", type: "bool" }],
30049
+ stateMutability: "nonpayable"
30050
+ },
30051
+ {
30052
+ type: "function",
30053
+ name: "transferFrom",
30054
+ inputs: [
30055
+ { name: "from", type: "address" },
30056
+ { name: "to", type: "address" },
30057
+ { name: "amount", type: "uint256" }
30058
+ ],
30059
+ outputs: [{ name: "", type: "bool" }],
30060
+ stateMutability: "nonpayable"
30061
+ }
30062
+ ];
30063
+
30064
+ // ../core/src/abis/SaleContractV2.json
30065
+ var SaleContractV2_default = [
30066
+ {
30067
+ type: "constructor",
30068
+ inputs: [
30069
+ {
30070
+ name: "gTokenAddress",
30071
+ type: "address",
30072
+ internalType: "address"
30073
+ },
30074
+ {
30075
+ name: "_treasury",
30076
+ type: "address",
30077
+ internalType: "address"
30078
+ },
30079
+ {
30080
+ name: "_initialOwner",
30081
+ type: "address",
30082
+ internalType: "address"
30083
+ }
30084
+ ],
30085
+ stateMutability: "nonpayable"
30086
+ },
30087
+ {
30088
+ type: "function",
30089
+ name: "AUTO_STEP_BPS",
30090
+ inputs: [],
30091
+ outputs: [
30092
+ {
30093
+ name: "",
30094
+ type: "uint16",
30095
+ internalType: "uint16"
30096
+ }
30097
+ ],
30098
+ stateMutability: "view"
30099
+ },
30100
+ {
30101
+ type: "function",
30102
+ name: "VERSION",
30103
+ inputs: [],
30104
+ outputs: [
30105
+ {
30106
+ name: "",
30107
+ type: "uint256",
30108
+ internalType: "uint256"
30109
+ }
30110
+ ],
30111
+ stateMutability: "view"
30112
+ },
30113
+ {
30114
+ type: "function",
30115
+ name: "acceptedTokens",
30116
+ inputs: [
30117
+ {
30118
+ name: "",
30119
+ type: "address",
30120
+ internalType: "address"
30121
+ }
30122
+ ],
30123
+ outputs: [
30124
+ {
30125
+ name: "",
30126
+ type: "bool",
30127
+ internalType: "bool"
30128
+ }
30129
+ ],
30130
+ stateMutability: "view"
30131
+ },
30132
+ {
30133
+ type: "function",
30134
+ name: "addMilestone",
30135
+ inputs: [
30136
+ {
30137
+ name: "priceUSD",
30138
+ type: "uint256",
30139
+ internalType: "uint256"
30140
+ },
30141
+ {
30142
+ name: "revenueCap",
30143
+ type: "uint256",
30144
+ internalType: "uint256"
30145
+ }
30146
+ ],
30147
+ outputs: [],
30148
+ stateMutability: "nonpayable"
30149
+ },
30150
+ {
30151
+ type: "function",
30152
+ name: "addMilestoneAutoStep",
30153
+ inputs: [
30154
+ {
30155
+ name: "revenueCap",
30156
+ type: "uint256",
30157
+ internalType: "uint256"
30158
+ }
30159
+ ],
30160
+ outputs: [],
30161
+ stateMutability: "nonpayable"
30162
+ },
30163
+ {
30164
+ type: "function",
30165
+ name: "advanceMilestone",
30166
+ inputs: [],
30167
+ outputs: [],
30168
+ stateMutability: "nonpayable"
30169
+ },
30170
+ {
30171
+ type: "function",
30172
+ name: "availableInventory",
30173
+ inputs: [],
30174
+ outputs: [
30175
+ {
30176
+ name: "",
30177
+ type: "uint256",
30178
+ internalType: "uint256"
30179
+ }
30180
+ ],
30181
+ stateMutability: "view"
30182
+ },
30183
+ {
30184
+ type: "function",
30185
+ name: "buyTokens",
30186
+ inputs: [
30187
+ {
30188
+ name: "usdAmount",
30189
+ type: "uint256",
30190
+ internalType: "uint256"
30191
+ },
30192
+ {
30193
+ name: "paymentToken",
30194
+ type: "address",
30195
+ internalType: "address"
30196
+ },
30197
+ {
30198
+ name: "minTokensOut",
30199
+ type: "uint256",
30200
+ internalType: "uint256"
30201
+ }
30202
+ ],
30203
+ outputs: [],
30204
+ stateMutability: "nonpayable"
30205
+ },
30206
+ {
30207
+ type: "function",
30208
+ name: "currentMilestone",
30209
+ inputs: [],
30210
+ outputs: [
30211
+ {
30212
+ name: "",
30213
+ type: "uint256",
30214
+ internalType: "uint256"
30215
+ }
30216
+ ],
30217
+ stateMutability: "view"
30218
+ },
30219
+ {
30220
+ type: "function",
30221
+ name: "gToken",
30222
+ inputs: [],
30223
+ outputs: [
30224
+ {
30225
+ name: "",
30226
+ type: "address",
30227
+ internalType: "contract IERC20"
30228
+ }
30229
+ ],
30230
+ stateMutability: "view"
30231
+ },
30232
+ {
30233
+ type: "function",
30234
+ name: "getAllMilestones",
30235
+ inputs: [],
30236
+ outputs: [
30237
+ {
30238
+ name: "",
30239
+ type: "tuple[]",
30240
+ internalType: "struct SaleContractV2.Milestone[]",
30241
+ components: [
30242
+ {
30243
+ name: "priceUSD",
30244
+ type: "uint256",
30245
+ internalType: "uint256"
30246
+ },
30247
+ {
30248
+ name: "revenueCap",
30249
+ type: "uint256",
30250
+ internalType: "uint256"
30251
+ }
30252
+ ]
30253
+ }
30254
+ ],
30255
+ stateMutability: "view"
30256
+ },
30257
+ {
30258
+ type: "function",
30259
+ name: "getCurrentPriceUSD",
30260
+ inputs: [],
30261
+ outputs: [
30262
+ {
30263
+ name: "",
30264
+ type: "uint256",
30265
+ internalType: "uint256"
30266
+ }
30267
+ ],
30268
+ stateMutability: "view"
30269
+ },
30270
+ {
30271
+ type: "function",
30272
+ name: "getMilestone",
30273
+ inputs: [
30274
+ {
30275
+ name: "index",
30276
+ type: "uint256",
30277
+ internalType: "uint256"
30278
+ }
30279
+ ],
30280
+ outputs: [
30281
+ {
30282
+ name: "priceUSD",
30283
+ type: "uint256",
30284
+ internalType: "uint256"
30285
+ },
30286
+ {
30287
+ name: "revenueCap",
30288
+ type: "uint256",
30289
+ internalType: "uint256"
30290
+ }
30291
+ ],
30292
+ stateMutability: "view"
30293
+ },
30294
+ {
30295
+ type: "function",
30296
+ name: "getMilestoneCount",
30297
+ inputs: [],
30298
+ outputs: [
30299
+ {
30300
+ name: "",
30301
+ type: "uint256",
30302
+ internalType: "uint256"
30303
+ }
30304
+ ],
30305
+ stateMutability: "view"
30306
+ },
30307
+ {
30308
+ type: "function",
30309
+ name: "getTokensForUSD",
30310
+ inputs: [
30311
+ {
30312
+ name: "usdAmount",
30313
+ type: "uint256",
30314
+ internalType: "uint256"
30315
+ }
30316
+ ],
30317
+ outputs: [
30318
+ {
30319
+ name: "",
30320
+ type: "uint256",
30321
+ internalType: "uint256"
30322
+ }
30323
+ ],
30324
+ stateMutability: "view"
30325
+ },
30326
+ {
30327
+ type: "function",
30328
+ name: "isWhitelisted",
30329
+ inputs: [
30330
+ {
30331
+ name: "",
30332
+ type: "address",
30333
+ internalType: "address"
30334
+ }
30335
+ ],
30336
+ outputs: [
30337
+ {
30338
+ name: "",
30339
+ type: "bool",
30340
+ internalType: "bool"
30341
+ }
30342
+ ],
30343
+ stateMutability: "view"
30344
+ },
30345
+ {
30346
+ type: "function",
30347
+ name: "owner",
30348
+ inputs: [],
30349
+ outputs: [
30350
+ {
30351
+ name: "",
30352
+ type: "address",
30353
+ internalType: "address"
30354
+ }
30355
+ ],
30356
+ stateMutability: "view"
30357
+ },
30358
+ {
30359
+ type: "function",
30360
+ name: "pause",
30361
+ inputs: [],
30362
+ outputs: [],
30363
+ stateMutability: "nonpayable"
30364
+ },
30365
+ {
30366
+ type: "function",
30367
+ name: "paused",
30368
+ inputs: [],
30369
+ outputs: [
30370
+ {
30371
+ name: "",
30372
+ type: "bool",
30373
+ internalType: "bool"
30374
+ }
30375
+ ],
30376
+ stateMutability: "view"
30377
+ },
30378
+ {
30379
+ type: "function",
30380
+ name: "perPersonCapUSD",
30381
+ inputs: [],
30382
+ outputs: [
30383
+ {
30384
+ name: "",
30385
+ type: "uint256",
30386
+ internalType: "uint256"
30387
+ }
30388
+ ],
30389
+ stateMutability: "view"
30390
+ },
30391
+ {
30392
+ type: "function",
30393
+ name: "recoverToken",
30394
+ inputs: [
30395
+ {
30396
+ name: "token",
30397
+ type: "address",
30398
+ internalType: "address"
30399
+ }
30400
+ ],
30401
+ outputs: [],
30402
+ stateMutability: "nonpayable"
30403
+ },
30404
+ {
30405
+ type: "function",
30406
+ name: "renounceOwnership",
30407
+ inputs: [],
30408
+ outputs: [],
30409
+ stateMutability: "nonpayable"
30410
+ },
30411
+ {
30412
+ type: "function",
30413
+ name: "setPaymentToken",
30414
+ inputs: [
30415
+ {
30416
+ name: "token",
30417
+ type: "address",
30418
+ internalType: "address"
30419
+ },
30420
+ {
30421
+ name: "accepted",
30422
+ type: "bool",
30423
+ internalType: "bool"
30424
+ }
30425
+ ],
30426
+ outputs: [],
30427
+ stateMutability: "nonpayable"
30428
+ },
30429
+ {
30430
+ type: "function",
30431
+ name: "setPerPersonCap",
30432
+ inputs: [
30433
+ {
30434
+ name: "capUSD",
30435
+ type: "uint256",
30436
+ internalType: "uint256"
30437
+ }
30438
+ ],
30439
+ outputs: [],
30440
+ stateMutability: "nonpayable"
30441
+ },
30442
+ {
30443
+ type: "function",
30444
+ name: "setTreasury",
30445
+ inputs: [
30446
+ {
30447
+ name: "newTreasury",
30448
+ type: "address",
30449
+ internalType: "address"
30450
+ }
30451
+ ],
30452
+ outputs: [],
30453
+ stateMutability: "nonpayable"
30454
+ },
30455
+ {
30456
+ type: "function",
30457
+ name: "setWhitelistRequired",
30458
+ inputs: [
30459
+ {
30460
+ name: "required",
30461
+ type: "bool",
30462
+ internalType: "bool"
30463
+ }
30464
+ ],
30465
+ outputs: [],
30466
+ stateMutability: "nonpayable"
30467
+ },
30468
+ {
30469
+ type: "function",
30470
+ name: "setWhitelisted",
30471
+ inputs: [
30472
+ {
30473
+ name: "users",
30474
+ type: "address[]",
30475
+ internalType: "address[]"
30476
+ },
30477
+ {
30478
+ name: "status",
30479
+ type: "bool",
30480
+ internalType: "bool"
30481
+ }
30482
+ ],
30483
+ outputs: [],
30484
+ stateMutability: "nonpayable"
30485
+ },
30486
+ {
30487
+ type: "function",
30488
+ name: "totalRevenue",
30489
+ inputs: [],
30490
+ outputs: [
30491
+ {
30492
+ name: "",
30493
+ type: "uint256",
30494
+ internalType: "uint256"
30495
+ }
30496
+ ],
30497
+ stateMutability: "view"
30498
+ },
30499
+ {
30500
+ type: "function",
30501
+ name: "totalTokensSold",
30502
+ inputs: [],
30503
+ outputs: [
30504
+ {
30505
+ name: "",
30506
+ type: "uint256",
30507
+ internalType: "uint256"
30508
+ }
30509
+ ],
30510
+ stateMutability: "view"
30511
+ },
30512
+ {
30513
+ type: "function",
30514
+ name: "transferOwnership",
30515
+ inputs: [
30516
+ {
30517
+ name: "newOwner",
30518
+ type: "address",
30519
+ internalType: "address"
30520
+ }
30521
+ ],
30522
+ outputs: [],
30523
+ stateMutability: "nonpayable"
30524
+ },
30525
+ {
30526
+ type: "function",
30527
+ name: "treasury",
30528
+ inputs: [],
30529
+ outputs: [
30530
+ {
30531
+ name: "",
30532
+ type: "address",
30533
+ internalType: "address"
30534
+ }
30535
+ ],
30536
+ stateMutability: "view"
30537
+ },
30538
+ {
30539
+ type: "function",
30540
+ name: "tryAdvanceMilestone",
30541
+ inputs: [],
30542
+ outputs: [],
30543
+ stateMutability: "nonpayable"
30544
+ },
30545
+ {
30546
+ type: "function",
30547
+ name: "unpause",
30548
+ inputs: [],
30549
+ outputs: [],
30550
+ stateMutability: "nonpayable"
30551
+ },
30552
+ {
30553
+ type: "function",
30554
+ name: "userTotalSpent",
30555
+ inputs: [
30556
+ {
30557
+ name: "",
30558
+ type: "address",
30559
+ internalType: "address"
30560
+ }
30561
+ ],
30562
+ outputs: [
30563
+ {
30564
+ name: "",
30565
+ type: "uint256",
30566
+ internalType: "uint256"
30567
+ }
30568
+ ],
30569
+ stateMutability: "view"
30570
+ },
30571
+ {
30572
+ type: "function",
30573
+ name: "version",
30574
+ inputs: [],
30575
+ outputs: [
30576
+ {
30577
+ name: "",
30578
+ type: "string",
30579
+ internalType: "string"
30580
+ }
30581
+ ],
30582
+ stateMutability: "pure"
30583
+ },
30584
+ {
30585
+ type: "function",
30586
+ name: "whitelistRequired",
30587
+ inputs: [],
30588
+ outputs: [
30589
+ {
30590
+ name: "",
30591
+ type: "bool",
30592
+ internalType: "bool"
30593
+ }
30594
+ ],
30595
+ stateMutability: "view"
30596
+ },
30597
+ {
30598
+ type: "event",
30599
+ name: "MilestoneAdded",
30600
+ inputs: [
30601
+ {
30602
+ name: "index",
30603
+ type: "uint256",
30604
+ indexed: true,
30605
+ internalType: "uint256"
30606
+ },
30607
+ {
30608
+ name: "priceUSD",
30609
+ type: "uint256",
30610
+ indexed: false,
30611
+ internalType: "uint256"
30612
+ },
30613
+ {
30614
+ name: "revenueCap",
30615
+ type: "uint256",
30616
+ indexed: false,
30617
+ internalType: "uint256"
30618
+ }
30619
+ ],
30620
+ anonymous: false
30621
+ },
30622
+ {
30623
+ type: "event",
30624
+ name: "MilestoneAdvanced",
30625
+ inputs: [
30626
+ {
30627
+ name: "newMilestone",
30628
+ type: "uint256",
30629
+ indexed: true,
30630
+ internalType: "uint256"
30631
+ },
30632
+ {
30633
+ name: "newPriceUSD",
30634
+ type: "uint256",
30635
+ indexed: false,
30636
+ internalType: "uint256"
30637
+ }
30638
+ ],
30639
+ anonymous: false
30640
+ },
30641
+ {
30642
+ type: "event",
30643
+ name: "OwnershipTransferred",
30644
+ inputs: [
30645
+ {
30646
+ name: "previousOwner",
30647
+ type: "address",
30648
+ indexed: true,
30649
+ internalType: "address"
30650
+ },
30651
+ {
30652
+ name: "newOwner",
30653
+ type: "address",
30654
+ indexed: true,
30655
+ internalType: "address"
30656
+ }
30657
+ ],
30658
+ anonymous: false
30659
+ },
30660
+ {
30661
+ type: "event",
30662
+ name: "Paused",
30663
+ inputs: [
30664
+ {
30665
+ name: "account",
30666
+ type: "address",
30667
+ indexed: false,
30668
+ internalType: "address"
30669
+ }
30670
+ ],
30671
+ anonymous: false
30672
+ },
30673
+ {
30674
+ type: "event",
30675
+ name: "PaymentTokenSet",
30676
+ inputs: [
30677
+ {
30678
+ name: "token",
30679
+ type: "address",
30680
+ indexed: true,
30681
+ internalType: "address"
30682
+ },
30683
+ {
30684
+ name: "accepted",
30685
+ type: "bool",
30686
+ indexed: false,
30687
+ internalType: "bool"
30688
+ }
30689
+ ],
30690
+ anonymous: false
30691
+ },
30692
+ {
30693
+ type: "event",
30694
+ name: "PerPersonCapUpdated",
30695
+ inputs: [
30696
+ {
30697
+ name: "newCapUSD",
30698
+ type: "uint256",
30699
+ indexed: false,
30700
+ internalType: "uint256"
30701
+ }
30702
+ ],
30703
+ anonymous: false
30704
+ },
30705
+ {
30706
+ type: "event",
30707
+ name: "TokensPurchased",
30708
+ inputs: [
30709
+ {
30710
+ name: "buyer",
30711
+ type: "address",
30712
+ indexed: true,
30713
+ internalType: "address"
30714
+ },
30715
+ {
30716
+ name: "paymentToken",
30717
+ type: "address",
30718
+ indexed: true,
30719
+ internalType: "address"
30720
+ },
30721
+ {
30722
+ name: "usdAmount",
30723
+ type: "uint256",
30724
+ indexed: false,
30725
+ internalType: "uint256"
30726
+ },
30727
+ {
30728
+ name: "gTokenAmount",
30729
+ type: "uint256",
30730
+ indexed: false,
30731
+ internalType: "uint256"
30732
+ },
30733
+ {
30734
+ name: "priceUSD",
30735
+ type: "uint256",
30736
+ indexed: false,
30737
+ internalType: "uint256"
30738
+ },
30739
+ {
30740
+ name: "milestone",
30741
+ type: "uint256",
30742
+ indexed: false,
30743
+ internalType: "uint256"
30744
+ }
30745
+ ],
30746
+ anonymous: false
30747
+ },
30748
+ {
30749
+ type: "event",
30750
+ name: "TreasuryUpdated",
30751
+ inputs: [
30752
+ {
30753
+ name: "newTreasury",
30754
+ type: "address",
30755
+ indexed: true,
30756
+ internalType: "address"
30757
+ }
30758
+ ],
30759
+ anonymous: false
30760
+ },
30761
+ {
30762
+ type: "event",
30763
+ name: "Unpaused",
30764
+ inputs: [
30765
+ {
30766
+ name: "account",
30767
+ type: "address",
30768
+ indexed: false,
30769
+ internalType: "address"
30770
+ }
30771
+ ],
30772
+ anonymous: false
30773
+ },
30774
+ {
30775
+ type: "event",
30776
+ name: "WhitelistRequiredUpdated",
30777
+ inputs: [
30778
+ {
30779
+ name: "required",
30780
+ type: "bool",
30781
+ indexed: false,
30782
+ internalType: "bool"
30783
+ }
30784
+ ],
30785
+ anonymous: false
30786
+ },
30787
+ {
30788
+ type: "event",
30789
+ name: "WhitelistUpdated",
30790
+ inputs: [
30791
+ {
30792
+ name: "user",
30793
+ type: "address",
30794
+ indexed: true,
30795
+ internalType: "address"
30796
+ },
30797
+ {
30798
+ name: "status",
30799
+ type: "bool",
30800
+ indexed: false,
30801
+ internalType: "bool"
30802
+ }
30803
+ ],
30804
+ anonymous: false
30805
+ },
30806
+ {
30807
+ type: "error",
30808
+ name: "AlreadyAtMaxMilestone",
30809
+ inputs: []
30810
+ },
30811
+ {
30812
+ type: "error",
30813
+ name: "EnforcedPause",
30814
+ inputs: []
30815
+ },
30816
+ {
30817
+ type: "error",
30818
+ name: "ExceedsPerPersonCap",
30819
+ inputs: [
30820
+ {
30821
+ name: "requested",
30822
+ type: "uint256",
30823
+ internalType: "uint256"
30824
+ },
30825
+ {
30826
+ name: "remaining",
30827
+ type: "uint256",
30828
+ internalType: "uint256"
30829
+ }
30830
+ ]
30831
+ },
30832
+ {
30833
+ type: "error",
30834
+ name: "ExpectedPause",
30835
+ inputs: []
30836
+ },
30837
+ {
30838
+ type: "error",
30839
+ name: "InsufficientInventory",
30840
+ inputs: [
30841
+ {
30842
+ name: "requested",
30843
+ type: "uint256",
30844
+ internalType: "uint256"
30845
+ },
30846
+ {
30847
+ name: "available",
30848
+ type: "uint256",
30849
+ internalType: "uint256"
30850
+ }
30851
+ ]
30852
+ },
30853
+ {
30854
+ type: "error",
30855
+ name: "InvalidMilestoneCap",
30856
+ inputs: [
30857
+ {
30858
+ name: "newCap",
30859
+ type: "uint256",
30860
+ internalType: "uint256"
30861
+ },
30862
+ {
30863
+ name: "lastCap",
30864
+ type: "uint256",
30865
+ internalType: "uint256"
30866
+ }
30867
+ ]
30868
+ },
30869
+ {
30870
+ type: "error",
30871
+ name: "InvalidMilestonePrice",
30872
+ inputs: [
30873
+ {
30874
+ name: "newPrice",
30875
+ type: "uint256",
30876
+ internalType: "uint256"
30877
+ },
30878
+ {
30879
+ name: "lastPrice",
30880
+ type: "uint256",
30881
+ internalType: "uint256"
30882
+ }
30883
+ ]
30884
+ },
30885
+ {
30886
+ type: "error",
30887
+ name: "InvalidTokenDecimals",
30888
+ inputs: [
30889
+ {
30890
+ name: "token",
30891
+ type: "address",
30892
+ internalType: "address"
30893
+ },
30894
+ {
30895
+ name: "decimals",
30896
+ type: "uint8",
30897
+ internalType: "uint8"
30898
+ }
30899
+ ]
30900
+ },
30901
+ {
30902
+ type: "error",
30903
+ name: "MilestoneIndexOOB",
30904
+ inputs: [
30905
+ {
30906
+ name: "index",
30907
+ type: "uint256",
30908
+ internalType: "uint256"
30909
+ },
30910
+ {
30911
+ name: "length",
30912
+ type: "uint256",
30913
+ internalType: "uint256"
30914
+ }
30915
+ ]
30916
+ },
30917
+ {
30918
+ type: "error",
30919
+ name: "MilestoneNotReached",
30920
+ inputs: [
30921
+ {
30922
+ name: "currentRevenue",
30923
+ type: "uint256",
30924
+ internalType: "uint256"
30925
+ },
30926
+ {
30927
+ name: "required",
30928
+ type: "uint256",
30929
+ internalType: "uint256"
30930
+ }
30931
+ ]
30932
+ },
30933
+ {
30934
+ type: "error",
30935
+ name: "NotWhitelisted",
30936
+ inputs: [
30937
+ {
30938
+ name: "user",
30939
+ type: "address",
30940
+ internalType: "address"
30941
+ }
30942
+ ]
30943
+ },
30944
+ {
30945
+ type: "error",
30946
+ name: "OwnableInvalidOwner",
30947
+ inputs: [
30948
+ {
30949
+ name: "owner",
30950
+ type: "address",
30951
+ internalType: "address"
30952
+ }
30953
+ ]
30954
+ },
30955
+ {
30956
+ type: "error",
30957
+ name: "OwnableUnauthorizedAccount",
30958
+ inputs: [
30959
+ {
30960
+ name: "account",
30961
+ type: "address",
30962
+ internalType: "address"
30963
+ }
30964
+ ]
30965
+ },
30966
+ {
30967
+ type: "error",
30968
+ name: "ReentrancyGuardReentrantCall",
30969
+ inputs: []
30970
+ },
30971
+ {
30972
+ type: "error",
30973
+ name: "SafeERC20FailedOperation",
30974
+ inputs: [
30975
+ {
30976
+ name: "token",
30977
+ type: "address",
30978
+ internalType: "address"
30979
+ }
30980
+ ]
30981
+ },
30982
+ {
30983
+ type: "error",
30984
+ name: "SlippageExceeded",
30985
+ inputs: [
30986
+ {
30987
+ name: "got",
30988
+ type: "uint256",
30989
+ internalType: "uint256"
30990
+ },
30991
+ {
30992
+ name: "minExpected",
30993
+ type: "uint256",
30994
+ internalType: "uint256"
30995
+ }
30996
+ ]
30997
+ },
30998
+ {
30999
+ type: "error",
31000
+ name: "TokenNotAccepted",
31001
+ inputs: [
31002
+ {
31003
+ name: "token",
31004
+ type: "address",
31005
+ internalType: "address"
31006
+ }
31007
+ ]
31008
+ },
31009
+ {
31010
+ type: "error",
31011
+ name: "ZeroAddress",
31012
+ inputs: []
31013
+ },
31014
+ {
31015
+ type: "error",
31016
+ name: "ZeroAmount",
31017
+ inputs: []
31018
+ },
31019
+ {
31020
+ type: "error",
31021
+ name: "ZeroTokensOut",
31022
+ inputs: []
31023
+ }
31024
+ ];
31025
+
31026
+ // ../core/src/abis/APNTsSaleContract.json
31027
+ var APNTsSaleContract_default = [
31028
+ {
31029
+ type: "constructor",
31030
+ inputs: [
31031
+ {
31032
+ name: "_aPNTsAddress",
31033
+ type: "address",
31034
+ internalType: "address"
31035
+ },
31036
+ {
31037
+ name: "_treasury",
31038
+ type: "address",
31039
+ internalType: "address"
31040
+ },
31041
+ {
31042
+ name: "_initialPriceUSD",
31043
+ type: "uint256",
31044
+ internalType: "uint256"
31045
+ },
31046
+ {
31047
+ name: "_initialOwner",
31048
+ type: "address",
31049
+ internalType: "address"
31050
+ }
31051
+ ],
31052
+ stateMutability: "nonpayable"
31053
+ },
31054
+ {
31055
+ type: "function",
31056
+ name: "aPNTs",
31057
+ inputs: [],
31058
+ outputs: [
31059
+ {
31060
+ name: "",
31061
+ type: "address",
31062
+ internalType: "contract ERC20"
31063
+ }
31064
+ ],
31065
+ stateMutability: "view"
31066
+ },
31067
+ {
31068
+ type: "function",
31069
+ name: "acceptedPaymentTokens",
31070
+ inputs: [
31071
+ {
31072
+ name: "",
31073
+ type: "address",
31074
+ internalType: "address"
31075
+ }
31076
+ ],
31077
+ outputs: [
31078
+ {
31079
+ name: "",
31080
+ type: "bool",
31081
+ internalType: "bool"
31082
+ }
31083
+ ],
31084
+ stateMutability: "view"
31085
+ },
31086
+ {
31087
+ type: "function",
31088
+ name: "availableInventory",
31089
+ inputs: [],
31090
+ outputs: [
31091
+ {
31092
+ name: "",
31093
+ type: "uint256",
31094
+ internalType: "uint256"
31095
+ }
31096
+ ],
31097
+ stateMutability: "view"
31098
+ },
31099
+ {
31100
+ type: "function",
31101
+ name: "buyAPNTs",
31102
+ inputs: [
31103
+ {
31104
+ name: "usdAmount",
31105
+ type: "uint256",
31106
+ internalType: "uint256"
31107
+ },
31108
+ {
31109
+ name: "paymentToken",
31110
+ type: "address",
31111
+ internalType: "address"
31112
+ }
31113
+ ],
31114
+ outputs: [],
31115
+ stateMutability: "nonpayable"
31116
+ },
31117
+ {
31118
+ type: "function",
31119
+ name: "buyExactAPNTs",
31120
+ inputs: [
31121
+ {
31122
+ name: "aPNTsAmount",
31123
+ type: "uint256",
31124
+ internalType: "uint256"
31125
+ },
31126
+ {
31127
+ name: "paymentToken",
31128
+ type: "address",
31129
+ internalType: "address"
31130
+ }
31131
+ ],
31132
+ outputs: [],
31133
+ stateMutability: "nonpayable"
31134
+ },
31135
+ {
31136
+ type: "function",
31137
+ name: "getAPNTsForUSD",
31138
+ inputs: [
31139
+ {
31140
+ name: "usdAmount",
31141
+ type: "uint256",
31142
+ internalType: "uint256"
31143
+ }
31144
+ ],
31145
+ outputs: [
31146
+ {
31147
+ name: "aPNTsAmount",
31148
+ type: "uint256",
31149
+ internalType: "uint256"
31150
+ }
31151
+ ],
31152
+ stateMutability: "view"
31153
+ },
31154
+ {
31155
+ type: "function",
31156
+ name: "getUSDForAPNTs",
31157
+ inputs: [
31158
+ {
31159
+ name: "aPNTsAmount",
31160
+ type: "uint256",
31161
+ internalType: "uint256"
31162
+ }
31163
+ ],
31164
+ outputs: [
31165
+ {
31166
+ name: "usdAmount",
31167
+ type: "uint256",
31168
+ internalType: "uint256"
31169
+ }
31170
+ ],
31171
+ stateMutability: "view"
31172
+ },
31173
+ {
31174
+ type: "function",
31175
+ name: "maxPurchaseAmount",
31176
+ inputs: [],
31177
+ outputs: [
31178
+ {
31179
+ name: "",
31180
+ type: "uint256",
31181
+ internalType: "uint256"
31182
+ }
31183
+ ],
31184
+ stateMutability: "view"
31185
+ },
31186
+ {
31187
+ type: "function",
31188
+ name: "minPurchaseAmount",
31189
+ inputs: [],
31190
+ outputs: [
31191
+ {
31192
+ name: "",
31193
+ type: "uint256",
31194
+ internalType: "uint256"
31195
+ }
31196
+ ],
31197
+ stateMutability: "view"
31198
+ },
31199
+ {
31200
+ type: "function",
31201
+ name: "owner",
31202
+ inputs: [],
31203
+ outputs: [
31204
+ {
31205
+ name: "",
31206
+ type: "address",
31207
+ internalType: "address"
31208
+ }
31209
+ ],
31210
+ stateMutability: "view"
31211
+ },
31212
+ {
31213
+ type: "function",
31214
+ name: "priceUSD",
31215
+ inputs: [],
31216
+ outputs: [
31217
+ {
31218
+ name: "",
31219
+ type: "uint256",
31220
+ internalType: "uint256"
31221
+ }
31222
+ ],
31223
+ stateMutability: "view"
31224
+ },
31225
+ {
31226
+ type: "function",
31227
+ name: "recoverToken",
31228
+ inputs: [
31229
+ {
31230
+ name: "token",
31231
+ type: "address",
31232
+ internalType: "address"
31233
+ },
31234
+ {
31235
+ name: "amount",
31236
+ type: "uint256",
31237
+ internalType: "uint256"
31238
+ }
31239
+ ],
31240
+ outputs: [],
31241
+ stateMutability: "nonpayable"
31242
+ },
31243
+ {
31244
+ type: "function",
31245
+ name: "renounceOwnership",
31246
+ inputs: [],
31247
+ outputs: [],
31248
+ stateMutability: "nonpayable"
31249
+ },
31250
+ {
31251
+ type: "function",
31252
+ name: "setPaymentToken",
31253
+ inputs: [
31254
+ {
31255
+ name: "token",
31256
+ type: "address",
31257
+ internalType: "address"
31258
+ },
31259
+ {
31260
+ name: "accepted",
31261
+ type: "bool",
31262
+ internalType: "bool"
31263
+ }
31264
+ ],
31265
+ outputs: [],
31266
+ stateMutability: "nonpayable"
31267
+ },
31268
+ {
31269
+ type: "function",
31270
+ name: "setPrice",
31271
+ inputs: [
31272
+ {
31273
+ name: "newPriceUSD",
31274
+ type: "uint256",
31275
+ internalType: "uint256"
31276
+ }
31277
+ ],
31278
+ outputs: [],
31279
+ stateMutability: "nonpayable"
31280
+ },
31281
+ {
31282
+ type: "function",
31283
+ name: "setPurchaseLimits",
31284
+ inputs: [
31285
+ {
31286
+ name: "minAmount",
31287
+ type: "uint256",
31288
+ internalType: "uint256"
31289
+ },
31290
+ {
31291
+ name: "maxAmount",
31292
+ type: "uint256",
31293
+ internalType: "uint256"
31294
+ }
31295
+ ],
31296
+ outputs: [],
31297
+ stateMutability: "nonpayable"
31298
+ },
31299
+ {
31300
+ type: "function",
31301
+ name: "setTreasury",
31302
+ inputs: [
31303
+ {
31304
+ name: "newTreasury",
31305
+ type: "address",
31306
+ internalType: "address"
31307
+ }
31308
+ ],
31309
+ outputs: [],
31310
+ stateMutability: "nonpayable"
31311
+ },
31312
+ {
31313
+ type: "function",
31314
+ name: "totalSold",
31315
+ inputs: [],
31316
+ outputs: [
31317
+ {
31318
+ name: "",
31319
+ type: "uint256",
31320
+ internalType: "uint256"
31321
+ }
31322
+ ],
31323
+ stateMutability: "view"
31324
+ },
31325
+ {
31326
+ type: "function",
31327
+ name: "transferOwnership",
31328
+ inputs: [
31329
+ {
31330
+ name: "newOwner",
31331
+ type: "address",
31332
+ internalType: "address"
31333
+ }
31334
+ ],
31335
+ outputs: [],
31336
+ stateMutability: "nonpayable"
31337
+ },
31338
+ {
31339
+ type: "function",
31340
+ name: "treasury",
31341
+ inputs: [],
31342
+ outputs: [
31343
+ {
31344
+ name: "",
31345
+ type: "address",
31346
+ internalType: "address"
31347
+ }
31348
+ ],
31349
+ stateMutability: "view"
31350
+ },
31351
+ {
31352
+ type: "function",
31353
+ name: "withdrawEther",
31354
+ inputs: [],
31355
+ outputs: [],
31356
+ stateMutability: "nonpayable"
31357
+ },
31358
+ {
31359
+ type: "function",
31360
+ name: "withdrawUnsoldAPNTs",
31361
+ inputs: [],
31362
+ outputs: [],
31363
+ stateMutability: "nonpayable"
31364
+ },
31365
+ {
31366
+ type: "event",
31367
+ name: "APNTsPurchased",
31368
+ inputs: [
31369
+ {
31370
+ name: "buyer",
31371
+ type: "address",
31372
+ indexed: true,
31373
+ internalType: "address"
31374
+ },
31375
+ {
31376
+ name: "paymentToken",
31377
+ type: "address",
31378
+ indexed: true,
31379
+ internalType: "address"
31380
+ },
31381
+ {
31382
+ name: "aPNTsAmount",
31383
+ type: "uint256",
31384
+ indexed: false,
31385
+ internalType: "uint256"
31386
+ },
31387
+ {
31388
+ name: "usdAmount",
31389
+ type: "uint256",
31390
+ indexed: false,
31391
+ internalType: "uint256"
31392
+ },
31393
+ {
31394
+ name: "priceUsed",
31395
+ type: "uint256",
31396
+ indexed: false,
31397
+ internalType: "uint256"
31398
+ }
31399
+ ],
31400
+ anonymous: false
31401
+ },
31402
+ {
31403
+ type: "event",
31404
+ name: "EmergencyWithdraw",
31405
+ inputs: [
31406
+ {
31407
+ name: "token",
31408
+ type: "address",
31409
+ indexed: true,
31410
+ internalType: "address"
31411
+ },
31412
+ {
31413
+ name: "amount",
31414
+ type: "uint256",
31415
+ indexed: false,
31416
+ internalType: "uint256"
31417
+ },
31418
+ {
31419
+ name: "to",
31420
+ type: "address",
31421
+ indexed: true,
31422
+ internalType: "address"
31423
+ }
31424
+ ],
31425
+ anonymous: false
31426
+ },
31427
+ {
31428
+ type: "event",
31429
+ name: "OwnershipTransferred",
31430
+ inputs: [
31431
+ {
31432
+ name: "previousOwner",
31433
+ type: "address",
31434
+ indexed: true,
31435
+ internalType: "address"
31436
+ },
31437
+ {
31438
+ name: "newOwner",
31439
+ type: "address",
31440
+ indexed: true,
31441
+ internalType: "address"
31442
+ }
31443
+ ],
31444
+ anonymous: false
31445
+ },
31446
+ {
31447
+ type: "event",
31448
+ name: "PaymentTokenSet",
31449
+ inputs: [
31450
+ {
31451
+ name: "token",
31452
+ type: "address",
31453
+ indexed: true,
31454
+ internalType: "address"
31455
+ },
31456
+ {
31457
+ name: "accepted",
31458
+ type: "bool",
31459
+ indexed: false,
31460
+ internalType: "bool"
31461
+ }
31462
+ ],
31463
+ anonymous: false
31464
+ },
31465
+ {
31466
+ type: "event",
31467
+ name: "PriceUpdated",
31468
+ inputs: [
31469
+ {
31470
+ name: "oldPrice",
31471
+ type: "uint256",
31472
+ indexed: false,
31473
+ internalType: "uint256"
31474
+ },
31475
+ {
31476
+ name: "newPrice",
31477
+ type: "uint256",
31478
+ indexed: false,
31479
+ internalType: "uint256"
31480
+ }
31481
+ ],
31482
+ anonymous: false
31483
+ },
31484
+ {
31485
+ type: "event",
31486
+ name: "PurchaseLimitsUpdated",
31487
+ inputs: [
31488
+ {
31489
+ name: "minAmount",
31490
+ type: "uint256",
31491
+ indexed: false,
31492
+ internalType: "uint256"
31493
+ },
31494
+ {
31495
+ name: "maxAmount",
31496
+ type: "uint256",
31497
+ indexed: false,
31498
+ internalType: "uint256"
31499
+ }
31500
+ ],
31501
+ anonymous: false
31502
+ },
31503
+ {
31504
+ type: "event",
31505
+ name: "TreasuryUpdated",
31506
+ inputs: [
31507
+ {
31508
+ name: "oldTreasury",
31509
+ type: "address",
31510
+ indexed: true,
31511
+ internalType: "address"
31512
+ },
31513
+ {
31514
+ name: "newTreasury",
31515
+ type: "address",
31516
+ indexed: true,
31517
+ internalType: "address"
31518
+ }
31519
+ ],
31520
+ anonymous: false
31521
+ },
31522
+ {
31523
+ type: "error",
31524
+ name: "BelowMinPurchase",
31525
+ inputs: [
31526
+ {
31527
+ name: "amount",
31528
+ type: "uint256",
31529
+ internalType: "uint256"
31530
+ },
31531
+ {
31532
+ name: "minimum",
31533
+ type: "uint256",
31534
+ internalType: "uint256"
31535
+ }
31536
+ ]
31537
+ },
31538
+ {
31539
+ type: "error",
31540
+ name: "ExceedsMaxPurchase",
31541
+ inputs: [
31542
+ {
31543
+ name: "amount",
31544
+ type: "uint256",
31545
+ internalType: "uint256"
31546
+ },
31547
+ {
31548
+ name: "maximum",
31549
+ type: "uint256",
31550
+ internalType: "uint256"
31551
+ }
31552
+ ]
31553
+ },
31554
+ {
31555
+ type: "error",
31556
+ name: "InsufficientInventory",
31557
+ inputs: [
31558
+ {
31559
+ name: "requested",
31560
+ type: "uint256",
31561
+ internalType: "uint256"
31562
+ },
31563
+ {
31564
+ name: "available",
31565
+ type: "uint256",
31566
+ internalType: "uint256"
31567
+ }
31568
+ ]
31569
+ },
31570
+ {
31571
+ type: "error",
31572
+ name: "InvalidPaymentTokenDecimals",
31573
+ inputs: [
31574
+ {
31575
+ name: "token",
31576
+ type: "address",
31577
+ internalType: "address"
31578
+ },
31579
+ {
31580
+ name: "decimals",
31581
+ type: "uint8",
31582
+ internalType: "uint8"
31583
+ }
31584
+ ]
31585
+ },
31586
+ {
31587
+ type: "error",
31588
+ name: "InvalidPrice",
31589
+ inputs: []
31590
+ },
31591
+ {
31592
+ type: "error",
31593
+ name: "OwnableInvalidOwner",
31594
+ inputs: [
31595
+ {
31596
+ name: "owner",
31597
+ type: "address",
31598
+ internalType: "address"
31599
+ }
31600
+ ]
31601
+ },
31602
+ {
31603
+ type: "error",
31604
+ name: "OwnableUnauthorizedAccount",
31605
+ inputs: [
31606
+ {
31607
+ name: "account",
31608
+ type: "address",
31609
+ internalType: "address"
31610
+ }
31611
+ ]
31612
+ },
31613
+ {
31614
+ type: "error",
31615
+ name: "PaymentTokenNotAccepted",
31616
+ inputs: [
31617
+ {
31618
+ name: "token",
31619
+ type: "address",
31620
+ internalType: "address"
31621
+ }
31622
+ ]
31623
+ },
31624
+ {
31625
+ type: "error",
31626
+ name: "ReentrancyGuardReentrantCall",
31627
+ inputs: []
31628
+ },
31629
+ {
31630
+ type: "error",
31631
+ name: "SafeERC20FailedOperation",
31632
+ inputs: [
31633
+ {
31634
+ name: "token",
31635
+ type: "address",
31636
+ internalType: "address"
31637
+ }
31638
+ ]
31639
+ },
31640
+ {
31641
+ type: "error",
31642
+ name: "ZeroAddress",
31643
+ inputs: []
31644
+ },
31645
+ {
31646
+ type: "error",
31647
+ name: "ZeroAmount",
31648
+ inputs: []
31649
+ }
31650
+ ];
31651
+
31652
+ // ../core/src/abis/BuyHelper.json
31653
+ var BuyHelper_default = [
31654
+ {
31655
+ type: "constructor",
31656
+ inputs: [
31657
+ {
31658
+ name: "usdc",
31659
+ type: "address",
31660
+ internalType: "address"
31661
+ },
31662
+ {
31663
+ name: "gtoken",
31664
+ type: "address",
31665
+ internalType: "address"
31666
+ },
31667
+ {
31668
+ name: "apnts",
31669
+ type: "address",
31670
+ internalType: "address"
31671
+ },
31672
+ {
31673
+ name: "saleGT",
31674
+ type: "address",
31675
+ internalType: "address"
31676
+ },
31677
+ {
31678
+ name: "saleAP",
31679
+ type: "address",
31680
+ internalType: "address"
31681
+ }
31682
+ ],
31683
+ stateMutability: "nonpayable"
31684
+ },
31685
+ {
31686
+ type: "function",
31687
+ name: "APNTS",
31688
+ inputs: [],
31689
+ outputs: [
31690
+ {
31691
+ name: "",
31692
+ type: "address",
31693
+ internalType: "address"
31694
+ }
31695
+ ],
31696
+ stateMutability: "view"
31697
+ },
31698
+ {
31699
+ type: "function",
31700
+ name: "BUY_INTENT_TYPEHASH",
31701
+ inputs: [],
31702
+ outputs: [
31703
+ {
31704
+ name: "",
31705
+ type: "bytes32",
31706
+ internalType: "bytes32"
31707
+ }
31708
+ ],
31709
+ stateMutability: "view"
31710
+ },
31711
+ {
31712
+ type: "function",
31713
+ name: "DOMAIN_SEPARATOR",
31714
+ inputs: [],
31715
+ outputs: [
31716
+ {
31717
+ name: "",
31718
+ type: "bytes32",
31719
+ internalType: "bytes32"
31720
+ }
31721
+ ],
31722
+ stateMutability: "view"
31723
+ },
31724
+ {
31725
+ type: "function",
31726
+ name: "DOMAIN_TYPEHASH",
31727
+ inputs: [],
31728
+ outputs: [
31729
+ {
31730
+ name: "",
31731
+ type: "bytes32",
31732
+ internalType: "bytes32"
31733
+ }
31734
+ ],
31735
+ stateMutability: "view"
31736
+ },
31737
+ {
31738
+ type: "function",
31739
+ name: "GTOKEN",
31740
+ inputs: [],
31741
+ outputs: [
31742
+ {
31743
+ name: "",
31744
+ type: "address",
31745
+ internalType: "address"
31746
+ }
31747
+ ],
31748
+ stateMutability: "view"
31749
+ },
31750
+ {
31751
+ type: "function",
31752
+ name: "NAME",
31753
+ inputs: [],
31754
+ outputs: [
31755
+ {
31756
+ name: "",
31757
+ type: "string",
31758
+ internalType: "string"
31759
+ }
31760
+ ],
31761
+ stateMutability: "view"
31762
+ },
31763
+ {
31764
+ type: "function",
31765
+ name: "SALE_AP",
31766
+ inputs: [],
31767
+ outputs: [
31768
+ {
31769
+ name: "",
31770
+ type: "address",
31771
+ internalType: "address"
31772
+ }
31773
+ ],
31774
+ stateMutability: "view"
31775
+ },
31776
+ {
31777
+ type: "function",
31778
+ name: "SALE_GT",
31779
+ inputs: [],
31780
+ outputs: [
31781
+ {
31782
+ name: "",
31783
+ type: "address",
31784
+ internalType: "address"
31785
+ }
31786
+ ],
31787
+ stateMutability: "view"
31788
+ },
31789
+ {
31790
+ type: "function",
31791
+ name: "USDC",
31792
+ inputs: [],
31793
+ outputs: [
31794
+ {
31795
+ name: "",
31796
+ type: "address",
31797
+ internalType: "address"
31798
+ }
31799
+ ],
31800
+ stateMutability: "view"
31801
+ },
31802
+ {
31803
+ type: "function",
31804
+ name: "VERSION",
31805
+ inputs: [],
31806
+ outputs: [
31807
+ {
31808
+ name: "",
31809
+ type: "string",
31810
+ internalType: "string"
31811
+ }
31812
+ ],
31813
+ stateMutability: "view"
31814
+ },
31815
+ {
31816
+ type: "function",
31817
+ name: "executeBuy",
31818
+ inputs: [
31819
+ {
31820
+ name: "intent",
31821
+ type: "tuple",
31822
+ internalType: "struct BuyHelper.BuyIntent",
31823
+ components: [
31824
+ {
31825
+ name: "buyer",
31826
+ type: "address",
31827
+ internalType: "address"
31828
+ },
31829
+ {
31830
+ name: "paymentToken",
31831
+ type: "address",
31832
+ internalType: "address"
31833
+ },
31834
+ {
31835
+ name: "paymentAmount",
31836
+ type: "uint256",
31837
+ internalType: "uint256"
31838
+ },
31839
+ {
31840
+ name: "targetToken",
31841
+ type: "address",
31842
+ internalType: "address"
31843
+ },
31844
+ {
31845
+ name: "recipient",
31846
+ type: "address",
31847
+ internalType: "address"
31848
+ },
31849
+ {
31850
+ name: "minOut",
31851
+ type: "uint256",
31852
+ internalType: "uint256"
31853
+ },
31854
+ {
31855
+ name: "deadline",
31856
+ type: "uint256",
31857
+ internalType: "uint256"
31858
+ },
31859
+ {
31860
+ name: "nonce",
31861
+ type: "bytes32",
31862
+ internalType: "bytes32"
31863
+ }
31864
+ ]
31865
+ },
31866
+ {
31867
+ name: "buyIntentSig",
31868
+ type: "bytes",
31869
+ internalType: "bytes"
31870
+ },
31871
+ {
31872
+ name: "transferAuth",
31873
+ type: "tuple",
31874
+ internalType: "struct BuyHelper.TransferAuthExtras",
31875
+ components: [
31876
+ {
31877
+ name: "validAfter",
31878
+ type: "uint256",
31879
+ internalType: "uint256"
31880
+ },
31881
+ {
31882
+ name: "v",
31883
+ type: "uint8",
31884
+ internalType: "uint8"
31885
+ },
31886
+ {
31887
+ name: "r",
31888
+ type: "bytes32",
31889
+ internalType: "bytes32"
31890
+ },
31891
+ {
31892
+ name: "s",
31893
+ type: "bytes32",
31894
+ internalType: "bytes32"
31895
+ }
31896
+ ]
31897
+ }
31898
+ ],
31899
+ outputs: [],
31900
+ stateMutability: "nonpayable"
31901
+ },
31902
+ {
31903
+ type: "function",
31904
+ name: "hashBuyIntent",
31905
+ inputs: [
31906
+ {
31907
+ name: "intent",
31908
+ type: "tuple",
31909
+ internalType: "struct BuyHelper.BuyIntent",
31910
+ components: [
31911
+ {
31912
+ name: "buyer",
31913
+ type: "address",
31914
+ internalType: "address"
31915
+ },
31916
+ {
31917
+ name: "paymentToken",
31918
+ type: "address",
31919
+ internalType: "address"
31920
+ },
31921
+ {
31922
+ name: "paymentAmount",
31923
+ type: "uint256",
31924
+ internalType: "uint256"
31925
+ },
31926
+ {
31927
+ name: "targetToken",
31928
+ type: "address",
31929
+ internalType: "address"
31930
+ },
31931
+ {
31932
+ name: "recipient",
31933
+ type: "address",
31934
+ internalType: "address"
31935
+ },
31936
+ {
31937
+ name: "minOut",
31938
+ type: "uint256",
31939
+ internalType: "uint256"
31940
+ },
31941
+ {
31942
+ name: "deadline",
31943
+ type: "uint256",
31944
+ internalType: "uint256"
31945
+ },
31946
+ {
31947
+ name: "nonce",
31948
+ type: "bytes32",
31949
+ internalType: "bytes32"
31950
+ }
31951
+ ]
31952
+ }
31953
+ ],
31954
+ outputs: [
31955
+ {
31956
+ name: "",
31957
+ type: "bytes32",
31958
+ internalType: "bytes32"
31959
+ }
31960
+ ],
31961
+ stateMutability: "view"
31962
+ },
31963
+ {
31964
+ type: "event",
31965
+ name: "BuyExecuted",
31966
+ inputs: [
31967
+ {
31968
+ name: "buyer",
31969
+ type: "address",
31970
+ indexed: true,
31971
+ internalType: "address"
31972
+ },
31973
+ {
31974
+ name: "targetToken",
31975
+ type: "address",
31976
+ indexed: true,
31977
+ internalType: "address"
31978
+ },
31979
+ {
31980
+ name: "recipient",
31981
+ type: "address",
31982
+ indexed: true,
31983
+ internalType: "address"
31984
+ },
31985
+ {
31986
+ name: "paymentAmount",
31987
+ type: "uint256",
31988
+ indexed: false,
31989
+ internalType: "uint256"
31990
+ },
31991
+ {
31992
+ name: "receivedAmount",
31993
+ type: "uint256",
31994
+ indexed: false,
31995
+ internalType: "uint256"
31996
+ }
31997
+ ],
31998
+ anonymous: false
31999
+ },
32000
+ {
32001
+ type: "error",
32002
+ name: "BelowMinOut",
32003
+ inputs: [
32004
+ {
32005
+ name: "received",
32006
+ type: "uint256",
32007
+ internalType: "uint256"
32008
+ },
32009
+ {
32010
+ name: "minOut",
32011
+ type: "uint256",
32012
+ internalType: "uint256"
32013
+ }
32014
+ ]
32015
+ },
32016
+ {
32017
+ type: "error",
32018
+ name: "Expired",
32019
+ inputs: [
32020
+ {
32021
+ name: "deadline",
32022
+ type: "uint256",
32023
+ internalType: "uint256"
32024
+ },
32025
+ {
32026
+ name: "nowTs",
32027
+ type: "uint256",
32028
+ internalType: "uint256"
32029
+ }
32030
+ ]
32031
+ },
32032
+ {
32033
+ type: "error",
32034
+ name: "InvalidBuyIntentSigner",
32035
+ inputs: [
32036
+ {
32037
+ name: "recovered",
32038
+ type: "address",
32039
+ internalType: "address"
32040
+ },
32041
+ {
32042
+ name: "expected",
32043
+ type: "address",
32044
+ internalType: "address"
32045
+ }
32046
+ ]
32047
+ },
32048
+ {
32049
+ type: "error",
32050
+ name: "InvalidSignatureLength",
32051
+ inputs: [
32052
+ {
32053
+ name: "length",
32054
+ type: "uint256",
32055
+ internalType: "uint256"
32056
+ }
32057
+ ]
32058
+ },
32059
+ {
32060
+ type: "error",
32061
+ name: "ReentrancyGuardReentrantCall",
32062
+ inputs: []
32063
+ },
32064
+ {
32065
+ type: "error",
32066
+ name: "SafeERC20FailedOperation",
32067
+ inputs: [
32068
+ {
32069
+ name: "token",
32070
+ type: "address",
32071
+ internalType: "address"
32072
+ }
32073
+ ]
32074
+ },
32075
+ {
32076
+ type: "error",
32077
+ name: "UnsupportedPaymentToken",
32078
+ inputs: [
32079
+ {
32080
+ name: "paymentToken",
32081
+ type: "address",
32082
+ internalType: "address"
32083
+ }
32084
+ ]
32085
+ },
32086
+ {
32087
+ type: "error",
32088
+ name: "UnsupportedTargetToken",
32089
+ inputs: [
32090
+ {
32091
+ name: "targetToken",
32092
+ type: "address",
32093
+ internalType: "address"
32094
+ }
32095
+ ]
32096
+ },
32097
+ {
32098
+ type: "error",
32099
+ name: "ZeroRecipient",
32100
+ inputs: []
32101
+ }
32102
+ ];
32103
+
29984
32104
  // ../core/src/abis/index.ts
29985
32105
  var RegistryABI = Registry_default.abi || Registry_default;
29986
32106
  var RegistryArtifact = Registry_default;
@@ -30044,6 +32164,10 @@ var CalldataParserRegistryABI = CalldataParserRegistry_default.abi || CalldataPa
30044
32164
  var CalldataParserRegistryArtifact = CalldataParserRegistry_default;
30045
32165
  var AirAccountExtensionABI = AirAccountExtension_default.abi || AirAccountExtension_default;
30046
32166
  var AirAccountExtensionArtifact = AirAccountExtension_default;
32167
+ var ERC20ABI = ERC20_default.abi || ERC20_default;
32168
+ var SaleContractV2ABI = SaleContractV2_default.abi || SaleContractV2_default;
32169
+ var APNTsSaleContractABI = APNTsSaleContract_default.abi || APNTsSaleContract_default;
32170
+ var BuyHelperABI = BuyHelper_default.abi || BuyHelper_default;
30047
32171
  function createAAStarPublicClient(rpcUrl, chain = sepolia) {
30048
32172
  return createPublicClient({
30049
32173
  chain,
@@ -44244,7 +46368,7 @@ var RequirementChecker = class {
44244
46368
  const missingRequirements = [];
44245
46369
  let hasRole = false;
44246
46370
  if (roleId) {
44247
- const { CORE_ADDRESSES: CORE_ADDRESSES2 } = await import('./contract-addresses-TVXSRQ7I.js');
46371
+ const { CORE_ADDRESSES: CORE_ADDRESSES2 } = await import('./contract-addresses-CHZ7PK5H.js');
44248
46372
  hasRole = await this.publicClient.readContract({
44249
46373
  address: this.addresses?.registry || CORE_ADDRESSES2.registry,
44250
46374
  abi: REGISTRY_ABI,
@@ -44257,7 +46381,7 @@ var RequirementChecker = class {
44257
46381
  }
44258
46382
  let hasEnoughGToken = true;
44259
46383
  if (requiredGToken > 0n) {
44260
- const { CORE_ADDRESSES: CORE_ADDRESSES2 } = await import('./contract-addresses-TVXSRQ7I.js');
46384
+ const { CORE_ADDRESSES: CORE_ADDRESSES2 } = await import('./contract-addresses-CHZ7PK5H.js');
44261
46385
  const gtokenBalance = await this.publicClient.readContract({
44262
46386
  address: this.addresses?.gtoken || CORE_ADDRESSES2.gToken,
44263
46387
  abi: ERC20_ABI,
@@ -44273,7 +46397,7 @@ var RequirementChecker = class {
44273
46397
  }
44274
46398
  let hasEnoughAPNTs = true;
44275
46399
  if (requiredAPNTs > 0n) {
44276
- const { CORE_ADDRESSES: CORE_ADDRESSES2 } = await import('./contract-addresses-TVXSRQ7I.js');
46400
+ const { CORE_ADDRESSES: CORE_ADDRESSES2 } = await import('./contract-addresses-CHZ7PK5H.js');
44277
46401
  const apntsBalance = await this.publicClient.readContract({
44278
46402
  address: this.addresses?.apnts || CORE_ADDRESSES2.aPNTs,
44279
46403
  abi: ERC20_ABI,
@@ -44289,7 +46413,7 @@ var RequirementChecker = class {
44289
46413
  }
44290
46414
  let hasSBT = false;
44291
46415
  if (requireSBT) {
44292
- const { CORE_ADDRESSES: CORE_ADDRESSES2 } = await import('./contract-addresses-TVXSRQ7I.js');
46416
+ const { CORE_ADDRESSES: CORE_ADDRESSES2 } = await import('./contract-addresses-CHZ7PK5H.js');
44293
46417
  const sbtBalance = await this.publicClient.readContract({
44294
46418
  address: this.addresses?.mysbt || CORE_ADDRESSES2.mySBT,
44295
46419
  abi: MYSBT_ABI,
@@ -44313,7 +46437,7 @@ var RequirementChecker = class {
44313
46437
  * Check GToken balance only (shortcut)
44314
46438
  */
44315
46439
  async checkGTokenBalance(address, required) {
44316
- const { CORE_ADDRESSES: CORE_ADDRESSES2 } = await import('./contract-addresses-TVXSRQ7I.js');
46440
+ const { CORE_ADDRESSES: CORE_ADDRESSES2 } = await import('./contract-addresses-CHZ7PK5H.js');
44317
46441
  const balance = await this.publicClient.readContract({
44318
46442
  address: this.addresses?.gtoken || CORE_ADDRESSES2.gToken,
44319
46443
  abi: ERC20_ABI,
@@ -44329,7 +46453,7 @@ var RequirementChecker = class {
44329
46453
  * Check aPNTs balance only (shortcut)
44330
46454
  */
44331
46455
  async checkAPNTsBalance(address, required) {
44332
- const { CORE_ADDRESSES: CORE_ADDRESSES2 } = await import('./contract-addresses-TVXSRQ7I.js');
46456
+ const { CORE_ADDRESSES: CORE_ADDRESSES2 } = await import('./contract-addresses-CHZ7PK5H.js');
44333
46457
  const balance = await this.publicClient.readContract({
44334
46458
  address: this.addresses?.apnts || CORE_ADDRESSES2.aPNTs,
44335
46459
  abi: ERC20_ABI,
@@ -44345,7 +46469,7 @@ var RequirementChecker = class {
44345
46469
  * Check if user has MySBT (shortcut)
44346
46470
  */
44347
46471
  async checkHasSBT(address) {
44348
- const { CORE_ADDRESSES: CORE_ADDRESSES2 } = await import('./contract-addresses-TVXSRQ7I.js');
46472
+ const { CORE_ADDRESSES: CORE_ADDRESSES2 } = await import('./contract-addresses-CHZ7PK5H.js');
44349
46473
  const balance = await this.publicClient.readContract({
44350
46474
  address: this.addresses?.mysbt || CORE_ADDRESSES2.mySBT,
44351
46475
  abi: MYSBT_ABI,
@@ -44358,7 +46482,7 @@ var RequirementChecker = class {
44358
46482
  * Check if user has specific role (shortcut)
44359
46483
  */
44360
46484
  async checkHasRole(roleId, address) {
44361
- const { CORE_ADDRESSES: CORE_ADDRESSES2 } = await import('./contract-addresses-TVXSRQ7I.js');
46485
+ const { CORE_ADDRESSES: CORE_ADDRESSES2 } = await import('./contract-addresses-CHZ7PK5H.js');
44362
46486
  return await this.publicClient.readContract({
44363
46487
  address: this.addresses?.registry || CORE_ADDRESSES2.registry,
44364
46488
  abi: REGISTRY_ABI,
@@ -44370,7 +46494,7 @@ var RequirementChecker = class {
44370
46494
  * Check a user's on-chain role stake (`getRoleStake(roleId, operator)`) (shortcut).
44371
46495
  */
44372
46496
  async checkRoleStake(roleId, address, required) {
44373
- const { CORE_ADDRESSES: CORE_ADDRESSES2 } = await import('./contract-addresses-TVXSRQ7I.js');
46497
+ const { CORE_ADDRESSES: CORE_ADDRESSES2 } = await import('./contract-addresses-CHZ7PK5H.js');
44374
46498
  const staked = await this.publicClient.readContract({
44375
46499
  address: this.addresses?.registry || CORE_ADDRESSES2.registry,
44376
46500
  abi: REGISTRY_ABI,
@@ -44540,6 +46664,6 @@ function makeMainnetClient(rpcUrl) {
44540
46664
  (*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
44541
46665
  */
44542
46666
 
44543
- export { AASTAR_COMMUNITY, AAStarAirAccountFactoryV7ABI, AAStarAirAccountFactoryV7Artifact, AAStarAirAccountV7ABI, AAStarAirAccountV7Artifact, AAStarBLSAggregatorABI, AAStarBLSAggregatorArtifact, AAStarBLSAlgorithmABI, AAStarBLSAlgorithmArtifact, AAStarValidatorABI, AAStarValidatorArtifact, ALG_BLS, ALL_ROLES, AgentRegistryABI, AgentRegistryArtifact, AirAccountDelegateABI, AirAccountDelegateArtifact, AirAccountExtensionABI, AirAccountExtensionArtifact, AuthorizationState, BLSAggregatorABI, BLSAggregatorArtifact, BLSHelpers, BLSSigner, BLSValidatorABI, BLSValidatorArtifact, BLS_POP_DST, BRANDING, BREAD_COMMUNITY, BaseClient, BundlerClient, COMMUNITIES, CONTRACTS, CONTRACT_METADATA, CalldataParserRegistryABI, CalldataParserRegistryArtifact, ContractConfigManager, DEFAULT_ADMIN_ROLE, DEFAULT_DVT_NODES, DVTValidatorABI, DVTValidatorArtifact, DVT_TIER_T2, DVT_TIER_T3, EntryPointABI, EntryPointArtifact, EntryPointVersion, ForceExitModuleABI, ForceExitModuleArtifact, GTokenABI, GTokenArtifact, GTokenAuthorizationABI, GTokenAuthorizationArtifact, GTokenStakingABI, GTokenStakingArtifact, GUARDIAN_ADDITION_NONCE_SLOT, GUARDIAN_REMOVAL_NONCE_SLOT, GUARDIAN_SIG_VERSION, INITIAL_ROLE_STAKES, INLINE_ALG_IDS, LINKS, MAX_GUARDIAN_SLOT, MicroPaymentChannelABI, MicroPaymentChannelArtifact, MySBTABI, MySBTArtifact, NETWORKS, NodeType, P256_GUARDIAN_DOMAIN, P256_GUARDIAN_SENTINEL2 as P256_GUARDIAN_SENTINEL, PaymasterABI, PaymasterArtifact, PaymasterFactoryABI, PaymasterFactoryArtifact, PolicyDecision, PolicyRegistryABI, PolicyRegistryArtifact, RECOVERY_NONCE_SLOT, ROLE_ANODE, ROLE_COMMUNITY, ROLE_DVT, ROLE_ENDUSER, ROLE_KMS, ROLE_NAMES, ROLE_PAYMASTER_AOA, ROLE_PAYMASTER_SUPER, ROLE_PERMISSION_LEVELS, RegistryABI, RegistryArtifact, ReputationSystemABI, ReputationSystemArtifact, RequirementChecker, RolePermissionLevel, SECP256R1_N, SECP256R1_N_OVER_2, SEPOLIA_CONTRACTS, SEPOLIA_V2_VERSIONS, SepoliaFaucetAPI, SessionKeyValidatorABI, SessionKeyValidatorArtifact, SimpleAccountABI, SimpleAccountArtifact, SimpleAccountFactoryABI, SimpleAccountFactoryArtifact, StateValidator, SuperPaymasterABI, SuperPaymasterArtifact, TIER_LIMIT_NONCE_SLOT, V2_SUMMARY, WEBAUTHN_GET_CHALLENGE_PREFIX, X402FacilitatorABI, X402FacilitatorArtifact, accountActions, accountFactoryActions, agentActions, agentRegistryActions, aggregatorActions, airAccountActions, airAccountExtensionActions, airAccountFactoryActions, base64UrlEncode, blsAlgorithmActions, buildAddGuardianChallenge, buildAddP256GuardianChallenge, buildApproveRecoveryChallenge, buildCancelRecoveryChallenge, buildInitConfig, buildModifyTierLimitsChallenge, buildP256GuardianChallenge, buildProposeRecoveryChallenge, buildRemoveGuardianChallenge, channelActions, coseToP256XY, createAAStarPublicClient, createHeliosTransport, decodeWebAuthnAssertion, dvtActions, encodeBLSAccountSignature, encodeDVTAccountSignature, encodeDVTVerifierProof, encodeG2Point, encodeWebAuthnAssertion, entryPointActions, forceExitActions, gTokenActions, gTokenAuthorizationActions, getAddressUrl, getAllCommunityConfigs, getAllV2Contracts, getBlockExplorer, getChainId, getCommunities, getCommunity, getCommunityConfig, getContract, getContractNetworks, getContracts, getCoreContracts, getDefaultDvtNodes, getDeploymentDate, getEntryPoint, getNetwork, getPaymasterV4_1, getRoleName, getRpcUrl, getSimpleAccountFactory, getSuperPaymasterV2, getTestAccounts, getTestTokenContracts, getTokenContracts, getTxUrl, getV2ContractByAddress, getV2ContractByName, getV2ContractsByDate, hashToFieldU0U1, isContractNetworkSupported, isRegisteredCommunity, isV2Contract, lookupAddress, needsValidatorRouter, opDataAddGuardian, opDataAddP256Guardian, opDataModifyTierLimits, opDataRecovery, opDataRemoveGuardian, p256GuardianPublicKey, paymasterActions, paymasterFactoryActions, policyRegistryActions, registryActions, reputationActions, resolveEns, resolveEnsVerified, sbtActions, sessionKeyValidatorActions, signP256GuardianAssertion, stakingActions, superPaymasterActions, tokenActions, x402Actions, x402IsNonceUsed, x402NonceKey, xPNTsFactoryABI, xPNTsFactoryActions, xPNTsFactoryArtifact, xPNTsTokenABI, xPNTsTokenActions, xPNTsTokenArtifact };
44544
- //# sourceMappingURL=chunk-BYVG7MO7.js.map
44545
- //# sourceMappingURL=chunk-BYVG7MO7.js.map
46667
+ export { AASTAR_COMMUNITY, AAStarAirAccountFactoryV7ABI, AAStarAirAccountFactoryV7Artifact, AAStarAirAccountV7ABI, AAStarAirAccountV7Artifact, AAStarBLSAggregatorABI, AAStarBLSAggregatorArtifact, AAStarBLSAlgorithmABI, AAStarBLSAlgorithmArtifact, AAStarValidatorABI, AAStarValidatorArtifact, ALG_BLS, ALL_ROLES, APNTsSaleContractABI, AgentRegistryABI, AgentRegistryArtifact, AirAccountDelegateABI, AirAccountDelegateArtifact, AirAccountExtensionABI, AirAccountExtensionArtifact, AuthorizationState, BLSAggregatorABI, BLSAggregatorArtifact, BLSHelpers, BLSSigner, BLSValidatorABI, BLSValidatorArtifact, BLS_POP_DST, BRANDING, BREAD_COMMUNITY, BaseClient, BundlerClient, BuyHelperABI, COMMUNITIES, CONTRACTS, CONTRACT_METADATA, CalldataParserRegistryABI, CalldataParserRegistryArtifact, ContractConfigManager, DEFAULT_ADMIN_ROLE, DEFAULT_DVT_NODES, DVTValidatorABI, DVTValidatorArtifact, DVT_TIER_T2, DVT_TIER_T3, ERC20ABI, EntryPointABI, EntryPointArtifact, EntryPointVersion, ForceExitModuleABI, ForceExitModuleArtifact, GTokenABI, GTokenArtifact, GTokenAuthorizationABI, GTokenAuthorizationArtifact, GTokenStakingABI, GTokenStakingArtifact, GUARDIAN_ADDITION_NONCE_SLOT, GUARDIAN_REMOVAL_NONCE_SLOT, GUARDIAN_SIG_VERSION, INITIAL_ROLE_STAKES, INLINE_ALG_IDS, LINKS, MAX_GUARDIAN_SLOT, MicroPaymentChannelABI, MicroPaymentChannelArtifact, MySBTABI, MySBTArtifact, NETWORKS, NodeType, P256_GUARDIAN_DOMAIN, P256_GUARDIAN_SENTINEL2 as P256_GUARDIAN_SENTINEL, PaymasterABI, PaymasterArtifact, PaymasterFactoryABI, PaymasterFactoryArtifact, PolicyDecision, PolicyRegistryABI, PolicyRegistryArtifact, RECOVERY_NONCE_SLOT, ROLE_ANODE, ROLE_COMMUNITY, ROLE_DVT, ROLE_ENDUSER, ROLE_KMS, ROLE_NAMES, ROLE_PAYMASTER_AOA, ROLE_PAYMASTER_SUPER, ROLE_PERMISSION_LEVELS, RegistryABI, RegistryArtifact, ReputationSystemABI, ReputationSystemArtifact, RequirementChecker, RolePermissionLevel, SECP256R1_N, SECP256R1_N_OVER_2, SEPOLIA_CONTRACTS, SEPOLIA_V2_VERSIONS, SaleContractV2ABI, SepoliaFaucetAPI, SessionKeyValidatorABI, SessionKeyValidatorArtifact, SimpleAccountABI, SimpleAccountArtifact, SimpleAccountFactoryABI, SimpleAccountFactoryArtifact, StateValidator, SuperPaymasterABI, SuperPaymasterArtifact, TIER_LIMIT_NONCE_SLOT, V2_SUMMARY, WEBAUTHN_GET_CHALLENGE_PREFIX, X402FacilitatorABI, X402FacilitatorArtifact, accountActions, accountFactoryActions, agentActions, agentRegistryActions, aggregatorActions, airAccountActions, airAccountExtensionActions, airAccountFactoryActions, base64UrlEncode, blsAlgorithmActions, buildAddGuardianChallenge, buildAddP256GuardianChallenge, buildApproveRecoveryChallenge, buildCancelRecoveryChallenge, buildInitConfig, buildModifyTierLimitsChallenge, buildP256GuardianChallenge, buildProposeRecoveryChallenge, buildRemoveGuardianChallenge, channelActions, coseToP256XY, createAAStarPublicClient, createHeliosTransport, decodeWebAuthnAssertion, dvtActions, encodeBLSAccountSignature, encodeDVTAccountSignature, encodeDVTVerifierProof, encodeG2Point, encodeWebAuthnAssertion, entryPointActions, forceExitActions, gTokenActions, gTokenAuthorizationActions, getAddressUrl, getAllCommunityConfigs, getAllV2Contracts, getBlockExplorer, getChainId, getCommunities, getCommunity, getCommunityConfig, getContract, getContractNetworks, getContracts, getCoreContracts, getDefaultDvtNodes, getDeploymentDate, getEntryPoint, getNetwork, getPaymasterV4_1, getRoleName, getRpcUrl, getSimpleAccountFactory, getSuperPaymasterV2, getTestAccounts, getTestTokenContracts, getTokenContracts, getTxUrl, getV2ContractByAddress, getV2ContractByName, getV2ContractsByDate, hashToFieldU0U1, isContractNetworkSupported, isRegisteredCommunity, isV2Contract, lookupAddress, needsValidatorRouter, opDataAddGuardian, opDataAddP256Guardian, opDataModifyTierLimits, opDataRecovery, opDataRemoveGuardian, p256GuardianPublicKey, paymasterActions, paymasterFactoryActions, policyRegistryActions, registryActions, reputationActions, resolveEns, resolveEnsVerified, sbtActions, sessionKeyValidatorActions, signP256GuardianAssertion, stakingActions, superPaymasterActions, tokenActions, x402Actions, x402IsNonceUsed, x402NonceKey, xPNTsFactoryABI, xPNTsFactoryActions, xPNTsFactoryArtifact, xPNTsTokenABI, xPNTsTokenActions, xPNTsTokenArtifact };
46668
+ //# sourceMappingURL=chunk-6DZCDV4Q.js.map
46669
+ //# sourceMappingURL=chunk-6DZCDV4Q.js.map