From 6dc8e4c391949ba0ec8f3ca2234c0d69fae659f9 Mon Sep 17 00:00:00 2001 From: migueldingli1997 Date: Fri, 10 Dec 2021 10:51:43 +0100 Subject: [PATCH 1/3] Fix ADR 30 links in doc --- x/authz/spec/01_concepts.md | 2 +- x/authz/spec/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/x/authz/spec/01_concepts.md b/x/authz/spec/01_concepts.md index 7855ff5fc579..b1ce5f8c0484 100644 --- a/x/authz/spec/01_concepts.md +++ b/x/authz/spec/01_concepts.md @@ -7,7 +7,7 @@ order: 1 ## Authorization and Grant The `x/authz` module defines interfaces and messages grant authorizations to perform actions -on behalf of one account to other accounts. The design is defined in the [ADR 030](../../../architecture/adr-030-authz-module.md). +on behalf of one account to other accounts. The design is defined in the [ADR 030](../../../docs/architecture/adr-030-authz-module.md). A *grant* is an allowance to execute a Msg by the grantee on behalf of the granter. Authorization is an interface that must be implemented by a concrete authorization logic to validate and execute grants. Authorizations are extensible and can be defined for any Msg service method even outside of the module where the Msg method is defined. See the `SendAuthorization` example in the next section for more details. diff --git a/x/authz/spec/README.md b/x/authz/spec/README.md index 4c62d94294c4..8fc569d8efd2 100644 --- a/x/authz/spec/README.md +++ b/x/authz/spec/README.md @@ -11,7 +11,7 @@ parent: ## Abstract -`x/authz` is an implementation of a Cosmos SDK module, per [ADR 30](../../../architecture/adr-030-authz-module.md), that allows +`x/authz` is an implementation of a Cosmos SDK module, per [ADR 30](../../../docs/architecture/adr-030-authz-module.md), that allows granting arbitrary privileges from one account (the granter) to another account (the grantee). Authorizations must be granted for a particular Msg service method one by one using an implementation of the `Authorization` interface. 1. **[Concept](01_concepts.md)** From 54d3512ed9e480f5cf3d0746e08059de46ee5134 Mon Sep 17 00:00:00 2001 From: migueldingli1997 Date: Fri, 10 Dec 2021 11:19:54 +0100 Subject: [PATCH 2/3] Fix typo --- x/authz/spec/01_concepts.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/authz/spec/01_concepts.md b/x/authz/spec/01_concepts.md index b1ce5f8c0484..99783e85de36 100644 --- a/x/authz/spec/01_concepts.md +++ b/x/authz/spec/01_concepts.md @@ -42,4 +42,4 @@ The Cosmos SDK `x/authz` module comes with following authorization types: ## Gas -In order to prevent DoS attacks, granting `StakeAuthorizaiton`s with `x/authz` incurs gas. `StakeAuthorization` allows you to authorize another account to delegate, undelegate, or redelegate to validators. The authorizer can define a list of validators they allow or deny delegations to. The Cosmos SDK iterates over these lists and charge 10 gas for each validator in both of the lists. +In order to prevent DoS attacks, granting `StakeAuthorization`s with `x/authz` incurs gas. `StakeAuthorization` allows you to authorize another account to delegate, undelegate, or redelegate to validators. The authorizer can define a list of validators they allow or deny delegations to. The Cosmos SDK iterates over these lists and charge 10 gas for each validator in both of the lists. From ec88ffc5197b24d0fbd933026869e49a77a0913e Mon Sep 17 00:00:00 2001 From: migueldingli1997 Date: Fri, 10 Dec 2021 11:29:03 +0100 Subject: [PATCH 3/3] Fix more doc links --- x/authz/spec/README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/x/authz/spec/README.md b/x/authz/spec/README.md index 8fc569d8efd2..85461871ea5f 100644 --- a/x/authz/spec/README.md +++ b/x/authz/spec/README.md @@ -15,8 +15,8 @@ parent: granting arbitrary privileges from one account (the granter) to another account (the grantee). Authorizations must be granted for a particular Msg service method one by one using an implementation of the `Authorization` interface. 1. **[Concept](01_concepts.md)** - - [Authorization](01_concepts.md#Authorization) - - [Built-in Authorizations](01_concepts.md#Built-in-Authorization) + - [Authorization and Grant](01_concepts.md#Authorization-and-Grant) + - [Built-in Authorizations](01_concepts.md#Built-in-Authorizations) - [Gas](01_concepts.md#gas) 2. **[State](02_state.md)** 3. **[Messages](03_messages.md)** @@ -24,7 +24,6 @@ granting arbitrary privileges from one account (the granter) to another account - [MsgRevoke](03_messages.md#MsgRevoke) - [MsgExec](03_messages.md#MsgExec) 4. **[Events](04_events.md)** - - [Keeper](04_events.md#Keeper) 5. **[Client](05_client.md)** - [CLI](05_client.md#cli) - [gRPC](05_client.md#grpc)