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