@getpara/react-sdk 2.21.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.
Files changed (41) hide show
  1. package/dist/cosmos/actions/getCosmjsAminoSigner.d.ts +1 -2
  2. package/dist/cosmos/actions/getCosmjsAminoSigner.js +2 -2
  3. package/dist/cosmos/actions/getCosmjsProtoSigner.d.ts +1 -2
  4. package/dist/cosmos/actions/getCosmjsProtoSigner.js +2 -2
  5. package/dist/cosmos/hooks/index.d.ts +3 -2
  6. package/dist/cosmos/hooks/index.js +7 -2
  7. package/dist/cosmos/hooks/useParaCosmjsAminoSigner.d.ts +3 -0
  8. package/dist/cosmos/hooks/useParaCosmjsAminoSigner.js +8 -0
  9. package/dist/cosmos/hooks/useParaCosmjsProtoSigner.d.ts +3 -0
  10. package/dist/cosmos/hooks/useParaCosmjsProtoSigner.js +8 -0
  11. package/dist/evm/actions/getViemAccount.js +2 -2
  12. package/dist/evm/actions/getViemClient.d.ts +2 -2
  13. package/dist/evm/hooks/index.d.ts +5 -2
  14. package/dist/evm/hooks/index.js +31 -2
  15. package/dist/evm/hooks/useParaViemAccount.d.ts +3 -0
  16. package/dist/evm/hooks/useParaViemAccount.js +8 -0
  17. package/dist/evm/hooks/useParaViemClient.d.ts +3 -0
  18. package/dist/evm/hooks/useParaViemClient.js +8 -0
  19. package/dist/index.d.ts +8 -0
  20. package/dist/index.js +8 -0
  21. package/dist/solana/hooks/index.d.ts +2 -1
  22. package/dist/solana/hooks/index.js +6 -1
  23. package/dist/solana/hooks/useParaSolanaSigner.d.ts +3 -0
  24. package/dist/solana/hooks/useParaSolanaSigner.js +8 -0
  25. package/dist/stellar/hooks/index.d.ts +2 -1
  26. package/dist/stellar/hooks/index.js +7 -1
  27. package/dist/stellar/hooks/useParaStellarSigner.d.ts +3 -0
  28. package/dist/stellar/hooks/useParaStellarSigner.js +8 -0
  29. package/dist/wagmi/index.d.ts +8 -0
  30. package/dist/wagmi/index.js +76 -0
  31. package/package.json +37 -23
  32. package/dist/cosmos/hooks/useCosmjsAminoSigner.d.ts +0 -11
  33. package/dist/cosmos/hooks/useCosmjsAminoSigner.js +0 -37
  34. package/dist/cosmos/hooks/useCosmjsProtoSigner.d.ts +0 -11
  35. package/dist/cosmos/hooks/useCosmjsProtoSigner.js +0 -37
  36. package/dist/evm/hooks/useViemAccount.d.ts +0 -26
  37. package/dist/evm/hooks/useViemAccount.js +0 -32
  38. package/dist/evm/hooks/useViemClient.d.ts +0 -18446
  39. package/dist/evm/hooks/useViemClient.js +0 -30
  40. package/dist/solana/hooks/useSolanaSigner.d.ts +0 -11
  41. package/dist/solana/hooks/useSolanaSigner.js +0 -32
@@ -1,8 +1,7 @@
1
1
  import ParaWeb from '@getpara/react-sdk-lite';
2
- import { ParaAminoSigner } from '@getpara/cosmjs-v0-integration';
3
2
  export declare const getCosmjsAminoSigner: ({ para, prefix, walletId, messageSigningTimeoutMs, }: {
4
3
  para: ParaWeb;
5
4
  prefix?: string;
6
5
  walletId?: string;
7
6
  messageSigningTimeoutMs?: number;
8
- }) => Promise<ParaAminoSigner>;
7
+ }) => Promise<import("@getpara/cosmjs-v0-integration").ParaAminoSigner>;
@@ -2,14 +2,14 @@
2
2
  import {
3
3
  __async
4
4
  } from "../../chunk-MMUBH76A.js";
5
- import { ParaAminoSigner } from "@getpara/cosmjs-v0-integration";
5
+ import { createParaAminoSigner } from "@getpara/cosmjs-v0-integration";
6
6
  const getCosmjsAminoSigner = (_0) => __async(void 0, [_0], function* ({
7
7
  para,
8
8
  prefix,
9
9
  walletId,
10
10
  messageSigningTimeoutMs
11
11
  }) {
12
- return new ParaAminoSigner(para, prefix, walletId, messageSigningTimeoutMs);
12
+ return createParaAminoSigner({ para, prefix, walletId, messageSigningTimeoutMs });
13
13
  });
