types

package
v1.66.0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2021 License: BSD-3-Clause Imports: 6 Imported by: 20

Documentation

Index

Constants

View Source
const (
	TyLogRelayCreate       = 350
	TyLogRelayRevokeCreate = 351
	TyLogRelayAccept       = 352
	TyLogRelayRevokeAccept = 353
	TyLogRelayConfirmTx    = 354
	TyLogRelayFinishTx     = 355
	TyLogRelayRcvBTCHead   = 356
)

var tlog = log.New("module", name) log for relay

View Source
const (
	// RelayRevokeCreate revoke created order
	RelayRevokeCreate = iota
	// RelayRevokeAccept revoke accept order
	RelayRevokeAccept
)

relay

View Source
const (
	// RelayOrderBuy define relay buy order
	RelayOrderBuy = iota
	// RelayOrderSell define relay sell order
	RelayOrderSell
)
View Source
const (
	// RelayUnlock revoke order
	RelayUnlock = iota
	// RelayCancel order owner cancel order
	RelayCancel
)
View Source
const (
	// RelayActionCreate relay create order action
	RelayActionCreate = iota
	// RelayActionAccept accept order action
	RelayActionAccept
	// RelayActionRevoke revoke order action
	RelayActionRevoke
	// RelayActionConfirmTx confirm tx action
	RelayActionConfirmTx
	// RelayActionVerifyTx relayd send this tx to verify btc tx
	RelayActionVerifyTx
	// RelayActionVerifyCmdTx verify tx by cli action
	RelayActionVerifyCmdTx
	// RelayActionRcvBTCHeaders relay rcv BTC headers by this
	RelayActionRcvBTCHeaders
)

Variables

View Source
var (
	// ErrRelayOrderNotExist relay order not exist
	ErrRelayOrderNotExist = errors.New("ErrRelayOrderNotExist")
	// ErrRelayOrderOnSell relay order  on sell status
	ErrRelayOrderOnSell = errors.New("ErrRelayOrderOnSell")
	// ErrRelayOrderStatusErr relay order status err
	ErrRelayOrderStatusErr = errors.New("ErrRelayOrderStatusErr")
	// ErrRelayOrderParamErr relay order parameter err
	ErrRelayOrderParamErr = errors.New("ErrRelayOrderParamErr")
	// ErrRelayOrderSoldout order has been sold
	ErrRelayOrderSoldout = errors.New("ErrRelayOrderSoldout")
	// ErrRelayOrderRevoked order revoked
	ErrRelayOrderRevoked = errors.New("ErrRelayOrderRevoked")
	// ErrRelayOrderConfirming order is confirming, not time out
	ErrRelayOrderConfirming = errors.New("ErrRelayOrderConfirming")
	// ErrRelayOrderFinished order has finished
	ErrRelayOrderFinished = errors.New("ErrRelayOrderFinished")
	// ErrRelayReturnAddr relay order return addr error
	ErrRelayReturnAddr = errors.New("ErrRelayReturnAddr")
	// ErrRelayVerify order is verifying
	ErrRelayVerify = errors.New("ErrRelayVerify")
	// ErrRelayVerifyAddrNotFound order verify addr not found
	ErrRelayVerifyAddrNotFound = errors.New("ErrRelayVerifyAddrNotFound")
	// ErrRelayWaitBlocksErr order wait block not enough
	ErrRelayWaitBlocksErr = errors.New("ErrRelayWaitBlocks")
	// ErrRelayCoinTxHashUsed order confirm tx has been used
	ErrRelayCoinTxHashUsed = errors.New("ErrRelayCoinTxHashUsed")
	// ErrRelayBtcTxTimeErr btc tx time not reasonable
	ErrRelayBtcTxTimeErr = errors.New("ErrRelayBtcTxTimeErr")
	// ErrRelayBtcHeadSequenceErr btc header sequence not continuous
	ErrRelayBtcHeadSequenceErr = errors.New("ErrRelayBtcHeadSequenceErr")
	// ErrRelayBtcHeadHashErr btc header hash not correct
	ErrRelayBtcHeadHashErr = errors.New("ErrRelayBtcHeadHashErr")
	// ErrRelayBtcHeadBitsErr rcv btc header bit not correct
	ErrRelayBtcHeadBitsErr = errors.New("ErrRelayBtcHeadBitsErr")
	// ErrRelayBtcHeadNewBitsErr calc btc header new bits error
	ErrRelayBtcHeadNewBitsErr = errors.New("ErrRelayBtcHeadNewBitsErr")
)
View Source
var (
	RelayOrderStatus_name = map[int32]string{
		0: "init",
		1: "pending",
		2: "locking",
		3: "confirming",
		4: "finished",
		5: "canceled",
		6: "timeout",
	}
	RelayOrderStatus_value = map[string]int32{
		"init":       0,
		"pending":    1,
		"locking":    2,
		"confirming": 3,
		"finished":   4,
		"canceled":   5,
		"timeout":    6,
	}
)

Enum value maps for RelayOrderStatus.

View Source
var File_relay_proto protoreflect.FileDescriptor
View Source
var RelayX = "relay"

RelayX name for executor

Functions

func InitExecutor

func InitExecutor(cfg *types.Chain33Config)

InitExecutor ...

func InitFork

func InitFork(cfg *types.Chain33Config)

InitFork ...

Types

type BtcHeader

type BtcHeader struct {
	Hash          string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	Confirmations uint64 `protobuf:"varint,2,opt,name=confirmations,proto3" json:"confirmations,omitempty"`
	Height        uint64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
	Version       uint32 `protobuf:"varint,4,opt,name=version,proto3" json:"version,omitempty"`
	MerkleRoot    string `protobuf:"bytes,5,opt,name=merkleRoot,proto3" json:"merkleRoot,omitempty"`
	Time          int64  `protobuf:"varint,6,opt,name=time,proto3" json:"time,omitempty"`
	Nonce         uint64 `protobuf:"varint,7,opt,name=nonce,proto3" json:"nonce,omitempty"`
	Bits          int64  `protobuf:"varint,8,opt,name=bits,proto3" json:"bits,omitempty"`
	Difficulty    int64  `protobuf:"varint,9,opt,name=difficulty,proto3" json:"difficulty,omitempty"`
	PreviousHash  string `protobuf:"bytes,10,opt,name=previousHash,proto3" json:"previousHash,omitempty"`
	NextHash      string `protobuf:"bytes,11,opt,name=nextHash,proto3" json:"nextHash,omitempty"`
	IsReset       bool   `protobuf:"varint,12,opt,name=isReset,proto3" json:"isReset,omitempty"` // 0: nomal btc headers sync (default), 1: set the base
	// contains filtered or unexported fields
}

