-
Notifications
You must be signed in to change notification settings - Fork 60
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
Track eden and edenB #1108
base: main
Are you sure you want to change the base?
Track eden and edenB #1108
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1108 +/- ##
==========================================
+ Coverage 48.04% 48.15% +0.11%
==========================================
Files 894 896 +2
Lines 35068 35173 +105
==========================================
+ Hits 16848 16939 +91
- Misses 16961 16975 +14
Partials 1259 1259 |
if amt.Empty() { | ||
return nil | ||
} | ||
|
||
// Emit event to track Eden and EdenB send amount | ||
ctx.EventManager().EmitEvent( |
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.
SendCoinsFromModuleToModule already emit events
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.
if err != nil { | ||
return err | ||
} | ||
if amt.Empty() { | ||
return nil | ||
} | ||
|
||
// Emit event to track Eden and EdenB burn amount | ||
ctx.EventManager().EmitEvent( |
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.
BurnCoins already emit events
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.
It won't when amount is zero, see lines later, burn coins won't get coins so will not emit event
store.Set(types.TotalSupplyKeyPrefix, b) | ||
} | ||
|
||
func (k Keeper) V9_SetSupply(ctx sdk.Context) { |
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.
There might be some Eden which will already be converted to Elys, we need to add that as well.
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.
currently we are tracking total supply in DS, should I add one more variable to track total minted ?
Description
What has Changed?
What specific problem were you aiming to address, and how did you successfully resolve it? If tests were not uploaded for this pull request or if coverage decreased, please provide an explanation for the change.
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
!
to the type prefix if API or client breaking changeReviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...
!
in the type prefix if API or client breaking changeDeployment Notes
Are there any specific considerations to take into account when deploying these changes? This may include new dependencies, scripts that need to be executed, or any aspects that can only be evaluated in a deployed environment.
Screenshots and Videos
Please provide any relevant before and after screenshots by uploading them here. Additionally, demo videos can be highly beneficial in demonstrating the process.