@rhinestone/sdk 2.0.0-beta.3 → 2.0.0-beta.31

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.
Files changed (107) hide show
  1. package/dist/src/accounts/error.d.ts +2 -9
  2. package/dist/src/accounts/error.d.ts.map +1 -1
  3. package/dist/src/accounts/error.js +5 -11
  4. package/dist/src/accounts/hca.d.ts +25 -0
  5. package/dist/src/accounts/hca.d.ts.map +1 -0
  6. package/dist/src/accounts/hca.js +145 -0
  7. package/dist/src/accounts/index.d.ts +9 -9
  8. package/dist/src/accounts/index.d.ts.map +1 -1
  9. package/dist/src/accounts/index.js +112 -41
  10. package/dist/src/accounts/kernel.d.ts +1 -2
  11. package/dist/src/accounts/kernel.d.ts.map +1 -1
  12. package/dist/src/accounts/kernel.js +1 -8
  13. package/dist/src/accounts/nexus.d.ts +3 -2
  14. package/dist/src/accounts/nexus.d.ts.map +1 -1
  15. package/dist/src/accounts/nexus.js +33 -8
  16. package/dist/src/accounts/safe.d.ts +1 -2
  17. package/dist/src/accounts/safe.d.ts.map +1 -1
  18. package/dist/src/accounts/safe.js +3 -9
  19. package/dist/src/accounts/signing/common.d.ts +1 -4
  20. package/dist/src/accounts/signing/common.d.ts.map +1 -1
  21. package/dist/src/accounts/signing/common.js +7 -11
  22. package/dist/src/accounts/signing/message.d.ts.map +1 -1
  23. package/dist/src/accounts/signing/message.js +1 -4
  24. package/dist/src/accounts/signing/typedData.d.ts.map +1 -1
  25. package/dist/src/accounts/signing/typedData.js +1 -4
  26. package/dist/src/accounts/startale.d.ts +1 -2
  27. package/dist/src/accounts/startale.d.ts.map +1 -1
  28. package/dist/src/accounts/startale.js +2 -5
  29. package/dist/src/actions/ecdsa.js +5 -5
  30. package/dist/src/actions/index.js +2 -2
  31. package/dist/src/actions/mfa.js +2 -2
  32. package/dist/src/actions/passkeys.js +2 -2
  33. package/dist/src/actions/smart-sessions.d.ts +29 -5
  34. package/dist/src/actions/smart-sessions.d.ts.map +1 -1
  35. package/dist/src/actions/smart-sessions.js +38 -10
  36. package/dist/src/errors/index.d.ts +4 -4
  37. package/dist/src/errors/index.d.ts.map +1 -1
  38. package/dist/src/errors/index.js +6 -6
  39. package/dist/src/execution/error.d.ts +8 -21
  40. package/dist/src/execution/error.d.ts.map +1 -1
  41. package/dist/src/execution/error.js +7 -21
  42. package/dist/src/execution/index.d.ts +17 -17
  43. package/dist/src/execution/index.d.ts.map +1 -1
  44. package/dist/src/execution/index.js +22 -41
  45. package/dist/src/execution/utils.d.ts +15 -11
  46. package/dist/src/execution/utils.d.ts.map +1 -1
  47. package/dist/src/execution/utils.js +279 -75
  48. package/dist/src/index.d.ts +236 -37
  49. package/dist/src/index.d.ts.map +1 -1
  50. package/dist/src/index.js +60 -115
  51. package/dist/src/jwt-server/jcs.d.ts +1 -1
  52. package/dist/src/jwt-server/jcs.js +4 -2
  53. package/dist/src/modules/index.d.ts.map +1 -1
  54. package/dist/src/modules/index.js +0 -5
  55. package/dist/src/modules/read.d.ts +3 -2
  56. package/dist/src/modules/read.d.ts.map +1 -1
  57. package/dist/src/modules/read.js +33 -4
  58. package/dist/src/modules/validators/core.d.ts +5 -5
  59. package/dist/src/modules/validators/core.d.ts.map +1 -1
  60. package/dist/src/modules/validators/core.js +45 -34
  61. package/dist/src/modules/validators/cross-chain-permits.d.ts +11 -0
  62. package/dist/src/modules/validators/cross-chain-permits.d.ts.map +1 -0
  63. package/dist/src/modules/validators/cross-chain-permits.js +76 -0
  64. package/dist/src/modules/validators/permissions.d.ts +1 -0
  65. package/dist/src/modules/validators/permissions.d.ts.map +1 -1
  66. package/dist/src/modules/validators/permissions.js +162 -17
  67. package/dist/src/modules/validators/policies/claim/arbiters.d.ts +22 -0
  68. package/dist/src/modules/validators/policies/claim/arbiters.d.ts.map +1 -0
  69. package/dist/src/modules/validators/policies/claim/arbiters.js +57 -0
  70. package/dist/src/modules/validators/smart-sessions.d.ts +38 -9
  71. package/dist/src/modules/validators/smart-sessions.d.ts.map +1 -1
  72. package/dist/src/modules/validators/smart-sessions.js +509 -92
  73. package/dist/src/orchestrator/caip2.d.ts +9 -3
  74. package/dist/src/orchestrator/caip2.d.ts.map +1 -1
  75. package/dist/src/orchestrator/caip2.js +40 -5
  76. package/dist/src/orchestrator/client.d.ts.map +1 -1
  77. package/dist/src/orchestrator/client.js +44 -21
  78. package/dist/src/orchestrator/consts.d.ts +1 -1
  79. package/dist/src/orchestrator/consts.d.ts.map +1 -1
  80. package/dist/src/orchestrator/consts.js +1 -1
  81. package/dist/src/orchestrator/destinations.d.ts +24 -0
  82. package/dist/src/orchestrator/destinations.d.ts.map +1 -0
  83. package/dist/src/orchestrator/destinations.js +55 -0
  84. package/dist/src/orchestrator/error.d.ts +87 -4
  85. package/dist/src/orchestrator/error.d.ts.map +1 -1
  86. package/dist/src/orchestrator/error.js +237 -3
  87. package/dist/src/orchestrator/index.d.ts +6 -5
  88. package/dist/src/orchestrator/index.d.ts.map +1 -1
  89. package/dist/src/orchestrator/index.js +4 -3
  90. package/dist/src/orchestrator/registry.d.ts +2 -1
  91. package/dist/src/orchestrator/registry.d.ts.map +1 -1
  92. package/dist/src/orchestrator/registry.js +13 -0
  93. package/dist/src/orchestrator/types.d.ts +114 -28
  94. package/dist/src/orchestrator/types.d.ts.map +1 -1
  95. package/dist/src/orchestrator/types.js +1 -5
  96. package/dist/src/smart-sessions/index.d.ts +5 -0
  97. package/dist/src/smart-sessions/index.d.ts.map +1 -0
  98. package/dist/src/smart-sessions/index.js +6 -0
  99. package/dist/src/types.d.ts +298 -29
  100. package/dist/src/types.d.ts.map +1 -1
  101. package/dist/src/utils/index.d.ts +59 -0
  102. package/dist/src/utils/index.d.ts.map +1 -1
  103. package/dist/src/utils/index.js +59 -0
  104. package/package.json +4 -8
  105. package/dist/src/actions/recovery.d.ts +0 -33
  106. package/dist/src/actions/recovery.d.ts.map +0 -1
  107. package/dist/src/actions/recovery.js +0 -189
@@ -20,14 +20,15 @@ declare function getEip712Domain(config: RhinestoneAccountConfig, chain: Chain):
20
20
  salt: "0x0000000000000000000000000000000000000000000000000000000000000000";
21
21
  };
22
22
  declare function getInstallData(module: Module): `0x${string}`;
