smart-contract-as:在AssemblyScript中为Wavelet编写WebAssembly智能合约

时间:2021-02-03 02:31:51
【文件属性】:
文件名称:smart-contract-as:在AssemblyScript中为Wavelet编写WebAssembly智能合约
文件大小:21KB
文件格式:ZIP
更新时间:2021-02-03 02:31:51
dapp smart-contracts blockchain p2p wavelet 智能合约 在AssemblyScript中为Wavelet编写分散的应用程序。 建立 假设安装了yarn ,请执行以下操作来创建一个新的智能合约项目: yarn add -D AssemblyScript/assemblyscript yarn asinit . yarn add smart-contract-as 例 内部assembly/index.ts : import { Parameters , Tag , Transfer , send_transaction , log } from "../node_modules/smart-contract-as/assembly" ; // Simple hello world example. export function _contract_init ( ) : void { const params = Parameters . load ( ) ; log ( "hello world" ) ; } // Echoes back a message the sender provides. expo
【文件预览】:
smart-contract-as-master
----.gitignore(24B)
----assembly()
--------tsconfig.json(103B)
--------index.ts(8KB)
----package.json(708B)
----index.js(385B)
----examples()
--------token()
--------chat()
--------transfer_back()
----README.md(1KB)
----yarn.lock(5KB)

网友评论