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 namedatapoint_id
Data point ID the name will point tomsg_sender
Address of who sent the transactionaccess
Access control implementation to usestorage
Storage implementation to use for linking name and datapoint_id