Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/terra-money/alliance into f…
Browse files Browse the repository at this point in the history
…ix/rounding
  • Loading branch information
emidev98 committed Feb 1, 2023
2 parents a99cf91 + f99ab38 commit b5f4e53
Show file tree
Hide file tree
Showing 21 changed files with 22 additions and 20 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ install: go.sum
### Test ###
###############################################################################

test: test-unit-keeper
test: test-unit

test-unit-keeper:
@VERSION=$(VERSION) go test -mod=readonly -tags='ledger test_ledger_mock' github.com/terra-money/alliance/x/alliance/keeper github.com/terra-money/alliance/x/alliance/types
test-unit:
@VERSION=$(VERSION) go test -v -mod=readonly -tags='ledger test_ledger_mock' github.com/terra-money/alliance/x/alliance/keeper/tests github.com/terra-money/alliance/x/alliance/types/tests

###############################################################################
### Linting ###
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package keeper_test
package tests_test

import (
"testing"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package keeper_test
package tests_test

import (
"testing"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package keeper_test
package tests_test

import (
"testing"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package keeper_test
package tests_test

import (
"testing"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package keeper_test
package tests_test

import (
"testing"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package keeper_test
package tests_test

import (
"testing"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package keeper_test
package tests_test

import (
"testing"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package keeper_test
package tests_test

import (
"testing"
Expand Down
11 changes: 6 additions & 5 deletions x/alliance/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import (
"fmt"
"math/rand"

simulation2 "github.com/terra-money/alliance/x/alliance/tests/simulation"

// this line is used by starport scaffolding # 1

"github.com/grpc-ecosystem/grpc-gateway/runtime"
Expand All @@ -15,7 +17,6 @@ import (

"github.com/terra-money/alliance/x/alliance/client/cli"
"github.com/terra-money/alliance/x/alliance/keeper"
"github.com/terra-money/alliance/x/alliance/simulation"
"github.com/terra-money/alliance/x/alliance/types"

"github.com/cosmos/cosmos-sdk/client"
Expand Down Expand Up @@ -138,21 +139,21 @@ func (a AppModule) ConsensusVersion() uint64 {
}

func (a AppModule) GenerateGenesisState(simState *module.SimulationState) {
simulation.RandomizedGenesisState(simState)
simulation2.RandomizedGenesisState(simState)
}

func (a AppModule) ProposalContents(simState module.SimulationState) []simtypes.WeightedProposalContent {
return nil
}

func (a AppModule) RandomizedParams(r *rand.Rand) []simtypes.ParamChange {
return simulation.ParamChanges(r)
return simulation2.ParamChanges(r)
}

func (a AppModule) RegisterStoreDecoder(registry sdk.StoreDecoderRegistry) {
registry[types.StoreKey] = simulation.NewDecodeStore(a.cdc)
registry[types.StoreKey] = simulation2.NewDecodeStore(a.cdc)
}

func (a AppModule) WeightedOperations(simState module.SimulationState) []simtypes.WeightedOperation {
return simulation.WeightedOperations(simState.AppParams, a.pcdc, a.accountKeeper, a.bankKeeper, a.stakingKeeper, a.keeper)
return simulation2.WeightedOperations(simState.AppParams, a.pcdc, a.accountKeeper, a.bankKeeper, a.stakingKeeper, a.keeper)
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import (
"testing"
"time"

"github.com/terra-money/alliance/x/alliance/tests/benchmark"

sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/simulation"
minttypes "github.com/cosmos/cosmos-sdk/x/mint/types"
Expand All @@ -14,7 +16,6 @@ import (

test_helpers "github.com/terra-money/alliance/app"
"github.com/terra-money/alliance/x/alliance"
"github.com/terra-money/alliance/x/alliance/benchmark"
"github.com/terra-money/alliance/x/alliance/types"
)

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package types_test
package tests_test

import (
"testing"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package types_test
package tests_test

import (
"testing"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package types_test
package tests_test

import (
"testing"
Expand Down

0 comments on commit b5f4e53

Please sign in to comment.