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

Make it possible for a HostQuery to use a Session #327

Open
ureeves opened this issue Feb 10, 2024 · 0 comments · Fixed by #328
Open

Make it possible for a HostQuery to use a Session #327

ureeves opened this issue Feb 10, 2024 · 0 comments · Fixed by #328
Labels
team:Core Low Level Core Development Team (Rust) type:feature implementing a new feature

Comments

@ureeves
Copy link
Member

ureeves commented Feb 10, 2024

Summary

It should be possible for host functions to call contracts during execution of a program. This will allow for downstream to move all the logic of the transfer contract to outside of the WASM binary and maintain the same level of atomicity.

Possible solution design or implementation

In the definition of a HostQuery add a &mut Session parameter and flow from there.

Additional context

This is important to allow for moving the genesis contracts to host functions.

@ureeves ureeves added team:Core Low Level Core Development Team (Rust) type:feature implementing a new feature labels Feb 10, 2024
ureeves pushed a commit that referenced this issue Feb 10, 2024
This will allow for downstream to make use of a `Session` while defining
host functions, enabling contracts to be called during their execution.

Resolves: #327
ureeves pushed a commit that referenced this issue Feb 10, 2024
This will allow for downstream to make use of a `Session` while defining
host functions, enabling contracts to be called during their execution.

Resolves: #327
ureeves pushed a commit that referenced this issue Feb 12, 2024
This will allow for downstream to make use of a `Session` while defining
host functions, enabling contracts to be called during their execution.

Resolves: #327
ureeves pushed a commit that referenced this issue Feb 12, 2024
This will allow for downstream to make use of a `Session` while defining
host functions, enabling contracts to be called during their execution.

Resolves: #327
ureeves pushed a commit that referenced this issue Feb 12, 2024
This will allow for downstream to make use of a `Session` while defining
host functions, enabling contracts to be called during their execution.

Resolves: #327
ureeves pushed a commit that referenced this issue Feb 12, 2024
This will allow for downstream to make use of a `Session` while defining
host functions, enabling contracts to be called during their execution.

Resolves: #327
ureeves pushed a commit that referenced this issue Feb 13, 2024
This will allow for downstream to make use of a `Session` while defining
host functions, enabling contracts to be called during their execution.

Resolves: #327
@ureeves ureeves reopened this Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team:Core Low Level Core Development Team (Rust) type:feature implementing a new feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant