Documentation
¶
Overview ¶
Package runtime provides the execution environment for smart contracts.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RestrictedCommentPrefixes []string = []string{
"go ",
"+build",
"-build",
"go:",
"// +build",
"//line",
"//export",
"//extern",
"//cgo",
"//syscall",
"//unsafe",
"//runtime",
"//internal",
"//vendor",
}
View Source
var WASM_CONTRACT_TEMPLATE string
Functions ¶
This section is empty.
Types ¶
type FunctionInfo ¶
FunctionInfo 函数信息
type Maker ¶
type Maker struct {
// contains filtered or unexported fields
}
Maker handles the compilation and validation of smart contracts.
func NewMaker ¶
func NewMaker(config api.ContractConfig) *Maker
NewMaker creates a new contract maker with the given configuration.
func (*Maker) CompileContract ¶
CompileContract compiles the given contract source code.
func (*Maker) ParseABI ¶
func (m *Maker) ParseABI(code []byte) (map[string]FunctionInfo, error)
ParseABI 解析合约代码获取函数信息
func (*Maker) ValidateContract ¶
ValidateContract checks if the smart contract code adheres to the restrictions and rules defined for the VM.
Click to show internal directories.
Click to hide internal directories.