@dynamic-labs/solana-core 3.0.0-alpha.61 → 3.0.0-alpha.63
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 +24 -0
- package/package.json +6 -6
- package/src/wallet/SolanaWallet.cjs +11 -5
- package/src/wallet/SolanaWallet.js +11 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,28 @@
|
|
|
1
1
|
|
|
2
|
+
## [3.0.0-alpha.63](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.62...v3.0.0-alpha.63) (2024-09-10)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### ⚠ BREAKING CHANGES
|
|
6
|
+
|
|
7
|
+
* remove signWithEmailWalletName (#6824)
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* remove signWithEmailWalletName ([#6824](https://github.com/dynamic-labs/DynamicAuth/issues/6824)) ([9da06ce](https://github.com/dynamic-labs/DynamicAuth/commit/9da06ce6f83813e00827295a2952a805e0ef5ec0))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* omit body when creating 204 response data ([#6458](https://github.com/dynamic-labs/DynamicAuth/issues/6458)) ([06aab01](https://github.com/dynamic-labs/DynamicAuth/commit/06aab016eed0fa5ac41e43ece73780844d8d12ad))
|
|
17
|
+
* use a better object clone function to clone wallet signers ([#6835](https://github.com/dynamic-labs/DynamicAuth/issues/6835)) ([d88c195](https://github.com/dynamic-labs/DynamicAuth/commit/d88c195ce8e3af8e2fd8e6d76fbbdad618bc6c85))
|
|
18
|
+
|
|
19
|
+
## [3.0.0-alpha.62](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.61...v3.0.0-alpha.62) (2024-09-08)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Bug Fixes
|
|
23
|
+
|
|
24
|
+
* fiat not displaying ([#6825](https://github.com/dynamic-labs/DynamicAuth/issues/6825)) ([a76a14d](https://github.com/dynamic-labs/DynamicAuth/commit/a76a14dfb10d44b15b406995122c080961546728))
|
|
25
|
+
|
|
2
26
|
## [3.0.0-alpha.61](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.60...v3.0.0-alpha.61) (2024-09-06)
|
|
3
27
|
|
|
4
28
|
## [3.0.0-alpha.60](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.59...v3.0.0-alpha.60) (2024-09-05)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/solana-core",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.63",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/dynamic-labs/dynamic-auth.git",
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
"@solana/spl-token": "0.4.6"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@dynamic-labs/rpc-providers": "3.0.0-alpha.
|
|
35
|
-
"@dynamic-labs/types": "3.0.0-alpha.
|
|
36
|
-
"@dynamic-labs/utils": "3.0.0-alpha.
|
|
37
|
-
"@dynamic-labs/wallet-book": "3.0.0-alpha.
|
|
38
|
-
"@dynamic-labs/wallet-connector-core": "3.0.0-alpha.
|
|
34
|
+
"@dynamic-labs/rpc-providers": "3.0.0-alpha.63",
|
|
35
|
+
"@dynamic-labs/types": "3.0.0-alpha.63",
|
|
36
|
+
"@dynamic-labs/utils": "3.0.0-alpha.63",
|
|
37
|
+
"@dynamic-labs/wallet-book": "3.0.0-alpha.63",
|
|
38
|
+
"@dynamic-labs/wallet-connector-core": "3.0.0-alpha.63",
|
|
39
39
|
"eventemitter3": "5.0.1"
|
|
40
40
|
}
|
|
41
41
|
}
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
|
|
6
6
|
var _tslib = require('../../_virtual/_tslib.cjs');
|
|
7
7
|
var walletConnectorCore = require('@dynamic-labs/wallet-connector-core');
|
|
8
|
+
var utils = require('@dynamic-labs/utils');
|
|
8
9
|
|
|
9
10
|
class SolanaWallet extends walletConnectorCore.Wallet {
|
|
10
11
|
/**
|
|
@@ -27,19 +28,24 @@ class SolanaWallet extends walletConnectorCore.Wallet {
|
|
|
27
28
|
if (!signer) {
|
|
28
29
|
throw new Error('unable to retrieve Solana signer');
|
|
29
30
|
}
|
|
30
|
-
return
|
|
31
|
+
return utils.cloneObjectWithOverrides(signer, {
|
|
32
|
+
signAllTransactions: (transactions) => _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
31
33
|
yield this.sync();
|
|
32
34
|
return signer.signAllTransactions(transactions);
|
|
33
|
-
}),
|
|
35
|
+
}),
|
|
36
|
+
signAndSendTransaction: (transaction, ...args) => _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
34
37
|
yield this.sync();
|
|
35
38
|
return signer.signAndSendTransaction(transaction, ...args);
|
|
36
|
-
}),
|
|
39
|
+
}),
|
|
40
|
+
signMessage: (message, ...args) => _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
37
41
|
yield this.sync();
|
|
38
42
|
return signer.signMessage(message, ...args);
|
|
39
|
-
}),
|
|
43
|
+
}),
|
|
44
|
+
signTransaction: (transaction) => _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
40
45
|
yield this.sync();
|
|
41
46
|
return signer.signTransaction(transaction);
|
|
42
|
-
})
|
|
47
|
+
}),
|
|
48
|
+
});
|
|
43
49
|
});
|
|
44
50
|
}
|
|
45
51
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
import { __awaiter } from '../../_virtual/_tslib.js';
|
|
3
3
|
import { Wallet } from '@dynamic-labs/wallet-connector-core';
|
|
4
|
+
import { cloneObjectWithOverrides } from '@dynamic-labs/utils';
|
|
4
5
|
|
|
5
6
|
class SolanaWallet extends Wallet {
|
|
6
7
|
/**
|
|
@@ -23,19 +24,24 @@ class SolanaWallet extends Wallet {
|
|
|
23
24
|
if (!signer) {
|
|
24
25
|
throw new Error('unable to retrieve Solana signer');
|
|
25
26
|
}
|
|
26
|
-
return
|
|
27
|
+
return cloneObjectWithOverrides(signer, {
|
|
28
|
+
signAllTransactions: (transactions) => __awaiter(this, void 0, void 0, function* () {
|
|
27
29
|
yield this.sync();
|
|
28
30
|
return signer.signAllTransactions(transactions);
|
|
29
|
-
}),
|
|
31
|
+
}),
|
|
32
|
+
signAndSendTransaction: (transaction, ...args) => __awaiter(this, void 0, void 0, function* () {
|
|
30
33
|
yield this.sync();
|
|
31
34
|
return signer.signAndSendTransaction(transaction, ...args);
|
|
32
|
-
}),
|
|
35
|
+
}),
|
|
36
|
+
signMessage: (message, ...args) => __awaiter(this, void 0, void 0, function* () {
|
|
33
37
|
yield this.sync();
|
|
34
38
|
return signer.signMessage(message, ...args);
|
|
35
|
-
}),
|
|
39
|
+
}),
|
|
40
|
+
signTransaction: (transaction) => __awaiter(this, void 0, void 0, function* () {
|
|
36
41
|
yield this.sync();
|
|
37
42
|
return signer.signTransaction(transaction);
|
|
38
|
-
})
|
|
43
|
+
}),
|
|
44
|
+
});
|
|
39
45
|
});
|
|
40
46
|
}
|
|
41
47
|
}
|