Skip to content

Commit 35acee6

Browse files
committed
Added mising proto files
1 parent b42c3b2 commit 35acee6

File tree

5 files changed

+119
-0
lines changed

5 files changed

+119
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
syntax = "proto3";
2+
3+
package precompileexa.module.v1;
4+
5+
import "cosmos/app/v1alpha1/module.proto";
6+
7+
// Module is the app config object of the module.
8+
// Learn more: https://docs.cosmos.network/main/building-modules/depinject
9+
message Module {
10+
option (cosmos.app.v1alpha1.module) = {
11+
go_import : "github.com/reece/myproject"
12+
};
13+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
syntax = "proto3";
2+
package precompileexa.v1;
3+
4+
import "gogoproto/gogo.proto";
5+
import "amino/amino.proto";
6+
7+
option go_package = "github.com/reece/myproject/x/precompileexa/types";
8+
9+
// GenesisState defines the module genesis state
10+
message GenesisState {
11+
// Params defines all the parameters of the module.
12+
Params params = 1 [(gogoproto.nullable) = false];
13+
}
14+
15+
// Params defines the set of module parameters.
16+
message Params {
17+
option (amino.name) = "precompileexa/params";
18+
option (gogoproto.equal) = true;
19+
option (gogoproto.goproto_stringer) = false;
20+
21+
bool some_value = 2;
22+
string admin_address = 3;
23+
}

proto/precompileexa/v1/query.proto

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
syntax = "proto3";
2+
package precompileexa.v1;
3+
4+
import "google/api/annotations.proto";
5+
import "precompileexa/v1/genesis.proto";
6+
7+
option go_package = "github.com/reece/myproject/x/precompileexa/types";
8+
9+
// Query provides defines the gRPC querier service.
10+
service Query {
11+
// Params queries all parameters of the module.
12+
rpc Params(QueryParamsRequest) returns (QueryParamsResponse) {
13+
option (google.api.http).get = "/precompileexa/v1/params";
14+
}
15+
}
16+
17+
// QueryParamsRequest is the request type for the Query/Params RPC method.
18+
message QueryParamsRequest {}
19+
20+
// QueryParamsResponse is the response type for the Query/Params RPC method.
21+
message QueryParamsResponse {
22+
// params defines the parameters of the module.
23+
Params params = 1;
24+
}

proto/precompileexa/v1/state.proto

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
syntax = "proto3";
2+
package precompileexa.v1;
3+
4+
import "cosmos/orm/v1/orm.proto";
5+
6+
option go_package = "github.com/reece/myproject/x/precompileexa/types";
7+
8+
// https://github.com/cosmos/cosmos-sdk/blob/main/orm/README.md
9+
10+
message ExampleData {
11+
option (cosmos.orm.v1.table) = {
12+
id: 1;
13+
primary_key: { fields: "account" }
14+
index: { id: 1 fields: "amount" }
15+
};
16+
17+
bytes account = 1;
18+
uint64 amount = 2;
19+
}

proto/precompileexa/v1/tx.proto

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
syntax = "proto3";
2+
package precompileexa.v1;
3+
4+
import "cosmos/msg/v1/msg.proto";
5+
import "precompileexa/v1/genesis.proto";
6+
import "gogoproto/gogo.proto";
7+
import "cosmos_proto/cosmos.proto";
8+
9+
option go_package = "github.com/reece/myproject/x/precompileexa/types";
10+
11+
// Msg defines the Msg service.
12+
service Msg {
13+
option (cosmos.msg.v1.service) = true;
14+
15+
// UpdateParams defines a governance operation for updating the parameters.
16+
//
17+
// Since: cosmos-sdk 0.47
18+
rpc UpdateParams(MsgUpdateParams) returns (MsgUpdateParamsResponse);
19+
}
20+
21+
// MsgUpdateParams is the Msg/UpdateParams request type.
22+
//
23+
// Since: cosmos-sdk 0.47
24+
message MsgUpdateParams {
25+
option (cosmos.msg.v1.signer) = "authority";
26+
27+
// authority is the address of the governance account.
28+
string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
29+
30+
// params defines the parameters to update.
31+
//
32+
// NOTE: All parameters must be supplied.
33+
Params params = 2 [(gogoproto.nullable) = false];
34+
}
35+
36+
// MsgUpdateParamsResponse defines the response structure for executing a
37+
// MsgUpdateParams message.
38+
//
39+
// Since: cosmos-sdk 0.47
40+
message MsgUpdateParamsResponse {}

0 commit comments

Comments
 (0)