Commit 7969d51
authored
Add Web4/DHT domain resolution methods (#15)
- Add resolveWeb4ViaDht() for DHT-based domain resolution
- Add getContractFromDht() to retrieve contracts from DHT storage
- Improve getContractByHash() with JSDoc and proper return type
These methods support Web4/dApp functionality once the ZHTP node implements the corresponding endpoints (blocked by node Issue #113).
Endpoints:
- GET /api/v1/dht/web4/resolve/{domain}
- GET /api/v1/dht/contract/{contractId}
- GET /api/v1/blockchain/contract/{hash}
Fixes #91 parent 5e33c29 commit 7969d51
1 file changed
+22
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
557 | 557 | | |
558 | 558 | | |
559 | 559 | | |
560 | | - | |
561 | | - | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
562 | 566 | | |
563 | 567 | | |
564 | 568 | | |
| |||
569 | 573 | | |
570 | 574 | | |
571 | 575 | | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
572 | 592 | | |
573 | 593 | | |
574 | 594 | | |
| |||
0 commit comments