Skip to content

Commit

Permalink
updated subspaces version
Browse files Browse the repository at this point in the history
Signed-off-by: Riccardo Montagnin <[email protected]>
  • Loading branch information
RiccardoM committed Jul 22, 2022
1 parent 5fd2ca1 commit 58d4b5c
Show file tree
Hide file tree
Showing 11 changed files with 143 additions and 143 deletions.
16 changes: 8 additions & 8 deletions client/docs/swagger-ui/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4963,7 +4963,7 @@ paths:
format: boolean
tags:
- Query
/desmos/subspaces/v2/subspaces:
/desmos/subspaces/v3/subspaces:
get:
summary: Subspaces queries all the subspaces inside Desmos
operationId: Subspaces
Expand Down Expand Up @@ -5122,7 +5122,7 @@ paths:
format: boolean
tags:
- Query
'/desmos/subspaces/v2/subspaces/{subspace_id}':
'/desmos/subspaces/v3/subspaces/{subspace_id}':
get:
summary: >-
Subspace queries all the information about the subspace with the given
Expand Down Expand Up @@ -5200,7 +5200,7 @@ paths:
format: uint64
tags:
- Query
'/desmos/subspaces/v2/subspaces/{subspace_id}/groups':
'/desmos/subspaces/v3/subspaces/{subspace_id}/groups':
get:
summary: >-
UserGroups queries all the groups that are present inside the subspace
Expand Down Expand Up @@ -5374,7 +5374,7 @@ paths:
format: boolean
tags:
- Query
'/desmos/subspaces/v2/subspaces/{subspace_id}/groups/{group_id}':
'/desmos/subspaces/v3/subspaces/{subspace_id}/groups/{group_id}':
get:
summary: |-
UserGroup queries the user group having the given id inside the specific
Expand Down Expand Up @@ -5459,7 +5459,7 @@ paths:
format: int64
tags:
- Query
'/desmos/subspaces/v2/subspaces/{subspace_id}/groups/{group_id}/members':
'/desmos/subspaces/v3/subspaces/{subspace_id}/groups/{group_id}/members':
get:
summary: UserGroupMembers queries all the members of a given user group
operationId: UserGroupMembers
Expand Down Expand Up @@ -5598,7 +5598,7 @@ paths:
format: boolean
tags:
- Query
'/desmos/subspaces/v2/subspaces/{subspace_id}/permissions/{user}':
'/desmos/subspaces/v3/subspaces/{subspace_id}/permissions/{user}':
get:
summary: UserPermissions queries the permissions for the given user
operationId: UserPermissions
Expand Down Expand Up @@ -5696,7 +5696,7 @@ paths:
format: int64
tags:
- Query
'/desmos/subspaces/v2/{subspace_id}/sections':
'/desmos/subspaces/v3/{subspace_id}/sections':
get:
summary: Sections allows to query for the sections of a specific subspace
operationId: Sections
Expand Down Expand Up @@ -5849,7 +5849,7 @@ paths:
format: boolean
tags:
- Query
'/desmos/subspaces/v2/{subspace_id}/sections/{section_id}':
'/desmos/subspaces/v3/{subspace_id}/sections/{section_id}':
get:
summary: Section queries all the information about the section with the given id
operationId: Section
Expand Down
16 changes: 8 additions & 8 deletions proto/desmos/subspaces/v3/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -14,53 +14,53 @@ service Query {

// Subspaces queries all the subspaces inside Desmos
rpc Subspaces(QuerySubspacesRequest) returns (QuerySubspacesResponse) {
option (google.api.http).get = "/desmos/subspaces/v2/subspaces";
option (google.api.http).get = "/desmos/subspaces/v3/subspaces";
}

// Subspace queries all the information about the subspace with the given id
rpc Subspace(QuerySubspaceRequest) returns (QuerySubspaceResponse) {
option (google.api.http).get =
"/desmos/subspaces/v2/subspaces/{subspace_id}";
"/desmos/subspaces/v3/subspaces/{subspace_id}";
}

// Sections allows to query for the sections of a specific subspace
rpc Sections(QuerySectionsRequest) returns (QuerySectionsResponse) {
option (google.api.http).get =
"/desmos/subspaces/v2/{subspace_id}/sections";
"/desmos/subspaces/v3/{subspace_id}/sections";
}

// Section queries all the information about the section with the given id
rpc Section(QuerySectionRequest) returns (QuerySectionResponse) {
option (google.api.http).get =
"/desmos/subspaces/v2/{subspace_id}/sections/{section_id}";
"/desmos/subspaces/v3/{subspace_id}/sections/{section_id}";
}

// UserGroups queries all the groups that are present inside the subspace with
// the given id
rpc UserGroups(QueryUserGroupsRequest) returns (QueryUserGroupsResponse) {
option (google.api.http).get =
"/desmos/subspaces/v2/subspaces/{subspace_id}/groups";
"/desmos/subspaces/v3/subspaces/{subspace_id}/groups";
}

// UserGroup queries the user group having the given id inside the specific
// subspace
rpc UserGroup(QueryUserGroupRequest) returns (QueryUserGroupResponse) {
option (google.api.http).get =
"/desmos/subspaces/v2/subspaces/{subspace_id}/groups/{group_id}";
"/desmos/subspaces/v3/subspaces/{subspace_id}/groups/{group_id}";
}

// UserGroupMembers queries all the members of a given user group
rpc UserGroupMembers(QueryUserGroupMembersRequest)
returns (QueryUserGroupMembersResponse) {
option (google.api.http).get = "/desmos/subspaces/v2/subspaces/"
option (google.api.http).get = "/desmos/subspaces/v3/subspaces/"
"{subspace_id}/groups/{group_id}/members";
}

// UserPermissions queries the permissions for the given user
rpc UserPermissions(QueryUserPermissionsRequest)
returns (QueryUserPermissionsResponse) {
option (google.api.http).get =
"/desmos/subspaces/v2/subspaces/{subspace_id}/permissions/{user}";
"/desmos/subspaces/v3/subspaces/{subspace_id}/permissions/{user}";
}
}

Expand Down
12 changes: 6 additions & 6 deletions x/posts/spec/04-messages.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ slug: messages
A post can be created using the `MsgCreatePost`.

```js reference
https://github.com/desmos-labs/desmos/blob/v4.1.0/proto/desmos/posts/v2/msgs.proto#L36-L89
https://github.com/desmos-labs/desmos/blob/master/proto/desmos/posts/v2/msgs.proto#L36-L89
```

It's to fail if:
Expand All @@ -25,7 +25,7 @@ It's to fail if:
A previously created post can be edited with the `MsgEditPost`.

```js reference
https://github.com/desmos-labs/desmos/blob/v4.1.0/proto/desmos/posts/v2/msgs.proto#L107-L135
https://github.com/desmos-labs/desmos/blob/master/proto/desmos/posts/v2/msgs.proto#L107-L135
```
It's expected to fail if:
* the subspace does not exist;
Expand All @@ -38,7 +38,7 @@ It's expected to fail if:
A post can be deleted with the `MsgDeletePost`.

```js reference
https://github.com/desmos-labs/desmos/blob/v4.1.0/proto/desmos/posts/v2/msgs.proto#L147-L163
https://github.com/desmos-labs/desmos/blob/master/proto/desmos/posts/v2/msgs.proto#L147-L163
```

It's expected to fail if:
Expand All @@ -50,7 +50,7 @@ It's expected to fail if:
It's possible to add an attachment to an existing post with `MsgAddPostAttachment`. Attachment can be a [media](02-concepts.md#media) or a [poll](02-concepts.md#poll).

