@aastar/sdk 0.24.2 → 0.26.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.
- package/dist/UserClient-5PQP6APK.js +6 -0
- package/dist/{UserClient-DPJ6E2XL.js.map → UserClient-5PQP6APK.js.map} +1 -1
- package/dist/UserClient-CD7R3335.cjs +15 -0
- package/dist/{UserClient-4MRK2D7W.cjs.map → UserClient-CD7R3335.cjs.map} +1 -1
- package/dist/account.cjs +8 -8
- package/dist/account.js +3 -3
- package/dist/addresses-D12T3kLs.d.cts +210 -0
- package/dist/addresses-D12T3kLs.d.ts +210 -0
- package/dist/admin.cjs +4 -4
- package/dist/admin.js +3 -3
- package/dist/airaccount.cjs +135 -103
- package/dist/airaccount.d.cts +1 -1
- package/dist/airaccount.d.ts +1 -1
- package/dist/airaccount.js +3 -3
- package/dist/channel.cjs +7 -7
- package/dist/channel.js +3 -3
- package/dist/{chunk-S7IUUQ5E.cjs → chunk-2RHBOBL7.cjs} +6 -6
- package/dist/{chunk-S7IUUQ5E.cjs.map → chunk-2RHBOBL7.cjs.map} +1 -1
- package/dist/{chunk-BPAAWQQA.js → chunk-4GJSK7E6.js} +557 -115
- package/dist/chunk-4GJSK7E6.js.map +1 -0
- package/dist/{chunk-EEWLL7GE.js → chunk-6DZCDV4Q.js} +2137 -13
- package/dist/chunk-6DZCDV4Q.js.map +1 -0
- package/dist/{chunk-MCDFQ5JH.cjs → chunk-7HTUDNH3.cjs} +11 -11
- package/dist/{chunk-MCDFQ5JH.cjs.map → chunk-7HTUDNH3.cjs.map} +1 -1
- package/dist/{chunk-UJPW54CK.js → chunk-7JVL5CU3.js} +3 -3
- package/dist/{chunk-UJPW54CK.js.map → chunk-7JVL5CU3.js.map} +1 -1
- package/dist/{chunk-7FLPD3V4.js → chunk-A4FO6FKN.js} +3 -3
- package/dist/{chunk-7FLPD3V4.js.map → chunk-A4FO6FKN.js.map} +1 -1
- package/dist/{chunk-MANVOQY7.cjs → chunk-CI4UJW5Y.cjs} +5 -5
- package/dist/{chunk-MANVOQY7.cjs.map → chunk-CI4UJW5Y.cjs.map} +1 -1
- package/dist/{chunk-PUE5GEKK.js → chunk-COTHBCR2.js} +3 -3
- package/dist/{chunk-PUE5GEKK.js.map → chunk-COTHBCR2.js.map} +1 -1
- package/dist/{chunk-TQIRRSGL.cjs → chunk-FIMXPANS.cjs} +4 -4
- package/dist/{chunk-TQIRRSGL.cjs.map → chunk-FIMXPANS.cjs.map} +1 -1
- package/dist/{chunk-MXJEULSE.cjs → chunk-G33MXEHU.cjs} +29 -2
- package/dist/chunk-G33MXEHU.cjs.map +1 -0
- package/dist/{chunk-FUY4MHPM.cjs → chunk-GASCTLKR.cjs} +9 -9
- package/dist/{chunk-FUY4MHPM.cjs.map → chunk-GASCTLKR.cjs.map} +1 -1
- package/dist/{chunk-W73Y6JWZ.js → chunk-IG4BG25C.js} +6 -6
- package/dist/{chunk-W73Y6JWZ.js.map → chunk-IG4BG25C.js.map} +1 -1
- package/dist/{chunk-TGEVD7OR.cjs → chunk-J3UAXGNP.cjs} +16 -16
- package/dist/{chunk-TGEVD7OR.cjs.map → chunk-J3UAXGNP.cjs.map} +1 -1
- package/dist/{chunk-Y5QM4LI4.js → chunk-JCEUTCFZ.js} +4 -4
- package/dist/{chunk-Y5QM4LI4.js.map → chunk-JCEUTCFZ.js.map} +1 -1
- package/dist/{chunk-IB3KOSHW.cjs → chunk-KOWTQJIX.cjs} +2177 -49
- package/dist/chunk-KOWTQJIX.cjs.map +1 -0
- package/dist/chunk-L6D2AGTF.js +500 -0
- package/dist/chunk-L6D2AGTF.js.map +1 -0
- package/dist/{chunk-KYXXIKEI.cjs → chunk-LRPAX5AG.cjs} +32 -32
- package/dist/{chunk-KYXXIKEI.cjs.map → chunk-LRPAX5AG.cjs.map} +1 -1
- package/dist/{chunk-UCLK6LTB.js → chunk-MBWBHKUE.js} +28 -3
- package/dist/chunk-MBWBHKUE.js.map +1 -0
- package/dist/{chunk-3FRNYRWI.cjs → chunk-NHDZQPDE.cjs} +26 -26
- package/dist/{chunk-3FRNYRWI.cjs.map → chunk-NHDZQPDE.cjs.map} +1 -1
- package/dist/{chunk-HP44S5U5.cjs → chunk-OBPTMV5W.cjs} +5 -5
- package/dist/{chunk-HP44S5U5.cjs.map → chunk-OBPTMV5W.cjs.map} +1 -1
- package/dist/{chunk-SX5GUCTF.js → chunk-QTXPAGNX.js} +9 -9
- package/dist/{chunk-SX5GUCTF.js.map → chunk-QTXPAGNX.js.map} +1 -1
- package/dist/{chunk-PTVXBXZX.js → chunk-UANSP3OK.js} +3 -3
- package/dist/{chunk-PTVXBXZX.js.map → chunk-UANSP3OK.js.map} +1 -1
- package/dist/{chunk-P3B6UTED.js → chunk-UTSFTWFC.js} +3 -3
- package/dist/{chunk-P3B6UTED.js.map → chunk-UTSFTWFC.js.map} +1 -1
- package/dist/{chunk-4Q6FADF6.cjs → chunk-UZE7IPOK.cjs} +571 -121
- package/dist/chunk-UZE7IPOK.cjs.map +1 -0
- package/dist/chunk-WTURYJEA.cjs +504 -0
- package/dist/chunk-WTURYJEA.cjs.map +1 -0
- package/dist/{chunk-XBZGVJ5K.js → chunk-YR7CTWY6.js} +3 -3
- package/dist/{chunk-XBZGVJ5K.js.map → chunk-YR7CTWY6.js.map} +1 -1
- package/dist/{contract-addresses-RABD77VP.cjs → contract-addresses-6K6IB5OB.cjs} +13 -13
- package/dist/{contract-addresses-RABD77VP.cjs.map → contract-addresses-6K6IB5OB.cjs.map} +1 -1
- package/dist/{contract-addresses-TVXSRQ7I.js → contract-addresses-CHZ7PK5H.js} +3 -3
- package/dist/{contract-addresses-TVXSRQ7I.js.map → contract-addresses-CHZ7PK5H.js.map} +1 -1
- package/dist/core.cjs +285 -261
- package/dist/core.d.cts +6 -175
- package/dist/core.d.ts +6 -175
- package/dist/core.js +2 -2
- package/dist/dapp.cjs +6 -6
- package/dist/dapp.js +3 -3
- package/dist/enduser.cjs +7 -7
- package/dist/enduser.js +4 -4
- package/dist/identity.cjs +6 -6
- package/dist/identity.js +3 -3
- package/dist/index.cjs +406 -374
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +17 -17
- package/dist/kms.cjs +135 -103
- package/dist/kms.d.cts +330 -26
- package/dist/kms.d.ts +330 -26
- package/dist/kms.js +3 -3
- package/dist/operator.cjs +7 -7
- package/dist/operator.js +3 -3
- package/dist/paymaster.cjs +16 -16
- package/dist/paymaster.js +3 -3
- package/dist/{src-VO7TXJPG.cjs → src-DNURNUIA.cjs} +287 -263
- package/dist/src-DNURNUIA.cjs.map +1 -0
- package/dist/{src-RM6DDR7K.cjs → src-DZDH3BSU.cjs} +18 -18
- package/dist/src-DZDH3BSU.cjs.map +1 -0
- package/dist/{src-HKOFZ4V3.js → src-EVM7OESP.js} +5 -5
- package/dist/src-EVM7OESP.js.map +1 -0
- package/dist/src-FY3KAPPC.js +5 -0
- package/dist/src-FY3KAPPC.js.map +1 -0
- package/dist/tokens.cjs +12 -4
- package/dist/tokens.d.cts +133 -1
- package/dist/tokens.d.ts +133 -1
- package/dist/tokens.js +3 -3
- package/dist/x402.cjs +26 -26
- package/dist/x402.js +3 -3
- package/package.json +1 -1
- package/dist/UserClient-4MRK2D7W.cjs +0 -15
- package/dist/UserClient-DPJ6E2XL.js +0 -6
- package/dist/chunk-4Q6FADF6.cjs.map +0 -1
- package/dist/chunk-BPAAWQQA.js.map +0 -1
- package/dist/chunk-EEWLL7GE.js.map +0 -1
- package/dist/chunk-IB3KOSHW.cjs.map +0 -1
- package/dist/chunk-MXJEULSE.cjs.map +0 -1
- package/dist/chunk-O2CN77MV.js +0 -226
- package/dist/chunk-O2CN77MV.js.map +0 -1
- package/dist/chunk-UCLK6LTB.js.map +0 -1
- package/dist/chunk-V23XPVHO.cjs +0 -228
- package/dist/chunk-V23XPVHO.cjs.map +0 -1
- package/dist/src-HKOFZ4V3.js.map +0 -1
- package/dist/src-L2BLX34S.js +0 -5
- package/dist/src-L2BLX34S.js.map +0 -1
- package/dist/src-RM6DDR7K.cjs.map +0 -1
- package/dist/src-VO7TXJPG.cjs.map +0 -1
package/dist/core.d.cts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Address, Chain, Hex, Account, Hash, BlockNumber, BlockTag, PublicClient as PublicClient$1, WalletClient, CustomTransportConfig } from 'viem';
|
|
2
|
+
export { C as CANONICAL_ADDRESSES, a as CanonicalAddresses, b as LAUNCH_SALE_ADDRESSES, L as LaunchSaleAddresses, S as SupportedChainId, d as describeSupportedChains, c as getCanonicalAddresses, g as getLaunchSaleAddresses, i as isSupportedChainId, l as listSupportedChainIds } from './addresses-D12T3kLs.cjs';
|
|
2
3
|
import { P as PublicClient } from './doc-types-471vSmPO.cjs';
|
|
3
4
|
export { W as WalletClient } from './doc-types-471vSmPO.cjs';
|
|
4
5
|
export { a as BaseClient, B as BusinessResult, C as ClientConfig, T as TransactionOptions } from './BaseClient-CkBhQ1ou.cjs';
|
|
@@ -146,180 +147,6 @@ declare const ALL_ADDRESSES: {
|
|
|
146
147
|
readonly agentReputationRegistry: `0x${string}`;
|
|
147
148
|
};
|
|
148
149
|
|
|
149
|
-
/**
|
|
150
|
-
* Canonical Contract Addresses for Supported Networks
|
|
151
|
-
* These are hardcoded as defaults for NPM distribution.
|
|
152
|
-
*
|
|
153
|
-
* SINGLE SOURCE OF TRUTH for SDK contract addresses (Beta3.1 P2.8).
|
|
154
|
-
* The root `config.{network}.json` files are dev/deploy-time overrides and MUST
|
|
155
|
-
* agree with this table for any network that has a chainId entry here. The
|
|
156
|
-
* `scripts/check-address-consistency.ts` drift check (CI: `pnpm run check:addresses`)
|
|
157
|
-
* enforces that. NOTE: `@aastar/shared-config` is a separate external repo (vendored
|
|
158
|
-
* as git submodules under ext/ and lib/), NOT a workspace package and NOT the SDK's
|
|
159
|
-
* source of truth — do not treat it as canonical here.
|
|
160
|
-
*/
|
|
161
|
-
|
|
162
|
-
declare const CANONICAL_ADDRESSES: {
|
|
163
|
-
readonly 10: {
|
|
164
|
-
readonly registry: "0x997686219F31405503D32728B1f094F115EF24e7";
|
|
165
|
-
readonly gToken: "0x8d6Fe002dDacCcFBD377F684EC1825f2E1ab7ef6";
|
|
166
|
-
readonly staking: "0x7A1216C2d814D2389698C64eD23AA1aA9Eb6343E";
|
|
167
|
-
readonly sbt: "0x28eBFc5fc03B1d7648254AbF1C7B39DbFdef1a94";
|
|
168
|
-
readonly reputationSystem: "0xA9560898dC0eE4F9Ed3F1db17dbf74dE65e925c2";
|
|
169
|
-
readonly superPaymaster: "0xA2c9A6e95f19f5D2a364CBCbB5f0b32B1B4d140E";
|
|
170
|
-
readonly paymasterFactory: "0x58A7F6E44a57028A255794119F8b37124c9a7eB8";
|
|
171
|
-
readonly paymasterV4: "0x67a70a578E142b950987081e7016906ae4F56Df4";
|
|
172
|
-
readonly paymasterV4Impl: "0xc4dd13F7825409EEC13FBCBdD9D8f6d618207cca";
|
|
173
|
-
readonly xPNTsFactory: "0x864971a26384d9DCC7115f0bBC428e2623F28b6e";
|
|
174
|
-
readonly blsAggregator: "0x1C305372ecc5a36CBef1FA371392234bCD55eB19";
|
|
175
|
-
readonly blsValidator: "0xA88ADec5A8dc422B57488272d5aD5913d728942A";
|
|
176
|
-
readonly dvtValidator: "0x31Ede6454a56293f7cf2323CA5d5F9a6230558Fb";
|
|
177
|
-
readonly entryPoint: "0x0000000071727De22E5E9d8BAf0edAc6f37da032";
|
|
178
|
-
readonly aPNTs: "0x0B41C78081B5A141eb4C3C7E7FD8E58A7Bde553B";
|
|
179
|
-
readonly priceFeed: "0x13e3Ee699D1909E989722E753853AE30b17e08c5";
|
|
180
|
-
readonly simpleAccountFactory: "0x91E60e0613810449d098b0b5Ec8b51A0FE8c8985";
|
|
181
|
-
readonly microPaymentChannel: "0x0000000000000000000000000000000000000000";
|
|
182
|
-
readonly agentIdentityRegistry: "0x0000000000000000000000000000000000000000";
|
|
183
|
-
readonly agentReputationRegistry: "0x0000000000000000000000000000000000000000";
|
|
184
|
-
readonly agentValidationRegistry: "0x0000000000000000000000000000000000000000";
|
|
185
|
-
readonly aaStarBLSAlgorithm: "0x0000000000000000000000000000000000000000";
|
|
186
|
-
readonly aaStarValidator: "0x0000000000000000000000000000000000000000";
|
|
187
|
-
readonly aaStarBLSAggregator: "0x0000000000000000000000000000000000000000";
|
|
188
|
-
readonly sessionKeyValidator: "0x0000000000000000000000000000000000000000";
|
|
189
|
-
readonly forceExitModule: "0x0000000000000000000000000000000000000000";
|
|
190
|
-
readonly airAccountDelegate: "0x0000000000000000000000000000000000000000";
|
|
191
|
-
readonly calldataParserRegistry: "0x0000000000000000000000000000000000000000";
|
|
192
|
-
readonly airAccountFactoryV7: "0x0000000000000000000000000000000000000000";
|
|
193
|
-
readonly airAccountV7Impl: "0x0000000000000000000000000000000000000000";
|
|
194
|
-
readonly airAccountExtension: "0x0000000000000000000000000000000000000000";
|
|
195
|
-
readonly agentRegistry: "0x0000000000000000000000000000000000000000";
|
|
196
|
-
readonly policyRegistry: "0x0000000000000000000000000000000000000000";
|
|
197
|
-
readonly x402Facilitator: "0x0000000000000000000000000000000000000000";
|
|
198
|
-
readonly timelockController: "0x0000000000000000000000000000000000000000";
|
|
199
|
-
readonly pnts: "0x0000000000000000000000000000000000000000";
|
|
200
|
-
};
|
|
201
|
-
readonly 11155111: {
|
|
202
|
-
readonly registry: "0x3F920B25f8b65988359C372F66F036E48adFc556";
|
|
203
|
-
readonly gToken: "0x20a051502a7AE6e40cfFd6EBe59057538E698984";
|
|
204
|
-
readonly staking: "0x3B363598746Ea57314d4869B160940948c569D48";
|
|
205
|
-
readonly sbt: "0x072A0D12f4212B6baD7c6d0A633eaffbDE9105bF";
|
|
206
|
-
readonly reputationSystem: "0x7fEd690E1663755e24a1C9d6164336809d68a578";
|
|
207
|
-
readonly superPaymaster: "0x030025f40d509b1a99547bAEb3795bD27F7182b7";
|
|
208
|
-
readonly paymasterFactory: "0x0Aa06EA5295eeD4D48c93c594Db1CBf3626971A5";
|
|
209
|
-
readonly paymasterV4: "0x1f0D4eF151a79948070D387BaC43b1321F0c41e3";
|
|
210
|
-
readonly paymasterV4Impl: "0x59DCA5861aaDA602fE1BFbfcc36DFAc36C58623d";
|
|
211
|
-
readonly xPNTsFactory: "0xCec3655525a112882E74Fb7C26AcB267a07724cb";
|
|
212
|
-
readonly blsAggregator: "0x15387e161c1b3dAe7c66Fbd5c1F32837B58B2e79";
|
|
213
|
-
readonly blsValidator: "0x0A71C5a32b8CBC517523D2C88b539Ab22AeF0654";
|
|
214
|
-
readonly dvtValidator: "0x19BA9829C784E4A41b68960b9c0bA55f83718997";
|
|
215
|
-
readonly entryPoint: "0x0000000071727De22E5E9d8BAf0edAc6f37da032";
|
|
216
|
-
readonly aPNTs: "0x9e66B457E0ABb1F139FD8A596d00f784eBA2873b";
|
|
217
|
-
readonly priceFeed: "0x694AA1769357215DE4FAC081bf1f309aDC325306";
|
|
218
|
-
readonly simpleAccountFactory: "0x91E60e0613810449d098b0b5Ec8b51A0FE8c8985";
|
|
219
|
-
readonly microPaymentChannel: "0x405851A141Cde827E33247d4D4089Af2814c2FF5";
|
|
220
|
-
readonly agentIdentityRegistry: "0x8004A818BFB912233c491871b3d84c89A494BD9e";
|
|
221
|
-
readonly agentReputationRegistry: "0x8004B663056A597Dffe9eCcC1965A193B7388713";
|
|
222
|
-
readonly agentValidationRegistry: "0x8004Cb1BF31DAf7788923b405b754f57acEB4272";
|
|
223
|
-
readonly aaStarBLSAlgorithm: "0xAF525A161CB17e0A1b6254ef0B8d8473bdA05174";
|
|
224
|
-
readonly aaStarValidator: "0xfcDfd17a373E037c3F9C8ffE2c781915E7Ae6e11";
|
|
225
|
-
readonly aaStarBLSAggregator: "0x35775df9a4f4dB42Ea0C46118a12dDd0cEc70609";
|
|
226
|
-
readonly sessionKeyValidator: "0x6810CfB7c72D16e044a17694fAa8076e517264D0";
|
|
227
|
-
readonly forceExitModule: "0x3fDe77868b74a7979A40a2293a1CD265fbe66EEc";
|
|
228
|
-
readonly airAccountDelegate: "0xd2735E54C5f5f2BF523b8a9ddd0E183624c3f2c0";
|
|
229
|
-
readonly calldataParserRegistry: "0x7dEea4544446826601014bD94d0F6432A67496F5";
|
|
230
|
-
readonly airAccountFactoryV7: "0x99C9300d52EDD9f4B7135DEd1811fBa6FFa1DDC6";
|
|
231
|
-
readonly airAccountV7Impl: "0xd51db7eB20FF99c8588281CBe1785681Bb17D473";
|
|
232
|
-
readonly airAccountExtension: "0x5529f50811814E0a4966cFC21200DCeF9C3FCb5B";
|
|
233
|
-
readonly agentRegistry: "0xbcE1163817EEBA2E07d39424427B10937bF1D121";
|
|
234
|
-
readonly policyRegistry: "0x8c2488d46d5447418558c38AA6441720df656094";
|
|
235
|
-
readonly x402Facilitator: "0x326Fc3413c8A0185b0179B971C69813B6dFD971B";
|
|
236
|
-
readonly timelockController: "0xB734df3c0A1809bc06708512363D368Ac51dF1A2";
|
|
237
|
-
readonly pnts: "0xC687f8a115D308ECD39658a8EE33bC3c8F75EE31";
|
|
238
|
-
};
|
|
239
|
-
readonly 11155420: {
|
|
240
|
-
readonly registry: "0xcf6860Ab57de8669756997e414D9c52B6e301972";
|
|
241
|
-
readonly gToken: "0xC341c88453372021d0221834307613c2e99fE718";
|
|
242
|
-
readonly staking: "0x5f57B931C849e8E255F22755506eB2255aB22a7C";
|
|
243
|
-
readonly sbt: "0x2c3Ca1553dC1B8870381E8E56C7b3e3A3ae162f0";
|
|
244
|
-
readonly reputationSystem: "0x891EC0f84D9275839B8dAf74e87B23F2DBd7f9c9";
|
|
245
|
-
readonly superPaymaster: "0x9eC1FE8134A1C05aD34ba2E4e8758dAe0a009B94";
|
|
246
|
-
readonly paymasterFactory: "0x1e3b9d12eAc27867a523d0537902441B0E7D98d8";
|
|
247
|
-
readonly paymasterV4: "0xf250416C940605a1D423ccd059668219cf7D80ea";
|
|
248
|
-
readonly paymasterV4Impl: "0x906123080207F250B1C9F299991512Cb31f35b2f";
|
|
249
|
-
readonly xPNTsFactory: "0x7792a49C9E91e0E9B631B27D885d15e971B7482A";
|
|
250
|
-
readonly blsAggregator: "0x6e06b17b1a4D2D973F7E3e026e24b4393315736c";
|
|
251
|
-
readonly blsValidator: "0x260fa905CcE1f5b29Afe9d627c01fAAE4A66A7F5";
|
|
252
|
-
readonly dvtValidator: "0x0087cA806109E150438116cAA414580BB5fa9195";
|
|
253
|
-
readonly entryPoint: "0x0000000071727De22E5E9d8BAf0edAc6f37da032";
|
|
254
|
-
readonly aPNTs: "0x3BBcA92Ad828b3dD619c980Ba09f929b9d2BC440";
|
|
255
|
-
readonly priceFeed: "0x61Ec26aA57019C486B10502285c5A3D4A4750AD7";
|
|
256
|
-
readonly simpleAccountFactory: "0x91E6060613810449d098b0b5EC8b51A0fe8C8985";
|
|
257
|
-
readonly microPaymentChannel: "0x0000000000000000000000000000000000000000";
|
|
258
|
-
readonly agentIdentityRegistry: "0x0000000000000000000000000000000000000000";
|
|
259
|
-
readonly agentReputationRegistry: "0x0000000000000000000000000000000000000000";
|
|
260
|
-
readonly agentValidationRegistry: "0x0000000000000000000000000000000000000000";
|
|
261
|
-
readonly aaStarBLSAlgorithm: "0x0000000000000000000000000000000000000000";
|
|
262
|
-
readonly aaStarValidator: "0x0000000000000000000000000000000000000000";
|
|
263
|
-
readonly aaStarBLSAggregator: "0x0000000000000000000000000000000000000000";
|
|
264
|
-
readonly sessionKeyValidator: "0x0000000000000000000000000000000000000000";
|
|
265
|
-
readonly forceExitModule: "0x0000000000000000000000000000000000000000";
|
|
266
|
-
readonly airAccountDelegate: "0x0000000000000000000000000000000000000000";
|
|
267
|
-
readonly calldataParserRegistry: "0x0000000000000000000000000000000000000000";
|
|
268
|
-
readonly airAccountFactoryV7: "0x0000000000000000000000000000000000000000";
|
|
269
|
-
readonly airAccountV7Impl: "0x0000000000000000000000000000000000000000";
|
|
270
|
-
readonly airAccountExtension: "0x0000000000000000000000000000000000000000";
|
|
271
|
-
readonly agentRegistry: "0x0000000000000000000000000000000000000000";
|
|
272
|
-
readonly policyRegistry: "0x0000000000000000000000000000000000000000";
|
|
273
|
-
readonly x402Facilitator: "0x0000000000000000000000000000000000000000";
|
|
274
|
-
readonly timelockController: "0x0000000000000000000000000000000000000000";
|
|
275
|
-
readonly pnts: "0x0000000000000000000000000000000000000000";
|
|
276
|
-
};
|
|
277
|
-
};
|
|
278
|
-
type CanonicalAddresses = (typeof CANONICAL_ADDRESSES)[keyof typeof CANONICAL_ADDRESSES];
|
|
279
|
-
type SupportedChainId = keyof typeof CANONICAL_ADDRESSES;
|
|
280
|
-
/**
|
|
281
|
-
* Chain IDs that have a canonical address book in {@link CANONICAL_ADDRESSES}.
|
|
282
|
-
*
|
|
283
|
-
* @example
|
|
284
|
-
* ```ts
|
|
285
|
-
* listSupportedChainIds(); // [10, 11155111, 11155420]
|
|
286
|
-
* ```
|
|
287
|
-
*/
|
|
288
|
-
declare function listSupportedChainIds(): number[];
|
|
289
|
-
/** True if {@link CANONICAL_ADDRESSES} has an entry for `chainId`. */
|
|
290
|
-
declare function isSupportedChainId(chainId: number): chainId is SupportedChainId;
|
|
291
|
-
/**
|
|
292
|
-
* Resolve the canonical contract address book for a chain, keyed by `chainId`,
|
|
293
|
-
* normalized to the key names the role-based client factories expect.
|
|
294
|
-
*
|
|
295
|
-
* The canonical table uses `staking` / `sbt`; the historical client factories
|
|
296
|
-
* (and many consumers) reference `gTokenStaking` / `mySBT`. This helper returns
|
|
297
|
-
* the canonical set plus those aliases so a single object satisfies both, which
|
|
298
|
-
* is what makes `createEndUserClient({ chain })` resolve addresses automatically
|
|
299
|
-
* — no manual `addresses` needed for any supported chain.
|
|
300
|
-
*
|
|
301
|
-
* @param chainId - EVM chain id (e.g. 10 = Optimism, 11155111 = Sepolia).
|
|
302
|
-
* @returns The normalized address record, or `undefined` if the chain has no
|
|
303
|
-
* canonical entry (caller must then pass `addresses` explicitly).
|
|
304
|
-
*
|
|
305
|
-
* @example
|
|
306
|
-
* ```ts
|
|
307
|
-
* import { optimism } from 'viem/chains';
|
|
308
|
-
* const addrs = getCanonicalAddresses(optimism.id); // chainId 10
|
|
309
|
-
* addrs?.registry; addrs?.mySBT; // alias of `sbt`
|
|
310
|
-
* ```
|
|
311
|
-
*/
|
|
312
|
-
declare function getCanonicalAddresses(chainId: number): (CanonicalAddresses & {
|
|
313
|
-
gTokenStaking: Address;
|
|
314
|
-
mySBT: Address;
|
|
315
|
-
}) | undefined;
|
|
316
|
-
/**
|
|
317
|
-
* A friendly, human-readable list of the supported chains for error messages —
|
|
318
|
-
* e.g. `"OP Mainnet (10), Sepolia (11155111), OP Sepolia (11155420)"`. Names come
|
|
319
|
-
* from viem/chains so callers recognize them by the same label viem uses.
|
|
320
|
-
*/
|
|
321
|
-
declare function describeSupportedChains(): string;
|
|
322
|
-
|
|
323
150
|
/**
|
|
324
151
|
* AAstar Smart Contract Addresses
|
|
325
152
|
*
|
|
@@ -3207,6 +3034,10 @@ declare const AirAccountExtensionArtifact: {
|
|
|
3207
3034
|
anonymous?: undefined;
|
|
3208
3035
|
})[];
|
|
3209
3036
|
};
|
|
3037
|
+
declare const ERC20ABI: any;
|
|
3038
|
+
declare const SaleContractV2ABI: any;
|
|
3039
|
+
declare const APNTsSaleContractABI: any;
|
|
3040
|
+
declare const BuyHelperABI: any;
|
|
3210
3041
|
|
|
3211
3042
|
/**
|
|
3212
3043
|
* Creates a standard AAStar public client for any given chain.
|
|
@@ -6967,4 +6798,4 @@ declare function resolveEnsVerified(name: string, options?: EnsOptions): Promise
|
|
|
6967
6798
|
verified: boolean;
|
|
6968
6799
|
}>;
|
|
6969
6800
|
|
|
6970
|
-
export { AASTAR_COMMUNITY, AAStarAirAccountFactoryV7ABI, AAStarAirAccountFactoryV7Artifact, AAStarAirAccountV7ABI, AAStarAirAccountV7Artifact, AAStarBLSAggregatorABI, AAStarBLSAggregatorArtifact, AAStarBLSAlgorithmABI, AAStarBLSAlgorithmArtifact, AAStarValidatorABI, AAStarValidatorArtifact, AGENT_IDENTITY_REGISTRY_ADDRESS, AGENT_REPUTATION_REGISTRY_ADDRESS, ALG_BLS, ALL_ADDRESSES, ALL_ROLES, APNTS_ADDRESS, type AccountActions, type AccountBalance, type AccountFactoryActions, type AgentActions, AgentRegistryABI, type AgentRegistryActions, AgentRegistryArtifact, type AgentSponsorshipPolicy, type AggregatorActions, AirAccountDelegateABI, AirAccountDelegateArtifact, AirAccountExtensionABI, type AirAccountExtensionActions, AirAccountExtensionArtifact, type AirAccountFactoryActions, type AssetPolicy, type AssetPolicyInput, AuthorizationState, type BLSAccountSignatureParams, BLSAggregatorABI, BLSAggregatorArtifact, type BLSAlgorithmActions, type BLSG1Point, BLSHelpers, BLSSigner, BLSValidatorABI, BLSValidatorArtifact, BLS_AGGREGATOR_ADDRESS, BLS_POP_DST, BLS_VALIDATOR_ADDRESS, BPS_DENOMINATOR, BRANDING, BREAD_COMMUNITY, type BalanceValidationParams, type BatchMintResult, type BuildP256GuardianChallengeParams, BundlerClient, type BundlerResponse,
|
|
6801
|
+
export { AASTAR_COMMUNITY, AAStarAirAccountFactoryV7ABI, AAStarAirAccountFactoryV7Artifact, AAStarAirAccountV7ABI, AAStarAirAccountV7Artifact, AAStarBLSAggregatorABI, AAStarBLSAggregatorArtifact, AAStarBLSAlgorithmABI, AAStarBLSAlgorithmArtifact, AAStarValidatorABI, AAStarValidatorArtifact, AGENT_IDENTITY_REGISTRY_ADDRESS, AGENT_REPUTATION_REGISTRY_ADDRESS, ALG_BLS, ALL_ADDRESSES, ALL_ROLES, APNTS_ADDRESS, APNTsSaleContractABI, type AccountActions, type AccountBalance, type AccountFactoryActions, type AgentActions, AgentRegistryABI, type AgentRegistryActions, AgentRegistryArtifact, type AgentSponsorshipPolicy, type AggregatorActions, AirAccountDelegateABI, AirAccountDelegateArtifact, AirAccountExtensionABI, type AirAccountExtensionActions, AirAccountExtensionArtifact, type AirAccountFactoryActions, type AssetPolicy, type AssetPolicyInput, AuthorizationState, type BLSAccountSignatureParams, BLSAggregatorABI, BLSAggregatorArtifact, type BLSAlgorithmActions, type BLSG1Point, BLSHelpers, BLSSigner, BLSValidatorABI, BLSValidatorArtifact, BLS_AGGREGATOR_ADDRESS, BLS_POP_DST, BLS_VALIDATOR_ADDRESS, BPS_DENOMINATOR, BRANDING, BREAD_COMMUNITY, type BalanceValidationParams, type BatchMintResult, type BuildP256GuardianChallengeParams, BundlerClient, type BundlerResponse, BuyHelperABI, CHAIN_MAINNET, CHAIN_SEPOLIA, COMMUNITIES, COMMUNITY_OWNERS, CONTRACTS, CONTRACT_METADATA, CONTRACT_SRC_HASH, CORE_ADDRESSES, CalldataParserRegistryABI, CalldataParserRegistryArtifact, type CheckResourcesOptions, type CommunityConfig, type CommunityProfile, type ContractCategory, ContractConfigManager, type ContractNetwork, type ContractScope, type ContractScopeInput, type ContractVersion, DEFAULT_ADMIN_ROLE, DEFAULT_APNTS_PRICE_USD, DEFAULT_CALL_GAS_LIMIT, DEFAULT_DVT_NODES, DEFAULT_GAS_TOKEN_MINT_AMOUNT, DEFAULT_PRE_VERIFICATION_GAS, DEFAULT_TIMEOUT_MS, DEFAULT_TOKEN_NAME, DEFAULT_TOKEN_SYMBOL, DEFAULT_USDT_MINT_AMOUNT, DEFAULT_VERIFICATION_GAS_LIMIT, type DVTAccountSignatureParams, type DVTActions, type DVTNode, type DVTTier, DVTValidatorABI, DVTValidatorArtifact, DVT_TIER_T2, DVT_TIER_T3, DVT_VALIDATOR_ADDRESS, type DecodedWebAuthnAssertion, type DeploymentValidationParams, ENTRY_POINT_ADDRESS, ERC20ABI, type ERC20Actions, type EncodeWebAuthnAssertionParams, type EnsOptions, EntryPointABI, type EntryPointActions, EntryPointArtifact, EntryPointVersion, FAUCET_API_URL, type FaucetConfig, type FaucetPreparationResult, type ForceExitActions, ForceExitModuleABI, ForceExitModuleArtifact, GTOKEN_ADDRESS, GTOKEN_STAKING_ADDRESS, GTokenABI, type GTokenActions, GTokenArtifact, GTokenAuthorizationABI, type GTokenAuthorizationActions, GTokenAuthorizationArtifact, GTokenStakingABI, GTokenStakingArtifact, GUARDIAN_ADDITION_NONCE_SLOT, GUARDIAN_REMOVAL_NONCE_SLOT, GUARDIAN_SIG_VERSION, type GuardianOpLabel, type HashToFieldU0U1, type HeliosTransportConfig, INITIAL_ROLE_STAKES, INLINE_ALG_IDS, InitConfig, LINKS, MAX_GUARDIAN_SLOT, MAX_SERVICE_FEE, MICRO_PAYMENT_CHANNEL_ADDRESS, MONITORING_ADDRESSES, MicroPaymentChannelABI, MicroPaymentChannelArtifact, MySBTABI, MySBTArtifact, NETWORKS, NODE_STAKE_AMOUNTS, type NetworkContracts, NodeType, OFFICIAL_ADDRESSES, type OperatorMode, type P256SessionState, P256_GUARDIAN_DOMAIN, P256_GUARDIAN_SENTINEL, PAYMASTER_ADDRESSES, PAYMASTER_FACTORY_ADDRESS, PAYMASTER_V4_ADDRESS, PAYMASTER_V4_IMPL_ADDRESS, PaymasterABI, type PaymasterActions, PaymasterArtifact, PaymasterFactoryABI, type PaymasterFactoryActions, PaymasterFactoryArtifact, type PendingExit, PolicyDecision, PolicyRegistryABI, type PolicyRegistryActions, PolicyRegistryArtifact, PublicClient, RECOVERY_NONCE_SLOT, REGISTRY_ADDRESS, REPUTATION_SYSTEM_ADDRESS, ROLE_ANODE, ROLE_COMMUNITY, ROLE_DVT, ROLE_ENDUSER, ROLE_KMS, ROLE_NAMES, ROLE_PAYMASTER_AOA, ROLE_PAYMASTER_SUPER, ROLE_PERMISSION_LEVELS, RegistryABI, type RegistryActions, RegistryArtifact, type ReputationActions, type ReputationBreakdown, type ReputationRule, ReputationSystemABI, ReputationSystemArtifact, RequirementChecker, type ResourceBoolCheck, type ResourceReport, type ResourceStakeCheck, type RoleConfig, type RoleConfigDetailed, RolePermissionLevel, type RoleRequirement, type RoleValidationParams, type SBTActions, type SBTData, type SBTMembership, SBT_ADDRESS, SECP256R1_N, SECP256R1_N_OVER_2, SEPOLIA_CONTRACTS, SEPOLIA_V2_VERSIONS, SERVICE_FEE_RATE, SUPER_PAYMASTER_ADDRESS, SaleContractV2ABI, type ScalarLike, SepoliaFaucetAPI, type SessionConfig, SessionKeyValidatorABI, type SessionKeyValidatorActions, SessionKeyValidatorArtifact, type SignP256GuardianAssertionParams, type SignedP256GuardianAssertion, SimpleAccountABI, SimpleAccountArtifact, SimpleAccountFactoryABI, SimpleAccountFactoryArtifact, type SpendCounter, type StakingActions, StateValidator, SuperPaymasterABI, SuperPaymasterArtifact, type SuperPaymasterConfig, type SupportedNetwork, TEST_ACCOUNT_ADDRESSES, TEST_ACCOUNT_POOL_SIZE, TEST_COMMUNITIES, TEST_TOKEN_ADDRESSES, TIER_LIMIT_NONCE_SLOT, TOKEN_ADDRESSES, type TokenActions, type TokenBalanceValidationParams, type UserOperationV07, V2_SUMMARY, type ValidationParams, type ValidationResult, WEBAUTHN_GET_CHALLENGE_PREFIX, type X402Actions, X402FacilitatorABI, X402FacilitatorArtifact, XPNTS_FACTORY_ADDRESS, type XPNTsFactoryActions, type XPNTsTokenActions, accountActions, accountFactoryActions, agentActions, agentRegistryActions, aggregatorActions, airAccountExtensionActions, airAccountFactoryActions, applyConfig, base64UrlEncode, blsAlgorithmActions, buildAddGuardianChallenge, buildAddP256GuardianChallenge, buildApproveRecoveryChallenge, buildCancelRecoveryChallenge, buildModifyTierLimitsChallenge, buildP256GuardianChallenge, buildProposeRecoveryChallenge, buildRemoveGuardianChallenge, 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, tokenActions, x402Actions, x402IsNonceUsed, x402NonceKey, xPNTsFactoryABI, xPNTsFactoryActions, xPNTsFactoryArtifact, xPNTsTokenABI, xPNTsTokenActions, xPNTsTokenArtifact };
|
package/dist/core.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Address, Chain, Hex, Account, Hash, BlockNumber, BlockTag, PublicClient as PublicClient$1, WalletClient, CustomTransportConfig } from 'viem';
|
|
2
|
+
export { C as CANONICAL_ADDRESSES, a as CanonicalAddresses, b as LAUNCH_SALE_ADDRESSES, L as LaunchSaleAddresses, S as SupportedChainId, d as describeSupportedChains, c as getCanonicalAddresses, g as getLaunchSaleAddresses, i as isSupportedChainId, l as listSupportedChainIds } from './addresses-D12T3kLs.js';
|
|
2
3
|
import { P as PublicClient } from './doc-types-471vSmPO.js';
|
|
3
4
|
export { W as WalletClient } from './doc-types-471vSmPO.js';
|
|
4
5
|
export { a as BaseClient, B as BusinessResult, C as ClientConfig, T as TransactionOptions } from './BaseClient-BjbYP0cf.js';
|
|
@@ -146,180 +147,6 @@ declare const ALL_ADDRESSES: {
|
|
|
146
147
|
readonly agentReputationRegistry: `0x${string}`;
|
|
147
148
|
};
|
|
148
149
|
|
|
149
|
-
/**
|
|
150
|
-
* Canonical Contract Addresses for Supported Networks
|
|
151
|
-
* These are hardcoded as defaults for NPM distribution.
|
|
152
|
-
*
|
|
153
|
-
* SINGLE SOURCE OF TRUTH for SDK contract addresses (Beta3.1 P2.8).
|
|
154
|
-
* The root `config.{network}.json` files are dev/deploy-time overrides and MUST
|
|
155
|
-
* agree with this table for any network that has a chainId entry here. The
|
|
156
|
-
* `scripts/check-address-consistency.ts` drift check (CI: `pnpm run check:addresses`)
|
|
157
|
-
* enforces that. NOTE: `@aastar/shared-config` is a separate external repo (vendored
|
|
158
|
-
* as git submodules under ext/ and lib/), NOT a workspace package and NOT the SDK's
|
|
159
|
-
* source of truth — do not treat it as canonical here.
|
|
160
|
-
*/
|
|
161
|
-
|
|
162
|
-
declare const CANONICAL_ADDRESSES: {
|
|
163
|
-
readonly 10: {
|
|
164
|
-
readonly registry: "0x997686219F31405503D32728B1f094F115EF24e7";
|
|
165
|
-
readonly gToken: "0x8d6Fe002dDacCcFBD377F684EC1825f2E1ab7ef6";
|
|
166
|
-
readonly staking: "0x7A1216C2d814D2389698C64eD23AA1aA9Eb6343E";
|
|
167
|
-
readonly sbt: "0x28eBFc5fc03B1d7648254AbF1C7B39DbFdef1a94";
|
|
168
|
-
readonly reputationSystem: "0xA9560898dC0eE4F9Ed3F1db17dbf74dE65e925c2";
|
|
169
|
-
readonly superPaymaster: "0xA2c9A6e95f19f5D2a364CBCbB5f0b32B1B4d140E";
|
|
170
|
-
readonly paymasterFactory: "0x58A7F6E44a57028A255794119F8b37124c9a7eB8";
|
|
171
|
-
readonly paymasterV4: "0x67a70a578E142b950987081e7016906ae4F56Df4";
|
|
172
|
-
readonly paymasterV4Impl: "0xc4dd13F7825409EEC13FBCBdD9D8f6d618207cca";
|
|
173
|
-
readonly xPNTsFactory: "0x864971a26384d9DCC7115f0bBC428e2623F28b6e";
|
|
174
|
-
readonly blsAggregator: "0x1C305372ecc5a36CBef1FA371392234bCD55eB19";
|
|
175
|
-
readonly blsValidator: "0xA88ADec5A8dc422B57488272d5aD5913d728942A";
|
|
176
|
-
readonly dvtValidator: "0x31Ede6454a56293f7cf2323CA5d5F9a6230558Fb";
|
|
177
|
-
readonly entryPoint: "0x0000000071727De22E5E9d8BAf0edAc6f37da032";
|
|
178
|
-
readonly aPNTs: "0x0B41C78081B5A141eb4C3C7E7FD8E58A7Bde553B";
|
|
179
|
-
readonly priceFeed: "0x13e3Ee699D1909E989722E753853AE30b17e08c5";
|
|
180
|
-
readonly simpleAccountFactory: "0x91E60e0613810449d098b0b5Ec8b51A0FE8c8985";
|
|
181
|
-
readonly microPaymentChannel: "0x0000000000000000000000000000000000000000";
|
|
182
|
-
readonly agentIdentityRegistry: "0x0000000000000000000000000000000000000000";
|
|
183
|
-
readonly agentReputationRegistry: "0x0000000000000000000000000000000000000000";
|
|
184
|
-
readonly agentValidationRegistry: "0x0000000000000000000000000000000000000000";
|
|
185
|
-
readonly aaStarBLSAlgorithm: "0x0000000000000000000000000000000000000000";
|
|
186
|
-
readonly aaStarValidator: "0x0000000000000000000000000000000000000000";
|
|
187
|
-
readonly aaStarBLSAggregator: "0x0000000000000000000000000000000000000000";
|
|
188
|
-
readonly sessionKeyValidator: "0x0000000000000000000000000000000000000000";
|
|
189
|
-
readonly forceExitModule: "0x0000000000000000000000000000000000000000";
|
|
190
|
-
readonly airAccountDelegate: "0x0000000000000000000000000000000000000000";
|
|
191
|
-
readonly calldataParserRegistry: "0x0000000000000000000000000000000000000000";
|
|
192
|
-
readonly airAccountFactoryV7: "0x0000000000000000000000000000000000000000";
|
|
193
|
-
readonly airAccountV7Impl: "0x0000000000000000000000000000000000000000";
|
|
194
|
-
readonly airAccountExtension: "0x0000000000000000000000000000000000000000";
|
|
195
|
-
readonly agentRegistry: "0x0000000000000000000000000000000000000000";
|
|
196
|
-
readonly policyRegistry: "0x0000000000000000000000000000000000000000";
|
|
197
|
-
readonly x402Facilitator: "0x0000000000000000000000000000000000000000";
|
|
198
|
-
readonly timelockController: "0x0000000000000000000000000000000000000000";
|
|
199
|
-
readonly pnts: "0x0000000000000000000000000000000000000000";
|
|
200
|
-
};
|
|
201
|
-
readonly 11155111: {
|
|
202
|
-
readonly registry: "0x3F920B25f8b65988359C372F66F036E48adFc556";
|
|
203
|
-
readonly gToken: "0x20a051502a7AE6e40cfFd6EBe59057538E698984";
|
|
204
|
-
readonly staking: "0x3B363598746Ea57314d4869B160940948c569D48";
|
|
205
|
-
readonly sbt: "0x072A0D12f4212B6baD7c6d0A633eaffbDE9105bF";
|
|
206
|
-
readonly reputationSystem: "0x7fEd690E1663755e24a1C9d6164336809d68a578";
|
|
207
|
-
readonly superPaymaster: "0x030025f40d509b1a99547bAEb3795bD27F7182b7";
|
|
208
|
-
readonly paymasterFactory: "0x0Aa06EA5295eeD4D48c93c594Db1CBf3626971A5";
|
|
209
|
-
readonly paymasterV4: "0x1f0D4eF151a79948070D387BaC43b1321F0c41e3";
|
|
210
|
-
readonly paymasterV4Impl: "0x59DCA5861aaDA602fE1BFbfcc36DFAc36C58623d";
|
|
211
|
-
readonly xPNTsFactory: "0xCec3655525a112882E74Fb7C26AcB267a07724cb";
|
|
212
|
-
readonly blsAggregator: "0x15387e161c1b3dAe7c66Fbd5c1F32837B58B2e79";
|
|
213
|
-
readonly blsValidator: "0x0A71C5a32b8CBC517523D2C88b539Ab22AeF0654";
|
|
214
|
-
readonly dvtValidator: "0x19BA9829C784E4A41b68960b9c0bA55f83718997";
|
|
215
|
-
readonly entryPoint: "0x0000000071727De22E5E9d8BAf0edAc6f37da032";
|
|
216
|
-
readonly aPNTs: "0x9e66B457E0ABb1F139FD8A596d00f784eBA2873b";
|
|
217
|
-
readonly priceFeed: "0x694AA1769357215DE4FAC081bf1f309aDC325306";
|
|
218
|
-
readonly simpleAccountFactory: "0x91E60e0613810449d098b0b5Ec8b51A0FE8c8985";
|
|
219
|
-
readonly microPaymentChannel: "0x405851A141Cde827E33247d4D4089Af2814c2FF5";
|
|
220
|
-
readonly agentIdentityRegistry: "0x8004A818BFB912233c491871b3d84c89A494BD9e";
|
|
221
|
-
readonly agentReputationRegistry: "0x8004B663056A597Dffe9eCcC1965A193B7388713";
|
|
222
|
-
readonly agentValidationRegistry: "0x8004Cb1BF31DAf7788923b405b754f57acEB4272";
|
|
223
|
-
readonly aaStarBLSAlgorithm: "0xAF525A161CB17e0A1b6254ef0B8d8473bdA05174";
|
|
224
|
-
readonly aaStarValidator: "0xfcDfd17a373E037c3F9C8ffE2c781915E7Ae6e11";
|
|
225
|
-
readonly aaStarBLSAggregator: "0x35775df9a4f4dB42Ea0C46118a12dDd0cEc70609";
|
|
226
|
-
readonly sessionKeyValidator: "0x6810CfB7c72D16e044a17694fAa8076e517264D0";
|
|
227
|
-
readonly forceExitModule: "0x3fDe77868b74a7979A40a2293a1CD265fbe66EEc";
|
|
228
|
-
readonly airAccountDelegate: "0xd2735E54C5f5f2BF523b8a9ddd0E183624c3f2c0";
|
|
229
|
-
readonly calldataParserRegistry: "0x7dEea4544446826601014bD94d0F6432A67496F5";
|
|
230
|
-
readonly airAccountFactoryV7: "0x99C9300d52EDD9f4B7135DEd1811fBa6FFa1DDC6";
|
|
231
|
-
readonly airAccountV7Impl: "0xd51db7eB20FF99c8588281CBe1785681Bb17D473";
|
|
232
|
-
readonly airAccountExtension: "0x5529f50811814E0a4966cFC21200DCeF9C3FCb5B";
|
|
233
|
-
readonly agentRegistry: "0xbcE1163817EEBA2E07d39424427B10937bF1D121";
|
|
234
|
-
readonly policyRegistry: "0x8c2488d46d5447418558c38AA6441720df656094";
|
|
235
|
-
readonly x402Facilitator: "0x326Fc3413c8A0185b0179B971C69813B6dFD971B";
|
|
236
|
-
readonly timelockController: "0xB734df3c0A1809bc06708512363D368Ac51dF1A2";
|
|
237
|
-
readonly pnts: "0xC687f8a115D308ECD39658a8EE33bC3c8F75EE31";
|
|
238
|
-
};
|
|
239
|
-
readonly 11155420: {
|
|
240
|
-
readonly registry: "0xcf6860Ab57de8669756997e414D9c52B6e301972";
|
|
241
|
-
readonly gToken: "0xC341c88453372021d0221834307613c2e99fE718";
|
|
242
|
-
readonly staking: "0x5f57B931C849e8E255F22755506eB2255aB22a7C";
|
|
243
|
-
readonly sbt: "0x2c3Ca1553dC1B8870381E8E56C7b3e3A3ae162f0";
|
|
244
|
-
readonly reputationSystem: "0x891EC0f84D9275839B8dAf74e87B23F2DBd7f9c9";
|
|
245
|
-
readonly superPaymaster: "0x9eC1FE8134A1C05aD34ba2E4e8758dAe0a009B94";
|
|
246
|
-
readonly paymasterFactory: "0x1e3b9d12eAc27867a523d0537902441B0E7D98d8";
|
|
247
|
-
readonly paymasterV4: "0xf250416C940605a1D423ccd059668219cf7D80ea";
|
|
248
|
-
readonly paymasterV4Impl: "0x906123080207F250B1C9F299991512Cb31f35b2f";
|
|
249
|
-
readonly xPNTsFactory: "0x7792a49C9E91e0E9B631B27D885d15e971B7482A";
|
|
250
|
-
readonly blsAggregator: "0x6e06b17b1a4D2D973F7E3e026e24b4393315736c";
|
|
251
|
-
readonly blsValidator: "0x260fa905CcE1f5b29Afe9d627c01fAAE4A66A7F5";
|
|
252
|
-
readonly dvtValidator: "0x0087cA806109E150438116cAA414580BB5fa9195";
|
|
253
|
-
readonly entryPoint: "0x0000000071727De22E5E9d8BAf0edAc6f37da032";
|
|
254
|
-
readonly aPNTs: "0x3BBcA92Ad828b3dD619c980Ba09f929b9d2BC440";
|
|
255
|
-
readonly priceFeed: "0x61Ec26aA57019C486B10502285c5A3D4A4750AD7";
|
|
256
|
-
readonly simpleAccountFactory: "0x91E6060613810449d098b0b5EC8b51A0fe8C8985";
|
|
257
|
-
readonly microPaymentChannel: "0x0000000000000000000000000000000000000000";
|
|
258
|
-
readonly agentIdentityRegistry: "0x0000000000000000000000000000000000000000";
|
|
259
|
-
readonly agentReputationRegistry: "0x0000000000000000000000000000000000000000";
|
|
260
|
-
readonly agentValidationRegistry: "0x0000000000000000000000000000000000000000";
|
|
261
|
-
readonly aaStarBLSAlgorithm: "0x0000000000000000000000000000000000000000";
|
|
262
|
-
readonly aaStarValidator: "0x0000000000000000000000000000000000000000";
|
|
263
|
-
readonly aaStarBLSAggregator: "0x0000000000000000000000000000000000000000";
|
|
264
|
-
readonly sessionKeyValidator: "0x0000000000000000000000000000000000000000";
|
|
265
|
-
readonly forceExitModule: "0x0000000000000000000000000000000000000000";
|
|
266
|
-
readonly airAccountDelegate: "0x0000000000000000000000000000000000000000";
|
|
267
|
-
readonly calldataParserRegistry: "0x0000000000000000000000000000000000000000";
|
|
268
|
-
readonly airAccountFactoryV7: "0x0000000000000000000000000000000000000000";
|
|
269
|
-
readonly airAccountV7Impl: "0x0000000000000000000000000000000000000000";
|
|
270
|
-
readonly airAccountExtension: "0x0000000000000000000000000000000000000000";
|
|
271
|
-
readonly agentRegistry: "0x0000000000000000000000000000000000000000";
|
|
272
|
-
readonly policyRegistry: "0x0000000000000000000000000000000000000000";
|
|
273
|
-
readonly x402Facilitator: "0x0000000000000000000000000000000000000000";
|
|
274
|
-
readonly timelockController: "0x0000000000000000000000000000000000000000";
|
|
275
|
-
readonly pnts: "0x0000000000000000000000000000000000000000";
|
|
276
|
-
};
|
|
277
|
-
};
|
|
278
|
-
type CanonicalAddresses = (typeof CANONICAL_ADDRESSES)[keyof typeof CANONICAL_ADDRESSES];
|
|
279
|
-
type SupportedChainId = keyof typeof CANONICAL_ADDRESSES;
|
|
280
|
-
/**
|
|
281
|
-
* Chain IDs that have a canonical address book in {@link CANONICAL_ADDRESSES}.
|
|
282
|
-
*
|
|
283
|
-
* @example
|
|
284
|
-
* ```ts
|
|
285
|
-
* listSupportedChainIds(); // [10, 11155111, 11155420]
|
|
286
|
-
* ```
|
|
287
|
-
*/
|
|
288
|
-
declare function listSupportedChainIds(): number[];
|
|
289
|
-
/** True if {@link CANONICAL_ADDRESSES} has an entry for `chainId`. */
|
|
290
|
-
declare function isSupportedChainId(chainId: number): chainId is SupportedChainId;
|
|
291
|
-
/**
|
|
292
|
-
* Resolve the canonical contract address book for a chain, keyed by `chainId`,
|
|
293
|
-
* normalized to the key names the role-based client factories expect.
|
|
294
|
-
*
|
|
295
|
-
* The canonical table uses `staking` / `sbt`; the historical client factories
|
|
296
|
-
* (and many consumers) reference `gTokenStaking` / `mySBT`. This helper returns
|
|
297
|
-
* the canonical set plus those aliases so a single object satisfies both, which
|
|
298
|
-
* is what makes `createEndUserClient({ chain })` resolve addresses automatically
|
|
299
|
-
* — no manual `addresses` needed for any supported chain.
|
|
300
|
-
*
|
|
301
|
-
* @param chainId - EVM chain id (e.g. 10 = Optimism, 11155111 = Sepolia).
|
|
302
|
-
* @returns The normalized address record, or `undefined` if the chain has no
|
|
303
|
-
* canonical entry (caller must then pass `addresses` explicitly).
|
|
304
|
-
*
|
|
305
|
-
* @example
|
|
306
|
-
* ```ts
|
|
307
|
-
* import { optimism } from 'viem/chains';
|
|
308
|
-
* const addrs = getCanonicalAddresses(optimism.id); // chainId 10
|
|
309
|
-
* addrs?.registry; addrs?.mySBT; // alias of `sbt`
|
|
310
|
-
* ```
|
|
311
|
-
*/
|
|
312
|
-
declare function getCanonicalAddresses(chainId: number): (CanonicalAddresses & {
|
|
313
|
-
gTokenStaking: Address;
|
|
314
|
-
mySBT: Address;
|
|
315
|
-
}) | undefined;
|
|
316
|
-
/**
|
|
317
|
-
* A friendly, human-readable list of the supported chains for error messages —
|
|
318
|
-
* e.g. `"OP Mainnet (10), Sepolia (11155111), OP Sepolia (11155420)"`. Names come
|
|
319
|
-
* from viem/chains so callers recognize them by the same label viem uses.
|
|
320
|
-
*/
|
|
321
|
-
declare function describeSupportedChains(): string;
|
|
322
|
-
|
|
323
150
|
/**
|
|
324
151
|
* AAstar Smart Contract Addresses
|
|
325
152
|
*
|
|
@@ -3207,6 +3034,10 @@ declare const AirAccountExtensionArtifact: {
|
|
|
3207
3034
|
anonymous?: undefined;
|
|
3208
3035
|
})[];
|
|
3209
3036
|
};
|
|
3037
|
+
declare const ERC20ABI: any;
|
|
3038
|
+
declare const SaleContractV2ABI: any;
|
|
3039
|
+
declare const APNTsSaleContractABI: any;
|
|
3040
|
+
declare const BuyHelperABI: any;
|
|
3210
3041
|
|
|
3211
3042
|
/**
|
|
3212
3043
|
* Creates a standard AAStar public client for any given chain.
|
|
@@ -6967,4 +6798,4 @@ declare function resolveEnsVerified(name: string, options?: EnsOptions): Promise
|
|
|
6967
6798
|
verified: boolean;
|
|
6968
6799
|
}>;
|
|
6969
6800
|
|
|
6970
|
-
export { AASTAR_COMMUNITY, AAStarAirAccountFactoryV7ABI, AAStarAirAccountFactoryV7Artifact, AAStarAirAccountV7ABI, AAStarAirAccountV7Artifact, AAStarBLSAggregatorABI, AAStarBLSAggregatorArtifact, AAStarBLSAlgorithmABI, AAStarBLSAlgorithmArtifact, AAStarValidatorABI, AAStarValidatorArtifact, AGENT_IDENTITY_REGISTRY_ADDRESS, AGENT_REPUTATION_REGISTRY_ADDRESS, ALG_BLS, ALL_ADDRESSES, ALL_ROLES, APNTS_ADDRESS, type AccountActions, type AccountBalance, type AccountFactoryActions, type AgentActions, AgentRegistryABI, type AgentRegistryActions, AgentRegistryArtifact, type AgentSponsorshipPolicy, type AggregatorActions, AirAccountDelegateABI, AirAccountDelegateArtifact, AirAccountExtensionABI, type AirAccountExtensionActions, AirAccountExtensionArtifact, type AirAccountFactoryActions, type AssetPolicy, type AssetPolicyInput, AuthorizationState, type BLSAccountSignatureParams, BLSAggregatorABI, BLSAggregatorArtifact, type BLSAlgorithmActions, type BLSG1Point, BLSHelpers, BLSSigner, BLSValidatorABI, BLSValidatorArtifact, BLS_AGGREGATOR_ADDRESS, BLS_POP_DST, BLS_VALIDATOR_ADDRESS, BPS_DENOMINATOR, BRANDING, BREAD_COMMUNITY, type BalanceValidationParams, type BatchMintResult, type BuildP256GuardianChallengeParams, BundlerClient, type BundlerResponse,
|
|
6801
|
+
export { AASTAR_COMMUNITY, AAStarAirAccountFactoryV7ABI, AAStarAirAccountFactoryV7Artifact, AAStarAirAccountV7ABI, AAStarAirAccountV7Artifact, AAStarBLSAggregatorABI, AAStarBLSAggregatorArtifact, AAStarBLSAlgorithmABI, AAStarBLSAlgorithmArtifact, AAStarValidatorABI, AAStarValidatorArtifact, AGENT_IDENTITY_REGISTRY_ADDRESS, AGENT_REPUTATION_REGISTRY_ADDRESS, ALG_BLS, ALL_ADDRESSES, ALL_ROLES, APNTS_ADDRESS, APNTsSaleContractABI, type AccountActions, type AccountBalance, type AccountFactoryActions, type AgentActions, AgentRegistryABI, type AgentRegistryActions, AgentRegistryArtifact, type AgentSponsorshipPolicy, type AggregatorActions, AirAccountDelegateABI, AirAccountDelegateArtifact, AirAccountExtensionABI, type AirAccountExtensionActions, AirAccountExtensionArtifact, type AirAccountFactoryActions, type AssetPolicy, type AssetPolicyInput, AuthorizationState, type BLSAccountSignatureParams, BLSAggregatorABI, BLSAggregatorArtifact, type BLSAlgorithmActions, type BLSG1Point, BLSHelpers, BLSSigner, BLSValidatorABI, BLSValidatorArtifact, BLS_AGGREGATOR_ADDRESS, BLS_POP_DST, BLS_VALIDATOR_ADDRESS, BPS_DENOMINATOR, BRANDING, BREAD_COMMUNITY, type BalanceValidationParams, type BatchMintResult, type BuildP256GuardianChallengeParams, BundlerClient, type BundlerResponse, BuyHelperABI, CHAIN_MAINNET, CHAIN_SEPOLIA, COMMUNITIES, COMMUNITY_OWNERS, CONTRACTS, CONTRACT_METADATA, CONTRACT_SRC_HASH, CORE_ADDRESSES, CalldataParserRegistryABI, CalldataParserRegistryArtifact, type CheckResourcesOptions, type CommunityConfig, type CommunityProfile, type ContractCategory, ContractConfigManager, type ContractNetwork, type ContractScope, type ContractScopeInput, type ContractVersion, DEFAULT_ADMIN_ROLE, DEFAULT_APNTS_PRICE_USD, DEFAULT_CALL_GAS_LIMIT, DEFAULT_DVT_NODES, DEFAULT_GAS_TOKEN_MINT_AMOUNT, DEFAULT_PRE_VERIFICATION_GAS, DEFAULT_TIMEOUT_MS, DEFAULT_TOKEN_NAME, DEFAULT_TOKEN_SYMBOL, DEFAULT_USDT_MINT_AMOUNT, DEFAULT_VERIFICATION_GAS_LIMIT, type DVTAccountSignatureParams, type DVTActions, type DVTNode, type DVTTier, DVTValidatorABI, DVTValidatorArtifact, DVT_TIER_T2, DVT_TIER_T3, DVT_VALIDATOR_ADDRESS, type DecodedWebAuthnAssertion, type DeploymentValidationParams, ENTRY_POINT_ADDRESS, ERC20ABI, type ERC20Actions, type EncodeWebAuthnAssertionParams, type EnsOptions, EntryPointABI, type EntryPointActions, EntryPointArtifact, EntryPointVersion, FAUCET_API_URL, type FaucetConfig, type FaucetPreparationResult, type ForceExitActions, ForceExitModuleABI, ForceExitModuleArtifact, GTOKEN_ADDRESS, GTOKEN_STAKING_ADDRESS, GTokenABI, type GTokenActions, GTokenArtifact, GTokenAuthorizationABI, type GTokenAuthorizationActions, GTokenAuthorizationArtifact, GTokenStakingABI, GTokenStakingArtifact, GUARDIAN_ADDITION_NONCE_SLOT, GUARDIAN_REMOVAL_NONCE_SLOT, GUARDIAN_SIG_VERSION, type GuardianOpLabel, type HashToFieldU0U1, type HeliosTransportConfig, INITIAL_ROLE_STAKES, INLINE_ALG_IDS, InitConfig, LINKS, MAX_GUARDIAN_SLOT, MAX_SERVICE_FEE, MICRO_PAYMENT_CHANNEL_ADDRESS, MONITORING_ADDRESSES, MicroPaymentChannelABI, MicroPaymentChannelArtifact, MySBTABI, MySBTArtifact, NETWORKS, NODE_STAKE_AMOUNTS, type NetworkContracts, NodeType, OFFICIAL_ADDRESSES, type OperatorMode, type P256SessionState, P256_GUARDIAN_DOMAIN, P256_GUARDIAN_SENTINEL, PAYMASTER_ADDRESSES, PAYMASTER_FACTORY_ADDRESS, PAYMASTER_V4_ADDRESS, PAYMASTER_V4_IMPL_ADDRESS, PaymasterABI, type PaymasterActions, PaymasterArtifact, PaymasterFactoryABI, type PaymasterFactoryActions, PaymasterFactoryArtifact, type PendingExit, PolicyDecision, PolicyRegistryABI, type PolicyRegistryActions, PolicyRegistryArtifact, PublicClient, RECOVERY_NONCE_SLOT, REGISTRY_ADDRESS, REPUTATION_SYSTEM_ADDRESS, ROLE_ANODE, ROLE_COMMUNITY, ROLE_DVT, ROLE_ENDUSER, ROLE_KMS, ROLE_NAMES, ROLE_PAYMASTER_AOA, ROLE_PAYMASTER_SUPER, ROLE_PERMISSION_LEVELS, RegistryABI, type RegistryActions, RegistryArtifact, type ReputationActions, type ReputationBreakdown, type ReputationRule, ReputationSystemABI, ReputationSystemArtifact, RequirementChecker, type ResourceBoolCheck, type ResourceReport, type ResourceStakeCheck, type RoleConfig, type RoleConfigDetailed, RolePermissionLevel, type RoleRequirement, type RoleValidationParams, type SBTActions, type SBTData, type SBTMembership, SBT_ADDRESS, SECP256R1_N, SECP256R1_N_OVER_2, SEPOLIA_CONTRACTS, SEPOLIA_V2_VERSIONS, SERVICE_FEE_RATE, SUPER_PAYMASTER_ADDRESS, SaleContractV2ABI, type ScalarLike, SepoliaFaucetAPI, type SessionConfig, SessionKeyValidatorABI, type SessionKeyValidatorActions, SessionKeyValidatorArtifact, type SignP256GuardianAssertionParams, type SignedP256GuardianAssertion, SimpleAccountABI, SimpleAccountArtifact, SimpleAccountFactoryABI, SimpleAccountFactoryArtifact, type SpendCounter, type StakingActions, StateValidator, SuperPaymasterABI, SuperPaymasterArtifact, type SuperPaymasterConfig, type SupportedNetwork, TEST_ACCOUNT_ADDRESSES, TEST_ACCOUNT_POOL_SIZE, TEST_COMMUNITIES, TEST_TOKEN_ADDRESSES, TIER_LIMIT_NONCE_SLOT, TOKEN_ADDRESSES, type TokenActions, type TokenBalanceValidationParams, type UserOperationV07, V2_SUMMARY, type ValidationParams, type ValidationResult, WEBAUTHN_GET_CHALLENGE_PREFIX, type X402Actions, X402FacilitatorABI, X402FacilitatorArtifact, XPNTS_FACTORY_ADDRESS, type XPNTsFactoryActions, type XPNTsTokenActions, accountActions, accountFactoryActions, agentActions, agentRegistryActions, aggregatorActions, airAccountExtensionActions, airAccountFactoryActions, applyConfig, base64UrlEncode, blsAlgorithmActions, buildAddGuardianChallenge, buildAddP256GuardianChallenge, buildApproveRecoveryChallenge, buildCancelRecoveryChallenge, buildModifyTierLimitsChallenge, buildP256GuardianChallenge, buildProposeRecoveryChallenge, buildRemoveGuardianChallenge, 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, tokenActions, x402Actions, x402IsNonceUsed, x402NonceKey, xPNTsFactoryABI, xPNTsFactoryActions, xPNTsFactoryArtifact, xPNTsTokenABI, xPNTsTokenActions, xPNTsTokenArtifact };
|
package/dist/core.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
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_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 } from './chunk-
|
|
2
|
-
export { AGENT_IDENTITY_REGISTRY_ADDRESS, AGENT_REPUTATION_REGISTRY_ADDRESS, ALL_ADDRESSES, APNTS_ADDRESS, BLS_AGGREGATOR_ADDRESS, BLS_VALIDATOR_ADDRESS, BPS_DENOMINATOR, CANONICAL_ADDRESSES, CHAIN_MAINNET, CHAIN_SEPOLIA, COMMUNITY_OWNERS, CONTRACT_SRC_HASH, CORE_ADDRESSES, DEFAULT_APNTS_PRICE_USD, DEFAULT_CALL_GAS_LIMIT, DEFAULT_GAS_TOKEN_MINT_AMOUNT, DEFAULT_PRE_VERIFICATION_GAS, DEFAULT_TIMEOUT_MS, DEFAULT_TOKEN_NAME, DEFAULT_TOKEN_SYMBOL, DEFAULT_USDT_MINT_AMOUNT, DEFAULT_VERIFICATION_GAS_LIMIT, DVT_VALIDATOR_ADDRESS, ENTRY_POINT_ADDRESS, FAUCET_API_URL, GTOKEN_ADDRESS, GTOKEN_STAKING_ADDRESS, MAX_SERVICE_FEE, MICRO_PAYMENT_CHANNEL_ADDRESS, MONITORING_ADDRESSES, NODE_STAKE_AMOUNTS, OFFICIAL_ADDRESSES, PAYMASTER_ADDRESSES, PAYMASTER_FACTORY_ADDRESS, PAYMASTER_V4_ADDRESS, PAYMASTER_V4_IMPL_ADDRESS, REGISTRY_ADDRESS, REPUTATION_SYSTEM_ADDRESS, SBT_ADDRESS, SERVICE_FEE_RATE, SUPER_PAYMASTER_ADDRESS, TEST_ACCOUNT_ADDRESSES, TEST_ACCOUNT_POOL_SIZE, TEST_COMMUNITIES, TEST_TOKEN_ADDRESSES, TOKEN_ADDRESSES, XPNTS_FACTORY_ADDRESS, applyConfig, describeSupportedChains, getCanonicalAddresses, isSupportedChainId, listSupportedChainIds } from './chunk-
|
|
1
|
+
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_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 } from './chunk-6DZCDV4Q.js';
|
|
2
|
+
export { AGENT_IDENTITY_REGISTRY_ADDRESS, AGENT_REPUTATION_REGISTRY_ADDRESS, ALL_ADDRESSES, APNTS_ADDRESS, BLS_AGGREGATOR_ADDRESS, BLS_VALIDATOR_ADDRESS, BPS_DENOMINATOR, CANONICAL_ADDRESSES, CHAIN_MAINNET, CHAIN_SEPOLIA, COMMUNITY_OWNERS, CONTRACT_SRC_HASH, CORE_ADDRESSES, DEFAULT_APNTS_PRICE_USD, DEFAULT_CALL_GAS_LIMIT, DEFAULT_GAS_TOKEN_MINT_AMOUNT, DEFAULT_PRE_VERIFICATION_GAS, DEFAULT_TIMEOUT_MS, DEFAULT_TOKEN_NAME, DEFAULT_TOKEN_SYMBOL, DEFAULT_USDT_MINT_AMOUNT, DEFAULT_VERIFICATION_GAS_LIMIT, DVT_VALIDATOR_ADDRESS, ENTRY_POINT_ADDRESS, FAUCET_API_URL, GTOKEN_ADDRESS, GTOKEN_STAKING_ADDRESS, LAUNCH_SALE_ADDRESSES, MAX_SERVICE_FEE, MICRO_PAYMENT_CHANNEL_ADDRESS, MONITORING_ADDRESSES, NODE_STAKE_AMOUNTS, OFFICIAL_ADDRESSES, PAYMASTER_ADDRESSES, PAYMASTER_FACTORY_ADDRESS, PAYMASTER_V4_ADDRESS, PAYMASTER_V4_IMPL_ADDRESS, REGISTRY_ADDRESS, REPUTATION_SYSTEM_ADDRESS, SBT_ADDRESS, SERVICE_FEE_RATE, SUPER_PAYMASTER_ADDRESS, TEST_ACCOUNT_ADDRESSES, TEST_ACCOUNT_POOL_SIZE, TEST_COMMUNITIES, TEST_TOKEN_ADDRESSES, TOKEN_ADDRESSES, XPNTS_FACTORY_ADDRESS, applyConfig, describeSupportedChains, getCanonicalAddresses, getLaunchSaleAddresses, isSupportedChainId, listSupportedChainIds } from './chunk-MBWBHKUE.js';
|
|
3
3
|
import './chunk-PZ5AY32C.js';
|
|
4
4
|
//# sourceMappingURL=core.js.map
|
|
5
5
|
//# sourceMappingURL=core.js.map
|
package/dist/dapp.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
3
|
+
var chunk7HTUDNH3_cjs = require('./chunk-7HTUDNH3.cjs');
|
|
4
|
+
var chunkKOWTQJIX_cjs = require('./chunk-KOWTQJIX.cjs');
|
|
5
|
+
require('./chunk-G33MXEHU.cjs');
|
|
6
6
|
require('./chunk-Q7SFCCGT.cjs');
|
|
7
7
|
var viem = require('viem');
|
|
8
8
|
var react = require('react');
|
|
@@ -32,10 +32,10 @@ function useCreditScore({ chain, rpcUrl, registryAddress, userAddress }) {
|
|
|
32
32
|
const fetchCredit = async () => {
|
|
33
33
|
setLoading(true);
|
|
34
34
|
try {
|
|
35
|
-
const client =
|
|
35
|
+
const client = chunkKOWTQJIX_cjs.createAAStarPublicClient(rpcUrl, chain);
|
|
36
36
|
const limit = await client.readContract({
|
|
37
37
|
address: registryAddress,
|
|
38
|
-
abi:
|
|
38
|
+
abi: chunkKOWTQJIX_cjs.RegistryABI,
|
|
39
39
|
functionName: "getCreditLimit",
|
|
40
40
|
args: [userAddress]
|
|
41
41
|
});
|
|
@@ -58,7 +58,7 @@ function useSuperPaymaster(config) {
|
|
|
58
58
|
setIsLoading(true);
|
|
59
59
|
setError(null);
|
|
60
60
|
try {
|
|
61
|
-
const middleware =
|
|
61
|
+
const middleware = chunk7HTUDNH3_cjs.getSuperPaymasterMiddleware(config);
|
|
62
62
|
const result = await middleware.sponsorUserOperation({ userOperation: userOp });
|
|
63
63
|
return result.paymasterAndData;
|
|
64
64
|
} catch (err) {
|
package/dist/dapp.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { getSuperPaymasterMiddleware } from './chunk-
|
|
2
|
-
import { createAAStarPublicClient, RegistryABI } from './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
import { getSuperPaymasterMiddleware } from './chunk-YR7CTWY6.js';
|
|
2
|
+
import { createAAStarPublicClient, RegistryABI } from './chunk-6DZCDV4Q.js';
|
|
3
|
+
import './chunk-MBWBHKUE.js';
|
|
4
4
|
import './chunk-PZ5AY32C.js';
|
|
5
5
|
import { parseAbi, createPublicClient, http, hashTypedData, hashMessage, hexToBytes, encodeFunctionData } from 'viem';
|
|
6
6
|
import { useState, useEffect, useCallback } from 'react';
|
package/dist/enduser.cjs
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
3
|
+
var chunkNHDZQPDE_cjs = require('./chunk-NHDZQPDE.cjs');
|
|
4
|
+
var chunkJ3UAXGNP_cjs = require('./chunk-J3UAXGNP.cjs');
|
|
5
|
+
require('./chunk-KOWTQJIX.cjs');
|
|
6
|
+
require('./chunk-G33MXEHU.cjs');
|
|
7
7
|
require('./chunk-Q7SFCCGT.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "CommunityClient", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkNHDZQPDE_cjs.CommunityClient; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "UserLifecycle", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkNHDZQPDE_cjs.UserLifecycle; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "UserClient", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkJ3UAXGNP_cjs.UserClient; }
|
|
22
22
|
});
|
|
23
23
|
//# sourceMappingURL=enduser.cjs.map
|
|
24
24
|
//# sourceMappingURL=enduser.cjs.map
|
package/dist/enduser.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { CommunityClient, UserLifecycle } from './chunk-
|
|
2
|
-
export { UserClient } from './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
1
|
+
export { CommunityClient, UserLifecycle } from './chunk-QTXPAGNX.js';
|
|
2
|
+
export { UserClient } from './chunk-IG4BG25C.js';
|
|
3
|
+
import './chunk-6DZCDV4Q.js';
|
|
4
|
+
import './chunk-MBWBHKUE.js';
|
|
5
5
|
import './chunk-PZ5AY32C.js';
|
|
6
6
|
//# sourceMappingURL=enduser.js.map
|
|
7
7
|
//# sourceMappingURL=enduser.js.map
|
package/dist/identity.cjs
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
3
|
+
var chunk2RHBOBL7_cjs = require('./chunk-2RHBOBL7.cjs');
|
|
4
|
+
require('./chunk-KOWTQJIX.cjs');
|
|
5
|
+
require('./chunk-G33MXEHU.cjs');
|
|
6
6
|
require('./chunk-Q7SFCCGT.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, "ReputationClient", {
|
|
11
11
|
enumerable: true,
|
|
12
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunk2RHBOBL7_cjs.ReputationClient; }
|
|
13
13
|
});
|
|
14
14
|
Object.defineProperty(exports, "checkMySBT", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunk2RHBOBL7_cjs.checkMySBT; }
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "getMySBTId", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunk2RHBOBL7_cjs.getMySBTId; }
|
|
21
21
|
});
|
|
22
22
|
//# sourceMappingURL=identity.cjs.map
|
|
23
23
|
//# sourceMappingURL=identity.cjs.map
|
package/dist/identity.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { ReputationClient, checkMySBT, getMySBTId } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
export { ReputationClient, checkMySBT, getMySBTId } from './chunk-COTHBCR2.js';
|
|
2
|
+
import './chunk-6DZCDV4Q.js';
|
|
3
|
+
import './chunk-MBWBHKUE.js';
|
|
4
4
|
import './chunk-PZ5AY32C.js';
|
|
5
5
|
//# sourceMappingURL=identity.js.map
|
|
6
6
|
//# sourceMappingURL=identity.js.map
|