Documentation ¶
Index ¶
- func CommitMsgLog(entry *MsgLog)
- func CommitTransactorLog(entry *TransactorLog)
- type Change
- func (*Change) Descriptor() ([]byte, []int)
- func (m *Change) GetBlockNum() uint64
- func (m *Change) GetId() uint64
- func (m *Change) GetType() string
- func (*Change) ProtoMessage()
- func (m *Change) Reset()
- func (m *Change) String() string
- func (m *Change) XXX_DiscardUnknown()
- func (m *Change) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Change) XXX_Merge(src proto.Message)
- func (m *Change) XXX_Size() int
- func (m *Change) XXX_Unmarshal(b []byte) error
- type ChannelInfo
- func (*ChannelInfo) Descriptor() ([]byte, []int)
- func (m *ChannelInfo) GetChanId() string
- func (m *ChannelInfo) GetGuardBlknum() uint64
- func (m *ChannelInfo) GetGuardIndex() uint32
- func (m *ChannelInfo) GetGuardTxHash() string
- func (m *ChannelInfo) GetGuards() []string
- func (m *ChannelInfo) GetPeerFrom() string
- func (m *ChannelInfo) GetSeqNum() uint64
- func (m *ChannelInfo) GetTriggerBlknum() uint64
- func (m *ChannelInfo) GetTriggerTxHash() string
- func (*ChannelInfo) ProtoMessage()
- func (m *ChannelInfo) Reset()
- func (m *ChannelInfo) String() string
- func (m *ChannelInfo) XXX_DiscardUnknown()
- func (m *ChannelInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChannelInfo) XXX_Merge(src proto.Message)
- func (m *ChannelInfo) XXX_Size() int
- func (m *ChannelInfo) XXX_Unmarshal(b []byte) error
- type MsgLog
- func (*MsgLog) Descriptor() ([]byte, []int)
- func (m *MsgLog) GetCandidateAddr() string
- func (m *MsgLog) GetChanInfo() *ChannelInfo
- func (m *MsgLog) GetChange() *Change
- func (m *MsgLog) GetDelegatorAddr() string
- func (m *MsgLog) GetDeposit() string
- func (m *MsgLog) GetError() []string
- func (m *MsgLog) GetEthAddress() string
- func (m *MsgLog) GetExecutionTimeMs() float64
- func (m *MsgLog) GetPenalty() *Penalty
- func (m *MsgLog) GetPubKey() string
- func (m *MsgLog) GetSender() string
- func (m *MsgLog) GetTransactor() []string
- func (m *MsgLog) GetType() string
- func (m *MsgLog) GetWarn() []string
- func (*MsgLog) ProtoMessage()
- func (m *MsgLog) Reset()
- func (m *MsgLog) String() string
- func (m *MsgLog) XXX_DiscardUnknown()
- func (m *MsgLog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgLog) XXX_Merge(src proto.Message)
- func (m *MsgLog) XXX_Size() int
- func (m *MsgLog) XXX_Unmarshal(b []byte) error
- type Penalty
- func (*Penalty) Descriptor() ([]byte, []int)
- func (m *Penalty) GetNonce() uint64
- func (m *Penalty) GetReason() string
- func (m *Penalty) GetValidator() string
- func (*Penalty) ProtoMessage()
- func (m *Penalty) Reset()
- func (m *Penalty) String() string
- func (m *Penalty) XXX_DiscardUnknown()
- func (m *Penalty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Penalty) XXX_Merge(src proto.Message)
- func (m *Penalty) XXX_Size() int
- func (m *Penalty) XXX_Unmarshal(b []byte) error
- type TransactorLog
- func (*TransactorLog) Descriptor() ([]byte, []int)
- func (m *TransactorLog) GetError() []string
- func (m *TransactorLog) GetExecutionTimeMs() float64
- func (m *TransactorLog) GetMsgNum() uint32
- func (m *TransactorLog) GetMsgType() map[string]uint32
- func (m *TransactorLog) GetSender() string
- func (m *TransactorLog) GetTxHash() string
- func (*TransactorLog) ProtoMessage()
- func (m *TransactorLog) Reset()
- func (m *TransactorLog) String() string
- func (m *TransactorLog) XXX_DiscardUnknown()
- func (m *TransactorLog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TransactorLog) XXX_Merge(src proto.Message)
- func (m *TransactorLog) XXX_Size() int
- func (m *TransactorLog) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommitMsgLog ¶
func CommitMsgLog(entry *MsgLog)
func CommitTransactorLog ¶
func CommitTransactorLog(entry *TransactorLog)
Types ¶
type Change ¶ added in v0.2.0
type Change struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` BlockNum uint64 `protobuf:"varint,9,opt,name=block_num,json=blockNum,proto3" json:"block_num,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Change) Descriptor ¶ added in v0.2.0
func (*Change) GetBlockNum ¶ added in v0.2.3
func (*Change) ProtoMessage ¶ added in v0.2.0
func (*Change) ProtoMessage()
func (*Change) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *Change) XXX_DiscardUnknown()
func (*Change) XXX_Marshal ¶ added in v0.2.0
func (*Change) XXX_Unmarshal ¶ added in v0.2.0
type ChannelInfo ¶
type ChannelInfo struct { ChanId string `protobuf:"bytes,1,opt,name=chan_id,json=chanId,proto3" json:"chan_id,omitempty"` PeerFrom string `protobuf:"bytes,2,opt,name=peer_from,json=peerFrom,proto3" json:"peer_from,omitempty"` SeqNum uint64 `protobuf:"varint,3,opt,name=seq_num,json=seqNum,proto3" json:"seq_num,omitempty"` TriggerTxHash string `protobuf:"bytes,4,opt,name=trigger_tx_hash,json=triggerTxHash,proto3" json:"trigger_tx_hash,omitempty"` GuardTxHash string `protobuf:"bytes,5,opt,name=guard_tx_hash,json=guardTxHash,proto3" json:"guard_tx_hash,omitempty"` Guards []string `protobuf:"bytes,6,rep,name=guards,proto3" json:"guards,omitempty"` GuardIndex uint32 `protobuf:"varint,7,opt,name=guard_index,json=guardIndex,proto3" json:"guard_index,omitempty"` TriggerBlknum uint64 `protobuf:"varint,8,opt,name=trigger_blknum,json=triggerBlknum,proto3" json:"trigger_blknum,omitempty"` GuardBlknum uint64 `protobuf:"varint,9,opt,name=guard_blknum,json=guardBlknum,proto3" json:"guard_blknum,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ChannelInfo) Descriptor ¶
func (*ChannelInfo) Descriptor() ([]byte, []int)
func (*ChannelInfo) GetChanId ¶
func (m *ChannelInfo) GetChanId() string
func (*ChannelInfo) GetGuardBlknum ¶
func (m *ChannelInfo) GetGuardBlknum() uint64
func (*ChannelInfo) GetGuardIndex ¶
func (m *ChannelInfo) GetGuardIndex() uint32
func (*ChannelInfo) GetGuardTxHash ¶
func (m *ChannelInfo) GetGuardTxHash() string
func (*ChannelInfo) GetGuards ¶
func (m *ChannelInfo) GetGuards() []string
func (*ChannelInfo) GetPeerFrom ¶
func (m *ChannelInfo) GetPeerFrom() string
func (*ChannelInfo) GetSeqNum ¶
func (m *ChannelInfo) GetSeqNum() uint64
func (*ChannelInfo) GetTriggerBlknum ¶
func (m *ChannelInfo) GetTriggerBlknum() uint64
func (*ChannelInfo) GetTriggerTxHash ¶
func (m *ChannelInfo) GetTriggerTxHash() string
func (*ChannelInfo) ProtoMessage ¶
func (*ChannelInfo) ProtoMessage()
func (*ChannelInfo) Reset ¶
func (m *ChannelInfo) Reset()
func (*ChannelInfo) String ¶
func (m *ChannelInfo) String() string
func (*ChannelInfo) XXX_DiscardUnknown ¶
func (m *ChannelInfo) XXX_DiscardUnknown()
func (*ChannelInfo) XXX_Marshal ¶
func (m *ChannelInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChannelInfo) XXX_Merge ¶
func (m *ChannelInfo) XXX_Merge(src proto.Message)
func (*ChannelInfo) XXX_Size ¶
func (m *ChannelInfo) XXX_Size() int
func (*ChannelInfo) XXX_Unmarshal ¶
func (m *ChannelInfo) XXX_Unmarshal(b []byte) error
type MsgLog ¶
type MsgLog struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` EthAddress string `protobuf:"bytes,2,opt,name=eth_address,json=ethAddress,proto3" json:"eth_address,omitempty"` PubKey string `protobuf:"bytes,3,opt,name=pub_key,json=pubKey,proto3" json:"pub_key,omitempty"` Transactor []string `protobuf:"bytes,4,rep,name=transactor,proto3" json:"transactor,omitempty"` CandidateAddr string `protobuf:"bytes,5,opt,name=candidate_addr,json=candidateAddr,proto3" json:"candidate_addr,omitempty"` DelegatorAddr string `protobuf:"bytes,6,opt,name=delegator_addr,json=delegatorAddr,proto3" json:"delegator_addr,omitempty"` ChanInfo *ChannelInfo `protobuf:"bytes,7,opt,name=chan_info,json=chanInfo,proto3" json:"chan_info,omitempty"` Penalty *Penalty `protobuf:"bytes,8,opt,name=penalty,proto3" json:"penalty,omitempty"` Deposit string `protobuf:"bytes,9,opt,name=deposit,proto3" json:"deposit,omitempty"` Change *Change `protobuf:"bytes,10,opt,name=change,proto3" json:"change,omitempty"` Sender string `protobuf:"bytes,99,opt,name=sender,proto3" json:"sender,omitempty"` ExecutionTimeMs float64 `protobuf:"fixed64,100,opt,name=execution_time_ms,json=executionTimeMs,proto3" json:"execution_time_ms,omitempty"` Error []string `protobuf:"bytes,101,rep,name=error,proto3" json:"error,omitempty"` Warn []string `protobuf:"bytes,102,rep,name=warn,proto3" json:"warn,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MsgLog) Descriptor ¶
func (*MsgLog) GetCandidateAddr ¶
func (*MsgLog) GetChanInfo ¶
func (m *MsgLog) GetChanInfo() *ChannelInfo
func (*MsgLog) GetDelegatorAddr ¶
func (*MsgLog) GetDeposit ¶
func (*MsgLog) GetEthAddress ¶
func (*MsgLog) GetExecutionTimeMs ¶
func (*MsgLog) GetPenalty ¶
func (*MsgLog) GetTransactor ¶
func (*MsgLog) ProtoMessage ¶
func (*MsgLog) ProtoMessage()
func (*MsgLog) XXX_DiscardUnknown ¶
func (m *MsgLog) XXX_DiscardUnknown()
func (*MsgLog) XXX_Marshal ¶
func (*MsgLog) XXX_Unmarshal ¶
type Penalty ¶
type Penalty struct { Nonce uint64 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"` Validator string `protobuf:"bytes,2,opt,name=validator,proto3" json:"validator,omitempty"` Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Penalty) Descriptor ¶
func (*Penalty) GetValidator ¶
func (*Penalty) ProtoMessage ¶
func (*Penalty) ProtoMessage()
func (*Penalty) XXX_DiscardUnknown ¶
func (m *Penalty) XXX_DiscardUnknown()
func (*Penalty) XXX_Marshal ¶
func (*Penalty) XXX_Unmarshal ¶
type TransactorLog ¶
type TransactorLog struct { MsgNum uint32 `protobuf:"varint,1,opt,name=msg_num,json=msgNum,proto3" json:"msg_num,omitempty"` MsgType map[string]uint32 `` /* 171-byte string literal not displayed */ Sender string `protobuf:"bytes,3,opt,name=sender,proto3" json:"sender,omitempty"` TxHash string `protobuf:"bytes,4,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"` ExecutionTimeMs float64 `protobuf:"fixed64,100,opt,name=execution_time_ms,json=executionTimeMs,proto3" json:"execution_time_ms,omitempty"` Error []string `protobuf:"bytes,101,rep,name=error,proto3" json:"error,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func NewTransactorLog ¶
func NewTransactorLog(sender string) *TransactorLog
func (*TransactorLog) Descriptor ¶
func (*TransactorLog) Descriptor() ([]byte, []int)
func (*TransactorLog) GetError ¶
func (m *TransactorLog) GetError() []string
func (*TransactorLog) GetExecutionTimeMs ¶
func (m *TransactorLog) GetExecutionTimeMs() float64
func (*TransactorLog) GetMsgNum ¶
func (m *TransactorLog) GetMsgNum() uint32
func (*TransactorLog) GetMsgType ¶
func (m *TransactorLog) GetMsgType() map[string]uint32
func (*TransactorLog) GetSender ¶
func (m *TransactorLog) GetSender() string
func (*TransactorLog) GetTxHash ¶
func (m *TransactorLog) GetTxHash() string
func (*TransactorLog) ProtoMessage ¶
func (*TransactorLog) ProtoMessage()
func (*TransactorLog) Reset ¶
func (m *TransactorLog) Reset()
func (*TransactorLog) String ¶
func (m *TransactorLog) String() string
func (*TransactorLog) XXX_DiscardUnknown ¶
func (m *TransactorLog) XXX_DiscardUnknown()
func (*TransactorLog) XXX_Marshal ¶
func (m *TransactorLog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TransactorLog) XXX_Merge ¶
func (m *TransactorLog) XXX_Merge(src proto.Message)
func (*TransactorLog) XXX_Size ¶
func (m *TransactorLog) XXX_Size() int
func (*TransactorLog) XXX_Unmarshal ¶
func (m *TransactorLog) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.