This repository was archived by the owner on Mar 10, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
181 changed files
with
2,572 additions
and
432 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
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
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
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
36 changes: 36 additions & 0 deletions
36
docs/@ceramic-sdk/events/functions/decodeMultibaseToJSON.md
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,36 @@ | ||
[**@ceramic-sdk/events v0.2.1**](../README.md) • **Docs** | ||
|
||
*** | ||
|
||
[Ceramic SDK](../../../README.md) / [@ceramic-sdk/events](../README.md) / decodeMultibaseToJSON | ||
|
||
# Function: decodeMultibaseToJSON() | ||
|
||
> **decodeMultibaseToJSON**\<`T`\>(`value`): `T` | ||
Decodes a multibase-encoded string into a JSON object. | ||
|
||
## Type Parameters | ||
|
||
• **T** = `Record`\<`string`, `unknown`\> | ||
|
||
The expected shape of the returned JSON object (defaults to `Record<string, unknown>`). | ||
|
||
## Parameters | ||
|
||
• **value**: `string` | ||
|
||
The multibase-encoded string to decode. | ||
|
||
## Returns | ||
|
||
`T` | ||
|
||
The decoded JSON object. | ||
|
||
## Example | ||
|
||
```typescript | ||
const json = decodeMultibaseToJSON<{ key: string }>('z1a2b3c...'); | ||
console.log(json.key); // Output: "value" | ||
``` |
30 changes: 30 additions & 0 deletions
30
docs/@ceramic-sdk/events/functions/decodeMultibaseToStreamID.md
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,30 @@ | ||
[**@ceramic-sdk/events v0.2.1**](../README.md) • **Docs** | ||
|
||
*** | ||
|
||
[Ceramic SDK](../../../README.md) / [@ceramic-sdk/events](../README.md) / decodeMultibaseToStreamID | ||
|
||
# Function: decodeMultibaseToStreamID() | ||
|
||
> **decodeMultibaseToStreamID**(`value`): [`StreamID`](../../identifiers/classes/StreamID.md) | ||
Decodes a multibase-encoded string into a `StreamID`. | ||
|
||
## Parameters | ||
|
||
• **value**: `string` | ||
|
||
The multibase-encoded string to decode. | ||
|
||
## Returns | ||
|
||
[`StreamID`](../../identifiers/classes/StreamID.md) | ||
|
||
A `StreamID` object representing the decoded value. | ||
|
||
## Example | ||
|
||
```typescript | ||
const streamID = decodeMultibaseToStreamID('z1a2b3c...'); | ||
console.log(streamID.toString()); // Output: StreamID | ||
``` |
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
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
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
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
Oops, something went wrong.