@dynamic-labs/embedded-wallet-solana 3.0.0-alpha.16 → 3.0.0-alpha.18

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,23 @@
1
1
 
2
+ ## [3.0.0-alpha.18](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.17...v3.0.0-alpha.18) (2024-07-12)
3
+
4
+
5
+ ### Bug Fixes
6
+
7
+ * hide confirmation ui triggers passkey creation ([#6322](https://github.com/dynamic-labs/DynamicAuth/issues/6322)) ([c66f282](https://github.com/dynamic-labs/DynamicAuth/commit/c66f282cf8d64f19d7f5a7355aaaec980afbe245))
8
+
9
+ ## [3.0.0-alpha.17](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.16...v3.0.0-alpha.17) (2024-07-11)
10
+
11
+
12
+ ### Features
13
+
14
+ * add new hook to select wallet option to connect ([#6301](https://github.com/dynamic-labs/DynamicAuth/issues/6301)) ([833d71d](https://github.com/dynamic-labs/DynamicAuth/commit/833d71de164c57bfa22898c3425641a83a12e135))
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * refresh session keys correctly for solana embedded wallets ([#6309](https://github.com/dynamic-labs/DynamicAuth/issues/6309)) ([4b28e8a](https://github.com/dynamic-labs/DynamicAuth/commit/4b28e8ae231567754b6cfd07a7d41e86f1c73daa))
20
+
2
21
  ## [3.0.0-alpha.16](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.15...v3.0.0-alpha.16) (2024-07-11)
3
22
 
4
23
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/embedded-wallet-solana",
3
- "version": "3.0.0-alpha.16",
3
+ "version": "3.0.0-alpha.18",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/dynamic-labs/dynamic-auth.git",
@@ -33,14 +33,14 @@
33
33
  "@turnkey/iframe-stamper": "2.0.0",
34
34
  "@turnkey/solana": "0.3.1",
35
35
  "@turnkey/webauthn-stamper": "0.5.0",
36
- "@dynamic-labs/embedded-wallet": "3.0.0-alpha.16",
37
- "@dynamic-labs/rpc-provider-solana": "3.0.0-alpha.16",
38
- "@dynamic-labs/rpc-providers": "3.0.0-alpha.16",
39
- "@dynamic-labs/solana-utils": "3.0.0-alpha.16",
40
- "@dynamic-labs/types": "3.0.0-alpha.16",
41
- "@dynamic-labs/utils": "3.0.0-alpha.16",
42
- "@dynamic-labs/wallet-book": "3.0.0-alpha.16",
43
- "@dynamic-labs/wallet-connector-core": "3.0.0-alpha.16",
36
+ "@dynamic-labs/embedded-wallet": "3.0.0-alpha.18",
37
+ "@dynamic-labs/rpc-provider-solana": "3.0.0-alpha.18",
38
+ "@dynamic-labs/rpc-providers": "3.0.0-alpha.18",
39
+ "@dynamic-labs/solana-utils": "3.0.0-alpha.18",
40
+ "@dynamic-labs/types": "3.0.0-alpha.18",
41
+ "@dynamic-labs/utils": "3.0.0-alpha.18",
42
+ "@dynamic-labs/wallet-book": "3.0.0-alpha.18",
43
+ "@dynamic-labs/wallet-connector-core": "3.0.0-alpha.18",
44
44
  "viem": "2.9.25"
45
45
  },
46
46
  "peerDependencies": {}
@@ -189,7 +189,7 @@ class TurnkeySolanaWalletConnector extends embeddedWallet.TurnkeyWalletConnector
189
189
  yield this.createOrRestoreSession();
190
190
  yield this.walletUiUtils.signMessage({
191
191
  handler: () => _tslib.__awaiter(this, void 0, void 0, function* () {
192
- const account = yield this.getTurnkeyAccount();
192
+ let account = yield this.getTurnkeyAccount();
193
193
  try {
194
194
  signedMessageRaw = yield (account === null || account === void 0 ? void 0 : account.signMessage(encodedMessage, address));
195
195
  }
@@ -198,6 +198,7 @@ class TurnkeySolanaWalletConnector extends embeddedWallet.TurnkeyWalletConnector
198
198
  yield this.createOrRestoreSession({
199
199
  ignoreRestore: true,
200
200
  });
201
+ account = yield this.getTurnkeyAccount();
201
202
  signedMessageRaw = yield (account === null || account === void 0 ? void 0 : account.signMessage(encodedMessage, address));
202
203
  }
203
204
  return utils.bufferToBase64(signedMessageRaw || Buffer.from([]));
@@ -221,7 +222,7 @@ class TurnkeySolanaWalletConnector extends embeddedWallet.TurnkeyWalletConnector
221
222
  signTransaction(transaction) {
222
223
  return _tslib.__awaiter(this, void 0, void 0, function* () {
223
224
  yield this.createOrRestoreSession();
224
- const account = yield this.getTurnkeyAccount();
225
+ let account = yield this.getTurnkeyAccount();
225
226
  const address = this.turnkeyAddress;
226
227
  if (!account || !address) {
227
228
  throw new Error('No turnkey account');
@@ -234,6 +235,7 @@ class TurnkeySolanaWalletConnector extends embeddedWallet.TurnkeyWalletConnector
234
235
  yield this.createOrRestoreSession({
235
236
  ignoreRestore: true,
236
237
  });
238
+ account = (yield this.getTurnkeyAccount());
237
239
  yield account.addSignature(transaction, address);
238
240
  }
239
241
  return transaction;
@@ -185,7 +185,7 @@ class TurnkeySolanaWalletConnector extends TurnkeyWalletConnectorBase {
185
185
  yield this.createOrRestoreSession();
186
186
  yield this.walletUiUtils.signMessage({
187
187
  handler: () => __awaiter(this, void 0, void 0, function* () {
188
- const account = yield this.getTurnkeyAccount();
188
+ let account = yield this.getTurnkeyAccount();
189
189
  try {
190
190
  signedMessageRaw = yield (account === null || account === void 0 ? void 0 : account.signMessage(encodedMessage, address));
191
191
  }
@@ -194,6 +194,7 @@ class TurnkeySolanaWalletConnector extends TurnkeyWalletConnectorBase {
194
194
  yield this.createOrRestoreSession({
195
195
  ignoreRestore: true,
196
196
  });
197
+ account = yield this.getTurnkeyAccount();
197
198
  signedMessageRaw = yield (account === null || account === void 0 ? void 0 : account.signMessage(encodedMessage, address));
198
199
  }
199
200
  return bufferToBase64(signedMessageRaw || Buffer.from([]));
@@ -217,7 +218,7 @@ class TurnkeySolanaWalletConnector extends TurnkeyWalletConnectorBase {
217
218
  signTransaction(transaction) {
218
219
  return __awaiter(this, void 0, void 0, function* () {
219
220
  yield this.createOrRestoreSession();
220
- const account = yield this.getTurnkeyAccount();
221
+ let account = yield this.getTurnkeyAccount();
221
222
  const address = this.turnkeyAddress;
222
223
  if (!account || !address) {
223
224
  throw new Error('No turnkey account');
@@ -230,6 +231,7 @@ class TurnkeySolanaWalletConnector extends TurnkeyWalletConnectorBase {
230
231
  yield this.createOrRestoreSession({
231
232
  ignoreRestore: true,
232
233
  });
234
+ account = (yield this.getTurnkeyAccount());
233
235
  yield account.addSignature(transaction, address);
234
236
  }
235
237
  return transaction;