@talismn/balances 3.1.0 → 3.1.1
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 +48 -48
- package/dist/index.d.mts.map +1 -1
- package/dist/index.d.ts +19 -19
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +76 -20
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +77 -21
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -426,12 +426,8 @@ export declare class Balance {
|
|
|
426
426
|
coingeckoId?: string | undefined;
|
|
427
427
|
noDiscovery?: boolean | undefined;
|
|
428
428
|
mirrorOf?: string | undefined;
|
|
429
|
-
type: "
|
|
430
|
-
platform: "
|
|
431
|
-
assetId: string;
|
|
432
|
-
isFrozen?: boolean | undefined;
|
|
433
|
-
isSufficient: boolean;
|
|
434
|
-
existentialDeposit: string;
|
|
429
|
+
type: "evm-native";
|
|
430
|
+
platform: "ethereum";
|
|
435
431
|
} | {
|
|
436
432
|
id: string;
|
|
437
433
|
networkId: string;
|
|
@@ -443,18 +439,12 @@ export declare class Balance {
|
|
|
443
439
|
coingeckoId?: string | undefined;
|
|
444
440
|
noDiscovery?: boolean | undefined;
|
|
445
441
|
mirrorOf?: string | undefined;
|
|
446
|
-
type: "
|
|
447
|
-
platform: "
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
decimals0: number;
|
|
453
|
-
decimals1: number;
|
|
454
|
-
tokenAddress0: `0x${string}`;
|
|
455
|
-
tokenAddress1: `0x${string}`;
|
|
456
|
-
coingeckoId0?: string | undefined;
|
|
457
|
-
coingeckoId1?: string | undefined;
|
|
442
|
+
type: "substrate-hydration";
|
|
443
|
+
platform: "polkadot";
|
|
444
|
+
onChainId: number;
|
|
445
|
+
assetType: "Erc20" | "External" | "Token";
|
|
446
|
+
isSufficient: boolean;
|
|
447
|
+
existentialDeposit: string;
|
|
458
448
|
} | {
|
|
459
449
|
id: string;
|
|
460
450
|
networkId: string;
|
|
@@ -466,9 +456,10 @@ export declare class Balance {
|
|
|
466
456
|
coingeckoId?: string | undefined;
|
|
467
457
|
noDiscovery?: boolean | undefined;
|
|
468
458
|
mirrorOf?: string | undefined;
|
|
469
|
-
type: "
|
|
470
|
-
platform: "
|
|
471
|
-
|
|
459
|
+
type: "sol-token2022";
|
|
460
|
+
platform: "solana";
|
|
461
|
+
mintAddress: string;
|
|
462
|
+
isTransferable?: boolean | undefined;
|
|
472
463
|
} | {
|
|
473
464
|
id: string;
|
|
474
465
|
networkId: string;
|
|
@@ -480,8 +471,12 @@ export declare class Balance {
|
|
|
480
471
|
coingeckoId?: string | undefined;
|
|
481
472
|
noDiscovery?: boolean | undefined;
|
|
482
473
|
mirrorOf?: string | undefined;
|
|
483
|
-
type: "
|
|
484
|
-
platform: "
|
|
474
|
+
type: "substrate-assets";
|
|
475
|
+
platform: "polkadot";
|
|
476
|
+
assetId: string;
|
|
477
|
+
isFrozen?: boolean | undefined;
|
|
478
|
+
isSufficient: boolean;
|
|
479
|
+
existentialDeposit: string;
|
|
485
480
|
} | {
|
|
486
481
|
id: string;
|
|
487
482
|
networkId: string;
|
|
@@ -510,12 +505,8 @@ export declare class Balance {
|
|
|
510
505
|
coingeckoId?: string | undefined;
|
|
511
506
|
noDiscovery?: boolean | undefined;
|
|
512
507
|
mirrorOf?: string | undefined;
|
|
513
|
-
type: "
|
|
514
|
-
platform: "
|
|
515
|
-
onChainId: string;
|
|
516
|
-
isFrozen?: boolean | undefined;
|
|
517
|
-
isSufficient: boolean;
|
|
518
|
-
existentialDeposit: string;
|
|
508
|
+
type: "sol-native";
|
|
509
|
+
platform: "solana";
|
|
519
510
|
} | {
|
|
520
511
|
id: string;
|
|
521
512
|
networkId: string;
|
|
@@ -527,9 +518,9 @@ export declare class Balance {
|
|
|
527
518
|
coingeckoId?: string | undefined;
|
|
528
519
|
noDiscovery?: boolean | undefined;
|
|
529
520
|
mirrorOf?: string | undefined;
|
|
530
|
-
type: "
|
|
531
|
-
platform: "
|
|
532
|
-
|
|
521
|
+
type: "evm-erc20";
|
|
522
|
+
platform: "ethereum";
|
|
523
|
+
contractAddress: `0x${string}`;
|
|
533
524
|
} | {
|
|
534
525
|
id: string;
|
|
535
526
|
networkId: string;
|
|
@@ -541,9 +532,18 @@ export declare class Balance {
|
|
|
541
532
|
coingeckoId?: string | undefined;
|
|
542
533
|
noDiscovery?: boolean | undefined;
|
|
543
534
|
mirrorOf?: string | undefined;
|
|
544
|
-
type: "
|
|
545
|
-
platform: "
|
|
546
|
-
contractAddress: string
|
|
535
|
+
type: "evm-uniswapv2";
|
|
536
|
+
platform: "ethereum";
|
|
537
|
+
contractAddress: `0x${string}`;
|
|
538
|
+
isCustom?: boolean | undefined;
|
|
539
|
+
symbol0: string;
|
|
540
|
+
symbol1: string;
|
|
541
|
+
decimals0: number;
|
|
542
|
+
decimals1: number;
|
|
543
|
+
tokenAddress0: `0x${string}`;
|
|
544
|
+
tokenAddress1: `0x${string}`;
|
|
545
|
+
coingeckoId0?: string | undefined;
|
|
546
|
+
coingeckoId1?: string | undefined;
|
|
547
547
|
} | {
|
|
548
548
|
id: string;
|
|
549
549
|
networkId: string;
|
|
@@ -555,9 +555,11 @@ export declare class Balance {
|
|
|
555
555
|
coingeckoId?: string | undefined;
|
|
556
556
|
noDiscovery?: boolean | undefined;
|
|
557
557
|
mirrorOf?: string | undefined;
|
|
558
|
-
type: "substrate-
|
|
558
|
+
type: "substrate-foreignassets";
|
|
559
559
|
platform: "polkadot";
|
|
560
|
-
onChainId: string
|
|
560
|
+
onChainId: string;
|
|
561
|
+
isFrozen?: boolean | undefined;
|
|
562
|
+
isSufficient: boolean;
|
|
561
563
|
existentialDeposit: string;
|
|
562
564
|
} | {
|
|
563
565
|
id: string;
|
|
@@ -570,11 +572,8 @@ export declare class Balance {
|
|
|
570
572
|
coingeckoId?: string | undefined;
|
|
571
573
|
noDiscovery?: boolean | undefined;
|
|
572
574
|
mirrorOf?: string | undefined;
|
|
573
|
-
type: "substrate-
|
|
575
|
+
type: "substrate-native";
|
|
574
576
|
platform: "polkadot";
|
|
575
|
-
onChainId: number;
|
|
576
|
-
assetType: "Erc20" | "External" | "Token";
|
|
577
|
-
isSufficient: boolean;
|
|
578
577
|
existentialDeposit: string;
|
|
579
578
|
} | {
|
|
580
579
|
id: string;
|
|
@@ -587,8 +586,9 @@ export declare class Balance {
|
|
|
587
586
|
coingeckoId?: string | undefined;
|
|
588
587
|
noDiscovery?: boolean | undefined;
|
|
589
588
|
mirrorOf?: string | undefined;
|
|
590
|
-
type: "
|
|
591
|
-
platform: "
|
|
589
|
+
type: "substrate-psp22";
|
|
590
|
+
platform: "polkadot";
|
|
591
|
+
contractAddress: string;
|
|
592
592
|
} | {
|
|
593
593
|
id: string;
|
|
594
594
|
networkId: string;
|
|
@@ -600,9 +600,10 @@ export declare class Balance {
|
|
|
600
600
|
coingeckoId?: string | undefined;
|
|
601
601
|
noDiscovery?: boolean | undefined;
|
|
602
602
|
mirrorOf?: string | undefined;
|
|
603
|
-
type: "
|
|
604
|
-
platform: "
|
|
605
|
-
|
|
603
|
+
type: "substrate-tokens";
|
|
604
|
+
platform: "polkadot";
|
|
605
|
+
onChainId: string | number;
|
|
606
|
+
existentialDeposit: string;
|
|
606
607
|
} | {
|
|
607
608
|
id: string;
|
|
608
609
|
networkId: string;
|
|
@@ -614,10 +615,9 @@ export declare class Balance {
|
|
|
614
615
|
coingeckoId?: string | undefined;
|
|
615
616
|
noDiscovery?: boolean | undefined;
|
|
616
617
|
mirrorOf?: string | undefined;
|
|
617
|
-
type: "sol-
|
|
618
|
+
type: "sol-spl";
|
|
618
619
|
platform: "solana";
|
|
619
620
|
mintAddress: string;
|
|
620
|
-
isTransferable?: boolean | undefined;
|
|
621
621
|
} | null;
|
|
622
622
|
get decimals(): number | null;
|
|
623
623
|
get rates(): TokenRates | null;
|