@talismn/balances 3.1.4 → 3.1.5
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 +39 -39
- package/dist/index.d.ts +11 -11
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -415,12 +415,22 @@ export declare class Balance {
|
|
|
415
415
|
coingeckoId?: string | undefined;
|
|
416
416
|
noDiscovery?: boolean | undefined;
|
|
417
417
|
mirrorOf?: string | undefined;
|
|
418
|
-
type: "
|
|
419
|
-
platform: "
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
418
|
+
type: "evm-erc20";
|
|
419
|
+
platform: "ethereum";
|
|
420
|
+
contractAddress: `0x${string}`;
|
|
421
|
+
} | {
|
|
422
|
+
id: string;
|
|
423
|
+
networkId: string;
|
|
424
|
+
isDefault?: boolean | undefined;
|
|
425
|
+
decimals: number;
|
|
426
|
+
symbol: string;
|
|
427
|
+
name?: string | undefined;
|
|
428
|
+
logo?: string | undefined;
|
|
429
|
+
coingeckoId?: string | undefined;
|
|
430
|
+
noDiscovery?: boolean | undefined;
|
|
431
|
+
mirrorOf?: string | undefined;
|
|
432
|
+
type: "evm-native";
|
|
433
|
+
platform: "ethereum";
|
|
424
434
|
} | {
|
|
425
435
|
id: string;
|
|
426
436
|
networkId: string;
|
|
@@ -455,23 +465,12 @@ export declare class Balance {
|
|
|
455
465
|
coingeckoId?: string | undefined;
|
|
456
466
|
noDiscovery?: boolean | undefined;
|
|
457
467
|
mirrorOf?: string | undefined;
|
|
458
|
-
type: "substrate-
|
|
468
|
+
type: "substrate-assets";
|
|
459
469
|
platform: "polkadot";
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
isDefault?: boolean | undefined;
|
|
465
|
-
decimals: number;
|
|
466
|
-
symbol: string;
|
|
467
|
-
name?: string | undefined;
|
|
468
|
-
logo?: string | undefined;
|
|
469
|
-
coingeckoId?: string | undefined;
|
|
470
|
-
noDiscovery?: boolean | undefined;
|
|
471
|
-
mirrorOf?: string | undefined;
|
|
472
|
-
type: "evm-erc20";
|
|
473
|
-
platform: "ethereum";
|
|
474
|
-
contractAddress: `0x${string}`;
|
|
470
|
+
assetId: string;
|
|
471
|
+
isFrozen?: boolean | undefined;
|
|
472
|
+
isSufficient: boolean;
|
|
473
|
+
existentialDeposit: string;
|
|
475
474
|
} | {
|
|
476
475
|
id: string;
|
|
477
476
|
networkId: string;
|
|
@@ -483,8 +482,12 @@ export declare class Balance {
|
|
|
483
482
|
coingeckoId?: string | undefined;
|
|
484
483
|
noDiscovery?: boolean | undefined;
|
|
485
484
|
mirrorOf?: string | undefined;
|
|
486
|
-
type: "
|
|
487
|
-
platform: "
|
|
485
|
+
type: "substrate-dtao";
|
|
486
|
+
platform: "polkadot";
|
|
487
|
+
netuid: number;
|
|
488
|
+
subnetName?: string | undefined;
|
|
489
|
+
hotkey?: string | undefined;
|
|
490
|
+
isTransferable: boolean;
|
|
488
491
|
} | {
|
|
489
492
|
id: string;
|
|
490
493
|
networkId: string;
|
|
@@ -496,9 +499,9 @@ export declare class Balance {
|
|
|
496
499
|
coingeckoId?: string | undefined;
|
|
497
500
|
noDiscovery?: boolean | undefined;
|
|
498
501
|
mirrorOf?: string | undefined;
|
|
499
|
-
type: "substrate-
|
|
502
|
+
type: "substrate-foreignassets";
|
|
500
503
|
platform: "polkadot";
|
|
501
|
-
|
|
504
|
+
onChainId: string;
|
|
502
505
|
isFrozen?: boolean | undefined;
|
|
503
506
|
isSufficient: boolean;
|
|
504
507
|
existentialDeposit: string;
|
|
@@ -513,12 +516,9 @@ export declare class Balance {
|
|
|
513
516
|
coingeckoId?: string | undefined;
|
|
514
517
|
noDiscovery?: boolean | undefined;
|
|
515
518
|
mirrorOf?: string | undefined;
|
|
516
|
-
type: "substrate-
|
|
519
|
+
type: "substrate-native";
|
|
517
520
|
platform: "polkadot";
|
|
518
|
-
|
|
519
|
-
subnetName?: string | undefined;
|
|
520
|
-
hotkey?: string | undefined;
|
|
521
|
-
isTransferable: boolean;
|
|
521
|
+
existentialDeposit: string;
|
|
522
522
|
} | {
|
|
523
523
|
id: string;
|
|
524
524
|
networkId: string;
|
|
@@ -530,12 +530,9 @@ export declare class Balance {
|
|
|
530
530
|
coingeckoId?: string | undefined;
|
|
531
531
|
noDiscovery?: boolean | undefined;
|
|
532
532
|
mirrorOf?: string | undefined;
|
|
533
|
-
type: "substrate-
|
|
533
|
+
type: "substrate-psp22";
|
|
534
534
|
platform: "polkadot";
|
|
535
|
-
|
|
536
|
-
isFrozen?: boolean | undefined;
|
|
537
|
-
isSufficient: boolean;
|
|
538
|
-
existentialDeposit: string;
|
|
535
|
+
contractAddress: string;
|
|
539
536
|
} | {
|
|
540
537
|
id: string;
|
|
541
538
|
networkId: string;
|
|
@@ -547,8 +544,9 @@ export declare class Balance {
|
|
|
547
544
|
coingeckoId?: string | undefined;
|
|
548
545
|
noDiscovery?: boolean | undefined;
|
|
549
546
|
mirrorOf?: string | undefined;
|
|
550
|
-
type: "substrate-
|
|
547
|
+
type: "substrate-tokens";
|
|
551
548
|
platform: "polkadot";
|
|
549
|
+
onChainId: string | number;
|
|
552
550
|
existentialDeposit: string;
|
|
553
551
|
} | {
|
|
554
552
|
id: string;
|
|
@@ -561,9 +559,11 @@ export declare class Balance {
|
|
|
561
559
|
coingeckoId?: string | undefined;
|
|
562
560
|
noDiscovery?: boolean | undefined;
|
|
563
561
|
mirrorOf?: string | undefined;
|
|
564
|
-
type: "substrate-
|
|
562
|
+
type: "substrate-hydration";
|
|
565
563
|
platform: "polkadot";
|
|
566
|
-
onChainId:
|
|
564
|
+
onChainId: number;
|
|
565
|
+
assetType: "Erc20" | "External" | "Token";
|
|
566
|
+
isSufficient: boolean;
|
|
567
567
|
existentialDeposit: string;
|
|
568
568
|
} | {
|
|
569
569
|
id: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -415,18 +415,9 @@ export declare class Balance {
|
|
|
415
415
|
coingeckoId?: string | undefined;
|
|
416
416
|
noDiscovery?: boolean | undefined;
|
|
417
417
|
mirrorOf?: string | undefined;
|
|
418
|
-
type: "evm-
|
|
418
|
+
type: "evm-erc20";
|
|
419
419
|
platform: "ethereum";
|
|
420
420
|
contractAddress: `0x${string}`;
|
|
421
|
-
isCustom?: boolean | undefined;
|
|
422
|
-
symbol0: string;
|
|
423
|
-
symbol1: string;
|
|
424
|
-
decimals0: number;
|
|
425
|
-
decimals1: number;
|
|
426
|
-
tokenAddress0: `0x${string}`;
|
|
427
|
-
tokenAddress1: `0x${string}`;
|
|
428
|
-
coingeckoId0?: string | undefined;
|
|
429
|
-
coingeckoId1?: string | undefined;
|
|
430
421
|
} | {
|
|
431
422
|
id: string;
|
|
432
423
|
networkId: string;
|
|
@@ -451,9 +442,18 @@ export declare class Balance {
|
|
|
451
442
|
coingeckoId?: string | undefined;
|
|
452
443
|
noDiscovery?: boolean | undefined;
|
|
453
444
|
mirrorOf?: string | undefined;
|
|
454
|
-
type: "evm-
|
|
445
|
+
type: "evm-uniswapv2";
|
|
455
446
|
platform: "ethereum";
|
|
456
447
|
contractAddress: `0x${string}`;
|
|
448
|
+
isCustom?: boolean | undefined;
|
|
449
|
+
symbol0: string;
|
|
450
|
+
symbol1: string;
|
|
451
|
+
decimals0: number;
|
|
452
|
+
decimals1: number;
|
|
453
|
+
tokenAddress0: `0x${string}`;
|
|
454
|
+
tokenAddress1: `0x${string}`;
|
|
455
|
+
coingeckoId0?: string | undefined;
|
|
456
|
+
coingeckoId1?: string | undefined;
|
|
457
457
|
} | {
|
|
458
458
|
id: string;
|
|
459
459
|
networkId: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@talismn/balances",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.5",
|
|
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,13 +30,13 @@
|
|
|
30
30
|
"@solana-program/token": "0.18.0",
|
|
31
31
|
"@solana-program/token-2022": "0.20.0",
|
|
32
32
|
"@solana/kit": "8.6.0",
|
|
33
|
-
"@talismn/chain-connectors": "1.1.
|
|
34
|
-
"@talismn/chaindata-provider": "2.5.
|
|
33
|
+
"@talismn/chain-connectors": "1.1.5",
|
|
34
|
+
"@talismn/chaindata-provider": "2.5.1",
|
|
35
35
|
"@talismn/crypto": "1.3.0",
|
|
36
36
|
"@talismn/sapi": "3.0.0",
|
|
37
37
|
"@talismn/scale": "3.0.0",
|
|
38
|
-
"@talismn/token-rates": "4.0.
|
|
39
|
-
"@talismn/util": "2.3.
|
|
38
|
+
"@talismn/token-rates": "4.0.12",
|
|
39
|
+
"@talismn/util": "2.3.1",
|
|
40
40
|
"anylogger": "^1.0.11",
|
|
41
41
|
"bignumber.js": "^11.1.5",
|
|
42
42
|
"lodash-es": "4.18.1",
|