diff --git a/docs/api/runtime-calls.md b/docs/api/runtime-calls.md index 1818c833c265b01e6cff6ef2bad711ad876d6b42..150069167714ea8e1032e246c877c06381339b9d 100644 --- a/docs/api/runtime-calls.md +++ b/docs/api/runtime-calls.md @@ -13,7 +13,7 @@ through on-chain governance mechanisms. ## User calls -There are **78** user calls from **23** pallets. +There are **79** user calls from **23** pallets. ### Account - 1 @@ -867,7 +867,22 @@ Taking 0.018 % of a block. </details> -Request an identity to be evaluated +Request caller identity to be evaluated +positive evaluation will result in claim/renew membership +negative evaluation will result in slash for caller + +#### request_distance_evaluation_for - 4 + +<details><summary><code>request_distance_evaluation_for(target)</code></summary> + +```rust +target: T::IdtyIndex +``` +</details> + + +Request target identity to be evaluated +only possible for unvalidated identity #### update_evaluation - 1 @@ -882,6 +897,7 @@ computation_result: ComputationResult (Inherent) Push an evaluation result to the pool +this is called internally by validators (= inherent) #### force_update_evaluation - 2 @@ -896,22 +912,21 @@ computation_result: ComputationResult </details> -Push an evaluation result to the pool +Force push an evaluation result to the pool -#### force_set_distance_status - 3 +#### force_valid_distance_status - 3 -<details><summary><code>force_set_distance_status(identity, status)</code></summary> +<details><summary><code>force_valid_distance_status(identity)</code></summary> Taking 0.0104 % of a block. ```rust identity: <T as pallet_identity::Config>::IdtyIndex -status: Option<(<T as frame_system::Config>::AccountId, DistanceStatus)> ``` </details> -Set the distance evaluation status of an identity +Force set the distance evaluation status of an identity Removes the status if `status` is `None`. diff --git a/docs/api/runtime-errors.md b/docs/api/runtime-errors.md index 80eb0c2d43d9561b4746763383c3b36b9b7335af..757fcf5f6395a94aee814a6db2547a012439212d 100644 --- a/docs/api/runtime-errors.md +++ b/docs/api/runtime-errors.md @@ -1,6 +1,6 @@ # Runtime errors -There are **187** errors from **37** pallets. +There are **194** errors from **37** pallets. <ul> <li>System - 0 @@ -28,6 +28,7 @@ and the new runtime. Failed to extract the runtime version from the new runtime. Either calling `Core_version` or decoding `RuntimeVersion` failed. + </details> </li> <li> @@ -740,6 +741,13 @@ Cannot issue a certification to a revoked identity Issuer or receiver not found. </details> </li> +<li> +<details> +<summary> +<code>NotEnoughCertsReceivedToRequestDistanceEvaluation</code> - 16</summary> +Not enough certs received to request distance evaluation. +</details> +</li> </ul> </li> <li>Identity - 41 @@ -976,31 +984,66 @@ No author for this block. <li> <details> <summary> -<code>NoIdentity</code> - 4</summary> +<code>CallerHasNoIdentity</code> - 4</summary> Caller has no identity. </details> </li> <li> <details> <summary> -<code>QueueFull</code> - 5</summary> +<code>CallerIdentityNotFound</code> - 5</summary> +Caller identity not found. +</details> +</li> +<li> +<details> +<summary> +<code>CallerNotMember</code> - 6</summary> +Caller not member. +</details> +</li> +<li> +<details> +<summary> +<code>TargetIdentityNotFound</code> - 7</summary> +Target identity not found. +</details> +</li> +<li> +<details> +<summary> +<code>QueueFull</code> - 8</summary> Evaluation queue is full. </details> </li> <li> <details> <summary> -<code>TooManyEvaluators</code> - 6</summary> +<code>TooManyEvaluators</code> - 9</summary> Too many evaluators in the current evaluation pool. </details> </li> <li> <details> <summary> -<code>WrongResultLength</code> - 7</summary> +<code>WrongResultLength</code> - 10</summary> Evaluation result has a wrong length. </details> </li> +<li> +<details> +<summary> +<code>DistanceRequestOnlyAllowedForUnvalidated</code> - 11</summary> +Targeted distance evaluation request is only possible for an unvalidated identity +</details> +</li> +<li> +<details> +<summary> +<code>ValidDistanceResultAlreadyAvailable</code> - 12</summary> +Can not request distance evaluation when a valid result has already been published recently +</details> +</li> </ul> </li> <li>SmithSubWot - 50 @@ -1117,6 +1160,13 @@ Cannot issue a certification to a revoked identity Issuer or receiver not found. </details> </li> +<li> +<details> +<summary> +<code>NotEnoughCertsReceivedToRequestDistanceEvaluation</code> - 16</summary> +Not enough certs received to request distance evaluation. +</details> +</li> </ul> </li> <li>SmithMembership - 52 @@ -1467,4 +1517,4 @@ Proposal has not been approved. </li> </ul> </li> -</ul> \ No newline at end of file +</ul> diff --git a/docs/api/runtime-events.md b/docs/api/runtime-events.md index 05a1536de903a9d6c983054688adb20a6a662463..6a5a5766fdcd74c455bdb205d9ade234ecf67381 100644 --- a/docs/api/runtime-events.md +++ b/docs/api/runtime-events.md @@ -1294,11 +1294,11 @@ who: T::AccountId <li> <details> <summary> -<code>EvaluationUpdated(evaluator)</code> - 1</summary> -A distance evaluation was updated. +<code>EvaluatedValid(idty_index)</code> - 1</summary> +Distance rule was found valid ```rust -evaluator: T::AccountId +idty_index: T::IdtyIndex ``` </details> @@ -1306,12 +1306,11 @@ evaluator: T::AccountId <li> <details> <summary> -<code>EvaluationStatusForced(idty_index, status)</code> - 2</summary> -A distance status was forced. +<code>EvaluatedInvalid(idty_index)</code> - 2</summary> +Distance rule was found invalid ```rust idty_index: T::IdtyIndex -status: Option<(<T as frame_system::Config>::AccountId, DistanceStatus)> ``` </details>