Sha256: 3bb1d507c6f06bb3e5b405ee818dbbc4fdd2fe0252674ae258eb0535b0756acc

Contents?: true

Size: 923 Bytes

Versions: 23

Compression:

Stored size: 923 Bytes

Contents

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

require 'xdr'

# === xdr source ============================================================
#
#   union switch (AssetType type)
#       {
#       // ASSET_TYPE_NATIVE is not allowed
#       case ASSET_TYPE_CREDIT_ALPHANUM4:
#           opaque assetCode4[4];
#   
#       case ASSET_TYPE_CREDIT_ALPHANUM12:
#           opaque assetCode12[12];
#   
#           // add other asset types here in the future
#       }
#
# ===========================================================================
module Stellar
  class AllowTrustOp
    class Asset < XDR::Union
      switch_on AssetType, :type

      switch :asset_type_credit_alphanum4,  :asset_code4
      switch :asset_type_credit_alphanum12, :asset_code12

      attribute :asset_code4,  XDR::Opaque[4]
      attribute :asset_code12, XDR::Opaque[12]
    end
  end
end

Version data entries

23 entries across 23 versions & 3 rubygems

Version Path
stellar-base-0.19.0 generated/stellar/allow_trust_op/asset.rb
stellar-base-0.18.0 generated/stellar/allow_trust_op/asset.rb
stellar-base-0.17.0 generated/stellar/allow_trust_op/asset.rb
stellar-base-0.16.0 generated/stellar/allow_trust_op/asset.rb
stellar-base-0.15.0 generated/stellar/allow_trust_op/asset.rb
stellar-base-0.14.0 generated/stellar/allow_trust_op/asset.rb
stellar-base-0.13.0 generated/stellar/allow_trust_op/asset.rb
stellar-base-0.12.0 generated/stellar/allow_trust_op/asset.rb
stellar-base-0.11.0 generated/stellar/allow_trust_op/asset.rb
auction-ruby-base-0.1.3 generated/stellar/allow_trust_op/asset.rb
auction-ruby-base-0.1.2 generated/stellar/allow_trust_op/asset.rb
auction-ruby-base-0.1.1 generated/stellar/allow_trust_op/asset.rb
stellar-base-0.10.0 generated/stellar/allow_trust_op/asset.rb
stellar-base-0.9.0 generated/stellar/allow_trust_op/asset.rb
stellar-base-0.8.0 generated/stellar/allow_trust_op/asset.rb
stellar-base-0.7.0 generated/stellar/allow_trust_op/asset.rb
stellar-base-0.6.1 generated/stellar/allow_trust_op/asset.rb
stellar-base-0.6.0 generated/stellar/allow_trust_op/asset.rb
stellar-base-0.5.0 generated/stellar/allow_trust_op/asset.rb
stellar-base-0.4.0 generated/stellar/allow_trust_op/asset.rb