@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
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ANY_BENEFICIARY, ROOT_AUTHORITY } from '@metamask/delegation-core';
|
|
2
2
|
import * as viem from 'viem';
|
|
3
|
-
import { Client, Transport, Chain, Account,
|
|
4
|
-
import {
|
|
5
|
-
import { D as Delegation,
|
|
3
|
+
import { Client, Transport, Chain, Account, Address, Hex } from 'viem';
|
|
4
|
+
import { p as DelegationStruct, E as ExecutionMode, e as ExecutionStruct } from './delegation-D_TY-tAq.cjs';
|
|
5
|
+
import { D as Delegation, P as PermissionContext } from './types-BLYWtcR3.cjs';
|
|
6
6
|
|
|
7
7
|
declare const NAME$1 = "DelegationManager";
|
|
8
8
|
declare const VERSION$1 = "1.3.0";
|
|
@@ -21,26 +21,6 @@ type P256Owner = {
|
|
|
21
21
|
};
|
|
22
22
|
type InitializedClient = Client<Transport, Chain, Account>;
|
|
23
23
|
|
|
24
|
-
type NarrowAbiToFunction<TAbi extends Abi, FunctionName extends string> = [
|
|
25
|
-
Extract<TAbi[number], {
|
|
26
|
-
type: 'function';
|
|
27
|
-
name: FunctionName;
|
|
28
|
-
}>[]
|
|
29
|
-
];
|
|
30
|
-
declare function isContractDeployed({ client, contractAddress, }: {
|
|
31
|
-
client: Client;
|
|
32
|
-
contractAddress: Address;
|
|
33
|
-
}): Promise<boolean>;
|
|
34
|
-
declare function isImplementationExpected({ client, contractAddress, expectedImplementationAddress, }: {
|
|
35
|
-
client: Client;
|
|
36
|
-
contractAddress: Address;
|
|
37
|
-
expectedImplementationAddress: Address;
|
|
38
|
-
}): Promise<boolean>;
|
|
39
|
-
declare const encodeProxyCreationCode: ({ implementationAddress, initcode, }: {
|
|
40
|
-
implementationAddress: Address;
|
|
41
|
-
initcode: Hex;
|
|
42
|
-
}) => Hex;
|
|
43
|
-
|
|
44
24
|
type EncodeDisableDelegationParameters$1 = {
|
|
45
25
|
delegation: Delegation;
|
|
46
26
|
};
|
|
@@ -52,7 +32,7 @@ type ExecuteDisableDelegationParameters$1 = {
|
|
|
52
32
|
client: InitializedClient;
|
|
53
33
|
delegationManagerAddress: Address;
|
|
54
34
|
} & EncodeDisableDelegationParameters$1;
|
|
55
|
-
declare const simulate$y: ({ client, delegationManagerAddress, delegation, }: SimulateDisableDelegationParameters$1) => Promise<viem.SimulateContractReturnType<
|
|
35
|
+
declare const simulate$y: ({ client, delegationManagerAddress, delegation, }: SimulateDisableDelegationParameters$1) => Promise<viem.SimulateContractReturnType<readonly [{
|
|
56
36
|
readonly type: "constructor";
|
|
57
37
|
readonly inputs: readonly [{
|
|
58
38
|
readonly name: "_owner";
|
|
@@ -763,7 +743,55 @@ declare const simulate$y: ({ client, delegationManagerAddress, delegation, }: Si
|
|
|
763
743
|
readonly type: "string";
|
|
764
744
|
readonly internalType: "string";
|
|
765
745
|
}];
|
|
766
|
-
}], "disableDelegation"
|
|
746
|
+
}], "disableDelegation", readonly [DelegationStruct], viem.Chain | undefined, viem.Account | undefined, undefined, undefined, readonly [{
|
|
747
|
+
readonly type: "function";
|
|
748
|
+
readonly name: "disableDelegation";
|
|
749
|
+
readonly inputs: readonly [{
|
|
750
|
+
readonly name: "_delegation";
|
|
751
|
+
readonly type: "tuple";
|
|
752
|
+
readonly internalType: "struct Delegation";
|
|
753
|
+
readonly components: readonly [{
|
|
754
|
+
readonly name: "delegate";
|
|
755
|
+
readonly type: "address";
|
|
756
|
+
readonly internalType: "address";
|
|
757
|
+
}, {
|
|
758
|
+
readonly name: "delegator";
|
|
759
|
+
readonly type: "address";
|
|
760
|
+
readonly internalType: "address";
|
|
761
|
+
}, {
|
|
762
|
+
readonly name: "authority";
|
|
763
|
+
readonly type: "bytes32";
|
|
764
|
+
readonly internalType: "bytes32";
|
|
765
|
+
}, {
|
|
766
|
+
readonly name: "caveats";
|
|
767
|
+
readonly type: "tuple[]";
|
|
768
|
+
readonly internalType: "struct Caveat[]";
|
|
769
|
+
readonly components: readonly [{
|
|
770
|
+
readonly name: "enforcer";
|
|
771
|
+
readonly type: "address";
|
|
772
|
+
readonly internalType: "address";
|
|
773
|
+
}, {
|
|
774
|
+
readonly name: "terms";
|
|
775
|
+
readonly type: "bytes";
|
|
776
|
+
readonly internalType: "bytes";
|
|
777
|
+
}, {
|
|
778
|
+
readonly name: "args";
|
|
779
|
+
readonly type: "bytes";
|
|
780
|
+
readonly internalType: "bytes";
|
|
781
|
+
}];
|
|
782
|
+
}, {
|
|
783
|
+
readonly name: "salt";
|
|
784
|
+
readonly type: "uint256";
|
|
785
|
+
readonly internalType: "uint256";
|
|
786
|
+
}, {
|
|
787
|
+
readonly name: "signature";
|
|
788
|
+
readonly type: "bytes";
|
|
789
|
+
readonly internalType: "bytes";
|
|
790
|
+
}];
|
|
791
|
+
}];
|
|
792
|
+
readonly outputs: readonly [];
|
|
793
|
+
readonly stateMutability: "nonpayable";
|
|
794
|
+
}], viem.Account | undefined>>;
|
|
767
795
|
declare const execute$k: ({ client, delegationManagerAddress, delegation, }: ExecuteDisableDelegationParameters$1) => Promise<`0x${string}`>;
|
|
768
796
|
declare const encode$z: ({ delegation }: EncodeDisableDelegationParameters$1) => `0x${string}`;
|
|
769
797
|
|
|
@@ -778,7 +806,7 @@ type ExecuteEnableDelegationParameters$1 = {
|
|
|
778
806
|
client: InitializedClient;
|
|
779
807
|
delegationManagerAddress: Address;
|
|
780
808
|
} & EncodeEnableDelegationParameters$1;
|
|
781
|
-
declare const simulate$x: ({ client, delegationManagerAddress, delegation, }: SimulateEnableDelegationParameters$1) => Promise<viem.SimulateContractReturnType<
|
|
809
|
+
declare const simulate$x: ({ client, delegationManagerAddress, delegation, }: SimulateEnableDelegationParameters$1) => Promise<viem.SimulateContractReturnType<readonly [{
|
|
782
810
|
readonly type: "constructor";
|
|
783
811
|
readonly inputs: readonly [{
|
|
784
812
|
readonly name: "_owner";
|
|
@@ -1489,12 +1517,60 @@ declare const simulate$x: ({ client, delegationManagerAddress, delegation, }: Si
|
|
|
1489
1517
|
readonly type: "string";
|
|
1490
1518
|
readonly internalType: "string";
|
|
1491
1519
|
}];
|
|
1492
|
-
}], "enableDelegation"
|
|
1520
|
+
}], "enableDelegation", readonly [DelegationStruct], viem.Chain | undefined, viem.Account | undefined, undefined, undefined, readonly [{
|
|
1521
|
+
readonly type: "function";
|
|
1522
|
+
readonly name: "enableDelegation";
|
|
1523
|
+
readonly inputs: readonly [{
|
|
1524
|
+
readonly name: "_delegation";
|
|
1525
|
+
readonly type: "tuple";
|
|
1526
|
+
readonly internalType: "struct Delegation";
|
|
1527
|
+
readonly components: readonly [{
|
|
1528
|
+
readonly name: "delegate";
|
|
1529
|
+
readonly type: "address";
|
|
1530
|
+
readonly internalType: "address";
|
|
1531
|
+
}, {
|
|
1532
|
+
readonly name: "delegator";
|
|
1533
|
+
readonly type: "address";
|
|
1534
|
+
readonly internalType: "address";
|
|
1535
|
+
}, {
|
|
1536
|
+
readonly name: "authority";
|
|
1537
|
+
readonly type: "bytes32";
|
|
1538
|
+
readonly internalType: "bytes32";
|
|
1539
|
+
}, {
|
|
1540
|
+
readonly name: "caveats";
|
|
1541
|
+
readonly type: "tuple[]";
|
|
1542
|
+
readonly internalType: "struct Caveat[]";
|
|
1543
|
+
readonly components: readonly [{
|
|
1544
|
+
readonly name: "enforcer";
|
|
1545
|
+
readonly type: "address";
|
|
1546
|
+
readonly internalType: "address";
|
|
1547
|
+
}, {
|
|
1548
|
+
readonly name: "terms";
|
|
1549
|
+
readonly type: "bytes";
|
|
1550
|
+
readonly internalType: "bytes";
|
|
1551
|
+
}, {
|
|
1552
|
+
readonly name: "args";
|
|
1553
|
+
readonly type: "bytes";
|
|
1554
|
+
readonly internalType: "bytes";
|
|
1555
|
+
}];
|
|
1556
|
+
}, {
|
|
1557
|
+
readonly name: "salt";
|
|
1558
|
+
readonly type: "uint256";
|
|
1559
|
+
readonly internalType: "uint256";
|
|
1560
|
+
}, {
|
|
1561
|
+
readonly name: "signature";
|
|
1562
|
+
readonly type: "bytes";
|
|
1563
|
+
readonly internalType: "bytes";
|
|
1564
|
+
}];
|
|
1565
|
+
}];
|
|
1566
|
+
readonly outputs: readonly [];
|
|
1567
|
+
readonly stateMutability: "nonpayable";
|
|
1568
|
+
}], viem.Account | undefined>>;
|
|
1493
1569
|
declare const execute$j: ({ client, delegationManagerAddress, delegation, }: ExecuteEnableDelegationParameters$1) => Promise<`0x${string}`>;
|
|
1494
1570
|
declare const encode$y: ({ delegation }: EncodeEnableDelegationParameters$1) => `0x${string}`;
|
|
1495
1571
|
|
|
1496
1572
|
type EncodeRedeemDelegationsParameters = {
|
|
1497
|
-
delegations:
|
|
1573
|
+
delegations: PermissionContext[];
|
|
1498
1574
|
modes: ExecutionMode[];
|
|
1499
1575
|
executions: ExecutionStruct[][];
|
|
1500
1576
|
};
|
|
@@ -1506,7 +1582,7 @@ type ExecuteRedeemDelegationsParameters = {
|
|
|
1506
1582
|
client: InitializedClient;
|
|
1507
1583
|
delegationManagerAddress: Address;
|
|
1508
1584
|
} & EncodeRedeemDelegationsParameters;
|
|
1509
|
-
declare const simulate$w: ({ client, delegationManagerAddress, delegations, modes, executions, }: SimulateRedeemDelegationsParameters) => Promise<viem.SimulateContractReturnType<
|
|
1585
|
+
declare const simulate$w: ({ client, delegationManagerAddress, delegations, modes, executions, }: SimulateRedeemDelegationsParameters) => Promise<viem.SimulateContractReturnType<readonly [{
|
|
1510
1586
|
readonly type: "constructor";
|
|
1511
1587
|
readonly inputs: readonly [{
|
|
1512
1588
|
readonly name: "_owner";
|
|
@@ -2217,7 +2293,25 @@ declare const simulate$w: ({ client, delegationManagerAddress, delegations, mode
|
|
|
2217
2293
|
readonly type: "string";
|
|
2218
2294
|
readonly internalType: "string";
|
|
2219
2295
|
}];
|
|
2220
|
-
}], "redeemDelegations"
|
|
2296
|
+
}], "redeemDelegations", readonly [`0x${string}`[], ExecutionMode[], `0x${string}`[]], viem.Chain | undefined, viem.Account | undefined, undefined, undefined, readonly [{
|
|
2297
|
+
readonly type: "function";
|
|
2298
|
+
readonly name: "redeemDelegations";
|
|
2299
|
+
readonly inputs: readonly [{
|
|
2300
|
+
readonly name: "_permissionContexts";
|
|
2301
|
+
readonly type: "bytes[]";
|
|
2302
|
+
readonly internalType: "bytes[]";
|
|
2303
|
+
}, {
|
|
2304
|
+
readonly name: "_modes";
|
|
2305
|
+
readonly type: "bytes32[]";
|
|
2306
|
+
readonly internalType: "ModeCode[]";
|
|
2307
|
+
}, {
|
|
2308
|
+
readonly name: "_executionCallDatas";
|
|
2309
|
+
readonly type: "bytes[]";
|
|
2310
|
+
readonly internalType: "bytes[]";
|
|
2311
|
+
}];
|
|
2312
|
+
readonly outputs: readonly [];
|
|
2313
|
+
readonly stateMutability: "nonpayable";
|
|
2314
|
+
}], viem.Account | undefined>>;
|
|
2221
2315
|
declare const execute$i: ({ client, delegationManagerAddress, delegations, modes, executions, }: ExecuteRedeemDelegationsParameters) => Promise<`0x${string}`>;
|
|
2222
2316
|
declare const encode$x: ({ delegations, modes, executions, }: EncodeRedeemDelegationsParameters) => `0x${string}`;
|
|
2223
2317
|
|
|
@@ -2273,7 +2367,7 @@ type ExecuteDisableDelegationParameters = {
|
|
|
2273
2367
|
delegationManagerAddress: Address;
|
|
2274
2368
|
delegation: Delegation;
|
|
2275
2369
|
};
|
|
2276
|
-
declare const simulate$u: ({ client, delegationManagerAddress, delegation, }: SimulateDisableDelegationParameters) => Promise<viem.SimulateContractReturnType<
|
|
2370
|
+
declare const simulate$u: ({ client, delegationManagerAddress, delegation, }: SimulateDisableDelegationParameters) => Promise<viem.SimulateContractReturnType<readonly [{
|
|
2277
2371
|
readonly type: "receive";
|
|
2278
2372
|
readonly stateMutability: "payable";
|
|
2279
2373
|
}, {
|
|
@@ -3111,7 +3205,55 @@ declare const simulate$u: ({ client, delegationManagerAddress, delegation, }: Si
|
|
|
3111
3205
|
readonly type: "bytes1";
|
|
3112
3206
|
readonly internalType: "ExecType";
|
|
3113
3207
|
}];
|
|
3114
|
-
}], "disableDelegation"
|
|
3208
|
+
}], "disableDelegation", readonly [DelegationStruct], viem.Chain | undefined, viem.Account | undefined, undefined, undefined, readonly [{
|
|
3209
|
+
readonly type: "function";
|
|
3210
|
+
readonly name: "disableDelegation";
|
|
3211
|
+
readonly inputs: readonly [{
|
|
3212
|
+
readonly name: "_delegation";
|
|
3213
|
+
readonly type: "tuple";
|
|
3214
|
+
readonly internalType: "struct Delegation";
|
|
3215
|
+
readonly components: readonly [{
|
|
3216
|
+
readonly name: "delegate";
|
|
3217
|
+
readonly type: "address";
|
|
3218
|
+
readonly internalType: "address";
|
|
3219
|
+
}, {
|
|
3220
|
+
readonly name: "delegator";
|
|
3221
|
+
readonly type: "address";
|
|
3222
|
+
readonly internalType: "address";
|
|
3223
|
+
}, {
|
|
3224
|
+
readonly name: "authority";
|
|
3225
|
+
readonly type: "bytes32";
|
|
3226
|
+
readonly internalType: "bytes32";
|
|
3227
|
+
}, {
|
|
3228
|
+
readonly name: "caveats";
|
|
3229
|
+
readonly type: "tuple[]";
|
|
3230
|
+
readonly internalType: "struct Caveat[]";
|
|
3231
|
+
readonly components: readonly [{
|
|
3232
|
+
readonly name: "enforcer";
|
|
3233
|
+
readonly type: "address";
|
|
3234
|
+
readonly internalType: "address";
|
|
3235
|
+
}, {
|
|
3236
|
+
readonly name: "terms";
|
|
3237
|
+
readonly type: "bytes";
|
|
3238
|
+
readonly internalType: "bytes";
|
|
3239
|
+
}, {
|
|
3240
|
+
readonly name: "args";
|
|
3241
|
+
readonly type: "bytes";
|
|
3242
|
+
readonly internalType: "bytes";
|
|
3243
|
+
}];
|
|
3244
|
+
}, {
|
|
3245
|
+
readonly name: "salt";
|
|
3246
|
+
readonly type: "uint256";
|
|
3247
|
+
readonly internalType: "uint256";
|
|
3248
|
+
}, {
|
|
3249
|
+
readonly name: "signature";
|
|
3250
|
+
readonly type: "bytes";
|
|
3251
|
+
readonly internalType: "bytes";
|
|
3252
|
+
}];
|
|
3253
|
+
}];
|
|
3254
|
+
readonly outputs: readonly [];
|
|
3255
|
+
readonly stateMutability: "nonpayable";
|
|
3256
|
+
}], viem.Account | undefined>>;
|
|
3115
3257
|
declare const execute$g: ({ client, delegationManagerAddress, delegation, }: ExecuteDisableDelegationParameters) => Promise<`0x${string}`>;
|
|
3116
3258
|
declare const encode$v: ({ delegation }: EncodeDisableDelegationParameters) => `0x${string}`;
|
|
3117
3259
|
|
|
@@ -3128,7 +3270,7 @@ type ExecuteEnableDelegationParameters = {
|
|
|
3128
3270
|
delegationManagerAddress: Address;
|
|
3129
3271
|
delegation: Delegation;
|
|
3130
3272
|
};
|
|
3131
|
-
declare const simulate$t: ({ client, delegationManagerAddress, delegation, }: SimulateEnableDelegationParameters) => Promise<viem.SimulateContractReturnType<
|
|
3273
|
+
declare const simulate$t: ({ client, delegationManagerAddress, delegation, }: SimulateEnableDelegationParameters) => Promise<viem.SimulateContractReturnType<readonly [{
|
|
3132
3274
|
readonly type: "receive";
|
|
3133
3275
|
readonly stateMutability: "payable";
|
|
3134
3276
|
}, {
|
|
@@ -3966,7 +4108,55 @@ declare const simulate$t: ({ client, delegationManagerAddress, delegation, }: Si
|
|
|
3966
4108
|
readonly type: "bytes1";
|
|
3967
4109
|
readonly internalType: "ExecType";
|
|
3968
4110
|
}];
|
|
3969
|
-
}], "enableDelegation"
|
|
4111
|
+
}], "enableDelegation", readonly [DelegationStruct], viem.Chain | undefined, viem.Account | undefined, undefined, undefined, readonly [{
|
|
4112
|
+
readonly type: "function";
|
|
4113
|
+
readonly name: "enableDelegation";
|
|
4114
|
+
readonly inputs: readonly [{
|
|
4115
|
+
readonly name: "_delegation";
|
|
4116
|
+
readonly type: "tuple";
|
|
4117
|
+
readonly internalType: "struct Delegation";
|
|
4118
|
+
readonly components: readonly [{
|
|
4119
|
+
readonly name: "delegate";
|
|
4120
|
+
readonly type: "address";
|
|
4121
|
+
readonly internalType: "address";
|
|
4122
|
+
}, {
|
|
4123
|
+
readonly name: "delegator";
|
|
4124
|
+
readonly type: "address";
|
|
4125
|
+
readonly internalType: "address";
|
|
4126
|
+
}, {
|
|
4127
|
+
readonly name: "authority";
|
|
4128
|
+
readonly type: "bytes32";
|
|
4129
|
+
readonly internalType: "bytes32";
|
|
4130
|
+
}, {
|
|
4131
|
+
readonly name: "caveats";
|
|
4132
|
+
readonly type: "tuple[]";
|
|
4133
|
+
readonly internalType: "struct Caveat[]";
|
|
4134
|
+
readonly components: readonly [{
|
|
4135
|
+
readonly name: "enforcer";
|
|
4136
|
+
readonly type: "address";
|
|
4137
|
+
readonly internalType: "address";
|
|
4138
|
+
}, {
|
|
4139
|
+
readonly name: "terms";
|
|
4140
|
+
readonly type: "bytes";
|
|
4141
|
+
readonly internalType: "bytes";
|
|
4142
|
+
}, {
|
|
4143
|
+
readonly name: "args";
|
|
4144
|
+
readonly type: "bytes";
|
|
4145
|
+
readonly internalType: "bytes";
|
|
4146
|
+
}];
|
|
4147
|
+
}, {
|
|
4148
|
+
readonly name: "salt";
|
|
4149
|
+
readonly type: "uint256";
|
|
4150
|
+
readonly internalType: "uint256";
|
|
4151
|
+
}, {
|
|
4152
|
+
readonly name: "signature";
|
|
4153
|
+
readonly type: "bytes";
|
|
4154
|
+
readonly internalType: "bytes";
|
|
4155
|
+
}];
|
|
4156
|
+
}];
|
|
4157
|
+
readonly outputs: readonly [];
|
|
4158
|
+
readonly stateMutability: "nonpayable";
|
|
4159
|
+
}], viem.Account | undefined>>;
|
|
3970
4160
|
declare const execute$f: ({ client, delegationManagerAddress, delegation, }: ExecuteEnableDelegationParameters) => Promise<`0x${string}`>;
|
|
3971
4161
|
declare const encode$u: ({ delegation }: EncodeEnableDelegationParameters) => `0x${string}`;
|
|
3972
4162
|
|
|
@@ -21921,15 +22111,27 @@ declare namespace index$1 {
|
|
|
21921
22111
|
export { index$1_read as read };
|
|
21922
22112
|
}
|
|
21923
22113
|
|
|
22114
|
+
declare function isContractDeployed({ client, contractAddress, }: {
|
|
22115
|
+
client: Client;
|
|
22116
|
+
contractAddress: Address;
|
|
22117
|
+
}): Promise<boolean>;
|
|
22118
|
+
declare function isImplementationExpected({ client, contractAddress, expectedImplementationAddress, }: {
|
|
22119
|
+
client: Client;
|
|
22120
|
+
contractAddress: Address;
|
|
22121
|
+
expectedImplementationAddress: Address;
|
|
22122
|
+
}): Promise<boolean>;
|
|
22123
|
+
declare const encodeProxyCreationCode: ({ implementationAddress, initcode, }: {
|
|
22124
|
+
implementationAddress: Address;
|
|
22125
|
+
initcode: Hex;
|
|
22126
|
+
}) => Hex;
|
|
22127
|
+
|
|
21924
22128
|
type index_InitializedClient = InitializedClient;
|
|
21925
|
-
type index_NarrowAbiToFunction<TAbi extends Abi, FunctionName extends string> = NarrowAbiToFunction<TAbi, FunctionName>;
|
|
21926
22129
|
type index_P256Owner = P256Owner;
|
|
21927
|
-
declare const index_Redemption: typeof Redemption;
|
|
21928
22130
|
declare const index_encodeProxyCreationCode: typeof encodeProxyCreationCode;
|
|
21929
22131
|
declare const index_isContractDeployed: typeof isContractDeployed;
|
|
21930
22132
|
declare const index_isImplementationExpected: typeof isImplementationExpected;
|
|
21931
22133
|
declare namespace index {
|
|
21932
|
-
export { index$j as DeleGatorCore, index$k as DelegationManager, index$i as EIP712, index$g as ERC20PeriodTransferEnforcer, index$f as ERC20StreamingEnforcer, index$e as ERC20TransferAmountEnforcer, index$h as EntryPoint, index$d as HybridDeleGator, index$c as IdEnforcer, type index_InitializedClient as InitializedClient, index$b as LimitedCallsEnforcer, index$a as MultiSigDeleGator, index$9 as MultiTokenPeriodEnforcer,
|
|
22134
|
+
export { index$j as DeleGatorCore, index$k as DelegationManager, index$i as EIP712, index$g as ERC20PeriodTransferEnforcer, index$f as ERC20StreamingEnforcer, index$e as ERC20TransferAmountEnforcer, index$h as EntryPoint, index$d as HybridDeleGator, index$c as IdEnforcer, type index_InitializedClient as InitializedClient, index$b as LimitedCallsEnforcer, index$a as MultiSigDeleGator, index$9 as MultiTokenPeriodEnforcer, index$8 as NativeTokenPeriodTransferEnforcer, index$7 as NativeTokenStreamingEnforcer, index$6 as NativeTokenTransferAmountEnforcer, index$5 as NonceEnforcer, index$4 as Ownable2Step, type index_P256Owner as P256Owner, index$3 as Pausable, index$2 as SimpleFactory, index$1 as SpecificActionERC20TransferBatchEnforcer, index_encodeProxyCreationCode as encodeProxyCreationCode, index_isContractDeployed as isContractDeployed, index_isImplementationExpected as isImplementationExpected };
|
|
21933
22135
|
}
|
|
21934
22136
|
|
|
21935
|
-
export { type InitializedClient as I, type
|
|
22137
|
+
export { type InitializedClient as I, type P256Owner as P, index$k as a, index$j as b, index$i as c, index$h as d, index$d as e, index$c as f, index$b as g, index$a as h, index as i, index$5 as j, index$4 as k, index$3 as l, index$2 as m, index$1 as n, index$g as o, index$f as p, index$e as q, index$9 as r, index$8 as s, index$7 as t, index$6 as u, isContractDeployed as v, isImplementationExpected as w, encodeProxyCreationCode as x };
|
|
@@ -1,114 +1,135 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Client, Transport, Chain, Account, RpcSchema,
|
|
1
|
+
import { PermissionRequest as PermissionRequest$1, PermissionTypes as PermissionTypes$1, PermissionResponse as PermissionResponse$1 } from '@metamask/7715-permission-types';
|
|
2
|
+
import { Address, Hex, Client, Transport, Chain, Account, RpcSchema, SendTransactionRequest, SendTransactionParameters, OneOf, PublicClient, WalletClient } from 'viem';
|
|
3
3
|
import { SmartAccount, SendUserOperationParameters } from 'viem/account-abstraction';
|
|
4
|
-
import {
|
|
4
|
+
import { P as PermissionContext, l as Call, S as SmartAccountsEnvironment, D as Delegation } from './types-BLYWtcR3.js';
|
|
5
5
|
import { U as UserOperationV07 } from './userOp-DKgjzz7B.js';
|
|
6
6
|
|
|
7
|
-
type
|
|
8
|
-
chainIds: `0x${string}`[];
|
|
9
|
-
ruleTypes: string[];
|
|
10
|
-
};
|
|
11
|
-
type GetSupportedExecutionPermissionsResult = Record<string, SupportedPermissionInfo>;
|
|
12
|
-
type GetGrantedExecutionPermissionsResult = PermissionResponse<PermissionTypes>[];
|
|
13
|
-
type MetaMaskExtensionSchema = RpcSchema & [
|
|
14
|
-
{
|
|
15
|
-
Method: 'wallet_requestExecutionPermissions';
|
|
16
|
-
Params: PermissionRequest<PermissionTypes>[];
|
|
17
|
-
ReturnType: PermissionResponse<PermissionTypes>[];
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
Method: 'wallet_getSupportedExecutionPermissions';
|
|
21
|
-
Params: [];
|
|
22
|
-
ReturnType: GetSupportedExecutionPermissionsResult;
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
Method: 'wallet_getGrantedExecutionPermissions';
|
|
26
|
-
Params: [];
|
|
27
|
-
ReturnType: GetGrantedExecutionPermissionsResult;
|
|
28
|
-
}
|
|
29
|
-
];
|
|
30
|
-
type MetaMaskExtensionClient = Client<Transport, Chain | undefined, Account | undefined, MetaMaskExtensionSchema>;
|
|
31
|
-
|
|
32
|
-
type PermissionParameter = {
|
|
7
|
+
type BasePermission = {
|
|
33
8
|
type: string;
|
|
9
|
+
isAdjustmentAllowed: boolean;
|
|
34
10
|
data: Record<string, unknown>;
|
|
35
11
|
};
|
|
36
|
-
type
|
|
12
|
+
type NativeTokenStreamPermission = BasePermission & {
|
|
37
13
|
type: 'native-token-stream';
|
|
38
14
|
data: {
|
|
39
|
-
amountPerSecond: bigint;
|
|
40
15
|
initialAmount?: bigint;
|
|
41
16
|
maxAmount?: bigint;
|
|
17
|
+
amountPerSecond: bigint;
|
|
42
18
|
startTime?: number;
|
|
43
19
|
justification?: string;
|
|
44
20
|
};
|
|
45
21
|
};
|
|
46
|
-
type
|
|
47
|
-
type: '
|
|
22
|
+
type NativeTokenPeriodicPermission = BasePermission & {
|
|
23
|
+
type: 'native-token-periodic';
|
|
48
24
|
data: {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
initialAmount?: bigint;
|
|
52
|
-
maxAmount?: bigint;
|
|
25
|
+
periodAmount: bigint;
|
|
26
|
+
periodDuration: number;
|
|
53
27
|
startTime?: number;
|
|
54
28
|
justification?: string;
|
|
55
29
|
};
|
|
56
30
|
};
|
|
57
|
-
type
|
|
58
|
-
type: '
|
|
31
|
+
type Erc20TokenStreamPermission = BasePermission & {
|
|
32
|
+
type: 'erc20-token-stream';
|
|
59
33
|
data: {
|
|
60
|
-
|
|
61
|
-
|
|
34
|
+
initialAmount?: bigint;
|
|
35
|
+
maxAmount?: bigint;
|
|
36
|
+
amountPerSecond: bigint;
|
|
62
37
|
startTime?: number;
|
|
38
|
+
tokenAddress: Address;
|
|
63
39
|
justification?: string;
|
|
64
40
|
};
|
|
65
41
|
};
|
|
66
|
-
type
|
|
42
|
+
type Erc20TokenPeriodicPermission = BasePermission & {
|
|
67
43
|
type: 'erc20-token-periodic';
|
|
68
44
|
data: {
|
|
69
|
-
tokenAddress: Address;
|
|
70
45
|
periodAmount: bigint;
|
|
71
46
|
periodDuration: number;
|
|
72
47
|
startTime?: number;
|
|
48
|
+
tokenAddress: Address;
|
|
73
49
|
justification?: string;
|
|
74
50
|
};
|
|
75
51
|
};
|
|
76
|
-
type
|
|
52
|
+
type Erc20TokenRevocationPermission = BasePermission & {
|
|
77
53
|
type: 'erc20-token-revocation';
|
|
78
54
|
data: {
|
|
79
55
|
justification?: string;
|
|
80
56
|
};
|
|
81
57
|
};
|
|
82
|
-
type
|
|
58
|
+
type PermissionTypes = NativeTokenStreamPermission | NativeTokenPeriodicPermission | Erc20TokenStreamPermission | Erc20TokenPeriodicPermission | Erc20TokenRevocationPermission;
|
|
83
59
|
type PermissionRequestParameter = {
|
|
84
60
|
chainId: number;
|
|
85
|
-
permission:
|
|
86
|
-
isAdjustmentAllowed: boolean;
|
|
61
|
+
permission: PermissionTypes;
|
|
87
62
|
to: Hex;
|
|
88
63
|
from?: Address | undefined | null;
|
|
89
64
|
expiry?: number | undefined | null;
|
|
90
65
|
};
|
|
91
|
-
type
|
|
92
|
-
|
|
93
|
-
|
|
66
|
+
type SupportedPermissionInfo = {
|
|
67
|
+
chainIds: number[];
|
|
68
|
+
ruleTypes: string[];
|
|
69
|
+
};
|
|
70
|
+
type GetSupportedExecutionPermissionsResult = Record<string, SupportedPermissionInfo>;
|
|
71
|
+
type GetGrantedExecutionPermissionsResult = PermissionResponse<PermissionTypes>[];
|
|
72
|
+
type PermissionRequest<TPermission extends PermissionTypes> = {
|
|
73
|
+
chainId: number;
|
|
74
|
+
from?: Hex;
|
|
75
|
+
to: Hex;
|
|
76
|
+
permission: TPermission;
|
|
77
|
+
rules?: Record<string, unknown>[] | null;
|
|
78
|
+
};
|
|
79
|
+
type PermissionResponse<TPermission extends PermissionTypes> = PermissionRequest<TPermission> & {
|
|
80
|
+
context: Hex;
|
|
81
|
+
dependencies: {
|
|
82
|
+
factory: Address;
|
|
83
|
+
factoryData: Hex;
|
|
84
|
+
}[];
|
|
85
|
+
delegationManager: Address;
|
|
86
|
+
};
|
|
87
|
+
type RpcSupportedPermissionInfo = {
|
|
88
|
+
chainIds: Hex[];
|
|
89
|
+
ruleTypes: string[];
|
|
90
|
+
};
|
|
91
|
+
type RpcGetSupportedExecutionPermissionsResult = Record<string, RpcSupportedPermissionInfo>;
|
|
92
|
+
type RpcGetGrantedExecutionPermissionsResult = PermissionResponse$1<PermissionTypes$1>[];
|
|
93
|
+
type MetaMaskExtensionSchema = RpcSchema & [
|
|
94
|
+
{
|
|
95
|
+
Method: 'wallet_requestExecutionPermissions';
|
|
96
|
+
Params: PermissionRequest$1<PermissionTypes$1>[];
|
|
97
|
+
ReturnType: PermissionResponse$1<PermissionTypes$1>[];
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
Method: 'wallet_getSupportedExecutionPermissions';
|
|
101
|
+
Params: [];
|
|
102
|
+
ReturnType: RpcGetSupportedExecutionPermissionsResult;
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
Method: 'wallet_getGrantedExecutionPermissions';
|
|
106
|
+
Params: [];
|
|
107
|
+
ReturnType: RpcGetGrantedExecutionPermissionsResult;
|
|
108
|
+
}
|
|
109
|
+
];
|
|
110
|
+
type MetaMaskExtensionClient = Client<Transport, Chain | undefined, Account | undefined, MetaMaskExtensionSchema>;
|
|
94
111
|
|
|
95
112
|
type DelegatedCall = Call & OneOf<{
|
|
96
|
-
|
|
97
|
-
delegationManager: Hex
|
|
113
|
+
permissionContext: PermissionContext;
|
|
114
|
+
delegationManager: Hex;
|
|
98
115
|
} | object>;
|
|
99
116
|
type SendTransactionWithDelegationParameters<TChain extends Chain | undefined = Chain | undefined, TAccount extends Account | undefined = Account | undefined, TChainOverride extends Chain | undefined = Chain | undefined, TRequest extends SendTransactionRequest<TChain, TChainOverride> = SendTransactionRequest<TChain, TChainOverride>> = SendTransactionParameters<TChain, TAccount, TChainOverride, TRequest> & {
|
|
100
|
-
|
|
101
|
-
delegationManager: Hex
|
|
117
|
+
permissionContext: PermissionContext;
|
|
118
|
+
delegationManager: Hex;
|
|
102
119
|
};
|
|
103
120
|
type SendUserOperationWithDelegationParameters<TAccount extends SmartAccount | undefined = SmartAccount | undefined, TAccountOverride extends SmartAccount | undefined = SmartAccount | undefined> = SendUserOperationParameters<TAccount, TAccountOverride, DelegatedCall[]> & {
|
|
104
|
-
|
|
105
|
-
factory: Hex
|
|
106
|
-
factoryData: Hex
|
|
121
|
+
dependencies?: {
|
|
122
|
+
factory: Hex;
|
|
123
|
+
factoryData: Hex;
|
|
107
124
|
}[];
|
|
108
125
|
calls: DelegatedCall[];
|
|
109
126
|
publicClient: PublicClient<Transport, Chain>;
|
|
110
127
|
};
|
|
111
128
|
|
|
129
|
+
type RequestExecutionPermissionsParameters = PermissionRequestParameter[];
|
|
130
|
+
type RequestExecutionPermissionsReturnType = GetGrantedExecutionPermissionsResult;
|
|
131
|
+
declare function erc7715RequestExecutionPermissionsAction(client: MetaMaskExtensionClient, parameters: RequestExecutionPermissionsParameters): Promise<RequestExecutionPermissionsReturnType>;
|
|
132
|
+
|
|
112
133
|
type CaveatEnforcerParams = {
|
|
113
134
|
delegation: Delegation;
|
|
114
135
|
};
|
|
@@ -151,7 +172,7 @@ type SignDelegationParameters = {
|
|
|
151
172
|
version?: string;
|
|
152
173
|
allowInsecureUnrestrictedDelegation?: boolean;
|
|
153
174
|
};
|
|
154
|
-
type SignDelegationReturnType = Hex
|
|
175
|
+
type SignDelegationReturnType = Hex;
|
|
155
176
|
declare function signDelegation<TChain extends Chain | undefined, TAccount extends Account | undefined>(client: Client<Transport, TChain, TAccount> & {
|
|
156
177
|
signTypedData: WalletClient['signTypedData'];
|
|
157
178
|
}, parameters: SignDelegationParameters): Promise<SignDelegationReturnType>;
|
|
@@ -174,7 +195,7 @@ type SignUserOperationParameters = {
|
|
|
174
195
|
name: 'HybridDeleGator' | 'MultiSigDeleGator';
|
|
175
196
|
version?: string;
|
|
176
197
|
};
|
|
177
|
-
type SignUserOperationReturnType = Hex
|
|
198
|
+
type SignUserOperationReturnType = Hex;
|
|
178
199
|
declare function signUserOperation<TChain extends Chain | undefined, TAccount extends Account | undefined>(client: Client<Transport, TChain, TAccount> & {
|
|
179
200
|
signTypedData: WalletClient['signTypedData'];
|
|
180
201
|
}, parameters: SignUserOperationParameters): Promise<SignUserOperationReturnType>;
|
|
@@ -191,10 +212,11 @@ declare function erc7715GetSupportedExecutionPermissionsAction(client: MetaMaskE
|
|
|
191
212
|
declare function erc7715GetGrantedExecutionPermissionsAction(client: MetaMaskExtensionClient): Promise<GetGrantedExecutionPermissionsResult>;
|
|
192
213
|
|
|
193
214
|
declare const erc7715ProviderActions: () => (client: Client) => {
|
|
194
|
-
requestExecutionPermissions: (parameters: RequestExecutionPermissionsParameters) => Promise<
|
|
215
|
+
requestExecutionPermissions: (parameters: RequestExecutionPermissionsParameters) => Promise<GetGrantedExecutionPermissionsResult>;
|
|
195
216
|
getSupportedExecutionPermissions: () => Promise<GetSupportedExecutionPermissionsResult>;
|
|
196
217
|
getGrantedExecutionPermissions: () => Promise<GetGrantedExecutionPermissionsResult>;
|
|
197
218
|
};
|
|
219
|
+
type Erc7715Client = Client & ReturnType<ReturnType<typeof erc7715ProviderActions>>;
|
|
198
220
|
declare const erc7710WalletActions: () => (client: WalletClient) => {
|
|
199
221
|
sendTransactionWithDelegation: (args: SendTransactionWithDelegationParameters) => Promise<`0x${string}`>;
|
|
200
222
|
};
|
|
@@ -204,13 +226,24 @@ declare const erc7710BundlerActions: () => (client: Client) => {
|
|
|
204
226
|
|
|
205
227
|
type index_CaveatEnforcerParams = CaveatEnforcerParams;
|
|
206
228
|
type index_DelegatedCall = DelegatedCall;
|
|
229
|
+
type index_Erc20TokenPeriodicPermission = Erc20TokenPeriodicPermission;
|
|
230
|
+
type index_Erc20TokenRevocationPermission = Erc20TokenRevocationPermission;
|
|
231
|
+
type index_Erc20TokenStreamPermission = Erc20TokenStreamPermission;
|
|
232
|
+
type index_Erc7715Client = Erc7715Client;
|
|
207
233
|
type index_GetGrantedExecutionPermissionsResult = GetGrantedExecutionPermissionsResult;
|
|
208
234
|
type index_GetSupportedExecutionPermissionsResult = GetSupportedExecutionPermissionsResult;
|
|
209
235
|
type index_MetaMaskExtensionClient = MetaMaskExtensionClient;
|
|
210
236
|
type index_MetaMaskExtensionSchema = MetaMaskExtensionSchema;
|
|
237
|
+
type index_NativeTokenPeriodicPermission = NativeTokenPeriodicPermission;
|
|
238
|
+
type index_NativeTokenStreamPermission = NativeTokenStreamPermission;
|
|
211
239
|
type index_PeriodTransferResult = PeriodTransferResult;
|
|
240
|
+
type index_PermissionRequestParameter = PermissionRequestParameter;
|
|
241
|
+
type index_PermissionTypes = PermissionTypes;
|
|
212
242
|
type index_RequestExecutionPermissionsParameters = RequestExecutionPermissionsParameters;
|
|
213
243
|
type index_RequestExecutionPermissionsReturnType = RequestExecutionPermissionsReturnType;
|
|
244
|
+
type index_RpcGetGrantedExecutionPermissionsResult = RpcGetGrantedExecutionPermissionsResult;
|
|
245
|
+
type index_RpcGetSupportedExecutionPermissionsResult = RpcGetSupportedExecutionPermissionsResult;
|
|
246
|
+
type index_RpcSupportedPermissionInfo = RpcSupportedPermissionInfo;
|
|
214
247
|
type index_SignDelegationParameters = SignDelegationParameters;
|
|
215
248
|
type index_SignDelegationReturnType = SignDelegationReturnType;
|
|
216
249
|
type index_SignUserOperationParameters = SignUserOperationParameters;
|
|
@@ -232,7 +265,7 @@ declare const index_signDelegationActions: typeof signDelegationActions;
|
|
|
232
265
|
declare const index_signUserOperation: typeof signUserOperation;
|
|
233
266
|
declare const index_signUserOperationActions: typeof signUserOperationActions;
|
|
234
267
|
declare namespace index {
|
|
235
|
-
export { type index_CaveatEnforcerParams as CaveatEnforcerParams, type index_DelegatedCall as DelegatedCall, type index_GetGrantedExecutionPermissionsResult as GetGrantedExecutionPermissionsResult, type index_GetSupportedExecutionPermissionsResult as GetSupportedExecutionPermissionsResult, type index_MetaMaskExtensionClient as MetaMaskExtensionClient, type index_MetaMaskExtensionSchema as MetaMaskExtensionSchema, type index_PeriodTransferResult as PeriodTransferResult, type index_RequestExecutionPermissionsParameters as RequestExecutionPermissionsParameters, type index_RequestExecutionPermissionsReturnType as RequestExecutionPermissionsReturnType, 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 };
|
|
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 };
|
|
236
269
|
}
|
|
237
270
|
|
|
238
|
-
export { type CaveatEnforcerParams as C, type
|
|
271
|
+
export { type SupportedPermissionInfo as A, type PermissionTypes as B, type CaveatEnforcerParams as C, type NativeTokenPeriodicPermission as D, type Erc7715Client as E, type Erc20TokenStreamPermission as F, type GetSupportedExecutionPermissionsResult as G, type Erc20TokenPeriodicPermission as H, type Erc20TokenRevocationPermission as I, type RpcGetSupportedExecutionPermissionsResult as J, type RpcGetGrantedExecutionPermissionsResult as K, type RpcSupportedPermissionInfo as L, type MetaMaskExtensionClient as M, type NativeTokenStreamPermission as N, type DelegatedCall as O, type PeriodTransferResult as P, type RequestExecutionPermissionsParameters as R, type StreamingResult as S, erc7710WalletActions as a, erc7710BundlerActions as b, caveatEnforcerActions as c, getErc20StreamingEnforcerAvailableAmount as d, erc7715ProviderActions as e, getMultiTokenPeriodEnforcerAvailableAmount as f, getErc20PeriodTransferEnforcerAvailableAmount as g, getNativeTokenPeriodTransferEnforcerAvailableAmount as h, index as i, getNativeTokenStreamingEnforcerAvailableAmount as j, isValid7702Implementation as k, signDelegationActions as l, type SignDelegationParameters as m, type SignDelegationReturnType as n, signUserOperation as o, signUserOperationActions as p, type SignUserOperationParameters as q, type SignUserOperationReturnType as r, signDelegation as s, erc7715RequestExecutionPermissionsAction as t, type MetaMaskExtensionSchema as u, type RequestExecutionPermissionsReturnType as v, type PermissionRequestParameter as w, erc7715GetSupportedExecutionPermissionsAction as x, erc7715GetGrantedExecutionPermissionsAction as y, type GetGrantedExecutionPermissionsResult as z };
|