Skip to content

Official open-source Vexanium token contract used across the Wind Stack ecosystem. This repository includes ready-to-deploy sources, compiled artifacts (`.wasm`, `.abi`), and developer instructions. It can be built with the VexChain compiler toolchain, which is designed specifically for the Vexanium blockchain.

License

Notifications You must be signed in to change notification settings

windvex/token.wind

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🪙 Token.Wind Smart Contract

Official open-source Vexanium token contract used across the Wind Stack ecosystem.
This repository includes ready-to-deploy sources, compiled artifacts (.wasm, .abi), and developer instructions.
It can be built with the VexChain compiler toolchain, which is designed specifically for the Vexanium blockchain.


📦 Overview

This contract implements a standard fungible token system inspired by eosio.token, optimized for the Wind Stack DApp ecosystem.

Main features:

  • Create and issue fungible tokens
  • Standard transfer and retire actions
  • Open / close balance entries
  • Compatible with @wharfkit/antelope and Wind Stack DApp tools
  • Includes pre-built ABI and WASM binaries for direct integration

⚙️ Build Tool — VexChain

VexChain is the official compiler and toolchain for Vexanium smart contracts.
It provides a modern, optimized eosio-cpp replacement compatible with VEX Leap environments.

🔧 Installation (Linux / Ubuntu)

# Clone VexChain & Manual Build
git clone https://github.com/vexanium/VexChain.git
cd VexChain

# Install dependencies and build
./scripts/eosio_build.sh
./scripts/eosio_install.sh

🏗️ Compile the contract

Once VexChain is installed:

eosio-cpp -abigen -I include -contract token -o token.wasm src/token.wind.cpp

⚠️ Warnings about Ricardian clauses are informational only.
They indicate missing documentation clauses and do not affect functionality.


📘 Deploying to Vexanium

  1. Set contract:

    cleos set contract token.wind /path/to/token.wind/ -p token.wind@active
  2. Create a token:

    cleos push action token.wind create '["issueracc", "1000000000.0000 WIND"]' -p token.wind@active
  3. Issue tokens:

    cleos push action token.wind issue '["useracc", "100.0000 WIND", "Initial issue"]' -p issueracc@active
  4. Transfer tokens:

    cleos push action token.wind transfer '["useracc", "otheracc", "10.0000 WIND", "test"]' -p useracc@active

📂 Directory Structure

token.wind/
├── include/
│   └── token.wind.hpp        # Header file (contract definition)
├── src/
│   └── token.wind.cpp        # Main contract implementation
├── token.abi                 # ABI (Application Binary Interface)
├── token.wasm                # Compiled WASM bytecode
└── wallet.txt                # (optional) local test wallet / notes

🧩 Integration in Wind Stack

The contract’s ABI and WASM are directly consumable by:

  • Wind Wallet
  • Wind DApp (token, staking, and DEX modules)
  • Wind Explorer (ABI decoding, transaction tracing)

Developers can use Antelope formatters to integrate:

import { Asset } from '@wharfkit/antelope'

📜 License

Released under the MIT License.
You are free to use, modify, and distribute this contract with proper attribution.


💬 Credits


About

Official open-source Vexanium token contract used across the Wind Stack ecosystem. This repository includes ready-to-deploy sources, compiled artifacts (`.wasm`, `.abi`), and developer instructions. It can be built with the VexChain compiler toolchain, which is designed specifically for the Vexanium blockchain.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages