nativere

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2019 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
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) DecodeMsg

func (z *DumpData) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (*DumpData) EncodeMsg

func (z *DumpData) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (*DumpData) MarshalMsg

func (z *DumpData) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*DumpData) Msgsize

func (z *DumpData) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*DumpData) UnmarshalMsg

func (z *DumpData) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

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

func (*NativeRe) Shutdown

func (self *NativeRe) Shutdown()

func (*NativeRe) Startup

func (self *NativeRe) Startup()

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

func (z *PoolData) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (*PoolData) EncodeMsg

func (z *PoolData) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (*PoolData) MarshalMsg

func (z *PoolData) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*PoolData) Msgsize

func (z *PoolData) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*PoolData) UnmarshalMsg

func (z *PoolData) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

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

type Runtime

type Runtime struct {
	// contains filtered or unexported fields
}

func (*Runtime) Exec

func (rt *Runtime) Exec(code []byte, param []byte, ttl time.Duration) time.Duration

Jump to

Keyboard shortcuts

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