stellar/ruby-stellar-base

View on GitHub
generated/stellar/claim_offer_atom.rb

Summary

Maintainability
A
0 mins
Test Coverage
# This code was automatically generated using xdrgen
# DO NOT EDIT or your changes may be overwritten

require 'xdr'

# === xdr source ============================================================
#
#   struct ClaimOfferAtom
#   {
#       // emitted to identify the offer
#       AccountID sellerID; // Account that owns the offer
#       int64 offerID;
#   
#       // amount and asset taken from the owner
#       Asset assetSold;
#       int64 amountSold;
#   
#       // amount and asset sent to the owner
#       Asset assetBought;
#       int64 amountBought;
#   };
#
# ===========================================================================
module Stellar
  class ClaimOfferAtom < XDR::Struct
    attribute :seller_id,     AccountID
    attribute :offer_id,      Int64
    attribute :asset_sold,    Asset
    attribute :amount_sold,   Int64
    attribute :asset_bought,  Asset
    attribute :amount_bought, Int64
  end
end