oasisprotocol / oasisprotocol/cli

Oasis CLI should support `oasis contracts query`

Open
#6 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement paratime
Dominant language
Go
Stars
80
Forks
23
Avg merge
9h 43m
Merged PRs (30d)
3

Description

The Oasis Contracts SDK supports the query handle (https://github.com/oasisprotocol/oasis-sdk/blob/main/contract-sdk/src/contract.rs). Similar to the call handle, Oasis CLI should support interacting with it, e.g.:

oasis contracts query <instance-id> <data-yaml> [flags]

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by comparing the existing Oasis CLI contracts call command with the query handle in contract-sdk/src/contract.rs. Trace how the call command accepts an instance ID and YAML data, then add equivalent query support with the documented flags. Done means oasis contracts query <instance-id> <data-yaml> [flags] can interact with the SDK query handle.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
blockchain, cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.