2023-11-08 14:27:22 +00:00
|
|
|
#pragma once
|
|
|
|
|
2023-11-28 00:30:36 +00:00
|
|
|
#include <string>
|
|
|
|
#include <cmath>
|
2023-11-28 01:05:04 +00:00
|
|
|
#include <cstdint>
|
2024-03-10 11:35:20 +00:00
|
|
|
#include <sstream>
|
|
|
|
#include <iomanip>
|
2024-12-20 13:11:26 +00:00
|
|
|
#include <unordered_map>
|
|
|
|
|
2023-11-08 14:27:22 +00:00
|
|
|
|
|
|
|
int modulo(int x,int N);
|
2023-11-10 18:52:06 +00:00
|
|
|
|
2023-11-28 01:05:04 +00:00
|
|
|
double getSupplyAtBlock(std::uint32_t blockNr);
|
2023-11-10 18:52:06 +00:00
|
|
|
|
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-12-20 13:11:26 +00:00
|
|
|
int64_t getAmountInSatoshis(std::string bolt11);
|
|
|
|
void parseHashrateString(const std::string& hashrate, std::string& label, std::string& output, unsigned int maxCharacters);
|
|
|
|
int getHashrateMultiplier(char unit);
|