@bze/bze-ui-kit 0.4.4 → 0.6.0

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/README.md CHANGED
@@ -14,7 +14,7 @@ The consuming app must have these installed (they are **not** bundled):
14
14
 
15
15
  ```sh
16
16
  npm install @bze/bzejs @chakra-ui/react @cosmjs/stargate bignumber.js chain-registry \
17
- @chain-registry/types @chain-registry/utils @chain-registry/v2 \
17
+ @chain-registry/types @chain-registry/utils \
18
18
  @interchain-kit/core @interchain-kit/react @interchainjs/encoding \
19
19
  interchainjs next-themes react react-dom react-icons
20
20
  ```
package/dist/index.d.mts CHANGED
@@ -6,7 +6,6 @@ import * as _bze_bzejs_cosmos_staking_v1beta1_staking from '@bze/bzejs/cosmos/st
6
6
  import { PoolSDKType, DelegationResponseSDKType, UnbondingDelegationSDKType, ValidatorSDKType, BondStatus } from '@bze/bzejs/cosmos/staking/v1beta1/staking';
7
7
  import * as _chain_registry_types from '@chain-registry/types';
8
8
  import { Chain } from '@chain-registry/types';
9
- import * as _chain_registry_v2_types from '@chain-registry/v2-types';
10
9
  import { IconType } from 'react-icons';
11
10
  import * as _bze_bzejs_cosmos_upgrade_v1beta1_query_lcd from '@bze/bzejs/cosmos/upgrade/v1beta1/query.lcd';
12
11
  import * as _bze_bzejs_cosmos_tx_v1beta1_service_lcd from '@bze/bzejs/cosmos/tx/v1beta1/service.lcd';
@@ -435,11 +434,11 @@ declare const getUSDCDenom: () => string;
435
434
  declare const getChainId: () => string;
436
435
  declare const getChainName: () => string;
437
436
  declare const isTestnetChain: () => boolean;
438
- declare const getChains: () => _chain_registry_v2_types.Chain[];
439
- declare const getChainByChainId: (chainId: string) => _chain_registry_v2_types.Chain | undefined;
440
- declare const getChainByName: (name: string) => _chain_registry_v2_types.Chain | undefined;
437
+ declare const getChains: () => Chain[];
438
+ declare const getChainByChainId: (chainId: string) => Chain | undefined;
439
+ declare const getChainByName: (name: string) => Chain | undefined;
441
440
  declare const getWalletChainsNames: () => Chain[];
442
- declare const getAssetLists: () => _chain_registry_v2_types.AssetList[];
441
+ declare const getAssetLists: () => _chain_registry_types.AssetList[];
443
442
  declare const getIBCAssetList: () => _chain_registry_types.Asset[];
444
443
  declare const getChainAddressPrefix: () => string;
445
444
  declare const getChainExplorerURL: (chainName: string) => string;
package/dist/index.d.ts CHANGED
@@ -6,7 +6,6 @@ import * as _bze_bzejs_cosmos_staking_v1beta1_staking from '@bze/bzejs/cosmos/st
6
6
  import { PoolSDKType, DelegationResponseSDKType, UnbondingDelegationSDKType, ValidatorSDKType, BondStatus } from '@bze/bzejs/cosmos/staking/v1beta1/staking';
7
7
  import * as _chain_registry_types from '@chain-registry/types';
8
8
  import { Chain } from '@chain-registry/types';
9
- import * as _chain_registry_v2_types from '@chain-registry/v2-types';
10
9
  import { IconType } from 'react-icons';
11
10
  import * as _bze_bzejs_cosmos_upgrade_v1beta1_query_lcd from '@bze/bzejs/cosmos/upgrade/v1beta1/query.lcd';
12
11
  import * as _bze_bzejs_cosmos_tx_v1beta1_service_lcd from '@bze/bzejs/cosmos/tx/v1beta1/service.lcd';
