|
1 |
| -import { DowntimeParams, DowntimeParamsSDKType } from "./params"; |
| 1 | +import { SynchronyParams, SynchronyParamsSDKType, DowntimeParams, DowntimeParamsSDKType } from "./params"; |
2 | 2 | import { BlockInfo, BlockInfoSDKType, AllDowntimeInfo, AllDowntimeInfoSDKType } from "./blocktime";
|
3 | 3 | import * as _m0 from "protobufjs/minimal";
|
4 | 4 | import { DeepPartial } from "../../helpers";
|
| 5 | +/** QuerySynchronyParamsRequest is a request type for the SynchronyParams */ |
| 6 | + |
| 7 | +export interface QuerySynchronyParamsRequest {} |
| 8 | +/** QuerySynchronyParamsRequest is a request type for the SynchronyParams */ |
| 9 | + |
| 10 | +export interface QuerySynchronyParamsRequestSDKType {} |
| 11 | +/** QuerySynchronyParamsResponse is a response type for the SynchronyParams */ |
| 12 | + |
| 13 | +export interface QuerySynchronyParamsResponse { |
| 14 | + params?: SynchronyParams; |
| 15 | +} |
| 16 | +/** QuerySynchronyParamsResponse is a response type for the SynchronyParams */ |
| 17 | + |
| 18 | +export interface QuerySynchronyParamsResponseSDKType { |
| 19 | + params?: SynchronyParamsSDKType; |
| 20 | +} |
5 | 21 | /**
|
6 | 22 | * QueryDowntimeParamsRequest is a request type for the DowntimeParams
|
7 | 23 | * RPC method.
|
@@ -103,6 +119,85 @@ export interface QueryAllDowntimeInfoResponseSDKType {
|
103 | 119 | info?: AllDowntimeInfoSDKType;
|
104 | 120 | }
|
105 | 121 |
|
| 122 | +function createBaseQuerySynchronyParamsRequest(): QuerySynchronyParamsRequest { |
| 123 | + return {}; |
| 124 | +} |
| 125 | + |
| 126 | +export const QuerySynchronyParamsRequest = { |
| 127 | + encode(_: QuerySynchronyParamsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { |
| 128 | + return writer; |
| 129 | + }, |
| 130 | + |
| 131 | + decode(input: _m0.Reader | Uint8Array, length?: number): QuerySynchronyParamsRequest { |
| 132 | + const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); |
| 133 | + let end = length === undefined ? reader.len : reader.pos + length; |
| 134 | + const message = createBaseQuerySynchronyParamsRequest(); |
| 135 | + |
| 136 | + while (reader.pos < end) { |
| 137 | + const tag = reader.uint32(); |
| 138 | + |
| 139 | + switch (tag >>> 3) { |
| 140 | + default: |
| 141 | + reader.skipType(tag & 7); |
| 142 | + break; |
| 143 | + } |
| 144 | + } |
| 145 | + |
| 146 | + return message; |
| 147 | + }, |
| 148 | + |
| 149 | + fromPartial(_: DeepPartial<QuerySynchronyParamsRequest>): QuerySynchronyParamsRequest { |
| 150 | + const message = createBaseQuerySynchronyParamsRequest(); |
| 151 | + return message; |
| 152 | + } |
| 153 | + |
| 154 | +}; |
| 155 | + |
| 156 | +function createBaseQuerySynchronyParamsResponse(): QuerySynchronyParamsResponse { |
| 157 | + return { |
| 158 | + params: undefined |
| 159 | + }; |
| 160 | +} |
| 161 | + |
| 162 | +export const QuerySynchronyParamsResponse = { |
| 163 | + encode(message: QuerySynchronyParamsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { |
| 164 | + if (message.params !== undefined) { |
| 165 | + SynchronyParams.encode(message.params, writer.uint32(10).fork()).ldelim(); |
| 166 | + } |
| 167 | + |
| 168 | + return writer; |
| 169 | + }, |
| 170 | + |
| 171 | + decode(input: _m0.Reader | Uint8Array, length?: number): QuerySynchronyParamsResponse { |
| 172 | + const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); |
| 173 | + let end = length === undefined ? reader.len : reader.pos + length; |
| 174 | + const message = createBaseQuerySynchronyParamsResponse(); |
| 175 | + |
| 176 | + while (reader.pos < end) { |
| 177 | + const tag = reader.uint32(); |
| 178 | + |
| 179 | + switch (tag >>> 3) { |
| 180 | + case 1: |
| 181 | + message.params = SynchronyParams.decode(reader, reader.uint32()); |
| 182 | + break; |
| 183 | + |
| 184 | + default: |
| 185 | + reader.skipType(tag & 7); |
| 186 | + break; |
| 187 | + } |
| 188 | + } |
| 189 | + |
| 190 | + return message; |
| 191 | + }, |
| 192 | + |
| 193 | + fromPartial(object: DeepPartial<QuerySynchronyParamsResponse>): QuerySynchronyParamsResponse { |
| 194 | + const message = createBaseQuerySynchronyParamsResponse(); |
| 195 | + message.params = object.params !== undefined && object.params !== null ? SynchronyParams.fromPartial(object.params) : undefined; |
| 196 | + return message; |
| 197 | + } |
| 198 | + |
| 199 | +}; |
| 200 | + |
106 | 201 | function createBaseQueryDowntimeParamsRequest(): QueryDowntimeParamsRequest {
|
107 | 202 | return {};
|
108 | 203 | }
|
|
0 commit comments