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 envrionment Code []byte //the program code's parameter Parameter []byte }
func (*Program) Deserialize ¶
Deserialize the Program
func (*Program) MarshalJson ¶
func (*Program) UnmarshalJson ¶
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
type ProgramInfo ¶
Click to show internal directories.
Click to hide internal directories.