@ant-design/web3-assets 1.2.2 → 1.3.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 +14 -0
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/solana/chains.d.ts +7 -0
- package/dist/esm/solana/chains.js +45 -0
- package/dist/esm/solana/index.d.ts +1 -0
- package/dist/esm/solana/index.js +1 -0
- package/dist/esm/wallets/index.d.ts +1 -0
- package/dist/esm/wallets/index.js +2 -1
- package/dist/esm/wallets/phantom.d.ts +2 -0
- package/dist/esm/wallets/phantom.js +17 -0
- package/dist/lib/index.d.ts +1 -1
- package/dist/lib/index.js +4 -4
- package/dist/lib/solana/chains.d.ts +7 -0
- package/dist/lib/solana/chains.js +51 -0
- package/dist/lib/solana/index.d.ts +1 -0
- package/dist/lib/solana/index.js +16 -0
- package/dist/lib/wallets/index.d.ts +1 -0
- package/dist/lib/wallets/index.js +11 -0
- package/dist/lib/wallets/phantom.d.ts +2 -0
- package/dist/lib/wallets/phantom.js +23 -0
- package/package.json +27 -5
- /package/dist/esm/{chains.d.ts → chains/ethereum.d.ts} +0 -0
- /package/dist/esm/{chains.js → chains/ethereum.js} +0 -0
- /package/dist/lib/{chains.d.ts → chains/ethereum.d.ts} +0 -0
- /package/dist/lib/{chains.js → chains/ethereum.js} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @ant-design/web3-assets
|
|
2
2
|
|
|
3
|
+
## 1.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- d601345: Add support for Solana
|
|
8
|
+
- d601345: Address-like components support addressPrefix prop, add solana chain configs
|
|
9
|
+
|
|
10
|
+
## 1.2.3
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies [dead69b]
|
|
15
|
+
- @ant-design/web3-common@1.4.0
|
|
16
|
+
|
|
3
17
|
## 1.2.2
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './wallets';
|
|
2
|
-
export * from './chains';
|
|
2
|
+
export * from './chains/ethereum';
|
package/dist/esm/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from "./wallets/index.js";
|
|
2
|
-
export * from "./chains.js";
|
|
2
|
+
export * from "./chains/ethereum.js";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SolanaChainIds, type Chain } from '@ant-design/web3-common';
|
|
2
|
+
export interface SolanaChain extends Chain {
|
|
3
|
+
id: SolanaChainIds;
|
|
4
|
+
}
|
|
5
|
+
export declare const Solana: SolanaChain;
|
|
6
|
+
export declare const SolanaDevnet: SolanaChain;
|
|
7
|
+
export declare const SolanaTestnet: SolanaChain;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { createGetBrowserLink, SolanaChainIds } from '@ant-design/web3-common';
|
|
2
|
+
import { SolanaColorful } from '@ant-design/web3-icons';
|
|
3
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
+
export var Solana = {
|
|
5
|
+
id: SolanaChainIds.MainnetBeta,
|
|
6
|
+
name: 'Solana',
|
|
7
|
+
icon: /*#__PURE__*/_jsx(SolanaColorful, {}),
|
|
8
|
+
browser: {
|
|
9
|
+
icon: /*#__PURE__*/_jsx(SolanaColorful, {}),
|
|
10
|
+
getBrowserLink: createGetBrowserLink('https://explorer.solana.com')
|
|
11
|
+
},
|
|
12
|
+
nativeCurrency: {
|
|
13
|
+
name: 'Solana',
|
|
14
|
+
symbol: 'SOL',
|
|
15
|
+
decimals: 9
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
export var SolanaDevnet = {
|
|
19
|
+
id: SolanaChainIds.Devnet,
|
|
20
|
+
name: 'Solana Devnet',
|
|
21
|
+
icon: /*#__PURE__*/_jsx(SolanaColorful, {}),
|
|
22
|
+
browser: {
|
|
23
|
+
icon: /*#__PURE__*/_jsx(SolanaColorful, {}),
|
|
24
|
+
getBrowserLink: createGetBrowserLink('https://explorer.solana.com/?cluster=devnet')
|
|
25
|
+
},
|
|
26
|
+
nativeCurrency: {
|
|
27
|
+
name: 'Solana',
|
|
28
|
+
symbol: 'SOL',
|
|
29
|
+
decimals: 9
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
export var SolanaTestnet = {
|
|
33
|
+
id: SolanaChainIds.Testnet,
|
|
34
|
+
name: 'Solana Testnet',
|
|
35
|
+
icon: /*#__PURE__*/_jsx(SolanaColorful, {}),
|
|
36
|
+
browser: {
|
|
37
|
+
icon: /*#__PURE__*/_jsx(SolanaColorful, {}),
|
|
38
|
+
getBrowserLink: createGetBrowserLink('https://explorer.solana.com/?cluster=testnet')
|
|
39
|
+
},
|
|
40
|
+
nativeCurrency: {
|
|
41
|
+
name: 'Solana',
|
|
42
|
+
symbol: 'SOL',
|
|
43
|
+
decimals: 9
|
|
44
|
+
}
|
|
45
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './chains';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./chains.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ChromeCircleColorful, PhantomColorful } from '@ant-design/web3-icons';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
export var metadata_Phantom = {
|
|
4
|
+
icon: /*#__PURE__*/_jsx(PhantomColorful, {}),
|
|
5
|
+
name: 'Phantom',
|
|
6
|
+
remark: 'Phantom Wallet',
|
|
7
|
+
app: {
|
|
8
|
+
link: 'https://phantom.app/'
|
|
9
|
+
},
|
|
10
|
+
extensions: [{
|
|
11
|
+
key: 'Chrome',
|
|
12
|
+
browserIcon: /*#__PURE__*/_jsx(ChromeCircleColorful, {}),
|
|
13
|
+
browserName: 'Chrome',
|
|
14
|
+
link: 'https://chromewebstore.google.com/detail/phantom/bfnaelmomeimhlpmgjnjophhpkkoljpa',
|
|
15
|
+
description: 'Access your wallet right from your favorite web browser.'
|
|
16
|
+
}]
|
|
17
|
+
};
|
package/dist/lib/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './wallets';
|
|
2
|
-
export * from './chains';
|
|
2
|
+
export * from './chains/ethereum';
|
package/dist/lib/index.js
CHANGED
|
@@ -14,14 +14,14 @@ Object.keys(_index).forEach(function (key) {
|
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
16
|
});
|
|
17
|
-
var
|
|
18
|
-
Object.keys(
|
|
17
|
+
var _ethereum = require("./chains/ethereum.js");
|
|
18
|
+
Object.keys(_ethereum).forEach(function (key) {
|
|
19
19
|
if (key === "default" || key === "__esModule") return;
|
|
20
|
-
if (key in exports && exports[key] ===
|
|
20
|
+
if (key in exports && exports[key] === _ethereum[key]) return;
|
|
21
21
|
Object.defineProperty(exports, key, {
|
|
22
22
|
enumerable: true,
|
|
23
23
|
get: function () {
|
|
24
|
-
return
|
|
24
|
+
return _ethereum[key];
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
27
|
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SolanaChainIds, type Chain } from '@ant-design/web3-common';
|
|
2
|
+
export interface SolanaChain extends Chain {
|
|
3
|
+
id: SolanaChainIds;
|
|
4
|
+
}
|
|
5
|
+
export declare const Solana: SolanaChain;
|
|
6
|
+
export declare const SolanaDevnet: SolanaChain;
|
|
7
|
+
export declare const SolanaTestnet: SolanaChain;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.SolanaTestnet = exports.SolanaDevnet = exports.Solana = void 0;
|
|
7
|
+
var _web3Common = require("@ant-design/web3-common");
|
|
8
|
+
var _web3Icons = require("@ant-design/web3-icons");
|
|
9
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
+
const Solana = exports.Solana = {
|
|
11
|
+
id: _web3Common.SolanaChainIds.MainnetBeta,
|
|
12
|
+
name: 'Solana',
|
|
13
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_web3Icons.SolanaColorful, {}),
|
|
14
|
+
browser: {
|
|
15
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_web3Icons.SolanaColorful, {}),
|
|
16
|
+
getBrowserLink: (0, _web3Common.createGetBrowserLink)('https://explorer.solana.com')
|
|
17
|
+
},
|
|
18
|
+
nativeCurrency: {
|
|
19
|
+
name: 'Solana',
|
|
20
|
+
symbol: 'SOL',
|
|
21
|
+
decimals: 9
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
const SolanaDevnet = exports.SolanaDevnet = {
|
|
25
|
+
id: _web3Common.SolanaChainIds.Devnet,
|
|
26
|
+
name: 'Solana Devnet',
|
|
27
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_web3Icons.SolanaColorful, {}),
|
|
28
|
+
browser: {
|
|
29
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_web3Icons.SolanaColorful, {}),
|
|
30
|
+
getBrowserLink: (0, _web3Common.createGetBrowserLink)('https://explorer.solana.com/?cluster=devnet')
|
|
31
|
+
},
|
|
32
|
+
nativeCurrency: {
|
|
33
|
+
name: 'Solana',
|
|
34
|
+
symbol: 'SOL',
|
|
35
|
+
decimals: 9
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
const SolanaTestnet = exports.SolanaTestnet = {
|
|
39
|
+
id: _web3Common.SolanaChainIds.Testnet,
|
|
40
|
+
name: 'Solana Testnet',
|
|
41
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_web3Icons.SolanaColorful, {}),
|
|
42
|
+
browser: {
|
|
43
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_web3Icons.SolanaColorful, {}),
|
|
44
|
+
getBrowserLink: (0, _web3Common.createGetBrowserLink)('https://explorer.solana.com/?cluster=testnet')
|
|
45
|
+
},
|
|
46
|
+
nativeCurrency: {
|
|
47
|
+
name: 'Solana',
|
|
48
|
+
symbol: 'SOL',
|
|
49
|
+
decimals: 9
|
|
50
|
+
}
|
|
51
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './chains';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _chains = require("./chains.js");
|
|
7
|
+
Object.keys(_chains).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _chains[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () {
|
|
13
|
+
return _chains[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
@@ -68,4 +68,15 @@ Object.keys(_okxWallet).forEach(function (key) {
|
|
|
68
68
|
return _okxWallet[key];
|
|
69
69
|
}
|
|
70
70
|
});
|
|
71
|
+
});
|
|
72
|
+
var _phantom = require("./phantom.js");
|
|
73
|
+
Object.keys(_phantom).forEach(function (key) {
|
|
74
|
+
if (key === "default" || key === "__esModule") return;
|
|
75
|
+
if (key in exports && exports[key] === _phantom[key]) return;
|
|
76
|
+
Object.defineProperty(exports, key, {
|
|
77
|
+
enumerable: true,
|
|
78
|
+
get: function () {
|
|
79
|
+
return _phantom[key];
|
|
80
|
+
}
|
|
81
|
+
});
|
|
71
82
|
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.metadata_Phantom = void 0;
|
|
7
|
+
var _web3Icons = require("@ant-design/web3-icons");
|
|
8
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
9
|
+
const metadata_Phantom = exports.metadata_Phantom = {
|
|
10
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_web3Icons.PhantomColorful, {}),
|
|
11
|
+
name: 'Phantom',
|
|
12
|
+
remark: 'Phantom Wallet',
|
|
13
|
+
app: {
|
|
14
|
+
link: 'https://phantom.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/phantom/bfnaelmomeimhlpmgjnjophhpkkoljpa',
|
|
21
|
+
description: 'Access your wallet right from your favorite web browser.'
|
|
22
|
+
}]
|
|
23
|
+
};
|
package/package.json
CHANGED
|
@@ -1,14 +1,36 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ant-design/web3-assets",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/esm/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
7
7
|
"typings": "dist/esm/index.d.ts",
|
|
8
8
|
"exports": {
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
".": {
|
|
10
|
+
"import": "./dist/esm/index.js",
|
|
11
|
+
"require": "./dist/lib/index.js",
|
|
12
|
+
"types": "./dist/esm/index.d.ts"
|
|
13
|
+
},
|
|
14
|
+
"./ethereum": {
|
|
15
|
+
"import": "./dist/esm/chains/ethereum.js",
|
|
16
|
+
"require": "./dist/lib/chains/ethereum.js",
|
|
17
|
+
"types": "./dist/esm/chains/ethereum.d.ts"
|
|
18
|
+
},
|
|
19
|
+
"./solana": {
|
|
20
|
+
"import": "./dist/esm/solana/index.js",
|
|
21
|
+
"require": "./dist/lib/solana/index.js",
|
|
22
|
+
"types": "./dist/esm/solana/index.d.ts"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"typesVersions": {
|
|
26
|
+
"*": {
|
|
27
|
+
"solana": [
|
|
28
|
+
"./dist/esm/solana/index.d.ts"
|
|
29
|
+
],
|
|
30
|
+
"*": [
|
|
31
|
+
"./dist/esm/index.d.ts"
|
|
32
|
+
]
|
|
33
|
+
}
|
|
12
34
|
},
|
|
13
35
|
"files": [
|
|
14
36
|
"dist",
|
|
@@ -37,7 +59,7 @@
|
|
|
37
59
|
},
|
|
38
60
|
"dependencies": {
|
|
39
61
|
"@ant-design/web3-icons": "1.3.2",
|
|
40
|
-
"@ant-design/web3-common": "1.
|
|
62
|
+
"@ant-design/web3-common": "1.4.0"
|
|
41
63
|
},
|
|
42
64
|
"devDependencies": {
|
|
43
65
|
"@types/react": "^18.2.45",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|