@metamask/smart-accounts-kit 1.6.0 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +76 -64
- package/dist/actions/index.cjs +4 -4
- package/dist/actions/index.d.cts +3 -3
- package/dist/actions/index.d.ts +3 -3
- package/dist/actions/index.mjs +3 -3
- package/dist/{caveats-gqMBZKkI.d.cts → caveats-BEKgygS8.d.cts} +1 -1
- package/dist/{caveats-B2OssjV4.d.ts → caveats-DPuxVdYU.d.ts} +1 -1
- package/dist/{chunk-JKVSTPEC.cjs → chunk-32RDDE5N.cjs} +13 -13
- package/dist/{chunk-JKVSTPEC.cjs.map → chunk-32RDDE5N.cjs.map} +1 -1
- package/dist/{chunk-TNGQTVSY.mjs → chunk-3KWKQ7PV.mjs} +2 -2
- package/dist/{chunk-TNGQTVSY.mjs.map → chunk-3KWKQ7PV.mjs.map} +1 -1
- package/dist/{chunk-EPU4O7FY.cjs → chunk-4GOGI2TA.cjs} +106 -106
- package/dist/{chunk-EPU4O7FY.cjs.map → chunk-4GOGI2TA.cjs.map} +1 -1
- package/dist/{chunk-2ZOWIAP3.cjs → chunk-6TSLFRJC.cjs} +62 -62
- package/dist/{chunk-2ZOWIAP3.cjs.map → chunk-6TSLFRJC.cjs.map} +1 -1
- package/dist/{chunk-YVU66KSH.mjs → chunk-EMPAUTIV.mjs} +2 -2
- package/dist/{chunk-W6HPAK4M.cjs → chunk-GHGCGV3C.cjs} +2 -2
- package/dist/{chunk-W6HPAK4M.cjs.map → chunk-GHGCGV3C.cjs.map} +1 -1
- package/dist/{chunk-L3EZCIY6.mjs → chunk-IERUQUKJ.mjs} +4 -4
- package/dist/{chunk-DCI2AN4N.cjs → chunk-KIXYMA7J.cjs} +15 -15
- package/dist/{chunk-DCI2AN4N.cjs.map → chunk-KIXYMA7J.cjs.map} +1 -1
- package/dist/{chunk-UJQ3JN3U.mjs → chunk-T6SWQZRX.mjs} +3 -3
- package/dist/{chunk-AZYTTGON.mjs → chunk-XUBMIW33.mjs} +3 -3
- package/dist/{chunk-K7GTZGKJ.mjs → chunk-YCNLPEPH.mjs} +2 -2
- package/dist/{chunk-PQPAEHJZ.cjs → chunk-YPUEM6YV.cjs} +12 -12
- package/dist/{chunk-PQPAEHJZ.cjs.map → chunk-YPUEM6YV.cjs.map} +1 -1
- package/dist/contracts/index.cjs +5 -5
- package/dist/contracts/index.d.cts +4 -4
- package/dist/contracts/index.d.ts +4 -4
- package/dist/contracts/index.mjs +4 -4
- package/dist/{decodeRevertReason-CmmCpmZ_.d.cts → decodeRevertReason-CSOClzsa.d.cts} +3 -3
- package/dist/{decodeRevertReason-dOTpJx2h.d.ts → decodeRevertReason-WjHVQ_Sz.d.ts} +3 -3
- package/dist/experimental/index.cjs +66 -38
- package/dist/experimental/index.cjs.map +1 -1
- package/dist/experimental/index.d.cts +4 -2
- package/dist/experimental/index.d.ts +4 -2
- package/dist/experimental/index.mjs +50 -22
- package/dist/experimental/index.mjs.map +1 -1
- package/dist/{index-B1Cmezvh.d.cts → index-BHm75OFP.d.cts} +1 -1
- package/dist/{index-BkgdU4LI.d.ts → index-BNHYZ9iU.d.ts} +2 -2
- package/dist/{index-DUJmm8Wz.d.ts → index-CgGKjHSr.d.ts} +2 -2
- package/dist/{index-Dv4jPzhe.d.cts → index-CsjbdUp_.d.cts} +2 -2
- package/dist/{index-LqiEgBjV.d.ts → index-DWvEgBtg.d.ts} +1 -1
- package/dist/{index-X7Qn3JTg.d.cts → index-DYJjOeTn.d.cts} +2 -2
- package/dist/index.cjs +19 -19
- package/dist/index.d.cts +8 -8
- package/dist/index.d.ts +8 -8
- package/dist/index.mjs +6 -6
- package/dist/{resolveCaveats-A9xC29l8.d.ts → resolveCaveats-aQPEogPk.d.cts} +2 -2
- package/dist/{resolveCaveats-A9xC29l8.d.cts → resolveCaveats-aQPEogPk.d.ts} +2 -2
- package/dist/utils/index.cjs +4 -4
- package/dist/utils/index.d.cts +5 -5
- package/dist/utils/index.d.ts +5 -5
- package/dist/utils/index.mjs +3 -3
- package/package.json +8 -8
- /package/dist/{chunk-YVU66KSH.mjs.map → chunk-EMPAUTIV.mjs.map} +0 -0
- /package/dist/{chunk-L3EZCIY6.mjs.map → chunk-IERUQUKJ.mjs.map} +0 -0
- /package/dist/{chunk-UJQ3JN3U.mjs.map → chunk-T6SWQZRX.mjs.map} +0 -0
- /package/dist/{chunk-AZYTTGON.mjs.map → chunk-XUBMIW33.mjs.map} +0 -0
- /package/dist/{chunk-K7GTZGKJ.mjs.map → chunk-YCNLPEPH.mjs.map} +0 -0
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkYPUEM6YVcjs = require('./chunk-YPUEM6YV.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -23,11 +23,11 @@ var _chunk2OS36DVVcjs = require('./chunk-2OS36DVV.cjs');
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _chunkGHGCGV3Ccjs = require('./chunk-GHGCGV3C.cjs');
|
|
27
27
|
|
|
28
28
|
// src/actions/index.ts
|
|
29
29
|
var actions_exports = {};
|
|
30
|
-
|
|
30
|
+
_chunkGHGCGV3Ccjs.__export.call(void 0, actions_exports, {
|
|
31
31
|
caveatEnforcerActions: () => caveatEnforcerActions,
|
|
32
32
|
erc7710BundlerActions: () => erc7710BundlerActions,
|
|
33
33
|
erc7710WalletActions: () => erc7710WalletActions,
|
|
@@ -53,7 +53,7 @@ _chunkW6HPAK4Mcjs.__export.call(void 0, actions_exports, {
|
|
|
53
53
|
var _delegationabis = require('@metamask/delegation-abis');
|
|
54
54
|
var _viem = require('viem');
|
|
55
55
|
async function sendTransactionWithDelegationAction(client, args) {
|
|
56
|
-
|
|
56
|
+
_chunkGHGCGV3Ccjs.trackSmartAccountsKitFunctionCall.call(void 0, "sendTransactionWithDelegationAction", {
|
|
57
57
|
chainId: _nullishCoalesce(_optionalChain([client, 'access', _ => _.chain, 'optionalAccess', _2 => _2.id]), () => ( null))
|
|
58
58
|
});
|
|
59
59
|
if (!args.to) {
|
|
@@ -72,7 +72,7 @@ async function sendTransactionWithDelegationAction(client, args) {
|
|
|
72
72
|
);
|
|
73
73
|
}
|
|
74
74
|
const executions = [
|
|
75
|
-
|
|
75
|
+
_chunkGHGCGV3Ccjs.createExecution.call(void 0, {
|
|
76
76
|
target: args.to,
|
|
77
77
|
value: args.value,
|
|
78
78
|
callData: args.data
|
|
@@ -82,9 +82,9 @@ async function sendTransactionWithDelegationAction(client, args) {
|
|
|
82
82
|
abi: _delegationabis.DelegationManager,
|
|
83
83
|
functionName: "redeemDelegations",
|
|
84
84
|
args: [
|
|
85
|
-
[
|
|
85
|
+
[_chunkGHGCGV3Ccjs.encodeDelegations.call(void 0, args.permissionContext)],
|
|
86
86
|
["0x0000000000000000000000000000000000000000000000000000000000000000" /* SingleDefault */],
|
|
87
|
-
|
|
87
|
+
_chunkGHGCGV3Ccjs.encodeExecutionCalldatas.call(void 0, [executions])
|
|
88
88
|
]
|
|
89
89
|
});
|
|
90
90
|
const {
|
|
@@ -101,7 +101,7 @@ async function sendTransactionWithDelegationAction(client, args) {
|
|
|
101
101
|
return hash;
|
|
102
102
|
}
|
|
103
103
|
async function sendUserOperationWithDelegationAction(client, parameters) {
|
|
104
|
-
|
|
104
|
+
_chunkGHGCGV3Ccjs.trackSmartAccountsKitFunctionCall.call(void 0, "sendUserOperationWithDelegationAction", {
|
|
105
105
|
chainId: _nullishCoalesce(_optionalChain([client, 'access', _5 => _5.chain, 'optionalAccess', _6 => _6.id]), () => ( null)),
|
|
106
106
|
callCount: parameters.calls.length,
|
|
107
107
|
hasDependencies: parameters.dependencies !== void 0
|
|
@@ -156,7 +156,7 @@ async function sendUserOperationWithDelegationAction(client, parameters) {
|
|
|
156
156
|
}
|
|
157
157
|
return {
|
|
158
158
|
...call,
|
|
159
|
-
permissionContext:
|
|
159
|
+
permissionContext: _chunkGHGCGV3Ccjs.encodeDelegations.call(void 0, permissionContext)
|
|
160
160
|
};
|
|
161
161
|
});
|
|
162
162
|
return client.sendUserOperation(
|
|
@@ -172,7 +172,7 @@ function permissionRequestToRpc(parameters) {
|
|
|
172
172
|
parameters.permission.type
|
|
173
173
|
);
|
|
174
174
|
const rules = [];
|
|
175
|
-
if (
|
|
175
|
+
if (_chunkGHGCGV3Ccjs.isDefined.call(void 0, expiry)) {
|
|
176
176
|
rules.push({
|
|
177
177
|
type: "expiry",
|
|
178
178
|
data: {
|
|
@@ -180,7 +180,7 @@ function permissionRequestToRpc(parameters) {
|
|
|
180
180
|
}
|
|
181
181
|
});
|
|
182
182
|
}
|
|
183
|
-
if (
|
|
183
|
+
if (_chunkGHGCGV3Ccjs.isDefined.call(void 0, redeemer)) {
|
|
184
184
|
if (redeemer.length === 0) {
|
|
185
185
|
throw new Error(
|
|
186
186
|
"Invalid redeemers: must specify at least one redeemer address"
|
|
@@ -198,7 +198,7 @@ function permissionRequestToRpc(parameters) {
|
|
|
198
198
|
data: { addresses }
|
|
199
199
|
});
|
|
200
200
|
}
|
|
201
|
-
if (
|
|
201
|
+
if (_chunkGHGCGV3Ccjs.isDefined.call(void 0, payee)) {
|
|
202
202
|
if (payee.length === 0) {
|
|
203
203
|
throw new Error(
|
|
204
204
|
"Invalid payees: must specify at least one payee address"
|
|
@@ -277,13 +277,13 @@ function nativeTokenStreamPermissionToRpc(permission) {
|
|
|
277
277
|
isAdjustmentAllowed
|
|
278
278
|
} = permission;
|
|
279
279
|
const optionalFields = {
|
|
280
|
-
...
|
|
281
|
-
initialAmount:
|
|
280
|
+
..._chunkGHGCGV3Ccjs.isDefined.call(void 0, initialAmount) && {
|
|
281
|
+
initialAmount: _chunkGHGCGV3Ccjs.toHexOrThrow.call(void 0, initialAmount, "initialAmount")
|
|
282
282
|
},
|
|
283
|
-
...
|
|
284
|
-
maxAmount:
|
|
283
|
+
..._chunkGHGCGV3Ccjs.isDefined.call(void 0, maxAmount) && {
|
|
284
|
+
maxAmount: _chunkGHGCGV3Ccjs.toHexOrThrow.call(void 0, maxAmount, "maxAmount")
|
|
285
285
|
},
|
|
286
|
-
...
|
|
286
|
+
..._chunkGHGCGV3Ccjs.isDefined.call(void 0, startTime) && {
|
|
287
287
|
startTime: Number(startTime)
|
|
288
288
|
},
|
|
289
289
|
...justification ? { justification } : {}
|
|
@@ -291,7 +291,7 @@ function nativeTokenStreamPermissionToRpc(permission) {
|
|
|
291
291
|
return {
|
|
292
292
|
type: "native-token-stream",
|
|
293
293
|
data: {
|
|
294
|
-
amountPerSecond:
|
|
294
|
+
amountPerSecond: _chunkGHGCGV3Ccjs.toHexOrThrow.call(void 0, amountPerSecond, "amountPerSecond"),
|
|
295
295
|
...optionalFields
|
|
296
296
|
},
|
|
297
297
|
isAdjustmentAllowed
|
|
@@ -310,13 +310,13 @@ function erc20TokenStreamPermissionToRpc(permission) {
|
|
|
310
310
|
isAdjustmentAllowed
|
|
311
311
|
} = permission;
|
|
312
312
|
const optionalFields = {
|
|
313
|
-
...
|
|
314
|
-
initialAmount:
|
|
313
|
+
..._chunkGHGCGV3Ccjs.isDefined.call(void 0, initialAmount) && {
|
|
314
|
+
initialAmount: _chunkGHGCGV3Ccjs.toHexOrThrow.call(void 0, initialAmount, "initialAmount")
|
|
315
315
|
},
|
|
316
|
-
...
|
|
317
|
-
maxAmount:
|
|
316
|
+
..._chunkGHGCGV3Ccjs.isDefined.call(void 0, maxAmount) && {
|
|
317
|
+
maxAmount: _chunkGHGCGV3Ccjs.toHexOrThrow.call(void 0, maxAmount, "maxAmount")
|
|
318
318
|
},
|
|
319
|
-
...
|
|
319
|
+
..._chunkGHGCGV3Ccjs.isDefined.call(void 0, startTime) && {
|
|
320
320
|
startTime: Number(startTime)
|
|
321
321
|
},
|
|
322
322
|
...justification ? { justification } : {}
|
|
@@ -324,8 +324,8 @@ function erc20TokenStreamPermissionToRpc(permission) {
|
|
|
324
324
|
return {
|
|
325
325
|
type: "erc20-token-stream",
|
|
326
326
|
data: {
|
|
327
|
-
tokenAddress:
|
|
328
|
-
amountPerSecond:
|
|
327
|
+
tokenAddress: _chunkGHGCGV3Ccjs.toHexOrThrow.call(void 0, tokenAddress, "tokenAddress"),
|
|
328
|
+
amountPerSecond: _chunkGHGCGV3Ccjs.toHexOrThrow.call(void 0, amountPerSecond, "amountPerSecond"),
|
|
329
329
|
...optionalFields
|
|
330
330
|
},
|
|
331
331
|
isAdjustmentAllowed
|
|
@@ -337,7 +337,7 @@ function nativeTokenPeriodicPermissionToRpc(permission) {
|
|
|
337
337
|
isAdjustmentAllowed
|
|
338
338
|
} = permission;
|
|
339
339
|
const optionalFields = {
|
|
340
|
-
...
|
|
340
|
+
..._chunkGHGCGV3Ccjs.isDefined.call(void 0, startTime) && {
|
|
341
341
|
startTime: Number(startTime)
|
|
342
342
|
},
|
|
343
343
|
...justification ? { justification } : {}
|
|
@@ -345,7 +345,7 @@ function nativeTokenPeriodicPermissionToRpc(permission) {
|
|
|
345
345
|
return {
|
|
346
346
|
type: "native-token-periodic",
|
|
347
347
|
data: {
|
|
348
|
-
periodAmount:
|
|
348
|
+
periodAmount: _chunkGHGCGV3Ccjs.toHexOrThrow.call(void 0, periodAmount, "periodAmount"),
|
|
349
349
|
periodDuration: Number(periodDuration),
|
|
350
350
|
...optionalFields
|
|
351
351
|
},
|
|
@@ -364,7 +364,7 @@ function erc20TokenPeriodicPermissionToRpc(permission) {
|
|
|
364
364
|
isAdjustmentAllowed
|
|
365
365
|
} = permission;
|
|
366
366
|
const optionalFields = {
|
|
367
|
-
...
|
|
367
|
+
..._chunkGHGCGV3Ccjs.isDefined.call(void 0, startTime) && {
|
|
368
368
|
startTime: Number(startTime)
|
|
369
369
|
},
|
|
370
370
|
...justification ? { justification } : {}
|
|
@@ -372,8 +372,8 @@ function erc20TokenPeriodicPermissionToRpc(permission) {
|
|
|
372
372
|
return {
|
|
373
373
|
type: "erc20-token-periodic",
|
|
374
374
|
data: {
|
|
375
|
-
tokenAddress:
|
|
376
|
-
periodAmount:
|
|
375
|
+
tokenAddress: _chunkGHGCGV3Ccjs.toHexOrThrow.call(void 0, tokenAddress, "tokenAddress"),
|
|
376
|
+
periodAmount: _chunkGHGCGV3Ccjs.toHexOrThrow.call(void 0, periodAmount, "periodAmount"),
|
|
377
377
|
periodDuration: Number(periodDuration),
|
|
378
378
|
...optionalFields
|
|
379
379
|
},
|
|
@@ -386,7 +386,7 @@ function nativeTokenAllowancePermissionToRpc(permission) {
|
|
|
386
386
|
isAdjustmentAllowed
|
|
387
387
|
} = permission;
|
|
388
388
|
const optionalFields = {
|
|
389
|
-
...
|
|
389
|
+
..._chunkGHGCGV3Ccjs.isDefined.call(void 0, startTime) && {
|
|
390
390
|
startTime: Number(startTime)
|
|
391
391
|
},
|
|
392
392
|
...justification ? { justification } : {}
|
|
@@ -394,7 +394,7 @@ function nativeTokenAllowancePermissionToRpc(permission) {
|
|
|
394
394
|
return {
|
|
395
395
|
type: "native-token-allowance",
|
|
396
396
|
data: {
|
|
397
|
-
allowanceAmount:
|
|
397
|
+
allowanceAmount: _chunkGHGCGV3Ccjs.toHexOrThrow.call(void 0, allowanceAmount, "allowanceAmount"),
|
|
398
398
|
...optionalFields
|
|
399
399
|
},
|
|
400
400
|
isAdjustmentAllowed
|
|
@@ -406,7 +406,7 @@ function erc20TokenAllowancePermissionToRpc(permission) {
|
|
|
406
406
|
isAdjustmentAllowed
|
|
407
407
|
} = permission;
|
|
408
408
|
const optionalFields = {
|
|
409
|
-
...
|
|
409
|
+
..._chunkGHGCGV3Ccjs.isDefined.call(void 0, startTime) && {
|
|
410
410
|
startTime: Number(startTime)
|
|
411
411
|
},
|
|
412
412
|
...justification ? { justification } : {}
|
|
@@ -414,8 +414,8 @@ function erc20TokenAllowancePermissionToRpc(permission) {
|
|
|
414
414
|
return {
|
|
415
415
|
type: "erc20-token-allowance",
|
|
416
416
|
data: {
|
|
417
|
-
tokenAddress:
|
|
418
|
-
allowanceAmount:
|
|
417
|
+
tokenAddress: _chunkGHGCGV3Ccjs.toHexOrThrow.call(void 0, tokenAddress, "tokenAddress"),
|
|
418
|
+
allowanceAmount: _chunkGHGCGV3Ccjs.toHexOrThrow.call(void 0, allowanceAmount, "allowanceAmount"),
|
|
419
419
|
...optionalFields
|
|
420
420
|
},
|
|
421
421
|
isAdjustmentAllowed
|
|
@@ -534,7 +534,7 @@ function rpcSupportedPermissionsToDeveloper(result) {
|
|
|
534
534
|
|
|
535
535
|
// src/actions/erc7715GetGrantedExecutionPermissionsAction.ts
|
|
536
536
|
async function erc7715GetGrantedExecutionPermissionsAction(client) {
|
|
537
|
-
|
|
537
|
+
_chunkGHGCGV3Ccjs.trackSmartAccountsKitFunctionCall.call(void 0,
|
|
538
538
|
"erc7715GetGrantedExecutionPermissionsAction",
|
|
539
539
|
{
|
|
540
540
|
chainId: _nullishCoalesce(_optionalChain([client, 'access', _11 => _11.chain, 'optionalAccess', _12 => _12.id]), () => ( null))
|
|
@@ -555,7 +555,7 @@ async function erc7715GetGrantedExecutionPermissionsAction(client) {
|
|
|
555
555
|
|
|
556
556
|
// src/actions/erc7715GetSupportedExecutionPermissionsAction.ts
|
|
557
557
|
async function erc7715GetSupportedExecutionPermissionsAction(client) {
|
|
558
|
-
|
|
558
|
+
_chunkGHGCGV3Ccjs.trackSmartAccountsKitFunctionCall.call(void 0,
|
|
559
559
|
"erc7715GetSupportedExecutionPermissionsAction",
|
|
560
560
|
{
|
|
561
561
|
chainId: _nullishCoalesce(_optionalChain([client, 'access', _13 => _13.chain, 'optionalAccess', _14 => _14.id]), () => ( null))
|
|
@@ -576,7 +576,7 @@ async function erc7715GetSupportedExecutionPermissionsAction(client) {
|
|
|
576
576
|
|
|
577
577
|
// src/actions/erc7715RequestExecutionPermissionsAction.ts
|
|
578
578
|
async function erc7715RequestExecutionPermissionsAction(client, parameters) {
|
|
579
|
-
|
|
579
|
+
_chunkGHGCGV3Ccjs.trackSmartAccountsKitFunctionCall.call(void 0,
|
|
580
580
|
"erc7715RequestExecutionPermissionsAction",
|
|
581
581
|
{
|
|
582
582
|
chainId: _nullishCoalesce(_optionalChain([client, 'access', _15 => _15.chain, 'optionalAccess', _16 => _16.id]), () => ( null)),
|
|
@@ -618,7 +618,7 @@ async function signDelegation(client, parameters) {
|
|
|
618
618
|
throw new (0, _viem.BaseError)("Account not found. Please provide an account.");
|
|
619
619
|
}
|
|
620
620
|
const account = _accounts.parseAccount.call(void 0, accountParam);
|
|
621
|
-
const typedData =
|
|
621
|
+
const typedData = _chunkGHGCGV3Ccjs.prepareSignDelegationTypedData.call(void 0, {
|
|
622
622
|
delegation,
|
|
623
623
|
delegationManager,
|
|
624
624
|
chainId,
|
|
@@ -666,7 +666,7 @@ async function signAndPrependRedelegation(client, options) {
|
|
|
666
666
|
...unsignedDelegation,
|
|
667
667
|
signature
|
|
668
668
|
};
|
|
669
|
-
const newPermissionContext =
|
|
669
|
+
const newPermissionContext = _chunkGHGCGV3Ccjs.encodeDelegations.call(void 0, [
|
|
670
670
|
signedDelegation,
|
|
671
671
|
...delegations
|
|
672
672
|
]);
|
|
@@ -681,14 +681,14 @@ function resolveRedelegationArgs(client, parameters) {
|
|
|
681
681
|
throw new (0, _viem.BaseError)("Account not found. Please provide an account.");
|
|
682
682
|
}
|
|
683
683
|
const account = _accounts.parseAccount.call(void 0, accountParam);
|
|
684
|
-
const delegations =
|
|
684
|
+
const delegations = _chunkGHGCGV3Ccjs.decodeDelegations.call(void 0, permissionContext);
|
|
685
685
|
const parentDelegation = delegations[0];
|
|
686
686
|
if (!parentDelegation) {
|
|
687
687
|
throw new (0, _viem.BaseError)(
|
|
688
688
|
"Permission context must contain at least one delegation"
|
|
689
689
|
);
|
|
690
690
|
}
|
|
691
|
-
const isParentOpenDelegation = parentDelegation.delegate.toLowerCase() ===
|
|
691
|
+
const isParentOpenDelegation = parentDelegation.delegate.toLowerCase() === _chunkGHGCGV3Ccjs.ANY_BENEFICIARY.toLowerCase();
|
|
692
692
|
const from = isParentOpenDelegation ? account.address : parentDelegation.delegate;
|
|
693
693
|
return { account, delegations, parentDelegation, from };
|
|
694
694
|
}
|
|
@@ -696,12 +696,12 @@ async function redelegatePermissionContextAction(client, parameters) {
|
|
|
696
696
|
const { environment, scope, caveats, salt, to } = parameters;
|
|
697
697
|
const chainId = resolveChainId(client, parameters.chainId);
|
|
698
698
|
const { account, delegations, parentDelegation, from } = resolveRedelegationArgs(client, parameters);
|
|
699
|
-
|
|
699
|
+
_chunkGHGCGV3Ccjs.trackSmartAccountsKitFunctionCall.call(void 0, "redelegatePermissionContext", {
|
|
700
700
|
chainId,
|
|
701
701
|
hasScope: scope !== void 0,
|
|
702
702
|
hasCaveats: caveats !== void 0
|
|
703
703
|
});
|
|
704
|
-
const unsignedDelegation =
|
|
704
|
+
const unsignedDelegation = _chunkGHGCGV3Ccjs.createDelegation.call(void 0, {
|
|
705
705
|
environment,
|
|
706
706
|
from,
|
|
707
707
|
to,
|
|
@@ -722,12 +722,12 @@ async function redelegatePermissionContextOpenAction(client, parameters) {
|
|
|
722
722
|
const { environment, scope, caveats, salt } = parameters;
|
|
723
723
|
const chainId = resolveChainId(client, parameters.chainId);
|
|
724
724
|
const { account, delegations, parentDelegation, from } = resolveRedelegationArgs(client, parameters);
|
|
725
|
-
|
|
725
|
+
_chunkGHGCGV3Ccjs.trackSmartAccountsKitFunctionCall.call(void 0, "redelegatePermissionContextOpen", {
|
|
726
726
|
chainId,
|
|
727
727
|
hasScope: scope !== void 0,
|
|
728
728
|
hasCaveats: caveats !== void 0
|
|
729
729
|
});
|
|
730
|
-
const unsignedDelegation =
|
|
730
|
+
const unsignedDelegation = _chunkGHGCGV3Ccjs.createOpenDelegation.call(void 0, {
|
|
731
731
|
environment,
|
|
732
732
|
from,
|
|
733
733
|
scope,
|
|
@@ -795,7 +795,7 @@ function getEnforcerAddress({
|
|
|
795
795
|
return enforcerAddress;
|
|
796
796
|
}
|
|
797
797
|
async function getErc20PeriodTransferEnforcerAvailableAmount(client, environment, params) {
|
|
798
|
-
|
|
798
|
+
_chunkGHGCGV3Ccjs.trackSmartAccountsKitFunctionCall.call(void 0,
|
|
799
799
|
"getErc20PeriodTransferEnforcerAvailableAmount",
|
|
800
800
|
{
|
|
801
801
|
chainId: _nullishCoalesce(_optionalChain([client, 'access', _21 => _21.chain, 'optionalAccess', _22 => _22.id]), () => ( null))
|
|
@@ -807,13 +807,13 @@ async function getErc20PeriodTransferEnforcerAvailableAmount(client, environment
|
|
|
807
807
|
enforcerName,
|
|
808
808
|
environment
|
|
809
809
|
});
|
|
810
|
-
const delegationHash =
|
|
810
|
+
const delegationHash = _chunkGHGCGV3Ccjs.hashDelegation.call(void 0, params.delegation);
|
|
811
811
|
const { terms } = findMatchingCaveat({
|
|
812
812
|
delegation: params.delegation,
|
|
813
813
|
enforcerAddress,
|
|
814
814
|
enforcerName
|
|
815
815
|
});
|
|
816
|
-
return
|
|
816
|
+
return _chunkYPUEM6YVcjs.read_exports.getAvailableAmount({
|
|
817
817
|
client,
|
|
818
818
|
contractAddress: enforcerAddress,
|
|
819
819
|
delegationHash,
|
|
@@ -822,7 +822,7 @@ async function getErc20PeriodTransferEnforcerAvailableAmount(client, environment
|
|
|
822
822
|
});
|
|
823
823
|
}
|
|
824
824
|
async function getErc20StreamingEnforcerAvailableAmount(client, environment, params) {
|
|
825
|
-
|
|
825
|
+
_chunkGHGCGV3Ccjs.trackSmartAccountsKitFunctionCall.call(void 0,
|
|
826
826
|
"getErc20StreamingEnforcerAvailableAmount",
|
|
827
827
|
{
|
|
828
828
|
chainId: _nullishCoalesce(_optionalChain([client, 'access', _23 => _23.chain, 'optionalAccess', _24 => _24.id]), () => ( null))
|
|
@@ -834,13 +834,13 @@ async function getErc20StreamingEnforcerAvailableAmount(client, environment, par
|
|
|
834
834
|
enforcerName,
|
|
835
835
|
environment
|
|
836
836
|
});
|
|
837
|
-
const delegationHash =
|
|
837
|
+
const delegationHash = _chunkGHGCGV3Ccjs.hashDelegation.call(void 0, params.delegation);
|
|
838
838
|
const { terms } = findMatchingCaveat({
|
|
839
839
|
delegation: params.delegation,
|
|
840
840
|
enforcerAddress,
|
|
841
841
|
enforcerName
|
|
842
842
|
});
|
|
843
|
-
return
|
|
843
|
+
return _chunkYPUEM6YVcjs.read_exports2.getAvailableAmount({
|
|
844
844
|
client,
|
|
845
845
|
contractAddress: enforcerAddress,
|
|
846
846
|
delegationManager,
|
|
@@ -849,7 +849,7 @@ async function getErc20StreamingEnforcerAvailableAmount(client, environment, par
|
|
|
849
849
|
});
|
|
850
850
|
}
|
|
851
851
|
async function getMultiTokenPeriodEnforcerAvailableAmount(client, environment, params) {
|
|
852
|
-
|
|
852
|
+
_chunkGHGCGV3Ccjs.trackSmartAccountsKitFunctionCall.call(void 0,
|
|
853
853
|
"getMultiTokenPeriodEnforcerAvailableAmount",
|
|
854
854
|
{
|
|
855
855
|
chainId: _nullishCoalesce(_optionalChain([client, 'access', _25 => _25.chain, 'optionalAccess', _26 => _26.id]), () => ( null))
|
|
@@ -861,13 +861,13 @@ async function getMultiTokenPeriodEnforcerAvailableAmount(client, environment, p
|
|
|
861
861
|
enforcerName,
|
|
862
862
|
environment
|
|
863
863
|
});
|
|
864
|
-
const delegationHash =
|
|
864
|
+
const delegationHash = _chunkGHGCGV3Ccjs.hashDelegation.call(void 0, params.delegation);
|
|
865
865
|
const { terms, args } = findMatchingCaveat({
|
|
866
866
|
delegation: params.delegation,
|
|
867
867
|
enforcerAddress,
|
|
868
868
|
enforcerName
|
|
869
869
|
});
|
|
870
|
-
return
|
|
870
|
+
return _chunkYPUEM6YVcjs.read_exports3.getAvailableAmount({
|
|
871
871
|
client,
|
|
872
872
|
contractAddress: enforcerAddress,
|
|
873
873
|
delegationHash,
|
|
@@ -877,7 +877,7 @@ async function getMultiTokenPeriodEnforcerAvailableAmount(client, environment, p
|
|
|
877
877
|
});
|
|
878
878
|
}
|
|
879
879
|
async function getNativeTokenPeriodTransferEnforcerAvailableAmount(client, environment, params) {
|
|
880
|
-
|
|
880
|
+
_chunkGHGCGV3Ccjs.trackSmartAccountsKitFunctionCall.call(void 0,
|
|
881
881
|
"getNativeTokenPeriodTransferEnforcerAvailableAmount",
|
|
882
882
|
{
|
|
883
883
|
chainId: _nullishCoalesce(_optionalChain([client, 'access', _27 => _27.chain, 'optionalAccess', _28 => _28.id]), () => ( null))
|
|
@@ -889,13 +889,13 @@ async function getNativeTokenPeriodTransferEnforcerAvailableAmount(client, envir
|
|
|
889
889
|
enforcerName,
|
|
890
890
|
environment
|
|
891
891
|
});
|
|
892
|
-
const delegationHash =
|
|
892
|
+
const delegationHash = _chunkGHGCGV3Ccjs.hashDelegation.call(void 0, params.delegation);
|
|
893
893
|
const { terms } = findMatchingCaveat({
|
|
894
894
|
delegation: params.delegation,
|
|
895
895
|
enforcerAddress,
|
|
896
896
|
enforcerName
|
|
897
897
|
});
|
|
898
|
-
return
|
|
898
|
+
return _chunkYPUEM6YVcjs.read_exports4.getAvailableAmount({
|
|
899
899
|
client,
|
|
900
900
|
contractAddress: enforcerAddress,
|
|
901
901
|
delegationHash,
|
|
@@ -904,7 +904,7 @@ async function getNativeTokenPeriodTransferEnforcerAvailableAmount(client, envir
|
|
|
904
904
|
});
|
|
905
905
|
}
|
|
906
906
|
async function getNativeTokenStreamingEnforcerAvailableAmount(client, environment, params) {
|
|
907
|
-
|
|
907
|
+
_chunkGHGCGV3Ccjs.trackSmartAccountsKitFunctionCall.call(void 0,
|
|
908
908
|
"getNativeTokenStreamingEnforcerAvailableAmount",
|
|
909
909
|
{
|
|
910
910
|
chainId: _nullishCoalesce(_optionalChain([client, 'access', _29 => _29.chain, 'optionalAccess', _30 => _30.id]), () => ( null))
|
|
@@ -916,13 +916,13 @@ async function getNativeTokenStreamingEnforcerAvailableAmount(client, environmen
|
|
|
916
916
|
enforcerName,
|
|
917
917
|
environment
|
|
918
918
|
});
|
|
919
|
-
const delegationHash =
|
|
919
|
+
const delegationHash = _chunkGHGCGV3Ccjs.hashDelegation.call(void 0, params.delegation);
|
|
920
920
|
const { terms } = findMatchingCaveat({
|
|
921
921
|
delegation: params.delegation,
|
|
922
922
|
enforcerAddress,
|
|
923
923
|
enforcerName
|
|
924
924
|
});
|
|
925
|
-
return
|
|
925
|
+
return _chunkYPUEM6YVcjs.read_exports5.getAvailableAmount({
|
|
926
926
|
client,
|
|
927
927
|
contractAddress: enforcerAddress,
|
|
928
928
|
delegationManager,
|
|
@@ -1131,4 +1131,4 @@ var erc7710BundlerActions = () => (client) => ({
|
|
|
1131
1131
|
|
|
1132
1132
|
|
|
1133
1133
|
exports.isValid7702Implementation = isValid7702Implementation; exports.erc7715GetGrantedExecutionPermissionsAction = erc7715GetGrantedExecutionPermissionsAction; exports.erc7715GetSupportedExecutionPermissionsAction = erc7715GetSupportedExecutionPermissionsAction; exports.erc7715RequestExecutionPermissionsAction = erc7715RequestExecutionPermissionsAction; exports.signDelegation = signDelegation; exports.signDelegationActions = signDelegationActions; exports.redelegatePermissionContextAction = redelegatePermissionContextAction; exports.redelegatePermissionContextOpenAction = redelegatePermissionContextOpenAction; exports.getErc20PeriodTransferEnforcerAvailableAmount = getErc20PeriodTransferEnforcerAvailableAmount; exports.getErc20StreamingEnforcerAvailableAmount = getErc20StreamingEnforcerAvailableAmount; exports.getMultiTokenPeriodEnforcerAvailableAmount = getMultiTokenPeriodEnforcerAvailableAmount; exports.getNativeTokenPeriodTransferEnforcerAvailableAmount = getNativeTokenPeriodTransferEnforcerAvailableAmount; exports.getNativeTokenStreamingEnforcerAvailableAmount = getNativeTokenStreamingEnforcerAvailableAmount; exports.caveatEnforcerActions = caveatEnforcerActions; exports.signUserOperation = signUserOperation; exports.signUserOperationActions = signUserOperationActions; exports.erc7715ProviderActions = erc7715ProviderActions; exports.erc7710WalletActions = erc7710WalletActions; exports.erc7710BundlerActions = erc7710BundlerActions; exports.actions_exports = actions_exports;
|
|
1134
|
-
//# sourceMappingURL=chunk-
|
|
1134
|
+
//# sourceMappingURL=chunk-6TSLFRJC.cjs.map
|