refactor(x/staking)!: removes the use of Accounts String() method (#19742)

This commit is contained in:
Julián Toledano
2024-03-19 09:20:42 +00:00
committed by GitHub
parent a7f9d92fca
commit 65ab2530cc
59 changed files with 681 additions and 428 deletions
+3
View File
@@ -6,6 +6,7 @@ import (
"sort"
"time"
"cosmossdk.io/core/address"
"cosmossdk.io/core/appmodule"
sdkmath "cosmossdk.io/math"
@@ -145,6 +146,8 @@ func (sm *SimulationManager) WeightedOperations(simState SimulationState) []simu
type SimulationState struct {
AppParams simulation.AppParams
Cdc codec.JSONCodec // application codec
AddressCodec address.Codec // address codec
ValidatorCodec address.Codec // validator address codec
TxConfig client.TxConfig // Shared TxConfig; this is expensive to create and stateless, so create it once up front.
Rand *rand.Rand // random number
GenState map[string]json.RawMessage // genesis state