From 88259fad440f00623a7a7fc88895edb73cb1655d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 17 Jan 2025 13:25:17 +0100 Subject: [PATCH] chore: update documentation from cosmos-sdk/docs (#261) chore: Sync docs from cosmos-sdk/docs Co-authored-by: tac0turtle <24299864+tac0turtle@users.noreply.github.com> --- docs/build/building-modules/02-messages-and-queries.md | 4 ++-- docs/learn/advanced/17-autocli.md | 2 +- .../build/building-modules/02-messages-and-queries.md | 4 ++-- versioned_docs/version-0.52/learn/advanced/17-autocli.md | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/build/building-modules/02-messages-and-queries.md b/docs/build/building-modules/02-messages-and-queries.md index fc7c6e29a..2b519c26c 100644 --- a/docs/build/building-modules/02-messages-and-queries.md +++ b/docs/build/building-modules/02-messages-and-queries.md @@ -38,10 +38,10 @@ https://github.com/cosmos/cosmos-sdk/blob/28fa3b8/x/bank/proto/cosmos/bank/v1bet ### `transaction.Msg` Interface -`transaction.Msg` is an alias of `proto.Message`. +`transaction.Msg` uses structural types to define the interface for a message. ```go reference -https://github.com/cosmos/cosmos-sdk/blob/main/core/transaction/transaction.go#L8 +https://github.com/cosmos/cosmos-sdk/blob/main/core/transaction/transaction.go#L4-L9 ``` Signers from the `GetSigners()` call is automated via a protobuf annotation. diff --git a/docs/learn/advanced/17-autocli.md b/docs/learn/advanced/17-autocli.md index 8d0c97330..2c50e2f80 100644 --- a/docs/learn/advanced/17-autocli.md +++ b/docs/learn/advanced/17-autocli.md @@ -252,7 +252,7 @@ It is possible to use `AutoCLI` for non module commands. The trick is still to i For example, here is how the SDK does it for `cometbft` gRPC commands: ```go reference -https://github.com/cosmos/cosmos-sdk/blob/main/client/grpc/cmtservice/autocli.go#L52-L71 +https://github.com/cosmos/cosmos-sdk/blob/release/v0.52.x/client/grpc/cmtservice/autocli.go#L52-L71 ``` #### Conventions for the `Use` field in Cobra diff --git a/versioned_docs/version-0.52/build/building-modules/02-messages-and-queries.md b/versioned_docs/version-0.52/build/building-modules/02-messages-and-queries.md index fc7c6e29a..2b519c26c 100644 --- a/versioned_docs/version-0.52/build/building-modules/02-messages-and-queries.md +++ b/versioned_docs/version-0.52/build/building-modules/02-messages-and-queries.md @@ -38,10 +38,10 @@ https://github.com/cosmos/cosmos-sdk/blob/28fa3b8/x/bank/proto/cosmos/bank/v1bet ### `transaction.Msg` Interface -`transaction.Msg` is an alias of `proto.Message`. +`transaction.Msg` uses structural types to define the interface for a message. ```go reference -https://github.com/cosmos/cosmos-sdk/blob/main/core/transaction/transaction.go#L8 +https://github.com/cosmos/cosmos-sdk/blob/main/core/transaction/transaction.go#L4-L9 ``` Signers from the `GetSigners()` call is automated via a protobuf annotation. diff --git a/versioned_docs/version-0.52/learn/advanced/17-autocli.md b/versioned_docs/version-0.52/learn/advanced/17-autocli.md index 0176733c2..cf9136726 100644 --- a/versioned_docs/version-0.52/learn/advanced/17-autocli.md +++ b/versioned_docs/version-0.52/learn/advanced/17-autocli.md @@ -252,7 +252,7 @@ It is possible to use `AutoCLI` for non module commands. The trick is still to i For example, here is how the SDK does it for `cometbft` gRPC commands: ```go reference -https://github.com/cosmos/cosmos-sdk/blob/main/client/grpc/cmtservice/autocli.go#L52-L71 +https://github.com/cosmos/cosmos-sdk/blob/release/v0.52.x/client/grpc/cmtservice/autocli.go#L52-L71 ``` #### Conventions for the `Use` field in Cobra