@getpara/cosmos-wallet-connectors 2.0.0-alpha.22 → 2.0.0-alpha.24
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/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { CosmosExternalWalletContext } from './providers/CosmosExternalWalletContext.js';
|
|
2
|
-
export { type CosmosExternalWalletContextType, type CosmosSignResult
|
|
2
|
+
export { type CosmosExternalWalletContextType, type CosmosSignResult } from './providers/CosmosExternalWalletContext.js';
|
|
3
3
|
export { ParaCosmosProvider } from './providers/ParaCosmosContext.js';
|
|
4
4
|
export type { ParaCosmosProviderProps, ParaGrazProviderProps, ParaCosmosProviderConfig, } from './providers/ParaCosmosContext.js';
|
|
5
5
|
export * from './wallets/connectors/index.js';
|
package/dist/index.js
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "./chunk-IV3L3JVM.js";
|
|
3
3
|
import { CosmosExternalWalletContext } from "./providers/CosmosExternalWalletContext.js";
|
|
4
|
-
import {
|
|
5
|
-
defaultCosmosExternalWallet
|
|
6
|
-
} from "./providers/CosmosExternalWalletContext.js";
|
|
7
4
|
import { ParaCosmosProvider } from "./providers/ParaCosmosContext.js";
|
|
8
5
|
export * from "./wallets/connectors/index.js";
|
|
9
6
|
export {
|
|
10
7
|
CosmosExternalWalletContext,
|
|
11
|
-
ParaCosmosProvider
|
|
12
|
-
defaultCosmosExternalWallet
|
|
8
|
+
ParaCosmosProvider
|
|
13
9
|
};
|
|
@@ -1,19 +1,7 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
2
|
import { ParaCosmosProviderConfig } from './ParaCosmosContext.js';
|
|
3
3
|
import { WalletWithType } from '../types/Wallet.js';
|
|
4
|
-
import type
|
|
5
|
-
export declare const defaultCosmosExternalWallet: {
|
|
6
|
-
wallets: any[];
|
|
7
|
-
chains: any[];
|
|
8
|
-
chainId: any;
|
|
9
|
-
disconnect: () => Promise<void>;
|
|
10
|
-
switchChain: () => Promise<void>;
|
|
11
|
-
connectParaEmbedded: () => Promise<{}>;
|
|
12
|
-
signMessage: () => Promise<{}>;
|
|
13
|
-
signVerificationMessage: () => Promise<{}>;
|
|
14
|
-
requestInfo: () => Promise<any>;
|
|
15
|
-
disconnectBase: () => Promise<void>;
|
|
16
|
-
};
|
|
4
|
+
import { type ChainManagement, type ConnectParaEmbedded, type ExternalWalletContextType, type ExternalWalletProviderConfig, type ExternalWalletProviderConfigBase, type SignResult } from '@getpara/react-common';
|
|
17
5
|
export type CosmosSignResult = SignResult & {
|
|
18
6
|
cosmosPublicKeyHex?: string;
|
|
19
7
|
cosmosSigner?: string;
|
|
@@ -19,19 +19,10 @@ import {
|
|
|
19
19
|
} from "@getpara/graz";
|
|
20
20
|
import { useExternalWalletStore } from "../stores/useStore.js";
|
|
21
21
|
import { rawSecp256k1PubkeyToRawAddress } from "@getpara/web-sdk";
|
|
22
|
+
import {
|
|
23
|
+
defaultCosmosExternalWallet
|
|
24
|
+
} from "@getpara/react-common";
|
|
22
25
|
import { formatEthHexAddress } from "../utils/formatEthHexAddress.js";
|
|
23
|
-
const defaultCosmosExternalWallet = {
|
|
24
|
-
wallets: [],
|
|
25
|
-
chains: [],
|
|
26
|
-
chainId: void 0,
|
|
27
|
-
disconnect: () => Promise.resolve(),
|
|
28
|
-
switchChain: () => Promise.resolve(),
|
|
29
|
-
connectParaEmbedded: () => Promise.resolve({}),
|
|
30
|
-
signMessage: () => Promise.resolve({}),
|
|
31
|
-
signVerificationMessage: () => Promise.resolve({}),
|
|
32
|
-
requestInfo: () => Promise.resolve({}),
|
|
33
|
-
disconnectBase: () => Promise.resolve()
|
|
34
|
-
};
|
|
35
26
|
const CosmosExternalWalletContext = createContext(defaultCosmosExternalWallet);
|
|
36
27
|
function CosmosExternalWalletProvider({
|
|
37
28
|
children,
|
|
@@ -376,6 +367,5 @@ function CosmosExternalWalletProvider({
|
|
|
376
367
|
}
|
|
377
368
|
export {
|
|
378
369
|
CosmosExternalWalletContext,
|
|
379
|
-
CosmosExternalWalletProvider
|
|
380
|
-
defaultCosmosExternalWallet
|
|
370
|
+
CosmosExternalWalletProvider
|
|
381
371
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getpara/cosmos-wallet-connectors",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.24",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -20,13 +20,13 @@
|
|
|
20
20
|
"@cosmjs/stargate": "<=0.33.1",
|
|
21
21
|
"@cosmjs/tendermint-rpc": "<=0.31.3",
|
|
22
22
|
"@getpara/graz": "2.0.0-alpha.3",
|
|
23
|
-
"@getpara/web-sdk": "2.0.0-alpha.
|
|
23
|
+
"@getpara/web-sdk": "2.0.0-alpha.24",
|
|
24
24
|
"@leapwallet/cosmos-social-login-capsule-provider": "^0.0.41",
|
|
25
25
|
"zustand": "^4.5.2",
|
|
26
26
|
"zustand-sync-tabs": "^0.2.2"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@getpara/react-common": "2.0.0-alpha.
|
|
29
|
+
"@getpara/react-common": "2.0.0-alpha.24",
|
|
30
30
|
"@types/react": "^18.0.31",
|
|
31
31
|
"@types/react-dom": "^18.2.7",
|
|
32
32
|
"typescript": "^5.4.3"
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"dist",
|
|
40
40
|
"package.json"
|
|
41
41
|
],
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "bc885e0cfe1efeacab0f72b0a68c5af2710e32e0"
|
|
43
43
|
}
|