@dynamic-labs/solana 1.0.6 → 1.0.7
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 +12 -0
- package/package.json +6 -6
- package/src/injected/BackpackSol.cjs +3 -0
- package/src/injected/BackpackSol.js +3 -0
- package/src/types.d.ts +4 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
|
|
2
|
+
### [1.0.7](https://github.com/dynamic-labs/DynamicAuth/compare/v1.0.6...v1.0.7) (2024-01-25)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* add support for newest backpack extension ([66786ce](https://github.com/dynamic-labs/DynamicAuth/commit/66786ceb7927046c1cdb439888271f3070ca93a4))
|
|
8
|
+
* broken help icon in create passkey view ([2e38ea5](https://github.com/dynamic-labs/DynamicAuth/commit/2e38ea580e55f3349a2d3040d7b07bb2923631f7))
|
|
9
|
+
* connect to wallet with wallet connect even if network is not supported ([#4465](https://github.com/dynamic-labs/DynamicAuth/issues/4465)) ([#4472](https://github.com/dynamic-labs/DynamicAuth/issues/4472)) ([8270b94](https://github.com/dynamic-labs/DynamicAuth/commit/8270b9468c289e7c49cd2ef104fb73dfaaa9f41c))
|
|
10
|
+
* infinite loop when connecting with trust wallet ([#4448](https://github.com/dynamic-labs/DynamicAuth/issues/4448)) ([#4450](https://github.com/dynamic-labs/DynamicAuth/issues/4450)) ([c5ffee6](https://github.com/dynamic-labs/DynamicAuth/commit/c5ffee67a6a95ee62e779da69ce311c90575388f))
|
|
11
|
+
* logging in with an email linked to a third party wallet gets stu… ([#4422](https://github.com/dynamic-labs/DynamicAuth/issues/4422)) ([995889b](https://github.com/dynamic-labs/DynamicAuth/commit/995889b5d03bcbafecd6959c52a88db8d9db940e))
|
|
12
|
+
* switching wallet in extension caused connected flag to be false ([#4464](https://github.com/dynamic-labs/DynamicAuth/issues/4464)) ([a53dc1a](https://github.com/dynamic-labs/DynamicAuth/commit/a53dc1a9869a270c98753041cfbd587855629af4)), closes [#4454](https://github.com/dynamic-labs/DynamicAuth/issues/4454)
|
|
13
|
+
|
|
2
14
|
### [1.0.6](https://github.com/dynamic-labs/DynamicAuth/compare/v1.0.5...v1.0.6) (2024-01-18)
|
|
3
15
|
|
|
4
16
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/solana",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.7",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/dynamic-labs/DynamicAuth.git",
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@solana/web3.js": "1.70.1",
|
|
30
|
-
"@dynamic-labs/rpc-providers": "1.0.
|
|
31
|
-
"@dynamic-labs/types": "1.0.
|
|
32
|
-
"@dynamic-labs/utils": "1.0.
|
|
33
|
-
"@dynamic-labs/wallet-book": "1.0.
|
|
34
|
-
"@dynamic-labs/wallet-connector-core": "1.0.
|
|
30
|
+
"@dynamic-labs/rpc-providers": "1.0.7",
|
|
31
|
+
"@dynamic-labs/types": "1.0.7",
|
|
32
|
+
"@dynamic-labs/utils": "1.0.7",
|
|
33
|
+
"@dynamic-labs/wallet-book": "1.0.7",
|
|
34
|
+
"@dynamic-labs/wallet-connector-core": "1.0.7",
|
|
35
35
|
"eventemitter3": "5.0.1"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {}
|
|
@@ -43,6 +43,9 @@ class BackpackSol extends InjectedWalletBase.InjectedWalletBase {
|
|
|
43
43
|
if (!signedMessage) {
|
|
44
44
|
return undefined;
|
|
45
45
|
}
|
|
46
|
+
if (typeof signedMessage === 'object' && 'signature' in signedMessage) {
|
|
47
|
+
return utils.bufferToBase64(signedMessage.signature);
|
|
48
|
+
}
|
|
46
49
|
return utils.bufferToBase64(signedMessage);
|
|
47
50
|
});
|
|
48
51
|
}
|
|
@@ -39,6 +39,9 @@ class BackpackSol extends InjectedWalletBase {
|
|
|
39
39
|
if (!signedMessage) {
|
|
40
40
|
return undefined;
|
|
41
41
|
}
|
|
42
|
+
if (typeof signedMessage === 'object' && 'signature' in signedMessage) {
|
|
43
|
+
return bufferToBase64(signedMessage.signature);
|
|
44
|
+
}
|
|
42
45
|
return bufferToBase64(signedMessage);
|
|
43
46
|
});
|
|
44
47
|
}
|
package/src/types.d.ts
CHANGED
|
@@ -55,8 +55,11 @@ export type ISolanaSigner = {
|
|
|
55
55
|
}) => Promise<ConnectionResult>;
|
|
56
56
|
disconnect(): Promise<void>;
|
|
57
57
|
};
|
|
58
|
+
type BackpackSolanaSignerResponse = {
|
|
59
|
+
signature: Uint8Array;
|
|
60
|
+
};
|
|
58
61
|
export type IBackpackSolanaSigner = Omit<ISolanaSigner, 'signMessage'> & {
|
|
59
|
-
signMessage: (message: Uint8Array, encoding?: string) => Promise<void | Uint8Array>;
|
|
62
|
+
signMessage: (message: Uint8Array, encoding?: string) => Promise<void | BackpackSolanaSignerResponse | Uint8Array>;
|
|
60
63
|
send: (transaction: Transaction, signers?: Signer[], options?: SendOptions, connection?: Connection, publicKey?: PublicKey) => Promise<TransactionSignature>;
|
|
61
64
|
};
|
|
62
65
|
export type ICoinbaseSolanaSigner = Omit<ISolanaSigner, 'signMessage'> & {
|