Traits

Trait Create {

// Creates a new entity into the pallet. entity(id, manager, metadata) -> DispatchResult;

//Creates a new bucket bucket(entity_id, metadata) -> DispatchResult;

} Trait Delete {

// Removes entity from pallet entity(id) -> DispatchResult;

// Removes bucket from pallet bucket(entity_id, bucket_id) -> DispatchResult;

}

Trait UserManagement {

// Adds a new account to the list of admins. add_admin(entity_id, bucket_id, account) -> DispatchResult;

// Removes the account from the admins list remove_admin(entity_id, bucket_id, account) -> DispatchResult;

// Adds a new account to the list of contributors. add_contributor(entity_id, bucket_id, account) -> DispatchResult;

// Removes the account from the contributors list remove_contributor(entity_id, bucket_id, account) -> DispatchResult;

// Adds a new account to the list of managers. add_manager(entity_id, account) -> DispatchResult;

// Removes the account from the contributors list remove_manager(entity_id, account) -> DispatchResult;

} Trait BucketManager {

// Pauses the write operation of the bucket set_locked(entity_id, bucket_id) -> DispatchResult;

// Resume the write operation of the bucket set_writable(entity_id, bucket_id, encryption_key) -> DispatchResult;

}

Trait BenchmarkHelperTrait{

create_origin_regular(seed: u32) -> Origin;

create_origin_manager(seed: u32) -> Origin;

create_origin_gov(seed: u32) -> Origin;

}

Last updated