-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support decode from raw spore and cluster data
- Loading branch information
Showing
4 changed files
with
63 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@ckb-ccc/spore": minor | ||
--- | ||
|
||
feat(spore): support decoding rendered dob data from spore data and cluster data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import "dotenv/config"; | ||
import { decodeDobBySporeId } from "../dob/index.js"; | ||
|
||
describe("decodeDob [testnet]", () => { | ||
it("should respose a decoded dob render data from a spore id", async () => { | ||
// The address that https://github.com/sporeprotocol/dob-decoder-standalone-server running at | ||
const decoderServerUrl = "http://127.0.0.1:8090"; | ||
|
||
// The spore id that you want to decode (must be a valid spore dob) | ||
const sporeId = | ||
"0x29e4cfd388b9a01f7a853d476feb8e33af38565a1e751d55c9423bf7aa4b480b"; | ||
|
||
// Decode from spore id | ||
const dob = await decodeDobBySporeId(sporeId, decoderServerUrl); | ||
console.log(dob); | ||
}, 60000); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
export * from "./check.js"; | ||
export * from "./error.js"; | ||
export * from "./object.js"; |