@ecency/sdk 2.2.0 → 2.2.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 +9 -5
- package/dist/browser/index.js +2 -2
- package/dist/browser/index.js.map +1 -1
- package/dist/node/index.cjs +2 -2
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.mjs +2 -2
- package/dist/node/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
# @ecency/sdk
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Full-featured Hive blockchain SDK with built-in transaction signing, RPC failover, and first-class React Query support.
|
|
4
4
|
|
|
5
5
|
## What's Inside
|
|
6
6
|
|
|
7
|
-
-
|
|
8
|
-
-
|
|
9
|
-
-
|
|
7
|
+
- **Built-in transaction engine** — create, sign, and broadcast Hive transactions with ECDSA secp256k1 cryptography, memo encryption, and full serialization for all 50 operation types (built on an improved version of [hive-tx](https://github.com/mahdiyari/hive-tx) by Mahdi Yari)
|
|
8
|
+
- **Multi-node RPC with health tracking** — automatic failover across Hive API nodes with per-node failure tracking, rate-limit detection, stale-head awareness, and quorum-based consensus calls
|
|
9
|
+
- **Query and mutation option builders** powered by [@tanstack/react-query](https://tanstack.com/query)
|
|
10
|
+
- **24 domain modules**: accounts, posts, communities, market, wallet, notifications, analytics, integrations, core, auth, bridge, games, hive-engine, operations, points, private-api, promotions, proposals, resource-credits, search, spk, witnesses
|
|
11
|
+
- Central configuration via `CONFIG` / `ConfigManager` (RPC nodes, QueryClient, DMCA filtering)
|
|
10
12
|
|
|
11
13
|
## Why React Query?
|
|
12
14
|
|
|
@@ -297,7 +299,7 @@ const auth: AuthContext = {
|
|
|
297
299
|
If `auth.broadcast` is provided, the SDK will call it for posting broadcasts and
|
|
298
300
|
keychain/hiveauth flows. Otherwise it falls back to:
|
|
299
301
|
|
|
300
|
-
- `postingKey` (direct signing via
|
|
302
|
+
- `postingKey` (direct signing via built-in transaction engine)
|
|
301
303
|
- `accessToken` (Hivesigner)
|
|
302
304
|
|
|
303
305
|
## Active/Owner Key Signing
|
|
@@ -330,6 +332,8 @@ const auth = {
|
|
|
330
332
|
## Module Layout
|
|
331
333
|
|
|
332
334
|
```text
|
|
335
|
+
src/hive-tx/ built-in transaction engine (signing, serialization, RPC, crypto)
|
|
336
|
+
|
|
333
337
|
src/modules/
|
|
334
338
|
accounts/ account data, relationships, mutations
|
|
335
339
|
analytics/ activity tracking and stats
|