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

Add some APIs to make it more convenient for users to construct InvokeHostFunction. #488

Closed
overcat opened this issue Jul 20, 2023 · 2 comments
Assignees

Comments

@overcat
Copy link
Member

overcat commented Jul 20, 2023

What problem does your feature solve?

Currently, users need to construct InvokeHostFunction directly. I want to add some interfaces to help users quickly construct operations such as calling contracts and creating contracts.

What would you like to see?

Add the following interfaces.

  • upload_contract_wasm
  • create_contract
  • deploy_create_token_contract_from_asset
  • deploy_create_token_contract_from_address
  • invoke_contract_function

What alternatives are there?

None

Estimated working hours: 8

@sreuland
Copy link
Contributor

this is great coverage, it might be worthwhile to split the functions up into sub-tickets if you prefer. for 'invoke_contract_function`, could use the js sdk's Contract.call() as a reference.

@overcat
Copy link
Member Author

overcat commented Aug 23, 2023

Implemented in #497.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants