@rhinestone/sdk 1.0.0-alpha.9 → 1.0.0-beta.38

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 (151) hide show
  1. package/dist/src/accounts/error.d.ts +38 -3
  2. package/dist/src/accounts/error.d.ts.map +1 -1
  3. package/dist/src/accounts/error.js +55 -7
  4. package/dist/src/accounts/index.d.ts +30 -15
  5. package/dist/src/accounts/index.d.ts.map +1 -1
  6. package/dist/src/accounts/index.js +284 -140
  7. package/dist/src/accounts/index.test.js +3 -5
  8. package/dist/src/accounts/json-rpc/index.d.ts +5 -0
  9. package/dist/src/accounts/json-rpc/index.d.ts.map +1 -0
  10. package/dist/src/accounts/json-rpc/index.js +16 -0
  11. package/dist/src/accounts/json-rpc/index.test.d.ts.map +1 -0
  12. package/dist/src/accounts/json-rpc/index.test.js +16 -0
  13. package/dist/src/accounts/json-rpc/providers.d.ts +4 -0
  14. package/dist/src/accounts/json-rpc/providers.d.ts.map +1 -0
  15. package/dist/src/accounts/json-rpc/providers.js +14 -0
  16. package/dist/src/accounts/json-rpc/providers.test.d.ts +2 -0
  17. package/dist/src/accounts/json-rpc/providers.test.d.ts.map +1 -0
  18. package/dist/src/accounts/json-rpc/providers.test.js +15 -0
  19. package/dist/src/accounts/kernel.d.ts +4 -3
  20. package/dist/src/accounts/kernel.d.ts.map +1 -1
  21. package/dist/src/accounts/kernel.js +32 -6
  22. package/dist/src/accounts/kernel.test.js +41 -19
  23. package/dist/src/accounts/nexus.d.ts +11 -4
  24. package/dist/src/accounts/nexus.d.ts.map +1 -1
  25. package/dist/src/accounts/nexus.js +182 -25
  26. package/dist/src/accounts/nexus.test.js +44 -18
  27. package/dist/src/accounts/safe.d.ts +2 -2
  28. package/dist/src/accounts/safe.d.ts.map +1 -1
  29. package/dist/src/accounts/safe.js +88 -58
  30. package/dist/src/accounts/safe.test.js +40 -14
  31. package/dist/src/accounts/signing/common.d.ts +27 -0
  32. package/dist/src/accounts/signing/common.d.ts.map +1 -0
  33. package/dist/src/accounts/signing/common.js +145 -0
  34. package/dist/src/accounts/signing/message.d.ts +5 -0
  35. package/dist/src/accounts/signing/message.d.ts.map +1 -0
  36. package/dist/src/accounts/signing/message.js +47 -0
  37. package/dist/src/accounts/signing/passkeys.d.ts +36 -0
  38. package/dist/src/accounts/signing/passkeys.d.ts.map +1 -0
  39. package/dist/src/accounts/signing/passkeys.js +125 -0
  40. package/dist/src/accounts/signing/passkeys.test.d.ts +2 -0
  41. package/dist/src/accounts/signing/passkeys.test.d.ts.map +1 -0
  42. package/dist/src/accounts/signing/passkeys.test.js +88 -0
  43. package/dist/src/accounts/signing/typedData.d.ts +5 -0
  44. package/dist/src/accounts/signing/typedData.d.ts.map +1 -0
  45. package/dist/src/accounts/signing/typedData.js +35 -0
  46. package/dist/src/accounts/startale.d.ts +2 -2
  47. package/dist/src/accounts/startale.d.ts.map +1 -1
  48. package/dist/src/accounts/startale.js +3 -3
  49. package/dist/src/accounts/startale.test.js +9 -14
  50. package/dist/src/accounts/utils.d.ts +4 -4
  51. package/dist/src/accounts/utils.d.ts.map +1 -1
  52. package/dist/src/accounts/utils.js +3 -40
  53. package/dist/src/accounts/walletClient.d.ts +7 -0
  54. package/dist/src/accounts/walletClient.d.ts.map +1 -0
  55. package/dist/src/accounts/walletClient.js +38 -0
  56. package/dist/src/actions/compact.d.ts +13 -0
  57. package/dist/src/actions/compact.d.ts.map +1 -0
  58. package/dist/src/actions/compact.js +210 -0
  59. package/dist/src/actions/ecdsa.d.ts +35 -0
  60. package/dist/src/actions/ecdsa.d.ts.map +1 -0
  61. package/dist/src/actions/ecdsa.js +114 -0
  62. package/dist/src/actions/ecdsa.test.d.ts +2 -0
  63. package/dist/src/actions/ecdsa.test.d.ts.map +1 -0
  64. package/dist/src/actions/ecdsa.test.js +99 -0
  65. package/dist/src/actions/index.d.ts +23 -38
  66. package/dist/src/actions/index.d.ts.map +1 -1
  67. package/dist/src/actions/index.js +29 -294
  68. package/dist/src/actions/mfa.d.ts +37 -0
  69. package/dist/src/actions/mfa.d.ts.map +1 -0
  70. package/dist/src/actions/mfa.js +133 -0
  71. package/dist/src/actions/passkeys.d.ts +37 -0
  72. package/dist/src/actions/passkeys.d.ts.map +1 -0
  73. package/dist/src/actions/passkeys.js +129 -0
  74. package/dist/src/actions/passkeys.test.d.ts +2 -0
  75. package/dist/src/actions/passkeys.test.d.ts.map +1 -0
  76. package/dist/src/actions/passkeys.test.js +54 -0
  77. package/dist/src/actions/recovery.d.ts +33 -0
  78. package/dist/src/actions/recovery.d.ts.map +1 -0
  79. package/dist/src/actions/recovery.js +193 -0
  80. package/dist/src/actions/recovery.test.d.ts +2 -0
  81. package/dist/src/actions/recovery.test.d.ts.map +1 -0
  82. package/dist/src/actions/recovery.test.js +168 -0
  83. package/dist/src/actions/smart-session.d.ts +6 -0
  84. package/dist/src/actions/smart-session.d.ts.map +1 -1
  85. package/dist/src/actions/smart-session.js +6 -0
  86. package/dist/src/errors/index.d.ts +5 -0
  87. package/dist/src/errors/index.d.ts.map +1 -0
  88. package/dist/src/errors/index.js +35 -0
  89. package/dist/src/execution/compact.d.ts +150 -7
  90. package/dist/src/execution/compact.d.ts.map +1 -1
  91. package/dist/src/execution/compact.js +112 -95
  92. package/dist/src/execution/error.d.ts +2 -9
  93. package/dist/src/execution/error.d.ts.map +1 -1
  94. package/dist/src/execution/error.js +4 -13
  95. package/dist/src/execution/index.d.ts +34 -22
  96. package/dist/src/execution/index.d.ts.map +1 -1
  97. package/dist/src/execution/index.js +62 -42
  98. package/dist/src/execution/permit2.d.ts +148 -0
  99. package/dist/src/execution/permit2.d.ts.map +1 -0
  100. package/dist/src/execution/permit2.js +282 -0
  101. package/dist/src/execution/smart-session.d.ts +3 -3
  102. package/dist/src/execution/smart-session.d.ts.map +1 -1
  103. package/dist/src/execution/types.d.ts +35 -0
  104. package/dist/src/execution/types.d.ts.map +1 -0
  105. package/dist/src/execution/types.js +2 -0
  106. package/dist/src/execution/utils.d.ts +36 -27
  107. package/dist/src/execution/utils.d.ts.map +1 -1
  108. package/dist/src/execution/utils.js +357 -103
  109. package/dist/src/index.d.ts +41 -22
  110. package/dist/src/index.d.ts.map +1 -1
  111. package/dist/src/index.js +199 -65
  112. package/dist/src/modules/common.d.ts +10 -4
  113. package/dist/src/modules/common.d.ts.map +1 -1
  114. package/dist/src/modules/common.js +22 -1
  115. package/dist/src/modules/index.d.ts +4 -18
  116. package/dist/src/modules/index.d.ts.map +1 -1
  117. package/dist/src/modules/index.js +15 -63
  118. package/dist/src/modules/index.test.js +9 -26
  119. package/dist/src/modules/omni-account.d.ts +2 -1
  120. package/dist/src/modules/omni-account.d.ts.map +1 -1
  121. package/dist/src/modules/omni-account.js +3 -1
  122. package/dist/src/modules/read.d.ts.map +1 -1
  123. package/dist/src/modules/read.js +4 -0
  124. package/dist/src/modules/validators/core.d.ts +5 -3
  125. package/dist/src/modules/validators/core.d.ts.map +1 -1
  126. package/dist/src/modules/validators/core.js +64 -41
  127. package/dist/src/modules/validators/core.test.js +7 -7
  128. package/dist/src/modules/validators/smart-sessions.js +3 -3
  129. package/dist/src/modules/validators/smart-sessions.test.js +4 -7
  130. package/dist/src/orchestrator/client.d.ts +4 -4
  131. package/dist/src/orchestrator/client.d.ts.map +1 -1
  132. package/dist/src/orchestrator/client.js +30 -15
  133. package/dist/src/orchestrator/index.d.ts +2 -3
  134. package/dist/src/orchestrator/index.d.ts.map +1 -1
  135. package/dist/src/orchestrator/index.js +1 -3
  136. package/dist/src/orchestrator/registry.d.ts +1 -23
  137. package/dist/src/orchestrator/registry.d.ts.map +1 -1
  138. package/dist/src/orchestrator/registry.js +37 -33
  139. package/dist/src/orchestrator/registry.test.js +7 -7
  140. package/dist/src/orchestrator/types.d.ts +97 -29
  141. package/dist/src/orchestrator/types.d.ts.map +1 -1
  142. package/dist/src/orchestrator/utils.d.ts +1 -3
  143. package/dist/src/orchestrator/utils.d.ts.map +1 -1
  144. package/dist/src/orchestrator/utils.js +0 -102
  145. package/dist/src/types.d.ts +74 -10
  146. package/dist/src/types.d.ts.map +1 -1
  147. package/package.json +72 -1
  148. package/dist/src/actions/index.test.d.ts.map +0 -1
  149. package/dist/src/actions/index.test.js +0 -302
  150. package/dist/src/orchestrator/registry.json +0 -365
  151. /package/dist/src/{actions → accounts/json-rpc}/index.test.d.ts +0 -0
@@ -14,14 +14,7 @@ declare class ExecutionError extends Error {
14
14
  get errorType(): string;
15
15
  get traceId(): string;
16
16
  }
17
- declare class SourceChainsNotAvailableForUserOpFlowError extends ExecutionError {
18
- constructor(params?: {
19
- context?: any;
20
- errorType?: string;
21
- traceId?: string;
22
- });
23
- }
24
- declare class UserOperationRequiredForSmartSessionsError extends ExecutionError {
17
+ declare class SignerNotSupportedError extends ExecutionError {
25
18
  constructor(params?: {
26
19
  context?: any;
27
20
  errorType?: string;
@@ -50,5 +43,5 @@ declare class IntentFailedError extends ExecutionError {
50
43
  });
51
44
  }
52
45
  declare function isExecutionError(error: Error): error is ExecutionError;
53
- export { isExecutionError, ExecutionError, SourceChainsNotAvailableForUserOpFlowError, UserOperationRequiredForSmartSessionsError, OrderPathRequiredForIntentsError, SessionChainRequiredError, IntentFailedError, };
46
+ export { isExecutionError, ExecutionError, OrderPathRequiredForIntentsError, SessionChainRequiredError, IntentFailedError, SignerNotSupportedError, };
54
47
  //# sourceMappingURL=error.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../../execution/error.ts"],"names":[],"mappings":"AAAA,cAAM,cAAe,SAAQ,KAAK;IAChC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAQ;IACjC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAK;IAC9B,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAQ;IACnC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAQ;gBAErB,MAAM,CAAC,EAAE;QACnB,OAAO,CAAC,EAAE,MAAM,CAAA;QAChB,OAAO,CAAC,EAAE,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CAAC,EAAE,MAAM,CAAA;QAClB,OAAO,CAAC,EAAE,MAAM,CAAA;KACjB;CAMF;AAED,iBAAS,gBAAgB,CAAC,KAAK,EAAE,KAAK,GAAG,KAAK,IAAI,cAAc,CAE/D;AAED,OAAO,EACL,gBAAgB,EAChB,cAAc,EACd,gCAAgC,EAChC,yBAAyB,EACzB,iBAAiB,EACjB,uBAAuB,GACxB,CAAA"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IntentFailedError = exports.SessionChainRequiredError = exports.OrderPathRequiredForIntentsError = exports.UserOperationRequiredForSmartSessionsError = exports.SourceChainsNotAvailableForUserOpFlowError = exports.ExecutionError = void 0;
3
+ exports.SignerNotSupportedError = exports.IntentFailedError = exports.SessionChainRequiredError = exports.OrderPathRequiredForIntentsError = exports.ExecutionError = void 0;
4
4
  exports.isExecutionError = isExecutionError;
5
5
  class ExecutionError extends Error {
6
6
  _message;
@@ -28,24 +28,15 @@ class ExecutionError extends Error {
28
28
  }
29
29
  }
30
30
  exports.ExecutionError = ExecutionError;
31
- class SourceChainsNotAvailableForUserOpFlowError extends ExecutionError {
31
+ class SignerNotSupportedError extends ExecutionError {
32
32
  constructor(params) {
33
33
  super({
34
- message: "Can't specify the source chains when using user operations",
34
+ message: 'Sending a transaction is not supported for this type of signers. Use user operations instead.',
35
35
  ...params,
36
36
  });
37
37
  }
38
38
  }
39
- exports.SourceChainsNotAvailableForUserOpFlowError = SourceChainsNotAvailableForUserOpFlowError;
40
- class UserOperationRequiredForSmartSessionsError extends ExecutionError {
41
- constructor(params) {
42
- super({
43
- message: 'User operation is required when using smart sessions',
44
- ...params,
45
- });
46
- }
47
- }
48
- exports.UserOperationRequiredForSmartSessionsError = UserOperationRequiredForSmartSessionsError;
39
+ exports.SignerNotSupportedError = SignerNotSupportedError;
49
40
  class OrderPathRequiredForIntentsError extends ExecutionError {
50
41
  constructor(params) {
51
42
  super({
@@ -1,24 +1,36 @@
1
- import { type Address, type Chain } from 'viem';
2
- import type { IntentOpStatus } from '../orchestrator';
3
- import type { RhinestoneAccountConfig, Transaction } from '../types';
4
- import { ExecutionError, IntentFailedError, isExecutionError, OrderPathRequiredForIntentsError, SessionChainRequiredError, SourceChainsNotAvailableForUserOpFlowError, UserOperationRequiredForSmartSessionsError } from './error';
5
- import type { IntentData, TransactionResult } from './utils';
1
+ import { type Address, type Chain, type Hex } from 'viem';
2
+ import type { UserOperationReceipt } from 'viem/_types/account-abstraction';
3
+ import type { SettlementLayer } from '../orchestrator/types';
4
+ import type { CalldataInput, CallInput, RhinestoneAccountConfig, RhinestoneConfig, SignerSet, SourceAssetInput, TokenRequest, TokenSymbol, Transaction, UserOperationTransaction } from '../types';
5
+ import { ExecutionError, IntentFailedError, isExecutionError, OrderPathRequiredForIntentsError, SessionChainRequiredError, SignerNotSupportedError } from './error';
6
+ import type { TransactionResult, UserOperationResult } from './utils';
7
+ interface TransactionStatus {
8
+ fill: {
9
+ hash: Hex | undefined;
10
+ chainId: number;
11
+ };
12
+ claims: {
13
+ hash: Hex | undefined;
14
+ chainId: number;
15
+ }[];
16
+ }
6
17
  declare function sendTransaction(config: RhinestoneAccountConfig, transaction: Transaction): Promise<TransactionResult>;
7
- declare function waitForExecution(config: RhinestoneAccountConfig, result: TransactionResult, acceptsPreconfirmations: boolean): Promise<IntentOpStatus | {
8
- actualGasCost: bigint;
9
- actualGasUsed: bigint;
10
- entryPoint: Address;
11
- logs: import("viem").Log<bigint, number, false>[];
12
- nonce: bigint;
13
- paymaster?: `0x${string}` | undefined;
14
- reason?: string | undefined | undefined;
15
- receipt: import("viem").TransactionReceipt<bigint, number, "success" | "reverted">;
16
- sender: Address;
17
- success: boolean;
18
- userOpHash: import("viem").Hash;
19
- }>;
20
- declare function getMaxSpendableAmount(config: RhinestoneAccountConfig, chain: Chain, tokenAddress: Address, gasUnits: bigint): Promise<bigint>;
21
- declare function getPortfolio(config: RhinestoneAccountConfig, onTestnets: boolean): Promise<import("../orchestrator").Portfolio>;
22
- export { sendTransaction, waitForExecution, getMaxSpendableAmount, getPortfolio, isExecutionError, IntentFailedError, ExecutionError, SourceChainsNotAvailableForUserOpFlowError, UserOperationRequiredForSmartSessionsError, OrderPathRequiredForIntentsError, SessionChainRequiredError, };
23
- export type { IntentData, TransactionResult };
18
+ declare function sendUserOperation(config: RhinestoneAccountConfig, transaction: UserOperationTransaction): Promise<UserOperationResult>;
19
+ declare function sendTransactionInternal(config: RhinestoneConfig, sourceChains: Chain[], targetChain: Chain, callInputs: CallInput[], options: {
20
+ gasLimit?: bigint;
21
+ initialTokenRequests?: TokenRequest[];
22
+ signers?: SignerSet;
23
+ sponsored?: boolean;
24
+ settlementLayers?: SettlementLayer[];
25
+ sourceAssets?: SourceAssetInput;
26
+ lockFunds?: boolean;
27
+ feeAsset?: Address | TokenSymbol;
28
+ dryRun?: boolean;
29
+ }): Promise<TransactionResult>;
30
+ declare function sendUserOperationInternal(config: RhinestoneConfig, chain: Chain, callInputs: CalldataInput[], signers?: SignerSet): Promise<UserOperationResult>;
31
+ declare function waitForExecution(config: RhinestoneConfig, result: TransactionResult | UserOperationResult, acceptsPreconfirmations: boolean): Promise<TransactionStatus | UserOperationReceipt>;
32
+ declare function getMaxSpendableAmount(config: RhinestoneConfig, chain: Chain, tokenAddress: Address, gasUnits: bigint, sponsored?: boolean): Promise<bigint>;
33
+ declare function getPortfolio(config: RhinestoneConfig, onTestnets: boolean): Promise<import("../orchestrator").Portfolio>;
34
+ export { sendTransaction, sendTransactionInternal, sendUserOperation, sendUserOperationInternal, waitForExecution, getMaxSpendableAmount, getPortfolio, isExecutionError, ExecutionError, IntentFailedError, OrderPathRequiredForIntentsError, SessionChainRequiredError, SignerNotSupportedError, };
35
+ export type { TransactionStatus, TransactionResult, UserOperationResult };
24
36
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../execution/index.ts"],"names":[],"mappings":"A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YAAY,CAAC,EAAE,gBAAgB,CAAA;IAC/B,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,GAAG,WAAW,CAAA;IAChC,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,8BAsCF;AAED,iBAAe,yBAAyB,CACtC,MAAM,EAAE,gBAAgB,EACxB,KAAK,EAAE,KAAK,EACZ,UAAU,EAAE,aAAa,EAAE,EAC3B,OAAO,CAAC,EAAE,SAAS,gCAgCpB;AAwDD,iBAAe,gBAAgB,CAC7B,MAAM,EAAE,gBAAgB,EACxB,MAAM,EAAE,iBAAiB,GAAG,mBAAmB,EAC/C,uBAAuB,EAAE,OAAO,GAC/B,OAAO,CAAC,iBAAiB,GAAG,oBAAoB,CAAC,CAiDnD;AAED,iBAAe,qBAAqB,CAClC,MAAM,EAAE,gBAAgB,EACxB,KAAK,EAAE,KAAK,EACZ,YAAY,EAAE,OAAO,EACrB,QAAQ,EAAE,MAAM,EAChB,SAAS,GAAE,OAAe,GACzB,OAAO,CAAC,MAAM,CAAC,CAcjB;AAED,iBAAe,YAAY,CAAC,MAAM,EAAE,gBAAgB,EAAE,UAAU,EAAE,OAAO,gDASxE;AAED,OAAO,EACL,eAAe,EACf,uBAAuB,EACvB,iBAAiB,EACjB,yBAAyB,EACzB,gBAAgB,EAChB,qBAAqB,EACrB,YAAY,EAEZ,gBAAgB,EAChB,cAAc,EACd,iBAAiB,EACjB,gCAAgC,EAChC,yBAAyB,EACzB,uBAAuB,GACxB,CAAA;AACD,YAAY,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,CAAA"}
@@ -1,7 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SessionChainRequiredError = exports.OrderPathRequiredForIntentsError = exports.UserOperationRequiredForSmartSessionsError = exports.SourceChainsNotAvailableForUserOpFlowError = exports.ExecutionError = exports.IntentFailedError = exports.isExecutionError = void 0;
3
+ exports.SignerNotSupportedError = exports.SessionChainRequiredError = exports.OrderPathRequiredForIntentsError = exports.IntentFailedError = exports.ExecutionError = exports.isExecutionError = void 0;
4
4
  exports.sendTransaction = sendTransaction;
5
+ exports.sendTransactionInternal = sendTransactionInternal;
6
+ exports.sendUserOperation = sendUserOperation;
7
+ exports.sendUserOperationInternal = sendUserOperationInternal;
5
8
  exports.waitForExecution = waitForExecution;
6
9
  exports.getMaxSpendableAmount = getMaxSpendableAmount;
7
10
  exports.getPortfolio = getPortfolio;
@@ -17,46 +20,54 @@ Object.defineProperty(exports, "IntentFailedError", { enumerable: true, get: fun
17
20
  Object.defineProperty(exports, "isExecutionError", { enumerable: true, get: function () { return error_1.isExecutionError; } });
18
21
  Object.defineProperty(exports, "OrderPathRequiredForIntentsError", { enumerable: true, get: function () { return error_1.OrderPathRequiredForIntentsError; } });
19
22
  Object.defineProperty(exports, "SessionChainRequiredError", { enumerable: true, get: function () { return error_1.SessionChainRequiredError; } });
20
- Object.defineProperty(exports, "SourceChainsNotAvailableForUserOpFlowError", { enumerable: true, get: function () { return error_1.SourceChainsNotAvailableForUserOpFlowError; } });
21
- Object.defineProperty(exports, "UserOperationRequiredForSmartSessionsError", { enumerable: true, get: function () { return error_1.UserOperationRequiredForSmartSessionsError; } });
23
+ Object.defineProperty(exports, "SignerNotSupportedError", { enumerable: true, get: function () { return error_1.SignerNotSupportedError; } });
22
24
  const smart_session_1 = require("./smart-session");
23
25
  const utils_2 = require("./utils");
24
26
  const POLLING_INTERVAL = 500;
25
27
  async function sendTransaction(config, transaction) {
26
- if ('chain' in transaction) {
27
- // Same-chain transaction
28
- return await sendTransactionInternal(config, [transaction.chain], transaction.chain, transaction.calls, transaction.gasLimit, transaction.tokenRequests, transaction.signers);
28
+ const sourceChains = 'chain' in transaction
29
+ ? [transaction.chain]
30
+ : transaction.sourceChains || [];
31
+ const targetChain = 'chain' in transaction ? transaction.chain : transaction.targetChain;
32
+ const { calls, gasLimit, tokenRequests, signers, sponsored, settlementLayers, sourceAssets, feeAsset, dryRun, } = transaction;
33
+ const isUserOpSigner = signers?.type === 'guardians' || signers?.type === 'session';
34
+ if (isUserOpSigner) {
35
+ throw new error_1.SignerNotSupportedError();
29
36
  }
30
- else {
31
- // Cross-chain transaction
32
- return await sendTransactionInternal(config, transaction.sourceChains || [], transaction.targetChain, transaction.calls, transaction.gasLimit, transaction.tokenRequests, transaction.signers);
37
+ return await sendTransactionInternal(config, sourceChains, targetChain, calls, {
38
+ gasLimit,
39
+ initialTokenRequests: tokenRequests,
40
+ signers,
41
+ sponsored,
42
+ settlementLayers,
43
+ sourceAssets,
44
+ feeAsset,
45
+ dryRun,
46
+ });
47
+ }
48
+ async function sendUserOperation(config, transaction) {
49
+ const accountAddress = (0, accounts_1.getAddress)(config);
50
+ const resolvedCalls = await (0, utils_2.resolveCallInputs)(transaction.calls, config, transaction.chain, accountAddress);
51
+ const userOpSigner = transaction.signers?.type === 'session' ? transaction.signers.session : null;
52
+ if (userOpSigner) {
53
+ await (0, smart_session_1.enableSmartSession)(transaction.chain, config, userOpSigner);
33
54
  }
55
+ // Smart sessions require a UserOp flow
56
+ return await sendUserOperationInternal(config, transaction.chain, resolvedCalls, transaction.signers);
34
57
  }
35
- async function sendTransactionInternal(config, sourceChains, targetChain, callInputs, gasLimit, initialTokenRequests, signers) {
58
+ async function sendTransactionInternal(config, sourceChains, targetChain, callInputs, options) {
36
59
  const accountAddress = (0, accounts_1.getAddress)(config);
37
- // Across requires passing some value to repay the solvers
38
- const tokenRequests = !initialTokenRequests || initialTokenRequests.length === 0
39
- ? [
40
- {
41
- address: viem_1.zeroAddress,
42
- amount: 1n,
43
- },
44
- ]
45
- : initialTokenRequests;
46
- const asUserOp = signers?.type === 'guardians' || signers?.type === 'session';
47
- if (asUserOp) {
48
- const withSession = signers?.type === 'session' ? signers.session : null;
49
- if (withSession) {
50
- await (0, smart_session_1.enableSmartSession)(targetChain, config, withSession);
51
- }
52
- // Smart sessions require a UserOp flow
53
- return await sendTransactionAsUserOp(config, targetChain, callInputs, signers);
60
+ const resolvedCalls = await (0, utils_2.resolveCallInputs)(callInputs, config, targetChain, accountAddress);
61
+ const tokenRequests = (0, utils_2.getTokenRequests)(sourceChains, targetChain, options.initialTokenRequests, options.settlementLayers);
62
+ const sendAsUserOp = options.signers?.type === 'guardians' || options.signers?.type === 'session';
63
+ if (sendAsUserOp) {
64
+ throw new error_1.SignerNotSupportedError();
54
65
  }
55
66
  else {
56
- return await sendTransactionAsIntent(config, sourceChains, targetChain, callInputs, gasLimit, tokenRequests, accountAddress, signers);
67
+ return await sendTransactionAsIntent(config, sourceChains, targetChain, resolvedCalls, options.gasLimit, tokenRequests, accountAddress, options.dryRun, options.signers, options.sponsored, options.settlementLayers, options.sourceAssets, options.feeAsset, options.lockFunds);
57
68
  }
58
69
  }
59
- async function sendTransactionAsUserOp(config, chain, callInputs, signers) {
70
+ async function sendUserOperationInternal(config, chain, callInputs, signers) {
60
71
  // Make sure the account is deployed
61
72
  await (0, accounts_1.deploy)(config, chain);
62
73
  const withSession = signers?.type === 'session' ? signers.session : null;
@@ -83,13 +94,16 @@ async function sendTransactionAsUserOp(config, chain, callInputs, signers) {
83
94
  chain: chain.id,
84
95
  };
85
96
  }
86
- async function sendTransactionAsIntent(config, sourceChains, targetChain, callInputs, gasLimit, tokenRequests, accountAddress, signers) {
87
- const { intentRoute, hash: intentHash } = await (0, utils_2.prepareTransactionAsIntent)(config, sourceChains, targetChain, callInputs, gasLimit, tokenRequests, accountAddress);
97
+ async function sendTransactionAsIntent(config, sourceChains, targetChain, callInputs, gasLimit, tokenRequests, accountAddress, dryRun = false, signers, sponsored, settlementLayers, sourceAssets, feeAsset, lockFunds) {
98
+ const intentRoute = await (0, utils_2.prepareTransactionAsIntent)(config, sourceChains, targetChain, callInputs, gasLimit, tokenRequests, accountAddress, sponsored ?? false, undefined, settlementLayers, sourceAssets, feeAsset, lockFunds);
88
99
  if (!intentRoute) {
89
100
  throw new error_1.OrderPathRequiredForIntentsError();
90
101
  }
91
- const signature = await (0, utils_2.signIntent)(config, targetChain, intentHash, signers);
92
- return await (0, utils_2.submitIntentInternal)(config, sourceChains, targetChain, intentRoute.intentOp, signature);
102
+ const signature = await (0, utils_2.signIntent)(config, targetChain, intentRoute.intentOp, signers);
103
+ const authorizations = config.eoa
104
+ ? await (0, utils_2.signAuthorizationsInternal)(config, intentRoute)
105
+ : [];
106
+ return await (0, utils_2.submitIntentInternal)(config, sourceChains, targetChain, intentRoute.intentOp, signature, authorizations, dryRun);
93
107
  }
94
108
  async function waitForExecution(config, result, acceptsPreconfirmations) {
95
109
  const validStatuses = new Set([
@@ -104,20 +118,26 @@ async function waitForExecution(config, result, acceptsPreconfirmations) {
104
118
  case 'intent': {
105
119
  let intentStatus = null;
106
120
  while (intentStatus === null || !validStatuses.has(intentStatus.status)) {
107
- const orchestrator = (0, utils_2.getOrchestratorByChain)(result.targetChain, config.rhinestoneApiKey);
121
+ const orchestrator = (0, utils_2.getOrchestratorByChain)(result.targetChain, config.apiKey, config.endpointUrl);
108
122
  intentStatus = await orchestrator.getIntentOpStatus(result.id);
109
123
  await new Promise((resolve) => setTimeout(resolve, POLLING_INTERVAL));
110
124
  }
111
125
  if (intentStatus.status === orchestrator_1.INTENT_STATUS_FAILED) {
112
126
  throw new error_1.IntentFailedError();
113
127
  }
114
- return intentStatus;
128
+ return {
129
+ fill: {
130
+ hash: intentStatus.fillTransactionHash,
131
+ chainId: result.targetChain,
132
+ },
133
+ claims: intentStatus.claims.map((claim) => ({
134
+ hash: claim.claimTransactionHash,
135
+ chainId: claim.chainId,
136
+ })),
137
+ };
115
138
  }
116
139
  case 'userop': {
117
140
  const targetChain = (0, registry_1.getChainById)(result.chain);
118
- if (!targetChain) {
119
- throw new Error(`Unsupported chain ID: ${result.chain}`);
120
- }
121
141
  const publicClient = (0, viem_1.createPublicClient)({
122
142
  chain: targetChain,
123
143
  transport: (0, utils_1.createTransport)(targetChain, config.provider),
@@ -130,14 +150,14 @@ async function waitForExecution(config, result, acceptsPreconfirmations) {
130
150
  }
131
151
  }
132
152
  }
133
- async function getMaxSpendableAmount(config, chain, tokenAddress, gasUnits) {
153
+ async function getMaxSpendableAmount(config, chain, tokenAddress, gasUnits, sponsored = false) {
134
154
  const address = (0, accounts_1.getAddress)(config);
135
- const orchestrator = (0, utils_2.getOrchestratorByChain)(chain.id, config.rhinestoneApiKey);
136
- return orchestrator.getMaxTokenAmount(address, chain.id, tokenAddress, gasUnits);
155
+ const orchestrator = (0, utils_2.getOrchestratorByChain)(chain.id, config.apiKey, config.endpointUrl);
156
+ return orchestrator.getMaxTokenAmount(address, chain.id, tokenAddress, gasUnits, sponsored);
137
157
  }
138
158
  async function getPortfolio(config, onTestnets) {
139
159
  const address = (0, accounts_1.getAddress)(config);
140
160
  const chainId = onTestnets ? chains_1.sepolia.id : chains_1.mainnet.id;
141
- const orchestrator = (0, utils_2.getOrchestratorByChain)(chainId, config.rhinestoneApiKey);
161
+ const orchestrator = (0, utils_2.getOrchestratorByChain)(chainId, config.apiKey, config.endpointUrl);
142
162
  return orchestrator.getPortfolio(address);
143
163
  }
@@ -0,0 +1,148 @@
1
+ import { type Address, type Chain } from 'viem';
2
+ import type { IntentOp } from '../orchestrator/types';
3
+ import type { RhinestoneConfig } from '../types';
4
+ import type { BatchPermit2Result, MultiChainPermit2Config, MultiChainPermit2Result, TokenPermissions } from './types';
5
+ declare function getTypedData(intentOp: IntentOp): {
6
+ readonly domain: {
7
+ readonly name: "Permit2";
8
+ readonly chainId: number;
9
+ readonly verifyingContract: "0x000000000022D473030F116dDEE9F6B43aC78BA3";
10
+ };
11
+ readonly types: {
12
+ readonly TokenPermissions: readonly [{
13
+ readonly name: "token";
14
+ readonly type: "address";
15
+ }, {
16
+ readonly name: "amount";
17
+ readonly type: "uint256";
18
+ }];
19
+ readonly Token: readonly [{
20
+ readonly name: "token";
21
+ readonly type: "address";
22
+ }, {
23
+ readonly name: "amount";
24
+ readonly type: "uint256";
25
+ }];
26
+ readonly Target: readonly [{
27
+ readonly name: "recipient";
28
+ readonly type: "address";
29
+ }, {
30
+ readonly name: "tokenOut";
31
+ readonly type: "Token[]";
32
+ }, {
33
+ readonly name: "targetChain";
34
+ readonly type: "uint256";
35
+ }, {
36
+ readonly name: "fillExpiry";
37
+ readonly type: "uint256";
38
+ }];
39
+ readonly Op: readonly [{
40
+ readonly name: "to";
41
+ readonly type: "address";
42
+ }, {
43
+ readonly name: "value";
44
+ readonly type: "uint256";
45
+ }, {
46
+ readonly name: "data";
47
+ readonly type: "bytes";
48
+ }];
49
+ readonly Mandate: readonly [{
50
+ readonly name: "target";
51
+ readonly type: "Target";
52
+ }, {
53
+ readonly name: "v";
54
+ readonly type: "uint8";
55
+ }, {
56
+ readonly name: "minGas";
57
+ readonly type: "uint128";
58
+ }, {
59
+ readonly name: "originOps";
60
+ readonly type: "Op[]";
61
+ }, {
62
+ readonly name: "destOps";
63
+ readonly type: "Op[]";
64
+ }, {
65
+ readonly name: "q";
66
+ readonly type: "bytes32";
67
+ }];
68
+ readonly PermitBatchWitnessTransferFrom: readonly [{
69
+ readonly name: "permitted";
70
+ readonly type: "TokenPermissions[]";
71
+ }, {
72
+ readonly name: "spender";
73
+ readonly type: "address";
74
+ }, {
75
+ readonly name: "nonce";
76
+ readonly type: "uint256";
77
+ }, {
78
+ readonly name: "deadline";
79
+ readonly type: "uint256";
80
+ }, {
81
+ readonly name: "mandate";
82
+ readonly type: "Mandate";
83
+ }];
84
+ };
85
+ readonly primaryType: "PermitBatchWitnessTransferFrom";
86
+ readonly message: {
87
+ readonly permitted: TokenPermissions[];
88
+ readonly spender: `0x${string}`;
89
+ readonly nonce: bigint;
90
+ readonly deadline: bigint;
91
+ readonly mandate: {
92
+ readonly target: {
93
+ readonly recipient: `0x${string}`;
94
+ readonly tokenOut: {
95
+ token: `0x${string}`;
96
+ amount: bigint;
97
+ }[];
98
+ readonly targetChain: bigint;
99
+ readonly fillExpiry: bigint;
100
+ };
101
+ readonly v: number;
102
+ readonly minGas: bigint;
103
+ readonly originOps: {
104
+ to: `0x${string}`;
105
+ value: bigint;
106
+ data: `0x${string}`;
107
+ }[];
108
+ readonly destOps: {
109
+ to: `0x${string}`;
110
+ value: bigint;
111
+ data: `0x${string}`;
112
+ }[];
113
+ readonly q: `0x${string}`;
114
+ };
115
+ };
116
+ };
117
+ declare function checkERC20AllowanceDirect(owner: Address, spender: Address, tokenAddress: Address, publicClient: any): Promise<bigint>;
118
+ declare function checkERC20Allowance(tokenAddress: Address, chain: Chain, config: RhinestoneConfig): Promise<bigint>;
119
+ /**
120
+ * Get the Permit2 contract address
121
+ * @returns The Permit2 contract address
122
+ */
123
+ declare function getPermit2Address(): Address;
124
+ /**
125
+ * Signs permit2 calls across multiple chains using batch approach.
126
+ * Collects all signatures first, then returns them all at once.
127
+ *
128
+ * This approach is efficient for backend signers but may be memory-intensive
129
+ * for frontend applications with many chains.
130
+ *
131
+ * @param configs - Array of permit2 signing configurations for different chains
132
+ * @returns Promise<BatchPermit2Result> - All signatures collected
133
+ */
134
+ declare function signPermit2Batch(configs: MultiChainPermit2Config[]): Promise<BatchPermit2Result>;
135
+ /**
136
+ * Signs permit2 calls across multiple chains sequentially.
137
+ * Signs one by one, useful for frontend applications to avoid memory issues.
138
+ *
139
+ * This approach is more memory-efficient for frontend applications but slower
140
+ * due to sequential processing.
141
+ *
142
+ * @param configs - Array of permit2 signing configurations for different chains
143
+ * @param onProgress - Optional callback for progress updates
144
+ * @returns Promise<BatchPermit2Result> - All signatures collected
145
+ */
146
+ declare function signPermit2Sequential(configs: MultiChainPermit2Config[], onProgress?: (completed: number, total: number, current: MultiChainPermit2Result) => void): Promise<BatchPermit2Result>;
147
+ export { getTypedData, checkERC20Allowance, checkERC20AllowanceDirect, getPermit2Address, signPermit2Batch, signPermit2Sequential, type MultiChainPermit2Config, type MultiChainPermit2Result, type BatchPermit2Result, };
148
+ //# sourceMappingURL=permit2.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"permit2.d.ts","s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