generated/stellar/allow_trust_op.rb in stellar-base-0.26.0 vs generated/stellar/allow_trust_op.rb in stellar-base-0.27.0
- old
+ new
@@ -6,34 +6,19 @@
# === xdr source ============================================================
#
# struct AllowTrustOp
# {
# AccountID trustor;
-# union switch (AssetType type)
-# {
-# // ASSET_TYPE_NATIVE is not allowed
-# case ASSET_TYPE_CREDIT_ALPHANUM4:
-# AssetCode4 assetCode4;
+# AssetCode asset;
#
-# case ASSET_TYPE_CREDIT_ALPHANUM12:
-# AssetCode12 assetCode12;
-#
-# // add other asset types here in the future
-# }
-# asset;
-#
-# // 0, or any bitwise combination of TrustLineFlags
+# // One of 0, AUTHORIZED_FLAG, or AUTHORIZED_TO_MAINTAIN_LIABILITIES_FLAG
# uint32 authorize;
# };
#
# ===========================================================================
module Stellar
class AllowTrustOp < XDR::Struct
- include XDR::Namespace
-
- autoload :Asset
-
attribute :trustor, AccountID
- attribute :asset, Asset
+ attribute :asset, AssetCode
attribute :authorize, Uint32
end
end