Skip to content

Commit c042388

Browse files
authored
Merge pull request #151 from cosmology-tech/use-cosmos-kit
Use cosmos kit
2 parents b9e5987 + b2ab710 commit c042388

File tree

249 files changed

+77277
-18879
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

249 files changed

+77277
-18879
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,13 @@ You don’t need to install or configure cosmjs, keplr, nextjs, webpack or Babel
3838

3939
Everything is preconfigured, ready-to-go, so you can focus on your code!
4040

41-
- ⚡️ Connect easily to 15+ wallets via [Cosmos Kit](https://github.com/cosmology-tech/cosmos-kit) — including Ledger, Keplr, Cosmostation, Leap, Trust Wallet, XDEFI, Exodus, Wallet Connect and more!
41+
- ⚡️ Connect easily to 20+ wallets via [Cosmos Kit](https://github.com/cosmology-tech/cosmos-kit) — including Ledger, Keplr, Cosmostation, Leap, Trust Wallet, OKX, XDEFI, Exodus, Wallet Connect and more!
4242
- ⚛️ Sign and broadcast with [cosmjs](https://github.com/cosmos/cosmjs) stargate + cosmwasm signers
43+
- 🎨 Build awesome UI with [Interchain UI](https://cosmology.zone/products/interchain-ui) and [Explore Components](https://cosmology.zone/explore)
4344
- 🛠 Render pages with [next.js](https://nextjs.org/) hybrid static & server rendering
44-
- 🎨 Build awesome UI with [Cosmos Kit UI](https://CosmosKit.com/explore) and [Chakra UI](https://chakra-ui.com/docs/components)
4545
- 📝 Leverage [chain-registry](https://github.com/cosmology-tech/chain-registry) for Chain and Asset info for all Cosmos chains
4646

47+
4748
## Education & Resources
4849

4950
🎥 [Checkout our videos](https://cosmology.zone/learn) to learn to learn more about `create-cosmos-app` and tooling for building frontends in the Cosmos!

examples/asset-list-chakra/components/asset-list/AmountInput.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
useColorModeValue,
99
Skeleton,
1010
} from '@chakra-ui/react';
11-
import { ChainName } from '@cosmos-kit/core';
11+
import { ChainName } from 'cosmos-kit';
1212
import BigNumber from 'bignumber.js';
1313
import React, { useMemo } from 'react';
1414
import { useBalance, useChainUtils } from '../../hooks';

examples/asset-list-chakra/components/asset-list/AssetListSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import AssetsOverview from './AssetsOverview';
1010
import ChainAssetsList from './ChainAssetsList';
1111
import { useChain } from '@cosmos-kit/react';
1212
import { useAssets } from '../../hooks';
13-
import { ChainName } from '@cosmos-kit/core';
13+
import { ChainName } from 'cosmos-kit';
1414

1515
interface IProps {
1616
chainName: ChainName;

examples/asset-list-chakra/components/asset-list/AssetsOverview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { PrettyAsset, Transfer, TransferInfo } from './types';
1414
import { useChainUtils, useTotalAssets } from '../../hooks';
1515
import { useChain } from '@cosmos-kit/react';
1616
import BigNumber from 'bignumber.js';
17-
import { ChainName } from '@cosmos-kit/core';
17+
import { ChainName } from 'cosmos-kit';
1818

1919
interface IProps {
2020
assets: PrettyAsset[];

examples/asset-list-chakra/components/asset-list/ChainAssetsList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import React, { useMemo, useState } from 'react';
1616
import { PrettyAsset, PriceHash, Transfer, TransferInfo } from './types';
1717
import { SimpleButton } from './Buttons';
1818
import TransferModal from './TransferModal';
19-
import { ChainName } from '@cosmos-kit/core';
19+
import { ChainName } from 'cosmos-kit';
2020
import { useChainUtils } from '../../hooks';
2121
import { truncDecimals, formatDollarValue } from '@/utils';
2222

examples/asset-list-chakra/components/asset-list/DropdownInput.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import {
2222
} from './types';
2323
import BigNumber from 'bignumber.js';
2424
import { useBalance, useChainUtils } from '../../hooks';
25-
import { ChainName } from '@cosmos-kit/core';
25+
import { ChainName } from 'cosmos-kit';
2626
import { truncDecimals } from '@/utils';
2727

2828
interface IProps {

examples/asset-list-chakra/components/asset-list/DropdownTransferModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import { useChainWallet, useManager } from '@cosmos-kit/react';
2424
import BigNumber from 'bignumber.js';
2525
import { StdFee, coins } from '@cosmjs/amino';
2626
import { useChainUtils, useTx } from '../../hooks';
27-
import { ChainName } from '@cosmos-kit/core';
27+
import { ChainName } from 'cosmos-kit';
2828
import { KeplrWalletName } from '@/config';
2929
import { ibc } from 'osmo-query';
3030

examples/asset-list-chakra/components/asset-list/TransferModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import { LargeButton } from './Buttons';
2323
import { PriceHash, TransferInfo } from './types';
2424
import { useChainWallet, useManager } from '@cosmos-kit/react';
2525
import BigNumber from 'bignumber.js';
26-
import { ChainName } from '@cosmos-kit/core';
26+
import { ChainName } from 'cosmos-kit';
2727
import { coins, StdFee } from '@cosmjs/amino';
2828
import { useChainUtils, useTx } from '../../hooks';
2929
import { KeplrWalletName } from '@/config';

examples/asset-list-chakra/components/wallet/AddressCard.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
useColorMode,
88
Image,
99
} from '@chakra-ui/react';
10-
import { WalletStatus } from '@cosmos-kit/core';
10+
import { WalletStatus } from 'cosmos-kit';
1111
import { FaCheckCircle } from 'react-icons/fa';
1212
import { FiCopy } from 'react-icons/fi';
1313
import React, { ReactNode, useEffect, useState } from 'react';
@@ -156,10 +156,10 @@ export const ConnectedShowAddress = ({
156156
hasCopied
157157
? 'green.400'
158158
: handleChangeColorModeValue(
159-
colorMode,
160-
'gray.500',
161-
'whiteAlpha.400'
162-
)
159+
colorMode,
160+
'gray.500',
161+
'whiteAlpha.400'
162+
)
163163
}
164164
/>
165165
)}

examples/asset-list-chakra/components/wallet/Wallet.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
import { MouseEventHandler, useEffect, useMemo } from 'react';
1212
import { FiAlertTriangle } from 'react-icons/fi';
1313

14-
import { ChainName } from '@cosmos-kit/core';
14+
import { ChainName } from 'cosmos-kit';
1515
import { defaultChainName } from '@/config';
1616
import {
1717
Connected,

0 commit comments

Comments
 (0)