Moonbit-ic-cdk – A MoonBit-powered Canister Development Kit for ICP

v1.0.0: First Official Release - Full Candid & System API Support

We are excited to announce the first major release of moonbit-ic-cdk v1.0.0! :tada:

moonbit-ic-cdk is a lightweight, WebAssembly-native Canister Development Kit designed for building high-performance smart contracts on the Internet Computer (ICP) using the Moonbit language.

This release provides the essential foundation for developing production-ready canisters, featuring complete system API bindings, robust data serialization, and HTTP handling capabilities.

:rocket: Key Features

  • Complete IC System API Bindings: Access low-level ic0 FFI bindings and high-level wrappers for seamless interaction with the IC replica.
  • Full Candid Support: Comprehensive implementation of Candid serialization/deserialization, including LEB128 encoding/decoding, primitive types, and an IDL builder.
  • HTTP Gateway Integration: Built-in support for handling HTTP requests and responses, compliant with the IC HTTP Gateway interface specification.
  • Principal & Identity Management: Complete implementation of the Principal type for managing user and canister identities.
  • Efficient Memory Management: APIs for stable memory access and low-level storage operations.
  • MoonBit Optimization: Leveraging MoonBit’s toolchain to generate compact, high-performance Wasm binaries with exceptional compile-time speed.

:package: Getting Started

Prerequisites

  • MoonBit compiler
  • DFX (Internet Computer development toolkit)

Installation

You can clone the repository and build the examples to get started immediately:

git clone https://github.com/eliezhao/moonbit-ic-cdk.git
cd moonbit-ic-cdk/examples/demo
moon build --target wasm --release

:books: Documentation & Resources

  • README: Full documentation on installation, usage, and API structure.
  • Examples: Check the examples/ directory for basic usage and a complete demo canister.
  • Community: We are officially listed in Awesome Internet Computer! Join the discussion on the [suspicious link removed].

:handshake: Contributors

Special thanks to all contributors and the MoonBit community for their feedback and support in making this release possible.

5 Likes