@aa-sdk/core 4.35.0 → 4.36.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/README.md +1 -1
- package/dist/esm/account/smartContractAccount.d.ts +1 -1
- package/dist/esm/account/smartContractAccount.js.map +1 -1
- package/dist/esm/actions/bundler/estimateUserOperationGas.d.ts +3 -2
- package/dist/esm/actions/bundler/estimateUserOperationGas.js.map +1 -1
- package/dist/esm/actions/bundler/getSupportedEntryPoints.js.map +1 -1
- package/dist/esm/actions/bundler/getUserOperationByHash.js.map +1 -1
- package/dist/esm/actions/bundler/getUserOperationReceipt.js.map +1 -1
- package/dist/esm/actions/bundler/sendRawUserOperation.d.ts +2 -1
- package/dist/esm/actions/bundler/sendRawUserOperation.js.map +1 -1
- package/dist/esm/actions/smartAccount/buildUserOperation.js.map +1 -1
- package/dist/esm/actions/smartAccount/buildUserOperationFromTx.js.map +1 -1
- package/dist/esm/actions/smartAccount/buildUserOperationFromTxs.js.map +1 -1
- package/dist/esm/actions/smartAccount/checkGasSponsorshipEligibility.js.map +1 -1
- package/dist/esm/actions/smartAccount/dropAndReplaceUserOperation.js.map +1 -1
- package/dist/esm/actions/smartAccount/estimateUserOperationGas.js +8 -1
- package/dist/esm/actions/smartAccount/estimateUserOperationGas.js.map +1 -1
- package/dist/esm/actions/smartAccount/getAddress.js.map +1 -1
- package/dist/esm/actions/smartAccount/getUserOperationError.d.ts +14 -0
- package/dist/esm/actions/smartAccount/getUserOperationError.js +90 -0
- package/dist/esm/actions/smartAccount/getUserOperationError.js.map +1 -0
- package/dist/esm/actions/smartAccount/internal/initUserOperation.js.map +1 -1
- package/dist/esm/actions/smartAccount/internal/runMiddlewareStack.js.map +1 -1
- package/dist/esm/actions/smartAccount/internal/sendUserOperation.js +11 -4
- package/dist/esm/actions/smartAccount/internal/sendUserOperation.js.map +1 -1
- package/dist/esm/actions/smartAccount/sendTransaction.js.map +1 -1
- package/dist/esm/actions/smartAccount/sendTransactions.js.map +1 -1
- package/dist/esm/actions/smartAccount/sendUserOperation.js.map +1 -1
- package/dist/esm/actions/smartAccount/signMessage.js.map +1 -1
- package/dist/esm/actions/smartAccount/signTypedData.js.map +1 -1
- package/dist/esm/actions/smartAccount/signUserOperation.js.map +1 -1
- package/dist/esm/actions/smartAccount/types.js.map +1 -1
- package/dist/esm/actions/smartAccount/upgradeAccount.js.map +1 -1
- package/dist/esm/actions/smartAccount/waitForUserOperationTransacation.js.map +1 -1
- package/dist/esm/client/addBreadcrumb.js.map +1 -1
- package/dist/esm/client/bundlerClient.js.map +1 -1
- package/dist/esm/client/decorators/bundlerClient.js.map +1 -1
- package/dist/esm/client/decorators/smartAccountClient.js.map +1 -1
- package/dist/esm/client/isSmartAccountClient.js.map +1 -1
- package/dist/esm/client/schema.d.ts +25 -25
- package/dist/esm/client/schema.js.map +1 -1
- package/dist/esm/client/smartAccountClient.js.map +1 -1
- package/dist/esm/client/types.js.map +1 -1
- package/dist/esm/ens/utils.js.map +1 -1
- package/dist/esm/entrypoint/0.6.d.ts +2 -2
- package/dist/esm/entrypoint/0.6.js.map +1 -1
- package/dist/esm/entrypoint/0.7.d.ts +1 -1
- package/dist/esm/entrypoint/0.7.js.map +1 -1
- package/dist/esm/entrypoint/index.d.ts +1 -1
- package/dist/esm/entrypoint/index.js.map +1 -1
- package/dist/esm/entrypoint/types.js.map +1 -1
- package/dist/esm/errors/account.js.map +1 -1
- package/dist/esm/errors/client.js.map +1 -1
- package/dist/esm/errors/entrypoint.js.map +1 -1
- package/dist/esm/errors/signer.js.map +1 -1
- package/dist/esm/errors/useroperation.js.map +1 -1
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/middleware/actions.js.map +1 -1
- package/dist/esm/middleware/defaults/7702gasEstimator.d.ts +2 -2
- package/dist/esm/middleware/defaults/7702gasEstimator.js +2 -2
- package/dist/esm/middleware/defaults/7702gasEstimator.js.map +1 -1
- package/dist/esm/middleware/defaults/7702signer.d.ts +1 -1
- package/dist/esm/middleware/defaults/7702signer.js +1 -1
- package/dist/esm/middleware/defaults/7702signer.js.map +1 -1
- package/dist/esm/middleware/defaults/feeEstimator.js.map +1 -1
- package/dist/esm/middleware/defaults/gasEstimator.js.map +1 -1
- package/dist/esm/middleware/defaults/paymasterAndData.js.map +1 -1
- package/dist/esm/middleware/defaults/userOpSigner.js.map +1 -1
- package/dist/esm/middleware/erc7677middleware.js.map +1 -1
- package/dist/esm/middleware/types.js.map +1 -1
- package/dist/esm/signer/local-account.d.ts +2 -207
- package/dist/esm/signer/local-account.js.map +1 -1
- package/dist/esm/signer/schema.d.ts +1 -1
- package/dist/esm/signer/types.js.map +1 -1
- package/dist/esm/signer/wallet-client.d.ts +2 -207
- package/dist/esm/signer/wallet-client.js.map +1 -1
- package/dist/esm/transport/split.js.map +1 -1
- package/dist/esm/types.js.map +1 -1
- package/dist/esm/utils/bigint.js.map +1 -1
- package/dist/esm/utils/defaults.js.map +1 -1
- package/dist/esm/utils/index.d.ts +2 -2
- package/dist/esm/utils/index.js.map +1 -1
- package/dist/esm/utils/schema.js.map +1 -1
- package/dist/esm/utils/stateOverride.js.map +1 -1
- package/dist/esm/utils/testUtils.js.map +1 -1
- package/dist/esm/utils/traceHeader.js.map +1 -1
- package/dist/esm/utils/types.js.map +1 -1
- package/dist/esm/utils/userop.d.ts +2 -2
- package/dist/esm/utils/userop.js +1 -1
- package/dist/esm/utils/userop.js.map +1 -1
- package/dist/esm/version.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/esm/version.js.map +1 -1
- package/dist/types/account/smartContractAccount.d.ts +1 -1
- package/dist/types/account/smartContractAccount.d.ts.map +1 -1
- package/dist/types/actions/bundler/estimateUserOperationGas.d.ts +3 -2
- package/dist/types/actions/bundler/estimateUserOperationGas.d.ts.map +1 -1
- package/dist/types/actions/bundler/getSupportedEntryPoints.d.ts.map +1 -1
- package/dist/types/actions/bundler/getUserOperationByHash.d.ts.map +1 -1
- package/dist/types/actions/bundler/getUserOperationReceipt.d.ts.map +1 -1
- package/dist/types/actions/bundler/sendRawUserOperation.d.ts +2 -1
- package/dist/types/actions/bundler/sendRawUserOperation.d.ts.map +1 -1
- package/dist/types/actions/smartAccount/buildUserOperation.d.ts.map +1 -1
- package/dist/types/actions/smartAccount/buildUserOperationFromTx.d.ts.map +1 -1
- package/dist/types/actions/smartAccount/buildUserOperationFromTxs.d.ts.map +1 -1
- package/dist/types/actions/smartAccount/checkGasSponsorshipEligibility.d.ts.map +1 -1
- package/dist/types/actions/smartAccount/dropAndReplaceUserOperation.d.ts.map +1 -1
- package/dist/types/actions/smartAccount/estimateUserOperationGas.d.ts.map +1 -1
- package/dist/types/actions/smartAccount/getUserOperationError.d.ts +15 -0
- package/dist/types/actions/smartAccount/getUserOperationError.d.ts.map +1 -0
- package/dist/types/actions/smartAccount/internal/initUserOperation.d.ts.map +1 -1
- package/dist/types/actions/smartAccount/internal/runMiddlewareStack.d.ts.map +1 -1
- package/dist/types/actions/smartAccount/internal/sendUserOperation.d.ts.map +1 -1
- package/dist/types/actions/smartAccount/sendTransaction.d.ts.map +1 -1
- package/dist/types/actions/smartAccount/sendUserOperation.d.ts.map +1 -1
- package/dist/types/actions/smartAccount/signUserOperation.d.ts.map +1 -1
- package/dist/types/actions/smartAccount/types.d.ts.map +1 -1
- package/dist/types/client/decorators/smartAccountClient.d.ts.map +1 -1
- package/dist/types/client/schema.d.ts +25 -25
- package/dist/types/client/schema.d.ts.map +1 -1
- package/dist/types/ens/utils.d.ts.map +1 -1
- package/dist/types/entrypoint/0.6.d.ts +2 -2
- package/dist/types/entrypoint/0.6.d.ts.map +1 -1
- package/dist/types/entrypoint/0.7.d.ts +1 -1
- package/dist/types/entrypoint/0.7.d.ts.map +1 -1
- package/dist/types/entrypoint/index.d.ts +1 -1
- package/dist/types/entrypoint/index.d.ts.map +1 -1
- package/dist/types/entrypoint/types.d.ts.map +1 -1
- package/dist/types/errors/useroperation.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/middleware/actions.d.ts.map +1 -1
- package/dist/types/middleware/defaults/7702gasEstimator.d.ts +2 -2
- package/dist/types/middleware/defaults/7702signer.d.ts +1 -1
- package/dist/types/middleware/types.d.ts.map +1 -1
- package/dist/types/signer/local-account.d.ts +2 -207
- package/dist/types/signer/local-account.d.ts.map +1 -1
- package/dist/types/signer/schema.d.ts +1 -1
- package/dist/types/signer/schema.d.ts.map +1 -1
- package/dist/types/signer/utils.d.ts.map +1 -1
- package/dist/types/signer/wallet-client.d.ts +2 -207
- package/dist/types/signer/wallet-client.d.ts.map +1 -1
- package/dist/types/transport/split.d.ts.map +1 -1
- package/dist/types/types.d.ts.map +1 -1
- package/dist/types/utils/bigint.d.ts.map +1 -1
- package/dist/types/utils/bytes.d.ts.map +1 -1
- package/dist/types/utils/defaults.d.ts.map +1 -1
- package/dist/types/utils/index.d.ts +2 -2
- package/dist/types/utils/index.d.ts.map +1 -1
- package/dist/types/utils/testUtils.d.ts.map +1 -1
- package/dist/types/utils/traceHeader.d.ts.map +1 -1
- package/dist/types/utils/userop.d.ts +2 -2
- package/dist/types/utils/userop.d.ts.map +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +3 -6
- package/src/account/smartContractAccount.ts +27 -25
- package/src/actions/bundler/estimateUserOperationGas.ts +2 -2
- package/src/actions/bundler/getSupportedEntryPoints.ts +2 -2
- package/src/actions/bundler/getUserOperationByHash.ts +2 -2
- package/src/actions/bundler/getUserOperationReceipt.ts +2 -2
- package/src/actions/bundler/sendRawUserOperation.ts +2 -2
- package/src/actions/smartAccount/buildUserOperation.ts +5 -4
- package/src/actions/smartAccount/buildUserOperationFromTx.ts +4 -3
- package/src/actions/smartAccount/buildUserOperationFromTxs.ts +9 -8
- package/src/actions/smartAccount/checkGasSponsorshipEligibility.ts +5 -4
- package/src/actions/smartAccount/dropAndReplaceUserOperation.ts +7 -6
- package/src/actions/smartAccount/estimateUserOperationGas.ts +15 -8
- package/src/actions/smartAccount/getAddress.ts +2 -2
- package/src/actions/smartAccount/getUserOperationError.ts +119 -0
- package/src/actions/smartAccount/internal/initUserOperation.ts +7 -6
- package/src/actions/smartAccount/internal/runMiddlewareStack.ts +13 -12
- package/src/actions/smartAccount/internal/sendUserOperation.ts +13 -6
- package/src/actions/smartAccount/sendTransaction.ts +5 -4
- package/src/actions/smartAccount/sendTransactions.ts +3 -3
- package/src/actions/smartAccount/sendUserOperation.ts +4 -3
- package/src/actions/smartAccount/signMessage.ts +3 -3
- package/src/actions/smartAccount/signTypedData.ts +3 -3
- package/src/actions/smartAccount/signUserOperation.ts +4 -3
- package/src/actions/smartAccount/types.ts +23 -15
- package/src/actions/smartAccount/upgradeAccount.ts +3 -3
- package/src/actions/smartAccount/waitForUserOperationTransacation.ts +5 -5
- package/src/client/addBreadcrumb.ts +1 -1
- package/src/client/bundlerClient.ts +5 -5
- package/src/client/decorators/bundlerClient.ts +7 -7
- package/src/client/decorators/smartAccountClient.ts +20 -18
- package/src/client/isSmartAccountClient.ts +4 -4
- package/src/client/schema.ts +2 -2
- package/src/client/smartAccountClient.ts +14 -14
- package/src/client/types.ts +2 -2
- package/src/ens/utils.ts +1 -1
- package/src/entrypoint/0.6.ts +3 -3
- package/src/entrypoint/0.7.ts +4 -4
- package/src/entrypoint/index.ts +10 -9
- package/src/entrypoint/types.ts +30 -28
- package/src/errors/account.ts +1 -1
- package/src/errors/client.ts +3 -3
- package/src/errors/entrypoint.ts +2 -2
- package/src/errors/signer.ts +1 -1
- package/src/errors/useroperation.ts +6 -3
- package/src/index.ts +1 -0
- package/src/middleware/actions.ts +3 -3
- package/src/middleware/defaults/7702gasEstimator.ts +4 -4
- package/src/middleware/defaults/7702signer.ts +3 -3
- package/src/middleware/defaults/feeEstimator.ts +4 -4
- package/src/middleware/defaults/gasEstimator.ts +6 -6
- package/src/middleware/defaults/paymasterAndData.ts +1 -1
- package/src/middleware/defaults/userOpSigner.ts +2 -2
- package/src/middleware/erc7677middleware.ts +9 -9
- package/src/middleware/types.ts +7 -5
- package/src/signer/local-account.ts +7 -7
- package/src/signer/types.ts +3 -3
- package/src/signer/wallet-client.ts +2 -2
- package/src/transport/split.ts +1 -1
- package/src/types.ts +29 -29
- package/src/utils/bigint.ts +4 -4
- package/src/utils/defaults.ts +1 -1
- package/src/utils/index.ts +12 -9
- package/src/utils/schema.ts +2 -2
- package/src/utils/stateOverride.ts +4 -4
- package/src/utils/testUtils.ts +2 -2
- package/src/utils/traceHeader.ts +14 -11
- package/src/utils/types.ts +1 -1
- package/src/utils/userop.ts +17 -17
- package/src/version.ts +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Hex, type SignableMessage, type TypedDataDefinition, type WalletClient } from "viem";
|
|
1
|
+
import { type Hex, type SignableMessage, type TypedData, type TypedDataDefinition, type WalletClient } from "viem";
|
|
2
2
|
import type { SmartAccountSigner } from "./types";
|
|
3
3
|
/**
|
|
4
4
|
* Represents a wallet client signer for smart accounts, providing methods to get the address, sign messages, and sign typed data.
|
|
@@ -98,211 +98,6 @@ export declare class WalletClientSigner implements SmartAccountSigner<WalletClie
|
|
|
98
98
|
* @param {TypedDataDefinition<TTypedData, TPrimaryType>} typedData The typed data to be signed
|
|
99
99
|
* @returns {Promise<Hex>} A promise that resolves to a hex string representing the signed data
|
|
100
100
|
*/
|
|
101
|
-
signTypedData: <const TTypedData extends Record<string, unknown
|
|
102
|
-
[x: string]: readonly import("viem").TypedDataParameter[];
|
|
103
|
-
[x: `string[${string}]`]: undefined;
|
|
104
|
-
[x: `function[${string}]`]: undefined;
|
|
105
|
-
[x: `uint256[${string}]`]: undefined;
|
|
106
|
-
[x: `uint48[${string}]`]: undefined;
|
|
107
|
-
[x: `bool[${string}]`]: undefined;
|
|
108
|
-
[x: `bytes[${string}]`]: undefined;
|
|
109
|
-
[x: `address[${string}]`]: undefined;
|
|
110
|
-
[x: `bytes32[${string}]`]: undefined;
|
|
111
|
-
[x: `uint32[${string}]`]: undefined;
|
|
112
|
-
[x: `uint112[${string}]`]: undefined;
|
|
113
|
-
[x: `uint192[${string}]`]: undefined;
|
|
114
|
-
[x: `bytes4[${string}]`]: undefined;
|
|
115
|
-
[x: `uint8[${string}]`]: undefined;
|
|
116
|
-
[x: `uint64[${string}]`]: undefined;
|
|
117
|
-
[x: `bytes6[${string}]`]: undefined;
|
|
118
|
-
[x: `bytes2[${string}]`]: undefined;
|
|
119
|
-
[x: `bytes1[${string}]`]: undefined;
|
|
120
|
-
[x: `bytes5[${string}]`]: undefined;
|
|
121
|
-
[x: `bytes3[${string}]`]: undefined;
|
|
122
|
-
[x: `bytes7[${string}]`]: undefined;
|
|
123
|
-
[x: `bytes11[${string}]`]: undefined;
|
|
124
|
-
[x: `bytes8[${string}]`]: undefined;
|
|
125
|
-
[x: `bytes9[${string}]`]: undefined;
|
|
126
|
-
[x: `bytes10[${string}]`]: undefined;
|
|
127
|
-
[x: `bytes25[${string}]`]: undefined;
|
|
128
|
-
[x: `bytes12[${string}]`]: undefined;
|
|
129
|
-
[x: `bytes13[${string}]`]: undefined;
|
|
130
|
-
[x: `bytes14[${string}]`]: undefined;
|
|
131
|
-
[x: `bytes15[${string}]`]: undefined;
|
|
132
|
-
[x: `bytes16[${string}]`]: undefined;
|
|
133
|
-
[x: `bytes17[${string}]`]: undefined;
|
|
134
|
-
[x: `bytes18[${string}]`]: undefined;
|
|
135
|
-
[x: `bytes19[${string}]`]: undefined;
|
|
136
|
-
[x: `bytes20[${string}]`]: undefined;
|
|
137
|
-
[x: `bytes21[${string}]`]: undefined;
|
|
138
|
-
[x: `bytes22[${string}]`]: undefined;
|
|
139
|
-
[x: `bytes23[${string}]`]: undefined;
|
|
140
|
-
[x: `bytes24[${string}]`]: undefined;
|
|
141
|
-
[x: `bytes26[${string}]`]: undefined;
|
|
142
|
-
[x: `bytes27[${string}]`]: undefined;
|
|
143
|
-
[x: `bytes28[${string}]`]: undefined;
|
|
144
|
-
[x: `bytes29[${string}]`]: undefined;
|
|
145
|
-
[x: `bytes30[${string}]`]: undefined;
|
|
146
|
-
[x: `bytes31[${string}]`]: undefined;
|
|
147
|
-
[x: `int[${string}]`]: undefined;
|
|
148
|
-
[x: `int8[${string}]`]: undefined;
|
|
149
|
-
[x: `int16[${string}]`]: undefined;
|
|
150
|
-
[x: `int24[${string}]`]: undefined;
|
|
151
|
-
[x: `int32[${string}]`]: undefined;
|
|
152
|
-
[x: `int40[${string}]`]: undefined;
|
|
153
|
-
[x: `int48[${string}]`]: undefined;
|
|
154
|
-
[x: `int56[${string}]`]: undefined;
|
|
155
|
-
[x: `int64[${string}]`]: undefined;
|
|
156
|
-
[x: `int72[${string}]`]: undefined;
|
|
157
|
-
[x: `int80[${string}]`]: undefined;
|
|
158
|
-
[x: `int88[${string}]`]: undefined;
|
|
159
|
-
[x: `int96[${string}]`]: undefined;
|
|
160
|
-
[x: `int104[${string}]`]: undefined;
|
|
161
|
-
[x: `int112[${string}]`]: undefined;
|
|
162
|
-
[x: `int120[${string}]`]: undefined;
|
|
163
|
-
[x: `int128[${string}]`]: undefined;
|
|
164
|
-
[x: `int136[${string}]`]: undefined;
|
|
165
|
-
[x: `int144[${string}]`]: undefined;
|
|
166
|
-
[x: `int152[${string}]`]: undefined;
|
|
167
|
-
[x: `int160[${string}]`]: undefined;
|
|
168
|
-
[x: `int168[${string}]`]: undefined;
|
|
169
|
-
[x: `int176[${string}]`]: undefined;
|
|
170
|
-
[x: `int184[${string}]`]: undefined;
|
|
171
|
-
[x: `int192[${string}]`]: undefined;
|
|
172
|
-
[x: `int200[${string}]`]: undefined;
|
|
173
|
-
[x: `int208[${string}]`]: undefined;
|
|
174
|
-
[x: `int216[${string}]`]: undefined;
|
|
175
|
-
[x: `int224[${string}]`]: undefined;
|
|
176
|
-
[x: `int232[${string}]`]: undefined;
|
|
177
|
-
[x: `int240[${string}]`]: undefined;
|
|
178
|
-
[x: `int248[${string}]`]: undefined;
|
|
179
|
-
[x: `int256[${string}]`]: undefined;
|
|
180
|
-
[x: `uint[${string}]`]: undefined;
|
|
181
|
-
[x: `uint16[${string}]`]: undefined;
|
|
182
|
-
[x: `uint24[${string}]`]: undefined;
|
|
183
|
-
[x: `uint40[${string}]`]: undefined;
|
|
184
|
-
[x: `uint56[${string}]`]: undefined;
|
|
185
|
-
[x: `uint72[${string}]`]: undefined;
|
|
186
|
-
[x: `uint80[${string}]`]: undefined;
|
|
187
|
-
[x: `uint88[${string}]`]: undefined;
|
|
188
|
-
[x: `uint96[${string}]`]: undefined;
|
|
189
|
-
[x: `uint104[${string}]`]: undefined;
|
|
190
|
-
[x: `uint120[${string}]`]: undefined;
|
|
191
|
-
[x: `uint128[${string}]`]: undefined;
|
|
192
|
-
[x: `uint136[${string}]`]: undefined;
|
|
193
|
-
[x: `uint144[${string}]`]: undefined;
|
|
194
|
-
[x: `uint152[${string}]`]: undefined;
|
|
195
|
-
[x: `uint160[${string}]`]: undefined;
|
|
196
|
-
[x: `uint168[${string}]`]: undefined;
|
|
197
|
-
[x: `uint176[${string}]`]: undefined;
|
|
198
|
-
[x: `uint184[${string}]`]: undefined;
|
|
199
|
-
[x: `uint200[${string}]`]: undefined;
|
|
200
|
-
[x: `uint208[${string}]`]: undefined;
|
|
201
|
-
[x: `uint216[${string}]`]: undefined;
|
|
202
|
-
[x: `uint224[${string}]`]: undefined;
|
|
203
|
-
[x: `uint232[${string}]`]: undefined;
|
|
204
|
-
[x: `uint240[${string}]`]: undefined;
|
|
205
|
-
[x: `uint248[${string}]`]: undefined;
|
|
206
|
-
string?: undefined;
|
|
207
|
-
uint256?: undefined;
|
|
208
|
-
uint48?: undefined;
|
|
209
|
-
bool?: undefined;
|
|
210
|
-
bytes?: undefined;
|
|
211
|
-
address?: undefined;
|
|
212
|
-
bytes32?: undefined;
|
|
213
|
-
uint32?: undefined;
|
|
214
|
-
uint112?: undefined;
|
|
215
|
-
uint192?: undefined;
|
|
216
|
-
bytes4?: undefined;
|
|
217
|
-
uint8?: undefined;
|
|
218
|
-
uint64?: undefined;
|
|
219
|
-
bytes6?: undefined;
|
|
220
|
-
bytes2?: undefined;
|
|
221
|
-
bytes1?: undefined;
|
|
222
|
-
bytes5?: undefined;
|
|
223
|
-
bytes3?: undefined;
|
|
224
|
-
bytes7?: undefined;
|
|
225
|
-
bytes11?: undefined;
|
|
226
|
-
bytes8?: undefined;
|
|
227
|
-
bytes9?: undefined;
|
|
228
|
-
bytes10?: undefined;
|
|
229
|
-
bytes25?: undefined;
|
|
230
|
-
bytes12?: undefined;
|
|
231
|
-
bytes13?: undefined;
|
|
232
|
-
bytes14?: undefined;
|
|
233
|
-
bytes15?: undefined;
|
|
234
|
-
bytes16?: undefined;
|
|
235
|
-
bytes17?: undefined;
|
|
236
|
-
bytes18?: undefined;
|
|
237
|
-
bytes19?: undefined;
|
|
238
|
-
bytes20?: undefined;
|
|
239
|
-
bytes21?: undefined;
|
|
240
|
-
bytes22?: undefined;
|
|
241
|
-
bytes23?: undefined;
|
|
242
|
-
bytes24?: undefined;
|
|
243
|
-
bytes26?: undefined;
|
|
244
|
-
bytes27?: undefined;
|
|
245
|
-
bytes28?: undefined;
|
|
246
|
-
bytes29?: undefined;
|
|
247
|
-
bytes30?: undefined;
|
|
248
|
-
bytes31?: undefined;
|
|
249
|
-
int8?: undefined;
|
|
250
|
-
int16?: undefined;
|
|
251
|
-
int24?: undefined;
|
|
252
|
-
int32?: undefined;
|
|
253
|
-
int40?: undefined;
|
|
254
|
-
int48?: undefined;
|
|
255
|
-
int56?: undefined;
|
|
256
|
-
int64?: undefined;
|
|
257
|
-
int72?: undefined;
|
|
258
|
-
int80?: undefined;
|
|
259
|
-
int88?: undefined;
|
|
260
|
-
int96?: undefined;
|
|
261
|
-
int104?: undefined;
|
|
262
|
-
int112?: undefined;
|
|
263
|
-
int120?: undefined;
|
|
264
|
-
int128?: undefined;
|
|
265
|
-
int136?: undefined;
|
|
266
|
-
int144?: undefined;
|
|
267
|
-
int152?: undefined;
|
|
268
|
-
int160?: undefined;
|
|
269
|
-
int168?: undefined;
|
|
270
|
-
int176?: undefined;
|
|
271
|
-
int184?: undefined;
|
|
272
|
-
int192?: undefined;
|
|
273
|
-
int200?: undefined;
|
|
274
|
-
int208?: undefined;
|
|
275
|
-
int216?: undefined;
|
|
276
|
-
int224?: undefined;
|
|
277
|
-
int232?: undefined;
|
|
278
|
-
int240?: undefined;
|
|
279
|
-
int248?: undefined;
|
|
280
|
-
int256?: undefined;
|
|
281
|
-
uint16?: undefined;
|
|
282
|
-
uint24?: undefined;
|
|
283
|
-
uint40?: undefined;
|
|
284
|
-
uint56?: undefined;
|
|
285
|
-
uint72?: undefined;
|
|
286
|
-
uint80?: undefined;
|
|
287
|
-
uint88?: undefined;
|
|
288
|
-
uint96?: undefined;
|
|
289
|
-
uint104?: undefined;
|
|
290
|
-
uint120?: undefined;
|
|
291
|
-
uint128?: undefined;
|
|
292
|
-
uint136?: undefined;
|
|
293
|
-
uint144?: undefined;
|
|
294
|
-
uint152?: undefined;
|
|
295
|
-
uint160?: undefined;
|
|
296
|
-
uint168?: undefined;
|
|
297
|
-
uint176?: undefined;
|
|
298
|
-
uint184?: undefined;
|
|
299
|
-
uint200?: undefined;
|
|
300
|
-
uint208?: undefined;
|
|
301
|
-
uint216?: undefined;
|
|
302
|
-
uint224?: undefined;
|
|
303
|
-
uint232?: undefined;
|
|
304
|
-
uint240?: undefined;
|
|
305
|
-
uint248?: undefined;
|
|
306
|
-
}, TPrimaryType extends string | keyof TTypedData = string>(typedData: TypedDataDefinition<TTypedData, TPrimaryType>) => Promise<Hex>;
|
|
101
|
+
signTypedData: <const TTypedData extends TypedData | Record<string, unknown>, TPrimaryType extends keyof TTypedData | "EIP712Domain" | string = string>(typedData: TypedDataDefinition<TTypedData, TPrimaryType>) => Promise<Hex>;
|
|
307
102
|
}
|
|
308
103
|
//# sourceMappingURL=wallet-client.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wallet-client.d.ts","sourceRoot":"","sources":["../../../src/signer/wallet-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,GAAG,EACR,KAAK,eAAe,
|
|
1
|
+
{"version":3,"file":"wallet-client.d.ts","sourceRoot":"","sources":["../../../src/signer/wallet-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,GAAG,EACR,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,mBAAmB,EACxB,KAAK,YAAY,EAClB,MAAM,MAAM,CAAC;AAId,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD;;GAEG;AACH,qBAAa,kBAAmB,YAAW,kBAAkB,CAAC,YAAY,CAAC;IACzE,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,YAAY,CAAC;IAEpB;;;;;;;;;;;;;;;;;;;;OAoBG;gBACS,MAAM,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM;IAQpD;;;;;;;;;;;;;;;;;;;OAmBG;IACH,UAAU,EAAE,MAAM,OAAO,CAAC,KAAK,MAAM,EAAE,CAAC,CAGtC;IAEF;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,QAAQ,CAAC,WAAW,EAAE,CAAC,OAAO,EAAE,eAAe,KAAK,OAAO,CAAC,KAAK,MAAM,EAAE,CAAC,CAKtE;IAEJ;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;IACH,aAAa,GACX,KAAK,CAAC,UAAU,SAAS,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC5D,YAAY,SAAS,MAAM,UAAU,GAAG,cAAc,GAAG,MAAM,GAAG,MAAM,EAExE,WAAW,mBAAmB,CAAC,UAAU,EAAE,YAAY,CAAC,KACvD,OAAO,CAAC,GAAG,CAAC,CASb;CACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"split.d.ts","sourceRoot":"","sources":["../../../src/transport/split.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,eAAe,EAAE,KAAK,SAAS,EAAE,MAAM,MAAM,CAAC;AAEpE,MAAM,WAAW,oBAAoB;IACnC,SAAS,EAAE;QACT,OAAO,EAAE,MAAM,EAAE,CAAC;QAClB,SAAS,EAAE,SAAS,CAAC;KACtB,EAAE,CAAC;IACJ,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,eAAO,MAAM,KAAK,
|
|
1
|
+
{"version":3,"file":"split.d.ts","sourceRoot":"","sources":["../../../src/transport/split.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,eAAe,EAAE,KAAK,SAAS,EAAE,MAAM,MAAM,CAAC;AAEpE,MAAM,WAAW,oBAAoB;IACnC,SAAS,EAAE;QACT,OAAO,EAAE,MAAM,EAAE,CAAC;QAClB,SAAS,EAAE,SAAS,CAAC;KACtB,EAAE,CAAC;IACJ,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,eAAO,MAAM,KAAK,GAAI,QAAQ,oBAAoB,KAAG,eA0BpD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,IAAI,EACT,KAAK,GAAG,EACR,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACxB,MAAM,MAAM,CAAC;AACd,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAC7B,OAAO,KAAK,EACV,kCAAkC,EAClC,6BAA6B,EAC7B,gCAAgC,EAChC,gCAAgC,EACjC,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,KAAK,EACV,uBAAuB,EACvB,kBAAkB,EAClB,gBAAgB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,aAAa,CAAC,EAAE,SAAS,CAAC;IAE1B,SAAS,EAAE,SAAS,CAAC;CACtB;AAID,MAAM,MAAM,mBAAmB,CAC7B,kBAAkB,SAAS,iBAAiB,GAAG,iBAAiB,IAC9D,CAAC,kBAAkB,SAAS,OAAO,GACnC,sBAAsB,GACtB,kBAAkB,SAAS,OAAO,GAChC,sBAAsB,GACtB,KAAK,CAAC,GACV,qBAAqB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bigint.d.ts","sourceRoot":"","sources":["../../../src/utils/bigint.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAGzD;;;;;GAKG;AACH,eAAO,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"bigint.d.ts","sourceRoot":"","sources":["../../../src/utils/bigint.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAGzD;;;;;GAKG;AACH,eAAO,MAAM,SAAS,GAAI,GAAG,MAAM,MAAM,EAAE,KAAG,MAM7C,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,SAAS,GAAI,GAAG,MAAM,MAAM,EAAE,KAAG,MAM7C,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,GACtB,OAAO,YAAY,EACnB,OAAO,YAAY,GAAG,IAAI,GAAG,SAAS,EACtC,OAAO,YAAY,GAAG,IAAI,GAAG,SAAS,KACrC,MAkBF,CAAC;AAEF,oBAAY,YAAY;IACtB,UAAU,IAAI;IACd,QAAQ,IAAI;CACb;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc,GACzB,MAAM,YAAY,EAClB,YAAY,UAAU,CAAC,YAAY,CAAC,EACpC,eAAc,YAAoC,WAiBnD,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,aAAa,GAAI,QAAQ,MAAM,KAAG,MACb,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bytes.d.ts","sourceRoot":"","sources":["../../../src/utils/bytes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAEhC,KAAK,aAAa,GAAG;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"bytes.d.ts","sourceRoot":"","sources":["../../../src/utils/bytes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAEhC,KAAK,aAAa,GAAG;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,SAAS,GAAI,OAAO,GAAG,EAAE,OAAM,aAAkB,KAAG,GAMhE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../../src/utils/defaults.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,MAAM,CAAC;AAElC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAE3D,eAAO,MAAM,4BAA4B,qBAIvC,CAAC;AAEH,eAAO,MAAM,iCAAiC,
|
|
1
|
+
{"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../../src/utils/defaults.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,MAAM,CAAC;AAElC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAE3D,eAAO,MAAM,4BAA4B,qBAIvC,CAAC;AAEH,eAAO,MAAM,iCAAiC,GAC5C,OAAO,KAAK,KACX,uBAOF,CAAC"}
|
|
@@ -6,7 +6,7 @@ import type { RecordableKeys } from "./types.js";
|
|
|
6
6
|
* @param {((s: S, o?: O, f?: F) => Promise<S>)[]} fns - functions to pipe
|
|
7
7
|
* @returns {S} result of the pipe
|
|
8
8
|
*/
|
|
9
|
-
export declare const asyncPipe: <S, O, F>(...fns: ((s: S, o?: O
|
|
9
|
+
export declare const asyncPipe: <S, O, F>(...fns: ((s: S, o?: O, f?: F) => Promise<S>)[]) => (s: S, o?: O, f?: F) => Promise<S>;
|
|
10
10
|
export type Deferrable<T> = {
|
|
11
11
|
[K in keyof T]: PromiseOrValue<T[K]>;
|
|
12
12
|
};
|
|
@@ -100,7 +100,7 @@ export declare const conditionalReturn: <T>(condition: Promise<boolean>, value:
|
|
|
100
100
|
* @param {(item: T) => V} fn The function that transforms each item in the array into the record's value
|
|
101
101
|
* @returns {Record<T[K], V>} The resulting record object
|
|
102
102
|
*/
|
|
103
|
-
export declare const toRecord: <T extends { [
|
|
103
|
+
export declare const toRecord: <T extends { [K_1 in RecordableKeys<T>]: string | number | symbol; }, K extends RecordableKeys<T>, V>(array: T[], selector: K, fn: (item: T) => V) => Record<T[K], V>;
|
|
104
104
|
export * from "./bigint.js";
|
|
105
105
|
export * from "./bytes.js";
|
|
106
106
|
export * from "./defaults.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjD;;;;;GAKG;AACH,eAAO,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,KAAK,EAAE,c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AO,MAAM,OAAO,CAAC,CAAC,CAAC,KACtB,OAAO,CAAC,CAAC,GAAG,SAAS,CAAqD,CAAC;AAE9E;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,QAAQ,GACnB,CAAC,SAAS,GAAG,GAAC,IAAI,cAAc,CAAC,CAAC,CAAC,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAE,EAChE,CAAC,SAAS,cAAc,CAAC,CAAC,CAAC,EAC3B,CAAC,EAED,OAAO,CAAC,EAAE,EACV,UAAU,CAAC,EACX,IAAI,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,KACjB,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAOd,CAAC;AAEJ,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,mBAAmB,YAAY,CAAC;AAChC,cAAc,aAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/testUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8B,KAAK,KAAK,EAAY,MAAM,MAAM,CAAC;AACxE,OAAO,EAEL,KAAK,oBAAoB,EAC1B,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAEL,KAAK,aAAa,EACnB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAEvE,eAAO,MAAM,+BAA+B,
|
|
1
|
+
{"version":3,"file":"testUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/testUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8B,KAAK,KAAK,EAAY,MAAM,MAAM,CAAC;AACxE,OAAO,EAEL,KAAK,oBAAoB,EAC1B,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAEL,KAAK,aAAa,EACnB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAEvE,eAAO,MAAM,+BAA+B,GAAU,CAAC,SAAS,aAAa,EAC3E,QAAQ,CAAC,KACR,OAAO,CAAC,oBAAoB,CAAC,OAAO,EAAE,wBAAwB,CAAC,CAgBjE,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,OAAO,KAAK,kDAS5C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"traceHeader.d.ts","sourceRoot":"","sources":["../../../src/utils/traceHeader.ts"],"names":[],"mappings":"AASA;;;;GAIG;AAEH,eAAO,MAAM,iBAAiB,gBAAgB,CAAC;AAC/C;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,eAAe,CAAC;AAG/C;;;;;GAKG;AACH,qBAAa,WAAW;IACtB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAE5C;;;;;;;OAOG;gBAED,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,WAAW,CAAC,YAAY,CAAC;IAQvC;;;;;;;;OAQG;IACH,MAAM,CAAC,OAAO;IAQd;;;;;;;;;OASG;IACH,MAAM,CAAC,eAAe,CACpB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC9B,WAAW,GAAG,SAAS;
|
|
1
|
+
{"version":3,"file":"traceHeader.d.ts","sourceRoot":"","sources":["../../../src/utils/traceHeader.ts"],"names":[],"mappings":"AASA;;;;GAIG;AAEH,eAAO,MAAM,iBAAiB,gBAAgB,CAAC;AAC/C;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,eAAe,CAAC;AAG/C;;;;;GAKG;AACH,qBAAa,WAAW;IACtB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAE5C;;;;;;;OAOG;gBAED,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,WAAW,CAAC,YAAY,CAAC;IAQvC;;;;;;;;OAQG;IACH,MAAM,CAAC,OAAO;IAQd;;;;;;;;;OASG;IACH,MAAM,CAAC,eAAe,CACpB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC9B,WAAW,GAAG,SAAS;IA2B1B;;;;;;;;;OASG;IACH,aAAa;;;;IASb;;;;;;;;;;;;OAYG;IACH,SAAS,CAAC,SAAS,EAAE,MAAM,GAAG,WAAW;CAS1C"}
|
|
@@ -60,7 +60,7 @@ export declare function applyUserOpOverrideOrFeeOption<TValue extends BigNumberi
|
|
|
60
60
|
* @param {UserOperationOverrides<TEntryPointVersion> | undefined} overrides the user operation overrides to check
|
|
61
61
|
* @returns {boolean} whether the paymaster middleware should be bypassed
|
|
62
62
|
*/
|
|
63
|
-
export declare const bypassPaymasterAndData: <TEntryPointVersion extends
|
|
63
|
+
export declare const bypassPaymasterAndData: <TEntryPointVersion extends EntryPointVersion = EntryPointVersion>(overrides: UserOperationOverrides<TEntryPointVersion> | undefined) => boolean;
|
|
64
64
|
/**
|
|
65
65
|
* An alternative to `bypassPaymasterAndData` which only returns true if the data parameter
|
|
66
66
|
* is "0x," this is useful for cases when middleware should be bypassed ONLY IF the UserOp will
|
|
@@ -70,7 +70,7 @@ export declare const bypassPaymasterAndData: <TEntryPointVersion extends keyof i
|
|
|
70
70
|
* @param {UserOperationOverrides<TEntryPointVersion> | undefined} overrides the user operation overrides to check
|
|
71
71
|
* @returns {boolean} whether the paymaster middleware should be bypassed
|
|
72
72
|
*/
|
|
73
|
-
export declare const bypassPaymasterAndDataEmptyHex: <TEntryPointVersion extends
|
|
73
|
+
export declare const bypassPaymasterAndDataEmptyHex: <TEntryPointVersion extends EntryPointVersion = EntryPointVersion>(overrides: UserOperationOverrides<TEntryPointVersion> | undefined) => boolean;
|
|
74
74
|
/**
|
|
75
75
|
* Utility method for parsing the paymaster address and paymasterData from the paymasterAndData hex string
|
|
76
76
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"userop.d.ts","sourceRoot":"","sources":["../../../src/utils/userop.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,KAAK,GAAG,EAAE,MAAM,MAAM,CAAC;AACtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,KAAK,EACV,YAAY,EACZ,UAAU,EACV,4BAA4B,EAC5B,sBAAsB,EACtB,oBAAoB,EACpB,mBAAmB,EAGpB,MAAM,UAAU,CAAC;AAIlB;;;;;GAKG;AACH,wBAAgB,cAAc,CAC5B,kBAAkB,SAAS,iBAAiB,GAAG,iBAAiB,EAEhE,OAAO,EAAE,mBAAmB,CAAC,kBAAkB,CAAC,GAC/C,OAAO,IAAI,oBAAoB,CAAC,kBAAkB,CAAC,CAWrD;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,CACrC,kBAAkB,SAAS,iBAAiB,GAAG,iBAAiB,EAChE,OAAO,EAAE,mBAAmB,CAAC,kBAAkB,CAAC,GAAG,OAAO,CAY3D;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACnC,kBAAkB,SAAS,iBAAiB,GAAG,iBAAiB,EAChE,OAAO,EAAE,mBAAmB,CAAC,kBAAkB,CAAC,GAAG,OAAO,CAW3D;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,SAAS,YAAY,GAA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,KAAG,GACpC,CAAC"}
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "4.
|
|
1
|
+
export declare const VERSION = "4.36.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aa-sdk/core",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.36.0",
|
|
5
5
|
"description": "viem based SDK that enables interactions with ERC-4337 Smart Accounts. ABIs are based off the definitions generated in @account-abstraction/contracts",
|
|
6
6
|
"author": "Alchemy",
|
|
7
7
|
"type": "module",
|
|
@@ -44,10 +44,7 @@
|
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"dotenv": "^16.0.3",
|
|
47
|
-
"
|
|
48
|
-
"typescript": "^5.0.4",
|
|
49
|
-
"typescript-template": "*",
|
|
50
|
-
"vitest": "^2.0.4"
|
|
47
|
+
"typescript-template": "*"
|
|
51
48
|
},
|
|
52
49
|
"dependencies": {
|
|
53
50
|
"abitype": "^0.8.3",
|
|
@@ -65,5 +62,5 @@
|
|
|
65
62
|
"url": "https://github.com/alchemyplatform/aa-sdk/issues"
|
|
66
63
|
},
|
|
67
64
|
"homepage": "https://github.com/alchemyplatform/aa-sdk#readme",
|
|
68
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "298acffb1a9d648b4136e154c0354c1efe1c89f7"
|
|
69
66
|
}
|
|
@@ -48,22 +48,24 @@ export enum DeploymentState {
|
|
|
48
48
|
|
|
49
49
|
export type GetEntryPointFromAccount<
|
|
50
50
|
TAccount extends SmartContractAccount | undefined,
|
|
51
|
-
TAccountOverride extends SmartContractAccount = SmartContractAccount
|
|
52
|
-
> =
|
|
53
|
-
TAccount,
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
51
|
+
TAccountOverride extends SmartContractAccount = SmartContractAccount,
|
|
52
|
+
> =
|
|
53
|
+
GetAccountParameter<TAccount, TAccountOverride> extends SmartContractAccount<
|
|
54
|
+
string,
|
|
55
|
+
infer TEntryPointVersion
|
|
56
|
+
>
|
|
57
|
+
? TEntryPointVersion
|
|
58
|
+
: EntryPointVersion;
|
|
58
59
|
|
|
59
60
|
export type GetAccountParameter<
|
|
60
61
|
TAccount extends SmartContractAccount | undefined =
|
|
61
62
|
| SmartContractAccount
|
|
62
63
|
| undefined,
|
|
63
|
-
TAccountOverride extends SmartContractAccount = SmartContractAccount
|
|
64
|
-
> =
|
|
65
|
-
|
|
66
|
-
|
|
64
|
+
TAccountOverride extends SmartContractAccount = SmartContractAccount,
|
|
65
|
+
> =
|
|
66
|
+
IsUndefined<TAccount> extends true
|
|
67
|
+
? { account: TAccountOverride }
|
|
68
|
+
: { account?: TAccountOverride };
|
|
67
69
|
|
|
68
70
|
export type UpgradeToAndCallParams = {
|
|
69
71
|
upgradeToAddress: Address;
|
|
@@ -73,7 +75,7 @@ export type UpgradeToAndCallParams = {
|
|
|
73
75
|
export type SmartContractAccountWithSigner<
|
|
74
76
|
Name extends string = string,
|
|
75
77
|
TSigner extends SmartAccountSigner = SmartAccountSigner,
|
|
76
|
-
TEntryPointVersion extends EntryPointVersion = EntryPointVersion
|
|
78
|
+
TEntryPointVersion extends EntryPointVersion = EntryPointVersion,
|
|
77
79
|
> = SmartContractAccount<Name, TEntryPointVersion> & {
|
|
78
80
|
getSigner: () => TSigner;
|
|
79
81
|
};
|
|
@@ -94,7 +96,7 @@ export type SmartContractAccountWithSigner<
|
|
|
94
96
|
* @returns {boolean} true if the account has a signer, otherwise false.
|
|
95
97
|
*/
|
|
96
98
|
export const isSmartAccountWithSigner = (
|
|
97
|
-
account: SmartContractAccount
|
|
99
|
+
account: SmartContractAccount,
|
|
98
100
|
): account is SmartContractAccountWithSigner => {
|
|
99
101
|
return "getSigner" in account;
|
|
100
102
|
};
|
|
@@ -102,7 +104,7 @@ export const isSmartAccountWithSigner = (
|
|
|
102
104
|
// [!region SmartContractAccount]
|
|
103
105
|
export type SmartContractAccount<
|
|
104
106
|
Name extends string = string,
|
|
105
|
-
TEntryPointVersion extends EntryPointVersion = EntryPointVersion
|
|
107
|
+
TEntryPointVersion extends EntryPointVersion = EntryPointVersion,
|
|
106
108
|
> = LocalAccount<Name> & {
|
|
107
109
|
source: Name;
|
|
108
110
|
getDummySignature: () => Hex | Promise<Hex>;
|
|
@@ -112,9 +114,9 @@ export type SmartContractAccount<
|
|
|
112
114
|
signMessageWith6492: (params: { message: SignableMessage }) => Promise<Hex>;
|
|
113
115
|
signTypedDataWith6492: <
|
|
114
116
|
const typedData extends TypedData | Record<string, unknown>,
|
|
115
|
-
primaryType extends keyof typedData | "EIP712Domain" = keyof typedData
|
|
117
|
+
primaryType extends keyof typedData | "EIP712Domain" = keyof typedData,
|
|
116
118
|
>(
|
|
117
|
-
typedDataDefinition: TypedDataDefinition<typedData, primaryType
|
|
119
|
+
typedDataDefinition: TypedDataDefinition<typedData, primaryType>,
|
|
118
120
|
) => Promise<Hex>;
|
|
119
121
|
encodeUpgradeToAndCall: (params: UpgradeToAndCallParams) => Promise<Hex>;
|
|
120
122
|
getAccountNonce(nonceKey?: bigint): Promise<bigint>;
|
|
@@ -140,7 +142,7 @@ export type ToSmartContractAccountParams<
|
|
|
140
142
|
Name extends string = string,
|
|
141
143
|
TTransport extends Transport = Transport,
|
|
142
144
|
TChain extends Chain = Chain,
|
|
143
|
-
TEntryPointVersion extends EntryPointVersion = EntryPointVersion
|
|
145
|
+
TEntryPointVersion extends EntryPointVersion = EntryPointVersion,
|
|
144
146
|
> = {
|
|
145
147
|
source: Name;
|
|
146
148
|
transport: TTransport;
|
|
@@ -173,7 +175,7 @@ export type ToSmartContractAccountParams<
|
|
|
173
175
|
* @returns {[Address, Hex]} A tuple containing the parsed factory address and factory calldata
|
|
174
176
|
*/
|
|
175
177
|
export const parseFactoryAddressFromAccountInitCode = (
|
|
176
|
-
initCode: Hex
|
|
178
|
+
initCode: Hex,
|
|
177
179
|
): [Address, Hex] => {
|
|
178
180
|
const factoryAddress: Address = `0x${initCode.substring(2, 42)}`;
|
|
179
181
|
const factoryCalldata: Hex = `0x${initCode.substring(42)}`;
|
|
@@ -230,12 +232,12 @@ export const getAccountAddress = async ({
|
|
|
230
232
|
} catch (err: any) {
|
|
231
233
|
Logger.verbose(
|
|
232
234
|
"[BaseSmartContractAccount](getAddress) getSenderAddress err: ",
|
|
233
|
-
err
|
|
235
|
+
err,
|
|
234
236
|
);
|
|
235
237
|
if (err.cause?.data?.errorName === "SenderAddressResult") {
|
|
236
238
|
Logger.verbose(
|
|
237
239
|
"[BaseSmartContractAccount](getAddress) entryPoint.getSenderAddress result:",
|
|
238
|
-
err.cause.data.args[0]
|
|
240
|
+
err.cause.data.args[0],
|
|
239
241
|
);
|
|
240
242
|
|
|
241
243
|
return err.cause.data.args[0] as Address;
|
|
@@ -254,7 +256,7 @@ export async function toSmartContractAccount<
|
|
|
254
256
|
Name extends string = string,
|
|
255
257
|
TTransport extends Transport = Transport,
|
|
256
258
|
TChain extends Chain = Chain,
|
|
257
|
-
TEntryPointVersion extends EntryPointVersion = EntryPointVersion
|
|
259
|
+
TEntryPointVersion extends EntryPointVersion = EntryPointVersion,
|
|
258
260
|
>({
|
|
259
261
|
transport,
|
|
260
262
|
chain,
|
|
@@ -331,7 +333,7 @@ export async function toSmartContractAccount<
|
|
|
331
333
|
* @returns {Promise<SmartContractAccount>} a promise that resolves to a SmartContractAccount object with methods and properties for interacting with the smart contract account
|
|
332
334
|
*/
|
|
333
335
|
export async function toSmartContractAccount(
|
|
334
|
-
params: ToSmartContractAccountParams
|
|
336
|
+
params: ToSmartContractAccountParams,
|
|
335
337
|
): Promise<SmartContractAccount> {
|
|
336
338
|
const {
|
|
337
339
|
transport,
|
|
@@ -463,9 +465,9 @@ export async function toSmartContractAccount(
|
|
|
463
465
|
|
|
464
466
|
const signTypedDataWith6492 = async <
|
|
465
467
|
const typedData extends TypedData | Record<string, unknown>,
|
|
466
|
-
primaryType extends keyof typedData | "EIP712Domain" = keyof typedData
|
|
468
|
+
primaryType extends keyof typedData | "EIP712Domain" = keyof typedData,
|
|
467
469
|
>(
|
|
468
|
-
typedDataDefinition: TypedDataDefinition<typedData, primaryType
|
|
470
|
+
typedDataDefinition: TypedDataDefinition<typedData, primaryType>,
|
|
469
471
|
): Promise<Hex> => {
|
|
470
472
|
const [isDeployed, signature] = await Promise.all([
|
|
471
473
|
isAccountDeployed(),
|
|
@@ -487,7 +489,7 @@ export async function toSmartContractAccount(
|
|
|
487
489
|
if (storage == null) {
|
|
488
490
|
throw new FailedToGetStorageSlotError(
|
|
489
491
|
"0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc",
|
|
490
|
-
"Proxy Implementation Address"
|
|
492
|
+
"Proxy Implementation Address",
|
|
491
493
|
);
|
|
492
494
|
}
|
|
493
495
|
|
|
@@ -9,14 +9,14 @@ import { serializeStateOverride } from "../../utils/stateOverride.js";
|
|
|
9
9
|
|
|
10
10
|
export const estimateUserOperationGas = async <
|
|
11
11
|
TClient extends Client<Transport, Chain | undefined, any, BundlerRpcSchema>,
|
|
12
|
-
TEntryPointVersion extends EntryPointVersion = EntryPointVersion
|
|
12
|
+
TEntryPointVersion extends EntryPointVersion = EntryPointVersion,
|
|
13
13
|
>(
|
|
14
14
|
client: TClient,
|
|
15
15
|
args: {
|
|
16
16
|
request: UserOperationRequest<TEntryPointVersion>;
|
|
17
17
|
entryPoint: Address;
|
|
18
18
|
stateOverride?: StateOverride;
|
|
19
|
-
}
|
|
19
|
+
},
|
|
20
20
|
): Promise<UserOperationEstimateGasResponse<TEntryPointVersion>> => {
|
|
21
21
|
return client.request({
|
|
22
22
|
method: "eth_estimateUserOperationGas",
|
|
@@ -2,9 +2,9 @@ import type { Address, Chain, Client, Transport } from "viem";
|
|
|
2
2
|
import type { BundlerRpcSchema } from "../../client/decorators/bundlerClient";
|
|
3
3
|
|
|
4
4
|
export const getSupportedEntryPoints = async <
|
|
5
|
-
TClient extends Client<Transport, Chain | undefined, any, BundlerRpcSchema
|
|
5
|
+
TClient extends Client<Transport, Chain | undefined, any, BundlerRpcSchema>,
|
|
6
6
|
>(
|
|
7
|
-
client: TClient
|
|
7
|
+
client: TClient,
|
|
8
8
|
): Promise<Address[]> => {
|
|
9
9
|
return client.request({
|
|
10
10
|
method: "eth_supportedEntryPoints",
|
|
@@ -3,12 +3,12 @@ import type { BundlerRpcSchema } from "../../client/decorators/bundlerClient";
|
|
|
3
3
|
import type { UserOperationResponse } from "../../types";
|
|
4
4
|
|
|
5
5
|
export const getUserOperationByHash = async <
|
|
6
|
-
TClient extends Client<Transport, Chain | undefined, any, BundlerRpcSchema
|
|
6
|
+
TClient extends Client<Transport, Chain | undefined, any, BundlerRpcSchema>,
|
|
7
7
|
>(
|
|
8
8
|
client: TClient,
|
|
9
9
|
args: {
|
|
10
10
|
hash: Hex;
|
|
11
|
-
}
|
|
11
|
+
},
|
|
12
12
|
): Promise<UserOperationResponse | null> => {
|
|
13
13
|
return client.request({
|
|
14
14
|
method: "eth_getUserOperationByHash",
|
|
@@ -3,12 +3,12 @@ import type { BundlerRpcSchema } from "../../client/decorators/bundlerClient";
|
|
|
3
3
|
import type { UserOperationReceipt } from "../../types";
|
|
4
4
|
|
|
5
5
|
export const getUserOperationReceipt = async <
|
|
6
|
-
TClient extends Client<Transport, Chain | undefined, any, BundlerRpcSchema
|
|
6
|
+
TClient extends Client<Transport, Chain | undefined, any, BundlerRpcSchema>,
|
|
7
7
|
>(
|
|
8
8
|
client: TClient,
|
|
9
9
|
args: {
|
|
10
10
|
hash: Hex;
|
|
11
|
-
}
|
|
11
|
+
},
|
|
12
12
|
): Promise<UserOperationReceipt | null> => {
|
|
13
13
|
return client.request({
|
|
14
14
|
method: "eth_getUserOperationReceipt",
|
|
@@ -5,13 +5,13 @@ import type { UserOperationRequest } from "../../types";
|
|
|
5
5
|
|
|
6
6
|
export const sendRawUserOperation = async <
|
|
7
7
|
TClient extends Client<Transport, Chain | undefined, any, BundlerRpcSchema>,
|
|
8
|
-
TEntryPointVersion extends EntryPointVersion = EntryPointVersion
|
|
8
|
+
TEntryPointVersion extends EntryPointVersion = EntryPointVersion,
|
|
9
9
|
>(
|
|
10
10
|
client: TClient,
|
|
11
11
|
args: {
|
|
12
12
|
request: UserOperationRequest<TEntryPointVersion>;
|
|
13
13
|
entryPoint: Address;
|
|
14
|
-
}
|
|
14
|
+
},
|
|
15
15
|
): Promise<Hex> => {
|
|
16
16
|
return client.request({
|
|
17
17
|
method: "eth_sendUserOperation",
|
|
@@ -48,10 +48,11 @@ export async function buildUserOperation<
|
|
|
48
48
|
TContext extends UserOperationContext | undefined =
|
|
49
49
|
| UserOperationContext
|
|
50
50
|
| undefined,
|
|
51
|
-
TEntryPointVersion extends
|
|
51
|
+
TEntryPointVersion extends
|
|
52
|
+
GetEntryPointFromAccount<TAccount> = GetEntryPointFromAccount<TAccount>,
|
|
52
53
|
>(
|
|
53
54
|
client_: Client<TTransport, TChain, TAccount>,
|
|
54
|
-
args: BuildUserOperationParameters<TAccount, TContext, TEntryPointVersion
|
|
55
|
+
args: BuildUserOperationParameters<TAccount, TContext, TEntryPointVersion>,
|
|
55
56
|
): Promise<UserOperationStruct<TEntryPointVersion>> {
|
|
56
57
|
const client = clientHeaderTrack(client_, USER_OPERATION_METHOD);
|
|
57
58
|
const { account = client.account, overrides, context } = args;
|
|
@@ -63,7 +64,7 @@ export async function buildUserOperation<
|
|
|
63
64
|
throw new IncompatibleClientError(
|
|
64
65
|
"BaseSmartAccountClient",
|
|
65
66
|
USER_OPERATION_METHOD,
|
|
66
|
-
client
|
|
67
|
+
client,
|
|
67
68
|
);
|
|
68
69
|
}
|
|
69
70
|
|
|
@@ -73,6 +74,6 @@ export async function buildUserOperation<
|
|
|
73
74
|
overrides,
|
|
74
75
|
account,
|
|
75
76
|
context,
|
|
76
|
-
})
|
|
77
|
+
}),
|
|
77
78
|
);
|
|
78
79
|
}
|