Documentation ¶
Index ¶
- Constants
- Variables
- func CreateRawTradeBuyLimitTx(cfg *types.Chain33Config, parm *TradeBuyLimitTx) (*types.Transaction, error)
- func CreateRawTradeBuyTx(cfg *types.Chain33Config, parm *TradeBuyTx) (*types.Transaction, error)
- func CreateRawTradeRevokeBuyTx(cfg *types.Chain33Config, parm *TradeRevokeBuyTx) (*types.Transaction, error)
- func CreateRawTradeRevokeTx(cfg *types.Chain33Config, parm *TradeRevokeTx) (*types.Transaction, error)
- func CreateRawTradeSellMarketTx(cfg *types.Chain33Config, parm *TradeSellMarketTx) (*types.Transaction, error)
- func CreateRawTradeSellTx(cfg *types.Chain33Config, parm *TradeSellTx) (*types.Transaction, error)
- func InitExecutor(cfg *types.Chain33Config)
- func InitFork(cfg *types.Chain33Config)
- func RegisterTradeServer(s *grpc.Server, srv TradeServer)
- type BuyLimitOrder
- func (*BuyLimitOrder) Descriptor() ([]byte, []int)deprecated
- func (x *BuyLimitOrder) GetAddress() string
- func (x *BuyLimitOrder) GetAmountPerBoardlot() int64
- func (x *BuyLimitOrder) GetAssetExec() string
- func (x *BuyLimitOrder) GetBoughtBoardlot() int64
- func (x *BuyLimitOrder) GetBuyID() string
- func (x *BuyLimitOrder) GetHeight() int64
- func (x *BuyLimitOrder) GetMinBoardlot() int64
- func (x *BuyLimitOrder) GetPriceExec() string
- func (x *BuyLimitOrder) GetPricePerBoardlot() int64
- func (x *BuyLimitOrder) GetPriceSymbol() string
- func (x *BuyLimitOrder) GetStatus() int32
- func (x *BuyLimitOrder) GetTokenSymbol() string
- func (x *BuyLimitOrder) GetTotalBoardlot() int64
- func (*BuyLimitOrder) ProtoMessage()
- func (x *BuyLimitOrder) ProtoReflect() protoreflect.Message
- func (x *BuyLimitOrder) Reset()
- func (x *BuyLimitOrder) String() string
- type LocalOrder
- func (*LocalOrder) Descriptor() ([]byte, []int)deprecated
- func (x *LocalOrder) GetAmountPerBoardlot() int64
- func (x *LocalOrder) GetAssetExec() string
- func (x *LocalOrder) GetAssetSymbol() string
- func (x *LocalOrder) GetBlockTime() int64
- func (x *LocalOrder) GetBuyID() string
- func (x *LocalOrder) GetHeight() int64
- func (x *LocalOrder) GetIsFinished() bool
- func (x *LocalOrder) GetIsSellOrder() bool
- func (x *LocalOrder) GetKey() string
- func (x *LocalOrder) GetMinBoardlot() int64
- func (x *LocalOrder) GetOwner() string
- func (x *LocalOrder) GetPriceExec() string
- func (x *LocalOrder) GetPricePerBoardlot() int64
- func (x *LocalOrder) GetPriceSymbol() string
- func (x *LocalOrder) GetSellID() string
- func (x *LocalOrder) GetStatus() int32
- func (x *LocalOrder) GetTotalBoardlot() int64
- func (x *LocalOrder) GetTradedBoardlot() int64
- func (x *LocalOrder) GetTxHash() []string
- func (x *LocalOrder) GetTxIndex() string
- func (*LocalOrder) ProtoMessage()
- func (x *LocalOrder) ProtoReflect() protoreflect.Message
- func (x *LocalOrder) Reset()
- func (x *LocalOrder) String() string
- type ReceiptBuyBase
- func (*ReceiptBuyBase) Descriptor() ([]byte, []int)deprecated
- func (x *ReceiptBuyBase) GetAmountPerBoardlot() string
- func (x *ReceiptBuyBase) GetAssetExec() string
- func (x *ReceiptBuyBase) GetBoughtBoardlot() int64
- func (x *ReceiptBuyBase) GetBuyID() string
- func (x *ReceiptBuyBase) GetHeight() int64
- func (x *ReceiptBuyBase) GetMinBoardlot() int64
- func (x *ReceiptBuyBase) GetOwner() string
- func (x *ReceiptBuyBase) GetPriceExec() string
- func (x *ReceiptBuyBase) GetPricePerBoardlot() string
- func (x *ReceiptBuyBase) GetPriceSymbol() string
- func (x *ReceiptBuyBase) GetSellID() string
- func (x *ReceiptBuyBase) GetStatus() string
- func (x *ReceiptBuyBase) GetTokenSymbol() string
- func (x *ReceiptBuyBase) GetTotalBoardlot() int64
- func (x *ReceiptBuyBase) GetTxHash() string
- func (*ReceiptBuyBase) ProtoMessage()
- func (x *ReceiptBuyBase) ProtoReflect() protoreflect.Message
- func (x *ReceiptBuyBase) Reset()
- func (x *ReceiptBuyBase) String() string
- type ReceiptSellBase
- func (*ReceiptSellBase) Descriptor() ([]byte, []int)deprecated
- func (x *ReceiptSellBase) GetAmountPerBoardlot() string
- func (x *ReceiptSellBase) GetAssetExec() string
- func (x *ReceiptSellBase) GetBuyID() string
- func (x *ReceiptSellBase) GetCrowdfund() bool
- func (x *ReceiptSellBase) GetHeight() int64
- func (x *ReceiptSellBase) GetMinBoardlot() int64
- func (x *ReceiptSellBase) GetOwner() string
- func (x *ReceiptSellBase) GetPriceExec() string
- func (x *ReceiptSellBase) GetPricePerBoardlot() string
- func (x *ReceiptSellBase) GetPriceSymbol() string
- func (x *ReceiptSellBase) GetSellID() string
- func (x *ReceiptSellBase) GetSoldBoardlot() int64
- func (x *ReceiptSellBase) GetStarttime() int64
- func (x *ReceiptSellBase) GetStatus() string
- func (x *ReceiptSellBase) GetStoptime() int64
- func (x *ReceiptSellBase) GetTokenSymbol() string
- func (x *ReceiptSellBase) GetTotalBoardlot() int64
- func (x *ReceiptSellBase) GetTxHash() string
- func (*ReceiptSellBase) ProtoMessage()
- func (x *ReceiptSellBase) ProtoReflect() protoreflect.Message
- func (x *ReceiptSellBase) Reset()
- func (x *ReceiptSellBase) String() string
- type ReceiptSellMarket
- func (*ReceiptSellMarket) Descriptor() ([]byte, []int)deprecated
- func (x *ReceiptSellMarket) GetBase() *ReceiptSellBase
- func (*ReceiptSellMarket) ProtoMessage()
- func (x *ReceiptSellMarket) ProtoReflect() protoreflect.Message
- func (x *ReceiptSellMarket) Reset()
- func (x *ReceiptSellMarket) String() string
- type ReceiptTradeBuyLimit
- func (*ReceiptTradeBuyLimit) Descriptor() ([]byte, []int)deprecated
- func (x *ReceiptTradeBuyLimit) GetBase() *ReceiptBuyBase
- func (*ReceiptTradeBuyLimit) ProtoMessage()
- func (x *ReceiptTradeBuyLimit) ProtoReflect() protoreflect.Message
- func (x *ReceiptTradeBuyLimit) Reset()
- func (x *ReceiptTradeBuyLimit) String() string
- type ReceiptTradeBuyMarket
- func (*ReceiptTradeBuyMarket) Descriptor() ([]byte, []int)deprecated
- func (x *ReceiptTradeBuyMarket) GetBase() *ReceiptBuyBase
- func (*ReceiptTradeBuyMarket) ProtoMessage()
- func (x *ReceiptTradeBuyMarket) ProtoReflect() protoreflect.Message
- func (x *ReceiptTradeBuyMarket) Reset()
- func (x *ReceiptTradeBuyMarket) String() string
- type ReceiptTradeBuyRevoke
- func (*ReceiptTradeBuyRevoke) Descriptor() ([]byte, []int)deprecated
- func (x *ReceiptTradeBuyRevoke) GetBase() *ReceiptBuyBase
- func (*ReceiptTradeBuyRevoke) ProtoMessage()
- func (x *ReceiptTradeBuyRevoke) ProtoReflect() protoreflect.Message
- func (x *ReceiptTradeBuyRevoke) Reset()
- func (x *ReceiptTradeBuyRevoke) String() string
- type ReceiptTradeSellLimit
- func (*ReceiptTradeSellLimit) Descriptor() ([]byte, []int)deprecated
- func (x *ReceiptTradeSellLimit) GetBase() *ReceiptSellBase
- func (*ReceiptTradeSellLimit) ProtoMessage()
- func (x *ReceiptTradeSellLimit) ProtoReflect() protoreflect.Message
- func (x *ReceiptTradeSellLimit) Reset()
- func (x *ReceiptTradeSellLimit) String() string
- type ReceiptTradeSellRevoke
- func (*ReceiptTradeSellRevoke) Descriptor() ([]byte, []int)deprecated
- func (x *ReceiptTradeSellRevoke) GetBase() *ReceiptSellBase
- func (*ReceiptTradeSellRevoke) ProtoMessage()
- func (x *ReceiptTradeSellRevoke) ProtoReflect() protoreflect.Message
- func (x *ReceiptTradeSellRevoke) Reset()
- func (x *ReceiptTradeSellRevoke) String() string
- type ReplyBuyOrder
- func (*ReplyBuyOrder) Descriptor() ([]byte, []int)deprecated
- func (x *ReplyBuyOrder) GetAmountPerBoardlot() int64
- func (x *ReplyBuyOrder) GetAssetExec() string
- func (x *ReplyBuyOrder) GetBoughtBoardlot() int64
- func (x *ReplyBuyOrder) GetBuyID() string
- func (x *ReplyBuyOrder) GetHeight() int64
- func (x *ReplyBuyOrder) GetKey() string
- func (x *ReplyBuyOrder) GetMinBoardlot() int64
- func (x *ReplyBuyOrder) GetOwner() string
- func (x *ReplyBuyOrder) GetPricePerBoardlot() int64
- func (x *ReplyBuyOrder) GetSellID() string
- func (x *ReplyBuyOrder) GetStatus() int32
- func (x *ReplyBuyOrder) GetTokenSymbol() string
- func (x *ReplyBuyOrder) GetTotalBoardlot() int64
- func (x *ReplyBuyOrder) GetTxHash() string
- func (*ReplyBuyOrder) ProtoMessage()
- func (x *ReplyBuyOrder) ProtoReflect() protoreflect.Message
- func (x *ReplyBuyOrder) Reset()
- func (x *ReplyBuyOrder) String() string
- type ReplyBuyOrders
- type ReplySellOrder
- func (*ReplySellOrder) Descriptor() ([]byte, []int)deprecated
- func (x *ReplySellOrder) GetAmountPerBoardlot() int64
- func (x *ReplySellOrder) GetAssetExec() string
- func (x *ReplySellOrder) GetBuyID() string
- func (x *ReplySellOrder) GetHeight() int64
- func (x *ReplySellOrder) GetKey() string
- func (x *ReplySellOrder) GetMinBoardlot() int64
- func (x *ReplySellOrder) GetOwner() string
- func (x *ReplySellOrder) GetPricePerBoardlot() int64
- func (x *ReplySellOrder) GetSellID() string
- func (x *ReplySellOrder) GetSoldBoardlot() int64
- func (x *ReplySellOrder) GetStatus() int32
- func (x *ReplySellOrder) GetTokenSymbol() string
- func (x *ReplySellOrder) GetTotalBoardlot() int64
- func (x *ReplySellOrder) GetTxHash() string
- func (*ReplySellOrder) ProtoMessage()
- func (x *ReplySellOrder) ProtoReflect() protoreflect.Message
- func (x *ReplySellOrder) Reset()
- func (x *ReplySellOrder) String() string
- type ReplySellOrders
- type ReplyTradeOrder
- func (*ReplyTradeOrder) Descriptor() ([]byte, []int)deprecated
- func (x *ReplyTradeOrder) GetAmountPerBoardlot() int64
- func (x *ReplyTradeOrder) GetAssetExec() string
- func (x *ReplyTradeOrder) GetBlockTime() int64
- func (x *ReplyTradeOrder) GetBuyID() string
- func (x *ReplyTradeOrder) GetHeight() int64
- func (x *ReplyTradeOrder) GetIsSellOrder() bool
- func (x *ReplyTradeOrder) GetKey() string
- func (x *ReplyTradeOrder) GetMinBoardlot() int64
- func (x *ReplyTradeOrder) GetOwner() string
- func (x *ReplyTradeOrder) GetPriceExec() string
- func (x *ReplyTradeOrder) GetPricePerBoardlot() int64
- func (x *ReplyTradeOrder) GetPriceSymbol() string
- func (x *ReplyTradeOrder) GetSellID() string
- func (x *ReplyTradeOrder) GetStatus() int32
- func (x *ReplyTradeOrder) GetTokenSymbol() string
- func (x *ReplyTradeOrder) GetTotalBoardlot() int64
- func (x *ReplyTradeOrder) GetTradedBoardlot() int64
- func (x *ReplyTradeOrder) GetTxHash() string
- func (*ReplyTradeOrder) ProtoMessage()
- func (x *ReplyTradeOrder) ProtoReflect() protoreflect.Message
- func (x *ReplyTradeOrder) Reset()
- func (x *ReplyTradeOrder) String() string
- type ReplyTradeOrders
- func (*ReplyTradeOrders) Descriptor() ([]byte, []int)deprecated
- func (x *ReplyTradeOrders) GetOrders() []*ReplyTradeOrder
- func (*ReplyTradeOrders) ProtoMessage()
- func (x *ReplyTradeOrders) ProtoReflect() protoreflect.Message
- func (x *ReplyTradeOrders) Reset()
- func (x *ReplyTradeOrders) String() string
- type ReqAddrAssets
- func (*ReqAddrAssets) Descriptor() ([]byte, []int)deprecated
- func (x *ReqAddrAssets) GetAddr() string
- func (x *ReqAddrAssets) GetCount() int32
- func (x *ReqAddrAssets) GetDirection() int32
- func (x *ReqAddrAssets) GetFromKey() string
- func (x *ReqAddrAssets) GetStatus() int32
- func (x *ReqAddrAssets) GetToken() []string
- func (*ReqAddrAssets) ProtoMessage()
- func (x *ReqAddrAssets) ProtoReflect() protoreflect.Message
- func (x *ReqAddrAssets) Reset()
- func (x *ReqAddrAssets) String() string
- type ReqBuyToken
- func (*ReqBuyToken) Descriptor() ([]byte, []int)deprecated
- func (x *ReqBuyToken) GetBuy() *TradeForBuy
- func (x *ReqBuyToken) GetBuyer() string
- func (*ReqBuyToken) ProtoMessage()
- func (x *ReqBuyToken) ProtoReflect() protoreflect.Message
- func (x *ReqBuyToken) Reset()
- func (x *ReqBuyToken) String() string
- type ReqRevokeSell
- func (*ReqRevokeSell) Descriptor() ([]byte, []int)deprecated
- func (x *ReqRevokeSell) GetOwner() string
- func (x *ReqRevokeSell) GetRevoke() *TradeForRevokeSell
- func (*ReqRevokeSell) ProtoMessage()
- func (x *ReqRevokeSell) ProtoReflect() protoreflect.Message
- func (x *ReqRevokeSell) Reset()
- func (x *ReqRevokeSell) String() string
- type ReqSellToken
- func (*ReqSellToken) Descriptor() ([]byte, []int)deprecated
- func (x *ReqSellToken) GetOwner() string
- func (x *ReqSellToken) GetSell() *TradeForSell
- func (*ReqSellToken) ProtoMessage()
- func (x *ReqSellToken) ProtoReflect() protoreflect.Message
- func (x *ReqSellToken) Reset()
- func (x *ReqSellToken) String() string
- type ReqTokenBuyOrder
- func (*ReqTokenBuyOrder) Descriptor() ([]byte, []int)deprecated
- func (x *ReqTokenBuyOrder) GetCount() int32
- func (x *ReqTokenBuyOrder) GetDirection() int32
- func (x *ReqTokenBuyOrder) GetFromKey() string
- func (x *ReqTokenBuyOrder) GetStatus() int32
- func (x *ReqTokenBuyOrder) GetTokenSymbol() string
- func (*ReqTokenBuyOrder) ProtoMessage()
- func (x *ReqTokenBuyOrder) ProtoReflect() protoreflect.Message
- func (x *ReqTokenBuyOrder) Reset()
- func (x *ReqTokenBuyOrder) String() string
- type ReqTokenSellOrder
- func (*ReqTokenSellOrder) Descriptor() ([]byte, []int)deprecated
- func (x *ReqTokenSellOrder) GetCount() int32
- func (x *ReqTokenSellOrder) GetDirection() int32
- func (x *ReqTokenSellOrder) GetFromKey() string
- func (x *ReqTokenSellOrder) GetStatus() int32
- func (x *ReqTokenSellOrder) GetTokenSymbol() string
- func (*ReqTokenSellOrder) ProtoMessage()
- func (x *ReqTokenSellOrder) ProtoReflect() protoreflect.Message
- func (x *ReqTokenSellOrder) Reset()
- func (x *ReqTokenSellOrder) String() string
- type SellOrder
- func (*SellOrder) Descriptor() ([]byte, []int)deprecated
- func (x *SellOrder) GetAddress() string
- func (x *SellOrder) GetAmountPerBoardlot() int64
- func (x *SellOrder) GetAssetExec() string
- func (x *SellOrder) GetCrowdfund() bool
- func (x *SellOrder) GetHeight() int64
- func (x *SellOrder) GetMinBoardlot() int64
- func (x *SellOrder) GetPriceExec() string
- func (x *SellOrder) GetPricePerBoardlot() int64
- func (x *SellOrder) GetPriceSymbol() string
- func (x *SellOrder) GetSellID() string
- func (x *SellOrder) GetSoldBoardlot() int64
- func (x *SellOrder) GetStarttime() int64
- func (x *SellOrder) GetStatus() int32
- func (x *SellOrder) GetStoptime() int64
- func (x *SellOrder) GetTokenSymbol() string
- func (x *SellOrder) GetTotalBoardlot() int64
- func (*SellOrder) ProtoMessage()
- func (x *SellOrder) ProtoReflect() protoreflect.Message
- func (x *SellOrder) Reset()
- func (x *SellOrder) String() string
- type Trade
- func (*Trade) Descriptor() ([]byte, []int)deprecated
- func (x *Trade) GetBuyLimit() *TradeForBuyLimit
- func (x *Trade) GetBuyMarket() *TradeForBuy
- func (x *Trade) GetRevokeBuy() *TradeForRevokeBuy
- func (x *Trade) GetRevokeSell() *TradeForRevokeSell
- func (x *Trade) GetSellLimit() *TradeForSell
- func (x *Trade) GetSellMarket() *TradeForSellMarket
- func (x *Trade) GetTy() int32
- func (m *Trade) GetValue() isTrade_Value
- func (*Trade) ProtoMessage()
- func (x *Trade) ProtoReflect() protoreflect.Message
- func (x *Trade) Reset()
- func (x *Trade) String() string
- type TradeBuyLimitTx
- type TradeBuyTx
- type TradeClient
- type TradeForBuy
- func (*TradeForBuy) Descriptor() ([]byte, []int)deprecated
- func (x *TradeForBuy) GetBoardlotCnt() int64
- func (x *TradeForBuy) GetSellID() string
- func (*TradeForBuy) ProtoMessage()
- func (x *TradeForBuy) ProtoReflect() protoreflect.Message
- func (x *TradeForBuy) Reset()
- func (x *TradeForBuy) String() string
- type TradeForBuyLimit
- func (*TradeForBuyLimit) Descriptor() ([]byte, []int)deprecated
- func (x *TradeForBuyLimit) GetAmountPerBoardlot() int64
- func (x *TradeForBuyLimit) GetAssetExec() string
- func (x *TradeForBuyLimit) GetMinBoardlot() int64
- func (x *TradeForBuyLimit) GetPriceExec() string
- func (x *TradeForBuyLimit) GetPricePerBoardlot() int64
- func (x *TradeForBuyLimit) GetPriceSymbol() string
- func (x *TradeForBuyLimit) GetTokenSymbol() string
- func (x *TradeForBuyLimit) GetTotalBoardlot() int64
- func (*TradeForBuyLimit) ProtoMessage()
- func (x *TradeForBuyLimit) ProtoReflect() protoreflect.Message
- func (x *TradeForBuyLimit) Reset()
- func (x *TradeForBuyLimit) String() string
- type TradeForRevokeBuy
- type TradeForRevokeSell
- func (*TradeForRevokeSell) Descriptor() ([]byte, []int)deprecated
- func (x *TradeForRevokeSell) GetSellID() string
- func (*TradeForRevokeSell) ProtoMessage()
- func (x *TradeForRevokeSell) ProtoReflect() protoreflect.Message
- func (x *TradeForRevokeSell) Reset()
- func (x *TradeForRevokeSell) String() string
- type TradeForSell
- func (*TradeForSell) Descriptor() ([]byte, []int)deprecated
- func (x *TradeForSell) GetAmountPerBoardlot() int64
- func (x *TradeForSell) GetAssetExec() string
- func (x *TradeForSell) GetCrowdfund() bool
- func (x *TradeForSell) GetMinBoardlot() int64
- func (x *TradeForSell) GetPriceExec() string
- func (x *TradeForSell) GetPricePerBoardlot() int64
- func (x *TradeForSell) GetPriceSymbol() string
- func (x *TradeForSell) GetStarttime() int64
- func (x *TradeForSell) GetStoptime() int64
- func (x *TradeForSell) GetTokenSymbol() string
- func (x *TradeForSell) GetTotalBoardlot() int64
- func (*TradeForSell) ProtoMessage()
- func (x *TradeForSell) ProtoReflect() protoreflect.Message
- func (x *TradeForSell) Reset()
- func (x *TradeForSell) String() string
- type TradeForSellMarket
- func (*TradeForSellMarket) Descriptor() ([]byte, []int)deprecated
- func (x *TradeForSellMarket) GetBoardlotCnt() int64
- func (x *TradeForSellMarket) GetBuyID() string
- func (*TradeForSellMarket) ProtoMessage()
- func (x *TradeForSellMarket) ProtoReflect() protoreflect.Message
- func (x *TradeForSellMarket) Reset()
- func (x *TradeForSellMarket) String() string
- type TradeRevokeBuyTx
- type TradeRevokeTx
- type TradeSellMarketTx
- type TradeSellTx
- type TradeServer
- type TradeType
- func (t *TradeType) ActionName(tx *types.Transaction) string
- func (t *TradeType) Amount(tx *types.Transaction) (int64, error)
- func (t *TradeType) CreateTx(action string, message json.RawMessage) (*types.Transaction, error)
- func (t *TradeType) GetLogMap() map[int64]*types.LogInfo
- func (t *TradeType) GetName() string
- func (t *TradeType) GetPayload() types.Message
- func (t *TradeType) GetTypeMap() map[string]int32
- type Trade_BuyLimit
- type Trade_BuyMarket
- type Trade_RevokeBuy
- type Trade_RevokeSell
- type Trade_SellLimit
- type Trade_SellMarket
- type UnimplementedTradeServer
- func (*UnimplementedTradeServer) CreateRawTradeBuyLimitTx(context.Context, *TradeForBuyLimit) (*types.UnsignTx, error)
- func (*UnimplementedTradeServer) CreateRawTradeBuyTx(context.Context, *TradeForBuy) (*types.UnsignTx, error)
- func (*UnimplementedTradeServer) CreateRawTradeRevokeBuyTx(context.Context, *TradeForRevokeBuy) (*types.UnsignTx, error)
- func (*UnimplementedTradeServer) CreateRawTradeRevokeTx(context.Context, *TradeForRevokeSell) (*types.UnsignTx, error)
- func (*UnimplementedTradeServer) CreateRawTradeSellMarketTx(context.Context, *TradeForSellMarket) (*types.UnsignTx, error)
- func (*UnimplementedTradeServer) CreateRawTradeSellTx(context.Context, *TradeForSell) (*types.UnsignTx, error)
Constants ¶
const ( TradeSellLimit = iota TradeBuyMarket TradeRevokeSell TradeSellMarket TradeBuyLimit TradeRevokeBuy )
trade op
const ( TyLogTradeSellLimit = 310 TyLogTradeBuyMarket = 311 TyLogTradeSellRevoke = 312 TyLogTradeSellMarket = 330 TyLogTradeBuyLimit = 331 TyLogTradeBuyRevoke = 332 )
log
const ( TradeOrderStatusNotStart = iota //TradeOrderStatusNotStart : TradeOrderStatusOnSale TradeOrderStatusSoldOut TradeOrderStatusRevoked TradeOrderStatusExpired TradeOrderStatusOnBuy TradeOrderStatusBoughtOut TradeOrderStatusBuyRevoked TradeOrderStatusSellHalfRevoked TradeOrderStatusBuyHalfRevoked TradeOrderStatusGroupComplete )
0->not start, 1->on sale, 2->sold out, 3->revoke, 4->expired
const ( // ForkTradeAssetX support more kinds of asset ForkTradeAssetX = "ForkTradeAsset" // ForkTradeBuyLimitX support buy limit ForkTradeBuyLimitX = "ForkTradeBuyLimit" // ForkTradeIDX id without prefix ForkTradeIDX = "ForkTradeID" // ForkTradeFixAssetDBX fix bug: order create before ForkTradeAssetX, cannot trade after ForkTradeAssetX ForkTradeFixAssetDBX = "ForkTradeFixAssetDB" // ForkTradePriceX all asset can be price ForkTradePriceX = "ForkTradePrice" )
const (
//InvalidStartTime :
InvalidStartTime = 0
)
Variables ¶
var ( //ErrTSellBalanceNotEnough : ErrTSellBalanceNotEnough = errors.New("ErrTradeSellBalanceNotEnough") //ErrTSellOrderNotExist : ErrTSellOrderNotExist = errors.New("ErrTradeSellOrderNotExist") //ErrTSellOrderNotStart : ErrTSellOrderNotStart = errors.New("ErrTradeSellOrderNotStart") //ErrTSellOrderNotEnough : ErrTSellOrderNotEnough = errors.New("ErrTradeSellOrderNotEnough") //ErrTSellOrderSoldout : ErrTSellOrderSoldout = errors.New("ErrTradeSellOrderSoldout") //ErrTSellOrderRevoked : ErrTSellOrderRevoked = errors.New("ErrTradeSellOrderRevoked") //ErrTSellOrderExpired : ErrTSellOrderExpired = errors.New("ErrTradeSellOrderExpired") //ErrTSellOrderRevoke : ErrTSellOrderRevoke = errors.New("ErrTradeSellOrderRevokeNotAllowed") //ErrTSellNoSuchOrder : ErrTSellNoSuchOrder = errors.New("ErrTradeSellNoSuchOrder") //ErrTBuyOrderNotExist : ErrTBuyOrderNotExist = errors.New("ErrTradeBuyOrderNotExist") //ErrTBuyOrderNotEnough : ErrTBuyOrderNotEnough = errors.New("ErrTradeBuyOrderNotEnough") //ErrTBuyOrderSoldout : ErrTBuyOrderSoldout = errors.New("ErrTradeBuyOrderSoldout") //ErrTBuyOrderRevoked : ErrTBuyOrderRevoked = errors.New("ErrTradeBuyOrderRevoked") //ErrTBuyOrderRevoke : ErrTBuyOrderRevoke = errors.New("ErrTradeBuyOrderRevokeNotAllowed") //ErrTCntLessThanMinBoardlot : ErrTCntLessThanMinBoardlot = errors.New("ErrTradeCountLessThanMinBoardlot") // ErrAssetAndPriceSame : ErrAssetAndPriceSame = errors.New("ErrAssetAndPriceSame") )
var File_trade_proto protoreflect.FileDescriptor
var MapBuyOrderStatusStr2Int = map[string]int32{ "onbuy": TradeOrderStatusOnBuy, "boughtout": TradeOrderStatusBoughtOut, "buyrevoked": TradeOrderStatusBuyRevoked, }
MapBuyOrderStatusStr2Int :
var MapSellOrderStatusStr2Int = map[string]int32{ "onsale": TradeOrderStatusOnSale, "soldout": TradeOrderStatusSoldOut, "revoked": TradeOrderStatusRevoked, }
MapSellOrderStatusStr2Int :
var SellOrderStatus = map[int32]string{ TradeOrderStatusNotStart: "NotStart", TradeOrderStatusOnSale: "OnSale", TradeOrderStatusSoldOut: "SoldOut", TradeOrderStatusRevoked: "Revoked", TradeOrderStatusExpired: "Expired", TradeOrderStatusOnBuy: "OnBuy", TradeOrderStatusBoughtOut: "BoughtOut", TradeOrderStatusBuyRevoked: "BuyRevoked", }
SellOrderStatus : sell order status map
var SellOrderStatus2Int = map[string]int32{ "NotStart": TradeOrderStatusNotStart, "OnSale": TradeOrderStatusOnSale, "SoldOut": TradeOrderStatusSoldOut, "Revoked": TradeOrderStatusRevoked, "Expired": TradeOrderStatusExpired, "OnBuy": TradeOrderStatusOnBuy, "BoughtOut": TradeOrderStatusBoughtOut, "BuyRevoked": TradeOrderStatusBuyRevoked, }
SellOrderStatus2Int : SellOrderStatus info to value in int32
var (
//TradeX :
TradeX = "trade"
)
Functions ¶
func CreateRawTradeBuyLimitTx ¶
func CreateRawTradeBuyLimitTx(cfg *types.Chain33Config, parm *TradeBuyLimitTx) (*types.Transaction, error)
CreateRawTradeBuyLimitTx :创建买单交易
func CreateRawTradeBuyTx ¶
func CreateRawTradeBuyTx(cfg *types.Chain33Config, parm *TradeBuyTx) (*types.Transaction, error)
CreateRawTradeBuyTx :创建想指定卖单发起的买单交易
func CreateRawTradeRevokeBuyTx ¶
func CreateRawTradeRevokeBuyTx(cfg *types.Chain33Config, parm *TradeRevokeBuyTx) (*types.Transaction, error)
CreateRawTradeRevokeBuyTx : 取消发起的买单交易
func CreateRawTradeRevokeTx ¶
func CreateRawTradeRevokeTx(cfg *types.Chain33Config, parm *TradeRevokeTx) (*types.Transaction, error)
CreateRawTradeRevokeTx :创建取消卖单的交易
func CreateRawTradeSellMarketTx ¶
func CreateRawTradeSellMarketTx(cfg *types.Chain33Config, parm *TradeSellMarketTx) (*types.Transaction, error)
CreateRawTradeSellMarketTx : 创建向指定买单出售token的卖单交易
func CreateRawTradeSellTx ¶
func CreateRawTradeSellTx(cfg *types.Chain33Config, parm *TradeSellTx) (*types.Transaction, error)
CreateRawTradeSellTx : 创建卖单交易
func RegisterTradeServer ¶
func RegisterTradeServer(s *grpc.Server, srv TradeServer)
Types ¶
type BuyLimitOrder ¶
type BuyLimitOrder struct { TokenSymbol string `protobuf:"bytes,1,opt,name=tokenSymbol,proto3" json:"tokenSymbol,omitempty"` Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` AmountPerBoardlot int64 `protobuf:"varint,3,opt,name=amountPerBoardlot,proto3" json:"amountPerBoardlot,omitempty"` MinBoardlot int64 `protobuf:"varint,4,opt,name=minBoardlot,proto3" json:"minBoardlot,omitempty"` PricePerBoardlot int64 `protobuf:"varint,5,opt,name=pricePerBoardlot,proto3" json:"pricePerBoardlot,omitempty"` TotalBoardlot int64 `protobuf:"varint,6,opt,name=totalBoardlot,proto3" json:"totalBoardlot,omitempty"` BoughtBoardlot int64 `protobuf:"varint,7,opt,name=boughtBoardlot,proto3" json:"boughtBoardlot,omitempty"` BuyID string `protobuf:"bytes,8,opt,name=buyID,proto3" json:"buyID,omitempty"` Status int32 `protobuf:"varint,9,opt,name=status,proto3" json:"status,omitempty"` Height int64 `protobuf:"varint,10,opt,name=height,proto3" json:"height,omitempty"` AssetExec string `protobuf:"bytes,11,opt,name=assetExec,proto3" json:"assetExec,omitempty"` PriceExec string `protobuf:"bytes,12,opt,name=priceExec,proto3" json:"priceExec,omitempty"` PriceSymbol string `protobuf:"bytes,13,opt,name=priceSymbol,proto3" json:"priceSymbol,omitempty"` // contains filtered or unexported fields }
限价买单数据库记录
func (*BuyLimitOrder) Descriptor
deprecated
func (*BuyLimitOrder) Descriptor() ([]byte, []int)
Deprecated: Use BuyLimitOrder.ProtoReflect.Descriptor instead.
func (*BuyLimitOrder) GetAddress ¶
func (x *BuyLimitOrder) GetAddress() string
func (*BuyLimitOrder) GetAmountPerBoardlot ¶
func (x *BuyLimitOrder) GetAmountPerBoardlot() int64
func (*BuyLimitOrder) GetAssetExec ¶
func (x *BuyLimitOrder) GetAssetExec() string
func (*BuyLimitOrder) GetBoughtBoardlot ¶
func (x *BuyLimitOrder) GetBoughtBoardlot() int64
func (*BuyLimitOrder) GetBuyID ¶
func (x *BuyLimitOrder) GetBuyID() string
func (*BuyLimitOrder) GetHeight ¶
func (x *BuyLimitOrder) GetHeight() int64
func (*BuyLimitOrder) GetMinBoardlot ¶
func (x *BuyLimitOrder) GetMinBoardlot() int64
func (*BuyLimitOrder) GetPriceExec ¶
func (x *BuyLimitOrder) GetPriceExec() string
func (*BuyLimitOrder) GetPricePerBoardlot ¶
func (x *BuyLimitOrder) GetPricePerBoardlot() int64
func (*BuyLimitOrder) GetPriceSymbol ¶
func (x *BuyLimitOrder) GetPriceSymbol() string
func (*BuyLimitOrder) GetStatus ¶
func (x *BuyLimitOrder) GetStatus() int32
func (*BuyLimitOrder) GetTokenSymbol ¶
func (x *BuyLimitOrder) GetTokenSymbol() string
func (*BuyLimitOrder) GetTotalBoardlot ¶
func (x *BuyLimitOrder) GetTotalBoardlot() int64
func (*BuyLimitOrder) ProtoMessage ¶
func (*BuyLimitOrder) ProtoMessage()
func (*BuyLimitOrder) ProtoReflect ¶ added in v1.65.3
func (x *BuyLimitOrder) ProtoReflect() protoreflect.Message
func (*BuyLimitOrder) Reset ¶
func (x *BuyLimitOrder) Reset()
func (*BuyLimitOrder) String ¶
func (x *BuyLimitOrder) String() string
type LocalOrder ¶
type LocalOrder struct { AssetSymbol string `protobuf:"bytes,1,opt,name=assetSymbol,proto3" json:"assetSymbol,omitempty"` Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` AmountPerBoardlot int64 `protobuf:"varint,3,opt,name=amountPerBoardlot,proto3" json:"amountPerBoardlot,omitempty"` MinBoardlot int64 `protobuf:"varint,4,opt,name=minBoardlot,proto3" json:"minBoardlot,omitempty"` PricePerBoardlot int64 `protobuf:"varint,5,opt,name=pricePerBoardlot,proto3" json:"pricePerBoardlot,omitempty"` TotalBoardlot int64 `protobuf:"varint,6,opt,name=totalBoardlot,proto3" json:"totalBoardlot,omitempty"` TradedBoardlot int64 `protobuf:"varint,7,opt,name=tradedBoardlot,proto3" json:"tradedBoardlot,omitempty"` BuyID string `protobuf:"bytes,8,opt,name=buyID,proto3" json:"buyID,omitempty"` Status int32 `protobuf:"varint,9,opt,name=status,proto3" json:"status,omitempty"` SellID string `protobuf:"bytes,10,opt,name=sellID,proto3" json:"sellID,omitempty"` TxHash []string `protobuf:"bytes,11,rep,name=txHash,proto3" json:"txHash,omitempty"` Height int64 `protobuf:"varint,12,opt,name=height,proto3" json:"height,omitempty"` Key string `protobuf:"bytes,13,opt,name=key,proto3" json:"key,omitempty"` BlockTime int64 `protobuf:"varint,14,opt,name=blockTime,proto3" json:"blockTime,omitempty"` IsSellOrder bool `protobuf:"varint,15,opt,name=isSellOrder,proto3" json:"isSellOrder,omitempty"` AssetExec string `protobuf:"bytes,16,opt,name=assetExec,proto3" json:"assetExec,omitempty"` TxIndex string `protobuf:"bytes,17,opt,name=txIndex,proto3" json:"txIndex,omitempty"` IsFinished bool `protobuf:"varint,18,opt,name=isFinished,proto3" json:"isFinished,omitempty"` PriceExec string `protobuf:"bytes,19,opt,name=priceExec,proto3" json:"priceExec,omitempty"` PriceSymbol string `protobuf:"bytes,20,opt,name=priceSymbol,proto3" json:"priceSymbol,omitempty"` // contains filtered or unexported fields }
func (*LocalOrder) Descriptor
deprecated
func (*LocalOrder) Descriptor() ([]byte, []int)
Deprecated: Use LocalOrder.ProtoReflect.Descriptor instead.
func (*LocalOrder) GetAmountPerBoardlot ¶
func (x *LocalOrder) GetAmountPerBoardlot() int64
func (*LocalOrder) GetAssetExec ¶
func (x *LocalOrder) GetAssetExec() string
func (*LocalOrder) GetAssetSymbol ¶
func (x *LocalOrder) GetAssetSymbol() string
func (*LocalOrder) GetBlockTime ¶
func (x *LocalOrder) GetBlockTime() int64
func (*LocalOrder) GetBuyID ¶
func (x *LocalOrder) GetBuyID() string
func (*LocalOrder) GetHeight ¶
func (x *LocalOrder) GetHeight() int64
func (*LocalOrder) GetIsFinished ¶
func (x *LocalOrder) GetIsFinished() bool
func (*LocalOrder) GetIsSellOrder ¶
func (x *LocalOrder) GetIsSellOrder() bool
func (*LocalOrder) GetKey ¶
func (x *LocalOrder) GetKey() string
func (*LocalOrder) GetMinBoardlot ¶
func (x *LocalOrder) GetMinBoardlot() int64
func (*LocalOrder) GetOwner ¶
func (x *LocalOrder) GetOwner() string
func (*LocalOrder) GetPriceExec ¶
func (x *LocalOrder) GetPriceExec() string
func (*LocalOrder) GetPricePerBoardlot ¶
func (x *LocalOrder) GetPricePerBoardlot() int64
func (*LocalOrder) GetPriceSymbol ¶
func (x *LocalOrder) GetPriceSymbol() string
func (*LocalOrder) GetSellID ¶
func (x *LocalOrder) GetSellID() string
func (*LocalOrder) GetStatus ¶
func (x *LocalOrder) GetStatus() int32
func (*LocalOrder) GetTotalBoardlot ¶
func (x *LocalOrder) GetTotalBoardlot() int64
func (*LocalOrder) GetTradedBoardlot ¶
func (x *LocalOrder) GetTradedBoardlot() int64
func (*LocalOrder) GetTxHash ¶
func (x *LocalOrder) GetTxHash() []string
func (*LocalOrder) GetTxIndex ¶
func (x *LocalOrder) GetTxIndex() string
func (*LocalOrder) ProtoMessage ¶
func (*LocalOrder) ProtoMessage()
func (*LocalOrder) ProtoReflect ¶ added in v1.65.3
func (x *LocalOrder) ProtoReflect() protoreflect.Message
func (*LocalOrder) Reset ¶
func (x *LocalOrder) Reset()
func (*LocalOrder) String ¶
func (x *LocalOrder) String() string
type ReceiptBuyBase ¶
type ReceiptBuyBase struct { TokenSymbol string `protobuf:"bytes,1,opt,name=tokenSymbol,proto3" json:"tokenSymbol,omitempty"` Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` AmountPerBoardlot string `protobuf:"bytes,3,opt,name=amountPerBoardlot,proto3" json:"amountPerBoardlot,omitempty"` MinBoardlot int64 `protobuf:"varint,4,opt,name=minBoardlot,proto3" json:"minBoardlot,omitempty"` PricePerBoardlot string `protobuf:"bytes,5,opt,name=pricePerBoardlot,proto3" json:"pricePerBoardlot,omitempty"` TotalBoardlot int64 `protobuf:"varint,6,opt,name=totalBoardlot,proto3" json:"totalBoardlot,omitempty"` BoughtBoardlot int64 `protobuf:"varint,7,opt,name=boughtBoardlot,proto3" json:"boughtBoardlot,omitempty"` BuyID string `protobuf:"bytes,8,opt,name=buyID,proto3" json:"buyID,omitempty"` Status string `protobuf:"bytes,9,opt,name=status,proto3" json:"status,omitempty"` SellID string `protobuf:"bytes,10,opt,name=sellID,proto3" json:"sellID,omitempty"` TxHash string `protobuf:"bytes,11,opt,name=txHash,proto3" json:"txHash,omitempty"` Height int64 `protobuf:"varint,12,opt,name=height,proto3" json:"height,omitempty"` AssetExec string `protobuf:"bytes,13,opt,name=assetExec,proto3" json:"assetExec,omitempty"` PriceExec string `protobuf:"bytes,14,opt,name=priceExec,proto3" json:"priceExec,omitempty"` PriceSymbol string `protobuf:"bytes,15,opt,name=priceSymbol,proto3" json:"priceSymbol,omitempty"` // contains filtered or unexported fields }
执行器日志部分
func (*ReceiptBuyBase) Descriptor
deprecated
func (*ReceiptBuyBase) Descriptor() ([]byte, []int)
Deprecated: Use ReceiptBuyBase.ProtoReflect.Descriptor instead.
func (*ReceiptBuyBase) GetAmountPerBoardlot ¶
func (x *ReceiptBuyBase) GetAmountPerBoardlot() string
func (*ReceiptBuyBase) GetAssetExec ¶
func (x *ReceiptBuyBase) GetAssetExec() string
func (*ReceiptBuyBase) GetBoughtBoardlot ¶
func (x *ReceiptBuyBase) GetBoughtBoardlot() int64
func (*ReceiptBuyBase) GetBuyID ¶
func (x *ReceiptBuyBase) GetBuyID() string
func (*ReceiptBuyBase) GetHeight ¶
func (x *ReceiptBuyBase) GetHeight() int64
func (*ReceiptBuyBase) GetMinBoardlot ¶
func (x *ReceiptBuyBase) GetMinBoardlot() int64
func (*ReceiptBuyBase) GetOwner ¶
func (x *ReceiptBuyBase) GetOwner() string
func (*ReceiptBuyBase) GetPriceExec ¶
func (x *ReceiptBuyBase) GetPriceExec() string
func (*ReceiptBuyBase) GetPricePerBoardlot ¶
func (x *ReceiptBuyBase) GetPricePerBoardlot() string
func (*ReceiptBuyBase) GetPriceSymbol ¶
func (x *ReceiptBuyBase) GetPriceSymbol() string
func (*ReceiptBuyBase) GetSellID ¶
func (x *ReceiptBuyBase) GetSellID() string
func (*ReceiptBuyBase) GetStatus ¶
func (x *ReceiptBuyBase) GetStatus() string
func (*ReceiptBuyBase) GetTokenSymbol ¶
func (x *ReceiptBuyBase) GetTokenSymbol() string
func (*ReceiptBuyBase) GetTotalBoardlot ¶
func (x *ReceiptBuyBase) GetTotalBoardlot() int64
func (*ReceiptBuyBase) GetTxHash ¶
func (x *ReceiptBuyBase) GetTxHash() string
func (*ReceiptBuyBase) ProtoMessage ¶
func (*ReceiptBuyBase) ProtoMessage()
func (*ReceiptBuyBase) ProtoReflect ¶ added in v1.65.3
func (x *ReceiptBuyBase) ProtoReflect() protoreflect.Message
func (*ReceiptBuyBase) Reset ¶
func (x *ReceiptBuyBase) Reset()
func (*ReceiptBuyBase) String ¶
func (x *ReceiptBuyBase) String() string
type ReceiptSellBase ¶
type ReceiptSellBase struct { TokenSymbol string `protobuf:"bytes,1,opt,name=tokenSymbol,proto3" json:"tokenSymbol,omitempty"` Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` //每一手出售的token的数量 AmountPerBoardlot string `protobuf:"bytes,3,opt,name=amountPerBoardlot,proto3" json:"amountPerBoardlot,omitempty"` MinBoardlot int64 `protobuf:"varint,4,opt,name=minBoardlot,proto3" json:"minBoardlot,omitempty"` //每一手token的价格 PricePerBoardlot string `protobuf:"bytes,5,opt,name=pricePerBoardlot,proto3" json:"pricePerBoardlot,omitempty"` TotalBoardlot int64 `protobuf:"varint,6,opt,name=totalBoardlot,proto3" json:"totalBoardlot,omitempty"` SoldBoardlot int64 `protobuf:"varint,7,opt,name=soldBoardlot,proto3" json:"soldBoardlot,omitempty"` //此次出售的起始时间,如果非众筹则可以忽略此时间 Starttime int64 `protobuf:"varint,8,opt,name=starttime,proto3" json:"starttime,omitempty"` Stoptime int64 `protobuf:"varint,9,opt,name=stoptime,proto3" json:"stoptime,omitempty"` Crowdfund bool `protobuf:"varint,10,opt,name=crowdfund,proto3" json:"crowdfund,omitempty"` //此处使用tx的hash来指定 SellID string `protobuf:"bytes,11,opt,name=sellID,proto3" json:"sellID,omitempty"` Status string `protobuf:"bytes,12,opt,name=status,proto3" json:"status,omitempty"` // buyid BuyID string `protobuf:"bytes,13,opt,name=buyID,proto3" json:"buyID,omitempty"` TxHash string `protobuf:"bytes,14,opt,name=txHash,proto3" json:"txHash,omitempty"` Height int64 `protobuf:"varint,15,opt,name=height,proto3" json:"height,omitempty"` AssetExec string `protobuf:"bytes,16,opt,name=assetExec,proto3" json:"assetExec,omitempty"` PriceExec string `protobuf:"bytes,17,opt,name=priceExec,proto3" json:"priceExec,omitempty"` PriceSymbol string `protobuf:"bytes,18,opt,name=priceSymbol,proto3" json:"priceSymbol,omitempty"` // contains filtered or unexported fields }
func (*ReceiptSellBase) Descriptor
deprecated
func (*ReceiptSellBase) Descriptor() ([]byte, []int)
Deprecated: Use ReceiptSellBase.ProtoReflect.Descriptor instead.
func (*ReceiptSellBase) GetAmountPerBoardlot ¶
func (x *ReceiptSellBase) GetAmountPerBoardlot() string
func (*ReceiptSellBase) GetAssetExec ¶
func (x *ReceiptSellBase) GetAssetExec() string
func (*ReceiptSellBase) GetBuyID ¶
func (x *ReceiptSellBase) GetBuyID() string
func (*ReceiptSellBase) GetCrowdfund ¶
func (x *ReceiptSellBase) GetCrowdfund() bool
func (*ReceiptSellBase) GetHeight ¶
func (x *ReceiptSellBase) GetHeight() int64
func (*ReceiptSellBase) GetMinBoardlot ¶
func (x *ReceiptSellBase) GetMinBoardlot() int64
func (*ReceiptSellBase) GetOwner ¶
func (x *ReceiptSellBase) GetOwner() string
func (*ReceiptSellBase) GetPriceExec ¶
func (x *ReceiptSellBase) GetPriceExec() string
func (*ReceiptSellBase) GetPricePerBoardlot ¶
func (x *ReceiptSellBase) GetPricePerBoardlot() string
func (*ReceiptSellBase) GetPriceSymbol ¶
func (x *ReceiptSellBase) GetPriceSymbol() string
func (*ReceiptSellBase) GetSellID ¶
func (x *ReceiptSellBase) GetSellID() string
func (*ReceiptSellBase) GetSoldBoardlot ¶
func (x *ReceiptSellBase) GetSoldBoardlot() int64
func (*ReceiptSellBase) GetStarttime ¶
func (x *ReceiptSellBase) GetStarttime() int64
func (*ReceiptSellBase) GetStatus ¶
func (x *ReceiptSellBase) GetStatus() string
func (*ReceiptSellBase) GetStoptime ¶
func (x *ReceiptSellBase) GetStoptime() int64
func (*ReceiptSellBase) GetTokenSymbol ¶
func (x *ReceiptSellBase) GetTokenSymbol() string
func (*ReceiptSellBase) GetTotalBoardlot ¶
func (x *ReceiptSellBase) GetTotalBoardlot() int64
func (*ReceiptSellBase) GetTxHash ¶
func (x *ReceiptSellBase) GetTxHash() string
func (*ReceiptSellBase) ProtoMessage ¶
func (*ReceiptSellBase) ProtoMessage()
func (*ReceiptSellBase) ProtoReflect ¶ added in v1.65.3
func (x *ReceiptSellBase) ProtoReflect() protoreflect.Message
func (*ReceiptSellBase) Reset ¶
func (x *ReceiptSellBase) Reset()
func (*ReceiptSellBase) String ¶
func (x *ReceiptSellBase) String() string
type ReceiptSellMarket ¶
type ReceiptSellMarket struct { Base *ReceiptSellBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` // contains filtered or unexported fields }
func (*ReceiptSellMarket) Descriptor
deprecated
func (*ReceiptSellMarket) Descriptor() ([]byte, []int)
Deprecated: Use ReceiptSellMarket.ProtoReflect.Descriptor instead.
func (*ReceiptSellMarket) GetBase ¶
func (x *ReceiptSellMarket) GetBase() *ReceiptSellBase
func (*ReceiptSellMarket) ProtoMessage ¶
func (*ReceiptSellMarket) ProtoMessage()
func (*ReceiptSellMarket) ProtoReflect ¶ added in v1.65.3
func (x *ReceiptSellMarket) ProtoReflect() protoreflect.Message
func (*ReceiptSellMarket) Reset ¶
func (x *ReceiptSellMarket) Reset()
func (*ReceiptSellMarket) String ¶
func (x *ReceiptSellMarket) String() string
type ReceiptTradeBuyLimit ¶
type ReceiptTradeBuyLimit struct { Base *ReceiptBuyBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` // contains filtered or unexported fields }
func (*ReceiptTradeBuyLimit) Descriptor
deprecated
func (*ReceiptTradeBuyLimit) Descriptor() ([]byte, []int)
Deprecated: Use ReceiptTradeBuyLimit.ProtoReflect.Descriptor instead.
func (*ReceiptTradeBuyLimit) GetBase ¶
func (x *ReceiptTradeBuyLimit) GetBase() *ReceiptBuyBase
func (*ReceiptTradeBuyLimit) ProtoMessage ¶
func (*ReceiptTradeBuyLimit) ProtoMessage()
func (*ReceiptTradeBuyLimit) ProtoReflect ¶ added in v1.65.3
func (x *ReceiptTradeBuyLimit) ProtoReflect() protoreflect.Message
func (*ReceiptTradeBuyLimit) Reset ¶
func (x *ReceiptTradeBuyLimit) Reset()
func (*ReceiptTradeBuyLimit) String ¶
func (x *ReceiptTradeBuyLimit) String() string
type ReceiptTradeBuyMarket ¶
type ReceiptTradeBuyMarket struct { Base *ReceiptBuyBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` // contains filtered or unexported fields }
func (*ReceiptTradeBuyMarket) Descriptor
deprecated
func (*ReceiptTradeBuyMarket) Descriptor() ([]byte, []int)
Deprecated: Use ReceiptTradeBuyMarket.ProtoReflect.Descriptor instead.
func (*ReceiptTradeBuyMarket) GetBase ¶
func (x *ReceiptTradeBuyMarket) GetBase() *ReceiptBuyBase
func (*ReceiptTradeBuyMarket) ProtoMessage ¶
func (*ReceiptTradeBuyMarket) ProtoMessage()
func (*ReceiptTradeBuyMarket) ProtoReflect ¶ added in v1.65.3
func (x *ReceiptTradeBuyMarket) ProtoReflect() protoreflect.Message
func (*ReceiptTradeBuyMarket) Reset ¶
func (x *ReceiptTradeBuyMarket) Reset()
func (*ReceiptTradeBuyMarket) String ¶
func (x *ReceiptTradeBuyMarket) String() string
type ReceiptTradeBuyRevoke ¶
type ReceiptTradeBuyRevoke struct { Base *ReceiptBuyBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` // contains filtered or unexported fields }
func (*ReceiptTradeBuyRevoke) Descriptor
deprecated
func (*ReceiptTradeBuyRevoke) Descriptor() ([]byte, []int)
Deprecated: Use ReceiptTradeBuyRevoke.ProtoReflect.Descriptor instead.
func (*ReceiptTradeBuyRevoke) GetBase ¶
func (x *ReceiptTradeBuyRevoke) GetBase() *ReceiptBuyBase
func (*ReceiptTradeBuyRevoke) ProtoMessage ¶
func (*ReceiptTradeBuyRevoke) ProtoMessage()
func (*ReceiptTradeBuyRevoke) ProtoReflect ¶ added in v1.65.3
func (x *ReceiptTradeBuyRevoke) ProtoReflect() protoreflect.Message
func (*ReceiptTradeBuyRevoke) Reset ¶
func (x *ReceiptTradeBuyRevoke) Reset()
func (*ReceiptTradeBuyRevoke) String ¶
func (x *ReceiptTradeBuyRevoke) String() string
type ReceiptTradeSellLimit ¶
type ReceiptTradeSellLimit struct { Base *ReceiptSellBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` // contains filtered or unexported fields }
func (*ReceiptTradeSellLimit) Descriptor
deprecated
func (*ReceiptTradeSellLimit) Descriptor() ([]byte, []int)
Deprecated: Use ReceiptTradeSellLimit.ProtoReflect.Descriptor instead.
func (*ReceiptTradeSellLimit) GetBase ¶
func (x *ReceiptTradeSellLimit) GetBase() *ReceiptSellBase
func (*ReceiptTradeSellLimit) ProtoMessage ¶
func (*ReceiptTradeSellLimit) ProtoMessage()
func (*ReceiptTradeSellLimit) ProtoReflect ¶ added in v1.65.3
func (x *ReceiptTradeSellLimit) ProtoReflect() protoreflect.Message
func (*ReceiptTradeSellLimit) Reset ¶
func (x *ReceiptTradeSellLimit) Reset()
func (*ReceiptTradeSellLimit) String ¶
func (x *ReceiptTradeSellLimit) String() string
type ReceiptTradeSellRevoke ¶
type ReceiptTradeSellRevoke struct { Base *ReceiptSellBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` // contains filtered or unexported fields }
func (*ReceiptTradeSellRevoke) Descriptor
deprecated
func (*ReceiptTradeSellRevoke) Descriptor() ([]byte, []int)
Deprecated: Use ReceiptTradeSellRevoke.ProtoReflect.Descriptor instead.
func (*ReceiptTradeSellRevoke) GetBase ¶
func (x *ReceiptTradeSellRevoke) GetBase() *ReceiptSellBase
func (*ReceiptTradeSellRevoke) ProtoMessage ¶
func (*ReceiptTradeSellRevoke) ProtoMessage()
func (*ReceiptTradeSellRevoke) ProtoReflect ¶ added in v1.65.3
func (x *ReceiptTradeSellRevoke) ProtoReflect() protoreflect.Message
func (*ReceiptTradeSellRevoke) Reset ¶
func (x *ReceiptTradeSellRevoke) Reset()
func (*ReceiptTradeSellRevoke) String ¶
func (x *ReceiptTradeSellRevoke) String() string
type ReplyBuyOrder ¶
type ReplyBuyOrder struct { TokenSymbol string `protobuf:"bytes,1,opt,name=tokenSymbol,proto3" json:"tokenSymbol,omitempty"` Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` AmountPerBoardlot int64 `protobuf:"varint,3,opt,name=amountPerBoardlot,proto3" json:"amountPerBoardlot,omitempty"` MinBoardlot int64 `protobuf:"varint,4,opt,name=minBoardlot,proto3" json:"minBoardlot,omitempty"` PricePerBoardlot int64 `protobuf:"varint,5,opt,name=pricePerBoardlot,proto3" json:"pricePerBoardlot,omitempty"` TotalBoardlot int64 `protobuf:"varint,6,opt,name=totalBoardlot,proto3" json:"totalBoardlot,omitempty"` BoughtBoardlot int64 `protobuf:"varint,7,opt,name=boughtBoardlot,proto3" json:"boughtBoardlot,omitempty"` BuyID string `protobuf:"bytes,8,opt,name=buyID,proto3" json:"buyID,omitempty"` Status int32 `protobuf:"varint,9,opt,name=status,proto3" json:"status,omitempty"` SellID string `protobuf:"bytes,10,opt,name=sellID,proto3" json:"sellID,omitempty"` TxHash string `protobuf:"bytes,11,opt,name=txHash,proto3" json:"txHash,omitempty"` Height int64 `protobuf:"varint,12,opt,name=height,proto3" json:"height,omitempty"` Key string `protobuf:"bytes,13,opt,name=key,proto3" json:"key,omitempty"` AssetExec string `protobuf:"bytes,14,opt,name=assetExec,proto3" json:"assetExec,omitempty"` // contains filtered or unexported fields }
func (*ReplyBuyOrder) Descriptor
deprecated
func (*ReplyBuyOrder) Descriptor() ([]byte, []int)
Deprecated: Use ReplyBuyOrder.ProtoReflect.Descriptor instead.
func (*ReplyBuyOrder) GetAmountPerBoardlot ¶
func (x *ReplyBuyOrder) GetAmountPerBoardlot() int64
func (*ReplyBuyOrder) GetAssetExec ¶
func (x *ReplyBuyOrder) GetAssetExec() string
func (*ReplyBuyOrder) GetBoughtBoardlot ¶
func (x *ReplyBuyOrder) GetBoughtBoardlot() int64
func (*ReplyBuyOrder) GetBuyID ¶
func (x *ReplyBuyOrder) GetBuyID() string
func (*ReplyBuyOrder) GetHeight ¶
func (x *ReplyBuyOrder) GetHeight() int64
func (*ReplyBuyOrder) GetKey ¶
func (x *ReplyBuyOrder) GetKey() string
func (*ReplyBuyOrder) GetMinBoardlot ¶
func (x *ReplyBuyOrder) GetMinBoardlot() int64
func (*ReplyBuyOrder) GetOwner ¶
func (x *ReplyBuyOrder) GetOwner() string
func (*ReplyBuyOrder) GetPricePerBoardlot ¶
func (x *ReplyBuyOrder) GetPricePerBoardlot() int64
func (*ReplyBuyOrder) GetSellID ¶
func (x *ReplyBuyOrder) GetSellID() string
func (*ReplyBuyOrder) GetStatus ¶
func (x *ReplyBuyOrder) GetStatus() int32
func (*ReplyBuyOrder) GetTokenSymbol ¶
func (x *ReplyBuyOrder) GetTokenSymbol() string
func (*ReplyBuyOrder) GetTotalBoardlot ¶
func (x *ReplyBuyOrder) GetTotalBoardlot() int64
func (*ReplyBuyOrder) GetTxHash ¶
func (x *ReplyBuyOrder) GetTxHash() string
func (*ReplyBuyOrder) ProtoMessage ¶
func (*ReplyBuyOrder) ProtoMessage()
func (*ReplyBuyOrder) ProtoReflect ¶ added in v1.65.3
func (x *ReplyBuyOrder) ProtoReflect() protoreflect.Message
func (*ReplyBuyOrder) Reset ¶
func (x *ReplyBuyOrder) Reset()
func (*ReplyBuyOrder) String ¶
func (x *ReplyBuyOrder) String() string
type ReplyBuyOrders ¶
type ReplyBuyOrders struct { BuyOrders []*ReplyBuyOrder `protobuf:"bytes,1,rep,name=buyOrders,proto3" json:"buyOrders,omitempty"` // contains filtered or unexported fields }
func (*ReplyBuyOrders) Descriptor
deprecated
func (*ReplyBuyOrders) Descriptor() ([]byte, []int)
Deprecated: Use ReplyBuyOrders.ProtoReflect.Descriptor instead.
func (*ReplyBuyOrders) GetBuyOrders ¶
func (x *ReplyBuyOrders) GetBuyOrders() []*ReplyBuyOrder
func (*ReplyBuyOrders) ProtoMessage ¶
func (*ReplyBuyOrders) ProtoMessage()
func (*ReplyBuyOrders) ProtoReflect ¶ added in v1.65.3
func (x *ReplyBuyOrders) ProtoReflect() protoreflect.Message
func (*ReplyBuyOrders) Reset ¶
func (x *ReplyBuyOrders) Reset()
func (*ReplyBuyOrders) String ¶
func (x *ReplyBuyOrders) String() string
type ReplySellOrder ¶
type ReplySellOrder struct { TokenSymbol string `protobuf:"bytes,1,opt,name=tokenSymbol,proto3" json:"tokenSymbol,omitempty"` Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` AmountPerBoardlot int64 `protobuf:"varint,3,opt,name=amountPerBoardlot,proto3" json:"amountPerBoardlot,omitempty"` MinBoardlot int64 `protobuf:"varint,4,opt,name=minBoardlot,proto3" json:"minBoardlot,omitempty"` PricePerBoardlot int64 `protobuf:"varint,5,opt,name=pricePerBoardlot,proto3" json:"pricePerBoardlot,omitempty"` TotalBoardlot int64 `protobuf:"varint,6,opt,name=totalBoardlot,proto3" json:"totalBoardlot,omitempty"` SoldBoardlot int64 `protobuf:"varint,7,opt,name=soldBoardlot,proto3" json:"soldBoardlot,omitempty"` BuyID string `protobuf:"bytes,8,opt,name=buyID,proto3" json:"buyID,omitempty"` Status int32 `protobuf:"varint,9,opt,name=status,proto3" json:"status,omitempty"` SellID string `protobuf:"bytes,10,opt,name=sellID,proto3" json:"sellID,omitempty"` TxHash string `protobuf:"bytes,11,opt,name=txHash,proto3" json:"txHash,omitempty"` Height int64 `protobuf:"varint,12,opt,name=height,proto3" json:"height,omitempty"` Key string `protobuf:"bytes,13,opt,name=key,proto3" json:"key,omitempty"` AssetExec string `protobuf:"bytes,14,opt,name=assetExec,proto3" json:"assetExec,omitempty"` // contains filtered or unexported fields }
func (*ReplySellOrder) Descriptor
deprecated
func (*ReplySellOrder) Descriptor() ([]byte, []int)
Deprecated: Use ReplySellOrder.ProtoReflect.Descriptor instead.
func (*ReplySellOrder) GetAmountPerBoardlot ¶
func (x *ReplySellOrder) GetAmountPerBoardlot() int64
func (*ReplySellOrder) GetAssetExec ¶
func (x *ReplySellOrder) GetAssetExec() string
func (*ReplySellOrder) GetBuyID ¶
func (x *ReplySellOrder) GetBuyID() string
func (*ReplySellOrder) GetHeight ¶
func (x *ReplySellOrder) GetHeight() int64
func (*ReplySellOrder) GetKey ¶
func (x *ReplySellOrder) GetKey() string
func (*ReplySellOrder) GetMinBoardlot ¶
func (x *ReplySellOrder) GetMinBoardlot() int64
func (*ReplySellOrder) GetOwner ¶
func (x *ReplySellOrder) GetOwner() string
func (*ReplySellOrder) GetPricePerBoardlot ¶
func (x *ReplySellOrder) GetPricePerBoardlot() int64
func (*ReplySellOrder) GetSellID ¶
func (x *ReplySellOrder) GetSellID() string
func (*ReplySellOrder) GetSoldBoardlot ¶
func (x *ReplySellOrder) GetSoldBoardlot() int64
func (*ReplySellOrder) GetStatus ¶
func (x *ReplySellOrder) GetStatus() int32
func (*ReplySellOrder) GetTokenSymbol ¶
func (x *ReplySellOrder) GetTokenSymbol() string
func (*ReplySellOrder) GetTotalBoardlot ¶
func (x *ReplySellOrder) GetTotalBoardlot() int64
func (*ReplySellOrder) GetTxHash ¶
func (x *ReplySellOrder) GetTxHash() string
func (*ReplySellOrder) ProtoMessage ¶
func (*ReplySellOrder) ProtoMessage()
func (*ReplySellOrder) ProtoReflect ¶ added in v1.65.3
func (x *ReplySellOrder) ProtoReflect() protoreflect.Message
func (*ReplySellOrder) Reset ¶
func (x *ReplySellOrder) Reset()
func (*ReplySellOrder) String ¶
func (x *ReplySellOrder) String() string
type ReplySellOrders ¶
type ReplySellOrders struct { SellOrders []*ReplySellOrder `protobuf:"bytes,1,rep,name=sellOrders,proto3" json:"sellOrders,omitempty"` // contains filtered or unexported fields }
func (*ReplySellOrders) Descriptor
deprecated
func (*ReplySellOrders) Descriptor() ([]byte, []int)
Deprecated: Use ReplySellOrders.ProtoReflect.Descriptor instead.
func (*ReplySellOrders) GetSellOrders ¶
func (x *ReplySellOrders) GetSellOrders() []*ReplySellOrder
func (*ReplySellOrders) ProtoMessage ¶
func (*ReplySellOrders) ProtoMessage()
func (*ReplySellOrders) ProtoReflect ¶ added in v1.65.3
func (x *ReplySellOrders) ProtoReflect() protoreflect.Message
func (*ReplySellOrders) Reset ¶
func (x *ReplySellOrders) Reset()
func (*ReplySellOrders) String ¶
func (x *ReplySellOrders) String() string
type ReplyTradeOrder ¶
type ReplyTradeOrder struct { TokenSymbol string `protobuf:"bytes,1,opt,name=tokenSymbol,proto3" json:"tokenSymbol,omitempty"` Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` AmountPerBoardlot int64 `protobuf:"varint,3,opt,name=amountPerBoardlot,proto3" json:"amountPerBoardlot,omitempty"` MinBoardlot int64 `protobuf:"varint,4,opt,name=minBoardlot,proto3" json:"minBoardlot,omitempty"` PricePerBoardlot int64 `protobuf:"varint,5,opt,name=pricePerBoardlot,proto3" json:"pricePerBoardlot,omitempty"` TotalBoardlot int64 `protobuf:"varint,6,opt,name=totalBoardlot,proto3" json:"totalBoardlot,omitempty"` TradedBoardlot int64 `protobuf:"varint,7,opt,name=tradedBoardlot,proto3" json:"tradedBoardlot,omitempty"` BuyID string `protobuf:"bytes,8,opt,name=buyID,proto3" json:"buyID,omitempty"` Status int32 `protobuf:"varint,9,opt,name=status,proto3" json:"status,omitempty"` SellID string `protobuf:"bytes,10,opt,name=sellID,proto3" json:"sellID,omitempty"` TxHash string `protobuf:"bytes,11,opt,name=txHash,proto3" json:"txHash,omitempty"` Height int64 `protobuf:"varint,12,opt,name=height,proto3" json:"height,omitempty"` Key string `protobuf:"bytes,13,opt,name=key,proto3" json:"key,omitempty"` BlockTime int64 `protobuf:"varint,14,opt,name=blockTime,proto3" json:"blockTime,omitempty"` IsSellOrder bool `protobuf:"varint,15,opt,name=isSellOrder,proto3" json:"isSellOrder,omitempty"` AssetExec string `protobuf:"bytes,16,opt,name=assetExec,proto3" json:"assetExec,omitempty"` PriceExec string `protobuf:"bytes,17,opt,name=priceExec,proto3" json:"priceExec,omitempty"` PriceSymbol string `protobuf:"bytes,18,opt,name=priceSymbol,proto3" json:"priceSymbol,omitempty"` // contains filtered or unexported fields }
func (*ReplyTradeOrder) Descriptor
deprecated
func (*ReplyTradeOrder) Descriptor() ([]byte, []int)
Deprecated: Use ReplyTradeOrder.ProtoReflect.Descriptor instead.
func (*ReplyTradeOrder) GetAmountPerBoardlot ¶
func (x *ReplyTradeOrder) GetAmountPerBoardlot() int64
func (*ReplyTradeOrder) GetAssetExec ¶
func (x *ReplyTradeOrder) GetAssetExec() string
func (*ReplyTradeOrder) GetBlockTime ¶
func (x *ReplyTradeOrder) GetBlockTime() int64
func (*ReplyTradeOrder) GetBuyID ¶
func (x *ReplyTradeOrder) GetBuyID() string
func (*ReplyTradeOrder) GetHeight ¶
func (x *ReplyTradeOrder) GetHeight() int64
func (*ReplyTradeOrder) GetIsSellOrder ¶
func (x *ReplyTradeOrder) GetIsSellOrder() bool
func (*ReplyTradeOrder) GetKey ¶
func (x *ReplyTradeOrder) GetKey() string
func (*ReplyTradeOrder) GetMinBoardlot ¶
func (x *ReplyTradeOrder) GetMinBoardlot() int64
func (*ReplyTradeOrder) GetOwner ¶
func (x *ReplyTradeOrder) GetOwner() string
func (*ReplyTradeOrder) GetPriceExec ¶
func (x *ReplyTradeOrder) GetPriceExec() string
func (*ReplyTradeOrder) GetPricePerBoardlot ¶
func (x *ReplyTradeOrder) GetPricePerBoardlot() int64
func (*ReplyTradeOrder) GetPriceSymbol ¶
func (x *ReplyTradeOrder) GetPriceSymbol() string
func (*ReplyTradeOrder) GetSellID ¶
func (x *ReplyTradeOrder) GetSellID() string
func (*ReplyTradeOrder) GetStatus ¶
func (x *ReplyTradeOrder) GetStatus() int32
func (*ReplyTradeOrder) GetTokenSymbol ¶
func (x *ReplyTradeOrder) GetTokenSymbol() string
func (*ReplyTradeOrder) GetTotalBoardlot ¶
func (x *ReplyTradeOrder) GetTotalBoardlot() int64
func (*ReplyTradeOrder) GetTradedBoardlot ¶
func (x *ReplyTradeOrder) GetTradedBoardlot() int64
func (*ReplyTradeOrder) GetTxHash ¶
func (x *ReplyTradeOrder) GetTxHash() string
func (*ReplyTradeOrder) ProtoMessage ¶
func (*ReplyTradeOrder) ProtoMessage()
func (*ReplyTradeOrder) ProtoReflect ¶ added in v1.65.3
func (x *ReplyTradeOrder) ProtoReflect() protoreflect.Message
func (*ReplyTradeOrder) Reset ¶
func (x *ReplyTradeOrder) Reset()
func (*ReplyTradeOrder) String ¶
func (x *ReplyTradeOrder) String() string
type ReplyTradeOrders ¶
type ReplyTradeOrders struct { Orders []*ReplyTradeOrder `protobuf:"bytes,1,rep,name=orders,proto3" json:"orders,omitempty"` // contains filtered or unexported fields }
func (*ReplyTradeOrders) Descriptor
deprecated
func (*ReplyTradeOrders) Descriptor() ([]byte, []int)
Deprecated: Use ReplyTradeOrders.ProtoReflect.Descriptor instead.
func (*ReplyTradeOrders) GetOrders ¶
func (x *ReplyTradeOrders) GetOrders() []*ReplyTradeOrder
func (*ReplyTradeOrders) ProtoMessage ¶
func (*ReplyTradeOrders) ProtoMessage()
func (*ReplyTradeOrders) ProtoReflect ¶ added in v1.65.3
func (x *ReplyTradeOrders) ProtoReflect() protoreflect.Message
func (*ReplyTradeOrders) Reset ¶
func (x *ReplyTradeOrders) Reset()
func (*ReplyTradeOrders) String ¶
func (x *ReplyTradeOrders) String() string
type ReqAddrAssets ¶
type ReqAddrAssets struct { Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"` // ?? Token []string `protobuf:"bytes,3,rep,name=token,proto3" json:"token,omitempty"` Direction int32 `protobuf:"varint,4,opt,name=direction,proto3" json:"direction,omitempty"` Count int32 `protobuf:"varint,5,opt,name=count,proto3" json:"count,omitempty"` FromKey string `protobuf:"bytes,6,opt,name=fromKey,proto3" json:"fromKey,omitempty"` // contains filtered or unexported fields }
func (*ReqAddrAssets) Descriptor
deprecated
func (*ReqAddrAssets) Descriptor() ([]byte, []int)
Deprecated: Use ReqAddrAssets.ProtoReflect.Descriptor instead.
func (*ReqAddrAssets) GetAddr ¶
func (x *ReqAddrAssets) GetAddr() string
func (*ReqAddrAssets) GetCount ¶
func (x *ReqAddrAssets) GetCount() int32
func (*ReqAddrAssets) GetDirection ¶
func (x *ReqAddrAssets) GetDirection() int32
func (*ReqAddrAssets) GetFromKey ¶
func (x *ReqAddrAssets) GetFromKey() string
func (*ReqAddrAssets) GetStatus ¶
func (x *ReqAddrAssets) GetStatus() int32
func (*ReqAddrAssets) GetToken ¶
func (x *ReqAddrAssets) GetToken() []string
func (*ReqAddrAssets) ProtoMessage ¶
func (*ReqAddrAssets) ProtoMessage()
func (*ReqAddrAssets) ProtoReflect ¶ added in v1.65.3
func (x *ReqAddrAssets) ProtoReflect() protoreflect.Message
func (*ReqAddrAssets) Reset ¶
func (x *ReqAddrAssets) Reset()
func (*ReqAddrAssets) String ¶
func (x *ReqAddrAssets) String() string
type ReqBuyToken ¶
type ReqBuyToken struct { Buy *TradeForBuy `protobuf:"bytes,1,opt,name=buy,proto3" json:"buy,omitempty"` Buyer string `protobuf:"bytes,2,opt,name=buyer,proto3" json:"buyer,omitempty"` // contains filtered or unexported fields }
func (*ReqBuyToken) Descriptor
deprecated
func (*ReqBuyToken) Descriptor() ([]byte, []int)
Deprecated: Use ReqBuyToken.ProtoReflect.Descriptor instead.
func (*ReqBuyToken) GetBuy ¶
func (x *ReqBuyToken) GetBuy() *TradeForBuy
func (*ReqBuyToken) GetBuyer ¶
func (x *ReqBuyToken) GetBuyer() string
func (*ReqBuyToken) ProtoMessage ¶
func (*ReqBuyToken) ProtoMessage()
func (*ReqBuyToken) ProtoReflect ¶ added in v1.65.3
func (x *ReqBuyToken) ProtoReflect() protoreflect.Message
func (*ReqBuyToken) Reset ¶
func (x *ReqBuyToken) Reset()
func (*ReqBuyToken) String ¶
func (x *ReqBuyToken) String() string
type ReqRevokeSell ¶
type ReqRevokeSell struct { Revoke *TradeForRevokeSell `protobuf:"bytes,1,opt,name=revoke,proto3" json:"revoke,omitempty"` Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` // contains filtered or unexported fields }
func (*ReqRevokeSell) Descriptor
deprecated
func (*ReqRevokeSell) Descriptor() ([]byte, []int)
Deprecated: Use ReqRevokeSell.ProtoReflect.Descriptor instead.
func (*ReqRevokeSell) GetOwner ¶
func (x *ReqRevokeSell) GetOwner() string
func (*ReqRevokeSell) GetRevoke ¶
func (x *ReqRevokeSell) GetRevoke() *TradeForRevokeSell
func (*ReqRevokeSell) ProtoMessage ¶
func (*ReqRevokeSell) ProtoMessage()
func (*ReqRevokeSell) ProtoReflect ¶ added in v1.65.3
func (x *ReqRevokeSell) ProtoReflect() protoreflect.Message
func (*ReqRevokeSell) Reset ¶
func (x *ReqRevokeSell) Reset()
func (*ReqRevokeSell) String ¶
func (x *ReqRevokeSell) String() string
type ReqSellToken ¶
type ReqSellToken struct { Sell *TradeForSell `protobuf:"bytes,1,opt,name=sell,proto3" json:"sell,omitempty"` Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` // contains filtered or unexported fields }
func (*ReqSellToken) Descriptor
deprecated
func (*ReqSellToken) Descriptor() ([]byte, []int)
Deprecated: Use ReqSellToken.ProtoReflect.Descriptor instead.
func (*ReqSellToken) GetOwner ¶
func (x *ReqSellToken) GetOwner() string
func (*ReqSellToken) GetSell ¶
func (x *ReqSellToken) GetSell() *TradeForSell
func (*ReqSellToken) ProtoMessage ¶
func (*ReqSellToken) ProtoMessage()
func (*ReqSellToken) ProtoReflect ¶ added in v1.65.3
func (x *ReqSellToken) ProtoReflect() protoreflect.Message
func (*ReqSellToken) Reset ¶
func (x *ReqSellToken) Reset()
func (*ReqSellToken) String ¶
func (x *ReqSellToken) String() string
type ReqTokenBuyOrder ¶
type ReqTokenBuyOrder struct { TokenSymbol string `protobuf:"bytes,1,opt,name=tokenSymbol,proto3" json:"tokenSymbol,omitempty"` FromKey string `protobuf:"bytes,2,opt,name=fromKey,proto3" json:"fromKey,omitempty"` Count int32 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` Direction int32 `protobuf:"varint,4,opt,name=direction,proto3" json:"direction,omitempty"` Status int32 `protobuf:"varint,5,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
func (*ReqTokenBuyOrder) Descriptor
deprecated
func (*ReqTokenBuyOrder) Descriptor() ([]byte, []int)
Deprecated: Use ReqTokenBuyOrder.ProtoReflect.Descriptor instead.
func (*ReqTokenBuyOrder) GetCount ¶
func (x *ReqTokenBuyOrder) GetCount() int32
func (*ReqTokenBuyOrder) GetDirection ¶
func (x *ReqTokenBuyOrder) GetDirection() int32
func (*ReqTokenBuyOrder) GetFromKey ¶
func (x *ReqTokenBuyOrder) GetFromKey() string
func (*ReqTokenBuyOrder) GetStatus ¶
func (x *ReqTokenBuyOrder) GetStatus() int32
func (*ReqTokenBuyOrder) GetTokenSymbol ¶
func (x *ReqTokenBuyOrder) GetTokenSymbol() string
func (*ReqTokenBuyOrder) ProtoMessage ¶
func (*ReqTokenBuyOrder) ProtoMessage()
func (*ReqTokenBuyOrder) ProtoReflect ¶ added in v1.65.3
func (x *ReqTokenBuyOrder) ProtoReflect() protoreflect.Message
func (*ReqTokenBuyOrder) Reset ¶
func (x *ReqTokenBuyOrder) Reset()
func (*ReqTokenBuyOrder) String ¶
func (x *ReqTokenBuyOrder) String() string
type ReqTokenSellOrder ¶
type ReqTokenSellOrder struct { TokenSymbol string `protobuf:"bytes,1,opt,name=tokenSymbol,proto3" json:"tokenSymbol,omitempty"` FromKey string `protobuf:"bytes,2,opt,name=fromKey,proto3" json:"fromKey,omitempty"` Count int32 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` Direction int32 `protobuf:"varint,4,opt,name=direction,proto3" json:"direction,omitempty"` Status int32 `protobuf:"varint,5,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
获取Token未完成卖单的交易列表
fromKey : 第一次传参为空,获取卖单单价最低的列表。 当要获得下一页时,
传当前页最后一个;当要获得上一页时, 传当前页第一个。 count :获取交易列表的个数。 direction :查找方式;0,上一页;1,下一页。 越靠后的也单价越贵
func (*ReqTokenSellOrder) Descriptor
deprecated
func (*ReqTokenSellOrder) Descriptor() ([]byte, []int)
Deprecated: Use ReqTokenSellOrder.ProtoReflect.Descriptor instead.
func (*ReqTokenSellOrder) GetCount ¶
func (x *ReqTokenSellOrder) GetCount() int32
func (*ReqTokenSellOrder) GetDirection ¶
func (x *ReqTokenSellOrder) GetDirection() int32
func (*ReqTokenSellOrder) GetFromKey ¶
func (x *ReqTokenSellOrder) GetFromKey() string
func (*ReqTokenSellOrder) GetStatus ¶
func (x *ReqTokenSellOrder) GetStatus() int32
func (*ReqTokenSellOrder) GetTokenSymbol ¶
func (x *ReqTokenSellOrder) GetTokenSymbol() string
func (*ReqTokenSellOrder) ProtoMessage ¶
func (*ReqTokenSellOrder) ProtoMessage()
func (*ReqTokenSellOrder) ProtoReflect ¶ added in v1.65.3
func (x *ReqTokenSellOrder) ProtoReflect() protoreflect.Message
func (*ReqTokenSellOrder) Reset ¶
func (x *ReqTokenSellOrder) Reset()
func (*ReqTokenSellOrder) String ¶
func (x *ReqTokenSellOrder) String() string
type SellOrder ¶
type SellOrder struct { TokenSymbol string `protobuf:"bytes,1,opt,name=tokenSymbol,proto3" json:"tokenSymbol,omitempty"` Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` //每一手出售的token的数量 AmountPerBoardlot int64 `protobuf:"varint,3,opt,name=amountPerBoardlot,proto3" json:"amountPerBoardlot,omitempty"` MinBoardlot int64 `protobuf:"varint,4,opt,name=minBoardlot,proto3" json:"minBoardlot,omitempty"` //每一手token的价格 PricePerBoardlot int64 `protobuf:"varint,5,opt,name=pricePerBoardlot,proto3" json:"pricePerBoardlot,omitempty"` TotalBoardlot int64 `protobuf:"varint,6,opt,name=totalBoardlot,proto3" json:"totalBoardlot,omitempty"` SoldBoardlot int64 `protobuf:"varint,7,opt,name=soldBoardlot,proto3" json:"soldBoardlot,omitempty"` //此次出售的起始时间,如果非众筹则可以忽略此时间 Starttime int64 `protobuf:"varint,8,opt,name=starttime,proto3" json:"starttime,omitempty"` Stoptime int64 `protobuf:"varint,9,opt,name=stoptime,proto3" json:"stoptime,omitempty"` Crowdfund bool `protobuf:"varint,10,opt,name=crowdfund,proto3" json:"crowdfund,omitempty"` //此处使用tx的hash来指定 SellID string `protobuf:"bytes,11,opt,name=sellID,proto3" json:"sellID,omitempty"` Status int32 `protobuf:"varint,12,opt,name=status,proto3" json:"status,omitempty"` Height int64 `protobuf:"varint,13,opt,name=height,proto3" json:"height,omitempty"` AssetExec string `protobuf:"bytes,14,opt,name=assetExec,proto3" json:"assetExec,omitempty"` PriceExec string `protobuf:"bytes,15,opt,name=priceExec,proto3" json:"priceExec,omitempty"` PriceSymbol string `protobuf:"bytes,16,opt,name=priceSymbol,proto3" json:"priceSymbol,omitempty"` // contains filtered or unexported fields }
数据库部分
func (*SellOrder) Descriptor
deprecated
func (*SellOrder) GetAddress ¶
func (*SellOrder) GetAmountPerBoardlot ¶
func (*SellOrder) GetAssetExec ¶
func (*SellOrder) GetCrowdfund ¶
func (*SellOrder) GetMinBoardlot ¶
func (*SellOrder) GetPriceExec ¶
func (*SellOrder) GetPricePerBoardlot ¶
func (*SellOrder) GetPriceSymbol ¶
func (*SellOrder) GetSoldBoardlot ¶
func (*SellOrder) GetStarttime ¶
func (*SellOrder) GetStoptime ¶
func (*SellOrder) GetTokenSymbol ¶
func (*SellOrder) GetTotalBoardlot ¶
func (*SellOrder) ProtoMessage ¶
func (*SellOrder) ProtoMessage()
func (*SellOrder) ProtoReflect ¶ added in v1.65.3
func (x *SellOrder) ProtoReflect() protoreflect.Message
type Trade ¶
type Trade struct { // Types that are assignable to Value: // *Trade_SellLimit // *Trade_BuyMarket // *Trade_RevokeSell // *Trade_BuyLimit // *Trade_SellMarket // *Trade_RevokeBuy Value isTrade_Value `protobuf_oneof:"value"` Ty int32 `protobuf:"varint,4,opt,name=ty,proto3" json:"ty,omitempty"` // contains filtered or unexported fields }
trade 交易部分
func (*Trade) Descriptor
deprecated
func (*Trade) GetBuyLimit ¶
func (x *Trade) GetBuyLimit() *TradeForBuyLimit
func (*Trade) GetBuyMarket ¶
func (x *Trade) GetBuyMarket() *TradeForBuy
func (*Trade) GetRevokeBuy ¶
func (x *Trade) GetRevokeBuy() *TradeForRevokeBuy
func (*Trade) GetRevokeSell ¶
func (x *Trade) GetRevokeSell() *TradeForRevokeSell
func (*Trade) GetSellLimit ¶
func (x *Trade) GetSellLimit() *TradeForSell
func (*Trade) GetSellMarket ¶
func (x *Trade) GetSellMarket() *TradeForSellMarket
func (*Trade) ProtoMessage ¶
func (*Trade) ProtoMessage()
func (*Trade) ProtoReflect ¶ added in v1.65.3
func (x *Trade) ProtoReflect() protoreflect.Message
type TradeBuyLimitTx ¶
type TradeBuyLimitTx struct { TokenSymbol string `json:"tokenSymbol"` AmountPerBoardlot int64 `json:"amountPerBoardlot"` MinBoardlot int64 `json:"minBoardlot"` PricePerBoardlot int64 `json:"pricePerBoardlot"` TotalBoardlot int64 `json:"totalBoardlot"` Fee int64 `json:"fee"` AssetExec string `json:"assetExec"` PriceExec string `json:"priceExec"` PriceSymbol string `json:"priceSymbol"` }
TradeBuyLimitTx :用于挂买单的信息
type TradeBuyTx ¶
type TradeBuyTx struct { SellID string `json:"sellID"` BoardlotCnt int64 `json:"boardlotCnt"` Fee int64 `json:"fee"` }
TradeBuyTx :info for buy order to speficied order
type TradeClient ¶
type TradeClient interface { CreateRawTradeSellTx(ctx context.Context, in *TradeForSell, opts ...grpc.CallOption) (*types.UnsignTx, error) CreateRawTradeBuyTx(ctx context.Context, in *TradeForBuy, opts ...grpc.CallOption) (*types.UnsignTx, error) CreateRawTradeRevokeTx(ctx context.Context, in *TradeForRevokeSell, opts ...grpc.CallOption) (*types.UnsignTx, error) CreateRawTradeBuyLimitTx(ctx context.Context, in *TradeForBuyLimit, opts ...grpc.CallOption) (*types.UnsignTx, error) CreateRawTradeSellMarketTx(ctx context.Context, in *TradeForSellMarket, opts ...grpc.CallOption) (*types.UnsignTx, error) CreateRawTradeRevokeBuyTx(ctx context.Context, in *TradeForRevokeBuy, opts ...grpc.CallOption) (*types.UnsignTx, error) }
TradeClient is the client API for Trade service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewTradeClient ¶
func NewTradeClient(cc grpc.ClientConnInterface) TradeClient
type TradeForBuy ¶
type TradeForBuy struct { SellID string `protobuf:"bytes,1,opt,name=sellID,proto3" json:"sellID,omitempty"` BoardlotCnt int64 `protobuf:"varint,2,opt,name=boardlotCnt,proto3" json:"boardlotCnt,omitempty"` // contains filtered or unexported fields }
购买者发起交易用来购买token持有者之前挂单出售的token 其中的hash为token出售者发起出售交易的hash
func (*TradeForBuy) Descriptor
deprecated
func (*TradeForBuy) Descriptor() ([]byte, []int)
Deprecated: Use TradeForBuy.ProtoReflect.Descriptor instead.
func (*TradeForBuy) GetBoardlotCnt ¶
func (x *TradeForBuy) GetBoardlotCnt() int64
func (*TradeForBuy) GetSellID ¶
func (x *TradeForBuy) GetSellID() string
func (*TradeForBuy) ProtoMessage ¶
func (*TradeForBuy) ProtoMessage()
func (*TradeForBuy) ProtoReflect ¶ added in v1.65.3
func (x *TradeForBuy) ProtoReflect() protoreflect.Message
func (*TradeForBuy) Reset ¶
func (x *TradeForBuy) Reset()
func (*TradeForBuy) String ¶
func (x *TradeForBuy) String() string
type TradeForBuyLimit ¶
type TradeForBuyLimit struct { TokenSymbol string `protobuf:"bytes,1,opt,name=tokenSymbol,proto3" json:"tokenSymbol,omitempty"` AmountPerBoardlot int64 `protobuf:"varint,2,opt,name=amountPerBoardlot,proto3" json:"amountPerBoardlot,omitempty"` MinBoardlot int64 `protobuf:"varint,3,opt,name=minBoardlot,proto3" json:"minBoardlot,omitempty"` PricePerBoardlot int64 `protobuf:"varint,4,opt,name=pricePerBoardlot,proto3" json:"pricePerBoardlot,omitempty"` TotalBoardlot int64 `protobuf:"varint,5,opt,name=totalBoardlot,proto3" json:"totalBoardlot,omitempty"` AssetExec string `protobuf:"bytes,6,opt,name=assetExec,proto3" json:"assetExec,omitempty"` // 定价资产 PriceExec string `protobuf:"bytes,7,opt,name=priceExec,proto3" json:"priceExec,omitempty"` PriceSymbol string `protobuf:"bytes,8,opt,name=priceSymbol,proto3" json:"priceSymbol,omitempty"` // contains filtered or unexported fields }
限价买单构造请求
func (*TradeForBuyLimit) Descriptor
deprecated
func (*TradeForBuyLimit) Descriptor() ([]byte, []int)
Deprecated: Use TradeForBuyLimit.ProtoReflect.Descriptor instead.
func (*TradeForBuyLimit) GetAmountPerBoardlot ¶
func (x *TradeForBuyLimit) GetAmountPerBoardlot() int64
func (*TradeForBuyLimit) GetAssetExec ¶
func (x *TradeForBuyLimit) GetAssetExec() string
func (*TradeForBuyLimit) GetMinBoardlot ¶
func (x *TradeForBuyLimit) GetMinBoardlot() int64
func (*TradeForBuyLimit) GetPriceExec ¶
func (x *TradeForBuyLimit) GetPriceExec() string
func (*TradeForBuyLimit) GetPricePerBoardlot ¶
func (x *TradeForBuyLimit) GetPricePerBoardlot() int64
func (*TradeForBuyLimit) GetPriceSymbol ¶
func (x *TradeForBuyLimit) GetPriceSymbol() string
func (*TradeForBuyLimit) GetTokenSymbol ¶
func (x *TradeForBuyLimit) GetTokenSymbol() string
func (*TradeForBuyLimit) GetTotalBoardlot ¶
func (x *TradeForBuyLimit) GetTotalBoardlot() int64
func (*TradeForBuyLimit) ProtoMessage ¶
func (*TradeForBuyLimit) ProtoMessage()
func (*TradeForBuyLimit) ProtoReflect ¶ added in v1.65.3
func (x *TradeForBuyLimit) ProtoReflect() protoreflect.Message
func (*TradeForBuyLimit) Reset ¶
func (x *TradeForBuyLimit) Reset()
func (*TradeForBuyLimit) String ¶
func (x *TradeForBuyLimit) String() string
type TradeForRevokeBuy ¶
type TradeForRevokeBuy struct { BuyID string `protobuf:"bytes,1,opt,name=buyID,proto3" json:"buyID,omitempty"` // contains filtered or unexported fields }
撤销买单
func (*TradeForRevokeBuy) Descriptor
deprecated
func (*TradeForRevokeBuy) Descriptor() ([]byte, []int)
Deprecated: Use TradeForRevokeBuy.ProtoReflect.Descriptor instead.
func (*TradeForRevokeBuy) GetBuyID ¶
func (x *TradeForRevokeBuy) GetBuyID() string
func (*TradeForRevokeBuy) ProtoMessage ¶
func (*TradeForRevokeBuy) ProtoMessage()
func (*TradeForRevokeBuy) ProtoReflect ¶ added in v1.65.3
func (x *TradeForRevokeBuy) ProtoReflect() protoreflect.Message
func (*TradeForRevokeBuy) Reset ¶
func (x *TradeForRevokeBuy) Reset()
func (*TradeForRevokeBuy) String ¶
func (x *TradeForRevokeBuy) String() string
type TradeForRevokeSell ¶
type TradeForRevokeSell struct { SellID string `protobuf:"bytes,1,opt,name=sellID,proto3" json:"sellID,omitempty"` // contains filtered or unexported fields }
允许token的持有者撤销之前未成交出售token的挂单
func (*TradeForRevokeSell) Descriptor
deprecated
func (*TradeForRevokeSell) Descriptor() ([]byte, []int)
Deprecated: Use TradeForRevokeSell.ProtoReflect.Descriptor instead.
func (*TradeForRevokeSell) GetSellID ¶
func (x *TradeForRevokeSell) GetSellID() string
func (*TradeForRevokeSell) ProtoMessage ¶
func (*TradeForRevokeSell) ProtoMessage()
func (*TradeForRevokeSell) ProtoReflect ¶ added in v1.65.3
func (x *TradeForRevokeSell) ProtoReflect() protoreflect.Message
func (*TradeForRevokeSell) Reset ¶
func (x *TradeForRevokeSell) Reset()
func (*TradeForRevokeSell) String ¶
func (x *TradeForRevokeSell) String() string
type TradeForSell ¶
type TradeForSell struct { TokenSymbol string `protobuf:"bytes,1,opt,name=tokenSymbol,proto3" json:"tokenSymbol,omitempty"` // 每一手出售的token的数量 AmountPerBoardlot int64 `protobuf:"varint,2,opt,name=amountPerBoardlot,proto3" json:"amountPerBoardlot,omitempty"` // 起卖手数,必须达到这个门槛才允许进行交易 MinBoardlot int64 `protobuf:"varint,3,opt,name=minBoardlot,proto3" json:"minBoardlot,omitempty"` // 每一手token的价格 PricePerBoardlot int64 `protobuf:"varint,4,opt,name=pricePerBoardlot,proto3" json:"pricePerBoardlot,omitempty"` TotalBoardlot int64 `protobuf:"varint,5,opt,name=totalBoardlot,proto3" json:"totalBoardlot,omitempty"` // 此次出售的起始时间,如果非众筹则可以忽略此时间 Starttime int64 `protobuf:"varint,6,opt,name=starttime,proto3" json:"starttime,omitempty"` Stoptime int64 `protobuf:"varint,7,opt,name=stoptime,proto3" json:"stoptime,omitempty"` Crowdfund bool `protobuf:"varint,8,opt,name=crowdfund,proto3" json:"crowdfund,omitempty"` // 资产来源 AssetExec string `protobuf:"bytes,9,opt,name=assetExec,proto3" json:"assetExec,omitempty"` // 定价资产 PriceExec string `protobuf:"bytes,10,opt,name=priceExec,proto3" json:"priceExec,omitempty"` PriceSymbol string `protobuf:"bytes,11,opt,name=priceSymbol,proto3" json:"priceSymbol,omitempty"` // contains filtered or unexported fields }
创建众筹交易,确定一手交易的token的数量,单价以及总共有多少手token可以进行众筹
func (*TradeForSell) Descriptor
deprecated
func (*TradeForSell) Descriptor() ([]byte, []int)
Deprecated: Use TradeForSell.ProtoReflect.Descriptor instead.
func (*TradeForSell) GetAmountPerBoardlot ¶
func (x *TradeForSell) GetAmountPerBoardlot() int64
func (*TradeForSell) GetAssetExec ¶
func (x *TradeForSell) GetAssetExec() string
func (*TradeForSell) GetCrowdfund ¶
func (x *TradeForSell) GetCrowdfund() bool
func (*TradeForSell) GetMinBoardlot ¶
func (x *TradeForSell) GetMinBoardlot() int64
func (*TradeForSell) GetPriceExec ¶
func (x *TradeForSell) GetPriceExec() string
func (*TradeForSell) GetPricePerBoardlot ¶
func (x *TradeForSell) GetPricePerBoardlot() int64
func (*TradeForSell) GetPriceSymbol ¶
func (x *TradeForSell) GetPriceSymbol() string
func (*TradeForSell) GetStarttime ¶
func (x *TradeForSell) GetStarttime() int64
func (*TradeForSell) GetStoptime ¶
func (x *TradeForSell) GetStoptime() int64
func (*TradeForSell) GetTokenSymbol ¶
func (x *TradeForSell) GetTokenSymbol() string
func (*TradeForSell) GetTotalBoardlot ¶
func (x *TradeForSell) GetTotalBoardlot() int64
func (*TradeForSell) ProtoMessage ¶
func (*TradeForSell) ProtoMessage()
func (*TradeForSell) ProtoReflect ¶ added in v1.65.3
func (x *TradeForSell) ProtoReflect() protoreflect.Message
func (*TradeForSell) Reset ¶
func (x *TradeForSell) Reset()
func (*TradeForSell) String ¶
func (x *TradeForSell) String() string
type TradeForSellMarket ¶
type TradeForSellMarket struct { BuyID string `protobuf:"bytes,1,opt,name=buyID,proto3" json:"buyID,omitempty"` BoardlotCnt int64 `protobuf:"varint,2,opt,name=boardlotCnt,proto3" json:"boardlotCnt,omitempty"` // contains filtered or unexported fields }
现价卖单
func (*TradeForSellMarket) Descriptor
deprecated
func (*TradeForSellMarket) Descriptor() ([]byte, []int)
Deprecated: Use TradeForSellMarket.ProtoReflect.Descriptor instead.
func (*TradeForSellMarket) GetBoardlotCnt ¶
func (x *TradeForSellMarket) GetBoardlotCnt() int64
func (*TradeForSellMarket) GetBuyID ¶
func (x *TradeForSellMarket) GetBuyID() string
func (*TradeForSellMarket) ProtoMessage ¶
func (*TradeForSellMarket) ProtoMessage()
func (*TradeForSellMarket) ProtoReflect ¶ added in v1.65.3
func (x *TradeForSellMarket) ProtoReflect() protoreflect.Message
func (*TradeForSellMarket) Reset ¶
func (x *TradeForSellMarket) Reset()
func (*TradeForSellMarket) String ¶
func (x *TradeForSellMarket) String() string
type TradeRevokeBuyTx ¶
TradeRevokeBuyTx :取消指定买单
type TradeRevokeTx ¶
TradeRevokeTx :用于取消卖单的信息
type TradeSellMarketTx ¶
type TradeSellMarketTx struct { BuyID string `json:"buyID"` BoardlotCnt int64 `json:"boardlotCnt"` Fee int64 `json:"fee"` }
TradeSellMarketTx :用于向指定买单出售token的信息
type TradeSellTx ¶
type TradeSellTx struct { TokenSymbol string `json:"tokenSymbol"` AmountPerBoardlot int64 `json:"amountPerBoardlot"` MinBoardlot int64 `json:"minBoardlot"` PricePerBoardlot int64 `json:"pricePerBoardlot"` TotalBoardlot int64 `json:"totalBoardlot"` Fee int64 `json:"fee"` AssetExec string `json:"assetExec"` PriceExec string `json:"priceExec"` PriceSymbol string `json:"priceSymbol"` }
TradeSellTx : info for sell order
type TradeServer ¶
type TradeServer interface { CreateRawTradeSellTx(context.Context, *TradeForSell) (*types.UnsignTx, error) CreateRawTradeBuyTx(context.Context, *TradeForBuy) (*types.UnsignTx, error) CreateRawTradeRevokeTx(context.Context, *TradeForRevokeSell) (*types.UnsignTx, error) CreateRawTradeBuyLimitTx(context.Context, *TradeForBuyLimit) (*types.UnsignTx, error) CreateRawTradeSellMarketTx(context.Context, *TradeForSellMarket) (*types.UnsignTx, error) CreateRawTradeRevokeBuyTx(context.Context, *TradeForRevokeBuy) (*types.UnsignTx, error) }
TradeServer is the server API for Trade service.
type TradeType ¶
type TradeType struct {
types.ExecTypeBase
}
TradeType ...
func (*TradeType) ActionName ¶
func (t *TradeType) ActionName(tx *types.Transaction) string
ActionName ...
func (*TradeType) Amount ¶
func (t *TradeType) Amount(tx *types.Transaction) (int64, error)
Amount ...
func (*TradeType) CreateTx ¶
func (t *TradeType) CreateTx(action string, message json.RawMessage) (*types.Transaction, error)
CreateTx ...
type Trade_BuyLimit ¶
type Trade_BuyLimit struct {
BuyLimit *TradeForBuyLimit `protobuf:"bytes,5,opt,name=buyLimit,proto3,oneof"`
}
type Trade_BuyMarket ¶
type Trade_BuyMarket struct {
BuyMarket *TradeForBuy `protobuf:"bytes,2,opt,name=buyMarket,proto3,oneof"`
}
type Trade_RevokeBuy ¶
type Trade_RevokeBuy struct {
RevokeBuy *TradeForRevokeBuy `protobuf:"bytes,7,opt,name=revokeBuy,proto3,oneof"`
}
type Trade_RevokeSell ¶
type Trade_RevokeSell struct {
RevokeSell *TradeForRevokeSell `protobuf:"bytes,3,opt,name=revokeSell,proto3,oneof"`
}
type Trade_SellLimit ¶
type Trade_SellLimit struct {
SellLimit *TradeForSell `protobuf:"bytes,1,opt,name=sellLimit,proto3,oneof"`
}
type Trade_SellMarket ¶
type Trade_SellMarket struct {
SellMarket *TradeForSellMarket `protobuf:"bytes,6,opt,name=sellMarket,proto3,oneof"`
}
type UnimplementedTradeServer ¶
type UnimplementedTradeServer struct { }
UnimplementedTradeServer can be embedded to have forward compatible implementations.
func (*UnimplementedTradeServer) CreateRawTradeBuyLimitTx ¶
func (*UnimplementedTradeServer) CreateRawTradeBuyLimitTx(context.Context, *TradeForBuyLimit) (*types.UnsignTx, error)
func (*UnimplementedTradeServer) CreateRawTradeBuyTx ¶
func (*UnimplementedTradeServer) CreateRawTradeBuyTx(context.Context, *TradeForBuy) (*types.UnsignTx, error)
func (*UnimplementedTradeServer) CreateRawTradeRevokeBuyTx ¶
func (*UnimplementedTradeServer) CreateRawTradeRevokeBuyTx(context.Context, *TradeForRevokeBuy) (*types.UnsignTx, error)
func (*UnimplementedTradeServer) CreateRawTradeRevokeTx ¶
func (*UnimplementedTradeServer) CreateRawTradeRevokeTx(context.Context, *TradeForRevokeSell) (*types.UnsignTx, error)
func (*UnimplementedTradeServer) CreateRawTradeSellMarketTx ¶
func (*UnimplementedTradeServer) CreateRawTradeSellMarketTx(context.Context, *TradeForSellMarket) (*types.UnsignTx, error)
func (*UnimplementedTradeServer) CreateRawTradeSellTx ¶
func (*UnimplementedTradeServer) CreateRawTradeSellTx(context.Context, *TradeForSell) (*types.UnsignTx, error)