From dbe8fd51b632fafea719ddda8a0673b4cd7abf73 Mon Sep 17 00:00:00 2001 From: MozirDmitriy Date: Wed, 30 Jul 2025 19:17:51 +0300 Subject: [PATCH] fix: outdated and broken documentation links across Cosmos SDK docs and codebase (#25043) Co-authored-by: Alex | Interchain Labs --- .../architecture/adr-040-storage-and-smt-state-commitments.md | 2 +- docs/architecture/adr-054-semver-compatible-modules.md | 2 +- docs/docs/learn/advanced/02-context.md | 2 +- docs/docs/learn/beginner/02-query-lifecycle.md | 2 +- docs/src/css/base.css | 4 ++-- systemtests/system.go | 4 ++-- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/architecture/adr-040-storage-and-smt-state-commitments.md b/docs/architecture/adr-040-storage-and-smt-state-commitments.md index cc0333b7ba..4548327b98 100644 --- a/docs/architecture/adr-040-storage-and-smt-state-commitments.md +++ b/docs/architecture/adr-040-storage-and-smt-state-commitments.md @@ -285,5 +285,5 @@ We were discussing use case where modules can use a support database, which is n * Facebook Diem (Libra) SMT [design](https://developers.diem.com/papers/jellyfish-merkle-tree/2021-01-14.pdf) * [Trillian Revocation Transparency](https://github.com/google/trillian/blob/master/docs/papers/RevocationTransparency.pdf), [Trillian Verifiable Data Structures](https://github.com/google/trillian/blob/master/docs/papers/VerifiableDataStructures.pdf). * Design and implementation [discussion](https://github.com/cosmos/cosmos-sdk/discussions/8297). -* [How to Upgrade IBC Chains and their Clients](https://github.com/cosmos/ibc-go/blob/main/docs/ibc/upgrades/quick-guide.md) +* [How to Upgrade IBC Chains and their Clients](https://ibc.cosmos.network/main/ibc/upgrades/quick-guide/) * [ADR-40 Effect on IBC](https://github.com/cosmos/ibc-go/discussions/256) diff --git a/docs/architecture/adr-054-semver-compatible-modules.md b/docs/architecture/adr-054-semver-compatible-modules.md index 18e143f672..d2b5d25801 100644 --- a/docs/architecture/adr-054-semver-compatible-modules.md +++ b/docs/architecture/adr-054-semver-compatible-modules.md @@ -347,7 +347,7 @@ approach described in approach A. Either way, types implementing interfaces woul with an `InterfaceRegistry` as they are now because there would be no way to retrieve them via the global registry. In order to simplify access to other modules using ADR 033, a public API module (maybe even one -[remotely generated by Buf](https://docs.buf.build/bsr/remote-generation/go)) could be used by client modules instead +[remotely generated by Buf](https://buf.build/docs/bsr/generated-sdks/go/)) could be used by client modules instead of requiring to generate all client types internally. The big downsides of this approach are that it requires big changes to how people use protobuf types and would be a diff --git a/docs/docs/learn/advanced/02-context.md b/docs/docs/learn/advanced/02-context.md index 57f9b5dd64..82bf01dd03 100644 --- a/docs/docs/learn/advanced/02-context.md +++ b/docs/docs/learn/advanced/02-context.md @@ -30,7 +30,7 @@ https://github.com/cosmos/cosmos-sdk/blob/v0.53.0-rc.2/types/context.go#L40-L67 * **Chain ID:** The unique identification number of the blockchain a block pertains to. * **Transaction Bytes:** The `[]byte` representation of a transaction being processed using the context. Every transaction is processed by various parts of the Cosmos SDK and consensus engine (e.g. CometBFT) throughout its [lifecycle](../beginner/01-tx-lifecycle.md), some of which do not have any understanding of transaction types. Thus, transactions are marshaled into the generic `[]byte` type using some kind of [encoding format](./05-encoding.md) such as [Amino](./05-encoding.md). * **Logger:** A `logger` from the CometBFT libraries. Learn more about logs [here](https://docs.cometbft.com/v0.37/core/configuration). Modules call this method to create their own unique module-specific logger. -* **VoteInfo:** A list of the ABCI type [`VoteInfo`](https://docs.cometbft.com/master/spec/abci/abci.html#voteinfo), which includes the name of a validator and a boolean indicating whether they have signed the block. +* **VoteInfo:** A list of the ABCI type [`VoteInfo`](https://docs.cometbft.com/main/spec/abci/abci++_methods.html#voteinfo), which includes the name of a validator and a boolean indicating whether they have signed the block. * **Gas Meters:** Specifically, a [`gasMeter`](../beginner/04-gas-fees.md#main-gas-meter) for the transaction currently being processed using the context and a [`blockGasMeter`](../beginner/04-gas-fees.md#block-gas-meter) for the entire block it belongs to. Users specify how much in fees they wish to pay for the execution of their transaction; these gas meters keep track of how much [gas](../beginner/04-gas-fees.md) has been used in the transaction or block so far. If the gas meter runs out, execution halts. * **CheckTx Mode:** A boolean value indicating whether a transaction should be processed in `CheckTx` or `DeliverTx` mode. * **Min Gas Price:** The minimum [gas](../beginner/04-gas-fees.md) price a node is willing to take in order to include a transaction in its block. This price is a local value configured by each node individually, and should therefore **not be used in any functions used in sequences leading to state-transitions**. diff --git a/docs/docs/learn/beginner/02-query-lifecycle.md b/docs/docs/learn/beginner/02-query-lifecycle.md index 9a28dc5df4..065c6a39e8 100644 --- a/docs/docs/learn/beginner/02-query-lifecycle.md +++ b/docs/docs/learn/beginner/02-query-lifecycle.md @@ -134,7 +134,7 @@ Once a result is received from the querier, `baseapp` begins the process of retu ## Response -Since `Query()` is an ABCI function, `baseapp` returns the response as an [`abci.QueryResponse`](https://docs.cometbft.com/master/spec/abci/abci.html#query-2) type. The `client.Context` `Query()` routine receives the response and. +Since `Query()` is an ABCI function, `baseapp` returns the response as an [`abci.QueryResponse`](https://docs.cometbft.com/main/spec/abci/abci++_methods#query) type. The `client.Context` `Query()` routine receives the response and. ### CLI Response diff --git a/docs/src/css/base.css b/docs/src/css/base.css index e6d485266f..4e547e9740 100644 --- a/docs/src/css/base.css +++ b/docs/src/css/base.css @@ -1,5 +1,5 @@ /* - Copied from https://github.com/ignite/cli/blob/develop/docs/src/css/base.css + Copied from https://github.com/ignite/cli/blob/main/docs/src/css/base.css */ @layer base { @@ -29,4 +29,4 @@ svg { display: inline; } ::selection{} -} \ No newline at end of file +} diff --git a/systemtests/system.go b/systemtests/system.go index ac639f38ff..dcb66a07c2 100644 --- a/systemtests/system.go +++ b/systemtests/system.go @@ -866,7 +866,7 @@ type ( ) // Subscribe to receive events for a topic. Does not block. -// For query syntax See https://docs.cosmos.network/master/core/events.html#subscribing-to-events +// For query syntax See https://docs.cosmos.network/v0.46/core/events.html#subscribing-to-events func (l *EventListener) Subscribe(query string, cb EventConsumer) func() { ctx, done := context.WithCancel(context.Background()) l.t.Cleanup(done) @@ -888,7 +888,7 @@ func (l *EventListener) Subscribe(query string, cb EventConsumer) func() { } // AwaitQuery blocks and waits for a single result or timeout. This can be used with `broadcast-mode=async`. -// For query syntax See https://docs.cosmos.network/master/core/events.html#subscribing-to-events +// For query syntax See https://docs.cosmos.network/v0.46/core/events.html#subscribing-to-events func (l *EventListener) AwaitQuery(query string, optMaxWaitTime ...time.Duration) *ctypes.ResultEvent { c, result := CaptureSingleEventConsumer() maxWaitTime := DefaultWaitTime