@sodax/wallet-sdk-core 2.0.0-rc.15 → 2.0.0-rc.17
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 +22 -0
- package/dist/index.mjs +22 -0
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -2427,6 +2427,8 @@ var RelayChainIdMap = {
|
|
|
2427
2427
|
[ChainKeys.STACKS_MAINNET]: 60n
|
|
2428
2428
|
};
|
|
2429
2429
|
Object.fromEntries(Object.entries(RelayChainIdMap).map(([chainKey, chainId]) => [chainId, chainKey]));
|
|
2430
|
+
var CHAIN_LOGO_BASE_URL = "https://raw.githubusercontent.com/icon-project/sodax-sdks/main/packages/assets/chain";
|
|
2431
|
+
var chainLogo = (key) => `${CHAIN_LOGO_BASE_URL}/${key}.png`;
|
|
2430
2432
|
var baseChainInfo = {
|
|
2431
2433
|
[ChainKeys.SONIC_MAINNET]: {
|
|
2432
2434
|
name: "Sonic",
|
|
@@ -2434,6 +2436,7 @@ var baseChainInfo = {
|
|
|
2434
2436
|
type: "EVM",
|
|
2435
2437
|
chainId: 146,
|
|
2436
2438
|
mainnet: true,
|
|
2439
|
+
logo: chainLogo(ChainKeys.SONIC_MAINNET),
|
|
2437
2440
|
explorer: {
|
|
2438
2441
|
baseUrl: "https://sonicscan.org/",
|
|
2439
2442
|
txUrl: "https://sonicscan.org/tx/",
|
|
@@ -2447,6 +2450,7 @@ var baseChainInfo = {
|
|
|
2447
2450
|
type: "SOLANA",
|
|
2448
2451
|
chainId: "solana",
|
|
2449
2452
|
mainnet: true,
|
|
2453
|
+
logo: chainLogo(ChainKeys.SOLANA_MAINNET),
|
|
2450
2454
|
explorer: {
|
|
2451
2455
|
baseUrl: "https://solscan.io/",
|
|
2452
2456
|
txUrl: "https://solscan.io/tx/",
|
|
@@ -2460,6 +2464,7 @@ var baseChainInfo = {
|
|
|
2460
2464
|
type: "EVM",
|
|
2461
2465
|
chainId: 43114,
|
|
2462
2466
|
mainnet: true,
|
|
2467
|
+
logo: chainLogo(ChainKeys.AVALANCHE_MAINNET),
|
|
2463
2468
|
explorer: {
|
|
2464
2469
|
baseUrl: "https://snowtrace.io/",
|
|
2465
2470
|
txUrl: "https://snowtrace.io/tx/",
|
|
@@ -2473,6 +2478,7 @@ var baseChainInfo = {
|
|
|
2473
2478
|
type: "EVM",
|
|
2474
2479
|
chainId: 42161,
|
|
2475
2480
|
mainnet: true,
|
|
2481
|
+
logo: chainLogo(ChainKeys.ARBITRUM_MAINNET),
|
|
2476
2482
|
explorer: {
|
|
2477
2483
|
baseUrl: "https://arbiscan.io/",
|
|
2478
2484
|
txUrl: "https://arbiscan.io/tx/",
|
|
@@ -2486,6 +2492,7 @@ var baseChainInfo = {
|
|
|
2486
2492
|
type: "EVM",
|
|
2487
2493
|
chainId: 8453,
|
|
2488
2494
|
mainnet: true,
|
|
2495
|
+
logo: chainLogo(ChainKeys.BASE_MAINNET),
|
|
2489
2496
|
explorer: {
|
|
2490
2497
|
baseUrl: "https://basescan.org/",
|
|
2491
2498
|
txUrl: "https://basescan.org/tx/",
|
|
@@ -2499,6 +2506,7 @@ var baseChainInfo = {
|
|
|
2499
2506
|
type: "EVM",
|
|
2500
2507
|
chainId: 10,
|
|
2501
2508
|
mainnet: true,
|
|
2509
|
+
logo: chainLogo(ChainKeys.OPTIMISM_MAINNET),
|
|
2502
2510
|
explorer: {
|
|
2503
2511
|
baseUrl: "https://optimistic.etherscan.io/",
|
|
2504
2512
|
txUrl: "https://optimistic.etherscan.io/tx/",
|
|
@@ -2512,6 +2520,7 @@ var baseChainInfo = {
|
|
|
2512
2520
|
type: "EVM",
|
|
2513
2521
|
chainId: 56,
|
|
2514
2522
|
mainnet: true,
|
|
2523
|
+
logo: chainLogo(ChainKeys.BSC_MAINNET),
|
|
2515
2524
|
explorer: {
|
|
2516
2525
|
baseUrl: "https://bscscan.com/",
|
|
2517
2526
|
txUrl: "https://bscscan.com/tx/",
|
|
@@ -2525,6 +2534,7 @@ var baseChainInfo = {
|
|
|
2525
2534
|
type: "EVM",
|
|
2526
2535
|
chainId: 137,
|
|
2527
2536
|
mainnet: true,
|
|
2537
|
+
logo: chainLogo(ChainKeys.POLYGON_MAINNET),
|
|
2528
2538
|
explorer: {
|
|
2529
2539
|
baseUrl: "https://polygonscan.com/",
|
|
2530
2540
|
txUrl: "https://polygonscan.com/tx/",
|
|
@@ -2538,6 +2548,7 @@ var baseChainInfo = {
|
|
|
2538
2548
|
type: "EVM",
|
|
2539
2549
|
chainId: 999,
|
|
2540
2550
|
mainnet: true,
|
|
2551
|
+
logo: chainLogo(ChainKeys.HYPEREVM_MAINNET),
|
|
2541
2552
|
explorer: {
|
|
2542
2553
|
baseUrl: "https://hyperevmscan.io/",
|
|
2543
2554
|
txUrl: "https://hyperevmscan.io/tx/",
|
|
@@ -2551,6 +2562,7 @@ var baseChainInfo = {
|
|
|
2551
2562
|
type: "EVM",
|
|
2552
2563
|
chainId: 1890,
|
|
2553
2564
|
mainnet: true,
|
|
2565
|
+
logo: chainLogo(ChainKeys.LIGHTLINK_MAINNET),
|
|
2554
2566
|
explorer: {
|
|
2555
2567
|
baseUrl: "https://phoenix.lightlink.io/",
|
|
2556
2568
|
txUrl: "https://phoenix.lightlink.io/tx/",
|
|
@@ -2564,6 +2576,7 @@ var baseChainInfo = {
|
|
|
2564
2576
|
type: "INJECTIVE",
|
|
2565
2577
|
chainId: "injective-1",
|
|
2566
2578
|
mainnet: true,
|
|
2579
|
+
logo: chainLogo(ChainKeys.INJECTIVE_MAINNET),
|
|
2567
2580
|
explorer: {
|
|
2568
2581
|
baseUrl: "https://www.mintscan.io/injective/",
|
|
2569
2582
|
txUrl: "https://www.mintscan.io/injective/tx/",
|
|
@@ -2577,6 +2590,7 @@ var baseChainInfo = {
|
|
|
2577
2590
|
type: "STELLAR",
|
|
2578
2591
|
chainId: "stellar",
|
|
2579
2592
|
mainnet: true,
|
|
2593
|
+
logo: chainLogo(ChainKeys.STELLAR_MAINNET),
|
|
2580
2594
|
explorer: {
|
|
2581
2595
|
baseUrl: "https://stellar.expert/explorer/public/",
|
|
2582
2596
|
txUrl: "https://stellar.expert/explorer/public/tx/",
|
|
@@ -2590,6 +2604,7 @@ var baseChainInfo = {
|
|
|
2590
2604
|
type: "SUI",
|
|
2591
2605
|
chainId: "sui",
|
|
2592
2606
|
mainnet: true,
|
|
2607
|
+
logo: chainLogo(ChainKeys.SUI_MAINNET),
|
|
2593
2608
|
explorer: {
|
|
2594
2609
|
baseUrl: "https://suivision.xyz/",
|
|
2595
2610
|
txUrl: "https://suivision.xyz/txblock/",
|
|
@@ -2603,6 +2618,7 @@ var baseChainInfo = {
|
|
|
2603
2618
|
type: "ICON",
|
|
2604
2619
|
chainId: "0x1.icon",
|
|
2605
2620
|
mainnet: true,
|
|
2621
|
+
logo: chainLogo(ChainKeys.ICON_MAINNET),
|
|
2606
2622
|
explorer: {
|
|
2607
2623
|
baseUrl: "https://tracker.icon.community/",
|
|
2608
2624
|
txUrl: "https://tracker.icon.community/transaction/",
|
|
@@ -2616,6 +2632,7 @@ var baseChainInfo = {
|
|
|
2616
2632
|
type: "NEAR",
|
|
2617
2633
|
chainId: "near",
|
|
2618
2634
|
mainnet: true,
|
|
2635
|
+
logo: chainLogo(ChainKeys.NEAR_MAINNET),
|
|
2619
2636
|
explorer: {
|
|
2620
2637
|
baseUrl: "https://nearblocks.io/",
|
|
2621
2638
|
txUrl: "https://nearblocks.io/txns/",
|
|
@@ -2629,6 +2646,7 @@ var baseChainInfo = {
|
|
|
2629
2646
|
type: "EVM",
|
|
2630
2647
|
chainId: 1,
|
|
2631
2648
|
mainnet: true,
|
|
2649
|
+
logo: chainLogo(ChainKeys.ETHEREUM_MAINNET),
|
|
2632
2650
|
explorer: {
|
|
2633
2651
|
baseUrl: "https://etherscan.io/",
|
|
2634
2652
|
txUrl: "https://etherscan.io/tx/",
|
|
@@ -2642,6 +2660,7 @@ var baseChainInfo = {
|
|
|
2642
2660
|
type: "BITCOIN",
|
|
2643
2661
|
chainId: "bitcoin",
|
|
2644
2662
|
mainnet: true,
|
|
2663
|
+
logo: chainLogo(ChainKeys.BITCOIN_MAINNET),
|
|
2645
2664
|
explorer: {
|
|
2646
2665
|
baseUrl: "https://mempool.space/",
|
|
2647
2666
|
txUrl: "https://mempool.space/tx/",
|
|
@@ -2655,6 +2674,7 @@ var baseChainInfo = {
|
|
|
2655
2674
|
type: "EVM",
|
|
2656
2675
|
chainId: 151,
|
|
2657
2676
|
mainnet: true,
|
|
2677
|
+
logo: chainLogo(ChainKeys.REDBELLY_MAINNET),
|
|
2658
2678
|
explorer: {
|
|
2659
2679
|
baseUrl: "https://redbelly.routescan.io/",
|
|
2660
2680
|
txUrl: "https://redbelly.routescan.io/tx/",
|
|
@@ -2668,6 +2688,7 @@ var baseChainInfo = {
|
|
|
2668
2688
|
type: "EVM",
|
|
2669
2689
|
chainId: 8217,
|
|
2670
2690
|
mainnet: true,
|
|
2691
|
+
logo: chainLogo(ChainKeys.KAIA_MAINNET),
|
|
2671
2692
|
explorer: {
|
|
2672
2693
|
baseUrl: "https://klaytnfinder.io/",
|
|
2673
2694
|
txUrl: "https://klaytnfinder.io/tx/",
|
|
@@ -2681,6 +2702,7 @@ var baseChainInfo = {
|
|
|
2681
2702
|
type: "STACKS",
|
|
2682
2703
|
chainId: "stacks",
|
|
2683
2704
|
mainnet: true,
|
|
2705
|
+
logo: chainLogo(ChainKeys.STACKS_MAINNET),
|
|
2684
2706
|
explorer: {
|
|
2685
2707
|
baseUrl: "https://explorer.hiro.so/",
|
|
2686
2708
|
txUrl: "https://explorer.hiro.so/txid/",
|
package/dist/index.mjs
CHANGED
|
@@ -2401,6 +2401,8 @@ var RelayChainIdMap = {
|
|
|
2401
2401
|
[ChainKeys.STACKS_MAINNET]: 60n
|
|
2402
2402
|
};
|
|
2403
2403
|
Object.fromEntries(Object.entries(RelayChainIdMap).map(([chainKey, chainId]) => [chainId, chainKey]));
|
|
2404
|
+
var CHAIN_LOGO_BASE_URL = "https://raw.githubusercontent.com/icon-project/sodax-sdks/main/packages/assets/chain";
|
|
2405
|
+
var chainLogo = (key) => `${CHAIN_LOGO_BASE_URL}/${key}.png`;
|
|
2404
2406
|
var baseChainInfo = {
|
|
2405
2407
|
[ChainKeys.SONIC_MAINNET]: {
|
|
2406
2408
|
name: "Sonic",
|
|
@@ -2408,6 +2410,7 @@ var baseChainInfo = {
|
|
|
2408
2410
|
type: "EVM",
|
|
2409
2411
|
chainId: 146,
|
|
2410
2412
|
mainnet: true,
|
|
2413
|
+
logo: chainLogo(ChainKeys.SONIC_MAINNET),
|
|
2411
2414
|
explorer: {
|
|
2412
2415
|
baseUrl: "https://sonicscan.org/",
|
|
2413
2416
|
txUrl: "https://sonicscan.org/tx/",
|
|
@@ -2421,6 +2424,7 @@ var baseChainInfo = {
|
|
|
2421
2424
|
type: "SOLANA",
|
|
2422
2425
|
chainId: "solana",
|
|
2423
2426
|
mainnet: true,
|
|
2427
|
+
logo: chainLogo(ChainKeys.SOLANA_MAINNET),
|
|
2424
2428
|
explorer: {
|
|
2425
2429
|
baseUrl: "https://solscan.io/",
|
|
2426
2430
|
txUrl: "https://solscan.io/tx/",
|
|
@@ -2434,6 +2438,7 @@ var baseChainInfo = {
|
|
|
2434
2438
|
type: "EVM",
|
|
2435
2439
|
chainId: 43114,
|
|
2436
2440
|
mainnet: true,
|
|
2441
|
+
logo: chainLogo(ChainKeys.AVALANCHE_MAINNET),
|
|
2437
2442
|
explorer: {
|
|
2438
2443
|
baseUrl: "https://snowtrace.io/",
|
|
2439
2444
|
txUrl: "https://snowtrace.io/tx/",
|
|
@@ -2447,6 +2452,7 @@ var baseChainInfo = {
|
|
|
2447
2452
|
type: "EVM",
|
|
2448
2453
|
chainId: 42161,
|
|
2449
2454
|
mainnet: true,
|
|
2455
|
+
logo: chainLogo(ChainKeys.ARBITRUM_MAINNET),
|
|
2450
2456
|
explorer: {
|
|
2451
2457
|
baseUrl: "https://arbiscan.io/",
|
|
2452
2458
|
txUrl: "https://arbiscan.io/tx/",
|
|
@@ -2460,6 +2466,7 @@ var baseChainInfo = {
|
|
|
2460
2466
|
type: "EVM",
|
|
2461
2467
|
chainId: 8453,
|
|
2462
2468
|
mainnet: true,
|
|
2469
|
+
logo: chainLogo(ChainKeys.BASE_MAINNET),
|
|
2463
2470
|
explorer: {
|
|
2464
2471
|
baseUrl: "https://basescan.org/",
|
|
2465
2472
|
txUrl: "https://basescan.org/tx/",
|
|
@@ -2473,6 +2480,7 @@ var baseChainInfo = {
|
|
|
2473
2480
|
type: "EVM",
|
|
2474
2481
|
chainId: 10,
|
|
2475
2482
|
mainnet: true,
|
|
2483
|
+
logo: chainLogo(ChainKeys.OPTIMISM_MAINNET),
|
|
2476
2484
|
explorer: {
|
|
2477
2485
|
baseUrl: "https://optimistic.etherscan.io/",
|
|
2478
2486
|
txUrl: "https://optimistic.etherscan.io/tx/",
|
|
@@ -2486,6 +2494,7 @@ var baseChainInfo = {
|
|
|
2486
2494
|
type: "EVM",
|
|
2487
2495
|
chainId: 56,
|
|
2488
2496
|
mainnet: true,
|
|
2497
|
+
logo: chainLogo(ChainKeys.BSC_MAINNET),
|
|
2489
2498
|
explorer: {
|
|
2490
2499
|
baseUrl: "https://bscscan.com/",
|
|
2491
2500
|
txUrl: "https://bscscan.com/tx/",
|
|
@@ -2499,6 +2508,7 @@ var baseChainInfo = {
|
|
|
2499
2508
|
type: "EVM",
|
|
2500
2509
|
chainId: 137,
|
|
2501
2510
|
mainnet: true,
|
|
2511
|
+
logo: chainLogo(ChainKeys.POLYGON_MAINNET),
|
|
2502
2512
|
explorer: {
|
|
2503
2513
|
baseUrl: "https://polygonscan.com/",
|
|
2504
2514
|
txUrl: "https://polygonscan.com/tx/",
|
|
@@ -2512,6 +2522,7 @@ var baseChainInfo = {
|
|
|
2512
2522
|
type: "EVM",
|
|
2513
2523
|
chainId: 999,
|
|
2514
2524
|
mainnet: true,
|
|
2525
|
+
logo: chainLogo(ChainKeys.HYPEREVM_MAINNET),
|
|
2515
2526
|
explorer: {
|
|
2516
2527
|
baseUrl: "https://hyperevmscan.io/",
|
|
2517
2528
|
txUrl: "https://hyperevmscan.io/tx/",
|
|
@@ -2525,6 +2536,7 @@ var baseChainInfo = {
|
|
|
2525
2536
|
type: "EVM",
|
|
2526
2537
|
chainId: 1890,
|
|
2527
2538
|
mainnet: true,
|
|
2539
|
+
logo: chainLogo(ChainKeys.LIGHTLINK_MAINNET),
|
|
2528
2540
|
explorer: {
|
|
2529
2541
|
baseUrl: "https://phoenix.lightlink.io/",
|
|
2530
2542
|
txUrl: "https://phoenix.lightlink.io/tx/",
|
|
@@ -2538,6 +2550,7 @@ var baseChainInfo = {
|
|
|
2538
2550
|
type: "INJECTIVE",
|
|
2539
2551
|
chainId: "injective-1",
|
|
2540
2552
|
mainnet: true,
|
|
2553
|
+
logo: chainLogo(ChainKeys.INJECTIVE_MAINNET),
|
|
2541
2554
|
explorer: {
|
|
2542
2555
|
baseUrl: "https://www.mintscan.io/injective/",
|
|
2543
2556
|
txUrl: "https://www.mintscan.io/injective/tx/",
|
|
@@ -2551,6 +2564,7 @@ var baseChainInfo = {
|
|
|
2551
2564
|
type: "STELLAR",
|
|
2552
2565
|
chainId: "stellar",
|
|
2553
2566
|
mainnet: true,
|
|
2567
|
+
logo: chainLogo(ChainKeys.STELLAR_MAINNET),
|
|
2554
2568
|
explorer: {
|
|
2555
2569
|
baseUrl: "https://stellar.expert/explorer/public/",
|
|
2556
2570
|
txUrl: "https://stellar.expert/explorer/public/tx/",
|
|
@@ -2564,6 +2578,7 @@ var baseChainInfo = {
|
|
|
2564
2578
|
type: "SUI",
|
|
2565
2579
|
chainId: "sui",
|
|
2566
2580
|
mainnet: true,
|
|
2581
|
+
logo: chainLogo(ChainKeys.SUI_MAINNET),
|
|
2567
2582
|
explorer: {
|
|
2568
2583
|
baseUrl: "https://suivision.xyz/",
|
|
2569
2584
|
txUrl: "https://suivision.xyz/txblock/",
|
|
@@ -2577,6 +2592,7 @@ var baseChainInfo = {
|
|
|
2577
2592
|
type: "ICON",
|
|
2578
2593
|
chainId: "0x1.icon",
|
|
2579
2594
|
mainnet: true,
|
|
2595
|
+
logo: chainLogo(ChainKeys.ICON_MAINNET),
|
|
2580
2596
|
explorer: {
|
|
2581
2597
|
baseUrl: "https://tracker.icon.community/",
|
|
2582
2598
|
txUrl: "https://tracker.icon.community/transaction/",
|
|
@@ -2590,6 +2606,7 @@ var baseChainInfo = {
|
|
|
2590
2606
|
type: "NEAR",
|
|
2591
2607
|
chainId: "near",
|
|
2592
2608
|
mainnet: true,
|
|
2609
|
+
logo: chainLogo(ChainKeys.NEAR_MAINNET),
|
|
2593
2610
|
explorer: {
|
|
2594
2611
|
baseUrl: "https://nearblocks.io/",
|
|
2595
2612
|
txUrl: "https://nearblocks.io/txns/",
|
|
@@ -2603,6 +2620,7 @@ var baseChainInfo = {
|
|
|
2603
2620
|
type: "EVM",
|
|
2604
2621
|
chainId: 1,
|
|
2605
2622
|
mainnet: true,
|
|
2623
|
+
logo: chainLogo(ChainKeys.ETHEREUM_MAINNET),
|
|
2606
2624
|
explorer: {
|
|
2607
2625
|
baseUrl: "https://etherscan.io/",
|
|
2608
2626
|
txUrl: "https://etherscan.io/tx/",
|
|
@@ -2616,6 +2634,7 @@ var baseChainInfo = {
|
|
|
2616
2634
|
type: "BITCOIN",
|
|
2617
2635
|
chainId: "bitcoin",
|
|
2618
2636
|
mainnet: true,
|
|
2637
|
+
logo: chainLogo(ChainKeys.BITCOIN_MAINNET),
|
|
2619
2638
|
explorer: {
|
|
2620
2639
|
baseUrl: "https://mempool.space/",
|
|
2621
2640
|
txUrl: "https://mempool.space/tx/",
|
|
@@ -2629,6 +2648,7 @@ var baseChainInfo = {
|
|
|
2629
2648
|
type: "EVM",
|
|
2630
2649
|
chainId: 151,
|
|
2631
2650
|
mainnet: true,
|
|
2651
|
+
logo: chainLogo(ChainKeys.REDBELLY_MAINNET),
|
|
2632
2652
|
explorer: {
|
|
2633
2653
|
baseUrl: "https://redbelly.routescan.io/",
|
|
2634
2654
|
txUrl: "https://redbelly.routescan.io/tx/",
|
|
@@ -2642,6 +2662,7 @@ var baseChainInfo = {
|
|
|
2642
2662
|
type: "EVM",
|
|
2643
2663
|
chainId: 8217,
|
|
2644
2664
|
mainnet: true,
|
|
2665
|
+
logo: chainLogo(ChainKeys.KAIA_MAINNET),
|
|
2645
2666
|
explorer: {
|
|
2646
2667
|
baseUrl: "https://klaytnfinder.io/",
|
|
2647
2668
|
txUrl: "https://klaytnfinder.io/tx/",
|
|
@@ -2655,6 +2676,7 @@ var baseChainInfo = {
|
|
|
2655
2676
|
type: "STACKS",
|
|
2656
2677
|
chainId: "stacks",
|
|
2657
2678
|
mainnet: true,
|
|
2679
|
+
logo: chainLogo(ChainKeys.STACKS_MAINNET),
|
|
2658
2680
|
explorer: {
|
|
2659
2681
|
baseUrl: "https://explorer.hiro.so/",
|
|
2660
2682
|
txUrl: "https://explorer.hiro.so/txid/",
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "2.0.0-rc.
|
|
7
|
+
"version": "2.0.0-rc.17",
|
|
8
8
|
"license": "MIT",
|
|
9
9
|
"description": "Sodax Wallet SDK Core",
|
|
10
10
|
"keywords": [
|
|
@@ -67,8 +67,8 @@
|
|
|
67
67
|
"near-api-js": "7.2.0",
|
|
68
68
|
"secp256k1": "^5.0.1",
|
|
69
69
|
"viem": "2.29.2",
|
|
70
|
-
"@sodax/libs": "2.0.0-rc.
|
|
71
|
-
"@sodax/types": "2.0.0-rc.
|
|
70
|
+
"@sodax/libs": "2.0.0-rc.17",
|
|
71
|
+
"@sodax/types": "2.0.0-rc.17"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"@arethetypeswrong/cli": "0.17.4",
|