Skip to content

Commit

Permalink
Merge pull request #483 from neutron-org/fix/sdk50-enable-wasmd
Browse files Browse the repository at this point in the history
sdk 50 NTRN-230
  • Loading branch information
pr0n00gler authored Apr 24, 2024
2 parents 312fdeb + 2e6d4f7 commit 12402fd
Show file tree
Hide file tree
Showing 63 changed files with 431 additions and 401 deletions.
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ linters-settings:
# Default: false
extra-rules: true
nolintlint:
allow-unused: false
allow-unused: true
allow-leading-space: true
require-explanation: false
require-specific: false
4 changes: 2 additions & 2 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -848,7 +848,7 @@ func New(
ibcHooksModule,
tokenfactory.NewAppModule(appCodec, *app.TokenFactoryKeeper, app.AccountKeeper, app.BankKeeper),
cronModule,
// globalfee.NewAppModule(app.GetSubspace(globalfee.ModuleName)),
globalfee.NewAppModule(app.GlobalFeeKeeper, app.GetSubspace(globalfee.ModuleName), app.AppCodec(), app.keys[globalfee.ModuleName]),
swapModule,
dexModule,
auction.NewAppModule(appCodec, app.AuctionKeeper),
Expand Down Expand Up @@ -961,7 +961,7 @@ func New(
ibchookstypes.ModuleName, // after auth keeper
pfmtypes.ModuleName,
crontypes.ModuleName,
// globalfee.ModuleName,
globalfee.ModuleName,
ibcswaptypes.ModuleName,
dextypes.ModuleName,
)
Expand Down
5 changes: 4 additions & 1 deletion app/proposals_allowlisting.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import (
ibcclienttypes "github.com/cosmos/ibc-go/v8/modules/core/02-client/types" //nolint:staticcheck
auctiontypes "github.com/skip-mev/block-sdk/v2/x/auction/types"

globalfeetypes "github.com/neutron-org/neutron/v3/x/globalfee/types"

contractmanagertypes "github.com/neutron-org/neutron/v3/x/contractmanager/types"
crontypes "github.com/neutron-org/neutron/v3/x/cron/types"
dextypes "github.com/neutron-org/neutron/v3/x/dex/types"
Expand Down Expand Up @@ -71,7 +73,8 @@ func isSdkMessageWhitelisted(msg sdk.Msg) bool {
*minttypes.MsgUpdateParams,
*pfmtypes.MsgUpdateParams,
*auctiontypes.MsgUpdateParams,
*authtypes.MsgUpdateParams:
*authtypes.MsgUpdateParams,
*globalfeetypes.MsgUpdateParams:
return true
}
return false
Expand Down
6 changes: 6 additions & 0 deletions proto/neutron/interchainqueries/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ service Msg {
}

message MsgRegisterInterchainQuery {
option (cosmos.msg.v1.signer) = "sender";

// defines a query type: `kv` or `tx` now
string query_type = 1;

Expand All @@ -50,6 +52,8 @@ message MsgRegisterInterchainQueryResponse {
}

message MsgSubmitQueryResult {
option (cosmos.msg.v1.signer) = "sender";

uint64 query_id = 1;
string sender = 2;

Expand Down Expand Up @@ -112,12 +116,14 @@ message TxValue {
message MsgSubmitQueryResultResponse {}

message MsgRemoveInterchainQueryRequest {
option (cosmos.msg.v1.signer) = "sender";
uint64 query_id = 1;
string sender = 2; // is the signer of the message
}
message MsgRemoveInterchainQueryResponse {}

message MsgUpdateInterchainQueryRequest {
option (cosmos.msg.v1.signer) = "sender";
uint64 query_id = 1;
repeated KVKey new_keys = 2;
uint64 new_update_period = 3;
Expand Down
2 changes: 2 additions & 0 deletions proto/neutron/interchaintxs/v1/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ service Msg {
message MsgRegisterInterchainAccount {
option (gogoproto.equal) = false;
option (gogoproto.goproto_getters) = false;
option (cosmos.msg.v1.signer) = "from_address";

string from_address = 1;
string connection_id = 2 [(gogoproto.moretags) = "yaml:\"connection_id\""];
Expand All @@ -45,6 +46,7 @@ message MsgRegisterInterchainAccountResponse {}
message MsgSubmitTx {
option (gogoproto.equal) = false;
option (gogoproto.goproto_getters) = false;
option (cosmos.msg.v1.signer) = "from_address";

string from_address = 1;
// interchain_account_id is supposed to be the unique identifier, e.g.,
Expand Down
8 changes: 8 additions & 0 deletions proto/osmosis/tokenfactory/v1beta1/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ service Msg {
// denom does not indicate the current admin.
message MsgCreateDenom {
option (amino.name) = "osmosis/tokenfactory/create-denom";
option (cosmos.msg.v1.signer) = "sender";

string sender = 1 [(gogoproto.moretags) = "yaml:\"sender\""];
// subdenom can be up to 44 "alphanumeric" characters long.
Expand All @@ -52,6 +53,7 @@ message MsgCreateDenomResponse {
// more of a token. For now, we only support minting to the sender account
message MsgMint {
option (amino.name) = "osmosis/tokenfactory/mint";
option (cosmos.msg.v1.signer) = "sender";

string sender = 1 [(gogoproto.moretags) = "yaml:\"sender\""];
cosmos.base.v1beta1.Coin amount = 2 [
Expand All @@ -67,6 +69,7 @@ message MsgMintResponse {}
// a token. For now, we only support burning from the sender account.
message MsgBurn {
option (amino.name) = "osmosis/tokenfactory/burn";
option (cosmos.msg.v1.signer) = "sender";

string sender = 1 [(gogoproto.moretags) = "yaml:\"sender\""];
cosmos.base.v1beta1.Coin amount = 2 [
Expand All @@ -82,6 +85,7 @@ message MsgBurnResponse {}
// adminship of a denom to a new account
message MsgChangeAdmin {
option (amino.name) = "osmosis/tokenfactory/change-admin";
option (cosmos.msg.v1.signer) = "sender";

string sender = 1 [(gogoproto.moretags) = "yaml:\"sender\""];
string denom = 2 [(gogoproto.moretags) = "yaml:\"denom\""];
Expand All @@ -96,6 +100,7 @@ message MsgChangeAdminResponse {}
// assign a CosmWasm contract to call with a BeforeSend hook
message MsgSetBeforeSendHook {
option (amino.name) = "osmosis/tokenfactory/set-beforesend-hook";
option (cosmos.msg.v1.signer) = "sender";

string sender = 1 [(gogoproto.moretags) = "yaml:\"sender\""];
string denom = 2 [(gogoproto.moretags) = "yaml:\"denom\""];
Expand All @@ -109,6 +114,8 @@ message MsgSetBeforeSendHookResponse {}
// MsgSetDenomMetadata is the sdk.Msg type for allowing an admin account to set
// the denom's bank metadata
message MsgSetDenomMetadata {
option (cosmos.msg.v1.signer) = "sender";

string sender = 1 [(gogoproto.moretags) = "yaml:\"sender\""];
cosmos.bank.v1beta1.Metadata metadata = 2 [
(gogoproto.moretags) = "yaml:\"metadata\"",
Expand All @@ -122,6 +129,7 @@ message MsgSetDenomMetadataResponse {}

message MsgForceTransfer {
option (amino.name) = "osmosis/tokenfactory/force-transfer";
option (cosmos.msg.v1.signer) = "sender";

string sender = 1 [(gogoproto.moretags) = "yaml:\"sender\""];
cosmos.base.v1beta1.Coin amount = 2 [
Expand Down
5 changes: 3 additions & 2 deletions x/contractmanager/types/failure.pb.go

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

5 changes: 3 additions & 2 deletions x/contractmanager/types/genesis.pb.go

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

5 changes: 3 additions & 2 deletions x/contractmanager/types/params.pb.go

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

7 changes: 4 additions & 3 deletions x/contractmanager/types/query.pb.go

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

7 changes: 4 additions & 3 deletions x/contractmanager/types/tx.pb.go

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

3 changes: 2 additions & 1 deletion x/contractmanager/types/v1/failure.pb.go

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

5 changes: 3 additions & 2 deletions x/cron/types/genesis.pb.go

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

5 changes: 3 additions & 2 deletions x/cron/types/params.pb.go

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

7 changes: 4 additions & 3 deletions x/cron/types/query.pb.go

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

5 changes: 3 additions & 2 deletions x/cron/types/schedule.pb.go

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

7 changes: 4 additions & 3 deletions x/cron/types/tx.pb.go

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

7 changes: 4 additions & 3 deletions x/dex/types/deposit_record.pb.go

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

5 changes: 3 additions & 2 deletions x/dex/types/genesis.pb.go

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

9 changes: 5 additions & 4 deletions x/dex/types/limit_order_expiration.pb.go

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

Loading

0 comments on commit 12402fd

Please sign in to comment.