refactor(x/**): rewrite ante handlers as tx validators (#20488)

Co-authored-by: Likhita Polavarapu <78951027+likhita-809@users.noreply.github.com>
This commit is contained in:
Julien Robert
2024-06-03 16:47:58 +00:00
committed by GitHub
co-authored by Likhita Polavarapu
parent d1aab15790
commit 2a5ff384fa
29 changed files with 365 additions and 102 deletions
+17
View File
@@ -7,6 +7,7 @@ import (
"google.golang.org/protobuf/reflect/protoreflect"
bankv1beta1 "cosmossdk.io/api/cosmos/bank/v1beta1"
"cosmossdk.io/core/transaction"
errorsmod "cosmossdk.io/errors"
"cosmossdk.io/x/auth/signing"
@@ -95,6 +96,22 @@ func NewTx(key, value string, accAddress sdk.AccAddress) *KVStoreTx {
}
}
func (msg *KVStoreTx) Hash() [32]byte {
return [32]byte{}
}
func (msg *KVStoreTx) GetGasLimit() (uint64, error) {
return 0, nil
}
func (msg *KVStoreTx) GetMessages() ([]transaction.Msg, error) {
return nil, nil
}
func (msg *KVStoreTx) GetSenders() ([][]byte, error) {
return nil, nil
}
func (msg *KVStoreTx) Type() string {
return "kvstore_tx"
}