seal

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2022 License: GPL-3.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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) Descriptor() ([]byte, []int)

func (*Change) GetBlockNum added in v0.2.3

func (m *Change) GetBlockNum() uint64

func (*Change) GetId added in v0.2.0

func (m *Change) GetId() uint64

func (*Change) GetType added in v0.2.0

func (m *Change) GetType() string

func (*Change) ProtoMessage added in v0.2.0

func (*Change) ProtoMessage()

func (*Change) Reset added in v0.2.0

func (m *Change) Reset()

func (*Change) String added in v0.2.0

func (m *Change) String() string

func (*Change) XXX_DiscardUnknown added in v0.2.0

func (m *Change) XXX_DiscardUnknown()

func (*Change) XXX_Marshal added in v0.2.0

func (m *Change) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Change) XXX_Merge added in v0.2.0

func (m *Change) XXX_Merge(src proto.Message)

func (*Change) XXX_Size added in v0.2.0

func (m *Change) XXX_Size() int

func (*Change) XXX_Unmarshal added in v0.2.0

func (m *Change) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Govern) GetAmount added in v0.2.5

func (m *Govern) GetAmount() uint64

func (*Govern) GetOption added in v0.2.5

func (m *Govern) GetOption() uint32

func (*Govern) GetProposalId added in v0.2.5

func (m *Govern) GetProposalId() uint64

func (*Govern) ProtoMessage added in v0.2.5

func (*Govern) ProtoMessage()

func (*Govern) Reset added in v0.2.5

func (m *Govern) Reset()

func (*Govern) String added in v0.2.5

func (m *Govern) String() string

func (*Govern) XXX_DiscardUnknown added in v0.2.5

func (m *Govern) XXX_DiscardUnknown()

func (*Govern) XXX_Marshal added in v0.2.5

func (m *Govern) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Govern) XXX_Merge added in v0.2.5

func (m *Govern) XXX_Merge(src proto.Message)

func (*Govern) XXX_Size added in v0.2.5

func (m *Govern) XXX_Size() int

func (*Govern) XXX_Unmarshal added in v0.2.5

func (m *Govern) 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"`
	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 NewMsgLog

func NewMsgLog() *MsgLog

func (*MsgLog) Descriptor

func (*MsgLog) Descriptor() ([]byte, []int)

func (*MsgLog) GetCandidateAddr

func (m *MsgLog) GetCandidateAddr() string

func (*MsgLog) GetChanInfo

func (m *MsgLog) GetChanInfo() *ChannelInfo

func (*MsgLog) GetChange added in v0.2.0

func (m *MsgLog) GetChange() *Change

func (*MsgLog) GetDelegatorAddr

func (m *MsgLog) GetDelegatorAddr() string

func (*MsgLog) GetDeposit

func (m *MsgLog) GetDeposit() string

func (*MsgLog) GetError

func (m *MsgLog) GetError() []string

func (*MsgLog) GetEthAddress

func (m *MsgLog) GetEthAddress() string

func (*MsgLog) GetExecutionTimeMs

func (m *MsgLog) GetExecutionTimeMs() float64

func (*MsgLog) GetGovern added in v0.2.5

func (m *MsgLog) GetGovern() *Govern

func (*MsgLog) GetPenalty

func (m *MsgLog) GetPenalty() *Penalty

func (*MsgLog) GetPubKey

func (m *MsgLog) GetPubKey() string

func (*MsgLog) GetSender

func (m *MsgLog) GetSender() string

func (*MsgLog) GetTransactor

func (m *MsgLog) GetTransactor() []string

func (*MsgLog) GetType

func (m *MsgLog) GetType() string

func (*MsgLog) GetWarn

func (m *MsgLog) GetWarn() []string

func (*MsgLog) ProtoMessage

func (*MsgLog) ProtoMessage()

func (*MsgLog) Reset

func (m *MsgLog) Reset()

func (*MsgLog) String

func (m *MsgLog) String() string

func (*MsgLog) XXX_DiscardUnknown

func (m *MsgLog) XXX_DiscardUnknown()

func (*MsgLog) XXX_Marshal

func (m *MsgLog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgLog) XXX_Merge

func (m *MsgLog) XXX_Merge(src proto.Message)

func (*MsgLog) XXX_Size

func (m *MsgLog) XXX_Size() int

func (*MsgLog) XXX_Unmarshal

func (m *MsgLog) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Penalty) GetNonce

func (m *Penalty) GetNonce() uint64

func (*Penalty) GetReason

func (m *Penalty) GetReason() string

func (*Penalty) GetValidator

func (m *Penalty) GetValidator() string

func (*Penalty) ProtoMessage

func (*Penalty) ProtoMessage()

func (*Penalty) Reset

func (m *Penalty) Reset()

func (*Penalty) String

func (m *Penalty) String() string

func (*Penalty) XXX_DiscardUnknown

func (m *Penalty) XXX_DiscardUnknown()

func (*Penalty) XXX_Marshal

func (m *Penalty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Penalty) XXX_Merge

func (m *Penalty) XXX_Merge(src proto.Message)

func (*Penalty) XXX_Size

func (m *Penalty) XXX_Size() int

func (*Penalty) XXX_Unmarshal

func (m *Penalty) XXX_Unmarshal(b []byte) error

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

Jump to

Keyboard shortcuts

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