Documentation ¶
Index ¶
- Constants
- func NewNativeRe() interpreter.PluginImpl
- type DumpData
- type NativePara
- type NativeRe
- type PledgeData
- type PoolData
- type ProducerData
- func (z *ProducerData) DecodeMsg(dc *msgp.Reader) (err error)
- func (z *ProducerData) EncodeMsg(en *msgp.Writer) (err error)
- func (z *ProducerData) MarshalMsg(b []byte) (o []byte, err error)
- func (z *ProducerData) Msgsize() (s int)
- func (z *ProducerData) UnmarshalMsg(bts []byte) (o []byte, err error)
- type Runtime
Constants ¶
const ( DecaimasBase = uint64(100000000) PledgeLimit = uint64(10 * DecaimasBase) PooolLimit = uint64(5000 * DecaimasBase) ProducerLimit = uint64(500 * DecaimasBase) )
Variables ¶
This section is empty.
Functions ¶
func NewNativeRe ¶
func NewNativeRe() interpreter.PluginImpl
Types ¶
type DumpData ¶
type DumpData struct { Amount uint64 PledgeData *PledgeData PoolData *PoolData ProducerData *ProducerData }
func (*DumpData) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
type NativePara ¶
type NativePara struct { FuncName string `json:"func_name" msg:"funcName"` Args []string `json:"args" msg:"args"` }
func (*NativePara) DecodeMsg ¶
func (z *NativePara) DecodeMsg(dc *msgp.Reader) (err error)
DecodeMsg implements msgp.Decodable
func (*NativePara) EncodeMsg ¶
func (z *NativePara) EncodeMsg(en *msgp.Writer) (err error)
EncodeMsg implements msgp.Encodable
func (*NativePara) MarshalMsg ¶
func (z *NativePara) MarshalMsg(b []byte) (o []byte, err error)
MarshalMsg implements msgp.Marshaler
func (*NativePara) Msgsize ¶
func (z *NativePara) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*NativePara) UnmarshalMsg ¶
func (z *NativePara) UnmarshalMsg(bts []byte) (o []byte, err error)
UnmarshalMsg implements msgp.Unmarshaler
type NativeRe ¶
type NativeRe struct { }
func (*NativeRe) Generate ¶
func (self *NativeRe) Generate(ctx *actioncontext.Context) interpreter.Interpreter
func (*NativeRe) Initialize ¶
func (self *NativeRe) Initialize()
type PledgeData ¶
type PledgeData struct { //part1 pd value Parent types.Address Prev types.Address Next types.Address Amount uint64 }
func (*PledgeData) DecodeMsg ¶
func (z *PledgeData) DecodeMsg(dc *msgp.Reader) (err error)
DecodeMsg implements msgp.Decodable
func (*PledgeData) EncodeMsg ¶
func (z *PledgeData) EncodeMsg(en *msgp.Writer) (err error)
EncodeMsg implements msgp.Encodable
func (*PledgeData) MarshalMsg ¶
func (z *PledgeData) MarshalMsg(b []byte) (o []byte, err error)
MarshalMsg implements msgp.Marshaler
func (*PledgeData) Msgsize ¶
func (z *PledgeData) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*PledgeData) UnmarshalMsg ¶
func (z *PledgeData) UnmarshalMsg(bts []byte) (o []byte, err error)
UnmarshalMsg implements msgp.Unmarshaler
type PoolData ¶
type PoolData struct { //part1 pd value Producer types.Address Prev types.Address Next types.Address Amount uint64 ChildHead types.Address }
func (*PoolData) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
type ProducerData ¶
type ProducerData struct { //part1 pd value ChildHead types.Address Amount uint64 ProducerCert uint64 }
func (*ProducerData) DecodeMsg ¶
func (z *ProducerData) DecodeMsg(dc *msgp.Reader) (err error)
DecodeMsg implements msgp.Decodable
func (*ProducerData) EncodeMsg ¶
func (z *ProducerData) EncodeMsg(en *msgp.Writer) (err error)
EncodeMsg implements msgp.Encodable
func (*ProducerData) MarshalMsg ¶
func (z *ProducerData) MarshalMsg(b []byte) (o []byte, err error)
MarshalMsg implements msgp.Marshaler
func (*ProducerData) Msgsize ¶
func (z *ProducerData) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*ProducerData) UnmarshalMsg ¶
func (z *ProducerData) UnmarshalMsg(bts []byte) (o []byte, err error)
UnmarshalMsg implements msgp.Unmarshaler