@faremeter/wallet-solana 0.12.0 → 0.14.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/README.md +50 -0
- package/package.json +10 -1
package/README.md
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# @faremeter/wallet-solana
|
|
2
|
+
|
|
3
|
+
Solana keypair wallet adapter for Faremeter payments.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pnpm install @faremeter/wallet-solana
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Features
|
|
12
|
+
|
|
13
|
+
- Local keypair signing
|
|
14
|
+
- Network configuration (devnet, mainnet-beta)
|
|
15
|
+
- Compatible with @faremeter/payment-solana
|
|
16
|
+
|
|
17
|
+
## API Reference
|
|
18
|
+
|
|
19
|
+
<!-- TSDOC_START -->
|
|
20
|
+
|
|
21
|
+
## Functions
|
|
22
|
+
|
|
23
|
+
- [createLocalWallet](#createlocalwallet)
|
|
24
|
+
|
|
25
|
+
### createLocalWallet
|
|
26
|
+
|
|
27
|
+
| Function | Type |
|
|
28
|
+
| ------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
29
|
+
| `createLocalWallet` | `(network: string, keypair: Keypair) => Promise<{ network: string; publicKey: PublicKey; updateTransaction: (tx: VersionedTransaction) => Promise<VersionedTransaction>; }>` |
|
|
30
|
+
|
|
31
|
+
## Types
|
|
32
|
+
|
|
33
|
+
- [LocalWallet](#localwallet)
|
|
34
|
+
|
|
35
|
+
### LocalWallet
|
|
36
|
+
|
|
37
|
+
| Type | Type |
|
|
38
|
+
| ------------- | ----------------------------------------------- |
|
|
39
|
+
| `LocalWallet` | `Awaited<ReturnType<typeof createLocalWallet>>` |
|
|
40
|
+
|
|
41
|
+
<!-- TSDOC_END -->
|
|
42
|
+
|
|
43
|
+
## Related Packages
|
|
44
|
+
|
|
45
|
+
- [@faremeter/payment-solana](https://www.npmjs.com/package/@faremeter/payment-solana) - Solana payment handler
|
|
46
|
+
- [@faremeter/fetch](https://www.npmjs.com/package/@faremeter/fetch) - Client fetch wrapper
|
|
47
|
+
|
|
48
|
+
## License
|
|
49
|
+
|
|
50
|
+
LGPL-3.0-only
|
package/package.json
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faremeter/wallet-solana",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
|
+
"description": "Solana keypair wallet adapter for Faremeter payments",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"faremeter",
|
|
7
|
+
"typescript",
|
|
8
|
+
"sdk",
|
|
9
|
+
"api",
|
|
10
|
+
"x402",
|
|
11
|
+
"ai"
|
|
12
|
+
],
|
|
4
13
|
"license": "LGPL-3.0-only",
|
|
5
14
|
"type": "module",
|
|
6
15
|
"main": "dist/src/index.js",
|