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

x/tokenfactory: .proto files #1360

Merged
merged 4 commits into from
Apr 29, 2022
Merged

x/tokenfactory: .proto files #1360

merged 4 commits into from
Apr 29, 2022

Conversation

sunnya97
Copy link
Collaborator

@sunnya97 sunnya97 commented Apr 27, 2022

What is the purpose of the change

*Add a description of the overall background and high level changes that this PR introduces *

This PR adds the proto files relevant for the tokenfactory module.

It contains the following Msg types for the module:

  • CreateDenom
  • MintTo
  • BurnFrom
  • ChangeAdmin

It contains the following queries:

  • DenomAuthorityMetadata
  • DenomsFromCreator

It contains a commented out Msg type for "force transfers". Force transfers are disabled based on discussion in: #1029

Testing and Verifying

This change is only proto file additions without any test coverage.

Documentation and Release Note

  • Does this pull request introduce a new feature or user-facing behavior changes? (yes / no)
  • Is a relevant changelog entry added to the Unreleased section in CHANGELOG.md? (yes / no)
  • How is the feature or change documented? (not applicable / specification (x/<module>/spec/) / Osmosis docs repo / not documented)

@codecov-commenter
Copy link

codecov-commenter commented Apr 27, 2022

Codecov Report

Merging #1360 (b63d790) into main (f56fbe5) will decrease coverage by 0.03%.
The diff coverage is 9.18%.

@@            Coverage Diff             @@
##             main    #1360      +/-   ##
==========================================
- Coverage   19.82%   19.79%   -0.04%     
==========================================
  Files         202      202              
  Lines       27685    27763      +78     
==========================================
+ Hits         5489     5496       +7     
- Misses      21175    21246      +71     
  Partials     1021     1021              
Impacted Files Coverage Δ
x/gamm/pool-models/stableswap/amm.go 43.28% <0.00%> (-12.49%) ⬇️
x/gamm/pool-models/stableswap/pool.go 0.00% <0.00%> (ø)
x/lockup/client/cli/query.go 51.99% <0.00%> (-3.00%) ⬇️
x/lockup/keeper/grpc_query.go 50.40% <0.00%> (-4.47%) ⬇️
x/lockup/keeper/store.go 84.95% <0.00%> (-2.32%) ⬇️
x/lockup/keeper/iterator.go 82.92% <33.33%> (-2.08%) ⬇️
x/gamm/client/cli/tx.go 59.50% <100.00%> (-0.69%) ⬇️
x/gamm/pool-models/balancer/amm.go 24.13% <100.00%> (+6.54%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e9b9804...b63d790. Read the comment docs.

@sunnya97 sunnya97 marked this pull request as ready for review April 27, 2022 19:34
@sunnya97 sunnya97 changed the title x/tokefactory: .proto files x/tokenfactory: .proto files Apr 27, 2022
Copy link
Contributor

@alexanderbez alexanderbez left a comment

Choose a reason for hiding this comment

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

Thanks for breaking this up @sunnya97!

Comment on lines +57 to +70
// // ===================== MsgForceTransfer
// message MsgForceTransfer {
// string sender = 1 [ (gogoproto.moretags) = "yaml:\"sender\"" ];
// cosmos.base.v1beta1.Coin amount = 2 [
// (gogoproto.moretags) = "yaml:\"amount\"",
// (gogoproto.nullable) = false
// ];
// string transferFromAddress = 3
// [ (gogoproto.moretags) = "yaml:\"transfer_from_address\"" ];
// string transferToAddress = 4
// [ (gogoproto.moretags) = "yaml:\"transfer_to_address\"" ];
// }

// message MsgForceTransferResponse {}
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need this commented out?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Wanted to deactivate this message for now, but we will eventually add it back in in the future

Copy link
Member

Choose a reason for hiding this comment

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

Should we track this in an issue?

proto/osmosis/tokenfactory/v1beta1/tx.proto Outdated Show resolved Hide resolved
(gogoproto.moretags) = "yaml:\"authority_metadata\"",
(gogoproto.nullable) = false
];
}
Copy link
Member

Choose a reason for hiding this comment

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

nit: newline

}
message QueryDenomsFromCreatorResponse {
repeated string denoms = 1 [ (gogoproto.moretags) = "yaml:\"denoms\"" ];
}
Copy link
Member

Choose a reason for hiding this comment

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

nit: missing newline

Comment on lines +57 to +70
// // ===================== MsgForceTransfer
// message MsgForceTransfer {
// string sender = 1 [ (gogoproto.moretags) = "yaml:\"sender\"" ];
// cosmos.base.v1beta1.Coin amount = 2 [
// (gogoproto.moretags) = "yaml:\"amount\"",
// (gogoproto.nullable) = false
// ];
// string transferFromAddress = 3
// [ (gogoproto.moretags) = "yaml:\"transfer_from_address\"" ];
// string transferToAddress = 4
// [ (gogoproto.moretags) = "yaml:\"transfer_to_address\"" ];
// }

// message MsgForceTransferResponse {}
Copy link
Member

Choose a reason for hiding this comment

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

Should we track this in an issue?

@sunnya97 sunnya97 merged commit 20b8d59 into main Apr 29, 2022
@sunnya97 sunnya97 deleted the sunny/tokenfactory-proto branch April 29, 2022 04:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

5 participants