@sodax/sdk 2.1.0-rc.7 → 2.1.0-rc.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +526 -33
- package/dist/index.d.cts +63 -3
- package/dist/index.d.ts +63 -3
- package/dist/index.mjs +524 -34
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -281,7 +281,8 @@ var ChainKeys = {
|
|
|
281
281
|
REDBELLY_MAINNET: "redbelly",
|
|
282
282
|
KAIA_MAINNET: "0x2019.kaia",
|
|
283
283
|
STACKS_MAINNET: "stacks",
|
|
284
|
-
HEDERA_MAINNET: "hedera"
|
|
284
|
+
HEDERA_MAINNET: "hedera",
|
|
285
|
+
ROBINHOOD_MAINNET: "robinhood"
|
|
285
286
|
};
|
|
286
287
|
var CHAIN_KEYS = Object.values(ChainKeys);
|
|
287
288
|
var spokeChainKeysSet = new Set(CHAIN_KEYS);
|
|
@@ -2072,6 +2073,114 @@ var stellarSupportedTokens = {
|
|
|
2072
2073
|
chainKey: ChainKeys.STELLAR_MAINNET,
|
|
2073
2074
|
hubAsset: "0xa10be5f5c2dea7d272555dc73ea2a7317c3c5b63",
|
|
2074
2075
|
vault: SodaTokens.sodaBNB.address
|
|
2076
|
+
},
|
|
2077
|
+
ETH: {
|
|
2078
|
+
symbol: "ETH",
|
|
2079
|
+
name: "Ethereum",
|
|
2080
|
+
decimals: 7,
|
|
2081
|
+
address: "CCC6TZWLAHZT2NRVEEOZRPVLUKWVJVKZ3TM347DCCO2QBWNAA5MHROSJ",
|
|
2082
|
+
chainKey: ChainKeys.STELLAR_MAINNET,
|
|
2083
|
+
hubAsset: "0xdB52C5e500c9E265BF42BE103e7Db1C45619e52d",
|
|
2084
|
+
vault: SodaTokens.sodaETH.address
|
|
2085
|
+
},
|
|
2086
|
+
BTC: {
|
|
2087
|
+
symbol: "BTC",
|
|
2088
|
+
name: "Bitcoin",
|
|
2089
|
+
decimals: 7,
|
|
2090
|
+
address: "CBSKI7SY2AP6IIN7IBROZP2CJES67ARMHQYZWT7A7PKH67KGDK2DIRMA",
|
|
2091
|
+
chainKey: ChainKeys.STELLAR_MAINNET,
|
|
2092
|
+
hubAsset: "0x2f09d83D339aD8c63642d42F222C30005139Ef54",
|
|
2093
|
+
vault: SodaTokens.sodaBTC.address
|
|
2094
|
+
},
|
|
2095
|
+
BNB: {
|
|
2096
|
+
symbol: "BNB",
|
|
2097
|
+
name: "BNB",
|
|
2098
|
+
decimals: 7,
|
|
2099
|
+
address: "CC6C3QCSK3WYM2ZENQ5MHA3QPNAKYOZFAGWH5PPU3MVDE3C2YNS7CHMF",
|
|
2100
|
+
chainKey: ChainKeys.STELLAR_MAINNET,
|
|
2101
|
+
hubAsset: "0x0D1873d079AaC6856F9cD28ad1C7C99b28426AA9",
|
|
2102
|
+
vault: SodaTokens.sodaBNB.address
|
|
2103
|
+
},
|
|
2104
|
+
SOL: {
|
|
2105
|
+
symbol: "SOL",
|
|
2106
|
+
name: "Solana",
|
|
2107
|
+
decimals: 7,
|
|
2108
|
+
address: "CB5YRZTKA37DND672WZZXI3BQ66P4PQEJ6VQA3TDG2YLUAGADBP2VCUR",
|
|
2109
|
+
chainKey: ChainKeys.STELLAR_MAINNET,
|
|
2110
|
+
hubAsset: "0x26c07c5da6E4bbCB3514360fa7bF85B92b6a22f1",
|
|
2111
|
+
vault: SodaTokens.sodaSOL.address
|
|
2112
|
+
},
|
|
2113
|
+
SUI: {
|
|
2114
|
+
symbol: "SUI",
|
|
2115
|
+
name: "Sui",
|
|
2116
|
+
decimals: 7,
|
|
2117
|
+
address: "CBAIKWGVYLCCXGW3CSIXE7JCNNVLBAA6UWMOHMEI5FO4UEXB3BZBMT2W",
|
|
2118
|
+
chainKey: ChainKeys.STELLAR_MAINNET,
|
|
2119
|
+
hubAsset: "0xC0297AFb2f65fbb884DfFE8497C5A07ee85FDb91",
|
|
2120
|
+
vault: SodaTokens.sodaSUI.address
|
|
2121
|
+
},
|
|
2122
|
+
AVAX: {
|
|
2123
|
+
symbol: "AVAX",
|
|
2124
|
+
name: "Avalanche",
|
|
2125
|
+
decimals: 7,
|
|
2126
|
+
address: "CC246EHXEDAC7ASKQ7SIFAJCBVDTV35EH4I75KM4ZELVRH5YJFRABWIW",
|
|
2127
|
+
chainKey: ChainKeys.STELLAR_MAINNET,
|
|
2128
|
+
hubAsset: "0x55Ea5b8F035e254C77bCf57564931c8a93bD35F5",
|
|
2129
|
+
vault: SodaTokens.sodaAVAX.address
|
|
2130
|
+
},
|
|
2131
|
+
INJ: {
|
|
2132
|
+
symbol: "INJ",
|
|
2133
|
+
name: "Injective",
|
|
2134
|
+
decimals: 7,
|
|
2135
|
+
address: "CATSVDWZE26QQLX552CMFJHO2MXDEXM7NSW32WP5FU2FFURNAFEUQSAO",
|
|
2136
|
+
chainKey: ChainKeys.STELLAR_MAINNET,
|
|
2137
|
+
hubAsset: "0xe7f1FC4112fFAB462E3c57a2806dabE9EAe824b4",
|
|
2138
|
+
vault: SodaTokens.sodaINJ.address
|
|
2139
|
+
},
|
|
2140
|
+
POL: {
|
|
2141
|
+
symbol: "POL",
|
|
2142
|
+
name: "Polygon",
|
|
2143
|
+
decimals: 7,
|
|
2144
|
+
address: "CBEFOLE2WVJDQ2O2S3HHV6VTUE5RU4DTLSMMRBSB4AWGJPXBWFKK2PKW",
|
|
2145
|
+
chainKey: ChainKeys.STELLAR_MAINNET,
|
|
2146
|
+
hubAsset: "0x43d613F6383F3BD49ed01c52a174437D5d5f7F14",
|
|
2147
|
+
vault: SodaTokens.sodaPOL.address
|
|
2148
|
+
},
|
|
2149
|
+
HYPE: {
|
|
2150
|
+
symbol: "HYPE",
|
|
2151
|
+
name: "Hyperliquid",
|
|
2152
|
+
decimals: 7,
|
|
2153
|
+
address: "CDOQFNKW6B3PBPTLNRQSQVAYUA7HFWGGR7TB5BC5PMZ4HU2M2XGPMGTE",
|
|
2154
|
+
chainKey: ChainKeys.STELLAR_MAINNET,
|
|
2155
|
+
hubAsset: "0xFa12FD5Cd644043bCC25B3d50b526Cdd5de222DC",
|
|
2156
|
+
vault: SodaTokens.sodaHYPE.address
|
|
2157
|
+
},
|
|
2158
|
+
NEAR: {
|
|
2159
|
+
symbol: "NEAR",
|
|
2160
|
+
name: "NEAR Protocol",
|
|
2161
|
+
decimals: 7,
|
|
2162
|
+
address: "CCOJZW4X77T4DNJLV7F6DWKTHDWUS7MRFBZP6BZXT3ZYQFMYDVFVS4EK",
|
|
2163
|
+
chainKey: ChainKeys.STELLAR_MAINNET,
|
|
2164
|
+
hubAsset: "0x6d80fe8044Fb1A6e7Cf44768aF7a7D290BcCB7D0",
|
|
2165
|
+
vault: SodaTokens.sodaNEAR.address
|
|
2166
|
+
},
|
|
2167
|
+
HBAR: {
|
|
2168
|
+
symbol: "HBAR",
|
|
2169
|
+
name: "HBAR",
|
|
2170
|
+
decimals: 7,
|
|
2171
|
+
address: "CCFYC6XGCC6ONVVM7FIAD3Q5KAJUXUDEXLQCQUKP6LN2AKVOGKUQ3JOY",
|
|
2172
|
+
chainKey: ChainKeys.STELLAR_MAINNET,
|
|
2173
|
+
hubAsset: "0x6a9FaA386AC74deAFc1eAf9267369fd8b6B012D6",
|
|
2174
|
+
vault: SodaTokens.sodaHBAR.address
|
|
2175
|
+
},
|
|
2176
|
+
USDS: {
|
|
2177
|
+
symbol: "USDS",
|
|
2178
|
+
name: "USDS",
|
|
2179
|
+
decimals: 7,
|
|
2180
|
+
address: "CC552JLYIJROE24VZFSMO7GBKQOOIQ6R52E3VQSQYC7NMFYAVMC7GQHS",
|
|
2181
|
+
chainKey: ChainKeys.STELLAR_MAINNET,
|
|
2182
|
+
hubAsset: "0xE36b8F88651004e29FD2001aEace777671731d65",
|
|
2183
|
+
vault: SodaTokens.sodaUSDS.address
|
|
2075
2184
|
}
|
|
2076
2185
|
};
|
|
2077
2186
|
var suiSupportedTokens = {
|
|
@@ -2636,6 +2745,152 @@ var hederaSupportedTokens = {
|
|
|
2636
2745
|
chainKey: ChainKeys.HEDERA_MAINNET,
|
|
2637
2746
|
hubAsset: "0xafafae0c1476424c4b81f09095bd7dcb858047c8",
|
|
2638
2747
|
vault: SodaTokens.sodaUSDC.address
|
|
2748
|
+
},
|
|
2749
|
+
ETH: {
|
|
2750
|
+
symbol: "ETH",
|
|
2751
|
+
name: "Ethereum",
|
|
2752
|
+
decimals: 8,
|
|
2753
|
+
address: "0x0000000000000000000000000000000000a4e7fa",
|
|
2754
|
+
chainKey: ChainKeys.HEDERA_MAINNET,
|
|
2755
|
+
hubAsset: "0x486d114536aad26f74e8c399febe1b394bd22c6d",
|
|
2756
|
+
vault: SodaTokens.sodaETH.address
|
|
2757
|
+
},
|
|
2758
|
+
BTC: {
|
|
2759
|
+
symbol: "BTC",
|
|
2760
|
+
name: "Bitcoin",
|
|
2761
|
+
decimals: 8,
|
|
2762
|
+
address: "0x0000000000000000000000000000000000a4e800",
|
|
2763
|
+
chainKey: ChainKeys.HEDERA_MAINNET,
|
|
2764
|
+
hubAsset: "0x2d8c8fae42e961700279e0a6d8457a1c82d91fd1",
|
|
2765
|
+
vault: SodaTokens.sodaBTC.address
|
|
2766
|
+
},
|
|
2767
|
+
BNB: {
|
|
2768
|
+
symbol: "BNB",
|
|
2769
|
+
name: "BNB",
|
|
2770
|
+
decimals: 8,
|
|
2771
|
+
address: "0x0000000000000000000000000000000000a4e801",
|
|
2772
|
+
chainKey: ChainKeys.HEDERA_MAINNET,
|
|
2773
|
+
hubAsset: "0x4184c587275a8b34e3c2fa90172019d46d9a5308",
|
|
2774
|
+
vault: SodaTokens.sodaBNB.address
|
|
2775
|
+
},
|
|
2776
|
+
SOL: {
|
|
2777
|
+
symbol: "SOL",
|
|
2778
|
+
name: "Solana",
|
|
2779
|
+
decimals: 8,
|
|
2780
|
+
address: "0x0000000000000000000000000000000000a4e802",
|
|
2781
|
+
chainKey: ChainKeys.HEDERA_MAINNET,
|
|
2782
|
+
hubAsset: "0x31cf6567ccb4b26f36863720d6a9b9b7a38d4c99",
|
|
2783
|
+
vault: SodaTokens.sodaSOL.address
|
|
2784
|
+
},
|
|
2785
|
+
SUI: {
|
|
2786
|
+
symbol: "SUI",
|
|
2787
|
+
name: "Sui",
|
|
2788
|
+
decimals: 8,
|
|
2789
|
+
address: "0x0000000000000000000000000000000000a4e803",
|
|
2790
|
+
chainKey: ChainKeys.HEDERA_MAINNET,
|
|
2791
|
+
hubAsset: "0x4745bae0101b1a8eb2c40c3269c7104c7330b1b7",
|
|
2792
|
+
vault: SodaTokens.sodaSUI.address
|
|
2793
|
+
},
|
|
2794
|
+
AVAX: {
|
|
2795
|
+
symbol: "AVAX",
|
|
2796
|
+
name: "Avalanche",
|
|
2797
|
+
decimals: 8,
|
|
2798
|
+
address: "0x0000000000000000000000000000000000a4e804",
|
|
2799
|
+
chainKey: ChainKeys.HEDERA_MAINNET,
|
|
2800
|
+
hubAsset: "0x4f3b1ab7769a724238c5eac068292bb2aa32c666",
|
|
2801
|
+
vault: SodaTokens.sodaAVAX.address
|
|
2802
|
+
},
|
|
2803
|
+
INJ: {
|
|
2804
|
+
symbol: "INJ",
|
|
2805
|
+
name: "Injective",
|
|
2806
|
+
decimals: 8,
|
|
2807
|
+
address: "0x0000000000000000000000000000000000a4e805",
|
|
2808
|
+
chainKey: ChainKeys.HEDERA_MAINNET,
|
|
2809
|
+
hubAsset: "0xa95230e137eca5d7246b5586046de4e617a9800d",
|
|
2810
|
+
vault: SodaTokens.sodaINJ.address
|
|
2811
|
+
},
|
|
2812
|
+
POL: {
|
|
2813
|
+
symbol: "POL",
|
|
2814
|
+
name: "Polygon",
|
|
2815
|
+
decimals: 8,
|
|
2816
|
+
address: "0x0000000000000000000000000000000000a4e806",
|
|
2817
|
+
chainKey: ChainKeys.HEDERA_MAINNET,
|
|
2818
|
+
hubAsset: "0x038c07161d45845dba7dd0e7fb222fb09802357c",
|
|
2819
|
+
vault: SodaTokens.sodaPOL.address
|
|
2820
|
+
},
|
|
2821
|
+
HYPE: {
|
|
2822
|
+
symbol: "HYPE",
|
|
2823
|
+
name: "Hyperliquid",
|
|
2824
|
+
decimals: 8,
|
|
2825
|
+
address: "0x0000000000000000000000000000000000a4e808",
|
|
2826
|
+
chainKey: ChainKeys.HEDERA_MAINNET,
|
|
2827
|
+
hubAsset: "0x150160ef7401c574acf063542dd02a5264387497",
|
|
2828
|
+
vault: SodaTokens.sodaHYPE.address
|
|
2829
|
+
},
|
|
2830
|
+
NEAR: {
|
|
2831
|
+
symbol: "NEAR",
|
|
2832
|
+
name: "NEAR Protocol",
|
|
2833
|
+
decimals: 8,
|
|
2834
|
+
address: "0x0000000000000000000000000000000000a4e809",
|
|
2835
|
+
chainKey: ChainKeys.HEDERA_MAINNET,
|
|
2836
|
+
hubAsset: "0x74e15a37f5bccad4cf305ae284f57bcbae70ff8a",
|
|
2837
|
+
vault: SodaTokens.sodaNEAR.address
|
|
2838
|
+
},
|
|
2839
|
+
USDS: {
|
|
2840
|
+
symbol: "USDS",
|
|
2841
|
+
name: "USDS",
|
|
2842
|
+
decimals: 8,
|
|
2843
|
+
address: "0x0000000000000000000000000000000000a4e80a",
|
|
2844
|
+
chainKey: ChainKeys.HEDERA_MAINNET,
|
|
2845
|
+
hubAsset: "0xf93035bede0a23442fc326e4211371e822751e1f",
|
|
2846
|
+
vault: SodaTokens.sodaUSDS.address
|
|
2847
|
+
},
|
|
2848
|
+
XLM: {
|
|
2849
|
+
symbol: "XLM",
|
|
2850
|
+
name: "Stellar Lumens",
|
|
2851
|
+
decimals: 8,
|
|
2852
|
+
address: "0x0000000000000000000000000000000000a4e810",
|
|
2853
|
+
chainKey: ChainKeys.HEDERA_MAINNET,
|
|
2854
|
+
hubAsset: "0xce6260224897fe05aad4b00df6cf9d318fe4ae23",
|
|
2855
|
+
vault: SodaTokens.sodaXLM.address
|
|
2856
|
+
}
|
|
2857
|
+
};
|
|
2858
|
+
var robinhoodSupportedTokens = {
|
|
2859
|
+
ETH: {
|
|
2860
|
+
symbol: "ETH",
|
|
2861
|
+
name: "ETH",
|
|
2862
|
+
decimals: 18,
|
|
2863
|
+
address: "0x0000000000000000000000000000000000000000",
|
|
2864
|
+
chainKey: ChainKeys.ROBINHOOD_MAINNET,
|
|
2865
|
+
hubAsset: "0x389f1c463438b548f430a9934e99cdedbf124c1f",
|
|
2866
|
+
vault: SodaTokens.sodaETH.address
|
|
2867
|
+
},
|
|
2868
|
+
bnUSD: {
|
|
2869
|
+
symbol: "bnUSD",
|
|
2870
|
+
name: "bnUSD",
|
|
2871
|
+
decimals: 18,
|
|
2872
|
+
address: "0x3cd95C469be0EDFD12Bd4F3a4436B132B7908DF4",
|
|
2873
|
+
chainKey: ChainKeys.ROBINHOOD_MAINNET,
|
|
2874
|
+
hubAsset: "0x95f8d76299ac77325b0bd154a1eeb8650367ce4d",
|
|
2875
|
+
vault: SodaTokens.bnUSD.address
|
|
2876
|
+
},
|
|
2877
|
+
SODA: {
|
|
2878
|
+
symbol: "SODA",
|
|
2879
|
+
name: "SODAX",
|
|
2880
|
+
decimals: 18,
|
|
2881
|
+
address: "0xA256dd181C3f6E5eC68C6869f5D50a712d47212e",
|
|
2882
|
+
chainKey: ChainKeys.ROBINHOOD_MAINNET,
|
|
2883
|
+
hubAsset: "0x06dd369f24623e331053baf31a5138f76eb44f11",
|
|
2884
|
+
vault: SodaTokens.sodaSODA.address
|
|
2885
|
+
},
|
|
2886
|
+
USDG: {
|
|
2887
|
+
symbol: "USDG",
|
|
2888
|
+
name: "Global Dollar",
|
|
2889
|
+
decimals: 6,
|
|
2890
|
+
address: "0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168",
|
|
2891
|
+
chainKey: ChainKeys.ROBINHOOD_MAINNET,
|
|
2892
|
+
hubAsset: "0xb2e81dddffcc9e49e9c9ded644091dfecf4ff4e7",
|
|
2893
|
+
vault: SodaTokens.sodaUSDC.address
|
|
2639
2894
|
}
|
|
2640
2895
|
};
|
|
2641
2896
|
var stacksSupportedTokens = {
|
|
@@ -2706,7 +2961,8 @@ var supportedTokensByChain = {
|
|
|
2706
2961
|
[ChainKeys.ETHEREUM_MAINNET]: ethereumSupportedTokens,
|
|
2707
2962
|
[ChainKeys.KAIA_MAINNET]: kaiaSupportedTokens,
|
|
2708
2963
|
[ChainKeys.STACKS_MAINNET]: stacksSupportedTokens,
|
|
2709
|
-
[ChainKeys.HEDERA_MAINNET]: hederaSupportedTokens
|
|
2964
|
+
[ChainKeys.HEDERA_MAINNET]: hederaSupportedTokens,
|
|
2965
|
+
[ChainKeys.ROBINHOOD_MAINNET]: robinhoodSupportedTokens
|
|
2710
2966
|
};
|
|
2711
2967
|
|
|
2712
2968
|
// ../types/dist/chains/chains.js
|
|
@@ -2731,7 +2987,8 @@ var RelayChainIdMap = {
|
|
|
2731
2987
|
[ChainKeys.REDBELLY_MAINNET]: 726564n,
|
|
2732
2988
|
[ChainKeys.KAIA_MAINNET]: 27489n,
|
|
2733
2989
|
[ChainKeys.STACKS_MAINNET]: 60n,
|
|
2734
|
-
[ChainKeys.HEDERA_MAINNET]: 18501n
|
|
2990
|
+
[ChainKeys.HEDERA_MAINNET]: 18501n,
|
|
2991
|
+
[ChainKeys.ROBINHOOD_MAINNET]: 21071n
|
|
2735
2992
|
};
|
|
2736
2993
|
var INTENT_CHAIN_IDS = Object.values(RelayChainIdMap);
|
|
2737
2994
|
var IntentRelayChainIdToChainKey = new Map(Object.entries(RelayChainIdMap).map(([chainKey, chainId]) => [chainId, chainKey]));
|
|
@@ -3031,6 +3288,20 @@ var baseChainInfo = {
|
|
|
3031
3288
|
addressUrl: "https://hashscan.io/mainnet/account/",
|
|
3032
3289
|
contractUrl: "https://hashscan.io/mainnet/contract/"
|
|
3033
3290
|
}
|
|
3291
|
+
},
|
|
3292
|
+
[ChainKeys.ROBINHOOD_MAINNET]: {
|
|
3293
|
+
name: "Robinhood Chain",
|
|
3294
|
+
key: ChainKeys.ROBINHOOD_MAINNET,
|
|
3295
|
+
type: "EVM",
|
|
3296
|
+
chainId: 4663,
|
|
3297
|
+
mainnet: true,
|
|
3298
|
+
logo: chainLogo(ChainKeys.ROBINHOOD_MAINNET),
|
|
3299
|
+
explorer: {
|
|
3300
|
+
baseUrl: "https://robinhoodchain.blockscout.com/",
|
|
3301
|
+
txUrl: "https://robinhoodchain.blockscout.com/tx/",
|
|
3302
|
+
addressUrl: "https://robinhoodchain.blockscout.com/address/",
|
|
3303
|
+
contractUrl: "https://robinhoodchain.blockscout.com/address/"
|
|
3304
|
+
}
|
|
3034
3305
|
}
|
|
3035
3306
|
};
|
|
3036
3307
|
var filterChainKeysByType = (type) => CHAIN_KEYS.filter((key) => baseChainInfo[key].type === type);
|
|
@@ -3311,6 +3582,67 @@ var spokeChainConfig = {
|
|
|
3311
3582
|
assetCode: "sodaBNB",
|
|
3312
3583
|
contractId: "CCXTXZAFLVNTMORVWYB6BGL7YEW3U3ONDAL2FGBRGDUQH7AGANVQPRS6",
|
|
3313
3584
|
assetIssuer: "GDYUTHY75A7WUZJQDPOP66FB32BOYGZRXHWTWO4Q6LQTANT5X3V5HNFA"
|
|
3585
|
+
},
|
|
3586
|
+
// v3.2.0 direct-wrapped spoke assets
|
|
3587
|
+
{
|
|
3588
|
+
assetCode: "ETH",
|
|
3589
|
+
contractId: "CCC6TZWLAHZT2NRVEEOZRPVLUKWVJVKZ3TM347DCCO2QBWNAA5MHROSJ",
|
|
3590
|
+
assetIssuer: "GDYUTHY75A7WUZJQDPOP66FB32BOYGZRXHWTWO4Q6LQTANT5X3V5HNFA"
|
|
3591
|
+
},
|
|
3592
|
+
{
|
|
3593
|
+
assetCode: "BTC",
|
|
3594
|
+
contractId: "CBSKI7SY2AP6IIN7IBROZP2CJES67ARMHQYZWT7A7PKH67KGDK2DIRMA",
|
|
3595
|
+
assetIssuer: "GDYUTHY75A7WUZJQDPOP66FB32BOYGZRXHWTWO4Q6LQTANT5X3V5HNFA"
|
|
3596
|
+
},
|
|
3597
|
+
{
|
|
3598
|
+
assetCode: "BNB",
|
|
3599
|
+
contractId: "CC6C3QCSK3WYM2ZENQ5MHA3QPNAKYOZFAGWH5PPU3MVDE3C2YNS7CHMF",
|
|
3600
|
+
assetIssuer: "GDYUTHY75A7WUZJQDPOP66FB32BOYGZRXHWTWO4Q6LQTANT5X3V5HNFA"
|
|
3601
|
+
},
|
|
3602
|
+
{
|
|
3603
|
+
assetCode: "SOL",
|
|
3604
|
+
contractId: "CB5YRZTKA37DND672WZZXI3BQ66P4PQEJ6VQA3TDG2YLUAGADBP2VCUR",
|
|
3605
|
+
assetIssuer: "GDYUTHY75A7WUZJQDPOP66FB32BOYGZRXHWTWO4Q6LQTANT5X3V5HNFA"
|
|
3606
|
+
},
|
|
3607
|
+
{
|
|
3608
|
+
assetCode: "SUI",
|
|
3609
|
+
contractId: "CBAIKWGVYLCCXGW3CSIXE7JCNNVLBAA6UWMOHMEI5FO4UEXB3BZBMT2W",
|
|
3610
|
+
assetIssuer: "GDYUTHY75A7WUZJQDPOP66FB32BOYGZRXHWTWO4Q6LQTANT5X3V5HNFA"
|
|
3611
|
+
},
|
|
3612
|
+
{
|
|
3613
|
+
assetCode: "AVAX",
|
|
3614
|
+
contractId: "CC246EHXEDAC7ASKQ7SIFAJCBVDTV35EH4I75KM4ZELVRH5YJFRABWIW",
|
|
3615
|
+
assetIssuer: "GDYUTHY75A7WUZJQDPOP66FB32BOYGZRXHWTWO4Q6LQTANT5X3V5HNFA"
|
|
3616
|
+
},
|
|
3617
|
+
{
|
|
3618
|
+
assetCode: "INJ",
|
|
3619
|
+
contractId: "CATSVDWZE26QQLX552CMFJHO2MXDEXM7NSW32WP5FU2FFURNAFEUQSAO",
|
|
3620
|
+
assetIssuer: "GDYUTHY75A7WUZJQDPOP66FB32BOYGZRXHWTWO4Q6LQTANT5X3V5HNFA"
|
|
3621
|
+
},
|
|
3622
|
+
{
|
|
3623
|
+
assetCode: "POL",
|
|
3624
|
+
contractId: "CBEFOLE2WVJDQ2O2S3HHV6VTUE5RU4DTLSMMRBSB4AWGJPXBWFKK2PKW",
|
|
3625
|
+
assetIssuer: "GDYUTHY75A7WUZJQDPOP66FB32BOYGZRXHWTWO4Q6LQTANT5X3V5HNFA"
|
|
3626
|
+
},
|
|
3627
|
+
{
|
|
3628
|
+
assetCode: "HYPE",
|
|
3629
|
+
contractId: "CDOQFNKW6B3PBPTLNRQSQVAYUA7HFWGGR7TB5BC5PMZ4HU2M2XGPMGTE",
|
|
3630
|
+
assetIssuer: "GDYUTHY75A7WUZJQDPOP66FB32BOYGZRXHWTWO4Q6LQTANT5X3V5HNFA"
|
|
3631
|
+
},
|
|
3632
|
+
{
|
|
3633
|
+
assetCode: "NEAR",
|
|
3634
|
+
contractId: "CCOJZW4X77T4DNJLV7F6DWKTHDWUS7MRFBZP6BZXT3ZYQFMYDVFVS4EK",
|
|
3635
|
+
assetIssuer: "GDYUTHY75A7WUZJQDPOP66FB32BOYGZRXHWTWO4Q6LQTANT5X3V5HNFA"
|
|
3636
|
+
},
|
|
3637
|
+
{
|
|
3638
|
+
assetCode: "HBAR",
|
|
3639
|
+
contractId: "CCFYC6XGCC6ONVVM7FIAD3Q5KAJUXUDEXLQCQUKP6LN2AKVOGKUQ3JOY",
|
|
3640
|
+
assetIssuer: "GDYUTHY75A7WUZJQDPOP66FB32BOYGZRXHWTWO4Q6LQTANT5X3V5HNFA"
|
|
3641
|
+
},
|
|
3642
|
+
{
|
|
3643
|
+
assetCode: "USDS",
|
|
3644
|
+
contractId: "CC552JLYIJROE24VZFSMO7GBKQOOIQ6R52E3VQSQYC7NMFYAVMC7GQHS",
|
|
3645
|
+
assetIssuer: "GDYUTHY75A7WUZJQDPOP66FB32BOYGZRXHWTWO4Q6LQTANT5X3V5HNFA"
|
|
3314
3646
|
}
|
|
3315
3647
|
],
|
|
3316
3648
|
supportedTokens: stellarSupportedTokens,
|
|
@@ -3441,6 +3773,21 @@ var spokeChainConfig = {
|
|
|
3441
3773
|
pollingIntervalMs: 2e3,
|
|
3442
3774
|
maxTimeoutMs: 6e4
|
|
3443
3775
|
}
|
|
3776
|
+
},
|
|
3777
|
+
[ChainKeys.ROBINHOOD_MAINNET]: {
|
|
3778
|
+
chain: baseChainInfo[ChainKeys.ROBINHOOD_MAINNET],
|
|
3779
|
+
rpcUrl: "https://rpc.mainnet.chain.robinhood.com",
|
|
3780
|
+
addresses: {
|
|
3781
|
+
assetManager: "0x0df73542cC68bDC01b361d231c60F726B0e0bC05",
|
|
3782
|
+
connection: "0x4555aC13D7338D9E671584C1D118c06B2a3C88eD"
|
|
3783
|
+
},
|
|
3784
|
+
nativeToken: "0x0000000000000000000000000000000000000000",
|
|
3785
|
+
bnUSD: "0x3cd95C469be0EDFD12Bd4F3a4436B132B7908DF4",
|
|
3786
|
+
supportedTokens: robinhoodSupportedTokens,
|
|
3787
|
+
pollingConfig: {
|
|
3788
|
+
pollingIntervalMs: 1e3,
|
|
3789
|
+
maxTimeoutMs: 6e4
|
|
3790
|
+
}
|
|
3444
3791
|
}
|
|
3445
3792
|
};
|
|
3446
3793
|
var supportedSpokeChains = Object.keys(spokeChainConfig);
|
|
@@ -3622,7 +3969,20 @@ var moneyMarketSupportedTokens = {
|
|
|
3622
3969
|
spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.USDC,
|
|
3623
3970
|
spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.sodaETH,
|
|
3624
3971
|
spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.sodaBTC,
|
|
3625
|
-
spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.sodaBNB
|
|
3972
|
+
spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.sodaBNB,
|
|
3973
|
+
// v3.2.0 direct-wrapped spoke assets
|
|
3974
|
+
spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.ETH,
|
|
3975
|
+
spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.BTC,
|
|
3976
|
+
spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.BNB,
|
|
3977
|
+
spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.SOL,
|
|
3978
|
+
spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.SUI,
|
|
3979
|
+
spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.AVAX,
|
|
3980
|
+
spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.INJ,
|
|
3981
|
+
spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.POL,
|
|
3982
|
+
spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.HYPE,
|
|
3983
|
+
spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.NEAR,
|
|
3984
|
+
spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.HBAR,
|
|
3985
|
+
spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.USDS
|
|
3626
3986
|
],
|
|
3627
3987
|
[ChainKeys.SUI_MAINNET]: [
|
|
3628
3988
|
spokeChainConfig[ChainKeys.SUI_MAINNET].supportedTokens.SUI,
|
|
@@ -3703,8 +4063,23 @@ var moneyMarketSupportedTokens = {
|
|
|
3703
4063
|
[ChainKeys.HEDERA_MAINNET]: [
|
|
3704
4064
|
spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.bnUSD,
|
|
3705
4065
|
spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.SODA,
|
|
3706
|
-
spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.USDC
|
|
3707
|
-
|
|
4066
|
+
spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.USDC,
|
|
4067
|
+
// v3.2.0 direct-wrapped spoke assets
|
|
4068
|
+
spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.ETH,
|
|
4069
|
+
spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.BTC,
|
|
4070
|
+
spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.BNB,
|
|
4071
|
+
spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.SOL,
|
|
4072
|
+
spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.SUI,
|
|
4073
|
+
spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.AVAX,
|
|
4074
|
+
spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.INJ,
|
|
4075
|
+
spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.POL,
|
|
4076
|
+
spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.HYPE,
|
|
4077
|
+
spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.NEAR,
|
|
4078
|
+
spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.USDS,
|
|
4079
|
+
spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.XLM
|
|
4080
|
+
],
|
|
4081
|
+
// Robinhood Chain: lending/borrowing deferred at launch (swaps + bridging only)
|
|
4082
|
+
[ChainKeys.ROBINHOOD_MAINNET]: []
|
|
3708
4083
|
};
|
|
3709
4084
|
var moneyMarketReserveAssets = [
|
|
3710
4085
|
...Object.values(SodaTokens).map((vault) => vault.address),
|
|
@@ -4029,7 +4404,20 @@ var swapSupportedTokens = {
|
|
|
4029
4404
|
spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.SODA,
|
|
4030
4405
|
spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.sodaETH,
|
|
4031
4406
|
spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.sodaBTC,
|
|
4032
|
-
spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.sodaBNB
|
|
4407
|
+
spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.sodaBNB,
|
|
4408
|
+
// v3.2.0 direct-wrapped spoke assets
|
|
4409
|
+
spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.ETH,
|
|
4410
|
+
spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.BTC,
|
|
4411
|
+
spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.BNB,
|
|
4412
|
+
spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.SOL,
|
|
4413
|
+
spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.SUI,
|
|
4414
|
+
spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.AVAX,
|
|
4415
|
+
spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.INJ,
|
|
4416
|
+
spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.POL,
|
|
4417
|
+
spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.HYPE,
|
|
4418
|
+
spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.NEAR,
|
|
4419
|
+
spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.HBAR,
|
|
4420
|
+
spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.USDS
|
|
4033
4421
|
],
|
|
4034
4422
|
[ChainKeys.SUI_MAINNET]: [
|
|
4035
4423
|
spokeChainConfig[ChainKeys.SUI_MAINNET].supportedTokens.SUI,
|
|
@@ -4118,8 +4506,31 @@ var swapSupportedTokens = {
|
|
|
4118
4506
|
spokeChainConfig[ChainKeys.STACKS_MAINNET].supportedTokens.sBTC,
|
|
4119
4507
|
spokeChainConfig[ChainKeys.STACKS_MAINNET].supportedTokens.USDC
|
|
4120
4508
|
],
|
|
4121
|
-
|
|
4122
|
-
|
|
4509
|
+
[ChainKeys.HEDERA_MAINNET]: [
|
|
4510
|
+
spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.HBAR,
|
|
4511
|
+
spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.bnUSD,
|
|
4512
|
+
spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.USDC,
|
|
4513
|
+
spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.SODA,
|
|
4514
|
+
// v3.2.0 direct-wrapped spoke assets
|
|
4515
|
+
spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.ETH,
|
|
4516
|
+
spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.BTC,
|
|
4517
|
+
spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.BNB,
|
|
4518
|
+
spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.SOL,
|
|
4519
|
+
spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.SUI,
|
|
4520
|
+
spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.AVAX,
|
|
4521
|
+
spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.INJ,
|
|
4522
|
+
spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.POL,
|
|
4523
|
+
spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.HYPE,
|
|
4524
|
+
spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.NEAR,
|
|
4525
|
+
spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.USDS,
|
|
4526
|
+
spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.XLM
|
|
4527
|
+
],
|
|
4528
|
+
[ChainKeys.ROBINHOOD_MAINNET]: [
|
|
4529
|
+
spokeChainConfig[ChainKeys.ROBINHOOD_MAINNET].supportedTokens.ETH,
|
|
4530
|
+
spokeChainConfig[ChainKeys.ROBINHOOD_MAINNET].supportedTokens.bnUSD,
|
|
4531
|
+
spokeChainConfig[ChainKeys.ROBINHOOD_MAINNET].supportedTokens.SODA,
|
|
4532
|
+
spokeChainConfig[ChainKeys.ROBINHOOD_MAINNET].supportedTokens.USDG
|
|
4533
|
+
]
|
|
4123
4534
|
};
|
|
4124
4535
|
var stagingSwapSupportedTokens = {
|
|
4125
4536
|
[ChainKeys.SONIC_MAINNET]: [SodaTokens.sodaSUSDS],
|
|
@@ -4153,12 +4564,10 @@ var stagingSwapSupportedTokens = {
|
|
|
4153
4564
|
[ChainKeys.REDBELLY_MAINNET]: [],
|
|
4154
4565
|
[ChainKeys.KAIA_MAINNET]: [],
|
|
4155
4566
|
[ChainKeys.STACKS_MAINNET]: [],
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.SODA
|
|
4161
|
-
]
|
|
4567
|
+
// Hedera promoted to production — see swapSupportedTokens
|
|
4568
|
+
[ChainKeys.HEDERA_MAINNET]: [],
|
|
4569
|
+
// Robinhood Chain promoted to production — see swapSupportedTokens
|
|
4570
|
+
[ChainKeys.ROBINHOOD_MAINNET]: []
|
|
4162
4571
|
};
|
|
4163
4572
|
var swapsConfig = {
|
|
4164
4573
|
supportedTokens: swapSupportedTokens
|
|
@@ -4290,21 +4699,17 @@ var spokeHooks = {
|
|
|
4290
4699
|
supportedTokens: [spokeChainConfig[ChainKeys.HYPEREVM_MAINNET].supportedTokens.USDC.address]
|
|
4291
4700
|
// USDC on HyperEVM
|
|
4292
4701
|
}
|
|
4702
|
+
],
|
|
4703
|
+
[ChainKeys.ETHEREUM_MAINNET]: [
|
|
4704
|
+
{
|
|
4705
|
+
kind: HookKind.FLINT_DEPOSIT,
|
|
4706
|
+
// FlintDepositHook, deployed 2026-08-10 (icon-project/sodax-contracts#693). USDC only: any
|
|
4707
|
+
// other delivered token is handed to the recipient as a plain transfer by the hook itself.
|
|
4708
|
+
address: "0xDf376dE34e9f1474A025Dfe411b7EB5541793C5d",
|
|
4709
|
+
supportedTokens: [spokeChainConfig[ChainKeys.ETHEREUM_MAINNET].supportedTokens.USDC.address]
|
|
4710
|
+
// USDC on Ethereum
|
|
4711
|
+
}
|
|
4293
4712
|
]
|
|
4294
|
-
// HookKind.FLINT_DEPOSIT is not registered yet: FlintDepositHook is not deployed to Ethereum
|
|
4295
|
-
// mainnet (icon-project/sodax-contracts#693). Registering it with a placeholder address would
|
|
4296
|
-
// route real intent output to that address, so the entry lands with the deployment:
|
|
4297
|
-
//
|
|
4298
|
-
// [ChainKeys.ETHEREUM_MAINNET]: [
|
|
4299
|
-
// {
|
|
4300
|
-
// kind: HookKind.FLINT_DEPOSIT,
|
|
4301
|
-
// address: '0x…',
|
|
4302
|
-
// supportedTokens: [spokeChainConfig[ChainKeys.ETHEREUM_MAINNET].supportedTokens.USDC.address],
|
|
4303
|
-
// },
|
|
4304
|
-
// ],
|
|
4305
|
-
//
|
|
4306
|
-
// Until then `getSpokeHook` returns undefined and `resolveDeliveryHook` throws, which is the
|
|
4307
|
-
// correct behaviour for a hook that does not exist on chain.
|
|
4308
4713
|
};
|
|
4309
4714
|
var getSpokeHook = (chainKey, kind) => spokeHooks[chainKey]?.find((h) => h.kind === kind);
|
|
4310
4715
|
var getSpokeHooks = (chainKey) => spokeHooks[chainKey] ?? [];
|
|
@@ -4453,7 +4858,7 @@ function isValidWalletProviderForChainKey(chainKey, walletProvider) {
|
|
|
4453
4858
|
}
|
|
4454
4859
|
|
|
4455
4860
|
// ../types/dist/index.js
|
|
4456
|
-
var CONFIG_VERSION =
|
|
4861
|
+
var CONFIG_VERSION = 229;
|
|
4457
4862
|
|
|
4458
4863
|
// src/shared/utils/resolveTimeoutMs.ts
|
|
4459
4864
|
function resolveTimeoutMs(timeout, fallbackMs) {
|
|
@@ -4542,6 +4947,9 @@ function isSpokeApproveParamsEvmSpoke(params) {
|
|
|
4542
4947
|
function isSpokeApproveParamsStellar(params) {
|
|
4543
4948
|
return isStellarChainKeyType(params.srcChainKey);
|
|
4544
4949
|
}
|
|
4950
|
+
function isApprovalSupportedChainKeyType(value) {
|
|
4951
|
+
return isHubChainKeyType(value) || isEvmSpokeOnlyChainKeyType(value) || isStellarChainKeyType(value);
|
|
4952
|
+
}
|
|
4545
4953
|
function isRawDestinationParams(value) {
|
|
4546
4954
|
if (typeof value !== "object" || value === null) return false;
|
|
4547
4955
|
const obj = value;
|
|
@@ -14449,6 +14857,24 @@ var hyper = /* @__PURE__ */ defineChain({
|
|
|
14449
14857
|
}
|
|
14450
14858
|
}
|
|
14451
14859
|
});
|
|
14860
|
+
var robinhoodChain = /* @__PURE__ */ defineChain({
|
|
14861
|
+
id: 4663,
|
|
14862
|
+
name: "Robinhood Chain",
|
|
14863
|
+
nativeCurrency: {
|
|
14864
|
+
decimals: 18,
|
|
14865
|
+
name: "Ether",
|
|
14866
|
+
symbol: "ETH"
|
|
14867
|
+
},
|
|
14868
|
+
rpcUrls: {
|
|
14869
|
+
default: { http: ["https://rpc.mainnet.chain.robinhood.com"] }
|
|
14870
|
+
},
|
|
14871
|
+
blockExplorers: {
|
|
14872
|
+
default: {
|
|
14873
|
+
name: "Blockscout",
|
|
14874
|
+
url: "https://robinhoodchain.blockscout.com"
|
|
14875
|
+
}
|
|
14876
|
+
}
|
|
14877
|
+
});
|
|
14452
14878
|
function getEvmViemChain(key) {
|
|
14453
14879
|
switch (key) {
|
|
14454
14880
|
case ChainKeys.SONIC_MAINNET:
|
|
@@ -14477,6 +14903,8 @@ function getEvmViemChain(key) {
|
|
|
14477
14903
|
return kaia;
|
|
14478
14904
|
case ChainKeys.HEDERA_MAINNET:
|
|
14479
14905
|
return hedera;
|
|
14906
|
+
case ChainKeys.ROBINHOOD_MAINNET:
|
|
14907
|
+
return robinhoodChain;
|
|
14480
14908
|
default: {
|
|
14481
14909
|
const exhaustiveCheck = key;
|
|
14482
14910
|
console.log(exhaustiveCheck);
|
|
@@ -31195,7 +31623,7 @@ var BridgeTokensByChainResponseSchema = v.array(BridgeTokenSchema);
|
|
|
31195
31623
|
var BridgeAllowanceCheckResponseSchema = v.object({
|
|
31196
31624
|
valid: v.boolean()
|
|
31197
31625
|
});
|
|
31198
|
-
var makeBridgeApproveResponseSchema = (txSchema) => v.object({ tx: txSchema });
|
|
31626
|
+
var makeBridgeApproveResponseSchema = (txSchema) => v.object({ tx: txSchema, resetTx: v.optional(txSchema) });
|
|
31199
31627
|
var makeCreateBridgeIntentResponseSchema = (txSchema) => v.object({
|
|
31200
31628
|
tx: txSchema,
|
|
31201
31629
|
relayData: RelayExtraDataResponseSchema
|
|
@@ -31460,7 +31888,8 @@ var BridgeApiService = class {
|
|
|
31460
31888
|
/**
|
|
31461
31889
|
* Build an unsigned token-approval transaction for the source token.
|
|
31462
31890
|
*
|
|
31463
|
-
* @returns `Result<BridgeApproveResponseV2>` — `{ tx }` (chain-specific unsigned
|
|
31891
|
+
* @returns `Result<BridgeApproveResponseV2>` — `{ tx, resetTx? }` (chain-specific unsigned txs);
|
|
31892
|
+
* broadcast and mine `resetTx` first when it is present.
|
|
31464
31893
|
*/
|
|
31465
31894
|
async approve(body, config) {
|
|
31466
31895
|
const txSchema = rawTxSchemaForChainKey(body.srcChainKey);
|
|
@@ -32184,6 +32613,8 @@ var BridgeService = class {
|
|
|
32184
32613
|
* When `raw` is `true` the encoded transaction is returned without broadcasting.
|
|
32185
32614
|
* When `raw` is `false` the transaction is signed and submitted via the provided wallet provider.
|
|
32186
32615
|
*
|
|
32616
|
+
* Returns a SINGLE transaction — for the unsigned two-step case use {@link BridgeService.buildApproveTxs}.
|
|
32617
|
+
*
|
|
32187
32618
|
* @param _params - Bridge parameters including source chain, token, amount, wallet provider, and `raw` flag.
|
|
32188
32619
|
* @returns `Result<TxReturnType<K, Raw>>` — encoded transaction data (raw) or submitted transaction hash.
|
|
32189
32620
|
*/
|
|
@@ -32200,7 +32631,7 @@ var BridgeService = class {
|
|
|
32200
32631
|
"Invalid wallet provider. Expected Evm wallet provider.",
|
|
32201
32632
|
{ ...baseCtx, field: "walletProvider" }
|
|
32202
32633
|
);
|
|
32203
|
-
const spender =
|
|
32634
|
+
const spender = await this.resolveEvmApprovalSpender(params.srcChainKey, params.srcAddress);
|
|
32204
32635
|
const coreParams = {
|
|
32205
32636
|
srcChainKey: params.srcChainKey,
|
|
32206
32637
|
owner: params.srcAddress,
|
|
@@ -32256,6 +32687,65 @@ var BridgeService = class {
|
|
|
32256
32687
|
return { ok: false, error: wrapApproveFailure(error) };
|
|
32257
32688
|
}
|
|
32258
32689
|
}
|
|
32690
|
+
/**
|
|
32691
|
+
* The contract a bridge source token must be approved to, on the EVM approval path: the caller's own
|
|
32692
|
+
* hub wallet router for a hub source (per-caller, hence async), the chain's asset manager on a spoke.
|
|
32693
|
+
* NOT the swaps spender. Shared by `approve` and `buildApproveTxs` so the two cannot drift apart.
|
|
32694
|
+
*/
|
|
32695
|
+
async resolveEvmApprovalSpender(srcChainKey, srcAddress) {
|
|
32696
|
+
return isHubChainKeyType(srcChainKey) ? await this.hubProvider.getUserHubWalletAddress(srcAddress, srcChainKey) : this.config.getChainConfig(srcChainKey).addresses.assetManager;
|
|
32697
|
+
}
|
|
32698
|
+
/**
|
|
32699
|
+
* The unsigned approval transactions for the bridge's source token: `approveTx`, preceded by a
|
|
32700
|
+
* `resetTx` when a stale allowance must be zeroed first. Broadcast `resetTx` and wait for it to be
|
|
32701
|
+
* mined — `approveTx` is not valid until it lands.
|
|
32702
|
+
*/
|
|
32703
|
+
async buildApproveTxs(_params) {
|
|
32704
|
+
const { params } = _params;
|
|
32705
|
+
const baseCtx = { srcChainKey: params.srcChainKey };
|
|
32706
|
+
const wrapApproveFailure = (cause) => approveFailed("bridge", cause, baseCtx);
|
|
32707
|
+
try {
|
|
32708
|
+
bridgeInvariant(params.amount > 0n, "Amount must be greater than 0", { ...baseCtx, field: "amount" });
|
|
32709
|
+
bridgeInvariant(params.srcToken.length > 0, "Source asset is required", { ...baseCtx, field: "srcToken" });
|
|
32710
|
+
if (isHubChainKeyType(params.srcChainKey) || isEvmSpokeOnlyChainKeyType(params.srcChainKey)) {
|
|
32711
|
+
const spender = await this.resolveEvmApprovalSpender(params.srcChainKey, params.srcAddress);
|
|
32712
|
+
const result = await this.spoke.buildApproveTxs({
|
|
32713
|
+
srcChainKey: params.srcChainKey,
|
|
32714
|
+
owner: params.srcAddress,
|
|
32715
|
+
token: params.srcToken,
|
|
32716
|
+
amount: params.amount,
|
|
32717
|
+
spender,
|
|
32718
|
+
raw: true
|
|
32719
|
+
});
|
|
32720
|
+
if (!result.ok) return { ok: false, error: wrapApproveFailure(result.error) };
|
|
32721
|
+
return {
|
|
32722
|
+
ok: true,
|
|
32723
|
+
value: result.value
|
|
32724
|
+
};
|
|
32725
|
+
}
|
|
32726
|
+
if (isStellarChainKeyType(params.srcChainKey)) {
|
|
32727
|
+
const result = await this.spoke.buildApproveTxs({
|
|
32728
|
+
srcChainKey: params.srcChainKey,
|
|
32729
|
+
token: params.srcToken,
|
|
32730
|
+
amount: params.amount,
|
|
32731
|
+
owner: params.srcAddress,
|
|
32732
|
+
raw: true
|
|
32733
|
+
});
|
|
32734
|
+
if (!result.ok) return { ok: false, error: wrapApproveFailure(result.error) };
|
|
32735
|
+
return {
|
|
32736
|
+
ok: true,
|
|
32737
|
+
value: result.value
|
|
32738
|
+
};
|
|
32739
|
+
}
|
|
32740
|
+
bridgeInvariant(false, "Approval only supported for EVM spoke chains and Stellar", {
|
|
32741
|
+
...baseCtx,
|
|
32742
|
+
field: "srcChainKey"
|
|
32743
|
+
});
|
|
32744
|
+
} catch (error) {
|
|
32745
|
+
if (isBridgeApproveError(error)) return { ok: false, error };
|
|
32746
|
+
return { ok: false, error: wrapApproveFailure(error) };
|
|
32747
|
+
}
|
|
32748
|
+
}
|
|
32259
32749
|
/**
|
|
32260
32750
|
* Executes a full end-to-end bridge transfer: spoke deposit → relay → hub settlement.
|
|
32261
32751
|
*
|
|
@@ -42477,4 +42967,4 @@ var isPartnerError = isCodeMember(PARTNER_CODES);
|
|
|
42477
42967
|
(*! scure-base - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
|
|
42478
42968
|
*/
|
|
42479
42969
|
|
|
42480
|
-
export { ALLOWANCE_CHECK_CODES, APPROVE_CODES, AssetService, BACKEND_API_BASE_PATH, BITCOIN_CHAIN_KEYS, BITCOIN_CHAIN_KEYS_SET, BITCOIN_DUST_SATS, BTC_WALLET_ADDRESS_TYPES, BackendApiService, BackendHttpError, BalnSwapService, BigIntToHex, BigNumberZeroDecimal, BitcoinSpokeService, BnUSDMigrationService, BridgeApiService, BridgeService, CHAIN_KEYS, CHAIN_LOGO_BASE_URL, CONFIG_VERSION, CREATE_INTENT_CODES, ChainKeys, ChainTypeArr, ClService, ConfigService, CustomSorobanServer, CustomStellarAccount, DEFAULT_API_BASE_URL, DEFAULT_BACKEND_API_ENDPOINT, DEFAULT_BACKEND_API_HEADERS, DEFAULT_BACKEND_API_TIMEOUT, DEFAULT_DEADLINE_OFFSET, DEFAULT_MAX_RETRY, DEFAULT_RELAYER_API_ENDPOINT, DEFAULT_RELAY_TX_TIMEOUT, DEFAULT_RETRY_DELAY_MS, DEFAULT_SPONSORING_API_ENDPOINT, DETAILED_STATUS_NOT_DELIVERED, DexService, EVM_CHAIN_ID_TO_KEY, EVM_CHAIN_KEYS, EVM_CHAIN_KEYS_SET, EVM_SPOKE_ONLY_CHAIN_KEYS, EVM_SPOKE_ONLY_CHAIN_KEYS_SET, Erc20Service, Erc4626Service, EvmAssetManagerService, EvmHubProvider, EvmSolverService, EvmSpokeService, EvmVaultTokenService, FEE_PERCENTAGE_SCALE, GAS_ESTIMATION_CODES, HALF_RAY, HALF_WAD, HUB_CHAIN_KEY, HookKind, HookService, HttpRelayError, HubVaultSymbols, ICON_CHAIN_KEYS, ICON_CHAIN_KEYS_SET, ICON_TX_RESULT_WAIT_MAX_RETRY, INJECTIVE_CHAIN_KEYS, INJECTIVE_CHAIN_KEYS_SET, INTENT_CHAIN_IDS, IconSpokeService, IcxMigrationService, Injective20Token, InjectiveSpokeService, IntentCreatedEventAbi, IntentDataService, IntentDataType, IntentFilledEventAbi, IntentRelayChainIdToChainKey, IntentsAbi, LOOKUP_CODES, LTV_PRECISION, LendingPoolService, LeverageYieldService, LockupMultiplier, LockupPeriod, LsodaSymbols, LsodaTokens, MAX_UINT256, MigrationService, MintPositionEventAbi, MoneyMarketDataService, MoneyMarketService, NEAR_CHAIN_KEYS, NEAR_CHAIN_KEYS_SET, NEAR_DEFAULT_GAS, NEAR_STORAGE_DEPOSIT, NearSpokeService, PartnerFeeClaimService, PartnerService, Permit2Service, ProtocolIntentsAbi, RAY, RAY_DECIMALS, RELAY_ERROR_CODES, RELAY_FALLBACK_FLOOR_MS, RELAY_REQUEST_TIMEOUT_MS, RadfiApiError, RadfiProvider, RecoveryService, RelayChainIdMap, SECONDS_PER_YEAR, SODAX_ERROR_CODES, SODAX_FEATURES, SOLANA_CHAIN_KEYS, SOLANA_CHAIN_KEYS_SET, SONIC_CHAIN_KEYS, SONIC_CHAIN_KEYS_SET, SPONSORING_API_ERROR_CODES, SPONSORING_API_STELLAR_BASE_PATH, SPONSOR_CONFIG_TTL_MS, STACKS_CHAIN_KEYS, STACKS_CHAIN_KEYS_SET, STELLAR_BASE_RESERVE_TTL_MS, STELLAR_CHAIN_KEYS, STELLAR_CHAIN_KEYS_SET, STELLAR_TRUSTLINE_MIN_XLM_STROOPS, SUI_CHAIN_KEYS, SUI_CHAIN_KEYS_SET, SodaTokens, Sodax, SodaxError, SolanaSpokeService, SolverApiService, SolverIntentErrorCode, SolverIntentStatusCode, SonicSpokeService, SpokeService, SponsoringApiService, SponsoringService, StacksSpokeService, StakingLogic, StakingService, StatATokenAddresses, StellarSpokeService, SuiGrpcTransport, SuiSpokeService, SupportedMigrationTokens, SwapService, SwapsApiService, TOKEN_LOGO_BASE_URL, USD_DECIMALS, UiPoolDataProviderService, VAULT_TOKEN_DECIMALS, WAD, WAD_RAY_RATIO, WEI_DECIMALS, adjustAmountByFee, allowanceCheckFailed, apiConfig, approveFailed, arbitrumSupportedTokens, assetManagerAbi, avalancheSupportedTokens, balnSwapAbi, baseChainInfo, baseSupportedTokens, binomialApproximatedRayPow, bitcoinSupportedTokens, bnUSDLegacySpokeChainIds, bnUSDLegacyTokens, bridgeConfig, bridgeInvariant, bscSupportedTokens, calcOpReturnOutputVbytes, calculateAllReserveIncentives, calculateAllUserIncentives, calculateAvailableBorrowsMarketReferenceCurrency, calculateCompoundedInterest, calculateCompoundedRate, calculateFeeAmount, calculateHealthFactorFromBalances, calculateHealthFactorFromBalancesBigUnits, calculateLinearInterest, calculatePercentageFeeAmount, clPoolAbi, clPoolManagerAbi, clPositionManagerAbi, clQuoterAbi, clRouterAbi, clTickLensAbi, classifySponsorError, concentratedLiquidityConfig, connectionAbi, consoleLogger, convertTransactionInstructionToRaw, createInvariant, deepMerge, defaultHookAbi, detectBitcoinAddressType, dexConfig, dexInvariant, dexPools, encodeAddress, encodeBtcPayloadToBytes, encodeContractCalls, erc20Abi, erc4626Abi, estimateBitcoinTxSize, ethereumSupportedTokens, executionFailed, formatBasisPoints, formatEModeCategory, formatEModes, formatPercentage, formatReserve, formatReserveUSD, formatReserves, formatReservesAndIncentives, formatUserSummary, formatUserSummaryAndIncentives, gasEstimationFailed, getAllLegacybnUSDTokens, getAndFormatReserveEModes, getAssetManagerIdl, getAssetManagerProgram, getChainKeyFromRelayChainId, getChainType, getCompoundedBalance, getConcentratedLiquidityConfig, getConnectionIdl, getConnectionProgram, getEvmChainKeyByChainId, getEvmViemChain, getIconAddressBytes, getIntentRelayChainId, getLinearBalance, getMarketReferenceCurrencyAndUsdBalance, getPacket, getProvider, getRandomBytes, getReserveNormalizedIncome, getReservesEModes, getSolanaAddressBytes, getSolverConfig, getSpokeHook, getSpokeHooks, getStagingSolverTokens, getSupportedSolverTokens, getTransactionPackets, getbnUSDToken, hederaSupportedTokens, hexToBigInt, hexToSolanaAddress, hubConfig, hyper, hyperevmSupportedTokens, iconSupportedTokens, injectiveSupportedTokens, intentCreationFailed, isBackendHttpError, isBalnMigrateParams, isBitcoinChainKey, isBitcoinChainKeyType, isBitcoinWalletProviderType, isBridgeAllowanceCheckError, isBridgeApproveError, isBridgeCreateIntentError, isBridgeError, isBridgeLookupError, isBridgeOrchestrationError, isCodeMember, isDexApproveError, isDexCreateIntentError, isDexError, isEvmChainKey, isEvmChainKeyType, isEvmSpokeChainConfig, isEvmSpokeOnlyChainKey, isEvmSpokeOnlyChainKeyType, isEvmWalletProviderType, isFeatureError, isFillEvent, isHookSupportedToken, isHubChainKey, isHubChainKeyType, isIconAddress, isIconChainKey, isIconChainKeyType, isIcxCreateRevertMigrationParams, isIcxMigrateParams, isInjectiveChainKey, isInjectiveChainKeyType, isJsonRpcPayloadResponse, isLegacybnUSDChainId, isLegacybnUSDToken, isLeverageYieldAllowanceCheckError, isLeverageYieldApproveError, isLeverageYieldCreateIntentError, isLeverageYieldError, isLeverageYieldLookupError, isLeverageYieldPostExecutionError, isLeverageYieldSwapError, isMigrateOrchestrationError, isMigrationAllowanceCheckError, isMigrationApproveError, isMigrationCreateIntentError, isMigrationError, isMigrationLookupError, isMoneyMarketAllowanceCheckError, isMoneyMarketApproveError, isMoneyMarketCreateIntentError, isMoneyMarketError, isMoneyMarketGasEstimationError, isMoneyMarketOrchestrationError, isNativeBitcoinToken, isNativeBitcoinTransfer, isNativeToken, isNearChainKey, isNearChainKeyType, isNewbnUSDChainId, isNewbnUSDToken, isOptionalBitcoinWalletProviderType, isOptionalEvmWalletProviderType, isOptionalStellarWalletProviderType, isPartnerError, isPartnerFeeAmount, isPartnerFeePercentage, isPostExecutionError, isRawDestinationParams, isRecoveryError, isResponseAddressType, isResponseSigningType, isRevertMigrationOrchestrationError, isSodaxError, isSolanaChainKey, isSolanaChainKeyType, isSolanaNativeToken, isSonicChainKey, isSonicChainKeyType, isSpokeApproveParamsEvmSpoke, isSpokeApproveParamsHub, isSpokeApproveParamsStellar, isSpokeChainKey, isSpokeIsAllowanceValidParamsEvmSpoke, isSpokeIsAllowanceValidParamsHub, isSpokeIsAllowanceValidParamsStellar, isSponsoringConfigError, isSponsoringLookupError, isSponsoringOrchestrationError, isStacksChainKey, isStacksChainKeyType, isStakeOrchestrationError, isStakingAllowanceCheckError, isStakingApproveError, isStakingCreateIntentError, isStakingError, isStakingInfoFetchError, isStakingOrchestrationError, isStellarChainKey, isStellarChainKeyType, isStellarWalletProviderType, isSuiChainKey, isSuiChainKeyType, isSupportedBitcoinAddressType, isSwapCreateIntentError, isSwapError, isSwapSupportedToken, isUndefinedOrValidWalletProviderForChainKey, isUnifiedBnUSDMigrateParams, isValidWalletProviderForChainKey, kaiaSupportedTokens, leverageYieldConfig, leverageYieldInvariant, leverageYieldVaults, lightlinkSupportedTokens, lookupFailed, mapRelayFailure, mergeSodaxConfig, messageOf, migrationInvariant, mintPositionParamsAbi, mmInvariant, modifyLiquidityParamsAbi, moneyMarketConfig, moneyMarketReserveAssets, moneyMarketSupportedTokens, nativeToUSD, nearSupportedTokens, newbnUSDSpokeChainIds, noopAnalytics, normalize, normalizeBN, normalizePsbtToBase64, normalizeSignatureToBase64, normalizedToUsd, optimismSupportedTokens, pancakeSwapInfinityDefaultHookAbi, pancakeSwapInfinityPoolManagerAbi, pancakeSwapInfinityPositionManagerAbi, parseToStroops, parseTokenArrayFromJson, partnerInvariant, permit2Abi, polygonSupportedTokens, poolAbi, poolKeyAbi, randomUint256, rayDiv, rayMul, rayPow, rayToWad, recoveryInvariant, redbellySupportedTokens, relayConfig, relayTxAndWaitPacket, requestAddress, requestJsonRpc, requestSigning, resolveAnalytics, resolveLogger, retry, reverseEncodeAddress, serializeAddressData, silentLogger, sleep, sodaxConfig, sodaxInvariant, solanaSupportedTokens, solverConfig, sonicSupportedTokens, sonicWalletFactoryAbi, spokeAssetManagerAbi, spokeChainConfig, spokeChainKeysSet, spokeHooks, sponsoringInvariant, stacksSupportedTokens, stagingSwapSupportedTokens, stakedSodaAbi, stakingInvariant, stakingRouterAbi, stataTokenFactoryAbi, stellarSupportedTokens, submitTransaction, suiSupportedTokens, supportedSpokeChains, supportedTokensByChain, swapExactInSingleParamsAbi, swapInvariant, swapSupportedTokens, swapsConfig, toCreateBridgeIntentParamsV2, toSuiExecutionResult, toSuiExecutionStatus, toSuiPaginatedCoins, tokenLogo, tokenLogoSlug, uiPoolDataAbi, universalRouterAbi, unknownFailed, usesBip322MessageSigning, valueToBigNumber, valueToZDBigNumber, variableDebtTokenAbi, vaultTokenAbi, verifyFailed, wadToRay, waitForStacksTransaction, waitForTransactionReceipt, waitUntilIntentExecuted, walletFactoryAbi, wrappedSonicAbi };
|
|
42970
|
+
export { ALLOWANCE_CHECK_CODES, APPROVE_CODES, AssetService, BACKEND_API_BASE_PATH, BITCOIN_CHAIN_KEYS, BITCOIN_CHAIN_KEYS_SET, BITCOIN_DUST_SATS, BTC_WALLET_ADDRESS_TYPES, BackendApiService, BackendHttpError, BalnSwapService, BigIntToHex, BigNumberZeroDecimal, BitcoinSpokeService, BnUSDMigrationService, BridgeApiService, BridgeService, CHAIN_KEYS, CHAIN_LOGO_BASE_URL, CONFIG_VERSION, CREATE_INTENT_CODES, ChainKeys, ChainTypeArr, ClService, ConfigService, CustomSorobanServer, CustomStellarAccount, DEFAULT_API_BASE_URL, DEFAULT_BACKEND_API_ENDPOINT, DEFAULT_BACKEND_API_HEADERS, DEFAULT_BACKEND_API_TIMEOUT, DEFAULT_DEADLINE_OFFSET, DEFAULT_MAX_RETRY, DEFAULT_RELAYER_API_ENDPOINT, DEFAULT_RELAY_TX_TIMEOUT, DEFAULT_RETRY_DELAY_MS, DEFAULT_SPONSORING_API_ENDPOINT, DETAILED_STATUS_NOT_DELIVERED, DexService, EVM_CHAIN_ID_TO_KEY, EVM_CHAIN_KEYS, EVM_CHAIN_KEYS_SET, EVM_SPOKE_ONLY_CHAIN_KEYS, EVM_SPOKE_ONLY_CHAIN_KEYS_SET, Erc20Service, Erc4626Service, EvmAssetManagerService, EvmHubProvider, EvmSolverService, EvmSpokeService, EvmVaultTokenService, FEE_PERCENTAGE_SCALE, GAS_ESTIMATION_CODES, HALF_RAY, HALF_WAD, HUB_CHAIN_KEY, HookKind, HookService, HttpRelayError, HubVaultSymbols, ICON_CHAIN_KEYS, ICON_CHAIN_KEYS_SET, ICON_TX_RESULT_WAIT_MAX_RETRY, INJECTIVE_CHAIN_KEYS, INJECTIVE_CHAIN_KEYS_SET, INTENT_CHAIN_IDS, IconSpokeService, IcxMigrationService, Injective20Token, InjectiveSpokeService, IntentCreatedEventAbi, IntentDataService, IntentDataType, IntentFilledEventAbi, IntentRelayChainIdToChainKey, IntentsAbi, LOOKUP_CODES, LTV_PRECISION, LendingPoolService, LeverageYieldService, LockupMultiplier, LockupPeriod, LsodaSymbols, LsodaTokens, MAX_UINT256, MigrationService, MintPositionEventAbi, MoneyMarketDataService, MoneyMarketService, NEAR_CHAIN_KEYS, NEAR_CHAIN_KEYS_SET, NEAR_DEFAULT_GAS, NEAR_STORAGE_DEPOSIT, NearSpokeService, PartnerFeeClaimService, PartnerService, Permit2Service, ProtocolIntentsAbi, RAY, RAY_DECIMALS, RELAY_ERROR_CODES, RELAY_FALLBACK_FLOOR_MS, RELAY_REQUEST_TIMEOUT_MS, RadfiApiError, RadfiProvider, RecoveryService, RelayChainIdMap, SECONDS_PER_YEAR, SODAX_ERROR_CODES, SODAX_FEATURES, SOLANA_CHAIN_KEYS, SOLANA_CHAIN_KEYS_SET, SONIC_CHAIN_KEYS, SONIC_CHAIN_KEYS_SET, SPONSORING_API_ERROR_CODES, SPONSORING_API_STELLAR_BASE_PATH, SPONSOR_CONFIG_TTL_MS, STACKS_CHAIN_KEYS, STACKS_CHAIN_KEYS_SET, STELLAR_BASE_RESERVE_TTL_MS, STELLAR_CHAIN_KEYS, STELLAR_CHAIN_KEYS_SET, STELLAR_TRUSTLINE_MIN_XLM_STROOPS, SUI_CHAIN_KEYS, SUI_CHAIN_KEYS_SET, SodaTokens, Sodax, SodaxError, SolanaSpokeService, SolverApiService, SolverIntentErrorCode, SolverIntentStatusCode, SonicSpokeService, SpokeService, SponsoringApiService, SponsoringService, StacksSpokeService, StakingLogic, StakingService, StatATokenAddresses, StellarSpokeService, SuiGrpcTransport, SuiSpokeService, SupportedMigrationTokens, SwapService, SwapsApiService, TOKEN_LOGO_BASE_URL, USD_DECIMALS, UiPoolDataProviderService, VAULT_TOKEN_DECIMALS, WAD, WAD_RAY_RATIO, WEI_DECIMALS, adjustAmountByFee, allowanceCheckFailed, apiConfig, approveFailed, arbitrumSupportedTokens, assetManagerAbi, avalancheSupportedTokens, balnSwapAbi, baseChainInfo, baseSupportedTokens, binomialApproximatedRayPow, bitcoinSupportedTokens, bnUSDLegacySpokeChainIds, bnUSDLegacyTokens, bridgeConfig, bridgeInvariant, bscSupportedTokens, calcOpReturnOutputVbytes, calculateAllReserveIncentives, calculateAllUserIncentives, calculateAvailableBorrowsMarketReferenceCurrency, calculateCompoundedInterest, calculateCompoundedRate, calculateFeeAmount, calculateHealthFactorFromBalances, calculateHealthFactorFromBalancesBigUnits, calculateLinearInterest, calculatePercentageFeeAmount, clPoolAbi, clPoolManagerAbi, clPositionManagerAbi, clQuoterAbi, clRouterAbi, clTickLensAbi, classifySponsorError, concentratedLiquidityConfig, connectionAbi, consoleLogger, convertTransactionInstructionToRaw, createInvariant, deepMerge, defaultHookAbi, detectBitcoinAddressType, dexConfig, dexInvariant, dexPools, encodeAddress, encodeBtcPayloadToBytes, encodeContractCalls, erc20Abi, erc4626Abi, estimateBitcoinTxSize, ethereumSupportedTokens, executionFailed, formatBasisPoints, formatEModeCategory, formatEModes, formatPercentage, formatReserve, formatReserveUSD, formatReserves, formatReservesAndIncentives, formatUserSummary, formatUserSummaryAndIncentives, gasEstimationFailed, getAllLegacybnUSDTokens, getAndFormatReserveEModes, getAssetManagerIdl, getAssetManagerProgram, getChainKeyFromRelayChainId, getChainType, getCompoundedBalance, getConcentratedLiquidityConfig, getConnectionIdl, getConnectionProgram, getEvmChainKeyByChainId, getEvmViemChain, getIconAddressBytes, getIntentRelayChainId, getLinearBalance, getMarketReferenceCurrencyAndUsdBalance, getPacket, getProvider, getRandomBytes, getReserveNormalizedIncome, getReservesEModes, getSolanaAddressBytes, getSolverConfig, getSpokeHook, getSpokeHooks, getStagingSolverTokens, getSupportedSolverTokens, getTransactionPackets, getbnUSDToken, hederaSupportedTokens, hexToBigInt, hexToSolanaAddress, hubConfig, hyper, hyperevmSupportedTokens, iconSupportedTokens, injectiveSupportedTokens, intentCreationFailed, isApprovalSupportedChainKeyType, isBackendHttpError, isBalnMigrateParams, isBitcoinChainKey, isBitcoinChainKeyType, isBitcoinWalletProviderType, isBridgeAllowanceCheckError, isBridgeApproveError, isBridgeCreateIntentError, isBridgeError, isBridgeLookupError, isBridgeOrchestrationError, isCodeMember, isDexApproveError, isDexCreateIntentError, isDexError, isEvmChainKey, isEvmChainKeyType, isEvmSpokeChainConfig, isEvmSpokeOnlyChainKey, isEvmSpokeOnlyChainKeyType, isEvmWalletProviderType, isFeatureError, isFillEvent, isHookSupportedToken, isHubChainKey, isHubChainKeyType, isIconAddress, isIconChainKey, isIconChainKeyType, isIcxCreateRevertMigrationParams, isIcxMigrateParams, isInjectiveChainKey, isInjectiveChainKeyType, isJsonRpcPayloadResponse, isLegacybnUSDChainId, isLegacybnUSDToken, isLeverageYieldAllowanceCheckError, isLeverageYieldApproveError, isLeverageYieldCreateIntentError, isLeverageYieldError, isLeverageYieldLookupError, isLeverageYieldPostExecutionError, isLeverageYieldSwapError, isMigrateOrchestrationError, isMigrationAllowanceCheckError, isMigrationApproveError, isMigrationCreateIntentError, isMigrationError, isMigrationLookupError, isMoneyMarketAllowanceCheckError, isMoneyMarketApproveError, isMoneyMarketCreateIntentError, isMoneyMarketError, isMoneyMarketGasEstimationError, isMoneyMarketOrchestrationError, isNativeBitcoinToken, isNativeBitcoinTransfer, isNativeToken, isNearChainKey, isNearChainKeyType, isNewbnUSDChainId, isNewbnUSDToken, isOptionalBitcoinWalletProviderType, isOptionalEvmWalletProviderType, isOptionalStellarWalletProviderType, isPartnerError, isPartnerFeeAmount, isPartnerFeePercentage, isPostExecutionError, isRawDestinationParams, isRecoveryError, isResponseAddressType, isResponseSigningType, isRevertMigrationOrchestrationError, isSodaxError, isSolanaChainKey, isSolanaChainKeyType, isSolanaNativeToken, isSonicChainKey, isSonicChainKeyType, isSpokeApproveParamsEvmSpoke, isSpokeApproveParamsHub, isSpokeApproveParamsStellar, isSpokeChainKey, isSpokeIsAllowanceValidParamsEvmSpoke, isSpokeIsAllowanceValidParamsHub, isSpokeIsAllowanceValidParamsStellar, isSponsoringConfigError, isSponsoringLookupError, isSponsoringOrchestrationError, isStacksChainKey, isStacksChainKeyType, isStakeOrchestrationError, isStakingAllowanceCheckError, isStakingApproveError, isStakingCreateIntentError, isStakingError, isStakingInfoFetchError, isStakingOrchestrationError, isStellarChainKey, isStellarChainKeyType, isStellarWalletProviderType, isSuiChainKey, isSuiChainKeyType, isSupportedBitcoinAddressType, isSwapCreateIntentError, isSwapError, isSwapSupportedToken, isUndefinedOrValidWalletProviderForChainKey, isUnifiedBnUSDMigrateParams, isValidWalletProviderForChainKey, kaiaSupportedTokens, leverageYieldConfig, leverageYieldInvariant, leverageYieldVaults, lightlinkSupportedTokens, lookupFailed, mapRelayFailure, mergeSodaxConfig, messageOf, migrationInvariant, mintPositionParamsAbi, mmInvariant, modifyLiquidityParamsAbi, moneyMarketConfig, moneyMarketReserveAssets, moneyMarketSupportedTokens, nativeToUSD, nearSupportedTokens, newbnUSDSpokeChainIds, noopAnalytics, normalize, normalizeBN, normalizePsbtToBase64, normalizeSignatureToBase64, normalizedToUsd, optimismSupportedTokens, pancakeSwapInfinityDefaultHookAbi, pancakeSwapInfinityPoolManagerAbi, pancakeSwapInfinityPositionManagerAbi, parseToStroops, parseTokenArrayFromJson, partnerInvariant, permit2Abi, polygonSupportedTokens, poolAbi, poolKeyAbi, randomUint256, rayDiv, rayMul, rayPow, rayToWad, recoveryInvariant, redbellySupportedTokens, relayConfig, relayTxAndWaitPacket, requestAddress, requestJsonRpc, requestSigning, resolveAnalytics, resolveLogger, retry, reverseEncodeAddress, robinhoodChain, robinhoodSupportedTokens, serializeAddressData, silentLogger, sleep, sodaxConfig, sodaxInvariant, solanaSupportedTokens, solverConfig, sonicSupportedTokens, sonicWalletFactoryAbi, spokeAssetManagerAbi, spokeChainConfig, spokeChainKeysSet, spokeHooks, sponsoringInvariant, stacksSupportedTokens, stagingSwapSupportedTokens, stakedSodaAbi, stakingInvariant, stakingRouterAbi, stataTokenFactoryAbi, stellarSupportedTokens, submitTransaction, suiSupportedTokens, supportedSpokeChains, supportedTokensByChain, swapExactInSingleParamsAbi, swapInvariant, swapSupportedTokens, swapsConfig, toCreateBridgeIntentParamsV2, toSuiExecutionResult, toSuiExecutionStatus, toSuiPaginatedCoins, tokenLogo, tokenLogoSlug, uiPoolDataAbi, universalRouterAbi, unknownFailed, usesBip322MessageSigning, valueToBigNumber, valueToZDBigNumber, variableDebtTokenAbi, vaultTokenAbi, verifyFailed, wadToRay, waitForStacksTransaction, waitForTransactionReceipt, waitUntilIntentExecuted, walletFactoryAbi, wrappedSonicAbi };
|