@dynamic-labs/solana-core 3.4.5 → 3.5.0
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 +26 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +7 -7
- package/src/connector/{SolWalletConnector.cjs → SolanaWalletConnector.cjs} +2 -2
- package/src/connector/{SolWalletConnector.d.ts → SolanaWalletConnector.d.ts} +3 -3
- package/src/connector/{SolWalletConnector.js → SolanaWalletConnector.js} +2 -2
- package/src/connector/index.d.ts +1 -1
- package/src/index.cjs +2 -2
- package/src/index.js +1 -1
- package/src/wallet/SolanaWallet.d.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,30 @@
|
|
|
1
1
|
|
|
2
|
+
## [3.5.0](https://github.com/dynamic-labs/DynamicAuth/compare/v3.4.6...v3.5.0) (2024-11-05)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* add support for line social ([61b23fd](https://github.com/dynamic-labs/dynamic-auth/commit/61b23fde9f4b0bc56c1cdc2f7456784931bdb878))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* global connectivity transaction failures and confirmation modal ([#7355](https://github.com/dynamic-labs/DynamicAuth/issues/7355)) ([eb1c5d7](https://github.com/dynamic-labs/DynamicAuth/commit/eb1c5d794df972dfb2f84fdcaa6c581ba68285c0)), closes [#7347](https://github.com/dynamic-labs/DynamicAuth/issues/7347)
|
|
13
|
+
|
|
14
|
+
### [3.4.6](https://github.com/dynamic-labs/DynamicAuth/compare/v3.4.5...v3.4.6) (2024-10-31)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* add support for compass and leap wallets ([ab170c9](https://github.com/dynamic-labs/DynamicAuth/commit/ab170c962099ed6356d2f31c947b122f1aa7ec73))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Bug Fixes
|
|
23
|
+
|
|
24
|
+
* prevent use-wallet-options from reading empty wallet-book ([#7320](https://github.com/dynamic-labs/DynamicAuth/issues/7320)) ([24c6cb1](https://github.com/dynamic-labs/DynamicAuth/commit/24c6cb14ce324925b120d363e029e29b72560895))
|
|
25
|
+
* sats-connect wallets not prompting correctly to sync account when making a transaction ([#7311](https://github.com/dynamic-labs/DynamicAuth/issues/7311)) ([#7312](https://github.com/dynamic-labs/DynamicAuth/issues/7312)) ([2026be4](https://github.com/dynamic-labs/DynamicAuth/commit/2026be412edcbb7e98341a5a5b2a3bd75ffdb83f))
|
|
26
|
+
* update check for wallet provider event listeners support ([#7303](https://github.com/dynamic-labs/DynamicAuth/issues/7303)) ([#7304](https://github.com/dynamic-labs/DynamicAuth/issues/7304)) ([1e91c76](https://github.com/dynamic-labs/DynamicAuth/commit/1e91c767ebe078f63c27884e4a8e7729d49b2114))
|
|
27
|
+
|
|
2
28
|
### [3.4.5](https://github.com/dynamic-labs/DynamicAuth/compare/v3.4.4...v3.4.5) (2024-10-30)
|
|
3
29
|
|
|
4
30
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/solana-core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/dynamic-labs/dynamic-auth.git",
|
|
@@ -31,12 +31,12 @@
|
|
|
31
31
|
"@solana/spl-token": "0.4.6"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@dynamic-labs/assert-package-version": "3.
|
|
35
|
-
"@dynamic-labs/rpc-providers": "3.
|
|
36
|
-
"@dynamic-labs/types": "3.
|
|
37
|
-
"@dynamic-labs/utils": "3.
|
|
38
|
-
"@dynamic-labs/wallet-book": "3.
|
|
39
|
-
"@dynamic-labs/wallet-connector-core": "3.
|
|
34
|
+
"@dynamic-labs/assert-package-version": "3.5.0",
|
|
35
|
+
"@dynamic-labs/rpc-providers": "3.5.0",
|
|
36
|
+
"@dynamic-labs/types": "3.5.0",
|
|
37
|
+
"@dynamic-labs/utils": "3.5.0",
|
|
38
|
+
"@dynamic-labs/wallet-book": "3.5.0",
|
|
39
|
+
"@dynamic-labs/wallet-connector-core": "3.5.0",
|
|
40
40
|
"eventemitter3": "5.0.1"
|
|
41
41
|
}
|
|
42
42
|
}
|
|
@@ -13,7 +13,7 @@ var extractNonce = require('../utils/extractNonce/extractNonce.cjs');
|
|
|
13
13
|
var getGenesisHashLSKey = require('../utils/getGenesisHashLSKey/getGenesisHashLSKey.cjs');
|
|
14
14
|
|
|
15
15
|
const MEMO_PROGRAM_ID = new web3_js.PublicKey('MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr');
|
|
16
|
-
class
|
|
16
|
+
class SolanaWalletConnector extends walletConnectorCore.WalletConnectorBase {
|
|
17
17
|
constructor(opts) {
|
|
18
18
|
var _a;
|
|
19
19
|
super(opts);
|
|
@@ -172,4 +172,4 @@ class SolWalletConnector extends walletConnectorCore.WalletConnectorBase {
|
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
-
exports.
|
|
175
|
+
exports.SolanaWalletConnector = SolanaWalletConnector;
|
|
@@ -6,20 +6,20 @@ import { JwtVerifiedCredential } from '@dynamic-labs/sdk-api-core';
|
|
|
6
6
|
import { IChainRpcProviders } from '../rpc';
|
|
7
7
|
import { SolanaWallet } from '../wallet';
|
|
8
8
|
import { ISolana } from '../types';
|
|
9
|
-
export type
|
|
9
|
+
export type SolanaWalletConnectorOpts = {
|
|
10
10
|
chainRpcProviders: IChainRpcProviders;
|
|
11
11
|
solNetworks: GenericNetwork[];
|
|
12
12
|
walletBook: WalletBookSchema;
|
|
13
13
|
metadata?: WalletMetadata;
|
|
14
14
|
};
|
|
15
|
-
export declare abstract class
|
|
15
|
+
export declare abstract class SolanaWalletConnector extends WalletConnectorBase<typeof SolanaWallet> implements IHardwareWalletConnector {
|
|
16
16
|
isHardwareWalletEnabled: boolean;
|
|
17
17
|
verifiedCredentials: JwtVerifiedCredential[];
|
|
18
18
|
solNetworks: GenericNetwork[];
|
|
19
19
|
ChainWallet: typeof SolanaWallet;
|
|
20
20
|
supportedChains: Chain[];
|
|
21
21
|
connectedChain: Chain;
|
|
22
|
-
constructor(opts:
|
|
22
|
+
constructor(opts: SolanaWalletConnectorOpts);
|
|
23
23
|
getNetwork(): Promise<string>;
|
|
24
24
|
endSession(): Promise<void>;
|
|
25
25
|
getWalletClient(): Connection;
|
|
@@ -9,7 +9,7 @@ import { extractNonce } from '../utils/extractNonce/extractNonce.js';
|
|
|
9
9
|
import { getGenesisHashLSKey } from '../utils/getGenesisHashLSKey/getGenesisHashLSKey.js';
|
|
10
10
|
|
|
11
11
|
const MEMO_PROGRAM_ID = new PublicKey('MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr');
|
|
12
|
-
class
|
|
12
|
+
class SolanaWalletConnector extends WalletConnectorBase {
|
|
13
13
|
constructor(opts) {
|
|
14
14
|
var _a;
|
|
15
15
|
super(opts);
|
|
@@ -168,4 +168,4 @@ class SolWalletConnector extends WalletConnectorBase {
|
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
170
|
|
|
171
|
-
export {
|
|
171
|
+
export { SolanaWalletConnector };
|
package/src/connector/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './SolanaWalletConnector';
|
package/src/index.cjs
CHANGED
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
|
|
6
6
|
var assertPackageVersion = require('@dynamic-labs/assert-package-version');
|
|
7
7
|
var _package = require('../package.cjs');
|
|
8
|
-
var
|
|
8
|
+
var SolanaWalletConnector = require('./connector/SolanaWalletConnector.cjs');
|
|
9
9
|
require('./rpc/RpcProviderSolana/RpcProviderSolana.cjs');
|
|
10
10
|
var rpcProviders = require('@dynamic-labs/rpc-providers');
|
|
11
11
|
var solanaProvidersSelector = require('./rpc/solanaProvidersSelector/solanaProvidersSelector.cjs');
|
|
@@ -21,7 +21,7 @@ var constants = require('./constants.cjs');
|
|
|
21
21
|
|
|
22
22
|
assertPackageVersion.assertPackageVersion('@dynamic-labs/solana-core', _package.version);
|
|
23
23
|
|
|
24
|
-
exports.
|
|
24
|
+
exports.SolanaWalletConnector = SolanaWalletConnector.SolanaWalletConnector;
|
|
25
25
|
exports.solanaProvidersSelector = solanaProvidersSelector.solanaProvidersSelector;
|
|
26
26
|
exports.SolanaUiTransaction = SolanaUiTransaction.SolanaUiTransaction;
|
|
27
27
|
exports.decodeTransactionFromBase64 = decodeTransactionFromBase64.decodeTransactionFromBase64;
|
package/src/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
import { assertPackageVersion } from '@dynamic-labs/assert-package-version';
|
|
3
3
|
import { version } from '../package.js';
|
|
4
|
-
export {
|
|
4
|
+
export { SolanaWalletConnector } from './connector/SolanaWalletConnector.js';
|
|
5
5
|
import './rpc/RpcProviderSolana/RpcProviderSolana.js';
|
|
6
6
|
export * from '@dynamic-labs/rpc-providers';
|
|
7
7
|
export { solanaProvidersSelector } from './rpc/solanaProvidersSelector/solanaProvidersSelector.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Connection } from '@solana/web3.js';
|
|
2
2
|
import { Wallet } from '@dynamic-labs/wallet-connector-core';
|
|
3
|
-
import {
|
|
3
|
+
import { SolanaWalletConnector } from '../connector';
|
|
4
4
|
import { ISolana } from '../types';
|
|
5
|
-
export declare class SolanaWallet extends Wallet<
|
|
5
|
+
export declare class SolanaWallet extends Wallet<SolanaWalletConnector> {
|
|
6
6
|
/**
|
|
7
7
|
* Retrieves the RPC connection
|
|
8
8
|
* @returns A promise that resolves to the RPC connection
|