MsgSetStandards

Disclaimer: This message is a streamlined alternative to MsgUpdateCollectionarrow-up-right. If you need to update many fields at once, we recommend using MsgUpdateCollection instead.

MsgSetStandards

Sets the standards and update permissions for a collection. This is a convenience message that focuses specifically on standards management.

Overview

This message allows you to:

  • Set standards for the collection

  • Configure permissions to update the standards in the future

Authorization & Permissions

Updates can only be performed by the current manager of the collection. The manager must have permission to update the standards according to the collection's current permission settings.

Proto Definition

message MsgSetStandards {
  option (cosmos.msg.v1.signer) = "creator";
  option (amino.name) = "badges/SetStandards";

  // Address of the creator.
  string creator = 1;

  // ID of the collection.
  string collectionId = 2 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false];

  // New standards to set.
  repeated string standards = 3;

  // Permission to update standards
  repeated ActionPermission canUpdateStandards = 4;
}

message MsgSetStandardsResponse {
  // ID of the collection.
  string collectionId = 1 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false];
}

Usage Example

JSON Example

Last updated