@gelatonetwork/smartwallet-react-sdk 0.0.20 → 0.0.21

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gelatonetwork/smartwallet-react-sdk",
3
- "version": "0.0.20",
3
+ "version": "0.0.21",
4
4
  "author": "Gelato",
5
5
  "type": "module",
6
6
  "description": "Gelato SmartWallet React SDK",
@@ -10,10 +10,10 @@
10
10
  "peerDependencies": {
11
11
  "typescript": "^5.3",
12
12
  "viem": "~2.29",
13
- "@gelatonetwork/smartwallet": "0.0.20",
14
- "@gelatonetwork/smartwallet-react-types": "0.0.20",
15
- "@gelatonetwork/smartwallet-react-dynamic": "0.0.20",
16
- "@gelatonetwork/smartwallet-react-privy": "0.0.20"
13
+ "@gelatonetwork/smartwallet": "0.0.21",
14
+ "@gelatonetwork/smartwallet-react-types": "0.0.21",
15
+ "@gelatonetwork/smartwallet-react-dynamic": "0.0.21",
16
+ "@gelatonetwork/smartwallet-react-privy": "0.0.21"
17
17
  },
18
18
  "peerDependenciesMeta": {
19
19
  "typescript": {
@@ -24,9 +24,10 @@
24
24
  "react": "^18.3",
25
25
  "viem": "~2.29",
26
26
  "wagmi": "~2.15",
27
- "@gelatonetwork/smartwallet-react-types": "0.0.20",
28
- "@gelatonetwork/smartwallet-react-dynamic": "0.0.20",
29
- "@gelatonetwork/smartwallet-react-privy": "0.0.20"
27
+ "@dynamic-labs/types": "~4.18.3",
28
+ "@gelatonetwork/smartwallet-react-types": "0.0.21",
29
+ "@gelatonetwork/smartwallet-react-dynamic": "0.0.21",
30
+ "@gelatonetwork/smartwallet-react-privy": "0.0.21"
30
31
  },
31
32
  "devDependencies": {
32
33
  "@types/react": "^18.3"
package/src/index.ts CHANGED
@@ -6,17 +6,23 @@ export {
6
6
  } from "./provider.js";
7
7
  export { GelatoSmartWalletConnectButton } from "./components/connect.js";
8
8
 
9
- export const dynamic = (appId: string) => {
9
+ export const dynamic = (appId: string, options?: wallet.DynamicOptions) => {
10
10
  return {
11
11
  type: "dynamic" as wallet.ProviderType,
12
- appId
12
+ appId,
13
+ customChains: {
14
+ evmNetworks: options?.evmNetworks
15
+ }
13
16
  };
14
17
  };
15
18
 
16
- export const privy = (appId: string) => {
19
+ export const privy = (appId: string, options?: wallet.PrivyOptions) => {
17
20
  return {
18
21
  type: "privy" as wallet.ProviderType,
19
- appId
22
+ appId,
23
+ customChains: {
24
+ supportedChains: options?.supportedChains
25
+ }
20
26
  };
21
27
  };
22
28