@getpara/wagmi-v2-connector 2.20.0 → 2.22.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.
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
} from "viem";
|
|
14
14
|
import { EventEmitter } from "eventemitter3";
|
|
15
15
|
import { extractRpcUrls } from "@wagmi/core";
|
|
16
|
-
import { getViemChain, createParaViemClient,
|
|
16
|
+
import { getViemChain, createParaViemClient, createParaViemAccount } from "@getpara/viem-v2-integration";
|
|
17
17
|
import { decimalToHex, hexToDecimal } from "@getpara/web-sdk";
|
|
18
18
|
const STORAGE_CHAIN_ID_KEY = "@CAPSULE/chainId";
|
|
19
19
|
const TEN_MINUTES_MS = 6e5;
|
|
@@ -44,7 +44,7 @@ class ParaEIP1193Provider extends EventEmitter {
|
|
|
44
44
|
return Object.fromEntries(chains.map(this.wagmiChainToAddEthereumChainParameters));
|
|
45
45
|
};
|
|
46
46
|
this.accountFromAddress = (address) => {
|
|
47
|
-
return
|
|
47
|
+
return createParaViemAccount({ para: this.para, address });
|
|
48
48
|
};
|
|
49
49
|
this.setCurrentChain = (chainId) => {
|
|
50
50
|
const chain = this.chains[chainId];
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getpara/wagmi-v2-connector",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.22.0",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@getpara/viem-v2-integration": "2.
|
|
6
|
-
"@getpara/web-sdk": "2.
|
|
5
|
+
"@getpara/viem-v2-integration": "2.22.0",
|
|
6
|
+
"@getpara/web-sdk": "2.22.0"
|
|
7
7
|
},
|
|
8
8
|
"devDependencies": {
|
|
9
9
|
"typescript": "^5.8.3",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"dist",
|
|
15
15
|
"package.json"
|
|
16
16
|
],
|
|
17
|
-
"gitHead": "
|
|
17
|
+
"gitHead": "7191b8c823ec592eb1da16c9a085f8e69c6bf377",
|
|
18
18
|
"main": "dist/index.js",
|
|
19
19
|
"peerDependencies": {
|
|
20
20
|
"@wagmi/core": "^2.16.7 || ^3.0.0",
|