@charterlabs/rhinestone-sdk 0.2.8 → 0.2.9
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 +9 -2
- package/dist/src/accounts/index.d.ts.map +1 -1
- package/dist/src/accounts/index.js +26 -1
- 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 +13 -0
- package/dist/src/accounts/nexus.d.ts +9 -2
- package/dist/src/accounts/nexus.d.ts.map +1 -1
- package/dist/src/accounts/nexus.js +15 -1
- 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 +15 -0
- 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 +15 -0
- 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/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/index.d.ts +8 -3
- package/dist/src/execution/index.d.ts.map +1 -1
- package/dist/src/execution/index.js +27 -7
- 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 +2 -2
- package/dist/src/execution/utils.d.ts.map +1 -1
- package/dist/src/execution/utils.js +81 -22
- package/dist/src/index.d.ts +14 -16
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +15 -6
- package/dist/src/modules/index.d.ts.map +1 -1
- package/dist/src/modules/index.js +1 -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 +16 -64
- package/dist/src/orchestrator/registry.test.js +24 -24
- package/dist/src/orchestrator/types.d.ts +37 -23
- package/dist/src/orchestrator/types.d.ts.map +1 -1
- package/dist/src/orchestrator/types.js +9 -5
- package/dist/src/types.d.ts +30 -7
- package/dist/src/types.d.ts.map +1 -1
- package/package.json +4 -4
- 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,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isTokenAddressSupported = exports.isRateLimited = exports.isValidationError = exports.isAuthError = exports.isRetryable = exports.isOrchestratorError = exports.getSupportedTokens = exports.getTokenAddress = exports.getTokenSymbol = exports.getWethAddress = 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.Orchestrator = exports.RHINESTONE_SPOKE_POOL_ADDRESS = exports.
|
|
3
|
+
exports.isTokenAddressSupported = exports.isRateLimited = exports.isValidationError = exports.isAuthError = exports.isRetryable = exports.isOrchestratorError = exports.getAllSupportedChainsAndTokens = exports.getSupportedTokens = exports.getTokenAddress = exports.getTokenSymbol = exports.getWethAddress = 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.Orchestrator = exports.RHINESTONE_SPOKE_POOL_ADDRESS = exports.INTENT_STATUS_CLAIMED = exports.INTENT_STATUS_PRECONFIRMED = exports.INTENT_STATUS_FAILED = exports.INTENT_STATUS_FILLED = exports.INTENT_STATUS_COMPLETED = exports.INTENT_STATUS_EXPIRED = exports.INTENT_STATUS_PENDING = void 0;
|
|
4
4
|
exports.getOrchestrator = getOrchestrator;
|
|
5
5
|
const client_1 = require("./client");
|
|
6
6
|
Object.defineProperty(exports, "Orchestrator", { enumerable: true, get: function () { return client_1.Orchestrator; } });
|
|
@@ -29,6 +29,7 @@ Object.defineProperty(exports, "RateLimitedError", { enumerable: true, get: func
|
|
|
29
29
|
Object.defineProperty(exports, "ResourceNotFoundError", { enumerable: true, get: function () { return error_1.ResourceNotFoundError; } });
|
|
30
30
|
Object.defineProperty(exports, "SchemaValidationError", { enumerable: true, get: function () { return error_1.SchemaValidationError; } });
|
|
31
31
|
Object.defineProperty(exports, "ServiceUnavailableError", { enumerable: true, get: function () { return error_1.ServiceUnavailableError; } });
|
|
32
|
+
Object.defineProperty(exports, "SimulationFailedError", { enumerable: true, get: function () { return error_1.SimulationFailedError; } });
|
|
32
33
|
Object.defineProperty(exports, "TokenNotSupportedError", { enumerable: true, get: function () { return error_1.TokenNotSupportedError; } });
|
|
33
34
|
Object.defineProperty(exports, "UnauthorizedError", { enumerable: true, get: function () { return error_1.UnauthorizedError; } });
|
|
34
35
|
Object.defineProperty(exports, "UnprocessableEntityError", { enumerable: true, get: function () { return error_1.UnprocessableEntityError; } });
|
|
@@ -36,20 +37,20 @@ Object.defineProperty(exports, "UnsupportedChainError", { enumerable: true, get:
|
|
|
36
37
|
Object.defineProperty(exports, "UnsupportedChainIdError", { enumerable: true, get: function () { return error_1.UnsupportedChainIdError; } });
|
|
37
38
|
Object.defineProperty(exports, "UnsupportedTokenError", { enumerable: true, get: function () { return error_1.UnsupportedTokenError; } });
|
|
38
39
|
const registry_1 = require("./registry");
|
|
40
|
+
Object.defineProperty(exports, "getAllSupportedChainsAndTokens", { enumerable: true, get: function () { return registry_1.getAllSupportedChainsAndTokens; } });
|
|
39
41
|
Object.defineProperty(exports, "getSupportedTokens", { enumerable: true, get: function () { return registry_1.getSupportedTokens; } });
|
|
40
42
|
Object.defineProperty(exports, "getTokenAddress", { enumerable: true, get: function () { return registry_1.getTokenAddress; } });
|
|
41
43
|
Object.defineProperty(exports, "getTokenSymbol", { enumerable: true, get: function () { return registry_1.getTokenSymbol; } });
|
|
42
44
|
Object.defineProperty(exports, "getWethAddress", { enumerable: true, get: function () { return registry_1.getWethAddress; } });
|
|
43
45
|
Object.defineProperty(exports, "isTokenAddressSupported", { enumerable: true, get: function () { return registry_1.isTokenAddressSupported; } });
|
|
44
46
|
const types_1 = require("./types");
|
|
47
|
+
Object.defineProperty(exports, "INTENT_STATUS_CLAIMED", { enumerable: true, get: function () { return types_1.INTENT_STATUS_CLAIMED; } });
|
|
45
48
|
Object.defineProperty(exports, "INTENT_STATUS_COMPLETED", { enumerable: true, get: function () { return types_1.INTENT_STATUS_COMPLETED; } });
|
|
46
49
|
Object.defineProperty(exports, "INTENT_STATUS_EXPIRED", { enumerable: true, get: function () { return types_1.INTENT_STATUS_EXPIRED; } });
|
|
47
50
|
Object.defineProperty(exports, "INTENT_STATUS_FAILED", { enumerable: true, get: function () { return types_1.INTENT_STATUS_FAILED; } });
|
|
48
51
|
Object.defineProperty(exports, "INTENT_STATUS_FILLED", { enumerable: true, get: function () { return types_1.INTENT_STATUS_FILLED; } });
|
|
49
|
-
Object.defineProperty(exports, "INTENT_STATUS_PARTIALLY_COMPLETED", { enumerable: true, get: function () { return types_1.INTENT_STATUS_PARTIALLY_COMPLETED; } });
|
|
50
52
|
Object.defineProperty(exports, "INTENT_STATUS_PENDING", { enumerable: true, get: function () { return types_1.INTENT_STATUS_PENDING; } });
|
|
51
53
|
Object.defineProperty(exports, "INTENT_STATUS_PRECONFIRMED", { enumerable: true, get: function () { return types_1.INTENT_STATUS_PRECONFIRMED; } });
|
|
52
|
-
Object.defineProperty(exports, "INTENT_STATUS_UNKNOWN", { enumerable: true, get: function () { return types_1.INTENT_STATUS_UNKNOWN; } });
|
|
53
54
|
function getOrchestrator(apiKey, orchestratorUrl) {
|
|
54
55
|
return new client_1.Orchestrator(orchestratorUrl ?? consts_1.PROD_ORCHESTRATOR_URL, apiKey);
|
|
55
56
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type Address, type Chain } from 'viem';
|
|
2
2
|
import type { TokenSymbol } from '../types';
|
|
3
3
|
import type { TokenConfig } from './types';
|
|
4
4
|
declare function getSupportedChainIds(): number[];
|
|
@@ -13,5 +13,9 @@ declare function getDefaultAccountAccessList(onTestnets?: boolean): {
|
|
|
13
13
|
chainIds: number[];
|
|
14
14
|
};
|
|
15
15
|
declare function resolveTokenAddress(token: TokenSymbol | Address, chainId: number): Address;
|
|
16
|
-
|
|
16
|
+
declare function getAllSupportedChainsAndTokens(): {
|
|
17
|
+
chainId: number;
|
|
18
|
+
tokens: TokenConfig[];
|
|
19
|
+
}[];
|
|
20
|
+
export { getTokenSymbol, getTokenAddress, getWethAddress, getChainById, getSupportedTokens, getSupportedChainIds, isTestnet, isTokenAddressSupported, getDefaultAccountAccessList, resolveTokenAddress, getAllSupportedChainsAndTokens, };
|
|
17
21
|
//# sourceMappingURL=registry.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../orchestrator/registry.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../orchestrator/registry.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,KAAK,EAA0B,MAAM,MAAM,CAAA;AAEvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAE3C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAE1C,iBAAS,oBAAoB,IAAI,MAAM,EAAE,CAExC;AAMD,iBAAS,cAAc,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,CAc7C;AAED,iBAAS,cAAc,CAAC,YAAY,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAgBtE;AAED,iBAAS,eAAe,CACtB,KAAK,EAAE,WAAW,GAAG,OAAO,EAC5B,OAAO,EAAE,MAAM,GACd,OAAO,CAMT;AAED,iBAAS,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,KAAK,CAM5C;AAED,iBAAS,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAG3C;AAED,iBAAS,uBAAuB,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAU3E;AAED,iBAAS,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,WAAW,EAAE,CAU1D;AAED,iBAAS,2BAA2B,CAAC,UAAU,CAAC,EAAE,OAAO;;EAaxD;AAED,iBAAS,mBAAmB,CAC1B,KAAK,EAAE,WAAW,GAAG,OAAO,EAC5B,OAAO,EAAE,MAAM,GACd,OAAO,CAKT;AAED,iBAAS,8BAA8B,IAAI;IACzC,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,WAAW,EAAE,CAAA;CACtB,EAAE,CAMF;AAED,OAAO,EACL,cAAc,EACd,eAAe,EACf,cAAc,EACd,YAAY,EACZ,kBAAkB,EAClB,oBAAoB,EACpB,SAAS,EACT,uBAAuB,EACvB,2BAA2B,EAC3B,mBAAmB,EACnB,8BAA8B,GAC/B,CAAA"}
|
|
@@ -1,37 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
3
|
exports.getTokenSymbol = getTokenSymbol;
|
|
37
4
|
exports.getTokenAddress = getTokenAddress;
|
|
@@ -43,17 +10,15 @@ exports.isTestnet = isTestnet;
|
|
|
43
10
|
exports.isTokenAddressSupported = isTokenAddressSupported;
|
|
44
11
|
exports.getDefaultAccountAccessList = getDefaultAccountAccessList;
|
|
45
12
|
exports.resolveTokenAddress = resolveTokenAddress;
|
|
46
|
-
|
|
13
|
+
exports.getAllSupportedChainsAndTokens = getAllSupportedChainsAndTokens;
|
|
14
|
+
const shared_configs_1 = require("@rhinestone/shared-configs");
|
|
47
15
|
const viem_1 = require("viem");
|
|
48
|
-
const chains_1 = require("viem/chains");
|
|
49
16
|
const error_1 = require("./error");
|
|
50
17
|
function getSupportedChainIds() {
|
|
51
|
-
|
|
52
|
-
return arr.map((c) => c.id);
|
|
18
|
+
return shared_configs_1.chains.map((chain) => chain.id);
|
|
53
19
|
}
|
|
54
20
|
function getChainEntry(chainId) {
|
|
55
|
-
|
|
56
|
-
return registry[chainId.toString()];
|
|
21
|
+
return shared_configs_1.chainRegistry[chainId.toString()];
|
|
57
22
|
}
|
|
58
23
|
function getWethAddress(chain) {
|
|
59
24
|
const chainEntry = getChainEntry(chain.id);
|
|
@@ -78,9 +43,6 @@ function getTokenSymbol(tokenAddress, chainId) {
|
|
|
78
43
|
return token.symbol;
|
|
79
44
|
}
|
|
80
45
|
function getTokenAddress(token, chainId) {
|
|
81
|
-
if (!isChainIdSupported(chainId)) {
|
|
82
|
-
throw new error_1.UnsupportedChainError(chainId);
|
|
83
|
-
}
|
|
84
46
|
if (typeof token === 'string' && (0, viem_1.isAddress)(token))
|
|
85
47
|
return token;
|
|
86
48
|
const tokens = getSupportedTokens(chainId);
|
|
@@ -89,29 +51,12 @@ function getTokenAddress(token, chainId) {
|
|
|
89
51
|
throw new error_1.UnsupportedTokenError(token, chainId);
|
|
90
52
|
return found.address;
|
|
91
53
|
}
|
|
92
|
-
function isChainIdSupported(chainId) {
|
|
93
|
-
const arr = (shared.chains ?? []);
|
|
94
|
-
const chainIds = arr.map((c) => c.id);
|
|
95
|
-
return chainIds.includes(chainId);
|
|
96
|
-
}
|
|
97
54
|
function getChainById(chainId) {
|
|
98
|
-
const
|
|
99
|
-
|
|
100
|
-
[chains_1.sepolia.id]: chains_1.sepolia,
|
|
101
|
-
[chains_1.base.id]: chains_1.base,
|
|
102
|
-
[chains_1.baseSepolia.id]: chains_1.baseSepolia,
|
|
103
|
-
[chains_1.arbitrum.id]: chains_1.arbitrum,
|
|
104
|
-
[chains_1.arbitrumSepolia.id]: chains_1.arbitrumSepolia,
|
|
105
|
-
[chains_1.optimism.id]: chains_1.optimism,
|
|
106
|
-
[chains_1.optimismSepolia.id]: chains_1.optimismSepolia,
|
|
107
|
-
[chains_1.polygon.id]: chains_1.polygon,
|
|
108
|
-
[chains_1.soneium.id]: chains_1.soneium,
|
|
109
|
-
[chains_1.sonic.id]: chains_1.sonic,
|
|
110
|
-
};
|
|
111
|
-
if (!isChainIdSupported(chainId)) {
|
|
55
|
+
const chain = shared_configs_1.chains.find((chain) => chain.id === chainId);
|
|
56
|
+
if (!chain) {
|
|
112
57
|
throw new error_1.UnsupportedChainError(chainId);
|
|
113
58
|
}
|
|
114
|
-
return
|
|
59
|
+
return chain;
|
|
115
60
|
}
|
|
116
61
|
function isTestnet(chainId) {
|
|
117
62
|
const chain = getChainById(chainId);
|
|
@@ -125,10 +70,10 @@ function isTokenAddressSupported(address, chainId) {
|
|
|
125
70
|
return chainEntry.tokens.some((token) => token.address.toLowerCase() === address.toLowerCase());
|
|
126
71
|
}
|
|
127
72
|
function getSupportedTokens(chainId) {
|
|
128
|
-
|
|
73
|
+
const entry = getChainEntry(chainId);
|
|
74
|
+
if (!entry) {
|
|
129
75
|
throw new error_1.UnsupportedChainError(chainId);
|
|
130
76
|
}
|
|
131
|
-
const entry = getChainEntry(chainId);
|
|
132
77
|
return entry.tokens.map((t) => ({
|
|
133
78
|
symbol: t.symbol,
|
|
134
79
|
address: t.address,
|
|
@@ -155,3 +100,10 @@ function resolveTokenAddress(token, chainId) {
|
|
|
155
100
|
}
|
|
156
101
|
return getTokenAddress(token, chainId);
|
|
157
102
|
}
|
|
103
|
+
function getAllSupportedChainsAndTokens() {
|
|
104
|
+
const supportedChainIds = getSupportedChainIds();
|
|
105
|
+
return supportedChainIds.map((chainId) => ({
|
|
106
|
+
chainId,
|
|
107
|
+
tokens: getSupportedTokens(chainId),
|
|
108
|
+
}));
|
|
109
|
+
}
|
|
@@ -13,7 +13,7 @@ const TOKEN_SYMBOLS = {
|
|
|
13
13
|
WETH: 'WETH',
|
|
14
14
|
};
|
|
15
15
|
const TOKEN_ADDRESSES = {
|
|
16
|
-
|
|
16
|
+
ARBTRUM_USDC: '0xaf88d065e77c8cC2239327C5EDb3A432268e5831',
|
|
17
17
|
BASE_WETH: '0x4200000000000000000000000000000000000006',
|
|
18
18
|
};
|
|
19
19
|
const UNSUPPORTED_TOKEN_ADDRESS = '0x1234567890123456789012345678901234567890';
|
|
@@ -21,7 +21,7 @@ const UNSUPPORTED_TOKEN_ADDRESS = '0x1234567890123456789012345678901234567890';
|
|
|
21
21
|
(0, vitest_1.describe)('getSupportedChainIds', () => {
|
|
22
22
|
(0, vitest_1.test)('returns supported chain IDs', () => {
|
|
23
23
|
const chainIds = (0, registry_1.getSupportedChainIds)();
|
|
24
|
-
(0, vitest_1.expect)(chainIds).toContain(chains_1.
|
|
24
|
+
(0, vitest_1.expect)(chainIds).toContain(chains_1.arbitrum.id);
|
|
25
25
|
(0, vitest_1.expect)(chainIds).toContain(chains_1.base.id);
|
|
26
26
|
(0, vitest_1.expect)(chainIds).toContain(chains_1.sepolia.id);
|
|
27
27
|
});
|
|
@@ -33,21 +33,21 @@ const UNSUPPORTED_TOKEN_ADDRESS = '0x1234567890123456789012345678901234567890';
|
|
|
33
33
|
});
|
|
34
34
|
(0, vitest_1.describe)('getTokenSymbol', () => {
|
|
35
35
|
(0, vitest_1.test)('returns correct symbol for supported token', () => {
|
|
36
|
-
const symbol = (0, registry_1.getTokenSymbol)(TOKEN_ADDRESSES.
|
|
36
|
+
const symbol = (0, registry_1.getTokenSymbol)(TOKEN_ADDRESSES.ARBTRUM_USDC, chains_1.arbitrum.id);
|
|
37
37
|
(0, vitest_1.expect)(symbol).toBe(TOKEN_SYMBOLS.USDC);
|
|
38
38
|
});
|
|
39
39
|
(0, vitest_1.test)('throws error for unsupported chain', () => {
|
|
40
|
-
(0, vitest_1.expect)(() => (0, registry_1.getTokenSymbol)(TOKEN_ADDRESSES.
|
|
40
|
+
(0, vitest_1.expect)(() => (0, registry_1.getTokenSymbol)(TOKEN_ADDRESSES.ARBTRUM_USDC, UNSUPPORTED_CHAIN_ID)).toThrow(`Unsupported chain ${UNSUPPORTED_CHAIN_ID}`);
|
|
41
41
|
});
|
|
42
42
|
});
|
|
43
43
|
(0, vitest_1.describe)('getTokenAddress', () => {
|
|
44
44
|
(0, vitest_1.test)('returns zero address for ETH', () => {
|
|
45
|
-
const address = (0, registry_1.getTokenAddress)(TOKEN_SYMBOLS.ETH, chains_1.
|
|
45
|
+
const address = (0, registry_1.getTokenAddress)(TOKEN_SYMBOLS.ETH, chains_1.arbitrum.id);
|
|
46
46
|
(0, vitest_1.expect)(address).toBe(viem_1.zeroAddress);
|
|
47
47
|
});
|
|
48
48
|
(0, vitest_1.test)('returns correct address for token symbol', () => {
|
|
49
|
-
const address = (0, registry_1.getTokenAddress)(TOKEN_SYMBOLS.USDC, chains_1.
|
|
50
|
-
(0, vitest_1.expect)(address).toBe(TOKEN_ADDRESSES.
|
|
49
|
+
const address = (0, registry_1.getTokenAddress)(TOKEN_SYMBOLS.USDC, chains_1.arbitrum.id);
|
|
50
|
+
(0, vitest_1.expect)(address).toBe(TOKEN_ADDRESSES.ARBTRUM_USDC);
|
|
51
51
|
});
|
|
52
52
|
(0, vitest_1.test)('throws error for unsupported chain', () => {
|
|
53
53
|
(0, vitest_1.expect)(() => (0, registry_1.getTokenAddress)(TOKEN_SYMBOLS.USDC, UNSUPPORTED_CHAIN_ID)).toThrow(`Unsupported chain ${UNSUPPORTED_CHAIN_ID}`);
|
|
@@ -68,17 +68,17 @@ const UNSUPPORTED_TOKEN_ADDRESS = '0x1234567890123456789012345678901234567890';
|
|
|
68
68
|
});
|
|
69
69
|
(0, vitest_1.describe)('getChainById', () => {
|
|
70
70
|
(0, vitest_1.test)('returns correct chain for supported ID', () => {
|
|
71
|
-
const chain = (0, registry_1.getChainById)(chains_1.
|
|
72
|
-
(0, vitest_1.expect)(chain.id).toBe(chains_1.
|
|
73
|
-
(0, vitest_1.expect)(chain.name).toBe(chains_1.
|
|
71
|
+
const chain = (0, registry_1.getChainById)(chains_1.arbitrum.id);
|
|
72
|
+
(0, vitest_1.expect)(chain.id).toBe(chains_1.arbitrum.id);
|
|
73
|
+
(0, vitest_1.expect)(chain.name).toBe(chains_1.arbitrum.name);
|
|
74
74
|
});
|
|
75
75
|
(0, vitest_1.test)('throws error for unsupported chain', () => {
|
|
76
76
|
(0, vitest_1.expect)(() => (0, registry_1.getChainById)(UNSUPPORTED_CHAIN_ID)).toThrow(`Unsupported chain ${UNSUPPORTED_CHAIN_ID}`);
|
|
77
77
|
});
|
|
78
78
|
});
|
|
79
79
|
(0, vitest_1.describe)('isTestnet', () => {
|
|
80
|
-
(0, vitest_1.test)('returns false for
|
|
81
|
-
(0, vitest_1.expect)((0, registry_1.isTestnet)(chains_1.
|
|
80
|
+
(0, vitest_1.test)('returns false for arbitrum', () => {
|
|
81
|
+
(0, vitest_1.expect)((0, registry_1.isTestnet)(chains_1.arbitrum.id)).toBe(false);
|
|
82
82
|
});
|
|
83
83
|
(0, vitest_1.test)('returns true for testnet', () => {
|
|
84
84
|
(0, vitest_1.expect)((0, registry_1.isTestnet)(chains_1.sepolia.id)).toBe(true);
|
|
@@ -89,17 +89,17 @@ const UNSUPPORTED_TOKEN_ADDRESS = '0x1234567890123456789012345678901234567890';
|
|
|
89
89
|
});
|
|
90
90
|
(0, vitest_1.describe)('isTokenAddressSupported', () => {
|
|
91
91
|
(0, vitest_1.test)('returns true for supported token', () => {
|
|
92
|
-
const isSupported = (0, registry_1.isTokenAddressSupported)(TOKEN_ADDRESSES.
|
|
92
|
+
const isSupported = (0, registry_1.isTokenAddressSupported)(TOKEN_ADDRESSES.ARBTRUM_USDC, chains_1.arbitrum.id);
|
|
93
93
|
(0, vitest_1.expect)(isSupported).toBe(true);
|
|
94
94
|
});
|
|
95
95
|
(0, vitest_1.test)('returns false for unsupported token or chain', () => {
|
|
96
|
-
(0, vitest_1.expect)((0, registry_1.isTokenAddressSupported)(UNSUPPORTED_TOKEN_ADDRESS, chains_1.
|
|
97
|
-
(0, vitest_1.expect)((0, registry_1.isTokenAddressSupported)(TOKEN_ADDRESSES.
|
|
96
|
+
(0, vitest_1.expect)((0, registry_1.isTokenAddressSupported)(UNSUPPORTED_TOKEN_ADDRESS, chains_1.arbitrum.id)).toBe(false);
|
|
97
|
+
(0, vitest_1.expect)((0, registry_1.isTokenAddressSupported)(TOKEN_ADDRESSES.ARBTRUM_USDC, UNSUPPORTED_CHAIN_ID)).toBe(false);
|
|
98
98
|
});
|
|
99
99
|
});
|
|
100
100
|
(0, vitest_1.describe)('getSupportedTokens', () => {
|
|
101
101
|
(0, vitest_1.test)('returns tokens for supported chain', () => {
|
|
102
|
-
const tokens = (0, registry_1.getSupportedTokens)(chains_1.
|
|
102
|
+
const tokens = (0, registry_1.getSupportedTokens)(chains_1.arbitrum.id);
|
|
103
103
|
(0, vitest_1.expect)(tokens.length).toBeGreaterThan(0);
|
|
104
104
|
(0, vitest_1.expect)(tokens.find((t) => t.symbol === TOKEN_SYMBOLS.USDC)).toBeDefined();
|
|
105
105
|
});
|
|
@@ -109,23 +109,23 @@ const UNSUPPORTED_TOKEN_ADDRESS = '0x1234567890123456789012345678901234567890';
|
|
|
109
109
|
});
|
|
110
110
|
(0, vitest_1.describe)('getDefaultAccountAccessList', () => {
|
|
111
111
|
(0, vitest_1.test)('filters chains by testnet status', () => {
|
|
112
|
-
const
|
|
112
|
+
const arbitrumList = (0, registry_1.getDefaultAccountAccessList)(false);
|
|
113
113
|
const testnetList = (0, registry_1.getDefaultAccountAccessList)(true);
|
|
114
|
-
(0, vitest_1.expect)(
|
|
115
|
-
(0, vitest_1.expect)(
|
|
114
|
+
(0, vitest_1.expect)(arbitrumList.chainIds).toContain(chains_1.arbitrum.id);
|
|
115
|
+
(0, vitest_1.expect)(arbitrumList.chainIds).not.toContain(chains_1.sepolia.id);
|
|
116
116
|
(0, vitest_1.expect)(testnetList.chainIds).toContain(chains_1.sepolia.id);
|
|
117
|
-
(0, vitest_1.expect)(testnetList.chainIds).not.toContain(chains_1.
|
|
117
|
+
(0, vitest_1.expect)(testnetList.chainIds).not.toContain(chains_1.arbitrum.id);
|
|
118
118
|
});
|
|
119
119
|
});
|
|
120
120
|
(0, vitest_1.describe)('resolveTokenAddress', () => {
|
|
121
121
|
(0, vitest_1.test)('returns address as-is when given valid address', () => {
|
|
122
|
-
const address = TOKEN_ADDRESSES.
|
|
123
|
-
const result = (0, registry_1.resolveTokenAddress)(address, chains_1.
|
|
122
|
+
const address = TOKEN_ADDRESSES.ARBTRUM_USDC;
|
|
123
|
+
const result = (0, registry_1.resolveTokenAddress)(address, chains_1.arbitrum.id);
|
|
124
124
|
(0, vitest_1.expect)(result).toBe(address);
|
|
125
125
|
});
|
|
126
126
|
(0, vitest_1.test)('resolves token symbol to address', () => {
|
|
127
|
-
const result = (0, registry_1.resolveTokenAddress)(TOKEN_SYMBOLS.USDC, chains_1.
|
|
128
|
-
(0, vitest_1.expect)(result).toBe(TOKEN_ADDRESSES.
|
|
127
|
+
const result = (0, registry_1.resolveTokenAddress)(TOKEN_SYMBOLS.USDC, chains_1.arbitrum.id);
|
|
128
|
+
(0, vitest_1.expect)(result).toBe(TOKEN_ADDRESSES.ARBTRUM_USDC);
|
|
129
129
|
});
|
|
130
130
|
(0, vitest_1.test)('throw error for unsupported token', () => {
|
|
131
131
|
(0, vitest_1.expect)(() => (0, registry_1.resolveTokenAddress)(TOKEN_SYMBOLS.USDT, chains_1.baseSepolia.id)).toThrow(`Unsupported token ${TOKEN_SYMBOLS.USDT} for chain ${chains_1.baseSepolia.id}`);
|
|
@@ -6,12 +6,11 @@ type AccountType = 'GENERIC' | 'ERC7579' | 'EOA';
|
|
|
6
6
|
declare const INTENT_STATUS_PENDING = "PENDING";
|
|
7
7
|
declare const INTENT_STATUS_FAILED = "FAILED";
|
|
8
8
|
declare const INTENT_STATUS_EXPIRED = "EXPIRED";
|
|
9
|
-
declare const INTENT_STATUS_PARTIALLY_COMPLETED = "PARTIALLY_COMPLETED";
|
|
10
9
|
declare const INTENT_STATUS_COMPLETED = "COMPLETED";
|
|
11
10
|
declare const INTENT_STATUS_FILLED = "FILLED";
|
|
12
11
|
declare const INTENT_STATUS_PRECONFIRMED = "PRECONFIRMED";
|
|
13
|
-
declare const
|
|
14
|
-
type IntentStatus = typeof INTENT_STATUS_PENDING | typeof INTENT_STATUS_EXPIRED | typeof
|
|
12
|
+
declare const INTENT_STATUS_CLAIMED = "CLAIMED";
|
|
13
|
+
type IntentStatus = typeof INTENT_STATUS_PENDING | typeof INTENT_STATUS_EXPIRED | typeof INTENT_STATUS_COMPLETED | typeof INTENT_STATUS_FILLED | typeof INTENT_STATUS_PRECONFIRMED | typeof INTENT_STATUS_FAILED | typeof INTENT_STATUS_CLAIMED;
|
|
15
14
|
type AccountAccessListLegacy = {
|
|
16
15
|
chainId: number;
|
|
17
16
|
tokenAddress: Address;
|
|
@@ -34,12 +33,17 @@ interface Claim {
|
|
|
34
33
|
claimTimestamp?: number;
|
|
35
34
|
claimTransactionHash?: Hex;
|
|
36
35
|
}
|
|
37
|
-
interface Execution {
|
|
36
|
+
export interface Execution {
|
|
38
37
|
to: Address;
|
|
39
38
|
value: string;
|
|
40
39
|
data: Hex;
|
|
41
40
|
}
|
|
42
41
|
type SettlementLayer = 'SAME_CHAIN' | 'INTENT_EXECUTOR' | CrossChainSettlementLayer;
|
|
42
|
+
export declare enum FundingMethod {
|
|
43
|
+
COMPACT = "COMPACT",
|
|
44
|
+
PERMIT2 = "PERMIT2",
|
|
45
|
+
NO_FUNDING = "NO_FUNDING"
|
|
46
|
+
}
|
|
43
47
|
interface IntentOptions {
|
|
44
48
|
topupCompact: boolean;
|
|
45
49
|
feeToken?: Address | SupportedTokenSymbol;
|
|
@@ -69,24 +73,15 @@ interface PortfolioToken {
|
|
|
69
73
|
}
|
|
70
74
|
type Portfolio = PortfolioToken[];
|
|
71
75
|
interface IntentInput {
|
|
72
|
-
account:
|
|
73
|
-
address: Address;
|
|
74
|
-
accountType: AccountType;
|
|
75
|
-
setupOps: {
|
|
76
|
-
to: Address;
|
|
77
|
-
data: Hex;
|
|
78
|
-
}[];
|
|
79
|
-
delegations?: Record<number, {
|
|
80
|
-
contract: Address;
|
|
81
|
-
}>;
|
|
82
|
-
};
|
|
76
|
+
account: Account;
|
|
83
77
|
destinationChainId: number;
|
|
84
78
|
destinationExecutions: Execution[];
|
|
85
79
|
destinationGasUnits?: bigint;
|
|
86
|
-
|
|
80
|
+
tokenRequests: {
|
|
87
81
|
tokenAddress: Address;
|
|
88
82
|
amount?: bigint;
|
|
89
83
|
}[];
|
|
84
|
+
recipient?: Account;
|
|
90
85
|
accountAccessList?: AccountAccessList;
|
|
91
86
|
options: IntentOptions;
|
|
92
87
|
}
|
|
@@ -125,8 +120,9 @@ interface IntentOpElementMandate {
|
|
|
125
120
|
qualifier: {
|
|
126
121
|
settlementContext: {
|
|
127
122
|
settlementLayer: SettlementLayer;
|
|
128
|
-
|
|
123
|
+
fundingMethod: FundingMethod;
|
|
129
124
|
using7579: boolean;
|
|
125
|
+
requestId?: Hex;
|
|
130
126
|
};
|
|
131
127
|
encodedVal: Hex;
|
|
132
128
|
};
|
|
@@ -139,7 +135,7 @@ interface IntentOpElement {
|
|
|
139
135
|
idsAndAmounts: [[string, string]];
|
|
140
136
|
spendTokens: [[string, string]];
|
|
141
137
|
beforeFill: boolean;
|
|
142
|
-
smartAccountStatus
|
|
138
|
+
smartAccountStatus?: AccountContext;
|
|
143
139
|
mandate: IntentOpElementMandate;
|
|
144
140
|
}
|
|
145
141
|
interface IntentOp {
|
|
@@ -162,16 +158,19 @@ interface IntentOp {
|
|
|
162
158
|
};
|
|
163
159
|
gasPrices: Record<string, string>;
|
|
164
160
|
account: AccountWithContext;
|
|
161
|
+
recipient?: AccountWithContext;
|
|
165
162
|
};
|
|
166
163
|
}
|
|
167
|
-
|
|
164
|
+
type AccountContext = {
|
|
168
165
|
accountType: 'smartAccount';
|
|
169
166
|
isDeployed: boolean;
|
|
170
167
|
isERC7579: boolean;
|
|
171
168
|
erc7579AccountType: string;
|
|
172
169
|
erc7579AccountVersion: string;
|
|
173
|
-
}
|
|
174
|
-
|
|
170
|
+
} | {
|
|
171
|
+
accountType: 'EOA';
|
|
172
|
+
};
|
|
173
|
+
export interface Account {
|
|
175
174
|
address: Address;
|
|
176
175
|
accountType: AccountType;
|
|
177
176
|
setupOps: Pick<Execution, 'to' | 'data'>[];
|
|
@@ -211,9 +210,24 @@ interface EmissaryEnable {
|
|
|
211
210
|
allChainIds: bigint[];
|
|
212
211
|
chainIndex: bigint;
|
|
213
212
|
}
|
|
213
|
+
interface WrapRequired {
|
|
214
|
+
type: 'wrap';
|
|
215
|
+
amount: bigint;
|
|
216
|
+
}
|
|
217
|
+
interface ApprovalRequired {
|
|
218
|
+
type: 'approval';
|
|
219
|
+
amount: bigint;
|
|
220
|
+
spender: Address;
|
|
221
|
+
}
|
|
222
|
+
type TokenRequirements = {
|
|
223
|
+
[chainId: number]: {
|
|
224
|
+
[tokenAddress: Address]: ApprovalRequired | WrapRequired;
|
|
225
|
+
};
|
|
226
|
+
};
|
|
214
227
|
interface IntentRoute {
|
|
215
228
|
intentOp: IntentOp;
|
|
216
229
|
intentCost: IntentCost;
|
|
230
|
+
tokenRequirements?: TokenRequirements;
|
|
217
231
|
}
|
|
218
232
|
interface IntentResult {
|
|
219
233
|
result: {
|
|
@@ -280,6 +294,6 @@ interface PortfolioTokenResponse {
|
|
|
280
294
|
tokenChainBalance: PortfolioTokenChainResponse[];
|
|
281
295
|
}
|
|
282
296
|
type PortfolioResponse = PortfolioTokenResponse[];
|
|
283
|
-
export type { TokenConfig, SupportedChain, SettlementLayer, IntentInput, IntentCost, IntentRoute, IntentOp, IntentOpElement, IntentOpElementMandate, SignedIntentOp, IntentOpStatus, IntentResult, PortfolioTokenResponse, PortfolioResponse, Portfolio, PortfolioToken, MappedChainTokenAccessList, UnmappedChainTokenAccessList, };
|
|
284
|
-
export { INTENT_STATUS_PENDING, INTENT_STATUS_FAILED, INTENT_STATUS_EXPIRED,
|
|
297
|
+
export type { TokenConfig, SupportedChain, SettlementLayer, IntentInput, IntentCost, IntentRoute, IntentOp, IntentOpElement, IntentOpElementMandate, SignedIntentOp, IntentOpStatus, IntentResult, PortfolioTokenResponse, PortfolioResponse, Portfolio, PortfolioToken, MappedChainTokenAccessList, UnmappedChainTokenAccessList, TokenRequirements, WrapRequired, ApprovalRequired, };
|
|
298
|
+
export { INTENT_STATUS_PENDING, INTENT_STATUS_FAILED, INTENT_STATUS_EXPIRED, INTENT_STATUS_CLAIMED, INTENT_STATUS_COMPLETED, INTENT_STATUS_FILLED, INTENT_STATUS_PRECONFIRMED, };
|
|
285
299
|
//# 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,eAAe,IAAI,yBAAyB,EAC5C,cAAc,EACd,gBAAgB,EAChB,uBAAuB,EACvB,uBAAuB,EACvB,gBAAgB,EACjB,MAAM,4BAA4B,CAAA;AACnC,OAAO,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,MAA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AE,MAAM,CAAA;KACjB,CAAA;CACF;AAED,UAAU,sBAAsB;IAC9B,SAAS,EAAE,MAAM,CAAA;IACjB,aAAa,EAAE,MAAM,CAAA;IACrB,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,eAAe,EACf,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,EAC5B,iBAAiB,EACjB,YAAY,EACZ,gBAAgB,GACjB,CAAA;AACD,OAAO,EACL,qBAAqB,EACrB,oBAAoB,EACpB,qBAAqB,EACrB,qBAAqB,EACrB,uBAAuB,EACvB,oBAAoB,EACpB,0BAA0B,GAC3B,CAAA"}
|
|
@@ -1,19 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.INTENT_STATUS_PRECONFIRMED = exports.INTENT_STATUS_FILLED = exports.INTENT_STATUS_COMPLETED = exports.INTENT_STATUS_CLAIMED = exports.INTENT_STATUS_EXPIRED = exports.INTENT_STATUS_FAILED = exports.INTENT_STATUS_PENDING = exports.FundingMethod = void 0;
|
|
4
4
|
const INTENT_STATUS_PENDING = 'PENDING';
|
|
5
5
|
exports.INTENT_STATUS_PENDING = INTENT_STATUS_PENDING;
|
|
6
6
|
const INTENT_STATUS_FAILED = 'FAILED';
|
|
7
7
|
exports.INTENT_STATUS_FAILED = INTENT_STATUS_FAILED;
|
|
8
8
|
const INTENT_STATUS_EXPIRED = 'EXPIRED';
|
|
9
9
|
exports.INTENT_STATUS_EXPIRED = INTENT_STATUS_EXPIRED;
|
|
10
|
-
const INTENT_STATUS_PARTIALLY_COMPLETED = 'PARTIALLY_COMPLETED';
|
|
11
|
-
exports.INTENT_STATUS_PARTIALLY_COMPLETED = INTENT_STATUS_PARTIALLY_COMPLETED;
|
|
12
10
|
const INTENT_STATUS_COMPLETED = 'COMPLETED';
|
|
13
11
|
exports.INTENT_STATUS_COMPLETED = INTENT_STATUS_COMPLETED;
|
|
14
12
|
const INTENT_STATUS_FILLED = 'FILLED';
|
|
15
13
|
exports.INTENT_STATUS_FILLED = INTENT_STATUS_FILLED;
|
|
16
14
|
const INTENT_STATUS_PRECONFIRMED = 'PRECONFIRMED';
|
|
17
15
|
exports.INTENT_STATUS_PRECONFIRMED = INTENT_STATUS_PRECONFIRMED;
|
|
18
|
-
const
|
|
19
|
-
exports.
|
|
16
|
+
const INTENT_STATUS_CLAIMED = 'CLAIMED';
|
|
17
|
+
exports.INTENT_STATUS_CLAIMED = INTENT_STATUS_CLAIMED;
|
|
18
|
+
var FundingMethod;
|
|
19
|
+
(function (FundingMethod) {
|
|
20
|
+
FundingMethod["COMPACT"] = "COMPACT";
|
|
21
|
+
FundingMethod["PERMIT2"] = "PERMIT2";
|
|
22
|
+
FundingMethod["NO_FUNDING"] = "NO_FUNDING";
|
|
23
|
+
})(FundingMethod || (exports.FundingMethod = FundingMethod = {}));
|
package/dist/src/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Account, Address, Chain, Hex } from 'viem';
|
|
2
2
|
import type { WebAuthnAccount } from 'viem/account-abstraction';
|
|
3
3
|
import type { EnableSessionData } from './modules/validators/smart-sessions';
|
|
4
|
-
import type { SettlementLayer } from './orchestrator/types';
|
|
4
|
+
import type { Account as OrchestratorAccount, SettlementLayer } from './orchestrator/types';
|
|
5
5
|
type AccountType = 'safe' | 'nexus' | 'kernel' | 'startale' | 'passport' | 'eoa';
|
|
6
6
|
interface SafeAccount {
|
|
7
7
|
type: 'safe';
|
|
@@ -32,6 +32,13 @@ interface OwnableValidatorConfig {
|
|
|
32
32
|
threshold?: number;
|
|
33
33
|
module?: Address;
|
|
34
34
|
}
|
|
35
|
+
interface ENSValidatorConfig {
|
|
36
|
+
type: 'ens';
|
|
37
|
+
accounts: Account[];
|
|
38
|
+
threshold?: number;
|
|
39
|
+
ownerExpirations: number[];
|
|
40
|
+
module?: Address;
|
|
41
|
+
}
|
|
35
42
|
interface WebauthnValidatorConfig {
|
|
36
43
|
type: 'passkey';
|
|
37
44
|
accounts: WebAuthnAccount[];
|
|
@@ -40,14 +47,17 @@ interface WebauthnValidatorConfig {
|
|
|
40
47
|
}
|
|
41
48
|
interface MultiFactorValidatorConfig {
|
|
42
49
|
type: 'multi-factor';
|
|
43
|
-
validators: (OwnableValidatorConfig | WebauthnValidatorConfig)[];
|
|
50
|
+
validators: (OwnableValidatorConfig | ENSValidatorConfig | WebauthnValidatorConfig)[];
|
|
44
51
|
threshold?: number;
|
|
45
52
|
module?: Address;
|
|
46
53
|
}
|
|
47
|
-
|
|
54
|
+
type ProviderConfig = {
|
|
48
55
|
type: 'alchemy';
|
|
49
56
|
apiKey: string;
|
|
50
|
-
}
|
|
57
|
+
} | {
|
|
58
|
+
type: 'custom';
|
|
59
|
+
urls: Record<number, string>;
|
|
60
|
+
};
|
|
51
61
|
interface BundlerConfig {
|
|
52
62
|
type: 'pimlico' | 'biconomy';
|
|
53
63
|
apiKey: string;
|
|
@@ -56,7 +66,7 @@ interface PaymasterConfig {
|
|
|
56
66
|
type: 'pimlico' | 'biconomy';
|
|
57
67
|
apiKey: string;
|
|
58
68
|
}
|
|
59
|
-
type OwnerSet = OwnableValidatorConfig | WebauthnValidatorConfig | MultiFactorValidatorConfig;
|
|
69
|
+
type OwnerSet = OwnableValidatorConfig | ENSValidatorConfig | WebauthnValidatorConfig | MultiFactorValidatorConfig;
|
|
60
70
|
interface SudoPolicy {
|
|
61
71
|
type: 'sudo';
|
|
62
72
|
}
|
|
@@ -100,10 +110,17 @@ interface Action {
|
|
|
100
110
|
}
|
|
101
111
|
interface Session {
|
|
102
112
|
owners: OwnerSet;
|
|
113
|
+
chain?: Chain;
|
|
103
114
|
policies?: [Policy, ...Policy[]];
|
|
104
115
|
actions?: [Action, ...Action[]];
|
|
116
|
+
signing?: {
|
|
117
|
+
allowedContent: {
|
|
118
|
+
domainSeparator: string;
|
|
119
|
+
contentName: string[];
|
|
120
|
+
}[];
|
|
121
|
+
policies?: [Policy, ...Policy[]];
|
|
122
|
+
};
|
|
105
123
|
salt?: Hex;
|
|
106
|
-
chain?: Chain;
|
|
107
124
|
}
|
|
108
125
|
interface Recovery {
|
|
109
126
|
guardians: Account[];
|
|
@@ -132,6 +149,11 @@ interface RhinestoneSDKConfig {
|
|
|
132
149
|
* Optional orchestrator URL override for internal testing - do not use
|
|
133
150
|
*/
|
|
134
151
|
endpointUrl?: string;
|
|
152
|
+
/**
|
|
153
|
+
* @internal
|
|
154
|
+
* Optional intent executor address override for internal testing - do not use
|
|
155
|
+
*/
|
|
156
|
+
useDevContracts?: boolean;
|
|
135
157
|
}
|
|
136
158
|
type RhinestoneConfig = RhinestoneAccountConfig & RhinestoneSDKConfig;
|
|
137
159
|
type TokenSymbol = 'ETH' | 'WETH' | 'USDC' | 'USDT';
|
|
@@ -198,6 +220,7 @@ type SignerSet = OwnerSignerSet | SessionSignerSet | GuardiansSignerSet;
|
|
|
198
220
|
interface BaseTransaction {
|
|
199
221
|
calls: CallInput[];
|
|
200
222
|
tokenRequests?: TokenRequest[];
|
|
223
|
+
recipient?: OrchestratorAccount;
|
|
201
224
|
gasLimit?: bigint;
|
|
202
225
|
signers?: SignerSet;
|
|
203
226
|
sponsored?: boolean;
|
|
@@ -228,5 +251,5 @@ interface UserOperationTransaction {
|
|
|
228
251
|
chain: Chain;
|
|
229
252
|
}
|
|
230
253
|
type Transaction = SameChainTransaction | CrossChainTransaction;
|
|
231
|
-
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, };
|
|
254
|
+
export type { AccountType, RhinestoneAccountConfig, RhinestoneSDKConfig, RhinestoneConfig, AccountProviderConfig, ProviderConfig, BundlerConfig, PaymasterConfig, Transaction, UserOperationTransaction, TokenSymbol, CalldataInput, LazyCallInput, CallInput, CallResolveContext, Call, TokenRequest, SourceAssetInput, OwnerSet, OwnableValidatorConfig, ENSValidatorConfig, WebauthnValidatorConfig, MultiFactorValidatorConfig, SignerSet, Session, Recovery, Policy, UniversalActionPolicyParamCondition, };
|
|
232
255
|
//# sourceMappingURL=types.d.ts.map
|