23
+ declare function getDefaultValidatorInitData(module: Module): Hex;
24
+ declare function isDefaultValidatorConfigured(config: RhinestoneAccountConfig): boolean;
23
25
  declare function getDefaultValidatorAddress(version: '1.0.2' | '1.2.0' | 'rhinestone-1.0.0-beta' | 'rhinestone-1.0.0' | undefined): Address;
24
26
  declare function packSignature(signature: Hex, validator: ValidatorConfig, transformSignature?: (signature: Hex) => Hex, defaultValidatorAddress?: Address): Promise<`0x${string}`>;
25
27
  declare function getSmartAccount(client: PublicClient, address: Address, owners: OwnerSet, validatorAddress: Address, sign: (hash: Hex) => Promise<Hex>, defaultValidatorAddress?: Address): Promise<SmartAccount<SmartAccountImplementation<Abi, "0.7">>>;
26
- declare function getGuardianSmartAccount(client: PublicClient, address: Address, guardians: OwnerSet, validatorAddress: Address, sign: (hash: Hex) => Promise<Hex>, defaultValidatorAddress?: Address): Promise<SmartAccount<SmartAccountImplementation<Abi, "0.7">>>;
27
28
  declare function signEip7702InitData(config: RhinestoneAccountConfig, eoa: Account): Promise<`0x${string}`>;
28
29
  declare function getEip7702InitCall(config: RhinestoneAccountConfig, signature: Hex): {
29
30
  initData: `0x${string}`;
30
31
  contract: `0x${string}`;
31
32
  };
32
- export { getEip712Domain, getInstallData, getAddress, getDefaultValidatorAddress, packSignature, getDeployArgs, getSmartAccount, getGuardianSmartAccount, signEip7702InitData, getEip7702InitCall, };
33
+ export { getEip712Domain, getInstallData, getDefaultValidatorInitData, isDefaultValidatorConfigured, getAddress, getDefaultValidatorAddress, packSignature, getDeployArgs, getSmartAccount, signEip7702InitData, getEip7702InitCall, };
33
34
  //# sourceMappingURL=nexus.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"nexus.d.ts","sourceRoot":"","sources":["../../../accounts/nexus.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,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uB,GAC9B,OAAO,CAST;AAED,iBAAS,0BAA0B,CACjC,OAAO,EACH,OAAO,GACP,OAAO,GACP,uBAAuB,GACvB,kBAAkB,GAClB,SAAS,GACZ,OAAO,CAcT;AAED,iBAAe,aAAa,CAC1B,SAAS,EAAE,GAAG,EACd,SAAS,EAAE,eAAe,EAC1B,kBAAkB,GAAE,CAAC,SAAS,EAAE,GAAG,KAAK,GAA8B,EACtE,uBAAuB,GAAE,OAAyC,0BAWnE;AAED,iBAAe,eAAe,CAC5B,MAAM,EAAE,YAAY,EACpB,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,QAAQ,EAChB,gBAAgB,EAAE,OAAO,EACzB,IAAI,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,GAAG,CAAC,EACjC,uBAAuB,GAAE,OAAyC,iEAYnE;AAqFD,iBAAe,mBAAmB,CAChC,MAAM,EAAE,uBAAuB,EAC/B,GAAG,EAAE,OAAO,0BA8Bb;AAED,iBAAS,kBAAkB,CAAC,MAAM,EAAE,uBAAuB,EAAE,SAAS,EAAE,GAAG;;;EA0C1E;AA6FD,OAAO,EACL,eAAe,EACf,cAAc,EACd,2BAA2B,EAC3B,4BAA4B,EAC5B,UAAU,EACV,0BAA0B,EAC1B,aAAa,EACb,aAAa,EACb,eAAe,EACf,mBAAmB,EACnB,kBAAkB,GACnB,CAAA"}
@@ -188,6 +188,38 @@ function getInstallData(module) {
188
188
  args: [module.type, module.address, module.initData],
189
189
  });
190
190
  }
191
+ // On Nexus the OwnableValidator is the hardwired default validator. It cannot
192
+ // be added via `installModule` (reverts `DefaultValidatorAlreadyInstalled`), so
193
+ // it is initialized out-of-band by calling its `onInstall` directly with the
194
+ // same init data `installModule` would have passed (`abi.encode(threshold, owners)`).
195
+ function getDefaultValidatorInitData(module) {
196
+ return encodeFunctionData({
197
+ abi: [
198
+ {
199
+ type: 'function',
200
+ name: 'onInstall',
201
+ inputs: [{ type: 'bytes', name: 'data' }],
202
+ outputs: [],
203
+ stateMutability: 'nonpayable',
204
+ },
205
+ ],
206
+ functionName: 'onInstall',
207
+ args: [module.initData],
208
+ });
209
+ }
210
+ // Whether the deploy bootstrap will initialize the default validator — i.e. the
211
+ // account is configured with an Ownable/ECDSA owner set. Mirrors the
212
+ // `defaultValidatorInitData` computation in `getDeployArgs`, so a counterfactual
213
+ // (not-yet-deployed) account whose deployment initializes the default validator
214
+ // is treated as already-initialized rather than emitting a second `onInstall`.
215
+ function isDefaultValidatorConfigured(config) {
216
+ if (config.initData) {
217
+ return false;
218
+ }
219
+ const moduleSetup = getModuleSetup(config);
220
+ const defaultValidator = moduleSetup.validators.find((v) => v.address === NEXUS_DEFAULT_VALIDATOR_ADDRESS);
221
+ return defaultValidator ? size(defaultValidator.initData) > 0 : false;
222
+ }
191
223
  function getDefaultValidatorAddress(version) {
192
224
  if (!version) {
193
225
  return NEXUS_DEFAULT_VALIDATOR_ADDRESS;
@@ -215,13 +247,6 @@ async function getSmartAccount(client, address, owners, validatorAddress, sign,
215
247
  return getMockSignature(owners);
216
248
  }, sign, defaultValidatorAddress);
217
249
  }
218
- async function getGuardianSmartAccount(client, address, guardians, validatorAddress, sign, defaultValidatorAddress = NEXUS_DEFAULT_VALIDATOR_ADDRESS) {
219
- return await getBaseSmartAccount(address, client, validatorAddress, async () => {
220
- return getMockSignature(guardians);
221
- }, async (hash) => {
222
- return await sign(hash);
223
- }, defaultValidatorAddress);
224
- }
225
250
  async function getBaseSmartAccount(address, client, nonceValidatorAddress, getStubSignature, signUserOperation, defaultValidatorAddress) {
226
251
  return await toSmartAccount({
227
252
  client,
@@ -441,4 +466,4 @@ function tryDecodeV0FactoryData(factory, factoryData) {
441
466
  function isAbiDecodingError(error) {
442
467
  return (error instanceof Error && error.name === 'AbiFunctionSignatureNotFoundError');
443
468
  }
444
- export { getEip712Domain, getInstallData, getAddress, getDefaultValidatorAddress, packSignature, getDeployArgs, getSmartAccount, getGuardianSmartAccount, signEip7702InitData, getEip7702InitCall, };
469
+ export { getEip712Domain, getInstallData, getDefaultValidatorInitData, isDefaultValidatorConfigured, getAddress, getDefaultValidatorAddress, packSignature, getDeployArgs, getSmartAccount, signEip7702InitData, getEip7702InitCall, };
@@ -28,6 +28,5 @@ declare function getEip712Domain(config: RhinestoneAccountConfig, chain: Chain):
28
28
  declare function getInstallData(module: Module): `0x${string}`;
29
29
  declare function packSignature(signature: Hex, validator: ValidatorConfig, transformSignature?: (signature: Hex) => Hex): Promise<`0x${string}`>;
30
30
  declare function getSmartAccount(client: PublicClient, address: Address, owners: OwnerSet, validatorAddress: Address, sign: (hash: Hex) => Promise<Hex>): Promise<SmartAccount<SmartAccountImplementation<Abi, "0.7">>>;
31
- declare function getGuardianSmartAccount(client: PublicClient, address: Address, guardians: OwnerSet, validatorAddress: Address, sign: (hash: Hex) => Promise<Hex>): Promise<SmartAccount<SmartAccountImplementation<Abi, "0.7">>>;
32
- export { getEip712Domain, getInstallData, getAddress, packSignature, getDeployArgs, getV0DeployArgs, getSmartAccount, getGuardianSmartAccount, };
31
+ export { getEip712Domain, getInstallData, getAddress, packSignature, getDeployArgs, getV0DeployArgs, getSmartAccount, };
33
32
  //# sourceMappingURL=safe.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"safe.d.ts","sourceRoot":"","sources":["../../../accounts/safe.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,GAAG,EACR,KAAK,OAAO,EACZ,KAAK,KAAK,EAOV,KAAK,GAAG,EAER,KAAK,YAAY,EAKlB,MAAM,MAAM,CAAA;AACb,OAAO,EAIL,KAAK,YAAY,EACjB,KAAK,0BAA0B,EAEhC,MAAM,0BAA0B,CAAA;AAGjC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAM/C,OAAO,KAAK,EAAE,QAAQ,EAAE,uBAAuB,EAAe,MAAM,UAAU,CAAA;AAM9E,OAAO,EAAoC,KAAK,eAAe,EAAE,MAAM,SAAS,CAAA;AAoBhF,iBAAS,aAA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AAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAM/C,OAAO,KAAK,EAAE,QAAQ,EAAE,uBAAuB,EAAe,MAAM,UAAU,CAAA;AAM9E,OAAO,EAAoC,KAAK,eAAe,EAAE,MAAM,SAAS,CAAA;AAoBhF,iBAAS,aAAa,CAAC,MAAM,EAAE,uBAAuB;;;;;;SAmGrD;AAED,iBAAS,eAAe,CAAC,MAAM,EAAE,uBAAuB;;;;;;EAgFvD;AAED,iBAAS,UAAU,CAAC,MAAM,EAAE,uBAAuB,iBAoBlD;AAED,iBAAS,eAAe,CAAC,MAAM,EAAE,uBAAuB,EAAE,KAAK,EAAE,KAAK;;;;;;EAarE;AAED,iBAAS,cAAc,CAAC,MAAM,EAAE,MAAM,iBA2BrC;AAED,iBAAe,aAAa,CAC1B,SAAS,EAAE,GAAG,EACd,SAAS,EAAE,eAAe,EAC1B,kBAAkB,GAAE,CAAC,SAAS,EAAE,GAAG,KAAK,GAA8B,0BAMvE;AAED,iBAAe,eAAe,CAC5B,MAAM,EAAE,YAAY,EACpB,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,QAAQ,EAChB,gBAAgB,EAAE,OAAO,EACzB,IAAI,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,GAAG,CAAC,iEAWlC;AA2GD,OAAO,EACL,eAAe,EACf,cAAc,EACd,UAAU,EACV,aAAa,EACb,aAAa,EACb,eAAe,EACf,eAAe,GAChB,CAAA"}
@@ -239,13 +239,6 @@ async function getSmartAccount(client, address, owners, validatorAddress, sign)
239
239
  return getMockSignature(owners);
240
240
  }, sign);
241
241
  }
242
- async function getGuardianSmartAccount(client, address, guardians, validatorAddress, sign) {
243
- return await getBaseSmartAccount(address, client, validatorAddress, async () => {
244
- return getMockSignature(guardians);
245
- }, async (hash) => {
246
- return await sign(hash);
247
- });
248
- }
249
242
  async function getBaseSmartAccount(address, client, validatorAddress, getStubSignature, signUserOperation) {
250
243
  return await toSmartAccount({
251
244
  client,
@@ -317,8 +310,9 @@ function getOwners(config) {
317
310
  const ownerSet = config.owners;
318
311
  switch (ownerSet.type) {
319
312
  case 'ecdsa':
320
- case 'ens':
321
313
  return ownerSet.accounts.map((account) => account.address);
314
+ case 'ens':
315
+ return ownerSet.owners.map((o) => o.account.address);
322
316
  case 'passkey':
323
317
  return [NO_SAFE_OWNER_ADDRESS];
324
318
  case 'multi-factor':
@@ -340,4 +334,4 @@ function getThreshold(config) {
340
334
  return 1n;
341
335
  }
342
336
  }
343
- export { getEip712Domain, getInstallData, getAddress, packSignature, getDeployArgs, getV0DeployArgs, getSmartAccount, getGuardianSmartAccount, };
337
+ export { getEip712Domain, getInstallData, getAddress, packSignature, getDeployArgs, getV0DeployArgs, getSmartAccount, };
@@ -22,11 +22,8 @@ declare function signWithMultiFactorAuth<T>(signers: SignerSet & {
22
22
  kind: 'multi-factor';
23
23
  }, chain: Chain, address: Address, params: T, isUserOpHash: boolean, signMain: (signers: SignerSet, chain: Chain, address: Address, params: T, isUserOpHash: boolean) => Promise<Hex>): Promise<Hex>;
24
24
  declare function signWithSession(signers: ResolvedSessionSignerSet, chain: Chain, address: Address, hash: Hex, signMain: (signers: SignerSet, chain: Chain, address: Address, hash: Hex, isUserOpHash: boolean) => Promise<Hex>): Promise<Hex>;
25
- declare function signWithGuardians<T>(signers: SignerSet & {
26
- type: 'guardians';
27
- }, params: T, signingFunctions: SigningFunctions<T>): Promise<Hex>;
28
25
  declare function signWithOwners<T>(signers: SignerSet & {
29
26
  type: 'owner';
30
27
  }, chain: Chain, address: Address, params: T, signingFunctions: SigningFunctions<T>, isUserOpHash: boolean, signMain: (signers: SignerSet, chain: Chain, address: Address, params: T, isUserOpHash: boolean) => Promise<Hex>): Promise<Hex>;
31
- export { convertOwnerSetToSignerSet, signWithMultiFactorAuth, signWithSession, signWithGuardians, signWithOwners, type SigningFunctions, };
28
+ export { convertOwnerSetToSignerSet, signWithMultiFactorAuth, signWithSession, signWithOwners, type SigningFunctions, };
32
29
  //#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encodeAbiParameters, encodePacked, hashMessage, pad, padHex, toHex, } from 'viem';
2
2
  import { isRip7212SupportedNetwork } from '../../modules/index.js';
3
- import { ENS_VALIDATOR_ADDRESS, getValidator, OWNABLE_VALIDATOR_ADDRESS, WEBAUTHN_V0_VALIDATOR_ADDRESS, } from '../../modules/validators/core.js';
3
+ import { ENS_HCA_MODULE, getValidator, OWNABLE_VALIDATOR_ADDRESS, WEBAUTHN_V0_VALIDATOR_ADDRESS, } from '../../modules/validators/core.js';
4
4
  import { packSignature as packSmartSessionSignature, } from '../../modules/validators/smart-sessions.js';
5
5
  import { generateCredentialId, packSignature as packPasskeySignature, packSignatureV0 as packPasskeySignatureV0, parsePublicKey, parseSignature, } from './passkeys.js';
6
6
  function convertOwnerSetToSignerSet(owners) {
@@ -17,8 +17,8 @@ function convertOwnerSetToSignerSet(owners) {
17
17
  return {
18
18
  type: 'owner',
19
19
  kind: 'ecdsa',
20
- accounts: owners.accounts,
21
- module: owners.module ?? ENS_VALIDATOR_ADDRESS,
20
+ accounts: owners.owners.map((o) => o.account),
21
+ module: owners.module ?? ENS_HCA_MODULE,
22
22
  };
23
23
  }
24
24
  case 'passkey': {
@@ -47,8 +47,8 @@ function convertOwnerSetToSignerSet(owners) {
47
47
  return {
48
48
  type: 'ecdsa',
49
49
  id: index,
50
- accounts: validator.accounts,
51
- module: validator.module ?? ENS_VALIDATOR_ADDRESS,
50
+ accounts: validator.owners.map((o) => o.account),
51
+ module: validator.module ?? ENS_HCA_MODULE,
52
52
  };
53
53
  }
54
54
  case 'passkey': {
@@ -115,10 +115,6 @@ async function signWithSession(signers, chain, address, hash, signMain) {
115
115
  const validatorSignature = await signMain(sessionSigners, chain, address, signedHash, false);
116
116
  return packSmartSessionSignature(signers, validatorSignature);
117
117
  }
118
- async function signWithGuardians(signers, params, signingFunctions) {
119
- const signatures = await Promise.all(signers.guardians.map((account) => signingFunctions.signEcdsa(account, params, false)));
120
- return concat(signatures);
121
- }
122
118
  async function signWithOwners(signers, chain, address, params, signingFunctions, isUserOpHash, signMain) {
123
119
  async function signEcdsWithChain(account, params, updateV, chain) {
124
120
  const client = account.client;
@@ -144,7 +140,7 @@ async function signWithOwners(signers, chain, address, params, signingFunctions,
144
140
  // This is not needed for UserOps
145
141
  const isOwnableOrENS = !signers.module ||
146
142
  signers.module?.toLowerCase() === OWNABLE_VALIDATOR_ADDRESS ||
147
- signers.module?.toLowerCase() === ENS_VALIDATOR_ADDRESS;
143
+ signers.module?.toLowerCase() === ENS_HCA_MODULE;
148
144
  const updateV = isOwnableOrENS && !isUserOpHash;
149
145
  const signatures = await Promise.all(signers.accounts.map((account) => signEcdsWithChain(account, params, updateV, chain)));
150
146
  return concat(signatures);
@@ -181,4 +177,4 @@ async function signWithOwners(signers, chain, address, params, signingFunctions,
181
177
  }
182
178
  }
183
179
  }
184
- export { convertOwnerSetToSignerSet, signWithMultiFactorAuth, signWithSession, signWithGuardians, signWithOwners, };
180
+ export { convertOwnerSetToSignerSet, signWithMultiFactorAuth, signWithSession, signWithOwners, };
@@ -1 +1 @@
1
- {"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../../../accounts/signing/message.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,OAAO,EACZ,KAAK,KAAK,EAEV,KAAK,GAAG,EAGT,MAAM,MAAM,CAAA;AAEb,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,yCAAyC,CAAA;AACvF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAS5C,KAAK,iBAAiB,GAAG,SAAS,GAAG,wBAAwB,CAAA;AAE7D,iBAAe,IAAI,CACjB,OAAO,EAAE,iBAAiB,EAC1B,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,GAAG,EACT,YAAY,EAAE,OAAO,GACpB,OAAO,CAAC,GAAG,CAAC,CA+Bd;AA4BD,OAAO,EAAE,IAAI,EAAE,CAAA"}
1
+ {"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../../../accounts/signing/message.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,OAAO,EACZ,KAAK,KAAK,EAEV,KAAK,GAAG,EAGT,MAAM,MAAM,CAAA;AAEb,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,yCAAyC,CAAA;AACvF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAQ5C,KAAK,iBAAiB,GAAG,SAAS,GAAG,wBAAwB,CAAA;AAE7D,iBAAe,IAAI,CACjB,OAAO,EAAE,iBAAiB,EAC1B,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,GAAG,EACT,YAAY,EAAE,OAAO,GACpB,OAAO,CAAC,GAAG,CAAC,CA4Bd;AA4BD,OAAO,EAAE,IAAI,EAAE,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import { concat, parseSignature, toHex, } from 'viem';
2
2
  import { SigningNotSupportedForAccountError } from '../error.js';
3
- import { signWithGuardians, signWithOwners, signWithSession, } from './common.js';
3
+ import { signWithOwners, signWithSession, } from './common.js';
4
4
  async function sign(signers, chain, address, hash, isUserOpHash) {
5
5
  const signingFunctions = {
6
6
  signEcdsa: (account, hash, updateV) => signEcdsa(account, hash, updateV),
@@ -13,9 +13,6 @@ async function sign(signers, chain, address, hash, isUserOpHash) {
13
13
  case 'experimental_session': {
14
14
  return signWithSession(signers, chain, address, hash, sign);
15
15
  }
16
- case 'guardians': {
17
- return signWithGuardians(signers, hash, signingFunctions);
18
- }
19
16
  }
20
17
  }
21
18
  async function signEcdsa(account, hash, updateV) {
@@ -1 +1 @@
1
- {"version":3,"file":"typedData.d.ts","sourceRoot":"","sources":["../../../../accounts/signing/typedData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,OAAO,EACP,KAAK,EACL,uBAAuB,EACvB,GAAG,EACH,SAAS,EACV,MAAM,MAAM,CAAA;AAEb,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAQ5C,iBAAe,IAAI,CACjB,SAAS,SAAS,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,EACjE,WAAW,SAAS,MAAM,SAAS,GAAG,cAAc,GAAG,MAAM,SAAS,EAEtE,OAAO,EAAE,SAAS,EAClB,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,uBAAuB,CAAC,SAAS,EAAE,WAAW,CAAC,GAC1D,OAAO,CAAC,GAAG,CAAC,CA2Bd;AA6BD,OAAO,EAAE,IAAI,EAAE,CAAA"}
1
+ {"version":3,"file":"typedData.d.ts","sourceRoot":"","sources":["../../../../accounts/signing/typedData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,OAAO,EACP,KAAK,EACL,uBAAuB,EACvB,GAAG,EACH,SAAS,EACV,MAAM,MAAM,CAAA;AAEb,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAI5C,iBAAe,IAAI,CACjB,SAAS,SAAS,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,EACjE,WAAW,SAAS,MAAM,SAAS,GAAG,cAAc,GAAG,MAAM,SAAS,EAEtE,OAAO,EAAE,SAAS,EAClB,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,uBAAuB,CAAC,SAAS,EAAE,WAAW,CAAC,GAC1D,OAAO,CAAC,GAAG,CAAC,CAwBd;AA6BD,OAAO,EAAE,IAAI,EAAE,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { SigningNotSupportedForAccountError } from '../error.js';
2
- import { signWithGuardians, signWithOwners, } from './common.js';
2
+ import { signWithOwners } from './common.js';
3
3
  async function sign(signers, chain, address, parameters) {
4
4
  const signingFunctions = {
5
5
  signEcdsa: (account, params) => signEcdsa(account, params),
@@ -9,9 +9,6 @@ async function sign(signers, chain, address, parameters) {
9
9
  case 'owner': {
10
10
  return signWithOwners(signers, chain, address, parameters, signingFunctions, false, sign);
11
11
  }
12
- case 'guardians': {
13
- return signWithGuardians(signers, parameters, signingFunctions);
14
- }
15
12
  case 'experimental_session': {
16
13
  throw new Error('Not supported');
17
14
  }
@@ -21,6 +21,5 @@ declare function getEip712Domain(config: RhinestoneAccountConfig, chain: Chain):
21
21
  declare function getInstallData(module: Module): `0x${string}`;
22
22
  declare function packSignature(signature: Hex, validator: ValidatorConfig, transformSignature?: (signature: Hex) => Hex): Promise<`0x${string}`>;
23
23
  declare function getSmartAccount(client: PublicClient, address: Address, owners: OwnerSet, validatorAddress: Address, sign: (hash: Hex) => Promise<Hex>): Promise<import("viem/_types/account-abstraction").SmartAccount<import("viem/_types/account-abstraction").SmartAccountImplementation<import("viem").Abi, "0.7">>>;
24
- declare function getGuardianSmartAccount(client: PublicClient, address: Address, guardians: OwnerSet, validatorAddress: Address, sign: (hash: Hex) => Promise<Hex>): Promise<import("viem/_types/account-abstraction").SmartAccount<import("viem/_types/account-abstraction").SmartAccountImplementation<import("viem").Abi, "0.7">>>;
25
- export { K1_DEFAULT_VALIDATOR_ADDRESS, getEip712Domain, getInstallData, getAddress, packSignature, getDeployArgs, getSmartAccount, getGuardianSmartAccount, };
24
+ export { K1_DEFAULT_VALIDATOR_ADDRESS, getEip712Domain, getInstallData, getAddress, packSignature, getDeployArgs, getSmartAccount, };
26
25
  //# sourceMappingURL=startale.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"startale.d.ts","sourceRoot":"","sources":["../../../accounts/startale.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,MAAM,CAAA;AAc7D,OAAO,KAAK,EAAe,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAE5D,OAAO,KAAK,EAEV,QAAQ,EACR,uBAAuB,EAExB,MAAM,UAAU,CAAA;AAWjB,OAAO,KAAK,EAAE,eAA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uB,EAExB,MAAM,UAAU,CAAA;AAUjB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE9C,QAAA,MAAM,4BAA4B,EAAE,OACU,CAAA;AAW9C,iBAAS,aAAa,CAAC,MAAM,EAAE,uBAAuB;;;;;;SAwErD;AAoFD,iBAAS,UAAU,CAAC,MAAM,EAAE,uBAAuB,iBAmClD;AAED,iBAAS,eAAe,CAAC,MAAM,EAAE,uBAAuB,EAAE,KAAK,EAAE,KAAK;;;;;;EAarE;AAED,iBAAS,cAAc,CAAC,MAAM,EAAE,MAAM,iBAErC;AAED,iBAAe,aAAa,CAC1B,SAAS,EAAE,GAAG,EACd,SAAS,EAAE,eAAe,EAC1B,kBAAkB,GAAE,CAAC,SAAS,EAAE,GAAG,KAAK,GAA8B,0BAQvE;AAED,iBAAe,eAAe,CAC5B,MAAM,EAAE,YAAY,EACpB,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,QAAQ,EAChB,gBAAgB,EAAE,OAAO,EACzB,IAAI,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,GAAG,CAAC,oKAUlC;AAED,OAAO,EACL,4BAA4B,EAC5B,eAAe,EACf,cAAc,EACd,UAAU,EACV,aAAa,EACb,aAAa,EACb,eAAe,GAChB,CAAA"}
@@ -2,7 +2,7 @@ import { concat, decodeFunctionData, encodeAbiParameters, encodeFunctionData, en
2
2
  import { getSetup as getModuleSetup } from '../modules/index.js';
3
3
  import { getOwnerValidator } from '../modules/validators/core.js';
4
4
  import { AccountConfigurationNotSupportedError, Eip712DomainNotAvailableError, } from './error.js';
5
- import { getGuardianSmartAccount as getNexusGuardianSmartAccount, getInstallData as getNexusInstallData, getSmartAccount as getNexusSmartAccount, packSignature as packNexusSignature, } from './nexus.js';
5
+ import { getInstallData as getNexusInstallData, getSmartAccount as getNexusSmartAccount, packSignature as packNexusSignature, } from './nexus.js';
6
6
  const K1_DEFAULT_VALIDATOR_ADDRESS = '0x00000072f286204bb934ed49d8969e86f7dec7b1';
7
7
  const STARTALE_VERSION = '1.0.0';
8
8
  const IMPLEMENTATION_ADDRESS = '0x000000b8f5f723a680d3d7ee624fe0bc84a6e05a';
@@ -185,7 +185,4 @@ async function packSignature(signature, validator, transformSignature = (signatu
185
185
  async function getSmartAccount(client, address, owners, validatorAddress, sign) {
186
186
  return getNexusSmartAccount(client, address, owners, validatorAddress, sign, K1_DEFAULT_VALIDATOR_ADDRESS);
187
187
  }
188
- async function getGuardianSmartAccount(client, address, guardians, validatorAddress, sign) {
189
- return getNexusGuardianSmartAccount(client, address, guardians, validatorAddress, sign, K1_DEFAULT_VALIDATOR_ADDRESS);
190
- }
191
- export { K1_DEFAULT_VALIDATOR_ADDRESS, getEip712Domain, getInstallData, getAddress, packSignature, getDeployArgs, getSmartAccount, getGuardianSmartAccount, };
188
+ export { K1_DEFAULT_VALIDATOR_ADDRESS, getEip712Domain, getInstallData, getAddress, packSignature, getDeployArgs, getSmartAccount, };
@@ -1,5 +1,5 @@
1
1
  import { encodeFunctionData } from 'viem';
2
- import { getModuleInstallationCalls, getModuleUninstallationCalls, } from '../accounts/index.js';
2
+ import { getModuleUninstallationCalls, getValidatorInstallationCalls, } from '../accounts/index.js';
3
3
  import { getOwnableValidator, OWNABLE_VALIDATOR_ADDRESS, } from '../modules/validators/core.js';
4
4
  /**
5
5
  * Enable ECDSA authentication
@@ -10,8 +10,8 @@ import { getOwnableValidator, OWNABLE_VALIDATOR_ADDRESS, } from '../modules/vali
10
10
  function enable(owners, threshold = 1) {
11
11
  const module = getOwnableValidator(threshold, owners);
12
12
  return {
13
- async resolve({ config }) {
14
- return getModuleInstallationCalls(config, module);
13
+ async resolve({ chain, config }) {
14
+ return getValidatorInstallationCalls(config, chain, module);
15
15
  },
16
16
  };
17
17
  }
@@ -22,8 +22,8 @@ function enable(owners, threshold = 1) {
22
22
  function disable() {
23
23
  const module = getOwnableValidator(1, []);
24
24
  return {
25
- async resolve({ config }) {
26
- return getModuleUninstallationCalls(config, module);
25
+ async resolve({ chain, config }) {
26
+ return getModuleUninstallationCalls(config, chain, module);
27
27
  },
28
28
  };
29
29
  }
@@ -21,8 +21,8 @@ function installModule(module) {
21
21
  function uninstallModule(module) {
22
22
  const moduleData = getModule(module);
23
23
  return {
24
- async resolve({ config }) {
25
- return getModuleUninstallationCalls(config, moduleData);
24
+ async resolve({ chain, config }) {
25
+ return getModuleUninstallationCalls(config, chain, moduleData);
26
26
  },
27
27
  };
28
28
  }
@@ -47,8 +47,8 @@ function changeThreshold(newThreshold) {
47
47
  function disable() {
48
48
  const module = getMultiFactorValidator(1, []);
49
49
  return {
50
- async resolve({ config }) {
51
- return getModuleUninstallationCalls(config, module);
50
+ async resolve({ chain, config }) {
51
+ return getModuleUninstallationCalls(config, chain, module);
52
52
  },
53
53
  };
54
54
  }
@@ -28,8 +28,8 @@ function disable() {
28
28
  },
29
29
  ]);
30
30
  return {
31
- async resolve({ config }) {
32
- return getModuleUninstallationCalls(config, module);
31
+ async resolve({ chain, config }) {
32
+ return getModuleUninstallationCalls(config, chain, module);
33
33
  },
34
34
  };
35
35
  }
@@ -1,5 +1,5 @@
1
- import type { Hex } from 'viem';
2
- import type { LazyCallInput, SessionInput } from '../types.js';
1
+ import { type Hex } from 'viem';
2
+ import type { LazyCallInput, Session } from '../types.js';
3
3
  /**
4
4
  * Enable smart sessions
5
5
  * @returns Calls to enable smart sessions
@@ -12,12 +12,36 @@ declare function experimental_enable(): LazyCallInput;
12
12
  declare function experimental_disable(): LazyCallInput;
13
13
  /**
14
14
  * Enable a smart session
15
- * @param session session to enable
15
+ *
16
+ * The `session` must be a resolved `Session` (the return value of
17
+ * `toSession(...)`). Re-resolving it here would drop the explicit
18
+ * `permissions` — a `Session` only carries the derived `actions`, not the
19
+ * original `SessionDefinition.permissions` — which makes the on-chain digest
20
+ * computed by `SmartSessionLens.getAndVerifyDigest` diverge from the one
21
+ * signed in `getSessionDetails`, causing the emissary to reject the enable.
22
+ *
23
+ * @param session resolved session to enable
16
24
  * @returns Calls to enable the smart session
17
25
  */
18
- declare function experimental_enableSession(session: SessionInput, enableSessionSignature: Hex, hashesAndChainIds: {
26
+ declare function experimental_enableSession(session: Session, enableSessionSignature: Hex, hashesAndChainIds: {
19
27
  chainId: bigint;
20
28
  sessionDigest: Hex;
21
29
  }[], sessionToEnableIndex: number): LazyCallInput;
22
- export { experimental_disable, experimental_enable, experimental_enableSession };
30
+ /**
31
+ * Disable a smart session
32
+ *
33
+ * Removes a single session from the smart-session emissary via `removeConfig`.
34
+ * The account executes the call itself, so the emissary skips the disable
35
+ * user-signature — the user authorizes it by signing the outer transaction as
36
+ * usual (no separate, blind session-digest signature). The `session` must be a
37
+ * resolved `Session` (the return value of `toSession(...)`) on the chain where
38
+ * the session is being disabled.
39
+ *
40
+ * @param session resolved session to disable
41
+ * @param expires optional deadline after which this disable call is no longer
42
+ * valid; must be in the future. Omit for no expiry.
43
+ * @returns Calls to disable the smart session
44
+ */
45
+ declare function experimental_disableSession(session: Session, expires?: Date): LazyCallInput;
46
+ export { experimental_disable, experimental_disableSession, experimental_enable, experimental_enableSession, };
23
47
  //# sourceMappingURL=smart-sessions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"smart-sessions.d.ts","sourceRoot":"","sources":["../../../actions/smart-sessions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,MAAM,CAAA;AAU/B,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAE3D;;;GAGG;AACH,iBAAS,mBAAmB,IAAI,aAAa,CAU5C;AAED;;;GAGG;AACH,iBAAS,oBAAoB,IAAI,aAAa,CAU7C;AAED;;;;GAIG;AACH,iBAAS,0BAA0B,CACjC,OAAO,EAAE,YAAY,EACrB,sBAAsB,EAAE,GAAG,EAC3B,iBAAiB,EAAE;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,aAAa,EAAE,GAAG,CAAA;CACnB,EAAE,EACH,oBAAoB,EAAE,MAAM,GAC3B,aAAa,CAmBf;AAED,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,0BAA0B,EAAE,CAAA"}
1
+ {"version":3,"file":"smart-sessions.d.ts","sourceRoot":"","sources":["../../../actions/smart-sessions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,GAAG,EAAc,MAAM,MAAM,CAAA;AAU3C,OAAO,KAAK,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AAEtD;;;GAGG;AACH,iBAAS,mBAAmB,IAAI,aAAa,CAU5C;AAED;;;GAGG;AACH,iBAAS,oBAAoB,IAAI,aAAa,CAU7C;AAED;;;;;;;;;;;;GAYG;AACH,iBAAS,0BAA0B,CACjC,OAAO,EAAE,OAAO,EAChB,sBAAsB,EAAE,GAAG,EAC3B,iBAAiB,EAAE;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,aAAa,EAAE,GAAG,CAAA;CACnB,EAAE,EACH,oBAAoB,EAAE,MAAM,GAC3B,aAAa,CAaf;AAED;;;;;;;;;;;;;;GAcG;AACH,iBAAS,2BAA2B,CAClC,OAAO,EAAE,OAAO,EAChB,OAAO,CAAC,EAAE,IAAI,GACb,aAAa,CAYf;AAED,OAAO,EACL,oBAAoB,EACpB,2BAA2B,EAC3B,mBAAmB,EACnB,0BAA0B,GAC3B,CAAA"}
@@ -1,5 +1,6 @@
1
+ import { maxUint256 } from 'viem';
1
2
  import { getModuleInstallationCalls, getModuleUninstallationCalls, } from '../accounts/index.js';
2
- import { getEnableSessionCall, getSmartSessionValidator, toSession, } from '../modules/validators/smart-sessions.js';
3
+ import { getDisableSessionCall, getEnableSessionCall, getSmartSessionValidator, } from '../modules/validators/smart-sessions.js';
3
4
  /**
4
5
  * Enable smart sessions
5
6
  * @returns Calls to enable smart sessions
@@ -21,28 +22,55 @@ function experimental_enable() {
21
22
  */
22
23
  function experimental_disable() {
23
24
  return {
24
- async resolve({ config }) {
25
+ async resolve({ chain, config }) {
25
26
  const module = getSmartSessionValidator(config);
26
27
  if (!module) {
27
28
  return [];
28
29
  }
29
- return getModuleUninstallationCalls(config, module);
30
+ return getModuleUninstallationCalls(config, chain, module);
30
31
  },
31
32
  };
32
33
  }
33
34
  /**
34
35
  * Enable a smart session
35
- * @param session session to enable
36
+ *
37
+ * The `session` must be a resolved `Session` (the return value of
38
+ * `toSession(...)`). Re-resolving it here would drop the explicit
39
+ * `permissions` — a `Session` only carries the derived `actions`, not the
40
+ * original `SessionDefinition.permissions` — which makes the on-chain digest
41
+ * computed by `SmartSessionLens.getAndVerifyDigest` diverge from the one
42
+ * signed in `getSessionDetails`, causing the emissary to reject the enable.
43
+ *
44
+ * @param session resolved session to enable
36
45
  * @returns Calls to enable the smart session
37
46
  */
38
47
  function experimental_enableSession(session, enableSessionSignature, hashesAndChainIds, sessionToEnableIndex) {
39
48
  return {
40
- async resolve({ accountAddress, chain, config }) {
41
- return getEnableSessionCall(accountAddress, toSession({
42
- ...session,
43
- chain,
44
- }, { useDevContracts: config.useDevContracts }), enableSessionSignature, hashesAndChainIds, sessionToEnableIndex, config.useDevContracts);
49
+ async resolve({ accountAddress, config }) {
50
+ return getEnableSessionCall(accountAddress, session, enableSessionSignature, hashesAndChainIds, sessionToEnableIndex, config.useDevContracts);
51
+ },
52
+ };
53
+ }
54
+ /**
55
+ * Disable a smart session
56
+ *
57
+ * Removes a single session from the smart-session emissary via `removeConfig`.
58
+ * The account executes the call itself, so the emissary skips the disable
59
+ * user-signature — the user authorizes it by signing the outer transaction as
60
+ * usual (no separate, blind session-digest signature). The `session` must be a
61
+ * resolved `Session` (the return value of `toSession(...)`) on the chain where
62
+ * the session is being disabled.
63
+ *
64
+ * @param session resolved session to disable
65
+ * @param expires optional deadline after which this disable call is no longer
66
+ * valid; must be in the future. Omit for no expiry.
67
+ * @returns Calls to disable the smart session
68
+ */
69
+ function experimental_disableSession(session, expires) {
70
+ return {
71
+ async resolve({ accountAddress, config }) {
72
+ return getDisableSessionCall(accountAddress, session, expires ? BigInt(Math.floor(expires.getTime() / 1000)) : maxUint256, config.provider, config.useDevContracts);
45
73
  },
46
74
  };
47
75
  }
48
- export { experimental_disable, experimental_enable, experimental_enableSession };
76
+ export { experimental_disable, experimental_disableSession, experimental_enable, experimental_enableSession, };
@@ -1,5 +1,5 @@
1
- import { AccountConfigurationNotSupportedError, AccountError, Eip712DomainNotAvailableError, Eip7702AccountMustHaveEoaError, Eip7702NotSupportedForAccountError, EoaAccountMustHaveAccountError, ExistingEip7702AccountsNotSupportedError, FactoryArgsNotAvailableError, isAccountError, SigningNotSupportedForAccountError, SmartSessionsNotEnabledError, WalletClientNoConnectedAccountError } from '../accounts/index.js';
2
- import { ExecutionError, IntentFailedError, isExecutionError, OrderPathRequiredForIntentsError, QuoteNotInPreparedTransactionError, SessionChainRequiredError, SignerNotSupportedError } from '../execution/index.js';
3
- import { ConflictError, ExternalServiceTimeoutError, ForbiddenError, InsufficientLiquidityError, InternalServerError, isAuthError, isOrchestratorError, isRateLimited, isRetryable, isValidationError, NotFoundError, OrchestratorError, RateLimitedError, RelayerMarketUnavailableError, SettlementExecutionError, SettlementQuoteError, UnauthorizedError, UnprocessableContentError, UnsupportedChainError, UnsupportedTokenError, ValidationError } from '../orchestrator/index.js';
4
- export { isAccountError, AccountError, AccountConfigurationNotSupportedError, Eip712DomainNotAvailableError, Eip7702AccountMustHaveEoaError, EoaAccountMustHaveAccountError, ExistingEip7702AccountsNotSupportedError, FactoryArgsNotAvailableError, SmartSessionsNotEnabledError, SigningNotSupportedForAccountError, Eip7702NotSupportedForAccountError, WalletClientNoConnectedAccountError, isExecutionError, ExecutionError, IntentFailedError, OrderPathRequiredForIntentsError, QuoteNotInPreparedTransactionError, SessionChainRequiredError, SignerNotSupportedError, isOrchestratorError, isRetryable, isAuthError, isValidationError, isRateLimited, ConflictError, ExternalServiceTimeoutError, ForbiddenError, InsufficientLiquidityError, InternalServerError, NotFoundError, OrchestratorError, RateLimitedError, RelayerMarketUnavailableError, SettlementExecutionError, SettlementQuoteError, UnauthorizedError, UnprocessableContentError, ValidationError, UnsupportedChainError, UnsupportedTokenError, };
1
+ import { AccountConfigurationNotSupportedError, AccountError, DefaultValidatorAlreadyInitializedError, Eip712DomainNotAvailableError, Eip7702AccountMustHaveEoaError, Eip7702NotSupportedForAccountError, EoaAccountMustHaveAccountError, EoaSigningMethodNotConfiguredError, EoaSigningNotSupportedError, FactoryArgsNotAvailableError, isAccountError, ModuleInstallationNotSupportedError, OwnersFieldRequiredError, SigningNotSupportedForAccountError, WalletClientNoConnectedAccountError } from '../accounts/index.js';
2
+ import { Eip7702InitSignatureRequiredError, ExecutionError, IntentFailedError, InvalidSourceCallsError, isExecutionError, OrderPathRequiredForIntentsError, QuoteNotInPreparedTransactionError } from '../execution/index.js';
3
+ import { ConflictError, ExternalServiceTimeoutError, ForbiddenError, InsufficientLiquidityError, InternalServerError, isAuthError, isOrchestratorError, isRateLimited, isRetryable, isSimulationFailed, isValidationError, KeyScopeDeniedError, NotFoundError, OrchestratorError, RateLimitedError, RelayerMarketUnavailableError, SettlementExecutionError, SettlementQuoteError, SimulationFailedError, UnauthorizedError, UnprocessableContentError, UnsupportedChainError, UnsupportedTokenError, ValidationError } from '../orchestrator/index.js';
4
+ export { isAccountError, AccountError, AccountConfigurationNotSupportedError, DefaultValidatorAlreadyInitializedError, Eip712DomainNotAvailableError, Eip7702AccountMustHaveEoaError, Eip7702NotSupportedForAccountError, EoaAccountMustHaveAccountError, EoaSigningMethodNotConfiguredError, EoaSigningNotSupportedError, FactoryArgsNotAvailableError, ModuleInstallationNotSupportedError, OwnersFieldRequiredError, SigningNotSupportedForAccountError, WalletClientNoConnectedAccountError, isExecutionError, ExecutionError, Eip7702InitSignatureRequiredError, IntentFailedError, InvalidSourceCallsError, OrderPathRequiredForIntentsError, QuoteNotInPreparedTransactionError, isOrchestratorError, isRetryable, isAuthError, isValidationError, isRateLimited, isSimulationFailed, ConflictError, ExternalServiceTimeoutError, ForbiddenError, InsufficientLiquidityError, InternalServerError, KeyScopeDeniedError, NotFoundError, OrchestratorError, RateLimitedError, RelayerMarketUnavailableError, SimulationFailedError, SettlementExecutionError, SettlementQuoteError, UnauthorizedError, UnprocessableContentError, ValidationError, UnsupportedChainError, UnsupportedTokenError, };
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../errors/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qCAAqC,EACrC,YAAY,EACZ,6BAA6B,EAC7B,8BAA8B,EAC9B,kCAAkC,EAClC,8BAA8B,EAC9B,wCAAwC,EACxC,4BAA4B,EAC5B,cAAc,EACd,kCAAkC,EAClC,4BAA4B,EAC5B,mCAAmC,EACpC,MAAM,aAAa,CAAA;AACpB,OAAO,EACL,cAAc,EACd,iBAAiB,EACjB,gBAAgB,EAChB,gCAAgC,EAChC,kCAAkC,EAClC,yBAAyB,EACzB,uBAAuB,EACxB,MAAM,cAAc,CAAA;AACrB,OAAO,EACL,aAAa,EACb,2BAA2B,EAC3B,cAAc,EACd,0BAA0B,EAC1B,mBAAmB,EACnB,WAAW,EACX,mBAAmB,EACnB,aAAa,EACb,WAAW,EACX,iBAAiB,EACjB,aAAa,EACb,iBAAiB,EACjB,gBAAgB,EAChB,6BAA6B,EAC7B,wBAAwB,EACxB,oBAAoB,EACpB,iBAAiB,EACjB,yBAAyB,EACzB,qBAAqB,EACrB,qBAAqB,EACrB,eAAe,EAChB,MAAM,iBAAiB,CAAA;AAExB,OAAO,EAEL,cAAc,EACd,YAAY,EACZ,qCAAqC,EACrC,6BAA6B,EAC7B,8BAA8B,EAC9B,8BAA8B,EAC9B,wCAAwC,EACxC,4BAA4B,EAC5B,4BAA4B,EAC5B,kCAAkC,EAClC,kCAAkC,EAClC,mCAAmC,EAEnC,gBAAgB,EAChB,cAAc,EACd,iBAAiB,EACjB,gCAAgC,EAChC,kCAAkC,EAClC,yBAAyB,EACzB,uBAAuB,EAEvB,mBAAmB,EACnB,WAAW,EACX,WAAW,EACX,iBAAiB,EACjB,aAAa,EACb,aAAa,EACb,2BAA2B,EAC3B,cAAc,EACd,0BAA0B,EAC1B,mBAAmB,EACnB,aAAa,EACb,iBAAiB,EACjB,gBAAgB,EAChB,6BAA6B,EAC7B,wBAAwB,EACxB,oBAAoB,EACpB,iBAAiB,EACjB,yBAAyB,EACzB,eAAe,EAEf,qBAAqB,EACrB,qBAAqB,GACtB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../errors/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qCAAqC,EACrC,YAAY,EACZ,uCAAuC,EACvC,6BAA6B,EAC7B,8BAA8B,EAC9B,kCAAkC,EAClC,8BAA8B,EAC9B,kCAAkC,EAClC,2BAA2B,EAC3B,4BAA4B,EAC5B,cAAc,EACd,mCAAmC,EACnC,wBAAwB,EACxB,kCAAkC,EAClC,mCAAmC,EACpC,MAAM,aAAa,CAAA;AACpB,OAAO,EACL,iCAAiC,EACjC,cAAc,EACd,iBAAiB,EACjB,uBAAuB,EACvB,gBAAgB,EAChB,gCAAgC,EAChC,kCAAkC,EACnC,MAAM,cAAc,CAAA;AACrB,OAAO,EACL,aAAa,EACb,2BAA2B,EAC3B,cAAc,EACd,0BAA0B,EAC1B,mBAAmB,EACnB,WAAW,EACX,mBAAmB,EACnB,aAAa,EACb,WAAW,EACX,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,aAAa,EACb,iBAAiB,EACjB,gBAAgB,EAChB,6BAA6B,EAC7B,wBAAwB,EACxB,oBAAoB,EACpB,qBAAqB,EACrB,iBAAiB,EACjB,yBAAyB,EACzB,qBAAqB,EACrB,qBAAqB,EACrB,eAAe,EAChB,MAAM,iBAAiB,CAAA;AAExB,OAAO,EAEL,cAAc,EACd,YAAY,EACZ,qCAAqC,EACrC,uCAAuC,EACvC,6BAA6B,EAC7B,8BAA8B,EAC9B,kCAAkC,EAClC,8BAA8B,EAC9B,kCAAkC,EAClC,2BAA2B,EAC3B,4BAA4B,EAC5B,mCAAmC,EACnC,wBAAwB,EACxB,kCAAkC,EAClC,mCAAmC,EAEnC,gBAAgB,EAChB,cAAc,EACd,iCAAiC,EACjC,iBAAiB,EACjB,uBAAuB,EACvB,gCAAgC,EAChC,kCAAkC,EAElC,mBAAmB,EACnB,WAAW,EACX,WAAW,EACX,iBAAiB,EACjB,aAAa,EACb,kBAAkB,EAClB,aAAa,EACb,2BAA2B,EAC3B,cAAc,EACd,0BAA0B,EAC1B,mBAAmB,EACnB,mBAAmB,EACnB,aAAa,EACb,iBAAiB,EACjB,gBAAgB,EAChB,6BAA6B,EAC7B,qBAAqB,EACrB,wBAAwB,EACxB,oBAAoB,EACpB,iBAAiB,EACjB,yBAAyB,EACzB,eAAe,EAEf,qBAAqB,EACrB,qBAAqB,GACtB,CAAA"}
@@ -1,12 +1,12 @@
1
- import { AccountConfigurationNotSupportedError, AccountError, Eip712DomainNotAvailableError, Eip7702AccountMustHaveEoaError, Eip7702NotSupportedForAccountError, EoaAccountMustHaveAccountError, ExistingEip7702AccountsNotSupportedError, FactoryArgsNotAvailableError, isAccountError, SigningNotSupportedForAccountError, SmartSessionsNotEnabledError, WalletClientNoConnectedAccountError, } from '../accounts/index.js';
2
- import { ExecutionError, IntentFailedError, isExecutionError, OrderPathRequiredForIntentsError, QuoteNotInPreparedTransactionError, SessionChainRequiredError, SignerNotSupportedError, } from '../execution/index.js';
3
- import { ConflictError, ExternalServiceTimeoutError, ForbiddenError, InsufficientLiquidityError, InternalServerError, isAuthError, isOrchestratorError, isRateLimited, isRetryable, isValidationError, NotFoundError, OrchestratorError, RateLimitedError, RelayerMarketUnavailableError, SettlementExecutionError, SettlementQuoteError, UnauthorizedError, UnprocessableContentError, UnsupportedChainError, UnsupportedTokenError, ValidationError, } from '../orchestrator/index.js';
1
+ import { AccountConfigurationNotSupportedError, AccountError, DefaultValidatorAlreadyInitializedError, Eip712DomainNotAvailableError, Eip7702AccountMustHaveEoaError, Eip7702NotSupportedForAccountError, EoaAccountMustHaveAccountError, EoaSigningMethodNotConfiguredError, EoaSigningNotSupportedError, FactoryArgsNotAvailableError, isAccountError, ModuleInstallationNotSupportedError, OwnersFieldRequiredError, SigningNotSupportedForAccountError, WalletClientNoConnectedAccountError, } from '../accounts/index.js';
2
+ import { Eip7702InitSignatureRequiredError, ExecutionError, IntentFailedError, InvalidSourceCallsError, isExecutionError, OrderPathRequiredForIntentsError, QuoteNotInPreparedTransactionError, } from '../execution/index.js';
3
+ import { ConflictError, ExternalServiceTimeoutError, ForbiddenError, InsufficientLiquidityError, InternalServerError, isAuthError, isOrchestratorError, isRateLimited, isRetryable, isSimulationFailed, isValidationError, KeyScopeDeniedError, NotFoundError, OrchestratorError, RateLimitedError, RelayerMarketUnavailableError, SettlementExecutionError, SettlementQuoteError, SimulationFailedError, UnauthorizedError, UnprocessableContentError, UnsupportedChainError, UnsupportedTokenError, ValidationError, } from '../orchestrator/index.js';
4
4
  export {
5
5
  // Account
6
- isAccountError, AccountError, AccountConfigurationNotSupportedError, Eip712DomainNotAvailableError, Eip7702AccountMustHaveEoaError, EoaAccountMustHaveAccountError, ExistingEip7702AccountsNotSupportedError, FactoryArgsNotAvailableError, SmartSessionsNotEnabledError, SigningNotSupportedForAccountError, Eip7702NotSupportedForAccountError, WalletClientNoConnectedAccountError,
6
+ isAccountError, AccountError, AccountConfigurationNotSupportedError, DefaultValidatorAlreadyInitializedError, Eip712DomainNotAvailableError, Eip7702AccountMustHaveEoaError, Eip7702NotSupportedForAccountError, EoaAccountMustHaveAccountError, EoaSigningMethodNotConfiguredError, EoaSigningNotSupportedError, FactoryArgsNotAvailableError, ModuleInstallationNotSupportedError, OwnersFieldRequiredError, SigningNotSupportedForAccountError, WalletClientNoConnectedAccountError,
7
7
  // Execution
8
- isExecutionError, ExecutionError, IntentFailedError, OrderPathRequiredForIntentsError, QuoteNotInPreparedTransactionError, SessionChainRequiredError, SignerNotSupportedError,
8
+ isExecutionError, ExecutionError, Eip7702InitSignatureRequiredError, IntentFailedError, InvalidSourceCallsError, OrderPathRequiredForIntentsError, QuoteNotInPreparedTransactionError,
9
9
  // Orchestrator
10
- isOrchestratorError, isRetryable, isAuthError, isValidationError, isRateLimited, ConflictError, ExternalServiceTimeoutError, ForbiddenError, InsufficientLiquidityError, InternalServerError, NotFoundError, OrchestratorError, RateLimitedError, RelayerMarketUnavailableError, SettlementExecutionError, SettlementQuoteError, UnauthorizedError, UnprocessableContentError, ValidationError,
10
+ isOrchestratorError, isRetryable, isAuthError, isValidationError, isRateLimited, isSimulationFailed, ConflictError, ExternalServiceTimeoutError, ForbiddenError, InsufficientLiquidityError, InternalServerError, KeyScopeDeniedError, NotFoundError, OrchestratorError, RateLimitedError, RelayerMarketUnavailableError, SimulationFailedError, SettlementExecutionError, SettlementQuoteError, UnauthorizedError, UnprocessableContentError, ValidationError,
11
11
  // Registry (SDK-local validation)
12
12
  UnsupportedChainError, UnsupportedTokenError, };