@reown/appkit-adapter-solana 1.3.2 → 1.4.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/dist/esm/src/client.js +270 -426
- package/dist/esm/src/client.js.map +1 -1
- package/dist/esm/src/utils/handleMobileWalletRedirection.js +14 -0
- package/dist/esm/src/utils/handleMobileWalletRedirection.js.map +1 -0
- package/dist/esm/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/src/client.d.ts +31 -37
- package/dist/types/src/utils/handleMobileWalletRedirection.d.ts +4 -0
- package/package.json +10 -10
|
@@ -1,45 +1,39 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AdapterBlueprint } from '@reown/appkit/adapters';
|
|
2
|
+
import type { Commitment, ConnectionConfig } from '@solana/web3.js';
|
|
3
|
+
import { type AppKit, type AppKitOptions } from '@reown/appkit';
|
|
2
4
|
import type { BaseWalletAdapter } from '@solana/wallet-adapter-base';
|
|
3
|
-
import { type Commitment, type ConnectionConfig } from '@solana/web3.js';
|
|
4
|
-
import type { ChainAdapter, ConnectionControllerClient, NetworkControllerClient } from '@reown/appkit-core';
|
|
5
|
-
import type { AdapterType, CaipNetwork } from '@reown/appkit-common';
|
|
6
|
-
import type { ChainNamespace } from '@reown/appkit-common';
|
|
7
|
-
import type { AppKit, AppKitOptionsWithCaipNetworks } from '@reown/appkit';
|
|
8
|
-
import type { AppKitOptions as CoreOptions } from '@reown/appkit';
|
|
9
5
|
export interface AdapterOptions {
|
|
10
6
|
connectionSettings?: Commitment | ConnectionConfig;
|
|
11
7
|
wallets?: BaseWalletAdapter[];
|
|
12
8
|
}
|
|
13
|
-
export
|
|
14
|
-
|
|
15
|
-
private appKit;
|
|
16
|
-
private authProvider?;
|
|
9
|
+
export declare class SolanaAdapter extends AdapterBlueprint {
|
|
10
|
+
private connectionSettings;
|
|
17
11
|
private w3mFrameProvider?;
|
|
18
|
-
|
|
12
|
+
private authProvider?;
|
|
13
|
+
private authSession?;
|
|
14
|
+
adapterType: string;
|
|
19
15
|
wallets?: BaseWalletAdapter[];
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
private
|
|
36
|
-
private
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
private addProvider;
|
|
44
|
-
private syncConnectors;
|
|
16
|
+
constructor(options?: AdapterOptions);
|
|
17
|
+
syncConnectors(options: AppKitOptions, appKit: AppKit): void;
|
|
18
|
+
getEnsAddress(params: AdapterBlueprint.GetEnsAddressParams): Promise<AdapterBlueprint.GetEnsAddressResult>;
|
|
19
|
+
writeContract(): Promise<AdapterBlueprint.WriteContractResult>;
|
|
20
|
+
getCapabilities(): Promise<unknown>;
|
|
21
|
+
grantPermissions(): Promise<unknown>;
|
|
22
|
+
revokePermissions(): Promise<`0x${string}`>;
|
|
23
|
+
signMessage(params: AdapterBlueprint.SignMessageParams): Promise<AdapterBlueprint.SignMessageResult>;
|
|
24
|
+
estimateGas(params: AdapterBlueprint.EstimateGasTransactionArgs): Promise<AdapterBlueprint.EstimateGasTransactionResult>;
|
|
25
|
+
sendTransaction(params: AdapterBlueprint.SendTransactionParams): Promise<AdapterBlueprint.SendTransactionResult>;
|
|
26
|
+
parseUnits(): bigint;
|
|
27
|
+
formatUnits(): string;
|
|
28
|
+
connect(params: AdapterBlueprint.ConnectParams): Promise<AdapterBlueprint.ConnectResult>;
|
|
29
|
+
getBalance(params: AdapterBlueprint.GetBalanceParams): Promise<AdapterBlueprint.GetBalanceResult>;
|
|
30
|
+
switchNetwork(params: AdapterBlueprint.SwitchNetworkParams): Promise<void>;
|
|
31
|
+
private listenProviderEvents;
|
|
32
|
+
private providerHandlers;
|
|
33
|
+
private removeProviderListeners;
|
|
34
|
+
connectWalletConnect(onUri: (uri: string) => void): Promise<void>;
|
|
35
|
+
disconnect(params: AdapterBlueprint.DisconnectParams): Promise<void>;
|
|
36
|
+
getProfile(): Promise<AdapterBlueprint.GetProfileResult>;
|
|
37
|
+
syncConnection(params: AdapterBlueprint.SyncConnectionParams): Promise<AdapterBlueprint.ConnectResult>;
|
|
38
|
+
getWalletConnectProvider(params: AdapterBlueprint.GetWalletConnectProviderParams): AdapterBlueprint.GetWalletConnectProviderResult;
|
|
45
39
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reown/appkit-adapter-solana",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/esm/src/index.js",
|
|
6
6
|
"types": "./dist/types/src/index.d.ts",
|
|
@@ -48,15 +48,15 @@
|
|
|
48
48
|
"@wallet-standard/features": "1.0.3",
|
|
49
49
|
"@wallet-standard/wallet": "1.0.1",
|
|
50
50
|
"valtio": "1.11.2",
|
|
51
|
-
"@reown/appkit": "1.
|
|
52
|
-
"@reown/appkit-common": "1.
|
|
53
|
-
"@reown/appkit-core": "1.
|
|
54
|
-
"@reown/appkit-polyfills": "1.
|
|
55
|
-
"@reown/appkit-scaffold-ui": "1.
|
|
56
|
-
"@reown/appkit-utils": "1.
|
|
57
|
-
"@reown/appkit-siwe": "1.
|
|
58
|
-
"@reown/appkit-ui": "1.
|
|
59
|
-
"@reown/appkit-wallet": "1.
|
|
51
|
+
"@reown/appkit": "1.4.0",
|
|
52
|
+
"@reown/appkit-common": "1.4.0",
|
|
53
|
+
"@reown/appkit-core": "1.4.0",
|
|
54
|
+
"@reown/appkit-polyfills": "1.4.0",
|
|
55
|
+
"@reown/appkit-scaffold-ui": "1.4.0",
|
|
56
|
+
"@reown/appkit-utils": "1.4.0",
|
|
57
|
+
"@reown/appkit-siwe": "1.4.0",
|
|
58
|
+
"@reown/appkit-ui": "1.4.0",
|
|
59
|
+
"@reown/appkit-wallet": "1.4.0"
|
|
60
60
|
},
|
|
61
61
|
"optionalDependencies": {
|
|
62
62
|
"borsh": "0.7.0",
|