types

package
v1.65.3 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2021 License: BSD-3-Clause Imports: 15 Imported by: 17

Documentation

Index

Constants

View Source
const (
	UnfreezeActionCreate = iota + 1
	UnfreezeActionWithdraw
	UnfreezeActionTerminate

	//log for unfreeze
	TyLogCreateUnfreeze    = 2001 // TODO 修改具体编号
	TyLogWithdrawUnfreeze  = 2002
	TyLogTerminateUnfreeze = 2003
)

unfreeze action ty

View Source
const (
	// Action_CreateUnfreeze Action 名字
	Action_CreateUnfreeze = "createUnfreeze"
	// Action_WithdrawUnfreeze Action 名字
	Action_WithdrawUnfreeze = "withdrawUnfreeze"
	// Action_TerminateUnfreeze Action 名字
	Action_TerminateUnfreeze = "terminateUnfreeze"
)
View Source
const (
	// FuncName_QueryUnfreezeWithdraw 查询方法名
	FuncName_QueryUnfreezeWithdraw = "QueryUnfreezeWithdraw"
)

Variables

View Source
var (
	PackageName    = "chain33.unfreeze"
	RPCName        = "Chain33.Unfreeze"
	UnfreezeX      = "unfreeze"
	ExecerUnfreeze = []byte(UnfreezeX)

	FixAmountX      = "FixAmount"
	LeftProportionX = "LeftProportion"
	SupportMeans    = []string{"FixAmount", "LeftProportion"}

	ForkTerminatePartX = "ForkTerminatePart"
	ForkUnfreezeIDX    = "ForkUnfreezeIDX"
)

包的名字可以通过配置文件来配置 建议用github的组织名称,或者用户名字开头, 再加上自己的插件的名字 如果发生重名,可以通过配置文件修改这些名字

View Source
var (
	// ErrUnfreezeEmptied 没有可提币量
	ErrUnfreezeEmptied = errors.New("ErrUnfreezeEmptied")
	// ErrUnfreezeMeans 解冻币算法错误
	ErrUnfreezeMeans = errors.New("ErrUnfreezeMeans")
	// ErrUnfreezeID 冻结合约ID错误
	ErrUnfreezeID = errors.New("ErrUnfreezeID")
	// ErrNoPrivilege 没有权限
	ErrNoPrivilege = errors.New("ErrNoPrivilege")
	// ErrTerminated 已经被取消过了
	ErrTerminated = errors.New("ErrTerminated")
)
View Source
var File_unfreeze_proto protoreflect.FileDescriptor

Functions

func CreateUnfreezeCreateTx

func CreateUnfreezeCreateTx(cfg *types.Chain33Config, title string, parm *UnfreezeCreate) (*types.Transaction, error)

CreateUnfreezeCreateTx 创建冻结合约交易

func CreateUnfreezeTerminateTx

func CreateUnfreezeTerminateTx(cfg *types.Chain33Config, title string, parm *UnfreezeTerminate) (*types.Transaction, error)

CreateUnfreezeTerminateTx 创建终止冻结合约

func CreateUnfreezeWithdrawTx

func CreateUnfreezeWithdrawTx(cfg *types.Chain33Config, title string, parm *UnfreezeWithdraw) (*types.Transaction, error)

CreateUnfreezeWithdrawTx 创建提币交易

func InitExecutor

func InitExecutor(cfg *types.Chain33Config)

InitExecutor ...

func InitFork

func InitFork(cfg *types.Chain33Config)

InitFork ...

func RegisterUnfreezeServer

func RegisterUnfreezeServer(s *grpc.Server, srv UnfreezeServer)

Types

type FixAmount

type FixAmount struct {
	Period int64 `protobuf:"varint,1,opt,name=period,proto3" json:"period,omitempty"`
	Amount int64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

按时间固定额度解冻

func (*FixAmount) Descriptor deprecated

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

Deprecated: Use FixAmount.ProtoReflect.Descriptor instead.

func (*FixAmount) GetAmount

func (x *FixAmount) GetAmount() int64

func (*FixAmount) GetPeriod

func (x *FixAmount) GetPeriod() int64

func (*FixAmount) ProtoMessage

func (*FixAmount) ProtoMessage()

func (*FixAmount) ProtoReflect added in v1.65.3

func (x *FixAmount) ProtoReflect() protoreflect.Message

func (*FixAmount) Reset

func (x *FixAmount) Reset()

func (*FixAmount) String

func (x *FixAmount) String() string

type LeftProportion

type LeftProportion struct {
	Period        int64 `protobuf:"varint,1,opt,name=period,proto3" json:"period,omitempty"`
	TenThousandth int64 `protobuf:"varint,2,opt,name=tenThousandth,proto3" json:"tenThousandth,omitempty"`
	// contains filtered or unexported fields
}

固定时间间隔按余量百分比解冻

func (*LeftProportion) Descriptor deprecated

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

Deprecated: Use LeftProportion.ProtoReflect.Descriptor instead.

func (*LeftProportion) GetPeriod

func (x *LeftProportion) GetPeriod() int64

func (*LeftProportion) GetTenThousandth

func (x *LeftProportion) GetTenThousandth() int64

func (*LeftProportion) ProtoMessage

func (*LeftProportion) ProtoMessage()

func (*LeftProportion) ProtoReflect added in v1.65.3

func (x *LeftProportion) ProtoReflect() protoreflect.Message

func (*LeftProportion) Reset

func (x *LeftProportion) Reset()

func (*LeftProportion) String

func (x *LeftProportion) String() string

type LocalUnfreeze

type LocalUnfreeze struct {
	Unfreeze *Unfreeze `protobuf:"bytes,1,opt,name=unfreeze,proto3" json:"unfreeze,omitempty"`
	TxIndex  string    `protobuf:"bytes,2,opt,name=txIndex,proto3" json:"txIndex,omitempty"`
	// contains filtered or unexported fields
}

func (*LocalUnfreeze) Descriptor deprecated

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

Deprecated: Use LocalUnfreeze.ProtoReflect.Descriptor instead.

func (*LocalUnfreeze) GetTxIndex

func (x *LocalUnfreeze) GetTxIndex() string

func (*LocalUnfreeze) GetUnfreeze

func (x *LocalUnfreeze) GetUnfreeze() *Unfreeze

func (*LocalUnfreeze) ProtoMessage

func (*LocalUnfreeze) ProtoMessage()

func (*LocalUnfreeze) ProtoReflect added in v1.65.3

func (x *LocalUnfreeze) ProtoReflect() protoreflect.Message

func (*LocalUnfreeze) Reset

func (x *LocalUnfreeze) Reset()

func (*LocalUnfreeze) String

func (x *LocalUnfreeze) String() string

type ReceiptUnfreeze

type ReceiptUnfreeze struct {
	Prev    *Unfreeze `protobuf:"bytes,1,opt,name=prev,proto3" json:"prev,omitempty"`
	Current *Unfreeze `protobuf:"bytes,2,opt,name=current,proto3" json:"current,omitempty"`
	// contains filtered or unexported fields
}

receipt

func (*ReceiptUnfreeze) Descriptor deprecated

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

Deprecated: Use ReceiptUnfreeze.ProtoReflect.Descriptor instead.

func (*ReceiptUnfreeze) GetCurrent

func (x *ReceiptUnfreeze) GetCurrent() *Unfreeze

func (*ReceiptUnfreeze) GetPrev

func (x *ReceiptUnfreeze) GetPrev() *Unfreeze

func (*ReceiptUnfreeze) ProtoMessage

func (*ReceiptUnfreeze) ProtoMessage()

func (*ReceiptUnfreeze) ProtoReflect added in v1.65.3

func (x *ReceiptUnfreeze) ProtoReflect() protoreflect.Message

func (*ReceiptUnfreeze) Reset

func (x *ReceiptUnfreeze) Reset()

func (*ReceiptUnfreeze) String

func (x *ReceiptUnfreeze) String() string

type ReplyQueryUnfreezeWithdraw

type ReplyQueryUnfreezeWithdraw struct {
	UnfreezeID      string `protobuf:"bytes,1,opt,name=unfreezeID,proto3" json:"unfreezeID,omitempty"`
	AvailableAmount int64  `protobuf:"varint,2,opt,name=availableAmount,proto3" json:"availableAmount,omitempty"`
	// contains filtered or unexported fields
}

query

func (*ReplyQueryUnfreezeWithdraw) Descriptor deprecated

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

Deprecated: Use ReplyQueryUnfreezeWithdraw.ProtoReflect.Descriptor instead.

func (*ReplyQueryUnfreezeWithdraw) GetAvailableAmount

func (x *ReplyQueryUnfreezeWithdraw) GetAvailableAmount() int64

func (*ReplyQueryUnfreezeWithdraw) GetUnfreezeID

func (x *ReplyQueryUnfreezeWithdraw) GetUnfreezeID() string

func (*ReplyQueryUnfreezeWithdraw) ProtoMessage

func (*ReplyQueryUnfreezeWithdraw) ProtoMessage()

func (*ReplyQueryUnfreezeWithdraw) ProtoReflect added in v1.65.3

func (*ReplyQueryUnfreezeWithdraw) Reset

func (x *ReplyQueryUnfreezeWithdraw) Reset()

func (*ReplyQueryUnfreezeWithdraw) String

func (x *ReplyQueryUnfreezeWithdraw) String() string

type ReplyUnfreeze

type ReplyUnfreeze struct {

	//解冻交易ID(唯一识别码)
	UnfreezeID string `protobuf:"bytes,1,opt,name=unfreezeID,proto3" json:"unfreezeID,omitempty"`
	//开始时间
	StartTime int64 `protobuf:"varint,2,opt,name=startTime,proto3" json:"startTime,omitempty"`
	//币种
	AssetExec   string `protobuf:"bytes,3,opt,name=assetExec,proto3" json:"assetExec,omitempty"`
	AssetSymbol string `protobuf:"bytes,4,opt,name=assetSymbol,proto3" json:"assetSymbol,omitempty"`
	//冻结总额
	TotalCount int64 `protobuf:"varint,5,opt,name=totalCount,proto3" json:"totalCount,omitempty"`
	//发币人地址
	Initiator string `protobuf:"bytes,6,opt,name=initiator,proto3" json:"initiator,omitempty"`
	//收币人地址
	Beneficiary string `protobuf:"bytes,7,opt,name=beneficiary,proto3" json:"beneficiary,omitempty"`
	//解冻剩余币数
	Remaining int64 `protobuf:"varint,8,opt,name=remaining,proto3" json:"remaining,omitempty"`
	//解冻方式(百分比;固额)
	Means string `protobuf:"bytes,9,opt,name=means,proto3" json:"means,omitempty"`
	// Types that are assignable to MeansOpt:
	//	*ReplyUnfreeze_FixAmount
	//	*ReplyUnfreeze_LeftProportion
	MeansOpt   isReplyUnfreeze_MeansOpt `protobuf_oneof:"meansOpt"`
	Terminated bool                     `protobuf:"varint,12,opt,name=terminated,proto3" json:"terminated,omitempty"`
	Key        string                   `protobuf:"bytes,13,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

func (*ReplyUnfreeze) Descriptor deprecated

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

Deprecated: Use ReplyUnfreeze.ProtoReflect.Descriptor instead.

func (*ReplyUnfreeze) GetAssetExec

func (x *ReplyUnfreeze) GetAssetExec() string

func (*ReplyUnfreeze) GetAssetSymbol

func (x *ReplyUnfreeze) GetAssetSymbol() string

func (*ReplyUnfreeze) GetBeneficiary

func (x *ReplyUnfreeze) GetBeneficiary() string

func (*ReplyUnfreeze) GetFixAmount

func (x *ReplyUnfreeze) GetFixAmount() *FixAmount

func (*ReplyUnfreeze) GetInitiator

func (x *ReplyUnfreeze) GetInitiator() string

func (*ReplyUnfreeze) GetKey

func (x *ReplyUnfreeze) GetKey() string

func (*ReplyUnfreeze) GetLeftProportion

func (x *ReplyUnfreeze) GetLeftProportion() *LeftProportion

func (*ReplyUnfreeze) GetMeans

func (x *ReplyUnfreeze) GetMeans() string

func (*ReplyUnfreeze) GetMeansOpt

func (m *ReplyUnfreeze) GetMeansOpt() isReplyUnfreeze_MeansOpt

func (*ReplyUnfreeze) GetRemaining

func (x *ReplyUnfreeze) GetRemaining() int64

func (*ReplyUnfreeze) GetStartTime

func (x *ReplyUnfreeze) GetStartTime() int64

func (*ReplyUnfreeze) GetTerminated

func (x *ReplyUnfreeze) GetTerminated() bool

func (*ReplyUnfreeze) GetTotalCount

func (x *ReplyUnfreeze) GetTotalCount() int64

func (*ReplyUnfreeze) GetUnfreezeID

func (x *ReplyUnfreeze) GetUnfreezeID() string

func (*ReplyUnfreeze) ProtoMessage

func (*ReplyUnfreeze) ProtoMessage()

func (*ReplyUnfreeze) ProtoReflect added in v1.65.3

func (x *ReplyUnfreeze) ProtoReflect() protoreflect.Message

func (*ReplyUnfreeze) Reset

func (x *ReplyUnfreeze) Reset()

func (*ReplyUnfreeze) String

func (x *ReplyUnfreeze) String() string

type ReplyUnfreeze_FixAmount

type ReplyUnfreeze_FixAmount struct {
	FixAmount *FixAmount `protobuf:"bytes,10,opt,name=fixAmount,proto3,oneof"`
}

type ReplyUnfreeze_LeftProportion

type ReplyUnfreeze_LeftProportion struct {
	LeftProportion *LeftProportion `protobuf:"bytes,11,opt,name=leftProportion,proto3,oneof"`
}

type ReplyUnfreezes

type ReplyUnfreezes struct {
	Unfreeze []*ReplyUnfreeze `protobuf:"bytes,1,rep,name=unfreeze,proto3" json:"unfreeze,omitempty"`
	// contains filtered or unexported fields
}

func (*ReplyUnfreezes) Descriptor deprecated

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

Deprecated: Use ReplyUnfreezes.ProtoReflect.Descriptor instead.

func (*ReplyUnfreezes) GetUnfreeze

func (x *ReplyUnfreezes) GetUnfreeze() []*ReplyUnfreeze

func (*ReplyUnfreezes) ProtoMessage

func (*ReplyUnfreezes) ProtoMessage()

func (*ReplyUnfreezes) ProtoReflect added in v1.65.3

func (x *ReplyUnfreezes) ProtoReflect() protoreflect.Message

func (*ReplyUnfreezes) Reset

func (x *ReplyUnfreezes) Reset()

func (*ReplyUnfreezes) String

func (x *ReplyUnfreezes) String() string

type ReqUnfreezes

type ReqUnfreezes struct {
	Direction   int32  `protobuf:"varint,1,opt,name=direction,proto3" json:"direction,omitempty"`
	Count       int32  `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
	FromKey     string `protobuf:"bytes,3,opt,name=fromKey,proto3" json:"fromKey,omitempty"`
	Initiator   string `protobuf:"bytes,4,opt,name=initiator,proto3" json:"initiator,omitempty"`
	Beneficiary string `protobuf:"bytes,5,opt,name=beneficiary,proto3" json:"beneficiary,omitempty"`
	// contains filtered or unexported fields
}

func (*ReqUnfreezes) Descriptor deprecated

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

Deprecated: Use ReqUnfreezes.ProtoReflect.Descriptor instead.

func (*ReqUnfreezes) GetBeneficiary

func (x *ReqUnfreezes) GetBeneficiary() string

func (*ReqUnfreezes) GetCount

func (x *ReqUnfreezes) GetCount() int32

func (*ReqUnfreezes) GetDirection

func (x *ReqUnfreezes) GetDirection() int32

func (*ReqUnfreezes) GetFromKey

func (x *ReqUnfreezes) GetFromKey() string

func (*ReqUnfreezes) GetInitiator

func (x *ReqUnfreezes) GetInitiator() string

func (*ReqUnfreezes) ProtoMessage

func (*ReqUnfreezes) ProtoMessage()

func (*ReqUnfreezes) ProtoReflect added in v1.65.3

func (x *ReqUnfreezes) ProtoReflect() protoreflect.Message

func (*ReqUnfreezes) Reset

func (x *ReqUnfreezes) Reset()

func (*ReqUnfreezes) String

func (x *ReqUnfreezes) String() string

type Unfreeze

type Unfreeze struct {

	//解冻交易ID(唯一识别码)
	UnfreezeID string `protobuf:"bytes,1,opt,name=unfreezeID,proto3" json:"unfreezeID,omitempty"`
	//开始时间
	StartTime int64 `protobuf:"varint,2,opt,name=startTime,proto3" json:"startTime,omitempty"`
	//币种
	AssetExec   string `protobuf:"bytes,3,opt,name=assetExec,proto3" json:"assetExec,omitempty"`
	AssetSymbol string `protobuf:"bytes,4,opt,name=assetSymbol,proto3" json:"assetSymbol,omitempty"`
	//冻结总额
	TotalCount int64 `protobuf:"varint,5,opt,name=totalCount,proto3" json:"totalCount,omitempty"`
	//发币人地址
	Initiator string `protobuf:"bytes,6,opt,name=initiator,proto3" json:"initiator,omitempty"`
	//收币人地址
	Beneficiary string `protobuf:"bytes,7,opt,name=beneficiary,proto3" json:"beneficiary,omitempty"`
	//解冻剩余币数
	Remaining int64 `protobuf:"varint,8,opt,name=remaining,proto3" json:"remaining,omitempty"`
	//解冻方式(百分比;固额)
	Means string `protobuf:"bytes,9,opt,name=means,proto3" json:"means,omitempty"`
	// Types that are assignable to MeansOpt:
	//	*Unfreeze_FixAmount
	//	*Unfreeze_LeftProportion
	MeansOpt   isUnfreeze_MeansOpt `protobuf_oneof:"meansOpt"`
	Terminated bool                `protobuf:"varint,12,opt,name=terminated,proto3" json:"terminated,omitempty"`
	// contains filtered or unexported fields
}

func (*Unfreeze) Descriptor deprecated

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

Deprecated: Use Unfreeze.ProtoReflect.Descriptor instead.

func (*Unfreeze) GetAssetExec

func (x *Unfreeze) GetAssetExec() string

func (*Unfreeze) GetAssetSymbol

func (x *Unfreeze) GetAssetSymbol() string

func (*Unfreeze) GetBeneficiary

func (x *Unfreeze) GetBeneficiary() string

func (*Unfreeze) GetFixAmount

func (x *Unfreeze) GetFixAmount() *FixAmount

func (*Unfreeze) GetInitiator

func (x *Unfreeze) GetInitiator() string

func (*Unfreeze) GetLeftProportion

func (x *Unfreeze) GetLeftProportion() *LeftProportion

func (*Unfreeze) GetMeans

func (x *Unfreeze) GetMeans() string

func (*Unfreeze) GetMeansOpt

func (m *Unfreeze) GetMeansOpt() isUnfreeze_MeansOpt

func (*Unfreeze) GetRemaining

func (x *Unfreeze) GetRemaining() int64

func (*Unfreeze) GetStartTime

func (x *Unfreeze) GetStartTime() int64

func (*Unfreeze) GetTerminated

func (x *Unfreeze) GetTerminated() bool

func (*Unfreeze) GetTotalCount

func (x *Unfreeze) GetTotalCount() int64

func (*Unfreeze) GetUnfreezeID

func (x *Unfreeze) GetUnfreezeID() string

func (*Unfreeze) ProtoMessage

func (*Unfreeze) ProtoMessage()

func (*Unfreeze) ProtoReflect added in v1.65.3

func (x *Unfreeze) ProtoReflect() protoreflect.Message

func (*Unfreeze) Reset

func (x *Unfreeze) Reset()

func (*Unfreeze) String

func (x *Unfreeze) String() string

type UnfreezeAction

type UnfreezeAction struct {

	// Types that are assignable to Value:
	//	*UnfreezeAction_Create
	//	*UnfreezeAction_Withdraw
	//	*UnfreezeAction_Terminate
	Value isUnfreezeAction_Value `protobuf_oneof:"value"`
	Ty    int32                  `protobuf:"varint,4,opt,name=ty,proto3" json:"ty,omitempty"`
	// contains filtered or unexported fields
}

message for execs.unfreeze

func (*UnfreezeAction) Descriptor deprecated

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

Deprecated: Use UnfreezeAction.ProtoReflect.Descriptor instead.

func (*UnfreezeAction) GetCreate

func (x *UnfreezeAction) GetCreate() *UnfreezeCreate

func (*UnfreezeAction) GetTerminate

func (x *UnfreezeAction) GetTerminate() *UnfreezeTerminate

func (*UnfreezeAction) GetTy

func (x *UnfreezeAction) GetTy() int32

func (*UnfreezeAction) GetValue

func (m *UnfreezeAction) GetValue() isUnfreezeAction_Value

func (*UnfreezeAction) GetWithdraw

func (x *UnfreezeAction) GetWithdraw() *UnfreezeWithdraw

func (*UnfreezeAction) ProtoMessage

func (*UnfreezeAction) ProtoMessage()

func (*UnfreezeAction) ProtoReflect added in v1.65.3

func (x *UnfreezeAction) ProtoReflect() protoreflect.Message

func (*UnfreezeAction) Reset

func (x *UnfreezeAction) Reset()

func (*UnfreezeAction) String

func (x *UnfreezeAction) String() string

type UnfreezeAction_Create

type UnfreezeAction_Create struct {
	Create *UnfreezeCreate `protobuf:"bytes,1,opt,name=create,proto3,oneof"`
}

type UnfreezeAction_Terminate

type UnfreezeAction_Terminate struct {
	Terminate *UnfreezeTerminate `protobuf:"bytes,3,opt,name=terminate,proto3,oneof"`
}

type UnfreezeAction_Withdraw

type UnfreezeAction_Withdraw struct {
	Withdraw *UnfreezeWithdraw `protobuf:"bytes,2,opt,name=withdraw,proto3,oneof"`
}

type UnfreezeClient

type UnfreezeClient interface {
	GetUnfreezeWithdraw(ctx context.Context, in *types.ReqString, opts ...grpc.CallOption) (*ReplyQueryUnfreezeWithdraw, error)
	QueryUnfreeze(ctx context.Context, in *types.ReqString, opts ...grpc.CallOption) (*Unfreeze, error)
}

UnfreezeClient is the client API for Unfreeze service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewUnfreezeClient

func NewUnfreezeClient(cc grpc.ClientConnInterface) UnfreezeClient

type UnfreezeCreate

type UnfreezeCreate struct {
	StartTime   int64  `protobuf:"varint,1,opt,name=startTime,proto3" json:"startTime,omitempty"`
	AssetExec   string `protobuf:"bytes,2,opt,name=assetExec,proto3" json:"assetExec,omitempty"`
	AssetSymbol string `protobuf:"bytes,3,opt,name=assetSymbol,proto3" json:"assetSymbol,omitempty"`
	TotalCount  int64  `protobuf:"varint,4,opt,name=totalCount,proto3" json:"totalCount,omitempty"`
	Beneficiary string `protobuf:"bytes,5,opt,name=beneficiary,proto3" json:"beneficiary,omitempty"`
	Means       string `protobuf:"bytes,6,opt,name=means,proto3" json:"means,omitempty"`
	// Types that are assignable to MeansOpt:
	//	*UnfreezeCreate_FixAmount
	//	*UnfreezeCreate_LeftProportion
	MeansOpt isUnfreezeCreate_MeansOpt `protobuf_oneof:"meansOpt"`
	// contains filtered or unexported fields
}

action

func (*UnfreezeCreate) Descriptor deprecated

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

Deprecated: Use UnfreezeCreate.ProtoReflect.Descriptor instead.

func (*UnfreezeCreate) GetAssetExec

func (x *UnfreezeCreate) GetAssetExec() string

func (*UnfreezeCreate) GetAssetSymbol

func (x *UnfreezeCreate) GetAssetSymbol() string

func (*UnfreezeCreate) GetBeneficiary

func (x *UnfreezeCreate) GetBeneficiary() string

func (*UnfreezeCreate) GetFixAmount

func (x *UnfreezeCreate) GetFixAmount() *FixAmount

func (*UnfreezeCreate) GetLeftProportion

func (x *UnfreezeCreate) GetLeftProportion() *LeftProportion

func (*UnfreezeCreate) GetMeans

func (x *UnfreezeCreate) GetMeans() string

func (*UnfreezeCreate) GetMeansOpt

func (m *UnfreezeCreate) GetMeansOpt() isUnfreezeCreate_MeansOpt

func (*UnfreezeCreate) GetStartTime

func (x *UnfreezeCreate) GetStartTime() int64

func (*UnfreezeCreate) GetTotalCount

func (x *UnfreezeCreate) GetTotalCount() int64

func (*UnfreezeCreate) ProtoMessage

func (*UnfreezeCreate) ProtoMessage()

func (*UnfreezeCreate) ProtoReflect added in v1.65.3

func (x *UnfreezeCreate) ProtoReflect() protoreflect.Message

func (*UnfreezeCreate) Reset

func (x *UnfreezeCreate) Reset()

func (*UnfreezeCreate) String

func (x *UnfreezeCreate) String() string

func (*UnfreezeCreate) UnmarshalJSON

func (m *UnfreezeCreate) UnmarshalJSON(v []byte) error

UnmarshalJSON 解析UnfreezeCreate

type UnfreezeCreate_FixAmount

type UnfreezeCreate_FixAmount struct {
	FixAmount *FixAmount `protobuf:"bytes,7,opt,name=fixAmount,proto3,oneof"`
}

type UnfreezeCreate_LeftProportion

type UnfreezeCreate_LeftProportion struct {
	LeftProportion *LeftProportion `protobuf:"bytes,8,opt,name=leftProportion,proto3,oneof"`
}

type UnfreezeServer

type UnfreezeServer interface {
	GetUnfreezeWithdraw(context.Context, *types.ReqString) (*ReplyQueryUnfreezeWithdraw, error)
	QueryUnfreeze(context.Context, *types.ReqString) (*Unfreeze, error)
}

UnfreezeServer is the server API for Unfreeze service.

type UnfreezeTerminate

type UnfreezeTerminate struct {
	UnfreezeID string `protobuf:"bytes,1,opt,name=unfreezeID,proto3" json:"unfreezeID,omitempty"`
	// contains filtered or unexported fields
}

func (*UnfreezeTerminate) Descriptor deprecated

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

Deprecated: Use UnfreezeTerminate.ProtoReflect.Descriptor instead.

func (*UnfreezeTerminate) GetUnfreezeID

func (x *UnfreezeTerminate) GetUnfreezeID() string

func (*UnfreezeTerminate) ProtoMessage

func (*UnfreezeTerminate) ProtoMessage()

func (*UnfreezeTerminate) ProtoReflect added in v1.65.3

func (x *UnfreezeTerminate) ProtoReflect() protoreflect.Message

func (*UnfreezeTerminate) Reset

func (x *UnfreezeTerminate) Reset()

func (*UnfreezeTerminate) String

func (x *UnfreezeTerminate) String() string

type UnfreezeType

type UnfreezeType struct {
	types.ExecTypeBase
}

UnfreezeType 基础类型结构体

func NewType

func NewType(cfg *types.Chain33Config) *UnfreezeType

NewType 生成新的基础类型

func (*UnfreezeType) CreateTx

func (u *UnfreezeType) CreateTx(action string, message json.RawMessage) (*types.Transaction, error)

CreateTx 创建交易

func (*UnfreezeType) GetLogMap

func (u *UnfreezeType) GetLogMap() map[int64]*types.LogInfo

GetLogMap 获得日志类型列表

func (*UnfreezeType) GetName

func (u *UnfreezeType) GetName() string

GetName 获取执行器名称

func (*UnfreezeType) GetPayload

func (u *UnfreezeType) GetPayload() types.Message

GetPayload 获得空的Unfreeze 的 Payload

func (*UnfreezeType) GetTypeMap

func (u *UnfreezeType) GetTypeMap() map[string]int32

GetTypeMap 获得Action 方法列表

func (*UnfreezeType) RPC_UnfreezeCreateTx

func (u *UnfreezeType) RPC_UnfreezeCreateTx(parm *UnfreezeCreate) (*types.Transaction, error)

RPC_UnfreezeCreateTx 创建冻结合约交易入口

func (*UnfreezeType) RPC_UnfreezeTerminateTx

func (u *UnfreezeType) RPC_UnfreezeTerminateTx(parm *UnfreezeTerminate) (*types.Transaction, error)

RPC_UnfreezeTerminateTx 创建终止冻结合约入口

func (*UnfreezeType) RPC_UnfreezeWithdrawTx

func (u *UnfreezeType) RPC_UnfreezeWithdrawTx(parm *UnfreezeWithdraw) (*types.Transaction, error)

RPC_UnfreezeWithdrawTx 创建提币交易入口

type UnfreezeWithdraw

type UnfreezeWithdraw struct {
	UnfreezeID string `protobuf:"bytes,1,opt,name=unfreezeID,proto3" json:"unfreezeID,omitempty"`
	// contains filtered or unexported fields
}

func (*UnfreezeWithdraw) Descriptor deprecated

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

Deprecated: Use UnfreezeWithdraw.ProtoReflect.Descriptor instead.

func (*UnfreezeWithdraw) GetUnfreezeID

func (x *UnfreezeWithdraw) GetUnfreezeID() string

func (*UnfreezeWithdraw) ProtoMessage

func (*UnfreezeWithdraw) ProtoMessage()

func (*UnfreezeWithdraw) ProtoReflect added in v1.65.3

func (x *UnfreezeWithdraw) ProtoReflect() protoreflect.Message

func (*UnfreezeWithdraw) Reset

func (x *UnfreezeWithdraw) Reset()

func (*UnfreezeWithdraw) String

func (x *UnfreezeWithdraw) String() string

type Unfreeze_FixAmount

type Unfreeze_FixAmount struct {
	FixAmount *FixAmount `protobuf:"bytes,10,opt,name=fixAmount,proto3,oneof"`
}

type Unfreeze_LeftProportion

type Unfreeze_LeftProportion struct {
	LeftProportion *LeftProportion `protobuf:"bytes,11,opt,name=leftProportion,proto3,oneof"`
}

type UnimplementedUnfreezeServer

type UnimplementedUnfreezeServer struct {
}

UnimplementedUnfreezeServer can be embedded to have forward compatible implementations.

func (*UnimplementedUnfreezeServer) GetUnfreezeWithdraw

func (*UnimplementedUnfreezeServer) QueryUnfreeze

Jump to

Keyboard shortcuts

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