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

feat(solana): Add Solflare (metamask snap) wallet #786

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open
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/many-melons-grow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@ant-design/web3-solana": minor
"@ant-design/web3-assets": patch
"@ant-design/web3-icons": patch
---

feat: Add Solflare wallet adapter
1 change: 1 addition & 0 deletions packages/assets/src/wallets/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ export * from './xverse';
export * from './unisat-wallet';
export * from './backpack';
export * from './trust';
export * from './solflare';
20 changes: 20 additions & 0 deletions packages/assets/src/wallets/solflare.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import type { WalletMetadata } from '@ant-design/web3-common';
import { ChromeCircleColorful, SolflareColorful } from '@ant-design/web3-icons';

export const metadata_Solflare: WalletMetadata = {
icon: <SolflareColorful />,
name: 'Solflare',
remark: 'Solflare Wallet',
app: {
link: 'https://solflare.com/',
},
extensions: [
{
key: 'Chrome',
browserIcon: <ChromeCircleColorful />,
browserName: 'Chrome',
link: 'https://chromewebstore.google.com/detail/solflare-wallet/bhhhlbepdkbapadjdnnojkbgioiodbic',
description: 'Access your wallet right from your favorite web browser.',
},
],
};
1,172 changes: 684 additions & 488 deletions packages/icons/src/__tests__/__snapshots__/index.test.tsx.snap

Large diffs are not rendered by default.

26 changes: 26 additions & 0 deletions packages/icons/src/components/solflare-circle-colorful.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
import * as React from 'react';
import AntdIcon from '@ant-design/icons';
import { type IconBaseProps } from '@ant-design/icons/lib/components/Icon';
import { ConfigProvider } from 'antd';
import classnames from 'classnames';

import SVGComponent from '../svgs/solflare-circle-colorful.svg';

/**![SolflareCircleColorful](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCI+CjxkZWZzPgogIDxsaW5lYXJHcmFkaWVudCBpZD0iYW50LXdlYjMtaWNvbi1zb2xmbGFyZS1jaXJjbGUtY29sb3JmdWwtMDEiIHgxPSIxMy4zNzUlIiB4Mj0iNzAuMjQxJSIgeTE9IjE1LjkwNyUiIHkyPSI2Ny42MDIlIj4KICAgIDxzdG9wIG9mZnNldD0iMCUiIHN0b3AtY29sb3I9IiNGRkMxMEIiLz4KICAgIDxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iI0ZCM0YyRSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJhZGlhbEdyYWRpZW50IGlkPSJhbnQtd2ViMy1pY29uLXNvbGZsYXJlLWNpcmNsZS1jb2xvcmZ1bC0wMiIgY3g9IjM4LjU4JSIgY3k9IjMxLjU0JSIgcj0iNzMuNDkzJSIgZng9IjM4LjU4JSIgZnk9IjMxLjU0JSIgZ3JhZGllbnRUcmFuc2Zvcm09Im1hdHJpeCguMzc4MiAuOTI0MDEgLS45MTM5NCAuMzgyMzcgLjUyOCAtLjE2MikiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI0ZGQzEwQiIvPgogICAgPHN0b3Agb2Zmc2V0PSIxMDAlIiBzdG9wLWNvbG9yPSIjRkIzRjJFIi8+CiAgPC9yYWRpYWxHcmFkaWVudD4KICA8L2RlZnM+CiAgPGcgZmlsbD0ib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TQuNSAwLTguMDIgNi41NTYtMTQuNDk5IDE0LjY1NC0xNC40OTl6TTM3MC4xOTUgMGM4LjA5OCAwIDE0LjY1MyA2LjQ5NCAxNC42NTMgMTQuNSAwIDguMDItNi41NTUgMTQuNDk5LTE0LjY1MyAxNC40OTlhMTQuNTc3IDE0LjU3NyAwIDAgMS0xNC42NTQtMTQuNUMzNTUuNTQxIDYuNDk0IDM2Mi4wOTcgMCAzNzAuMTk1IDAiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEzMCAxMjgpIi8+CiAgICA8cGF0aCBmaWxsPSJ1cmwoI2FudC13ZWIzLWljb24tc29sZmxhcmUtY2lyY2xlLWNvbG9yZnVsLTAyKSIgZD0iTTM3OS4wMDIgNTA1LjYyNGM3Ni41MDcgMCAxMzguNTE1LTYxLjM0NCAxMzguNTE1LTEzNy4wMTggMC03NS42NTktNjIuMDA4LTEzNy4wMDMtMTM4LjUxNS0xMzcuMDAzcy0xMzguNTE0IDYxLjM0NC0xMzguNTE0IDEzNy4wMDNjMCA3NS42NzQgNjIuMDA3IDEzNy4wMDMgMTM4LjUxNCAxMzcuMDAzeiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTMwIDEyOCkiLz4KICA8L2c+Cjwvc3ZnPgo=) */
export const SolflareCircleColorful = React.forwardRef<HTMLSpanElement, IconBaseProps>((props, ref) => {
const { getPrefixCls } = React.useContext(ConfigProvider.ConfigContext);
const prefixCls = getPrefixCls('web3-icon-solflare-circle-colorful');

return (
<AntdIcon
{...props}
className={classnames(prefixCls, props.className)}
ref={ref}
component={SVGComponent}
/>
);
});

SolflareCircleColorful.displayName = 'SolflareCircleColorful';
26 changes: 26 additions & 0 deletions packages/icons/src/components/solflare-circle-filled.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
import * as React from 'react';
import AntdIcon from '@ant-design/icons';
import { type IconBaseProps } from '@ant-design/icons/lib/components/Icon';
import { ConfigProvider } from 'antd';
import classnames from 'classnames';

import SVGComponent from '../svgs/solflare-circle-filled.svg';

/**![SolflareCircleFilled](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCI+CiAgPGcgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgIDxjaXJjbGUgY3g9IjUxMiIgY3k9IjUxMiIgcj0iNTExLjUiIC8+CiAgICA8cGF0aCBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iIGQ9Ik01MTcuODkgODY2Ljk5NWM4LjEzNCAwIDE0LjcyNSA2LjQ5MSAxNC43MjUgMTQuNTAxUzUyNi4wMjQgODk2IDUxNy44OTEgODk2Yy04LjEzNCAwLTE0LjcyNy02LjQ5My0xNC43MjctMTQuNTA0czYuNTkzLTE0LjUwMSAxNC43MjctMTQuNTAxbS0xNS45OTctNjkyLjgwMmM3LjE5Ni41OTEgMTMuMDA4IDYuMDIxIDEzLjk4MiAxMy4wNjFsMTcuNTE0IDEyNi43MjRjNS44ODMgNDEuODY2IDU2LjU5MiA2MC4wMDcgODcuODk0IDMxLjU1NmwxNzUuNDg2LTE1OS4wNWM0LjIzMy0zLjgzNyAxMC44MjUtMy41NyAxNC43MjQuNTk0YTEwLjEzIDEwLjEzIDAgMCAxIC4yNTIgMTMuNjE2TDY1OC43MTkgMzc2LjQ3Yy0yOC4xNzIgMzIuMzAyLTcuMzg3IDgyLjc0MyAzNS41NTggODYuMzQzbDEzNS4wMiAxMi45NjFjNi43MjYuNjQ2IDExLjY0NSA2LjUzMiAxMC45ODggMTMuMTQ3LS41NDEgNS40NTYtNC43NjEgOS44NjUtMTAuMjY2IDEwLjcxOWwtMTQxLjg3NiAyMi4wNmMtNDEuMTk0IDUuNTkyLTU5Ljg0OSA1NC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kuNDY1YzguMTMyIDAgMTQuNzI1IDYuNDkzIDE0LjcyNSAxNC41MDJzLTYuNTkzIDE0LjUwMy0xNC43MjUgMTQuNTAzUzEyOCA1MTEuOTc3IDEyOCA1MDMuOTY3czYuNTkzLTE0LjUwMiAxNC43MjYtMTQuNTAybTczOC41NDgtMTQuNzI2YzguMTMzIDAgMTQuNzI2IDYuNDkzIDE0LjcyNiAxNC41MDEgMCA4LjAxLTYuNTkzIDE0LjUwNC0xNC43MjYgMTQuNTA0LTguMTMyIDAtMTQuNzI1LTYuNDkzLTE0LjcyNS0xNC41MDQgMC04LjAwOCA2LjU5My0xNC41MDEgMTQuNzI1LTE0LjUwMU00OTkuNzY2IDEyOGM4LjEzMyAwIDE0LjcyNiA2LjQ5MyAxNC43MjYgMTQuNTAzcy02LjU5MyAxNC41MDMtMTQuNzI2IDE0LjUwM2MtOC4xMzEgMC0xNC43MjUtNi40OTMtMTQuNzI1LTE0LjUwM1M0OTEuNjM1IDEyOCA0OTkuNzY2IDEyOCIvPgogIDwvZz4KPC9zdmc+Cg==) */
export const SolflareCircleFilled = React.forwardRef<HTMLSpanElement, IconBaseProps>((props, ref) => {
const { getPrefixCls } = React.useContext(ConfigProvider.ConfigContext);
const prefixCls = getPrefixCls('web3-icon-solflare-circle-filled');

return (
<AntdIcon
{...props}
className={classnames(prefixCls, props.className)}
ref={ref}
component={SVGComponent}
/>
);
});

