-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: including module errors codes in the module specs (#557)
* including module errors codes in the module specs * Update CHANGELOG.md * Update CHANGELOG.md * Update CHANGELOG.md --------- Signed-off-by: Spoorthi <[email protected]>
- Loading branch information
Showing
9 changed files
with
51 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Errors | ||
|
||
The module exposes the following error codes which are used with the x/cwerrors module in case of callback failures. | ||
|
||
```proto | ||
enum ModuleErrors { | ||
// ERR_UNKNOWN is the default error code | ||
ERR_UNKNOWN = 0; | ||
// ERR_OUT_OF_GAS is the error code when the contract callback exceeds the gas limit allowed by the module | ||
ERR_OUT_OF_GAS = 1; | ||
// ERR_CONTRACT_EXECUTION_FAILED is the error code when the contract callback execution fails | ||
ERR_CONTRACT_EXECUTION_FAILED = 2; | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Errors | ||
|
||
The module exposes the following error codes which are used with the x/cwerrors module in case of error callback failures. | ||
|
||
```proto | ||
enum ModuleErrors { | ||
// ERR_UNKNOWN is the default error code | ||
ERR_UNKNOWN = 0; | ||
// ERR_CALLBACK_EXECUTION_FAILED is the error code for when the error callback fails | ||
ERR_CALLBACK_EXECUTION_FAILED = 1; | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Errors | ||
|
||
The module exposes the following error codes which are used with the x/cwerrors module in case of ica tx failures. | ||
|
||
```proto | ||
enum ModuleErrors { | ||
// ERR_UNKNOWN is the default error code | ||
ERR_UNKNOWN = 0; | ||
// ERR_PACKET_TIMEOUT is the error code for packet timeout | ||
ERR_PACKET_TIMEOUT = 1; | ||
// ERR_EXEC_FAILURE is the error code for tx execution failure | ||
ERR_EXEC_FAILURE = 2; | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters