Documentation ¶
Overview ¶
Package types 管理插件相关的定义
Index ¶
- Constants
- Variables
- func InitExecutor(cfg *types.Chain33Config)
- func InitFork(cfg *types.Chain33Config)
- type CommitDelayTx
- func (*CommitDelayTx) Descriptor() ([]byte, []int)deprecated
- func (x *CommitDelayTx) GetDelayTx() string
- func (x *CommitDelayTx) GetRelativeDelayHeight() int64
- func (*CommitDelayTx) ProtoMessage()
- func (x *CommitDelayTx) ProtoReflect() protoreflect.Message
- func (x *CommitDelayTx) Reset()
- func (x *CommitDelayTx) String() string
- type CommitDelayTxLog
- func (*CommitDelayTxLog) Descriptor() ([]byte, []int)deprecated
- func (x *CommitDelayTxLog) GetDelayBeginHeight() int64
- func (x *CommitDelayTxLog) GetDelayTxHash() string
- func (x *CommitDelayTxLog) GetSubmitter() string
- func (*CommitDelayTxLog) ProtoMessage()
- func (x *CommitDelayTxLog) ProtoReflect() protoreflect.Message
- func (x *CommitDelayTxLog) Reset()
- func (x *CommitDelayTxLog) String() string
- type NoneAction
- func (*NoneAction) Descriptor() ([]byte, []int)deprecated
- func (x *NoneAction) GetCommitDelayTx() *CommitDelayTx
- func (x *NoneAction) GetTy() int32
- func (m *NoneAction) GetValue() isNoneAction_Value
- func (*NoneAction) ProtoMessage()
- func (x *NoneAction) ProtoReflect() protoreflect.Message
- func (x *NoneAction) Reset()
- func (x *NoneAction) String() string
- type NoneAction_CommitDelayTx
- type NoneType
Constants ¶
View Source
const ( // TyCommitDelayTxAction commit delay transaction action id TyCommitDelayTxAction = iota + 101 // UnknownActionName unknown action name UnknownActionName = "UnknownNoneActionName" // NameCommitDelayTxAction commit delay transaction action name NameCommitDelayTxAction = "CommitDelayTx" )
action类型id和name,这些常量可以自定义修改
View Source
const ( // TyCommitDelayTxLog commit delay transaction log id TyCommitDelayTxLog = iota + 100 // NameCommitDelayTxLog commit delay transaction log name NameCommitDelayTxLog = "CommitDelayTxLog" )
log类型id值
View Source
const (
// QueryGetDelayBegin query func name
QueryGetDelayBegin = "GetDelayBeginHeight"
)
query func name
Variables ¶
View Source
var File_none_proto protoreflect.FileDescriptor
View Source
var (
// NoneX driver name
NoneX = "none"
)
Functions ¶
Types ¶
type CommitDelayTx ¶
type CommitDelayTx struct { DelayTx string `protobuf:"bytes,1,opt,name=delayTx,proto3" json:"delayTx,omitempty"` //延时交易, 16进制格式 RelativeDelayHeight int64 `protobuf:"varint,2,opt,name=relativeDelayHeight,proto3" json:"relativeDelayHeight,omitempty"` //相对延时时长,相对区块高度 // contains filtered or unexported fields }
提交延时交易类型
func (*CommitDelayTx) Descriptor
deprecated
func (*CommitDelayTx) Descriptor() ([]byte, []int)
Deprecated: Use CommitDelayTx.ProtoReflect.Descriptor instead.
func (*CommitDelayTx) GetDelayTx ¶
func (x *CommitDelayTx) GetDelayTx() string
func (*CommitDelayTx) GetRelativeDelayHeight ¶
func (x *CommitDelayTx) GetRelativeDelayHeight() int64
func (*CommitDelayTx) ProtoMessage ¶
func (*CommitDelayTx) ProtoMessage()
func (*CommitDelayTx) ProtoReflect ¶
func (x *CommitDelayTx) ProtoReflect() protoreflect.Message
func (*CommitDelayTx) Reset ¶
func (x *CommitDelayTx) Reset()
func (*CommitDelayTx) String ¶
func (x *CommitDelayTx) String() string
type CommitDelayTxLog ¶
type CommitDelayTxLog struct { Submitter string `protobuf:"bytes,1,opt,name=submitter,proto3" json:"submitter,omitempty"` // 提交者 DelayTxHash string `protobuf:"bytes,2,opt,name=delayTxHash,proto3" json:"delayTxHash,omitempty"` // 延时交易哈希 DelayBeginHeight int64 `protobuf:"varint,3,opt,name=delayBeginHeight,proto3" json:"delayBeginHeight,omitempty"` // 延时开始区块高度 // contains filtered or unexported fields }
提交延时交易回执
func (*CommitDelayTxLog) Descriptor
deprecated
func (*CommitDelayTxLog) Descriptor() ([]byte, []int)
Deprecated: Use CommitDelayTxLog.ProtoReflect.Descriptor instead.
func (*CommitDelayTxLog) GetDelayBeginHeight ¶
func (x *CommitDelayTxLog) GetDelayBeginHeight() int64
func (*CommitDelayTxLog) GetDelayTxHash ¶
func (x *CommitDelayTxLog) GetDelayTxHash() string
func (*CommitDelayTxLog) GetSubmitter ¶
func (x *CommitDelayTxLog) GetSubmitter() string
func (*CommitDelayTxLog) ProtoMessage ¶
func (*CommitDelayTxLog) ProtoMessage()
func (*CommitDelayTxLog) ProtoReflect ¶
func (x *CommitDelayTxLog) ProtoReflect() protoreflect.Message
func (*CommitDelayTxLog) Reset ¶
func (x *CommitDelayTxLog) Reset()
func (*CommitDelayTxLog) String ¶
func (x *CommitDelayTxLog) String() string
type NoneAction ¶
type NoneAction struct { // Types that are assignable to Value: // *NoneAction_CommitDelayTx Value isNoneAction_Value `protobuf_oneof:"value"` Ty int32 `protobuf:"varint,2,opt,name=Ty,proto3" json:"Ty,omitempty"` // contains filtered or unexported fields }
func (*NoneAction) Descriptor
deprecated
func (*NoneAction) Descriptor() ([]byte, []int)
Deprecated: Use NoneAction.ProtoReflect.Descriptor instead.
func (*NoneAction) GetCommitDelayTx ¶
func (x *NoneAction) GetCommitDelayTx() *CommitDelayTx
func (*NoneAction) GetTy ¶
func (x *NoneAction) GetTy() int32
func (*NoneAction) GetValue ¶
func (m *NoneAction) GetValue() isNoneAction_Value
func (*NoneAction) ProtoMessage ¶
func (*NoneAction) ProtoMessage()
func (*NoneAction) ProtoReflect ¶
func (x *NoneAction) ProtoReflect() protoreflect.Message
func (*NoneAction) Reset ¶
func (x *NoneAction) Reset()
func (*NoneAction) String ¶
func (x *NoneAction) String() string
type NoneAction_CommitDelayTx ¶
type NoneAction_CommitDelayTx struct {
CommitDelayTx *CommitDelayTx `protobuf:"bytes,1,opt,name=commitDelayTx,proto3,oneof"`
}
type NoneType ¶
type NoneType struct {
types.ExecTypeBase
}
NoneType defines NoneType
func (NoneType) ActionName ¶
func (n NoneType) ActionName(tx *types.Transaction) string
ActionName return action a string name
func (*NoneType) GetPayload ¶
GetPayload return manageaction
func (NoneType) GetTypeMap ¶
GetTypeMap return typename of actionname
Click to show internal directories.
Click to hide internal directories.