@charterlabs/rhinestone-sdk 0.2.8 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/accounts/error.d.ts +4 -1
- package/dist/src/accounts/error.d.ts.map +1 -1
- package/dist/src/accounts/error.js +9 -1
- package/dist/src/accounts/index.d.ts +11 -4
- package/dist/src/accounts/index.d.ts.map +1 -1
- package/dist/src/accounts/index.js +32 -10
- package/dist/src/accounts/json-rpc/index.d.ts.map +1 -1
- package/dist/src/accounts/json-rpc/index.js +4 -0
- package/dist/src/accounts/json-rpc/index.test.d.ts +2 -0
- package/dist/src/accounts/json-rpc/index.test.d.ts.map +1 -0
- package/dist/src/accounts/json-rpc/index.test.js +33 -0
- package/dist/src/accounts/json-rpc/providers.d.ts +2 -1
- package/dist/src/accounts/json-rpc/providers.d.ts.map +1 -1
- package/dist/src/accounts/json-rpc/providers.js +8 -0
- package/dist/src/accounts/json-rpc/providers.test.d.ts +2 -0
- package/dist/src/accounts/json-rpc/providers.test.d.ts.map +1 -0
- package/dist/src/accounts/json-rpc/providers.test.js +43 -0
- package/dist/src/accounts/kernel.d.ts +9 -2
- package/dist/src/accounts/kernel.d.ts.map +1 -1
- package/dist/src/accounts/kernel.js +15 -1
- package/dist/src/accounts/nexus.d.ts +11 -4
- package/dist/src/accounts/nexus.d.ts.map +1 -1
- package/dist/src/accounts/nexus.js +19 -3
- package/dist/src/accounts/passport.d.ts +4 -4
- package/dist/src/accounts/passport.d.ts.map +1 -1
- package/dist/src/accounts/safe.d.ts +9 -2
- package/dist/src/accounts/safe.d.ts.map +1 -1
- package/dist/src/accounts/safe.js +17 -1
- package/dist/src/accounts/signing/common.d.ts.map +1 -1
- package/dist/src/accounts/signing/common.js +26 -5
- package/dist/src/accounts/signing/message.js +1 -1
- package/dist/src/accounts/startale.d.ts +9 -2
- package/dist/src/accounts/startale.d.ts.map +1 -1
- package/dist/src/accounts/startale.js +17 -1
- package/dist/src/accounts/walletClient.d.ts +27 -0
- package/dist/src/accounts/walletClient.d.ts.map +1 -1
- package/dist/src/accounts/walletClient.js +77 -0
- package/dist/src/actions/index.d.ts +1 -10
- package/dist/src/actions/index.d.ts.map +1 -1
- package/dist/src/actions/smart-sessions.d.ts +2 -11
- package/dist/src/actions/smart-sessions.d.ts.map +1 -1
- package/dist/src/actions/smart-sessions.js +0 -10
- package/dist/src/errors/index.d.ts +3 -3
- package/dist/src/errors/index.d.ts.map +1 -1
- package/dist/src/errors/index.js +3 -1
- package/dist/src/execution/error.d.ts +8 -1
- package/dist/src/execution/error.d.ts.map +1 -1
- package/dist/src/execution/error.js +10 -1
- package/dist/src/execution/index.d.ts +9 -4
- package/dist/src/execution/index.d.ts.map +1 -1
- package/dist/src/execution/index.js +32 -12
- package/dist/src/execution/singleChainOps.d.ts +28 -0
- package/dist/src/execution/singleChainOps.d.ts.map +1 -0
- package/dist/src/execution/{multiChainOps.js → singleChainOps.js} +7 -14
- package/dist/src/execution/smart-session.d.ts +5 -7
- package/dist/src/execution/smart-session.d.ts.map +1 -1
- package/dist/src/execution/smart-session.js +113 -228
- package/dist/src/execution/utils.d.ts +4 -4
- package/dist/src/execution/utils.d.ts.map +1 -1
- package/dist/src/execution/utils.js +125 -29
- package/dist/src/index.d.ts +13 -15
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +14 -6
- package/dist/src/modules/common.d.ts +3 -1
- package/dist/src/modules/common.d.ts.map +1 -1
- package/dist/src/modules/common.js +10 -0
- package/dist/src/modules/index.d.ts.map +1 -1
- package/dist/src/modules/index.js +15 -1
- package/dist/src/modules/validators/core.d.ts +5 -3
- package/dist/src/modules/validators/core.d.ts.map +1 -1
- package/dist/src/modules/validators/core.js +39 -2
- package/dist/src/modules/validators/smart-sessions.d.ts +6 -6
- package/dist/src/modules/validators/smart-sessions.d.ts.map +1 -1
- package/dist/src/modules/validators/smart-sessions.js +23 -12
- package/dist/src/orchestrator/client.d.ts.map +1 -1
- package/dist/src/orchestrator/client.js +13 -1
- package/dist/src/orchestrator/error.d.ts +27 -1
- package/dist/src/orchestrator/error.d.ts.map +1 -1
- package/dist/src/orchestrator/error.js +10 -1
- package/dist/src/orchestrator/index.d.ts +6 -6
- package/dist/src/orchestrator/index.d.ts.map +1 -1
- package/dist/src/orchestrator/index.js +4 -3
- package/dist/src/orchestrator/registry.d.ts +6 -2
- package/dist/src/orchestrator/registry.d.ts.map +1 -1
- package/dist/src/orchestrator/registry.js +30 -70
- package/dist/src/orchestrator/registry.test.js +24 -24
- package/dist/src/orchestrator/types.d.ts +31 -21
- package/dist/src/orchestrator/types.d.ts.map +1 -1
- package/dist/src/orchestrator/types.js +3 -5
- package/dist/src/types.d.ts +43 -8
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/utils/index.d.ts +12 -1
- package/dist/src/utils/index.d.ts.map +1 -1
- package/dist/src/utils/index.js +16 -0
- package/package.json +5 -5
- package/dist/src/execution/multiChainOps.d.ts +0 -40
- package/dist/src/execution/multiChainOps.d.ts.map +0 -1
- package/dist/src/execution/smart-session.test.d.ts +0 -2
- package/dist/src/execution/smart-session.test.d.ts.map +0 -1
- package/dist/src/execution/smart-session.test.js +0 -34
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getEip712Domain = getEip712Domain;
|
|
3
4
|
exports.getInstallData = getInstallData;
|
|
4
5
|
exports.getAddress = getAddress;
|
|
5
6
|
exports.packSignature = packSignature;
|
|
@@ -83,7 +84,8 @@ function getDeployArgs(config) {
|
|
|
83
84
|
viem_1.zeroAddress,
|
|
84
85
|
],
|
|
85
86
|
});
|
|
86
|
-
const
|
|
87
|
+
const account = config.account;
|
|
88
|
+
const saltNonce = account?.nonce ?? 0n;
|
|
87
89
|
const factoryData = (0, viem_1.encodeFunctionData)({
|
|
88
90
|
abi: (0, viem_1.parseAbi)([
|
|
89
91
|
'function createProxyWithNonce(address singleton,bytes calldata initializer,uint256 saltNonce) external payable returns (address)',
|
|
@@ -111,6 +113,18 @@ function getAddress(config) {
|
|
|
111
113
|
});
|
|
112
114
|
return address;
|
|
113
115
|
}
|
|
116
|
+
function getEip712Domain(config, chain) {
|
|
117
|
+
if (config.initData) {
|
|
118
|
+
throw new error_1.Eip712DomainNotAvailableError('Existing Safe-7579 accounts are not yet supported');
|
|
119
|
+
}
|
|
120
|
+
return {
|
|
121
|
+
name: 'rhinestone safe7579',
|
|
122
|
+
version: 'v1.0.0',
|
|
123
|
+
chainId: chain.id,
|
|
124
|
+
verifyingContract: getAddress(config),
|
|
125
|
+
salt: viem_1.zeroHash,
|
|
126
|
+
};
|
|
127
|
+
}
|
|
114
128
|
function getInstallData(module) {
|
|
115
129
|
return (0, viem_1.encodeFunctionData)({
|
|
116
130
|
abi: [
|
|
@@ -240,6 +254,7 @@ function getOwners(config) {
|
|
|
240
254
|
const ownerSet = config.owners;
|
|
241
255
|
switch (ownerSet.type) {
|
|
242
256
|
case 'ecdsa':
|
|
257
|
+
case 'ens':
|
|
243
258
|
return ownerSet.accounts.map((account) => account.address);
|
|
244
259
|
case 'passkey':
|
|
245
260
|
return [NO_SAFE_OWNER_ADDRESS];
|
|
@@ -254,6 +269,7 @@ function getThreshold(config) {
|
|
|
254
269
|
const ownerSet = config.owners;
|
|
255
270
|
switch (ownerSet.type) {
|
|
256
271
|
case 'ecdsa':
|
|
272
|
+
case 'ens':
|
|
257
273
|
return ownerSet.threshold ? BigInt(ownerSet.threshold) : 1n;
|
|
258
274
|
case 'passkey':
|
|
259
275
|
return 1n;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../accounts/signing/common.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,IAAI,CAAA;AACtC,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,KAAK,EAGV,KAAK,GAAG,EA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16,15 @@ function convertOwnerSetToSignerSet(owners) {
|
|
|
16
16
|
type: 'owner',
|
|
17
17
|
kind: 'ecdsa',
|
|
18
18
|
accounts: owners.accounts,
|
|
19
|
-
module: owners.module,
|
|
19
|
+
module: owners.module ?? core_1.OWNABLE_VALIDATOR_ADDRESS,
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
case 'ens': {
|
|
23
|
+
return {
|
|
24
|
+
type: 'owner',
|
|
25
|
+
kind: 'ecdsa',
|
|
26
|
+
accounts: owners.accounts,
|
|
27
|
+
module: owners.module ?? core_1.ENS_VALIDATOR_ADDRESS,
|
|
20
28
|
};
|
|
21
29
|
}
|
|
22
30
|
case 'passkey': {
|
|
@@ -38,7 +46,15 @@ function convertOwnerSetToSignerSet(owners) {
|
|
|
38
46
|
type: validator.type,
|
|
39
47
|
id: index,
|
|
40
48
|
accounts: validator.accounts,
|
|
41
|
-
module: validator.module,
|
|
49
|
+
module: validator.module ?? core_1.OWNABLE_VALIDATOR_ADDRESS,
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
case 'ens': {
|
|
53
|
+
return {
|
|
54
|
+
type: 'ecdsa',
|
|
55
|
+
id: index,
|
|
56
|
+
accounts: validator.accounts,
|
|
57
|
+
module: validator.module ?? core_1.ENS_VALIDATOR_ADDRESS,
|
|
42
58
|
};
|
|
43
59
|
}
|
|
44
60
|
case 'passkey': {
|
|
@@ -49,6 +65,9 @@ function convertOwnerSetToSignerSet(owners) {
|
|
|
49
65
|
module: validator.module,
|
|
50
66
|
};
|
|
51
67
|
}
|
|
68
|
+
default: {
|
|
69
|
+
throw new Error(`Unsupported validator type: ${validator.type}`);
|
|
70
|
+
}
|
|
52
71
|
}
|
|
53
72
|
}),
|
|
54
73
|
};
|
|
@@ -104,10 +123,12 @@ async function signWithOwners(signers, chain, address, params, signingFunctions,
|
|
|
104
123
|
switch (signers.kind) {
|
|
105
124
|
case 'ecdsa': {
|
|
106
125
|
// Ownable validator uses `v` value to determine which validation mode to use
|
|
126
|
+
// ENS validator (based on Ownable) also uses the same signature format
|
|
107
127
|
// This is not needed for UserOps
|
|
108
|
-
const
|
|
109
|
-
signers.module?.toLowerCase() === core_1.OWNABLE_VALIDATOR_ADDRESS
|
|
110
|
-
|
|
128
|
+
const isOwnableOrENS = !signers.module ||
|
|
129
|
+
signers.module?.toLowerCase() === core_1.OWNABLE_VALIDATOR_ADDRESS ||
|
|
130
|
+
signers.module?.toLowerCase() === core_1.ENS_VALIDATOR_ADDRESS;
|
|
131
|
+
const updateV = isOwnableOrENS && !isUserOpHash;
|
|
111
132
|
const signatures = await Promise.all(signers.accounts.map((account) => signingFunctions.signEcdsa(account, params, updateV)));
|
|
112
133
|
return (0, viem_1.concat)(signatures);
|
|
113
134
|
}
|
|
@@ -14,7 +14,7 @@ async function sign(signers, chain, address, hash, isUserOpHash) {
|
|
|
14
14
|
return (0, common_1.signWithOwners)(signers, chain, address, hash, signingFunctions, isUserOpHash, sign);
|
|
15
15
|
}
|
|
16
16
|
case 'session': {
|
|
17
|
-
return (0, common_1.signWithSession)(signers, chain, address, hash,
|
|
17
|
+
return (0, common_1.signWithSession)(signers, chain, address, hash, false, sign);
|
|
18
18
|
}
|
|
19
19
|
case 'guardians': {
|
|
20
20
|
return (0, common_1.signWithGuardians)(signers, hash, signingFunctions);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Address, Hex, PublicClient } from 'viem';
|
|
1
|
+
import type { Address, Chain, Hex, PublicClient } from 'viem';
|
|
2
2
|
import type { Module } from '../modules/common';
|
|
3
3
|
import type { EnableSessionData } from '../modules/validators/smart-sessions';
|
|
4
4
|
import type { OwnerSet, RhinestoneAccountConfig, Session } from '../types';
|
|
@@ -11,10 +11,17 @@ declare function getDeployArgs(config: RhinestoneAccountConfig): {
|
|
|
11
11
|
initializationCallData: `0x${string}`;
|
|
12
12
|
};
|
|
13
13
|
declare function getAddress(config: RhinestoneAccountConfig): `0x${string}`;
|
|
14
|
+
declare function getEip712Domain(config: RhinestoneAccountConfig, chain: Chain): {
|
|
15
|
+
name: string;
|
|
16
|
+
version: string;
|
|
17
|
+
chainId: number;
|
|
18
|
+
verifyingContract: `0x${string}`;
|
|
19
|
+
salt: "0x0000000000000000000000000000000000000000000000000000000000000000";
|
|
20
|
+
};
|
|
14
21
|
declare function getInstallData(module: Module): `0x${string}`;
|
|
15
22
|
declare function packSignature(signature: Hex, validator: ValidatorConfig, transformSignature?: (signature: Hex) => Hex): Promise<`0x${string}`>;
|
|
16
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">>>;
|
|
17
24
|
declare function getSessionSmartAccount(client: PublicClient, address: Address, session: Session, validatorAddress: Address, enableData: EnableSessionData | null, sign: (hash: Hex) => Promise<Hex>): Promise<import("viem/_types/account-abstraction").SmartAccount<import("viem/_types/account-abstraction").SmartAccountImplementation<import("viem").Abi, "0.7">>>;
|
|
18
25
|
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">>>;
|
|
19
|
-
export { getInstallData, getAddress, packSignature, getDeployArgs, getSmartAccount, getSessionSmartAccount, getGuardianSmartAccount, };
|
|
26
|
+
export { getEip712Domain, getInstallData, getAddress, packSignature, getDeployArgs, getSmartAccount, getSessionSmartAccount, getGuardianSmartAccount, };
|
|
20
27
|
//# 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,GAAG,EAAE,YAAY,EAAE,MAAM,M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AG,CAAC,oKAWlC;AAED,iBAAe,uBAAuB,CACpC,MAAM,EAAE,YAAY,EACpB,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,QAAQ,EACnB,gBAAgB,EAAE,OAAO,EACzB,IAAI,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,GAAG,CAAC,oKAUlC;AAED,OAAO,EACL,eAAe,EACf,cAAc,EACd,UAAU,EACV,aAAa,EACb,aAAa,EACb,eAAe,EACf,sBAAsB,EACtB,uBAAuB,GACxB,CAAA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getEip712Domain = getEip712Domain;
|
|
3
4
|
exports.getInstallData = getInstallData;
|
|
4
5
|
exports.getAddress = getAddress;
|
|
5
6
|
exports.packSignature = packSignature;
|
|
@@ -9,14 +10,17 @@ exports.getSessionSmartAccount = getSessionSmartAccount;
|
|
|
9
10
|
exports.getGuardianSmartAccount = getGuardianSmartAccount;
|
|
10
11
|
const viem_1 = require("viem");
|
|
11
12
|
const modules_1 = require("../modules");
|
|
13
|
+
const error_1 = require("./error");
|
|
12
14
|
const nexus_1 = require("./nexus");
|
|
13
15
|
const K1_DEFAULT_VALIDATOR_ADDRESS = '0x00000072f286204bb934ed49d8969e86f7dec7b1';
|
|
16
|
+
const STARTALE_VERSION = '1.0.0';
|
|
14
17
|
const IMPLEMENTATION_ADDRESS = '0x000000b8f5f723a680d3d7ee624fe0bc84a6e05a';
|
|
15
18
|
const FACTORY_ADDRESS = '0x0000003B3E7b530b4f981aE80d9350392Defef90';
|
|
16
19
|
const BOOTSTRAP_ADDRESS = '0x000000552A5fAe3Db7a8F3917C435448F49BA6a9';
|
|
17
20
|
const CREATION_CODE = '0x608060405261029d803803806100148161018c565b92833981016040828203126101885781516001600160a01b03811692909190838303610188576020810151906001600160401b03821161018857019281601f8501121561018857835161006e610069826101c5565b61018c565b9481865260208601936020838301011161018857815f926020809301865e8601015260017f754fd8b321c4649cb777ae6fdce7e89e9cceaa31a4f639795c7807eb7f1a27005d823b15610176577f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b031916821790557fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b5f80a282511561015e575f8091610146945190845af43d15610156573d91610137610069846101c5565b9283523d5f602085013e6101e0565b505b604051605e908161023f8239f35b6060916101e0565b50505034156101485763b398979f60e01b5f5260045ffd5b634c9c8ce360e01b5f5260045260245ffd5b5f80fd5b6040519190601f01601f191682016001600160401b038111838210176101b157604052565b634e487b7160e01b5f52604160045260245ffd5b6001600160401b0381116101b157601f01601f191660200190565b9061020457508051156101f557805190602001fd5b63d6bda27560e01b5f5260045ffd5b81511580610235575b610215575090565b639996b31560e01b5f9081526001600160a01b0391909116600452602490fd5b50803b1561020d56fe60806040523615605c575f8073ffffffffffffffffffffffffffffffffffffffff7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5416368280378136915af43d5f803e156058573d5ff35b3d5ffd5b00';
|
|
18
21
|
function getDeployArgs(config) {
|
|
19
|
-
const
|
|
22
|
+
const account = config.account;
|
|
23
|
+
const salt = account?.salt ?? viem_1.zeroHash;
|
|
20
24
|
const moduleSetup = (0, modules_1.getSetup)(config);
|
|
21
25
|
const initData = (0, viem_1.encodeAbiParameters)([{ type: 'address' }, { type: 'bytes' }], [
|
|
22
26
|
BOOTSTRAP_ADDRESS,
|
|
@@ -83,6 +87,18 @@ function getAddress(config) {
|
|
|
83
87
|
const address = (0, viem_1.slice)(hash, 12, 32);
|
|
84
88
|
return address;
|
|
85
89
|
}
|
|
90
|
+
function getEip712Domain(config, chain) {
|
|
91
|
+
if (config.initData) {
|
|
92
|
+
throw new error_1.Eip712DomainNotAvailableError('Existing Startale accounts are not yet supported');
|
|
93
|
+
}
|
|
94
|
+
return {
|
|
95
|
+
name: 'Startale',
|
|
96
|
+
version: STARTALE_VERSION,
|
|
97
|
+
chainId: chain.id,
|
|
98
|
+
verifyingContract: getAddress(config),
|
|
99
|
+
salt: viem_1.zeroHash,
|
|
100
|
+
};
|
|
101
|
+
}
|
|
86
102
|
function getInstallData(module) {
|
|
87
103
|
return (0, nexus_1.getInstallData)(module);
|
|
88
104
|
}
|
|
@@ -4,4 +4,31 @@ import type { Account, WalletClient } from 'viem';
|
|
|
4
4
|
* Ensures address is set and routes sign methods through the provided client.
|
|
5
5
|
*/
|
|
6
6
|
export declare function walletClientToAccount(walletClient: WalletClient): Account;
|
|
7
|
+
/**
|
|
8
|
+
* Wraps a Para viem account with custom signing for Rhinestone compatibility.
|
|
9
|
+
*
|
|
10
|
+
* Para's MPC signatures use 0/1 v-byte recovery, but Rhinestone/Smart wallets
|
|
11
|
+
* expect 27/28 v-byte recovery. This wrapper adjusts Para signatures automatically.
|
|
12
|
+
*
|
|
13
|
+
* @param viemAccount - The Para viem account to wrap
|
|
14
|
+
* @param walletId - Optional wallet ID for Para signing operations
|
|
15
|
+
* @returns Account compatible with Rhinestone SDK
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* const paraAccount = // ... Para viem account
|
|
20
|
+
* const wrappedAccount = wrapParaAccount(paraAccount, wallet.id)
|
|
21
|
+
*
|
|
22
|
+
* const rhinestoneAccount = await rhinestone.createAccount({
|
|
23
|
+
* owners: {
|
|
24
|
+
* type: "ecdsa",
|
|
25
|
+
* accounts: [wrappedAccount],
|
|
26
|
+
* },
|
|
27
|
+
* })
|
|
28
|
+
*
|
|
29
|
+
* // Also works for EIP-7702 (signAuthorization uses original 0/1 v-byte)
|
|
30
|
+
* const authorization = await wrappedAccount.signAuthorization?.({ ... })
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
export declare function wrapParaAccount(viemAccount: Account, walletId?: string): Account;
|
|
7
34
|
//# sourceMappingURL=walletClient.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"walletClient.d.ts","sourceRoot":"","sources":["../../../accounts/walletClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,OAAO,
|
|
1
|
+
{"version":3,"file":"walletClient.d.ts","sourceRoot":"","sources":["../../../accounts/walletClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,OAAO,EAOP,YAAY,EACb,MAAM,MAAM,CAAA;AAGb;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CA2CzE;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,eAAe,CAC7B,WAAW,EAAE,OAAO,EACpB,QAAQ,CAAC,EAAE,MAAM,GAChB,OAAO,CAsCT"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.walletClientToAccount = walletClientToAccount;
|
|
4
|
+
exports.wrapParaAccount = wrapParaAccount;
|
|
4
5
|
const error_1 = require("./error");
|
|
5
6
|
/**
|
|
6
7
|
* Adapts a Viem/Wagmi WalletClient into an Account-like signer that the SDK can consume.
|
|
@@ -36,3 +37,79 @@ function walletClientToAccount(walletClient) {
|
|
|
36
37
|
};
|
|
37
38
|
return account;
|
|
38
39
|
}
|
|
40
|
+
/**
|
|
41
|
+
* Wraps a Para viem account with custom signing for Rhinestone compatibility.
|
|
42
|
+
*
|
|
43
|
+
* Para's MPC signatures use 0/1 v-byte recovery, but Rhinestone/Smart wallets
|
|
44
|
+
* expect 27/28 v-byte recovery. This wrapper adjusts Para signatures automatically.
|
|
45
|
+
*
|
|
46
|
+
* @param viemAccount - The Para viem account to wrap
|
|
47
|
+
* @param walletId - Optional wallet ID for Para signing operations
|
|
48
|
+
* @returns Account compatible with Rhinestone SDK
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```ts
|
|
52
|
+
* const paraAccount = // ... Para viem account
|
|
53
|
+
* const wrappedAccount = wrapParaAccount(paraAccount, wallet.id)
|
|
54
|
+
*
|
|
55
|
+
* const rhinestoneAccount = await rhinestone.createAccount({
|
|
56
|
+
* owners: {
|
|
57
|
+
* type: "ecdsa",
|
|
58
|
+
* accounts: [wrappedAccount],
|
|
59
|
+
* },
|
|
60
|
+
* })
|
|
61
|
+
*
|
|
62
|
+
* // Also works for EIP-7702 (signAuthorization uses original 0/1 v-byte)
|
|
63
|
+
* const authorization = await wrappedAccount.signAuthorization?.({ ... })
|
|
64
|
+
* ```
|
|
65
|
+
*/
|
|
66
|
+
function wrapParaAccount(viemAccount, walletId) {
|
|
67
|
+
// Store the wallet ID for signing operations (for debugging purposes)
|
|
68
|
+
const effectiveWalletId = walletId || viemAccount.walletId || viemAccount._walletId;
|
|
69
|
+
// Store reference for potential debugging
|
|
70
|
+
if (effectiveWalletId) {
|
|
71
|
+
;
|
|
72
|
+
viemAccount._paraWalletId = effectiveWalletId;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
...viemAccount,
|
|
76
|
+
// Override signMessage to adjust v-byte for smart wallet compatibility
|
|
77
|
+
signMessage: async ({ message }) => {
|
|
78
|
+
if (!viemAccount.signMessage) {
|
|
79
|
+
throw new Error('Account does not support signMessage');
|
|
80
|
+
}
|
|
81
|
+
const originalSignature = await viemAccount.signMessage({ message });
|
|
82
|
+
return adjustVByte(originalSignature);
|
|
83
|
+
},
|
|
84
|
+
// Override signTypedData to adjust v-byte for smart wallet compatibility
|
|
85
|
+
signTypedData: async (typedData) => {
|
|
86
|
+
if (!viemAccount.signTypedData) {
|
|
87
|
+
throw new Error('Account does not support signTypedData');
|
|
88
|
+
}
|
|
89
|
+
const originalSignature = await viemAccount.signTypedData(typedData);
|
|
90
|
+
return adjustVByte(originalSignature);
|
|
91
|
+
},
|
|
92
|
+
// Keep signAuthorization as is for EIP-7702
|
|
93
|
+
signAuthorization: viemAccount.signAuthorization
|
|
94
|
+
? viemAccount.signAuthorization.bind(viemAccount)
|
|
95
|
+
: undefined,
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Adjusts the v-byte in a signature from Para's 0/1 format to Ethereum's 27/28 format.
|
|
100
|
+
* @internal
|
|
101
|
+
*/
|
|
102
|
+
function adjustVByte(signature) {
|
|
103
|
+
const V_OFFSET_FOR_ETHEREUM = 27;
|
|
104
|
+
const cleanSig = signature.startsWith('0x') ? signature.slice(2) : signature;
|
|
105
|
+
const r = cleanSig.slice(0, 64);
|
|
106
|
+
const s = cleanSig.slice(64, 128);
|
|
107
|
+
let v = parseInt(cleanSig.slice(128, 130), 16);
|
|
108
|
+
if (v < 27) {
|
|
109
|
+
v += V_OFFSET_FOR_ETHEREUM;
|
|
110
|
+
}
|
|
111
|
+
const adjustedSignature = `0x${r}${s}${v
|
|
112
|
+
.toString(16)
|
|
113
|
+
.padStart(2, '0')}`;
|
|
114
|
+
return adjustedSignature;
|
|
115
|
+
}
|
|
@@ -1,13 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import { type ModuleType } from '../modules/common';
|
|
3
|
-
import type { LazyCallInput } from '../types';
|
|
4
|
-
interface ModuleInput {
|
|
5
|
-
type: ModuleType;
|
|
6
|
-
address: Address;
|
|
7
|
-
initData?: Hex;
|
|
8
|
-
deInitData?: Hex;
|
|
9
|
-
additionalContext?: Hex;
|
|
10
|
-
}
|
|
1
|
+
import type { LazyCallInput, ModuleInput } from '../types';
|
|
11
2
|
/**
|
|
12
3
|
* Install a custom module
|
|
13
4
|
* @param module Module to install
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../actions/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../actions/index.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAE1D;;;;GAIG;AACH,iBAAS,aAAa,CAAC,MAAM,EAAE,WAAW,GAAG,aAAa,CAOzD;AAED;;;;GAIG;AACH,iBAAS,eAAe,CAAC,MAAM,EAAE,WAAW,GAAG,aAAa,CAO3D;AAYD,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,CAAA"}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type { SessionDetails } from '../execution/smart-session';
|
|
3
|
-
import { Session } from '../types';
|
|
1
|
+
import type { Session } from '../types';
|
|
4
2
|
/**
|
|
5
3
|
* Enable a smart session
|
|
6
4
|
* @param session session to enable
|
|
@@ -12,12 +10,5 @@ declare function enableSession(session: Session): {
|
|
|
12
10
|
data: `0x${string}`;
|
|
13
11
|
}>;
|
|
14
12
|
};
|
|
15
|
-
|
|
16
|
-
* Encode a smart session signature
|
|
17
|
-
* @param sessionDetails Session details
|
|
18
|
-
* @param sessionSignature Session signature
|
|
19
|
-
* @returns Encoded smart session signature
|
|
20
|
-
*/
|
|
21
|
-
declare function encodeSmartSessionSignature(sessionDetails: SessionDetails, sessionSignature: Hex): `0x${string}`;
|
|
22
|
-
export { enableSession, encodeSmartSessionSignature };
|
|
13
|
+
export { enableSession };
|
|
23
14
|
//# sourceMappingURL=smart-sessions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"smart-sessions.d.ts","sourceRoot":"","sources":["../../../actions/smart-sessions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"smart-sessions.d.ts","sourceRoot":"","sources":["../../../actions/smart-sessions.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AAEvC;;;;GAIG;AACH,iBAAS,aAAa,CAAC,OAAO,EAAE,OAAO;;;;;EAMtC;AAED,OAAO,EAAE,aAAa,EAAE,CAAA"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.enableSession = enableSession;
|
|
4
|
-
exports.encodeSmartSessionSignature = encodeSmartSessionSignature;
|
|
5
4
|
const smart_sessions_1 = require("../modules/validators/smart-sessions");
|
|
6
5
|
/**
|
|
7
6
|
* Enable a smart session
|
|
@@ -15,12 +14,3 @@ function enableSession(session) {
|
|
|
15
14
|
},
|
|
16
15
|
};
|
|
17
16
|
}
|
|
18
|
-
/**
|
|
19
|
-
* Encode a smart session signature
|
|
20
|
-
* @param sessionDetails Session details
|
|
21
|
-
* @param sessionSignature Session signature
|
|
22
|
-
* @returns Encoded smart session signature
|
|
23
|
-
*/
|
|
24
|
-
function encodeSmartSessionSignature(sessionDetails, sessionSignature) {
|
|
25
|
-
return (0, smart_sessions_1.encodeSmartSessionSignature)(sessionDetails.mode, sessionDetails.enableSessionData.permissionId, sessionSignature, sessionDetails.enableSessionData);
|
|
26
|
-
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AccountConfigurationNotSupportedError, AccountError, Eip7702AccountMustHaveEoaError, Eip7702NotSupportedForAccountError, ExistingEip7702AccountsNotSupportedError, FactoryArgsNotAvailableError, isAccountError, SigningNotSupportedForAccountError, SmartSessionsNotEnabledError, WalletClientNoConnectedAccountError } from '../accounts';
|
|
1
|
+
import { AccountConfigurationNotSupportedError, AccountError, Eip712DomainNotAvailableError, Eip7702AccountMustHaveEoaError, Eip7702NotSupportedForAccountError, ExistingEip7702AccountsNotSupportedError, FactoryArgsNotAvailableError, isAccountError, SigningNotSupportedForAccountError, SmartSessionsNotEnabledError, WalletClientNoConnectedAccountError } from '../accounts';
|
|
2
2
|
import { ExecutionError, IntentFailedError, isExecutionError, OrderPathRequiredForIntentsError, SessionChainRequiredError, SignerNotSupportedError } from '../execution';
|
|
3
|
-
import { AuthenticationRequiredError, BadRequestError, BodyParserError, ConflictError, ForbiddenError, InsufficientBalanceError, IntentNotFoundError, InternalServerError, InvalidApiKeyError, InvalidIntentSignatureError, isAuthError, isOrchestratorError, isRateLimited, isRetryable, isValidationError, NoPathFoundError, OnlyOneTargetTokenAmountCanBeUnsetError, OrchestratorError, RateLimitedError, ResourceNotFoundError, SchemaValidationError, ServiceUnavailableError, TokenNotSupportedError, UnauthorizedError, UnprocessableEntityError, UnsupportedChainError, UnsupportedChainIdError, UnsupportedTokenError } from '../orchestrator';
|
|
4
|
-
export { isAccountError, AccountError, AccountConfigurationNotSupportedError, Eip7702AccountMustHaveEoaError, ExistingEip7702AccountsNotSupportedError, FactoryArgsNotAvailableError, SmartSessionsNotEnabledError, SigningNotSupportedForAccountError, Eip7702NotSupportedForAccountError, WalletClientNoConnectedAccountError, isExecutionError, ExecutionError, IntentFailedError, OrderPathRequiredForIntentsError, SessionChainRequiredError, SignerNotSupportedError, isOrchestratorError, isRetryable, isAuthError, isValidationError, isRateLimited, AuthenticationRequiredError, BadRequestError, BodyParserError, ConflictError, ForbiddenError, InsufficientBalanceError, InvalidApiKeyError, InvalidIntentSignatureError, NoPathFoundError, OnlyOneTargetTokenAmountCanBeUnsetError, OrchestratorError, IntentNotFoundError, InternalServerError, ResourceNotFoundError, RateLimitedError, SchemaValidationError, ServiceUnavailableError, UnprocessableEntityError, UnauthorizedError, TokenNotSupportedError, UnsupportedChainError, UnsupportedChainIdError, UnsupportedTokenError, };
|
|
3
|
+
import { AuthenticationRequiredError, BadRequestError, BodyParserError, ConflictError, ForbiddenError, InsufficientBalanceError, IntentNotFoundError, InternalServerError, InvalidApiKeyError, InvalidIntentSignatureError, isAuthError, isOrchestratorError, isRateLimited, isRetryable, isValidationError, NoPathFoundError, OnlyOneTargetTokenAmountCanBeUnsetError, OrchestratorError, RateLimitedError, ResourceNotFoundError, SchemaValidationError, ServiceUnavailableError, SimulationFailedError, TokenNotSupportedError, UnauthorizedError, UnprocessableEntityError, UnsupportedChainError, UnsupportedChainIdError, UnsupportedTokenError } from '../orchestrator';
|
|
4
|
+
export { isAccountError, AccountError, AccountConfigurationNotSupportedError, Eip712DomainNotAvailableError, Eip7702AccountMustHaveEoaError, ExistingEip7702AccountsNotSupportedError, FactoryArgsNotAvailableError, SmartSessionsNotEnabledError, SigningNotSupportedForAccountError, Eip7702NotSupportedForAccountError, WalletClientNoConnectedAccountError, isExecutionError, ExecutionError, IntentFailedError, OrderPathRequiredForIntentsError, SessionChainRequiredError, SignerNotSupportedError, isOrchestratorError, isRetryable, isAuthError, isValidationError, isRateLimited, AuthenticationRequiredError, BadRequestError, BodyParserError, ConflictError, ForbiddenError, InsufficientBalanceError, InvalidApiKeyError, InvalidIntentSignatureError, NoPathFoundError, OnlyOneTargetTokenAmountCanBeUnsetError, OrchestratorError, IntentNotFoundError, InternalServerError, ResourceNotFoundError, RateLimitedError, SchemaValidationError, ServiceUnavailableError, SimulationFailedError, UnprocessableEntityError, UnauthorizedError, TokenNotSupportedError, UnsupportedChainError, UnsupportedChainIdError, 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,8BAA8B,EAC9B,kCAAkC,EAClC,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,yBAAyB,EACzB,uBAAuB,EACxB,MAAM,cAAc,CAAA;AACrB,OAAO,EACL,2BAA2B,EAC3B,eAAe,EACf,eAAe,EACf,aAAa,EACb,cAAc,EACd,wBAAwB,EACxB,mBAAmB,EACnB,mBAAmB,EACnB,kBAAkB,EAClB,2BAA2B,EAC3B,WAAW,EACX,mBAAmB,EACnB,aAAa,EACb,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EAChB,uCAAuC,EACvC,iBAAiB,EACjB,gBAAgB,EAChB,qBAAqB,EACrB,qBAAqB,EACrB,uBAAuB,EACvB,sBAAsB,EACtB,iBAAiB,EACjB,wBAAwB,EACxB,qBAAqB,EACrB,uBAAuB,EACvB,qBAAqB,EACtB,MAAM,iBAAiB,CAAA;AAExB,OAAO,EAEL,cAAc,EACd,YAAY,EACZ,qCAAqC,EACrC,8BAA8B,EAC9B,wCAAwC,EACxC,4BAA4B,EAC5B,4BAA4B,EAC5B,kCAAkC,EAClC,kCAAkC,EAClC,mCAAmC,EAEnC,gBAAgB,EAChB,cAAc,EACd,iBAAiB,EACjB,gCAAgC,EAChC,yBAAyB,EACzB,uBAAuB,EAEvB,mBAAmB,EACnB,WAAW,EACX,WAAW,EACX,iBAAiB,EACjB,aAAa,EACb,2BAA2B,EAC3B,eAAe,EACf,eAAe,EACf,aAAa,EACb,cAAc,EACd,wBAAwB,EACxB,kBAAkB,EAClB,2BAA2B,EAC3B,gBAAgB,EAChB,uCAAuC,EACvC,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,gBAAgB,EAChB,qBAAqB,EACrB,uBAAuB,EACvB,wBAAwB,EACxB,iBAAiB,EACjB,sBAAsB,EACtB,qBAAqB,EACrB,uBAAuB,EACvB,qBAAqB,GACtB,CAAA"}
|
|
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,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,yBAAyB,EACzB,uBAAuB,EACxB,MAAM,cAAc,CAAA;AACrB,OAAO,EACL,2BAA2B,EAC3B,eAAe,EACf,eAAe,EACf,aAAa,EACb,cAAc,EACd,wBAAwB,EACxB,mBAAmB,EACnB,mBAAmB,EACnB,kBAAkB,EAClB,2BAA2B,EAC3B,WAAW,EACX,mBAAmB,EACnB,aAAa,EACb,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EAChB,uCAAuC,EACvC,iBAAiB,EACjB,gBAAgB,EAChB,qBAAqB,EACrB,qBAAqB,EACrB,uBAAuB,EACvB,qBAAqB,EACrB,sBAAsB,EACtB,iBAAiB,EACjB,wBAAwB,EACxB,qBAAqB,EACrB,uBAAuB,EACvB,qBAAqB,EACtB,MAAM,iBAAiB,CAAA;AAExB,OAAO,EAEL,cAAc,EACd,YAAY,EACZ,qCAAqC,EACrC,6BAA6B,EAC7B,8BAA8B,EAC9B,wCAAwC,EACxC,4BAA4B,EAC5B,4BAA4B,EAC5B,kCAAkC,EAClC,kCAAkC,EAClC,mCAAmC,EAEnC,gBAAgB,EAChB,cAAc,EACd,iBAAiB,EACjB,gCAAgC,EAChC,yBAAyB,EACzB,uBAAuB,EAEvB,mBAAmB,EACnB,WAAW,EACX,WAAW,EACX,iBAAiB,EACjB,aAAa,EACb,2BAA2B,EAC3B,eAAe,EACf,eAAe,EACf,aAAa,EACb,cAAc,EACd,wBAAwB,EACxB,kBAAkB,EAClB,2BAA2B,EAC3B,gBAAgB,EAChB,uCAAuC,EACvC,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,gBAAgB,EAChB,qBAAqB,EACrB,uBAAuB,EACvB,qBAAqB,EACrB,wBAAwB,EACxB,iBAAiB,EACjB,sBAAsB,EACtB,qBAAqB,EACrB,uBAAuB,EACvB,qBAAqB,GACtB,CAAA"}
|
package/dist/src/errors/index.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UnsupportedTokenError = exports.UnsupportedChainIdError = exports.UnsupportedChainError = exports.TokenNotSupportedError = exports.UnauthorizedError = exports.UnprocessableEntityError = exports.ServiceUnavailableError = exports.SchemaValidationError = exports.RateLimitedError = exports.ResourceNotFoundError = exports.InternalServerError = exports.IntentNotFoundError = exports.OrchestratorError = exports.OnlyOneTargetTokenAmountCanBeUnsetError = exports.NoPathFoundError = exports.InvalidIntentSignatureError = exports.InvalidApiKeyError = exports.InsufficientBalanceError = exports.ForbiddenError = exports.ConflictError = exports.BodyParserError = exports.BadRequestError = exports.AuthenticationRequiredError = exports.isRateLimited = exports.isValidationError = exports.isAuthError = exports.isRetryable = exports.isOrchestratorError = exports.SignerNotSupportedError = exports.SessionChainRequiredError = exports.OrderPathRequiredForIntentsError = exports.IntentFailedError = exports.ExecutionError = exports.isExecutionError = exports.WalletClientNoConnectedAccountError = exports.Eip7702NotSupportedForAccountError = exports.SigningNotSupportedForAccountError = exports.SmartSessionsNotEnabledError = exports.FactoryArgsNotAvailableError = exports.ExistingEip7702AccountsNotSupportedError = exports.Eip7702AccountMustHaveEoaError = exports.AccountConfigurationNotSupportedError = exports.AccountError = exports.isAccountError = void 0;
|
|
3
|
+
exports.UnsupportedTokenError = exports.UnsupportedChainIdError = exports.UnsupportedChainError = exports.TokenNotSupportedError = exports.UnauthorizedError = exports.UnprocessableEntityError = exports.SimulationFailedError = exports.ServiceUnavailableError = exports.SchemaValidationError = exports.RateLimitedError = exports.ResourceNotFoundError = exports.InternalServerError = exports.IntentNotFoundError = exports.OrchestratorError = exports.OnlyOneTargetTokenAmountCanBeUnsetError = exports.NoPathFoundError = exports.InvalidIntentSignatureError = exports.InvalidApiKeyError = exports.InsufficientBalanceError = exports.ForbiddenError = exports.ConflictError = exports.BodyParserError = exports.BadRequestError = exports.AuthenticationRequiredError = exports.isRateLimited = exports.isValidationError = exports.isAuthError = exports.isRetryable = exports.isOrchestratorError = exports.SignerNotSupportedError = exports.SessionChainRequiredError = exports.OrderPathRequiredForIntentsError = exports.IntentFailedError = exports.ExecutionError = exports.isExecutionError = exports.WalletClientNoConnectedAccountError = exports.Eip7702NotSupportedForAccountError = exports.SigningNotSupportedForAccountError = exports.SmartSessionsNotEnabledError = exports.FactoryArgsNotAvailableError = exports.ExistingEip7702AccountsNotSupportedError = exports.Eip7702AccountMustHaveEoaError = exports.Eip712DomainNotAvailableError = exports.AccountConfigurationNotSupportedError = exports.AccountError = exports.isAccountError = void 0;
|
|
4
4
|
const accounts_1 = require("../accounts");
|
|
5
5
|
Object.defineProperty(exports, "AccountConfigurationNotSupportedError", { enumerable: true, get: function () { return accounts_1.AccountConfigurationNotSupportedError; } });
|
|
6
6
|
Object.defineProperty(exports, "AccountError", { enumerable: true, get: function () { return accounts_1.AccountError; } });
|
|
7
|
+
Object.defineProperty(exports, "Eip712DomainNotAvailableError", { enumerable: true, get: function () { return accounts_1.Eip712DomainNotAvailableError; } });
|
|
7
8
|
Object.defineProperty(exports, "Eip7702AccountMustHaveEoaError", { enumerable: true, get: function () { return accounts_1.Eip7702AccountMustHaveEoaError; } });
|
|
8
9
|
Object.defineProperty(exports, "Eip7702NotSupportedForAccountError", { enumerable: true, get: function () { return accounts_1.Eip7702NotSupportedForAccountError; } });
|
|
9
10
|
Object.defineProperty(exports, "ExistingEip7702AccountsNotSupportedError", { enumerable: true, get: function () { return accounts_1.ExistingEip7702AccountsNotSupportedError; } });
|
|
@@ -42,6 +43,7 @@ Object.defineProperty(exports, "RateLimitedError", { enumerable: true, get: func
|
|
|
42
43
|
Object.defineProperty(exports, "ResourceNotFoundError", { enumerable: true, get: function () { return orchestrator_1.ResourceNotFoundError; } });
|
|
43
44
|
Object.defineProperty(exports, "SchemaValidationError", { enumerable: true, get: function () { return orchestrator_1.SchemaValidationError; } });
|
|
44
45
|
Object.defineProperty(exports, "ServiceUnavailableError", { enumerable: true, get: function () { return orchestrator_1.ServiceUnavailableError; } });
|
|
46
|
+
Object.defineProperty(exports, "SimulationFailedError", { enumerable: true, get: function () { return orchestrator_1.SimulationFailedError; } });
|
|
45
47
|
Object.defineProperty(exports, "TokenNotSupportedError", { enumerable: true, get: function () { return orchestrator_1.TokenNotSupportedError; } });
|
|
46
48
|
Object.defineProperty(exports, "UnauthorizedError", { enumerable: true, get: function () { return orchestrator_1.UnauthorizedError; } });
|
|
47
49
|
Object.defineProperty(exports, "UnprocessableEntityError", { enumerable: true, get: function () { return orchestrator_1.UnprocessableEntityError; } });
|
|
@@ -21,6 +21,13 @@ declare class SignerNotSupportedError extends ExecutionError {
|
|
|
21
21
|
traceId?: string;
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
|
+
declare class CallsNotSupportedError extends ExecutionError {
|
|
25
|
+
constructor(params?: {
|
|
26
|
+
context?: any;
|
|
27
|
+
errorType?: string;
|
|
28
|
+
traceId?: string;
|
|
29
|
+
});
|
|
30
|
+
}
|
|
24
31
|
declare class OrderPathRequiredForIntentsError extends ExecutionError {
|
|
25
32
|
constructor(params?: {
|
|
26
33
|
context?: any;
|
|
@@ -50,5 +57,5 @@ declare class IntentStatusTimeoutError extends ExecutionError {
|
|
|
50
57
|
});
|
|
51
58
|
}
|
|
52
59
|
declare function isExecutionError(error: Error): error is ExecutionError;
|
|
53
|
-
export { isExecutionError, ExecutionError, OrderPathRequiredForIntentsError, SessionChainRequiredError, IntentFailedError, IntentStatusTimeoutError, SignerNotSupportedError, };
|
|
60
|
+
export { isExecutionError, ExecutionError, OrderPathRequiredForIntentsError, CallsNotSupportedError, SessionChainRequiredError, IntentFailedError, IntentStatusTimeoutError, SignerNotSupportedError, };
|
|
54
61
|
//# 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,C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AMF;AAED,cAAM,yBAA0B,SAAQ,cAAc;gBACxC,MAAM,CAAC,EAAE;QACnB,OAAO,CAAC,EAAE,GAAG,CAAA;QACb,SAAS,CAAC,EAAE,MAAM,CAAA;QAClB,OAAO,CAAC,EAAE,MAAM,CAAA;KACjB;CAOF;AAED,cAAM,iBAAkB,SAAQ,cAAc;gBAChC,MAAM,CAAC,EAAE;QACnB,OAAO,CAAC,EAAE,GAAG,CAAA;QACb,SAAS,CAAC,EAAE,MAAM,CAAA;QAClB,OAAO,CAAC,EAAE,MAAM,CAAA;KACjB;CAMF;AAED,cAAM,wBAAyB,SAAQ,cAAc;gBACvC,MAAM,CAAC,EAAE;QACnB,OAAO,CAAC,EAAE,GAAG,CAAA;QACb,SAAS,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,sBAAsB,EACtB,yBAAyB,EACzB,iBAAiB,EACjB,wBAAwB,EACxB,uBAAuB,GACxB,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SignerNotSupportedError = exports.IntentStatusTimeoutError = exports.IntentFailedError = exports.SessionChainRequiredError = exports.OrderPathRequiredForIntentsError = exports.ExecutionError = void 0;
|
|
3
|
+
exports.SignerNotSupportedError = exports.IntentStatusTimeoutError = exports.IntentFailedError = exports.SessionChainRequiredError = exports.CallsNotSupportedError = exports.OrderPathRequiredForIntentsError = exports.ExecutionError = void 0;
|
|
4
4
|
exports.isExecutionError = isExecutionError;
|
|
5
5
|
class ExecutionError extends Error {
|
|
6
6
|
_message;
|
|
@@ -37,6 +37,15 @@ class SignerNotSupportedError extends ExecutionError {
|
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
exports.SignerNotSupportedError = SignerNotSupportedError;
|
|
40
|
+
class CallsNotSupportedError extends ExecutionError {
|
|
41
|
+
constructor(params) {
|
|
42
|
+
super({
|
|
43
|
+
message: 'Target chain calls are not supported for this account type',
|
|
44
|
+
...params,
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
exports.CallsNotSupportedError = CallsNotSupportedError;
|
|
40
49
|
class OrderPathRequiredForIntentsError extends ExecutionError {
|
|
41
50
|
constructor(params) {
|
|
42
51
|
super({
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type Address, type Chain, type Hex } from 'viem';
|
|
2
2
|
import type { UserOperationReceipt } from 'viem/_types/account-abstraction';
|
|
3
|
+
import type { IntentOpStatus } from '../orchestrator';
|
|
3
4
|
import type { SettlementLayer } from '../orchestrator/types';
|
|
4
5
|
import type { CalldataInput, CallInput, RhinestoneAccountConfig, RhinestoneConfig, SignerSet, SourceAssetInput, TokenRequest, TokenSymbol, Transaction, UserOperationTransaction } from '../types';
|
|
5
6
|
import { ExecutionError, IntentFailedError, IntentStatusTimeoutError, isExecutionError, OrderPathRequiredForIntentsError, SessionChainRequiredError, SignerNotSupportedError } from './error';
|
|
@@ -16,21 +17,25 @@ interface TransactionStatus {
|
|
|
16
17
|
}
|
|
17
18
|
declare function sendTransaction(config: RhinestoneAccountConfig, transaction: Transaction): Promise<TransactionResult>;
|
|
18
19
|
declare function sendUserOperation(config: RhinestoneAccountConfig, transaction: UserOperationTransaction): Promise<UserOperationResult>;
|
|
19
|
-
declare function sendTransactionInternal(config: RhinestoneConfig, sourceChains: Chain[], targetChain: Chain,
|
|
20
|
+
declare function sendTransactionInternal(config: RhinestoneConfig, sourceChains: Chain[], targetChain: Chain, options: {
|
|
21
|
+
callInputs?: CallInput[];
|
|
20
22
|
gasLimit?: bigint;
|
|
21
23
|
initialTokenRequests?: TokenRequest[];
|
|
24
|
+
recipient?: RhinestoneAccountConfig | Address;
|
|
22
25
|
signers?: SignerSet;
|
|
23
26
|
sponsored?: boolean;
|
|
24
27
|
settlementLayers?: SettlementLayer[];
|
|
25
28
|
sourceAssets?: SourceAssetInput;
|
|
26
29
|
lockFunds?: boolean;
|
|
27
30
|
feeAsset?: Address | TokenSymbol;
|
|
28
|
-
dryRun?: boolean;
|
|
29
31
|
}): Promise<TransactionResult>;
|
|
30
32
|
declare function sendUserOperationInternal(config: RhinestoneConfig, chain: Chain, callInputs: CalldataInput[], signers?: SignerSet): Promise<UserOperationResult>;
|
|
31
33
|
declare function waitForExecution(config: RhinestoneConfig, result: TransactionResult | UserOperationResult, acceptsPreconfirmations: boolean): Promise<TransactionStatus | UserOperationReceipt>;
|
|
32
|
-
declare function getMaxSpendableAmount(config: RhinestoneConfig, chain: Chain,
|
|
34
|
+
declare function getMaxSpendableAmount(config: RhinestoneConfig, chain: Chain, token: Address | TokenSymbol, gasUnits: bigint, sponsored?: boolean): Promise<bigint>;
|
|
33
35
|
declare function getPortfolio(config: RhinestoneConfig, onTestnets: boolean): Promise<import("../orchestrator").Portfolio>;
|
|
34
|
-
|
|
36
|
+
declare function getIntentStatus(apiKey: string | undefined, endpointUrl: string | undefined, intentId: bigint): Promise<TransactionStatus & {
|
|
37
|
+
status: IntentOpStatus['status'];
|
|
38
|
+
}>;
|
|
39
|
+
export { sendTransaction, sendTransactionInternal, sendUserOperation, sendUserOperationInternal, waitForExecution, getMaxSpendableAmount, getPortfolio, getIntentStatus, isExecutionError, ExecutionError, IntentFailedError, IntentStatusTimeoutError, OrderPathRequiredForIntentsError, SessionChainRequiredError, SignerNotSupportedError, };
|
|
35
40
|
export type { TransactionStatus, TransactionResult, UserOperationResult };
|
|
36
41
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../execution/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,KAA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