Documentation ¶
Index ¶
- func Init(name string, s rpctypes.RPCServer)
- type Grpc
- func (cc Grpc) CreateRawTradeBuyLimitTx(ctx context.Context, in *ptypes.TradeForBuyLimit) (*types.UnsignTx, error)
- func (cc Grpc) CreateRawTradeBuyTx(ctx context.Context, in *ptypes.TradeForBuy) (*types.UnsignTx, error)
- func (cc Grpc) CreateRawTradeRevokeBuyTx(ctx context.Context, in *ptypes.TradeForRevokeBuy) (*types.UnsignTx, error)
- func (cc Grpc) CreateRawTradeRevokeTx(ctx context.Context, in *ptypes.TradeForRevokeSell) (*types.UnsignTx, error)
- func (cc Grpc) CreateRawTradeSellMarketTx(ctx context.Context, in *ptypes.TradeForSellMarket) (*types.UnsignTx, error)
- func (cc Grpc) CreateRawTradeSellTx(ctx context.Context, in *ptypes.TradeForSell) (*types.UnsignTx, error)
- type Jrpc
- func (jrpc *Jrpc) CreateRawTradeBuyLimitTx(in *ptypes.TradeBuyLimitTx, result *interface{}) error
- func (jrpc *Jrpc) CreateRawTradeBuyTx(in *ptypes.TradeBuyTx, result *interface{}) error
- func (jrpc *Jrpc) CreateRawTradeRevokeBuyTx(in *ptypes.TradeRevokeBuyTx, result *interface{}) error
- func (jrpc *Jrpc) CreateRawTradeRevokeTx(in *ptypes.TradeRevokeTx, result *interface{}) error
- func (jrpc *Jrpc) CreateRawTradeSellMarketTx(in *ptypes.TradeSellMarketTx, result *interface{}) error
- func (jrpc *Jrpc) CreateRawTradeSellTx(in *ptypes.TradeSellTx, result *interface{}) error
- func (jrpc *Jrpc) GetLastMemPool(in types.ReqNil, result *interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Grpc ¶
type Grpc struct {
// contains filtered or unexported fields
}
Grpc : Grpc struct definition
func (Grpc) CreateRawTradeBuyLimitTx ¶
func (cc Grpc) CreateRawTradeBuyLimitTx(ctx context.Context, in *ptypes.TradeForBuyLimit) (*types.UnsignTx, error)
CreateRawTradeBuyLimitTx :
func (Grpc) CreateRawTradeBuyTx ¶
func (cc Grpc) CreateRawTradeBuyTx(ctx context.Context, in *ptypes.TradeForBuy) (*types.UnsignTx, error)
CreateRawTradeBuyTx :
func (Grpc) CreateRawTradeRevokeBuyTx ¶
func (cc Grpc) CreateRawTradeRevokeBuyTx(ctx context.Context, in *ptypes.TradeForRevokeBuy) (*types.UnsignTx, error)
CreateRawTradeRevokeBuyTx :
func (Grpc) CreateRawTradeRevokeTx ¶
func (cc Grpc) CreateRawTradeRevokeTx(ctx context.Context, in *ptypes.TradeForRevokeSell) (*types.UnsignTx, error)
CreateRawTradeRevokeTx :
func (Grpc) CreateRawTradeSellMarketTx ¶
func (cc Grpc) CreateRawTradeSellMarketTx(ctx context.Context, in *ptypes.TradeForSellMarket) (*types.UnsignTx, error)
CreateRawTradeSellMarketTx :
func (Grpc) CreateRawTradeSellTx ¶
func (cc Grpc) CreateRawTradeSellTx(ctx context.Context, in *ptypes.TradeForSell) (*types.UnsignTx, error)
CreateRawTradeSellTx :
type Jrpc ¶
type Jrpc struct {
// contains filtered or unexported fields
}
Jrpc : Jrpc struct definition
func (*Jrpc) CreateRawTradeBuyLimitTx ¶
func (jrpc *Jrpc) CreateRawTradeBuyLimitTx(in *ptypes.TradeBuyLimitTx, result *interface{}) error
CreateRawTradeBuyLimitTx : 挂买单购买token
func (*Jrpc) CreateRawTradeBuyTx ¶
func (jrpc *Jrpc) CreateRawTradeBuyTx(in *ptypes.TradeBuyTx, result *interface{}) error
CreateRawTradeBuyTx : 创建购买token的未签名交易,向指定卖单发起购买
func (*Jrpc) CreateRawTradeRevokeBuyTx ¶
func (jrpc *Jrpc) CreateRawTradeRevokeBuyTx(in *ptypes.TradeRevokeBuyTx, result *interface{}) error
CreateRawTradeRevokeBuyTx : 取消指定买单
func (*Jrpc) CreateRawTradeRevokeTx ¶
func (jrpc *Jrpc) CreateRawTradeRevokeTx(in *ptypes.TradeRevokeTx, result *interface{}) error
CreateRawTradeRevokeTx : 取消指定卖单
func (*Jrpc) CreateRawTradeSellMarketTx ¶
func (jrpc *Jrpc) CreateRawTradeSellMarketTx(in *ptypes.TradeSellMarketTx, result *interface{}) error
CreateRawTradeSellMarketTx : 向指定买单出售token
func (*Jrpc) CreateRawTradeSellTx ¶
func (jrpc *Jrpc) CreateRawTradeSellTx(in *ptypes.TradeSellTx, result *interface{}) error
CreateRawTradeSellTx : 创建出售token的未签名交易
Click to show internal directories.
Click to hide internal directories.