Directories
¶
Path | Synopsis |
---|---|
Package api provides the interfaces for the virtual machine that executes smart contracts.
|
Package api provides the interfaces for the virtual machine that executes smart contracts. |
cmd
|
|
Package runtime provides the execution environment for smart contracts.
|
Package runtime provides the execution environment for smart contracts. |
wasm
WebAssembly 合约通信包装层 为智能合约提供与主机环境通信的标准接口
|
WebAssembly 合约通信包装层 为智能合约提供与主机环境通信的标准接口 |
Package core defines the core interfaces required for smart contracts to interact with the VM system Contract developers only need to understand and use the interfaces in this file to write smart contracts
|
Package core defines the core interfaces required for smart contracts to interact with the VM system Contract developers only need to understand and use the interfaces in this file to write smart contracts |
examples
|
|
contracts/counter
A simple counter contract example based on WASM wrapper
|
A simple counter contract example based on WASM wrapper |
contracts/counter_factory
Package counter implements a simple counter contract example.
|
Package counter implements a simple counter contract example. |
contracts/nft1
A simple NFT contract example based on WASM wrapper
|
A simple NFT contract example based on WASM wrapper |
contracts/token1
A simple token contract example based on WASM wrapper
|
A simple token contract example based on WASM wrapper |
contracts/token2
A simple token contract example based on WASM wrapper
|
A simple token contract example based on WASM wrapper |
Package counter implements buffered position-based editing of byte slices.
|
Package counter implements buffered position-based editing of byte slices. |
Package types contains shared type definitions and constants used by both the host environment and WebAssembly contracts
|
Package types contains shared type definitions and constants used by both the host environment and WebAssembly contracts |
Click to show internal directories.
Click to hide internal directories.