@karn_lat/protocol-sdk 0.1.0-alpha.1 → 0.1.0-alpha.2
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 +12 -5
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,11 +1,18 @@
|
|
|
1
|
-
# @
|
|
1
|
+
# @karn_lat/protocol-sdk
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://www.npmjs.com/package/@karn_lat/protocol-sdk)
|
|
4
|
+
[](https://www.npmjs.com/package/@karn_lat/protocol-sdk)
|
|
5
|
+
[](https://opensource.org/licenses/MIT)
|
|
6
|
+
[](https://soroban.stellar.org)
|
|
7
|
+
|
|
8
|
+
> **The official TypeScript SDK for Karn Protocol**
|
|
9
|
+
>
|
|
10
|
+
> Contribution-driven governance on Stellar/Soroban - where power = contribution, not capital
|
|
4
11
|
|
|
5
12
|
## Installation
|
|
6
13
|
|
|
7
14
|
```bash
|
|
8
|
-
npm install @
|
|
15
|
+
npm install @karn_lat/protocol-sdk @stellar/stellar-sdk
|
|
9
16
|
```
|
|
10
17
|
|
|
11
18
|
## Quick Start
|
|
@@ -16,7 +23,7 @@ import {
|
|
|
16
23
|
GovernorClient,
|
|
17
24
|
TreasuryClient,
|
|
18
25
|
rpc
|
|
19
|
-
} from '@
|
|
26
|
+
} from '@karn_lat/protocol-sdk';
|
|
20
27
|
|
|
21
28
|
// Configuration
|
|
22
29
|
const NETWORK_PASSPHRASE = "Test SDF Network ; September 2015";
|
|
@@ -50,7 +57,7 @@ main();
|
|
|
50
57
|
Wrap your app in `KarnProvider`:
|
|
51
58
|
|
|
52
59
|
```tsx
|
|
53
|
-
import { KarnProvider } from '@
|
|
60
|
+
import { KarnProvider } from '@karn_lat/protocol-sdk';
|
|
54
61
|
|
|
55
62
|
const config = {
|
|
56
63
|
networkPassphrase: "...",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@karn_lat/protocol-sdk",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
4
|
-
"description": "Official TypeScript SDK for Karn Protocol -
|
|
3
|
+
"version": "0.1.0-alpha.2",
|
|
4
|
+
"description": "Official TypeScript SDK for Karn Protocol - Contribution-driven governance on Stellar",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|