sats-connect 2.1.0-cd357e8 → 2.1.0-deb83f5
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/README.md +9 -13
- package/dist/index.d.mts +1 -1
- package/package.json +2 -4
package/README.md
CHANGED
|
@@ -24,34 +24,30 @@ npm i sats-connect
|
|
|
24
24
|
|
|
25
25
|
## Usage
|
|
26
26
|
|
|
27
|
-
### import
|
|
27
|
+
### import
|
|
28
28
|
|
|
29
|
-
```
|
|
29
|
+
```ts
|
|
30
30
|
import Wallet from 'sats-connect';
|
|
31
31
|
```
|
|
32
32
|
|
|
33
|
+
### Connect Wallet
|
|
33
34
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
```
|
|
35
|
+
```ts
|
|
37
36
|
const response = await Wallet.request('getAccounts', {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
AddressPurpose.Ordinals,
|
|
41
|
-
AddressPurpose.Stacks
|
|
42
|
-
],
|
|
43
|
-
message: 'Cool app wants to know your addresses!'
|
|
37
|
+
purposes: [AddressPurpose.Payment, AddressPurpose.Ordinals, AddressPurpose.Stacks],
|
|
38
|
+
message: 'Cool app wants to know your addresses!',
|
|
44
39
|
});
|
|
45
40
|
```
|
|
41
|
+
|
|
46
42
|
### Request a wallet action
|
|
47
43
|
|
|
48
|
-
```
|
|
44
|
+
```ts
|
|
49
45
|
await Wallet.request('sendTransfer', {...});
|
|
50
46
|
```
|
|
51
47
|
|
|
52
48
|
### Disconnect Wallet
|
|
53
49
|
|
|
54
|
-
```
|
|
50
|
+
```ts
|
|
55
51
|
await Wallet.disconnect();
|
|
56
52
|
```
|
|
57
53
|
|
package/dist/index.d.mts
CHANGED
|
@@ -5,7 +5,7 @@ import { Config } from '@sats-connect/ui';
|
|
|
5
5
|
declare class Wallet {
|
|
6
6
|
private static providerId;
|
|
7
7
|
private static defaultAdapters;
|
|
8
|
-
static createCustomConfig
|
|
8
|
+
private static createCustomConfig?;
|
|
9
9
|
private static isProviderSet;
|
|
10
10
|
static setCreateCustomConfig(createCustomConfig: (providers: SupportedWallet[]) => Config): void;
|
|
11
11
|
static selectProvider(): Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sats-connect",
|
|
3
|
-
"version": "2.1.0-
|
|
3
|
+
"version": "2.1.0-deb83f5",
|
|
4
4
|
"main": "dist/index.mjs",
|
|
5
|
-
"types": "dist/index.d.mts",
|
|
6
|
-
"module": "dist/index.mjs",
|
|
7
5
|
"files": [
|
|
8
6
|
"dist"
|
|
9
7
|
],
|
|
@@ -24,7 +22,7 @@
|
|
|
24
22
|
]
|
|
25
23
|
},
|
|
26
24
|
"dependencies": {
|
|
27
|
-
"@sats-connect/core": "0.0.3",
|
|
25
|
+
"@sats-connect/core": "0.0.3-f7e8b0c",
|
|
28
26
|
"@sats-connect/ui": "0.0.2-42ab886"
|
|
29
27
|
},
|
|
30
28
|
"devDependencies": {
|