Sha256: d372387b00f3ff9d772b25e1c97cb63d32f8062092fd754db4b205294060fbbb

Contents?: true

Size: 1.86 KB

Versions: 32

Compression:

Stored size: 1.86 KB

Contents

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

require 'xdr'

# === xdr source ============================================================
#
#   union switch (SCPStatementType type)
#       {
#       case SCP_ST_PREPARE:
#           struct
#           {
#               Hash quorumSetHash;       // D
#               SCPBallot ballot;         // b
#               SCPBallot* prepared;      // p
#               SCPBallot* preparedPrime; // p'
#               uint32 nC;                // c.n
#               uint32 nH;                // h.n
#           } prepare;
#       case SCP_ST_CONFIRM:
#           struct
#           {
#               SCPBallot ballot;   // b
#               uint32 nPrepared;   // p.n
#               uint32 nCommit;     // c.n
#               uint32 nH;          // h.n
#               Hash quorumSetHash; // D
#           } confirm;
#       case SCP_ST_EXTERNALIZE:
#           struct
#           {
#               SCPBallot commit;         // c
#               uint32 nH;                // h.n
#               Hash commitQuorumSetHash; // D used before EXTERNALIZE
#           } externalize;
#       case SCP_ST_NOMINATE:
#           SCPNomination nominate;
#       }
#
# ===========================================================================
module Stellar
  class SCPStatement
    class Pledges < XDR::Union
      include XDR::Namespace

      autoload :Prepare
      autoload :Confirm
      autoload :Externalize

      switch_on SCPStatementType, :type

      switch :scp_st_prepare,     :prepare
      switch :scp_st_confirm,     :confirm
      switch :scp_st_externalize, :externalize
      switch :scp_st_nominate,    :nominate

      attribute :prepare,     Prepare
      attribute :confirm,     Confirm
      attribute :externalize, Externalize
      attribute :nominate,    SCPNomination
    end
  end
end

Version data entries

32 entries across 32 versions & 2 rubygems

Version Path
stellar-base-0.32.0 generated/stellar/scp_statement/pledges.rb
stellar-base-0.31.0 generated/stellar/scp_statement/pledges.rb
stellar-base-0.30.0 generated/stellar/scp_statement/pledges.rb
stellar-base-0.29.0 generated/stellar/scp_statement/pledges.rb
stellar-base-0.28.0 generated/stellar/scp_statement/pledges.rb
stellar-base-0.27.0 generated/stellar/scp_statement/pledges.rb
stellar-base-0.26.0 generated/stellar/scp_statement/pledges.rb
stellar-base-0.25.0 generated/stellar/scp_statement/pledges.rb
stellar-base-0.24.0 generated/stellar/scp_statement/pledges.rb
stellar-base-0.24.0.pre.1 generated/stellar/scp_statement/pledges.rb
stellar-base-0.23.1 generated/stellar/scp_statement/pledges.rb
stellar-base-0.23.0 generated/stellar/scp_statement/pledges.rb
stellar-base-0.23.0.rc2 generated/stellar/scp_statement/pledges.rb
stellar-base-0.23.0.rc1 generated/stellar/scp_statement/pledges.rb
stellar-base-0.23.0.pre1 generated/stellar/scp_statement/pledges.rb
stellar-base-0.22.0 generated/stellar/scp_statement/pledges.rb
stellar-base-0.21.0 generated/stellar/scp_statement/pledges.rb
stellar-base-0.20.0 generated/stellar/scp_statement/pledges.rb
stellar-base-0.19.0 generated/stellar/scp_statement/pledges.rb
stellar-base-0.18.0 generated/stellar/scp_statement/pledges.rb