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

Update mint module #1

Merged
merged 14 commits into from
Jul 9, 2024
Merged

Update mint module #1

merged 14 commits into from
Jul 9, 2024

Conversation

MarkCherepovskyi
Copy link
Collaborator

No description provided.

@MarkCherepovskyi MarkCherepovskyi self-assigned this Jul 5, 2024
types/tokens.go Outdated
package types

const (
NativeToken = "aevmos"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why we need this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed

GetParams(c sdk.Context) types.Params
SetParams(c sdk.Context, params types.Params)
Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
DistributeTokens(ctx sdk.Context, fromPool string, isSentToModule bool, amount sdk.Coins, receiverModule string, receiverAddress *sdk.AccAddress) error
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

better define separate functions:

  • DistributeToModule
  • DistributeToAccount

This will allow to use less arguments and make them clearer to understand

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

separated

)

if err != nil {
err = errors.Wrap(err, "sending native coins to address")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix log (to module)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

)

if err != nil {
err = errors.Wrap(err, "sending native coins to module")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix log (to address)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

)

if err != nil {
err = errors.Wrap(err, "sending native coins to module")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix log

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@@ -0,0 +1,64 @@
package main
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we still need this files?

@@ -0,0 +1,110 @@
package main
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we still need this files?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, we need this file

@MarkCherepovskyi MarkCherepovskyi merged commit 03a0140 into main Jul 9, 2024
0 of 2 checks passed
@olegfomenko olegfomenko deleted the feature/distribution branch December 10, 2024 13:11
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