@reown/appkit-solana-react-native 0.0.0-chore-solflare-20250730210452 → 0.0.0-chore-spring-effect-20250909214820
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/lib/commonjs/adapter.js +4 -5
- package/lib/commonjs/adapter.js.map +1 -1
- package/lib/commonjs/connectors/{SolanaDeeplinkConnector.js → DeeplinkConnector.js} +80 -51
- package/lib/commonjs/connectors/DeeplinkConnector.js.map +1 -0
- package/lib/commonjs/connectors/PhantomConnector.js +5 -4
- package/lib/commonjs/connectors/PhantomConnector.js.map +1 -1
- package/lib/commonjs/connectors/SolflareConnector.js +5 -4
- package/lib/commonjs/connectors/SolflareConnector.js.map +1 -1
- package/lib/commonjs/index.js +0 -20
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/providers/{SolanaDeeplinkProvider.js → DeeplinkProvider.js} +177 -138
- package/lib/commonjs/providers/DeeplinkProvider.js.map +1 -0
- package/lib/module/adapter.js +4 -5
- package/lib/module/adapter.js.map +1 -1
- package/lib/module/connectors/{SolanaDeeplinkConnector.js → DeeplinkConnector.js} +77 -48
- package/lib/module/connectors/DeeplinkConnector.js.map +1 -0
- package/lib/module/connectors/PhantomConnector.js +5 -4
- package/lib/module/connectors/PhantomConnector.js.map +1 -1
- package/lib/module/connectors/SolflareConnector.js +5 -4
- package/lib/module/connectors/SolflareConnector.js.map +1 -1
- package/lib/module/index.js +2 -6
- package/lib/module/index.js.map +1 -1
- package/lib/module/providers/{SolanaDeeplinkProvider.js → DeeplinkProvider.js} +175 -136
- package/lib/module/providers/DeeplinkProvider.js.map +1 -0
- package/lib/typescript/adapter.d.ts +1 -3
- package/lib/typescript/adapter.d.ts.map +1 -1
- package/lib/typescript/connectors/{SolanaDeeplinkConnector.d.ts → DeeplinkConnector.d.ts} +11 -13
- package/lib/typescript/connectors/DeeplinkConnector.d.ts.map +1 -0
- package/lib/typescript/connectors/PhantomConnector.d.ts +4 -3
- package/lib/typescript/connectors/PhantomConnector.d.ts.map +1 -1
- package/lib/typescript/connectors/SolflareConnector.d.ts +4 -3
- package/lib/typescript/connectors/SolflareConnector.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +1 -3
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/providers/{SolanaDeeplinkProvider.d.ts → DeeplinkProvider.d.ts} +29 -8
- package/lib/typescript/providers/DeeplinkProvider.d.ts.map +1 -0
- package/lib/typescript/types.d.ts +33 -33
- package/lib/typescript/types.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/adapter.ts +4 -5
- package/src/connectors/{SolanaDeeplinkConnector.ts → DeeplinkConnector.ts} +107 -90
- package/src/connectors/PhantomConnector.ts +5 -4
- package/src/connectors/SolflareConnector.ts +5 -4
- package/src/index.ts +3 -22
- package/src/providers/{SolanaDeeplinkProvider.ts → DeeplinkProvider.ts} +271 -225
- package/src/types.ts +41 -48
- package/lib/commonjs/connectors/SolanaDeeplinkConnector.js.map +0 -1
- package/lib/commonjs/providers/SolanaDeeplinkProvider.js.map +0 -1
- package/lib/module/connectors/SolanaDeeplinkConnector.js.map +0 -1
- package/lib/module/providers/SolanaDeeplinkProvider.js.map +0 -1
- package/lib/typescript/connectors/SolanaDeeplinkConnector.d.ts.map +0 -1
- package/lib/typescript/providers/SolanaDeeplinkProvider.d.ts.map +0 -1
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { ConstantsUtil, type WalletInfo } from '@reown/appkit-common-react-native';
|
|
2
|
-
import {
|
|
2
|
+
import { DeeplinkConnector } from './DeeplinkConnector';
|
|
3
|
+
import type { SolflareConnectorConfig } from '../types';
|
|
3
4
|
|
|
4
5
|
const SOLFLARE_BASE_URL = 'https://solflare.com/ul/v1';
|
|
5
6
|
const SOLFLARE_CONNECTOR_STORAGE_KEY = '@appkit/solflare-connector-data';
|
|
6
7
|
const SOLFLARE_DAPP_KEYPAIR_STORAGE_KEY = '@appkit/solflare-dapp-secret-key';
|
|
7
8
|
|
|
8
|
-
export class SolflareConnector extends
|
|
9
|
-
constructor() {
|
|
10
|
-
super({
|
|
9
|
+
export class SolflareConnector extends DeeplinkConnector {
|
|
10
|
+
constructor(config?: SolflareConnectorConfig) {
|
|
11
|
+
super({ type: 'solflare', cluster: config?.cluster });
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
override getWalletInfo(): WalletInfo {
|
package/src/index.ts
CHANGED
|
@@ -1,28 +1,9 @@
|
|
|
1
1
|
// Adapter
|
|
2
2
|
export { SolanaAdapter } from './adapter';
|
|
3
3
|
|
|
4
|
-
//
|
|
5
|
-
export {
|
|
6
|
-
export { SolanaDeeplinkConnector } from './connectors/SolanaDeeplinkConnector';
|
|
4
|
+
// Types
|
|
5
|
+
export type { PhantomConnectorConfig, SolflareConnectorConfig } from './types';
|
|
7
6
|
|
|
8
|
-
//
|
|
7
|
+
// Connectors
|
|
9
8
|
export { PhantomConnector } from './connectors/PhantomConnector';
|
|
10
9
|
export { SolflareConnector } from './connectors/SolflareConnector';
|
|
11
|
-
|
|
12
|
-
// Types
|
|
13
|
-
export type {
|
|
14
|
-
SolanaWalletType,
|
|
15
|
-
SolanaCluster,
|
|
16
|
-
SolanaDeeplinkProviderConfig,
|
|
17
|
-
SolanaWalletSession,
|
|
18
|
-
SolanaConnectResult,
|
|
19
|
-
SolanaDeeplinkResponse,
|
|
20
|
-
SolanaRpcMethod,
|
|
21
|
-
SolanaConnectParams,
|
|
22
|
-
SolanaDisconnectParams,
|
|
23
|
-
SolanaSignTransactionParams,
|
|
24
|
-
SolanaSignAllTransactionsParams,
|
|
25
|
-
SolanaSignMessageParams,
|
|
26
|
-
SolanaConnectorConfig,
|
|
27
|
-
SolanaConnectorSessionData
|
|
28
|
-
} from './types';
|