Skip to content

refactor contract calls: convenience methods in SDK and SophiaTypes in SDK #64

@marc0olo

Description

@marc0olo

I was thinking about how to improve pure SDK usage for contract calls and I think the JS-SDK is doing this quite will right now. it is converting the Sophia types.

Example calls that should be possible using the SDK:

  • deploy(txOptions: ContractTxOptions)
  • call(contractId: String, entrypoint: String, txOptions: ContractTxOptions) (for stateful and payable calls)
  • callReadOnly(contractId: String, entrypoint: String) (for read-only dry-run calls)

I see following tasks in this issue:

  • use the new convenience methods in the SDK
  • use SophiaType classes of the SDK wherever it's possible and makes sense

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions