Skip to content

Commit

Permalink
Add new syscalls (#1012)
Browse files Browse the repository at this point in the history
  • Loading branch information
osipov-mit authored Oct 3, 2022
1 parent 8f8afa7 commit 43e88db
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
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: () => {},
},
});

0 comments on commit 43e88db

Please sign in to comment.