Move common BOLT 12 invoice builder setters to new macro.
[rust-lightning] / lightning / src / offers / mod.rs
1 // This file is Copyright its original authors, visible in version control
2 // history.
3 //
4 // This file is licensed under the Apache License, Version 2.0 <LICENSE-APACHE
5 // or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option.
7 // You may not use this file except in accordance with one or both of these
8 // licenses.
9
10 //! Implementation of Lightning Offers
11 //! ([BOLT 12](https://github.com/lightning/bolts/blob/master/12-offer-encoding.md)).
12 //!
13 //! Offers are a flexible protocol for Lightning payments.
14
15 #[macro_use]
16 pub mod offer;
17
18 pub mod invoice;
19 pub mod invoice_error;
20 mod invoice_macros;
21 pub mod invoice_request;
22 pub mod merkle;
23 pub mod parse;
24 mod payer;
25 pub mod refund;
26 pub(crate) mod signer;
27 #[cfg(test)]
28 pub(crate) mod test_utils;