@cloak.ag/sdk 1.0.0 → 1.0.1
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 +1 -18
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -56,23 +56,6 @@ const withdrawResult = await sdk.withdraw(
|
|
|
56
56
|
console.log("Withdrawn! TX:", withdrawResult.signature);
|
|
57
57
|
```
|
|
58
58
|
|
|
59
|
-
## API Configuration
|
|
60
|
-
|
|
61
|
-
The SDK connects to `https://api.cloak.ag` by default. You can override this:
|
|
62
|
-
|
|
63
|
-
```typescript
|
|
64
|
-
const sdk = new CloakSDK({
|
|
65
|
-
keypairBytes: keypair.secretKey,
|
|
66
|
-
network: "devnet",
|
|
67
|
-
indexerUrl: "http://localhost:3001", // Custom indexer
|
|
68
|
-
relayUrl: "http://localhost:3002", // Custom relay
|
|
69
|
-
});
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
Or use environment variables:
|
|
73
|
-
- `CLOAK_INDEXER_URL` - Override indexer URL
|
|
74
|
-
- `CLOAK_RELAY_URL` - Override relay URL
|
|
75
|
-
|
|
76
59
|
## Core Methods
|
|
77
60
|
|
|
78
61
|
### Deposit
|
|
@@ -173,7 +156,7 @@ try {
|
|
|
173
156
|
|
|
174
157
|
- Website: [https://cloak.ag](https://cloak.ag)
|
|
175
158
|
- Documentation: [https://docs.cloak.ag](https://docs.cloak.ag)
|
|
176
|
-
- GitHub: [https://github.com/cloak-
|
|
159
|
+
- GitHub: [https://github.com/cloak-ag/sdk](https://github.com/cloak-ag/sdk)
|
|
177
160
|
|
|
178
161
|
## License
|
|
179
162
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloak.ag/sdk",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
3
|
+
"description": "TypeScript SDK for Cloak",
|
|
4
|
+
"version": "1.0.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
7
7
|
"module": "dist/index.js",
|