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

Jm/ext ts guest new #125

Merged
merged 42 commits into from
Mar 8, 2024
Merged

Jm/ext ts guest new #125

merged 42 commits into from
Mar 8, 2024

Conversation

jimmyaxod
Copy link
Contributor

Typescript guest extension support and integration tests.

@jimmyaxod jimmyaxod changed the base branch from staging to jm/ext-ts-host December 4, 2023 15:02
@jimmyaxod jimmyaxod force-pushed the jm/ext-ts-guest-new branch from 18ca946 to b943382 Compare December 4, 2023 15:05
@jimmyaxod jimmyaxod mentioned this pull request Dec 5, 2023
@jimmyaxod jimmyaxod changed the base branch from jm/ext-ts-host to staging December 6, 2023 15:00
@jimmyaxod jimmyaxod changed the base branch from staging to jm/ext-ts-host December 6, 2023 15:01
@jimmyaxod jimmyaxod force-pushed the jm/ext-ts-guest-new branch from 1e2f694 to 7a6250d Compare December 8, 2023 13:22
@jimmyaxod jimmyaxod changed the base branch from jm/ext-ts-host to staging December 8, 2023 13:22
jimmyaxod and others added 8 commits December 8, 2023 13:23
This adds typescript host support for extensions. Scale-65

---------

Signed-off-by: Jimmy Moore <jamesmoore@loopholelabs.io>
Signed-off-by: Shivansh Vij <shivanshvij@loopholelabs.io>
Co-authored-by: Shivansh Vij <shivanshvij@loopholelabs.io>
Signed-off-by: Jimmy Moore <jamesmoore@loopholelabs.io>
Signed-off-by: Jimmy Moore <jamesmoore@loopholelabs.io>

First version with guest/host generated in cli working

Signed-off-by: Jimmy Moore <jamesmoore@loopholelabs.io>

Couple changes

Signed-off-by: Jimmy Moore <jamesmoore@loopholelabs.io>

First ver compile golang guest

Signed-off-by: Jimmy Moore <jamesmoore@loopholelabs.io>

Updated to first version working guest+host in go

Signed-off-by: Jimmy Moore <jamesmoore@loopholelabs.io>

Extensions now get reset at start of a run

Signed-off-by: Jimmy Moore <jamesmoore@loopholelabs.io>

Updated to use scale-extension-interfaces

Signed-off-by: Jimmy Moore <jamesmoore@loopholelabs.io>

Updated extension host go.mod to include correct ver of scale-extension-interfaces

Signed-off-by: Jimmy Moore <jamesmoore@loopholelabs.io>

Started on rust extension impl

Signed-off-by: Jimmy Moore <jamesmoore@loopholelabs.io>

Fixup for golang extension

Signed-off-by: Jimmy Moore <jamesmoore@loopholelabs.io>

Initial rust generator for types from signature to extension

Signed-off-by: Jimmy Moore <jamesmoore@loopholelabs.io>

Updated ext generator for rust

Signed-off-by: Jimmy Moore <jamesmoore@loopholelabs.io>

Updated for rust compile

Signed-off-by: Jimmy Moore <jamesmoore@loopholelabs.io>

Latest updates

Signed-off-by: Jimmy Moore <jamesmoore@loopholelabs.io>

Latest rust guest ext working

Signed-off-by: Jimmy Moore <jamesmoore@loopholelabs.io>

Updated to use extension hash rather than name in wasm fns

Signed-off-by: Jimmy Moore <jamesmoore@loopholelabs.io>

Fixing for tests

Signed-off-by: Shivansh Vij <shivanshvij@loopholelabs.io>
Signed-off-by: Jimmy Moore <jamesmoore@loopholelabs.io>

Pulled in changes from staging, and fixed things up. e2e tests working on scale-cli

Signed-off-by: Jimmy Moore <jamesmoore@loopholelabs.io>

Removed unnecessary templates etc

Signed-off-by: Jimmy Moore <jamesmoore@loopholelabs.io>

Initial extension generator code

Signed-off-by: Jimmy Moore <jamesmoore@loopholelabs.io>

First ver compile golang guest

Signed-off-by: Jimmy Moore <jamesmoore@loopholelabs.io>

Extensions now get reset at start of a run

Signed-off-by: Jimmy Moore <jamesmoore@loopholelabs.io>

Updated to use scale-extension-interfaces

Signed-off-by: Jimmy Moore <jamesmoore@loopholelabs.io>
Signed-off-by: Jimmy Moore <jamesmoore@loopholelabs.io>
Signed-off-by: Jimmy Moore <jamesmoore@loopholelabs.io>
…extension-interfaces import.

Signed-off-by: Jimmy Moore <jamesmoore@loopholelabs.io>

Updated ext generator

Signed-off-by: Jimmy Moore <jamesmoore@loopholelabs.io>

First ver of typescript extension generating host types etc

