@metamask/smart-accounts-kit 0.4.0-beta.0 → 0.4.0-beta.2
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 +49 -1
- package/dist/actions/index.cjs +5 -5
- package/dist/actions/index.d.cts +2 -2
- package/dist/actions/index.d.ts +2 -2
- package/dist/actions/index.mjs +4 -4
- package/dist/{chunk-S2Q5ZC64.cjs → chunk-23YXLKTX.cjs} +58 -59
- package/dist/chunk-23YXLKTX.cjs.map +1 -0
- package/dist/{chunk-W6ZI7GWI.mjs → chunk-33AMUJBJ.mjs} +49 -52
- package/dist/chunk-33AMUJBJ.mjs.map +1 -0
- package/dist/{chunk-TEH426Y4.mjs → chunk-C5ZEEH2Z.mjs} +283 -184
- package/dist/chunk-C5ZEEH2Z.mjs.map +1 -0
- package/dist/{chunk-NTZ57GNF.cjs → chunk-DLD377CN.cjs} +17 -33
- package/dist/chunk-DLD377CN.cjs.map +1 -0
- package/dist/{chunk-5BYJZGRI.mjs → chunk-NOCLGZGB.mjs} +174 -129
- package/dist/chunk-NOCLGZGB.mjs.map +1 -0
- package/dist/{chunk-EHIZB5U7.mjs → chunk-QCULIK3O.mjs} +211 -97
- package/dist/chunk-QCULIK3O.mjs.map +1 -0
- package/dist/{chunk-YWRHYLKB.cjs → chunk-QMRKCB7T.cjs} +204 -159
- package/dist/chunk-QMRKCB7T.cjs.map +1 -0
- package/dist/{chunk-TXN7GX6Y.cjs → chunk-SOFB2MXG.cjs} +207 -93
- package/dist/chunk-SOFB2MXG.cjs.map +1 -0
- package/dist/{chunk-RAXFJGCS.cjs → chunk-UUOH2WAW.cjs} +19 -19
- package/dist/chunk-UUOH2WAW.cjs.map +1 -0
- package/dist/{chunk-AUCZDOTJ.mjs → chunk-WPVSFOQM.mjs} +11 -27
- package/dist/chunk-WPVSFOQM.mjs.map +1 -0
- package/dist/{chunk-4A5RMDDC.mjs → chunk-WV2R7BXP.mjs} +49 -50
- package/dist/chunk-WV2R7BXP.mjs.map +1 -0
- package/dist/{chunk-YTGYVHDF.cjs → chunk-XN36L4RX.cjs} +144 -147
- package/dist/chunk-XN36L4RX.cjs.map +1 -0
- package/dist/{chunk-MIP7KJYH.cjs → chunk-YDLLC6PP.cjs} +252 -153
- package/dist/chunk-YDLLC6PP.cjs.map +1 -0
- package/dist/{chunk-DPWYECSV.mjs → chunk-YTELOQ4I.mjs} +9 -9
- package/dist/chunk-YTELOQ4I.mjs.map +1 -0
- package/dist/contracts/index.cjs +5 -5
- package/dist/contracts/index.d.cts +3 -3
- package/dist/contracts/index.d.ts +3 -3
- package/dist/contracts/index.mjs +4 -4
- package/dist/{delegation-DHjM_pVa.d.ts → delegation-DGUfyX-C.d.ts} +52 -26
- package/dist/{delegation-BnhAvKt4.d.cts → delegation-D_TY-tAq.d.cts} +52 -26
- package/dist/experimental/index.cjs +4 -4
- package/dist/experimental/index.cjs.map +1 -1
- package/dist/experimental/index.d.cts +1 -1
- package/dist/experimental/index.d.ts +1 -1
- package/dist/experimental/index.mjs +5 -5
- package/dist/experimental/index.mjs.map +1 -1
- package/dist/{index-CX3hrztI.d.cts → index-B9bsjGqI.d.ts} +240 -38
- package/dist/{index-D04LO0vH.d.cts → index-CZes99jV.d.cts} +95 -62
- package/dist/{index-i8cod4JY.d.ts → index-DvcKJcXi.d.cts} +240 -38
- package/dist/{index-BlgCQ80b.d.ts → index-FpCh2419.d.ts} +95 -62
- package/dist/index.cjs +26 -24
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -11
- package/dist/index.d.ts +9 -11
- package/dist/index.mjs +17 -15
- package/dist/index.mjs.map +1 -1
- package/dist/{smartAccountsEnvironment-SVknZ_3f.d.cts → smartAccountsEnvironment-BU8kjlEv.d.cts} +1 -1
- package/dist/{smartAccountsEnvironment-BOhrxEnt.d.ts → smartAccountsEnvironment-egxuflDO.d.ts} +1 -1
- package/dist/{types-Bwksz_U6.d.ts → types-BLYWtcR3.d.cts} +49 -31
- package/dist/{types-Bwksz_U6.d.cts → types-BLYWtcR3.d.ts} +49 -31
- package/dist/utils/index.cjs +7 -5
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.cts +3 -4
- package/dist/utils/index.d.ts +3 -4
- package/dist/utils/index.mjs +12 -10
- package/package.json +6 -11
- package/dist/chunk-4A5RMDDC.mjs.map +0 -1
- package/dist/chunk-5BYJZGRI.mjs.map +0 -1
- package/dist/chunk-AUCZDOTJ.mjs.map +0 -1
- package/dist/chunk-DPWYECSV.mjs.map +0 -1
- package/dist/chunk-EHIZB5U7.mjs.map +0 -1
- package/dist/chunk-MIP7KJYH.cjs.map +0 -1
- package/dist/chunk-NTZ57GNF.cjs.map +0 -1
- package/dist/chunk-RAXFJGCS.cjs.map +0 -1
- package/dist/chunk-S2Q5ZC64.cjs.map +0 -1
- package/dist/chunk-TEH426Y4.mjs.map +0 -1
- package/dist/chunk-TXN7GX6Y.cjs.map +0 -1
- package/dist/chunk-W6ZI7GWI.mjs.map +0 -1
- package/dist/chunk-YTGYVHDF.cjs.map +0 -1
- package/dist/chunk-YWRHYLKB.cjs.map +0 -1
package/dist/{smartAccountsEnvironment-SVknZ_3f.d.cts → smartAccountsEnvironment-BU8kjlEv.d.cts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WalletClient, PublicClient, Chain, Hex } from 'viem';
|
|
2
|
-
import { S as SmartAccountsEnvironment } from './types-
|
|
2
|
+
import { S as SmartAccountsEnvironment } from './types-BLYWtcR3.cjs';
|
|
3
3
|
|
|
4
4
|
type SupportedVersion = '1.0.0' | '1.1.0' | '1.2.0' | '1.3.0';
|
|
5
5
|
declare const PREFERRED_VERSION: SupportedVersion;
|
package/dist/{smartAccountsEnvironment-BOhrxEnt.d.ts → smartAccountsEnvironment-egxuflDO.d.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WalletClient, PublicClient, Chain, Hex } from 'viem';
|
|
2
|
-
import { S as SmartAccountsEnvironment } from './types-
|
|
2
|
+
import { S as SmartAccountsEnvironment } from './types-BLYWtcR3.js';
|
|
3
3
|
|
|
4
4
|
type SupportedVersion = '1.0.0' | '1.1.0' | '1.2.0' | '1.3.0';
|
|
5
5
|
declare const PREFERRED_VERSION: SupportedVersion;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HybridDeleGator, MultiSigDeleGator, EIP7702StatelessDeleGator } from '@metamask/delegation-abis';
|
|
2
|
-
import {
|
|
2
|
+
import { PublicClient, WalletClient, Transport, Chain, Account, Hex, OneOf, Address } from 'viem';
|
|
3
3
|
import { WebAuthnAccount, SmartAccount, SmartAccountImplementation, entryPoint07Abi } from 'viem/account-abstraction';
|
|
4
4
|
import { Prettify } from 'viem/chains';
|
|
5
5
|
|
|
@@ -17,28 +17,50 @@ declare enum TransferWindow {
|
|
|
17
17
|
Quarterly = 7776000,
|
|
18
18
|
Yearly = 31536000
|
|
19
19
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
declare
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
20
|
+
declare enum ScopeType {
|
|
21
|
+
Erc20TransferAmount = "erc20TransferAmount",
|
|
22
|
+
Erc20Streaming = "erc20Streaming",
|
|
23
|
+
Erc20PeriodTransfer = "erc20PeriodTransfer",
|
|
24
|
+
NativeTokenTransferAmount = "nativeTokenTransferAmount",
|
|
25
|
+
NativeTokenStreaming = "nativeTokenStreaming",
|
|
26
|
+
NativeTokenPeriodTransfer = "nativeTokenPeriodTransfer",
|
|
27
|
+
Erc721Transfer = "erc721Transfer",
|
|
28
|
+
OwnershipTransfer = "ownershipTransfer",
|
|
29
|
+
FunctionCall = "functionCall"
|
|
30
|
+
}
|
|
31
|
+
declare enum CaveatType {
|
|
32
|
+
AllowedMethods = "allowedMethods",
|
|
33
|
+
AllowedTargets = "allowedTargets",
|
|
34
|
+
Deployed = "deployed",
|
|
35
|
+
AllowedCalldata = "allowedCalldata",
|
|
36
|
+
Erc20BalanceChange = "erc20BalanceChange",
|
|
37
|
+
Erc721BalanceChange = "erc721BalanceChange",
|
|
38
|
+
Erc1155BalanceChange = "erc1155BalanceChange",
|
|
39
|
+
ValueLte = "valueLte",
|
|
40
|
+
LimitedCalls = "limitedCalls",
|
|
41
|
+
Id = "id",
|
|
42
|
+
Nonce = "nonce",
|
|
43
|
+
Timestamp = "timestamp",
|
|
44
|
+
BlockNumber = "blockNumber",
|
|
45
|
+
Erc20TransferAmount = "erc20TransferAmount",
|
|
46
|
+
Erc20Streaming = "erc20Streaming",
|
|
47
|
+
NativeTokenStreaming = "nativeTokenStreaming",
|
|
48
|
+
Erc721Transfer = "erc721Transfer",
|
|
49
|
+
NativeTokenTransferAmount = "nativeTokenTransferAmount",
|
|
50
|
+
NativeBalanceChange = "nativeBalanceChange",
|
|
51
|
+
Redeemer = "redeemer",
|
|
52
|
+
NativeTokenPayment = "nativeTokenPayment",
|
|
53
|
+
ArgsEqualityCheck = "argsEqualityCheck",
|
|
54
|
+
SpecificActionERC20TransferBatch = "specificActionERC20TransferBatch",
|
|
55
|
+
Erc20PeriodTransfer = "erc20PeriodTransfer",
|
|
56
|
+
NativeTokenPeriodTransfer = "nativeTokenPeriodTransfer",
|
|
57
|
+
ExactCalldataBatch = "exactCalldataBatch",
|
|
58
|
+
ExactCalldata = "exactCalldata",
|
|
59
|
+
ExactExecution = "exactExecution",
|
|
60
|
+
ExactExecutionBatch = "exactExecutionBatch",
|
|
61
|
+
MultiTokenPeriod = "multiTokenPeriod",
|
|
62
|
+
OwnershipTransfer = "ownershipTransfer"
|
|
37
63
|
}
|
|
38
|
-
declare const encodeSingleExecution: (execution: ExecutionStruct) => Hex;
|
|
39
|
-
declare const encodeBatchExecution: (executions: ExecutionStruct[]) => Hex;
|
|
40
|
-
declare const encodeExecutionCalldata: (executions: ExecutionStruct[]) => Hex;
|
|
41
|
-
declare const encodeExecutionCalldatas: (executionsBatch: ExecutionStruct[][]) => Hex[];
|
|
42
64
|
|
|
43
65
|
type Caveat = {
|
|
44
66
|
enforcer: Hex;
|
|
@@ -53,6 +75,7 @@ type Delegation = {
|
|
|
53
75
|
salt: Hex;
|
|
54
76
|
signature: Hex;
|
|
55
77
|
};
|
|
78
|
+
type PermissionContext = Delegation[] | Hex;
|
|
56
79
|
type SmartAccountsEnvironment = {
|
|
57
80
|
DelegationManager: Hex;
|
|
58
81
|
EntryPoint: Hex;
|
|
@@ -71,11 +94,6 @@ type HybridDeleGatorDeployParams = [
|
|
|
71
94
|
xValues: bigint[],
|
|
72
95
|
yValues: bigint[]
|
|
73
96
|
];
|
|
74
|
-
type Redemption = {
|
|
75
|
-
permissionContext: Delegation[];
|
|
76
|
-
executions: ExecutionStruct[];
|
|
77
|
-
mode: ExecutionMode;
|
|
78
|
-
};
|
|
79
97
|
type DeployParams<TImplementation extends Implementation> = {
|
|
80
98
|
[Implementation.MultiSig]: MultiSigDeleGatorDeployParams;
|
|
81
99
|
[Implementation.Hybrid]: HybridDeleGatorDeployParams;
|
|
@@ -100,9 +118,9 @@ type SignDelegationParams = {
|
|
|
100
118
|
};
|
|
101
119
|
type MetaMaskSmartAccountImplementation<TImplementation extends Implementation> = SmartAccountImplementation<typeof entryPoint07Abi, '0.7', {
|
|
102
120
|
abi: {
|
|
103
|
-
[Implementation.Hybrid]: typeof HybridDeleGator
|
|
104
|
-
[Implementation.MultiSig]: typeof MultiSigDeleGator
|
|
105
|
-
[Implementation.Stateless7702]: typeof EIP7702StatelessDeleGator
|
|
121
|
+
[Implementation.Hybrid]: typeof HybridDeleGator;
|
|
122
|
+
[Implementation.MultiSig]: typeof MultiSigDeleGator;
|
|
123
|
+
[Implementation.Stateless7702]: typeof EIP7702StatelessDeleGator;
|
|
106
124
|
}[TImplementation];
|
|
107
125
|
signDelegation: (params: SignDelegationParams) => Promise<Hex>;
|
|
108
126
|
environment: SmartAccountsEnvironment;
|
|
@@ -133,4 +151,4 @@ type Call = {
|
|
|
133
151
|
value?: bigint | undefined;
|
|
134
152
|
};
|
|
135
153
|
|
|
136
|
-
export { type AccountSignerConfig as A, type Caveat as C, type Delegation as D,
|
|
154
|
+
export { type AccountSignerConfig as A, type Caveat as C, type Delegation as D, type HybridDeleGatorDeployParams as H, Implementation as I, type MultiSigDeleGatorDeployParams as M, type PermissionContext as P, type SmartAccountsEnvironment as S, type ToMetaMaskSmartAccountParameters as T, type WalletSignerConfig as W, type ToMetaMaskSmartAccountReturnType as a, type SignUserOperationParams as b, type SignDelegationParams as c, type MetaMaskSmartAccountImplementation as d, type MetaMaskSmartAccount as e, type WebAuthnSignerConfig as f, type HybridSignerConfig as g, type MultiSigSignerConfig as h, TransferWindow as i, ScopeType as j, CaveatType as k, type Call as l, type DeployParams as m };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HybridDeleGator, MultiSigDeleGator, EIP7702StatelessDeleGator } from '@metamask/delegation-abis';
|
|
2
|
-
import {
|
|
2
|
+
import { PublicClient, WalletClient, Transport, Chain, Account, Hex, OneOf, Address } from 'viem';
|
|
3
3
|
import { WebAuthnAccount, SmartAccount, SmartAccountImplementation, entryPoint07Abi } from 'viem/account-abstraction';
|
|
4
4
|
import { Prettify } from 'viem/chains';
|
|
5
5
|
|
|
@@ -17,28 +17,50 @@ declare enum TransferWindow {
|
|
|
17
17
|
Quarterly = 7776000,
|
|
18
18
|
Yearly = 31536000
|
|
19
19
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
declare
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
20
|
+
declare enum ScopeType {
|
|
21
|
+
Erc20TransferAmount = "erc20TransferAmount",
|
|
22
|
+
Erc20Streaming = "erc20Streaming",
|
|
23
|
+
Erc20PeriodTransfer = "erc20PeriodTransfer",
|
|
24
|
+
NativeTokenTransferAmount = "nativeTokenTransferAmount",
|
|
25
|
+
NativeTokenStreaming = "nativeTokenStreaming",
|
|
26
|
+
NativeTokenPeriodTransfer = "nativeTokenPeriodTransfer",
|
|
27
|
+
Erc721Transfer = "erc721Transfer",
|
|
28
|
+
OwnershipTransfer = "ownershipTransfer",
|
|
29
|
+
FunctionCall = "functionCall"
|
|
30
|
+
}
|
|
31
|
+
declare enum CaveatType {
|
|
32
|
+
AllowedMethods = "allowedMethods",
|
|
33
|
+
AllowedTargets = "allowedTargets",
|
|
34
|
+
Deployed = "deployed",
|
|
35
|
+
AllowedCalldata = "allowedCalldata",
|
|
36
|
+
Erc20BalanceChange = "erc20BalanceChange",
|
|
37
|
+
Erc721BalanceChange = "erc721BalanceChange",
|
|
38
|
+
Erc1155BalanceChange = "erc1155BalanceChange",
|
|
39
|
+
ValueLte = "valueLte",
|
|
40
|
+
LimitedCalls = "limitedCalls",
|
|
41
|
+
Id = "id",
|
|
42
|
+
Nonce = "nonce",
|
|
43
|
+
Timestamp = "timestamp",
|
|
44
|
+
BlockNumber = "blockNumber",
|
|
45
|
+
Erc20TransferAmount = "erc20TransferAmount",
|
|
46
|
+
Erc20Streaming = "erc20Streaming",
|
|
47
|
+
NativeTokenStreaming = "nativeTokenStreaming",
|
|
48
|
+
Erc721Transfer = "erc721Transfer",
|
|
49
|
+
NativeTokenTransferAmount = "nativeTokenTransferAmount",
|
|
50
|
+
NativeBalanceChange = "nativeBalanceChange",
|
|
51
|
+
Redeemer = "redeemer",
|
|
52
|
+
NativeTokenPayment = "nativeTokenPayment",
|
|
53
|
+
ArgsEqualityCheck = "argsEqualityCheck",
|
|
54
|
+
SpecificActionERC20TransferBatch = "specificActionERC20TransferBatch",
|
|
55
|
+
Erc20PeriodTransfer = "erc20PeriodTransfer",
|
|
56
|
+
NativeTokenPeriodTransfer = "nativeTokenPeriodTransfer",
|
|
57
|
+
ExactCalldataBatch = "exactCalldataBatch",
|
|
58
|
+
ExactCalldata = "exactCalldata",
|
|
59
|
+
ExactExecution = "exactExecution",
|
|
60
|
+
ExactExecutionBatch = "exactExecutionBatch",
|
|
61
|
+
MultiTokenPeriod = "multiTokenPeriod",
|
|
62
|
+
OwnershipTransfer = "ownershipTransfer"
|
|
37
63
|
}
|
|
38
|
-
declare const encodeSingleExecution: (execution: ExecutionStruct) => Hex;
|
|
39
|
-
declare const encodeBatchExecution: (executions: ExecutionStruct[]) => Hex;
|
|
40
|
-
declare const encodeExecutionCalldata: (executions: ExecutionStruct[]) => Hex;
|
|
41
|
-
declare const encodeExecutionCalldatas: (executionsBatch: ExecutionStruct[][]) => Hex[];
|
|
42
64
|
|
|
43
65
|
type Caveat = {
|
|
44
66
|
enforcer: Hex;
|
|
@@ -53,6 +75,7 @@ type Delegation = {
|
|
|
53
75
|
salt: Hex;
|
|
54
76
|
signature: Hex;
|
|
55
77
|
};
|
|
78
|
+
type PermissionContext = Delegation[] | Hex;
|
|
56
79
|
type SmartAccountsEnvironment = {
|
|
57
80
|
DelegationManager: Hex;
|
|
58
81
|
EntryPoint: Hex;
|
|
@@ -71,11 +94,6 @@ type HybridDeleGatorDeployParams = [
|
|
|
71
94
|
xValues: bigint[],
|
|
72
95
|
yValues: bigint[]
|
|
73
96
|
];
|
|
74
|
-
type Redemption = {
|
|
75
|
-
permissionContext: Delegation[];
|
|
76
|
-
executions: ExecutionStruct[];
|
|
77
|
-
mode: ExecutionMode;
|
|
78
|
-
};
|
|
79
97
|
type DeployParams<TImplementation extends Implementation> = {
|
|
80
98
|
[Implementation.MultiSig]: MultiSigDeleGatorDeployParams;
|
|
81
99
|
[Implementation.Hybrid]: HybridDeleGatorDeployParams;
|
|
@@ -100,9 +118,9 @@ type SignDelegationParams = {
|
|
|
100
118
|
};
|
|
101
119
|
type MetaMaskSmartAccountImplementation<TImplementation extends Implementation> = SmartAccountImplementation<typeof entryPoint07Abi, '0.7', {
|
|
102
120
|
abi: {
|
|
103
|
-
[Implementation.Hybrid]: typeof HybridDeleGator
|
|
104
|
-
[Implementation.MultiSig]: typeof MultiSigDeleGator
|
|
105
|
-
[Implementation.Stateless7702]: typeof EIP7702StatelessDeleGator
|
|
121
|
+
[Implementation.Hybrid]: typeof HybridDeleGator;
|
|
122
|
+
[Implementation.MultiSig]: typeof MultiSigDeleGator;
|
|
123
|
+
[Implementation.Stateless7702]: typeof EIP7702StatelessDeleGator;
|
|
106
124
|
}[TImplementation];
|
|
107
125
|
signDelegation: (params: SignDelegationParams) => Promise<Hex>;
|
|
108
126
|
environment: SmartAccountsEnvironment;
|
|
@@ -133,4 +151,4 @@ type Call = {
|
|
|
133
151
|
value?: bigint | undefined;
|
|
134
152
|
};
|
|
135
153
|
|
|
136
|
-
export { type AccountSignerConfig as A, type Caveat as C, type Delegation as D,
|
|
154
|
+
export { type AccountSignerConfig as A, type Caveat as C, type Delegation as D, type HybridDeleGatorDeployParams as H, Implementation as I, type MultiSigDeleGatorDeployParams as M, type PermissionContext as P, type SmartAccountsEnvironment as S, type ToMetaMaskSmartAccountParameters as T, type WalletSignerConfig as W, type ToMetaMaskSmartAccountReturnType as a, type SignUserOperationParams as b, type SignDelegationParams as c, type MetaMaskSmartAccountImplementation as d, type MetaMaskSmartAccount as e, type WebAuthnSignerConfig as f, type HybridSignerConfig as g, type MultiSigSignerConfig as h, TransferWindow as i, ScopeType as j, CaveatType as k, type Call as l, type DeployParams as m };
|
package/dist/utils/index.cjs
CHANGED
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkDLD377CNcjs = require('../chunk-DLD377CN.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
12
|
-
require('../chunk-
|
|
11
|
+
var _chunkSOFB2MXGcjs = require('../chunk-SOFB2MXG.cjs');
|
|
12
|
+
require('../chunk-23YXLKTX.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
@@ -30,8 +30,8 @@ var _chunkVLKX4BR6cjs = require('../chunk-VLKX4BR6.cjs');
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
var _chunkMIP7KJYHcjs = require('../chunk-MIP7KJYH.cjs');
|
|
34
33
|
|
|
34
|
+
var _chunkYDLLC6PPcjs = require('../chunk-YDLLC6PP.cjs');
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
|
|
@@ -56,5 +56,7 @@ var _chunkMIP7KJYHcjs = require('../chunk-MIP7KJYH.cjs');
|
|
|
56
56
|
|
|
57
57
|
|
|
58
58
|
|
|
59
|
-
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
exports.CaveatBuilder = _chunkYDLLC6PPcjs.CaveatBuilder; exports.DELEGATION_ABI_TYPE = _chunkYDLLC6PPcjs.DELEGATION_ABI_TYPE; exports.DELEGATION_ABI_TYPE_COMPONENTS = _chunkYDLLC6PPcjs.DELEGATION_ABI_TYPE_COMPONENTS; exports.DELEGATION_ARRAY_ABI_TYPE = _chunkYDLLC6PPcjs.DELEGATION_ARRAY_ABI_TYPE; exports.DELEGATION_TYPEHASH = _chunkYDLLC6PPcjs.DELEGATION_TYPEHASH; exports.SIGNABLE_DELEGATION_TYPED_DATA = _chunkYDLLC6PPcjs.SIGNABLE_DELEGATION_TYPED_DATA; exports.SIGNABLE_USER_OP_TYPED_DATA = _chunkSOFB2MXGcjs.SIGNABLE_USER_OP_TYPED_DATA; exports.SIGNATURE_ABI_PARAMS = _chunkDLD377CNcjs.SIGNATURE_ABI_PARAMS; exports.createCaveatBuilder = _chunkYDLLC6PPcjs.createCaveatBuilder; exports.decodeDelegation = _chunkYDLLC6PPcjs.decodeDelegation; exports.decodeDelegations = _chunkYDLLC6PPcjs.decodeDelegations; exports.deploySmartAccountsEnvironment = _chunkSOFB2MXGcjs.deploySmartAccountsEnvironment; exports.encodeBatchExecution = _chunkVLKX4BR6cjs.encodeBatchExecution; exports.encodeCalls = _chunkDLD377CNcjs.encodeCalls; exports.encodeCallsForCaller = _chunkDLD377CNcjs.encodeCallsForCaller; exports.encodeDelegation = _chunkYDLLC6PPcjs.encodeDelegation; exports.encodeDelegations = _chunkYDLLC6PPcjs.encodeDelegations; exports.encodeExecutionCalldata = _chunkVLKX4BR6cjs.encodeExecutionCalldata; exports.encodeExecutionCalldatas = _chunkVLKX4BR6cjs.encodeExecutionCalldatas; exports.encodeSingleExecution = _chunkVLKX4BR6cjs.encodeSingleExecution; exports.getCounterfactualAccountData = _chunkDLD377CNcjs.getCounterfactualAccountData; exports.hashDelegation = _chunkYDLLC6PPcjs.hashDelegation; exports.overrideDeployedEnvironment = _chunkSOFB2MXGcjs.overrideDeployedEnvironment; exports.toDelegation = _chunkYDLLC6PPcjs.toDelegation; exports.toDelegationStruct = _chunkYDLLC6PPcjs.toDelegationStruct;
|
|
60
62
|
//# sourceMappingURL=index.cjs.map
|
package/dist/utils/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/smart-accounts-kit/smart-accounts-kit/packages/smart-accounts-kit/dist/utils/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACA;AACA;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/smart-accounts-kit/smart-accounts-kit/packages/smart-accounts-kit/dist/utils/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACA;AACA;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,8wDAAC","file":"/home/runner/work/smart-accounts-kit/smart-accounts-kit/packages/smart-accounts-kit/dist/utils/index.cjs"}
|
package/dist/utils/index.d.cts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
export {
|
|
2
|
-
import { m as Call, I as Implementation, S as SmartAccountsEnvironment, n as DeployParams } from '../types-Bwksz_U6.cjs';
|
|
3
|
-
export { k as ExecutionStruct, r as encodeBatchExecution, o as encodeExecutionCalldata, p as encodeExecutionCalldatas, q as encodeSingleExecution } from '../types-Bwksz_U6.cjs';
|
|
1
|
+
export { z as CaveatBuilder, x as CaveatBuilderConfig, w as CoreCaveatBuilder, m as DELEGATION_ABI_TYPE, n as DELEGATION_ABI_TYPE_COMPONENTS, D as DELEGATION_ARRAY_ABI_TYPE, p as DelegationStruct, e as ExecutionStruct, S as SIGNABLE_DELEGATION_TYPED_DATA, y as createCaveatBuilder, k as decodeDelegation, i as decodeDelegations, v as encodeBatchExecution, j as encodeDelegation, h as encodeDelegations, q as encodeExecutionCalldata, r as encodeExecutionCalldatas, u as encodeSingleExecution, o as hashDelegation, l as toDelegation, t as toDelegationStruct } from '../delegation-D_TY-tAq.cjs';
|
|
4
2
|
export { S as SIGNABLE_USER_OP_TYPED_DATA } from '../userOp-DKgjzz7B.cjs';
|
|
5
3
|
import { Address, Hex } from 'viem';
|
|
6
|
-
|
|
4
|
+
import { l as Call, I as Implementation, S as SmartAccountsEnvironment, m as DeployParams } from '../types-BLYWtcR3.cjs';
|
|
5
|
+
export { d as deploySmartAccountsEnvironment, o as overrideDeployedEnvironment } from '../smartAccountsEnvironment-BU8kjlEv.cjs';
|
|
7
6
|
export { DELEGATION_TYPEHASH } from '@metamask/delegation-core';
|
|
8
7
|
import '@metamask/delegation-abis';
|
|
9
8
|
import 'viem/account-abstraction';
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
export {
|
|
2
|
-
import { m as Call, I as Implementation, S as SmartAccountsEnvironment, n as DeployParams } from '../types-Bwksz_U6.js';
|
|
3
|
-
export { k as ExecutionStruct, r as encodeBatchExecution, o as encodeExecutionCalldata, p as encodeExecutionCalldatas, q as encodeSingleExecution } from '../types-Bwksz_U6.js';
|
|
1
|
+
export { z as CaveatBuilder, x as CaveatBuilderConfig, w as CoreCaveatBuilder, m as DELEGATION_ABI_TYPE, n as DELEGATION_ABI_TYPE_COMPONENTS, D as DELEGATION_ARRAY_ABI_TYPE, p as DelegationStruct, e as ExecutionStruct, S as SIGNABLE_DELEGATION_TYPED_DATA, y as createCaveatBuilder, k as decodeDelegation, i as decodeDelegations, v as encodeBatchExecution, j as encodeDelegation, h as encodeDelegations, q as encodeExecutionCalldata, r as encodeExecutionCalldatas, u as encodeSingleExecution, o as hashDelegation, l as toDelegation, t as toDelegationStruct } from '../delegation-DGUfyX-C.js';
|
|
4
2
|
export { S as SIGNABLE_USER_OP_TYPED_DATA } from '../userOp-DKgjzz7B.js';
|
|
5
3
|
import { Address, Hex } from 'viem';
|
|
6
|
-
|
|
4
|
+
import { l as Call, I as Implementation, S as SmartAccountsEnvironment, m as DeployParams } from '../types-BLYWtcR3.js';
|
|
5
|
+
export { d as deploySmartAccountsEnvironment, o as overrideDeployedEnvironment } from '../smartAccountsEnvironment-egxuflDO.js';
|
|
7
6
|
export { DELEGATION_TYPEHASH } from '@metamask/delegation-core';
|
|
8
7
|
import '@metamask/delegation-abis';
|
|
9
8
|
import 'viem/account-abstraction';
|
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-WPVSFOQM.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-QCULIK3O.mjs";
|
|
12
|
+
import "../chunk-WV2R7BXP.mjs";
|
|
13
13
|
import {
|
|
14
14
|
encodeBatchExecution,
|
|
15
15
|
encodeExecutionCalldata,
|
|
@@ -18,21 +18,23 @@ import {
|
|
|
18
18
|
} from "../chunk-TPBFVDVM.mjs";
|
|
19
19
|
import {
|
|
20
20
|
CaveatBuilder,
|
|
21
|
+
DELEGATION_ABI_TYPE,
|
|
21
22
|
DELEGATION_ABI_TYPE_COMPONENTS,
|
|
22
23
|
DELEGATION_ARRAY_ABI_TYPE,
|
|
23
24
|
DELEGATION_TYPEHASH,
|
|
24
25
|
SIGNABLE_DELEGATION_TYPED_DATA,
|
|
25
26
|
createCaveatBuilder,
|
|
27
|
+
decodeDelegation,
|
|
26
28
|
decodeDelegations,
|
|
27
|
-
|
|
29
|
+
encodeDelegation,
|
|
28
30
|
encodeDelegations,
|
|
29
|
-
|
|
30
|
-
getDelegationHashOffchain,
|
|
31
|
+
hashDelegation,
|
|
31
32
|
toDelegation,
|
|
32
33
|
toDelegationStruct
|
|
33
|
-
} from "../chunk-
|
|
34
|
+
} from "../chunk-C5ZEEH2Z.mjs";
|
|
34
35
|
export {
|
|
35
36
|
CaveatBuilder,
|
|
37
|
+
DELEGATION_ABI_TYPE,
|
|
36
38
|
DELEGATION_ABI_TYPE_COMPONENTS,
|
|
37
39
|
DELEGATION_ARRAY_ABI_TYPE,
|
|
38
40
|
DELEGATION_TYPEHASH,
|
|
@@ -40,19 +42,19 @@ export {
|
|
|
40
42
|
SIGNABLE_USER_OP_TYPED_DATA,
|
|
41
43
|
SIGNATURE_ABI_PARAMS,
|
|
42
44
|
createCaveatBuilder,
|
|
45
|
+
decodeDelegation,
|
|
43
46
|
decodeDelegations,
|
|
44
|
-
decodePermissionContexts,
|
|
45
47
|
deploySmartAccountsEnvironment,
|
|
46
48
|
encodeBatchExecution,
|
|
47
49
|
encodeCalls,
|
|
48
50
|
encodeCallsForCaller,
|
|
51
|
+
encodeDelegation,
|
|
49
52
|
encodeDelegations,
|
|
50
53
|
encodeExecutionCalldata,
|
|
51
54
|
encodeExecutionCalldatas,
|
|
52
|
-
encodePermissionContexts,
|
|
53
55
|
encodeSingleExecution,
|
|
54
56
|
getCounterfactualAccountData,
|
|
55
|
-
|
|
57
|
+
hashDelegation,
|
|
56
58
|
overrideDeployedEnvironment,
|
|
57
59
|
toDelegation,
|
|
58
60
|
toDelegationStruct
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metamask/smart-accounts-kit",
|
|
3
|
-
"version": "0.4.0-beta.
|
|
3
|
+
"version": "0.4.0-beta.2",
|
|
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)",
|
|
@@ -106,13 +106,8 @@
|
|
|
106
106
|
"test:watch": "vitest watch",
|
|
107
107
|
"format": "prettier --write \"src/**/*.{ts,tsx}\" --ignore-path .prettierignore",
|
|
108
108
|
"lint": "yarn lint:eslint",
|
|
109
|
-
"lint:complete": "yarn lint:eslint && yarn lint:constraints && yarn lint:misc --check && yarn lint:dependencies --check && yarn lint:changelog",
|
|
110
|
-
"lint:changelog": "auto-changelog validate --prettier",
|
|
111
|
-
"lint:constraints": "yarn constraints",
|
|
112
|
-
"lint:dependencies": "depcheck && yarn dedupe",
|
|
113
109
|
"lint:eslint": "eslint . --cache --ext js,ts",
|
|
114
|
-
"lint:fix": "yarn lint:eslint --fix
|
|
115
|
-
"lint:misc": "prettier '**/*.json' '**/*.md' '**/*.yml' '!.yarnrc.yml' --ignore-path .gitignore --no-error-on-unmatched-pattern"
|
|
110
|
+
"lint:fix": "yarn lint:eslint --fix"
|
|
116
111
|
},
|
|
117
112
|
"publishConfig": {
|
|
118
113
|
"access": "public",
|
|
@@ -130,9 +125,9 @@
|
|
|
130
125
|
},
|
|
131
126
|
"dependencies": {
|
|
132
127
|
"@metamask/7715-permission-types": "^0.5.0",
|
|
133
|
-
"@metamask/delegation-abis": "^0.
|
|
134
|
-
"@metamask/delegation-core": "^0.
|
|
135
|
-
"@metamask/delegation-deployments": "^0.
|
|
128
|
+
"@metamask/delegation-abis": "^0.12.0-beta.0",
|
|
129
|
+
"@metamask/delegation-core": "^0.4.0",
|
|
130
|
+
"@metamask/delegation-deployments": "^0.17.0",
|
|
136
131
|
"buffer": "^6.0.3",
|
|
137
132
|
"webauthn-p256": "^0.0.10"
|
|
138
133
|
},
|
|
@@ -147,7 +142,7 @@
|
|
|
147
142
|
"@types/sinon": "^17.0.3",
|
|
148
143
|
"@vitest/coverage-v8": "3.2.4",
|
|
149
144
|
"dotenv": "^16.3.1",
|
|
150
|
-
"eslint": "^9.
|
|
145
|
+
"eslint": "^9.39.2",
|
|
151
146
|
"eslint-config-prettier": "^9.1.0",
|
|
152
147
|
"eslint-import-resolver-typescript": "^3.6.1",
|
|
153
148
|
"eslint-plugin-import-x": "^4.0.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/DelegationFramework/utils.ts","../src/DelegationFramework/DeleGatorCore/read.ts","../src/DelegationFramework/DeleGatorCore/methods/getDelegationManager.ts","../src/DelegationFramework/DeleGatorCore/methods/getDeposit.ts","../src/DelegationFramework/DeleGatorCore/methods/getEntryPoint.ts","../src/DelegationFramework/DeleGatorCore/methods/getNonce.ts","../src/DelegationFramework/DeleGatorCore/methods/getProxyImplementation.ts","../src/DelegationFramework/DeleGatorCore/methods/getProxyVersion.ts","../src/DelegationFramework/DeleGatorCore/methods/isValidSignature.ts","../src/DelegationFramework/HybridDeleGator/methods/initialize.ts","../src/DelegationFramework/HybridDeleGator/encode.ts","../src/DelegationFramework/HybridDeleGator/methods/addKey.ts","../src/DelegationFramework/HybridDeleGator/methods/reinitialize.ts","../src/DelegationFramework/HybridDeleGator/methods/removeKey.ts","../src/DelegationFramework/HybridDeleGator/methods/updateSigners.ts","../src/DelegationFramework/MultiSigDeleGator/methods/initialize.ts","../src/DelegationFramework/MultiSigDeleGator/encode.ts","../src/DelegationFramework/MultiSigDeleGator/methods/addSigner.ts","../src/DelegationFramework/MultiSigDeleGator/methods/reinitialize.ts","../src/DelegationFramework/MultiSigDeleGator/methods/removeSigner.ts","../src/DelegationFramework/MultiSigDeleGator/methods/replaceSigner.ts","../src/DelegationFramework/MultiSigDeleGator/methods/updateMultiSigParameters.ts","../src/DelegationFramework/MultiSigDeleGator/methods/updateThreshold.ts","../src/DelegationFramework/SimpleFactory/methods/create2Deploy.ts","../src/DelegationFramework/SimpleFactory/encode.ts","../src/DelegationFramework/DeleGatorCore/methods/execute.ts","../src/DelegationFramework/DeleGatorCore/methods/executeWithMode.ts","../src/DelegationFramework/DeleGatorCore/encode.ts","../src/DelegationFramework/DeleGatorCore/methods/disableDelegation.ts","../src/DelegationFramework/DeleGatorCore/methods/enableDelegation.ts","../src/DelegationFramework/DeleGatorCore/methods/upgradeToAndCall.ts"],"sourcesContent":["import { ERC1967Proxy } from '@metamask/delegation-abis';\nimport type { Abi, Address, Client, Hex } from 'viem';\nimport { encodeDeployData } from 'viem';\nimport { getCode } from 'viem/actions';\n\nimport { getProxyImplementation } from './DeleGatorCore/read';\n\n// Where a function signature is duplicated across contracts, we need to narrow\n// the ABI type passed as the `simulateContract` generic argument. Without this,\n// the `simulate()` return type would not match, despite being functionally\n// identical.\nexport type NarrowAbiToFunction<\n TAbi extends Abi,\n FunctionName extends string,\n> = [\n Extract<\n TAbi[number],\n {\n type: 'function';\n name: FunctionName;\n }\n >[],\n];\n\n/**\n * Checks if a contract is deployed at the given address.\n *\n * @param options - The options for checking contract deployment.\n * @param options.client - The client to use for the query.\n * @param options.contractAddress - The address to check for contract deployment.\n * @returns A boolean indicating whether a contract is deployed at the address.\n * @description This function checks if there is actual bytecode at the provided contract address.\n */\nexport async function isContractDeployed({\n client,\n contractAddress,\n}: {\n client: Client;\n contractAddress: Address;\n}): Promise<boolean> {\n const code = await getCode(client, {\n address: contractAddress,\n });\n return Boolean(code) && code !== '0x';\n}\n\n/**\n * Checks if a proxy contract at the given address points to the expected implementation.\n *\n * @param options - The options for checking the implementation.\n * @param options.client - The client to use for the query.\n * @param options.contractAddress - The address of the proxy contract.\n * @param options.expectedImplementationAddress - The address that the implementation should match.\n * @returns A boolean indicating whether the implementation matches the expected one.\n * @description This function verifies both that the contract exists and that its implementation address matches.\n */\nexport async function isImplementationExpected({\n client,\n contractAddress,\n expectedImplementationAddress,\n}: {\n client: Client;\n contractAddress: Address;\n expectedImplementationAddress: Address;\n}): Promise<boolean> {\n if (!(await isContractDeployed({ client, contractAddress }))) {\n return false;\n }\n\n const implementationAddress = await getProxyImplementation({\n client,\n contractAddress,\n });\n\n return implementationAddress === expectedImplementationAddress;\n}\n\n/**\n * Encodes the \"creation code\" for an ERC1967Proxy contract that will be deployed via CREATE2 with the given implementation and initialization code.\n *\n * @param options - The options for encoding the proxy creation code.\n * @param options.implementationAddress - The address of the implementation contract for the proxy to use.\n * @param options.initcode - The calldata for the initialization function of the implementation contract.\n * @returns The encoded creation code for the proxy.\n * @description This function prepares the deployment bytecode for an ERC1967 proxy pointing to the given implementation.\n */\nexport const encodeProxyCreationCode = ({\n implementationAddress,\n initcode,\n}: {\n implementationAddress: Address;\n initcode: Hex;\n}): Hex =>\n encodeDeployData({\n abi: ERC1967Proxy.abi,\n args: [implementationAddress, initcode],\n bytecode: ERC1967Proxy.bytecode,\n });\n","import { read as getDelegationManager } from './methods/getDelegationManager';\nimport { read as getDeposit } from './methods/getDeposit';\nimport { read as getEntryPoint } from './methods/getEntryPoint';\nimport { read as getNonce } from './methods/getNonce';\nimport { read as getProxyImplementation } from './methods/getProxyImplementation';\nimport { read as getProxyVersion } from './methods/getProxyVersion';\nimport { read as isValidSignature } from './methods/isValidSignature';\n\nexport {\n getDelegationManager,\n getDeposit,\n getEntryPoint,\n getNonce,\n getProxyImplementation,\n getProxyVersion,\n isValidSignature,\n};\n","import { DeleGatorCore } from '@metamask/delegation-abis';\nimport type { Address, Client } from 'viem';\nimport { readContract } from 'viem/actions';\n\nexport type ReadGetDelegationManagerParameters = {\n client: Client;\n contractAddress: Address;\n};\n\nexport const read = async ({\n client,\n contractAddress,\n}: ReadGetDelegationManagerParameters) =>\n await readContract(client, {\n address: contractAddress,\n abi: DeleGatorCore.abi,\n functionName: 'delegationManager',\n });\n","import { DeleGatorCore } from '@metamask/delegation-abis';\nimport type { Address, Client } from 'viem';\nimport { readContract } from 'viem/actions';\n\nexport type ReadGetDepositParameters = {\n client: Client;\n contractAddress: Address;\n};\n\nexport const read = async ({\n client,\n contractAddress,\n}: ReadGetDepositParameters) =>\n await readContract(client, {\n address: contractAddress,\n abi: DeleGatorCore.abi,\n functionName: 'getDeposit',\n });\n","import { DeleGatorCore } from '@metamask/delegation-abis';\nimport type { Address, Client } from 'viem';\nimport { readContract } from 'viem/actions';\n\nexport type ReadGetEntryPointParameters = {\n client: Client;\n contractAddress: Address;\n};\n\nexport const read = async ({\n client,\n contractAddress,\n}: ReadGetEntryPointParameters) =>\n await readContract(client, {\n address: contractAddress,\n abi: DeleGatorCore.abi,\n functionName: 'entryPoint',\n });\n","import { DeleGatorCore } from '@metamask/delegation-abis';\nimport type { Address, Client } from 'viem';\nimport { readContract } from 'viem/actions';\n\nexport type ReadGetNonceParameters = {\n client: Client;\n contractAddress: Address;\n key?: bigint;\n};\n\nexport const read = async ({\n client,\n contractAddress,\n key,\n}: ReadGetNonceParameters) =>\n await readContract(client, {\n address: contractAddress,\n abi: DeleGatorCore.abi,\n functionName: 'getNonce',\n args: key ? [key] : undefined,\n });\n","import { DeleGatorCore } from '@metamask/delegation-abis';\nimport type { Address, Client } from 'viem';\nimport { readContract } from 'viem/actions';\n\nexport type ReadGetProxyImplementationParameters = {\n client: Client;\n contractAddress: Address;\n};\n\nexport const read = async ({\n client,\n contractAddress,\n}: ReadGetProxyImplementationParameters) =>\n await readContract(client, {\n address: contractAddress,\n abi: DeleGatorCore.abi,\n functionName: 'getImplementation',\n });\n","import { DeleGatorCore } from '@metamask/delegation-abis';\nimport type { Address, Client } from 'viem';\nimport { readContract } from 'viem/actions';\n\nexport type ReadGetProxyVersionParameters = {\n client: Client;\n contractAddress: Address;\n};\n\nexport const read = async ({\n client,\n contractAddress,\n}: ReadGetProxyVersionParameters) =>\n await readContract(client, {\n address: contractAddress,\n abi: DeleGatorCore.abi,\n functionName: 'getInitializedVersion',\n });\n","import { DeleGatorCore } from '@metamask/delegation-abis';\nimport type { Address, Hex, Client } from 'viem';\nimport { encodeFunctionData } from 'viem';\nimport { readContract } from 'viem/actions';\n\nexport type IsValidSignatureParameters = {\n client: Client;\n contractAddress: Address;\n hash: Hex;\n signature: Hex;\n};\n\nexport type EncodeIsValidSignatureParameters = {\n hash: Hex;\n signature: Hex;\n};\n\nexport const read = async ({\n client,\n contractAddress,\n hash,\n signature,\n}: IsValidSignatureParameters) =>\n await readContract(client, {\n address: contractAddress,\n abi: DeleGatorCore.abi,\n functionName: 'isValidSignature',\n args: [hash, signature],\n });\n\nexport const encode = ({\n hash,\n signature,\n}: EncodeIsValidSignatureParameters) => {\n return encodeFunctionData({\n abi: DeleGatorCore.abi,\n functionName: 'isValidSignature',\n args: [hash, signature],\n });\n};\n","import { HybridDeleGator } from '@metamask/delegation-abis';\nimport type { Address, Client } from 'viem';\nimport { encodeFunctionData } from 'viem';\nimport { simulateContract, writeContract } from 'viem/actions';\n\nimport type { P256Owner, InitializedClient } from '../../types';\n\nexport type EncodeInitializeParameters = {\n eoaOwner: Address;\n p256Owners: P256Owner[];\n};\n\nexport type SimulateInitializeParameters = {\n client: Client;\n hybridDeleGatorAddress: Address;\n} & EncodeInitializeParameters;\n\nexport type ExecuteInitializeParameters = {\n client: InitializedClient;\n hybridDeleGatorAddress: Address;\n} & EncodeInitializeParameters;\n\nexport const simulate = async ({\n client,\n hybridDeleGatorAddress,\n eoaOwner,\n p256Owners,\n}: SimulateInitializeParameters) => {\n return simulateContract(client, {\n address: hybridDeleGatorAddress,\n abi: HybridDeleGator.abi,\n functionName: 'initialize',\n args: [\n eoaOwner,\n p256Owners.map((p256Owner) => p256Owner.keyId),\n p256Owners.map((p256Owner) => p256Owner.x),\n p256Owners.map((p256Owner) => p256Owner.y),\n ],\n });\n};\n\nexport const execute = async ({\n client,\n hybridDeleGatorAddress,\n eoaOwner,\n p256Owners,\n}: ExecuteInitializeParameters) => {\n const { request } = await simulate({\n client,\n hybridDeleGatorAddress,\n eoaOwner,\n p256Owners,\n });\n\n return writeContract(client, request);\n};\n\nexport const encode = ({\n eoaOwner,\n p256Owners,\n}: EncodeInitializeParameters) => {\n return encodeFunctionData({\n abi: HybridDeleGator.abi,\n functionName: 'initialize',\n args: [\n eoaOwner,\n p256Owners.map((p256Owner) => p256Owner.keyId),\n p256Owners.map((p256Owner) => p256Owner.x),\n p256Owners.map((p256Owner) => p256Owner.y),\n ],\n });\n};\n","import { encode as addKey } from './methods/addKey';\nimport { encode as initializeHybridDeleGator } from './methods/initialize';\nimport { encode as reinitializeHybridDeleGator } from './methods/reinitialize';\nimport { encode as removeKey } from './methods/removeKey';\nimport { encode as updateSigners } from './methods/updateSigners';\n\nexport {\n addKey,\n initializeHybridDeleGator,\n reinitializeHybridDeleGator,\n removeKey,\n updateSigners,\n};\n","import { HybridDeleGator } from '@metamask/delegation-abis';\nimport type { Address, Client } from 'viem';\nimport { encodeFunctionData } from 'viem';\nimport { simulateContract, writeContract } from 'viem/actions';\n\nimport type { P256Owner, InitializedClient } from '../../types';\n\nexport type EncodeAddKeyParameters = {\n p256Owner: P256Owner;\n};\n\nexport type SimulateAddKeyParameters = {\n client: Client;\n hybridDeleGatorAddress: Address;\n} & EncodeAddKeyParameters;\n\nexport type ExecuteAddKeyParameters = {\n client: InitializedClient;\n hybridDeleGatorAddress: Address;\n} & EncodeAddKeyParameters;\n\nexport const simulate = async ({\n client,\n hybridDeleGatorAddress,\n p256Owner,\n}: SimulateAddKeyParameters) => {\n return simulateContract(client, {\n address: hybridDeleGatorAddress,\n abi: HybridDeleGator.abi,\n functionName: 'addKey',\n args: [p256Owner.keyId, p256Owner.x, p256Owner.y],\n });\n};\n\nexport const execute = async ({\n client,\n hybridDeleGatorAddress,\n p256Owner,\n}: ExecuteAddKeyParameters) => {\n const { request } = await simulate({\n client,\n hybridDeleGatorAddress,\n p256Owner,\n });\n\n return writeContract(client, request);\n};\n\nexport const encode = ({ p256Owner }: EncodeAddKeyParameters) => {\n return encodeFunctionData({\n abi: HybridDeleGator.abi,\n functionName: 'addKey',\n args: [p256Owner.keyId, p256Owner.x, p256Owner.y],\n });\n};\n","import { HybridDeleGator } from '@metamask/delegation-abis';\nimport type { Address, Client } from 'viem';\nimport { encodeFunctionData } from 'viem';\nimport { simulateContract, writeContract } from 'viem/actions';\n\nimport type { P256Owner, InitializedClient } from '../../types';\n\nexport type EncodeReinitializeParameters = {\n version: number;\n eoaOwner: Address;\n p256Owners: P256Owner[];\n removeExistingP256Owners: boolean;\n};\n\nexport type SimulateReinitializeParameters = {\n client: Client;\n hybridDeleGatorAddress: Address;\n} & EncodeReinitializeParameters;\n\nexport type ExecuteReinitializeParameters = {\n client: InitializedClient;\n hybridDeleGatorAddress: Address;\n} & EncodeReinitializeParameters;\n\nexport const simulate = async ({\n client,\n hybridDeleGatorAddress,\n version,\n eoaOwner,\n p256Owners,\n removeExistingP256Owners,\n}: SimulateReinitializeParameters) => {\n return simulateContract(client, {\n address: hybridDeleGatorAddress,\n abi: HybridDeleGator.abi,\n functionName: 'reinitialize',\n args: [\n version,\n eoaOwner,\n p256Owners.map((p256Owner) => p256Owner.keyId),\n p256Owners.map((p256Owner) => p256Owner.x),\n p256Owners.map((p256Owner) => p256Owner.y),\n removeExistingP256Owners,\n ],\n });\n};\n\nexport const execute = async ({\n client,\n hybridDeleGatorAddress,\n version,\n eoaOwner,\n p256Owners,\n removeExistingP256Owners,\n}: ExecuteReinitializeParameters) => {\n const { request } = await simulate({\n client,\n hybridDeleGatorAddress,\n version,\n eoaOwner,\n p256Owners,\n removeExistingP256Owners,\n });\n\n return writeContract(client, request);\n};\n\nexport const encode = ({\n version,\n eoaOwner,\n p256Owners,\n removeExistingP256Owners,\n}: EncodeReinitializeParameters) => {\n return encodeFunctionData({\n abi: HybridDeleGator.abi,\n functionName: 'reinitialize',\n args: [\n version,\n eoaOwner,\n p256Owners.map((p256Owner) => p256Owner.keyId),\n p256Owners.map((p256Owner) => p256Owner.x),\n p256Owners.map((p256Owner) => p256Owner.y),\n removeExistingP256Owners,\n ],\n });\n};\n","import { HybridDeleGator } from '@metamask/delegation-abis';\nimport type { Address, Client } from 'viem';\nimport { encodeFunctionData } from 'viem';\nimport { simulateContract, writeContract } from 'viem/actions';\n\nimport type { InitializedClient } from '../../types';\n\nexport type EncodeRemoveKeyParameters = {\n keyId: string;\n};\n\nexport type SimulateRemoveKeyParameters = {\n client: Client;\n hybridDeleGatorAddress: Address;\n} & EncodeRemoveKeyParameters;\n\nexport type ExecuteRemoveKeyParameters = {\n client: InitializedClient;\n hybridDeleGatorAddress: Address;\n} & EncodeRemoveKeyParameters;\n\nexport const simulate = async ({\n client,\n hybridDeleGatorAddress,\n keyId,\n}: SimulateRemoveKeyParameters) => {\n return simulateContract(client, {\n address: hybridDeleGatorAddress,\n abi: HybridDeleGator.abi,\n functionName: 'removeKey',\n args: [keyId],\n });\n};\n\nexport const execute = async ({\n client,\n hybridDeleGatorAddress,\n keyId,\n}: ExecuteRemoveKeyParameters) => {\n const { request } = await simulate({\n client,\n hybridDeleGatorAddress,\n keyId,\n });\n\n return writeContract(client, request);\n};\n\nexport const encode = ({ keyId }: EncodeRemoveKeyParameters) => {\n return encodeFunctionData({\n abi: HybridDeleGator.abi,\n functionName: 'removeKey',\n args: [keyId],\n });\n};\n","import { HybridDeleGator } from '@metamask/delegation-abis';\nimport type { Address, Client } from 'viem';\nimport { encodeFunctionData } from 'viem';\nimport { simulateContract, writeContract } from 'viem/actions';\n\nimport type { P256Owner, InitializedClient } from '../../types';\n\nexport type EncodeUpdateSignersParameters = {\n eoaOwner: Address;\n p256Owners: P256Owner[];\n};\n\nexport type SimulateUpdateSignersParameters = {\n client: Client;\n hybridDeleGatorAddress: Address;\n} & EncodeUpdateSignersParameters;\n\nexport type ExecuteUpdateSignersParameters = {\n client: InitializedClient;\n hybridDeleGatorAddress: Address;\n} & EncodeUpdateSignersParameters;\n\nexport const simulate = async ({\n client,\n hybridDeleGatorAddress,\n eoaOwner,\n p256Owners,\n}: SimulateUpdateSignersParameters) => {\n return simulateContract(client, {\n address: hybridDeleGatorAddress,\n abi: HybridDeleGator.abi,\n functionName: 'updateSigners',\n args: [\n eoaOwner,\n p256Owners.map((p256Owner) => p256Owner.keyId),\n p256Owners.map((p256Owner) => p256Owner.x),\n p256Owners.map((p256Owner) => p256Owner.y),\n ],\n });\n};\n\nexport const execute = async ({\n client,\n hybridDeleGatorAddress,\n eoaOwner,\n p256Owners,\n}: ExecuteUpdateSignersParameters) => {\n const { request } = await simulate({\n client,\n hybridDeleGatorAddress,\n eoaOwner,\n p256Owners,\n });\n\n return writeContract(client, request);\n};\n\nexport const encode = ({\n eoaOwner,\n p256Owners,\n}: EncodeUpdateSignersParameters) => {\n return encodeFunctionData({\n abi: HybridDeleGator.abi,\n functionName: 'updateSigners',\n args: [\n eoaOwner,\n p256Owners.map((p256Owner) => p256Owner.keyId),\n p256Owners.map((p256Owner) => p256Owner.x),\n p256Owners.map((p256Owner) => p256Owner.y),\n ],\n });\n};\n","import { MultiSigDeleGator } from '@metamask/delegation-abis';\nimport type { Address, Client } from 'viem';\nimport { encodeFunctionData } from 'viem';\nimport { simulateContract, writeContract } from 'viem/actions';\n\nimport type { InitializedClient } from '../../types';\n\nexport type EncodeInitializeParameters = {\n owners: Address[];\n threshold: bigint;\n};\n\nexport type SimulateInitializeParameters = {\n client: Client;\n multiSigDeleGatorAddress: Address;\n} & EncodeInitializeParameters;\n\nexport type ExecuteInitializeParameters = {\n client: InitializedClient;\n multiSigDeleGatorAddress: Address;\n} & EncodeInitializeParameters;\n\nexport const simulate = async ({\n client,\n multiSigDeleGatorAddress,\n owners,\n threshold,\n}: SimulateInitializeParameters) => {\n return simulateContract(client, {\n address: multiSigDeleGatorAddress,\n abi: MultiSigDeleGator.abi,\n functionName: 'initialize',\n args: [owners, threshold],\n });\n};\n\nexport const execute = async ({\n client,\n multiSigDeleGatorAddress,\n owners,\n threshold,\n}: ExecuteInitializeParameters) => {\n const { request } = await simulate({\n client,\n multiSigDeleGatorAddress,\n owners,\n threshold,\n });\n\n return writeContract(client, request);\n};\n\nexport const encode = ({ owners, threshold }: EncodeInitializeParameters) => {\n return encodeFunctionData({\n abi: MultiSigDeleGator.abi,\n functionName: 'initialize',\n args: [owners, threshold],\n });\n};\n","import { encode as addSigner } from './methods/addSigner';\nimport { encode as initializeMultiSigDeleGator } from './methods/initialize';\nimport { encode as reinitializeMultiSigDeleGator } from './methods/reinitialize';\nimport { encode as removeSigner } from './methods/removeSigner';\nimport { encode as replaceSigner } from './methods/replaceSigner';\nimport { encode as updateMultiSigParameters } from './methods/updateMultiSigParameters';\nimport { encode as updateThreshold } from './methods/updateThreshold';\n\nexport {\n addSigner,\n initializeMultiSigDeleGator,\n reinitializeMultiSigDeleGator,\n removeSigner,\n replaceSigner,\n updateThreshold,\n updateMultiSigParameters,\n};\n","import { MultiSigDeleGator } from '@metamask/delegation-abis';\nimport type { Address, Client } from 'viem';\nimport { encodeFunctionData } from 'viem';\nimport { simulateContract, writeContract } from 'viem/actions';\n\nimport type { InitializedClient } from '../../types';\n\nexport type EncodeAddSignerParameters = {\n signer: Address;\n};\n\nexport type SimulateAddSignerParameters = {\n client: Client;\n multiSigDeleGatorAddress: Address;\n} & EncodeAddSignerParameters;\n\nexport type ExecuteAddSignerParameters = {\n client: InitializedClient;\n multiSigDeleGatorAddress: Address;\n} & EncodeAddSignerParameters;\n\nexport const simulate = async ({\n client,\n multiSigDeleGatorAddress,\n signer,\n}: SimulateAddSignerParameters) => {\n return simulateContract(client, {\n address: multiSigDeleGatorAddress,\n abi: MultiSigDeleGator.abi,\n functionName: 'addSigner',\n args: [signer],\n });\n};\n\nexport const execute = async ({\n client,\n multiSigDeleGatorAddress,\n signer,\n}: ExecuteAddSignerParameters) => {\n const { request } = await simulate({\n client,\n multiSigDeleGatorAddress,\n signer,\n });\n\n return writeContract(client, request);\n};\n\nexport const encode = ({ signer }: EncodeAddSignerParameters) => {\n return encodeFunctionData({\n abi: MultiSigDeleGator.abi,\n functionName: 'addSigner',\n args: [signer],\n });\n};\n","import { MultiSigDeleGator } from '@metamask/delegation-abis';\nimport type { Address, Client } from 'viem';\nimport { encodeFunctionData } from 'viem';\nimport { simulateContract, writeContract } from 'viem/actions';\n\nimport type { InitializedClient } from '../../types';\n\nexport type EncodeReinitializeParameters = {\n version: bigint;\n owners: Address[];\n threshold: bigint;\n removeExistingOwners: boolean;\n};\n\nexport type SimulateReinitializeParameters = {\n client: Client;\n multiSigDeleGatorAddress: Address;\n} & EncodeReinitializeParameters;\n\nexport type ExecuteReinitializeParameters = {\n client: InitializedClient;\n multiSigDeleGatorAddress: Address;\n} & EncodeReinitializeParameters;\n\nexport const simulate = async ({\n client,\n multiSigDeleGatorAddress,\n version,\n owners,\n threshold,\n removeExistingOwners,\n}: SimulateReinitializeParameters) => {\n return simulateContract(client, {\n address: multiSigDeleGatorAddress,\n abi: MultiSigDeleGator.abi,\n functionName: 'reinitialize',\n args: [version, owners, threshold, removeExistingOwners],\n });\n};\n\nexport const execute = async ({\n client,\n multiSigDeleGatorAddress,\n version,\n owners,\n threshold,\n removeExistingOwners,\n}: ExecuteReinitializeParameters) => {\n const { request } = await simulate({\n client,\n multiSigDeleGatorAddress,\n version,\n owners,\n threshold,\n removeExistingOwners,\n });\n\n return writeContract(client, request);\n};\n\nexport const encode = ({\n version,\n owners,\n threshold,\n removeExistingOwners,\n}: EncodeReinitializeParameters) => {\n return encodeFunctionData({\n abi: MultiSigDeleGator.abi,\n functionName: 'reinitialize',\n args: [version, owners, threshold, removeExistingOwners],\n });\n};\n","import { MultiSigDeleGator } from '@metamask/delegation-abis';\nimport type { Address, Client } from 'viem';\nimport { encodeFunctionData } from 'viem';\nimport { simulateContract, writeContract } from 'viem/actions';\n\nimport type { InitializedClient } from '../../types';\n\nexport type EncodeRemoveSignerParameters = {\n signer: Address;\n};\n\nexport type SimulateRemoveSignerParameters = {\n client: Client;\n multiSigDeleGatorAddress: Address;\n} & EncodeRemoveSignerParameters;\n\nexport type ExecuteRemoveSignerParameters = {\n client: InitializedClient;\n multiSigDeleGatorAddress: Address;\n} & EncodeRemoveSignerParameters;\n\nexport const simulate = async ({\n client,\n multiSigDeleGatorAddress,\n signer,\n}: SimulateRemoveSignerParameters) => {\n return simulateContract(client, {\n address: multiSigDeleGatorAddress,\n abi: MultiSigDeleGator.abi,\n functionName: 'removeSigner',\n args: [signer],\n });\n};\n\nexport const execute = async ({\n client,\n multiSigDeleGatorAddress,\n signer,\n}: ExecuteRemoveSignerParameters) => {\n const { request } = await simulate({\n client,\n multiSigDeleGatorAddress,\n signer,\n });\n\n return writeContract(client, request);\n};\n\nexport const encode = ({ signer }: EncodeRemoveSignerParameters) => {\n return encodeFunctionData({\n abi: MultiSigDeleGator.abi,\n functionName: 'removeSigner',\n args: [signer],\n });\n};\n","import { MultiSigDeleGator } from '@metamask/delegation-abis';\nimport type { Address, Client } from 'viem';\nimport { encodeFunctionData } from 'viem';\nimport { simulateContract, writeContract } from 'viem/actions';\n\nimport type { InitializedClient } from '../../types';\n\nexport type EncodeReplaceSignerParameters = {\n oldSigner: Address;\n newSigner: Address;\n};\n\nexport type SimulateReplaceSignerParameters = {\n client: Client;\n multiSigDeleGatorAddress: Address;\n} & EncodeReplaceSignerParameters;\n\nexport type ExecuteReplaceSignerParameters = {\n client: InitializedClient;\n multiSigDeleGatorAddress: Address;\n} & EncodeReplaceSignerParameters;\n\nexport const simulate = async ({\n client,\n multiSigDeleGatorAddress,\n oldSigner,\n newSigner,\n}: SimulateReplaceSignerParameters) => {\n return simulateContract(client, {\n address: multiSigDeleGatorAddress,\n abi: MultiSigDeleGator.abi,\n functionName: 'replaceSigner',\n args: [oldSigner, newSigner],\n });\n};\n\nexport const execute = async ({\n client,\n multiSigDeleGatorAddress,\n oldSigner,\n newSigner,\n}: ExecuteReplaceSignerParameters) => {\n const { request } = await simulate({\n client,\n multiSigDeleGatorAddress,\n oldSigner,\n newSigner,\n });\n\n return writeContract(client, request);\n};\n\nexport const encode = ({\n oldSigner,\n newSigner,\n}: EncodeReplaceSignerParameters) => {\n return encodeFunctionData({\n abi: MultiSigDeleGator.abi,\n functionName: 'replaceSigner',\n args: [oldSigner, newSigner],\n });\n};\n","import { MultiSigDeleGator } from '@metamask/delegation-abis';\nimport type { Address, Client } from 'viem';\nimport { encodeFunctionData } from 'viem';\nimport { simulateContract, writeContract } from 'viem/actions';\n\nimport type { InitializedClient } from '../../types';\n\nexport type EncodeUpdateMultiSigParametersParameters = {\n owners: Address[];\n threshold: bigint;\n removeExistingOwners: boolean;\n};\n\nexport type SimulateUpdateMultiSigParametersParameters = {\n client: Client;\n multiSigDeleGatorAddress: Address;\n} & EncodeUpdateMultiSigParametersParameters;\n\nexport type ExecuteUpdateMultiSigParametersParameters = {\n client: InitializedClient;\n multiSigDeleGatorAddress: Address;\n} & EncodeUpdateMultiSigParametersParameters;\n\nexport const simulate = async ({\n client,\n multiSigDeleGatorAddress,\n owners,\n threshold,\n removeExistingOwners,\n}: SimulateUpdateMultiSigParametersParameters) => {\n return simulateContract(client, {\n address: multiSigDeleGatorAddress,\n abi: MultiSigDeleGator.abi,\n functionName: 'updateMultiSigParameters',\n args: [owners, threshold, removeExistingOwners],\n });\n};\n\nexport const execute = async ({\n client,\n multiSigDeleGatorAddress,\n owners,\n threshold,\n removeExistingOwners,\n}: ExecuteUpdateMultiSigParametersParameters) => {\n const { request } = await simulate({\n client,\n multiSigDeleGatorAddress,\n owners,\n threshold,\n removeExistingOwners,\n });\n\n return writeContract(client, request);\n};\n\nexport const encode = ({\n owners,\n threshold,\n removeExistingOwners,\n}: EncodeUpdateMultiSigParametersParameters) => {\n return encodeFunctionData({\n abi: MultiSigDeleGator.abi,\n functionName: 'updateMultiSigParameters',\n args: [owners, threshold, removeExistingOwners],\n });\n};\n","import { MultiSigDeleGator } from '@metamask/delegation-abis';\nimport type { Address, Client } from 'viem';\nimport { encodeFunctionData } from 'viem';\nimport { simulateContract, writeContract } from 'viem/actions';\n\nimport type { InitializedClient } from '../../types';\n\nexport type EncodeUpdateThresholdParameters = {\n threshold: bigint;\n};\n\nexport type SimulateUpdateThresholdParameters = {\n client: Client;\n multiSigDeleGatorAddress: Address;\n} & EncodeUpdateThresholdParameters;\n\nexport type ExecuteUpdateThresholdParameters = {\n client: InitializedClient;\n multiSigDeleGatorAddress: Address;\n} & EncodeUpdateThresholdParameters;\n\nexport const simulate = async ({\n client,\n multiSigDeleGatorAddress,\n threshold,\n}: SimulateUpdateThresholdParameters) => {\n return simulateContract(client, {\n address: multiSigDeleGatorAddress,\n abi: MultiSigDeleGator.abi,\n functionName: 'updateThreshold',\n args: [threshold],\n });\n};\n\nexport const execute = async ({\n client,\n multiSigDeleGatorAddress,\n threshold,\n}: ExecuteUpdateThresholdParameters) => {\n const { request } = await simulate({\n client,\n multiSigDeleGatorAddress,\n threshold,\n });\n\n return writeContract(client, request);\n};\n\nexport const encode = ({ threshold }: EncodeUpdateThresholdParameters) => {\n return encodeFunctionData({\n abi: MultiSigDeleGator.abi,\n functionName: 'updateThreshold',\n args: [threshold],\n });\n};\n","import { SimpleFactory } from '@metamask/delegation-abis';\nimport type { Address, Hex, Client } from 'viem';\nimport { encodeFunctionData } from 'viem';\nimport { simulateContract, writeContract } from 'viem/actions';\n\nimport type { InitializedClient } from '../../types';\n\nexport type SimulateCreate2DeployParameters = {\n client: Client;\n factoryAddress: Address;\n creationCode: Hex;\n salt: Hex;\n};\n\nexport type ExecuteCreate2DeployParameters = {\n client: InitializedClient;\n factoryAddress: Address;\n creationCode: Hex;\n salt: Hex;\n};\n\nexport const simulate = async ({\n client,\n factoryAddress,\n creationCode,\n salt,\n}: SimulateCreate2DeployParameters) => {\n return simulateContract(client, {\n address: factoryAddress,\n abi: SimpleFactory.abi,\n functionName: 'deploy',\n args: [creationCode, salt],\n });\n};\n\nexport const encode = (creationCode: Hex, salt: Hex) => {\n return encodeFunctionData({\n abi: SimpleFactory.abi,\n functionName: 'deploy',\n args: [creationCode, salt],\n });\n};\n\nexport const execute = async ({\n client,\n factoryAddress,\n creationCode,\n salt,\n}: ExecuteCreate2DeployParameters) => {\n const { request } = await simulate({\n client,\n factoryAddress,\n creationCode,\n salt,\n });\n return writeContract(client, request);\n};\n","import { encode as create2Deploy } from './methods/create2Deploy';\n\nexport { create2Deploy };\n","import { DeleGatorCore } from '@metamask/delegation-abis';\nimport type { Address, Client } from 'viem';\nimport { encodeFunctionData } from 'viem';\nimport { simulateContract, writeContract } from 'viem/actions';\n\nimport type { ExecutionStruct } from '../../../executions';\nimport type { InitializedClient } from '../../types';\n\nexport type SimulateExecuteParameters = {\n client: Client;\n contractAddress: Address;\n execution: ExecutionStruct;\n};\n\nexport type EncodeExecuteParameters = {\n execution: ExecutionStruct;\n};\n\nexport type ExecuteExecuteParameters = {\n client: InitializedClient;\n contractAddress: Address;\n execution: ExecutionStruct;\n};\n\nexport const simulate = async ({\n client,\n contractAddress,\n execution,\n}: SimulateExecuteParameters) => {\n return simulateContract(client, {\n address: contractAddress,\n abi: DeleGatorCore.abi,\n functionName: 'execute',\n args: [execution],\n });\n};\n\nexport const execute = async ({\n client,\n contractAddress,\n execution,\n}: ExecuteExecuteParameters) => {\n const { request } = await simulate({\n client,\n contractAddress,\n execution,\n });\n\n return writeContract(client, request);\n};\n\nexport const encode = ({ execution }: EncodeExecuteParameters) => {\n return encodeFunctionData({\n abi: DeleGatorCore.abi,\n functionName: 'execute',\n args: [execution],\n });\n};\n","import { DeleGatorCore } from '@metamask/delegation-abis';\nimport { encodeFunctionData } from 'viem';\nimport type { Address, Client } from 'viem';\nimport { simulateContract, writeContract } from 'viem/actions';\n\nimport { encodeExecutionCalldata } from '../../../executions';\nimport type { ExecutionStruct, ExecutionMode } from '../../../executions';\nimport type { InitializedClient } from '../../types';\n\nexport type SimulateExecuteWithModeParameters = {\n client: Client;\n contractAddress: Address;\n} & EncodeExecuteWithModeParameters;\nexport type EncodeExecuteWithModeParameters = {\n mode: ExecutionMode;\n executions: ExecutionStruct[];\n};\n\nexport type ExecuteExecuteWithModeParameters = {\n client: InitializedClient;\n contractAddress: Address;\n} & EncodeExecuteWithModeParameters;\n\nexport const simulate = async ({\n client,\n contractAddress,\n mode,\n executions,\n}: SimulateExecuteWithModeParameters) => {\n return simulateContract(client, {\n address: contractAddress,\n abi: DeleGatorCore.abi,\n functionName: 'execute',\n args: [mode, encodeExecutionCalldata(executions)],\n });\n};\n\nexport const execute = async ({\n client,\n contractAddress,\n mode,\n executions,\n}: ExecuteExecuteWithModeParameters) => {\n const { request } = await simulate({\n client,\n contractAddress,\n mode,\n executions,\n });\n\n return writeContract(client, request);\n};\n\nexport const encode = ({\n mode,\n executions,\n}: EncodeExecuteWithModeParameters) => {\n return encodeFunctionData({\n abi: DeleGatorCore.abi,\n functionName: 'execute',\n args: [mode, encodeExecutionCalldata(executions)],\n });\n};\n","import { encode as disableDelegation } from './methods/disableDelegation';\nimport { encode as enableDelegation } from './methods/enableDelegation';\nimport { encode as execute } from './methods/execute';\nimport { encode as executeWithMode } from './methods/executeWithMode';\nimport { encode as isValidSignature } from './methods/isValidSignature';\nimport { encode as upgradeToAndCall } from './methods/upgradeToAndCall';\n\nexport {\n disableDelegation,\n enableDelegation,\n execute,\n executeWithMode,\n upgradeToAndCall,\n isValidSignature,\n};\n","import { DeleGatorCore } from '@metamask/delegation-abis';\nimport { encodeFunctionData } from 'viem';\nimport type { Address, Client } from 'viem';\nimport { simulateContract, writeContract } from 'viem/actions';\n\nimport { toDelegationStruct } from '../../../delegation';\nimport type { Delegation } from '../../../types';\nimport type { InitializedClient } from '../../types';\nimport type { NarrowAbiToFunction } from '../../utils';\n\nexport type SimulateDisableDelegationParameters = {\n client: Client;\n delegationManagerAddress: Address;\n delegation: Delegation;\n};\n\nexport type EncodeDisableDelegationParameters = {\n delegation: Delegation;\n};\n\nexport type ExecuteDisableDelegationParameters = {\n client: InitializedClient;\n delegationManagerAddress: Address;\n delegation: Delegation;\n};\n\nexport const simulate = async ({\n client,\n delegationManagerAddress,\n delegation,\n}: SimulateDisableDelegationParameters) => {\n const abi = DeleGatorCore.abi as any as NarrowAbiToFunction<\n typeof DeleGatorCore.abi,\n 'disableDelegation'\n >;\n\n const delegationStruct = toDelegationStruct(delegation);\n\n return simulateContract(client, {\n address: delegationManagerAddress,\n abi,\n functionName: 'disableDelegation',\n args: [delegationStruct],\n });\n};\n\nexport const execute = async ({\n client,\n delegationManagerAddress,\n delegation,\n}: ExecuteDisableDelegationParameters) => {\n const { request } = await simulate({\n client,\n delegationManagerAddress,\n delegation,\n });\n\n return writeContract(client, request);\n};\n\nexport const encode = ({ delegation }: EncodeDisableDelegationParameters) => {\n const delegationStruct = toDelegationStruct(delegation);\n\n return encodeFunctionData({\n abi: DeleGatorCore.abi,\n functionName: 'disableDelegation',\n args: [delegationStruct],\n });\n};\n","import { DeleGatorCore } from '@metamask/delegation-abis';\nimport { encodeFunctionData } from 'viem';\nimport type { Address, Client } from 'viem';\nimport { simulateContract, writeContract } from 'viem/actions';\n\nimport { toDelegationStruct } from '../../../delegation';\nimport type { Delegation } from '../../../types';\nimport type { InitializedClient } from '../../types';\nimport type { NarrowAbiToFunction } from '../../utils';\n\nexport type SimulateEnableDelegationParameters = {\n client: Client;\n delegationManagerAddress: Address;\n delegation: Delegation;\n};\n\nexport type EncodeEnableDelegationParameters = {\n delegation: Delegation;\n};\n\nexport type ExecuteEnableDelegationParameters = {\n client: InitializedClient;\n delegationManagerAddress: Address;\n delegation: Delegation;\n};\n\nexport const simulate = async ({\n client,\n delegationManagerAddress,\n delegation,\n}: SimulateEnableDelegationParameters) => {\n const abi = DeleGatorCore.abi as any as NarrowAbiToFunction<\n typeof DeleGatorCore.abi,\n 'enableDelegation'\n >;\n\n const delegationStruct = toDelegationStruct(delegation);\n\n return simulateContract(client, {\n address: delegationManagerAddress,\n abi,\n functionName: 'enableDelegation',\n args: [delegationStruct],\n });\n};\n\nexport const execute = async ({\n client,\n delegationManagerAddress,\n delegation,\n}: ExecuteEnableDelegationParameters) => {\n const { request } = await simulate({\n client,\n delegationManagerAddress,\n delegation,\n });\n\n return writeContract(client, request);\n};\n\nexport const encode = ({ delegation }: EncodeEnableDelegationParameters) => {\n const delegationStruct = toDelegationStruct(delegation);\n\n return encodeFunctionData({\n abi: DeleGatorCore.abi,\n functionName: 'enableDelegation',\n args: [delegationStruct],\n });\n};\n","import { DeleGatorCore } from '@metamask/delegation-abis';\nimport type { Address, Hex, Client } from 'viem';\nimport { encodeFunctionData } from 'viem';\nimport { simulateContract, writeContract } from 'viem/actions';\n\nimport type { InitializedClient } from '../../types';\n\nexport type SimulateUpgradeToAndCallParameters = {\n client: Client;\n contractAddress: Address;\n} & EncodeUpgradeToAndCallParameters;\n\nexport type EncodeUpgradeToAndCallParameters = {\n implementation: Address;\n data: Hex;\n};\n\nexport type ExecuteUpgradeToAndCallParameters = {\n client: InitializedClient;\n contractAddress: Address;\n} & EncodeUpgradeToAndCallParameters;\n\nexport const simulate = async ({\n client,\n contractAddress,\n implementation,\n data,\n}: SimulateUpgradeToAndCallParameters) => {\n return simulateContract(client, {\n address: contractAddress,\n abi: DeleGatorCore.abi,\n functionName: 'upgradeToAndCall',\n args: [implementation, data],\n });\n};\n\nexport const execute = async ({\n client,\n contractAddress,\n implementation,\n data,\n}: ExecuteUpgradeToAndCallParameters) => {\n const { request } = await simulate({\n client,\n contractAddress,\n implementation,\n data,\n });\n\n return writeContract(client, request);\n};\n\nexport const encode = ({\n implementation,\n data,\n}: EncodeUpgradeToAndCallParameters) => {\n return encodeFunctionData({\n abi: DeleGatorCore.abi,\n functionName: 'upgradeToAndCall',\n args: [implementation, data],\n });\n};\n"],"mappings":";;;;;;;;;AAAA,SAAS,oBAAoB;AAE7B,SAAS,wBAAwB;AACjC,SAAS,eAAe;;;ACHxB;AAAA;AAAA;AAAA,oBAAAA;AAAA,EAAA,qBAAAA;AAAA,EAAA,gBAAAA;AAAA,EAAA,8BAAAA;AAAA,EAAA,uBAAAA;AAAA,EAAA,wBAAAA;AAAA;;;ACAA,SAAS,qBAAqB;AAE9B,SAAS,oBAAoB;AAOtB,IAAM,OAAO,OAAO;AAAA,EACzB;AAAA,EACA;AACF,MACE,MAAM,aAAa,QAAQ;AAAA,EACzB,SAAS;AAAA,EACT,KAAK,cAAc;AAAA,EACnB,cAAc;AAChB,CAAC;;;ACjBH,SAAS,iBAAAC,sBAAqB;AAE9B,SAAS,gBAAAC,qBAAoB;AAOtB,IAAMC,QAAO,OAAO;AAAA,EACzB;AAAA,EACA;AACF,MACE,MAAMD,cAAa,QAAQ;AAAA,EACzB,SAAS;AAAA,EACT,KAAKD,eAAc;AAAA,EACnB,cAAc;AAChB,CAAC;;;ACjBH,SAAS,iBAAAG,sBAAqB;AAE9B,SAAS,gBAAAC,qBAAoB;AAOtB,IAAMC,QAAO,OAAO;AAAA,EACzB;AAAA,EACA;AACF,MACE,MAAMD,cAAa,QAAQ;AAAA,EACzB,SAAS;AAAA,EACT,KAAKD,e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;AACF,MAA0C;AACxC,SAAOF,mBAAiB,QAAQ;AAAA,IAC9B,SAAS;AAAA,IACT,KAAKF,gBAAc;AAAA,IACnB,cAAc;AAAA,IACd,MAAM,CAAC,gBAAgB,IAAI;AAAA,EAC7B,CAAC;AACH;AAEO,IAAMK,WAAU,OAAO;AAAA,EAC5B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAyC;AACvC,QAAM,EAAE,QAAQ,IAAI,MAAMD,WAAS;AAAA,IACjC;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,CAAC;AAED,SAAOD,gBAAc,QAAQ,OAAO;AACtC;AAEO,IAAMG,WAAS,CAAC;AAAA,EACrB;AAAA,EACA;AACF,MAAwC;AACtC,SAAOL,qBAAmB;AAAA,IACxB,KAAKD,gBAAc;AAAA,IACnB,cAAc;AAAA,IACd,MAAM,CAAC,gBAAgB,IAAI;AAAA,EAC7B,CAAC;AACH;","names":["read","DeleGatorCore","readContract","read","DeleGatorCore","readContract","read","DeleGatorCore","readContract","read","DeleGatorCore","readContract","read","DeleGatorCore","readContract","read","DeleGatorCore","readContract","read","read","encodeFunctionData","encode","encodeFunctionData","encode","HybridDeleGator","encodeFunctionData","simulateContract","writeContract","simulate","encode","encodeFunctionData","HybridDeleGator","HybridDeleGator","encodeFunctionData","simulateContract","writeContract","simulate","encode","encodeFunctionData","HybridDeleGator","HybridDeleGator","encodeFunctionData","simulateContract","writeContract","simulate","encode","encodeFunctionData","HybridDeleGator","HybridDeleGator","encodeFunctionData","simulateContract","writeContract","simulate","encode","encodeFunctionData","HybridDeleGator","encodeFunctionData","simulateContract","writeContract","simulate","encode","encodeFunctionData","encode_exports","encode","MultiSigDeleGator","encodeFunctionData","simulateContract","writeContract","simulate","encode","encodeFunctionData","MultiSigDeleGator","MultiSigDeleGator","encodeFunctionData","simulateContract","writeContract","simulate","encode","encodeFunctionData","MultiSigDeleGator","MultiSigDeleGator","encodeFunctionData","simulateContract","writeContract","simulate","encode","encodeFunctionData","MultiSigDeleGator","MultiSigDeleGator","encodeFunctionData","simulateContract","writeContract","simulate","encode","encodeFunctionData","MultiSigDeleGator","MultiSigDeleGator","encodeFunctionData","simulateContract","writeContract","simulate","encode","encodeFunctionData","MultiSigDeleGator","MultiSigDeleGator","encodeFunctionData","simulateContract","writeContract","simulate","encode","encodeFunctionData","MultiSigDeleGator","encodeFunctionData","simulateContract","writeContract","simulate","encode","encode_exports","encode","DeleGatorCore","encodeFunctionData","simulateContract","writeContract","simulate","execute","encode","DeleGatorCore","encodeFunctionData","simulateContract","writeContract","simulate","simulateContract","DeleGatorCore","execute","writeContract","encode","encodeFunctionData","encode_exports","encode","DeleGatorCore","encodeFunctionData","simulateContract","writeContract","simulate","DeleGatorCore","simulateContract","execute","writeContract","encode","encodeFunctionData","DeleGatorCore","encodeFunctionData","simulateContract","writeContract","simulate","DeleGatorCore","simulateContract","execute","writeContract","encode","encodeFunctionData","DeleGatorCore","encodeFunctionData","simulateContract","writeContract","simulate","execute","encode"]}
|