@satianurag/hiero-mirror-client 0.2.1 → 0.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 +11 -5
- package/dist/index.cjs +613 -123
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +595 -162
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +595 -162
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +604 -124
- package/dist/index.mjs.map +1 -1
- package/package.json +30 -18
- package/dist/index.d.ts +0 -1473
- package/dist/utils.d.ts +0 -105
package/README.md
CHANGED
|
@@ -6,14 +6,14 @@ Built for precision, type safety, and developer ergonomics — no silent data co
|
|
|
6
6
|
|
|
7
7
|
## Features
|
|
8
8
|
|
|
9
|
-
- **Full API coverage** —
|
|
9
|
+
- **Full API coverage** — 46 methods across 9 resource groups
|
|
10
10
|
- **Safe JSON parsing** — int64 values preserved as strings (no precision loss)
|
|
11
11
|
- **Three pagination patterns** — `await`, `for await...of`, `.pages()`
|
|
12
12
|
- **Adaptive HCS streaming** — topic message polling with auto-backoff
|
|
13
13
|
- **ETag caching** — automatic conditional requests with `If-None-Match`
|
|
14
14
|
- **Typed errors** — structured error hierarchy (`HieroNotFoundError`, `HieroRateLimitError`, etc.)
|
|
15
15
|
- **Dual output** — ESM + CJS with full `.d.ts` declarations
|
|
16
|
-
- **Zero platform dependencies** — works in Node.js
|
|
16
|
+
- **Zero platform dependencies** — works in Node.js 22+, Deno, Bun, and browsers
|
|
17
17
|
|
|
18
18
|
## Installation
|
|
19
19
|
|
|
@@ -127,8 +127,8 @@ const client = new MirrorNodeClient({
|
|
|
127
127
|
| `accounts` | 10 | list, get, NFTs, tokens, rewards, allowances, airdrops |
|
|
128
128
|
| `balances` | 1 | list |
|
|
129
129
|
| `blocks` | 2 | list, get |
|
|
130
|
-
| `contracts` | 12 | list, get, call (POST), results, actions, logs, state |
|
|
131
|
-
| `network` | 6 | exchangeRate, fees, nodes, stake, supply |
|
|
130
|
+
| `contracts` | 12 | list, get, call (POST), results, actions, logs, state, opcodes |
|
|
131
|
+
| `network` | 6 | exchangeRate, fees, estimateFees (POST), nodes, stake, supply |
|
|
132
132
|
| `schedules` | 2 | list, get |
|
|
133
133
|
| `tokens` | 6 | list, get, balances, NFTs, NFT transactions |
|
|
134
134
|
| `topics` | 5 | get, messages, stream |
|
|
@@ -167,6 +167,12 @@ import type {
|
|
|
167
167
|
|
|
168
168
|
The SDK automatically preserves precision for all large integer values. Fields like `balance`, `stake`, and `total_supply` that exceed `Number.MAX_SAFE_INTEGER` are returned as strings — never silently truncated.
|
|
169
169
|
|
|
170
|
+
## Contributing
|
|
171
|
+
|
|
172
|
+
See [CONTRIBUTING.md](CONTRIBUTING.md) for development setup, coding guidelines, and the pull request process.
|
|
173
|
+
|
|
174
|
+
This project uses the [Developer Certificate of Origin (DCO)](https://developercertificate.org/). All commits must be signed off (`git commit -s`).
|
|
175
|
+
|
|
170
176
|
## License
|
|
171
177
|
|
|
172
|
-
MIT
|
|
178
|
+
MIT — see [LICENSE](LICENSE) for details.
|