Signed-off-by: Jimmy Moore <jamesmoore@loopholelabs.io>

Module now correctly returns BigInt on ext function

Signed-off-by: Jimmy Moore <jamesmoore@loopholelabs.io>

Added extension impl interface typescript

Signed-off-by: Jimmy Moore <jamesmoore@loopholelabs.io>

Updated ts host templates. Just need function bodies now

Signed-off-by: Jimmy Moore <jamesmoore@loopholelabs.io>

First version of typescript host working e2e

Signed-off-by: Jimmy Moore <jamesmoore@loopholelabs.io>

Rebased to jm/ext and started tidying up

Signed-off-by: Jimmy Moore <jamesmoore@loopholelabs.io>

Reverted scalefile change, removed unused templates

Signed-off-by: Jimmy Moore <jamesmoore@loopholelabs.io>

Fixed up typescript type generation in extension

Signed-off-by: Jimmy Moore <jamesmoore@loopholelabs.io>

Removed dupe type templates in typescript extensions

Signed-off-by: Jimmy Moore <jamesmoore@loopholelabs.io>

Added generator for typescript extension host integration test

Signed-off-by: Jimmy Moore <jamesmoore@loopholelabs.io>

Added ts host generator, and start of extension test typescript

Signed-off-by: Jimmy Moore <jamesmoore@loopholelabs.io>

ts host ext tests passing

Signed-off-by: Jimmy Moore <jamesmoore@loopholelabs.io>

Lint golang fix

Signed-off-by: Jimmy Moore <jamesmoore@loopholelabs.io>

Fixed ts lint any issue

Signed-off-by: Jimmy Moore <jamesmoore@loopholelabs.io>

Fixed rust templ

Signed-off-by: Jimmy Moore <jamesmoore@loopholelabs.io>

Clean up pr

Signed-off-by: Jimmy Moore <jamesmoore@loopholelabs.io>
Signed-off-by: Jimmy Moore <jamesmoore@loopholelabs.io>
…m-toolkit to do mux replaces

Signed-off-by: Jimmy Moore <jamesmoore@loopholelabs.io>

ts ext test compiling. Just need to have it call extension

Signed-off-by: Jimmy Moore <jamesmoore@loopholelabs.io>

Typescript guest extension passing integration tests

Signed-off-by: Jimmy Moore <jamesmoore@loopholelabs.io>

Test fix

Signed-off-by: Jimmy Moore <jamesmoore@loopholelabs.io>

Lint fixes

Signed-off-by: Jimmy Moore <jamesmoore@loopholelabs.io>

Lint fix

Signed-off-by: Jimmy Moore <jamesmoore@loopholelabs.io>

Add: js_builder-x86_64-unknown-linux-gnu

Signed-off-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>

Add: js_builder-aarch64-unknown-linux-gnu

Signed-off-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>

More lint

Signed-off-by: Jimmy Moore <jamesmoore@loopholelabs.io>

Add: js_builder-aarch64-apple-darwin

Signed-off-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>

Add: js_builder-x86_64-pc-windows-msvc

Signed-off-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>

Add: js_builder-x86_64-apple-darwin

Signed-off-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>

Added missing index.ts for ts ext test

Signed-off-by: Jimmy Moore <jamesmoore@loopholelabs.io>

Add: js_builder-x86_64-pc-windows-msvc

Signed-off-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>

Add: js_builder-x86_64-pc-windows-msvc

Signed-off-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Signed-off-by: Jimmy Moore <jamesmoore@loopholelabs.io>
Signed-off-by: Jimmy Moore <jamesmoore@loopholelabs.io>
@jimmyaxod jimmyaxod force-pushed the jm/ext-ts-guest-new branch from 7a6250d to 072bd76 Compare December 8, 2023 13:24
github-actions bot and others added 8 commits December 8, 2023 13:32
Signed-off-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Signed-off-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Signed-off-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Signed-off-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Signed-off-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Signed-off-by: Jimmy Moore <jamesmoore@loopholelabs.io>
Signed-off-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
@dphilla dphilla marked this pull request as draft January 19, 2024 02:23
jimmyaxod and others added 22 commits February 14, 2024 10:43
Signed-off-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Signed-off-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Signed-off-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Signed-off-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Signed-off-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Signed-off-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Signed-off-by: Daniel Phillips <daniel@loopholelabs.io>
Signed-off-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Signed-off-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Signed-off-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Signed-off-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Signed-off-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Signed-off-by: Daniel Phillips <daniel@loopholelabs.io>
Signed-off-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Signed-off-by: Daniel Phillips <daniel@loopholelabs.io>
@dphilla dphilla marked this pull request as ready for review March 8, 2024 22:11
Signed-off-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
@dphilla dphilla merged commit 2e3d8fc into staging Mar 8, 2024
0 of 2 checks passed
@ShivanshVij ShivanshVij deleted the jm/ext-ts-guest-new branch July 3, 2024 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants