types

package
v6.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2019 License: BSD-3-Clause Imports: 7 Imported by: 0

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 RelayOrderOperation = map[uint32]string{
	RelayOrderBuy:  "buy",
	RelayOrderSell: "sell",
}

RelayOrderOperation buy or sell operation

View Source
var RelayOrderStatus_name = map[int32]string{
	0: "init",
	1: "pending",
	2: "locking",
	3: "confirming",
	4: "finished",
	5: "canceled",
	6: "timeout",
}
View Source
var RelayOrderStatus_value = map[string]int32{
	"init":       0,
	"pending":    1,
	"locking":    2,
	"confirming": 3,
	"finished":   4,
	"canceled":   5,
	"timeout":    6,
}
View Source
var RelayX = "relay"

RelayX name for executor

Functions

This section is empty.

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*BtcHeader) Descriptor

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

func (*BtcHeader) GetBits

func (m *BtcHeader) GetBits() int64

func (*BtcHeader) GetConfirmations

func (m *BtcHeader) GetConfirmations() uint64

func (*BtcHeader) GetDifficulty

func (m *BtcHeader) GetDifficulty() int64

func (*BtcHeader) GetHash

func (m *BtcHeader) GetHash() string

func (*BtcHeader) GetHeight

func (m *BtcHeader) GetHeight() uint64

func (*BtcHeader) GetIsReset

func (m *BtcHeader) GetIsReset() bool

func (*BtcHeader) GetMerkleRoot

func (m *BtcHeader) GetMerkleRoot() string

func (*BtcHeader) GetNextHash

func (m *BtcHeader) GetNextHash() string

func (*BtcHeader) GetNonce

func (m *BtcHeader) GetNonce() uint64

func (*BtcHeader) GetPreviousHash

func (m *BtcHeader) GetPreviousHash() string

func (*BtcHeader) GetTime

func (m *BtcHeader) GetTime() int64

func (*BtcHeader) GetVersion

func (m *BtcHeader) GetVersion() uint32

func (*BtcHeader) ProtoMessage

func (*BtcHeader) ProtoMessage()

func (*BtcHeader) Reset

func (m *BtcHeader) Reset()

func (*BtcHeader) String

func (m *BtcHeader) String() string

func (*BtcHeader) XXX_DiscardUnknown

func (m *BtcHeader) XXX_DiscardUnknown()

func (*BtcHeader) XXX_Marshal

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

func (*BtcHeader) XXX_Merge

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

func (*BtcHeader) XXX_Size

func (m *BtcHeader) XXX_Size() int

func (*BtcHeader) XXX_Unmarshal

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

type BtcHeaders

type BtcHeaders struct {
	BtcHeader            []*BtcHeader `protobuf:"bytes,1,rep,name=btcHeader,proto3" json:"btcHeader,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*BtcHeaders) Descriptor

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

func (*BtcHeaders) GetBtcHeader

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

func (*BtcHeaders) ProtoMessage

func (*BtcHeaders) ProtoMessage()

func (*BtcHeaders) Reset

func (m *BtcHeaders) Reset()

func (*BtcHeaders) String

func (m *BtcHeaders) String() string

func (*BtcHeaders) XXX_DiscardUnknown

func (m *BtcHeaders) XXX_DiscardUnknown()

func (*BtcHeaders) XXX_Marshal

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

func (*BtcHeaders) XXX_Merge

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

func (*BtcHeaders) XXX_Size

func (m *BtcHeaders) XXX_Size() int

func (*BtcHeaders) XXX_Unmarshal

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

type BtcSpv

type BtcSpv struct {
	Hash                 string   `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*BtcSpv) Descriptor

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

func (*BtcSpv) GetBlockHash

func (m *BtcSpv) GetBlockHash() string

func (*BtcSpv) GetBranchProof

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

func (*BtcSpv) GetHash

func (m *BtcSpv) GetHash() string

func (*BtcSpv) GetHeight

func (m *BtcSpv) GetHeight() uint64

func (*BtcSpv) GetTime

func (m *BtcSpv) GetTime() int64

func (*BtcSpv) GetTxIndex

func (m *BtcSpv) GetTxIndex() uint32

func (*BtcSpv) ProtoMessage

func (*BtcSpv) ProtoMessage()

func (*BtcSpv) Reset

func (m *BtcSpv) Reset()

func (*BtcSpv) String

func (m *BtcSpv) String() string

func (*BtcSpv) XXX_DiscardUnknown

func (m *BtcSpv) XXX_DiscardUnknown()

func (*BtcSpv) XXX_Marshal

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

func (*BtcSpv) XXX_Merge

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

func (*BtcSpv) XXX_Size

func (m *BtcSpv) XXX_Size() int

func (*BtcSpv) XXX_Unmarshal

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

type BtcTransaction

type BtcTransaction struct {
	Hash                 string   `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*BtcTransaction) Descriptor

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

func (*BtcTransaction) GetBlockHeight

func (m *BtcTransaction) GetBlockHeight() uint64

func (*BtcTransaction) GetConfirmations

func (m *BtcTransaction) GetConfirmations() uint64

func (*BtcTransaction) GetHash

func (m *BtcTransaction) GetHash() string

func (*BtcTransaction) GetTime

func (m *BtcTransaction) GetTime() int64

func (*BtcTransaction) GetVin

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

func (*BtcTransaction) GetVout

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

func (*BtcTransaction) ProtoMessage

func (*BtcTransaction) ProtoMessage()

func (*BtcTransaction) Reset

func (m *BtcTransaction) Reset()

func (*BtcTransaction) String

func (m *BtcTransaction) String() string

func (*BtcTransaction) XXX_DiscardUnknown

func (m *BtcTransaction) XXX_DiscardUnknown()

func (*BtcTransaction) XXX_Marshal

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

func (*BtcTransaction) XXX_Merge

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

func (*BtcTransaction) XXX_Size

func (m *BtcTransaction) XXX_Size() int

func (*BtcTransaction) XXX_Unmarshal

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

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"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

func (*QueryRelayOrderParam) Descriptor

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

func (*QueryRelayOrderParam) GetOrderId

func (m *QueryRelayOrderParam) GetOrderId() string

func (*QueryRelayOrderParam) GetStatus

func (m *QueryRelayOrderParam) GetStatus() RelayOrderStatus

func (*QueryRelayOrderParam) ProtoMessage

func (*QueryRelayOrderParam) ProtoMessage()

func (*QueryRelayOrderParam) Reset

func (m *QueryRelayOrderParam) Reset()

func (*QueryRelayOrderParam) String

func (m *QueryRelayOrderParam) String() string

func (*QueryRelayOrderParam) XXX_DiscardUnknown

func (m *QueryRelayOrderParam) XXX_DiscardUnknown()

func (*QueryRelayOrderParam) XXX_Marshal

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

func (*QueryRelayOrderParam) XXX_Merge

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

func (*QueryRelayOrderParam) XXX_Size

func (m *QueryRelayOrderParam) XXX_Size() int

func (*QueryRelayOrderParam) XXX_Unmarshal

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

type QueryRelayOrderResult

type QueryRelayOrderResult struct {
	Orders               []*RelayOrder `protobuf:"bytes,1,rep,name=orders,proto3" json:"orders,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (*QueryRelayOrderResult) Descriptor

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

func (*QueryRelayOrderResult) GetOrders

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

func (*QueryRelayOrderResult) ProtoMessage

func (*QueryRelayOrderResult) ProtoMessage()

func (*QueryRelayOrderResult) Reset

func (m *QueryRelayOrderResult) Reset()

func (*QueryRelayOrderResult) String

func (m *QueryRelayOrderResult) String() string

func (*QueryRelayOrderResult) XXX_DiscardUnknown

func (m *QueryRelayOrderResult) XXX_DiscardUnknown()

func (*QueryRelayOrderResult) XXX_Marshal

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

func (*QueryRelayOrderResult) XXX_Merge

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

func (*QueryRelayOrderResult) XXX_Size

func (m *QueryRelayOrderResult) XXX_Size() int

func (*QueryRelayOrderResult) XXX_Unmarshal

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

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"`
	TxAmount             string   `protobuf:"bytes,4,opt,name=txAmount,proto3" json:"txAmount,omitempty"`
	CreaterAddr          string   `protobuf:"bytes,5,opt,name=createrAddr,proto3" json:"createrAddr,omitempty"`
	CoinOperation        string   `protobuf:"bytes,6,opt,name=coinOperation,proto3" json:"coinOperation,omitempty"`
	Coin                 string   `protobuf:"bytes,7,opt,name=coin,proto3" json:"coin,omitempty"`
	CoinAmount           string   `protobuf:"bytes,8,opt,name=coinAmount,proto3" json:"coinAmount,omitempty"`
	CoinAddr             string   `protobuf:"bytes,9,opt,name=coinAddr,proto3" json:"coinAddr,omitempty"`
	CoinTxHash           string   `protobuf:"bytes,10,opt,name=coinTxHash,proto3" json:"coinTxHash,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"`
	CoinHeight           uint64   `protobuf:"varint,17,opt,name=coinHeight,proto3" json:"coinHeight,omitempty"`
	CoinWaits            uint32   `protobuf:"varint,18,opt,name=coinWaits,proto3" json:"coinWaits,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReceiptRelayLog) Descriptor

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

func (*ReceiptRelayLog) GetAcceptAddr

func (m *ReceiptRelayLog) GetAcceptAddr() string

func (*ReceiptRelayLog) GetAcceptTime

func (m *ReceiptRelayLog) GetAcceptTime() int64

func (*ReceiptRelayLog) GetCoin

func (m *ReceiptRelayLog) GetCoin() string

func (*ReceiptRelayLog) GetCoinAddr

func (m *ReceiptRelayLog) GetCoinAddr() string

func (*ReceiptRelayLog) GetCoinAmount

func (m *ReceiptRelayLog) GetCoinAmount() string

func (*ReceiptRelayLog) GetCoinHeight

func (m *ReceiptRelayLog) GetCoinHeight() uint64

func (*ReceiptRelayLog) GetCoinOperation

func (m *ReceiptRelayLog) GetCoinOperation() string

func (*ReceiptRelayLog) GetCoinTxHash

func (m *ReceiptRelayLog) GetCoinTxHash() string

func (*ReceiptRelayLog) GetCoinWaits

func (m *ReceiptRelayLog) GetCoinWaits() uint32

func (*ReceiptRelayLog) GetConfirmTime

func (m *ReceiptRelayLog) GetConfirmTime() int64

func (*ReceiptRelayLog) GetCreateTime

func (m *ReceiptRelayLog) GetCreateTime() int64

func (*ReceiptRelayLog) GetCreaterAddr

func (m *ReceiptRelayLog) GetCreaterAddr() string

func (*ReceiptRelayLog) GetCurStatus

func (m *ReceiptRelayLog) GetCurStatus() string

func (*ReceiptRelayLog) GetFinishTime

func (m *ReceiptRelayLog) GetFinishTime() int64

func (*ReceiptRelayLog) GetFinishTxHash

func (m *ReceiptRelayLog) GetFinishTxHash() string

func (*ReceiptRelayLog) GetOrderId

func (m *ReceiptRelayLog) GetOrderId() string

func (*ReceiptRelayLog) GetPreStatus

func (m *ReceiptRelayLog) GetPreStatus() string

func (*ReceiptRelayLog) GetTxAmount

func (m *ReceiptRelayLog) GetTxAmount() string

func (*ReceiptRelayLog) ProtoMessage

func (*ReceiptRelayLog) ProtoMessage()

func (*ReceiptRelayLog) Reset

func (m *ReceiptRelayLog) Reset()

func (*ReceiptRelayLog) String

func (m *ReceiptRelayLog) String() string

func (*ReceiptRelayLog) XXX_DiscardUnknown

func (m *ReceiptRelayLog) XXX_DiscardUnknown()

func (*ReceiptRelayLog) XXX_Marshal

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

func (*ReceiptRelayLog) XXX_Merge

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

func (*ReceiptRelayLog) XXX_Size

func (m *ReceiptRelayLog) XXX_Size() int

func (*ReceiptRelayLog) XXX_Unmarshal

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

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"`
	NewHeight            uint64       `protobuf:"varint,3,opt,name=newHeight,proto3" json:"newHeight,omitempty"`
	LastBaseHeight       uint64       `protobuf:"varint,4,opt,name=lastBaseHeight,proto3" json:"lastBaseHeight,omitempty"`
	NewBaseHeight        uint64       `protobuf:"varint,5,opt,name=newBaseHeight,proto3" json:"newBaseHeight,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*ReceiptRelayRcvBTCHeaders) Descriptor

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

func (*ReceiptRelayRcvBTCHeaders) GetHeaders

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

func (*ReceiptRelayRcvBTCHeaders) GetLastBaseHeight

func (m *ReceiptRelayRcvBTCHeaders) GetLastBaseHeight() uint64

func (*ReceiptRelayRcvBTCHeaders) GetLastHeight

func (m *ReceiptRelayRcvBTCHeaders) GetLastHeight() uint64

func (*ReceiptRelayRcvBTCHeaders) GetNewBaseHeight

func (m *ReceiptRelayRcvBTCHeaders) GetNewBaseHeight() uint64

func (*ReceiptRelayRcvBTCHeaders) GetNewHeight

func (m *ReceiptRelayRcvBTCHeaders) GetNewHeight() uint64

func (*ReceiptRelayRcvBTCHeaders) ProtoMessage

func (*ReceiptRelayRcvBTCHeaders) ProtoMessage()

func (*ReceiptRelayRcvBTCHeaders) Reset

func (m *ReceiptRelayRcvBTCHeaders) Reset()

func (*ReceiptRelayRcvBTCHeaders) String

func (m *ReceiptRelayRcvBTCHeaders) String() string

func (*ReceiptRelayRcvBTCHeaders) XXX_DiscardUnknown

func (m *ReceiptRelayRcvBTCHeaders) XXX_DiscardUnknown()

func (*ReceiptRelayRcvBTCHeaders) XXX_Marshal

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

func (*ReceiptRelayRcvBTCHeaders) XXX_Merge

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

func (*ReceiptRelayRcvBTCHeaders) XXX_Size

func (m *ReceiptRelayRcvBTCHeaders) XXX_Size() int

func (*ReceiptRelayRcvBTCHeaders) XXX_Unmarshal

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

type RelayAccept

type RelayAccept struct {
	OrderId              string   `protobuf:"bytes,1,opt,name=orderId,proto3" json:"orderId,omitempty"`
	CoinAddr             string   `protobuf:"bytes,2,opt,name=coinAddr,proto3" json:"coinAddr,omitempty"`
	CoinWaits            uint32   `protobuf:"varint,3,opt,name=coinWaits,proto3" json:"coinWaits,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RelayAccept) Descriptor

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

func (*RelayAccept) GetCoinAddr

func (m *RelayAccept) GetCoinAddr() string

func (*RelayAccept) GetCoinWaits

func (m *RelayAccept) GetCoinWaits() uint32

func (*RelayAccept) GetOrderId

func (m *RelayAccept) GetOrderId() string

func (*RelayAccept) ProtoMessage

func (*RelayAccept) ProtoMessage()

func (*RelayAccept) Reset

func (m *RelayAccept) Reset()

func (*RelayAccept) String

func (m *RelayAccept) String() string

func (*RelayAccept) XXX_DiscardUnknown

func (m *RelayAccept) XXX_DiscardUnknown()

func (*RelayAccept) XXX_Marshal

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

func (*RelayAccept) XXX_Merge

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

func (*RelayAccept) XXX_Size

func (m *RelayAccept) XXX_Size() int

func (*RelayAccept) XXX_Unmarshal

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

type RelayAction

type RelayAction struct {
	// Types that are valid to be assigned 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"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

func (*RelayAction) Descriptor

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

func (*RelayAction) GetAccept

func (m *RelayAction) GetAccept() *RelayAccept

func (*RelayAction) GetBtcHeaders

func (m *RelayAction) GetBtcHeaders() *BtcHeaders

func (*RelayAction) GetConfirmTx

func (m *RelayAction) GetConfirmTx() *RelayConfirmTx

func (*RelayAction) GetCreate

func (m *RelayAction) GetCreate() *RelayCreate

func (*RelayAction) GetRevoke

func (m *RelayAction) GetRevoke() *RelayRevoke

func (*RelayAction) GetTy

func (m *RelayAction) GetTy() int32

func (*RelayAction) GetValue

func (m *RelayAction) GetValue() isRelayAction_Value

func (*RelayAction) GetVerify

func (m *RelayAction) GetVerify() *RelayVerify

func (*RelayAction) GetVerifyCli

func (m *RelayAction) GetVerifyCli() *RelayVerifyCli

func (*RelayAction) ProtoMessage

func (*RelayAction) ProtoMessage()

func (*RelayAction) Reset

func (m *RelayAction) Reset()

func (*RelayAction) String

func (m *RelayAction) String() string

func (*RelayAction) XXX_DiscardUnknown

func (m *RelayAction) XXX_DiscardUnknown()

func (*RelayAction) XXX_Marshal

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

func (*RelayAction) XXX_Merge

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

func (*RelayAction) XXX_OneofFuncs

func (*RelayAction) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*RelayAction) XXX_Size

func (m *RelayAction) XXX_Size() int

func (*RelayAction) XXX_Unmarshal

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

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

func (*RelayConfirmTx) Descriptor

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

func (*RelayConfirmTx) GetOrderId

func (m *RelayConfirmTx) GetOrderId() string

func (*RelayConfirmTx) GetTxHash

func (m *RelayConfirmTx) GetTxHash() string

func (*RelayConfirmTx) ProtoMessage

func (*RelayConfirmTx) ProtoMessage()

func (*RelayConfirmTx) Reset

func (m *RelayConfirmTx) Reset()

func (*RelayConfirmTx) String

func (m *RelayConfirmTx) String() string

func (*RelayConfirmTx) XXX_DiscardUnknown

func (m *RelayConfirmTx) XXX_DiscardUnknown()

func (*RelayConfirmTx) XXX_Marshal

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

func (*RelayConfirmTx) XXX_Merge

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

func (*RelayConfirmTx) XXX_Size

func (m *RelayConfirmTx) XXX_Size() int

func (*RelayConfirmTx) XXX_Unmarshal

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

type RelayCreate

type RelayCreate struct {
	Operation            uint32   `protobuf:"varint,1,opt,name=operation,proto3" json:"operation,omitempty"`
	Coin                 string   `protobuf:"bytes,2,opt,name=coin,proto3" json:"coin,omitempty"`
	Amount               uint64   `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
	Addr                 string   `protobuf:"bytes,4,opt,name=addr,proto3" json:"addr,omitempty"`
	BtyAmount            uint64   `protobuf:"varint,5,opt,name=btyAmount,proto3" json:"btyAmount,omitempty"`
	CoinWaits            uint32   `protobuf:"varint,6,opt,name=coinWaits,proto3" json:"coinWaits,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RelayCreate) Descriptor

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

func (*RelayCreate) GetAddr

func (m *RelayCreate) GetAddr() string

func (*RelayCreate) GetAmount

func (m *RelayCreate) GetAmount() uint64

func (*RelayCreate) GetBtyAmount

func (m *RelayCreate) GetBtyAmount() uint64

func (*RelayCreate) GetCoin

func (m *RelayCreate) GetCoin() string

func (*RelayCreate) GetCoinWaits

func (m *RelayCreate) GetCoinWaits() uint32

func (*RelayCreate) GetOperation

func (m *RelayCreate) GetOperation() uint32

func (*RelayCreate) ProtoMessage

func (*RelayCreate) ProtoMessage()

func (*RelayCreate) Reset

func (m *RelayCreate) Reset()

func (*RelayCreate) String

func (m *RelayCreate) String() string

func (*RelayCreate) XXX_DiscardUnknown

func (m *RelayCreate) XXX_DiscardUnknown()

func (*RelayCreate) XXX_Marshal

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

func (*RelayCreate) XXX_Merge

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

func (*RelayCreate) XXX_Size

func (m *RelayCreate) XXX_Size() int

func (*RelayCreate) XXX_Unmarshal

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

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"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func (*RelayLastRcvBtcHeader) Descriptor

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

func (*RelayLastRcvBtcHeader) GetBaseHeight

func (m *RelayLastRcvBtcHeader) GetBaseHeight() uint64

func (*RelayLastRcvBtcHeader) GetHeader

func (m *RelayLastRcvBtcHeader) GetHeader() *BtcHeader

func (*RelayLastRcvBtcHeader) ProtoMessage

func (*RelayLastRcvBtcHeader) ProtoMessage()

func (*RelayLastRcvBtcHeader) Reset

func (m *RelayLastRcvBtcHeader) Reset()

func (*RelayLastRcvBtcHeader) String

func (m *RelayLastRcvBtcHeader) String() string

func (*RelayLastRcvBtcHeader) XXX_DiscardUnknown

func (m *RelayLastRcvBtcHeader) XXX_DiscardUnknown()

func (*RelayLastRcvBtcHeader) XXX_Marshal

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

func (*RelayLastRcvBtcHeader) XXX_Merge

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

func (*RelayLastRcvBtcHeader) XXX_Size

func (m *RelayLastRcvBtcHeader) XXX_Size() int

func (*RelayLastRcvBtcHeader) XXX_Unmarshal

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

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"`
	Amount               uint64           `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,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"`
	Coin                 string           `protobuf:"bytes,7,opt,name=coin,proto3" json:"coin,omitempty"`
	CoinAmount           uint64           `protobuf:"varint,8,opt,name=coinAmount,proto3" json:"coinAmount,omitempty"`
	CoinAddr             string           `protobuf:"bytes,9,opt,name=coinAddr,proto3" json:"coinAddr,omitempty"`
	CoinTxHash           string           `protobuf:"bytes,10,opt,name=coinTxHash,proto3" json:"coinTxHash,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"`
	CoinHeight           uint64           `protobuf:"varint,18,opt,name=coinHeight,proto3" json:"coinHeight,omitempty"`
	CoinWaits            uint32           `protobuf:"varint,19,opt,name=coinWaits,proto3" json:"coinWaits,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

func (*RelayOrder) Descriptor

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

func (*RelayOrder) GetAcceptAddr

func (m *RelayOrder) GetAcceptAddr() string

func (*RelayOrder) GetAcceptTime

func (m *RelayOrder) GetAcceptTime() int64

func (*RelayOrder) GetAmount

func (m *RelayOrder) GetAmount() uint64

func (*RelayOrder) GetCoin

func (m *RelayOrder) GetCoin() string

func (*RelayOrder) GetCoinAddr

func (m *RelayOrder) GetCoinAddr() string

func (*RelayOrder) GetCoinAmount

func (m *RelayOrder) GetCoinAmount() uint64

func (*RelayOrder) GetCoinHeight

func (m *RelayOrder) GetCoinHeight() uint64

func (*RelayOrder) GetCoinOperation

func (m *RelayOrder) GetCoinOperation() uint32

func (*RelayOrder) GetCoinTxHash

func (m *RelayOrder) GetCoinTxHash() string

func (*RelayOrder) GetCoinWaits

func (m *RelayOrder) GetCoinWaits() uint32

func (*RelayOrder) GetConfirmTime

func (m *RelayOrder) GetConfirmTime() int64

func (*RelayOrder) GetCreateTime

func (m *RelayOrder) GetCreateTime() int64

func (*RelayOrder) GetCreaterAddr

func (m *RelayOrder) GetCreaterAddr() string

func (*RelayOrder) GetFinishTime

func (m *RelayOrder) GetFinishTime() int64

func (*RelayOrder) GetFinishTxHash

func (m *RelayOrder) GetFinishTxHash() string

func (*RelayOrder) GetHeight

func (m *RelayOrder) GetHeight() int64

func (*RelayOrder) GetId

func (m *RelayOrder) GetId() string

func (*RelayOrder) GetPreStatus

func (m *RelayOrder) GetPreStatus() RelayOrderStatus

func (*RelayOrder) GetStatus

func (m *RelayOrder) GetStatus() RelayOrderStatus

func (*RelayOrder) ProtoMessage

func (*RelayOrder) ProtoMessage()

func (*RelayOrder) Reset

func (m *RelayOrder) Reset()

func (*RelayOrder) String

func (m *RelayOrder) String() string

func (*RelayOrder) XXX_DiscardUnknown

func (m *RelayOrder) XXX_DiscardUnknown()

func (*RelayOrder) XXX_Marshal

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

func (*RelayOrder) XXX_Merge

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

func (*RelayOrder) XXX_Size

func (m *RelayOrder) XXX_Size() int

func (*RelayOrder) XXX_Unmarshal

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

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
)

func (RelayOrderStatus) EnumDescriptor

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

func (RelayOrderStatus) String

func (x RelayOrderStatus) String() string

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"`
	Action               uint32   `protobuf:"varint,3,opt,name=action,proto3" json:"action,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RelayRevoke) Descriptor

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

func (*RelayRevoke) GetAction

func (m *RelayRevoke) GetAction() uint32

func (*RelayRevoke) GetOrderId

func (m *RelayRevoke) GetOrderId() string

func (*RelayRevoke) GetTarget

func (m *RelayRevoke) GetTarget() uint32

func (*RelayRevoke) ProtoMessage

func (*RelayRevoke) ProtoMessage()

func (*RelayRevoke) Reset

func (m *RelayRevoke) Reset()

func (*RelayRevoke) String

func (m *RelayRevoke) String() string

func (*RelayRevoke) XXX_DiscardUnknown

func (m *RelayRevoke) XXX_DiscardUnknown()

func (*RelayRevoke) XXX_Marshal

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

func (*RelayRevoke) XXX_Merge

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

func (*RelayRevoke) XXX_Size

func (m *RelayRevoke) XXX_Size() int

func (*RelayRevoke) XXX_Unmarshal

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

type RelayType

type RelayType struct {
	types.ExecTypeBase
}

RelayType relay exec type

func NewType

func NewType() *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) CreateTx

func (r *RelayType) CreateTx(action string, message json.RawMessage) (*types.Transaction, error)

CreateTx relay create tx TODO 暂时不修改实现, 先完成结构的重构

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"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

relayd提供验证信息

func (*RelayVerify) Descriptor

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

func (*RelayVerify) GetOrderId

func (m *RelayVerify) GetOrderId() string

func (*RelayVerify) GetSpv

func (m *RelayVerify) GetSpv() *BtcSpv

func (*RelayVerify) GetTx

func (m *RelayVerify) GetTx() *BtcTransaction

func (*RelayVerify) ProtoMessage

func (*RelayVerify) ProtoMessage()

func (*RelayVerify) Reset

func (m *RelayVerify) Reset()

func (*RelayVerify) String

func (m *RelayVerify) String() string

func (*RelayVerify) XXX_DiscardUnknown

func (m *RelayVerify) XXX_DiscardUnknown()

func (*RelayVerify) XXX_Marshal

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

func (*RelayVerify) XXX_Merge

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

func (*RelayVerify) XXX_Size

func (m *RelayVerify) XXX_Size() int

func (*RelayVerify) XXX_Unmarshal

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

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RelayVerifyCli) Descriptor

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

func (*RelayVerifyCli) GetBlockHash

func (m *RelayVerifyCli) GetBlockHash() string

func (*RelayVerifyCli) GetMerkBranch

func (m *RelayVerifyCli) GetMerkBranch() string

func (*RelayVerifyCli) GetOrderId

func (m *RelayVerifyCli) GetOrderId() string

func (*RelayVerifyCli) GetRawTx

func (m *RelayVerifyCli) GetRawTx() string

func (*RelayVerifyCli) GetTxIndex

func (m *RelayVerifyCli) GetTxIndex() uint32

func (*RelayVerifyCli) ProtoMessage

func (*RelayVerifyCli) ProtoMessage()

func (*RelayVerifyCli) Reset

func (m *RelayVerifyCli) Reset()

func (*RelayVerifyCli) String

func (m *RelayVerifyCli) String() string

func (*RelayVerifyCli) XXX_DiscardUnknown

func (m *RelayVerifyCli) XXX_DiscardUnknown()

func (*RelayVerifyCli) XXX_Marshal

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

func (*RelayVerifyCli) XXX_Merge

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

func (*RelayVerifyCli) XXX_Size

func (m *RelayVerifyCli) XXX_Size() int

func (*RelayVerifyCli) XXX_Unmarshal

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

type ReplayRelayQryBTCHeadHeight

type ReplayRelayQryBTCHeadHeight struct {
	CurHeight            int64    `protobuf:"varint,1,opt,name=curHeight,proto3" json:"curHeight,omitempty"`
	BaseHeight           int64    `protobuf:"varint,2,opt,name=baseHeight,proto3" json:"baseHeight,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReplayRelayQryBTCHeadHeight) Descriptor

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

func (*ReplayRelayQryBTCHeadHeight) GetBaseHeight

func (m *ReplayRelayQryBTCHeadHeight) GetBaseHeight() int64

func (*ReplayRelayQryBTCHeadHeight) GetCurHeight

func (m *ReplayRelayQryBTCHeadHeight) GetCurHeight() int64

func (*ReplayRelayQryBTCHeadHeight) ProtoMessage

func (*ReplayRelayQryBTCHeadHeight) ProtoMessage()

func (*ReplayRelayQryBTCHeadHeight) Reset

func (m *ReplayRelayQryBTCHeadHeight) Reset()

func (*ReplayRelayQryBTCHeadHeight) String

func (m *ReplayRelayQryBTCHeadHeight) String() string

func (*ReplayRelayQryBTCHeadHeight) XXX_DiscardUnknown

func (m *ReplayRelayQryBTCHeadHeight) XXX_DiscardUnknown()

func (*ReplayRelayQryBTCHeadHeight) XXX_Marshal

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

func (*ReplayRelayQryBTCHeadHeight) XXX_Merge

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

func (*ReplayRelayQryBTCHeadHeight) XXX_Size

func (m *ReplayRelayQryBTCHeadHeight) XXX_Size() int

func (*ReplayRelayQryBTCHeadHeight) XXX_Unmarshal

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

type ReplyRelayBtcHeadHeightList

type ReplyRelayBtcHeadHeightList struct {
	Heights              []int64  `protobuf:"varint,1,rep,packed,name=heights,proto3" json:"heights,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReplyRelayBtcHeadHeightList) Descriptor

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

func (*ReplyRelayBtcHeadHeightList) GetHeights

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

func (*ReplyRelayBtcHeadHeightList) ProtoMessage

func (*ReplyRelayBtcHeadHeightList) ProtoMessage()

func (*ReplyRelayBtcHeadHeightList) Reset

func (m *ReplyRelayBtcHeadHeightList) Reset()

func (*ReplyRelayBtcHeadHeightList) String

func (m *ReplyRelayBtcHeadHeightList) String() string

func (*ReplyRelayBtcHeadHeightList) XXX_DiscardUnknown

func (m *ReplyRelayBtcHeadHeightList) XXX_DiscardUnknown()

func (*ReplyRelayBtcHeadHeightList) XXX_Marshal

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

func (*ReplyRelayBtcHeadHeightList) XXX_Merge

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

func (*ReplyRelayBtcHeadHeightList) XXX_Size

func (m *ReplyRelayBtcHeadHeightList) XXX_Size() int

func (*ReplyRelayBtcHeadHeightList) XXX_Unmarshal

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

type ReplyRelayOrders

type ReplyRelayOrders struct {
	Relayorders          []*RelayOrder `protobuf:"bytes,1,rep,name=relayorders,proto3" json:"relayorders,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (*ReplyRelayOrders) Descriptor

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

func (*ReplyRelayOrders) GetRelayorders

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

func (*ReplyRelayOrders) ProtoMessage

func (*ReplyRelayOrders) ProtoMessage()

func (*ReplyRelayOrders) Reset

func (m *ReplyRelayOrders) Reset()

func (*ReplyRelayOrders) String

func (m *ReplyRelayOrders) String() string

func (*ReplyRelayOrders) XXX_DiscardUnknown

func (m *ReplyRelayOrders) XXX_DiscardUnknown()

func (*ReplyRelayOrders) XXX_Marshal

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

func (*ReplyRelayOrders) XXX_Merge

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

func (*ReplyRelayOrders) XXX_Size

func (m *ReplyRelayOrders) XXX_Size() int

func (*ReplyRelayOrders) XXX_Unmarshal

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

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"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

func (*ReqRelayAddrCoins) Descriptor

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

func (*ReqRelayAddrCoins) GetAddr

func (m *ReqRelayAddrCoins) GetAddr() string

func (*ReqRelayAddrCoins) GetCoins

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

func (*ReqRelayAddrCoins) GetPageNumber

func (m *ReqRelayAddrCoins) GetPageNumber() int32

func (*ReqRelayAddrCoins) GetPageSize

func (m *ReqRelayAddrCoins) GetPageSize() int32

func (*ReqRelayAddrCoins) GetStatus

func (m *ReqRelayAddrCoins) GetStatus() RelayOrderStatus

func (*ReqRelayAddrCoins) ProtoMessage

func (*ReqRelayAddrCoins) ProtoMessage()

func (*ReqRelayAddrCoins) Reset

func (m *ReqRelayAddrCoins) Reset()

func (*ReqRelayAddrCoins) String

func (m *ReqRelayAddrCoins) String() string

func (*ReqRelayAddrCoins) XXX_DiscardUnknown

func (m *ReqRelayAddrCoins) XXX_DiscardUnknown()

func (*ReqRelayAddrCoins) XXX_Marshal

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

func (*ReqRelayAddrCoins) XXX_Merge

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

func (*ReqRelayAddrCoins) XXX_Size

func (m *ReqRelayAddrCoins) XXX_Size() int

func (*ReqRelayAddrCoins) XXX_Unmarshal

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

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReqRelayBtcHeaderHeightList) Descriptor

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

func (*ReqRelayBtcHeaderHeightList) GetCounts

func (m *ReqRelayBtcHeaderHeightList) GetCounts() int32

func (*ReqRelayBtcHeaderHeightList) GetDirection

func (m *ReqRelayBtcHeaderHeightList) GetDirection() int32

func (*ReqRelayBtcHeaderHeightList) GetReqHeight

func (m *ReqRelayBtcHeaderHeightList) GetReqHeight() int64

func (*ReqRelayBtcHeaderHeightList) ProtoMessage

func (*ReqRelayBtcHeaderHeightList) ProtoMessage()

func (*ReqRelayBtcHeaderHeightList) Reset

func (m *ReqRelayBtcHeaderHeightList) Reset()

func (*ReqRelayBtcHeaderHeightList) String

func (m *ReqRelayBtcHeaderHeightList) String() string

func (*ReqRelayBtcHeaderHeightList) XXX_DiscardUnknown

func (m *ReqRelayBtcHeaderHeightList) XXX_DiscardUnknown()

func (*ReqRelayBtcHeaderHeightList) XXX_Marshal

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

func (*ReqRelayBtcHeaderHeightList) XXX_Merge

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

func (*ReqRelayBtcHeaderHeightList) XXX_Size

func (m *ReqRelayBtcHeaderHeightList) XXX_Size() int

func (*ReqRelayBtcHeaderHeightList) XXX_Unmarshal

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

type ReqRelayQryBTCHeadHeight

type ReqRelayQryBTCHeadHeight struct {
	BaseHeight           int64    `protobuf:"varint,1,opt,name=baseHeight,proto3" json:"baseHeight,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReqRelayQryBTCHeadHeight) Descriptor

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

func (*ReqRelayQryBTCHeadHeight) GetBaseHeight

func (m *ReqRelayQryBTCHeadHeight) GetBaseHeight() int64

func (*ReqRelayQryBTCHeadHeight) ProtoMessage

func (*ReqRelayQryBTCHeadHeight) ProtoMessage()

func (*ReqRelayQryBTCHeadHeight) Reset

func (m *ReqRelayQryBTCHeadHeight) Reset()

func (*ReqRelayQryBTCHeadHeight) String

func (m *ReqRelayQryBTCHeadHeight) String() string

func (*ReqRelayQryBTCHeadHeight) XXX_DiscardUnknown

func (m *ReqRelayQryBTCHeadHeight) XXX_DiscardUnknown()

func (*ReqRelayQryBTCHeadHeight) XXX_Marshal

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

func (*ReqRelayQryBTCHeadHeight) XXX_Merge

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

func (*ReqRelayQryBTCHeadHeight) XXX_Size

func (m *ReqRelayQryBTCHeadHeight) XXX_Size() int

func (*ReqRelayQryBTCHeadHeight) XXX_Unmarshal

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

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Vin) Descriptor

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

func (*Vin) GetAddress

func (m *Vin) GetAddress() string

func (*Vin) GetValue

func (m *Vin) GetValue() uint64

func (*Vin) ProtoMessage

func (*Vin) ProtoMessage()

func (*Vin) Reset

func (m *Vin) Reset()

func (*Vin) String

func (m *Vin) String() string

func (*Vin) XXX_DiscardUnknown

func (m *Vin) XXX_DiscardUnknown()

func (*Vin) XXX_Marshal

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

func (*Vin) XXX_Merge

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

func (*Vin) XXX_Size

func (m *Vin) XXX_Size() int

func (*Vin) XXX_Unmarshal

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

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Vout) Descriptor

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

func (*Vout) GetAddress

func (m *Vout) GetAddress() string

func (*Vout) GetCoinbase

func (m *Vout) GetCoinbase() bool

func (*Vout) GetValue

func (m *Vout) GetValue() uint64

func (*Vout) ProtoMessage

func (*Vout) ProtoMessage()

func (*Vout) Reset

func (m *Vout) Reset()

func (*Vout) String

func (m *Vout) String() string

func (*Vout) XXX_DiscardUnknown

func (m *Vout) XXX_DiscardUnknown()

func (*Vout) XXX_Marshal

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

func (*Vout) XXX_Merge

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

func (*Vout) XXX_Size

func (m *Vout) XXX_Size() int

func (*Vout) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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