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_lnrpcprotobuf types to rust types
StructsΒ§
- Gateway
- Gateway
NewWith Builder Builder - 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.
- Withdraw
Details π - Internal helper for on-chain withdrawal calculations
EnumsΒ§
- Gateway
State - Receive
Payment πStream Action - 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Β§
FunctionsΒ§
- calculate_
max_ πwithdrawable - Calculates an estimated max withdrawable amount on-chain
- withdraw_
v2 π - Executes a withdrawal using the walletv2 module