@dynamic-labs/embedded-wallet-solana 3.0.0-alpha.15 → 3.0.0-alpha.17
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,35 @@
|
|
|
1
1
|
|
|
2
|
+
## [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)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* 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))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* 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))
|
|
13
|
+
|
|
14
|
+
## [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)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### ⚠ BREAKING CHANGES
|
|
18
|
+
|
|
19
|
+
* remove isConnected prop from wallets and have it as a method instead (#6265)
|
|
20
|
+
|
|
21
|
+
### Features
|
|
22
|
+
|
|
23
|
+
* add bundlerRpc and paymasterRpc parameters to zerodev ([#6304](https://github.com/dynamic-labs/DynamicAuth/issues/6304)) ([156469b](https://github.com/dynamic-labs/DynamicAuth/commit/156469bf703f0c7fa455a24b8e4e328d3a0c58fc))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### Bug Fixes
|
|
27
|
+
|
|
28
|
+
* headless embedded wallet export session refresh ([#6307](https://github.com/dynamic-labs/DynamicAuth/issues/6307)) ([5423cc1](https://github.com/dynamic-labs/DynamicAuth/commit/5423cc14c370968acf718b7deff6ea8df9228189))
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
* remove isConnected prop from wallets and have it as a method instead ([#6265](https://github.com/dynamic-labs/DynamicAuth/issues/6265)) ([652dcc2](https://github.com/dynamic-labs/DynamicAuth/commit/652dcc2d34c9a9719238606c67f600e40621183b))
|
|
32
|
+
|
|
2
33
|
## [3.0.0-alpha.15](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.14...v3.0.0-alpha.15) (2024-07-11)
|
|
3
34
|
|
|
4
35
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/embedded-wallet-solana",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.17",
|
|
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.
|
|
37
|
-
"@dynamic-labs/rpc-provider-solana": "3.0.0-alpha.
|
|
38
|
-
"@dynamic-labs/rpc-providers": "3.0.0-alpha.
|
|
39
|
-
"@dynamic-labs/solana-utils": "3.0.0-alpha.
|
|
40
|
-
"@dynamic-labs/types": "3.0.0-alpha.
|
|
41
|
-
"@dynamic-labs/utils": "3.0.0-alpha.
|
|
42
|
-
"@dynamic-labs/wallet-book": "3.0.0-alpha.
|
|
43
|
-
"@dynamic-labs/wallet-connector-core": "3.0.0-alpha.
|
|
36
|
+
"@dynamic-labs/embedded-wallet": "3.0.0-alpha.17",
|
|
37
|
+
"@dynamic-labs/rpc-provider-solana": "3.0.0-alpha.17",
|
|
38
|
+
"@dynamic-labs/rpc-providers": "3.0.0-alpha.17",
|
|
39
|
+
"@dynamic-labs/solana-utils": "3.0.0-alpha.17",
|
|
40
|
+
"@dynamic-labs/types": "3.0.0-alpha.17",
|
|
41
|
+
"@dynamic-labs/utils": "3.0.0-alpha.17",
|
|
42
|
+
"@dynamic-labs/wallet-book": "3.0.0-alpha.17",
|
|
43
|
+
"@dynamic-labs/wallet-connector-core": "3.0.0-alpha.17",
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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;
|