Type alias NamespaceRuleMetadataDetails

NamespaceRuleMetadataDetails: {
    authors: string[];
    configureParams: ContractKeyValuePairDescriptor[];
    description: Markdown;
    id: string;
    name: string;
    processAssigningParams: ContractKeyValuePairDescriptor[];
    processCreationParams: ContractKeyValuePairDescriptor[];
    processRemovalParams: ContractKeyValuePairDescriptor[];
    processUnassigningParams: ContractKeyValuePairDescriptor[];
    source: URI;
    title: string;
}

Type declaration

  • authors: string[]

    List of authors email addresses.

  • configureParams: ContractKeyValuePairDescriptor[]

    A list of ContractKeyValuePairDescriptor that describes the ruleParams argument of the configure function.

    function configure(bytes32 configSalt, KeyValue[] calldata ruleParams) external;
    

    This will be used to know how to encode and decode the params for the configure function.

  • description: Markdown

    Markdown formatted description of the Rule.

    It should explain what this Rule does, how to use it, examples just like you would if you were building an NPM package. The more detail the better to allow dApp to easily integrate it.

  • id: string

    A unique identifier that in storages like IPFS ensures the uniqueness of the metadata URI. Use a UUID if unsure.

  • name: string

    A short name for the Rule.

  • processAssigningParams: ContractKeyValuePairDescriptor[]

    A list of ContractKeyValuePairDescriptor that describes the ruleParams argument of the processAssigning function.

    function processAssigning(
      bytes32 configSalt,
      address originalMsgSender,
      address account,
      string calldata username,
      KeyValue[] calldata primitiveParams,
      KeyValue[] calldata ruleParams
    ) external;
    

    This will be used to know how to encode the calldata for the processAssigning function.

  • processCreationParams: ContractKeyValuePairDescriptor[]

    A list of ContractKeyValuePairDescriptor that describes the ruleParams argument of the processCreation function.

    function processCreation(
      bytes32 configSalt,
      address originalMsgSender,
      address account,
      string calldata username,
      KeyValue[] calldata primitiveParams,
      KeyValue[] calldata ruleParams
    ) external;
    

    This will be used to know how to encode and decode the params for the processCreation function.

  • processRemovalParams: ContractKeyValuePairDescriptor[]

    A list of ContractKeyValuePairDescriptor that describes the ruleParams argument of the processRemoval function.

    function processRemoval(
      bytes32 configSalt,
      address originalMsgSender,
      string calldata username,
      KeyValue[] calldata primitiveParams,
      KeyValue[] calldata ruleParams
    ) external;
    

    This will be used to know how to encode the calldata for the processRemoval function.

  • processUnassigningParams: ContractKeyValuePairDescriptor[]

    A list of ContractKeyValuePairDescriptor that describes the ruleParams argument of the processUnassigning function.

    function processUnassigning(
      bytes32 configSalt,
      address originalMsgSender,
      address account,
      string calldata username,
      KeyValue[] calldata primitiveParams,
      KeyValue[] calldata ruleParams
    ) external;
    

    This will be used to know how to encode the calldata for the processUnassigning function.

  • source: URI

    The link to the Rule source code. Typically a GitHub repository.

  • title: string

    The human-friendly title for the Rule.