2023-11-08 15:27:22 +01:00
|
|
|
#pragma once
|
|
|
|
|
2023-11-28 01:30:36 +01:00
|
|
|
#include <string>
|
|
|
|
#include <cmath>
|
2023-11-28 02:05:04 +01:00
|
|
|
#include <cstdint>
|
2024-03-10 12:35:20 +01:00
|
|
|
#include <sstream>
|
|
|
|
#include <iomanip>
|
2023-11-08 15:27:22 +01:00
|
|
|
|
|
|
|
int modulo(int x,int N);
|
2023-11-10 19:52:06 +01:00
|
|
|
|
2023-11-28 02:05:04 +01:00
|
|
|
double getSupplyAtBlock(std::uint32_t blockNr);
|
2023-11-10 19:52:06 +01:00
|
|
|
|
2024-08-24 16:27:55 +03:00
|
|
|
std::string formatNumberWithSuffix(std::uint64_t num, int numCharacters = 4);
|
2024-11-27 11:33:12 +01:00
|
|
|
std::string formatNumberWithSuffix(std::uint64_t num, int numCharacters, bool mowMode);
|
2024-08-24 16:27:55 +03:00
|
|
|
int64_t getAmountInSatoshis(std::string bolt11);
|