# This code was automatically generated using xdrgen
# DO NOT EDIT or your changes may be overwritten

require 'xdr'

# === xdr source ============================================================
#
#   struct LedgerEntry
#   {
#       uint32 lastModifiedLedgerSeq; // ledger the LedgerEntry was last changed
#   
#       union switch (LedgerEntryType type)
#       {
#       case ACCOUNT:
#           AccountEntry account;
#       case TRUSTLINE:
#           TrustLineEntry trustLine;
#       case OFFER:
#           OfferEntry offer;
#       case DATA:
#           DataEntry data;
#       case CLAIMABLE_BALANCE:
#           ClaimableBalanceEntry claimableBalance;
#       case LIQUIDITY_POOL:
#           LiquidityPoolEntry liquidityPool;
#       }
#       data;
#   
#       // reserved for future use
#       union switch (int v)
#       {
#       case 0:
#           void;
#       case 1:
#           LedgerEntryExtensionV1 v1;
#       }
#       ext;
#   };
#
# ===========================================================================
module Stellar
  class LedgerEntry < XDR::Struct
    include XDR::Namespace

    autoload :Data
    autoload :Ext

    attribute :last_modified_ledger_seq, Uint32
    attribute :data,                     Data
    attribute :ext,                      Ext
  end
end
