@ant-design/web3-wagmi 2.11.0 → 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 +13 -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 +2 -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 +2 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
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
|
+
|
|
3
16
|
## 2.11.0
|
|
4
17
|
|
|
5
18
|
### Minor 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";
|
|
@@ -29,6 +30,7 @@ export declare const wagmiBaseMock: {
|
|
|
29
30
|
readonly symbol: "ETH";
|
|
30
31
|
readonly decimals: 18;
|
|
31
32
|
};
|
|
33
|
+
experimental_preconfirmationTime?: number | undefined;
|
|
32
34
|
rpcUrls: {
|
|
33
35
|
readonly default: {
|
|
34
36
|
readonly http: readonly ["https://eth.merkle.io"];
|
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";
|
|
@@ -29,6 +30,7 @@ export declare const wagmiBaseMock: {
|
|
|
29
30
|
readonly symbol: "ETH";
|
|
30
31
|
readonly decimals: 18;
|
|
31
32
|
};
|
|
33
|
+
experimental_preconfirmationTime?: number | undefined;
|
|
32
34
|
rpcUrls: {
|
|
33
35
|
readonly default: {
|
|
34
36
|
readonly http: readonly ["https://eth.merkle.io"];
|
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": {
|