@metamask/smart-accounts-kit 0.2.0 → 0.3.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/CHANGELOG.md +9 -1
- package/dist/actions/index.cjs +5 -5
- package/dist/actions/index.mjs +4 -4
- package/dist/{chunk-K5C42JZ2.mjs → chunk-2HNEALPY.mjs} +4 -4
- package/dist/{chunk-PSERHFRY.mjs → chunk-3JBYBEYP.mjs} +2 -2
- package/dist/{chunk-PZM5E7L3.cjs → chunk-4QBJFYZ7.cjs} +12 -12
- package/dist/{chunk-PZM5E7L3.cjs.map → chunk-4QBJFYZ7.cjs.map} +1 -1
- package/dist/{chunk-AAYEHQXN.cjs → chunk-5ZBCTLQS.cjs} +8 -8
- package/dist/{chunk-AAYEHQXN.cjs.map → chunk-5ZBCTLQS.cjs.map} +1 -1
- package/dist/{chunk-DR5QAW34.mjs → chunk-72UQFUL5.mjs} +2 -2
- package/dist/{chunk-Q6ZTEHYY.mjs → chunk-BJGZGTRU.mjs} +3 -2
- package/dist/{chunk-Q6ZTEHYY.mjs.map → chunk-BJGZGTRU.mjs.map} +1 -1
- package/dist/{chunk-CE3ZQE3P.cjs → chunk-BWR5ZK6Z.cjs} +3 -3
- package/dist/{chunk-CE3ZQE3P.cjs.map → chunk-BWR5ZK6Z.cjs.map} +1 -1
- package/dist/{chunk-4WKZQUP4.cjs → chunk-DLR4BZKP.cjs} +102 -102
- package/dist/{chunk-4WKZQUP4.cjs.map → chunk-DLR4BZKP.cjs.map} +1 -1
- package/dist/{chunk-LCNP5VYR.mjs → chunk-F5U55BIP.mjs} +2 -2
- package/dist/{chunk-MAPUND7S.cjs → chunk-HJETDDBN.cjs} +3 -2
- package/dist/chunk-HJETDDBN.cjs.map +1 -0
- package/dist/{chunk-3OQKCVQC.mjs → chunk-KTAXE6PZ.mjs} +4 -4
- package/dist/{chunk-XU72WGZA.cjs → chunk-QHDMZSGQ.cjs} +11 -11
- package/dist/{chunk-XU72WGZA.cjs.map → chunk-QHDMZSGQ.cjs.map} +1 -1
- package/dist/{chunk-PTIEXLLP.cjs → chunk-QPCM4XRT.cjs} +18 -18
- package/dist/{chunk-PTIEXLLP.cjs.map → chunk-QPCM4XRT.cjs.map} +1 -1
- package/dist/{chunk-XHKSMZ7G.mjs → chunk-Y5MOTV4T.mjs} +2 -2
- package/dist/contracts/index.cjs +5 -5
- package/dist/contracts/index.d.cts +2 -2
- package/dist/contracts/index.d.ts +2 -2
- package/dist/contracts/index.mjs +4 -4
- package/dist/{delegation-d52Owevd.d.cts → delegation-C7M1fy5Q.d.cts} +2 -2
- package/dist/{delegation-7PtFix8Y.d.ts → delegation-CCMAKs7W.d.ts} +2 -2
- package/dist/experimental/index.cjs +3 -3
- package/dist/experimental/index.mjs +1 -1
- package/dist/{index-0-B0YlEP.d.cts → index-BGXTbonF.d.cts} +1 -1
- package/dist/{index-D1WbhKCc.d.ts → index-DeHcI5-n.d.ts} +1 -1
- package/dist/index.cjs +19 -19
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +7 -7
- package/dist/utils/index.cjs +5 -5
- package/dist/utils/index.d.cts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.mjs +4 -4
- package/package.json +17 -1
- package/dist/chunk-MAPUND7S.cjs.map +0 -1
- /package/dist/{chunk-K5C42JZ2.mjs.map → chunk-2HNEALPY.mjs.map} +0 -0
- /package/dist/{chunk-PSERHFRY.mjs.map → chunk-3JBYBEYP.mjs.map} +0 -0
- /package/dist/{chunk-DR5QAW34.mjs.map → chunk-72UQFUL5.mjs.map} +0 -0
- /package/dist/{chunk-LCNP5VYR.mjs.map → chunk-F5U55BIP.mjs.map} +0 -0
- /package/dist/{chunk-3OQKCVQC.mjs.map → chunk-KTAXE6PZ.mjs.map} +0 -0
- /package/dist/{chunk-XHKSMZ7G.mjs.map → chunk-Y5MOTV4T.mjs.map} +0 -0
package/dist/index.cjs
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkQPCM4XRTcjs = require('./chunk-QPCM4XRT.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
10
|
-
require('./chunk-
|
|
9
|
+
var _chunkDLR4BZKPcjs = require('./chunk-DLR4BZKP.cjs');
|
|
10
|
+
require('./chunk-4QBJFYZ7.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
@@ -15,15 +15,15 @@ require('./chunk-PZM5E7L3.cjs');
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunk5ZBCTLQScjs = require('./chunk-5ZBCTLQS.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
26
|
-
require('./chunk-
|
|
25
|
+
var _chunkBWR5ZK6Zcjs = require('./chunk-BWR5ZK6Z.cjs');
|
|
26
|
+
require('./chunk-QHDMZSGQ.cjs');
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
@@ -38,7 +38,7 @@ var _chunkT6PSFUOZcjs = require('./chunk-T6PSFUOZ.cjs');
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
var
|
|
41
|
+
var _chunkHJETDDBNcjs = require('./chunk-HJETDDBN.cjs');
|
|
42
42
|
|
|
43
43
|
// src/toMetaMaskSmartAccount.ts
|
|
44
44
|
|
|
@@ -114,7 +114,7 @@ var resolveHybridSigner = (config) => {
|
|
|
114
114
|
if (webAuthnAccount.type !== "webAuthn") {
|
|
115
115
|
throw new Error("Account is not a webAuthn account");
|
|
116
116
|
}
|
|
117
|
-
const encodeSignature = ({ signature, webauthn }) =>
|
|
117
|
+
const encodeSignature = ({ signature, webauthn }) => _chunk5ZBCTLQScjs.encodeDeleGatorSignature.call(void 0,
|
|
118
118
|
keyId,
|
|
119
119
|
signature,
|
|
120
120
|
webauthn.clientDataJSON,
|
|
@@ -122,7 +122,7 @@ var resolveHybridSigner = (config) => {
|
|
|
122
122
|
);
|
|
123
123
|
const signMessage = async (args) => webAuthnAccount.signMessage(args).then(encodeSignature);
|
|
124
124
|
const signTypedData = async (typedDataDefinition) => webAuthnAccount.signTypedData(typedDataDefinition).then(encodeSignature);
|
|
125
|
-
const getStubSignature = async () =>
|
|
125
|
+
const getStubSignature = async () => _chunk5ZBCTLQScjs.createDummyWebAuthnSignature.call(void 0, keyId);
|
|
126
126
|
return {
|
|
127
127
|
signMessage,
|
|
128
128
|
signTypedData,
|
|
@@ -238,7 +238,7 @@ async function toMetaMaskSmartAccount(params) {
|
|
|
238
238
|
implementation,
|
|
239
239
|
signer: params.signer
|
|
240
240
|
});
|
|
241
|
-
const environment = _nullishCoalesce(params.environment, () => (
|
|
241
|
+
const environment = _nullishCoalesce(params.environment, () => ( _chunkBWR5ZK6Zcjs.getSmartAccountsEnvironment.call(void 0, chain.id)));
|
|
242
242
|
let address, factoryData;
|
|
243
243
|
if (params.address) {
|
|
244
244
|
factoryData = void 0;
|
|
@@ -247,7 +247,7 @@ async function toMetaMaskSmartAccount(params) {
|
|
|
247
247
|
if (implementation === "Stateless7702" /* Stateless7702 */) {
|
|
248
248
|
throw new Error("Stateless7702 does not support counterfactual accounts");
|
|
249
249
|
}
|
|
250
|
-
const accountData = await
|
|
250
|
+
const accountData = await _chunk5ZBCTLQScjs.getCounterfactualAccountData.call(void 0, {
|
|
251
251
|
factory: environment.SimpleFactory,
|
|
252
252
|
implementations: environment.implementations,
|
|
253
253
|
implementation,
|
|
@@ -289,7 +289,7 @@ async function toMetaMaskSmartAccount(params) {
|
|
|
289
289
|
};
|
|
290
290
|
const signDelegation2 = async (delegationParams) => {
|
|
291
291
|
const { delegation, chainId } = delegationParams;
|
|
292
|
-
const delegationStruct =
|
|
292
|
+
const delegationStruct = _chunkHJETDDBNcjs.toDelegationStruct.call(void 0, {
|
|
293
293
|
...delegation,
|
|
294
294
|
signature: "0x"
|
|
295
295
|
});
|
|
@@ -300,7 +300,7 @@ async function toMetaMaskSmartAccount(params) {
|
|
|
300
300
|
version: "1",
|
|
301
301
|
verifyingContract: environment.DelegationManager
|
|
302
302
|
},
|
|
303
|
-
types:
|
|
303
|
+
types: _chunkHJETDDBNcjs.SIGNABLE_DELEGATION_TYPED_DATA,
|
|
304
304
|
primaryType: "Delegation",
|
|
305
305
|
message: delegationStruct
|
|
306
306
|
});
|
|
@@ -320,20 +320,20 @@ async function toMetaMaskSmartAccount(params) {
|
|
|
320
320
|
version: "1",
|
|
321
321
|
verifyingContract: address
|
|
322
322
|
},
|
|
323
|
-
types:
|
|
323
|
+
types: _chunkBWR5ZK6Zcjs.SIGNABLE_USER_OP_TYPED_DATA,
|
|
324
324
|
primaryType: "PackedUserOperation",
|
|
325
325
|
message: { ...packedUserOp, entryPoint: entryPoint.address }
|
|
326
326
|
});
|
|
327
327
|
return signature;
|
|
328
328
|
};
|
|
329
329
|
const getAddress = async () => address;
|
|
330
|
-
const getNonce = async () =>
|
|
330
|
+
const getNonce = async () => _chunkDLR4BZKPcjs.read.call(void 0, {
|
|
331
331
|
client,
|
|
332
332
|
entryPoint: environment.EntryPoint,
|
|
333
333
|
contractAddress: address,
|
|
334
334
|
key: 0n
|
|
335
335
|
});
|
|
336
|
-
const encodeCalls = async (calls) =>
|
|
336
|
+
const encodeCalls = async (calls) => _chunk5ZBCTLQScjs.encodeCallsForCaller.call(void 0, address, calls);
|
|
337
337
|
const smartAccount = await _accountabstraction.toSmartAccount.call(void 0, {
|
|
338
338
|
abi,
|
|
339
339
|
client,
|
|
@@ -350,7 +350,7 @@ async function toMetaMaskSmartAccount(params) {
|
|
|
350
350
|
if (implementation === "Stateless7702" /* Stateless7702 */) {
|
|
351
351
|
return {
|
|
352
352
|
...smartAccount,
|
|
353
|
-
isDeployed: async () =>
|
|
353
|
+
isDeployed: async () => _chunkQPCM4XRTcjs.isValid7702Implementation.call(void 0, {
|
|
354
354
|
client,
|
|
355
355
|
accountAddress: address,
|
|
356
356
|
environment
|
|
@@ -365,7 +365,7 @@ function createCaveatEnforcerClient({
|
|
|
365
365
|
client,
|
|
366
366
|
environment
|
|
367
367
|
}) {
|
|
368
|
-
return client.extend(
|
|
368
|
+
return client.extend(_chunkQPCM4XRTcjs.caveatEnforcerActions.call(void 0, { environment }));
|
|
369
369
|
}
|
|
370
370
|
|
|
371
371
|
// src/actions/infuraBundlerClient.ts
|
|
@@ -420,5 +420,5 @@ function createInfuraBundlerClient(config) {
|
|
|
420
420
|
|
|
421
421
|
|
|
422
422
|
|
|
423
|
-
exports.ANY_BENEFICIARY =
|
|
423
|
+
exports.ANY_BENEFICIARY = _chunkHJETDDBNcjs.ANY_BENEFICIARY; exports.BalanceChangeType = _chunkHJETDDBNcjs.BalanceChangeType; exports.ExecutionMode = _chunkT6PSFUOZcjs.ExecutionMode; exports.Implementation = _chunk5ZBCTLQScjs.Implementation; exports.PREFERRED_VERSION = _chunkBWR5ZK6Zcjs.PREFERRED_VERSION; exports.ROOT_AUTHORITY = _chunkHJETDDBNcjs.ROOT_AUTHORITY; exports.TransferWindow = _chunk5ZBCTLQScjs.TransferWindow; exports.actions = _chunkQPCM4XRTcjs.actions_exports; exports.aggregateSignature = aggregateSignature; exports.contracts = _chunkDLR4BZKPcjs.contracts_exports; exports.createCaveat = _chunkHJETDDBNcjs.createCaveat; exports.createCaveatEnforcerClient = createCaveatEnforcerClient; exports.createDelegation = _chunkHJETDDBNcjs.createDelegation; exports.createExecution = _chunkT6PSFUOZcjs.createExecution; exports.createInfuraBundlerClient = createInfuraBundlerClient; exports.createOpenDelegation = _chunkHJETDDBNcjs.createOpenDelegation; exports.getSmartAccountsEnvironment = _chunkBWR5ZK6Zcjs.getSmartAccountsEnvironment; exports.redeemDelegations = _chunkBWR5ZK6Zcjs.redeemDelegations; exports.signDelegation = _chunkHJETDDBNcjs.signDelegation; exports.signUserOperation = _chunkBWR5ZK6Zcjs.signUserOperation; exports.toMetaMaskSmartAccount = toMetaMaskSmartAccount;
|
|
424
424
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { I as Implementation, T as ToMetaMaskSmartAccountParameters, a as ToMetaMaskSmartAccountReturnType, C as Caveat, R as Redemption, S as SmartAccountsEnvironment } from './types-Bwksz_U6.cjs';
|
|
2
2
|
export { A as AccountSignerConfig, l as CreateExecutionArgs, D as Delegation, E as ExecutionMode, k as ExecutionStruct, H as HybridDeleGatorDeployParams, g as HybridSignerConfig, e as MetaMaskSmartAccount, d as MetaMaskSmartAccountImplementation, M as MultiSigDeleGatorDeployParams, h as MultiSigSignerConfig, c as SignDelegationParams, b as SignUserOperationParams, i as TransferWindow, W as WalletSignerConfig, f as WebAuthnSignerConfig, j as createExecution } from './types-Bwksz_U6.cjs';
|
|
3
|
-
export { B as BalanceChangeType, d as Caveats, C as CreateDelegationOptions, b as CreateOpenDelegationOptions, c as createDelegation, a as createOpenDelegation, s as signDelegation } from './delegation-
|
|
3
|
+
export { B as BalanceChangeType, d as Caveats, C as CreateDelegationOptions, b as CreateOpenDelegationOptions, c as createDelegation, a as createOpenDelegation, s as signDelegation } from './delegation-C7M1fy5Q.cjs';
|
|
4
4
|
export { P as PREFERRED_VERSION, g as getSmartAccountsEnvironment } from './smartAccountsEnvironment-SVknZ_3f.cjs';
|
|
5
5
|
import { Hex, Address, WalletClient, PublicClient, Transport, Chain, Account, Client } from 'viem';
|
|
6
6
|
export { s as signUserOperation } from './userOp-CFv4wNkl.cjs';
|
|
7
|
-
export { i as contracts } from './index-
|
|
7
|
+
export { i as contracts } from './index-BGXTbonF.cjs';
|
|
8
8
|
import { c as caveatEnforcerActions } from './index-DYq7aOEN.cjs';
|
|
9
9
|
export { i as actions } from './index-DYq7aOEN.cjs';
|
|
10
10
|
import { SmartAccount, BundlerClientConfig, BundlerClient } from 'viem/account-abstraction';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { I as Implementation, T as ToMetaMaskSmartAccountParameters, a as ToMetaMaskSmartAccountReturnType, C as Caveat, R as Redemption, S as SmartAccountsEnvironment } from './types-Bwksz_U6.js';
|
|
2
2
|
export { A as AccountSignerConfig, l as CreateExecutionArgs, D as Delegation, E as ExecutionMode, k as ExecutionStruct, H as HybridDeleGatorDeployParams, g as HybridSignerConfig, e as MetaMaskSmartAccount, d as MetaMaskSmartAccountImplementation, M as MultiSigDeleGatorDeployParams, h as MultiSigSignerConfig, c as SignDelegationParams, b as SignUserOperationParams, i as TransferWindow, W as WalletSignerConfig, f as WebAuthnSignerConfig, j as createExecution } from './types-Bwksz_U6.js';
|
|
3
|
-
export { B as BalanceChangeType, d as Caveats, C as CreateDelegationOptions, b as CreateOpenDelegationOptions, c as createDelegation, a as createOpenDelegation, s as signDelegation } from './delegation-
|
|
3
|
+
export { B as BalanceChangeType, d as Caveats, C as CreateDelegationOptions, b as CreateOpenDelegationOptions, c as createDelegation, a as createOpenDelegation, s as signDelegation } from './delegation-CCMAKs7W.js';
|
|
4
4
|
export { P as PREFERRED_VERSION, g as getSmartAccountsEnvironment } from './smartAccountsEnvironment-BOhrxEnt.js';
|
|
5
5
|
import { Hex, Address, WalletClient, PublicClient, Transport, Chain, Account, Client } from 'viem';
|
|
6
6
|
export { s as signUserOperation } from './userOp-CFv4wNkl.js';
|
|
7
|
-
export { i as contracts } from './index-
|
|
7
|
+
export { i as contracts } from './index-DeHcI5-n.js';
|
|
8
8
|
import { c as caveatEnforcerActions } from './index-Do0GpCXe.js';
|
|
9
9
|
export { i as actions } from './index-Do0GpCXe.js';
|
|
10
10
|
import { SmartAccount, BundlerClientConfig, BundlerClient } from 'viem/account-abstraction';
|
package/dist/index.mjs
CHANGED
|
@@ -2,12 +2,12 @@ import {
|
|
|
2
2
|
actions_exports,
|
|
3
3
|
caveatEnforcerActions,
|
|
4
4
|
isValid7702Implementation
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-2HNEALPY.mjs";
|
|
6
6
|
import {
|
|
7
7
|
contracts_exports,
|
|
8
8
|
read
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-KTAXE6PZ.mjs";
|
|
10
|
+
import "./chunk-F5U55BIP.mjs";
|
|
11
11
|
import {
|
|
12
12
|
Implementation,
|
|
13
13
|
TransferWindow,
|
|
@@ -15,15 +15,15 @@ import {
|
|
|
15
15
|
encodeCallsForCaller,
|
|
16
16
|
encodeDeleGatorSignature,
|
|
17
17
|
getCounterfactualAccountData
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-Y5MOTV4T.mjs";
|
|
19
19
|
import {
|
|
20
20
|
PREFERRED_VERSION,
|
|
21
21
|
SIGNABLE_USER_OP_TYPED_DATA,
|
|
22
22
|
getSmartAccountsEnvironment,
|
|
23
23
|
redeemDelegations,
|
|
24
24
|
signUserOperation
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import "./chunk-
|
|
25
|
+
} from "./chunk-3JBYBEYP.mjs";
|
|
26
|
+
import "./chunk-72UQFUL5.mjs";
|
|
27
27
|
import {
|
|
28
28
|
ExecutionMode,
|
|
29
29
|
createExecution
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
createOpenDelegation,
|
|
39
39
|
signDelegation,
|
|
40
40
|
toDelegationStruct
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-BJGZGTRU.mjs";
|
|
42
42
|
|
|
43
43
|
// src/toMetaMaskSmartAccount.ts
|
|
44
44
|
import {
|
package/dist/utils/index.cjs
CHANGED
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk5ZBCTLQScjs = require('../chunk-5ZBCTLQS.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
12
|
-
require('../chunk-
|
|
11
|
+
var _chunkBWR5ZK6Zcjs = require('../chunk-BWR5ZK6Z.cjs');
|
|
12
|
+
require('../chunk-QHDMZSGQ.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
@@ -30,7 +30,7 @@ var _chunkT6PSFUOZcjs = require('../chunk-T6PSFUOZ.cjs');
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
var
|
|
33
|
+
var _chunkHJETDDBNcjs = require('../chunk-HJETDDBN.cjs');
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
|
|
@@ -56,5 +56,5 @@ var _chunkMAPUND7Scjs = require('../chunk-MAPUND7S.cjs');
|
|
|
56
56
|
|
|
57
57
|
|
|
58
58
|
|
|
59
|
-
exports.CaveatBuilder =
|
|
59
|
+
exports.CaveatBuilder = _chunkHJETDDBNcjs.CaveatBuilder; exports.DELEGATION_ABI_TYPE_COMPONENTS = _chunkHJETDDBNcjs.DELEGATION_ABI_TYPE_COMPONENTS; exports.DELEGATION_ARRAY_ABI_TYPE = _chunkHJETDDBNcjs.DELEGATION_ARRAY_ABI_TYPE; exports.DELEGATION_TYPEHASH = _chunkHJETDDBNcjs.DELEGATION_TYPEHASH; exports.SIGNABLE_DELEGATION_TYPED_DATA = _chunkHJETDDBNcjs.SIGNABLE_DELEGATION_TYPED_DATA; exports.SIGNABLE_USER_OP_TYPED_DATA = _chunkBWR5ZK6Zcjs.SIGNABLE_USER_OP_TYPED_DATA; exports.SIGNATURE_ABI_PARAMS = _chunk5ZBCTLQScjs.SIGNATURE_ABI_PARAMS; exports.createCaveatBuilder = _chunkHJETDDBNcjs.createCaveatBuilder; exports.decodeDelegations = _chunkHJETDDBNcjs.decodeDelegations; exports.decodePermissionContexts = _chunkHJETDDBNcjs.decodePermissionContexts; exports.deploySmartAccountsEnvironment = _chunkBWR5ZK6Zcjs.deploySmartAccountsEnvironment; exports.encodeBatchExecution = _chunkT6PSFUOZcjs.encodeBatchExecution; exports.encodeCalls = _chunk5ZBCTLQScjs.encodeCalls; exports.encodeCallsForCaller = _chunk5ZBCTLQScjs.encodeCallsForCaller; exports.encodeDelegations = _chunkHJETDDBNcjs.encodeDelegations; exports.encodeExecutionCalldata = _chunkT6PSFUOZcjs.encodeExecutionCalldata; exports.encodeExecutionCalldatas = _chunkT6PSFUOZcjs.encodeExecutionCalldatas; exports.encodePermissionContexts = _chunkHJETDDBNcjs.encodePermissionContexts; exports.encodeSingleExecution = _chunkT6PSFUOZcjs.encodeSingleExecution; exports.getCounterfactualAccountData = _chunk5ZBCTLQScjs.getCounterfactualAccountData; exports.getDelegationHashOffchain = _chunkHJETDDBNcjs.getDelegationHashOffchain; exports.overrideDeployedEnvironment = _chunkBWR5ZK6Zcjs.overrideDeployedEnvironment; exports.toDelegation = _chunkHJETDDBNcjs.toDelegation; exports.toDelegationStruct = _chunkHJETDDBNcjs.toDelegationStruct;
|
|
60
60
|
//# sourceMappingURL=index.cjs.map
|
package/dist/utils/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { p as CaveatBuilder, n as CaveatBuilderConfig, m as CoreCaveatBuilder, j as DELEGATION_ABI_TYPE_COMPONENTS, D as DELEGATION_ARRAY_ABI_TYPE, l as DelegationStruct, S as SIGNABLE_DELEGATION_TYPED_DATA, o as createCaveatBuilder, f as decodeDelegations, i as decodePermissionContexts, e as encodeDelegations, h as encodePermissionContexts, k as getDelegationHashOffchain, g as toDelegation, t as toDelegationStruct } from '../delegation-
|
|
1
|
+
export { p as CaveatBuilder, n as CaveatBuilderConfig, m as CoreCaveatBuilder, j as DELEGATION_ABI_TYPE_COMPONENTS, D as DELEGATION_ARRAY_ABI_TYPE, l as DelegationStruct, S as SIGNABLE_DELEGATION_TYPED_DATA, o as createCaveatBuilder, f as decodeDelegations, i as decodePermissionContexts, e as encodeDelegations, h as encodePermissionContexts, k as getDelegationHashOffchain, g as toDelegation, t as toDelegationStruct } from '../delegation-C7M1fy5Q.cjs';
|
|
2
2
|
import { m as Call, I as Implementation, S as SmartAccountsEnvironment, n as DeployParams } from '../types-Bwksz_U6.cjs';
|
|
3
3
|
export { k as ExecutionStruct, r as encodeBatchExecution, o as encodeExecutionCalldata, p as encodeExecutionCalldatas, q as encodeSingleExecution } from '../types-Bwksz_U6.cjs';
|
|
4
4
|
export { S as SIGNABLE_USER_OP_TYPED_DATA } from '../userOp-CFv4wNkl.cjs';
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { p as CaveatBuilder, n as CaveatBuilderConfig, m as CoreCaveatBuilder, j as DELEGATION_ABI_TYPE_COMPONENTS, D as DELEGATION_ARRAY_ABI_TYPE, l as DelegationStruct, S as SIGNABLE_DELEGATION_TYPED_DATA, o as createCaveatBuilder, f as decodeDelegations, i as decodePermissionContexts, e as encodeDelegations, h as encodePermissionContexts, k as getDelegationHashOffchain, g as toDelegation, t as toDelegationStruct } from '../delegation-
|
|
1
|
+
export { p as CaveatBuilder, n as CaveatBuilderConfig, m as CoreCaveatBuilder, j as DELEGATION_ABI_TYPE_COMPONENTS, D as DELEGATION_ARRAY_ABI_TYPE, l as DelegationStruct, S as SIGNABLE_DELEGATION_TYPED_DATA, o as createCaveatBuilder, f as decodeDelegations, i as decodePermissionContexts, e as encodeDelegations, h as encodePermissionContexts, k as getDelegationHashOffchain, g as toDelegation, t as toDelegationStruct } from '../delegation-CCMAKs7W.js';
|
|
2
2
|
import { m as Call, I as Implementation, S as SmartAccountsEnvironment, n as DeployParams } from '../types-Bwksz_U6.js';
|
|
3
3
|
export { k as ExecutionStruct, r as encodeBatchExecution, o as encodeExecutionCalldata, p as encodeExecutionCalldatas, q as encodeSingleExecution } from '../types-Bwksz_U6.js';
|
|
4
4
|
export { S as SIGNABLE_USER_OP_TYPED_DATA } from '../userOp-CFv4wNkl.js';
|
package/dist/utils/index.mjs
CHANGED
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
encodeCalls,
|
|
4
4
|
encodeCallsForCaller,
|
|
5
5
|
getCounterfactualAccountData
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-Y5MOTV4T.mjs";
|
|
7
7
|
import {
|
|
8
8
|
SIGNABLE_USER_OP_TYPED_DATA,
|
|
9
9
|
deploySmartAccountsEnvironment,
|
|
10
10
|
overrideDeployedEnvironment
|
|
11
|
-
} from "../chunk-
|
|
12
|
-
import "../chunk-
|
|
11
|
+
} from "../chunk-3JBYBEYP.mjs";
|
|
12
|
+
import "../chunk-72UQFUL5.mjs";
|
|
13
13
|
import {
|
|
14
14
|
encodeBatchExecution,
|
|
15
15
|
encodeExecutionCalldata,
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
getDelegationHashOffchain,
|
|
31
31
|
toDelegation,
|
|
32
32
|
toDelegationStruct
|
|
33
|
-
} from "../chunk-
|
|
33
|
+
} from "../chunk-BJGZGTRU.mjs";
|
|
34
34
|
export {
|
|
35
35
|
CaveatBuilder,
|
|
36
36
|
DELEGATION_ABI_TYPE_COMPONENTS,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metamask/smart-accounts-kit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Toolkit for managing and interacting with MetaMask Smart Accounts, built on Viem",
|
|
6
6
|
"license": "(MIT-0 OR Apache-2.0)",
|
|
@@ -76,6 +76,22 @@
|
|
|
76
76
|
},
|
|
77
77
|
"./package.json": "./package.json"
|
|
78
78
|
},
|
|
79
|
+
"typesVersions": {
|
|
80
|
+
"*": {
|
|
81
|
+
"utils": [
|
|
82
|
+
"./dist/utils/index.d.ts"
|
|
83
|
+
],
|
|
84
|
+
"actions": [
|
|
85
|
+
"./dist/actions/index.d.ts"
|
|
86
|
+
],
|
|
87
|
+
"contracts": [
|
|
88
|
+
"./dist/contracts/index.d.ts"
|
|
89
|
+
],
|
|
90
|
+
"experimental": [
|
|
91
|
+
"./dist/experimental/index.d.ts"
|
|
92
|
+
]
|
|
93
|
+
}
|
|
94
|
+
},
|
|
79
95
|
"engines": {
|
|
80
96
|
"node": "^18.18 || >=20"
|
|
81
97
|
},
|