@sodax/types 2.0.0-rc.19 → 2.0.0-rc.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/backend/backendApiV2.d.ts +3 -3
- package/dist/chains/chain-keys.d.ts +3 -2
- package/dist/chains/chain-keys.js +1 -0
- package/dist/chains/chains.d.ts +105 -7
- package/dist/chains/chains.js +31 -1
- package/dist/chains/tokens.d.ts +104 -1
- package/dist/chains/tokens.js +49 -0
- package/dist/common/constants.d.ts +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/moneyMarket/moneyMarket.d.ts +68 -2
- package/dist/moneyMarket/moneyMarket.js +5 -0
- package/dist/shared/shared.d.ts +21 -0
- package/dist/sodax-config/sodax-config.d.ts +127 -1
- package/dist/swap/swap.d.ts +51 -0
- package/dist/swap/swap.js +8 -0
- package/package.json +1 -1
|
@@ -448,7 +448,7 @@ export interface SubmitTxStatusQueryV2 {
|
|
|
448
448
|
srcChainKey: string;
|
|
449
449
|
}
|
|
450
450
|
/** Lifecycle status of a submitted swap tx. */
|
|
451
|
-
export type SubmitSwapTxStatusV2 = 'pending' | 'relaying' | 'relayed' | 'posting_execution' | '
|
|
451
|
+
export type SubmitSwapTxStatusV2 = 'pending' | 'relaying' | 'relayed' | 'posting_execution' | 'posted_execution' | 'solved' | 'failed';
|
|
452
452
|
/** Lifecycle status of a cross-chain relay packet. */
|
|
453
453
|
export type PacketDataStatusV2 = 'pending' | 'validating' | 'executing' | 'executed';
|
|
454
454
|
/** Relay packet data attached to a submit-tx processing result (snake_case as stored). */
|
|
@@ -474,7 +474,7 @@ export interface PacketDataV2 {
|
|
|
474
474
|
/** Packet payload (hex). */
|
|
475
475
|
payload: string;
|
|
476
476
|
}
|
|
477
|
-
/** Processing result for a submitted swap tx (present when
|
|
477
|
+
/** Processing result for a submitted swap tx (present when solved). */
|
|
478
478
|
export interface SubmitTxStatusResultV2 {
|
|
479
479
|
/** Destination intent tx hash. */
|
|
480
480
|
dstIntentTxHash: string;
|
|
@@ -499,7 +499,7 @@ export interface SubmitTxStatusDataV2 {
|
|
|
499
499
|
processingAttempts: number;
|
|
500
500
|
/** ISO 8601 timestamp set when the swap exhausted its processing budget and was abandoned. */
|
|
501
501
|
abandonedAt?: string;
|
|
502
|
-
/** Processing result (present when
|
|
502
|
+
/** Processing result (present when solved). */
|
|
503
503
|
result?: SubmitTxStatusResultV2;
|
|
504
504
|
/** User-facing hint when status is failed or the swap was abandoned. */
|
|
505
505
|
userMessage?: string;
|
|
@@ -23,8 +23,9 @@ export declare const ChainKeys: {
|
|
|
23
23
|
readonly REDBELLY_MAINNET: "redbelly";
|
|
24
24
|
readonly KAIA_MAINNET: "0x2019.kaia";
|
|
25
25
|
readonly STACKS_MAINNET: "stacks";
|
|
26
|
+
readonly HEDERA_MAINNET: "hedera";
|
|
26
27
|
};
|
|
27
28
|
export type ChainKey = (typeof ChainKeys)[keyof typeof ChainKeys];
|
|
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
|
-
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">;
|
|
29
|
+
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" | "hedera")[];
|
|
30
|
+
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" | "hedera">;
|
|
30
31
|
export type ChainType = (typeof ChainTypeArr)[number];
|
|
@@ -33,6 +33,7 @@ export const ChainKeys = {
|
|
|
33
33
|
REDBELLY_MAINNET: 'redbelly',
|
|
34
34
|
KAIA_MAINNET: '0x2019.kaia',
|
|
35
35
|
STACKS_MAINNET: 'stacks',
|
|
36
|
+
HEDERA_MAINNET: 'hedera',
|
|
36
37
|
};
|
|
37
38
|
export const CHAIN_KEYS = Object.values(ChainKeys);
|
|
38
39
|
export const spokeChainKeysSet = new Set(CHAIN_KEYS);
|
package/dist/chains/chains.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Chain types
|
|
3
3
|
* Forbidden to import types from other packages in this file (exception for shared types)!
|
|
4
4
|
*/
|
|
5
|
-
import type { Address, Hex, TxPollingConfig } from '../shared/shared.js';
|
|
5
|
+
import type { Address, Hex, RpcFailoverConfig, TxPollingConfig } from '../shared/shared.js';
|
|
6
6
|
import { ChainKeys, CHAIN_KEYS, type ChainKey, type ChainType } from './chain-keys.js';
|
|
7
7
|
import type { XToken } from './tokens.js';
|
|
8
8
|
export * from './chain-keys.js';
|
|
@@ -27,9 +27,10 @@ export declare const RelayChainIdMap: {
|
|
|
27
27
|
readonly redbelly: 726564n;
|
|
28
28
|
readonly "0x2019.kaia": 27489n;
|
|
29
29
|
readonly stacks: 60n;
|
|
30
|
+
readonly hedera: 18501n;
|
|
30
31
|
};
|
|
31
32
|
export type IntentChainId = (typeof RelayChainIdMap)[keyof typeof RelayChainIdMap];
|
|
32
|
-
export declare const INTENT_CHAIN_IDS: (6n | 23n | 30n | 4n | 19n | 146n | 24n | 5n | 1n | 21n | 27n | 1768124270n | 26745n | 27756n | 15n | 2n | 627463n | 726564n | 27489n | 60n)[];
|
|
33
|
+
export declare const INTENT_CHAIN_IDS: (6n | 23n | 30n | 4n | 19n | 146n | 24n | 5n | 1n | 21n | 27n | 1768124270n | 26745n | 27756n | 15n | 2n | 627463n | 726564n | 27489n | 60n | 18501n)[];
|
|
33
34
|
export declare const IntentRelayChainIdToChainKey: Map<IntentRelayChainId, ChainKey>;
|
|
34
35
|
/**
|
|
35
36
|
* Base URL for default chain logos hosted in the `@sodax/assets` package.
|
|
@@ -318,6 +319,20 @@ export declare const baseChainInfo: {
|
|
|
318
319
|
readonly contractUrl: "https://explorer.hiro.so/txid/";
|
|
319
320
|
};
|
|
320
321
|
};
|
|
322
|
+
readonly hedera: {
|
|
323
|
+
readonly name: "Hedera";
|
|
324
|
+
readonly key: "hedera";
|
|
325
|
+
readonly type: "EVM";
|
|
326
|
+
readonly chainId: 295;
|
|
327
|
+
readonly mainnet: true;
|
|
328
|
+
readonly logo: string;
|
|
329
|
+
readonly explorer: {
|
|
330
|
+
readonly baseUrl: "https://hashscan.io/mainnet/";
|
|
331
|
+
readonly txUrl: "https://hashscan.io/mainnet/transaction/";
|
|
332
|
+
readonly addressUrl: "https://hashscan.io/mainnet/account/";
|
|
333
|
+
readonly contractUrl: "https://hashscan.io/mainnet/contract/";
|
|
334
|
+
};
|
|
335
|
+
};
|
|
321
336
|
};
|
|
322
337
|
type ChainKeysByType<T extends ChainType> = {
|
|
323
338
|
[K in keyof typeof baseChainInfo]: (typeof baseChainInfo)[K]['type'] extends T ? K : never;
|
|
@@ -341,8 +356,8 @@ export type BitcoinChainKey = ChainKeysByType<'BITCOIN'>;
|
|
|
341
356
|
export declare const HUB_CHAIN_KEY: "sonic";
|
|
342
357
|
export declare const EVM_CHAIN_KEYS: ChainKeysByType<"EVM">[];
|
|
343
358
|
export declare const EVM_CHAIN_KEYS_SET: Set<ChainKeysByType<"EVM">>;
|
|
344
|
-
export declare const EVM_SPOKE_ONLY_CHAIN_KEYS: ("0xa86a.avax" | "0xa4b1.arbitrum" | "0x2105.base" | "0x38.bsc" | "0xa.optimism" | "0x89.polygon" | "hyper" | "lightlink" | "ethereum" | "redbelly" | "0x2019.kaia")[];
|
|
345
|
-
export declare const EVM_SPOKE_ONLY_CHAIN_KEYS_SET: Set<"0xa86a.avax" | "0xa4b1.arbitrum" | "0x2105.base" | "0x38.bsc" | "0xa.optimism" | "0x89.polygon" | "hyper" | "lightlink" | "ethereum" | "redbelly" | "0x2019.kaia">;
|
|
359
|
+
export declare const EVM_SPOKE_ONLY_CHAIN_KEYS: ("0xa86a.avax" | "0xa4b1.arbitrum" | "0x2105.base" | "0x38.bsc" | "0xa.optimism" | "0x89.polygon" | "hyper" | "lightlink" | "ethereum" | "redbelly" | "0x2019.kaia" | "hedera")[];
|
|
360
|
+
export declare const EVM_SPOKE_ONLY_CHAIN_KEYS_SET: Set<"0xa86a.avax" | "0xa4b1.arbitrum" | "0x2105.base" | "0x38.bsc" | "0xa.optimism" | "0x89.polygon" | "hyper" | "lightlink" | "ethereum" | "redbelly" | "0x2019.kaia" | "hedera">;
|
|
346
361
|
export declare const SONIC_CHAIN_KEYS: readonly ["sonic"];
|
|
347
362
|
export declare const SONIC_CHAIN_KEYS_SET: Set<"sonic">;
|
|
348
363
|
export declare const SOLANA_CHAIN_KEYS: "solana"[];
|
|
@@ -409,7 +424,7 @@ export type HubConfig = {
|
|
|
409
424
|
nativeToken: Address;
|
|
410
425
|
wrappedNativeToken: Address;
|
|
411
426
|
rpcUrl: string;
|
|
412
|
-
} & BaseSpokeChainConfig<'EVM'
|
|
427
|
+
} & BaseSpokeChainConfig<'EVM'> & RpcFailoverConfig;
|
|
413
428
|
export type EvmSpokeChainConfig = BaseSpokeChainConfig<'EVM'> & {
|
|
414
429
|
addresses: {
|
|
415
430
|
assetManager: Address;
|
|
@@ -425,7 +440,7 @@ export type SonicSpokeChainConfig = BaseSpokeChainConfig<'EVM'> & {
|
|
|
425
440
|
};
|
|
426
441
|
nativeToken: Address;
|
|
427
442
|
rpcUrl: string;
|
|
428
|
-
};
|
|
443
|
+
} & RpcFailoverConfig;
|
|
429
444
|
export type SolanaChainConfig = BaseSpokeChainConfig<'SOLANA'> & {
|
|
430
445
|
addresses: {
|
|
431
446
|
assetManager: string;
|
|
@@ -807,6 +822,15 @@ export declare const spokeChainConfig: {
|
|
|
807
822
|
readonly hubAsset: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
|
|
808
823
|
readonly vault: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
|
|
809
824
|
};
|
|
825
|
+
readonly sodaHBAR: {
|
|
826
|
+
readonly symbol: "sodaHBAR";
|
|
827
|
+
readonly name: "Soda HBAR";
|
|
828
|
+
readonly decimals: 18;
|
|
829
|
+
readonly address: "0x3BB956cc8922E1Ba4148dc10eD1b4Fa19aa599c4";
|
|
830
|
+
readonly chainKey: "sonic";
|
|
831
|
+
readonly hubAsset: "0x3BB956cc8922E1Ba4148dc10eD1b4Fa19aa599c4";
|
|
832
|
+
readonly vault: "0x3BB956cc8922E1Ba4148dc10eD1b4Fa19aa599c4";
|
|
833
|
+
};
|
|
810
834
|
readonly sodaJITOSOL: {
|
|
811
835
|
readonly symbol: "sodaJITOSOL";
|
|
812
836
|
readonly name: "Soda JITOSOL";
|
|
@@ -3369,11 +3393,76 @@ export declare const spokeChainConfig: {
|
|
|
3369
3393
|
readonly maxTimeoutMs: 120000;
|
|
3370
3394
|
};
|
|
3371
3395
|
};
|
|
3396
|
+
readonly hedera: {
|
|
3397
|
+
readonly chain: {
|
|
3398
|
+
readonly name: "Hedera";
|
|
3399
|
+
readonly key: "hedera";
|
|
3400
|
+
readonly type: "EVM";
|
|
3401
|
+
readonly chainId: 295;
|
|
3402
|
+
readonly mainnet: true;
|
|
3403
|
+
readonly logo: string;
|
|
3404
|
+
readonly explorer: {
|
|
3405
|
+
readonly baseUrl: "https://hashscan.io/mainnet/";
|
|
3406
|
+
readonly txUrl: "https://hashscan.io/mainnet/transaction/";
|
|
3407
|
+
readonly addressUrl: "https://hashscan.io/mainnet/account/";
|
|
3408
|
+
readonly contractUrl: "https://hashscan.io/mainnet/contract/";
|
|
3409
|
+
};
|
|
3410
|
+
};
|
|
3411
|
+
readonly rpcUrl: "https://mainnet.hashio.io/api";
|
|
3412
|
+
readonly addresses: {
|
|
3413
|
+
readonly assetManager: "0x0df73542cC68bDC01b361d231c60F726B0e0bC05";
|
|
3414
|
+
readonly connection: "0x4555aC13D7338D9E671584C1D118c06B2a3C88eD";
|
|
3415
|
+
};
|
|
3416
|
+
readonly nativeToken: "0x0000000000000000000000000000000000000000";
|
|
3417
|
+
readonly bnUSD: "0x0000000000000000000000000000000000a0286a";
|
|
3418
|
+
readonly supportedTokens: {
|
|
3419
|
+
readonly HBAR: {
|
|
3420
|
+
readonly symbol: "HBAR";
|
|
3421
|
+
readonly name: "HBAR";
|
|
3422
|
+
readonly decimals: 8;
|
|
3423
|
+
readonly address: "0x0000000000000000000000000000000000000000";
|
|
3424
|
+
readonly chainKey: "hedera";
|
|
3425
|
+
readonly hubAsset: "0x5c18c543b6B6EA97dE739F48C49CfC291B3AD465";
|
|
3426
|
+
readonly vault: "0x3BB956cc8922E1Ba4148dc10eD1b4Fa19aa599c4";
|
|
3427
|
+
};
|
|
3428
|
+
readonly bnUSD: {
|
|
3429
|
+
readonly symbol: "bnUSD";
|
|
3430
|
+
readonly name: "bnUSD";
|
|
3431
|
+
readonly decimals: 8;
|
|
3432
|
+
readonly address: "0x0000000000000000000000000000000000a0286a";
|
|
3433
|
+
readonly chainKey: "hedera";
|
|
3434
|
+
readonly hubAsset: "0x44be1984cd279334a630469fa357305c7dba2837";
|
|
3435
|
+
readonly vault: "0xE801CA34E19aBCbFeA12025378D19c4FBE250131";
|
|
3436
|
+
};
|
|
3437
|
+
readonly SODA: {
|
|
3438
|
+
readonly symbol: "SODA";
|
|
3439
|
+
readonly name: "SODAX";
|
|
3440
|
+
readonly decimals: 8;
|
|
3441
|
+
readonly address: "0x0000000000000000000000000000000000a02869";
|
|
3442
|
+
readonly chainKey: "hedera";
|
|
3443
|
+
readonly hubAsset: "0x1217721376839dbffe78093ddd5d8e50d0239b3f";
|
|
3444
|
+
readonly vault: "0x21685E341DE7844135329914Be6Bd8D16982d834";
|
|
3445
|
+
};
|
|
3446
|
+
readonly USDC: {
|
|
3447
|
+
readonly symbol: "USDC";
|
|
3448
|
+
readonly name: "USD Coin";
|
|
3449
|
+
readonly decimals: 6;
|
|
3450
|
+
readonly address: "0x000000000000000000000000000000000006f89a";
|
|
3451
|
+
readonly chainKey: "hedera";
|
|
3452
|
+
readonly hubAsset: "0xafafae0c1476424c4b81f09095bd7dcb858047c8";
|
|
3453
|
+
readonly vault: "0xAbbb91c0617090F0028BDC27597Cd0D038F3A833";
|
|
3454
|
+
};
|
|
3455
|
+
};
|
|
3456
|
+
readonly pollingConfig: {
|
|
3457
|
+
readonly pollingIntervalMs: 2000;
|
|
3458
|
+
readonly maxTimeoutMs: 60000;
|
|
3459
|
+
};
|
|
3460
|
+
};
|
|
3372
3461
|
};
|
|
3373
3462
|
export declare const supportedSpokeChains: SpokeChainKey[];
|
|
3374
3463
|
export type GetChainType<C extends SpokeChainKey | ChainType | undefined> = C extends undefined ? undefined : C extends ChainType ? C : C extends SpokeChainKey ? (typeof spokeChainConfig)[C]['chain']['type'] : ChainType;
|
|
3375
3464
|
export declare const bnUSDLegacySpokeChainIds: readonly ["0x1.icon", "sui", "stellar"];
|
|
3376
|
-
export declare const newbnUSDSpokeChainIds: ("0xa86a.avax" | "0xa4b1.arbitrum" | "0x2105.base" | "0x38.bsc" | "injective-1" | "sonic" | "sui" | "0xa.optimism" | "0x89.polygon" | "solana" | "stellar" | "hyper" | "lightlink" | "near" | "ethereum" | "bitcoin" | "redbelly" | "0x2019.kaia" | "stacks")[];
|
|
3465
|
+
export declare const newbnUSDSpokeChainIds: ("0xa86a.avax" | "0xa4b1.arbitrum" | "0x2105.base" | "0x38.bsc" | "injective-1" | "sonic" | "sui" | "0xa.optimism" | "0x89.polygon" | "solana" | "stellar" | "hyper" | "lightlink" | "near" | "ethereum" | "bitcoin" | "redbelly" | "0x2019.kaia" | "stacks" | "hedera")[];
|
|
3377
3466
|
export type LegacybnUSDChainId = (typeof bnUSDLegacySpokeChainIds)[number];
|
|
3378
3467
|
export declare const bnUSDLegacyTokens: readonly [{
|
|
3379
3468
|
readonly symbol: "bnUSD (legacy)";
|
|
@@ -3686,6 +3775,15 @@ export declare const hubConfig: {
|
|
|
3686
3775
|
readonly hubAsset: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
|
|
3687
3776
|
readonly vault: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
|
|
3688
3777
|
};
|
|
3778
|
+
readonly sodaHBAR: {
|
|
3779
|
+
readonly symbol: "sodaHBAR";
|
|
3780
|
+
readonly name: "Soda HBAR";
|
|
3781
|
+
readonly decimals: 18;
|
|
3782
|
+
readonly address: "0x3BB956cc8922E1Ba4148dc10eD1b4Fa19aa599c4";
|
|
3783
|
+
readonly chainKey: "sonic";
|
|
3784
|
+
readonly hubAsset: "0x3BB956cc8922E1Ba4148dc10eD1b4Fa19aa599c4";
|
|
3785
|
+
readonly vault: "0x3BB956cc8922E1Ba4148dc10eD1b4Fa19aa599c4";
|
|
3786
|
+
};
|
|
3689
3787
|
readonly sodaJITOSOL: {
|
|
3690
3788
|
readonly symbol: "sodaJITOSOL";
|
|
3691
3789
|
readonly name: "Soda JITOSOL";
|
package/dist/chains/chains.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Chain types
|
|
3
3
|
* Forbidden to import types from other packages in this file (exception for shared types)!
|
|
4
4
|
*/
|
|
5
|
-
import { sonicSupportedTokens, redbellySupportedTokens, solanaSupportedTokens, avalancheSupportedTokens, arbitrumSupportedTokens, baseSupportedTokens, optimismSupportedTokens, bscSupportedTokens, polygonSupportedTokens, hyperevmSupportedTokens, lightlinkSupportedTokens, injectiveSupportedTokens, bitcoinSupportedTokens, stellarSupportedTokens, suiSupportedTokens, iconSupportedTokens, nearSupportedTokens, ethereumSupportedTokens, kaiaSupportedTokens, stacksSupportedTokens, } from './tokens.js';
|
|
5
|
+
import { sonicSupportedTokens, redbellySupportedTokens, solanaSupportedTokens, avalancheSupportedTokens, arbitrumSupportedTokens, baseSupportedTokens, optimismSupportedTokens, bscSupportedTokens, polygonSupportedTokens, hyperevmSupportedTokens, lightlinkSupportedTokens, injectiveSupportedTokens, bitcoinSupportedTokens, stellarSupportedTokens, suiSupportedTokens, iconSupportedTokens, nearSupportedTokens, ethereumSupportedTokens, kaiaSupportedTokens, stacksSupportedTokens, hederaSupportedTokens, } from './tokens.js';
|
|
6
6
|
import { ChainKeys, CHAIN_KEYS } from './chain-keys.js';
|
|
7
7
|
export * from './chain-keys.js';
|
|
8
8
|
// NOTE: This is not the same as the actual chain ids (wormhole based ids), only used for intent relay
|
|
@@ -27,6 +27,7 @@ export const RelayChainIdMap = {
|
|
|
27
27
|
[ChainKeys.REDBELLY_MAINNET]: 726564n,
|
|
28
28
|
[ChainKeys.KAIA_MAINNET]: 27489n,
|
|
29
29
|
[ChainKeys.STACKS_MAINNET]: 60n,
|
|
30
|
+
[ChainKeys.HEDERA_MAINNET]: 18501n,
|
|
30
31
|
};
|
|
31
32
|
export const INTENT_CHAIN_IDS = Object.values(RelayChainIdMap);
|
|
32
33
|
export const IntentRelayChainIdToChainKey = new Map(Object.entries(RelayChainIdMap).map(([chainKey, chainId]) => [chainId, chainKey]));
|
|
@@ -318,6 +319,20 @@ export const baseChainInfo = {
|
|
|
318
319
|
contractUrl: 'https://explorer.hiro.so/txid/',
|
|
319
320
|
},
|
|
320
321
|
},
|
|
322
|
+
[ChainKeys.HEDERA_MAINNET]: {
|
|
323
|
+
name: 'Hedera',
|
|
324
|
+
key: ChainKeys.HEDERA_MAINNET,
|
|
325
|
+
type: 'EVM',
|
|
326
|
+
chainId: 295,
|
|
327
|
+
mainnet: true,
|
|
328
|
+
logo: chainLogo(ChainKeys.HEDERA_MAINNET),
|
|
329
|
+
explorer: {
|
|
330
|
+
baseUrl: 'https://hashscan.io/mainnet/',
|
|
331
|
+
txUrl: 'https://hashscan.io/mainnet/transaction/',
|
|
332
|
+
addressUrl: 'https://hashscan.io/mainnet/account/',
|
|
333
|
+
contractUrl: 'https://hashscan.io/mainnet/contract/',
|
|
334
|
+
},
|
|
335
|
+
},
|
|
321
336
|
};
|
|
322
337
|
const filterChainKeysByType = (type) => CHAIN_KEYS.filter((key) => baseChainInfo[key].type === type);
|
|
323
338
|
export const HUB_CHAIN_KEY = ChainKeys.SONIC_MAINNET;
|
|
@@ -712,6 +727,21 @@ export const spokeChainConfig = {
|
|
|
712
727
|
maxTimeoutMs: 120_000,
|
|
713
728
|
},
|
|
714
729
|
},
|
|
730
|
+
[ChainKeys.HEDERA_MAINNET]: {
|
|
731
|
+
chain: baseChainInfo[ChainKeys.HEDERA_MAINNET],
|
|
732
|
+
rpcUrl: 'https://mainnet.hashio.io/api',
|
|
733
|
+
addresses: {
|
|
734
|
+
assetManager: '0x0df73542cC68bDC01b361d231c60F726B0e0bC05',
|
|
735
|
+
connection: '0x4555aC13D7338D9E671584C1D118c06B2a3C88eD',
|
|
736
|
+
},
|
|
737
|
+
nativeToken: '0x0000000000000000000000000000000000000000',
|
|
738
|
+
bnUSD: '0x0000000000000000000000000000000000a0286a',
|
|
739
|
+
supportedTokens: hederaSupportedTokens,
|
|
740
|
+
pollingConfig: {
|
|
741
|
+
pollingIntervalMs: 2000,
|
|
742
|
+
maxTimeoutMs: 60_000,
|
|
743
|
+
},
|
|
744
|
+
},
|
|
715
745
|
};
|
|
716
746
|
export const supportedSpokeChains = Object.keys(spokeChainConfig);
|
|
717
747
|
// bnUSD Migration configs
|
package/dist/chains/tokens.d.ts
CHANGED
|
@@ -30,7 +30,7 @@ export declare const StatATokenAddresses: {
|
|
|
30
30
|
readonly '0x8ade79c255761971f4057253712b916ab2494275': "0x7A1A5555842Ad2D0eD274d09b5c4406a95799D5d";
|
|
31
31
|
readonly '0x3e102c7d9b46c92abcd4c2e1c70f362b47a201a6': "0x4effB5813271699683C25c734F4daBc45B363709";
|
|
32
32
|
};
|
|
33
|
-
export declare const HubVaultSymbols: readonly ["sodaAVAX", "sodaBNB", "sodaETH", "sodaBTC", "sodaWBTC", "sodaSUI", "sodaINJ", "sodaXLM", "sodaSOL", "sodaSODA", "sodaUSDT", "sodaUSDC", "bnUSD", "sodaPOL", "sodaS", "IbnUSD", "sodaHYPE", "sodaRBNT", "sodaLL", "sodaWEETH", "sodaWSTETH", "sodaNEAR", "sodaKAIA", "sodaSTX", "sodaUSDS", "sodaJITOSOL"];
|
|
33
|
+
export declare const HubVaultSymbols: readonly ["sodaAVAX", "sodaBNB", "sodaETH", "sodaBTC", "sodaWBTC", "sodaSUI", "sodaINJ", "sodaXLM", "sodaSOL", "sodaSODA", "sodaUSDT", "sodaUSDC", "bnUSD", "sodaPOL", "sodaS", "IbnUSD", "sodaHYPE", "sodaRBNT", "sodaLL", "sodaWEETH", "sodaWSTETH", "sodaNEAR", "sodaKAIA", "sodaSTX", "sodaUSDS", "sodaHBAR", "sodaJITOSOL"];
|
|
34
34
|
export type HubVaultSymbol = (typeof HubVaultSymbols)[number];
|
|
35
35
|
export declare const SodaTokens: {
|
|
36
36
|
readonly sodaBNB: {
|
|
@@ -258,6 +258,15 @@ export declare const SodaTokens: {
|
|
|
258
258
|
readonly hubAsset: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
|
|
259
259
|
readonly vault: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
|
|
260
260
|
};
|
|
261
|
+
readonly sodaHBAR: {
|
|
262
|
+
readonly symbol: "sodaHBAR";
|
|
263
|
+
readonly name: "Soda HBAR";
|
|
264
|
+
readonly decimals: 18;
|
|
265
|
+
readonly address: "0x3BB956cc8922E1Ba4148dc10eD1b4Fa19aa599c4";
|
|
266
|
+
readonly chainKey: "sonic";
|
|
267
|
+
readonly hubAsset: "0x3BB956cc8922E1Ba4148dc10eD1b4Fa19aa599c4";
|
|
268
|
+
readonly vault: "0x3BB956cc8922E1Ba4148dc10eD1b4Fa19aa599c4";
|
|
269
|
+
};
|
|
261
270
|
readonly sodaJITOSOL: {
|
|
262
271
|
readonly symbol: "sodaJITOSOL";
|
|
263
272
|
readonly name: "Soda JITOSOL";
|
|
@@ -561,6 +570,15 @@ export declare const sonicSupportedTokens: {
|
|
|
561
570
|
readonly hubAsset: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
|
|
562
571
|
readonly vault: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
|
|
563
572
|
};
|
|
573
|
+
readonly sodaHBAR: {
|
|
574
|
+
readonly symbol: "sodaHBAR";
|
|
575
|
+
readonly name: "Soda HBAR";
|
|
576
|
+
readonly decimals: 18;
|
|
577
|
+
readonly address: "0x3BB956cc8922E1Ba4148dc10eD1b4Fa19aa599c4";
|
|
578
|
+
readonly chainKey: "sonic";
|
|
579
|
+
readonly hubAsset: "0x3BB956cc8922E1Ba4148dc10eD1b4Fa19aa599c4";
|
|
580
|
+
readonly vault: "0x3BB956cc8922E1Ba4148dc10eD1b4Fa19aa599c4";
|
|
581
|
+
};
|
|
564
582
|
readonly sodaJITOSOL: {
|
|
565
583
|
readonly symbol: "sodaJITOSOL";
|
|
566
584
|
readonly name: "Soda JITOSOL";
|
|
@@ -2510,6 +2528,44 @@ export declare const kaiaSupportedTokens: {
|
|
|
2510
2528
|
readonly vault: "0x21685E341DE7844135329914Be6Bd8D16982d834";
|
|
2511
2529
|
};
|
|
2512
2530
|
};
|
|
2531
|
+
export declare const hederaSupportedTokens: {
|
|
2532
|
+
readonly HBAR: {
|
|
2533
|
+
readonly symbol: "HBAR";
|
|
2534
|
+
readonly name: "HBAR";
|
|
2535
|
+
readonly decimals: 8;
|
|
2536
|
+
readonly address: "0x0000000000000000000000000000000000000000";
|
|
2537
|
+
readonly chainKey: "hedera";
|
|
2538
|
+
readonly hubAsset: "0x5c18c543b6B6EA97dE739F48C49CfC291B3AD465";
|
|
2539
|
+
readonly vault: "0x3BB956cc8922E1Ba4148dc10eD1b4Fa19aa599c4";
|
|
2540
|
+
};
|
|
2541
|
+
readonly bnUSD: {
|
|
2542
|
+
readonly symbol: "bnUSD";
|
|
2543
|
+
readonly name: "bnUSD";
|
|
2544
|
+
readonly decimals: 8;
|
|
2545
|
+
readonly address: "0x0000000000000000000000000000000000a0286a";
|
|
2546
|
+
readonly chainKey: "hedera";
|
|
2547
|
+
readonly hubAsset: "0x44be1984cd279334a630469fa357305c7dba2837";
|
|
2548
|
+
readonly vault: "0xE801CA34E19aBCbFeA12025378D19c4FBE250131";
|
|
2549
|
+
};
|
|
2550
|
+
readonly SODA: {
|
|
2551
|
+
readonly symbol: "SODA";
|
|
2552
|
+
readonly name: "SODAX";
|
|
2553
|
+
readonly decimals: 8;
|
|
2554
|
+
readonly address: "0x0000000000000000000000000000000000a02869";
|
|
2555
|
+
readonly chainKey: "hedera";
|
|
2556
|
+
readonly hubAsset: "0x1217721376839dbffe78093ddd5d8e50d0239b3f";
|
|
2557
|
+
readonly vault: "0x21685E341DE7844135329914Be6Bd8D16982d834";
|
|
2558
|
+
};
|
|
2559
|
+
readonly USDC: {
|
|
2560
|
+
readonly symbol: "USDC";
|
|
2561
|
+
readonly name: "USD Coin";
|
|
2562
|
+
readonly decimals: 6;
|
|
2563
|
+
readonly address: "0x000000000000000000000000000000000006f89a";
|
|
2564
|
+
readonly chainKey: "hedera";
|
|
2565
|
+
readonly hubAsset: "0xafafae0c1476424c4b81f09095bd7dcb858047c8";
|
|
2566
|
+
readonly vault: "0xAbbb91c0617090F0028BDC27597Cd0D038F3A833";
|
|
2567
|
+
};
|
|
2568
|
+
};
|
|
2513
2569
|
export declare const stacksSupportedTokens: {
|
|
2514
2570
|
readonly STX: {
|
|
2515
2571
|
readonly symbol: "STX";
|
|
@@ -2811,6 +2867,15 @@ export declare const supportedTokensByChain: {
|
|
|
2811
2867
|
readonly hubAsset: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
|
|
2812
2868
|
readonly vault: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
|
|
2813
2869
|
};
|
|
2870
|
+
readonly sodaHBAR: {
|
|
2871
|
+
readonly symbol: "sodaHBAR";
|
|
2872
|
+
readonly name: "Soda HBAR";
|
|
2873
|
+
readonly decimals: 18;
|
|
2874
|
+
readonly address: "0x3BB956cc8922E1Ba4148dc10eD1b4Fa19aa599c4";
|
|
2875
|
+
readonly chainKey: "sonic";
|
|
2876
|
+
readonly hubAsset: "0x3BB956cc8922E1Ba4148dc10eD1b4Fa19aa599c4";
|
|
2877
|
+
readonly vault: "0x3BB956cc8922E1Ba4148dc10eD1b4Fa19aa599c4";
|
|
2878
|
+
};
|
|
2814
2879
|
readonly sodaJITOSOL: {
|
|
2815
2880
|
readonly symbol: "sodaJITOSOL";
|
|
2816
2881
|
readonly name: "Soda JITOSOL";
|
|
@@ -4807,4 +4872,42 @@ export declare const supportedTokensByChain: {
|
|
|
4807
4872
|
readonly vault: "0xAbbb91c0617090F0028BDC27597Cd0D038F3A833";
|
|
4808
4873
|
};
|
|
4809
4874
|
};
|
|
4875
|
+
readonly hedera: {
|
|
4876
|
+
readonly HBAR: {
|
|
4877
|
+
readonly symbol: "HBAR";
|
|
4878
|
+
readonly name: "HBAR";
|
|
4879
|
+
readonly decimals: 8;
|
|
4880
|
+
readonly address: "0x0000000000000000000000000000000000000000";
|
|
4881
|
+
readonly chainKey: "hedera";
|
|
4882
|
+
readonly hubAsset: "0x5c18c543b6B6EA97dE739F48C49CfC291B3AD465";
|
|
4883
|
+
readonly vault: "0x3BB956cc8922E1Ba4148dc10eD1b4Fa19aa599c4";
|
|
4884
|
+
};
|
|
4885
|
+
readonly bnUSD: {
|
|
4886
|
+
readonly symbol: "bnUSD";
|
|
4887
|
+
readonly name: "bnUSD";
|
|
4888
|
+
readonly decimals: 8;
|
|
4889
|
+
readonly address: "0x0000000000000000000000000000000000a0286a";
|
|
4890
|
+
readonly chainKey: "hedera";
|
|
4891
|
+
readonly hubAsset: "0x44be1984cd279334a630469fa357305c7dba2837";
|
|
4892
|
+
readonly vault: "0xE801CA34E19aBCbFeA12025378D19c4FBE250131";
|
|
4893
|
+
};
|
|
4894
|
+
readonly SODA: {
|
|
4895
|
+
readonly symbol: "SODA";
|
|
4896
|
+
readonly name: "SODAX";
|
|
4897
|
+
readonly decimals: 8;
|
|
4898
|
+
readonly address: "0x0000000000000000000000000000000000a02869";
|
|
4899
|
+
readonly chainKey: "hedera";
|
|
4900
|
+
readonly hubAsset: "0x1217721376839dbffe78093ddd5d8e50d0239b3f";
|
|
4901
|
+
readonly vault: "0x21685E341DE7844135329914Be6Bd8D16982d834";
|
|
4902
|
+
};
|
|
4903
|
+
readonly USDC: {
|
|
4904
|
+
readonly symbol: "USDC";
|
|
4905
|
+
readonly name: "USD Coin";
|
|
4906
|
+
readonly decimals: 6;
|
|
4907
|
+
readonly address: "0x000000000000000000000000000000000006f89a";
|
|
4908
|
+
readonly chainKey: "hedera";
|
|
4909
|
+
readonly hubAsset: "0xafafae0c1476424c4b81f09095bd7dcb858047c8";
|
|
4910
|
+
readonly vault: "0xAbbb91c0617090F0028BDC27597Cd0D038F3A833";
|
|
4911
|
+
};
|
|
4912
|
+
};
|
|
4810
4913
|
};
|
package/dist/chains/tokens.js
CHANGED
|
@@ -33,6 +33,7 @@ export const HubVaultSymbols = [
|
|
|
33
33
|
'sodaKAIA',
|
|
34
34
|
'sodaSTX',
|
|
35
35
|
'sodaUSDS',
|
|
36
|
+
'sodaHBAR',
|
|
36
37
|
'sodaJITOSOL',
|
|
37
38
|
];
|
|
38
39
|
export const SodaTokens = {
|
|
@@ -261,6 +262,15 @@ export const SodaTokens = {
|
|
|
261
262
|
hubAsset: '0x243b0c26c8b38793908d7C64e8510f21B19B4613',
|
|
262
263
|
vault: '0x243b0c26c8b38793908d7C64e8510f21B19B4613',
|
|
263
264
|
},
|
|
265
|
+
sodaHBAR: {
|
|
266
|
+
symbol: 'sodaHBAR',
|
|
267
|
+
name: 'Soda HBAR',
|
|
268
|
+
decimals: 18,
|
|
269
|
+
address: '0x3BB956cc8922E1Ba4148dc10eD1b4Fa19aa599c4',
|
|
270
|
+
chainKey: ChainKeys.SONIC_MAINNET,
|
|
271
|
+
hubAsset: '0x3BB956cc8922E1Ba4148dc10eD1b4Fa19aa599c4',
|
|
272
|
+
vault: '0x3BB956cc8922E1Ba4148dc10eD1b4Fa19aa599c4',
|
|
273
|
+
},
|
|
264
274
|
sodaJITOSOL: {
|
|
265
275
|
symbol: 'sodaJITOSOL',
|
|
266
276
|
name: 'Soda JITOSOL',
|
|
@@ -2256,6 +2266,44 @@ export const kaiaSupportedTokens = {
|
|
|
2256
2266
|
vault: SodaTokens.sodaSODA.address,
|
|
2257
2267
|
},
|
|
2258
2268
|
};
|
|
2269
|
+
export const hederaSupportedTokens = {
|
|
2270
|
+
HBAR: {
|
|
2271
|
+
symbol: 'HBAR',
|
|
2272
|
+
name: 'HBAR',
|
|
2273
|
+
decimals: 8,
|
|
2274
|
+
address: '0x0000000000000000000000000000000000000000',
|
|
2275
|
+
chainKey: ChainKeys.HEDERA_MAINNET,
|
|
2276
|
+
hubAsset: '0x5c18c543b6B6EA97dE739F48C49CfC291B3AD465',
|
|
2277
|
+
vault: SodaTokens.sodaHBAR.address,
|
|
2278
|
+
},
|
|
2279
|
+
bnUSD: {
|
|
2280
|
+
symbol: 'bnUSD',
|
|
2281
|
+
name: 'bnUSD',
|
|
2282
|
+
decimals: 8,
|
|
2283
|
+
address: '0x0000000000000000000000000000000000a0286a',
|
|
2284
|
+
chainKey: ChainKeys.HEDERA_MAINNET,
|
|
2285
|
+
hubAsset: '0x44be1984cd279334a630469fa357305c7dba2837',
|
|
2286
|
+
vault: SodaTokens.bnUSD.address,
|
|
2287
|
+
},
|
|
2288
|
+
SODA: {
|
|
2289
|
+
symbol: 'SODA',
|
|
2290
|
+
name: 'SODAX',
|
|
2291
|
+
decimals: 8,
|
|
2292
|
+
address: '0x0000000000000000000000000000000000a02869',
|
|
2293
|
+
chainKey: ChainKeys.HEDERA_MAINNET,
|
|
2294
|
+
hubAsset: '0x1217721376839dbffe78093ddd5d8e50d0239b3f',
|
|
2295
|
+
vault: SodaTokens.sodaSODA.address,
|
|
2296
|
+
},
|
|
2297
|
+
USDC: {
|
|
2298
|
+
symbol: 'USDC',
|
|
2299
|
+
name: 'USD Coin',
|
|
2300
|
+
decimals: 6,
|
|
2301
|
+
address: '0x000000000000000000000000000000000006f89a',
|
|
2302
|
+
chainKey: ChainKeys.HEDERA_MAINNET,
|
|
2303
|
+
hubAsset: '0xafafae0c1476424c4b81f09095bd7dcb858047c8',
|
|
2304
|
+
vault: SodaTokens.sodaUSDC.address,
|
|
2305
|
+
},
|
|
2306
|
+
};
|
|
2259
2307
|
export const stacksSupportedTokens = {
|
|
2260
2308
|
STX: {
|
|
2261
2309
|
symbol: 'STX',
|
|
@@ -2325,4 +2373,5 @@ export const supportedTokensByChain = {
|
|
|
2325
2373
|
[ChainKeys.ETHEREUM_MAINNET]: ethereumSupportedTokens,
|
|
2326
2374
|
[ChainKeys.KAIA_MAINNET]: kaiaSupportedTokens,
|
|
2327
2375
|
[ChainKeys.STACKS_MAINNET]: stacksSupportedTokens,
|
|
2376
|
+
[ChainKeys.HEDERA_MAINNET]: hederaSupportedTokens,
|
|
2328
2377
|
};
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -19,4 +19,4 @@ export * from './sui/index.js';
|
|
|
19
19
|
export * from './swap/index.js';
|
|
20
20
|
export * from './utils/index.js';
|
|
21
21
|
export * from './wallet/index.js';
|
|
22
|
-
export const CONFIG_VERSION =
|
|
22
|
+
export const CONFIG_VERSION = 218; // this value should be incremented (inside release/sdk branch) each time @sodax/types package is updated
|
|
@@ -983,6 +983,14 @@ export declare const moneyMarketSupportedTokens: {
|
|
|
983
983
|
readonly chainKey: "sonic";
|
|
984
984
|
readonly hubAsset: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
|
|
985
985
|
readonly vault: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
|
|
986
|
+
} | {
|
|
987
|
+
readonly symbol: "sodaHBAR";
|
|
988
|
+
readonly name: "Soda HBAR";
|
|
989
|
+
readonly decimals: 18;
|
|
990
|
+
readonly address: "0x3BB956cc8922E1Ba4148dc10eD1b4Fa19aa599c4";
|
|
991
|
+
readonly chainKey: "sonic";
|
|
992
|
+
readonly hubAsset: "0x3BB956cc8922E1Ba4148dc10eD1b4Fa19aa599c4";
|
|
993
|
+
readonly vault: "0x3BB956cc8922E1Ba4148dc10eD1b4Fa19aa599c4";
|
|
986
994
|
} | {
|
|
987
995
|
readonly symbol: "sodaJITOSOL";
|
|
988
996
|
readonly name: "Soda JITOSOL";
|
|
@@ -1311,8 +1319,33 @@ export declare const moneyMarketSupportedTokens: {
|
|
|
1311
1319
|
readonly hubAsset: "0xeb0393893b5bf98a50073d6740738b08e575058b";
|
|
1312
1320
|
readonly vault: "0x7A1A5555842Ad2D0eD274d09b5c4406a95799D5d";
|
|
1313
1321
|
}];
|
|
1322
|
+
readonly hedera: [{
|
|
1323
|
+
readonly symbol: "bnUSD";
|
|
1324
|
+
readonly name: "bnUSD";
|
|
1325
|
+
readonly decimals: 8;
|
|
1326
|
+
readonly address: "0x0000000000000000000000000000000000a0286a";
|
|
1327
|
+
readonly chainKey: "hedera";
|
|
1328
|
+
readonly hubAsset: "0x44be1984cd279334a630469fa357305c7dba2837";
|
|
1329
|
+
readonly vault: "0xE801CA34E19aBCbFeA12025378D19c4FBE250131";
|
|
1330
|
+
}, {
|
|
1331
|
+
readonly symbol: "SODA";
|
|
1332
|
+
readonly name: "SODAX";
|
|
1333
|
+
readonly decimals: 8;
|
|
1334
|
+
readonly address: "0x0000000000000000000000000000000000a02869";
|
|
1335
|
+
readonly chainKey: "hedera";
|
|
1336
|
+
readonly hubAsset: "0x1217721376839dbffe78093ddd5d8e50d0239b3f";
|
|
1337
|
+
readonly vault: "0x21685E341DE7844135329914Be6Bd8D16982d834";
|
|
1338
|
+
}, {
|
|
1339
|
+
readonly symbol: "USDC";
|
|
1340
|
+
readonly name: "USD Coin";
|
|
1341
|
+
readonly decimals: 6;
|
|
1342
|
+
readonly address: "0x000000000000000000000000000000000006f89a";
|
|
1343
|
+
readonly chainKey: "hedera";
|
|
1344
|
+
readonly hubAsset: "0xafafae0c1476424c4b81f09095bd7dcb858047c8";
|
|
1345
|
+
readonly vault: "0xAbbb91c0617090F0028BDC27597Cd0D038F3A833";
|
|
1346
|
+
}];
|
|
1314
1347
|
};
|
|
1315
|
-
export declare const moneyMarketReserveAssets: [...("0x21685E341DE7844135329914Be6Bd8D16982d834" | "0x7A1A5555842Ad2D0eD274d09b5c4406a95799D5d" | "0x4effB5813271699683C25c734F4daBc45B363709" | "0x40Cd41b35DB9e5109ae7E54b44De8625dB320E6b" | "0x14238D267557E9d799016ad635B53CD15935d290" | "0x811C3fCc13f9c2a23AE2Ae2DCadacFAC6eb5f0eB" | "0xdEa692287E2cE8Cb08FA52917Be0F16b1DACDC87" | "0x6BC8C37cba91F76E68C9e6d689A9C21E4d32079B" | "0x1f22279C89B213944b7Ea41daCB0a868DdCDFd13" | "0xdc5B4b00F98347E95b9F94911213DAB4C687e1e3" | "0xE801CA34E19aBCbFeA12025378D19c4FBE250131" | "0xAbbb91c0617090F0028BDC27597Cd0D038F3A833" | "0xbDf1F453FCB61424011BBDDCB96cFDB30f3Fe876" | "0x9D4b663Eb075d2a1C7B8eaEFB9eCCC0510388B51" | "0x62ecc3Eeb80a162c57624B3fF80313FE69f5203e" | "0x208ED38f4783328aA9eBFeC360D32e7520A9B779" | "0x6E81124fC5d2Bf666B16a0A5d90066eBf35c7411" | "0x4B207114F9118dEAC56436e1aE3c45648783c7Ac" | "0x14C5eB2D25dFb834852dFc85744875d1eCb09748" | "0xCb6B152D3a943f25157381aFcA7fEFCD2ef5a357" | "0x58b0538D7EEaeE69EF32f9F1dE5cbF32A10a977B" | "0xf4ba497c9b805e4bd88a8a9e6a7b8f74984c3e39" | "0xD7d41b5f803b6A40F8A6eAa34E459A4564e39891" | "0x1Fbe5229e9d189F26bEE77E5bFa24309FdA90483" | "0x243b0c26c8b38793908d7C64e8510f21B19B4613" | "0xe1bad4400d947Bc4fa66f9c0A143D800002083a0")[], "0xE801CA34E19aBCbFeA12025378D19c4FBE250131"];
|
|
1348
|
+
export declare const moneyMarketReserveAssets: [...("0x21685E341DE7844135329914Be6Bd8D16982d834" | "0x7A1A5555842Ad2D0eD274d09b5c4406a95799D5d" | "0x4effB5813271699683C25c734F4daBc45B363709" | "0x40Cd41b35DB9e5109ae7E54b44De8625dB320E6b" | "0x14238D267557E9d799016ad635B53CD15935d290" | "0x811C3fCc13f9c2a23AE2Ae2DCadacFAC6eb5f0eB" | "0xdEa692287E2cE8Cb08FA52917Be0F16b1DACDC87" | "0x6BC8C37cba91F76E68C9e6d689A9C21E4d32079B" | "0x1f22279C89B213944b7Ea41daCB0a868DdCDFd13" | "0xdc5B4b00F98347E95b9F94911213DAB4C687e1e3" | "0xE801CA34E19aBCbFeA12025378D19c4FBE250131" | "0xAbbb91c0617090F0028BDC27597Cd0D038F3A833" | "0xbDf1F453FCB61424011BBDDCB96cFDB30f3Fe876" | "0x9D4b663Eb075d2a1C7B8eaEFB9eCCC0510388B51" | "0x62ecc3Eeb80a162c57624B3fF80313FE69f5203e" | "0x208ED38f4783328aA9eBFeC360D32e7520A9B779" | "0x6E81124fC5d2Bf666B16a0A5d90066eBf35c7411" | "0x4B207114F9118dEAC56436e1aE3c45648783c7Ac" | "0x14C5eB2D25dFb834852dFc85744875d1eCb09748" | "0xCb6B152D3a943f25157381aFcA7fEFCD2ef5a357" | "0x58b0538D7EEaeE69EF32f9F1dE5cbF32A10a977B" | "0xf4ba497c9b805e4bd88a8a9e6a7b8f74984c3e39" | "0xD7d41b5f803b6A40F8A6eAa34E459A4564e39891" | "0x1Fbe5229e9d189F26bEE77E5bFa24309FdA90483" | "0x243b0c26c8b38793908d7C64e8510f21B19B4613" | "0x3BB956cc8922E1Ba4148dc10eD1b4Fa19aa599c4" | "0xe1bad4400d947Bc4fa66f9c0A143D800002083a0")[], "0xE801CA34E19aBCbFeA12025378D19c4FBE250131"];
|
|
1316
1349
|
export declare const moneyMarketConfig: {
|
|
1317
1350
|
readonly partnerFee: undefined;
|
|
1318
1351
|
readonly lendingPool: "0x553434896D39F867761859D0FE7189d2Af70514E";
|
|
@@ -2306,6 +2339,14 @@ export declare const moneyMarketConfig: {
|
|
|
2306
2339
|
readonly chainKey: "sonic";
|
|
2307
2340
|
readonly hubAsset: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
|
|
2308
2341
|
readonly vault: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
|
|
2342
|
+
} | {
|
|
2343
|
+
readonly symbol: "sodaHBAR";
|
|
2344
|
+
readonly name: "Soda HBAR";
|
|
2345
|
+
readonly decimals: 18;
|
|
2346
|
+
readonly address: "0x3BB956cc8922E1Ba4148dc10eD1b4Fa19aa599c4";
|
|
2347
|
+
readonly chainKey: "sonic";
|
|
2348
|
+
readonly hubAsset: "0x3BB956cc8922E1Ba4148dc10eD1b4Fa19aa599c4";
|
|
2349
|
+
readonly vault: "0x3BB956cc8922E1Ba4148dc10eD1b4Fa19aa599c4";
|
|
2309
2350
|
} | {
|
|
2310
2351
|
readonly symbol: "sodaJITOSOL";
|
|
2311
2352
|
readonly name: "Soda JITOSOL";
|
|
@@ -2634,6 +2675,31 @@ export declare const moneyMarketConfig: {
|
|
|
2634
2675
|
readonly hubAsset: "0xeb0393893b5bf98a50073d6740738b08e575058b";
|
|
2635
2676
|
readonly vault: "0x7A1A5555842Ad2D0eD274d09b5c4406a95799D5d";
|
|
2636
2677
|
}];
|
|
2678
|
+
readonly hedera: [{
|
|
2679
|
+
readonly symbol: "bnUSD";
|
|
2680
|
+
readonly name: "bnUSD";
|
|
2681
|
+
readonly decimals: 8;
|
|
2682
|
+
readonly address: "0x0000000000000000000000000000000000a0286a";
|
|
2683
|
+
readonly chainKey: "hedera";
|
|
2684
|
+
readonly hubAsset: "0x44be1984cd279334a630469fa357305c7dba2837";
|
|
2685
|
+
readonly vault: "0xE801CA34E19aBCbFeA12025378D19c4FBE250131";
|
|
2686
|
+
}, {
|
|
2687
|
+
readonly symbol: "SODA";
|
|
2688
|
+
readonly name: "SODAX";
|
|
2689
|
+
readonly decimals: 8;
|
|
2690
|
+
readonly address: "0x0000000000000000000000000000000000a02869";
|
|
2691
|
+
readonly chainKey: "hedera";
|
|
2692
|
+
readonly hubAsset: "0x1217721376839dbffe78093ddd5d8e50d0239b3f";
|
|
2693
|
+
readonly vault: "0x21685E341DE7844135329914Be6Bd8D16982d834";
|
|
2694
|
+
}, {
|
|
2695
|
+
readonly symbol: "USDC";
|
|
2696
|
+
readonly name: "USD Coin";
|
|
2697
|
+
readonly decimals: 6;
|
|
2698
|
+
readonly address: "0x000000000000000000000000000000000006f89a";
|
|
2699
|
+
readonly chainKey: "hedera";
|
|
2700
|
+
readonly hubAsset: "0xafafae0c1476424c4b81f09095bd7dcb858047c8";
|
|
2701
|
+
readonly vault: "0xAbbb91c0617090F0028BDC27597Cd0D038F3A833";
|
|
2702
|
+
}];
|
|
2637
2703
|
};
|
|
2638
|
-
readonly supportedReserveAssets: [...("0x21685E341DE7844135329914Be6Bd8D16982d834" | "0x7A1A5555842Ad2D0eD274d09b5c4406a95799D5d" | "0x4effB5813271699683C25c734F4daBc45B363709" | "0x40Cd41b35DB9e5109ae7E54b44De8625dB320E6b" | "0x14238D267557E9d799016ad635B53CD15935d290" | "0x811C3fCc13f9c2a23AE2Ae2DCadacFAC6eb5f0eB" | "0xdEa692287E2cE8Cb08FA52917Be0F16b1DACDC87" | "0x6BC8C37cba91F76E68C9e6d689A9C21E4d32079B" | "0x1f22279C89B213944b7Ea41daCB0a868DdCDFd13" | "0xdc5B4b00F98347E95b9F94911213DAB4C687e1e3" | "0xE801CA34E19aBCbFeA12025378D19c4FBE250131" | "0xAbbb91c0617090F0028BDC27597Cd0D038F3A833" | "0xbDf1F453FCB61424011BBDDCB96cFDB30f3Fe876" | "0x9D4b663Eb075d2a1C7B8eaEFB9eCCC0510388B51" | "0x62ecc3Eeb80a162c57624B3fF80313FE69f5203e" | "0x208ED38f4783328aA9eBFeC360D32e7520A9B779" | "0x6E81124fC5d2Bf666B16a0A5d90066eBf35c7411" | "0x4B207114F9118dEAC56436e1aE3c45648783c7Ac" | "0x14C5eB2D25dFb834852dFc85744875d1eCb09748" | "0xCb6B152D3a943f25157381aFcA7fEFCD2ef5a357" | "0x58b0538D7EEaeE69EF32f9F1dE5cbF32A10a977B" | "0xf4ba497c9b805e4bd88a8a9e6a7b8f74984c3e39" | "0xD7d41b5f803b6A40F8A6eAa34E459A4564e39891" | "0x1Fbe5229e9d189F26bEE77E5bFa24309FdA90483" | "0x243b0c26c8b38793908d7C64e8510f21B19B4613" | "0xe1bad4400d947Bc4fa66f9c0A143D800002083a0")[], "0xE801CA34E19aBCbFeA12025378D19c4FBE250131"];
|
|
2704
|
+
readonly supportedReserveAssets: [...("0x21685E341DE7844135329914Be6Bd8D16982d834" | "0x7A1A5555842Ad2D0eD274d09b5c4406a95799D5d" | "0x4effB5813271699683C25c734F4daBc45B363709" | "0x40Cd41b35DB9e5109ae7E54b44De8625dB320E6b" | "0x14238D267557E9d799016ad635B53CD15935d290" | "0x811C3fCc13f9c2a23AE2Ae2DCadacFAC6eb5f0eB" | "0xdEa692287E2cE8Cb08FA52917Be0F16b1DACDC87" | "0x6BC8C37cba91F76E68C9e6d689A9C21E4d32079B" | "0x1f22279C89B213944b7Ea41daCB0a868DdCDFd13" | "0xdc5B4b00F98347E95b9F94911213DAB4C687e1e3" | "0xE801CA34E19aBCbFeA12025378D19c4FBE250131" | "0xAbbb91c0617090F0028BDC27597Cd0D038F3A833" | "0xbDf1F453FCB61424011BBDDCB96cFDB30f3Fe876" | "0x9D4b663Eb075d2a1C7B8eaEFB9eCCC0510388B51" | "0x62ecc3Eeb80a162c57624B3fF80313FE69f5203e" | "0x208ED38f4783328aA9eBFeC360D32e7520A9B779" | "0x6E81124fC5d2Bf666B16a0A5d90066eBf35c7411" | "0x4B207114F9118dEAC56436e1aE3c45648783c7Ac" | "0x14C5eB2D25dFb834852dFc85744875d1eCb09748" | "0xCb6B152D3a943f25157381aFcA7fEFCD2ef5a357" | "0x58b0538D7EEaeE69EF32f9F1dE5cbF32A10a977B" | "0xf4ba497c9b805e4bd88a8a9e6a7b8f74984c3e39" | "0xD7d41b5f803b6A40F8A6eAa34E459A4564e39891" | "0x1Fbe5229e9d189F26bEE77E5bFa24309FdA90483" | "0x243b0c26c8b38793908d7C64e8510f21B19B4613" | "0x3BB956cc8922E1Ba4148dc10eD1b4Fa19aa599c4" | "0xe1bad4400d947Bc4fa66f9c0A143D800002083a0")[], "0xE801CA34E19aBCbFeA12025378D19c4FBE250131"];
|
|
2639
2705
|
};
|
|
@@ -180,6 +180,11 @@ export const moneyMarketSupportedTokens = {
|
|
|
180
180
|
[ChainKeys.BITCOIN_MAINNET]: [
|
|
181
181
|
spokeChainConfig[ChainKeys.BITCOIN_MAINNET].supportedTokens.BTC,
|
|
182
182
|
],
|
|
183
|
+
[ChainKeys.HEDERA_MAINNET]: [
|
|
184
|
+
spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.bnUSD,
|
|
185
|
+
spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.SODA,
|
|
186
|
+
spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.USDC,
|
|
187
|
+
],
|
|
183
188
|
};
|
|
184
189
|
export const moneyMarketReserveAssets = [
|
|
185
190
|
...Object.values(SodaTokens).map(vault => vault.address),
|
package/dist/shared/shared.d.ts
CHANGED
|
@@ -14,3 +14,24 @@ export type TxPollingConfig = {
|
|
|
14
14
|
pollingIntervalMs: number;
|
|
15
15
|
maxTimeoutMs: number;
|
|
16
16
|
};
|
|
17
|
+
/**
|
|
18
|
+
* Tuning for the viem `fallback()` transport used when more than one RPC endpoint is configured.
|
|
19
|
+
* Plain serializable mirror of viem's fallback options so this type stays dependency-free.
|
|
20
|
+
*/
|
|
21
|
+
export type RpcFallbackOptions = {
|
|
22
|
+
/** Re-rank endpoints by latency instead of strict listed order (viem default: off; ignored unless more than one endpoint is configured). */
|
|
23
|
+
rank?: boolean;
|
|
24
|
+
/** Retries of the overall failover request before the error surfaces (viem default: 3); each attempt tries the endpoints in listed order. */
|
|
25
|
+
retryCount?: number;
|
|
26
|
+
/** Delay in ms between retries. */
|
|
27
|
+
retryDelay?: number;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Optional multi-endpoint RPC failover, mixed into EVM chain configs that support it.
|
|
31
|
+
* When `rpcUrls` is present and non-empty it supersedes the single `rpcUrl` (first entry is primary);
|
|
32
|
+
* an absent or empty `rpcUrls` preserves single-endpoint behavior.
|
|
33
|
+
*/
|
|
34
|
+
export type RpcFailoverConfig = {
|
|
35
|
+
rpcUrls?: readonly string[];
|
|
36
|
+
rpcOptions?: RpcFallbackOptions;
|
|
37
|
+
};
|
|
@@ -359,6 +359,15 @@ export declare const sodaxConfig: {
|
|
|
359
359
|
readonly hubAsset: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
|
|
360
360
|
readonly vault: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
|
|
361
361
|
};
|
|
362
|
+
readonly sodaHBAR: {
|
|
363
|
+
readonly symbol: "sodaHBAR";
|
|
364
|
+
readonly name: "Soda HBAR";
|
|
365
|
+
readonly decimals: 18;
|
|
366
|
+
readonly address: "0x3BB956cc8922E1Ba4148dc10eD1b4Fa19aa599c4";
|
|
367
|
+
readonly chainKey: "sonic";
|
|
368
|
+
readonly hubAsset: "0x3BB956cc8922E1Ba4148dc10eD1b4Fa19aa599c4";
|
|
369
|
+
readonly vault: "0x3BB956cc8922E1Ba4148dc10eD1b4Fa19aa599c4";
|
|
370
|
+
};
|
|
362
371
|
readonly sodaJITOSOL: {
|
|
363
372
|
readonly symbol: "sodaJITOSOL";
|
|
364
373
|
readonly name: "Soda JITOSOL";
|
|
@@ -2921,6 +2930,71 @@ export declare const sodaxConfig: {
|
|
|
2921
2930
|
readonly maxTimeoutMs: 120000;
|
|
2922
2931
|
};
|
|
2923
2932
|
};
|
|
2933
|
+
readonly hedera: {
|
|
2934
|
+
readonly chain: {
|
|
2935
|
+
readonly name: "Hedera";
|
|
2936
|
+
readonly key: "hedera";
|
|
2937
|
+
readonly type: "EVM";
|
|
2938
|
+
readonly chainId: 295;
|
|
2939
|
+
readonly mainnet: true;
|
|
2940
|
+
readonly logo: string;
|
|
2941
|
+
readonly explorer: {
|
|
2942
|
+
readonly baseUrl: "https://hashscan.io/mainnet/";
|
|
2943
|
+
readonly txUrl: "https://hashscan.io/mainnet/transaction/";
|
|
2944
|
+
readonly addressUrl: "https://hashscan.io/mainnet/account/";
|
|
2945
|
+
readonly contractUrl: "https://hashscan.io/mainnet/contract/";
|
|
2946
|
+
};
|
|
2947
|
+
};
|
|
2948
|
+
readonly rpcUrl: "https://mainnet.hashio.io/api";
|
|
2949
|
+
readonly addresses: {
|
|
2950
|
+
readonly assetManager: "0x0df73542cC68bDC01b361d231c60F726B0e0bC05";
|
|
2951
|
+
readonly connection: "0x4555aC13D7338D9E671584C1D118c06B2a3C88eD";
|
|
2952
|
+
};
|
|
2953
|
+
readonly nativeToken: "0x0000000000000000000000000000000000000000";
|
|
2954
|
+
readonly bnUSD: "0x0000000000000000000000000000000000a0286a";
|
|
2955
|
+
readonly supportedTokens: {
|
|
2956
|
+
readonly HBAR: {
|
|
2957
|
+
readonly symbol: "HBAR";
|
|
2958
|
+
readonly name: "HBAR";
|
|
2959
|
+
readonly decimals: 8;
|
|
2960
|
+
readonly address: "0x0000000000000000000000000000000000000000";
|
|
2961
|
+
readonly chainKey: "hedera";
|
|
2962
|
+
readonly hubAsset: "0x5c18c543b6B6EA97dE739F48C49CfC291B3AD465";
|
|
2963
|
+
readonly vault: "0x3BB956cc8922E1Ba4148dc10eD1b4Fa19aa599c4";
|
|
2964
|
+
};
|
|
2965
|
+
readonly bnUSD: {
|
|
2966
|
+
readonly symbol: "bnUSD";
|
|
2967
|
+
readonly name: "bnUSD";
|
|
2968
|
+
readonly decimals: 8;
|
|
2969
|
+
readonly address: "0x0000000000000000000000000000000000a0286a";
|
|
2970
|
+
readonly chainKey: "hedera";
|
|
2971
|
+
readonly hubAsset: "0x44be1984cd279334a630469fa357305c7dba2837";
|
|
2972
|
+
readonly vault: "0xE801CA34E19aBCbFeA12025378D19c4FBE250131";
|
|
2973
|
+
};
|
|
2974
|
+
readonly SODA: {
|
|
2975
|
+
readonly symbol: "SODA";
|
|
2976
|
+
readonly name: "SODAX";
|
|
2977
|
+
readonly decimals: 8;
|
|
2978
|
+
readonly address: "0x0000000000000000000000000000000000a02869";
|
|
2979
|
+
readonly chainKey: "hedera";
|
|
2980
|
+
readonly hubAsset: "0x1217721376839dbffe78093ddd5d8e50d0239b3f";
|
|
2981
|
+
readonly vault: "0x21685E341DE7844135329914Be6Bd8D16982d834";
|
|
2982
|
+
};
|
|
2983
|
+
readonly USDC: {
|
|
2984
|
+
readonly symbol: "USDC";
|
|
2985
|
+
readonly name: "USD Coin";
|
|
2986
|
+
readonly decimals: 6;
|
|
2987
|
+
readonly address: "0x000000000000000000000000000000000006f89a";
|
|
2988
|
+
readonly chainKey: "hedera";
|
|
2989
|
+
readonly hubAsset: "0xafafae0c1476424c4b81f09095bd7dcb858047c8";
|
|
2990
|
+
readonly vault: "0xAbbb91c0617090F0028BDC27597Cd0D038F3A833";
|
|
2991
|
+
};
|
|
2992
|
+
};
|
|
2993
|
+
readonly pollingConfig: {
|
|
2994
|
+
readonly pollingIntervalMs: 2000;
|
|
2995
|
+
readonly maxTimeoutMs: 60000;
|
|
2996
|
+
};
|
|
2997
|
+
};
|
|
2924
2998
|
};
|
|
2925
2999
|
swaps: {
|
|
2926
3000
|
supportedTokens: {
|
|
@@ -3172,6 +3246,14 @@ export declare const sodaxConfig: {
|
|
|
3172
3246
|
readonly chainKey: "sonic";
|
|
3173
3247
|
readonly hubAsset: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
|
|
3174
3248
|
readonly vault: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
|
|
3249
|
+
} | {
|
|
3250
|
+
readonly symbol: "sodaHBAR";
|
|
3251
|
+
readonly name: "Soda HBAR";
|
|
3252
|
+
readonly decimals: 18;
|
|
3253
|
+
readonly address: "0x3BB956cc8922E1Ba4148dc10eD1b4Fa19aa599c4";
|
|
3254
|
+
readonly chainKey: "sonic";
|
|
3255
|
+
readonly hubAsset: "0x3BB956cc8922E1Ba4148dc10eD1b4Fa19aa599c4";
|
|
3256
|
+
readonly vault: "0x3BB956cc8922E1Ba4148dc10eD1b4Fa19aa599c4";
|
|
3175
3257
|
} | {
|
|
3176
3258
|
readonly symbol: "sodaJITOSOL";
|
|
3177
3259
|
readonly name: "Soda JITOSOL";
|
|
@@ -4706,6 +4788,7 @@ export declare const sodaxConfig: {
|
|
|
4706
4788
|
readonly hubAsset: "0x2336917df30f3417986a29ec384274a83adbef16";
|
|
4707
4789
|
readonly vault: "0xAbbb91c0617090F0028BDC27597Cd0D038F3A833";
|
|
4708
4790
|
}];
|
|
4791
|
+
readonly hedera: readonly [];
|
|
4709
4792
|
};
|
|
4710
4793
|
};
|
|
4711
4794
|
moneyMarket: {
|
|
@@ -5701,6 +5784,14 @@ export declare const sodaxConfig: {
|
|
|
5701
5784
|
readonly chainKey: "sonic";
|
|
5702
5785
|
readonly hubAsset: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
|
|
5703
5786
|
readonly vault: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
|
|
5787
|
+
} | {
|
|
5788
|
+
readonly symbol: "sodaHBAR";
|
|
5789
|
+
readonly name: "Soda HBAR";
|
|
5790
|
+
readonly decimals: 18;
|
|
5791
|
+
readonly address: "0x3BB956cc8922E1Ba4148dc10eD1b4Fa19aa599c4";
|
|
5792
|
+
readonly chainKey: "sonic";
|
|
5793
|
+
readonly hubAsset: "0x3BB956cc8922E1Ba4148dc10eD1b4Fa19aa599c4";
|
|
5794
|
+
readonly vault: "0x3BB956cc8922E1Ba4148dc10eD1b4Fa19aa599c4";
|
|
5704
5795
|
} | {
|
|
5705
5796
|
readonly symbol: "sodaJITOSOL";
|
|
5706
5797
|
readonly name: "Soda JITOSOL";
|
|
@@ -6029,8 +6120,33 @@ export declare const sodaxConfig: {
|
|
|
6029
6120
|
readonly hubAsset: "0xeb0393893b5bf98a50073d6740738b08e575058b";
|
|
6030
6121
|
readonly vault: "0x7A1A5555842Ad2D0eD274d09b5c4406a95799D5d";
|
|
6031
6122
|
}];
|
|
6123
|
+
readonly hedera: [{
|
|
6124
|
+
readonly symbol: "bnUSD";
|
|
6125
|
+
readonly name: "bnUSD";
|
|
6126
|
+
readonly decimals: 8;
|
|
6127
|
+
readonly address: "0x0000000000000000000000000000000000a0286a";
|
|
6128
|
+
readonly chainKey: "hedera";
|
|
6129
|
+
readonly hubAsset: "0x44be1984cd279334a630469fa357305c7dba2837";
|
|
6130
|
+
readonly vault: "0xE801CA34E19aBCbFeA12025378D19c4FBE250131";
|
|
6131
|
+
}, {
|
|
6132
|
+
readonly symbol: "SODA";
|
|
6133
|
+
readonly name: "SODAX";
|
|
6134
|
+
readonly decimals: 8;
|
|
6135
|
+
readonly address: "0x0000000000000000000000000000000000a02869";
|
|
6136
|
+
readonly chainKey: "hedera";
|
|
6137
|
+
readonly hubAsset: "0x1217721376839dbffe78093ddd5d8e50d0239b3f";
|
|
6138
|
+
readonly vault: "0x21685E341DE7844135329914Be6Bd8D16982d834";
|
|
6139
|
+
}, {
|
|
6140
|
+
readonly symbol: "USDC";
|
|
6141
|
+
readonly name: "USD Coin";
|
|
6142
|
+
readonly decimals: 6;
|
|
6143
|
+
readonly address: "0x000000000000000000000000000000000006f89a";
|
|
6144
|
+
readonly chainKey: "hedera";
|
|
6145
|
+
readonly hubAsset: "0xafafae0c1476424c4b81f09095bd7dcb858047c8";
|
|
6146
|
+
readonly vault: "0xAbbb91c0617090F0028BDC27597Cd0D038F3A833";
|
|
6147
|
+
}];
|
|
6032
6148
|
};
|
|
6033
|
-
readonly supportedReserveAssets: [...("0x21685E341DE7844135329914Be6Bd8D16982d834" | "0x7A1A5555842Ad2D0eD274d09b5c4406a95799D5d" | "0x4effB5813271699683C25c734F4daBc45B363709" | "0x40Cd41b35DB9e5109ae7E54b44De8625dB320E6b" | "0x14238D267557E9d799016ad635B53CD15935d290" | "0x811C3fCc13f9c2a23AE2Ae2DCadacFAC6eb5f0eB" | "0xdEa692287E2cE8Cb08FA52917Be0F16b1DACDC87" | "0x6BC8C37cba91F76E68C9e6d689A9C21E4d32079B" | "0x1f22279C89B213944b7Ea41daCB0a868DdCDFd13" | "0xdc5B4b00F98347E95b9F94911213DAB4C687e1e3" | "0xE801CA34E19aBCbFeA12025378D19c4FBE250131" | "0xAbbb91c0617090F0028BDC27597Cd0D038F3A833" | "0xbDf1F453FCB61424011BBDDCB96cFDB30f3Fe876" | "0x9D4b663Eb075d2a1C7B8eaEFB9eCCC0510388B51" | "0x62ecc3Eeb80a162c57624B3fF80313FE69f5203e" | "0x208ED38f4783328aA9eBFeC360D32e7520A9B779" | "0x6E81124fC5d2Bf666B16a0A5d90066eBf35c7411" | "0x4B207114F9118dEAC56436e1aE3c45648783c7Ac" | "0x14C5eB2D25dFb834852dFc85744875d1eCb09748" | "0xCb6B152D3a943f25157381aFcA7fEFCD2ef5a357" | "0x58b0538D7EEaeE69EF32f9F1dE5cbF32A10a977B" | "0xf4ba497c9b805e4bd88a8a9e6a7b8f74984c3e39" | "0xD7d41b5f803b6A40F8A6eAa34E459A4564e39891" | "0x1Fbe5229e9d189F26bEE77E5bFa24309FdA90483" | "0x243b0c26c8b38793908d7C64e8510f21B19B4613" | "0xe1bad4400d947Bc4fa66f9c0A143D800002083a0")[], "0xE801CA34E19aBCbFeA12025378D19c4FBE250131"];
|
|
6149
|
+
readonly supportedReserveAssets: [...("0x21685E341DE7844135329914Be6Bd8D16982d834" | "0x7A1A5555842Ad2D0eD274d09b5c4406a95799D5d" | "0x4effB5813271699683C25c734F4daBc45B363709" | "0x40Cd41b35DB9e5109ae7E54b44De8625dB320E6b" | "0x14238D267557E9d799016ad635B53CD15935d290" | "0x811C3fCc13f9c2a23AE2Ae2DCadacFAC6eb5f0eB" | "0xdEa692287E2cE8Cb08FA52917Be0F16b1DACDC87" | "0x6BC8C37cba91F76E68C9e6d689A9C21E4d32079B" | "0x1f22279C89B213944b7Ea41daCB0a868DdCDFd13" | "0xdc5B4b00F98347E95b9F94911213DAB4C687e1e3" | "0xE801CA34E19aBCbFeA12025378D19c4FBE250131" | "0xAbbb91c0617090F0028BDC27597Cd0D038F3A833" | "0xbDf1F453FCB61424011BBDDCB96cFDB30f3Fe876" | "0x9D4b663Eb075d2a1C7B8eaEFB9eCCC0510388B51" | "0x62ecc3Eeb80a162c57624B3fF80313FE69f5203e" | "0x208ED38f4783328aA9eBFeC360D32e7520A9B779" | "0x6E81124fC5d2Bf666B16a0A5d90066eBf35c7411" | "0x4B207114F9118dEAC56436e1aE3c45648783c7Ac" | "0x14C5eB2D25dFb834852dFc85744875d1eCb09748" | "0xCb6B152D3a943f25157381aFcA7fEFCD2ef5a357" | "0x58b0538D7EEaeE69EF32f9F1dE5cbF32A10a977B" | "0xf4ba497c9b805e4bd88a8a9e6a7b8f74984c3e39" | "0xD7d41b5f803b6A40F8A6eAa34E459A4564e39891" | "0x1Fbe5229e9d189F26bEE77E5bFa24309FdA90483" | "0x243b0c26c8b38793908d7C64e8510f21B19B4613" | "0x3BB956cc8922E1Ba4148dc10eD1b4Fa19aa599c4" | "0xe1bad4400d947Bc4fa66f9c0A143D800002083a0")[], "0xE801CA34E19aBCbFeA12025378D19c4FBE250131"];
|
|
6034
6150
|
};
|
|
6035
6151
|
bridge: {};
|
|
6036
6152
|
dex: {
|
|
@@ -6475,6 +6591,15 @@ export declare const sodaxConfig: {
|
|
|
6475
6591
|
readonly hubAsset: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
|
|
6476
6592
|
readonly vault: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
|
|
6477
6593
|
};
|
|
6594
|
+
readonly sodaHBAR: {
|
|
6595
|
+
readonly symbol: "sodaHBAR";
|
|
6596
|
+
readonly name: "Soda HBAR";
|
|
6597
|
+
readonly decimals: 18;
|
|
6598
|
+
readonly address: "0x3BB956cc8922E1Ba4148dc10eD1b4Fa19aa599c4";
|
|
6599
|
+
readonly chainKey: "sonic";
|
|
6600
|
+
readonly hubAsset: "0x3BB956cc8922E1Ba4148dc10eD1b4Fa19aa599c4";
|
|
6601
|
+
readonly vault: "0x3BB956cc8922E1Ba4148dc10eD1b4Fa19aa599c4";
|
|
6602
|
+
};
|
|
6478
6603
|
readonly sodaJITOSOL: {
|
|
6479
6604
|
readonly symbol: "sodaJITOSOL";
|
|
6480
6605
|
readonly name: "Soda JITOSOL";
|
|
@@ -6591,6 +6716,7 @@ export declare const sodaxConfig: {
|
|
|
6591
6716
|
readonly redbelly: 726564n;
|
|
6592
6717
|
readonly "0x2019.kaia": 27489n;
|
|
6593
6718
|
readonly stacks: 60n;
|
|
6719
|
+
readonly hedera: 18501n;
|
|
6594
6720
|
};
|
|
6595
6721
|
};
|
|
6596
6722
|
};
|
package/dist/swap/swap.d.ts
CHANGED
|
@@ -250,6 +250,14 @@ export declare const swapSupportedTokens: {
|
|
|
250
250
|
readonly chainKey: "sonic";
|
|
251
251
|
readonly hubAsset: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
|
|
252
252
|
readonly vault: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
|
|
253
|
+
} | {
|
|
254
|
+
readonly symbol: "sodaHBAR";
|
|
255
|
+
readonly name: "Soda HBAR";
|
|
256
|
+
readonly decimals: 18;
|
|
257
|
+
readonly address: "0x3BB956cc8922E1Ba4148dc10eD1b4Fa19aa599c4";
|
|
258
|
+
readonly chainKey: "sonic";
|
|
259
|
+
readonly hubAsset: "0x3BB956cc8922E1Ba4148dc10eD1b4Fa19aa599c4";
|
|
260
|
+
readonly vault: "0x3BB956cc8922E1Ba4148dc10eD1b4Fa19aa599c4";
|
|
253
261
|
} | {
|
|
254
262
|
readonly symbol: "sodaJITOSOL";
|
|
255
263
|
readonly name: "Soda JITOSOL";
|
|
@@ -1784,6 +1792,7 @@ export declare const swapSupportedTokens: {
|
|
|
1784
1792
|
readonly hubAsset: "0x2336917df30f3417986a29ec384274a83adbef16";
|
|
1785
1793
|
readonly vault: "0xAbbb91c0617090F0028BDC27597Cd0D038F3A833";
|
|
1786
1794
|
}];
|
|
1795
|
+
readonly hedera: readonly [];
|
|
1787
1796
|
};
|
|
1788
1797
|
export declare const stagingSwapSupportedTokens: {
|
|
1789
1798
|
readonly sonic: [{
|
|
@@ -1878,6 +1887,39 @@ export declare const stagingSwapSupportedTokens: {
|
|
|
1878
1887
|
readonly redbelly: readonly [];
|
|
1879
1888
|
readonly "0x2019.kaia": readonly [];
|
|
1880
1889
|
readonly stacks: readonly [];
|
|
1890
|
+
readonly hedera: [{
|
|
1891
|
+
readonly symbol: "HBAR";
|
|
1892
|
+
readonly name: "HBAR";
|
|
1893
|
+
readonly decimals: 8;
|
|
1894
|
+
readonly address: "0x0000000000000000000000000000000000000000";
|
|
1895
|
+
readonly chainKey: "hedera";
|
|
1896
|
+
readonly hubAsset: "0x5c18c543b6B6EA97dE739F48C49CfC291B3AD465";
|
|
1897
|
+
readonly vault: "0x3BB956cc8922E1Ba4148dc10eD1b4Fa19aa599c4";
|
|
1898
|
+
}, {
|
|
1899
|
+
readonly symbol: "bnUSD";
|
|
1900
|
+
readonly name: "bnUSD";
|
|
1901
|
+
readonly decimals: 8;
|
|
1902
|
+
readonly address: "0x0000000000000000000000000000000000a0286a";
|
|
1903
|
+
readonly chainKey: "hedera";
|
|
1904
|
+
readonly hubAsset: "0x44be1984cd279334a630469fa357305c7dba2837";
|
|
1905
|
+
readonly vault: "0xE801CA34E19aBCbFeA12025378D19c4FBE250131";
|
|
1906
|
+
}, {
|
|
1907
|
+
readonly symbol: "USDC";
|
|
1908
|
+
readonly name: "USD Coin";
|
|
1909
|
+
readonly decimals: 6;
|
|
1910
|
+
readonly address: "0x000000000000000000000000000000000006f89a";
|
|
1911
|
+
readonly chainKey: "hedera";
|
|
1912
|
+
readonly hubAsset: "0xafafae0c1476424c4b81f09095bd7dcb858047c8";
|
|
1913
|
+
readonly vault: "0xAbbb91c0617090F0028BDC27597Cd0D038F3A833";
|
|
1914
|
+
}, {
|
|
1915
|
+
readonly symbol: "SODA";
|
|
1916
|
+
readonly name: "SODAX";
|
|
1917
|
+
readonly decimals: 8;
|
|
1918
|
+
readonly address: "0x0000000000000000000000000000000000a02869";
|
|
1919
|
+
readonly chainKey: "hedera";
|
|
1920
|
+
readonly hubAsset: "0x1217721376839dbffe78093ddd5d8e50d0239b3f";
|
|
1921
|
+
readonly vault: "0x21685E341DE7844135329914Be6Bd8D16982d834";
|
|
1922
|
+
}];
|
|
1881
1923
|
};
|
|
1882
1924
|
export type SwapsOptions = {
|
|
1883
1925
|
partnerFee?: PartnerFee;
|
|
@@ -2136,6 +2178,14 @@ export declare const swapsConfig: {
|
|
|
2136
2178
|
readonly chainKey: "sonic";
|
|
2137
2179
|
readonly hubAsset: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
|
|
2138
2180
|
readonly vault: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
|
|
2181
|
+
} | {
|
|
2182
|
+
readonly symbol: "sodaHBAR";
|
|
2183
|
+
readonly name: "Soda HBAR";
|
|
2184
|
+
readonly decimals: 18;
|
|
2185
|
+
readonly address: "0x3BB956cc8922E1Ba4148dc10eD1b4Fa19aa599c4";
|
|
2186
|
+
readonly chainKey: "sonic";
|
|
2187
|
+
readonly hubAsset: "0x3BB956cc8922E1Ba4148dc10eD1b4Fa19aa599c4";
|
|
2188
|
+
readonly vault: "0x3BB956cc8922E1Ba4148dc10eD1b4Fa19aa599c4";
|
|
2139
2189
|
} | {
|
|
2140
2190
|
readonly symbol: "sodaJITOSOL";
|
|
2141
2191
|
readonly name: "Soda JITOSOL";
|
|
@@ -3670,6 +3720,7 @@ export declare const swapsConfig: {
|
|
|
3670
3720
|
readonly hubAsset: "0x2336917df30f3417986a29ec384274a83adbef16";
|
|
3671
3721
|
readonly vault: "0xAbbb91c0617090F0028BDC27597Cd0D038F3A833";
|
|
3672
3722
|
}];
|
|
3723
|
+
readonly hedera: readonly [];
|
|
3673
3724
|
};
|
|
3674
3725
|
};
|
|
3675
3726
|
export declare const getSupportedSolverTokens: (chainId: SpokeChainKey) => readonly XToken[];
|
package/dist/swap/swap.js
CHANGED
|
@@ -239,6 +239,8 @@ export const swapSupportedTokens = {
|
|
|
239
239
|
spokeChainConfig[ChainKeys.STACKS_MAINNET].supportedTokens.sBTC,
|
|
240
240
|
spokeChainConfig[ChainKeys.STACKS_MAINNET].supportedTokens.USDC,
|
|
241
241
|
],
|
|
242
|
+
// Hedera is currently staging-only — see stagingSwapSupportedTokens
|
|
243
|
+
[ChainKeys.HEDERA_MAINNET]: [],
|
|
242
244
|
};
|
|
243
245
|
// Tokens supported ONLY in the staging solver environment.
|
|
244
246
|
// The staging solver supports every production token PLUS these — use
|
|
@@ -278,6 +280,12 @@ export const stagingSwapSupportedTokens = {
|
|
|
278
280
|
[ChainKeys.REDBELLY_MAINNET]: [],
|
|
279
281
|
[ChainKeys.KAIA_MAINNET]: [],
|
|
280
282
|
[ChainKeys.STACKS_MAINNET]: [],
|
|
283
|
+
[ChainKeys.HEDERA_MAINNET]: [
|
|
284
|
+
spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.HBAR,
|
|
285
|
+
spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.bnUSD,
|
|
286
|
+
spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.USDC,
|
|
287
|
+
spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.SODA,
|
|
288
|
+
],
|
|
281
289
|
};
|
|
282
290
|
export const swapsConfig = {
|
|
283
291
|
supportedTokens: swapSupportedTokens,
|
package/package.json
CHANGED