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

feat: added alliance module into app, implement ictest for the flow #301

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

xlab
Copy link
Contributor

@xlab xlab commented Mar 4, 2024

1. Overview

Implemented x/alliance intergration according to https://docs.alliance.money/guides/get-started

Note: this uses our fork with compat changes

2. Implementation details

Alliance module is on v3.4.x branch as it is compatible with Cosmos SDK 0.47.x. Branch on v4.x.x expects Cosmos SDK >= 0.50.

3. How to test/use

make local-image && make ictest-alliance

Test scenario TestAllianceBasic description:

  1. create 2 chains - using persistenceCore and gaiad, 1 validator each
  2. patch genesis so governance is fast, also alliance module doens't have a 7-day delay on rewards
  3. setup IBC connection, channel between persistence and gaia, relayer
  4. create user account on both chains
  5. IBC-transfer 1000 ATOM from gaia to persistence
  6. obtain IBC denom for ATOM on persistence
  7. check all delegated tokes sum on persistence (5000000000000uxprt)
  8. create an alliance on persistence using a governance proposal, denom is IBC denom of ATOM
  9. weight is 1:1 ATOM - XPRT in that proposal
  10. delegate alliance-enabled tokens to a validator on persistence (1000 IBC ATOM)
  11. check that no IBC uatom left in user's wallet
  12. check all delegated tokes sum on persistence including minted by alliance (10000000000000uxprt)
  13. wait 5 blocks & query the rewards
  14. claim all rewards from a delegation
  15. check that uxprt balance on persistence chain increased after rewards claim

@xlab xlab requested a review from a team as a code owner March 4, 2024 08:44
@xlab xlab requested review from puneet2019 and kruspy March 4, 2024 08:44
@xlab
Copy link
Contributor Author

xlab commented Mar 4, 2024

Screenshot 2024-03-04 at 10 30 53

🥹

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants