Professional Documents
Culture Documents
第五课
第五课
智能合约
王大锤
Engineer@Parity
maggiedong@parity.io
Substrate Smart Contracts
# 安装contract插件
存储 #[ink(storage)]
合约实例化方法#[ink(constructor)]
公共方法(用户可调用)#[ink(message)]
事件 #[ink(event)]
Ink! 支持的存储类型
i{8,16,32,64,128}, Hash
String,
Tuples,
合约调用runtime中的方法
pallet-contracts & ink!
Ink contract
ink_env wasm
Host functions
EnvBackend
seal_call
seal_transfer
Std impl ext::xxx
工具推荐
https://polkadot.js.org/apps
https://contracts-ui.substrate.io/
Feel free to add your
question
https://github.com/paritytech/ink-docs/issues