func (*BtcHeader) Descriptor deprecated

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

Deprecated: Use BtcHeader.ProtoReflect.Descriptor instead.

func (*BtcHeader) GetBits

func (x *BtcHeader) GetBits() int64

func (*BtcHeader) GetConfirmations

func (x *BtcHeader) GetConfirmations() uint64

func (*BtcHeader) GetDifficulty

func (x *BtcHeader) GetDifficulty() int64

func (*BtcHeader) GetHash

func (x *BtcHeader) GetHash() string

func (*BtcHeader) GetHeight

func (x *BtcHeader) GetHeight() uint64

func (*BtcHeader) GetIsReset

func (x *BtcHeader) GetIsReset() bool

func (*BtcHeader) GetMerkleRoot

func (x *BtcHeader) GetMerkleRoot() string

func (*BtcHeader) GetNextHash

func (x *BtcHeader) GetNextHash() string

func (*BtcHeader) GetNonce

func (x *BtcHeader) GetNonce() uint64

func (*BtcHeader) GetPreviousHash

func (x *BtcHeader) GetPreviousHash() string

func (*BtcHeader) GetTime

func (x *BtcHeader) GetTime() int64

func (*BtcHeader) GetVersion

func (x *BtcHeader) GetVersion() uint32

func (*BtcHeader) ProtoMessage

func (*BtcHeader) ProtoMessage()

func (*BtcHeader) ProtoReflect added in v1.65.3

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

func (*BtcHeader) Reset

func (x *BtcHeader) Reset()

func (*BtcHeader) String

func (x *BtcHeader) String() string

type BtcHeaders

type BtcHeaders struct {
	BtcHeader []*BtcHeader `protobuf:"bytes,1,rep,name=btcHeader,proto3" json:"btcHeader,omitempty"`
	// contains filtered or unexported fields
}

func (*BtcHeaders) Descriptor deprecated

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

Deprecated: Use BtcHeaders.ProtoReflect.Descriptor instead.

func (*BtcHeaders) GetBtcHeader

func (x *BtcHeaders) GetBtcHeader() []*BtcHeader

func (*BtcHeaders) ProtoMessage

func (*BtcHeaders) ProtoMessage()

func (*BtcHeaders) ProtoReflect added in v1.65.3

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

func (*BtcHeaders) Reset

func (x *BtcHeaders) Reset()

func (*BtcHeaders) String

func (x *BtcHeaders) String() string

type BtcSpv

type BtcSpv struct {
	Hash        string   `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` // txhash
	Time        int64    `protobuf:"varint,2,opt,name=time,proto3" json:"time,omitempty"`
	Height      uint64   `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
	BlockHash   string   `protobuf:"bytes,4,opt,name=blockHash,proto3" json:"blockHash,omitempty"`
	TxIndex     uint32   `protobuf:"varint,5,opt,name=txIndex,proto3" json:"txIndex,omitempty"`
	BranchProof [][]byte `protobuf:"bytes,6,rep,name=branchProof,proto3" json:"branchProof,omitempty"`
	// contains filtered or unexported fields
}

func (*BtcSpv) Descriptor deprecated

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

Deprecated: Use BtcSpv.ProtoReflect.Descriptor instead.

func (*BtcSpv) GetBlockHash

func (x *BtcSpv) GetBlockHash() string

func (*BtcSpv) GetBranchProof

func (x *BtcSpv) GetBranchProof() [][]byte

func (*BtcSpv) GetHash

func (x *BtcSpv) GetHash() string

func (*BtcSpv) GetHeight

func (x *BtcSpv) GetHeight() uint64

func (*BtcSpv) GetTime

func (x *BtcSpv) GetTime() int64

func (*BtcSpv) GetTxIndex

func (x *BtcSpv) GetTxIndex() uint32

func (*BtcSpv) ProtoMessage

func (*BtcSpv) ProtoMessage()

func (*BtcSpv) ProtoReflect added in v1.65.3

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

func (*BtcSpv) Reset

func (x *BtcSpv) Reset()

func (*BtcSpv) String

func (x *BtcSpv) String() string

type BtcTransaction

type BtcTransaction struct {
	Hash          string  `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` // txhash
	BlockHeight   uint64  `protobuf:"varint,2,opt,name=blockHeight,proto3" json:"blockHeight,omitempty"`
	Vin           []*Vin  `protobuf:"bytes,3,rep,name=vin,proto3" json:"vin,omitempty"`
	Vout          []*Vout `protobuf:"bytes,4,rep,name=vout,proto3" json:"vout,omitempty"`
	Time          int64   `protobuf:"varint,5,opt,name=time,proto3" json:"time,omitempty"`
	Confirmations uint64  `protobuf:"varint,6,opt,name=confirmations,proto3" json:"confirmations,omitempty"`
	// contains filtered or unexported fields
}

func (*BtcTransaction) Descriptor deprecated

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

Deprecated: Use BtcTransaction.ProtoReflect.Descriptor instead.

func (*BtcTransaction) GetBlockHeight

func (x *BtcTransaction) GetBlockHeight() uint64

func (*BtcTransaction) GetConfirmations

func (x *BtcTransaction) GetConfirmations() uint64

func (*BtcTransaction) GetHash

func (x *BtcTransaction) GetHash() string

func (*BtcTransaction) GetTime

func (x *BtcTransaction) GetTime() int64

func (*BtcTransaction) GetVin

func (x *BtcTransaction) GetVin() []*Vin

func (*BtcTransaction) GetVout

func (x *BtcTransaction) GetVout() []*Vout

func (*BtcTransaction) ProtoMessage

func (*BtcTransaction) ProtoMessage()

func (*BtcTransaction) ProtoReflect added in v1.65.3

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

func (*BtcTransaction) Reset

func (x *BtcTransaction) Reset()

func (*BtcTransaction) String

func (x *BtcTransaction) String() string

type QueryRelayOrderParam

type QueryRelayOrderParam struct {
	Status  RelayOrderStatus `protobuf:"varint,1,opt,name=status,proto3,enum=types.RelayOrderStatus" json:"status,omitempty"`
	OrderId string           `protobuf:"bytes,2,opt,name=orderId,proto3" json:"orderId,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryRelayOrderParam) Descriptor deprecated

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

Deprecated: Use QueryRelayOrderParam.ProtoReflect.Descriptor instead.

func (*QueryRelayOrderParam) GetOrderId

func (x *QueryRelayOrderParam) GetOrderId() string

func (*QueryRelayOrderParam) GetStatus

func (x *QueryRelayOrderParam) GetStatus() RelayOrderStatus

func (*QueryRelayOrderParam) ProtoMessage

func (*QueryRelayOrderParam) ProtoMessage()

func (*QueryRelayOrderParam) ProtoReflect added in v1.65.3

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

func (*QueryRelayOrderParam) Reset

func (x *QueryRelayOrderParam) Reset()

func (*QueryRelayOrderParam) String

func (x *QueryRelayOrderParam) String() string

type QueryRelayOrderResult

type QueryRelayOrderResult struct {
	Orders []*RelayOrder `protobuf:"bytes,1,rep,name=orders,proto3" json:"orders,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryRelayOrderResult) Descriptor deprecated

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

Deprecated: Use QueryRelayOrderResult.ProtoReflect.Descriptor instead.

func (*QueryRelayOrderResult) GetOrders

func (x *QueryRelayOrderResult) GetOrders() []*RelayOrder

func (*QueryRelayOrderResult) ProtoMessage

func (*QueryRelayOrderResult) ProtoMessage()

func (*QueryRelayOrderResult) ProtoReflect added in v1.65.3

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

func (*QueryRelayOrderResult) Reset

func (x *QueryRelayOrderResult) Reset()

func (*QueryRelayOrderResult) String

func (x *QueryRelayOrderResult) String() string

type ReceiptRelayLog

type ReceiptRelayLog struct {
	OrderId         string `protobuf:"bytes,1,opt,name=orderId,proto3" json:"orderId,omitempty"`
	CurStatus       string `protobuf:"bytes,2,opt,name=curStatus,proto3" json:"curStatus,omitempty"`
	PreStatus       string `protobuf:"bytes,3,opt,name=preStatus,proto3" json:"preStatus,omitempty"`
	LocalCoinAmount string `protobuf:"bytes,4,opt,name=localCoinAmount,proto3" json:"localCoinAmount,omitempty"`
	CreaterAddr     string `protobuf:"bytes,5,opt,name=createrAddr,proto3" json:"createrAddr,omitempty"`
	CoinOperation   uint32 `protobuf:"varint,6,opt,name=coinOperation,proto3" json:"coinOperation,omitempty"`
	XCoin           string `protobuf:"bytes,7,opt,name=xCoin,proto3" json:"xCoin,omitempty"`
	XAmount         string `protobuf:"bytes,8,opt,name=xAmount,proto3" json:"xAmount,omitempty"`
	XAddr           string `protobuf:"bytes,9,opt,name=xAddr,proto3" json:"xAddr,omitempty"`
	XTxHash         string `protobuf:"bytes,10,opt,name=xTxHash,proto3" json:"xTxHash,omitempty"`
	CreateTime      int64  `protobuf:"varint,11,opt,name=createTime,proto3" json:"createTime,omitempty"`
	AcceptAddr      string `protobuf:"bytes,12,opt,name=acceptAddr,proto3" json:"acceptAddr,omitempty"`
	AcceptTime      int64  `protobuf:"varint,13,opt,name=acceptTime,proto3" json:"acceptTime,omitempty"`
	ConfirmTime     int64  `protobuf:"varint,14,opt,name=confirmTime,proto3" json:"confirmTime,omitempty"`
	FinishTime      int64  `protobuf:"varint,15,opt,name=finishTime,proto3" json:"finishTime,omitempty"`
	FinishTxHash    string `protobuf:"bytes,16,opt,name=finishTxHash,proto3" json:"finishTxHash,omitempty"`
	XHeight         uint64 `protobuf:"varint,17,opt,name=xHeight,proto3" json:"xHeight,omitempty"`
	XBlockWaits     uint32 `protobuf:"varint,18,opt,name=xBlockWaits,proto3" json:"xBlockWaits,omitempty"`
	LocalCoinSymbol string `protobuf:"bytes,19,opt,name=localCoinSymbol,proto3" json:"localCoinSymbol,omitempty"`
	LocalCoinExec   string `protobuf:"bytes,20,opt,name=localCoinExec,proto3" json:"localCoinExec,omitempty"`
	// contains filtered or unexported fields
}

func (*ReceiptRelayLog) Descriptor deprecated

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

Deprecated: Use ReceiptRelayLog.ProtoReflect.Descriptor instead.

func (*ReceiptRelayLog) GetAcceptAddr

func (x *ReceiptRelayLog) GetAcceptAddr() string

func (*ReceiptRelayLog) GetAcceptTime

func (x *ReceiptRelayLog) GetAcceptTime() int64

func (*ReceiptRelayLog) GetCoinOperation

func (x *ReceiptRelayLog) GetCoinOperation() uint32

func (*ReceiptRelayLog) GetConfirmTime

func (x *ReceiptRelayLog) GetConfirmTime() int64

func (*ReceiptRelayLog) GetCreateTime

func (x *ReceiptRelayLog) GetCreateTime() int64

func (*ReceiptRelayLog) GetCreaterAddr

func (x *ReceiptRelayLog) GetCreaterAddr() string

func (*ReceiptRelayLog) GetCurStatus

func (x *ReceiptRelayLog) GetCurStatus() string

func (*ReceiptRelayLog) GetFinishTime

func (x *ReceiptRelayLog) GetFinishTime() int64

func (*ReceiptRelayLog) GetFinishTxHash

func (x *ReceiptRelayLog) GetFinishTxHash() string

func (*ReceiptRelayLog) GetLocalCoinAmount

func (x *ReceiptRelayLog) GetLocalCoinAmount() string

func (*ReceiptRelayLog) GetLocalCoinExec

func (x *ReceiptRelayLog) GetLocalCoinExec() string

func (*ReceiptRelayLog) GetLocalCoinSymbol

func (x *ReceiptRelayLog) GetLocalCoinSymbol() string

func (*ReceiptRelayLog) GetOrderId

func (x *ReceiptRelayLog) GetOrderId() string

func (*ReceiptRelayLog) GetPreStatus

func (x *ReceiptRelayLog) GetPreStatus() string

func (*ReceiptRelayLog) GetXAddr

func (x *ReceiptRelayLog) GetXAddr() string

func (*ReceiptRelayLog) GetXAmount

func (x *ReceiptRelayLog) GetXAmount() string

func (*ReceiptRelayLog) GetXBlockWaits

func (x *ReceiptRelayLog) GetXBlockWaits() uint32

func (*ReceiptRelayLog) GetXCoin

func (x *ReceiptRelayLog) GetXCoin() string

func (*ReceiptRelayLog) GetXHeight

func (x *ReceiptRelayLog) GetXHeight() uint64

func (*ReceiptRelayLog) GetXTxHash

func (x *ReceiptRelayLog) GetXTxHash() string

func (*ReceiptRelayLog) ProtoMessage

func (*ReceiptRelayLog) ProtoMessage()

func (*ReceiptRelayLog) ProtoReflect added in v1.65.3

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

func (*ReceiptRelayLog) Reset

func (x *ReceiptRelayLog) Reset()

func (*ReceiptRelayLog) String

func (x *ReceiptRelayLog) String() string

type ReceiptRelayRcvBTCHeaders

type ReceiptRelayRcvBTCHeaders struct {
	Headers        []*BtcHeader `protobuf:"bytes,1,rep,name=headers,proto3" json:"headers,omitempty"`
	LastHeight     uint64       `protobuf:"varint,2,opt,name=lastHeight,proto3" json:"lastHeight,omitempty"` // last height is the last btc Tx's last height
	NewHeight      uint64       `protobuf:"varint,3,opt,name=newHeight,proto3" json:"newHeight,omitempty"`
	LastBaseHeight uint64       `protobuf:"varint,4,opt,name=lastBaseHeight,proto3" json:"lastBaseHeight,omitempty"` // last base height means ever base height
	NewBaseHeight  uint64       `protobuf:"varint,5,opt,name=newBaseHeight,proto3" json:"newBaseHeight,omitempty"`
	// contains filtered or unexported fields
}

func (*ReceiptRelayRcvBTCHeaders) Descriptor deprecated

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

Deprecated: Use ReceiptRelayRcvBTCHeaders.ProtoReflect.Descriptor instead.

func (*ReceiptRelayRcvBTCHeaders) GetHeaders

func (x *ReceiptRelayRcvBTCHeaders) GetHeaders() []*BtcHeader

func (*ReceiptRelayRcvBTCHeaders) GetLastBaseHeight

func (x *ReceiptRelayRcvBTCHeaders) GetLastBaseHeight() uint64

func (*ReceiptRelayRcvBTCHeaders) GetLastHeight

func (x *ReceiptRelayRcvBTCHeaders) GetLastHeight() uint64

func (*ReceiptRelayRcvBTCHeaders) GetNewBaseHeight

func (x *ReceiptRelayRcvBTCHeaders) GetNewBaseHeight() uint64

func (*ReceiptRelayRcvBTCHeaders) GetNewHeight

func (x *ReceiptRelayRcvBTCHeaders) GetNewHeight() uint64

func (*ReceiptRelayRcvBTCHeaders) ProtoMessage

func (*ReceiptRelayRcvBTCHeaders) ProtoMessage()

func (*ReceiptRelayRcvBTCHeaders) ProtoReflect added in v1.65.3

func (*ReceiptRelayRcvBTCHeaders) Reset

func (x *ReceiptRelayRcvBTCHeaders) Reset()

func (*ReceiptRelayRcvBTCHeaders) String

func (x *ReceiptRelayRcvBTCHeaders) String() string

type RelayAccept

type RelayAccept struct {
	OrderId     string `protobuf:"bytes,1,opt,name=orderId,proto3" json:"orderId,omitempty"`
	XAddr       string `protobuf:"bytes,2,opt,name=xAddr,proto3" json:"xAddr,omitempty"` // for sell coin case needed
	XBlockWaits uint32 `protobuf:"varint,3,opt,name=xBlockWaits,proto3" json:"xBlockWaits,omitempty"`
	// contains filtered or unexported fields
}

func (*RelayAccept) Descriptor deprecated

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

Deprecated: Use RelayAccept.ProtoReflect.Descriptor instead.

func (*RelayAccept) GetOrderId

func (x *RelayAccept) GetOrderId() string

func (*RelayAccept) GetXAddr

func (x *RelayAccept) GetXAddr() string

func (*RelayAccept) GetXBlockWaits

func (x *RelayAccept) GetXBlockWaits() uint32

func (*RelayAccept) ProtoMessage

func (*RelayAccept) ProtoMessage()

func (*RelayAccept) ProtoReflect added in v1.65.3

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

func (*RelayAccept) Reset

func (x *RelayAccept) Reset()

func (*RelayAccept) String

func (x *RelayAccept) String() string

type RelayAction

type RelayAction struct {

	// Types that are assignable to Value:
	//	*RelayAction_Create
	//	*RelayAction_Accept
	//	*RelayAction_Revoke
	//	*RelayAction_ConfirmTx
	//	*RelayAction_Verify
	//	*RelayAction_VerifyCli
	//	*RelayAction_BtcHeaders
	Value isRelayAction_Value `protobuf_oneof:"value"`
	Ty    int32               `protobuf:"varint,10,opt,name=ty,proto3" json:"ty,omitempty"`
	// contains filtered or unexported fields
}

func (*RelayAction) Descriptor deprecated

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

Deprecated: Use RelayAction.ProtoReflect.Descriptor instead.

func (*RelayAction) GetAccept

func (x *RelayAction) GetAccept() *RelayAccept

func (*RelayAction) GetBtcHeaders

func (x *RelayAction) GetBtcHeaders() *BtcHeaders

func (*RelayAction) GetConfirmTx

func (x *RelayAction) GetConfirmTx() *RelayConfirmTx

func (*RelayAction) GetCreate

func (x *RelayAction) GetCreate() *RelayCreate

func (*RelayAction) GetRevoke

func (x *RelayAction) GetRevoke() *RelayRevoke

func (*RelayAction) GetTy

func (x *RelayAction) GetTy() int32

func (*RelayAction) GetValue

func (m *RelayAction) GetValue() isRelayAction_Value

func (*RelayAction) GetVerify

func (x *RelayAction) GetVerify() *RelayVerify

func (*RelayAction) GetVerifyCli

func (x *RelayAction) GetVerifyCli() *RelayVerifyCli

func (*RelayAction) ProtoMessage

func (*RelayAction) ProtoMessage()

func (*RelayAction) ProtoReflect added in v1.65.3

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

func (*RelayAction) Reset

func (x *RelayAction) Reset()

func (*RelayAction) String

func (x *RelayAction) String() string

type RelayAction_Accept

type RelayAction_Accept struct {
	Accept *RelayAccept `protobuf:"bytes,2,opt,name=accept,proto3,oneof"`
}

type RelayAction_BtcHeaders

type RelayAction_BtcHeaders struct {
	BtcHeaders *BtcHeaders `protobuf:"bytes,7,opt,name=btcHeaders,proto3,oneof"`
}

type RelayAction_ConfirmTx

type RelayAction_ConfirmTx struct {
	ConfirmTx *RelayConfirmTx `protobuf:"bytes,4,opt,name=confirmTx,proto3,oneof"`
}

type RelayAction_Create

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

type RelayAction_Revoke

type RelayAction_Revoke struct {
	Revoke *RelayRevoke `protobuf:"bytes,3,opt,name=revoke,proto3,oneof"`
}

type RelayAction_Verify

type RelayAction_Verify struct {
	Verify *RelayVerify `protobuf:"bytes,5,opt,name=verify,proto3,oneof"`
}

type RelayAction_VerifyCli

type RelayAction_VerifyCli struct {
	VerifyCli *RelayVerifyCli `protobuf:"bytes,6,opt,name=verifyCli,proto3,oneof"`
}

type RelayConfirmTx

type RelayConfirmTx struct {
	OrderId string `protobuf:"bytes,1,opt,name=orderId,proto3" json:"orderId,omitempty"`
	TxHash  string `protobuf:"bytes,2,opt,name=txHash,proto3" json:"txHash,omitempty"`
	// contains filtered or unexported fields
}

客户只用交易hash提交, 验证需要的其他信息由relayd提供

func (*RelayConfirmTx) Descriptor deprecated

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

Deprecated: Use RelayConfirmTx.ProtoReflect.Descriptor instead.

func (*RelayConfirmTx) GetOrderId

func (x *RelayConfirmTx) GetOrderId() string

func (*RelayConfirmTx) GetTxHash

func (x *RelayConfirmTx) GetTxHash() string

func (*RelayConfirmTx) ProtoMessage

func (*RelayConfirmTx) ProtoMessage()

func (*RelayConfirmTx) ProtoReflect added in v1.65.3

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

func (*RelayConfirmTx) Reset

func (x *RelayConfirmTx) Reset()

func (*RelayConfirmTx) String

func (x *RelayConfirmTx) String() string

type RelayCreate

type RelayCreate struct {
	Operation       uint32 `protobuf:"varint,1,opt,name=operation,proto3" json:"operation,omitempty"` // 0: buy, 1: sell
	XCoin           string `protobuf:"bytes,2,opt,name=xCoin,proto3" json:"xCoin,omitempty"`          // outside cross coin BTC, ETH...
	XAmount         uint64 `protobuf:"varint,3,opt,name=xAmount,proto3" json:"xAmount,omitempty"`
	XAddr           string `protobuf:"bytes,4,opt,name=xAddr,proto3" json:"xAddr,omitempty"`
	LocalCoinAmount uint64 `protobuf:"varint,5,opt,name=localCoinAmount,proto3" json:"localCoinAmount,omitempty"`
	XBlockWaits     uint32 `protobuf:"varint,6,opt,name=xBlockWaits,proto3" json:"xBlockWaits,omitempty"` // the coin blocks to wait
	LocalCoinSymbol string `protobuf:"bytes,7,opt,name=localCoinSymbol,proto3" json:"localCoinSymbol,omitempty"`
	LocalCoinExec   string `protobuf:"bytes,8,opt,name=localCoinExec,proto3" json:"localCoinExec,omitempty"`
	// contains filtered or unexported fields
}

func (*RelayCreate) Descriptor deprecated

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

Deprecated: Use RelayCreate.ProtoReflect.Descriptor instead.

func (*RelayCreate) GetLocalCoinAmount

func (x *RelayCreate) GetLocalCoinAmount() uint64

func (*RelayCreate) GetLocalCoinExec

func (x *RelayCreate) GetLocalCoinExec() string

func (*RelayCreate) GetLocalCoinSymbol

func (x *RelayCreate) GetLocalCoinSymbol() string

func (*RelayCreate) GetOperation

func (x *RelayCreate) GetOperation() uint32

func (*RelayCreate) GetXAddr

func (x *RelayCreate) GetXAddr() string

func (*RelayCreate) GetXAmount

func (x *RelayCreate) GetXAmount() uint64

func (*RelayCreate) GetXBlockWaits

func (x *RelayCreate) GetXBlockWaits() uint32

func (*RelayCreate) GetXCoin

func (x *RelayCreate) GetXCoin() string

func (*RelayCreate) ProtoMessage

func (*RelayCreate) ProtoMessage()

func (*RelayCreate) ProtoReflect added in v1.65.3

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

func (*RelayCreate) Reset

func (x *RelayCreate) Reset()

func (*RelayCreate) String

func (x *RelayCreate) String() string

type RelayLastRcvBtcHeader

type RelayLastRcvBtcHeader struct {
	Header     *BtcHeader `protobuf:"bytes,1,opt,name=Header,proto3" json:"Header,omitempty"`
	BaseHeight uint64     `protobuf:"varint,2,opt,name=baseHeight,proto3" json:"baseHeight,omitempty"`
	// contains filtered or unexported fields
}

func (*RelayLastRcvBtcHeader) Descriptor deprecated

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

Deprecated: Use RelayLastRcvBtcHeader.ProtoReflect.Descriptor instead.

func (*RelayLastRcvBtcHeader) GetBaseHeight

func (x *RelayLastRcvBtcHeader) GetBaseHeight() uint64

func (*RelayLastRcvBtcHeader) GetHeader

func (x *RelayLastRcvBtcHeader) GetHeader() *BtcHeader

func (*RelayLastRcvBtcHeader) ProtoMessage

func (*RelayLastRcvBtcHeader) ProtoMessage()

func (*RelayLastRcvBtcHeader) ProtoReflect added in v1.65.3

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

func (*RelayLastRcvBtcHeader) Reset

func (x *RelayLastRcvBtcHeader) Reset()

func (*RelayLastRcvBtcHeader) String

func (x *RelayLastRcvBtcHeader) String() string

type RelayOrder

type RelayOrder struct {
	Id              string           `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Status          RelayOrderStatus `protobuf:"varint,2,opt,name=status,proto3,enum=types.RelayOrderStatus" json:"status,omitempty"`
	PreStatus       RelayOrderStatus `protobuf:"varint,3,opt,name=preStatus,proto3,enum=types.RelayOrderStatus" json:"preStatus,omitempty"`
	LocalCoinAmount uint64           `protobuf:"varint,4,opt,name=localCoinAmount,proto3" json:"localCoinAmount,omitempty"`
	CreaterAddr     string           `protobuf:"bytes,5,opt,name=createrAddr,proto3" json:"createrAddr,omitempty"`
	Operation       uint32           `protobuf:"varint,6,opt,name=operation,proto3" json:"operation,omitempty"`
	XCoin           string           `protobuf:"bytes,7,opt,name=xCoin,proto3" json:"xCoin,omitempty"`
	XAmount         uint64           `protobuf:"varint,8,opt,name=xAmount,proto3" json:"xAmount,omitempty"`
	XAddr           string           `protobuf:"bytes,9,opt,name=xAddr,proto3" json:"xAddr,omitempty"`
	XTxHash         string           `protobuf:"bytes,10,opt,name=xTxHash,proto3" json:"xTxHash,omitempty"`
	CreateTime      int64            `protobuf:"varint,11,opt,name=createTime,proto3" json:"createTime,omitempty"`
	AcceptAddr      string           `protobuf:"bytes,12,opt,name=acceptAddr,proto3" json:"acceptAddr,omitempty"`
	AcceptTime      int64            `protobuf:"varint,13,opt,name=acceptTime,proto3" json:"acceptTime,omitempty"`
	ConfirmTime     int64            `protobuf:"varint,14,opt,name=confirmTime,proto3" json:"confirmTime,omitempty"`
	FinishTime      int64            `protobuf:"varint,15,opt,name=finishTime,proto3" json:"finishTime,omitempty"`
	FinishTxHash    string           `protobuf:"bytes,16,opt,name=finishTxHash,proto3" json:"finishTxHash,omitempty"`
	Height          int64            `protobuf:"varint,17,opt,name=height,proto3" json:"height,omitempty"`
	XHeight         uint64           `protobuf:"varint,18,opt,name=XHeight,proto3" json:"XHeight,omitempty"`
	XBlockWaits     uint32           `protobuf:"varint,19,opt,name=xBlockWaits,proto3" json:"xBlockWaits,omitempty"`
	LocalCoinSymbol string           `protobuf:"bytes,20,opt,name=localCoinSymbol,proto3" json:"localCoinSymbol,omitempty"`
	LocalCoinExec   string           `protobuf:"bytes,21,opt,name=localCoinExec,proto3" json:"localCoinExec,omitempty"`
	// contains filtered or unexported fields
}

func (*RelayOrder) Descriptor deprecated

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

Deprecated: Use RelayOrder.ProtoReflect.Descriptor instead.

func (*RelayOrder) GetAcceptAddr

func (x *RelayOrder) GetAcceptAddr() string

func (*RelayOrder) GetAcceptTime

func (x *RelayOrder) GetAcceptTime() int64

func (*RelayOrder) GetConfirmTime

func (x *RelayOrder) GetConfirmTime() int64

func (*RelayOrder) GetCreateTime

func (x *RelayOrder) GetCreateTime() int64

func (*RelayOrder) GetCreaterAddr

func (x *RelayOrder) GetCreaterAddr() string

func (*RelayOrder) GetFinishTime

func (x *RelayOrder) GetFinishTime() int64

func (*RelayOrder) GetFinishTxHash

func (x *RelayOrder) GetFinishTxHash() string

func (*RelayOrder) GetHeight

func (x *RelayOrder) GetHeight() int64

func (*RelayOrder) GetId

func (x *RelayOrder) GetId() string

func (*RelayOrder) GetLocalCoinAmount

func (x *RelayOrder) GetLocalCoinAmount() uint64

func (*RelayOrder) GetLocalCoinExec

func (x *RelayOrder) GetLocalCoinExec() string

func (*RelayOrder) GetLocalCoinSymbol

func (x *RelayOrder) GetLocalCoinSymbol() string

func (*RelayOrder) GetOperation

func (x *RelayOrder) GetOperation() uint32

func (*RelayOrder) GetPreStatus

func (x *RelayOrder) GetPreStatus() RelayOrderStatus

func (*RelayOrder) GetStatus

func (x *RelayOrder) GetStatus() RelayOrderStatus

func (*RelayOrder) GetXAddr

func (x *RelayOrder) GetXAddr() string

func (*RelayOrder) GetXAmount

func (x *RelayOrder) GetXAmount() uint64

func (*RelayOrder) GetXBlockWaits

func (x *RelayOrder) GetXBlockWaits() uint32

func (*RelayOrder) GetXCoin

func (x *RelayOrder) GetXCoin() string

func (*RelayOrder) GetXHeight

func (x *RelayOrder) GetXHeight() uint64

func (*RelayOrder) GetXTxHash

func (x *RelayOrder) GetXTxHash() string

func (*RelayOrder) ProtoMessage

func (*RelayOrder) ProtoMessage()

func (*RelayOrder) ProtoReflect added in v1.65.3

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

func (*RelayOrder) Reset

func (x *RelayOrder) Reset()

func (*RelayOrder) String

func (x *RelayOrder) String() string

type RelayOrderStatus

type RelayOrderStatus int32
const (
	RelayOrderStatus_init       RelayOrderStatus = 0
	RelayOrderStatus_pending    RelayOrderStatus = 1
	RelayOrderStatus_locking    RelayOrderStatus = 2
	RelayOrderStatus_confirming RelayOrderStatus = 3
	RelayOrderStatus_finished   RelayOrderStatus = 4
	RelayOrderStatus_canceled   RelayOrderStatus = 5
	RelayOrderStatus_timeout    RelayOrderStatus = 6 // TODO: may not needed?
)

func (RelayOrderStatus) Descriptor added in v1.65.3

func (RelayOrderStatus) Enum added in v1.65.3

func (RelayOrderStatus) EnumDescriptor deprecated

func (RelayOrderStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use RelayOrderStatus.Descriptor instead.

func (RelayOrderStatus) Number added in v1.65.3

func (RelayOrderStatus) String

func (x RelayOrderStatus) String() string

func (RelayOrderStatus) Type added in v1.65.3

type RelayRevoke

type RelayRevoke struct {
	OrderId string `protobuf:"bytes,1,opt,name=orderId,proto3" json:"orderId,omitempty"`
	Target  uint32 `protobuf:"varint,2,opt,name=target,proto3" json:"target,omitempty"` // 0:create , 1: accept
	Action  uint32 `protobuf:"varint,3,opt,name=action,proto3" json:"action,omitempty"` // 0: unlock, 1: cancel (only for creator)
	// contains filtered or unexported fields
}

func (*RelayRevoke) Descriptor deprecated

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

Deprecated: Use RelayRevoke.ProtoReflect.Descriptor instead.

func (*RelayRevoke) GetAction

func (x *RelayRevoke) GetAction() uint32

func (*RelayRevoke) GetOrderId

func (x *RelayRevoke) GetOrderId() string

func (*RelayRevoke) GetTarget

func (x *RelayRevoke) GetTarget() uint32

func (*RelayRevoke) ProtoMessage

func (*RelayRevoke) ProtoMessage()

func (*RelayRevoke) ProtoReflect added in v1.65.3

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

func (*RelayRevoke) Reset

func (x *RelayRevoke) Reset()

func (*RelayRevoke) String

func (x *RelayRevoke) String() string

type RelayType

type RelayType struct {
	types.ExecTypeBase
}

RelayType relay exec type

func NewType

func NewType(cfg *types.Chain33Config) *RelayType

NewType new relay type

func (RelayType) ActionName

func (r RelayType) ActionName(tx *types.Transaction) string

ActionName return action name

func (*RelayType) Amount

func (r *RelayType) Amount(tx *types.Transaction) (int64, error)

Amount return relay create bty amount

func (*RelayType) GetLogMap

func (r *RelayType) GetLogMap() map[int64]*types.LogInfo

GetLogMap return receipt log map function

func (*RelayType) GetName

func (r *RelayType) GetName() string

GetName return relay name

func (*RelayType) GetPayload

func (r *RelayType) GetPayload() types.Message

GetPayload return relay action msg

func (*RelayType) GetTypeMap

func (r *RelayType) GetTypeMap() map[string]int32

GetTypeMap get relay action type map

type RelayVerify

type RelayVerify struct {
	OrderId string          `protobuf:"bytes,1,opt,name=orderId,proto3" json:"orderId,omitempty"`
	Tx      *BtcTransaction `protobuf:"bytes,2,opt,name=tx,proto3" json:"tx,omitempty"`
	Spv     *BtcSpv         `protobuf:"bytes,3,opt,name=spv,proto3" json:"spv,omitempty"`
	// contains filtered or unexported fields
}

relayd提供验证信息

func (*RelayVerify) Descriptor deprecated

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

Deprecated: Use RelayVerify.ProtoReflect.Descriptor instead.

func (*RelayVerify) GetOrderId

func (x *RelayVerify) GetOrderId() string

func (*RelayVerify) GetSpv

func (x *RelayVerify) GetSpv() *BtcSpv

func (*RelayVerify) GetTx

func (x *RelayVerify) GetTx() *BtcTransaction

func (*RelayVerify) ProtoMessage

func (*RelayVerify) ProtoMessage()

func (*RelayVerify) ProtoReflect added in v1.65.3

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

func (*RelayVerify) Reset

func (x *RelayVerify) Reset()

func (*RelayVerify) String

func (x *RelayVerify) String() string

type RelayVerifyCli

type RelayVerifyCli struct {
	OrderId    string `protobuf:"bytes,1,opt,name=orderId,proto3" json:"orderId,omitempty"`
	RawTx      string `protobuf:"bytes,2,opt,name=rawTx,proto3" json:"rawTx,omitempty"`
	TxIndex    uint32 `protobuf:"varint,3,opt,name=txIndex,proto3" json:"txIndex,omitempty"`
	MerkBranch string `protobuf:"bytes,4,opt,name=merkBranch,proto3" json:"merkBranch,omitempty"`
	BlockHash  string `protobuf:"bytes,5,opt,name=blockHash,proto3" json:"blockHash,omitempty"`
	// contains filtered or unexported fields
}

func (*RelayVerifyCli) Descriptor deprecated

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

Deprecated: Use RelayVerifyCli.ProtoReflect.Descriptor instead.

func (*RelayVerifyCli) GetBlockHash

func (x *RelayVerifyCli) GetBlockHash() string

func (*RelayVerifyCli) GetMerkBranch

func (x *RelayVerifyCli) GetMerkBranch() string

func (*RelayVerifyCli) GetOrderId

func (x *RelayVerifyCli) GetOrderId() string

func (*RelayVerifyCli) GetRawTx

func (x *RelayVerifyCli) GetRawTx() string

func (*RelayVerifyCli) GetTxIndex

func (x *RelayVerifyCli) GetTxIndex() uint32

func (*RelayVerifyCli) ProtoMessage

func (*RelayVerifyCli) ProtoMessage()

func (*RelayVerifyCli) ProtoReflect added in v1.65.3

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

func (*RelayVerifyCli) Reset

func (x *RelayVerifyCli) Reset()

func (*RelayVerifyCli) String

func (x *RelayVerifyCli) String() string

type ReplayRelayQryBTCHeadHeight

type ReplayRelayQryBTCHeadHeight struct {
	CurHeight  int64 `protobuf:"varint,1,opt,name=curHeight,proto3" json:"curHeight,omitempty"`   // current height in chain
	BaseHeight int64 `protobuf:"varint,2,opt,name=baseHeight,proto3" json:"baseHeight,omitempty"` // base height means the the 1st head record in chain db
	// contains filtered or unexported fields
}

func (*ReplayRelayQryBTCHeadHeight) Descriptor deprecated

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

Deprecated: Use ReplayRelayQryBTCHeadHeight.ProtoReflect.Descriptor instead.

func (*ReplayRelayQryBTCHeadHeight) GetBaseHeight

func (x *ReplayRelayQryBTCHeadHeight) GetBaseHeight() int64

func (*ReplayRelayQryBTCHeadHeight) GetCurHeight

func (x *ReplayRelayQryBTCHeadHeight) GetCurHeight() int64

func (*ReplayRelayQryBTCHeadHeight) ProtoMessage

func (*ReplayRelayQryBTCHeadHeight) ProtoMessage()

func (*ReplayRelayQryBTCHeadHeight) ProtoReflect added in v1.65.3

func (*ReplayRelayQryBTCHeadHeight) Reset

func (x *ReplayRelayQryBTCHeadHeight) Reset()

func (*ReplayRelayQryBTCHeadHeight) String

func (x *ReplayRelayQryBTCHeadHeight) String() string

type ReplyRelayBtcHeadHeightList

type ReplyRelayBtcHeadHeightList struct {
	Heights []int64 `protobuf:"varint,1,rep,packed,name=heights,proto3" json:"heights,omitempty"`
	// contains filtered or unexported fields
}

func (*ReplyRelayBtcHeadHeightList) Descriptor deprecated

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

Deprecated: Use ReplyRelayBtcHeadHeightList.ProtoReflect.Descriptor instead.

func (*ReplyRelayBtcHeadHeightList) GetHeights

func (x *ReplyRelayBtcHeadHeightList) GetHeights() []int64

func (*ReplyRelayBtcHeadHeightList) ProtoMessage

func (*ReplyRelayBtcHeadHeightList) ProtoMessage()

func (*ReplyRelayBtcHeadHeightList) ProtoReflect added in v1.65.3

func (*ReplyRelayBtcHeadHeightList) Reset

func (x *ReplyRelayBtcHeadHeightList) Reset()

func (*ReplyRelayBtcHeadHeightList) String

func (x *ReplyRelayBtcHeadHeightList) String() string

type ReplyRelayOrders

type ReplyRelayOrders struct {
	Relayorders []*RelayOrder `protobuf:"bytes,1,rep,name=relayorders,proto3" json:"relayorders,omitempty"`
	// contains filtered or unexported fields
}

func (*ReplyRelayOrders) Descriptor deprecated

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

Deprecated: Use ReplyRelayOrders.ProtoReflect.Descriptor instead.

func (*ReplyRelayOrders) GetRelayorders

func (x *ReplyRelayOrders) GetRelayorders() []*RelayOrder

func (*ReplyRelayOrders) ProtoMessage

func (*ReplyRelayOrders) ProtoMessage()

func (*ReplyRelayOrders) ProtoReflect added in v1.65.3

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

func (*ReplyRelayOrders) Reset

func (x *ReplyRelayOrders) Reset()

func (*ReplyRelayOrders) String

func (x *ReplyRelayOrders) String() string

type ReqRelayAddrCoins

type ReqRelayAddrCoins struct {
	Addr       string           `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
	Status     RelayOrderStatus `protobuf:"varint,2,opt,name=status,proto3,enum=types.RelayOrderStatus" json:"status,omitempty"`
	Coins      []string         `protobuf:"bytes,3,rep,name=coins,proto3" json:"coins,omitempty"`
	PageNumber int32            `protobuf:"varint,4,opt,name=pageNumber,proto3" json:"pageNumber,omitempty"`
	PageSize   int32            `protobuf:"varint,5,opt,name=pageSize,proto3" json:"pageSize,omitempty"`
	// contains filtered or unexported fields
}

func (*ReqRelayAddrCoins) Descriptor deprecated

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

Deprecated: Use ReqRelayAddrCoins.ProtoReflect.Descriptor instead.

func (*ReqRelayAddrCoins) GetAddr

func (x *ReqRelayAddrCoins) GetAddr() string

func (*ReqRelayAddrCoins) GetCoins

func (x *ReqRelayAddrCoins) GetCoins() []string

func (*ReqRelayAddrCoins) GetPageNumber

func (x *ReqRelayAddrCoins) GetPageNumber() int32

func (*ReqRelayAddrCoins) GetPageSize

func (x *ReqRelayAddrCoins) GetPageSize() int32

func (*ReqRelayAddrCoins) GetStatus

func (x *ReqRelayAddrCoins) GetStatus() RelayOrderStatus

func (*ReqRelayAddrCoins) ProtoMessage

func (*ReqRelayAddrCoins) ProtoMessage()

func (*ReqRelayAddrCoins) ProtoReflect added in v1.65.3

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

func (*ReqRelayAddrCoins) Reset

func (x *ReqRelayAddrCoins) Reset()

func (*ReqRelayAddrCoins) String

func (x *ReqRelayAddrCoins) String() string

type ReqRelayBtcHeaderHeightList

type ReqRelayBtcHeaderHeightList struct {
	ReqHeight int64 `protobuf:"varint,1,opt,name=reqHeight,proto3" json:"reqHeight,omitempty"`
	Counts    int32 `protobuf:"varint,2,opt,name=counts,proto3" json:"counts,omitempty"`
	Direction int32 `protobuf:"varint,3,opt,name=direction,proto3" json:"direction,omitempty"` // 0: desc, 1: asc
	// contains filtered or unexported fields
}

func (*ReqRelayBtcHeaderHeightList) Descriptor deprecated

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

Deprecated: Use ReqRelayBtcHeaderHeightList.ProtoReflect.Descriptor instead.

func (*ReqRelayBtcHeaderHeightList) GetCounts

func (x *ReqRelayBtcHeaderHeightList) GetCounts() int32

func (*ReqRelayBtcHeaderHeightList) GetDirection

func (x *ReqRelayBtcHeaderHeightList) GetDirection() int32

func (*ReqRelayBtcHeaderHeightList) GetReqHeight

func (x *ReqRelayBtcHeaderHeightList) GetReqHeight() int64

func (*ReqRelayBtcHeaderHeightList) ProtoMessage

func (*ReqRelayBtcHeaderHeightList) ProtoMessage()

func (*ReqRelayBtcHeaderHeightList) ProtoReflect added in v1.65.3

func (*ReqRelayBtcHeaderHeightList) Reset

func (x *ReqRelayBtcHeaderHeightList) Reset()

func (*ReqRelayBtcHeaderHeightList) String

func (x *ReqRelayBtcHeaderHeightList) String() string

type ReqRelayQryBTCHeadHeight

type ReqRelayQryBTCHeadHeight struct {
	BaseHeight int64 `protobuf:"varint,1,opt,name=baseHeight,proto3" json:"baseHeight,omitempty"` // from the baseHeight begin, if any
	// contains filtered or unexported fields
}

func (*ReqRelayQryBTCHeadHeight) Descriptor deprecated

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

Deprecated: Use ReqRelayQryBTCHeadHeight.ProtoReflect.Descriptor instead.

func (*ReqRelayQryBTCHeadHeight) GetBaseHeight

func (x *ReqRelayQryBTCHeadHeight) GetBaseHeight() int64

func (*ReqRelayQryBTCHeadHeight) ProtoMessage

func (*ReqRelayQryBTCHeadHeight) ProtoMessage()

func (*ReqRelayQryBTCHeadHeight) ProtoReflect added in v1.65.3

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

func (*ReqRelayQryBTCHeadHeight) Reset

func (x *ReqRelayQryBTCHeadHeight) Reset()

func (*ReqRelayQryBTCHeadHeight) String

func (x *ReqRelayQryBTCHeadHeight) String() string

type Vin

type Vin struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Value   uint64 `protobuf:"varint,2,opt,name=Value,proto3" json:"Value,omitempty"`
	// contains filtered or unexported fields
}

func (*Vin) Descriptor deprecated

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

Deprecated: Use Vin.ProtoReflect.Descriptor instead.

func (*Vin) GetAddress

func (x *Vin) GetAddress() string

func (*Vin) GetValue

func (x *Vin) GetValue() uint64

func (*Vin) ProtoMessage

func (*Vin) ProtoMessage()

func (*Vin) ProtoReflect added in v1.65.3

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

func (*Vin) Reset

func (x *Vin) Reset()

func (*Vin) String

func (x *Vin) String() string

type Vout

type Vout struct {
	Coinbase bool   `protobuf:"varint,1,opt,name=coinbase,proto3" json:"coinbase,omitempty"`
	Address  string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	Value    uint64 `protobuf:"varint,3,opt,name=Value,proto3" json:"Value,omitempty"`
	// contains filtered or unexported fields
}

func (*Vout) Descriptor deprecated

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

Deprecated: Use Vout.ProtoReflect.Descriptor instead.

func (*Vout) GetAddress

func (x *Vout) GetAddress() string

func (*Vout) GetCoinbase

func (x *Vout) GetCoinbase() bool

func (*Vout) GetValue

func (x *Vout) GetValue() uint64

func (*Vout) ProtoMessage

func (*Vout) ProtoMessage()

func (*Vout) ProtoReflect added in v1.65.3

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

func (*Vout) Reset

func (x *Vout) Reset()

func (*Vout) String

func (x *Vout) String() string

Jump to

Keyboard shortcuts

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