SolflareCircleFilled.displayName = 'SolflareCircleFilled';
26 changes: 26 additions & 0 deletions packages/icons/src/components/solflare-colorful.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
import * as React from 'react';
import AntdIcon from '@ant-design/icons';
import { type IconBaseProps } from '@ant-design/icons/lib/components/Icon';
import { ConfigProvider } from 'antd';
import classnames from 'classnames';

import SVGComponent from '../svgs/solflare-colorful.svg';

/**![SolflareColorful](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIG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DE5LjUzOCAxOS4zMzIgMCAxMC42OTUtOC43NCAxOS4zMzMtMTkuNTM4IDE5LjMzM2ExOS40MzcgMTkuNDM3IDAgMCAxLTE5LjUzOC0xOS4zMzNDNDc0LjA1NSA4LjY1OCA0ODIuNzk1IDAgNDkzLjU5MyAwIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyKSIvPgogICAgICA8cGF0aCBmaWxsPSJ1cmwoI2FudC13ZWIzLWljb24tc29sZmxhcmUtY2lyY2xlLWNvbG9yZnVsLTAyKSIgZD0iTTUwNS4zMzYgNjc0LjE2NmMxMDIuMDEgMCAxODQuNjg2LTgxLjc5MyAxODQuNjg2LTE4Mi42OTEgMC0xMDAuODc4LTgyLjY3Ni0xODIuNjctMTg0LjY4Ni0xODIuNjctMTAyLjAwOSAwLTE4NC42ODYgODEuNzkyLTE4NC42ODYgMTgyLjY3IDAgMTAwLjg5OCA4Mi42NzcgMTgyLjY3IDE4NC42ODYgMTgyLjY3eiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMikiLz4KICA8L2c+Cjwvc3ZnPgo=) */
export const SolflareColorful = React.forwardRef<HTMLSpanElement, IconBaseProps>((props, ref) => {
const { getPrefixCls } = React.useContext(ConfigProvider.ConfigContext);
const prefixCls = getPrefixCls('web3-icon-solflare-colorful');

return (
<AntdIcon
{...props}
className={classnames(prefixCls, props.className)}
ref={ref}
component={SVGComponent}
/>
);
});

SolflareColorful.displayName = 'SolflareColorful';
26 changes: 26 additions & 0 deletions packages/icons/src/components/solflare-filled.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
import * as React from 'react';
import AntdIcon from '@ant-design/icons';
import { type IconBaseProps } from '@ant-design/icons/lib/components/Icon';
import { ConfigProvider } from 'antd';
import classnames from 'classnames';

import SVGComponent from '../svgs/solflare-filled.svg';

/**![SolflareFilled](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiI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AgOC4wMS02LjU5MyAxNC41MDQtMTQuNzI2IDE0LjUwNC04LjEzMiAwLTE0LjcyNS02LjQ5My0xNC43MjUtMTQuNTA0IDAtOC4wMDggNi41OTMtMTQuNTAxIDE0LjcyNS0xNC41MDFNNDk5Ljc2NiAxMjhjOC4xMzMgMCAxNC43MjYgNi40OTMgMTQuNzI2IDE0LjUwM3MtNi41OTMgMTQuNTAzLTE0LjcyNiAxNC41MDNjLTguMTMxIDAtMTQuNzI1LTYuNDkzLTE0LjcyNS0xNC41MDNTNDkxLjYzNSAxMjggNDk5Ljc2NiAxMjgiLz4KPC9zdmc+Cg==) */
export const SolflareFilled = React.forwardRef<HTMLSpanElement, IconBaseProps>((props, ref) => {
const { getPrefixCls } = React.useContext(ConfigProvider.ConfigContext);
const prefixCls = getPrefixCls('web3-icon-solflare-filled');

return (
<AntdIcon
{...props}
className={classnames(prefixCls, props.className)}
ref={ref}
component={SVGComponent}
/>
);
});

SolflareFilled.displayName = 'SolflareFilled';
4 changes: 4 additions & 0 deletions packages/icons/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,10 @@ export * from './components/solana-circle-colorful';
export * from './components/solana-circle-filled';
export * from './components/solana-colorful';
export * from './components/solana-filled';
export * from './components/solflare-circle-colorful';
export * from './components/solflare-circle-filled';
export * from './components/solflare-colorful';
export * from './components/solflare-filled';
export * from './components/soul-colorful';
export * from './components/srm-colorful';
export * from './components/srn-circle-colorful';
Expand Down
Loading
Loading