Documentation ¶
Overview ¶
Package nodeguard is a generated GoMock package.
Index ¶
- Constants
- Variables
- func RegisterNodeGuardServiceServer(s grpc.ServiceRegistrar, srv NodeGuardServiceServer)
- type AccountKeySettings
- func (*AccountKeySettings) Descriptor() ([]byte, []int)deprecated
- func (x *AccountKeySettings) GetXpub() string
- func (*AccountKeySettings) ProtoMessage()
- func (x *AccountKeySettings) ProtoReflect() protoreflect.Message
- func (x *AccountKeySettings) Reset()
- func (x *AccountKeySettings) String() string
- type AddLiquidityRuleRequest
- func (*AddLiquidityRuleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddLiquidityRuleRequest) GetChannelId() int32
- func (x *AddLiquidityRuleRequest) GetIsReverseSwapWalletRule() bool
- func (x *AddLiquidityRuleRequest) GetMinimumLocalBalance() float64
- func (x *AddLiquidityRuleRequest) GetMinimumRemoteBalance() float64
- func (x *AddLiquidityRuleRequest) GetRebalanceTarget() float64
- func (x *AddLiquidityRuleRequest) GetReverseSwapAddress() string
- func (x *AddLiquidityRuleRequest) GetReverseSwapWalletId() int32
- func (x *AddLiquidityRuleRequest) GetSwapWalletId() int32
- func (*AddLiquidityRuleRequest) ProtoMessage()
- func (x *AddLiquidityRuleRequest) ProtoReflect() protoreflect.Message
- func (x *AddLiquidityRuleRequest) Reset()
- func (x *AddLiquidityRuleRequest) String() string
- type AddLiquidityRuleResponse
- func (*AddLiquidityRuleResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AddLiquidityRuleResponse) GetRuleId() int32
- func (*AddLiquidityRuleResponse) ProtoMessage()
- func (x *AddLiquidityRuleResponse) ProtoReflect() protoreflect.Message
- func (x *AddLiquidityRuleResponse) Reset()
- func (x *AddLiquidityRuleResponse) String() string
- type AddNodeRequest
- func (*AddNodeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddNodeRequest) GetAutosweepEnabled() bool
- func (x *AddNodeRequest) GetChannelAdminMacaroon() string
- func (x *AddNodeRequest) GetDescription() string
- func (x *AddNodeRequest) GetEndpoint() string
- func (x *AddNodeRequest) GetName() string
- func (x *AddNodeRequest) GetPubKey() string
- func (x *AddNodeRequest) GetReturningFundsWalletId() int32
- func (*AddNodeRequest) ProtoMessage()
- func (x *AddNodeRequest) ProtoReflect() protoreflect.Message
- func (x *AddNodeRequest) Reset()
- func (x *AddNodeRequest) String() string
- type AddNodeResponse
- type CHANNEL_OPERATION_STATUS
- func (CHANNEL_OPERATION_STATUS) Descriptor() protoreflect.EnumDescriptor
- func (x CHANNEL_OPERATION_STATUS) Enum() *CHANNEL_OPERATION_STATUS
- func (CHANNEL_OPERATION_STATUS) EnumDescriptor() ([]byte, []int)deprecated
- func (x CHANNEL_OPERATION_STATUS) Number() protoreflect.EnumNumber
- func (x CHANNEL_OPERATION_STATUS) String() string
- func (CHANNEL_OPERATION_STATUS) Type() protoreflect.EnumType
- type CHANNEL_OPERATION_TYPE
- func (CHANNEL_OPERATION_TYPE) Descriptor() protoreflect.EnumDescriptor
- func (x CHANNEL_OPERATION_TYPE) Enum() *CHANNEL_OPERATION_TYPE
- func (CHANNEL_OPERATION_TYPE) EnumDescriptor() ([]byte, []int)deprecated
- func (x CHANNEL_OPERATION_TYPE) Number() protoreflect.EnumNumber
- func (x CHANNEL_OPERATION_TYPE) String() string
- func (CHANNEL_OPERATION_TYPE) Type() protoreflect.EnumType
- type CHANNEL_STATUS
- func (CHANNEL_STATUS) Descriptor() protoreflect.EnumDescriptor
- func (x CHANNEL_STATUS) Enum() *CHANNEL_STATUS
- func (CHANNEL_STATUS) EnumDescriptor() ([]byte, []int)deprecated
- func (x CHANNEL_STATUS) Number() protoreflect.EnumNumber
- func (x CHANNEL_STATUS) String() string
- func (CHANNEL_STATUS) Type() protoreflect.EnumType
- type COIN_SELECTION_STRATEGY
- func (COIN_SELECTION_STRATEGY) Descriptor() protoreflect.EnumDescriptor
- func (x COIN_SELECTION_STRATEGY) Enum() *COIN_SELECTION_STRATEGY
- func (COIN_SELECTION_STRATEGY) EnumDescriptor() ([]byte, []int)deprecated
- func (x COIN_SELECTION_STRATEGY) Number() protoreflect.EnumNumber
- func (x COIN_SELECTION_STRATEGY) String() string
- func (COIN_SELECTION_STRATEGY) Type() protoreflect.EnumType
- type CloseChannelRequest
- func (*CloseChannelRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CloseChannelRequest) GetChannelId() uint64
- func (x *CloseChannelRequest) GetForce() bool
- func (*CloseChannelRequest) ProtoMessage()
- func (x *CloseChannelRequest) ProtoReflect() protoreflect.Message
- func (x *CloseChannelRequest) Reset()
- func (x *CloseChannelRequest) String() string
- type CloseChannelResponse
- type FEES_TYPE
- type GetAvailableUtxosRequest
- func (*GetAvailableUtxosRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetAvailableUtxosRequest) GetAmount() int64
- func (x *GetAvailableUtxosRequest) GetClosestTo() int64
- func (x *GetAvailableUtxosRequest) GetLimit() int32
- func (x *GetAvailableUtxosRequest) GetStrategy() COIN_SELECTION_STRATEGY
- func (x *GetAvailableUtxosRequest) GetWalletId() int32
- func (*GetAvailableUtxosRequest) ProtoMessage()
- func (x *GetAvailableUtxosRequest) ProtoReflect() protoreflect.Message
- func (x *GetAvailableUtxosRequest) Reset()
- func (x *GetAvailableUtxosRequest) String() string
- type GetAvailableUtxosResponse
- func (*GetAvailableUtxosResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAvailableUtxosResponse) GetConfirmed() []*Utxo
- func (x *GetAvailableUtxosResponse) GetUnconfirmed() []*Utxo
- func (*GetAvailableUtxosResponse) ProtoMessage()
- func (x *GetAvailableUtxosResponse) ProtoReflect() protoreflect.Message
- func (x *GetAvailableUtxosResponse) Reset()
- func (x *GetAvailableUtxosResponse) String() string
- type GetAvailableWalletsRequest
- func (*GetAvailableWalletsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetAvailableWalletsRequest) GetId() []int32
- func (x *GetAvailableWalletsRequest) GetWalletType() WALLET_TYPE
- func (*GetAvailableWalletsRequest) ProtoMessage()
- func (x *GetAvailableWalletsRequest) ProtoReflect() protoreflect.Message
- func (x *GetAvailableWalletsRequest) Reset()
- func (x *GetAvailableWalletsRequest) String() string
- type GetAvailableWalletsResponse
- func (*GetAvailableWalletsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAvailableWalletsResponse) GetWallets() []*Wallet
- func (*GetAvailableWalletsResponse) ProtoMessage()
- func (x *GetAvailableWalletsResponse) ProtoReflect() protoreflect.Message
- func (x *GetAvailableWalletsResponse) Reset()
- func (x *GetAvailableWalletsResponse) String() string
- type GetChannelOperationRequestRequest
- func (*GetChannelOperationRequestRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetChannelOperationRequestRequest) GetChannelOperationRequestId() int32
- func (*GetChannelOperationRequestRequest) ProtoMessage()
- func (x *GetChannelOperationRequestRequest) ProtoReflect() protoreflect.Message
- func (x *GetChannelOperationRequestRequest) Reset()
- func (x *GetChannelOperationRequestRequest) String() string
- type GetChannelOperationRequestResponse
- func (*GetChannelOperationRequestResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetChannelOperationRequestResponse) GetChannelId() int64
- func (x *GetChannelOperationRequestResponse) GetClosingReason() string
- func (x *GetChannelOperationRequestResponse) GetDescription() string
- func (x *GetChannelOperationRequestResponse) GetDestNodeId() int32
- func (x *GetChannelOperationRequestResponse) GetFeeRate() float64
- func (x *GetChannelOperationRequestResponse) GetJobId() string
- func (x *GetChannelOperationRequestResponse) GetPrivate() bool
- func (x *GetChannelOperationRequestResponse) GetSatsAmount() int64
- func (x *GetChannelOperationRequestResponse) GetSourceNodeId() int32
- func (x *GetChannelOperationRequestResponse) GetStatus() CHANNEL_OPERATION_STATUS
- func (x *GetChannelOperationRequestResponse) GetTxId() string
- func (x *GetChannelOperationRequestResponse) GetType() CHANNEL_OPERATION_TYPE
- func (x *GetChannelOperationRequestResponse) GetWalletId() int32
- func (*GetChannelOperationRequestResponse) ProtoMessage()
- func (x *GetChannelOperationRequestResponse) ProtoReflect() protoreflect.Message
- func (x *GetChannelOperationRequestResponse) Reset()
- func (x *GetChannelOperationRequestResponse) String() string
- type GetChannelRequest
- type GetChannelResponse
- func (*GetChannelResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetChannelResponse) GetBtcCloseAddress() string
- func (x *GetChannelResponse) GetChanId() uint64
- func (x *GetChannelResponse) GetCreatedByNodeguard() bool
- func (x *GetChannelResponse) GetFundingTx() string
- func (x *GetChannelResponse) GetIsAutomatedLiquidityEnabled() bool
- func (x *GetChannelResponse) GetIsPrivate() bool
- func (x *GetChannelResponse) GetOutputIndex() uint32
- func (x *GetChannelResponse) GetSatsAmount() int64
- func (x *GetChannelResponse) GetStatus() CHANNEL_STATUS
- func (*GetChannelResponse) ProtoMessage()
- func (x *GetChannelResponse) ProtoReflect() protoreflect.Message
- func (x *GetChannelResponse) Reset()
- func (x *GetChannelResponse) String() string
- type GetLiquidityRulesRequest
- func (*GetLiquidityRulesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetLiquidityRulesRequest) GetNodePubkey() string
- func (*GetLiquidityRulesRequest) ProtoMessage()
- func (x *GetLiquidityRulesRequest) ProtoReflect() protoreflect.Message
- func (x *GetLiquidityRulesRequest) Reset()
- func (x *GetLiquidityRulesRequest) String() string
- type GetLiquidityRulesResponse
- func (*GetLiquidityRulesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetLiquidityRulesResponse) GetLiquidityRules() []*LiquidityRule
- func (*GetLiquidityRulesResponse) ProtoMessage()
- func (x *GetLiquidityRulesResponse) ProtoReflect() protoreflect.Message
- func (x *GetLiquidityRulesResponse) Reset()
- func (x *GetLiquidityRulesResponse) String() string
- type GetNewWalletAddressRequest
- func (*GetNewWalletAddressRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetNewWalletAddressRequest) GetWalletId() int32
- func (*GetNewWalletAddressRequest) ProtoMessage()
- func (x *GetNewWalletAddressRequest) ProtoReflect() protoreflect.Message
- func (x *GetNewWalletAddressRequest) Reset()
- func (x *GetNewWalletAddressRequest) String() string
- type GetNewWalletAddressResponse
- func (*GetNewWalletAddressResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetNewWalletAddressResponse) GetAddress() string
- func (*GetNewWalletAddressResponse) ProtoMessage()
- func (x *GetNewWalletAddressResponse) ProtoReflect() protoreflect.Message
- func (x *GetNewWalletAddressResponse) Reset()
- func (x *GetNewWalletAddressResponse) String() string
- type GetNodesRequest
- type GetNodesResponse
- type GetWithdrawalsRequestStatusRequest
- func (*GetWithdrawalsRequestStatusRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetWithdrawalsRequestStatusRequest) GetRequestIds() []int32
- func (*GetWithdrawalsRequestStatusRequest) ProtoMessage()
- func (x *GetWithdrawalsRequestStatusRequest) ProtoReflect() protoreflect.Message
- func (x *GetWithdrawalsRequestStatusRequest) Reset()
- func (x *GetWithdrawalsRequestStatusRequest) String() string
- type GetWithdrawalsRequestStatusResponse
- func (*GetWithdrawalsRequestStatusResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetWithdrawalsRequestStatusResponse) GetWithdrawalRequests() []*WithdrawalRequest
- func (*GetWithdrawalsRequestStatusResponse) ProtoMessage()
- func (x *GetWithdrawalsRequestStatusResponse) ProtoReflect() protoreflect.Message
- func (x *GetWithdrawalsRequestStatusResponse) Reset()
- func (x *GetWithdrawalsRequestStatusResponse) String() string
- type LiquidityRule
- func (*LiquidityRule) Descriptor() ([]byte, []int)deprecated
- func (x *LiquidityRule) GetChannelId() uint64
- func (x *LiquidityRule) GetIsReverseSwapWalletRule() bool
- func (x *LiquidityRule) GetMinimumLocalBalance() float32
- func (x *LiquidityRule) GetMinimumRemoteBalance() float32
- func (x *LiquidityRule) GetNodePubkey() string
- func (x *LiquidityRule) GetRebalanceTarget() float32
- func (x *LiquidityRule) GetRemoteNodePubkey() string
- func (x *LiquidityRule) GetReverseSwapAddress() string
- func (x *LiquidityRule) GetReverseSwapWalletId() int32
- func (x *LiquidityRule) GetSwapWalletId() int32
- func (*LiquidityRule) ProtoMessage()
- func (x *LiquidityRule) ProtoReflect() protoreflect.Message
- func (x *LiquidityRule) Reset()
- func (x *LiquidityRule) String() string
- type MockNodeGuardServiceClient
- func (m *MockNodeGuardServiceClient) AddLiquidityRule(ctx context.Context, in *AddLiquidityRuleRequest, opts ...grpc.CallOption) (*AddLiquidityRuleResponse, error)
- func (m *MockNodeGuardServiceClient) AddNode(ctx context.Context, in *AddNodeRequest, opts ...grpc.CallOption) (*AddNodeResponse, error)
- func (m *MockNodeGuardServiceClient) CloseChannel(ctx context.Context, in *CloseChannelRequest, opts ...grpc.CallOption) (*CloseChannelResponse, error)
- func (m *MockNodeGuardServiceClient) EXPECT() *MockNodeGuardServiceClientMockRecorder
- func (m *MockNodeGuardServiceClient) GetAvailableUtxos(ctx context.Context, in *GetAvailableUtxosRequest, opts ...grpc.CallOption) (*GetAvailableUtxosResponse, error)
- func (m *MockNodeGuardServiceClient) GetAvailableWallets(ctx context.Context, in *GetAvailableWalletsRequest, opts ...grpc.CallOption) (*GetAvailableWalletsResponse, error)
- func (m *MockNodeGuardServiceClient) GetChannel(ctx context.Context, in *GetChannelRequest, opts ...grpc.CallOption) (*GetChannelResponse, error)
- func (m *MockNodeGuardServiceClient) GetChannelOperationRequest(ctx context.Context, in *GetChannelOperationRequestRequest, ...) (*GetChannelOperationRequestResponse, error)
- func (m *MockNodeGuardServiceClient) GetLiquidityRules(ctx context.Context, in *GetLiquidityRulesRequest, opts ...grpc.CallOption) (*GetLiquidityRulesResponse, error)
- func (m *MockNodeGuardServiceClient) GetNewWalletAddress(ctx context.Context, in *GetNewWalletAddressRequest, opts ...grpc.CallOption) (*GetNewWalletAddressResponse, error)
- func (m *MockNodeGuardServiceClient) GetNodes(ctx context.Context, in *GetNodesRequest, opts ...grpc.CallOption) (*GetNodesResponse, error)
- func (m *MockNodeGuardServiceClient) GetWithdrawalsRequestStatus(ctx context.Context, in *GetWithdrawalsRequestStatusRequest, ...) (*GetWithdrawalsRequestStatusResponse, error)
- func (m *MockNodeGuardServiceClient) OpenChannel(ctx context.Context, in *OpenChannelRequest, opts ...grpc.CallOption) (*OpenChannelResponse, error)
- func (m *MockNodeGuardServiceClient) RequestWithdrawal(ctx context.Context, in *RequestWithdrawalRequest, opts ...grpc.CallOption) (*RequestWithdrawalResponse, error)
- type MockNodeGuardServiceClientMockRecorder
- func (mr *MockNodeGuardServiceClientMockRecorder) AddLiquidityRule(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockNodeGuardServiceClientMockRecorder) AddNode(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockNodeGuardServiceClientMockRecorder) CloseChannel(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockNodeGuardServiceClientMockRecorder) GetAvailableUtxos(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockNodeGuardServiceClientMockRecorder) GetAvailableWallets(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockNodeGuardServiceClientMockRecorder) GetChannel(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockNodeGuardServiceClientMockRecorder) GetChannelOperationRequest(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockNodeGuardServiceClientMockRecorder) GetLiquidityRules(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockNodeGuardServiceClientMockRecorder) GetNewWalletAddress(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockNodeGuardServiceClientMockRecorder) GetNodes(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockNodeGuardServiceClientMockRecorder) GetWithdrawalsRequestStatus(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockNodeGuardServiceClientMockRecorder) OpenChannel(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockNodeGuardServiceClientMockRecorder) RequestWithdrawal(ctx, in any, opts ...any) *gomock.Call
- type MockNodeGuardServiceServer
- func (m *MockNodeGuardServiceServer) AddLiquidityRule(arg0 context.Context, arg1 *AddLiquidityRuleRequest) (*AddLiquidityRuleResponse, error)
- func (m *MockNodeGuardServiceServer) AddNode(arg0 context.Context, arg1 *AddNodeRequest) (*AddNodeResponse, error)
- func (m *MockNodeGuardServiceServer) CloseChannel(arg0 context.Context, arg1 *CloseChannelRequest) (*CloseChannelResponse, error)
- func (m *MockNodeGuardServiceServer) EXPECT() *MockNodeGuardServiceServerMockRecorder
- func (m *MockNodeGuardServiceServer) GetAvailableUtxos(arg0 context.Context, arg1 *GetAvailableUtxosRequest) (*GetAvailableUtxosResponse, error)
- func (m *MockNodeGuardServiceServer) GetAvailableWallets(arg0 context.Context, arg1 *GetAvailableWalletsRequest) (*GetAvailableWalletsResponse, error)
- func (m *MockNodeGuardServiceServer) GetChannel(arg0 context.Context, arg1 *GetChannelRequest) (*GetChannelResponse, error)
- func (m *MockNodeGuardServiceServer) GetChannelOperationRequest(arg0 context.Context, arg1 *GetChannelOperationRequestRequest) (*GetChannelOperationRequestResponse, error)
- func (m *MockNodeGuardServiceServer) GetLiquidityRules(arg0 context.Context, arg1 *GetLiquidityRulesRequest) (*GetLiquidityRulesResponse, error)
- func (m *MockNodeGuardServiceServer) GetNewWalletAddress(arg0 context.Context, arg1 *GetNewWalletAddressRequest) (*GetNewWalletAddressResponse, error)
- func (m *MockNodeGuardServiceServer) GetNodes(arg0 context.Context, arg1 *GetNodesRequest) (*GetNodesResponse, error)
- func (m *MockNodeGuardServiceServer) GetWithdrawalsRequestStatus(arg0 context.Context, arg1 *GetWithdrawalsRequestStatusRequest) (*GetWithdrawalsRequestStatusResponse, error)
- func (m *MockNodeGuardServiceServer) OpenChannel(arg0 context.Context, arg1 *OpenChannelRequest) (*OpenChannelResponse, error)
- func (m *MockNodeGuardServiceServer) RequestWithdrawal(arg0 context.Context, arg1 *RequestWithdrawalRequest) (*RequestWithdrawalResponse, error)
- type MockNodeGuardServiceServerMockRecorder
- func (mr *MockNodeGuardServiceServerMockRecorder) AddLiquidityRule(arg0, arg1 any) *gomock.Call
- func (mr *MockNodeGuardServiceServerMockRecorder) AddNode(arg0, arg1 any) *gomock.Call
- func (mr *MockNodeGuardServiceServerMockRecorder) CloseChannel(arg0, arg1 any) *gomock.Call
- func (mr *MockNodeGuardServiceServerMockRecorder) GetAvailableUtxos(arg0, arg1 any) *gomock.Call
- func (mr *MockNodeGuardServiceServerMockRecorder) GetAvailableWallets(arg0, arg1 any) *gomock.Call
- func (mr *MockNodeGuardServiceServerMockRecorder) GetChannel(arg0, arg1 any) *gomock.Call
- func (mr *MockNodeGuardServiceServerMockRecorder) GetChannelOperationRequest(arg0, arg1 any) *gomock.Call
- func (mr *MockNodeGuardServiceServerMockRecorder) GetLiquidityRules(arg0, arg1 any) *gomock.Call
- func (mr *MockNodeGuardServiceServerMockRecorder) GetNewWalletAddress(arg0, arg1 any) *gomock.Call
- func (mr *MockNodeGuardServiceServerMockRecorder) GetNodes(arg0, arg1 any) *gomock.Call
- func (mr *MockNodeGuardServiceServerMockRecorder) GetWithdrawalsRequestStatus(arg0, arg1 any) *gomock.Call
- func (mr *MockNodeGuardServiceServerMockRecorder) OpenChannel(arg0, arg1 any) *gomock.Call
- func (mr *MockNodeGuardServiceServerMockRecorder) RequestWithdrawal(arg0, arg1 any) *gomock.Call
- type MockUnsafeNodeGuardServiceServer
- type MockUnsafeNodeGuardServiceServerMockRecorder
- type Node
- func (*Node) Descriptor() ([]byte, []int)deprecated
- func (x *Node) GetAutosweepEnabled() bool
- func (x *Node) GetDescription() string
- func (x *Node) GetEndpoint() string
- func (x *Node) GetId() int32
- func (x *Node) GetName() string
- func (x *Node) GetPubKey() string
- func (x *Node) GetReturningFundsWalletId() int32
- func (*Node) ProtoMessage()
- func (x *Node) ProtoReflect() protoreflect.Message
- func (x *Node) Reset()
- func (x *Node) String() string
- type NodeGuardServiceClient
- type NodeGuardServiceServer
- type OpenChannelRequest
- func (*OpenChannelRequest) Descriptor() ([]byte, []int)deprecated
- func (x *OpenChannelRequest) GetChangeless() bool
- func (x *OpenChannelRequest) GetCustomFeeRate() int32
- func (x *OpenChannelRequest) GetDestinationPubKey() string
- func (x *OpenChannelRequest) GetMempoolFeeRate() FEES_TYPE
- func (x *OpenChannelRequest) GetPrivate() bool
- func (x *OpenChannelRequest) GetSatsAmount() int64
- func (x *OpenChannelRequest) GetSourcePubKey() string
- func (x *OpenChannelRequest) GetUtxosOutpoints() []string
- func (x *OpenChannelRequest) GetWalletId() int32
- func (*OpenChannelRequest) ProtoMessage()
- func (x *OpenChannelRequest) ProtoReflect() protoreflect.Message
- func (x *OpenChannelRequest) Reset()
- func (x *OpenChannelRequest) String() string
- type OpenChannelResponse
- func (*OpenChannelResponse) Descriptor() ([]byte, []int)deprecated
- func (x *OpenChannelResponse) GetChannelOperationRequestId() int32
- func (*OpenChannelResponse) ProtoMessage()
- func (x *OpenChannelResponse) ProtoReflect() protoreflect.Message
- func (x *OpenChannelResponse) Reset()
- func (x *OpenChannelResponse) String() string
- type RequestWithdrawalRequest
- func (*RequestWithdrawalRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RequestWithdrawalRequest) GetAddress() string
- func (x *RequestWithdrawalRequest) GetAmount() int64
- func (x *RequestWithdrawalRequest) GetChangeless() bool
- func (x *RequestWithdrawalRequest) GetCustomFeeRate() int32
- func (x *RequestWithdrawalRequest) GetDescription() string
- func (x *RequestWithdrawalRequest) GetMempoolFeeRate() FEES_TYPE
- func (x *RequestWithdrawalRequest) GetRequestMetadata() string
- func (x *RequestWithdrawalRequest) GetUtxosOutpoints() []string
- func (x *RequestWithdrawalRequest) GetWalletId() int32
- func (*RequestWithdrawalRequest) ProtoMessage()
- func (x *RequestWithdrawalRequest) ProtoReflect() protoreflect.Message
- func (x *RequestWithdrawalRequest) Reset()
- func (x *RequestWithdrawalRequest) String() string
- type RequestWithdrawalResponse
- func (*RequestWithdrawalResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RequestWithdrawalResponse) GetIsHotWallet() bool
- func (x *RequestWithdrawalResponse) GetRequestId() int32
- func (x *RequestWithdrawalResponse) GetTxid() string
- func (*RequestWithdrawalResponse) ProtoMessage()
- func (x *RequestWithdrawalResponse) ProtoReflect() protoreflect.Message
- func (x *RequestWithdrawalResponse) Reset()
- func (x *RequestWithdrawalResponse) String() string
- type UnimplementedNodeGuardServiceServer
- func (UnimplementedNodeGuardServiceServer) AddLiquidityRule(context.Context, *AddLiquidityRuleRequest) (*AddLiquidityRuleResponse, error)
- func (UnimplementedNodeGuardServiceServer) AddNode(context.Context, *AddNodeRequest) (*AddNodeResponse, error)
- func (UnimplementedNodeGuardServiceServer) CloseChannel(context.Context, *CloseChannelRequest) (*CloseChannelResponse, error)
- func (UnimplementedNodeGuardServiceServer) GetAvailableUtxos(context.Context, *GetAvailableUtxosRequest) (*GetAvailableUtxosResponse, error)
- func (UnimplementedNodeGuardServiceServer) GetAvailableWallets(context.Context, *GetAvailableWalletsRequest) (*GetAvailableWalletsResponse, error)
- func (UnimplementedNodeGuardServiceServer) GetChannel(context.Context, *GetChannelRequest) (*GetChannelResponse, error)
- func (UnimplementedNodeGuardServiceServer) GetChannelOperationRequest(context.Context, *GetChannelOperationRequestRequest) (*GetChannelOperationRequestResponse, error)
- func (UnimplementedNodeGuardServiceServer) GetLiquidityRules(context.Context, *GetLiquidityRulesRequest) (*GetLiquidityRulesResponse, error)
- func (UnimplementedNodeGuardServiceServer) GetNewWalletAddress(context.Context, *GetNewWalletAddressRequest) (*GetNewWalletAddressResponse, error)
- func (UnimplementedNodeGuardServiceServer) GetNodes(context.Context, *GetNodesRequest) (*GetNodesResponse, error)
- func (UnimplementedNodeGuardServiceServer) GetWithdrawalsRequestStatus(context.Context, *GetWithdrawalsRequestStatusRequest) (*GetWithdrawalsRequestStatusResponse, error)
- func (UnimplementedNodeGuardServiceServer) OpenChannel(context.Context, *OpenChannelRequest) (*OpenChannelResponse, error)
- func (UnimplementedNodeGuardServiceServer) RequestWithdrawal(context.Context, *RequestWithdrawalRequest) (*RequestWithdrawalResponse, error)
- type UnsafeNodeGuardServiceServer
- type Utxo
- type WALLET_TYPE
- func (WALLET_TYPE) Descriptor() protoreflect.EnumDescriptor
- func (x WALLET_TYPE) Enum() *WALLET_TYPE
- func (WALLET_TYPE) EnumDescriptor() ([]byte, []int)deprecated
- func (x WALLET_TYPE) Number() protoreflect.EnumNumber
- func (x WALLET_TYPE) String() string
- func (WALLET_TYPE) Type() protoreflect.EnumType
- type WITHDRAWAL_REQUEST_STATUS
- func (WITHDRAWAL_REQUEST_STATUS) Descriptor() protoreflect.EnumDescriptor
- func (x WITHDRAWAL_REQUEST_STATUS) Enum() *WITHDRAWAL_REQUEST_STATUS
- func (WITHDRAWAL_REQUEST_STATUS) EnumDescriptor() ([]byte, []int)deprecated
- func (x WITHDRAWAL_REQUEST_STATUS) Number() protoreflect.EnumNumber
- func (x WITHDRAWAL_REQUEST_STATUS) String() string
- func (WITHDRAWAL_REQUEST_STATUS) Type() protoreflect.EnumType
- type Wallet
- func (*Wallet) Descriptor() ([]byte, []int)deprecated
- func (x *Wallet) GetAccountKeySettings() []*AccountKeySettings
- func (x *Wallet) GetId() int32
- func (x *Wallet) GetIsHotWallet() bool
- func (x *Wallet) GetName() string
- func (x *Wallet) GetThreshold() int32
- func (*Wallet) ProtoMessage()
- func (x *Wallet) ProtoReflect() protoreflect.Message
- func (x *Wallet) Reset()
- func (x *Wallet) String() string
- type WithdrawalRequest
- func (*WithdrawalRequest) Descriptor() ([]byte, []int)deprecated
- func (x *WithdrawalRequest) GetRejectOrCancelReason() string
- func (x *WithdrawalRequest) GetRequestId() int32
- func (x *WithdrawalRequest) GetStatus() WITHDRAWAL_REQUEST_STATUS
- func (*WithdrawalRequest) ProtoMessage()
- func (x *WithdrawalRequest) ProtoReflect() protoreflect.Message
- func (x *WithdrawalRequest) Reset()
- func (x *WithdrawalRequest) String() string
Constants ¶
const ( NodeGuardService_GetLiquidityRules_FullMethodName = "/nodeguard.NodeGuardService/GetLiquidityRules" NodeGuardService_GetNewWalletAddress_FullMethodName = "/nodeguard.NodeGuardService/GetNewWalletAddress" NodeGuardService_RequestWithdrawal_FullMethodName = "/nodeguard.NodeGuardService/RequestWithdrawal" NodeGuardService_AddNode_FullMethodName = "/nodeguard.NodeGuardService/AddNode" NodeGuardService_GetNodes_FullMethodName = "/nodeguard.NodeGuardService/GetNodes" NodeGuardService_GetAvailableWallets_FullMethodName = "/nodeguard.NodeGuardService/GetAvailableWallets" NodeGuardService_OpenChannel_FullMethodName = "/nodeguard.NodeGuardService/OpenChannel" NodeGuardService_CloseChannel_FullMethodName = "/nodeguard.NodeGuardService/CloseChannel" NodeGuardService_GetChannelOperationRequest_FullMethodName = "/nodeguard.NodeGuardService/GetChannelOperationRequest" NodeGuardService_AddLiquidityRule_FullMethodName = "/nodeguard.NodeGuardService/AddLiquidityRule" NodeGuardService_GetAvailableUtxos_FullMethodName = "/nodeguard.NodeGuardService/GetAvailableUtxos" NodeGuardService_GetWithdrawalsRequestStatus_FullMethodName = "/nodeguard.NodeGuardService/GetWithdrawalsRequestStatus" NodeGuardService_GetChannel_FullMethodName = "/nodeguard.NodeGuardService/GetChannel" )
Variables ¶
var ( WALLET_TYPE_name = map[int32]string{ 0: "BOTH", 1: "HOT", 2: "COLD", } WALLET_TYPE_value = map[string]int32{ "BOTH": 0, "HOT": 1, "COLD": 2, } )
Enum value maps for WALLET_TYPE.
var ( FEES_TYPE_name = map[int32]string{ 0: "ECONOMY_FEE", 1: "FASTEST_FEE", 2: "HOUR_FEE", 3: "HALF_HOUR_FEE", 4: "CUSTOM_FEE", } FEES_TYPE_value = map[string]int32{ "ECONOMY_FEE": 0, "FASTEST_FEE": 1, "HOUR_FEE": 2, "HALF_HOUR_FEE": 3, "CUSTOM_FEE": 4, } )
Enum value maps for FEES_TYPE.
var ( CHANNEL_OPERATION_STATUS_name = map[int32]string{ 0: "APPROVED", 1: "CANCELLED", 2: "REJECTED", 3: "PENDING", 4: "PSBT_SIGNATURES_PENDING", 5: "ONCHAIN_CONFIRMATION_PENDING", 6: "ONCHAIN_CONFIRMED", 7: "FAILED", 8: "FINALIZING_PSBT", } CHANNEL_OPERATION_STATUS_value = map[string]int32{ "APPROVED": 0, "CANCELLED": 1, "REJECTED": 2, "PENDING": 3, "PSBT_SIGNATURES_PENDING": 4, "ONCHAIN_CONFIRMATION_PENDING": 5, "ONCHAIN_CONFIRMED": 6, "FAILED": 7, "FINALIZING_PSBT": 8, } )
Enum value maps for CHANNEL_OPERATION_STATUS.
var ( CHANNEL_OPERATION_TYPE_name = map[int32]string{ 0: "OPEN_CHANNEL", 1: "CLOSE_CHANNEL", } CHANNEL_OPERATION_TYPE_value = map[string]int32{ "OPEN_CHANNEL": 0, "CLOSE_CHANNEL": 1, } )
Enum value maps for CHANNEL_OPERATION_TYPE.
var ( COIN_SELECTION_STRATEGY_name = map[int32]string{ 0: "SMALLEST_FIRST", 1: "BIGGEST_FIRST", 2: "CLOSEST_TO_TARGET_FIRST", 3: "UP_TO_AMOUNT", } COIN_SELECTION_STRATEGY_value = map[string]int32{ "SMALLEST_FIRST": 0, "BIGGEST_FIRST": 1, "CLOSEST_TO_TARGET_FIRST": 2, "UP_TO_AMOUNT": 3, } )
Enum value maps for COIN_SELECTION_STRATEGY.
var ( WITHDRAWAL_REQUEST_STATUS_name = map[int32]string{ 0: "WITHDRAWAL_SETTLED", 1: "WITHDRAWAL_PENDING_APPROVAL", 2: "WITHDRAWAL_CANCELLED", 3: "WITHDRAWAL_REJECTED", 4: "WITHDRAWAL_PENDING_CONFIRMATION", 5: "WITHDRAWAL_FAILED", } WITHDRAWAL_REQUEST_STATUS_value = map[string]int32{ "WITHDRAWAL_SETTLED": 0, "WITHDRAWAL_PENDING_APPROVAL": 1, "WITHDRAWAL_CANCELLED": 2, "WITHDRAWAL_REJECTED": 3, "WITHDRAWAL_PENDING_CONFIRMATION": 4, "WITHDRAWAL_FAILED": 5, } )
Enum value maps for WITHDRAWAL_REQUEST_STATUS.
var ( CHANNEL_STATUS_name = map[int32]string{ 0: "OPEN", 1: "CLOSED", } CHANNEL_STATUS_value = map[string]int32{ "OPEN": 0, "CLOSED": 1, } )
Enum value maps for CHANNEL_STATUS.
var File_nodeguard_proto protoreflect.FileDescriptor
var NodeGuardService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "nodeguard.NodeGuardService", HandlerType: (*NodeGuardServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetLiquidityRules", Handler: _NodeGuardService_GetLiquidityRules_Handler, }, { MethodName: "GetNewWalletAddress", Handler: _NodeGuardService_GetNewWalletAddress_Handler, }, { MethodName: "RequestWithdrawal", Handler: _NodeGuardService_RequestWithdrawal_Handler, }, { MethodName: "AddNode", Handler: _NodeGuardService_AddNode_Handler, }, { MethodName: "GetNodes", Handler: _NodeGuardService_GetNodes_Handler, }, { MethodName: "GetAvailableWallets", Handler: _NodeGuardService_GetAvailableWallets_Handler, }, { MethodName: "OpenChannel", Handler: _NodeGuardService_OpenChannel_Handler, }, { MethodName: "CloseChannel", Handler: _NodeGuardService_CloseChannel_Handler, }, { MethodName: "GetChannelOperationRequest", Handler: _NodeGuardService_GetChannelOperationRequest_Handler, }, { MethodName: "AddLiquidityRule", Handler: _NodeGuardService_AddLiquidityRule_Handler, }, { MethodName: "GetAvailableUtxos", Handler: _NodeGuardService_GetAvailableUtxos_Handler, }, { MethodName: "GetWithdrawalsRequestStatus", Handler: _NodeGuardService_GetWithdrawalsRequestStatus_Handler, }, { MethodName: "GetChannel", Handler: _NodeGuardService_GetChannel_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "nodeguard.proto", }
NodeGuardService_ServiceDesc is the grpc.ServiceDesc for NodeGuardService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterNodeGuardServiceServer ¶
func RegisterNodeGuardServiceServer(s grpc.ServiceRegistrar, srv NodeGuardServiceServer)
Types ¶
type AccountKeySettings ¶
type AccountKeySettings struct { Xpub string `protobuf:"bytes,1,opt,name=xpub,proto3" json:"xpub,omitempty"` // contains filtered or unexported fields }
func (*AccountKeySettings) Descriptor
deprecated
func (*AccountKeySettings) Descriptor() ([]byte, []int)
Deprecated: Use AccountKeySettings.ProtoReflect.Descriptor instead.
func (*AccountKeySettings) GetXpub ¶
func (x *AccountKeySettings) GetXpub() string
func (*AccountKeySettings) ProtoMessage ¶
func (*AccountKeySettings) ProtoMessage()
func (*AccountKeySettings) ProtoReflect ¶
func (x *AccountKeySettings) ProtoReflect() protoreflect.Message
func (*AccountKeySettings) Reset ¶
func (x *AccountKeySettings) Reset()
func (*AccountKeySettings) String ¶
func (x *AccountKeySettings) String() string
type AddLiquidityRuleRequest ¶
type AddLiquidityRuleRequest struct { // Channel ID from NGs database ChannelId int32 `protobuf:"varint,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` // Wallet ID for swaps as stored in the NG's database SwapWalletId int32 `protobuf:"varint,2,opt,name=swap_wallet_id,json=swapWalletId,proto3" json:"swap_wallet_id,omitempty"` // Minimum local balance MinimumLocalBalance *float64 `` /* 128-byte string literal not displayed */ // Minimum remote balance MinimumRemoteBalance *float64 `` /* 131-byte string literal not displayed */ // Rebalance target RebalanceTarget *float64 `protobuf:"fixed64,5,opt,name=rebalance_target,json=rebalanceTarget,proto3,oneof" json:"rebalance_target,omitempty"` // Whether this rule is for a wallet IsReverseSwapWalletRule bool `` /* 137-byte string literal not displayed */ // Address to send the reverse swaps funds to ReverseSwapAddress *string `protobuf:"bytes,8,opt,name=reverse_swap_address,json=reverseSwapAddress,proto3,oneof" json:"reverse_swap_address,omitempty"` // Wallet ID for reverse swaps as stored in the NG's database ReverseSwapWalletId *int32 `` /* 129-byte string literal not displayed */ // contains filtered or unexported fields }
func (*AddLiquidityRuleRequest) Descriptor
deprecated
func (*AddLiquidityRuleRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddLiquidityRuleRequest.ProtoReflect.Descriptor instead.
func (*AddLiquidityRuleRequest) GetChannelId ¶
func (x *AddLiquidityRuleRequest) GetChannelId() int32
func (*AddLiquidityRuleRequest) GetIsReverseSwapWalletRule ¶
func (x *AddLiquidityRuleRequest) GetIsReverseSwapWalletRule() bool
func (*AddLiquidityRuleRequest) GetMinimumLocalBalance ¶
func (x *AddLiquidityRuleRequest) GetMinimumLocalBalance() float64
func (*AddLiquidityRuleRequest) GetMinimumRemoteBalance ¶
func (x *AddLiquidityRuleRequest) GetMinimumRemoteBalance() float64
func (*AddLiquidityRuleRequest) GetRebalanceTarget ¶
func (x *AddLiquidityRuleRequest) GetRebalanceTarget() float64
func (*AddLiquidityRuleRequest) GetReverseSwapAddress ¶
func (x *AddLiquidityRuleRequest) GetReverseSwapAddress() string
func (*AddLiquidityRuleRequest) GetReverseSwapWalletId ¶
func (x *AddLiquidityRuleRequest) GetReverseSwapWalletId() int32
func (*AddLiquidityRuleRequest) GetSwapWalletId ¶
func (x *AddLiquidityRuleRequest) GetSwapWalletId() int32
func (*AddLiquidityRuleRequest) ProtoMessage ¶
func (*AddLiquidityRuleRequest) ProtoMessage()
func (*AddLiquidityRuleRequest) ProtoReflect ¶
func (x *AddLiquidityRuleRequest) ProtoReflect() protoreflect.Message
func (*AddLiquidityRuleRequest) Reset ¶
func (x *AddLiquidityRuleRequest) Reset()
func (*AddLiquidityRuleRequest) String ¶
func (x *AddLiquidityRuleRequest) String() string
type AddLiquidityRuleResponse ¶
type AddLiquidityRuleResponse struct { // Rule ID as stored in the NG's database RuleId int32 `protobuf:"varint,1,opt,name=rule_id,json=ruleId,proto3" json:"rule_id,omitempty"` // contains filtered or unexported fields }
func (*AddLiquidityRuleResponse) Descriptor
deprecated
func (*AddLiquidityRuleResponse) Descriptor() ([]byte, []int)
Deprecated: Use AddLiquidityRuleResponse.ProtoReflect.Descriptor instead.
func (*AddLiquidityRuleResponse) GetRuleId ¶
func (x *AddLiquidityRuleResponse) GetRuleId() int32
func (*AddLiquidityRuleResponse) ProtoMessage ¶
func (*AddLiquidityRuleResponse) ProtoMessage()
func (*AddLiquidityRuleResponse) ProtoReflect ¶
func (x *AddLiquidityRuleResponse) ProtoReflect() protoreflect.Message
func (*AddLiquidityRuleResponse) Reset ¶
func (x *AddLiquidityRuleResponse) Reset()
func (*AddLiquidityRuleResponse) String ¶
func (x *AddLiquidityRuleResponse) String() string
type AddNodeRequest ¶
type AddNodeRequest struct { PubKey string `protobuf:"bytes,1,opt,name=pub_key,json=pubKey,proto3" json:"pub_key,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // Channel admin macaroon ChannelAdminMacaroon string `protobuf:"bytes,4,opt,name=channel_admin_macaroon,json=channelAdminMacaroon,proto3" json:"channel_admin_macaroon,omitempty"` // Endpoint of the node in the form of host:port (gRPC) Endpoint string `protobuf:"bytes,5,opt,name=endpoint,proto3" json:"endpoint,omitempty"` // Whether this node's hot wallet should be autoswept to the returning funds // wallet AutosweepEnabled bool `protobuf:"varint,6,opt,name=autosweep_enabled,json=autosweepEnabled,proto3" json:"autosweep_enabled,omitempty"` // Wallet ID as stored in the NG's database for use in autosweep ops ReturningFundsWalletId int32 `` /* 132-byte string literal not displayed */ // contains filtered or unexported fields }
func (*AddNodeRequest) Descriptor
deprecated
func (*AddNodeRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddNodeRequest.ProtoReflect.Descriptor instead.
func (*AddNodeRequest) GetAutosweepEnabled ¶
func (x *AddNodeRequest) GetAutosweepEnabled() bool
func (*AddNodeRequest) GetChannelAdminMacaroon ¶
func (x *AddNodeRequest) GetChannelAdminMacaroon() string
func (*AddNodeRequest) GetDescription ¶
func (x *AddNodeRequest) GetDescription() string
func (*AddNodeRequest) GetEndpoint ¶
func (x *AddNodeRequest) GetEndpoint() string
func (*AddNodeRequest) GetName ¶
func (x *AddNodeRequest) GetName() string
func (*AddNodeRequest) GetPubKey ¶
func (x *AddNodeRequest) GetPubKey() string
func (*AddNodeRequest) GetReturningFundsWalletId ¶
func (x *AddNodeRequest) GetReturningFundsWalletId() int32
func (*AddNodeRequest) ProtoMessage ¶
func (*AddNodeRequest) ProtoMessage()
func (*AddNodeRequest) ProtoReflect ¶
func (x *AddNodeRequest) ProtoReflect() protoreflect.Message
func (*AddNodeRequest) Reset ¶
func (x *AddNodeRequest) Reset()
func (*AddNodeRequest) String ¶
func (x *AddNodeRequest) String() string
type AddNodeResponse ¶
type AddNodeResponse struct {
// contains filtered or unexported fields
}
func (*AddNodeResponse) Descriptor
deprecated
func (*AddNodeResponse) Descriptor() ([]byte, []int)
Deprecated: Use AddNodeResponse.ProtoReflect.Descriptor instead.
func (*AddNodeResponse) ProtoMessage ¶
func (*AddNodeResponse) ProtoMessage()
func (*AddNodeResponse) ProtoReflect ¶
func (x *AddNodeResponse) ProtoReflect() protoreflect.Message
func (*AddNodeResponse) Reset ¶
func (x *AddNodeResponse) Reset()
func (*AddNodeResponse) String ¶
func (x *AddNodeResponse) String() string
type CHANNEL_OPERATION_STATUS ¶
type CHANNEL_OPERATION_STATUS int32
const ( CHANNEL_OPERATION_STATUS_APPROVED CHANNEL_OPERATION_STATUS = 0 CHANNEL_OPERATION_STATUS_CANCELLED CHANNEL_OPERATION_STATUS = 1 CHANNEL_OPERATION_STATUS_REJECTED CHANNEL_OPERATION_STATUS = 2 CHANNEL_OPERATION_STATUS_PENDING CHANNEL_OPERATION_STATUS = 3 CHANNEL_OPERATION_STATUS_PSBT_SIGNATURES_PENDING CHANNEL_OPERATION_STATUS = 4 CHANNEL_OPERATION_STATUS_ONCHAIN_CONFIRMATION_PENDING CHANNEL_OPERATION_STATUS = 5 CHANNEL_OPERATION_STATUS_ONCHAIN_CONFIRMED CHANNEL_OPERATION_STATUS = 6 CHANNEL_OPERATION_STATUS_FAILED CHANNEL_OPERATION_STATUS = 7 CHANNEL_OPERATION_STATUS_FINALIZING_PSBT CHANNEL_OPERATION_STATUS = 8 )
func (CHANNEL_OPERATION_STATUS) Descriptor ¶
func (CHANNEL_OPERATION_STATUS) Descriptor() protoreflect.EnumDescriptor
func (CHANNEL_OPERATION_STATUS) Enum ¶
func (x CHANNEL_OPERATION_STATUS) Enum() *CHANNEL_OPERATION_STATUS
func (CHANNEL_OPERATION_STATUS) EnumDescriptor
deprecated
func (CHANNEL_OPERATION_STATUS) EnumDescriptor() ([]byte, []int)
Deprecated: Use CHANNEL_OPERATION_STATUS.Descriptor instead.
func (CHANNEL_OPERATION_STATUS) Number ¶
func (x CHANNEL_OPERATION_STATUS) Number() protoreflect.EnumNumber
func (CHANNEL_OPERATION_STATUS) String ¶
func (x CHANNEL_OPERATION_STATUS) String() string
func (CHANNEL_OPERATION_STATUS) Type ¶
func (CHANNEL_OPERATION_STATUS) Type() protoreflect.EnumType
type CHANNEL_OPERATION_TYPE ¶
type CHANNEL_OPERATION_TYPE int32
const ( CHANNEL_OPERATION_TYPE_OPEN_CHANNEL CHANNEL_OPERATION_TYPE = 0 CHANNEL_OPERATION_TYPE_CLOSE_CHANNEL CHANNEL_OPERATION_TYPE = 1 )
func (CHANNEL_OPERATION_TYPE) Descriptor ¶
func (CHANNEL_OPERATION_TYPE) Descriptor() protoreflect.EnumDescriptor
func (CHANNEL_OPERATION_TYPE) Enum ¶
func (x CHANNEL_OPERATION_TYPE) Enum() *CHANNEL_OPERATION_TYPE
func (CHANNEL_OPERATION_TYPE) EnumDescriptor
deprecated
func (CHANNEL_OPERATION_TYPE) EnumDescriptor() ([]byte, []int)
Deprecated: Use CHANNEL_OPERATION_TYPE.Descriptor instead.
func (CHANNEL_OPERATION_TYPE) Number ¶
func (x CHANNEL_OPERATION_TYPE) Number() protoreflect.EnumNumber
func (CHANNEL_OPERATION_TYPE) String ¶
func (x CHANNEL_OPERATION_TYPE) String() string
func (CHANNEL_OPERATION_TYPE) Type ¶
func (CHANNEL_OPERATION_TYPE) Type() protoreflect.EnumType
type CHANNEL_STATUS ¶
type CHANNEL_STATUS int32
const ( CHANNEL_STATUS_OPEN CHANNEL_STATUS = 0 CHANNEL_STATUS_CLOSED CHANNEL_STATUS = 1 )
func (CHANNEL_STATUS) Descriptor ¶
func (CHANNEL_STATUS) Descriptor() protoreflect.EnumDescriptor
func (CHANNEL_STATUS) Enum ¶
func (x CHANNEL_STATUS) Enum() *CHANNEL_STATUS
func (CHANNEL_STATUS) EnumDescriptor
deprecated
func (CHANNEL_STATUS) EnumDescriptor() ([]byte, []int)
Deprecated: Use CHANNEL_STATUS.Descriptor instead.
func (CHANNEL_STATUS) Number ¶
func (x CHANNEL_STATUS) Number() protoreflect.EnumNumber
func (CHANNEL_STATUS) String ¶
func (x CHANNEL_STATUS) String() string
func (CHANNEL_STATUS) Type ¶
func (CHANNEL_STATUS) Type() protoreflect.EnumType
type COIN_SELECTION_STRATEGY ¶
type COIN_SELECTION_STRATEGY int32
const ( COIN_SELECTION_STRATEGY_SMALLEST_FIRST COIN_SELECTION_STRATEGY = 0 COIN_SELECTION_STRATEGY_BIGGEST_FIRST COIN_SELECTION_STRATEGY = 1 COIN_SELECTION_STRATEGY_CLOSEST_TO_TARGET_FIRST COIN_SELECTION_STRATEGY = 2 COIN_SELECTION_STRATEGY_UP_TO_AMOUNT COIN_SELECTION_STRATEGY = 3 )
func (COIN_SELECTION_STRATEGY) Descriptor ¶
func (COIN_SELECTION_STRATEGY) Descriptor() protoreflect.EnumDescriptor
func (COIN_SELECTION_STRATEGY) Enum ¶
func (x COIN_SELECTION_STRATEGY) Enum() *COIN_SELECTION_STRATEGY
func (COIN_SELECTION_STRATEGY) EnumDescriptor
deprecated
func (COIN_SELECTION_STRATEGY) EnumDescriptor() ([]byte, []int)
Deprecated: Use COIN_SELECTION_STRATEGY.Descriptor instead.
func (COIN_SELECTION_STRATEGY) Number ¶
func (x COIN_SELECTION_STRATEGY) Number() protoreflect.EnumNumber
func (COIN_SELECTION_STRATEGY) String ¶
func (x COIN_SELECTION_STRATEGY) String() string
func (COIN_SELECTION_STRATEGY) Type ¶
func (COIN_SELECTION_STRATEGY) Type() protoreflect.EnumType
type CloseChannelRequest ¶
type CloseChannelRequest struct { // Channel ID as returned by the Lightning implementation ChannelId uint64 `protobuf:"varint,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` // Force close the channel Force bool `protobuf:"varint,2,opt,name=force,proto3" json:"force,omitempty"` // contains filtered or unexported fields }
func (*CloseChannelRequest) Descriptor
deprecated
func (*CloseChannelRequest) Descriptor() ([]byte, []int)
Deprecated: Use CloseChannelRequest.ProtoReflect.Descriptor instead.
func (*CloseChannelRequest) GetChannelId ¶
func (x *CloseChannelRequest) GetChannelId() uint64
func (*CloseChannelRequest) GetForce ¶
func (x *CloseChannelRequest) GetForce() bool
func (*CloseChannelRequest) ProtoMessage ¶
func (*CloseChannelRequest) ProtoMessage()
func (*CloseChannelRequest) ProtoReflect ¶
func (x *CloseChannelRequest) ProtoReflect() protoreflect.Message
func (*CloseChannelRequest) Reset ¶
func (x *CloseChannelRequest) Reset()
func (*CloseChannelRequest) String ¶
func (x *CloseChannelRequest) String() string
type CloseChannelResponse ¶
type CloseChannelResponse struct {
// contains filtered or unexported fields
}
A successful response is an empty message and does NOT indicate that the channel has been closed, external monitoring is required
func (*CloseChannelResponse) Descriptor
deprecated
func (*CloseChannelResponse) Descriptor() ([]byte, []int)
Deprecated: Use CloseChannelResponse.ProtoReflect.Descriptor instead.
func (*CloseChannelResponse) ProtoMessage ¶
func (*CloseChannelResponse) ProtoMessage()
func (*CloseChannelResponse) ProtoReflect ¶
func (x *CloseChannelResponse) ProtoReflect() protoreflect.Message
func (*CloseChannelResponse) Reset ¶
func (x *CloseChannelResponse) Reset()
func (*CloseChannelResponse) String ¶
func (x *CloseChannelResponse) String() string
type FEES_TYPE ¶
type FEES_TYPE int32
func (FEES_TYPE) Descriptor ¶
func (FEES_TYPE) Descriptor() protoreflect.EnumDescriptor
func (FEES_TYPE) EnumDescriptor
deprecated
func (FEES_TYPE) Number ¶
func (x FEES_TYPE) Number() protoreflect.EnumNumber
func (FEES_TYPE) Type ¶
func (FEES_TYPE) Type() protoreflect.EnumType
type GetAvailableUtxosRequest ¶
type GetAvailableUtxosRequest struct { // Wallet ID as stored in the NG's database WalletId int32 `protobuf:"varint,1,opt,name=wallet_id,json=walletId,proto3" json:"wallet_id,omitempty"` // How to order the UTXOs for automatic selection Strategy *COIN_SELECTION_STRATEGY `protobuf:"varint,2,opt,name=strategy,proto3,enum=nodeguard.COIN_SELECTION_STRATEGY,oneof" json:"strategy,omitempty"` // How many UTXOs are allowed to be used for the withdrawal Limit *int32 `protobuf:"varint,3,opt,name=limit,proto3,oneof" json:"limit,omitempty"` // Amount in satoshis Amount *int64 `protobuf:"varint,4,opt,name=amount,proto3,oneof" json:"amount,omitempty"` // Order the UTXOs by closest to the amount specified if the strategy selected // is CLOSEST_TO_TARGET_FIRST ClosestTo *int64 `protobuf:"varint,5,opt,name=closestTo,proto3,oneof" json:"closestTo,omitempty"` // contains filtered or unexported fields }
func (*GetAvailableUtxosRequest) Descriptor
deprecated
func (*GetAvailableUtxosRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAvailableUtxosRequest.ProtoReflect.Descriptor instead.
func (*GetAvailableUtxosRequest) GetAmount ¶
func (x *GetAvailableUtxosRequest) GetAmount() int64
func (*GetAvailableUtxosRequest) GetClosestTo ¶
func (x *GetAvailableUtxosRequest) GetClosestTo() int64
func (*GetAvailableUtxosRequest) GetLimit ¶
func (x *GetAvailableUtxosRequest) GetLimit() int32
func (*GetAvailableUtxosRequest) GetStrategy ¶
func (x *GetAvailableUtxosRequest) GetStrategy() COIN_SELECTION_STRATEGY
func (*GetAvailableUtxosRequest) GetWalletId ¶
func (x *GetAvailableUtxosRequest) GetWalletId() int32
func (*GetAvailableUtxosRequest) ProtoMessage ¶
func (*GetAvailableUtxosRequest) ProtoMessage()
func (*GetAvailableUtxosRequest) ProtoReflect ¶
func (x *GetAvailableUtxosRequest) ProtoReflect() protoreflect.Message
func (*GetAvailableUtxosRequest) Reset ¶
func (x *GetAvailableUtxosRequest) Reset()
func (*GetAvailableUtxosRequest) String ¶
func (x *GetAvailableUtxosRequest) String() string
type GetAvailableUtxosResponse ¶
type GetAvailableUtxosResponse struct { Confirmed []*Utxo `protobuf:"bytes,1,rep,name=confirmed,proto3" json:"confirmed,omitempty"` Unconfirmed []*Utxo `protobuf:"bytes,2,rep,name=unconfirmed,proto3" json:"unconfirmed,omitempty"` // contains filtered or unexported fields }
func (*GetAvailableUtxosResponse) Descriptor
deprecated
func (*GetAvailableUtxosResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetAvailableUtxosResponse.ProtoReflect.Descriptor instead.
func (*GetAvailableUtxosResponse) GetConfirmed ¶
func (x *GetAvailableUtxosResponse) GetConfirmed() []*Utxo
func (*GetAvailableUtxosResponse) GetUnconfirmed ¶
func (x *GetAvailableUtxosResponse) GetUnconfirmed() []*Utxo
func (*GetAvailableUtxosResponse) ProtoMessage ¶
func (*GetAvailableUtxosResponse) ProtoMessage()
func (*GetAvailableUtxosResponse) ProtoReflect ¶
func (x *GetAvailableUtxosResponse) ProtoReflect() protoreflect.Message
func (*GetAvailableUtxosResponse) Reset ¶
func (x *GetAvailableUtxosResponse) Reset()
func (*GetAvailableUtxosResponse) String ¶
func (x *GetAvailableUtxosResponse) String() string
type GetAvailableWalletsRequest ¶
type GetAvailableWalletsRequest struct { Id []int32 `protobuf:"varint,1,rep,packed,name=id,proto3" json:"id,omitempty"` WalletType *WALLET_TYPE `protobuf:"varint,2,opt,name=wallet_type,json=walletType,proto3,enum=nodeguard.WALLET_TYPE,oneof" json:"wallet_type,omitempty"` // contains filtered or unexported fields }
func (*GetAvailableWalletsRequest) Descriptor
deprecated
func (*GetAvailableWalletsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAvailableWalletsRequest.ProtoReflect.Descriptor instead.
func (*GetAvailableWalletsRequest) GetId ¶
func (x *GetAvailableWalletsRequest) GetId() []int32
func (*GetAvailableWalletsRequest) GetWalletType ¶
func (x *GetAvailableWalletsRequest) GetWalletType() WALLET_TYPE
func (*GetAvailableWalletsRequest) ProtoMessage ¶
func (*GetAvailableWalletsRequest) ProtoMessage()
func (*GetAvailableWalletsRequest) ProtoReflect ¶
func (x *GetAvailableWalletsRequest) ProtoReflect() protoreflect.Message
func (*GetAvailableWalletsRequest) Reset ¶
func (x *GetAvailableWalletsRequest) Reset()
func (*GetAvailableWalletsRequest) String ¶
func (x *GetAvailableWalletsRequest) String() string
type GetAvailableWalletsResponse ¶
type GetAvailableWalletsResponse struct { Wallets []*Wallet `protobuf:"bytes,1,rep,name=wallets,proto3" json:"wallets,omitempty"` // contains filtered or unexported fields }
func (*GetAvailableWalletsResponse) Descriptor
deprecated
func (*GetAvailableWalletsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetAvailableWalletsResponse.ProtoReflect.Descriptor instead.
func (*GetAvailableWalletsResponse) GetWallets ¶
func (x *GetAvailableWalletsResponse) GetWallets() []*Wallet
func (*GetAvailableWalletsResponse) ProtoMessage ¶
func (*GetAvailableWalletsResponse) ProtoMessage()
func (*GetAvailableWalletsResponse) ProtoReflect ¶
func (x *GetAvailableWalletsResponse) ProtoReflect() protoreflect.Message
func (*GetAvailableWalletsResponse) Reset ¶
func (x *GetAvailableWalletsResponse) Reset()
func (*GetAvailableWalletsResponse) String ¶
func (x *GetAvailableWalletsResponse) String() string
type GetChannelOperationRequestRequest ¶
type GetChannelOperationRequestRequest struct { // Whether to include requests that are not managed by the NG ChannelOperationRequestId int32 `` /* 141-byte string literal not displayed */ // contains filtered or unexported fields }
func (*GetChannelOperationRequestRequest) Descriptor
deprecated
func (*GetChannelOperationRequestRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetChannelOperationRequestRequest.ProtoReflect.Descriptor instead.
func (*GetChannelOperationRequestRequest) GetChannelOperationRequestId ¶
func (x *GetChannelOperationRequestRequest) GetChannelOperationRequestId() int32
func (*GetChannelOperationRequestRequest) ProtoMessage ¶
func (*GetChannelOperationRequestRequest) ProtoMessage()
func (*GetChannelOperationRequestRequest) ProtoReflect ¶
func (x *GetChannelOperationRequestRequest) ProtoReflect() protoreflect.Message
func (*GetChannelOperationRequestRequest) Reset ¶
func (x *GetChannelOperationRequestRequest) Reset()
func (*GetChannelOperationRequestRequest) String ¶
func (x *GetChannelOperationRequestRequest) String() string
type GetChannelOperationRequestResponse ¶
type GetChannelOperationRequestResponse struct { SatsAmount int64 `protobuf:"varint,1,opt,name=sats_amount,json=satsAmount,proto3" json:"sats_amount,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` Status *CHANNEL_OPERATION_STATUS `protobuf:"varint,3,opt,name=status,proto3,enum=nodeguard.CHANNEL_OPERATION_STATUS,oneof" json:"status,omitempty"` Type *CHANNEL_OPERATION_TYPE `protobuf:"varint,4,opt,name=type,proto3,enum=nodeguard.CHANNEL_OPERATION_TYPE,oneof" json:"type,omitempty"` TxId *string `protobuf:"bytes,5,opt,name=tx_id,json=txId,proto3,oneof" json:"tx_id,omitempty"` ClosingReason *string `protobuf:"bytes,6,opt,name=closing_reason,json=closingReason,proto3,oneof" json:"closing_reason,omitempty"` FeeRate *float64 `protobuf:"fixed64,7,opt,name=fee_rate,json=feeRate,proto3,oneof" json:"fee_rate,omitempty"` WalletId *int32 `protobuf:"varint,8,opt,name=wallet_id,json=walletId,proto3,oneof" json:"wallet_id,omitempty"` SourceNodeId int32 `protobuf:"varint,9,opt,name=source_node_id,json=sourceNodeId,proto3" json:"source_node_id,omitempty"` DestNodeId *int32 `protobuf:"varint,10,opt,name=dest_node_id,json=destNodeId,proto3,oneof" json:"dest_node_id,omitempty"` ChannelId *int64 `protobuf:"varint,11,opt,name=channel_id,json=channelId,proto3,oneof" json:"channel_id,omitempty"` Private bool `protobuf:"varint,12,opt,name=private,proto3" json:"private,omitempty"` JobId string `protobuf:"bytes,13,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` // contains filtered or unexported fields }
func (*GetChannelOperationRequestResponse) Descriptor
deprecated
func (*GetChannelOperationRequestResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetChannelOperationRequestResponse.ProtoReflect.Descriptor instead.
func (*GetChannelOperationRequestResponse) GetChannelId ¶
func (x *GetChannelOperationRequestResponse) GetChannelId() int64
func (*GetChannelOperationRequestResponse) GetClosingReason ¶
func (x *GetChannelOperationRequestResponse) GetClosingReason() string
func (*GetChannelOperationRequestResponse) GetDescription ¶
func (x *GetChannelOperationRequestResponse) GetDescription() string
func (*GetChannelOperationRequestResponse) GetDestNodeId ¶
func (x *GetChannelOperationRequestResponse) GetDestNodeId() int32
func (*GetChannelOperationRequestResponse) GetFeeRate ¶
func (x *GetChannelOperationRequestResponse) GetFeeRate() float64
func (*GetChannelOperationRequestResponse) GetJobId ¶
func (x *GetChannelOperationRequestResponse) GetJobId() string
func (*GetChannelOperationRequestResponse) GetPrivate ¶
func (x *GetChannelOperationRequestResponse) GetPrivate() bool
func (*GetChannelOperationRequestResponse) GetSatsAmount ¶
func (x *GetChannelOperationRequestResponse) GetSatsAmount() int64
func (*GetChannelOperationRequestResponse) GetSourceNodeId ¶
func (x *GetChannelOperationRequestResponse) GetSourceNodeId() int32
func (*GetChannelOperationRequestResponse) GetStatus ¶
func (x *GetChannelOperationRequestResponse) GetStatus() CHANNEL_OPERATION_STATUS
func (*GetChannelOperationRequestResponse) GetTxId ¶
func (x *GetChannelOperationRequestResponse) GetTxId() string
func (*GetChannelOperationRequestResponse) GetType ¶
func (x *GetChannelOperationRequestResponse) GetType() CHANNEL_OPERATION_TYPE
func (*GetChannelOperationRequestResponse) GetWalletId ¶
func (x *GetChannelOperationRequestResponse) GetWalletId() int32
func (*GetChannelOperationRequestResponse) ProtoMessage ¶
func (*GetChannelOperationRequestResponse) ProtoMessage()
func (*GetChannelOperationRequestResponse) ProtoReflect ¶
func (x *GetChannelOperationRequestResponse) ProtoReflect() protoreflect.Message
func (*GetChannelOperationRequestResponse) Reset ¶
func (x *GetChannelOperationRequestResponse) Reset()
func (*GetChannelOperationRequestResponse) String ¶
func (x *GetChannelOperationRequestResponse) String() string
type GetChannelRequest ¶
type GetChannelRequest struct { // Channel ID from NGs database ChannelId int32 `protobuf:"varint,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` // contains filtered or unexported fields }
func (*GetChannelRequest) Descriptor
deprecated
func (*GetChannelRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetChannelRequest.ProtoReflect.Descriptor instead.
func (*GetChannelRequest) GetChannelId ¶
func (x *GetChannelRequest) GetChannelId() int32
func (*GetChannelRequest) ProtoMessage ¶
func (*GetChannelRequest) ProtoMessage()
func (*GetChannelRequest) ProtoReflect ¶
func (x *GetChannelRequest) ProtoReflect() protoreflect.Message
func (*GetChannelRequest) Reset ¶
func (x *GetChannelRequest) Reset()
func (*GetChannelRequest) String ¶
func (x *GetChannelRequest) String() string
type GetChannelResponse ¶
type GetChannelResponse struct { FundingTx string `protobuf:"bytes,1,opt,name=funding_tx,json=fundingTx,proto3" json:"funding_tx,omitempty"` OutputIndex uint32 `protobuf:"varint,2,opt,name=output_index,json=outputIndex,proto3" json:"output_index,omitempty"` ChanId uint64 `protobuf:"varint,3,opt,name=chan_id,json=chanId,proto3" json:"chan_id,omitempty"` SatsAmount int64 `protobuf:"varint,4,opt,name=sats_amount,json=satsAmount,proto3" json:"sats_amount,omitempty"` BtcCloseAddress *string `protobuf:"bytes,5,opt,name=btc_close_address,json=btcCloseAddress,proto3,oneof" json:"btc_close_address,omitempty"` Status CHANNEL_STATUS `protobuf:"varint,6,opt,name=status,proto3,enum=nodeguard.CHANNEL_STATUS" json:"status,omitempty"` CreatedByNodeguard bool `protobuf:"varint,7,opt,name=created_by_nodeguard,json=createdByNodeguard,proto3" json:"created_by_nodeguard,omitempty"` IsAutomatedLiquidityEnabled bool `` /* 147-byte string literal not displayed */ IsPrivate bool `protobuf:"varint,9,opt,name=is_private,json=isPrivate,proto3" json:"is_private,omitempty"` // contains filtered or unexported fields }
func (*GetChannelResponse) Descriptor
deprecated
func (*GetChannelResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetChannelResponse.ProtoReflect.Descriptor instead.
func (*GetChannelResponse) GetBtcCloseAddress ¶
func (x *GetChannelResponse) GetBtcCloseAddress() string
func (*GetChannelResponse) GetChanId ¶
func (x *GetChannelResponse) GetChanId() uint64
func (*GetChannelResponse) GetCreatedByNodeguard ¶
func (x *GetChannelResponse) GetCreatedByNodeguard() bool
func (*GetChannelResponse) GetFundingTx ¶
func (x *GetChannelResponse) GetFundingTx() string
func (*GetChannelResponse) GetIsAutomatedLiquidityEnabled ¶
func (x *GetChannelResponse) GetIsAutomatedLiquidityEnabled() bool
func (*GetChannelResponse) GetIsPrivate ¶
func (x *GetChannelResponse) GetIsPrivate() bool
func (*GetChannelResponse) GetOutputIndex ¶
func (x *GetChannelResponse) GetOutputIndex() uint32
func (*GetChannelResponse) GetSatsAmount ¶
func (x *GetChannelResponse) GetSatsAmount() int64
func (*GetChannelResponse) GetStatus ¶
func (x *GetChannelResponse) GetStatus() CHANNEL_STATUS
func (*GetChannelResponse) ProtoMessage ¶
func (*GetChannelResponse) ProtoMessage()
func (*GetChannelResponse) ProtoReflect ¶
func (x *GetChannelResponse) ProtoReflect() protoreflect.Message
func (*GetChannelResponse) Reset ¶
func (x *GetChannelResponse) Reset()
func (*GetChannelResponse) String ¶
func (x *GetChannelResponse) String() string
type GetLiquidityRulesRequest ¶
type GetLiquidityRulesRequest struct { NodePubkey string `protobuf:"bytes,1,opt,name=node_pubkey,json=nodePubkey,proto3" json:"node_pubkey,omitempty"` // contains filtered or unexported fields }
func (*GetLiquidityRulesRequest) Descriptor
deprecated
func (*GetLiquidityRulesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetLiquidityRulesRequest.ProtoReflect.Descriptor instead.
func (*GetLiquidityRulesRequest) GetNodePubkey ¶
func (x *GetLiquidityRulesRequest) GetNodePubkey() string
func (*GetLiquidityRulesRequest) ProtoMessage ¶
func (*GetLiquidityRulesRequest) ProtoMessage()
func (*GetLiquidityRulesRequest) ProtoReflect ¶
func (x *GetLiquidityRulesRequest) ProtoReflect() protoreflect.Message
func (*GetLiquidityRulesRequest) Reset ¶
func (x *GetLiquidityRulesRequest) Reset()
func (*GetLiquidityRulesRequest) String ¶
func (x *GetLiquidityRulesRequest) String() string
type GetLiquidityRulesResponse ¶
type GetLiquidityRulesResponse struct { LiquidityRules []*LiquidityRule `protobuf:"bytes,1,rep,name=liquidity_rules,json=liquidityRules,proto3" json:"liquidity_rules,omitempty"` // contains filtered or unexported fields }
func (*GetLiquidityRulesResponse) Descriptor
deprecated
func (*GetLiquidityRulesResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetLiquidityRulesResponse.ProtoReflect.Descriptor instead.
func (*GetLiquidityRulesResponse) GetLiquidityRules ¶
func (x *GetLiquidityRulesResponse) GetLiquidityRules() []*LiquidityRule
func (*GetLiquidityRulesResponse) ProtoMessage ¶
func (*GetLiquidityRulesResponse) ProtoMessage()
func (*GetLiquidityRulesResponse) ProtoReflect ¶
func (x *GetLiquidityRulesResponse) ProtoReflect() protoreflect.Message
func (*GetLiquidityRulesResponse) Reset ¶
func (x *GetLiquidityRulesResponse) Reset()
func (*GetLiquidityRulesResponse) String ¶
func (x *GetLiquidityRulesResponse) String() string
type GetNewWalletAddressRequest ¶
type GetNewWalletAddressRequest struct { WalletId int32 `protobuf:"varint,1,opt,name=wallet_id,json=walletId,proto3" json:"wallet_id,omitempty"` // contains filtered or unexported fields }
func (*GetNewWalletAddressRequest) Descriptor
deprecated
func (*GetNewWalletAddressRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetNewWalletAddressRequest.ProtoReflect.Descriptor instead.
func (*GetNewWalletAddressRequest) GetWalletId ¶
func (x *GetNewWalletAddressRequest) GetWalletId() int32
func (*GetNewWalletAddressRequest) ProtoMessage ¶
func (*GetNewWalletAddressRequest) ProtoMessage()
func (*GetNewWalletAddressRequest) ProtoReflect ¶
func (x *GetNewWalletAddressRequest) ProtoReflect() protoreflect.Message
func (*GetNewWalletAddressRequest) Reset ¶
func (x *GetNewWalletAddressRequest) Reset()
func (*GetNewWalletAddressRequest) String ¶
func (x *GetNewWalletAddressRequest) String() string
type GetNewWalletAddressResponse ¶
type GetNewWalletAddressResponse struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
func (*GetNewWalletAddressResponse) Descriptor
deprecated
func (*GetNewWalletAddressResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetNewWalletAddressResponse.ProtoReflect.Descriptor instead.
func (*GetNewWalletAddressResponse) GetAddress ¶
func (x *GetNewWalletAddressResponse) GetAddress() string
func (*GetNewWalletAddressResponse) ProtoMessage ¶
func (*GetNewWalletAddressResponse) ProtoMessage()
func (*GetNewWalletAddressResponse) ProtoReflect ¶
func (x *GetNewWalletAddressResponse) ProtoReflect() protoreflect.Message
func (*GetNewWalletAddressResponse) Reset ¶
func (x *GetNewWalletAddressResponse) Reset()
func (*GetNewWalletAddressResponse) String ¶
func (x *GetNewWalletAddressResponse) String() string
type GetNodesRequest ¶
type GetNodesRequest struct { // Whether to include nodes that are not managed by the NG IncludeUnmanaged bool `protobuf:"varint,1,opt,name=include_unmanaged,json=includeUnmanaged,proto3" json:"include_unmanaged,omitempty"` // contains filtered or unexported fields }
func (*GetNodesRequest) Descriptor
deprecated
func (*GetNodesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetNodesRequest.ProtoReflect.Descriptor instead.
func (*GetNodesRequest) GetIncludeUnmanaged ¶
func (x *GetNodesRequest) GetIncludeUnmanaged() bool
func (*GetNodesRequest) ProtoMessage ¶
func (*GetNodesRequest) ProtoMessage()
func (*GetNodesRequest) ProtoReflect ¶
func (x *GetNodesRequest) ProtoReflect() protoreflect.Message
func (*GetNodesRequest) Reset ¶
func (x *GetNodesRequest) Reset()
func (*GetNodesRequest) String ¶
func (x *GetNodesRequest) String() string
type GetNodesResponse ¶
type GetNodesResponse struct { Nodes []*Node `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"` // contains filtered or unexported fields }
func (*GetNodesResponse) Descriptor
deprecated
func (*GetNodesResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetNodesResponse.ProtoReflect.Descriptor instead.
func (*GetNodesResponse) GetNodes ¶
func (x *GetNodesResponse) GetNodes() []*Node
func (*GetNodesResponse) ProtoMessage ¶
func (*GetNodesResponse) ProtoMessage()
func (*GetNodesResponse) ProtoReflect ¶
func (x *GetNodesResponse) ProtoReflect() protoreflect.Message
func (*GetNodesResponse) Reset ¶
func (x *GetNodesResponse) Reset()
func (*GetNodesResponse) String ¶
func (x *GetNodesResponse) String() string
type GetWithdrawalsRequestStatusRequest ¶
type GetWithdrawalsRequestStatusRequest struct { RequestIds []int32 `protobuf:"varint,1,rep,packed,name=request_ids,json=requestIds,proto3" json:"request_ids,omitempty"` // contains filtered or unexported fields }
func (*GetWithdrawalsRequestStatusRequest) Descriptor
deprecated
func (*GetWithdrawalsRequestStatusRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetWithdrawalsRequestStatusRequest.ProtoReflect.Descriptor instead.
func (*GetWithdrawalsRequestStatusRequest) GetRequestIds ¶
func (x *GetWithdrawalsRequestStatusRequest) GetRequestIds() []int32
func (*GetWithdrawalsRequestStatusRequest) ProtoMessage ¶
func (*GetWithdrawalsRequestStatusRequest) ProtoMessage()
func (*GetWithdrawalsRequestStatusRequest) ProtoReflect ¶
func (x *GetWithdrawalsRequestStatusRequest) ProtoReflect() protoreflect.Message
func (*GetWithdrawalsRequestStatusRequest) Reset ¶
func (x *GetWithdrawalsRequestStatusRequest) Reset()
func (*GetWithdrawalsRequestStatusRequest) String ¶
func (x *GetWithdrawalsRequestStatusRequest) String() string
type GetWithdrawalsRequestStatusResponse ¶
type GetWithdrawalsRequestStatusResponse struct { WithdrawalRequests []*WithdrawalRequest `protobuf:"bytes,1,rep,name=withdrawal_requests,json=withdrawalRequests,proto3" json:"withdrawal_requests,omitempty"` // contains filtered or unexported fields }
func (*GetWithdrawalsRequestStatusResponse) Descriptor
deprecated
func (*GetWithdrawalsRequestStatusResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetWithdrawalsRequestStatusResponse.ProtoReflect.Descriptor instead.
func (*GetWithdrawalsRequestStatusResponse) GetWithdrawalRequests ¶
func (x *GetWithdrawalsRequestStatusResponse) GetWithdrawalRequests() []*WithdrawalRequest
func (*GetWithdrawalsRequestStatusResponse) ProtoMessage ¶
func (*GetWithdrawalsRequestStatusResponse) ProtoMessage()
func (*GetWithdrawalsRequestStatusResponse) ProtoReflect ¶
func (x *GetWithdrawalsRequestStatusResponse) ProtoReflect() protoreflect.Message
func (*GetWithdrawalsRequestStatusResponse) Reset ¶
func (x *GetWithdrawalsRequestStatusResponse) Reset()
func (*GetWithdrawalsRequestStatusResponse) String ¶
func (x *GetWithdrawalsRequestStatusResponse) String() string
type LiquidityRule ¶
type LiquidityRule struct { ChannelId uint64 `protobuf:"varint,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` // Public key of the node that is the managed node of the channel NodePubkey string `protobuf:"bytes,2,opt,name=node_pubkey,json=nodePubkey,proto3" json:"node_pubkey,omitempty"` SwapWalletId int32 `protobuf:"varint,3,opt,name=swap_wallet_id,json=swapWalletId,proto3" json:"swap_wallet_id,omitempty"` ReverseSwapWalletId *int32 `` /* 129-byte string literal not displayed */ MinimumLocalBalance float32 `protobuf:"fixed32,5,opt,name=minimum_local_balance,json=minimumLocalBalance,proto3" json:"minimum_local_balance,omitempty"` MinimumRemoteBalance float32 `protobuf:"fixed32,6,opt,name=minimum_remote_balance,json=minimumRemoteBalance,proto3" json:"minimum_remote_balance,omitempty"` RebalanceTarget float32 `protobuf:"fixed32,7,opt,name=rebalance_target,json=rebalanceTarget,proto3" json:"rebalance_target,omitempty"` ReverseSwapAddress *string `protobuf:"bytes,8,opt,name=reverse_swap_address,json=reverseSwapAddress,proto3,oneof" json:"reverse_swap_address,omitempty"` IsReverseSwapWalletRule bool `` /* 137-byte string literal not displayed */ // Public key of the node that is the counterparty of the channel RemoteNodePubkey string `protobuf:"bytes,10,opt,name=remote_node_pubkey,json=remoteNodePubkey,proto3" json:"remote_node_pubkey,omitempty"` // contains filtered or unexported fields }
func (*LiquidityRule) Descriptor
deprecated
func (*LiquidityRule) Descriptor() ([]byte, []int)
Deprecated: Use LiquidityRule.ProtoReflect.Descriptor instead.
func (*LiquidityRule) GetChannelId ¶
func (x *LiquidityRule) GetChannelId() uint64
func (*LiquidityRule) GetIsReverseSwapWalletRule ¶
func (x *LiquidityRule) GetIsReverseSwapWalletRule() bool
func (*LiquidityRule) GetMinimumLocalBalance ¶
func (x *LiquidityRule) GetMinimumLocalBalance() float32
func (*LiquidityRule) GetMinimumRemoteBalance ¶
func (x *LiquidityRule) GetMinimumRemoteBalance() float32
func (*LiquidityRule) GetNodePubkey ¶
func (x *LiquidityRule) GetNodePubkey() string
func (*LiquidityRule) GetRebalanceTarget ¶
func (x *LiquidityRule) GetRebalanceTarget() float32
func (*LiquidityRule) GetRemoteNodePubkey ¶
func (x *LiquidityRule) GetRemoteNodePubkey() string
func (*LiquidityRule) GetReverseSwapAddress ¶
func (x *LiquidityRule) GetReverseSwapAddress() string
func (*LiquidityRule) GetReverseSwapWalletId ¶
func (x *LiquidityRule) GetReverseSwapWalletId() int32
func (*LiquidityRule) GetSwapWalletId ¶
func (x *LiquidityRule) GetSwapWalletId() int32
func (*LiquidityRule) ProtoMessage ¶
func (*LiquidityRule) ProtoMessage()
func (*LiquidityRule) ProtoReflect ¶
func (x *LiquidityRule) ProtoReflect() protoreflect.Message
func (*LiquidityRule) Reset ¶
func (x *LiquidityRule) Reset()
func (*LiquidityRule) String ¶
func (x *LiquidityRule) String() string
type MockNodeGuardServiceClient ¶
type MockNodeGuardServiceClient struct {
// contains filtered or unexported fields
}
MockNodeGuardServiceClient is a mock of NodeGuardServiceClient interface.
func NewMockNodeGuardServiceClient ¶
func NewMockNodeGuardServiceClient(ctrl *gomock.Controller) *MockNodeGuardServiceClient
NewMockNodeGuardServiceClient creates a new mock instance.
func (*MockNodeGuardServiceClient) AddLiquidityRule ¶
func (m *MockNodeGuardServiceClient) AddLiquidityRule(ctx context.Context, in *AddLiquidityRuleRequest, opts ...grpc.CallOption) (*AddLiquidityRuleResponse, error)
AddLiquidityRule mocks base method.
func (*MockNodeGuardServiceClient) AddNode ¶
func (m *MockNodeGuardServiceClient) AddNode(ctx context.Context, in *AddNodeRequest, opts ...grpc.CallOption) (*AddNodeResponse, error)
AddNode mocks base method.
func (*MockNodeGuardServiceClient) CloseChannel ¶
func (m *MockNodeGuardServiceClient) CloseChannel(ctx context.Context, in *CloseChannelRequest, opts ...grpc.CallOption) (*CloseChannelResponse, error)
CloseChannel mocks base method.
func (*MockNodeGuardServiceClient) EXPECT ¶
func (m *MockNodeGuardServiceClient) EXPECT() *MockNodeGuardServiceClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockNodeGuardServiceClient) GetAvailableUtxos ¶
func (m *MockNodeGuardServiceClient) GetAvailableUtxos(ctx context.Context, in *GetAvailableUtxosRequest, opts ...grpc.CallOption) (*GetAvailableUtxosResponse, error)
GetAvailableUtxos mocks base method.
func (*MockNodeGuardServiceClient) GetAvailableWallets ¶
func (m *MockNodeGuardServiceClient) GetAvailableWallets(ctx context.Context, in *GetAvailableWalletsRequest, opts ...grpc.CallOption) (*GetAvailableWalletsResponse, error)
GetAvailableWallets mocks base method.
func (*MockNodeGuardServiceClient) GetChannel ¶
func (m *MockNodeGuardServiceClient) GetChannel(ctx context.Context, in *GetChannelRequest, opts ...grpc.CallOption) (*GetChannelResponse, error)
GetChannel mocks base method.
func (*MockNodeGuardServiceClient) GetChannelOperationRequest ¶
func (m *MockNodeGuardServiceClient) GetChannelOperationRequest(ctx context.Context, in *GetChannelOperationRequestRequest, opts ...grpc.CallOption) (*GetChannelOperationRequestResponse, error)
GetChannelOperationRequest mocks base method.
func (*MockNodeGuardServiceClient) GetLiquidityRules ¶
func (m *MockNodeGuardServiceClient) GetLiquidityRules(ctx context.Context, in *GetLiquidityRulesRequest, opts ...grpc.CallOption) (*GetLiquidityRulesResponse, error)
GetLiquidityRules mocks base method.
func (*MockNodeGuardServiceClient) GetNewWalletAddress ¶
func (m *MockNodeGuardServiceClient) GetNewWalletAddress(ctx context.Context, in *GetNewWalletAddressRequest, opts ...grpc.CallOption) (*GetNewWalletAddressResponse, error)
GetNewWalletAddress mocks base method.
func (*MockNodeGuardServiceClient) GetNodes ¶
func (m *MockNodeGuardServiceClient) GetNodes(ctx context.Context, in *GetNodesRequest, opts ...grpc.CallOption) (*GetNodesResponse, error)
GetNodes mocks base method.
func (*MockNodeGuardServiceClient) GetWithdrawalsRequestStatus ¶
func (m *MockNodeGuardServiceClient) GetWithdrawalsRequestStatus(ctx context.Context, in *GetWithdrawalsRequestStatusRequest, opts ...grpc.CallOption) (*GetWithdrawalsRequestStatusResponse, error)
GetWithdrawalsRequestStatus mocks base method.
func (*MockNodeGuardServiceClient) OpenChannel ¶
func (m *MockNodeGuardServiceClient) OpenChannel(ctx context.Context, in *OpenChannelRequest, opts ...grpc.CallOption) (*OpenChannelResponse, error)
OpenChannel mocks base method.
func (*MockNodeGuardServiceClient) RequestWithdrawal ¶
func (m *MockNodeGuardServiceClient) RequestWithdrawal(ctx context.Context, in *RequestWithdrawalRequest, opts ...grpc.CallOption) (*RequestWithdrawalResponse, error)
RequestWithdrawal mocks base method.
type MockNodeGuardServiceClientMockRecorder ¶
type MockNodeGuardServiceClientMockRecorder struct {
// contains filtered or unexported fields
}
MockNodeGuardServiceClientMockRecorder is the mock recorder for MockNodeGuardServiceClient.
func (*MockNodeGuardServiceClientMockRecorder) AddLiquidityRule ¶
func (mr *MockNodeGuardServiceClientMockRecorder) AddLiquidityRule(ctx, in any, opts ...any) *gomock.Call
AddLiquidityRule indicates an expected call of AddLiquidityRule.
func (*MockNodeGuardServiceClientMockRecorder) AddNode ¶
func (mr *MockNodeGuardServiceClientMockRecorder) AddNode(ctx, in any, opts ...any) *gomock.Call
AddNode indicates an expected call of AddNode.
func (*MockNodeGuardServiceClientMockRecorder) CloseChannel ¶
func (mr *MockNodeGuardServiceClientMockRecorder) CloseChannel(ctx, in any, opts ...any) *gomock.Call
CloseChannel indicates an expected call of CloseChannel.
func (*MockNodeGuardServiceClientMockRecorder) GetAvailableUtxos ¶
func (mr *MockNodeGuardServiceClientMockRecorder) GetAvailableUtxos(ctx, in any, opts ...any) *gomock.Call
GetAvailableUtxos indicates an expected call of GetAvailableUtxos.
func (*MockNodeGuardServiceClientMockRecorder) GetAvailableWallets ¶
func (mr *MockNodeGuardServiceClientMockRecorder) GetAvailableWallets(ctx, in any, opts ...any) *gomock.Call
GetAvailableWallets indicates an expected call of GetAvailableWallets.
func (*MockNodeGuardServiceClientMockRecorder) GetChannel ¶
func (mr *MockNodeGuardServiceClientMockRecorder) GetChannel(ctx, in any, opts ...any) *gomock.Call
GetChannel indicates an expected call of GetChannel.
func (*MockNodeGuardServiceClientMockRecorder) GetChannelOperationRequest ¶
func (mr *MockNodeGuardServiceClientMockRecorder) GetChannelOperationRequest(ctx, in any, opts ...any) *gomock.Call
GetChannelOperationRequest indicates an expected call of GetChannelOperationRequest.
func (*MockNodeGuardServiceClientMockRecorder) GetLiquidityRules ¶
func (mr *MockNodeGuardServiceClientMockRecorder) GetLiquidityRules(ctx, in any, opts ...any) *gomock.Call
GetLiquidityRules indicates an expected call of GetLiquidityRules.
func (*MockNodeGuardServiceClientMockRecorder) GetNewWalletAddress ¶
func (mr *MockNodeGuardServiceClientMockRecorder) GetNewWalletAddress(ctx, in any, opts ...any) *gomock.Call
GetNewWalletAddress indicates an expected call of GetNewWalletAddress.
func (*MockNodeGuardServiceClientMockRecorder) GetNodes ¶
func (mr *MockNodeGuardServiceClientMockRecorder) GetNodes(ctx, in any, opts ...any) *gomock.Call
GetNodes indicates an expected call of GetNodes.
func (*MockNodeGuardServiceClientMockRecorder) GetWithdrawalsRequestStatus ¶
func (mr *MockNodeGuardServiceClientMockRecorder) GetWithdrawalsRequestStatus(ctx, in any, opts ...any) *gomock.Call
GetWithdrawalsRequestStatus indicates an expected call of GetWithdrawalsRequestStatus.
func (*MockNodeGuardServiceClientMockRecorder) OpenChannel ¶
func (mr *MockNodeGuardServiceClientMockRecorder) OpenChannel(ctx, in any, opts ...any) *gomock.Call
OpenChannel indicates an expected call of OpenChannel.
func (*MockNodeGuardServiceClientMockRecorder) RequestWithdrawal ¶
func (mr *MockNodeGuardServiceClientMockRecorder) RequestWithdrawal(ctx, in any, opts ...any) *gomock.Call
RequestWithdrawal indicates an expected call of RequestWithdrawal.
type MockNodeGuardServiceServer ¶
type MockNodeGuardServiceServer struct {
// contains filtered or unexported fields
}
MockNodeGuardServiceServer is a mock of NodeGuardServiceServer interface.
func NewMockNodeGuardServiceServer ¶
func NewMockNodeGuardServiceServer(ctrl *gomock.Controller) *MockNodeGuardServiceServer
NewMockNodeGuardServiceServer creates a new mock instance.
func (*MockNodeGuardServiceServer) AddLiquidityRule ¶
func (m *MockNodeGuardServiceServer) AddLiquidityRule(arg0 context.Context, arg1 *AddLiquidityRuleRequest) (*AddLiquidityRuleResponse, error)
AddLiquidityRule mocks base method.
func (*MockNodeGuardServiceServer) AddNode ¶
func (m *MockNodeGuardServiceServer) AddNode(arg0 context.Context, arg1 *AddNodeRequest) (*AddNodeResponse, error)
AddNode mocks base method.
func (*MockNodeGuardServiceServer) CloseChannel ¶
func (m *MockNodeGuardServiceServer) CloseChannel(arg0 context.Context, arg1 *CloseChannelRequest) (*CloseChannelResponse, error)
CloseChannel mocks base method.
func (*MockNodeGuardServiceServer) EXPECT ¶
func (m *MockNodeGuardServiceServer) EXPECT() *MockNodeGuardServiceServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockNodeGuardServiceServer) GetAvailableUtxos ¶
func (m *MockNodeGuardServiceServer) GetAvailableUtxos(arg0 context.Context, arg1 *GetAvailableUtxosRequest) (*GetAvailableUtxosResponse, error)
GetAvailableUtxos mocks base method.
func (*MockNodeGuardServiceServer) GetAvailableWallets ¶
func (m *MockNodeGuardServiceServer) GetAvailableWallets(arg0 context.Context, arg1 *GetAvailableWalletsRequest) (*GetAvailableWalletsResponse, error)
GetAvailableWallets mocks base method.
func (*MockNodeGuardServiceServer) GetChannel ¶
func (m *MockNodeGuardServiceServer) GetChannel(arg0 context.Context, arg1 *GetChannelRequest) (*GetChannelResponse, error)
GetChannel mocks base method.
func (*MockNodeGuardServiceServer) GetChannelOperationRequest ¶
func (m *MockNodeGuardServiceServer) GetChannelOperationRequest(arg0 context.Context, arg1 *GetChannelOperationRequestRequest) (*GetChannelOperationRequestResponse, error)
GetChannelOperationRequest mocks base method.
func (*MockNodeGuardServiceServer) GetLiquidityRules ¶
func (m *MockNodeGuardServiceServer) GetLiquidityRules(arg0 context.Context, arg1 *GetLiquidityRulesRequest) (*GetLiquidityRulesResponse, error)
GetLiquidityRules mocks base method.
func (*MockNodeGuardServiceServer) GetNewWalletAddress ¶
func (m *MockNodeGuardServiceServer) GetNewWalletAddress(arg0 context.Context, arg1 *GetNewWalletAddressRequest) (*GetNewWalletAddressResponse, error)
GetNewWalletAddress mocks base method.
func (*MockNodeGuardServiceServer) GetNodes ¶
func (m *MockNodeGuardServiceServer) GetNodes(arg0 context.Context, arg1 *GetNodesRequest) (*GetNodesResponse, error)
GetNodes mocks base method.
func (*MockNodeGuardServiceServer) GetWithdrawalsRequestStatus ¶
func (m *MockNodeGuardServiceServer) GetWithdrawalsRequestStatus(arg0 context.Context, arg1 *GetWithdrawalsRequestStatusRequest) (*GetWithdrawalsRequestStatusResponse, error)
GetWithdrawalsRequestStatus mocks base method.
func (*MockNodeGuardServiceServer) OpenChannel ¶
func (m *MockNodeGuardServiceServer) OpenChannel(arg0 context.Context, arg1 *OpenChannelRequest) (*OpenChannelResponse, error)
OpenChannel mocks base method.
func (*MockNodeGuardServiceServer) RequestWithdrawal ¶
func (m *MockNodeGuardServiceServer) RequestWithdrawal(arg0 context.Context, arg1 *RequestWithdrawalRequest) (*RequestWithdrawalResponse, error)
RequestWithdrawal mocks base method.
type MockNodeGuardServiceServerMockRecorder ¶
type MockNodeGuardServiceServerMockRecorder struct {
// contains filtered or unexported fields
}
MockNodeGuardServiceServerMockRecorder is the mock recorder for MockNodeGuardServiceServer.
func (*MockNodeGuardServiceServerMockRecorder) AddLiquidityRule ¶
func (mr *MockNodeGuardServiceServerMockRecorder) AddLiquidityRule(arg0, arg1 any) *gomock.Call
AddLiquidityRule indicates an expected call of AddLiquidityRule.
func (*MockNodeGuardServiceServerMockRecorder) AddNode ¶
func (mr *MockNodeGuardServiceServerMockRecorder) AddNode(arg0, arg1 any) *gomock.Call
AddNode indicates an expected call of AddNode.
func (*MockNodeGuardServiceServerMockRecorder) CloseChannel ¶
func (mr *MockNodeGuardServiceServerMockRecorder) CloseChannel(arg0, arg1 any) *gomock.Call
CloseChannel indicates an expected call of CloseChannel.
func (*MockNodeGuardServiceServerMockRecorder) GetAvailableUtxos ¶
func (mr *MockNodeGuardServiceServerMockRecorder) GetAvailableUtxos(arg0, arg1 any) *gomock.Call
GetAvailableUtxos indicates an expected call of GetAvailableUtxos.
func (*MockNodeGuardServiceServerMockRecorder) GetAvailableWallets ¶
func (mr *MockNodeGuardServiceServerMockRecorder) GetAvailableWallets(arg0, arg1 any) *gomock.Call
GetAvailableWallets indicates an expected call of GetAvailableWallets.
func (*MockNodeGuardServiceServerMockRecorder) GetChannel ¶
func (mr *MockNodeGuardServiceServerMockRecorder) GetChannel(arg0, arg1 any) *gomock.Call
GetChannel indicates an expected call of GetChannel.
func (*MockNodeGuardServiceServerMockRecorder) GetChannelOperationRequest ¶
func (mr *MockNodeGuardServiceServerMockRecorder) GetChannelOperationRequest(arg0, arg1 any) *gomock.Call
GetChannelOperationRequest indicates an expected call of GetChannelOperationRequest.
func (*MockNodeGuardServiceServerMockRecorder) GetLiquidityRules ¶
func (mr *MockNodeGuardServiceServerMockRecorder) GetLiquidityRules(arg0, arg1 any) *gomock.Call
GetLiquidityRules indicates an expected call of GetLiquidityRules.
func (*MockNodeGuardServiceServerMockRecorder) GetNewWalletAddress ¶
func (mr *MockNodeGuardServiceServerMockRecorder) GetNewWalletAddress(arg0, arg1 any) *gomock.Call
GetNewWalletAddress indicates an expected call of GetNewWalletAddress.
func (*MockNodeGuardServiceServerMockRecorder) GetNodes ¶
func (mr *MockNodeGuardServiceServerMockRecorder) GetNodes(arg0, arg1 any) *gomock.Call
GetNodes indicates an expected call of GetNodes.
func (*MockNodeGuardServiceServerMockRecorder) GetWithdrawalsRequestStatus ¶
func (mr *MockNodeGuardServiceServerMockRecorder) GetWithdrawalsRequestStatus(arg0, arg1 any) *gomock.Call
GetWithdrawalsRequestStatus indicates an expected call of GetWithdrawalsRequestStatus.
func (*MockNodeGuardServiceServerMockRecorder) OpenChannel ¶
func (mr *MockNodeGuardServiceServerMockRecorder) OpenChannel(arg0, arg1 any) *gomock.Call
OpenChannel indicates an expected call of OpenChannel.
func (*MockNodeGuardServiceServerMockRecorder) RequestWithdrawal ¶
func (mr *MockNodeGuardServiceServerMockRecorder) RequestWithdrawal(arg0, arg1 any) *gomock.Call
RequestWithdrawal indicates an expected call of RequestWithdrawal.
type MockUnsafeNodeGuardServiceServer ¶
type MockUnsafeNodeGuardServiceServer struct {
// contains filtered or unexported fields
}
MockUnsafeNodeGuardServiceServer is a mock of UnsafeNodeGuardServiceServer interface.
func NewMockUnsafeNodeGuardServiceServer ¶
func NewMockUnsafeNodeGuardServiceServer(ctrl *gomock.Controller) *MockUnsafeNodeGuardServiceServer
NewMockUnsafeNodeGuardServiceServer creates a new mock instance.
func (*MockUnsafeNodeGuardServiceServer) EXPECT ¶
func (m *MockUnsafeNodeGuardServiceServer) EXPECT() *MockUnsafeNodeGuardServiceServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockUnsafeNodeGuardServiceServerMockRecorder ¶
type MockUnsafeNodeGuardServiceServerMockRecorder struct {
// contains filtered or unexported fields
}
MockUnsafeNodeGuardServiceServerMockRecorder is the mock recorder for MockUnsafeNodeGuardServiceServer.
type Node ¶
type Node struct { // Node Id as in NodeGuard's database Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` PubKey string `protobuf:"bytes,2,opt,name=pub_key,json=pubKey,proto3" json:"pub_key,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` // Endpoint of the node in the form of host:port (gRPC) Endpoint string `protobuf:"bytes,5,opt,name=endpoint,proto3" json:"endpoint,omitempty"` // Whether this node's hot wallet should be autoswept to the returning funds // wallet AutosweepEnabled bool `protobuf:"varint,6,opt,name=autosweep_enabled,json=autosweepEnabled,proto3" json:"autosweep_enabled,omitempty"` // Wallet ID as stored in the NG's database for use in autosweep ops ReturningFundsWalletId int32 `` /* 132-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Node) Descriptor
deprecated
func (*Node) GetAutosweepEnabled ¶
func (*Node) GetDescription ¶
func (*Node) GetEndpoint ¶
func (*Node) GetReturningFundsWalletId ¶
func (*Node) ProtoMessage ¶
func (*Node) ProtoMessage()
func (*Node) ProtoReflect ¶
func (x *Node) ProtoReflect() protoreflect.Message
type NodeGuardServiceClient ¶
type NodeGuardServiceClient interface { // Returns the liquidity rules associated to a node and its channels GetLiquidityRules(ctx context.Context, in *GetLiquidityRulesRequest, opts ...grpc.CallOption) (*GetLiquidityRulesResponse, error) // Returns a new unused BTC Address of a given wallet GetNewWalletAddress(ctx context.Context, in *GetNewWalletAddressRequest, opts ...grpc.CallOption) (*GetNewWalletAddressResponse, error) // Withdraws funds from a given wallet to a given address RequestWithdrawal(ctx context.Context, in *RequestWithdrawalRequest, opts ...grpc.CallOption) (*RequestWithdrawalResponse, error) // Adds a new node to the nodeguard AddNode(ctx context.Context, in *AddNodeRequest, opts ...grpc.CallOption) (*AddNodeResponse, error) // Gets a list of nodes GetNodes(ctx context.Context, in *GetNodesRequest, opts ...grpc.CallOption) (*GetNodesResponse, error) // Gets a list of available wallets GetAvailableWallets(ctx context.Context, in *GetAvailableWalletsRequest, opts ...grpc.CallOption) (*GetAvailableWalletsResponse, error) // Opens a channel to a given node OpenChannel(ctx context.Context, in *OpenChannelRequest, opts ...grpc.CallOption) (*OpenChannelResponse, error) // Closes a channel to a given node CloseChannel(ctx context.Context, in *CloseChannelRequest, opts ...grpc.CallOption) (*CloseChannelResponse, error) // Gets a list of channel operations requests by id GetChannelOperationRequest(ctx context.Context, in *GetChannelOperationRequestRequest, opts ...grpc.CallOption) (*GetChannelOperationRequestResponse, error) // Adds a liquidity rule to a channel AddLiquidityRule(ctx context.Context, in *AddLiquidityRuleRequest, opts ...grpc.CallOption) (*AddLiquidityRuleResponse, error) // Gets a list of available UTXOs for a wallet GetAvailableUtxos(ctx context.Context, in *GetAvailableUtxosRequest, opts ...grpc.CallOption) (*GetAvailableUtxosResponse, error) // Gets the status for the provided withdrawals request ids GetWithdrawalsRequestStatus(ctx context.Context, in *GetWithdrawalsRequestStatusRequest, opts ...grpc.CallOption) (*GetWithdrawalsRequestStatusResponse, error) // Gets a channel by id GetChannel(ctx context.Context, in *GetChannelRequest, opts ...grpc.CallOption) (*GetChannelResponse, error) }
NodeGuardServiceClient is the client API for NodeGuardService 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 NewNodeGuardServiceClient ¶
func NewNodeGuardServiceClient(cc grpc.ClientConnInterface) NodeGuardServiceClient
type NodeGuardServiceServer ¶
type NodeGuardServiceServer interface { // Returns the liquidity rules associated to a node and its channels GetLiquidityRules(context.Context, *GetLiquidityRulesRequest) (*GetLiquidityRulesResponse, error) // Returns a new unused BTC Address of a given wallet GetNewWalletAddress(context.Context, *GetNewWalletAddressRequest) (*GetNewWalletAddressResponse, error) // Withdraws funds from a given wallet to a given address RequestWithdrawal(context.Context, *RequestWithdrawalRequest) (*RequestWithdrawalResponse, error) // Adds a new node to the nodeguard AddNode(context.Context, *AddNodeRequest) (*AddNodeResponse, error) // Gets a list of nodes GetNodes(context.Context, *GetNodesRequest) (*GetNodesResponse, error) // Gets a list of available wallets GetAvailableWallets(context.Context, *GetAvailableWalletsRequest) (*GetAvailableWalletsResponse, error) // Opens a channel to a given node OpenChannel(context.Context, *OpenChannelRequest) (*OpenChannelResponse, error) // Closes a channel to a given node CloseChannel(context.Context, *CloseChannelRequest) (*CloseChannelResponse, error) // Gets a list of channel operations requests by id GetChannelOperationRequest(context.Context, *GetChannelOperationRequestRequest) (*GetChannelOperationRequestResponse, error) // Adds a liquidity rule to a channel AddLiquidityRule(context.Context, *AddLiquidityRuleRequest) (*AddLiquidityRuleResponse, error) // Gets a list of available UTXOs for a wallet GetAvailableUtxos(context.Context, *GetAvailableUtxosRequest) (*GetAvailableUtxosResponse, error) // Gets the status for the provided withdrawals request ids GetWithdrawalsRequestStatus(context.Context, *GetWithdrawalsRequestStatusRequest) (*GetWithdrawalsRequestStatusResponse, error) // Gets a channel by id GetChannel(context.Context, *GetChannelRequest) (*GetChannelResponse, error) // contains filtered or unexported methods }
NodeGuardServiceServer is the server API for NodeGuardService service. All implementations must embed UnimplementedNodeGuardServiceServer for forward compatibility
type OpenChannelRequest ¶
type OpenChannelRequest struct { // Source node pubkey SourcePubKey string `protobuf:"bytes,5,opt,name=source_pub_key,json=sourcePubKey,proto3" json:"source_pub_key,omitempty"` // Destination node pubkey DestinationPubKey string `protobuf:"bytes,1,opt,name=destination_pub_key,json=destinationPubKey,proto3" json:"destination_pub_key,omitempty"` // Wallet ID as stored in the NG's database WalletId int32 `protobuf:"varint,2,opt,name=wallet_id,json=walletId,proto3" json:"wallet_id,omitempty"` // Amount in satoshis SatsAmount int64 `protobuf:"varint,3,opt,name=sats_amount,json=satsAmount,proto3" json:"sats_amount,omitempty"` // Whether the channel should be private Private bool `protobuf:"varint,4,opt,name=private,proto3" json:"private,omitempty"` // Whether the channel should be created in a changeless way Changeless bool `protobuf:"varint,6,opt,name=changeless,proto3" json:"changeless,omitempty"` // Outpoints for the UTXOs to use for the channel UtxosOutpoints []string `protobuf:"bytes,7,rep,name=utxos_outpoints,json=utxosOutpoints,proto3" json:"utxos_outpoints,omitempty"` // MempoolRecommended fee rate MempoolFeeRate FEES_TYPE `` /* 131-byte string literal not displayed */ // Fee rate in sat/vbyte CustomFeeRate *int32 `protobuf:"varint,9,opt,name=custom_fee_rate,json=customFeeRate,proto3,oneof" json:"custom_fee_rate,omitempty"` // contains filtered or unexported fields }
func (*OpenChannelRequest) Descriptor
deprecated
func (*OpenChannelRequest) Descriptor() ([]byte, []int)
Deprecated: Use OpenChannelRequest.ProtoReflect.Descriptor instead.
func (*OpenChannelRequest) GetChangeless ¶
func (x *OpenChannelRequest) GetChangeless() bool
func (*OpenChannelRequest) GetCustomFeeRate ¶
func (x *OpenChannelRequest) GetCustomFeeRate() int32
func (*OpenChannelRequest) GetDestinationPubKey ¶
func (x *OpenChannelRequest) GetDestinationPubKey() string
func (*OpenChannelRequest) GetMempoolFeeRate ¶
func (x *OpenChannelRequest) GetMempoolFeeRate() FEES_TYPE
func (*OpenChannelRequest) GetPrivate ¶
func (x *OpenChannelRequest) GetPrivate() bool
func (*OpenChannelRequest) GetSatsAmount ¶
func (x *OpenChannelRequest) GetSatsAmount() int64
func (*OpenChannelRequest) GetSourcePubKey ¶
func (x *OpenChannelRequest) GetSourcePubKey() string
func (*OpenChannelRequest) GetUtxosOutpoints ¶
func (x *OpenChannelRequest) GetUtxosOutpoints() []string
func (*OpenChannelRequest) GetWalletId ¶
func (x *OpenChannelRequest) GetWalletId() int32
func (*OpenChannelRequest) ProtoMessage ¶
func (*OpenChannelRequest) ProtoMessage()
func (*OpenChannelRequest) ProtoReflect ¶
func (x *OpenChannelRequest) ProtoReflect() protoreflect.Message
func (*OpenChannelRequest) Reset ¶
func (x *OpenChannelRequest) Reset()
func (*OpenChannelRequest) String ¶
func (x *OpenChannelRequest) String() string
type OpenChannelResponse ¶
type OpenChannelResponse struct { ChannelOperationRequestId int32 `` /* 141-byte string literal not displayed */ // contains filtered or unexported fields }
A successful response returns the channel_operation_request_id but it does NOT indicate that the channel has been open, external monitoring is required
func (*OpenChannelResponse) Descriptor
deprecated
func (*OpenChannelResponse) Descriptor() ([]byte, []int)
Deprecated: Use OpenChannelResponse.ProtoReflect.Descriptor instead.
func (*OpenChannelResponse) GetChannelOperationRequestId ¶
func (x *OpenChannelResponse) GetChannelOperationRequestId() int32
func (*OpenChannelResponse) ProtoMessage ¶
func (*OpenChannelResponse) ProtoMessage()
func (*OpenChannelResponse) ProtoReflect ¶
func (x *OpenChannelResponse) ProtoReflect() protoreflect.Message
func (*OpenChannelResponse) Reset ¶
func (x *OpenChannelResponse) Reset()
func (*OpenChannelResponse) String ¶
func (x *OpenChannelResponse) String() string
type RequestWithdrawalRequest ¶
type RequestWithdrawalRequest struct { WalletId int32 `protobuf:"varint,1,opt,name=wallet_id,json=walletId,proto3" json:"wallet_id,omitempty"` Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` // Amount in satoshis Amount int64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` // in JSON format RequestMetadata string `protobuf:"bytes,5,opt,name=request_metadata,json=requestMetadata,proto3" json:"request_metadata,omitempty"` // Whether the withdrawal should be performed in a changeless way Changeless bool `protobuf:"varint,6,opt,name=changeless,proto3" json:"changeless,omitempty"` // Outpoints for the UTXOs to use for the withdrawal UtxosOutpoints []string `protobuf:"bytes,7,rep,name=utxos_outpoints,json=utxosOutpoints,proto3" json:"utxos_outpoints,omitempty"` // MempoolRecommended fee rate MempoolFeeRate FEES_TYPE `` /* 131-byte string literal not displayed */ // Fee rate in sat/vbyte CustomFeeRate *int32 `protobuf:"varint,9,opt,name=custom_fee_rate,json=customFeeRate,proto3,oneof" json:"custom_fee_rate,omitempty"` // contains filtered or unexported fields }
func (*RequestWithdrawalRequest) Descriptor
deprecated
func (*RequestWithdrawalRequest) Descriptor() ([]byte, []int)
Deprecated: Use RequestWithdrawalRequest.ProtoReflect.Descriptor instead.
func (*RequestWithdrawalRequest) GetAddress ¶
func (x *RequestWithdrawalRequest) GetAddress() string
func (*RequestWithdrawalRequest) GetAmount ¶
func (x *RequestWithdrawalRequest) GetAmount() int64
func (*RequestWithdrawalRequest) GetChangeless ¶
func (x *RequestWithdrawalRequest) GetChangeless() bool
func (*RequestWithdrawalRequest) GetCustomFeeRate ¶
func (x *RequestWithdrawalRequest) GetCustomFeeRate() int32
func (*RequestWithdrawalRequest) GetDescription ¶
func (x *RequestWithdrawalRequest) GetDescription() string
func (*RequestWithdrawalRequest) GetMempoolFeeRate ¶
func (x *RequestWithdrawalRequest) GetMempoolFeeRate() FEES_TYPE
func (*RequestWithdrawalRequest) GetRequestMetadata ¶
func (x *RequestWithdrawalRequest) GetRequestMetadata() string
func (*RequestWithdrawalRequest) GetUtxosOutpoints ¶
func (x *RequestWithdrawalRequest) GetUtxosOutpoints() []string
func (*RequestWithdrawalRequest) GetWalletId ¶
func (x *RequestWithdrawalRequest) GetWalletId() int32
func (*RequestWithdrawalRequest) ProtoMessage ¶
func (*RequestWithdrawalRequest) ProtoMessage()
func (*RequestWithdrawalRequest) ProtoReflect ¶
func (x *RequestWithdrawalRequest) ProtoReflect() protoreflect.Message
func (*RequestWithdrawalRequest) Reset ¶
func (x *RequestWithdrawalRequest) Reset()
func (*RequestWithdrawalRequest) String ¶
func (x *RequestWithdrawalRequest) String() string
type RequestWithdrawalResponse ¶
type RequestWithdrawalResponse struct { // optionalTransaction ID of the withdrawal Txid string `protobuf:"bytes,1,opt,name=txid,proto3" json:"txid,omitempty"` IsHotWallet bool `protobuf:"varint,2,opt,name=is_hot_wallet,json=isHotWallet,proto3" json:"is_hot_wallet,omitempty"` RequestId int32 `protobuf:"varint,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` // contains filtered or unexported fields }
func (*RequestWithdrawalResponse) Descriptor
deprecated
func (*RequestWithdrawalResponse) Descriptor() ([]byte, []int)
Deprecated: Use RequestWithdrawalResponse.ProtoReflect.Descriptor instead.
func (*RequestWithdrawalResponse) GetIsHotWallet ¶
func (x *RequestWithdrawalResponse) GetIsHotWallet() bool
func (*RequestWithdrawalResponse) GetRequestId ¶
func (x *RequestWithdrawalResponse) GetRequestId() int32
func (*RequestWithdrawalResponse) GetTxid ¶
func (x *RequestWithdrawalResponse) GetTxid() string
func (*RequestWithdrawalResponse) ProtoMessage ¶
func (*RequestWithdrawalResponse) ProtoMessage()
func (*RequestWithdrawalResponse) ProtoReflect ¶
func (x *RequestWithdrawalResponse) ProtoReflect() protoreflect.Message
func (*RequestWithdrawalResponse) Reset ¶
func (x *RequestWithdrawalResponse) Reset()
func (*RequestWithdrawalResponse) String ¶
func (x *RequestWithdrawalResponse) String() string
type UnimplementedNodeGuardServiceServer ¶
type UnimplementedNodeGuardServiceServer struct { }
UnimplementedNodeGuardServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedNodeGuardServiceServer) AddLiquidityRule ¶
func (UnimplementedNodeGuardServiceServer) AddLiquidityRule(context.Context, *AddLiquidityRuleRequest) (*AddLiquidityRuleResponse, error)
func (UnimplementedNodeGuardServiceServer) AddNode ¶
func (UnimplementedNodeGuardServiceServer) AddNode(context.Context, *AddNodeRequest) (*AddNodeResponse, error)
func (UnimplementedNodeGuardServiceServer) CloseChannel ¶
func (UnimplementedNodeGuardServiceServer) CloseChannel(context.Context, *CloseChannelRequest) (*CloseChannelResponse, error)
func (UnimplementedNodeGuardServiceServer) GetAvailableUtxos ¶
func (UnimplementedNodeGuardServiceServer) GetAvailableUtxos(context.Context, *GetAvailableUtxosRequest) (*GetAvailableUtxosResponse, error)
func (UnimplementedNodeGuardServiceServer) GetAvailableWallets ¶
func (UnimplementedNodeGuardServiceServer) GetAvailableWallets(context.Context, *GetAvailableWalletsRequest) (*GetAvailableWalletsResponse, error)
func (UnimplementedNodeGuardServiceServer) GetChannel ¶
func (UnimplementedNodeGuardServiceServer) GetChannel(context.Context, *GetChannelRequest) (*GetChannelResponse, error)
func (UnimplementedNodeGuardServiceServer) GetChannelOperationRequest ¶
func (UnimplementedNodeGuardServiceServer) GetChannelOperationRequest(context.Context, *GetChannelOperationRequestRequest) (*GetChannelOperationRequestResponse, error)
func (UnimplementedNodeGuardServiceServer) GetLiquidityRules ¶
func (UnimplementedNodeGuardServiceServer) GetLiquidityRules(context.Context, *GetLiquidityRulesRequest) (*GetLiquidityRulesResponse, error)
func (UnimplementedNodeGuardServiceServer) GetNewWalletAddress ¶
func (UnimplementedNodeGuardServiceServer) GetNewWalletAddress(context.Context, *GetNewWalletAddressRequest) (*GetNewWalletAddressResponse, error)
func (UnimplementedNodeGuardServiceServer) GetNodes ¶
func (UnimplementedNodeGuardServiceServer) GetNodes(context.Context, *GetNodesRequest) (*GetNodesResponse, error)
func (UnimplementedNodeGuardServiceServer) GetWithdrawalsRequestStatus ¶
func (UnimplementedNodeGuardServiceServer) GetWithdrawalsRequestStatus(context.Context, *GetWithdrawalsRequestStatusRequest) (*GetWithdrawalsRequestStatusResponse, error)
func (UnimplementedNodeGuardServiceServer) OpenChannel ¶
func (UnimplementedNodeGuardServiceServer) OpenChannel(context.Context, *OpenChannelRequest) (*OpenChannelResponse, error)
func (UnimplementedNodeGuardServiceServer) RequestWithdrawal ¶
func (UnimplementedNodeGuardServiceServer) RequestWithdrawal(context.Context, *RequestWithdrawalRequest) (*RequestWithdrawalResponse, error)
type UnsafeNodeGuardServiceServer ¶
type UnsafeNodeGuardServiceServer interface {
// contains filtered or unexported methods
}
UnsafeNodeGuardServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to NodeGuardServiceServer will result in compilation errors.
type Utxo ¶
type Utxo struct { Amount int64 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"` Outpoint string `protobuf:"bytes,2,opt,name=outpoint,proto3" json:"outpoint,omitempty"` // contains filtered or unexported fields }
func (*Utxo) Descriptor
deprecated
func (*Utxo) GetOutpoint ¶
func (*Utxo) ProtoMessage ¶
func (*Utxo) ProtoMessage()
func (*Utxo) ProtoReflect ¶
func (x *Utxo) ProtoReflect() protoreflect.Message
type WALLET_TYPE ¶
type WALLET_TYPE int32
const ( WALLET_TYPE_BOTH WALLET_TYPE = 0 WALLET_TYPE_HOT WALLET_TYPE = 1 WALLET_TYPE_COLD WALLET_TYPE = 2 )
func (WALLET_TYPE) Descriptor ¶
func (WALLET_TYPE) Descriptor() protoreflect.EnumDescriptor
func (WALLET_TYPE) Enum ¶
func (x WALLET_TYPE) Enum() *WALLET_TYPE
func (WALLET_TYPE) EnumDescriptor
deprecated
func (WALLET_TYPE) EnumDescriptor() ([]byte, []int)
Deprecated: Use WALLET_TYPE.Descriptor instead.
func (WALLET_TYPE) Number ¶
func (x WALLET_TYPE) Number() protoreflect.EnumNumber
func (WALLET_TYPE) String ¶
func (x WALLET_TYPE) String() string
func (WALLET_TYPE) Type ¶
func (WALLET_TYPE) Type() protoreflect.EnumType
type WITHDRAWAL_REQUEST_STATUS ¶
type WITHDRAWAL_REQUEST_STATUS int32
const ( WITHDRAWAL_REQUEST_STATUS_WITHDRAWAL_SETTLED WITHDRAWAL_REQUEST_STATUS = 0 WITHDRAWAL_REQUEST_STATUS_WITHDRAWAL_PENDING_APPROVAL WITHDRAWAL_REQUEST_STATUS = 1 WITHDRAWAL_REQUEST_STATUS_WITHDRAWAL_CANCELLED WITHDRAWAL_REQUEST_STATUS = 2 WITHDRAWAL_REQUEST_STATUS_WITHDRAWAL_REJECTED WITHDRAWAL_REQUEST_STATUS = 3 WITHDRAWAL_REQUEST_STATUS_WITHDRAWAL_PENDING_CONFIRMATION WITHDRAWAL_REQUEST_STATUS = 4 WITHDRAWAL_REQUEST_STATUS_WITHDRAWAL_FAILED WITHDRAWAL_REQUEST_STATUS = 5 )
func (WITHDRAWAL_REQUEST_STATUS) Descriptor ¶
func (WITHDRAWAL_REQUEST_STATUS) Descriptor() protoreflect.EnumDescriptor
func (WITHDRAWAL_REQUEST_STATUS) Enum ¶
func (x WITHDRAWAL_REQUEST_STATUS) Enum() *WITHDRAWAL_REQUEST_STATUS
func (WITHDRAWAL_REQUEST_STATUS) EnumDescriptor
deprecated
func (WITHDRAWAL_REQUEST_STATUS) EnumDescriptor() ([]byte, []int)
Deprecated: Use WITHDRAWAL_REQUEST_STATUS.Descriptor instead.
func (WITHDRAWAL_REQUEST_STATUS) Number ¶
func (x WITHDRAWAL_REQUEST_STATUS) Number() protoreflect.EnumNumber
func (WITHDRAWAL_REQUEST_STATUS) String ¶
func (x WITHDRAWAL_REQUEST_STATUS) String() string
func (WITHDRAWAL_REQUEST_STATUS) Type ¶
func (WITHDRAWAL_REQUEST_STATUS) Type() protoreflect.EnumType
type Wallet ¶
type Wallet struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` IsHotWallet bool `protobuf:"varint,3,opt,name=is_hot_wallet,json=isHotWallet,proto3" json:"is_hot_wallet,omitempty"` AccountKeySettings []*AccountKeySettings `protobuf:"bytes,4,rep,name=account_key_settings,json=accountKeySettings,proto3" json:"account_key_settings,omitempty"` Threshold int32 `protobuf:"varint,5,opt,name=threshold,proto3" json:"threshold,omitempty"` // contains filtered or unexported fields }
func (*Wallet) Descriptor
deprecated
func (*Wallet) GetAccountKeySettings ¶
func (x *Wallet) GetAccountKeySettings() []*AccountKeySettings
func (*Wallet) GetIsHotWallet ¶
func (*Wallet) GetThreshold ¶
func (*Wallet) ProtoMessage ¶
func (*Wallet) ProtoMessage()
func (*Wallet) ProtoReflect ¶
func (x *Wallet) ProtoReflect() protoreflect.Message
type WithdrawalRequest ¶
type WithdrawalRequest struct { RequestId int32 `protobuf:"varint,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` Status WITHDRAWAL_REQUEST_STATUS `protobuf:"varint,2,opt,name=status,proto3,enum=nodeguard.WITHDRAWAL_REQUEST_STATUS" json:"status,omitempty"` RejectOrCancelReason *string `` /* 131-byte string literal not displayed */ // contains filtered or unexported fields }
func (*WithdrawalRequest) Descriptor
deprecated
func (*WithdrawalRequest) Descriptor() ([]byte, []int)
Deprecated: Use WithdrawalRequest.ProtoReflect.Descriptor instead.
func (*WithdrawalRequest) GetRejectOrCancelReason ¶
func (x *WithdrawalRequest) GetRejectOrCancelReason() string
func (*WithdrawalRequest) GetRequestId ¶
func (x *WithdrawalRequest) GetRequestId() int32
func (*WithdrawalRequest) GetStatus ¶
func (x *WithdrawalRequest) GetStatus() WITHDRAWAL_REQUEST_STATUS
func (*WithdrawalRequest) ProtoMessage ¶
func (*WithdrawalRequest) ProtoMessage()
func (*WithdrawalRequest) ProtoReflect ¶
func (x *WithdrawalRequest) ProtoReflect() protoreflect.Message
func (*WithdrawalRequest) Reset ¶
func (x *WithdrawalRequest) Reset()
func (*WithdrawalRequest) String ¶
func (x *WithdrawalRequest) String() string