ink-validate is a command line tool to validate ink contracts.
To install ink-validate, you can clone the repository and build the tool using cargo:
git clone https://github.com/Phala-Network/ink-validator.git
cd ink-validator/cli
cargo install --path .
To validate a contract called "contract.wasm", use the following command:
ink-validate contract.wasm
To validate a contract called "contract.wasm" and allow indeterministic instructions, use the following command:
ink-validate -i contract.wasm
Or you can visit https://phala-network.github.io/ink-validator/ to use the live version which is compiled to WASM.
ink-validate is released under the MIT License.