@ant-design/web3-assets 1.6.0 → 1.7.1

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,29 @@
1
1
  # @ant-design/web3-assets
2
2
 
3
+ ## 1.7.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 02e74aa: fix: set sideEffects false for enable treeshaking
8
+ - Updated dependencies [02e74aa]
9
+ - @ant-design/web3-common@1.9.1
10
+
11
+ ## 1.7.0
12
+
13
+ ### Minor Changes
14
+
15
+ - 994ead5: feat: Add test chain hardhat and localhost
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies [fc31d17]
20
+ - Updated dependencies [a90c674]
21
+ - Updated dependencies [4a9f3e2]
22
+ - Updated dependencies [5736ad9]
23
+ - Updated dependencies [994ead5]
24
+ - @ant-design/web3-icons@1.6.0
25
+ - @ant-design/web3-common@1.9.0
26
+
3
27
  ## 1.6.0
4
28
 
5
29
  ### Minor Changes
@@ -9,7 +33,7 @@
9
33
 
10
34
  ### Patch Changes
11
35
 
12
- - dfef374: feat: add scoll icons and chains
36
+ - dfef374: feat: add scroll icons and chains
13
37
  - ab3eac4: feat: support for bitcoin
14
38
  - Updated dependencies [ac9240c]
15
39
  - Updated dependencies [7fb2d02]
@@ -14,3 +14,5 @@ export declare const Avalanche: Chain;
14
14
  export declare const X1Testnet: Chain;
15
15
  export declare const Scroll: Chain;
16
16
  export declare const ScrollSepolia: Chain;
17
+ export declare const Hardhat: Chain;
18
+ export declare const Localhost: Chain;
@@ -1,5 +1,5 @@
1
1
  import { ChainIds, createGetBrowserLink } from '@ant-design/web3-common';
2
- import { ArbitrumCircleColorful, AvalancheCircleColorful, BSCCircleColorful, EthereumCircleColorful, EthereumFilled, EtherscanCircleColorful, OkxWalletColorful, OptimismCircleColorful, PolygonCircleColorful, ScrollColorful } from '@ant-design/web3-icons';
2
+ import { ArbitrumCircleColorful, AvalancheCircleColorful, BSCCircleColorful, EthereumCircleColorful, EthereumColorful, EthereumFilled, EtherscanCircleColorful, HardhatColorful, OkxWalletColorful, OptimismCircleColorful, PolygonCircleColorful, ScrollColorful } from '@ant-design/web3-icons';
3
3
  import { jsx as _jsx } from "react/jsx-runtime";
4
4
  export var Mainnet = {
5
5
  id: ChainIds.Mainnet,
@@ -175,4 +175,26 @@ export var ScrollSepolia = {
175
175
  symbol: 'ETH',
176
176
  decimals: 18
177
177
  }
178
+ };
179
+ export var Hardhat = {
180
+ id: ChainIds.Hardhat,
181
+ name: 'Hardhat',
182
+ icon: /*#__PURE__*/_jsx(HardhatColorful, {}),
183
+ nativeCurrency: {
184
+ icon: /*#__PURE__*/_jsx(EthereumFilled, {}),
185
+ name: 'Ether',
186
+ symbol: 'ETH',
187
+ decimals: 18
188
+ }
189
+ };
190
+ export var Localhost = {
191
+ id: ChainIds.Localhost,
192
+ name: 'Localhost',
193
+ icon: /*#__PURE__*/_jsx(EthereumColorful, {}),
194
+ nativeCurrency: {
195
+ icon: /*#__PURE__*/_jsx(EthereumFilled, {}),
196
+ name: 'Ether',
197
+ symbol: 'ETH',
198
+ decimals: 18
199
+ }
178
200
  };
@@ -14,3 +14,5 @@ export declare const Avalanche: Chain;
14
14
  export declare const X1Testnet: Chain;
15
15
  export declare const Scroll: Chain;
16
16
  export declare const ScrollSepolia: Chain;
17
+ export declare const Hardhat: Chain;
18
+ export declare const Localhost: Chain;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.X1Testnet = exports.Sepolia = exports.ScrollSepolia = exports.Scroll = exports.Polygon = exports.Optimism = exports.Mainnet = exports.Holesky = exports.Goerli = exports.BSC = exports.Avalanche = exports.Arbitrum = void 0;
6
+ exports.X1Testnet = exports.Sepolia = exports.ScrollSepolia = exports.Scroll = exports.Polygon = exports.Optimism = exports.Mainnet = exports.Localhost = exports.Holesky = exports.Hardhat = 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");
@@ -181,4 +181,26 @@ const ScrollSepolia = exports.ScrollSepolia = {
181
181
  symbol: 'ETH',
182
182
  decimals: 18
183
183
  }
184
+ };
185
+ const Hardhat = exports.Hardhat = {
186
+ id: _web3Common.ChainIds.Hardhat,
187
+ name: 'Hardhat',
188
+ icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_web3Icons.HardhatColorful, {}),
189
+ nativeCurrency: {
190
+ icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_web3Icons.EthereumFilled, {}),
191
+ name: 'Ether',
192
+ symbol: 'ETH',
193
+ decimals: 18
194
+ }
195
+ };
196
+ const Localhost = exports.Localhost = {
197
+ id: _web3Common.ChainIds.Localhost,
198
+ name: 'Localhost',
199
+ icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_web3Icons.EthereumColorful, {}),
200
+ nativeCurrency: {
201
+ icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_web3Icons.EthereumFilled, {}),
202
+ name: 'Ether',
203
+ symbol: 'ETH',
204
+ decimals: 18
205
+ }
184
206
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ant-design/web3-assets",
3
- "version": "1.6.0",
3
+ "version": "1.7.1",
4
4
  "type": "module",
5
5
  "main": "dist/esm/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -22,6 +22,7 @@
22
22
  "types": "./dist/esm/solana/index.d.ts"
23
23
  }
24
24
  },
25
+ "sideEffects": false,
25
26
  "typesVersions": {
26
27
  "*": {
27
28
  "solana": [
@@ -58,13 +59,13 @@
58
59
  "url": "https://github.com/ant-design/ant-design-web3"
59
60
  },
60
61
  "dependencies": {
61
- "@ant-design/web3-common": "1.8.0",
62
- "@ant-design/web3-icons": "1.5.0"
62
+ "@ant-design/web3-common": "1.9.1",
63
+ "@ant-design/web3-icons": "1.6.0"
63
64
  },
64
65
  "devDependencies": {
65
66
  "@types/react": "^18.2.78",
66
67
  "@types/react-dom": "^18.2.25",
67
- "father": "^4.3.8",
68
+ "father": "^4.4.0",
68
69
  "react": "^18.2.0",
69
70
  "react-dom": "^18.2.0",
70
71
  "typescript": "^5.4.4"