mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-10 21:49:15 +00:00
Upgrade ts-proto to 1.61.0
This commit is contained in:
parent
bec85cdec5
commit
84a5b9b399
@ -59,7 +59,7 @@
|
||||
"ses": "^0.11.0",
|
||||
"shx": "^0.3.2",
|
||||
"source-map-support": "^0.5.19",
|
||||
"ts-proto": "=1.60.0",
|
||||
"ts-proto": "=1.61.0",
|
||||
"typedoc": "^0.19",
|
||||
"typescript": "~4.0",
|
||||
"webpack": "^4.43.0",
|
||||
|
@ -76,7 +76,7 @@ export const PageRequest = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): PageRequest {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...basePageRequest } as PageRequest;
|
||||
const message = Object.create(basePageRequest) as PageRequest;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -101,7 +101,7 @@ export const PageRequest = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): PageRequest {
|
||||
const message = { ...basePageRequest } as PageRequest;
|
||||
const message = Object.create(basePageRequest) as PageRequest;
|
||||
if (object.key !== undefined && object.key !== null) {
|
||||
message.key = bytesFromBase64(object.key);
|
||||
}
|
||||
@ -171,7 +171,7 @@ export const PageResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): PageResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...basePageResponse } as PageResponse;
|
||||
const message = Object.create(basePageResponse) as PageResponse;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -190,7 +190,7 @@ export const PageResponse = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): PageResponse {
|
||||
const message = { ...basePageResponse } as PageResponse;
|
||||
const message = Object.create(basePageResponse) as PageResponse;
|
||||
if (object.nextKey !== undefined && object.nextKey !== null) {
|
||||
message.nextKey = bytesFromBase64(object.nextKey);
|
||||
}
|
||||
|
@ -48,7 +48,7 @@ export const Coin = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): Coin {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseCoin } as Coin;
|
||||
const message = Object.create(baseCoin) as Coin;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -67,7 +67,7 @@ export const Coin = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): Coin {
|
||||
const message = { ...baseCoin } as Coin;
|
||||
const message = Object.create(baseCoin) as Coin;
|
||||
if (object.denom !== undefined && object.denom !== null) {
|
||||
message.denom = String(object.denom);
|
||||
} else {
|
||||
@ -116,7 +116,7 @@ export const DecCoin = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): DecCoin {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseDecCoin } as DecCoin;
|
||||
const message = Object.create(baseDecCoin) as DecCoin;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -135,7 +135,7 @@ export const DecCoin = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): DecCoin {
|
||||
const message = { ...baseDecCoin } as DecCoin;
|
||||
const message = Object.create(baseDecCoin) as DecCoin;
|
||||
if (object.denom !== undefined && object.denom !== null) {
|
||||
message.denom = String(object.denom);
|
||||
} else {
|
||||
@ -183,7 +183,7 @@ export const IntProto = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): IntProto {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseIntProto } as IntProto;
|
||||
const message = Object.create(baseIntProto) as IntProto;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -199,7 +199,7 @@ export const IntProto = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): IntProto {
|
||||
const message = { ...baseIntProto } as IntProto;
|
||||
const message = Object.create(baseIntProto) as IntProto;
|
||||
if (object.int !== undefined && object.int !== null) {
|
||||
message.int = String(object.int);
|
||||
} else {
|
||||
@ -236,7 +236,7 @@ export const DecProto = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): DecProto {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseDecProto } as DecProto;
|
||||
const message = Object.create(baseDecProto) as DecProto;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -252,7 +252,7 @@ export const DecProto = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): DecProto {
|
||||
const message = { ...baseDecProto } as DecProto;
|
||||
const message = Object.create(baseDecProto) as DecProto;
|
||||
if (object.dec !== undefined && object.dec !== null) {
|
||||
message.dec = String(object.dec);
|
||||
} else {
|
||||
|
@ -143,7 +143,7 @@ export const QueryContractInfoRequest = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryContractInfoRequest {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryContractInfoRequest } as QueryContractInfoRequest;
|
||||
const message = Object.create(baseQueryContractInfoRequest) as QueryContractInfoRequest;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -159,7 +159,7 @@ export const QueryContractInfoRequest = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryContractInfoRequest {
|
||||
const message = { ...baseQueryContractInfoRequest } as QueryContractInfoRequest;
|
||||
const message = Object.create(baseQueryContractInfoRequest) as QueryContractInfoRequest;
|
||||
if (object.address !== undefined && object.address !== null) {
|
||||
message.address = String(object.address);
|
||||
} else {
|
||||
@ -190,7 +190,7 @@ const baseQueryContractInfoResponse: object = { address: "" };
|
||||
export const QueryContractInfoResponse = {
|
||||
encode(message: QueryContractInfoResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
writer.uint32(10).string(message.address);
|
||||
if (message.contractInfo !== undefined && message.contractInfo !== undefined) {
|
||||
if (message.contractInfo !== undefined) {
|
||||
ContractInfo.encode(message.contractInfo, writer.uint32(18).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -199,7 +199,7 @@ export const QueryContractInfoResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryContractInfoResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryContractInfoResponse } as QueryContractInfoResponse;
|
||||
const message = Object.create(baseQueryContractInfoResponse) as QueryContractInfoResponse;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -218,7 +218,7 @@ export const QueryContractInfoResponse = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryContractInfoResponse {
|
||||
const message = { ...baseQueryContractInfoResponse } as QueryContractInfoResponse;
|
||||
const message = Object.create(baseQueryContractInfoResponse) as QueryContractInfoResponse;
|
||||
if (object.address !== undefined && object.address !== null) {
|
||||
message.address = String(object.address);
|
||||
} else {
|
||||
@ -261,7 +261,7 @@ const baseQueryContractHistoryRequest: object = { address: "" };
|
||||
export const QueryContractHistoryRequest = {
|
||||
encode(message: QueryContractHistoryRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
writer.uint32(10).string(message.address);
|
||||
if (message.pagination !== undefined && message.pagination !== undefined) {
|
||||
if (message.pagination !== undefined) {
|
||||
PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -270,7 +270,7 @@ export const QueryContractHistoryRequest = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryContractHistoryRequest {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryContractHistoryRequest } as QueryContractHistoryRequest;
|
||||
const message = Object.create(baseQueryContractHistoryRequest) as QueryContractHistoryRequest;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -289,7 +289,7 @@ export const QueryContractHistoryRequest = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryContractHistoryRequest {
|
||||
const message = { ...baseQueryContractHistoryRequest } as QueryContractHistoryRequest;
|
||||
const message = Object.create(baseQueryContractHistoryRequest) as QueryContractHistoryRequest;
|
||||
if (object.address !== undefined && object.address !== null) {
|
||||
message.address = String(object.address);
|
||||
} else {
|
||||
@ -334,7 +334,7 @@ export const QueryContractHistoryResponse = {
|
||||
for (const v of message.entries) {
|
||||
ContractCodeHistoryEntry.encode(v!, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
if (message.pagination !== undefined && message.pagination !== undefined) {
|
||||
if (message.pagination !== undefined) {
|
||||
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -343,7 +343,7 @@ export const QueryContractHistoryResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryContractHistoryResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryContractHistoryResponse } as QueryContractHistoryResponse;
|
||||
const message = Object.create(baseQueryContractHistoryResponse) as QueryContractHistoryResponse;
|
||||
message.entries = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -363,7 +363,7 @@ export const QueryContractHistoryResponse = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryContractHistoryResponse {
|
||||
const message = { ...baseQueryContractHistoryResponse } as QueryContractHistoryResponse;
|
||||
const message = Object.create(baseQueryContractHistoryResponse) as QueryContractHistoryResponse;
|
||||
message.entries = [];
|
||||
if (object.entries !== undefined && object.entries !== null) {
|
||||
for (const e of object.entries) {
|
||||
@ -412,7 +412,7 @@ const baseQueryContractsByCodeRequest: object = { codeId: Long.UZERO };
|
||||
export const QueryContractsByCodeRequest = {
|
||||
encode(message: QueryContractsByCodeRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
writer.uint32(8).uint64(message.codeId);
|
||||
if (message.pagination !== undefined && message.pagination !== undefined) {
|
||||
if (message.pagination !== undefined) {
|
||||
PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -421,7 +421,7 @@ export const QueryContractsByCodeRequest = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryContractsByCodeRequest {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryContractsByCodeRequest } as QueryContractsByCodeRequest;
|
||||
const message = Object.create(baseQueryContractsByCodeRequest) as QueryContractsByCodeRequest;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -440,7 +440,7 @@ export const QueryContractsByCodeRequest = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryContractsByCodeRequest {
|
||||
const message = { ...baseQueryContractsByCodeRequest } as QueryContractsByCodeRequest;
|
||||
const message = Object.create(baseQueryContractsByCodeRequest) as QueryContractsByCodeRequest;
|
||||
if (object.codeId !== undefined && object.codeId !== null) {
|
||||
message.codeId = Long.fromString(object.codeId);
|
||||
} else {
|
||||
@ -483,7 +483,7 @@ const baseContractInfoWithAddress: object = { address: "" };
|
||||
export const ContractInfoWithAddress = {
|
||||
encode(message: ContractInfoWithAddress, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
writer.uint32(10).string(message.address);
|
||||
if (message.contractInfo !== undefined && message.contractInfo !== undefined) {
|
||||
if (message.contractInfo !== undefined) {
|
||||
ContractInfo.encode(message.contractInfo, writer.uint32(18).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -492,7 +492,7 @@ export const ContractInfoWithAddress = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): ContractInfoWithAddress {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseContractInfoWithAddress } as ContractInfoWithAddress;
|
||||
const message = Object.create(baseContractInfoWithAddress) as ContractInfoWithAddress;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -511,7 +511,7 @@ export const ContractInfoWithAddress = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): ContractInfoWithAddress {
|
||||
const message = { ...baseContractInfoWithAddress } as ContractInfoWithAddress;
|
||||
const message = Object.create(baseContractInfoWithAddress) as ContractInfoWithAddress;
|
||||
if (object.address !== undefined && object.address !== null) {
|
||||
message.address = String(object.address);
|
||||
} else {
|
||||
@ -556,7 +556,7 @@ export const QueryContractsByCodeResponse = {
|
||||
for (const v of message.contractInfos) {
|
||||
ContractInfoWithAddress.encode(v!, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
if (message.pagination !== undefined && message.pagination !== undefined) {
|
||||
if (message.pagination !== undefined) {
|
||||
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -565,7 +565,7 @@ export const QueryContractsByCodeResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryContractsByCodeResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryContractsByCodeResponse } as QueryContractsByCodeResponse;
|
||||
const message = Object.create(baseQueryContractsByCodeResponse) as QueryContractsByCodeResponse;
|
||||
message.contractInfos = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -585,7 +585,7 @@ export const QueryContractsByCodeResponse = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryContractsByCodeResponse {
|
||||
const message = { ...baseQueryContractsByCodeResponse } as QueryContractsByCodeResponse;
|
||||
const message = Object.create(baseQueryContractsByCodeResponse) as QueryContractsByCodeResponse;
|
||||
message.contractInfos = [];
|
||||
if (object.contractInfos !== undefined && object.contractInfos !== null) {
|
||||
for (const e of object.contractInfos) {
|
||||
@ -636,7 +636,7 @@ const baseQueryAllContractStateRequest: object = { address: "" };
|
||||
export const QueryAllContractStateRequest = {
|
||||
encode(message: QueryAllContractStateRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
writer.uint32(10).string(message.address);
|
||||
if (message.pagination !== undefined && message.pagination !== undefined) {
|
||||
if (message.pagination !== undefined) {
|
||||
PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -645,7 +645,7 @@ export const QueryAllContractStateRequest = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllContractStateRequest {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryAllContractStateRequest } as QueryAllContractStateRequest;
|
||||
const message = Object.create(baseQueryAllContractStateRequest) as QueryAllContractStateRequest;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -664,7 +664,7 @@ export const QueryAllContractStateRequest = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryAllContractStateRequest {
|
||||
const message = { ...baseQueryAllContractStateRequest } as QueryAllContractStateRequest;
|
||||
const message = Object.create(baseQueryAllContractStateRequest) as QueryAllContractStateRequest;
|
||||
if (object.address !== undefined && object.address !== null) {
|
||||
message.address = String(object.address);
|
||||
} else {
|
||||
@ -709,7 +709,7 @@ export const QueryAllContractStateResponse = {
|
||||
for (const v of message.models) {
|
||||
Model.encode(v!, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
if (message.pagination !== undefined && message.pagination !== undefined) {
|
||||
if (message.pagination !== undefined) {
|
||||
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -718,7 +718,7 @@ export const QueryAllContractStateResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllContractStateResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryAllContractStateResponse } as QueryAllContractStateResponse;
|
||||
const message = Object.create(baseQueryAllContractStateResponse) as QueryAllContractStateResponse;
|
||||
message.models = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -738,7 +738,7 @@ export const QueryAllContractStateResponse = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryAllContractStateResponse {
|
||||
const message = { ...baseQueryAllContractStateResponse } as QueryAllContractStateResponse;
|
||||
const message = Object.create(baseQueryAllContractStateResponse) as QueryAllContractStateResponse;
|
||||
message.models = [];
|
||||
if (object.models !== undefined && object.models !== null) {
|
||||
for (const e of object.models) {
|
||||
@ -794,7 +794,7 @@ export const QueryRawContractStateRequest = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryRawContractStateRequest {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryRawContractStateRequest } as QueryRawContractStateRequest;
|
||||
const message = Object.create(baseQueryRawContractStateRequest) as QueryRawContractStateRequest;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -813,7 +813,7 @@ export const QueryRawContractStateRequest = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryRawContractStateRequest {
|
||||
const message = { ...baseQueryRawContractStateRequest } as QueryRawContractStateRequest;
|
||||
const message = Object.create(baseQueryRawContractStateRequest) as QueryRawContractStateRequest;
|
||||
if (object.address !== undefined && object.address !== null) {
|
||||
message.address = String(object.address);
|
||||
} else {
|
||||
@ -862,7 +862,7 @@ export const QueryRawContractStateResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryRawContractStateResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryRawContractStateResponse } as QueryRawContractStateResponse;
|
||||
const message = Object.create(baseQueryRawContractStateResponse) as QueryRawContractStateResponse;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -878,7 +878,7 @@ export const QueryRawContractStateResponse = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryRawContractStateResponse {
|
||||
const message = { ...baseQueryRawContractStateResponse } as QueryRawContractStateResponse;
|
||||
const message = Object.create(baseQueryRawContractStateResponse) as QueryRawContractStateResponse;
|
||||
if (object.data !== undefined && object.data !== null) {
|
||||
message.data = bytesFromBase64(object.data);
|
||||
}
|
||||
@ -915,7 +915,7 @@ export const QuerySmartContractStateRequest = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QuerySmartContractStateRequest {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQuerySmartContractStateRequest } as QuerySmartContractStateRequest;
|
||||
const message = Object.create(baseQuerySmartContractStateRequest) as QuerySmartContractStateRequest;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -934,7 +934,7 @@ export const QuerySmartContractStateRequest = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QuerySmartContractStateRequest {
|
||||
const message = { ...baseQuerySmartContractStateRequest } as QuerySmartContractStateRequest;
|
||||
const message = Object.create(baseQuerySmartContractStateRequest) as QuerySmartContractStateRequest;
|
||||
if (object.address !== undefined && object.address !== null) {
|
||||
message.address = String(object.address);
|
||||
} else {
|
||||
@ -983,7 +983,7 @@ export const QuerySmartContractStateResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QuerySmartContractStateResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQuerySmartContractStateResponse } as QuerySmartContractStateResponse;
|
||||
const message = Object.create(baseQuerySmartContractStateResponse) as QuerySmartContractStateResponse;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -999,7 +999,7 @@ export const QuerySmartContractStateResponse = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QuerySmartContractStateResponse {
|
||||
const message = { ...baseQuerySmartContractStateResponse } as QuerySmartContractStateResponse;
|
||||
const message = Object.create(baseQuerySmartContractStateResponse) as QuerySmartContractStateResponse;
|
||||
if (object.data !== undefined && object.data !== null) {
|
||||
message.data = bytesFromBase64(object.data);
|
||||
}
|
||||
@ -1035,7 +1035,7 @@ export const QueryCodeRequest = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryCodeRequest {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryCodeRequest } as QueryCodeRequest;
|
||||
const message = Object.create(baseQueryCodeRequest) as QueryCodeRequest;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -1051,7 +1051,7 @@ export const QueryCodeRequest = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryCodeRequest {
|
||||
const message = { ...baseQueryCodeRequest } as QueryCodeRequest;
|
||||
const message = Object.create(baseQueryCodeRequest) as QueryCodeRequest;
|
||||
if (object.codeId !== undefined && object.codeId !== null) {
|
||||
message.codeId = Long.fromString(object.codeId);
|
||||
} else {
|
||||
@ -1092,7 +1092,7 @@ export const CodeInfoResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): CodeInfoResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseCodeInfoResponse } as CodeInfoResponse;
|
||||
const message = Object.create(baseCodeInfoResponse) as CodeInfoResponse;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -1120,7 +1120,7 @@ export const CodeInfoResponse = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): CodeInfoResponse {
|
||||
const message = { ...baseCodeInfoResponse } as CodeInfoResponse;
|
||||
const message = Object.create(baseCodeInfoResponse) as CodeInfoResponse;
|
||||
if (object.codeId !== undefined && object.codeId !== null) {
|
||||
message.codeId = Long.fromString(object.codeId);
|
||||
} else {
|
||||
@ -1193,7 +1193,7 @@ const baseQueryCodeResponse: object = {};
|
||||
|
||||
export const QueryCodeResponse = {
|
||||
encode(message: QueryCodeResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
if (message.codeInfo !== undefined && message.codeInfo !== undefined) {
|
||||
if (message.codeInfo !== undefined) {
|
||||
CodeInfoResponse.encode(message.codeInfo, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
writer.uint32(18).bytes(message.data);
|
||||
@ -1203,7 +1203,7 @@ export const QueryCodeResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryCodeResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryCodeResponse } as QueryCodeResponse;
|
||||
const message = Object.create(baseQueryCodeResponse) as QueryCodeResponse;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -1222,7 +1222,7 @@ export const QueryCodeResponse = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryCodeResponse {
|
||||
const message = { ...baseQueryCodeResponse } as QueryCodeResponse;
|
||||
const message = Object.create(baseQueryCodeResponse) as QueryCodeResponse;
|
||||
if (object.codeInfo !== undefined && object.codeInfo !== null) {
|
||||
message.codeInfo = CodeInfoResponse.fromJSON(object.codeInfo);
|
||||
} else {
|
||||
@ -1263,7 +1263,7 @@ const baseQueryCodesRequest: object = {};
|
||||
|
||||
export const QueryCodesRequest = {
|
||||
encode(message: QueryCodesRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
if (message.pagination !== undefined && message.pagination !== undefined) {
|
||||
if (message.pagination !== undefined) {
|
||||
PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -1272,7 +1272,7 @@ export const QueryCodesRequest = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryCodesRequest {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryCodesRequest } as QueryCodesRequest;
|
||||
const message = Object.create(baseQueryCodesRequest) as QueryCodesRequest;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -1288,7 +1288,7 @@ export const QueryCodesRequest = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryCodesRequest {
|
||||
const message = { ...baseQueryCodesRequest } as QueryCodesRequest;
|
||||
const message = Object.create(baseQueryCodesRequest) as QueryCodesRequest;
|
||||
if (object.pagination !== undefined && object.pagination !== null) {
|
||||
message.pagination = PageRequest.fromJSON(object.pagination);
|
||||
} else {
|
||||
@ -1322,7 +1322,7 @@ export const QueryCodesResponse = {
|
||||
for (const v of message.codeInfos) {
|
||||
CodeInfoResponse.encode(v!, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
if (message.pagination !== undefined && message.pagination !== undefined) {
|
||||
if (message.pagination !== undefined) {
|
||||
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -1331,7 +1331,7 @@ export const QueryCodesResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryCodesResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryCodesResponse } as QueryCodesResponse;
|
||||
const message = Object.create(baseQueryCodesResponse) as QueryCodesResponse;
|
||||
message.codeInfos = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -1351,7 +1351,7 @@ export const QueryCodesResponse = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryCodesResponse {
|
||||
const message = { ...baseQueryCodesResponse } as QueryCodesResponse;
|
||||
const message = Object.create(baseQueryCodesResponse) as QueryCodesResponse;
|
||||
message.codeInfos = [];
|
||||
if (object.codeInfos !== undefined && object.codeInfos !== null) {
|
||||
for (const e of object.codeInfos) {
|
||||
|
@ -119,7 +119,7 @@ export const MsgStoreCode = {
|
||||
writer.uint32(18).bytes(message.wasmByteCode);
|
||||
writer.uint32(26).string(message.source);
|
||||
writer.uint32(34).string(message.builder);
|
||||
if (message.instantiatePermission !== undefined && message.instantiatePermission !== undefined) {
|
||||
if (message.instantiatePermission !== undefined) {
|
||||
AccessConfig.encode(message.instantiatePermission, writer.uint32(42).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -128,7 +128,7 @@ export const MsgStoreCode = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgStoreCode {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseMsgStoreCode } as MsgStoreCode;
|
||||
const message = Object.create(baseMsgStoreCode) as MsgStoreCode;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -156,7 +156,7 @@ export const MsgStoreCode = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): MsgStoreCode {
|
||||
const message = { ...baseMsgStoreCode } as MsgStoreCode;
|
||||
const message = Object.create(baseMsgStoreCode) as MsgStoreCode;
|
||||
if (object.sender !== undefined && object.sender !== null) {
|
||||
message.sender = String(object.sender);
|
||||
} else {
|
||||
@ -241,7 +241,7 @@ export const MsgStoreCodeResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgStoreCodeResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseMsgStoreCodeResponse } as MsgStoreCodeResponse;
|
||||
const message = Object.create(baseMsgStoreCodeResponse) as MsgStoreCodeResponse;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -257,7 +257,7 @@ export const MsgStoreCodeResponse = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): MsgStoreCodeResponse {
|
||||
const message = { ...baseMsgStoreCodeResponse } as MsgStoreCodeResponse;
|
||||
const message = Object.create(baseMsgStoreCodeResponse) as MsgStoreCodeResponse;
|
||||
if (object.codeId !== undefined && object.codeId !== null) {
|
||||
message.codeId = Long.fromString(object.codeId);
|
||||
} else {
|
||||
@ -301,7 +301,7 @@ export const MsgInstantiateContract = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgInstantiateContract {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseMsgInstantiateContract } as MsgInstantiateContract;
|
||||
const message = Object.create(baseMsgInstantiateContract) as MsgInstantiateContract;
|
||||
message.initFunds = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -333,7 +333,7 @@ export const MsgInstantiateContract = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): MsgInstantiateContract {
|
||||
const message = { ...baseMsgInstantiateContract } as MsgInstantiateContract;
|
||||
const message = Object.create(baseMsgInstantiateContract) as MsgInstantiateContract;
|
||||
message.initFunds = [];
|
||||
if (object.sender !== undefined && object.sender !== null) {
|
||||
message.sender = String(object.sender);
|
||||
@ -430,7 +430,7 @@ export const MsgInstantiateContractResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgInstantiateContractResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseMsgInstantiateContractResponse } as MsgInstantiateContractResponse;
|
||||
const message = Object.create(baseMsgInstantiateContractResponse) as MsgInstantiateContractResponse;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -446,7 +446,7 @@ export const MsgInstantiateContractResponse = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): MsgInstantiateContractResponse {
|
||||
const message = { ...baseMsgInstantiateContractResponse } as MsgInstantiateContractResponse;
|
||||
const message = Object.create(baseMsgInstantiateContractResponse) as MsgInstantiateContractResponse;
|
||||
if (object.address !== undefined && object.address !== null) {
|
||||
message.address = String(object.address);
|
||||
} else {
|
||||
@ -488,7 +488,7 @@ export const MsgExecuteContract = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgExecuteContract {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseMsgExecuteContract } as MsgExecuteContract;
|
||||
const message = Object.create(baseMsgExecuteContract) as MsgExecuteContract;
|
||||
message.sentFunds = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -514,7 +514,7 @@ export const MsgExecuteContract = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): MsgExecuteContract {
|
||||
const message = { ...baseMsgExecuteContract } as MsgExecuteContract;
|
||||
const message = Object.create(baseMsgExecuteContract) as MsgExecuteContract;
|
||||
message.sentFunds = [];
|
||||
if (object.sender !== undefined && object.sender !== null) {
|
||||
message.sender = String(object.sender);
|
||||
@ -589,7 +589,7 @@ export const MsgExecuteContractResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgExecuteContractResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseMsgExecuteContractResponse } as MsgExecuteContractResponse;
|
||||
const message = Object.create(baseMsgExecuteContractResponse) as MsgExecuteContractResponse;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -605,7 +605,7 @@ export const MsgExecuteContractResponse = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): MsgExecuteContractResponse {
|
||||
const message = { ...baseMsgExecuteContractResponse } as MsgExecuteContractResponse;
|
||||
const message = Object.create(baseMsgExecuteContractResponse) as MsgExecuteContractResponse;
|
||||
if (object.data !== undefined && object.data !== null) {
|
||||
message.data = bytesFromBase64(object.data);
|
||||
}
|
||||
@ -644,7 +644,7 @@ export const MsgMigrateContract = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgMigrateContract {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseMsgMigrateContract } as MsgMigrateContract;
|
||||
const message = Object.create(baseMsgMigrateContract) as MsgMigrateContract;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -669,7 +669,7 @@ export const MsgMigrateContract = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): MsgMigrateContract {
|
||||
const message = { ...baseMsgMigrateContract } as MsgMigrateContract;
|
||||
const message = Object.create(baseMsgMigrateContract) as MsgMigrateContract;
|
||||
if (object.sender !== undefined && object.sender !== null) {
|
||||
message.sender = String(object.sender);
|
||||
} else {
|
||||
@ -740,7 +740,7 @@ export const MsgMigrateContractResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgMigrateContractResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseMsgMigrateContractResponse } as MsgMigrateContractResponse;
|
||||
const message = Object.create(baseMsgMigrateContractResponse) as MsgMigrateContractResponse;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -756,7 +756,7 @@ export const MsgMigrateContractResponse = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): MsgMigrateContractResponse {
|
||||
const message = { ...baseMsgMigrateContractResponse } as MsgMigrateContractResponse;
|
||||
const message = Object.create(baseMsgMigrateContractResponse) as MsgMigrateContractResponse;
|
||||
if (object.data !== undefined && object.data !== null) {
|
||||
message.data = bytesFromBase64(object.data);
|
||||
}
|
||||
@ -794,7 +794,7 @@ export const MsgUpdateAdmin = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateAdmin {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseMsgUpdateAdmin } as MsgUpdateAdmin;
|
||||
const message = Object.create(baseMsgUpdateAdmin) as MsgUpdateAdmin;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -816,7 +816,7 @@ export const MsgUpdateAdmin = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): MsgUpdateAdmin {
|
||||
const message = { ...baseMsgUpdateAdmin } as MsgUpdateAdmin;
|
||||
const message = Object.create(baseMsgUpdateAdmin) as MsgUpdateAdmin;
|
||||
if (object.sender !== undefined && object.sender !== null) {
|
||||
message.sender = String(object.sender);
|
||||
} else {
|
||||
@ -874,7 +874,7 @@ export const MsgUpdateAdminResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateAdminResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseMsgUpdateAdminResponse } as MsgUpdateAdminResponse;
|
||||
const message = Object.create(baseMsgUpdateAdminResponse) as MsgUpdateAdminResponse;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -887,7 +887,7 @@ export const MsgUpdateAdminResponse = {
|
||||
},
|
||||
|
||||
fromJSON(_: any): MsgUpdateAdminResponse {
|
||||
const message = { ...baseMsgUpdateAdminResponse } as MsgUpdateAdminResponse;
|
||||
const message = Object.create(baseMsgUpdateAdminResponse) as MsgUpdateAdminResponse;
|
||||
return message;
|
||||
},
|
||||
|
||||
@ -914,7 +914,7 @@ export const MsgClearAdmin = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgClearAdmin {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseMsgClearAdmin } as MsgClearAdmin;
|
||||
const message = Object.create(baseMsgClearAdmin) as MsgClearAdmin;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -933,7 +933,7 @@ export const MsgClearAdmin = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): MsgClearAdmin {
|
||||
const message = { ...baseMsgClearAdmin } as MsgClearAdmin;
|
||||
const message = Object.create(baseMsgClearAdmin) as MsgClearAdmin;
|
||||
if (object.sender !== undefined && object.sender !== null) {
|
||||
message.sender = String(object.sender);
|
||||
} else {
|
||||
@ -980,7 +980,7 @@ export const MsgClearAdminResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgClearAdminResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseMsgClearAdminResponse } as MsgClearAdminResponse;
|
||||
const message = Object.create(baseMsgClearAdminResponse) as MsgClearAdminResponse;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -993,7 +993,7 @@ export const MsgClearAdminResponse = {
|
||||
},
|
||||
|
||||
fromJSON(_: any): MsgClearAdminResponse {
|
||||
const message = { ...baseMsgClearAdminResponse } as MsgClearAdminResponse;
|
||||
const message = Object.create(baseMsgClearAdminResponse) as MsgClearAdminResponse;
|
||||
return message;
|
||||
},
|
||||
|
||||
|
@ -188,7 +188,7 @@ export const AccessTypeParam = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): AccessTypeParam {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseAccessTypeParam } as AccessTypeParam;
|
||||
const message = Object.create(baseAccessTypeParam) as AccessTypeParam;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -204,7 +204,7 @@ export const AccessTypeParam = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): AccessTypeParam {
|
||||
const message = { ...baseAccessTypeParam } as AccessTypeParam;
|
||||
const message = Object.create(baseAccessTypeParam) as AccessTypeParam;
|
||||
if (object.value !== undefined && object.value !== null) {
|
||||
message.value = accessTypeFromJSON(object.value);
|
||||
} else {
|
||||
@ -242,7 +242,7 @@ export const AccessConfig = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): AccessConfig {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseAccessConfig } as AccessConfig;
|
||||
const message = Object.create(baseAccessConfig) as AccessConfig;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -261,7 +261,7 @@ export const AccessConfig = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): AccessConfig {
|
||||
const message = { ...baseAccessConfig } as AccessConfig;
|
||||
const message = Object.create(baseAccessConfig) as AccessConfig;
|
||||
if (object.permission !== undefined && object.permission !== null) {
|
||||
message.permission = accessTypeFromJSON(object.permission);
|
||||
} else {
|
||||
@ -302,7 +302,7 @@ const baseParams: object = { instantiateDefaultPermission: 0, maxWasmCodeSize: L
|
||||
|
||||
export const Params = {
|
||||
encode(message: Params, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
if (message.codeUploadAccess !== undefined && message.codeUploadAccess !== undefined) {
|
||||
if (message.codeUploadAccess !== undefined) {
|
||||
AccessConfig.encode(message.codeUploadAccess, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
writer.uint32(16).int32(message.instantiateDefaultPermission);
|
||||
@ -313,7 +313,7 @@ export const Params = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): Params {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseParams } as Params;
|
||||
const message = Object.create(baseParams) as Params;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -335,7 +335,7 @@ export const Params = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): Params {
|
||||
const message = { ...baseParams } as Params;
|
||||
const message = Object.create(baseParams) as Params;
|
||||
if (object.codeUploadAccess !== undefined && object.codeUploadAccess !== null) {
|
||||
message.codeUploadAccess = AccessConfig.fromJSON(object.codeUploadAccess);
|
||||
} else {
|
||||
@ -396,7 +396,7 @@ export const CodeInfo = {
|
||||
writer.uint32(18).string(message.creator);
|
||||
writer.uint32(26).string(message.source);
|
||||
writer.uint32(34).string(message.builder);
|
||||
if (message.instantiateConfig !== undefined && message.instantiateConfig !== undefined) {
|
||||
if (message.instantiateConfig !== undefined) {
|
||||
AccessConfig.encode(message.instantiateConfig, writer.uint32(42).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -405,7 +405,7 @@ export const CodeInfo = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): CodeInfo {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseCodeInfo } as CodeInfo;
|
||||
const message = Object.create(baseCodeInfo) as CodeInfo;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -433,7 +433,7 @@ export const CodeInfo = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): CodeInfo {
|
||||
const message = { ...baseCodeInfo } as CodeInfo;
|
||||
const message = Object.create(baseCodeInfo) as CodeInfo;
|
||||
if (object.codeHash !== undefined && object.codeHash !== null) {
|
||||
message.codeHash = bytesFromBase64(object.codeHash);
|
||||
}
|
||||
@ -513,7 +513,7 @@ export const ContractInfo = {
|
||||
writer.uint32(18).string(message.creator);
|
||||
writer.uint32(26).string(message.admin);
|
||||
writer.uint32(34).string(message.label);
|
||||
if (message.created !== undefined && message.created !== undefined) {
|
||||
if (message.created !== undefined) {
|
||||
AbsoluteTxPosition.encode(message.created, writer.uint32(42).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -522,7 +522,7 @@ export const ContractInfo = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): ContractInfo {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseContractInfo } as ContractInfo;
|
||||
const message = Object.create(baseContractInfo) as ContractInfo;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -550,7 +550,7 @@ export const ContractInfo = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): ContractInfo {
|
||||
const message = { ...baseContractInfo } as ContractInfo;
|
||||
const message = Object.create(baseContractInfo) as ContractInfo;
|
||||
if (object.codeId !== undefined && object.codeId !== null) {
|
||||
message.codeId = Long.fromString(object.codeId);
|
||||
} else {
|
||||
@ -627,7 +627,7 @@ export const ContractCodeHistoryEntry = {
|
||||
encode(message: ContractCodeHistoryEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
writer.uint32(8).int32(message.operation);
|
||||
writer.uint32(16).uint64(message.codeId);
|
||||
if (message.updated !== undefined && message.updated !== undefined) {
|
||||
if (message.updated !== undefined) {
|
||||
AbsoluteTxPosition.encode(message.updated, writer.uint32(26).fork()).ldelim();
|
||||
}
|
||||
writer.uint32(34).bytes(message.msg);
|
||||
@ -637,7 +637,7 @@ export const ContractCodeHistoryEntry = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): ContractCodeHistoryEntry {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseContractCodeHistoryEntry } as ContractCodeHistoryEntry;
|
||||
const message = Object.create(baseContractCodeHistoryEntry) as ContractCodeHistoryEntry;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -662,7 +662,7 @@ export const ContractCodeHistoryEntry = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): ContractCodeHistoryEntry {
|
||||
const message = { ...baseContractCodeHistoryEntry } as ContractCodeHistoryEntry;
|
||||
const message = Object.create(baseContractCodeHistoryEntry) as ContractCodeHistoryEntry;
|
||||
if (object.operation !== undefined && object.operation !== null) {
|
||||
message.operation = contractCodeHistoryOperationTypeFromJSON(object.operation);
|
||||
} else {
|
||||
@ -734,7 +734,7 @@ export const AbsoluteTxPosition = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): AbsoluteTxPosition {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseAbsoluteTxPosition } as AbsoluteTxPosition;
|
||||
const message = Object.create(baseAbsoluteTxPosition) as AbsoluteTxPosition;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -753,7 +753,7 @@ export const AbsoluteTxPosition = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): AbsoluteTxPosition {
|
||||
const message = { ...baseAbsoluteTxPosition } as AbsoluteTxPosition;
|
||||
const message = Object.create(baseAbsoluteTxPosition) as AbsoluteTxPosition;
|
||||
if (object.blockHeight !== undefined && object.blockHeight !== null) {
|
||||
message.blockHeight = Long.fromString(object.blockHeight);
|
||||
} else {
|
||||
@ -802,7 +802,7 @@ export const Model = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): Model {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseModel } as Model;
|
||||
const message = Object.create(baseModel) as Model;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -821,7 +821,7 @@ export const Model = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): Model {
|
||||
const message = { ...baseModel } as Model;
|
||||
const message = Object.create(baseModel) as Model;
|
||||
if (object.key !== undefined && object.key !== null) {
|
||||
message.key = bytesFromBase64(object.key);
|
||||
}
|
||||
|
@ -90,7 +90,7 @@ export const Params = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): Params {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseParams } as Params;
|
||||
const message = Object.create(baseParams) as Params;
|
||||
message.sendEnabled = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -110,7 +110,7 @@ export const Params = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): Params {
|
||||
const message = { ...baseParams } as Params;
|
||||
const message = Object.create(baseParams) as Params;
|
||||
message.sendEnabled = [];
|
||||
if (object.sendEnabled !== undefined && object.sendEnabled !== null) {
|
||||
for (const e of object.sendEnabled) {
|
||||
@ -165,7 +165,7 @@ export const SendEnabled = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): SendEnabled {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseSendEnabled } as SendEnabled;
|
||||
const message = Object.create(baseSendEnabled) as SendEnabled;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -184,7 +184,7 @@ export const SendEnabled = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): SendEnabled {
|
||||
const message = { ...baseSendEnabled } as SendEnabled;
|
||||
const message = Object.create(baseSendEnabled) as SendEnabled;
|
||||
if (object.denom !== undefined && object.denom !== null) {
|
||||
message.denom = String(object.denom);
|
||||
} else {
|
||||
@ -235,7 +235,7 @@ export const Input = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): Input {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseInput } as Input;
|
||||
const message = Object.create(baseInput) as Input;
|
||||
message.coins = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -255,7 +255,7 @@ export const Input = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): Input {
|
||||
const message = { ...baseInput } as Input;
|
||||
const message = Object.create(baseInput) as Input;
|
||||
message.coins = [];
|
||||
if (object.address !== undefined && object.address !== null) {
|
||||
message.address = String(object.address);
|
||||
@ -312,7 +312,7 @@ export const Output = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): Output {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseOutput } as Output;
|
||||
const message = Object.create(baseOutput) as Output;
|
||||
message.coins = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -332,7 +332,7 @@ export const Output = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): Output {
|
||||
const message = { ...baseOutput } as Output;
|
||||
const message = Object.create(baseOutput) as Output;
|
||||
message.coins = [];
|
||||
if (object.address !== undefined && object.address !== null) {
|
||||
message.address = String(object.address);
|
||||
@ -388,7 +388,7 @@ export const Supply = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): Supply {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseSupply } as Supply;
|
||||
const message = Object.create(baseSupply) as Supply;
|
||||
message.total = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -405,7 +405,7 @@ export const Supply = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): Supply {
|
||||
const message = { ...baseSupply } as Supply;
|
||||
const message = Object.create(baseSupply) as Supply;
|
||||
message.total = [];
|
||||
if (object.total !== undefined && object.total !== null) {
|
||||
for (const e of object.total) {
|
||||
@ -452,7 +452,7 @@ export const DenomUnit = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): DenomUnit {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseDenomUnit } as DenomUnit;
|
||||
const message = Object.create(baseDenomUnit) as DenomUnit;
|
||||
message.aliases = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -475,7 +475,7 @@ export const DenomUnit = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): DenomUnit {
|
||||
const message = { ...baseDenomUnit } as DenomUnit;
|
||||
const message = Object.create(baseDenomUnit) as DenomUnit;
|
||||
message.aliases = [];
|
||||
if (object.denom !== undefined && object.denom !== null) {
|
||||
message.denom = String(object.denom);
|
||||
@ -545,7 +545,7 @@ export const Metadata = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): Metadata {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseMetadata } as Metadata;
|
||||
const message = Object.create(baseMetadata) as Metadata;
|
||||
message.denomUnits = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -571,7 +571,7 @@ export const Metadata = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): Metadata {
|
||||
const message = { ...baseMetadata } as Metadata;
|
||||
const message = Object.create(baseMetadata) as Metadata;
|
||||
message.denomUnits = [];
|
||||
if (object.description !== undefined && object.description !== null) {
|
||||
message.description = String(object.description);
|
||||
|
@ -40,7 +40,7 @@ export const MsgSend = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgSend {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseMsgSend } as MsgSend;
|
||||
const message = Object.create(baseMsgSend) as MsgSend;
|
||||
message.amount = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -63,7 +63,7 @@ export const MsgSend = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): MsgSend {
|
||||
const message = { ...baseMsgSend } as MsgSend;
|
||||
const message = Object.create(baseMsgSend) as MsgSend;
|
||||
message.amount = [];
|
||||
if (object.fromAddress !== undefined && object.fromAddress !== null) {
|
||||
message.fromAddress = String(object.fromAddress);
|
||||
@ -127,7 +127,7 @@ export const MsgSendResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgSendResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseMsgSendResponse } as MsgSendResponse;
|
||||
const message = Object.create(baseMsgSendResponse) as MsgSendResponse;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -140,7 +140,7 @@ export const MsgSendResponse = {
|
||||
},
|
||||
|
||||
fromJSON(_: any): MsgSendResponse {
|
||||
const message = { ...baseMsgSendResponse } as MsgSendResponse;
|
||||
const message = Object.create(baseMsgSendResponse) as MsgSendResponse;
|
||||
return message;
|
||||
},
|
||||
|
||||
@ -171,7 +171,7 @@ export const MsgMultiSend = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgMultiSend {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseMsgMultiSend } as MsgMultiSend;
|
||||
const message = Object.create(baseMsgMultiSend) as MsgMultiSend;
|
||||
message.inputs = [];
|
||||
message.outputs = [];
|
||||
while (reader.pos < end) {
|
||||
@ -192,7 +192,7 @@ export const MsgMultiSend = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): MsgMultiSend {
|
||||
const message = { ...baseMsgMultiSend } as MsgMultiSend;
|
||||
const message = Object.create(baseMsgMultiSend) as MsgMultiSend;
|
||||
message.inputs = [];
|
||||
message.outputs = [];
|
||||
if (object.inputs !== undefined && object.inputs !== null) {
|
||||
@ -251,7 +251,7 @@ export const MsgMultiSendResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgMultiSendResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseMsgMultiSendResponse } as MsgMultiSendResponse;
|
||||
const message = Object.create(baseMsgMultiSendResponse) as MsgMultiSendResponse;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -264,7 +264,7 @@ export const MsgMultiSendResponse = {
|
||||
},
|
||||
|
||||
fromJSON(_: any): MsgMultiSendResponse {
|
||||
const message = { ...baseMsgMultiSendResponse } as MsgMultiSendResponse;
|
||||
const message = Object.create(baseMsgMultiSendResponse) as MsgMultiSendResponse;
|
||||
return message;
|
||||
},
|
||||
|
||||
|
@ -48,7 +48,7 @@ export const Coin = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): Coin {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseCoin } as Coin;
|
||||
const message = Object.create(baseCoin) as Coin;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -67,7 +67,7 @@ export const Coin = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): Coin {
|
||||
const message = { ...baseCoin } as Coin;
|
||||
const message = Object.create(baseCoin) as Coin;
|
||||
if (object.denom !== undefined && object.denom !== null) {
|
||||
message.denom = String(object.denom);
|
||||
} else {
|
||||
@ -116,7 +116,7 @@ export const DecCoin = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): DecCoin {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseDecCoin } as DecCoin;
|
||||
const message = Object.create(baseDecCoin) as DecCoin;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -135,7 +135,7 @@ export const DecCoin = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): DecCoin {
|
||||
const message = { ...baseDecCoin } as DecCoin;
|
||||
const message = Object.create(baseDecCoin) as DecCoin;
|
||||
if (object.denom !== undefined && object.denom !== null) {
|
||||
message.denom = String(object.denom);
|
||||
} else {
|
||||
@ -183,7 +183,7 @@ export const IntProto = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): IntProto {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseIntProto } as IntProto;
|
||||
const message = Object.create(baseIntProto) as IntProto;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -199,7 +199,7 @@ export const IntProto = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): IntProto {
|
||||
const message = { ...baseIntProto } as IntProto;
|
||||
const message = Object.create(baseIntProto) as IntProto;
|
||||
if (object.int !== undefined && object.int !== null) {
|
||||
message.int = String(object.int);
|
||||
} else {
|
||||
@ -236,7 +236,7 @@ export const DecProto = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): DecProto {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseDecProto } as DecProto;
|
||||
const message = Object.create(baseDecProto) as DecProto;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -252,7 +252,7 @@ export const DecProto = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): DecProto {
|
||||
const message = { ...baseDecProto } as DecProto;
|
||||
const message = Object.create(baseDecProto) as DecProto;
|
||||
if (object.dec !== undefined && object.dec !== null) {
|
||||
message.dec = String(object.dec);
|
||||
} else {
|
||||
|
@ -37,7 +37,7 @@ export const MultiSignature = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): MultiSignature {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseMultiSignature } as MultiSignature;
|
||||
const message = Object.create(baseMultiSignature) as MultiSignature;
|
||||
message.signatures = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -54,7 +54,7 @@ export const MultiSignature = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): MultiSignature {
|
||||
const message = { ...baseMultiSignature } as MultiSignature;
|
||||
const message = Object.create(baseMultiSignature) as MultiSignature;
|
||||
message.signatures = [];
|
||||
if (object.signatures !== undefined && object.signatures !== null) {
|
||||
for (const e of object.signatures) {
|
||||
@ -98,7 +98,7 @@ export const CompactBitArray = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): CompactBitArray {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseCompactBitArray } as CompactBitArray;
|
||||
const message = Object.create(baseCompactBitArray) as CompactBitArray;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -117,7 +117,7 @@ export const CompactBitArray = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): CompactBitArray {
|
||||
const message = { ...baseCompactBitArray } as CompactBitArray;
|
||||
const message = Object.create(baseCompactBitArray) as CompactBitArray;
|
||||
if (object.extraBitsStored !== undefined && object.extraBitsStored !== null) {
|
||||
message.extraBitsStored = Number(object.extraBitsStored);
|
||||
} else {
|
||||
|
@ -31,7 +31,7 @@ export const PubKey = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): PubKey {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...basePubKey } as PubKey;
|
||||
const message = Object.create(basePubKey) as PubKey;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -47,7 +47,7 @@ export const PubKey = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): PubKey {
|
||||
const message = { ...basePubKey } as PubKey;
|
||||
const message = Object.create(basePubKey) as PubKey;
|
||||
if (object.key !== undefined && object.key !== null) {
|
||||
message.key = bytesFromBase64(object.key);
|
||||
}
|
||||
@ -83,7 +83,7 @@ export const PrivKey = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): PrivKey {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...basePrivKey } as PrivKey;
|
||||
const message = Object.create(basePrivKey) as PrivKey;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -99,7 +99,7 @@ export const PrivKey = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): PrivKey {
|
||||
const message = { ...basePrivKey } as PrivKey;
|
||||
const message = Object.create(basePrivKey) as PrivKey;
|
||||
if (object.key !== undefined && object.key !== null) {
|
||||
message.key = bytesFromBase64(object.key);
|
||||
}
|
||||
|
@ -129,7 +129,7 @@ export const SignatureDescriptors = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): SignatureDescriptors {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseSignatureDescriptors } as SignatureDescriptors;
|
||||
const message = Object.create(baseSignatureDescriptors) as SignatureDescriptors;
|
||||
message.signatures = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -146,7 +146,7 @@ export const SignatureDescriptors = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): SignatureDescriptors {
|
||||
const message = { ...baseSignatureDescriptors } as SignatureDescriptors;
|
||||
const message = Object.create(baseSignatureDescriptors) as SignatureDescriptors;
|
||||
message.signatures = [];
|
||||
if (object.signatures !== undefined && object.signatures !== null) {
|
||||
for (const e of object.signatures) {
|
||||
@ -182,10 +182,10 @@ const baseSignatureDescriptor: object = { sequence: Long.UZERO };
|
||||
|
||||
export const SignatureDescriptor = {
|
||||
encode(message: SignatureDescriptor, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
if (message.publicKey !== undefined && message.publicKey !== undefined) {
|
||||
if (message.publicKey !== undefined) {
|
||||
Any.encode(message.publicKey, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
if (message.data !== undefined && message.data !== undefined) {
|
||||
if (message.data !== undefined) {
|
||||
SignatureDescriptor_Data.encode(message.data, writer.uint32(18).fork()).ldelim();
|
||||
}
|
||||
writer.uint32(24).uint64(message.sequence);
|
||||
@ -195,7 +195,7 @@ export const SignatureDescriptor = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): SignatureDescriptor {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseSignatureDescriptor } as SignatureDescriptor;
|
||||
const message = Object.create(baseSignatureDescriptor) as SignatureDescriptor;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -217,7 +217,7 @@ export const SignatureDescriptor = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): SignatureDescriptor {
|
||||
const message = { ...baseSignatureDescriptor } as SignatureDescriptor;
|
||||
const message = Object.create(baseSignatureDescriptor) as SignatureDescriptor;
|
||||
if (object.publicKey !== undefined && object.publicKey !== null) {
|
||||
message.publicKey = Any.fromJSON(object.publicKey);
|
||||
} else {
|
||||
@ -283,7 +283,7 @@ export const SignatureDescriptor_Data = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): SignatureDescriptor_Data {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseSignatureDescriptor_Data } as SignatureDescriptor_Data;
|
||||
const message = Object.create(baseSignatureDescriptor_Data) as SignatureDescriptor_Data;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -302,7 +302,7 @@ export const SignatureDescriptor_Data = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): SignatureDescriptor_Data {
|
||||
const message = { ...baseSignatureDescriptor_Data } as SignatureDescriptor_Data;
|
||||
const message = Object.create(baseSignatureDescriptor_Data) as SignatureDescriptor_Data;
|
||||
if (object.single !== undefined && object.single !== null) {
|
||||
message.single = SignatureDescriptor_Data_Single.fromJSON(object.single);
|
||||
} else {
|
||||
@ -353,7 +353,7 @@ export const SignatureDescriptor_Data_Single = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): SignatureDescriptor_Data_Single {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseSignatureDescriptor_Data_Single } as SignatureDescriptor_Data_Single;
|
||||
const message = Object.create(baseSignatureDescriptor_Data_Single) as SignatureDescriptor_Data_Single;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -372,7 +372,7 @@ export const SignatureDescriptor_Data_Single = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): SignatureDescriptor_Data_Single {
|
||||
const message = { ...baseSignatureDescriptor_Data_Single } as SignatureDescriptor_Data_Single;
|
||||
const message = Object.create(baseSignatureDescriptor_Data_Single) as SignatureDescriptor_Data_Single;
|
||||
if (object.mode !== undefined && object.mode !== null) {
|
||||
message.mode = signModeFromJSON(object.mode);
|
||||
} else {
|
||||
@ -414,7 +414,7 @@ const baseSignatureDescriptor_Data_Multi: object = {};
|
||||
|
||||
export const SignatureDescriptor_Data_Multi = {
|
||||
encode(message: SignatureDescriptor_Data_Multi, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
if (message.bitarray !== undefined && message.bitarray !== undefined) {
|
||||
if (message.bitarray !== undefined) {
|
||||
CompactBitArray.encode(message.bitarray, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
for (const v of message.signatures) {
|
||||
@ -426,7 +426,7 @@ export const SignatureDescriptor_Data_Multi = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): SignatureDescriptor_Data_Multi {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseSignatureDescriptor_Data_Multi } as SignatureDescriptor_Data_Multi;
|
||||
const message = Object.create(baseSignatureDescriptor_Data_Multi) as SignatureDescriptor_Data_Multi;
|
||||
message.signatures = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -446,7 +446,7 @@ export const SignatureDescriptor_Data_Multi = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): SignatureDescriptor_Data_Multi {
|
||||
const message = { ...baseSignatureDescriptor_Data_Multi } as SignatureDescriptor_Data_Multi;
|
||||
const message = Object.create(baseSignatureDescriptor_Data_Multi) as SignatureDescriptor_Data_Multi;
|
||||
message.signatures = [];
|
||||
if (object.bitarray !== undefined && object.bitarray !== null) {
|
||||
message.bitarray = CompactBitArray.fromJSON(object.bitarray);
|
||||
|
@ -211,10 +211,10 @@ const baseTx: object = {};
|
||||
|
||||
export const Tx = {
|
||||
encode(message: Tx, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
if (message.body !== undefined && message.body !== undefined) {
|
||||
if (message.body !== undefined) {
|
||||
TxBody.encode(message.body, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
if (message.authInfo !== undefined && message.authInfo !== undefined) {
|
||||
if (message.authInfo !== undefined) {
|
||||
AuthInfo.encode(message.authInfo, writer.uint32(18).fork()).ldelim();
|
||||
}
|
||||
for (const v of message.signatures) {
|
||||
@ -226,7 +226,7 @@ export const Tx = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): Tx {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseTx } as Tx;
|
||||
const message = Object.create(baseTx) as Tx;
|
||||
message.signatures = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -249,7 +249,7 @@ export const Tx = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): Tx {
|
||||
const message = { ...baseTx } as Tx;
|
||||
const message = Object.create(baseTx) as Tx;
|
||||
message.signatures = [];
|
||||
if (object.body !== undefined && object.body !== null) {
|
||||
message.body = TxBody.fromJSON(object.body);
|
||||
@ -319,7 +319,7 @@ export const TxRaw = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): TxRaw {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseTxRaw } as TxRaw;
|
||||
const message = Object.create(baseTxRaw) as TxRaw;
|
||||
message.signatures = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -342,7 +342,7 @@ export const TxRaw = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): TxRaw {
|
||||
const message = { ...baseTxRaw } as TxRaw;
|
||||
const message = Object.create(baseTxRaw) as TxRaw;
|
||||
message.signatures = [];
|
||||
if (object.bodyBytes !== undefined && object.bodyBytes !== null) {
|
||||
message.bodyBytes = bytesFromBase64(object.bodyBytes);
|
||||
@ -412,7 +412,7 @@ export const SignDoc = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): SignDoc {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseSignDoc } as SignDoc;
|
||||
const message = Object.create(baseSignDoc) as SignDoc;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -437,7 +437,7 @@ export const SignDoc = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): SignDoc {
|
||||
const message = { ...baseSignDoc } as SignDoc;
|
||||
const message = Object.create(baseSignDoc) as SignDoc;
|
||||
if (object.bodyBytes !== undefined && object.bodyBytes !== null) {
|
||||
message.bodyBytes = bytesFromBase64(object.bodyBytes);
|
||||
}
|
||||
@ -520,7 +520,7 @@ export const TxBody = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): TxBody {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseTxBody } as TxBody;
|
||||
const message = Object.create(baseTxBody) as TxBody;
|
||||
message.messages = [];
|
||||
message.extensionOptions = [];
|
||||
message.nonCriticalExtensionOptions = [];
|
||||
@ -551,7 +551,7 @@ export const TxBody = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): TxBody {
|
||||
const message = { ...baseTxBody } as TxBody;
|
||||
const message = Object.create(baseTxBody) as TxBody;
|
||||
message.messages = [];
|
||||
message.extensionOptions = [];
|
||||
message.nonCriticalExtensionOptions = [];
|
||||
@ -649,7 +649,7 @@ export const AuthInfo = {
|
||||
for (const v of message.signerInfos) {
|
||||
SignerInfo.encode(v!, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
if (message.fee !== undefined && message.fee !== undefined) {
|
||||
if (message.fee !== undefined) {
|
||||
Fee.encode(message.fee, writer.uint32(18).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -658,7 +658,7 @@ export const AuthInfo = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): AuthInfo {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseAuthInfo } as AuthInfo;
|
||||
const message = Object.create(baseAuthInfo) as AuthInfo;
|
||||
message.signerInfos = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -678,7 +678,7 @@ export const AuthInfo = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): AuthInfo {
|
||||
const message = { ...baseAuthInfo } as AuthInfo;
|
||||
const message = Object.create(baseAuthInfo) as AuthInfo;
|
||||
message.signerInfos = [];
|
||||
if (object.signerInfos !== undefined && object.signerInfos !== null) {
|
||||
for (const e of object.signerInfos) {
|
||||
@ -725,10 +725,10 @@ const baseSignerInfo: object = { sequence: Long.UZERO };
|
||||
|
||||
export const SignerInfo = {
|
||||
encode(message: SignerInfo, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
if (message.publicKey !== undefined && message.publicKey !== undefined) {
|
||||
if (message.publicKey !== undefined) {
|
||||
Any.encode(message.publicKey, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
if (message.modeInfo !== undefined && message.modeInfo !== undefined) {
|
||||
if (message.modeInfo !== undefined) {
|
||||
ModeInfo.encode(message.modeInfo, writer.uint32(18).fork()).ldelim();
|
||||
}
|
||||
writer.uint32(24).uint64(message.sequence);
|
||||
@ -738,7 +738,7 @@ export const SignerInfo = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): SignerInfo {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseSignerInfo } as SignerInfo;
|
||||
const message = Object.create(baseSignerInfo) as SignerInfo;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -760,7 +760,7 @@ export const SignerInfo = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): SignerInfo {
|
||||
const message = { ...baseSignerInfo } as SignerInfo;
|
||||
const message = Object.create(baseSignerInfo) as SignerInfo;
|
||||
if (object.publicKey !== undefined && object.publicKey !== null) {
|
||||
message.publicKey = Any.fromJSON(object.publicKey);
|
||||
} else {
|
||||
@ -826,7 +826,7 @@ export const ModeInfo = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): ModeInfo {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseModeInfo } as ModeInfo;
|
||||
const message = Object.create(baseModeInfo) as ModeInfo;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -845,7 +845,7 @@ export const ModeInfo = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): ModeInfo {
|
||||
const message = { ...baseModeInfo } as ModeInfo;
|
||||
const message = Object.create(baseModeInfo) as ModeInfo;
|
||||
if (object.single !== undefined && object.single !== null) {
|
||||
message.single = ModeInfo_Single.fromJSON(object.single);
|
||||
} else {
|
||||
@ -895,7 +895,7 @@ export const ModeInfo_Single = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): ModeInfo_Single {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseModeInfo_Single } as ModeInfo_Single;
|
||||
const message = Object.create(baseModeInfo_Single) as ModeInfo_Single;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -911,7 +911,7 @@ export const ModeInfo_Single = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): ModeInfo_Single {
|
||||
const message = { ...baseModeInfo_Single } as ModeInfo_Single;
|
||||
const message = Object.create(baseModeInfo_Single) as ModeInfo_Single;
|
||||
if (object.mode !== undefined && object.mode !== null) {
|
||||
message.mode = signModeFromJSON(object.mode);
|
||||
} else {
|
||||
@ -941,7 +941,7 @@ const baseModeInfo_Multi: object = {};
|
||||
|
||||
export const ModeInfo_Multi = {
|
||||
encode(message: ModeInfo_Multi, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
if (message.bitarray !== undefined && message.bitarray !== undefined) {
|
||||
if (message.bitarray !== undefined) {
|
||||
CompactBitArray.encode(message.bitarray, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
for (const v of message.modeInfos) {
|
||||
@ -953,7 +953,7 @@ export const ModeInfo_Multi = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): ModeInfo_Multi {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseModeInfo_Multi } as ModeInfo_Multi;
|
||||
const message = Object.create(baseModeInfo_Multi) as ModeInfo_Multi;
|
||||
message.modeInfos = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -973,7 +973,7 @@ export const ModeInfo_Multi = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): ModeInfo_Multi {
|
||||
const message = { ...baseModeInfo_Multi } as ModeInfo_Multi;
|
||||
const message = Object.create(baseModeInfo_Multi) as ModeInfo_Multi;
|
||||
message.modeInfos = [];
|
||||
if (object.bitarray !== undefined && object.bitarray !== null) {
|
||||
message.bitarray = CompactBitArray.fromJSON(object.bitarray);
|
||||
@ -1033,7 +1033,7 @@ export const Fee = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): Fee {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseFee } as Fee;
|
||||
const message = Object.create(baseFee) as Fee;
|
||||
message.amount = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -1059,7 +1059,7 @@ export const Fee = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): Fee {
|
||||
const message = { ...baseFee } as Fee;
|
||||
const message = Object.create(baseFee) as Fee;
|
||||
message.amount = [];
|
||||
if (object.amount !== undefined && object.amount !== null) {
|
||||
for (const e of object.amount) {
|
||||
|
@ -132,7 +132,7 @@ export const Any = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): Any {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseAny } as Any;
|
||||
const message = Object.create(baseAny) as Any;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -151,7 +151,7 @@ export const Any = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): Any {
|
||||
const message = { ...baseAny } as Any;
|
||||
const message = Object.create(baseAny) as Any;
|
||||
if (object.typeUrl !== undefined && object.typeUrl !== null) {
|
||||
message.typeUrl = String(object.typeUrl);
|
||||
} else {
|
||||
|
@ -1125,7 +1125,7 @@ export const FileDescriptorSet = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): FileDescriptorSet {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseFileDescriptorSet } as FileDescriptorSet;
|
||||
const message = Object.create(baseFileDescriptorSet) as FileDescriptorSet;
|
||||
message.file = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -1142,7 +1142,7 @@ export const FileDescriptorSet = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): FileDescriptorSet {
|
||||
const message = { ...baseFileDescriptorSet } as FileDescriptorSet;
|
||||
const message = Object.create(baseFileDescriptorSet) as FileDescriptorSet;
|
||||
message.file = [];
|
||||
if (object.file !== undefined && object.file !== null) {
|
||||
for (const e of object.file) {
|
||||
@ -1212,10 +1212,10 @@ export const FileDescriptorProto = {
|
||||
for (const v of message.extension) {
|
||||
FieldDescriptorProto.encode(v!, writer.uint32(58).fork()).ldelim();
|
||||
}
|
||||
if (message.options !== undefined && message.options !== undefined) {
|
||||
if (message.options !== undefined) {
|
||||
FileOptions.encode(message.options, writer.uint32(66).fork()).ldelim();
|
||||
}
|
||||
if (message.sourceCodeInfo !== undefined && message.sourceCodeInfo !== undefined) {
|
||||
if (message.sourceCodeInfo !== undefined) {
|
||||
SourceCodeInfo.encode(message.sourceCodeInfo, writer.uint32(74).fork()).ldelim();
|
||||
}
|
||||
writer.uint32(98).string(message.syntax);
|
||||
@ -1225,7 +1225,7 @@ export const FileDescriptorProto = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): FileDescriptorProto {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseFileDescriptorProto } as FileDescriptorProto;
|
||||
const message = Object.create(baseFileDescriptorProto) as FileDescriptorProto;
|
||||
message.dependency = [];
|
||||
message.publicDependency = [];
|
||||
message.weakDependency = [];
|
||||
@ -1295,7 +1295,7 @@ export const FileDescriptorProto = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): FileDescriptorProto {
|
||||
const message = { ...baseFileDescriptorProto } as FileDescriptorProto;
|
||||
const message = Object.create(baseFileDescriptorProto) as FileDescriptorProto;
|
||||
message.dependency = [];
|
||||
message.publicDependency = [];
|
||||
message.weakDependency = [];
|
||||
@ -1511,7 +1511,7 @@ export const DescriptorProto = {
|
||||
for (const v of message.oneofDecl) {
|
||||
OneofDescriptorProto.encode(v!, writer.uint32(66).fork()).ldelim();
|
||||
}
|
||||
if (message.options !== undefined && message.options !== undefined) {
|
||||
if (message.options !== undefined) {
|
||||
MessageOptions.encode(message.options, writer.uint32(58).fork()).ldelim();
|
||||
}
|
||||
for (const v of message.reservedRange) {
|
||||
@ -1526,7 +1526,7 @@ export const DescriptorProto = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): DescriptorProto {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseDescriptorProto } as DescriptorProto;
|
||||
const message = Object.create(baseDescriptorProto) as DescriptorProto;
|
||||
message.field = [];
|
||||
message.extension = [];
|
||||
message.nestedType = [];
|
||||
@ -1577,7 +1577,7 @@ export const DescriptorProto = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): DescriptorProto {
|
||||
const message = { ...baseDescriptorProto } as DescriptorProto;
|
||||
const message = Object.create(baseDescriptorProto) as DescriptorProto;
|
||||
message.field = [];
|
||||
message.extension = [];
|
||||
message.nestedType = [];
|
||||
@ -1761,7 +1761,7 @@ export const DescriptorProto_ExtensionRange = {
|
||||
encode(message: DescriptorProto_ExtensionRange, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
writer.uint32(8).int32(message.start);
|
||||
writer.uint32(16).int32(message.end);
|
||||
if (message.options !== undefined && message.options !== undefined) {
|
||||
if (message.options !== undefined) {
|
||||
ExtensionRangeOptions.encode(message.options, writer.uint32(26).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -1770,7 +1770,7 @@ export const DescriptorProto_ExtensionRange = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): DescriptorProto_ExtensionRange {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseDescriptorProto_ExtensionRange } as DescriptorProto_ExtensionRange;
|
||||
const message = Object.create(baseDescriptorProto_ExtensionRange) as DescriptorProto_ExtensionRange;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -1792,7 +1792,7 @@ export const DescriptorProto_ExtensionRange = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): DescriptorProto_ExtensionRange {
|
||||
const message = { ...baseDescriptorProto_ExtensionRange } as DescriptorProto_ExtensionRange;
|
||||
const message = Object.create(baseDescriptorProto_ExtensionRange) as DescriptorProto_ExtensionRange;
|
||||
if (object.start !== undefined && object.start !== null) {
|
||||
message.start = Number(object.start);
|
||||
} else {
|
||||
@ -1853,7 +1853,7 @@ export const DescriptorProto_ReservedRange = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): DescriptorProto_ReservedRange {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseDescriptorProto_ReservedRange } as DescriptorProto_ReservedRange;
|
||||
const message = Object.create(baseDescriptorProto_ReservedRange) as DescriptorProto_ReservedRange;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -1872,7 +1872,7 @@ export const DescriptorProto_ReservedRange = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): DescriptorProto_ReservedRange {
|
||||
const message = { ...baseDescriptorProto_ReservedRange } as DescriptorProto_ReservedRange;
|
||||
const message = Object.create(baseDescriptorProto_ReservedRange) as DescriptorProto_ReservedRange;
|
||||
if (object.start !== undefined && object.start !== null) {
|
||||
message.start = Number(object.start);
|
||||
} else {
|
||||
@ -1922,7 +1922,7 @@ export const ExtensionRangeOptions = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): ExtensionRangeOptions {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseExtensionRangeOptions } as ExtensionRangeOptions;
|
||||
const message = Object.create(baseExtensionRangeOptions) as ExtensionRangeOptions;
|
||||
message.uninterpretedOption = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -1939,7 +1939,7 @@ export const ExtensionRangeOptions = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): ExtensionRangeOptions {
|
||||
const message = { ...baseExtensionRangeOptions } as ExtensionRangeOptions;
|
||||
const message = Object.create(baseExtensionRangeOptions) as ExtensionRangeOptions;
|
||||
message.uninterpretedOption = [];
|
||||
if (object.uninterpretedOption !== undefined && object.uninterpretedOption !== null) {
|
||||
for (const e of object.uninterpretedOption) {
|
||||
@ -1997,7 +1997,7 @@ export const FieldDescriptorProto = {
|
||||
writer.uint32(58).string(message.defaultValue);
|
||||
writer.uint32(72).int32(message.oneofIndex);
|
||||
writer.uint32(82).string(message.jsonName);
|
||||
if (message.options !== undefined && message.options !== undefined) {
|
||||
if (message.options !== undefined) {
|
||||
FieldOptions.encode(message.options, writer.uint32(66).fork()).ldelim();
|
||||
}
|
||||
writer.uint32(136).bool(message.proto3Optional);
|
||||
@ -2007,7 +2007,7 @@ export const FieldDescriptorProto = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): FieldDescriptorProto {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseFieldDescriptorProto } as FieldDescriptorProto;
|
||||
const message = Object.create(baseFieldDescriptorProto) as FieldDescriptorProto;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -2053,7 +2053,7 @@ export const FieldDescriptorProto = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): FieldDescriptorProto {
|
||||
const message = { ...baseFieldDescriptorProto } as FieldDescriptorProto;
|
||||
const message = Object.create(baseFieldDescriptorProto) as FieldDescriptorProto;
|
||||
if (object.name !== undefined && object.name !== null) {
|
||||
message.name = String(object.name);
|
||||
} else {
|
||||
@ -2195,7 +2195,7 @@ const baseOneofDescriptorProto: object = { name: "" };
|
||||
export const OneofDescriptorProto = {
|
||||
encode(message: OneofDescriptorProto, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
writer.uint32(10).string(message.name);
|
||||
if (message.options !== undefined && message.options !== undefined) {
|
||||
if (message.options !== undefined) {
|
||||
OneofOptions.encode(message.options, writer.uint32(18).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -2204,7 +2204,7 @@ export const OneofDescriptorProto = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): OneofDescriptorProto {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseOneofDescriptorProto } as OneofDescriptorProto;
|
||||
const message = Object.create(baseOneofDescriptorProto) as OneofDescriptorProto;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -2223,7 +2223,7 @@ export const OneofDescriptorProto = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): OneofDescriptorProto {
|
||||
const message = { ...baseOneofDescriptorProto } as OneofDescriptorProto;
|
||||
const message = Object.create(baseOneofDescriptorProto) as OneofDescriptorProto;
|
||||
if (object.name !== undefined && object.name !== null) {
|
||||
message.name = String(object.name);
|
||||
} else {
|
||||
@ -2269,7 +2269,7 @@ export const EnumDescriptorProto = {
|
||||
for (const v of message.value) {
|
||||
EnumValueDescriptorProto.encode(v!, writer.uint32(18).fork()).ldelim();
|
||||
}
|
||||
if (message.options !== undefined && message.options !== undefined) {
|
||||
if (message.options !== undefined) {
|
||||
EnumOptions.encode(message.options, writer.uint32(26).fork()).ldelim();
|
||||
}
|
||||
for (const v of message.reservedRange) {
|
||||
@ -2284,7 +2284,7 @@ export const EnumDescriptorProto = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): EnumDescriptorProto {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseEnumDescriptorProto } as EnumDescriptorProto;
|
||||
const message = Object.create(baseEnumDescriptorProto) as EnumDescriptorProto;
|
||||
message.value = [];
|
||||
message.reservedRange = [];
|
||||
message.reservedName = [];
|
||||
@ -2315,7 +2315,7 @@ export const EnumDescriptorProto = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): EnumDescriptorProto {
|
||||
const message = { ...baseEnumDescriptorProto } as EnumDescriptorProto;
|
||||
const message = Object.create(baseEnumDescriptorProto) as EnumDescriptorProto;
|
||||
message.value = [];
|
||||
message.reservedRange = [];
|
||||
message.reservedName = [];
|
||||
@ -2421,7 +2421,9 @@ export const EnumDescriptorProto_EnumReservedRange = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): EnumDescriptorProto_EnumReservedRange {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseEnumDescriptorProto_EnumReservedRange } as EnumDescriptorProto_EnumReservedRange;
|
||||
const message = Object.create(
|
||||
baseEnumDescriptorProto_EnumReservedRange,
|
||||
) as EnumDescriptorProto_EnumReservedRange;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -2440,7 +2442,9 @@ export const EnumDescriptorProto_EnumReservedRange = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): EnumDescriptorProto_EnumReservedRange {
|
||||
const message = { ...baseEnumDescriptorProto_EnumReservedRange } as EnumDescriptorProto_EnumReservedRange;
|
||||
const message = Object.create(
|
||||
baseEnumDescriptorProto_EnumReservedRange,
|
||||
) as EnumDescriptorProto_EnumReservedRange;
|
||||
if (object.start !== undefined && object.start !== null) {
|
||||
message.start = Number(object.start);
|
||||
} else {
|
||||
@ -2485,7 +2489,7 @@ export const EnumValueDescriptorProto = {
|
||||
encode(message: EnumValueDescriptorProto, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
writer.uint32(10).string(message.name);
|
||||
writer.uint32(16).int32(message.number);
|
||||
if (message.options !== undefined && message.options !== undefined) {
|
||||
if (message.options !== undefined) {
|
||||
EnumValueOptions.encode(message.options, writer.uint32(26).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -2494,7 +2498,7 @@ export const EnumValueDescriptorProto = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): EnumValueDescriptorProto {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseEnumValueDescriptorProto } as EnumValueDescriptorProto;
|
||||
const message = Object.create(baseEnumValueDescriptorProto) as EnumValueDescriptorProto;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -2516,7 +2520,7 @@ export const EnumValueDescriptorProto = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): EnumValueDescriptorProto {
|
||||
const message = { ...baseEnumValueDescriptorProto } as EnumValueDescriptorProto;
|
||||
const message = Object.create(baseEnumValueDescriptorProto) as EnumValueDescriptorProto;
|
||||
if (object.name !== undefined && object.name !== null) {
|
||||
message.name = String(object.name);
|
||||
} else {
|
||||
@ -2573,7 +2577,7 @@ export const ServiceDescriptorProto = {
|
||||
for (const v of message.method) {
|
||||
MethodDescriptorProto.encode(v!, writer.uint32(18).fork()).ldelim();
|
||||
}
|
||||
if (message.options !== undefined && message.options !== undefined) {
|
||||
if (message.options !== undefined) {
|
||||
ServiceOptions.encode(message.options, writer.uint32(26).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -2582,7 +2586,7 @@ export const ServiceDescriptorProto = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): ServiceDescriptorProto {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseServiceDescriptorProto } as ServiceDescriptorProto;
|
||||
const message = Object.create(baseServiceDescriptorProto) as ServiceDescriptorProto;
|
||||
message.method = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -2605,7 +2609,7 @@ export const ServiceDescriptorProto = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): ServiceDescriptorProto {
|
||||
const message = { ...baseServiceDescriptorProto } as ServiceDescriptorProto;
|
||||
const message = Object.create(baseServiceDescriptorProto) as ServiceDescriptorProto;
|
||||
message.method = [];
|
||||
if (object.name !== undefined && object.name !== null) {
|
||||
message.name = String(object.name);
|
||||
@ -2673,7 +2677,7 @@ export const MethodDescriptorProto = {
|
||||
writer.uint32(10).string(message.name);
|
||||
writer.uint32(18).string(message.inputType);
|
||||
writer.uint32(26).string(message.outputType);
|
||||
if (message.options !== undefined && message.options !== undefined) {
|
||||
if (message.options !== undefined) {
|
||||
MethodOptions.encode(message.options, writer.uint32(34).fork()).ldelim();
|
||||
}
|
||||
writer.uint32(40).bool(message.clientStreaming);
|
||||
@ -2684,7 +2688,7 @@ export const MethodDescriptorProto = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): MethodDescriptorProto {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseMethodDescriptorProto } as MethodDescriptorProto;
|
||||
const message = Object.create(baseMethodDescriptorProto) as MethodDescriptorProto;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -2715,7 +2719,7 @@ export const MethodDescriptorProto = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): MethodDescriptorProto {
|
||||
const message = { ...baseMethodDescriptorProto } as MethodDescriptorProto;
|
||||
const message = Object.create(baseMethodDescriptorProto) as MethodDescriptorProto;
|
||||
if (object.name !== undefined && object.name !== null) {
|
||||
message.name = String(object.name);
|
||||
} else {
|
||||
@ -2851,7 +2855,7 @@ export const FileOptions = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): FileOptions {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseFileOptions } as FileOptions;
|
||||
const message = Object.create(baseFileOptions) as FileOptions;
|
||||
message.uninterpretedOption = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -2928,7 +2932,7 @@ export const FileOptions = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): FileOptions {
|
||||
const message = { ...baseFileOptions } as FileOptions;
|
||||
const message = Object.create(baseFileOptions) as FileOptions;
|
||||
message.uninterpretedOption = [];
|
||||
if (object.javaPackage !== undefined && object.javaPackage !== null) {
|
||||
message.javaPackage = String(object.javaPackage);
|
||||
@ -3206,7 +3210,7 @@ export const MessageOptions = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): MessageOptions {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseMessageOptions } as MessageOptions;
|
||||
const message = Object.create(baseMessageOptions) as MessageOptions;
|
||||
message.uninterpretedOption = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -3235,7 +3239,7 @@ export const MessageOptions = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): MessageOptions {
|
||||
const message = { ...baseMessageOptions } as MessageOptions;
|
||||
const message = Object.create(baseMessageOptions) as MessageOptions;
|
||||
message.uninterpretedOption = [];
|
||||
if (object.messageSetWireFormat !== undefined && object.messageSetWireFormat !== null) {
|
||||
message.messageSetWireFormat = Boolean(object.messageSetWireFormat);
|
||||
@ -3340,7 +3344,7 @@ export const FieldOptions = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): FieldOptions {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseFieldOptions } as FieldOptions;
|
||||
const message = Object.create(baseFieldOptions) as FieldOptions;
|
||||
message.uninterpretedOption = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -3375,7 +3379,7 @@ export const FieldOptions = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): FieldOptions {
|
||||
const message = { ...baseFieldOptions } as FieldOptions;
|
||||
const message = Object.create(baseFieldOptions) as FieldOptions;
|
||||
message.uninterpretedOption = [];
|
||||
if (object.ctype !== undefined && object.ctype !== null) {
|
||||
message.ctype = fieldOptions_CTypeFromJSON(object.ctype);
|
||||
@ -3488,7 +3492,7 @@ export const OneofOptions = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): OneofOptions {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseOneofOptions } as OneofOptions;
|
||||
const message = Object.create(baseOneofOptions) as OneofOptions;
|
||||
message.uninterpretedOption = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -3505,7 +3509,7 @@ export const OneofOptions = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): OneofOptions {
|
||||
const message = { ...baseOneofOptions } as OneofOptions;
|
||||
const message = Object.create(baseOneofOptions) as OneofOptions;
|
||||
message.uninterpretedOption = [];
|
||||
if (object.uninterpretedOption !== undefined && object.uninterpretedOption !== null) {
|
||||
for (const e of object.uninterpretedOption) {
|
||||
@ -3554,7 +3558,7 @@ export const EnumOptions = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): EnumOptions {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseEnumOptions } as EnumOptions;
|
||||
const message = Object.create(baseEnumOptions) as EnumOptions;
|
||||
message.uninterpretedOption = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -3577,7 +3581,7 @@ export const EnumOptions = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): EnumOptions {
|
||||
const message = { ...baseEnumOptions } as EnumOptions;
|
||||
const message = Object.create(baseEnumOptions) as EnumOptions;
|
||||
message.uninterpretedOption = [];
|
||||
if (object.allowAlias !== undefined && object.allowAlias !== null) {
|
||||
message.allowAlias = Boolean(object.allowAlias);
|
||||
@ -3647,7 +3651,7 @@ export const EnumValueOptions = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): EnumValueOptions {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseEnumValueOptions } as EnumValueOptions;
|
||||
const message = Object.create(baseEnumValueOptions) as EnumValueOptions;
|
||||
message.uninterpretedOption = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -3667,7 +3671,7 @@ export const EnumValueOptions = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): EnumValueOptions {
|
||||
const message = { ...baseEnumValueOptions } as EnumValueOptions;
|
||||
const message = Object.create(baseEnumValueOptions) as EnumValueOptions;
|
||||
message.uninterpretedOption = [];
|
||||
if (object.deprecated !== undefined && object.deprecated !== null) {
|
||||
message.deprecated = Boolean(object.deprecated);
|
||||
@ -3726,7 +3730,7 @@ export const ServiceOptions = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): ServiceOptions {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseServiceOptions } as ServiceOptions;
|
||||
const message = Object.create(baseServiceOptions) as ServiceOptions;
|
||||
message.uninterpretedOption = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -3746,7 +3750,7 @@ export const ServiceOptions = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): ServiceOptions {
|
||||
const message = { ...baseServiceOptions } as ServiceOptions;
|
||||
const message = Object.create(baseServiceOptions) as ServiceOptions;
|
||||
message.uninterpretedOption = [];
|
||||
if (object.deprecated !== undefined && object.deprecated !== null) {
|
||||
message.deprecated = Boolean(object.deprecated);
|
||||
@ -3806,7 +3810,7 @@ export const MethodOptions = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): MethodOptions {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseMethodOptions } as MethodOptions;
|
||||
const message = Object.create(baseMethodOptions) as MethodOptions;
|
||||
message.uninterpretedOption = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -3829,7 +3833,7 @@ export const MethodOptions = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): MethodOptions {
|
||||
const message = { ...baseMethodOptions } as MethodOptions;
|
||||
const message = Object.create(baseMethodOptions) as MethodOptions;
|
||||
message.uninterpretedOption = [];
|
||||
if (object.deprecated !== undefined && object.deprecated !== null) {
|
||||
message.deprecated = Boolean(object.deprecated);
|
||||
@ -3911,7 +3915,7 @@ export const UninterpretedOption = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): UninterpretedOption {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseUninterpretedOption } as UninterpretedOption;
|
||||
const message = Object.create(baseUninterpretedOption) as UninterpretedOption;
|
||||
message.name = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -3946,7 +3950,7 @@ export const UninterpretedOption = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): UninterpretedOption {
|
||||
const message = { ...baseUninterpretedOption } as UninterpretedOption;
|
||||
const message = Object.create(baseUninterpretedOption) as UninterpretedOption;
|
||||
message.name = [];
|
||||
if (object.name !== undefined && object.name !== null) {
|
||||
for (const e of object.name) {
|
||||
@ -4059,7 +4063,7 @@ export const UninterpretedOption_NamePart = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): UninterpretedOption_NamePart {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseUninterpretedOption_NamePart } as UninterpretedOption_NamePart;
|
||||
const message = Object.create(baseUninterpretedOption_NamePart) as UninterpretedOption_NamePart;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -4078,7 +4082,7 @@ export const UninterpretedOption_NamePart = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): UninterpretedOption_NamePart {
|
||||
const message = { ...baseUninterpretedOption_NamePart } as UninterpretedOption_NamePart;
|
||||
const message = Object.create(baseUninterpretedOption_NamePart) as UninterpretedOption_NamePart;
|
||||
if (object.namePart !== undefined && object.namePart !== null) {
|
||||
message.namePart = String(object.namePart);
|
||||
} else {
|
||||
@ -4128,7 +4132,7 @@ export const SourceCodeInfo = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): SourceCodeInfo {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseSourceCodeInfo } as SourceCodeInfo;
|
||||
const message = Object.create(baseSourceCodeInfo) as SourceCodeInfo;
|
||||
message.location = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -4145,7 +4149,7 @@ export const SourceCodeInfo = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): SourceCodeInfo {
|
||||
const message = { ...baseSourceCodeInfo } as SourceCodeInfo;
|
||||
const message = Object.create(baseSourceCodeInfo) as SourceCodeInfo;
|
||||
message.location = [];
|
||||
if (object.location !== undefined && object.location !== null) {
|
||||
for (const e of object.location) {
|
||||
@ -4208,7 +4212,7 @@ export const SourceCodeInfo_Location = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): SourceCodeInfo_Location {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseSourceCodeInfo_Location } as SourceCodeInfo_Location;
|
||||
const message = Object.create(baseSourceCodeInfo_Location) as SourceCodeInfo_Location;
|
||||
message.path = [];
|
||||
message.span = [];
|
||||
message.leadingDetachedComments = [];
|
||||
@ -4253,7 +4257,7 @@ export const SourceCodeInfo_Location = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): SourceCodeInfo_Location {
|
||||
const message = { ...baseSourceCodeInfo_Location } as SourceCodeInfo_Location;
|
||||
const message = Object.create(baseSourceCodeInfo_Location) as SourceCodeInfo_Location;
|
||||
message.path = [];
|
||||
message.span = [];
|
||||
message.leadingDetachedComments = [];
|
||||
@ -4354,7 +4358,7 @@ export const GeneratedCodeInfo = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): GeneratedCodeInfo {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseGeneratedCodeInfo } as GeneratedCodeInfo;
|
||||
const message = Object.create(baseGeneratedCodeInfo) as GeneratedCodeInfo;
|
||||
message.annotation = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -4371,7 +4375,7 @@ export const GeneratedCodeInfo = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): GeneratedCodeInfo {
|
||||
const message = { ...baseGeneratedCodeInfo } as GeneratedCodeInfo;
|
||||
const message = Object.create(baseGeneratedCodeInfo) as GeneratedCodeInfo;
|
||||
message.annotation = [];
|
||||
if (object.annotation !== undefined && object.annotation !== null) {
|
||||
for (const e of object.annotation) {
|
||||
@ -4423,7 +4427,7 @@ export const GeneratedCodeInfo_Annotation = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): GeneratedCodeInfo_Annotation {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseGeneratedCodeInfo_Annotation } as GeneratedCodeInfo_Annotation;
|
||||
const message = Object.create(baseGeneratedCodeInfo_Annotation) as GeneratedCodeInfo_Annotation;
|
||||
message.path = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -4456,7 +4460,7 @@ export const GeneratedCodeInfo_Annotation = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): GeneratedCodeInfo_Annotation {
|
||||
const message = { ...baseGeneratedCodeInfo_Annotation } as GeneratedCodeInfo_Annotation;
|
||||
const message = Object.create(baseGeneratedCodeInfo_Annotation) as GeneratedCodeInfo_Annotation;
|
||||
message.path = [];
|
||||
if (object.path !== undefined && object.path !== null) {
|
||||
for (const e of object.path) {
|
||||
|
@ -26,7 +26,7 @@ export const PublicKey = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): PublicKey {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...basePublicKey } as PublicKey;
|
||||
const message = Object.create(basePublicKey) as PublicKey;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -45,7 +45,7 @@ export const PublicKey = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): PublicKey {
|
||||
const message = { ...basePublicKey } as PublicKey;
|
||||
const message = Object.create(basePublicKey) as PublicKey;
|
||||
if (object.ed25519 !== undefined && object.ed25519 !== null) {
|
||||
message.ed25519 = bytesFromBase64(object.ed25519);
|
||||
}
|
||||
|
@ -344,7 +344,7 @@ export const ExistenceProof = {
|
||||
encode(message: ExistenceProof, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
writer.uint32(10).bytes(message.key);
|
||||
writer.uint32(18).bytes(message.value);
|
||||
if (message.leaf !== undefined && message.leaf !== undefined) {
|
||||
if (message.leaf !== undefined) {
|
||||
LeafOp.encode(message.leaf, writer.uint32(26).fork()).ldelim();
|
||||
}
|
||||
for (const v of message.path) {
|
||||
@ -356,7 +356,7 @@ export const ExistenceProof = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): ExistenceProof {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseExistenceProof } as ExistenceProof;
|
||||
const message = Object.create(baseExistenceProof) as ExistenceProof;
|
||||
message.path = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -382,7 +382,7 @@ export const ExistenceProof = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): ExistenceProof {
|
||||
const message = { ...baseExistenceProof } as ExistenceProof;
|
||||
const message = Object.create(baseExistenceProof) as ExistenceProof;
|
||||
message.path = [];
|
||||
if (object.key !== undefined && object.key !== null) {
|
||||
message.key = bytesFromBase64(object.key);
|
||||
@ -450,10 +450,10 @@ const baseNonExistenceProof: object = {};
|
||||
export const NonExistenceProof = {
|
||||
encode(message: NonExistenceProof, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
writer.uint32(10).bytes(message.key);
|
||||
if (message.left !== undefined && message.left !== undefined) {
|
||||
if (message.left !== undefined) {
|
||||
ExistenceProof.encode(message.left, writer.uint32(18).fork()).ldelim();
|
||||
}
|
||||
if (message.right !== undefined && message.right !== undefined) {
|
||||
if (message.right !== undefined) {
|
||||
ExistenceProof.encode(message.right, writer.uint32(26).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -462,7 +462,7 @@ export const NonExistenceProof = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): NonExistenceProof {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseNonExistenceProof } as NonExistenceProof;
|
||||
const message = Object.create(baseNonExistenceProof) as NonExistenceProof;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -484,7 +484,7 @@ export const NonExistenceProof = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): NonExistenceProof {
|
||||
const message = { ...baseNonExistenceProof } as NonExistenceProof;
|
||||
const message = Object.create(baseNonExistenceProof) as NonExistenceProof;
|
||||
if (object.key !== undefined && object.key !== null) {
|
||||
message.key = bytesFromBase64(object.key);
|
||||
}
|
||||
@ -554,7 +554,7 @@ export const CommitmentProof = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): CommitmentProof {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseCommitmentProof } as CommitmentProof;
|
||||
const message = Object.create(baseCommitmentProof) as CommitmentProof;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -579,7 +579,7 @@ export const CommitmentProof = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): CommitmentProof {
|
||||
const message = { ...baseCommitmentProof } as CommitmentProof;
|
||||
const message = Object.create(baseCommitmentProof) as CommitmentProof;
|
||||
if (object.exist !== undefined && object.exist !== null) {
|
||||
message.exist = ExistenceProof.fromJSON(object.exist);
|
||||
} else {
|
||||
@ -656,7 +656,7 @@ export const LeafOp = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): LeafOp {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseLeafOp } as LeafOp;
|
||||
const message = Object.create(baseLeafOp) as LeafOp;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -684,7 +684,7 @@ export const LeafOp = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): LeafOp {
|
||||
const message = { ...baseLeafOp } as LeafOp;
|
||||
const message = Object.create(baseLeafOp) as LeafOp;
|
||||
if (object.hash !== undefined && object.hash !== null) {
|
||||
message.hash = hashOpFromJSON(object.hash);
|
||||
} else {
|
||||
@ -766,7 +766,7 @@ export const InnerOp = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): InnerOp {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseInnerOp } as InnerOp;
|
||||
const message = Object.create(baseInnerOp) as InnerOp;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -788,7 +788,7 @@ export const InnerOp = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): InnerOp {
|
||||
const message = { ...baseInnerOp } as InnerOp;
|
||||
const message = Object.create(baseInnerOp) as InnerOp;
|
||||
if (object.hash !== undefined && object.hash !== null) {
|
||||
message.hash = hashOpFromJSON(object.hash);
|
||||
} else {
|
||||
@ -838,10 +838,10 @@ const baseProofSpec: object = { maxDepth: 0, minDepth: 0 };
|
||||
|
||||
export const ProofSpec = {
|
||||
encode(message: ProofSpec, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
if (message.leafSpec !== undefined && message.leafSpec !== undefined) {
|
||||
if (message.leafSpec !== undefined) {
|
||||
LeafOp.encode(message.leafSpec, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
if (message.innerSpec !== undefined && message.innerSpec !== undefined) {
|
||||
if (message.innerSpec !== undefined) {
|
||||
InnerSpec.encode(message.innerSpec, writer.uint32(18).fork()).ldelim();
|
||||
}
|
||||
writer.uint32(24).int32(message.maxDepth);
|
||||
@ -852,7 +852,7 @@ export const ProofSpec = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): ProofSpec {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseProofSpec } as ProofSpec;
|
||||
const message = Object.create(baseProofSpec) as ProofSpec;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -877,7 +877,7 @@ export const ProofSpec = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): ProofSpec {
|
||||
const message = { ...baseProofSpec } as ProofSpec;
|
||||
const message = Object.create(baseProofSpec) as ProofSpec;
|
||||
if (object.leafSpec !== undefined && object.leafSpec !== null) {
|
||||
message.leafSpec = LeafOp.fromJSON(object.leafSpec);
|
||||
} else {
|
||||
@ -964,7 +964,7 @@ export const InnerSpec = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): InnerSpec {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseInnerSpec } as InnerSpec;
|
||||
const message = Object.create(baseInnerSpec) as InnerSpec;
|
||||
message.childOrder = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -1003,7 +1003,7 @@ export const InnerSpec = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): InnerSpec {
|
||||
const message = { ...baseInnerSpec } as InnerSpec;
|
||||
const message = Object.create(baseInnerSpec) as InnerSpec;
|
||||
message.childOrder = [];
|
||||
if (object.childOrder !== undefined && object.childOrder !== null) {
|
||||
for (const e of object.childOrder) {
|
||||
@ -1104,7 +1104,7 @@ export const BatchProof = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): BatchProof {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseBatchProof } as BatchProof;
|
||||
const message = Object.create(baseBatchProof) as BatchProof;
|
||||
message.entries = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -1121,7 +1121,7 @@ export const BatchProof = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): BatchProof {
|
||||
const message = { ...baseBatchProof } as BatchProof;
|
||||
const message = Object.create(baseBatchProof) as BatchProof;
|
||||
message.entries = [];
|
||||
if (object.entries !== undefined && object.entries !== null) {
|
||||
for (const e of object.entries) {
|
||||
@ -1169,7 +1169,7 @@ export const BatchEntry = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): BatchEntry {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseBatchEntry } as BatchEntry;
|
||||
const message = Object.create(baseBatchEntry) as BatchEntry;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -1188,7 +1188,7 @@ export const BatchEntry = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): BatchEntry {
|
||||
const message = { ...baseBatchEntry } as BatchEntry;
|
||||
const message = Object.create(baseBatchEntry) as BatchEntry;
|
||||
if (object.exist !== undefined && object.exist !== null) {
|
||||
message.exist = ExistenceProof.fromJSON(object.exist);
|
||||
} else {
|
||||
@ -1243,7 +1243,7 @@ export const CompressedBatchProof = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): CompressedBatchProof {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseCompressedBatchProof } as CompressedBatchProof;
|
||||
const message = Object.create(baseCompressedBatchProof) as CompressedBatchProof;
|
||||
message.entries = [];
|
||||
message.lookupInners = [];
|
||||
while (reader.pos < end) {
|
||||
@ -1264,7 +1264,7 @@ export const CompressedBatchProof = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): CompressedBatchProof {
|
||||
const message = { ...baseCompressedBatchProof } as CompressedBatchProof;
|
||||
const message = Object.create(baseCompressedBatchProof) as CompressedBatchProof;
|
||||
message.entries = [];
|
||||
message.lookupInners = [];
|
||||
if (object.entries !== undefined && object.entries !== null) {
|
||||
@ -1329,7 +1329,7 @@ export const CompressedBatchEntry = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): CompressedBatchEntry {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseCompressedBatchEntry } as CompressedBatchEntry;
|
||||
const message = Object.create(baseCompressedBatchEntry) as CompressedBatchEntry;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -1348,7 +1348,7 @@ export const CompressedBatchEntry = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): CompressedBatchEntry {
|
||||
const message = { ...baseCompressedBatchEntry } as CompressedBatchEntry;
|
||||
const message = Object.create(baseCompressedBatchEntry) as CompressedBatchEntry;
|
||||
if (object.exist !== undefined && object.exist !== null) {
|
||||
message.exist = CompressedExistenceProof.fromJSON(object.exist);
|
||||
} else {
|
||||
@ -1393,7 +1393,7 @@ export const CompressedExistenceProof = {
|
||||
encode(message: CompressedExistenceProof, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
writer.uint32(10).bytes(message.key);
|
||||
writer.uint32(18).bytes(message.value);
|
||||
if (message.leaf !== undefined && message.leaf !== undefined) {
|
||||
if (message.leaf !== undefined) {
|
||||
LeafOp.encode(message.leaf, writer.uint32(26).fork()).ldelim();
|
||||
}
|
||||
writer.uint32(34).fork();
|
||||
@ -1407,7 +1407,7 @@ export const CompressedExistenceProof = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): CompressedExistenceProof {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseCompressedExistenceProof } as CompressedExistenceProof;
|
||||
const message = Object.create(baseCompressedExistenceProof) as CompressedExistenceProof;
|
||||
message.path = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -1440,7 +1440,7 @@ export const CompressedExistenceProof = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): CompressedExistenceProof {
|
||||
const message = { ...baseCompressedExistenceProof } as CompressedExistenceProof;
|
||||
const message = Object.create(baseCompressedExistenceProof) as CompressedExistenceProof;
|
||||
message.path = [];
|
||||
if (object.key !== undefined && object.key !== null) {
|
||||
message.key = bytesFromBase64(object.key);
|
||||
@ -1508,10 +1508,10 @@ const baseCompressedNonExistenceProof: object = {};
|
||||
export const CompressedNonExistenceProof = {
|
||||
encode(message: CompressedNonExistenceProof, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
writer.uint32(10).bytes(message.key);
|
||||
if (message.left !== undefined && message.left !== undefined) {
|
||||
if (message.left !== undefined) {
|
||||
CompressedExistenceProof.encode(message.left, writer.uint32(18).fork()).ldelim();
|
||||
}
|
||||
if (message.right !== undefined && message.right !== undefined) {
|
||||
if (message.right !== undefined) {
|
||||
CompressedExistenceProof.encode(message.right, writer.uint32(26).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -1520,7 +1520,7 @@ export const CompressedNonExistenceProof = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): CompressedNonExistenceProof {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseCompressedNonExistenceProof } as CompressedNonExistenceProof;
|
||||
const message = Object.create(baseCompressedNonExistenceProof) as CompressedNonExistenceProof;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -1542,7 +1542,7 @@ export const CompressedNonExistenceProof = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): CompressedNonExistenceProof {
|
||||
const message = { ...baseCompressedNonExistenceProof } as CompressedNonExistenceProof;
|
||||
const message = Object.create(baseCompressedNonExistenceProof) as CompressedNonExistenceProof;
|
||||
if (object.key !== undefined && object.key !== null) {
|
||||
message.key = bytesFromBase64(object.key);
|
||||
}
|
||||
|
@ -38,7 +38,7 @@ const baseBaseAccount: object = { address: "", accountNumber: Long.UZERO, sequen
|
||||
export const BaseAccount = {
|
||||
encode(message: BaseAccount, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
writer.uint32(10).string(message.address);
|
||||
if (message.pubKey !== undefined && message.pubKey !== undefined) {
|
||||
if (message.pubKey !== undefined) {
|
||||
Any.encode(message.pubKey, writer.uint32(18).fork()).ldelim();
|
||||
}
|
||||
writer.uint32(24).uint64(message.accountNumber);
|
||||
@ -49,7 +49,7 @@ export const BaseAccount = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): BaseAccount {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseBaseAccount } as BaseAccount;
|
||||
const message = Object.create(baseBaseAccount) as BaseAccount;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -74,7 +74,7 @@ export const BaseAccount = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): BaseAccount {
|
||||
const message = { ...baseBaseAccount } as BaseAccount;
|
||||
const message = Object.create(baseBaseAccount) as BaseAccount;
|
||||
if (object.address !== undefined && object.address !== null) {
|
||||
message.address = String(object.address);
|
||||
} else {
|
||||
@ -138,7 +138,7 @@ const baseModuleAccount: object = { name: "", permissions: "" };
|
||||
|
||||
export const ModuleAccount = {
|
||||
encode(message: ModuleAccount, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
if (message.baseAccount !== undefined && message.baseAccount !== undefined) {
|
||||
if (message.baseAccount !== undefined) {
|
||||
BaseAccount.encode(message.baseAccount, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
writer.uint32(18).string(message.name);
|
||||
@ -151,7 +151,7 @@ export const ModuleAccount = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): ModuleAccount {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseModuleAccount } as ModuleAccount;
|
||||
const message = Object.create(baseModuleAccount) as ModuleAccount;
|
||||
message.permissions = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -174,7 +174,7 @@ export const ModuleAccount = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): ModuleAccount {
|
||||
const message = { ...baseModuleAccount } as ModuleAccount;
|
||||
const message = Object.create(baseModuleAccount) as ModuleAccount;
|
||||
message.permissions = [];
|
||||
if (object.baseAccount !== undefined && object.baseAccount !== null) {
|
||||
message.baseAccount = BaseAccount.fromJSON(object.baseAccount);
|
||||
@ -250,7 +250,7 @@ export const Params = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): Params {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseParams } as Params;
|
||||
const message = Object.create(baseParams) as Params;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -278,7 +278,7 @@ export const Params = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): Params {
|
||||
const message = { ...baseParams } as Params;
|
||||
const message = Object.create(baseParams) as Params;
|
||||
if (object.maxMemoCharacters !== undefined && object.maxMemoCharacters !== null) {
|
||||
message.maxMemoCharacters = Long.fromString(object.maxMemoCharacters);
|
||||
} else {
|
||||
|
@ -38,7 +38,7 @@ export const QueryAccountRequest = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryAccountRequest {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryAccountRequest } as QueryAccountRequest;
|
||||
const message = Object.create(baseQueryAccountRequest) as QueryAccountRequest;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -54,7 +54,7 @@ export const QueryAccountRequest = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryAccountRequest {
|
||||
const message = { ...baseQueryAccountRequest } as QueryAccountRequest;
|
||||
const message = Object.create(baseQueryAccountRequest) as QueryAccountRequest;
|
||||
if (object.address !== undefined && object.address !== null) {
|
||||
message.address = String(object.address);
|
||||
} else {
|
||||
@ -84,7 +84,7 @@ const baseQueryAccountResponse: object = {};
|
||||
|
||||
export const QueryAccountResponse = {
|
||||
encode(message: QueryAccountResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
if (message.account !== undefined && message.account !== undefined) {
|
||||
if (message.account !== undefined) {
|
||||
Any.encode(message.account, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -93,7 +93,7 @@ export const QueryAccountResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryAccountResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryAccountResponse } as QueryAccountResponse;
|
||||
const message = Object.create(baseQueryAccountResponse) as QueryAccountResponse;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -109,7 +109,7 @@ export const QueryAccountResponse = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryAccountResponse {
|
||||
const message = { ...baseQueryAccountResponse } as QueryAccountResponse;
|
||||
const message = Object.create(baseQueryAccountResponse) as QueryAccountResponse;
|
||||
if (object.account !== undefined && object.account !== null) {
|
||||
message.account = Any.fromJSON(object.account);
|
||||
} else {
|
||||
@ -146,7 +146,7 @@ export const QueryParamsRequest = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsRequest {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryParamsRequest } as QueryParamsRequest;
|
||||
const message = Object.create(baseQueryParamsRequest) as QueryParamsRequest;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -159,7 +159,7 @@ export const QueryParamsRequest = {
|
||||
},
|
||||
|
||||
fromJSON(_: any): QueryParamsRequest {
|
||||
const message = { ...baseQueryParamsRequest } as QueryParamsRequest;
|
||||
const message = Object.create(baseQueryParamsRequest) as QueryParamsRequest;
|
||||
return message;
|
||||
},
|
||||
|
||||
@ -178,7 +178,7 @@ const baseQueryParamsResponse: object = {};
|
||||
|
||||
export const QueryParamsResponse = {
|
||||
encode(message: QueryParamsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
if (message.params !== undefined && message.params !== undefined) {
|
||||
if (message.params !== undefined) {
|
||||
Params.encode(message.params, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -187,7 +187,7 @@ export const QueryParamsResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryParamsResponse } as QueryParamsResponse;
|
||||
const message = Object.create(baseQueryParamsResponse) as QueryParamsResponse;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -203,7 +203,7 @@ export const QueryParamsResponse = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryParamsResponse {
|
||||
const message = { ...baseQueryParamsResponse } as QueryParamsResponse;
|
||||
const message = Object.create(baseQueryParamsResponse) as QueryParamsResponse;
|
||||
if (object.params !== undefined && object.params !== null) {
|
||||
message.params = Params.fromJSON(object.params);
|
||||
} else {
|
||||
|
@ -90,7 +90,7 @@ export const Params = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): Params {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseParams } as Params;
|
||||
const message = Object.create(baseParams) as Params;
|
||||
message.sendEnabled = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -110,7 +110,7 @@ export const Params = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): Params {
|
||||
const message = { ...baseParams } as Params;
|
||||
const message = Object.create(baseParams) as Params;
|
||||
message.sendEnabled = [];
|
||||
if (object.sendEnabled !== undefined && object.sendEnabled !== null) {
|
||||
for (const e of object.sendEnabled) {
|
||||
@ -165,7 +165,7 @@ export const SendEnabled = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): SendEnabled {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseSendEnabled } as SendEnabled;
|
||||
const message = Object.create(baseSendEnabled) as SendEnabled;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -184,7 +184,7 @@ export const SendEnabled = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): SendEnabled {
|
||||
const message = { ...baseSendEnabled } as SendEnabled;
|
||||
const message = Object.create(baseSendEnabled) as SendEnabled;
|
||||
if (object.denom !== undefined && object.denom !== null) {
|
||||
message.denom = String(object.denom);
|
||||
} else {
|
||||
@ -235,7 +235,7 @@ export const Input = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): Input {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseInput } as Input;
|
||||
const message = Object.create(baseInput) as Input;
|
||||
message.coins = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -255,7 +255,7 @@ export const Input = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): Input {
|
||||
const message = { ...baseInput } as Input;
|
||||
const message = Object.create(baseInput) as Input;
|
||||
message.coins = [];
|
||||
if (object.address !== undefined && object.address !== null) {
|
||||
message.address = String(object.address);
|
||||
@ -312,7 +312,7 @@ export const Output = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): Output {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseOutput } as Output;
|
||||
const message = Object.create(baseOutput) as Output;
|
||||
message.coins = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -332,7 +332,7 @@ export const Output = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): Output {
|
||||
const message = { ...baseOutput } as Output;
|
||||
const message = Object.create(baseOutput) as Output;
|
||||
message.coins = [];
|
||||
if (object.address !== undefined && object.address !== null) {
|
||||
message.address = String(object.address);
|
||||
@ -388,7 +388,7 @@ export const Supply = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): Supply {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseSupply } as Supply;
|
||||
const message = Object.create(baseSupply) as Supply;
|
||||
message.total = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -405,7 +405,7 @@ export const Supply = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): Supply {
|
||||
const message = { ...baseSupply } as Supply;
|
||||
const message = Object.create(baseSupply) as Supply;
|
||||
message.total = [];
|
||||
if (object.total !== undefined && object.total !== null) {
|
||||
for (const e of object.total) {
|
||||
@ -452,7 +452,7 @@ export const DenomUnit = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): DenomUnit {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseDenomUnit } as DenomUnit;
|
||||
const message = Object.create(baseDenomUnit) as DenomUnit;
|
||||
message.aliases = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -475,7 +475,7 @@ export const DenomUnit = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): DenomUnit {
|
||||
const message = { ...baseDenomUnit } as DenomUnit;
|
||||
const message = Object.create(baseDenomUnit) as DenomUnit;
|
||||
message.aliases = [];
|
||||
if (object.denom !== undefined && object.denom !== null) {
|
||||
message.denom = String(object.denom);
|
||||
@ -545,7 +545,7 @@ export const Metadata = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): Metadata {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseMetadata } as Metadata;
|
||||
const message = Object.create(baseMetadata) as Metadata;
|
||||
message.denomUnits = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -571,7 +571,7 @@ export const Metadata = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): Metadata {
|
||||
const message = { ...baseMetadata } as Metadata;
|
||||
const message = Object.create(baseMetadata) as Metadata;
|
||||
message.denomUnits = [];
|
||||
if (object.description !== undefined && object.description !== null) {
|
||||
message.description = String(object.description);
|
||||
|
@ -87,7 +87,7 @@ export const QueryBalanceRequest = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryBalanceRequest {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryBalanceRequest } as QueryBalanceRequest;
|
||||
const message = Object.create(baseQueryBalanceRequest) as QueryBalanceRequest;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -106,7 +106,7 @@ export const QueryBalanceRequest = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryBalanceRequest {
|
||||
const message = { ...baseQueryBalanceRequest } as QueryBalanceRequest;
|
||||
const message = Object.create(baseQueryBalanceRequest) as QueryBalanceRequest;
|
||||
if (object.address !== undefined && object.address !== null) {
|
||||
message.address = String(object.address);
|
||||
} else {
|
||||
@ -147,7 +147,7 @@ const baseQueryBalanceResponse: object = {};
|
||||
|
||||
export const QueryBalanceResponse = {
|
||||
encode(message: QueryBalanceResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
if (message.balance !== undefined && message.balance !== undefined) {
|
||||
if (message.balance !== undefined) {
|
||||
Coin.encode(message.balance, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -156,7 +156,7 @@ export const QueryBalanceResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryBalanceResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryBalanceResponse } as QueryBalanceResponse;
|
||||
const message = Object.create(baseQueryBalanceResponse) as QueryBalanceResponse;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -172,7 +172,7 @@ export const QueryBalanceResponse = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryBalanceResponse {
|
||||
const message = { ...baseQueryBalanceResponse } as QueryBalanceResponse;
|
||||
const message = Object.create(baseQueryBalanceResponse) as QueryBalanceResponse;
|
||||
if (object.balance !== undefined && object.balance !== null) {
|
||||
message.balance = Coin.fromJSON(object.balance);
|
||||
} else {
|
||||
@ -204,7 +204,7 @@ const baseQueryAllBalancesRequest: object = { address: "" };
|
||||
export const QueryAllBalancesRequest = {
|
||||
encode(message: QueryAllBalancesRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
writer.uint32(10).string(message.address);
|
||||
if (message.pagination !== undefined && message.pagination !== undefined) {
|
||||
if (message.pagination !== undefined) {
|
||||
PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -213,7 +213,7 @@ export const QueryAllBalancesRequest = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllBalancesRequest {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryAllBalancesRequest } as QueryAllBalancesRequest;
|
||||
const message = Object.create(baseQueryAllBalancesRequest) as QueryAllBalancesRequest;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -232,7 +232,7 @@ export const QueryAllBalancesRequest = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryAllBalancesRequest {
|
||||
const message = { ...baseQueryAllBalancesRequest } as QueryAllBalancesRequest;
|
||||
const message = Object.create(baseQueryAllBalancesRequest) as QueryAllBalancesRequest;
|
||||
if (object.address !== undefined && object.address !== null) {
|
||||
message.address = String(object.address);
|
||||
} else {
|
||||
@ -277,7 +277,7 @@ export const QueryAllBalancesResponse = {
|
||||
for (const v of message.balances) {
|
||||
Coin.encode(v!, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
if (message.pagination !== undefined && message.pagination !== undefined) {
|
||||
if (message.pagination !== undefined) {
|
||||
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -286,7 +286,7 @@ export const QueryAllBalancesResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllBalancesResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryAllBalancesResponse } as QueryAllBalancesResponse;
|
||||
const message = Object.create(baseQueryAllBalancesResponse) as QueryAllBalancesResponse;
|
||||
message.balances = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -306,7 +306,7 @@ export const QueryAllBalancesResponse = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryAllBalancesResponse {
|
||||
const message = { ...baseQueryAllBalancesResponse } as QueryAllBalancesResponse;
|
||||
const message = Object.create(baseQueryAllBalancesResponse) as QueryAllBalancesResponse;
|
||||
message.balances = [];
|
||||
if (object.balances !== undefined && object.balances !== null) {
|
||||
for (const e of object.balances) {
|
||||
@ -360,7 +360,7 @@ export const QueryTotalSupplyRequest = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryTotalSupplyRequest {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryTotalSupplyRequest } as QueryTotalSupplyRequest;
|
||||
const message = Object.create(baseQueryTotalSupplyRequest) as QueryTotalSupplyRequest;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -373,7 +373,7 @@ export const QueryTotalSupplyRequest = {
|
||||
},
|
||||
|
||||
fromJSON(_: any): QueryTotalSupplyRequest {
|
||||
const message = { ...baseQueryTotalSupplyRequest } as QueryTotalSupplyRequest;
|
||||
const message = Object.create(baseQueryTotalSupplyRequest) as QueryTotalSupplyRequest;
|
||||
return message;
|
||||
},
|
||||
|
||||
@ -401,7 +401,7 @@ export const QueryTotalSupplyResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryTotalSupplyResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryTotalSupplyResponse } as QueryTotalSupplyResponse;
|
||||
const message = Object.create(baseQueryTotalSupplyResponse) as QueryTotalSupplyResponse;
|
||||
message.supply = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -418,7 +418,7 @@ export const QueryTotalSupplyResponse = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryTotalSupplyResponse {
|
||||
const message = { ...baseQueryTotalSupplyResponse } as QueryTotalSupplyResponse;
|
||||
const message = Object.create(baseQueryTotalSupplyResponse) as QueryTotalSupplyResponse;
|
||||
message.supply = [];
|
||||
if (object.supply !== undefined && object.supply !== null) {
|
||||
for (const e of object.supply) {
|
||||
@ -461,7 +461,7 @@ export const QuerySupplyOfRequest = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QuerySupplyOfRequest {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQuerySupplyOfRequest } as QuerySupplyOfRequest;
|
||||
const message = Object.create(baseQuerySupplyOfRequest) as QuerySupplyOfRequest;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -477,7 +477,7 @@ export const QuerySupplyOfRequest = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QuerySupplyOfRequest {
|
||||
const message = { ...baseQuerySupplyOfRequest } as QuerySupplyOfRequest;
|
||||
const message = Object.create(baseQuerySupplyOfRequest) as QuerySupplyOfRequest;
|
||||
if (object.denom !== undefined && object.denom !== null) {
|
||||
message.denom = String(object.denom);
|
||||
} else {
|
||||
@ -507,7 +507,7 @@ const baseQuerySupplyOfResponse: object = {};
|
||||
|
||||
export const QuerySupplyOfResponse = {
|
||||
encode(message: QuerySupplyOfResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
if (message.amount !== undefined && message.amount !== undefined) {
|
||||
if (message.amount !== undefined) {
|
||||
Coin.encode(message.amount, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -516,7 +516,7 @@ export const QuerySupplyOfResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QuerySupplyOfResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQuerySupplyOfResponse } as QuerySupplyOfResponse;
|
||||
const message = Object.create(baseQuerySupplyOfResponse) as QuerySupplyOfResponse;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -532,7 +532,7 @@ export const QuerySupplyOfResponse = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QuerySupplyOfResponse {
|
||||
const message = { ...baseQuerySupplyOfResponse } as QuerySupplyOfResponse;
|
||||
const message = Object.create(baseQuerySupplyOfResponse) as QuerySupplyOfResponse;
|
||||
if (object.amount !== undefined && object.amount !== null) {
|
||||
message.amount = Coin.fromJSON(object.amount);
|
||||
} else {
|
||||
@ -568,7 +568,7 @@ export const QueryParamsRequest = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsRequest {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryParamsRequest } as QueryParamsRequest;
|
||||
const message = Object.create(baseQueryParamsRequest) as QueryParamsRequest;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -581,7 +581,7 @@ export const QueryParamsRequest = {
|
||||
},
|
||||
|
||||
fromJSON(_: any): QueryParamsRequest {
|
||||
const message = { ...baseQueryParamsRequest } as QueryParamsRequest;
|
||||
const message = Object.create(baseQueryParamsRequest) as QueryParamsRequest;
|
||||
return message;
|
||||
},
|
||||
|
||||
@ -600,7 +600,7 @@ const baseQueryParamsResponse: object = {};
|
||||
|
||||
export const QueryParamsResponse = {
|
||||
encode(message: QueryParamsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
if (message.params !== undefined && message.params !== undefined) {
|
||||
if (message.params !== undefined) {
|
||||
Params.encode(message.params, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -609,7 +609,7 @@ export const QueryParamsResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryParamsResponse } as QueryParamsResponse;
|
||||
const message = Object.create(baseQueryParamsResponse) as QueryParamsResponse;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -625,7 +625,7 @@ export const QueryParamsResponse = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryParamsResponse {
|
||||
const message = { ...baseQueryParamsResponse } as QueryParamsResponse;
|
||||
const message = Object.create(baseQueryParamsResponse) as QueryParamsResponse;
|
||||
if (object.params !== undefined && object.params !== null) {
|
||||
message.params = Params.fromJSON(object.params);
|
||||
} else {
|
||||
|
@ -40,7 +40,7 @@ export const MsgSend = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgSend {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseMsgSend } as MsgSend;
|
||||
const message = Object.create(baseMsgSend) as MsgSend;
|
||||
message.amount = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -63,7 +63,7 @@ export const MsgSend = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): MsgSend {
|
||||
const message = { ...baseMsgSend } as MsgSend;
|
||||
const message = Object.create(baseMsgSend) as MsgSend;
|
||||
message.amount = [];
|
||||
if (object.fromAddress !== undefined && object.fromAddress !== null) {
|
||||
message.fromAddress = String(object.fromAddress);
|
||||
@ -127,7 +127,7 @@ export const MsgSendResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgSendResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseMsgSendResponse } as MsgSendResponse;
|
||||
const message = Object.create(baseMsgSendResponse) as MsgSendResponse;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -140,7 +140,7 @@ export const MsgSendResponse = {
|
||||
},
|
||||
|
||||
fromJSON(_: any): MsgSendResponse {
|
||||
const message = { ...baseMsgSendResponse } as MsgSendResponse;
|
||||
const message = Object.create(baseMsgSendResponse) as MsgSendResponse;
|
||||
return message;
|
||||
},
|
||||
|
||||
@ -171,7 +171,7 @@ export const MsgMultiSend = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgMultiSend {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseMsgMultiSend } as MsgMultiSend;
|
||||
const message = Object.create(baseMsgMultiSend) as MsgMultiSend;
|
||||
message.inputs = [];
|
||||
message.outputs = [];
|
||||
while (reader.pos < end) {
|
||||
@ -192,7 +192,7 @@ export const MsgMultiSend = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): MsgMultiSend {
|
||||
const message = { ...baseMsgMultiSend } as MsgMultiSend;
|
||||
const message = Object.create(baseMsgMultiSend) as MsgMultiSend;
|
||||
message.inputs = [];
|
||||
message.outputs = [];
|
||||
if (object.inputs !== undefined && object.inputs !== null) {
|
||||
@ -251,7 +251,7 @@ export const MsgMultiSendResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgMultiSendResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseMsgMultiSendResponse } as MsgMultiSendResponse;
|
||||
const message = Object.create(baseMsgMultiSendResponse) as MsgMultiSendResponse;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -264,7 +264,7 @@ export const MsgMultiSendResponse = {
|
||||
},
|
||||
|
||||
fromJSON(_: any): MsgMultiSendResponse {
|
||||
const message = { ...baseMsgMultiSendResponse } as MsgMultiSendResponse;
|
||||
const message = Object.create(baseMsgMultiSendResponse) as MsgMultiSendResponse;
|
||||
return message;
|
||||
},
|
||||
|
||||
|
@ -166,7 +166,7 @@ export const TxResponse = {
|
||||
writer.uint32(66).string(message.info);
|
||||
writer.uint32(72).int64(message.gasWanted);
|
||||
writer.uint32(80).int64(message.gasUsed);
|
||||
if (message.tx !== undefined && message.tx !== undefined) {
|
||||
if (message.tx !== undefined) {
|
||||
Any.encode(message.tx, writer.uint32(90).fork()).ldelim();
|
||||
}
|
||||
writer.uint32(98).string(message.timestamp);
|
||||
@ -176,7 +176,7 @@ export const TxResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): TxResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseTxResponse } as TxResponse;
|
||||
const message = Object.create(baseTxResponse) as TxResponse;
|
||||
message.logs = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -226,7 +226,7 @@ export const TxResponse = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): TxResponse {
|
||||
const message = { ...baseTxResponse } as TxResponse;
|
||||
const message = Object.create(baseTxResponse) as TxResponse;
|
||||
message.logs = [];
|
||||
if (object.height !== undefined && object.height !== null) {
|
||||
message.height = Long.fromString(object.height);
|
||||
@ -394,7 +394,7 @@ export const ABCIMessageLog = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): ABCIMessageLog {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseABCIMessageLog } as ABCIMessageLog;
|
||||
const message = Object.create(baseABCIMessageLog) as ABCIMessageLog;
|
||||
message.events = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -417,7 +417,7 @@ export const ABCIMessageLog = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): ABCIMessageLog {
|
||||
const message = { ...baseABCIMessageLog } as ABCIMessageLog;
|
||||
const message = Object.create(baseABCIMessageLog) as ABCIMessageLog;
|
||||
message.events = [];
|
||||
if (object.msgIndex !== undefined && object.msgIndex !== null) {
|
||||
message.msgIndex = Number(object.msgIndex);
|
||||
@ -485,7 +485,7 @@ export const StringEvent = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): StringEvent {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseStringEvent } as StringEvent;
|
||||
const message = Object.create(baseStringEvent) as StringEvent;
|
||||
message.attributes = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -505,7 +505,7 @@ export const StringEvent = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): StringEvent {
|
||||
const message = { ...baseStringEvent } as StringEvent;
|
||||
const message = Object.create(baseStringEvent) as StringEvent;
|
||||
message.attributes = [];
|
||||
if (object.type !== undefined && object.type !== null) {
|
||||
message.type = String(object.type);
|
||||
@ -560,7 +560,7 @@ export const Attribute = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): Attribute {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseAttribute } as Attribute;
|
||||
const message = Object.create(baseAttribute) as Attribute;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -579,7 +579,7 @@ export const Attribute = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): Attribute {
|
||||
const message = { ...baseAttribute } as Attribute;
|
||||
const message = Object.create(baseAttribute) as Attribute;
|
||||
if (object.key !== undefined && object.key !== null) {
|
||||
message.key = String(object.key);
|
||||
} else {
|
||||
@ -628,7 +628,7 @@ export const GasInfo = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): GasInfo {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseGasInfo } as GasInfo;
|
||||
const message = Object.create(baseGasInfo) as GasInfo;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -647,7 +647,7 @@ export const GasInfo = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): GasInfo {
|
||||
const message = { ...baseGasInfo } as GasInfo;
|
||||
const message = Object.create(baseGasInfo) as GasInfo;
|
||||
if (object.gasWanted !== undefined && object.gasWanted !== null) {
|
||||
message.gasWanted = Long.fromString(object.gasWanted);
|
||||
} else {
|
||||
@ -699,7 +699,7 @@ export const Result = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): Result {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseResult } as Result;
|
||||
const message = Object.create(baseResult) as Result;
|
||||
message.events = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -722,7 +722,7 @@ export const Result = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): Result {
|
||||
const message = { ...baseResult } as Result;
|
||||
const message = Object.create(baseResult) as Result;
|
||||
message.events = [];
|
||||
if (object.data !== undefined && object.data !== null) {
|
||||
message.data = bytesFromBase64(object.data);
|
||||
@ -779,10 +779,10 @@ const baseSimulationResponse: object = {};
|
||||
|
||||
export const SimulationResponse = {
|
||||
encode(message: SimulationResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
if (message.gasInfo !== undefined && message.gasInfo !== undefined) {
|
||||
if (message.gasInfo !== undefined) {
|
||||
GasInfo.encode(message.gasInfo, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
if (message.result !== undefined && message.result !== undefined) {
|
||||
if (message.result !== undefined) {
|
||||
Result.encode(message.result, writer.uint32(18).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -791,7 +791,7 @@ export const SimulationResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): SimulationResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseSimulationResponse } as SimulationResponse;
|
||||
const message = Object.create(baseSimulationResponse) as SimulationResponse;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -810,7 +810,7 @@ export const SimulationResponse = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): SimulationResponse {
|
||||
const message = { ...baseSimulationResponse } as SimulationResponse;
|
||||
const message = Object.create(baseSimulationResponse) as SimulationResponse;
|
||||
if (object.gasInfo !== undefined && object.gasInfo !== null) {
|
||||
message.gasInfo = GasInfo.fromJSON(object.gasInfo);
|
||||
} else {
|
||||
@ -860,7 +860,7 @@ export const MsgData = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgData {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseMsgData } as MsgData;
|
||||
const message = Object.create(baseMsgData) as MsgData;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -879,7 +879,7 @@ export const MsgData = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): MsgData {
|
||||
const message = { ...baseMsgData } as MsgData;
|
||||
const message = Object.create(baseMsgData) as MsgData;
|
||||
if (object.msgType !== undefined && object.msgType !== null) {
|
||||
message.msgType = String(object.msgType);
|
||||
} else {
|
||||
@ -928,7 +928,7 @@ export const TxMsgData = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): TxMsgData {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseTxMsgData } as TxMsgData;
|
||||
const message = Object.create(baseTxMsgData) as TxMsgData;
|
||||
message.data = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -945,7 +945,7 @@ export const TxMsgData = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): TxMsgData {
|
||||
const message = { ...baseTxMsgData } as TxMsgData;
|
||||
const message = Object.create(baseTxMsgData) as TxMsgData;
|
||||
message.data = [];
|
||||
if (object.data !== undefined && object.data !== null) {
|
||||
for (const e of object.data) {
|
||||
@ -1001,7 +1001,7 @@ export const SearchTxsResult = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): SearchTxsResult {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseSearchTxsResult } as SearchTxsResult;
|
||||
const message = Object.create(baseSearchTxsResult) as SearchTxsResult;
|
||||
message.txs = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -1033,7 +1033,7 @@ export const SearchTxsResult = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): SearchTxsResult {
|
||||
const message = { ...baseSearchTxsResult } as SearchTxsResult;
|
||||
const message = Object.create(baseSearchTxsResult) as SearchTxsResult;
|
||||
message.txs = [];
|
||||
if (object.totalCount !== undefined && object.totalCount !== null) {
|
||||
message.totalCount = Long.fromString(object.totalCount);
|
||||
|
@ -76,7 +76,7 @@ export const PageRequest = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): PageRequest {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...basePageRequest } as PageRequest;
|
||||
const message = Object.create(basePageRequest) as PageRequest;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -101,7 +101,7 @@ export const PageRequest = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): PageRequest {
|
||||
const message = { ...basePageRequest } as PageRequest;
|
||||
const message = Object.create(basePageRequest) as PageRequest;
|
||||
if (object.key !== undefined && object.key !== null) {
|
||||
message.key = bytesFromBase64(object.key);
|
||||
}
|
||||
@ -171,7 +171,7 @@ export const PageResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): PageResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...basePageResponse } as PageResponse;
|
||||
const message = Object.create(basePageResponse) as PageResponse;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -190,7 +190,7 @@ export const PageResponse = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): PageResponse {
|
||||
const message = { ...basePageResponse } as PageResponse;
|
||||
const message = Object.create(basePageResponse) as PageResponse;
|
||||
if (object.nextKey !== undefined && object.nextKey !== null) {
|
||||
message.nextKey = bytesFromBase64(object.nextKey);
|
||||
}
|
||||
|
@ -48,7 +48,7 @@ export const Coin = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): Coin {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseCoin } as Coin;
|
||||
const message = Object.create(baseCoin) as Coin;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -67,7 +67,7 @@ export const Coin = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): Coin {
|
||||
const message = { ...baseCoin } as Coin;
|
||||
const message = Object.create(baseCoin) as Coin;
|
||||
if (object.denom !== undefined && object.denom !== null) {
|
||||
message.denom = String(object.denom);
|
||||
} else {
|
||||
@ -116,7 +116,7 @@ export const DecCoin = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): DecCoin {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseDecCoin } as DecCoin;
|
||||
const message = Object.create(baseDecCoin) as DecCoin;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -135,7 +135,7 @@ export const DecCoin = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): DecCoin {
|
||||
const message = { ...baseDecCoin } as DecCoin;
|
||||
const message = Object.create(baseDecCoin) as DecCoin;
|
||||
if (object.denom !== undefined && object.denom !== null) {
|
||||
message.denom = String(object.denom);
|
||||
} else {
|
||||
@ -183,7 +183,7 @@ export const IntProto = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): IntProto {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseIntProto } as IntProto;
|
||||
const message = Object.create(baseIntProto) as IntProto;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -199,7 +199,7 @@ export const IntProto = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): IntProto {
|
||||
const message = { ...baseIntProto } as IntProto;
|
||||
const message = Object.create(baseIntProto) as IntProto;
|
||||
if (object.int !== undefined && object.int !== null) {
|
||||
message.int = String(object.int);
|
||||
} else {
|
||||
@ -236,7 +236,7 @@ export const DecProto = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): DecProto {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseDecProto } as DecProto;
|
||||
const message = Object.create(baseDecProto) as DecProto;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -252,7 +252,7 @@ export const DecProto = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): DecProto {
|
||||
const message = { ...baseDecProto } as DecProto;
|
||||
const message = Object.create(baseDecProto) as DecProto;
|
||||
if (object.dec !== undefined && object.dec !== null) {
|
||||
message.dec = String(object.dec);
|
||||
} else {
|
||||
|
@ -37,7 +37,7 @@ export const MultiSignature = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): MultiSignature {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseMultiSignature } as MultiSignature;
|
||||
const message = Object.create(baseMultiSignature) as MultiSignature;
|
||||
message.signatures = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -54,7 +54,7 @@ export const MultiSignature = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): MultiSignature {
|
||||
const message = { ...baseMultiSignature } as MultiSignature;
|
||||
const message = Object.create(baseMultiSignature) as MultiSignature;
|
||||
message.signatures = [];
|
||||
if (object.signatures !== undefined && object.signatures !== null) {
|
||||
for (const e of object.signatures) {
|
||||
@ -98,7 +98,7 @@ export const CompactBitArray = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): CompactBitArray {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseCompactBitArray } as CompactBitArray;
|
||||
const message = Object.create(baseCompactBitArray) as CompactBitArray;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -117,7 +117,7 @@ export const CompactBitArray = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): CompactBitArray {
|
||||
const message = { ...baseCompactBitArray } as CompactBitArray;
|
||||
const message = Object.create(baseCompactBitArray) as CompactBitArray;
|
||||
if (object.extraBitsStored !== undefined && object.extraBitsStored !== null) {
|
||||
message.extraBitsStored = Number(object.extraBitsStored);
|
||||
} else {
|
||||
|
@ -31,7 +31,7 @@ export const PubKey = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): PubKey {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...basePubKey } as PubKey;
|
||||
const message = Object.create(basePubKey) as PubKey;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -47,7 +47,7 @@ export const PubKey = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): PubKey {
|
||||
const message = { ...basePubKey } as PubKey;
|
||||
const message = Object.create(basePubKey) as PubKey;
|
||||
if (object.key !== undefined && object.key !== null) {
|
||||
message.key = bytesFromBase64(object.key);
|
||||
}
|
||||
@ -83,7 +83,7 @@ export const PrivKey = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): PrivKey {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...basePrivKey } as PrivKey;
|
||||
const message = Object.create(basePrivKey) as PrivKey;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -99,7 +99,7 @@ export const PrivKey = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): PrivKey {
|
||||
const message = { ...basePrivKey } as PrivKey;
|
||||
const message = Object.create(basePrivKey) as PrivKey;
|
||||
if (object.key !== undefined && object.key !== null) {
|
||||
message.key = bytesFromBase64(object.key);
|
||||
}
|
||||
|
@ -145,7 +145,7 @@ export const Params = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): Params {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseParams } as Params;
|
||||
const message = Object.create(baseParams) as Params;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -170,7 +170,7 @@ export const Params = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): Params {
|
||||
const message = { ...baseParams } as Params;
|
||||
const message = Object.create(baseParams) as Params;
|
||||
if (object.communityTax !== undefined && object.communityTax !== null) {
|
||||
message.communityTax = String(object.communityTax);
|
||||
} else {
|
||||
@ -243,7 +243,7 @@ export const ValidatorHistoricalRewards = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): ValidatorHistoricalRewards {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseValidatorHistoricalRewards } as ValidatorHistoricalRewards;
|
||||
const message = Object.create(baseValidatorHistoricalRewards) as ValidatorHistoricalRewards;
|
||||
message.cumulativeRewardRatio = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -263,7 +263,7 @@ export const ValidatorHistoricalRewards = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): ValidatorHistoricalRewards {
|
||||
const message = { ...baseValidatorHistoricalRewards } as ValidatorHistoricalRewards;
|
||||
const message = Object.create(baseValidatorHistoricalRewards) as ValidatorHistoricalRewards;
|
||||
message.cumulativeRewardRatio = [];
|
||||
if (object.cumulativeRewardRatio !== undefined && object.cumulativeRewardRatio !== null) {
|
||||
for (const e of object.cumulativeRewardRatio) {
|
||||
@ -322,7 +322,7 @@ export const ValidatorCurrentRewards = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): ValidatorCurrentRewards {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseValidatorCurrentRewards } as ValidatorCurrentRewards;
|
||||
const message = Object.create(baseValidatorCurrentRewards) as ValidatorCurrentRewards;
|
||||
message.rewards = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -342,7 +342,7 @@ export const ValidatorCurrentRewards = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): ValidatorCurrentRewards {
|
||||
const message = { ...baseValidatorCurrentRewards } as ValidatorCurrentRewards;
|
||||
const message = Object.create(baseValidatorCurrentRewards) as ValidatorCurrentRewards;
|
||||
message.rewards = [];
|
||||
if (object.rewards !== undefined && object.rewards !== null) {
|
||||
for (const e of object.rewards) {
|
||||
@ -398,7 +398,7 @@ export const ValidatorAccumulatedCommission = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): ValidatorAccumulatedCommission {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseValidatorAccumulatedCommission } as ValidatorAccumulatedCommission;
|
||||
const message = Object.create(baseValidatorAccumulatedCommission) as ValidatorAccumulatedCommission;
|
||||
message.commission = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -415,7 +415,7 @@ export const ValidatorAccumulatedCommission = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): ValidatorAccumulatedCommission {
|
||||
const message = { ...baseValidatorAccumulatedCommission } as ValidatorAccumulatedCommission;
|
||||
const message = Object.create(baseValidatorAccumulatedCommission) as ValidatorAccumulatedCommission;
|
||||
message.commission = [];
|
||||
if (object.commission !== undefined && object.commission !== null) {
|
||||
for (const e of object.commission) {
|
||||
@ -460,7 +460,7 @@ export const ValidatorOutstandingRewards = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): ValidatorOutstandingRewards {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseValidatorOutstandingRewards } as ValidatorOutstandingRewards;
|
||||
const message = Object.create(baseValidatorOutstandingRewards) as ValidatorOutstandingRewards;
|
||||
message.rewards = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -477,7 +477,7 @@ export const ValidatorOutstandingRewards = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): ValidatorOutstandingRewards {
|
||||
const message = { ...baseValidatorOutstandingRewards } as ValidatorOutstandingRewards;
|
||||
const message = Object.create(baseValidatorOutstandingRewards) as ValidatorOutstandingRewards;
|
||||
message.rewards = [];
|
||||
if (object.rewards !== undefined && object.rewards !== null) {
|
||||
for (const e of object.rewards) {
|
||||
@ -521,7 +521,7 @@ export const ValidatorSlashEvent = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): ValidatorSlashEvent {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseValidatorSlashEvent } as ValidatorSlashEvent;
|
||||
const message = Object.create(baseValidatorSlashEvent) as ValidatorSlashEvent;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -540,7 +540,7 @@ export const ValidatorSlashEvent = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): ValidatorSlashEvent {
|
||||
const message = { ...baseValidatorSlashEvent } as ValidatorSlashEvent;
|
||||
const message = Object.create(baseValidatorSlashEvent) as ValidatorSlashEvent;
|
||||
if (object.validatorPeriod !== undefined && object.validatorPeriod !== null) {
|
||||
message.validatorPeriod = Long.fromString(object.validatorPeriod);
|
||||
} else {
|
||||
@ -591,7 +591,7 @@ export const ValidatorSlashEvents = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): ValidatorSlashEvents {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseValidatorSlashEvents } as ValidatorSlashEvents;
|
||||
const message = Object.create(baseValidatorSlashEvents) as ValidatorSlashEvents;
|
||||
message.validatorSlashEvents = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -608,7 +608,7 @@ export const ValidatorSlashEvents = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): ValidatorSlashEvents {
|
||||
const message = { ...baseValidatorSlashEvents } as ValidatorSlashEvents;
|
||||
const message = Object.create(baseValidatorSlashEvents) as ValidatorSlashEvents;
|
||||
message.validatorSlashEvents = [];
|
||||
if (object.validatorSlashEvents !== undefined && object.validatorSlashEvents !== null) {
|
||||
for (const e of object.validatorSlashEvents) {
|
||||
@ -655,7 +655,7 @@ export const FeePool = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): FeePool {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseFeePool } as FeePool;
|
||||
const message = Object.create(baseFeePool) as FeePool;
|
||||
message.communityPool = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -672,7 +672,7 @@ export const FeePool = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): FeePool {
|
||||
const message = { ...baseFeePool } as FeePool;
|
||||
const message = Object.create(baseFeePool) as FeePool;
|
||||
message.communityPool = [];
|
||||
if (object.communityPool !== undefined && object.communityPool !== null) {
|
||||
for (const e of object.communityPool) {
|
||||
@ -720,7 +720,7 @@ export const CommunityPoolSpendProposal = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): CommunityPoolSpendProposal {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseCommunityPoolSpendProposal } as CommunityPoolSpendProposal;
|
||||
const message = Object.create(baseCommunityPoolSpendProposal) as CommunityPoolSpendProposal;
|
||||
message.amount = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -746,7 +746,7 @@ export const CommunityPoolSpendProposal = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): CommunityPoolSpendProposal {
|
||||
const message = { ...baseCommunityPoolSpendProposal } as CommunityPoolSpendProposal;
|
||||
const message = Object.create(baseCommunityPoolSpendProposal) as CommunityPoolSpendProposal;
|
||||
message.amount = [];
|
||||
if (object.title !== undefined && object.title !== null) {
|
||||
message.title = String(object.title);
|
||||
@ -824,7 +824,7 @@ export const DelegatorStartingInfo = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): DelegatorStartingInfo {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseDelegatorStartingInfo } as DelegatorStartingInfo;
|
||||
const message = Object.create(baseDelegatorStartingInfo) as DelegatorStartingInfo;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -846,7 +846,7 @@ export const DelegatorStartingInfo = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): DelegatorStartingInfo {
|
||||
const message = { ...baseDelegatorStartingInfo } as DelegatorStartingInfo;
|
||||
const message = Object.create(baseDelegatorStartingInfo) as DelegatorStartingInfo;
|
||||
if (object.previousPeriod !== undefined && object.previousPeriod !== null) {
|
||||
message.previousPeriod = Long.fromString(object.previousPeriod);
|
||||
} else {
|
||||
@ -909,7 +909,7 @@ export const DelegationDelegatorReward = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): DelegationDelegatorReward {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseDelegationDelegatorReward } as DelegationDelegatorReward;
|
||||
const message = Object.create(baseDelegationDelegatorReward) as DelegationDelegatorReward;
|
||||
message.reward = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -929,7 +929,7 @@ export const DelegationDelegatorReward = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): DelegationDelegatorReward {
|
||||
const message = { ...baseDelegationDelegatorReward } as DelegationDelegatorReward;
|
||||
const message = Object.create(baseDelegationDelegatorReward) as DelegationDelegatorReward;
|
||||
message.reward = [];
|
||||
if (object.validatorAddress !== undefined && object.validatorAddress !== null) {
|
||||
message.validatorAddress = String(object.validatorAddress);
|
||||
@ -996,7 +996,9 @@ export const CommunityPoolSpendProposalWithDeposit = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): CommunityPoolSpendProposalWithDeposit {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseCommunityPoolSpendProposalWithDeposit } as CommunityPoolSpendProposalWithDeposit;
|
||||
const message = Object.create(
|
||||
baseCommunityPoolSpendProposalWithDeposit,
|
||||
) as CommunityPoolSpendProposalWithDeposit;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -1024,7 +1026,9 @@ export const CommunityPoolSpendProposalWithDeposit = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): CommunityPoolSpendProposalWithDeposit {
|
||||
const message = { ...baseCommunityPoolSpendProposalWithDeposit } as CommunityPoolSpendProposalWithDeposit;
|
||||
const message = Object.create(
|
||||
baseCommunityPoolSpendProposalWithDeposit,
|
||||
) as CommunityPoolSpendProposalWithDeposit;
|
||||
if (object.title !== undefined && object.title !== null) {
|
||||
message.title = String(object.title);
|
||||
} else {
|
||||
|
@ -184,7 +184,7 @@ export const QueryParamsRequest = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsRequest {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryParamsRequest } as QueryParamsRequest;
|
||||
const message = Object.create(baseQueryParamsRequest) as QueryParamsRequest;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -197,7 +197,7 @@ export const QueryParamsRequest = {
|
||||
},
|
||||
|
||||
fromJSON(_: any): QueryParamsRequest {
|
||||
const message = { ...baseQueryParamsRequest } as QueryParamsRequest;
|
||||
const message = Object.create(baseQueryParamsRequest) as QueryParamsRequest;
|
||||
return message;
|
||||
},
|
||||
|
||||
@ -216,7 +216,7 @@ const baseQueryParamsResponse: object = {};
|
||||
|
||||
export const QueryParamsResponse = {
|
||||
encode(message: QueryParamsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
if (message.params !== undefined && message.params !== undefined) {
|
||||
if (message.params !== undefined) {
|
||||
Params.encode(message.params, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -225,7 +225,7 @@ export const QueryParamsResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryParamsResponse } as QueryParamsResponse;
|
||||
const message = Object.create(baseQueryParamsResponse) as QueryParamsResponse;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -241,7 +241,7 @@ export const QueryParamsResponse = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryParamsResponse {
|
||||
const message = { ...baseQueryParamsResponse } as QueryParamsResponse;
|
||||
const message = Object.create(baseQueryParamsResponse) as QueryParamsResponse;
|
||||
if (object.params !== undefined && object.params !== null) {
|
||||
message.params = Params.fromJSON(object.params);
|
||||
} else {
|
||||
@ -281,9 +281,9 @@ export const QueryValidatorOutstandingRewardsRequest = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorOutstandingRewardsRequest {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = {
|
||||
...baseQueryValidatorOutstandingRewardsRequest,
|
||||
} as QueryValidatorOutstandingRewardsRequest;
|
||||
const message = Object.create(
|
||||
baseQueryValidatorOutstandingRewardsRequest,
|
||||
) as QueryValidatorOutstandingRewardsRequest;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -299,9 +299,9 @@ export const QueryValidatorOutstandingRewardsRequest = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryValidatorOutstandingRewardsRequest {
|
||||
const message = {
|
||||
...baseQueryValidatorOutstandingRewardsRequest,
|
||||
} as QueryValidatorOutstandingRewardsRequest;
|
||||
const message = Object.create(
|
||||
baseQueryValidatorOutstandingRewardsRequest,
|
||||
) as QueryValidatorOutstandingRewardsRequest;
|
||||
if (object.validatorAddress !== undefined && object.validatorAddress !== null) {
|
||||
message.validatorAddress = String(object.validatorAddress);
|
||||
} else {
|
||||
@ -338,7 +338,7 @@ export const QueryValidatorOutstandingRewardsResponse = {
|
||||
message: QueryValidatorOutstandingRewardsResponse,
|
||||
writer: _m0.Writer = _m0.Writer.create(),
|
||||
): _m0.Writer {
|
||||
if (message.rewards !== undefined && message.rewards !== undefined) {
|
||||
if (message.rewards !== undefined) {
|
||||
ValidatorOutstandingRewards.encode(message.rewards, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -347,9 +347,9 @@ export const QueryValidatorOutstandingRewardsResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorOutstandingRewardsResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = {
|
||||
...baseQueryValidatorOutstandingRewardsResponse,
|
||||
} as QueryValidatorOutstandingRewardsResponse;
|
||||
const message = Object.create(
|
||||
baseQueryValidatorOutstandingRewardsResponse,
|
||||
) as QueryValidatorOutstandingRewardsResponse;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -365,9 +365,9 @@ export const QueryValidatorOutstandingRewardsResponse = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryValidatorOutstandingRewardsResponse {
|
||||
const message = {
|
||||
...baseQueryValidatorOutstandingRewardsResponse,
|
||||
} as QueryValidatorOutstandingRewardsResponse;
|
||||
const message = Object.create(
|
||||
baseQueryValidatorOutstandingRewardsResponse,
|
||||
) as QueryValidatorOutstandingRewardsResponse;
|
||||
if (object.rewards !== undefined && object.rewards !== null) {
|
||||
message.rewards = ValidatorOutstandingRewards.fromJSON(object.rewards);
|
||||
} else {
|
||||
@ -409,7 +409,7 @@ export const QueryValidatorCommissionRequest = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorCommissionRequest {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryValidatorCommissionRequest } as QueryValidatorCommissionRequest;
|
||||
const message = Object.create(baseQueryValidatorCommissionRequest) as QueryValidatorCommissionRequest;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -425,7 +425,7 @@ export const QueryValidatorCommissionRequest = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryValidatorCommissionRequest {
|
||||
const message = { ...baseQueryValidatorCommissionRequest } as QueryValidatorCommissionRequest;
|
||||
const message = Object.create(baseQueryValidatorCommissionRequest) as QueryValidatorCommissionRequest;
|
||||
if (object.validatorAddress !== undefined && object.validatorAddress !== null) {
|
||||
message.validatorAddress = String(object.validatorAddress);
|
||||
} else {
|
||||
@ -455,7 +455,7 @@ const baseQueryValidatorCommissionResponse: object = {};
|
||||
|
||||
export const QueryValidatorCommissionResponse = {
|
||||
encode(message: QueryValidatorCommissionResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
if (message.commission !== undefined && message.commission !== undefined) {
|
||||
if (message.commission !== undefined) {
|
||||
ValidatorAccumulatedCommission.encode(message.commission, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -464,7 +464,7 @@ export const QueryValidatorCommissionResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorCommissionResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryValidatorCommissionResponse } as QueryValidatorCommissionResponse;
|
||||
const message = Object.create(baseQueryValidatorCommissionResponse) as QueryValidatorCommissionResponse;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -480,7 +480,7 @@ export const QueryValidatorCommissionResponse = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryValidatorCommissionResponse {
|
||||
const message = { ...baseQueryValidatorCommissionResponse } as QueryValidatorCommissionResponse;
|
||||
const message = Object.create(baseQueryValidatorCommissionResponse) as QueryValidatorCommissionResponse;
|
||||
if (object.commission !== undefined && object.commission !== null) {
|
||||
message.commission = ValidatorAccumulatedCommission.fromJSON(object.commission);
|
||||
} else {
|
||||
@ -520,7 +520,7 @@ export const QueryValidatorSlashesRequest = {
|
||||
writer.uint32(10).string(message.validatorAddress);
|
||||
writer.uint32(16).uint64(message.startingHeight);
|
||||
writer.uint32(24).uint64(message.endingHeight);
|
||||
if (message.pagination !== undefined && message.pagination !== undefined) {
|
||||
if (message.pagination !== undefined) {
|
||||
PageRequest.encode(message.pagination, writer.uint32(34).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -529,7 +529,7 @@ export const QueryValidatorSlashesRequest = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorSlashesRequest {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryValidatorSlashesRequest } as QueryValidatorSlashesRequest;
|
||||
const message = Object.create(baseQueryValidatorSlashesRequest) as QueryValidatorSlashesRequest;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -554,7 +554,7 @@ export const QueryValidatorSlashesRequest = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryValidatorSlashesRequest {
|
||||
const message = { ...baseQueryValidatorSlashesRequest } as QueryValidatorSlashesRequest;
|
||||
const message = Object.create(baseQueryValidatorSlashesRequest) as QueryValidatorSlashesRequest;
|
||||
if (object.validatorAddress !== undefined && object.validatorAddress !== null) {
|
||||
message.validatorAddress = String(object.validatorAddress);
|
||||
} else {
|
||||
@ -623,7 +623,7 @@ export const QueryValidatorSlashesResponse = {
|
||||
for (const v of message.slashes) {
|
||||
ValidatorSlashEvent.encode(v!, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
if (message.pagination !== undefined && message.pagination !== undefined) {
|
||||
if (message.pagination !== undefined) {
|
||||
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -632,7 +632,7 @@ export const QueryValidatorSlashesResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorSlashesResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryValidatorSlashesResponse } as QueryValidatorSlashesResponse;
|
||||
const message = Object.create(baseQueryValidatorSlashesResponse) as QueryValidatorSlashesResponse;
|
||||
message.slashes = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -652,7 +652,7 @@ export const QueryValidatorSlashesResponse = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryValidatorSlashesResponse {
|
||||
const message = { ...baseQueryValidatorSlashesResponse } as QueryValidatorSlashesResponse;
|
||||
const message = Object.create(baseQueryValidatorSlashesResponse) as QueryValidatorSlashesResponse;
|
||||
message.slashes = [];
|
||||
if (object.slashes !== undefined && object.slashes !== null) {
|
||||
for (const e of object.slashes) {
|
||||
@ -708,7 +708,7 @@ export const QueryDelegationRewardsRequest = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegationRewardsRequest {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryDelegationRewardsRequest } as QueryDelegationRewardsRequest;
|
||||
const message = Object.create(baseQueryDelegationRewardsRequest) as QueryDelegationRewardsRequest;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -727,7 +727,7 @@ export const QueryDelegationRewardsRequest = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryDelegationRewardsRequest {
|
||||
const message = { ...baseQueryDelegationRewardsRequest } as QueryDelegationRewardsRequest;
|
||||
const message = Object.create(baseQueryDelegationRewardsRequest) as QueryDelegationRewardsRequest;
|
||||
if (object.delegatorAddress !== undefined && object.delegatorAddress !== null) {
|
||||
message.delegatorAddress = String(object.delegatorAddress);
|
||||
} else {
|
||||
@ -777,7 +777,7 @@ export const QueryDelegationRewardsResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegationRewardsResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryDelegationRewardsResponse } as QueryDelegationRewardsResponse;
|
||||
const message = Object.create(baseQueryDelegationRewardsResponse) as QueryDelegationRewardsResponse;
|
||||
message.rewards = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -794,7 +794,7 @@ export const QueryDelegationRewardsResponse = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryDelegationRewardsResponse {
|
||||
const message = { ...baseQueryDelegationRewardsResponse } as QueryDelegationRewardsResponse;
|
||||
const message = Object.create(baseQueryDelegationRewardsResponse) as QueryDelegationRewardsResponse;
|
||||
message.rewards = [];
|
||||
if (object.rewards !== undefined && object.rewards !== null) {
|
||||
for (const e of object.rewards) {
|
||||
@ -837,7 +837,9 @@ export const QueryDelegationTotalRewardsRequest = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegationTotalRewardsRequest {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryDelegationTotalRewardsRequest } as QueryDelegationTotalRewardsRequest;
|
||||
const message = Object.create(
|
||||
baseQueryDelegationTotalRewardsRequest,
|
||||
) as QueryDelegationTotalRewardsRequest;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -853,7 +855,9 @@ export const QueryDelegationTotalRewardsRequest = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryDelegationTotalRewardsRequest {
|
||||
const message = { ...baseQueryDelegationTotalRewardsRequest } as QueryDelegationTotalRewardsRequest;
|
||||
const message = Object.create(
|
||||
baseQueryDelegationTotalRewardsRequest,
|
||||
) as QueryDelegationTotalRewardsRequest;
|
||||
if (object.delegatorAddress !== undefined && object.delegatorAddress !== null) {
|
||||
message.delegatorAddress = String(object.delegatorAddress);
|
||||
} else {
|
||||
@ -895,7 +899,9 @@ export const QueryDelegationTotalRewardsResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegationTotalRewardsResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryDelegationTotalRewardsResponse } as QueryDelegationTotalRewardsResponse;
|
||||
const message = Object.create(
|
||||
baseQueryDelegationTotalRewardsResponse,
|
||||
) as QueryDelegationTotalRewardsResponse;
|
||||
message.rewards = [];
|
||||
message.total = [];
|
||||
while (reader.pos < end) {
|
||||
@ -916,7 +922,9 @@ export const QueryDelegationTotalRewardsResponse = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryDelegationTotalRewardsResponse {
|
||||
const message = { ...baseQueryDelegationTotalRewardsResponse } as QueryDelegationTotalRewardsResponse;
|
||||
const message = Object.create(
|
||||
baseQueryDelegationTotalRewardsResponse,
|
||||
) as QueryDelegationTotalRewardsResponse;
|
||||
message.rewards = [];
|
||||
message.total = [];
|
||||
if (object.rewards !== undefined && object.rewards !== null) {
|
||||
@ -976,7 +984,7 @@ export const QueryDelegatorValidatorsRequest = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegatorValidatorsRequest {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryDelegatorValidatorsRequest } as QueryDelegatorValidatorsRequest;
|
||||
const message = Object.create(baseQueryDelegatorValidatorsRequest) as QueryDelegatorValidatorsRequest;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -992,7 +1000,7 @@ export const QueryDelegatorValidatorsRequest = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryDelegatorValidatorsRequest {
|
||||
const message = { ...baseQueryDelegatorValidatorsRequest } as QueryDelegatorValidatorsRequest;
|
||||
const message = Object.create(baseQueryDelegatorValidatorsRequest) as QueryDelegatorValidatorsRequest;
|
||||
if (object.delegatorAddress !== undefined && object.delegatorAddress !== null) {
|
||||
message.delegatorAddress = String(object.delegatorAddress);
|
||||
} else {
|
||||
@ -1031,7 +1039,7 @@ export const QueryDelegatorValidatorsResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegatorValidatorsResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryDelegatorValidatorsResponse } as QueryDelegatorValidatorsResponse;
|
||||
const message = Object.create(baseQueryDelegatorValidatorsResponse) as QueryDelegatorValidatorsResponse;
|
||||
message.validators = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -1048,7 +1056,7 @@ export const QueryDelegatorValidatorsResponse = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryDelegatorValidatorsResponse {
|
||||
const message = { ...baseQueryDelegatorValidatorsResponse } as QueryDelegatorValidatorsResponse;
|
||||
const message = Object.create(baseQueryDelegatorValidatorsResponse) as QueryDelegatorValidatorsResponse;
|
||||
message.validators = [];
|
||||
if (object.validators !== undefined && object.validators !== null) {
|
||||
for (const e of object.validators) {
|
||||
@ -1094,7 +1102,9 @@ export const QueryDelegatorWithdrawAddressRequest = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegatorWithdrawAddressRequest {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryDelegatorWithdrawAddressRequest } as QueryDelegatorWithdrawAddressRequest;
|
||||
const message = Object.create(
|
||||
baseQueryDelegatorWithdrawAddressRequest,
|
||||
) as QueryDelegatorWithdrawAddressRequest;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -1110,7 +1120,9 @@ export const QueryDelegatorWithdrawAddressRequest = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryDelegatorWithdrawAddressRequest {
|
||||
const message = { ...baseQueryDelegatorWithdrawAddressRequest } as QueryDelegatorWithdrawAddressRequest;
|
||||
const message = Object.create(
|
||||
baseQueryDelegatorWithdrawAddressRequest,
|
||||
) as QueryDelegatorWithdrawAddressRequest;
|
||||
if (object.delegatorAddress !== undefined && object.delegatorAddress !== null) {
|
||||
message.delegatorAddress = String(object.delegatorAddress);
|
||||
} else {
|
||||
@ -1152,7 +1164,9 @@ export const QueryDelegatorWithdrawAddressResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegatorWithdrawAddressResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryDelegatorWithdrawAddressResponse } as QueryDelegatorWithdrawAddressResponse;
|
||||
const message = Object.create(
|
||||
baseQueryDelegatorWithdrawAddressResponse,
|
||||
) as QueryDelegatorWithdrawAddressResponse;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -1168,7 +1182,9 @@ export const QueryDelegatorWithdrawAddressResponse = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryDelegatorWithdrawAddressResponse {
|
||||
const message = { ...baseQueryDelegatorWithdrawAddressResponse } as QueryDelegatorWithdrawAddressResponse;
|
||||
const message = Object.create(
|
||||
baseQueryDelegatorWithdrawAddressResponse,
|
||||
) as QueryDelegatorWithdrawAddressResponse;
|
||||
if (object.withdrawAddress !== undefined && object.withdrawAddress !== null) {
|
||||
message.withdrawAddress = String(object.withdrawAddress);
|
||||
} else {
|
||||
@ -1206,7 +1222,7 @@ export const QueryCommunityPoolRequest = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryCommunityPoolRequest {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryCommunityPoolRequest } as QueryCommunityPoolRequest;
|
||||
const message = Object.create(baseQueryCommunityPoolRequest) as QueryCommunityPoolRequest;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -1219,7 +1235,7 @@ export const QueryCommunityPoolRequest = {
|
||||
},
|
||||
|
||||
fromJSON(_: any): QueryCommunityPoolRequest {
|
||||
const message = { ...baseQueryCommunityPoolRequest } as QueryCommunityPoolRequest;
|
||||
const message = Object.create(baseQueryCommunityPoolRequest) as QueryCommunityPoolRequest;
|
||||
return message;
|
||||
},
|
||||
|
||||
@ -1247,7 +1263,7 @@ export const QueryCommunityPoolResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryCommunityPoolResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryCommunityPoolResponse } as QueryCommunityPoolResponse;
|
||||
const message = Object.create(baseQueryCommunityPoolResponse) as QueryCommunityPoolResponse;
|
||||
message.pool = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -1264,7 +1280,7 @@ export const QueryCommunityPoolResponse = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryCommunityPoolResponse {
|
||||
const message = { ...baseQueryCommunityPoolResponse } as QueryCommunityPoolResponse;
|
||||
const message = Object.create(baseQueryCommunityPoolResponse) as QueryCommunityPoolResponse;
|
||||
message.pool = [];
|
||||
if (object.pool !== undefined && object.pool !== null) {
|
||||
for (const e of object.pool) {
|
||||
|
@ -64,7 +64,7 @@ export const MsgSetWithdrawAddress = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgSetWithdrawAddress {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseMsgSetWithdrawAddress } as MsgSetWithdrawAddress;
|
||||
const message = Object.create(baseMsgSetWithdrawAddress) as MsgSetWithdrawAddress;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -83,7 +83,7 @@ export const MsgSetWithdrawAddress = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): MsgSetWithdrawAddress {
|
||||
const message = { ...baseMsgSetWithdrawAddress } as MsgSetWithdrawAddress;
|
||||
const message = Object.create(baseMsgSetWithdrawAddress) as MsgSetWithdrawAddress;
|
||||
if (object.delegatorAddress !== undefined && object.delegatorAddress !== null) {
|
||||
message.delegatorAddress = String(object.delegatorAddress);
|
||||
} else {
|
||||
@ -130,7 +130,7 @@ export const MsgSetWithdrawAddressResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgSetWithdrawAddressResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseMsgSetWithdrawAddressResponse } as MsgSetWithdrawAddressResponse;
|
||||
const message = Object.create(baseMsgSetWithdrawAddressResponse) as MsgSetWithdrawAddressResponse;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -143,7 +143,7 @@ export const MsgSetWithdrawAddressResponse = {
|
||||
},
|
||||
|
||||
fromJSON(_: any): MsgSetWithdrawAddressResponse {
|
||||
const message = { ...baseMsgSetWithdrawAddressResponse } as MsgSetWithdrawAddressResponse;
|
||||
const message = Object.create(baseMsgSetWithdrawAddressResponse) as MsgSetWithdrawAddressResponse;
|
||||
return message;
|
||||
},
|
||||
|
||||
@ -170,7 +170,7 @@ export const MsgWithdrawDelegatorReward = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgWithdrawDelegatorReward {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseMsgWithdrawDelegatorReward } as MsgWithdrawDelegatorReward;
|
||||
const message = Object.create(baseMsgWithdrawDelegatorReward) as MsgWithdrawDelegatorReward;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -189,7 +189,7 @@ export const MsgWithdrawDelegatorReward = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): MsgWithdrawDelegatorReward {
|
||||
const message = { ...baseMsgWithdrawDelegatorReward } as MsgWithdrawDelegatorReward;
|
||||
const message = Object.create(baseMsgWithdrawDelegatorReward) as MsgWithdrawDelegatorReward;
|
||||
if (object.delegatorAddress !== undefined && object.delegatorAddress !== null) {
|
||||
message.delegatorAddress = String(object.delegatorAddress);
|
||||
} else {
|
||||
@ -236,7 +236,9 @@ export const MsgWithdrawDelegatorRewardResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgWithdrawDelegatorRewardResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseMsgWithdrawDelegatorRewardResponse } as MsgWithdrawDelegatorRewardResponse;
|
||||
const message = Object.create(
|
||||
baseMsgWithdrawDelegatorRewardResponse,
|
||||
) as MsgWithdrawDelegatorRewardResponse;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -249,7 +251,9 @@ export const MsgWithdrawDelegatorRewardResponse = {
|
||||
},
|
||||
|
||||
fromJSON(_: any): MsgWithdrawDelegatorRewardResponse {
|
||||
const message = { ...baseMsgWithdrawDelegatorRewardResponse } as MsgWithdrawDelegatorRewardResponse;
|
||||
const message = Object.create(
|
||||
baseMsgWithdrawDelegatorRewardResponse,
|
||||
) as MsgWithdrawDelegatorRewardResponse;
|
||||
return message;
|
||||
},
|
||||
|
||||
@ -275,7 +279,7 @@ export const MsgWithdrawValidatorCommission = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgWithdrawValidatorCommission {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseMsgWithdrawValidatorCommission } as MsgWithdrawValidatorCommission;
|
||||
const message = Object.create(baseMsgWithdrawValidatorCommission) as MsgWithdrawValidatorCommission;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -291,7 +295,7 @@ export const MsgWithdrawValidatorCommission = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): MsgWithdrawValidatorCommission {
|
||||
const message = { ...baseMsgWithdrawValidatorCommission } as MsgWithdrawValidatorCommission;
|
||||
const message = Object.create(baseMsgWithdrawValidatorCommission) as MsgWithdrawValidatorCommission;
|
||||
if (object.validatorAddress !== undefined && object.validatorAddress !== null) {
|
||||
message.validatorAddress = String(object.validatorAddress);
|
||||
} else {
|
||||
@ -327,9 +331,9 @@ export const MsgWithdrawValidatorCommissionResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgWithdrawValidatorCommissionResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = {
|
||||
...baseMsgWithdrawValidatorCommissionResponse,
|
||||
} as MsgWithdrawValidatorCommissionResponse;
|
||||
const message = Object.create(
|
||||
baseMsgWithdrawValidatorCommissionResponse,
|
||||
) as MsgWithdrawValidatorCommissionResponse;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -342,9 +346,9 @@ export const MsgWithdrawValidatorCommissionResponse = {
|
||||
},
|
||||
|
||||
fromJSON(_: any): MsgWithdrawValidatorCommissionResponse {
|
||||
const message = {
|
||||
...baseMsgWithdrawValidatorCommissionResponse,
|
||||
} as MsgWithdrawValidatorCommissionResponse;
|
||||
const message = Object.create(
|
||||
baseMsgWithdrawValidatorCommissionResponse,
|
||||
) as MsgWithdrawValidatorCommissionResponse;
|
||||
return message;
|
||||
},
|
||||
|
||||
@ -377,7 +381,7 @@ export const MsgFundCommunityPool = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgFundCommunityPool {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseMsgFundCommunityPool } as MsgFundCommunityPool;
|
||||
const message = Object.create(baseMsgFundCommunityPool) as MsgFundCommunityPool;
|
||||
message.amount = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -397,7 +401,7 @@ export const MsgFundCommunityPool = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): MsgFundCommunityPool {
|
||||
const message = { ...baseMsgFundCommunityPool } as MsgFundCommunityPool;
|
||||
const message = Object.create(baseMsgFundCommunityPool) as MsgFundCommunityPool;
|
||||
message.amount = [];
|
||||
if (object.amount !== undefined && object.amount !== null) {
|
||||
for (const e of object.amount) {
|
||||
@ -450,7 +454,7 @@ export const MsgFundCommunityPoolResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgFundCommunityPoolResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseMsgFundCommunityPoolResponse } as MsgFundCommunityPoolResponse;
|
||||
const message = Object.create(baseMsgFundCommunityPoolResponse) as MsgFundCommunityPoolResponse;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -463,7 +467,7 @@ export const MsgFundCommunityPoolResponse = {
|
||||
},
|
||||
|
||||
fromJSON(_: any): MsgFundCommunityPoolResponse {
|
||||
const message = { ...baseMsgFundCommunityPoolResponse } as MsgFundCommunityPoolResponse;
|
||||
const message = Object.create(baseMsgFundCommunityPoolResponse) as MsgFundCommunityPoolResponse;
|
||||
return message;
|
||||
},
|
||||
|
||||
|
@ -269,7 +269,7 @@ const baseQueryValidatorsRequest: object = { status: "" };
|
||||
export const QueryValidatorsRequest = {
|
||||
encode(message: QueryValidatorsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
writer.uint32(10).string(message.status);
|
||||
if (message.pagination !== undefined && message.pagination !== undefined) {
|
||||
if (message.pagination !== undefined) {
|
||||
PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -278,7 +278,7 @@ export const QueryValidatorsRequest = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorsRequest {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryValidatorsRequest } as QueryValidatorsRequest;
|
||||
const message = Object.create(baseQueryValidatorsRequest) as QueryValidatorsRequest;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -297,7 +297,7 @@ export const QueryValidatorsRequest = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryValidatorsRequest {
|
||||
const message = { ...baseQueryValidatorsRequest } as QueryValidatorsRequest;
|
||||
const message = Object.create(baseQueryValidatorsRequest) as QueryValidatorsRequest;
|
||||
if (object.status !== undefined && object.status !== null) {
|
||||
message.status = String(object.status);
|
||||
} else {
|
||||
@ -342,7 +342,7 @@ export const QueryValidatorsResponse = {
|
||||
for (const v of message.validators) {
|
||||
Validator.encode(v!, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
if (message.pagination !== undefined && message.pagination !== undefined) {
|
||||
if (message.pagination !== undefined) {
|
||||
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -351,7 +351,7 @@ export const QueryValidatorsResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorsResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryValidatorsResponse } as QueryValidatorsResponse;
|
||||
const message = Object.create(baseQueryValidatorsResponse) as QueryValidatorsResponse;
|
||||
message.validators = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -371,7 +371,7 @@ export const QueryValidatorsResponse = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryValidatorsResponse {
|
||||
const message = { ...baseQueryValidatorsResponse } as QueryValidatorsResponse;
|
||||
const message = Object.create(baseQueryValidatorsResponse) as QueryValidatorsResponse;
|
||||
message.validators = [];
|
||||
if (object.validators !== undefined && object.validators !== null) {
|
||||
for (const e of object.validators) {
|
||||
@ -426,7 +426,7 @@ export const QueryValidatorRequest = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorRequest {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryValidatorRequest } as QueryValidatorRequest;
|
||||
const message = Object.create(baseQueryValidatorRequest) as QueryValidatorRequest;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -442,7 +442,7 @@ export const QueryValidatorRequest = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryValidatorRequest {
|
||||
const message = { ...baseQueryValidatorRequest } as QueryValidatorRequest;
|
||||
const message = Object.create(baseQueryValidatorRequest) as QueryValidatorRequest;
|
||||
if (object.validatorAddr !== undefined && object.validatorAddr !== null) {
|
||||
message.validatorAddr = String(object.validatorAddr);
|
||||
} else {
|
||||
@ -472,7 +472,7 @@ const baseQueryValidatorResponse: object = {};
|
||||
|
||||
export const QueryValidatorResponse = {
|
||||
encode(message: QueryValidatorResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
if (message.validator !== undefined && message.validator !== undefined) {
|
||||
if (message.validator !== undefined) {
|
||||
Validator.encode(message.validator, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -481,7 +481,7 @@ export const QueryValidatorResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryValidatorResponse } as QueryValidatorResponse;
|
||||
const message = Object.create(baseQueryValidatorResponse) as QueryValidatorResponse;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -497,7 +497,7 @@ export const QueryValidatorResponse = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryValidatorResponse {
|
||||
const message = { ...baseQueryValidatorResponse } as QueryValidatorResponse;
|
||||
const message = Object.create(baseQueryValidatorResponse) as QueryValidatorResponse;
|
||||
if (object.validator !== undefined && object.validator !== null) {
|
||||
message.validator = Validator.fromJSON(object.validator);
|
||||
} else {
|
||||
@ -529,7 +529,7 @@ const baseQueryValidatorDelegationsRequest: object = { validatorAddr: "" };
|
||||
export const QueryValidatorDelegationsRequest = {
|
||||
encode(message: QueryValidatorDelegationsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
writer.uint32(10).string(message.validatorAddr);
|
||||
if (message.pagination !== undefined && message.pagination !== undefined) {
|
||||
if (message.pagination !== undefined) {
|
||||
PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -538,7 +538,7 @@ export const QueryValidatorDelegationsRequest = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorDelegationsRequest {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryValidatorDelegationsRequest } as QueryValidatorDelegationsRequest;
|
||||
const message = Object.create(baseQueryValidatorDelegationsRequest) as QueryValidatorDelegationsRequest;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -557,7 +557,7 @@ export const QueryValidatorDelegationsRequest = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryValidatorDelegationsRequest {
|
||||
const message = { ...baseQueryValidatorDelegationsRequest } as QueryValidatorDelegationsRequest;
|
||||
const message = Object.create(baseQueryValidatorDelegationsRequest) as QueryValidatorDelegationsRequest;
|
||||
if (object.validatorAddr !== undefined && object.validatorAddr !== null) {
|
||||
message.validatorAddr = String(object.validatorAddr);
|
||||
} else {
|
||||
@ -602,7 +602,7 @@ export const QueryValidatorDelegationsResponse = {
|
||||
for (const v of message.delegationResponses) {
|
||||
DelegationResponse.encode(v!, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
if (message.pagination !== undefined && message.pagination !== undefined) {
|
||||
if (message.pagination !== undefined) {
|
||||
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -611,7 +611,7 @@ export const QueryValidatorDelegationsResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorDelegationsResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryValidatorDelegationsResponse } as QueryValidatorDelegationsResponse;
|
||||
const message = Object.create(baseQueryValidatorDelegationsResponse) as QueryValidatorDelegationsResponse;
|
||||
message.delegationResponses = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -631,7 +631,7 @@ export const QueryValidatorDelegationsResponse = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryValidatorDelegationsResponse {
|
||||
const message = { ...baseQueryValidatorDelegationsResponse } as QueryValidatorDelegationsResponse;
|
||||
const message = Object.create(baseQueryValidatorDelegationsResponse) as QueryValidatorDelegationsResponse;
|
||||
message.delegationResponses = [];
|
||||
if (object.delegationResponses !== undefined && object.delegationResponses !== null) {
|
||||
for (const e of object.delegationResponses) {
|
||||
@ -685,7 +685,7 @@ export const QueryValidatorUnbondingDelegationsRequest = {
|
||||
writer: _m0.Writer = _m0.Writer.create(),
|
||||
): _m0.Writer {
|
||||
writer.uint32(10).string(message.validatorAddr);
|
||||
if (message.pagination !== undefined && message.pagination !== undefined) {
|
||||
if (message.pagination !== undefined) {
|
||||
PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -694,9 +694,9 @@ export const QueryValidatorUnbondingDelegationsRequest = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorUnbondingDelegationsRequest {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = {
|
||||
...baseQueryValidatorUnbondingDelegationsRequest,
|
||||
} as QueryValidatorUnbondingDelegationsRequest;
|
||||
const message = Object.create(
|
||||
baseQueryValidatorUnbondingDelegationsRequest,
|
||||
) as QueryValidatorUnbondingDelegationsRequest;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -715,9 +715,9 @@ export const QueryValidatorUnbondingDelegationsRequest = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryValidatorUnbondingDelegationsRequest {
|
||||
const message = {
|
||||
...baseQueryValidatorUnbondingDelegationsRequest,
|
||||
} as QueryValidatorUnbondingDelegationsRequest;
|
||||
const message = Object.create(
|
||||
baseQueryValidatorUnbondingDelegationsRequest,
|
||||
) as QueryValidatorUnbondingDelegationsRequest;
|
||||
if (object.validatorAddr !== undefined && object.validatorAddr !== null) {
|
||||
message.validatorAddr = String(object.validatorAddr);
|
||||
} else {
|
||||
@ -769,7 +769,7 @@ export const QueryValidatorUnbondingDelegationsResponse = {
|
||||
for (const v of message.unbondingResponses) {
|
||||
UnbondingDelegation.encode(v!, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
if (message.pagination !== undefined && message.pagination !== undefined) {
|
||||
if (message.pagination !== undefined) {
|
||||
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -778,9 +778,9 @@ export const QueryValidatorUnbondingDelegationsResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorUnbondingDelegationsResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = {
|
||||
...baseQueryValidatorUnbondingDelegationsResponse,
|
||||
} as QueryValidatorUnbondingDelegationsResponse;
|
||||
const message = Object.create(
|
||||
baseQueryValidatorUnbondingDelegationsResponse,
|
||||
) as QueryValidatorUnbondingDelegationsResponse;
|
||||
message.unbondingResponses = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -800,9 +800,9 @@ export const QueryValidatorUnbondingDelegationsResponse = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryValidatorUnbondingDelegationsResponse {
|
||||
const message = {
|
||||
...baseQueryValidatorUnbondingDelegationsResponse,
|
||||
} as QueryValidatorUnbondingDelegationsResponse;
|
||||
const message = Object.create(
|
||||
baseQueryValidatorUnbondingDelegationsResponse,
|
||||
) as QueryValidatorUnbondingDelegationsResponse;
|
||||
message.unbondingResponses = [];
|
||||
if (object.unbondingResponses !== undefined && object.unbondingResponses !== null) {
|
||||
for (const e of object.unbondingResponses) {
|
||||
@ -864,7 +864,7 @@ export const QueryDelegationRequest = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegationRequest {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryDelegationRequest } as QueryDelegationRequest;
|
||||
const message = Object.create(baseQueryDelegationRequest) as QueryDelegationRequest;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -883,7 +883,7 @@ export const QueryDelegationRequest = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryDelegationRequest {
|
||||
const message = { ...baseQueryDelegationRequest } as QueryDelegationRequest;
|
||||
const message = Object.create(baseQueryDelegationRequest) as QueryDelegationRequest;
|
||||
if (object.delegatorAddr !== undefined && object.delegatorAddr !== null) {
|
||||
message.delegatorAddr = String(object.delegatorAddr);
|
||||
} else {
|
||||
@ -924,7 +924,7 @@ const baseQueryDelegationResponse: object = {};
|
||||
|
||||
export const QueryDelegationResponse = {
|
||||
encode(message: QueryDelegationResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
if (message.delegationResponse !== undefined && message.delegationResponse !== undefined) {
|
||||
if (message.delegationResponse !== undefined) {
|
||||
DelegationResponse.encode(message.delegationResponse, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -933,7 +933,7 @@ export const QueryDelegationResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegationResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryDelegationResponse } as QueryDelegationResponse;
|
||||
const message = Object.create(baseQueryDelegationResponse) as QueryDelegationResponse;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -949,7 +949,7 @@ export const QueryDelegationResponse = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryDelegationResponse {
|
||||
const message = { ...baseQueryDelegationResponse } as QueryDelegationResponse;
|
||||
const message = Object.create(baseQueryDelegationResponse) as QueryDelegationResponse;
|
||||
if (object.delegationResponse !== undefined && object.delegationResponse !== null) {
|
||||
message.delegationResponse = DelegationResponse.fromJSON(object.delegationResponse);
|
||||
} else {
|
||||
@ -990,7 +990,7 @@ export const QueryUnbondingDelegationRequest = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryUnbondingDelegationRequest {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryUnbondingDelegationRequest } as QueryUnbondingDelegationRequest;
|
||||
const message = Object.create(baseQueryUnbondingDelegationRequest) as QueryUnbondingDelegationRequest;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -1009,7 +1009,7 @@ export const QueryUnbondingDelegationRequest = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryUnbondingDelegationRequest {
|
||||
const message = { ...baseQueryUnbondingDelegationRequest } as QueryUnbondingDelegationRequest;
|
||||
const message = Object.create(baseQueryUnbondingDelegationRequest) as QueryUnbondingDelegationRequest;
|
||||
if (object.delegatorAddr !== undefined && object.delegatorAddr !== null) {
|
||||
message.delegatorAddr = String(object.delegatorAddr);
|
||||
} else {
|
||||
@ -1050,7 +1050,7 @@ const baseQueryUnbondingDelegationResponse: object = {};
|
||||
|
||||
export const QueryUnbondingDelegationResponse = {
|
||||
encode(message: QueryUnbondingDelegationResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
if (message.unbond !== undefined && message.unbond !== undefined) {
|
||||
if (message.unbond !== undefined) {
|
||||
UnbondingDelegation.encode(message.unbond, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -1059,7 +1059,7 @@ export const QueryUnbondingDelegationResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryUnbondingDelegationResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryUnbondingDelegationResponse } as QueryUnbondingDelegationResponse;
|
||||
const message = Object.create(baseQueryUnbondingDelegationResponse) as QueryUnbondingDelegationResponse;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -1075,7 +1075,7 @@ export const QueryUnbondingDelegationResponse = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryUnbondingDelegationResponse {
|
||||
const message = { ...baseQueryUnbondingDelegationResponse } as QueryUnbondingDelegationResponse;
|
||||
const message = Object.create(baseQueryUnbondingDelegationResponse) as QueryUnbondingDelegationResponse;
|
||||
if (object.unbond !== undefined && object.unbond !== null) {
|
||||
message.unbond = UnbondingDelegation.fromJSON(object.unbond);
|
||||
} else {
|
||||
@ -1107,7 +1107,7 @@ const baseQueryDelegatorDelegationsRequest: object = { delegatorAddr: "" };
|
||||
export const QueryDelegatorDelegationsRequest = {
|
||||
encode(message: QueryDelegatorDelegationsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
writer.uint32(10).string(message.delegatorAddr);
|
||||
if (message.pagination !== undefined && message.pagination !== undefined) {
|
||||
if (message.pagination !== undefined) {
|
||||
PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -1116,7 +1116,7 @@ export const QueryDelegatorDelegationsRequest = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegatorDelegationsRequest {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryDelegatorDelegationsRequest } as QueryDelegatorDelegationsRequest;
|
||||
const message = Object.create(baseQueryDelegatorDelegationsRequest) as QueryDelegatorDelegationsRequest;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -1135,7 +1135,7 @@ export const QueryDelegatorDelegationsRequest = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryDelegatorDelegationsRequest {
|
||||
const message = { ...baseQueryDelegatorDelegationsRequest } as QueryDelegatorDelegationsRequest;
|
||||
const message = Object.create(baseQueryDelegatorDelegationsRequest) as QueryDelegatorDelegationsRequest;
|
||||
if (object.delegatorAddr !== undefined && object.delegatorAddr !== null) {
|
||||
message.delegatorAddr = String(object.delegatorAddr);
|
||||
} else {
|
||||
@ -1180,7 +1180,7 @@ export const QueryDelegatorDelegationsResponse = {
|
||||
for (const v of message.delegationResponses) {
|
||||
DelegationResponse.encode(v!, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
if (message.pagination !== undefined && message.pagination !== undefined) {
|
||||
if (message.pagination !== undefined) {
|
||||
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -1189,7 +1189,7 @@ export const QueryDelegatorDelegationsResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegatorDelegationsResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryDelegatorDelegationsResponse } as QueryDelegatorDelegationsResponse;
|
||||
const message = Object.create(baseQueryDelegatorDelegationsResponse) as QueryDelegatorDelegationsResponse;
|
||||
message.delegationResponses = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -1209,7 +1209,7 @@ export const QueryDelegatorDelegationsResponse = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryDelegatorDelegationsResponse {
|
||||
const message = { ...baseQueryDelegatorDelegationsResponse } as QueryDelegatorDelegationsResponse;
|
||||
const message = Object.create(baseQueryDelegatorDelegationsResponse) as QueryDelegatorDelegationsResponse;
|
||||
message.delegationResponses = [];
|
||||
if (object.delegationResponses !== undefined && object.delegationResponses !== null) {
|
||||
for (const e of object.delegationResponses) {
|
||||
@ -1263,7 +1263,7 @@ export const QueryDelegatorUnbondingDelegationsRequest = {
|
||||
writer: _m0.Writer = _m0.Writer.create(),
|
||||
): _m0.Writer {
|
||||
writer.uint32(10).string(message.delegatorAddr);
|
||||
if (message.pagination !== undefined && message.pagination !== undefined) {
|
||||
if (message.pagination !== undefined) {
|
||||
PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -1272,9 +1272,9 @@ export const QueryDelegatorUnbondingDelegationsRequest = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegatorUnbondingDelegationsRequest {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = {
|
||||
...baseQueryDelegatorUnbondingDelegationsRequest,
|
||||
} as QueryDelegatorUnbondingDelegationsRequest;
|
||||
const message = Object.create(
|
||||
baseQueryDelegatorUnbondingDelegationsRequest,
|
||||
) as QueryDelegatorUnbondingDelegationsRequest;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -1293,9 +1293,9 @@ export const QueryDelegatorUnbondingDelegationsRequest = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryDelegatorUnbondingDelegationsRequest {
|
||||
const message = {
|
||||
...baseQueryDelegatorUnbondingDelegationsRequest,
|
||||
} as QueryDelegatorUnbondingDelegationsRequest;
|
||||
const message = Object.create(
|
||||
baseQueryDelegatorUnbondingDelegationsRequest,
|
||||
) as QueryDelegatorUnbondingDelegationsRequest;
|
||||
if (object.delegatorAddr !== undefined && object.delegatorAddr !== null) {
|
||||
message.delegatorAddr = String(object.delegatorAddr);
|
||||
} else {
|
||||
@ -1347,7 +1347,7 @@ export const QueryDelegatorUnbondingDelegationsResponse = {
|
||||
for (const v of message.unbondingResponses) {
|
||||
UnbondingDelegation.encode(v!, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
if (message.pagination !== undefined && message.pagination !== undefined) {
|
||||
if (message.pagination !== undefined) {
|
||||
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -1356,9 +1356,9 @@ export const QueryDelegatorUnbondingDelegationsResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegatorUnbondingDelegationsResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = {
|
||||
...baseQueryDelegatorUnbondingDelegationsResponse,
|
||||
} as QueryDelegatorUnbondingDelegationsResponse;
|
||||
const message = Object.create(
|
||||
baseQueryDelegatorUnbondingDelegationsResponse,
|
||||
) as QueryDelegatorUnbondingDelegationsResponse;
|
||||
message.unbondingResponses = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -1378,9 +1378,9 @@ export const QueryDelegatorUnbondingDelegationsResponse = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryDelegatorUnbondingDelegationsResponse {
|
||||
const message = {
|
||||
...baseQueryDelegatorUnbondingDelegationsResponse,
|
||||
} as QueryDelegatorUnbondingDelegationsResponse;
|
||||
const message = Object.create(
|
||||
baseQueryDelegatorUnbondingDelegationsResponse,
|
||||
) as QueryDelegatorUnbondingDelegationsResponse;
|
||||
message.unbondingResponses = [];
|
||||
if (object.unbondingResponses !== undefined && object.unbondingResponses !== null) {
|
||||
for (const e of object.unbondingResponses) {
|
||||
@ -1441,7 +1441,7 @@ export const QueryRedelegationsRequest = {
|
||||
writer.uint32(10).string(message.delegatorAddr);
|
||||
writer.uint32(18).string(message.srcValidatorAddr);
|
||||
writer.uint32(26).string(message.dstValidatorAddr);
|
||||
if (message.pagination !== undefined && message.pagination !== undefined) {
|
||||
if (message.pagination !== undefined) {
|
||||
PageRequest.encode(message.pagination, writer.uint32(34).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -1450,7 +1450,7 @@ export const QueryRedelegationsRequest = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryRedelegationsRequest {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryRedelegationsRequest } as QueryRedelegationsRequest;
|
||||
const message = Object.create(baseQueryRedelegationsRequest) as QueryRedelegationsRequest;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -1475,7 +1475,7 @@ export const QueryRedelegationsRequest = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryRedelegationsRequest {
|
||||
const message = { ...baseQueryRedelegationsRequest } as QueryRedelegationsRequest;
|
||||
const message = Object.create(baseQueryRedelegationsRequest) as QueryRedelegationsRequest;
|
||||
if (object.delegatorAddr !== undefined && object.delegatorAddr !== null) {
|
||||
message.delegatorAddr = String(object.delegatorAddr);
|
||||
} else {
|
||||
@ -1542,7 +1542,7 @@ export const QueryRedelegationsResponse = {
|
||||
for (const v of message.redelegationResponses) {
|
||||
RedelegationResponse.encode(v!, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
if (message.pagination !== undefined && message.pagination !== undefined) {
|
||||
if (message.pagination !== undefined) {
|
||||
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -1551,7 +1551,7 @@ export const QueryRedelegationsResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryRedelegationsResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryRedelegationsResponse } as QueryRedelegationsResponse;
|
||||
const message = Object.create(baseQueryRedelegationsResponse) as QueryRedelegationsResponse;
|
||||
message.redelegationResponses = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -1571,7 +1571,7 @@ export const QueryRedelegationsResponse = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryRedelegationsResponse {
|
||||
const message = { ...baseQueryRedelegationsResponse } as QueryRedelegationsResponse;
|
||||
const message = Object.create(baseQueryRedelegationsResponse) as QueryRedelegationsResponse;
|
||||
message.redelegationResponses = [];
|
||||
if (object.redelegationResponses !== undefined && object.redelegationResponses !== null) {
|
||||
for (const e of object.redelegationResponses) {
|
||||
@ -1622,7 +1622,7 @@ const baseQueryDelegatorValidatorsRequest: object = { delegatorAddr: "" };
|
||||
export const QueryDelegatorValidatorsRequest = {
|
||||
encode(message: QueryDelegatorValidatorsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
writer.uint32(10).string(message.delegatorAddr);
|
||||
if (message.pagination !== undefined && message.pagination !== undefined) {
|
||||
if (message.pagination !== undefined) {
|
||||
PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -1631,7 +1631,7 @@ export const QueryDelegatorValidatorsRequest = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegatorValidatorsRequest {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryDelegatorValidatorsRequest } as QueryDelegatorValidatorsRequest;
|
||||
const message = Object.create(baseQueryDelegatorValidatorsRequest) as QueryDelegatorValidatorsRequest;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -1650,7 +1650,7 @@ export const QueryDelegatorValidatorsRequest = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryDelegatorValidatorsRequest {
|
||||
const message = { ...baseQueryDelegatorValidatorsRequest } as QueryDelegatorValidatorsRequest;
|
||||
const message = Object.create(baseQueryDelegatorValidatorsRequest) as QueryDelegatorValidatorsRequest;
|
||||
if (object.delegatorAddr !== undefined && object.delegatorAddr !== null) {
|
||||
message.delegatorAddr = String(object.delegatorAddr);
|
||||
} else {
|
||||
@ -1695,7 +1695,7 @@ export const QueryDelegatorValidatorsResponse = {
|
||||
for (const v of message.validators) {
|
||||
Validator.encode(v!, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
if (message.pagination !== undefined && message.pagination !== undefined) {
|
||||
if (message.pagination !== undefined) {
|
||||
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -1704,7 +1704,7 @@ export const QueryDelegatorValidatorsResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegatorValidatorsResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryDelegatorValidatorsResponse } as QueryDelegatorValidatorsResponse;
|
||||
const message = Object.create(baseQueryDelegatorValidatorsResponse) as QueryDelegatorValidatorsResponse;
|
||||
message.validators = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -1724,7 +1724,7 @@ export const QueryDelegatorValidatorsResponse = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryDelegatorValidatorsResponse {
|
||||
const message = { ...baseQueryDelegatorValidatorsResponse } as QueryDelegatorValidatorsResponse;
|
||||
const message = Object.create(baseQueryDelegatorValidatorsResponse) as QueryDelegatorValidatorsResponse;
|
||||
message.validators = [];
|
||||
if (object.validators !== undefined && object.validators !== null) {
|
||||
for (const e of object.validators) {
|
||||
@ -1780,7 +1780,7 @@ export const QueryDelegatorValidatorRequest = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegatorValidatorRequest {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryDelegatorValidatorRequest } as QueryDelegatorValidatorRequest;
|
||||
const message = Object.create(baseQueryDelegatorValidatorRequest) as QueryDelegatorValidatorRequest;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -1799,7 +1799,7 @@ export const QueryDelegatorValidatorRequest = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryDelegatorValidatorRequest {
|
||||
const message = { ...baseQueryDelegatorValidatorRequest } as QueryDelegatorValidatorRequest;
|
||||
const message = Object.create(baseQueryDelegatorValidatorRequest) as QueryDelegatorValidatorRequest;
|
||||
if (object.delegatorAddr !== undefined && object.delegatorAddr !== null) {
|
||||
message.delegatorAddr = String(object.delegatorAddr);
|
||||
} else {
|
||||
@ -1840,7 +1840,7 @@ const baseQueryDelegatorValidatorResponse: object = {};
|
||||
|
||||
export const QueryDelegatorValidatorResponse = {
|
||||
encode(message: QueryDelegatorValidatorResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
if (message.validator !== undefined && message.validator !== undefined) {
|
||||
if (message.validator !== undefined) {
|
||||
Validator.encode(message.validator, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -1849,7 +1849,7 @@ export const QueryDelegatorValidatorResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegatorValidatorResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryDelegatorValidatorResponse } as QueryDelegatorValidatorResponse;
|
||||
const message = Object.create(baseQueryDelegatorValidatorResponse) as QueryDelegatorValidatorResponse;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -1865,7 +1865,7 @@ export const QueryDelegatorValidatorResponse = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryDelegatorValidatorResponse {
|
||||
const message = { ...baseQueryDelegatorValidatorResponse } as QueryDelegatorValidatorResponse;
|
||||
const message = Object.create(baseQueryDelegatorValidatorResponse) as QueryDelegatorValidatorResponse;
|
||||
if (object.validator !== undefined && object.validator !== null) {
|
||||
message.validator = Validator.fromJSON(object.validator);
|
||||
} else {
|
||||
@ -1903,7 +1903,7 @@ export const QueryHistoricalInfoRequest = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryHistoricalInfoRequest {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryHistoricalInfoRequest } as QueryHistoricalInfoRequest;
|
||||
const message = Object.create(baseQueryHistoricalInfoRequest) as QueryHistoricalInfoRequest;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -1919,7 +1919,7 @@ export const QueryHistoricalInfoRequest = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryHistoricalInfoRequest {
|
||||
const message = { ...baseQueryHistoricalInfoRequest } as QueryHistoricalInfoRequest;
|
||||
const message = Object.create(baseQueryHistoricalInfoRequest) as QueryHistoricalInfoRequest;
|
||||
if (object.height !== undefined && object.height !== null) {
|
||||
message.height = Long.fromString(object.height);
|
||||
} else {
|
||||
@ -1949,7 +1949,7 @@ const baseQueryHistoricalInfoResponse: object = {};
|
||||
|
||||
export const QueryHistoricalInfoResponse = {
|
||||
encode(message: QueryHistoricalInfoResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
if (message.hist !== undefined && message.hist !== undefined) {
|
||||
if (message.hist !== undefined) {
|
||||
HistoricalInfo.encode(message.hist, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -1958,7 +1958,7 @@ export const QueryHistoricalInfoResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryHistoricalInfoResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryHistoricalInfoResponse } as QueryHistoricalInfoResponse;
|
||||
const message = Object.create(baseQueryHistoricalInfoResponse) as QueryHistoricalInfoResponse;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -1974,7 +1974,7 @@ export const QueryHistoricalInfoResponse = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryHistoricalInfoResponse {
|
||||
const message = { ...baseQueryHistoricalInfoResponse } as QueryHistoricalInfoResponse;
|
||||
const message = Object.create(baseQueryHistoricalInfoResponse) as QueryHistoricalInfoResponse;
|
||||
if (object.hist !== undefined && object.hist !== null) {
|
||||
message.hist = HistoricalInfo.fromJSON(object.hist);
|
||||
} else {
|
||||
@ -2010,7 +2010,7 @@ export const QueryPoolRequest = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryPoolRequest {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryPoolRequest } as QueryPoolRequest;
|
||||
const message = Object.create(baseQueryPoolRequest) as QueryPoolRequest;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -2023,7 +2023,7 @@ export const QueryPoolRequest = {
|
||||
},
|
||||
|
||||
fromJSON(_: any): QueryPoolRequest {
|
||||
const message = { ...baseQueryPoolRequest } as QueryPoolRequest;
|
||||
const message = Object.create(baseQueryPoolRequest) as QueryPoolRequest;
|
||||
return message;
|
||||
},
|
||||
|
||||
@ -2042,7 +2042,7 @@ const baseQueryPoolResponse: object = {};
|
||||
|
||||
export const QueryPoolResponse = {
|
||||
encode(message: QueryPoolResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
if (message.pool !== undefined && message.pool !== undefined) {
|
||||
if (message.pool !== undefined) {
|
||||
Pool.encode(message.pool, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -2051,7 +2051,7 @@ export const QueryPoolResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryPoolResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryPoolResponse } as QueryPoolResponse;
|
||||
const message = Object.create(baseQueryPoolResponse) as QueryPoolResponse;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -2067,7 +2067,7 @@ export const QueryPoolResponse = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryPoolResponse {
|
||||
const message = { ...baseQueryPoolResponse } as QueryPoolResponse;
|
||||
const message = Object.create(baseQueryPoolResponse) as QueryPoolResponse;
|
||||
if (object.pool !== undefined && object.pool !== null) {
|
||||
message.pool = Pool.fromJSON(object.pool);
|
||||
} else {
|
||||
@ -2103,7 +2103,7 @@ export const QueryParamsRequest = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsRequest {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryParamsRequest } as QueryParamsRequest;
|
||||
const message = Object.create(baseQueryParamsRequest) as QueryParamsRequest;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -2116,7 +2116,7 @@ export const QueryParamsRequest = {
|
||||
},
|
||||
|
||||
fromJSON(_: any): QueryParamsRequest {
|
||||
const message = { ...baseQueryParamsRequest } as QueryParamsRequest;
|
||||
const message = Object.create(baseQueryParamsRequest) as QueryParamsRequest;
|
||||
return message;
|
||||
},
|
||||
|
||||
@ -2135,7 +2135,7 @@ const baseQueryParamsResponse: object = {};
|
||||
|
||||
export const QueryParamsResponse = {
|
||||
encode(message: QueryParamsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
if (message.params !== undefined && message.params !== undefined) {
|
||||
if (message.params !== undefined) {
|
||||
Params.encode(message.params, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -2144,7 +2144,7 @@ export const QueryParamsResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryParamsResponse } as QueryParamsResponse;
|
||||
const message = Object.create(baseQueryParamsResponse) as QueryParamsResponse;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -2160,7 +2160,7 @@ export const QueryParamsResponse = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryParamsResponse {
|
||||
const message = { ...baseQueryParamsResponse } as QueryParamsResponse;
|
||||
const message = Object.create(baseQueryParamsResponse) as QueryParamsResponse;
|
||||
if (object.params !== undefined && object.params !== null) {
|
||||
message.params = Params.fromJSON(object.params);
|
||||
} else {
|
||||
|
@ -256,7 +256,7 @@ const baseHistoricalInfo: object = {};
|
||||
|
||||
export const HistoricalInfo = {
|
||||
encode(message: HistoricalInfo, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
if (message.header !== undefined && message.header !== undefined) {
|
||||
if (message.header !== undefined) {
|
||||
Header.encode(message.header, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
for (const v of message.valset) {
|
||||
@ -268,7 +268,7 @@ export const HistoricalInfo = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): HistoricalInfo {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseHistoricalInfo } as HistoricalInfo;
|
||||
const message = Object.create(baseHistoricalInfo) as HistoricalInfo;
|
||||
message.valset = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -288,7 +288,7 @@ export const HistoricalInfo = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): HistoricalInfo {
|
||||
const message = { ...baseHistoricalInfo } as HistoricalInfo;
|
||||
const message = Object.create(baseHistoricalInfo) as HistoricalInfo;
|
||||
message.valset = [];
|
||||
if (object.header !== undefined && object.header !== null) {
|
||||
message.header = Header.fromJSON(object.header);
|
||||
@ -344,7 +344,7 @@ export const CommissionRates = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): CommissionRates {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseCommissionRates } as CommissionRates;
|
||||
const message = Object.create(baseCommissionRates) as CommissionRates;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -366,7 +366,7 @@ export const CommissionRates = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): CommissionRates {
|
||||
const message = { ...baseCommissionRates } as CommissionRates;
|
||||
const message = Object.create(baseCommissionRates) as CommissionRates;
|
||||
if (object.rate !== undefined && object.rate !== null) {
|
||||
message.rate = String(object.rate);
|
||||
} else {
|
||||
@ -418,10 +418,10 @@ const baseCommission: object = {};
|
||||
|
||||
export const Commission = {
|
||||
encode(message: Commission, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
if (message.commissionRates !== undefined && message.commissionRates !== undefined) {
|
||||
if (message.commissionRates !== undefined) {
|
||||
CommissionRates.encode(message.commissionRates, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
if (message.updateTime !== undefined && message.updateTime !== undefined) {
|
||||
if (message.updateTime !== undefined) {
|
||||
Timestamp.encode(toTimestamp(message.updateTime), writer.uint32(18).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -430,7 +430,7 @@ export const Commission = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): Commission {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseCommission } as Commission;
|
||||
const message = Object.create(baseCommission) as Commission;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -449,7 +449,7 @@ export const Commission = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): Commission {
|
||||
const message = { ...baseCommission } as Commission;
|
||||
const message = Object.create(baseCommission) as Commission;
|
||||
if (object.commissionRates !== undefined && object.commissionRates !== null) {
|
||||
message.commissionRates = CommissionRates.fromJSON(object.commissionRates);
|
||||
} else {
|
||||
@ -505,7 +505,7 @@ export const Description = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): Description {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseDescription } as Description;
|
||||
const message = Object.create(baseDescription) as Description;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -533,7 +533,7 @@ export const Description = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): Description {
|
||||
const message = { ...baseDescription } as Description;
|
||||
const message = Object.create(baseDescription) as Description;
|
||||
if (object.moniker !== undefined && object.moniker !== null) {
|
||||
message.moniker = String(object.moniker);
|
||||
} else {
|
||||
@ -616,21 +616,21 @@ const baseValidator: object = {
|
||||
export const Validator = {
|
||||
encode(message: Validator, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
writer.uint32(10).string(message.operatorAddress);
|
||||
if (message.consensusPubkey !== undefined && message.consensusPubkey !== undefined) {
|
||||
if (message.consensusPubkey !== undefined) {
|
||||
Any.encode(message.consensusPubkey, writer.uint32(18).fork()).ldelim();
|
||||
}
|
||||
writer.uint32(24).bool(message.jailed);
|
||||
writer.uint32(32).int32(message.status);
|
||||
writer.uint32(42).string(message.tokens);
|
||||
writer.uint32(50).string(message.delegatorShares);
|
||||
if (message.description !== undefined && message.description !== undefined) {
|
||||
if (message.description !== undefined) {
|
||||
Description.encode(message.description, writer.uint32(58).fork()).ldelim();
|
||||
}
|
||||
writer.uint32(64).int64(message.unbondingHeight);
|
||||
if (message.unbondingTime !== undefined && message.unbondingTime !== undefined) {
|
||||
if (message.unbondingTime !== undefined) {
|
||||
Timestamp.encode(toTimestamp(message.unbondingTime), writer.uint32(74).fork()).ldelim();
|
||||
}
|
||||
if (message.commission !== undefined && message.commission !== undefined) {
|
||||
if (message.commission !== undefined) {
|
||||
Commission.encode(message.commission, writer.uint32(82).fork()).ldelim();
|
||||
}
|
||||
writer.uint32(90).string(message.minSelfDelegation);
|
||||
@ -640,7 +640,7 @@ export const Validator = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): Validator {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseValidator } as Validator;
|
||||
const message = Object.create(baseValidator) as Validator;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -686,7 +686,7 @@ export const Validator = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): Validator {
|
||||
const message = { ...baseValidator } as Validator;
|
||||
const message = Object.create(baseValidator) as Validator;
|
||||
if (object.operatorAddress !== undefined && object.operatorAddress !== null) {
|
||||
message.operatorAddress = String(object.operatorAddress);
|
||||
} else {
|
||||
@ -840,7 +840,7 @@ export const ValAddresses = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): ValAddresses {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseValAddresses } as ValAddresses;
|
||||
const message = Object.create(baseValAddresses) as ValAddresses;
|
||||
message.addresses = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -857,7 +857,7 @@ export const ValAddresses = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): ValAddresses {
|
||||
const message = { ...baseValAddresses } as ValAddresses;
|
||||
const message = Object.create(baseValAddresses) as ValAddresses;
|
||||
message.addresses = [];
|
||||
if (object.addresses !== undefined && object.addresses !== null) {
|
||||
for (const e of object.addresses) {
|
||||
@ -901,7 +901,7 @@ export const DVPair = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): DVPair {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseDVPair } as DVPair;
|
||||
const message = Object.create(baseDVPair) as DVPair;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -920,7 +920,7 @@ export const DVPair = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): DVPair {
|
||||
const message = { ...baseDVPair } as DVPair;
|
||||
const message = Object.create(baseDVPair) as DVPair;
|
||||
if (object.delegatorAddress !== undefined && object.delegatorAddress !== null) {
|
||||
message.delegatorAddress = String(object.delegatorAddress);
|
||||
} else {
|
||||
@ -970,7 +970,7 @@ export const DVPairs = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): DVPairs {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseDVPairs } as DVPairs;
|
||||
const message = Object.create(baseDVPairs) as DVPairs;
|
||||
message.pairs = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -987,7 +987,7 @@ export const DVPairs = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): DVPairs {
|
||||
const message = { ...baseDVPairs } as DVPairs;
|
||||
const message = Object.create(baseDVPairs) as DVPairs;
|
||||
message.pairs = [];
|
||||
if (object.pairs !== undefined && object.pairs !== null) {
|
||||
for (const e of object.pairs) {
|
||||
@ -1032,7 +1032,7 @@ export const DVVTriplet = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): DVVTriplet {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseDVVTriplet } as DVVTriplet;
|
||||
const message = Object.create(baseDVVTriplet) as DVVTriplet;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -1054,7 +1054,7 @@ export const DVVTriplet = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): DVVTriplet {
|
||||
const message = { ...baseDVVTriplet } as DVVTriplet;
|
||||
const message = Object.create(baseDVVTriplet) as DVVTriplet;
|
||||
if (object.delegatorAddress !== undefined && object.delegatorAddress !== null) {
|
||||
message.delegatorAddress = String(object.delegatorAddress);
|
||||
} else {
|
||||
@ -1115,7 +1115,7 @@ export const DVVTriplets = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): DVVTriplets {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseDVVTriplets } as DVVTriplets;
|
||||
const message = Object.create(baseDVVTriplets) as DVVTriplets;
|
||||
message.triplets = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -1132,7 +1132,7 @@ export const DVVTriplets = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): DVVTriplets {
|
||||
const message = { ...baseDVVTriplets } as DVVTriplets;
|
||||
const message = Object.create(baseDVVTriplets) as DVVTriplets;
|
||||
message.triplets = [];
|
||||
if (object.triplets !== undefined && object.triplets !== null) {
|
||||
for (const e of object.triplets) {
|
||||
@ -1177,7 +1177,7 @@ export const Delegation = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): Delegation {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseDelegation } as Delegation;
|
||||
const message = Object.create(baseDelegation) as Delegation;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -1199,7 +1199,7 @@ export const Delegation = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): Delegation {
|
||||
const message = { ...baseDelegation } as Delegation;
|
||||
const message = Object.create(baseDelegation) as Delegation;
|
||||
if (object.delegatorAddress !== undefined && object.delegatorAddress !== null) {
|
||||
message.delegatorAddress = String(object.delegatorAddress);
|
||||
} else {
|
||||
@ -1262,7 +1262,7 @@ export const UnbondingDelegation = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): UnbondingDelegation {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseUnbondingDelegation } as UnbondingDelegation;
|
||||
const message = Object.create(baseUnbondingDelegation) as UnbondingDelegation;
|
||||
message.entries = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -1285,7 +1285,7 @@ export const UnbondingDelegation = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): UnbondingDelegation {
|
||||
const message = { ...baseUnbondingDelegation } as UnbondingDelegation;
|
||||
const message = Object.create(baseUnbondingDelegation) as UnbondingDelegation;
|
||||
message.entries = [];
|
||||
if (object.delegatorAddress !== undefined && object.delegatorAddress !== null) {
|
||||
message.delegatorAddress = String(object.delegatorAddress);
|
||||
@ -1344,7 +1344,7 @@ const baseUnbondingDelegationEntry: object = { creationHeight: Long.ZERO, initia
|
||||
export const UnbondingDelegationEntry = {
|
||||
encode(message: UnbondingDelegationEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
writer.uint32(8).int64(message.creationHeight);
|
||||
if (message.completionTime !== undefined && message.completionTime !== undefined) {
|
||||
if (message.completionTime !== undefined) {
|
||||
Timestamp.encode(toTimestamp(message.completionTime), writer.uint32(18).fork()).ldelim();
|
||||
}
|
||||
writer.uint32(26).string(message.initialBalance);
|
||||
@ -1355,7 +1355,7 @@ export const UnbondingDelegationEntry = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): UnbondingDelegationEntry {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseUnbondingDelegationEntry } as UnbondingDelegationEntry;
|
||||
const message = Object.create(baseUnbondingDelegationEntry) as UnbondingDelegationEntry;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -1380,7 +1380,7 @@ export const UnbondingDelegationEntry = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): UnbondingDelegationEntry {
|
||||
const message = { ...baseUnbondingDelegationEntry } as UnbondingDelegationEntry;
|
||||
const message = Object.create(baseUnbondingDelegationEntry) as UnbondingDelegationEntry;
|
||||
if (object.creationHeight !== undefined && object.creationHeight !== null) {
|
||||
message.creationHeight = Long.fromString(object.creationHeight);
|
||||
} else {
|
||||
@ -1447,7 +1447,7 @@ const baseRedelegationEntry: object = { creationHeight: Long.ZERO, initialBalanc
|
||||
export const RedelegationEntry = {
|
||||
encode(message: RedelegationEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
writer.uint32(8).int64(message.creationHeight);
|
||||
if (message.completionTime !== undefined && message.completionTime !== undefined) {
|
||||
if (message.completionTime !== undefined) {
|
||||
Timestamp.encode(toTimestamp(message.completionTime), writer.uint32(18).fork()).ldelim();
|
||||
}
|
||||
writer.uint32(26).string(message.initialBalance);
|
||||
@ -1458,7 +1458,7 @@ export const RedelegationEntry = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): RedelegationEntry {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseRedelegationEntry } as RedelegationEntry;
|
||||
const message = Object.create(baseRedelegationEntry) as RedelegationEntry;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -1483,7 +1483,7 @@ export const RedelegationEntry = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): RedelegationEntry {
|
||||
const message = { ...baseRedelegationEntry } as RedelegationEntry;
|
||||
const message = Object.create(baseRedelegationEntry) as RedelegationEntry;
|
||||
if (object.creationHeight !== undefined && object.creationHeight !== null) {
|
||||
message.creationHeight = Long.fromString(object.creationHeight);
|
||||
} else {
|
||||
@ -1561,7 +1561,7 @@ export const Redelegation = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): Redelegation {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseRedelegation } as Redelegation;
|
||||
const message = Object.create(baseRedelegation) as Redelegation;
|
||||
message.entries = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -1587,7 +1587,7 @@ export const Redelegation = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): Redelegation {
|
||||
const message = { ...baseRedelegation } as Redelegation;
|
||||
const message = Object.create(baseRedelegation) as Redelegation;
|
||||
message.entries = [];
|
||||
if (object.delegatorAddress !== undefined && object.delegatorAddress !== null) {
|
||||
message.delegatorAddress = String(object.delegatorAddress);
|
||||
@ -1656,7 +1656,7 @@ const baseParams: object = { maxValidators: 0, maxEntries: 0, historicalEntries:
|
||||
|
||||
export const Params = {
|
||||
encode(message: Params, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
if (message.unbondingTime !== undefined && message.unbondingTime !== undefined) {
|
||||
if (message.unbondingTime !== undefined) {
|
||||
Duration.encode(message.unbondingTime, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
writer.uint32(16).uint32(message.maxValidators);
|
||||
@ -1669,7 +1669,7 @@ export const Params = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): Params {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseParams } as Params;
|
||||
const message = Object.create(baseParams) as Params;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -1697,7 +1697,7 @@ export const Params = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): Params {
|
||||
const message = { ...baseParams } as Params;
|
||||
const message = Object.create(baseParams) as Params;
|
||||
if (object.unbondingTime !== undefined && object.unbondingTime !== null) {
|
||||
message.unbondingTime = Duration.fromJSON(object.unbondingTime);
|
||||
} else {
|
||||
@ -1772,10 +1772,10 @@ const baseDelegationResponse: object = {};
|
||||
|
||||
export const DelegationResponse = {
|
||||
encode(message: DelegationResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
if (message.delegation !== undefined && message.delegation !== undefined) {
|
||||
if (message.delegation !== undefined) {
|
||||
Delegation.encode(message.delegation, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
if (message.balance !== undefined && message.balance !== undefined) {
|
||||
if (message.balance !== undefined) {
|
||||
Coin.encode(message.balance, writer.uint32(18).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -1784,7 +1784,7 @@ export const DelegationResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): DelegationResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseDelegationResponse } as DelegationResponse;
|
||||
const message = Object.create(baseDelegationResponse) as DelegationResponse;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -1803,7 +1803,7 @@ export const DelegationResponse = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): DelegationResponse {
|
||||
const message = { ...baseDelegationResponse } as DelegationResponse;
|
||||
const message = Object.create(baseDelegationResponse) as DelegationResponse;
|
||||
if (object.delegation !== undefined && object.delegation !== null) {
|
||||
message.delegation = Delegation.fromJSON(object.delegation);
|
||||
} else {
|
||||
@ -1846,7 +1846,7 @@ const baseRedelegationEntryResponse: object = { balance: "" };
|
||||
|
||||
export const RedelegationEntryResponse = {
|
||||
encode(message: RedelegationEntryResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
if (message.redelegationEntry !== undefined && message.redelegationEntry !== undefined) {
|
||||
if (message.redelegationEntry !== undefined) {
|
||||
RedelegationEntry.encode(message.redelegationEntry, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
writer.uint32(34).string(message.balance);
|
||||
@ -1856,7 +1856,7 @@ export const RedelegationEntryResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): RedelegationEntryResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseRedelegationEntryResponse } as RedelegationEntryResponse;
|
||||
const message = Object.create(baseRedelegationEntryResponse) as RedelegationEntryResponse;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -1875,7 +1875,7 @@ export const RedelegationEntryResponse = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): RedelegationEntryResponse {
|
||||
const message = { ...baseRedelegationEntryResponse } as RedelegationEntryResponse;
|
||||
const message = Object.create(baseRedelegationEntryResponse) as RedelegationEntryResponse;
|
||||
if (object.redelegationEntry !== undefined && object.redelegationEntry !== null) {
|
||||
message.redelegationEntry = RedelegationEntry.fromJSON(object.redelegationEntry);
|
||||
} else {
|
||||
@ -1919,7 +1919,7 @@ const baseRedelegationResponse: object = {};
|
||||
|
||||
export const RedelegationResponse = {
|
||||
encode(message: RedelegationResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
if (message.redelegation !== undefined && message.redelegation !== undefined) {
|
||||
if (message.redelegation !== undefined) {
|
||||
Redelegation.encode(message.redelegation, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
for (const v of message.entries) {
|
||||
@ -1931,7 +1931,7 @@ export const RedelegationResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): RedelegationResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseRedelegationResponse } as RedelegationResponse;
|
||||
const message = Object.create(baseRedelegationResponse) as RedelegationResponse;
|
||||
message.entries = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -1951,7 +1951,7 @@ export const RedelegationResponse = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): RedelegationResponse {
|
||||
const message = { ...baseRedelegationResponse } as RedelegationResponse;
|
||||
const message = Object.create(baseRedelegationResponse) as RedelegationResponse;
|
||||
message.entries = [];
|
||||
if (object.redelegation !== undefined && object.redelegation !== null) {
|
||||
message.redelegation = Redelegation.fromJSON(object.redelegation);
|
||||
@ -2007,7 +2007,7 @@ export const Pool = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): Pool {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...basePool } as Pool;
|
||||
const message = Object.create(basePool) as Pool;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -2026,7 +2026,7 @@ export const Pool = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): Pool {
|
||||
const message = { ...basePool } as Pool;
|
||||
const message = Object.create(basePool) as Pool;
|
||||
if (object.notBondedTokens !== undefined && object.notBondedTokens !== null) {
|
||||
message.notBondedTokens = String(object.notBondedTokens);
|
||||
} else {
|
||||
|
@ -87,19 +87,19 @@ const baseMsgCreateValidator: object = { minSelfDelegation: "", delegatorAddress
|
||||
|
||||
export const MsgCreateValidator = {
|
||||
encode(message: MsgCreateValidator, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
if (message.description !== undefined && message.description !== undefined) {
|
||||
if (message.description !== undefined) {
|
||||
Description.encode(message.description, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
if (message.commission !== undefined && message.commission !== undefined) {
|
||||
if (message.commission !== undefined) {
|
||||
CommissionRates.encode(message.commission, writer.uint32(18).fork()).ldelim();
|
||||
}
|
||||
writer.uint32(26).string(message.minSelfDelegation);
|
||||
writer.uint32(34).string(message.delegatorAddress);
|
||||
writer.uint32(42).string(message.validatorAddress);
|
||||
if (message.pubkey !== undefined && message.pubkey !== undefined) {
|
||||
if (message.pubkey !== undefined) {
|
||||
Any.encode(message.pubkey, writer.uint32(50).fork()).ldelim();
|
||||
}
|
||||
if (message.value !== undefined && message.value !== undefined) {
|
||||
if (message.value !== undefined) {
|
||||
Coin.encode(message.value, writer.uint32(58).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -108,7 +108,7 @@ export const MsgCreateValidator = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateValidator {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseMsgCreateValidator } as MsgCreateValidator;
|
||||
const message = Object.create(baseMsgCreateValidator) as MsgCreateValidator;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -142,7 +142,7 @@ export const MsgCreateValidator = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): MsgCreateValidator {
|
||||
const message = { ...baseMsgCreateValidator } as MsgCreateValidator;
|
||||
const message = Object.create(baseMsgCreateValidator) as MsgCreateValidator;
|
||||
if (object.description !== undefined && object.description !== null) {
|
||||
message.description = Description.fromJSON(object.description);
|
||||
} else {
|
||||
@ -246,7 +246,7 @@ export const MsgCreateValidatorResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateValidatorResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseMsgCreateValidatorResponse } as MsgCreateValidatorResponse;
|
||||
const message = Object.create(baseMsgCreateValidatorResponse) as MsgCreateValidatorResponse;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -259,7 +259,7 @@ export const MsgCreateValidatorResponse = {
|
||||
},
|
||||
|
||||
fromJSON(_: any): MsgCreateValidatorResponse {
|
||||
const message = { ...baseMsgCreateValidatorResponse } as MsgCreateValidatorResponse;
|
||||
const message = Object.create(baseMsgCreateValidatorResponse) as MsgCreateValidatorResponse;
|
||||
return message;
|
||||
},
|
||||
|
||||
@ -278,7 +278,7 @@ const baseMsgEditValidator: object = { validatorAddress: "", commissionRate: "",
|
||||
|
||||
export const MsgEditValidator = {
|
||||
encode(message: MsgEditValidator, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
if (message.description !== undefined && message.description !== undefined) {
|
||||
if (message.description !== undefined) {
|
||||
Description.encode(message.description, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
writer.uint32(18).string(message.validatorAddress);
|
||||
@ -290,7 +290,7 @@ export const MsgEditValidator = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgEditValidator {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseMsgEditValidator } as MsgEditValidator;
|
||||
const message = Object.create(baseMsgEditValidator) as MsgEditValidator;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -315,7 +315,7 @@ export const MsgEditValidator = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): MsgEditValidator {
|
||||
const message = { ...baseMsgEditValidator } as MsgEditValidator;
|
||||
const message = Object.create(baseMsgEditValidator) as MsgEditValidator;
|
||||
if (object.description !== undefined && object.description !== null) {
|
||||
message.description = Description.fromJSON(object.description);
|
||||
} else {
|
||||
@ -385,7 +385,7 @@ export const MsgEditValidatorResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgEditValidatorResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseMsgEditValidatorResponse } as MsgEditValidatorResponse;
|
||||
const message = Object.create(baseMsgEditValidatorResponse) as MsgEditValidatorResponse;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -398,7 +398,7 @@ export const MsgEditValidatorResponse = {
|
||||
},
|
||||
|
||||
fromJSON(_: any): MsgEditValidatorResponse {
|
||||
const message = { ...baseMsgEditValidatorResponse } as MsgEditValidatorResponse;
|
||||
const message = Object.create(baseMsgEditValidatorResponse) as MsgEditValidatorResponse;
|
||||
return message;
|
||||
},
|
||||
|
||||
@ -419,7 +419,7 @@ export const MsgDelegate = {
|
||||
encode(message: MsgDelegate, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
writer.uint32(10).string(message.delegatorAddress);
|
||||
writer.uint32(18).string(message.validatorAddress);
|
||||
if (message.amount !== undefined && message.amount !== undefined) {
|
||||
if (message.amount !== undefined) {
|
||||
Coin.encode(message.amount, writer.uint32(26).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -428,7 +428,7 @@ export const MsgDelegate = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgDelegate {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseMsgDelegate } as MsgDelegate;
|
||||
const message = Object.create(baseMsgDelegate) as MsgDelegate;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -450,7 +450,7 @@ export const MsgDelegate = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): MsgDelegate {
|
||||
const message = { ...baseMsgDelegate } as MsgDelegate;
|
||||
const message = Object.create(baseMsgDelegate) as MsgDelegate;
|
||||
if (object.delegatorAddress !== undefined && object.delegatorAddress !== null) {
|
||||
message.delegatorAddress = String(object.delegatorAddress);
|
||||
} else {
|
||||
@ -508,7 +508,7 @@ export const MsgDelegateResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgDelegateResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseMsgDelegateResponse } as MsgDelegateResponse;
|
||||
const message = Object.create(baseMsgDelegateResponse) as MsgDelegateResponse;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -521,7 +521,7 @@ export const MsgDelegateResponse = {
|
||||
},
|
||||
|
||||
fromJSON(_: any): MsgDelegateResponse {
|
||||
const message = { ...baseMsgDelegateResponse } as MsgDelegateResponse;
|
||||
const message = Object.create(baseMsgDelegateResponse) as MsgDelegateResponse;
|
||||
return message;
|
||||
},
|
||||
|
||||
@ -547,7 +547,7 @@ export const MsgBeginRedelegate = {
|
||||
writer.uint32(10).string(message.delegatorAddress);
|
||||
writer.uint32(18).string(message.validatorSrcAddress);
|
||||
writer.uint32(26).string(message.validatorDstAddress);
|
||||
if (message.amount !== undefined && message.amount !== undefined) {
|
||||
if (message.amount !== undefined) {
|
||||
Coin.encode(message.amount, writer.uint32(34).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -556,7 +556,7 @@ export const MsgBeginRedelegate = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgBeginRedelegate {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseMsgBeginRedelegate } as MsgBeginRedelegate;
|
||||
const message = Object.create(baseMsgBeginRedelegate) as MsgBeginRedelegate;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -581,7 +581,7 @@ export const MsgBeginRedelegate = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): MsgBeginRedelegate {
|
||||
const message = { ...baseMsgBeginRedelegate } as MsgBeginRedelegate;
|
||||
const message = Object.create(baseMsgBeginRedelegate) as MsgBeginRedelegate;
|
||||
if (object.delegatorAddress !== undefined && object.delegatorAddress !== null) {
|
||||
message.delegatorAddress = String(object.delegatorAddress);
|
||||
} else {
|
||||
@ -644,7 +644,7 @@ const baseMsgBeginRedelegateResponse: object = {};
|
||||
|
||||
export const MsgBeginRedelegateResponse = {
|
||||
encode(message: MsgBeginRedelegateResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
if (message.completionTime !== undefined && message.completionTime !== undefined) {
|
||||
if (message.completionTime !== undefined) {
|
||||
Timestamp.encode(toTimestamp(message.completionTime), writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -653,7 +653,7 @@ export const MsgBeginRedelegateResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgBeginRedelegateResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseMsgBeginRedelegateResponse } as MsgBeginRedelegateResponse;
|
||||
const message = Object.create(baseMsgBeginRedelegateResponse) as MsgBeginRedelegateResponse;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -669,7 +669,7 @@ export const MsgBeginRedelegateResponse = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): MsgBeginRedelegateResponse {
|
||||
const message = { ...baseMsgBeginRedelegateResponse } as MsgBeginRedelegateResponse;
|
||||
const message = Object.create(baseMsgBeginRedelegateResponse) as MsgBeginRedelegateResponse;
|
||||
if (object.completionTime !== undefined && object.completionTime !== null) {
|
||||
message.completionTime = fromJsonTimestamp(object.completionTime);
|
||||
} else {
|
||||
@ -703,7 +703,7 @@ export const MsgUndelegate = {
|
||||
encode(message: MsgUndelegate, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
writer.uint32(10).string(message.delegatorAddress);
|
||||
writer.uint32(18).string(message.validatorAddress);
|
||||
if (message.amount !== undefined && message.amount !== undefined) {
|
||||
if (message.amount !== undefined) {
|
||||
Coin.encode(message.amount, writer.uint32(26).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -712,7 +712,7 @@ export const MsgUndelegate = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUndelegate {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseMsgUndelegate } as MsgUndelegate;
|
||||
const message = Object.create(baseMsgUndelegate) as MsgUndelegate;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -734,7 +734,7 @@ export const MsgUndelegate = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): MsgUndelegate {
|
||||
const message = { ...baseMsgUndelegate } as MsgUndelegate;
|
||||
const message = Object.create(baseMsgUndelegate) as MsgUndelegate;
|
||||
if (object.delegatorAddress !== undefined && object.delegatorAddress !== null) {
|
||||
message.delegatorAddress = String(object.delegatorAddress);
|
||||
} else {
|
||||
@ -786,7 +786,7 @@ const baseMsgUndelegateResponse: object = {};
|
||||
|
||||
export const MsgUndelegateResponse = {
|
||||
encode(message: MsgUndelegateResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
if (message.completionTime !== undefined && message.completionTime !== undefined) {
|
||||
if (message.completionTime !== undefined) {
|
||||
Timestamp.encode(toTimestamp(message.completionTime), writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -795,7 +795,7 @@ export const MsgUndelegateResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUndelegateResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseMsgUndelegateResponse } as MsgUndelegateResponse;
|
||||
const message = Object.create(baseMsgUndelegateResponse) as MsgUndelegateResponse;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -811,7 +811,7 @@ export const MsgUndelegateResponse = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): MsgUndelegateResponse {
|
||||
const message = { ...baseMsgUndelegateResponse } as MsgUndelegateResponse;
|
||||
const message = Object.create(baseMsgUndelegateResponse) as MsgUndelegateResponse;
|
||||
if (object.completionTime !== undefined && object.completionTime !== null) {
|
||||
message.completionTime = fromJsonTimestamp(object.completionTime);
|
||||
} else {
|
||||
|
@ -129,7 +129,7 @@ export const SignatureDescriptors = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): SignatureDescriptors {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseSignatureDescriptors } as SignatureDescriptors;
|
||||
const message = Object.create(baseSignatureDescriptors) as SignatureDescriptors;
|
||||
message.signatures = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -146,7 +146,7 @@ export const SignatureDescriptors = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): SignatureDescriptors {
|
||||
const message = { ...baseSignatureDescriptors } as SignatureDescriptors;
|
||||
const message = Object.create(baseSignatureDescriptors) as SignatureDescriptors;
|
||||
message.signatures = [];
|
||||
if (object.signatures !== undefined && object.signatures !== null) {
|
||||
for (const e of object.signatures) {
|
||||
@ -182,10 +182,10 @@ const baseSignatureDescriptor: object = { sequence: Long.UZERO };
|
||||
|
||||
export const SignatureDescriptor = {
|
||||
encode(message: SignatureDescriptor, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
if (message.publicKey !== undefined && message.publicKey !== undefined) {
|
||||
if (message.publicKey !== undefined) {
|
||||
Any.encode(message.publicKey, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
if (message.data !== undefined && message.data !== undefined) {
|
||||
if (message.data !== undefined) {
|
||||
SignatureDescriptor_Data.encode(message.data, writer.uint32(18).fork()).ldelim();
|
||||
}
|
||||
writer.uint32(24).uint64(message.sequence);
|
||||
@ -195,7 +195,7 @@ export const SignatureDescriptor = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): SignatureDescriptor {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseSignatureDescriptor } as SignatureDescriptor;
|
||||
const message = Object.create(baseSignatureDescriptor) as SignatureDescriptor;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -217,7 +217,7 @@ export const SignatureDescriptor = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): SignatureDescriptor {
|
||||
const message = { ...baseSignatureDescriptor } as SignatureDescriptor;
|
||||
const message = Object.create(baseSignatureDescriptor) as SignatureDescriptor;
|
||||
if (object.publicKey !== undefined && object.publicKey !== null) {
|
||||
message.publicKey = Any.fromJSON(object.publicKey);
|
||||
} else {
|
||||
@ -283,7 +283,7 @@ export const SignatureDescriptor_Data = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): SignatureDescriptor_Data {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseSignatureDescriptor_Data } as SignatureDescriptor_Data;
|
||||
const message = Object.create(baseSignatureDescriptor_Data) as SignatureDescriptor_Data;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -302,7 +302,7 @@ export const SignatureDescriptor_Data = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): SignatureDescriptor_Data {
|
||||
const message = { ...baseSignatureDescriptor_Data } as SignatureDescriptor_Data;
|
||||
const message = Object.create(baseSignatureDescriptor_Data) as SignatureDescriptor_Data;
|
||||
if (object.single !== undefined && object.single !== null) {
|
||||
message.single = SignatureDescriptor_Data_Single.fromJSON(object.single);
|
||||
} else {
|
||||
@ -353,7 +353,7 @@ export const SignatureDescriptor_Data_Single = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): SignatureDescriptor_Data_Single {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseSignatureDescriptor_Data_Single } as SignatureDescriptor_Data_Single;
|
||||
const message = Object.create(baseSignatureDescriptor_Data_Single) as SignatureDescriptor_Data_Single;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -372,7 +372,7 @@ export const SignatureDescriptor_Data_Single = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): SignatureDescriptor_Data_Single {
|
||||
const message = { ...baseSignatureDescriptor_Data_Single } as SignatureDescriptor_Data_Single;
|
||||
const message = Object.create(baseSignatureDescriptor_Data_Single) as SignatureDescriptor_Data_Single;
|
||||
if (object.mode !== undefined && object.mode !== null) {
|
||||
message.mode = signModeFromJSON(object.mode);
|
||||
} else {
|
||||
@ -414,7 +414,7 @@ const baseSignatureDescriptor_Data_Multi: object = {};
|
||||
|
||||
export const SignatureDescriptor_Data_Multi = {
|
||||
encode(message: SignatureDescriptor_Data_Multi, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
if (message.bitarray !== undefined && message.bitarray !== undefined) {
|
||||
if (message.bitarray !== undefined) {
|
||||
CompactBitArray.encode(message.bitarray, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
for (const v of message.signatures) {
|
||||
@ -426,7 +426,7 @@ export const SignatureDescriptor_Data_Multi = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): SignatureDescriptor_Data_Multi {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseSignatureDescriptor_Data_Multi } as SignatureDescriptor_Data_Multi;
|
||||
const message = Object.create(baseSignatureDescriptor_Data_Multi) as SignatureDescriptor_Data_Multi;
|
||||
message.signatures = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -446,7 +446,7 @@ export const SignatureDescriptor_Data_Multi = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): SignatureDescriptor_Data_Multi {
|
||||
const message = { ...baseSignatureDescriptor_Data_Multi } as SignatureDescriptor_Data_Multi;
|
||||
const message = Object.create(baseSignatureDescriptor_Data_Multi) as SignatureDescriptor_Data_Multi;
|
||||
message.signatures = [];
|
||||
if (object.bitarray !== undefined && object.bitarray !== null) {
|
||||
message.bitarray = CompactBitArray.fromJSON(object.bitarray);
|
||||
|
@ -211,10 +211,10 @@ const baseTx: object = {};
|
||||
|
||||
export const Tx = {
|
||||
encode(message: Tx, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
if (message.body !== undefined && message.body !== undefined) {
|
||||
if (message.body !== undefined) {
|
||||
TxBody.encode(message.body, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
if (message.authInfo !== undefined && message.authInfo !== undefined) {
|
||||
if (message.authInfo !== undefined) {
|
||||
AuthInfo.encode(message.authInfo, writer.uint32(18).fork()).ldelim();
|
||||
}
|
||||
for (const v of message.signatures) {
|
||||
@ -226,7 +226,7 @@ export const Tx = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): Tx {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseTx } as Tx;
|
||||
const message = Object.create(baseTx) as Tx;
|
||||
message.signatures = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -249,7 +249,7 @@ export const Tx = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): Tx {
|
||||
const message = { ...baseTx } as Tx;
|
||||
const message = Object.create(baseTx) as Tx;
|
||||
message.signatures = [];
|
||||
if (object.body !== undefined && object.body !== null) {
|
||||
message.body = TxBody.fromJSON(object.body);
|
||||
@ -319,7 +319,7 @@ export const TxRaw = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): TxRaw {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseTxRaw } as TxRaw;
|
||||
const message = Object.create(baseTxRaw) as TxRaw;
|
||||
message.signatures = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -342,7 +342,7 @@ export const TxRaw = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): TxRaw {
|
||||
const message = { ...baseTxRaw } as TxRaw;
|
||||
const message = Object.create(baseTxRaw) as TxRaw;
|
||||
message.signatures = [];
|
||||
if (object.bodyBytes !== undefined && object.bodyBytes !== null) {
|
||||
message.bodyBytes = bytesFromBase64(object.bodyBytes);
|
||||
@ -412,7 +412,7 @@ export const SignDoc = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): SignDoc {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseSignDoc } as SignDoc;
|
||||
const message = Object.create(baseSignDoc) as SignDoc;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -437,7 +437,7 @@ export const SignDoc = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): SignDoc {
|
||||
const message = { ...baseSignDoc } as SignDoc;
|
||||
const message = Object.create(baseSignDoc) as SignDoc;
|
||||
if (object.bodyBytes !== undefined && object.bodyBytes !== null) {
|
||||
message.bodyBytes = bytesFromBase64(object.bodyBytes);
|
||||
}
|
||||
@ -520,7 +520,7 @@ export const TxBody = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): TxBody {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseTxBody } as TxBody;
|
||||
const message = Object.create(baseTxBody) as TxBody;
|
||||
message.messages = [];
|
||||
message.extensionOptions = [];
|
||||
message.nonCriticalExtensionOptions = [];
|
||||
@ -551,7 +551,7 @@ export const TxBody = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): TxBody {
|
||||
const message = { ...baseTxBody } as TxBody;
|
||||
const message = Object.create(baseTxBody) as TxBody;
|
||||
message.messages = [];
|
||||
message.extensionOptions = [];
|
||||
message.nonCriticalExtensionOptions = [];
|
||||
@ -649,7 +649,7 @@ export const AuthInfo = {
|
||||
for (const v of message.signerInfos) {
|
||||
SignerInfo.encode(v!, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
if (message.fee !== undefined && message.fee !== undefined) {
|
||||
if (message.fee !== undefined) {
|
||||
Fee.encode(message.fee, writer.uint32(18).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -658,7 +658,7 @@ export const AuthInfo = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): AuthInfo {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseAuthInfo } as AuthInfo;
|
||||
const message = Object.create(baseAuthInfo) as AuthInfo;
|
||||
message.signerInfos = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -678,7 +678,7 @@ export const AuthInfo = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): AuthInfo {
|
||||
const message = { ...baseAuthInfo } as AuthInfo;
|
||||
const message = Object.create(baseAuthInfo) as AuthInfo;
|
||||
message.signerInfos = [];
|
||||
if (object.signerInfos !== undefined && object.signerInfos !== null) {
|
||||
for (const e of object.signerInfos) {
|
||||
@ -725,10 +725,10 @@ const baseSignerInfo: object = { sequence: Long.UZERO };
|
||||
|
||||
export const SignerInfo = {
|
||||
encode(message: SignerInfo, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
if (message.publicKey !== undefined && message.publicKey !== undefined) {
|
||||
if (message.publicKey !== undefined) {
|
||||
Any.encode(message.publicKey, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
if (message.modeInfo !== undefined && message.modeInfo !== undefined) {
|
||||
if (message.modeInfo !== undefined) {
|
||||
ModeInfo.encode(message.modeInfo, writer.uint32(18).fork()).ldelim();
|
||||
}
|
||||
writer.uint32(24).uint64(message.sequence);
|
||||
@ -738,7 +738,7 @@ export const SignerInfo = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): SignerInfo {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseSignerInfo } as SignerInfo;
|
||||
const message = Object.create(baseSignerInfo) as SignerInfo;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -760,7 +760,7 @@ export const SignerInfo = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): SignerInfo {
|
||||
const message = { ...baseSignerInfo } as SignerInfo;
|
||||
const message = Object.create(baseSignerInfo) as SignerInfo;
|
||||
if (object.publicKey !== undefined && object.publicKey !== null) {
|
||||
message.publicKey = Any.fromJSON(object.publicKey);
|
||||
} else {
|
||||
@ -826,7 +826,7 @@ export const ModeInfo = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): ModeInfo {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseModeInfo } as ModeInfo;
|
||||
const message = Object.create(baseModeInfo) as ModeInfo;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -845,7 +845,7 @@ export const ModeInfo = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): ModeInfo {
|
||||
const message = { ...baseModeInfo } as ModeInfo;
|
||||
const message = Object.create(baseModeInfo) as ModeInfo;
|
||||
if (object.single !== undefined && object.single !== null) {
|
||||
message.single = ModeInfo_Single.fromJSON(object.single);
|
||||
} else {
|
||||
@ -895,7 +895,7 @@ export const ModeInfo_Single = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): ModeInfo_Single {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseModeInfo_Single } as ModeInfo_Single;
|
||||
const message = Object.create(baseModeInfo_Single) as ModeInfo_Single;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -911,7 +911,7 @@ export const ModeInfo_Single = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): ModeInfo_Single {
|
||||
const message = { ...baseModeInfo_Single } as ModeInfo_Single;
|
||||
const message = Object.create(baseModeInfo_Single) as ModeInfo_Single;
|
||||
if (object.mode !== undefined && object.mode !== null) {
|
||||
message.mode = signModeFromJSON(object.mode);
|
||||
} else {
|
||||
@ -941,7 +941,7 @@ const baseModeInfo_Multi: object = {};
|
||||
|
||||
export const ModeInfo_Multi = {
|
||||
encode(message: ModeInfo_Multi, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
if (message.bitarray !== undefined && message.bitarray !== undefined) {
|
||||
if (message.bitarray !== undefined) {
|
||||
CompactBitArray.encode(message.bitarray, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
for (const v of message.modeInfos) {
|
||||
@ -953,7 +953,7 @@ export const ModeInfo_Multi = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): ModeInfo_Multi {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseModeInfo_Multi } as ModeInfo_Multi;
|
||||
const message = Object.create(baseModeInfo_Multi) as ModeInfo_Multi;
|
||||
message.modeInfos = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -973,7 +973,7 @@ export const ModeInfo_Multi = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): ModeInfo_Multi {
|
||||
const message = { ...baseModeInfo_Multi } as ModeInfo_Multi;
|
||||
const message = Object.create(baseModeInfo_Multi) as ModeInfo_Multi;
|
||||
message.modeInfos = [];
|
||||
if (object.bitarray !== undefined && object.bitarray !== null) {
|
||||
message.bitarray = CompactBitArray.fromJSON(object.bitarray);
|
||||
@ -1033,7 +1033,7 @@ export const Fee = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): Fee {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseFee } as Fee;
|
||||
const message = Object.create(baseFee) as Fee;
|
||||
message.amount = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -1059,7 +1059,7 @@ export const Fee = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): Fee {
|
||||
const message = { ...baseFee } as Fee;
|
||||
const message = Object.create(baseFee) as Fee;
|
||||
message.amount = [];
|
||||
if (object.amount !== undefined && object.amount !== null) {
|
||||
for (const e of object.amount) {
|
||||
|
@ -132,7 +132,7 @@ export const Any = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): Any {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseAny } as Any;
|
||||
const message = Object.create(baseAny) as Any;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -151,7 +151,7 @@ export const Any = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): Any {
|
||||
const message = { ...baseAny } as Any;
|
||||
const message = Object.create(baseAny) as Any;
|
||||
if (object.typeUrl !== undefined && object.typeUrl !== null) {
|
||||
message.typeUrl = String(object.typeUrl);
|
||||
} else {
|
||||
|
@ -94,7 +94,7 @@ export const Duration = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): Duration {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseDuration } as Duration;
|
||||
const message = Object.create(baseDuration) as Duration;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -113,7 +113,7 @@ export const Duration = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): Duration {
|
||||
const message = { ...baseDuration } as Duration;
|
||||
const message = Object.create(baseDuration) as Duration;
|
||||
if (object.seconds !== undefined && object.seconds !== null) {
|
||||
message.seconds = Long.fromString(object.seconds);
|
||||
} else {
|
||||
|
@ -125,7 +125,7 @@ export const Timestamp = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): Timestamp {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseTimestamp } as Timestamp;
|
||||
const message = Object.create(baseTimestamp) as Timestamp;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -144,7 +144,7 @@ export const Timestamp = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): Timestamp {
|
||||
const message = { ...baseTimestamp } as Timestamp;
|
||||
const message = Object.create(baseTimestamp) as Timestamp;
|
||||
if (object.seconds !== undefined && object.seconds !== null) {
|
||||
message.seconds = Long.fromString(object.seconds);
|
||||
} else {
|
||||
|
@ -229,7 +229,7 @@ export const Channel = {
|
||||
encode(message: Channel, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
writer.uint32(8).int32(message.state);
|
||||
writer.uint32(16).int32(message.ordering);
|
||||
if (message.counterparty !== undefined && message.counterparty !== undefined) {
|
||||
if (message.counterparty !== undefined) {
|
||||
Counterparty.encode(message.counterparty, writer.uint32(26).fork()).ldelim();
|
||||
}
|
||||
for (const v of message.connectionHops) {
|
||||
@ -242,7 +242,7 @@ export const Channel = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): Channel {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseChannel } as Channel;
|
||||
const message = Object.create(baseChannel) as Channel;
|
||||
message.connectionHops = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -271,7 +271,7 @@ export const Channel = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): Channel {
|
||||
const message = { ...baseChannel } as Channel;
|
||||
const message = Object.create(baseChannel) as Channel;
|
||||
message.connectionHops = [];
|
||||
if (object.state !== undefined && object.state !== null) {
|
||||
message.state = stateFromJSON(object.state);
|
||||
@ -361,7 +361,7 @@ export const IdentifiedChannel = {
|
||||
encode(message: IdentifiedChannel, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
writer.uint32(8).int32(message.state);
|
||||
writer.uint32(16).int32(message.ordering);
|
||||
if (message.counterparty !== undefined && message.counterparty !== undefined) {
|
||||
if (message.counterparty !== undefined) {
|
||||
Counterparty.encode(message.counterparty, writer.uint32(26).fork()).ldelim();
|
||||
}
|
||||
for (const v of message.connectionHops) {
|
||||
@ -376,7 +376,7 @@ export const IdentifiedChannel = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): IdentifiedChannel {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseIdentifiedChannel } as IdentifiedChannel;
|
||||
const message = Object.create(baseIdentifiedChannel) as IdentifiedChannel;
|
||||
message.connectionHops = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -411,7 +411,7 @@ export const IdentifiedChannel = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): IdentifiedChannel {
|
||||
const message = { ...baseIdentifiedChannel } as IdentifiedChannel;
|
||||
const message = Object.create(baseIdentifiedChannel) as IdentifiedChannel;
|
||||
message.connectionHops = [];
|
||||
if (object.state !== undefined && object.state !== null) {
|
||||
message.state = stateFromJSON(object.state);
|
||||
@ -522,7 +522,7 @@ export const Counterparty = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): Counterparty {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseCounterparty } as Counterparty;
|
||||
const message = Object.create(baseCounterparty) as Counterparty;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -541,7 +541,7 @@ export const Counterparty = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): Counterparty {
|
||||
const message = { ...baseCounterparty } as Counterparty;
|
||||
const message = Object.create(baseCounterparty) as Counterparty;
|
||||
if (object.portId !== undefined && object.portId !== null) {
|
||||
message.portId = String(object.portId);
|
||||
} else {
|
||||
@ -595,7 +595,7 @@ export const Packet = {
|
||||
writer.uint32(34).string(message.destinationPort);
|
||||
writer.uint32(42).string(message.destinationChannel);
|
||||
writer.uint32(50).bytes(message.data);
|
||||
if (message.timeoutHeight !== undefined && message.timeoutHeight !== undefined) {
|
||||
if (message.timeoutHeight !== undefined) {
|
||||
Height.encode(message.timeoutHeight, writer.uint32(58).fork()).ldelim();
|
||||
}
|
||||
writer.uint32(64).uint64(message.timeoutTimestamp);
|
||||
@ -605,7 +605,7 @@ export const Packet = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): Packet {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...basePacket } as Packet;
|
||||
const message = Object.create(basePacket) as Packet;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -642,7 +642,7 @@ export const Packet = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): Packet {
|
||||
const message = { ...basePacket } as Packet;
|
||||
const message = Object.create(basePacket) as Packet;
|
||||
if (object.sequence !== undefined && object.sequence !== null) {
|
||||
message.sequence = Long.fromString(object.sequence);
|
||||
} else {
|
||||
@ -760,7 +760,7 @@ export const PacketState = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): PacketState {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...basePacketState } as PacketState;
|
||||
const message = Object.create(basePacketState) as PacketState;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -785,7 +785,7 @@ export const PacketState = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): PacketState {
|
||||
const message = { ...basePacketState } as PacketState;
|
||||
const message = Object.create(basePacketState) as PacketState;
|
||||
if (object.portId !== undefined && object.portId !== null) {
|
||||
message.portId = String(object.portId);
|
||||
} else {
|
||||
@ -859,7 +859,7 @@ export const Acknowledgement = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): Acknowledgement {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseAcknowledgement } as Acknowledgement;
|
||||
const message = Object.create(baseAcknowledgement) as Acknowledgement;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -878,7 +878,7 @@ export const Acknowledgement = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): Acknowledgement {
|
||||
const message = { ...baseAcknowledgement } as Acknowledgement;
|
||||
const message = Object.create(baseAcknowledgement) as Acknowledgement;
|
||||
if (object.result !== undefined && object.result !== null) {
|
||||
message.result = bytesFromBase64(object.result);
|
||||
}
|
||||
|
@ -339,7 +339,7 @@ export const QueryChannelRequest = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryChannelRequest {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryChannelRequest } as QueryChannelRequest;
|
||||
const message = Object.create(baseQueryChannelRequest) as QueryChannelRequest;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -358,7 +358,7 @@ export const QueryChannelRequest = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryChannelRequest {
|
||||
const message = { ...baseQueryChannelRequest } as QueryChannelRequest;
|
||||
const message = Object.create(baseQueryChannelRequest) as QueryChannelRequest;
|
||||
if (object.portId !== undefined && object.portId !== null) {
|
||||
message.portId = String(object.portId);
|
||||
} else {
|
||||
@ -399,11 +399,11 @@ const baseQueryChannelResponse: object = {};
|
||||
|
||||
export const QueryChannelResponse = {
|
||||
encode(message: QueryChannelResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
if (message.channel !== undefined && message.channel !== undefined) {
|
||||
if (message.channel !== undefined) {
|
||||
Channel.encode(message.channel, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
writer.uint32(18).bytes(message.proof);
|
||||
if (message.proofHeight !== undefined && message.proofHeight !== undefined) {
|
||||
if (message.proofHeight !== undefined) {
|
||||
Height.encode(message.proofHeight, writer.uint32(26).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -412,7 +412,7 @@ export const QueryChannelResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryChannelResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryChannelResponse } as QueryChannelResponse;
|
||||
const message = Object.create(baseQueryChannelResponse) as QueryChannelResponse;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -434,7 +434,7 @@ export const QueryChannelResponse = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryChannelResponse {
|
||||
const message = { ...baseQueryChannelResponse } as QueryChannelResponse;
|
||||
const message = Object.create(baseQueryChannelResponse) as QueryChannelResponse;
|
||||
if (object.channel !== undefined && object.channel !== null) {
|
||||
message.channel = Channel.fromJSON(object.channel);
|
||||
} else {
|
||||
@ -487,7 +487,7 @@ const baseQueryChannelsRequest: object = {};
|
||||
|
||||
export const QueryChannelsRequest = {
|
||||
encode(message: QueryChannelsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
if (message.pagination !== undefined && message.pagination !== undefined) {
|
||||
if (message.pagination !== undefined) {
|
||||
PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -496,7 +496,7 @@ export const QueryChannelsRequest = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryChannelsRequest {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryChannelsRequest } as QueryChannelsRequest;
|
||||
const message = Object.create(baseQueryChannelsRequest) as QueryChannelsRequest;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -512,7 +512,7 @@ export const QueryChannelsRequest = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryChannelsRequest {
|
||||
const message = { ...baseQueryChannelsRequest } as QueryChannelsRequest;
|
||||
const message = Object.create(baseQueryChannelsRequest) as QueryChannelsRequest;
|
||||
if (object.pagination !== undefined && object.pagination !== null) {
|
||||
message.pagination = PageRequest.fromJSON(object.pagination);
|
||||
} else {
|
||||
@ -546,10 +546,10 @@ export const QueryChannelsResponse = {
|
||||
for (const v of message.channels) {
|
||||
IdentifiedChannel.encode(v!, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
if (message.pagination !== undefined && message.pagination !== undefined) {
|
||||
if (message.pagination !== undefined) {
|
||||
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
||||
}
|
||||
if (message.height !== undefined && message.height !== undefined) {
|
||||
if (message.height !== undefined) {
|
||||
Height.encode(message.height, writer.uint32(26).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -558,7 +558,7 @@ export const QueryChannelsResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryChannelsResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryChannelsResponse } as QueryChannelsResponse;
|
||||
const message = Object.create(baseQueryChannelsResponse) as QueryChannelsResponse;
|
||||
message.channels = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -581,7 +581,7 @@ export const QueryChannelsResponse = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryChannelsResponse {
|
||||
const message = { ...baseQueryChannelsResponse } as QueryChannelsResponse;
|
||||
const message = Object.create(baseQueryChannelsResponse) as QueryChannelsResponse;
|
||||
message.channels = [];
|
||||
if (object.channels !== undefined && object.channels !== null) {
|
||||
for (const e of object.channels) {
|
||||
@ -641,7 +641,7 @@ const baseQueryConnectionChannelsRequest: object = { connection: "" };
|
||||
export const QueryConnectionChannelsRequest = {
|
||||
encode(message: QueryConnectionChannelsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
writer.uint32(10).string(message.connection);
|
||||
if (message.pagination !== undefined && message.pagination !== undefined) {
|
||||
if (message.pagination !== undefined) {
|
||||
PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -650,7 +650,7 @@ export const QueryConnectionChannelsRequest = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryConnectionChannelsRequest {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryConnectionChannelsRequest } as QueryConnectionChannelsRequest;
|
||||
const message = Object.create(baseQueryConnectionChannelsRequest) as QueryConnectionChannelsRequest;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -669,7 +669,7 @@ export const QueryConnectionChannelsRequest = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryConnectionChannelsRequest {
|
||||
const message = { ...baseQueryConnectionChannelsRequest } as QueryConnectionChannelsRequest;
|
||||
const message = Object.create(baseQueryConnectionChannelsRequest) as QueryConnectionChannelsRequest;
|
||||
if (object.connection !== undefined && object.connection !== null) {
|
||||
message.connection = String(object.connection);
|
||||
} else {
|
||||
@ -714,10 +714,10 @@ export const QueryConnectionChannelsResponse = {
|
||||
for (const v of message.channels) {
|
||||
IdentifiedChannel.encode(v!, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
if (message.pagination !== undefined && message.pagination !== undefined) {
|
||||
if (message.pagination !== undefined) {
|
||||
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
||||
}
|
||||
if (message.height !== undefined && message.height !== undefined) {
|
||||
if (message.height !== undefined) {
|
||||
Height.encode(message.height, writer.uint32(26).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -726,7 +726,7 @@ export const QueryConnectionChannelsResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryConnectionChannelsResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryConnectionChannelsResponse } as QueryConnectionChannelsResponse;
|
||||
const message = Object.create(baseQueryConnectionChannelsResponse) as QueryConnectionChannelsResponse;
|
||||
message.channels = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -749,7 +749,7 @@ export const QueryConnectionChannelsResponse = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryConnectionChannelsResponse {
|
||||
const message = { ...baseQueryConnectionChannelsResponse } as QueryConnectionChannelsResponse;
|
||||
const message = Object.create(baseQueryConnectionChannelsResponse) as QueryConnectionChannelsResponse;
|
||||
message.channels = [];
|
||||
if (object.channels !== undefined && object.channels !== null) {
|
||||
for (const e of object.channels) {
|
||||
@ -816,7 +816,7 @@ export const QueryChannelClientStateRequest = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryChannelClientStateRequest {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryChannelClientStateRequest } as QueryChannelClientStateRequest;
|
||||
const message = Object.create(baseQueryChannelClientStateRequest) as QueryChannelClientStateRequest;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -835,7 +835,7 @@ export const QueryChannelClientStateRequest = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryChannelClientStateRequest {
|
||||
const message = { ...baseQueryChannelClientStateRequest } as QueryChannelClientStateRequest;
|
||||
const message = Object.create(baseQueryChannelClientStateRequest) as QueryChannelClientStateRequest;
|
||||
if (object.portId !== undefined && object.portId !== null) {
|
||||
message.portId = String(object.portId);
|
||||
} else {
|
||||
@ -876,11 +876,11 @@ const baseQueryChannelClientStateResponse: object = {};
|
||||
|
||||
export const QueryChannelClientStateResponse = {
|
||||
encode(message: QueryChannelClientStateResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
if (message.identifiedClientState !== undefined && message.identifiedClientState !== undefined) {
|
||||
if (message.identifiedClientState !== undefined) {
|
||||
IdentifiedClientState.encode(message.identifiedClientState, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
writer.uint32(18).bytes(message.proof);
|
||||
if (message.proofHeight !== undefined && message.proofHeight !== undefined) {
|
||||
if (message.proofHeight !== undefined) {
|
||||
Height.encode(message.proofHeight, writer.uint32(26).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -889,7 +889,7 @@ export const QueryChannelClientStateResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryChannelClientStateResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryChannelClientStateResponse } as QueryChannelClientStateResponse;
|
||||
const message = Object.create(baseQueryChannelClientStateResponse) as QueryChannelClientStateResponse;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -911,7 +911,7 @@ export const QueryChannelClientStateResponse = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryChannelClientStateResponse {
|
||||
const message = { ...baseQueryChannelClientStateResponse } as QueryChannelClientStateResponse;
|
||||
const message = Object.create(baseQueryChannelClientStateResponse) as QueryChannelClientStateResponse;
|
||||
if (object.identifiedClientState !== undefined && object.identifiedClientState !== null) {
|
||||
message.identifiedClientState = IdentifiedClientState.fromJSON(object.identifiedClientState);
|
||||
} else {
|
||||
@ -981,7 +981,7 @@ export const QueryChannelConsensusStateRequest = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryChannelConsensusStateRequest {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryChannelConsensusStateRequest } as QueryChannelConsensusStateRequest;
|
||||
const message = Object.create(baseQueryChannelConsensusStateRequest) as QueryChannelConsensusStateRequest;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -1006,7 +1006,7 @@ export const QueryChannelConsensusStateRequest = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryChannelConsensusStateRequest {
|
||||
const message = { ...baseQueryChannelConsensusStateRequest } as QueryChannelConsensusStateRequest;
|
||||
const message = Object.create(baseQueryChannelConsensusStateRequest) as QueryChannelConsensusStateRequest;
|
||||
if (object.portId !== undefined && object.portId !== null) {
|
||||
message.portId = String(object.portId);
|
||||
} else {
|
||||
@ -1071,12 +1071,12 @@ const baseQueryChannelConsensusStateResponse: object = { clientId: "" };
|
||||
|
||||
export const QueryChannelConsensusStateResponse = {
|
||||
encode(message: QueryChannelConsensusStateResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
if (message.consensusState !== undefined && message.consensusState !== undefined) {
|
||||
if (message.consensusState !== undefined) {
|
||||
Any.encode(message.consensusState, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
writer.uint32(18).string(message.clientId);
|
||||
writer.uint32(26).bytes(message.proof);
|
||||
if (message.proofHeight !== undefined && message.proofHeight !== undefined) {
|
||||
if (message.proofHeight !== undefined) {
|
||||
Height.encode(message.proofHeight, writer.uint32(34).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -1085,7 +1085,9 @@ export const QueryChannelConsensusStateResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryChannelConsensusStateResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryChannelConsensusStateResponse } as QueryChannelConsensusStateResponse;
|
||||
const message = Object.create(
|
||||
baseQueryChannelConsensusStateResponse,
|
||||
) as QueryChannelConsensusStateResponse;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -1110,7 +1112,9 @@ export const QueryChannelConsensusStateResponse = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryChannelConsensusStateResponse {
|
||||
const message = { ...baseQueryChannelConsensusStateResponse } as QueryChannelConsensusStateResponse;
|
||||
const message = Object.create(
|
||||
baseQueryChannelConsensusStateResponse,
|
||||
) as QueryChannelConsensusStateResponse;
|
||||
if (object.consensusState !== undefined && object.consensusState !== null) {
|
||||
message.consensusState = Any.fromJSON(object.consensusState);
|
||||
} else {
|
||||
@ -1183,7 +1187,7 @@ export const QueryPacketCommitmentRequest = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryPacketCommitmentRequest {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryPacketCommitmentRequest } as QueryPacketCommitmentRequest;
|
||||
const message = Object.create(baseQueryPacketCommitmentRequest) as QueryPacketCommitmentRequest;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -1205,7 +1209,7 @@ export const QueryPacketCommitmentRequest = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryPacketCommitmentRequest {
|
||||
const message = { ...baseQueryPacketCommitmentRequest } as QueryPacketCommitmentRequest;
|
||||
const message = Object.create(baseQueryPacketCommitmentRequest) as QueryPacketCommitmentRequest;
|
||||
if (object.portId !== undefined && object.portId !== null) {
|
||||
message.portId = String(object.portId);
|
||||
} else {
|
||||
@ -1259,7 +1263,7 @@ export const QueryPacketCommitmentResponse = {
|
||||
encode(message: QueryPacketCommitmentResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
writer.uint32(10).bytes(message.commitment);
|
||||
writer.uint32(18).bytes(message.proof);
|
||||
if (message.proofHeight !== undefined && message.proofHeight !== undefined) {
|
||||
if (message.proofHeight !== undefined) {
|
||||
Height.encode(message.proofHeight, writer.uint32(26).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -1268,7 +1272,7 @@ export const QueryPacketCommitmentResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryPacketCommitmentResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryPacketCommitmentResponse } as QueryPacketCommitmentResponse;
|
||||
const message = Object.create(baseQueryPacketCommitmentResponse) as QueryPacketCommitmentResponse;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -1290,7 +1294,7 @@ export const QueryPacketCommitmentResponse = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryPacketCommitmentResponse {
|
||||
const message = { ...baseQueryPacketCommitmentResponse } as QueryPacketCommitmentResponse;
|
||||
const message = Object.create(baseQueryPacketCommitmentResponse) as QueryPacketCommitmentResponse;
|
||||
if (object.commitment !== undefined && object.commitment !== null) {
|
||||
message.commitment = bytesFromBase64(object.commitment);
|
||||
}
|
||||
@ -1345,7 +1349,7 @@ export const QueryPacketCommitmentsRequest = {
|
||||
encode(message: QueryPacketCommitmentsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
writer.uint32(10).string(message.portId);
|
||||
writer.uint32(18).string(message.channelId);
|
||||
if (message.pagination !== undefined && message.pagination !== undefined) {
|
||||
if (message.pagination !== undefined) {
|
||||
PageRequest.encode(message.pagination, writer.uint32(26).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -1354,7 +1358,7 @@ export const QueryPacketCommitmentsRequest = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryPacketCommitmentsRequest {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryPacketCommitmentsRequest } as QueryPacketCommitmentsRequest;
|
||||
const message = Object.create(baseQueryPacketCommitmentsRequest) as QueryPacketCommitmentsRequest;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -1376,7 +1380,7 @@ export const QueryPacketCommitmentsRequest = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryPacketCommitmentsRequest {
|
||||
const message = { ...baseQueryPacketCommitmentsRequest } as QueryPacketCommitmentsRequest;
|
||||
const message = Object.create(baseQueryPacketCommitmentsRequest) as QueryPacketCommitmentsRequest;
|
||||
if (object.portId !== undefined && object.portId !== null) {
|
||||
message.portId = String(object.portId);
|
||||
} else {
|
||||
@ -1432,10 +1436,10 @@ export const QueryPacketCommitmentsResponse = {
|
||||
for (const v of message.commitments) {
|
||||
PacketState.encode(v!, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
if (message.pagination !== undefined && message.pagination !== undefined) {
|
||||
if (message.pagination !== undefined) {
|
||||
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
||||
}
|
||||
if (message.height !== undefined && message.height !== undefined) {
|
||||
if (message.height !== undefined) {
|
||||
Height.encode(message.height, writer.uint32(26).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -1444,7 +1448,7 @@ export const QueryPacketCommitmentsResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryPacketCommitmentsResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryPacketCommitmentsResponse } as QueryPacketCommitmentsResponse;
|
||||
const message = Object.create(baseQueryPacketCommitmentsResponse) as QueryPacketCommitmentsResponse;
|
||||
message.commitments = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -1467,7 +1471,7 @@ export const QueryPacketCommitmentsResponse = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryPacketCommitmentsResponse {
|
||||
const message = { ...baseQueryPacketCommitmentsResponse } as QueryPacketCommitmentsResponse;
|
||||
const message = Object.create(baseQueryPacketCommitmentsResponse) as QueryPacketCommitmentsResponse;
|
||||
message.commitments = [];
|
||||
if (object.commitments !== undefined && object.commitments !== null) {
|
||||
for (const e of object.commitments) {
|
||||
@ -1535,7 +1539,7 @@ export const QueryPacketReceiptRequest = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryPacketReceiptRequest {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryPacketReceiptRequest } as QueryPacketReceiptRequest;
|
||||
const message = Object.create(baseQueryPacketReceiptRequest) as QueryPacketReceiptRequest;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -1557,7 +1561,7 @@ export const QueryPacketReceiptRequest = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryPacketReceiptRequest {
|
||||
const message = { ...baseQueryPacketReceiptRequest } as QueryPacketReceiptRequest;
|
||||
const message = Object.create(baseQueryPacketReceiptRequest) as QueryPacketReceiptRequest;
|
||||
if (object.portId !== undefined && object.portId !== null) {
|
||||
message.portId = String(object.portId);
|
||||
} else {
|
||||
@ -1611,7 +1615,7 @@ export const QueryPacketReceiptResponse = {
|
||||
encode(message: QueryPacketReceiptResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
writer.uint32(16).bool(message.received);
|
||||
writer.uint32(26).bytes(message.proof);
|
||||
if (message.proofHeight !== undefined && message.proofHeight !== undefined) {
|
||||
if (message.proofHeight !== undefined) {
|
||||
Height.encode(message.proofHeight, writer.uint32(34).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -1620,7 +1624,7 @@ export const QueryPacketReceiptResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryPacketReceiptResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryPacketReceiptResponse } as QueryPacketReceiptResponse;
|
||||
const message = Object.create(baseQueryPacketReceiptResponse) as QueryPacketReceiptResponse;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -1642,7 +1646,7 @@ export const QueryPacketReceiptResponse = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryPacketReceiptResponse {
|
||||
const message = { ...baseQueryPacketReceiptResponse } as QueryPacketReceiptResponse;
|
||||
const message = Object.create(baseQueryPacketReceiptResponse) as QueryPacketReceiptResponse;
|
||||
if (object.received !== undefined && object.received !== null) {
|
||||
message.received = Boolean(object.received);
|
||||
} else {
|
||||
@ -1703,7 +1707,7 @@ export const QueryPacketAcknowledgementRequest = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryPacketAcknowledgementRequest {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryPacketAcknowledgementRequest } as QueryPacketAcknowledgementRequest;
|
||||
const message = Object.create(baseQueryPacketAcknowledgementRequest) as QueryPacketAcknowledgementRequest;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -1725,7 +1729,7 @@ export const QueryPacketAcknowledgementRequest = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryPacketAcknowledgementRequest {
|
||||
const message = { ...baseQueryPacketAcknowledgementRequest } as QueryPacketAcknowledgementRequest;
|
||||
const message = Object.create(baseQueryPacketAcknowledgementRequest) as QueryPacketAcknowledgementRequest;
|
||||
if (object.portId !== undefined && object.portId !== null) {
|
||||
message.portId = String(object.portId);
|
||||
} else {
|
||||
@ -1779,7 +1783,7 @@ export const QueryPacketAcknowledgementResponse = {
|
||||
encode(message: QueryPacketAcknowledgementResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
writer.uint32(10).bytes(message.acknowledgement);
|
||||
writer.uint32(18).bytes(message.proof);
|
||||
if (message.proofHeight !== undefined && message.proofHeight !== undefined) {
|
||||
if (message.proofHeight !== undefined) {
|
||||
Height.encode(message.proofHeight, writer.uint32(26).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -1788,7 +1792,9 @@ export const QueryPacketAcknowledgementResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryPacketAcknowledgementResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryPacketAcknowledgementResponse } as QueryPacketAcknowledgementResponse;
|
||||
const message = Object.create(
|
||||
baseQueryPacketAcknowledgementResponse,
|
||||
) as QueryPacketAcknowledgementResponse;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -1810,7 +1816,9 @@ export const QueryPacketAcknowledgementResponse = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryPacketAcknowledgementResponse {
|
||||
const message = { ...baseQueryPacketAcknowledgementResponse } as QueryPacketAcknowledgementResponse;
|
||||
const message = Object.create(
|
||||
baseQueryPacketAcknowledgementResponse,
|
||||
) as QueryPacketAcknowledgementResponse;
|
||||
if (object.acknowledgement !== undefined && object.acknowledgement !== null) {
|
||||
message.acknowledgement = bytesFromBase64(object.acknowledgement);
|
||||
}
|
||||
@ -1865,7 +1873,7 @@ export const QueryPacketAcknowledgementsRequest = {
|
||||
encode(message: QueryPacketAcknowledgementsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
writer.uint32(10).string(message.portId);
|
||||
writer.uint32(18).string(message.channelId);
|
||||
if (message.pagination !== undefined && message.pagination !== undefined) {
|
||||
if (message.pagination !== undefined) {
|
||||
PageRequest.encode(message.pagination, writer.uint32(26).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -1874,7 +1882,9 @@ export const QueryPacketAcknowledgementsRequest = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryPacketAcknowledgementsRequest {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryPacketAcknowledgementsRequest } as QueryPacketAcknowledgementsRequest;
|
||||
const message = Object.create(
|
||||
baseQueryPacketAcknowledgementsRequest,
|
||||
) as QueryPacketAcknowledgementsRequest;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -1896,7 +1906,9 @@ export const QueryPacketAcknowledgementsRequest = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryPacketAcknowledgementsRequest {
|
||||
const message = { ...baseQueryPacketAcknowledgementsRequest } as QueryPacketAcknowledgementsRequest;
|
||||
const message = Object.create(
|
||||
baseQueryPacketAcknowledgementsRequest,
|
||||
) as QueryPacketAcknowledgementsRequest;
|
||||
if (object.portId !== undefined && object.portId !== null) {
|
||||
message.portId = String(object.portId);
|
||||
} else {
|
||||
@ -1952,10 +1964,10 @@ export const QueryPacketAcknowledgementsResponse = {
|
||||
for (const v of message.acknowledgements) {
|
||||
PacketState.encode(v!, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
if (message.pagination !== undefined && message.pagination !== undefined) {
|
||||
if (message.pagination !== undefined) {
|
||||
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
||||
}
|
||||
if (message.height !== undefined && message.height !== undefined) {
|
||||
if (message.height !== undefined) {
|
||||
Height.encode(message.height, writer.uint32(26).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -1964,7 +1976,9 @@ export const QueryPacketAcknowledgementsResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryPacketAcknowledgementsResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryPacketAcknowledgementsResponse } as QueryPacketAcknowledgementsResponse;
|
||||
const message = Object.create(
|
||||
baseQueryPacketAcknowledgementsResponse,
|
||||
) as QueryPacketAcknowledgementsResponse;
|
||||
message.acknowledgements = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -1987,7 +2001,9 @@ export const QueryPacketAcknowledgementsResponse = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryPacketAcknowledgementsResponse {
|
||||
const message = { ...baseQueryPacketAcknowledgementsResponse } as QueryPacketAcknowledgementsResponse;
|
||||
const message = Object.create(
|
||||
baseQueryPacketAcknowledgementsResponse,
|
||||
) as QueryPacketAcknowledgementsResponse;
|
||||
message.acknowledgements = [];
|
||||
if (object.acknowledgements !== undefined && object.acknowledgements !== null) {
|
||||
for (const e of object.acknowledgements) {
|
||||
@ -2063,7 +2079,7 @@ export const QueryUnreceivedPacketsRequest = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryUnreceivedPacketsRequest {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryUnreceivedPacketsRequest } as QueryUnreceivedPacketsRequest;
|
||||
const message = Object.create(baseQueryUnreceivedPacketsRequest) as QueryUnreceivedPacketsRequest;
|
||||
message.packetCommitmentSequences = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -2093,7 +2109,7 @@ export const QueryUnreceivedPacketsRequest = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryUnreceivedPacketsRequest {
|
||||
const message = { ...baseQueryUnreceivedPacketsRequest } as QueryUnreceivedPacketsRequest;
|
||||
const message = Object.create(baseQueryUnreceivedPacketsRequest) as QueryUnreceivedPacketsRequest;
|
||||
message.packetCommitmentSequences = [];
|
||||
if (object.portId !== undefined && object.portId !== null) {
|
||||
message.portId = String(object.portId);
|
||||
@ -2158,7 +2174,7 @@ export const QueryUnreceivedPacketsResponse = {
|
||||
writer.uint64(v);
|
||||
}
|
||||
writer.ldelim();
|
||||
if (message.height !== undefined && message.height !== undefined) {
|
||||
if (message.height !== undefined) {
|
||||
Height.encode(message.height, writer.uint32(18).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -2167,7 +2183,7 @@ export const QueryUnreceivedPacketsResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryUnreceivedPacketsResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryUnreceivedPacketsResponse } as QueryUnreceivedPacketsResponse;
|
||||
const message = Object.create(baseQueryUnreceivedPacketsResponse) as QueryUnreceivedPacketsResponse;
|
||||
message.sequences = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -2194,7 +2210,7 @@ export const QueryUnreceivedPacketsResponse = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryUnreceivedPacketsResponse {
|
||||
const message = { ...baseQueryUnreceivedPacketsResponse } as QueryUnreceivedPacketsResponse;
|
||||
const message = Object.create(baseQueryUnreceivedPacketsResponse) as QueryUnreceivedPacketsResponse;
|
||||
message.sequences = [];
|
||||
if (object.sequences !== undefined && object.sequences !== null) {
|
||||
for (const e of object.sequences) {
|
||||
@ -2254,7 +2270,7 @@ export const QueryUnreceivedAcksRequest = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryUnreceivedAcksRequest {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryUnreceivedAcksRequest } as QueryUnreceivedAcksRequest;
|
||||
const message = Object.create(baseQueryUnreceivedAcksRequest) as QueryUnreceivedAcksRequest;
|
||||
message.packetAckSequences = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -2284,7 +2300,7 @@ export const QueryUnreceivedAcksRequest = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryUnreceivedAcksRequest {
|
||||
const message = { ...baseQueryUnreceivedAcksRequest } as QueryUnreceivedAcksRequest;
|
||||
const message = Object.create(baseQueryUnreceivedAcksRequest) as QueryUnreceivedAcksRequest;
|
||||
message.packetAckSequences = [];
|
||||
if (object.portId !== undefined && object.portId !== null) {
|
||||
message.portId = String(object.portId);
|
||||
@ -2347,7 +2363,7 @@ export const QueryUnreceivedAcksResponse = {
|
||||
writer.uint64(v);
|
||||
}
|
||||
writer.ldelim();
|
||||
if (message.height !== undefined && message.height !== undefined) {
|
||||
if (message.height !== undefined) {
|
||||
Height.encode(message.height, writer.uint32(18).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -2356,7 +2372,7 @@ export const QueryUnreceivedAcksResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryUnreceivedAcksResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryUnreceivedAcksResponse } as QueryUnreceivedAcksResponse;
|
||||
const message = Object.create(baseQueryUnreceivedAcksResponse) as QueryUnreceivedAcksResponse;
|
||||
message.sequences = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -2383,7 +2399,7 @@ export const QueryUnreceivedAcksResponse = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryUnreceivedAcksResponse {
|
||||
const message = { ...baseQueryUnreceivedAcksResponse } as QueryUnreceivedAcksResponse;
|
||||
const message = Object.create(baseQueryUnreceivedAcksResponse) as QueryUnreceivedAcksResponse;
|
||||
message.sequences = [];
|
||||
if (object.sequences !== undefined && object.sequences !== null) {
|
||||
for (const e of object.sequences) {
|
||||
@ -2438,7 +2454,7 @@ export const QueryNextSequenceReceiveRequest = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryNextSequenceReceiveRequest {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryNextSequenceReceiveRequest } as QueryNextSequenceReceiveRequest;
|
||||
const message = Object.create(baseQueryNextSequenceReceiveRequest) as QueryNextSequenceReceiveRequest;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -2457,7 +2473,7 @@ export const QueryNextSequenceReceiveRequest = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryNextSequenceReceiveRequest {
|
||||
const message = { ...baseQueryNextSequenceReceiveRequest } as QueryNextSequenceReceiveRequest;
|
||||
const message = Object.create(baseQueryNextSequenceReceiveRequest) as QueryNextSequenceReceiveRequest;
|
||||
if (object.portId !== undefined && object.portId !== null) {
|
||||
message.portId = String(object.portId);
|
||||
} else {
|
||||
@ -2500,7 +2516,7 @@ export const QueryNextSequenceReceiveResponse = {
|
||||
encode(message: QueryNextSequenceReceiveResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
writer.uint32(8).uint64(message.nextSequenceReceive);
|
||||
writer.uint32(18).bytes(message.proof);
|
||||
if (message.proofHeight !== undefined && message.proofHeight !== undefined) {
|
||||
if (message.proofHeight !== undefined) {
|
||||
Height.encode(message.proofHeight, writer.uint32(26).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -2509,7 +2525,7 @@ export const QueryNextSequenceReceiveResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryNextSequenceReceiveResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryNextSequenceReceiveResponse } as QueryNextSequenceReceiveResponse;
|
||||
const message = Object.create(baseQueryNextSequenceReceiveResponse) as QueryNextSequenceReceiveResponse;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -2531,7 +2547,7 @@ export const QueryNextSequenceReceiveResponse = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryNextSequenceReceiveResponse {
|
||||
const message = { ...baseQueryNextSequenceReceiveResponse } as QueryNextSequenceReceiveResponse;
|
||||
const message = Object.create(baseQueryNextSequenceReceiveResponse) as QueryNextSequenceReceiveResponse;
|
||||
if (object.nextSequenceReceive !== undefined && object.nextSequenceReceive !== null) {
|
||||
message.nextSequenceReceive = Long.fromString(object.nextSequenceReceive);
|
||||
} else {
|
||||
|
@ -80,7 +80,7 @@ const baseIdentifiedClientState: object = { clientId: "" };
|
||||
export const IdentifiedClientState = {
|
||||
encode(message: IdentifiedClientState, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
writer.uint32(10).string(message.clientId);
|
||||
if (message.clientState !== undefined && message.clientState !== undefined) {
|
||||
if (message.clientState !== undefined) {
|
||||
Any.encode(message.clientState, writer.uint32(18).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -89,7 +89,7 @@ export const IdentifiedClientState = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): IdentifiedClientState {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseIdentifiedClientState } as IdentifiedClientState;
|
||||
const message = Object.create(baseIdentifiedClientState) as IdentifiedClientState;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -108,7 +108,7 @@ export const IdentifiedClientState = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): IdentifiedClientState {
|
||||
const message = { ...baseIdentifiedClientState } as IdentifiedClientState;
|
||||
const message = Object.create(baseIdentifiedClientState) as IdentifiedClientState;
|
||||
if (object.clientId !== undefined && object.clientId !== null) {
|
||||
message.clientId = String(object.clientId);
|
||||
} else {
|
||||
@ -150,10 +150,10 @@ const baseConsensusStateWithHeight: object = {};
|
||||
|
||||
export const ConsensusStateWithHeight = {
|
||||
encode(message: ConsensusStateWithHeight, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
if (message.height !== undefined && message.height !== undefined) {
|
||||
if (message.height !== undefined) {
|
||||
Height.encode(message.height, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
if (message.consensusState !== undefined && message.consensusState !== undefined) {
|
||||
if (message.consensusState !== undefined) {
|
||||
Any.encode(message.consensusState, writer.uint32(18).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -162,7 +162,7 @@ export const ConsensusStateWithHeight = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): ConsensusStateWithHeight {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseConsensusStateWithHeight } as ConsensusStateWithHeight;
|
||||
const message = Object.create(baseConsensusStateWithHeight) as ConsensusStateWithHeight;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -181,7 +181,7 @@ export const ConsensusStateWithHeight = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): ConsensusStateWithHeight {
|
||||
const message = { ...baseConsensusStateWithHeight } as ConsensusStateWithHeight;
|
||||
const message = Object.create(baseConsensusStateWithHeight) as ConsensusStateWithHeight;
|
||||
if (object.height !== undefined && object.height !== null) {
|
||||
message.height = Height.fromJSON(object.height);
|
||||
} else {
|
||||
@ -233,7 +233,7 @@ export const ClientConsensusStates = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): ClientConsensusStates {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseClientConsensusStates } as ClientConsensusStates;
|
||||
const message = Object.create(baseClientConsensusStates) as ClientConsensusStates;
|
||||
message.consensusStates = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -253,7 +253,7 @@ export const ClientConsensusStates = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): ClientConsensusStates {
|
||||
const message = { ...baseClientConsensusStates } as ClientConsensusStates;
|
||||
const message = Object.create(baseClientConsensusStates) as ClientConsensusStates;
|
||||
message.consensusStates = [];
|
||||
if (object.clientId !== undefined && object.clientId !== null) {
|
||||
message.clientId = String(object.clientId);
|
||||
@ -305,7 +305,7 @@ export const ClientUpdateProposal = {
|
||||
writer.uint32(10).string(message.title);
|
||||
writer.uint32(18).string(message.description);
|
||||
writer.uint32(26).string(message.clientId);
|
||||
if (message.header !== undefined && message.header !== undefined) {
|
||||
if (message.header !== undefined) {
|
||||
Any.encode(message.header, writer.uint32(34).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -314,7 +314,7 @@ export const ClientUpdateProposal = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): ClientUpdateProposal {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseClientUpdateProposal } as ClientUpdateProposal;
|
||||
const message = Object.create(baseClientUpdateProposal) as ClientUpdateProposal;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -339,7 +339,7 @@ export const ClientUpdateProposal = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): ClientUpdateProposal {
|
||||
const message = { ...baseClientUpdateProposal } as ClientUpdateProposal;
|
||||
const message = Object.create(baseClientUpdateProposal) as ClientUpdateProposal;
|
||||
if (object.title !== undefined && object.title !== null) {
|
||||
message.title = String(object.title);
|
||||
} else {
|
||||
@ -410,7 +410,7 @@ export const Height = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): Height {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseHeight } as Height;
|
||||
const message = Object.create(baseHeight) as Height;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -429,7 +429,7 @@ export const Height = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): Height {
|
||||
const message = { ...baseHeight } as Height;
|
||||
const message = Object.create(baseHeight) as Height;
|
||||
if (object.revisionNumber !== undefined && object.revisionNumber !== null) {
|
||||
message.revisionNumber = Long.fromString(object.revisionNumber);
|
||||
} else {
|
||||
@ -481,7 +481,7 @@ export const Params = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): Params {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseParams } as Params;
|
||||
const message = Object.create(baseParams) as Params;
|
||||
message.allowedClients = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -498,7 +498,7 @@ export const Params = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): Params {
|
||||
const message = { ...baseParams } as Params;
|
||||
const message = Object.create(baseParams) as Params;
|
||||
message.allowedClients = [];
|
||||
if (object.allowedClients !== undefined && object.allowedClients !== null) {
|
||||
for (const e of object.allowedClients) {
|
||||
|
@ -53,7 +53,7 @@ export const MerkleRoot = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): MerkleRoot {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseMerkleRoot } as MerkleRoot;
|
||||
const message = Object.create(baseMerkleRoot) as MerkleRoot;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -69,7 +69,7 @@ export const MerkleRoot = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): MerkleRoot {
|
||||
const message = { ...baseMerkleRoot } as MerkleRoot;
|
||||
const message = Object.create(baseMerkleRoot) as MerkleRoot;
|
||||
if (object.hash !== undefined && object.hash !== null) {
|
||||
message.hash = bytesFromBase64(object.hash);
|
||||
}
|
||||
@ -105,7 +105,7 @@ export const MerklePrefix = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): MerklePrefix {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseMerklePrefix } as MerklePrefix;
|
||||
const message = Object.create(baseMerklePrefix) as MerklePrefix;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -121,7 +121,7 @@ export const MerklePrefix = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): MerklePrefix {
|
||||
const message = { ...baseMerklePrefix } as MerklePrefix;
|
||||
const message = Object.create(baseMerklePrefix) as MerklePrefix;
|
||||
if (object.keyPrefix !== undefined && object.keyPrefix !== null) {
|
||||
message.keyPrefix = bytesFromBase64(object.keyPrefix);
|
||||
}
|
||||
@ -161,7 +161,7 @@ export const MerklePath = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): MerklePath {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseMerklePath } as MerklePath;
|
||||
const message = Object.create(baseMerklePath) as MerklePath;
|
||||
message.keyPath = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -178,7 +178,7 @@ export const MerklePath = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): MerklePath {
|
||||
const message = { ...baseMerklePath } as MerklePath;
|
||||
const message = Object.create(baseMerklePath) as MerklePath;
|
||||
message.keyPath = [];
|
||||
if (object.keyPath !== undefined && object.keyPath !== null) {
|
||||
for (const e of object.keyPath) {
|
||||
@ -223,7 +223,7 @@ export const MerkleProof = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): MerkleProof {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseMerkleProof } as MerkleProof;
|
||||
const message = Object.create(baseMerkleProof) as MerkleProof;
|
||||
message.proofs = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -240,7 +240,7 @@ export const MerkleProof = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): MerkleProof {
|
||||
const message = { ...baseMerkleProof } as MerkleProof;
|
||||
const message = Object.create(baseMerkleProof) as MerkleProof;
|
||||
message.proofs = [];
|
||||
if (object.proofs !== undefined && object.proofs !== null) {
|
||||
for (const e of object.proofs) {
|
||||
|
@ -157,7 +157,7 @@ export const ConnectionEnd = {
|
||||
Version.encode(v!, writer.uint32(18).fork()).ldelim();
|
||||
}
|
||||
writer.uint32(24).int32(message.state);
|
||||
if (message.counterparty !== undefined && message.counterparty !== undefined) {
|
||||
if (message.counterparty !== undefined) {
|
||||
Counterparty.encode(message.counterparty, writer.uint32(34).fork()).ldelim();
|
||||
}
|
||||
writer.uint32(40).uint64(message.delayPeriod);
|
||||
@ -167,7 +167,7 @@ export const ConnectionEnd = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): ConnectionEnd {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseConnectionEnd } as ConnectionEnd;
|
||||
const message = Object.create(baseConnectionEnd) as ConnectionEnd;
|
||||
message.versions = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -196,7 +196,7 @@ export const ConnectionEnd = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): ConnectionEnd {
|
||||
const message = { ...baseConnectionEnd } as ConnectionEnd;
|
||||
const message = Object.create(baseConnectionEnd) as ConnectionEnd;
|
||||
message.versions = [];
|
||||
if (object.clientId !== undefined && object.clientId !== null) {
|
||||
message.clientId = String(object.clientId);
|
||||
@ -283,7 +283,7 @@ export const IdentifiedConnection = {
|
||||
Version.encode(v!, writer.uint32(26).fork()).ldelim();
|
||||
}
|
||||
writer.uint32(32).int32(message.state);
|
||||
if (message.counterparty !== undefined && message.counterparty !== undefined) {
|
||||
if (message.counterparty !== undefined) {
|
||||
Counterparty.encode(message.counterparty, writer.uint32(42).fork()).ldelim();
|
||||
}
|
||||
writer.uint32(48).uint64(message.delayPeriod);
|
||||
@ -293,7 +293,7 @@ export const IdentifiedConnection = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): IdentifiedConnection {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseIdentifiedConnection } as IdentifiedConnection;
|
||||
const message = Object.create(baseIdentifiedConnection) as IdentifiedConnection;
|
||||
message.versions = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -325,7 +325,7 @@ export const IdentifiedConnection = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): IdentifiedConnection {
|
||||
const message = { ...baseIdentifiedConnection } as IdentifiedConnection;
|
||||
const message = Object.create(baseIdentifiedConnection) as IdentifiedConnection;
|
||||
message.versions = [];
|
||||
if (object.id !== undefined && object.id !== null) {
|
||||
message.id = String(object.id);
|
||||
@ -419,7 +419,7 @@ export const Counterparty = {
|
||||
encode(message: Counterparty, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
writer.uint32(10).string(message.clientId);
|
||||
writer.uint32(18).string(message.connectionId);
|
||||
if (message.prefix !== undefined && message.prefix !== undefined) {
|
||||
if (message.prefix !== undefined) {
|
||||
MerklePrefix.encode(message.prefix, writer.uint32(26).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -428,7 +428,7 @@ export const Counterparty = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): Counterparty {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseCounterparty } as Counterparty;
|
||||
const message = Object.create(baseCounterparty) as Counterparty;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -450,7 +450,7 @@ export const Counterparty = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): Counterparty {
|
||||
const message = { ...baseCounterparty } as Counterparty;
|
||||
const message = Object.create(baseCounterparty) as Counterparty;
|
||||
if (object.clientId !== undefined && object.clientId !== null) {
|
||||
message.clientId = String(object.clientId);
|
||||
} else {
|
||||
@ -512,7 +512,7 @@ export const ClientPaths = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): ClientPaths {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseClientPaths } as ClientPaths;
|
||||
const message = Object.create(baseClientPaths) as ClientPaths;
|
||||
message.paths = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -529,7 +529,7 @@ export const ClientPaths = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): ClientPaths {
|
||||
const message = { ...baseClientPaths } as ClientPaths;
|
||||
const message = Object.create(baseClientPaths) as ClientPaths;
|
||||
message.paths = [];
|
||||
if (object.paths !== undefined && object.paths !== null) {
|
||||
for (const e of object.paths) {
|
||||
@ -575,7 +575,7 @@ export const ConnectionPaths = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): ConnectionPaths {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseConnectionPaths } as ConnectionPaths;
|
||||
const message = Object.create(baseConnectionPaths) as ConnectionPaths;
|
||||
message.paths = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -595,7 +595,7 @@ export const ConnectionPaths = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): ConnectionPaths {
|
||||
const message = { ...baseConnectionPaths } as ConnectionPaths;
|
||||
const message = Object.create(baseConnectionPaths) as ConnectionPaths;
|
||||
message.paths = [];
|
||||
if (object.clientId !== undefined && object.clientId !== null) {
|
||||
message.clientId = String(object.clientId);
|
||||
@ -652,7 +652,7 @@ export const Version = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): Version {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseVersion } as Version;
|
||||
const message = Object.create(baseVersion) as Version;
|
||||
message.features = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -672,7 +672,7 @@ export const Version = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): Version {
|
||||
const message = { ...baseVersion } as Version;
|
||||
const message = Object.create(baseVersion) as Version;
|
||||
message.features = [];
|
||||
if (object.identifier !== undefined && object.identifier !== null) {
|
||||
message.identifier = String(object.identifier);
|
||||
|
@ -133,7 +133,7 @@ export const QueryConnectionRequest = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryConnectionRequest {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryConnectionRequest } as QueryConnectionRequest;
|
||||
const message = Object.create(baseQueryConnectionRequest) as QueryConnectionRequest;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -149,7 +149,7 @@ export const QueryConnectionRequest = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryConnectionRequest {
|
||||
const message = { ...baseQueryConnectionRequest } as QueryConnectionRequest;
|
||||
const message = Object.create(baseQueryConnectionRequest) as QueryConnectionRequest;
|
||||
if (object.connectionId !== undefined && object.connectionId !== null) {
|
||||
message.connectionId = String(object.connectionId);
|
||||
} else {
|
||||
@ -179,11 +179,11 @@ const baseQueryConnectionResponse: object = {};
|
||||
|
||||
export const QueryConnectionResponse = {
|
||||
encode(message: QueryConnectionResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
if (message.connection !== undefined && message.connection !== undefined) {
|
||||
if (message.connection !== undefined) {
|
||||
ConnectionEnd.encode(message.connection, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
writer.uint32(18).bytes(message.proof);
|
||||
if (message.proofHeight !== undefined && message.proofHeight !== undefined) {
|
||||
if (message.proofHeight !== undefined) {
|
||||
Height.encode(message.proofHeight, writer.uint32(26).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -192,7 +192,7 @@ export const QueryConnectionResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryConnectionResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryConnectionResponse } as QueryConnectionResponse;
|
||||
const message = Object.create(baseQueryConnectionResponse) as QueryConnectionResponse;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -214,7 +214,7 @@ export const QueryConnectionResponse = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryConnectionResponse {
|
||||
const message = { ...baseQueryConnectionResponse } as QueryConnectionResponse;
|
||||
const message = Object.create(baseQueryConnectionResponse) as QueryConnectionResponse;
|
||||
if (object.connection !== undefined && object.connection !== null) {
|
||||
message.connection = ConnectionEnd.fromJSON(object.connection);
|
||||
} else {
|
||||
@ -267,7 +267,7 @@ const baseQueryConnectionsRequest: object = {};
|
||||
|
||||
export const QueryConnectionsRequest = {
|
||||
encode(message: QueryConnectionsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
if (message.pagination !== undefined && message.pagination !== undefined) {
|
||||
if (message.pagination !== undefined) {
|
||||
PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -276,7 +276,7 @@ export const QueryConnectionsRequest = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryConnectionsRequest {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryConnectionsRequest } as QueryConnectionsRequest;
|
||||
const message = Object.create(baseQueryConnectionsRequest) as QueryConnectionsRequest;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -292,7 +292,7 @@ export const QueryConnectionsRequest = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryConnectionsRequest {
|
||||
const message = { ...baseQueryConnectionsRequest } as QueryConnectionsRequest;
|
||||
const message = Object.create(baseQueryConnectionsRequest) as QueryConnectionsRequest;
|
||||
if (object.pagination !== undefined && object.pagination !== null) {
|
||||
message.pagination = PageRequest.fromJSON(object.pagination);
|
||||
} else {
|
||||
@ -326,10 +326,10 @@ export const QueryConnectionsResponse = {
|
||||
for (const v of message.connections) {
|
||||
IdentifiedConnection.encode(v!, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
if (message.pagination !== undefined && message.pagination !== undefined) {
|
||||
if (message.pagination !== undefined) {
|
||||
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
||||
}
|
||||
if (message.height !== undefined && message.height !== undefined) {
|
||||
if (message.height !== undefined) {
|
||||
Height.encode(message.height, writer.uint32(26).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -338,7 +338,7 @@ export const QueryConnectionsResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryConnectionsResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryConnectionsResponse } as QueryConnectionsResponse;
|
||||
const message = Object.create(baseQueryConnectionsResponse) as QueryConnectionsResponse;
|
||||
message.connections = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -361,7 +361,7 @@ export const QueryConnectionsResponse = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryConnectionsResponse {
|
||||
const message = { ...baseQueryConnectionsResponse } as QueryConnectionsResponse;
|
||||
const message = Object.create(baseQueryConnectionsResponse) as QueryConnectionsResponse;
|
||||
message.connections = [];
|
||||
if (object.connections !== undefined && object.connections !== null) {
|
||||
for (const e of object.connections) {
|
||||
@ -427,7 +427,7 @@ export const QueryClientConnectionsRequest = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryClientConnectionsRequest {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryClientConnectionsRequest } as QueryClientConnectionsRequest;
|
||||
const message = Object.create(baseQueryClientConnectionsRequest) as QueryClientConnectionsRequest;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -443,7 +443,7 @@ export const QueryClientConnectionsRequest = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryClientConnectionsRequest {
|
||||
const message = { ...baseQueryClientConnectionsRequest } as QueryClientConnectionsRequest;
|
||||
const message = Object.create(baseQueryClientConnectionsRequest) as QueryClientConnectionsRequest;
|
||||
if (object.clientId !== undefined && object.clientId !== null) {
|
||||
message.clientId = String(object.clientId);
|
||||
} else {
|
||||
@ -477,7 +477,7 @@ export const QueryClientConnectionsResponse = {
|
||||
writer.uint32(10).string(v!);
|
||||
}
|
||||
writer.uint32(18).bytes(message.proof);
|
||||
if (message.proofHeight !== undefined && message.proofHeight !== undefined) {
|
||||
if (message.proofHeight !== undefined) {
|
||||
Height.encode(message.proofHeight, writer.uint32(26).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -486,7 +486,7 @@ export const QueryClientConnectionsResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryClientConnectionsResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryClientConnectionsResponse } as QueryClientConnectionsResponse;
|
||||
const message = Object.create(baseQueryClientConnectionsResponse) as QueryClientConnectionsResponse;
|
||||
message.connectionPaths = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -509,7 +509,7 @@ export const QueryClientConnectionsResponse = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryClientConnectionsResponse {
|
||||
const message = { ...baseQueryClientConnectionsResponse } as QueryClientConnectionsResponse;
|
||||
const message = Object.create(baseQueryClientConnectionsResponse) as QueryClientConnectionsResponse;
|
||||
message.connectionPaths = [];
|
||||
if (object.connectionPaths !== undefined && object.connectionPaths !== null) {
|
||||
for (const e of object.connectionPaths) {
|
||||
@ -574,7 +574,7 @@ export const QueryConnectionClientStateRequest = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryConnectionClientStateRequest {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryConnectionClientStateRequest } as QueryConnectionClientStateRequest;
|
||||
const message = Object.create(baseQueryConnectionClientStateRequest) as QueryConnectionClientStateRequest;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -590,7 +590,7 @@ export const QueryConnectionClientStateRequest = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryConnectionClientStateRequest {
|
||||
const message = { ...baseQueryConnectionClientStateRequest } as QueryConnectionClientStateRequest;
|
||||
const message = Object.create(baseQueryConnectionClientStateRequest) as QueryConnectionClientStateRequest;
|
||||
if (object.connectionId !== undefined && object.connectionId !== null) {
|
||||
message.connectionId = String(object.connectionId);
|
||||
} else {
|
||||
@ -620,11 +620,11 @@ const baseQueryConnectionClientStateResponse: object = {};
|
||||
|
||||
export const QueryConnectionClientStateResponse = {
|
||||
encode(message: QueryConnectionClientStateResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
if (message.identifiedClientState !== undefined && message.identifiedClientState !== undefined) {
|
||||
if (message.identifiedClientState !== undefined) {
|
||||
IdentifiedClientState.encode(message.identifiedClientState, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
writer.uint32(18).bytes(message.proof);
|
||||
if (message.proofHeight !== undefined && message.proofHeight !== undefined) {
|
||||
if (message.proofHeight !== undefined) {
|
||||
Height.encode(message.proofHeight, writer.uint32(26).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -633,7 +633,9 @@ export const QueryConnectionClientStateResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryConnectionClientStateResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryConnectionClientStateResponse } as QueryConnectionClientStateResponse;
|
||||
const message = Object.create(
|
||||
baseQueryConnectionClientStateResponse,
|
||||
) as QueryConnectionClientStateResponse;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -655,7 +657,9 @@ export const QueryConnectionClientStateResponse = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryConnectionClientStateResponse {
|
||||
const message = { ...baseQueryConnectionClientStateResponse } as QueryConnectionClientStateResponse;
|
||||
const message = Object.create(
|
||||
baseQueryConnectionClientStateResponse,
|
||||
) as QueryConnectionClientStateResponse;
|
||||
if (object.identifiedClientState !== undefined && object.identifiedClientState !== null) {
|
||||
message.identifiedClientState = IdentifiedClientState.fromJSON(object.identifiedClientState);
|
||||
} else {
|
||||
@ -726,7 +730,9 @@ export const QueryConnectionConsensusStateRequest = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryConnectionConsensusStateRequest {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryConnectionConsensusStateRequest } as QueryConnectionConsensusStateRequest;
|
||||
const message = Object.create(
|
||||
baseQueryConnectionConsensusStateRequest,
|
||||
) as QueryConnectionConsensusStateRequest;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -748,7 +754,9 @@ export const QueryConnectionConsensusStateRequest = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryConnectionConsensusStateRequest {
|
||||
const message = { ...baseQueryConnectionConsensusStateRequest } as QueryConnectionConsensusStateRequest;
|
||||
const message = Object.create(
|
||||
baseQueryConnectionConsensusStateRequest,
|
||||
) as QueryConnectionConsensusStateRequest;
|
||||
if (object.connectionId !== undefined && object.connectionId !== null) {
|
||||
message.connectionId = String(object.connectionId);
|
||||
} else {
|
||||
@ -807,12 +815,12 @@ export const QueryConnectionConsensusStateResponse = {
|
||||
message: QueryConnectionConsensusStateResponse,
|
||||
writer: _m0.Writer = _m0.Writer.create(),
|
||||
): _m0.Writer {
|
||||
if (message.consensusState !== undefined && message.consensusState !== undefined) {
|
||||
if (message.consensusState !== undefined) {
|
||||
Any.encode(message.consensusState, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
writer.uint32(18).string(message.clientId);
|
||||
writer.uint32(26).bytes(message.proof);
|
||||
if (message.proofHeight !== undefined && message.proofHeight !== undefined) {
|
||||
if (message.proofHeight !== undefined) {
|
||||
Height.encode(message.proofHeight, writer.uint32(34).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -821,7 +829,9 @@ export const QueryConnectionConsensusStateResponse = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryConnectionConsensusStateResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryConnectionConsensusStateResponse } as QueryConnectionConsensusStateResponse;
|
||||
const message = Object.create(
|
||||
baseQueryConnectionConsensusStateResponse,
|
||||
) as QueryConnectionConsensusStateResponse;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -846,7 +856,9 @@ export const QueryConnectionConsensusStateResponse = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): QueryConnectionConsensusStateResponse {
|
||||
const message = { ...baseQueryConnectionConsensusStateResponse } as QueryConnectionConsensusStateResponse;
|
||||
const message = Object.create(
|
||||
baseQueryConnectionConsensusStateResponse,
|
||||
) as QueryConnectionConsensusStateResponse;
|
||||
if (object.consensusState !== undefined && object.consensusState !== null) {
|
||||
message.consensusState = Any.fromJSON(object.consensusState);
|
||||
} else {
|
||||
|
@ -588,7 +588,7 @@ export const Request = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): Request {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseRequest } as Request;
|
||||
const message = Object.create(baseRequest) as Request;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -646,7 +646,7 @@ export const Request = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): Request {
|
||||
const message = { ...baseRequest } as Request;
|
||||
const message = Object.create(baseRequest) as Request;
|
||||
if (object.echo !== undefined && object.echo !== null) {
|
||||
message.echo = RequestEcho.fromJSON(object.echo);
|
||||
} else {
|
||||
@ -858,7 +858,7 @@ export const RequestEcho = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): RequestEcho {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseRequestEcho } as RequestEcho;
|
||||
const message = Object.create(baseRequestEcho) as RequestEcho;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -874,7 +874,7 @@ export const RequestEcho = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): RequestEcho {
|
||||
const message = { ...baseRequestEcho } as RequestEcho;
|
||||
const message = Object.create(baseRequestEcho) as RequestEcho;
|
||||
if (object.message !== undefined && object.message !== null) {
|
||||
message.message = String(object.message);
|
||||
} else {
|
||||
@ -910,7 +910,7 @@ export const RequestFlush = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): RequestFlush {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseRequestFlush } as RequestFlush;
|
||||
const message = Object.create(baseRequestFlush) as RequestFlush;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -923,7 +923,7 @@ export const RequestFlush = {
|
||||
},
|
||||
|
||||
fromJSON(_: any): RequestFlush {
|
||||
const message = { ...baseRequestFlush } as RequestFlush;
|
||||
const message = Object.create(baseRequestFlush) as RequestFlush;
|
||||
return message;
|
||||
},
|
||||
|
||||
@ -951,7 +951,7 @@ export const RequestInfo = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): RequestInfo {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseRequestInfo } as RequestInfo;
|
||||
const message = Object.create(baseRequestInfo) as RequestInfo;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -973,7 +973,7 @@ export const RequestInfo = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): RequestInfo {
|
||||
const message = { ...baseRequestInfo } as RequestInfo;
|
||||
const message = Object.create(baseRequestInfo) as RequestInfo;
|
||||
if (object.version !== undefined && object.version !== null) {
|
||||
message.version = String(object.version);
|
||||
} else {
|
||||
@ -1034,7 +1034,7 @@ export const RequestSetOption = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): RequestSetOption {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseRequestSetOption } as RequestSetOption;
|
||||
const message = Object.create(baseRequestSetOption) as RequestSetOption;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -1053,7 +1053,7 @@ export const RequestSetOption = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): RequestSetOption {
|
||||
const message = { ...baseRequestSetOption } as RequestSetOption;
|
||||
const message = Object.create(baseRequestSetOption) as RequestSetOption;
|
||||
if (object.key !== undefined && object.key !== null) {
|
||||
message.key = String(object.key);
|
||||
} else {
|
||||
@ -1094,11 +1094,11 @@ const baseRequestInitChain: object = { chainId: "", initialHeight: Long.ZERO };
|
||||
|
||||
export const RequestInitChain = {
|
||||
encode(message: RequestInitChain, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
if (message.time !== undefined && message.time !== undefined) {
|
||||
if (message.time !== undefined) {
|
||||
Timestamp.encode(toTimestamp(message.time), writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
writer.uint32(18).string(message.chainId);
|
||||
if (message.consensusParams !== undefined && message.consensusParams !== undefined) {
|
||||
if (message.consensusParams !== undefined) {
|
||||
ConsensusParams.encode(message.consensusParams, writer.uint32(26).fork()).ldelim();
|
||||
}
|
||||
for (const v of message.validators) {
|
||||
@ -1112,7 +1112,7 @@ export const RequestInitChain = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): RequestInitChain {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseRequestInitChain } as RequestInitChain;
|
||||
const message = Object.create(baseRequestInitChain) as RequestInitChain;
|
||||
message.validators = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -1144,7 +1144,7 @@ export const RequestInitChain = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): RequestInitChain {
|
||||
const message = { ...baseRequestInitChain } as RequestInitChain;
|
||||
const message = Object.create(baseRequestInitChain) as RequestInitChain;
|
||||
message.validators = [];
|
||||
if (object.time !== undefined && object.time !== null) {
|
||||
message.time = fromJsonTimestamp(object.time);
|
||||
@ -1250,7 +1250,7 @@ export const RequestQuery = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): RequestQuery {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseRequestQuery } as RequestQuery;
|
||||
const message = Object.create(baseRequestQuery) as RequestQuery;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -1275,7 +1275,7 @@ export const RequestQuery = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): RequestQuery {
|
||||
const message = { ...baseRequestQuery } as RequestQuery;
|
||||
const message = Object.create(baseRequestQuery) as RequestQuery;
|
||||
if (object.data !== undefined && object.data !== null) {
|
||||
message.data = bytesFromBase64(object.data);
|
||||
}
|
||||
@ -1338,10 +1338,10 @@ const baseRequestBeginBlock: object = {};
|
||||
export const RequestBeginBlock = {
|
||||
encode(message: RequestBeginBlock, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
writer.uint32(10).bytes(message.hash);
|
||||
if (message.header !== undefined && message.header !== undefined) {
|
||||
if (message.header !== undefined) {
|
||||
Header.encode(message.header, writer.uint32(18).fork()).ldelim();
|
||||
}
|
||||
if (message.lastCommitInfo !== undefined && message.lastCommitInfo !== undefined) {
|
||||
if (message.lastCommitInfo !== undefined) {
|
||||
LastCommitInfo.encode(message.lastCommitInfo, writer.uint32(26).fork()).ldelim();
|
||||
}
|
||||
for (const v of message.byzantineValidators) {
|
||||
@ -1353,7 +1353,7 @@ export const RequestBeginBlock = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): RequestBeginBlock {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseRequestBeginBlock } as RequestBeginBlock;
|
||||
const message = Object.create(baseRequestBeginBlock) as RequestBeginBlock;
|
||||
message.byzantineValidators = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -1379,7 +1379,7 @@ export const RequestBeginBlock = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): RequestBeginBlock {
|
||||
const message = { ...baseRequestBeginBlock } as RequestBeginBlock;
|
||||
const message = Object.create(baseRequestBeginBlock) as RequestBeginBlock;
|
||||
message.byzantineValidators = [];
|
||||
if (object.hash !== undefined && object.hash !== null) {
|
||||
message.hash = bytesFromBase64(object.hash);
|
||||
@ -1458,7 +1458,7 @@ export const RequestCheckTx = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): RequestCheckTx {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseRequestCheckTx } as RequestCheckTx;
|
||||
const message = Object.create(baseRequestCheckTx) as RequestCheckTx;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -1477,7 +1477,7 @@ export const RequestCheckTx = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): RequestCheckTx {
|
||||
const message = { ...baseRequestCheckTx } as RequestCheckTx;
|
||||
const message = Object.create(baseRequestCheckTx) as RequestCheckTx;
|
||||
if (object.tx !== undefined && object.tx !== null) {
|
||||
message.tx = bytesFromBase64(object.tx);
|
||||
}
|
||||
@ -1524,7 +1524,7 @@ export const RequestDeliverTx = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): RequestDeliverTx {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseRequestDeliverTx } as RequestDeliverTx;
|
||||
const message = Object.create(baseRequestDeliverTx) as RequestDeliverTx;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -1540,7 +1540,7 @@ export const RequestDeliverTx = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): RequestDeliverTx {
|
||||
const message = { ...baseRequestDeliverTx } as RequestDeliverTx;
|
||||
const message = Object.create(baseRequestDeliverTx) as RequestDeliverTx;
|
||||
if (object.tx !== undefined && object.tx !== null) {
|
||||
message.tx = bytesFromBase64(object.tx);
|
||||
}
|
||||
@ -1576,7 +1576,7 @@ export const RequestEndBlock = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): RequestEndBlock {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseRequestEndBlock } as RequestEndBlock;
|
||||
const message = Object.create(baseRequestEndBlock) as RequestEndBlock;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -1592,7 +1592,7 @@ export const RequestEndBlock = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): RequestEndBlock {
|
||||
const message = { ...baseRequestEndBlock } as RequestEndBlock;
|
||||
const message = Object.create(baseRequestEndBlock) as RequestEndBlock;
|
||||
if (object.height !== undefined && object.height !== null) {
|
||||
message.height = Long.fromString(object.height);
|
||||
} else {
|
||||
@ -1628,7 +1628,7 @@ export const RequestCommit = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): RequestCommit {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseRequestCommit } as RequestCommit;
|
||||
const message = Object.create(baseRequestCommit) as RequestCommit;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -1641,7 +1641,7 @@ export const RequestCommit = {
|
||||
},
|
||||
|
||||
fromJSON(_: any): RequestCommit {
|
||||
const message = { ...baseRequestCommit } as RequestCommit;
|
||||
const message = Object.create(baseRequestCommit) as RequestCommit;
|
||||
return message;
|
||||
},
|
||||
|
||||
@ -1666,7 +1666,7 @@ export const RequestListSnapshots = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): RequestListSnapshots {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseRequestListSnapshots } as RequestListSnapshots;
|
||||
const message = Object.create(baseRequestListSnapshots) as RequestListSnapshots;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -1679,7 +1679,7 @@ export const RequestListSnapshots = {
|
||||
},
|
||||
|
||||
fromJSON(_: any): RequestListSnapshots {
|
||||
const message = { ...baseRequestListSnapshots } as RequestListSnapshots;
|
||||
const message = Object.create(baseRequestListSnapshots) as RequestListSnapshots;
|
||||
return message;
|
||||
},
|
||||
|
||||
@ -1698,7 +1698,7 @@ const baseRequestOfferSnapshot: object = {};
|
||||
|
||||
export const RequestOfferSnapshot = {
|
||||
encode(message: RequestOfferSnapshot, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
if (message.snapshot !== undefined && message.snapshot !== undefined) {
|
||||
if (message.snapshot !== undefined) {
|
||||
Snapshot.encode(message.snapshot, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
writer.uint32(18).bytes(message.appHash);
|
||||
@ -1708,7 +1708,7 @@ export const RequestOfferSnapshot = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): RequestOfferSnapshot {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseRequestOfferSnapshot } as RequestOfferSnapshot;
|
||||
const message = Object.create(baseRequestOfferSnapshot) as RequestOfferSnapshot;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -1727,7 +1727,7 @@ export const RequestOfferSnapshot = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): RequestOfferSnapshot {
|
||||
const message = { ...baseRequestOfferSnapshot } as RequestOfferSnapshot;
|
||||
const message = Object.create(baseRequestOfferSnapshot) as RequestOfferSnapshot;
|
||||
if (object.snapshot !== undefined && object.snapshot !== null) {
|
||||
message.snapshot = Snapshot.fromJSON(object.snapshot);
|
||||
} else {
|
||||
@ -1777,7 +1777,7 @@ export const RequestLoadSnapshotChunk = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): RequestLoadSnapshotChunk {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseRequestLoadSnapshotChunk } as RequestLoadSnapshotChunk;
|
||||
const message = Object.create(baseRequestLoadSnapshotChunk) as RequestLoadSnapshotChunk;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -1799,7 +1799,7 @@ export const RequestLoadSnapshotChunk = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): RequestLoadSnapshotChunk {
|
||||
const message = { ...baseRequestLoadSnapshotChunk } as RequestLoadSnapshotChunk;
|
||||
const message = Object.create(baseRequestLoadSnapshotChunk) as RequestLoadSnapshotChunk;
|
||||
if (object.height !== undefined && object.height !== null) {
|
||||
message.height = Long.fromString(object.height);
|
||||
} else {
|
||||
@ -1860,7 +1860,7 @@ export const RequestApplySnapshotChunk = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): RequestApplySnapshotChunk {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseRequestApplySnapshotChunk } as RequestApplySnapshotChunk;
|
||||
const message = Object.create(baseRequestApplySnapshotChunk) as RequestApplySnapshotChunk;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -1882,7 +1882,7 @@ export const RequestApplySnapshotChunk = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): RequestApplySnapshotChunk {
|
||||
const message = { ...baseRequestApplySnapshotChunk } as RequestApplySnapshotChunk;
|
||||
const message = Object.create(baseRequestApplySnapshotChunk) as RequestApplySnapshotChunk;
|
||||
if (object.index !== undefined && object.index !== null) {
|
||||
message.index = Number(object.index);
|
||||
} else {
|
||||
@ -1987,7 +1987,7 @@ export const Response = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): Response {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseResponse } as Response;
|
||||
const message = Object.create(baseResponse) as Response;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -2048,7 +2048,7 @@ export const Response = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): Response {
|
||||
const message = { ...baseResponse } as Response;
|
||||
const message = Object.create(baseResponse) as Response;
|
||||
if (object.exception !== undefined && object.exception !== null) {
|
||||
message.exception = ResponseException.fromJSON(object.exception);
|
||||
} else {
|
||||
@ -2272,7 +2272,7 @@ export const ResponseException = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): ResponseException {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseResponseException } as ResponseException;
|
||||
const message = Object.create(baseResponseException) as ResponseException;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -2288,7 +2288,7 @@ export const ResponseException = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): ResponseException {
|
||||
const message = { ...baseResponseException } as ResponseException;
|
||||
const message = Object.create(baseResponseException) as ResponseException;
|
||||
if (object.error !== undefined && object.error !== null) {
|
||||
message.error = String(object.error);
|
||||
} else {
|
||||
@ -2325,7 +2325,7 @@ export const ResponseEcho = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): ResponseEcho {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseResponseEcho } as ResponseEcho;
|
||||
const message = Object.create(baseResponseEcho) as ResponseEcho;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -2341,7 +2341,7 @@ export const ResponseEcho = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): ResponseEcho {
|
||||
const message = { ...baseResponseEcho } as ResponseEcho;
|
||||
const message = Object.create(baseResponseEcho) as ResponseEcho;
|
||||
if (object.message !== undefined && object.message !== null) {
|
||||
message.message = String(object.message);
|
||||
} else {
|
||||
@ -2377,7 +2377,7 @@ export const ResponseFlush = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): ResponseFlush {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseResponseFlush } as ResponseFlush;
|
||||
const message = Object.create(baseResponseFlush) as ResponseFlush;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -2390,7 +2390,7 @@ export const ResponseFlush = {
|
||||
},
|
||||
|
||||
fromJSON(_: any): ResponseFlush {
|
||||
const message = { ...baseResponseFlush } as ResponseFlush;
|
||||
const message = Object.create(baseResponseFlush) as ResponseFlush;
|
||||
return message;
|
||||
},
|
||||
|
||||
@ -2425,7 +2425,7 @@ export const ResponseInfo = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): ResponseInfo {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseResponseInfo } as ResponseInfo;
|
||||
const message = Object.create(baseResponseInfo) as ResponseInfo;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -2453,7 +2453,7 @@ export const ResponseInfo = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): ResponseInfo {
|
||||
const message = { ...baseResponseInfo } as ResponseInfo;
|
||||
const message = Object.create(baseResponseInfo) as ResponseInfo;
|
||||
if (object.data !== undefined && object.data !== null) {
|
||||
message.data = String(object.data);
|
||||
} else {
|
||||
@ -2538,7 +2538,7 @@ export const ResponseSetOption = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): ResponseSetOption {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseResponseSetOption } as ResponseSetOption;
|
||||
const message = Object.create(baseResponseSetOption) as ResponseSetOption;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -2560,7 +2560,7 @@ export const ResponseSetOption = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): ResponseSetOption {
|
||||
const message = { ...baseResponseSetOption } as ResponseSetOption;
|
||||
const message = Object.create(baseResponseSetOption) as ResponseSetOption;
|
||||
if (object.code !== undefined && object.code !== null) {
|
||||
message.code = Number(object.code);
|
||||
} else {
|
||||
@ -2612,7 +2612,7 @@ const baseResponseInitChain: object = {};
|
||||
|
||||
export const ResponseInitChain = {
|
||||
encode(message: ResponseInitChain, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
if (message.consensusParams !== undefined && message.consensusParams !== undefined) {
|
||||
if (message.consensusParams !== undefined) {
|
||||
ConsensusParams.encode(message.consensusParams, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
for (const v of message.validators) {
|
||||
@ -2625,7 +2625,7 @@ export const ResponseInitChain = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): ResponseInitChain {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseResponseInitChain } as ResponseInitChain;
|
||||
const message = Object.create(baseResponseInitChain) as ResponseInitChain;
|
||||
message.validators = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -2648,7 +2648,7 @@ export const ResponseInitChain = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): ResponseInitChain {
|
||||
const message = { ...baseResponseInitChain } as ResponseInitChain;
|
||||
const message = Object.create(baseResponseInitChain) as ResponseInitChain;
|
||||
message.validators = [];
|
||||
if (object.consensusParams !== undefined && object.consensusParams !== null) {
|
||||
message.consensusParams = ConsensusParams.fromJSON(object.consensusParams);
|
||||
@ -2721,7 +2721,7 @@ export const ResponseQuery = {
|
||||
writer.uint32(40).int64(message.index);
|
||||
writer.uint32(50).bytes(message.key);
|
||||
writer.uint32(58).bytes(message.value);
|
||||
if (message.proofOps !== undefined && message.proofOps !== undefined) {
|
||||
if (message.proofOps !== undefined) {
|
||||
ProofOps.encode(message.proofOps, writer.uint32(66).fork()).ldelim();
|
||||
}
|
||||
writer.uint32(72).int64(message.height);
|
||||
@ -2732,7 +2732,7 @@ export const ResponseQuery = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): ResponseQuery {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseResponseQuery } as ResponseQuery;
|
||||
const message = Object.create(baseResponseQuery) as ResponseQuery;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -2772,7 +2772,7 @@ export const ResponseQuery = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): ResponseQuery {
|
||||
const message = { ...baseResponseQuery } as ResponseQuery;
|
||||
const message = Object.create(baseResponseQuery) as ResponseQuery;
|
||||
if (object.code !== undefined && object.code !== null) {
|
||||
message.code = Number(object.code);
|
||||
} else {
|
||||
@ -2898,7 +2898,7 @@ export const ResponseBeginBlock = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): ResponseBeginBlock {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseResponseBeginBlock } as ResponseBeginBlock;
|
||||
const message = Object.create(baseResponseBeginBlock) as ResponseBeginBlock;
|
||||
message.events = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -2915,7 +2915,7 @@ export const ResponseBeginBlock = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): ResponseBeginBlock {
|
||||
const message = { ...baseResponseBeginBlock } as ResponseBeginBlock;
|
||||
const message = Object.create(baseResponseBeginBlock) as ResponseBeginBlock;
|
||||
message.events = [];
|
||||
if (object.events !== undefined && object.events !== null) {
|
||||
for (const e of object.events) {
|
||||
@ -2974,7 +2974,7 @@ export const ResponseCheckTx = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): ResponseCheckTx {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseResponseCheckTx } as ResponseCheckTx;
|
||||
const message = Object.create(baseResponseCheckTx) as ResponseCheckTx;
|
||||
message.events = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -3012,7 +3012,7 @@ export const ResponseCheckTx = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): ResponseCheckTx {
|
||||
const message = { ...baseResponseCheckTx } as ResponseCheckTx;
|
||||
const message = Object.create(baseResponseCheckTx) as ResponseCheckTx;
|
||||
message.events = [];
|
||||
if (object.code !== undefined && object.code !== null) {
|
||||
message.code = Number(object.code);
|
||||
@ -3147,7 +3147,7 @@ export const ResponseDeliverTx = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): ResponseDeliverTx {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseResponseDeliverTx } as ResponseDeliverTx;
|
||||
const message = Object.create(baseResponseDeliverTx) as ResponseDeliverTx;
|
||||
message.events = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -3185,7 +3185,7 @@ export const ResponseDeliverTx = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): ResponseDeliverTx {
|
||||
const message = { ...baseResponseDeliverTx } as ResponseDeliverTx;
|
||||
const message = Object.create(baseResponseDeliverTx) as ResponseDeliverTx;
|
||||
message.events = [];
|
||||
if (object.code !== undefined && object.code !== null) {
|
||||
message.code = Number(object.code);
|
||||
@ -3300,7 +3300,7 @@ export const ResponseEndBlock = {
|
||||
for (const v of message.validatorUpdates) {
|
||||
ValidatorUpdate.encode(v!, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
if (message.consensusParamUpdates !== undefined && message.consensusParamUpdates !== undefined) {
|
||||
if (message.consensusParamUpdates !== undefined) {
|
||||
ConsensusParams.encode(message.consensusParamUpdates, writer.uint32(18).fork()).ldelim();
|
||||
}
|
||||
for (const v of message.events) {
|
||||
@ -3312,7 +3312,7 @@ export const ResponseEndBlock = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): ResponseEndBlock {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseResponseEndBlock } as ResponseEndBlock;
|
||||
const message = Object.create(baseResponseEndBlock) as ResponseEndBlock;
|
||||
message.validatorUpdates = [];
|
||||
message.events = [];
|
||||
while (reader.pos < end) {
|
||||
@ -3336,7 +3336,7 @@ export const ResponseEndBlock = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): ResponseEndBlock {
|
||||
const message = { ...baseResponseEndBlock } as ResponseEndBlock;
|
||||
const message = Object.create(baseResponseEndBlock) as ResponseEndBlock;
|
||||
message.validatorUpdates = [];
|
||||
message.events = [];
|
||||
if (object.validatorUpdates !== undefined && object.validatorUpdates !== null) {
|
||||
@ -3411,7 +3411,7 @@ export const ResponseCommit = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): ResponseCommit {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseResponseCommit } as ResponseCommit;
|
||||
const message = Object.create(baseResponseCommit) as ResponseCommit;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -3430,7 +3430,7 @@ export const ResponseCommit = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): ResponseCommit {
|
||||
const message = { ...baseResponseCommit } as ResponseCommit;
|
||||
const message = Object.create(baseResponseCommit) as ResponseCommit;
|
||||
if (object.data !== undefined && object.data !== null) {
|
||||
message.data = bytesFromBase64(object.data);
|
||||
}
|
||||
@ -3479,7 +3479,7 @@ export const ResponseListSnapshots = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): ResponseListSnapshots {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseResponseListSnapshots } as ResponseListSnapshots;
|
||||
const message = Object.create(baseResponseListSnapshots) as ResponseListSnapshots;
|
||||
message.snapshots = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -3496,7 +3496,7 @@ export const ResponseListSnapshots = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): ResponseListSnapshots {
|
||||
const message = { ...baseResponseListSnapshots } as ResponseListSnapshots;
|
||||
const message = Object.create(baseResponseListSnapshots) as ResponseListSnapshots;
|
||||
message.snapshots = [];
|
||||
if (object.snapshots !== undefined && object.snapshots !== null) {
|
||||
for (const e of object.snapshots) {
|
||||
@ -3539,7 +3539,7 @@ export const ResponseOfferSnapshot = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): ResponseOfferSnapshot {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseResponseOfferSnapshot } as ResponseOfferSnapshot;
|
||||
const message = Object.create(baseResponseOfferSnapshot) as ResponseOfferSnapshot;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -3555,7 +3555,7 @@ export const ResponseOfferSnapshot = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): ResponseOfferSnapshot {
|
||||
const message = { ...baseResponseOfferSnapshot } as ResponseOfferSnapshot;
|
||||
const message = Object.create(baseResponseOfferSnapshot) as ResponseOfferSnapshot;
|
||||
if (object.result !== undefined && object.result !== null) {
|
||||
message.result = responseOfferSnapshot_ResultFromJSON(object.result);
|
||||
} else {
|
||||
@ -3592,7 +3592,7 @@ export const ResponseLoadSnapshotChunk = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): ResponseLoadSnapshotChunk {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseResponseLoadSnapshotChunk } as ResponseLoadSnapshotChunk;
|
||||
const message = Object.create(baseResponseLoadSnapshotChunk) as ResponseLoadSnapshotChunk;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -3608,7 +3608,7 @@ export const ResponseLoadSnapshotChunk = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): ResponseLoadSnapshotChunk {
|
||||
const message = { ...baseResponseLoadSnapshotChunk } as ResponseLoadSnapshotChunk;
|
||||
const message = Object.create(baseResponseLoadSnapshotChunk) as ResponseLoadSnapshotChunk;
|
||||
if (object.chunk !== undefined && object.chunk !== null) {
|
||||
message.chunk = bytesFromBase64(object.chunk);
|
||||
}
|
||||
@ -3652,7 +3652,7 @@ export const ResponseApplySnapshotChunk = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): ResponseApplySnapshotChunk {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseResponseApplySnapshotChunk } as ResponseApplySnapshotChunk;
|
||||
const message = Object.create(baseResponseApplySnapshotChunk) as ResponseApplySnapshotChunk;
|
||||
message.refetchChunks = [];
|
||||
message.rejectSenders = [];
|
||||
while (reader.pos < end) {
|
||||
@ -3683,7 +3683,7 @@ export const ResponseApplySnapshotChunk = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): ResponseApplySnapshotChunk {
|
||||
const message = { ...baseResponseApplySnapshotChunk } as ResponseApplySnapshotChunk;
|
||||
const message = Object.create(baseResponseApplySnapshotChunk) as ResponseApplySnapshotChunk;
|
||||
message.refetchChunks = [];
|
||||
message.rejectSenders = [];
|
||||
if (object.result !== undefined && object.result !== null) {
|
||||
@ -3747,16 +3747,16 @@ const baseConsensusParams: object = {};
|
||||
|
||||
export const ConsensusParams = {
|
||||
encode(message: ConsensusParams, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
if (message.block !== undefined && message.block !== undefined) {
|
||||
if (message.block !== undefined) {
|
||||
BlockParams.encode(message.block, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
if (message.evidence !== undefined && message.evidence !== undefined) {
|
||||
if (message.evidence !== undefined) {
|
||||
EvidenceParams.encode(message.evidence, writer.uint32(18).fork()).ldelim();
|
||||
}
|
||||
if (message.validator !== undefined && message.validator !== undefined) {
|
||||
if (message.validator !== undefined) {
|
||||
ValidatorParams.encode(message.validator, writer.uint32(26).fork()).ldelim();
|
||||
}
|
||||
if (message.version !== undefined && message.version !== undefined) {
|
||||
if (message.version !== undefined) {
|
||||
VersionParams.encode(message.version, writer.uint32(34).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -3765,7 +3765,7 @@ export const ConsensusParams = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): ConsensusParams {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseConsensusParams } as ConsensusParams;
|
||||
const message = Object.create(baseConsensusParams) as ConsensusParams;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -3790,7 +3790,7 @@ export const ConsensusParams = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): ConsensusParams {
|
||||
const message = { ...baseConsensusParams } as ConsensusParams;
|
||||
const message = Object.create(baseConsensusParams) as ConsensusParams;
|
||||
if (object.block !== undefined && object.block !== null) {
|
||||
message.block = BlockParams.fromJSON(object.block);
|
||||
} else {
|
||||
@ -3865,7 +3865,7 @@ export const BlockParams = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): BlockParams {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseBlockParams } as BlockParams;
|
||||
const message = Object.create(baseBlockParams) as BlockParams;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -3884,7 +3884,7 @@ export const BlockParams = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): BlockParams {
|
||||
const message = { ...baseBlockParams } as BlockParams;
|
||||
const message = Object.create(baseBlockParams) as BlockParams;
|
||||
if (object.maxBytes !== undefined && object.maxBytes !== null) {
|
||||
message.maxBytes = Long.fromString(object.maxBytes);
|
||||
} else {
|
||||
@ -3935,7 +3935,7 @@ export const LastCommitInfo = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): LastCommitInfo {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseLastCommitInfo } as LastCommitInfo;
|
||||
const message = Object.create(baseLastCommitInfo) as LastCommitInfo;
|
||||
message.votes = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -3955,7 +3955,7 @@ export const LastCommitInfo = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): LastCommitInfo {
|
||||
const message = { ...baseLastCommitInfo } as LastCommitInfo;
|
||||
const message = Object.create(baseLastCommitInfo) as LastCommitInfo;
|
||||
message.votes = [];
|
||||
if (object.round !== undefined && object.round !== null) {
|
||||
message.round = Number(object.round);
|
||||
@ -4012,7 +4012,7 @@ export const Event = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): Event {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseEvent } as Event;
|
||||
const message = Object.create(baseEvent) as Event;
|
||||
message.attributes = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -4032,7 +4032,7 @@ export const Event = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): Event {
|
||||
const message = { ...baseEvent } as Event;
|
||||
const message = Object.create(baseEvent) as Event;
|
||||
message.attributes = [];
|
||||
if (object.type !== undefined && object.type !== null) {
|
||||
message.type = String(object.type);
|
||||
@ -4088,7 +4088,7 @@ export const EventAttribute = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): EventAttribute {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseEventAttribute } as EventAttribute;
|
||||
const message = Object.create(baseEventAttribute) as EventAttribute;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -4110,7 +4110,7 @@ export const EventAttribute = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): EventAttribute {
|
||||
const message = { ...baseEventAttribute } as EventAttribute;
|
||||
const message = Object.create(baseEventAttribute) as EventAttribute;
|
||||
if (object.key !== undefined && object.key !== null) {
|
||||
message.key = bytesFromBase64(object.key);
|
||||
}
|
||||
@ -4163,7 +4163,7 @@ export const TxResult = {
|
||||
writer.uint32(8).int64(message.height);
|
||||
writer.uint32(16).uint32(message.index);
|
||||
writer.uint32(26).bytes(message.tx);
|
||||
if (message.result !== undefined && message.result !== undefined) {
|
||||
if (message.result !== undefined) {
|
||||
ResponseDeliverTx.encode(message.result, writer.uint32(34).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -4172,7 +4172,7 @@ export const TxResult = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): TxResult {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseTxResult } as TxResult;
|
||||
const message = Object.create(baseTxResult) as TxResult;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -4197,7 +4197,7 @@ export const TxResult = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): TxResult {
|
||||
const message = { ...baseTxResult } as TxResult;
|
||||
const message = Object.create(baseTxResult) as TxResult;
|
||||
if (object.height !== undefined && object.height !== null) {
|
||||
message.height = Long.fromString(object.height);
|
||||
} else {
|
||||
@ -4268,7 +4268,7 @@ export const Validator = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): Validator {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseValidator } as Validator;
|
||||
const message = Object.create(baseValidator) as Validator;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -4287,7 +4287,7 @@ export const Validator = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): Validator {
|
||||
const message = { ...baseValidator } as Validator;
|
||||
const message = Object.create(baseValidator) as Validator;
|
||||
if (object.address !== undefined && object.address !== null) {
|
||||
message.address = bytesFromBase64(object.address);
|
||||
}
|
||||
@ -4327,7 +4327,7 @@ const baseValidatorUpdate: object = { power: Long.ZERO };
|
||||
|
||||
export const ValidatorUpdate = {
|
||||
encode(message: ValidatorUpdate, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
if (message.pubKey !== undefined && message.pubKey !== undefined) {
|
||||
if (message.pubKey !== undefined) {
|
||||
PublicKey.encode(message.pubKey, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
writer.uint32(16).int64(message.power);
|
||||
@ -4337,7 +4337,7 @@ export const ValidatorUpdate = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): ValidatorUpdate {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseValidatorUpdate } as ValidatorUpdate;
|
||||
const message = Object.create(baseValidatorUpdate) as ValidatorUpdate;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -4356,7 +4356,7 @@ export const ValidatorUpdate = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): ValidatorUpdate {
|
||||
const message = { ...baseValidatorUpdate } as ValidatorUpdate;
|
||||
const message = Object.create(baseValidatorUpdate) as ValidatorUpdate;
|
||||
if (object.pubKey !== undefined && object.pubKey !== null) {
|
||||
message.pubKey = PublicKey.fromJSON(object.pubKey);
|
||||
} else {
|
||||
@ -4398,7 +4398,7 @@ const baseVoteInfo: object = { signedLastBlock: false };
|
||||
|
||||
export const VoteInfo = {
|
||||
encode(message: VoteInfo, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
if (message.validator !== undefined && message.validator !== undefined) {
|
||||
if (message.validator !== undefined) {
|
||||
Validator.encode(message.validator, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
writer.uint32(16).bool(message.signedLastBlock);
|
||||
@ -4408,7 +4408,7 @@ export const VoteInfo = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): VoteInfo {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseVoteInfo } as VoteInfo;
|
||||
const message = Object.create(baseVoteInfo) as VoteInfo;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -4427,7 +4427,7 @@ export const VoteInfo = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): VoteInfo {
|
||||
const message = { ...baseVoteInfo } as VoteInfo;
|
||||
const message = Object.create(baseVoteInfo) as VoteInfo;
|
||||
if (object.validator !== undefined && object.validator !== null) {
|
||||
message.validator = Validator.fromJSON(object.validator);
|
||||
} else {
|
||||
@ -4470,11 +4470,11 @@ const baseEvidence: object = { type: 0, height: Long.ZERO, totalVotingPower: Lon
|
||||
export const Evidence = {
|
||||
encode(message: Evidence, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
writer.uint32(8).int32(message.type);
|
||||
if (message.validator !== undefined && message.validator !== undefined) {
|
||||
if (message.validator !== undefined) {
|
||||
Validator.encode(message.validator, writer.uint32(18).fork()).ldelim();
|
||||
}
|
||||
writer.uint32(24).int64(message.height);
|
||||
if (message.time !== undefined && message.time !== undefined) {
|
||||
if (message.time !== undefined) {
|
||||
Timestamp.encode(toTimestamp(message.time), writer.uint32(34).fork()).ldelim();
|
||||
}
|
||||
writer.uint32(40).int64(message.totalVotingPower);
|
||||
@ -4484,7 +4484,7 @@ export const Evidence = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): Evidence {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseEvidence } as Evidence;
|
||||
const message = Object.create(baseEvidence) as Evidence;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -4512,7 +4512,7 @@ export const Evidence = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): Evidence {
|
||||
const message = { ...baseEvidence } as Evidence;
|
||||
const message = Object.create(baseEvidence) as Evidence;
|
||||
if (object.type !== undefined && object.type !== null) {
|
||||
message.type = evidenceTypeFromJSON(object.type);
|
||||
} else {
|
||||
@ -4599,7 +4599,7 @@ export const Snapshot = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): Snapshot {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseSnapshot } as Snapshot;
|
||||
const message = Object.create(baseSnapshot) as Snapshot;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -4627,7 +4627,7 @@ export const Snapshot = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): Snapshot {
|
||||
const message = { ...baseSnapshot } as Snapshot;
|
||||
const message = Object.create(baseSnapshot) as Snapshot;
|
||||
if (object.height !== undefined && object.height !== null) {
|
||||
message.height = Long.fromString(object.height);
|
||||
} else {
|
||||
|
@ -26,7 +26,7 @@ export const PublicKey = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): PublicKey {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...basePublicKey } as PublicKey;
|
||||
const message = Object.create(basePublicKey) as PublicKey;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -45,7 +45,7 @@ export const PublicKey = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): PublicKey {
|
||||
const message = { ...basePublicKey } as PublicKey;
|
||||
const message = Object.create(basePublicKey) as PublicKey;
|
||||
if (object.ed25519 !== undefined && object.ed25519 !== null) {
|
||||
message.ed25519 = bytesFromBase64(object.ed25519);
|
||||
}
|
||||
|
@ -56,7 +56,7 @@ export const Proof = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): Proof {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseProof } as Proof;
|
||||
const message = Object.create(baseProof) as Proof;
|
||||
message.aunts = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -82,7 +82,7 @@ export const Proof = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): Proof {
|
||||
const message = { ...baseProof } as Proof;
|
||||
const message = Object.create(baseProof) as Proof;
|
||||
message.aunts = [];
|
||||
if (object.total !== undefined && object.total !== null) {
|
||||
message.total = Long.fromString(object.total);
|
||||
@ -151,7 +151,7 @@ const baseValueOp: object = {};
|
||||
export const ValueOp = {
|
||||
encode(message: ValueOp, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
writer.uint32(10).bytes(message.key);
|
||||
if (message.proof !== undefined && message.proof !== undefined) {
|
||||
if (message.proof !== undefined) {
|
||||
Proof.encode(message.proof, writer.uint32(18).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -160,7 +160,7 @@ export const ValueOp = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): ValueOp {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseValueOp } as ValueOp;
|
||||
const message = Object.create(baseValueOp) as ValueOp;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -179,7 +179,7 @@ export const ValueOp = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): ValueOp {
|
||||
const message = { ...baseValueOp } as ValueOp;
|
||||
const message = Object.create(baseValueOp) as ValueOp;
|
||||
if (object.key !== undefined && object.key !== null) {
|
||||
message.key = bytesFromBase64(object.key);
|
||||
}
|
||||
@ -228,7 +228,7 @@ export const DominoOp = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): DominoOp {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseDominoOp } as DominoOp;
|
||||
const message = Object.create(baseDominoOp) as DominoOp;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -250,7 +250,7 @@ export const DominoOp = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): DominoOp {
|
||||
const message = { ...baseDominoOp } as DominoOp;
|
||||
const message = Object.create(baseDominoOp) as DominoOp;
|
||||
if (object.key !== undefined && object.key !== null) {
|
||||
message.key = String(object.key);
|
||||
} else {
|
||||
@ -311,7 +311,7 @@ export const ProofOp = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): ProofOp {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseProofOp } as ProofOp;
|
||||
const message = Object.create(baseProofOp) as ProofOp;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -333,7 +333,7 @@ export const ProofOp = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): ProofOp {
|
||||
const message = { ...baseProofOp } as ProofOp;
|
||||
const message = Object.create(baseProofOp) as ProofOp;
|
||||
if (object.type !== undefined && object.type !== null) {
|
||||
message.type = String(object.type);
|
||||
} else {
|
||||
@ -392,7 +392,7 @@ export const ProofOps = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): ProofOps {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseProofOps } as ProofOps;
|
||||
const message = Object.create(baseProofOps) as ProofOps;
|
||||
message.ops = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -409,7 +409,7 @@ export const ProofOps = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): ProofOps {
|
||||
const message = { ...baseProofOps } as ProofOps;
|
||||
const message = Object.create(baseProofOps) as ProofOps;
|
||||
message.ops = [];
|
||||
if (object.ops !== undefined && object.ops !== null) {
|
||||
for (const e of object.ops) {
|
||||
|
@ -25,7 +25,7 @@ export const BitArray = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): BitArray {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseBitArray } as BitArray;
|
||||
const message = Object.create(baseBitArray) as BitArray;
|
||||
message.elems = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -52,7 +52,7 @@ export const BitArray = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): BitArray {
|
||||
const message = { ...baseBitArray } as BitArray;
|
||||
const message = Object.create(baseBitArray) as BitArray;
|
||||
message.elems = [];
|
||||
if (object.bits !== undefined && object.bits !== null) {
|
||||
message.bits = Long.fromString(object.bits);
|
||||
|
@ -89,16 +89,16 @@ const baseConsensusParams: object = {};
|
||||
|
||||
export const ConsensusParams = {
|
||||
encode(message: ConsensusParams, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
if (message.block !== undefined && message.block !== undefined) {
|
||||
if (message.block !== undefined) {
|
||||
BlockParams.encode(message.block, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
if (message.evidence !== undefined && message.evidence !== undefined) {
|
||||
if (message.evidence !== undefined) {
|
||||
EvidenceParams.encode(message.evidence, writer.uint32(18).fork()).ldelim();
|
||||
}
|
||||
if (message.validator !== undefined && message.validator !== undefined) {
|
||||
if (message.validator !== undefined) {
|
||||
ValidatorParams.encode(message.validator, writer.uint32(26).fork()).ldelim();
|
||||
}
|
||||
if (message.version !== undefined && message.version !== undefined) {
|
||||
if (message.version !== undefined) {
|
||||
VersionParams.encode(message.version, writer.uint32(34).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -107,7 +107,7 @@ export const ConsensusParams = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): ConsensusParams {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseConsensusParams } as ConsensusParams;
|
||||
const message = Object.create(baseConsensusParams) as ConsensusParams;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -132,7 +132,7 @@ export const ConsensusParams = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): ConsensusParams {
|
||||
const message = { ...baseConsensusParams } as ConsensusParams;
|
||||
const message = Object.create(baseConsensusParams) as ConsensusParams;
|
||||
if (object.block !== undefined && object.block !== null) {
|
||||
message.block = BlockParams.fromJSON(object.block);
|
||||
} else {
|
||||
@ -208,7 +208,7 @@ export const BlockParams = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): BlockParams {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseBlockParams } as BlockParams;
|
||||
const message = Object.create(baseBlockParams) as BlockParams;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -230,7 +230,7 @@ export const BlockParams = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): BlockParams {
|
||||
const message = { ...baseBlockParams } as BlockParams;
|
||||
const message = Object.create(baseBlockParams) as BlockParams;
|
||||
if (object.maxBytes !== undefined && object.maxBytes !== null) {
|
||||
message.maxBytes = Long.fromString(object.maxBytes);
|
||||
} else {
|
||||
@ -283,7 +283,7 @@ const baseEvidenceParams: object = { maxAgeNumBlocks: Long.ZERO, maxBytes: Long.
|
||||
export const EvidenceParams = {
|
||||
encode(message: EvidenceParams, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
writer.uint32(8).int64(message.maxAgeNumBlocks);
|
||||
if (message.maxAgeDuration !== undefined && message.maxAgeDuration !== undefined) {
|
||||
if (message.maxAgeDuration !== undefined) {
|
||||
Duration.encode(message.maxAgeDuration, writer.uint32(18).fork()).ldelim();
|
||||
}
|
||||
writer.uint32(24).int64(message.maxBytes);
|
||||
@ -293,7 +293,7 @@ export const EvidenceParams = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): EvidenceParams {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseEvidenceParams } as EvidenceParams;
|
||||
const message = Object.create(baseEvidenceParams) as EvidenceParams;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -315,7 +315,7 @@ export const EvidenceParams = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): EvidenceParams {
|
||||
const message = { ...baseEvidenceParams } as EvidenceParams;
|
||||
const message = Object.create(baseEvidenceParams) as EvidenceParams;
|
||||
if (object.maxAgeNumBlocks !== undefined && object.maxAgeNumBlocks !== null) {
|
||||
message.maxAgeNumBlocks = Long.fromString(object.maxAgeNumBlocks);
|
||||
} else {
|
||||
@ -378,7 +378,7 @@ export const ValidatorParams = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): ValidatorParams {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseValidatorParams } as ValidatorParams;
|
||||
const message = Object.create(baseValidatorParams) as ValidatorParams;
|
||||
message.pubKeyTypes = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -395,7 +395,7 @@ export const ValidatorParams = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): ValidatorParams {
|
||||
const message = { ...baseValidatorParams } as ValidatorParams;
|
||||
const message = Object.create(baseValidatorParams) as ValidatorParams;
|
||||
message.pubKeyTypes = [];
|
||||
if (object.pubKeyTypes !== undefined && object.pubKeyTypes !== null) {
|
||||
for (const e of object.pubKeyTypes) {
|
||||
@ -438,7 +438,7 @@ export const VersionParams = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): VersionParams {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseVersionParams } as VersionParams;
|
||||
const message = Object.create(baseVersionParams) as VersionParams;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -454,7 +454,7 @@ export const VersionParams = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): VersionParams {
|
||||
const message = { ...baseVersionParams } as VersionParams;
|
||||
const message = Object.create(baseVersionParams) as VersionParams;
|
||||
if (object.appVersion !== undefined && object.appVersion !== null) {
|
||||
message.appVersion = Long.fromString(object.appVersion);
|
||||
} else {
|
||||
@ -492,7 +492,7 @@ export const HashedParams = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): HashedParams {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseHashedParams } as HashedParams;
|
||||
const message = Object.create(baseHashedParams) as HashedParams;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -511,7 +511,7 @@ export const HashedParams = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): HashedParams {
|
||||
const message = { ...baseHashedParams } as HashedParams;
|
||||
const message = Object.create(baseHashedParams) as HashedParams;
|
||||
if (object.blockMaxBytes !== undefined && object.blockMaxBytes !== null) {
|
||||
message.blockMaxBytes = Long.fromString(object.blockMaxBytes);
|
||||
} else {
|
||||
|
@ -235,7 +235,7 @@ export const PartSetHeader = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): PartSetHeader {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...basePartSetHeader } as PartSetHeader;
|
||||
const message = Object.create(basePartSetHeader) as PartSetHeader;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -254,7 +254,7 @@ export const PartSetHeader = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): PartSetHeader {
|
||||
const message = { ...basePartSetHeader } as PartSetHeader;
|
||||
const message = Object.create(basePartSetHeader) as PartSetHeader;
|
||||
if (object.total !== undefined && object.total !== null) {
|
||||
message.total = Number(object.total);
|
||||
} else {
|
||||
@ -296,7 +296,7 @@ export const Part = {
|
||||
encode(message: Part, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
writer.uint32(8).uint32(message.index);
|
||||
writer.uint32(18).bytes(message.bytes);
|
||||
if (message.proof !== undefined && message.proof !== undefined) {
|
||||
if (message.proof !== undefined) {
|
||||
Proof.encode(message.proof, writer.uint32(26).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -305,7 +305,7 @@ export const Part = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): Part {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...basePart } as Part;
|
||||
const message = Object.create(basePart) as Part;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -327,7 +327,7 @@ export const Part = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): Part {
|
||||
const message = { ...basePart } as Part;
|
||||
const message = Object.create(basePart) as Part;
|
||||
if (object.index !== undefined && object.index !== null) {
|
||||
message.index = Number(object.index);
|
||||
} else {
|
||||
@ -379,7 +379,7 @@ const baseBlockID: object = {};
|
||||
export const BlockID = {
|
||||
encode(message: BlockID, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
writer.uint32(10).bytes(message.hash);
|
||||
if (message.partSetHeader !== undefined && message.partSetHeader !== undefined) {
|
||||
if (message.partSetHeader !== undefined) {
|
||||
PartSetHeader.encode(message.partSetHeader, writer.uint32(18).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -388,7 +388,7 @@ export const BlockID = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): BlockID {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseBlockID } as BlockID;
|
||||
const message = Object.create(baseBlockID) as BlockID;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -407,7 +407,7 @@ export const BlockID = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): BlockID {
|
||||
const message = { ...baseBlockID } as BlockID;
|
||||
const message = Object.create(baseBlockID) as BlockID;
|
||||
if (object.hash !== undefined && object.hash !== null) {
|
||||
message.hash = bytesFromBase64(object.hash);
|
||||
}
|
||||
@ -448,15 +448,15 @@ const baseHeader: object = { chainId: "", height: Long.ZERO };
|
||||
|
||||
export const Header = {
|
||||
encode(message: Header, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
if (message.version !== undefined && message.version !== undefined) {
|
||||
if (message.version !== undefined) {
|
||||
Consensus.encode(message.version, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
writer.uint32(18).string(message.chainId);
|
||||
writer.uint32(24).int64(message.height);
|
||||
if (message.time !== undefined && message.time !== undefined) {
|
||||
if (message.time !== undefined) {
|
||||
Timestamp.encode(toTimestamp(message.time), writer.uint32(34).fork()).ldelim();
|
||||
}
|
||||
if (message.lastBlockId !== undefined && message.lastBlockId !== undefined) {
|
||||
if (message.lastBlockId !== undefined) {
|
||||
BlockID.encode(message.lastBlockId, writer.uint32(42).fork()).ldelim();
|
||||
}
|
||||
writer.uint32(50).bytes(message.lastCommitHash);
|
||||
@ -474,7 +474,7 @@ export const Header = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): Header {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseHeader } as Header;
|
||||
const message = Object.create(baseHeader) as Header;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -529,7 +529,7 @@ export const Header = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): Header {
|
||||
const message = { ...baseHeader } as Header;
|
||||
const message = Object.create(baseHeader) as Header;
|
||||
if (object.version !== undefined && object.version !== null) {
|
||||
message.version = Consensus.fromJSON(object.version);
|
||||
} else {
|
||||
@ -718,7 +718,7 @@ export const Data = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): Data {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseData } as Data;
|
||||
const message = Object.create(baseData) as Data;
|
||||
message.txs = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -735,7 +735,7 @@ export const Data = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): Data {
|
||||
const message = { ...baseData } as Data;
|
||||
const message = Object.create(baseData) as Data;
|
||||
message.txs = [];
|
||||
if (object.txs !== undefined && object.txs !== null) {
|
||||
for (const e of object.txs) {
|
||||
@ -774,10 +774,10 @@ export const Vote = {
|
||||
writer.uint32(8).int32(message.type);
|
||||
writer.uint32(16).int64(message.height);
|
||||
writer.uint32(24).int32(message.round);
|
||||
if (message.blockId !== undefined && message.blockId !== undefined) {
|
||||
if (message.blockId !== undefined) {
|
||||
BlockID.encode(message.blockId, writer.uint32(34).fork()).ldelim();
|
||||
}
|
||||
if (message.timestamp !== undefined && message.timestamp !== undefined) {
|
||||
if (message.timestamp !== undefined) {
|
||||
Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(42).fork()).ldelim();
|
||||
}
|
||||
writer.uint32(50).bytes(message.validatorAddress);
|
||||
@ -789,7 +789,7 @@ export const Vote = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): Vote {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseVote } as Vote;
|
||||
const message = Object.create(baseVote) as Vote;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -826,7 +826,7 @@ export const Vote = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): Vote {
|
||||
const message = { ...baseVote } as Vote;
|
||||
const message = Object.create(baseVote) as Vote;
|
||||
if (object.type !== undefined && object.type !== null) {
|
||||
message.type = signedMsgTypeFromJSON(object.type);
|
||||
} else {
|
||||
@ -939,7 +939,7 @@ export const Commit = {
|
||||
encode(message: Commit, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
writer.uint32(8).int64(message.height);
|
||||
writer.uint32(16).int32(message.round);
|
||||
if (message.blockId !== undefined && message.blockId !== undefined) {
|
||||
if (message.blockId !== undefined) {
|
||||
BlockID.encode(message.blockId, writer.uint32(26).fork()).ldelim();
|
||||
}
|
||||
for (const v of message.signatures) {
|
||||
@ -951,7 +951,7 @@ export const Commit = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): Commit {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseCommit } as Commit;
|
||||
const message = Object.create(baseCommit) as Commit;
|
||||
message.signatures = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -977,7 +977,7 @@ export const Commit = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): Commit {
|
||||
const message = { ...baseCommit } as Commit;
|
||||
const message = Object.create(baseCommit) as Commit;
|
||||
message.signatures = [];
|
||||
if (object.height !== undefined && object.height !== null) {
|
||||
message.height = Long.fromString(object.height);
|
||||
@ -1049,7 +1049,7 @@ export const CommitSig = {
|
||||
encode(message: CommitSig, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
writer.uint32(8).int32(message.blockIdFlag);
|
||||
writer.uint32(18).bytes(message.validatorAddress);
|
||||
if (message.timestamp !== undefined && message.timestamp !== undefined) {
|
||||
if (message.timestamp !== undefined) {
|
||||
Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(26).fork()).ldelim();
|
||||
}
|
||||
writer.uint32(34).bytes(message.signature);
|
||||
@ -1059,7 +1059,7 @@ export const CommitSig = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): CommitSig {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseCommitSig } as CommitSig;
|
||||
const message = Object.create(baseCommitSig) as CommitSig;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -1084,7 +1084,7 @@ export const CommitSig = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): CommitSig {
|
||||
const message = { ...baseCommitSig } as CommitSig;
|
||||
const message = Object.create(baseCommitSig) as CommitSig;
|
||||
if (object.blockIdFlag !== undefined && object.blockIdFlag !== null) {
|
||||
message.blockIdFlag = blockIDFlagFromJSON(object.blockIdFlag);
|
||||
} else {
|
||||
@ -1154,10 +1154,10 @@ export const Proposal = {
|
||||
writer.uint32(16).int64(message.height);
|
||||
writer.uint32(24).int32(message.round);
|
||||
writer.uint32(32).int32(message.polRound);
|
||||
if (message.blockId !== undefined && message.blockId !== undefined) {
|
||||
if (message.blockId !== undefined) {
|
||||
BlockID.encode(message.blockId, writer.uint32(42).fork()).ldelim();
|
||||
}
|
||||
if (message.timestamp !== undefined && message.timestamp !== undefined) {
|
||||
if (message.timestamp !== undefined) {
|
||||
Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(50).fork()).ldelim();
|
||||
}
|
||||
writer.uint32(58).bytes(message.signature);
|
||||
@ -1167,7 +1167,7 @@ export const Proposal = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): Proposal {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseProposal } as Proposal;
|
||||
const message = Object.create(baseProposal) as Proposal;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -1201,7 +1201,7 @@ export const Proposal = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): Proposal {
|
||||
const message = { ...baseProposal } as Proposal;
|
||||
const message = Object.create(baseProposal) as Proposal;
|
||||
if (object.type !== undefined && object.type !== null) {
|
||||
message.type = signedMsgTypeFromJSON(object.type);
|
||||
} else {
|
||||
@ -1300,10 +1300,10 @@ const baseSignedHeader: object = {};
|
||||
|
||||
export const SignedHeader = {
|
||||
encode(message: SignedHeader, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
if (message.header !== undefined && message.header !== undefined) {
|
||||
if (message.header !== undefined) {
|
||||
Header.encode(message.header, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
if (message.commit !== undefined && message.commit !== undefined) {
|
||||
if (message.commit !== undefined) {
|
||||
Commit.encode(message.commit, writer.uint32(18).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -1312,7 +1312,7 @@ export const SignedHeader = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): SignedHeader {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseSignedHeader } as SignedHeader;
|
||||
const message = Object.create(baseSignedHeader) as SignedHeader;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -1331,7 +1331,7 @@ export const SignedHeader = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): SignedHeader {
|
||||
const message = { ...baseSignedHeader } as SignedHeader;
|
||||
const message = Object.create(baseSignedHeader) as SignedHeader;
|
||||
if (object.header !== undefined && object.header !== null) {
|
||||
message.header = Header.fromJSON(object.header);
|
||||
} else {
|
||||
@ -1372,10 +1372,10 @@ const baseLightBlock: object = {};
|
||||
|
||||
export const LightBlock = {
|
||||
encode(message: LightBlock, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
if (message.signedHeader !== undefined && message.signedHeader !== undefined) {
|
||||
if (message.signedHeader !== undefined) {
|
||||
SignedHeader.encode(message.signedHeader, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
if (message.validatorSet !== undefined && message.validatorSet !== undefined) {
|
||||
if (message.validatorSet !== undefined) {
|
||||
ValidatorSet.encode(message.validatorSet, writer.uint32(18).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -1384,7 +1384,7 @@ export const LightBlock = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): LightBlock {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseLightBlock } as LightBlock;
|
||||
const message = Object.create(baseLightBlock) as LightBlock;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -1403,7 +1403,7 @@ export const LightBlock = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): LightBlock {
|
||||
const message = { ...baseLightBlock } as LightBlock;
|
||||
const message = Object.create(baseLightBlock) as LightBlock;
|
||||
if (object.signedHeader !== undefined && object.signedHeader !== null) {
|
||||
message.signedHeader = SignedHeader.fromJSON(object.signedHeader);
|
||||
} else {
|
||||
@ -1446,11 +1446,11 @@ const baseBlockMeta: object = { blockSize: Long.ZERO, numTxs: Long.ZERO };
|
||||
|
||||
export const BlockMeta = {
|
||||
encode(message: BlockMeta, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
if (message.blockId !== undefined && message.blockId !== undefined) {
|
||||
if (message.blockId !== undefined) {
|
||||
BlockID.encode(message.blockId, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
writer.uint32(16).int64(message.blockSize);
|
||||
if (message.header !== undefined && message.header !== undefined) {
|
||||
if (message.header !== undefined) {
|
||||
Header.encode(message.header, writer.uint32(26).fork()).ldelim();
|
||||
}
|
||||
writer.uint32(32).int64(message.numTxs);
|
||||
@ -1460,7 +1460,7 @@ export const BlockMeta = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): BlockMeta {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseBlockMeta } as BlockMeta;
|
||||
const message = Object.create(baseBlockMeta) as BlockMeta;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -1485,7 +1485,7 @@ export const BlockMeta = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): BlockMeta {
|
||||
const message = { ...baseBlockMeta } as BlockMeta;
|
||||
const message = Object.create(baseBlockMeta) as BlockMeta;
|
||||
if (object.blockId !== undefined && object.blockId !== null) {
|
||||
message.blockId = BlockID.fromJSON(object.blockId);
|
||||
} else {
|
||||
@ -1551,7 +1551,7 @@ export const TxProof = {
|
||||
encode(message: TxProof, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
writer.uint32(10).bytes(message.rootHash);
|
||||
writer.uint32(18).bytes(message.data);
|
||||
if (message.proof !== undefined && message.proof !== undefined) {
|
||||
if (message.proof !== undefined) {
|
||||
Proof.encode(message.proof, writer.uint32(26).fork()).ldelim();
|
||||
}
|
||||
return writer;
|
||||
@ -1560,7 +1560,7 @@ export const TxProof = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): TxProof {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseTxProof } as TxProof;
|
||||
const message = Object.create(baseTxProof) as TxProof;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -1582,7 +1582,7 @@ export const TxProof = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): TxProof {
|
||||
const message = { ...baseTxProof } as TxProof;
|
||||
const message = Object.create(baseTxProof) as TxProof;
|
||||
if (object.rootHash !== undefined && object.rootHash !== null) {
|
||||
message.rootHash = bytesFromBase64(object.rootHash);
|
||||
}
|
||||
|
@ -30,7 +30,7 @@ export const ValidatorSet = {
|
||||
for (const v of message.validators) {
|
||||
Validator.encode(v!, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
if (message.proposer !== undefined && message.proposer !== undefined) {
|
||||
if (message.proposer !== undefined) {
|
||||
Validator.encode(message.proposer, writer.uint32(18).fork()).ldelim();
|
||||
}
|
||||
writer.uint32(24).int64(message.totalVotingPower);
|
||||
@ -40,7 +40,7 @@ export const ValidatorSet = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): ValidatorSet {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseValidatorSet } as ValidatorSet;
|
||||
const message = Object.create(baseValidatorSet) as ValidatorSet;
|
||||
message.validators = [];
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
@ -63,7 +63,7 @@ export const ValidatorSet = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): ValidatorSet {
|
||||
const message = { ...baseValidatorSet } as ValidatorSet;
|
||||
const message = Object.create(baseValidatorSet) as ValidatorSet;
|
||||
message.validators = [];
|
||||
if (object.validators !== undefined && object.validators !== null) {
|
||||
for (const e of object.validators) {
|
||||
@ -124,7 +124,7 @@ const baseValidator: object = { votingPower: Long.ZERO, proposerPriority: Long.Z
|
||||
export const Validator = {
|
||||
encode(message: Validator, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
writer.uint32(10).bytes(message.address);
|
||||
if (message.pubKey !== undefined && message.pubKey !== undefined) {
|
||||
if (message.pubKey !== undefined) {
|
||||
PublicKey.encode(message.pubKey, writer.uint32(18).fork()).ldelim();
|
||||
}
|
||||
writer.uint32(24).int64(message.votingPower);
|
||||
@ -135,7 +135,7 @@ export const Validator = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): Validator {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseValidator } as Validator;
|
||||
const message = Object.create(baseValidator) as Validator;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -160,7 +160,7 @@ export const Validator = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): Validator {
|
||||
const message = { ...baseValidator } as Validator;
|
||||
const message = Object.create(baseValidator) as Validator;
|
||||
if (object.address !== undefined && object.address !== null) {
|
||||
message.address = bytesFromBase64(object.address);
|
||||
}
|
||||
@ -224,7 +224,7 @@ const baseSimpleValidator: object = { votingPower: Long.ZERO };
|
||||
|
||||
export const SimpleValidator = {
|
||||
encode(message: SimpleValidator, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
||||
if (message.pubKey !== undefined && message.pubKey !== undefined) {
|
||||
if (message.pubKey !== undefined) {
|
||||
PublicKey.encode(message.pubKey, writer.uint32(10).fork()).ldelim();
|
||||
}
|
||||
writer.uint32(16).int64(message.votingPower);
|
||||
@ -234,7 +234,7 @@ export const SimpleValidator = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): SimpleValidator {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseSimpleValidator } as SimpleValidator;
|
||||
const message = Object.create(baseSimpleValidator) as SimpleValidator;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -253,7 +253,7 @@ export const SimpleValidator = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): SimpleValidator {
|
||||
const message = { ...baseSimpleValidator } as SimpleValidator;
|
||||
const message = Object.create(baseSimpleValidator) as SimpleValidator;
|
||||
if (object.pubKey !== undefined && object.pubKey !== null) {
|
||||
message.pubKey = PublicKey.fromJSON(object.pubKey);
|
||||
} else {
|
||||
|
@ -36,7 +36,7 @@ export const App = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): App {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseApp } as App;
|
||||
const message = Object.create(baseApp) as App;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -55,7 +55,7 @@ export const App = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): App {
|
||||
const message = { ...baseApp } as App;
|
||||
const message = Object.create(baseApp) as App;
|
||||
if (object.protocol !== undefined && object.protocol !== null) {
|
||||
message.protocol = Long.fromString(object.protocol);
|
||||
} else {
|
||||
@ -104,7 +104,7 @@ export const Consensus = {
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): Consensus {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseConsensus } as Consensus;
|
||||
const message = Object.create(baseConsensus) as Consensus;
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -123,7 +123,7 @@ export const Consensus = {
|
||||
},
|
||||
|
||||
fromJSON(object: any): Consensus {
|
||||
const message = { ...baseConsensus } as Consensus;
|
||||
const message = Object.create(baseConsensus) as Consensus;
|
||||
if (object.block !== undefined && object.block !== null) {
|
||||
message.block = Long.fromString(object.block);
|
||||
} else {
|
||||
|
@ -8654,10 +8654,10 @@ ts-poet@^4.5.0:
|
||||
lodash "^4.17.15"
|
||||
prettier "^2.0.2"
|
||||
|
||||
ts-proto@=1.60.0:
|
||||
version "1.60.0"
|
||||
resolved "https://registry.yarnpkg.com/ts-proto/-/ts-proto-1.60.0.tgz#0da9c0d8544aed64c49721028bc371497654df80"
|
||||
integrity sha512-DzVTnt3TwbefH1xWY6SJ93VvRzBiKO64YyFip8oB7QWXe+fD6HIl/Gm58WarFwjDimpgy4oTGQXfOzHHgCBRXA==
|
||||
ts-proto@=1.61.0:
|
||||
version "1.61.0"
|
||||
resolved "https://registry.yarnpkg.com/ts-proto/-/ts-proto-1.61.0.tgz#0ae36097f52b0be2dae3481e34b2436ab7e44564"
|
||||
integrity sha512-F7FnsOPn22ij6fI3E+1lnOVEhYyILpYk1DLpqEEHVOF77ctA5Jz11G9DtwxWTqzlQ0mAvCEWkAhwdCNa0p7CBQ==
|
||||
dependencies:
|
||||
"@types/object-hash" "^1.3.0"
|
||||
dataloader "^1.4.0"
|
||||
|
Loading…
x
Reference in New Issue
Block a user