From cedd57918502e543cd69a0cfb914fc29a32b30c5 Mon Sep 17 00:00:00 2001 From: Elias Rohrer Date: Wed, 17 Dec 2025 13:33:07 +0100 Subject: [PATCH] Add licensing headers to all Rust files .. we just add the usual licensing headers. --- ldk-server-cli/src/main.rs | 9 +++++++++ ldk-server-client/src/client.rs | 9 +++++++++ ldk-server-client/src/error.rs | 9 +++++++++ ldk-server-client/src/lib.rs | 9 +++++++++ ldk-server-protos/build.rs | 9 +++++++++ ldk-server-protos/src/api.rs | 9 +++++++++ ldk-server-protos/src/endpoints.rs | 9 +++++++++ ldk-server-protos/src/error.rs | 9 +++++++++ ldk-server-protos/src/events.rs | 9 +++++++++ ldk-server-protos/src/lib.rs | 9 +++++++++ ldk-server-protos/src/types.rs | 9 +++++++++ ldk-server/src/api/bolt11_receive.rs | 9 +++++++++ ldk-server/src/api/bolt11_send.rs | 9 +++++++++ ldk-server/src/api/bolt12_receive.rs | 9 +++++++++ ldk-server/src/api/bolt12_send.rs | 9 +++++++++ ldk-server/src/api/close_channel.rs | 9 +++++++++ ldk-server/src/api/error.rs | 9 +++++++++ ldk-server/src/api/get_balances.rs | 9 +++++++++ ldk-server/src/api/get_node_info.rs | 9 +++++++++ ldk-server/src/api/get_payment_details.rs | 9 +++++++++ ldk-server/src/api/list_channels.rs | 9 +++++++++ ldk-server/src/api/list_forwarded_payments.rs | 9 +++++++++ ldk-server/src/api/list_payments.rs | 9 +++++++++ ldk-server/src/api/mod.rs | 9 +++++++++ ldk-server/src/api/onchain_receive.rs | 9 +++++++++ ldk-server/src/api/onchain_send.rs | 9 +++++++++ ldk-server/src/api/open_channel.rs | 9 +++++++++ ldk-server/src/api/splice_channel.rs | 9 +++++++++ ldk-server/src/api/update_channel_config.rs | 9 +++++++++ ldk-server/src/io/events/event_publisher.rs | 9 +++++++++ ldk-server/src/io/events/mod.rs | 9 +++++++++ ldk-server/src/io/events/rabbitmq/mod.rs | 9 +++++++++ ldk-server/src/io/mod.rs | 9 +++++++++ ldk-server/src/io/persist/mod.rs | 9 +++++++++ ldk-server/src/io/persist/paginated_kv_store.rs | 9 +++++++++ ldk-server/src/io/persist/sqlite_store/mod.rs | 9 +++++++++ ldk-server/src/io/utils.rs | 9 +++++++++ ldk-server/src/main.rs | 9 +++++++++ ldk-server/src/service.rs | 9 +++++++++ ldk-server/src/util/config.rs | 9 +++++++++ ldk-server/src/util/logger.rs | 9 +++++++++ ldk-server/src/util/mod.rs | 9 +++++++++ ldk-server/src/util/proto_adapter.rs | 9 +++++++++ 43 files changed, 387 insertions(+) diff --git a/ldk-server-cli/src/main.rs b/ldk-server-cli/src/main.rs index cac4697c..304f3c88 100644 --- a/ldk-server-cli/src/main.rs +++ b/ldk-server-cli/src/main.rs @@ -1,3 +1,12 @@ +// This file is Copyright its original authors, visible in version control +// history. +// +// This file is licensed under the Apache License, Version 2.0 or the MIT license +// , at your option. +// You may not use this file except in accordance with one or both of these +// licenses. + use clap::{Parser, Subcommand}; use ldk_server_client::client::LdkServerClient; use ldk_server_client::error::LdkServerError; diff --git a/ldk-server-client/src/client.rs b/ldk-server-client/src/client.rs index 7fbe5dfa..99831517 100644 --- a/ldk-server-client/src/client.rs +++ b/ldk-server-client/src/client.rs @@ -1,3 +1,12 @@ +// This file is Copyright its original authors, visible in version control +// history. +// +// This file is licensed under the Apache License, Version 2.0 or the MIT license +// , at your option. +// You may not use this file except in accordance with one or both of these +// licenses. + use prost::Message; use crate::error::LdkServerError; diff --git a/ldk-server-client/src/error.rs b/ldk-server-client/src/error.rs index 8dc16f66..67cba37d 100644 --- a/ldk-server-client/src/error.rs +++ b/ldk-server-client/src/error.rs @@ -1,3 +1,12 @@ +// This file is Copyright its original authors, visible in version control +// history. +// +// This file is licensed under the Apache License, Version 2.0 or the MIT license +// , at your option. +// You may not use this file except in accordance with one or both of these +// licenses. + use std::fmt; /// Represents an error returned by the LDK server. diff --git a/ldk-server-client/src/lib.rs b/ldk-server-client/src/lib.rs index 19540ee2..098c7087 100644 --- a/ldk-server-client/src/lib.rs +++ b/ldk-server-client/src/lib.rs @@ -1,3 +1,12 @@ +// This file is Copyright its original authors, visible in version control +// history. +// +// This file is licensed under the Apache License, Version 2.0 or the MIT license +// , at your option. +// You may not use this file except in accordance with one or both of these +// licenses. + //! Client-side library to interact with LDK Server. #![deny(rustdoc::broken_intra_doc_links)] diff --git a/ldk-server-protos/build.rs b/ldk-server-protos/build.rs index 5ffcf7ac..32b9f6b0 100644 --- a/ldk-server-protos/build.rs +++ b/ldk-server-protos/build.rs @@ -1,3 +1,12 @@ +// This file is Copyright its original authors, visible in version control +// history. +// +// This file is licensed under the Apache License, Version 2.0 or the MIT license +// , at your option. +// You may not use this file except in accordance with one or both of these +// licenses. + #[cfg(genproto)] extern crate prost_build; diff --git a/ldk-server-protos/src/api.rs b/ldk-server-protos/src/api.rs index d146a7e9..439a403d 100644 --- a/ldk-server-protos/src/api.rs +++ b/ldk-server-protos/src/api.rs @@ -1,3 +1,12 @@ +// This file is Copyright its original authors, visible in version control +// history. +// +// This file is licensed under the Apache License, Version 2.0 or the MIT license +// , at your option. +// You may not use this file except in accordance with one or both of these +// licenses. + /// Retrieve the latest node info like `node_id`, `current_best_block` etc. /// See more: /// - diff --git a/ldk-server-protos/src/endpoints.rs b/ldk-server-protos/src/endpoints.rs index d5990187..c7ed1c26 100644 --- a/ldk-server-protos/src/endpoints.rs +++ b/ldk-server-protos/src/endpoints.rs @@ -1,3 +1,12 @@ +// This file is Copyright its original authors, visible in version control +// history. +// +// This file is licensed under the Apache License, Version 2.0 or the MIT license +// , at your option. +// You may not use this file except in accordance with one or both of these +// licenses. + pub const GET_NODE_INFO_PATH: &str = "GetNodeInfo"; pub const GET_BALANCES_PATH: &str = "GetBalances"; pub const ONCHAIN_RECEIVE_PATH: &str = "OnchainReceive"; diff --git a/ldk-server-protos/src/error.rs b/ldk-server-protos/src/error.rs index 4ea5d8e1..41e73ee4 100644 --- a/ldk-server-protos/src/error.rs +++ b/ldk-server-protos/src/error.rs @@ -1,3 +1,12 @@ +// This file is Copyright its original authors, visible in version control +// history. +// +// This file is licensed under the Apache License, Version 2.0 or the MIT license +// , at your option. +// You may not use this file except in accordance with one or both of these +// licenses. + /// When HttpStatusCode is not ok (200), the response `content` contains a serialized `ErrorResponse` /// with the relevant ErrorCode and `message` #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] diff --git a/ldk-server-protos/src/events.rs b/ldk-server-protos/src/events.rs index 0fa5f09d..08a605be 100644 --- a/ldk-server-protos/src/events.rs +++ b/ldk-server-protos/src/events.rs @@ -1,3 +1,12 @@ +// This file is Copyright its original authors, visible in version control +// history. +// +// This file is licensed under the Apache License, Version 2.0 or the MIT license +// , at your option. +// You may not use this file except in accordance with one or both of these +// licenses. + /// EventEnvelope wraps different event types in a single message to be used by EventPublisher. #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] #[cfg_attr(feature = "serde", serde(rename_all = "snake_case"))] diff --git a/ldk-server-protos/src/lib.rs b/ldk-server-protos/src/lib.rs index 1999d060..24a73525 100644 --- a/ldk-server-protos/src/lib.rs +++ b/ldk-server-protos/src/lib.rs @@ -1,3 +1,12 @@ +// This file is Copyright its original authors, visible in version control +// history. +// +// This file is licensed under the Apache License, Version 2.0 or the MIT license +// , at your option. +// You may not use this file except in accordance with one or both of these +// licenses. + pub mod api; pub mod endpoints; pub mod error; diff --git a/ldk-server-protos/src/types.rs b/ldk-server-protos/src/types.rs index a92ab57c..238f4b5d 100644 --- a/ldk-server-protos/src/types.rs +++ b/ldk-server-protos/src/types.rs @@ -1,3 +1,12 @@ +// This file is Copyright its original authors, visible in version control +// history. +// +// This file is licensed under the Apache License, Version 2.0 or the MIT license +// , at your option. +// You may not use this file except in accordance with one or both of these +// licenses. + /// Represents a payment. /// See more: #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] diff --git a/ldk-server/src/api/bolt11_receive.rs b/ldk-server/src/api/bolt11_receive.rs index 024404b8..ea1d99a2 100644 --- a/ldk-server/src/api/bolt11_receive.rs +++ b/ldk-server/src/api/bolt11_receive.rs @@ -1,3 +1,12 @@ +// This file is Copyright its original authors, visible in version control +// history. +// +// This file is licensed under the Apache License, Version 2.0 or the MIT license +// , at your option. +// You may not use this file except in accordance with one or both of these +// licenses. + use crate::api::error::LdkServerError; use crate::service::Context; use crate::util::proto_adapter::proto_to_bolt11_description; diff --git a/ldk-server/src/api/bolt11_send.rs b/ldk-server/src/api/bolt11_send.rs index f5204c82..d3fbf1b9 100644 --- a/ldk-server/src/api/bolt11_send.rs +++ b/ldk-server/src/api/bolt11_send.rs @@ -1,3 +1,12 @@ +// This file is Copyright its original authors, visible in version control +// history. +// +// This file is licensed under the Apache License, Version 2.0 or the MIT license +// , at your option. +// You may not use this file except in accordance with one or both of these +// licenses. + use crate::api::error::LdkServerError; use crate::api::error::LdkServerErrorCode::InvalidRequestError; use crate::service::Context; diff --git a/ldk-server/src/api/bolt12_receive.rs b/ldk-server/src/api/bolt12_receive.rs index 9749baff..4f33d5ef 100644 --- a/ldk-server/src/api/bolt12_receive.rs +++ b/ldk-server/src/api/bolt12_receive.rs @@ -1,3 +1,12 @@ +// This file is Copyright its original authors, visible in version control +// history. +// +// This file is licensed under the Apache License, Version 2.0 or the MIT license +// , at your option. +// You may not use this file except in accordance with one or both of these +// licenses. + use crate::api::error::LdkServerError; use crate::service::Context; use ldk_server_protos::api::{Bolt12ReceiveRequest, Bolt12ReceiveResponse}; diff --git a/ldk-server/src/api/bolt12_send.rs b/ldk-server/src/api/bolt12_send.rs index 908107ab..2c69831f 100644 --- a/ldk-server/src/api/bolt12_send.rs +++ b/ldk-server/src/api/bolt12_send.rs @@ -1,3 +1,12 @@ +// This file is Copyright its original authors, visible in version control +// history. +// +// This file is licensed under the Apache License, Version 2.0 or the MIT license +// , at your option. +// You may not use this file except in accordance with one or both of these +// licenses. + use crate::api::error::LdkServerError; use crate::api::error::LdkServerErrorCode::InvalidRequestError; use crate::service::Context; diff --git a/ldk-server/src/api/close_channel.rs b/ldk-server/src/api/close_channel.rs index 268cb6de..a55b7134 100644 --- a/ldk-server/src/api/close_channel.rs +++ b/ldk-server/src/api/close_channel.rs @@ -1,3 +1,12 @@ +// This file is Copyright its original authors, visible in version control +// history. +// +// This file is licensed under the Apache License, Version 2.0 or the MIT license +// , at your option. +// You may not use this file except in accordance with one or both of these +// licenses. + use crate::api::error::LdkServerError; use crate::api::error::LdkServerErrorCode::InvalidRequestError; use crate::service::Context; diff --git a/ldk-server/src/api/error.rs b/ldk-server/src/api/error.rs index c9103da0..304a8aa1 100644 --- a/ldk-server/src/api/error.rs +++ b/ldk-server/src/api/error.rs @@ -1,3 +1,12 @@ +// This file is Copyright its original authors, visible in version control +// history. +// +// This file is licensed under the Apache License, Version 2.0 or the MIT license +// , at your option. +// You may not use this file except in accordance with one or both of these +// licenses. + use ldk_node::NodeError; use std::fmt; diff --git a/ldk-server/src/api/get_balances.rs b/ldk-server/src/api/get_balances.rs index dce81ef1..dbaa3f55 100644 --- a/ldk-server/src/api/get_balances.rs +++ b/ldk-server/src/api/get_balances.rs @@ -1,3 +1,12 @@ +// This file is Copyright its original authors, visible in version control +// history. +// +// This file is licensed under the Apache License, Version 2.0 or the MIT license +// , at your option. +// You may not use this file except in accordance with one or both of these +// licenses. + use crate::api::error::LdkServerError; use crate::service::Context; use crate::util::proto_adapter::{lightning_balance_to_proto, pending_sweep_balance_to_proto}; diff --git a/ldk-server/src/api/get_node_info.rs b/ldk-server/src/api/get_node_info.rs index 5763bea9..61cdd1fa 100644 --- a/ldk-server/src/api/get_node_info.rs +++ b/ldk-server/src/api/get_node_info.rs @@ -1,3 +1,12 @@ +// This file is Copyright its original authors, visible in version control +// history. +// +// This file is licensed under the Apache License, Version 2.0 or the MIT license +// , at your option. +// You may not use this file except in accordance with one or both of these +// licenses. + use crate::api::error::LdkServerError; use crate::service::Context; use ldk_server_protos::api::{GetNodeInfoRequest, GetNodeInfoResponse}; diff --git a/ldk-server/src/api/get_payment_details.rs b/ldk-server/src/api/get_payment_details.rs index d0b6fc22..afb74691 100644 --- a/ldk-server/src/api/get_payment_details.rs +++ b/ldk-server/src/api/get_payment_details.rs @@ -1,3 +1,12 @@ +// This file is Copyright its original authors, visible in version control +// history. +// +// This file is licensed under the Apache License, Version 2.0 or the MIT license +// , at your option. +// You may not use this file except in accordance with one or both of these +// licenses. + use crate::api::error::LdkServerError; use crate::api::error::LdkServerErrorCode::InvalidRequestError; use crate::service::Context; diff --git a/ldk-server/src/api/list_channels.rs b/ldk-server/src/api/list_channels.rs index 046fad64..aa830257 100644 --- a/ldk-server/src/api/list_channels.rs +++ b/ldk-server/src/api/list_channels.rs @@ -1,3 +1,12 @@ +// This file is Copyright its original authors, visible in version control +// history. +// +// This file is licensed under the Apache License, Version 2.0 or the MIT license +// , at your option. +// You may not use this file except in accordance with one or both of these +// licenses. + use crate::api::error::LdkServerError; use crate::service::Context; use crate::util::proto_adapter::channel_to_proto; diff --git a/ldk-server/src/api/list_forwarded_payments.rs b/ldk-server/src/api/list_forwarded_payments.rs index b1199619..989e8491 100644 --- a/ldk-server/src/api/list_forwarded_payments.rs +++ b/ldk-server/src/api/list_forwarded_payments.rs @@ -1,3 +1,12 @@ +// This file is Copyright its original authors, visible in version control +// history. +// +// This file is licensed under the Apache License, Version 2.0 or the MIT license +// , at your option. +// You may not use this file except in accordance with one or both of these +// licenses. + use crate::api::error::LdkServerError; use crate::api::error::LdkServerErrorCode::InternalServerError; use crate::io::persist::{ diff --git a/ldk-server/src/api/list_payments.rs b/ldk-server/src/api/list_payments.rs index 2b6f8ff1..0077bdab 100644 --- a/ldk-server/src/api/list_payments.rs +++ b/ldk-server/src/api/list_payments.rs @@ -1,3 +1,12 @@ +// This file is Copyright its original authors, visible in version control +// history. +// +// This file is licensed under the Apache License, Version 2.0 or the MIT license +// , at your option. +// You may not use this file except in accordance with one or both of these +// licenses. + use crate::api::error::LdkServerError; use crate::api::error::LdkServerErrorCode::InternalServerError; use crate::io::persist::{ diff --git a/ldk-server/src/api/mod.rs b/ldk-server/src/api/mod.rs index 487ab1e9..b34fef55 100644 --- a/ldk-server/src/api/mod.rs +++ b/ldk-server/src/api/mod.rs @@ -1,3 +1,12 @@ +// This file is Copyright its original authors, visible in version control +// history. +// +// This file is licensed under the Apache License, Version 2.0 or the MIT license +// , at your option. +// You may not use this file except in accordance with one or both of these +// licenses. + use crate::api::error::LdkServerError; use crate::api::error::LdkServerErrorCode::InvalidRequestError; use ldk_node::config::{ChannelConfig, MaxDustHTLCExposure}; diff --git a/ldk-server/src/api/onchain_receive.rs b/ldk-server/src/api/onchain_receive.rs index 3196801f..913c6a8e 100644 --- a/ldk-server/src/api/onchain_receive.rs +++ b/ldk-server/src/api/onchain_receive.rs @@ -1,3 +1,12 @@ +// This file is Copyright its original authors, visible in version control +// history. +// +// This file is licensed under the Apache License, Version 2.0 or the MIT license +// , at your option. +// You may not use this file except in accordance with one or both of these +// licenses. + use crate::api::error::LdkServerError; use crate::service::Context; use ldk_server_protos::api::{OnchainReceiveRequest, OnchainReceiveResponse}; diff --git a/ldk-server/src/api/onchain_send.rs b/ldk-server/src/api/onchain_send.rs index b84c671d..c5272a9a 100644 --- a/ldk-server/src/api/onchain_send.rs +++ b/ldk-server/src/api/onchain_send.rs @@ -1,3 +1,12 @@ +// This file is Copyright its original authors, visible in version control +// history. +// +// This file is licensed under the Apache License, Version 2.0 or the MIT license +// , at your option. +// You may not use this file except in accordance with one or both of these +// licenses. + use crate::api::error::LdkServerError; use crate::api::error::LdkServerErrorCode::InvalidRequestError; use crate::service::Context; diff --git a/ldk-server/src/api/open_channel.rs b/ldk-server/src/api/open_channel.rs index 02fcfed7..53d6ac13 100644 --- a/ldk-server/src/api/open_channel.rs +++ b/ldk-server/src/api/open_channel.rs @@ -1,3 +1,12 @@ +// This file is Copyright its original authors, visible in version control +// history. +// +// This file is licensed under the Apache License, Version 2.0 or the MIT license +// , at your option. +// You may not use this file except in accordance with one or both of these +// licenses. + use crate::api::build_channel_config_from_proto; use crate::api::error::LdkServerError; use crate::service::Context; diff --git a/ldk-server/src/api/splice_channel.rs b/ldk-server/src/api/splice_channel.rs index cab92107..3710e72d 100644 --- a/ldk-server/src/api/splice_channel.rs +++ b/ldk-server/src/api/splice_channel.rs @@ -1,3 +1,12 @@ +// This file is Copyright its original authors, visible in version control +// history. +// +// This file is licensed under the Apache License, Version 2.0 or the MIT license +// , at your option. +// You may not use this file except in accordance with one or both of these +// licenses. + use crate::api::error::LdkServerError; use crate::api::error::LdkServerErrorCode::InvalidRequestError; use crate::service::Context; diff --git a/ldk-server/src/api/update_channel_config.rs b/ldk-server/src/api/update_channel_config.rs index 2a895410..a80ed739 100644 --- a/ldk-server/src/api/update_channel_config.rs +++ b/ldk-server/src/api/update_channel_config.rs @@ -1,3 +1,12 @@ +// This file is Copyright its original authors, visible in version control +// history. +// +// This file is licensed under the Apache License, Version 2.0 or the MIT license +// , at your option. +// You may not use this file except in accordance with one or both of these +// licenses. + use crate::api::build_channel_config_from_proto; use crate::api::error::LdkServerError; use crate::api::error::LdkServerErrorCode::{InvalidRequestError, LightningError}; diff --git a/ldk-server/src/io/events/event_publisher.rs b/ldk-server/src/io/events/event_publisher.rs index f333bb31..7a904118 100644 --- a/ldk-server/src/io/events/event_publisher.rs +++ b/ldk-server/src/io/events/event_publisher.rs @@ -1,3 +1,12 @@ +// This file is Copyright its original authors, visible in version control +// history. +// +// This file is licensed under the Apache License, Version 2.0 or the MIT license +// , at your option. +// You may not use this file except in accordance with one or both of these +// licenses. + use crate::api::error::LdkServerError; use async_trait::async_trait; use ldk_server_protos::events::EventEnvelope; diff --git a/ldk-server/src/io/events/mod.rs b/ldk-server/src/io/events/mod.rs index d1575329..f944b7e3 100644 --- a/ldk-server/src/io/events/mod.rs +++ b/ldk-server/src/io/events/mod.rs @@ -1,3 +1,12 @@ +// This file is Copyright its original authors, visible in version control +// history. +// +// This file is licensed under the Apache License, Version 2.0 or the MIT license +// , at your option. +// You may not use this file except in accordance with one or both of these +// licenses. + pub(crate) mod event_publisher; #[cfg(feature = "events-rabbitmq")] diff --git a/ldk-server/src/io/events/rabbitmq/mod.rs b/ldk-server/src/io/events/rabbitmq/mod.rs index 481f6b06..08b0e4b1 100644 --- a/ldk-server/src/io/events/rabbitmq/mod.rs +++ b/ldk-server/src/io/events/rabbitmq/mod.rs @@ -1,3 +1,12 @@ +// This file is Copyright its original authors, visible in version control +// history. +// +// This file is licensed under the Apache License, Version 2.0 or the MIT license +// , at your option. +// You may not use this file except in accordance with one or both of these +// licenses. + use crate::api::error::LdkServerError; use crate::api::error::LdkServerErrorCode::InternalServerError; use crate::io::events::event_publisher::EventPublisher; diff --git a/ldk-server/src/io/mod.rs b/ldk-server/src/io/mod.rs index 8b022008..ab1df5f6 100644 --- a/ldk-server/src/io/mod.rs +++ b/ldk-server/src/io/mod.rs @@ -1,3 +1,12 @@ +// This file is Copyright its original authors, visible in version control +// history. +// +// This file is licensed under the Apache License, Version 2.0 or the MIT license +// , at your option. +// You may not use this file except in accordance with one or both of these +// licenses. + pub(crate) mod events; pub(crate) mod persist; pub(crate) mod utils; diff --git a/ldk-server/src/io/persist/mod.rs b/ldk-server/src/io/persist/mod.rs index da342acc..6c01795b 100644 --- a/ldk-server/src/io/persist/mod.rs +++ b/ldk-server/src/io/persist/mod.rs @@ -1,3 +1,12 @@ +// This file is Copyright its original authors, visible in version control +// history. +// +// This file is licensed under the Apache License, Version 2.0 or the MIT license +// , at your option. +// You may not use this file except in accordance with one or both of these +// licenses. + pub(crate) mod paginated_kv_store; pub(crate) mod sqlite_store; diff --git a/ldk-server/src/io/persist/paginated_kv_store.rs b/ldk-server/src/io/persist/paginated_kv_store.rs index d036c2ef..ff381b1b 100644 --- a/ldk-server/src/io/persist/paginated_kv_store.rs +++ b/ldk-server/src/io/persist/paginated_kv_store.rs @@ -1,3 +1,12 @@ +// This file is Copyright its original authors, visible in version control +// history. +// +// This file is licensed under the Apache License, Version 2.0 or the MIT license +// , at your option. +// You may not use this file except in accordance with one or both of these +// licenses. + use std::io; /// Provides an interface that allows storage and retrieval of persisted values that are associated diff --git a/ldk-server/src/io/persist/sqlite_store/mod.rs b/ldk-server/src/io/persist/sqlite_store/mod.rs index 9e53db3a..c473cb54 100644 --- a/ldk-server/src/io/persist/sqlite_store/mod.rs +++ b/ldk-server/src/io/persist/sqlite_store/mod.rs @@ -1,3 +1,12 @@ +// This file is Copyright its original authors, visible in version control +// history. +// +// This file is licensed under the Apache License, Version 2.0 or the MIT license +// , at your option. +// You may not use this file except in accordance with one or both of these +// licenses. + use crate::io::persist::paginated_kv_store::{ListResponse, PaginatedKVStore}; use crate::io::utils::check_namespace_key_validity; use ldk_node::lightning::types::string::PrintableString; diff --git a/ldk-server/src/io/utils.rs b/ldk-server/src/io/utils.rs index b9bfe59a..4b81d8a2 100644 --- a/ldk-server/src/io/utils.rs +++ b/ldk-server/src/io/utils.rs @@ -1,3 +1,12 @@ +// This file is Copyright its original authors, visible in version control +// history. +// +// This file is licensed under the Apache License, Version 2.0 or the MIT license +// , at your option. +// You may not use this file except in accordance with one or both of these +// licenses. + use ldk_node::lightning::types::string::PrintableString; use ldk_node::lightning::util::persist::{ KVSTORE_NAMESPACE_KEY_ALPHABET, KVSTORE_NAMESPACE_KEY_MAX_LEN, diff --git a/ldk-server/src/main.rs b/ldk-server/src/main.rs index 72f5fb12..e16d5f0c 100644 --- a/ldk-server/src/main.rs +++ b/ldk-server/src/main.rs @@ -1,3 +1,12 @@ +// This file is Copyright its original authors, visible in version control +// history. +// +// This file is licensed under the Apache License, Version 2.0 or the MIT license +// , at your option. +// You may not use this file except in accordance with one or both of these +// licenses. + mod api; mod io; mod service; diff --git a/ldk-server/src/service.rs b/ldk-server/src/service.rs index b1144a7d..6048a106 100644 --- a/ldk-server/src/service.rs +++ b/ldk-server/src/service.rs @@ -1,3 +1,12 @@ +// This file is Copyright its original authors, visible in version control +// history. +// +// This file is licensed under the Apache License, Version 2.0 or the MIT license +// , at your option. +// You may not use this file except in accordance with one or both of these +// licenses. + use ldk_node::Node; use http_body_util::{BodyExt, Full, Limited}; diff --git a/ldk-server/src/util/config.rs b/ldk-server/src/util/config.rs index b2d896c0..79fda358 100644 --- a/ldk-server/src/util/config.rs +++ b/ldk-server/src/util/config.rs @@ -1,3 +1,12 @@ +// This file is Copyright its original authors, visible in version control +// history. +// +// This file is licensed under the Apache License, Version 2.0 or the MIT license +// , at your option. +// You may not use this file except in accordance with one or both of these +// licenses. + use ldk_node::bitcoin::Network; use ldk_node::lightning::ln::msgs::SocketAddress; use ldk_node::lightning::routing::gossip::NodeAlias; diff --git a/ldk-server/src/util/logger.rs b/ldk-server/src/util/logger.rs index 66a236ca..170f3622 100644 --- a/ldk-server/src/util/logger.rs +++ b/ldk-server/src/util/logger.rs @@ -1,3 +1,12 @@ +// This file is Copyright its original authors, visible in version control +// history. +// +// This file is licensed under the Apache License, Version 2.0 or the MIT license +// , at your option. +// You may not use this file except in accordance with one or both of these +// licenses. + use log::{Level, LevelFilter, Log, Metadata, Record}; use std::fs::{self, File, OpenOptions}; use std::io::{self, BufWriter, Write}; diff --git a/ldk-server/src/util/mod.rs b/ldk-server/src/util/mod.rs index 2bcbee65..8bcf1c11 100644 --- a/ldk-server/src/util/mod.rs +++ b/ldk-server/src/util/mod.rs @@ -1,3 +1,12 @@ +// This file is Copyright its original authors, visible in version control +// history. +// +// This file is licensed under the Apache License, Version 2.0 or the MIT license +// , at your option. +// You may not use this file except in accordance with one or both of these +// licenses. + pub(crate) mod config; pub(crate) mod logger; pub(crate) mod proto_adapter; diff --git a/ldk-server/src/util/proto_adapter.rs b/ldk-server/src/util/proto_adapter.rs index c645242d..360d3944 100644 --- a/ldk-server/src/util/proto_adapter.rs +++ b/ldk-server/src/util/proto_adapter.rs @@ -1,3 +1,12 @@ +// This file is Copyright its original authors, visible in version control +// history. +// +// This file is licensed under the Apache License, Version 2.0 or the MIT license +// , at your option. +// You may not use this file except in accordance with one or both of these +// licenses. + use crate::api::error::LdkServerError; use crate::api::error::LdkServerErrorCode::{ AuthError, InternalServerError, InvalidRequestError, LightningError,