Skip to content

This crate provides Rust bindings to enable CosmWasm smart contracts to interact with custom modules in the Provenance Blockchain.

License

Notifications You must be signed in to change notification settings

Taztingo/provwasm

 
 

Repository files navigation

Provenance CosmWasm Bindings

This crate provides bindings to enable CosmWasm smart contracts to interact with custom provenance blockchain modules.

Crate Download Docs
provwasm-std provwasm-std on crates.io Docs
provwasm-mocks provwasm-mocks on crates.io Docs

Compatibility

The following table shows provwasm version compatibility for smart contract development and testing.

provwasm wasmd cosmos provenance module support
v1.1.2 v0.29.X v0.46.X v1.13.X attribute,marker,metadata,msgfees,name
v1.1.1 v0.29.X v0.46.X v1.13.X attribute,marker,metadata,msgfees,name
v1.1.0 v0.26.X v0.45.X v1.10.X - v1.12.X attribute,marker,metadata,msgfees,name
v1.0.0 v0.26.X v0.45.X v1.8.X - v1.9.X attribute,marker,metadata,name
v0.16.0 v0.18.0 v0.43.0 v1.6.X attribute,marker,metadata,name
v0.14.3 v0.17.0 v0.42.6 v1.5.X attribute,marker,metadata,name
v0.14.2 v0.17.0 v0.42.6 v1.5.X attribute,marker,metadata,name
v0.14.1 v0.17.0 v0.42.5 v1.4.1+ attribute,marker,name
v0.14.0 v0.16.0 v0.42.4 v1.3.0+ attribute,marker,name
v0.13 v0.15 v0.41 v0.2.0 attribute,marker,name

Getting Started

Start with the tutorial for a complete guide to developing smart contracts for the Provenance Blockchain.

IBC

Once the tutorial has been completed and you are ready for a more advanced topic, checkout the IBC Overview to learn more about IBC Smart Contracts and a guided tour of a multi-contract IBC project.

Contents

In addition to the core CosmWasm functionality, the provenance bindings include

Query Support

  • Names
    • Resolve the address for a name.
    • Lookup all names bound to an address.
  • Account Metadata
    • Get all attributes for an account.
    • Get attributes for an account by name.
  • Markers
    • Get marker by denom.
    • Get marker by address.
  • Metadata
    • Get scope by ID.
    • Get scope sessions.
    • Get scope records.
    • Get scope record by name.

Message Encoding

  • Names
    • Bind name
    • Delete name
  • Account Metadata
    • Add attribute
    • Delete all attributes
    • Delete distinct attribute
    • Update attribute
  • Markers
    • Create
    • Grant access
    • Revoke access
    • Finalize
    • Activate
    • Cancel
    • Destroy
    • Mint supply
    • Burn supply
    • Withdraw coins
    • Transfer coins
  • Metadata
    • Write Scope
  • MsgFees
    • Assess custom fee

About

This crate provides Rust bindings to enable CosmWasm smart contracts to interact with custom modules in the Provenance Blockchain.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 82.6%
  • Shell 13.0%
  • Makefile 4.1%
  • Dockerfile 0.3%