@elsoul/erpc-sdk 0.6.0 → 0.8.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/index.d.cts CHANGED
@@ -46,11 +46,12 @@ interface RpcBatchCall {
46
46
  type QueryValue = boolean | number | readonly string[] | string | undefined;
47
47
  type Query = Readonly<Record<string, QueryValue>>;
48
48
  interface RestTransportConfig {
49
- readonly apiKey: string;
49
+ readonly apiKey?: string;
50
50
  readonly endpoint: URL;
51
51
  readonly fetch: typeof globalThis.fetch;
52
52
  readonly headers: Readonly<Record<string, string>>;
53
53
  readonly timeoutMs: number;
54
+ readonly unavailableNamespace?: string;
54
55
  }
55
56
  interface RestStreamResponse {
56
57
  readonly response: Response;
@@ -79,6 +80,206 @@ declare class AccountClient {
79
80
  getTokenBalance(options?: RpcSendOptions): Promise<TokenBalance>;
80
81
  }
81
82
 
83
+ type TokenRepresentationKind = "native" | "issued" | "wrapped" | "bridged" | "unclassified";
84
+ type TokenStandard = "native" | "erc20" | "spl-token" | "spl-token-2022";
85
+ type TokenStatus = "active" | "legacy" | "winding-down" | "retired";
86
+ type TokenStableCurrency = "USD" | "EUR" | "JPY" | null;
87
+ interface TokenAsset {
88
+ readonly assetId: string;
89
+ readonly name: string;
90
+ readonly representationKind: TokenRepresentationKind;
91
+ readonly stableCurrency: TokenStableCurrency;
92
+ readonly underlyingAssetId: string | null;
93
+ readonly economicReferenceAssetId: string | null;
94
+ }
95
+ interface TokenDeployment {
96
+ readonly deploymentId: string;
97
+ readonly assetId: string;
98
+ readonly name: string;
99
+ readonly representationKind: TokenRepresentationKind;
100
+ readonly stableCurrency: TokenStableCurrency;
101
+ readonly underlyingAssetId: string | null;
102
+ readonly economicReferenceAssetId: string | null;
103
+ readonly chainId: TokenChainId;
104
+ readonly symbol: string;
105
+ readonly decimals: number;
106
+ readonly standard: TokenStandard;
107
+ readonly address: string | null;
108
+ readonly status: TokenStatus;
109
+ readonly replacedByDeploymentId: string | null;
110
+ }
111
+ interface TokenAlias {
112
+ readonly namespace: string;
113
+ readonly name: string;
114
+ readonly deploymentId: string;
115
+ }
116
+ declare const TOKEN_CATALOG_VERSION: "1.0.0";
117
+ declare const TOKEN_CATALOG_AS_OF_DATE: "2026-09-15";
118
+ declare const TOKEN_CATALOG_CONTENT_DIGEST: "28318f4f6a6bc2cdeef51368eeb17c86685c6f12d1723b0b4dd27f7e54d7235d";
119
+ declare const TOKEN_CHAIN_IDS: {
120
+ readonly ethereumMainnet: "eip155:1";
121
+ readonly solanaMainnet: "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp";
122
+ readonly avalancheCMainnet: "eip155:43114";
123
+ };
124
+ type TokenChainId = (typeof TOKEN_CHAIN_IDS)[keyof typeof TOKEN_CHAIN_IDS];
125
+ declare const tokens: Readonly<{
126
+ readonly avalancheC: {
127
+ readonly AUSD: "deployment-0035";
128
+ readonly AVAX: "deployment-0003";
129
+ readonly DISCOVERED_0A7F98C8752F15EE: "discovered-token-0a7f98c8752f15ee02ce0d801f25df8ff78864a1d70aff7e204f7bdb3f8a0692";
130
+ readonly DISCOVERED_1847342426B765AD: "discovered-token-1847342426b765add3c8b4feb724c6b15121f25097cb7917c967c285ca77e804";
131
+ readonly DISCOVERED_288036A90EE0FA72: "discovered-token-288036a90ee0fa72a2751a78a6934cc6ced9e16de91c97ae8e109e2ee6189bc5";
132
+ readonly DISCOVERED_323D07C442F0D089: "discovered-token-323d07c442f0d089197ae7eea9b3ebb829910177c5b780161a7623aaed5e4371";
133
+ readonly DISCOVERED_9F9965CC065C9BEC: "discovered-token-9f9965cc065c9becf8d2cb58071524baafea37d27fda9bf683a93ea85f2e653d";
134
+ readonly EURC: "deployment-0012";
135
+ readonly EUROP: "deployment-0045";
136
+ readonly GHO: "deployment-0030";
137
+ readonly JOE: "deployment-0059";
138
+ readonly JPYC: "deployment-0039";
139
+ readonly LINK: "deployment-0058";
140
+ readonly USDC: "deployment-0009";
141
+ readonly USDC_E: "deployment-0018";
142
+ readonly USDT: "deployment-0015";
143
+ readonly WAVAX: "deployment-0004";
144
+ };
145
+ readonly ethereum: {
146
+ readonly AAVE: "deployment-0056";
147
+ readonly AUSD: "deployment-0034";
148
+ readonly DAI: "deployment-0019";
149
+ readonly DISCOVERED_054D80A64E1F36A7: "discovered-token-054d80a64e1f36a756129763ca2f1e7a140b50b04c83876ff01dd5fd497a74c5";
150
+ readonly DISCOVERED_611597BD13DAA43D: "discovered-token-611597bd13daa43d01a23caa9cca6a98797c64be7fb5b2677370ddbcdeaf01ec";
151
+ readonly DISCOVERED_69519FD08E31445C: "discovered-token-69519fd08e31445cad84b0c17a5346b7ee9c5692e270602af9308ca6d8943bb6";
152
+ readonly DISCOVERED_B475569F6A15E97A: "discovered-token-b475569f6a15e97ac04e531dd813e9dcc902521c098d60d6ae4d21d53baf1395";
153
+ readonly DISCOVERED_E375086901067FE3: "discovered-token-e375086901067fe3de023bcdc70f1bafca798e1719ed7e676a98f57de3350a07";
154
+ readonly ETH: "deployment-0001";
155
+ readonly EURA: "deployment-0051";
156
+ readonly EURAU: "deployment-0042";
157
+ readonly EURC: "deployment-0011";
158
+ readonly EURCV: "deployment-0040";
159
+ readonly EURE: "deployment-0054";
160
+ readonly EURE_V1: "deployment-0053";
161
+ readonly EUROP: "deployment-0044";
162
+ readonly EURS: "deployment-0052";
163
+ readonly EURT: "deployment-0017";
164
+ readonly FDUSD: "deployment-0031";
165
+ readonly GHO: "deployment-0029";
166
+ readonly GYEN: "deployment-0047";
167
+ readonly JPYC: "deployment-0038";
168
+ readonly LINK: "deployment-0057";
169
+ readonly PYUSD: "deployment-0022";
170
+ readonly RLUSD: "deployment-0033";
171
+ readonly UNI: "deployment-0055";
172
+ readonly USDC: "deployment-0008";
173
+ readonly USDE: "deployment-0028";
174
+ readonly USDG: "deployment-0024";
175
+ readonly USDP: "deployment-0026";
176
+ readonly USDS: "deployment-0020";
177
+ readonly USDT: "deployment-0014";
178
+ readonly WETH: "deployment-0002";
179
+ readonly ZUSD: "deployment-0049";
180
+ };
181
+ readonly solana: {
182
+ readonly AUSD: "deployment-0036";
183
+ readonly EURAU: "deployment-0043";
184
+ readonly EURC: "deployment-0013";
185
+ readonly EURCV: "deployment-0041";
186
+ readonly EUROP: "deployment-0046";
187
+ readonly FDUSD: "deployment-0032";
188
+ readonly GYEN: "deployment-0048";
189
+ readonly JUP: "deployment-0060";
190
+ readonly JUPUSD: "deployment-0037";
191
+ readonly PYUSD: "deployment-0023";
192
+ readonly SOL: "deployment-0005";
193
+ readonly USDC: "deployment-0010";
194
+ readonly USDG: "deployment-0025";
195
+ readonly USDP: "deployment-0027";
196
+ readonly USDS: "deployment-0021";
197
+ readonly USDT: "deployment-0016";
198
+ readonly WSOL: "deployment-0006";
199
+ readonly WSOL_TOKEN_2022: "deployment-0007";
200
+ readonly ZUSD: "deployment-0050";
201
+ };
202
+ }>;
203
+ declare const TOKEN_ASSETS: readonly TokenAsset[];
204
+ declare const TOKEN_DEPLOYMENTS: readonly TokenDeployment[];
205
+ declare const TOKEN_ALIASES: readonly TokenAlias[];
206
+
207
+ /** Stable currencies represented by the catalog's stablecoin metadata. */
208
+ type StableCurrency = 'USD' | 'EUR' | 'JPY';
209
+ interface ListTokenDeploymentsOptions {
210
+ readonly chainId?: TokenChainId;
211
+ readonly stableCurrency?: StableCurrency;
212
+ }
213
+ /**
214
+ * Return an asset by its opaque, exact asset ID.
215
+ *
216
+ * IDs are intentionally treated as opaque strings. No chain or symbol is
217
+ * inferred from the value.
218
+ */
219
+ declare function getTokenAsset(assetId: string): TokenAsset | undefined;
220
+ /** Return a deployment by its opaque, exact deployment ID. */
221
+ declare function getTokenDeployment(deploymentId: string): TokenDeployment | undefined;
222
+ /**
223
+ * List all catalog deployments, optionally restricted by chain and stable
224
+ * currency. Every status remains visible in the result.
225
+ */
226
+ declare function listTokenDeployments(options?: ListTokenDeploymentsOptions): readonly TokenDeployment[];
227
+ /**
228
+ * Find every exact-case symbol match on a chain, ordered by deployment ID.
229
+ */
230
+ declare function findTokenDeploymentsBySymbol(chainId: TokenChainId, symbol: string): readonly TokenDeployment[];
231
+ /**
232
+ * Find a deployment by address. EVM addresses are ASCII hex and are matched
233
+ * case-insensitively; Solana addresses are matched byte-for-byte as strings.
234
+ */
235
+ declare function findTokenDeploymentByAddress(chainId: TokenChainId, address: string): TokenDeployment | undefined;
236
+ /** Find the chain's native deployment. Native deployments use address null. */
237
+ declare function getNativeTokenDeployment(chainId: TokenChainId): TokenDeployment | undefined;
238
+
239
+ type TokenRankingMetric = 'onchain-total-supply-value-native' | 'global-circulating-market-cap-usd';
240
+ type TokenRankingStatus = 'unconfigured' | 'complete' | 'partial';
241
+ interface TokenRankingCoverage {
242
+ readonly chainId: string;
243
+ readonly totalDeployments: number;
244
+ readonly rankedDeployments: number;
245
+ readonly unrankedDeployments: number;
246
+ readonly observedAt: string | null;
247
+ }
248
+ interface TokenRankingMetadata {
249
+ readonly schemaVersion: 1;
250
+ readonly metric: TokenRankingMetric | null;
251
+ readonly asOf: string | null;
252
+ readonly contentDigest: string;
253
+ readonly status: TokenRankingStatus;
254
+ readonly coverage: readonly TokenRankingCoverage[];
255
+ readonly sourceIds: readonly string[];
256
+ }
257
+ interface TokenRanking {
258
+ readonly rank: number;
259
+ readonly chainId: string;
260
+ readonly deploymentIds: readonly string[];
261
+ readonly metric: TokenRankingMetric;
262
+ readonly valueNumerator: string;
263
+ readonly valueDenominator: string;
264
+ readonly quoteCurrency: 'native' | 'USD';
265
+ readonly quoteDeploymentId: string | null;
266
+ readonly observedAt: string;
267
+ readonly sourceId: string;
268
+ readonly sourceAssetId: string | null;
269
+ }
270
+ declare const TOKEN_RANKINGS_METADATA: TokenRankingMetadata;
271
+ declare const TOKEN_RANKINGS: readonly TokenRanking[];
272
+ declare const TOKEN_RANKINGS_CONTENT_DIGEST: string;
273
+ declare const TOKEN_RANKINGS_BY_CHAIN: Readonly<Record<string, readonly TokenRanking[]>>;
274
+
275
+ /**
276
+ * Return the bundled token rankings for an exact chain ID.
277
+ *
278
+ * Rankings are an offline snapshot. An unknown or empty chain ID is a safe,
279
+ * immutable empty result; no chain aliases or network lookups are inferred.
280
+ */
281
+ declare function listTokenRankings(chainId: string): readonly TokenRanking[];
282
+
82
283
  type CloudResourceKind = 'bare-metal' | 'solana-grpc' | 'solana-shredstream' | 'vps';
83
284
  type CloudResourceMode = 'dedicated' | 'direct' | 'shared';
84
285
  /** A credential-free projection of an ERPC Cloud resource. */
@@ -143,13 +344,26 @@ declare const DEFAULT_AVALANCHE_ENDPOINT = "https://ava-rpc.erpc.global";
143
344
  declare const DEFAULT_ACCOUNT_ENDPOINT = "https://solana-rpc.erpc.global";
144
345
  declare const DEFAULT_USER_ENDPOINT = "https://user-api.erpc.global";
145
346
  declare const DEFAULT_TIMEOUT_MS = 30000;
347
+ interface RpcEndpointConfig {
348
+ readonly headers?: Readonly<Record<string, string>>;
349
+ readonly httpUrl: string;
350
+ readonly webSocketUrl?: string;
351
+ }
352
+ interface ResolvedRpcEndpointConfig {
353
+ readonly headers: Readonly<Record<string, string>>;
354
+ readonly httpUrl: URL;
355
+ readonly webSocketUrl?: URL;
356
+ }
146
357
  interface ErpcClientConfig {
147
358
  readonly accountEndpoint?: string;
148
- readonly apiKey: string;
359
+ readonly apiKey?: string;
149
360
  readonly avalancheEndpoint?: string;
361
+ readonly avalancheCRpc?: RpcEndpointConfig;
150
362
  readonly endpoint?: string;
363
+ readonly ethereumRpc?: RpcEndpointConfig;
151
364
  readonly fetch?: typeof globalThis.fetch;
152
365
  readonly headers?: Readonly<Record<string, string>>;
366
+ readonly solanaRpc?: RpcEndpointConfig;
153
367
  readonly timeoutMs?: number;
154
368
  readonly userEndpoint?: string;
155
369
  readonly webSocket?: typeof globalThis.WebSocket;
@@ -227,12 +441,14 @@ declare class PriceClient {
227
441
  }
228
442
 
229
443
  interface HttpTransportConfig {
230
- readonly apiKey: string;
444
+ readonly apiKey?: string;
445
+ readonly direct?: boolean;
231
446
  readonly endpoint: URL;
232
447
  readonly fetch: typeof globalThis.fetch;
233
448
  readonly headers: Readonly<Record<string, string>>;
234
449
  readonly maxBatchSize?: number;
235
450
  readonly timeoutMs: number;
451
+ readonly unavailableNamespace?: string;
236
452
  }
237
453
  declare class HttpJsonRpcTransport {
238
454
  #private;
@@ -932,7 +1148,9 @@ type RpcNotificationListener = (notification: RpcNotification) => void;
932
1148
  interface WebSocketTransportConfig {
933
1149
  readonly endpoint: URL;
934
1150
  readonly maxBatchSize?: number;
1151
+ readonly redactionHeaders?: Readonly<Record<string, string>>;
935
1152
  readonly timeoutMs: number;
1153
+ readonly unavailableNamespace?: string;
936
1154
  readonly webSocket?: typeof globalThis.WebSocket;
937
1155
  }
938
1156
  declare class WebSocketJsonRpcTransport implements JsonRpcTransport {
@@ -984,6 +1202,116 @@ declare class SolanaSubscriptions {
984
1202
  rawSubscribe<TResult = unknown>(subscribeMethod: string, params: readonly unknown[], unsubscribeMethod: string, listener: SubscriptionListener<TResult>): Promise<RpcSubscription>;
985
1203
  }
986
1204
 
1205
+ type SwapQuoteErrorCode = 'SWAP_INVALID_ARGUMENT' | 'SWAP_UNSUPPORTED_CHAIN' | 'SWAP_UNKNOWN_POOL' | 'SWAP_UNKNOWN_TOKEN' | 'SWAP_TOKEN_NOT_ACTIVE' | 'SWAP_UNSUPPORTED_TOKEN_STANDARD' | 'SWAP_UNSUPPORTED_ADAPTER' | 'SWAP_UNSUPPORTED_TOKEN' | 'SWAP_CHAIN_MISMATCH' | 'SWAP_POOL_TOKEN_MISMATCH' | 'SWAP_PROGRAM_MISMATCH' | 'SWAP_INVALID_POOL_STATE' | 'SWAP_STATE_STALE' | 'SWAP_INSUFFICIENT_LIQUIDITY' | 'SWAP_ARITHMETIC';
1206
+ declare const SWAP_QUOTE_ERROR_MESSAGES: Readonly<Record<SwapQuoteErrorCode, string>>;
1207
+ declare class SwapQuoteError extends Error {
1208
+ readonly code: SwapQuoteErrorCode;
1209
+ constructor(code: SwapQuoteErrorCode);
1210
+ }
1211
+ type SwapExecutionErrorCode = 'SWAP_EXECUTION_INVALID_ARGUMENT' | 'SWAP_UNSUPPORTED_EXECUTION' | 'SWAP_PROGRAM_MISMATCH' | 'SWAP_INSUFFICIENT_ALLOWANCE' | 'SWAP_SIMULATION_REVERTED' | 'SWAP_INVALID_SIMULATION';
1212
+ declare const SWAP_EXECUTION_ERROR_MESSAGES: Readonly<Record<SwapExecutionErrorCode, string>>;
1213
+ declare class SwapExecutionError extends Error {
1214
+ readonly code: SwapExecutionErrorCode;
1215
+ constructor(code: SwapExecutionErrorCode);
1216
+ }
1217
+ interface SwapFreshness {
1218
+ readonly maxBlockAgeSeconds?: number;
1219
+ readonly maxBlockLag?: number;
1220
+ readonly maxClockSkewSeconds?: number;
1221
+ }
1222
+ interface ExactInputQuoteRequest {
1223
+ readonly chainId: string;
1224
+ readonly poolDefinitionId: string;
1225
+ readonly inputTokenDeploymentId: string;
1226
+ readonly outputTokenDeploymentId: string;
1227
+ readonly amountIn: string;
1228
+ readonly freshness?: SwapFreshness;
1229
+ }
1230
+ interface ExactInputQuoteResult {
1231
+ readonly quoteKind: 'exact-input';
1232
+ readonly chainId: string;
1233
+ readonly poolDefinitionId: string;
1234
+ readonly dexDeploymentId: string;
1235
+ readonly adapterKind: string;
1236
+ readonly inputTokenDeploymentId: string;
1237
+ readonly outputTokenDeploymentId: string;
1238
+ readonly amountIn: string;
1239
+ readonly amountOut: string;
1240
+ readonly fee: {
1241
+ readonly numerator: string;
1242
+ readonly denominator: string;
1243
+ };
1244
+ readonly snapshot: {
1245
+ readonly kind: 'evm-block';
1246
+ readonly blockNumber: string;
1247
+ readonly blockHash: string;
1248
+ readonly blockTimestamp: string;
1249
+ };
1250
+ readonly tokenCatalogDigest: string;
1251
+ readonly dexCatalogDigest: string;
1252
+ }
1253
+ interface PrepareExactInputSwapRequest extends ExactInputQuoteRequest {
1254
+ readonly sender: string;
1255
+ readonly recipient: string;
1256
+ readonly slippageBps: number;
1257
+ readonly deadline: string;
1258
+ }
1259
+ /** Alias for callers that prefer a shorter execution request name. */
1260
+ type ExactInputSwapRequest = PrepareExactInputSwapRequest;
1261
+ interface ExactInputSwapPathEntry {
1262
+ readonly tokenDeploymentId: string;
1263
+ readonly address: string;
1264
+ readonly standard: 'erc20';
1265
+ readonly representationKind: TokenDeployment['representationKind'];
1266
+ }
1267
+ interface ExactInputSwapPreparation {
1268
+ readonly preparationKind: 'evm-router-v2-exact-input';
1269
+ readonly executionCapabilityId: string;
1270
+ readonly executionCapabilityDigest: string;
1271
+ readonly quote: ExactInputQuoteResult;
1272
+ readonly minimumAmountOut: string;
1273
+ readonly slippageBps: number;
1274
+ readonly deadline: string;
1275
+ readonly recipient: string;
1276
+ readonly path: readonly [ExactInputSwapPathEntry, ExactInputSwapPathEntry];
1277
+ readonly transaction: {
1278
+ readonly kind: 'evm-unsigned-transaction';
1279
+ readonly chainId: string;
1280
+ readonly from: string;
1281
+ readonly to: string;
1282
+ readonly data: string;
1283
+ readonly value: '0';
1284
+ };
1285
+ readonly allowance: {
1286
+ readonly tokenDeploymentId: string;
1287
+ readonly tokenAddress: string;
1288
+ readonly owner: string;
1289
+ readonly spender: string;
1290
+ readonly requiredAmount: string;
1291
+ };
1292
+ }
1293
+ interface ExactInputSwapSimulation {
1294
+ readonly simulationKind: 'evm-call';
1295
+ readonly preparation: ExactInputSwapPreparation;
1296
+ readonly snapshot: ExactInputQuoteResult['snapshot'];
1297
+ readonly currentAllowance: string;
1298
+ readonly amounts: readonly [string, string];
1299
+ readonly amountOut: string;
1300
+ }
1301
+ /** Alias for callers that prefer the method-name result spelling. */
1302
+ type PrepareExactInputSwapResult = ExactInputSwapPreparation;
1303
+ /** Alias for callers that use the generic preparation name. */
1304
+ type SwapPreparation = ExactInputSwapPreparation;
1305
+ /** Alias for callers that prefer the method-name result spelling. */
1306
+ type SimulateExactInputSwapResult = ExactInputSwapSimulation;
1307
+ /** Alias for callers that use the generic simulation name. */
1308
+ type SwapSimulation = ExactInputSwapSimulation;
1309
+ interface SwapClient {
1310
+ readonly quoteExactInput: (request: ExactInputQuoteRequest, options?: RpcSendOptions) => Promise<ExactInputQuoteResult>;
1311
+ readonly prepareExactInputSwap: (request: PrepareExactInputSwapRequest, options?: RpcSendOptions) => Promise<ExactInputSwapPreparation>;
1312
+ readonly simulateExactInputSwap: (request: PrepareExactInputSwapRequest, options?: RpcSendOptions) => Promise<ExactInputSwapSimulation>;
1313
+ }
1314
+
987
1315
  interface MonthlyApiKeyMethodUsage {
988
1316
  readonly count: number;
989
1317
  readonly creditCost: number;
@@ -1042,11 +1370,131 @@ interface ErpcClient {
1042
1370
  readonly ethereum: ErpcEthereumClient;
1043
1371
  readonly price: PriceClient;
1044
1372
  readonly solana: ErpcSolanaClient;
1373
+ readonly swap: SwapClient;
1045
1374
  readonly usage: UsageClient;
1046
1375
  close(): void;
1047
1376
  }
1048
1377
  declare const createErpcClient: (config: ErpcClientConfig) => ErpcClient;
1049
1378
 
1379
+ declare const SWAP_EXECUTION_CAPABILITIES_JSON: "[{\"swapExecutionCapabilityId\":\"swap-execution-0001\",\"chainId\":\"eip155:1\",\"dexDeploymentId\":\"dex-deployment-0001\",\"poolDefinitionId\":\"pool-0001\",\"factoryAddress\":\"0x5c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f\",\"routerAddress\":\"0x7a250d5630b4cf539739df2c5dacb4c659f2488d\",\"routerKind\":\"uniswap-v2-router02\",\"adapterKind\":\"evm-constant-product-v2\",\"token0DeploymentId\":\"deployment-0008\",\"token0Address\":\"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48\",\"token0Standard\":\"erc20\",\"token1DeploymentId\":\"deployment-0002\",\"token1Address\":\"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2\",\"token1Standard\":\"erc20\",\"wrappedNativeTokenDeploymentId\":\"deployment-0002\",\"wrappedNativeTokenAddress\":\"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2\",\"wrappedNativeFunctionSelector\":\"0xad5c4648\",\"functionKind\":\"exact-input-erc20-to-erc20\",\"functionSignature\":\"swapExactTokensForTokens(uint256,uint256,address[],address,uint256)\",\"functionSelector\":\"0x38ed1739\",\"status\":\"active\"},{\"swapExecutionCapabilityId\":\"swap-execution-0002\",\"chainId\":\"eip155:43114\",\"dexDeploymentId\":\"dex-deployment-0002\",\"poolDefinitionId\":\"pool-0002\",\"factoryAddress\":\"0x9ad6c38be94206ca50bb0d90783181662f0cfa10\",\"routerAddress\":\"0x60ae616a2155ee3d9a68541ba4544862310933d4\",\"routerKind\":\"joe-v1-router02\",\"adapterKind\":\"evm-constant-product-v2\",\"token0DeploymentId\":\"deployment-0004\",\"token0Address\":\"0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7\",\"token0Standard\":\"erc20\",\"token1DeploymentId\":\"deployment-0009\",\"token1Address\":\"0xb97ef9ef8734c71904d8002f8b6bc66dd9c48a6e\",\"token1Standard\":\"erc20\",\"wrappedNativeTokenDeploymentId\":\"deployment-0004\",\"wrappedNativeTokenAddress\":\"0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7\",\"wrappedNativeFunctionSelector\":\"0x73b295c2\",\"functionKind\":\"exact-input-erc20-to-erc20\",\"functionSignature\":\"swapExactTokensForTokens(uint256,uint256,address[],address,uint256)\",\"functionSelector\":\"0x38ed1739\",\"status\":\"active\"}]";
1380
+ declare const SWAP_EXECUTION_CAPABILITIES_CONTENT_DIGEST: "84424dc48687e2cb1dd0c9a2446f820efd2c311e71ce5acacfeb6e882811875f";
1381
+ declare const SWAP_EXECUTION_CAPABILITIES_AS_OF_DATE: "2026-09-16";
1382
+ declare const SWAP_EXECUTION_FUNCTION_SIGNATURE: "swapExactTokensForTokens(uint256,uint256,address[],address,uint256)";
1383
+ declare const SWAP_EXECUTION_FUNCTION_SELECTOR: "0x38ed1739";
1384
+
1385
+ type DexStatus = 'active' | 'legacy' | 'winding-down' | 'retired';
1386
+ type DexChainId = string;
1387
+ interface DexDeployment {
1388
+ readonly dexDeploymentId: string;
1389
+ readonly protocolId: string;
1390
+ readonly name: string;
1391
+ readonly chainId: DexChainId;
1392
+ readonly programAddress: string;
1393
+ readonly adapterKind: string;
1394
+ readonly status: DexStatus;
1395
+ readonly replacedByDexDeploymentId: string | null;
1396
+ }
1397
+ interface PoolAdapter {
1398
+ readonly kind: string;
1399
+ readonly feeNumerator: string | null;
1400
+ readonly feeDenominator: string | null;
1401
+ }
1402
+ interface PoolDefinition {
1403
+ readonly poolDefinitionId: string;
1404
+ readonly dexDeploymentId: string;
1405
+ readonly chainId: DexChainId;
1406
+ readonly address: string;
1407
+ readonly token0DeploymentId: string;
1408
+ readonly token1DeploymentId: string;
1409
+ readonly adapter: Readonly<PoolAdapter>;
1410
+ readonly status: DexStatus;
1411
+ readonly replacedByPoolDefinitionId: string | null;
1412
+ }
1413
+ interface NativeWrapDefinition {
1414
+ readonly nativeWrapDefinitionId: string;
1415
+ readonly chainId: DexChainId;
1416
+ readonly nativeTokenDeploymentId: string;
1417
+ readonly wrappedTokenDeploymentId: string;
1418
+ readonly status: DexStatus;
1419
+ }
1420
+ interface DexAlias {
1421
+ readonly namespace: string;
1422
+ readonly name: string;
1423
+ readonly dexDeploymentId: string | null;
1424
+ readonly poolDefinitionId: string | null;
1425
+ }
1426
+ declare const DEX_CATALOG_VERSION: "1.0.0";
1427
+ declare const DEX_CATALOG_AS_OF_DATE: "2026-09-15";
1428
+ declare const DEX_CATALOG_CONTENT_DIGEST: "caccde1f997648dfa045af41d4f8b7f93a051c59d098cc770bd3a2757185aac1";
1429
+ declare const DEX_CHAIN_IDS: {
1430
+ readonly ethereum: "eip155:1";
1431
+ readonly solana: "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp";
1432
+ readonly avalancheC: "eip155:43114";
1433
+ };
1434
+ declare const dexes: {
1435
+ readonly ethereum: {
1436
+ readonly UNISWAP_V2: "dex-deployment-0001";
1437
+ };
1438
+ readonly solana: {
1439
+ readonly ORCA_WHIRLPOOLS: "dex-deployment-0003";
1440
+ readonly RAYDIUM_CLMM: "dex-deployment-0004";
1441
+ };
1442
+ readonly avalancheC: {
1443
+ readonly LFJ_LEGACY: "dex-deployment-0002";
1444
+ };
1445
+ };
1446
+ declare const pools: {
1447
+ readonly ethereum: {
1448
+ readonly DISCOVERED_POOL_1B98A5F24A364E05: "discovered-pool-1b98a5f24a364e05b3d56a9702c3560fc3a71f84b2195c486cfc5f8a956cc0b7";
1449
+ readonly DISCOVERED_POOL_6428A1E5DA293B2E: "discovered-pool-6428a1e5da293b2ef62027ec823ba27532219a40784def3930feee56a623b809";
1450
+ readonly DISCOVERED_POOL_866F890448D13C07: "discovered-pool-866f890448d13c078e217a894ebd47430da5941fe5bff7e382fc095916b4614d";
1451
+ readonly DISCOVERED_POOL_90805F8995C1D0B8: "discovered-pool-90805f8995c1d0b85a45fcd4587928a00066b1f14407baee4e8ed1b634c07804";
1452
+ readonly DISCOVERED_POOL_A7F9E600A86951F4: "discovered-pool-a7f9e600a86951f40472ff779fae467db8a6bbbc6076356058f427e97d4ae429";
1453
+ readonly DISCOVERED_POOL_B8F972F8BAE36C82: "discovered-pool-b8f972f8bae36c82b51ed2aeed070d3ef3e7642e2a708c7d3c0c134e6e1946ed";
1454
+ readonly DISCOVERED_POOL_E702B0CB56528418: "discovered-pool-e702b0cb56528418b4ce089dfc001c6241c94e92aabde72f1a340c4601541780";
1455
+ readonly UNISWAP_V2_USDC_WETH: "pool-0001";
1456
+ };
1457
+ readonly solana: {
1458
+ readonly ORCA_WHIRLPOOLS_WSOL_EURC: "pool-0003";
1459
+ readonly RAYDIUM_CLMM_WSOL_EURC: "pool-0004";
1460
+ };
1461
+ readonly avalancheC: {
1462
+ readonly DISCOVERED_POOL_1568E761C62F7DC5: "discovered-pool-1568e761c62f7dc58207a77f2dc32153805efe03a8d9cce9366ce68efdf276c4";
1463
+ readonly DISCOVERED_POOL_3C1E38D02092D16E: "discovered-pool-3c1e38d02092d16e396d2f3a22b2bfae55246a1c566831d31f211670e45bd562";
1464
+ readonly DISCOVERED_POOL_3F840A40991E755E: "discovered-pool-3f840a40991e755e42d242188bd8deb85cd5b9655308269b00c220f5237710cf";
1465
+ readonly DISCOVERED_POOL_5D7AA6A767A0C6EA: "discovered-pool-5d7aa6a767a0c6ea9ddeb06d1289bd12d85018935d5b25724b165dc8b9832252";
1466
+ readonly DISCOVERED_POOL_9E4ED76F76904A4A: "discovered-pool-9e4ed76f76904a4ae271946bb1a4b2dc7428e343040b05a42707071bbfac9462";
1467
+ readonly DISCOVERED_POOL_A2480F3D4EA5CE12: "discovered-pool-a2480f3d4ea5ce12252126acf64b174b9fe678b0f0fda8936a12fef180ae08cd";
1468
+ readonly DISCOVERED_POOL_ECE9088CF3894443: "discovered-pool-ece9088cf38944438897ff9fb2a1abc6855a687b5a3f0d6ab98dfe06c1a6dfef";
1469
+ readonly DISCOVERED_POOL_FB02E85806CD9079: "discovered-pool-fb02e85806cd907920126af935137b0775a858ddf04a28d7ca144f761fd7579e";
1470
+ readonly LFJ_LEGACY_WAVAX_USDC: "pool-0002";
1471
+ };
1472
+ };
1473
+ declare const DEX_DEPLOYMENTS: ReadonlyArray<Readonly<DexDeployment>>;
1474
+ declare const POOL_DEFINITIONS: ReadonlyArray<Readonly<PoolDefinition>>;
1475
+ declare const NATIVE_WRAP_DEFINITIONS: ReadonlyArray<Readonly<NativeWrapDefinition>>;
1476
+ declare const DEX_ALIASES: ReadonlyArray<Readonly<DexAlias>>;
1477
+
1478
+ type DexNamespace = 'ethereum' | 'solana' | 'avalancheC';
1479
+ interface ListPoolDefinitionsOptions {
1480
+ readonly chainId?: DexChainId;
1481
+ readonly tokenDeploymentId?: string;
1482
+ readonly adapterKind?: string;
1483
+ }
1484
+
1485
+ /** Return a DEX deployment by its exact opaque ID. */
1486
+ declare function getDexDeployment(dexDeploymentId: string): DexDeployment | undefined;
1487
+ /** Return a pool definition by its exact opaque ID. */
1488
+ declare function getPoolDefinition(poolDefinitionId: string): PoolDefinition | undefined;
1489
+ /** Find a pool by its chain-qualified address. */
1490
+ declare function findPoolDefinitionByAddress(chainId: DexChainId, address: string): PoolDefinition | undefined;
1491
+ /** Find all pools for an unordered token pair in stable pool-ID order. */
1492
+ declare function findPoolDefinitionsByPair(chainId: DexChainId, tokenADeploymentId: string, tokenBDeploymentId: string): readonly PoolDefinition[];
1493
+ /** List pool definitions using the optional exact filters. */
1494
+ declare function listPoolDefinitions(options?: ListPoolDefinitionsOptions): readonly PoolDefinition[];
1495
+ /** Return the active or historical native-to-wrapped relationship for a token. */
1496
+ declare function getNativeWrapDefinition(nativeTokenDeploymentId: string): NativeWrapDefinition | undefined;
1497
+
1050
1498
  type CloudCreditAlertLevel = 'critical' | 'normal' | 'suspended' | 'warning';
1051
1499
  interface CloudCredit {
1052
1500
  readonly alertLevel: CloudCreditAlertLevel;
@@ -1078,7 +1526,145 @@ interface ErpcCloudClient {
1078
1526
  declare const createErpcCloudClient: (config: ErpcCloudClientConfig) => ErpcCloudClient;
1079
1527
  type ErpcCloudRequestOptions = RpcSendOptions;
1080
1528
 
1081
- type ErpcErrorCode = 'ERPC_ABORTED' | 'ERPC_BATCH_POLICY' | 'ERPC_CONFIG' | 'ERPC_HTTP' | 'ERPC_INVALID_RESPONSE' | 'ERPC_RPC' | 'ERPC_TIMEOUT' | 'ERPC_TRANSPORT';
1529
+ declare const BRIDGE_CAPABILITIES_JSON: "[{\"bridgeCapabilityId\":\"bridge-mayan-swift-v2-eurc-eth-sol\",\"providerId\":\"mayan-swift-v2\",\"capabilityKind\":\"external-provider-dynamic\",\"sourceChainId\":\"eip155:1\",\"destinationChainId\":\"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp\",\"sourceTokenDeploymentId\":\"deployment-0011\",\"destinationTokenDeploymentId\":\"deployment-0013\",\"sourceTokenAddress\":\"0x1abaea1f7c830bd89acc67ec4af516284b1bc33c\",\"destinationTokenAddress\":\"HzwqbKZw8HxMN6bF2yFZNrht3c2iXXzpKcFu7uBEDKtr\",\"sourceTokenStandard\":\"erc20\",\"destinationTokenStandard\":\"spl-token\",\"sourceTokenDecimals\":6,\"destinationTokenDecimals\":6,\"sourceProviderChainName\":\"ethereum\",\"destinationProviderChainName\":\"solana\",\"sourceProviderChainId\":1,\"destinationProviderChainId\":0,\"sourceWormholeChainId\":2,\"destinationWormholeChainId\":1,\"sourceUsdcDeploymentId\":\"deployment-0008\",\"sourceUsdcAddress\":\"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48\",\"sourceUsdcStandard\":\"erc20\",\"sourceUsdcDecimals\":6,\"swiftContract\":\"0x40ffe85a28dc9993541449464d7529a922142960\",\"forwarderAddress\":\"0x337685fdab40d39bd02028545a4ffa7d287cc3e2\",\"forwarderFunctionSelector\":\"0x30dedc57\",\"jupiterProgramAddress\":null,\"builderEndpoint\":\"https://tx-builder.mayan.finance\",\"explorerEndpoint\":\"https://explorer-api.mayan.finance/v3\",\"dependencies\":[\"mayan-hosted-quote-api\",\"mayan-hosted-transaction-builder\",\"mayan-hosted-source-swap-builder\",\"swift-auction-solvers\",\"relayers\",\"wormhole-guardian-messaging\",\"mayan-explorer-indexer\"],\"status\":\"active\"},{\"bridgeCapabilityId\":\"bridge-mayan-swift-v2-eurc-sol-eth\",\"providerId\":\"mayan-swift-v2\",\"capabilityKind\":\"external-provider-dynamic\",\"sourceChainId\":\"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp\",\"destinationChainId\":\"eip155:1\",\"sourceTokenDeploymentId\":\"deployment-0013\",\"destinationTokenDeploymentId\":\"deployment-0011\",\"sourceTokenAddress\":\"HzwqbKZw8HxMN6bF2yFZNrht3c2iXXzpKcFu7uBEDKtr\",\"destinationTokenAddress\":\"0x1abaea1f7c830bd89acc67ec4af516284b1bc33c\",\"sourceTokenStandard\":\"spl-token\",\"destinationTokenStandard\":\"erc20\",\"sourceTokenDecimals\":6,\"destinationTokenDecimals\":6,\"sourceProviderChainName\":\"solana\",\"destinationProviderChainName\":\"ethereum\",\"sourceProviderChainId\":0,\"destinationProviderChainId\":1,\"sourceWormholeChainId\":1,\"destinationWormholeChainId\":2,\"sourceUsdcDeploymentId\":\"deployment-0010\",\"sourceUsdcAddress\":\"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v\",\"sourceUsdcStandard\":\"spl-token\",\"sourceUsdcDecimals\":6,\"swiftContract\":\"mayan34VedncxdK2XobtvWFDXQASUTBXhUVzt2kKgny\",\"forwarderAddress\":null,\"forwarderFunctionSelector\":null,\"jupiterProgramAddress\":\"JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4\",\"builderEndpoint\":\"https://tx-builder.mayan.finance\",\"explorerEndpoint\":\"https://explorer-api.mayan.finance/v3\",\"dependencies\":[\"mayan-hosted-quote-api\",\"mayan-hosted-transaction-builder\",\"mayan-hosted-source-swap-builder\",\"swift-auction-solvers\",\"relayers\",\"wormhole-guardian-messaging\",\"mayan-explorer-indexer\",\"jupiter-v6-source-swap\"],\"status\":\"active\"}]";
1530
+ declare const BRIDGE_CAPABILITIES_CONTENT_DIGEST: "fe698f99218057f8cb40b3e24421d1d78e4e2cd7508cf6e3eb2457b329e5141b";
1531
+ declare const BRIDGE_CAPABILITIES_AS_OF_DATE: "2026-09-16";
1532
+
1533
+ type BridgeErrorCode = 'BRIDGE_INVALID_ARGUMENT' | 'BRIDGE_UNSUPPORTED_ROUTE' | 'BRIDGE_PROVIDER_AUTH_REQUIRED' | 'BRIDGE_PROVIDER_TRANSPORT' | 'BRIDGE_PROVIDER_HTTP' | 'BRIDGE_PROVIDER_INVALID_RESPONSE' | 'BRIDGE_QUOTE_UNAVAILABLE' | 'BRIDGE_QUOTE_EXPIRED' | 'BRIDGE_QUOTE_MISMATCH' | 'BRIDGE_BUILD_INVALID' | 'BRIDGE_STATUS_NOT_FOUND' | 'BRIDGE_TIMEOUT' | 'BRIDGE_ABORTED';
1534
+ declare const BRIDGE_ERROR_MESSAGES: Readonly<Record<BridgeErrorCode, string>>;
1535
+ declare class BridgeError extends Error {
1536
+ readonly code: BridgeErrorCode;
1537
+ readonly status?: number;
1538
+ constructor(code: BridgeErrorCode, status?: number);
1539
+ }
1540
+ interface MayanSwiftV2BridgeConfig {
1541
+ readonly builderEndpoint?: string;
1542
+ readonly explorerEndpoint?: string;
1543
+ readonly builderApiKey?: string;
1544
+ readonly allowUnauthenticatedBuild?: boolean;
1545
+ readonly minimumQuoteValiditySeconds?: number;
1546
+ readonly timeoutMs?: number;
1547
+ readonly fetch?: typeof globalThis.fetch;
1548
+ }
1549
+ interface BridgeRequestOptions {
1550
+ readonly signal?: AbortSignal;
1551
+ }
1552
+ interface MayanSwiftV2QuoteRequest {
1553
+ readonly sourceChainId: string;
1554
+ readonly destinationChainId: string;
1555
+ readonly sourceTokenDeploymentId: string;
1556
+ readonly destinationTokenDeploymentId: string;
1557
+ readonly amountIn: string;
1558
+ readonly slippageBps: number;
1559
+ }
1560
+ interface MayanSwiftV2SourceSwap {
1561
+ readonly required: true;
1562
+ readonly inputTokenDeploymentId: string;
1563
+ readonly intermediateTokenDeploymentId: string;
1564
+ readonly intermediateTokenAddress: string;
1565
+ readonly intermediateTokenStandard: string;
1566
+ readonly intermediateTokenDecimals: 6;
1567
+ readonly providerMinimumAmount: string;
1568
+ readonly routerKind: 'provider-selected-evm' | 'jupiter-v6';
1569
+ readonly routerAddress: string;
1570
+ }
1571
+ interface MayanSwiftV2Quote {
1572
+ readonly quoteKind: 'mayan-swift-v2';
1573
+ readonly providerId: 'mayan-swift-v2';
1574
+ readonly sourceChainId: string;
1575
+ readonly destinationChainId: string;
1576
+ readonly sourceTokenDeploymentId: string;
1577
+ readonly destinationTokenDeploymentId: string;
1578
+ readonly amountIn: string;
1579
+ readonly expectedAmountOut: string;
1580
+ readonly minimumAmountOut: string;
1581
+ readonly minimumReceived: string;
1582
+ readonly deadline: string;
1583
+ readonly slippageBps: number;
1584
+ readonly quoteId: string;
1585
+ readonly providerSignature: string;
1586
+ readonly sourceSwap: MayanSwiftV2SourceSwap;
1587
+ readonly dependencies: readonly string[];
1588
+ readonly quoteVerification: 'provider-signed-not-locally-verified';
1589
+ readonly rawSignedQuoteJson: string;
1590
+ }
1591
+ type MayanSwiftV2QuoteResult = readonly MayanSwiftV2Quote[];
1592
+ interface MayanEvmUnsignedTransaction {
1593
+ readonly kind: 'evm-unsigned-transaction';
1594
+ readonly chainId: 'eip155:1';
1595
+ readonly from: string;
1596
+ readonly to: string;
1597
+ readonly data: string;
1598
+ readonly value: '0';
1599
+ }
1600
+ interface MayanSolanaUnsignedTransaction {
1601
+ readonly kind: 'solana-v0-unsigned-transaction';
1602
+ readonly chainId: typeof TOKEN_CHAIN_IDS.solanaMainnet;
1603
+ readonly feePayer: string;
1604
+ readonly transactionBase64: string;
1605
+ }
1606
+ type MayanSwiftV2UnsignedTransaction = MayanEvmUnsignedTransaction | MayanSolanaUnsignedTransaction;
1607
+ interface MayanSwiftV2BuildValidation {
1608
+ readonly level: 'structural';
1609
+ readonly quoteSignatureLocallyVerified: false;
1610
+ readonly transactionSemanticsLocallyVerified: false;
1611
+ readonly settlementLocallyVerified: false;
1612
+ }
1613
+ interface MayanSwiftV2Build {
1614
+ readonly buildKind: 'mayan-swift-v2-unsigned';
1615
+ readonly providerId: 'mayan-swift-v2';
1616
+ readonly quote: MayanSwiftV2Quote;
1617
+ readonly sourceChainId: string;
1618
+ readonly destinationChainId: string;
1619
+ readonly transaction: MayanSwiftV2UnsignedTransaction;
1620
+ readonly allowance: {
1621
+ readonly tokenDeploymentId: 'deployment-0011';
1622
+ readonly tokenAddress: string;
1623
+ readonly owner: string;
1624
+ readonly spender: string;
1625
+ readonly requiredAmount: string;
1626
+ } | null;
1627
+ readonly validation: MayanSwiftV2BuildValidation;
1628
+ readonly rawProviderBuildJson: string;
1629
+ }
1630
+ type MayanSwiftV2BuildResult = MayanSwiftV2Build;
1631
+ interface MayanSwiftV2StatusRequest {
1632
+ readonly sourceChainId: string;
1633
+ readonly sourceTransactionHash: string;
1634
+ }
1635
+ interface MayanSwiftV2Status {
1636
+ readonly statusKind: 'mayan-explorer-index';
1637
+ readonly providerId: 'mayan-swift-v2';
1638
+ readonly sourceChainId: string;
1639
+ readonly sourceTransactionHash: string;
1640
+ readonly state: 'in-progress' | 'completed' | 'refunded' | 'unknown';
1641
+ readonly providerClientStatus: string;
1642
+ readonly providerStatus: string | null;
1643
+ readonly statusVerification: 'provider-indexed-not-locally-verified';
1644
+ readonly rawProviderStatusJson: string;
1645
+ }
1646
+ type MayanSwiftV2StatusResult = MayanSwiftV2Status;
1647
+ type BridgeClient = MayanSwiftV2BridgeClient;
1648
+ interface MayanSwiftV2BuildRequest {
1649
+ readonly quote: MayanSwiftV2Quote;
1650
+ readonly swapperAddress: string;
1651
+ readonly destinationAddress: string;
1652
+ readonly refundAddress?: string;
1653
+ }
1654
+ type MayanSwiftV2BuildUnsignedRequest = MayanSwiftV2BuildRequest;
1655
+ interface MayanSwiftV2BridgeClient {
1656
+ quoteExactInput(request: MayanSwiftV2QuoteRequest, options?: BridgeRequestOptions): Promise<readonly MayanSwiftV2Quote[]>;
1657
+ buildUnsigned(request: MayanSwiftV2BuildRequest, options?: BridgeRequestOptions): Promise<MayanSwiftV2Build>;
1658
+ getStatus(request: MayanSwiftV2StatusRequest, options?: BridgeRequestOptions): Promise<MayanSwiftV2Status>;
1659
+ close(): void;
1660
+ }
1661
+ declare class MayanSwiftV2BridgeClient implements MayanSwiftV2BridgeClient {
1662
+ #private;
1663
+ constructor(config?: MayanSwiftV2BridgeConfig);
1664
+ }
1665
+ declare const createMayanSwiftV2BridgeClient: (config?: MayanSwiftV2BridgeConfig) => MayanSwiftV2BridgeClient;
1666
+
1667
+ type ErpcErrorCode = 'ERPC_ABORTED' | 'ERPC_BATCH_POLICY' | 'ERPC_CONFIG' | 'ERPC_HTTP' | 'ERPC_INVALID_RESPONSE' | 'ERPC_NOT_CONFIGURED' | 'ERPC_RPC' | 'ERPC_TIMEOUT' | 'ERPC_TRANSPORT';
1082
1668
  declare class ErpcError extends Error {
1083
1669
  readonly code: ErpcErrorCode;
1084
1670
  constructor(code: ErpcErrorCode, message: string, options?: ErrorOptions);
@@ -1086,6 +1672,10 @@ declare class ErpcError extends Error {
1086
1672
  declare class ErpcConfigError extends ErpcError {
1087
1673
  constructor(message: string);
1088
1674
  }
1675
+ declare class ErpcNotConfiguredError extends ErpcError {
1676
+ readonly namespace: string;
1677
+ constructor(namespace: string);
1678
+ }
1089
1679
  declare class ErpcTransportError extends ErpcError {
1090
1680
  constructor(message: string, options?: ErrorOptions);
1091
1681
  }
@@ -1112,4 +1702,4 @@ declare class ErpcBatchPolicyError extends ErpcError {
1112
1702
  constructor(message: string);
1113
1703
  }
1114
1704
 
1115
- export { AVALANCHE_AVAX_METHODS, AVALANCHE_INDEX_METHODS, AVALANCHE_INFO_METHODS, AVALANCHE_PROPOSER_VM_METHODS, AVALANCHE_P_CHAIN_METHODS, AVALANCHE_X_CHAIN_METHODS, AccountClient, type AddressTransaction, type AddressTransactionPage, type AddressTransactionsOptions, type AddressTransfer, type AddressTransferPage, type AddressTransfersOptions, type AnalyticsTimeBound, type AssetBatchRequest, type AssetListRequest, type AssetRequest, type AvalancheAvaxSchema, type AvalancheClient, type AvalancheEncodingParams, type AvalancheIndexClient, type AvalancheIndexSchema, type AvalancheIndexTransports, type AvalancheInfoSchema, type AvalanchePChainSchema, type AvalancheProposerVmSchema, type AvalancheUtxoParams, type AvalancheXChainSchema, type BinaryUpdate, CloudCatalogClient, type CloudCredit, type CloudCreditAlertLevel, CloudCreditClient, type CloudOffering, type CloudOfferingBilling, type CloudOfferingCompute, type CloudOfferingSolana, type CloudResource, type CloudResourceKind, type CloudResourceMode, type CloudResourceStatus, type CloudResourceStatusBilling, CloudResourcesClient, DEFAULT_ACCOUNT_ENDPOINT, DEFAULT_AVALANCHE_ENDPOINT, DEFAULT_ENDPOINT, DEFAULT_TIMEOUT_MS, DEFAULT_USER_ENDPOINT, ETHEREUM_RPC_METHODS, ETHEREUM_SUBSCRIPTION_METHODS, type EpochSummary, ErpcAbortedError, type ErpcAvalancheClient, ErpcBatchPolicyError, type ErpcClient, type ErpcClientConfig, type ErpcCloudClient, type ErpcCloudClientConfig, type ErpcCloudRequestOptions, ErpcConfigError, ErpcError, type ErpcErrorCode, type ErpcEthereumClient, ErpcHttpError, ErpcInvalidResponseError, ErpcJsonRpcError, type ErpcPlan, type ErpcSolanaClient, ErpcTimeoutError, ErpcTransportError, type EthereumAddress, type EthereumBlockTag, type EthereumClient, type EthereumFilter, type EthereumObject, type EthereumRpcSchema, type EthereumSubscriptionSchema, EthereumSubscriptions, type EthereumTransactionRequest, type Hex, type IndexedAsset, type IndexedAssetList, type IndexedAssetProof, type JsonObject, type JsonPrimitive, type JsonRpcErrorObject, type JsonRpcFailure, type JsonRpcId, type JsonRpcParams, type JsonRpcRequest, type JsonRpcResponse, type JsonRpcSuccess, type JsonRpcTransport, type JsonValue, type LeaderSlot, type LeaderSlotsResult, type MonthlyApiKeyChainUsage, type MonthlyApiKeyMethodUsage, type MonthlyApiKeyUsage, type MonthlyApiKeyUsageEntry, type MonthlyApiKeyUsageParams, type NumericFilter, type ParsedPriceUpdate, PendingRpcBatchRequest, PendingRpcRequest, type PingMeasurement, type PriceAssetType, PriceClient, type PriceEncoding, type PriceFeedMetadata, type PricePoint, type PriceStreamEvent, type PriceStreamOptions, type PriceUpdateOptions, type PriceUpdateResponse, type PriorityFeeEstimate, type ProgramStatsBucket, type ProgramStatsOptions, type PublisherStakeCap, type PublisherStakeCapsResponse, type RpcBatchCall, type RpcMethodSpec, type RpcNamespace, type RpcNamespaceBase, type RpcNotification, type RpcNotificationListener, type RpcParams, type RpcResult, type RpcSendOptions, RpcSubscription, SOLANA_ANALYTICS_METHODS, SOLANA_DAS_METHODS, SOLANA_ENHANCED_SUBSCRIPTION_METHODS, SOLANA_HISTORY_METHODS, SOLANA_LEADER_METHODS, SOLANA_RPC_METHODS, type SlotStatsOptions, type SlotStatsRow, type SolanaAnalyticsSchema, type SolanaClient, type SolanaCommitment, type SolanaConfig, type SolanaContext, type SolanaContextResult, type SolanaDasSchema, type SolanaEncoding, type SolanaEnhancedSubscriptionSchema, type SolanaHistorySchema, type SolanaLeaderSchema, type SolanaRpcSchema, SolanaSubscriptions, type SubscriptionId, type SubscriptionListener, type TokenBalance, type TopProgramRow, type TopProgramsOptions, type TpsBucket, type TpsTimeseriesOptions, UsageClient, type ValidatorInformation, type ValidatorsInformationOptions, type ValidatorsInformationResult, createErpcClient, createErpcCloudClient };
1705
+ export { AVALANCHE_AVAX_METHODS, AVALANCHE_INDEX_METHODS, AVALANCHE_INFO_METHODS, AVALANCHE_PROPOSER_VM_METHODS, AVALANCHE_P_CHAIN_METHODS, AVALANCHE_X_CHAIN_METHODS, AccountClient, type AddressTransaction, type AddressTransactionPage, type AddressTransactionsOptions, type AddressTransfer, type AddressTransferPage, type AddressTransfersOptions, type AnalyticsTimeBound, type AssetBatchRequest, type AssetListRequest, type AssetRequest, type AvalancheAvaxSchema, type AvalancheClient, type AvalancheEncodingParams, type AvalancheIndexClient, type AvalancheIndexSchema, type AvalancheIndexTransports, type AvalancheInfoSchema, type AvalanchePChainSchema, type AvalancheProposerVmSchema, type AvalancheUtxoParams, type AvalancheXChainSchema, BRIDGE_CAPABILITIES_AS_OF_DATE, BRIDGE_CAPABILITIES_CONTENT_DIGEST, BRIDGE_CAPABILITIES_JSON, BRIDGE_ERROR_MESSAGES, type BinaryUpdate, type BridgeClient, BridgeError, type BridgeErrorCode, type BridgeRequestOptions, CloudCatalogClient, type CloudCredit, type CloudCreditAlertLevel, CloudCreditClient, type CloudOffering, type CloudOfferingBilling, type CloudOfferingCompute, type CloudOfferingSolana, type CloudResource, type CloudResourceKind, type CloudResourceMode, type CloudResourceStatus, type CloudResourceStatusBilling, CloudResourcesClient, DEFAULT_ACCOUNT_ENDPOINT, DEFAULT_AVALANCHE_ENDPOINT, DEFAULT_ENDPOINT, DEFAULT_TIMEOUT_MS, DEFAULT_USER_ENDPOINT, DEX_ALIASES, DEX_CATALOG_AS_OF_DATE, DEX_CATALOG_CONTENT_DIGEST, DEX_CATALOG_VERSION, DEX_CHAIN_IDS, DEX_DEPLOYMENTS, type DexAlias, type DexChainId, type DexDeployment, type DexNamespace, type DexStatus, ETHEREUM_RPC_METHODS, ETHEREUM_SUBSCRIPTION_METHODS, type EpochSummary, ErpcAbortedError, type ErpcAvalancheClient, ErpcBatchPolicyError, type ErpcClient, type ErpcClientConfig, type ErpcCloudClient, type ErpcCloudClientConfig, type ErpcCloudRequestOptions, ErpcConfigError, ErpcError, type ErpcErrorCode, type ErpcEthereumClient, ErpcHttpError, ErpcInvalidResponseError, ErpcJsonRpcError, ErpcNotConfiguredError, type ErpcPlan, type ErpcSolanaClient, ErpcTimeoutError, ErpcTransportError, type EthereumAddress, type EthereumBlockTag, type EthereumClient, type EthereumFilter, type EthereumObject, type EthereumRpcSchema, type EthereumSubscriptionSchema, EthereumSubscriptions, type EthereumTransactionRequest, type ExactInputQuoteRequest, type ExactInputQuoteResult, type ExactInputSwapPathEntry, type ExactInputSwapPreparation, type ExactInputSwapRequest, type ExactInputSwapSimulation, type Hex, type IndexedAsset, type IndexedAssetList, type IndexedAssetProof, type JsonObject, type JsonPrimitive, type JsonRpcErrorObject, type JsonRpcFailure, type JsonRpcId, type JsonRpcParams, type JsonRpcRequest, type JsonRpcResponse, type JsonRpcSuccess, type JsonRpcTransport, type JsonValue, type LeaderSlot, type LeaderSlotsResult, type ListPoolDefinitionsOptions, type ListTokenDeploymentsOptions, type MayanEvmUnsignedTransaction, type MayanSolanaUnsignedTransaction, MayanSwiftV2BridgeClient, type MayanSwiftV2BridgeConfig, type MayanSwiftV2Build, type MayanSwiftV2BuildRequest, type MayanSwiftV2BuildResult, type MayanSwiftV2BuildUnsignedRequest, type MayanSwiftV2BuildValidation, type MayanSwiftV2Quote, type MayanSwiftV2QuoteRequest, type MayanSwiftV2QuoteResult, type MayanSwiftV2SourceSwap, type MayanSwiftV2Status, type MayanSwiftV2StatusRequest, type MayanSwiftV2StatusResult, type MayanSwiftV2UnsignedTransaction, type MonthlyApiKeyChainUsage, type MonthlyApiKeyMethodUsage, type MonthlyApiKeyUsage, type MonthlyApiKeyUsageEntry, type MonthlyApiKeyUsageParams, NATIVE_WRAP_DEFINITIONS, type NativeWrapDefinition, type NumericFilter, POOL_DEFINITIONS, type ParsedPriceUpdate, PendingRpcBatchRequest, PendingRpcRequest, type PingMeasurement, type PoolDefinition, type PrepareExactInputSwapRequest, type PrepareExactInputSwapResult, type PriceAssetType, PriceClient, type PriceEncoding, type PriceFeedMetadata, type PricePoint, type PriceStreamEvent, type PriceStreamOptions, type PriceUpdateOptions, type PriceUpdateResponse, type PriorityFeeEstimate, type ProgramStatsBucket, type ProgramStatsOptions, type PublisherStakeCap, type PublisherStakeCapsResponse, type ResolvedRpcEndpointConfig, type RpcBatchCall, type RpcEndpointConfig, type RpcMethodSpec, type RpcNamespace, type RpcNamespaceBase, type RpcNotification, type RpcNotificationListener, type RpcParams, type RpcResult, type RpcSendOptions, RpcSubscription, SOLANA_ANALYTICS_METHODS, SOLANA_DAS_METHODS, SOLANA_ENHANCED_SUBSCRIPTION_METHODS, SOLANA_HISTORY_METHODS, SOLANA_LEADER_METHODS, SOLANA_RPC_METHODS, SWAP_EXECUTION_CAPABILITIES_AS_OF_DATE, SWAP_EXECUTION_CAPABILITIES_CONTENT_DIGEST, SWAP_EXECUTION_CAPABILITIES_JSON, SWAP_EXECUTION_ERROR_MESSAGES, SWAP_EXECUTION_FUNCTION_SELECTOR, SWAP_EXECUTION_FUNCTION_SIGNATURE, SWAP_QUOTE_ERROR_MESSAGES, type SimulateExactInputSwapResult, type SlotStatsOptions, type SlotStatsRow, type SolanaAnalyticsSchema, type SolanaClient, type SolanaCommitment, type SolanaConfig, type SolanaContext, type SolanaContextResult, type SolanaDasSchema, type SolanaEncoding, type SolanaEnhancedSubscriptionSchema, type SolanaHistorySchema, type SolanaLeaderSchema, type SolanaRpcSchema, SolanaSubscriptions, type StableCurrency, type SubscriptionId, type SubscriptionListener, type SwapClient, SwapExecutionError, type SwapExecutionErrorCode, type SwapFreshness, type SwapPreparation, SwapQuoteError, type SwapQuoteErrorCode, type SwapSimulation, TOKEN_ALIASES, TOKEN_ASSETS, TOKEN_CATALOG_AS_OF_DATE, TOKEN_CATALOG_CONTENT_DIGEST, TOKEN_CATALOG_VERSION, TOKEN_CHAIN_IDS, TOKEN_DEPLOYMENTS, TOKEN_RANKINGS, TOKEN_RANKINGS_BY_CHAIN, TOKEN_RANKINGS_CONTENT_DIGEST, TOKEN_RANKINGS_METADATA, type TokenAlias, type TokenAsset, type TokenBalance, type TokenChainId, type TokenDeployment, type TokenRanking, type TokenRankingCoverage, type TokenRankingMetadata, type TokenRankingMetric, type TokenRankingStatus, type TokenRepresentationKind, type TokenStandard, type TokenStatus, type TopProgramRow, type TopProgramsOptions, type TpsBucket, type TpsTimeseriesOptions, UsageClient, type ValidatorInformation, type ValidatorsInformationOptions, type ValidatorsInformationResult, createErpcClient, createErpcCloudClient, createMayanSwiftV2BridgeClient, dexes, findPoolDefinitionByAddress, findPoolDefinitionsByPair, findTokenDeploymentByAddress, findTokenDeploymentsBySymbol, getDexDeployment, getNativeTokenDeployment, getNativeWrapDefinition, getPoolDefinition, getTokenAsset, getTokenDeployment, listPoolDefinitions, listTokenDeployments, listTokenRankings, pools, tokens };