Class MosaicGlobalRestrictionTransactionV1Descriptor
- All Implemented Interfaces:
SymbolTransactionDescriptor,SymbolTypedDescriptor,TypedDescriptor
- 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(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. Setreference_mosaic_idto 0 if the mosaic giving the restriction equals themosaic_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.
-