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

✨ Create Data Request from the CLI #25

Open
FranklinWaller opened this issue May 7, 2024 · 2 comments
Open

✨ Create Data Request from the CLI #25

FranklinWaller opened this issue May 7, 2024 · 2 comments
Assignees
Labels
type: feature ✨ New feature or request

Comments

@FranklinWaller
Copy link
Member

✨ Feature

Allows users to create Data Requests to test their WASM binary on chain.

Motivation

When a user has developed their Data Request binary and they want to test it on testnet they have to create a request from a destination chain. It would be easier to test coming from the CLI. The user inputs arguments specific to their DR and will get back the result of the execution.

Implementation

  • Decide how arguments are going to look like.
  • Create a new CLI command which as input have the Binary ID, Input args and SEDA RPC (optional)
  • Implement a function on the WASM side that converts cli arguments to the preferred encoding
    • encode_argv() which then uses the POSIX args and gives back the right encoding.
  • This encoded argv is then used to create a data request and post it on chain
@FranklinWaller FranklinWaller added the type: feature ✨ New feature or request label May 7, 2024
@FranklinWaller FranklinWaller self-assigned this Jun 5, 2024
@mariocao
Copy link
Member

Moved to backlog as right now we decided leave it for later.

@FranklinWaller
Copy link
Member Author

Currently not possible due: wasmerio/wasmer-js#422

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature ✨ New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants