btclock_v3/lib/btclock/utils.hpp

15 lines
396 B
C++
Raw Permalink Normal View History

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