warden-protocol / wardenprotocol

Monorepo for the Warden Protocol.
https://wardenprotocol.org
Apache License 2.0
1.09k stars 96 forks source link

Register Cosmos SDK error codes #353

Open Pitasi opened 1 month ago

Pitasi commented 1 month ago

As per https://docs.cosmos.network/main/build/building-modules/errors, our modules should register some error codes to follow best practices.

What we usually have right now are basic error messages and/or wrapping, e.g.: https://github.com/warden-protocol/wardenprotocol/blob/30b0751e5c9bd73ca2b02680576d80fb2f8cc502/warden/x/intent/keeper/msg_server_approve_action.go#L18-L20

it's spread across the entire x/intent and x/warden codebase.