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

New runtime interfaces #357

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

New runtime interfaces #357

wants to merge 1 commit into from

Conversation

arjanz
Copy link
Member

@arjanz arjanz commented Oct 6, 2023

Add a more intuitive approach to interface with the runtime functionality, examples:

  • Storage functions:
substrate.runtime.at(block_hash).pallet("System").storage("Account").get("13GnsRKEXCAYLJNScBEDj7rHTXkkHAVTj5QMNp6rnyGuTAVN")
  • Runtime calls
call = self.kusama_substrate.runtime.pallet("Balances").call("transfer").create(
                dest='EaG2CRhJWPb7qmdcJvy3LiWdh26Jreu9Dx6R1rXxPmYXoDk',
                value=3 * 10 ** 3
            )
  • Runtime API calls:
self.substrate.runtime.api("Core").call("version").execute()
  • Update documentation
  • Backwards compatilibity
  • Update unit tests

These interfaces will be available next to the old methods.

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.

1 participant