@ant-design/web3-assets 0.1.2 → 1.1.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/CHANGELOG.md CHANGED
@@ -1,5 +1,38 @@
1
1
  # @ant-design/web3-assets
2
2
 
3
+ ## 1.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - b00a377: feat: add TokenPocket wallet icon and metadata
8
+ - b3e95c2: feat: support safeheron browser wallet
9
+
10
+ ### Patch Changes
11
+
12
+ - 69a3597: fix: Improve the package.json information and add a main field to accommodate more projects.
13
+ - 24e6322: chore: new version 1.1.2 for republish
14
+ - Updated dependencies [73e8e32]
15
+ - Updated dependencies [69a3597]
16
+ - Updated dependencies [b00a377]
17
+ - Updated dependencies [b3e95c2]
18
+ - Updated dependencies [3547f6b]
19
+ - Updated dependencies [9de319c]
20
+ - Updated dependencies [24e6322]
21
+ - @ant-design/web3-common@1.1.0
22
+ - @ant-design/web3-icons@1.1.0
23
+
24
+ ## 1.0.0
25
+
26
+ ### Major Changes
27
+
28
+ - f330908: docs: Update new logo and prepare release 1.0.0
29
+
30
+ ### Patch Changes
31
+
32
+ - Updated dependencies [f330908]
33
+ - @ant-design/web3-common@1.0.0
34
+ - @ant-design/web3-icons@1.0.0
35
+
3
36
  ## 0.1.2
4
37
 
5
38
  ### Patch Changes
@@ -5,3 +5,4 @@ export declare const Polygon: Chain;
5
5
  export declare const BSC: Chain;
6
6
  export declare const Arbitrum: Chain;
7
7
  export declare const Optimism: Chain;
8
+ export declare const Avalanche: Chain;
@@ -1,5 +1,6 @@
1
1
  import { ChainIds } from '@ant-design/web3-common';
2
- import { EthereumCircleColorful, OptimismCircleColorful, BSCCircleColorful, ArbitrumCircleColorful, PolygonCircleColorful, EtherscanCircleColorful, EthereumFilled } from '@ant-design/web3-icons';
2
+ import { createGetBrowserLink } from '@ant-design/web3-common';
3
+ import { EthereumCircleColorful, OptimismCircleColorful, BSCCircleColorful, ArbitrumCircleColorful, PolygonCircleColorful, EtherscanCircleColorful, EthereumFilled, AvalancheCircleColorful } from '@ant-design/web3-icons';
3
4
  import { jsx as _jsx } from "react/jsx-runtime";
