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

basic cli and first draft command for ct module #1929

Merged
merged 6 commits into from
Nov 14, 2024

Conversation

dssei
Copy link
Contributor

@dssei dssei commented Nov 13, 2024

Describe your changes and provide context

basic cli and first draft command for ct module

Testing performed to validate your change

Copy link

codecov bot commented Nov 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 61.12%. Comparing base (32c89cd) to head (d8fae4f).
Report is 34 commits behind head on feature/ct_types.

Additional details and impacted files

Impacted file tree graph

@@                 Coverage Diff                  @@
##           feature/ct_types    #1929      +/-   ##
====================================================
- Coverage             61.36%   61.12%   -0.24%     
====================================================
  Files                   263      275      +12     
  Lines                 23306    24427    +1121     
====================================================
+ Hits                  14301    14931     +630     
- Misses                 8001     8403     +402     
- Partials               1004     1093      +89     
Files with missing lines Coverage Δ
x/confidentialtransfers/types/keys.go 0.00% <ø> (ø)

... and 4 files with indirect coverage changes

Copy link
Contributor

@mj850 mj850 left a comment

Choose a reason for hiding this comment

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

Approved with minor comments

@@ -101,6 +102,10 @@ var StoreKeyToResourceTypePrefixMap = aclsdktypes.StoreKeyToResourceTypePrefixMa
aclsdktypes.ResourceType_KV_TOKENFACTORY_ADMIN: []byte(tokenfactorytypes.AdminPrefixKey),
aclsdktypes.ResourceType_KV_TOKENFACTORY_CREATOR: []byte(tokenfactorytypes.AdminPrefixKey),
},
cttypes.StoreKey: {
//aclsdktypes.ResourceType_KV_CT: aclsdktypes.EmptyPrefix,
Copy link
Contributor

Choose a reason for hiding this comment

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

When do we uncomment these? Should we add a TODO here?

@@ -211,6 +216,10 @@ var ResourceTypeToStoreKeyMap = aclsdktypes.ResourceTypeToStoreKeyMap{
aclsdktypes.ResourceType_KV_TOKENFACTORY_ADMIN: tokenfactorytypes.StoreKey,
aclsdktypes.ResourceType_KV_TOKENFACTORY_CREATOR: tokenfactorytypes.StoreKey,

// ~~~~ CONFIDENTIAL TRANSFERS Resource Types ~~~~
Copy link
Contributor

Choose a reason for hiding this comment

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

Likewise, maybe we should add a note here for when to uncomment these

app/app.go Outdated
@@ -1081,6 +1081,15 @@ func (app *App) SetStoreUpgradeHandlers() {
// configure store loader that checks if version == upgradeHeight and applies store upgrades
app.SetStoreLoader(upgradetypes.UpgradeStoreLoader(upgradeInfo.Height, &storeUpgrades))
}

if (upgradeInfo.Name == "v6.1.0") && !app.UpgradeKeeper.IsSkipHeight(upgradeInfo.Height) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Just curious, what is this used for?

@@ -103,8 +99,7 @@ func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *r
// TODO: Implement this when we add the CLI methods
Copy link
Contributor

Choose a reason for hiding this comment

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

Can remove this TODO

@dssei dssei marked this pull request as ready for review November 14, 2024 01:47
@dssei dssei merged commit 3c23484 into feature/ct_types Nov 14, 2024
20 of 24 checks passed
@dssei dssei deleted the ct_client_init_account branch November 14, 2024 01:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants