Skip to content

Latest commit

 

History

History

candid-extractor

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

candid-extractor

A CLI tool to extract candid definition from canister WASM.

Installation

cargo install candid-extractor

Usage

candid-extractor path/to/canister.wasm

Update ic_mock.wat

candid-extractor requires a mock WASM (ic_mock.wat) which provides ic0 imports.

Such ic_mock.wat is directly generated from the system API.

When interface-spec releases a new version that modify ic0 system API:

  1. replace ic0.txt in the root of this project;
  2. execute cargo run --example=generate_mock_wat;

ic_mock.wat should be updated.