@pushchain/ui-kit 4.0.10 → 4.0.11
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/package.json +2 -2
- package/src/lib/hooks/usePushChainClient.js +1 -1
- package/src/lib/providers/walletProviders/ethereum/chains.d.ts +3 -3
- package/src/lib/providers/walletProviders/ethereum/chains.js +2 -2
- package/src/lib/providers/walletProviders/ethereum/chains.js.map +1 -1
- package/src/lib/providers/walletProviders/ethereum/walletConnect.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pushchain/ui-kit",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.11",
|
|
4
4
|
"homepage": "https://push.org",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pushchain",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@coral-xyz/anchor": "^0.31.1",
|
|
21
21
|
"@metamask/sdk": "^0.32.0",
|
|
22
|
-
"@pushchain/core": "^4.0.
|
|
22
|
+
"@pushchain/core": "^4.0.9",
|
|
23
23
|
"@solana/web3.js": "^1.98.2",
|
|
24
24
|
"@walletconnect/ethereum-provider": "^2.21.5",
|
|
25
25
|
"buffer": "^6.0.3",
|
|
@@ -11,7 +11,7 @@ const usePushChainClient = (uid) => {
|
|
|
11
11
|
const { universalAccount, handleSignMessage, handleSignAndSendTransaction, handleSignTypedData, handleExternalWalletConnection, requestPushWalletConnection, config, setProgress, isReadOnly, setIsReadOnly } = (0, usePushWallet_1.usePushWalletContext)(uid);
|
|
12
12
|
const [pushChain, setPushChain] = (0, react_1.useState)(null);
|
|
13
13
|
const [error, setError] = (0, react_1.useState)(null);
|
|
14
|
-
const MIN_VISIBLE_MS =
|
|
14
|
+
const MIN_VISIBLE_MS = 1500;
|
|
15
15
|
const SUCCESS_HIDE_MS = 10000;
|
|
16
16
|
const queueRef = (0, react_1.useRef)([]);
|
|
17
17
|
const lockRef = (0, react_1.useRef)(false);
|
|
@@ -3,8 +3,8 @@ type ChainType = typeof viemChains & Record<string, unknown>;
|
|
|
3
3
|
export declare const pushWalletDonut: {
|
|
4
4
|
blockExplorers: {
|
|
5
5
|
readonly default: {
|
|
6
|
-
readonly name: "Explorer";
|
|
7
|
-
readonly url: "https://
|
|
6
|
+
readonly name: "Push Testnet Explorer";
|
|
7
|
+
readonly url: "https://donut.push.network/";
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
10
|
blockTime?: number | undefined;
|
|
@@ -30,7 +30,7 @@ export declare const pushWalletDonut: {
|
|
|
30
30
|
rpcUrls: {
|
|
31
31
|
readonly default: {
|
|
32
32
|
readonly http: readonly ["https://evm.donut.rpc.push.org/"];
|
|
33
|
-
readonly webSocket: readonly ["wss://evm.
|
|
33
|
+
readonly webSocket: readonly ["wss://evm.donut.rpc.push.org"];
|
|
34
34
|
};
|
|
35
35
|
};
|
|
36
36
|
sourceId?: number | undefined;
|
|
@@ -15,11 +15,11 @@ exports.pushWalletDonut = (0, viem_1.defineChain)({
|
|
|
15
15
|
rpcUrls: {
|
|
16
16
|
default: {
|
|
17
17
|
http: ['https://evm.donut.rpc.push.org/'],
|
|
18
|
-
webSocket: ['wss://evm.
|
|
18
|
+
webSocket: ['wss://evm.donut.rpc.push.org'],
|
|
19
19
|
},
|
|
20
20
|
},
|
|
21
21
|
blockExplorers: {
|
|
22
|
-
default: { name: 'Explorer', url: 'https://
|
|
22
|
+
default: { name: 'Push Testnet Explorer', url: 'https://donut.push.network/' },
|
|
23
23
|
},
|
|
24
24
|
});
|
|
25
25
|
exports.chains = Object.assign(Object.assign({}, viemChains), { pushWalletDonut: exports.pushWalletDonut });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chains.js","sourceRoot":"","sources":["../../../../../../../../packages/ui-kit/src/lib/providers/walletProviders/ethereum/chains.ts"],"names":[],"mappings":";;;;AAAA,+BAAmC;AACnC,gEAA0C;AAI7B,QAAA,eAAe,GAAG,IAAA,kBAAW,EAAC;IACzC,EAAE,EAAE,KAAK;IACT,IAAI,EAAE,oBAAoB;IAC1B,cAAc,EAAE;QACd,QAAQ,EAAE,EAAE;QACZ,IAAI,EAAE,YAAY;QAClB,MAAM,EAAE,IAAI;KACb;IACD,OAAO,EAAE;QACP,OAAO,EAAE;YACP,IAAI,EAAE,CAAC,iCAAiC,CAAC;YACzC,SAAS,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"chains.js","sourceRoot":"","sources":["../../../../../../../../packages/ui-kit/src/lib/providers/walletProviders/ethereum/chains.ts"],"names":[],"mappings":";;;;AAAA,+BAAmC;AACnC,gEAA0C;AAI7B,QAAA,eAAe,GAAG,IAAA,kBAAW,EAAC;IACzC,EAAE,EAAE,KAAK;IACT,IAAI,EAAE,oBAAoB;IAC1B,cAAc,EAAE;QACd,QAAQ,EAAE,EAAE;QACZ,IAAI,EAAE,YAAY;QAClB,MAAM,EAAE,IAAI;KACb;IACD,OAAO,EAAE;QACP,OAAO,EAAE;YACP,IAAI,EAAE,CAAC,iCAAiC,CAAC;YACzC,SAAS,EAAE,CAAC,8BAA8B,CAAC;SAC5C;KACF;IACD,cAAc,EAAE;QACd,OAAO,EAAE,EAAE,IAAI,EAAE,uBAAuB,EAAE,GAAG,EAAE,6BAA6B,EAAE;KAC/E;CACF,CAAC,CAAC;AAEU,QAAA,MAAM,mCACd,UAAU,KACb,eAAe,EAAf,uBAAe,IACf"}
|
|
@@ -150,7 +150,7 @@ class WalletConnectProvider extends BaseWalletProvider_1.BaseWalletProvider {
|
|
|
150
150
|
this.provider = null;
|
|
151
151
|
}
|
|
152
152
|
this.provider = yield ethereum_provider_1.EthereumProvider.init({
|
|
153
|
-
projectId: '
|
|
153
|
+
projectId: 'd73cf3ac4a677153d241b2bd5092fb1d',
|
|
154
154
|
chains: [chainId],
|
|
155
155
|
methods: ['eth_sendTransaction', 'personal_sign', 'eth_signTypedData_v4', 'eth_requestAccounts', 'eth_chainId', 'eth_accounts'],
|
|
156
156
|
showQrModal: true,
|