aaroncox / vert

Blockchain Testing Library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VeRT

VM emulation RunTime for WASM-based blockchain contracts

VeRT is a blockchain virtual machine emulator for WASM-based contracts like EOSIO. (CosmWasm and Substrate will be supported.) It uses the built-in WebAssembly object in JavaScript, so can be executed on any modern browsers or runtime environments without additional dependencies. It doesn't support the full specification of each blockchain state-machine, but can be used to run and test smart contracts before deployment. The focus of VeRT is on the better compatibility than the performance, so it can be integrated with development pipelines.

  • Run and test smart contracts
  • Minimum dependencies (No native wrapper, docker or remote connection)
  • Volatile key-value store with state rollback

Requirement

  • WebAssembly binary with the exported memory (blanc v0.9.2 or higher)
  • JavaScript runtime with WebAssembly BigInt support (nodejs v16 or higher)

Installation

npm install @proton/vert

Test

  • nodejs v16 or higher
npm run test
  • nodejs v14
node --experimental-wasm-bigint node_modules/mocha/bin/_mocha src/**/*.spec.ts -r ts-node/register

License

MIT

@greymass-eosio

About

Blockchain Testing Library

License:MIT License


Languages

Language:TypeScript 98.1%Language:JavaScript 1.9%