2018-02-14 08:16:06 -08:00
|
|
|
package baseapp
|
|
|
|
|
|
|
|
import (
|
2019-02-05 19:11:57 -08:00
|
|
|
"regexp"
|
2018-12-10 06:27:25 -08:00
|
|
|
|
|
|
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
2018-02-14 08:16:06 -08:00
|
|
|
)
|
|
|
|
|
2019-02-05 19:11:57 -08:00
|
|
|
var isAlphaNumeric = regexp.MustCompile(`^[a-zA-Z0-9]+$`).MatchString
|
|
|
|
|
2018-06-26 18:53:41 -07:00
|
|
|
// nolint - Mostly for testing
|
|
|
|
func (app *BaseApp) Check(tx sdk.Tx) (result sdk.Result) {
|
|
|
|
return app.runTx(runTxModeCheck, nil, tx)
|
|
|
|
}
|
|
|
|
|
|
|
|
// nolint - full tx execution
|
2019-02-04 15:35:12 -08:00
|
|
|
func (app *BaseApp) Simulate(txBytes []byte, tx sdk.Tx) (result sdk.Result) {
|
|
|
|
return app.runTx(runTxModeSimulate, txBytes, tx)
|
2018-06-26 18:53:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
// nolint
|
|
|
|
func (app *BaseApp) Deliver(tx sdk.Tx) (result sdk.Result) {
|
|
|
|
return app.runTx(runTxModeDeliver, nil, tx)
|
|
|
|
}
|