@sodax/sdk 2.1.0-rc.6 → 2.1.0-rc.8
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 +683 -72
- package/dist/index.d.cts +78 -6
- package/dist/index.d.ts +78 -6
- package/dist/index.mjs +677 -73
- package/package.json +6 -6
package/dist/index.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import { initEccLib, networks, Transaction, Psbt, payments, opcodes, script } fr
|
|
|
9
9
|
import * as ecc from '@bitcoinerlab/secp256k1';
|
|
10
10
|
import { CLPositionManagerAbi, encodeCLPositionManagerMintCalldata, encodeCLPositionManagerIncreaseLiquidityCalldata, encodeCLPositionManagerDecreaseLiquidityCalldata, getPoolId, CLPoolManagerAbi, decodePoolKey } from '@pancakeswap/infinity-sdk';
|
|
11
11
|
import { Transaction as Transaction$1 } from '@mysten/sui/transactions';
|
|
12
|
-
import {
|
|
12
|
+
import { SuiGrpcClient } from '@mysten/sui/grpc';
|
|
13
13
|
import { TOKEN_PROGRAM_ID, TOKEN_2022_PROGRAM_ID, getAssociatedTokenAddress } from '@solana/spl-token';
|
|
14
14
|
import { AnchorProvider, Program } from '@coral-xyz/anchor';
|
|
15
15
|
import BN from 'bn.js';
|
|
@@ -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);
|
|
@@ -1359,7 +1360,7 @@ var baseSupportedTokens = {
|
|
|
1359
1360
|
symbol: "AERO",
|
|
1360
1361
|
name: "Aerodrome Finance",
|
|
1361
1362
|
decimals: 18,
|
|
1362
|
-
address: "
|
|
1363
|
+
address: "0x940181a94A35A4569E4529A3CDfB74e38FD98631",
|
|
1363
1364
|
chainKey: ChainKeys.BASE_MAINNET,
|
|
1364
1365
|
hubAsset: "0x348e086ab6f424dfc575a325c28624ed23973173",
|
|
1365
1366
|
vault: "0x348e086ab6f424dfc575a325c28624ed23973173"
|
|
@@ -1671,7 +1672,7 @@ var polygonSupportedTokens = {
|
|
|
1671
1672
|
symbol: "WBTC",
|
|
1672
1673
|
name: "Wrapped BTC",
|
|
1673
1674
|
decimals: 8,
|
|
1674
|
-
address: "
|
|
1675
|
+
address: "0x1BFD67037B42Cf73acF2047067bd4F2C47D9BfD6",
|
|
1675
1676
|
chainKey: ChainKeys.POLYGON_MAINNET,
|
|
1676
1677
|
hubAsset: "0xf3182ae79be69d9e0cad5da8273d4300a7d585d3",
|
|
1677
1678
|
vault: "0xf3182ae79be69d9e0cad5da8273d4300a7d585d3"
|
|
@@ -1689,7 +1690,7 @@ var polygonSupportedTokens = {
|
|
|
1689
1690
|
symbol: "LINK",
|
|
1690
1691
|
name: "ChainLink Token",
|
|
1691
1692
|
decimals: 18,
|
|
1692
|
-
address: "
|
|
1693
|
+
address: "0x53E0bca35eC356BD5ddDFebbD1Fc0fD03FaBad39",
|
|
1693
1694
|
chainKey: ChainKeys.POLYGON_MAINNET,
|
|
1694
1695
|
hubAsset: "0x30d1be6ae96e9832674f1fcf429c5176bd891e1f",
|
|
1695
1696
|
vault: "0x30d1be6ae96e9832674f1fcf429c5176bd891e1f"
|
|
@@ -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,
|
|
@@ -3337,7 +3669,7 @@ var spokeChainConfig = {
|
|
|
3337
3669
|
supportedTokens: suiSupportedTokens,
|
|
3338
3670
|
nativeToken: "0x0000000000000000000000000000000000000000000000000000000000000002::sui::SUI",
|
|
3339
3671
|
bnUSD: "0xff4de2b2b57dd7611d2812d231a467d007b702a101fd5c7ad3b278257cddb507::bnusd::BNUSD",
|
|
3340
|
-
|
|
3672
|
+
grpc_url: "https://fullnode.mainnet.sui.io",
|
|
3341
3673
|
chain: baseChainInfo[ChainKeys.SUI_MAINNET],
|
|
3342
3674
|
pollingConfig: {
|
|
3343
3675
|
pollingIntervalMs: 500,
|
|
@@ -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
|
|
@@ -4316,6 +4725,29 @@ var isHookSupportedToken = (chainKey, kind, token) => {
|
|
|
4316
4725
|
return !hook.supportedTokens || hook.supportedTokens.some((t) => t.toLowerCase() === token.toLowerCase());
|
|
4317
4726
|
};
|
|
4318
4727
|
|
|
4728
|
+
// ../types/dist/sui/core.js
|
|
4729
|
+
function toSuiPaginatedCoins(response, coinType) {
|
|
4730
|
+
return {
|
|
4731
|
+
data: response.objects.map((coin) => ({
|
|
4732
|
+
balance: coin.balance,
|
|
4733
|
+
coinObjectId: coin.objectId,
|
|
4734
|
+
coinType,
|
|
4735
|
+
digest: coin.digest,
|
|
4736
|
+
version: coin.version
|
|
4737
|
+
})),
|
|
4738
|
+
hasNextPage: response.hasNextPage,
|
|
4739
|
+
nextCursor: response.cursor
|
|
4740
|
+
};
|
|
4741
|
+
}
|
|
4742
|
+
function toSuiExecutionResult(command) {
|
|
4743
|
+
return {
|
|
4744
|
+
returnValues: command.returnValues.map((value) => [Array.from(value.bcs), ""])
|
|
4745
|
+
};
|
|
4746
|
+
}
|
|
4747
|
+
function toSuiExecutionStatus(status) {
|
|
4748
|
+
return status.success ? { status: "success" } : { status: "failure", error: status.error.message };
|
|
4749
|
+
}
|
|
4750
|
+
|
|
4319
4751
|
// ../types/dist/utils/utils.js
|
|
4320
4752
|
function isHubChainKey(chainId) {
|
|
4321
4753
|
return chainId === HUB_CHAIN_KEY;
|
|
@@ -4430,7 +4862,7 @@ function isValidWalletProviderForChainKey(chainKey, walletProvider) {
|
|
|
4430
4862
|
}
|
|
4431
4863
|
|
|
4432
4864
|
// ../types/dist/index.js
|
|
4433
|
-
var CONFIG_VERSION =
|
|
4865
|
+
var CONFIG_VERSION = 228;
|
|
4434
4866
|
|
|
4435
4867
|
// src/shared/utils/resolveTimeoutMs.ts
|
|
4436
4868
|
function resolveTimeoutMs(timeout, fallbackMs) {
|
|
@@ -4519,6 +4951,9 @@ function isSpokeApproveParamsEvmSpoke(params) {
|
|
|
4519
4951
|
function isSpokeApproveParamsStellar(params) {
|
|
4520
4952
|
return isStellarChainKeyType(params.srcChainKey);
|
|
4521
4953
|
}
|
|
4954
|
+
function isApprovalSupportedChainKeyType(value) {
|
|
4955
|
+
return isHubChainKeyType(value) || isEvmSpokeOnlyChainKeyType(value) || isStellarChainKeyType(value);
|
|
4956
|
+
}
|
|
4522
4957
|
function isRawDestinationParams(value) {
|
|
4523
4958
|
if (typeof value !== "object" || value === null) return false;
|
|
4524
4959
|
const obj = value;
|
|
@@ -14426,6 +14861,24 @@ var hyper = /* @__PURE__ */ defineChain({
|
|
|
14426
14861
|
}
|
|
14427
14862
|
}
|
|
14428
14863
|
});
|
|
14864
|
+
var robinhoodChain = /* @__PURE__ */ defineChain({
|
|
14865
|
+
id: 4663,
|
|
14866
|
+
name: "Robinhood Chain",
|
|
14867
|
+
nativeCurrency: {
|
|
14868
|
+
decimals: 18,
|
|
14869
|
+
name: "Ether",
|
|
14870
|
+
symbol: "ETH"
|
|
14871
|
+
},
|
|
14872
|
+
rpcUrls: {
|
|
14873
|
+
default: { http: ["https://rpc.mainnet.chain.robinhood.com"] }
|
|
14874
|
+
},
|
|
14875
|
+
blockExplorers: {
|
|
14876
|
+
default: {
|
|
14877
|
+
name: "Blockscout",
|
|
14878
|
+
url: "https://robinhoodchain.blockscout.com"
|
|
14879
|
+
}
|
|
14880
|
+
}
|
|
14881
|
+
});
|
|
14429
14882
|
function getEvmViemChain(key) {
|
|
14430
14883
|
switch (key) {
|
|
14431
14884
|
case ChainKeys.SONIC_MAINNET:
|
|
@@ -14454,6 +14907,8 @@ function getEvmViemChain(key) {
|
|
|
14454
14907
|
return kaia;
|
|
14455
14908
|
case ChainKeys.HEDERA_MAINNET:
|
|
14456
14909
|
return hedera;
|
|
14910
|
+
case ChainKeys.ROBINHOOD_MAINNET:
|
|
14911
|
+
return robinhoodChain;
|
|
14457
14912
|
default: {
|
|
14458
14913
|
const exhaustiveCheck = key;
|
|
14459
14914
|
console.log(exhaustiveCheck);
|
|
@@ -23270,8 +23725,133 @@ var SonicSpokeService = class {
|
|
|
23270
23725
|
return params.walletProvider.sendTransaction(rawTx);
|
|
23271
23726
|
}
|
|
23272
23727
|
};
|
|
23728
|
+
async function toMystenTransaction(txn) {
|
|
23729
|
+
if (txn instanceof Transaction$1) return txn;
|
|
23730
|
+
return Transaction$1.from(await txn.toJSON());
|
|
23731
|
+
}
|
|
23732
|
+
function isTimeoutError(error) {
|
|
23733
|
+
if (typeof error === "object" && error !== null && "name" in error) {
|
|
23734
|
+
const { name } = error;
|
|
23735
|
+
if (name === "TimeoutError" || name === "AbortError") {
|
|
23736
|
+
return true;
|
|
23737
|
+
}
|
|
23738
|
+
}
|
|
23739
|
+
return error instanceof Error && /timed?\s?out|timeout/i.test(error.message);
|
|
23740
|
+
}
|
|
23741
|
+
var DEFAULT_GET_COINS_LIMIT = 10;
|
|
23742
|
+
function toSuiObjectOwner(owner) {
|
|
23743
|
+
switch (owner?.$kind) {
|
|
23744
|
+
case "AddressOwner":
|
|
23745
|
+
return { AddressOwner: owner.AddressOwner };
|
|
23746
|
+
case "ObjectOwner":
|
|
23747
|
+
return { ObjectOwner: owner.ObjectOwner };
|
|
23748
|
+
case "Shared":
|
|
23749
|
+
return { Shared: { initial_shared_version: owner.Shared.initialSharedVersion } };
|
|
23750
|
+
default:
|
|
23751
|
+
return "Immutable";
|
|
23752
|
+
}
|
|
23753
|
+
}
|
|
23754
|
+
function toSuiTransactionEffects(effects, executedEpoch) {
|
|
23755
|
+
const gasObject = effects.gasObject;
|
|
23756
|
+
return {
|
|
23757
|
+
messageVersion: "v1",
|
|
23758
|
+
status: toSuiExecutionStatus(effects.status),
|
|
23759
|
+
executedEpoch,
|
|
23760
|
+
gasUsed: effects.gasUsed,
|
|
23761
|
+
transactionDigest: effects.transactionDigest,
|
|
23762
|
+
gasObject: {
|
|
23763
|
+
owner: toSuiObjectOwner(gasObject?.outputOwner ?? null),
|
|
23764
|
+
reference: {
|
|
23765
|
+
objectId: gasObject?.objectId ?? "",
|
|
23766
|
+
version: gasObject?.outputVersion ?? "",
|
|
23767
|
+
digest: gasObject?.outputDigest ?? ""
|
|
23768
|
+
}
|
|
23769
|
+
},
|
|
23770
|
+
dependencies: effects.dependencies,
|
|
23771
|
+
eventsDigest: effects.eventsDigest
|
|
23772
|
+
};
|
|
23773
|
+
}
|
|
23774
|
+
var SuiGrpcTransport = class {
|
|
23775
|
+
endpoint;
|
|
23776
|
+
client;
|
|
23777
|
+
constructor(endpoint) {
|
|
23778
|
+
this.endpoint = endpoint;
|
|
23779
|
+
this.client = new SuiGrpcClient({ network: "mainnet", baseUrl: endpoint });
|
|
23780
|
+
}
|
|
23781
|
+
async getCoins(owner, coinType, limit = DEFAULT_GET_COINS_LIMIT) {
|
|
23782
|
+
const response = await this.client.core.listCoins({ owner, coinType, limit });
|
|
23783
|
+
return toSuiPaginatedCoins(response, coinType);
|
|
23784
|
+
}
|
|
23785
|
+
async simulate(tx, sender) {
|
|
23786
|
+
const transaction = await toMystenTransaction(tx);
|
|
23787
|
+
transaction.setSenderIfNotSet(sender);
|
|
23788
|
+
const result = await this.client.core.simulateTransaction({
|
|
23789
|
+
transaction,
|
|
23790
|
+
include: { commandResults: true },
|
|
23791
|
+
checksEnabled: false
|
|
23792
|
+
});
|
|
23793
|
+
const command = result.commandResults?.[0];
|
|
23794
|
+
if (!command) {
|
|
23795
|
+
throw new Error(`transaction didn't return any values: ${JSON.stringify(result, null, 2)}`);
|
|
23796
|
+
}
|
|
23797
|
+
return toSuiExecutionResult(command);
|
|
23798
|
+
}
|
|
23799
|
+
async estimateGas(tx, sender) {
|
|
23800
|
+
const transaction = await toMystenTransaction(tx);
|
|
23801
|
+
transaction.setSenderIfNotSet(sender);
|
|
23802
|
+
const result = await this.client.core.simulateTransaction({ transaction, include: { effects: true } });
|
|
23803
|
+
const effects = (result.Transaction ?? result.FailedTransaction)?.effects;
|
|
23804
|
+
if (!effects) {
|
|
23805
|
+
throw new Error("Transaction simulation returned no effects");
|
|
23806
|
+
}
|
|
23807
|
+
return effects.gasUsed;
|
|
23808
|
+
}
|
|
23809
|
+
async fetchLatestPackageId(objectId) {
|
|
23810
|
+
let object5;
|
|
23811
|
+
try {
|
|
23812
|
+
({ object: object5 } = await this.client.core.getObject({ objectId, include: { json: true } }));
|
|
23813
|
+
} catch (error) {
|
|
23814
|
+
throw new Error("Failed to fetch asset manager id", { cause: error });
|
|
23815
|
+
}
|
|
23816
|
+
if (!object5) {
|
|
23817
|
+
throw new Error("Asset manager id not found (no data)");
|
|
23818
|
+
}
|
|
23819
|
+
const fields = object5.json;
|
|
23820
|
+
if (!fields) {
|
|
23821
|
+
throw new Error("Asset manager id not found (not a move object)");
|
|
23822
|
+
}
|
|
23823
|
+
if (!("latest_package_id" in fields)) {
|
|
23824
|
+
throw new Error("Asset manager id not found (no latest package id)");
|
|
23825
|
+
}
|
|
23826
|
+
const latestPackageId = fields["latest_package_id"];
|
|
23827
|
+
if (typeof latestPackageId !== "string") {
|
|
23828
|
+
throw new Error("Asset manager id invalid (latest package id is not a string)");
|
|
23829
|
+
}
|
|
23830
|
+
if (!latestPackageId) {
|
|
23831
|
+
throw new Error("Asset manager id not found (no latest package id)");
|
|
23832
|
+
}
|
|
23833
|
+
return latestPackageId;
|
|
23834
|
+
}
|
|
23835
|
+
async waitForTransaction(params) {
|
|
23836
|
+
const result = await this.client.core.waitForTransaction({
|
|
23837
|
+
digest: params.digest,
|
|
23838
|
+
include: { effects: true },
|
|
23839
|
+
timeout: params.timeoutMs,
|
|
23840
|
+
pollSchedule: [0, Math.max(1, params.pollingIntervalMs)]
|
|
23841
|
+
});
|
|
23842
|
+
const transaction = result.Transaction ?? result.FailedTransaction;
|
|
23843
|
+
return {
|
|
23844
|
+
digest: transaction.digest,
|
|
23845
|
+
effects: transaction.effects ? toSuiTransactionEffects(transaction.effects, transaction.epoch ?? "0") : void 0
|
|
23846
|
+
};
|
|
23847
|
+
}
|
|
23848
|
+
};
|
|
23849
|
+
|
|
23850
|
+
// src/shared/services/spoke/SuiSpokeService.ts
|
|
23273
23851
|
var SuiSpokeService = class {
|
|
23274
23852
|
config;
|
|
23853
|
+
transport;
|
|
23854
|
+
/** @deprecated Renamed to `transport`, and no longer a raw `@mysten/sui` client. */
|
|
23275
23855
|
publicClient;
|
|
23276
23856
|
assetManagerAddress;
|
|
23277
23857
|
pollingIntervalMs;
|
|
@@ -23279,12 +23859,13 @@ var SuiSpokeService = class {
|
|
|
23279
23859
|
constructor(config) {
|
|
23280
23860
|
this.config = config;
|
|
23281
23861
|
const chainConfig = config.getChainConfig(ChainKeys.SUI_MAINNET);
|
|
23282
|
-
this.
|
|
23862
|
+
this.transport = new SuiGrpcTransport(chainConfig.rpc_url ?? chainConfig.grpc_url);
|
|
23863
|
+
this.publicClient = this.transport;
|
|
23283
23864
|
this.pollingIntervalMs = chainConfig.pollingConfig.pollingIntervalMs;
|
|
23284
23865
|
this.maxTimeoutMs = chainConfig.pollingConfig.maxTimeoutMs;
|
|
23285
23866
|
}
|
|
23286
23867
|
async getCoins(address, token) {
|
|
23287
|
-
return this.
|
|
23868
|
+
return this.transport.getCoins(address, token);
|
|
23288
23869
|
}
|
|
23289
23870
|
async getCoin(tx, coin, amount, address) {
|
|
23290
23871
|
const coins = await this.getCoins(address, coin);
|
|
@@ -23345,14 +23926,7 @@ var SuiSpokeService = class {
|
|
|
23345
23926
|
arguments: args,
|
|
23346
23927
|
typeArguments: typeArgs
|
|
23347
23928
|
});
|
|
23348
|
-
|
|
23349
|
-
transactionBlock: tx,
|
|
23350
|
-
sender
|
|
23351
|
-
});
|
|
23352
|
-
if (txResults.results && txResults.results[0] !== void 0) {
|
|
23353
|
-
return txResults.results[0];
|
|
23354
|
-
}
|
|
23355
|
-
throw Error(`transaction didn't return any values: ${JSON.stringify(txResults, null, 2)}`);
|
|
23929
|
+
return this.transport.simulate(tx, sender);
|
|
23356
23930
|
}
|
|
23357
23931
|
/**
|
|
23358
23932
|
* Deposit tokens to the spoke chain.
|
|
@@ -23419,12 +23993,7 @@ var SuiSpokeService = class {
|
|
|
23419
23993
|
* @returns {Promise<bigint>} The estimated computation cost.
|
|
23420
23994
|
*/
|
|
23421
23995
|
async estimateGas({ tx }) {
|
|
23422
|
-
|
|
23423
|
-
const result = await this.publicClient.devInspectTransactionBlock({
|
|
23424
|
-
sender: tx.from,
|
|
23425
|
-
transactionBlock: txb
|
|
23426
|
-
});
|
|
23427
|
-
return result.effects.gasUsed;
|
|
23996
|
+
return this.transport.estimateGas(Transaction$1.from(tx.data), tx.from);
|
|
23428
23997
|
}
|
|
23429
23998
|
/**
|
|
23430
23999
|
* Get the balance of the token in the spoke chain.
|
|
@@ -23465,40 +24034,14 @@ var SuiSpokeService = class {
|
|
|
23465
24034
|
* @returns {Promise<string>} The latest asset manager package id.
|
|
23466
24035
|
*/
|
|
23467
24036
|
async fetchLatestAssetManagerPackageId(chainId) {
|
|
23468
|
-
|
|
23469
|
-
id: this.config.getChainConfig(chainId).addresses.assetManagerConfigId,
|
|
23470
|
-
options: {
|
|
23471
|
-
showContent: true
|
|
23472
|
-
}
|
|
23473
|
-
});
|
|
23474
|
-
if (configData.error) {
|
|
23475
|
-
throw new Error(`Failed to fetch asset manager id. Details: ${JSON.stringify(configData.error)}`);
|
|
23476
|
-
}
|
|
23477
|
-
if (!configData.data) {
|
|
23478
|
-
throw new Error("Asset manager id not found (no data)");
|
|
23479
|
-
}
|
|
23480
|
-
if (configData.data.content?.dataType !== "moveObject") {
|
|
23481
|
-
throw new Error("Asset manager id not found (not a move object)");
|
|
23482
|
-
}
|
|
23483
|
-
if (!("latest_package_id" in configData.data.content.fields)) {
|
|
23484
|
-
throw new Error("Asset manager id not found (no latest package id)");
|
|
23485
|
-
}
|
|
23486
|
-
const latestPackageId = configData.data.content.fields["latest_package_id"];
|
|
23487
|
-
if (typeof latestPackageId !== "string") {
|
|
23488
|
-
throw new Error("Asset manager id invalid (latest package id is not a string)");
|
|
23489
|
-
}
|
|
23490
|
-
if (!latestPackageId) {
|
|
23491
|
-
throw new Error("Asset manager id not found (no latest package id)");
|
|
23492
|
-
}
|
|
23493
|
-
return latestPackageId.toString();
|
|
24037
|
+
return this.transport.fetchLatestPackageId(this.config.getChainConfig(chainId).addresses.assetManagerConfigId);
|
|
23494
24038
|
}
|
|
23495
24039
|
async waitForTransactionReceipt(params) {
|
|
23496
24040
|
try {
|
|
23497
|
-
const result = await this.
|
|
24041
|
+
const result = await this.transport.waitForTransaction({
|
|
23498
24042
|
digest: params.txHash,
|
|
23499
|
-
|
|
23500
|
-
|
|
23501
|
-
options: { showEffects: true }
|
|
24043
|
+
timeoutMs: params.maxTimeoutMs ?? this.maxTimeoutMs,
|
|
24044
|
+
pollingIntervalMs: params.pollingIntervalMs ?? this.pollingIntervalMs
|
|
23502
24045
|
});
|
|
23503
24046
|
if (!result.effects?.status) {
|
|
23504
24047
|
return {
|
|
@@ -23520,11 +24063,10 @@ var SuiSpokeService = class {
|
|
|
23520
24063
|
}
|
|
23521
24064
|
return { ok: true, value: { status: "success", receipt: result } };
|
|
23522
24065
|
} catch (error) {
|
|
23523
|
-
const isTimeout = error instanceof Error && error.message.includes("timeout");
|
|
23524
24066
|
return {
|
|
23525
24067
|
ok: true,
|
|
23526
24068
|
value: {
|
|
23527
|
-
status:
|
|
24069
|
+
status: isTimeoutError(error) ? "timeout" : "failure",
|
|
23528
24070
|
error: error instanceof Error ? error : new Error(String(error))
|
|
23529
24071
|
}
|
|
23530
24072
|
};
|
|
@@ -31085,7 +31627,7 @@ var BridgeTokensByChainResponseSchema = v.array(BridgeTokenSchema);
|
|
|
31085
31627
|
var BridgeAllowanceCheckResponseSchema = v.object({
|
|
31086
31628
|
valid: v.boolean()
|
|
31087
31629
|
});
|
|
31088
|
-
var makeBridgeApproveResponseSchema = (txSchema) => v.object({ tx: txSchema });
|
|
31630
|
+
var makeBridgeApproveResponseSchema = (txSchema) => v.object({ tx: txSchema, resetTx: v.optional(txSchema) });
|
|
31089
31631
|
var makeCreateBridgeIntentResponseSchema = (txSchema) => v.object({
|
|
31090
31632
|
tx: txSchema,
|
|
31091
31633
|
relayData: RelayExtraDataResponseSchema
|
|
@@ -31350,7 +31892,8 @@ var BridgeApiService = class {
|
|
|
31350
31892
|
/**
|
|
31351
31893
|
* Build an unsigned token-approval transaction for the source token.
|
|
31352
31894
|
*
|
|
31353
|
-
* @returns `Result<BridgeApproveResponseV2>` — `{ tx }` (chain-specific unsigned
|
|
31895
|
+
* @returns `Result<BridgeApproveResponseV2>` — `{ tx, resetTx? }` (chain-specific unsigned txs);
|
|
31896
|
+
* broadcast and mine `resetTx` first when it is present.
|
|
31354
31897
|
*/
|
|
31355
31898
|
async approve(body, config) {
|
|
31356
31899
|
const txSchema = rawTxSchemaForChainKey(body.srcChainKey);
|
|
@@ -32074,6 +32617,8 @@ var BridgeService = class {
|
|
|
32074
32617
|
* When `raw` is `true` the encoded transaction is returned without broadcasting.
|
|
32075
32618
|
* When `raw` is `false` the transaction is signed and submitted via the provided wallet provider.
|
|
32076
32619
|
*
|
|
32620
|
+
* Returns a SINGLE transaction — for the unsigned two-step case use {@link BridgeService.buildApproveTxs}.
|
|
32621
|
+
*
|
|
32077
32622
|
* @param _params - Bridge parameters including source chain, token, amount, wallet provider, and `raw` flag.
|
|
32078
32623
|
* @returns `Result<TxReturnType<K, Raw>>` — encoded transaction data (raw) or submitted transaction hash.
|
|
32079
32624
|
*/
|
|
@@ -32090,7 +32635,7 @@ var BridgeService = class {
|
|
|
32090
32635
|
"Invalid wallet provider. Expected Evm wallet provider.",
|
|
32091
32636
|
{ ...baseCtx, field: "walletProvider" }
|
|
32092
32637
|
);
|
|
32093
|
-
const spender =
|
|
32638
|
+
const spender = await this.resolveEvmApprovalSpender(params.srcChainKey, params.srcAddress);
|
|
32094
32639
|
const coreParams = {
|
|
32095
32640
|
srcChainKey: params.srcChainKey,
|
|
32096
32641
|
owner: params.srcAddress,
|
|
@@ -32146,6 +32691,65 @@ var BridgeService = class {
|
|
|
32146
32691
|
return { ok: false, error: wrapApproveFailure(error) };
|
|
32147
32692
|
}
|
|
32148
32693
|
}
|
|
32694
|
+
/**
|
|
32695
|
+
* The contract a bridge source token must be approved to, on the EVM approval path: the caller's own
|
|
32696
|
+
* hub wallet router for a hub source (per-caller, hence async), the chain's asset manager on a spoke.
|
|
32697
|
+
* NOT the swaps spender. Shared by `approve` and `buildApproveTxs` so the two cannot drift apart.
|
|
32698
|
+
*/
|
|
32699
|
+
async resolveEvmApprovalSpender(srcChainKey, srcAddress) {
|
|
32700
|
+
return isHubChainKeyType(srcChainKey) ? await this.hubProvider.getUserHubWalletAddress(srcAddress, srcChainKey) : this.config.getChainConfig(srcChainKey).addresses.assetManager;
|
|
32701
|
+
}
|
|
32702
|
+
/**
|
|
32703
|
+
* The unsigned approval transactions for the bridge's source token: `approveTx`, preceded by a
|
|
32704
|
+
* `resetTx` when a stale allowance must be zeroed first. Broadcast `resetTx` and wait for it to be
|
|
32705
|
+
* mined — `approveTx` is not valid until it lands.
|
|
32706
|
+
*/
|
|
32707
|
+
async buildApproveTxs(_params) {
|
|
32708
|
+
const { params } = _params;
|
|
32709
|
+
const baseCtx = { srcChainKey: params.srcChainKey };
|
|
32710
|
+
const wrapApproveFailure = (cause) => approveFailed("bridge", cause, baseCtx);
|
|
32711
|
+
try {
|
|
32712
|
+
bridgeInvariant(params.amount > 0n, "Amount must be greater than 0", { ...baseCtx, field: "amount" });
|
|
32713
|
+
bridgeInvariant(params.srcToken.length > 0, "Source asset is required", { ...baseCtx, field: "srcToken" });
|
|
32714
|
+
if (isHubChainKeyType(params.srcChainKey) || isEvmSpokeOnlyChainKeyType(params.srcChainKey)) {
|
|
32715
|
+
const spender = await this.resolveEvmApprovalSpender(params.srcChainKey, params.srcAddress);
|
|
32716
|
+
const result = await this.spoke.buildApproveTxs({
|
|
32717
|
+
srcChainKey: params.srcChainKey,
|
|
32718
|
+
owner: params.srcAddress,
|
|
32719
|
+
token: params.srcToken,
|
|
32720
|
+
amount: params.amount,
|
|
32721
|
+
spender,
|
|
32722
|
+
raw: true
|
|
32723
|
+
});
|
|
32724
|
+
if (!result.ok) return { ok: false, error: wrapApproveFailure(result.error) };
|
|
32725
|
+
return {
|
|
32726
|
+
ok: true,
|
|
32727
|
+
value: result.value
|
|
32728
|
+
};
|
|
32729
|
+
}
|
|
32730
|
+
if (isStellarChainKeyType(params.srcChainKey)) {
|
|
32731
|
+
const result = await this.spoke.buildApproveTxs({
|
|
32732
|
+
srcChainKey: params.srcChainKey,
|
|
32733
|
+
token: params.srcToken,
|
|
32734
|
+
amount: params.amount,
|
|
32735
|
+
owner: params.srcAddress,
|
|
32736
|
+
raw: true
|
|
32737
|
+
});
|
|
32738
|
+
if (!result.ok) return { ok: false, error: wrapApproveFailure(result.error) };
|
|
32739
|
+
return {
|
|
32740
|
+
ok: true,
|
|
32741
|
+
value: result.value
|
|
32742
|
+
};
|
|
32743
|
+
}
|
|
32744
|
+
bridgeInvariant(false, "Approval only supported for EVM spoke chains and Stellar", {
|
|
32745
|
+
...baseCtx,
|
|
32746
|
+
field: "srcChainKey"
|
|
32747
|
+
});
|
|
32748
|
+
} catch (error) {
|
|
32749
|
+
if (isBridgeApproveError(error)) return { ok: false, error };
|
|
32750
|
+
return { ok: false, error: wrapApproveFailure(error) };
|
|
32751
|
+
}
|
|
32752
|
+
}
|
|
32149
32753
|
/**
|
|
32150
32754
|
* Executes a full end-to-end bridge transfer: spoke deposit → relay → hub settlement.
|
|
32151
32755
|
*
|
|
@@ -42367,4 +42971,4 @@ var isPartnerError = isCodeMember(PARTNER_CODES);
|
|
|
42367
42971
|
(*! scure-base - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
|
|
42368
42972
|
*/
|
|
42369
42973
|
|
|
42370
|
-
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, 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, tokenLogo, tokenLogoSlug, uiPoolDataAbi, universalRouterAbi, unknownFailed, usesBip322MessageSigning, valueToBigNumber, valueToZDBigNumber, variableDebtTokenAbi, vaultTokenAbi, verifyFailed, wadToRay, waitForStacksTransaction, waitForTransactionReceipt, waitUntilIntentExecuted, walletFactoryAbi, wrappedSonicAbi };
|
|
42974
|
+
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 };
|