generated/stellar/stellar_value.rb in stellar-base-0.19.0 vs generated/stellar/stellar_value.rb in stellar-base-0.20.0
- old
+ new
@@ -5,25 +5,27 @@
# === xdr source ============================================================
#
# struct StellarValue
# {
-# Hash txSetHash; // transaction set to apply to previous ledger
-# uint64 closeTime; // network close time
+# Hash txSetHash; // transaction set to apply to previous ledger
+# TimePoint closeTime; // network close time
#
# // upgrades to apply to the previous ledger (usually empty)
# // this is a vector of encoded 'LedgerUpgrade' so that nodes can drop
# // unknown steps during consensus if needed.
# // see notes below on 'LedgerUpgrade' for more detail
# // max size is dictated by number of upgrade types (+ room for future)
# UpgradeType upgrades<6>;
#
# // reserved for future use
-# union switch (int v)
+# union switch (StellarValueType v)
# {
-# case 0:
+# case STELLAR_VALUE_BASIC:
# void;
+# case STELLAR_VALUE_SIGNED:
+# LedgerCloseValueSignature lcValueSignature;
# }
# ext;
# };
#
# ===========================================================================
@@ -32,10 +34,10 @@
include XDR::Namespace
autoload :Ext
attribute :tx_set_hash, Hash
- attribute :close_time, Uint64
+ attribute :close_time, TimePoint
attribute :upgrades, XDR::VarArray[UpgradeType, 6]
attribute :ext, Ext
end
end