subscript/core at master · ascontract/subscript · GitHub
Skip to content

Latest commit

 

History

History

core

Folders and files

README.md

subscript/core

License

The core library to write substrate wasm smart contracts in AssemblyScript.

Collection of library used in developing smart contracts including:

  • contract runtime api - Host functions of substrate contract runtime.
  • env - Contract envionment interface for interacting with contract executor.
  • types - Basic types defined for contract primitive.
  • context - The information of the contract context.
  • crypto - Hash funtions utils.

Setup

Install all dependencies

yarn

Testing

To run the unit test:

yarn test

License

subscript/core is distributed under the terms of the Apache License (Version 2.0).

See LICENSE-APACHE for details.