Documentation ¶
Index ¶
- Variables
- 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 Govern
- func (*Govern) Descriptor() ([]byte, []int)
- func (m *Govern) GetAmount() uint64
- func (m *Govern) GetOption() uint32
- func (m *Govern) GetProposalId() uint64
- func (*Govern) ProtoMessage()
- func (m *Govern) Reset()
- func (m *Govern) String() string
- func (m *Govern) XXX_DiscardUnknown()
- func (m *Govern) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Govern) XXX_Merge(src proto.Message)
- func (m *Govern) XXX_Size() int
- func (m *Govern) 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) GetGovern() *Govern
- 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) GetGasUsed() int64
- func (m *TransactorLog) GetGasWanted() int64
- func (m *TransactorLog) GetMsgNum() uint32
- func (m *TransactorLog) GetMsgType() map[string]uint32
- func (m *TransactorLog) GetMsgsId() uint32
- func (m *TransactorLog) GetSender() string
- func (m *TransactorLog) GetStartTimestamp() int64
- func (m *TransactorLog) GetStatus() TxMsgStatus
- func (m *TransactorLog) GetTxHash() string
- func (m *TransactorLog) GetWarn() []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
- type TxMsgStatus
Constants ¶
This section is empty.
Variables ¶
View Source
var TxMsgStatus_name = map[int32]string{
0: "NULL",
1: "SENT",
2: "SUCCEED",
3: "FAILED",
}
View Source
var TxMsgStatus_value = map[string]int32{
"NULL": 0,
"SENT": 1,
"SUCCEED": 2,
"FAILED": 3,
}
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 Govern ¶ added in v0.2.5
type Govern struct { ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"` Amount uint64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` Option uint32 `protobuf:"varint,3,opt,name=option,proto3" json:"option,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Govern) Descriptor ¶ added in v0.2.5
func (*Govern) GetProposalId ¶ added in v0.2.5
func (*Govern) ProtoMessage ¶ added in v0.2.5
func (*Govern) ProtoMessage()
func (*Govern) XXX_DiscardUnknown ¶ added in v0.2.5
func (m *Govern) XXX_DiscardUnknown()
func (*Govern) XXX_Marshal ¶ added in v0.2.5
func (*Govern) XXX_Unmarshal ¶ added in v0.2.5
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"` Govern *Govern `protobuf:"bytes,11,opt,name=govern,proto3" json:"govern,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"` MsgsId uint32 `protobuf:"varint,5,opt,name=msgs_id,json=msgsId,proto3" json:"msgs_id,omitempty"` Status TxMsgStatus `protobuf:"varint,6,opt,name=status,proto3,enum=seal.TxMsgStatus" json:"status,omitempty"` GasWanted int64 `protobuf:"varint,7,opt,name=gas_wanted,json=gasWanted,proto3" json:"gas_wanted,omitempty"` GasUsed int64 `protobuf:"varint,8,opt,name=gas_used,json=gasUsed,proto3" json:"gas_used,omitempty"` StartTimestamp int64 `protobuf:"varint,99,opt,name=start_timestamp,json=startTimestamp,proto3" json:"start_timestamp,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 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) GetGasUsed ¶ added in v0.2.5
func (m *TransactorLog) GetGasUsed() int64
func (*TransactorLog) GetGasWanted ¶ added in v0.2.5
func (m *TransactorLog) GetGasWanted() int64
func (*TransactorLog) GetMsgNum ¶
func (m *TransactorLog) GetMsgNum() uint32
func (*TransactorLog) GetMsgType ¶
func (m *TransactorLog) GetMsgType() map[string]uint32
func (*TransactorLog) GetMsgsId ¶ added in v0.2.5
func (m *TransactorLog) GetMsgsId() uint32
func (*TransactorLog) GetSender ¶
func (m *TransactorLog) GetSender() string
func (*TransactorLog) GetStartTimestamp ¶ added in v0.2.5
func (m *TransactorLog) GetStartTimestamp() int64
func (*TransactorLog) GetStatus ¶ added in v0.2.5
func (m *TransactorLog) GetStatus() TxMsgStatus
func (*TransactorLog) GetTxHash ¶
func (m *TransactorLog) GetTxHash() string
func (*TransactorLog) GetWarn ¶ added in v0.2.5
func (m *TransactorLog) GetWarn() []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
type TxMsgStatus ¶ added in v0.2.5
type TxMsgStatus int32
const ( TxMsgStatus_NULL TxMsgStatus = 0 TxMsgStatus_SENT TxMsgStatus = 1 TxMsgStatus_SUCCEED TxMsgStatus = 2 TxMsgStatus_FAILED TxMsgStatus = 3 )
func (TxMsgStatus) EnumDescriptor ¶ added in v0.2.5
func (TxMsgStatus) EnumDescriptor() ([]byte, []int)
func (TxMsgStatus) String ¶ added in v0.2.5
func (x TxMsgStatus) String() string
Click to show internal directories.
Click to hide internal directories.