@dynamic-labs/ethereum 4.9.0 → 4.9.1

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/CHANGELOG.md CHANGED
@@ -1,4 +1,21 @@
1
1
 
2
+ ### [4.9.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.9.0...v4.9.1) (2025-03-11)
3
+
4
+
5
+ ### Features
6
+
7
+ * waas svm connector ([#8191](https://github.com/dynamic-labs/dynamic-auth/issues/8191)) ([049a360](https://github.com/dynamic-labs/dynamic-auth/commit/049a360642d6aa2122676c7a29d36a7baef9e49b))
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * 7702 on sepolia ([#8242](https://github.com/dynamic-labs/dynamic-auth/issues/8242)) ([8e1c63f](https://github.com/dynamic-labs/dynamic-auth/commit/8e1c63f240024f419e12787636dd2ebaacf8da94))
13
+ * close auth flow when promptExport enabled but createWallet is false ([#8239](https://github.com/dynamic-labs/dynamic-auth/issues/8239)) ([f82429f](https://github.com/dynamic-labs/dynamic-auth/commit/f82429f85e729a76c2516f0db112033fdd2a36d5))
14
+ * fix solana genesis hashes bug that was causing a breaking change ([#8250](https://github.com/dynamic-labs/dynamic-auth/issues/8250)) ([731c93b](https://github.com/dynamic-labs/dynamic-auth/commit/731c93bea4b8b95caa8cc665f2ecb53f9948ef8e))
15
+ * move setup-inside-iframe utility method to the utils package ([#8256](https://github.com/dynamic-labs/dynamic-auth/issues/8256)) ([d34eb6d](https://github.com/dynamic-labs/dynamic-auth/commit/d34eb6d211baecb496b84fefaee8179a5fb1b52a))
16
+ * **QNTM-2952:** support headless social sign in ([#8226](https://github.com/dynamic-labs/dynamic-auth/issues/8226)) ([0c3082d](https://github.com/dynamic-labs/dynamic-auth/commit/0c3082d593c633519c9eed20be15186f18f65c09))
17
+ * sign message with trust wallet on solana ([#8249](https://github.com/dynamic-labs/dynamic-auth/issues/8249)) ([99a7917](https://github.com/dynamic-labs/dynamic-auth/commit/99a791796f7d2c83b9f18e45367aa9689c67869d))
18
+
2
19
  ## [4.9.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.8.6...v4.9.0) (2025-03-07)
3
20
 
4
21
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.9.0";
6
+ var version = "4.9.1";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.9.0";
2
+ var version = "4.9.1";
3
3
 
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/ethereum",
3
- "version": "4.9.0",
3
+ "version": "4.9.1",
4
4
  "description": "A React SDK for implementing wallet web3 authentication and authorization to your website.",
5
5
  "author": "Dynamic Labs, Inc.",
6
6
  "license": "MIT",
@@ -24,14 +24,14 @@
24
24
  "eventemitter3": "5.0.1",
25
25
  "buffer": "6.0.3",
26
26
  "@metamask/sdk": "0.32.0",
27
- "@dynamic-labs/assert-package-version": "4.9.0",
28
- "@dynamic-labs/embedded-wallet-evm": "4.9.0",
29
- "@dynamic-labs/ethereum-core": "4.9.0",
30
- "@dynamic-labs/logger": "4.9.0",
31
- "@dynamic-labs/types": "4.9.0",
32
- "@dynamic-labs/utils": "4.9.0",
33
- "@dynamic-labs/wallet-book": "4.9.0",
34
- "@dynamic-labs/wallet-connector-core": "4.9.0"
27
+ "@dynamic-labs/assert-package-version": "4.9.1",
28
+ "@dynamic-labs/embedded-wallet-evm": "4.9.1",
29
+ "@dynamic-labs/ethereum-core": "4.9.1",
30
+ "@dynamic-labs/logger": "4.9.1",
31
+ "@dynamic-labs/types": "4.9.1",
32
+ "@dynamic-labs/utils": "4.9.1",
33
+ "@dynamic-labs/wallet-book": "4.9.1",
34
+ "@dynamic-labs/wallet-connector-core": "4.9.1"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "viem": "^2.21.55"
@@ -0,0 +1,63 @@
1
+ import EthereumProvider from '@walletconnect/ethereum-provider';
2
+ import { ProviderAccounts } from 'node_modules/@walletconnect/ethereum-provider/dist/types/types';
3
+ import { DeepLinkVariant, GetAddressOpts, WalletDeepLinks } from '@dynamic-labs/wallet-connector-core';
4
+ import { GenericNetwork } from '@dynamic-labs/types';
5
+ type ProviderInitOpts = {
6
+ storePrefix?: string;
7
+ };
8
+ export declare class WalletConnectProvider {
9
+ static isInitialized: boolean;
10
+ static projectId: string;
11
+ static enabledNetworks: GenericNetwork[];
12
+ static preferredChains: `eip155:${number}`[];
13
+ static evmNetworkRpcMap: Record<string, string>;
14
+ private static provider;
15
+ /**
16
+ * The connection URI for the current connection.
17
+ */
18
+ static connectionUri: string | undefined;
19
+ private static eventListenersSetup;
20
+ private static accountChangedHandler;
21
+ private static chainChangedHandler;
22
+ private static disconnectHandler;
23
+ private constructor();
24
+ /**
25
+ * Initializes the provider. This method should only be called once.
26
+ * Does not start a connection.
27
+ */
28
+ static init: ({ storePrefix, }?: ProviderInitOpts) => Promise<void>;
29
+ /**
30
+ * Connects to a wallet. This method should be called whenever a new wallet connection is needed.
31
+ * If the wallet is already connected when the page is refreshed, this method does not need to be called.
32
+ */
33
+ static connect: ({ deepLinks, deepLinkPreference, connectionOpts, }: {
34
+ deepLinks?: WalletDeepLinks;
35
+ deepLinkPreference: DeepLinkVariant;
36
+ connectionOpts?: GetAddressOpts;
37
+ }) => Promise<ProviderAccounts | undefined>;
38
+ /**
39
+ * Disconnects from a wallet. This method should be called whenever we need to disconnect from a wallet.
40
+ * It will kill the connection, but not the provider.
41
+ */
42
+ static disconnect: () => Promise<void>;
43
+ /**
44
+ * Returns the EthereumProvider instance.
45
+ */
46
+ static getProvider: () => EthereumProvider | undefined;
47
+ private static handleChainChangedEvent;
48
+ private static handleAccountChangedEvent;
49
+ /**
50
+ * Sets up event listeners for the provider.
51
+ */
52
+ static setupEventListeners: ({ onChainChanged, onAccountChanged, onDisconnect, }: {
53
+ onChainChanged?: (chainId: number) => void;
54
+ onAccountChanged?: (account: string) => void;
55
+ onDisconnect?: () => void;
56
+ }) => void;
57
+ /**
58
+ * Tears down event listeners for the provider.
59
+ */
60
+ static teardownEventListeners: () => void;
61
+ private static getMappedChainsByPreferredOrder;
62
+ }
63
+ export {};
@@ -0,0 +1 @@
1
+ export { WalletConnectProvider } from './WalletConnectProvider';