Documentation
¶
Index ¶
- Variables
- func RegisterOperatorServer(s grpc.ServiceRegistrar, srv OperatorServer)
- type ActionType
- type AddWebhookReply
- type AddWebhookRequest
- func (*AddWebhookRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddWebhookRequest) GetAction() ActionType
- func (x *AddWebhookRequest) GetEndpoint() string
- func (x *AddWebhookRequest) GetSecret() string
- func (*AddWebhookRequest) ProtoMessage()
- func (x *AddWebhookRequest) ProtoReflect() protoreflect.Message
- func (x *AddWebhookRequest) Reset()
- func (x *AddWebhookRequest) String() string
- type BalanceFeeAccountReply
- func (*BalanceFeeAccountReply) Descriptor() ([]byte, []int)deprecated
- func (x *BalanceFeeAccountReply) GetBalance() int64
- func (*BalanceFeeAccountReply) ProtoMessage()
- func (x *BalanceFeeAccountReply) ProtoReflect() protoreflect.Message
- func (x *BalanceFeeAccountReply) Reset()
- func (x *BalanceFeeAccountReply) String() string
- type BalanceFeeAccountRequest
- type ClaimFeeDepositReply
- type ClaimFeeDepositRequest
- func (*ClaimFeeDepositRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ClaimFeeDepositRequest) GetOutpoints() []*TxOutpoint
- func (*ClaimFeeDepositRequest) ProtoMessage()
- func (x *ClaimFeeDepositRequest) ProtoReflect() protoreflect.Message
- func (x *ClaimFeeDepositRequest) Reset()
- func (x *ClaimFeeDepositRequest) String() string
- type ClaimMarketDepositReply
- type ClaimMarketDepositRequest
- func (*ClaimMarketDepositRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ClaimMarketDepositRequest) GetMarket() *types.Market
- func (x *ClaimMarketDepositRequest) GetOutpoints() []*TxOutpoint
- func (*ClaimMarketDepositRequest) ProtoMessage()
- func (x *ClaimMarketDepositRequest) ProtoReflect() protoreflect.Message
- func (x *ClaimMarketDepositRequest) Reset()
- func (x *ClaimMarketDepositRequest) String() string
- type CloseMarketReply
- type CloseMarketRequest
- func (*CloseMarketRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CloseMarketRequest) GetMarket() *types.Market
- func (*CloseMarketRequest) ProtoMessage()
- func (x *CloseMarketRequest) ProtoReflect() protoreflect.Message
- func (x *CloseMarketRequest) Reset()
- func (x *CloseMarketRequest) String() string
- type DepositFeeAccountReply
- func (*DepositFeeAccountReply) Descriptor() ([]byte, []int)deprecated
- func (x *DepositFeeAccountReply) GetAddressWithBlindingKey() []*types.AddressWithBlindingKey
- func (*DepositFeeAccountReply) ProtoMessage()
- func (x *DepositFeeAccountReply) ProtoReflect() protoreflect.Message
- func (x *DepositFeeAccountReply) Reset()
- func (x *DepositFeeAccountReply) String() string
- type DepositFeeAccountRequest
- func (*DepositFeeAccountRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DepositFeeAccountRequest) GetNumOfAddresses() int64
- func (*DepositFeeAccountRequest) ProtoMessage()
- func (x *DepositFeeAccountRequest) ProtoReflect() protoreflect.Message
- func (x *DepositFeeAccountRequest) Reset()
- func (x *DepositFeeAccountRequest) String() string
- type DepositMarketReply
- func (*DepositMarketReply) Descriptor() ([]byte, []int)deprecated
- func (x *DepositMarketReply) GetAddresses() []string
- func (*DepositMarketReply) ProtoMessage()
- func (x *DepositMarketReply) ProtoReflect() protoreflect.Message
- func (x *DepositMarketReply) Reset()
- func (x *DepositMarketReply) String() string
- type DepositMarketRequest
- func (*DepositMarketRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DepositMarketRequest) GetMarket() *types.Market
- func (x *DepositMarketRequest) GetNumOfAddresses() int64
- func (*DepositMarketRequest) ProtoMessage()
- func (x *DepositMarketRequest) ProtoReflect() protoreflect.Message
- func (x *DepositMarketRequest) Reset()
- func (x *DepositMarketRequest) String() string
- type DropMarketReply
- type DropMarketRequest
- func (*DropMarketRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DropMarketRequest) GetAccountIndex() uint64
- func (*DropMarketRequest) ProtoMessage()
- func (x *DropMarketRequest) ProtoReflect() protoreflect.Message
- func (x *DropMarketRequest) Reset()
- func (x *DropMarketRequest) String() string
- type FeeInfo
- func (*FeeInfo) Descriptor() ([]byte, []int)deprecated
- func (x *FeeInfo) GetAmount() uint64
- func (x *FeeInfo) GetAsset() string
- func (x *FeeInfo) GetBasisPoint() int64
- func (x *FeeInfo) GetMarketPrice() float32
- func (x *FeeInfo) GetTradeId() string
- func (*FeeInfo) ProtoMessage()
- func (x *FeeInfo) ProtoReflect() protoreflect.Message
- func (x *FeeInfo) Reset()
- func (x *FeeInfo) String() string
- type ListDepositMarketReply
- func (*ListDepositMarketReply) Descriptor() ([]byte, []int)deprecated
- func (x *ListDepositMarketReply) GetAddress() []string
- func (*ListDepositMarketReply) ProtoMessage()
- func (x *ListDepositMarketReply) ProtoReflect() protoreflect.Message
- func (x *ListDepositMarketReply) Reset()
- func (x *ListDepositMarketReply) String() string
- type ListDepositMarketRequest
- func (*ListDepositMarketRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListDepositMarketRequest) GetMarket() *types.Market
- func (*ListDepositMarketRequest) ProtoMessage()
- func (x *ListDepositMarketRequest) ProtoReflect() protoreflect.Message
- func (x *ListDepositMarketRequest) Reset()
- func (x *ListDepositMarketRequest) String() string
- type ListMarketReply
- type ListMarketRequest
- type ListTradesReply
- type ListTradesRequest
- type ListUtxosReply
- func (*ListUtxosReply) Descriptor() ([]byte, []int)deprecated
- func (x *ListUtxosReply) GetInfoPerAccount() map[uint64]*UtxoInfoList
- func (*ListUtxosReply) ProtoMessage()
- func (x *ListUtxosReply) ProtoReflect() protoreflect.Message
- func (x *ListUtxosReply) Reset()
- func (x *ListUtxosReply) String() string
- type ListUtxosRequest
- type ListWebhooksReply
- func (*ListWebhooksReply) Descriptor() ([]byte, []int)deprecated
- func (x *ListWebhooksReply) GetWebhookInfo() []*WebhookInfo
- func (*ListWebhooksReply) ProtoMessage()
- func (x *ListWebhooksReply) ProtoReflect() protoreflect.Message
- func (x *ListWebhooksReply) Reset()
- func (x *ListWebhooksReply) String() string
- type ListWebhooksRequest
- func (*ListWebhooksRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListWebhooksRequest) GetAction() ActionType
- func (*ListWebhooksRequest) ProtoMessage()
- func (x *ListWebhooksRequest) ProtoReflect() protoreflect.Message
- func (x *ListWebhooksRequest) Reset()
- func (x *ListWebhooksRequest) String() string
- type MarketInfo
- func (*MarketInfo) Descriptor() ([]byte, []int)deprecated
- func (x *MarketInfo) GetAccountIndex() uint64
- func (x *MarketInfo) GetFee() *types.Fee
- func (x *MarketInfo) GetMarket() *types.Market
- func (x *MarketInfo) GetPrice() *types.Price
- func (x *MarketInfo) GetStrategyType() StrategyType
- func (x *MarketInfo) GetTradable() bool
- func (*MarketInfo) ProtoMessage()
- func (x *MarketInfo) ProtoReflect() protoreflect.Message
- func (x *MarketInfo) Reset()
- func (x *MarketInfo) String() string
- type OpenMarketReply
- type OpenMarketRequest
- func (*OpenMarketRequest) Descriptor() ([]byte, []int)deprecated
- func (x *OpenMarketRequest) GetMarket() *types.Market
- func (*OpenMarketRequest) ProtoMessage()
- func (x *OpenMarketRequest) ProtoReflect() protoreflect.Message
- func (x *OpenMarketRequest) Reset()
- func (x *OpenMarketRequest) String() string
- type OperatorClient
- type OperatorServer
- type ReloadUtxosReply
- type ReloadUtxosRequest
- type RemoveWebhookReply
- type RemoveWebhookRequest
- func (*RemoveWebhookRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveWebhookRequest) GetId() string
- func (*RemoveWebhookRequest) ProtoMessage()
- func (x *RemoveWebhookRequest) ProtoReflect() protoreflect.Message
- func (x *RemoveWebhookRequest) Reset()
- func (x *RemoveWebhookRequest) String() string
- type ReportMarketFeeReply
- func (*ReportMarketFeeReply) Descriptor() ([]byte, []int)deprecated
- func (x *ReportMarketFeeReply) GetCollectedFees() []*FeeInfo
- func (x *ReportMarketFeeReply) GetTotalCollectedFeesPerAsset() map[string]int64
- func (*ReportMarketFeeReply) ProtoMessage()
- func (x *ReportMarketFeeReply) ProtoReflect() protoreflect.Message
- func (x *ReportMarketFeeReply) Reset()
- func (x *ReportMarketFeeReply) String() string
- type ReportMarketFeeRequest
- func (*ReportMarketFeeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ReportMarketFeeRequest) GetMarket() *types.Market
- func (*ReportMarketFeeRequest) ProtoMessage()
- func (x *ReportMarketFeeRequest) ProtoReflect() protoreflect.Message
- func (x *ReportMarketFeeRequest) Reset()
- func (x *ReportMarketFeeRequest) String() string
- type StrategyType
- func (StrategyType) Descriptor() protoreflect.EnumDescriptor
- func (x StrategyType) Enum() *StrategyType
- func (StrategyType) EnumDescriptor() ([]byte, []int)deprecated
- func (x StrategyType) Number() protoreflect.EnumNumber
- func (x StrategyType) String() string
- func (StrategyType) Type() protoreflect.EnumType
- type SwapFailInfo
- func (*SwapFailInfo) Descriptor() ([]byte, []int)deprecated
- func (x *SwapFailInfo) GetFailureCode() uint32
- func (x *SwapFailInfo) GetFailureMessage() string
- func (*SwapFailInfo) ProtoMessage()
- func (x *SwapFailInfo) ProtoReflect() protoreflect.Message
- func (x *SwapFailInfo) Reset()
- func (x *SwapFailInfo) String() string
- type SwapInfo
- func (*SwapInfo) Descriptor() ([]byte, []int)deprecated
- func (x *SwapInfo) GetAmountP() uint64
- func (x *SwapInfo) GetAmountR() uint64
- func (x *SwapInfo) GetAssetP() string
- func (x *SwapInfo) GetAssetR() string
- func (*SwapInfo) ProtoMessage()
- func (x *SwapInfo) ProtoReflect() protoreflect.Message
- func (x *SwapInfo) Reset()
- func (x *SwapInfo) String() string
- type TradeInfo
- func (*TradeInfo) Descriptor() ([]byte, []int)deprecated
- func (x *TradeInfo) GetAcceptTimeUnix() uint64
- func (x *TradeInfo) GetAcceptTimeUtc() string
- func (x *TradeInfo) GetCompleteTimeUnix() uint64
- func (x *TradeInfo) GetCompleteTimeUtc() string
- func (x *TradeInfo) GetExpiryTimeUnix() uint64
- func (x *TradeInfo) GetExpiryTimeUtc() string
- func (x *TradeInfo) GetFailInfo() *SwapFailInfo
- func (x *TradeInfo) GetMarketWithFee() *types.MarketWithFee
- func (x *TradeInfo) GetPrice() *TradePrice
- func (x *TradeInfo) GetRequestTimeUnix() uint64
- func (x *TradeInfo) GetRequestTimeUtc() string
- func (x *TradeInfo) GetSettleTimeUnix() uint64
- func (x *TradeInfo) GetSettleTimeUtc() string
- func (x *TradeInfo) GetStatus() *TradeStatusInfo
- func (x *TradeInfo) GetSwapInfo() *SwapInfo
- func (x *TradeInfo) GetTradeId() string
- func (x *TradeInfo) GetTxUrl() string
- func (*TradeInfo) ProtoMessage()
- func (x *TradeInfo) ProtoReflect() protoreflect.Message
- func (x *TradeInfo) Reset()
- func (x *TradeInfo) String() string
- type TradePrice
- func (*TradePrice) Descriptor() ([]byte, []int)deprecated
- func (x *TradePrice) GetBasePrice() float64
- func (x *TradePrice) GetQuotePrice() float64
- func (*TradePrice) ProtoMessage()
- func (x *TradePrice) ProtoReflect() protoreflect.Message
- func (x *TradePrice) Reset()
- func (x *TradePrice) String() string
- type TradeStatus
- func (TradeStatus) Descriptor() protoreflect.EnumDescriptor
- func (x TradeStatus) Enum() *TradeStatus
- func (TradeStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x TradeStatus) Number() protoreflect.EnumNumber
- func (x TradeStatus) String() string
- func (TradeStatus) Type() protoreflect.EnumType
- type TradeStatusInfo
- func (*TradeStatusInfo) Descriptor() ([]byte, []int)deprecated
- func (x *TradeStatusInfo) GetFailed() bool
- func (x *TradeStatusInfo) GetStatus() TradeStatus
- func (*TradeStatusInfo) ProtoMessage()
- func (x *TradeStatusInfo) ProtoReflect() protoreflect.Message
- func (x *TradeStatusInfo) Reset()
- func (x *TradeStatusInfo) String() string
- type TxOutpoint
- type UnimplementedOperatorServer
- func (UnimplementedOperatorServer) AddWebhook(context.Context, *AddWebhookRequest) (*AddWebhookReply, error)
- func (UnimplementedOperatorServer) BalanceFeeAccount(context.Context, *BalanceFeeAccountRequest) (*BalanceFeeAccountReply, error)
- func (UnimplementedOperatorServer) ClaimFeeDeposit(context.Context, *ClaimFeeDepositRequest) (*ClaimFeeDepositReply, error)
- func (UnimplementedOperatorServer) ClaimMarketDeposit(context.Context, *ClaimMarketDepositRequest) (*ClaimMarketDepositReply, error)
- func (UnimplementedOperatorServer) CloseMarket(context.Context, *CloseMarketRequest) (*CloseMarketReply, error)
- func (UnimplementedOperatorServer) DepositFeeAccount(context.Context, *DepositFeeAccountRequest) (*DepositFeeAccountReply, error)
- func (UnimplementedOperatorServer) DepositMarket(context.Context, *DepositMarketRequest) (*DepositMarketReply, error)
- func (UnimplementedOperatorServer) DropMarket(context.Context, *DropMarketRequest) (*DropMarketReply, error)
- func (UnimplementedOperatorServer) ListDepositMarket(context.Context, *ListDepositMarketRequest) (*ListDepositMarketReply, error)
- func (UnimplementedOperatorServer) ListMarket(context.Context, *ListMarketRequest) (*ListMarketReply, error)
- func (UnimplementedOperatorServer) ListTrades(context.Context, *ListTradesRequest) (*ListTradesReply, error)
- func (UnimplementedOperatorServer) ListUtxos(context.Context, *ListUtxosRequest) (*ListUtxosReply, error)
- func (UnimplementedOperatorServer) ListWebhooks(context.Context, *ListWebhooksRequest) (*ListWebhooksReply, error)
- func (UnimplementedOperatorServer) OpenMarket(context.Context, *OpenMarketRequest) (*OpenMarketReply, error)
- func (UnimplementedOperatorServer) ReloadUtxos(context.Context, *ReloadUtxosRequest) (*ReloadUtxosReply, error)
- func (UnimplementedOperatorServer) RemoveWebhook(context.Context, *RemoveWebhookRequest) (*RemoveWebhookReply, error)
- func (UnimplementedOperatorServer) ReportMarketFee(context.Context, *ReportMarketFeeRequest) (*ReportMarketFeeReply, error)
- func (UnimplementedOperatorServer) UpdateMarketFixedFee(context.Context, *UpdateMarketFixedFeeRequest) (*UpdateMarketFeeReply, error)
- func (UnimplementedOperatorServer) UpdateMarketPercentageFee(context.Context, *UpdateMarketPercentageFeeRequest) (*UpdateMarketFeeReply, error)
- func (UnimplementedOperatorServer) UpdateMarketPrice(context.Context, *UpdateMarketPriceRequest) (*UpdateMarketPriceReply, error)
- func (UnimplementedOperatorServer) UpdateMarketStrategy(context.Context, *UpdateMarketStrategyRequest) (*UpdateMarketStrategyReply, error)
- func (UnimplementedOperatorServer) WithdrawMarket(context.Context, *WithdrawMarketRequest) (*WithdrawMarketReply, error)
- type UnsafeOperatorServer
- type UpdateMarketFeeReply
- func (*UpdateMarketFeeReply) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateMarketFeeReply) GetMarketWithFee() *types.MarketWithFee
- func (*UpdateMarketFeeReply) ProtoMessage()
- func (x *UpdateMarketFeeReply) ProtoReflect() protoreflect.Message
- func (x *UpdateMarketFeeReply) Reset()
- func (x *UpdateMarketFeeReply) String() string
- type UpdateMarketFixedFeeRequest
- func (*UpdateMarketFixedFeeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateMarketFixedFeeRequest) GetFixed() *types.Fixed
- func (x *UpdateMarketFixedFeeRequest) GetMarket() *types.Market
- func (*UpdateMarketFixedFeeRequest) ProtoMessage()
- func (x *UpdateMarketFixedFeeRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateMarketFixedFeeRequest) Reset()
- func (x *UpdateMarketFixedFeeRequest) String() string
- type UpdateMarketPercentageFeeRequest
- func (*UpdateMarketPercentageFeeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateMarketPercentageFeeRequest) GetBasisPoint() int64
- func (x *UpdateMarketPercentageFeeRequest) GetMarket() *types.Market
- func (*UpdateMarketPercentageFeeRequest) ProtoMessage()
- func (x *UpdateMarketPercentageFeeRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateMarketPercentageFeeRequest) Reset()
- func (x *UpdateMarketPercentageFeeRequest) String() string
- type UpdateMarketPriceReply
- type UpdateMarketPriceRequest
- func (*UpdateMarketPriceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateMarketPriceRequest) GetMarket() *types.Market
- func (x *UpdateMarketPriceRequest) GetPrice() *types.Price
- func (*UpdateMarketPriceRequest) ProtoMessage()
- func (x *UpdateMarketPriceRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateMarketPriceRequest) Reset()
- func (x *UpdateMarketPriceRequest) String() string
- type UpdateMarketStrategyReply
- type UpdateMarketStrategyRequest
- func (*UpdateMarketStrategyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateMarketStrategyRequest) GetMarket() *types.Market
- func (x *UpdateMarketStrategyRequest) GetMetadata() string
- func (x *UpdateMarketStrategyRequest) GetStrategyType() StrategyType
- func (*UpdateMarketStrategyRequest) ProtoMessage()
- func (x *UpdateMarketStrategyRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateMarketStrategyRequest) Reset()
- func (x *UpdateMarketStrategyRequest) String() string
- type UtxoInfo
- func (*UtxoInfo) Descriptor() ([]byte, []int)deprecated
- func (x *UtxoInfo) GetAsset() string
- func (x *UtxoInfo) GetOutpoint() *TxOutpoint
- func (x *UtxoInfo) GetValue() uint64
- func (*UtxoInfo) ProtoMessage()
- func (x *UtxoInfo) ProtoReflect() protoreflect.Message
- func (x *UtxoInfo) Reset()
- func (x *UtxoInfo) String() string
- type UtxoInfoList
- func (*UtxoInfoList) Descriptor() ([]byte, []int)deprecated
- func (x *UtxoInfoList) GetLocks() []*UtxoInfo
- func (x *UtxoInfoList) GetSpents() []*UtxoInfo
- func (x *UtxoInfoList) GetUnspents() []*UtxoInfo
- func (*UtxoInfoList) ProtoMessage()
- func (x *UtxoInfoList) ProtoReflect() protoreflect.Message
- func (x *UtxoInfoList) Reset()
- func (x *UtxoInfoList) String() string
- type WebhookInfo
- func (*WebhookInfo) Descriptor() ([]byte, []int)deprecated
- func (x *WebhookInfo) GetEndpoint() string
- func (x *WebhookInfo) GetId() string
- func (x *WebhookInfo) GetIsSecured() bool
- func (*WebhookInfo) ProtoMessage()
- func (x *WebhookInfo) ProtoReflect() protoreflect.Message
- func (x *WebhookInfo) Reset()
- func (x *WebhookInfo) String() string
- type WithdrawMarketReply
- func (*WithdrawMarketReply) Descriptor() ([]byte, []int)deprecated
- func (x *WithdrawMarketReply) GetRawTx() []byte
- func (*WithdrawMarketReply) ProtoMessage()
- func (x *WithdrawMarketReply) ProtoReflect() protoreflect.Message
- func (x *WithdrawMarketReply) Reset()
- func (x *WithdrawMarketReply) String() string
- type WithdrawMarketRequest
- func (*WithdrawMarketRequest) Descriptor() ([]byte, []int)deprecated
- func (x *WithdrawMarketRequest) GetAddress() string
- func (x *WithdrawMarketRequest) GetBalanceToWithdraw() *types.Balance
- func (x *WithdrawMarketRequest) GetMarket() *types.Market
- func (x *WithdrawMarketRequest) GetMillisatPerByte() int64
- func (x *WithdrawMarketRequest) GetPush() bool
- func (*WithdrawMarketRequest) ProtoMessage()
- func (x *WithdrawMarketRequest) ProtoReflect() protoreflect.Message
- func (x *WithdrawMarketRequest) Reset()
- func (x *WithdrawMarketRequest) String() string
Constants ¶
This section is empty.
Variables ¶
var ( StrategyType_name = map[int32]string{ 0: "PLUGGABLE", 1: "BALANCED", 2: "UNBALANCED", } StrategyType_value = map[string]int32{ "PLUGGABLE": 0, "BALANCED": 1, "UNBALANCED": 2, } )
Enum value maps for StrategyType.
var ( TradeStatus_name = map[int32]string{ 0: "UNDEFINED", 1: "REQUEST", 2: "ACCEPT", 3: "COMPLETE", 4: "SETTLED", 5: "EXPIRED", } TradeStatus_value = map[string]int32{ "UNDEFINED": 0, "REQUEST": 1, "ACCEPT": 2, "COMPLETE": 3, "SETTLED": 4, "EXPIRED": 5, } )
Enum value maps for TradeStatus.
var ( ActionType_name = map[int32]string{ 0: "TRADE_SETTLED", 1: "ACCOUNT_LOW_BALANCE", 2: "ACCOUNT_WITHDRAW", 3: "ALL_ACTIONS", } ActionType_value = map[string]int32{ "TRADE_SETTLED": 0, "ACCOUNT_LOW_BALANCE": 1, "ACCOUNT_WITHDRAW": 2, "ALL_ACTIONS": 3, } )
Enum value maps for ActionType.
var File_operator_proto protoreflect.FileDescriptor
Functions ¶
func RegisterOperatorServer ¶
func RegisterOperatorServer(s grpc.ServiceRegistrar, srv OperatorServer)
Types ¶
type ActionType ¶ added in v0.3.11
type ActionType int32
const ( ActionType_TRADE_SETTLED ActionType = 0 ActionType_ACCOUNT_LOW_BALANCE ActionType = 1 ActionType_ACCOUNT_WITHDRAW ActionType = 2 ActionType_ALL_ACTIONS ActionType = 3 )
func (ActionType) Descriptor ¶ added in v0.3.11
func (ActionType) Descriptor() protoreflect.EnumDescriptor
func (ActionType) Enum ¶ added in v0.3.11
func (x ActionType) Enum() *ActionType
func (ActionType) EnumDescriptor
deprecated
added in
v0.3.11
func (ActionType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ActionType.Descriptor instead.
func (ActionType) Number ¶ added in v0.3.11
func (x ActionType) Number() protoreflect.EnumNumber
func (ActionType) String ¶ added in v0.3.11
func (x ActionType) String() string
func (ActionType) Type ¶ added in v0.3.11
func (ActionType) Type() protoreflect.EnumType
type AddWebhookReply ¶ added in v0.3.11
type AddWebhookReply struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*AddWebhookReply) Descriptor
deprecated
added in
v0.3.11
func (*AddWebhookReply) Descriptor() ([]byte, []int)
Deprecated: Use AddWebhookReply.ProtoReflect.Descriptor instead.
func (*AddWebhookReply) GetId ¶ added in v0.3.11
func (x *AddWebhookReply) GetId() string
func (*AddWebhookReply) ProtoMessage ¶ added in v0.3.11
func (*AddWebhookReply) ProtoMessage()
func (*AddWebhookReply) ProtoReflect ¶ added in v0.3.11
func (x *AddWebhookReply) ProtoReflect() protoreflect.Message
func (*AddWebhookReply) Reset ¶ added in v0.3.11
func (x *AddWebhookReply) Reset()
func (*AddWebhookReply) String ¶ added in v0.3.11
func (x *AddWebhookReply) String() string
type AddWebhookRequest ¶ added in v0.3.11
type AddWebhookRequest struct {
Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
Action ActionType `protobuf:"varint,2,opt,name=action,proto3,enum=ActionType" json:"action,omitempty"`
Secret string `protobuf:"bytes,3,opt,name=secret,proto3" json:"secret,omitempty"`
// contains filtered or unexported fields
}
func (*AddWebhookRequest) Descriptor
deprecated
added in
v0.3.11
func (*AddWebhookRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddWebhookRequest.ProtoReflect.Descriptor instead.
func (*AddWebhookRequest) GetAction ¶ added in v0.3.11
func (x *AddWebhookRequest) GetAction() ActionType
func (*AddWebhookRequest) GetEndpoint ¶ added in v0.3.11
func (x *AddWebhookRequest) GetEndpoint() string
func (*AddWebhookRequest) GetSecret ¶ added in v0.3.11
func (x *AddWebhookRequest) GetSecret() string
func (*AddWebhookRequest) ProtoMessage ¶ added in v0.3.11
func (*AddWebhookRequest) ProtoMessage()
func (*AddWebhookRequest) ProtoReflect ¶ added in v0.3.11
func (x *AddWebhookRequest) ProtoReflect() protoreflect.Message
func (*AddWebhookRequest) Reset ¶ added in v0.3.11
func (x *AddWebhookRequest) Reset()
func (*AddWebhookRequest) String ¶ added in v0.3.11
func (x *AddWebhookRequest) String() string
type BalanceFeeAccountReply ¶
type BalanceFeeAccountReply struct {
Balance int64 `protobuf:"varint,1,opt,name=balance,proto3" json:"balance,omitempty"`
// contains filtered or unexported fields
}
func (*BalanceFeeAccountReply) Descriptor
deprecated
func (*BalanceFeeAccountReply) Descriptor() ([]byte, []int)
Deprecated: Use BalanceFeeAccountReply.ProtoReflect.Descriptor instead.
func (*BalanceFeeAccountReply) GetBalance ¶
func (x *BalanceFeeAccountReply) GetBalance() int64
func (*BalanceFeeAccountReply) ProtoMessage ¶
func (*BalanceFeeAccountReply) ProtoMessage()
func (*BalanceFeeAccountReply) ProtoReflect ¶
func (x *BalanceFeeAccountReply) ProtoReflect() protoreflect.Message
func (*BalanceFeeAccountReply) Reset ¶
func (x *BalanceFeeAccountReply) Reset()
func (*BalanceFeeAccountReply) String ¶
func (x *BalanceFeeAccountReply) String() string
type BalanceFeeAccountRequest ¶
type BalanceFeeAccountRequest struct {
// contains filtered or unexported fields
}
func (*BalanceFeeAccountRequest) Descriptor
deprecated
func (*BalanceFeeAccountRequest) Descriptor() ([]byte, []int)
Deprecated: Use BalanceFeeAccountRequest.ProtoReflect.Descriptor instead.
func (*BalanceFeeAccountRequest) ProtoMessage ¶
func (*BalanceFeeAccountRequest) ProtoMessage()
func (*BalanceFeeAccountRequest) ProtoReflect ¶
func (x *BalanceFeeAccountRequest) ProtoReflect() protoreflect.Message
func (*BalanceFeeAccountRequest) Reset ¶
func (x *BalanceFeeAccountRequest) Reset()
func (*BalanceFeeAccountRequest) String ¶
func (x *BalanceFeeAccountRequest) String() string
type ClaimFeeDepositReply ¶
type ClaimFeeDepositReply struct {
// contains filtered or unexported fields
}
func (*ClaimFeeDepositReply) Descriptor
deprecated
func (*ClaimFeeDepositReply) Descriptor() ([]byte, []int)
Deprecated: Use ClaimFeeDepositReply.ProtoReflect.Descriptor instead.
func (*ClaimFeeDepositReply) ProtoMessage ¶
func (*ClaimFeeDepositReply) ProtoMessage()
func (*ClaimFeeDepositReply) ProtoReflect ¶
func (x *ClaimFeeDepositReply) ProtoReflect() protoreflect.Message
func (*ClaimFeeDepositReply) Reset ¶
func (x *ClaimFeeDepositReply) Reset()
func (*ClaimFeeDepositReply) String ¶
func (x *ClaimFeeDepositReply) String() string
type ClaimFeeDepositRequest ¶
type ClaimFeeDepositRequest struct {
Outpoints []*TxOutpoint `protobuf:"bytes,1,rep,name=outpoints,proto3" json:"outpoints,omitempty"`
// contains filtered or unexported fields
}
func (*ClaimFeeDepositRequest) Descriptor
deprecated
func (*ClaimFeeDepositRequest) Descriptor() ([]byte, []int)
Deprecated: Use ClaimFeeDepositRequest.ProtoReflect.Descriptor instead.
func (*ClaimFeeDepositRequest) GetOutpoints ¶
func (x *ClaimFeeDepositRequest) GetOutpoints() []*TxOutpoint
func (*ClaimFeeDepositRequest) ProtoMessage ¶
func (*ClaimFeeDepositRequest) ProtoMessage()
func (*ClaimFeeDepositRequest) ProtoReflect ¶
func (x *ClaimFeeDepositRequest) ProtoReflect() protoreflect.Message
func (*ClaimFeeDepositRequest) Reset ¶
func (x *ClaimFeeDepositRequest) Reset()
func (*ClaimFeeDepositRequest) String ¶
func (x *ClaimFeeDepositRequest) String() string
type ClaimMarketDepositReply ¶
type ClaimMarketDepositReply struct {
// contains filtered or unexported fields
}
func (*ClaimMarketDepositReply) Descriptor
deprecated
func (*ClaimMarketDepositReply) Descriptor() ([]byte, []int)
Deprecated: Use ClaimMarketDepositReply.ProtoReflect.Descriptor instead.
func (*ClaimMarketDepositReply) ProtoMessage ¶
func (*ClaimMarketDepositReply) ProtoMessage()
func (*ClaimMarketDepositReply) ProtoReflect ¶
func (x *ClaimMarketDepositReply) ProtoReflect() protoreflect.Message
func (*ClaimMarketDepositReply) Reset ¶
func (x *ClaimMarketDepositReply) Reset()
func (*ClaimMarketDepositReply) String ¶
func (x *ClaimMarketDepositReply) String() string
type ClaimMarketDepositRequest ¶
type ClaimMarketDepositRequest struct {
Market *types.Market `protobuf:"bytes,1,opt,name=market,proto3" json:"market,omitempty"`
Outpoints []*TxOutpoint `protobuf:"bytes,2,rep,name=outpoints,proto3" json:"outpoints,omitempty"`
// contains filtered or unexported fields
}
func (*ClaimMarketDepositRequest) Descriptor
deprecated
func (*ClaimMarketDepositRequest) Descriptor() ([]byte, []int)
Deprecated: Use ClaimMarketDepositRequest.ProtoReflect.Descriptor instead.
func (*ClaimMarketDepositRequest) GetMarket ¶
func (x *ClaimMarketDepositRequest) GetMarket() *types.Market
func (*ClaimMarketDepositRequest) GetOutpoints ¶
func (x *ClaimMarketDepositRequest) GetOutpoints() []*TxOutpoint
func (*ClaimMarketDepositRequest) ProtoMessage ¶
func (*ClaimMarketDepositRequest) ProtoMessage()
func (*ClaimMarketDepositRequest) ProtoReflect ¶
func (x *ClaimMarketDepositRequest) ProtoReflect() protoreflect.Message
func (*ClaimMarketDepositRequest) Reset ¶
func (x *ClaimMarketDepositRequest) Reset()
func (*ClaimMarketDepositRequest) String ¶
func (x *ClaimMarketDepositRequest) String() string
type CloseMarketReply ¶
type CloseMarketReply struct {
// contains filtered or unexported fields
}
func (*CloseMarketReply) Descriptor
deprecated
func (*CloseMarketReply) Descriptor() ([]byte, []int)
Deprecated: Use CloseMarketReply.ProtoReflect.Descriptor instead.
func (*CloseMarketReply) ProtoMessage ¶
func (*CloseMarketReply) ProtoMessage()
func (*CloseMarketReply) ProtoReflect ¶
func (x *CloseMarketReply) ProtoReflect() protoreflect.Message
func (*CloseMarketReply) Reset ¶
func (x *CloseMarketReply) Reset()
func (*CloseMarketReply) String ¶
func (x *CloseMarketReply) String() string
type CloseMarketRequest ¶
type CloseMarketRequest struct {
Market *types.Market `protobuf:"bytes,1,opt,name=market,proto3" json:"market,omitempty"` // Market to be made NOT tradable
// contains filtered or unexported fields
}
func (*CloseMarketRequest) Descriptor
deprecated
func (*CloseMarketRequest) Descriptor() ([]byte, []int)
Deprecated: Use CloseMarketRequest.ProtoReflect.Descriptor instead.
func (*CloseMarketRequest) GetMarket ¶
func (x *CloseMarketRequest) GetMarket() *types.Market
func (*CloseMarketRequest) ProtoMessage ¶
func (*CloseMarketRequest) ProtoMessage()
func (*CloseMarketRequest) ProtoReflect ¶
func (x *CloseMarketRequest) ProtoReflect() protoreflect.Message
func (*CloseMarketRequest) Reset ¶
func (x *CloseMarketRequest) Reset()
func (*CloseMarketRequest) String ¶
func (x *CloseMarketRequest) String() string
type DepositFeeAccountReply ¶
type DepositFeeAccountReply struct {
AddressWithBlindingKey []*types.AddressWithBlindingKey `` // AddressInfo contains address and blinding key
/* 131-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*DepositFeeAccountReply) Descriptor
deprecated
func (*DepositFeeAccountReply) Descriptor() ([]byte, []int)
Deprecated: Use DepositFeeAccountReply.ProtoReflect.Descriptor instead.
func (*DepositFeeAccountReply) GetAddressWithBlindingKey ¶
func (x *DepositFeeAccountReply) GetAddressWithBlindingKey() []*types.AddressWithBlindingKey
func (*DepositFeeAccountReply) ProtoMessage ¶
func (*DepositFeeAccountReply) ProtoMessage()
func (*DepositFeeAccountReply) ProtoReflect ¶
func (x *DepositFeeAccountReply) ProtoReflect() protoreflect.Message
func (*DepositFeeAccountReply) Reset ¶
func (x *DepositFeeAccountReply) Reset()
func (*DepositFeeAccountReply) String ¶
func (x *DepositFeeAccountReply) String() string
type DepositFeeAccountRequest ¶
type DepositFeeAccountRequest struct {
NumOfAddresses int64 `protobuf:"varint,1,opt,name=num_of_addresses,json=numOfAddresses,proto3" json:"num_of_addresses,omitempty"` // Number of addresses to be derived for Fee Account.
// contains filtered or unexported fields
}
func (*DepositFeeAccountRequest) Descriptor
deprecated
func (*DepositFeeAccountRequest) Descriptor() ([]byte, []int)
Deprecated: Use DepositFeeAccountRequest.ProtoReflect.Descriptor instead.
func (*DepositFeeAccountRequest) GetNumOfAddresses ¶
func (x *DepositFeeAccountRequest) GetNumOfAddresses() int64
func (*DepositFeeAccountRequest) ProtoMessage ¶
func (*DepositFeeAccountRequest) ProtoMessage()
func (*DepositFeeAccountRequest) ProtoReflect ¶
func (x *DepositFeeAccountRequest) ProtoReflect() protoreflect.Message
func (*DepositFeeAccountRequest) Reset ¶
func (x *DepositFeeAccountRequest) Reset()
func (*DepositFeeAccountRequest) String ¶
func (x *DepositFeeAccountRequest) String() string
type DepositMarketReply ¶
type DepositMarketReply struct {
Addresses []string `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"`
// contains filtered or unexported fields
}
func (*DepositMarketReply) Descriptor
deprecated
func (*DepositMarketReply) Descriptor() ([]byte, []int)
Deprecated: Use DepositMarketReply.ProtoReflect.Descriptor instead.
func (*DepositMarketReply) GetAddresses ¶
func (x *DepositMarketReply) GetAddresses() []string
func (*DepositMarketReply) ProtoMessage ¶
func (*DepositMarketReply) ProtoMessage()
func (*DepositMarketReply) ProtoReflect ¶
func (x *DepositMarketReply) ProtoReflect() protoreflect.Message
func (*DepositMarketReply) Reset ¶
func (x *DepositMarketReply) Reset()
func (*DepositMarketReply) String ¶
func (x *DepositMarketReply) String() string
type DepositMarketRequest ¶
type DepositMarketRequest struct {
Market *types.Market `protobuf:"bytes,1,opt,name=market,proto3" json:"market,omitempty"` // Market to get an address from. Could be empty.
NumOfAddresses int64 `protobuf:"varint,2,opt,name=num_of_addresses,json=numOfAddresses,proto3" json:"num_of_addresses,omitempty"` // Number of addresses to be derived for market.
// contains filtered or unexported fields
}
func (*DepositMarketRequest) Descriptor
deprecated
func (*DepositMarketRequest) Descriptor() ([]byte, []int)
Deprecated: Use DepositMarketRequest.ProtoReflect.Descriptor instead.
func (*DepositMarketRequest) GetMarket ¶
func (x *DepositMarketRequest) GetMarket() *types.Market
func (*DepositMarketRequest) GetNumOfAddresses ¶
func (x *DepositMarketRequest) GetNumOfAddresses() int64
func (*DepositMarketRequest) ProtoMessage ¶
func (*DepositMarketRequest) ProtoMessage()
func (*DepositMarketRequest) ProtoReflect ¶
func (x *DepositMarketRequest) ProtoReflect() protoreflect.Message
func (*DepositMarketRequest) Reset ¶
func (x *DepositMarketRequest) Reset()
func (*DepositMarketRequest) String ¶
func (x *DepositMarketRequest) String() string
type DropMarketReply ¶
type DropMarketReply struct {
// contains filtered or unexported fields
}
func (*DropMarketReply) Descriptor
deprecated
func (*DropMarketReply) Descriptor() ([]byte, []int)
Deprecated: Use DropMarketReply.ProtoReflect.Descriptor instead.
func (*DropMarketReply) ProtoMessage ¶
func (*DropMarketReply) ProtoMessage()
func (*DropMarketReply) ProtoReflect ¶
func (x *DropMarketReply) ProtoReflect() protoreflect.Message
func (*DropMarketReply) Reset ¶
func (x *DropMarketReply) Reset()
func (*DropMarketReply) String ¶
func (x *DropMarketReply) String() string
type DropMarketRequest ¶
type DropMarketRequest struct {
AccountIndex uint64 `protobuf:"varint,1,opt,name=account_index,json=accountIndex,proto3" json:"account_index,omitempty"`
// contains filtered or unexported fields
}
func (*DropMarketRequest) Descriptor
deprecated
func (*DropMarketRequest) Descriptor() ([]byte, []int)
Deprecated: Use DropMarketRequest.ProtoReflect.Descriptor instead.
func (*DropMarketRequest) GetAccountIndex ¶
func (x *DropMarketRequest) GetAccountIndex() uint64
func (*DropMarketRequest) ProtoMessage ¶
func (*DropMarketRequest) ProtoMessage()
func (*DropMarketRequest) ProtoReflect ¶
func (x *DropMarketRequest) ProtoReflect() protoreflect.Message
func (*DropMarketRequest) Reset ¶
func (x *DropMarketRequest) Reset()
func (*DropMarketRequest) String ¶
func (x *DropMarketRequest) String() string
type FeeInfo ¶
type FeeInfo struct {
TradeId string `protobuf:"bytes,1,opt,name=trade_id,json=tradeId,proto3" json:"trade_id,omitempty"`
BasisPoint int64 `protobuf:"varint,2,opt,name=basis_point,json=basisPoint,proto3" json:"basis_point,omitempty"`
Asset string `protobuf:"bytes,3,opt,name=asset,proto3" json:"asset,omitempty"`
Amount uint64 `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"`
MarketPrice float32 `protobuf:"fixed32,5,opt,name=market_price,json=marketPrice,proto3" json:"market_price,omitempty"`
// contains filtered or unexported fields
}
func (*FeeInfo) Descriptor
deprecated
func (*FeeInfo) GetBasisPoint ¶
func (*FeeInfo) GetMarketPrice ¶
func (*FeeInfo) GetTradeId ¶
func (*FeeInfo) ProtoMessage ¶
func (*FeeInfo) ProtoMessage()
func (*FeeInfo) ProtoReflect ¶
func (x *FeeInfo) ProtoReflect() protoreflect.Message
type ListDepositMarketReply ¶
type ListDepositMarketReply struct {
Address []string `protobuf:"bytes,1,rep,name=address,proto3" json:"address,omitempty"`
// contains filtered or unexported fields
}
func (*ListDepositMarketReply) Descriptor
deprecated
func (*ListDepositMarketReply) Descriptor() ([]byte, []int)
Deprecated: Use ListDepositMarketReply.ProtoReflect.Descriptor instead.
func (*ListDepositMarketReply) GetAddress ¶
func (x *ListDepositMarketReply) GetAddress() []string
func (*ListDepositMarketReply) ProtoMessage ¶
func (*ListDepositMarketReply) ProtoMessage()
func (*ListDepositMarketReply) ProtoReflect ¶
func (x *ListDepositMarketReply) ProtoReflect() protoreflect.Message
func (*ListDepositMarketReply) Reset ¶
func (x *ListDepositMarketReply) Reset()
func (*ListDepositMarketReply) String ¶
func (x *ListDepositMarketReply) String() string
type ListDepositMarketRequest ¶
type ListDepositMarketRequest struct {
Market *types.Market `protobuf:"bytes,1,opt,name=market,proto3" json:"market,omitempty"` // Market to get an address from. Could be empty.
// contains filtered or unexported fields
}
func (*ListDepositMarketRequest) Descriptor
deprecated
func (*ListDepositMarketRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListDepositMarketRequest.ProtoReflect.Descriptor instead.
func (*ListDepositMarketRequest) GetMarket ¶
func (x *ListDepositMarketRequest) GetMarket() *types.Market
func (*ListDepositMarketRequest) ProtoMessage ¶
func (*ListDepositMarketRequest) ProtoMessage()
func (*ListDepositMarketRequest) ProtoReflect ¶
func (x *ListDepositMarketRequest) ProtoReflect() protoreflect.Message
func (*ListDepositMarketRequest) Reset ¶
func (x *ListDepositMarketRequest) Reset()
func (*ListDepositMarketRequest) String ¶
func (x *ListDepositMarketRequest) String() string
type ListMarketReply ¶
type ListMarketReply struct {
Markets []*MarketInfo `protobuf:"bytes,1,rep,name=markets,proto3" json:"markets,omitempty"`
// contains filtered or unexported fields
}
func (*ListMarketReply) Descriptor
deprecated
func (*ListMarketReply) Descriptor() ([]byte, []int)
Deprecated: Use ListMarketReply.ProtoReflect.Descriptor instead.
func (*ListMarketReply) GetMarkets ¶
func (x *ListMarketReply) GetMarkets() []*MarketInfo
func (*ListMarketReply) ProtoMessage ¶
func (*ListMarketReply) ProtoMessage()
func (*ListMarketReply) ProtoReflect ¶
func (x *ListMarketReply) ProtoReflect() protoreflect.Message
func (*ListMarketReply) Reset ¶
func (x *ListMarketReply) Reset()
func (*ListMarketReply) String ¶
func (x *ListMarketReply) String() string
type ListMarketRequest ¶
type ListMarketRequest struct {
// contains filtered or unexported fields
}
func (*ListMarketRequest) Descriptor
deprecated
func (*ListMarketRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListMarketRequest.ProtoReflect.Descriptor instead.
func (*ListMarketRequest) ProtoMessage ¶
func (*ListMarketRequest) ProtoMessage()
func (*ListMarketRequest) ProtoReflect ¶
func (x *ListMarketRequest) ProtoReflect() protoreflect.Message
func (*ListMarketRequest) Reset ¶
func (x *ListMarketRequest) Reset()
func (*ListMarketRequest) String ¶
func (x *ListMarketRequest) String() string
type ListTradesReply ¶
type ListTradesReply struct {
Trades []*TradeInfo `protobuf:"bytes,1,rep,name=trades,proto3" json:"trades,omitempty"`
// contains filtered or unexported fields
}
func (*ListTradesReply) Descriptor
deprecated
func (*ListTradesReply) Descriptor() ([]byte, []int)
Deprecated: Use ListTradesReply.ProtoReflect.Descriptor instead.
func (*ListTradesReply) GetTrades ¶
func (x *ListTradesReply) GetTrades() []*TradeInfo
func (*ListTradesReply) ProtoMessage ¶
func (*ListTradesReply) ProtoMessage()
func (*ListTradesReply) ProtoReflect ¶
func (x *ListTradesReply) ProtoReflect() protoreflect.Message
func (*ListTradesReply) Reset ¶
func (x *ListTradesReply) Reset()
func (*ListTradesReply) String ¶
func (x *ListTradesReply) String() string
type ListTradesRequest ¶
type ListTradesRequest struct {
// contains filtered or unexported fields
}
func (*ListTradesRequest) Descriptor
deprecated
func (*ListTradesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListTradesRequest.ProtoReflect.Descriptor instead.
func (*ListTradesRequest) ProtoMessage ¶
func (*ListTradesRequest) ProtoMessage()
func (*ListTradesRequest) ProtoReflect ¶
func (x *ListTradesRequest) ProtoReflect() protoreflect.Message
func (*ListTradesRequest) Reset ¶
func (x *ListTradesRequest) Reset()
func (*ListTradesRequest) String ¶
func (x *ListTradesRequest) String() string
type ListUtxosReply ¶
type ListUtxosReply struct {
InfoPerAccount map[uint64]*UtxoInfoList `` /* 194-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*ListUtxosReply) Descriptor
deprecated
func (*ListUtxosReply) Descriptor() ([]byte, []int)
Deprecated: Use ListUtxosReply.ProtoReflect.Descriptor instead.
func (*ListUtxosReply) GetInfoPerAccount ¶
func (x *ListUtxosReply) GetInfoPerAccount() map[uint64]*UtxoInfoList
func (*ListUtxosReply) ProtoMessage ¶
func (*ListUtxosReply) ProtoMessage()
func (*ListUtxosReply) ProtoReflect ¶
func (x *ListUtxosReply) ProtoReflect() protoreflect.Message
func (*ListUtxosReply) Reset ¶
func (x *ListUtxosReply) Reset()
func (*ListUtxosReply) String ¶
func (x *ListUtxosReply) String() string
type ListUtxosRequest ¶
type ListUtxosRequest struct {
// contains filtered or unexported fields
}
func (*ListUtxosRequest) Descriptor
deprecated
func (*ListUtxosRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListUtxosRequest.ProtoReflect.Descriptor instead.
func (*ListUtxosRequest) ProtoMessage ¶
func (*ListUtxosRequest) ProtoMessage()
func (*ListUtxosRequest) ProtoReflect ¶
func (x *ListUtxosRequest) ProtoReflect() protoreflect.Message
func (*ListUtxosRequest) Reset ¶
func (x *ListUtxosRequest) Reset()
func (*ListUtxosRequest) String ¶
func (x *ListUtxosRequest) String() string
type ListWebhooksReply ¶ added in v0.3.11
type ListWebhooksReply struct {
WebhookInfo []*WebhookInfo `protobuf:"bytes,1,rep,name=webhook_info,json=webhookInfo,proto3" json:"webhook_info,omitempty"`
// contains filtered or unexported fields
}
func (*ListWebhooksReply) Descriptor
deprecated
added in
v0.3.11
func (*ListWebhooksReply) Descriptor() ([]byte, []int)
Deprecated: Use ListWebhooksReply.ProtoReflect.Descriptor instead.
func (*ListWebhooksReply) GetWebhookInfo ¶ added in v0.3.11
func (x *ListWebhooksReply) GetWebhookInfo() []*WebhookInfo
func (*ListWebhooksReply) ProtoMessage ¶ added in v0.3.11
func (*ListWebhooksReply) ProtoMessage()
func (*ListWebhooksReply) ProtoReflect ¶ added in v0.3.11
func (x *ListWebhooksReply) ProtoReflect() protoreflect.Message
func (*ListWebhooksReply) Reset ¶ added in v0.3.11
func (x *ListWebhooksReply) Reset()
func (*ListWebhooksReply) String ¶ added in v0.3.11
func (x *ListWebhooksReply) String() string
type ListWebhooksRequest ¶ added in v0.3.11
type ListWebhooksRequest struct {
Action ActionType `protobuf:"varint,1,opt,name=action,proto3,enum=ActionType" json:"action,omitempty"`
// contains filtered or unexported fields
}
func (*ListWebhooksRequest) Descriptor
deprecated
added in
v0.3.11
func (*ListWebhooksRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListWebhooksRequest.ProtoReflect.Descriptor instead.
func (*ListWebhooksRequest) GetAction ¶ added in v0.3.11
func (x *ListWebhooksRequest) GetAction() ActionType
func (*ListWebhooksRequest) ProtoMessage ¶ added in v0.3.11
func (*ListWebhooksRequest) ProtoMessage()
func (*ListWebhooksRequest) ProtoReflect ¶ added in v0.3.11
func (x *ListWebhooksRequest) ProtoReflect() protoreflect.Message
func (*ListWebhooksRequest) Reset ¶ added in v0.3.11
func (x *ListWebhooksRequest) Reset()
func (*ListWebhooksRequest) String ¶ added in v0.3.11
func (x *ListWebhooksRequest) String() string
type MarketInfo ¶
type MarketInfo struct {
Market *types.Market `protobuf:"bytes,1,opt,name=market,proto3" json:"market,omitempty"`
Fee *types.Fee `protobuf:"bytes,2,opt,name=fee,proto3" json:"fee,omitempty"`
Tradable bool `protobuf:"varint,3,opt,name=tradable,proto3" json:"tradable,omitempty"`
StrategyType StrategyType `protobuf:"varint,4,opt,name=strategy_type,json=strategyType,proto3,enum=StrategyType" json:"strategy_type,omitempty"`
AccountIndex uint64 `protobuf:"varint,5,opt,name=account_index,json=accountIndex,proto3" json:"account_index,omitempty"`
Price *types.Price `protobuf:"bytes,6,opt,name=price,proto3" json:"price,omitempty"`
// contains filtered or unexported fields
}
func (*MarketInfo) Descriptor
deprecated
func (*MarketInfo) Descriptor() ([]byte, []int)
Deprecated: Use MarketInfo.ProtoReflect.Descriptor instead.
func (*MarketInfo) GetAccountIndex ¶
func (x *MarketInfo) GetAccountIndex() uint64
func (*MarketInfo) GetFee ¶
func (x *MarketInfo) GetFee() *types.Fee
func (*MarketInfo) GetMarket ¶
func (x *MarketInfo) GetMarket() *types.Market
func (*MarketInfo) GetPrice ¶
func (x *MarketInfo) GetPrice() *types.Price
func (*MarketInfo) GetStrategyType ¶
func (x *MarketInfo) GetStrategyType() StrategyType
func (*MarketInfo) GetTradable ¶
func (x *MarketInfo) GetTradable() bool
func (*MarketInfo) ProtoMessage ¶
func (*MarketInfo) ProtoMessage()
func (*MarketInfo) ProtoReflect ¶
func (x *MarketInfo) ProtoReflect() protoreflect.Message
func (*MarketInfo) Reset ¶
func (x *MarketInfo) Reset()
func (*MarketInfo) String ¶
func (x *MarketInfo) String() string
type OpenMarketReply ¶
type OpenMarketReply struct {
// contains filtered or unexported fields
}
func (*OpenMarketReply) Descriptor
deprecated
func (*OpenMarketReply) Descriptor() ([]byte, []int)
Deprecated: Use OpenMarketReply.ProtoReflect.Descriptor instead.
func (*OpenMarketReply) ProtoMessage ¶
func (*OpenMarketReply) ProtoMessage()
func (*OpenMarketReply) ProtoReflect ¶
func (x *OpenMarketReply) ProtoReflect() protoreflect.Message
func (*OpenMarketReply) Reset ¶
func (x *OpenMarketReply) Reset()
func (*OpenMarketReply) String ¶
func (x *OpenMarketReply) String() string
type OpenMarketRequest ¶
type OpenMarketRequest struct {
Market *types.Market `protobuf:"bytes,1,opt,name=market,proto3" json:"market,omitempty"` // Market to be made tradable
// contains filtered or unexported fields
}
func (*OpenMarketRequest) Descriptor
deprecated
func (*OpenMarketRequest) Descriptor() ([]byte, []int)
Deprecated: Use OpenMarketRequest.ProtoReflect.Descriptor instead.
func (*OpenMarketRequest) GetMarket ¶
func (x *OpenMarketRequest) GetMarket() *types.Market
func (*OpenMarketRequest) ProtoMessage ¶
func (*OpenMarketRequest) ProtoMessage()
func (*OpenMarketRequest) ProtoReflect ¶
func (x *OpenMarketRequest) ProtoReflect() protoreflect.Message
func (*OpenMarketRequest) Reset ¶
func (x *OpenMarketRequest) Reset()
func (*OpenMarketRequest) String ¶
func (x *OpenMarketRequest) String() string
type OperatorClient ¶
type OperatorClient interface {
// Returns a new derived address for the given market.
// If market field is empty, a new Market is created and MUST be initialized.
DepositMarket(ctx context.Context, in *DepositMarketRequest, opts ...grpc.CallOption) (*DepositMarketReply, error)
// Returns the list of previously generated addresses for the given market.
ListDepositMarket(ctx context.Context, in *ListDepositMarketRequest, opts ...grpc.CallOption) (*ListDepositMarketReply, error)
// Returns a new derived address from the fee account.
// This is only used to deposit some LBTC to subsidize blockchain fees.
DepositFeeAccount(ctx context.Context, in *DepositFeeAccountRequest, opts ...grpc.CallOption) (*DepositFeeAccountReply, error)
// Returns the aggregated balance of LBTC held in the fee account.
BalanceFeeAccount(ctx context.Context, in *BalanceFeeAccountRequest, opts ...grpc.CallOption) (*BalanceFeeAccountReply, error)
// Operator can provide transaction(s) outpoints of deposits made to fund a new market.
// The transaction must be visible and confirmed, otherwise an error will be returned,
// inviting the operator to retry again
ClaimMarketDeposit(ctx context.Context, in *ClaimMarketDepositRequest, opts ...grpc.CallOption) (*ClaimMarketDepositReply, error)
// Operator can provide transaction(s) outpoints of deposits made to fund the fee account.
// The transaction must be visible and confirmed, otherwise an error will be returned,
// inviting the operator to retry again
ClaimFeeDeposit(ctx context.Context, in *ClaimFeeDepositRequest, opts ...grpc.CallOption) (*ClaimFeeDepositReply, error)
// Makes the given market tradable
OpenMarket(ctx context.Context, in *OpenMarketRequest, opts ...grpc.CallOption) (*OpenMarketReply, error)
// Makes the given market NOT tradabale
CloseMarket(ctx context.Context, in *CloseMarketRequest, opts ...grpc.CallOption) (*CloseMarketReply, error)
// Get extended details for each markets either open, closed or to be funded.
ListMarket(ctx context.Context, in *ListMarketRequest, opts ...grpc.CallOption) (*ListMarketReply, error)
// Changes the Liquidity Provider percentage fee for the given market. It
// should be express in basis point. To change the fee on each swap from
// (current) 0.25% to 1% you need to pass down 100 The Market MUST be closed
// before doing this change. It's also possible to remove the percentage fee
// by setting it to 0.
UpdateMarketPercentageFee(ctx context.Context, in *UpdateMarketPercentageFeeRequest, opts ...grpc.CallOption) (*UpdateMarketFeeReply, error)
// Changes the Liquidity provider fixed fees for the given market.
// They should be expressed in satoshis for both assets of the market.
// To remove a non-null fixed fee, it's enough to set the fields of the
// request to 0.
UpdateMarketFixedFee(ctx context.Context, in *UpdateMarketFixedFeeRequest, opts ...grpc.CallOption) (*UpdateMarketFeeReply, error)
// Manually updates the price for the given market
UpdateMarketPrice(ctx context.Context, in *UpdateMarketPriceRequest, opts ...grpc.CallOption) (*UpdateMarketPriceReply, error)
// Updates the current market making strategy, either using an automated
// market making formula or a pluggable price feed
UpdateMarketStrategy(ctx context.Context, in *UpdateMarketStrategyRequest, opts ...grpc.CallOption) (*UpdateMarketStrategyReply, error)
// WithdrawMarket allows the operator to withdraw to external wallet funds
// from a specific market. The Market MUST be closed before doing this change.
WithdrawMarket(ctx context.Context, in *WithdrawMarketRequest, opts ...grpc.CallOption) (*WithdrawMarketReply, error)
// Returs all the trades processed by the daemon (during process, compelted and rejected)
ListTrades(ctx context.Context, in *ListTradesRequest, opts ...grpc.CallOption) (*ListTradesReply, error)
// Displays a report on how much the given market is collecting in Liquidity
// Provider fees
ReportMarketFee(ctx context.Context, in *ReportMarketFeeRequest, opts ...grpc.CallOption) (*ReportMarketFeeReply, error)
// Triggers reloading of unspents for stored addresses from blockchain
ReloadUtxos(ctx context.Context, in *ReloadUtxosRequest, opts ...grpc.CallOption) (*ReloadUtxosReply, error)
// Returns all the unspents and locks
ListUtxos(ctx context.Context, in *ListUtxosRequest, opts ...grpc.CallOption) (*ListUtxosReply, error)
// Deletes Market based on account_index
DropMarket(ctx context.Context, in *DropMarketRequest, opts ...grpc.CallOption) (*DropMarketReply, error)
// Adds a webhook registered for some kind of event.
AddWebhook(ctx context.Context, in *AddWebhookRequest, opts ...grpc.CallOption) (*AddWebhookReply, error)
// Removes some previously added webhook.
RemoveWebhook(ctx context.Context, in *RemoveWebhookRequest, opts ...grpc.CallOption) (*RemoveWebhookReply, error)
ListWebhooks(ctx context.Context, in *ListWebhooksRequest, opts ...grpc.CallOption) (*ListWebhooksReply, error)
}
OperatorClient is the client API for Operator service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewOperatorClient ¶
func NewOperatorClient(cc grpc.ClientConnInterface) OperatorClient
type OperatorServer ¶
type OperatorServer interface {
// Returns a new derived address for the given market.
// If market field is empty, a new Market is created and MUST be initialized.
DepositMarket(context.Context, *DepositMarketRequest) (*DepositMarketReply, error)
// Returns the list of previously generated addresses for the given market.
ListDepositMarket(context.Context, *ListDepositMarketRequest) (*ListDepositMarketReply, error)
// Returns a new derived address from the fee account.
// This is only used to deposit some LBTC to subsidize blockchain fees.
DepositFeeAccount(context.Context, *DepositFeeAccountRequest) (*DepositFeeAccountReply, error)
// Returns the aggregated balance of LBTC held in the fee account.
BalanceFeeAccount(context.Context, *BalanceFeeAccountRequest) (*BalanceFeeAccountReply, error)
// Operator can provide transaction(s) outpoints of deposits made to fund a new market.
// The transaction must be visible and confirmed, otherwise an error will be returned,
// inviting the operator to retry again
ClaimMarketDeposit(context.Context, *ClaimMarketDepositRequest) (*ClaimMarketDepositReply, error)
// Operator can provide transaction(s) outpoints of deposits made to fund the fee account.
// The transaction must be visible and confirmed, otherwise an error will be returned,
// inviting the operator to retry again
ClaimFeeDeposit(context.Context, *ClaimFeeDepositRequest) (*ClaimFeeDepositReply, error)
// Makes the given market tradable
OpenMarket(context.Context, *OpenMarketRequest) (*OpenMarketReply, error)
// Makes the given market NOT tradabale
CloseMarket(context.Context, *CloseMarketRequest) (*CloseMarketReply, error)
// Get extended details for each markets either open, closed or to be funded.
ListMarket(context.Context, *ListMarketRequest) (*ListMarketReply, error)
// Changes the Liquidity Provider percentage fee for the given market. It
// should be express in basis point. To change the fee on each swap from
// (current) 0.25% to 1% you need to pass down 100 The Market MUST be closed
// before doing this change. It's also possible to remove the percentage fee
// by setting it to 0.
UpdateMarketPercentageFee(context.Context, *UpdateMarketPercentageFeeRequest) (*UpdateMarketFeeReply, error)
// Changes the Liquidity provider fixed fees for the given market.
// They should be expressed in satoshis for both assets of the market.
// To remove a non-null fixed fee, it's enough to set the fields of the
// request to 0.
UpdateMarketFixedFee(context.Context, *UpdateMarketFixedFeeRequest) (*UpdateMarketFeeReply, error)
// Manually updates the price for the given market
UpdateMarketPrice(context.Context, *UpdateMarketPriceRequest) (*UpdateMarketPriceReply, error)
// Updates the current market making strategy, either using an automated
// market making formula or a pluggable price feed
UpdateMarketStrategy(context.Context, *UpdateMarketStrategyRequest) (*UpdateMarketStrategyReply, error)
// WithdrawMarket allows the operator to withdraw to external wallet funds
// from a specific market. The Market MUST be closed before doing this change.
WithdrawMarket(context.Context, *WithdrawMarketRequest) (*WithdrawMarketReply, error)
// Returs all the trades processed by the daemon (during process, compelted and rejected)
ListTrades(context.Context, *ListTradesRequest) (*ListTradesReply, error)
// Displays a report on how much the given market is collecting in Liquidity
// Provider fees
ReportMarketFee(context.Context, *ReportMarketFeeRequest) (*ReportMarketFeeReply, error)
// Triggers reloading of unspents for stored addresses from blockchain
ReloadUtxos(context.Context, *ReloadUtxosRequest) (*ReloadUtxosReply, error)
// Returns all the unspents and locks
ListUtxos(context.Context, *ListUtxosRequest) (*ListUtxosReply, error)
// Deletes Market based on account_index
DropMarket(context.Context, *DropMarketRequest) (*DropMarketReply, error)
// Adds a webhook registered for some kind of event.
AddWebhook(context.Context, *AddWebhookRequest) (*AddWebhookReply, error)
// Removes some previously added webhook.
RemoveWebhook(context.Context, *RemoveWebhookRequest) (*RemoveWebhookReply, error)
ListWebhooks(context.Context, *ListWebhooksRequest) (*ListWebhooksReply, error)
// contains filtered or unexported methods
}
OperatorServer is the server API for Operator service. All implementations must embed UnimplementedOperatorServer for forward compatibility
type ReloadUtxosReply ¶
type ReloadUtxosReply struct {
// contains filtered or unexported fields
}
func (*ReloadUtxosReply) Descriptor
deprecated
func (*ReloadUtxosReply) Descriptor() ([]byte, []int)
Deprecated: Use ReloadUtxosReply.ProtoReflect.Descriptor instead.
func (*ReloadUtxosReply) ProtoMessage ¶
func (*ReloadUtxosReply) ProtoMessage()
func (*ReloadUtxosReply) ProtoReflect ¶
func (x *ReloadUtxosReply) ProtoReflect() protoreflect.Message
func (*ReloadUtxosReply) Reset ¶
func (x *ReloadUtxosReply) Reset()
func (*ReloadUtxosReply) String ¶
func (x *ReloadUtxosReply) String() string
type ReloadUtxosRequest ¶
type ReloadUtxosRequest struct {
// contains filtered or unexported fields
}
func (*ReloadUtxosRequest) Descriptor
deprecated
func (*ReloadUtxosRequest) Descriptor() ([]byte, []int)
Deprecated: Use ReloadUtxosRequest.ProtoReflect.Descriptor instead.
func (*ReloadUtxosRequest) ProtoMessage ¶
func (*ReloadUtxosRequest) ProtoMessage()
func (*ReloadUtxosRequest) ProtoReflect ¶
func (x *ReloadUtxosRequest) ProtoReflect() protoreflect.Message
func (*ReloadUtxosRequest) Reset ¶
func (x *ReloadUtxosRequest) Reset()
func (*ReloadUtxosRequest) String ¶
func (x *ReloadUtxosRequest) String() string
type RemoveWebhookReply ¶ added in v0.3.11
type RemoveWebhookReply struct {
// contains filtered or unexported fields
}
func (*RemoveWebhookReply) Descriptor
deprecated
added in
v0.3.11
func (*RemoveWebhookReply) Descriptor() ([]byte, []int)
Deprecated: Use RemoveWebhookReply.ProtoReflect.Descriptor instead.
func (*RemoveWebhookReply) ProtoMessage ¶ added in v0.3.11
func (*RemoveWebhookReply) ProtoMessage()
func (*RemoveWebhookReply) ProtoReflect ¶ added in v0.3.11
func (x *RemoveWebhookReply) ProtoReflect() protoreflect.Message
func (*RemoveWebhookReply) Reset ¶ added in v0.3.11
func (x *RemoveWebhookReply) Reset()
func (*RemoveWebhookReply) String ¶ added in v0.3.11
func (x *RemoveWebhookReply) String() string
type RemoveWebhookRequest ¶ added in v0.3.11
type RemoveWebhookRequest struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*RemoveWebhookRequest) Descriptor
deprecated
added in
v0.3.11
func (*RemoveWebhookRequest) Descriptor() ([]byte, []int)
Deprecated: Use RemoveWebhookRequest.ProtoReflect.Descriptor instead.
func (*RemoveWebhookRequest) GetId ¶ added in v0.3.11
func (x *RemoveWebhookRequest) GetId() string
func (*RemoveWebhookRequest) ProtoMessage ¶ added in v0.3.11
func (*RemoveWebhookRequest) ProtoMessage()
func (*RemoveWebhookRequest) ProtoReflect ¶ added in v0.3.11
func (x *RemoveWebhookRequest) ProtoReflect() protoreflect.Message
func (*RemoveWebhookRequest) Reset ¶ added in v0.3.11
func (x *RemoveWebhookRequest) Reset()
func (*RemoveWebhookRequest) String ¶ added in v0.3.11
func (x *RemoveWebhookRequest) String() string
type ReportMarketFeeReply ¶
type ReportMarketFeeReply struct {
// List of the all unique fee being collected on each swap.
CollectedFees []*FeeInfo `protobuf:"bytes,1,rep,name=collected_fees,json=collectedFees,proto3" json:"collected_fees,omitempty"`
// Map of aggreagated fee count grouped by asset. There should be one unique
// entry for each asset and the amount should be the aggregated total.
TotalCollectedFeesPerAsset map[string]int64 `` /* 234-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*ReportMarketFeeReply) Descriptor
deprecated
func (*ReportMarketFeeReply) Descriptor() ([]byte, []int)
Deprecated: Use ReportMarketFeeReply.ProtoReflect.Descriptor instead.
func (*ReportMarketFeeReply) GetCollectedFees ¶
func (x *ReportMarketFeeReply) GetCollectedFees() []*FeeInfo
func (*ReportMarketFeeReply) GetTotalCollectedFeesPerAsset ¶
func (x *ReportMarketFeeReply) GetTotalCollectedFeesPerAsset() map[string]int64
func (*ReportMarketFeeReply) ProtoMessage ¶
func (*ReportMarketFeeReply) ProtoMessage()
func (*ReportMarketFeeReply) ProtoReflect ¶
func (x *ReportMarketFeeReply) ProtoReflect() protoreflect.Message
func (*ReportMarketFeeReply) Reset ¶
func (x *ReportMarketFeeReply) Reset()
func (*ReportMarketFeeReply) String ¶
func (x *ReportMarketFeeReply) String() string
type ReportMarketFeeRequest ¶
type ReportMarketFeeRequest struct {
Market *types.Market `protobuf:"bytes,1,opt,name=market,proto3" json:"market,omitempty"` // Market to be updated
// contains filtered or unexported fields
}
func (*ReportMarketFeeRequest) Descriptor
deprecated
func (*ReportMarketFeeRequest) Descriptor() ([]byte, []int)
Deprecated: Use ReportMarketFeeRequest.ProtoReflect.Descriptor instead.
func (*ReportMarketFeeRequest) GetMarket ¶
func (x *ReportMarketFeeRequest) GetMarket() *types.Market
func (*ReportMarketFeeRequest) ProtoMessage ¶
func (*ReportMarketFeeRequest) ProtoMessage()
func (*ReportMarketFeeRequest) ProtoReflect ¶
func (x *ReportMarketFeeRequest) ProtoReflect() protoreflect.Message
func (*ReportMarketFeeRequest) Reset ¶
func (x *ReportMarketFeeRequest) Reset()
func (*ReportMarketFeeRequest) String ¶
func (x *ReportMarketFeeRequest) String() string
type StrategyType ¶
type StrategyType int32
Custom types
const ( StrategyType_PLUGGABLE StrategyType = 0 StrategyType_BALANCED StrategyType = 1 StrategyType_UNBALANCED StrategyType = 2 )
func (StrategyType) Descriptor ¶
func (StrategyType) Descriptor() protoreflect.EnumDescriptor
func (StrategyType) Enum ¶
func (x StrategyType) Enum() *StrategyType
func (StrategyType) EnumDescriptor
deprecated
func (StrategyType) EnumDescriptor() ([]byte, []int)
Deprecated: Use StrategyType.Descriptor instead.
func (StrategyType) Number ¶
func (x StrategyType) Number() protoreflect.EnumNumber
func (StrategyType) String ¶
func (x StrategyType) String() string
func (StrategyType) Type ¶
func (StrategyType) Type() protoreflect.EnumType
type SwapFailInfo ¶
type SwapFailInfo struct {
FailureCode uint32 `protobuf:"varint,1,opt,name=failure_code,json=failureCode,proto3" json:"failure_code,omitempty"`
FailureMessage string `protobuf:"bytes,2,opt,name=failure_message,json=failureMessage,proto3" json:"failure_message,omitempty"`
// contains filtered or unexported fields
}
func (*SwapFailInfo) Descriptor
deprecated
func (*SwapFailInfo) Descriptor() ([]byte, []int)
Deprecated: Use SwapFailInfo.ProtoReflect.Descriptor instead.
func (*SwapFailInfo) GetFailureCode ¶
func (x *SwapFailInfo) GetFailureCode() uint32
func (*SwapFailInfo) GetFailureMessage ¶
func (x *SwapFailInfo) GetFailureMessage() string
func (*SwapFailInfo) ProtoMessage ¶
func (*SwapFailInfo) ProtoMessage()
func (*SwapFailInfo) ProtoReflect ¶
func (x *SwapFailInfo) ProtoReflect() protoreflect.Message
func (*SwapFailInfo) Reset ¶
func (x *SwapFailInfo) Reset()
func (*SwapFailInfo) String ¶
func (x *SwapFailInfo) String() string
type SwapInfo ¶
type SwapInfo struct {
// The proposer's quantity
AmountP uint64 `protobuf:"varint,1,opt,name=amount_p,json=amountP,proto3" json:"amount_p,omitempty"`
// The proposer's asset hash
AssetP string `protobuf:"bytes,2,opt,name=asset_p,json=assetP,proto3" json:"asset_p,omitempty"`
// The responder's quantity
AmountR uint64 `protobuf:"varint,3,opt,name=amount_r,json=amountR,proto3" json:"amount_r,omitempty"`
// The responder's asset hash
AssetR string `protobuf:"bytes,4,opt,name=asset_r,json=assetR,proto3" json:"asset_r,omitempty"`
// contains filtered or unexported fields
}
func (*SwapInfo) Descriptor
deprecated
func (*SwapInfo) GetAmountP ¶
func (*SwapInfo) GetAmountR ¶
func (*SwapInfo) ProtoMessage ¶
func (*SwapInfo) ProtoMessage()
func (*SwapInfo) ProtoReflect ¶
func (x *SwapInfo) ProtoReflect() protoreflect.Message
type TradeInfo ¶
type TradeInfo struct {
// The id of the trade
TradeId string `protobuf:"bytes,1,opt,name=trade_id,json=tradeId,proto3" json:"trade_id,omitempty"`
// The info about the status of the trade
Status *TradeStatusInfo `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
// The info about the swap
SwapInfo *SwapInfo `protobuf:"bytes,3,opt,name=swap_info,json=swapInfo,proto3" json:"swap_info,omitempty"`
// The info of an eventually failed swap
FailInfo *SwapFailInfo `protobuf:"bytes,4,opt,name=fail_info,json=failInfo,proto3" json:"fail_info,omitempty"`
// The collected fee on the current swap
MarketWithFee *types.MarketWithFee `protobuf:"bytes,5,opt,name=market_with_fee,json=marketWithFee,proto3" json:"market_with_fee,omitempty"`
// The prices of the trade at request time
Price *TradePrice `protobuf:"bytes,6,opt,name=price,proto3" json:"price,omitempty"`
// The eventual tx url with blinders in case the trade is settled
TxUrl string `protobuf:"bytes,7,opt,name=tx_url,json=txUrl,proto3" json:"tx_url,omitempty"`
// SwapRequest unix timestamp
RequestTimeUnix uint64 `protobuf:"varint,8,opt,name=request_time_unix,json=requestTimeUnix,proto3" json:"request_time_unix,omitempty"`
// SwapAccpet unix timestamp
AcceptTimeUnix uint64 `protobuf:"varint,9,opt,name=accept_time_unix,json=acceptTimeUnix,proto3" json:"accept_time_unix,omitempty"`
// SwapComplete unix timestamp
CompleteTimeUnix uint64 `protobuf:"varint,10,opt,name=complete_time_unix,json=completeTimeUnix,proto3" json:"complete_time_unix,omitempty"`
// Settlement unix timestamp
SettleTimeUnix uint64 `protobuf:"varint,11,opt,name=settle_time_unix,json=settleTimeUnix,proto3" json:"settle_time_unix,omitempty"`
// Expiration unix timestamp
ExpiryTimeUnix uint64 `protobuf:"varint,12,opt,name=expiry_time_unix,json=expiryTimeUnix,proto3" json:"expiry_time_unix,omitempty"`
// SwapRequest UTC timestamp
RequestTimeUtc string `protobuf:"bytes,13,opt,name=request_time_utc,json=requestTimeUtc,proto3" json:"request_time_utc,omitempty"`
// SwapAccept UTC timestamp
AcceptTimeUtc string `protobuf:"bytes,14,opt,name=accept_time_utc,json=acceptTimeUtc,proto3" json:"accept_time_utc,omitempty"`
// SwapComplete UTC timestamp
CompleteTimeUtc string `protobuf:"bytes,15,opt,name=complete_time_utc,json=completeTimeUtc,proto3" json:"complete_time_utc,omitempty"`
// Settlement UTC timestamp
SettleTimeUtc string `protobuf:"bytes,16,opt,name=settle_time_utc,json=settleTimeUtc,proto3" json:"settle_time_utc,omitempty"`
// Expiration UTC timestamp
ExpiryTimeUtc string `protobuf:"bytes,17,opt,name=expiry_time_utc,json=expiryTimeUtc,proto3" json:"expiry_time_utc,omitempty"`
// contains filtered or unexported fields
}
func (*TradeInfo) Descriptor
deprecated
func (*TradeInfo) GetAcceptTimeUnix ¶
func (*TradeInfo) GetAcceptTimeUtc ¶
func (*TradeInfo) GetCompleteTimeUnix ¶
func (*TradeInfo) GetCompleteTimeUtc ¶
func (*TradeInfo) GetExpiryTimeUnix ¶
func (*TradeInfo) GetExpiryTimeUtc ¶
func (*TradeInfo) GetFailInfo ¶
func (x *TradeInfo) GetFailInfo() *SwapFailInfo
func (*TradeInfo) GetMarketWithFee ¶
func (x *TradeInfo) GetMarketWithFee() *types.MarketWithFee
func (*TradeInfo) GetPrice ¶
func (x *TradeInfo) GetPrice() *TradePrice
func (*TradeInfo) GetRequestTimeUnix ¶
func (*TradeInfo) GetRequestTimeUtc ¶
func (*TradeInfo) GetSettleTimeUnix ¶
func (*TradeInfo) GetSettleTimeUtc ¶
func (*TradeInfo) GetStatus ¶
func (x *TradeInfo) GetStatus() *TradeStatusInfo
func (*TradeInfo) GetSwapInfo ¶
func (*TradeInfo) GetTradeId ¶
func (*TradeInfo) ProtoMessage ¶
func (*TradeInfo) ProtoMessage()
func (*TradeInfo) ProtoReflect ¶
func (x *TradeInfo) ProtoReflect() protoreflect.Message
type TradePrice ¶
type TradePrice struct {
BasePrice float64 `protobuf:"fixed64,1,opt,name=base_price,json=basePrice,proto3" json:"base_price,omitempty"`
QuotePrice float64 `protobuf:"fixed64,2,opt,name=quote_price,json=quotePrice,proto3" json:"quote_price,omitempty"`
// contains filtered or unexported fields
}
func (*TradePrice) Descriptor
deprecated
func (*TradePrice) Descriptor() ([]byte, []int)
Deprecated: Use TradePrice.ProtoReflect.Descriptor instead.
func (*TradePrice) GetBasePrice ¶
func (x *TradePrice) GetBasePrice() float64
func (*TradePrice) GetQuotePrice ¶
func (x *TradePrice) GetQuotePrice() float64
func (*TradePrice) ProtoMessage ¶
func (*TradePrice) ProtoMessage()
func (*TradePrice) ProtoReflect ¶
func (x *TradePrice) ProtoReflect() protoreflect.Message
func (*TradePrice) Reset ¶
func (x *TradePrice) Reset()
func (*TradePrice) String ¶
func (x *TradePrice) String() string
type TradeStatus ¶
type TradeStatus int32
const ( TradeStatus_UNDEFINED TradeStatus = 0 TradeStatus_REQUEST TradeStatus = 1 TradeStatus_ACCEPT TradeStatus = 2 TradeStatus_COMPLETE TradeStatus = 3 TradeStatus_SETTLED TradeStatus = 4 TradeStatus_EXPIRED TradeStatus = 5 )
func (TradeStatus) Descriptor ¶
func (TradeStatus) Descriptor() protoreflect.EnumDescriptor
func (TradeStatus) Enum ¶
func (x TradeStatus) Enum() *TradeStatus
func (TradeStatus) EnumDescriptor
deprecated
func (TradeStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use TradeStatus.Descriptor instead.
func (TradeStatus) Number ¶
func (x TradeStatus) Number() protoreflect.EnumNumber
func (TradeStatus) String ¶
func (x TradeStatus) String() string
func (TradeStatus) Type ¶
func (TradeStatus) Type() protoreflect.EnumType
type TradeStatusInfo ¶
type TradeStatusInfo struct {
Status TradeStatus `protobuf:"varint,1,opt,name=status,proto3,enum=TradeStatus" json:"status,omitempty"`
Failed bool `protobuf:"varint,2,opt,name=failed,proto3" json:"failed,omitempty"`
// contains filtered or unexported fields
}
func (*TradeStatusInfo) Descriptor
deprecated
func (*TradeStatusInfo) Descriptor() ([]byte, []int)
Deprecated: Use TradeStatusInfo.ProtoReflect.Descriptor instead.
func (*TradeStatusInfo) GetFailed ¶
func (x *TradeStatusInfo) GetFailed() bool
func (*TradeStatusInfo) GetStatus ¶
func (x *TradeStatusInfo) GetStatus() TradeStatus
func (*TradeStatusInfo) ProtoMessage ¶
func (*TradeStatusInfo) ProtoMessage()
func (*TradeStatusInfo) ProtoReflect ¶
func (x *TradeStatusInfo) ProtoReflect() protoreflect.Message
func (*TradeStatusInfo) Reset ¶
func (x *TradeStatusInfo) Reset()
func (*TradeStatusInfo) String ¶
func (x *TradeStatusInfo) String() string
type TxOutpoint ¶
type TxOutpoint struct {
Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
Index int32 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"`
// contains filtered or unexported fields
}
func (*TxOutpoint) Descriptor
deprecated
func (*TxOutpoint) Descriptor() ([]byte, []int)
Deprecated: Use TxOutpoint.ProtoReflect.Descriptor instead.
func (*TxOutpoint) GetHash ¶
func (x *TxOutpoint) GetHash() string
func (*TxOutpoint) GetIndex ¶
func (x *TxOutpoint) GetIndex() int32
func (*TxOutpoint) ProtoMessage ¶
func (*TxOutpoint) ProtoMessage()
func (*TxOutpoint) ProtoReflect ¶
func (x *TxOutpoint) ProtoReflect() protoreflect.Message
func (*TxOutpoint) Reset ¶
func (x *TxOutpoint) Reset()
func (*TxOutpoint) String ¶
func (x *TxOutpoint) String() string
type UnimplementedOperatorServer ¶
type UnimplementedOperatorServer struct {
}
UnimplementedOperatorServer must be embedded to have forward compatible implementations.
func (UnimplementedOperatorServer) AddWebhook ¶ added in v0.3.11
func (UnimplementedOperatorServer) AddWebhook(context.Context, *AddWebhookRequest) (*AddWebhookReply, error)
func (UnimplementedOperatorServer) BalanceFeeAccount ¶
func (UnimplementedOperatorServer) BalanceFeeAccount(context.Context, *BalanceFeeAccountRequest) (*BalanceFeeAccountReply, error)
func (UnimplementedOperatorServer) ClaimFeeDeposit ¶
func (UnimplementedOperatorServer) ClaimFeeDeposit(context.Context, *ClaimFeeDepositRequest) (*ClaimFeeDepositReply, error)
func (UnimplementedOperatorServer) ClaimMarketDeposit ¶
func (UnimplementedOperatorServer) ClaimMarketDeposit(context.Context, *ClaimMarketDepositRequest) (*ClaimMarketDepositReply, error)
func (UnimplementedOperatorServer) CloseMarket ¶
func (UnimplementedOperatorServer) CloseMarket(context.Context, *CloseMarketRequest) (*CloseMarketReply, error)
func (UnimplementedOperatorServer) DepositFeeAccount ¶
func (UnimplementedOperatorServer) DepositFeeAccount(context.Context, *DepositFeeAccountRequest) (*DepositFeeAccountReply, error)
func (UnimplementedOperatorServer) DepositMarket ¶
func (UnimplementedOperatorServer) DepositMarket(context.Context, *DepositMarketRequest) (*DepositMarketReply, error)
func (UnimplementedOperatorServer) DropMarket ¶
func (UnimplementedOperatorServer) DropMarket(context.Context, *DropMarketRequest) (*DropMarketReply, error)
func (UnimplementedOperatorServer) ListDepositMarket ¶
func (UnimplementedOperatorServer) ListDepositMarket(context.Context, *ListDepositMarketRequest) (*ListDepositMarketReply, error)
func (UnimplementedOperatorServer) ListMarket ¶
func (UnimplementedOperatorServer) ListMarket(context.Context, *ListMarketRequest) (*ListMarketReply, error)
func (UnimplementedOperatorServer) ListTrades ¶
func (UnimplementedOperatorServer) ListTrades(context.Context, *ListTradesRequest) (*ListTradesReply, error)
func (UnimplementedOperatorServer) ListUtxos ¶
func (UnimplementedOperatorServer) ListUtxos(context.Context, *ListUtxosRequest) (*ListUtxosReply, error)
func (UnimplementedOperatorServer) ListWebhooks ¶ added in v0.3.11
func (UnimplementedOperatorServer) ListWebhooks(context.Context, *ListWebhooksRequest) (*ListWebhooksReply, error)
func (UnimplementedOperatorServer) OpenMarket ¶
func (UnimplementedOperatorServer) OpenMarket(context.Context, *OpenMarketRequest) (*OpenMarketReply, error)
func (UnimplementedOperatorServer) ReloadUtxos ¶
func (UnimplementedOperatorServer) ReloadUtxos(context.Context, *ReloadUtxosRequest) (*ReloadUtxosReply, error)
func (UnimplementedOperatorServer) RemoveWebhook ¶ added in v0.3.11
func (UnimplementedOperatorServer) RemoveWebhook(context.Context, *RemoveWebhookRequest) (*RemoveWebhookReply, error)
func (UnimplementedOperatorServer) ReportMarketFee ¶
func (UnimplementedOperatorServer) ReportMarketFee(context.Context, *ReportMarketFeeRequest) (*ReportMarketFeeReply, error)
func (UnimplementedOperatorServer) UpdateMarketFixedFee ¶
func (UnimplementedOperatorServer) UpdateMarketFixedFee(context.Context, *UpdateMarketFixedFeeRequest) (*UpdateMarketFeeReply, error)
func (UnimplementedOperatorServer) UpdateMarketPercentageFee ¶
func (UnimplementedOperatorServer) UpdateMarketPercentageFee(context.Context, *UpdateMarketPercentageFeeRequest) (*UpdateMarketFeeReply, error)
func (UnimplementedOperatorServer) UpdateMarketPrice ¶
func (UnimplementedOperatorServer) UpdateMarketPrice(context.Context, *UpdateMarketPriceRequest) (*UpdateMarketPriceReply, error)
func (UnimplementedOperatorServer) UpdateMarketStrategy ¶
func (UnimplementedOperatorServer) UpdateMarketStrategy(context.Context, *UpdateMarketStrategyRequest) (*UpdateMarketStrategyReply, error)
func (UnimplementedOperatorServer) WithdrawMarket ¶
func (UnimplementedOperatorServer) WithdrawMarket(context.Context, *WithdrawMarketRequest) (*WithdrawMarketReply, error)
type UnsafeOperatorServer ¶
type UnsafeOperatorServer interface {
// contains filtered or unexported methods
}
UnsafeOperatorServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to OperatorServer will result in compilation errors.
type UpdateMarketFeeReply ¶
type UpdateMarketFeeReply struct {
MarketWithFee *types.MarketWithFee `protobuf:"bytes,1,opt,name=market_with_fee,json=marketWithFee,proto3" json:"market_with_fee,omitempty"`
// contains filtered or unexported fields
}
func (*UpdateMarketFeeReply) Descriptor
deprecated
func (*UpdateMarketFeeReply) Descriptor() ([]byte, []int)
Deprecated: Use UpdateMarketFeeReply.ProtoReflect.Descriptor instead.
func (*UpdateMarketFeeReply) GetMarketWithFee ¶
func (x *UpdateMarketFeeReply) GetMarketWithFee() *types.MarketWithFee
func (*UpdateMarketFeeReply) ProtoMessage ¶
func (*UpdateMarketFeeReply) ProtoMessage()
func (*UpdateMarketFeeReply) ProtoReflect ¶
func (x *UpdateMarketFeeReply) ProtoReflect() protoreflect.Message
func (*UpdateMarketFeeReply) Reset ¶
func (x *UpdateMarketFeeReply) Reset()
func (*UpdateMarketFeeReply) String ¶
func (x *UpdateMarketFeeReply) String() string
type UpdateMarketFixedFeeRequest ¶
type UpdateMarketFixedFeeRequest struct {
Market *types.Market `protobuf:"bytes,1,opt,name=market,proto3" json:"market,omitempty"`
Fixed *types.Fixed `protobuf:"bytes,2,opt,name=fixed,proto3" json:"fixed,omitempty"`
// contains filtered or unexported fields
}
func (*UpdateMarketFixedFeeRequest) Descriptor
deprecated
func (*UpdateMarketFixedFeeRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateMarketFixedFeeRequest.ProtoReflect.Descriptor instead.
func (*UpdateMarketFixedFeeRequest) GetFixed ¶
func (x *UpdateMarketFixedFeeRequest) GetFixed() *types.Fixed
func (*UpdateMarketFixedFeeRequest) GetMarket ¶
func (x *UpdateMarketFixedFeeRequest) GetMarket() *types.Market
func (*UpdateMarketFixedFeeRequest) ProtoMessage ¶
func (*UpdateMarketFixedFeeRequest) ProtoMessage()
func (*UpdateMarketFixedFeeRequest) ProtoReflect ¶
func (x *UpdateMarketFixedFeeRequest) ProtoReflect() protoreflect.Message
func (*UpdateMarketFixedFeeRequest) Reset ¶
func (x *UpdateMarketFixedFeeRequest) Reset()
func (*UpdateMarketFixedFeeRequest) String ¶
func (x *UpdateMarketFixedFeeRequest) String() string
type UpdateMarketPercentageFeeRequest ¶
type UpdateMarketPercentageFeeRequest struct {
Market *types.Market `protobuf:"bytes,1,opt,name=market,proto3" json:"market,omitempty"`
BasisPoint int64 `protobuf:"varint,2,opt,name=basis_point,json=basisPoint,proto3" json:"basis_point,omitempty"`
// contains filtered or unexported fields
}
func (*UpdateMarketPercentageFeeRequest) Descriptor
deprecated
func (*UpdateMarketPercentageFeeRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateMarketPercentageFeeRequest.ProtoReflect.Descriptor instead.
func (*UpdateMarketPercentageFeeRequest) GetBasisPoint ¶
func (x *UpdateMarketPercentageFeeRequest) GetBasisPoint() int64
func (*UpdateMarketPercentageFeeRequest) GetMarket ¶
func (x *UpdateMarketPercentageFeeRequest) GetMarket() *types.Market
func (*UpdateMarketPercentageFeeRequest) ProtoMessage ¶
func (*UpdateMarketPercentageFeeRequest) ProtoMessage()
func (*UpdateMarketPercentageFeeRequest) ProtoReflect ¶
func (x *UpdateMarketPercentageFeeRequest) ProtoReflect() protoreflect.Message
func (*UpdateMarketPercentageFeeRequest) Reset ¶
func (x *UpdateMarketPercentageFeeRequest) Reset()
func (*UpdateMarketPercentageFeeRequest) String ¶
func (x *UpdateMarketPercentageFeeRequest) String() string
type UpdateMarketPriceReply ¶
type UpdateMarketPriceReply struct {
// contains filtered or unexported fields
}
func (*UpdateMarketPriceReply) Descriptor
deprecated
func (*UpdateMarketPriceReply) Descriptor() ([]byte, []int)
Deprecated: Use UpdateMarketPriceReply.ProtoReflect.Descriptor instead.
func (*UpdateMarketPriceReply) ProtoMessage ¶
func (*UpdateMarketPriceReply) ProtoMessage()
func (*UpdateMarketPriceReply) ProtoReflect ¶
func (x *UpdateMarketPriceReply) ProtoReflect() protoreflect.Message
func (*UpdateMarketPriceReply) Reset ¶
func (x *UpdateMarketPriceReply) Reset()
func (*UpdateMarketPriceReply) String ¶
func (x *UpdateMarketPriceReply) String() string
type UpdateMarketPriceRequest ¶
type UpdateMarketPriceRequest struct {
// Market to update the price of
Market *types.Market `protobuf:"bytes,1,opt,name=market,proto3" json:"market,omitempty"`
// Price to be updated
Price *types.Price `protobuf:"bytes,2,opt,name=price,proto3" json:"price,omitempty"`
// contains filtered or unexported fields
}
func (*UpdateMarketPriceRequest) Descriptor
deprecated
func (*UpdateMarketPriceRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateMarketPriceRequest.ProtoReflect.Descriptor instead.
func (*UpdateMarketPriceRequest) GetMarket ¶
func (x *UpdateMarketPriceRequest) GetMarket() *types.Market
func (*UpdateMarketPriceRequest) GetPrice ¶
func (x *UpdateMarketPriceRequest) GetPrice() *types.Price
func (*UpdateMarketPriceRequest) ProtoMessage ¶
func (*UpdateMarketPriceRequest) ProtoMessage()
func (*UpdateMarketPriceRequest) ProtoReflect ¶
func (x *UpdateMarketPriceRequest) ProtoReflect() protoreflect.Message
func (*UpdateMarketPriceRequest) Reset ¶
func (x *UpdateMarketPriceRequest) Reset()
func (*UpdateMarketPriceRequest) String ¶
func (x *UpdateMarketPriceRequest) String() string
type UpdateMarketStrategyReply ¶
type UpdateMarketStrategyReply struct {
// contains filtered or unexported fields
}
func (*UpdateMarketStrategyReply) Descriptor
deprecated
func (*UpdateMarketStrategyReply) Descriptor() ([]byte, []int)
Deprecated: Use UpdateMarketStrategyReply.ProtoReflect.Descriptor instead.
func (*UpdateMarketStrategyReply) ProtoMessage ¶
func (*UpdateMarketStrategyReply) ProtoMessage()
func (*UpdateMarketStrategyReply) ProtoReflect ¶
func (x *UpdateMarketStrategyReply) ProtoReflect() protoreflect.Message
func (*UpdateMarketStrategyReply) Reset ¶
func (x *UpdateMarketStrategyReply) Reset()
func (*UpdateMarketStrategyReply) String ¶
func (x *UpdateMarketStrategyReply) String() string
type UpdateMarketStrategyRequest ¶
type UpdateMarketStrategyRequest struct {
// Market to change the strategy of
Market *types.Market `protobuf:"bytes,1,opt,name=market,proto3" json:"market,omitempty"`
// Market making strategy to use
StrategyType StrategyType `protobuf:"varint,2,opt,name=strategy_type,json=strategyType,proto3,enum=StrategyType" json:"strategy_type,omitempty"`
//
//JSON string representing additional metadata relative to the chosen strategy.
Metadata string `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
// contains filtered or unexported fields
}
func (*UpdateMarketStrategyRequest) Descriptor
deprecated
func (*UpdateMarketStrategyRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateMarketStrategyRequest.ProtoReflect.Descriptor instead.
func (*UpdateMarketStrategyRequest) GetMarket ¶
func (x *UpdateMarketStrategyRequest) GetMarket() *types.Market
func (*UpdateMarketStrategyRequest) GetMetadata ¶
func (x *UpdateMarketStrategyRequest) GetMetadata() string
func (*UpdateMarketStrategyRequest) GetStrategyType ¶
func (x *UpdateMarketStrategyRequest) GetStrategyType() StrategyType
func (*UpdateMarketStrategyRequest) ProtoMessage ¶
func (*UpdateMarketStrategyRequest) ProtoMessage()
func (*UpdateMarketStrategyRequest) ProtoReflect ¶
func (x *UpdateMarketStrategyRequest) ProtoReflect() protoreflect.Message
func (*UpdateMarketStrategyRequest) Reset ¶
func (x *UpdateMarketStrategyRequest) Reset()
func (*UpdateMarketStrategyRequest) String ¶
func (x *UpdateMarketStrategyRequest) String() string
type UtxoInfo ¶
type UtxoInfo struct {
Outpoint *TxOutpoint `protobuf:"bytes,1,opt,name=outpoint,proto3" json:"outpoint,omitempty"`
Value uint64 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
Asset string `protobuf:"bytes,3,opt,name=asset,proto3" json:"asset,omitempty"`
// contains filtered or unexported fields
}
func (*UtxoInfo) Descriptor
deprecated
func (*UtxoInfo) GetOutpoint ¶
func (x *UtxoInfo) GetOutpoint() *TxOutpoint
func (*UtxoInfo) ProtoMessage ¶
func (*UtxoInfo) ProtoMessage()
func (*UtxoInfo) ProtoReflect ¶
func (x *UtxoInfo) ProtoReflect() protoreflect.Message
type UtxoInfoList ¶
type UtxoInfoList struct {
Unspents []*UtxoInfo `protobuf:"bytes,1,rep,name=unspents,proto3" json:"unspents,omitempty"`
Spents []*UtxoInfo `protobuf:"bytes,2,rep,name=spents,proto3" json:"spents,omitempty"`
Locks []*UtxoInfo `protobuf:"bytes,3,rep,name=locks,proto3" json:"locks,omitempty"`
// contains filtered or unexported fields
}
func (*UtxoInfoList) Descriptor
deprecated
func (*UtxoInfoList) Descriptor() ([]byte, []int)
Deprecated: Use UtxoInfoList.ProtoReflect.Descriptor instead.
func (*UtxoInfoList) GetLocks ¶
func (x *UtxoInfoList) GetLocks() []*UtxoInfo
func (*UtxoInfoList) GetSpents ¶
func (x *UtxoInfoList) GetSpents() []*UtxoInfo
func (*UtxoInfoList) GetUnspents ¶
func (x *UtxoInfoList) GetUnspents() []*UtxoInfo
func (*UtxoInfoList) ProtoMessage ¶
func (*UtxoInfoList) ProtoMessage()
func (*UtxoInfoList) ProtoReflect ¶
func (x *UtxoInfoList) ProtoReflect() protoreflect.Message
func (*UtxoInfoList) Reset ¶
func (x *UtxoInfoList) Reset()
func (*UtxoInfoList) String ¶
func (x *UtxoInfoList) String() string
type WebhookInfo ¶ added in v0.3.11
type WebhookInfo struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Endpoint string `protobuf:"bytes,2,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
IsSecured bool `protobuf:"varint,3,opt,name=is_secured,json=isSecured,proto3" json:"is_secured,omitempty"`
// contains filtered or unexported fields
}
func (*WebhookInfo) Descriptor
deprecated
added in
v0.3.11
func (*WebhookInfo) Descriptor() ([]byte, []int)
Deprecated: Use WebhookInfo.ProtoReflect.Descriptor instead.
func (*WebhookInfo) GetEndpoint ¶ added in v0.3.11
func (x *WebhookInfo) GetEndpoint() string
func (*WebhookInfo) GetId ¶ added in v0.3.11
func (x *WebhookInfo) GetId() string
func (*WebhookInfo) GetIsSecured ¶ added in v0.3.11
func (x *WebhookInfo) GetIsSecured() bool
func (*WebhookInfo) ProtoMessage ¶ added in v0.3.11
func (*WebhookInfo) ProtoMessage()
func (*WebhookInfo) ProtoReflect ¶ added in v0.3.11
func (x *WebhookInfo) ProtoReflect() protoreflect.Message
func (*WebhookInfo) Reset ¶ added in v0.3.11
func (x *WebhookInfo) Reset()
func (*WebhookInfo) String ¶ added in v0.3.11
func (x *WebhookInfo) String() string
type WithdrawMarketReply ¶
type WithdrawMarketReply struct {
// The serialized transaction
RawTx []byte `protobuf:"bytes,1,opt,name=raw_tx,json=rawTx,proto3" json:"raw_tx,omitempty"`
// contains filtered or unexported fields
}
func (*WithdrawMarketReply) Descriptor
deprecated
func (*WithdrawMarketReply) Descriptor() ([]byte, []int)
Deprecated: Use WithdrawMarketReply.ProtoReflect.Descriptor instead.
func (*WithdrawMarketReply) GetRawTx ¶
func (x *WithdrawMarketReply) GetRawTx() []byte
func (*WithdrawMarketReply) ProtoMessage ¶
func (*WithdrawMarketReply) ProtoMessage()
func (*WithdrawMarketReply) ProtoReflect ¶
func (x *WithdrawMarketReply) ProtoReflect() protoreflect.Message
func (*WithdrawMarketReply) Reset ¶
func (x *WithdrawMarketReply) Reset()
func (*WithdrawMarketReply) String ¶
func (x *WithdrawMarketReply) String() string
type WithdrawMarketRequest ¶
type WithdrawMarketRequest struct {
// Market from which funds need to be withdrawn
Market *types.Market `protobuf:"bytes,1,opt,name=market,proto3" json:"market,omitempty"`
// Amount for base and quote asset to be withdrawn
BalanceToWithdraw *types.Balance `protobuf:"bytes,2,opt,name=balance_to_withdraw,json=balanceToWithdraw,proto3" json:"balance_to_withdraw,omitempty"`
// The number of millisatoshis per byte that should be
// used when crafting this transaction.
MillisatPerByte int64 `protobuf:"varint,3,opt,name=millisat_per_byte,json=millisatPerByte,proto3" json:"millisat_per_byte,omitempty"`
// The address to send to the funds
Address string `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"`
// Optional: if true the transaction will be pushed to the network
Push bool `protobuf:"varint,5,opt,name=push,proto3" json:"push,omitempty"`
// contains filtered or unexported fields
}
func (*WithdrawMarketRequest) Descriptor
deprecated
func (*WithdrawMarketRequest) Descriptor() ([]byte, []int)
Deprecated: Use WithdrawMarketRequest.ProtoReflect.Descriptor instead.
func (*WithdrawMarketRequest) GetAddress ¶
func (x *WithdrawMarketRequest) GetAddress() string
func (*WithdrawMarketRequest) GetBalanceToWithdraw ¶
func (x *WithdrawMarketRequest) GetBalanceToWithdraw() *types.Balance
func (*WithdrawMarketRequest) GetMarket ¶
func (x *WithdrawMarketRequest) GetMarket() *types.Market
func (*WithdrawMarketRequest) GetMillisatPerByte ¶
func (x *WithdrawMarketRequest) GetMillisatPerByte() int64
func (*WithdrawMarketRequest) GetPush ¶
func (x *WithdrawMarketRequest) GetPush() bool
func (*WithdrawMarketRequest) ProtoMessage ¶
func (*WithdrawMarketRequest) ProtoMessage()
func (*WithdrawMarketRequest) ProtoReflect ¶
func (x *WithdrawMarketRequest) ProtoReflect() protoreflect.Message
func (*WithdrawMarketRequest) Reset ¶
func (x *WithdrawMarketRequest) Reset()
func (*WithdrawMarketRequest) String ¶
func (x *WithdrawMarketRequest) String() string