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

[x/programs] add program abstraction #660

Merged
merged 29 commits into from
Jan 7, 2024
Merged
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
c71e603
Move fixtures into tests directory
hexfusion Dec 14, 2023
903fefe
Abstract engine from runtime
hexfusion Dec 14, 2023
ff0adb6
React to changes
hexfusion Dec 14, 2023
cea5ea5
Nits
hexfusion Dec 15, 2023
f25a144
Review comments
hexfusion Dec 21, 2023
29d3bbe
Clarify debug mode
hexfusion Dec 21, 2023
a75af73
Nit
hexfusion Dec 21, 2023
3d03b4c
Add host abstraction
hexfusion Dec 15, 2023
2b7ba48
React to changes
hexfusion Dec 15, 2023
3ac1a3f
Cleanup
hexfusion Dec 21, 2023
195c96a
Move program from runtime
hexfusion Dec 22, 2023
af1201b
Add program abstraction
hexfusion Dec 22, 2023
597ff1a
Implement runtime instance and react to changes
hexfusion Dec 22, 2023
2fbdc8e
Nit
hexfusion Dec 22, 2023
fa5565d
Add RegisterImportWrapFn
hexfusion Dec 22, 2023
7485e7c
Update examples
hexfusion Dec 22, 2023
e1bbfc4
Show example of wrap import function impl
hexfusion Dec 22, 2023
8dbe3ed
Remove stale docs
hexfusion Dec 22, 2023
678a8cb
Impliment pstate with wrap functionality
hexfusion Dec 22, 2023
7e5f311
license header lint
samliok Dec 27, 2023
95aa598
remove hardcoded wrapper funcitons, fixed pstate bugs
samliok Jan 6, 2024
13ff0a6
lint
samliok Jan 6, 2024
cee952c
lint
samliok Jan 6, 2024
5c359d9
Merge branch 'dynamic_args' into refactor-statekey
samliok Jan 6, 2024
15b84b5
Revert "Merge branch 'dynamic_args' into refactor-statekey"
samliok Jan 6, 2024
3a23ebb
Revert "Revert "Merge branch 'dynamic_args' into refactor-statekey""
samliok Jan 6, 2024
7f323b2
lint
samliok Jan 6, 2024
b5e64fb
memory tests
samliok Jan 6, 2024
d175d2c
create WAT program instead of memory.wasm
samliok Jan 6, 2024
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
Prev Previous commit
Next Next commit
lint
  • Loading branch information
samliok committed Jan 6, 2024
commit cee952cf7ae6f97567a452456da7770d0d232726
2 changes: 1 addition & 1 deletion x/programs/examples/imports/wrap/wrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func (i ImportFn[F]) Invoke(c *program.Caller, args ...int64) (*types.Val, error
case AnyParamFn:
return fn.Call(c, args...)
default:
return nil, fmt.Errorf("unsupported function type %T", i.fn)
return nil, fmt.Errorf("unsupported function type")
}
}

Expand Down