-
Notifications
You must be signed in to change notification settings - Fork 120
IDL: update generated JS bindings #693
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
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
5ec955d
IDL: update generated JS bindings
paulyoung b48281d
Remove unused environment variable
paulyoung 80e46d8
Test generated JS bindings against js-user-library
paulyoung 079eb4d
Don't run Node.js tests on empty gemerated files
paulyoung 3ad267b
Make esm & js-user-library available in nix-shell
paulyoung e77bab1
Merge branch 'master' into paulyoung/idl
paulyoung cce4c07
Merge remote-tracking branch 'origin/master' into paulyoung/idl
paulyoung c82464f
Merge remote-tracking branch 'origin/master' into paulyoung/idl
paulyoung 1dff1b1
Revert "Don't run Node.js tests on empty gemerated files"
paulyoung d70424d
Ensure recursive data exports an ActorInterface
paulyoung 2ab7a8c
fixup: Ensure recursive data exports an ActorInterface
paulyoung e91b645
add .__typ for recursive types only
chenyan-dfinity d905814
Merge branch 'master' into paulyoung/idl
paulyoung File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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,9 +1,11 @@ | ||
| const IDL = require('IDL') | ||
| export default ({ IDL }) => { | ||
| const o = IDL.Rec() | ||
| const f = IDL.Message(IDL.Obj({'0': IDL.Int8}), IDL.Obj({'0': IDL.Int8})) | ||
| const h = IDL.Message(IDL.Obj({'0': f}), IDL.Obj({'0': f})) | ||
| const f = IDL.Func(IDL.Obj({'0': IDL.Int8}), IDL.Obj({'0': IDL.Int8})) | ||
| const h = IDL.Func(IDL.Obj({'0': f}), IDL.Obj({'0': f})) | ||
| const g = f | ||
| o.fill(IDL.Opt(o)) | ||
| const actor_g = new IDL.ActorInterface({ | ||
| 'f': IDL.Message(IDL.Obj({'0': IDL.Nat}), IDL.Obj({'0': h})), 'g': f, | ||
| 'h': g, 'o': IDL.Message(IDL.Obj({'0': o}), IDL.Obj({'0': o}))}) | ||
| 'f': IDL.Func(IDL.Obj({'0': IDL.Nat}), IDL.Obj({'0': h})), 'g': f, 'h': g, | ||
| 'o': IDL.Func(IDL.Obj({'0': o}), IDL.Obj({'0': o}))}); | ||
| return actor_g; | ||
| }; |
This file contains hidden or 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 hidden or 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,7 +1,10 @@ | ||
| const IDL = require('IDL') | ||
| export default ({ IDL }) => { | ||
| const t = IDL.Nat | ||
| const t2 = IDL.Arr(t) | ||
| const t3 = IDL.Opt(t) | ||
| const t1 = IDL.Obj({'0': t2, '1': t3, '2': t}) | ||
| const actor_S = new IDL.ActorInterface({ | ||
| 'f': IDL.Message(IDL.Obj({'0': t, '1': t2, '2': t3}), IDL.Obj({'0': t1}))}) | ||
| 'f': IDL.Func(IDL.Obj({'0': t, '1': t2, '2': t3}), IDL.Obj({'0': t1}))}); | ||
|
|
||
| return actor_S; | ||
| }; |
This file contains hidden or 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 hidden or 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 hidden or 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,7 +1,9 @@ | ||
| const IDL = require('IDL') | ||
| export default ({ IDL }) => { | ||
| const t = IDL.Arr(IDL.Nat8) | ||
| const t1 = t | ||
| const UserId = IDL.Nat | ||
| const t2 = UserId | ||
| const actor_S = new IDL.ActorInterface({ | ||
| 'f': IDL.Message(IDL.Obj({'0': t, '1': t1, '2': t2}), IDL.Obj({}))}) | ||
| 'f': IDL.Func(IDL.Obj({'0': t, '1': t1, '2': t2}), IDL.Obj({}))}); | ||
| return actor_S; | ||
| }; |
This file contains hidden or 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 hidden or 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,5 +1,7 @@ | ||
| const IDL = require('IDL') | ||
| export default ({ IDL }) => { | ||
| const actor_num = new IDL.ActorInterface({ | ||
| 'f': IDL.Message(IDL.Obj({'0': IDL.Nat8}), IDL.Obj({'0': IDL.Int16})), | ||
| 'g': IDL.Message(IDL.Obj({'0': IDL.Nat64}), IDL.Obj({'0': IDL.Int64})), | ||
| 'h': IDL.Message(IDL.Obj({'0': IDL.Int8}), IDL.Obj({'0': IDL.Nat}))}) | ||
| 'f': IDL.Func(IDL.Obj({'0': IDL.Nat8}), IDL.Obj({'0': IDL.Int16})), | ||
| 'g': IDL.Func(IDL.Obj({'0': IDL.Nat64}), IDL.Obj({'0': IDL.Int64})), | ||
| 'h': IDL.Func(IDL.Obj({'0': IDL.Int8}), IDL.Obj({'0': IDL.Nat}))}); | ||
| return actor_num; | ||
| }; |
This file contains hidden or 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 hidden or 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 hidden or 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,23 +1,24 @@ | ||
| const IDL = require('IDL') | ||
| export default ({ IDL }) => { | ||
| const my_type = IDL.Nat | ||
| const B = my_type | ||
| const message = IDL.Obj({'25': B, '26': IDL.None, 'name': IDL.Text}) | ||
| const broker = | ||
| new IDL.ActorInterface({ | ||
| 'find': | ||
| IDL.Message(IDL.Obj({'name': IDL.Text}), | ||
| IDL.Func(IDL.Obj({'name': IDL.Text}), | ||
| IDL.Obj({ | ||
| '0': | ||
| new IDL.ActorInterface({'up': IDL.Message(IDL.Obj({}), IDL.Obj({})), | ||
| 'current': IDL.Message(IDL.Obj({}), IDL.Obj({'0': IDL.Nat}))}) | ||
| new IDL.ActorInterface({'up': IDL.Func(IDL.Obj({}), IDL.Obj({})), | ||
| 'current': IDL.Func(IDL.Obj({}), IDL.Obj({'0': IDL.Nat}))}) | ||
| })) | ||
| }) | ||
| const actor_server = new IDL.ActorInterface({ | ||
| 'addUser': | ||
| IDL.Message(IDL.Obj({'name': IDL.Text, 'age': IDL.Nat8}), | ||
| IDL.Func(IDL.Obj({'name': IDL.Text, 'age': IDL.Nat8}), | ||
| IDL.Obj({'id': IDL.Nat64})), | ||
| 'userName': | ||
| IDL.Message(IDL.Obj({'id': IDL.Nat64}), IDL.Obj({'0': IDL.Text})), | ||
| 'userAge': IDL.Message(IDL.Obj({'id': IDL.Nat64}), IDL.Obj({'0': IDL.Nat8})), | ||
| 'deleteUser': IDL.Message(IDL.Obj({'id': IDL.Nat64}), IDL.Obj({})), | ||
| 'f': IDL.Message(IDL.Obj({'0': message}), IDL.Obj({'0': broker}))}) | ||
| 'userName': IDL.Func(IDL.Obj({'id': IDL.Nat64}), IDL.Obj({'0': IDL.Text})), | ||
| 'userAge': IDL.Func(IDL.Obj({'id': IDL.Nat64}), IDL.Obj({'0': IDL.Nat8})), | ||
| 'deleteUser': IDL.Func(IDL.Obj({'id': IDL.Nat64}), IDL.Obj({})), | ||
| 'f': IDL.Func(IDL.Obj({'0': message}), IDL.Obj({'0': broker}))}); | ||
| return actor_server; | ||
| }; |
This file contains hidden or 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,12 +1,14 @@ | ||
| const IDL = require('IDL') | ||
| export default ({ IDL }) => { | ||
| const A = | ||
| IDL.Obj({'': IDL.Nat, '📦🍦': IDL.Nat, '字段名': IDL.Nat, | ||
| '字 段 名2': IDL.Nat}) | ||
| const B = | ||
| IDL.Variant({'': IDL.Unit, '空的': IDL.Unit, ' 空的 ': IDL.Unit, | ||
| '1⃣️2⃣️3⃣️': IDL.Unit}) | ||
| const actor_C = new IDL.ActorInterface({ | ||
| '函数名': IDL.Message(IDL.Obj({'0': A}), IDL.Obj({'0': B})), | ||
| '': IDL.Message(IDL.Obj({'0': IDL.Nat}), IDL.Obj({'0': IDL.Nat})), | ||
| '👀': IDL.Message(IDL.Obj({'0': IDL.Nat}), IDL.Obj({'0': IDL.Nat})), | ||
| '✈️ 🚗 ⛱️ ': IDL.Message(IDL.Obj({}), IDL.Obj({}))}) | ||
| '函数名': IDL.Func(IDL.Obj({'0': A}), IDL.Obj({'0': B})), | ||
| '': IDL.Func(IDL.Obj({'0': IDL.Nat}), IDL.Obj({'0': IDL.Nat})), | ||
| '👀': IDL.Func(IDL.Obj({'0': IDL.Nat}), IDL.Obj({'0': IDL.Nat})), | ||
| '✈️ 🚗 ⛱️ ': IDL.Func(IDL.Obj({}), IDL.Obj({}))}); | ||
| return actor_C; | ||
| }; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I meant to update this before merging. Will be able to point to
mastersoon.