Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new syscalls #1012

Merged
merged 2 commits into from
Oct 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions api/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 0.25.8
_10/03/2022_

https://github.com/gear-tech/gear-js/pull/1012
### Changes

- Add new syscalls

## 0.25.7
_09/17/2022_

Expand Down
4 changes: 2 additions & 2 deletions api/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gear-js/api",
"version": "0.25.7",
"version": "0.25.8",
"description": "A JavaScript library that provides functionality to connect GEAR Component APIs.",
"main": "cjs/index.js",
"module": "index.js",
Expand Down
7 changes: 6 additions & 1 deletion api/src/wasm/importObj.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,18 @@ export default (
gr_leave: () => {},
gr_value_available: () => {},
gr_wait: () => {},
gr_wait_up_to: () => {},
gr_wait_for: () => {},
gr_wake: () => {},
gr_exit_code: () => {},
gr_msg_id: () => {},
gr_read: (at: number, len: number, dest: number) => {
new Uint8Array(memory.buffer).set(inputValue.slice(at, len), dest);
},
gr_reply: () => {},
gr_reply_wgas: () => {},
gr_reply_commit: () => {},
gr_reply_commit_wgas: () => {},
gr_reply_push: () => {},
gr_reply_to: () => {},
gr_send: () => {},
Expand All @@ -56,10 +60,11 @@ export default (
},
gr_source: () => {},
gr_value: () => {},
gr_create_program_wgas: () => {},
gr_debug: (msg: string) => {
showDebug && console.log('GR_DEBUG: ', msg);
},
gr_create_program_wgas: () => {},
gr_create_program: () => {},
gr_error: () => {},
},
});