You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
506 B
19 lines
506 B
#ifndef LIGHTNING_COMMON_ISO4217_H
|
|
#define LIGHTNING_COMMON_ISO4217_H
|
|
#include "config.h"
|
|
|
|
/* BOLT-offers #12:
|
|
*
|
|
* - MUST specify `iso4217` as an ISO 4712 three-letter code.
|
|
* - MUST specify `amount` in the currency unit adjusted by the ISO 4712
|
|
* exponent (e.g. USD cents).
|
|
*/
|
|
struct iso4217_name_and_divisor {
|
|
const char *name;
|
|
unsigned int minor_unit;
|
|
};
|
|
|
|
#define ISO4217_NAMELEN 3
|
|
|
|
const struct iso4217_name_and_divisor *find_iso4217(const char *prefix);
|
|
#endif /* LIGHTNING_COMMON_ISO4217_H */
|
|
|