Documentation ¶
Index ¶
- Variables
- type DeployerContract
- func (cont *DeployerContract) Address() common.Address
- func (cont *DeployerContract) ContractInvoke(cc *types.ContractContext, method string, params []interface{}) (interface{}, error)
- func (cont *DeployerContract) Front() interface{}
- func (cont *DeployerContract) Init(addr common.Address, master common.Address)
- func (cont *DeployerContract) InitContract(cc *types.ContractContext, contract []byte, params []interface{}) error
- func (cont *DeployerContract) Master() common.Address
- func (cont *DeployerContract) Name() string
- func (cont *DeployerContract) OnCreate(cc *types.ContractContext, Args []byte) error
- func (cont *DeployerContract) OnReward(cc *types.ContractContext, b *types.Block, CountMap map[common.Address]uint32) (map[common.Address]*amount.Amount, error)
- func (cont *DeployerContract) SetOwner(cc *types.ContractContext, NewOwner common.Address) error
- func (cont *DeployerContract) Update(cc *types.ContractContext, EnginName string, EnginVersion uint32, ...) error
- type DeployerContractConstruction
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ENGIN_PREEMPTION_ENGIN_KEY = byte(0x01) ENGIN_PREEMPTION_CONTRACT_KEY = byte(0x02) )
Functions ¶
This section is empty.
Types ¶
type DeployerContract ¶
type DeployerContract struct {
// contains filtered or unexported fields
}
func (*DeployerContract) Address ¶
func (cont *DeployerContract) Address() common.Address
func (*DeployerContract) ContractInvoke ¶
func (cont *DeployerContract) ContractInvoke(cc *types.ContractContext, method string, params []interface{}) (interface{}, error)
func (*DeployerContract) Front ¶
func (cont *DeployerContract) Front() interface{}
func (*DeployerContract) Init ¶
func (cont *DeployerContract) Init(addr common.Address, master common.Address)
func (*DeployerContract) InitContract ¶
func (cont *DeployerContract) InitContract(cc *types.ContractContext, contract []byte, params []interface{}) error
func (*DeployerContract) Master ¶
func (cont *DeployerContract) Master() common.Address
func (*DeployerContract) Name ¶
func (cont *DeployerContract) Name() string
func (*DeployerContract) OnCreate ¶
func (cont *DeployerContract) OnCreate(cc *types.ContractContext, Args []byte) error
func (*DeployerContract) SetOwner ¶
func (cont *DeployerContract) SetOwner(cc *types.ContractContext, NewOwner common.Address) error
func (*DeployerContract) Update ¶
func (cont *DeployerContract) Update(cc *types.ContractContext, EnginName string, EnginVersion uint32, contract []byte) error
type DeployerContractConstruction ¶
type DeployerContractConstruction struct { EnginAddress common.Address EnginName string EnginVersion uint32 Binary []byte Owner common.Address Updateable bool }
Click to show internal directories.
Click to hide internal directories.