Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: multiple coins final tests #186

Merged
merged 29 commits into from
Jun 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
9f5c717
chore: only charge coins which are whitelisted
troykessler May 6, 2024
9354510
chore: started implementation of multiple coins in x/bundles
troykessler May 6, 2024
fd6bf07
chore: implemented multiple coins in bundles module
troykessler May 6, 2024
426e4a9
test: fixed existing unit tests
troykessler May 6, 2024
bc9ebeb
chore: added more comments
troykessler May 7, 2024
0d18933
chore: implemented multiple coins in x/stakers and fixed existing tests
troykessler May 7, 2024
0317a06
test: added additional tests for multiple coins
troykessler May 7, 2024
3c3776b
test: fixed tests
troykessler May 7, 2024
2b58d5a
chore: refactored first tests
troykessler May 10, 2024
f9e7737
test: added tests for multiple coin funding
troykessler May 14, 2024
3766684
chore: implemented multiple coins in x/stakers and fixed existing tests
troykessler May 7, 2024
9a91dfb
test: added additional tests for multiple coins
troykessler May 7, 2024
eb482c2
test: fixed tests
troykessler May 7, 2024
6c1d8f9
Merge branch 'main' into troy/stakers-multiple-coins
troykessler May 14, 2024
78cd57b
chore: added current feature in changelog
troykessler May 14, 2024
387f018
chore: sync merge
troykessler May 14, 2024
0ecdd83
Merge branch 'troy/stakers-multiple-coins' into troy/multiple-coins-i…
troykessler May 14, 2024
63fec6d
test: partially started valid bundles test
troykessler May 14, 2024
36ed27b
test: refactored existing valid bundle tests
troykessler May 14, 2024
bc122da
test: added more tests to valid bundles tests
troykessler May 14, 2024
71b81ff
test: improved inflation splitting tets
troykessler May 15, 2024
02350af
test: assert treasury payouts
troykessler May 15, 2024
e149ea8
chore: sync merge
troykessler May 15, 2024
d73233a
Merge branch 'main' into troy/multiple-coins-integration-tests
troykessler Jun 4, 2024
8cc8516
chore: completed sync merge
troykessler Jun 4, 2024
ae4b9a1
chore: resolved coderabbit comments
troykessler Jun 4, 2024
623d0cf
chore: added helper comments
troykessler Jun 4, 2024
78deef2
chore: added helper comments
troykessler Jun 4, 2024
4fb1df1
chore: resolved comments
troykessler Jun 5, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions testutil/integration/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
)

func (suite *KeeperTestSuite) GetCoinsFromCommunityPool() sdk.Coins {
pool, err := suite.App().DistributionKeeper.FeePool.Get(suite.Ctx())
if err != nil {
return sdk.NewCoins()
}

coins, _ := pool.CommunityPool.TruncateDecimal()
return coins
}

func (suite *KeeperTestSuite) GetBalanceFromAddress(address string) uint64 {
accAddress, err := sdk.AccAddressFromBech32(address)
if err != nil {
Expand Down
Loading
Loading