@elsoul/erpc-sdk 0.8.1 → 0.9.1
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/LICENSE +53 -0
- package/README.md +201 -43
- package/dist/index.cjs +1841 -118
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +157 -12
- package/dist/index.d.ts +157 -12
- package/dist/index.js +1841 -119
- package/dist/index.js.map +1 -1
- package/package.json +5 -1
package/dist/index.d.cts
CHANGED
|
@@ -113,13 +113,14 @@ interface TokenAlias {
|
|
|
113
113
|
readonly name: string;
|
|
114
114
|
readonly deploymentId: string;
|
|
115
115
|
}
|
|
116
|
-
declare const TOKEN_CATALOG_VERSION: "1.
|
|
117
|
-
declare const TOKEN_CATALOG_AS_OF_DATE: "2026-09-
|
|
118
|
-
declare const TOKEN_CATALOG_CONTENT_DIGEST: "
|
|
116
|
+
declare const TOKEN_CATALOG_VERSION: "1.1.0";
|
|
117
|
+
declare const TOKEN_CATALOG_AS_OF_DATE: "2026-09-26";
|
|
118
|
+
declare const TOKEN_CATALOG_CONTENT_DIGEST: "cca180df1846def0ec98f4e55b84cc46614c60d7a8c4a91c66dc9715c710ba73";
|
|
119
119
|
declare const TOKEN_CHAIN_IDS: {
|
|
120
120
|
readonly ethereumMainnet: "eip155:1";
|
|
121
121
|
readonly solanaMainnet: "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp";
|
|
122
122
|
readonly avalancheCMainnet: "eip155:43114";
|
|
123
|
+
readonly baseMainnet: "eip155:8453";
|
|
123
124
|
};
|
|
124
125
|
type TokenChainId = (typeof TOKEN_CHAIN_IDS)[keyof typeof TOKEN_CHAIN_IDS];
|
|
125
126
|
declare const tokens: Readonly<{
|
|
@@ -142,6 +143,11 @@ declare const tokens: Readonly<{
|
|
|
142
143
|
readonly USDT: "deployment-0015";
|
|
143
144
|
readonly WAVAX: "deployment-0004";
|
|
144
145
|
};
|
|
146
|
+
readonly base: {
|
|
147
|
+
readonly ETH: "deployment-0061";
|
|
148
|
+
readonly EURC: "deployment-0063";
|
|
149
|
+
readonly USDC: "deployment-0062";
|
|
150
|
+
};
|
|
145
151
|
readonly ethereum: {
|
|
146
152
|
readonly AAVE: "deployment-0056";
|
|
147
153
|
readonly AUSD: "deployment-0034";
|
|
@@ -341,6 +347,7 @@ declare class CloudCatalogClient {
|
|
|
341
347
|
|
|
342
348
|
declare const DEFAULT_ENDPOINT = "https://edge.erpc.global";
|
|
343
349
|
declare const DEFAULT_AVALANCHE_ENDPOINT = "https://ava-rpc.erpc.global";
|
|
350
|
+
declare const DEFAULT_BASE_ENDPOINT = "https://base.erpc.global";
|
|
344
351
|
declare const DEFAULT_ACCOUNT_ENDPOINT = "https://solana-rpc.erpc.global";
|
|
345
352
|
declare const DEFAULT_USER_ENDPOINT = "https://user-api.erpc.global";
|
|
346
353
|
declare const DEFAULT_TIMEOUT_MS = 30000;
|
|
@@ -349,6 +356,11 @@ interface RpcEndpointConfig {
|
|
|
349
356
|
readonly httpUrl: string;
|
|
350
357
|
readonly webSocketUrl?: string;
|
|
351
358
|
}
|
|
359
|
+
/** Caller-owned Base HTTP JSON-RPC endpoint. Base has no WebSocket facade. */
|
|
360
|
+
interface BaseRpcEndpointConfig {
|
|
361
|
+
readonly headers?: Readonly<Record<string, string>>;
|
|
362
|
+
readonly httpUrl: string;
|
|
363
|
+
}
|
|
352
364
|
interface ResolvedRpcEndpointConfig {
|
|
353
365
|
readonly headers: Readonly<Record<string, string>>;
|
|
354
366
|
readonly httpUrl: URL;
|
|
@@ -359,6 +371,8 @@ interface ErpcClientConfig {
|
|
|
359
371
|
readonly apiKey?: string;
|
|
360
372
|
readonly avalancheEndpoint?: string;
|
|
361
373
|
readonly avalancheCRpc?: RpcEndpointConfig;
|
|
374
|
+
readonly baseEndpoint?: string;
|
|
375
|
+
readonly baseRpc?: BaseRpcEndpointConfig;
|
|
362
376
|
readonly endpoint?: string;
|
|
363
377
|
readonly ethereumRpc?: RpcEndpointConfig;
|
|
364
378
|
readonly fetch?: typeof globalThis.fetch;
|
|
@@ -774,6 +788,20 @@ interface AvalancheIndexTransports {
|
|
|
774
788
|
readonly xChainTransactions: HttpJsonRpcTransport;
|
|
775
789
|
}
|
|
776
790
|
|
|
791
|
+
/**
|
|
792
|
+
* Read-only Base JSON-RPC facade.
|
|
793
|
+
*
|
|
794
|
+
* The implementation deliberately selects only the three read methods from
|
|
795
|
+
* the existing EVM namespace. The transport is still shared with the mature
|
|
796
|
+
* Ethereum RPC implementation, while the public Base surface has no raw,
|
|
797
|
+
* batch, subscription, signing, or broadcast entry points.
|
|
798
|
+
*/
|
|
799
|
+
interface BaseReadRpcClient extends Pick<EthereumClient['rpc'], 'endpoint' | 'eth_chainId' | 'eth_getBalance' | 'eth_call'> {
|
|
800
|
+
}
|
|
801
|
+
interface ErpcBaseClient {
|
|
802
|
+
readonly rpc: BaseReadRpcClient;
|
|
803
|
+
}
|
|
804
|
+
|
|
777
805
|
type SolanaCommitment = 'confirmed' | 'finalized' | 'processed';
|
|
778
806
|
type SolanaEncoding = 'base58' | 'base64' | 'base64+zstd' | 'jsonParsed';
|
|
779
807
|
type SolanaConfig = Readonly<Record<string, unknown>>;
|
|
@@ -1367,6 +1395,7 @@ interface ErpcAvalancheClient extends AvalancheClient {
|
|
|
1367
1395
|
interface ErpcClient {
|
|
1368
1396
|
readonly account: AccountClient;
|
|
1369
1397
|
readonly avalanche: ErpcAvalancheClient;
|
|
1398
|
+
readonly base: ErpcBaseClient;
|
|
1370
1399
|
readonly ethereum: ErpcEthereumClient;
|
|
1371
1400
|
readonly price: PriceClient;
|
|
1372
1401
|
readonly solana: ErpcSolanaClient;
|
|
@@ -1526,11 +1555,119 @@ interface ErpcCloudClient {
|
|
|
1526
1555
|
declare const createErpcCloudClient: (config: ErpcCloudClientConfig) => ErpcCloudClient;
|
|
1527
1556
|
type ErpcCloudRequestOptions = RpcSendOptions;
|
|
1528
1557
|
|
|
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: "
|
|
1531
|
-
declare const BRIDGE_CAPABILITIES_AS_OF_DATE: "2026-09-
|
|
1558
|
+
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\"},{\"bridgeCapabilityId\":\"bridge-mayan-swift-v2-usdc-eth-sol\",\"providerId\":\"mayan-swift-v2\",\"capabilityKind\":\"external-provider-dynamic\",\"sourceChainId\":\"eip155:1\",\"destinationChainId\":\"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp\",\"sourceTokenDeploymentId\":\"deployment-0008\",\"destinationTokenDeploymentId\":\"deployment-0010\",\"sourceTokenAddress\":\"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48\",\"destinationTokenAddress\":\"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v\",\"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\":\"0xe4269fc4\",\"jupiterProgramAddress\":null,\"builderEndpoint\":\"https://tx-builder.mayan.finance\",\"explorerEndpoint\":\"https://explorer-api.mayan.finance/v3\",\"dependencies\":[\"mayan-hosted-quote-api\",\"mayan-hosted-transaction-builder\",\"swift-auction-solvers\",\"relayers\",\"wormhole-guardian-messaging\",\"mayan-explorer-indexer\"],\"status\":\"active\"},{\"bridgeCapabilityId\":\"bridge-mayan-swift-v2-usdc-sol-eth\",\"providerId\":\"mayan-swift-v2\",\"capabilityKind\":\"external-provider-dynamic\",\"sourceChainId\":\"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp\",\"destinationChainId\":\"eip155:1\",\"sourceTokenDeploymentId\":\"deployment-0010\",\"destinationTokenDeploymentId\":\"deployment-0008\",\"sourceTokenAddress\":\"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v\",\"destinationTokenAddress\":\"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48\",\"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\":null,\"builderEndpoint\":\"https://tx-builder.mayan.finance\",\"explorerEndpoint\":\"https://explorer-api.mayan.finance/v3\",\"dependencies\":[\"mayan-hosted-quote-api\",\"mayan-hosted-transaction-builder\",\"swift-auction-solvers\",\"relayers\",\"wormhole-guardian-messaging\",\"mayan-explorer-indexer\"],\"status\":\"active\"}]";
|
|
1559
|
+
declare const BRIDGE_CAPABILITIES_CONTENT_DIGEST: "691a77498c5ff876dadc437a8265d8288ec51cbc1d44f8beacb746626bf5b98d";
|
|
1560
|
+
declare const BRIDGE_CAPABILITIES_AS_OF_DATE: "2026-09-17";
|
|
1532
1561
|
|
|
1533
|
-
|
|
1562
|
+
interface MayanSwiftV2LocalContext {
|
|
1563
|
+
readonly quote: MayanSwiftV2Quote;
|
|
1564
|
+
readonly swapperAddress: string;
|
|
1565
|
+
readonly destinationAddress: string;
|
|
1566
|
+
readonly orderNonce: string;
|
|
1567
|
+
}
|
|
1568
|
+
interface MayanSwiftV2LocalSourceSwapInstructionAccount {
|
|
1569
|
+
readonly pubkey: string;
|
|
1570
|
+
readonly isSigner: boolean;
|
|
1571
|
+
readonly isWritable: boolean;
|
|
1572
|
+
}
|
|
1573
|
+
interface MayanSwiftV2LocalSourceSwapInstruction {
|
|
1574
|
+
readonly programId: string;
|
|
1575
|
+
readonly accounts: readonly MayanSwiftV2LocalSourceSwapInstructionAccount[];
|
|
1576
|
+
readonly dataBase64: string;
|
|
1577
|
+
}
|
|
1578
|
+
interface MayanSwiftV2LocalSourceSwapNone {
|
|
1579
|
+
readonly kind: 'none';
|
|
1580
|
+
}
|
|
1581
|
+
interface MayanSwiftV2LocalSourceSwapEvmRouter {
|
|
1582
|
+
readonly kind: 'evm-router';
|
|
1583
|
+
readonly routerAddress: string;
|
|
1584
|
+
readonly calldata: string;
|
|
1585
|
+
readonly rawResponseSha256: string;
|
|
1586
|
+
readonly rawProviderSourceSwapJson: string;
|
|
1587
|
+
}
|
|
1588
|
+
interface MayanSwiftV2LocalSourceSwapSolanaJupiter {
|
|
1589
|
+
readonly kind: 'solana-jupiter-v6';
|
|
1590
|
+
readonly instructions: readonly MayanSwiftV2LocalSourceSwapInstruction[];
|
|
1591
|
+
readonly addressLookupTableAddresses: readonly string[];
|
|
1592
|
+
readonly rawResponseSha256: string;
|
|
1593
|
+
readonly rawProviderSourceSwapJson: string;
|
|
1594
|
+
}
|
|
1595
|
+
type MayanSwiftV2LocalSourceSwapPlan = MayanSwiftV2LocalSourceSwapNone | MayanSwiftV2LocalSourceSwapEvmRouter | MayanSwiftV2LocalSourceSwapSolanaJupiter;
|
|
1596
|
+
interface MayanSwiftV2SourceSwapPlan {
|
|
1597
|
+
readonly planKind: 'mayan-swift-v2-local-source-swap';
|
|
1598
|
+
readonly providerId: 'mayan-swift-v2';
|
|
1599
|
+
readonly capabilityId: string;
|
|
1600
|
+
readonly sourceChainId: string;
|
|
1601
|
+
readonly destinationChainId: string;
|
|
1602
|
+
readonly sourceTokenDeploymentId: string;
|
|
1603
|
+
readonly destinationTokenDeploymentId: string;
|
|
1604
|
+
readonly quoteId: string;
|
|
1605
|
+
readonly rawQuoteSha256: string;
|
|
1606
|
+
readonly orderNonce: string;
|
|
1607
|
+
readonly swapperAddress: string;
|
|
1608
|
+
readonly destinationAddress: string;
|
|
1609
|
+
readonly orderHash: string;
|
|
1610
|
+
readonly quoteBindingHash: string;
|
|
1611
|
+
readonly minimumIntermediateAmount: string;
|
|
1612
|
+
readonly sourceSwap: MayanSwiftV2LocalSourceSwapPlan;
|
|
1613
|
+
readonly planHash: string;
|
|
1614
|
+
}
|
|
1615
|
+
interface MayanSwiftV2LocalBuildRequest extends MayanSwiftV2LocalContext {
|
|
1616
|
+
readonly sourceSwapPlan: MayanSwiftV2SourceSwapPlan;
|
|
1617
|
+
}
|
|
1618
|
+
interface MayanSwiftV2LocalEvmRpcEvidence {
|
|
1619
|
+
readonly kind: 'evm';
|
|
1620
|
+
readonly rpcChainId: '0x1';
|
|
1621
|
+
readonly code: readonly {
|
|
1622
|
+
readonly address: string;
|
|
1623
|
+
readonly keccak256: string;
|
|
1624
|
+
}[];
|
|
1625
|
+
}
|
|
1626
|
+
interface MayanSwiftV2LocalSolanaRpcLookupTableEvidence {
|
|
1627
|
+
readonly address: string;
|
|
1628
|
+
readonly dataSha256: string;
|
|
1629
|
+
}
|
|
1630
|
+
interface MayanSwiftV2LocalSolanaRpcEvidence {
|
|
1631
|
+
readonly kind: 'solana';
|
|
1632
|
+
readonly genesisHash: string;
|
|
1633
|
+
readonly blockhashContextSlot: string;
|
|
1634
|
+
readonly accountContextSlot: string;
|
|
1635
|
+
readonly recentBlockhash: string;
|
|
1636
|
+
readonly lastValidBlockHeight: string;
|
|
1637
|
+
readonly lookupTables: readonly MayanSwiftV2LocalSolanaRpcLookupTableEvidence[];
|
|
1638
|
+
}
|
|
1639
|
+
type MayanSwiftV2LocalSourceRpcEvidence = MayanSwiftV2LocalEvmRpcEvidence | MayanSwiftV2LocalSolanaRpcEvidence;
|
|
1640
|
+
interface MayanSwiftV2LocalConstruction {
|
|
1641
|
+
readonly mode: 'local';
|
|
1642
|
+
readonly referenceCommit: 'c4c98031aaad9264d17630d7b4de0cb18688cf78';
|
|
1643
|
+
readonly orderNonce: string;
|
|
1644
|
+
readonly orderHash: string;
|
|
1645
|
+
readonly minimumIntermediateAmount: string;
|
|
1646
|
+
readonly effectiveDependencies: readonly string[];
|
|
1647
|
+
readonly sourceRpcEvidence: MayanSwiftV2LocalSourceRpcEvidence;
|
|
1648
|
+
}
|
|
1649
|
+
interface MayanSwiftV2LocalBuildValidation {
|
|
1650
|
+
readonly level: 'local-structural';
|
|
1651
|
+
readonly quoteSignatureLocallyVerified: false;
|
|
1652
|
+
readonly planBindingLocallyVerified: true;
|
|
1653
|
+
readonly transactionBytesLocallyConstructed: true;
|
|
1654
|
+
readonly settlementLocallyVerified: false;
|
|
1655
|
+
}
|
|
1656
|
+
interface MayanSwiftV2LocalBuild {
|
|
1657
|
+
readonly buildKind: 'mayan-swift-v2-local-unsigned';
|
|
1658
|
+
readonly providerId: 'mayan-swift-v2';
|
|
1659
|
+
readonly capabilityId: string;
|
|
1660
|
+
readonly quote: MayanSwiftV2Quote;
|
|
1661
|
+
readonly sourceChainId: string;
|
|
1662
|
+
readonly destinationChainId: string;
|
|
1663
|
+
readonly sourceSwapPlan: MayanSwiftV2SourceSwapPlan;
|
|
1664
|
+
readonly transaction: MayanSwiftV2UnsignedTransaction;
|
|
1665
|
+
readonly allowance: MayanSwiftV2Build['allowance'];
|
|
1666
|
+
readonly construction: MayanSwiftV2LocalConstruction;
|
|
1667
|
+
readonly validation: MayanSwiftV2LocalBuildValidation;
|
|
1668
|
+
}
|
|
1669
|
+
|
|
1670
|
+
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_LOCAL_RPC_REQUIRED' | 'BRIDGE_SOURCE_RPC_TRANSPORT' | 'BRIDGE_SOURCE_RPC_INVALID_RESPONSE' | 'BRIDGE_LOCAL_PLAN_INVALID' | 'BRIDGE_LOCAL_BUILD_INVALID' | 'BRIDGE_STATUS_NOT_FOUND' | 'BRIDGE_TIMEOUT' | 'BRIDGE_ABORTED';
|
|
1534
1671
|
declare const BRIDGE_ERROR_MESSAGES: Readonly<Record<BridgeErrorCode, string>>;
|
|
1535
1672
|
declare class BridgeError extends Error {
|
|
1536
1673
|
readonly code: BridgeErrorCode;
|
|
@@ -1545,6 +1682,12 @@ interface MayanSwiftV2BridgeConfig {
|
|
|
1545
1682
|
readonly minimumQuoteValiditySeconds?: number;
|
|
1546
1683
|
readonly timeoutMs?: number;
|
|
1547
1684
|
readonly fetch?: typeof globalThis.fetch;
|
|
1685
|
+
readonly localBuild?: MayanSwiftV2LocalBuildConfig;
|
|
1686
|
+
}
|
|
1687
|
+
interface MayanSwiftV2LocalBuildConfig {
|
|
1688
|
+
readonly sourceSwapEndpoint?: string;
|
|
1689
|
+
readonly ethereumRpc?: RpcEndpointConfig;
|
|
1690
|
+
readonly solanaRpc?: RpcEndpointConfig;
|
|
1548
1691
|
}
|
|
1549
1692
|
interface BridgeRequestOptions {
|
|
1550
1693
|
readonly signal?: AbortSignal;
|
|
@@ -1558,15 +1701,15 @@ interface MayanSwiftV2QuoteRequest {
|
|
|
1558
1701
|
readonly slippageBps: number;
|
|
1559
1702
|
}
|
|
1560
1703
|
interface MayanSwiftV2SourceSwap {
|
|
1561
|
-
readonly required:
|
|
1704
|
+
readonly required: boolean;
|
|
1562
1705
|
readonly inputTokenDeploymentId: string;
|
|
1563
1706
|
readonly intermediateTokenDeploymentId: string;
|
|
1564
1707
|
readonly intermediateTokenAddress: string;
|
|
1565
1708
|
readonly intermediateTokenStandard: string;
|
|
1566
1709
|
readonly intermediateTokenDecimals: 6;
|
|
1567
1710
|
readonly providerMinimumAmount: string;
|
|
1568
|
-
readonly routerKind: 'provider-selected-evm' | 'jupiter-v6';
|
|
1569
|
-
readonly routerAddress: string;
|
|
1711
|
+
readonly routerKind: 'provider-selected-evm' | 'jupiter-v6' | null;
|
|
1712
|
+
readonly routerAddress: string | null;
|
|
1570
1713
|
}
|
|
1571
1714
|
interface MayanSwiftV2Quote {
|
|
1572
1715
|
readonly quoteKind: 'mayan-swift-v2';
|
|
@@ -1618,7 +1761,7 @@ interface MayanSwiftV2Build {
|
|
|
1618
1761
|
readonly destinationChainId: string;
|
|
1619
1762
|
readonly transaction: MayanSwiftV2UnsignedTransaction;
|
|
1620
1763
|
readonly allowance: {
|
|
1621
|
-
readonly tokenDeploymentId:
|
|
1764
|
+
readonly tokenDeploymentId: string;
|
|
1622
1765
|
readonly tokenAddress: string;
|
|
1623
1766
|
readonly owner: string;
|
|
1624
1767
|
readonly spender: string;
|
|
@@ -1656,6 +1799,8 @@ interface MayanSwiftV2BridgeClient {
|
|
|
1656
1799
|
quoteExactInput(request: MayanSwiftV2QuoteRequest, options?: BridgeRequestOptions): Promise<readonly MayanSwiftV2Quote[]>;
|
|
1657
1800
|
buildUnsigned(request: MayanSwiftV2BuildRequest, options?: BridgeRequestOptions): Promise<MayanSwiftV2Build>;
|
|
1658
1801
|
getStatus(request: MayanSwiftV2StatusRequest, options?: BridgeRequestOptions): Promise<MayanSwiftV2Status>;
|
|
1802
|
+
prepareSourceSwap(context: MayanSwiftV2LocalContext, options?: BridgeRequestOptions): Promise<MayanSwiftV2SourceSwapPlan>;
|
|
1803
|
+
buildLocalUnsigned(request: MayanSwiftV2LocalBuildRequest, options?: BridgeRequestOptions): Promise<MayanSwiftV2LocalBuild>;
|
|
1659
1804
|
close(): void;
|
|
1660
1805
|
}
|
|
1661
1806
|
declare class MayanSwiftV2BridgeClient implements MayanSwiftV2BridgeClient {
|
|
@@ -1702,4 +1847,4 @@ declare class ErpcBatchPolicyError extends ErpcError {
|
|
|
1702
1847
|
constructor(message: string);
|
|
1703
1848
|
}
|
|
1704
1849
|
|
|
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 };
|
|
1850
|
+
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 BaseReadRpcClient, type BaseRpcEndpointConfig, 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_BASE_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, type ErpcBaseClient, 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 MayanSwiftV2LocalBuild, type MayanSwiftV2LocalBuildConfig, type MayanSwiftV2LocalBuildRequest, type MayanSwiftV2LocalBuildValidation, type MayanSwiftV2LocalConstruction, type MayanSwiftV2LocalContext, type MayanSwiftV2LocalEvmRpcEvidence, type MayanSwiftV2LocalSolanaRpcEvidence, type MayanSwiftV2LocalSolanaRpcLookupTableEvidence, type MayanSwiftV2LocalSourceRpcEvidence, type MayanSwiftV2LocalSourceSwapEvmRouter, type MayanSwiftV2LocalSourceSwapInstruction, type MayanSwiftV2LocalSourceSwapInstructionAccount, type MayanSwiftV2LocalSourceSwapNone, type MayanSwiftV2LocalSourceSwapPlan, type MayanSwiftV2LocalSourceSwapSolanaJupiter, type MayanSwiftV2Quote, type MayanSwiftV2QuoteRequest, type MayanSwiftV2QuoteResult, type MayanSwiftV2SourceSwap, type MayanSwiftV2SourceSwapPlan, 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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -113,13 +113,14 @@ interface TokenAlias {
|
|
|
113
113
|
readonly name: string;
|
|
114
114
|
readonly deploymentId: string;
|
|
115
115
|
}
|
|
116
|
-
declare const TOKEN_CATALOG_VERSION: "1.
|
|
117
|
-
declare const TOKEN_CATALOG_AS_OF_DATE: "2026-09-
|
|
118
|
-
declare const TOKEN_CATALOG_CONTENT_DIGEST: "
|
|
116
|
+
declare const TOKEN_CATALOG_VERSION: "1.1.0";
|
|
117
|
+
declare const TOKEN_CATALOG_AS_OF_DATE: "2026-09-26";
|
|
118
|
+
declare const TOKEN_CATALOG_CONTENT_DIGEST: "cca180df1846def0ec98f4e55b84cc46614c60d7a8c4a91c66dc9715c710ba73";
|
|
119
119
|
declare const TOKEN_CHAIN_IDS: {
|
|
120
120
|
readonly ethereumMainnet: "eip155:1";
|
|
121
121
|
readonly solanaMainnet: "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp";
|
|
122
122
|
readonly avalancheCMainnet: "eip155:43114";
|
|
123
|
+
readonly baseMainnet: "eip155:8453";
|
|
123
124
|
};
|
|
124
125
|
type TokenChainId = (typeof TOKEN_CHAIN_IDS)[keyof typeof TOKEN_CHAIN_IDS];
|
|
125
126
|
declare const tokens: Readonly<{
|
|
@@ -142,6 +143,11 @@ declare const tokens: Readonly<{
|
|
|
142
143
|
readonly USDT: "deployment-0015";
|
|
143
144
|
readonly WAVAX: "deployment-0004";
|
|
144
145
|
};
|
|
146
|
+
readonly base: {
|
|
147
|
+
readonly ETH: "deployment-0061";
|
|
148
|
+
readonly EURC: "deployment-0063";
|
|
149
|
+
readonly USDC: "deployment-0062";
|
|
150
|
+
};
|
|
145
151
|
readonly ethereum: {
|
|
146
152
|
readonly AAVE: "deployment-0056";
|
|
147
153
|
readonly AUSD: "deployment-0034";
|
|
@@ -341,6 +347,7 @@ declare class CloudCatalogClient {
|
|
|
341
347
|
|
|
342
348
|
declare const DEFAULT_ENDPOINT = "https://edge.erpc.global";
|
|
343
349
|
declare const DEFAULT_AVALANCHE_ENDPOINT = "https://ava-rpc.erpc.global";
|
|
350
|
+
declare const DEFAULT_BASE_ENDPOINT = "https://base.erpc.global";
|
|
344
351
|
declare const DEFAULT_ACCOUNT_ENDPOINT = "https://solana-rpc.erpc.global";
|
|
345
352
|
declare const DEFAULT_USER_ENDPOINT = "https://user-api.erpc.global";
|
|
346
353
|
declare const DEFAULT_TIMEOUT_MS = 30000;
|
|
@@ -349,6 +356,11 @@ interface RpcEndpointConfig {
|
|
|
349
356
|
readonly httpUrl: string;
|
|
350
357
|
readonly webSocketUrl?: string;
|
|
351
358
|
}
|
|
359
|
+
/** Caller-owned Base HTTP JSON-RPC endpoint. Base has no WebSocket facade. */
|
|
360
|
+
interface BaseRpcEndpointConfig {
|
|
361
|
+
readonly headers?: Readonly<Record<string, string>>;
|
|
362
|
+
readonly httpUrl: string;
|
|
363
|
+
}
|
|
352
364
|
interface ResolvedRpcEndpointConfig {
|
|
353
365
|
readonly headers: Readonly<Record<string, string>>;
|
|
354
366
|
readonly httpUrl: URL;
|
|
@@ -359,6 +371,8 @@ interface ErpcClientConfig {
|
|
|
359
371
|
readonly apiKey?: string;
|
|
360
372
|
readonly avalancheEndpoint?: string;
|
|
361
373
|
readonly avalancheCRpc?: RpcEndpointConfig;
|
|
374
|
+
readonly baseEndpoint?: string;
|
|
375
|
+
readonly baseRpc?: BaseRpcEndpointConfig;
|
|
362
376
|
readonly endpoint?: string;
|
|
363
377
|
readonly ethereumRpc?: RpcEndpointConfig;
|
|
364
378
|
readonly fetch?: typeof globalThis.fetch;
|
|
@@ -774,6 +788,20 @@ interface AvalancheIndexTransports {
|
|
|
774
788
|
readonly xChainTransactions: HttpJsonRpcTransport;
|
|
775
789
|
}
|
|
776
790
|
|
|
791
|
+
/**
|
|
792
|
+
* Read-only Base JSON-RPC facade.
|
|
793
|
+
*
|
|
794
|
+
* The implementation deliberately selects only the three read methods from
|
|
795
|
+
* the existing EVM namespace. The transport is still shared with the mature
|
|
796
|
+
* Ethereum RPC implementation, while the public Base surface has no raw,
|
|
797
|
+
* batch, subscription, signing, or broadcast entry points.
|
|
798
|
+
*/
|
|
799
|
+
interface BaseReadRpcClient extends Pick<EthereumClient['rpc'], 'endpoint' | 'eth_chainId' | 'eth_getBalance' | 'eth_call'> {
|
|
800
|
+
}
|
|
801
|
+
interface ErpcBaseClient {
|
|
802
|
+
readonly rpc: BaseReadRpcClient;
|
|
803
|
+
}
|
|
804
|
+
|
|
777
805
|
type SolanaCommitment = 'confirmed' | 'finalized' | 'processed';
|
|
778
806
|
type SolanaEncoding = 'base58' | 'base64' | 'base64+zstd' | 'jsonParsed';
|
|
779
807
|
type SolanaConfig = Readonly<Record<string, unknown>>;
|
|
@@ -1367,6 +1395,7 @@ interface ErpcAvalancheClient extends AvalancheClient {
|
|
|
1367
1395
|
interface ErpcClient {
|
|
1368
1396
|
readonly account: AccountClient;
|
|
1369
1397
|
readonly avalanche: ErpcAvalancheClient;
|
|
1398
|
+
readonly base: ErpcBaseClient;
|
|
1370
1399
|
readonly ethereum: ErpcEthereumClient;
|
|
1371
1400
|
readonly price: PriceClient;
|
|
1372
1401
|
readonly solana: ErpcSolanaClient;
|
|
@@ -1526,11 +1555,119 @@ interface ErpcCloudClient {
|
|
|
1526
1555
|
declare const createErpcCloudClient: (config: ErpcCloudClientConfig) => ErpcCloudClient;
|
|
1527
1556
|
type ErpcCloudRequestOptions = RpcSendOptions;
|
|
1528
1557
|
|
|
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: "
|
|
1531
|
-
declare const BRIDGE_CAPABILITIES_AS_OF_DATE: "2026-09-
|
|
1558
|
+
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\"},{\"bridgeCapabilityId\":\"bridge-mayan-swift-v2-usdc-eth-sol\",\"providerId\":\"mayan-swift-v2\",\"capabilityKind\":\"external-provider-dynamic\",\"sourceChainId\":\"eip155:1\",\"destinationChainId\":\"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp\",\"sourceTokenDeploymentId\":\"deployment-0008\",\"destinationTokenDeploymentId\":\"deployment-0010\",\"sourceTokenAddress\":\"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48\",\"destinationTokenAddress\":\"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v\",\"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\":\"0xe4269fc4\",\"jupiterProgramAddress\":null,\"builderEndpoint\":\"https://tx-builder.mayan.finance\",\"explorerEndpoint\":\"https://explorer-api.mayan.finance/v3\",\"dependencies\":[\"mayan-hosted-quote-api\",\"mayan-hosted-transaction-builder\",\"swift-auction-solvers\",\"relayers\",\"wormhole-guardian-messaging\",\"mayan-explorer-indexer\"],\"status\":\"active\"},{\"bridgeCapabilityId\":\"bridge-mayan-swift-v2-usdc-sol-eth\",\"providerId\":\"mayan-swift-v2\",\"capabilityKind\":\"external-provider-dynamic\",\"sourceChainId\":\"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp\",\"destinationChainId\":\"eip155:1\",\"sourceTokenDeploymentId\":\"deployment-0010\",\"destinationTokenDeploymentId\":\"deployment-0008\",\"sourceTokenAddress\":\"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v\",\"destinationTokenAddress\":\"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48\",\"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\":null,\"builderEndpoint\":\"https://tx-builder.mayan.finance\",\"explorerEndpoint\":\"https://explorer-api.mayan.finance/v3\",\"dependencies\":[\"mayan-hosted-quote-api\",\"mayan-hosted-transaction-builder\",\"swift-auction-solvers\",\"relayers\",\"wormhole-guardian-messaging\",\"mayan-explorer-indexer\"],\"status\":\"active\"}]";
|
|
1559
|
+
declare const BRIDGE_CAPABILITIES_CONTENT_DIGEST: "691a77498c5ff876dadc437a8265d8288ec51cbc1d44f8beacb746626bf5b98d";
|
|
1560
|
+
declare const BRIDGE_CAPABILITIES_AS_OF_DATE: "2026-09-17";
|
|
1532
1561
|
|
|
1533
|
-
|
|
1562
|
+
interface MayanSwiftV2LocalContext {
|
|
1563
|
+
readonly quote: MayanSwiftV2Quote;
|
|
1564
|
+
readonly swapperAddress: string;
|
|
1565
|
+
readonly destinationAddress: string;
|
|
1566
|
+
readonly orderNonce: string;
|
|
1567
|
+
}
|
|
1568
|
+
interface MayanSwiftV2LocalSourceSwapInstructionAccount {
|
|
1569
|
+
readonly pubkey: string;
|
|
1570
|
+
readonly isSigner: boolean;
|
|
1571
|
+
readonly isWritable: boolean;
|
|
1572
|
+
}
|
|
1573
|
+
interface MayanSwiftV2LocalSourceSwapInstruction {
|
|
1574
|
+
readonly programId: string;
|
|
1575
|
+
readonly accounts: readonly MayanSwiftV2LocalSourceSwapInstructionAccount[];
|
|
1576
|
+
readonly dataBase64: string;
|
|
1577
|
+
}
|
|
1578
|
+
interface MayanSwiftV2LocalSourceSwapNone {
|
|
1579
|
+
readonly kind: 'none';
|
|
1580
|
+
}
|
|
1581
|
+
interface MayanSwiftV2LocalSourceSwapEvmRouter {
|
|
1582
|
+
readonly kind: 'evm-router';
|
|
1583
|
+
readonly routerAddress: string;
|
|
1584
|
+
readonly calldata: string;
|
|
1585
|
+
readonly rawResponseSha256: string;
|
|
1586
|
+
readonly rawProviderSourceSwapJson: string;
|
|
1587
|
+
}
|
|
1588
|
+
interface MayanSwiftV2LocalSourceSwapSolanaJupiter {
|
|
1589
|
+
readonly kind: 'solana-jupiter-v6';
|
|
1590
|
+
readonly instructions: readonly MayanSwiftV2LocalSourceSwapInstruction[];
|
|
1591
|
+
readonly addressLookupTableAddresses: readonly string[];
|
|
1592
|
+
readonly rawResponseSha256: string;
|
|
1593
|
+
readonly rawProviderSourceSwapJson: string;
|
|
1594
|
+
}
|
|
1595
|
+
type MayanSwiftV2LocalSourceSwapPlan = MayanSwiftV2LocalSourceSwapNone | MayanSwiftV2LocalSourceSwapEvmRouter | MayanSwiftV2LocalSourceSwapSolanaJupiter;
|
|
1596
|
+
interface MayanSwiftV2SourceSwapPlan {
|
|
1597
|
+
readonly planKind: 'mayan-swift-v2-local-source-swap';
|
|
1598
|
+
readonly providerId: 'mayan-swift-v2';
|
|
1599
|
+
readonly capabilityId: string;
|
|
1600
|
+
readonly sourceChainId: string;
|
|
1601
|
+
readonly destinationChainId: string;
|
|
1602
|
+
readonly sourceTokenDeploymentId: string;
|
|
1603
|
+
readonly destinationTokenDeploymentId: string;
|
|
1604
|
+
readonly quoteId: string;
|
|
1605
|
+
readonly rawQuoteSha256: string;
|
|
1606
|
+
readonly orderNonce: string;
|
|
1607
|
+
readonly swapperAddress: string;
|
|
1608
|
+
readonly destinationAddress: string;
|
|
1609
|
+
readonly orderHash: string;
|
|
1610
|
+
readonly quoteBindingHash: string;
|
|
1611
|
+
readonly minimumIntermediateAmount: string;
|
|
1612
|
+
readonly sourceSwap: MayanSwiftV2LocalSourceSwapPlan;
|
|
1613
|
+
readonly planHash: string;
|
|
1614
|
+
}
|
|
1615
|
+
interface MayanSwiftV2LocalBuildRequest extends MayanSwiftV2LocalContext {
|
|
1616
|
+
readonly sourceSwapPlan: MayanSwiftV2SourceSwapPlan;
|
|
1617
|
+
}
|
|
1618
|
+
interface MayanSwiftV2LocalEvmRpcEvidence {
|
|
1619
|
+
readonly kind: 'evm';
|
|
1620
|
+
readonly rpcChainId: '0x1';
|
|
1621
|
+
readonly code: readonly {
|
|
1622
|
+
readonly address: string;
|
|
1623
|
+
readonly keccak256: string;
|
|
1624
|
+
}[];
|
|
1625
|
+
}
|
|
1626
|
+
interface MayanSwiftV2LocalSolanaRpcLookupTableEvidence {
|
|
1627
|
+
readonly address: string;
|
|
1628
|
+
readonly dataSha256: string;
|
|
1629
|
+
}
|
|
1630
|
+
interface MayanSwiftV2LocalSolanaRpcEvidence {
|
|
1631
|
+
readonly kind: 'solana';
|
|
1632
|
+
readonly genesisHash: string;
|
|
1633
|
+
readonly blockhashContextSlot: string;
|
|
1634
|
+
readonly accountContextSlot: string;
|
|
1635
|
+
readonly recentBlockhash: string;
|
|
1636
|
+
readonly lastValidBlockHeight: string;
|
|
1637
|
+
readonly lookupTables: readonly MayanSwiftV2LocalSolanaRpcLookupTableEvidence[];
|
|
1638
|
+
}
|
|
1639
|
+
type MayanSwiftV2LocalSourceRpcEvidence = MayanSwiftV2LocalEvmRpcEvidence | MayanSwiftV2LocalSolanaRpcEvidence;
|
|
1640
|
+
interface MayanSwiftV2LocalConstruction {
|
|
1641
|
+
readonly mode: 'local';
|
|
1642
|
+
readonly referenceCommit: 'c4c98031aaad9264d17630d7b4de0cb18688cf78';
|
|
1643
|
+
readonly orderNonce: string;
|
|
1644
|
+
readonly orderHash: string;
|
|
1645
|
+
readonly minimumIntermediateAmount: string;
|
|
1646
|
+
readonly effectiveDependencies: readonly string[];
|
|
1647
|
+
readonly sourceRpcEvidence: MayanSwiftV2LocalSourceRpcEvidence;
|
|
1648
|
+
}
|
|
1649
|
+
interface MayanSwiftV2LocalBuildValidation {
|
|
1650
|
+
readonly level: 'local-structural';
|
|
1651
|
+
readonly quoteSignatureLocallyVerified: false;
|
|
1652
|
+
readonly planBindingLocallyVerified: true;
|
|
1653
|
+
readonly transactionBytesLocallyConstructed: true;
|
|
1654
|
+
readonly settlementLocallyVerified: false;
|
|
1655
|
+
}
|
|
1656
|
+
interface MayanSwiftV2LocalBuild {
|
|
1657
|
+
readonly buildKind: 'mayan-swift-v2-local-unsigned';
|
|
1658
|
+
readonly providerId: 'mayan-swift-v2';
|
|
1659
|
+
readonly capabilityId: string;
|
|
1660
|
+
readonly quote: MayanSwiftV2Quote;
|
|
1661
|
+
readonly sourceChainId: string;
|
|
1662
|
+
readonly destinationChainId: string;
|
|
1663
|
+
readonly sourceSwapPlan: MayanSwiftV2SourceSwapPlan;
|
|
1664
|
+
readonly transaction: MayanSwiftV2UnsignedTransaction;
|
|
1665
|
+
readonly allowance: MayanSwiftV2Build['allowance'];
|
|
1666
|
+
readonly construction: MayanSwiftV2LocalConstruction;
|
|
1667
|
+
readonly validation: MayanSwiftV2LocalBuildValidation;
|
|
1668
|
+
}
|
|
1669
|
+
|
|
1670
|
+
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_LOCAL_RPC_REQUIRED' | 'BRIDGE_SOURCE_RPC_TRANSPORT' | 'BRIDGE_SOURCE_RPC_INVALID_RESPONSE' | 'BRIDGE_LOCAL_PLAN_INVALID' | 'BRIDGE_LOCAL_BUILD_INVALID' | 'BRIDGE_STATUS_NOT_FOUND' | 'BRIDGE_TIMEOUT' | 'BRIDGE_ABORTED';
|
|
1534
1671
|
declare const BRIDGE_ERROR_MESSAGES: Readonly<Record<BridgeErrorCode, string>>;
|
|
1535
1672
|
declare class BridgeError extends Error {
|
|
1536
1673
|
readonly code: BridgeErrorCode;
|
|
@@ -1545,6 +1682,12 @@ interface MayanSwiftV2BridgeConfig {
|
|
|
1545
1682
|
readonly minimumQuoteValiditySeconds?: number;
|
|
1546
1683
|
readonly timeoutMs?: number;
|
|
1547
1684
|
readonly fetch?: typeof globalThis.fetch;
|
|
1685
|
+
readonly localBuild?: MayanSwiftV2LocalBuildConfig;
|
|
1686
|
+
}
|
|
1687
|
+
interface MayanSwiftV2LocalBuildConfig {
|
|
1688
|
+
readonly sourceSwapEndpoint?: string;
|
|
1689
|
+
readonly ethereumRpc?: RpcEndpointConfig;
|
|
1690
|
+
readonly solanaRpc?: RpcEndpointConfig;
|
|
1548
1691
|
}
|
|
1549
1692
|
interface BridgeRequestOptions {
|
|
1550
1693
|
readonly signal?: AbortSignal;
|
|
@@ -1558,15 +1701,15 @@ interface MayanSwiftV2QuoteRequest {
|
|
|
1558
1701
|
readonly slippageBps: number;
|
|
1559
1702
|
}
|
|
1560
1703
|
interface MayanSwiftV2SourceSwap {
|
|
1561
|
-
readonly required:
|
|
1704
|
+
readonly required: boolean;
|
|
1562
1705
|
readonly inputTokenDeploymentId: string;
|
|
1563
1706
|
readonly intermediateTokenDeploymentId: string;
|
|
1564
1707
|
readonly intermediateTokenAddress: string;
|
|
1565
1708
|
readonly intermediateTokenStandard: string;
|
|
1566
1709
|
readonly intermediateTokenDecimals: 6;
|
|
1567
1710
|
readonly providerMinimumAmount: string;
|
|
1568
|
-
readonly routerKind: 'provider-selected-evm' | 'jupiter-v6';
|
|
1569
|
-
readonly routerAddress: string;
|
|
1711
|
+
readonly routerKind: 'provider-selected-evm' | 'jupiter-v6' | null;
|
|
1712
|
+
readonly routerAddress: string | null;
|
|
1570
1713
|
}
|
|
1571
1714
|
interface MayanSwiftV2Quote {
|
|
1572
1715
|
readonly quoteKind: 'mayan-swift-v2';
|
|
@@ -1618,7 +1761,7 @@ interface MayanSwiftV2Build {
|
|
|
1618
1761
|
readonly destinationChainId: string;
|
|
1619
1762
|
readonly transaction: MayanSwiftV2UnsignedTransaction;
|
|
1620
1763
|
readonly allowance: {
|
|
1621
|
-
readonly tokenDeploymentId:
|
|
1764
|
+
readonly tokenDeploymentId: string;
|
|
1622
1765
|
readonly tokenAddress: string;
|
|
1623
1766
|
readonly owner: string;
|
|
1624
1767
|
readonly spender: string;
|
|
@@ -1656,6 +1799,8 @@ interface MayanSwiftV2BridgeClient {
|
|
|
1656
1799
|
quoteExactInput(request: MayanSwiftV2QuoteRequest, options?: BridgeRequestOptions): Promise<readonly MayanSwiftV2Quote[]>;
|
|
1657
1800
|
buildUnsigned(request: MayanSwiftV2BuildRequest, options?: BridgeRequestOptions): Promise<MayanSwiftV2Build>;
|
|
1658
1801
|
getStatus(request: MayanSwiftV2StatusRequest, options?: BridgeRequestOptions): Promise<MayanSwiftV2Status>;
|
|
1802
|
+
prepareSourceSwap(context: MayanSwiftV2LocalContext, options?: BridgeRequestOptions): Promise<MayanSwiftV2SourceSwapPlan>;
|
|
1803
|
+
buildLocalUnsigned(request: MayanSwiftV2LocalBuildRequest, options?: BridgeRequestOptions): Promise<MayanSwiftV2LocalBuild>;
|
|
1659
1804
|
close(): void;
|
|
1660
1805
|
}
|
|
1661
1806
|
declare class MayanSwiftV2BridgeClient implements MayanSwiftV2BridgeClient {
|
|
@@ -1702,4 +1847,4 @@ declare class ErpcBatchPolicyError extends ErpcError {
|
|
|
1702
1847
|
constructor(message: string);
|
|
1703
1848
|
}
|
|
1704
1849
|
|
|
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 };
|
|
1850
|
+
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 BaseReadRpcClient, type BaseRpcEndpointConfig, 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_BASE_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, type ErpcBaseClient, 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 MayanSwiftV2LocalBuild, type MayanSwiftV2LocalBuildConfig, type MayanSwiftV2LocalBuildRequest, type MayanSwiftV2LocalBuildValidation, type MayanSwiftV2LocalConstruction, type MayanSwiftV2LocalContext, type MayanSwiftV2LocalEvmRpcEvidence, type MayanSwiftV2LocalSolanaRpcEvidence, type MayanSwiftV2LocalSolanaRpcLookupTableEvidence, type MayanSwiftV2LocalSourceRpcEvidence, type MayanSwiftV2LocalSourceSwapEvmRouter, type MayanSwiftV2LocalSourceSwapInstruction, type MayanSwiftV2LocalSourceSwapInstructionAccount, type MayanSwiftV2LocalSourceSwapNone, type MayanSwiftV2LocalSourceSwapPlan, type MayanSwiftV2LocalSourceSwapSolanaJupiter, type MayanSwiftV2Quote, type MayanSwiftV2QuoteRequest, type MayanSwiftV2QuoteResult, type MayanSwiftV2SourceSwap, type MayanSwiftV2SourceSwapPlan, 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 };
|