@metamask/smart-accounts-kit 1.2.0 → 1.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 +4 -4
- package/dist/actions/index.d.cts +2 -2
- package/dist/actions/index.d.ts +2 -2
- package/dist/actions/index.mjs +3 -3
- package/dist/{chunk-L5DLMBDC.mjs → chunk-26PADMXR.mjs} +4 -4
- package/dist/{chunk-UB2FLPP3.cjs → chunk-3PBVHNYP.cjs} +10 -10
- package/dist/{chunk-UB2FLPP3.cjs.map → chunk-3PBVHNYP.cjs.map} +1 -1
- package/dist/{chunk-HFRQNSZE.cjs → chunk-57I2FJY7.cjs} +102 -102
- package/dist/{chunk-HFRQNSZE.cjs.map → chunk-57I2FJY7.cjs.map} +1 -1
- package/dist/{chunk-VJXM3LWA.mjs → chunk-AC2BQSYP.mjs} +2 -2
- package/dist/{chunk-T4IAMAB2.cjs → chunk-AJWMPR7X.cjs} +101 -61
- package/dist/chunk-AJWMPR7X.cjs.map +1 -0
- package/dist/{chunk-UZO5OYCD.cjs → chunk-DLCTHNAE.cjs} +11 -11
- package/dist/{chunk-UZO5OYCD.cjs.map → chunk-DLCTHNAE.cjs.map} +1 -1
- package/dist/{chunk-734MOPHR.mjs → chunk-FKI4OME5.mjs} +49 -9
- package/dist/chunk-FKI4OME5.mjs.map +1 -0
- package/dist/{chunk-3SHZ7PV2.cjs → chunk-GZ7HHI2D.cjs} +12 -12
- package/dist/{chunk-3SHZ7PV2.cjs.map → chunk-GZ7HHI2D.cjs.map} +1 -1
- package/dist/{chunk-YTNCEXUX.mjs → chunk-KBSFVKUB.mjs} +2 -2
- package/dist/{chunk-G7VZ7E6W.mjs → chunk-LQXOM3TA.mjs} +3 -3
- package/dist/{chunk-7BEEGBA2.cjs → chunk-SZOX7K2V.cjs} +2 -2
- package/dist/{chunk-7BEEGBA2.cjs.map → chunk-SZOX7K2V.cjs.map} +1 -1
- package/dist/{chunk-ZA2XYCVX.mjs → chunk-Z4D7ZWVB.mjs} +2 -2
- package/dist/{chunk-ZA2XYCVX.mjs.map → chunk-Z4D7ZWVB.mjs.map} +1 -1
- package/dist/contracts/index.cjs +5 -5
- package/dist/contracts/index.mjs +4 -4
- package/dist/experimental/index.cjs +7 -7
- package/dist/experimental/index.mjs +1 -1
- package/dist/{index-Uj_xXVko.d.cts → index-BDC55AA9.d.cts} +5 -3
- package/dist/{index-D7fBuNV-.d.ts → index-DhG2lH80.d.ts} +5 -3
- package/dist/index.cjs +19 -19
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +6 -6
- package/dist/utils/index.cjs +4 -4
- package/dist/utils/index.mjs +3 -3
- package/package.json +1 -1
- package/dist/chunk-734MOPHR.mjs.map +0 -1
- package/dist/chunk-T4IAMAB2.cjs.map +0 -1
- /package/dist/{chunk-L5DLMBDC.mjs.map → chunk-26PADMXR.mjs.map} +0 -0
- /package/dist/{chunk-VJXM3LWA.mjs.map → chunk-AC2BQSYP.mjs.map} +0 -0
- /package/dist/{chunk-YTNCEXUX.mjs.map → chunk-KBSFVKUB.mjs.map} +0 -0
- /package/dist/{chunk-G7VZ7E6W.mjs.map → chunk-LQXOM3TA.mjs.map} +0 -0
package/dist/contracts/index.cjs
CHANGED
|
@@ -14,21 +14,21 @@
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunk57I2FJY7cjs = require('../chunk-57I2FJY7.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkGZ7HHI2Dcjs = require('../chunk-GZ7HHI2D.cjs');
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
var
|
|
29
|
+
var _chunkDLCTHNAEcjs = require('../chunk-DLCTHNAE.cjs');
|
|
30
30
|
require('../chunk-MOHCTPYQ.cjs');
|
|
31
|
-
require('../chunk-
|
|
31
|
+
require('../chunk-SZOX7K2V.cjs');
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
|
|
@@ -53,5 +53,5 @@ require('../chunk-7BEEGBA2.cjs');
|
|
|
53
53
|
|
|
54
54
|
|
|
55
55
|
|
|
56
|
-
exports.DeleGatorCore =
|
|
56
|
+
exports.DeleGatorCore = _chunk57I2FJY7cjs.DeleGatorCore_exports; exports.DelegationManager = _chunk57I2FJY7cjs.DelegationManager_exports; exports.EIP712 = _chunk57I2FJY7cjs.EIP712_exports; exports.ERC20PeriodTransferEnforcer = _chunkGZ7HHI2Dcjs.ERC20PeriodTransferEnforcer_exports; exports.ERC20StreamingEnforcer = _chunkGZ7HHI2Dcjs.ERC20StreamingEnforcer_exports; exports.ERC20TransferAmountEnforcer = _chunk57I2FJY7cjs.ERC20TransferAmountEnforcer_exports; exports.EntryPoint = _chunk57I2FJY7cjs.EntryPoint_exports; exports.HybridDeleGator = _chunk57I2FJY7cjs.HybridDeleGator_exports; exports.IdEnforcer = _chunk57I2FJY7cjs.IdEnforcer_exports; exports.LimitedCallsEnforcer = _chunk57I2FJY7cjs.LimitedCallsEnforcer_exports; exports.MultiSigDeleGator = _chunk57I2FJY7cjs.MultiSigDeleGator_exports; exports.MultiTokenPeriodEnforcer = _chunkGZ7HHI2Dcjs.MultiTokenPeriodEnforcer_exports; exports.NativeTokenPeriodTransferEnforcer = _chunkGZ7HHI2Dcjs.NativeTokenPeriodTransferEnforcer_exports; exports.NativeTokenStreamingEnforcer = _chunkGZ7HHI2Dcjs.NativeTokenStreamingEnforcer_exports; exports.NativeTokenTransferAmountEnforcer = _chunk57I2FJY7cjs.NativeTokenTransferAmountEnforcer_exports; exports.NonceEnforcer = _chunk57I2FJY7cjs.NonceEnforcer_exports; exports.Ownable2Step = _chunk57I2FJY7cjs.Ownable2Step_exports; exports.Pausable = _chunk57I2FJY7cjs.Pausable_exports; exports.SimpleFactory = _chunk57I2FJY7cjs.SimpleFactory_exports; exports.SpecificActionERC20TransferBatchEnforcer = _chunk57I2FJY7cjs.SpecificActionERC20TransferBatchEnforcer_exports; exports.encodeProxyCreationCode = _chunkDLCTHNAEcjs.encodeProxyCreationCode; exports.isContractDeployed = _chunkDLCTHNAEcjs.isContractDeployed; exports.isImplementationExpected = _chunkDLCTHNAEcjs.isImplementationExpected;
|
|
57
57
|
//# sourceMappingURL=index.cjs.map
|
package/dist/contracts/index.mjs
CHANGED
|
@@ -14,21 +14,21 @@ import {
|
|
|
14
14
|
Pausable_exports,
|
|
15
15
|
SimpleFactory_exports,
|
|
16
16
|
SpecificActionERC20TransferBatchEnforcer_exports
|
|
17
|
-
} from "../chunk-
|
|
17
|
+
} from "../chunk-26PADMXR.mjs";
|
|
18
18
|
import {
|
|
19
19
|
ERC20PeriodTransferEnforcer_exports,
|
|
20
20
|
ERC20StreamingEnforcer_exports,
|
|
21
21
|
MultiTokenPeriodEnforcer_exports,
|
|
22
22
|
NativeTokenPeriodTransferEnforcer_exports,
|
|
23
23
|
NativeTokenStreamingEnforcer_exports
|
|
24
|
-
} from "../chunk-
|
|
24
|
+
} from "../chunk-AC2BQSYP.mjs";
|
|
25
25
|
import {
|
|
26
26
|
encodeProxyCreationCode,
|
|
27
27
|
isContractDeployed,
|
|
28
28
|
isImplementationExpected
|
|
29
|
-
} from "../chunk-
|
|
29
|
+
} from "../chunk-KBSFVKUB.mjs";
|
|
30
30
|
import "../chunk-4QXIOE7F.mjs";
|
|
31
|
-
import "../chunk-
|
|
31
|
+
import "../chunk-Z4D7ZWVB.mjs";
|
|
32
32
|
export {
|
|
33
33
|
DeleGatorCore_exports as DeleGatorCore,
|
|
34
34
|
DelegationManager_exports as DelegationManager,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkSZOX7K2Vcjs = require('../chunk-SZOX7K2V.cjs');
|
|
5
5
|
|
|
6
6
|
// src/experimental/delegationStorage.ts
|
|
7
7
|
var _viem = require('viem');
|
|
@@ -22,7 +22,7 @@ var DelegationStorageClient = class {
|
|
|
22
22
|
#apiUrl;
|
|
23
23
|
constructor(config) {
|
|
24
24
|
const { apiUrl } = config.environment;
|
|
25
|
-
|
|
25
|
+
_chunkSZOX7K2Vcjs.trackSmartAccountsKitFunctionCall.call(void 0,
|
|
26
26
|
"experimental.DelegationStorageClient.constructor",
|
|
27
27
|
{
|
|
28
28
|
environment: getDelegationStorageEnvironment(apiUrl)
|
|
@@ -68,13 +68,13 @@ var DelegationStorageClient = class {
|
|
|
68
68
|
* is not found.
|
|
69
69
|
*/
|
|
70
70
|
async getDelegationChain(leafDelegationOrDelegationHash) {
|
|
71
|
-
|
|
71
|
+
_chunkSZOX7K2Vcjs.trackSmartAccountsKitFunctionCall.call(void 0,
|
|
72
72
|
"experimental.DelegationStorageClient.getDelegationChain",
|
|
73
73
|
{
|
|
74
74
|
inputKind: typeof leafDelegationOrDelegationHash === "string" ? "hash" : "delegation"
|
|
75
75
|
}
|
|
76
76
|
);
|
|
77
|
-
const leafDelegationHash = typeof leafDelegationOrDelegationHash === "string" ? leafDelegationOrDelegationHash :
|
|
77
|
+
const leafDelegationHash = typeof leafDelegationOrDelegationHash === "string" ? leafDelegationOrDelegationHash : _chunkSZOX7K2Vcjs.hashDelegation.call(void 0, leafDelegationOrDelegationHash);
|
|
78
78
|
const response = await this.#fetcher(
|
|
79
79
|
`${this.#apiUrl}/delegation/chain/${leafDelegationHash}`,
|
|
80
80
|
{
|
|
@@ -104,7 +104,7 @@ var DelegationStorageClient = class {
|
|
|
104
104
|
* empty array if the delegations are not found.
|
|
105
105
|
*/
|
|
106
106
|
async fetchDelegations(deleGatorAddress, filterMode = "RECEIVED" /* Received */) {
|
|
107
|
-
|
|
107
|
+
_chunkSZOX7K2Vcjs.trackSmartAccountsKitFunctionCall.call(void 0,
|
|
108
108
|
"experimental.DelegationStorageClient.fetchDelegations",
|
|
109
109
|
{ filterMode }
|
|
110
110
|
);
|
|
@@ -131,14 +131,14 @@ var DelegationStorageClient = class {
|
|
|
131
131
|
* @returns A promise that resolves to the delegation hash indicating successful storage.
|
|
132
132
|
*/
|
|
133
133
|
async storeDelegation(delegation) {
|
|
134
|
-
|
|
134
|
+
_chunkSZOX7K2Vcjs.trackSmartAccountsKitFunctionCall.call(void 0,
|
|
135
135
|
"experimental.DelegationStorageClient.storeDelegation",
|
|
136
136
|
{ caveatCount: delegation.caveats.length }
|
|
137
137
|
);
|
|
138
138
|
if (!delegation.signature || delegation.signature === "0x") {
|
|
139
139
|
throw new Error("Delegation must be signed to be stored");
|
|
140
140
|
}
|
|
141
|
-
const delegationHash =
|
|
141
|
+
const delegationHash = _chunkSZOX7K2Vcjs.hashDelegation.call(void 0, delegation);
|
|
142
142
|
const body = JSON.stringify(
|
|
143
143
|
{
|
|
144
144
|
...delegation,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PermissionRequest as PermissionRequest$1, PermissionTypes as PermissionTypes$1, PermissionResponse as PermissionResponse$1 } from '@metamask/7715-permission-types';
|
|
1
|
+
import { Rule, PermissionRequest as PermissionRequest$1, PermissionTypes as PermissionTypes$1, PermissionResponse as PermissionResponse$1 } from '@metamask/7715-permission-types';
|
|
2
2
|
import { Address, Hex, Client, Transport, Chain, Account, RpcSchema, OneOf, PublicClient, SendTransactionRequest, SendTransactionParameters, WalletClient } from 'viem';
|
|
3
3
|
import { SmartAccount, SendUserOperationParameters } from 'viem/account-abstraction';
|
|
4
4
|
import { l as Call, P as PermissionContext, S as SmartAccountsEnvironment, D as Delegation } from './types-BWaH4KH1.cjs';
|
|
@@ -62,6 +62,7 @@ type PermissionRequestParameter = {
|
|
|
62
62
|
to: Hex;
|
|
63
63
|
from?: Address | undefined | null;
|
|
64
64
|
expiry?: number | undefined | null;
|
|
65
|
+
redeemer?: readonly Address[] | undefined | null;
|
|
65
66
|
};
|
|
66
67
|
type SupportedPermissionInfo = {
|
|
67
68
|
chainIds: number[];
|
|
@@ -74,7 +75,7 @@ type PermissionRequest<TPermission extends PermissionTypes> = {
|
|
|
74
75
|
from?: Hex;
|
|
75
76
|
to: Hex;
|
|
76
77
|
permission: TPermission;
|
|
77
|
-
rules?:
|
|
78
|
+
rules?: Rule[] | null;
|
|
78
79
|
};
|
|
79
80
|
type PermissionResponse<TPermission extends PermissionTypes> = PermissionRequest<TPermission> & {
|
|
80
81
|
context: Hex;
|
|
@@ -244,6 +245,7 @@ type index_RequestExecutionPermissionsReturnType = RequestExecutionPermissionsRe
|
|
|
244
245
|
type index_RpcGetGrantedExecutionPermissionsResult = RpcGetGrantedExecutionPermissionsResult;
|
|
245
246
|
type index_RpcGetSupportedExecutionPermissionsResult = RpcGetSupportedExecutionPermissionsResult;
|
|
246
247
|
type index_RpcSupportedPermissionInfo = RpcSupportedPermissionInfo;
|
|
248
|
+
declare const index_Rule: typeof Rule;
|
|
247
249
|
type index_SignDelegationParameters = SignDelegationParameters;
|
|
248
250
|
type index_SignDelegationReturnType = SignDelegationReturnType;
|
|
249
251
|
type index_SignUserOperationParameters = SignUserOperationParameters;
|
|
@@ -265,7 +267,7 @@ declare const index_signDelegationActions: typeof signDelegationActions;
|
|
|
265
267
|
declare const index_signUserOperation: typeof signUserOperation;
|
|
266
268
|
declare const index_signUserOperationActions: typeof signUserOperationActions;
|
|
267
269
|
declare namespace index {
|
|
268
|
-
export { type index_CaveatEnforcerParams as CaveatEnforcerParams, type index_DelegatedCall as DelegatedCall, type index_Erc20TokenPeriodicPermission as Erc20TokenPeriodicPermission, type index_Erc20TokenRevocationPermission as Erc20TokenRevocationPermission, type index_Erc20TokenStreamPermission as Erc20TokenStreamPermission, type index_Erc7715Client as Erc7715Client, type index_GetGrantedExecutionPermissionsResult as GetGrantedExecutionPermissionsResult, type index_GetSupportedExecutionPermissionsResult as GetSupportedExecutionPermissionsResult, type index_MetaMaskExtensionClient as MetaMaskExtensionClient, type index_MetaMaskExtensionSchema as MetaMaskExtensionSchema, type index_NativeTokenPeriodicPermission as NativeTokenPeriodicPermission, type index_NativeTokenStreamPermission as NativeTokenStreamPermission, type index_PeriodTransferResult as PeriodTransferResult, type index_PermissionRequestParameter as PermissionRequestParameter, type index_PermissionTypes as PermissionTypes, type index_RequestExecutionPermissionsParameters as RequestExecutionPermissionsParameters, type index_RequestExecutionPermissionsReturnType as RequestExecutionPermissionsReturnType, type index_RpcGetGrantedExecutionPermissionsResult as RpcGetGrantedExecutionPermissionsResult, type index_RpcGetSupportedExecutionPermissionsResult as RpcGetSupportedExecutionPermissionsResult, type index_RpcSupportedPermissionInfo as RpcSupportedPermissionInfo, type index_SignDelegationParameters as SignDelegationParameters, type index_SignDelegationReturnType as SignDelegationReturnType, type index_SignUserOperationParameters as SignUserOperationParameters, type index_SignUserOperationReturnType as SignUserOperationReturnType, type index_StreamingResult as StreamingResult, type index_SupportedPermissionInfo as SupportedPermissionInfo, index_caveatEnforcerActions as caveatEnforcerActions, index_erc7710BundlerActions as erc7710BundlerActions, index_erc7710WalletActions as erc7710WalletActions, index_erc7715ProviderActions as erc7715ProviderActions, index_getErc20PeriodTransferEnforcerAvailableAmount as getErc20PeriodTransferEnforcerAvailableAmount, index_getErc20StreamingEnforcerAvailableAmount as getErc20StreamingEnforcerAvailableAmount, erc7715GetGrantedExecutionPermissionsAction as getGrantedExecutionPermissions, index_getMultiTokenPeriodEnforcerAvailableAmount as getMultiTokenPeriodEnforcerAvailableAmount, index_getNativeTokenPeriodTransferEnforcerAvailableAmount as getNativeTokenPeriodTransferEnforcerAvailableAmount, index_getNativeTokenStreamingEnforcerAvailableAmount as getNativeTokenStreamingEnforcerAvailableAmount, erc7715GetSupportedExecutionPermissionsAction as getSupportedExecutionPermissions, index_isValid7702Implementation as isValid7702Implementation, erc7715RequestExecutionPermissionsAction as requestExecutionPermissions, index_signDelegation as signDelegation, index_signDelegationActions as signDelegationActions, index_signUserOperation as signUserOperation, index_signUserOperationActions as signUserOperationActions };
|
|
270
|
+
export { type index_CaveatEnforcerParams as CaveatEnforcerParams, type index_DelegatedCall as DelegatedCall, type index_Erc20TokenPeriodicPermission as Erc20TokenPeriodicPermission, type index_Erc20TokenRevocationPermission as Erc20TokenRevocationPermission, type index_Erc20TokenStreamPermission as Erc20TokenStreamPermission, type index_Erc7715Client as Erc7715Client, type index_GetGrantedExecutionPermissionsResult as GetGrantedExecutionPermissionsResult, type index_GetSupportedExecutionPermissionsResult as GetSupportedExecutionPermissionsResult, type index_MetaMaskExtensionClient as MetaMaskExtensionClient, type index_MetaMaskExtensionSchema as MetaMaskExtensionSchema, type index_NativeTokenPeriodicPermission as NativeTokenPeriodicPermission, type index_NativeTokenStreamPermission as NativeTokenStreamPermission, type index_PeriodTransferResult as PeriodTransferResult, type index_PermissionRequestParameter as PermissionRequestParameter, type index_PermissionTypes as PermissionTypes, type index_RequestExecutionPermissionsParameters as RequestExecutionPermissionsParameters, type index_RequestExecutionPermissionsReturnType as RequestExecutionPermissionsReturnType, type index_RpcGetGrantedExecutionPermissionsResult as RpcGetGrantedExecutionPermissionsResult, type index_RpcGetSupportedExecutionPermissionsResult as RpcGetSupportedExecutionPermissionsResult, type index_RpcSupportedPermissionInfo as RpcSupportedPermissionInfo, index_Rule as Rule, type index_SignDelegationParameters as SignDelegationParameters, type index_SignDelegationReturnType as SignDelegationReturnType, type index_SignUserOperationParameters as SignUserOperationParameters, type index_SignUserOperationReturnType as SignUserOperationReturnType, type index_StreamingResult as StreamingResult, type index_SupportedPermissionInfo as SupportedPermissionInfo, index_caveatEnforcerActions as caveatEnforcerActions, index_erc7710BundlerActions as erc7710BundlerActions, index_erc7710WalletActions as erc7710WalletActions, index_erc7715ProviderActions as erc7715ProviderActions, index_getErc20PeriodTransferEnforcerAvailableAmount as getErc20PeriodTransferEnforcerAvailableAmount, index_getErc20StreamingEnforcerAvailableAmount as getErc20StreamingEnforcerAvailableAmount, erc7715GetGrantedExecutionPermissionsAction as getGrantedExecutionPermissions, index_getMultiTokenPeriodEnforcerAvailableAmount as getMultiTokenPeriodEnforcerAvailableAmount, index_getNativeTokenPeriodTransferEnforcerAvailableAmount as getNativeTokenPeriodTransferEnforcerAvailableAmount, index_getNativeTokenStreamingEnforcerAvailableAmount as getNativeTokenStreamingEnforcerAvailableAmount, erc7715GetSupportedExecutionPermissionsAction as getSupportedExecutionPermissions, index_isValid7702Implementation as isValid7702Implementation, erc7715RequestExecutionPermissionsAction as requestExecutionPermissions, index_signDelegation as signDelegation, index_signDelegationActions as signDelegationActions, index_signUserOperation as signUserOperation, index_signUserOperationActions as signUserOperationActions };
|
|
269
271
|
}
|
|
270
272
|
|
|
271
273
|
export { getNativeTokenPeriodTransferEnforcerAvailableAmount as A, getNativeTokenStreamingEnforcerAvailableAmount as B, type CaveatEnforcerParams as C, type DelegatedCall as D, type Erc20TokenPeriodicPermission as E, erc7715GetSupportedExecutionPermissionsAction as F, type GetGrantedExecutionPermissionsResult as G, isValid7702Implementation as H, erc7715RequestExecutionPermissionsAction as I, signDelegation as J, signDelegationActions as K, signUserOperation as L, type MetaMaskExtensionClient as M, type NativeTokenPeriodicPermission as N, signUserOperationActions as O, type PeriodTransferResult as P, type RequestExecutionPermissionsParameters as R, type SignDelegationParameters as S, type Erc20TokenRevocationPermission as a, type Erc20TokenStreamPermission as b, caveatEnforcerActions as c, type Erc7715Client as d, type GetSupportedExecutionPermissionsResult as e, type MetaMaskExtensionSchema as f, type NativeTokenStreamPermission as g, type PermissionRequestParameter as h, index as i, type PermissionTypes as j, type RequestExecutionPermissionsReturnType as k, type RpcGetGrantedExecutionPermissionsResult as l, type RpcGetSupportedExecutionPermissionsResult as m, type RpcSupportedPermissionInfo as n, type SignDelegationReturnType as o, type SignUserOperationParameters as p, type SignUserOperationReturnType as q, type StreamingResult as r, type SupportedPermissionInfo as s, erc7710BundlerActions as t, erc7710WalletActions as u, erc7715ProviderActions as v, getErc20PeriodTransferEnforcerAvailableAmount as w, getErc20StreamingEnforcerAvailableAmount as x, erc7715GetGrantedExecutionPermissionsAction as y, getMultiTokenPeriodEnforcerAvailableAmount as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PermissionRequest as PermissionRequest$1, PermissionTypes as PermissionTypes$1, PermissionResponse as PermissionResponse$1 } from '@metamask/7715-permission-types';
|
|
1
|
+
import { Rule, PermissionRequest as PermissionRequest$1, PermissionTypes as PermissionTypes$1, PermissionResponse as PermissionResponse$1 } from '@metamask/7715-permission-types';
|
|
2
2
|
import { Address, Hex, Client, Transport, Chain, Account, RpcSchema, OneOf, PublicClient, SendTransactionRequest, SendTransactionParameters, WalletClient } from 'viem';
|
|
3
3
|
import { SmartAccount, SendUserOperationParameters } from 'viem/account-abstraction';
|
|
4
4
|
import { l as Call, P as PermissionContext, S as SmartAccountsEnvironment, D as Delegation } from './types-BWaH4KH1.js';
|
|
@@ -62,6 +62,7 @@ type PermissionRequestParameter = {
|
|
|
62
62
|
to: Hex;
|
|
63
63
|
from?: Address | undefined | null;
|
|
64
64
|
expiry?: number | undefined | null;
|
|
65
|
+
redeemer?: readonly Address[] | undefined | null;
|
|
65
66
|
};
|
|
66
67
|
type SupportedPermissionInfo = {
|
|
67
68
|
chainIds: number[];
|
|
@@ -74,7 +75,7 @@ type PermissionRequest<TPermission extends PermissionTypes> = {
|
|
|
74
75
|
from?: Hex;
|
|
75
76
|
to: Hex;
|
|
76
77
|
permission: TPermission;
|
|
77
|
-
rules?:
|
|
78
|
+
rules?: Rule[] | null;
|
|
78
79
|
};
|
|
79
80
|
type PermissionResponse<TPermission extends PermissionTypes> = PermissionRequest<TPermission> & {
|
|
80
81
|
context: Hex;
|
|
@@ -244,6 +245,7 @@ type index_RequestExecutionPermissionsReturnType = RequestExecutionPermissionsRe
|
|
|
244
245
|
type index_RpcGetGrantedExecutionPermissionsResult = RpcGetGrantedExecutionPermissionsResult;
|
|
245
246
|
type index_RpcGetSupportedExecutionPermissionsResult = RpcGetSupportedExecutionPermissionsResult;
|
|
246
247
|
type index_RpcSupportedPermissionInfo = RpcSupportedPermissionInfo;
|
|
248
|
+
declare const index_Rule: typeof Rule;
|
|
247
249
|
type index_SignDelegationParameters = SignDelegationParameters;
|
|
248
250
|
type index_SignDelegationReturnType = SignDelegationReturnType;
|
|
249
251
|
type index_SignUserOperationParameters = SignUserOperationParameters;
|
|
@@ -265,7 +267,7 @@ declare const index_signDelegationActions: typeof signDelegationActions;
|
|
|
265
267
|
declare const index_signUserOperation: typeof signUserOperation;
|
|
266
268
|
declare const index_signUserOperationActions: typeof signUserOperationActions;
|
|
267
269
|
declare namespace index {
|
|
268
|
-
export { type index_CaveatEnforcerParams as CaveatEnforcerParams, type index_DelegatedCall as DelegatedCall, type index_Erc20TokenPeriodicPermission as Erc20TokenPeriodicPermission, type index_Erc20TokenRevocationPermission as Erc20TokenRevocationPermission, type index_Erc20TokenStreamPermission as Erc20TokenStreamPermission, type index_Erc7715Client as Erc7715Client, type index_GetGrantedExecutionPermissionsResult as GetGrantedExecutionPermissionsResult, type index_GetSupportedExecutionPermissionsResult as GetSupportedExecutionPermissionsResult, type index_MetaMaskExtensionClient as MetaMaskExtensionClient, type index_MetaMaskExtensionSchema as MetaMaskExtensionSchema, type index_NativeTokenPeriodicPermission as NativeTokenPeriodicPermission, type index_NativeTokenStreamPermission as NativeTokenStreamPermission, type index_PeriodTransferResult as PeriodTransferResult, type index_PermissionRequestParameter as PermissionRequestParameter, type index_PermissionTypes as PermissionTypes, type index_RequestExecutionPermissionsParameters as RequestExecutionPermissionsParameters, type index_RequestExecutionPermissionsReturnType as RequestExecutionPermissionsReturnType, type index_RpcGetGrantedExecutionPermissionsResult as RpcGetGrantedExecutionPermissionsResult, type index_RpcGetSupportedExecutionPermissionsResult as RpcGetSupportedExecutionPermissionsResult, type index_RpcSupportedPermissionInfo as RpcSupportedPermissionInfo, type index_SignDelegationParameters as SignDelegationParameters, type index_SignDelegationReturnType as SignDelegationReturnType, type index_SignUserOperationParameters as SignUserOperationParameters, type index_SignUserOperationReturnType as SignUserOperationReturnType, type index_StreamingResult as StreamingResult, type index_SupportedPermissionInfo as SupportedPermissionInfo, index_caveatEnforcerActions as caveatEnforcerActions, index_erc7710BundlerActions as erc7710BundlerActions, index_erc7710WalletActions as erc7710WalletActions, index_erc7715ProviderActions as erc7715ProviderActions, index_getErc20PeriodTransferEnforcerAvailableAmount as getErc20PeriodTransferEnforcerAvailableAmount, index_getErc20StreamingEnforcerAvailableAmount as getErc20StreamingEnforcerAvailableAmount, erc7715GetGrantedExecutionPermissionsAction as getGrantedExecutionPermissions, index_getMultiTokenPeriodEnforcerAvailableAmount as getMultiTokenPeriodEnforcerAvailableAmount, index_getNativeTokenPeriodTransferEnforcerAvailableAmount as getNativeTokenPeriodTransferEnforcerAvailableAmount, index_getNativeTokenStreamingEnforcerAvailableAmount as getNativeTokenStreamingEnforcerAvailableAmount, erc7715GetSupportedExecutionPermissionsAction as getSupportedExecutionPermissions, index_isValid7702Implementation as isValid7702Implementation, erc7715RequestExecutionPermissionsAction as requestExecutionPermissions, index_signDelegation as signDelegation, index_signDelegationActions as signDelegationActions, index_signUserOperation as signUserOperation, index_signUserOperationActions as signUserOperationActions };
|
|
270
|
+
export { type index_CaveatEnforcerParams as CaveatEnforcerParams, type index_DelegatedCall as DelegatedCall, type index_Erc20TokenPeriodicPermission as Erc20TokenPeriodicPermission, type index_Erc20TokenRevocationPermission as Erc20TokenRevocationPermission, type index_Erc20TokenStreamPermission as Erc20TokenStreamPermission, type index_Erc7715Client as Erc7715Client, type index_GetGrantedExecutionPermissionsResult as GetGrantedExecutionPermissionsResult, type index_GetSupportedExecutionPermissionsResult as GetSupportedExecutionPermissionsResult, type index_MetaMaskExtensionClient as MetaMaskExtensionClient, type index_MetaMaskExtensionSchema as MetaMaskExtensionSchema, type index_NativeTokenPeriodicPermission as NativeTokenPeriodicPermission, type index_NativeTokenStreamPermission as NativeTokenStreamPermission, type index_PeriodTransferResult as PeriodTransferResult, type index_PermissionRequestParameter as PermissionRequestParameter, type index_PermissionTypes as PermissionTypes, type index_RequestExecutionPermissionsParameters as RequestExecutionPermissionsParameters, type index_RequestExecutionPermissionsReturnType as RequestExecutionPermissionsReturnType, type index_RpcGetGrantedExecutionPermissionsResult as RpcGetGrantedExecutionPermissionsResult, type index_RpcGetSupportedExecutionPermissionsResult as RpcGetSupportedExecutionPermissionsResult, type index_RpcSupportedPermissionInfo as RpcSupportedPermissionInfo, index_Rule as Rule, type index_SignDelegationParameters as SignDelegationParameters, type index_SignDelegationReturnType as SignDelegationReturnType, type index_SignUserOperationParameters as SignUserOperationParameters, type index_SignUserOperationReturnType as SignUserOperationReturnType, type index_StreamingResult as StreamingResult, type index_SupportedPermissionInfo as SupportedPermissionInfo, index_caveatEnforcerActions as caveatEnforcerActions, index_erc7710BundlerActions as erc7710BundlerActions, index_erc7710WalletActions as erc7710WalletActions, index_erc7715ProviderActions as erc7715ProviderActions, index_getErc20PeriodTransferEnforcerAvailableAmount as getErc20PeriodTransferEnforcerAvailableAmount, index_getErc20StreamingEnforcerAvailableAmount as getErc20StreamingEnforcerAvailableAmount, erc7715GetGrantedExecutionPermissionsAction as getGrantedExecutionPermissions, index_getMultiTokenPeriodEnforcerAvailableAmount as getMultiTokenPeriodEnforcerAvailableAmount, index_getNativeTokenPeriodTransferEnforcerAvailableAmount as getNativeTokenPeriodTransferEnforcerAvailableAmount, index_getNativeTokenStreamingEnforcerAvailableAmount as getNativeTokenStreamingEnforcerAvailableAmount, erc7715GetSupportedExecutionPermissionsAction as getSupportedExecutionPermissions, index_isValid7702Implementation as isValid7702Implementation, erc7715RequestExecutionPermissionsAction as requestExecutionPermissions, index_signDelegation as signDelegation, index_signDelegationActions as signDelegationActions, index_signUserOperation as signUserOperation, index_signUserOperationActions as signUserOperationActions };
|
|
269
271
|
}
|
|
270
272
|
|
|
271
273
|
export { getNativeTokenPeriodTransferEnforcerAvailableAmount as A, getNativeTokenStreamingEnforcerAvailableAmount as B, type CaveatEnforcerParams as C, type DelegatedCall as D, type Erc20TokenPeriodicPermission as E, erc7715GetSupportedExecutionPermissionsAction as F, type GetGrantedExecutionPermissionsResult as G, isValid7702Implementation as H, erc7715RequestExecutionPermissionsAction as I, signDelegation as J, signDelegationActions as K, signUserOperation as L, type MetaMaskExtensionClient as M, type NativeTokenPeriodicPermission as N, signUserOperationActions as O, type PeriodTransferResult as P, type RequestExecutionPermissionsParameters as R, type SignDelegationParameters as S, type Erc20TokenRevocationPermission as a, type Erc20TokenStreamPermission as b, caveatEnforcerActions as c, type Erc7715Client as d, type GetSupportedExecutionPermissionsResult as e, type MetaMaskExtensionSchema as f, type NativeTokenStreamPermission as g, type PermissionRequestParameter as h, index as i, type PermissionTypes as j, type RequestExecutionPermissionsReturnType as k, type RpcGetGrantedExecutionPermissionsResult as l, type RpcGetSupportedExecutionPermissionsResult as m, type RpcSupportedPermissionInfo as n, type SignDelegationReturnType as o, type SignUserOperationParameters as p, type SignUserOperationReturnType as q, type StreamingResult as r, type SupportedPermissionInfo as s, erc7710BundlerActions as t, erc7710WalletActions as u, erc7715ProviderActions as v, getErc20PeriodTransferEnforcerAvailableAmount as w, getErc20StreamingEnforcerAvailableAmount as x, erc7715GetGrantedExecutionPermissionsAction as y, getMultiTokenPeriodEnforcerAvailableAmount as z };
|
package/dist/index.cjs
CHANGED
|
@@ -2,24 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkAJWMPR7Xcjs = require('./chunk-AJWMPR7X.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
9
|
-
require('./chunk-
|
|
8
|
+
var _chunk57I2FJY7cjs = require('./chunk-57I2FJY7.cjs');
|
|
9
|
+
require('./chunk-GZ7HHI2D.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunk3PBVHNYPcjs = require('./chunk-3PBVHNYP.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
var _chunkSOFB2MXGcjs = require('./chunk-SOFB2MXG.cjs');
|
|
22
|
-
require('./chunk-
|
|
22
|
+
require('./chunk-DLCTHNAE.cjs');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
@@ -39,7 +39,7 @@ var _chunkMOHCTPYQcjs = require('./chunk-MOHCTPYQ.cjs');
|
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
var
|
|
42
|
+
var _chunkSZOX7K2Vcjs = require('./chunk-SZOX7K2V.cjs');
|
|
43
43
|
|
|
44
44
|
// src/toMetaMaskSmartAccount.ts
|
|
45
45
|
|
|
@@ -62,7 +62,7 @@ var signatureTypes = ["ECDSA"];
|
|
|
62
62
|
var aggregateSignature = ({
|
|
63
63
|
signatures
|
|
64
64
|
}) => {
|
|
65
|
-
|
|
65
|
+
_chunkSZOX7K2Vcjs.trackSmartAccountsKitFunctionCall.call(void 0, "aggregateSignature", {
|
|
66
66
|
signatureCount: signatures.length
|
|
67
67
|
});
|
|
68
68
|
if (signatures.length === 0) {
|
|
@@ -118,7 +118,7 @@ var resolveHybridSigner = (config) => {
|
|
|
118
118
|
if (webAuthnAccount.type !== "webAuthn") {
|
|
119
119
|
throw new Error("Account is not a webAuthn account");
|
|
120
120
|
}
|
|
121
|
-
const encodeSignature = (result) =>
|
|
121
|
+
const encodeSignature = (result) => _chunk3PBVHNYPcjs.encodeDeleGatorSignature.call(void 0,
|
|
122
122
|
keyId,
|
|
123
123
|
result.signature,
|
|
124
124
|
result.webauthn.clientDataJSON,
|
|
@@ -126,7 +126,7 @@ var resolveHybridSigner = (config) => {
|
|
|
126
126
|
);
|
|
127
127
|
const signMessage = async (args) => webAuthnAccount.signMessage(args).then(encodeSignature);
|
|
128
128
|
const signTypedData = async (typedDataDefinition) => webAuthnAccount.signTypedData(typedDataDefinition).then(encodeSignature);
|
|
129
|
-
const getStubSignature = async () =>
|
|
129
|
+
const getStubSignature = async () => _chunk3PBVHNYPcjs.createDummyWebAuthnSignature.call(void 0, keyId);
|
|
130
130
|
return {
|
|
131
131
|
signMessage,
|
|
132
132
|
signTypedData,
|
|
@@ -237,7 +237,7 @@ async function toMetaMaskSmartAccount(params) {
|
|
|
237
237
|
implementation,
|
|
238
238
|
nonceKeyManager
|
|
239
239
|
} = params;
|
|
240
|
-
|
|
240
|
+
_chunkSZOX7K2Vcjs.trackSmartAccountsKitFunctionCall.call(void 0, "toMetaMaskSmartAccount", {
|
|
241
241
|
implementation,
|
|
242
242
|
hasAddress: params.address !== void 0,
|
|
243
243
|
hasEnvironment: params.environment !== void 0,
|
|
@@ -259,7 +259,7 @@ async function toMetaMaskSmartAccount(params) {
|
|
|
259
259
|
if (implementation === "Stateless7702" /* Stateless7702 */) {
|
|
260
260
|
throw new Error("Stateless7702 does not support counterfactual accounts");
|
|
261
261
|
}
|
|
262
|
-
const accountData = await
|
|
262
|
+
const accountData = await _chunk3PBVHNYPcjs.getCounterfactualAccountData.call(void 0, {
|
|
263
263
|
factory: environment.SimpleFactory,
|
|
264
264
|
implementations: environment.implementations,
|
|
265
265
|
implementation,
|
|
@@ -306,7 +306,7 @@ async function toMetaMaskSmartAccount(params) {
|
|
|
306
306
|
);
|
|
307
307
|
}
|
|
308
308
|
const { delegation, chainId } = delegationParams;
|
|
309
|
-
const delegationStruct =
|
|
309
|
+
const delegationStruct = _chunkSZOX7K2Vcjs.toDelegationStruct.call(void 0, {
|
|
310
310
|
...delegation,
|
|
311
311
|
signature: "0x"
|
|
312
312
|
});
|
|
@@ -317,7 +317,7 @@ async function toMetaMaskSmartAccount(params) {
|
|
|
317
317
|
version: "1",
|
|
318
318
|
verifyingContract: environment.DelegationManager
|
|
319
319
|
},
|
|
320
|
-
types:
|
|
320
|
+
types: _chunkSZOX7K2Vcjs.SIGNABLE_DELEGATION_TYPED_DATA,
|
|
321
321
|
primaryType: "Delegation",
|
|
322
322
|
message: delegationStruct
|
|
323
323
|
});
|
|
@@ -349,7 +349,7 @@ async function toMetaMaskSmartAccount(params) {
|
|
|
349
349
|
return signature;
|
|
350
350
|
};
|
|
351
351
|
const getAddress = async () => address;
|
|
352
|
-
const encodeCalls = async (calls) =>
|
|
352
|
+
const encodeCalls = async (calls) => _chunk3PBVHNYPcjs.encodeCallsForCaller.call(void 0, address, calls);
|
|
353
353
|
const signerMethods = _nullishCoalesce(signer, () => ( {
|
|
354
354
|
signMessage: async () => {
|
|
355
355
|
throw new Error(
|
|
@@ -383,7 +383,7 @@ async function toMetaMaskSmartAccount(params) {
|
|
|
383
383
|
if (implementation === "Stateless7702" /* Stateless7702 */) {
|
|
384
384
|
return {
|
|
385
385
|
...smartAccount,
|
|
386
|
-
isDeployed: async () =>
|
|
386
|
+
isDeployed: async () => _chunkAJWMPR7Xcjs.isValid7702Implementation.call(void 0, {
|
|
387
387
|
client,
|
|
388
388
|
accountAddress: address,
|
|
389
389
|
environment
|
|
@@ -398,10 +398,10 @@ function createCaveatEnforcerClient({
|
|
|
398
398
|
client,
|
|
399
399
|
environment
|
|
400
400
|
}) {
|
|
401
|
-
|
|
401
|
+
_chunkSZOX7K2Vcjs.trackSmartAccountsKitFunctionCall.call(void 0, "createCaveatEnforcerClient", {
|
|
402
402
|
chainId: _nullishCoalesce(_optionalChain([client, 'access', _2 => _2.chain, 'optionalAccess', _3 => _3.id]), () => ( null))
|
|
403
403
|
});
|
|
404
|
-
return client.extend(
|
|
404
|
+
return client.extend(_chunkAJWMPR7Xcjs.caveatEnforcerActions.call(void 0, { environment }));
|
|
405
405
|
}
|
|
406
406
|
|
|
407
407
|
// src/actions/infuraBundlerClient.ts
|
|
@@ -429,7 +429,7 @@ var infuraBundlerActions = () => (client) => ({
|
|
|
429
429
|
}
|
|
430
430
|
});
|
|
431
431
|
function createInfuraBundlerClient(config) {
|
|
432
|
-
|
|
432
|
+
_chunkSZOX7K2Vcjs.trackSmartAccountsKitFunctionCall.call(void 0, "createInfuraBundlerClient", {
|
|
433
433
|
chainId: _nullishCoalesce(_optionalChain([config, 'access', _4 => _4.chain, 'optionalAccess', _5 => _5.id]), () => ( null))
|
|
434
434
|
});
|
|
435
435
|
const baseBundlerClient = _accountabstraction.createBundlerClient.call(void 0, config);
|
|
@@ -460,5 +460,5 @@ function createInfuraBundlerClient(config) {
|
|
|
460
460
|
|
|
461
461
|
|
|
462
462
|
|
|
463
|
-
exports.ANY_BENEFICIARY =
|
|
463
|
+
exports.ANY_BENEFICIARY = _chunkSZOX7K2Vcjs.ANY_BENEFICIARY; exports.BalanceChangeType = _chunkSZOX7K2Vcjs.BalanceChangeType; exports.CaveatType = _chunkSZOX7K2Vcjs.CaveatType; exports.ExecutionMode = _chunkMOHCTPYQcjs.ExecutionMode; exports.Implementation = _chunkSZOX7K2Vcjs.Implementation; exports.PREFERRED_VERSION = _chunkSOFB2MXGcjs.PREFERRED_VERSION; exports.ROOT_AUTHORITY = _chunkSZOX7K2Vcjs.ROOT_AUTHORITY; exports.ScopeType = _chunkSZOX7K2Vcjs.ScopeType; exports.TransferWindow = _chunkSZOX7K2Vcjs.TransferWindow; exports.actions = _chunkAJWMPR7Xcjs.actions_exports; exports.aggregateSignature = aggregateSignature; exports.contracts = _chunk57I2FJY7cjs.contracts_exports; exports.createCaveat = _chunkSZOX7K2Vcjs.createCaveat; exports.createCaveatEnforcerClient = createCaveatEnforcerClient; exports.createDelegation = _chunkSZOX7K2Vcjs.createDelegation; exports.createExecution = _chunkMOHCTPYQcjs.createExecution; exports.createInfuraBundlerClient = createInfuraBundlerClient; exports.createOpenDelegation = _chunkSZOX7K2Vcjs.createOpenDelegation; exports.getSmartAccountsEnvironment = _chunkSOFB2MXGcjs.getSmartAccountsEnvironment; exports.signDelegation = _chunkSZOX7K2Vcjs.signDelegation; exports.signUserOperation = _chunkSOFB2MXGcjs.signUserOperation; exports.toMetaMaskSmartAccount = toMetaMaskSmartAccount;
|
|
464
464
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.d.cts
CHANGED
|
@@ -5,8 +5,8 @@ export { P as PREFERRED_VERSION, c as createCaveat, g as getSmartAccountsEnviron
|
|
|
5
5
|
import { Address, Hex, Transport, Chain, Account, Client } from 'viem';
|
|
6
6
|
export { s as signUserOperation } from './userOp-DKgjzz7B.cjs';
|
|
7
7
|
export { i as contracts } from './index-DE87r5KY.cjs';
|
|
8
|
-
import { c as caveatEnforcerActions } from './index-
|
|
9
|
-
export { i as actions } from './index-
|
|
8
|
+
import { c as caveatEnforcerActions } from './index-BDC55AA9.cjs';
|
|
9
|
+
export { i as actions } from './index-BDC55AA9.cjs';
|
|
10
10
|
import { SmartAccount, BundlerClient, BundlerClientConfig } from 'viem/account-abstraction';
|
|
11
11
|
export { ANY_BENEFICIARY, ROOT_AUTHORITY } from '@metamask/delegation-core';
|
|
12
12
|
import '@metamask/delegation-abis';
|
package/dist/index.d.ts
CHANGED
|
@@ -5,8 +5,8 @@ export { P as PREFERRED_VERSION, c as createCaveat, g as getSmartAccountsEnviron
|
|
|
5
5
|
import { Address, Hex, Transport, Chain, Account, Client } from 'viem';
|
|
6
6
|
export { s as signUserOperation } from './userOp-DKgjzz7B.js';
|
|
7
7
|
export { i as contracts } from './index-D2THBlfm.js';
|
|
8
|
-
import { c as caveatEnforcerActions } from './index-
|
|
9
|
-
export { i as actions } from './index-
|
|
8
|
+
import { c as caveatEnforcerActions } from './index-DhG2lH80.js';
|
|
9
|
+
export { i as actions } from './index-DhG2lH80.js';
|
|
10
10
|
import { SmartAccount, BundlerClient, BundlerClientConfig } from 'viem/account-abstraction';
|
|
11
11
|
export { ANY_BENEFICIARY, ROOT_AUTHORITY } from '@metamask/delegation-core';
|
|
12
12
|
import '@metamask/delegation-abis';
|
package/dist/index.mjs
CHANGED
|
@@ -2,24 +2,24 @@ import {
|
|
|
2
2
|
actions_exports,
|
|
3
3
|
caveatEnforcerActions,
|
|
4
4
|
isValid7702Implementation
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-FKI4OME5.mjs";
|
|
6
6
|
import {
|
|
7
7
|
contracts_exports
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-26PADMXR.mjs";
|
|
9
|
+
import "./chunk-AC2BQSYP.mjs";
|
|
10
10
|
import {
|
|
11
11
|
createDummyWebAuthnSignature,
|
|
12
12
|
encodeCallsForCaller,
|
|
13
13
|
encodeDeleGatorSignature,
|
|
14
14
|
getCounterfactualAccountData
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-LQXOM3TA.mjs";
|
|
16
16
|
import {
|
|
17
17
|
PREFERRED_VERSION,
|
|
18
18
|
SIGNABLE_USER_OP_TYPED_DATA,
|
|
19
19
|
getSmartAccountsEnvironment,
|
|
20
20
|
signUserOperation
|
|
21
21
|
} from "./chunk-QCULIK3O.mjs";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-KBSFVKUB.mjs";
|
|
23
23
|
import {
|
|
24
24
|
ExecutionMode,
|
|
25
25
|
createExecution
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
signDelegation,
|
|
40
40
|
toDelegationStruct,
|
|
41
41
|
trackSmartAccountsKitFunctionCall
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-Z4D7ZWVB.mjs";
|
|
43
43
|
|
|
44
44
|
// src/toMetaMaskSmartAccount.ts
|
|
45
45
|
import {
|
package/dist/utils/index.cjs
CHANGED
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk3PBVHNYPcjs = require('../chunk-3PBVHNYP.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
var _chunkSOFB2MXGcjs = require('../chunk-SOFB2MXG.cjs');
|
|
12
|
-
require('../chunk-
|
|
12
|
+
require('../chunk-DLCTHNAE.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
@@ -32,7 +32,7 @@ var _chunkMOHCTPYQcjs = require('../chunk-MOHCTPYQ.cjs');
|
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
|
|
35
|
-
var
|
|
35
|
+
var _chunkSZOX7K2Vcjs = require('../chunk-SZOX7K2V.cjs');
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
|
|
@@ -60,5 +60,5 @@ var _chunk7BEEGBA2cjs = require('../chunk-7BEEGBA2.cjs');
|
|
|
60
60
|
|
|
61
61
|
|
|
62
62
|
|
|
63
|
-
exports.CaveatBuilder =
|
|
63
|
+
exports.CaveatBuilder = _chunkSZOX7K2Vcjs.CaveatBuilder; exports.DELEGATION_ABI_TYPE = _chunkSZOX7K2Vcjs.DELEGATION_ABI_TYPE; exports.DELEGATION_ABI_TYPE_COMPONENTS = _chunkSZOX7K2Vcjs.DELEGATION_ABI_TYPE_COMPONENTS; exports.DELEGATION_ARRAY_ABI_TYPE = _chunkSZOX7K2Vcjs.DELEGATION_ARRAY_ABI_TYPE; exports.DELEGATION_TYPEHASH = _chunkSZOX7K2Vcjs.DELEGATION_TYPEHASH; exports.SIGNABLE_DELEGATION_TYPED_DATA = _chunkSZOX7K2Vcjs.SIGNABLE_DELEGATION_TYPED_DATA; exports.SIGNABLE_USER_OP_TYPED_DATA = _chunkSOFB2MXGcjs.SIGNABLE_USER_OP_TYPED_DATA; exports.SIGNATURE_ABI_PARAMS = _chunk3PBVHNYPcjs.SIGNATURE_ABI_PARAMS; exports.createCaveatBuilder = _chunkSZOX7K2Vcjs.createCaveatBuilder; exports.decodeCaveat = _chunkSZOX7K2Vcjs.decodeCaveat; exports.decodeDelegation = _chunkSZOX7K2Vcjs.decodeDelegation; exports.decodeDelegations = _chunkSZOX7K2Vcjs.decodeDelegations; exports.deploySmartAccountsEnvironment = _chunkSOFB2MXGcjs.deploySmartAccountsEnvironment; exports.encodeBatchExecution = _chunkMOHCTPYQcjs.encodeBatchExecution; exports.encodeCalls = _chunk3PBVHNYPcjs.encodeCalls; exports.encodeCallsForCaller = _chunk3PBVHNYPcjs.encodeCallsForCaller; exports.encodeDelegation = _chunkSZOX7K2Vcjs.encodeDelegation; exports.encodeDelegations = _chunkSZOX7K2Vcjs.encodeDelegations; exports.encodeExecutionCalldata = _chunkMOHCTPYQcjs.encodeExecutionCalldata; exports.encodeExecutionCalldatas = _chunkMOHCTPYQcjs.encodeExecutionCalldatas; exports.encodeSingleExecution = _chunkMOHCTPYQcjs.encodeSingleExecution; exports.getCounterfactualAccountData = _chunk3PBVHNYPcjs.getCounterfactualAccountData; exports.hashDelegation = _chunkSZOX7K2Vcjs.hashDelegation; exports.overrideDeployedEnvironment = _chunkSOFB2MXGcjs.overrideDeployedEnvironment; exports.toDelegation = _chunkSZOX7K2Vcjs.toDelegation; exports.toDelegationStruct = _chunkSZOX7K2Vcjs.toDelegationStruct;
|
|
64
64
|
//# sourceMappingURL=index.cjs.map
|
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-LQXOM3TA.mjs";
|
|
7
7
|
import {
|
|
8
8
|
SIGNABLE_USER_OP_TYPED_DATA,
|
|
9
9
|
deploySmartAccountsEnvironment,
|
|
10
10
|
overrideDeployedEnvironment
|
|
11
11
|
} from "../chunk-QCULIK3O.mjs";
|
|
12
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-KBSFVKUB.mjs";
|
|
13
13
|
import {
|
|
14
14
|
encodeBatchExecution,
|
|
15
15
|
encodeExecutionCalldata,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
hashDelegation,
|
|
33
33
|
toDelegation,
|
|
34
34
|
toDelegationStruct
|
|
35
|
-
} from "../chunk-
|
|
35
|
+
} from "../chunk-Z4D7ZWVB.mjs";
|
|
36
36
|
export {
|
|
37
37
|
CaveatBuilder,
|
|
38
38
|
DELEGATION_ABI_TYPE,
|
package/package.json
CHANGED