Skip to content

Latest commit

 

History

3,451 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wire CDT (Contract Development Toolkit)

Wire Contract Development Toolkit (CDT) is a C/C++ toolchain targeting WebAssembly (WASM) and a set of tools to facilitate development of smart contracts written in C/C++ that are meant to be deployed to a Wire blockchain.

Branches

The master branch is the latest stable branch.

Supported Operating Systems

We currently support the following operating systems.

Operating Systems
Ubuntu 24.04 Jammy

Installation

In the future, we plan to support downloading Debian packages directly from our release page, providing a more streamlined and convenient setup process. However, for the time being, installation requires building the software from source.

Finally, verify Wire CDT was installed correctly:

cdt-cpp --version

You should see version information with no errors. For example:

Wire CDT version 4.x.x

Building from source

Follow the instructions in BUILD.md to build Wire CDT from source.

Coming from EOS, Telos, WAX or another Antelope chain?

docs/migrating-from-antelope.md walks through getting started on Wire and porting an existing contract — the eosio → sysio renames, the KV storage layer that replaces the legacy db_*_i64 tables, the host functions Wire adds and removes, and the resource model change that matters most: on Wire the contract is billed for CPU and NET by default rather than the signer, and RAM follows whichever account the contract names as payer.

Testing

Wire CDT supports the following test suites:

Test Suite Test Type Notes
Unit tests Unit tests Fast unit tests covering core functionality
Integration tests Integration Tests requiring Wire Sysio build; optional but recommended if developing contracts

When building from source, we recommend running at least the unit tests.

Unit Tests

The unit test suite consists of tests that verify core CDT functionality without external dependencies.

You can invoke them by running ctest from a terminal in your build directory:

ctest

Integration Tests

The integration test suite requires a built version of Wire Sysio and tests contract compilation and execution end-to-end.

To build and run integration tests, you must first build Wire Sysio from source and set the sysio_DIR environment variable before configuring the CDT build. You also need to pass ENABLE_INTEGRATION_TESTS=ON to cmake. See BUILD.md for detailed instructions.

You can invoke them by running ctest from a terminal in your integration tests directory:

cd build/tests/integration
ctest

Wire Network Wire Network
Website | Twitter | LinkedIn
© 2024 Wire Network. All rights reserved.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages