Skip to content

KiiChain/wasmbindings

This repository is based on Token Bindings

Kiichain CosmWasm Bindings

This repository provides CosmWasm smart contract bindings for the Kiichain blockchain, exposing custom messages and queries.

🧪 Example: Reflect Contract

Located in contracts/reflect, this smart contract demonstrates how to:

  • Send CosmosMsg<KiichainMsg> and SubMsg<KiichainMsg>.
  • Use QueryRequest<KiichainQuery> for custom chain queries.
  • Proxy messages and handle submessage replies.
  • Change and query contract ownership.

Instantiate

{}

Execute

{
  "reflect_msg": {
    "msgs": [
      {
        "custom": {
          "token_factory": {
            "mint_tokens": {
              "denom": "...",
              "amount": "...",
              "mint_to_address": "..."
            }
          }
        }
      }
    ]
  }
}

Query

{
  "chain": {
    "request": {
      "custom": {
        "token_factory": {
          "admin": {
            "denom": "factory/..."
          }
        }
      }
    }
  }
}

🔧 Getting Started

Requirements

Build and Test

# Install dependencies
cargo build

# Run schema export for bindings
cargo run --example schema

# Build compressed
./scripts/build_release.sh

📦 Crate Usage

To use the Kiichain bindings in your contract:

# In your Cargo.toml
[dependencies]
kiichain-bindings = { path = "../packages/bindings" }

And in your contract code:

use token_bindings::{KiichainMsg, KiichainQuery};

📚 FAQ

Have questions? Check out the FAQ for common answers and explanations.

About

Kiichain Wasmbindings

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors