1 Star 0 Fork 0

艾鸥科技 / go-aiou

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
vm.go 512 Bytes
一键复制 编辑 原始数据 按行查看 历史
张卓 提交于 2020-05-10 14:55 . init
package vm
import (
"gitee.com/aiou-official/go-aiou/core/contract"
"gitee.com/aiou-official/go-aiou/vm/host"
)
//go:generate mockgen -destination vm_mock.go -package vm gitee.com/aiou-official/go-aiou/vm VM
// VM ...
type VM interface {
Init() error
Validate(contract *contract.Contract) error
Compile(contract *contract.Contract) (string, error)
LoadAndCall(host *host.Host, contract *contract.Contract, api string, args ...interface{}) (rtn []interface{}, cost contract.Cost, err error)
Release()
}
1
https://gitee.com/aiou-official/go-aiou.git
git@gitee.com:aiou-official/go-aiou.git
aiou-official
go-aiou
go-aiou
376a44096468

搜索帮助