-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature support borsch deserialisation (#53)
* feat: added borsh support * test: add new block 114081912 * test: add test * chore: Add changeset * test: remove a console.log * test: update type * feat: added borsher * fix: move borsher to primitives package
- Loading branch information
1 parent
89eb4e0
commit 639de27
Showing
9 changed files
with
93,264 additions
and
207 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 @@ | ||
--- | ||
"@near-lake/primitives": minor | ||
--- | ||
|
||
deserialization is now supported using borsh-js |
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import * as borsh from "borsh"; | ||
export * from "borsher"; | ||
|
||
export const fromBorsh = (schema: borsh.Schema, encoded: Uint8Array) => | ||
borsh.deserialize(schema, encoded); |
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,3 @@ | ||
export * from "./types"; | ||
|
||
export * from "./fromBorsh"; |
Oops, something went wrong.