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

How to call a runtime function from within a contract? #558

Closed
galaio opened this issue Nov 1, 2020 · 7 comments
Closed

How to call a runtime function from within a contract? #558

galaio opened this issue Nov 1, 2020 · 7 comments
Labels
C-question Further information is requested

Comments

@galaio
Copy link

galaio commented Nov 1, 2020

hi, I want to know how to call runtime function which defined in pallet, please~

@qaibeibei
Copy link

I also want to know that some of the ones I found are old versions

@Robbepop
Copy link
Collaborator

Robbepop commented Nov 3, 2020

This is not yet possible unfortunately.
We are working on a solution called "chain extensions" that will allow runtimes to customize the contracts API in order to further allow calling into the runtime if the runtime chooses to provided this functionality.
However, implementation on the Substrate side is not yet done.
@athei

@Robbepop Robbepop added the C-question Further information is requested label Nov 3, 2020
@Robbepop Robbepop changed the title how to call runtime function which defined in pallet How to call a runtime function from within a contract? Nov 3, 2020
@XSvr
Copy link

XSvr commented Nov 3, 2020

This is not yet possible unfortunately.
We are working on a solution called "chain extensions" that will allow runtimes to customize the contracts API in order to further allow calling into the runtime if the runtime chooses to provided this functionality.
However, implementation on the Substrate side is not yet done.
@athei

Parity is a cross chain ecology, but the biosphere is a prison. I'm so sad @Robbepop @athei

@Robbepop
Copy link
Collaborator

Robbepop commented Nov 3, 2020

The chain-extension feature is well on the top of our priority list to work on. Hopefully won't take too long to get it done.

@ianhe8x
Copy link

ianhe8x commented Jan 6, 2021

Is Call contract from runtime the same case as this one and can be supported by the chain-extension feature?

@athei
Copy link
Contributor

athei commented Jan 6, 2021

Yes. Chain extensions is the means to call custom functions in your runtime.

@Robbepop
Copy link
Collaborator

Chain extensions have just been implemented in #592.
Closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-question Further information is requested
Projects
None yet
Development

No branches or pull requests

6 participants