Function set_name

Source
pub fn set_name<D: Storage<Bytes32>, A: AccessControlRegistry>(
    name: Bytes32,
    datapoint_id: Bytes32,
    msg_sender: &A::Address,
    access: &A,
    storage: &mut D,
) -> Result<(), Error>
Expand description

Sets the data point ID the name points to While a data point ID refers to a specific Beacon or dAPI, names provide a more abstract interface for convenience. This means a name that was pointing at a Beacon can be pointed to a dAPI, then another dAPI, etc.

ยงArguments

  • name Human-readable name
  • datapoint_id Data point ID the name will point to
  • msg_sender Address of who sent the transaction
  • access Access control implementation to use
  • storage Storage implementation to use for linking name and datapoint_id