yangwao / ask

Ask! is a framework to write Wasm smart contracts for Substrate Frame Pallet-Contracts in AssemblyScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ask!

Ask!

Ask! is a smart contract language designed based on AssemblyScript and running on Substrate FRAME Contracts. Ask! uses the similar way to ink! of designing the procedural macro in the form of eDSL, to write contracts by providing annotation type in AssemblyScript (aka AS). This way can hide the implementation details of the contract, and reduces the difficulty of writing contract. Ask! will be similar to ink!’s existing implementation, and the final product will maintain maximum compatibility with ink!’s existing standards. The WASM and metadata files compiled by Ask! can be deployed on the Substrate chain and run normally.

For example: ink! describe the contract's external call interface through #[ink(constructor)], #[ink(message)].

In Ask!, it will describe the interface through @constructor, @message or other similar annotation.

Riot Group for disscusion: https://app.element.io/#/room/#PatractLabsDev:matrix.org

Overview

Although AS is a new language that uses TS syntax, there are a wide range of developers who use TS as a development language, so the cost of learning AS for these developers is very low. Therefore, we think the Ask! project has a very good application development prospect. Compared with Rust-based ink!, we believe that AS-based Ask! can effectively lower the threshold for contract developers and enrich the contract development ecosystem.

Current proposal for this repo is Patract's proposal for Ask! v0.2, and the report is Post #639

Example

We have some examples under the examples directory. See examples/readme.

Usage

See our document for a quick start.

About

Ask! is a framework to write Wasm smart contracts for Substrate Frame Pallet-Contracts in AssemblyScript

License:MIT License


Languages

Language:TypeScript 85.8%Language:JavaScript 14.2%