Sha256: 1e0bf3734afb89ddc558a25c9d60d33e8e3d680e8ee289857cc31f135a3594c1

Contents?: true

Size: 1.89 KB

Versions: 3

Compression:

Stored size: 1.89 KB

Contents

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

require 'xdr'

# === xdr source ============================================================
#
#   struct Operation
#   {
#       // sourceAccount is the account used to run the operation
#       // if not set, the runtime defaults to "sourceAccount" specified at
#       // the transaction level
#       AccountID* sourceAccount;
#   
#       union switch (OperationType type)
#       {
#       case CREATE_ACCOUNT:
#           CreateAccountOp createAccountOp;
#       case PAYMENT:
#           PaymentOp paymentOp;
#       case PATH_PAYMENT:
#           PathPaymentOp pathPaymentOp;
#       case MANAGE_OFFER:
#           ManageOfferOp manageOfferOp;
#       case CREATE_PASSIVE_OFFER:
#           CreatePassiveOfferOp createPassiveOfferOp;
#       case SET_OPTIONS:
#           SetOptionsOp setOptionsOp;
#       case CHANGE_TRUST:
#           ChangeTrustOp changeTrustOp;
#       case ALLOW_TRUST:
#           AllowTrustOp allowTrustOp;
#       case ACCOUNT_MERGE:
#           AccountID destination;
#       case INFLATION:
#           void;
#       case CREATE_LOT:
#           CreateLotOp createLotOp;
#       case REGISTER_PARTICIPANT:
#           RegisterParticipantOp registerParticipantOp;
#       case PROVIDE_PROOF:
#           ProvideProofOp provideProofOp;
#       case SEND_MESSAGE:
#           SendMessageOp sendMessageOp;
#       case CREATE_BID:
#           CreateBidOp createBidOp;
#       case AFFIRM_FAIL:
#           AffirmFailOp affirmFailOp;
#       case AFFIRM_PASS:
#           AffirmPassOp affirmPassOp;
#       }
#       body;
#   };
#
# ===========================================================================
module Stellar
  class Operation < XDR::Struct
    include XDR::Namespace

    autoload :Body

    attribute :source_account, XDR::Option[AccountID]
    attribute :body,           Body
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
auction-ruby-base-0.1.3 generated/stellar/operation.rb
auction-ruby-base-0.1.2 generated/stellar/operation.rb
auction-ruby-base-0.1.1 generated/stellar/operation.rb