```js reference
https://github.com/desmos-labs/desmos/blob/v4.1.0/proto/desmos/posts/v2/msgs.proto#L168-L191
https://github.com/desmos-labs/desmos/blob/master/proto/desmos/posts/v2/msgs.proto#L168-L191
```

It's expected to fail if:
Expand All @@ -64,7 +64,7 @@ It's expected to fail if:
A post attachment can be removed with `MsgRemovePostAttachment`.

```js reference
https://github.com/desmos-labs/desmos/blob/v4.1.0/proto/desmos/posts/v2/msgs.proto#L209-L232
https://github.com/desmos-labs/desmos/blob/master/proto/desmos/posts/v2/msgs.proto#L209-L232
```

It's expected to fail if:
Expand All @@ -78,7 +78,7 @@ It's expected to fail if:
It's possible to answer any active post's poll With `MsgAnswerPoll`.

```js reference
https://github.com/desmos-labs/desmos/blob/v4.1.0/proto/desmos/posts/v2/msgs.proto#L245-L271
https://github.com/desmos-labs/desmos/blob/master/proto/desmos/posts/v2/msgs.proto#L245-L271
```

It's expected to fail if:
Expand Down
20 changes: 10 additions & 10 deletions x/profiles/spec/04-messages.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ A profile can be created or edited with the `MsgSaveProfile`, which allows to sp
If a profile already exists, and you want to edit only a subset of the fields, you can use `[do-not-modify]` to specify the fields which values should not be changed (i.e. setting the `DTag` to `[do-not-modify]` will preserve the current value of the DTag).

```js reference
https://github.com/desmos-labs/desmos/blob/v4.1.0/proto/desmos/profiles/v2/msgs_profile.proto#L12-L32
https://github.com/desmos-labs/desmos/blob/master/proto/desmos/profiles/v2/msgs_profile.proto#L12-L32
```

It's expected to fail if a profile with the same DTag exists.
Expand All @@ -24,7 +24,7 @@ A profile can be deleted using the `MsgDeleteProfile`. This will remove all the
Beware that using this message you will lose the ownership of your DTag and you will delete everything that is related to your profile (i.e. incoming DTag transfer requests).

```js reference
https://github.com/desmos-labs/desmos/blob/v4.1.0/proto/desmos/profiles/v2/msgs_profile.proto#L39-L45
https://github.com/desmos-labs/desmos/blob/master/proto/desmos/profiles/v2/msgs_profile.proto#L39-L45
```

It's expected to fail if the signer does not have a profile.
Expand All @@ -33,7 +33,7 @@ It's expected to fail if the signer does not have a profile.
A DTag transfer request can be created using the `MsgRequestDTagTransfer`.

```js reference
https://github.com/desmos-labs/desmos/blob/v4.1.0/proto/desmos/profiles/v2/msgs_dtag_requests.proto#L12-L25
https://github.com/desmos-labs/desmos/blob/master/proto/desmos/profiles/v2/msgs_dtag_requests.proto#L12-L25
```

It's expected to fail if the recipient of the request has no profile.
Expand All @@ -42,7 +42,7 @@ It's expected to fail if the recipient of the request has no profile.
An outgoing DTag transfer request can be canceled using the `MsgCancelDTagTransferRequest`.

```js reference
https://github.com/desmos-labs/desmos/blob/v4.1.0/proto/desmos/profiles/v2/msgs_dtag_requests.proto#L33-L44
https://github.com/desmos-labs/desmos/blob/master/proto/desmos/profiles/v2/msgs_dtag_requests.proto#L33-L44
```

It's expected to fail if the request does not exist.
Expand All @@ -51,7 +51,7 @@ It's expected to fail if the request does not exist.
An incoming DTag transfer request can be accepted using the `MsgAcceptDTagTransferRequest`. When accepting a DTag transfer request, the user accepting it **must** specify a new DTag that they want after their old one gets transferred to the request sender.

