Nostrduino
Loading...
Searching...
No Matches
Namespaces | Macros | Typedefs | Functions
NostrAmount.h File Reference
#include <cstdint>
#include <limits>
#include <type_traits>

Go to the source code of this file.

Namespaces

namespace  nostr
 

Macros

#define NOSTRDUINO_ENABLE_AMOUNT_GUARDS   1
 
#define NOSTRDUINO_MAX_AMOUNT_MSATS   INT64_C(100000000000000)
 

Typedefs

using nostr::MilliSats = int64_t
 

Functions

bool nostr::amountWithinConfiguredMaximum (MilliSats amount)
 
bool nostr::isRequiredMilliSatsValid (MilliSats amount)
 
bool nostr::isOptionalMilliSatsValid (MilliSats amount)
 

Macro Definition Documentation

◆ NOSTRDUINO_ENABLE_AMOUNT_GUARDS

#define NOSTRDUINO_ENABLE_AMOUNT_GUARDS   1

◆ NOSTRDUINO_MAX_AMOUNT_MSATS

#define NOSTRDUINO_MAX_AMOUNT_MSATS   INT64_C(100000000000000)