@ledgerhq/live-common 22.2.0 → 22.2.1-nightly.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -0
- package/lib/bridge/mockHelpers.d.ts.map +1 -1
- package/lib/bridge/mockHelpers.js +2 -0
- package/lib/bridge/mockHelpers.js.map +1 -1
- package/lib/bridge/useBridgeTransaction.d.ts +3 -0
- package/lib/bridge/useBridgeTransaction.d.ts.map +1 -1
- package/lib/bridge/useBridgeTransaction.js +18 -1
- package/lib/bridge/useBridgeTransaction.js.map +1 -1
- package/lib/bridge/useBridgeTransaction.test.d.ts +2 -0
- package/lib/bridge/useBridgeTransaction.test.d.ts.map +1 -0
- package/lib/bridge/useBridgeTransaction.test.js +145 -0
- package/lib/bridge/useBridgeTransaction.test.js.map +1 -0
- package/lib/data/icons/react/abi.d.ts +8 -0
- package/lib/data/icons/react/abi.d.ts.map +1 -0
- package/lib/data/icons/react/abi.js +35 -0
- package/lib/data/icons/react/abi.js.map +1 -0
- package/lib/data/icons/react/gAbi.d.ts +8 -0
- package/lib/data/icons/react/gAbi.d.ts.map +1 -0
- package/lib/data/icons/react/gAbi.js +36 -0
- package/lib/data/icons/react/gAbi.js.map +1 -0
- package/lib/data/icons/react/index.d.ts +3 -0
- package/lib/data/icons/react/index.d.ts.map +1 -1
- package/lib/data/icons/react/index.js +16 -10
- package/lib/data/icons/react/index.js.map +1 -1
- package/lib/data/icons/react/sAbi.d.ts +8 -0
- package/lib/data/icons/react/sAbi.d.ts.map +1 -0
- package/lib/data/icons/react/sAbi.js +35 -0
- package/lib/data/icons/react/sAbi.js.map +1 -0
- package/lib/data/icons/reactNative/abi.d.ts +8 -0
- package/lib/data/icons/reactNative/abi.d.ts.map +1 -0
- package/lib/data/icons/reactNative/abi.js +36 -0
- package/lib/data/icons/reactNative/abi.js.map +1 -0
- package/lib/data/icons/reactNative/gAbi.d.ts +8 -0
- package/lib/data/icons/reactNative/gAbi.d.ts.map +1 -0
- package/lib/data/icons/reactNative/gAbi.js +37 -0
- package/lib/data/icons/reactNative/gAbi.js.map +1 -0
- package/lib/data/icons/reactNative/index.d.ts +3 -0
- package/lib/data/icons/reactNative/index.d.ts.map +1 -1
- package/lib/data/icons/reactNative/index.js +16 -10
- package/lib/data/icons/reactNative/index.js.map +1 -1
- package/lib/data/icons/reactNative/sAbi.d.ts +8 -0
- package/lib/data/icons/reactNative/sAbi.d.ts.map +1 -0
- package/lib/data/icons/reactNative/sAbi.js +36 -0
- package/lib/data/icons/reactNative/sAbi.js.map +1 -0
- package/lib/exchange/swap/getExchangeRates.d.ts.map +1 -1
- package/lib/exchange/swap/getExchangeRates.js +15 -14
- package/lib/exchange/swap/getExchangeRates.js.map +1 -1
- package/lib/exchange/swap/getExchangeRates.test.d.ts +2 -0
- package/lib/exchange/swap/getExchangeRates.test.d.ts.map +1 -0
- package/lib/exchange/swap/getExchangeRates.test.js +200 -0
- package/lib/exchange/swap/getExchangeRates.test.js.map +1 -0
- package/lib/families/bitcoin/bridge/js.d.ts.map +1 -1
- package/lib/families/bitcoin/bridge/js.js +2 -0
- package/lib/families/bitcoin/bridge/js.js.map +1 -1
- package/lib/families/cosmos/specs.d.ts.map +1 -1
- package/lib/families/cosmos/specs.js +0 -1
- package/lib/families/cosmos/specs.js.map +1 -1
- package/lib/families/ethereum/specs.js +2 -2
- package/lib/families/ethereum/specs.js.map +1 -1
- package/lib/families/polkadot/bridge/js.d.ts.map +1 -1
- package/lib/families/polkadot/bridge/js.js +5 -1
- package/lib/families/polkadot/bridge/js.js.map +1 -1
- package/lib/families/polkadot/js-buildTransaction.d.ts.map +1 -1
- package/lib/families/polkadot/js-buildTransaction.js +12 -8
- package/lib/families/polkadot/js-buildTransaction.js.map +1 -1
- package/lib/families/polkadot/js-estimateMaxSpendable.d.ts.map +1 -1
- package/lib/families/polkadot/js-estimateMaxSpendable.js +5 -2
- package/lib/families/polkadot/js-estimateMaxSpendable.js.map +1 -1
- package/lib/families/polkadot/js-getTransactionStatus.d.ts.map +1 -1
- package/lib/families/polkadot/js-getTransactionStatus.js +58 -55
- package/lib/families/polkadot/js-getTransactionStatus.js.map +1 -1
- package/lib/families/polkadot/js-prepareTransaction.d.ts.map +1 -1
- package/lib/families/polkadot/js-prepareTransaction.js +5 -2
- package/lib/families/polkadot/js-prepareTransaction.js.map +1 -1
- package/lib/families/polkadot/js-synchronisation.d.ts.map +1 -1
- package/lib/families/polkadot/js-synchronisation.js +6 -3
- package/lib/families/polkadot/js-synchronisation.js.map +1 -1
- package/lib/families/polkadot/polkadot-crypto.d.ts +2 -0
- package/lib/families/polkadot/polkadot-crypto.d.ts.map +1 -0
- package/lib/families/polkadot/polkadot-crypto.js +14 -0
- package/lib/families/polkadot/polkadot-crypto.js.map +1 -0
- package/lib/families/polkadot/preload.d.ts.map +1 -1
- package/lib/families/polkadot/preload.js +16 -12
- package/lib/families/polkadot/preload.js.map +1 -1
- package/lib/market/api/api.d.ts +1 -1
- package/lib/market/api/api.d.ts.map +1 -1
- package/lib/market/api/api.js +43 -24
- package/lib/market/api/api.js.map +1 -1
- package/lib/market/types.d.ts +1 -0
- package/lib/market/types.d.ts.map +1 -1
- package/lib/reactNative.d.ts +1 -0
- package/lib/reactNative.d.ts.map +1 -1
- package/lib/reactNative.js +3 -0
- package/lib/reactNative.js.map +1 -1
- package/package.json +19 -19
- package/src/bridge/mockHelpers.ts +5 -2
- package/src/bridge/useBridgeTransaction.test.ts +70 -0
- package/src/bridge/useBridgeTransaction.ts +22 -1
- package/src/currencies/__snapshots__/sortByMarketcap.test.ts.snap +1 -45
- package/src/data/icons/react/abi.tsx +14 -0
- package/src/data/icons/react/gAbi.tsx +14 -0
- package/src/data/icons/react/index.tsx +3 -0
- package/src/data/icons/react/sAbi.tsx +14 -0
- package/src/data/icons/reactNative/abi.tsx +15 -0
- package/src/data/icons/reactNative/gAbi.tsx +15 -0
- package/src/data/icons/reactNative/index.tsx +3 -0
- package/src/data/icons/reactNative/sAbi.tsx +15 -0
- package/src/data/icons/svg/ABI.svg +3 -0
- package/src/data/icons/svg/gABI.svg +4 -0
- package/src/data/icons/svg/sABI.svg +3 -0
- package/src/exchange/swap/getExchangeRates.test.ts +151 -0
- package/src/exchange/swap/getExchangeRates.ts +30 -22
- package/src/families/bitcoin/bridge/js.ts +2 -0
- package/src/families/cosmos/specs.ts +0 -1
- package/src/families/ethereum/specs.ts +2 -2
- package/src/families/polkadot/bridge/js.ts +2 -0
- package/src/families/polkadot/js-buildTransaction.ts +3 -0
- package/src/families/polkadot/js-estimateMaxSpendable.ts +2 -0
- package/src/families/polkadot/js-getTransactionStatus.ts +3 -0
- package/src/families/polkadot/js-prepareTransaction.ts +2 -0
- package/src/families/polkadot/js-synchronisation.ts +2 -0
- package/src/families/polkadot/polkadot-crypto.ts +10 -0
- package/src/families/polkadot/preload.ts +2 -0
- package/src/market/api/api.ts +39 -17
- package/src/market/types.ts +1 -0
- package/src/reactNative.ts +5 -0
|
@@ -695,7 +695,6 @@ Array [
|
|
|
695
695
|
"ethereum/erc20/mark",
|
|
696
696
|
"ethereum/erc20/flip_token",
|
|
697
697
|
"ethereum/erc20/team",
|
|
698
|
-
"polygon/erc20/ig_orb_(pos)",
|
|
699
698
|
"ethereum/erc20/syncfab_manufacturing",
|
|
700
699
|
"ethereum/erc20/niobium",
|
|
701
700
|
"ethereum/erc20/bob_s_repair",
|
|
@@ -729,7 +728,7 @@ Array [
|
|
|
729
728
|
"ethereum/erc20/coinus",
|
|
730
729
|
"ethereum/erc20/rating",
|
|
731
730
|
"ethereum/erc20/uptrennd",
|
|
732
|
-
"
|
|
731
|
+
"ethereum/erc20/stoxtoken",
|
|
733
732
|
"ethereum/erc20/smartshare_token",
|
|
734
733
|
"ethereum/erc20/fti",
|
|
735
734
|
"ethereum/erc20/neurochain_clausius",
|
|
@@ -1073,7 +1072,6 @@ Array [
|
|
|
1073
1072
|
"ethereum/erc20/bnc_token",
|
|
1074
1073
|
"ethereum/erc20/stakehouse_batch",
|
|
1075
1074
|
"ethereum/erc20/micromines",
|
|
1076
|
-
"ethereum/erc20/wrapped_luna_token",
|
|
1077
1075
|
"ethereum/erc20/tokendesk",
|
|
1078
1076
|
"akroma",
|
|
1079
1077
|
"ethereum/erc20/delta_financial_-_deep_defi_derivatives",
|
|
@@ -1573,7 +1571,6 @@ Array [
|
|
|
1573
1571
|
"ethereum/erc20/ape_stax",
|
|
1574
1572
|
"ethereum/erc20/apebullinu",
|
|
1575
1573
|
"ethereum/erc20/apecoin",
|
|
1576
|
-
"ethereum/erc20/apecoin_dev",
|
|
1577
1574
|
"ethereum/erc20/apehaven",
|
|
1578
1575
|
"ethereum/erc20/apenft",
|
|
1579
1576
|
"ethereum/erc20/api3",
|
|
@@ -1817,7 +1814,6 @@ Array [
|
|
|
1817
1814
|
"ethereum/erc20/bitboost",
|
|
1818
1815
|
"ethereum/erc20/bitcar_token",
|
|
1819
1816
|
"ethereum/erc20/bitcashpay",
|
|
1820
|
-
"ethereum/erc20/bitcci_cash",
|
|
1821
1817
|
"ethereum/erc20/bitcloud_token",
|
|
1822
1818
|
"ethereum/erc20/bitcoin_boutique",
|
|
1823
1819
|
"ethereum/erc20/bitcoin_zero",
|
|
@@ -2027,7 +2023,6 @@ Array [
|
|
|
2027
2023
|
"ethereum/erc20/capital_finance",
|
|
2028
2024
|
"ethereum/erc20/capitalsharetoken",
|
|
2029
2025
|
"ethereum/erc20/capsule_coin",
|
|
2030
|
-
"ethereum/erc20/captain_inu",
|
|
2031
2026
|
"ethereum/erc20/car_coin",
|
|
2032
2027
|
"ethereum/erc20/car_sharing_community",
|
|
2033
2028
|
"ethereum/erc20/carbcoin",
|
|
@@ -2052,7 +2047,6 @@ Array [
|
|
|
2052
2047
|
"ethereum/erc20/cat__blockcat_",
|
|
2053
2048
|
"ethereum/erc20/cat_trade",
|
|
2054
2049
|
"ethereum/erc20/catcoin",
|
|
2055
|
-
"ethereum/erc20/catecoin",
|
|
2056
2050
|
"ethereum/erc20/cavapoo",
|
|
2057
2051
|
"ethereum/erc20/cavo",
|
|
2058
2052
|
"ethereum/erc20/cbdao",
|
|
@@ -2091,7 +2085,6 @@ Array [
|
|
|
2091
2085
|
"ethereum/erc20/cherry_token",
|
|
2092
2086
|
"ethereum/erc20/chi_gastoken_by_1inch",
|
|
2093
2087
|
"ethereum/erc20/chicken",
|
|
2094
|
-
"ethereum/erc20/chihiro_inu",
|
|
2095
2088
|
"ethereum/erc20/chihua_token",
|
|
2096
2089
|
"ethereum/erc20/chihuahua",
|
|
2097
2090
|
"ethereum/erc20/chipz",
|
|
@@ -2239,7 +2232,6 @@ Array [
|
|
|
2239
2232
|
"ethereum/erc20/creedtoken",
|
|
2240
2233
|
"ethereum/erc20/cremit",
|
|
2241
2234
|
"ethereum/erc20/crespo",
|
|
2242
|
-
"ethereum/erc20/creverse",
|
|
2243
2235
|
"ethereum/erc20/criptoro_coin",
|
|
2244
2236
|
"ethereum/erc20/cro",
|
|
2245
2237
|
"ethereum/erc20/crossfi",
|
|
@@ -2657,7 +2649,6 @@ Array [
|
|
|
2657
2649
|
"ethereum/erc20/enkronostoken",
|
|
2658
2650
|
"ethereum/erc20/enreachdao",
|
|
2659
2651
|
"ethereum/erc20/entanmo",
|
|
2660
|
-
"ethereum/erc20/enter_governance_token",
|
|
2661
2652
|
"ethereum/erc20/entone",
|
|
2662
2653
|
"ethereum/erc20/entropy",
|
|
2663
2654
|
"ethereum/erc20/envicoin",
|
|
@@ -2989,7 +2980,6 @@ Array [
|
|
|
2989
2980
|
"ethereum/erc20/gera",
|
|
2990
2981
|
"ethereum/erc20/gerowallet",
|
|
2991
2982
|
"ethereum/erc20/geyser",
|
|
2992
|
-
"ethereum/erc20/gg_token",
|
|
2993
2983
|
"ethereum/erc20/ggcoin",
|
|
2994
2984
|
"ethereum/erc20/ggtoken",
|
|
2995
2985
|
"ethereum/erc20/ghoul",
|
|
@@ -3071,7 +3061,6 @@ Array [
|
|
|
3071
3061
|
"ethereum/erc20/grearn's_token",
|
|
3072
3062
|
"ethereum/erc20/green",
|
|
3073
3063
|
"ethereum/erc20/green_light_erc20",
|
|
3074
|
-
"ethereum/erc20/green_metaverse_token",
|
|
3075
3064
|
"ethereum/erc20/green_token",
|
|
3076
3065
|
"ethereum/erc20/greenmed",
|
|
3077
3066
|
"ethereum/erc20/grey_token",
|
|
@@ -3154,7 +3143,6 @@ Array [
|
|
|
3154
3143
|
"ethereum/erc20/hiz_finance",
|
|
3155
3144
|
"ethereum/erc20/hkg",
|
|
3156
3145
|
"ethereum/erc20/hlandtoken",
|
|
3157
|
-
"ethereum/erc20/hmmm",
|
|
3158
3146
|
"ethereum/erc20/hoard_token",
|
|
3159
3147
|
"ethereum/erc20/hobonickels",
|
|
3160
3148
|
"ethereum/erc20/hodlcoin",
|
|
@@ -3465,7 +3453,6 @@ Array [
|
|
|
3465
3453
|
"ethereum/erc20/libartysharetoken",
|
|
3466
3454
|
"ethereum/erc20/libera",
|
|
3467
3455
|
"ethereum/erc20/libereum",
|
|
3468
|
-
"ethereum/erc20/libero_financial_freedom",
|
|
3469
3456
|
"ethereum/erc20/libertas",
|
|
3470
3457
|
"ethereum/erc20/libfx",
|
|
3471
3458
|
"ethereum/erc20/libratoken",
|
|
@@ -3628,7 +3615,6 @@ Array [
|
|
|
3628
3615
|
"ethereum/erc20/meta_network",
|
|
3629
3616
|
"ethereum/erc20/metafabric",
|
|
3630
3617
|
"ethereum/erc20/metafactory",
|
|
3631
|
-
"ethereum/erc20/metafluence",
|
|
3632
3618
|
"ethereum/erc20/metaverse_index",
|
|
3633
3619
|
"ethereum/erc20/metaverse_nft_index",
|
|
3634
3620
|
"ethereum/erc20/metawhale_btc",
|
|
@@ -3925,7 +3911,6 @@ Array [
|
|
|
3925
3911
|
"ethereum/erc20/orbicularv2",
|
|
3926
3912
|
"ethereum/erc20/orbit_chain",
|
|
3927
3913
|
"ethereum/erc20/orca_token",
|
|
3928
|
-
"ethereum/erc20/orica",
|
|
3929
3914
|
"ethereum/erc20/orient",
|
|
3930
3915
|
"ethereum/erc20/orientum_plus",
|
|
3931
3916
|
"ethereum/erc20/orion_protocol",
|
|
@@ -4201,7 +4186,6 @@ Array [
|
|
|
4201
4186
|
"ethereum/erc20/quannabu",
|
|
4202
4187
|
"ethereum/erc20/quantfury_data_token",
|
|
4203
4188
|
"ethereum/erc20/quantfury_token",
|
|
4204
|
-
"ethereum/erc20/quarashi",
|
|
4205
4189
|
"ethereum/erc20/quickmining_token",
|
|
4206
4190
|
"ethereum/erc20/quickswap",
|
|
4207
4191
|
"ethereum/erc20/quiverx",
|
|
@@ -4256,7 +4240,6 @@ Array [
|
|
|
4256
4240
|
"ethereum/erc20/reditoken",
|
|
4257
4241
|
"ethereum/erc20/reef_finance",
|
|
4258
4242
|
"ethereum/erc20/reeth_token",
|
|
4259
|
-
"ethereum/erc20/refi",
|
|
4260
4243
|
"ethereum/erc20/refine_medium_token",
|
|
4261
4244
|
"ethereum/erc20/reflect_finance",
|
|
4262
4245
|
"ethereum/erc20/reflector_finance",
|
|
@@ -4355,7 +4338,6 @@ Array [
|
|
|
4355
4338
|
"ethereum/erc20/safemoon_inu",
|
|
4356
4339
|
"ethereum/erc20/safemusk",
|
|
4357
4340
|
"ethereum/erc20/safeswap",
|
|
4358
|
-
"ethereum/erc20/safuu",
|
|
4359
4341
|
"ethereum/erc20/saitama_inu",
|
|
4360
4342
|
"ethereum/erc20/saito",
|
|
4361
4343
|
"ethereum/erc20/saitoki_inu",
|
|
@@ -4384,7 +4366,6 @@ Array [
|
|
|
4384
4366
|
"ethereum/erc20/savetoken",
|
|
4385
4367
|
"ethereum/erc20/savix",
|
|
4386
4368
|
"ethereum/erc20/scaleswaptoken",
|
|
4387
|
-
"ethereum/erc20/scallop",
|
|
4388
4369
|
"ethereum/erc20/scandiweb_coin",
|
|
4389
4370
|
"ethereum/erc20/scardust",
|
|
4390
4371
|
"ethereum/erc20/scatter_cx",
|
|
@@ -4394,14 +4375,12 @@ Array [
|
|
|
4394
4375
|
"ethereum/erc20/scifitoken",
|
|
4395
4376
|
"ethereum/erc20/scoobi-doge",
|
|
4396
4377
|
"ethereum/erc20/scott",
|
|
4397
|
-
"ethereum/erc20/scratchtoken",
|
|
4398
4378
|
"ethereum/erc20/scrl",
|
|
4399
4379
|
"ethereum/erc20/sdog",
|
|
4400
4380
|
"ethereum/erc20/sea_cucumber_chain",
|
|
4401
4381
|
"ethereum/erc20/sealblock_token",
|
|
4402
4382
|
"ethereum/erc20/sechain",
|
|
4403
4383
|
"ethereum/erc20/secret_finance",
|
|
4404
|
-
"ethereum/erc20/sector",
|
|
4405
4384
|
"ethereum/erc20/secure_pad",
|
|
4406
4385
|
"ethereum/erc20/securypto",
|
|
4407
4386
|
"ethereum/erc20/seed",
|
|
@@ -4657,7 +4636,6 @@ Array [
|
|
|
4657
4636
|
"ethereum/erc20/store-of-value_token",
|
|
4658
4637
|
"ethereum/erc20/storh",
|
|
4659
4638
|
"ethereum/erc20/storichain",
|
|
4660
|
-
"ethereum/erc20/stoxtoken",
|
|
4661
4639
|
"ethereum/erc20/stpc",
|
|
4662
4640
|
"ethereum/erc20/strain",
|
|
4663
4641
|
"ethereum/erc20/stratos_token",
|
|
@@ -4668,7 +4646,6 @@ Array [
|
|
|
4668
4646
|
"ethereum/erc20/street_cred",
|
|
4669
4647
|
"ethereum/erc20/strike_token",
|
|
4670
4648
|
"ethereum/erc20/strikecoin_token",
|
|
4671
|
-
"ethereum/erc20/strikex",
|
|
4672
4649
|
"ethereum/erc20/strong",
|
|
4673
4650
|
"ethereum/erc20/stronghold",
|
|
4674
4651
|
"ethereum/erc20/strudel_finance",
|
|
@@ -4784,7 +4761,6 @@ Array [
|
|
|
4784
4761
|
"ethereum/erc20/taklimakan_network",
|
|
4785
4762
|
"ethereum/erc20/talao",
|
|
4786
4763
|
"ethereum/erc20/talent_coin",
|
|
4787
|
-
"ethereum/erc20/talkado",
|
|
4788
4764
|
"ethereum/erc20/tama_egg_niftygotchi",
|
|
4789
4765
|
"ethereum/erc20/tamy_token",
|
|
4790
4766
|
"ethereum/erc20/tangguotao_token",
|
|
@@ -4875,7 +4851,6 @@ Array [
|
|
|
4875
4851
|
"ethereum/erc20/tingles",
|
|
4876
4852
|
"ethereum/erc20/tinku",
|
|
4877
4853
|
"ethereum/erc20/tio",
|
|
4878
|
-
"ethereum/erc20/titano",
|
|
4879
4854
|
"ethereum/erc20/titanswap",
|
|
4880
4855
|
"ethereum/erc20/tixl_token",
|
|
4881
4856
|
"ethereum/erc20/tknt",
|
|
@@ -5645,7 +5620,6 @@ Array [
|
|
|
5645
5620
|
"polygon/erc20/gravity_finance",
|
|
5646
5621
|
"polygon/erc20/grumpy_cat",
|
|
5647
5622
|
"polygon/erc20/guaranteed_entrance_token",
|
|
5648
|
-
"polygon/erc20/guppy_treat_token",
|
|
5649
5623
|
"polygon/erc20/hashgard",
|
|
5650
5624
|
"polygon/erc20/hex",
|
|
5651
5625
|
"polygon/erc20/holotoken",
|
|
@@ -5658,10 +5632,6 @@ Array [
|
|
|
5658
5632
|
"polygon/erc20/injective_token",
|
|
5659
5633
|
"polygon/erc20/internxt",
|
|
5660
5634
|
"polygon/erc20/inverse",
|
|
5661
|
-
"polygon/erc20/invictus_bitcoin_alpha",
|
|
5662
|
-
"polygon/erc20/invictus_crypto10_hedged",
|
|
5663
|
-
"polygon/erc20/invictus_crypto20",
|
|
5664
|
-
"polygon/erc20/invictus_stable_growth",
|
|
5665
5635
|
"polygon/erc20/iron_finance_ice_token",
|
|
5666
5636
|
"polygon/erc20/iron_stablecoin",
|
|
5667
5637
|
"polygon/erc20/iron_titanium_token",
|
|
@@ -5694,7 +5664,6 @@ Array [
|
|
|
5694
5664
|
"polygon/erc20/moonwolf.io",
|
|
5695
5665
|
"polygon/erc20/mover",
|
|
5696
5666
|
"polygon/erc20/mysterium_(pos)",
|
|
5697
|
-
"polygon/erc20/nakamoto.games",
|
|
5698
5667
|
"polygon/erc20/napoleonx",
|
|
5699
5668
|
"polygon/erc20/neighbourhoods_token",
|
|
5700
5669
|
"polygon/erc20/neos_credits_(pos)",
|
|
@@ -5752,7 +5721,6 @@ Array [
|
|
|
5752
5721
|
"polygon/erc20/sand",
|
|
5753
5722
|
"polygon/erc20/sand_old",
|
|
5754
5723
|
"polygon/erc20/sapien_network",
|
|
5755
|
-
"polygon/erc20/sekuritance_(pos)",
|
|
5756
5724
|
"polygon/erc20/sentinel",
|
|
5757
5725
|
"polygon/erc20/serum",
|
|
5758
5726
|
"polygon/erc20/shopping.io",
|
|
@@ -5950,7 +5918,6 @@ Array [
|
|
|
5950
5918
|
"bsc/bep20/car",
|
|
5951
5919
|
"bsc/bep20/cartesi_token",
|
|
5952
5920
|
"bsc/bep20/catecoin",
|
|
5953
|
-
"bsc/bep20/catecoin_old",
|
|
5954
5921
|
"bsc/bep20/ceek",
|
|
5955
5922
|
"bsc/bep20/cerby_token",
|
|
5956
5923
|
"bsc/bep20/certik_token",
|
|
@@ -6029,7 +5996,6 @@ Array [
|
|
|
6029
5996
|
"bsc/bep20/fantom",
|
|
6030
5997
|
"bsc/bep20/faracrystal",
|
|
6031
5998
|
"bsc/bep20/fegtoken",
|
|
6032
|
-
"bsc/bep20/ferrum_network_token",
|
|
6033
5999
|
"bsc/bep20/finnexus",
|
|
6034
6000
|
"bsc/bep20/firo",
|
|
6035
6001
|
"bsc/bep20/flash_token",
|
|
@@ -6039,7 +6005,6 @@ Array [
|
|
|
6039
6005
|
"bsc/bep20/flokimooni",
|
|
6040
6006
|
"bsc/bep20/formation_finance",
|
|
6041
6007
|
"bsc/bep20/free_coin_bsc",
|
|
6042
|
-
"bsc/bep20/frmx_token",
|
|
6043
6008
|
"bsc/bep20/frontier_token",
|
|
6044
6009
|
"bsc/bep20/fry.ketchupv2",
|
|
6045
6010
|
"bsc/bep20/fry.world",
|
|
@@ -6051,14 +6016,12 @@ Array [
|
|
|
6051
6016
|
"bsc/bep20/gamyfi",
|
|
6052
6017
|
"bsc/bep20/genta",
|
|
6053
6018
|
"bsc/bep20/gforce",
|
|
6054
|
-
"bsc/bep20/gg_token",
|
|
6055
6019
|
"bsc/bep20/gomining_token",
|
|
6056
6020
|
"bsc/bep20/goose_coin",
|
|
6057
6021
|
"bsc/bep20/goose_golden_egg",
|
|
6058
6022
|
"bsc/bep20/gorilladiamond",
|
|
6059
6023
|
"bsc/bep20/goswapp",
|
|
6060
6024
|
"bsc/bep20/gourmetgalaxy",
|
|
6061
|
-
"bsc/bep20/green_metaverse_token",
|
|
6062
6025
|
"bsc/bep20/gummy_bull_token",
|
|
6063
6026
|
"bsc/bep20/hacken_token",
|
|
6064
6027
|
"bsc/bep20/hakka_finance_on_xdai_on_bsc",
|
|
@@ -6114,7 +6077,6 @@ Array [
|
|
|
6114
6077
|
"bsc/bep20/measurable_data_token",
|
|
6115
6078
|
"bsc/bep20/meme_lordz",
|
|
6116
6079
|
"bsc/bep20/mercor_token",
|
|
6117
|
-
"bsc/bep20/metafluence",
|
|
6118
6080
|
"bsc/bep20/metahero",
|
|
6119
6081
|
"bsc/bep20/metaloop_tech",
|
|
6120
6082
|
"bsc/bep20/micropets",
|
|
@@ -6156,7 +6118,6 @@ Array [
|
|
|
6156
6118
|
"bsc/bep20/open_governance_token",
|
|
6157
6119
|
"bsc/bep20/orbs",
|
|
6158
6120
|
"bsc/bep20/oreo",
|
|
6159
|
-
"bsc/bep20/orica",
|
|
6160
6121
|
"bsc/bep20/ovr",
|
|
6161
6122
|
"bsc/bep20/paid_network",
|
|
6162
6123
|
"bsc/bep20/pancakeswap_token",
|
|
@@ -6190,7 +6151,6 @@ Array [
|
|
|
6190
6151
|
"bsc/bep20/puli_inu",
|
|
6191
6152
|
"bsc/bep20/qian_governance_token",
|
|
6192
6153
|
"bsc/bep20/qian_second_generation_dollar",
|
|
6193
|
-
"bsc/bep20/quarashi",
|
|
6194
6154
|
"bsc/bep20/quarkchain_token",
|
|
6195
6155
|
"bsc/bep20/questdm",
|
|
6196
6156
|
"bsc/bep20/qusd_stablecoin",
|
|
@@ -6217,8 +6177,6 @@ Array [
|
|
|
6217
6177
|
"bsc/bep20/safepal_token",
|
|
6218
6178
|
"bsc/bep20/safuu",
|
|
6219
6179
|
"bsc/bep20/saketoken",
|
|
6220
|
-
"bsc/bep20/scallop",
|
|
6221
|
-
"bsc/bep20/sector",
|
|
6222
6180
|
"bsc/bep20/seedifyfund",
|
|
6223
6181
|
"bsc/bep20/seven_up_token",
|
|
6224
6182
|
"bsc/bep20/shambala",
|
|
@@ -6252,7 +6210,6 @@ Array [
|
|
|
6252
6210
|
"bsc/bep20/swipe",
|
|
6253
6211
|
"bsc/bep20/switcheo_token",
|
|
6254
6212
|
"bsc/bep20/taco",
|
|
6255
|
-
"bsc/bep20/talkado",
|
|
6256
6213
|
"bsc/bep20/tbitcoin",
|
|
6257
6214
|
"bsc/bep20/tdogecoin",
|
|
6258
6215
|
"bsc/bep20/tenet",
|
|
@@ -6312,7 +6269,6 @@ Array [
|
|
|
6312
6269
|
"bsc/bep20/venus_xrp",
|
|
6313
6270
|
"bsc/bep20/venus_xvs",
|
|
6314
6271
|
"bsc/bep20/vfox",
|
|
6315
|
-
"bsc/bep20/volt_inu",
|
|
6316
6272
|
"bsc/bep20/vswap.fi",
|
|
6317
6273
|
"bsc/bep20/wall_street_games",
|
|
6318
6274
|
"bsc/bep20/wanaka_farm",
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
interface Props {
|
|
6
|
+
size: number;
|
|
7
|
+
color?: string;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
function abi({size, color = "currentColor"}: Props) {
|
|
11
|
+
return <svg width={size} height={size} viewBox="0 0 24 24" fill="none"><path fillRule="evenodd" clipRule="evenodd" d="M11.9998 24.0001C18.6273 24.0001 24 18.6275 24 12C24 5.37259 18.6273 0 11.9998 0C7.96702 0 4.39884 1.98928 2.22306 5.0401H6.66327C7.19346 5.0401 7.62327 5.46991 7.62327 6.00011C7.62327 6.5303 7.19346 6.96011 6.66327 6.96011H1.10615C0.890889 7.4246 0.704462 7.90518 0.549166 8.39954H13.7222C14.2524 8.39954 14.6822 8.82935 14.6822 9.35954C14.6822 9.88974 14.2524 10.3195 13.7222 10.3195H0.116384C0.0432521 10.8414 0.00368631 11.374 -6.10352e-05 11.9152H4.6868C5.217 11.9152 5.64681 12.345 5.64681 12.8752C5.64681 13.4054 5.217 13.8352 4.6868 13.8352H0.139088C0.218896 14.3552 0.332089 14.8643 0.476412 15.3601H13.7222C14.2524 15.3601 14.6822 15.7899 14.6822 16.3201C14.6822 16.8503 14.2524 17.2801 13.7222 17.2801H1.2207C1.50445 17.8582 1.83335 18.4102 2.2028 18.9315H6.66327C7.19346 18.9315 7.62327 19.3613 7.62327 19.8915C7.62327 20.4217 7.19346 20.8515 6.66327 20.8515H3.89698C6.03192 22.8069 8.87653 24.0001 11.9998 24.0001ZM16.3582 17.2801C15.828 17.2801 15.3982 16.8503 15.3982 16.3201C15.3982 15.7899 15.828 15.3601 16.3582 15.3601C16.8884 15.3601 17.3182 15.7899 17.3182 16.3201C17.3182 16.8503 16.8884 17.2801 16.3582 17.2801ZM15.3982 9.35954C15.3982 9.88974 15.828 10.3195 16.3582 10.3195C16.8884 10.3195 17.3182 9.88974 17.3182 9.35954C17.3182 8.82935 16.8884 8.39954 16.3582 8.39954C15.828 8.39954 15.3982 8.82935 15.3982 9.35954ZM8.18797 19.8976C8.18797 20.4278 8.61779 20.8576 9.14798 20.8576C9.67818 20.8576 10.108 20.4278 10.108 19.8976C10.108 19.3674 9.67818 18.9376 9.14798 18.9376C8.61779 18.9376 8.18797 19.3674 8.18797 19.8976ZM9.14798 6.96011C8.61779 6.96011 8.18797 6.5303 8.18797 6.00011C8.18797 5.46991 8.61779 5.0401 9.14798 5.0401C9.67818 5.0401 10.108 5.46991 10.108 6.00011C10.108 6.5303 9.67818 6.96011 9.14798 6.96011ZM9.19027 12.8752C9.19027 13.4054 9.62007 13.8352 10.1503 13.8352H20.9473C21.4775 13.8352 21.9073 13.4054 21.9073 12.8752C21.9073 12.345 21.4775 11.9152 20.9473 11.9152H10.1503C9.62007 11.9152 9.19027 12.345 9.19027 12.8752ZM7.41153 13.8352C6.88133 13.8352 6.45151 13.4054 6.45151 12.8752C6.45151 12.345 6.88133 11.9152 7.41153 11.9152C7.94172 11.9152 8.37154 12.345 8.37154 12.8752C8.37154 13.4054 7.94172 13.8352 7.41153 13.8352Z" fill={color} /></svg>;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export default abi;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
interface Props {
|
|
6
|
+
size: number;
|
|
7
|
+
color?: string;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
function gAbi({size, color = "currentColor"}: Props) {
|
|
11
|
+
return <svg width={size} height={size} viewBox="0 0 24 24" fill="none"><path fillRule="evenodd" clipRule="evenodd" d="M11.9998 22.5602C17.832 22.5602 22.56 17.8323 22.56 12.0002C22.56 6.16806 17.832 1.44019 11.9998 1.44019C8.45097 1.44019 5.31097 3.19077 3.39628 5.8755H7.3037C7.77027 5.8755 8.1485 6.25373 8.1485 6.7203C8.1485 7.18687 7.77027 7.5651 7.3037 7.5651H2.41342C2.22398 7.97388 2.05992 8.39682 1.92325 8.83188H13.5155C13.9821 8.83188 14.3603 9.21011 14.3603 9.67668C14.3603 10.1433 13.9821 10.5215 13.5155 10.5215H1.54243C1.47808 10.9807 1.44326 11.4494 1.43997 11.9256H5.56439C6.03096 11.9256 6.40919 12.3039 6.40919 12.7704C6.40919 13.237 6.03096 13.6152 5.56439 13.6152H1.56244C1.63266 14.0728 1.73226 14.5207 1.85923 14.9569H13.5155C13.9821 14.9569 14.3603 15.3351 14.3603 15.8017C14.3603 16.2683 13.9821 16.6465 13.5155 16.6465H2.51418C2.76388 17.1553 3.05332 17.6411 3.37845 18.0998H7.3037C7.77027 18.0998 8.1485 18.478 8.1485 18.9446C8.1485 19.4112 7.77027 19.7894 7.3037 19.7894H4.86931C6.74806 21.5102 9.25133 22.5602 11.9998 22.5602ZM15.8352 16.6465C15.3686 16.6465 14.9904 16.2683 14.9904 15.8017C14.9904 15.3351 15.3686 14.9569 15.8352 14.9569C16.3018 14.9569 16.68 15.3351 16.68 15.8017C16.68 16.2683 16.3018 16.6465 15.8352 16.6465ZM14.9904 9.67668C14.9904 10.1433 15.3686 10.5215 15.8352 10.5215C16.3018 10.5215 16.68 10.1433 16.68 9.67668C16.68 9.21011 16.3018 8.83188 15.8352 8.83188C15.3686 8.83188 14.9904 9.21011 14.9904 9.67668ZM8.64542 18.9501C8.64542 19.4167 9.02366 19.7949 9.49024 19.7949C9.95681 19.7949 10.335 19.4167 10.335 18.9501C10.335 18.4836 9.95681 18.1053 9.49024 18.1053C9.02366 18.1053 8.64542 18.4836 8.64542 18.9501ZM9.49024 7.5651C9.02366 7.5651 8.64542 7.18687 8.64542 6.7203C8.64542 6.25373 9.02366 5.8755 9.49024 5.8755C9.95681 5.8755 10.335 6.25373 10.335 6.7203C10.335 7.18687 9.95681 7.5651 9.49024 7.5651ZM9.52746 12.7704C9.52746 13.237 9.90569 13.6152 10.3723 13.6152H19.8736C20.3402 13.6152 20.7184 13.237 20.7184 12.7704C20.7184 12.3039 20.3402 11.9256 19.8736 11.9256H10.3723C9.90569 11.9256 9.52746 12.3039 9.52746 12.7704ZM7.96212 13.6152C7.49555 13.6152 7.11731 13.237 7.11731 12.7704C7.11731 12.3039 7.49555 11.9256 7.96212 11.9256C8.42869 11.9256 8.80693 12.3039 8.80693 12.7704C8.80693 13.237 8.42869 13.6152 7.96212 13.6152Z" fill={color} /><path d="M23.76 12C23.76 18.4949 18.4949 23.76 12 23.76C5.50513 23.76 0.24 18.4949 0.24 12C0.24 5.50513 5.50513 0.24 12 0.24C18.4949 0.24 23.76 5.50513 23.76 12Z" stroke="black" strokeWidth={0.48} /></svg>;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export default gAbi;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { default as _0Xbtc } from "./_0Xbtc";
|
|
2
2
|
export { default as _2Give } from "./_2Give";
|
|
3
|
+
export { default as abi } from "./abi";
|
|
3
4
|
export { default as abt } from "./abt";
|
|
4
5
|
export { default as act } from "./act";
|
|
5
6
|
export { default as actn } from "./actn";
|
|
@@ -167,6 +168,7 @@ export { default as fsn } from "./fsn";
|
|
|
167
168
|
export { default as ftc } from "./ftc";
|
|
168
169
|
export { default as fuel } from "./fuel";
|
|
169
170
|
export { default as fun } from "./fun";
|
|
171
|
+
export { default as gAbi } from "./gAbi";
|
|
170
172
|
export { default as game } from "./game";
|
|
171
173
|
export { default as gas } from "./gas";
|
|
172
174
|
export { default as gbx } from "./gbx";
|
|
@@ -332,6 +334,7 @@ export { default as rpx } from "./rpx";
|
|
|
332
334
|
export { default as rub } from "./rub";
|
|
333
335
|
export { default as rvn } from "./rvn";
|
|
334
336
|
export { default as ryo } from "./ryo";
|
|
337
|
+
export { default as sAbi } from "./sAbi";
|
|
335
338
|
export { default as safe } from "./safe";
|
|
336
339
|
export { default as sai } from "./sai";
|
|
337
340
|
export { default as salt } from "./salt";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
interface Props {
|
|
6
|
+
size: number;
|
|
7
|
+
color?: string;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
function sAbi({size, color = "currentColor"}: Props) {
|
|
11
|
+
return <svg width={size} height={size} viewBox="0 0 24 24" fill="none"><path d="M9.73023 3.03256H4.39147C6.44248 1.29059 9.0983 0.239972 12 0.239972C18.4949 0.239972 23.76 5.50513 23.76 12C23.76 18.4949 18.4949 23.7601 12 23.7601C9.41477 23.7601 7.02488 22.9262 5.0839 21.5125H9.73026C10.3147 21.5125 10.7884 21.0387 10.7884 20.4543C10.7884 19.8699 10.3147 19.3962 9.73026 19.3962H2.85637C2.43894 18.8808 2.06423 18.3294 1.7376 17.7475L13.3366 17.7474C13.921 17.7473 14.3948 17.2736 14.3948 16.6892C14.3948 16.1048 13.921 15.631 13.3366 15.631L0.811141 15.6312C0.627159 15.0639 0.485126 14.4776 0.388705 13.8761H4.09085C4.67525 13.8761 5.14901 13.4023 5.14901 12.8179C5.14901 12.2335 4.67525 11.7598 4.09085 11.7598H0.242316C0.258824 10.9357 0.360068 10.1326 0.537621 9.35883H13.3636C13.948 9.35883 14.4217 8.88508 14.4217 8.30068C14.4217 7.71628 13.948 7.24252 13.3636 7.24252H1.24191C1.57021 6.50126 1.97291 5.80022 2.44057 5.14887H9.73023C10.3146 5.14887 10.7884 4.67512 10.7884 4.09072C10.7884 3.50631 10.3146 3.03256 9.73023 3.03256ZM9.57811 12.8179C9.57811 13.4023 10.0519 13.8761 10.6363 13.8761H19.3636C19.948 13.8761 20.4217 13.4023 20.4217 12.8179C20.4217 12.2335 19.948 11.7598 19.3636 11.7598H10.6363C10.0519 11.7598 9.57811 12.2335 9.57811 12.8179ZM7.32739 11.7598C6.74277 11.7598 6.26844 12.2333 6.26844 12.8179C6.26844 13.4026 6.74277 13.8761 7.32739 13.8761C7.91201 13.8761 8.38634 13.4026 8.38634 12.8179C8.38634 12.2333 7.91201 11.7598 7.32739 11.7598ZM13.0273 3.03256C12.4426 3.03256 11.9683 3.50609 11.9683 4.09072C11.9683 4.67534 12.4426 5.14887 13.0273 5.14887C13.6119 5.14887 14.0862 4.67534 14.0862 4.09072C14.0862 3.50609 13.6119 3.03256 13.0273 3.03256ZM13.0273 19.3962C12.4426 19.3962 11.9683 19.8697 11.9683 20.4543C11.9683 21.0389 12.4426 21.5125 13.0273 21.5125C13.6119 21.5125 14.0862 21.0389 14.0862 20.4543C14.0862 19.8697 13.6119 19.3962 13.0273 19.3962Z" fill={color} stroke="black" strokeWidth={0.479945} /></svg>;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export default sAbi;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
import Svg, { Path } from "react-native-svg";
|
|
6
|
+
interface Props {
|
|
7
|
+
size: number;
|
|
8
|
+
color: string;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
function abi({ size, color }: Props) {
|
|
12
|
+
return <Svg width={size} height={size} viewBox="0 0 24 24" fill="none"><Path fillRule="evenodd" clipRule="evenodd" d="M11.9998 24.0001C18.6273 24.0001 24 18.6275 24 12C24 5.37259 18.6273 0 11.9998 0C7.96702 0 4.39884 1.98928 2.22306 5.0401H6.66327C7.19346 5.0401 7.62327 5.46991 7.62327 6.00011C7.62327 6.5303 7.19346 6.96011 6.66327 6.96011H1.10615C0.890889 7.4246 0.704462 7.90518 0.549166 8.39954H13.7222C14.2524 8.39954 14.6822 8.82935 14.6822 9.35954C14.6822 9.88974 14.2524 10.3195 13.7222 10.3195H0.116384C0.0432521 10.8414 0.00368631 11.374 -6.10352e-05 11.9152H4.6868C5.217 11.9152 5.64681 12.345 5.64681 12.8752C5.64681 13.4054 5.217 13.8352 4.6868 13.8352H0.139088C0.218896 14.3552 0.332089 14.8643 0.476412 15.3601H13.7222C14.2524 15.3601 14.6822 15.7899 14.6822 16.3201C14.6822 16.8503 14.2524 17.2801 13.7222 17.2801H1.2207C1.50445 17.8582 1.83335 18.4102 2.2028 18.9315H6.66327C7.19346 18.9315 7.62327 19.3613 7.62327 19.8915C7.62327 20.4217 7.19346 20.8515 6.66327 20.8515H3.89698C6.03192 22.8069 8.87653 24.0001 11.9998 24.0001ZM16.3582 17.2801C15.828 17.2801 15.3982 16.8503 15.3982 16.3201C15.3982 15.7899 15.828 15.3601 16.3582 15.3601C16.8884 15.3601 17.3182 15.7899 17.3182 16.3201C17.3182 16.8503 16.8884 17.2801 16.3582 17.2801ZM15.3982 9.35954C15.3982 9.88974 15.828 10.3195 16.3582 10.3195C16.8884 10.3195 17.3182 9.88974 17.3182 9.35954C17.3182 8.82935 16.8884 8.39954 16.3582 8.39954C15.828 8.39954 15.3982 8.82935 15.3982 9.35954ZM8.18797 19.8976C8.18797 20.4278 8.61779 20.8576 9.14798 20.8576C9.67818 20.8576 10.108 20.4278 10.108 19.8976C10.108 19.3674 9.67818 18.9376 9.14798 18.9376C8.61779 18.9376 8.18797 19.3674 8.18797 19.8976ZM9.14798 6.96011C8.61779 6.96011 8.18797 6.5303 8.18797 6.00011C8.18797 5.46991 8.61779 5.0401 9.14798 5.0401C9.67818 5.0401 10.108 5.46991 10.108 6.00011C10.108 6.5303 9.67818 6.96011 9.14798 6.96011ZM9.19027 12.8752C9.19027 13.4054 9.62007 13.8352 10.1503 13.8352H20.9473C21.4775 13.8352 21.9073 13.4054 21.9073 12.8752C21.9073 12.345 21.4775 11.9152 20.9473 11.9152H10.1503C9.62007 11.9152 9.19027 12.345 9.19027 12.8752ZM7.41153 13.8352C6.88133 13.8352 6.45151 13.4054 6.45151 12.8752C6.45151 12.345 6.88133 11.9152 7.41153 11.9152C7.94172 11.9152 8.37154 12.345 8.37154 12.8752C8.37154 13.4054 7.94172 13.8352 7.41153 13.8352Z" fill={color} /></Svg>;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export default abi;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
import Svg, { Path } from "react-native-svg";
|
|
6
|
+
interface Props {
|
|
7
|
+
size: number;
|
|
8
|
+
color: string;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
function gAbi({ size, color }: Props) {
|
|
12
|
+
return <Svg width={size} height={size} viewBox="0 0 24 24" fill="none"><Path fillRule="evenodd" clipRule="evenodd" d="M11.9998 22.5602C17.832 22.5602 22.56 17.8323 22.56 12.0002C22.56 6.16806 17.832 1.44019 11.9998 1.44019C8.45097 1.44019 5.31097 3.19077 3.39628 5.8755H7.3037C7.77027 5.8755 8.1485 6.25373 8.1485 6.7203C8.1485 7.18687 7.77027 7.5651 7.3037 7.5651H2.41342C2.22398 7.97388 2.05992 8.39682 1.92325 8.83188H13.5155C13.9821 8.83188 14.3603 9.21011 14.3603 9.67668C14.3603 10.1433 13.9821 10.5215 13.5155 10.5215H1.54243C1.47808 10.9807 1.44326 11.4494 1.43997 11.9256H5.56439C6.03096 11.9256 6.40919 12.3039 6.40919 12.7704C6.40919 13.237 6.03096 13.6152 5.56439 13.6152H1.56244C1.63266 14.0728 1.73226 14.5207 1.85923 14.9569H13.5155C13.9821 14.9569 14.3603 15.3351 14.3603 15.8017C14.3603 16.2683 13.9821 16.6465 13.5155 16.6465H2.51418C2.76388 17.1553 3.05332 17.6411 3.37845 18.0998H7.3037C7.77027 18.0998 8.1485 18.478 8.1485 18.9446C8.1485 19.4112 7.77027 19.7894 7.3037 19.7894H4.86931C6.74806 21.5102 9.25133 22.5602 11.9998 22.5602ZM15.8352 16.6465C15.3686 16.6465 14.9904 16.2683 14.9904 15.8017C14.9904 15.3351 15.3686 14.9569 15.8352 14.9569C16.3018 14.9569 16.68 15.3351 16.68 15.8017C16.68 16.2683 16.3018 16.6465 15.8352 16.6465ZM14.9904 9.67668C14.9904 10.1433 15.3686 10.5215 15.8352 10.5215C16.3018 10.5215 16.68 10.1433 16.68 9.67668C16.68 9.21011 16.3018 8.83188 15.8352 8.83188C15.3686 8.83188 14.9904 9.21011 14.9904 9.67668ZM8.64542 18.9501C8.64542 19.4167 9.02366 19.7949 9.49024 19.7949C9.95681 19.7949 10.335 19.4167 10.335 18.9501C10.335 18.4836 9.95681 18.1053 9.49024 18.1053C9.02366 18.1053 8.64542 18.4836 8.64542 18.9501ZM9.49024 7.5651C9.02366 7.5651 8.64542 7.18687 8.64542 6.7203C8.64542 6.25373 9.02366 5.8755 9.49024 5.8755C9.95681 5.8755 10.335 6.25373 10.335 6.7203C10.335 7.18687 9.95681 7.5651 9.49024 7.5651ZM9.52746 12.7704C9.52746 13.237 9.90569 13.6152 10.3723 13.6152H19.8736C20.3402 13.6152 20.7184 13.237 20.7184 12.7704C20.7184 12.3039 20.3402 11.9256 19.8736 11.9256H10.3723C9.90569 11.9256 9.52746 12.3039 9.52746 12.7704ZM7.96212 13.6152C7.49555 13.6152 7.11731 13.237 7.11731 12.7704C7.11731 12.3039 7.49555 11.9256 7.96212 11.9256C8.42869 11.9256 8.80693 12.3039 8.80693 12.7704C8.80693 13.237 8.42869 13.6152 7.96212 13.6152Z" fill={color} /><Path d="M23.76 12C23.76 18.4949 18.4949 23.76 12 23.76C5.50513 23.76 0.24 18.4949 0.24 12C0.24 5.50513 5.50513 0.24 12 0.24C18.4949 0.24 23.76 5.50513 23.76 12Z" stroke="black" strokeWidth={0.48} /></Svg>;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export default gAbi;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { default as _0Xbtc } from "./_0Xbtc";
|
|
2
2
|
export { default as _2Give } from "./_2Give";
|
|
3
|
+
export { default as abi } from "./abi";
|
|
3
4
|
export { default as abt } from "./abt";
|
|
4
5
|
export { default as act } from "./act";
|
|
5
6
|
export { default as actn } from "./actn";
|
|
@@ -167,6 +168,7 @@ export { default as fsn } from "./fsn";
|
|
|
167
168
|
export { default as ftc } from "./ftc";
|
|
168
169
|
export { default as fuel } from "./fuel";
|
|
169
170
|
export { default as fun } from "./fun";
|
|
171
|
+
export { default as gAbi } from "./gAbi";
|
|
170
172
|
export { default as game } from "./game";
|
|
171
173
|
export { default as gas } from "./gas";
|
|
172
174
|
export { default as gbx } from "./gbx";
|
|
@@ -332,6 +334,7 @@ export { default as rpx } from "./rpx";
|
|
|
332
334
|
export { default as rub } from "./rub";
|
|
333
335
|
export { default as rvn } from "./rvn";
|
|
334
336
|
export { default as ryo } from "./ryo";
|
|
337
|
+
export { default as sAbi } from "./sAbi";
|
|
335
338
|
export { default as safe } from "./safe";
|
|
336
339
|
export { default as sai } from "./sai";
|
|
337
340
|
export { default as salt } from "./salt";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
import Svg, { Path } from "react-native-svg";
|
|
6
|
+
interface Props {
|
|
7
|
+
size: number;
|
|
8
|
+
color: string;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
function sAbi({ size, color }: Props) {
|
|
12
|
+
return <Svg width={size} height={size} viewBox="0 0 24 24" fill="none"><Path d="M9.73023 3.03256H4.39147C6.44248 1.29059 9.0983 0.239972 12 0.239972C18.4949 0.239972 23.76 5.50513 23.76 12C23.76 18.4949 18.4949 23.7601 12 23.7601C9.41477 23.7601 7.02488 22.9262 5.0839 21.5125H9.73026C10.3147 21.5125 10.7884 21.0387 10.7884 20.4543C10.7884 19.8699 10.3147 19.3962 9.73026 19.3962H2.85637C2.43894 18.8808 2.06423 18.3294 1.7376 17.7475L13.3366 17.7474C13.921 17.7473 14.3948 17.2736 14.3948 16.6892C14.3948 16.1048 13.921 15.631 13.3366 15.631L0.811141 15.6312C0.627159 15.0639 0.485126 14.4776 0.388705 13.8761H4.09085C4.67525 13.8761 5.14901 13.4023 5.14901 12.8179C5.14901 12.2335 4.67525 11.7598 4.09085 11.7598H0.242316C0.258824 10.9357 0.360068 10.1326 0.537621 9.35883H13.3636C13.948 9.35883 14.4217 8.88508 14.4217 8.30068C14.4217 7.71628 13.948 7.24252 13.3636 7.24252H1.24191C1.57021 6.50126 1.97291 5.80022 2.44057 5.14887H9.73023C10.3146 5.14887 10.7884 4.67512 10.7884 4.09072C10.7884 3.50631 10.3146 3.03256 9.73023 3.03256ZM9.57811 12.8179C9.57811 13.4023 10.0519 13.8761 10.6363 13.8761H19.3636C19.948 13.8761 20.4217 13.4023 20.4217 12.8179C20.4217 12.2335 19.948 11.7598 19.3636 11.7598H10.6363C10.0519 11.7598 9.57811 12.2335 9.57811 12.8179ZM7.32739 11.7598C6.74277 11.7598 6.26844 12.2333 6.26844 12.8179C6.26844 13.4026 6.74277 13.8761 7.32739 13.8761C7.91201 13.8761 8.38634 13.4026 8.38634 12.8179C8.38634 12.2333 7.91201 11.7598 7.32739 11.7598ZM13.0273 3.03256C12.4426 3.03256 11.9683 3.50609 11.9683 4.09072C11.9683 4.67534 12.4426 5.14887 13.0273 5.14887C13.6119 5.14887 14.0862 4.67534 14.0862 4.09072C14.0862 3.50609 13.6119 3.03256 13.0273 3.03256ZM13.0273 19.3962C12.4426 19.3962 11.9683 19.8697 11.9683 20.4543C11.9683 21.0389 12.4426 21.5125 13.0273 21.5125C13.6119 21.5125 14.0862 21.0389 14.0862 20.4543C14.0862 19.8697 13.6119 19.3962 13.0273 19.3962Z" fill={color} stroke="black" strokeWidth={0.479945} /></Svg>;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export default sAbi;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M11.9998 24.0001C18.6273 24.0001 24 18.6275 24 12C24 5.37259 18.6273 0 11.9998 0C7.96702 0 4.39884 1.98928 2.22306 5.0401H6.66327C7.19346 5.0401 7.62327 5.46991 7.62327 6.00011C7.62327 6.5303 7.19346 6.96011 6.66327 6.96011H1.10615C0.890889 7.4246 0.704462 7.90518 0.549166 8.39954H13.7222C14.2524 8.39954 14.6822 8.82935 14.6822 9.35954C14.6822 9.88974 14.2524 10.3195 13.7222 10.3195H0.116384C0.0432521 10.8414 0.00368631 11.374 -6.10352e-05 11.9152H4.6868C5.217 11.9152 5.64681 12.345 5.64681 12.8752C5.64681 13.4054 5.217 13.8352 4.6868 13.8352H0.139088C0.218896 14.3552 0.332089 14.8643 0.476412 15.3601H13.7222C14.2524 15.3601 14.6822 15.7899 14.6822 16.3201C14.6822 16.8503 14.2524 17.2801 13.7222 17.2801H1.2207C1.50445 17.8582 1.83335 18.4102 2.2028 18.9315H6.66327C7.19346 18.9315 7.62327 19.3613 7.62327 19.8915C7.62327 20.4217 7.19346 20.8515 6.66327 20.8515H3.89698C6.03192 22.8069 8.87653 24.0001 11.9998 24.0001ZM16.3582 17.2801C15.828 17.2801 15.3982 16.8503 15.3982 16.3201C15.3982 15.7899 15.828 15.3601 16.3582 15.3601C16.8884 15.3601 17.3182 15.7899 17.3182 16.3201C17.3182 16.8503 16.8884 17.2801 16.3582 17.2801ZM15.3982 9.35954C15.3982 9.88974 15.828 10.3195 16.3582 10.3195C16.8884 10.3195 17.3182 9.88974 17.3182 9.35954C17.3182 8.82935 16.8884 8.39954 16.3582 8.39954C15.828 8.39954 15.3982 8.82935 15.3982 9.35954ZM8.18797 19.8976C8.18797 20.4278 8.61779 20.8576 9.14798 20.8576C9.67818 20.8576 10.108 20.4278 10.108 19.8976C10.108 19.3674 9.67818 18.9376 9.14798 18.9376C8.61779 18.9376 8.18797 19.3674 8.18797 19.8976ZM9.14798 6.96011C8.61779 6.96011 8.18797 6.5303 8.18797 6.00011C8.18797 5.46991 8.61779 5.0401 9.14798 5.0401C9.67818 5.0401 10.108 5.46991 10.108 6.00011C10.108 6.5303 9.67818 6.96011 9.14798 6.96011ZM9.19027 12.8752C9.19027 13.4054 9.62007 13.8352 10.1503 13.8352H20.9473C21.4775 13.8352 21.9073 13.4054 21.9073 12.8752C21.9073 12.345 21.4775 11.9152 20.9473 11.9152H10.1503C9.62007 11.9152 9.19027 12.345 9.19027 12.8752ZM7.41153 13.8352C6.88133 13.8352 6.45151 13.4054 6.45151 12.8752C6.45151 12.345 6.88133 11.9152 7.41153 11.9152C7.94172 11.9152 8.37154 12.345 8.37154 12.8752C8.37154 13.4054 7.94172 13.8352 7.41153 13.8352Z" fill="black"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M11.9998 22.5602C17.832 22.5602 22.56 17.8323 22.56 12.0002C22.56 6.16806 17.832 1.44019 11.9998 1.44019C8.45097 1.44019 5.31097 3.19077 3.39628 5.8755H7.3037C7.77027 5.8755 8.1485 6.25373 8.1485 6.7203C8.1485 7.18687 7.77027 7.5651 7.3037 7.5651H2.41342C2.22398 7.97388 2.05992 8.39682 1.92325 8.83188H13.5155C13.9821 8.83188 14.3603 9.21011 14.3603 9.67668C14.3603 10.1433 13.9821 10.5215 13.5155 10.5215H1.54243C1.47808 10.9807 1.44326 11.4494 1.43997 11.9256H5.56439C6.03096 11.9256 6.40919 12.3039 6.40919 12.7704C6.40919 13.237 6.03096 13.6152 5.56439 13.6152H1.56244C1.63266 14.0728 1.73226 14.5207 1.85923 14.9569H13.5155C13.9821 14.9569 14.3603 15.3351 14.3603 15.8017C14.3603 16.2683 13.9821 16.6465 13.5155 16.6465H2.51418C2.76388 17.1553 3.05332 17.6411 3.37845 18.0998H7.3037C7.77027 18.0998 8.1485 18.478 8.1485 18.9446C8.1485 19.4112 7.77027 19.7894 7.3037 19.7894H4.86931C6.74806 21.5102 9.25133 22.5602 11.9998 22.5602ZM15.8352 16.6465C15.3686 16.6465 14.9904 16.2683 14.9904 15.8017C14.9904 15.3351 15.3686 14.9569 15.8352 14.9569C16.3018 14.9569 16.68 15.3351 16.68 15.8017C16.68 16.2683 16.3018 16.6465 15.8352 16.6465ZM14.9904 9.67668C14.9904 10.1433 15.3686 10.5215 15.8352 10.5215C16.3018 10.5215 16.68 10.1433 16.68 9.67668C16.68 9.21011 16.3018 8.83188 15.8352 8.83188C15.3686 8.83188 14.9904 9.21011 14.9904 9.67668ZM8.64542 18.9501C8.64542 19.4167 9.02366 19.7949 9.49024 19.7949C9.95681 19.7949 10.335 19.4167 10.335 18.9501C10.335 18.4836 9.95681 18.1053 9.49024 18.1053C9.02366 18.1053 8.64542 18.4836 8.64542 18.9501ZM9.49024 7.5651C9.02366 7.5651 8.64542 7.18687 8.64542 6.7203C8.64542 6.25373 9.02366 5.8755 9.49024 5.8755C9.95681 5.8755 10.335 6.25373 10.335 6.7203C10.335 7.18687 9.95681 7.5651 9.49024 7.5651ZM9.52746 12.7704C9.52746 13.237 9.90569 13.6152 10.3723 13.6152H19.8736C20.3402 13.6152 20.7184 13.237 20.7184 12.7704C20.7184 12.3039 20.3402 11.9256 19.8736 11.9256H10.3723C9.90569 11.9256 9.52746 12.3039 9.52746 12.7704ZM7.96212 13.6152C7.49555 13.6152 7.11731 13.237 7.11731 12.7704C7.11731 12.3039 7.49555 11.9256 7.96212 11.9256C8.42869 11.9256 8.80693 12.3039 8.80693 12.7704C8.80693 13.237 8.42869 13.6152 7.96212 13.6152Z" fill="black"/>
|
|
3
|
+
<path d="M23.76 12C23.76 18.4949 18.4949 23.76 12 23.76C5.50513 23.76 0.24 18.4949 0.24 12C0.24 5.50513 5.50513 0.24 12 0.24C18.4949 0.24 23.76 5.50513 23.76 12Z" stroke="black" stroke-width="0.48"/>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
2
|
+
<path d="M9.73023 3.03256H4.39147C6.44248 1.29059 9.0983 0.239972 12 0.239972C18.4949 0.239972 23.76 5.50513 23.76 12C23.76 18.4949 18.4949 23.7601 12 23.7601C9.41477 23.7601 7.02488 22.9262 5.0839 21.5125H9.73026C10.3147 21.5125 10.7884 21.0387 10.7884 20.4543C10.7884 19.8699 10.3147 19.3962 9.73026 19.3962H2.85637C2.43894 18.8808 2.06423 18.3294 1.7376 17.7475L13.3366 17.7474C13.921 17.7473 14.3948 17.2736 14.3948 16.6892C14.3948 16.1048 13.921 15.631 13.3366 15.631L0.811141 15.6312C0.627159 15.0639 0.485126 14.4776 0.388705 13.8761H4.09085C4.67525 13.8761 5.14901 13.4023 5.14901 12.8179C5.14901 12.2335 4.67525 11.7598 4.09085 11.7598H0.242316C0.258824 10.9357 0.360068 10.1326 0.537621 9.35883H13.3636C13.948 9.35883 14.4217 8.88508 14.4217 8.30068C14.4217 7.71628 13.948 7.24252 13.3636 7.24252H1.24191C1.57021 6.50126 1.97291 5.80022 2.44057 5.14887H9.73023C10.3146 5.14887 10.7884 4.67512 10.7884 4.09072C10.7884 3.50631 10.3146 3.03256 9.73023 3.03256ZM9.57811 12.8179C9.57811 13.4023 10.0519 13.8761 10.6363 13.8761H19.3636C19.948 13.8761 20.4217 13.4023 20.4217 12.8179C20.4217 12.2335 19.948 11.7598 19.3636 11.7598H10.6363C10.0519 11.7598 9.57811 12.2335 9.57811 12.8179ZM7.32739 11.7598C6.74277 11.7598 6.26844 12.2333 6.26844 12.8179C6.26844 13.4026 6.74277 13.8761 7.32739 13.8761C7.91201 13.8761 8.38634 13.4026 8.38634 12.8179C8.38634 12.2333 7.91201 11.7598 7.32739 11.7598ZM13.0273 3.03256C12.4426 3.03256 11.9683 3.50609 11.9683 4.09072C11.9683 4.67534 12.4426 5.14887 13.0273 5.14887C13.6119 5.14887 14.0862 4.67534 14.0862 4.09072C14.0862 3.50609 13.6119 3.03256 13.0273 3.03256ZM13.0273 19.3962C12.4426 19.3962 11.9683 19.8697 11.9683 20.4543C11.9683 21.0389 12.4426 21.5125 13.0273 21.5125C13.6119 21.5125 14.0862 21.0389 14.0862 20.4543C14.0862 19.8697 13.6119 19.3962 13.0273 19.3962Z" fill="white" stroke="black" stroke-width="0.479945"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { getCryptoCurrencyById } from "@ledgerhq/cryptoassets";
|
|
2
|
+
import axios from "axios";
|
|
3
|
+
import BigNumber from "bignumber.js";
|
|
4
|
+
import { mocked } from "ts-jest/utils";
|
|
5
|
+
import { Account, Transaction } from "../../types";
|
|
6
|
+
import getExchangeRates from "./getExchangeRates";
|
|
7
|
+
import { Exchange, ExchangeRate } from "./types";
|
|
8
|
+
|
|
9
|
+
jest.mock("axios");
|
|
10
|
+
const mockedAxios = mocked(axios);
|
|
11
|
+
|
|
12
|
+
const bitcoinCurrency = getCryptoCurrencyById("bitcoin");
|
|
13
|
+
const ethereumCurrency = getCryptoCurrencyById("ethereum");
|
|
14
|
+
|
|
15
|
+
const fromAccount: Account = {
|
|
16
|
+
type: "Account",
|
|
17
|
+
id: "TEST_ID",
|
|
18
|
+
seedIdentifier: "SEED_IDENTIFIER",
|
|
19
|
+
derivationMode: "",
|
|
20
|
+
index: 0,
|
|
21
|
+
freshAddress: "freshAddress",
|
|
22
|
+
freshAddressPath: "freshAddressPath",
|
|
23
|
+
freshAddresses: [],
|
|
24
|
+
name: "TEST_ACCOUNT",
|
|
25
|
+
starred: false,
|
|
26
|
+
used: false,
|
|
27
|
+
balance: new BigNumber(1000000),
|
|
28
|
+
spendableBalance: new BigNumber(1000000),
|
|
29
|
+
creationDate: new Date(),
|
|
30
|
+
blockHeight: 0,
|
|
31
|
+
currency: bitcoinCurrency,
|
|
32
|
+
unit: bitcoinCurrency.units[0],
|
|
33
|
+
operationsCount: 0,
|
|
34
|
+
operations: [],
|
|
35
|
+
pendingOperations: [],
|
|
36
|
+
lastSyncDate: new Date(),
|
|
37
|
+
balanceHistoryCache: {
|
|
38
|
+
HOUR: { latestDate: null, balances: [] },
|
|
39
|
+
DAY: { latestDate: null, balances: [] },
|
|
40
|
+
WEEK: { latestDate: null, balances: [] },
|
|
41
|
+
},
|
|
42
|
+
swapHistory: [],
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
const toAccount = {
|
|
46
|
+
...fromAccount,
|
|
47
|
+
currency: ethereumCurrency,
|
|
48
|
+
unit: ethereumCurrency.units[0],
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
const exchange: Exchange = {
|
|
52
|
+
fromAccount,
|
|
53
|
+
toAccount,
|
|
54
|
+
fromParentAccount: undefined,
|
|
55
|
+
toParentAccount: undefined,
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
const transaction: Transaction = {
|
|
59
|
+
amount: new BigNumber(10000),
|
|
60
|
+
recipient: "recipient",
|
|
61
|
+
family: "bitcoin",
|
|
62
|
+
utxoStrategy: {
|
|
63
|
+
strategy: 0,
|
|
64
|
+
pickUnconfirmedRBF: false,
|
|
65
|
+
excludeUTXOs: [],
|
|
66
|
+
},
|
|
67
|
+
rbf: true,
|
|
68
|
+
feePerByte: undefined,
|
|
69
|
+
networkInfo: undefined,
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
describe("swap/getExchangeRates", () => {
|
|
73
|
+
test("rate should be valid for 'fixed' trade method", async () => {
|
|
74
|
+
const tradeMethod: "fixed" | "float" = "fixed";
|
|
75
|
+
|
|
76
|
+
const data = [
|
|
77
|
+
{
|
|
78
|
+
provider: "changelly",
|
|
79
|
+
rateId: "RATE_ID",
|
|
80
|
+
from: "bitcoin",
|
|
81
|
+
to: "ethereum",
|
|
82
|
+
amountFrom: "0.005",
|
|
83
|
+
amountTo: "0.07",
|
|
84
|
+
rate: "14",
|
|
85
|
+
tradeMethod,
|
|
86
|
+
status: "success",
|
|
87
|
+
},
|
|
88
|
+
];
|
|
89
|
+
const resp = {
|
|
90
|
+
data,
|
|
91
|
+
status: 200,
|
|
92
|
+
statusText: "",
|
|
93
|
+
headers: {},
|
|
94
|
+
config: {},
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
mockedAxios.mockResolvedValue(Promise.resolve(resp));
|
|
98
|
+
const res = await getExchangeRates(exchange, transaction);
|
|
99
|
+
|
|
100
|
+
const expectedExchangeRate: ExchangeRate = {
|
|
101
|
+
magnitudeAwareRate: new BigNumber("140000000000"),
|
|
102
|
+
provider: data[0].provider,
|
|
103
|
+
rate: new BigNumber(data[0].rate),
|
|
104
|
+
rateId: data[0].rateId,
|
|
105
|
+
toAmount: new BigNumber("70000000000000000"),
|
|
106
|
+
tradeMethod: data[0].tradeMethod,
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
expect(res).toEqual([expectedExchangeRate]);
|
|
110
|
+
});
|
|
111
|
+
|
|
112
|
+
test("rate should be valid for 'float' trade method", async () => {
|
|
113
|
+
const tradeMethod: "fixed" | "float" = "float";
|
|
114
|
+
|
|
115
|
+
const data = [
|
|
116
|
+
{
|
|
117
|
+
provider: "changelly",
|
|
118
|
+
from: "bitcoin",
|
|
119
|
+
to: "ethereum",
|
|
120
|
+
amountFrom: "0.005",
|
|
121
|
+
amountTo: "0.07",
|
|
122
|
+
minAmountFrom: "0.0015",
|
|
123
|
+
maxAmountFrom: "1445",
|
|
124
|
+
payoutNetworkFees: "0.0030432000000000000000",
|
|
125
|
+
tradeMethod,
|
|
126
|
+
status: "success",
|
|
127
|
+
},
|
|
128
|
+
];
|
|
129
|
+
const resp = {
|
|
130
|
+
data,
|
|
131
|
+
status: 200,
|
|
132
|
+
statusText: "",
|
|
133
|
+
headers: {},
|
|
134
|
+
config: {},
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
mockedAxios.mockResolvedValue(Promise.resolve(resp));
|
|
138
|
+
const res = await getExchangeRates(exchange, transaction);
|
|
139
|
+
|
|
140
|
+
const expectedExchangeRate: ExchangeRate = {
|
|
141
|
+
magnitudeAwareRate: new BigNumber("133913600000"),
|
|
142
|
+
provider: data[0].provider,
|
|
143
|
+
rate: new BigNumber(13.39136),
|
|
144
|
+
toAmount: new BigNumber("66956800000000000"),
|
|
145
|
+
tradeMethod: data[0].tradeMethod,
|
|
146
|
+
payoutNetworkFees: new BigNumber("3043200000000000"),
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
expect(res).toEqual([expectedExchangeRate]);
|
|
150
|
+
});
|
|
151
|
+
});
|