```js reference
https://github.com/desmos-labs/desmos/blob/v4.1.0/proto/desmos/profiles/v2/msgs_dtag_requests.proto#L52-L70
https://github.com/desmos-labs/desmos/blob/master/proto/desmos/profiles/v2/msgs_dtag_requests.proto#L52-L70
```

It's expected to fail if:
Expand All @@ -62,7 +62,7 @@ It's expected to fail if:
An incoming DTag transfer request can be refused using `MsgRefuseDTagTransferRequest`

```js reference
https://github.com/desmos-labs/desmos/blob/v4.1.0/proto/desmos/profiles/v2/msgs_dtag_requests.proto#L78-L89
https://github.com/desmos-labs/desmos/blob/master/proto/desmos/profiles/v2/msgs_dtag_requests.proto#L78-L89
```

It's expected to fail if the request does not exist.
Expand All @@ -71,7 +71,7 @@ It's expected to fail if the request does not exist.
A new chain link can be created using the `MsgLinkChainAccount`

```js reference
https://github.com/desmos-labs/desmos/blob/v4.1.0/proto/desmos/profiles/v2/msgs_chain_links.proto#L11-L35
https://github.com/desmos-labs/desmos/blob/master/proto/desmos/profiles/v2/msgs_chain_links.proto#L11-L35
```

It's expected to fail if:
Expand All @@ -82,7 +82,7 @@ It's expected to fail if:
An existing chain link can be deleted using the `MsgUnlinkChainAccount`

```js reference
https://github.com/desmos-labs/desmos/blob/v4.1.0/proto/desmos/profiles/v2/msgs_chain_links.proto#L42-L54
https://github.com/desmos-labs/desmos/blob/master/proto/desmos/profiles/v2/msgs_chain_links.proto#L42-L54
```

It's expected to fail if the chain link does not exist.
Expand All @@ -100,7 +100,7 @@ It's expected to fail if the chain link does not exist.
A new application link can be created using the `MsgLinkApplication`

```js reference
https://github.com/desmos-labs/desmos/blob/v4.1.0/proto/desmos/profiles/v2/msgs_app_links.proto#L11-L48
https://github.com/desmos-labs/desmos/blob/master/proto/desmos/profiles/v2/msgs_app_links.proto#L11-L48
```

It's expected to fail if the signer does not have a profile.
Expand All @@ -109,7 +109,7 @@ It's expected to fail if the signer does not have a profile.
An existing application link can be deleted using the `MsgUnlinkApplication`

```js reference
https://github.com/desmos-labs/desmos/blob/v4.1.0/proto/desmos/profiles/v2/msgs_app_links.proto#L56-L71
https://github.com/desmos-labs/desmos/blob/master/proto/desmos/profiles/v2/msgs_app_links.proto#L56-L71
```

It's expected to fail if the application link does not exist.
12 changes: 6 additions & 6 deletions x/reactions/spec/04-messages.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ slug: messages
A post reaction can be added with the `MsgAddReaction`.

```js reference
https://github.com/desmos-labs/desmos/blob/v4.1.0/proto/desmos/reactions/v1/msgs.proto#L38-L60
https://github.com/desmos-labs/desmos/blob/master/proto/desmos/reactions/v1/msgs.proto#L38-L60
```

It's expected to fail if:
Expand All @@ -27,7 +27,7 @@ It's expected to fail if:
A reaction can be removed with the `MsgRemoveReaction`.

```js reference
https://github.com/desmos-labs/desmos/blob/v4.1.0/proto/desmos/reactions/v1/msgs.proto#L71-L94
https://github.com/desmos-labs/desmos/blob/master/proto/desmos/reactions/v1/msgs.proto#L71-L94
```

It's expected to fail if:
Expand All @@ -40,7 +40,7 @@ It's expected to fail if:
A registered reaction can be added to a subspace with the `MsgAddRegisteredReaction`.

```js reference
https://github.com/desmos-labs/desmos/blob/v4.1.0/proto/desmos/reactions/v1/msgs.proto#L99-L117
https://github.com/desmos-labs/desmos/blob/master/proto/desmos/reactions/v1/msgs.proto#L99-L117
```

It's expected to fail if:
Expand All @@ -53,7 +53,7 @@ It's expected to fail if:
A registered reaction can be edited with the `MsgEditRegisteredReaction`.

```js reference
https://github.com/desmos-labs/desmos/blob/v4.1.0/proto/desmos/reactions/v1/msgs.proto#L129-L153
https://github.com/desmos-labs/desmos/blob/master/proto/desmos/reactions/v1/msgs.proto#L129-L153
```

it's expected to fail if:
Expand All @@ -66,7 +66,7 @@ it's expected to fail if:
A registered reaction ca be removed with the `MsgRemoveRegisteredReaction`.

```js reference
https://github.com/desmos-labs/desmos/blob/v4.1.0/proto/desmos/reactions/v1/msgs.proto#L159-L176
https://github.com/desmos-labs/desmos/blob/master/proto/desmos/reactions/v1/msgs.proto#L159-L176
```

It's expected to fail if:
Expand All @@ -78,7 +78,7 @@ It's expected to fail if:
A subspace's reaction params can be set with the `MsgSetReactionsParams`.

```js reference
https://github.com/desmos-labs/desmos/blob/v4.1.0/proto/desmos/reactions/v1/msgs.proto#L182-L205
https://github.com/desmos-labs/desmos/blob/master/proto/desmos/reactions/v1/msgs.proto#L182-L205
```

It's expected to fail if:
Expand Down
8 changes: 4 additions & 4 deletions x/relationships/spec/04-messages.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ slug: messages
A new relationship can be created with the `MsgCreateRelationship`, which allows to specify the subspace inside which the relationship should live and the counterparty address.

```js reference
https://github.com/desmos-labs/desmos/blob/v4.1.0/proto/desmos/relationships/v1/msg_server.proto#L27-L39
https://github.com/desmos-labs/desmos/blob/master/proto/desmos/relationships/v1/msg_server.proto#L27-L39
```

It's expected to fail if a relationships between the same user and counterparty already exists inside the same subspace.
Expand All @@ -20,7 +20,7 @@ It's expected to fail if a relationships between the same user and counterparty
An existing relationship can be deleted with the `MsgDeleteRelationship`.

```js reference
https://github.com/desmos-labs/desmos/blob/v4.1.0/proto/desmos/relationships/v1/msg_server.proto#L47-L56
https://github.com/desmos-labs/desmos/blob/master/proto/desmos/relationships/v1/msg_server.proto#L47-L56
```

It's expected to fail if a relationships between the signer and counterparty does not exist inside the specified subspace.
Expand All @@ -29,7 +29,7 @@ It's expected to fail if a relationships between the signer and counterparty doe
A new user block can be created with the `MsgBlockUser`, which allows to specify the subspace inside which the block should be valid, the address of the blocked user and an optional reason for the block.

```js reference
https://github.com/desmos-labs/desmos/blob/v4.1.0/proto/desmos/relationships/v1/msg_server.proto#L64-L74
https://github.com/desmos-labs/desmos/blob/master/proto/desmos/relationships/v1/msg_server.proto#L64-L74
```

It's expected to fail if a user block between the same user and blocker already exists inside the same subspace.
Expand All @@ -38,7 +38,7 @@ It's expected to fail if a user block between the same user and blocker already
An existing user block can be deleted with the `MsgUnblockUser`.

```js reference
https://github.com/desmos-labs/desmos/blob/v4.1.0/proto/desmos/relationships/v1/msg_server.proto#L81-L89
https://github.com/desmos-labs/desmos/blob/master/proto/desmos/relationships/v1/msg_server.proto#L81-L89
```

It's expected to fail if the user block does not exist inside the specified subspace.
Loading

0 comments on commit 58d4b5c

Please sign in to comment.