diff --git a/docs/proto/proto-docs.md b/docs/proto/proto-docs.md index 50b0c9dd..83c16d8f 100644 --- a/docs/proto/proto-docs.md +++ b/docs/proto/proto-docs.md @@ -1,44 +1,108 @@ + # Protobuf Documentation + + + ## Table of Contents + + - [kujira/oracle/oracle.proto](#kujira/oracle/oracle.proto) + - [Denom](#kujira.oracle.Denom) + - [ExchangeRateTuple](#kujira.oracle.ExchangeRateTuple) + - [Params](#kujira.oracle.Params) + + - [kujira/oracle/genesis.proto](#kujira/oracle/genesis.proto) + - [FeederDelegation](#kujira.oracle.FeederDelegation) + - [GenesisState](#kujira.oracle.GenesisState) + - [MissCounter](#kujira.oracle.MissCounter) + + - [kujira/oracle/query.proto](#kujira/oracle/query.proto) + - [QueryActivesRequest](#kujira.oracle.QueryActivesRequest) + - [QueryActivesResponse](#kujira.oracle.QueryActivesResponse) + - [QueryExchangeRateRequest](#kujira.oracle.QueryExchangeRateRequest) + - [QueryExchangeRateResponse](#kujira.oracle.QueryExchangeRateResponse) + - [QueryExchangeRatesRequest](#kujira.oracle.QueryExchangeRatesRequest) + - [QueryExchangeRatesResponse](#kujira.oracle.QueryExchangeRatesResponse) + - [QueryMissCounterRequest](#kujira.oracle.QueryMissCounterRequest) + - [QueryMissCounterResponse](#kujira.oracle.QueryMissCounterResponse) + - [QueryParamsRequest](#kujira.oracle.QueryParamsRequest) + - [QueryParamsResponse](#kujira.oracle.QueryParamsResponse) + - [QueryVoteTargetsRequest](#kujira.oracle.QueryVoteTargetsRequest) + - [QueryVoteTargetsResponse](#kujira.oracle.QueryVoteTargetsResponse) + + - [Query](#kujira.oracle.Query) + + - [kujira/oracle/tx.proto](#kujira/oracle/tx.proto) + - [MsgAddRequiredDenom](#kujira.oracle.MsgAddRequiredDenom) + - [MsgAddRequiredDenomResponse](#kujira.oracle.MsgAddRequiredDenomResponse) + - [MsgRemoveRequiredDenom](#kujira.oracle.MsgRemoveRequiredDenom) + - [MsgRemoveRequiredDenomResponse](#kujira.oracle.MsgRemoveRequiredDenomResponse) + - [MsgUpdateParams](#kujira.oracle.MsgUpdateParams) + - [MsgUpdateParamsResponse](#kujira.oracle.MsgUpdateParamsResponse) + + - [Msg](#kujira.oracle.Msg) + + - [Scalar Value Types](#scalar-value-types) + + + + +

Top

-# Protobuf Documentation - - - -## Table of Contents - -- [Protobuf Documentation](#protobuf-documentation) - - [Table of Contents](#table-of-contents) - - [kujira/scheduler/params.proto](#kujiraschedulerparamsproto) - - [Params](#params) - - [kujira/scheduler/hook.proto](#kujiraschedulerhookproto) - - [Hook](#hook) - - [kujira/scheduler/genesis.proto](#kujiraschedulergenesisproto) - - [GenesisState](#genesisstate) - - [kujira/scheduler/proposal.proto](#kujiraschedulerproposalproto) - - [CreateHookProposal](#createhookproposal) - - [DeleteHookProposal](#deletehookproposal) - - [UpdateHookProposal](#updatehookproposal) - - [kujira/scheduler/query.proto](#kujiraschedulerqueryproto) - - [QueryAllHookRequest](#queryallhookrequest) - - [QueryAllHookResponse](#queryallhookresponse) - - [QueryGetHookRequest](#querygethookrequest) - - [QueryGetHookResponse](#querygethookresponse) - - [QueryParamsRequest](#queryparamsrequest) - - [QueryParamsResponse](#queryparamsresponse) - - [Query](#query) - - [Scalar Value Types](#scalar-value-types) - - + ## kujira/oracle/oracle.proto + -

Top

