nodeguard

package
v0.0.0-...-76ca6e9 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package nodeguard is a generated GoMock package.

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
var File_nodeguard_proto protoreflect.FileDescriptor
View Source
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) Enum

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 (CHANNEL_OPERATION_STATUS) String

func (x CHANNEL_OPERATION_STATUS) String() string

func (CHANNEL_OPERATION_STATUS) Type

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) Enum

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 (CHANNEL_OPERATION_TYPE) String

func (x CHANNEL_OPERATION_TYPE) String() string

func (CHANNEL_OPERATION_TYPE) Type

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) 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 (CHANNEL_STATUS) String

func (x CHANNEL_STATUS) String() string

func (CHANNEL_STATUS) Type

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) Enum

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 (COIN_SELECTION_STRATEGY) String

func (x COIN_SELECTION_STRATEGY) String() string

func (COIN_SELECTION_STRATEGY) Type

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
const (
	FEES_TYPE_ECONOMY_FEE   FEES_TYPE = 0
	FEES_TYPE_FASTEST_FEE   FEES_TYPE = 1
	FEES_TYPE_HOUR_FEE      FEES_TYPE = 2
	FEES_TYPE_HALF_HOUR_FEE FEES_TYPE = 3
	FEES_TYPE_CUSTOM_FEE    FEES_TYPE = 4
)

func (FEES_TYPE) Descriptor

func (FEES_TYPE) Descriptor() protoreflect.EnumDescriptor

func (FEES_TYPE) Enum

func (x FEES_TYPE) Enum() *FEES_TYPE

func (FEES_TYPE) EnumDescriptor deprecated

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

Deprecated: Use FEES_TYPE.Descriptor instead.

func (FEES_TYPE) Number

func (x FEES_TYPE) Number() protoreflect.EnumNumber

func (FEES_TYPE) String

func (x FEES_TYPE) String() string

func (FEES_TYPE) Type

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 (*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 (*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 (*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 (*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 (*GetChannelOperationRequestRequest) Reset

func (*GetChannelOperationRequestRequest) 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 (*GetChannelOperationRequestResponse) GetJobId

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 (*GetChannelOperationRequestResponse) GetTxId

func (*GetChannelOperationRequestResponse) GetType

func (*GetChannelOperationRequestResponse) GetWalletId

func (x *GetChannelOperationRequestResponse) GetWalletId() int32

func (*GetChannelOperationRequestResponse) ProtoMessage

func (*GetChannelOperationRequestResponse) ProtoMessage()

func (*GetChannelOperationRequestResponse) ProtoReflect

func (*GetChannelOperationRequestResponse) Reset

func (*GetChannelOperationRequestResponse) 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 (*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 (*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 (*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 (*GetWithdrawalsRequestStatusRequest) Reset

func (*GetWithdrawalsRequestStatusRequest) 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 (*GetWithdrawalsRequestStatusResponse) Reset

func (*GetWithdrawalsRequestStatusResponse) String

type LiquidityRule

type LiquidityRule struct {
	ChannelId               uint64  `protobuf:"varint,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"`
	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 */
	// 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) 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

AddLiquidityRule mocks base method.

func (*MockNodeGuardServiceClient) AddNode

AddNode mocks base method.

func (*MockNodeGuardServiceClient) CloseChannel

CloseChannel mocks base method.

func (*MockNodeGuardServiceClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockNodeGuardServiceClient) GetAvailableUtxos

GetAvailableUtxos mocks base method.

func (*MockNodeGuardServiceClient) GetAvailableWallets

GetAvailableWallets mocks base method.

func (*MockNodeGuardServiceClient) GetChannel

GetChannel mocks base method.

func (*MockNodeGuardServiceClient) GetChannelOperationRequest

GetChannelOperationRequest mocks base method.

func (*MockNodeGuardServiceClient) GetLiquidityRules

GetLiquidityRules mocks base method.

func (*MockNodeGuardServiceClient) GetNewWalletAddress

GetNewWalletAddress mocks base method.

func (*MockNodeGuardServiceClient) GetNodes

GetNodes mocks base method.

func (*MockNodeGuardServiceClient) GetWithdrawalsRequestStatus

GetWithdrawalsRequestStatus mocks base method.

func (*MockNodeGuardServiceClient) OpenChannel

OpenChannel mocks base method.

func (*MockNodeGuardServiceClient) RequestWithdrawal

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 interface{}, opts ...interface{}) *gomock.Call

AddLiquidityRule indicates an expected call of AddLiquidityRule.

func (*MockNodeGuardServiceClientMockRecorder) AddNode

func (mr *MockNodeGuardServiceClientMockRecorder) AddNode(ctx, in interface{}, opts ...interface{}) *gomock.Call

AddNode indicates an expected call of AddNode.

func (*MockNodeGuardServiceClientMockRecorder) CloseChannel

func (mr *MockNodeGuardServiceClientMockRecorder) CloseChannel(ctx, in interface{}, opts ...interface{}) *gomock.Call

CloseChannel indicates an expected call of CloseChannel.

func (*MockNodeGuardServiceClientMockRecorder) GetAvailableUtxos

func (mr *MockNodeGuardServiceClientMockRecorder) GetAvailableUtxos(ctx, in interface{}, opts ...interface{}) *gomock.Call

GetAvailableUtxos indicates an expected call of GetAvailableUtxos.

func (*MockNodeGuardServiceClientMockRecorder) GetAvailableWallets

func (mr *MockNodeGuardServiceClientMockRecorder) GetAvailableWallets(ctx, in interface{}, opts ...interface{}) *gomock.Call

GetAvailableWallets indicates an expected call of GetAvailableWallets.

func (*MockNodeGuardServiceClientMockRecorder) GetChannel

func (mr *MockNodeGuardServiceClientMockRecorder) GetChannel(ctx, in interface{}, opts ...interface{}) *gomock.Call

GetChannel indicates an expected call of GetChannel.

func (*MockNodeGuardServiceClientMockRecorder) GetChannelOperationRequest

func (mr *MockNodeGuardServiceClientMockRecorder) GetChannelOperationRequest(ctx, in interface{}, opts ...interface{}) *gomock.Call

GetChannelOperationRequest indicates an expected call of GetChannelOperationRequest.

func (*MockNodeGuardServiceClientMockRecorder) GetLiquidityRules

func (mr *MockNodeGuardServiceClientMockRecorder) GetLiquidityRules(ctx, in interface{}, opts ...interface{}) *gomock.Call

GetLiquidityRules indicates an expected call of GetLiquidityRules.

func (*MockNodeGuardServiceClientMockRecorder) GetNewWalletAddress

func (mr *MockNodeGuardServiceClientMockRecorder) GetNewWalletAddress(ctx, in interface{}, opts ...interface{}) *gomock.Call

GetNewWalletAddress indicates an expected call of GetNewWalletAddress.

func (*MockNodeGuardServiceClientMockRecorder) GetNodes

func (mr *MockNodeGuardServiceClientMockRecorder) GetNodes(ctx, in interface{}, opts ...interface{}) *gomock.Call

GetNodes indicates an expected call of GetNodes.

func (*MockNodeGuardServiceClientMockRecorder) GetWithdrawalsRequestStatus

func (mr *MockNodeGuardServiceClientMockRecorder) GetWithdrawalsRequestStatus(ctx, in interface{}, opts ...interface{}) *gomock.Call

GetWithdrawalsRequestStatus indicates an expected call of GetWithdrawalsRequestStatus.

func (*MockNodeGuardServiceClientMockRecorder) OpenChannel

func (mr *MockNodeGuardServiceClientMockRecorder) OpenChannel(ctx, in interface{}, opts ...interface{}) *gomock.Call

OpenChannel indicates an expected call of OpenChannel.

func (*MockNodeGuardServiceClientMockRecorder) RequestWithdrawal

func (mr *MockNodeGuardServiceClientMockRecorder) RequestWithdrawal(ctx, in interface{}, opts ...interface{}) *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

AddLiquidityRule mocks base method.

func (*MockNodeGuardServiceServer) AddNode

AddNode mocks base method.

func (*MockNodeGuardServiceServer) CloseChannel

CloseChannel mocks base method.

func (*MockNodeGuardServiceServer) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockNodeGuardServiceServer) GetAvailableUtxos

GetAvailableUtxos mocks base method.

func (*MockNodeGuardServiceServer) GetAvailableWallets

GetAvailableWallets mocks base method.

func (*MockNodeGuardServiceServer) GetChannel

GetChannel mocks base method.

func (*MockNodeGuardServiceServer) GetChannelOperationRequest

GetChannelOperationRequest mocks base method.

func (*MockNodeGuardServiceServer) GetLiquidityRules

GetLiquidityRules mocks base method.

func (*MockNodeGuardServiceServer) GetNewWalletAddress

GetNewWalletAddress mocks base method.

func (*MockNodeGuardServiceServer) GetNodes

GetNodes mocks base method.

func (*MockNodeGuardServiceServer) GetWithdrawalsRequestStatus

GetWithdrawalsRequestStatus mocks base method.

func (*MockNodeGuardServiceServer) OpenChannel

OpenChannel mocks base method.

func (*MockNodeGuardServiceServer) RequestWithdrawal

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 interface{}) *gomock.Call

AddLiquidityRule indicates an expected call of AddLiquidityRule.

func (*MockNodeGuardServiceServerMockRecorder) AddNode

func (mr *MockNodeGuardServiceServerMockRecorder) AddNode(arg0, arg1 interface{}) *gomock.Call

AddNode indicates an expected call of AddNode.

func (*MockNodeGuardServiceServerMockRecorder) CloseChannel

func (mr *MockNodeGuardServiceServerMockRecorder) CloseChannel(arg0, arg1 interface{}) *gomock.Call

CloseChannel indicates an expected call of CloseChannel.

func (*MockNodeGuardServiceServerMockRecorder) GetAvailableUtxos

func (mr *MockNodeGuardServiceServerMockRecorder) GetAvailableUtxos(arg0, arg1 interface{}) *gomock.Call

GetAvailableUtxos indicates an expected call of GetAvailableUtxos.

func (*MockNodeGuardServiceServerMockRecorder) GetAvailableWallets

func (mr *MockNodeGuardServiceServerMockRecorder) GetAvailableWallets(arg0, arg1 interface{}) *gomock.Call

GetAvailableWallets indicates an expected call of GetAvailableWallets.

func (*MockNodeGuardServiceServerMockRecorder) GetChannel

func (mr *MockNodeGuardServiceServerMockRecorder) GetChannel(arg0, arg1 interface{}) *gomock.Call

GetChannel indicates an expected call of GetChannel.

func (*MockNodeGuardServiceServerMockRecorder) GetChannelOperationRequest

func (mr *MockNodeGuardServiceServerMockRecorder) GetChannelOperationRequest(arg0, arg1 interface{}) *gomock.Call

GetChannelOperationRequest indicates an expected call of GetChannelOperationRequest.

func (*MockNodeGuardServiceServerMockRecorder) GetLiquidityRules

func (mr *MockNodeGuardServiceServerMockRecorder) GetLiquidityRules(arg0, arg1 interface{}) *gomock.Call

GetLiquidityRules indicates an expected call of GetLiquidityRules.

func (*MockNodeGuardServiceServerMockRecorder) GetNewWalletAddress

func (mr *MockNodeGuardServiceServerMockRecorder) GetNewWalletAddress(arg0, arg1 interface{}) *gomock.Call

GetNewWalletAddress indicates an expected call of GetNewWalletAddress.

func (*MockNodeGuardServiceServerMockRecorder) GetNodes

func (mr *MockNodeGuardServiceServerMockRecorder) GetNodes(arg0, arg1 interface{}) *gomock.Call

GetNodes indicates an expected call of GetNodes.

func (*MockNodeGuardServiceServerMockRecorder) GetWithdrawalsRequestStatus

func (mr *MockNodeGuardServiceServerMockRecorder) GetWithdrawalsRequestStatus(arg0, arg1 interface{}) *gomock.Call

GetWithdrawalsRequestStatus indicates an expected call of GetWithdrawalsRequestStatus.

func (*MockNodeGuardServiceServerMockRecorder) OpenChannel

func (mr *MockNodeGuardServiceServerMockRecorder) OpenChannel(arg0, arg1 interface{}) *gomock.Call

OpenChannel indicates an expected call of OpenChannel.

func (*MockNodeGuardServiceServerMockRecorder) RequestWithdrawal

func (mr *MockNodeGuardServiceServerMockRecorder) RequestWithdrawal(arg0, arg1 interface{}) *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

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) Descriptor() ([]byte, []int)

Deprecated: Use Node.ProtoReflect.Descriptor instead.

func (*Node) GetAutosweepEnabled

func (x *Node) GetAutosweepEnabled() bool

func (*Node) GetDescription

func (x *Node) GetDescription() string

func (*Node) GetEndpoint

func (x *Node) GetEndpoint() string

func (*Node) GetId

func (x *Node) GetId() int32

func (*Node) GetName

func (x *Node) GetName() string

func (*Node) GetPubKey

func (x *Node) GetPubKey() string

func (*Node) GetReturningFundsWalletId

func (x *Node) GetReturningFundsWalletId() int32

func (*Node) ProtoMessage

func (*Node) ProtoMessage()

func (*Node) ProtoReflect

func (x *Node) ProtoReflect() protoreflect.Message

func (*Node) Reset

func (x *Node) Reset()

func (*Node) String

func (x *Node) String() string

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.

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 (*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) AddNode

func (UnimplementedNodeGuardServiceServer) CloseChannel

func (UnimplementedNodeGuardServiceServer) GetAvailableUtxos

func (UnimplementedNodeGuardServiceServer) GetAvailableWallets

func (UnimplementedNodeGuardServiceServer) GetChannel

func (UnimplementedNodeGuardServiceServer) GetLiquidityRules

func (UnimplementedNodeGuardServiceServer) GetNewWalletAddress

func (UnimplementedNodeGuardServiceServer) GetNodes

func (UnimplementedNodeGuardServiceServer) OpenChannel

func (UnimplementedNodeGuardServiceServer) RequestWithdrawal

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) Descriptor() ([]byte, []int)

Deprecated: Use Utxo.ProtoReflect.Descriptor instead.

func (*Utxo) GetAmount

func (x *Utxo) GetAmount() int64

func (*Utxo) GetOutpoint

func (x *Utxo) GetOutpoint() string

func (*Utxo) ProtoMessage

func (*Utxo) ProtoMessage()

func (*Utxo) ProtoReflect

func (x *Utxo) ProtoReflect() protoreflect.Message

func (*Utxo) Reset

func (x *Utxo) Reset()

func (*Utxo) String

func (x *Utxo) String() string

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) 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

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) Enum

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 (WITHDRAWAL_REQUEST_STATUS) String

func (x WITHDRAWAL_REQUEST_STATUS) String() string

func (WITHDRAWAL_REQUEST_STATUS) Type

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) Descriptor() ([]byte, []int)

Deprecated: Use Wallet.ProtoReflect.Descriptor instead.

func (*Wallet) GetAccountKeySettings

func (x *Wallet) GetAccountKeySettings() []*AccountKeySettings

func (*Wallet) GetId

func (x *Wallet) GetId() int32

func (*Wallet) GetIsHotWallet

func (x *Wallet) GetIsHotWallet() bool

func (*Wallet) GetName

func (x *Wallet) GetName() string

func (*Wallet) GetThreshold

func (x *Wallet) GetThreshold() int32

func (*Wallet) ProtoMessage

func (*Wallet) ProtoMessage()

func (*Wallet) ProtoReflect

func (x *Wallet) ProtoReflect() protoreflect.Message

func (*Wallet) Reset

func (x *Wallet) Reset()

func (*Wallet) String

func (x *Wallet) String() string

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 (*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

Jump to

Keyboard shortcuts

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