-
Notifications
You must be signed in to change notification settings - Fork 103
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(x/ecocredit): add basket simulations #769
Merged
Merged
Changes from 29 commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
3c4f955
wip: add simulations
aleem1314 449f5d0
feat: implement simulate msg-create-basket
aleem1314 b08d3cf
Merge branch 'release/v2.2.x' into aleem/basket-sims
aleem1314 83a23d2
feat: add put into basket sim
aleem1314 8abdf8b
wip: sims
aleem1314 a5bdfc3
wip: try fix sims
aleem1314 b7fa656
feat: add msg-take
aleem1314 1719045
chore: cleanup
aleem1314 d17301c
chore: inc basket sims gas
aleem1314 1b08beb
Merge branch 'release/v2.2.x' into aleem/basket-sims
aleem1314 c4ca68d
add logs
aleem1314 a15a783
fix error
aleem1314 b7f0d56
add basket fee check
aleem1314 ec8c8f9
try fix sims
aleem1314 adf93eb
Merge branch 'release/v3.0.x' into aleem/basket-sims
aaronc 1996c2f
convert basket decimal to integer using string
aaronc d1c0eca
Merge branch 'release/v3.0.x' into aleem/basket-sims
aleem1314 eeb3525
cleanup
aleem1314 876e156
update app/app.go
aleem1314 74cbc4d
fix random amt issue
aleem1314 7d10eb4
fix sim error
aleem1314 116082e
Merge branch 'release/v3.0.x' into aleem/basket-sims
aleem1314 ec18dc2
chore: create helpers
aleem1314 ac7826f
Merge branch 'release/v3.0.x' into aleem/basket-sims
aleem1314 246ac8d
add date criteria
aleem1314 fdfa386
Merge branch 'release/v3.0.x' into aleem/basket-sims
robert-zaremba 361a49a
Merge branch 'release/v3.0.x' into aleem/basket-sims
aleem1314 0e9c364
fix supply invariant
ryanchristo a5c9594
chore: review changes
aleem1314 df30c09
Merge branch 'release/v3.0.x' into aleem/basket-sims
aleem1314 c23a926
Merge branch 'release/v3.0.x' into aleem/basket-sims
robert-zaremba File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why? when is this supposed to happen?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need authz - it's already used and it could break some existing flows.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm confused why simulation tests were passing before and now the following error occurs when uncommented:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@clevinson and I dug into this a bit and we were trying to figure out if this was in fact an issue with the authz module. The error is
insufficient funds
so we were thinking it might be related to the basket fee. We were able to successfully run the simulation tests with authz uncommented and skippingSimulateMsgCreate
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. The issue is with
authz
simulation. We should ignoreMsgExec
simulation if a grantee tries to spend more than the allowed spend limit. I've raised a PR on the SDK to fix this.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great! Thanks for confirming. cosmos/cosmos-sdk#11252