+ + + + ### Denom + Denom - the object to hold configurations of each denom + + + | Field | Type | Label | Description | + | ----- | ---- | ----- | ----------- | + | `name` | [string](#string) | | | + + + + + + + + + ### ExchangeRateTuple + ExchangeRateTuple - struct to store interpreted exchange rates data to store + + + | Field | Type | Label | Description | + | ----- | ---- | ----- | ----------- | + | `denom` | [string](#string) | | | + | `exchange_rate` | [string](#string) | | | + + -## kujira/scheduler/params.proto + - + + -### Params + ### Params + Params defines the parameters for the oracle module. -Params defines the parameters for the module. + + | Field | Type | Label | Description | + | ----- | ---- | ----- | ----------- | + | `vote_period` | [uint64](#uint64) | | | + | `vote_threshold` | [string](#string) | | | + | `max_deviation` | [string](#string) | | | + | `required_denoms` | [string](#string) | repeated | | + | `slash_fraction` | [string](#string) | | | + | `slash_window` | [uint64](#uint64) | | | + | `min_valid_per_window` | [string](#string) | | | + | `reward_band` | [string](#string) | | Deprecated | + | `whitelist` | [Denom](#kujira.oracle.Denom) | repeated | | + + + + @@ -48,24 +112,65 @@ Params defines the parameters for the module. - - + + +

Top

-## kujira/scheduler/hook.proto + ## kujira/oracle/genesis.proto + + + + + + ### FeederDelegation + FeederDelegation is the address for where oracle feeder authority are +delegated to. By default this struct is only used at genesis to feed in +default feeder addresses. + + + | Field | Type | Label | Description | + | ----- | ---- | ----- | ----------- | + | `feeder_address` | [string](#string) | | | + | `validator_address` | [string](#string) | | | + + + + + + + + + ### GenesisState + GenesisState defines the oracle module's genesis state. - + + | Field | Type | Label | Description | + | ----- | ---- | ----- | ----------- | + | `params` | [Params](#kujira.oracle.Params) | | | + | `exchange_rates` | [ExchangeRateTuple](#kujira.oracle.ExchangeRateTuple) | repeated | | + | `miss_counters` | [MissCounter](#kujira.oracle.MissCounter) | repeated | | + + -### Hook + -| Field | Type | Label | Description | -| ----------- | ----------------------------------------------------- | -------- | ----------- | -| `id` | [uint64](#uint64) | | | -| `executor` | [string](#string) | | | -| `contract` | [string](#string) | | | -| `msg` | [bytes](#bytes) | | | -| `frequency` | [int64](#int64) | | | -| `funds` | [cosmos.base.v1beta1.Coin](#cosmos.base.v1beta1.Coin) | repeated | | + + + + ### MissCounter + MissCounter defines an miss counter and validator address pair used in +oracle module's genesis state + + + | Field | Type | Label | Description | + | ----- | ---- | ----- | ----------- | + | `validator_address` | [string](#string) | | | + | `miss_counter` | [uint64](#uint64) | | | + + + + @@ -75,76 +180,178 @@ Params defines the parameters for the module. - - + + +

Top

-## kujira/scheduler/genesis.proto + ## kujira/oracle/query.proto + - + + -### GenesisState + ### QueryActivesRequest + QueryActivesRequest is the request type for the Query/Actives RPC method. -GenesisState defines the scheduler module's genesis state. + -| Field | Type | Label | Description | -| ----------- | ---------------------------------- | -------- | ----------- | -| `params` | [Params](#kujira.scheduler.Params) | | | -| `hookList` | [Hook](#kujira.scheduler.Hook) | repeated | | -| `hookCount` | [uint64](#uint64) | | | + - + + - + ### QueryActivesResponse + QueryActivesResponse is response type for the +Query/Actives RPC method. - + + | Field | Type | Label | Description | + | ----- | ---- | ----- | ----------- | + | `actives` | [string](#string) | repeated | actives defines a list of the denomination which oracle prices aggreed upon. | + + - + - + + -

Top

