@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 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: "substrate-hydration";
419
- platform: "polkadot";
420
- onChainId: number;
421
- assetType: "Erc20" | "External" | "Token";
422
- isSufficient: boolean;
423
- existentialDeposit: string;
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-psp22";
468
+ type: "substrate-assets";
459
469
  platform: "polkadot";
460
- contractAddress: string;
461
- } | {
462
- id: string;
463
- networkId: string;
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: "evm-native";
487
- platform: "ethereum";
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-assets";
502
+ type: "substrate-foreignassets";
500
503
  platform: "polkadot";
501
- assetId: string;
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-dtao";
519
+ type: "substrate-native";
517
520
  platform: "polkadot";
518
- netuid: number;
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-foreignassets";
533
+ type: "substrate-psp22";
534
534
  platform: "polkadot";
535
- onChainId: string;
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-native";
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-tokens";
562
+ type: "substrate-hydration";
565
563
  platform: "polkadot";
566
- onChainId: string | number;
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-uniswapv2";
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-erc20";
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.4",
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.4",
34
- "@talismn/chaindata-provider": "2.5.0",
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.11",
39
- "@talismn/util": "2.3.0",
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",