@dynamic-labs/solana-core 3.0.0-alpha.55 → 3.0.0-alpha.57
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 +25 -0
- package/package.json +7 -7
- package/src/rpc/solanaProvidersSelector/solanaProvidersSelector.cjs +0 -1
- package/src/rpc/solanaProvidersSelector/solanaProvidersSelector.d.ts +1 -1
- package/src/rpc/solanaProvidersSelector/solanaProvidersSelector.js +0 -1
- package/src/wallet/SolanaWallet.cjs +13 -34
- package/src/wallet/SolanaWallet.js +13 -34
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,29 @@
|
|
|
1
1
|
|
|
2
|
+
## [3.0.0-alpha.57](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.56...v3.0.0-alpha.57) (2024-09-05)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* add support for headless mfa ([#6802](https://github.com/dynamic-labs/DynamicAuth/issues/6802)) ([1eea60e](https://github.com/dynamic-labs/DynamicAuth/commit/1eea60e4f6acf60a9efa8ae64626d0c72e18a12d))
|
|
8
|
+
* telegram auto login ([#6803](https://github.com/dynamic-labs/DynamicAuth/issues/6803)) ([1123ae4](https://github.com/dynamic-labs/DynamicAuth/commit/1123ae4acfdfc54be8dbfa03cc41cbbd00b4bea4))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* circular dependency in solana-core and wallet-book ([#6794](https://github.com/dynamic-labs/DynamicAuth/issues/6794)) ([c0d9254](https://github.com/dynamic-labs/DynamicAuth/commit/c0d9254f21c4a847bcf271886997ba61fe077696))
|
|
14
|
+
* fix overriding cosmos wallet methods ([#6799](https://github.com/dynamic-labs/DynamicAuth/issues/6799)) ([ebce93b](https://github.com/dynamic-labs/DynamicAuth/commit/ebce93bab49bb54d320c77a558d0df48eb1ce19a))
|
|
15
|
+
* fix overriding solana wallet methods ([#6798](https://github.com/dynamic-labs/DynamicAuth/issues/6798)) ([6ab57b5](https://github.com/dynamic-labs/DynamicAuth/commit/6ab57b534b04a3824898bbb9df3fc23397e661f3))
|
|
16
|
+
* memoize return of useSwitchWallet ([#6804](https://github.com/dynamic-labs/DynamicAuth/issues/6804)) ([7e96eb2](https://github.com/dynamic-labs/DynamicAuth/commit/7e96eb28ca3809edd89855c4ecb1344f3e9d53bd))
|
|
17
|
+
* phantom wallets error when trying to sync wallet ([#6782](https://github.com/dynamic-labs/DynamicAuth/issues/6782)) ([481e474](https://github.com/dynamic-labs/DynamicAuth/commit/481e4746adf1ebac5584e3c83d1603e5b2e48f8a))
|
|
18
|
+
* remove miss use of hook inside function ([#6795](https://github.com/dynamic-labs/DynamicAuth/issues/6795)) ([35902cf](https://github.com/dynamic-labs/DynamicAuth/commit/35902cfc876e93928cf5baff0313d8b0352c1129))
|
|
19
|
+
|
|
20
|
+
## [3.0.0-alpha.56](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.55...v3.0.0-alpha.56) (2024-09-03)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Bug Fixes
|
|
24
|
+
|
|
25
|
+
* pass `authCode` for telegram from sdk to `signin` and `verify` calls ([#6777](https://github.com/dynamic-labs/DynamicAuth/issues/6777)) ([43d09dd](https://github.com/dynamic-labs/DynamicAuth/commit/43d09dd3ea82fd13f1c798c0745aa0fef2051f90))
|
|
26
|
+
|
|
2
27
|
## [3.0.0-alpha.55](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.54...v3.0.0-alpha.55) (2024-09-02)
|
|
3
28
|
|
|
4
29
|
|
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.57",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/dynamic-labs/dynamic-auth.git",
|
|
@@ -26,16 +26,16 @@
|
|
|
26
26
|
"./package.json": "./package.json"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@dynamic-labs/sdk-api-core": "0.0.
|
|
29
|
+
"@dynamic-labs/sdk-api-core": "0.0.526",
|
|
30
30
|
"@solana/web3.js": "1.92.1",
|
|
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.57",
|
|
35
|
+
"@dynamic-labs/types": "3.0.0-alpha.57",
|
|
36
|
+
"@dynamic-labs/utils": "3.0.0-alpha.57",
|
|
37
|
+
"@dynamic-labs/wallet-book": "3.0.0-alpha.57",
|
|
38
|
+
"@dynamic-labs/wallet-connector-core": "3.0.0-alpha.57",
|
|
39
39
|
"eventemitter3": "5.0.1"
|
|
40
40
|
}
|
|
41
41
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RpcProvidersSelector, SolanaRpcProvider } from '@dynamic-labs/rpc-providers';
|
|
2
2
|
export type SolanaRpcProviderMethods = {
|
|
3
3
|
defaultProvider: SolanaRpcProvider | undefined;
|
|
4
4
|
providers: SolanaRpcProvider[] | undefined;
|
|
@@ -27,40 +27,19 @@ class SolanaWallet extends walletConnectorCore.Wallet {
|
|
|
27
27
|
if (!signer) {
|
|
28
28
|
throw new Error('unable to retrieve Solana signer');
|
|
29
29
|
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
case 'signAndSendTransaction': {
|
|
46
|
-
return (transaction, ...args) => _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
47
|
-
yield this.sync();
|
|
48
|
-
return target.signAndSendTransaction(transaction, ...args);
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
case 'signMessage': {
|
|
52
|
-
return (message, ...args) => _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
53
|
-
yield this.sync();
|
|
54
|
-
return target.signMessage(message, ...args);
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
default: {
|
|
58
|
-
return Reflect.get(target, prop);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
});
|
|
63
|
-
return proxiedSigner;
|
|
30
|
+
return Object.assign(Object.assign({}, signer), { addListener: signer.addListener, emit: signer.emit, eventNames: signer.eventNames, listenerCount: signer.listenerCount, listeners: signer.listeners, off: signer.off, on: signer.on, once: signer.once, removeAllListeners: signer.removeAllListeners, removeListener: signer.removeListener, signAllTransactions: (transactions) => _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
31
|
+
yield this.sync();
|
|
32
|
+
return signer.signAllTransactions(transactions);
|
|
33
|
+
}), signAndSendTransaction: (transaction, ...args) => _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
yield this.sync();
|
|
35
|
+
return signer.signAndSendTransaction(transaction, ...args);
|
|
36
|
+
}), signMessage: (message, ...args) => _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
yield this.sync();
|
|
38
|
+
return signer.signMessage(message, ...args);
|
|
39
|
+
}), signTransaction: (transaction) => _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
40
|
+
yield this.sync();
|
|
41
|
+
return signer.signTransaction(transaction);
|
|
42
|
+
}) });
|
|
64
43
|
});
|
|
65
44
|
}
|
|
66
45
|
}
|
|
@@ -23,40 +23,19 @@ class SolanaWallet extends Wallet {
|
|
|
23
23
|
if (!signer) {
|
|
24
24
|
throw new Error('unable to retrieve Solana signer');
|
|
25
25
|
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
case 'signAndSendTransaction': {
|
|
42
|
-
return (transaction, ...args) => __awaiter(this, void 0, void 0, function* () {
|
|
43
|
-
yield this.sync();
|
|
44
|
-
return target.signAndSendTransaction(transaction, ...args);
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
case 'signMessage': {
|
|
48
|
-
return (message, ...args) => __awaiter(this, void 0, void 0, function* () {
|
|
49
|
-
yield this.sync();
|
|
50
|
-
return target.signMessage(message, ...args);
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
default: {
|
|
54
|
-
return Reflect.get(target, prop);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
});
|
|
59
|
-
return proxiedSigner;
|
|
26
|
+
return Object.assign(Object.assign({}, signer), { addListener: signer.addListener, emit: signer.emit, eventNames: signer.eventNames, listenerCount: signer.listenerCount, listeners: signer.listeners, off: signer.off, on: signer.on, once: signer.once, removeAllListeners: signer.removeAllListeners, removeListener: signer.removeListener, signAllTransactions: (transactions) => __awaiter(this, void 0, void 0, function* () {
|
|
27
|
+
yield this.sync();
|
|
28
|
+
return signer.signAllTransactions(transactions);
|
|
29
|
+
}), signAndSendTransaction: (transaction, ...args) => __awaiter(this, void 0, void 0, function* () {
|
|
30
|
+
yield this.sync();
|
|
31
|
+
return signer.signAndSendTransaction(transaction, ...args);
|
|
32
|
+
}), signMessage: (message, ...args) => __awaiter(this, void 0, void 0, function* () {
|
|
33
|
+
yield this.sync();
|
|
34
|
+
return signer.signMessage(message, ...args);
|
|
35
|
+
}), signTransaction: (transaction) => __awaiter(this, void 0, void 0, function* () {
|
|
36
|
+
yield this.sync();
|
|
37
|
+
return signer.signTransaction(transaction);
|
|
38
|
+
}) });
|
|
60
39
|
});
|
|
61
40
|
}
|
|
62
41
|
}
|