+ ### QueryExchangeRateRequest + QueryExchangeRateRequest is the request type for the Query/ExchangeRate RPC method. + + + | Field | Type | Label | Description | + | ----- | ---- | ----- | ----------- | + | `denom` | [string](#string) | | denom defines the denomination to query for. | + + + + + + + + + ### QueryExchangeRateResponse + QueryExchangeRateResponse is response type for the +Query/ExchangeRate RPC method. + + + | Field | Type | Label | Description | + | ----- | ---- | ----- | ----------- | + | `exchange_rate` | [string](#string) | | exchange_rate defines the exchange rate of whitelisted assets | + + + + + + + -## kujira/scheduler/proposal.proto + ### QueryExchangeRatesRequest + QueryExchangeRatesRequest is the request type for the Query/ExchangeRates RPC method. - + -### CreateHookProposal + -| Field | Type | Label | Description | -| ------------- | ----------------------------------------------------- | -------- | ----------------------------------------------------- | -| `title` | [string](#string) | | Title is a short summary | -| `description` | [string](#string) | | Description is a human readable text | -| `executor` | [string](#string) | | The account that will execute the msg on the schedule | -| `contract` | [string](#string) | | The contract that the msg is called on | -| `msg` | [bytes](#bytes) | | | -| `frequency` | [int64](#int64) | | | -| `funds` | [cosmos.base.v1beta1.Coin](#cosmos.base.v1beta1.Coin) | repeated | | + + - + ### QueryExchangeRatesResponse + QueryExchangeRatesResponse is response type for the +Query/ExchangeRates RPC method. -### DeleteHookProposal + + | Field | Type | Label | Description | + | ----- | ---- | ----- | ----------- | + | `exchange_rates` | [cosmos.base.v1beta1.DecCoin](#cosmos.base.v1beta1.DecCoin) | repeated | exchange_rates defines a list of the exchange rate for all whitelisted denoms. | + + -| Field | Type | Label | Description | -| ------------- | ----------------- | ----- | ------------------------------------ | -| `title` | [string](#string) | | Title is a short summary | -| `description` | [string](#string) | | Description is a human readable text | -| `id` | [uint64](#uint64) | | | + - + + -### UpdateHookProposal + ### QueryMissCounterRequest + QueryMissCounterRequest is the request type for the Query/MissCounter RPC method. -| Field | Type | Label | Description | -| ------------- | ----------------------------------------------------- | -------- | ------------------------------------ | -| `title` | [string](#string) | | Title is a short summary | -| `description` | [string](#string) | | Description is a human readable text | -| `id` | [uint64](#uint64) | | | -| `executor` | [string](#string) | | | -| `contract` | [string](#string) | | | -| `msg` | [bytes](#bytes) | | | -| `frequency` | [int64](#int64) | | | -| `funds` | [cosmos.base.v1beta1.Coin](#cosmos.base.v1beta1.Coin) | repeated | | + + | Field | Type | Label | Description | + | ----- | ---- | ----- | ----------- | + | `validator_addr` | [string](#string) | | validator defines the validator address to query for. | + + + + + + + + + ### QueryMissCounterResponse + QueryMissCounterResponse is response type for the +Query/MissCounter RPC method. + + + | Field | Type | Label | Description | + | ----- | ---- | ----- | ----------- | + | `miss_counter` | [uint64](#uint64) | | miss_counter defines the oracle miss counter of a validator | + + + + + + + + + ### QueryParamsRequest + QueryParamsRequest is the request type for the Query/Params RPC method. + + + + + + + + + ### QueryParamsResponse + QueryParamsResponse is the response type for the Query/Params RPC method. + + + | Field | Type | Label | Description | + | ----- | ---- | ----- | ----------- | + | `params` | [Params](#kujira.oracle.Params) | | params defines the parameters of the module. | + + + + + + + + + ### QueryVoteTargetsRequest + QueryVoteTargetsRequest is the request type for the Query/VoteTargets RPC method. + + + + + + + + + ### QueryVoteTargetsResponse + QueryVoteTargetsResponse is response type for the +Query/VoteTargets RPC method. + + + | Field | Type | Label | Description | + | ----- | ---- | ----- | ----------- | + | `vote_targets` | [string](#string) | repeated | vote_targets defines a list of the denomination in which everyone should vote in the current vote period. | + + + + @@ -152,62 +359,107 @@ GenesisState defines the scheduler module's genesis state. - + + - + ### Query + Query defines the gRPC querier service. + + | Method Name | Request Type | Response Type | Description | HTTP Verb | Endpoint | + | ----------- | ------------ | ------------- | ------------| ------- | -------- | + | `ExchangeRate` | [QueryExchangeRateRequest](#kujira.oracle.QueryExchangeRateRequest) | [QueryExchangeRateResponse](#kujira.oracle.QueryExchangeRateResponse) | ExchangeRate returns exchange rate of a denom | GET|/oracle/denoms/{denom}/exchange_rate| + | `ExchangeRates` | [QueryExchangeRatesRequest](#kujira.oracle.QueryExchangeRatesRequest) | [QueryExchangeRatesResponse](#kujira.oracle.QueryExchangeRatesResponse) | ExchangeRates returns exchange rates of all denoms | GET|/oracle/denoms/exchange_rates| + | `Actives` | [QueryActivesRequest](#kujira.oracle.QueryActivesRequest) | [QueryActivesResponse](#kujira.oracle.QueryActivesResponse) | Actives returns all active denoms | GET|/oracle/denoms/actives| + | `MissCounter` | [QueryMissCounterRequest](#kujira.oracle.QueryMissCounterRequest) | [QueryMissCounterResponse](#kujira.oracle.QueryMissCounterResponse) | MissCounter returns oracle miss counter of a validator | GET|/oracle/validators/{validator_addr}/miss| + | `Params` | [QueryParamsRequest](#kujira.oracle.QueryParamsRequest) | [QueryParamsResponse](#kujira.oracle.QueryParamsResponse) | Params queries all parameters. | GET|/oracle/params| + + + + +

