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

Remove legacy msgfees gov proposal handlers #1953

Merged
Merged
Show file tree
Hide file tree
Changes from 49 commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
fc8ab3c
migrate UpdateConversionFeeDenom for msgfees
nullpointer0x00 Apr 25, 2024
b012d94
migrate HandleUpdateNhashPerUsdMilProposal, move add param methods
nullpointer0x00 Apr 25, 2024
9cae358
migrate removal of msg fee
nullpointer0x00 Apr 25, 2024
46b5079
migrate UpdateMsgFee
nullpointer0x00 Apr 25, 2024
ad34ef2
merge main
nullpointer0x00 Apr 25, 2024
bbc37aa
remove old v1beta proposal stuff from msg fees
nullpointer0x00 Apr 26, 2024
257bfc5
remove proposal handler routes for msgfees from app.go
nullpointer0x00 Apr 26, 2024
539a9d3
remove proposal encodings, add check for empty msg type
nullpointer0x00 Apr 26, 2024
11736d3
Merge branch 'main' into nullpointer0x00/msgfees-migrate-legegacy-pro…
nullpointer0x00 Apr 26, 2024
9399053
add change log entry
nullpointer0x00 Apr 26, 2024
961a9bf
fix lints
nullpointer0x00 Apr 26, 2024
b7fd86b
add tests
nullpointer0x00 Apr 26, 2024
2518795
Update msg validations, update tests
nullpointer0x00 Apr 29, 2024
3a99d21
remove test that is covered in validate basic of msg
nullpointer0x00 Apr 29, 2024
516798c
Merge branch 'main' into nullpointer0x00/msgfees-migrate-legegacy-pro…
nullpointer0x00 Apr 30, 2024
432f2e1
remove proposal contents
May 8, 2024
2ac91e4
fix command marker msg
May 8, 2024
c8acc83
add gov proposal command for add/update/delete msgfee
nullpointer0x00 May 8, 2024
3d40576
add gov proposal cli for GetUpdateNhashPerUsdMilProposal
nullpointer0x00 May 8, 2024
7948ff9
add gov proposal clie for GetUpdateConversionFeeDenomProposal
nullpointer0x00 May 8, 2024
54ce94f
fix descriptions of update conversion fee denom
nullpointer0x00 May 9, 2024
3d7a66b
refactor GetUpdateNhashPerUsdMilProposal cmd
nullpointer0x00 May 9, 2024
0ed4d41
refactor GetCmdMsgFeesProposal cmd
nullpointer0x00 May 9, 2024
b59aedb
add proposal register interaces back
nullpointer0x00 May 9, 2024
572358e
add deprecation to proposals
nullpointer0x00 May 9, 2024
f79bbb7
Bump golang.org/x/text from 0.14.0 to 0.15.0 (#1964)
dependabot[bot] May 6, 2024
eb2d228
Bump google.golang.org/protobuf from 1.34.0 to 1.34.1 (#1966)
dependabot[bot] May 7, 2024
dfc7b42
Bump golangci/golangci-lint-action from 5 to 6 (#1965)
dependabot[bot] May 7, 2024
b81138a
Removes sync-info command (#1952)
Taztingo May 7, 2024
e9db5cd
Cleanup client config (#1962)
Taztingo May 7, 2024
0dc7fb3
Fix the bank params migration. (#1967)
SpicyLemon May 13, 2024
1f118c7
add back proposal interfaces impls
nullpointer0x00 May 13, 2024
6ddf1b0
Clean up Msgs and Codecs. (#1957)
SpicyLemon May 13, 2024
cc0eb97
Fix internal tests. (#1969)
SpicyLemon May 13, 2024
ffbb851
Clean up the Marker's expected BankKeeper interface. (#1954)
SpicyLemon May 13, 2024
b03d503
fix msgfees prop tests
nullpointer0x00 May 13, 2024
55f41a4
add msgfees prop test for update nhash per usd mil
nullpointer0x00 May 13, 2024
c1ad1fe
add msgfees prop test for update conversion fee denom
nullpointer0x00 May 13, 2024
48cbf47
update proposal command and tests
nullpointer0x00 May 14, 2024
346930b
add new test case
nullpointer0x00 May 14, 2024
6ca5f26
remove unneeded options from proposal protos
nullpointer0x00 May 14, 2024
6a3357c
user MutateGenesisState in test setup
nullpointer0x00 May 14, 2024
50255ba
remove unneeded test case
nullpointer0x00 May 15, 2024
5b839f9
remove test case that is checked in validate basic
nullpointer0x00 May 15, 2024
1e41287
Fix cmd Tests (#1968)
SpicyLemon May 15, 2024
5eb44a7
Remove name legacy governance proposal (#1963)
Taztingo May 15, 2024
8349f1a
resolve conflicts
nullpointer0x00 May 15, 2024
98b4fef
fix bad merge conflict
nullpointer0x00 May 15, 2024
a291d71
fix error msg, run proto linting and remove unused imports
nullpointer0x00 May 15, 2024
fa1aaee
merge main
nullpointer0x00 May 15, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
* Name module param migration [#1937](https://github.com/provenance-io/provenance/pull/1937).
* IbcHooks module param migration [#1939](https://github.com/provenance-io/provenance/pull/1939).
* Bank module param migration [#1967](https://github.com/provenance-io/provenance/pull/1967).
* Remove `msgfees` legacy gov proposals [#1953](https://github.com/provenance-io/provenance/pull/1953).
SpicyLemon marked this conversation as resolved.
Show resolved Hide resolved
* Restore the hold module [#1930](https://github.com/provenance-io/provenance/pull/1930).
* Restore gov-prop cli commands and fix next key decoding [#1930](https://github.com/provenance-io/provenance/pull/1930).
* Switch to InputOutputCoinsProv for exchange transfers [#1930](https://github.com/provenance-io/provenance/pull/1930).
Expand Down
4 changes: 1 addition & 3 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ import (
metadatakeeper "github.com/provenance-io/provenance/x/metadata/keeper"
metadatatypes "github.com/provenance-io/provenance/x/metadata/types"
metadatawasm "github.com/provenance-io/provenance/x/metadata/wasm"
"github.com/provenance-io/provenance/x/msgfees"
msgfeeskeeper "github.com/provenance-io/provenance/x/msgfees/keeper"
msgfeesmodule "github.com/provenance-io/provenance/x/msgfees/module"
msgfeestypes "github.com/provenance-io/provenance/x/msgfees/types"
Expand Down Expand Up @@ -689,8 +688,7 @@ func New(
govRouter := govtypesv1beta1.NewRouter()
govRouter.AddRoute(govtypes.RouterKey, govtypesv1beta1.ProposalHandler).
AddRoute(paramproposal.RouterKey, params.NewParamChangeProposalHandler(app.ParamsKeeper)).
AddRoute(markertypes.ModuleName, marker.NewProposalHandler(app.MarkerKeeper)).
AddRoute(msgfeestypes.ModuleName, msgfees.NewProposalHandler(app.MsgFeesKeeper, app.InterfaceRegistry()))
AddRoute(markertypes.ModuleName, marker.NewProposalHandler(app.MarkerKeeper))
nullpointer0x00 marked this conversation as resolved.
Show resolved Hide resolved
govKeeper := govkeeper.NewKeeper(
appCodec, runtime.NewKVStoreService(keys[govtypes.StoreKey]), app.AccountKeeper, app.BankKeeper,
app.StakingKeeper, app.DistrKeeper, app.BaseApp.MsgServiceRouter(), govtypes.Config{MaxMetadataLen: 10000}, govAuthority,
Expand Down
2 changes: 0 additions & 2 deletions proto/provenance/ibchooks/v1/params.proto
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
syntax = "proto3";
package provenance.ibchooks.v1;

import "gogoproto/gogo.proto";

option go_package = "github.com/provenance-io/provenance/x/ibchooks/types";

option java_package = "io.provenance.ibchooks.v1";
Expand Down
1 change: 0 additions & 1 deletion proto/provenance/ibchooks/v1/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ syntax = "proto3";
package provenance.ibchooks.v1;

import "cosmos/msg/v1/msg.proto";
import "gogoproto/gogo.proto";

option go_package = "github.com/provenance-io/provenance/x/ibchooks/types";

Expand Down
2 changes: 0 additions & 2 deletions proto/provenance/ibcratelimit/v1/params.proto
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
syntax = "proto3";
package provenance.ibcratelimit.v1;

import "gogoproto/gogo.proto";

option go_package = "github.com/provenance-io/provenance/x/ibcratelimit";
option java_package = "io.provenance.ibcratelimit.v1";
option java_multiple_files = true;
Expand Down
25 changes: 20 additions & 5 deletions proto/provenance/msgfees/v1/proposals.proto
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@ option java_package = "io.provenance.msgfees.v1";
option java_multiple_files = true;

// AddMsgFeeProposal defines a governance proposal to add additional msg based fee
// Deprecated: This message is no longer usable. It is only still included for
// backwards compatibility (e.g. looking up old governance proposals).
// It is replaced by providing a MsgAddMsgFeeProposalRequest in a governance proposal.
message AddMsgFeeProposal {
option (gogoproto.equal) = true;
option deprecated = true;

// propsal title
string title = 1;
Expand All @@ -32,8 +35,11 @@ message AddMsgFeeProposal {
}

// UpdateMsgFeeProposal defines a governance proposal to update a current msg based fee
// Deprecated: This message is no longer usable. It is only still included for
// backwards compatibility (e.g. looking up old governance proposals).
// It is replaced by providing a MsgUpdateMsgFeeProposalRequest in a governance proposal.
message UpdateMsgFeeProposal {
option (gogoproto.equal) = true;
option deprecated = true;

// propsal title
string title = 1;
Expand All @@ -51,8 +57,11 @@ message UpdateMsgFeeProposal {
}

// RemoveMsgFeeProposal defines a governance proposal to delete a current msg based fee
// Deprecated: This message is no longer usable. It is only still included for
// backwards compatibility (e.g. looking up old governance proposals).
// It is replaced by providing a MsgRemoveMsgFeeProposalRequest in a governance proposal.
message RemoveMsgFeeProposal {
option (gogoproto.equal) = true;
option deprecated = true;

// propsal title
string title = 1;
Expand All @@ -63,8 +72,11 @@ message RemoveMsgFeeProposal {
}

// UpdateNhashPerUsdMilProposal defines a governance proposal to update the nhash per usd mil param
// Deprecated: This message is no longer usable. It is only still included for
// backwards compatibility (e.g. looking up old governance proposals).
// It is replaced by providing a MsgUpdateNhashPerUsdMilProposalRequest in a governance proposal.
message UpdateNhashPerUsdMilProposal {
option (gogoproto.equal) = true;
option deprecated = true;

string title = 1; // proposal title
string description = 2; // proposal description
Expand All @@ -73,8 +85,11 @@ message UpdateNhashPerUsdMilProposal {
}

// UpdateConversionFeeDenomProposal defines a governance proposal to update the msg fee conversion denom
// Deprecated: This message is no longer usable. It is only still included for
// backwards compatibility (e.g. looking up old governance proposals).
// It is replaced by providing a MsgUpdateConversionFeeDenomProposalRequest in a governance proposal.
message UpdateConversionFeeDenomProposal {
option (gogoproto.equal) = true;
option deprecated = true;

string title = 1; // proposal title
string description = 2; // proposal description
Expand Down
24 changes: 11 additions & 13 deletions x/ibchooks/types/params.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

47 changes: 23 additions & 24 deletions x/ibchooks/types/tx.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 10 additions & 12 deletions x/ibcratelimit/params.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion x/marker/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ Please use 'gov proposal submit-proposal instead.
`,
),
RunE: func(_ *cobra.Command, _ []string) error {
return fmt.Errorf("this command has been deprecated, and is no longer functional. Please use 'gov proposal submit-proposal' instead")
return fmt.Errorf("this command has been deprecated, and is no longer functional. Please use 'gov submit-proposal' instead")
},
}
flags.AddTxFlagsToCmd(cmd)
Expand Down
Loading
Loading