@@ -435,11 +434,11 @@ declare const getUSDCDenom: () => string;
435
434
  declare const getChainId: () => string;
436
435
  declare const getChainName: () => string;
437
436
  declare const isTestnetChain: () => boolean;
438
- declare const getChains: () => _chain_registry_v2_types.Chain[];
439
- declare const getChainByChainId: (chainId: string) => _chain_registry_v2_types.Chain | undefined;
440
- declare const getChainByName: (name: string) => _chain_registry_v2_types.Chain | undefined;
437
+ declare const getChains: () => Chain[];
438
+ declare const getChainByChainId: (chainId: string) => Chain | undefined;
439
+ declare const getChainByName: (name: string) => Chain | undefined;
441
440
  declare const getWalletChainsNames: () => Chain[];
442
- declare const getAssetLists: () => _chain_registry_v2_types.AssetList[];
441
+ declare const getAssetLists: () => _chain_registry_types.AssetList[];
443
442
  declare const getIBCAssetList: () => _chain_registry_types.Asset[];
444
443
  declare const getChainAddressPrefix: () => string;
445
444
  declare const getChainExplorerURL: (chainName: string) => string;
package/dist/index.js CHANGED
@@ -522,7 +522,7 @@ var BZE_TESTNET_NETWORK = {
522
522
  };
523
523
 
524
524
  // src/constants/chain.ts
525
- var import_v2 = require("@chain-registry/v2");
525
+ var import_chain_registry = require("chain-registry");
526
526
  var getChainId = () => {
527
527
  return process.env.NEXT_PUBLIC_CHAIN_ID || "beezee-1";
528
528
  };
@@ -534,14 +534,14 @@ var isTestnetChain = () => {
534
534
  return isTestnet === "true" || isTestnet === "1";
535
535
  };
536
536
  var getChains = () => {
537
- let localChains = import_v2.chains;
537
+ let localChains = import_chain_registry.chains;
538
538
  if (isTestnetChain()) {
539
539
  localChains = [...import_testnet.chains, BZE_TESTNET_2_SUGGEST_CHAIN];
540
540
  }
541
541
  return localChains;
542
542
  };
543
543
  var getChainByChainId = (chainId) => {
544
- let localChains = import_v2.chains;
544
+ let localChains = import_chain_registry.chains;
545
545
  if (isTestnetChain()) {
546
546
  localChains = [...import_testnet.chains, BZE_TESTNET_2_SUGGEST_CHAIN];
547
547
  }
@@ -551,7 +551,7 @@ var getChainByChainId = (chainId) => {
551
551
  });
552
552
  };
553
553
  var getChainByName = (name) => {
554
- let localChains = import_v2.chains;
554
+ let localChains = import_chain_registry.chains;
555
555
  if (isTestnetChain()) {
556
556
  localChains = [...import_testnet.chains, BZE_TESTNET_2_SUGGEST_CHAIN];
557
557
  }
@@ -570,14 +570,14 @@ var appChainFirst = (chains2) => {
570
570
  return chains2.sort((a, b) => a.chainId === getChainId() ? -1 : b.chainId === getChainId() ? 1 : 0);
571
571
  };
572
572
  var getAssetLists = () => {
573
- let localAssetLists = import_v2.assetLists;
573
+ let localAssetLists = import_chain_registry.assetLists;
574
574
  if (isTestnetChain()) {
575
575
  localAssetLists = BZE_TESTNET_NETWORK.assets;
576
576
  }
577
577
  return localAssetLists;
578
578
  };
579
579
  var getIBCAssetList = () => {
580
- const all = (0, import_utils.getAssetLists)(getChainName(), import_v2.ibcData, getAssetLists());
580
+ const all = (0, import_utils.getAssetLists)(getChainName(), import_chain_registry.ibcData, getAssetLists());
581
581
  return all.length > 0 ? all[0].assets : [];
582
582
  };
583
583
  var getChainAddressPrefix = () => {