14
14
  export {
15
15
  getCosmjsAminoSigner
@@ -1,8 +1,7 @@
1
1
  import ParaWeb from '@getpara/react-sdk-lite';
2
- import { ParaProtoSigner } from '@getpara/cosmjs-v0-integration';
3
2
  export declare const getCosmjsProtoSigner: ({ para, prefix, walletId, messageSigningTimeoutMs, }: {
4
3
  para: ParaWeb;
5
4
  prefix?: string;
6
5
  walletId?: string;
7
6
  messageSigningTimeoutMs?: number;
8
- }) => Promise<ParaProtoSigner>;
7
+ }) => Promise<import("@getpara/cosmjs-v0-integration").ParaProtoSigner>;
@@ -2,14 +2,14 @@
2
2
  import {
3
3
  __async
4
4
  } from "../../chunk-MMUBH76A.js";
5
- import { ParaProtoSigner } from "@getpara/cosmjs-v0-integration";
5
+ import { createParaProtoSigner } from "@getpara/cosmjs-v0-integration";
6
6
  const getCosmjsProtoSigner = (_0) => __async(void 0, [_0], function* ({
7
7
  para,
8
8
  prefix,
9
9
  walletId,
10
10
  messageSigningTimeoutMs
11
11
  }) {
12
- return new ParaProtoSigner(para, prefix, walletId, messageSigningTimeoutMs);
12
+ return createParaProtoSigner({ para, prefix, walletId, messageSigningTimeoutMs });
13
13
  });
14
14
  export {
15
15
  getCosmjsProtoSigner
@@ -1,2 +1,3 @@
1
- export * from './useCosmjsProtoSigner.js';
2
- export * from './useCosmjsAminoSigner.js';
1
+ export * from './useParaCosmjsProtoSigner.js';
2
+ export * from './useParaCosmjsAminoSigner.js';
3
+ export { useParaCosmjsSignAndBroadcast } from '@getpara/react-core/cosmos';
@@ -1,3 +1,8 @@
1
1
  "use client";
2
- export * from "./useCosmjsProtoSigner.js";
3
- export * from "./useCosmjsAminoSigner.js";
2
+ import "../../chunk-MMUBH76A.js";
3
+ export * from "./useParaCosmjsProtoSigner.js";
4
+ export * from "./useParaCosmjsAminoSigner.js";
5
+ import { useParaCosmjsSignAndBroadcast } from "@getpara/react-core/cosmos";
6
+ export {
7
+ useParaCosmjsSignAndBroadcast
8
+ };
@@ -0,0 +1,3 @@
1
+ export { useParaCosmjsAminoSigner } from '@getpara/react-sdk-lite/chains/cosmos';
2
+ /** @deprecated Use `useParaCosmjsAminoSigner` instead. */
3
+ export { useParaCosmjsAminoSigner as useCosmjsAminoSigner } from '@getpara/react-sdk-lite/chains/cosmos';
@@ -0,0 +1,8 @@
1
+ "use client";
2
+ import "../../chunk-MMUBH76A.js";
3
+ import { useParaCosmjsAminoSigner } from "@getpara/react-sdk-lite/chains/cosmos";
4
+ import { useParaCosmjsAminoSigner as useParaCosmjsAminoSigner2 } from "@getpara/react-sdk-lite/chains/cosmos";
5
+ export {
6
+ useParaCosmjsAminoSigner2 as useCosmjsAminoSigner,
7
+ useParaCosmjsAminoSigner
8
+ };
@@ -0,0 +1,3 @@
1
+ export { useParaCosmjsProtoSigner } from '@getpara/react-sdk-lite/chains/cosmos';
2
+ /** @deprecated Use `useParaCosmjsProtoSigner` instead. */
3
+ export { useParaCosmjsProtoSigner as useCosmjsProtoSigner } from '@getpara/react-sdk-lite/chains/cosmos';
@@ -0,0 +1,8 @@
1
+ "use client";
2
+ import "../../chunk-MMUBH76A.js";
3
+ import { useParaCosmjsProtoSigner } from "@getpara/react-sdk-lite/chains/cosmos";
4
+ import { useParaCosmjsProtoSigner as useParaCosmjsProtoSigner2 } from "@getpara/react-sdk-lite/chains/cosmos";
5
+ export {
6
+ useParaCosmjsProtoSigner2 as useCosmjsProtoSigner,
7
+ useParaCosmjsProtoSigner
8
+ };
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  __async
4
4
  } from "../../chunk-MMUBH76A.js";
