Skip to main content

Crate fedimint_gateway_common

Crate fedimint_gateway_common 

Source

Modules§

envs

Structs§

BackupPayload
ChannelInfo
CloseChannelsWithPeerRequest
CloseChannelsWithPeerResponse
ConfigPayload
ConnectFedPayload
CreateInvoiceForOperatorPayload
CreateOfferPayload
CreateOfferResponse
DepositAddressPayload
DepositAddressRecheckPayload
FederationBalanceInfo
FederationConfig
FederationInfo
Information about one of the feds we are connected to
GatewayBalances
GatewayFedConfig
GatewayInfo
GetInvoiceRequest
GetInvoiceResponse
InfoPayload
LeaveFedPayload
ListTransactionsPayload
ListTransactionsResponse
MnemonicResponse
OpenChannelRequest
PayInvoiceForOperatorPayload
PayOfferPayload
PayOfferResponse
PaymentDetails
PaymentLogPayload
PaymentLogResponse
PaymentStats
PaymentSummaryPayload
PaymentSummaryResponse
PeginFromOnchainPayload
ReceiveEcashPayload
ReceiveEcashResponse
SendOnchainRequest
SetChannelFeesRequest
SetFeesPayload
SetMnemonicPayload
SpendEcashPayload
SpendEcashResponse
WithdrawPayload
WithdrawPreviewPayload
WithdrawPreviewResponse
WithdrawResponse
WithdrawToOnchainPayload

Enums§

ChainSource
ConnectorType
Deprecated, unused, doesn’t do anything
LightningInfo
LightningMode
PaymentDirection
PaymentKind
PaymentStatus
RegisteredProtocol

Constants§

ADDRESS_ENDPOINT
ADDRESS_RECHECK_ENDPOINT
BACKUP_ENDPOINT
CLOSE_CHANNELS_WITH_PEER_ENDPOINT
CONFIGURATION_ENDPOINT
CONNECT_FED_ENDPOINT
CREATE_BOLT11_INVOICE_FOR_OPERATOR_ENDPOINT
CREATE_BOLT12_OFFER_FOR_OPERATOR_ENDPOINT
GATEWAY_INFO_ENDPOINT
GET_BALANCES_ENDPOINT
GET_INVOICE_ENDPOINT
GET_LN_ONCHAIN_ADDRESS_ENDPOINT
INVITE_CODES_ENDPOINT
LEAVE_FED_ENDPOINT
LIST_CHANNELS_ENDPOINT
LIST_TRANSACTIONS_ENDPOINT
LND_DEFAULT_TIME_PREF
Default value for LND’s SendPaymentRequest::time_pref. LND interprets this as a value in [LND_TIME_PREF_MIN, LND_TIME_PREF_MAX], where -1 optimizes purely for fees and 1 optimizes purely for reliability. We default to 0.5 to favor reliability while still considering fees.
LND_TIME_PREF_MAX
LND_TIME_PREF_MIN
MNEMONIC_ENDPOINT
OPEN_CHANNEL_ENDPOINT
OPEN_CHANNEL_WITH_PUSH_ENDPOINT
PAYMENT_LOG_ENDPOINT
PAYMENT_SUMMARY_ENDPOINT
PAY_INVOICE_FOR_OPERATOR_ENDPOINT
PAY_OFFER_FOR_OPERATOR_ENDPOINT
PEGIN_FROM_ONCHAIN_ENDPOINT
RECEIVE_ECASH_ENDPOINT
SEND_ONCHAIN_ENDPOINT
SET_CHANNEL_FEES_ENDPOINT
SET_FEES_ENDPOINT
SPEND_ECASH_ENDPOINT
STOP_ENDPOINT
V1_API_ENDPOINT
WITHDRAW_ENDPOINT
WITHDRAW_TO_ONCHAIN_ENDPOINT

Functions§

empty_string_as_none 🔒
Helper for serde: deserializes missing values and empty form strings as None. Lets the same struct be used for JSON payloads and HTMX form submissions where numeric inputs may be left blank.
parse_lnd_time_pref 🔒