Documentation ¶
Index ¶
- func Init()
- type Contract
- type ContractManager
- type Mint
- func (m *Mint) BeginBlock(data []byte) error
- func (m *Mint) CheckTx(data []byte) error
- func (m *Mint) Commit() []byte
- func (m *Mint) ContractCall() error
- func (m *Mint) ContractDeploy() error
- func (m *Mint) ContractQuery() error
- func (m *Mint) DeliverTx(data []byte) error
- func (m *Mint) EndBlock(data []byte) ([]types.Validator, error)
- func (m *Mint) GetState() *State
- func (m *Mint) InitChain(vals ...types.Validator) error
- func (m *Mint) UpdateValidators(vals ...types.Validator) error
- type State
- type Validator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Contract ¶
type Contract struct { Address []byte `json:"addr,omitempty"` Method string `json:"method,omitempty"` Data []byte `json:"data,omitempty"` ContractAddress []byte Code []byte Tx []byte // contains filtered or unexported fields }
func (*Contract) CallWithRet ¶
func (*Contract) CreateContractAddress ¶
type ContractManager ¶
type ContractManager struct {
// contains filtered or unexported fields
}
func (*ContractManager) Contract ¶
func (c *ContractManager) Contract(addr []byte) *lua.LState
type Mint ¶
type Mint struct {
// contains filtered or unexported fields
}
创建一个bussiness层
func (*Mint) ContractQuery ¶
type State ¶
Click to show internal directories.
Click to hide internal directories.