@trustware/sdk-staging 1.1.16-staging.1 → 1.1.16-staging.3
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/README.md +40 -32
- package/dist/constants.cjs +1 -1
- package/dist/constants.mjs +1 -1
- package/dist/{core-BZYVv-Vo.d.ts → core-B31ElTB8.d.ts} +30 -6
- package/dist/{core-EpQvLUSx.d.cts → core-Bp73X3Mp.d.cts} +30 -6
- package/dist/core.cjs +52 -36
- package/dist/core.cjs.map +1 -1
- package/dist/core.d.cts +1 -1
- package/dist/core.d.ts +1 -1
- package/dist/core.mjs +51 -36
- package/dist/core.mjs.map +1 -1
- package/dist/index.cjs +64 -37
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +63 -37
- package/dist/index.mjs.map +1 -1
- package/dist/smart-account.cjs +1 -1
- package/dist/smart-account.cjs.map +1 -1
- package/dist/smart-account.mjs +1 -1
- package/dist/smart-account.mjs.map +1 -1
- package/dist/wallet.cjs +1 -1
- package/dist/wallet.cjs.map +1 -1
- package/dist/wallet.mjs +1 -1
- package/dist/wallet.mjs.map +1 -1
- package/dist/widget.cjs +62 -37
- package/dist/widget.cjs.map +1 -1
- package/dist/widget.mjs +62 -37
- package/dist/widget.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -108,39 +108,41 @@ export function App() {
|
|
|
108
108
|
keyed on `mode` — `routes` is only required in the default `"deposit"` mode:
|
|
109
109
|
|
|
110
110
|
```ts
|
|
111
|
-
type TrustwareConfigOptions =
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
111
|
+
type TrustwareConfigOptions =
|
|
112
|
+
| {
|
|
113
|
+
apiKey: string;
|
|
114
|
+
mode?: "deposit"; // default, omit this field entirely for a normal deposit/top-up widget
|
|
115
|
+
routes: {
|
|
116
|
+
toChain: string;
|
|
117
|
+
toToken: string;
|
|
118
|
+
fromToken?: string;
|
|
119
|
+
fromChain?: string;
|
|
120
|
+
fromAddress?: string;
|
|
121
|
+
toAddress?: string;
|
|
122
|
+
defaultSlippage?: number;
|
|
123
|
+
options?: {
|
|
124
|
+
routeRefreshMs?: number;
|
|
125
|
+
fixedFromAmount?: string | number;
|
|
126
|
+
minAmountOut?: string | number;
|
|
127
|
+
maxAmountOut?: string | number;
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
autoDetectProvider?: boolean;
|
|
131
|
+
theme?: "light" | "dark" | "system"; // TrustwareTheme
|
|
132
|
+
messages?: Partial<TrustwareWidgetMessages>;
|
|
133
|
+
retry?: RetryConfig;
|
|
134
|
+
walletConnect?: WalletConnectConfig;
|
|
135
|
+
features?: FeatureFlags;
|
|
136
|
+
onError?: (error: TrustwareError) => void;
|
|
137
|
+
onSuccess?: (transaction: Transaction) => void;
|
|
138
|
+
onEvent?: (event: TrustwareEvent) => void;
|
|
139
|
+
}
|
|
140
|
+
| {
|
|
141
|
+
apiKey: string;
|
|
142
|
+
mode: "swap"; // swap widget — from/to chain+token are chosen entirely in-widget
|
|
143
|
+
routes?: Partial<TrustwareConfigOptions["routes"]>; // optional, not required
|
|
144
|
+
// ...same common fields as above
|
|
127
145
|
};
|
|
128
|
-
};
|
|
129
|
-
autoDetectProvider?: boolean;
|
|
130
|
-
theme?: "light" | "dark" | "system"; // TrustwareTheme
|
|
131
|
-
messages?: Partial<TrustwareWidgetMessages>;
|
|
132
|
-
retry?: RetryConfig;
|
|
133
|
-
walletConnect?: WalletConnectConfig;
|
|
134
|
-
features?: FeatureFlags;
|
|
135
|
-
onError?: (error: TrustwareError) => void;
|
|
136
|
-
onSuccess?: (transaction: Transaction) => void;
|
|
137
|
-
onEvent?: (event: TrustwareEvent) => void;
|
|
138
|
-
} | {
|
|
139
|
-
apiKey: string;
|
|
140
|
-
mode: "swap"; // swap widget — from/to chain+token are chosen entirely in-widget
|
|
141
|
-
routes?: Partial<TrustwareConfigOptions["routes"]>; // optional, not required
|
|
142
|
-
// ...same common fields as above
|
|
143
|
-
};
|
|
144
146
|
```
|
|
145
147
|
|
|
146
148
|
### Modes
|
|
@@ -412,6 +414,12 @@ whose fees exceed what it delivers, throwing a `RouteError` with code
|
|
|
412
414
|
`fees_exceed_output`. A route the provider did not price in USD is not refused.
|
|
413
415
|
`routeNetUsd(estimate)` / `isValueDestroying(estimate)` expose the same check.
|
|
414
416
|
|
|
417
|
+
An address the backend cannot accept on its chain (wrong EIP-55 checksum, not a
|
|
418
|
+
Solana public key) comes back as a 400 `RouteError` with code `invalid_address`
|
|
419
|
+
and one `rejected` provider outcome per provider. No provider was called; fix
|
|
420
|
+
the request rather than retry it. `validateRouteAddresses` catches the same
|
|
421
|
+
cases client-side before the request is spent.
|
|
422
|
+
|
|
415
423
|
### Provider Context
|
|
416
424
|
|
|
417
425
|
`useTrustware()` returns `{ status, errors, core, emitError, emitSuccess,
|
package/dist/constants.cjs
CHANGED
|
@@ -30,7 +30,7 @@ __export(constants_exports, {
|
|
|
30
30
|
});
|
|
31
31
|
module.exports = __toCommonJS(constants_exports);
|
|
32
32
|
var SDK_NAME = "@trustware/sdk";
|
|
33
|
-
var SDK_VERSION = "1.1.16-staging.
|
|
33
|
+
var SDK_VERSION = "1.1.16-staging.3";
|
|
34
34
|
var API_ROOT = "https://bv-staging-api.trustware.io";
|
|
35
35
|
var GTM_ID = "GTM-TZDGNCXB";
|
|
36
36
|
var API_PREFIX = "/api";
|
package/dist/constants.mjs
CHANGED
|
@@ -123,9 +123,12 @@ declare function assertRouteDeliversValue(route: RoutePlan | undefined): void;
|
|
|
123
123
|
/** One provider's answer, as the routing API reports it. */
|
|
124
124
|
type RouteProviderOutcome = {
|
|
125
125
|
name: string;
|
|
126
|
-
/** "declined" — this provider cannot route the pair; "failed" — it errored
|
|
127
|
-
|
|
128
|
-
|
|
126
|
+
/** "declined" — this provider cannot route the pair; "failed" — it errored;
|
|
127
|
+
* "rejected" — it refused the request before any call because the caller's
|
|
128
|
+
* own input cannot be valid (see RouteRejectionCode). */
|
|
129
|
+
outcome: "declined" | "failed" | "rejected" | (string & {});
|
|
130
|
+
/** Stable machine code; see RouteDeclineCode / RouteFailureCode /
|
|
131
|
+
* RouteRejectionCode. */
|
|
129
132
|
code: string;
|
|
130
133
|
message: string;
|
|
131
134
|
};
|
|
@@ -152,12 +155,25 @@ declare const RouteFailureCode: {
|
|
|
152
155
|
readonly Timeout: "timeout";
|
|
153
156
|
readonly ProviderError: "provider_error";
|
|
154
157
|
};
|
|
158
|
+
/**
|
|
159
|
+
* Codes for a provider that refused the request before any call. The caller's
|
|
160
|
+
* input is the problem, not the pair and not the provider: an address that
|
|
161
|
+
* cannot be valid on its chain (not hex, wrong EIP-55 checksum, not a Solana
|
|
162
|
+
* public key). The backend's validators are shared and deterministic, so one
|
|
163
|
+
* rejection is the verdict whatever the other providers said.
|
|
164
|
+
*/
|
|
165
|
+
declare const RouteRejectionCode: {
|
|
166
|
+
readonly InvalidAddress: "invalid_address";
|
|
167
|
+
};
|
|
155
168
|
/** Top-level verdict for the request as a whole. */
|
|
156
169
|
declare const RouteErrorCode: {
|
|
157
170
|
/** Every provider declined: a negative result, returned as 404. */
|
|
158
171
|
readonly NoRouteAvailable: "no_route_available";
|
|
159
172
|
/** At least one provider failed, so "unroutable" cannot be claimed: 502. */
|
|
160
173
|
readonly ProvidersFailed: "providers_failed";
|
|
174
|
+
/** The caller's address cannot be valid on its chain; no provider was
|
|
175
|
+
* asked. Returned as 400. Fix the request rather than retry it. */
|
|
176
|
+
readonly InvalidAddress: "invalid_address";
|
|
161
177
|
/** A route came back but the SDK refused it: its fees exceed its output.
|
|
162
178
|
* Reached client-side, so `status` is 0. */
|
|
163
179
|
readonly FeesExceedOutput: "fees_exceed_output";
|
|
@@ -175,7 +191,8 @@ declare const RouteErrorCode: {
|
|
|
175
191
|
*/
|
|
176
192
|
declare class RouteError extends Error {
|
|
177
193
|
/** HTTP status: 404 when every provider declined, 502 when one failed,
|
|
178
|
-
*
|
|
194
|
+
* 400 when the caller's address was rejected, 0 when the SDK reached the
|
|
195
|
+
* verdict itself without a response. */
|
|
179
196
|
readonly status: number;
|
|
180
197
|
/** Top-level verdict — see RouteErrorCode. Empty when the API sent none. */
|
|
181
198
|
readonly code: string;
|
|
@@ -189,6 +206,8 @@ declare class RouteError extends Error {
|
|
|
189
206
|
});
|
|
190
207
|
/** True when every provider declined — nobody failed, so the pair is the problem. */
|
|
191
208
|
get isNoRouteAvailable(): boolean;
|
|
209
|
+
/** True when the caller's address was rejected — nothing to retry, fix the request. */
|
|
210
|
+
get isInvalidAddress(): boolean;
|
|
192
211
|
/** The distinct provider codes, e.g. ["amount_too_low", "no_routes"]. */
|
|
193
212
|
get providerCodes(): string[];
|
|
194
213
|
}
|
|
@@ -200,8 +219,13 @@ type RouteErrorFacts = {
|
|
|
200
219
|
codes: string[];
|
|
201
220
|
/** Per-provider outcomes, empty when only the message survived. */
|
|
202
221
|
providers: readonly RouteProviderOutcome[];
|
|
203
|
-
/** True when no provider failed — every one of them declined. */
|
|
222
|
+
/** True when no provider failed or rejected — every one of them declined. */
|
|
204
223
|
allDeclined: boolean;
|
|
224
|
+
/**
|
|
225
|
+
* True when a provider rejected the caller's own input. Outranks the rest:
|
|
226
|
+
* the pair may route fine and no provider failed, the request is wrong.
|
|
227
|
+
*/
|
|
228
|
+
rejected: boolean;
|
|
205
229
|
/**
|
|
206
230
|
* The smallest amount a provider said it would accept, when one said so.
|
|
207
231
|
* Both spellings are covered: Squid's own "Minimum swap amount for this route
|
|
@@ -324,4 +348,4 @@ declare const Trustware: {
|
|
|
324
348
|
};
|
|
325
349
|
type TrustwareCore = typeof Trustware;
|
|
326
350
|
|
|
327
|
-
export { RouteDeclineCode as R, Trustware as T, RouteError as a, RouteErrorCode as b, type RouteErrorFacts as c, RouteFailureCode as d, type RouteProviderOutcome as e,
|
|
351
|
+
export { RouteDeclineCode as R, Trustware as T, RouteError as a, RouteErrorCode as b, type RouteErrorFacts as c, RouteFailureCode as d, type RouteProviderOutcome as e, RouteRejectionCode as f, type TrustwareCore as g, assertRouteDeliversValue as h, formatMinimum as i, isRouteError as j, isValueDestroying as k, validateBtcAddress as l, validateCosmosAddress as m, validateEvmAddress as n, validateRouteAddresses as o, parseRouteError as p, validateSeiAddress as q, routeNetUsd as r, validateSolanaAddress as s, validateAddressForChain as v };
|
|
@@ -123,9 +123,12 @@ declare function assertRouteDeliversValue(route: RoutePlan | undefined): void;
|
|
|
123
123
|
/** One provider's answer, as the routing API reports it. */
|
|
124
124
|
type RouteProviderOutcome = {
|
|
125
125
|
name: string;
|
|
126
|
-
/** "declined" — this provider cannot route the pair; "failed" — it errored
|
|
127
|
-
|
|
128
|
-
|
|
126
|
+
/** "declined" — this provider cannot route the pair; "failed" — it errored;
|
|
127
|
+
* "rejected" — it refused the request before any call because the caller's
|
|
128
|
+
* own input cannot be valid (see RouteRejectionCode). */
|
|
129
|
+
outcome: "declined" | "failed" | "rejected" | (string & {});
|
|
130
|
+
/** Stable machine code; see RouteDeclineCode / RouteFailureCode /
|
|
131
|
+
* RouteRejectionCode. */
|
|
129
132
|
code: string;
|
|
130
133
|
message: string;
|
|
131
134
|
};
|
|
@@ -152,12 +155,25 @@ declare const RouteFailureCode: {
|
|
|
152
155
|
readonly Timeout: "timeout";
|
|
153
156
|
readonly ProviderError: "provider_error";
|
|
154
157
|
};
|
|
158
|
+
/**
|
|
159
|
+
* Codes for a provider that refused the request before any call. The caller's
|
|
160
|
+
* input is the problem, not the pair and not the provider: an address that
|
|
161
|
+
* cannot be valid on its chain (not hex, wrong EIP-55 checksum, not a Solana
|
|
162
|
+
* public key). The backend's validators are shared and deterministic, so one
|
|
163
|
+
* rejection is the verdict whatever the other providers said.
|
|
164
|
+
*/
|
|
165
|
+
declare const RouteRejectionCode: {
|
|
166
|
+
readonly InvalidAddress: "invalid_address";
|
|
167
|
+
};
|
|
155
168
|
/** Top-level verdict for the request as a whole. */
|
|
156
169
|
declare const RouteErrorCode: {
|
|
157
170
|
/** Every provider declined: a negative result, returned as 404. */
|
|
158
171
|
readonly NoRouteAvailable: "no_route_available";
|
|
159
172
|
/** At least one provider failed, so "unroutable" cannot be claimed: 502. */
|
|
160
173
|
readonly ProvidersFailed: "providers_failed";
|
|
174
|
+
/** The caller's address cannot be valid on its chain; no provider was
|
|
175
|
+
* asked. Returned as 400. Fix the request rather than retry it. */
|
|
176
|
+
readonly InvalidAddress: "invalid_address";
|
|
161
177
|
/** A route came back but the SDK refused it: its fees exceed its output.
|
|
162
178
|
* Reached client-side, so `status` is 0. */
|
|
163
179
|
readonly FeesExceedOutput: "fees_exceed_output";
|
|
@@ -175,7 +191,8 @@ declare const RouteErrorCode: {
|
|
|
175
191
|
*/
|
|
176
192
|
declare class RouteError extends Error {
|
|
177
193
|
/** HTTP status: 404 when every provider declined, 502 when one failed,
|
|
178
|
-
*
|
|
194
|
+
* 400 when the caller's address was rejected, 0 when the SDK reached the
|
|
195
|
+
* verdict itself without a response. */
|
|
179
196
|
readonly status: number;
|
|
180
197
|
/** Top-level verdict — see RouteErrorCode. Empty when the API sent none. */
|
|
181
198
|
readonly code: string;
|
|
@@ -189,6 +206,8 @@ declare class RouteError extends Error {
|
|
|
189
206
|
});
|
|
190
207
|
/** True when every provider declined — nobody failed, so the pair is the problem. */
|
|
191
208
|
get isNoRouteAvailable(): boolean;
|
|
209
|
+
/** True when the caller's address was rejected — nothing to retry, fix the request. */
|
|
210
|
+
get isInvalidAddress(): boolean;
|
|
192
211
|
/** The distinct provider codes, e.g. ["amount_too_low", "no_routes"]. */
|
|
193
212
|
get providerCodes(): string[];
|
|
194
213
|
}
|
|
@@ -200,8 +219,13 @@ type RouteErrorFacts = {
|
|
|
200
219
|
codes: string[];
|
|
201
220
|
/** Per-provider outcomes, empty when only the message survived. */
|
|
202
221
|
providers: readonly RouteProviderOutcome[];
|
|
203
|
-
/** True when no provider failed — every one of them declined. */
|
|
222
|
+
/** True when no provider failed or rejected — every one of them declined. */
|
|
204
223
|
allDeclined: boolean;
|
|
224
|
+
/**
|
|
225
|
+
* True when a provider rejected the caller's own input. Outranks the rest:
|
|
226
|
+
* the pair may route fine and no provider failed, the request is wrong.
|
|
227
|
+
*/
|
|
228
|
+
rejected: boolean;
|
|
205
229
|
/**
|
|
206
230
|
* The smallest amount a provider said it would accept, when one said so.
|
|
207
231
|
* Both spellings are covered: Squid's own "Minimum swap amount for this route
|
|
@@ -324,4 +348,4 @@ declare const Trustware: {
|
|
|
324
348
|
};
|
|
325
349
|
type TrustwareCore = typeof Trustware;
|
|
326
350
|
|
|
327
|
-
export { RouteDeclineCode as R, Trustware as T, RouteError as a, RouteErrorCode as b, type RouteErrorFacts as c, RouteFailureCode as d, type RouteProviderOutcome as e,
|
|
351
|
+
export { RouteDeclineCode as R, Trustware as T, RouteError as a, RouteErrorCode as b, type RouteErrorFacts as c, RouteFailureCode as d, type RouteProviderOutcome as e, RouteRejectionCode as f, type TrustwareCore as g, assertRouteDeliversValue as h, formatMinimum as i, isRouteError as j, isValueDestroying as k, validateBtcAddress as l, validateCosmosAddress as m, validateEvmAddress as n, validateRouteAddresses as o, parseRouteError as p, validateSeiAddress as q, routeNetUsd as r, validateSolanaAddress as s, validateAddressForChain as v };
|
package/dist/core.cjs
CHANGED
|
@@ -83,7 +83,7 @@ var init_constants = __esm({
|
|
|
83
83
|
"src/constants.ts"() {
|
|
84
84
|
"use strict";
|
|
85
85
|
SDK_NAME = "@trustware/sdk";
|
|
86
|
-
SDK_VERSION = "1.1.16-staging.
|
|
86
|
+
SDK_VERSION = "1.1.16-staging.3";
|
|
87
87
|
API_ROOT = "https://bv-staging-api.trustware.io";
|
|
88
88
|
API_PREFIX = "/api";
|
|
89
89
|
WALLETCONNECT_PROJECT_ID = "72ea74c400f5111d43aea638d7d83a24";
|
|
@@ -4105,10 +4105,12 @@ function routeErrorFromResponse(status, body, fallbackMessage) {
|
|
|
4105
4105
|
}
|
|
4106
4106
|
function parseRouteError(raw) {
|
|
4107
4107
|
if (isRouteError(raw) && raw.providers.length > 0) {
|
|
4108
|
+
const rejected = raw.providers.some((p) => p.outcome === "rejected");
|
|
4108
4109
|
return {
|
|
4109
4110
|
codes: providerCodes(raw.providers),
|
|
4110
4111
|
providers: raw.providers,
|
|
4111
|
-
allDeclined: raw.providers.every((p) => p.outcome !== "failed"),
|
|
4112
|
+
allDeclined: !rejected && raw.providers.every((p) => p.outcome !== "failed"),
|
|
4113
|
+
rejected,
|
|
4112
4114
|
minimum: firstMinimum(raw.providers.map((p) => p.message))
|
|
4113
4115
|
};
|
|
4114
4116
|
}
|
|
@@ -4123,6 +4125,7 @@ function parseRouteError(raw) {
|
|
|
4123
4125
|
codes,
|
|
4124
4126
|
providers: [],
|
|
4125
4127
|
allDeclined: !codes.some((code) => failureCodes.includes(code)),
|
|
4128
|
+
rejected: false,
|
|
4126
4129
|
minimum: firstMinimum([text])
|
|
4127
4130
|
};
|
|
4128
4131
|
}
|
|
@@ -4172,7 +4175,7 @@ function formatMinimum(minimum) {
|
|
|
4172
4175
|
if (minimum.symbol.toUpperCase() === "USD") return `$${minimum.amount}`;
|
|
4173
4176
|
return `${minimum.amount} ${minimum.symbol}`;
|
|
4174
4177
|
}
|
|
4175
|
-
var RouteDeclineCode, RouteFailureCode, RouteErrorCode, ALL_PROVIDER_CODES, RouteError, MAX_ROUTE_ERROR_TEXT, ROUTE_SUMMARIES;
|
|
4178
|
+
var RouteDeclineCode, RouteFailureCode, RouteRejectionCode, RouteErrorCode, ALL_PROVIDER_CODES, RouteError, MAX_ROUTE_ERROR_TEXT, ROUTE_SUMMARIES;
|
|
4176
4179
|
var init_routeError = __esm({
|
|
4177
4180
|
"src/core/routeError.ts"() {
|
|
4178
4181
|
"use strict";
|
|
@@ -4194,18 +4197,25 @@ var init_routeError = __esm({
|
|
|
4194
4197
|
Timeout: "timeout",
|
|
4195
4198
|
ProviderError: "provider_error"
|
|
4196
4199
|
};
|
|
4200
|
+
RouteRejectionCode = {
|
|
4201
|
+
InvalidAddress: "invalid_address"
|
|
4202
|
+
};
|
|
4197
4203
|
RouteErrorCode = {
|
|
4198
4204
|
/** Every provider declined: a negative result, returned as 404. */
|
|
4199
4205
|
NoRouteAvailable: "no_route_available",
|
|
4200
4206
|
/** At least one provider failed, so "unroutable" cannot be claimed: 502. */
|
|
4201
4207
|
ProvidersFailed: "providers_failed",
|
|
4208
|
+
/** The caller's address cannot be valid on its chain; no provider was
|
|
4209
|
+
* asked. Returned as 400. Fix the request rather than retry it. */
|
|
4210
|
+
InvalidAddress: "invalid_address",
|
|
4202
4211
|
/** A route came back but the SDK refused it: its fees exceed its output.
|
|
4203
4212
|
* Reached client-side, so `status` is 0. */
|
|
4204
4213
|
FeesExceedOutput: "fees_exceed_output"
|
|
4205
4214
|
};
|
|
4206
4215
|
ALL_PROVIDER_CODES = [
|
|
4207
4216
|
...Object.values(RouteDeclineCode),
|
|
4208
|
-
...Object.values(RouteFailureCode)
|
|
4217
|
+
...Object.values(RouteFailureCode),
|
|
4218
|
+
...Object.values(RouteRejectionCode)
|
|
4209
4219
|
];
|
|
4210
4220
|
RouteError = class extends Error {
|
|
4211
4221
|
constructor(params) {
|
|
@@ -4219,6 +4229,10 @@ var init_routeError = __esm({
|
|
|
4219
4229
|
get isNoRouteAvailable() {
|
|
4220
4230
|
return this.code === RouteErrorCode.NoRouteAvailable || this.status === 404;
|
|
4221
4231
|
}
|
|
4232
|
+
/** True when the caller's address was rejected — nothing to retry, fix the request. */
|
|
4233
|
+
get isInvalidAddress() {
|
|
4234
|
+
return this.code === RouteErrorCode.InvalidAddress;
|
|
4235
|
+
}
|
|
4222
4236
|
/** The distinct provider codes, e.g. ["amount_too_low", "no_routes"]. */
|
|
4223
4237
|
get providerCodes() {
|
|
4224
4238
|
return providerCodes(this.providers);
|
|
@@ -4648,37 +4662,42 @@ var init_popularChains = __esm({
|
|
|
4648
4662
|
name: "Ethereum",
|
|
4649
4663
|
chainId: 1
|
|
4650
4664
|
},
|
|
4651
|
-
{
|
|
4652
|
-
name: "BSC",
|
|
4653
|
-
chainId: 56
|
|
4654
|
-
},
|
|
4655
4665
|
{
|
|
4656
4666
|
name: "Solana"
|
|
4657
4667
|
},
|
|
4658
4668
|
{
|
|
4659
|
-
name: "
|
|
4669
|
+
name: "Base",
|
|
4670
|
+
chainId: 8453
|
|
4660
4671
|
},
|
|
4661
4672
|
{
|
|
4662
|
-
name: "
|
|
4673
|
+
name: "BSC",
|
|
4674
|
+
chainId: 56
|
|
4663
4675
|
},
|
|
4664
4676
|
{
|
|
4665
|
-
name: "
|
|
4666
|
-
chainId: 8453
|
|
4677
|
+
name: "Tron"
|
|
4667
4678
|
},
|
|
4668
4679
|
{
|
|
4669
|
-
name: "
|
|
4680
|
+
name: "Bitcoin"
|
|
4670
4681
|
},
|
|
4671
4682
|
{
|
|
4672
|
-
name: "
|
|
4683
|
+
name: "Hyperliquid L1"
|
|
4673
4684
|
},
|
|
4674
4685
|
{
|
|
4675
4686
|
name: "Arbitrum",
|
|
4676
4687
|
chainId: 42161
|
|
4677
4688
|
},
|
|
4689
|
+
{
|
|
4690
|
+
name: "Monad",
|
|
4691
|
+
chainId: 143
|
|
4692
|
+
},
|
|
4678
4693
|
{
|
|
4679
4694
|
name: "Polygon",
|
|
4680
4695
|
chainId: 137
|
|
4681
4696
|
},
|
|
4697
|
+
{
|
|
4698
|
+
name: "Robinhood Chain",
|
|
4699
|
+
chainId: 4663
|
|
4700
|
+
},
|
|
4682
4701
|
{
|
|
4683
4702
|
name: "Plasma",
|
|
4684
4703
|
chainId: 9745
|
|
@@ -4690,10 +4709,6 @@ var init_popularChains = __esm({
|
|
|
4690
4709
|
{
|
|
4691
4710
|
name: "Sui"
|
|
4692
4711
|
},
|
|
4693
|
-
{
|
|
4694
|
-
name: "Monad",
|
|
4695
|
-
chainId: 143
|
|
4696
|
-
},
|
|
4697
4712
|
{
|
|
4698
4713
|
name: "OP Mainnet",
|
|
4699
4714
|
chainId: 10
|
|
@@ -4706,18 +4721,13 @@ var init_popularChains = __esm({
|
|
|
4706
4721
|
name: "Stellar"
|
|
4707
4722
|
},
|
|
4708
4723
|
{
|
|
4709
|
-
name: "
|
|
4724
|
+
name: "Anubis"
|
|
4710
4725
|
},
|
|
4711
4726
|
{
|
|
4712
|
-
name: "
|
|
4713
|
-
},
|
|
4714
|
-
{
|
|
4715
|
-
name: "Mantle",
|
|
4716
|
-
chainId: 5e3
|
|
4727
|
+
name: "Provenance"
|
|
4717
4728
|
},
|
|
4718
4729
|
{
|
|
4719
|
-
name: "
|
|
4720
|
-
chainId: 3073
|
|
4730
|
+
name: "Starknet"
|
|
4721
4731
|
},
|
|
4722
4732
|
{
|
|
4723
4733
|
name: "Ink",
|
|
@@ -4727,31 +4737,35 @@ var init_popularChains = __esm({
|
|
|
4727
4737
|
name: "Flare"
|
|
4728
4738
|
},
|
|
4729
4739
|
{
|
|
4730
|
-
name: "
|
|
4740
|
+
name: "X Layer"
|
|
4731
4741
|
},
|
|
4732
4742
|
{
|
|
4733
|
-
name: "
|
|
4734
|
-
chainId: 4326
|
|
4743
|
+
name: "Near"
|
|
4735
4744
|
},
|
|
4736
4745
|
{
|
|
4737
|
-
name: "
|
|
4738
|
-
chainId:
|
|
4746
|
+
name: "Gnosis",
|
|
4747
|
+
chainId: 100
|
|
4748
|
+
},
|
|
4749
|
+
{
|
|
4750
|
+
name: "Mantle",
|
|
4751
|
+
chainId: 5e3
|
|
4739
4752
|
},
|
|
4740
4753
|
{
|
|
4741
|
-
name: "
|
|
4754
|
+
name: "Stacks"
|
|
4742
4755
|
},
|
|
4743
4756
|
{
|
|
4744
|
-
name: "
|
|
4757
|
+
name: "Morph"
|
|
4745
4758
|
},
|
|
4746
4759
|
{
|
|
4747
|
-
name: "
|
|
4760
|
+
name: "Rootstock",
|
|
4761
|
+
chainId: 30
|
|
4748
4762
|
},
|
|
4749
4763
|
{
|
|
4750
|
-
name: "
|
|
4764
|
+
name: "Mixin"
|
|
4751
4765
|
}
|
|
4752
4766
|
],
|
|
4753
4767
|
popularLimit: 8,
|
|
4754
|
-
updatedAt: "2026-
|
|
4768
|
+
updatedAt: "2026-09-02",
|
|
4755
4769
|
source: "https://api.llama.fi/v2/chains \u2014 sorted by TVL"
|
|
4756
4770
|
};
|
|
4757
4771
|
}
|
|
@@ -7340,6 +7354,7 @@ __export(core_exports, {
|
|
|
7340
7354
|
RouteError: () => RouteError,
|
|
7341
7355
|
RouteErrorCode: () => RouteErrorCode,
|
|
7342
7356
|
RouteFailureCode: () => RouteFailureCode,
|
|
7357
|
+
RouteRejectionCode: () => RouteRejectionCode,
|
|
7343
7358
|
Trustware: () => Trustware,
|
|
7344
7359
|
assertRouteDeliversValue: () => assertRouteDeliversValue,
|
|
7345
7360
|
assertValidPostHook: () => assertValidPostHook,
|
|
@@ -7362,6 +7377,7 @@ init_core2();
|
|
|
7362
7377
|
RouteError,
|
|
7363
7378
|
RouteErrorCode,
|
|
7364
7379
|
RouteFailureCode,
|
|
7380
|
+
RouteRejectionCode,
|
|
7365
7381
|
Trustware,
|
|
7366
7382
|
assertRouteDeliversValue,
|
|
7367
7383
|
assertValidPostHook,
|