-
Notifications
You must be signed in to change notification settings - Fork 57
Description
Register a mosaic
Deadline.create(),
nonce,
MosaicId.createFromNonce(nonce, publicKey),
MosaicProperties.create({
supplyMutable: true,
transferable: true,
levyMutable: false,
divisibility: 0,
duration: UInt64.fromUint(0) //nonExpirable
}),
NetworkType.MIJIN_TEST);
Remove mosaicName and namespaceId. Ideally, the nonce should not be set by the user, as it is a random number. However, it can be defined as an optional parameter in case some advanced user wants to define its own.
A mosaic can be set non-expirable when it's duration is set to 0. Should we provide a way to set that the mosaic is non-expirable clearly? E.g. : MosaicDefinitionTransaction.createNonExpirable()
Remove "get mosaic by namespace from the mosaic" from MosaicRepository
Method here.
Adapt models related to mosaics
-
The constructor of
MosaicIdclass accepts a string innamespace_name:mosaic_nameform. -
Mosaics don't have a name by default, now have an alias. Consider editing / deleting MosaicNames model
-
XEM definition has changed since it does not have the namespace "nem" attached.
-
Consider how to deal with "fullName" field, now we have the alias: https://github.com/nemtech/nem2-sdk-typescript-javascript/blob/4227619494ae216940295db96e89e2af53468312/src/model/mosaic/MosaicId.ts
Adapt services related to mosaics
The following related mosaic services use the namespaceId, namespaceName or namespaceHttp: