pnp-sdk 0.2.2 → 0.2.4
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 +4 -4
- package/dist/{chunk-RJ2IJGCX.js → chunk-HZV67E3Z.js} +273 -93
- package/dist/chunk-HZV67E3Z.js.map +1 -0
- package/dist/cli.cjs +305 -97
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +1 -1
- package/dist/index.cjs +270 -90
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +49 -1
- package/dist/index.d.ts +49 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-RJ2IJGCX.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
#
|
|
1
|
+
# pnp-sdk
|
|
2
2
|
|
|
3
3
|
Production-ready SDK for Solana prediction markets: create markets, trade, and redeem positions.
|
|
4
4
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
npm i
|
|
8
|
+
npm i pnp-sdk
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
## Usage (Node)
|
|
@@ -33,7 +33,7 @@ QUOTE_MINT=YourQuoteMintAddressHere
|
|
|
33
33
|
### With Base58 Private Key
|
|
34
34
|
|
|
35
35
|
```ts
|
|
36
|
-
import { PNPClient } from "
|
|
36
|
+
import { PNPClient } from "pnp-sdk";
|
|
37
37
|
import bs58 from "bs58";
|
|
38
38
|
import * as dotenv from "dotenv";
|
|
39
39
|
|
|
@@ -51,7 +51,7 @@ const global = await client.fetchGlobalConfig();
|
|
|
51
51
|
### With Private Key Array
|
|
52
52
|
|
|
53
53
|
```ts
|
|
54
|
-
import { PNPClient } from "
|
|
54
|
+
import { PNPClient } from "pnp-sdk";
|
|
55
55
|
import * as dotenv from "dotenv";
|
|
56
56
|
|
|
57
57
|
dotenv.config();
|