Top

-## kujira/scheduler/query.proto + ## kujira/oracle/tx.proto + - + + -### QueryAllHookRequest + ### MsgAddRequiredDenom + MsgAddRequiredDenom represents a message to add a denom to the whitelist -| Field | Type | Label | Description | -| ------------ | ------------------------------------------------------------------------------- | ----- | ----------- | -| `pagination` | [cosmos.base.query.v1beta1.PageRequest](#cosmos.base.query.v1beta1.PageRequest) | | | + + | Field | Type | Label | Description | + | ----- | ---- | ----- | ----------- | + | `authority` | [string](#string) | | | + | `symbol` | [string](#string) | | | + + - + -### QueryAllHookResponse + + -| Field | Type | Label | Description | -| ------------ | --------------------------------------------------------------------------------- | -------- | ----------- | -| `Hook` | [Hook](#kujira.scheduler.Hook) | repeated | | -| `pagination` | [cosmos.base.query.v1beta1.PageResponse](#cosmos.base.query.v1beta1.PageResponse) | | | + ### MsgAddRequiredDenomResponse + MsgAddRequiredDenomResponse defines the Msg/AddRequiredDenom response type. - + -### QueryGetHookRequest + -| Field | Type | Label | Description | -| ----- | ----------------- | ----- | ----------- | -| `id` | [uint64](#uint64) | | | + + - + ### MsgRemoveRequiredDenom + MsgRemoveRequiredDenom represents a message to remove a denom from the whitelist -### QueryGetHookResponse + + | Field | Type | Label | Description | + | ----- | ---- | ----- | ----------- | + | `authority` | [string](#string) | | | + | `symbol` | [string](#string) | | | + + -| Field | Type | Label | Description | -| ------ | ------------------------------ | ----- | ----------- | -| `Hook` | [Hook](#kujira.scheduler.Hook) | | | + - + + -### QueryParamsRequest + ### MsgRemoveRequiredDenomResponse + MsgRemoveRequiredDenomResponse defines the Msg/RemoveRequiredDenom response type. -QueryParamsRequest is request type for the Query/Params RPC method. + - + -### QueryParamsResponse + + -QueryParamsResponse is response type for the Query/Params RPC method. + ### MsgUpdateParams + -| Field | Type | Label | Description | -| -------- | ---------------------------------- | ----- | ----------------------------------------------- | -| `params` | [Params](#kujira.scheduler.Params) | | params holds all the parameters of this module. | + + | Field | Type | Label | Description | + | ----- | ---- | ----- | ----------- | + | `authority` | [string](#string) | | | + | `params` | [Params](#kujira.oracle.Params) | | | + + + + + + + + + ### MsgUpdateParamsResponse + MsgUpdateParamsResponse defines the Msg/UpdateParams response type. + + + + @@ -215,36 +467,39 @@ QueryParamsResponse is response type for the Query/Params RPC method. - - -### Query - -Query defines the gRPC querier service. + + -| Method Name | Request Type | Response Type | Description | HTTP Verb | Endpoint | -| ----------- | ------------------------------------------------------------ | -------------------------------------------------------------- | ------------------------------------------------ | --------- | --------------------------- | -| `Params` | [QueryParamsRequest](#kujira.scheduler.QueryParamsRequest) | [QueryParamsResponse](#kujira.scheduler.QueryParamsResponse) | Parameters queries the parameters of the module. | GET | /kujira/scheduler/params | -| `Hook` | [QueryGetHookRequest](#kujira.scheduler.QueryGetHookRequest) | [QueryGetHookResponse](#kujira.scheduler.QueryGetHookResponse) | Queries a Hook by id. | GET | /kujira/scheduler/hook/{id} | -| `HookAll` | [QueryAllHookRequest](#kujira.scheduler.QueryAllHookRequest) | [QueryAllHookResponse](#kujira.scheduler.QueryAllHookResponse) | Queries a list of Hook items. | GET | /kujira/scheduler/hook | + ### Msg + Msg defines the oracle Msg service. + | Method Name | Request Type | Response Type | Description | HTTP Verb | Endpoint | + | ----------- | ------------ | ------------- | ------------| ------- | -------- | + | `AddRequiredDenom` | [MsgAddRequiredDenom](#kujira.oracle.MsgAddRequiredDenom) | [MsgAddRequiredDenomResponse](#kujira.oracle.MsgAddRequiredDenomResponse) | AddRequiredDenom adds a new price to the required list of prices | | + | `RemoveRequiredDenom` | [MsgRemoveRequiredDenom](#kujira.oracle.MsgRemoveRequiredDenom) | [MsgRemoveRequiredDenomResponse](#kujira.oracle.MsgRemoveRequiredDenomResponse) | RemoveRequiredDenom removes a price from the required list of prices | | + | `UpdateParams` | [MsgUpdateParams](#kujira.oracle.MsgUpdateParams) | [MsgUpdateParamsResponse](#kujira.oracle.MsgUpdateParamsResponse) | UpdateParams sets new module params | | + -## Scalar Value Types - -| .proto Type | Notes | C++ | Java | Python | Go | C# | PHP | Ruby | -| ------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------- | ------ | ---------- | ----------- | ------- | ---------- | -------------- | ------------------------------ | -| double | | double | double | float | float64 | double | float | Float | -| float | | float | float | float | float32 | float | float | Float | -| int32 | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead. | int32 | int | int | int32 | int | integer | Bignum or Fixnum (as required) | -| int64 | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead. | int64 | long | int/long | int64 | long | integer/string | Bignum | -| uint32 | Uses variable-length encoding. | uint32 | int | int/long | uint32 | uint | integer | Bignum or Fixnum (as required) | -| uint64 | Uses variable-length encoding. | uint64 | long | int/long | uint64 | ulong | integer/string | Bignum or Fixnum (as required) | -| sint32 | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s. | int32 | int | int | int32 | int | integer | Bignum or Fixnum (as required) | -| sint64 | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s. | int64 | long | int/long | int64 | long | integer/string | Bignum | -| fixed32 | Always four bytes. More efficient than uint32 if values are often greater than 2^28. | uint32 | int | int | uint32 | uint | integer | Bignum or Fixnum (as required) | -| fixed64 | Always eight bytes. More efficient than uint64 if values are often greater than 2^56. | uint64 | long | int/long | uint64 | ulong | integer/string | Bignum | -| sfixed32 | Always four bytes. | int32 | int | int | int32 | int | integer | Bignum or Fixnum (as required) | -| sfixed64 | Always eight bytes. | int64 | long | int/long | int64 | long | integer/string | Bignum | -| bool | | bool | boolean | boolean | bool | bool | boolean | TrueClass/FalseClass | -| string | A string must always contain UTF-8 encoded or 7-bit ASCII text. | string | String | str/unicode | string | string | string | String (UTF-8) | -| bytes | May contain any arbitrary sequence of bytes. | string | ByteString | str | []byte | ByteString | string | String (ASCII-8BIT) | + + + ## Scalar Value Types + + | .proto Type | Notes | C++ | Java | Python | Go | C# | PHP | Ruby | + | ----------- | ----- | --- | ---- | ------ | -- | -- | --- | ---- | + | double | | double | double | float | float64 | double | float | Float | + | float | | float | float | float | float32 | float | float | Float | + | int32 | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead. | int32 | int | int | int32 | int | integer | Bignum or Fixnum (as required) | + | int64 | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead. | int64 | long | int/long | int64 | long | integer/string | Bignum | + | uint32 | Uses variable-length encoding. | uint32 | int | int/long | uint32 | uint | integer | Bignum or Fixnum (as required) | + | uint64 | Uses variable-length encoding. | uint64 | long | int/long | uint64 | ulong | integer/string | Bignum or Fixnum (as required) | + | sint32 | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s. | int32 | int | int | int32 | int | integer | Bignum or Fixnum (as required) | + | sint64 | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s. | int64 | long | int/long | int64 | long | integer/string | Bignum | + | fixed32 | Always four bytes. More efficient than uint32 if values are often greater than 2^28. | uint32 | int | int | uint32 | uint | integer | Bignum or Fixnum (as required) | + | fixed64 | Always eight bytes. More efficient than uint64 if values are often greater than 2^56. | uint64 | long | int/long | uint64 | ulong | integer/string | Bignum | + | sfixed32 | Always four bytes. | int32 | int | int | int32 | int | integer | Bignum or Fixnum (as required) | + | sfixed64 | Always eight bytes. | int64 | long | int/long | int64 | long | integer/string | Bignum | + | bool | | bool | boolean | boolean | bool | bool | boolean | TrueClass/FalseClass | + | string | A string must always contain UTF-8 encoded or 7-bit ASCII text. | string | String | str/unicode | string | string | string | String (UTF-8) | + | bytes | May contain any arbitrary sequence of bytes. | string | ByteString | str | []byte | ByteString | string | String (ASCII-8BIT) | + \ No newline at end of file diff --git a/proto/kujira/denom/tx.proto b/proto/kujira/denom/tx.proto index c87b4e62..d481c5af 100644 --- a/proto/kujira/denom/tx.proto +++ b/proto/kujira/denom/tx.proto @@ -26,6 +26,8 @@ service Msg { // a new denom. It requires a sender address and a unique nonce // (to allow accounts to create multiple denoms) message MsgCreateDenom { + option (cosmos.msg.v1.signer) = "sender"; + string sender = 1 [ (gogoproto.moretags) = "yaml:\"sender\"" ]; string nonce = 2 [ (gogoproto.moretags) = "yaml:\"nonce\"" ]; } @@ -40,6 +42,8 @@ message MsgCreateDenomResponse { // MsgMint is the sdk.Msg type for allowing an admin account to mint // more of a token. message MsgMint { + option (cosmos.msg.v1.signer) = "sender"; + string sender = 1 [ (gogoproto.moretags) = "yaml:\"sender\"" ]; cosmos.base.v1beta1.Coin amount = 2 [ (gogoproto.moretags) = "yaml:\"amount\"", @@ -53,6 +57,8 @@ message MsgMintResponse {} // MsgBurn is the sdk.Msg type for allowing an admin account to burn // a token. For now, we only support burning from the sender account. message MsgBurn { + option (cosmos.msg.v1.signer) = "sender"; + string sender = 1 [ (gogoproto.moretags) = "yaml:\"sender\"" ]; cosmos.base.v1beta1.Coin amount = 2 [ (gogoproto.moretags) = "yaml:\"amount\"", @@ -80,6 +86,8 @@ message MsgBurnResponse {} // MsgChangeAdmin is the sdk.Msg type for allowing an admin account to reassign // adminship of a denom to a new account message MsgChangeAdmin { + option (cosmos.msg.v1.signer) = "sender"; + string sender = 1 [ (gogoproto.moretags) = "yaml:\"sender\"" ]; string denom = 2 [ (gogoproto.moretags) = "yaml:\"denom\"" ]; string newAdmin = 3 [ (gogoproto.moretags) = "yaml:\"new_admin\"" ]; diff --git a/x/cw-ica/types/query.pb.gw.go b/x/cw-ica/types/query.pb.gw.go index 90d41b99..00b7fa55 100644 --- a/x/cw-ica/types/query.pb.gw.go +++ b/x/cw-ica/types/query.pb.gw.go @@ -20,6 +20,7 @@ import ( "google.golang.org/grpc" "google.golang.org/grpc/codes" "google.golang.org/grpc/grpclog" + "google.golang.org/grpc/metadata" "google.golang.org/grpc/status" ) @@ -30,6 +31,7 @@ var _ status.Status var _ = runtime.String var _ = utilities.NewDoubleArray var _ = descriptor.ForMessage +var _ = metadata.Join var ( filter_Query_InterchainAccount_0 = &utilities.DoubleArray{Encoding: map[string]int{"owner": 0, "connection_id": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} @@ -128,12 +130,14 @@ func local_request_Query_InterchainAccount_0(ctx context.Context, marshaler runt // RegisterQueryHandlerServer registers the http handlers for service Query to "mux". // UnaryRPC :call QueryServer directly. // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. -// Note that using this registration option will cause many gRPC library features (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead. +// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead. func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error { mux.Handle("GET", pattern_Query_InterchainAccount_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) if err != nil { @@ -141,6 +145,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } resp, md, err := local_request_Query_InterchainAccount_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) diff --git a/x/denom/types/tx.pb.go b/x/denom/types/tx.pb.go index 2cf4c1c9..cf708963 100644 --- a/x/denom/types/tx.pb.go +++ b/x/denom/types/tx.pb.go @@ -522,46 +522,47 @@ func init() { func init() { proto.RegisterFile("kujira/denom/tx.proto", fileDescriptor_4060456503c2ab45) } var fileDescriptor_4060456503c2ab45 = []byte{ - // 618 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x54, 0x4d, 0x8b, 0xd3, 0x40, - 0x18, 0x6e, 0x76, 0xb5, 0xba, 0xb3, 0xdf, 0x61, 0xbb, 0xdb, 0x06, 0x4d, 0x65, 0x50, 0x71, 0x05, - 0x13, 0x5b, 0x6f, 0x8b, 0x20, 0xb6, 0x1e, 0x04, 0x29, 0x68, 0xa8, 0x17, 0x11, 0x96, 0x69, 0x3a, - 0xa4, 0x71, 0xcd, 0x4c, 0xc8, 0x4c, 0xb7, 0xdb, 0x8b, 0x07, 0x7f, 0x81, 0x17, 0xfd, 0x1d, 0xe2, - 0xaf, 0xd8, 0xe3, 0x1e, 0x3d, 0x15, 0x69, 0x0f, 0xde, 0x7b, 0x17, 0x24, 0x33, 0xd3, 0x7c, 0x98, - 0xb2, 0xb0, 0x27, 0x4f, 0x09, 0xef, 0xf3, 0xbc, 0xef, 0xfb, 0xbc, 0x5f, 0x03, 0x2a, 0x27, 0xc3, - 0x0f, 0x7e, 0x84, 0xec, 0x3e, 0x26, 0x34, 0xb0, 0xf9, 0x99, 0x15, 0x46, 0x94, 0x53, 0x7d, 0x43, - 0x9a, 0x2d, 0x61, 0x36, 0xf6, 0x3c, 0xea, 0x51, 0x01, 0xd8, 0xf1, 0x9f, 0xe4, 0x18, 0x07, 0x2e, - 0x65, 0x01, 0x65, 0x76, 0xc0, 0x3c, 0xfb, 0xb4, 0x11, 0x7f, 0x14, 0x60, 0x2a, 0xa0, 0x87, 0x18, - 0xb6, 0x4f, 0x1b, 0x3d, 0xcc, 0x51, 0xc3, 0x76, 0xa9, 0x4f, 0x14, 0x5e, 0xcb, 0xe5, 0x0c, 0x51, - 0x84, 0x02, 0x26, 0x21, 0xe8, 0x82, 0xad, 0x0e, 0xf3, 0xda, 0x11, 0x46, 0x1c, 0xbf, 0x88, 0x61, - 0xfd, 0x10, 0x94, 0x19, 0x26, 0x7d, 0x1c, 0x55, 0xb5, 0x3b, 0xda, 0x83, 0xb5, 0xd6, 0xee, 0x7c, - 0x52, 0xdf, 0x1c, 0xa3, 0xe0, 0xe3, 0x11, 0x94, 0x76, 0xe8, 0x28, 0x82, 0x7e, 0x1f, 0x5c, 0x27, - 0x94, 0xb8, 0xb8, 0xba, 0x22, 0x98, 0x3b, 0xf3, 0x49, 0x7d, 0x43, 0x32, 0x85, 0x19, 0x3a, 0x12, - 0x86, 0xef, 0xc1, 0x7e, 0x3e, 0x89, 0x83, 0x59, 0x48, 0x09, 0xc3, 0x7a, 0x0b, 0x6c, 0x13, 0x3c, - 0x3a, 0xe6, 0xf4, 0x04, 0x93, 0x63, 0x21, 0x4f, 0x65, 0x35, 0xe6, 0x93, 0xfa, 0xbe, 0x8a, 0x95, - 0x27, 0x40, 0x67, 0x93, 0xe0, 0x51, 0x37, 0x36, 0x88, 0x58, 0xf0, 0x87, 0x06, 0x6e, 0x74, 0x98, - 0xd7, 0xf1, 0x09, 0xb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6, 0x3e, 0xff, 0xfe, 0xfe, 0x30, 0x0d, 0x08, - 0x6b, 0xe0, 0xe0, 0x1f, 0x5d, 0x0b, 0xcd, 0xcd, 0x3f, 0x2b, 0x60, 0xb5, 0xc3, 0x3c, 0xfd, 0x0d, - 0x58, 0xcf, 0x1e, 0xe2, 0xad, 0x7c, 0xca, 0xfc, 0x05, 0x19, 0x77, 0x2f, 0x43, 0x93, 0xfb, 0x7a, - 0x0a, 0xae, 0x89, 0xbb, 0xa8, 0x14, 0xd8, 0xb1, 0xd9, 0xb8, 0xbd, 0xd4, 0x9c, 0xf5, 0x16, 0xeb, - 0x58, 0xf4, 0x8e, 0xcd, 0x4b, 0xbc, 0xb3, 0xcb, 0x23, 0xca, 0xc9, 0x2c, 0xce, 0x92, 0x72, 0x52, - 0x74, 0x59, 0x39, 0xc5, 0xe9, 0xea, 0x5d, 0xb0, 0x91, 0x9b, 0x6c, 0x51, 0x41, 0x16, 0x36, 0xee, - 0x5d, 0x0a, 0x2f, 0xa2, 0xb6, 0xda, 0xe7, 0x53, 0x53, 0xbb, 0x98, 0x9a, 0xda, 0xaf, 0xa9, 0xa9, - 0x7d, 0x99, 0x99, 0xa5, 0x8b, 0x99, 0x59, 0xfa, 0x39, 0x33, 0x4b, 0xef, 0x0e, 0x3d, 0x9f, 0x0f, - 0x86, 0x3d, 0xcb, 0xa5, 0x81, 0xdd, 0xc5, 0x28, 0x78, 0xf4, 0x4a, 0x3e, 0xa4, 0x2e, 0x8d, 0xb0, - 0x7d, 0xb6, 0x78, 0xc3, 0xc7, 0x21, 0x66, 0xbd, 0xb2, 0x78, 0x4f, 0x9f, 0xfc, 0x0d, 0x00, 0x00, - 0xff, 0xff, 0xc4, 0x5a, 0xd8, 0x1b, 0xe0, 0x05, 0x00, 0x00, + // 629 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x54, 0x4d, 0x6b, 0x13, 0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46, + 0xf3, 0x7c, 0x6c, 0x1b, 0x17, 0x63, 0xdb, 0xf8, 0x35, 0xb6, 0x8d, 0x2f, 0x13, 0xbb, 0x72, 0x31, + 0xb1, 0x2b, 0x3f, 0x27, 0x76, 0xe5, 0xdd, 0x7e, 0x10, 0xf2, 0x5e, 0xbf, 0xe3, 0xf8, 0x34, 0x72, + 0xdb, 0x18, 0x45, 0x8f, 0x5e, 0xa9, 0xaf, 0xaf, 0x4f, 0x13, 0xec, 0x9e, 0xcd, 0x3e, 0xfc, 0xc3, + 0x18, 0xb3, 0x4e, 0x55, 0x7e, 0x84, 0x9f, 0xfc, 0x0d, 0x00, 0x00, 0xff, 0xff, 0xdd, 0x5d, 0x27, + 0x25, 0x15, 0x06, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used.