@ledgerhq/live-common 22.0.3 → 22.1.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/lib/__tests__/families/bitcoin/wallet-btc/xpub.txs.dogecoin.test.d.ts +2 -0
- package/lib/__tests__/families/bitcoin/wallet-btc/xpub.txs.dogecoin.test.d.ts.map +1 -0
- package/lib/__tests__/families/bitcoin/wallet-btc/xpub.txs.dogecoin.test.js +147 -0
- package/lib/__tests__/families/bitcoin/wallet-btc/xpub.txs.dogecoin.test.js.map +1 -0
- package/lib/api/Ripple.d.ts +17 -21
- package/lib/api/Ripple.d.ts.map +1 -1
- package/lib/api/Ripple.js +117 -176
- package/lib/api/Ripple.js.map +1 -1
- package/lib/api/index.d.ts.map +1 -1
- package/lib/api/index.js +1 -5
- package/lib/api/index.js.map +1 -1
- package/lib/env.d.ts +6 -6
- package/lib/env.d.ts.map +1 -1
- package/lib/env.js +3 -3
- package/lib/env.js.map +1 -1
- package/lib/env.react.d.ts +1 -1
- package/lib/env.react.d.ts.map +1 -1
- package/lib/errors.d.ts +3 -0
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +2 -1
- package/lib/errors.js.map +1 -1
- package/lib/families/bitcoin/getAccountNetworkInfo.d.ts.map +1 -1
- package/lib/families/bitcoin/getAccountNetworkInfo.js +4 -2
- package/lib/families/bitcoin/getAccountNetworkInfo.js.map +1 -1
- package/lib/families/bitcoin/specs.d.ts.map +1 -1
- package/lib/families/bitcoin/specs.js +5 -2
- package/lib/families/bitcoin/specs.js.map +1 -1
- package/lib/families/bitcoin/wallet-btc/utils.d.ts +2 -0
- package/lib/families/bitcoin/wallet-btc/utils.d.ts.map +1 -1
- package/lib/families/bitcoin/wallet-btc/utils.js +9 -1
- package/lib/families/bitcoin/wallet-btc/utils.js.map +1 -1
- package/lib/families/bitcoin/wallet-btc/wallet.d.ts.map +1 -1
- package/lib/families/bitcoin/wallet-btc/wallet.js +11 -11
- package/lib/families/bitcoin/wallet-btc/wallet.js.map +1 -1
- package/lib/families/cosmos/js-prepareTransaction.d.ts.map +1 -1
- package/lib/families/cosmos/js-prepareTransaction.js +29 -5
- package/lib/families/cosmos/js-prepareTransaction.js.map +1 -1
- package/lib/families/cosmos/js-signOperation.d.ts.map +1 -1
- package/lib/families/cosmos/js-signOperation.js +76 -39
- package/lib/families/cosmos/js-signOperation.js.map +1 -1
- package/lib/families/cosmos/validators.js +1 -1
- package/lib/families/ripple/bridge/js.d.ts +2 -1
- package/lib/families/ripple/bridge/js.d.ts.map +1 -1
- package/lib/families/ripple/bridge/js.js +96 -466
- package/lib/families/ripple/bridge/js.js.map +1 -1
- package/lib/families/ripple/bridge.test.js +0 -48
- package/lib/families/ripple/bridge.test.js.map +1 -1
- package/lib/families/ripple/js-synchronization.d.ts +10 -0
- package/lib/families/ripple/js-synchronization.d.ts.map +1 -0
- package/lib/families/ripple/js-synchronization.js +156 -0
- package/lib/families/ripple/js-synchronization.js.map +1 -0
- package/lib/families/ripple/test-dataset.d.ts.map +1 -1
- package/lib/families/ripple/test-dataset.js +1 -1
- package/lib/families/ripple/test-dataset.js.map +1 -1
- package/lib/families/ripple/types.api.d.ts +24 -0
- package/lib/families/ripple/types.api.d.ts.map +1 -0
- package/lib/families/ripple/types.api.js +3 -0
- package/lib/families/ripple/types.api.js.map +1 -0
- package/lib/families/solana/api/chain/instruction/token/types.d.ts +3 -3
- package/lib/featureFlags/defaultFeatures.d.ts.map +1 -1
- package/lib/featureFlags/defaultFeatures.js +46 -0
- package/lib/featureFlags/defaultFeatures.js.map +1 -1
- package/lib/featureFlags/types.d.ts +2 -1
- package/lib/featureFlags/types.d.ts.map +1 -1
- package/lib/platform/providers/GlobalCatalogProvider/api/mock.json +0 -26
- package/lib/platform/providers/RemoteLiveAppProvider/api/mock.json +0 -63
- package/lib/types/nft.d.ts +1 -1
- package/lib/types/nft.d.ts.map +1 -1
- package/package.json +7 -7
- package/src/__tests__/families/bitcoin/wallet-btc/xpub.txs.dogecoin.test.ts +96 -0
- package/src/api/Ripple.ts +95 -160
- package/src/api/index.ts +0 -2
- package/src/currencies/__snapshots__/sortByMarketcap.test.ts.snap +47 -3
- package/src/env.ts +3 -3
- package/src/errors.ts +4 -0
- package/src/families/bitcoin/getAccountNetworkInfo.ts +4 -2
- package/src/families/bitcoin/specs.ts +4 -5
- package/src/families/bitcoin/wallet-btc/utils.ts +8 -0
- package/src/families/bitcoin/wallet-btc/wallet.ts +24 -12
- package/src/families/cosmos/__snapshots__/bridge.test.ts.snap +128 -7
- package/src/families/cosmos/js-prepareTransaction.ts +7 -5
- package/src/families/cosmos/js-signOperation.ts +54 -36
- package/src/families/cosmos/validators.ts +1 -1
- package/src/families/ripple/bridge/js.ts +89 -494
- package/src/families/ripple/bridge.test.ts +0 -6
- package/src/families/ripple/js-synchronization.ts +153 -0
- package/src/families/ripple/test-dataset.ts +2 -0
- package/src/families/ripple/types.api.ts +23 -0
- package/src/featureFlags/defaultFeatures.ts +47 -0
- package/src/featureFlags/types.ts +7 -1
- package/src/platform/providers/GlobalCatalogProvider/api/mock.json +0 -26
- package/src/platform/providers/RemoteLiveAppProvider/api/mock.json +0 -63
- package/src/types/nft.ts +1 -1
- package/src/.DS_Store +0 -0
- package/src/__tests__/.DS_Store +0 -0
|
@@ -684,6 +684,7 @@ Array [
|
|
|
684
684
|
"ethereum/erc20/mark",
|
|
685
685
|
"ethereum/erc20/flip_token",
|
|
686
686
|
"ethereum/erc20/team",
|
|
687
|
+
"polygon/erc20/ig_orb_(pos)",
|
|
687
688
|
"ethereum/erc20/syncfab_manufacturing",
|
|
688
689
|
"ethereum/erc20/niobium",
|
|
689
690
|
"ethereum/erc20/bob_s_repair",
|
|
@@ -716,7 +717,7 @@ Array [
|
|
|
716
717
|
"ethereum/erc20/coinus",
|
|
717
718
|
"ethereum/erc20/rating",
|
|
718
719
|
"ethereum/erc20/uptrennd",
|
|
719
|
-
"
|
|
720
|
+
"stacks",
|
|
720
721
|
"ethereum/erc20/smartshare_token",
|
|
721
722
|
"ethereum/erc20/fti",
|
|
722
723
|
"ethereum/erc20/neurochain_clausius",
|
|
@@ -1060,6 +1061,7 @@ Array [
|
|
|
1060
1061
|
"ethereum/erc20/bnc_token",
|
|
1061
1062
|
"ethereum/erc20/stakehouse_batch",
|
|
1062
1063
|
"ethereum/erc20/micromines",
|
|
1064
|
+
"ethereum/erc20/wrapped_luna_token",
|
|
1063
1065
|
"ethereum/erc20/tokendesk",
|
|
1064
1066
|
"akroma",
|
|
1065
1067
|
"ethereum/erc20/delta_financial_-_deep_defi_derivatives",
|
|
@@ -1351,7 +1353,6 @@ Array [
|
|
|
1351
1353
|
"songbird",
|
|
1352
1354
|
"reosc",
|
|
1353
1355
|
"resistance",
|
|
1354
|
-
"stacks",
|
|
1355
1356
|
"ethereum/erc20/$aapl",
|
|
1356
1357
|
"ethereum/erc20/$based",
|
|
1357
1358
|
"ethereum/erc20/$die",
|
|
@@ -1560,6 +1561,7 @@ Array [
|
|
|
1560
1561
|
"ethereum/erc20/ape_stax",
|
|
1561
1562
|
"ethereum/erc20/apebullinu",
|
|
1562
1563
|
"ethereum/erc20/apecoin",
|
|
1564
|
+
"ethereum/erc20/apecoin_dev",
|
|
1563
1565
|
"ethereum/erc20/apehaven",
|
|
1564
1566
|
"ethereum/erc20/apenft",
|
|
1565
1567
|
"ethereum/erc20/api3",
|
|
@@ -1805,6 +1807,7 @@ Array [
|
|
|
1805
1807
|
"ethereum/erc20/bitboost",
|
|
1806
1808
|
"ethereum/erc20/bitcar_token",
|
|
1807
1809
|
"ethereum/erc20/bitcashpay",
|
|
1810
|
+
"ethereum/erc20/bitcci_cash",
|
|
1808
1811
|
"ethereum/erc20/bitcloud_token",
|
|
1809
1812
|
"ethereum/erc20/bitcoin_boutique",
|
|
1810
1813
|
"ethereum/erc20/bitcoin_zero",
|
|
@@ -2017,6 +2020,7 @@ Array [
|
|
|
2017
2020
|
"ethereum/erc20/capital_finance",
|
|
2018
2021
|
"ethereum/erc20/capitalsharetoken",
|
|
2019
2022
|
"ethereum/erc20/capsule_coin",
|
|
2023
|
+
"ethereum/erc20/captain_inu",
|
|
2020
2024
|
"ethereum/erc20/car_coin",
|
|
2021
2025
|
"ethereum/erc20/car_sharing_community",
|
|
2022
2026
|
"ethereum/erc20/carbcoin",
|
|
@@ -2041,6 +2045,7 @@ Array [
|
|
|
2041
2045
|
"ethereum/erc20/cat__blockcat_",
|
|
2042
2046
|
"ethereum/erc20/cat_trade",
|
|
2043
2047
|
"ethereum/erc20/catcoin",
|
|
2048
|
+
"ethereum/erc20/catecoin",
|
|
2044
2049
|
"ethereum/erc20/cavapoo",
|
|
2045
2050
|
"ethereum/erc20/cavo",
|
|
2046
2051
|
"ethereum/erc20/cbdao",
|
|
@@ -2079,6 +2084,7 @@ Array [
|
|
|
2079
2084
|
"ethereum/erc20/cherry_token",
|
|
2080
2085
|
"ethereum/erc20/chi_gastoken_by_1inch",
|
|
2081
2086
|
"ethereum/erc20/chicken",
|
|
2087
|
+
"ethereum/erc20/chihiro_inu",
|
|
2082
2088
|
"ethereum/erc20/chihua_token",
|
|
2083
2089
|
"ethereum/erc20/chipz",
|
|
2084
2090
|
"ethereum/erc20/chonk",
|
|
@@ -2221,6 +2227,7 @@ Array [
|
|
|
2221
2227
|
"ethereum/erc20/creedtoken",
|
|
2222
2228
|
"ethereum/erc20/cremit",
|
|
2223
2229
|
"ethereum/erc20/crespo",
|
|
2230
|
+
"ethereum/erc20/creverse",
|
|
2224
2231
|
"ethereum/erc20/criptoro_coin",
|
|
2225
2232
|
"ethereum/erc20/cro",
|
|
2226
2233
|
"ethereum/erc20/crossfi",
|
|
@@ -2644,6 +2651,7 @@ Array [
|
|
|
2644
2651
|
"ethereum/erc20/enkronostoken",
|
|
2645
2652
|
"ethereum/erc20/enreachdao",
|
|
2646
2653
|
"ethereum/erc20/entanmo",
|
|
2654
|
+
"ethereum/erc20/enter_governance_token",
|
|
2647
2655
|
"ethereum/erc20/entone",
|
|
2648
2656
|
"ethereum/erc20/entropy",
|
|
2649
2657
|
"ethereum/erc20/envicoin",
|
|
@@ -2977,6 +2985,7 @@ Array [
|
|
|
2977
2985
|
"ethereum/erc20/gera",
|
|
2978
2986
|
"ethereum/erc20/gerowallet",
|
|
2979
2987
|
"ethereum/erc20/geyser",
|
|
2988
|
+
"ethereum/erc20/gg_token",
|
|
2980
2989
|
"ethereum/erc20/ggcoin",
|
|
2981
2990
|
"ethereum/erc20/ggtoken",
|
|
2982
2991
|
"ethereum/erc20/ghoul",
|
|
@@ -3059,6 +3068,7 @@ Array [
|
|
|
3059
3068
|
"ethereum/erc20/grearn's_token",
|
|
3060
3069
|
"ethereum/erc20/green",
|
|
3061
3070
|
"ethereum/erc20/green_light_erc20",
|
|
3071
|
+
"ethereum/erc20/green_metaverse_token",
|
|
3062
3072
|
"ethereum/erc20/green_token",
|
|
3063
3073
|
"ethereum/erc20/greenmed",
|
|
3064
3074
|
"ethereum/erc20/grey_token",
|
|
@@ -3140,6 +3150,7 @@ Array [
|
|
|
3140
3150
|
"ethereum/erc20/hiz_finance",
|
|
3141
3151
|
"ethereum/erc20/hkg",
|
|
3142
3152
|
"ethereum/erc20/hlandtoken",
|
|
3153
|
+
"ethereum/erc20/hmmm",
|
|
3143
3154
|
"ethereum/erc20/hoard_token",
|
|
3144
3155
|
"ethereum/erc20/hobonickels",
|
|
3145
3156
|
"ethereum/erc20/hodlcoin",
|
|
@@ -3448,6 +3459,7 @@ Array [
|
|
|
3448
3459
|
"ethereum/erc20/libartysharetoken",
|
|
3449
3460
|
"ethereum/erc20/libera",
|
|
3450
3461
|
"ethereum/erc20/libereum",
|
|
3462
|
+
"ethereum/erc20/libero_financial_freedom",
|
|
3451
3463
|
"ethereum/erc20/libertas",
|
|
3452
3464
|
"ethereum/erc20/libfx",
|
|
3453
3465
|
"ethereum/erc20/libratoken",
|
|
@@ -3518,6 +3530,7 @@ Array [
|
|
|
3518
3530
|
"ethereum/erc20/ludena_protocol",
|
|
3519
3531
|
"ethereum/erc20/ludos_protocol",
|
|
3520
3532
|
"ethereum/erc20/luffy_inu",
|
|
3533
|
+
"ethereum/erc20/lugh",
|
|
3521
3534
|
"ethereum/erc20/lulz",
|
|
3522
3535
|
"ethereum/erc20/lumino_coin",
|
|
3523
3536
|
"ethereum/erc20/lung_protocol",
|
|
@@ -3609,6 +3622,7 @@ Array [
|
|
|
3609
3622
|
"ethereum/erc20/metadium",
|
|
3610
3623
|
"ethereum/erc20/metafabric",
|
|
3611
3624
|
"ethereum/erc20/metafactory",
|
|
3625
|
+
"ethereum/erc20/metafluence",
|
|
3612
3626
|
"ethereum/erc20/metaverse_index",
|
|
3613
3627
|
"ethereum/erc20/metaverse_nft_index",
|
|
3614
3628
|
"ethereum/erc20/metawhale_btc",
|
|
@@ -3908,6 +3922,7 @@ Array [
|
|
|
3908
3922
|
"ethereum/erc20/orbicularv2",
|
|
3909
3923
|
"ethereum/erc20/orbit_chain",
|
|
3910
3924
|
"ethereum/erc20/orca_token",
|
|
3925
|
+
"ethereum/erc20/orica",
|
|
3911
3926
|
"ethereum/erc20/orient",
|
|
3912
3927
|
"ethereum/erc20/orientum_plus",
|
|
3913
3928
|
"ethereum/erc20/orion_protocol",
|
|
@@ -4182,6 +4197,7 @@ Array [
|
|
|
4182
4197
|
"ethereum/erc20/quannabu",
|
|
4183
4198
|
"ethereum/erc20/quantfury_data_token",
|
|
4184
4199
|
"ethereum/erc20/quantfury_token",
|
|
4200
|
+
"ethereum/erc20/quarashi",
|
|
4185
4201
|
"ethereum/erc20/quickmining_token",
|
|
4186
4202
|
"ethereum/erc20/quickswap",
|
|
4187
4203
|
"ethereum/erc20/quiverx",
|
|
@@ -4237,6 +4253,7 @@ Array [
|
|
|
4237
4253
|
"ethereum/erc20/reditoken",
|
|
4238
4254
|
"ethereum/erc20/reef_finance",
|
|
4239
4255
|
"ethereum/erc20/reeth_token",
|
|
4256
|
+
"ethereum/erc20/refi",
|
|
4240
4257
|
"ethereum/erc20/refine_medium_token",
|
|
4241
4258
|
"ethereum/erc20/reflect_finance",
|
|
4242
4259
|
"ethereum/erc20/reflector_finance",
|
|
@@ -4337,6 +4354,7 @@ Array [
|
|
|
4337
4354
|
"ethereum/erc20/safemoon_inu",
|
|
4338
4355
|
"ethereum/erc20/safemusk",
|
|
4339
4356
|
"ethereum/erc20/safeswap",
|
|
4357
|
+
"ethereum/erc20/safuu",
|
|
4340
4358
|
"ethereum/erc20/saitama_inu",
|
|
4341
4359
|
"ethereum/erc20/saito",
|
|
4342
4360
|
"ethereum/erc20/saja",
|
|
@@ -4364,6 +4382,7 @@ Array [
|
|
|
4364
4382
|
"ethereum/erc20/savetoken",
|
|
4365
4383
|
"ethereum/erc20/savix",
|
|
4366
4384
|
"ethereum/erc20/scaleswaptoken",
|
|
4385
|
+
"ethereum/erc20/scallop",
|
|
4367
4386
|
"ethereum/erc20/scandiweb_coin",
|
|
4368
4387
|
"ethereum/erc20/scatter_cx",
|
|
4369
4388
|
"ethereum/erc20/scdstoken",
|
|
@@ -4372,12 +4391,14 @@ Array [
|
|
|
4372
4391
|
"ethereum/erc20/scifitoken",
|
|
4373
4392
|
"ethereum/erc20/scoobi-doge",
|
|
4374
4393
|
"ethereum/erc20/scott",
|
|
4394
|
+
"ethereum/erc20/scratchtoken",
|
|
4375
4395
|
"ethereum/erc20/scrl",
|
|
4376
4396
|
"ethereum/erc20/sdog",
|
|
4377
4397
|
"ethereum/erc20/sea_cucumber_chain",
|
|
4378
4398
|
"ethereum/erc20/sealblock_token",
|
|
4379
4399
|
"ethereum/erc20/sechain",
|
|
4380
4400
|
"ethereum/erc20/secret_finance",
|
|
4401
|
+
"ethereum/erc20/sector",
|
|
4381
4402
|
"ethereum/erc20/secure_pad",
|
|
4382
4403
|
"ethereum/erc20/securypto",
|
|
4383
4404
|
"ethereum/erc20/seed",
|
|
@@ -4634,6 +4655,7 @@ Array [
|
|
|
4634
4655
|
"ethereum/erc20/store-of-value_token",
|
|
4635
4656
|
"ethereum/erc20/storh",
|
|
4636
4657
|
"ethereum/erc20/storichain",
|
|
4658
|
+
"ethereum/erc20/stoxtoken",
|
|
4637
4659
|
"ethereum/erc20/stpc",
|
|
4638
4660
|
"ethereum/erc20/strain",
|
|
4639
4661
|
"ethereum/erc20/stratos_token",
|
|
@@ -4644,6 +4666,7 @@ Array [
|
|
|
4644
4666
|
"ethereum/erc20/street_cred",
|
|
4645
4667
|
"ethereum/erc20/strike_token",
|
|
4646
4668
|
"ethereum/erc20/strikecoin_token",
|
|
4669
|
+
"ethereum/erc20/strikex",
|
|
4647
4670
|
"ethereum/erc20/strong",
|
|
4648
4671
|
"ethereum/erc20/stronghold",
|
|
4649
4672
|
"ethereum/erc20/strudel_finance",
|
|
@@ -4761,6 +4784,7 @@ Array [
|
|
|
4761
4784
|
"ethereum/erc20/taklimakan_network",
|
|
4762
4785
|
"ethereum/erc20/talao",
|
|
4763
4786
|
"ethereum/erc20/talent_coin",
|
|
4787
|
+
"ethereum/erc20/talkado",
|
|
4764
4788
|
"ethereum/erc20/tama_egg_niftygotchi",
|
|
4765
4789
|
"ethereum/erc20/tamy_token",
|
|
4766
4790
|
"ethereum/erc20/tangguotao_token",
|
|
@@ -4851,6 +4875,7 @@ Array [
|
|
|
4851
4875
|
"ethereum/erc20/tingles",
|
|
4852
4876
|
"ethereum/erc20/tinku",
|
|
4853
4877
|
"ethereum/erc20/tio",
|
|
4878
|
+
"ethereum/erc20/titano",
|
|
4854
4879
|
"ethereum/erc20/titanswap",
|
|
4855
4880
|
"ethereum/erc20/tixl_token",
|
|
4856
4881
|
"ethereum/erc20/tknt",
|
|
@@ -5232,7 +5257,6 @@ Array [
|
|
|
5232
5257
|
"ethereum/erc20/wrapped_ilcoin",
|
|
5233
5258
|
"ethereum/erc20/wrapped_leo",
|
|
5234
5259
|
"ethereum/erc20/wrapped_lotto_token",
|
|
5235
|
-
"ethereum/erc20/wrapped_luna_token",
|
|
5236
5260
|
"ethereum/erc20/wrapped_mir_token",
|
|
5237
5261
|
"ethereum/erc20/wrapped_mirror_aapl_token",
|
|
5238
5262
|
"ethereum/erc20/wrapped_mirror_amzn_token",
|
|
@@ -5614,6 +5638,7 @@ Array [
|
|
|
5614
5638
|
"polygon/erc20/gravity_finance",
|
|
5615
5639
|
"polygon/erc20/grumpy_cat",
|
|
5616
5640
|
"polygon/erc20/guaranteed_entrance_token",
|
|
5641
|
+
"polygon/erc20/guppy_treat_token",
|
|
5617
5642
|
"polygon/erc20/hashgard",
|
|
5618
5643
|
"polygon/erc20/hex",
|
|
5619
5644
|
"polygon/erc20/holotoken",
|
|
@@ -5626,6 +5651,10 @@ Array [
|
|
|
5626
5651
|
"polygon/erc20/injective_token",
|
|
5627
5652
|
"polygon/erc20/internxt",
|
|
5628
5653
|
"polygon/erc20/inverse",
|
|
5654
|
+
"polygon/erc20/invictus_bitcoin_alpha",
|
|
5655
|
+
"polygon/erc20/invictus_crypto10_hedged",
|
|
5656
|
+
"polygon/erc20/invictus_crypto20",
|
|
5657
|
+
"polygon/erc20/invictus_stable_growth",
|
|
5629
5658
|
"polygon/erc20/iron_finance_ice_token",
|
|
5630
5659
|
"polygon/erc20/iron_stablecoin",
|
|
5631
5660
|
"polygon/erc20/iron_titanium_token",
|
|
@@ -5657,6 +5686,7 @@ Array [
|
|
|
5657
5686
|
"polygon/erc20/moonwolf.io",
|
|
5658
5687
|
"polygon/erc20/mover",
|
|
5659
5688
|
"polygon/erc20/mysterium_(pos)",
|
|
5689
|
+
"polygon/erc20/nakamoto.games",
|
|
5660
5690
|
"polygon/erc20/napoleonx",
|
|
5661
5691
|
"polygon/erc20/neighbourhoods_token",
|
|
5662
5692
|
"polygon/erc20/neos_credits_(pos)",
|
|
@@ -5710,6 +5740,7 @@ Array [
|
|
|
5710
5740
|
"polygon/erc20/sand",
|
|
5711
5741
|
"polygon/erc20/sand_old",
|
|
5712
5742
|
"polygon/erc20/sapien_network",
|
|
5743
|
+
"polygon/erc20/sekuritance_(pos)",
|
|
5713
5744
|
"polygon/erc20/sentinel",
|
|
5714
5745
|
"polygon/erc20/serum",
|
|
5715
5746
|
"polygon/erc20/shopping.io",
|
|
@@ -5798,6 +5829,7 @@ Array [
|
|
|
5798
5829
|
"bsc/bep20/ariva",
|
|
5799
5830
|
"bsc/bep20/arpa_token",
|
|
5800
5831
|
"bsc/bep20/arrano",
|
|
5832
|
+
"bsc/bep20/aurox_token",
|
|
5801
5833
|
"bsc/bep20/autocrypto",
|
|
5802
5834
|
"bsc/bep20/automata",
|
|
5803
5835
|
"bsc/bep20/autov2",
|
|
@@ -5900,6 +5932,7 @@ Array [
|
|
|
5900
5932
|
"bsc/bep20/car",
|
|
5901
5933
|
"bsc/bep20/cartesi_token",
|
|
5902
5934
|
"bsc/bep20/catecoin",
|
|
5935
|
+
"bsc/bep20/catecoin_old",
|
|
5903
5936
|
"bsc/bep20/ceek",
|
|
5904
5937
|
"bsc/bep20/cerby_token",
|
|
5905
5938
|
"bsc/bep20/certik_token",
|
|
@@ -5970,6 +6003,7 @@ Array [
|
|
|
5970
6003
|
"bsc/bep20/fantom",
|
|
5971
6004
|
"bsc/bep20/faracrystal",
|
|
5972
6005
|
"bsc/bep20/fegtoken",
|
|
6006
|
+
"bsc/bep20/ferrum_network_token",
|
|
5973
6007
|
"bsc/bep20/finnexus",
|
|
5974
6008
|
"bsc/bep20/firo",
|
|
5975
6009
|
"bsc/bep20/flashx_ultra",
|
|
@@ -5978,6 +6012,7 @@ Array [
|
|
|
5978
6012
|
"bsc/bep20/flokimooni",
|
|
5979
6013
|
"bsc/bep20/formation_finance",
|
|
5980
6014
|
"bsc/bep20/free_coin_bsc",
|
|
6015
|
+
"bsc/bep20/frmx_token",
|
|
5981
6016
|
"bsc/bep20/frontier_token",
|
|
5982
6017
|
"bsc/bep20/fry.ketchupv2",
|
|
5983
6018
|
"bsc/bep20/fry.world",
|
|
@@ -5988,12 +6023,14 @@ Array [
|
|
|
5988
6023
|
"bsc/bep20/gamyfi",
|
|
5989
6024
|
"bsc/bep20/genta",
|
|
5990
6025
|
"bsc/bep20/gforce",
|
|
6026
|
+
"bsc/bep20/gg_token",
|
|
5991
6027
|
"bsc/bep20/gomining_token",
|
|
5992
6028
|
"bsc/bep20/goose_coin",
|
|
5993
6029
|
"bsc/bep20/goose_golden_egg",
|
|
5994
6030
|
"bsc/bep20/gorilladiamond",
|
|
5995
6031
|
"bsc/bep20/goswapp",
|
|
5996
6032
|
"bsc/bep20/gourmetgalaxy",
|
|
6033
|
+
"bsc/bep20/green_metaverse_token",
|
|
5997
6034
|
"bsc/bep20/gummy_bull_token",
|
|
5998
6035
|
"bsc/bep20/hacken_token",
|
|
5999
6036
|
"bsc/bep20/hakka_finance_on_xdai_on_bsc",
|
|
@@ -6048,6 +6085,7 @@ Array [
|
|
|
6048
6085
|
"bsc/bep20/mcontent",
|
|
6049
6086
|
"bsc/bep20/measurable_data_token",
|
|
6050
6087
|
"bsc/bep20/mercor_token",
|
|
6088
|
+
"bsc/bep20/metafluence",
|
|
6051
6089
|
"bsc/bep20/metahero",
|
|
6052
6090
|
"bsc/bep20/micropets",
|
|
6053
6091
|
"bsc/bep20/milk_protocol",
|
|
@@ -6085,6 +6123,7 @@ Array [
|
|
|
6085
6123
|
"bsc/bep20/open_governance_token",
|
|
6086
6124
|
"bsc/bep20/orbs",
|
|
6087
6125
|
"bsc/bep20/oreo",
|
|
6126
|
+
"bsc/bep20/orica",
|
|
6088
6127
|
"bsc/bep20/ovr",
|
|
6089
6128
|
"bsc/bep20/paid_network",
|
|
6090
6129
|
"bsc/bep20/pancakeswap_token",
|
|
@@ -6117,6 +6156,7 @@ Array [
|
|
|
6117
6156
|
"bsc/bep20/puli_inu",
|
|
6118
6157
|
"bsc/bep20/qian_governance_token",
|
|
6119
6158
|
"bsc/bep20/qian_second_generation_dollar",
|
|
6159
|
+
"bsc/bep20/quarashi",
|
|
6120
6160
|
"bsc/bep20/quarkchain_token",
|
|
6121
6161
|
"bsc/bep20/qusd_stablecoin",
|
|
6122
6162
|
"bsc/bep20/rabbit_coin",
|
|
@@ -6142,6 +6182,8 @@ Array [
|
|
|
6142
6182
|
"bsc/bep20/safepal_token",
|
|
6143
6183
|
"bsc/bep20/safuu",
|
|
6144
6184
|
"bsc/bep20/saketoken",
|
|
6185
|
+
"bsc/bep20/scallop",
|
|
6186
|
+
"bsc/bep20/sector",
|
|
6145
6187
|
"bsc/bep20/seedifyfund",
|
|
6146
6188
|
"bsc/bep20/seven_up_token",
|
|
6147
6189
|
"bsc/bep20/shambala",
|
|
@@ -6175,6 +6217,7 @@ Array [
|
|
|
6175
6217
|
"bsc/bep20/swipe",
|
|
6176
6218
|
"bsc/bep20/switcheo_token",
|
|
6177
6219
|
"bsc/bep20/taco",
|
|
6220
|
+
"bsc/bep20/talkado",
|
|
6178
6221
|
"bsc/bep20/tbitcoin",
|
|
6179
6222
|
"bsc/bep20/tdogecoin",
|
|
6180
6223
|
"bsc/bep20/tenet",
|
|
@@ -6232,6 +6275,7 @@ Array [
|
|
|
6232
6275
|
"bsc/bep20/venus_xrp",
|
|
6233
6276
|
"bsc/bep20/venus_xvs",
|
|
6234
6277
|
"bsc/bep20/vfox",
|
|
6278
|
+
"bsc/bep20/volt_inu",
|
|
6235
6279
|
"bsc/bep20/vswap.fi",
|
|
6236
6280
|
"bsc/bep20/wall_street_games",
|
|
6237
6281
|
"bsc/bep20/wanaka_farm",
|
package/src/env.ts
CHANGED
|
@@ -70,10 +70,10 @@ const envDefinitions = {
|
|
|
70
70
|
parser: stringParser,
|
|
71
71
|
desc: "Node API to use for cosmos_testnet (COSMOS_NODE or STARGATE_NODE are known)",
|
|
72
72
|
},
|
|
73
|
-
|
|
73
|
+
API_RIPPLE_RPC: {
|
|
74
74
|
parser: stringParser,
|
|
75
|
-
def: "
|
|
76
|
-
desc: "XRP Ledger full history open
|
|
75
|
+
def: "https://xrplcluster.com/ledgerlive",
|
|
76
|
+
desc: "XRP Ledger full history open JSON-RPC endpoint",
|
|
77
77
|
},
|
|
78
78
|
API_FILECOIN_ENDPOINT: {
|
|
79
79
|
parser: stringParser,
|
package/src/errors.ts
CHANGED
|
@@ -205,6 +205,10 @@ export const FreshAddressIndexInvalid = createCustomErrorClass(
|
|
|
205
205
|
"FreshAddressIndexInvalid"
|
|
206
206
|
);
|
|
207
207
|
|
|
208
|
+
export const BluetoothNotSupportedError = createCustomErrorClass(
|
|
209
|
+
"FwUpdateBluetoothNotSupported"
|
|
210
|
+
);
|
|
211
|
+
|
|
208
212
|
export const UnsupportedDerivation = createCustomErrorClass(
|
|
209
213
|
"UnsupportedDerivation"
|
|
210
214
|
);
|
|
@@ -47,10 +47,12 @@ export async function getAccountNetworkInfo(
|
|
|
47
47
|
}
|
|
48
48
|
// Fix fees if suggested fee is too low, this is only for viacoin/decred because the fees backend endpoint is broken
|
|
49
49
|
if (
|
|
50
|
-
(account.currency.id === "viacoin" ||
|
|
50
|
+
(account.currency.id === "viacoin" ||
|
|
51
|
+
account.currency.id === "decred" ||
|
|
52
|
+
account.currency.id === "qtum") &&
|
|
51
53
|
feesPerByte[2].toNumber() < Math.ceil(relayFee * 100000)
|
|
52
54
|
) {
|
|
53
|
-
feesPerByte[2] = new BigNumber(Math.ceil(relayFee * 100000)).plus(
|
|
55
|
+
feesPerByte[2] = new BigNumber(Math.ceil(relayFee * 100000)).plus(2);
|
|
54
56
|
feesPerByte[1] = feesPerByte[2].plus(1);
|
|
55
57
|
if (feesPerByte[1].plus(1).gt(feesPerByte[0])) {
|
|
56
58
|
feesPerByte[0] = feesPerByte[1].plus(1);
|
|
@@ -10,11 +10,7 @@ import { pickSiblings } from "../../bot/specs";
|
|
|
10
10
|
import { bitcoinPickingStrategy } from "./types";
|
|
11
11
|
import type { MutationSpec, AppSpec } from "../../bot/types";
|
|
12
12
|
import { LowerThanMinimumRelayFee } from "../../errors";
|
|
13
|
-
import {
|
|
14
|
-
getMinRelayFee,
|
|
15
|
-
getUTXOStatus,
|
|
16
|
-
bchToCashaddrAddressWithoutPrefix,
|
|
17
|
-
} from "./logic";
|
|
13
|
+
import { getMinRelayFee, getUTXOStatus } from "./logic";
|
|
18
14
|
import { DeviceModelId } from "@ledgerhq/devices";
|
|
19
15
|
type Arg = Partial<{
|
|
20
16
|
minimalAmount: BigNumber;
|
|
@@ -316,6 +312,9 @@ const bitcoinGold: AppSpec<Transaction> = {
|
|
|
316
312
|
mutations: bitcoinLikeMutations(),
|
|
317
313
|
};
|
|
318
314
|
|
|
315
|
+
const bchToCashaddrAddressWithoutPrefix = (recipient) =>
|
|
316
|
+
bchaddrjs.toCashAddress(recipient).split(":")[1];
|
|
317
|
+
|
|
319
318
|
const bitcoinCash: AppSpec<Transaction> = {
|
|
320
319
|
name: "Bitcoin Cash",
|
|
321
320
|
currency: getCryptoCurrencyById("bitcoin_cash"),
|
|
@@ -7,6 +7,7 @@ import { Currency, ICrypto } from "./crypto/types";
|
|
|
7
7
|
import cryptoFactory from "./crypto/factory";
|
|
8
8
|
import { fallbackValidateAddress } from "./crypto/base";
|
|
9
9
|
import { UnsupportedDerivation } from "../../../errors";
|
|
10
|
+
import varuint from "varuint-bitcoin";
|
|
10
11
|
|
|
11
12
|
export function parseHexString(str: any) {
|
|
12
13
|
const result: Array<number> = [];
|
|
@@ -261,3 +262,10 @@ export function isTaprootAddress(address: string, currency?: Currency) {
|
|
|
261
262
|
return false;
|
|
262
263
|
}
|
|
263
264
|
}
|
|
265
|
+
|
|
266
|
+
export function writeVarInt(buffer: Buffer, i: number, offset: number) {
|
|
267
|
+
// refer to https://github.com/bitcoinjs/bitcoinjs-lib/blob/1f44f722d30cd14a1861c8546e6b455f73862c1e/src/bufferutils.js#L78
|
|
268
|
+
varuint.encode(i, buffer, offset);
|
|
269
|
+
offset += varuint.encode.bytes;
|
|
270
|
+
return offset;
|
|
271
|
+
}
|
|
@@ -2,15 +2,10 @@
|
|
|
2
2
|
// @ts-ignore
|
|
3
3
|
import { flatten } from "lodash";
|
|
4
4
|
import BigNumber from "bignumber.js";
|
|
5
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
6
|
-
// @ts-ignore
|
|
7
|
-
import { BufferWriter } from "bitcoinjs-lib/src/bufferutils";
|
|
8
|
-
|
|
9
5
|
import Btc from "@ledgerhq/hw-app-btc";
|
|
10
6
|
import { log } from "@ledgerhq/logs";
|
|
11
7
|
import { Transaction } from "@ledgerhq/hw-app-btc/lib/types";
|
|
12
8
|
import { Currency } from "./crypto/types";
|
|
13
|
-
|
|
14
9
|
import { TransactionInfo, DerivationModes } from "./types";
|
|
15
10
|
import { Account, SerializedAccount } from "./account";
|
|
16
11
|
import Xpub from "./xpub";
|
|
@@ -246,16 +241,33 @@ class BitcoinLikeWallet {
|
|
|
246
241
|
length += 2 * txInfo.outputs.length;
|
|
247
242
|
}
|
|
248
243
|
const buffer = Buffer.allocUnsafe(length);
|
|
249
|
-
|
|
250
|
-
|
|
244
|
+
let bufferOffset = 0;
|
|
245
|
+
bufferOffset = utils.writeVarInt(
|
|
246
|
+
buffer,
|
|
247
|
+
txInfo.outputs.length,
|
|
248
|
+
bufferOffset
|
|
249
|
+
);
|
|
251
250
|
txInfo.outputs.forEach((txOut) => {
|
|
252
|
-
//
|
|
253
|
-
|
|
251
|
+
// refer to https://github.com/bitcoinjs/bitcoinjs-lib/blob/59b21162a2c4645c64271ca004c7a3755a3d72fb/ts_src/bufferutils.ts#L26
|
|
252
|
+
buffer.writeUInt32LE(
|
|
253
|
+
txOut.value.modulo(new BigNumber(0x100000000)).toNumber(),
|
|
254
|
+
bufferOffset
|
|
255
|
+
);
|
|
256
|
+
buffer.writeUInt32LE(
|
|
257
|
+
txOut.value.dividedToIntegerBy(new BigNumber(0x100000000)).toNumber(),
|
|
258
|
+
bufferOffset + 4
|
|
259
|
+
);
|
|
260
|
+
bufferOffset += 8;
|
|
254
261
|
if (additionals && additionals.includes("decred")) {
|
|
255
|
-
|
|
256
|
-
|
|
262
|
+
bufferOffset = utils.writeVarInt(buffer, 0, bufferOffset);
|
|
263
|
+
bufferOffset = utils.writeVarInt(buffer, 0, bufferOffset);
|
|
257
264
|
}
|
|
258
|
-
|
|
265
|
+
bufferOffset = utils.writeVarInt(
|
|
266
|
+
buffer,
|
|
267
|
+
txOut.script.length,
|
|
268
|
+
bufferOffset
|
|
269
|
+
);
|
|
270
|
+
bufferOffset += txOut.script.copy(buffer, bufferOffset);
|
|
259
271
|
});
|
|
260
272
|
const outputScriptHex = buffer.toString("hex");
|
|
261
273
|
const associatedKeysets = txInfo.associatedDerivations.map(
|