Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Program ¶
type Program struct { // the contract program code,which will be run on VM or specific environment Code []byte // the program code's parameter Parameter []byte }
func (*Program) Deserialize ¶
Deserialize the Program
type ProgramBuilder ¶
type ProgramBuilder struct {
// contains filtered or unexported fields
}
func NewProgramBuilder ¶
func NewProgramBuilder() *ProgramBuilder
func (*ProgramBuilder) AddCodes ¶
func (pb *ProgramBuilder) AddCodes(codes []byte)
func (*ProgramBuilder) AddOp ¶
func (pb *ProgramBuilder) AddOp(op vm.OpCode)
func (*ProgramBuilder) PushData ¶
func (pb *ProgramBuilder) PushData(data []byte)
func (*ProgramBuilder) PushNumber ¶
func (pb *ProgramBuilder) PushNumber(number *big.Int)
func (*ProgramBuilder) ToArray ¶
func (pb *ProgramBuilder) ToArray() []byte
Click to show internal directories.
Click to hide internal directories.