deployer

package
v0.0.0-...-24e5678 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2023 License: LGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

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) OnReward

func (cont *DeployerContract) OnReward(cc *types.ContractContext, b *types.Block, CountMap map[common.Address]uint32) (map[common.Address]*amount.Amount, 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
}

func (*DeployerContractConstruction) ReadFrom

func (s *DeployerContractConstruction) ReadFrom(r io.Reader) (int64, error)

func (*DeployerContractConstruction) WriteTo

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL