oasisprotocol / oasisprotocol/oasis-sdk

contract-sdk: Add high-level helpers for calling methods of other contracts

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

Nobody has claimed this yet.

c:contract-sdk enhancement
Dominant language
Rust
Stars
90
Forks
35
Avg merge
5d 9h
Merged PRs (30d)
5

Description

Currently calling (emitting a Call message) is somewhat cumbersome:
https://github.com/oasisprotocol/oasis-sdk/blob/2ec656e1f82b3e9d825002227111469ebf3189f9/tests/contracts/hello/src/lib.rs#L163-L173

Having high-level helpers for "calling methods" of other contracts would make this more convinient.

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 with tests/contracts/hello/src/lib.rs, especially the calling example around lines 163-173, to understand the current Call message flow. Define and implement high-level helpers for calling methods of other contracts, then update or add an example showing that the existing cumbersome flow is simplified.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
blockchain
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.