@ant-design/web3-wagmi 2.10.3 → 2.12.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 +27 -0
- package/dist/esm/chains.d.ts +1 -0
- package/dist/esm/chains.js +6 -2
- package/dist/esm/wagmi-provider/__mocks__/wagmiBaseMock.d.ts +4 -1
- package/dist/esm/wallets/index.d.ts +1 -0
- package/dist/esm/wallets/index.js +2 -1
- package/dist/esm/wallets/rainbow-wallet.d.ts +2 -0
- package/dist/esm/wallets/rainbow-wallet.js +11 -0
- package/dist/lib/chains.d.ts +1 -0
- package/dist/lib/chains.js +5 -1
- package/dist/lib/wagmi-provider/__mocks__/wagmiBaseMock.d.ts +4 -1
- package/dist/lib/wallets/index.d.ts +1 -0
- package/dist/lib/wallets/index.js +11 -0
- package/dist/lib/wallets/rainbow-wallet.d.ts +2 -0
- package/dist/lib/wallets/rainbow-wallet.js +18 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# @ant-design/web3-wagmi
|
|
2
2
|
|
|
3
|
+
## 2.12.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 640bce9: feat: support base chain
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [640bce9]
|
|
12
|
+
- Updated dependencies [3d6d7c6]
|
|
13
|
+
- @ant-design/web3-assets@1.14.0
|
|
14
|
+
- @ant-design/web3-common@1.21.0
|
|
15
|
+
|
|
16
|
+
## 2.11.0
|
|
17
|
+
|
|
18
|
+
### Minor Changes
|
|
19
|
+
|
|
20
|
+
- 98dc8ef: feat: Support wallet Rainbow
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- Updated dependencies [98dc8ef]
|
|
25
|
+
- Updated dependencies [b309635]
|
|
26
|
+
- Updated dependencies [d9629ed]
|
|
27
|
+
- @ant-design/web3-assets@1.13.0
|
|
28
|
+
- @ant-design/web3-common@1.20.0
|
|
29
|
+
|
|
3
30
|
## 2.10.3
|
|
4
31
|
|
|
5
32
|
### Patch Changes
|
package/dist/esm/chains.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export declare const BSC: ChainAssetWithWagmiChain;
|
|
|
8
8
|
export declare const Arbitrum: ChainAssetWithWagmiChain;
|
|
9
9
|
export declare const Optimism: ChainAssetWithWagmiChain;
|
|
10
10
|
export declare const Avalanche: ChainAssetWithWagmiChain;
|
|
11
|
+
export declare const Base: ChainAssetWithWagmiChain;
|
|
11
12
|
export declare const X1Testnet: ChainAssetWithWagmiChain;
|
|
12
13
|
export declare const Scroll: ChainAssetWithWagmiChain;
|
|
13
14
|
export declare const ScrollSepolia: ChainAssetWithWagmiChain;
|
package/dist/esm/chains.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Arbitrum as ArbitrumAsset, Avalanche as AvalancheAsset, BSC as BSCAsset, Goerli as GoerliAsset, Hardhat as HardhatAsset, Holesky as HoleskyAsset, Localhost as LocalhostAsset, Mainnet as MainnetAsset, Optimism as OptimismAsset, Polygon as PolygonAsset, Scroll as ScrollAsset, ScrollSepolia as ScrollSepoliaAsset, Sepolia as SepoliaAsset, X1Testnet as X1TestnetAsset } from '@ant-design/web3-assets';
|
|
2
|
-
import { arbitrum, avalanche, bsc, goerli, hardhat, holesky, localhost, mainnet, optimism, polygon, scroll, scrollSepolia, sepolia } from 'wagmi/chains';
|
|
1
|
+
import { Arbitrum as ArbitrumAsset, Avalanche as AvalancheAsset, Base as BaseAsset, BSC as BSCAsset, Goerli as GoerliAsset, Hardhat as HardhatAsset, Holesky as HoleskyAsset, Localhost as LocalhostAsset, Mainnet as MainnetAsset, Optimism as OptimismAsset, Polygon as PolygonAsset, Scroll as ScrollAsset, ScrollSepolia as ScrollSepoliaAsset, Sepolia as SepoliaAsset, X1Testnet as X1TestnetAsset } from '@ant-design/web3-assets';
|
|
2
|
+
import { arbitrum, avalanche, base, bsc, goerli, hardhat, holesky, localhost, mainnet, optimism, polygon, scroll, scrollSepolia, sepolia } from 'wagmi/chains';
|
|
3
3
|
export const Mainnet = {
|
|
4
4
|
...MainnetAsset,
|
|
5
5
|
wagmiChain: mainnet
|
|
@@ -36,6 +36,10 @@ export const Avalanche = {
|
|
|
36
36
|
...AvalancheAsset,
|
|
37
37
|
wagmiChain: avalanche
|
|
38
38
|
};
|
|
39
|
+
export const Base = {
|
|
40
|
+
...BaseAsset,
|
|
41
|
+
wagmiChain: base
|
|
42
|
+
};
|
|
39
43
|
|
|
40
44
|
// OKX X1: https://www.okx.com/cn/x1/docs/developer/build-on-x1/quickstart
|
|
41
45
|
export const X1Testnet = {
|
|
@@ -8,6 +8,7 @@ export declare const wagmiBaseMock: {
|
|
|
8
8
|
readonly apiUrl: "https://api.etherscan.io/api";
|
|
9
9
|
};
|
|
10
10
|
};
|
|
11
|
+
blockTime?: number | undefined;
|
|
11
12
|
contracts: {
|
|
12
13
|
readonly ensRegistry: {
|
|
13
14
|
readonly address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
|
|
@@ -21,6 +22,7 @@ export declare const wagmiBaseMock: {
|
|
|
21
22
|
readonly blockCreated: 14353601;
|
|
22
23
|
};
|
|
23
24
|
};
|
|
25
|
+
ensTlds?: readonly string[] | undefined;
|
|
24
26
|
id: 1;
|
|
25
27
|
name: "Ethereum";
|
|
26
28
|
nativeCurrency: {
|
|
@@ -28,9 +30,10 @@ export declare const wagmiBaseMock: {
|
|
|
28
30
|
readonly symbol: "ETH";
|
|
29
31
|
readonly decimals: 18;
|
|
30
32
|
};
|
|
33
|
+
experimental_preconfirmationTime?: number | undefined;
|
|
31
34
|
rpcUrls: {
|
|
32
35
|
readonly default: {
|
|
33
|
-
readonly http: readonly ["https://
|
|
36
|
+
readonly http: readonly ["https://eth.merkle.io"];
|
|
34
37
|
};
|
|
35
38
|
};
|
|
36
39
|
sourceId?: number | undefined;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { metadata_RainbowWallet } from '@ant-design/web3-assets';
|
|
2
|
+
import { injected } from 'wagmi/connectors';
|
|
3
|
+
import { UniversalWallet } from "./universal-wallet";
|
|
4
|
+
export const RainbowWallet = metadata => {
|
|
5
|
+
return new UniversalWallet({
|
|
6
|
+
...metadata_RainbowWallet,
|
|
7
|
+
...metadata
|
|
8
|
+
}, () => injected({
|
|
9
|
+
target: 'rainbow'
|
|
10
|
+
}));
|
|
11
|
+
};
|
package/dist/lib/chains.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export declare const BSC: ChainAssetWithWagmiChain;
|
|
|
8
8
|
export declare const Arbitrum: ChainAssetWithWagmiChain;
|
|
9
9
|
export declare const Optimism: ChainAssetWithWagmiChain;
|
|
10
10
|
export declare const Avalanche: ChainAssetWithWagmiChain;
|
|
11
|
+
export declare const Base: ChainAssetWithWagmiChain;
|
|
11
12
|
export declare const X1Testnet: ChainAssetWithWagmiChain;
|
|
12
13
|
export declare const Scroll: ChainAssetWithWagmiChain;
|
|
13
14
|
export declare const ScrollSepolia: ChainAssetWithWagmiChain;
|
package/dist/lib/chains.js
CHANGED
|
@@ -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.Localhost = exports.Holesky = exports.Hardhat = 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.Base = exports.BSC = exports.Avalanche = exports.Arbitrum = void 0;
|
|
7
7
|
var _web3Assets = require("@ant-design/web3-assets");
|
|
8
8
|
var _chains = require("wagmi/chains");
|
|
9
9
|
const Mainnet = exports.Mainnet = {
|
|
@@ -42,6 +42,10 @@ const Avalanche = exports.Avalanche = {
|
|
|
42
42
|
..._web3Assets.Avalanche,
|
|
43
43
|
wagmiChain: _chains.avalanche
|
|
44
44
|
};
|
|
45
|
+
const Base = exports.Base = {
|
|
46
|
+
..._web3Assets.Base,
|
|
47
|
+
wagmiChain: _chains.base
|
|
48
|
+
};
|
|
45
49
|
|
|
46
50
|
// OKX X1: https://www.okx.com/cn/x1/docs/developer/build-on-x1/quickstart
|
|
47
51
|
const X1Testnet = exports.X1Testnet = {
|
|
@@ -8,6 +8,7 @@ export declare const wagmiBaseMock: {
|
|
|
8
8
|
readonly apiUrl: "https://api.etherscan.io/api";
|
|
9
9
|
};
|
|
10
10
|
};
|
|
11
|
+
blockTime?: number | undefined;
|
|
11
12
|
contracts: {
|
|
12
13
|
readonly ensRegistry: {
|
|
13
14
|
readonly address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
|
|
@@ -21,6 +22,7 @@ export declare const wagmiBaseMock: {
|
|
|
21
22
|
readonly blockCreated: 14353601;
|
|
22
23
|
};
|
|
23
24
|
};
|
|
25
|
+
ensTlds?: readonly string[] | undefined;
|
|
24
26
|
id: 1;
|
|
25
27
|
name: "Ethereum";
|
|
26
28
|
nativeCurrency: {
|
|
@@ -28,9 +30,10 @@ export declare const wagmiBaseMock: {
|
|
|
28
30
|
readonly symbol: "ETH";
|
|
29
31
|
readonly decimals: 18;
|
|
30
32
|
};
|
|
33
|
+
experimental_preconfirmationTime?: number | undefined;
|
|
31
34
|
rpcUrls: {
|
|
32
35
|
readonly default: {
|
|
33
|
-
readonly http: readonly ["https://
|
|
36
|
+
readonly http: readonly ["https://eth.merkle.io"];
|
|
34
37
|
};
|
|
35
38
|
};
|
|
36
39
|
sourceId?: number | undefined;
|
|
@@ -101,4 +101,15 @@ Object.keys(_mobileWallet).forEach(function (key) {
|
|
|
101
101
|
return _mobileWallet[key];
|
|
102
102
|
}
|
|
103
103
|
});
|
|
104
|
+
});
|
|
105
|
+
var _rainbowWallet = require("./rainbow-wallet");
|
|
106
|
+
Object.keys(_rainbowWallet).forEach(function (key) {
|
|
107
|
+
if (key === "default" || key === "__esModule") return;
|
|
108
|
+
if (key in exports && exports[key] === _rainbowWallet[key]) return;
|
|
109
|
+
Object.defineProperty(exports, key, {
|
|
110
|
+
enumerable: true,
|
|
111
|
+
get: function () {
|
|
112
|
+
return _rainbowWallet[key];
|
|
113
|
+
}
|
|
114
|
+
});
|
|
104
115
|
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.RainbowWallet = void 0;
|
|
7
|
+
var _web3Assets = require("@ant-design/web3-assets");
|
|
8
|
+
var _connectors = require("wagmi/connectors");
|
|
9
|
+
var _universalWallet = require("./universal-wallet");
|
|
10
|
+
const RainbowWallet = metadata => {
|
|
11
|
+
return new _universalWallet.UniversalWallet({
|
|
12
|
+
..._web3Assets.metadata_RainbowWallet,
|
|
13
|
+
...metadata
|
|
14
|
+
}, () => (0, _connectors.injected)({
|
|
15
|
+
target: 'rainbow'
|
|
16
|
+
}));
|
|
17
|
+
};
|
|
18
|
+
exports.RainbowWallet = RainbowWallet;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ant-design/web3-wagmi",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.12.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/esm/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -40,15 +40,15 @@
|
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"debug": "^4.4.0",
|
|
43
|
-
"@ant-design/web3-assets": "1.
|
|
44
|
-
"@ant-design/web3-common": "1.
|
|
43
|
+
"@ant-design/web3-assets": "1.14.0",
|
|
44
|
+
"@ant-design/web3-common": "1.21.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@tanstack/react-query": "^5.51.11",
|
|
48
48
|
"@types/debug": "^4.1.12",
|
|
49
49
|
"father": "^4.4.4",
|
|
50
50
|
"typescript": "^5.6.2",
|
|
51
|
-
"viem": "^2.
|
|
51
|
+
"viem": "^2.33.2",
|
|
52
52
|
"wagmi": "^2.14.16"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|