@talismn/balances 3.0.5 → 3.0.6
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.d.mts +31 -31
- package/dist/index.d.ts +47 -47
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -415,6 +415,37 @@ export declare class Balance {
|
|
|
415
415
|
} | null;
|
|
416
416
|
get tokenId(): string;
|
|
417
417
|
get token(): {
|
|
418
|
+
id: string;
|
|
419
|
+
networkId: string;
|
|
420
|
+
isDefault?: boolean | undefined;
|
|
421
|
+
decimals: number;
|
|
422
|
+
symbol: string;
|
|
423
|
+
name?: string | undefined;
|
|
424
|
+
logo?: string | undefined;
|
|
425
|
+
coingeckoId?: string | undefined;
|
|
426
|
+
noDiscovery?: boolean | undefined;
|
|
427
|
+
mirrorOf?: string | undefined;
|
|
428
|
+
type: "substrate-hydration";
|
|
429
|
+
platform: "polkadot";
|
|
430
|
+
onChainId: number;
|
|
431
|
+
assetType: "Erc20" | "External" | "Token";
|
|
432
|
+
isSufficient: boolean;
|
|
433
|
+
existentialDeposit: string;
|
|
434
|
+
} | {
|
|
435
|
+
id: string;
|
|
436
|
+
networkId: string;
|
|
437
|
+
isDefault?: boolean | undefined;
|
|
438
|
+
decimals: number;
|
|
439
|
+
symbol: string;
|
|
440
|
+
name?: string | undefined;
|
|
441
|
+
logo?: string | undefined;
|
|
442
|
+
coingeckoId?: string | undefined;
|
|
443
|
+
noDiscovery?: boolean | undefined;
|
|
444
|
+
mirrorOf?: string | undefined;
|
|
445
|
+
type: "substrate-psp22";
|
|
446
|
+
platform: "polkadot";
|
|
447
|
+
contractAddress: string;
|
|
448
|
+
} | {
|
|
418
449
|
id: string;
|
|
419
450
|
networkId: string;
|
|
420
451
|
isDefault?: boolean | undefined;
|
|
@@ -529,20 +560,6 @@ export declare class Balance {
|
|
|
529
560
|
type: "substrate-native";
|
|
530
561
|
platform: "polkadot";
|
|
531
562
|
existentialDeposit: string;
|
|
532
|
-
} | {
|
|
533
|
-
id: string;
|
|
534
|
-
networkId: string;
|
|
535
|
-
isDefault?: boolean | undefined;
|
|
536
|
-
decimals: number;
|
|
537
|
-
symbol: string;
|
|
538
|
-
name?: string | undefined;
|
|
539
|
-
logo?: string | undefined;
|
|
540
|
-
coingeckoId?: string | undefined;
|
|
541
|
-
noDiscovery?: boolean | undefined;
|
|
542
|
-
mirrorOf?: string | undefined;
|
|
543
|
-
type: "substrate-psp22";
|
|
544
|
-
platform: "polkadot";
|
|
545
|
-
contractAddress: string;
|
|
546
563
|
} | {
|
|
547
564
|
id: string;
|
|
548
565
|
networkId: string;
|
|
@@ -558,23 +575,6 @@ export declare class Balance {
|
|
|
558
575
|
platform: "polkadot";
|
|
559
576
|
onChainId: string | number;
|
|
560
577
|
existentialDeposit: string;
|
|
561
|
-
} | {
|
|
562
|
-
id: string;
|
|
563
|
-
networkId: string;
|
|
564
|
-
isDefault?: boolean | undefined;
|
|
565
|
-
decimals: number;
|
|
566
|
-
symbol: string;
|
|
567
|
-
name?: string | undefined;
|
|
568
|
-
logo?: string | undefined;
|
|
569
|
-
coingeckoId?: string | undefined;
|
|
570
|
-
noDiscovery?: boolean | undefined;
|
|
571
|
-
mirrorOf?: string | undefined;
|
|
572
|
-
type: "substrate-hydration";
|
|
573
|
-
platform: "polkadot";
|
|
574
|
-
onChainId: number;
|
|
575
|
-
assetType: "Erc20" | "External" | "Token";
|
|
576
|
-
isSufficient: boolean;
|
|
577
|
-
existentialDeposit: string;
|
|
578
578
|
} | {
|
|
579
579
|
id: string;
|
|
580
580
|
networkId: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -425,9 +425,18 @@ export declare class Balance {
|
|
|
425
425
|
coingeckoId?: string | undefined;
|
|
426
426
|
noDiscovery?: boolean | undefined;
|
|
427
427
|
mirrorOf?: string | undefined;
|
|
428
|
-
type: "evm-
|
|
428
|
+
type: "evm-uniswapv2";
|
|
429
429
|
platform: "ethereum";
|
|
430
430
|
contractAddress: `0x${string}`;
|
|
431
|
+
isCustom?: boolean | undefined;
|
|
432
|
+
symbol0: string;
|
|
433
|
+
symbol1: string;
|
|
434
|
+
decimals0: number;
|
|
435
|
+
decimals1: number;
|
|
436
|
+
tokenAddress0: `0x${string}`;
|
|
437
|
+
tokenAddress1: `0x${string}`;
|
|
438
|
+
coingeckoId0?: string | undefined;
|
|
439
|
+
coingeckoId1?: string | undefined;
|
|
431
440
|
} | {
|
|
432
441
|
id: string;
|
|
433
442
|
networkId: string;
|
|
@@ -439,12 +448,9 @@ export declare class Balance {
|
|
|
439
448
|
coingeckoId?: string | undefined;
|
|
440
449
|
noDiscovery?: boolean | undefined;
|
|
441
450
|
mirrorOf?: string | undefined;
|
|
442
|
-
type: "
|
|
443
|
-
platform: "
|
|
444
|
-
|
|
445
|
-
assetType: "Erc20" | "External" | "Token";
|
|
446
|
-
isSufficient: boolean;
|
|
447
|
-
existentialDeposit: string;
|
|
451
|
+
type: "sol-spl";
|
|
452
|
+
platform: "solana";
|
|
453
|
+
mintAddress: string;
|
|
448
454
|
} | {
|
|
449
455
|
id: string;
|
|
450
456
|
networkId: string;
|
|
@@ -456,11 +462,9 @@ export declare class Balance {
|
|
|
456
462
|
coingeckoId?: string | undefined;
|
|
457
463
|
noDiscovery?: boolean | undefined;
|
|
458
464
|
mirrorOf?: string | undefined;
|
|
459
|
-
type: "substrate-
|
|
465
|
+
type: "substrate-tokens";
|
|
460
466
|
platform: "polkadot";
|
|
461
|
-
onChainId: string;
|
|
462
|
-
isFrozen?: boolean | undefined;
|
|
463
|
-
isSufficient: boolean;
|
|
467
|
+
onChainId: string | number;
|
|
464
468
|
existentialDeposit: string;
|
|
465
469
|
} | {
|
|
466
470
|
id: string;
|
|
@@ -473,18 +477,9 @@ export declare class Balance {
|
|
|
473
477
|
coingeckoId?: string | undefined;
|
|
474
478
|
noDiscovery?: boolean | undefined;
|
|
475
479
|
mirrorOf?: string | undefined;
|
|
476
|
-
type: "
|
|
477
|
-
platform: "
|
|
478
|
-
|
|
479
|
-
isCustom?: boolean | undefined;
|
|
480
|
-
symbol0: string;
|
|
481
|
-
symbol1: string;
|
|
482
|
-
decimals0: number;
|
|
483
|
-
decimals1: number;
|
|
484
|
-
tokenAddress0: `0x${string}`;
|
|
485
|
-
tokenAddress1: `0x${string}`;
|
|
486
|
-
coingeckoId0?: string | undefined;
|
|
487
|
-
coingeckoId1?: string | undefined;
|
|
480
|
+
type: "substrate-native";
|
|
481
|
+
platform: "polkadot";
|
|
482
|
+
existentialDeposit: string;
|
|
488
483
|
} | {
|
|
489
484
|
id: string;
|
|
490
485
|
networkId: string;
|
|
@@ -496,8 +491,8 @@ export declare class Balance {
|
|
|
496
491
|
coingeckoId?: string | undefined;
|
|
497
492
|
noDiscovery?: boolean | undefined;
|
|
498
493
|
mirrorOf?: string | undefined;
|
|
499
|
-
type: "
|
|
500
|
-
platform: "
|
|
494
|
+
type: "sol-native";
|
|
495
|
+
platform: "solana";
|
|
501
496
|
} | {
|
|
502
497
|
id: string;
|
|
503
498
|
networkId: string;
|
|
@@ -509,12 +504,9 @@ export declare class Balance {
|
|
|
509
504
|
coingeckoId?: string | undefined;
|
|
510
505
|
noDiscovery?: boolean | undefined;
|
|
511
506
|
mirrorOf?: string | undefined;
|
|
512
|
-
type: "
|
|
513
|
-
platform: "
|
|
514
|
-
|
|
515
|
-
isFrozen?: boolean | undefined;
|
|
516
|
-
isSufficient: boolean;
|
|
517
|
-
existentialDeposit: string;
|
|
507
|
+
type: "evm-erc20";
|
|
508
|
+
platform: "ethereum";
|
|
509
|
+
contractAddress: `0x${string}`;
|
|
518
510
|
} | {
|
|
519
511
|
id: string;
|
|
520
512
|
networkId: string;
|
|
@@ -526,12 +518,8 @@ export declare class Balance {
|
|
|
526
518
|
coingeckoId?: string | undefined;
|
|
527
519
|
noDiscovery?: boolean | undefined;
|
|
528
520
|
mirrorOf?: string | undefined;
|
|
529
|
-
type: "
|
|
530
|
-
platform: "
|
|
531
|
-
netuid: number;
|
|
532
|
-
subnetName?: string | undefined;
|
|
533
|
-
hotkey?: string | undefined;
|
|
534
|
-
isTransferable: boolean;
|
|
521
|
+
type: "evm-native";
|
|
522
|
+
platform: "ethereum";
|
|
535
523
|
} | {
|
|
536
524
|
id: string;
|
|
537
525
|
networkId: string;
|
|
@@ -543,8 +531,11 @@ export declare class Balance {
|
|
|
543
531
|
coingeckoId?: string | undefined;
|
|
544
532
|
noDiscovery?: boolean | undefined;
|
|
545
533
|
mirrorOf?: string | undefined;
|
|
546
|
-
type: "substrate-
|
|
534
|
+
type: "substrate-assets";
|
|
547
535
|
platform: "polkadot";
|
|
536
|
+
assetId: string;
|
|
537
|
+
isFrozen?: boolean | undefined;
|
|
538
|
+
isSufficient: boolean;
|
|
548
539
|
existentialDeposit: string;
|
|
549
540
|
} | {
|
|
550
541
|
id: string;
|
|
@@ -557,9 +548,12 @@ export declare class Balance {
|
|
|
557
548
|
coingeckoId?: string | undefined;
|
|
558
549
|
noDiscovery?: boolean | undefined;
|
|
559
550
|
mirrorOf?: string | undefined;
|
|
560
|
-
type: "substrate-
|
|
551
|
+
type: "substrate-dtao";
|
|
561
552
|
platform: "polkadot";
|
|
562
|
-
|
|
553
|
+
netuid: number;
|
|
554
|
+
subnetName?: string | undefined;
|
|
555
|
+
hotkey?: string | undefined;
|
|
556
|
+
isTransferable: boolean;
|
|
563
557
|
} | {
|
|
564
558
|
id: string;
|
|
565
559
|
networkId: string;
|
|
@@ -571,9 +565,11 @@ export declare class Balance {
|
|
|
571
565
|
coingeckoId?: string | undefined;
|
|
572
566
|
noDiscovery?: boolean | undefined;
|
|
573
567
|
mirrorOf?: string | undefined;
|
|
574
|
-
type: "substrate-
|
|
568
|
+
type: "substrate-foreignassets";
|
|
575
569
|
platform: "polkadot";
|
|
576
|
-
onChainId: string
|
|
570
|
+
onChainId: string;
|
|
571
|
+
isFrozen?: boolean | undefined;
|
|
572
|
+
isSufficient: boolean;
|
|
577
573
|
existentialDeposit: string;
|
|
578
574
|
} | {
|
|
579
575
|
id: string;
|
|
@@ -586,8 +582,9 @@ export declare class Balance {
|
|
|
586
582
|
coingeckoId?: string | undefined;
|
|
587
583
|
noDiscovery?: boolean | undefined;
|
|
588
584
|
mirrorOf?: string | undefined;
|
|
589
|
-
type: "
|
|
590
|
-
platform: "
|
|
585
|
+
type: "substrate-psp22";
|
|
586
|
+
platform: "polkadot";
|
|
587
|
+
contractAddress: string;
|
|
591
588
|
} | {
|
|
592
589
|
id: string;
|
|
593
590
|
networkId: string;
|
|
@@ -599,9 +596,12 @@ export declare class Balance {
|
|
|
599
596
|
coingeckoId?: string | undefined;
|
|
600
597
|
noDiscovery?: boolean | undefined;
|
|
601
598
|
mirrorOf?: string | undefined;
|
|
602
|
-
type: "
|
|
603
|
-
platform: "
|
|
604
|
-
|
|
599
|
+
type: "substrate-hydration";
|
|
600
|
+
platform: "polkadot";
|
|
601
|
+
onChainId: number;
|
|
602
|
+
assetType: "Erc20" | "External" | "Token";
|
|
603
|
+
isSufficient: boolean;
|
|
604
|
+
existentialDeposit: string;
|
|
605
605
|
} | {
|
|
606
606
|
id: string;
|
|
607
607
|
networkId: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@talismn/balances",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.6",
|
|
4
4
|
"description": "Fetch and subscribe to token balances on Polkadot SDK, EVM and Solana networks",
|
|
5
5
|
"author": "Talisman",
|
|
6
6
|
"homepage": "https://talisman.xyz",
|
|
@@ -30,12 +30,12 @@
|
|
|
30
30
|
"@solana-program/token": "0.16.1",
|
|
31
31
|
"@solana-program/token-2022": "0.16.1",
|
|
32
32
|
"@solana/kit": "8.3.0",
|
|
33
|
-
"@talismn/chain-connectors": "1.0.
|
|
34
|
-
"@talismn/chaindata-provider": "2.
|
|
33
|
+
"@talismn/chain-connectors": "1.0.6",
|
|
34
|
+
"@talismn/chaindata-provider": "2.2.0",
|
|
35
35
|
"@talismn/crypto": "1.1.1",
|
|
36
|
-
"@talismn/sapi": "2.0
|
|
36
|
+
"@talismn/sapi": "2.1.0",
|
|
37
37
|
"@talismn/scale": "2.0.2",
|
|
38
|
-
"@talismn/token-rates": "4.0.
|
|
38
|
+
"@talismn/token-rates": "4.0.6",
|
|
39
39
|
"@talismn/util": "2.1.0",
|
|
40
40
|
"anylogger": "^1.0.11",
|
|
41
41
|
"bignumber.js": "^11.1.5",
|