diff --git a/testutil/network/network.go b/testutil/network/network.go index d05c283be..67999ef3a 100644 --- a/testutil/network/network.go +++ b/testutil/network/network.go @@ -126,6 +126,27 @@ func DefaultApplicationModuleGenesisState(t *testing.T, n int) *apptypes.Genesis return state } +// TODO_IN_THIS_COMMIT: fix comment... +// ApplicationModuleGenesisStateWithAccount generates a GenesisState object with a single supplier with the given address. +func ApplicationModuleGenesisStateWithAccounts(t *testing.T, addresses []string) *apptypes.GenesisState { + t.Helper() + state := apptypes.DefaultGenesis() + for _, addr := range addresses { + application := apptypes.Application{ + Address: addr, + Stake: &sdk.Coin{Denom: "upokt", Amount: sdk.NewInt(10000)}, + ServiceConfigs: []*sharedtypes.ApplicationServiceConfig{ + { + Service: &sharedtypes.Service{Id: "svc1"}, + }, + }, + } + state.ApplicationList = append(state.ApplicationList, application) + } + + return state +} + // DefaultGatewayModuleGenesisState generates a GenesisState object with a given number of gateways. // It returns the populated GenesisState object. func DefaultGatewayModuleGenesisState(t *testing.T, n int) *gatewaytypes.GenesisState {