@metamask/smart-accounts-kit 1.4.0 → 1.6.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 +57 -24
- package/dist/actions/index.cjs +9 -6
- package/dist/actions/index.cjs.map +1 -1
- package/dist/actions/index.d.cts +5 -3
- package/dist/actions/index.d.ts +5 -3
- package/dist/actions/index.mjs +8 -5
- package/dist/{caveats-BhjGBVHX.d.ts → caveats-B2OssjV4.d.ts} +1 -2
- package/dist/{caveats-CeHBbmt_.d.cts → caveats-gqMBZKkI.d.cts} +1 -2
- package/dist/{chunk-SOFB2MXG.cjs → chunk-2OS36DVV.cjs} +8 -1
- package/dist/chunk-2OS36DVV.cjs.map +1 -0
- package/dist/{chunk-6CEOFJY5.cjs → chunk-2ZOWIAP3.cjs} +266 -114
- package/dist/chunk-2ZOWIAP3.cjs.map +1 -0
- package/dist/{chunk-R2WT54GZ.mjs → chunk-AZYTTGON.mjs} +214 -62
- package/dist/chunk-AZYTTGON.mjs.map +1 -0
- package/dist/{chunk-MVBU3LRV.cjs → chunk-DCI2AN4N.cjs} +15 -17
- package/dist/chunk-DCI2AN4N.cjs.map +1 -0
- package/dist/{chunk-RR2AMG4A.cjs → chunk-EPU4O7FY.cjs} +158 -151
- package/dist/chunk-EPU4O7FY.cjs.map +1 -0
- package/dist/{chunk-QCULIK3O.mjs → chunk-GMGJRC3D.mjs} +8 -1
- package/dist/chunk-GMGJRC3D.mjs.map +1 -0
- package/dist/chunk-IMO6XNDJ.mjs +14 -0
- package/dist/chunk-IMO6XNDJ.mjs.map +1 -0
- package/dist/chunk-IQT6XFDT.cjs +14 -0
- package/dist/chunk-IQT6XFDT.cjs.map +1 -0
- package/dist/{chunk-SO5JAXGD.cjs → chunk-JKVSTPEC.cjs} +200 -18
- package/dist/chunk-JKVSTPEC.cjs.map +1 -0
- package/dist/{chunk-DVJX76J3.mjs → chunk-K7GTZGKJ.mjs} +2 -2
- package/dist/{chunk-HQHXGWNJ.mjs → chunk-L3EZCIY6.mjs} +67 -60
- package/dist/chunk-L3EZCIY6.mjs.map +1 -0
- package/dist/{chunk-XZ7UMCG3.cjs → chunk-PQPAEHJZ.cjs} +12 -12
- package/dist/{chunk-XZ7UMCG3.cjs.map → chunk-PQPAEHJZ.cjs.map} +1 -1
- package/dist/{chunk-EEIIVBNV.mjs → chunk-TNGQTVSY.mjs} +225 -53
- package/dist/chunk-TNGQTVSY.mjs.map +1 -0
- package/dist/{chunk-FG2CQGSE.mjs → chunk-UJQ3JN3U.mjs} +4 -6
- package/dist/{chunk-FG2CQGSE.mjs.map → chunk-UJQ3JN3U.mjs.map} +1 -1
- package/dist/{chunk-TMO23YRP.cjs → chunk-W6HPAK4M.cjs} +262 -90
- package/dist/chunk-W6HPAK4M.cjs.map +1 -0
- package/dist/{chunk-ZGBFPD4O.mjs → chunk-YVU66KSH.mjs} +188 -6
- package/dist/chunk-YVU66KSH.mjs.map +1 -0
- package/dist/contracts/index.cjs +5 -6
- package/dist/contracts/index.cjs.map +1 -1
- package/dist/contracts/index.d.cts +4 -3
- package/dist/contracts/index.d.ts +4 -3
- package/dist/contracts/index.mjs +4 -5
- package/dist/decodeRevertReason-CmmCpmZ_.d.cts +72 -0
- package/dist/decodeRevertReason-dOTpJx2h.d.ts +72 -0
- package/dist/experimental/index.cjs +364 -9
- package/dist/experimental/index.cjs.map +1 -1
- package/dist/experimental/index.d.cts +39 -3
- package/dist/experimental/index.d.ts +39 -3
- package/dist/experimental/index.mjs +357 -2
- package/dist/experimental/index.mjs.map +1 -1
- package/dist/index-B1Cmezvh.d.cts +61 -0
- package/dist/{index-DRKgDSZW.d.ts → index-BkgdU4LI.d.ts} +99 -92
- package/dist/{index-Cg-JakqA.d.ts → index-DUJmm8Wz.d.ts} +46 -5
- package/dist/{index-DzL9ccjU.d.cts → index-Dv4jPzhe.d.cts} +99 -92
- package/dist/index-LqiEgBjV.d.ts +61 -0
- package/dist/{index-BToRQKyJ.d.cts → index-X7Qn3JTg.d.cts} +46 -5
- package/dist/index.cjs +22 -24
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -7
- package/dist/index.d.ts +8 -7
- package/dist/index.mjs +9 -11
- package/dist/index.mjs.map +1 -1
- package/dist/{delegation-CR99q1-n.d.ts → resolveCaveats-A9xC29l8.d.cts} +160 -111
- package/dist/{delegation-DoVULGYE.d.cts → resolveCaveats-A9xC29l8.d.ts} +160 -111
- package/dist/utils/index.cjs +13 -6
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.cts +8 -4
- package/dist/utils/index.d.ts +8 -4
- package/dist/utils/index.mjs +16 -9
- package/package.json +7 -6
- package/dist/chunk-4QXIOE7F.mjs +0 -79
- package/dist/chunk-4QXIOE7F.mjs.map +0 -1
- package/dist/chunk-6CEOFJY5.cjs.map +0 -1
- package/dist/chunk-EEIIVBNV.mjs.map +0 -1
- package/dist/chunk-HQHXGWNJ.mjs.map +0 -1
- package/dist/chunk-MOHCTPYQ.cjs +0 -79
- package/dist/chunk-MOHCTPYQ.cjs.map +0 -1
- package/dist/chunk-MVBU3LRV.cjs.map +0 -1
- package/dist/chunk-QCULIK3O.mjs.map +0 -1
- package/dist/chunk-R2WT54GZ.mjs.map +0 -1
- package/dist/chunk-RR2AMG4A.cjs.map +0 -1
- package/dist/chunk-SO5JAXGD.cjs.map +0 -1
- package/dist/chunk-SOFB2MXG.cjs.map +0 -1
- package/dist/chunk-TMO23YRP.cjs.map +0 -1
- package/dist/chunk-ZGBFPD4O.mjs.map +0 -1
- package/dist/types-BWaH4KH1.d.cts +0 -155
- package/dist/types-BWaH4KH1.d.ts +0 -155
- /package/dist/{chunk-DVJX76J3.mjs.map → chunk-K7GTZGKJ.mjs.map} +0 -0
|
@@ -36,6 +36,7 @@ var ScopeType = /* @__PURE__ */ ((ScopeType2) => {
|
|
|
36
36
|
var CaveatType = /* @__PURE__ */ ((CaveatType2) => {
|
|
37
37
|
CaveatType2["AllowedMethods"] = "allowedMethods";
|
|
38
38
|
CaveatType2["AllowedTargets"] = "allowedTargets";
|
|
39
|
+
CaveatType2["ApprovalRevocation"] = "approvalRevocation";
|
|
39
40
|
CaveatType2["Deployed"] = "deployed";
|
|
40
41
|
CaveatType2["AllowedCalldata"] = "allowedCalldata";
|
|
41
42
|
CaveatType2["Erc20BalanceChange"] = "erc20BalanceChange";
|
|
@@ -228,6 +229,26 @@ var allowedTargetsBuilder = (environment, config) => {
|
|
|
228
229
|
};
|
|
229
230
|
};
|
|
230
231
|
|
|
232
|
+
// src/caveatBuilder/approvalRevocationBuilder.ts
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
var approvalRevocation = "approvalRevocation";
|
|
237
|
+
var approvalRevocationBuilder = (environment, config) => {
|
|
238
|
+
const terms = _delegationcore.createApprovalRevocationTerms.call(void 0, config);
|
|
239
|
+
const {
|
|
240
|
+
caveatEnforcers: { ApprovalRevocationEnforcer }
|
|
241
|
+
} = environment;
|
|
242
|
+
if (!ApprovalRevocationEnforcer) {
|
|
243
|
+
throw new Error("ApprovalRevocationEnforcer not found in environment");
|
|
244
|
+
}
|
|
245
|
+
return {
|
|
246
|
+
enforcer: ApprovalRevocationEnforcer,
|
|
247
|
+
terms,
|
|
248
|
+
args: "0x00"
|
|
249
|
+
};
|
|
250
|
+
};
|
|
251
|
+
|
|
231
252
|
// src/caveatBuilder/argsEqualityCheckBuilder.ts
|
|
232
253
|
|
|
233
254
|
|
|
@@ -1041,7 +1062,7 @@ var valueLteBuilder = (environment, config) => {
|
|
|
1041
1062
|
|
|
1042
1063
|
// src/caveatBuilder/coreCaveatBuilder.ts
|
|
1043
1064
|
var createCaveatBuilder = (environment, config) => {
|
|
1044
|
-
const caveatBuilder = new CaveatBuilder(environment, config).extend(allowedMethods, allowedMethodsBuilder).extend(allowedTargets, allowedTargetsBuilder).extend(deployed, deployedBuilder).extend(allowedCalldata, allowedCalldataBuilder).extend(erc20BalanceChange, erc20BalanceChangeBuilder).extend(erc721BalanceChange, erc721BalanceChangeBuilder).extend(erc1155BalanceChange, erc1155BalanceChangeBuilder).extend(valueLte, valueLteBuilder).extend(limitedCalls, limitedCallsBuilder).extend(id, idBuilder).extend(nonce, nonceBuilder).extend(timestamp, timestampBuilder).extend(blockNumber, blockNumberBuilder).extend(erc20TransferAmount, erc20TransferAmountBuilder).extend(erc20Streaming, erc20StreamingBuilder).extend(nativeTokenStreaming, nativeTokenStreamingBuilder).extend(erc721Transfer, erc721TransferBuilder).extend(nativeTokenTransferAmount, nativeTokenTransferAmountBuilder).extend(nativeBalanceChange, nativeBalanceChangeBuilder).extend(redeemer, redeemerBuilder).extend(nativeTokenPayment, nativeTokenPaymentBuilder).extend(argsEqualityCheck, argsEqualityCheckBuilder).extend(
|
|
1065
|
+
const caveatBuilder = new CaveatBuilder(environment, config).extend(allowedMethods, allowedMethodsBuilder).extend(allowedTargets, allowedTargetsBuilder).extend(approvalRevocation, approvalRevocationBuilder).extend(deployed, deployedBuilder).extend(allowedCalldata, allowedCalldataBuilder).extend(erc20BalanceChange, erc20BalanceChangeBuilder).extend(erc721BalanceChange, erc721BalanceChangeBuilder).extend(erc1155BalanceChange, erc1155BalanceChangeBuilder).extend(valueLte, valueLteBuilder).extend(limitedCalls, limitedCallsBuilder).extend(id, idBuilder).extend(nonce, nonceBuilder).extend(timestamp, timestampBuilder).extend(blockNumber, blockNumberBuilder).extend(erc20TransferAmount, erc20TransferAmountBuilder).extend(erc20Streaming, erc20StreamingBuilder).extend(nativeTokenStreaming, nativeTokenStreamingBuilder).extend(erc721Transfer, erc721TransferBuilder).extend(nativeTokenTransferAmount, nativeTokenTransferAmountBuilder).extend(nativeBalanceChange, nativeBalanceChangeBuilder).extend(redeemer, redeemerBuilder).extend(nativeTokenPayment, nativeTokenPaymentBuilder).extend(argsEqualityCheck, argsEqualityCheckBuilder).extend(
|
|
1045
1066
|
specificActionERC20TransferBatch,
|
|
1046
1067
|
specificActionERC20TransferBatchBuilder
|
|
1047
1068
|
).extend(erc20PeriodTransfer, erc20PeriodTransferBuilder).extend(nativeTokenPeriodTransfer, nativeTokenPeriodTransferBuilder).extend(exactCalldataBatch, exactCalldataBatchBuilder).extend(exactCalldata, exactCalldataBuilder).extend(exactExecution, exactExecutionBuilder).extend(exactExecutionBatch, exactExecutionBatchBuilder).extend(multiTokenPeriod, multiTokenPeriodBuilder).extend(ownershipTransfer, ownershipTransferBuilder);
|
|
@@ -1332,9 +1353,15 @@ var createCaveatBuilderFromScope = (environment, scopeConfig) => {
|
|
|
1332
1353
|
var resolveCaveats = ({
|
|
1333
1354
|
environment,
|
|
1334
1355
|
scope,
|
|
1335
|
-
caveats
|
|
1356
|
+
caveats,
|
|
1357
|
+
isScopeOptional
|
|
1336
1358
|
}) => {
|
|
1337
|
-
|
|
1359
|
+
if (!scope && !isScopeOptional) {
|
|
1360
|
+
throw new Error("Scope is required");
|
|
1361
|
+
}
|
|
1362
|
+
const scopeCaveatBuilder = scope ? createCaveatBuilderFromScope(environment, scope) : createCaveatBuilder(environment, {
|
|
1363
|
+
allowInsecureUnrestrictedDelegation: true
|
|
1364
|
+
});
|
|
1338
1365
|
if (caveats) {
|
|
1339
1366
|
if ("build" in caveats && typeof caveats.build === "function") {
|
|
1340
1367
|
caveats.build().forEach((caveat) => {
|
|
@@ -1396,6 +1423,7 @@ var resolveCaveats = ({
|
|
|
1396
1423
|
|
|
1397
1424
|
|
|
1398
1425
|
|
|
1426
|
+
|
|
1399
1427
|
|
|
1400
1428
|
|
|
1401
1429
|
var CAVEAT_ABI_TYPE_COMPONENTS = [
|
|
@@ -1419,113 +1447,142 @@ var decodeCaveat = ({
|
|
|
1419
1447
|
}) => {
|
|
1420
1448
|
switch (enforcer.toLowerCase()) {
|
|
1421
1449
|
case _optionalChain([caveatEnforcers, 'access', _2 => _2.AllowedCalldataEnforcer, 'optionalAccess', _3 => _3.toLowerCase, 'call', _4 => _4()]):
|
|
1422
|
-
return {
|
|
1450
|
+
return {
|
|
1451
|
+
type: "allowedCalldata" /* AllowedCalldata */,
|
|
1452
|
+
..._delegationcore.decodeAllowedCalldataTerms.call(void 0, terms)
|
|
1453
|
+
};
|
|
1423
1454
|
case _optionalChain([caveatEnforcers, 'access', _5 => _5.AllowedMethodsEnforcer, 'optionalAccess', _6 => _6.toLowerCase, 'call', _7 => _7()]):
|
|
1424
|
-
return { type: "allowedMethods", ..._delegationcore.decodeAllowedMethodsTerms.call(void 0, terms) };
|
|
1425
|
-
case _optionalChain([caveatEnforcers, 'access', _8 => _8.AllowedTargetsEnforcer, 'optionalAccess', _9 => _9.toLowerCase, 'call', _10 => _10()]):
|
|
1426
|
-
return { type: "allowedTargets", ..._delegationcore.decodeAllowedTargetsTerms.call(void 0, terms) };
|
|
1427
|
-
case _optionalChain([caveatEnforcers, 'access', _11 => _11.ArgsEqualityCheckEnforcer, 'optionalAccess', _12 => _12.toLowerCase, 'call', _13 => _13()]):
|
|
1428
1455
|
return {
|
|
1429
|
-
type: "
|
|
1456
|
+
type: "allowedMethods" /* AllowedMethods */,
|
|
1457
|
+
..._delegationcore.decodeAllowedMethodsTerms.call(void 0, terms)
|
|
1458
|
+
};
|
|
1459
|
+
case _optionalChain([caveatEnforcers, 'access', _8 => _8.ApprovalRevocationEnforcer, 'optionalAccess', _9 => _9.toLowerCase, 'call', _10 => _10()]):
|
|
1460
|
+
return {
|
|
1461
|
+
type: "approvalRevocation" /* ApprovalRevocation */,
|
|
1462
|
+
..._delegationcore.decodeApprovalRevocationTerms.call(void 0, terms)
|
|
1463
|
+
};
|
|
1464
|
+
case _optionalChain([caveatEnforcers, 'access', _11 => _11.AllowedTargetsEnforcer, 'optionalAccess', _12 => _12.toLowerCase, 'call', _13 => _13()]):
|
|
1465
|
+
return {
|
|
1466
|
+
type: "allowedTargets" /* AllowedTargets */,
|
|
1467
|
+
..._delegationcore.decodeAllowedTargetsTerms.call(void 0, terms)
|
|
1468
|
+
};
|
|
1469
|
+
case _optionalChain([caveatEnforcers, 'access', _14 => _14.ArgsEqualityCheckEnforcer, 'optionalAccess', _15 => _15.toLowerCase, 'call', _16 => _16()]):
|
|
1470
|
+
return {
|
|
1471
|
+
type: "argsEqualityCheck" /* ArgsEqualityCheck */,
|
|
1430
1472
|
..._delegationcore.decodeArgsEqualityCheckTerms.call(void 0, terms)
|
|
1431
1473
|
};
|
|
1432
|
-
case _optionalChain([caveatEnforcers, 'access',
|
|
1433
|
-
return { type: "blockNumber"
|
|
1434
|
-
case _optionalChain([caveatEnforcers, 'access',
|
|
1435
|
-
return { type: "deployed"
|
|
1436
|
-
case _optionalChain([caveatEnforcers, 'access',
|
|
1474
|
+
case _optionalChain([caveatEnforcers, 'access', _17 => _17.BlockNumberEnforcer, 'optionalAccess', _18 => _18.toLowerCase, 'call', _19 => _19()]):
|
|
1475
|
+
return { type: "blockNumber" /* BlockNumber */, ..._delegationcore.decodeBlockNumberTerms.call(void 0, terms) };
|
|
1476
|
+
case _optionalChain([caveatEnforcers, 'access', _20 => _20.DeployedEnforcer, 'optionalAccess', _21 => _21.toLowerCase, 'call', _22 => _22()]):
|
|
1477
|
+
return { type: "deployed" /* Deployed */, ..._delegationcore.decodeDeployedTerms.call(void 0, terms) };
|
|
1478
|
+
case _optionalChain([caveatEnforcers, 'access', _23 => _23.ERC20BalanceChangeEnforcer, 'optionalAccess', _24 => _24.toLowerCase, 'call', _25 => _25()]):
|
|
1437
1479
|
return {
|
|
1438
|
-
type: "erc20BalanceChange"
|
|
1480
|
+
type: "erc20BalanceChange" /* Erc20BalanceChange */,
|
|
1439
1481
|
..._delegationcore.decodeERC20BalanceChangeTerms.call(void 0, terms)
|
|
1440
1482
|
};
|
|
1441
|
-
case _optionalChain([caveatEnforcers, 'access',
|
|
1483
|
+
case _optionalChain([caveatEnforcers, 'access', _26 => _26.ERC20TransferAmountEnforcer, 'optionalAccess', _27 => _27.toLowerCase, 'call', _28 => _28()]):
|
|
1442
1484
|
return {
|
|
1443
|
-
type: "erc20TransferAmount"
|
|
1485
|
+
type: "erc20TransferAmount" /* Erc20TransferAmount */,
|
|
1444
1486
|
..._delegationcore.decodeERC20TransferAmountTerms.call(void 0, terms)
|
|
1445
1487
|
};
|
|
1446
|
-
case _optionalChain([caveatEnforcers, 'access',
|
|
1447
|
-
return {
|
|
1448
|
-
|
|
1488
|
+
case _optionalChain([caveatEnforcers, 'access', _29 => _29.ERC20StreamingEnforcer, 'optionalAccess', _30 => _30.toLowerCase, 'call', _31 => _31()]):
|
|
1489
|
+
return {
|
|
1490
|
+
type: "erc20Streaming" /* Erc20Streaming */,
|
|
1491
|
+
..._delegationcore.decodeERC20StreamingTerms.call(void 0, terms)
|
|
1492
|
+
};
|
|
1493
|
+
case _optionalChain([caveatEnforcers, 'access', _32 => _32.ERC721BalanceChangeEnforcer, 'optionalAccess', _33 => _33.toLowerCase, 'call', _34 => _34()]):
|
|
1449
1494
|
return {
|
|
1450
|
-
type: "erc721BalanceChange"
|
|
1495
|
+
type: "erc721BalanceChange" /* Erc721BalanceChange */,
|
|
1451
1496
|
..._delegationcore.decodeERC721BalanceChangeTerms.call(void 0, terms)
|
|
1452
1497
|
};
|
|
1453
|
-
case _optionalChain([caveatEnforcers, 'access',
|
|
1454
|
-
return {
|
|
1455
|
-
|
|
1498
|
+
case _optionalChain([caveatEnforcers, 'access', _35 => _35.ERC721TransferEnforcer, 'optionalAccess', _36 => _36.toLowerCase, 'call', _37 => _37()]):
|
|
1499
|
+
return {
|
|
1500
|
+
type: "erc721Transfer" /* Erc721Transfer */,
|
|
1501
|
+
..._delegationcore.decodeERC721TransferTerms.call(void 0, terms)
|
|
1502
|
+
};
|
|
1503
|
+
case _optionalChain([caveatEnforcers, 'access', _38 => _38.ERC1155BalanceChangeEnforcer, 'optionalAccess', _39 => _39.toLowerCase, 'call', _40 => _40()]):
|
|
1456
1504
|
return {
|
|
1457
|
-
type: "erc1155BalanceChange"
|
|
1505
|
+
type: "erc1155BalanceChange" /* Erc1155BalanceChange */,
|
|
1458
1506
|
..._delegationcore.decodeERC1155BalanceChangeTerms.call(void 0, terms)
|
|
1459
1507
|
};
|
|
1460
|
-
case _optionalChain([caveatEnforcers, 'access',
|
|
1461
|
-
return { type: "id"
|
|
1462
|
-
case _optionalChain([caveatEnforcers, 'access',
|
|
1463
|
-
return {
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1508
|
+
case _optionalChain([caveatEnforcers, 'access', _41 => _41.IdEnforcer, 'optionalAccess', _42 => _42.toLowerCase, 'call', _43 => _43()]):
|
|
1509
|
+
return { type: "id" /* Id */, ..._delegationcore.decodeIdTerms.call(void 0, terms) };
|
|
1510
|
+
case _optionalChain([caveatEnforcers, 'access', _44 => _44.LimitedCallsEnforcer, 'optionalAccess', _45 => _45.toLowerCase, 'call', _46 => _46()]):
|
|
1511
|
+
return {
|
|
1512
|
+
type: "limitedCalls" /* LimitedCalls */,
|
|
1513
|
+
..._delegationcore.decodeLimitedCallsTerms.call(void 0, terms)
|
|
1514
|
+
};
|
|
1515
|
+
case _optionalChain([caveatEnforcers, 'access', _47 => _47.NonceEnforcer, 'optionalAccess', _48 => _48.toLowerCase, 'call', _49 => _49()]):
|
|
1516
|
+
return { type: "nonce" /* Nonce */, ..._delegationcore.decodeNonceTerms.call(void 0, terms) };
|
|
1517
|
+
case _optionalChain([caveatEnforcers, 'access', _50 => _50.TimestampEnforcer, 'optionalAccess', _51 => _51.toLowerCase, 'call', _52 => _52()]):
|
|
1518
|
+
return { type: "timestamp" /* Timestamp */, ..._delegationcore.decodeTimestampTerms.call(void 0, terms) };
|
|
1519
|
+
case _optionalChain([caveatEnforcers, 'access', _53 => _53.ValueLteEnforcer, 'optionalAccess', _54 => _54.toLowerCase, 'call', _55 => _55()]):
|
|
1520
|
+
return { type: "valueLte" /* ValueLte */, ..._delegationcore.decodeValueLteTerms.call(void 0, terms) };
|
|
1521
|
+
case _optionalChain([caveatEnforcers, 'access', _56 => _56.NativeTokenTransferAmountEnforcer, 'optionalAccess', _57 => _57.toLowerCase, 'call', _58 => _58()]):
|
|
1471
1522
|
return {
|
|
1472
|
-
type: "nativeTokenTransferAmount"
|
|
1523
|
+
type: "nativeTokenTransferAmount" /* NativeTokenTransferAmount */,
|
|
1473
1524
|
..._delegationcore.decodeNativeTokenTransferAmountTerms.call(void 0, terms)
|
|
1474
1525
|
};
|
|
1475
|
-
case _optionalChain([caveatEnforcers, 'access',
|
|
1526
|
+
case _optionalChain([caveatEnforcers, 'access', _59 => _59.NativeBalanceChangeEnforcer, 'optionalAccess', _60 => _60.toLowerCase, 'call', _61 => _61()]):
|
|
1476
1527
|
return {
|
|
1477
|
-
type: "nativeBalanceChange"
|
|
1528
|
+
type: "nativeBalanceChange" /* NativeBalanceChange */,
|
|
1478
1529
|
..._delegationcore.decodeNativeBalanceChangeTerms.call(void 0, terms)
|
|
1479
1530
|
};
|
|
1480
|
-
case _optionalChain([caveatEnforcers, 'access',
|
|
1531
|
+
case _optionalChain([caveatEnforcers, 'access', _62 => _62.NativeTokenStreamingEnforcer, 'optionalAccess', _63 => _63.toLowerCase, 'call', _64 => _64()]):
|
|
1481
1532
|
return {
|
|
1482
|
-
type: "nativeTokenStreaming"
|
|
1533
|
+
type: "nativeTokenStreaming" /* NativeTokenStreaming */,
|
|
1483
1534
|
..._delegationcore.decodeNativeTokenStreamingTerms.call(void 0, terms)
|
|
1484
1535
|
};
|
|
1485
|
-
case _optionalChain([caveatEnforcers, 'access',
|
|
1536
|
+
case _optionalChain([caveatEnforcers, 'access', _65 => _65.NativeTokenPaymentEnforcer, 'optionalAccess', _66 => _66.toLowerCase, 'call', _67 => _67()]):
|
|
1486
1537
|
return {
|
|
1487
|
-
type: "nativeTokenPayment"
|
|
1538
|
+
type: "nativeTokenPayment" /* NativeTokenPayment */,
|
|
1488
1539
|
..._delegationcore.decodeNativeTokenPaymentTerms.call(void 0, terms)
|
|
1489
1540
|
};
|
|
1490
|
-
case _optionalChain([caveatEnforcers, 'access',
|
|
1491
|
-
return { type: "redeemer"
|
|
1492
|
-
case _optionalChain([caveatEnforcers, 'access',
|
|
1541
|
+
case _optionalChain([caveatEnforcers, 'access', _68 => _68.RedeemerEnforcer, 'optionalAccess', _69 => _69.toLowerCase, 'call', _70 => _70()]):
|
|
1542
|
+
return { type: "redeemer" /* Redeemer */, ..._delegationcore.decodeRedeemerTerms.call(void 0, terms) };
|
|
1543
|
+
case _optionalChain([caveatEnforcers, 'access', _71 => _71.SpecificActionERC20TransferBatchEnforcer, 'optionalAccess', _72 => _72.toLowerCase, 'call', _73 => _73()]):
|
|
1493
1544
|
return {
|
|
1494
|
-
type: "specificActionERC20TransferBatch"
|
|
1545
|
+
type: "specificActionERC20TransferBatch" /* SpecificActionERC20TransferBatch */,
|
|
1495
1546
|
..._delegationcore.decodeSpecificActionERC20TransferBatchTerms.call(void 0, terms)
|
|
1496
1547
|
};
|
|
1497
|
-
case _optionalChain([caveatEnforcers, 'access',
|
|
1548
|
+
case _optionalChain([caveatEnforcers, 'access', _74 => _74.ERC20PeriodTransferEnforcer, 'optionalAccess', _75 => _75.toLowerCase, 'call', _76 => _76()]):
|
|
1498
1549
|
return {
|
|
1499
|
-
type: "erc20PeriodTransfer"
|
|
1550
|
+
type: "erc20PeriodTransfer" /* Erc20PeriodTransfer */,
|
|
1500
1551
|
..._delegationcore.decodeERC20TokenPeriodTransferTerms.call(void 0, terms)
|
|
1501
1552
|
};
|
|
1502
|
-
case _optionalChain([caveatEnforcers, 'access',
|
|
1553
|
+
case _optionalChain([caveatEnforcers, 'access', _77 => _77.NativeTokenPeriodTransferEnforcer, 'optionalAccess', _78 => _78.toLowerCase, 'call', _79 => _79()]):
|
|
1503
1554
|
return {
|
|
1504
|
-
type: "nativeTokenPeriodTransfer"
|
|
1555
|
+
type: "nativeTokenPeriodTransfer" /* NativeTokenPeriodTransfer */,
|
|
1505
1556
|
..._delegationcore.decodeNativeTokenPeriodTransferTerms.call(void 0, terms)
|
|
1506
1557
|
};
|
|
1507
|
-
case _optionalChain([caveatEnforcers, 'access',
|
|
1558
|
+
case _optionalChain([caveatEnforcers, 'access', _80 => _80.ExactCalldataBatchEnforcer, 'optionalAccess', _81 => _81.toLowerCase, 'call', _82 => _82()]):
|
|
1508
1559
|
return {
|
|
1509
|
-
type: "exactCalldataBatch"
|
|
1560
|
+
type: "exactCalldataBatch" /* ExactCalldataBatch */,
|
|
1510
1561
|
..._delegationcore.decodeExactCalldataBatchTerms.call(void 0, terms)
|
|
1511
1562
|
};
|
|
1512
|
-
case _optionalChain([caveatEnforcers, 'access',
|
|
1513
|
-
return { type: "exactCalldata", ..._delegationcore.decodeExactCalldataTerms.call(void 0, terms) };
|
|
1514
|
-
case _optionalChain([caveatEnforcers, 'access', _83 => _83.ExactExecutionEnforcer, 'optionalAccess', _84 => _84.toLowerCase, 'call', _85 => _85()]):
|
|
1515
|
-
return { type: "exactExecution", ..._delegationcore.decodeExactExecutionTerms.call(void 0, terms) };
|
|
1516
|
-
case _optionalChain([caveatEnforcers, 'access', _86 => _86.ExactExecutionBatchEnforcer, 'optionalAccess', _87 => _87.toLowerCase, 'call', _88 => _88()]):
|
|
1563
|
+
case _optionalChain([caveatEnforcers, 'access', _83 => _83.ExactCalldataEnforcer, 'optionalAccess', _84 => _84.toLowerCase, 'call', _85 => _85()]):
|
|
1517
1564
|
return {
|
|
1518
|
-
type: "
|
|
1565
|
+
type: "exactCalldata" /* ExactCalldata */,
|
|
1566
|
+
..._delegationcore.decodeExactCalldataTerms.call(void 0, terms)
|
|
1567
|
+
};
|
|
1568
|
+
case _optionalChain([caveatEnforcers, 'access', _86 => _86.ExactExecutionEnforcer, 'optionalAccess', _87 => _87.toLowerCase, 'call', _88 => _88()]):
|
|
1569
|
+
return {
|
|
1570
|
+
type: "exactExecution" /* ExactExecution */,
|
|
1571
|
+
..._delegationcore.decodeExactExecutionTerms.call(void 0, terms)
|
|
1572
|
+
};
|
|
1573
|
+
case _optionalChain([caveatEnforcers, 'access', _89 => _89.ExactExecutionBatchEnforcer, 'optionalAccess', _90 => _90.toLowerCase, 'call', _91 => _91()]):
|
|
1574
|
+
return {
|
|
1575
|
+
type: "exactExecutionBatch" /* ExactExecutionBatch */,
|
|
1519
1576
|
..._delegationcore.decodeExactExecutionBatchTerms.call(void 0, terms)
|
|
1520
1577
|
};
|
|
1521
|
-
case _optionalChain([caveatEnforcers, 'access',
|
|
1578
|
+
case _optionalChain([caveatEnforcers, 'access', _92 => _92.MultiTokenPeriodEnforcer, 'optionalAccess', _93 => _93.toLowerCase, 'call', _94 => _94()]):
|
|
1522
1579
|
return {
|
|
1523
|
-
type: "multiTokenPeriod"
|
|
1580
|
+
type: "multiTokenPeriod" /* MultiTokenPeriod */,
|
|
1524
1581
|
..._delegationcore.decodeMultiTokenPeriodTerms.call(void 0, terms)
|
|
1525
1582
|
};
|
|
1526
|
-
case _optionalChain([caveatEnforcers, 'access',
|
|
1583
|
+
case _optionalChain([caveatEnforcers, 'access', _95 => _95.OwnershipTransferEnforcer, 'optionalAccess', _96 => _96.toLowerCase, 'call', _97 => _97()]):
|
|
1527
1584
|
return {
|
|
1528
|
-
type: "ownershipTransfer"
|
|
1585
|
+
type: "ownershipTransfer" /* OwnershipTransfer */,
|
|
1529
1586
|
..._delegationcore.decodeOwnershipTransferTerms.call(void 0, terms)
|
|
1530
1587
|
};
|
|
1531
1588
|
default:
|
|
@@ -1554,7 +1611,7 @@ var _openapifetch = require('openapi-fetch'); var _openapifetch2 = _interopRequi
|
|
|
1554
1611
|
// src/analytics/environment.ts
|
|
1555
1612
|
var session;
|
|
1556
1613
|
function createAnonId() {
|
|
1557
|
-
if (typeof _optionalChain([globalThis, 'access',
|
|
1614
|
+
if (typeof _optionalChain([globalThis, 'access', _98 => _98.crypto, 'optionalAccess', _99 => _99.randomUUID]) === "function") {
|
|
1558
1615
|
return globalThis.crypto.randomUUID();
|
|
1559
1616
|
}
|
|
1560
1617
|
return `00000000-0000-4000-8000-${Math.random().toString(16).slice(2, 14).padEnd(12, "0")}`;
|
|
@@ -1564,7 +1621,7 @@ function inferPlatform() {
|
|
|
1564
1621
|
return "nodejs";
|
|
1565
1622
|
}
|
|
1566
1623
|
const nav = globalThis.navigator;
|
|
1567
|
-
const ua = typeof _optionalChain([nav, 'optionalAccess',
|
|
1624
|
+
const ua = typeof _optionalChain([nav, 'optionalAccess', _100 => _100.userAgent]) === "string" ? nav.userAgent : "";
|
|
1568
1625
|
if (/Mobile|Android|iPhone|iPod|webOS|BlackBerry|IEMobile|Opera Mini/iu.test(ua)) {
|
|
1569
1626
|
return "web-mobile";
|
|
1570
1627
|
}
|
|
@@ -1573,7 +1630,7 @@ function inferPlatform() {
|
|
|
1573
1630
|
function inferDomain() {
|
|
1574
1631
|
if (typeof globalThis !== "undefined" && "window" in globalThis) {
|
|
1575
1632
|
const win = globalThis;
|
|
1576
|
-
const hostname = _optionalChain([win, 'access',
|
|
1633
|
+
const hostname = _optionalChain([win, 'access', _101 => _101.location, 'optionalAccess', _102 => _102.hostname]);
|
|
1577
1634
|
if (typeof hostname === "string" && hostname.length > 0) {
|
|
1578
1635
|
return { domain: hostname };
|
|
1579
1636
|
}
|
|
@@ -1693,7 +1750,7 @@ var Sender = class {
|
|
|
1693
1750
|
};
|
|
1694
1751
|
|
|
1695
1752
|
// package.json
|
|
1696
|
-
var version = "1.
|
|
1753
|
+
var version = "1.6.0";
|
|
1697
1754
|
|
|
1698
1755
|
// src/analytics/index.ts
|
|
1699
1756
|
function isCompleteBase(value) {
|
|
@@ -1820,8 +1877,8 @@ var analytics = new Analytics(METAMASK_ANALYTICS_ENDPOINT);
|
|
|
1820
1877
|
function isAnalyticsDisabled() {
|
|
1821
1878
|
const dntValues = [];
|
|
1822
1879
|
if (typeof process !== "undefined") {
|
|
1823
|
-
dntValues.push(_optionalChain([process, 'access',
|
|
1824
|
-
dntValues.push(_optionalChain([process, 'access',
|
|
1880
|
+
dntValues.push(_optionalChain([process, 'access', _103 => _103.env, 'optionalAccess', _104 => _104.CI]));
|
|
1881
|
+
dntValues.push(_optionalChain([process, 'access', _105 => _105.env, 'optionalAccess', _106 => _106.DO_NOT_TRACK]));
|
|
1825
1882
|
}
|
|
1826
1883
|
if (typeof navigator !== "undefined") {
|
|
1827
1884
|
dntValues.push(navigator.doNotTrack);
|
|
@@ -1830,7 +1887,7 @@ function isAnalyticsDisabled() {
|
|
|
1830
1887
|
dntValues.push(window.doNotTrack);
|
|
1831
1888
|
}
|
|
1832
1889
|
return dntValues.some(
|
|
1833
|
-
(dntValue) => dntValue === "1" || _optionalChain([dntValue, 'optionalAccess',
|
|
1890
|
+
(dntValue) => dntValue === "1" || _optionalChain([dntValue, 'optionalAccess', _107 => _107.toLowerCase, 'call', _108 => _108()]) === "yes" || _optionalChain([dntValue, 'optionalAccess', _109 => _109.toLowerCase, 'call', _110 => _110()]) === "true"
|
|
1834
1891
|
);
|
|
1835
1892
|
}
|
|
1836
1893
|
var hasBootstrapped = false;
|
|
@@ -1943,14 +2000,16 @@ var hashDelegation = (input) => {
|
|
|
1943
2000
|
const delegationStruct = toDelegationStruct(input);
|
|
1944
2001
|
return _delegationcore.hashDelegation.call(void 0, delegationStruct);
|
|
1945
2002
|
};
|
|
1946
|
-
var
|
|
1947
|
-
|
|
1948
|
-
|
|
2003
|
+
var extractLeafDelegation = (permissionContext) => {
|
|
2004
|
+
const delegations = decodeDelegations(permissionContext);
|
|
2005
|
+
if (delegations.length === 0) {
|
|
2006
|
+
throw new Error("Permission context must contain at least one delegation");
|
|
1949
2007
|
}
|
|
1950
|
-
|
|
1951
|
-
|
|
2008
|
+
const leafDelegation = delegations[0];
|
|
2009
|
+
if (!leafDelegation) {
|
|
2010
|
+
throw new Error("Failed to extract leaf delegation");
|
|
1952
2011
|
}
|
|
1953
|
-
return
|
|
2012
|
+
return leafDelegation;
|
|
1954
2013
|
};
|
|
1955
2014
|
var getCaveatNames = ({
|
|
1956
2015
|
caveats,
|
|
@@ -1961,20 +2020,56 @@ var getCaveatNames = ({
|
|
|
1961
2020
|
([name, address]) => ({ name, address: address.toLowerCase() })
|
|
1962
2021
|
);
|
|
1963
2022
|
return caveats.map((caveat) => {
|
|
1964
|
-
const enforcerAddressLowercase = _optionalChain([caveat, 'access',
|
|
2023
|
+
const enforcerAddressLowercase = _optionalChain([caveat, 'access', _111 => _111.enforcer, 'optionalAccess', _112 => _112.toLowerCase, 'call', _113 => _113()]);
|
|
1965
2024
|
const matchingCaveat = knownEnforcers.find(
|
|
1966
2025
|
({ address }) => address === enforcerAddressLowercase
|
|
1967
2026
|
);
|
|
1968
|
-
return _nullishCoalesce(_optionalChain([matchingCaveat, 'optionalAccess',
|
|
2027
|
+
return _nullishCoalesce(_optionalChain([matchingCaveat, 'optionalAccess', _114 => _114.name]), () => ( "Unknown"));
|
|
1969
2028
|
});
|
|
1970
2029
|
}
|
|
1971
2030
|
return [];
|
|
1972
2031
|
};
|
|
2032
|
+
var resolveDelegationArgs = (options) => {
|
|
2033
|
+
const optionsHasParentPermissionContext = "parentPermissionContext" in options && options.parentPermissionContext;
|
|
2034
|
+
const resolvedParentDelegation = optionsHasParentPermissionContext ? extractLeafDelegation(options.parentPermissionContext) : options.parentDelegation;
|
|
2035
|
+
const authority = (() => {
|
|
2036
|
+
if (!resolvedParentDelegation) {
|
|
2037
|
+
if (!options.scope) {
|
|
2038
|
+
throw new Error(
|
|
2039
|
+
"Invalid arguments - must specify either parentDelegation, parentPermissionContext, or scope"
|
|
2040
|
+
);
|
|
2041
|
+
}
|
|
2042
|
+
return _delegationcore.ROOT_AUTHORITY;
|
|
2043
|
+
}
|
|
2044
|
+
if (typeof resolvedParentDelegation === "string") {
|
|
2045
|
+
if (resolvedParentDelegation.toLowerCase() === _delegationcore.ROOT_AUTHORITY.toLowerCase()) {
|
|
2046
|
+
throw new Error(
|
|
2047
|
+
`Invalid parent delegation - cannot be ${_delegationcore.ROOT_AUTHORITY}`
|
|
2048
|
+
);
|
|
2049
|
+
}
|
|
2050
|
+
return resolvedParentDelegation;
|
|
2051
|
+
}
|
|
2052
|
+
return hashDelegation(resolvedParentDelegation);
|
|
2053
|
+
})();
|
|
2054
|
+
const hasInheritance = resolvedParentDelegation !== void 0;
|
|
2055
|
+
const caveats = resolveCaveats({
|
|
2056
|
+
environment: options.environment,
|
|
2057
|
+
scope: options.scope,
|
|
2058
|
+
caveats: options.caveats,
|
|
2059
|
+
isScopeOptional: hasInheritance
|
|
2060
|
+
});
|
|
2061
|
+
return {
|
|
2062
|
+
authority,
|
|
2063
|
+
caveats,
|
|
2064
|
+
hasInheritance,
|
|
2065
|
+
salt: _nullishCoalesce(options.salt, () => ( "0x00"))
|
|
2066
|
+
};
|
|
2067
|
+
};
|
|
1973
2068
|
var createDelegation = (options) => {
|
|
1974
|
-
const caveats =
|
|
2069
|
+
const { authority, caveats, hasInheritance, salt } = resolveDelegationArgs(options);
|
|
1975
2070
|
trackSmartAccountsKitFunctionCall("createDelegation", {
|
|
1976
|
-
|
|
1977
|
-
scope: options.scope.type,
|
|
2071
|
+
hasInheritance,
|
|
2072
|
+
scope: _nullishCoalesce(_optionalChain([options, 'access', _115 => _115.scope, 'optionalAccess', _116 => _116.type]), () => ( null)),
|
|
1978
2073
|
caveatNames: getCaveatNames({
|
|
1979
2074
|
caveats,
|
|
1980
2075
|
environment: options.environment
|
|
@@ -1983,17 +2078,17 @@ var createDelegation = (options) => {
|
|
|
1983
2078
|
return {
|
|
1984
2079
|
delegate: options.to,
|
|
1985
2080
|
delegator: options.from,
|
|
1986
|
-
authority
|
|
2081
|
+
authority,
|
|
1987
2082
|
caveats,
|
|
1988
|
-
salt
|
|
2083
|
+
salt,
|
|
1989
2084
|
signature: "0x"
|
|
1990
2085
|
};
|
|
1991
2086
|
};
|
|
1992
2087
|
var createOpenDelegation = (options) => {
|
|
1993
|
-
const caveats =
|
|
2088
|
+
const { authority, caveats, hasInheritance, salt } = resolveDelegationArgs(options);
|
|
1994
2089
|
trackSmartAccountsKitFunctionCall("createOpenDelegation", {
|
|
1995
|
-
|
|
1996
|
-
scope: options.scope.type,
|
|
2090
|
+
hasInheritance,
|
|
2091
|
+
scope: _nullishCoalesce(_optionalChain([options, 'access', _117 => _117.scope, 'optionalAccess', _118 => _118.type]), () => ( null)),
|
|
1997
2092
|
caveatNames: getCaveatNames({
|
|
1998
2093
|
caveats,
|
|
1999
2094
|
environment: options.environment
|
|
@@ -2002,9 +2097,9 @@ var createOpenDelegation = (options) => {
|
|
|
2002
2097
|
return {
|
|
2003
2098
|
delegate: _delegationcore.ANY_BENEFICIARY,
|
|
2004
2099
|
delegator: options.from,
|
|
2005
|
-
authority
|
|
2100
|
+
authority,
|
|
2006
2101
|
caveats,
|
|
2007
|
-
salt
|
|
2102
|
+
salt,
|
|
2008
2103
|
signature: "0x"
|
|
2009
2104
|
};
|
|
2010
2105
|
};
|
|
@@ -2060,6 +2155,83 @@ var signDelegation = async ({
|
|
|
2060
2155
|
});
|
|
2061
2156
|
};
|
|
2062
2157
|
|
|
2158
|
+
// src/executions.ts
|
|
2159
|
+
|
|
2160
|
+
|
|
2161
|
+
|
|
2162
|
+
|
|
2163
|
+
var createExecution = ({
|
|
2164
|
+
target,
|
|
2165
|
+
value = 0n,
|
|
2166
|
+
callData = "0x"
|
|
2167
|
+
}) => {
|
|
2168
|
+
return {
|
|
2169
|
+
target,
|
|
2170
|
+
value,
|
|
2171
|
+
callData
|
|
2172
|
+
};
|
|
2173
|
+
};
|
|
2174
|
+
var ExecutionMode = /* @__PURE__ */ ((ExecutionMode2) => {
|
|
2175
|
+
ExecutionMode2["SingleDefault"] = "0x0000000000000000000000000000000000000000000000000000000000000000";
|
|
2176
|
+
ExecutionMode2["SingleTry"] = "0x0001000000000000000000000000000000000000000000000000000000000000";
|
|
2177
|
+
ExecutionMode2["BatchDefault"] = "0x0100000000000000000000000000000000000000000000000000000000000000";
|
|
2178
|
+
ExecutionMode2["BatchTry"] = "0x0101000000000000000000000000000000000000000000000000000000000000";
|
|
2179
|
+
return ExecutionMode2;
|
|
2180
|
+
})(ExecutionMode || {});
|
|
2181
|
+
var EXECUTION_ABI_TYPE_COMPONENTS = [
|
|
2182
|
+
{ type: "address", name: "target" },
|
|
2183
|
+
{ type: "uint256", name: "value" },
|
|
2184
|
+
{ type: "bytes", name: "callData" }
|
|
2185
|
+
];
|
|
2186
|
+
var encodeSingleExecution = (execution) => {
|
|
2187
|
+
return _viem.encodePacked.call(void 0,
|
|
2188
|
+
["address", "uint256", "bytes"],
|
|
2189
|
+
[execution.target, execution.value, execution.callData]
|
|
2190
|
+
);
|
|
2191
|
+
};
|
|
2192
|
+
var encodeBatchExecution = (executions) => {
|
|
2193
|
+
return _viem.encodeAbiParameters.call(void 0,
|
|
2194
|
+
[
|
|
2195
|
+
{
|
|
2196
|
+
components: EXECUTION_ABI_TYPE_COMPONENTS,
|
|
2197
|
+
name: "executions",
|
|
2198
|
+
type: "tuple[]"
|
|
2199
|
+
}
|
|
2200
|
+
],
|
|
2201
|
+
[executions]
|
|
2202
|
+
);
|
|
2203
|
+
};
|
|
2204
|
+
var encodeExecutionCalldata = (executions) => {
|
|
2205
|
+
if (executions.length === 0) {
|
|
2206
|
+
throw new Error(
|
|
2207
|
+
"Error while getting the execution calldatas, executions is empty"
|
|
2208
|
+
);
|
|
2209
|
+
}
|
|
2210
|
+
if (executions.length === 1) {
|
|
2211
|
+
const execution = executions[0];
|
|
2212
|
+
if (!execution) {
|
|
2213
|
+
throw new Error("Execution not found");
|
|
2214
|
+
}
|
|
2215
|
+
return encodeSingleExecution(execution);
|
|
2216
|
+
}
|
|
2217
|
+
return encodeBatchExecution(executions);
|
|
2218
|
+
};
|
|
2219
|
+
var encodeExecutionCalldatas = (executionsBatch) => {
|
|
2220
|
+
if (executionsBatch.length === 0) {
|
|
2221
|
+
throw new Error(
|
|
2222
|
+
"Error while getting the execution calldatas, executionsBatch is empty"
|
|
2223
|
+
);
|
|
2224
|
+
}
|
|
2225
|
+
return executionsBatch.map(encodeExecutionCalldata);
|
|
2226
|
+
};
|
|
2227
|
+
|
|
2228
|
+
|
|
2229
|
+
|
|
2230
|
+
|
|
2231
|
+
|
|
2232
|
+
|
|
2233
|
+
|
|
2234
|
+
|
|
2063
2235
|
|
|
2064
2236
|
|
|
2065
2237
|
|
|
@@ -2091,5 +2263,5 @@ var signDelegation = async ({
|
|
|
2091
2263
|
|
|
2092
2264
|
|
|
2093
2265
|
|
|
2094
|
-
exports.__export = __export; exports.trackSmartAccountsKitFunctionCall = trackSmartAccountsKitFunctionCall; exports.Implementation = Implementation; exports.TransferWindow = TransferWindow; exports.ScopeType = ScopeType; exports.CaveatType = CaveatType; exports.CaveatBuilder = CaveatBuilder; exports.createCaveatBuilder = createCaveatBuilder; exports.isDefined = isDefined; exports.toHexOrThrow = toHexOrThrow; exports.createCaveat = createCaveat; exports.decodeCaveat = decodeCaveat; exports.ANY_BENEFICIARY = _delegationcore.ANY_BENEFICIARY; exports.DELEGATION_TYPEHASH = _delegationcore.DELEGATION_TYPEHASH; exports.ROOT_AUTHORITY = _delegationcore.ROOT_AUTHORITY; exports.DELEGATION_ABI_TYPE_COMPONENTS = DELEGATION_ABI_TYPE_COMPONENTS; exports.toDelegationStruct = toDelegationStruct; exports.toDelegation = toDelegation; exports.encodeDelegations = encodeDelegations; exports.encodeDelegation = encodeDelegation; exports.decodeDelegations = decodeDelegations; exports.decodeDelegation = decodeDelegation; exports.SIGNABLE_DELEGATION_TYPED_DATA = SIGNABLE_DELEGATION_TYPED_DATA; exports.DELEGATION_ARRAY_ABI_TYPE = DELEGATION_ARRAY_ABI_TYPE; exports.DELEGATION_ABI_TYPE = DELEGATION_ABI_TYPE; exports.hashDelegation = hashDelegation; exports.createDelegation = createDelegation; exports.createOpenDelegation = createOpenDelegation; exports.prepareSignDelegationTypedData = prepareSignDelegationTypedData; exports.signDelegation = signDelegation;
|
|
2095
|
-
//# sourceMappingURL=chunk-
|
|
2266
|
+
exports.__export = __export; exports.trackSmartAccountsKitFunctionCall = trackSmartAccountsKitFunctionCall; exports.Implementation = Implementation; exports.TransferWindow = TransferWindow; exports.ScopeType = ScopeType; exports.CaveatType = CaveatType; exports.CaveatBuilder = CaveatBuilder; exports.createCaveatBuilder = createCaveatBuilder; exports.isDefined = isDefined; exports.toHexOrThrow = toHexOrThrow; exports.resolveCaveats = resolveCaveats; exports.createCaveat = createCaveat; exports.decodeCaveat = decodeCaveat; exports.ANY_BENEFICIARY = _delegationcore.ANY_BENEFICIARY; exports.DELEGATION_TYPEHASH = _delegationcore.DELEGATION_TYPEHASH; exports.ROOT_AUTHORITY = _delegationcore.ROOT_AUTHORITY; exports.DELEGATION_ABI_TYPE_COMPONENTS = DELEGATION_ABI_TYPE_COMPONENTS; exports.toDelegationStruct = toDelegationStruct; exports.toDelegation = toDelegation; exports.encodeDelegations = encodeDelegations; exports.encodeDelegation = encodeDelegation; exports.decodeDelegations = decodeDelegations; exports.decodeDelegation = decodeDelegation; exports.SIGNABLE_DELEGATION_TYPED_DATA = SIGNABLE_DELEGATION_TYPED_DATA; exports.DELEGATION_ARRAY_ABI_TYPE = DELEGATION_ARRAY_ABI_TYPE; exports.DELEGATION_ABI_TYPE = DELEGATION_ABI_TYPE; exports.hashDelegation = hashDelegation; exports.createDelegation = createDelegation; exports.createOpenDelegation = createOpenDelegation; exports.prepareSignDelegationTypedData = prepareSignDelegationTypedData; exports.signDelegation = signDelegation; exports.createExecution = createExecution; exports.ExecutionMode = ExecutionMode; exports.encodeSingleExecution = encodeSingleExecution; exports.encodeBatchExecution = encodeBatchExecution; exports.encodeExecutionCalldata = encodeExecutionCalldata; exports.encodeExecutionCalldatas = encodeExecutionCalldatas;
|
|
2267
|
+
//# sourceMappingURL=chunk-W6HPAK4M.cjs.map
|