generated/stellar/allow_trust_op.rb in stellar-base-0.0.20 vs generated/stellar/allow_trust_op.rb in stellar-base-0.1.0

- old
+ new

@@ -6,30 +6,33 @@ # === xdr source ============================================================ # # struct AllowTrustOp # { # AccountID trustor; -# union switch (CurrencyType type) +# union switch (AssetType type) # { -# // CURRENCY_TYPE_NATIVE is not allowed -# case CURRENCY_TYPE_ALPHANUM: -# opaque currencyCode[4]; +# // ASSET_TYPE_NATIVE is not allowed +# case ASSET_TYPE_CREDIT_ALPHANUM4: +# opaque assetCode4[4]; # -# // add other currency types here in the future +# case ASSET_TYPE_CREDIT_ALPHANUM12: +# opaque assetCode12[12]; +# +# // add other asset types here in the future # } -# currency; +# asset; # # bool authorize; # }; # # =========================================================================== module Stellar class AllowTrustOp < XDR::Struct include XDR::Namespace - autoload :Currency + autoload :Asset attribute :trustor, AccountID - attribute :currency, Currency + attribute :asset, Asset attribute :authorize, XDR::Bool end end