Regular
create(entity_id, metadata)
Description
Creates a new entity instance in the pallet. The metadata should not be changeable. Runtime should also be able to create a new instance. By calling the transaction, the first initial bucket is created. The origin is the entity’s initial manager.
Parameters:
Entity_id: the entity to which the bucket is linked.
Metadata: set of metadata associated to the bucket
write(bucket_id, message, tag)
Description
Contributor writes a new message to the bucket. With the bucket_id, the current bucket is fetched and the message is saved.
Parameters
bucket_id: The entity to write message
Message: containing storage reference and other meta information.
Tag: A message kind/tag for message discovery and filtering.
Last updated