@dynamic-labs/solana-core 4.0.0-alpha.22 → 4.0.0-alpha.24
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 +14 -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,18 @@
|
|
|
1
1
|
|
|
2
|
+
## [4.0.0-alpha.24](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.23...v4.0.0-alpha.24) (2024-10-31)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* prevent use-wallet-options from reading empty wallet-book ([#7319](https://github.com/dynamic-labs/dynamic-auth/issues/7319)) ([fc1269e](https://github.com/dynamic-labs/dynamic-auth/commit/fc1269ed2b59ee17fc528d24a4d34936eb20c02f))
|
|
8
|
+
|
|
9
|
+
## [4.0.0-alpha.23](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.22...v4.0.0-alpha.23) (2024-10-31)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* allow deletion of embedded wallets ([#7170](https://github.com/dynamic-labs/dynamic-auth/issues/7170)) ([40c5478](https://github.com/dynamic-labs/dynamic-auth/commit/40c54789594ba265a63b24f936da4e72b5b1c5b9))
|
|
15
|
+
|
|
2
16
|
## [4.0.0-alpha.22](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.21...v4.0.0-alpha.22) (2024-10-30)
|
|
3
17
|
|
|
4
18
|
|
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": "4.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.24",
|
|
4
4
|
"description": "Core package for utilities and types for solana",
|
|
5
5
|
"author": "Dynamic Labs, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
"@solana/spl-token": "0.4.6"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"@dynamic-labs/assert-package-version": "4.0.0-alpha.
|
|
27
|
-
"@dynamic-labs/rpc-providers": "4.0.0-alpha.
|
|
28
|
-
"@dynamic-labs/types": "4.0.0-alpha.
|
|
29
|
-
"@dynamic-labs/utils": "4.0.0-alpha.
|
|
30
|
-
"@dynamic-labs/wallet-book": "4.0.0-alpha.
|
|
31
|
-
"@dynamic-labs/wallet-connector-core": "4.0.0-alpha.
|
|
26
|
+
"@dynamic-labs/assert-package-version": "4.0.0-alpha.24",
|
|
27
|
+
"@dynamic-labs/rpc-providers": "4.0.0-alpha.24",
|
|
28
|
+
"@dynamic-labs/types": "4.0.0-alpha.24",
|
|
29
|
+
"@dynamic-labs/utils": "4.0.0-alpha.24",
|
|
30
|
+
"@dynamic-labs/wallet-book": "4.0.0-alpha.24",
|
|
31
|
+
"@dynamic-labs/wallet-connector-core": "4.0.0-alpha.24",
|
|
32
32
|
"eventemitter3": "5.0.1"
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -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
|