4
5
  export var Mainnet = {
5
6
  id: ChainIds.Mainnet,
@@ -7,14 +8,7 @@ export var Mainnet = {
7
8
  icon: /*#__PURE__*/_jsx(EthereumCircleColorful, {}),
8
9
  browser: {
9
10
  icon: /*#__PURE__*/_jsx(EtherscanCircleColorful, {}),
10
- getBrowserLink: function getBrowserLink(address, type) {
11
- if (type === 'address') {
12
- return "https://etherscan.io/address/".concat(address);
13
- } else if (type === 'transaction') {
14
- return "https://etherscan.io/tx/".concat(address);
15
- }
16
- throw new Error("getBrowserLink unsupported type ".concat(type));
17
- }
11
+ getBrowserLink: createGetBrowserLink('https://etherscan.io')
18
12
  },
19
13
  nativeCurrency: {
20
14
  icon: /*#__PURE__*/_jsx(EthereumFilled, {}),
@@ -27,6 +21,10 @@ export var Goerli = {
27
21
  id: ChainIds.Goerli,
28
22
  name: 'Goerli',
29
23
  icon: /*#__PURE__*/_jsx(EthereumCircleColorful, {}),
24
+ browser: {
25
+ icon: /*#__PURE__*/_jsx(EthereumCircleColorful, {}),
26
+ getBrowserLink: createGetBrowserLink('https://goerli.etherscan.io')
27
+ },
30
28
  nativeCurrency: {
31
29
  name: 'Ether',
32
30
  symbol: 'ETH',
@@ -37,6 +35,10 @@ export var Polygon = {
37
35
  id: ChainIds.Polygon,
38
36
  name: 'Polygon',
39
37
  icon: /*#__PURE__*/_jsx(PolygonCircleColorful, {}),
38
+ browser: {
39
+ icon: /*#__PURE__*/_jsx(PolygonCircleColorful, {}),
40
+ getBrowserLink: createGetBrowserLink('https://polygonscan.com')
41
+ },
40
42
  nativeCurrency: {
41
43
  name: 'MATIC',
42
44
  symbol: 'MATIC',
@@ -47,6 +49,10 @@ export var BSC = {
47
49
  id: ChainIds.BSC,
48
50
  name: 'BNB Smart Chain',
49
51
  icon: /*#__PURE__*/_jsx(BSCCircleColorful, {}),
52
+ browser: {
53
+ icon: /*#__PURE__*/_jsx(BSCCircleColorful, {}),
54
+ getBrowserLink: createGetBrowserLink('https://bscscan.com')
55
+ },
50
56
  nativeCurrency: {
51
57
  decimals: 18,
52
58
  name: 'BNB',
@@ -57,6 +63,10 @@ export var Arbitrum = {
57
63
  id: ChainIds.Arbitrum,
58
64
  name: 'Arbitrum One',
59
65
  icon: /*#__PURE__*/_jsx(ArbitrumCircleColorful, {}),
66
+ browser: {
67
+ icon: /*#__PURE__*/_jsx(ArbitrumCircleColorful, {}),
68
+ getBrowserLink: createGetBrowserLink('https://arbiscan.io')
69
+ },
60
70
  nativeCurrency: {
61
71
  name: 'Ether',
62
72
  symbol: 'ETH',
@@ -67,9 +77,27 @@ export var Optimism = {
67
77
  id: ChainIds.Optimism,
68
78
  name: 'OP Mainnet',
69
79
  icon: /*#__PURE__*/_jsx(OptimismCircleColorful, {}),
80
+ browser: {
81
+ icon: /*#__PURE__*/_jsx(OptimismCircleColorful, {}),
82
+ getBrowserLink: createGetBrowserLink('https://optimistic.etherscan.io')
83
+ },
70
84
  nativeCurrency: {
71
85
  name: 'Ether',
72
86
  symbol: 'ETH',
73
87
  decimals: 18
74
88
  }
89
+ };
90
+ export var Avalanche = {
91
+ id: ChainIds.Avalanche,
92
+ name: 'Avalanche',
93
+ icon: /*#__PURE__*/_jsx(AvalancheCircleColorful, {}),
94
+ browser: {
95
+ icon: /*#__PURE__*/_jsx(AvalancheCircleColorful, {}),
96
+ getBrowserLink: createGetBrowserLink('https://snowtrace.io')
97
+ },
98
+ nativeCurrency: {
99
+ name: 'Avalanche',
100
+ symbol: 'AVAX',
101
+ decimals: 18
102
+ }
75
103
  };
@@ -1,3 +1,5 @@
1
1
  export * from './meta-mask';
2
2
  export * from './wallet-connect';
3
3
  export * from './coinbase-wallet';
4
+ export * from './token-pocket';
5
+ export * from './safeheron';
@@ -1,3 +1,5 @@
1
1
  export * from "./meta-mask";
2
2
  export * from "./wallet-connect";
3
- export * from "./coinbase-wallet";
3
+ export * from "./coinbase-wallet";
4
+ export * from "./token-pocket";
5
+ export * from "./safeheron";
@@ -0,0 +1,2 @@
1
+ import type { WalletMetadata } from '@ant-design/web3-common';
2
+ export declare const metadata_Safeheron: WalletMetadata;
@@ -0,0 +1,14 @@
1
+ import { SafeheronColorful, ChromeCircleColorful } from '@ant-design/web3-icons';
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ export var metadata_Safeheron = {
4
+ icon: /*#__PURE__*/_jsx(SafeheronColorful, {}),
5
+ name: 'Safeheron',
6
+ remark: 'Safeheron Wallet',
7
+ extensions: [{
8
+ key: 'Chrome',
9
+ browserIcon: /*#__PURE__*/_jsx(ChromeCircleColorful, {}),
10
+ browserName: 'Chrome',
11
+ link: 'https://chromewebstore.google.com/detail/safeheron/aiaghdjafpiofpainifbgfgjfpclngoh',
12
+ description: 'Access your wallet right from your favorite web browser.'
13
+ }]
14
+ };
@@ -0,0 +1,2 @@
1
+ import type { WalletMetadata } from '@ant-design/web3-common';
2
+ export declare const metadata_TokenPocket: WalletMetadata;
@@ -0,0 +1,17 @@
1
+ import { TokenPocketColorful, ChromeCircleColorful } from '@ant-design/web3-icons';
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ export var metadata_TokenPocket = {
4
+ icon: /*#__PURE__*/_jsx(TokenPocketColorful, {}),
5
+ name: 'TokenPocket',
6
+ remark: 'TokenPocket',
7
+ app: {
8
+ link: 'https://www.tokenpocket.pro/en/download/app'
9
+ },
10
+ extensions: [{
11
+ key: 'Chrome',
12
+ browserIcon: /*#__PURE__*/_jsx(ChromeCircleColorful, {}),
13
+ browserName: 'Chrome',
14
+ link: 'https://chromewebstore.google.com/detail/mfgccjchihfkkindfppnaooecgfneiii',
15
+ description: 'Access your wallet right from your favorite web browser.'
16
+ }]
17
+ };
@@ -5,3 +5,4 @@ export declare const Polygon: Chain;
5
5
  export declare const BSC: Chain;
6
6
  export declare const Arbitrum: Chain;
7
7
  export declare const Optimism: Chain;
8
+ export declare const Avalanche: Chain;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.Polygon = exports.Optimism = exports.Mainnet = exports.Goerli = exports.BSC = exports.Arbitrum = void 0;
6
+ exports.Polygon = exports.Optimism = exports.Mainnet = exports.Goerli = exports.BSC = exports.Avalanche = exports.Arbitrum = void 0;
7
7
  var _web3Common = require("@ant-design/web3-common");
8
8
  var _web3Icons = require("@ant-design/web3-icons");
9
9
  var _jsxRuntime = require("react/jsx-runtime");
@@ -13,14 +13,7 @@ const Mainnet = exports.Mainnet = {
13
13
  icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_web3Icons.EthereumCircleColorful, {}),
14
14
  browser: {
15
15
  icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_web3Icons.EtherscanCircleColorful, {}),
16
- getBrowserLink: (address, type) => {
17
- if (type === 'address') {
18
- return `https://etherscan.io/address/${address}`;
19
- } else if (type === 'transaction') {
20
- return `https://etherscan.io/tx/${address}`;
21
- }
22
- throw new Error(`getBrowserLink unsupported type ${type}`);
23
- }
16
+ getBrowserLink: (0, _web3Common.createGetBrowserLink)('https://etherscan.io')
24
17
  },
25
18
  nativeCurrency: {
26
19
  icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_web3Icons.EthereumFilled, {}),
@@ -33,6 +26,10 @@ const Goerli = exports.Goerli = {
33
26
  id: _web3Common.ChainIds.Goerli,
34
27
  name: 'Goerli',
35
28
  icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_web3Icons.EthereumCircleColorful, {}),
29
+ browser: {
30
+ icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_web3Icons.EthereumCircleColorful, {}),
31
+ getBrowserLink: (0, _web3Common.createGetBrowserLink)('https://goerli.etherscan.io')
32
+ },
36
33
  nativeCurrency: {
37
34
  name: 'Ether',
38
35
  symbol: 'ETH',
@@ -43,6 +40,10 @@ const Polygon = exports.Polygon = {
43
40
  id: _web3Common.ChainIds.Polygon,
44
41
  name: 'Polygon',
45
42
  icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_web3Icons.PolygonCircleColorful, {}),
43
+ browser: {
44
+ icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_web3Icons.PolygonCircleColorful, {}),
45
+ getBrowserLink: (0, _web3Common.createGetBrowserLink)('https://polygonscan.com')
46
+ },
46
47
  nativeCurrency: {
47
48
  name: 'MATIC',
48
49
  symbol: 'MATIC',
@@ -53,6 +54,10 @@ const BSC = exports.BSC = {
53
54
  id: _web3Common.ChainIds.BSC,
54
55
  name: 'BNB Smart Chain',
55
56
  icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_web3Icons.BSCCircleColorful, {}),
57
+ browser: {
58
+ icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_web3Icons.BSCCircleColorful, {}),
59
+ getBrowserLink: (0, _web3Common.createGetBrowserLink)('https://bscscan.com')
60
+ },
56
61
  nativeCurrency: {
57
62
  decimals: 18,
58
63
  name: 'BNB',
@@ -63,6 +68,10 @@ const Arbitrum = exports.Arbitrum = {
63
68
  id: _web3Common.ChainIds.Arbitrum,
64
69
  name: 'Arbitrum One',
65
70
  icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_web3Icons.ArbitrumCircleColorful, {}),
71
+ browser: {
72
+ icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_web3Icons.ArbitrumCircleColorful, {}),
73
+ getBrowserLink: (0, _web3Common.createGetBrowserLink)('https://arbiscan.io')
74
+ },
66
75
  nativeCurrency: {
67
76
  name: 'Ether',
68
77
  symbol: 'ETH',
@@ -73,9 +82,27 @@ const Optimism = exports.Optimism = {
73
82
  id: _web3Common.ChainIds.Optimism,
74
83
  name: 'OP Mainnet',
75
84
  icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_web3Icons.OptimismCircleColorful, {}),
85
+ browser: {
86
+ icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_web3Icons.OptimismCircleColorful, {}),
87
+ getBrowserLink: (0, _web3Common.createGetBrowserLink)('https://optimistic.etherscan.io')
88
+ },
76
89
  nativeCurrency: {
77
90
  name: 'Ether',
78
91
  symbol: 'ETH',
79
92
  decimals: 18
80
93
  }
94
+ };
95
+ const Avalanche = exports.Avalanche = {
96
+ id: _web3Common.ChainIds.Avalanche,
97
+ name: 'Avalanche',
98
+ icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_web3Icons.AvalancheCircleColorful, {}),
99
+ browser: {
100
+ icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_web3Icons.AvalancheCircleColorful, {}),
101
+ getBrowserLink: (0, _web3Common.createGetBrowserLink)('https://snowtrace.io')
102
+ },
103
+ nativeCurrency: {
104
+ name: 'Avalanche',
105
+ symbol: 'AVAX',
106
+ decimals: 18
107
+ }
81
108
  };
@@ -1,3 +1,5 @@
1
1
  export * from './meta-mask';
2
2
  export * from './wallet-connect';
3
3
  export * from './coinbase-wallet';
4
+ export * from './token-pocket';
5
+ export * from './safeheron';
@@ -35,4 +35,26 @@ Object.keys(_coinbaseWallet).forEach(function (key) {
35
35
  return _coinbaseWallet[key];
36
36
  }
37
37
  });
38
+ });
39
+ var _tokenPocket = require("./token-pocket");
40
+ Object.keys(_tokenPocket).forEach(function (key) {
41
+ if (key === "default" || key === "__esModule") return;
42
+ if (key in exports && exports[key] === _tokenPocket[key]) return;
43
+ Object.defineProperty(exports, key, {
44
+ enumerable: true,
45
+ get: function () {
46
+ return _tokenPocket[key];
47
+ }
48
+ });
49
+ });
50
+ var _safeheron = require("./safeheron");
51
+ Object.keys(_safeheron).forEach(function (key) {
52
+ if (key === "default" || key === "__esModule") return;
53
+ if (key in exports && exports[key] === _safeheron[key]) return;
54
+ Object.defineProperty(exports, key, {
55
+ enumerable: true,
56
+ get: function () {
57
+ return _safeheron[key];
58
+ }
59
+ });
38
60
  });
@@ -0,0 +1,2 @@
1
+ import type { WalletMetadata } from '@ant-design/web3-common';
2
+ export declare const metadata_Safeheron: WalletMetadata;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.metadata_Safeheron = void 0;
7
+ var _web3Icons = require("@ant-design/web3-icons");
8
+ var _jsxRuntime = require("react/jsx-runtime");
9
+ const metadata_Safeheron = exports.metadata_Safeheron = {
10
+ icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_web3Icons.SafeheronColorful, {}),
11
+ name: 'Safeheron',
12
+ remark: 'Safeheron Wallet',
13
+ extensions: [{
14
+ key: 'Chrome',
15
+ browserIcon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_web3Icons.ChromeCircleColorful, {}),
16
+ browserName: 'Chrome',
17
+ link: 'https://chromewebstore.google.com/detail/safeheron/aiaghdjafpiofpainifbgfgjfpclngoh',
18
+ description: 'Access your wallet right from your favorite web browser.'
19
+ }]
20
+ };
@@ -0,0 +1,2 @@
1
+ import type { WalletMetadata } from '@ant-design/web3-common';
2
+ export declare const metadata_TokenPocket: WalletMetadata;
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.metadata_TokenPocket = void 0;
7
+ var _web3Icons = require("@ant-design/web3-icons");
8
+ var _jsxRuntime = require("react/jsx-runtime");
9
+ const metadata_TokenPocket = exports.metadata_TokenPocket = {
10
+ icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_web3Icons.TokenPocketColorful, {}),
11
+ name: 'TokenPocket',
12
+ remark: 'TokenPocket',
13
+ app: {
14
+ link: 'https://www.tokenpocket.pro/en/download/app'
15
+ },
16
+ extensions: [{
17
+ key: 'Chrome',
18
+ browserIcon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_web3Icons.ChromeCircleColorful, {}),
19
+ browserName: 'Chrome',
20
+ link: 'https://chromewebstore.google.com/detail/mfgccjchihfkkindfppnaooecgfneiii',
21
+ description: 'Access your wallet right from your favorite web browser.'
22
+ }]
23
+ };
package/package.json CHANGED
@@ -1,19 +1,37 @@
1
1
  {
2
2
  "name": "@ant-design/web3-assets",
3
- "version": "0.1.2",
4
- "exports": {
5
- "import": "./dist/esm/index.js",
6
- "require": "./dist/lib/index.js",
7
- "types": "./dist/esm/index.d.ts"
8
- },
3
+ "version": "1.1.0",
4
+ "main": "dist/lib/index.js",
5
+ "module": "dist/esm/index.js",
6
+ "typings": "dist/esm/index.d.ts",
9
7
  "files": [
10
8
  "dist",
11
9
  "CHANGELOG.md",
12
10
  "README.md"
13
11
  ],
12
+ "keywords": [
13
+ "ant",
14
+ "component",
15
+ "components",
16
+ "design",
17
+ "framework",
18
+ "frontend",
19
+ "react",
20
+ "react-component",
21
+ "ui",
22
+ "web3"
23
+ ],
24
+ "homepage": "https://we3.ant.design",
25
+ "bugs": {
26
+ "url": "https://github.com/ant-design/ant-design-web3/issues"
27
+ },
28
+ "repository": {
29
+ "type": "git",
30
+ "url": "https://github.com/ant-design/ant-design-web3"
31
+ },
14
32
  "dependencies": {
15
- "@ant-design/web3-common": "0.2.0",
16
- "@ant-design/web3-icons": "0.2.0"
33
+ "@ant-design/web3-common": "1.1.0",
34
+ "@ant-design/web3-icons": "1.1.0"
17
35
  },
18
36
  "devDependencies": {
19
37
  "@types/react": "^18.2.45",
@@ -28,6 +46,7 @@
28
46
  "react-dom": ">=17.0.0"
29
47
  },
30
48
  "publishConfig": {
49
+ "registry": "https://registry.npmjs.org",
31
50
  "access": "public"
32
51
  },
33
52
  "browserslist": [
@@ -1 +0,0 @@
1
- {"version":3,"file":"chains.d.ts","sourceRoot":"","sources":["chains.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAY,MAAM,yBAAyB,CAAC;AAY/D,eAAO,MAAM,OAAO,EAAE,KAgBrB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAKpB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAC;AAEF,eAAO,MAAM,GAAG,EAAE,KAKjB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAKtB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAKtB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"coinbase-wallet.d.ts","sourceRoot":"","sources":["coinbase-wallet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAG9D,eAAO,MAAM,uBAAuB,EAAE,cAgBrC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"meta-mask.d.ts","sourceRoot":"","sources":["meta-mask.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAG9D,eAAO,MAAM,iBAAiB,EAAE,cAiB/B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"wallet-connect.d.ts","sourceRoot":"","sources":["wallet-connect.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAG9D,eAAO,MAAM,sBAAsB,EAAE,cAOpC,CAAC"}