Class MosaicGlobalRestrictionTransactionV1Descriptor
java.lang.Object
org.symbol.sdk.symbol.descriptors.MosaicGlobalRestrictionTransactionV1Descriptor
- All Implemented Interfaces:
SymbolTransactionDescriptor,SymbolTypedDescriptor,TypedDescriptor
public final class MosaicGlobalRestrictionTransactionV1Descriptor
extends Object
implements SymbolTransactionDescriptor
- MosaicGlobalRestrictionTransactionV1Descriptor
- Type safe descriptor used to generate a descriptor map for MosaicGlobalRestrictionTransactionV1Descriptor. Set global rules to transfer a restrictable mosaic (V1, latest).
-
Constructor Summary
ConstructorsConstructorDescriptionMosaicGlobalRestrictionTransactionV1Descriptor(String mosaicId, String referenceMosaicId, long restrictionKey, long previousRestrictionValue, long newRestrictionValue, String previousRestrictionType, String newRestrictionType) Creates a descriptor for MosaicGlobalRestrictionTransactionV1 from string-form values.MosaicGlobalRestrictionTransactionV1Descriptor(UnresolvedMosaicId mosaicId, UnresolvedMosaicId referenceMosaicId, long restrictionKey, long previousRestrictionValue, long newRestrictionValue, MosaicRestrictionType previousRestrictionType, MosaicRestrictionType newRestrictionType) Creates a descriptor for MosaicGlobalRestrictionTransactionV1. -
Method Summary
-
Constructor Details
-
MosaicGlobalRestrictionTransactionV1Descriptor
public MosaicGlobalRestrictionTransactionV1Descriptor(UnresolvedMosaicId mosaicId, UnresolvedMosaicId referenceMosaicId, long restrictionKey, long previousRestrictionValue, long newRestrictionValue, MosaicRestrictionType previousRestrictionType, MosaicRestrictionType newRestrictionType) Creates a descriptor for MosaicGlobalRestrictionTransactionV1.- Parameters:
mosaicId- Identifier of the mosaic being restricted. The mosaic creator must be the signer of the transaction.referenceMosaicId- Identifier of the mosaic providing the restriction key. The mosaic global restriction for the mosaic identifier depends on global restrictions set on the reference mosaic. Set `reference_mosaic_id` to **0** if the mosaic giving the restriction equals the `mosaic_id`.restrictionKey- Restriction key relative to the reference mosaic identifier.previousRestrictionValue- Previous restriction value.newRestrictionValue- New restriction value.previousRestrictionType- Previous restriction type.newRestrictionType- New restriction type.
-
MosaicGlobalRestrictionTransactionV1Descriptor
public MosaicGlobalRestrictionTransactionV1Descriptor(String mosaicId, String referenceMosaicId, long restrictionKey, long previousRestrictionValue, long newRestrictionValue, String previousRestrictionType, String newRestrictionType) Creates a descriptor for MosaicGlobalRestrictionTransactionV1 from string-form values.- Parameters:
mosaicId- Identifier of the mosaic being restricted. The mosaic creator must be the signer of the transaction.referenceMosaicId- Identifier of the mosaic providing the restriction key. The mosaic global restriction for the mosaic identifier depends on global restrictions set on the reference mosaic. Set `reference_mosaic_id` to **0** if the mosaic giving the restriction equals the `mosaic_id`.restrictionKey- Restriction key relative to the reference mosaic identifier.previousRestrictionValue- Previous restriction value.newRestrictionValue- New restriction value.previousRestrictionType- Previous restriction type.newRestrictionType- New restriction type.
-
-
Method Details
-
toMap
- MosaicGlobalRestrictionTransactionV1Descriptor.toMap
- Builds a representation of this descriptor that can be passed to a factory function.
- Specified by:
toMapin interfaceTypedDescriptor- Returns:
- Descriptor map that can be passed to a transaction factory.
-