Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Support TokenPocket #409

Merged
merged 12 commits into from
Dec 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .changeset/large-drinks-provide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@ant-design/web3-assets': major
'@ant-design/web3-icons': minor
'@ant-design/web3-wagmi': minor
---

feat: add TokenPocket wallet icon and metadata
2 changes: 1 addition & 1 deletion .dumi/theme/builtins/IconSearch/fields.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const chain = [
'Avalanche',
];

const tool = ['CoinbaseWallet', 'Etherscan', 'MetaMask', 'WalletConnect'];
const tool = ['CoinbaseWallet', 'Etherscan', 'MetaMask', 'WalletConnect', 'TokenPocket'];

const datum = [...chain, ...tool];

Expand Down
1 change: 1 addition & 0 deletions packages/assets/src/wallets/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export * from './meta-mask';
export * from './wallet-connect';
export * from './coinbase-wallet';
export * from './token-pocket';
20 changes: 20 additions & 0 deletions packages/assets/src/wallets/token-pocket.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import type { WalletMetadata } from '@ant-design/web3-common';
import { TokenPocketColorful, ChromeCircleColorful } from '@ant-design/web3-icons';

export const metadata_TokenPocket: WalletMetadata = {
icon: <TokenPocketColorful />,
name: 'TokenPocket',
remark: 'TokenPocket',
app: {
link: 'https://www.tokenpocket.pro/en/download/app',
},
extensions: [
{
key: 'Chrome',
browserIcon: <ChromeCircleColorful />,
browserName: 'Chrome',
link: 'https://chromewebstore.google.com/detail/mfgccjchihfkkindfppnaooecgfneiii',
description: 'Access your wallet right from your favorite web browser.',
},
],
};
Loading