-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
598d4bb
commit c774ff0
Showing
4 changed files
with
3 additions
and
24 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 |
---|---|---|
@@ -1,21 +1 @@ | ||
package types | ||
|
||
import ( | ||
errorsmod "cosmossdk.io/errors" | ||
) | ||
|
||
var ( | ||
ErrBadMetadataFormatMsg = "wasm metadata not properly formatted for: '%v'. %s" | ||
ErrBadExecutionMsg = "cannot execute contract: %v" | ||
|
||
ErrMsgValidation = errorsmod.Register("wasm-hooks", 2, "error in wasmhook message validation") | ||
ErrMarshaling = errorsmod.Register("wasm-hooks", 3, "cannot marshal the ICS20 packet") | ||
ErrInvalidPacket = errorsmod.Register("wasm-hooks", 4, "invalid packet data") | ||
ErrBadResponse = errorsmod.Register("wasm-hooks", 5, "cannot create response") | ||
ErrWasmError = errorsmod.Register("wasm-hooks", 6, "wasm error") | ||
ErrBadSender = errorsmod.Register("wasm-hooks", 7, "bad sender") | ||
ErrAckFromContract = errorsmod.Register("wasm-hooks", 8, "contract returned error ack") | ||
ErrAsyncAckNotAllowed = errorsmod.Register("wasm-hooks", 9, "contract not allowed to send async acks") | ||
ErrAckPacketMismatch = errorsmod.Register("wasm-hooks", 10, "packet does not match the expected packet") | ||
ErrInvalidContractAddr = errorsmod.Register("wasm-hooks", 11, "invalid contract address") | ||
) |
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