@reown/appkit-adapter-bitcoin 1.8.14-signet-fix.0 → 1.8.14-wallet-button-fix.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/adapter.js +27 -39
- package/dist/esm/src/adapter.js.map +1 -1
- package/dist/esm/src/connectors/OKXConnector.js +55 -88
- package/dist/esm/src/connectors/OKXConnector.js.map +1 -1
- package/dist/esm/src/connectors/SatsConnectConnector.js +2 -2
- package/dist/esm/src/connectors/SatsConnectConnector.js.map +1 -1
- package/dist/esm/src/connectors/UnisatConnector/index.js +0 -5
- package/dist/esm/src/connectors/UnisatConnector/index.js.map +1 -1
- package/dist/esm/src/connectors/WalletStandardConnector.js +1 -1
- package/dist/esm/src/connectors/WalletStandardConnector.js.map +1 -1
- package/dist/esm/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/src/connectors/OKXConnector.d.ts +10 -24
- package/package.json +6 -6
|
@@ -1,38 +1,23 @@
|
|
|
1
|
-
import { type CaipNetwork
|
|
1
|
+
import { type CaipNetwork } from '@reown/appkit-common';
|
|
2
2
|
import { type RequestArguments } from '@reown/appkit-controllers';
|
|
3
3
|
import type { BitcoinConnector } from '@reown/appkit-utils/bitcoin';
|
|
4
4
|
import { ProviderEventEmitter } from '../utils/ProviderEventEmitter.js';
|
|
5
|
-
declare global {
|
|
6
|
-
interface Window {
|
|
7
|
-
okxwallet: {
|
|
8
|
-
bitcoin: OKXConnector.Wallet;
|
|
9
|
-
bitcoinTestnet: OKXConnector.Wallet;
|
|
10
|
-
bitcoinSignet: OKXConnector.Wallet;
|
|
11
|
-
cardano: {
|
|
12
|
-
icon: string;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
5
|
export declare class OKXConnector extends ProviderEventEmitter implements BitcoinConnector {
|
|
18
6
|
readonly id = "OKX";
|
|
19
7
|
readonly name = "OKX Wallet";
|
|
20
8
|
readonly chain = "bip122";
|
|
21
9
|
readonly type = "ANNOUNCED";
|
|
22
10
|
readonly explorerId: string | undefined;
|
|
23
|
-
readonly requestedCaipNetworkId?: CaipNetwork['caipNetworkId'];
|
|
24
11
|
readonly imageUrl: string;
|
|
12
|
+
readonly requestedCaipNetworkId?: CaipNetwork['caipNetworkId'];
|
|
25
13
|
readonly provider: this;
|
|
14
|
+
private wallet;
|
|
26
15
|
private readonly requestedChains;
|
|
27
|
-
constructor({ requestedChains, requestedCaipNetworkId }: OKXConnector.ConstructorParams);
|
|
16
|
+
constructor({ wallet, requestedChains, imageUrl, requestedCaipNetworkId }: OKXConnector.ConstructorParams);
|
|
28
17
|
get chains(): CaipNetwork[];
|
|
29
|
-
connect(
|
|
30
|
-
caipNetworkId?: CaipNetworkId;
|
|
31
|
-
}): Promise<string>;
|
|
18
|
+
connect(): Promise<string>;
|
|
32
19
|
disconnect(): Promise<void>;
|
|
33
|
-
getAccountAddresses(
|
|
34
|
-
caipNetworkId?: CaipNetwork['caipNetworkId'];
|
|
35
|
-
}): Promise<BitcoinConnector.AccountAddress[]>;
|
|
20
|
+
getAccountAddresses(): Promise<BitcoinConnector.AccountAddress[]>;
|
|
36
21
|
signMessage(params: BitcoinConnector.SignMessageParams): Promise<string>;
|
|
37
22
|
sendTransfer(params: BitcoinConnector.SendTransferParams): Promise<string>;
|
|
38
23
|
signPSBT(params: BitcoinConnector.SignPSBTParams): Promise<BitcoinConnector.SignPSBTResponse>;
|
|
@@ -40,16 +25,17 @@ export declare class OKXConnector extends ProviderEventEmitter implements Bitcoi
|
|
|
40
25
|
request<T>(_args: RequestArguments): Promise<T>;
|
|
41
26
|
private bindEvents;
|
|
42
27
|
private unbindEvents;
|
|
43
|
-
|
|
28
|
+
static getWallet(params: OKXConnector.GetWalletParams): OKXConnector | undefined;
|
|
44
29
|
getPublicKey(): Promise<string>;
|
|
45
30
|
}
|
|
46
31
|
export declare namespace OKXConnector {
|
|
47
32
|
type ConstructorParams = {
|
|
33
|
+
wallet: Wallet;
|
|
48
34
|
requestedChains: CaipNetwork[];
|
|
35
|
+
imageUrl: string;
|
|
49
36
|
requestedCaipNetworkId?: CaipNetwork['caipNetworkId'];
|
|
50
37
|
};
|
|
51
38
|
type Wallet = {
|
|
52
|
-
selectedAccount: BitcoinConnector.AccountAddress;
|
|
53
39
|
connect(): Promise<{
|
|
54
40
|
address: string;
|
|
55
41
|
publicKey: string;
|
|
@@ -81,7 +67,7 @@ export declare namespace OKXConnector {
|
|
|
81
67
|
removeAllListeners(): void;
|
|
82
68
|
getPublicKey(): Promise<string>;
|
|
83
69
|
};
|
|
84
|
-
type GetWalletParams = Omit<ConstructorParams, '
|
|
70
|
+
type GetWalletParams = Omit<ConstructorParams, 'wallet' | 'imageUrl'>;
|
|
85
71
|
type SignPSBTParams = {
|
|
86
72
|
toSignInputs: Omit<BitcoinConnector.SignPSBTParams['signInputs'][number], 'useTweakedSigner'>[];
|
|
87
73
|
autoFinalized?: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reown/appkit-adapter-bitcoin",
|
|
3
|
-
"version": "1.8.14-
|
|
3
|
+
"version": "1.8.14-wallet-button-fix.0",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/esm/exports/index.js",
|
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
"@walletconnect/universal-provider": "2.23.0",
|
|
25
25
|
"bitcoinjs-lib": "6.1.7",
|
|
26
26
|
"sats-connect": "3.5.0",
|
|
27
|
-
"@reown/appkit": "1.8.14-
|
|
28
|
-
"@reown/appkit-common": "1.8.14-
|
|
29
|
-
"@reown/appkit-controllers": "1.8.14-
|
|
30
|
-
"@reown/appkit-utils": "1.8.14-
|
|
31
|
-
"@reown/appkit-polyfills": "1.8.14-
|
|
27
|
+
"@reown/appkit": "1.8.14-wallet-button-fix.0",
|
|
28
|
+
"@reown/appkit-common": "1.8.14-wallet-button-fix.0",
|
|
29
|
+
"@reown/appkit-controllers": "1.8.14-wallet-button-fix.0",
|
|
30
|
+
"@reown/appkit-utils": "1.8.14-wallet-button-fix.0",
|
|
31
|
+
"@reown/appkit-polyfills": "1.8.14-wallet-button-fix.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@leather.io/rpc": "2.20.13",
|