@ant-design/web3-assets 1.4.0 → 1.5.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 +26 -0
- package/dist/esm/chains/ethereum.d.ts +1 -0
- package/dist/esm/chains/ethereum.js +17 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/solana/index.js +1 -1
- package/dist/esm/wallets/index.js +8 -8
- package/dist/esm/wallets/okx-wallet.js +2 -2
- package/dist/esm/wallets/wallet-connect.js +1 -1
- package/dist/lib/chains/ethereum.d.ts +1 -0
- package/dist/lib/chains/ethereum.js +17 -1
- package/dist/lib/index.js +5 -5
- package/dist/lib/solana/index.js +1 -1
- package/dist/lib/wallets/index.js +8 -8
- package/dist/lib/wallets/okx-wallet.js +2 -2
- package/dist/lib/wallets/wallet-connect.js +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# @ant-design/web3-assets
|
|
2
2
|
|
|
3
|
+
## 1.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- b5eccf9: feat: Support quick connect
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [b5eccf9]
|
|
12
|
+
- Updated dependencies [ec92a76]
|
|
13
|
+
- Updated dependencies [cb0a288]
|
|
14
|
+
- Updated dependencies [6f4c55f]
|
|
15
|
+
- @ant-design/web3-common@1.7.0
|
|
16
|
+
- @ant-design/web3-icons@1.4.2
|
|
17
|
+
|
|
18
|
+
## 1.4.1
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- d273651: fix: OKX Wallet name
|
|
23
|
+
- Updated dependencies [52d58e5]
|
|
24
|
+
- Updated dependencies [201c2ec]
|
|
25
|
+
- Updated dependencies [0958090]
|
|
26
|
+
- @ant-design/web3-common@1.6.0
|
|
27
|
+
- @ant-design/web3-icons@1.4.1
|
|
28
|
+
|
|
3
29
|
## 1.4.0
|
|
4
30
|
|
|
5
31
|
### Minor Changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChainIds, createGetBrowserLink } from '@ant-design/web3-common';
|
|
2
|
-
import { ArbitrumCircleColorful, AvalancheCircleColorful, BSCCircleColorful, EthereumCircleColorful, EthereumFilled, EtherscanCircleColorful, OptimismCircleColorful, PolygonCircleColorful } from '@ant-design/web3-icons';
|
|
2
|
+
import { ArbitrumCircleColorful, AvalancheCircleColorful, BSCCircleColorful, EthereumCircleColorful, EthereumFilled, EtherscanCircleColorful, OkxWalletColorful, OptimismCircleColorful, PolygonCircleColorful } 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,
|
|
@@ -99,4 +99,20 @@ export var Avalanche = {
|
|
|
99
99
|
symbol: 'AVAX',
|
|
100
100
|
decimals: 18
|
|
101
101
|
}
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
// OKX X1: https://www.okx.com/cn/x1/docs/developer/build-on-x1/quickstart
|
|
105
|
+
export var X1Testnet = {
|
|
106
|
+
id: ChainIds.X1Testnet,
|
|
107
|
+
name: 'X1 testnet',
|
|
108
|
+
icon: /*#__PURE__*/_jsx(OkxWalletColorful, {}),
|
|
109
|
+
browser: {
|
|
110
|
+
icon: /*#__PURE__*/_jsx(OkxWalletColorful, {}),
|
|
111
|
+
getBrowserLink: createGetBrowserLink('https://www.okx.com/explorer/x1-test')
|
|
112
|
+
},
|
|
113
|
+
nativeCurrency: {
|
|
114
|
+
name: 'OKB',
|
|
115
|
+
symbol: 'OKB',
|
|
116
|
+
decimals: 18
|
|
117
|
+
}
|
|
102
118
|
};
|
package/dist/esm/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./wallets
|
|
2
|
-
export * from "./chains/ethereum
|
|
1
|
+
export * from "./wallets";
|
|
2
|
+
export * from "./chains/ethereum";
|
package/dist/esm/solana/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./chains
|
|
1
|
+
export * from "./chains";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export * from "./meta-mask
|
|
2
|
-
export * from "./wallet-connect
|
|
3
|
-
export * from "./coinbase-wallet
|
|
4
|
-
export * from "./token-pocket
|
|
5
|
-
export * from "./safeheron
|
|
6
|
-
export * from "./okx-wallet
|
|
7
|
-
export * from "./phantom
|
|
8
|
-
export * from "./im-token
|
|
1
|
+
export * from "./meta-mask";
|
|
2
|
+
export * from "./wallet-connect";
|
|
3
|
+
export * from "./coinbase-wallet";
|
|
4
|
+
export * from "./token-pocket";
|
|
5
|
+
export * from "./safeheron";
|
|
6
|
+
export * from "./okx-wallet";
|
|
7
|
+
export * from "./phantom";
|
|
8
|
+
export * from "./im-token";
|
|
@@ -2,8 +2,8 @@ import { ChromeCircleColorful, OkxWalletColorful } from '@ant-design/web3-icons'
|
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
export var metadata_OkxWallet = {
|
|
4
4
|
icon: /*#__PURE__*/_jsx(OkxWalletColorful, {}),
|
|
5
|
-
name: '
|
|
6
|
-
remark: '
|
|
5
|
+
name: 'OKX Wallet',
|
|
6
|
+
remark: 'OKX Wallet',
|
|
7
7
|
app: {
|
|
8
8
|
link: 'https://www.okx.com/download'
|
|
9
9
|
},
|
|
@@ -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.Avalanche = exports.Arbitrum = void 0;
|
|
6
|
+
exports.X1Testnet = 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");
|
|
@@ -105,4 +105,20 @@ const Avalanche = exports.Avalanche = {
|
|
|
105
105
|
symbol: 'AVAX',
|
|
106
106
|
decimals: 18
|
|
107
107
|
}
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
// OKX X1: https://www.okx.com/cn/x1/docs/developer/build-on-x1/quickstart
|
|
111
|
+
const X1Testnet = exports.X1Testnet = {
|
|
112
|
+
id: _web3Common.ChainIds.X1Testnet,
|
|
113
|
+
name: 'X1 testnet',
|
|
114
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_web3Icons.OkxWalletColorful, {}),
|
|
115
|
+
browser: {
|
|
116
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_web3Icons.OkxWalletColorful, {}),
|
|
117
|
+
getBrowserLink: (0, _web3Common.createGetBrowserLink)('https://www.okx.com/explorer/x1-test')
|
|
118
|
+
},
|
|
119
|
+
nativeCurrency: {
|
|
120
|
+
name: 'OKB',
|
|
121
|
+
symbol: 'OKB',
|
|
122
|
+
decimals: 18
|
|
123
|
+
}
|
|
108
124
|
};
|
package/dist/lib/index.js
CHANGED
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
var
|
|
7
|
-
Object.keys(
|
|
6
|
+
var _wallets = require("./wallets");
|
|
7
|
+
Object.keys(_wallets).forEach(function (key) {
|
|
8
8
|
if (key === "default" || key === "__esModule") return;
|
|
9
|
-
if (key in exports && exports[key] ===
|
|
9
|
+
if (key in exports && exports[key] === _wallets[key]) return;
|
|
10
10
|
Object.defineProperty(exports, key, {
|
|
11
11
|
enumerable: true,
|
|
12
12
|
get: function () {
|
|
13
|
-
return
|
|
13
|
+
return _wallets[key];
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
16
|
});
|
|
17
|
-
var _ethereum = require("./chains/ethereum
|
|
17
|
+
var _ethereum = require("./chains/ethereum");
|
|
18
18
|
Object.keys(_ethereum).forEach(function (key) {
|
|
19
19
|
if (key === "default" || key === "__esModule") return;
|
|
20
20
|
if (key in exports && exports[key] === _ethereum[key]) return;
|
package/dist/lib/solana/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
var _chains = require("./chains
|
|
6
|
+
var _chains = require("./chains");
|
|
7
7
|
Object.keys(_chains).forEach(function (key) {
|
|
8
8
|
if (key === "default" || key === "__esModule") return;
|
|
9
9
|
if (key in exports && exports[key] === _chains[key]) return;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
var _metaMask = require("./meta-mask
|
|
6
|
+
var _metaMask = require("./meta-mask");
|
|
7
7
|
Object.keys(_metaMask).forEach(function (key) {
|
|
8
8
|
if (key === "default" || key === "__esModule") return;
|
|
9
9
|
if (key in exports && exports[key] === _metaMask[key]) return;
|
|
@@ -14,7 +14,7 @@ Object.keys(_metaMask).forEach(function (key) {
|
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
16
|
});
|
|
17
|
-
var _walletConnect = require("./wallet-connect
|
|
17
|
+
var _walletConnect = require("./wallet-connect");
|
|
18
18
|
Object.keys(_walletConnect).forEach(function (key) {
|
|
19
19
|
if (key === "default" || key === "__esModule") return;
|
|
20
20
|
if (key in exports && exports[key] === _walletConnect[key]) return;
|
|
@@ -25,7 +25,7 @@ Object.keys(_walletConnect).forEach(function (key) {
|
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
27
|
});
|
|
28
|
-
var _coinbaseWallet = require("./coinbase-wallet
|
|
28
|
+
var _coinbaseWallet = require("./coinbase-wallet");
|
|
29
29
|
Object.keys(_coinbaseWallet).forEach(function (key) {
|
|
30
30
|
if (key === "default" || key === "__esModule") return;
|
|
31
31
|
if (key in exports && exports[key] === _coinbaseWallet[key]) return;
|
|
@@ -36,7 +36,7 @@ Object.keys(_coinbaseWallet).forEach(function (key) {
|
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
38
|
});
|
|
39
|
-
var _tokenPocket = require("./token-pocket
|
|
39
|
+
var _tokenPocket = require("./token-pocket");
|
|
40
40
|
Object.keys(_tokenPocket).forEach(function (key) {
|
|
41
41
|
if (key === "default" || key === "__esModule") return;
|
|
42
42
|
if (key in exports && exports[key] === _tokenPocket[key]) return;
|
|
@@ -47,7 +47,7 @@ Object.keys(_tokenPocket).forEach(function (key) {
|
|
|
47
47
|
}
|
|
48
48
|
});
|
|
49
49
|
});
|
|
50
|
-
var _safeheron = require("./safeheron
|
|
50
|
+
var _safeheron = require("./safeheron");
|
|
51
51
|
Object.keys(_safeheron).forEach(function (key) {
|
|
52
52
|
if (key === "default" || key === "__esModule") return;
|
|
53
53
|
if (key in exports && exports[key] === _safeheron[key]) return;
|
|
@@ -58,7 +58,7 @@ Object.keys(_safeheron).forEach(function (key) {
|
|
|
58
58
|
}
|
|
59
59
|
});
|
|
60
60
|
});
|
|
61
|
-
var _okxWallet = require("./okx-wallet
|
|
61
|
+
var _okxWallet = require("./okx-wallet");
|
|
62
62
|
Object.keys(_okxWallet).forEach(function (key) {
|
|
63
63
|
if (key === "default" || key === "__esModule") return;
|
|
64
64
|
if (key in exports && exports[key] === _okxWallet[key]) return;
|
|
@@ -69,7 +69,7 @@ Object.keys(_okxWallet).forEach(function (key) {
|
|
|
69
69
|
}
|
|
70
70
|
});
|
|
71
71
|
});
|
|
72
|
-
var _phantom = require("./phantom
|
|
72
|
+
var _phantom = require("./phantom");
|
|
73
73
|
Object.keys(_phantom).forEach(function (key) {
|
|
74
74
|
if (key === "default" || key === "__esModule") return;
|
|
75
75
|
if (key in exports && exports[key] === _phantom[key]) return;
|
|
@@ -80,7 +80,7 @@ Object.keys(_phantom).forEach(function (key) {
|
|
|
80
80
|
}
|
|
81
81
|
});
|
|
82
82
|
});
|
|
83
|
-
var _imToken = require("./im-token
|
|
83
|
+
var _imToken = require("./im-token");
|
|
84
84
|
Object.keys(_imToken).forEach(function (key) {
|
|
85
85
|
if (key === "default" || key === "__esModule") return;
|
|
86
86
|
if (key in exports && exports[key] === _imToken[key]) return;
|
|
@@ -8,8 +8,8 @@ var _web3Icons = require("@ant-design/web3-icons");
|
|
|
8
8
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
9
9
|
const metadata_OkxWallet = exports.metadata_OkxWallet = {
|
|
10
10
|
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_web3Icons.OkxWalletColorful, {}),
|
|
11
|
-
name: '
|
|
12
|
-
remark: '
|
|
11
|
+
name: 'OKX Wallet',
|
|
12
|
+
remark: 'OKX Wallet',
|
|
13
13
|
app: {
|
|
14
14
|
link: 'https://www.okx.com/download'
|
|
15
15
|
},
|
|
@@ -10,7 +10,7 @@ const metadata_WalletConnect = exports.metadata_WalletConnect = {
|
|
|
10
10
|
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_web3Icons.WalletConnectColorful, {}),
|
|
11
11
|
name: 'WalletConnect',
|
|
12
12
|
remark: 'Connect with mobile APP',
|
|
13
|
-
|
|
13
|
+
universalProtocol: {
|
|
14
14
|
link: 'https://walletconnect.com/'
|
|
15
15
|
}
|
|
16
16
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ant-design/web3-assets",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/esm/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -58,16 +58,16 @@
|
|
|
58
58
|
"url": "https://github.com/ant-design/ant-design-web3"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@ant-design/web3-icons": "1.4.
|
|
62
|
-
"@ant-design/web3-common": "1.
|
|
61
|
+
"@ant-design/web3-icons": "1.4.2",
|
|
62
|
+
"@ant-design/web3-common": "1.7.0"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"@types/react": "^18.2.
|
|
65
|
+
"@types/react": "^18.2.65",
|
|
66
66
|
"@types/react-dom": "^18.2.19",
|
|
67
67
|
"father": "^4.3.8",
|
|
68
68
|
"react": "^18.2.0",
|
|
69
69
|
"react-dom": "^18.2.0",
|
|
70
|
-
"typescript": "^5.
|
|
70
|
+
"typescript": "^5.4.2"
|
|
71
71
|
},
|
|
72
72
|
"peerDependencies": {
|
|
73
73
|
"react": ">=17.0.0",
|