@dynamic-labs/ethereum 2.1.0-alpha.30 → 2.1.0-alpha.31

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,14 @@
1
1
 
2
+ ## [2.1.0-alpha.31](https://github.com/dynamic-labs/DynamicAuth/compare/v2.1.0-alpha.30...v2.1.0-alpha.31) (2024-05-31)
3
+
4
+
5
+ ### Bug Fixes
6
+
7
+ * export solana private keys in the correct format ([#5809](https://github.com/dynamic-labs/DynamicAuth/issues/5809)) ([08ac1f8](https://github.com/dynamic-labs/DynamicAuth/commit/08ac1f87bb02ad07fd1fc1f544fdcc64ebe635b8))
8
+ * magiceden evm network switching ([#5800](https://github.com/dynamic-labs/DynamicAuth/issues/5800)) ([9b86797](https://github.com/dynamic-labs/DynamicAuth/commit/9b8679735f3db4b33bb57409c3a69adf2beb82aa))
9
+ * pass all signing inputs to createPsbtOptions ([#5798](https://github.com/dynamic-labs/DynamicAuth/issues/5798)) ([628ad4f](https://github.com/dynamic-labs/DynamicAuth/commit/628ad4f8c161496a0610ecbc3052735f8ceae98d))
10
+ * trigger onboarding async ([#5805](https://github.com/dynamic-labs/DynamicAuth/issues/5805)) ([2c1f98c](https://github.com/dynamic-labs/DynamicAuth/commit/2c1f98c0d91422f75e2d6d32ea4a27c2bc8d8376))
11
+
2
12
  ## [2.1.0-alpha.30](https://github.com/dynamic-labs/DynamicAuth/compare/v2.1.0-alpha.29...v2.1.0-alpha.30) (2024-05-31)
3
13
 
4
14
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/ethereum",
3
- "version": "2.1.0-alpha.30",
3
+ "version": "2.1.0-alpha.31",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/dynamic-labs/dynamic-auth.git",
@@ -27,17 +27,17 @@
27
27
  },
28
28
  "dependencies": {
29
29
  "@dynamic-labs/sdk-api-core": "0.0.453",
30
- "@coinbase/wallet-sdk": "4.0.0-beta.14",
30
+ "@coinbase/wallet-sdk": "4.0.3",
31
31
  "@walletconnect/ethereum-provider": "2.11.2",
32
32
  "eventemitter3": "5.0.1",
33
33
  "buffer": "6.0.3",
34
- "@dynamic-labs/rpc-provider-ethereum": "2.1.0-alpha.30",
35
- "@dynamic-labs/turnkey": "2.1.0-alpha.30",
36
- "@dynamic-labs/types": "2.1.0-alpha.30",
37
- "@dynamic-labs/utils": "2.1.0-alpha.30",
38
- "@dynamic-labs/viem-utils": "2.1.0-alpha.30",
39
- "@dynamic-labs/wallet-book": "2.1.0-alpha.30",
40
- "@dynamic-labs/wallet-connector-core": "2.1.0-alpha.30",
34
+ "@dynamic-labs/rpc-provider-ethereum": "2.1.0-alpha.31",
35
+ "@dynamic-labs/turnkey": "2.1.0-alpha.31",
36
+ "@dynamic-labs/types": "2.1.0-alpha.31",
37
+ "@dynamic-labs/utils": "2.1.0-alpha.31",
38
+ "@dynamic-labs/viem-utils": "2.1.0-alpha.31",
39
+ "@dynamic-labs/wallet-book": "2.1.0-alpha.31",
40
+ "@dynamic-labs/wallet-connector-core": "2.1.0-alpha.31",
41
41
  "stream": "0.0.2"
42
42
  },
43
43
  "peerDependencies": {
@@ -143,7 +143,11 @@ class EthWalletConnector extends walletConnectorCore.WalletConnectorBase {
143
143
  if (!this.supportsNetworkSwitching()) {
144
144
  throw new utils.DynamicError('Network switching is not supported');
145
145
  }
146
- return yield provider.switchChain(utils.getOrMapViemChain(network));
146
+ yield provider.switchChain(utils.getOrMapViemChain(network));
147
+ if (this.key === 'magiceden') {
148
+ const newChainId = yield provider.getChainId();
149
+ this.emit('chainChange', { chain: newChainId.toString() });
150
+ }
147
151
  }
148
152
  catch (error) {
149
153
  // we need to check for unrecognized chain error first because it also contains 'rejected' in message
@@ -139,7 +139,11 @@ class EthWalletConnector extends WalletConnectorBase {
139
139
  if (!this.supportsNetworkSwitching()) {
140
140
  throw new DynamicError('Network switching is not supported');
141
141
  }
142
- return yield provider.switchChain(getOrMapViemChain(network));
142
+ yield provider.switchChain(getOrMapViemChain(network));
143
+ if (this.key === 'magiceden') {
144
+ const newChainId = yield provider.getChainId();
145
+ this.emit('chainChange', { chain: newChainId.toString() });
146
+ }
143
147
  }
144
148
  catch (error) {
145
149
  // we need to check for unrecognized chain error first because it also contains 'rejected' in message