@sodax/types 2.0.0-rc.1 → 2.0.0-rc.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +69 -31
- package/dist/backend/backendApi.d.ts +0 -1
- package/dist/backend/backendApi.js +0 -1
- package/dist/backend/index.d.ts +0 -1
- package/dist/backend/index.js +0 -1
- package/dist/bitcoin/bitcoin.d.ts +0 -1
- package/dist/bitcoin/bitcoin.js +0 -1
- package/dist/bitcoin/index.d.ts +0 -1
- package/dist/bitcoin/index.js +0 -1
- package/dist/chains/chain-keys.d.ts +0 -1
- package/dist/chains/chain-keys.js +0 -1
- package/dist/chains/chains.d.ts +115 -4
- package/dist/chains/chains.js +1 -2
- package/dist/chains/index.d.ts +0 -1
- package/dist/chains/index.js +0 -1
- package/dist/chains/tokens.d.ts +232 -5
- package/dist/chains/tokens.js +105 -2
- package/dist/common/common.d.ts +0 -1
- package/dist/common/common.js +0 -1
- package/dist/common/constants.d.ts +0 -1
- package/dist/common/constants.js +0 -1
- package/dist/common/index.d.ts +0 -1
- package/dist/common/index.js +0 -1
- package/dist/dex/dex.d.ts +0 -1
- package/dist/dex/dex.js +0 -1
- package/dist/dex/index.d.ts +0 -1
- package/dist/dex/index.js +0 -1
- package/dist/dex/pancakeswap-infinity.d.ts +0 -1
- package/dist/dex/pancakeswap-infinity.js +0 -1
- package/dist/evm/evm.d.ts +0 -1
- package/dist/evm/evm.js +0 -1
- package/dist/evm/index.d.ts +0 -1
- package/dist/evm/index.js +0 -1
- package/dist/icon/icon.d.ts +0 -1
- package/dist/icon/icon.js +0 -1
- package/dist/icon/index.d.ts +0 -1
- package/dist/icon/index.js +0 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.js +1 -2
- package/dist/injective/index.d.ts +0 -1
- package/dist/injective/index.js +0 -1
- package/dist/injective/injective.d.ts +0 -1
- package/dist/injective/injective.js +0 -1
- package/dist/moneyMarket/index.d.ts +0 -1
- package/dist/moneyMarket/index.js +0 -1
- package/dist/moneyMarket/moneyMarket.d.ts +124 -5
- package/dist/moneyMarket/moneyMarket.js +6 -1
- package/dist/near/index.d.ts +0 -1
- package/dist/near/index.js +0 -1
- package/dist/near/near-api-js.d.ts +0 -1
- package/dist/near/near-api-js.js +0 -1
- package/dist/near/near.d.ts +0 -1
- package/dist/near/near.js +0 -1
- package/dist/shared/index.d.ts +0 -1
- package/dist/shared/index.js +0 -1
- package/dist/shared/shared.d.ts +0 -1
- package/dist/shared/shared.js +0 -1
- package/dist/sodax-config/index.d.ts +0 -1
- package/dist/sodax-config/index.js +0 -1
- package/dist/sodax-config/sodax-config.d.ts +253 -16
- package/dist/sodax-config/sodax-config.js +0 -1
- package/dist/solana/index.d.ts +0 -1
- package/dist/solana/index.js +0 -1
- package/dist/solana/solana-web3.d.ts +0 -1
- package/dist/solana/solana-web3.js +0 -1
- package/dist/solana/solana.d.ts +0 -1
- package/dist/solana/solana.js +0 -1
- package/dist/stacks/index.d.ts +0 -1
- package/dist/stacks/index.js +0 -1
- package/dist/stacks/stacks.d.ts +0 -1
- package/dist/stacks/stacks.js +0 -1
- package/dist/stellar/index.d.ts +0 -1
- package/dist/stellar/index.js +0 -1
- package/dist/stellar/stellar.d.ts +0 -1
- package/dist/stellar/stellar.js +0 -1
- package/dist/sui/index.d.ts +0 -1
- package/dist/sui/index.js +0 -1
- package/dist/sui/sui.d.ts +0 -1
- package/dist/sui/sui.js +0 -1
- package/dist/swap/index.d.ts +0 -1
- package/dist/swap/index.js +0 -1
- package/dist/swap/swap.d.ts +152 -21
- package/dist/swap/swap.js +8 -2
- package/dist/utils/deep-partial.d.ts +0 -1
- package/dist/utils/deep-partial.js +0 -1
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils/index.js +0 -1
- package/dist/utils/utils.d.ts +0 -1
- package/dist/utils/utils.js +0 -1
- package/dist/wallet/index.d.ts +0 -1
- package/dist/wallet/index.js +0 -1
- package/dist/wallet/providers.d.ts +0 -1
- package/dist/wallet/providers.js +0 -1
- package/dist/wallet/wallet.d.ts +0 -1
- package/dist/wallet/wallet.js +0 -1
- package/package.json +30 -10
- package/dist/backend/backendApi.d.ts.map +0 -1
- package/dist/backend/backendApi.js.map +0 -1
- package/dist/backend/index.d.ts.map +0 -1
- package/dist/backend/index.js.map +0 -1
- package/dist/bitcoin/bitcoin.d.ts.map +0 -1
- package/dist/bitcoin/bitcoin.js.map +0 -1
- package/dist/bitcoin/index.d.ts.map +0 -1
- package/dist/bitcoin/index.js.map +0 -1
- package/dist/chains/chain-keys.d.ts.map +0 -1
- package/dist/chains/chain-keys.js.map +0 -1
- package/dist/chains/chains.d.ts.map +0 -1
- package/dist/chains/chains.js.map +0 -1
- package/dist/chains/index.d.ts.map +0 -1
- package/dist/chains/index.js.map +0 -1
- package/dist/chains/tokens.d.ts.map +0 -1
- package/dist/chains/tokens.js.map +0 -1
- package/dist/common/common.d.ts.map +0 -1
- package/dist/common/common.js.map +0 -1
- package/dist/common/constants.d.ts.map +0 -1
- package/dist/common/constants.js.map +0 -1
- package/dist/common/index.d.ts.map +0 -1
- package/dist/common/index.js.map +0 -1
- package/dist/dex/dex.d.ts.map +0 -1
- package/dist/dex/dex.js.map +0 -1
- package/dist/dex/index.d.ts.map +0 -1
- package/dist/dex/index.js.map +0 -1
- package/dist/dex/pancakeswap-infinity.d.ts.map +0 -1
- package/dist/dex/pancakeswap-infinity.js.map +0 -1
- package/dist/evm/evm.d.ts.map +0 -1
- package/dist/evm/evm.js.map +0 -1
- package/dist/evm/index.d.ts.map +0 -1
- package/dist/evm/index.js.map +0 -1
- package/dist/icon/icon.d.ts.map +0 -1
- package/dist/icon/icon.js.map +0 -1
- package/dist/icon/index.d.ts.map +0 -1
- package/dist/icon/index.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/injective/index.d.ts.map +0 -1
- package/dist/injective/index.js.map +0 -1
- package/dist/injective/injective.d.ts.map +0 -1
- package/dist/injective/injective.js.map +0 -1
- package/dist/moneyMarket/index.d.ts.map +0 -1
- package/dist/moneyMarket/index.js.map +0 -1
- package/dist/moneyMarket/moneyMarket.d.ts.map +0 -1
- package/dist/moneyMarket/moneyMarket.js.map +0 -1
- package/dist/near/index.d.ts.map +0 -1
- package/dist/near/index.js.map +0 -1
- package/dist/near/near-api-js.d.ts.map +0 -1
- package/dist/near/near-api-js.js.map +0 -1
- package/dist/near/near.d.ts.map +0 -1
- package/dist/near/near.js.map +0 -1
- package/dist/shared/index.d.ts.map +0 -1
- package/dist/shared/index.js.map +0 -1
- package/dist/shared/shared.d.ts.map +0 -1
- package/dist/shared/shared.js.map +0 -1
- package/dist/sodax-config/index.d.ts.map +0 -1
- package/dist/sodax-config/index.js.map +0 -1
- package/dist/sodax-config/sodax-config.d.ts.map +0 -1
- package/dist/sodax-config/sodax-config.js.map +0 -1
- package/dist/solana/index.d.ts.map +0 -1
- package/dist/solana/index.js.map +0 -1
- package/dist/solana/solana-web3.d.ts.map +0 -1
- package/dist/solana/solana-web3.js.map +0 -1
- package/dist/solana/solana.d.ts.map +0 -1
- package/dist/solana/solana.js.map +0 -1
- package/dist/stacks/index.d.ts.map +0 -1
- package/dist/stacks/index.js.map +0 -1
- package/dist/stacks/stacks.d.ts.map +0 -1
- package/dist/stacks/stacks.js.map +0 -1
- package/dist/stellar/index.d.ts.map +0 -1
- package/dist/stellar/index.js.map +0 -1
- package/dist/stellar/stellar.d.ts.map +0 -1
- package/dist/stellar/stellar.js.map +0 -1
- package/dist/sui/index.d.ts.map +0 -1
- package/dist/sui/index.js.map +0 -1
- package/dist/sui/sui.d.ts.map +0 -1
- package/dist/sui/sui.js.map +0 -1
- package/dist/swap/index.d.ts.map +0 -1
- package/dist/swap/index.js.map +0 -1
- package/dist/swap/swap.d.ts.map +0 -1
- package/dist/swap/swap.js.map +0 -1
- package/dist/utils/deep-partial.d.ts.map +0 -1
- package/dist/utils/deep-partial.js.map +0 -1
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/utils.d.ts.map +0 -1
- package/dist/utils/utils.js.map +0 -1
- package/dist/wallet/index.d.ts.map +0 -1
- package/dist/wallet/index.js.map +0 -1
- package/dist/wallet/providers.d.ts.map +0 -1
- package/dist/wallet/providers.js.map +0 -1
- package/dist/wallet/wallet.d.ts.map +0 -1
- package/dist/wallet/wallet.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,54 +1,68 @@
|
|
|
1
|
-
# @sodax/
|
|
1
|
+
# @sodax/types
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Shared SODAX type definitions, constants, and configuration for SDK packages and applications.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
This package includes chain and token metadata, wallet provider interfaces, transaction and receipt types, backend API contracts, swap and money market configuration, DEX configuration, and common utilities.
|
|
6
6
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
pnpm add @sodax/
|
|
10
|
+
pnpm add @sodax/types
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
## Usage
|
|
14
14
|
|
|
15
|
-
Import
|
|
15
|
+
Import shared types, constants, configuration, and helpers from the root package:
|
|
16
16
|
|
|
17
17
|
```typescript
|
|
18
|
-
import
|
|
18
|
+
import {
|
|
19
|
+
ChainKeys,
|
|
20
|
+
CONFIG_VERSION,
|
|
21
|
+
getEvmChainKeyByChainId,
|
|
22
|
+
sodaxConfig,
|
|
23
|
+
supportedTokensByChain,
|
|
24
|
+
} from '@sodax/types';
|
|
25
|
+
|
|
26
|
+
import type {
|
|
27
|
+
Address,
|
|
28
|
+
DeepPartial,
|
|
29
|
+
EvmRawTransaction,
|
|
30
|
+
IBitcoinWalletProvider,
|
|
31
|
+
IEvmWalletProvider,
|
|
32
|
+
IWalletProvider,
|
|
33
|
+
SpokeChainKey,
|
|
34
|
+
WalletAddressProvider,
|
|
35
|
+
} from '@sodax/types';
|
|
19
36
|
```
|
|
20
37
|
|
|
21
|
-
|
|
38
|
+
DEX types and constants are also available from the dedicated DEX subpath export:
|
|
22
39
|
|
|
23
40
|
```typescript
|
|
24
|
-
import
|
|
25
|
-
|
|
26
|
-
import type {
|
|
27
|
-
import type { IIconWalletProvider } from '@sodax/wallet-types/icon';
|
|
28
|
-
import type { INearWalletProvider } from '@sodax/wallet-types/near';
|
|
29
|
-
import type { IStellarWalletProvider } from '@sodax/wallet-types/stellar';
|
|
30
|
-
import type { ISuiWalletProvider } from '@sodax/wallet-types/sui';
|
|
31
|
-
import type { IInjectiveWalletProvider } from '@sodax/wallet-types/injective';
|
|
32
|
-
import type { IStacksWalletProvider } from '@sodax/wallet-types/stacks';
|
|
41
|
+
import { concentratedLiquidityConfig, dexConfig } from '@sodax/types/dex';
|
|
42
|
+
|
|
43
|
+
import type { ConcentratedLiquidityConfig, DexConfig, PoolKey } from '@sodax/types/dex';
|
|
33
44
|
```
|
|
34
45
|
|
|
35
|
-
|
|
46
|
+
The package currently exposes only the root export (`@sodax/types`) and the DEX export (`@sodax/types/dex`). Chain-specific types such as `IEvmWalletProvider`, `BitcoinRawTransaction`, and `SolanaRawTransactionReceipt` are available from the root package.
|
|
47
|
+
|
|
48
|
+
## Export Overview
|
|
36
49
|
|
|
37
|
-
|
|
|
38
|
-
| --- | --- |
|
|
39
|
-
|
|
|
40
|
-
|
|
|
41
|
-
|
|
|
42
|
-
|
|
|
43
|
-
|
|
|
44
|
-
|
|
|
45
|
-
|
|
|
46
|
-
|
|
|
47
|
-
| Stacks | `@sodax/wallet-types/stacks` | `IStacksWalletProvider` |
|
|
50
|
+
| Area | Examples |
|
|
51
|
+
| --- | --- |
|
|
52
|
+
| Shared primitives | `Address`, `Hex`, `Hash`, `Base64String`, `HttpUrl`, `TxPollingConfig` |
|
|
53
|
+
| Common types and constants | `Result`, `PartnerFee`, `TxReturnType`, `apiConfig`, `solverConfig`, retry and timeout constants |
|
|
54
|
+
| Chains and tokens | `ChainKeys`, `SpokeChainKey`, `ChainType`, `baseChainInfo`, `spokeChainConfig` [^cfg], `supportedTokensByChain` |
|
|
55
|
+
| Wallet providers | `WalletAddressProvider`, `ICoreWallet`, `IWalletProvider`, `GetWalletProviderType` |
|
|
56
|
+
| Chain transaction types | `EvmRawTransaction`, `BitcoinRawTransaction`, `SolanaRawTransaction`, `StellarRawTransaction`, `SuiRawTransaction`, `IconRawTransaction`, `InjectiveRawTransaction`, `NearRawTransaction`, `StacksRawTransaction` |
|
|
57
|
+
| Backend API contracts | `IConfigApi`, `GetAllConfigApiResponse`, `SubmitSwapTxRequest`, `SubmitSwapTxResponse`, `SubmitSwapTxStatusResponse` |
|
|
58
|
+
| Product configuration | `sodaxConfig` [^cfg], `bridgeConfig`, `swapsConfig`, `moneyMarketConfig`, `dexConfig`, `concentratedLiquidityConfig` |
|
|
59
|
+
| Utilities | `DeepPartial`, `getChainType`, `getEvmChainKeyByChainId`, chain guard helpers, bnUSD token helpers |
|
|
48
60
|
|
|
49
|
-
|
|
61
|
+
[^cfg]: `spokeChainConfig` and `sodaxConfig` (and the related `hubConfig`, etc.) are **packaged-default snapshots** frozen at SDK release time. They are safe to import at module scope, but **direct imports do NOT reflect overrides passed to `new Sodax(config)` or dynamic config loaded by `sodax.config.initialize()`** — those flow into the `ConfigService` only. Once a `Sodax` instance exists, prefer the instance-scope readers: `sodax.config.spokeChainConfig`, `sodax.config.getChainConfig(chainKey)`, `sodax.config.sodaxConfig`, `sodax.config.getHubChainConfig()`, etc. Mixing a static import with a custom-configured `Sodax` instance will silently fall back to defaults for any chain you customized.
|
|
50
62
|
|
|
51
|
-
|
|
63
|
+
## Wallet Providers
|
|
64
|
+
|
|
65
|
+
All wallet providers extend the base wallet address contract:
|
|
52
66
|
|
|
53
67
|
```typescript
|
|
54
68
|
interface WalletAddressProvider {
|
|
@@ -57,4 +71,28 @@ interface WalletAddressProvider {
|
|
|
57
71
|
}
|
|
58
72
|
```
|
|
59
73
|
|
|
60
|
-
|
|
74
|
+
`ICoreWallet` extends `WalletAddressProvider`, and each chain-specific provider adds its own signing, transaction, and query methods. The root export includes provider interfaces for all supported chain families:
|
|
75
|
+
|
|
76
|
+
| Chain family | Provider interface |
|
|
77
|
+
| --- | --- |
|
|
78
|
+
| EVM | `IEvmWalletProvider` |
|
|
79
|
+
| Bitcoin | `IBitcoinWalletProvider` |
|
|
80
|
+
| Solana | `ISolanaWalletProvider` |
|
|
81
|
+
| Stellar | `IStellarWalletProvider` |
|
|
82
|
+
| Sui | `ISuiWalletProvider` |
|
|
83
|
+
| ICON | `IIconWalletProvider` |
|
|
84
|
+
| Injective | `IInjectiveWalletProvider` |
|
|
85
|
+
| NEAR | `INearWalletProvider` |
|
|
86
|
+
| Stacks | `IStacksWalletProvider` |
|
|
87
|
+
|
|
88
|
+
Use `IWalletProvider` for the union of all chain-specific wallet providers, or `GetWalletProviderType<C>` to map a `SpokeChainKey` or `ChainType` to the matching provider interface.
|
|
89
|
+
|
|
90
|
+
```typescript
|
|
91
|
+
import type { GetWalletProviderType, IEvmWalletProvider, IWalletProvider, SpokeChainKey } from '@sodax/types';
|
|
92
|
+
|
|
93
|
+
type ProviderForChain<C extends SpokeChainKey> = GetWalletProviderType<C>;
|
|
94
|
+
|
|
95
|
+
function isEvmProvider(provider: IWalletProvider): provider is IEvmWalletProvider {
|
|
96
|
+
return provider.chainType === 'EVM';
|
|
97
|
+
}
|
|
98
|
+
```
|
package/dist/backend/index.d.ts
CHANGED
package/dist/backend/index.js
CHANGED
package/dist/bitcoin/bitcoin.js
CHANGED
|
@@ -20,4 +20,3 @@ export function detectBitcoinAddressType(address) {
|
|
|
20
20
|
export const BTC_WALLET_ADDRESS_TYPES = ['taproot', 'segwit'];
|
|
21
21
|
/** Address types that Sodax supports for transactions. */
|
|
22
22
|
const BTC_ADDRESS_TYPES = ['P2PKH', 'P2SH', 'P2WPKH', 'P2TR'];
|
|
23
|
-
//# sourceMappingURL=bitcoin.js.map
|
package/dist/bitcoin/index.d.ts
CHANGED
package/dist/bitcoin/index.js
CHANGED
|
@@ -28,4 +28,3 @@ export type ChainKey = (typeof ChainKeys)[keyof typeof ChainKeys];
|
|
|
28
28
|
export declare const CHAIN_KEYS: ("0xa86a.avax" | "0xa4b1.arbitrum" | "0x2105.base" | "0x38.bsc" | "injective-1" | "sonic" | "0x1.icon" | "sui" | "0xa.optimism" | "0x89.polygon" | "solana" | "stellar" | "hyper" | "lightlink" | "near" | "ethereum" | "bitcoin" | "redbelly" | "0x2019.kaia" | "stacks")[];
|
|
29
29
|
export declare const spokeChainKeysSet: Set<"0xa86a.avax" | "0xa4b1.arbitrum" | "0x2105.base" | "0x38.bsc" | "injective-1" | "sonic" | "0x1.icon" | "sui" | "0xa.optimism" | "0x89.polygon" | "solana" | "stellar" | "hyper" | "lightlink" | "near" | "ethereum" | "bitcoin" | "redbelly" | "0x2019.kaia" | "stacks">;
|
|
30
30
|
export type ChainType = (typeof ChainTypeArr)[number];
|
|
31
|
-
//# sourceMappingURL=chain-keys.d.ts.map
|
package/dist/chains/chains.d.ts
CHANGED
|
@@ -562,6 +562,15 @@ export declare const spokeChainConfig: {
|
|
|
562
562
|
readonly hubAsset: "0x7A1A5555842Ad2D0eD274d09b5c4406a95799D5d";
|
|
563
563
|
readonly vault: "0x7A1A5555842Ad2D0eD274d09b5c4406a95799D5d";
|
|
564
564
|
};
|
|
565
|
+
readonly sodaWBTC: {
|
|
566
|
+
readonly symbol: "sodaWBTC";
|
|
567
|
+
readonly name: "Soda Wrapped BTC";
|
|
568
|
+
readonly decimals: 18;
|
|
569
|
+
readonly address: "0x811C3fCc13f9c2a23AE2Ae2DCadacFAC6eb5f0eB";
|
|
570
|
+
readonly chainKey: "sonic";
|
|
571
|
+
readonly hubAsset: "0x811C3fCc13f9c2a23AE2Ae2DCadacFAC6eb5f0eB";
|
|
572
|
+
readonly vault: "0x811C3fCc13f9c2a23AE2Ae2DCadacFAC6eb5f0eB";
|
|
573
|
+
};
|
|
565
574
|
readonly sodaSOL: {
|
|
566
575
|
readonly symbol: "sodaSOL";
|
|
567
576
|
readonly name: "Soda SOL";
|
|
@@ -709,7 +718,7 @@ export declare const spokeChainConfig: {
|
|
|
709
718
|
readonly sodaNEAR: {
|
|
710
719
|
readonly symbol: "sodaNEAR";
|
|
711
720
|
readonly name: "SODA NEAR";
|
|
712
|
-
readonly decimals:
|
|
721
|
+
readonly decimals: 18;
|
|
713
722
|
readonly address: "0xf4ba497c9b805e4bd88a8a9e6a7b8f74984c3e39";
|
|
714
723
|
readonly chainKey: "sonic";
|
|
715
724
|
readonly hubAsset: "0xf4ba497c9b805e4bd88a8a9e6a7b8f74984c3e39";
|
|
@@ -1114,13 +1123,85 @@ export declare const spokeChainConfig: {
|
|
|
1114
1123
|
readonly hubAsset: "0x0076b67235bfc69b649d29dd7cb66e5b92b618aa";
|
|
1115
1124
|
readonly vault: "0x0076b67235bfc69b649d29dd7cb66e5b92b618aa";
|
|
1116
1125
|
};
|
|
1126
|
+
readonly CRCLx: {
|
|
1127
|
+
readonly symbol: "CRCLx";
|
|
1128
|
+
readonly name: "Circle xStock";
|
|
1129
|
+
readonly decimals: 8;
|
|
1130
|
+
readonly address: "XsueG8BtpquVJX9LVLLEGuViXUungE6WmK5YZ3p3bd1";
|
|
1131
|
+
readonly chainKey: "solana";
|
|
1132
|
+
readonly hubAsset: "0x64659130a3373b3527146b38fc1fccf017bc0c61";
|
|
1133
|
+
readonly vault: "0x64659130a3373b3527146b38fc1fccf017bc0c61";
|
|
1134
|
+
};
|
|
1135
|
+
readonly TSLAx: {
|
|
1136
|
+
readonly symbol: "TSLAx";
|
|
1137
|
+
readonly name: "Tesla xStock";
|
|
1138
|
+
readonly decimals: 8;
|
|
1139
|
+
readonly address: "XsDoVfqeBukxuZHWhdvWHBhgEHjGNst4MLodqsJHzoB";
|
|
1140
|
+
readonly chainKey: "solana";
|
|
1141
|
+
readonly hubAsset: "0x3cc867f6f4d1817b6230b781125301363fce370c";
|
|
1142
|
+
readonly vault: "0x3cc867f6f4d1817b6230b781125301363fce370c";
|
|
1143
|
+
};
|
|
1144
|
+
readonly SPYx: {
|
|
1145
|
+
readonly symbol: "SPYx";
|
|
1146
|
+
readonly name: "SP500 xStock";
|
|
1147
|
+
readonly decimals: 8;
|
|
1148
|
+
readonly address: "XsoCS1TfEyfFhfvj8EtZ528L3CaKBDBRqRapnBbDF2W";
|
|
1149
|
+
readonly chainKey: "solana";
|
|
1150
|
+
readonly hubAsset: "0xea66dbe82ebcb6c3a55b2db3d722b676be63a26e";
|
|
1151
|
+
readonly vault: "0xea66dbe82ebcb6c3a55b2db3d722b676be63a26e";
|
|
1152
|
+
};
|
|
1153
|
+
readonly NVDAx: {
|
|
1154
|
+
readonly symbol: "NVDAx";
|
|
1155
|
+
readonly name: "NVIDIA xStock";
|
|
1156
|
+
readonly decimals: 8;
|
|
1157
|
+
readonly address: "Xsc9qvGR1efVDFGLrVsmkzv3qi45LTBjeUKSPmx9qEh";
|
|
1158
|
+
readonly chainKey: "solana";
|
|
1159
|
+
readonly hubAsset: "0x48303c90f4136bc3101b308c8b50c55745aaf317";
|
|
1160
|
+
readonly vault: "0x48303c90f4136bc3101b308c8b50c55745aaf317";
|
|
1161
|
+
};
|
|
1162
|
+
readonly QQQx: {
|
|
1163
|
+
readonly symbol: "QQQx";
|
|
1164
|
+
readonly name: "Nasdaq xStock";
|
|
1165
|
+
readonly decimals: 8;
|
|
1166
|
+
readonly address: "Xs8S1uUs1zvS2p7iwtsG3b6fkhpvmwz4GYU3gWAmWHZ";
|
|
1167
|
+
readonly chainKey: "solana";
|
|
1168
|
+
readonly hubAsset: "0x4448b894740198ab76c83c8850d73f7dc8e4b9b3";
|
|
1169
|
+
readonly vault: "0x4448b894740198ab76c83c8850d73f7dc8e4b9b3";
|
|
1170
|
+
};
|
|
1171
|
+
readonly MSTRx: {
|
|
1172
|
+
readonly symbol: "MSTRx";
|
|
1173
|
+
readonly name: "MicroStrategy xStock";
|
|
1174
|
+
readonly decimals: 8;
|
|
1175
|
+
readonly address: "XsP7xzNPvEHS1m6qfanPUGjNmdnmsLKEoNAnHjdxxyZ";
|
|
1176
|
+
readonly chainKey: "solana";
|
|
1177
|
+
readonly hubAsset: "0xc46c34961802355c5223a115568fdf18a51ad6f6";
|
|
1178
|
+
readonly vault: "0xc46c34961802355c5223a115568fdf18a51ad6f6";
|
|
1179
|
+
};
|
|
1180
|
+
readonly COINx: {
|
|
1181
|
+
readonly symbol: "COINx";
|
|
1182
|
+
readonly name: "Coinbase xStock";
|
|
1183
|
+
readonly decimals: 8;
|
|
1184
|
+
readonly address: "Xs7ZdzSHLU9ftNJsii5fCeJhoRWSC32SQGzGQtePxNu";
|
|
1185
|
+
readonly chainKey: "solana";
|
|
1186
|
+
readonly hubAsset: "0xf444586e95166da0754052f03f344cf1152abe7d";
|
|
1187
|
+
readonly vault: "0xf444586e95166da0754052f03f344cf1152abe7d";
|
|
1188
|
+
};
|
|
1189
|
+
readonly GOOGLx: {
|
|
1190
|
+
readonly symbol: "GOOGLx";
|
|
1191
|
+
readonly name: "Alphabet xStock";
|
|
1192
|
+
readonly decimals: 8;
|
|
1193
|
+
readonly address: "XsCPL9dNWBMvFtTmwcCA5v3xWPSMEBCszbQdiLLq6aN";
|
|
1194
|
+
readonly chainKey: "solana";
|
|
1195
|
+
readonly hubAsset: "0x024230dd63b27df90d988d6f37a69d4de627ce89";
|
|
1196
|
+
readonly vault: "0x024230dd63b27df90d988d6f37a69d4de627ce89";
|
|
1197
|
+
};
|
|
1117
1198
|
};
|
|
1118
1199
|
readonly gasPrice: "500000";
|
|
1119
1200
|
readonly rpcUrl: "https://api.mainnet-beta.solana.com";
|
|
1120
1201
|
readonly walletAddress: "";
|
|
1121
1202
|
readonly pollingConfig: {
|
|
1122
1203
|
readonly pollingIntervalMs: 750;
|
|
1123
|
-
readonly maxTimeoutMs:
|
|
1204
|
+
readonly maxTimeoutMs: 15000;
|
|
1124
1205
|
};
|
|
1125
1206
|
};
|
|
1126
1207
|
readonly "0xa86a.avax": {
|
|
@@ -1271,6 +1352,7 @@ export declare const spokeChainConfig: {
|
|
|
1271
1352
|
readonly chainKey: "0xa4b1.arbitrum";
|
|
1272
1353
|
readonly hubAsset: "0x96Fc8540736f1598b7E235e6dE8814062b3b5d3B";
|
|
1273
1354
|
readonly vault: "0x7A1A5555842Ad2D0eD274d09b5c4406a95799D5d";
|
|
1355
|
+
readonly access: "withdrawOnly";
|
|
1274
1356
|
};
|
|
1275
1357
|
readonly WBTC: {
|
|
1276
1358
|
readonly symbol: "WBTC";
|
|
@@ -1279,7 +1361,17 @@ export declare const spokeChainConfig: {
|
|
|
1279
1361
|
readonly address: "0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f";
|
|
1280
1362
|
readonly chainKey: "0xa4b1.arbitrum";
|
|
1281
1363
|
readonly hubAsset: "0xfB0ACB1b2720B620935F50a6dd3F7FEA52b2FCBe";
|
|
1364
|
+
readonly vault: "0x811C3fCc13f9c2a23AE2Ae2DCadacFAC6eb5f0eB";
|
|
1365
|
+
};
|
|
1366
|
+
readonly WBTC_LEGACY: {
|
|
1367
|
+
readonly symbol: "WBTC.legacy";
|
|
1368
|
+
readonly name: "Wrapped BTC (Legacy)";
|
|
1369
|
+
readonly decimals: 8;
|
|
1370
|
+
readonly address: "0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f";
|
|
1371
|
+
readonly chainKey: "0xa4b1.arbitrum";
|
|
1372
|
+
readonly hubAsset: "0xfB0ACB1b2720B620935F50a6dd3F7FEA52b2FCBe";
|
|
1282
1373
|
readonly vault: "0x7A1A5555842Ad2D0eD274d09b5c4406a95799D5d";
|
|
1374
|
+
readonly access: "withdrawOnly";
|
|
1283
1375
|
};
|
|
1284
1376
|
readonly USDC: {
|
|
1285
1377
|
readonly symbol: "USDC";
|
|
@@ -1461,6 +1553,7 @@ export declare const spokeChainConfig: {
|
|
|
1461
1553
|
readonly chainKey: "0x2105.base";
|
|
1462
1554
|
readonly hubAsset: "0x2803a23a3BA6b09e57D1c71deC0D9eFdBB00A27F";
|
|
1463
1555
|
readonly vault: "0x7A1A5555842Ad2D0eD274d09b5c4406a95799D5d";
|
|
1556
|
+
readonly access: "withdrawOnly";
|
|
1464
1557
|
};
|
|
1465
1558
|
readonly SODA: {
|
|
1466
1559
|
readonly symbol: "SODA";
|
|
@@ -2844,7 +2937,17 @@ export declare const spokeChainConfig: {
|
|
|
2844
2937
|
readonly address: "0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599";
|
|
2845
2938
|
readonly chainKey: "ethereum";
|
|
2846
2939
|
readonly hubAsset: "0x4ccbe4c2cf2aeed19314790622efd71dc0b67acb";
|
|
2940
|
+
readonly vault: "0x811C3fCc13f9c2a23AE2Ae2DCadacFAC6eb5f0eB";
|
|
2941
|
+
};
|
|
2942
|
+
readonly WBTC_LEGACY: {
|
|
2943
|
+
readonly symbol: "WBTC.legacy";
|
|
2944
|
+
readonly name: "Wrapped Bitcoin (Legacy)";
|
|
2945
|
+
readonly decimals: 8;
|
|
2946
|
+
readonly address: "0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599";
|
|
2947
|
+
readonly chainKey: "ethereum";
|
|
2948
|
+
readonly hubAsset: "0x4ccbe4c2cf2aeed19314790622efd71dc0b67acb";
|
|
2847
2949
|
readonly vault: "0x7A1A5555842Ad2D0eD274d09b5c4406a95799D5d";
|
|
2950
|
+
readonly access: "withdrawOnly";
|
|
2848
2951
|
};
|
|
2849
2952
|
readonly sUSDat: {
|
|
2850
2953
|
readonly symbol: "sUSDat";
|
|
@@ -3235,6 +3338,15 @@ export declare const hubConfig: {
|
|
|
3235
3338
|
readonly hubAsset: "0x7A1A5555842Ad2D0eD274d09b5c4406a95799D5d";
|
|
3236
3339
|
readonly vault: "0x7A1A5555842Ad2D0eD274d09b5c4406a95799D5d";
|
|
3237
3340
|
};
|
|
3341
|
+
readonly sodaWBTC: {
|
|
3342
|
+
readonly symbol: "sodaWBTC";
|
|
3343
|
+
readonly name: "Soda Wrapped BTC";
|
|
3344
|
+
readonly decimals: 18;
|
|
3345
|
+
readonly address: "0x811C3fCc13f9c2a23AE2Ae2DCadacFAC6eb5f0eB";
|
|
3346
|
+
readonly chainKey: "sonic";
|
|
3347
|
+
readonly hubAsset: "0x811C3fCc13f9c2a23AE2Ae2DCadacFAC6eb5f0eB";
|
|
3348
|
+
readonly vault: "0x811C3fCc13f9c2a23AE2Ae2DCadacFAC6eb5f0eB";
|
|
3349
|
+
};
|
|
3238
3350
|
readonly sodaSOL: {
|
|
3239
3351
|
readonly symbol: "sodaSOL";
|
|
3240
3352
|
readonly name: "Soda SOL";
|
|
@@ -3382,7 +3494,7 @@ export declare const hubConfig: {
|
|
|
3382
3494
|
readonly sodaNEAR: {
|
|
3383
3495
|
readonly symbol: "sodaNEAR";
|
|
3384
3496
|
readonly name: "SODA NEAR";
|
|
3385
|
-
readonly decimals:
|
|
3497
|
+
readonly decimals: 18;
|
|
3386
3498
|
readonly address: "0xf4ba497c9b805e4bd88a8a9e6a7b8f74984c3e39";
|
|
3387
3499
|
readonly chainKey: "sonic";
|
|
3388
3500
|
readonly hubAsset: "0xf4ba497c9b805e4bd88a8a9e6a7b8f74984c3e39";
|
|
@@ -3488,4 +3600,3 @@ export declare const hubConfig: {
|
|
|
3488
3600
|
};
|
|
3489
3601
|
export type IntentRelayChainId = (typeof RelayChainIdMap)[keyof typeof RelayChainIdMap];
|
|
3490
3602
|
export type IntentRelayChainIdMap = Record<ChainKey, IntentRelayChainId>;
|
|
3491
|
-
//# sourceMappingURL=chains.d.ts.map
|
package/dist/chains/chains.js
CHANGED
|
@@ -363,7 +363,7 @@ export const spokeChainConfig = {
|
|
|
363
363
|
walletAddress: '',
|
|
364
364
|
pollingConfig: {
|
|
365
365
|
pollingIntervalMs: 750,
|
|
366
|
-
maxTimeoutMs:
|
|
366
|
+
maxTimeoutMs: 15_000, // aligns with blockhash expiry timeout.
|
|
367
367
|
},
|
|
368
368
|
},
|
|
369
369
|
[ChainKeys.AVALANCHE_MAINNET]: {
|
|
@@ -709,4 +709,3 @@ export const hubConfig = {
|
|
|
709
709
|
},
|
|
710
710
|
rpcUrl: 'https://rpc.soniclabs.com',
|
|
711
711
|
};
|
|
712
|
-
//# sourceMappingURL=chains.js.map
|
package/dist/chains/index.d.ts
CHANGED
package/dist/chains/index.js
CHANGED