5
- import { createParaAccount } from "@getpara/viem-v2-integration";
5
+ import { createParaViemAccount } from "@getpara/viem-v2-integration";
6
6
  const getViemAccount = (_0) => __async(void 0, [_0], function* ({ para, address }) {
7
7
  if (para.getWalletsByType("EVM").length === 0) {
8
8
  return null;
@@ -13,7 +13,7 @@ const getViemAccount = (_0) => __async(void 0, [_0], function* ({ para, address
13
13
  return null;
14
14
  }
15
15
  }
16
- return createParaAccount(para, address);
16
+ return createParaViemAccount({ para, address });
17
17
  });
18
18
  export {
19
19
  getViemAccount
@@ -14677,7 +14677,7 @@ export declare const getViemClient: ({ para, address, walletClientConfig, }: {
14677
14677
  switchChain: (args: import("viem").SwitchChainParameters) => Promise<void>;
14678
14678
  waitForCallsStatus: (parameters: import("viem").WaitForCallsStatusParameters) => Promise<import("viem").WaitForCallsStatusReturnType>;
14679
14679
  watchAsset: (args: import("viem").WatchAssetParameters) => Promise<import("viem").WatchAssetReturnType>;
14680
- writeContract: <const abi extends import("viem").Abi | readonly unknown[], functionName extends import("viem").ContractFunctionName<abi, "nonpayable" | "payable">, args_1 extends import("viem").ContractFunctionArgs<abi, "nonpayable" | "payable", functionName>, chainOverride extends import("viem").Chain | undefined = undefined>(args: import("viem").WriteContractParameters<abi, functionName, args_1, import("viem").Chain, {
14680
+ writeContract: <const abi extends import("viem").Abi | readonly unknown[], functionName extends import("viem").ContractFunctionName<abi, "payable" | "nonpayable">, args_1 extends import("viem").ContractFunctionArgs<abi, "payable" | "nonpayable", functionName>, chainOverride extends import("viem").Chain | undefined = undefined>(args: import("viem").WriteContractParameters<abi, functionName, args_1, import("viem").Chain, {
14681
14681
  address: import("viem").Address;
14682
14682
  nonceManager?: import("viem").NonceManager | undefined;
14683
14683
  sign?: ((parameters: {
@@ -15105,7 +15105,7 @@ export declare const getViemClient: ({ para, address, walletClientConfig, }: {
15105
15105
  source: string;
15106
15106
  type: "local";
15107
15107
  }, chainOverride>) => Promise<import("viem").WriteContractReturnType>;
15108
- writeContractSync: <const abi extends import("viem").Abi | readonly unknown[], functionName extends import("viem").ContractFunctionName<abi, "nonpayable" | "payable">, args_1 extends import("viem").ContractFunctionArgs<abi, "nonpayable" | "payable", functionName>, chainOverride extends import("viem").Chain | undefined = undefined>(args: import("viem").WriteContractSyncParameters<abi, functionName, args_1, import("viem").Chain, {
15108
+ writeContractSync: <const abi extends import("viem").Abi | readonly unknown[], functionName extends import("viem").ContractFunctionName<abi, "payable" | "nonpayable">, args_1 extends import("viem").ContractFunctionArgs<abi, "payable" | "nonpayable", functionName>, chainOverride extends import("viem").Chain | undefined = undefined>(args: import("viem").WriteContractSyncParameters<abi, functionName, args_1, import("viem").Chain, {
15109
15109
  address: import("viem").Address;
15110
15110
  nonceManager?: import("viem").NonceManager | undefined;
15111
15111
  sign?: ((parameters: {
@@ -1,2 +1,5 @@
1
- export * from './useViemClient.js';
2
- export * from './useViemAccount.js';
1
+ export * from './useParaViemClient.js';
2
+ export * from './useParaViemAccount.js';
3
+ export { useParaViemSignMessage, useParaViemSignTransaction, useParaViemSendTransaction, useParaViemSignTypedData, useParaViemWriteContract, useParaViemDeployContract, } from '@getpara/react-core/evm/viem';
4
+ export { useParaEthersSigner } from '@getpara/react-sdk-lite/chains/evm';
5
+ export { useParaEthersSendTransaction, useParaEthersSignMessage, useParaEthersSignTypedData, useParaEthersWriteContract, } from '@getpara/react-core/evm/ethers';
@@ -1,3 +1,32 @@
1
1
  "use client";
2
- export * from "./useViemClient.js";
3
- export * from "./useViemAccount.js";
2
+ import "../../chunk-MMUBH76A.js";
3
+ export * from "./useParaViemClient.js";
4
+ export * from "./useParaViemAccount.js";
5
+ import {
6
+ useParaViemSignMessage,
7
+ useParaViemSignTransaction,
8
+ useParaViemSendTransaction,
9
+ useParaViemSignTypedData,
10
+ useParaViemWriteContract,
11
+ useParaViemDeployContract
12
+ } from "@getpara/react-core/evm/viem";
13
+ import { useParaEthersSigner } from "@getpara/react-sdk-lite/chains/evm";
14
+ import {
15
+ useParaEthersSendTransaction,
16
+ useParaEthersSignMessage,
17
+ useParaEthersSignTypedData,
18
+ useParaEthersWriteContract
19
+ } from "@getpara/react-core/evm/ethers";
20
+ export {
21
+ useParaEthersSendTransaction,
22
+ useParaEthersSignMessage,
23
+ useParaEthersSignTypedData,
24
+ useParaEthersSigner,
25
+ useParaEthersWriteContract,
26
+ useParaViemDeployContract,
27
+ useParaViemSendTransaction,
28
+ useParaViemSignMessage,
29
+ useParaViemSignTransaction,
30
+ useParaViemSignTypedData,
31
+ useParaViemWriteContract
32
+ };
@@ -0,0 +1,3 @@
1
+ export { useParaViemAccount } from '@getpara/react-sdk-lite/chains/evm';
2
+ /** @deprecated Use `useParaViemAccount` instead. */
3
+ export { useParaViemAccount as useViemAccount } from '@getpara/react-sdk-lite/chains/evm';
@@ -0,0 +1,8 @@
1
+ "use client";
2
+ import "../../chunk-MMUBH76A.js";
3
+ import { useParaViemAccount } from "@getpara/react-sdk-lite/chains/evm";
4
+ import { useParaViemAccount as useParaViemAccount2 } from "@getpara/react-sdk-lite/chains/evm";
5
+ export {
6
+ useParaViemAccount,
7
+ useParaViemAccount2 as useViemAccount
8
+ };
@@ -0,0 +1,3 @@
1
+ export { useParaViemClient } from '@getpara/react-sdk-lite/chains/evm';
2
+ /** @deprecated Use `useParaViemClient` instead. */
3
+ export { useParaViemClient as useViemClient } from '@getpara/react-sdk-lite/chains/evm';
@@ -0,0 +1,8 @@
1
+ "use client";
2
+ import "../../chunk-MMUBH76A.js";
3
+ import { useParaViemClient } from "@getpara/react-sdk-lite/chains/evm";
4
+ import { useParaViemClient as useParaViemClient2 } from "@getpara/react-sdk-lite/chains/evm";
5
+ export {
6
+ useParaViemClient,
7
+ useParaViemClient2 as useViemClient
8
+ };
package/dist/index.d.ts CHANGED
@@ -2,6 +2,14 @@ export * from '@getpara/react-sdk-lite';
2
2
  import ParaWeb from '@getpara/react-sdk-lite';
3
3
  export default ParaWeb;
4
4
  export { ParaProvider } from './provider/ParaProvider.js';
5
+ export * from './evm/hooks/index.js';
6
+ export * from './evm/actions/index.js';
7
+ export * from './cosmos/hooks/index.js';
8
+ export * from './cosmos/actions/index.js';
9
+ export * from './solana/hooks/index.js';
10
+ export * from './solana/actions/index.js';
11
+ export * from './stellar/hooks/index.js';
12
+ export * from './stellar/actions/index.js';
5
13
  export * from '@getpara/viem-v2-integration/aa';
6
14
  export type { CreateAlchemySmartAccountParams, AlchemySmartAccountConfig, UseAlchemySmartAccountParams, AlchemyTransactionOptions, } from '@getpara/aa-alchemy';
7
15
  export type { CreateZeroDevSmartAccountParams, ZeroDevSmartAccountConfig, UseZeroDevSmartAccountParams, ZeroDevTransactionOptions, } from '@getpara/aa-zerodev';
package/dist/index.js CHANGED
@@ -4,6 +4,14 @@ export * from "@getpara/react-sdk-lite";
4
4
  import ParaWeb from "@getpara/react-sdk-lite";
5
5
  var src_default = ParaWeb;
6
6
  import { ParaProvider } from "./provider/ParaProvider.js";
7
+ export * from "./evm/hooks/index.js";
8
+ export * from "./evm/actions/index.js";
9
+ export * from "./cosmos/hooks/index.js";
10
+ export * from "./cosmos/actions/index.js";
11
+ export * from "./solana/hooks/index.js";
12
+ export * from "./solana/actions/index.js";
13
+ export * from "./stellar/hooks/index.js";
14
+ export * from "./stellar/actions/index.js";
7
15
  export * from "@getpara/viem-v2-integration/aa";
8
16
  export {
9
17
  ParaProvider,
@@ -1 +1,2 @@
1
- export * from './useSolanaSigner.js';
1
+ export * from './useParaSolanaSigner.js';
2
+ export { useParaSolanaSignAndSend } from '@getpara/react-core/solana';
@@ -1,2 +1,7 @@
1
1
  "use client";
2
- export * from "./useSolanaSigner.js";
2
+ import "../../chunk-MMUBH76A.js";
3
+ export * from "./useParaSolanaSigner.js";
4
+ import { useParaSolanaSignAndSend } from "@getpara/react-core/solana";
5
+ export {
6
+ useParaSolanaSignAndSend
7
+ };
@@ -0,0 +1,3 @@
1
+ export { useParaSolanaSigner } from '@getpara/react-sdk-lite/chains/solana';
2
+ /** @deprecated Use `useParaSolanaSigner` instead. */
3
+ export { useParaSolanaSigner as useSolanaSigner } from '@getpara/react-sdk-lite/chains/solana';
@@ -0,0 +1,8 @@
1
+ "use client";
2
+ import "../../chunk-MMUBH76A.js";
3
+ import { useParaSolanaSigner } from "@getpara/react-sdk-lite/chains/solana";
4
+ import { useParaSolanaSigner as useParaSolanaSigner2 } from "@getpara/react-sdk-lite/chains/solana";
5
+ export {
6
+ useParaSolanaSigner,
7
+ useParaSolanaSigner2 as useSolanaSigner
8
+ };
@@ -1 +1,2 @@
1
- export * from './useStellarSigner.js';
1
+ export * from './useParaStellarSigner.js';
2
+ export { useParaStellarSignTransaction, useParaStellarSignAuthEntry } from '@getpara/react-core/stellar';
@@ -1,2 +1,8 @@
1
1
  "use client";
2
- export * from "./useStellarSigner.js";
2
+ import "../../chunk-MMUBH76A.js";
3
+ export * from "./useParaStellarSigner.js";
4
+ import { useParaStellarSignTransaction, useParaStellarSignAuthEntry } from "@getpara/react-core/stellar";
5
+ export {
6
+ useParaStellarSignAuthEntry,
7
+ useParaStellarSignTransaction
8
+ };
@@ -0,0 +1,3 @@
1
+ export { useParaStellarSigner } from '@getpara/react-core/stellar';
2
+ /** @deprecated Use `useParaStellarSigner` instead. */
3
+ export { useParaStellarSigner as useStellarSigner } from '@getpara/react-core/stellar';
@@ -0,0 +1,8 @@
1
+ "use client";
2
+ import "../../chunk-MMUBH76A.js";
3
+ import { useParaStellarSigner } from "@getpara/react-core/stellar";
4
+ import { useParaStellarSigner as useParaStellarSigner2 } from "@getpara/react-core/stellar";
5
+ export {
6
+ useParaStellarSigner,
7
+ useParaStellarSigner2 as useStellarSigner
8
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Re-exports of wagmi hooks via @getpara/react-sdk/wagmi.
3
+ *
4
+ * Provides a single import source so devs don't need to install
5
+ * or import from wagmi directly. All hooks are pass-through —
6
+ * no behavioral changes.
7
+ */
8
+ export { useAccount, useConnect, useDisconnect, useChainId, useSwitchChain, useConnectorClient, useConnectors, useReconnect, useSendTransaction, useSignMessage, useSignTypedData, useWriteContract, useSimulateContract, usePrepareTransactionRequest, useVerifyMessage, useVerifyTypedData, useBalance, useReadContract, useReadContracts, useWaitForTransactionReceipt, useWalletClient, usePublicClient, useBlockNumber, useGasPrice, useFeeHistory, useTransaction, useTransactionReceipt, useEstimateGas, useEnsName, useEnsAddress, useEnsAvatar, useEnsResolver, useWatchContractEvent, useWatchBlockNumber, useWatchPendingTransactions, } from 'wagmi';
@@ -0,0 +1,76 @@
1
+ "use client";
2
+ import "../chunk-MMUBH76A.js";
3
+ import {
4
+ useAccount,
5
+ useConnect,
6
+ useDisconnect,
7
+ useChainId,
8
+ useSwitchChain,
9
+ useConnectorClient,
10
+ useConnectors,
11
+ useReconnect,
12
+ useSendTransaction,
13
+ useSignMessage,
14
+ useSignTypedData,
15
+ useWriteContract,
16
+ useSimulateContract,
17
+ usePrepareTransactionRequest,
18
+ useVerifyMessage,
19
+ useVerifyTypedData,
20
+ useBalance,
21
+ useReadContract,
22
+ useReadContracts,
23
+ useWaitForTransactionReceipt,
24
+ useWalletClient,
25
+ usePublicClient,
26
+ useBlockNumber,
27
+ useGasPrice,
28
+ useFeeHistory,
29
+ useTransaction,
30
+ useTransactionReceipt,
31
+ useEstimateGas,
32
+ useEnsName,
33
+ useEnsAddress,
34
+ useEnsAvatar,
35
+ useEnsResolver,
36
+ useWatchContractEvent,
37
+ useWatchBlockNumber,
38
+ useWatchPendingTransactions
39
+ } from "wagmi";
40
+ export {
41
+ useAccount,
42
+ useBalance,
43
+ useBlockNumber,
44
+ useChainId,
45
+ useConnect,
46
+ useConnectorClient,
47
+ useConnectors,
48
+ useDisconnect,
49
+ useEnsAddress,
50
+ useEnsAvatar,
51
+ useEnsName,
52
+ useEnsResolver,
53
+ useEstimateGas,
54
+ useFeeHistory,
55
+ useGasPrice,
56
+ usePrepareTransactionRequest,
57
+ usePublicClient,
58
+ useReadContract,
59
+ useReadContracts,
60
+ useReconnect,
61
+ useSendTransaction,
62
+ useSignMessage,
63
+ useSignTypedData,
64
+ useSimulateContract,
65
+ useSwitchChain,
66
+ useTransaction,
67
+ useTransactionReceipt,
68
+ useVerifyMessage,
69
+ useVerifyTypedData,
70
+ useWaitForTransactionReceipt,
71
+ useWalletClient,
72
+ useWatchBlockNumber,
73
+ useWatchContractEvent,
74
+ useWatchPendingTransactions,
75
+ useWriteContract
76
+ };
package/package.json CHANGED
@@ -1,25 +1,25 @@
1
1
  {
2
2
  "name": "@getpara/react-sdk",
3
- "version": "2.21.0",
3
+ "version": "2.22.0",
4
4
  "dependencies": {
5
- "@getpara/aa-alchemy": "2.21.0",
6
- "@getpara/aa-biconomy": "2.21.0",
7
- "@getpara/aa-cdp": "2.21.0",
8
- "@getpara/aa-gelato": "2.21.0",
9
- "@getpara/aa-pimlico": "2.21.0",
10
- "@getpara/aa-porto": "2.21.0",
11
- "@getpara/aa-rhinestone": "2.21.0",
12
- "@getpara/aa-safe": "2.21.0",
13
- "@getpara/aa-thirdweb": "2.21.0",
14
- "@getpara/aa-zerodev": "2.21.0",
15
- "@getpara/cosmjs-v0-integration": "2.21.0",
16
- "@getpara/cosmos-wallet-connectors": "2.21.0",
17
- "@getpara/evm-wallet-connectors": "2.21.0",
18
- "@getpara/react-sdk-lite": "2.21.0",
19
- "@getpara/solana-signers-v2-integration": "2.21.0",
20
- "@getpara/solana-wallet-connectors": "2.21.0",
21
- "@getpara/stellar-sdk-v14-integration": "2.21.0",
22
- "@getpara/viem-v2-integration": "2.21.0"
5
+ "@getpara/aa-alchemy": "2.22.0",
6
+ "@getpara/aa-biconomy": "2.22.0",
7
+ "@getpara/aa-cdp": "2.22.0",
8
+ "@getpara/aa-gelato": "2.22.0",
9
+ "@getpara/aa-pimlico": "2.22.0",
10
+ "@getpara/aa-porto": "2.22.0",
11
+ "@getpara/aa-rhinestone": "2.22.0",
12
+ "@getpara/aa-safe": "2.22.0",
13
+ "@getpara/aa-thirdweb": "2.22.0",
14
+ "@getpara/aa-zerodev": "2.22.0",
15
+ "@getpara/cosmjs-v0-integration": "2.22.0",
16
+ "@getpara/cosmos-wallet-connectors": "2.22.0",
17
+ "@getpara/evm-wallet-connectors": "2.22.0",
18
+ "@getpara/react-sdk-lite": "2.22.0",
19
+ "@getpara/solana-signers-v2-integration": "2.22.0",
20
+ "@getpara/solana-wallet-connectors": "2.22.0",
21
+ "@getpara/stellar-sdk-v14-integration": "2.22.0",
22
+ "@getpara/viem-v2-integration": "2.22.0"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@metamask/delegation-toolkit": "^0.11.0",
@@ -41,20 +41,27 @@
41
41
  "./solana/actions": "./dist/solana/actions/index.js",
42
42
  "./stellar": "./dist/stellar/index.js",
43
43
  "./stellar/hooks": "./dist/stellar/hooks/index.js",
44
- "./stellar/actions": "./dist/stellar/actions/index.js"
44
+ "./stellar/actions": "./dist/stellar/actions/index.js",
45
+ "./wagmi": "./dist/wagmi/index.js"
45
46
  },
46
47
  "files": [
47
48
  "dist",
48
49
  "package.json",
49
50
  "styles.css"
50
51
  ],
51
- "gitHead": "61f68bb1344dcec458f9016db39f631bb630b8f4",
52
+ "gitHead": "7191b8c823ec592eb1da16c9a085f8e69c6bf377",
52
53
  "main": "dist/index.js",
53
54
  "peerDependencies": {
54
55
  "@tanstack/react-query": ">=5.0.0",
55
56
  "react": "*",
56
57
  "react-dom": "*",
57
- "viem": ">=2.0.0"
58
+ "viem": ">=2.0.0",
59
+ "wagmi": ">=2.0.0"
60
+ },
61
+ "peerDependenciesMeta": {
62
+ "wagmi": {
63
+ "optional": true
64
+ }
58
65
  },
59
66
  "scripts": {
60
67
  "build": "rm -rf dist && yarn typegen && node ./scripts/build.mjs && yarn post-build",
@@ -65,5 +72,12 @@
65
72
  "*.css"
66
73
  ],
67
74
  "type": "module",
68
- "types": "dist/index.d.ts"
75
+ "types": "dist/index.d.ts",
76
+ "typesVersions": {
77
+ "*": {
78
+ "wagmi": [
79
+ "./dist/wagmi/index.d.ts"
80
+ ]
81
+ }
82
+ }
69
83
  }
@@ -1,11 +0,0 @@
1
- export declare const COSMJS_AMINO_SIGNER_BASE_KEY = "PARA_COSMJS_AMINO_SIGNER";
2
- type UseCosmjsAminoSignerParameters = {
3
- prefix?: string;
4
- walletId?: string;
5
- messageSigningTimeoutMs?: number;
6
- };
7
- export declare const useCosmjsAminoSigner: ({ prefix, walletId, messageSigningTimeoutMs }?: UseCosmjsAminoSignerParameters) => {
8
- aminoSigner: import("@getpara/cosmjs-v0-integration").ParaAminoSigner | null | undefined;
9
- isLoading: boolean;
10
- };
11
- export {};
@@ -1,37 +0,0 @@
1
- "use client";
2
- import {
3
- __async
4
- } from "../../chunk-MMUBH76A.js";
5
- import { useAccount, useClient, useWallet } from "@getpara/react-sdk-lite";
6
- import { useQuery } from "@tanstack/react-query";
7
- import { getCosmjsAminoSigner } from "../actions/index.js";
8
- const COSMJS_AMINO_SIGNER_BASE_KEY = "PARA_COSMJS_AMINO_SIGNER";
9
- const useCosmjsAminoSigner = ({ prefix, walletId, messageSigningTimeoutMs } = {}) => {
10
- const para = useClient();
11
- const {
12
- isConnected,
13
- embedded: { userId }
14
- } = useAccount();
15
- const { data: wallet } = useWallet();
16
- const { data, isLoading } = useQuery({
17
- queryKey: [
18
- COSMJS_AMINO_SIGNER_BASE_KEY,
19
- isConnected,
20
- userId,
21
- walletId != null ? walletId : (wallet == null ? void 0 : wallet.type) === "COSMOS" ? wallet == null ? void 0 : wallet.id : null
22
- ],
23
- enabled: isConnected && !!para,
24
- queryFn: () => __async(void 0, null, function* () {
25
- if (!isConnected || !para) {
26
- return null;
27
- }
28
- const _id = walletId != null ? walletId : (wallet == null ? void 0 : wallet.type) === "COSMOS" ? wallet == null ? void 0 : wallet.id : void 0;
29
- return yield getCosmjsAminoSigner({ para, walletId: _id, prefix, messageSigningTimeoutMs });
30
- })
31
- });
32
- return { aminoSigner: data, isLoading };
33
- };
34
- export {
35
- COSMJS_AMINO_SIGNER_BASE_KEY,
36
- useCosmjsAminoSigner
37
- };
@@ -1,11 +0,0 @@
1
- export declare const COSMJS_PROTO_SIGNER_BASE_KEY = "PARA_COSMJS_PROTO_SIGNER";
2
- type UseCosmjsProtoSignerParameters = {
3
- prefix?: string;
4
- walletId?: string;
5
- messageSigningTimeoutMs?: number;
6
- };
7
- export declare const useCosmjsProtoSigner: ({ prefix, walletId, messageSigningTimeoutMs }?: UseCosmjsProtoSignerParameters) => {
8
- protoSigner: import("@getpara/cosmjs-v0-integration").ParaProtoSigner | null | undefined;
9
- isLoading: boolean;
10
- };
11
- export {};
@@ -1,37 +0,0 @@
1
- "use client";
2
- import {
3
- __async
4
- } from "../../chunk-MMUBH76A.js";
5
- import { useAccount, useClient, useWallet } from "@getpara/react-sdk-lite";
6
- import { useQuery } from "@tanstack/react-query";
7
- import { getCosmjsProtoSigner } from "../actions/index.js";
8
- const COSMJS_PROTO_SIGNER_BASE_KEY = "PARA_COSMJS_PROTO_SIGNER";
9
- const useCosmjsProtoSigner = ({ prefix, walletId, messageSigningTimeoutMs } = {}) => {
10
- const para = useClient();
11
- const {
12
- isConnected,
13
- embedded: { userId }
14
- } = useAccount();
15
- const { data: wallet } = useWallet();
16
- const { data, isLoading } = useQuery({
17
- queryKey: [
18
- COSMJS_PROTO_SIGNER_BASE_KEY,
19
- isConnected,
20
- userId,
21
- walletId != null ? walletId : (wallet == null ? void 0 : wallet.type) === "COSMOS" ? wallet == null ? void 0 : wallet.id : null
22
- ],
23
- enabled: isConnected && !!para,
24
- queryFn: () => __async(void 0, null, function* () {
25
- if (!isConnected || !para) {
26
- return null;
27
- }
28
- const _id = walletId != null ? walletId : (wallet == null ? void 0 : wallet.type) === "COSMOS" ? wallet == null ? void 0 : wallet.id : void 0;
29
- return yield getCosmjsProtoSigner({ para, walletId: _id, prefix, messageSigningTimeoutMs });
30
- })
31
- });
32
- return { protoSigner: data, isLoading };
33
- };
34
- export {
35
- COSMJS_PROTO_SIGNER_BASE_KEY,
36
- useCosmjsProtoSigner
37
- };
@@ -1,26 +0,0 @@
1
- export declare const VIEM_ACCOUNT_BASE_KEY = "PARA_VIEM_ACCOUNT";
2
- type UseViemAccountParameters = {
3
- address?: `0x${string}`;
4
- };
5
- export declare const useViemAccount: ({ address }?: UseViemAccountParameters) => {
6
- viemAccount: {
7
- address: import("viem").Address;
8
- nonceManager?: import("viem").NonceManager | undefined;
9
- sign?: ((parameters: {
10
- hash: import("viem").Hash;
11
- }) => Promise<import("viem").Hex>) | undefined | undefined;
12
- signAuthorization?: ((parameters: import("viem").AuthorizationRequest) => Promise<import("viem/accounts").SignAuthorizationReturnType>) | undefined | undefined;
13
- signMessage: ({ message }: {
14
- message: import("viem").SignableMessage;
15
- }) => Promise<import("viem").Hex>;
16
- signTransaction: <serializer extends import("viem").SerializeTransactionFn<import("viem").TransactionSerializable> = import("viem").SerializeTransactionFn<import("viem").TransactionSerializable>, transaction extends Parameters<serializer>[0] = Parameters<serializer>[0]>(transaction: transaction, options?: {
17
- serializer?: serializer | undefined;
18
- } | undefined) => Promise<import("viem").Hex>;
19
- signTypedData: <const typedData extends import("viem").TypedData | Record<string, unknown>, primaryType extends keyof typedData | "EIP712Domain" = keyof typedData>(parameters: import("viem").TypedDataDefinition<typedData, primaryType>) => Promise<import("viem").Hex>;
20
- publicKey: import("viem").Hex;
21
- source: string;
22
- type: "local";
23
- } | null | undefined;
24
- isLoading: boolean;
25
- };
26
- export {};