Skip to content

Commit

Permalink
Merge branch 'main' into trinity/zero-max-cap
Browse files Browse the repository at this point in the history
  • Loading branch information
vuong177 committed Sep 3, 2024
2 parents c87ee8a + 6663290 commit 616de21
Show file tree
Hide file tree
Showing 8 changed files with 134 additions and 129 deletions.
2 changes: 0 additions & 2 deletions proto/osmosis/meshsecurity/v1beta1/scheduler.proto
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
syntax = "proto3";
package osmosis.meshsecurity.v1beta1;

// import "cosmos/base/v1beta1/coin.proto";
import "gogoproto/gogo.proto";
// import "amino/amino.proto";
import "cosmos_proto/cosmos.proto";

option go_package = "github.com/osmosis-labs/mesh-security-sdk/x/meshsecurity/types";
Expand Down
19 changes: 19 additions & 0 deletions proto/osmosis/meshsecurityprovider/genesis.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
syntax = "proto3";
package osmosis.meshsecurityprovider;

import "gogoproto/gogo.proto";
import "google/protobuf/any.proto";
import "cosmos_proto/cosmos.proto";

option go_package = "github.com/osmosis-labs/mesh-security-sdk/x/meshsecurityprovider/types";

message Params {
string vault_address = 1 [ (gogoproto.moretags) = "yaml:\"vault_address\"" ];
string native_staking_address = 2 [ (gogoproto.moretags) = "yaml:\"native_staking_address\"" ];
}

// GenesisState defines the meshsecurityprovider module's genesis state.
message GenesisState {
// params is the container of meshsecurityprovider parameters.
Params params = 1 [ (gogoproto.nullable) = false ];
}
19 changes: 19 additions & 0 deletions proto/osmosis/meshsecurityprovider/query.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
syntax = "proto3";
package osmosis.meshsecurityprovider;

import "gogoproto/gogo.proto";
import "google/api/annotations.proto";
import "osmosis/meshsecurityprovider/genesis.proto";
import "osmosis/meshsecurityprovider/tx.proto";

option go_package = "github.com/osmosis-labs/mesh-security-sdk/x/meshsecurityprovider/types";

service Query {
rpc Params(ParamsRequest) returns (ParamsResponse) {
option (google.api.http).get = "/osmosis/meshsecurityprovider/Params";
}
}

//=============================== Params
message ParamsRequest {}
message ParamsResponse { Params params = 1 [ (gogoproto.nullable) = false ]; }
31 changes: 31 additions & 0 deletions proto/osmosis/meshsecurityprovider/tx.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
syntax = "proto3";
package osmosis.meshsecurityprovider;

import "amino/amino.proto";
import "gogoproto/gogo.proto";
import "cosmos/base/v1beta1/coin.proto";
import "cosmos/msg/v1/msg.proto";
import "osmosis/meshsecurityprovider/genesis.proto";

option go_package = "github.com/osmosis-labs/mesh-security-sdk/x/meshsecurityprovider/types";
option (gogoproto.goproto_getters_all) = false;

service Msg {
rpc UpdateParams(MsgUpdateParams) returns (MsgUpdateParamsResponse);
}

// MsgUpdateParams updates meshsecurityprovider module 's params
message MsgUpdateParams {
option (amino.name) = "meshsecurityprovider/MsgUpdateParams";
option (cosmos.msg.v1.signer) = "authority";

// Authority is the address that controls the module (defaults to x/gov unless
// overwritten).
string authority = 1;

// params defines the x/meshsecurityprovider parameters to update.
Params params = 2 [ (gogoproto.nullable) = false ];

}

message MsgUpdateParamsResponse {}
80 changes: 28 additions & 52 deletions x/meshsecurityprovider/types/genesis.pb.go

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

9 changes: 0 additions & 9 deletions x/meshsecurityprovider/types/params.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
package types

import (
"sigs.k8s.io/yaml"
)

// Parameter store keys.
var (
KeyParamField = []byte("TODO: CHANGE ME")
Expand All @@ -15,11 +11,6 @@ func NewParams(vaultAddress string) Params {
}
}

func (p Params) String() string {
out, _ := yaml.Marshal(p)
return string(out)
}

// DefaultParams are the default meshsecurityprovider module parameters.
func DefaultParams() Params {
return Params{}
Expand Down
28 changes: 14 additions & 14 deletions x/meshsecurityprovider/types/query.pb.go

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

75 changes: 23 additions & 52 deletions x/meshsecurityprovider/types/tx.pb.go

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

0 comments on commit 616de21

Please sign in to comment.