Skip to main content

Crate fedimint_gateway_server

Crate fedimint_gateway_server 

Source

Re-exportsΒ§

pub use config::GatewayParameters;

ModulesΒ§

client
config
envs
error πŸ”’
events πŸ”’
federation_manager πŸ”’
gateway_new_with_builder_builder πŸ”’
Tools for manipulating the type state of GatewayNewWithBuilderBuilder.
iroh_server πŸ”’
metrics πŸ”’
rpc_server
types πŸ”’
Map gateway_lnrpc protobuf types to rust types

StructsΒ§

Gateway
GatewayNewWithBuilderBuilder
Use builder syntax to set the inputs and finish with build().
Registration πŸ”’
Helper struct for storing the registration parameters for LNv1 for each network protocol.
WithdrawDetails πŸ”’
Internal helper for on-chain withdrawal calculations

EnumsΒ§

GatewayState
ReceivePaymentStreamAction πŸ”’
The action to take after handling a payment stream.

ConstantsΒ§

DB_FILE πŸ”’
Name of the gateway’s database that is used for metadata and configuration storage.
DEFAULT_NETWORK
Default Bitcoin network for testing purposes.
DEFAULT_NUM_ROUTE_HINTS πŸ”’
The default number of route hints that the legacy gateway provides for invoice creation.
GW_ANNOUNCEMENT_TTL πŸ”’
How long a gateway announcement stays valid
LDK_NODE_DB_FOLDER πŸ”’
Name of the folder that the gateway uses to store its node database when running in LDK mode.

TraitsΒ§

IAdminGateway

FunctionsΒ§

calculate_max_withdrawable πŸ”’
Calculates an estimated max withdrawable amount on-chain
withdraw_v2 πŸ”’
Executes a withdrawal using the walletv2 module

Type AliasesΒ§

AdminResult
Result