Skip to main content

GEM Smart Contracts

GEM is BelizeChain's smart contract platform: certified ink! contracts, a TypeScript SDK, and the tooling to build and deploy your own.

What's Included

Contracts (ink! 5.1.1)

ContractStandardPurpose
dalla-tokenPSP22Fungible DALLA token
beli-nftPSP34Cultural NFTs
psp37-multi-tokenPSP37Mixed fungible/non-fungible multi-token
dex (BelizeX)AMMFactory + pair + router (x·y=k)
simple-daoCustomOn-chain governance
faucetCustomTestnet token distribution
access-controlLibraryOwnable / RBAC / Pausable patterns
hello-belizechainExampleStarter contract

SDK

npm install @belizechain/gem-sdk
const { GemSDK } = require('@belizechain/gem-sdk');

const sdk = new GemSDK(process.env.BLOCKCHAIN_WS_URL || 'ws://localhost:9944');
await sdk.connect();

The SDK wraps Polkadot.js with typed helpers for contracts, transfers, DEX swaps, and mesh networking.

Documentation Map

Build and Test

git clone https://github.com/BelizeChain/gem.git
cd gem
cargo contract build --release --manifest-path dalla_token/Cargo.toml
cargo test

Contracts execute inside the runtime via pallet-contracts (runtime index 13) — they are uploaded and instantiated against a running BelizeChain node, not deployed as standalone services.

Related