You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(pkg/cosmosanalysis): support discovery of modules defined in a variable (#2820)
* feat: change module discovery to resolve modules from a variable
* feat: change module discovery to resolve modules from a pkg variable
The changeset resolves the modules defined in a variable within the same
package but in a different file.
* feat: change module discovery to resolve modules from a other pkg variable
* feat: discover app modules created using a function call
* refactor: simplify module discovery
* chore: update changelog
* chore: minor code improvements and documentation
* fix: cosmosanalysis to work when proto Go import is missing version
Some apps define the Go import path in the proto files without the
version suffix while the Go module uses a version suffix. This change
allows the custom module discovery to work in such case.
* refactor: improve discovery for different custom module layouts
Changeset modifies the module discovery to search inside custom module
folders for the RPC services implementation.
* fix: remove default from typescript client generate output flag
* refactor: improve module discovery to work with versioned Go modules
The change allows discovery for blockchain apps that are versioned. It
also handles the cases where custom app modules are imported using a Go
import that might or might not contain the version suffix.
* feat: add `cosmos_proto` to protoc includes
The protp package is required to generate code for other blockchains
like Gaia, otherwise generation would fail because the proto option
`cosmos_proto.scalar` won't be available while generating the typescript
code for some cosmos SDK modules. Cosmos SDK removed the `cosmos_proto`
from its third party proto includes in changeset
cosmos/cosmos-sdk@0cb7fd0
* feat: add error support to `NewBasicManager` call discovery
* review: add comment to basic manager discovery
Co-authored-by: Thomas Bruyelle <thomas.bruyelle@gmail.com>
* chore: fix syntax
* fix CL
* test: registered modules for osmosis
* test: add test for standard module discovery cases
This case discover registered modules registered as NewBasicManager
function arguments.
* test: add test for module discovery with API routes
* tests: add tests for `cosmosanalysis` module helper functions
* tests: add discovery test for versioned apps
Blockchain apps are versioned when the import path in the `go.mod` file
contains a version suffix.
* test: registered modules for current spn, gaia and juno
Co-authored-by: Thomas Bruyelle <thomas.bruyelle@gmail.com>
Co-authored-by: Thomas Bruyelle <thomas.bruyelle@tendermint.com>
Co-authored-by: Alex Johnson <alex@shmeeload.xyz>
0 commit comments