@getpara/react-sdk 2.14.0 → 2.16.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/dist/aa/alchemy/index.d.ts +2 -0
- package/dist/aa/alchemy/index.js +8 -0
- package/dist/aa/biconomy/index.d.ts +2 -0
- package/dist/aa/biconomy/index.js +8 -0
- package/dist/aa/cdp/index.d.ts +2 -0
- package/dist/aa/cdp/index.js +8 -0
- package/dist/aa/gelato/index.d.ts +2 -0
- package/dist/aa/gelato/index.js +8 -0
- package/dist/aa/pimlico/index.d.ts +2 -0
- package/dist/aa/pimlico/index.js +8 -0
- package/dist/aa/porto/index.d.ts +2 -0
- package/dist/aa/porto/index.js +8 -0
- package/dist/aa/rhinestone/index.d.ts +2 -0
- package/dist/aa/rhinestone/index.js +8 -0
- package/dist/aa/safe/index.d.ts +2 -0
- package/dist/aa/safe/index.js +8 -0
- package/dist/aa/thirdweb/index.d.ts +2 -0
- package/dist/aa/thirdweb/index.js +8 -0
- package/dist/aa/zerodev/index.d.ts +2 -0
- package/dist/aa/zerodev/index.js +8 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +15 -1
- package/dist/solana/actions/getSolanaSigner.d.ts +2 -3
- package/dist/solana/hooks/useSolanaSigner.d.ts +2 -3
- package/package.json +33 -11
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "../../chunk-MMUBH76A.js";
|
|
3
|
+
export * from "@getpara/aa-biconomy";
|
|
4
|
+
import { useBiconomySmartAccount, BICONOMY_SMART_ACCOUNT_BASE_KEY } from "@getpara/react-sdk-lite";
|
|
5
|
+
export {
|
|
6
|
+
BICONOMY_SMART_ACCOUNT_BASE_KEY,
|
|
7
|
+
useBiconomySmartAccount
|
|
8
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "../../chunk-MMUBH76A.js";
|
|
3
|
+
export * from "@getpara/aa-rhinestone";
|
|
4
|
+
import { useRhinestoneSmartAccount, RHINESTONE_SMART_ACCOUNT_BASE_KEY } from "@getpara/react-sdk-lite";
|
|
5
|
+
export {
|
|
6
|
+
RHINESTONE_SMART_ACCOUNT_BASE_KEY,
|
|
7
|
+
useRhinestoneSmartAccount
|
|
8
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "../../chunk-MMUBH76A.js";
|
|
3
|
+
export * from "@getpara/aa-thirdweb";
|
|
4
|
+
import { useThirdwebSmartAccount, THIRDWEB_SMART_ACCOUNT_BASE_KEY } from "@getpara/react-sdk-lite";
|
|
5
|
+
export {
|
|
6
|
+
THIRDWEB_SMART_ACCOUNT_BASE_KEY,
|
|
7
|
+
useThirdwebSmartAccount
|
|
8
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -2,3 +2,17 @@ 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 type { SmartAccount, SmartAccount4337, SmartAccount7702, SmartAccountMode, SmartAccountModeParam, SmartAccountProvider, TransactionParams, TransactionReceipt, } from '@getpara/viem-v2-integration';
|
|
6
|
+
export { SMART_ACCOUNT_PROVIDERS, isSmartAccount4337, isSmartAccount7702 } from '@getpara/viem-v2-integration';
|
|
7
|
+
export type { SmartAccountErrorCode } from '@getpara/viem-v2-integration';
|
|
8
|
+
export { SmartAccountError, SMART_ACCOUNT_ERROR_CODES, classifyProviderError, wrapProviderError, } from '@getpara/viem-v2-integration';
|
|
9
|
+
export type { CreateAlchemySmartAccountParams, AlchemySmartAccountConfig, UseAlchemySmartAccountParams, AlchemyTransactionOptions, } from '@getpara/aa-alchemy';
|
|
10
|
+
export type { CreateZeroDevSmartAccountParams, ZeroDevSmartAccountConfig, UseZeroDevSmartAccountParams, ZeroDevTransactionOptions, } from '@getpara/aa-zerodev';
|
|
11
|
+
export type { CreateBiconomySmartAccountParams, BiconomySmartAccountConfig, UseBiconomySmartAccountParams, } from '@getpara/aa-biconomy';
|
|
12
|
+
export type { CreateGelatoSmartAccountParams, GelatoSmartAccountConfig, UseGelatoSmartAccountParams, } from '@getpara/aa-gelato';
|
|
13
|
+
export type { CreatePimlicoSmartAccountParams, PimlicoSmartAccountConfig, UsePimlicoSmartAccountParams, } from '@getpara/aa-pimlico';
|
|
14
|
+
export type { CreateSafeSmartAccountParams, SafeSmartAccountConfig, UseSafeSmartAccountParams, SafeTransactionOptions, } from '@getpara/aa-safe';
|
|
15
|
+
export type { CreateThirdwebSmartAccountParams, ThirdwebSmartAccountConfig, UseThirdwebSmartAccountParams, } from '@getpara/aa-thirdweb';
|
|
16
|
+
export type { CreateRhinestoneSmartAccountParams, RhinestoneSmartAccountConfig, UseRhinestoneSmartAccountParams, } from '@getpara/aa-rhinestone';
|
|
17
|
+
export type { CreatePortoSmartAccountParams, PortoAccountConfig, UsePortoSmartAccountParams } from '@getpara/aa-porto';
|
|
18
|
+
export type { CreateCDPSmartAccountParams, CDPSmartAccountConfig, UseCDPSmartAccountParams } from '@getpara/aa-cdp';
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,21 @@ 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
|
+
import { SMART_ACCOUNT_PROVIDERS, isSmartAccount4337, isSmartAccount7702 } from "@getpara/viem-v2-integration";
|
|
8
|
+
import {
|
|
9
|
+
SmartAccountError,
|
|
10
|
+
SMART_ACCOUNT_ERROR_CODES,
|
|
11
|
+
classifyProviderError,
|
|
12
|
+
wrapProviderError
|
|
13
|
+
} from "@getpara/viem-v2-integration";
|
|
7
14
|
export {
|
|
8
15
|
ParaProvider,
|
|
9
|
-
|
|
16
|
+
SMART_ACCOUNT_ERROR_CODES,
|
|
17
|
+
SMART_ACCOUNT_PROVIDERS,
|
|
18
|
+
SmartAccountError,
|
|
19
|
+
classifyProviderError,
|
|
20
|
+
src_default as default,
|
|
21
|
+
isSmartAccount4337,
|
|
22
|
+
isSmartAccount7702,
|
|
23
|
+
wrapProviderError
|
|
10
24
|
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import ParaWeb from '@getpara/react-sdk-lite';
|
|
2
|
-
import {
|
|
3
|
-
import { Rpc } from '@solana/rpc-spec';
|
|
2
|
+
import { type ParaSignerParams } from '@getpara/solana-signers-v2-integration';
|
|
4
3
|
export declare const getSolanaSigner: ({ para, rpc, walletId, }: {
|
|
5
4
|
para: ParaWeb;
|
|
6
5
|
walletId?: string;
|
|
7
|
-
rpc:
|
|
6
|
+
rpc: ParaSignerParams["rpc"];
|
|
8
7
|
}) => Promise<import("@getpara/solana-signers-v2-integration").ParaSolanaSigner>;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Rpc } from '@solana/rpc-spec';
|
|
1
|
+
import type { ParaSignerParams } from '@getpara/solana-signers-v2-integration';
|
|
3
2
|
export declare const SOLANA_SIGNER_BASE_KEY = "PARA_SOLANA_SIGNER";
|
|
4
3
|
type UseSolanaSignerParameters = {
|
|
5
4
|
walletId?: string;
|
|
6
|
-
rpc:
|
|
5
|
+
rpc: ParaSignerParams['rpc'];
|
|
7
6
|
};
|
|
8
7
|
export declare const useSolanaSigner: ({ walletId, rpc }: UseSolanaSignerParameters) => {
|
|
9
8
|
solanaSigner: import("@getpara/solana-signers-v2-integration").ParaSolanaSigner | null | undefined;
|
package/package.json
CHANGED
|
@@ -1,16 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getpara/react-sdk",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.16.0",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@getpara/
|
|
6
|
-
"@getpara/
|
|
7
|
-
"@getpara/
|
|
8
|
-
"@getpara/
|
|
9
|
-
"@getpara/
|
|
10
|
-
"@getpara/
|
|
11
|
-
"@getpara/
|
|
5
|
+
"@getpara/aa-alchemy": "2.16.0",
|
|
6
|
+
"@getpara/aa-biconomy": "2.16.0",
|
|
7
|
+
"@getpara/aa-cdp": "2.16.0",
|
|
8
|
+
"@getpara/aa-gelato": "2.16.0",
|
|
9
|
+
"@getpara/aa-pimlico": "2.16.0",
|
|
10
|
+
"@getpara/aa-porto": "2.16.0",
|
|
11
|
+
"@getpara/aa-rhinestone": "2.16.0",
|
|
12
|
+
"@getpara/aa-safe": "2.16.0",
|
|
13
|
+
"@getpara/aa-thirdweb": "2.16.0",
|
|
14
|
+
"@getpara/aa-zerodev": "2.16.0",
|
|
15
|
+
"@getpara/cosmjs-v0-integration": "2.16.0",
|
|
16
|
+
"@getpara/cosmos-wallet-connectors": "2.16.0",
|
|
17
|
+
"@getpara/evm-wallet-connectors": "2.16.0",
|
|
18
|
+
"@getpara/react-sdk-lite": "2.16.0",
|
|
19
|
+
"@getpara/solana-signers-v2-integration": "2.16.0",
|
|
20
|
+
"@getpara/solana-wallet-connectors": "2.16.0",
|
|
21
|
+
"@getpara/viem-v2-integration": "2.16.0"
|
|
12
22
|
},
|
|
13
23
|
"devDependencies": {
|
|
24
|
+
"@metamask/delegation-toolkit": "^0.11.0",
|
|
14
25
|
"@types/react": "^18.0.31",
|
|
15
26
|
"@types/react-dom": "^18.2.7",
|
|
16
27
|
"typescript": "^5.8.3"
|
|
@@ -26,19 +37,30 @@
|
|
|
26
37
|
"./cosmos/actions": "./dist/cosmos/actions/index.js",
|
|
27
38
|
"./solana": "./dist/solana/index.js",
|
|
28
39
|
"./solana/hooks": "./dist/solana/hooks/index.js",
|
|
29
|
-
"./solana/actions": "./dist/solana/actions/index.js"
|
|
40
|
+
"./solana/actions": "./dist/solana/actions/index.js",
|
|
41
|
+
"./aa/alchemy": "./dist/aa/alchemy/index.js",
|
|
42
|
+
"./aa/biconomy": "./dist/aa/biconomy/index.js",
|
|
43
|
+
"./aa/cdp": "./dist/aa/cdp/index.js",
|
|
44
|
+
"./aa/gelato": "./dist/aa/gelato/index.js",
|
|
45
|
+
"./aa/pimlico": "./dist/aa/pimlico/index.js",
|
|
46
|
+
"./aa/porto": "./dist/aa/porto/index.js",
|
|
47
|
+
"./aa/rhinestone": "./dist/aa/rhinestone/index.js",
|
|
48
|
+
"./aa/safe": "./dist/aa/safe/index.js",
|
|
49
|
+
"./aa/thirdweb": "./dist/aa/thirdweb/index.js",
|
|
50
|
+
"./aa/zerodev": "./dist/aa/zerodev/index.js"
|
|
30
51
|
},
|
|
31
52
|
"files": [
|
|
32
53
|
"dist",
|
|
33
54
|
"package.json",
|
|
34
55
|
"styles.css"
|
|
35
56
|
],
|
|
36
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "fbe96a062b308d04105213378c12c38ee973c798",
|
|
37
58
|
"main": "dist/index.js",
|
|
38
59
|
"peerDependencies": {
|
|
39
60
|
"@tanstack/react-query": ">=5.0.0",
|
|
40
61
|
"react": "*",
|
|
41
|
-
"react-dom": "*"
|
|
62
|
+
"react-dom": "*",
|
|
63
|
+
"viem": ">=2.0.0"
|
|
42
64
|
},
|
|
43
65
|
"scripts": {
|
|
44
66
|
"build": "rm -rf dist && yarn typegen && node ./scripts/build.mjs && yarn post-build",
|