mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
24 lines
388 B
C
24 lines
388 B
C
#ifndef __LEDGERFORMATS__
|
|
#define __LEDGERFORMATS__
|
|
|
|
#include "SerializedObject.h"
|
|
|
|
enum LedgerEntryType
|
|
{
|
|
ltINVALID=-1,
|
|
ltACCOUNT_ROOT=0,
|
|
ltRIPPLE_STATE=1,
|
|
ltNICKNAME=2
|
|
};
|
|
|
|
struct LedgerEntryFormat
|
|
{
|
|
const char *t_name;
|
|
LedgerEntryType t_type;
|
|
SOElement elements[16];
|
|
};
|
|
|
|
extern LedgerEntryFormat LedgerFormats[];
|
|
extern LedgerEntryFormat* getLgrFormat(LedgerEntryType t);
|
|
#endif
|