Skip to content

Commit

Permalink
chore: fix make all
Browse files Browse the repository at this point in the history
  • Loading branch information
troykessler committed Dec 23, 2024
1 parent f8d0076 commit 8aebdd1
Show file tree
Hide file tree
Showing 29 changed files with 489 additions and 489 deletions.
8 changes: 4 additions & 4 deletions testutil/integration/checks.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func (suite *KeeperTestSuite) VerifyPoolQueries() {
Expect(poolByIdQuery.Pool.TotalDelegation).To(Equal(totalDelegationState))

// test stakers by pool
valaccounts := suite.App().StakersKeeper.GetAllValaccountsOfPool(suite.Ctx(), poolsState[i].Id)
valaccounts := suite.App().StakersKeeper.GetAllPoolAccountsOfPool(suite.Ctx(), poolsState[i].Id)
stakersByPoolState := make([]querytypes.FullStaker, 0)

for _, valaccount := range valaccounts {
Expand Down Expand Up @@ -474,10 +474,10 @@ func (suite *KeeperTestSuite) verifyFullStaker(fullStaker querytypes.FullStaker,

for _, poolMembership := range fullStaker.Pools {
poolIds[poolMembership.Pool.Id] = true
valaccount, active := suite.App().StakersKeeper.GetValaccount(suite.Ctx(), poolMembership.Pool.Id, stakerAddress)
valaccount, active := suite.App().StakersKeeper.GetPoolAccount(suite.Ctx(), stakerAddress, poolMembership.Pool.Id)
Expect(active).To(BeTrue())

Expect(poolMembership.Valaddress).To(Equal(valaccount.Valaddress))
Expect(poolMembership.PoolAddress).To(Equal(valaccount.PoolAddress))
Expect(poolMembership.IsLeaving).To(Equal(valaccount.IsLeaving))
Expect(poolMembership.Points).To(Equal(valaccount.Points))

Expand All @@ -496,7 +496,7 @@ func (suite *KeeperTestSuite) verifyFullStaker(fullStaker querytypes.FullStaker,
}

// Reverse check the pool memberships
for _, valaccount := range suite.App().StakersKeeper.GetValaccountsFromStaker(suite.Ctx(), stakerAddress) {
for _, valaccount := range suite.App().StakersKeeper.GetPoolAccountsFromStaker(suite.Ctx(), stakerAddress) {
Expect(poolIds[valaccount.PoolId]).To(BeTrue())
}
}
Expand Down
16 changes: 8 additions & 8 deletions x/bundles/keeper/abci_protocol_split_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ var _ = Describe("abci.go", Ordered, func() {
s.RunTxStakersSuccess(&stakertypes.MsgJoinPool{
Creator: i.STAKER_0,
PoolId: 0,
Valaddress: i.VALADDRESS_0_A,
PoolAddress: i.VALADDRESS_0_A,
Commission: math.LegacyMustNewDecFromStr("0.1"),
StakeFraction: math.LegacyMustNewDecFromStr("1"),
})
Expand All @@ -93,7 +93,7 @@ var _ = Describe("abci.go", Ordered, func() {
s.RunTxStakersSuccess(&stakertypes.MsgJoinPool{
Creator: i.STAKER_1,
PoolId: 0,
Valaddress: i.VALADDRESS_1_A,
PoolAddress: i.VALADDRESS_1_A,
Commission: math.LegacyMustNewDecFromStr("0.1"),
StakeFraction: math.LegacyMustNewDecFromStr("1"),
})
Expand Down Expand Up @@ -139,31 +139,31 @@ var _ = Describe("abci.go", Ordered, func() {
s.RunTxStakersSuccess(&stakertypes.MsgJoinPool{
Creator: i.STAKER_0,
PoolId: 0,
Valaddress: i.VALADDRESS_0_A,
PoolAddress: i.VALADDRESS_0_A,
Commission: math.LegacyMustNewDecFromStr("0.1"),
StakeFraction: math.LegacyMustNewDecFromStr("1"),
})

s.RunTxStakersSuccess(&stakertypes.MsgJoinPool{
Creator: i.STAKER_1,
PoolId: 0,
Valaddress: i.VALADDRESS_1_A,
PoolAddress: i.VALADDRESS_1_A,
Commission: math.LegacyMustNewDecFromStr("0.1"),
StakeFraction: math.LegacyMustNewDecFromStr("1"),
})

s.RunTxStakersSuccess(&stakertypes.MsgJoinPool{
Creator: i.STAKER_0,
PoolId: 1,
Valaddress: i.VALADDRESS_0_B,
PoolAddress: i.VALADDRESS_0_B,
Commission: math.LegacyMustNewDecFromStr("0.1"),
StakeFraction: math.LegacyMustNewDecFromStr("1"),
})

s.RunTxStakersSuccess(&stakertypes.MsgJoinPool{
Creator: i.STAKER_1,
PoolId: 1,
Valaddress: i.VALADDRESS_1_B,
PoolAddress: i.VALADDRESS_1_B,
Commission: math.LegacyMustNewDecFromStr("0.1"),
StakeFraction: math.LegacyMustNewDecFromStr("1"),
})
Expand Down Expand Up @@ -206,7 +206,7 @@ var _ = Describe("abci.go", Ordered, func() {
s.RunTxStakersSuccess(&stakertypes.MsgJoinPool{
Creator: i.STAKER_0,
PoolId: 0,
Valaddress: i.VALADDRESS_0_A,
PoolAddress: i.VALADDRESS_0_A,
Commission: math.LegacyMustNewDecFromStr("0.1"),
StakeFraction: math.LegacyMustNewDecFromStr("1"),
})
Expand All @@ -216,7 +216,7 @@ var _ = Describe("abci.go", Ordered, func() {
s.RunTxStakersSuccess(&stakertypes.MsgJoinPool{
Creator: i.STAKER_1,
PoolId: 0,
Valaddress: i.VALADDRESS_1_A,
PoolAddress: i.VALADDRESS_1_A,
Commission: math.LegacyMustNewDecFromStr("0.1"),
StakeFraction: math.LegacyMustNewDecFromStr("1"),
})
Expand Down
14 changes: 7 additions & 7 deletions x/bundles/keeper/keeper_suite_dropped_bundles_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ var _ = Describe("dropped bundles", Ordered, func() {
s.RunTxStakersSuccess(&stakertypes.MsgJoinPool{
Creator: i.STAKER_0,
PoolId: 0,
Valaddress: i.VALADDRESS_0_A,
PoolAddress: i.VALADDRESS_0_A,
Commission: math.LegacyMustNewDecFromStr("0.1"),
StakeFraction: math.LegacyMustNewDecFromStr("1"),
})
Expand All @@ -80,7 +80,7 @@ var _ = Describe("dropped bundles", Ordered, func() {
s.RunTxStakersSuccess(&stakertypes.MsgJoinPool{
Creator: i.STAKER_1,
PoolId: 0,
Valaddress: i.VALADDRESS_1_A,
PoolAddress: i.VALADDRESS_1_A,
Commission: math.LegacyMustNewDecFromStr("0.1"),
StakeFraction: math.LegacyMustNewDecFromStr("1"),
})
Expand Down Expand Up @@ -111,7 +111,7 @@ var _ = Describe("dropped bundles", Ordered, func() {
s.RunTxStakersSuccess(&stakertypes.MsgJoinPool{
Creator: i.STAKER_2,
PoolId: 0,
Valaddress: i.VALADDRESS_2_A,
PoolAddress: i.VALADDRESS_2_A,
Commission: math.LegacyMustNewDecFromStr("0.1"),
StakeFraction: math.LegacyMustNewDecFromStr("1"),
})
Expand Down Expand Up @@ -171,10 +171,10 @@ var _ = Describe("dropped bundles", Ordered, func() {
Expect(bundleProposal.VotersAbstain).To(BeEmpty())

// check uploader status
valaccountUploader, _ := s.App().StakersKeeper.GetValaccount(s.Ctx(), 0, i.STAKER_0)
valaccountUploader, _ := s.App().StakersKeeper.GetPoolAccount(s.Ctx(), i.STAKER_0, 0)
Expect(valaccountUploader.Points).To(BeZero())

balanceValaddress := s.GetBalanceFromAddress(valaccountUploader.Valaddress)
balanceValaddress := s.GetBalanceFromAddress(valaccountUploader.PoolAddress)
Expect(balanceValaddress).To(Equal(initialBalanceValaddress0))

balanceUploader := s.GetBalanceFromAddress(valaccountUploader.Staker)
Expand All @@ -183,10 +183,10 @@ var _ = Describe("dropped bundles", Ordered, func() {
Expect(s.App().StakersKeeper.GetOutstandingRewards(s.Ctx(), i.STAKER_0, i.STAKER_0)).To(BeEmpty())

// check voter status
valaccountVoter, _ := s.App().StakersKeeper.GetValaccount(s.Ctx(), 0, i.STAKER_1)
valaccountVoter, _ := s.App().StakersKeeper.GetPoolAccount(s.Ctx(), i.STAKER_1, 0)
Expect(valaccountVoter.Points).To(Equal(uint64(1)))

balanceVoterValaddress := s.GetBalanceFromAddress(valaccountVoter.Valaddress)
balanceVoterValaddress := s.GetBalanceFromAddress(valaccountVoter.PoolAddress)
Expect(balanceVoterValaddress).To(Equal(initialBalanceValaddress1))

balanceVoter := s.GetBalanceFromAddress(valaccountVoter.Staker)
Expand Down
4 changes: 2 additions & 2 deletions x/bundles/keeper/keeper_suite_funding_bundles_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ var _ = Describe("funding bundles", Ordered, func() {
s.RunTxStakersSuccess(&stakertypes.MsgJoinPool{
Creator: i.STAKER_0,
PoolId: 0,
Valaddress: i.VALADDRESS_0_A,
PoolAddress: i.VALADDRESS_0_A,
Commission: math.LegacyMustNewDecFromStr("0.1"),
StakeFraction: math.LegacyMustNewDecFromStr("1"),
})
Expand All @@ -119,7 +119,7 @@ var _ = Describe("funding bundles", Ordered, func() {
s.RunTxStakersSuccess(&stakertypes.MsgJoinPool{
Creator: i.STAKER_1,
PoolId: 0,
Valaddress: i.VALADDRESS_1_A,
PoolAddress: i.VALADDRESS_1_A,
Commission: math.LegacyMustNewDecFromStr("0.1"),
StakeFraction: math.LegacyMustNewDecFromStr("1"),
})
Expand Down
12 changes: 6 additions & 6 deletions x/bundles/keeper/keeper_suite_inflation_splitting_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ var _ = Describe("inflation splitting", Ordered, func() {
s.RunTxStakersSuccess(&stakertypes.MsgJoinPool{
Creator: i.STAKER_0,
PoolId: 0,
Valaddress: i.VALADDRESS_0_A,
PoolAddress: i.VALADDRESS_0_A,
Commission: math.LegacyMustNewDecFromStr("0.1"),
StakeFraction: math.LegacyMustNewDecFromStr("1"),
})
Expand All @@ -140,7 +140,7 @@ var _ = Describe("inflation splitting", Ordered, func() {
s.RunTxStakersSuccess(&stakertypes.MsgJoinPool{
Creator: i.STAKER_1,
PoolId: 0,
Valaddress: i.VALADDRESS_1_A,
PoolAddress: i.VALADDRESS_1_A,
Commission: math.LegacyMustNewDecFromStr("0.1"),
StakeFraction: math.LegacyMustNewDecFromStr("1"),
})
Expand Down Expand Up @@ -1764,14 +1764,14 @@ var _ = Describe("inflation splitting", Ordered, func() {
s.RunTxStakersSuccess(&stakertypes.MsgJoinPool{
Creator: i.STAKER_0,
PoolId: 1,
Valaddress: i.VALADDRESS_0_B,
PoolAddress: i.VALADDRESS_0_B,
Commission: math.LegacyMustNewDecFromStr("0.1"),
StakeFraction: math.LegacyMustNewDecFromStr("1"),
})
s.RunTxStakersSuccess(&stakertypes.MsgJoinPool{
Creator: i.STAKER_1,
PoolId: 1,
Valaddress: i.VALADDRESS_1_B,
PoolAddress: i.VALADDRESS_1_B,
Commission: math.LegacyMustNewDecFromStr("0.1"),
StakeFraction: math.LegacyMustNewDecFromStr("1"),
})
Expand Down Expand Up @@ -1922,15 +1922,15 @@ var _ = Describe("inflation splitting", Ordered, func() {
s.RunTxStakersSuccess(&stakertypes.MsgJoinPool{
Creator: i.STAKER_0,
PoolId: 1,
Valaddress: i.VALADDRESS_0_B,
PoolAddress: i.VALADDRESS_0_B,
Commission: math.LegacyMustNewDecFromStr("0.1"),
StakeFraction: math.LegacyMustNewDecFromStr("1"),
})

s.RunTxStakersSuccess(&stakertypes.MsgJoinPool{
Creator: i.STAKER_1,
PoolId: 1,
Valaddress: i.VALADDRESS_1_B,
PoolAddress: i.VALADDRESS_1_B,
Commission: math.LegacyMustNewDecFromStr("0.1"),
StakeFraction: math.LegacyMustNewDecFromStr("1"),
})
Expand Down
Loading

0 comments on commit 8aebdd1

Please sign in to comment.