-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #769 from public-awesome/adding-msgsrvr-and-query-…
…srvr feat(x/globalfee): Adding msg server and query server
- Loading branch information
Showing
14 changed files
with
4,597 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,54 @@ | ||
syntax = "proto3"; | ||
package publicawesome.stargaze.globalfee.v1; | ||
|
||
import "google/api/annotations.proto"; | ||
import "stargaze/globalfee/v1/globalfee.proto"; | ||
|
||
option go_package = "github.com/public-awesome/stargaze/v9/x/globalfee/types"; | ||
|
||
// Query defines the gRPC querier service. | ||
service Query { | ||
rpc CodeAuthorization(QueryCodeAuthorizationRequest) returns (QueryCodeAuthorizationResponse) { | ||
option (google.api.http).get = | ||
"/stargaze/globalfee/v1/code_authorization/{code_id}"; | ||
} | ||
rpc ContractAuthorization(QueryContractAuthorizationRequest) returns (QueryContractAuthorizationResponse) { | ||
option (google.api.http).get = | ||
"/stargaze/globalfee/v1/contract_authorization/{contract_address}"; | ||
} | ||
rpc Params(QueryParamsRequest) returns (QueryParamsResponse) { | ||
option (google.api.http).get = "/stargaze/globalfee/v1/params"; | ||
} | ||
rpc Authorizations(QueryAuthorizationsRequest) returns (QueryAuthorizationsResponse) { | ||
option (google.api.http).get = "/stargaze/globalfee/v1/authorizations"; | ||
} | ||
} | ||
|
||
message QueryCodeAuthorizationRequest { | ||
uint64 code_id = 1; | ||
} | ||
|
||
message QueryCodeAuthorizationResponse { | ||
repeated string methods = 1; | ||
} | ||
|
||
message QueryContractAuthorizationRequest { | ||
string contract_address = 1; | ||
} | ||
|
||
message QueryContractAuthorizationResponse { | ||
repeated string methods = 1; | ||
} | ||
|
||
message QueryParamsRequest {} | ||
|
||
message QueryParamsResponse { | ||
Params params = 1; | ||
} | ||
|
||
message QueryAuthorizationsRequest {} | ||
|
||
message QueryAuthorizationsResponse { | ||
repeated CodeAuthorization code_authorizations = 1; | ||
repeated ContractAuthorization contract_authorizations = 2; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,45 @@ | ||
syntax = "proto3"; | ||
package publicawesome.stargaze.globalfee.v1; | ||
|
||
import "stargaze/globalfee/v1/globalfee.proto"; | ||
|
||
option go_package = "github.com/public-awesome/stargaze/v9/x/globalfee/types"; | ||
|
||
// Msg defines the alloc Msg service. | ||
service Msg { | ||
rpc SetCodeAuthorization (MsgSetCodeAuthorization) returns (MsgSetCodeAuthorizationResponse); | ||
|
||
rpc RemoveCodeAuthorization(MsgRemoveCodeAuthorization) returns (MsgRemoveCodeAuthorizationResponse); | ||
|
||
rpc SetContractAuthorization (MsgSetContractAuthorization ) returns (MsgSetContractAuthorizationResponse); | ||
|
||
rpc RemoveContractAuthorization(MsgRemoveContractAuthorization) returns (MsgRemoveContractAuthorizationResponse); | ||
} | ||
|
||
message MsgSetCodeAuthorization { | ||
string sender = 1; | ||
CodeAuthorization code_authorization = 2; | ||
} | ||
|
||
message MsgSetCodeAuthorizationResponse {} | ||
|
||
message MsgRemoveCodeAuthorization { | ||
string sender = 1; | ||
uint64 code_id = 2; | ||
} | ||
|
||
message MsgRemoveCodeAuthorizationResponse {} | ||
|
||
message MsgSetContractAuthorization { | ||
string sender = 1; | ||
ContractAuthorization contract_authorization = 2; | ||
} | ||
|
||
message MsgSetContractAuthorizationResponse {} | ||
|
||
message MsgRemoveContractAuthorization { | ||
string sender = 1; | ||
string contract_address = 2; | ||
} | ||
|
||
message MsgRemoveContractAuthorizationResponse {} |
Oops, something went wrong.