@rhinestone/sdk 1.0.0-alpha.32 → 1.0.0-alpha.33
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/dist/src/accounts/index.d.ts +18 -18
- package/dist/src/accounts/index.d.ts.map +1 -1
- package/dist/src/accounts/index.js +12 -8
- package/dist/src/accounts/index.test.js +0 -2
- package/dist/src/accounts/kernel.test.js +0 -6
- package/dist/src/accounts/nexus.test.js +0 -6
- package/dist/src/accounts/safe.test.js +0 -6
- package/dist/src/accounts/signing/common.d.ts +3 -3
- package/dist/src/accounts/signing/common.d.ts.map +1 -1
- package/dist/src/accounts/signing/common.js +10 -8
- package/dist/src/accounts/signing/message.d.ts +1 -1
- package/dist/src/accounts/signing/message.d.ts.map +1 -1
- package/dist/src/accounts/signing/message.js +3 -3
- package/dist/src/accounts/signing/typedData.d.ts.map +1 -1
- package/dist/src/accounts/signing/typedData.js +2 -2
- package/dist/src/accounts/startale.test.js +0 -4
- package/dist/src/accounts/utils.d.ts +2 -2
- package/dist/src/accounts/utils.d.ts.map +1 -1
- package/dist/src/actions/compact.d.ts +13 -0
- package/dist/src/actions/compact.d.ts.map +1 -0
- package/dist/src/actions/compact.js +210 -0
- package/dist/src/actions/ecdsa.d.ts +35 -0
- package/dist/src/actions/ecdsa.d.ts.map +1 -0
- package/dist/src/actions/ecdsa.js +114 -0
- package/dist/src/actions/ecdsa.test.d.ts +2 -0
- package/dist/src/actions/ecdsa.test.d.ts.map +1 -0
- package/dist/src/actions/ecdsa.test.js +99 -0
- package/dist/src/actions/index.d.ts +5 -176
- package/dist/src/actions/index.d.ts.map +1 -1
- package/dist/src/actions/index.js +10 -563
- package/dist/src/actions/mfa.d.ts +37 -0
- package/dist/src/actions/mfa.d.ts.map +1 -0
- package/dist/src/actions/mfa.js +133 -0
- package/dist/src/actions/passkeys.d.ts +37 -0
- package/dist/src/actions/passkeys.d.ts.map +1 -0
- package/dist/src/actions/passkeys.js +129 -0
- package/dist/src/actions/passkeys.test.d.ts +2 -0
- package/dist/src/actions/passkeys.test.d.ts.map +1 -0
- package/dist/src/actions/passkeys.test.js +54 -0
- package/dist/src/actions/recovery.d.ts +33 -0
- package/dist/src/actions/recovery.d.ts.map +1 -0
- package/dist/src/actions/recovery.js +193 -0
- package/dist/src/actions/recovery.test.d.ts +2 -0
- package/dist/src/actions/recovery.test.d.ts.map +1 -0
- package/dist/src/actions/recovery.test.js +168 -0
- package/dist/src/errors/index.d.ts +5 -0
- package/dist/src/errors/index.d.ts.map +1 -0
- package/dist/src/errors/index.js +35 -0
- package/dist/src/execution/compact.d.ts +1 -12
- package/dist/src/execution/compact.d.ts.map +1 -1
- package/dist/src/execution/compact.js +0 -190
- package/dist/src/execution/error.d.ts +2 -16
- package/dist/src/execution/error.d.ts.map +1 -1
- package/dist/src/execution/error.js +4 -22
- package/dist/src/execution/index.d.ts +23 -24
- package/dist/src/execution/index.d.ts.map +1 -1
- package/dist/src/execution/index.js +38 -24
- package/dist/src/execution/smart-session.d.ts +3 -3
- package/dist/src/execution/smart-session.d.ts.map +1 -1
- package/dist/src/execution/utils.d.ts +33 -29
- package/dist/src/execution/utils.d.ts.map +1 -1
- package/dist/src/execution/utils.js +76 -69
- package/dist/src/index.d.ts +28 -17
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +69 -74
- package/dist/src/modules/index.d.ts +2 -2
- package/dist/src/modules/index.d.ts.map +1 -1
- package/dist/src/modules/index.js +1 -1
- package/dist/src/modules/index.test.js +0 -4
- package/dist/src/modules/validators/smart-sessions.test.js +0 -3
- package/dist/src/orchestrator/types.d.ts +1 -6
- package/dist/src/orchestrator/types.d.ts.map +1 -1
- package/dist/src/types.d.ts +22 -4
- package/dist/src/types.d.ts.map +1 -1
- package/package.json +36 -1
- package/dist/src/actions/index.test.d.ts +0 -2
- package/dist/src/actions/index.test.d.ts.map +0 -1
- package/dist/src/actions/index.test.js +0 -302
package/dist/src/index.js
CHANGED
|
@@ -1,81 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.getTokenAddress = exports.getSupportedTokens = exports.UnsupportedTokenError = exports.UnsupportedChainIdError = exports.UnsupportedChainError = exports.TokenNotSupportedError = exports.IntentNotFoundError = exports.OrchestratorError = exports.OnlyOneTargetTokenAmountCanBeUnsetError = exports.NoPathFoundError = exports.InvalidIntentSignatureError = exports.InvalidApiKeyError = exports.InsufficientBalanceError = exports.AuthenticationRequiredError = void 0;
|
|
5
|
-
exports.createRhinestoneAccount = createRhinestoneAccount;
|
|
3
|
+
exports.getTokenAddress = exports.getSupportedTokens = exports.encodeSmartSessionSignature = exports.walletClientToAccount = exports.RhinestoneSDK = void 0;
|
|
6
4
|
const accounts_1 = require("./accounts");
|
|
7
|
-
Object.defineProperty(exports, "AccountConfigurationNotSupportedError", { enumerable: true, get: function () { return accounts_1.AccountConfigurationNotSupportedError; } });
|
|
8
|
-
Object.defineProperty(exports, "AccountError", { enumerable: true, get: function () { return accounts_1.AccountError; } });
|
|
9
|
-
Object.defineProperty(exports, "Eip7702AccountMustHaveEoaError", { enumerable: true, get: function () { return accounts_1.Eip7702AccountMustHaveEoaError; } });
|
|
10
|
-
Object.defineProperty(exports, "Eip7702NotSupportedForAccountError", { enumerable: true, get: function () { return accounts_1.Eip7702NotSupportedForAccountError; } });
|
|
11
|
-
Object.defineProperty(exports, "ExistingEip7702AccountsNotSupportedError", { enumerable: true, get: function () { return accounts_1.ExistingEip7702AccountsNotSupportedError; } });
|
|
12
|
-
Object.defineProperty(exports, "FactoryArgsNotAvailableError", { enumerable: true, get: function () { return accounts_1.FactoryArgsNotAvailableError; } });
|
|
13
|
-
Object.defineProperty(exports, "isAccountError", { enumerable: true, get: function () { return accounts_1.isAccountError; } });
|
|
14
|
-
Object.defineProperty(exports, "SigningNotSupportedForAccountError", { enumerable: true, get: function () { return accounts_1.SigningNotSupportedForAccountError; } });
|
|
15
|
-
Object.defineProperty(exports, "SmartSessionsNotEnabledError", { enumerable: true, get: function () { return accounts_1.SmartSessionsNotEnabledError; } });
|
|
16
|
-
Object.defineProperty(exports, "WalletClientNoConnectedAccountError", { enumerable: true, get: function () { return accounts_1.WalletClientNoConnectedAccountError; } });
|
|
17
5
|
const walletClient_1 = require("./accounts/walletClient");
|
|
18
6
|
Object.defineProperty(exports, "walletClientToAccount", { enumerable: true, get: function () { return walletClient_1.walletClientToAccount; } });
|
|
19
|
-
const
|
|
20
|
-
Object.defineProperty(exports, "
|
|
21
|
-
Object.defineProperty(exports, "addPasskeyOwner", { enumerable: true, get: function () { return actions_1.addPasskeyOwner; } });
|
|
22
|
-
Object.defineProperty(exports, "changeMultiFactorThreshold", { enumerable: true, get: function () { return actions_1.changeMultiFactorThreshold; } });
|
|
23
|
-
Object.defineProperty(exports, "changePasskeyThreshold", { enumerable: true, get: function () { return actions_1.changePasskeyThreshold; } });
|
|
24
|
-
Object.defineProperty(exports, "changeThreshold", { enumerable: true, get: function () { return actions_1.changeThreshold; } });
|
|
25
|
-
Object.defineProperty(exports, "disableEcdsa", { enumerable: true, get: function () { return actions_1.disableEcdsa; } });
|
|
26
|
-
Object.defineProperty(exports, "disableMultiFactor", { enumerable: true, get: function () { return actions_1.disableMultiFactor; } });
|
|
27
|
-
Object.defineProperty(exports, "disablePasskeys", { enumerable: true, get: function () { return actions_1.disablePasskeys; } });
|
|
28
|
-
Object.defineProperty(exports, "enableEcdsa", { enumerable: true, get: function () { return actions_1.enableEcdsa; } });
|
|
29
|
-
Object.defineProperty(exports, "enableMultiFactor", { enumerable: true, get: function () { return actions_1.enableMultiFactor; } });
|
|
30
|
-
Object.defineProperty(exports, "enablePasskeys", { enumerable: true, get: function () { return actions_1.enablePasskeys; } });
|
|
31
|
-
Object.defineProperty(exports, "encodeSmartSessionSignature", { enumerable: true, get: function () { return actions_1.encodeSmartSessionSignature; } });
|
|
32
|
-
Object.defineProperty(exports, "installModule", { enumerable: true, get: function () { return actions_1.installModule; } });
|
|
33
|
-
Object.defineProperty(exports, "recover", { enumerable: true, get: function () { return actions_1.recover; } });
|
|
34
|
-
Object.defineProperty(exports, "recoverEcdsaOwnership", { enumerable: true, get: function () { return actions_1.recoverEcdsaOwnership; } });
|
|
35
|
-
Object.defineProperty(exports, "recoverPasskeyOwnership", { enumerable: true, get: function () { return actions_1.recoverPasskeyOwnership; } });
|
|
36
|
-
Object.defineProperty(exports, "removeOwner", { enumerable: true, get: function () { return actions_1.removeOwner; } });
|
|
37
|
-
Object.defineProperty(exports, "removePasskeyOwner", { enumerable: true, get: function () { return actions_1.removePasskeyOwner; } });
|
|
38
|
-
Object.defineProperty(exports, "removeSubValidator", { enumerable: true, get: function () { return actions_1.removeSubValidator; } });
|
|
39
|
-
Object.defineProperty(exports, "setSubValidator", { enumerable: true, get: function () { return actions_1.setSubValidator; } });
|
|
40
|
-
Object.defineProperty(exports, "setUpRecovery", { enumerable: true, get: function () { return actions_1.setUpRecovery; } });
|
|
41
|
-
Object.defineProperty(exports, "uninstallModule", { enumerable: true, get: function () { return actions_1.uninstallModule; } });
|
|
7
|
+
const smart_session_1 = require("./actions/smart-session");
|
|
8
|
+
Object.defineProperty(exports, "encodeSmartSessionSignature", { enumerable: true, get: function () { return smart_session_1.encodeSmartSessionSignature; } });
|
|
42
9
|
const execution_1 = require("./execution");
|
|
43
|
-
|
|
44
|
-
Object.defineProperty(exports, "IntentFailedError", { enumerable: true, get: function () { return execution_1.IntentFailedError; } });
|
|
45
|
-
Object.defineProperty(exports, "isExecutionError", { enumerable: true, get: function () { return execution_1.isExecutionError; } });
|
|
46
|
-
Object.defineProperty(exports, "OrderPathRequiredForIntentsError", { enumerable: true, get: function () { return execution_1.OrderPathRequiredForIntentsError; } });
|
|
47
|
-
Object.defineProperty(exports, "SessionChainRequiredError", { enumerable: true, get: function () { return execution_1.SessionChainRequiredError; } });
|
|
48
|
-
Object.defineProperty(exports, "SimulationNotSupportedForUserOpFlowError", { enumerable: true, get: function () { return execution_1.SimulationNotSupportedForUserOpFlowError; } });
|
|
49
|
-
Object.defineProperty(exports, "SourceChainsNotAvailableForUserOpFlowError", { enumerable: true, get: function () { return execution_1.SourceChainsNotAvailableForUserOpFlowError; } });
|
|
50
|
-
Object.defineProperty(exports, "UserOperationRequiredForSmartSessionsError", { enumerable: true, get: function () { return execution_1.UserOperationRequiredForSmartSessionsError; } });
|
|
51
|
-
const compact_1 = require("./execution/compact");
|
|
52
|
-
Object.defineProperty(exports, "depositErc20", { enumerable: true, get: function () { return compact_1.depositErc20; } });
|
|
53
|
-
Object.defineProperty(exports, "depositEther", { enumerable: true, get: function () { return compact_1.depositEther; } });
|
|
54
|
-
Object.defineProperty(exports, "disableErc20Withdrawal", { enumerable: true, get: function () { return compact_1.disableErc20Withdrawal; } });
|
|
55
|
-
Object.defineProperty(exports, "disableEtherWithdrawal", { enumerable: true, get: function () { return compact_1.disableEtherWithdrawal; } });
|
|
56
|
-
Object.defineProperty(exports, "enableErc20Withdrawal", { enumerable: true, get: function () { return compact_1.enableErc20Withdrawal; } });
|
|
57
|
-
Object.defineProperty(exports, "enableEtherWithdrawal", { enumerable: true, get: function () { return compact_1.enableEtherWithdrawal; } });
|
|
58
|
-
Object.defineProperty(exports, "withdrawErc20", { enumerable: true, get: function () { return compact_1.withdrawErc20; } });
|
|
59
|
-
Object.defineProperty(exports, "withdrawEther", { enumerable: true, get: function () { return compact_1.withdrawEther; } });
|
|
60
|
-
const smart_session_1 = require("./execution/smart-session");
|
|
10
|
+
const smart_session_2 = require("./execution/smart-session");
|
|
61
11
|
const utils_1 = require("./execution/utils");
|
|
62
12
|
const modules_1 = require("./modules");
|
|
63
13
|
const orchestrator_1 = require("./orchestrator");
|
|
64
|
-
Object.defineProperty(exports, "AuthenticationRequiredError", { enumerable: true, get: function () { return orchestrator_1.AuthenticationRequiredError; } });
|
|
65
14
|
Object.defineProperty(exports, "getSupportedTokens", { enumerable: true, get: function () { return orchestrator_1.getSupportedTokens; } });
|
|
66
15
|
Object.defineProperty(exports, "getTokenAddress", { enumerable: true, get: function () { return orchestrator_1.getTokenAddress; } });
|
|
67
|
-
Object.defineProperty(exports, "InsufficientBalanceError", { enumerable: true, get: function () { return orchestrator_1.InsufficientBalanceError; } });
|
|
68
|
-
Object.defineProperty(exports, "IntentNotFoundError", { enumerable: true, get: function () { return orchestrator_1.IntentNotFoundError; } });
|
|
69
|
-
Object.defineProperty(exports, "InvalidApiKeyError", { enumerable: true, get: function () { return orchestrator_1.InvalidApiKeyError; } });
|
|
70
|
-
Object.defineProperty(exports, "InvalidIntentSignatureError", { enumerable: true, get: function () { return orchestrator_1.InvalidIntentSignatureError; } });
|
|
71
|
-
Object.defineProperty(exports, "isOrchestratorError", { enumerable: true, get: function () { return orchestrator_1.isOrchestratorError; } });
|
|
72
|
-
Object.defineProperty(exports, "NoPathFoundError", { enumerable: true, get: function () { return orchestrator_1.NoPathFoundError; } });
|
|
73
|
-
Object.defineProperty(exports, "OnlyOneTargetTokenAmountCanBeUnsetError", { enumerable: true, get: function () { return orchestrator_1.OnlyOneTargetTokenAmountCanBeUnsetError; } });
|
|
74
|
-
Object.defineProperty(exports, "OrchestratorError", { enumerable: true, get: function () { return orchestrator_1.OrchestratorError; } });
|
|
75
|
-
Object.defineProperty(exports, "TokenNotSupportedError", { enumerable: true, get: function () { return orchestrator_1.TokenNotSupportedError; } });
|
|
76
|
-
Object.defineProperty(exports, "UnsupportedChainError", { enumerable: true, get: function () { return orchestrator_1.UnsupportedChainError; } });
|
|
77
|
-
Object.defineProperty(exports, "UnsupportedChainIdError", { enumerable: true, get: function () { return orchestrator_1.UnsupportedChainIdError; } });
|
|
78
|
-
Object.defineProperty(exports, "UnsupportedTokenError", { enumerable: true, get: function () { return orchestrator_1.UnsupportedTokenError; } });
|
|
79
16
|
/**
|
|
80
17
|
* Initialize a Rhinestone account
|
|
81
18
|
* Note: accounts are deployed onchain only when the first transaction is sent.
|
|
@@ -167,13 +104,39 @@ async function createRhinestoneAccount(config) {
|
|
|
167
104
|
* Submit a transaction
|
|
168
105
|
* @param signedTransaction Signed transaction data
|
|
169
106
|
* @param authorizations EIP-7702 authorizations to submit (optional)
|
|
170
|
-
* @returns transaction result object (
|
|
107
|
+
* @returns transaction result object (a UserOp hash)
|
|
171
108
|
* @see {@link signTransaction} to sign the transaction data
|
|
172
109
|
* @see {@link signAuthorizations} to sign the required EIP-7702 authorizations
|
|
173
110
|
*/
|
|
174
111
|
function submitTransaction(signedTransaction, authorizations) {
|
|
175
112
|
return (0, utils_1.submitTransaction)(config, signedTransaction, authorizations ?? []);
|
|
176
113
|
}
|
|
114
|
+
/**
|
|
115
|
+
* Prepare a user operation data
|
|
116
|
+
* @param transaction User operation to prepare
|
|
117
|
+
* @returns prepared user operation data
|
|
118
|
+
*/
|
|
119
|
+
function prepareUserOperation(transaction) {
|
|
120
|
+
return (0, utils_1.prepareUserOperation)(config, transaction);
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Sign a user operation
|
|
124
|
+
* @param preparedUserOperation Prepared user operation data
|
|
125
|
+
* @returns signed user operation data
|
|
126
|
+
* @see {@link prepareUserOperation} to prepare the user operation data for signing
|
|
127
|
+
*/
|
|
128
|
+
function signUserOperation(preparedUserOperation) {
|
|
129
|
+
return (0, utils_1.signUserOperation)(config, preparedUserOperation);
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Submit a transaction
|
|
133
|
+
* @param signedTransaction Signed transaction data
|
|
134
|
+
* @returns transaction result object (a UserOp hash)
|
|
135
|
+
* @see {@link signUserOperation} to sign the user operation data
|
|
136
|
+
*/
|
|
137
|
+
function submitUserOperation(signedUserOperation) {
|
|
138
|
+
return (0, utils_1.submitUserOperation)(config, signedUserOperation);
|
|
139
|
+
}
|
|
177
140
|
/**
|
|
178
141
|
* Simulate a transaction
|
|
179
142
|
* @param signedTransaction Signed transaction data
|
|
@@ -187,17 +150,19 @@ async function createRhinestoneAccount(config) {
|
|
|
187
150
|
/**
|
|
188
151
|
* Sign and send a transaction
|
|
189
152
|
* @param transaction Transaction to send
|
|
190
|
-
* @returns transaction result object (an intent ID
|
|
153
|
+
* @returns transaction result object (an intent ID)
|
|
191
154
|
*/
|
|
192
155
|
function sendTransaction(transaction) {
|
|
193
156
|
return (0, execution_1.sendTransaction)(config, transaction);
|
|
194
157
|
}
|
|
195
158
|
/**
|
|
196
|
-
*
|
|
197
|
-
* @param
|
|
198
|
-
* @
|
|
199
|
-
* @returns intent result or a UserOp receipt
|
|
159
|
+
* Sign and send a user operation
|
|
160
|
+
* @param transaction User operation to send
|
|
161
|
+
* @returns user operation result object (a UserOp hash)
|
|
200
162
|
*/
|
|
163
|
+
function sendUserOperation(transaction) {
|
|
164
|
+
return (0, execution_1.sendUserOperation)(config, transaction);
|
|
165
|
+
}
|
|
201
166
|
function waitForExecution(result, acceptsPreconfirmations = true) {
|
|
202
167
|
return (0, execution_1.waitForExecution)(config, result, acceptsPreconfirmations);
|
|
203
168
|
}
|
|
@@ -246,7 +211,7 @@ async function createRhinestoneAccount(config) {
|
|
|
246
211
|
return (0, modules_1.getValidators)(accountType, account, chain, config.provider);
|
|
247
212
|
}
|
|
248
213
|
function getSessionDetails(sessions, sessionIndex, signature) {
|
|
249
|
-
return (0,
|
|
214
|
+
return (0, smart_session_2.getSessionDetails)(config, sessions, sessionIndex, signature);
|
|
250
215
|
}
|
|
251
216
|
return {
|
|
252
217
|
config,
|
|
@@ -261,7 +226,11 @@ async function createRhinestoneAccount(config) {
|
|
|
261
226
|
signTypedData,
|
|
262
227
|
submitTransaction,
|
|
263
228
|
simulateTransaction,
|
|
229
|
+
prepareUserOperation,
|
|
230
|
+
signUserOperation,
|
|
231
|
+
submitUserOperation,
|
|
264
232
|
sendTransaction,
|
|
233
|
+
sendUserOperation,
|
|
265
234
|
waitForExecution,
|
|
266
235
|
getAddress,
|
|
267
236
|
getPortfolio,
|
|
@@ -271,3 +240,29 @@ async function createRhinestoneAccount(config) {
|
|
|
271
240
|
getValidators,
|
|
272
241
|
};
|
|
273
242
|
}
|
|
243
|
+
class RhinestoneSDK {
|
|
244
|
+
apiKey;
|
|
245
|
+
endpointUrl;
|
|
246
|
+
provider;
|
|
247
|
+
bundler;
|
|
248
|
+
paymaster;
|
|
249
|
+
constructor(options) {
|
|
250
|
+
this.apiKey = options?.apiKey;
|
|
251
|
+
this.endpointUrl = options?.endpointUrl;
|
|
252
|
+
this.provider = options?.provider;
|
|
253
|
+
this.bundler = options?.bundler;
|
|
254
|
+
this.paymaster = options?.paymaster;
|
|
255
|
+
}
|
|
256
|
+
createAccount(config) {
|
|
257
|
+
const rhinestoneConfig = {
|
|
258
|
+
...config,
|
|
259
|
+
apiKey: this.apiKey,
|
|
260
|
+
endpointUrl: this.endpointUrl,
|
|
261
|
+
provider: this.provider,
|
|
262
|
+
bundler: this.bundler,
|
|
263
|
+
paymaster: this.paymaster,
|
|
264
|
+
};
|
|
265
|
+
return createRhinestoneAccount(rhinestoneConfig);
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
exports.RhinestoneSDK = RhinestoneSDK;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Chain } from 'viem';
|
|
2
|
-
import type { RhinestoneAccountConfig } from '../types';
|
|
2
|
+
import type { RhinestoneAccountConfig, RhinestoneConfig } from '../types';
|
|
3
3
|
import { type Module } from './common';
|
|
4
4
|
import { HOOK_ADDRESS } from './omni-account';
|
|
5
5
|
import { getOwners, getValidators } from './read';
|
|
@@ -11,7 +11,7 @@ interface ModeleSetup {
|
|
|
11
11
|
hooks: Module[];
|
|
12
12
|
}
|
|
13
13
|
declare function getSetup(config: RhinestoneAccountConfig): ModeleSetup;
|
|
14
|
-
declare function getIntentExecutor(config:
|
|
14
|
+
declare function getIntentExecutor(config: RhinestoneConfig): Module;
|
|
15
15
|
declare function isRip7212SupportedNetwork(chain: Chain): boolean;
|
|
16
16
|
export { HOOK_ADDRESS, getSetup, getOwnerValidator, getOwners, getIntentExecutor, getValidators, isRip7212SupportedNetwork, };
|
|
17
17
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../modules/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,KAAK,EAAuB,MAAM,MAAM,CAAA;AAWpE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../modules/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,KAAK,EAAuB,MAAM,MAAM,CAAA;AAWpE,OAAO,KAAK,EAAE,uBAAuB,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAEzE,OAAO,EAGL,KAAK,MAAM,EACZ,MAAM,UAAU,CAAA;AACjB,OAAO,EACL,YAAY,EAGb,MAAM,gBAAgB,CAAA;AACvB,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAA;AACjD,OAAO,EAAE,iBAAiB,EAA4B,MAAM,cAAc,CAAA;AAM1E,UAAU,WAAW;IACnB,UAAU,EAAE,MAAM,EAAE,CAAA;IACpB,SAAS,EAAE,MAAM,EAAE,CAAA;IACnB,SAAS,EAAE,MAAM,EAAE,CAAA;IACnB,KAAK,EAAE,MAAM,EAAE,CAAA;CAChB;AAED,iBAAS,QAAQ,CAAC,MAAM,EAAE,uBAAuB,GAAG,WAAW,CAiD9D;AAED,iBAAS,iBAAiB,CAAC,MAAM,EAAE,gBAAgB,GAAG,MAAM,CAW3D;AAED,iBAAS,yBAAyB,CAAC,KAAK,EAAE,KAAK,WAW9C;AAED,OAAO,EACL,YAAY,EACZ,QAAQ,EACR,iBAAiB,EACjB,SAAS,EACT,iBAAiB,EACjB,aAAa,EACb,yBAAyB,GAC1B,CAAA"}
|
|
@@ -55,7 +55,7 @@ function getSetup(config) {
|
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
57
|
function getIntentExecutor(config) {
|
|
58
|
-
const intentExecutorAddress = config.
|
|
58
|
+
const intentExecutorAddress = config.endpointUrl
|
|
59
59
|
? omni_account_1.INTENT_EXECUTOR_ADDRESS_DEV
|
|
60
60
|
: omni_account_1.INTENT_EXECUTOR_ADDRESS;
|
|
61
61
|
return {
|
|
@@ -8,7 +8,6 @@ const index_1 = require("./index");
|
|
|
8
8
|
(0, vitest_1.describe)('Setup', () => {
|
|
9
9
|
(0, vitest_1.test)('should use ownable validator for ECDSA owners', () => {
|
|
10
10
|
const config = {
|
|
11
|
-
rhinestoneApiKey: consts_1.MOCK_API_KEY,
|
|
12
11
|
owners: {
|
|
13
12
|
type: 'ecdsa',
|
|
14
13
|
accounts: [consts_1.accountA],
|
|
@@ -21,7 +20,6 @@ const index_1 = require("./index");
|
|
|
21
20
|
});
|
|
22
21
|
(0, vitest_1.test)('should use webauthn validator for passkey owners', () => {
|
|
23
22
|
const config = {
|
|
24
|
-
rhinestoneApiKey: consts_1.MOCK_API_KEY,
|
|
25
23
|
owners: {
|
|
26
24
|
type: 'passkey',
|
|
27
25
|
accounts: [consts_1.passkeyAccount],
|
|
@@ -34,7 +32,6 @@ const index_1 = require("./index");
|
|
|
34
32
|
});
|
|
35
33
|
(0, vitest_1.test)('should use smart session validator when sessions are enabled', () => {
|
|
36
34
|
const config = {
|
|
37
|
-
rhinestoneApiKey: consts_1.MOCK_API_KEY,
|
|
38
35
|
owners: {
|
|
39
36
|
type: 'ecdsa',
|
|
40
37
|
accounts: [consts_1.accountA],
|
|
@@ -59,7 +56,6 @@ const index_1 = require("./index");
|
|
|
59
56
|
});
|
|
60
57
|
(0, vitest_1.test)('should use smart session compatibility fallback for safe accounts with sessions', () => {
|
|
61
58
|
const config = {
|
|
62
|
-
rhinestoneApiKey: consts_1.MOCK_API_KEY,
|
|
63
59
|
owners: {
|
|
64
60
|
type: 'ecdsa',
|
|
65
61
|
accounts: [consts_1.accountA],
|
|
@@ -34,7 +34,6 @@ const smart_sessions_2 = require("./smart-sessions");
|
|
|
34
34
|
type: 'ecdsa',
|
|
35
35
|
accounts: [consts_1.accountA],
|
|
36
36
|
},
|
|
37
|
-
rhinestoneApiKey: consts_1.MOCK_API_KEY,
|
|
38
37
|
})).toBeNull();
|
|
39
38
|
});
|
|
40
39
|
(0, vitest_1.test)('empty session list', () => {
|
|
@@ -43,7 +42,6 @@ const smart_sessions_2 = require("./smart-sessions");
|
|
|
43
42
|
type: 'ecdsa',
|
|
44
43
|
accounts: [consts_1.accountA],
|
|
45
44
|
},
|
|
46
|
-
rhinestoneApiKey: consts_1.MOCK_API_KEY,
|
|
47
45
|
sessions: [],
|
|
48
46
|
})).not.toBeNull();
|
|
49
47
|
});
|
|
@@ -53,7 +51,6 @@ const smart_sessions_2 = require("./smart-sessions");
|
|
|
53
51
|
type: 'ecdsa',
|
|
54
52
|
accounts: [consts_1.accountA],
|
|
55
53
|
},
|
|
56
|
-
rhinestoneApiKey: consts_1.MOCK_API_KEY,
|
|
57
54
|
sessions: [
|
|
58
55
|
{
|
|
59
56
|
owners: {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { SupportedChain, SupportedMainnet, SupportedOPStackMainnet, SupportedOPStackTestnet, SupportedTestnet } from '@rhinestone/shared-configs';
|
|
2
2
|
import type { Address, Hex } from 'viem';
|
|
3
|
-
import type { UserOperationReceipt } from 'viem/account-abstraction';
|
|
4
3
|
type SupportedTokenSymbol = 'ETH' | 'WETH' | 'USDC' | 'USDT';
|
|
5
4
|
type SupportedToken = SupportedTokenSymbol | Address;
|
|
6
5
|
type SmartAccountType = 'GENERIC' | 'ERC7579';
|
|
@@ -254,10 +253,6 @@ interface IntentOpStatus {
|
|
|
254
253
|
fillTransactionHash?: Hex;
|
|
255
254
|
claims: Claim[];
|
|
256
255
|
}
|
|
257
|
-
interface UserOpStatus {
|
|
258
|
-
type: 'userop';
|
|
259
|
-
receipt: UserOperationReceipt;
|
|
260
|
-
}
|
|
261
256
|
interface PortfolioTokenChainResponse {
|
|
262
257
|
chainId: number;
|
|
263
258
|
accountStatus: AccountStatus;
|
|
@@ -277,6 +272,6 @@ interface PortfolioTokenResponse {
|
|
|
277
272
|
tokenChainBalance: PortfolioTokenChainResponse[];
|
|
278
273
|
}
|
|
279
274
|
type PortfolioResponse = PortfolioTokenResponse[];
|
|
280
|
-
export type { TokenConfig, SupportedChain, SettlementSystem, IntentInput, IntentCost, IntentRoute, IntentOp, IntentOpElement, IntentOpElementMandate, SignedIntentOp, IntentOpStatus,
|
|
275
|
+
export type { TokenConfig, SupportedChain, SettlementSystem, IntentInput, IntentCost, IntentRoute, IntentOp, IntentOpElement, IntentOpElementMandate, SignedIntentOp, IntentOpStatus, IntentResult, PortfolioTokenResponse, PortfolioResponse, Portfolio, PortfolioToken, MappedChainTokenAccessList, UnmappedChainTokenAccessList, };
|
|
281
276
|
export { INTENT_STATUS_PENDING, INTENT_STATUS_FAILED, INTENT_STATUS_EXPIRED, INTENT_STATUS_PARTIALLY_COMPLETED, INTENT_STATUS_COMPLETED, INTENT_STATUS_FILLED, INTENT_STATUS_PRECONFIRMED, INTENT_STATUS_UNKNOWN, };
|
|
282
277
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../orchestrator/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,gBAAgB,EAChB,uBAAuB,EACvB,uBAAuB,EACvB,gBAAgB,EACjB,MAAM,4BAA4B,CAAA;AACnC,OAAO,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../orchestrator/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,gBAAgB,EAChB,uBAAuB,EACvB,uBAAuB,EACvB,gBAAgB,EACjB,MAAM,4BAA4B,CAAA;AACnC,OAAO,KAA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C,OAAO,EAAE,MAAM,CAAA;IACf,aAAa,EAAE,aAAa,CAAA;IAC5B,YAAY,EAAE,OAAO,CAAA;IACrB,OAAO,EAAE;QACP,MAAM,EAAE,MAAM,CAAA;QACd,QAAQ,EAAE,MAAM,CAAA;KACjB,CAAA;CACF;AAED,UAAU,sBAAsB;IAC9B,SAAS,EAAE,KAAK,CAAA;IAChB,aAAa,EAAE,EAAE,CAAA;IACjB,OAAO,EAAE;QACP,MAAM,EAAE,MAAM,CAAA;QACd,QAAQ,EAAE,MAAM,CAAA;KACjB,CAAA;IACD,iBAAiB,EAAE,2BAA2B,EAAE,CAAA;CACjD;AAED,KAAK,iBAAiB,GAAG,sBAAsB,EAAE,CAAA;AAEjD,YAAY,EACV,WAAW,EACX,cAAc,EACd,gBAAgB,EAChB,WAAW,EACX,UAAU,EACV,WAAW,EACX,QAAQ,EACR,eAAe,EACf,sBAAsB,EACtB,cAAc,EACd,cAAc,EACd,YAAY,EACZ,sBAAsB,EACtB,iBAAiB,EACjB,SAAS,EACT,cAAc,EACd,0BAA0B,EAC1B,4BAA4B,GAC7B,CAAA;AACD,OAAO,EACL,qBAAqB,EACrB,oBAAoB,EACpB,qBAAqB,EACrB,iCAAiC,EACjC,uBAAuB,EACvB,oBAAoB,EACpB,0BAA0B,EAC1B,qBAAqB,GACtB,CAAA"}
|
package/dist/src/types.d.ts
CHANGED
|
@@ -106,7 +106,6 @@ interface Recovery {
|
|
|
106
106
|
interface RhinestoneAccountConfig {
|
|
107
107
|
account?: AccountProviderConfig;
|
|
108
108
|
owners: OwnerSet;
|
|
109
|
-
rhinestoneApiKey?: string;
|
|
110
109
|
sessions?: Session[];
|
|
111
110
|
recovery?: Recovery;
|
|
112
111
|
eoa?: Account;
|
|
@@ -116,6 +115,9 @@ interface RhinestoneAccountConfig {
|
|
|
116
115
|
factoryData: Hex;
|
|
117
116
|
intentExecutorInstalled: boolean;
|
|
118
117
|
};
|
|
118
|
+
}
|
|
119
|
+
interface RhinestoneSDKConfig {
|
|
120
|
+
apiKey?: string;
|
|
119
121
|
provider?: ProviderConfig;
|
|
120
122
|
bundler?: BundlerConfig;
|
|
121
123
|
paymaster?: PaymasterConfig;
|
|
@@ -123,14 +125,24 @@ interface RhinestoneAccountConfig {
|
|
|
123
125
|
* @internal
|
|
124
126
|
* Optional orchestrator URL override for internal testing - do not use
|
|
125
127
|
*/
|
|
126
|
-
|
|
128
|
+
endpointUrl?: string;
|
|
127
129
|
}
|
|
130
|
+
type RhinestoneConfig = RhinestoneAccountConfig & RhinestoneSDKConfig;
|
|
128
131
|
type TokenSymbol = 'ETH' | 'WETH' | 'USDC' | 'USDT';
|
|
129
|
-
interface
|
|
132
|
+
interface CalldataInput {
|
|
130
133
|
to: Address | TokenSymbol;
|
|
131
134
|
data?: Hex;
|
|
132
135
|
value?: bigint;
|
|
133
136
|
}
|
|
137
|
+
interface CallResolveContext {
|
|
138
|
+
config: RhinestoneConfig;
|
|
139
|
+
chain: Chain;
|
|
140
|
+
accountAddress: Address;
|
|
141
|
+
}
|
|
142
|
+
interface LazyCallInput {
|
|
143
|
+
resolve: (context: CallResolveContext) => Promise<CalldataInput | CalldataInput[]>;
|
|
144
|
+
}
|
|
145
|
+
type CallInput = CalldataInput | LazyCallInput;
|
|
134
146
|
interface Call {
|
|
135
147
|
to: Address;
|
|
136
148
|
data: Hex;
|
|
@@ -196,6 +208,12 @@ interface CrossChainTransaction extends BaseTransaction {
|
|
|
196
208
|
sourceChains?: Chain[];
|
|
197
209
|
targetChain: Chain;
|
|
198
210
|
}
|
|
211
|
+
interface UserOperationTransaction {
|
|
212
|
+
calls: CallInput[];
|
|
213
|
+
gasLimit?: bigint;
|
|
214
|
+
signers?: SignerSet;
|
|
215
|
+
chain: Chain;
|
|
216
|
+
}
|
|
199
217
|
type Transaction = SameChainTransaction | CrossChainTransaction;
|
|
200
|
-
export type { AccountType, RhinestoneAccountConfig, AccountProviderConfig, ProviderConfig, BundlerConfig, PaymasterConfig, Transaction, TokenSymbol, CallInput, Call, TokenRequest, SourceAssetInput, OwnerSet, OwnableValidatorConfig, WebauthnValidatorConfig, MultiFactorValidatorConfig, SignerSet, Session, Recovery, Policy, UniversalActionPolicyParamCondition, };
|
|
218
|
+
export type { AccountType, RhinestoneAccountConfig, RhinestoneSDKConfig, RhinestoneConfig, AccountProviderConfig, ProviderConfig, BundlerConfig, PaymasterConfig, Transaction, UserOperationTransaction, TokenSymbol, CalldataInput, LazyCallInput, CallInput, CallResolveContext, Call, TokenRequest, SourceAssetInput, OwnerSet, OwnableValidatorConfig, WebauthnValidatorConfig, MultiFactorValidatorConfig, SignerSet, Session, Recovery, Policy, UniversalActionPolicyParamCondition, };
|
|
201
219
|
//# sourceMappingURL=types.d.ts.map
|
package/dist/src/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,MAAM,CAAA;AACxD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAC/D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAA;AAC5E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAE3D,KAAK,WAAW,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,UAAU,GAAG,QAAQ,CAAA;AAEtE,UAAU,WAAW;IACnB,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAA;CAC5B;AAED,UAAU,YAAY;IACpB,IAAI,EAAE,OAAO,CAAA;IACb,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,uBAAuB,GAAG,kBAAkB,CAAA;CAC3E;AAED,UAAU,aAAa;IACrB,IAAI,EAAE,QA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"version": "1.0.0-alpha.33",
|
|
4
4
|
"description": "End-to-end chain abstraction and modularity toolkit",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Rhinestone",
|
|
@@ -19,6 +19,41 @@
|
|
|
19
19
|
"types": "./dist/src/index.d.ts",
|
|
20
20
|
"import": "./dist/src/index.js",
|
|
21
21
|
"require": "./dist/src/index.js"
|
|
22
|
+
},
|
|
23
|
+
"./actions": {
|
|
24
|
+
"types": "./dist/src/actions/index.d.ts",
|
|
25
|
+
"import": "./dist/src/actions/index.js",
|
|
26
|
+
"require": "./dist/src/actions/index.js"
|
|
27
|
+
},
|
|
28
|
+
"./actions/compact": {
|
|
29
|
+
"types": "./dist/src/actions/compact.d.ts",
|
|
30
|
+
"import": "./dist/src/actions/compact.js",
|
|
31
|
+
"require": "./dist/src/actions/compact.js"
|
|
32
|
+
},
|
|
33
|
+
"./actions/ecdsa": {
|
|
34
|
+
"types": "./dist/src/actions/ecdsa.d.ts",
|
|
35
|
+
"import": "./dist/src/actions/ecdsa.js",
|
|
36
|
+
"require": "./dist/src/actions/ecdsa.js"
|
|
37
|
+
},
|
|
38
|
+
"./actions/mfa": {
|
|
39
|
+
"types": "./dist/src/actions/mfa.d.ts",
|
|
40
|
+
"import": "./dist/src/actions/mfa.js",
|
|
41
|
+
"require": "./dist/src/actions/mfa.js"
|
|
42
|
+
},
|
|
43
|
+
"./actions/passkeys": {
|
|
44
|
+
"types": "./dist/src/actions/passkeys.d.ts",
|
|
45
|
+
"import": "./dist/src/actions/passkeys.js",
|
|
46
|
+
"require": "./dist/src/actions/passkeys.js"
|
|
47
|
+
},
|
|
48
|
+
"./actions/recovery": {
|
|
49
|
+
"types": "./dist/src/actions/recovery.d.ts",
|
|
50
|
+
"import": "./dist/src/actions/recovery.js",
|
|
51
|
+
"require": "./dist/src/actions/recovery.js"
|
|
52
|
+
},
|
|
53
|
+
"./errors": {
|
|
54
|
+
"types": "./dist/src/errors/index.d.ts",
|
|
55
|
+
"import": "./dist/src/errors/index.js",
|
|
56
|
+
"require": "./dist/src/errors/index.js"
|
|
22
57
|
}
|
|
23
58
|
},
|
|
24
59
|
"files": [
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.test.d.ts","sourceRoot":"","sources":["../../../actions/index.test.ts"],"names":[],"mappings":""}
|