diff --git a/__tests__/client/client.test.ts b/__tests__/client/client.test.ts index 63b2602..05575cb 100644 --- a/__tests__/client/client.test.ts +++ b/__tests__/client/client.test.ts @@ -849,9 +849,6 @@ describe('get latest request', () => { 'bandvaloper1e9sa38742tzhmandc4gkqve9zy8zc0yremaa3j', 'bandvaloper1l2hchtyawk9tk43zzjrzr2lcd0zyxngcjdsshe', ]) - request.setTssGroupId(0) - request.setFeeLimitList([]) - request.setRequester("") request.setMinCount(3) request.setRequestHeight(431790) request.setRequestTime(1625547173) @@ -953,10 +950,6 @@ describe('get latest request', () => { ], executeGas: 1000000, ibcChannel: undefined, - tssGroupId: 0, - requester: "", - feeLimitList: [], - signing: undefined }, reportsList: [ { diff --git a/__tests__/transaction.test.ts b/__tests__/transaction.test.ts index 1663b17..58a1095 100644 --- a/__tests__/transaction.test.ts +++ b/__tests__/transaction.test.ts @@ -114,7 +114,7 @@ describe('Transaction', () => { const signMessage = tx.getSignMessage() expect(Buffer.from(signMessage).toString('utf-8')).toEqual( - `{\"account_number\":\"20\",\"chain_id\":\"bandchain\",\"fee\":{\"amount\":[{\"amount\":\"100\",\"denom\":\"uband\"}],\"gas\":\"2000000\"},\"memo\":\"\",\"msgs\":[{\"type\":\"oracle/Request\",\"value\":{\"ask_count\":\"3\",\"calldata\":\"AAAAA0JUQwAAAAAAAAAB\",\"client_id\":\"test\",\"execute_gas\":\"20000\",\"fee_limit\":[{\"amount\":\"100\",\"denom\":\"uband\"}],\"min_count\":\"2\",\"oracle_script_id\":\"1\",\"prepare_gas\":\"20000\",\"sender\":\"band18p27yl962l8283ct7srr5l3g7ydazj07dqrwph\",\"tss_group_id\":\"0\"}}],\"sequence\":\"100\"}`, + `{\"account_number\":\"20\",\"chain_id\":\"bandchain\",\"fee\":{\"amount\":[{\"amount\":\"100\",\"denom\":\"uband\"}],\"gas\":\"2000000\"},\"memo\":\"\",\"msgs\":[{\"type\":\"oracle/Request\",\"value\":{\"ask_count\":\"3\",\"calldata\":\"AAAAA0JUQwAAAAAAAAAB\",\"client_id\":\"test\",\"execute_gas\":\"20000\",\"fee_limit\":[{\"amount\":\"100\",\"denom\":\"uband\"}],\"min_count\":\"2\",\"oracle_script_id\":\"1\",\"prepare_gas\":\"20000\",\"sender\":\"band18p27yl962l8283ct7srr5l3g7ydazj07dqrwph\"}}],\"sequence\":\"100\"}`, ) }) diff --git a/proto/bandchain/v1/node/query_pb.d.ts b/proto/bandchain/v1/node/query_pb.d.ts index c05eec2..4da73d3 100644 --- a/proto/bandchain/v1/node/query_pb.d.ts +++ b/proto/bandchain/v1/node/query_pb.d.ts @@ -1,109 +1,161 @@ // package: bandchain.v1.node // file: bandchain/v1/node/query.proto -import * as jspb from "google-protobuf"; -import * as google_api_annotations_pb from "../../../google/api/annotations_pb"; -import * as gogoproto_gogo_pb from "../../../gogoproto/gogo_pb"; - -export class QueryChainIDRequest extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QueryChainIDRequest.AsObject; - static toObject(includeInstance: boolean, msg: QueryChainIDRequest): QueryChainIDRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QueryChainIDRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QueryChainIDRequest; - static deserializeBinaryFromReader(message: QueryChainIDRequest, reader: jspb.BinaryReader): QueryChainIDRequest; +import * as jspb from 'google-protobuf' +import * as google_api_annotations_pb from '../../../google/api/annotations_pb' +import * as gogoproto_gogo_pb from '../../../gogoproto/gogo_pb' + +export class ChainIDRequest extends jspb.Message { + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): ChainIDRequest.AsObject + static toObject( + includeInstance: boolean, + msg: ChainIDRequest, + ): ChainIDRequest.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: ChainIDRequest, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): ChainIDRequest + static deserializeBinaryFromReader( + message: ChainIDRequest, + reader: jspb.BinaryReader, + ): ChainIDRequest } -export namespace QueryChainIDRequest { - export type AsObject = { - } +export namespace ChainIDRequest { + export type AsObject = {} } -export class QueryChainIDResponse extends jspb.Message { - getChainId(): string; - setChainId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QueryChainIDResponse.AsObject; - static toObject(includeInstance: boolean, msg: QueryChainIDResponse): QueryChainIDResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QueryChainIDResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QueryChainIDResponse; - static deserializeBinaryFromReader(message: QueryChainIDResponse, reader: jspb.BinaryReader): QueryChainIDResponse; +export class ChainIDResponse extends jspb.Message { + getChainId(): string + setChainId(value: string): void + + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): ChainIDResponse.AsObject + static toObject( + includeInstance: boolean, + msg: ChainIDResponse, + ): ChainIDResponse.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: ChainIDResponse, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): ChainIDResponse + static deserializeBinaryFromReader( + message: ChainIDResponse, + reader: jspb.BinaryReader, + ): ChainIDResponse } -export namespace QueryChainIDResponse { +export namespace ChainIDResponse { export type AsObject = { - chainId: string, + chainId: string } } -export class QueryEVMValidatorsRequest extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QueryEVMValidatorsRequest.AsObject; - static toObject(includeInstance: boolean, msg: QueryEVMValidatorsRequest): QueryEVMValidatorsRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QueryEVMValidatorsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QueryEVMValidatorsRequest; - static deserializeBinaryFromReader(message: QueryEVMValidatorsRequest, reader: jspb.BinaryReader): QueryEVMValidatorsRequest; +export class EVMValidatorsRequest extends jspb.Message { + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): EVMValidatorsRequest.AsObject + static toObject( + includeInstance: boolean, + msg: EVMValidatorsRequest, + ): EVMValidatorsRequest.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: EVMValidatorsRequest, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): EVMValidatorsRequest + static deserializeBinaryFromReader( + message: EVMValidatorsRequest, + reader: jspb.BinaryReader, + ): EVMValidatorsRequest } -export namespace QueryEVMValidatorsRequest { - export type AsObject = { - } +export namespace EVMValidatorsRequest { + export type AsObject = {} } -export class QueryEVMValidatorsResponse extends jspb.Message { - getBlockHeight(): number; - setBlockHeight(value: number): void; - - clearValidatorsList(): void; - getValidatorsList(): Array; - setValidatorsList(value: Array): void; - addValidators(value?: ValidatorMinimal, index?: number): ValidatorMinimal; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QueryEVMValidatorsResponse.AsObject; - static toObject(includeInstance: boolean, msg: QueryEVMValidatorsResponse): QueryEVMValidatorsResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QueryEVMValidatorsResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QueryEVMValidatorsResponse; - static deserializeBinaryFromReader(message: QueryEVMValidatorsResponse, reader: jspb.BinaryReader): QueryEVMValidatorsResponse; +export class EVMValidatorsResponse extends jspb.Message { + getBlockHeight(): number + setBlockHeight(value: number): void + + clearValidatorsList(): void + getValidatorsList(): Array + setValidatorsList(value: Array): void + addValidators(value?: ValidatorMinimal, index?: number): ValidatorMinimal + + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): EVMValidatorsResponse.AsObject + static toObject( + includeInstance: boolean, + msg: EVMValidatorsResponse, + ): EVMValidatorsResponse.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: EVMValidatorsResponse, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): EVMValidatorsResponse + static deserializeBinaryFromReader( + message: EVMValidatorsResponse, + reader: jspb.BinaryReader, + ): EVMValidatorsResponse } -export namespace QueryEVMValidatorsResponse { +export namespace EVMValidatorsResponse { export type AsObject = { - blockHeight: number, - validatorsList: Array, + blockHeight: number + validatorsList: Array } } export class ValidatorMinimal extends jspb.Message { - getAddress(): string; - setAddress(value: string): void; - - getVotingPower(): number; - setVotingPower(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ValidatorMinimal.AsObject; - static toObject(includeInstance: boolean, msg: ValidatorMinimal): ValidatorMinimal.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ValidatorMinimal, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ValidatorMinimal; - static deserializeBinaryFromReader(message: ValidatorMinimal, reader: jspb.BinaryReader): ValidatorMinimal; + getAddress(): string + setAddress(value: string): void + + getVotingPower(): number + setVotingPower(value: number): void + + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): ValidatorMinimal.AsObject + static toObject( + includeInstance: boolean, + msg: ValidatorMinimal, + ): ValidatorMinimal.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: ValidatorMinimal, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): ValidatorMinimal + static deserializeBinaryFromReader( + message: ValidatorMinimal, + reader: jspb.BinaryReader, + ): ValidatorMinimal } export namespace ValidatorMinimal { export type AsObject = { - address: string, - votingPower: number, + address: string + votingPower: number } } - diff --git a/proto/bandchain/v1/node/query_pb.js b/proto/bandchain/v1/node/query_pb.js index 761ce84..e09c82b 100644 --- a/proto/bandchain/v1/node/query_pb.js +++ b/proto/bandchain/v1/node/query_pb.js @@ -11,19 +11,27 @@ /* eslint-disable */ // @ts-nocheck -var jspb = require('google-protobuf'); -var goog = jspb; -var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); - -var google_api_annotations_pb = require('../../../google/api/annotations_pb.js'); -goog.object.extend(proto, google_api_annotations_pb); -var gogoproto_gogo_pb = require('../../../gogoproto/gogo_pb.js'); -goog.object.extend(proto, gogoproto_gogo_pb); -goog.exportSymbol('proto.bandchain.v1.node.QueryChainIDRequest', null, global); -goog.exportSymbol('proto.bandchain.v1.node.QueryChainIDResponse', null, global); -goog.exportSymbol('proto.bandchain.v1.node.QueryEVMValidatorsRequest', null, global); -goog.exportSymbol('proto.bandchain.v1.node.QueryEVMValidatorsResponse', null, global); -goog.exportSymbol('proto.bandchain.v1.node.ValidatorMinimal', null, global); +var jspb = require('google-protobuf') +var goog = jspb +var global = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + function () { + return this + }.call(null) || + Function('return this')() + +var google_api_annotations_pb = require('../../../google/api/annotations_pb.js') +goog.object.extend(proto, google_api_annotations_pb) +var gogoproto_gogo_pb = require('../../../gogoproto/gogo_pb.js') +goog.object.extend(proto, gogoproto_gogo_pb) +goog.exportSymbol('proto.bandchain.v1.node.ChainIDRequest', null, global) +goog.exportSymbol('proto.bandchain.v1.node.ChainIDResponse', null, global) +goog.exportSymbol('proto.bandchain.v1.node.EVMValidatorsRequest', null, global) +goog.exportSymbol('proto.bandchain.v1.node.EVMValidatorsResponse', null, global) +goog.exportSymbol('proto.bandchain.v1.node.ValidatorMinimal', null, global) /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -34,16 +42,17 @@ goog.exportSymbol('proto.bandchain.v1.node.ValidatorMinimal', null, global); * @extends {jspb.Message} * @constructor */ -proto.bandchain.v1.node.QueryChainIDRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.bandchain.v1.node.QueryChainIDRequest, jspb.Message); +proto.bandchain.v1.node.ChainIDRequest = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null) +} +goog.inherits(proto.bandchain.v1.node.ChainIDRequest, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.bandchain.v1.node.QueryChainIDRequest.displayName = 'proto.bandchain.v1.node.QueryChainIDRequest'; + proto.bandchain.v1.node.ChainIDRequest.displayName = + 'proto.bandchain.v1.node.ChainIDRequest' } /** * Generated by JsPbCodeGenerator. @@ -55,16 +64,17 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.bandchain.v1.node.QueryChainIDResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.bandchain.v1.node.QueryChainIDResponse, jspb.Message); +proto.bandchain.v1.node.ChainIDResponse = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null) +} +goog.inherits(proto.bandchain.v1.node.ChainIDResponse, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.bandchain.v1.node.QueryChainIDResponse.displayName = 'proto.bandchain.v1.node.QueryChainIDResponse'; + proto.bandchain.v1.node.ChainIDResponse.displayName = + 'proto.bandchain.v1.node.ChainIDResponse' } /** * Generated by JsPbCodeGenerator. @@ -76,16 +86,17 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.bandchain.v1.node.QueryEVMValidatorsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.bandchain.v1.node.QueryEVMValidatorsRequest, jspb.Message); +proto.bandchain.v1.node.EVMValidatorsRequest = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null) +} +goog.inherits(proto.bandchain.v1.node.EVMValidatorsRequest, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.bandchain.v1.node.QueryEVMValidatorsRequest.displayName = 'proto.bandchain.v1.node.QueryEVMValidatorsRequest'; + proto.bandchain.v1.node.EVMValidatorsRequest.displayName = + 'proto.bandchain.v1.node.EVMValidatorsRequest' } /** * Generated by JsPbCodeGenerator. @@ -97,16 +108,24 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.bandchain.v1.node.QueryEVMValidatorsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.bandchain.v1.node.QueryEVMValidatorsResponse.repeatedFields_, null); -}; -goog.inherits(proto.bandchain.v1.node.QueryEVMValidatorsResponse, jspb.Message); +proto.bandchain.v1.node.EVMValidatorsResponse = function (opt_data) { + jspb.Message.initialize( + this, + opt_data, + 0, + -1, + proto.bandchain.v1.node.EVMValidatorsResponse.repeatedFields_, + null, + ) +} +goog.inherits(proto.bandchain.v1.node.EVMValidatorsResponse, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.bandchain.v1.node.QueryEVMValidatorsResponse.displayName = 'proto.bandchain.v1.node.QueryEVMValidatorsResponse'; + proto.bandchain.v1.node.EVMValidatorsResponse.displayName = + 'proto.bandchain.v1.node.EVMValidatorsResponse' } /** * Generated by JsPbCodeGenerator. @@ -118,594 +137,654 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.bandchain.v1.node.ValidatorMinimal = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.bandchain.v1.node.ValidatorMinimal, jspb.Message); +proto.bandchain.v1.node.ValidatorMinimal = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null) +} +goog.inherits(proto.bandchain.v1.node.ValidatorMinimal, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.bandchain.v1.node.ValidatorMinimal.displayName = 'proto.bandchain.v1.node.ValidatorMinimal'; + proto.bandchain.v1.node.ValidatorMinimal.displayName = + 'proto.bandchain.v1.node.ValidatorMinimal' } - - if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.bandchain.v1.node.QueryChainIDRequest.prototype.toObject = function(opt_includeInstance) { - return proto.bandchain.v1.node.QueryChainIDRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.bandchain.v1.node.QueryChainIDRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bandchain.v1.node.QueryChainIDRequest.toObject = function(includeInstance, msg) { - var f, obj = { - - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bandchain.v1.node.ChainIDRequest.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.bandchain.v1.node.ChainIDRequest.toObject( + opt_includeInstance, + this, + ) + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bandchain.v1.node.ChainIDRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bandchain.v1.node.ChainIDRequest.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = {} + + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.bandchain.v1.node.QueryChainIDRequest} - */ -proto.bandchain.v1.node.QueryChainIDRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.bandchain.v1.node.QueryChainIDRequest; - return proto.bandchain.v1.node.QueryChainIDRequest.deserializeBinaryFromReader(msg, reader); -}; - + * @return {!proto.bandchain.v1.node.ChainIDRequest} + */ +proto.bandchain.v1.node.ChainIDRequest.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.bandchain.v1.node.ChainIDRequest() + return proto.bandchain.v1.node.ChainIDRequest.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.bandchain.v1.node.QueryChainIDRequest} msg The message object to deserialize into. + * @param {!proto.bandchain.v1.node.ChainIDRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bandchain.v1.node.QueryChainIDRequest} + * @return {!proto.bandchain.v1.node.ChainIDRequest} */ -proto.bandchain.v1.node.QueryChainIDRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.bandchain.v1.node.ChainIDRequest.deserializeBinaryFromReader = function ( + msg, + reader, +) { while (reader.nextField()) { if (reader.isEndGroup()) { - break; + break } - var field = reader.getFieldNumber(); + var field = reader.getFieldNumber() switch (field) { - default: - reader.skipField(); - break; + default: + reader.skipField() + break } } - return msg; -}; - + return msg +} /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.bandchain.v1.node.QueryChainIDRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.bandchain.v1.node.QueryChainIDRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.bandchain.v1.node.ChainIDRequest.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter() + proto.bandchain.v1.node.ChainIDRequest.serializeBinaryToWriter(this, writer) + return writer.getResultBuffer() +} /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.bandchain.v1.node.QueryChainIDRequest} message + * @param {!proto.bandchain.v1.node.ChainIDRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.bandchain.v1.node.QueryChainIDRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - - - +proto.bandchain.v1.node.ChainIDRequest.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined +} if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.bandchain.v1.node.QueryChainIDResponse.prototype.toObject = function(opt_includeInstance) { - return proto.bandchain.v1.node.QueryChainIDResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.bandchain.v1.node.QueryChainIDResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bandchain.v1.node.QueryChainIDResponse.toObject = function(includeInstance, msg) { - var f, obj = { - chainId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bandchain.v1.node.ChainIDResponse.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.bandchain.v1.node.ChainIDResponse.toObject( + opt_includeInstance, + this, + ) + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bandchain.v1.node.ChainIDResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bandchain.v1.node.ChainIDResponse.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = { + chainId: jspb.Message.getFieldWithDefault(msg, 1, ''), + } + + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.bandchain.v1.node.QueryChainIDResponse} - */ -proto.bandchain.v1.node.QueryChainIDResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.bandchain.v1.node.QueryChainIDResponse; - return proto.bandchain.v1.node.QueryChainIDResponse.deserializeBinaryFromReader(msg, reader); -}; - + * @return {!proto.bandchain.v1.node.ChainIDResponse} + */ +proto.bandchain.v1.node.ChainIDResponse.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.bandchain.v1.node.ChainIDResponse() + return proto.bandchain.v1.node.ChainIDResponse.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.bandchain.v1.node.QueryChainIDResponse} msg The message object to deserialize into. + * @param {!proto.bandchain.v1.node.ChainIDResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bandchain.v1.node.QueryChainIDResponse} + * @return {!proto.bandchain.v1.node.ChainIDResponse} */ -proto.bandchain.v1.node.QueryChainIDResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.bandchain.v1.node.ChainIDResponse.deserializeBinaryFromReader = function ( + msg, + reader, +) { while (reader.nextField()) { if (reader.isEndGroup()) { - break; + break } - var field = reader.getFieldNumber(); + var field = reader.getFieldNumber() switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setChainId(value); - break; - default: - reader.skipField(); - break; + case 1: + var value = /** @type {string} */ (reader.readString()) + msg.setChainId(value) + break + default: + reader.skipField() + break } } - return msg; -}; - + return msg +} /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.bandchain.v1.node.QueryChainIDResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.bandchain.v1.node.QueryChainIDResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.bandchain.v1.node.ChainIDResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter() + proto.bandchain.v1.node.ChainIDResponse.serializeBinaryToWriter( + this, + writer, + ) + return writer.getResultBuffer() + } /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.bandchain.v1.node.QueryChainIDResponse} message + * @param {!proto.bandchain.v1.node.ChainIDResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.bandchain.v1.node.QueryChainIDResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getChainId(); +proto.bandchain.v1.node.ChainIDResponse.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined + f = message.getChainId() if (f.length > 0) { - writer.writeString( - 1, - f - ); + writer.writeString(1, f) } -}; - +} /** * optional string chain_id = 1; * @return {string} */ -proto.bandchain.v1.node.QueryChainIDResponse.prototype.getChainId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - +proto.bandchain.v1.node.ChainIDResponse.prototype.getChainId = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, '')) +} /** * @param {string} value - * @return {!proto.bandchain.v1.node.QueryChainIDResponse} returns this + * @return {!proto.bandchain.v1.node.ChainIDResponse} returns this */ -proto.bandchain.v1.node.QueryChainIDResponse.prototype.setChainId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - +proto.bandchain.v1.node.ChainIDResponse.prototype.setChainId = function ( + value, +) { + return jspb.Message.setProto3StringField(this, 1, value) +} if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.bandchain.v1.node.QueryEVMValidatorsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.bandchain.v1.node.QueryEVMValidatorsRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.bandchain.v1.node.QueryEVMValidatorsRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bandchain.v1.node.QueryEVMValidatorsRequest.toObject = function(includeInstance, msg) { - var f, obj = { - - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bandchain.v1.node.EVMValidatorsRequest.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.bandchain.v1.node.EVMValidatorsRequest.toObject( + opt_includeInstance, + this, + ) + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bandchain.v1.node.EVMValidatorsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bandchain.v1.node.EVMValidatorsRequest.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = {} + + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.bandchain.v1.node.QueryEVMValidatorsRequest} - */ -proto.bandchain.v1.node.QueryEVMValidatorsRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.bandchain.v1.node.QueryEVMValidatorsRequest; - return proto.bandchain.v1.node.QueryEVMValidatorsRequest.deserializeBinaryFromReader(msg, reader); -}; - + * @return {!proto.bandchain.v1.node.EVMValidatorsRequest} + */ +proto.bandchain.v1.node.EVMValidatorsRequest.deserializeBinary = function ( + bytes, +) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.bandchain.v1.node.EVMValidatorsRequest() + return proto.bandchain.v1.node.EVMValidatorsRequest.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.bandchain.v1.node.QueryEVMValidatorsRequest} msg The message object to deserialize into. + * @param {!proto.bandchain.v1.node.EVMValidatorsRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bandchain.v1.node.QueryEVMValidatorsRequest} - */ -proto.bandchain.v1.node.QueryEVMValidatorsRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - default: - reader.skipField(); - break; + * @return {!proto.bandchain.v1.node.EVMValidatorsRequest} + */ +proto.bandchain.v1.node.EVMValidatorsRequest.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break + } + var field = reader.getFieldNumber() + switch (field) { + default: + reader.skipField() + break + } } + return msg } - return msg; -}; - /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.bandchain.v1.node.QueryEVMValidatorsRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.bandchain.v1.node.QueryEVMValidatorsRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.bandchain.v1.node.EVMValidatorsRequest.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter() + proto.bandchain.v1.node.EVMValidatorsRequest.serializeBinaryToWriter( + this, + writer, + ) + return writer.getResultBuffer() + } /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.bandchain.v1.node.QueryEVMValidatorsRequest} message + * @param {!proto.bandchain.v1.node.EVMValidatorsRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.bandchain.v1.node.QueryEVMValidatorsRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - +proto.bandchain.v1.node.EVMValidatorsRequest.serializeBinaryToWriter = + function (message, writer) { + var f = undefined + } /** * List of repeated fields within this message type. * @private {!Array} * @const */ -proto.bandchain.v1.node.QueryEVMValidatorsResponse.repeatedFields_ = [2]; - - +proto.bandchain.v1.node.EVMValidatorsResponse.repeatedFields_ = [2] if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.bandchain.v1.node.QueryEVMValidatorsResponse.prototype.toObject = function(opt_includeInstance) { - return proto.bandchain.v1.node.QueryEVMValidatorsResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.bandchain.v1.node.QueryEVMValidatorsResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bandchain.v1.node.QueryEVMValidatorsResponse.toObject = function(includeInstance, msg) { - var f, obj = { - blockHeight: jspb.Message.getFieldWithDefault(msg, 1, 0), - validatorsList: jspb.Message.toObjectList(msg.getValidatorsList(), - proto.bandchain.v1.node.ValidatorMinimal.toObject, includeInstance) - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bandchain.v1.node.EVMValidatorsResponse.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.bandchain.v1.node.EVMValidatorsResponse.toObject( + opt_includeInstance, + this, + ) + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bandchain.v1.node.EVMValidatorsResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bandchain.v1.node.EVMValidatorsResponse.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = { + blockHeight: jspb.Message.getFieldWithDefault(msg, 1, 0), + validatorsList: jspb.Message.toObjectList( + msg.getValidatorsList(), + proto.bandchain.v1.node.ValidatorMinimal.toObject, + includeInstance, + ), + } + + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.bandchain.v1.node.QueryEVMValidatorsResponse} - */ -proto.bandchain.v1.node.QueryEVMValidatorsResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.bandchain.v1.node.QueryEVMValidatorsResponse; - return proto.bandchain.v1.node.QueryEVMValidatorsResponse.deserializeBinaryFromReader(msg, reader); -}; - + * @return {!proto.bandchain.v1.node.EVMValidatorsResponse} + */ +proto.bandchain.v1.node.EVMValidatorsResponse.deserializeBinary = function ( + bytes, +) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.bandchain.v1.node.EVMValidatorsResponse() + return proto.bandchain.v1.node.EVMValidatorsResponse.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.bandchain.v1.node.QueryEVMValidatorsResponse} msg The message object to deserialize into. + * @param {!proto.bandchain.v1.node.EVMValidatorsResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bandchain.v1.node.QueryEVMValidatorsResponse} - */ -proto.bandchain.v1.node.QueryEVMValidatorsResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt64()); - msg.setBlockHeight(value); - break; - case 2: - var value = new proto.bandchain.v1.node.ValidatorMinimal; - reader.readMessage(value,proto.bandchain.v1.node.ValidatorMinimal.deserializeBinaryFromReader); - msg.addValidators(value); - break; - default: - reader.skipField(); - break; + * @return {!proto.bandchain.v1.node.EVMValidatorsResponse} + */ +proto.bandchain.v1.node.EVMValidatorsResponse.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break + } + var field = reader.getFieldNumber() + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readInt64()) + msg.setBlockHeight(value) + break + case 2: + var value = new proto.bandchain.v1.node.ValidatorMinimal() + reader.readMessage( + value, + proto.bandchain.v1.node.ValidatorMinimal + .deserializeBinaryFromReader, + ) + msg.addValidators(value) + break + default: + reader.skipField() + break + } } + return msg } - return msg; -}; - /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.bandchain.v1.node.QueryEVMValidatorsResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.bandchain.v1.node.QueryEVMValidatorsResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.bandchain.v1.node.EVMValidatorsResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter() + proto.bandchain.v1.node.EVMValidatorsResponse.serializeBinaryToWriter( + this, + writer, + ) + return writer.getResultBuffer() + } /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.bandchain.v1.node.QueryEVMValidatorsResponse} message + * @param {!proto.bandchain.v1.node.EVMValidatorsResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.bandchain.v1.node.QueryEVMValidatorsResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getBlockHeight(); - if (f !== 0) { - writer.writeInt64( - 1, - f - ); - } - f = message.getValidatorsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.bandchain.v1.node.ValidatorMinimal.serializeBinaryToWriter - ); +proto.bandchain.v1.node.EVMValidatorsResponse.serializeBinaryToWriter = + function (message, writer) { + var f = undefined + f = message.getBlockHeight() + if (f !== 0) { + writer.writeInt64(1, f) + } + f = message.getValidatorsList() + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto.bandchain.v1.node.ValidatorMinimal.serializeBinaryToWriter, + ) + } } -}; - /** * optional int64 block_height = 1; * @return {number} */ -proto.bandchain.v1.node.QueryEVMValidatorsResponse.prototype.getBlockHeight = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - +proto.bandchain.v1.node.EVMValidatorsResponse.prototype.getBlockHeight = + function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)) + } /** * @param {number} value - * @return {!proto.bandchain.v1.node.QueryEVMValidatorsResponse} returns this + * @return {!proto.bandchain.v1.node.EVMValidatorsResponse} returns this */ -proto.bandchain.v1.node.QueryEVMValidatorsResponse.prototype.setBlockHeight = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - +proto.bandchain.v1.node.EVMValidatorsResponse.prototype.setBlockHeight = + function (value) { + return jspb.Message.setProto3IntField(this, 1, value) + } /** * repeated ValidatorMinimal validators = 2; * @return {!Array} */ -proto.bandchain.v1.node.QueryEVMValidatorsResponse.prototype.getValidatorsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.bandchain.v1.node.ValidatorMinimal, 2)); -}; - +proto.bandchain.v1.node.EVMValidatorsResponse.prototype.getValidatorsList = + function () { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField( + this, + proto.bandchain.v1.node.ValidatorMinimal, + 2, + ) + ) + } /** * @param {!Array} value - * @return {!proto.bandchain.v1.node.QueryEVMValidatorsResponse} returns this -*/ -proto.bandchain.v1.node.QueryEVMValidatorsResponse.prototype.setValidatorsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - + * @return {!proto.bandchain.v1.node.EVMValidatorsResponse} returns this + */ +proto.bandchain.v1.node.EVMValidatorsResponse.prototype.setValidatorsList = + function (value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value) + } /** * @param {!proto.bandchain.v1.node.ValidatorMinimal=} opt_value * @param {number=} opt_index * @return {!proto.bandchain.v1.node.ValidatorMinimal} */ -proto.bandchain.v1.node.QueryEVMValidatorsResponse.prototype.addValidators = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.bandchain.v1.node.ValidatorMinimal, opt_index); -}; - +proto.bandchain.v1.node.EVMValidatorsResponse.prototype.addValidators = + function (opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField( + this, + 2, + opt_value, + proto.bandchain.v1.node.ValidatorMinimal, + opt_index, + ) + } /** * Clears the list making it empty but non-null. - * @return {!proto.bandchain.v1.node.QueryEVMValidatorsResponse} returns this + * @return {!proto.bandchain.v1.node.EVMValidatorsResponse} returns this */ -proto.bandchain.v1.node.QueryEVMValidatorsResponse.prototype.clearValidatorsList = function() { - return this.setValidatorsList([]); -}; - - - - +proto.bandchain.v1.node.EVMValidatorsResponse.prototype.clearValidatorsList = + function () { + return this.setValidatorsList([]) + } if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.bandchain.v1.node.ValidatorMinimal.prototype.toObject = function(opt_includeInstance) { - return proto.bandchain.v1.node.ValidatorMinimal.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.bandchain.v1.node.ValidatorMinimal} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bandchain.v1.node.ValidatorMinimal.toObject = function(includeInstance, msg) { - var f, obj = { - address: jspb.Message.getFieldWithDefault(msg, 1, ""), - votingPower: jspb.Message.getFieldWithDefault(msg, 2, 0) - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bandchain.v1.node.ValidatorMinimal.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.bandchain.v1.node.ValidatorMinimal.toObject( + opt_includeInstance, + this, + ) + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bandchain.v1.node.ValidatorMinimal} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bandchain.v1.node.ValidatorMinimal.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = { + address: jspb.Message.getFieldWithDefault(msg, 1, ''), + votingPower: jspb.Message.getFieldWithDefault(msg, 2, 0), + } + + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.bandchain.v1.node.ValidatorMinimal} */ -proto.bandchain.v1.node.ValidatorMinimal.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.bandchain.v1.node.ValidatorMinimal; - return proto.bandchain.v1.node.ValidatorMinimal.deserializeBinaryFromReader(msg, reader); -}; - +proto.bandchain.v1.node.ValidatorMinimal.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.bandchain.v1.node.ValidatorMinimal() + return proto.bandchain.v1.node.ValidatorMinimal.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -714,40 +793,43 @@ proto.bandchain.v1.node.ValidatorMinimal.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.bandchain.v1.node.ValidatorMinimal} */ -proto.bandchain.v1.node.ValidatorMinimal.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setAddress(value); - break; - case 2: - var value = /** @type {number} */ (reader.readInt64()); - msg.setVotingPower(value); - break; - default: - reader.skipField(); - break; +proto.bandchain.v1.node.ValidatorMinimal.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break + } + var field = reader.getFieldNumber() + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()) + msg.setAddress(value) + break + case 2: + var value = /** @type {number} */ (reader.readInt64()) + msg.setVotingPower(value) + break + default: + reader.skipField() + break + } } + return msg } - return msg; -}; - /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.bandchain.v1.node.ValidatorMinimal.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.bandchain.v1.node.ValidatorMinimal.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.bandchain.v1.node.ValidatorMinimal.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter() + proto.bandchain.v1.node.ValidatorMinimal.serializeBinaryToWriter( + this, + writer, + ) + return writer.getResultBuffer() + } /** * Serializes the given message to binary data (in protobuf wire @@ -756,59 +838,56 @@ proto.bandchain.v1.node.ValidatorMinimal.prototype.serializeBinary = function() * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.bandchain.v1.node.ValidatorMinimal.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getAddress(); +proto.bandchain.v1.node.ValidatorMinimal.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined + f = message.getAddress() if (f.length > 0) { - writer.writeString( - 1, - f - ); + writer.writeString(1, f) } - f = message.getVotingPower(); + f = message.getVotingPower() if (f !== 0) { - writer.writeInt64( - 2, - f - ); + writer.writeInt64(2, f) } -}; - +} /** * optional string address = 1; * @return {string} */ -proto.bandchain.v1.node.ValidatorMinimal.prototype.getAddress = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - +proto.bandchain.v1.node.ValidatorMinimal.prototype.getAddress = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, '')) +} /** * @param {string} value * @return {!proto.bandchain.v1.node.ValidatorMinimal} returns this */ -proto.bandchain.v1.node.ValidatorMinimal.prototype.setAddress = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - +proto.bandchain.v1.node.ValidatorMinimal.prototype.setAddress = function ( + value, +) { + return jspb.Message.setProto3StringField(this, 1, value) +} /** * optional int64 voting_power = 2; * @return {number} */ -proto.bandchain.v1.node.ValidatorMinimal.prototype.getVotingPower = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - +proto.bandchain.v1.node.ValidatorMinimal.prototype.getVotingPower = + function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)) + } /** * @param {number} value * @return {!proto.bandchain.v1.node.ValidatorMinimal} returns this */ -proto.bandchain.v1.node.ValidatorMinimal.prototype.setVotingPower = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - +proto.bandchain.v1.node.ValidatorMinimal.prototype.setVotingPower = function ( + value, +) { + return jspb.Message.setProto3IntField(this, 2, value) +} -goog.object.extend(exports, proto.bandchain.v1.node); +goog.object.extend(exports, proto.bandchain.v1.node) diff --git a/proto/bandchain/v1/node/query_pb_service.d.ts b/proto/bandchain/v1/node/query_pb_service.d.ts index cbe9c97..63ab5b4 100644 --- a/proto/bandchain/v1/node/query_pb_service.d.ts +++ b/proto/bandchain/v1/node/query_pb_service.d.ts @@ -1,82 +1,106 @@ // package: bandchain.v1.node // file: bandchain/v1/node/query.proto -import * as bandchain_v1_node_query_pb from "../../../bandchain/v1/node/query_pb"; -import {grpc} from "@improbable-eng/grpc-web"; +import * as bandchain_v1_node_query_pb from '../../../bandchain/v1/node/query_pb' +import { grpc } from '@improbable-eng/grpc-web' type ServiceChainID = { - readonly methodName: string; - readonly service: typeof Service; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof bandchain_v1_node_query_pb.QueryChainIDRequest; - readonly responseType: typeof bandchain_v1_node_query_pb.QueryChainIDResponse; -}; + readonly methodName: string + readonly service: typeof Service + readonly requestStream: false + readonly responseStream: false + readonly requestType: typeof bandchain_v1_node_query_pb.ChainIDRequest + readonly responseType: typeof bandchain_v1_node_query_pb.ChainIDResponse +} type ServiceEVMValidators = { - readonly methodName: string; - readonly service: typeof Service; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof bandchain_v1_node_query_pb.QueryEVMValidatorsRequest; - readonly responseType: typeof bandchain_v1_node_query_pb.QueryEVMValidatorsResponse; -}; + readonly methodName: string + readonly service: typeof Service + readonly requestStream: false + readonly responseStream: false + readonly requestType: typeof bandchain_v1_node_query_pb.EVMValidatorsRequest + readonly responseType: typeof bandchain_v1_node_query_pb.EVMValidatorsResponse +} export class Service { - static readonly serviceName: string; - static readonly ChainID: ServiceChainID; - static readonly EVMValidators: ServiceEVMValidators; + static readonly serviceName: string + static readonly ChainID: ServiceChainID + static readonly EVMValidators: ServiceEVMValidators } -export type ServiceError = { message: string, code: number; metadata: grpc.Metadata } -export type Status = { details: string, code: number; metadata: grpc.Metadata } +export type ServiceError = { + message: string + code: number + metadata: grpc.Metadata +} +export type Status = { details: string; code: number; metadata: grpc.Metadata } interface UnaryResponse { - cancel(): void; + cancel(): void } interface ResponseStream { - cancel(): void; - on(type: 'data', handler: (message: T) => void): ResponseStream; - on(type: 'end', handler: (status?: Status) => void): ResponseStream; - on(type: 'status', handler: (status: Status) => void): ResponseStream; + cancel(): void + on(type: 'data', handler: (message: T) => void): ResponseStream + on(type: 'end', handler: (status?: Status) => void): ResponseStream + on(type: 'status', handler: (status: Status) => void): ResponseStream } interface RequestStream { - write(message: T): RequestStream; - end(): void; - cancel(): void; - on(type: 'end', handler: (status?: Status) => void): RequestStream; - on(type: 'status', handler: (status: Status) => void): RequestStream; + write(message: T): RequestStream + end(): void + cancel(): void + on(type: 'end', handler: (status?: Status) => void): RequestStream + on(type: 'status', handler: (status: Status) => void): RequestStream } interface BidirectionalStream { - write(message: ReqT): BidirectionalStream; - end(): void; - cancel(): void; - on(type: 'data', handler: (message: ResT) => void): BidirectionalStream; - on(type: 'end', handler: (status?: Status) => void): BidirectionalStream; - on(type: 'status', handler: (status: Status) => void): BidirectionalStream; + write(message: ReqT): BidirectionalStream + end(): void + cancel(): void + on( + type: 'data', + handler: (message: ResT) => void, + ): BidirectionalStream + on( + type: 'end', + handler: (status?: Status) => void, + ): BidirectionalStream + on( + type: 'status', + handler: (status: Status) => void, + ): BidirectionalStream } export class ServiceClient { - readonly serviceHost: string; + readonly serviceHost: string - constructor(serviceHost: string, options?: grpc.RpcOptions); + constructor(serviceHost: string, options?: grpc.RpcOptions) chainID( - requestMessage: bandchain_v1_node_query_pb.QueryChainIDRequest, + requestMessage: bandchain_v1_node_query_pb.ChainIDRequest, metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: bandchain_v1_node_query_pb.QueryChainIDResponse|null) => void - ): UnaryResponse; + callback: ( + error: ServiceError | null, + responseMessage: bandchain_v1_node_query_pb.ChainIDResponse | null, + ) => void, + ): UnaryResponse chainID( - requestMessage: bandchain_v1_node_query_pb.QueryChainIDRequest, - callback: (error: ServiceError|null, responseMessage: bandchain_v1_node_query_pb.QueryChainIDResponse|null) => void - ): UnaryResponse; + requestMessage: bandchain_v1_node_query_pb.ChainIDRequest, + callback: ( + error: ServiceError | null, + responseMessage: bandchain_v1_node_query_pb.ChainIDResponse | null, + ) => void, + ): UnaryResponse eVMValidators( - requestMessage: bandchain_v1_node_query_pb.QueryEVMValidatorsRequest, + requestMessage: bandchain_v1_node_query_pb.EVMValidatorsRequest, metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: bandchain_v1_node_query_pb.QueryEVMValidatorsResponse|null) => void - ): UnaryResponse; + callback: ( + error: ServiceError | null, + responseMessage: bandchain_v1_node_query_pb.EVMValidatorsResponse | null, + ) => void, + ): UnaryResponse eVMValidators( - requestMessage: bandchain_v1_node_query_pb.QueryEVMValidatorsRequest, - callback: (error: ServiceError|null, responseMessage: bandchain_v1_node_query_pb.QueryEVMValidatorsResponse|null) => void - ): UnaryResponse; + requestMessage: bandchain_v1_node_query_pb.EVMValidatorsRequest, + callback: ( + error: ServiceError | null, + responseMessage: bandchain_v1_node_query_pb.EVMValidatorsResponse | null, + ) => void, + ): UnaryResponse } - diff --git a/proto/bandchain/v1/node/query_pb_service.js b/proto/bandchain/v1/node/query_pb_service.js index e649e30..61edf9a 100644 --- a/proto/bandchain/v1/node/query_pb_service.js +++ b/proto/bandchain/v1/node/query_pb_service.js @@ -1,43 +1,47 @@ // package: bandchain.v1.node // file: bandchain/v1/node/query.proto -var bandchain_v1_node_query_pb = require("../../../bandchain/v1/node/query_pb"); -var grpc = require("@improbable-eng/grpc-web").grpc; +var bandchain_v1_node_query_pb = require('../../../bandchain/v1/node/query_pb') +var grpc = require('@improbable-eng/grpc-web').grpc var Service = (function () { function Service() {} - Service.serviceName = "bandchain.v1.node.Service"; - return Service; -}()); + Service.serviceName = 'bandchain.v1.node.Service' + return Service +})() Service.ChainID = { - methodName: "ChainID", + methodName: 'ChainID', service: Service, requestStream: false, responseStream: false, - requestType: bandchain_v1_node_query_pb.QueryChainIDRequest, - responseType: bandchain_v1_node_query_pb.QueryChainIDResponse -}; + requestType: bandchain_v1_node_query_pb.ChainIDRequest, + responseType: bandchain_v1_node_query_pb.ChainIDResponse, +} Service.EVMValidators = { - methodName: "EVMValidators", + methodName: 'EVMValidators', service: Service, requestStream: false, responseStream: false, - requestType: bandchain_v1_node_query_pb.QueryEVMValidatorsRequest, - responseType: bandchain_v1_node_query_pb.QueryEVMValidatorsResponse -}; + requestType: bandchain_v1_node_query_pb.EVMValidatorsRequest, + responseType: bandchain_v1_node_query_pb.EVMValidatorsResponse, +} -exports.Service = Service; +exports.Service = Service function ServiceClient(serviceHost, options) { - this.serviceHost = serviceHost; - this.options = options || {}; + this.serviceHost = serviceHost + this.options = options || {} } -ServiceClient.prototype.chainID = function chainID(requestMessage, metadata, callback) { +ServiceClient.prototype.chainID = function chainID( + requestMessage, + metadata, + callback, +) { if (arguments.length === 2) { - callback = arguments[1]; + callback = arguments[1] } var client = grpc.unary(Service.ChainID, { request: requestMessage, @@ -48,27 +52,31 @@ ServiceClient.prototype.chainID = function chainID(requestMessage, metadata, cal onEnd: function (response) { if (callback) { if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); + var err = new Error(response.statusMessage) + err.code = response.status + err.metadata = response.trailers + callback(err, null) } else { - callback(null, response.message); + callback(null, response.message) } } - } - }); + }, + }) return { cancel: function () { - callback = null; - client.close(); - } - }; -}; + callback = null + client.close() + }, + } +} -ServiceClient.prototype.eVMValidators = function eVMValidators(requestMessage, metadata, callback) { +ServiceClient.prototype.eVMValidators = function eVMValidators( + requestMessage, + metadata, + callback, +) { if (arguments.length === 2) { - callback = arguments[1]; + callback = arguments[1] } var client = grpc.unary(Service.EVMValidators, { request: requestMessage, @@ -79,23 +87,22 @@ ServiceClient.prototype.eVMValidators = function eVMValidators(requestMessage, m onEnd: function (response) { if (callback) { if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); + var err = new Error(response.statusMessage) + err.code = response.status + err.metadata = response.trailers + callback(err, null) } else { - callback(null, response.message); + callback(null, response.message) } } - } - }); + }, + }) return { cancel: function () { - callback = null; - client.close(); - } - }; -}; - -exports.ServiceClient = ServiceClient; + callback = null + client.close() + }, + } +} +exports.ServiceClient = ServiceClient diff --git a/proto/bandchain/v1/oracle/proof_pb.d.ts b/proto/bandchain/v1/oracle/proof_pb.d.ts index b6a3dcb..2c3264b 100644 --- a/proto/bandchain/v1/oracle/proof_pb.d.ts +++ b/proto/bandchain/v1/oracle/proof_pb.d.ts @@ -1,644 +1,859 @@ // package: bandchain.v1.oracle // file: bandchain/v1/oracle/proof.proto -import * as jspb from "google-protobuf"; -import * as google_api_annotations_pb from "../../../google/api/annotations_pb"; -import * as gogoproto_gogo_pb from "../../../gogoproto/gogo_pb"; -import * as oracle_v1_oracle_pb from "../../../oracle/v1/oracle_pb"; - -export class QueryProofRequest extends jspb.Message { - getRequestId(): number; - setRequestId(value: number): void; - - getHeight(): number; - setHeight(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QueryProofRequest.AsObject; - static toObject(includeInstance: boolean, msg: QueryProofRequest): QueryProofRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QueryProofRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QueryProofRequest; - static deserializeBinaryFromReader(message: QueryProofRequest, reader: jspb.BinaryReader): QueryProofRequest; -} - -export namespace QueryProofRequest { - export type AsObject = { - requestId: number, - height: number, +import * as jspb from 'google-protobuf' +import * as google_api_annotations_pb from '../../../google/api/annotations_pb' +import * as gogoproto_gogo_pb from '../../../gogoproto/gogo_pb' +import * as oracle_v1_oracle_pb from '../../../oracle/v1/oracle_pb' + +export class ProofRequest extends jspb.Message { + getRequestId(): number + setRequestId(value: number): void + + getHeight(): number + setHeight(value: number): void + + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): ProofRequest.AsObject + static toObject( + includeInstance: boolean, + msg: ProofRequest, + ): ProofRequest.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo } -} - -export class QueryProofResponse extends jspb.Message { - getHeight(): number; - setHeight(value: number): void; - - hasResult(): boolean; - clearResult(): void; - getResult(): SingleProofResponse | undefined; - setResult(value?: SingleProofResponse): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QueryProofResponse.AsObject; - static toObject(includeInstance: boolean, msg: QueryProofResponse): QueryProofResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QueryProofResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QueryProofResponse; - static deserializeBinaryFromReader(message: QueryProofResponse, reader: jspb.BinaryReader): QueryProofResponse; -} - -export namespace QueryProofResponse { + static serializeBinaryToWriter( + message: ProofRequest, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): ProofRequest + static deserializeBinaryFromReader( + message: ProofRequest, + reader: jspb.BinaryReader, + ): ProofRequest +} + +export namespace ProofRequest { export type AsObject = { - height: number, - result?: SingleProofResponse.AsObject, + requestId: number + height: number } } -export class QueryMultiProofRequest extends jspb.Message { - clearRequestIdsList(): void; - getRequestIdsList(): Array; - setRequestIdsList(value: Array): void; - addRequestIds(value: number, index?: number): number; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QueryMultiProofRequest.AsObject; - static toObject(includeInstance: boolean, msg: QueryMultiProofRequest): QueryMultiProofRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QueryMultiProofRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QueryMultiProofRequest; - static deserializeBinaryFromReader(message: QueryMultiProofRequest, reader: jspb.BinaryReader): QueryMultiProofRequest; -} - -export namespace QueryMultiProofRequest { +export class ProofResponse extends jspb.Message { + getHeight(): number + setHeight(value: number): void + + hasResult(): boolean + clearResult(): void + getResult(): SingleProofResult | undefined + setResult(value?: SingleProofResult): void + + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): ProofResponse.AsObject + static toObject( + includeInstance: boolean, + msg: ProofResponse, + ): ProofResponse.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: ProofResponse, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): ProofResponse + static deserializeBinaryFromReader( + message: ProofResponse, + reader: jspb.BinaryReader, + ): ProofResponse +} + +export namespace ProofResponse { export type AsObject = { - requestIdsList: Array, + height: number + result?: SingleProofResult.AsObject } } -export class QueryMultiProofResponse extends jspb.Message { - getHeight(): number; - setHeight(value: number): void; - - hasResult(): boolean; - clearResult(): void; - getResult(): MultiProofResponse | undefined; - setResult(value?: MultiProofResponse): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QueryMultiProofResponse.AsObject; - static toObject(includeInstance: boolean, msg: QueryMultiProofResponse): QueryMultiProofResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QueryMultiProofResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QueryMultiProofResponse; - static deserializeBinaryFromReader(message: QueryMultiProofResponse, reader: jspb.BinaryReader): QueryMultiProofResponse; -} - -export namespace QueryMultiProofResponse { +export class MultiProofRequest extends jspb.Message { + clearRequestIdsList(): void + getRequestIdsList(): Array + setRequestIdsList(value: Array): void + addRequestIds(value: number, index?: number): number + + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): MultiProofRequest.AsObject + static toObject( + includeInstance: boolean, + msg: MultiProofRequest, + ): MultiProofRequest.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: MultiProofRequest, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): MultiProofRequest + static deserializeBinaryFromReader( + message: MultiProofRequest, + reader: jspb.BinaryReader, + ): MultiProofRequest +} + +export namespace MultiProofRequest { export type AsObject = { - height: number, - result?: MultiProofResponse.AsObject, + requestIdsList: Array } } -export class QueryRequestCountProofRequest extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QueryRequestCountProofRequest.AsObject; - static toObject(includeInstance: boolean, msg: QueryRequestCountProofRequest): QueryRequestCountProofRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QueryRequestCountProofRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QueryRequestCountProofRequest; - static deserializeBinaryFromReader(message: QueryRequestCountProofRequest, reader: jspb.BinaryReader): QueryRequestCountProofRequest; +export class MultiProofResponse extends jspb.Message { + getHeight(): number + setHeight(value: number): void + + hasResult(): boolean + clearResult(): void + getResult(): MultiProofResult | undefined + setResult(value?: MultiProofResult): void + + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): MultiProofResponse.AsObject + static toObject( + includeInstance: boolean, + msg: MultiProofResponse, + ): MultiProofResponse.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: MultiProofResponse, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): MultiProofResponse + static deserializeBinaryFromReader( + message: MultiProofResponse, + reader: jspb.BinaryReader, + ): MultiProofResponse } -export namespace QueryRequestCountProofRequest { +export namespace MultiProofResponse { export type AsObject = { + height: number + result?: MultiProofResult.AsObject } } -export class QueryRequestCountProofResponse extends jspb.Message { - getHeight(): number; - setHeight(value: number): void; - - hasResult(): boolean; - clearResult(): void; - getResult(): CountProofResponse | undefined; - setResult(value?: CountProofResponse): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QueryRequestCountProofResponse.AsObject; - static toObject(includeInstance: boolean, msg: QueryRequestCountProofResponse): QueryRequestCountProofResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QueryRequestCountProofResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QueryRequestCountProofResponse; - static deserializeBinaryFromReader(message: QueryRequestCountProofResponse, reader: jspb.BinaryReader): QueryRequestCountProofResponse; -} - -export namespace QueryRequestCountProofResponse { +export class RequestCountProofRequest extends jspb.Message { + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): RequestCountProofRequest.AsObject + static toObject( + includeInstance: boolean, + msg: RequestCountProofRequest, + ): RequestCountProofRequest.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: RequestCountProofRequest, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): RequestCountProofRequest + static deserializeBinaryFromReader( + message: RequestCountProofRequest, + reader: jspb.BinaryReader, + ): RequestCountProofRequest +} + +export namespace RequestCountProofRequest { + export type AsObject = {} +} + +export class RequestCountProofResponse extends jspb.Message { + getHeight(): number + setHeight(value: number): void + + hasResult(): boolean + clearResult(): void + getResult(): CountProofResult | undefined + setResult(value?: CountProofResult): void + + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): RequestCountProofResponse.AsObject + static toObject( + includeInstance: boolean, + msg: RequestCountProofResponse, + ): RequestCountProofResponse.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: RequestCountProofResponse, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): RequestCountProofResponse + static deserializeBinaryFromReader( + message: RequestCountProofResponse, + reader: jspb.BinaryReader, + ): RequestCountProofResponse +} + +export namespace RequestCountProofResponse { export type AsObject = { - height: number, - result?: CountProofResponse.AsObject, + height: number + result?: CountProofResult.AsObject } } -export class SingleProofResponse extends jspb.Message { - hasProof(): boolean; - clearProof(): void; - getProof(): SingleProof | undefined; - setProof(value?: SingleProof): void; - - getEvmProofBytes(): Uint8Array | string; - getEvmProofBytes_asU8(): Uint8Array; - getEvmProofBytes_asB64(): string; - setEvmProofBytes(value: Uint8Array | string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SingleProofResponse.AsObject; - static toObject(includeInstance: boolean, msg: SingleProofResponse): SingleProofResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SingleProofResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SingleProofResponse; - static deserializeBinaryFromReader(message: SingleProofResponse, reader: jspb.BinaryReader): SingleProofResponse; -} - -export namespace SingleProofResponse { +export class SingleProofResult extends jspb.Message { + hasProof(): boolean + clearProof(): void + getProof(): SingleProof | undefined + setProof(value?: SingleProof): void + + getEvmProofBytes(): Uint8Array | string + getEvmProofBytes_asU8(): Uint8Array + getEvmProofBytes_asB64(): string + setEvmProofBytes(value: Uint8Array | string): void + + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): SingleProofResult.AsObject + static toObject( + includeInstance: boolean, + msg: SingleProofResult, + ): SingleProofResult.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: SingleProofResult, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): SingleProofResult + static deserializeBinaryFromReader( + message: SingleProofResult, + reader: jspb.BinaryReader, + ): SingleProofResult +} + +export namespace SingleProofResult { export type AsObject = { - proof?: SingleProof.AsObject, - evmProofBytes: Uint8Array | string, + proof?: SingleProof.AsObject + evmProofBytes: Uint8Array | string } } -export class MultiProofResponse extends jspb.Message { - hasProof(): boolean; - clearProof(): void; - getProof(): MultiProof | undefined; - setProof(value?: MultiProof): void; - - getEvmProofBytes(): Uint8Array | string; - getEvmProofBytes_asU8(): Uint8Array; - getEvmProofBytes_asB64(): string; - setEvmProofBytes(value: Uint8Array | string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MultiProofResponse.AsObject; - static toObject(includeInstance: boolean, msg: MultiProofResponse): MultiProofResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MultiProofResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MultiProofResponse; - static deserializeBinaryFromReader(message: MultiProofResponse, reader: jspb.BinaryReader): MultiProofResponse; -} - -export namespace MultiProofResponse { +export class MultiProofResult extends jspb.Message { + hasProof(): boolean + clearProof(): void + getProof(): MultiProof | undefined + setProof(value?: MultiProof): void + + getEvmProofBytes(): Uint8Array | string + getEvmProofBytes_asU8(): Uint8Array + getEvmProofBytes_asB64(): string + setEvmProofBytes(value: Uint8Array | string): void + + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): MultiProofResult.AsObject + static toObject( + includeInstance: boolean, + msg: MultiProofResult, + ): MultiProofResult.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: MultiProofResult, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): MultiProofResult + static deserializeBinaryFromReader( + message: MultiProofResult, + reader: jspb.BinaryReader, + ): MultiProofResult +} + +export namespace MultiProofResult { export type AsObject = { - proof?: MultiProof.AsObject, - evmProofBytes: Uint8Array | string, + proof?: MultiProof.AsObject + evmProofBytes: Uint8Array | string } } -export class CountProofResponse extends jspb.Message { - hasProof(): boolean; - clearProof(): void; - getProof(): CountProof | undefined; - setProof(value?: CountProof): void; - - getEvmProofBytes(): Uint8Array | string; - getEvmProofBytes_asU8(): Uint8Array; - getEvmProofBytes_asB64(): string; - setEvmProofBytes(value: Uint8Array | string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CountProofResponse.AsObject; - static toObject(includeInstance: boolean, msg: CountProofResponse): CountProofResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: CountProofResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CountProofResponse; - static deserializeBinaryFromReader(message: CountProofResponse, reader: jspb.BinaryReader): CountProofResponse; -} - -export namespace CountProofResponse { +export class CountProofResult extends jspb.Message { + hasProof(): boolean + clearProof(): void + getProof(): CountProof | undefined + setProof(value?: CountProof): void + + getEvmProofBytes(): Uint8Array | string + getEvmProofBytes_asU8(): Uint8Array + getEvmProofBytes_asB64(): string + setEvmProofBytes(value: Uint8Array | string): void + + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): CountProofResult.AsObject + static toObject( + includeInstance: boolean, + msg: CountProofResult, + ): CountProofResult.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: CountProofResult, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): CountProofResult + static deserializeBinaryFromReader( + message: CountProofResult, + reader: jspb.BinaryReader, + ): CountProofResult +} + +export namespace CountProofResult { export type AsObject = { - proof?: CountProof.AsObject, - evmProofBytes: Uint8Array | string, + proof?: CountProof.AsObject + evmProofBytes: Uint8Array | string } } export class SingleProof extends jspb.Message { - getBlockHeight(): number; - setBlockHeight(value: number): void; - - hasOracleDataProof(): boolean; - clearOracleDataProof(): void; - getOracleDataProof(): OracleDataProof | undefined; - setOracleDataProof(value?: OracleDataProof): void; - - hasBlockRelayProof(): boolean; - clearBlockRelayProof(): void; - getBlockRelayProof(): BlockRelayProof | undefined; - setBlockRelayProof(value?: BlockRelayProof): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SingleProof.AsObject; - static toObject(includeInstance: boolean, msg: SingleProof): SingleProof.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SingleProof, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SingleProof; - static deserializeBinaryFromReader(message: SingleProof, reader: jspb.BinaryReader): SingleProof; + getBlockHeight(): number + setBlockHeight(value: number): void + + hasOracleDataProof(): boolean + clearOracleDataProof(): void + getOracleDataProof(): OracleDataProof | undefined + setOracleDataProof(value?: OracleDataProof): void + + hasBlockRelayProof(): boolean + clearBlockRelayProof(): void + getBlockRelayProof(): BlockRelayProof | undefined + setBlockRelayProof(value?: BlockRelayProof): void + + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): SingleProof.AsObject + static toObject( + includeInstance: boolean, + msg: SingleProof, + ): SingleProof.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: SingleProof, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): SingleProof + static deserializeBinaryFromReader( + message: SingleProof, + reader: jspb.BinaryReader, + ): SingleProof } export namespace SingleProof { export type AsObject = { - blockHeight: number, - oracleDataProof?: OracleDataProof.AsObject, - blockRelayProof?: BlockRelayProof.AsObject, + blockHeight: number + oracleDataProof?: OracleDataProof.AsObject + blockRelayProof?: BlockRelayProof.AsObject } } export class MultiProof extends jspb.Message { - getBlockHeight(): number; - setBlockHeight(value: number): void; - - clearOracleDataMultiProofList(): void; - getOracleDataMultiProofList(): Array; - setOracleDataMultiProofList(value: Array): void; - addOracleDataMultiProof(value?: OracleDataProof, index?: number): OracleDataProof; - - hasBlockRelayProof(): boolean; - clearBlockRelayProof(): void; - getBlockRelayProof(): BlockRelayProof | undefined; - setBlockRelayProof(value?: BlockRelayProof): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MultiProof.AsObject; - static toObject(includeInstance: boolean, msg: MultiProof): MultiProof.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MultiProof, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MultiProof; - static deserializeBinaryFromReader(message: MultiProof, reader: jspb.BinaryReader): MultiProof; + getBlockHeight(): number + setBlockHeight(value: number): void + + clearOracleDataMultiProofList(): void + getOracleDataMultiProofList(): Array + setOracleDataMultiProofList(value: Array): void + addOracleDataMultiProof( + value?: OracleDataProof, + index?: number, + ): OracleDataProof + + hasBlockRelayProof(): boolean + clearBlockRelayProof(): void + getBlockRelayProof(): BlockRelayProof | undefined + setBlockRelayProof(value?: BlockRelayProof): void + + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): MultiProof.AsObject + static toObject( + includeInstance: boolean, + msg: MultiProof, + ): MultiProof.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: MultiProof, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): MultiProof + static deserializeBinaryFromReader( + message: MultiProof, + reader: jspb.BinaryReader, + ): MultiProof } export namespace MultiProof { export type AsObject = { - blockHeight: number, - oracleDataMultiProofList: Array, - blockRelayProof?: BlockRelayProof.AsObject, + blockHeight: number + oracleDataMultiProofList: Array + blockRelayProof?: BlockRelayProof.AsObject } } export class CountProof extends jspb.Message { - getBlockHeight(): number; - setBlockHeight(value: number): void; - - hasCountProof(): boolean; - clearCountProof(): void; - getCountProof(): RequestsCountProof | undefined; - setCountProof(value?: RequestsCountProof): void; - - hasBlockRelayProof(): boolean; - clearBlockRelayProof(): void; - getBlockRelayProof(): BlockRelayProof | undefined; - setBlockRelayProof(value?: BlockRelayProof): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CountProof.AsObject; - static toObject(includeInstance: boolean, msg: CountProof): CountProof.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: CountProof, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CountProof; - static deserializeBinaryFromReader(message: CountProof, reader: jspb.BinaryReader): CountProof; + getBlockHeight(): number + setBlockHeight(value: number): void + + hasCountProof(): boolean + clearCountProof(): void + getCountProof(): RequestsCountProof | undefined + setCountProof(value?: RequestsCountProof): void + + hasBlockRelayProof(): boolean + clearBlockRelayProof(): void + getBlockRelayProof(): BlockRelayProof | undefined + setBlockRelayProof(value?: BlockRelayProof): void + + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): CountProof.AsObject + static toObject( + includeInstance: boolean, + msg: CountProof, + ): CountProof.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: CountProof, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): CountProof + static deserializeBinaryFromReader( + message: CountProof, + reader: jspb.BinaryReader, + ): CountProof } export namespace CountProof { export type AsObject = { - blockHeight: number, - countProof?: RequestsCountProof.AsObject, - blockRelayProof?: BlockRelayProof.AsObject, + blockHeight: number + countProof?: RequestsCountProof.AsObject + blockRelayProof?: BlockRelayProof.AsObject } } export class OracleDataProof extends jspb.Message { - hasResult(): boolean; - clearResult(): void; - getResult(): oracle_v1_oracle_pb.Result | undefined; - setResult(value?: oracle_v1_oracle_pb.Result): void; - - getVersion(): number; - setVersion(value: number): void; - - clearMerklePathsList(): void; - getMerklePathsList(): Array; - setMerklePathsList(value: Array): void; - addMerklePaths(value?: IAVLMerklePath, index?: number): IAVLMerklePath; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OracleDataProof.AsObject; - static toObject(includeInstance: boolean, msg: OracleDataProof): OracleDataProof.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: OracleDataProof, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OracleDataProof; - static deserializeBinaryFromReader(message: OracleDataProof, reader: jspb.BinaryReader): OracleDataProof; + hasResult(): boolean + clearResult(): void + getResult(): oracle_v1_oracle_pb.Result | undefined + setResult(value?: oracle_v1_oracle_pb.Result): void + + getVersion(): number + setVersion(value: number): void + + clearMerklePathsList(): void + getMerklePathsList(): Array + setMerklePathsList(value: Array): void + addMerklePaths(value?: IAVLMerklePath, index?: number): IAVLMerklePath + + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): OracleDataProof.AsObject + static toObject( + includeInstance: boolean, + msg: OracleDataProof, + ): OracleDataProof.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: OracleDataProof, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): OracleDataProof + static deserializeBinaryFromReader( + message: OracleDataProof, + reader: jspb.BinaryReader, + ): OracleDataProof } export namespace OracleDataProof { export type AsObject = { - result?: oracle_v1_oracle_pb.Result.AsObject, - version: number, - merklePathsList: Array, + result?: oracle_v1_oracle_pb.Result.AsObject + version: number + merklePathsList: Array } } export class IAVLMerklePath extends jspb.Message { - getIsDataOnRight(): boolean; - setIsDataOnRight(value: boolean): void; - - getSubtreeHeight(): number; - setSubtreeHeight(value: number): void; - - getSubtreeSize(): number; - setSubtreeSize(value: number): void; - - getSubtreeVersion(): number; - setSubtreeVersion(value: number): void; - - getSiblingHash(): Uint8Array | string; - getSiblingHash_asU8(): Uint8Array; - getSiblingHash_asB64(): string; - setSiblingHash(value: Uint8Array | string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): IAVLMerklePath.AsObject; - static toObject(includeInstance: boolean, msg: IAVLMerklePath): IAVLMerklePath.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: IAVLMerklePath, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): IAVLMerklePath; - static deserializeBinaryFromReader(message: IAVLMerklePath, reader: jspb.BinaryReader): IAVLMerklePath; + getIsDataOnRight(): boolean + setIsDataOnRight(value: boolean): void + + getSubtreeHeight(): number + setSubtreeHeight(value: number): void + + getSubtreeSize(): number + setSubtreeSize(value: number): void + + getSubtreeVersion(): number + setSubtreeVersion(value: number): void + + getSiblingHash(): Uint8Array | string + getSiblingHash_asU8(): Uint8Array + getSiblingHash_asB64(): string + setSiblingHash(value: Uint8Array | string): void + + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): IAVLMerklePath.AsObject + static toObject( + includeInstance: boolean, + msg: IAVLMerklePath, + ): IAVLMerklePath.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: IAVLMerklePath, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): IAVLMerklePath + static deserializeBinaryFromReader( + message: IAVLMerklePath, + reader: jspb.BinaryReader, + ): IAVLMerklePath } export namespace IAVLMerklePath { export type AsObject = { - isDataOnRight: boolean, - subtreeHeight: number, - subtreeSize: number, - subtreeVersion: number, - siblingHash: Uint8Array | string, + isDataOnRight: boolean + subtreeHeight: number + subtreeSize: number + subtreeVersion: number + siblingHash: Uint8Array | string } } export class BlockRelayProof extends jspb.Message { - hasMultiStoreProof(): boolean; - clearMultiStoreProof(): void; - getMultiStoreProof(): MultiStoreProof | undefined; - setMultiStoreProof(value?: MultiStoreProof): void; - - hasBlockHeaderMerkleParts(): boolean; - clearBlockHeaderMerkleParts(): void; - getBlockHeaderMerkleParts(): BlockHeaderMerkleParts | undefined; - setBlockHeaderMerkleParts(value?: BlockHeaderMerkleParts): void; - - hasCommonEncodedVotePart(): boolean; - clearCommonEncodedVotePart(): void; - getCommonEncodedVotePart(): CommonEncodedVotePart | undefined; - setCommonEncodedVotePart(value?: CommonEncodedVotePart): void; - - clearSignaturesList(): void; - getSignaturesList(): Array; - setSignaturesList(value: Array): void; - addSignatures(value?: TMSignature, index?: number): TMSignature; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): BlockRelayProof.AsObject; - static toObject(includeInstance: boolean, msg: BlockRelayProof): BlockRelayProof.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: BlockRelayProof, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): BlockRelayProof; - static deserializeBinaryFromReader(message: BlockRelayProof, reader: jspb.BinaryReader): BlockRelayProof; + hasMultiStoreProof(): boolean + clearMultiStoreProof(): void + getMultiStoreProof(): MultiStoreProof | undefined + setMultiStoreProof(value?: MultiStoreProof): void + + hasBlockHeaderMerkleParts(): boolean + clearBlockHeaderMerkleParts(): void + getBlockHeaderMerkleParts(): BlockHeaderMerkleParts | undefined + setBlockHeaderMerkleParts(value?: BlockHeaderMerkleParts): void + + hasCommonEncodedVotePart(): boolean + clearCommonEncodedVotePart(): void + getCommonEncodedVotePart(): CommonEncodedVotePart | undefined + setCommonEncodedVotePart(value?: CommonEncodedVotePart): void + + clearSignaturesList(): void + getSignaturesList(): Array + setSignaturesList(value: Array): void + addSignatures(value?: TMSignature, index?: number): TMSignature + + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): BlockRelayProof.AsObject + static toObject( + includeInstance: boolean, + msg: BlockRelayProof, + ): BlockRelayProof.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: BlockRelayProof, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): BlockRelayProof + static deserializeBinaryFromReader( + message: BlockRelayProof, + reader: jspb.BinaryReader, + ): BlockRelayProof } export namespace BlockRelayProof { export type AsObject = { - multiStoreProof?: MultiStoreProof.AsObject, - blockHeaderMerkleParts?: BlockHeaderMerkleParts.AsObject, - commonEncodedVotePart?: CommonEncodedVotePart.AsObject, - signaturesList: Array, + multiStoreProof?: MultiStoreProof.AsObject + blockHeaderMerkleParts?: BlockHeaderMerkleParts.AsObject + commonEncodedVotePart?: CommonEncodedVotePart.AsObject + signaturesList: Array } } export class MultiStoreProof extends jspb.Message { - getOracleIavlStateHash(): Uint8Array | string; - getOracleIavlStateHash_asU8(): Uint8Array; - getOracleIavlStateHash_asB64(): string; - setOracleIavlStateHash(value: Uint8Array | string): void; - - getMintStoreMerkleHash(): Uint8Array | string; - getMintStoreMerkleHash_asU8(): Uint8Array; - getMintStoreMerkleHash_asB64(): string; - setMintStoreMerkleHash(value: Uint8Array | string): void; - - getParamsToSlashingStoresMerkleHash(): Uint8Array | string; - getParamsToSlashingStoresMerkleHash_asU8(): Uint8Array; - getParamsToSlashingStoresMerkleHash_asB64(): string; - setParamsToSlashingStoresMerkleHash(value: Uint8Array | string): void; - - getGovToIcahostStoresMerkleHash(): Uint8Array | string; - getGovToIcahostStoresMerkleHash_asU8(): Uint8Array; - getGovToIcahostStoresMerkleHash_asB64(): string; - setGovToIcahostStoresMerkleHash(value: Uint8Array | string): void; - - getAuthToFeegrantStoresMerkleHash(): Uint8Array | string; - getAuthToFeegrantStoresMerkleHash_asU8(): Uint8Array; - getAuthToFeegrantStoresMerkleHash_asB64(): string; - setAuthToFeegrantStoresMerkleHash(value: Uint8Array | string): void; - - getStakingToUpgradeStoresMerkleHash(): Uint8Array | string; - getStakingToUpgradeStoresMerkleHash_asU8(): Uint8Array; - getStakingToUpgradeStoresMerkleHash_asB64(): string; - setStakingToUpgradeStoresMerkleHash(value: Uint8Array | string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MultiStoreProof.AsObject; - static toObject(includeInstance: boolean, msg: MultiStoreProof): MultiStoreProof.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MultiStoreProof, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MultiStoreProof; - static deserializeBinaryFromReader(message: MultiStoreProof, reader: jspb.BinaryReader): MultiStoreProof; + getOracleIavlStateHash(): Uint8Array | string + getOracleIavlStateHash_asU8(): Uint8Array + getOracleIavlStateHash_asB64(): string + setOracleIavlStateHash(value: Uint8Array | string): void + + getParamsStoreMerkleHash(): Uint8Array | string + getParamsStoreMerkleHash_asU8(): Uint8Array + getParamsStoreMerkleHash_asB64(): string + setParamsStoreMerkleHash(value: Uint8Array | string): void + + getSlashingToStakingStoresMerkleHash(): Uint8Array | string + getSlashingToStakingStoresMerkleHash_asU8(): Uint8Array + getSlashingToStakingStoresMerkleHash_asB64(): string + setSlashingToStakingStoresMerkleHash(value: Uint8Array | string): void + + getTransferToUpgradeStoresMerkleHash(): Uint8Array | string + getTransferToUpgradeStoresMerkleHash_asU8(): Uint8Array + getTransferToUpgradeStoresMerkleHash_asB64(): string + setTransferToUpgradeStoresMerkleHash(value: Uint8Array | string): void + + getAuthToMintStoresMerkleHash(): Uint8Array | string + getAuthToMintStoresMerkleHash_asU8(): Uint8Array + getAuthToMintStoresMerkleHash_asB64(): string + setAuthToMintStoresMerkleHash(value: Uint8Array | string): void + + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): MultiStoreProof.AsObject + static toObject( + includeInstance: boolean, + msg: MultiStoreProof, + ): MultiStoreProof.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: MultiStoreProof, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): MultiStoreProof + static deserializeBinaryFromReader( + message: MultiStoreProof, + reader: jspb.BinaryReader, + ): MultiStoreProof } export namespace MultiStoreProof { export type AsObject = { - oracleIavlStateHash: Uint8Array | string, - mintStoreMerkleHash: Uint8Array | string, - paramsToSlashingStoresMerkleHash: Uint8Array | string, - govToIcahostStoresMerkleHash: Uint8Array | string, - authToFeegrantStoresMerkleHash: Uint8Array | string, - stakingToUpgradeStoresMerkleHash: Uint8Array | string, + oracleIavlStateHash: Uint8Array | string + paramsStoreMerkleHash: Uint8Array | string + slashingToStakingStoresMerkleHash: Uint8Array | string + transferToUpgradeStoresMerkleHash: Uint8Array | string + authToMintStoresMerkleHash: Uint8Array | string } } export class BlockHeaderMerkleParts extends jspb.Message { - getVersionAndChainIdHash(): Uint8Array | string; - getVersionAndChainIdHash_asU8(): Uint8Array; - getVersionAndChainIdHash_asB64(): string; - setVersionAndChainIdHash(value: Uint8Array | string): void; - - getHeight(): number; - setHeight(value: number): void; - - getTimeSecond(): number; - setTimeSecond(value: number): void; - - getTimeNanoSecond(): number; - setTimeNanoSecond(value: number): void; - - getLastBlockIdAndOther(): Uint8Array | string; - getLastBlockIdAndOther_asU8(): Uint8Array; - getLastBlockIdAndOther_asB64(): string; - setLastBlockIdAndOther(value: Uint8Array | string): void; - - getNextValidatorHashAndConsensusHash(): Uint8Array | string; - getNextValidatorHashAndConsensusHash_asU8(): Uint8Array; - getNextValidatorHashAndConsensusHash_asB64(): string; - setNextValidatorHashAndConsensusHash(value: Uint8Array | string): void; - - getLastResultsHash(): Uint8Array | string; - getLastResultsHash_asU8(): Uint8Array; - getLastResultsHash_asB64(): string; - setLastResultsHash(value: Uint8Array | string): void; - - getEvidenceAndProposerHash(): Uint8Array | string; - getEvidenceAndProposerHash_asU8(): Uint8Array; - getEvidenceAndProposerHash_asB64(): string; - setEvidenceAndProposerHash(value: Uint8Array | string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): BlockHeaderMerkleParts.AsObject; - static toObject(includeInstance: boolean, msg: BlockHeaderMerkleParts): BlockHeaderMerkleParts.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: BlockHeaderMerkleParts, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): BlockHeaderMerkleParts; - static deserializeBinaryFromReader(message: BlockHeaderMerkleParts, reader: jspb.BinaryReader): BlockHeaderMerkleParts; + getVersionAndChainIdHash(): Uint8Array | string + getVersionAndChainIdHash_asU8(): Uint8Array + getVersionAndChainIdHash_asB64(): string + setVersionAndChainIdHash(value: Uint8Array | string): void + + getHeight(): number + setHeight(value: number): void + + getTimeSecond(): number + setTimeSecond(value: number): void + + getTimeNanoSecond(): number + setTimeNanoSecond(value: number): void + + getLastBlockIdAndOther(): Uint8Array | string + getLastBlockIdAndOther_asU8(): Uint8Array + getLastBlockIdAndOther_asB64(): string + setLastBlockIdAndOther(value: Uint8Array | string): void + + getNextValidatorHashAndConsensusHash(): Uint8Array | string + getNextValidatorHashAndConsensusHash_asU8(): Uint8Array + getNextValidatorHashAndConsensusHash_asB64(): string + setNextValidatorHashAndConsensusHash(value: Uint8Array | string): void + + getLastResultsHash(): Uint8Array | string + getLastResultsHash_asU8(): Uint8Array + getLastResultsHash_asB64(): string + setLastResultsHash(value: Uint8Array | string): void + + getEvidenceAndProposerHash(): Uint8Array | string + getEvidenceAndProposerHash_asU8(): Uint8Array + getEvidenceAndProposerHash_asB64(): string + setEvidenceAndProposerHash(value: Uint8Array | string): void + + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): BlockHeaderMerkleParts.AsObject + static toObject( + includeInstance: boolean, + msg: BlockHeaderMerkleParts, + ): BlockHeaderMerkleParts.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: BlockHeaderMerkleParts, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): BlockHeaderMerkleParts + static deserializeBinaryFromReader( + message: BlockHeaderMerkleParts, + reader: jspb.BinaryReader, + ): BlockHeaderMerkleParts } export namespace BlockHeaderMerkleParts { export type AsObject = { - versionAndChainIdHash: Uint8Array | string, - height: number, - timeSecond: number, - timeNanoSecond: number, - lastBlockIdAndOther: Uint8Array | string, - nextValidatorHashAndConsensusHash: Uint8Array | string, - lastResultsHash: Uint8Array | string, - evidenceAndProposerHash: Uint8Array | string, + versionAndChainIdHash: Uint8Array | string + height: number + timeSecond: number + timeNanoSecond: number + lastBlockIdAndOther: Uint8Array | string + nextValidatorHashAndConsensusHash: Uint8Array | string + lastResultsHash: Uint8Array | string + evidenceAndProposerHash: Uint8Array | string } } export class CommonEncodedVotePart extends jspb.Message { - getSignedDataPrefix(): Uint8Array | string; - getSignedDataPrefix_asU8(): Uint8Array; - getSignedDataPrefix_asB64(): string; - setSignedDataPrefix(value: Uint8Array | string): void; - - getSignedDataSuffix(): Uint8Array | string; - getSignedDataSuffix_asU8(): Uint8Array; - getSignedDataSuffix_asB64(): string; - setSignedDataSuffix(value: Uint8Array | string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CommonEncodedVotePart.AsObject; - static toObject(includeInstance: boolean, msg: CommonEncodedVotePart): CommonEncodedVotePart.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: CommonEncodedVotePart, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CommonEncodedVotePart; - static deserializeBinaryFromReader(message: CommonEncodedVotePart, reader: jspb.BinaryReader): CommonEncodedVotePart; + getSignedDataPrefix(): Uint8Array | string + getSignedDataPrefix_asU8(): Uint8Array + getSignedDataPrefix_asB64(): string + setSignedDataPrefix(value: Uint8Array | string): void + + getSignedDataSuffix(): Uint8Array | string + getSignedDataSuffix_asU8(): Uint8Array + getSignedDataSuffix_asB64(): string + setSignedDataSuffix(value: Uint8Array | string): void + + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): CommonEncodedVotePart.AsObject + static toObject( + includeInstance: boolean, + msg: CommonEncodedVotePart, + ): CommonEncodedVotePart.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: CommonEncodedVotePart, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): CommonEncodedVotePart + static deserializeBinaryFromReader( + message: CommonEncodedVotePart, + reader: jspb.BinaryReader, + ): CommonEncodedVotePart } export namespace CommonEncodedVotePart { export type AsObject = { - signedDataPrefix: Uint8Array | string, - signedDataSuffix: Uint8Array | string, + signedDataPrefix: Uint8Array | string + signedDataSuffix: Uint8Array | string } } export class TMSignature extends jspb.Message { - getR(): Uint8Array | string; - getR_asU8(): Uint8Array; - getR_asB64(): string; - setR(value: Uint8Array | string): void; - - getS(): Uint8Array | string; - getS_asU8(): Uint8Array; - getS_asB64(): string; - setS(value: Uint8Array | string): void; - - getV(): number; - setV(value: number): void; - - getEncodedTimestamp(): Uint8Array | string; - getEncodedTimestamp_asU8(): Uint8Array; - getEncodedTimestamp_asB64(): string; - setEncodedTimestamp(value: Uint8Array | string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TMSignature.AsObject; - static toObject(includeInstance: boolean, msg: TMSignature): TMSignature.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: TMSignature, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): TMSignature; - static deserializeBinaryFromReader(message: TMSignature, reader: jspb.BinaryReader): TMSignature; + getR(): Uint8Array | string + getR_asU8(): Uint8Array + getR_asB64(): string + setR(value: Uint8Array | string): void + + getS(): Uint8Array | string + getS_asU8(): Uint8Array + getS_asB64(): string + setS(value: Uint8Array | string): void + + getV(): number + setV(value: number): void + + getEncodedTimestamp(): Uint8Array | string + getEncodedTimestamp_asU8(): Uint8Array + getEncodedTimestamp_asB64(): string + setEncodedTimestamp(value: Uint8Array | string): void + + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): TMSignature.AsObject + static toObject( + includeInstance: boolean, + msg: TMSignature, + ): TMSignature.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: TMSignature, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): TMSignature + static deserializeBinaryFromReader( + message: TMSignature, + reader: jspb.BinaryReader, + ): TMSignature } export namespace TMSignature { export type AsObject = { - r: Uint8Array | string, - s: Uint8Array | string, - v: number, - encodedTimestamp: Uint8Array | string, + r: Uint8Array | string + s: Uint8Array | string + v: number + encodedTimestamp: Uint8Array | string } } export class RequestsCountProof extends jspb.Message { - getCount(): number; - setCount(value: number): void; - - getVersion(): number; - setVersion(value: number): void; - - clearMerklePathsList(): void; - getMerklePathsList(): Array; - setMerklePathsList(value: Array): void; - addMerklePaths(value?: IAVLMerklePath, index?: number): IAVLMerklePath; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RequestsCountProof.AsObject; - static toObject(includeInstance: boolean, msg: RequestsCountProof): RequestsCountProof.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: RequestsCountProof, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RequestsCountProof; - static deserializeBinaryFromReader(message: RequestsCountProof, reader: jspb.BinaryReader): RequestsCountProof; + getCount(): number + setCount(value: number): void + + getVersion(): number + setVersion(value: number): void + + clearMerklePathsList(): void + getMerklePathsList(): Array + setMerklePathsList(value: Array): void + addMerklePaths(value?: IAVLMerklePath, index?: number): IAVLMerklePath + + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): RequestsCountProof.AsObject + static toObject( + includeInstance: boolean, + msg: RequestsCountProof, + ): RequestsCountProof.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: RequestsCountProof, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): RequestsCountProof + static deserializeBinaryFromReader( + message: RequestsCountProof, + reader: jspb.BinaryReader, + ): RequestsCountProof } export namespace RequestsCountProof { export type AsObject = { - count: number, - version: number, - merklePathsList: Array, + count: number + version: number + merklePathsList: Array } } - diff --git a/proto/bandchain/v1/oracle/proof_pb.js b/proto/bandchain/v1/oracle/proof_pb.js index 9fccd71..83b67c9 100644 --- a/proto/bandchain/v1/oracle/proof_pb.js +++ b/proto/bandchain/v1/oracle/proof_pb.js @@ -11,36 +11,60 @@ /* eslint-disable */ // @ts-nocheck -var jspb = require('google-protobuf'); -var goog = jspb; -var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); - -var google_api_annotations_pb = require('../../../google/api/annotations_pb.js'); -goog.object.extend(proto, google_api_annotations_pb); -var gogoproto_gogo_pb = require('../../../gogoproto/gogo_pb.js'); -goog.object.extend(proto, gogoproto_gogo_pb); -var oracle_v1_oracle_pb = require('../../../oracle/v1/oracle_pb.js'); -goog.object.extend(proto, oracle_v1_oracle_pb); -goog.exportSymbol('proto.bandchain.v1.oracle.BlockHeaderMerkleParts', null, global); -goog.exportSymbol('proto.bandchain.v1.oracle.BlockRelayProof', null, global); -goog.exportSymbol('proto.bandchain.v1.oracle.CommonEncodedVotePart', null, global); -goog.exportSymbol('proto.bandchain.v1.oracle.CountProof', null, global); -goog.exportSymbol('proto.bandchain.v1.oracle.CountProofResponse', null, global); -goog.exportSymbol('proto.bandchain.v1.oracle.IAVLMerklePath', null, global); -goog.exportSymbol('proto.bandchain.v1.oracle.MultiProof', null, global); -goog.exportSymbol('proto.bandchain.v1.oracle.MultiProofResponse', null, global); -goog.exportSymbol('proto.bandchain.v1.oracle.MultiStoreProof', null, global); -goog.exportSymbol('proto.bandchain.v1.oracle.OracleDataProof', null, global); -goog.exportSymbol('proto.bandchain.v1.oracle.QueryMultiProofRequest', null, global); -goog.exportSymbol('proto.bandchain.v1.oracle.QueryMultiProofResponse', null, global); -goog.exportSymbol('proto.bandchain.v1.oracle.QueryProofRequest', null, global); -goog.exportSymbol('proto.bandchain.v1.oracle.QueryProofResponse', null, global); -goog.exportSymbol('proto.bandchain.v1.oracle.QueryRequestCountProofRequest', null, global); -goog.exportSymbol('proto.bandchain.v1.oracle.QueryRequestCountProofResponse', null, global); -goog.exportSymbol('proto.bandchain.v1.oracle.RequestsCountProof', null, global); -goog.exportSymbol('proto.bandchain.v1.oracle.SingleProof', null, global); -goog.exportSymbol('proto.bandchain.v1.oracle.SingleProofResponse', null, global); -goog.exportSymbol('proto.bandchain.v1.oracle.TMSignature', null, global); +var jspb = require('google-protobuf') +var goog = jspb +var global = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + function () { + return this + }.call(null) || + Function('return this')() + +var google_api_annotations_pb = require('../../../google/api/annotations_pb.js') +goog.object.extend(proto, google_api_annotations_pb) +var gogoproto_gogo_pb = require('../../../gogoproto/gogo_pb.js') +goog.object.extend(proto, gogoproto_gogo_pb) +var oracle_v1_oracle_pb = require('../../../oracle/v1/oracle_pb.js') +goog.object.extend(proto, oracle_v1_oracle_pb) +goog.exportSymbol( + 'proto.bandchain.v1.oracle.BlockHeaderMerkleParts', + null, + global, +) +goog.exportSymbol('proto.bandchain.v1.oracle.BlockRelayProof', null, global) +goog.exportSymbol( + 'proto.bandchain.v1.oracle.CommonEncodedVotePart', + null, + global, +) +goog.exportSymbol('proto.bandchain.v1.oracle.CountProof', null, global) +goog.exportSymbol('proto.bandchain.v1.oracle.CountProofResult', null, global) +goog.exportSymbol('proto.bandchain.v1.oracle.IAVLMerklePath', null, global) +goog.exportSymbol('proto.bandchain.v1.oracle.MultiProof', null, global) +goog.exportSymbol('proto.bandchain.v1.oracle.MultiProofRequest', null, global) +goog.exportSymbol('proto.bandchain.v1.oracle.MultiProofResponse', null, global) +goog.exportSymbol('proto.bandchain.v1.oracle.MultiProofResult', null, global) +goog.exportSymbol('proto.bandchain.v1.oracle.MultiStoreProof', null, global) +goog.exportSymbol('proto.bandchain.v1.oracle.OracleDataProof', null, global) +goog.exportSymbol('proto.bandchain.v1.oracle.ProofRequest', null, global) +goog.exportSymbol('proto.bandchain.v1.oracle.ProofResponse', null, global) +goog.exportSymbol( + 'proto.bandchain.v1.oracle.RequestCountProofRequest', + null, + global, +) +goog.exportSymbol( + 'proto.bandchain.v1.oracle.RequestCountProofResponse', + null, + global, +) +goog.exportSymbol('proto.bandchain.v1.oracle.RequestsCountProof', null, global) +goog.exportSymbol('proto.bandchain.v1.oracle.SingleProof', null, global) +goog.exportSymbol('proto.bandchain.v1.oracle.SingleProofResult', null, global) +goog.exportSymbol('proto.bandchain.v1.oracle.TMSignature', null, global) /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -51,16 +75,17 @@ goog.exportSymbol('proto.bandchain.v1.oracle.TMSignature', null, global); * @extends {jspb.Message} * @constructor */ -proto.bandchain.v1.oracle.QueryProofRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.bandchain.v1.oracle.QueryProofRequest, jspb.Message); +proto.bandchain.v1.oracle.ProofRequest = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null) +} +goog.inherits(proto.bandchain.v1.oracle.ProofRequest, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.bandchain.v1.oracle.QueryProofRequest.displayName = 'proto.bandchain.v1.oracle.QueryProofRequest'; + proto.bandchain.v1.oracle.ProofRequest.displayName = + 'proto.bandchain.v1.oracle.ProofRequest' } /** * Generated by JsPbCodeGenerator. @@ -72,16 +97,17 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.bandchain.v1.oracle.QueryProofResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.bandchain.v1.oracle.QueryProofResponse, jspb.Message); +proto.bandchain.v1.oracle.ProofResponse = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null) +} +goog.inherits(proto.bandchain.v1.oracle.ProofResponse, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.bandchain.v1.oracle.QueryProofResponse.displayName = 'proto.bandchain.v1.oracle.QueryProofResponse'; + proto.bandchain.v1.oracle.ProofResponse.displayName = + 'proto.bandchain.v1.oracle.ProofResponse' } /** * Generated by JsPbCodeGenerator. @@ -93,16 +119,24 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.bandchain.v1.oracle.QueryMultiProofRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.bandchain.v1.oracle.QueryMultiProofRequest.repeatedFields_, null); -}; -goog.inherits(proto.bandchain.v1.oracle.QueryMultiProofRequest, jspb.Message); +proto.bandchain.v1.oracle.MultiProofRequest = function (opt_data) { + jspb.Message.initialize( + this, + opt_data, + 0, + -1, + proto.bandchain.v1.oracle.MultiProofRequest.repeatedFields_, + null, + ) +} +goog.inherits(proto.bandchain.v1.oracle.MultiProofRequest, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.bandchain.v1.oracle.QueryMultiProofRequest.displayName = 'proto.bandchain.v1.oracle.QueryMultiProofRequest'; + proto.bandchain.v1.oracle.MultiProofRequest.displayName = + 'proto.bandchain.v1.oracle.MultiProofRequest' } /** * Generated by JsPbCodeGenerator. @@ -114,16 +148,17 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.bandchain.v1.oracle.QueryMultiProofResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.bandchain.v1.oracle.QueryMultiProofResponse, jspb.Message); +proto.bandchain.v1.oracle.MultiProofResponse = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null) +} +goog.inherits(proto.bandchain.v1.oracle.MultiProofResponse, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.bandchain.v1.oracle.QueryMultiProofResponse.displayName = 'proto.bandchain.v1.oracle.QueryMultiProofResponse'; + proto.bandchain.v1.oracle.MultiProofResponse.displayName = + 'proto.bandchain.v1.oracle.MultiProofResponse' } /** * Generated by JsPbCodeGenerator. @@ -135,16 +170,17 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.bandchain.v1.oracle.QueryRequestCountProofRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.bandchain.v1.oracle.QueryRequestCountProofRequest, jspb.Message); +proto.bandchain.v1.oracle.RequestCountProofRequest = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null) +} +goog.inherits(proto.bandchain.v1.oracle.RequestCountProofRequest, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.bandchain.v1.oracle.QueryRequestCountProofRequest.displayName = 'proto.bandchain.v1.oracle.QueryRequestCountProofRequest'; + proto.bandchain.v1.oracle.RequestCountProofRequest.displayName = + 'proto.bandchain.v1.oracle.RequestCountProofRequest' } /** * Generated by JsPbCodeGenerator. @@ -156,16 +192,17 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.bandchain.v1.oracle.QueryRequestCountProofResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.bandchain.v1.oracle.QueryRequestCountProofResponse, jspb.Message); +proto.bandchain.v1.oracle.RequestCountProofResponse = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null) +} +goog.inherits(proto.bandchain.v1.oracle.RequestCountProofResponse, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.bandchain.v1.oracle.QueryRequestCountProofResponse.displayName = 'proto.bandchain.v1.oracle.QueryRequestCountProofResponse'; + proto.bandchain.v1.oracle.RequestCountProofResponse.displayName = + 'proto.bandchain.v1.oracle.RequestCountProofResponse' } /** * Generated by JsPbCodeGenerator. @@ -177,16 +214,17 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.bandchain.v1.oracle.SingleProofResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.bandchain.v1.oracle.SingleProofResponse, jspb.Message); +proto.bandchain.v1.oracle.SingleProofResult = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null) +} +goog.inherits(proto.bandchain.v1.oracle.SingleProofResult, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.bandchain.v1.oracle.SingleProofResponse.displayName = 'proto.bandchain.v1.oracle.SingleProofResponse'; + proto.bandchain.v1.oracle.SingleProofResult.displayName = + 'proto.bandchain.v1.oracle.SingleProofResult' } /** * Generated by JsPbCodeGenerator. @@ -198,16 +236,17 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.bandchain.v1.oracle.MultiProofResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.bandchain.v1.oracle.MultiProofResponse, jspb.Message); +proto.bandchain.v1.oracle.MultiProofResult = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null) +} +goog.inherits(proto.bandchain.v1.oracle.MultiProofResult, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.bandchain.v1.oracle.MultiProofResponse.displayName = 'proto.bandchain.v1.oracle.MultiProofResponse'; + proto.bandchain.v1.oracle.MultiProofResult.displayName = + 'proto.bandchain.v1.oracle.MultiProofResult' } /** * Generated by JsPbCodeGenerator. @@ -219,16 +258,17 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.bandchain.v1.oracle.CountProofResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.bandchain.v1.oracle.CountProofResponse, jspb.Message); +proto.bandchain.v1.oracle.CountProofResult = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null) +} +goog.inherits(proto.bandchain.v1.oracle.CountProofResult, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.bandchain.v1.oracle.CountProofResponse.displayName = 'proto.bandchain.v1.oracle.CountProofResponse'; + proto.bandchain.v1.oracle.CountProofResult.displayName = + 'proto.bandchain.v1.oracle.CountProofResult' } /** * Generated by JsPbCodeGenerator. @@ -240,16 +280,17 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.bandchain.v1.oracle.SingleProof = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.bandchain.v1.oracle.SingleProof, jspb.Message); +proto.bandchain.v1.oracle.SingleProof = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null) +} +goog.inherits(proto.bandchain.v1.oracle.SingleProof, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.bandchain.v1.oracle.SingleProof.displayName = 'proto.bandchain.v1.oracle.SingleProof'; + proto.bandchain.v1.oracle.SingleProof.displayName = + 'proto.bandchain.v1.oracle.SingleProof' } /** * Generated by JsPbCodeGenerator. @@ -261,16 +302,24 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.bandchain.v1.oracle.MultiProof = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.bandchain.v1.oracle.MultiProof.repeatedFields_, null); -}; -goog.inherits(proto.bandchain.v1.oracle.MultiProof, jspb.Message); +proto.bandchain.v1.oracle.MultiProof = function (opt_data) { + jspb.Message.initialize( + this, + opt_data, + 0, + -1, + proto.bandchain.v1.oracle.MultiProof.repeatedFields_, + null, + ) +} +goog.inherits(proto.bandchain.v1.oracle.MultiProof, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.bandchain.v1.oracle.MultiProof.displayName = 'proto.bandchain.v1.oracle.MultiProof'; + proto.bandchain.v1.oracle.MultiProof.displayName = + 'proto.bandchain.v1.oracle.MultiProof' } /** * Generated by JsPbCodeGenerator. @@ -282,16 +331,17 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.bandchain.v1.oracle.CountProof = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.bandchain.v1.oracle.CountProof, jspb.Message); +proto.bandchain.v1.oracle.CountProof = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null) +} +goog.inherits(proto.bandchain.v1.oracle.CountProof, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.bandchain.v1.oracle.CountProof.displayName = 'proto.bandchain.v1.oracle.CountProof'; + proto.bandchain.v1.oracle.CountProof.displayName = + 'proto.bandchain.v1.oracle.CountProof' } /** * Generated by JsPbCodeGenerator. @@ -303,16 +353,24 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.bandchain.v1.oracle.OracleDataProof = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.bandchain.v1.oracle.OracleDataProof.repeatedFields_, null); -}; -goog.inherits(proto.bandchain.v1.oracle.OracleDataProof, jspb.Message); +proto.bandchain.v1.oracle.OracleDataProof = function (opt_data) { + jspb.Message.initialize( + this, + opt_data, + 0, + -1, + proto.bandchain.v1.oracle.OracleDataProof.repeatedFields_, + null, + ) +} +goog.inherits(proto.bandchain.v1.oracle.OracleDataProof, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.bandchain.v1.oracle.OracleDataProof.displayName = 'proto.bandchain.v1.oracle.OracleDataProof'; + proto.bandchain.v1.oracle.OracleDataProof.displayName = + 'proto.bandchain.v1.oracle.OracleDataProof' } /** * Generated by JsPbCodeGenerator. @@ -324,16 +382,17 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.bandchain.v1.oracle.IAVLMerklePath = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.bandchain.v1.oracle.IAVLMerklePath, jspb.Message); +proto.bandchain.v1.oracle.IAVLMerklePath = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null) +} +goog.inherits(proto.bandchain.v1.oracle.IAVLMerklePath, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.bandchain.v1.oracle.IAVLMerklePath.displayName = 'proto.bandchain.v1.oracle.IAVLMerklePath'; + proto.bandchain.v1.oracle.IAVLMerklePath.displayName = + 'proto.bandchain.v1.oracle.IAVLMerklePath' } /** * Generated by JsPbCodeGenerator. @@ -345,16 +404,24 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.bandchain.v1.oracle.BlockRelayProof = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.bandchain.v1.oracle.BlockRelayProof.repeatedFields_, null); -}; -goog.inherits(proto.bandchain.v1.oracle.BlockRelayProof, jspb.Message); +proto.bandchain.v1.oracle.BlockRelayProof = function (opt_data) { + jspb.Message.initialize( + this, + opt_data, + 0, + -1, + proto.bandchain.v1.oracle.BlockRelayProof.repeatedFields_, + null, + ) +} +goog.inherits(proto.bandchain.v1.oracle.BlockRelayProof, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.bandchain.v1.oracle.BlockRelayProof.displayName = 'proto.bandchain.v1.oracle.BlockRelayProof'; + proto.bandchain.v1.oracle.BlockRelayProof.displayName = + 'proto.bandchain.v1.oracle.BlockRelayProof' } /** * Generated by JsPbCodeGenerator. @@ -366,16 +433,17 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.bandchain.v1.oracle.MultiStoreProof = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.bandchain.v1.oracle.MultiStoreProof, jspb.Message); +proto.bandchain.v1.oracle.MultiStoreProof = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null) +} +goog.inherits(proto.bandchain.v1.oracle.MultiStoreProof, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.bandchain.v1.oracle.MultiStoreProof.displayName = 'proto.bandchain.v1.oracle.MultiStoreProof'; + proto.bandchain.v1.oracle.MultiStoreProof.displayName = + 'proto.bandchain.v1.oracle.MultiStoreProof' } /** * Generated by JsPbCodeGenerator. @@ -387,16 +455,17 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.bandchain.v1.oracle.BlockHeaderMerkleParts = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.bandchain.v1.oracle.BlockHeaderMerkleParts, jspb.Message); +proto.bandchain.v1.oracle.BlockHeaderMerkleParts = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null) +} +goog.inherits(proto.bandchain.v1.oracle.BlockHeaderMerkleParts, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.bandchain.v1.oracle.BlockHeaderMerkleParts.displayName = 'proto.bandchain.v1.oracle.BlockHeaderMerkleParts'; + proto.bandchain.v1.oracle.BlockHeaderMerkleParts.displayName = + 'proto.bandchain.v1.oracle.BlockHeaderMerkleParts' } /** * Generated by JsPbCodeGenerator. @@ -408,16 +477,17 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.bandchain.v1.oracle.CommonEncodedVotePart = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.bandchain.v1.oracle.CommonEncodedVotePart, jspb.Message); +proto.bandchain.v1.oracle.CommonEncodedVotePart = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null) +} +goog.inherits(proto.bandchain.v1.oracle.CommonEncodedVotePart, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.bandchain.v1.oracle.CommonEncodedVotePart.displayName = 'proto.bandchain.v1.oracle.CommonEncodedVotePart'; + proto.bandchain.v1.oracle.CommonEncodedVotePart.displayName = + 'proto.bandchain.v1.oracle.CommonEncodedVotePart' } /** * Generated by JsPbCodeGenerator. @@ -429,16 +499,17 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.bandchain.v1.oracle.TMSignature = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.bandchain.v1.oracle.TMSignature, jspb.Message); +proto.bandchain.v1.oracle.TMSignature = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null) +} +goog.inherits(proto.bandchain.v1.oracle.TMSignature, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.bandchain.v1.oracle.TMSignature.displayName = 'proto.bandchain.v1.oracle.TMSignature'; + proto.bandchain.v1.oracle.TMSignature.displayName = + 'proto.bandchain.v1.oracle.TMSignature' } /** * Generated by JsPbCodeGenerator. @@ -450,1161 +521,1273 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.bandchain.v1.oracle.RequestsCountProof = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.bandchain.v1.oracle.RequestsCountProof.repeatedFields_, null); -}; -goog.inherits(proto.bandchain.v1.oracle.RequestsCountProof, jspb.Message); +proto.bandchain.v1.oracle.RequestsCountProof = function (opt_data) { + jspb.Message.initialize( + this, + opt_data, + 0, + -1, + proto.bandchain.v1.oracle.RequestsCountProof.repeatedFields_, + null, + ) +} +goog.inherits(proto.bandchain.v1.oracle.RequestsCountProof, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.bandchain.v1.oracle.RequestsCountProof.displayName = 'proto.bandchain.v1.oracle.RequestsCountProof'; + proto.bandchain.v1.oracle.RequestsCountProof.displayName = + 'proto.bandchain.v1.oracle.RequestsCountProof' } - - if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.bandchain.v1.oracle.QueryProofRequest.prototype.toObject = function(opt_includeInstance) { - return proto.bandchain.v1.oracle.QueryProofRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.bandchain.v1.oracle.QueryProofRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bandchain.v1.oracle.QueryProofRequest.toObject = function(includeInstance, msg) { - var f, obj = { - requestId: jspb.Message.getFieldWithDefault(msg, 1, 0), - height: jspb.Message.getFieldWithDefault(msg, 2, 0) - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bandchain.v1.oracle.ProofRequest.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.bandchain.v1.oracle.ProofRequest.toObject( + opt_includeInstance, + this, + ) + } + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bandchain.v1.oracle.ProofRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bandchain.v1.oracle.ProofRequest.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = { + requestId: jspb.Message.getFieldWithDefault(msg, 1, 0), + height: jspb.Message.getFieldWithDefault(msg, 2, 0), + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.bandchain.v1.oracle.QueryProofRequest} - */ -proto.bandchain.v1.oracle.QueryProofRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.bandchain.v1.oracle.QueryProofRequest; - return proto.bandchain.v1.oracle.QueryProofRequest.deserializeBinaryFromReader(msg, reader); -}; - + * @return {!proto.bandchain.v1.oracle.ProofRequest} + */ +proto.bandchain.v1.oracle.ProofRequest.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.bandchain.v1.oracle.ProofRequest() + return proto.bandchain.v1.oracle.ProofRequest.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.bandchain.v1.oracle.QueryProofRequest} msg The message object to deserialize into. + * @param {!proto.bandchain.v1.oracle.ProofRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bandchain.v1.oracle.QueryProofRequest} + * @return {!proto.bandchain.v1.oracle.ProofRequest} */ -proto.bandchain.v1.oracle.QueryProofRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.bandchain.v1.oracle.ProofRequest.deserializeBinaryFromReader = function ( + msg, + reader, +) { while (reader.nextField()) { if (reader.isEndGroup()) { - break; + break } - var field = reader.getFieldNumber(); + var field = reader.getFieldNumber() switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint64()); - msg.setRequestId(value); - break; - case 2: - var value = /** @type {number} */ (reader.readInt64()); - msg.setHeight(value); - break; - default: - reader.skipField(); - break; + case 1: + var value = /** @type {number} */ (reader.readUint64()) + msg.setRequestId(value) + break + case 2: + var value = /** @type {number} */ (reader.readInt64()) + msg.setHeight(value) + break + default: + reader.skipField() + break } } - return msg; -}; - + return msg +} /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.bandchain.v1.oracle.QueryProofRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.bandchain.v1.oracle.QueryProofRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.bandchain.v1.oracle.ProofRequest.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter() + proto.bandchain.v1.oracle.ProofRequest.serializeBinaryToWriter(this, writer) + return writer.getResultBuffer() +} /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.bandchain.v1.oracle.QueryProofRequest} message + * @param {!proto.bandchain.v1.oracle.ProofRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.bandchain.v1.oracle.QueryProofRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRequestId(); +proto.bandchain.v1.oracle.ProofRequest.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined + f = message.getRequestId() if (f !== 0) { - writer.writeUint64( - 1, - f - ); + writer.writeUint64(1, f) } - f = message.getHeight(); + f = message.getHeight() if (f !== 0) { - writer.writeInt64( - 2, - f - ); + writer.writeInt64(2, f) } -}; - +} /** * optional uint64 request_id = 1; * @return {number} */ -proto.bandchain.v1.oracle.QueryProofRequest.prototype.getRequestId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - +proto.bandchain.v1.oracle.ProofRequest.prototype.getRequestId = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)) +} /** * @param {number} value - * @return {!proto.bandchain.v1.oracle.QueryProofRequest} returns this + * @return {!proto.bandchain.v1.oracle.ProofRequest} returns this */ -proto.bandchain.v1.oracle.QueryProofRequest.prototype.setRequestId = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - +proto.bandchain.v1.oracle.ProofRequest.prototype.setRequestId = function ( + value, +) { + return jspb.Message.setProto3IntField(this, 1, value) +} /** * optional int64 height = 2; * @return {number} */ -proto.bandchain.v1.oracle.QueryProofRequest.prototype.getHeight = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - +proto.bandchain.v1.oracle.ProofRequest.prototype.getHeight = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)) +} /** * @param {number} value - * @return {!proto.bandchain.v1.oracle.QueryProofRequest} returns this + * @return {!proto.bandchain.v1.oracle.ProofRequest} returns this */ -proto.bandchain.v1.oracle.QueryProofRequest.prototype.setHeight = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - - - +proto.bandchain.v1.oracle.ProofRequest.prototype.setHeight = function (value) { + return jspb.Message.setProto3IntField(this, 2, value) +} if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.bandchain.v1.oracle.QueryProofResponse.prototype.toObject = function(opt_includeInstance) { - return proto.bandchain.v1.oracle.QueryProofResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.bandchain.v1.oracle.QueryProofResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bandchain.v1.oracle.QueryProofResponse.toObject = function(includeInstance, msg) { - var f, obj = { - height: jspb.Message.getFieldWithDefault(msg, 1, 0), - result: (f = msg.getResult()) && proto.bandchain.v1.oracle.SingleProofResponse.toObject(includeInstance, f) - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bandchain.v1.oracle.ProofResponse.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.bandchain.v1.oracle.ProofResponse.toObject( + opt_includeInstance, + this, + ) + } + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bandchain.v1.oracle.ProofResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bandchain.v1.oracle.ProofResponse.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = { + height: jspb.Message.getFieldWithDefault(msg, 1, 0), + result: + (f = msg.getResult()) && + proto.bandchain.v1.oracle.SingleProofResult.toObject( + includeInstance, + f, + ), + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.bandchain.v1.oracle.QueryProofResponse} - */ -proto.bandchain.v1.oracle.QueryProofResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.bandchain.v1.oracle.QueryProofResponse; - return proto.bandchain.v1.oracle.QueryProofResponse.deserializeBinaryFromReader(msg, reader); -}; - + * @return {!proto.bandchain.v1.oracle.ProofResponse} + */ +proto.bandchain.v1.oracle.ProofResponse.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.bandchain.v1.oracle.ProofResponse() + return proto.bandchain.v1.oracle.ProofResponse.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.bandchain.v1.oracle.QueryProofResponse} msg The message object to deserialize into. + * @param {!proto.bandchain.v1.oracle.ProofResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bandchain.v1.oracle.QueryProofResponse} + * @return {!proto.bandchain.v1.oracle.ProofResponse} */ -proto.bandchain.v1.oracle.QueryProofResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.bandchain.v1.oracle.ProofResponse.deserializeBinaryFromReader = function ( + msg, + reader, +) { while (reader.nextField()) { if (reader.isEndGroup()) { - break; + break } - var field = reader.getFieldNumber(); + var field = reader.getFieldNumber() switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt64()); - msg.setHeight(value); - break; - case 2: - var value = new proto.bandchain.v1.oracle.SingleProofResponse; - reader.readMessage(value,proto.bandchain.v1.oracle.SingleProofResponse.deserializeBinaryFromReader); - msg.setResult(value); - break; - default: - reader.skipField(); - break; + case 1: + var value = /** @type {number} */ (reader.readInt64()) + msg.setHeight(value) + break + case 2: + var value = new proto.bandchain.v1.oracle.SingleProofResult() + reader.readMessage( + value, + proto.bandchain.v1.oracle.SingleProofResult + .deserializeBinaryFromReader, + ) + msg.setResult(value) + break + default: + reader.skipField() + break } } - return msg; -}; - + return msg +} /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.bandchain.v1.oracle.QueryProofResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.bandchain.v1.oracle.QueryProofResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.bandchain.v1.oracle.ProofResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter() + proto.bandchain.v1.oracle.ProofResponse.serializeBinaryToWriter( + this, + writer, + ) + return writer.getResultBuffer() + } /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.bandchain.v1.oracle.QueryProofResponse} message + * @param {!proto.bandchain.v1.oracle.ProofResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.bandchain.v1.oracle.QueryProofResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getHeight(); +proto.bandchain.v1.oracle.ProofResponse.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined + f = message.getHeight() if (f !== 0) { - writer.writeInt64( - 1, - f - ); + writer.writeInt64(1, f) } - f = message.getResult(); + f = message.getResult() if (f != null) { writer.writeMessage( 2, f, - proto.bandchain.v1.oracle.SingleProofResponse.serializeBinaryToWriter - ); + proto.bandchain.v1.oracle.SingleProofResult.serializeBinaryToWriter, + ) } -}; - +} /** * optional int64 height = 1; * @return {number} */ -proto.bandchain.v1.oracle.QueryProofResponse.prototype.getHeight = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - +proto.bandchain.v1.oracle.ProofResponse.prototype.getHeight = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)) +} /** * @param {number} value - * @return {!proto.bandchain.v1.oracle.QueryProofResponse} returns this + * @return {!proto.bandchain.v1.oracle.ProofResponse} returns this */ -proto.bandchain.v1.oracle.QueryProofResponse.prototype.setHeight = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - +proto.bandchain.v1.oracle.ProofResponse.prototype.setHeight = function (value) { + return jspb.Message.setProto3IntField(this, 1, value) +} /** - * optional SingleProofResponse result = 2; - * @return {?proto.bandchain.v1.oracle.SingleProofResponse} + * optional SingleProofResult result = 2; + * @return {?proto.bandchain.v1.oracle.SingleProofResult} */ -proto.bandchain.v1.oracle.QueryProofResponse.prototype.getResult = function() { - return /** @type{?proto.bandchain.v1.oracle.SingleProofResponse} */ ( - jspb.Message.getWrapperField(this, proto.bandchain.v1.oracle.SingleProofResponse, 2)); -}; - +proto.bandchain.v1.oracle.ProofResponse.prototype.getResult = function () { + return /** @type{?proto.bandchain.v1.oracle.SingleProofResult} */ ( + jspb.Message.getWrapperField( + this, + proto.bandchain.v1.oracle.SingleProofResult, + 2, + ) + ) +} /** - * @param {?proto.bandchain.v1.oracle.SingleProofResponse|undefined} value - * @return {!proto.bandchain.v1.oracle.QueryProofResponse} returns this -*/ -proto.bandchain.v1.oracle.QueryProofResponse.prototype.setResult = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - + * @param {?proto.bandchain.v1.oracle.SingleProofResult|undefined} value + * @return {!proto.bandchain.v1.oracle.ProofResponse} returns this + */ +proto.bandchain.v1.oracle.ProofResponse.prototype.setResult = function (value) { + return jspb.Message.setWrapperField(this, 2, value) +} /** * Clears the message field making it undefined. - * @return {!proto.bandchain.v1.oracle.QueryProofResponse} returns this + * @return {!proto.bandchain.v1.oracle.ProofResponse} returns this */ -proto.bandchain.v1.oracle.QueryProofResponse.prototype.clearResult = function() { - return this.setResult(undefined); -}; - +proto.bandchain.v1.oracle.ProofResponse.prototype.clearResult = function () { + return this.setResult(undefined) +} /** * Returns whether this field is set. * @return {boolean} */ -proto.bandchain.v1.oracle.QueryProofResponse.prototype.hasResult = function() { - return jspb.Message.getField(this, 2) != null; -}; - - +proto.bandchain.v1.oracle.ProofResponse.prototype.hasResult = function () { + return jspb.Message.getField(this, 2) != null +} /** * List of repeated fields within this message type. * @private {!Array} * @const */ -proto.bandchain.v1.oracle.QueryMultiProofRequest.repeatedFields_ = [1]; - - +proto.bandchain.v1.oracle.MultiProofRequest.repeatedFields_ = [1] if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.bandchain.v1.oracle.QueryMultiProofRequest.prototype.toObject = function(opt_includeInstance) { - return proto.bandchain.v1.oracle.QueryMultiProofRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.bandchain.v1.oracle.QueryMultiProofRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bandchain.v1.oracle.QueryMultiProofRequest.toObject = function(includeInstance, msg) { - var f, obj = { - requestIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bandchain.v1.oracle.MultiProofRequest.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.bandchain.v1.oracle.MultiProofRequest.toObject( + opt_includeInstance, + this, + ) + } + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bandchain.v1.oracle.MultiProofRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bandchain.v1.oracle.MultiProofRequest.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = { + requestIdsList: + (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f, + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.bandchain.v1.oracle.QueryMultiProofRequest} - */ -proto.bandchain.v1.oracle.QueryMultiProofRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.bandchain.v1.oracle.QueryMultiProofRequest; - return proto.bandchain.v1.oracle.QueryMultiProofRequest.deserializeBinaryFromReader(msg, reader); -}; - + * @return {!proto.bandchain.v1.oracle.MultiProofRequest} + */ +proto.bandchain.v1.oracle.MultiProofRequest.deserializeBinary = function ( + bytes, +) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.bandchain.v1.oracle.MultiProofRequest() + return proto.bandchain.v1.oracle.MultiProofRequest.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.bandchain.v1.oracle.QueryMultiProofRequest} msg The message object to deserialize into. + * @param {!proto.bandchain.v1.oracle.MultiProofRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bandchain.v1.oracle.QueryMultiProofRequest} + * @return {!proto.bandchain.v1.oracle.MultiProofRequest} */ -proto.bandchain.v1.oracle.QueryMultiProofRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedUint64() : [reader.readUint64()]); - for (var i = 0; i < values.length; i++) { - msg.addRequestIds(values[i]); +proto.bandchain.v1.oracle.MultiProofRequest.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break + } + var field = reader.getFieldNumber() + switch (field) { + case 1: + var values = /** @type {!Array} */ ( + reader.isDelimited() + ? reader.readPackedUint64() + : [reader.readUint64()] + ) + for (var i = 0; i < values.length; i++) { + msg.addRequestIds(values[i]) + } + break + default: + reader.skipField() + break } - break; - default: - reader.skipField(); - break; } + return msg } - return msg; -}; - /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.bandchain.v1.oracle.QueryMultiProofRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.bandchain.v1.oracle.QueryMultiProofRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.bandchain.v1.oracle.MultiProofRequest.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter() + proto.bandchain.v1.oracle.MultiProofRequest.serializeBinaryToWriter( + this, + writer, + ) + return writer.getResultBuffer() + } /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.bandchain.v1.oracle.QueryMultiProofRequest} message + * @param {!proto.bandchain.v1.oracle.MultiProofRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.bandchain.v1.oracle.QueryMultiProofRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRequestIdsList(); +proto.bandchain.v1.oracle.MultiProofRequest.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined + f = message.getRequestIdsList() if (f.length > 0) { - writer.writePackedUint64( - 1, - f - ); + writer.writePackedUint64(1, f) } -}; - +} /** * repeated uint64 request_ids = 1; * @return {!Array} */ -proto.bandchain.v1.oracle.QueryMultiProofRequest.prototype.getRequestIdsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); -}; - +proto.bandchain.v1.oracle.MultiProofRequest.prototype.getRequestIdsList = + function () { + return /** @type {!Array} */ ( + jspb.Message.getRepeatedField(this, 1) + ) + } /** * @param {!Array} value - * @return {!proto.bandchain.v1.oracle.QueryMultiProofRequest} returns this + * @return {!proto.bandchain.v1.oracle.MultiProofRequest} returns this */ -proto.bandchain.v1.oracle.QueryMultiProofRequest.prototype.setRequestIdsList = function(value) { - return jspb.Message.setField(this, 1, value || []); -}; - +proto.bandchain.v1.oracle.MultiProofRequest.prototype.setRequestIdsList = + function (value) { + return jspb.Message.setField(this, 1, value || []) + } /** * @param {number} value * @param {number=} opt_index - * @return {!proto.bandchain.v1.oracle.QueryMultiProofRequest} returns this + * @return {!proto.bandchain.v1.oracle.MultiProofRequest} returns this */ -proto.bandchain.v1.oracle.QueryMultiProofRequest.prototype.addRequestIds = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 1, value, opt_index); -}; - +proto.bandchain.v1.oracle.MultiProofRequest.prototype.addRequestIds = function ( + value, + opt_index, +) { + return jspb.Message.addToRepeatedField(this, 1, value, opt_index) +} /** * Clears the list making it empty but non-null. - * @return {!proto.bandchain.v1.oracle.QueryMultiProofRequest} returns this + * @return {!proto.bandchain.v1.oracle.MultiProofRequest} returns this */ -proto.bandchain.v1.oracle.QueryMultiProofRequest.prototype.clearRequestIdsList = function() { - return this.setRequestIdsList([]); -}; - - - - +proto.bandchain.v1.oracle.MultiProofRequest.prototype.clearRequestIdsList = + function () { + return this.setRequestIdsList([]) + } if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.bandchain.v1.oracle.QueryMultiProofResponse.prototype.toObject = function(opt_includeInstance) { - return proto.bandchain.v1.oracle.QueryMultiProofResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.bandchain.v1.oracle.QueryMultiProofResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bandchain.v1.oracle.QueryMultiProofResponse.toObject = function(includeInstance, msg) { - var f, obj = { - height: jspb.Message.getFieldWithDefault(msg, 1, 0), - result: (f = msg.getResult()) && proto.bandchain.v1.oracle.MultiProofResponse.toObject(includeInstance, f) - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bandchain.v1.oracle.MultiProofResponse.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.bandchain.v1.oracle.MultiProofResponse.toObject( + opt_includeInstance, + this, + ) + } + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bandchain.v1.oracle.MultiProofResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bandchain.v1.oracle.MultiProofResponse.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = { + height: jspb.Message.getFieldWithDefault(msg, 1, 0), + result: + (f = msg.getResult()) && + proto.bandchain.v1.oracle.MultiProofResult.toObject( + includeInstance, + f, + ), + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.bandchain.v1.oracle.QueryMultiProofResponse} + * @return {!proto.bandchain.v1.oracle.MultiProofResponse} */ -proto.bandchain.v1.oracle.QueryMultiProofResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.bandchain.v1.oracle.QueryMultiProofResponse; - return proto.bandchain.v1.oracle.QueryMultiProofResponse.deserializeBinaryFromReader(msg, reader); -}; - +proto.bandchain.v1.oracle.MultiProofResponse.deserializeBinary = function ( + bytes, +) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.bandchain.v1.oracle.MultiProofResponse() + return proto.bandchain.v1.oracle.MultiProofResponse.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.bandchain.v1.oracle.QueryMultiProofResponse} msg The message object to deserialize into. + * @param {!proto.bandchain.v1.oracle.MultiProofResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bandchain.v1.oracle.QueryMultiProofResponse} + * @return {!proto.bandchain.v1.oracle.MultiProofResponse} */ -proto.bandchain.v1.oracle.QueryMultiProofResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt64()); - msg.setHeight(value); - break; - case 2: - var value = new proto.bandchain.v1.oracle.MultiProofResponse; - reader.readMessage(value,proto.bandchain.v1.oracle.MultiProofResponse.deserializeBinaryFromReader); - msg.setResult(value); - break; - default: - reader.skipField(); - break; +proto.bandchain.v1.oracle.MultiProofResponse.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break + } + var field = reader.getFieldNumber() + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readInt64()) + msg.setHeight(value) + break + case 2: + var value = new proto.bandchain.v1.oracle.MultiProofResult() + reader.readMessage( + value, + proto.bandchain.v1.oracle.MultiProofResult + .deserializeBinaryFromReader, + ) + msg.setResult(value) + break + default: + reader.skipField() + break + } } + return msg } - return msg; -}; - /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.bandchain.v1.oracle.QueryMultiProofResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.bandchain.v1.oracle.QueryMultiProofResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.bandchain.v1.oracle.MultiProofResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter() + proto.bandchain.v1.oracle.MultiProofResponse.serializeBinaryToWriter( + this, + writer, + ) + return writer.getResultBuffer() + } /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.bandchain.v1.oracle.QueryMultiProofResponse} message + * @param {!proto.bandchain.v1.oracle.MultiProofResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.bandchain.v1.oracle.QueryMultiProofResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getHeight(); - if (f !== 0) { - writer.writeInt64( - 1, - f - ); - } - f = message.getResult(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.bandchain.v1.oracle.MultiProofResponse.serializeBinaryToWriter - ); +proto.bandchain.v1.oracle.MultiProofResponse.serializeBinaryToWriter = + function (message, writer) { + var f = undefined + f = message.getHeight() + if (f !== 0) { + writer.writeInt64(1, f) + } + f = message.getResult() + if (f != null) { + writer.writeMessage( + 2, + f, + proto.bandchain.v1.oracle.MultiProofResult.serializeBinaryToWriter, + ) + } } -}; - /** * optional int64 height = 1; * @return {number} */ -proto.bandchain.v1.oracle.QueryMultiProofResponse.prototype.getHeight = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - +proto.bandchain.v1.oracle.MultiProofResponse.prototype.getHeight = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)) +} /** * @param {number} value - * @return {!proto.bandchain.v1.oracle.QueryMultiProofResponse} returns this + * @return {!proto.bandchain.v1.oracle.MultiProofResponse} returns this */ -proto.bandchain.v1.oracle.QueryMultiProofResponse.prototype.setHeight = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - +proto.bandchain.v1.oracle.MultiProofResponse.prototype.setHeight = function ( + value, +) { + return jspb.Message.setProto3IntField(this, 1, value) +} /** - * optional MultiProofResponse result = 2; - * @return {?proto.bandchain.v1.oracle.MultiProofResponse} + * optional MultiProofResult result = 2; + * @return {?proto.bandchain.v1.oracle.MultiProofResult} */ -proto.bandchain.v1.oracle.QueryMultiProofResponse.prototype.getResult = function() { - return /** @type{?proto.bandchain.v1.oracle.MultiProofResponse} */ ( - jspb.Message.getWrapperField(this, proto.bandchain.v1.oracle.MultiProofResponse, 2)); -}; - +proto.bandchain.v1.oracle.MultiProofResponse.prototype.getResult = function () { + return /** @type{?proto.bandchain.v1.oracle.MultiProofResult} */ ( + jspb.Message.getWrapperField( + this, + proto.bandchain.v1.oracle.MultiProofResult, + 2, + ) + ) +} /** - * @param {?proto.bandchain.v1.oracle.MultiProofResponse|undefined} value - * @return {!proto.bandchain.v1.oracle.QueryMultiProofResponse} returns this -*/ -proto.bandchain.v1.oracle.QueryMultiProofResponse.prototype.setResult = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - + * @param {?proto.bandchain.v1.oracle.MultiProofResult|undefined} value + * @return {!proto.bandchain.v1.oracle.MultiProofResponse} returns this + */ +proto.bandchain.v1.oracle.MultiProofResponse.prototype.setResult = function ( + value, +) { + return jspb.Message.setWrapperField(this, 2, value) +} /** * Clears the message field making it undefined. - * @return {!proto.bandchain.v1.oracle.QueryMultiProofResponse} returns this + * @return {!proto.bandchain.v1.oracle.MultiProofResponse} returns this */ -proto.bandchain.v1.oracle.QueryMultiProofResponse.prototype.clearResult = function() { - return this.setResult(undefined); -}; - +proto.bandchain.v1.oracle.MultiProofResponse.prototype.clearResult = + function () { + return this.setResult(undefined) + } /** * Returns whether this field is set. * @return {boolean} */ -proto.bandchain.v1.oracle.QueryMultiProofResponse.prototype.hasResult = function() { - return jspb.Message.getField(this, 2) != null; -}; - - - - +proto.bandchain.v1.oracle.MultiProofResponse.prototype.hasResult = function () { + return jspb.Message.getField(this, 2) != null +} if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.bandchain.v1.oracle.QueryRequestCountProofRequest.prototype.toObject = function(opt_includeInstance) { - return proto.bandchain.v1.oracle.QueryRequestCountProofRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.bandchain.v1.oracle.QueryRequestCountProofRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bandchain.v1.oracle.QueryRequestCountProofRequest.toObject = function(includeInstance, msg) { - var f, obj = { - - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bandchain.v1.oracle.RequestCountProofRequest.prototype.toObject = + function (opt_includeInstance) { + return proto.bandchain.v1.oracle.RequestCountProofRequest.toObject( + opt_includeInstance, + this, + ) + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bandchain.v1.oracle.RequestCountProofRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bandchain.v1.oracle.RequestCountProofRequest.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = {} + + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.bandchain.v1.oracle.QueryRequestCountProofRequest} - */ -proto.bandchain.v1.oracle.QueryRequestCountProofRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.bandchain.v1.oracle.QueryRequestCountProofRequest; - return proto.bandchain.v1.oracle.QueryRequestCountProofRequest.deserializeBinaryFromReader(msg, reader); -}; - + * @return {!proto.bandchain.v1.oracle.RequestCountProofRequest} + */ +proto.bandchain.v1.oracle.RequestCountProofRequest.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.bandchain.v1.oracle.RequestCountProofRequest() + return proto.bandchain.v1.oracle.RequestCountProofRequest.deserializeBinaryFromReader( + msg, + reader, + ) + } /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.bandchain.v1.oracle.QueryRequestCountProofRequest} msg The message object to deserialize into. + * @param {!proto.bandchain.v1.oracle.RequestCountProofRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bandchain.v1.oracle.QueryRequestCountProofRequest} + * @return {!proto.bandchain.v1.oracle.RequestCountProofRequest} */ -proto.bandchain.v1.oracle.QueryRequestCountProofRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - default: - reader.skipField(); - break; +proto.bandchain.v1.oracle.RequestCountProofRequest.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break + } + var field = reader.getFieldNumber() + switch (field) { + default: + reader.skipField() + break + } } + return msg } - return msg; -}; - /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.bandchain.v1.oracle.QueryRequestCountProofRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.bandchain.v1.oracle.QueryRequestCountProofRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.bandchain.v1.oracle.RequestCountProofRequest.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter() + proto.bandchain.v1.oracle.RequestCountProofRequest.serializeBinaryToWriter( + this, + writer, + ) + return writer.getResultBuffer() + } /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.bandchain.v1.oracle.QueryRequestCountProofRequest} message + * @param {!proto.bandchain.v1.oracle.RequestCountProofRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.bandchain.v1.oracle.QueryRequestCountProofRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - - - +proto.bandchain.v1.oracle.RequestCountProofRequest.serializeBinaryToWriter = + function (message, writer) { + var f = undefined + } if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.bandchain.v1.oracle.QueryRequestCountProofResponse.prototype.toObject = function(opt_includeInstance) { - return proto.bandchain.v1.oracle.QueryRequestCountProofResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.bandchain.v1.oracle.QueryRequestCountProofResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bandchain.v1.oracle.QueryRequestCountProofResponse.toObject = function(includeInstance, msg) { - var f, obj = { - height: jspb.Message.getFieldWithDefault(msg, 1, 0), - result: (f = msg.getResult()) && proto.bandchain.v1.oracle.CountProofResponse.toObject(includeInstance, f) - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bandchain.v1.oracle.RequestCountProofResponse.prototype.toObject = + function (opt_includeInstance) { + return proto.bandchain.v1.oracle.RequestCountProofResponse.toObject( + opt_includeInstance, + this, + ) + } + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bandchain.v1.oracle.RequestCountProofResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bandchain.v1.oracle.RequestCountProofResponse.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = { + height: jspb.Message.getFieldWithDefault(msg, 1, 0), + result: + (f = msg.getResult()) && + proto.bandchain.v1.oracle.CountProofResult.toObject( + includeInstance, + f, + ), + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.bandchain.v1.oracle.QueryRequestCountProofResponse} - */ -proto.bandchain.v1.oracle.QueryRequestCountProofResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.bandchain.v1.oracle.QueryRequestCountProofResponse; - return proto.bandchain.v1.oracle.QueryRequestCountProofResponse.deserializeBinaryFromReader(msg, reader); -}; - + * @return {!proto.bandchain.v1.oracle.RequestCountProofResponse} + */ +proto.bandchain.v1.oracle.RequestCountProofResponse.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.bandchain.v1.oracle.RequestCountProofResponse() + return proto.bandchain.v1.oracle.RequestCountProofResponse.deserializeBinaryFromReader( + msg, + reader, + ) + } /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.bandchain.v1.oracle.QueryRequestCountProofResponse} msg The message object to deserialize into. + * @param {!proto.bandchain.v1.oracle.RequestCountProofResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bandchain.v1.oracle.QueryRequestCountProofResponse} + * @return {!proto.bandchain.v1.oracle.RequestCountProofResponse} */ -proto.bandchain.v1.oracle.QueryRequestCountProofResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt64()); - msg.setHeight(value); - break; - case 2: - var value = new proto.bandchain.v1.oracle.CountProofResponse; - reader.readMessage(value,proto.bandchain.v1.oracle.CountProofResponse.deserializeBinaryFromReader); - msg.setResult(value); - break; - default: - reader.skipField(); - break; +proto.bandchain.v1.oracle.RequestCountProofResponse.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break + } + var field = reader.getFieldNumber() + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readInt64()) + msg.setHeight(value) + break + case 2: + var value = new proto.bandchain.v1.oracle.CountProofResult() + reader.readMessage( + value, + proto.bandchain.v1.oracle.CountProofResult + .deserializeBinaryFromReader, + ) + msg.setResult(value) + break + default: + reader.skipField() + break + } } + return msg } - return msg; -}; - /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.bandchain.v1.oracle.QueryRequestCountProofResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.bandchain.v1.oracle.QueryRequestCountProofResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.bandchain.v1.oracle.RequestCountProofResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter() + proto.bandchain.v1.oracle.RequestCountProofResponse.serializeBinaryToWriter( + this, + writer, + ) + return writer.getResultBuffer() + } /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.bandchain.v1.oracle.QueryRequestCountProofResponse} message + * @param {!proto.bandchain.v1.oracle.RequestCountProofResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.bandchain.v1.oracle.QueryRequestCountProofResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getHeight(); - if (f !== 0) { - writer.writeInt64( - 1, - f - ); - } - f = message.getResult(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.bandchain.v1.oracle.CountProofResponse.serializeBinaryToWriter - ); +proto.bandchain.v1.oracle.RequestCountProofResponse.serializeBinaryToWriter = + function (message, writer) { + var f = undefined + f = message.getHeight() + if (f !== 0) { + writer.writeInt64(1, f) + } + f = message.getResult() + if (f != null) { + writer.writeMessage( + 2, + f, + proto.bandchain.v1.oracle.CountProofResult.serializeBinaryToWriter, + ) + } } -}; - /** * optional int64 height = 1; * @return {number} */ -proto.bandchain.v1.oracle.QueryRequestCountProofResponse.prototype.getHeight = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - +proto.bandchain.v1.oracle.RequestCountProofResponse.prototype.getHeight = + function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)) + } /** * @param {number} value - * @return {!proto.bandchain.v1.oracle.QueryRequestCountProofResponse} returns this + * @return {!proto.bandchain.v1.oracle.RequestCountProofResponse} returns this */ -proto.bandchain.v1.oracle.QueryRequestCountProofResponse.prototype.setHeight = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - +proto.bandchain.v1.oracle.RequestCountProofResponse.prototype.setHeight = + function (value) { + return jspb.Message.setProto3IntField(this, 1, value) + } /** - * optional CountProofResponse result = 2; - * @return {?proto.bandchain.v1.oracle.CountProofResponse} + * optional CountProofResult result = 2; + * @return {?proto.bandchain.v1.oracle.CountProofResult} */ -proto.bandchain.v1.oracle.QueryRequestCountProofResponse.prototype.getResult = function() { - return /** @type{?proto.bandchain.v1.oracle.CountProofResponse} */ ( - jspb.Message.getWrapperField(this, proto.bandchain.v1.oracle.CountProofResponse, 2)); -}; - +proto.bandchain.v1.oracle.RequestCountProofResponse.prototype.getResult = + function () { + return /** @type{?proto.bandchain.v1.oracle.CountProofResult} */ ( + jspb.Message.getWrapperField( + this, + proto.bandchain.v1.oracle.CountProofResult, + 2, + ) + ) + } /** - * @param {?proto.bandchain.v1.oracle.CountProofResponse|undefined} value - * @return {!proto.bandchain.v1.oracle.QueryRequestCountProofResponse} returns this -*/ -proto.bandchain.v1.oracle.QueryRequestCountProofResponse.prototype.setResult = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - + * @param {?proto.bandchain.v1.oracle.CountProofResult|undefined} value + * @return {!proto.bandchain.v1.oracle.RequestCountProofResponse} returns this + */ +proto.bandchain.v1.oracle.RequestCountProofResponse.prototype.setResult = + function (value) { + return jspb.Message.setWrapperField(this, 2, value) + } /** * Clears the message field making it undefined. - * @return {!proto.bandchain.v1.oracle.QueryRequestCountProofResponse} returns this + * @return {!proto.bandchain.v1.oracle.RequestCountProofResponse} returns this */ -proto.bandchain.v1.oracle.QueryRequestCountProofResponse.prototype.clearResult = function() { - return this.setResult(undefined); -}; - +proto.bandchain.v1.oracle.RequestCountProofResponse.prototype.clearResult = + function () { + return this.setResult(undefined) + } /** * Returns whether this field is set. * @return {boolean} */ -proto.bandchain.v1.oracle.QueryRequestCountProofResponse.prototype.hasResult = function() { - return jspb.Message.getField(this, 2) != null; -}; - - - - +proto.bandchain.v1.oracle.RequestCountProofResponse.prototype.hasResult = + function () { + return jspb.Message.getField(this, 2) != null + } if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.bandchain.v1.oracle.SingleProofResponse.prototype.toObject = function(opt_includeInstance) { - return proto.bandchain.v1.oracle.SingleProofResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.bandchain.v1.oracle.SingleProofResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bandchain.v1.oracle.SingleProofResponse.toObject = function(includeInstance, msg) { - var f, obj = { - proof: (f = msg.getProof()) && proto.bandchain.v1.oracle.SingleProof.toObject(includeInstance, f), - evmProofBytes: msg.getEvmProofBytes_asB64() - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bandchain.v1.oracle.SingleProofResult.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.bandchain.v1.oracle.SingleProofResult.toObject( + opt_includeInstance, + this, + ) + } + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bandchain.v1.oracle.SingleProofResult} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bandchain.v1.oracle.SingleProofResult.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = { + proof: + (f = msg.getProof()) && + proto.bandchain.v1.oracle.SingleProof.toObject(includeInstance, f), + evmProofBytes: msg.getEvmProofBytes_asB64(), + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.bandchain.v1.oracle.SingleProofResponse} - */ -proto.bandchain.v1.oracle.SingleProofResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.bandchain.v1.oracle.SingleProofResponse; - return proto.bandchain.v1.oracle.SingleProofResponse.deserializeBinaryFromReader(msg, reader); -}; - + * @return {!proto.bandchain.v1.oracle.SingleProofResult} + */ +proto.bandchain.v1.oracle.SingleProofResult.deserializeBinary = function ( + bytes, +) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.bandchain.v1.oracle.SingleProofResult() + return proto.bandchain.v1.oracle.SingleProofResult.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.bandchain.v1.oracle.SingleProofResponse} msg The message object to deserialize into. + * @param {!proto.bandchain.v1.oracle.SingleProofResult} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bandchain.v1.oracle.SingleProofResponse} + * @return {!proto.bandchain.v1.oracle.SingleProofResult} */ -proto.bandchain.v1.oracle.SingleProofResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.bandchain.v1.oracle.SingleProof; - reader.readMessage(value,proto.bandchain.v1.oracle.SingleProof.deserializeBinaryFromReader); - msg.setProof(value); - break; - case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setEvmProofBytes(value); - break; - default: - reader.skipField(); - break; +proto.bandchain.v1.oracle.SingleProofResult.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break + } + var field = reader.getFieldNumber() + switch (field) { + case 1: + var value = new proto.bandchain.v1.oracle.SingleProof() + reader.readMessage( + value, + proto.bandchain.v1.oracle.SingleProof.deserializeBinaryFromReader, + ) + msg.setProof(value) + break + case 2: + var value = /** @type {!Uint8Array} */ (reader.readBytes()) + msg.setEvmProofBytes(value) + break + default: + reader.skipField() + break + } } + return msg } - return msg; -}; - /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.bandchain.v1.oracle.SingleProofResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.bandchain.v1.oracle.SingleProofResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.bandchain.v1.oracle.SingleProofResult.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter() + proto.bandchain.v1.oracle.SingleProofResult.serializeBinaryToWriter( + this, + writer, + ) + return writer.getResultBuffer() + } /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.bandchain.v1.oracle.SingleProofResponse} message + * @param {!proto.bandchain.v1.oracle.SingleProofResult} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.bandchain.v1.oracle.SingleProofResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getProof(); +proto.bandchain.v1.oracle.SingleProofResult.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined + f = message.getProof() if (f != null) { writer.writeMessage( 1, f, - proto.bandchain.v1.oracle.SingleProof.serializeBinaryToWriter - ); + proto.bandchain.v1.oracle.SingleProof.serializeBinaryToWriter, + ) } - f = message.getEvmProofBytes_asU8(); + f = message.getEvmProofBytes_asU8() if (f.length > 0) { - writer.writeBytes( - 2, - f - ); + writer.writeBytes(2, f) } -}; - +} /** * optional SingleProof proof = 1; * @return {?proto.bandchain.v1.oracle.SingleProof} */ -proto.bandchain.v1.oracle.SingleProofResponse.prototype.getProof = function() { +proto.bandchain.v1.oracle.SingleProofResult.prototype.getProof = function () { return /** @type{?proto.bandchain.v1.oracle.SingleProof} */ ( - jspb.Message.getWrapperField(this, proto.bandchain.v1.oracle.SingleProof, 1)); -}; - + jspb.Message.getWrapperField(this, proto.bandchain.v1.oracle.SingleProof, 1) + ) +} /** * @param {?proto.bandchain.v1.oracle.SingleProof|undefined} value - * @return {!proto.bandchain.v1.oracle.SingleProofResponse} returns this -*/ -proto.bandchain.v1.oracle.SingleProofResponse.prototype.setProof = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - + * @return {!proto.bandchain.v1.oracle.SingleProofResult} returns this + */ +proto.bandchain.v1.oracle.SingleProofResult.prototype.setProof = function ( + value, +) { + return jspb.Message.setWrapperField(this, 1, value) +} /** * Clears the message field making it undefined. - * @return {!proto.bandchain.v1.oracle.SingleProofResponse} returns this + * @return {!proto.bandchain.v1.oracle.SingleProofResult} returns this */ -proto.bandchain.v1.oracle.SingleProofResponse.prototype.clearProof = function() { - return this.setProof(undefined); -}; - +proto.bandchain.v1.oracle.SingleProofResult.prototype.clearProof = function () { + return this.setProof(undefined) +} /** * Returns whether this field is set. * @return {boolean} */ -proto.bandchain.v1.oracle.SingleProofResponse.prototype.hasProof = function() { - return jspb.Message.getField(this, 1) != null; -}; - +proto.bandchain.v1.oracle.SingleProofResult.prototype.hasProof = function () { + return jspb.Message.getField(this, 1) != null +} /** * optional bytes evm_proof_bytes = 2; * @return {!(string|Uint8Array)} */ -proto.bandchain.v1.oracle.SingleProofResponse.prototype.getEvmProofBytes = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - +proto.bandchain.v1.oracle.SingleProofResult.prototype.getEvmProofBytes = + function () { + return /** @type {!(string|Uint8Array)} */ ( + jspb.Message.getFieldWithDefault(this, 2, '') + ) + } /** * optional bytes evm_proof_bytes = 2; * This is a type-conversion wrapper around `getEvmProofBytes()` * @return {string} */ -proto.bandchain.v1.oracle.SingleProofResponse.prototype.getEvmProofBytes_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getEvmProofBytes())); -}; - +proto.bandchain.v1.oracle.SingleProofResult.prototype.getEvmProofBytes_asB64 = + function () { + return /** @type {string} */ ( + jspb.Message.bytesAsB64(this.getEvmProofBytes()) + ) + } /** * optional bytes evm_proof_bytes = 2; @@ -1613,203 +1796,221 @@ proto.bandchain.v1.oracle.SingleProofResponse.prototype.getEvmProofBytes_asB64 = * This is a type-conversion wrapper around `getEvmProofBytes()` * @return {!Uint8Array} */ -proto.bandchain.v1.oracle.SingleProofResponse.prototype.getEvmProofBytes_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getEvmProofBytes())); -}; - +proto.bandchain.v1.oracle.SingleProofResult.prototype.getEvmProofBytes_asU8 = + function () { + return /** @type {!Uint8Array} */ ( + jspb.Message.bytesAsU8(this.getEvmProofBytes()) + ) + } /** * @param {!(string|Uint8Array)} value - * @return {!proto.bandchain.v1.oracle.SingleProofResponse} returns this + * @return {!proto.bandchain.v1.oracle.SingleProofResult} returns this */ -proto.bandchain.v1.oracle.SingleProofResponse.prototype.setEvmProofBytes = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); -}; - - - - +proto.bandchain.v1.oracle.SingleProofResult.prototype.setEvmProofBytes = + function (value) { + return jspb.Message.setProto3BytesField(this, 2, value) + } if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.bandchain.v1.oracle.MultiProofResponse.prototype.toObject = function(opt_includeInstance) { - return proto.bandchain.v1.oracle.MultiProofResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.bandchain.v1.oracle.MultiProofResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bandchain.v1.oracle.MultiProofResponse.toObject = function(includeInstance, msg) { - var f, obj = { - proof: (f = msg.getProof()) && proto.bandchain.v1.oracle.MultiProof.toObject(includeInstance, f), - evmProofBytes: msg.getEvmProofBytes_asB64() - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bandchain.v1.oracle.MultiProofResult.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.bandchain.v1.oracle.MultiProofResult.toObject( + opt_includeInstance, + this, + ) + } + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bandchain.v1.oracle.MultiProofResult} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bandchain.v1.oracle.MultiProofResult.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = { + proof: + (f = msg.getProof()) && + proto.bandchain.v1.oracle.MultiProof.toObject(includeInstance, f), + evmProofBytes: msg.getEvmProofBytes_asB64(), + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.bandchain.v1.oracle.MultiProofResponse} - */ -proto.bandchain.v1.oracle.MultiProofResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.bandchain.v1.oracle.MultiProofResponse; - return proto.bandchain.v1.oracle.MultiProofResponse.deserializeBinaryFromReader(msg, reader); -}; - + * @return {!proto.bandchain.v1.oracle.MultiProofResult} + */ +proto.bandchain.v1.oracle.MultiProofResult.deserializeBinary = function ( + bytes, +) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.bandchain.v1.oracle.MultiProofResult() + return proto.bandchain.v1.oracle.MultiProofResult.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.bandchain.v1.oracle.MultiProofResponse} msg The message object to deserialize into. + * @param {!proto.bandchain.v1.oracle.MultiProofResult} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bandchain.v1.oracle.MultiProofResponse} + * @return {!proto.bandchain.v1.oracle.MultiProofResult} */ -proto.bandchain.v1.oracle.MultiProofResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.bandchain.v1.oracle.MultiProof; - reader.readMessage(value,proto.bandchain.v1.oracle.MultiProof.deserializeBinaryFromReader); - msg.setProof(value); - break; - case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setEvmProofBytes(value); - break; - default: - reader.skipField(); - break; +proto.bandchain.v1.oracle.MultiProofResult.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break + } + var field = reader.getFieldNumber() + switch (field) { + case 1: + var value = new proto.bandchain.v1.oracle.MultiProof() + reader.readMessage( + value, + proto.bandchain.v1.oracle.MultiProof.deserializeBinaryFromReader, + ) + msg.setProof(value) + break + case 2: + var value = /** @type {!Uint8Array} */ (reader.readBytes()) + msg.setEvmProofBytes(value) + break + default: + reader.skipField() + break + } } + return msg } - return msg; -}; - /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.bandchain.v1.oracle.MultiProofResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.bandchain.v1.oracle.MultiProofResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.bandchain.v1.oracle.MultiProofResult.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter() + proto.bandchain.v1.oracle.MultiProofResult.serializeBinaryToWriter( + this, + writer, + ) + return writer.getResultBuffer() + } /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.bandchain.v1.oracle.MultiProofResponse} message + * @param {!proto.bandchain.v1.oracle.MultiProofResult} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.bandchain.v1.oracle.MultiProofResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getProof(); +proto.bandchain.v1.oracle.MultiProofResult.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined + f = message.getProof() if (f != null) { writer.writeMessage( 1, f, - proto.bandchain.v1.oracle.MultiProof.serializeBinaryToWriter - ); + proto.bandchain.v1.oracle.MultiProof.serializeBinaryToWriter, + ) } - f = message.getEvmProofBytes_asU8(); + f = message.getEvmProofBytes_asU8() if (f.length > 0) { - writer.writeBytes( - 2, - f - ); + writer.writeBytes(2, f) } -}; - +} /** * optional MultiProof proof = 1; * @return {?proto.bandchain.v1.oracle.MultiProof} */ -proto.bandchain.v1.oracle.MultiProofResponse.prototype.getProof = function() { +proto.bandchain.v1.oracle.MultiProofResult.prototype.getProof = function () { return /** @type{?proto.bandchain.v1.oracle.MultiProof} */ ( - jspb.Message.getWrapperField(this, proto.bandchain.v1.oracle.MultiProof, 1)); -}; - + jspb.Message.getWrapperField(this, proto.bandchain.v1.oracle.MultiProof, 1) + ) +} /** * @param {?proto.bandchain.v1.oracle.MultiProof|undefined} value - * @return {!proto.bandchain.v1.oracle.MultiProofResponse} returns this -*/ -proto.bandchain.v1.oracle.MultiProofResponse.prototype.setProof = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - + * @return {!proto.bandchain.v1.oracle.MultiProofResult} returns this + */ +proto.bandchain.v1.oracle.MultiProofResult.prototype.setProof = function ( + value, +) { + return jspb.Message.setWrapperField(this, 1, value) +} /** * Clears the message field making it undefined. - * @return {!proto.bandchain.v1.oracle.MultiProofResponse} returns this + * @return {!proto.bandchain.v1.oracle.MultiProofResult} returns this */ -proto.bandchain.v1.oracle.MultiProofResponse.prototype.clearProof = function() { - return this.setProof(undefined); -}; - +proto.bandchain.v1.oracle.MultiProofResult.prototype.clearProof = function () { + return this.setProof(undefined) +} /** * Returns whether this field is set. * @return {boolean} */ -proto.bandchain.v1.oracle.MultiProofResponse.prototype.hasProof = function() { - return jspb.Message.getField(this, 1) != null; -}; - +proto.bandchain.v1.oracle.MultiProofResult.prototype.hasProof = function () { + return jspb.Message.getField(this, 1) != null +} /** * optional bytes evm_proof_bytes = 2; * @return {!(string|Uint8Array)} */ -proto.bandchain.v1.oracle.MultiProofResponse.prototype.getEvmProofBytes = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - +proto.bandchain.v1.oracle.MultiProofResult.prototype.getEvmProofBytes = + function () { + return /** @type {!(string|Uint8Array)} */ ( + jspb.Message.getFieldWithDefault(this, 2, '') + ) + } /** * optional bytes evm_proof_bytes = 2; * This is a type-conversion wrapper around `getEvmProofBytes()` * @return {string} */ -proto.bandchain.v1.oracle.MultiProofResponse.prototype.getEvmProofBytes_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getEvmProofBytes())); -}; - +proto.bandchain.v1.oracle.MultiProofResult.prototype.getEvmProofBytes_asB64 = + function () { + return /** @type {string} */ ( + jspb.Message.bytesAsB64(this.getEvmProofBytes()) + ) + } /** * optional bytes evm_proof_bytes = 2; @@ -1818,203 +2019,221 @@ proto.bandchain.v1.oracle.MultiProofResponse.prototype.getEvmProofBytes_asB64 = * This is a type-conversion wrapper around `getEvmProofBytes()` * @return {!Uint8Array} */ -proto.bandchain.v1.oracle.MultiProofResponse.prototype.getEvmProofBytes_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getEvmProofBytes())); -}; - +proto.bandchain.v1.oracle.MultiProofResult.prototype.getEvmProofBytes_asU8 = + function () { + return /** @type {!Uint8Array} */ ( + jspb.Message.bytesAsU8(this.getEvmProofBytes()) + ) + } /** * @param {!(string|Uint8Array)} value - * @return {!proto.bandchain.v1.oracle.MultiProofResponse} returns this + * @return {!proto.bandchain.v1.oracle.MultiProofResult} returns this */ -proto.bandchain.v1.oracle.MultiProofResponse.prototype.setEvmProofBytes = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); -}; - - - - +proto.bandchain.v1.oracle.MultiProofResult.prototype.setEvmProofBytes = + function (value) { + return jspb.Message.setProto3BytesField(this, 2, value) + } if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.bandchain.v1.oracle.CountProofResponse.prototype.toObject = function(opt_includeInstance) { - return proto.bandchain.v1.oracle.CountProofResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.bandchain.v1.oracle.CountProofResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bandchain.v1.oracle.CountProofResponse.toObject = function(includeInstance, msg) { - var f, obj = { - proof: (f = msg.getProof()) && proto.bandchain.v1.oracle.CountProof.toObject(includeInstance, f), - evmProofBytes: msg.getEvmProofBytes_asB64() - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bandchain.v1.oracle.CountProofResult.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.bandchain.v1.oracle.CountProofResult.toObject( + opt_includeInstance, + this, + ) + } + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bandchain.v1.oracle.CountProofResult} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bandchain.v1.oracle.CountProofResult.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = { + proof: + (f = msg.getProof()) && + proto.bandchain.v1.oracle.CountProof.toObject(includeInstance, f), + evmProofBytes: msg.getEvmProofBytes_asB64(), + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.bandchain.v1.oracle.CountProofResponse} - */ -proto.bandchain.v1.oracle.CountProofResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.bandchain.v1.oracle.CountProofResponse; - return proto.bandchain.v1.oracle.CountProofResponse.deserializeBinaryFromReader(msg, reader); -}; - + * @return {!proto.bandchain.v1.oracle.CountProofResult} + */ +proto.bandchain.v1.oracle.CountProofResult.deserializeBinary = function ( + bytes, +) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.bandchain.v1.oracle.CountProofResult() + return proto.bandchain.v1.oracle.CountProofResult.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.bandchain.v1.oracle.CountProofResponse} msg The message object to deserialize into. + * @param {!proto.bandchain.v1.oracle.CountProofResult} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bandchain.v1.oracle.CountProofResponse} + * @return {!proto.bandchain.v1.oracle.CountProofResult} */ -proto.bandchain.v1.oracle.CountProofResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.bandchain.v1.oracle.CountProof; - reader.readMessage(value,proto.bandchain.v1.oracle.CountProof.deserializeBinaryFromReader); - msg.setProof(value); - break; - case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setEvmProofBytes(value); - break; - default: - reader.skipField(); - break; +proto.bandchain.v1.oracle.CountProofResult.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break + } + var field = reader.getFieldNumber() + switch (field) { + case 1: + var value = new proto.bandchain.v1.oracle.CountProof() + reader.readMessage( + value, + proto.bandchain.v1.oracle.CountProof.deserializeBinaryFromReader, + ) + msg.setProof(value) + break + case 2: + var value = /** @type {!Uint8Array} */ (reader.readBytes()) + msg.setEvmProofBytes(value) + break + default: + reader.skipField() + break + } } + return msg } - return msg; -}; - /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.bandchain.v1.oracle.CountProofResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.bandchain.v1.oracle.CountProofResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.bandchain.v1.oracle.CountProofResult.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter() + proto.bandchain.v1.oracle.CountProofResult.serializeBinaryToWriter( + this, + writer, + ) + return writer.getResultBuffer() + } /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.bandchain.v1.oracle.CountProofResponse} message + * @param {!proto.bandchain.v1.oracle.CountProofResult} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.bandchain.v1.oracle.CountProofResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getProof(); +proto.bandchain.v1.oracle.CountProofResult.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined + f = message.getProof() if (f != null) { writer.writeMessage( 1, f, - proto.bandchain.v1.oracle.CountProof.serializeBinaryToWriter - ); + proto.bandchain.v1.oracle.CountProof.serializeBinaryToWriter, + ) } - f = message.getEvmProofBytes_asU8(); + f = message.getEvmProofBytes_asU8() if (f.length > 0) { - writer.writeBytes( - 2, - f - ); + writer.writeBytes(2, f) } -}; - +} /** * optional CountProof proof = 1; * @return {?proto.bandchain.v1.oracle.CountProof} */ -proto.bandchain.v1.oracle.CountProofResponse.prototype.getProof = function() { +proto.bandchain.v1.oracle.CountProofResult.prototype.getProof = function () { return /** @type{?proto.bandchain.v1.oracle.CountProof} */ ( - jspb.Message.getWrapperField(this, proto.bandchain.v1.oracle.CountProof, 1)); -}; - + jspb.Message.getWrapperField(this, proto.bandchain.v1.oracle.CountProof, 1) + ) +} /** * @param {?proto.bandchain.v1.oracle.CountProof|undefined} value - * @return {!proto.bandchain.v1.oracle.CountProofResponse} returns this -*/ -proto.bandchain.v1.oracle.CountProofResponse.prototype.setProof = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - + * @return {!proto.bandchain.v1.oracle.CountProofResult} returns this + */ +proto.bandchain.v1.oracle.CountProofResult.prototype.setProof = function ( + value, +) { + return jspb.Message.setWrapperField(this, 1, value) +} /** * Clears the message field making it undefined. - * @return {!proto.bandchain.v1.oracle.CountProofResponse} returns this + * @return {!proto.bandchain.v1.oracle.CountProofResult} returns this */ -proto.bandchain.v1.oracle.CountProofResponse.prototype.clearProof = function() { - return this.setProof(undefined); -}; - +proto.bandchain.v1.oracle.CountProofResult.prototype.clearProof = function () { + return this.setProof(undefined) +} /** * Returns whether this field is set. * @return {boolean} */ -proto.bandchain.v1.oracle.CountProofResponse.prototype.hasProof = function() { - return jspb.Message.getField(this, 1) != null; -}; - +proto.bandchain.v1.oracle.CountProofResult.prototype.hasProof = function () { + return jspb.Message.getField(this, 1) != null +} /** * optional bytes evm_proof_bytes = 2; * @return {!(string|Uint8Array)} */ -proto.bandchain.v1.oracle.CountProofResponse.prototype.getEvmProofBytes = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - +proto.bandchain.v1.oracle.CountProofResult.prototype.getEvmProofBytes = + function () { + return /** @type {!(string|Uint8Array)} */ ( + jspb.Message.getFieldWithDefault(this, 2, '') + ) + } /** * optional bytes evm_proof_bytes = 2; * This is a type-conversion wrapper around `getEvmProofBytes()` * @return {string} */ -proto.bandchain.v1.oracle.CountProofResponse.prototype.getEvmProofBytes_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getEvmProofBytes())); -}; - +proto.bandchain.v1.oracle.CountProofResult.prototype.getEvmProofBytes_asB64 = + function () { + return /** @type {string} */ ( + jspb.Message.bytesAsB64(this.getEvmProofBytes()) + ) + } /** * optional bytes evm_proof_bytes = 2; @@ -2023,77 +2242,94 @@ proto.bandchain.v1.oracle.CountProofResponse.prototype.getEvmProofBytes_asB64 = * This is a type-conversion wrapper around `getEvmProofBytes()` * @return {!Uint8Array} */ -proto.bandchain.v1.oracle.CountProofResponse.prototype.getEvmProofBytes_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getEvmProofBytes())); -}; - +proto.bandchain.v1.oracle.CountProofResult.prototype.getEvmProofBytes_asU8 = + function () { + return /** @type {!Uint8Array} */ ( + jspb.Message.bytesAsU8(this.getEvmProofBytes()) + ) + } /** * @param {!(string|Uint8Array)} value - * @return {!proto.bandchain.v1.oracle.CountProofResponse} returns this + * @return {!proto.bandchain.v1.oracle.CountProofResult} returns this */ -proto.bandchain.v1.oracle.CountProofResponse.prototype.setEvmProofBytes = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); -}; - - - - +proto.bandchain.v1.oracle.CountProofResult.prototype.setEvmProofBytes = + function (value) { + return jspb.Message.setProto3BytesField(this, 2, value) + } if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.bandchain.v1.oracle.SingleProof.prototype.toObject = function(opt_includeInstance) { - return proto.bandchain.v1.oracle.SingleProof.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.bandchain.v1.oracle.SingleProof} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bandchain.v1.oracle.SingleProof.toObject = function(includeInstance, msg) { - var f, obj = { - blockHeight: jspb.Message.getFieldWithDefault(msg, 1, 0), - oracleDataProof: (f = msg.getOracleDataProof()) && proto.bandchain.v1.oracle.OracleDataProof.toObject(includeInstance, f), - blockRelayProof: (f = msg.getBlockRelayProof()) && proto.bandchain.v1.oracle.BlockRelayProof.toObject(includeInstance, f) - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bandchain.v1.oracle.SingleProof.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.bandchain.v1.oracle.SingleProof.toObject( + opt_includeInstance, + this, + ) + } + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bandchain.v1.oracle.SingleProof} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bandchain.v1.oracle.SingleProof.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = { + blockHeight: jspb.Message.getFieldWithDefault(msg, 1, 0), + oracleDataProof: + (f = msg.getOracleDataProof()) && + proto.bandchain.v1.oracle.OracleDataProof.toObject( + includeInstance, + f, + ), + blockRelayProof: + (f = msg.getBlockRelayProof()) && + proto.bandchain.v1.oracle.BlockRelayProof.toObject( + includeInstance, + f, + ), + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.bandchain.v1.oracle.SingleProof} */ -proto.bandchain.v1.oracle.SingleProof.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.bandchain.v1.oracle.SingleProof; - return proto.bandchain.v1.oracle.SingleProof.deserializeBinaryFromReader(msg, reader); -}; - +proto.bandchain.v1.oracle.SingleProof.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.bandchain.v1.oracle.SingleProof() + return proto.bandchain.v1.oracle.SingleProof.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -2102,46 +2338,53 @@ proto.bandchain.v1.oracle.SingleProof.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.bandchain.v1.oracle.SingleProof} */ -proto.bandchain.v1.oracle.SingleProof.deserializeBinaryFromReader = function(msg, reader) { +proto.bandchain.v1.oracle.SingleProof.deserializeBinaryFromReader = function ( + msg, + reader, +) { while (reader.nextField()) { if (reader.isEndGroup()) { - break; + break } - var field = reader.getFieldNumber(); + var field = reader.getFieldNumber() switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint64()); - msg.setBlockHeight(value); - break; - case 2: - var value = new proto.bandchain.v1.oracle.OracleDataProof; - reader.readMessage(value,proto.bandchain.v1.oracle.OracleDataProof.deserializeBinaryFromReader); - msg.setOracleDataProof(value); - break; - case 3: - var value = new proto.bandchain.v1.oracle.BlockRelayProof; - reader.readMessage(value,proto.bandchain.v1.oracle.BlockRelayProof.deserializeBinaryFromReader); - msg.setBlockRelayProof(value); - break; - default: - reader.skipField(); - break; + case 1: + var value = /** @type {number} */ (reader.readUint64()) + msg.setBlockHeight(value) + break + case 2: + var value = new proto.bandchain.v1.oracle.OracleDataProof() + reader.readMessage( + value, + proto.bandchain.v1.oracle.OracleDataProof.deserializeBinaryFromReader, + ) + msg.setOracleDataProof(value) + break + case 3: + var value = new proto.bandchain.v1.oracle.BlockRelayProof() + reader.readMessage( + value, + proto.bandchain.v1.oracle.BlockRelayProof.deserializeBinaryFromReader, + ) + msg.setBlockRelayProof(value) + break + default: + reader.skipField() + break } } - return msg; -}; - + return msg +} /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.bandchain.v1.oracle.SingleProof.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.bandchain.v1.oracle.SingleProof.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.bandchain.v1.oracle.SingleProof.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter() + proto.bandchain.v1.oracle.SingleProof.serializeBinaryToWriter(this, writer) + return writer.getResultBuffer() +} /** * Serializes the given message to binary data (in protobuf wire @@ -2150,190 +2393,215 @@ proto.bandchain.v1.oracle.SingleProof.prototype.serializeBinary = function() { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.bandchain.v1.oracle.SingleProof.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getBlockHeight(); +proto.bandchain.v1.oracle.SingleProof.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined + f = message.getBlockHeight() if (f !== 0) { - writer.writeUint64( - 1, - f - ); + writer.writeUint64(1, f) } - f = message.getOracleDataProof(); + f = message.getOracleDataProof() if (f != null) { writer.writeMessage( 2, f, - proto.bandchain.v1.oracle.OracleDataProof.serializeBinaryToWriter - ); + proto.bandchain.v1.oracle.OracleDataProof.serializeBinaryToWriter, + ) } - f = message.getBlockRelayProof(); + f = message.getBlockRelayProof() if (f != null) { writer.writeMessage( 3, f, - proto.bandchain.v1.oracle.BlockRelayProof.serializeBinaryToWriter - ); + proto.bandchain.v1.oracle.BlockRelayProof.serializeBinaryToWriter, + ) } -}; - +} /** * optional uint64 block_height = 1; * @return {number} */ -proto.bandchain.v1.oracle.SingleProof.prototype.getBlockHeight = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - +proto.bandchain.v1.oracle.SingleProof.prototype.getBlockHeight = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)) +} /** * @param {number} value * @return {!proto.bandchain.v1.oracle.SingleProof} returns this */ -proto.bandchain.v1.oracle.SingleProof.prototype.setBlockHeight = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - +proto.bandchain.v1.oracle.SingleProof.prototype.setBlockHeight = function ( + value, +) { + return jspb.Message.setProto3IntField(this, 1, value) +} /** * optional OracleDataProof oracle_data_proof = 2; * @return {?proto.bandchain.v1.oracle.OracleDataProof} */ -proto.bandchain.v1.oracle.SingleProof.prototype.getOracleDataProof = function() { - return /** @type{?proto.bandchain.v1.oracle.OracleDataProof} */ ( - jspb.Message.getWrapperField(this, proto.bandchain.v1.oracle.OracleDataProof, 2)); -}; - +proto.bandchain.v1.oracle.SingleProof.prototype.getOracleDataProof = + function () { + return /** @type{?proto.bandchain.v1.oracle.OracleDataProof} */ ( + jspb.Message.getWrapperField( + this, + proto.bandchain.v1.oracle.OracleDataProof, + 2, + ) + ) + } /** * @param {?proto.bandchain.v1.oracle.OracleDataProof|undefined} value * @return {!proto.bandchain.v1.oracle.SingleProof} returns this -*/ -proto.bandchain.v1.oracle.SingleProof.prototype.setOracleDataProof = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - + */ +proto.bandchain.v1.oracle.SingleProof.prototype.setOracleDataProof = function ( + value, +) { + return jspb.Message.setWrapperField(this, 2, value) +} /** * Clears the message field making it undefined. * @return {!proto.bandchain.v1.oracle.SingleProof} returns this */ -proto.bandchain.v1.oracle.SingleProof.prototype.clearOracleDataProof = function() { - return this.setOracleDataProof(undefined); -}; - +proto.bandchain.v1.oracle.SingleProof.prototype.clearOracleDataProof = + function () { + return this.setOracleDataProof(undefined) + } /** * Returns whether this field is set. * @return {boolean} */ -proto.bandchain.v1.oracle.SingleProof.prototype.hasOracleDataProof = function() { - return jspb.Message.getField(this, 2) != null; -}; - +proto.bandchain.v1.oracle.SingleProof.prototype.hasOracleDataProof = + function () { + return jspb.Message.getField(this, 2) != null + } /** * optional BlockRelayProof block_relay_proof = 3; * @return {?proto.bandchain.v1.oracle.BlockRelayProof} */ -proto.bandchain.v1.oracle.SingleProof.prototype.getBlockRelayProof = function() { - return /** @type{?proto.bandchain.v1.oracle.BlockRelayProof} */ ( - jspb.Message.getWrapperField(this, proto.bandchain.v1.oracle.BlockRelayProof, 3)); -}; - +proto.bandchain.v1.oracle.SingleProof.prototype.getBlockRelayProof = + function () { + return /** @type{?proto.bandchain.v1.oracle.BlockRelayProof} */ ( + jspb.Message.getWrapperField( + this, + proto.bandchain.v1.oracle.BlockRelayProof, + 3, + ) + ) + } /** * @param {?proto.bandchain.v1.oracle.BlockRelayProof|undefined} value * @return {!proto.bandchain.v1.oracle.SingleProof} returns this -*/ -proto.bandchain.v1.oracle.SingleProof.prototype.setBlockRelayProof = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - + */ +proto.bandchain.v1.oracle.SingleProof.prototype.setBlockRelayProof = function ( + value, +) { + return jspb.Message.setWrapperField(this, 3, value) +} /** * Clears the message field making it undefined. * @return {!proto.bandchain.v1.oracle.SingleProof} returns this */ -proto.bandchain.v1.oracle.SingleProof.prototype.clearBlockRelayProof = function() { - return this.setBlockRelayProof(undefined); -}; - +proto.bandchain.v1.oracle.SingleProof.prototype.clearBlockRelayProof = + function () { + return this.setBlockRelayProof(undefined) + } /** * Returns whether this field is set. * @return {boolean} */ -proto.bandchain.v1.oracle.SingleProof.prototype.hasBlockRelayProof = function() { - return jspb.Message.getField(this, 3) != null; -}; - - +proto.bandchain.v1.oracle.SingleProof.prototype.hasBlockRelayProof = + function () { + return jspb.Message.getField(this, 3) != null + } /** * List of repeated fields within this message type. * @private {!Array} * @const */ -proto.bandchain.v1.oracle.MultiProof.repeatedFields_ = [2]; - - +proto.bandchain.v1.oracle.MultiProof.repeatedFields_ = [2] if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.bandchain.v1.oracle.MultiProof.prototype.toObject = function(opt_includeInstance) { - return proto.bandchain.v1.oracle.MultiProof.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.bandchain.v1.oracle.MultiProof} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bandchain.v1.oracle.MultiProof.toObject = function(includeInstance, msg) { - var f, obj = { - blockHeight: jspb.Message.getFieldWithDefault(msg, 1, 0), - oracleDataMultiProofList: jspb.Message.toObjectList(msg.getOracleDataMultiProofList(), - proto.bandchain.v1.oracle.OracleDataProof.toObject, includeInstance), - blockRelayProof: (f = msg.getBlockRelayProof()) && proto.bandchain.v1.oracle.BlockRelayProof.toObject(includeInstance, f) - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bandchain.v1.oracle.MultiProof.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.bandchain.v1.oracle.MultiProof.toObject( + opt_includeInstance, + this, + ) + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bandchain.v1.oracle.MultiProof} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bandchain.v1.oracle.MultiProof.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = { + blockHeight: jspb.Message.getFieldWithDefault(msg, 1, 0), + oracleDataMultiProofList: jspb.Message.toObjectList( + msg.getOracleDataMultiProofList(), + proto.bandchain.v1.oracle.OracleDataProof.toObject, + includeInstance, + ), + blockRelayProof: + (f = msg.getBlockRelayProof()) && + proto.bandchain.v1.oracle.BlockRelayProof.toObject( + includeInstance, + f, + ), + } + + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.bandchain.v1.oracle.MultiProof} */ -proto.bandchain.v1.oracle.MultiProof.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.bandchain.v1.oracle.MultiProof; - return proto.bandchain.v1.oracle.MultiProof.deserializeBinaryFromReader(msg, reader); -}; - +proto.bandchain.v1.oracle.MultiProof.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.bandchain.v1.oracle.MultiProof() + return proto.bandchain.v1.oracle.MultiProof.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -2342,46 +2610,53 @@ proto.bandchain.v1.oracle.MultiProof.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.bandchain.v1.oracle.MultiProof} */ -proto.bandchain.v1.oracle.MultiProof.deserializeBinaryFromReader = function(msg, reader) { +proto.bandchain.v1.oracle.MultiProof.deserializeBinaryFromReader = function ( + msg, + reader, +) { while (reader.nextField()) { if (reader.isEndGroup()) { - break; + break } - var field = reader.getFieldNumber(); + var field = reader.getFieldNumber() switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint64()); - msg.setBlockHeight(value); - break; - case 2: - var value = new proto.bandchain.v1.oracle.OracleDataProof; - reader.readMessage(value,proto.bandchain.v1.oracle.OracleDataProof.deserializeBinaryFromReader); - msg.addOracleDataMultiProof(value); - break; - case 3: - var value = new proto.bandchain.v1.oracle.BlockRelayProof; - reader.readMessage(value,proto.bandchain.v1.oracle.BlockRelayProof.deserializeBinaryFromReader); - msg.setBlockRelayProof(value); - break; - default: - reader.skipField(); - break; + case 1: + var value = /** @type {number} */ (reader.readUint64()) + msg.setBlockHeight(value) + break + case 2: + var value = new proto.bandchain.v1.oracle.OracleDataProof() + reader.readMessage( + value, + proto.bandchain.v1.oracle.OracleDataProof.deserializeBinaryFromReader, + ) + msg.addOracleDataMultiProof(value) + break + case 3: + var value = new proto.bandchain.v1.oracle.BlockRelayProof() + reader.readMessage( + value, + proto.bandchain.v1.oracle.BlockRelayProof.deserializeBinaryFromReader, + ) + msg.setBlockRelayProof(value) + break + default: + reader.skipField() + break } } - return msg; -}; - + return msg +} /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.bandchain.v1.oracle.MultiProof.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.bandchain.v1.oracle.MultiProof.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.bandchain.v1.oracle.MultiProof.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter() + proto.bandchain.v1.oracle.MultiProof.serializeBinaryToWriter(this, writer) + return writer.getResultBuffer() +} /** * Serializes the given message to binary data (in protobuf wire @@ -2390,183 +2665,215 @@ proto.bandchain.v1.oracle.MultiProof.prototype.serializeBinary = function() { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.bandchain.v1.oracle.MultiProof.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getBlockHeight(); +proto.bandchain.v1.oracle.MultiProof.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined + f = message.getBlockHeight() if (f !== 0) { - writer.writeUint64( - 1, - f - ); + writer.writeUint64(1, f) } - f = message.getOracleDataMultiProofList(); + f = message.getOracleDataMultiProofList() if (f.length > 0) { writer.writeRepeatedMessage( 2, f, - proto.bandchain.v1.oracle.OracleDataProof.serializeBinaryToWriter - ); + proto.bandchain.v1.oracle.OracleDataProof.serializeBinaryToWriter, + ) } - f = message.getBlockRelayProof(); + f = message.getBlockRelayProof() if (f != null) { writer.writeMessage( 3, f, - proto.bandchain.v1.oracle.BlockRelayProof.serializeBinaryToWriter - ); + proto.bandchain.v1.oracle.BlockRelayProof.serializeBinaryToWriter, + ) } -}; - +} /** * optional uint64 block_height = 1; * @return {number} */ -proto.bandchain.v1.oracle.MultiProof.prototype.getBlockHeight = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - +proto.bandchain.v1.oracle.MultiProof.prototype.getBlockHeight = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)) +} /** * @param {number} value * @return {!proto.bandchain.v1.oracle.MultiProof} returns this */ -proto.bandchain.v1.oracle.MultiProof.prototype.setBlockHeight = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - +proto.bandchain.v1.oracle.MultiProof.prototype.setBlockHeight = function ( + value, +) { + return jspb.Message.setProto3IntField(this, 1, value) +} /** * repeated OracleDataProof oracle_data_multi_proof = 2; * @return {!Array} */ -proto.bandchain.v1.oracle.MultiProof.prototype.getOracleDataMultiProofList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.bandchain.v1.oracle.OracleDataProof, 2)); -}; - +proto.bandchain.v1.oracle.MultiProof.prototype.getOracleDataMultiProofList = + function () { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField( + this, + proto.bandchain.v1.oracle.OracleDataProof, + 2, + ) + ) + } /** * @param {!Array} value * @return {!proto.bandchain.v1.oracle.MultiProof} returns this -*/ -proto.bandchain.v1.oracle.MultiProof.prototype.setOracleDataMultiProofList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - + */ +proto.bandchain.v1.oracle.MultiProof.prototype.setOracleDataMultiProofList = + function (value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value) + } /** * @param {!proto.bandchain.v1.oracle.OracleDataProof=} opt_value * @param {number=} opt_index * @return {!proto.bandchain.v1.oracle.OracleDataProof} */ -proto.bandchain.v1.oracle.MultiProof.prototype.addOracleDataMultiProof = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.bandchain.v1.oracle.OracleDataProof, opt_index); -}; - +proto.bandchain.v1.oracle.MultiProof.prototype.addOracleDataMultiProof = + function (opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField( + this, + 2, + opt_value, + proto.bandchain.v1.oracle.OracleDataProof, + opt_index, + ) + } /** * Clears the list making it empty but non-null. * @return {!proto.bandchain.v1.oracle.MultiProof} returns this */ -proto.bandchain.v1.oracle.MultiProof.prototype.clearOracleDataMultiProofList = function() { - return this.setOracleDataMultiProofList([]); -}; - +proto.bandchain.v1.oracle.MultiProof.prototype.clearOracleDataMultiProofList = + function () { + return this.setOracleDataMultiProofList([]) + } /** * optional BlockRelayProof block_relay_proof = 3; * @return {?proto.bandchain.v1.oracle.BlockRelayProof} */ -proto.bandchain.v1.oracle.MultiProof.prototype.getBlockRelayProof = function() { - return /** @type{?proto.bandchain.v1.oracle.BlockRelayProof} */ ( - jspb.Message.getWrapperField(this, proto.bandchain.v1.oracle.BlockRelayProof, 3)); -}; - +proto.bandchain.v1.oracle.MultiProof.prototype.getBlockRelayProof = + function () { + return /** @type{?proto.bandchain.v1.oracle.BlockRelayProof} */ ( + jspb.Message.getWrapperField( + this, + proto.bandchain.v1.oracle.BlockRelayProof, + 3, + ) + ) + } /** * @param {?proto.bandchain.v1.oracle.BlockRelayProof|undefined} value * @return {!proto.bandchain.v1.oracle.MultiProof} returns this -*/ -proto.bandchain.v1.oracle.MultiProof.prototype.setBlockRelayProof = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - + */ +proto.bandchain.v1.oracle.MultiProof.prototype.setBlockRelayProof = function ( + value, +) { + return jspb.Message.setWrapperField(this, 3, value) +} /** * Clears the message field making it undefined. * @return {!proto.bandchain.v1.oracle.MultiProof} returns this */ -proto.bandchain.v1.oracle.MultiProof.prototype.clearBlockRelayProof = function() { - return this.setBlockRelayProof(undefined); -}; - +proto.bandchain.v1.oracle.MultiProof.prototype.clearBlockRelayProof = + function () { + return this.setBlockRelayProof(undefined) + } /** * Returns whether this field is set. * @return {boolean} */ -proto.bandchain.v1.oracle.MultiProof.prototype.hasBlockRelayProof = function() { - return jspb.Message.getField(this, 3) != null; -}; - - - - +proto.bandchain.v1.oracle.MultiProof.prototype.hasBlockRelayProof = + function () { + return jspb.Message.getField(this, 3) != null + } if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.bandchain.v1.oracle.CountProof.prototype.toObject = function(opt_includeInstance) { - return proto.bandchain.v1.oracle.CountProof.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.bandchain.v1.oracle.CountProof} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bandchain.v1.oracle.CountProof.toObject = function(includeInstance, msg) { - var f, obj = { - blockHeight: jspb.Message.getFieldWithDefault(msg, 1, 0), - countProof: (f = msg.getCountProof()) && proto.bandchain.v1.oracle.RequestsCountProof.toObject(includeInstance, f), - blockRelayProof: (f = msg.getBlockRelayProof()) && proto.bandchain.v1.oracle.BlockRelayProof.toObject(includeInstance, f) - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bandchain.v1.oracle.CountProof.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.bandchain.v1.oracle.CountProof.toObject( + opt_includeInstance, + this, + ) + } + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bandchain.v1.oracle.CountProof} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bandchain.v1.oracle.CountProof.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = { + blockHeight: jspb.Message.getFieldWithDefault(msg, 1, 0), + countProof: + (f = msg.getCountProof()) && + proto.bandchain.v1.oracle.RequestsCountProof.toObject( + includeInstance, + f, + ), + blockRelayProof: + (f = msg.getBlockRelayProof()) && + proto.bandchain.v1.oracle.BlockRelayProof.toObject( + includeInstance, + f, + ), + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.bandchain.v1.oracle.CountProof} */ -proto.bandchain.v1.oracle.CountProof.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.bandchain.v1.oracle.CountProof; - return proto.bandchain.v1.oracle.CountProof.deserializeBinaryFromReader(msg, reader); -}; - +proto.bandchain.v1.oracle.CountProof.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.bandchain.v1.oracle.CountProof() + return proto.bandchain.v1.oracle.CountProof.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -2575,46 +2882,54 @@ proto.bandchain.v1.oracle.CountProof.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.bandchain.v1.oracle.CountProof} */ -proto.bandchain.v1.oracle.CountProof.deserializeBinaryFromReader = function(msg, reader) { +proto.bandchain.v1.oracle.CountProof.deserializeBinaryFromReader = function ( + msg, + reader, +) { while (reader.nextField()) { if (reader.isEndGroup()) { - break; + break } - var field = reader.getFieldNumber(); + var field = reader.getFieldNumber() switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint64()); - msg.setBlockHeight(value); - break; - case 2: - var value = new proto.bandchain.v1.oracle.RequestsCountProof; - reader.readMessage(value,proto.bandchain.v1.oracle.RequestsCountProof.deserializeBinaryFromReader); - msg.setCountProof(value); - break; - case 3: - var value = new proto.bandchain.v1.oracle.BlockRelayProof; - reader.readMessage(value,proto.bandchain.v1.oracle.BlockRelayProof.deserializeBinaryFromReader); - msg.setBlockRelayProof(value); - break; - default: - reader.skipField(); - break; + case 1: + var value = /** @type {number} */ (reader.readUint64()) + msg.setBlockHeight(value) + break + case 2: + var value = new proto.bandchain.v1.oracle.RequestsCountProof() + reader.readMessage( + value, + proto.bandchain.v1.oracle.RequestsCountProof + .deserializeBinaryFromReader, + ) + msg.setCountProof(value) + break + case 3: + var value = new proto.bandchain.v1.oracle.BlockRelayProof() + reader.readMessage( + value, + proto.bandchain.v1.oracle.BlockRelayProof.deserializeBinaryFromReader, + ) + msg.setBlockRelayProof(value) + break + default: + reader.skipField() + break } } - return msg; -}; - + return msg +} /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.bandchain.v1.oracle.CountProof.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.bandchain.v1.oracle.CountProof.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.bandchain.v1.oracle.CountProof.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter() + proto.bandchain.v1.oracle.CountProof.serializeBinaryToWriter(this, writer) + return writer.getResultBuffer() +} /** * Serializes the given message to binary data (in protobuf wire @@ -2623,190 +2938,209 @@ proto.bandchain.v1.oracle.CountProof.prototype.serializeBinary = function() { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.bandchain.v1.oracle.CountProof.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getBlockHeight(); +proto.bandchain.v1.oracle.CountProof.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined + f = message.getBlockHeight() if (f !== 0) { - writer.writeUint64( - 1, - f - ); + writer.writeUint64(1, f) } - f = message.getCountProof(); + f = message.getCountProof() if (f != null) { writer.writeMessage( 2, f, - proto.bandchain.v1.oracle.RequestsCountProof.serializeBinaryToWriter - ); + proto.bandchain.v1.oracle.RequestsCountProof.serializeBinaryToWriter, + ) } - f = message.getBlockRelayProof(); + f = message.getBlockRelayProof() if (f != null) { writer.writeMessage( 3, f, - proto.bandchain.v1.oracle.BlockRelayProof.serializeBinaryToWriter - ); + proto.bandchain.v1.oracle.BlockRelayProof.serializeBinaryToWriter, + ) } -}; - +} /** * optional uint64 block_height = 1; * @return {number} */ -proto.bandchain.v1.oracle.CountProof.prototype.getBlockHeight = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - +proto.bandchain.v1.oracle.CountProof.prototype.getBlockHeight = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)) +} /** * @param {number} value * @return {!proto.bandchain.v1.oracle.CountProof} returns this */ -proto.bandchain.v1.oracle.CountProof.prototype.setBlockHeight = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - +proto.bandchain.v1.oracle.CountProof.prototype.setBlockHeight = function ( + value, +) { + return jspb.Message.setProto3IntField(this, 1, value) +} /** * optional RequestsCountProof count_proof = 2; * @return {?proto.bandchain.v1.oracle.RequestsCountProof} */ -proto.bandchain.v1.oracle.CountProof.prototype.getCountProof = function() { +proto.bandchain.v1.oracle.CountProof.prototype.getCountProof = function () { return /** @type{?proto.bandchain.v1.oracle.RequestsCountProof} */ ( - jspb.Message.getWrapperField(this, proto.bandchain.v1.oracle.RequestsCountProof, 2)); -}; - + jspb.Message.getWrapperField( + this, + proto.bandchain.v1.oracle.RequestsCountProof, + 2, + ) + ) +} /** * @param {?proto.bandchain.v1.oracle.RequestsCountProof|undefined} value * @return {!proto.bandchain.v1.oracle.CountProof} returns this -*/ -proto.bandchain.v1.oracle.CountProof.prototype.setCountProof = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - + */ +proto.bandchain.v1.oracle.CountProof.prototype.setCountProof = function ( + value, +) { + return jspb.Message.setWrapperField(this, 2, value) +} /** * Clears the message field making it undefined. * @return {!proto.bandchain.v1.oracle.CountProof} returns this */ -proto.bandchain.v1.oracle.CountProof.prototype.clearCountProof = function() { - return this.setCountProof(undefined); -}; - +proto.bandchain.v1.oracle.CountProof.prototype.clearCountProof = function () { + return this.setCountProof(undefined) +} /** * Returns whether this field is set. * @return {boolean} */ -proto.bandchain.v1.oracle.CountProof.prototype.hasCountProof = function() { - return jspb.Message.getField(this, 2) != null; -}; - +proto.bandchain.v1.oracle.CountProof.prototype.hasCountProof = function () { + return jspb.Message.getField(this, 2) != null +} /** * optional BlockRelayProof block_relay_proof = 3; * @return {?proto.bandchain.v1.oracle.BlockRelayProof} */ -proto.bandchain.v1.oracle.CountProof.prototype.getBlockRelayProof = function() { - return /** @type{?proto.bandchain.v1.oracle.BlockRelayProof} */ ( - jspb.Message.getWrapperField(this, proto.bandchain.v1.oracle.BlockRelayProof, 3)); -}; - +proto.bandchain.v1.oracle.CountProof.prototype.getBlockRelayProof = + function () { + return /** @type{?proto.bandchain.v1.oracle.BlockRelayProof} */ ( + jspb.Message.getWrapperField( + this, + proto.bandchain.v1.oracle.BlockRelayProof, + 3, + ) + ) + } /** * @param {?proto.bandchain.v1.oracle.BlockRelayProof|undefined} value * @return {!proto.bandchain.v1.oracle.CountProof} returns this -*/ -proto.bandchain.v1.oracle.CountProof.prototype.setBlockRelayProof = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - + */ +proto.bandchain.v1.oracle.CountProof.prototype.setBlockRelayProof = function ( + value, +) { + return jspb.Message.setWrapperField(this, 3, value) +} /** * Clears the message field making it undefined. * @return {!proto.bandchain.v1.oracle.CountProof} returns this */ -proto.bandchain.v1.oracle.CountProof.prototype.clearBlockRelayProof = function() { - return this.setBlockRelayProof(undefined); -}; - +proto.bandchain.v1.oracle.CountProof.prototype.clearBlockRelayProof = + function () { + return this.setBlockRelayProof(undefined) + } /** * Returns whether this field is set. * @return {boolean} */ -proto.bandchain.v1.oracle.CountProof.prototype.hasBlockRelayProof = function() { - return jspb.Message.getField(this, 3) != null; -}; - - +proto.bandchain.v1.oracle.CountProof.prototype.hasBlockRelayProof = + function () { + return jspb.Message.getField(this, 3) != null + } /** * List of repeated fields within this message type. * @private {!Array} * @const */ -proto.bandchain.v1.oracle.OracleDataProof.repeatedFields_ = [3]; - - +proto.bandchain.v1.oracle.OracleDataProof.repeatedFields_ = [3] if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.bandchain.v1.oracle.OracleDataProof.prototype.toObject = function(opt_includeInstance) { - return proto.bandchain.v1.oracle.OracleDataProof.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.bandchain.v1.oracle.OracleDataProof} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bandchain.v1.oracle.OracleDataProof.toObject = function(includeInstance, msg) { - var f, obj = { - result: (f = msg.getResult()) && oracle_v1_oracle_pb.Result.toObject(includeInstance, f), - version: jspb.Message.getFieldWithDefault(msg, 2, 0), - merklePathsList: jspb.Message.toObjectList(msg.getMerklePathsList(), - proto.bandchain.v1.oracle.IAVLMerklePath.toObject, includeInstance) - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bandchain.v1.oracle.OracleDataProof.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.bandchain.v1.oracle.OracleDataProof.toObject( + opt_includeInstance, + this, + ) + } + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bandchain.v1.oracle.OracleDataProof} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bandchain.v1.oracle.OracleDataProof.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = { + result: + (f = msg.getResult()) && + oracle_v1_oracle_pb.Result.toObject(includeInstance, f), + version: jspb.Message.getFieldWithDefault(msg, 2, 0), + merklePathsList: jspb.Message.toObjectList( + msg.getMerklePathsList(), + proto.bandchain.v1.oracle.IAVLMerklePath.toObject, + includeInstance, + ), + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.bandchain.v1.oracle.OracleDataProof} */ -proto.bandchain.v1.oracle.OracleDataProof.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.bandchain.v1.oracle.OracleDataProof; - return proto.bandchain.v1.oracle.OracleDataProof.deserializeBinaryFromReader(msg, reader); -}; - +proto.bandchain.v1.oracle.OracleDataProof.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.bandchain.v1.oracle.OracleDataProof() + return proto.bandchain.v1.oracle.OracleDataProof.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -2815,46 +3149,56 @@ proto.bandchain.v1.oracle.OracleDataProof.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.bandchain.v1.oracle.OracleDataProof} */ -proto.bandchain.v1.oracle.OracleDataProof.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new oracle_v1_oracle_pb.Result; - reader.readMessage(value,oracle_v1_oracle_pb.Result.deserializeBinaryFromReader); - msg.setResult(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint64()); - msg.setVersion(value); - break; - case 3: - var value = new proto.bandchain.v1.oracle.IAVLMerklePath; - reader.readMessage(value,proto.bandchain.v1.oracle.IAVLMerklePath.deserializeBinaryFromReader); - msg.addMerklePaths(value); - break; - default: - reader.skipField(); - break; +proto.bandchain.v1.oracle.OracleDataProof.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break + } + var field = reader.getFieldNumber() + switch (field) { + case 1: + var value = new oracle_v1_oracle_pb.Result() + reader.readMessage( + value, + oracle_v1_oracle_pb.Result.deserializeBinaryFromReader, + ) + msg.setResult(value) + break + case 2: + var value = /** @type {number} */ (reader.readUint64()) + msg.setVersion(value) + break + case 3: + var value = new proto.bandchain.v1.oracle.IAVLMerklePath() + reader.readMessage( + value, + proto.bandchain.v1.oracle.IAVLMerklePath + .deserializeBinaryFromReader, + ) + msg.addMerklePaths(value) + break + default: + reader.skipField() + break + } } + return msg } - return msg; -}; - /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.bandchain.v1.oracle.OracleDataProof.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.bandchain.v1.oracle.OracleDataProof.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.bandchain.v1.oracle.OracleDataProof.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter() + proto.bandchain.v1.oracle.OracleDataProof.serializeBinaryToWriter( + this, + writer, + ) + return writer.getResultBuffer() + } /** * Serializes the given message to binary data (in protobuf wire @@ -2863,185 +3207,202 @@ proto.bandchain.v1.oracle.OracleDataProof.prototype.serializeBinary = function() * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.bandchain.v1.oracle.OracleDataProof.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getResult(); +proto.bandchain.v1.oracle.OracleDataProof.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined + f = message.getResult() if (f != null) { writer.writeMessage( 1, f, - oracle_v1_oracle_pb.Result.serializeBinaryToWriter - ); + oracle_v1_oracle_pb.Result.serializeBinaryToWriter, + ) } - f = message.getVersion(); + f = message.getVersion() if (f !== 0) { - writer.writeUint64( - 2, - f - ); + writer.writeUint64(2, f) } - f = message.getMerklePathsList(); + f = message.getMerklePathsList() if (f.length > 0) { writer.writeRepeatedMessage( 3, f, - proto.bandchain.v1.oracle.IAVLMerklePath.serializeBinaryToWriter - ); + proto.bandchain.v1.oracle.IAVLMerklePath.serializeBinaryToWriter, + ) } -}; - +} /** * optional oracle.v1.Result result = 1; * @return {?proto.oracle.v1.Result} */ -proto.bandchain.v1.oracle.OracleDataProof.prototype.getResult = function() { +proto.bandchain.v1.oracle.OracleDataProof.prototype.getResult = function () { return /** @type{?proto.oracle.v1.Result} */ ( - jspb.Message.getWrapperField(this, oracle_v1_oracle_pb.Result, 1)); -}; - + jspb.Message.getWrapperField(this, oracle_v1_oracle_pb.Result, 1) + ) +} /** * @param {?proto.oracle.v1.Result|undefined} value * @return {!proto.bandchain.v1.oracle.OracleDataProof} returns this -*/ -proto.bandchain.v1.oracle.OracleDataProof.prototype.setResult = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - + */ +proto.bandchain.v1.oracle.OracleDataProof.prototype.setResult = function ( + value, +) { + return jspb.Message.setWrapperField(this, 1, value) +} /** * Clears the message field making it undefined. * @return {!proto.bandchain.v1.oracle.OracleDataProof} returns this */ -proto.bandchain.v1.oracle.OracleDataProof.prototype.clearResult = function() { - return this.setResult(undefined); -}; - +proto.bandchain.v1.oracle.OracleDataProof.prototype.clearResult = function () { + return this.setResult(undefined) +} /** * Returns whether this field is set. * @return {boolean} */ -proto.bandchain.v1.oracle.OracleDataProof.prototype.hasResult = function() { - return jspb.Message.getField(this, 1) != null; -}; - +proto.bandchain.v1.oracle.OracleDataProof.prototype.hasResult = function () { + return jspb.Message.getField(this, 1) != null +} /** * optional uint64 version = 2; * @return {number} */ -proto.bandchain.v1.oracle.OracleDataProof.prototype.getVersion = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - +proto.bandchain.v1.oracle.OracleDataProof.prototype.getVersion = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)) +} /** * @param {number} value * @return {!proto.bandchain.v1.oracle.OracleDataProof} returns this */ -proto.bandchain.v1.oracle.OracleDataProof.prototype.setVersion = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - +proto.bandchain.v1.oracle.OracleDataProof.prototype.setVersion = function ( + value, +) { + return jspb.Message.setProto3IntField(this, 2, value) +} /** * repeated IAVLMerklePath merkle_paths = 3; * @return {!Array} */ -proto.bandchain.v1.oracle.OracleDataProof.prototype.getMerklePathsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.bandchain.v1.oracle.IAVLMerklePath, 3)); -}; - +proto.bandchain.v1.oracle.OracleDataProof.prototype.getMerklePathsList = + function () { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField( + this, + proto.bandchain.v1.oracle.IAVLMerklePath, + 3, + ) + ) + } /** * @param {!Array} value * @return {!proto.bandchain.v1.oracle.OracleDataProof} returns this -*/ -proto.bandchain.v1.oracle.OracleDataProof.prototype.setMerklePathsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - + */ +proto.bandchain.v1.oracle.OracleDataProof.prototype.setMerklePathsList = + function (value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value) + } /** * @param {!proto.bandchain.v1.oracle.IAVLMerklePath=} opt_value * @param {number=} opt_index * @return {!proto.bandchain.v1.oracle.IAVLMerklePath} */ -proto.bandchain.v1.oracle.OracleDataProof.prototype.addMerklePaths = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.bandchain.v1.oracle.IAVLMerklePath, opt_index); -}; - +proto.bandchain.v1.oracle.OracleDataProof.prototype.addMerklePaths = function ( + opt_value, + opt_index, +) { + return jspb.Message.addToRepeatedWrapperField( + this, + 3, + opt_value, + proto.bandchain.v1.oracle.IAVLMerklePath, + opt_index, + ) +} /** * Clears the list making it empty but non-null. * @return {!proto.bandchain.v1.oracle.OracleDataProof} returns this */ -proto.bandchain.v1.oracle.OracleDataProof.prototype.clearMerklePathsList = function() { - return this.setMerklePathsList([]); -}; - - - - +proto.bandchain.v1.oracle.OracleDataProof.prototype.clearMerklePathsList = + function () { + return this.setMerklePathsList([]) + } if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.bandchain.v1.oracle.IAVLMerklePath.prototype.toObject = function(opt_includeInstance) { - return proto.bandchain.v1.oracle.IAVLMerklePath.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.bandchain.v1.oracle.IAVLMerklePath} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bandchain.v1.oracle.IAVLMerklePath.toObject = function(includeInstance, msg) { - var f, obj = { - isDataOnRight: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), - subtreeHeight: jspb.Message.getFieldWithDefault(msg, 2, 0), - subtreeSize: jspb.Message.getFieldWithDefault(msg, 3, 0), - subtreeVersion: jspb.Message.getFieldWithDefault(msg, 4, 0), - siblingHash: msg.getSiblingHash_asB64() - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bandchain.v1.oracle.IAVLMerklePath.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.bandchain.v1.oracle.IAVLMerklePath.toObject( + opt_includeInstance, + this, + ) + } + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bandchain.v1.oracle.IAVLMerklePath} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bandchain.v1.oracle.IAVLMerklePath.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = { + isDataOnRight: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), + subtreeHeight: jspb.Message.getFieldWithDefault(msg, 2, 0), + subtreeSize: jspb.Message.getFieldWithDefault(msg, 3, 0), + subtreeVersion: jspb.Message.getFieldWithDefault(msg, 4, 0), + siblingHash: msg.getSiblingHash_asB64(), + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.bandchain.v1.oracle.IAVLMerklePath} */ -proto.bandchain.v1.oracle.IAVLMerklePath.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.bandchain.v1.oracle.IAVLMerklePath; - return proto.bandchain.v1.oracle.IAVLMerklePath.deserializeBinaryFromReader(msg, reader); -}; - +proto.bandchain.v1.oracle.IAVLMerklePath.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.bandchain.v1.oracle.IAVLMerklePath() + return proto.bandchain.v1.oracle.IAVLMerklePath.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -3050,52 +3411,55 @@ proto.bandchain.v1.oracle.IAVLMerklePath.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.bandchain.v1.oracle.IAVLMerklePath} */ -proto.bandchain.v1.oracle.IAVLMerklePath.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsDataOnRight(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setSubtreeHeight(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setSubtreeSize(value); - break; - case 4: - var value = /** @type {number} */ (reader.readUint64()); - msg.setSubtreeVersion(value); - break; - case 5: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setSiblingHash(value); - break; - default: - reader.skipField(); - break; +proto.bandchain.v1.oracle.IAVLMerklePath.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break + } + var field = reader.getFieldNumber() + switch (field) { + case 1: + var value = /** @type {boolean} */ (reader.readBool()) + msg.setIsDataOnRight(value) + break + case 2: + var value = /** @type {number} */ (reader.readUint32()) + msg.setSubtreeHeight(value) + break + case 3: + var value = /** @type {number} */ (reader.readUint64()) + msg.setSubtreeSize(value) + break + case 4: + var value = /** @type {number} */ (reader.readUint64()) + msg.setSubtreeVersion(value) + break + case 5: + var value = /** @type {!Uint8Array} */ (reader.readBytes()) + msg.setSiblingHash(value) + break + default: + reader.skipField() + break + } } + return msg } - return msg; -}; - /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.bandchain.v1.oracle.IAVLMerklePath.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.bandchain.v1.oracle.IAVLMerklePath.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.bandchain.v1.oracle.IAVLMerklePath.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter() + proto.bandchain.v1.oracle.IAVLMerklePath.serializeBinaryToWriter( + this, + writer, + ) + return writer.getResultBuffer() + } /** * Serializes the given message to binary data (in protobuf wire @@ -3104,137 +3468,132 @@ proto.bandchain.v1.oracle.IAVLMerklePath.prototype.serializeBinary = function() * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.bandchain.v1.oracle.IAVLMerklePath.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIsDataOnRight(); +proto.bandchain.v1.oracle.IAVLMerklePath.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined + f = message.getIsDataOnRight() if (f) { - writer.writeBool( - 1, - f - ); + writer.writeBool(1, f) } - f = message.getSubtreeHeight(); + f = message.getSubtreeHeight() if (f !== 0) { - writer.writeUint32( - 2, - f - ); + writer.writeUint32(2, f) } - f = message.getSubtreeSize(); + f = message.getSubtreeSize() if (f !== 0) { - writer.writeUint64( - 3, - f - ); + writer.writeUint64(3, f) } - f = message.getSubtreeVersion(); + f = message.getSubtreeVersion() if (f !== 0) { - writer.writeUint64( - 4, - f - ); + writer.writeUint64(4, f) } - f = message.getSiblingHash_asU8(); + f = message.getSiblingHash_asU8() if (f.length > 0) { - writer.writeBytes( - 5, - f - ); + writer.writeBytes(5, f) } -}; - +} /** * optional bool is_data_on_right = 1; * @return {boolean} */ -proto.bandchain.v1.oracle.IAVLMerklePath.prototype.getIsDataOnRight = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); -}; - +proto.bandchain.v1.oracle.IAVLMerklePath.prototype.getIsDataOnRight = + function () { + return /** @type {boolean} */ ( + jspb.Message.getBooleanFieldWithDefault(this, 1, false) + ) + } /** * @param {boolean} value * @return {!proto.bandchain.v1.oracle.IAVLMerklePath} returns this */ -proto.bandchain.v1.oracle.IAVLMerklePath.prototype.setIsDataOnRight = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); -}; - +proto.bandchain.v1.oracle.IAVLMerklePath.prototype.setIsDataOnRight = function ( + value, +) { + return jspb.Message.setProto3BooleanField(this, 1, value) +} /** * optional uint32 subtree_height = 2; * @return {number} */ -proto.bandchain.v1.oracle.IAVLMerklePath.prototype.getSubtreeHeight = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - +proto.bandchain.v1.oracle.IAVLMerklePath.prototype.getSubtreeHeight = + function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)) + } /** * @param {number} value * @return {!proto.bandchain.v1.oracle.IAVLMerklePath} returns this */ -proto.bandchain.v1.oracle.IAVLMerklePath.prototype.setSubtreeHeight = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - +proto.bandchain.v1.oracle.IAVLMerklePath.prototype.setSubtreeHeight = function ( + value, +) { + return jspb.Message.setProto3IntField(this, 2, value) +} /** * optional uint64 subtree_size = 3; * @return {number} */ -proto.bandchain.v1.oracle.IAVLMerklePath.prototype.getSubtreeSize = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - +proto.bandchain.v1.oracle.IAVLMerklePath.prototype.getSubtreeSize = + function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)) + } /** * @param {number} value * @return {!proto.bandchain.v1.oracle.IAVLMerklePath} returns this */ -proto.bandchain.v1.oracle.IAVLMerklePath.prototype.setSubtreeSize = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - +proto.bandchain.v1.oracle.IAVLMerklePath.prototype.setSubtreeSize = function ( + value, +) { + return jspb.Message.setProto3IntField(this, 3, value) +} /** * optional uint64 subtree_version = 4; * @return {number} */ -proto.bandchain.v1.oracle.IAVLMerklePath.prototype.getSubtreeVersion = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - +proto.bandchain.v1.oracle.IAVLMerklePath.prototype.getSubtreeVersion = + function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)) + } /** * @param {number} value * @return {!proto.bandchain.v1.oracle.IAVLMerklePath} returns this */ -proto.bandchain.v1.oracle.IAVLMerklePath.prototype.setSubtreeVersion = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - +proto.bandchain.v1.oracle.IAVLMerklePath.prototype.setSubtreeVersion = + function (value) { + return jspb.Message.setProto3IntField(this, 4, value) + } /** * optional bytes sibling_hash = 5; * @return {!(string|Uint8Array)} */ -proto.bandchain.v1.oracle.IAVLMerklePath.prototype.getSiblingHash = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - +proto.bandchain.v1.oracle.IAVLMerklePath.prototype.getSiblingHash = + function () { + return /** @type {!(string|Uint8Array)} */ ( + jspb.Message.getFieldWithDefault(this, 5, '') + ) + } /** * optional bytes sibling_hash = 5; * This is a type-conversion wrapper around `getSiblingHash()` * @return {string} */ -proto.bandchain.v1.oracle.IAVLMerklePath.prototype.getSiblingHash_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getSiblingHash())); -}; - +proto.bandchain.v1.oracle.IAVLMerklePath.prototype.getSiblingHash_asB64 = + function () { + return /** @type {string} */ ( + jspb.Message.bytesAsB64(this.getSiblingHash()) + ) + } /** * optional bytes sibling_hash = 5; @@ -3243,86 +3602,112 @@ proto.bandchain.v1.oracle.IAVLMerklePath.prototype.getSiblingHash_asB64 = functi * This is a type-conversion wrapper around `getSiblingHash()` * @return {!Uint8Array} */ -proto.bandchain.v1.oracle.IAVLMerklePath.prototype.getSiblingHash_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getSiblingHash())); -}; - +proto.bandchain.v1.oracle.IAVLMerklePath.prototype.getSiblingHash_asU8 = + function () { + return /** @type {!Uint8Array} */ ( + jspb.Message.bytesAsU8(this.getSiblingHash()) + ) + } /** * @param {!(string|Uint8Array)} value * @return {!proto.bandchain.v1.oracle.IAVLMerklePath} returns this */ -proto.bandchain.v1.oracle.IAVLMerklePath.prototype.setSiblingHash = function(value) { - return jspb.Message.setProto3BytesField(this, 5, value); -}; - - +proto.bandchain.v1.oracle.IAVLMerklePath.prototype.setSiblingHash = function ( + value, +) { + return jspb.Message.setProto3BytesField(this, 5, value) +} /** * List of repeated fields within this message type. * @private {!Array} * @const */ -proto.bandchain.v1.oracle.BlockRelayProof.repeatedFields_ = [4]; - - +proto.bandchain.v1.oracle.BlockRelayProof.repeatedFields_ = [4] if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.bandchain.v1.oracle.BlockRelayProof.prototype.toObject = function(opt_includeInstance) { - return proto.bandchain.v1.oracle.BlockRelayProof.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.bandchain.v1.oracle.BlockRelayProof} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bandchain.v1.oracle.BlockRelayProof.toObject = function(includeInstance, msg) { - var f, obj = { - multiStoreProof: (f = msg.getMultiStoreProof()) && proto.bandchain.v1.oracle.MultiStoreProof.toObject(includeInstance, f), - blockHeaderMerkleParts: (f = msg.getBlockHeaderMerkleParts()) && proto.bandchain.v1.oracle.BlockHeaderMerkleParts.toObject(includeInstance, f), - commonEncodedVotePart: (f = msg.getCommonEncodedVotePart()) && proto.bandchain.v1.oracle.CommonEncodedVotePart.toObject(includeInstance, f), - signaturesList: jspb.Message.toObjectList(msg.getSignaturesList(), - proto.bandchain.v1.oracle.TMSignature.toObject, includeInstance) - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bandchain.v1.oracle.BlockRelayProof.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.bandchain.v1.oracle.BlockRelayProof.toObject( + opt_includeInstance, + this, + ) + } + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bandchain.v1.oracle.BlockRelayProof} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bandchain.v1.oracle.BlockRelayProof.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = { + multiStoreProof: + (f = msg.getMultiStoreProof()) && + proto.bandchain.v1.oracle.MultiStoreProof.toObject( + includeInstance, + f, + ), + blockHeaderMerkleParts: + (f = msg.getBlockHeaderMerkleParts()) && + proto.bandchain.v1.oracle.BlockHeaderMerkleParts.toObject( + includeInstance, + f, + ), + commonEncodedVotePart: + (f = msg.getCommonEncodedVotePart()) && + proto.bandchain.v1.oracle.CommonEncodedVotePart.toObject( + includeInstance, + f, + ), + signaturesList: jspb.Message.toObjectList( + msg.getSignaturesList(), + proto.bandchain.v1.oracle.TMSignature.toObject, + includeInstance, + ), + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.bandchain.v1.oracle.BlockRelayProof} */ -proto.bandchain.v1.oracle.BlockRelayProof.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.bandchain.v1.oracle.BlockRelayProof; - return proto.bandchain.v1.oracle.BlockRelayProof.deserializeBinaryFromReader(msg, reader); -}; - +proto.bandchain.v1.oracle.BlockRelayProof.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.bandchain.v1.oracle.BlockRelayProof() + return proto.bandchain.v1.oracle.BlockRelayProof.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -3331,52 +3716,70 @@ proto.bandchain.v1.oracle.BlockRelayProof.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.bandchain.v1.oracle.BlockRelayProof} */ -proto.bandchain.v1.oracle.BlockRelayProof.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.bandchain.v1.oracle.MultiStoreProof; - reader.readMessage(value,proto.bandchain.v1.oracle.MultiStoreProof.deserializeBinaryFromReader); - msg.setMultiStoreProof(value); - break; - case 2: - var value = new proto.bandchain.v1.oracle.BlockHeaderMerkleParts; - reader.readMessage(value,proto.bandchain.v1.oracle.BlockHeaderMerkleParts.deserializeBinaryFromReader); - msg.setBlockHeaderMerkleParts(value); - break; - case 3: - var value = new proto.bandchain.v1.oracle.CommonEncodedVotePart; - reader.readMessage(value,proto.bandchain.v1.oracle.CommonEncodedVotePart.deserializeBinaryFromReader); - msg.setCommonEncodedVotePart(value); - break; - case 4: - var value = new proto.bandchain.v1.oracle.TMSignature; - reader.readMessage(value,proto.bandchain.v1.oracle.TMSignature.deserializeBinaryFromReader); - msg.addSignatures(value); - break; - default: - reader.skipField(); - break; +proto.bandchain.v1.oracle.BlockRelayProof.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break + } + var field = reader.getFieldNumber() + switch (field) { + case 1: + var value = new proto.bandchain.v1.oracle.MultiStoreProof() + reader.readMessage( + value, + proto.bandchain.v1.oracle.MultiStoreProof + .deserializeBinaryFromReader, + ) + msg.setMultiStoreProof(value) + break + case 2: + var value = new proto.bandchain.v1.oracle.BlockHeaderMerkleParts() + reader.readMessage( + value, + proto.bandchain.v1.oracle.BlockHeaderMerkleParts + .deserializeBinaryFromReader, + ) + msg.setBlockHeaderMerkleParts(value) + break + case 3: + var value = new proto.bandchain.v1.oracle.CommonEncodedVotePart() + reader.readMessage( + value, + proto.bandchain.v1.oracle.CommonEncodedVotePart + .deserializeBinaryFromReader, + ) + msg.setCommonEncodedVotePart(value) + break + case 4: + var value = new proto.bandchain.v1.oracle.TMSignature() + reader.readMessage( + value, + proto.bandchain.v1.oracle.TMSignature.deserializeBinaryFromReader, + ) + msg.addSignatures(value) + break + default: + reader.skipField() + break + } } + return msg } - return msg; -}; - /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.bandchain.v1.oracle.BlockRelayProof.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.bandchain.v1.oracle.BlockRelayProof.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.bandchain.v1.oracle.BlockRelayProof.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter() + proto.bandchain.v1.oracle.BlockRelayProof.serializeBinaryToWriter( + this, + writer, + ) + return writer.getResultBuffer() + } /** * Serializes the given message to binary data (in protobuf wire @@ -3385,251 +3788,288 @@ proto.bandchain.v1.oracle.BlockRelayProof.prototype.serializeBinary = function() * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.bandchain.v1.oracle.BlockRelayProof.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMultiStoreProof(); +proto.bandchain.v1.oracle.BlockRelayProof.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined + f = message.getMultiStoreProof() if (f != null) { writer.writeMessage( 1, f, - proto.bandchain.v1.oracle.MultiStoreProof.serializeBinaryToWriter - ); + proto.bandchain.v1.oracle.MultiStoreProof.serializeBinaryToWriter, + ) } - f = message.getBlockHeaderMerkleParts(); + f = message.getBlockHeaderMerkleParts() if (f != null) { writer.writeMessage( 2, f, - proto.bandchain.v1.oracle.BlockHeaderMerkleParts.serializeBinaryToWriter - ); + proto.bandchain.v1.oracle.BlockHeaderMerkleParts.serializeBinaryToWriter, + ) } - f = message.getCommonEncodedVotePart(); + f = message.getCommonEncodedVotePart() if (f != null) { writer.writeMessage( 3, f, - proto.bandchain.v1.oracle.CommonEncodedVotePart.serializeBinaryToWriter - ); + proto.bandchain.v1.oracle.CommonEncodedVotePart.serializeBinaryToWriter, + ) } - f = message.getSignaturesList(); + f = message.getSignaturesList() if (f.length > 0) { writer.writeRepeatedMessage( 4, f, - proto.bandchain.v1.oracle.TMSignature.serializeBinaryToWriter - ); + proto.bandchain.v1.oracle.TMSignature.serializeBinaryToWriter, + ) } -}; - +} /** * optional MultiStoreProof multi_store_proof = 1; * @return {?proto.bandchain.v1.oracle.MultiStoreProof} */ -proto.bandchain.v1.oracle.BlockRelayProof.prototype.getMultiStoreProof = function() { - return /** @type{?proto.bandchain.v1.oracle.MultiStoreProof} */ ( - jspb.Message.getWrapperField(this, proto.bandchain.v1.oracle.MultiStoreProof, 1)); -}; - +proto.bandchain.v1.oracle.BlockRelayProof.prototype.getMultiStoreProof = + function () { + return /** @type{?proto.bandchain.v1.oracle.MultiStoreProof} */ ( + jspb.Message.getWrapperField( + this, + proto.bandchain.v1.oracle.MultiStoreProof, + 1, + ) + ) + } /** * @param {?proto.bandchain.v1.oracle.MultiStoreProof|undefined} value * @return {!proto.bandchain.v1.oracle.BlockRelayProof} returns this -*/ -proto.bandchain.v1.oracle.BlockRelayProof.prototype.setMultiStoreProof = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - + */ +proto.bandchain.v1.oracle.BlockRelayProof.prototype.setMultiStoreProof = + function (value) { + return jspb.Message.setWrapperField(this, 1, value) + } /** * Clears the message field making it undefined. * @return {!proto.bandchain.v1.oracle.BlockRelayProof} returns this */ -proto.bandchain.v1.oracle.BlockRelayProof.prototype.clearMultiStoreProof = function() { - return this.setMultiStoreProof(undefined); -}; - +proto.bandchain.v1.oracle.BlockRelayProof.prototype.clearMultiStoreProof = + function () { + return this.setMultiStoreProof(undefined) + } /** * Returns whether this field is set. * @return {boolean} */ -proto.bandchain.v1.oracle.BlockRelayProof.prototype.hasMultiStoreProof = function() { - return jspb.Message.getField(this, 1) != null; -}; - +proto.bandchain.v1.oracle.BlockRelayProof.prototype.hasMultiStoreProof = + function () { + return jspb.Message.getField(this, 1) != null + } /** * optional BlockHeaderMerkleParts block_header_merkle_parts = 2; * @return {?proto.bandchain.v1.oracle.BlockHeaderMerkleParts} */ -proto.bandchain.v1.oracle.BlockRelayProof.prototype.getBlockHeaderMerkleParts = function() { - return /** @type{?proto.bandchain.v1.oracle.BlockHeaderMerkleParts} */ ( - jspb.Message.getWrapperField(this, proto.bandchain.v1.oracle.BlockHeaderMerkleParts, 2)); -}; - +proto.bandchain.v1.oracle.BlockRelayProof.prototype.getBlockHeaderMerkleParts = + function () { + return /** @type{?proto.bandchain.v1.oracle.BlockHeaderMerkleParts} */ ( + jspb.Message.getWrapperField( + this, + proto.bandchain.v1.oracle.BlockHeaderMerkleParts, + 2, + ) + ) + } /** * @param {?proto.bandchain.v1.oracle.BlockHeaderMerkleParts|undefined} value * @return {!proto.bandchain.v1.oracle.BlockRelayProof} returns this -*/ -proto.bandchain.v1.oracle.BlockRelayProof.prototype.setBlockHeaderMerkleParts = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - + */ +proto.bandchain.v1.oracle.BlockRelayProof.prototype.setBlockHeaderMerkleParts = + function (value) { + return jspb.Message.setWrapperField(this, 2, value) + } /** * Clears the message field making it undefined. * @return {!proto.bandchain.v1.oracle.BlockRelayProof} returns this */ -proto.bandchain.v1.oracle.BlockRelayProof.prototype.clearBlockHeaderMerkleParts = function() { - return this.setBlockHeaderMerkleParts(undefined); -}; - +proto.bandchain.v1.oracle.BlockRelayProof.prototype.clearBlockHeaderMerkleParts = + function () { + return this.setBlockHeaderMerkleParts(undefined) + } /** * Returns whether this field is set. * @return {boolean} */ -proto.bandchain.v1.oracle.BlockRelayProof.prototype.hasBlockHeaderMerkleParts = function() { - return jspb.Message.getField(this, 2) != null; -}; - +proto.bandchain.v1.oracle.BlockRelayProof.prototype.hasBlockHeaderMerkleParts = + function () { + return jspb.Message.getField(this, 2) != null + } /** * optional CommonEncodedVotePart common_encoded_vote_part = 3; * @return {?proto.bandchain.v1.oracle.CommonEncodedVotePart} */ -proto.bandchain.v1.oracle.BlockRelayProof.prototype.getCommonEncodedVotePart = function() { - return /** @type{?proto.bandchain.v1.oracle.CommonEncodedVotePart} */ ( - jspb.Message.getWrapperField(this, proto.bandchain.v1.oracle.CommonEncodedVotePart, 3)); -}; - +proto.bandchain.v1.oracle.BlockRelayProof.prototype.getCommonEncodedVotePart = + function () { + return /** @type{?proto.bandchain.v1.oracle.CommonEncodedVotePart} */ ( + jspb.Message.getWrapperField( + this, + proto.bandchain.v1.oracle.CommonEncodedVotePart, + 3, + ) + ) + } /** * @param {?proto.bandchain.v1.oracle.CommonEncodedVotePart|undefined} value * @return {!proto.bandchain.v1.oracle.BlockRelayProof} returns this -*/ -proto.bandchain.v1.oracle.BlockRelayProof.prototype.setCommonEncodedVotePart = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - + */ +proto.bandchain.v1.oracle.BlockRelayProof.prototype.setCommonEncodedVotePart = + function (value) { + return jspb.Message.setWrapperField(this, 3, value) + } /** * Clears the message field making it undefined. * @return {!proto.bandchain.v1.oracle.BlockRelayProof} returns this */ -proto.bandchain.v1.oracle.BlockRelayProof.prototype.clearCommonEncodedVotePart = function() { - return this.setCommonEncodedVotePart(undefined); -}; - +proto.bandchain.v1.oracle.BlockRelayProof.prototype.clearCommonEncodedVotePart = + function () { + return this.setCommonEncodedVotePart(undefined) + } /** * Returns whether this field is set. * @return {boolean} */ -proto.bandchain.v1.oracle.BlockRelayProof.prototype.hasCommonEncodedVotePart = function() { - return jspb.Message.getField(this, 3) != null; -}; - +proto.bandchain.v1.oracle.BlockRelayProof.prototype.hasCommonEncodedVotePart = + function () { + return jspb.Message.getField(this, 3) != null + } /** * repeated TMSignature signatures = 4; * @return {!Array} */ -proto.bandchain.v1.oracle.BlockRelayProof.prototype.getSignaturesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.bandchain.v1.oracle.TMSignature, 4)); -}; - +proto.bandchain.v1.oracle.BlockRelayProof.prototype.getSignaturesList = + function () { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField( + this, + proto.bandchain.v1.oracle.TMSignature, + 4, + ) + ) + } /** * @param {!Array} value * @return {!proto.bandchain.v1.oracle.BlockRelayProof} returns this -*/ -proto.bandchain.v1.oracle.BlockRelayProof.prototype.setSignaturesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 4, value); -}; - + */ +proto.bandchain.v1.oracle.BlockRelayProof.prototype.setSignaturesList = + function (value) { + return jspb.Message.setRepeatedWrapperField(this, 4, value) + } /** * @param {!proto.bandchain.v1.oracle.TMSignature=} opt_value * @param {number=} opt_index * @return {!proto.bandchain.v1.oracle.TMSignature} */ -proto.bandchain.v1.oracle.BlockRelayProof.prototype.addSignatures = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.bandchain.v1.oracle.TMSignature, opt_index); -}; - +proto.bandchain.v1.oracle.BlockRelayProof.prototype.addSignatures = function ( + opt_value, + opt_index, +) { + return jspb.Message.addToRepeatedWrapperField( + this, + 4, + opt_value, + proto.bandchain.v1.oracle.TMSignature, + opt_index, + ) +} /** * Clears the list making it empty but non-null. * @return {!proto.bandchain.v1.oracle.BlockRelayProof} returns this */ -proto.bandchain.v1.oracle.BlockRelayProof.prototype.clearSignaturesList = function() { - return this.setSignaturesList([]); -}; - - - - +proto.bandchain.v1.oracle.BlockRelayProof.prototype.clearSignaturesList = + function () { + return this.setSignaturesList([]) + } if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.bandchain.v1.oracle.MultiStoreProof.prototype.toObject = function(opt_includeInstance) { - return proto.bandchain.v1.oracle.MultiStoreProof.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.bandchain.v1.oracle.MultiStoreProof} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bandchain.v1.oracle.MultiStoreProof.toObject = function(includeInstance, msg) { - var f, obj = { - oracleIavlStateHash: msg.getOracleIavlStateHash_asB64(), - mintStoreMerkleHash: msg.getMintStoreMerkleHash_asB64(), - paramsToSlashingStoresMerkleHash: msg.getParamsToSlashingStoresMerkleHash_asB64(), - govToIcahostStoresMerkleHash: msg.getGovToIcahostStoresMerkleHash_asB64(), - authToFeegrantStoresMerkleHash: msg.getAuthToFeegrantStoresMerkleHash_asB64(), - stakingToUpgradeStoresMerkleHash: msg.getStakingToUpgradeStoresMerkleHash_asB64() - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bandchain.v1.oracle.MultiStoreProof.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.bandchain.v1.oracle.MultiStoreProof.toObject( + opt_includeInstance, + this, + ) + } + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bandchain.v1.oracle.MultiStoreProof} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bandchain.v1.oracle.MultiStoreProof.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = { + oracleIavlStateHash: msg.getOracleIavlStateHash_asB64(), + paramsStoreMerkleHash: msg.getParamsStoreMerkleHash_asB64(), + slashingToStakingStoresMerkleHash: + msg.getSlashingToStakingStoresMerkleHash_asB64(), + transferToUpgradeStoresMerkleHash: + msg.getTransferToUpgradeStoresMerkleHash_asB64(), + authToMintStoresMerkleHash: msg.getAuthToMintStoresMerkleHash_asB64(), + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.bandchain.v1.oracle.MultiStoreProof} */ -proto.bandchain.v1.oracle.MultiStoreProof.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.bandchain.v1.oracle.MultiStoreProof; - return proto.bandchain.v1.oracle.MultiStoreProof.deserializeBinaryFromReader(msg, reader); -}; - +proto.bandchain.v1.oracle.MultiStoreProof.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.bandchain.v1.oracle.MultiStoreProof() + return proto.bandchain.v1.oracle.MultiStoreProof.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -3638,56 +4078,55 @@ proto.bandchain.v1.oracle.MultiStoreProof.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.bandchain.v1.oracle.MultiStoreProof} */ -proto.bandchain.v1.oracle.MultiStoreProof.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setOracleIavlStateHash(value); - break; - case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setMintStoreMerkleHash(value); - break; - case 3: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setParamsToSlashingStoresMerkleHash(value); - break; - case 4: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setGovToIcahostStoresMerkleHash(value); - break; - case 5: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setAuthToFeegrantStoresMerkleHash(value); - break; - case 6: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setStakingToUpgradeStoresMerkleHash(value); - break; - default: - reader.skipField(); - break; +proto.bandchain.v1.oracle.MultiStoreProof.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break + } + var field = reader.getFieldNumber() + switch (field) { + case 1: + var value = /** @type {!Uint8Array} */ (reader.readBytes()) + msg.setOracleIavlStateHash(value) + break + case 2: + var value = /** @type {!Uint8Array} */ (reader.readBytes()) + msg.setParamsStoreMerkleHash(value) + break + case 3: + var value = /** @type {!Uint8Array} */ (reader.readBytes()) + msg.setSlashingToStakingStoresMerkleHash(value) + break + case 4: + var value = /** @type {!Uint8Array} */ (reader.readBytes()) + msg.setTransferToUpgradeStoresMerkleHash(value) + break + case 5: + var value = /** @type {!Uint8Array} */ (reader.readBytes()) + msg.setAuthToMintStoresMerkleHash(value) + break + default: + reader.skipField() + break + } } + return msg } - return msg; -}; - /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.bandchain.v1.oracle.MultiStoreProof.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.bandchain.v1.oracle.MultiStoreProof.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.bandchain.v1.oracle.MultiStoreProof.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter() + proto.bandchain.v1.oracle.MultiStoreProof.serializeBinaryToWriter( + this, + writer, + ) + return writer.getResultBuffer() + } /** * Serializes the given message to binary data (in protobuf wire @@ -3696,72 +4135,55 @@ proto.bandchain.v1.oracle.MultiStoreProof.prototype.serializeBinary = function() * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.bandchain.v1.oracle.MultiStoreProof.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOracleIavlStateHash_asU8(); +proto.bandchain.v1.oracle.MultiStoreProof.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined + f = message.getOracleIavlStateHash_asU8() if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } - f = message.getMintStoreMerkleHash_asU8(); - if (f.length > 0) { - writer.writeBytes( - 2, - f - ); + writer.writeBytes(1, f) } - f = message.getParamsToSlashingStoresMerkleHash_asU8(); + f = message.getParamsStoreMerkleHash_asU8() if (f.length > 0) { - writer.writeBytes( - 3, - f - ); + writer.writeBytes(2, f) } - f = message.getGovToIcahostStoresMerkleHash_asU8(); + f = message.getSlashingToStakingStoresMerkleHash_asU8() if (f.length > 0) { - writer.writeBytes( - 4, - f - ); + writer.writeBytes(3, f) } - f = message.getAuthToFeegrantStoresMerkleHash_asU8(); + f = message.getTransferToUpgradeStoresMerkleHash_asU8() if (f.length > 0) { - writer.writeBytes( - 5, - f - ); + writer.writeBytes(4, f) } - f = message.getStakingToUpgradeStoresMerkleHash_asU8(); + f = message.getAuthToMintStoresMerkleHash_asU8() if (f.length > 0) { - writer.writeBytes( - 6, - f - ); + writer.writeBytes(5, f) } -}; - +} /** * optional bytes oracle_iavl_state_hash = 1; * @return {!(string|Uint8Array)} */ -proto.bandchain.v1.oracle.MultiStoreProof.prototype.getOracleIavlStateHash = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - +proto.bandchain.v1.oracle.MultiStoreProof.prototype.getOracleIavlStateHash = + function () { + return /** @type {!(string|Uint8Array)} */ ( + jspb.Message.getFieldWithDefault(this, 1, '') + ) + } /** * optional bytes oracle_iavl_state_hash = 1; * This is a type-conversion wrapper around `getOracleIavlStateHash()` * @return {string} */ -proto.bandchain.v1.oracle.MultiStoreProof.prototype.getOracleIavlStateHash_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getOracleIavlStateHash())); -}; - +proto.bandchain.v1.oracle.MultiStoreProof.prototype.getOracleIavlStateHash_asB64 = + function () { + return /** @type {string} */ ( + jspb.Message.bytesAsB64(this.getOracleIavlStateHash()) + ) + } /** * optional bytes oracle_iavl_state_hash = 1; @@ -3770,292 +4192,275 @@ proto.bandchain.v1.oracle.MultiStoreProof.prototype.getOracleIavlStateHash_asB64 * This is a type-conversion wrapper around `getOracleIavlStateHash()` * @return {!Uint8Array} */ -proto.bandchain.v1.oracle.MultiStoreProof.prototype.getOracleIavlStateHash_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getOracleIavlStateHash())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.bandchain.v1.oracle.MultiStoreProof} returns this - */ -proto.bandchain.v1.oracle.MultiStoreProof.prototype.setOracleIavlStateHash = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - -/** - * optional bytes mint_store_merkle_hash = 2; - * @return {!(string|Uint8Array)} - */ -proto.bandchain.v1.oracle.MultiStoreProof.prototype.getMintStoreMerkleHash = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * optional bytes mint_store_merkle_hash = 2; - * This is a type-conversion wrapper around `getMintStoreMerkleHash()` - * @return {string} - */ -proto.bandchain.v1.oracle.MultiStoreProof.prototype.getMintStoreMerkleHash_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getMintStoreMerkleHash())); -}; - - -/** - * optional bytes mint_store_merkle_hash = 2; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getMintStoreMerkleHash()` - * @return {!Uint8Array} - */ -proto.bandchain.v1.oracle.MultiStoreProof.prototype.getMintStoreMerkleHash_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getMintStoreMerkleHash())); -}; - +proto.bandchain.v1.oracle.MultiStoreProof.prototype.getOracleIavlStateHash_asU8 = + function () { + return /** @type {!Uint8Array} */ ( + jspb.Message.bytesAsU8(this.getOracleIavlStateHash()) + ) + } /** * @param {!(string|Uint8Array)} value * @return {!proto.bandchain.v1.oracle.MultiStoreProof} returns this */ -proto.bandchain.v1.oracle.MultiStoreProof.prototype.setMintStoreMerkleHash = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); -}; - +proto.bandchain.v1.oracle.MultiStoreProof.prototype.setOracleIavlStateHash = + function (value) { + return jspb.Message.setProto3BytesField(this, 1, value) + } /** - * optional bytes params_to_slashing_stores_merkle_hash = 3; + * optional bytes params_store_merkle_hash = 2; * @return {!(string|Uint8Array)} */ -proto.bandchain.v1.oracle.MultiStoreProof.prototype.getParamsToSlashingStoresMerkleHash = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - +proto.bandchain.v1.oracle.MultiStoreProof.prototype.getParamsStoreMerkleHash = + function () { + return /** @type {!(string|Uint8Array)} */ ( + jspb.Message.getFieldWithDefault(this, 2, '') + ) + } /** - * optional bytes params_to_slashing_stores_merkle_hash = 3; - * This is a type-conversion wrapper around `getParamsToSlashingStoresMerkleHash()` + * optional bytes params_store_merkle_hash = 2; + * This is a type-conversion wrapper around `getParamsStoreMerkleHash()` * @return {string} */ -proto.bandchain.v1.oracle.MultiStoreProof.prototype.getParamsToSlashingStoresMerkleHash_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getParamsToSlashingStoresMerkleHash())); -}; - +proto.bandchain.v1.oracle.MultiStoreProof.prototype.getParamsStoreMerkleHash_asB64 = + function () { + return /** @type {string} */ ( + jspb.Message.bytesAsB64(this.getParamsStoreMerkleHash()) + ) + } /** - * optional bytes params_to_slashing_stores_merkle_hash = 3; + * optional bytes params_store_merkle_hash = 2; * Note that Uint8Array is not supported on all browsers. * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getParamsToSlashingStoresMerkleHash()` + * This is a type-conversion wrapper around `getParamsStoreMerkleHash()` * @return {!Uint8Array} */ -proto.bandchain.v1.oracle.MultiStoreProof.prototype.getParamsToSlashingStoresMerkleHash_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getParamsToSlashingStoresMerkleHash())); -}; - +proto.bandchain.v1.oracle.MultiStoreProof.prototype.getParamsStoreMerkleHash_asU8 = + function () { + return /** @type {!Uint8Array} */ ( + jspb.Message.bytesAsU8(this.getParamsStoreMerkleHash()) + ) + } /** * @param {!(string|Uint8Array)} value * @return {!proto.bandchain.v1.oracle.MultiStoreProof} returns this */ -proto.bandchain.v1.oracle.MultiStoreProof.prototype.setParamsToSlashingStoresMerkleHash = function(value) { - return jspb.Message.setProto3BytesField(this, 3, value); -}; - +proto.bandchain.v1.oracle.MultiStoreProof.prototype.setParamsStoreMerkleHash = + function (value) { + return jspb.Message.setProto3BytesField(this, 2, value) + } /** - * optional bytes gov_to_icahost_stores_merkle_hash = 4; + * optional bytes slashing_to_staking_stores_merkle_hash = 3; * @return {!(string|Uint8Array)} */ -proto.bandchain.v1.oracle.MultiStoreProof.prototype.getGovToIcahostStoresMerkleHash = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - +proto.bandchain.v1.oracle.MultiStoreProof.prototype.getSlashingToStakingStoresMerkleHash = + function () { + return /** @type {!(string|Uint8Array)} */ ( + jspb.Message.getFieldWithDefault(this, 3, '') + ) + } /** - * optional bytes gov_to_icahost_stores_merkle_hash = 4; - * This is a type-conversion wrapper around `getGovToIcahostStoresMerkleHash()` + * optional bytes slashing_to_staking_stores_merkle_hash = 3; + * This is a type-conversion wrapper around `getSlashingToStakingStoresMerkleHash()` * @return {string} */ -proto.bandchain.v1.oracle.MultiStoreProof.prototype.getGovToIcahostStoresMerkleHash_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getGovToIcahostStoresMerkleHash())); -}; - +proto.bandchain.v1.oracle.MultiStoreProof.prototype.getSlashingToStakingStoresMerkleHash_asB64 = + function () { + return /** @type {string} */ ( + jspb.Message.bytesAsB64(this.getSlashingToStakingStoresMerkleHash()) + ) + } /** - * optional bytes gov_to_icahost_stores_merkle_hash = 4; + * optional bytes slashing_to_staking_stores_merkle_hash = 3; * Note that Uint8Array is not supported on all browsers. * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getGovToIcahostStoresMerkleHash()` + * This is a type-conversion wrapper around `getSlashingToStakingStoresMerkleHash()` * @return {!Uint8Array} */ -proto.bandchain.v1.oracle.MultiStoreProof.prototype.getGovToIcahostStoresMerkleHash_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getGovToIcahostStoresMerkleHash())); -}; - +proto.bandchain.v1.oracle.MultiStoreProof.prototype.getSlashingToStakingStoresMerkleHash_asU8 = + function () { + return /** @type {!Uint8Array} */ ( + jspb.Message.bytesAsU8(this.getSlashingToStakingStoresMerkleHash()) + ) + } /** * @param {!(string|Uint8Array)} value * @return {!proto.bandchain.v1.oracle.MultiStoreProof} returns this */ -proto.bandchain.v1.oracle.MultiStoreProof.prototype.setGovToIcahostStoresMerkleHash = function(value) { - return jspb.Message.setProto3BytesField(this, 4, value); -}; - +proto.bandchain.v1.oracle.MultiStoreProof.prototype.setSlashingToStakingStoresMerkleHash = + function (value) { + return jspb.Message.setProto3BytesField(this, 3, value) + } /** - * optional bytes auth_to_feegrant_stores_merkle_hash = 5; + * optional bytes transfer_to_upgrade_stores_merkle_hash = 4; * @return {!(string|Uint8Array)} */ -proto.bandchain.v1.oracle.MultiStoreProof.prototype.getAuthToFeegrantStoresMerkleHash = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - +proto.bandchain.v1.oracle.MultiStoreProof.prototype.getTransferToUpgradeStoresMerkleHash = + function () { + return /** @type {!(string|Uint8Array)} */ ( + jspb.Message.getFieldWithDefault(this, 4, '') + ) + } /** - * optional bytes auth_to_feegrant_stores_merkle_hash = 5; - * This is a type-conversion wrapper around `getAuthToFeegrantStoresMerkleHash()` + * optional bytes transfer_to_upgrade_stores_merkle_hash = 4; + * This is a type-conversion wrapper around `getTransferToUpgradeStoresMerkleHash()` * @return {string} */ -proto.bandchain.v1.oracle.MultiStoreProof.prototype.getAuthToFeegrantStoresMerkleHash_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getAuthToFeegrantStoresMerkleHash())); -}; - +proto.bandchain.v1.oracle.MultiStoreProof.prototype.getTransferToUpgradeStoresMerkleHash_asB64 = + function () { + return /** @type {string} */ ( + jspb.Message.bytesAsB64(this.getTransferToUpgradeStoresMerkleHash()) + ) + } /** - * optional bytes auth_to_feegrant_stores_merkle_hash = 5; + * optional bytes transfer_to_upgrade_stores_merkle_hash = 4; * Note that Uint8Array is not supported on all browsers. * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getAuthToFeegrantStoresMerkleHash()` + * This is a type-conversion wrapper around `getTransferToUpgradeStoresMerkleHash()` * @return {!Uint8Array} */ -proto.bandchain.v1.oracle.MultiStoreProof.prototype.getAuthToFeegrantStoresMerkleHash_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getAuthToFeegrantStoresMerkleHash())); -}; - +proto.bandchain.v1.oracle.MultiStoreProof.prototype.getTransferToUpgradeStoresMerkleHash_asU8 = + function () { + return /** @type {!Uint8Array} */ ( + jspb.Message.bytesAsU8(this.getTransferToUpgradeStoresMerkleHash()) + ) + } /** * @param {!(string|Uint8Array)} value * @return {!proto.bandchain.v1.oracle.MultiStoreProof} returns this */ -proto.bandchain.v1.oracle.MultiStoreProof.prototype.setAuthToFeegrantStoresMerkleHash = function(value) { - return jspb.Message.setProto3BytesField(this, 5, value); -}; - +proto.bandchain.v1.oracle.MultiStoreProof.prototype.setTransferToUpgradeStoresMerkleHash = + function (value) { + return jspb.Message.setProto3BytesField(this, 4, value) + } /** - * optional bytes staking_to_upgrade_stores_merkle_hash = 6; + * optional bytes auth_to_mint_stores_merkle_hash = 5; * @return {!(string|Uint8Array)} */ -proto.bandchain.v1.oracle.MultiStoreProof.prototype.getStakingToUpgradeStoresMerkleHash = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - +proto.bandchain.v1.oracle.MultiStoreProof.prototype.getAuthToMintStoresMerkleHash = + function () { + return /** @type {!(string|Uint8Array)} */ ( + jspb.Message.getFieldWithDefault(this, 5, '') + ) + } /** - * optional bytes staking_to_upgrade_stores_merkle_hash = 6; - * This is a type-conversion wrapper around `getStakingToUpgradeStoresMerkleHash()` + * optional bytes auth_to_mint_stores_merkle_hash = 5; + * This is a type-conversion wrapper around `getAuthToMintStoresMerkleHash()` * @return {string} */ -proto.bandchain.v1.oracle.MultiStoreProof.prototype.getStakingToUpgradeStoresMerkleHash_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getStakingToUpgradeStoresMerkleHash())); -}; - +proto.bandchain.v1.oracle.MultiStoreProof.prototype.getAuthToMintStoresMerkleHash_asB64 = + function () { + return /** @type {string} */ ( + jspb.Message.bytesAsB64(this.getAuthToMintStoresMerkleHash()) + ) + } /** - * optional bytes staking_to_upgrade_stores_merkle_hash = 6; + * optional bytes auth_to_mint_stores_merkle_hash = 5; * Note that Uint8Array is not supported on all browsers. * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getStakingToUpgradeStoresMerkleHash()` + * This is a type-conversion wrapper around `getAuthToMintStoresMerkleHash()` * @return {!Uint8Array} */ -proto.bandchain.v1.oracle.MultiStoreProof.prototype.getStakingToUpgradeStoresMerkleHash_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getStakingToUpgradeStoresMerkleHash())); -}; - +proto.bandchain.v1.oracle.MultiStoreProof.prototype.getAuthToMintStoresMerkleHash_asU8 = + function () { + return /** @type {!Uint8Array} */ ( + jspb.Message.bytesAsU8(this.getAuthToMintStoresMerkleHash()) + ) + } /** * @param {!(string|Uint8Array)} value * @return {!proto.bandchain.v1.oracle.MultiStoreProof} returns this */ -proto.bandchain.v1.oracle.MultiStoreProof.prototype.setStakingToUpgradeStoresMerkleHash = function(value) { - return jspb.Message.setProto3BytesField(this, 6, value); -}; - - - - +proto.bandchain.v1.oracle.MultiStoreProof.prototype.setAuthToMintStoresMerkleHash = + function (value) { + return jspb.Message.setProto3BytesField(this, 5, value) + } if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.bandchain.v1.oracle.BlockHeaderMerkleParts.prototype.toObject = function(opt_includeInstance) { - return proto.bandchain.v1.oracle.BlockHeaderMerkleParts.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.bandchain.v1.oracle.BlockHeaderMerkleParts} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bandchain.v1.oracle.BlockHeaderMerkleParts.toObject = function(includeInstance, msg) { - var f, obj = { - versionAndChainIdHash: msg.getVersionAndChainIdHash_asB64(), - height: jspb.Message.getFieldWithDefault(msg, 2, 0), - timeSecond: jspb.Message.getFieldWithDefault(msg, 3, 0), - timeNanoSecond: jspb.Message.getFieldWithDefault(msg, 4, 0), - lastBlockIdAndOther: msg.getLastBlockIdAndOther_asB64(), - nextValidatorHashAndConsensusHash: msg.getNextValidatorHashAndConsensusHash_asB64(), - lastResultsHash: msg.getLastResultsHash_asB64(), - evidenceAndProposerHash: msg.getEvidenceAndProposerHash_asB64() - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bandchain.v1.oracle.BlockHeaderMerkleParts.prototype.toObject = + function (opt_includeInstance) { + return proto.bandchain.v1.oracle.BlockHeaderMerkleParts.toObject( + opt_includeInstance, + this, + ) + } + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bandchain.v1.oracle.BlockHeaderMerkleParts} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bandchain.v1.oracle.BlockHeaderMerkleParts.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = { + versionAndChainIdHash: msg.getVersionAndChainIdHash_asB64(), + height: jspb.Message.getFieldWithDefault(msg, 2, 0), + timeSecond: jspb.Message.getFieldWithDefault(msg, 3, 0), + timeNanoSecond: jspb.Message.getFieldWithDefault(msg, 4, 0), + lastBlockIdAndOther: msg.getLastBlockIdAndOther_asB64(), + nextValidatorHashAndConsensusHash: + msg.getNextValidatorHashAndConsensusHash_asB64(), + lastResultsHash: msg.getLastResultsHash_asB64(), + evidenceAndProposerHash: msg.getEvidenceAndProposerHash_asB64(), + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.bandchain.v1.oracle.BlockHeaderMerkleParts} */ -proto.bandchain.v1.oracle.BlockHeaderMerkleParts.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.bandchain.v1.oracle.BlockHeaderMerkleParts; - return proto.bandchain.v1.oracle.BlockHeaderMerkleParts.deserializeBinaryFromReader(msg, reader); -}; - +proto.bandchain.v1.oracle.BlockHeaderMerkleParts.deserializeBinary = function ( + bytes, +) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.bandchain.v1.oracle.BlockHeaderMerkleParts() + return proto.bandchain.v1.oracle.BlockHeaderMerkleParts.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -4064,64 +4469,67 @@ proto.bandchain.v1.oracle.BlockHeaderMerkleParts.deserializeBinary = function(by * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.bandchain.v1.oracle.BlockHeaderMerkleParts} */ -proto.bandchain.v1.oracle.BlockHeaderMerkleParts.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setVersionAndChainIdHash(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint64()); - msg.setHeight(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setTimeSecond(value); - break; - case 4: - var value = /** @type {number} */ (reader.readUint32()); - msg.setTimeNanoSecond(value); - break; - case 5: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setLastBlockIdAndOther(value); - break; - case 6: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setNextValidatorHashAndConsensusHash(value); - break; - case 7: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setLastResultsHash(value); - break; - case 8: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setEvidenceAndProposerHash(value); - break; - default: - reader.skipField(); - break; +proto.bandchain.v1.oracle.BlockHeaderMerkleParts.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break + } + var field = reader.getFieldNumber() + switch (field) { + case 1: + var value = /** @type {!Uint8Array} */ (reader.readBytes()) + msg.setVersionAndChainIdHash(value) + break + case 2: + var value = /** @type {number} */ (reader.readUint64()) + msg.setHeight(value) + break + case 3: + var value = /** @type {number} */ (reader.readUint64()) + msg.setTimeSecond(value) + break + case 4: + var value = /** @type {number} */ (reader.readUint32()) + msg.setTimeNanoSecond(value) + break + case 5: + var value = /** @type {!Uint8Array} */ (reader.readBytes()) + msg.setLastBlockIdAndOther(value) + break + case 6: + var value = /** @type {!Uint8Array} */ (reader.readBytes()) + msg.setNextValidatorHashAndConsensusHash(value) + break + case 7: + var value = /** @type {!Uint8Array} */ (reader.readBytes()) + msg.setLastResultsHash(value) + break + case 8: + var value = /** @type {!Uint8Array} */ (reader.readBytes()) + msg.setEvidenceAndProposerHash(value) + break + default: + reader.skipField() + break + } } + return msg } - return msg; -}; - /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.bandchain.v1.oracle.BlockHeaderMerkleParts.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.bandchain.v1.oracle.BlockHeaderMerkleParts.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.bandchain.v1.oracle.BlockHeaderMerkleParts.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter() + proto.bandchain.v1.oracle.BlockHeaderMerkleParts.serializeBinaryToWriter( + this, + writer, + ) + return writer.getResultBuffer() + } /** * Serializes the given message to binary data (in protobuf wire @@ -4130,86 +4538,65 @@ proto.bandchain.v1.oracle.BlockHeaderMerkleParts.prototype.serializeBinary = fun * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.bandchain.v1.oracle.BlockHeaderMerkleParts.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getVersionAndChainIdHash_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } - f = message.getHeight(); - if (f !== 0) { - writer.writeUint64( - 2, - f - ); - } - f = message.getTimeSecond(); - if (f !== 0) { - writer.writeUint64( - 3, - f - ); - } - f = message.getTimeNanoSecond(); - if (f !== 0) { - writer.writeUint32( - 4, - f - ); - } - f = message.getLastBlockIdAndOther_asU8(); - if (f.length > 0) { - writer.writeBytes( - 5, - f - ); - } - f = message.getNextValidatorHashAndConsensusHash_asU8(); - if (f.length > 0) { - writer.writeBytes( - 6, - f - ); - } - f = message.getLastResultsHash_asU8(); - if (f.length > 0) { - writer.writeBytes( - 7, - f - ); - } - f = message.getEvidenceAndProposerHash_asU8(); - if (f.length > 0) { - writer.writeBytes( - 8, - f - ); +proto.bandchain.v1.oracle.BlockHeaderMerkleParts.serializeBinaryToWriter = + function (message, writer) { + var f = undefined + f = message.getVersionAndChainIdHash_asU8() + if (f.length > 0) { + writer.writeBytes(1, f) + } + f = message.getHeight() + if (f !== 0) { + writer.writeUint64(2, f) + } + f = message.getTimeSecond() + if (f !== 0) { + writer.writeUint64(3, f) + } + f = message.getTimeNanoSecond() + if (f !== 0) { + writer.writeUint32(4, f) + } + f = message.getLastBlockIdAndOther_asU8() + if (f.length > 0) { + writer.writeBytes(5, f) + } + f = message.getNextValidatorHashAndConsensusHash_asU8() + if (f.length > 0) { + writer.writeBytes(6, f) + } + f = message.getLastResultsHash_asU8() + if (f.length > 0) { + writer.writeBytes(7, f) + } + f = message.getEvidenceAndProposerHash_asU8() + if (f.length > 0) { + writer.writeBytes(8, f) + } } -}; - /** * optional bytes version_and_chain_id_hash = 1; * @return {!(string|Uint8Array)} */ -proto.bandchain.v1.oracle.BlockHeaderMerkleParts.prototype.getVersionAndChainIdHash = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - +proto.bandchain.v1.oracle.BlockHeaderMerkleParts.prototype.getVersionAndChainIdHash = + function () { + return /** @type {!(string|Uint8Array)} */ ( + jspb.Message.getFieldWithDefault(this, 1, '') + ) + } /** * optional bytes version_and_chain_id_hash = 1; * This is a type-conversion wrapper around `getVersionAndChainIdHash()` * @return {string} */ -proto.bandchain.v1.oracle.BlockHeaderMerkleParts.prototype.getVersionAndChainIdHash_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getVersionAndChainIdHash())); -}; - +proto.bandchain.v1.oracle.BlockHeaderMerkleParts.prototype.getVersionAndChainIdHash_asB64 = + function () { + return /** @type {string} */ ( + jspb.Message.bytesAsB64(this.getVersionAndChainIdHash()) + ) + } /** * optional bytes version_and_chain_id_hash = 1; @@ -4218,94 +4605,98 @@ proto.bandchain.v1.oracle.BlockHeaderMerkleParts.prototype.getVersionAndChainIdH * This is a type-conversion wrapper around `getVersionAndChainIdHash()` * @return {!Uint8Array} */ -proto.bandchain.v1.oracle.BlockHeaderMerkleParts.prototype.getVersionAndChainIdHash_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getVersionAndChainIdHash())); -}; - +proto.bandchain.v1.oracle.BlockHeaderMerkleParts.prototype.getVersionAndChainIdHash_asU8 = + function () { + return /** @type {!Uint8Array} */ ( + jspb.Message.bytesAsU8(this.getVersionAndChainIdHash()) + ) + } /** * @param {!(string|Uint8Array)} value * @return {!proto.bandchain.v1.oracle.BlockHeaderMerkleParts} returns this */ -proto.bandchain.v1.oracle.BlockHeaderMerkleParts.prototype.setVersionAndChainIdHash = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - +proto.bandchain.v1.oracle.BlockHeaderMerkleParts.prototype.setVersionAndChainIdHash = + function (value) { + return jspb.Message.setProto3BytesField(this, 1, value) + } /** * optional uint64 height = 2; * @return {number} */ -proto.bandchain.v1.oracle.BlockHeaderMerkleParts.prototype.getHeight = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - +proto.bandchain.v1.oracle.BlockHeaderMerkleParts.prototype.getHeight = + function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)) + } /** * @param {number} value * @return {!proto.bandchain.v1.oracle.BlockHeaderMerkleParts} returns this */ -proto.bandchain.v1.oracle.BlockHeaderMerkleParts.prototype.setHeight = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - +proto.bandchain.v1.oracle.BlockHeaderMerkleParts.prototype.setHeight = + function (value) { + return jspb.Message.setProto3IntField(this, 2, value) + } /** * optional uint64 time_second = 3; * @return {number} */ -proto.bandchain.v1.oracle.BlockHeaderMerkleParts.prototype.getTimeSecond = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - +proto.bandchain.v1.oracle.BlockHeaderMerkleParts.prototype.getTimeSecond = + function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)) + } /** * @param {number} value * @return {!proto.bandchain.v1.oracle.BlockHeaderMerkleParts} returns this */ -proto.bandchain.v1.oracle.BlockHeaderMerkleParts.prototype.setTimeSecond = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - +proto.bandchain.v1.oracle.BlockHeaderMerkleParts.prototype.setTimeSecond = + function (value) { + return jspb.Message.setProto3IntField(this, 3, value) + } /** * optional uint32 time_nano_second = 4; * @return {number} */ -proto.bandchain.v1.oracle.BlockHeaderMerkleParts.prototype.getTimeNanoSecond = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - +proto.bandchain.v1.oracle.BlockHeaderMerkleParts.prototype.getTimeNanoSecond = + function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)) + } /** * @param {number} value * @return {!proto.bandchain.v1.oracle.BlockHeaderMerkleParts} returns this */ -proto.bandchain.v1.oracle.BlockHeaderMerkleParts.prototype.setTimeNanoSecond = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - +proto.bandchain.v1.oracle.BlockHeaderMerkleParts.prototype.setTimeNanoSecond = + function (value) { + return jspb.Message.setProto3IntField(this, 4, value) + } /** * optional bytes last_block_id_and_other = 5; * @return {!(string|Uint8Array)} */ -proto.bandchain.v1.oracle.BlockHeaderMerkleParts.prototype.getLastBlockIdAndOther = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - +proto.bandchain.v1.oracle.BlockHeaderMerkleParts.prototype.getLastBlockIdAndOther = + function () { + return /** @type {!(string|Uint8Array)} */ ( + jspb.Message.getFieldWithDefault(this, 5, '') + ) + } /** * optional bytes last_block_id_and_other = 5; * This is a type-conversion wrapper around `getLastBlockIdAndOther()` * @return {string} */ -proto.bandchain.v1.oracle.BlockHeaderMerkleParts.prototype.getLastBlockIdAndOther_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getLastBlockIdAndOther())); -}; - +proto.bandchain.v1.oracle.BlockHeaderMerkleParts.prototype.getLastBlockIdAndOther_asB64 = + function () { + return /** @type {string} */ ( + jspb.Message.bytesAsB64(this.getLastBlockIdAndOther()) + ) + } /** * optional bytes last_block_id_and_other = 5; @@ -4314,40 +4705,44 @@ proto.bandchain.v1.oracle.BlockHeaderMerkleParts.prototype.getLastBlockIdAndOthe * This is a type-conversion wrapper around `getLastBlockIdAndOther()` * @return {!Uint8Array} */ -proto.bandchain.v1.oracle.BlockHeaderMerkleParts.prototype.getLastBlockIdAndOther_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getLastBlockIdAndOther())); -}; - +proto.bandchain.v1.oracle.BlockHeaderMerkleParts.prototype.getLastBlockIdAndOther_asU8 = + function () { + return /** @type {!Uint8Array} */ ( + jspb.Message.bytesAsU8(this.getLastBlockIdAndOther()) + ) + } /** * @param {!(string|Uint8Array)} value * @return {!proto.bandchain.v1.oracle.BlockHeaderMerkleParts} returns this */ -proto.bandchain.v1.oracle.BlockHeaderMerkleParts.prototype.setLastBlockIdAndOther = function(value) { - return jspb.Message.setProto3BytesField(this, 5, value); -}; - +proto.bandchain.v1.oracle.BlockHeaderMerkleParts.prototype.setLastBlockIdAndOther = + function (value) { + return jspb.Message.setProto3BytesField(this, 5, value) + } /** * optional bytes next_validator_hash_and_consensus_hash = 6; * @return {!(string|Uint8Array)} */ -proto.bandchain.v1.oracle.BlockHeaderMerkleParts.prototype.getNextValidatorHashAndConsensusHash = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - +proto.bandchain.v1.oracle.BlockHeaderMerkleParts.prototype.getNextValidatorHashAndConsensusHash = + function () { + return /** @type {!(string|Uint8Array)} */ ( + jspb.Message.getFieldWithDefault(this, 6, '') + ) + } /** * optional bytes next_validator_hash_and_consensus_hash = 6; * This is a type-conversion wrapper around `getNextValidatorHashAndConsensusHash()` * @return {string} */ -proto.bandchain.v1.oracle.BlockHeaderMerkleParts.prototype.getNextValidatorHashAndConsensusHash_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getNextValidatorHashAndConsensusHash())); -}; - +proto.bandchain.v1.oracle.BlockHeaderMerkleParts.prototype.getNextValidatorHashAndConsensusHash_asB64 = + function () { + return /** @type {string} */ ( + jspb.Message.bytesAsB64(this.getNextValidatorHashAndConsensusHash()) + ) + } /** * optional bytes next_validator_hash_and_consensus_hash = 6; @@ -4356,40 +4751,44 @@ proto.bandchain.v1.oracle.BlockHeaderMerkleParts.prototype.getNextValidatorHashA * This is a type-conversion wrapper around `getNextValidatorHashAndConsensusHash()` * @return {!Uint8Array} */ -proto.bandchain.v1.oracle.BlockHeaderMerkleParts.prototype.getNextValidatorHashAndConsensusHash_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getNextValidatorHashAndConsensusHash())); -}; - +proto.bandchain.v1.oracle.BlockHeaderMerkleParts.prototype.getNextValidatorHashAndConsensusHash_asU8 = + function () { + return /** @type {!Uint8Array} */ ( + jspb.Message.bytesAsU8(this.getNextValidatorHashAndConsensusHash()) + ) + } /** * @param {!(string|Uint8Array)} value * @return {!proto.bandchain.v1.oracle.BlockHeaderMerkleParts} returns this */ -proto.bandchain.v1.oracle.BlockHeaderMerkleParts.prototype.setNextValidatorHashAndConsensusHash = function(value) { - return jspb.Message.setProto3BytesField(this, 6, value); -}; - +proto.bandchain.v1.oracle.BlockHeaderMerkleParts.prototype.setNextValidatorHashAndConsensusHash = + function (value) { + return jspb.Message.setProto3BytesField(this, 6, value) + } /** * optional bytes last_results_hash = 7; * @return {!(string|Uint8Array)} */ -proto.bandchain.v1.oracle.BlockHeaderMerkleParts.prototype.getLastResultsHash = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - +proto.bandchain.v1.oracle.BlockHeaderMerkleParts.prototype.getLastResultsHash = + function () { + return /** @type {!(string|Uint8Array)} */ ( + jspb.Message.getFieldWithDefault(this, 7, '') + ) + } /** * optional bytes last_results_hash = 7; * This is a type-conversion wrapper around `getLastResultsHash()` * @return {string} */ -proto.bandchain.v1.oracle.BlockHeaderMerkleParts.prototype.getLastResultsHash_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getLastResultsHash())); -}; - +proto.bandchain.v1.oracle.BlockHeaderMerkleParts.prototype.getLastResultsHash_asB64 = + function () { + return /** @type {string} */ ( + jspb.Message.bytesAsB64(this.getLastResultsHash()) + ) + } /** * optional bytes last_results_hash = 7; @@ -4398,40 +4797,44 @@ proto.bandchain.v1.oracle.BlockHeaderMerkleParts.prototype.getLastResultsHash_as * This is a type-conversion wrapper around `getLastResultsHash()` * @return {!Uint8Array} */ -proto.bandchain.v1.oracle.BlockHeaderMerkleParts.prototype.getLastResultsHash_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getLastResultsHash())); -}; - +proto.bandchain.v1.oracle.BlockHeaderMerkleParts.prototype.getLastResultsHash_asU8 = + function () { + return /** @type {!Uint8Array} */ ( + jspb.Message.bytesAsU8(this.getLastResultsHash()) + ) + } /** * @param {!(string|Uint8Array)} value * @return {!proto.bandchain.v1.oracle.BlockHeaderMerkleParts} returns this */ -proto.bandchain.v1.oracle.BlockHeaderMerkleParts.prototype.setLastResultsHash = function(value) { - return jspb.Message.setProto3BytesField(this, 7, value); -}; - +proto.bandchain.v1.oracle.BlockHeaderMerkleParts.prototype.setLastResultsHash = + function (value) { + return jspb.Message.setProto3BytesField(this, 7, value) + } /** * optional bytes evidence_and_proposer_hash = 8; * @return {!(string|Uint8Array)} */ -proto.bandchain.v1.oracle.BlockHeaderMerkleParts.prototype.getEvidenceAndProposerHash = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 8, "")); -}; - +proto.bandchain.v1.oracle.BlockHeaderMerkleParts.prototype.getEvidenceAndProposerHash = + function () { + return /** @type {!(string|Uint8Array)} */ ( + jspb.Message.getFieldWithDefault(this, 8, '') + ) + } /** * optional bytes evidence_and_proposer_hash = 8; * This is a type-conversion wrapper around `getEvidenceAndProposerHash()` * @return {string} */ -proto.bandchain.v1.oracle.BlockHeaderMerkleParts.prototype.getEvidenceAndProposerHash_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getEvidenceAndProposerHash())); -}; - +proto.bandchain.v1.oracle.BlockHeaderMerkleParts.prototype.getEvidenceAndProposerHash_asB64 = + function () { + return /** @type {string} */ ( + jspb.Message.bytesAsB64(this.getEvidenceAndProposerHash()) + ) + } /** * optional bytes evidence_and_proposer_hash = 8; @@ -4440,76 +4843,84 @@ proto.bandchain.v1.oracle.BlockHeaderMerkleParts.prototype.getEvidenceAndPropose * This is a type-conversion wrapper around `getEvidenceAndProposerHash()` * @return {!Uint8Array} */ -proto.bandchain.v1.oracle.BlockHeaderMerkleParts.prototype.getEvidenceAndProposerHash_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getEvidenceAndProposerHash())); -}; - +proto.bandchain.v1.oracle.BlockHeaderMerkleParts.prototype.getEvidenceAndProposerHash_asU8 = + function () { + return /** @type {!Uint8Array} */ ( + jspb.Message.bytesAsU8(this.getEvidenceAndProposerHash()) + ) + } /** * @param {!(string|Uint8Array)} value * @return {!proto.bandchain.v1.oracle.BlockHeaderMerkleParts} returns this */ -proto.bandchain.v1.oracle.BlockHeaderMerkleParts.prototype.setEvidenceAndProposerHash = function(value) { - return jspb.Message.setProto3BytesField(this, 8, value); -}; - - - - +proto.bandchain.v1.oracle.BlockHeaderMerkleParts.prototype.setEvidenceAndProposerHash = + function (value) { + return jspb.Message.setProto3BytesField(this, 8, value) + } if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.bandchain.v1.oracle.CommonEncodedVotePart.prototype.toObject = function(opt_includeInstance) { - return proto.bandchain.v1.oracle.CommonEncodedVotePart.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.bandchain.v1.oracle.CommonEncodedVotePart} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bandchain.v1.oracle.CommonEncodedVotePart.toObject = function(includeInstance, msg) { - var f, obj = { - signedDataPrefix: msg.getSignedDataPrefix_asB64(), - signedDataSuffix: msg.getSignedDataSuffix_asB64() - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bandchain.v1.oracle.CommonEncodedVotePart.prototype.toObject = + function (opt_includeInstance) { + return proto.bandchain.v1.oracle.CommonEncodedVotePart.toObject( + opt_includeInstance, + this, + ) + } + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bandchain.v1.oracle.CommonEncodedVotePart} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bandchain.v1.oracle.CommonEncodedVotePart.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = { + signedDataPrefix: msg.getSignedDataPrefix_asB64(), + signedDataSuffix: msg.getSignedDataSuffix_asB64(), + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.bandchain.v1.oracle.CommonEncodedVotePart} */ -proto.bandchain.v1.oracle.CommonEncodedVotePart.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.bandchain.v1.oracle.CommonEncodedVotePart; - return proto.bandchain.v1.oracle.CommonEncodedVotePart.deserializeBinaryFromReader(msg, reader); -}; - +proto.bandchain.v1.oracle.CommonEncodedVotePart.deserializeBinary = function ( + bytes, +) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.bandchain.v1.oracle.CommonEncodedVotePart() + return proto.bandchain.v1.oracle.CommonEncodedVotePart.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -4518,40 +4929,43 @@ proto.bandchain.v1.oracle.CommonEncodedVotePart.deserializeBinary = function(byt * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.bandchain.v1.oracle.CommonEncodedVotePart} */ -proto.bandchain.v1.oracle.CommonEncodedVotePart.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setSignedDataPrefix(value); - break; - case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setSignedDataSuffix(value); - break; - default: - reader.skipField(); - break; +proto.bandchain.v1.oracle.CommonEncodedVotePart.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break + } + var field = reader.getFieldNumber() + switch (field) { + case 1: + var value = /** @type {!Uint8Array} */ (reader.readBytes()) + msg.setSignedDataPrefix(value) + break + case 2: + var value = /** @type {!Uint8Array} */ (reader.readBytes()) + msg.setSignedDataSuffix(value) + break + default: + reader.skipField() + break + } } + return msg } - return msg; -}; - /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.bandchain.v1.oracle.CommonEncodedVotePart.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.bandchain.v1.oracle.CommonEncodedVotePart.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.bandchain.v1.oracle.CommonEncodedVotePart.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter() + proto.bandchain.v1.oracle.CommonEncodedVotePart.serializeBinaryToWriter( + this, + writer, + ) + return writer.getResultBuffer() + } /** * Serializes the given message to binary data (in protobuf wire @@ -4560,44 +4974,41 @@ proto.bandchain.v1.oracle.CommonEncodedVotePart.prototype.serializeBinary = func * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.bandchain.v1.oracle.CommonEncodedVotePart.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSignedDataPrefix_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } - f = message.getSignedDataSuffix_asU8(); - if (f.length > 0) { - writer.writeBytes( - 2, - f - ); +proto.bandchain.v1.oracle.CommonEncodedVotePart.serializeBinaryToWriter = + function (message, writer) { + var f = undefined + f = message.getSignedDataPrefix_asU8() + if (f.length > 0) { + writer.writeBytes(1, f) + } + f = message.getSignedDataSuffix_asU8() + if (f.length > 0) { + writer.writeBytes(2, f) + } } -}; - /** * optional bytes signed_data_prefix = 1; * @return {!(string|Uint8Array)} */ -proto.bandchain.v1.oracle.CommonEncodedVotePart.prototype.getSignedDataPrefix = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - +proto.bandchain.v1.oracle.CommonEncodedVotePart.prototype.getSignedDataPrefix = + function () { + return /** @type {!(string|Uint8Array)} */ ( + jspb.Message.getFieldWithDefault(this, 1, '') + ) + } /** * optional bytes signed_data_prefix = 1; * This is a type-conversion wrapper around `getSignedDataPrefix()` * @return {string} */ -proto.bandchain.v1.oracle.CommonEncodedVotePart.prototype.getSignedDataPrefix_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getSignedDataPrefix())); -}; - +proto.bandchain.v1.oracle.CommonEncodedVotePart.prototype.getSignedDataPrefix_asB64 = + function () { + return /** @type {string} */ ( + jspb.Message.bytesAsB64(this.getSignedDataPrefix()) + ) + } /** * optional bytes signed_data_prefix = 1; @@ -4606,40 +5017,44 @@ proto.bandchain.v1.oracle.CommonEncodedVotePart.prototype.getSignedDataPrefix_as * This is a type-conversion wrapper around `getSignedDataPrefix()` * @return {!Uint8Array} */ -proto.bandchain.v1.oracle.CommonEncodedVotePart.prototype.getSignedDataPrefix_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getSignedDataPrefix())); -}; - +proto.bandchain.v1.oracle.CommonEncodedVotePart.prototype.getSignedDataPrefix_asU8 = + function () { + return /** @type {!Uint8Array} */ ( + jspb.Message.bytesAsU8(this.getSignedDataPrefix()) + ) + } /** * @param {!(string|Uint8Array)} value * @return {!proto.bandchain.v1.oracle.CommonEncodedVotePart} returns this */ -proto.bandchain.v1.oracle.CommonEncodedVotePart.prototype.setSignedDataPrefix = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - +proto.bandchain.v1.oracle.CommonEncodedVotePart.prototype.setSignedDataPrefix = + function (value) { + return jspb.Message.setProto3BytesField(this, 1, value) + } /** * optional bytes signed_data_suffix = 2; * @return {!(string|Uint8Array)} */ -proto.bandchain.v1.oracle.CommonEncodedVotePart.prototype.getSignedDataSuffix = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - +proto.bandchain.v1.oracle.CommonEncodedVotePart.prototype.getSignedDataSuffix = + function () { + return /** @type {!(string|Uint8Array)} */ ( + jspb.Message.getFieldWithDefault(this, 2, '') + ) + } /** * optional bytes signed_data_suffix = 2; * This is a type-conversion wrapper around `getSignedDataSuffix()` * @return {string} */ -proto.bandchain.v1.oracle.CommonEncodedVotePart.prototype.getSignedDataSuffix_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getSignedDataSuffix())); -}; - +proto.bandchain.v1.oracle.CommonEncodedVotePart.prototype.getSignedDataSuffix_asB64 = + function () { + return /** @type {string} */ ( + jspb.Message.bytesAsB64(this.getSignedDataSuffix()) + ) + } /** * optional bytes signed_data_suffix = 2; @@ -4648,78 +5063,85 @@ proto.bandchain.v1.oracle.CommonEncodedVotePart.prototype.getSignedDataSuffix_as * This is a type-conversion wrapper around `getSignedDataSuffix()` * @return {!Uint8Array} */ -proto.bandchain.v1.oracle.CommonEncodedVotePart.prototype.getSignedDataSuffix_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getSignedDataSuffix())); -}; - +proto.bandchain.v1.oracle.CommonEncodedVotePart.prototype.getSignedDataSuffix_asU8 = + function () { + return /** @type {!Uint8Array} */ ( + jspb.Message.bytesAsU8(this.getSignedDataSuffix()) + ) + } /** * @param {!(string|Uint8Array)} value * @return {!proto.bandchain.v1.oracle.CommonEncodedVotePart} returns this */ -proto.bandchain.v1.oracle.CommonEncodedVotePart.prototype.setSignedDataSuffix = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); -}; - - - - +proto.bandchain.v1.oracle.CommonEncodedVotePart.prototype.setSignedDataSuffix = + function (value) { + return jspb.Message.setProto3BytesField(this, 2, value) + } if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.bandchain.v1.oracle.TMSignature.prototype.toObject = function(opt_includeInstance) { - return proto.bandchain.v1.oracle.TMSignature.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.bandchain.v1.oracle.TMSignature} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bandchain.v1.oracle.TMSignature.toObject = function(includeInstance, msg) { - var f, obj = { - r: msg.getR_asB64(), - s: msg.getS_asB64(), - v: jspb.Message.getFieldWithDefault(msg, 3, 0), - encodedTimestamp: msg.getEncodedTimestamp_asB64() - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bandchain.v1.oracle.TMSignature.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.bandchain.v1.oracle.TMSignature.toObject( + opt_includeInstance, + this, + ) + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bandchain.v1.oracle.TMSignature} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bandchain.v1.oracle.TMSignature.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = { + r: msg.getR_asB64(), + s: msg.getS_asB64(), + v: jspb.Message.getFieldWithDefault(msg, 3, 0), + encodedTimestamp: msg.getEncodedTimestamp_asB64(), + } + + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.bandchain.v1.oracle.TMSignature} */ -proto.bandchain.v1.oracle.TMSignature.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.bandchain.v1.oracle.TMSignature; - return proto.bandchain.v1.oracle.TMSignature.deserializeBinaryFromReader(msg, reader); -}; - +proto.bandchain.v1.oracle.TMSignature.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.bandchain.v1.oracle.TMSignature() + return proto.bandchain.v1.oracle.TMSignature.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -4728,48 +5150,49 @@ proto.bandchain.v1.oracle.TMSignature.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.bandchain.v1.oracle.TMSignature} */ -proto.bandchain.v1.oracle.TMSignature.deserializeBinaryFromReader = function(msg, reader) { +proto.bandchain.v1.oracle.TMSignature.deserializeBinaryFromReader = function ( + msg, + reader, +) { while (reader.nextField()) { if (reader.isEndGroup()) { - break; + break } - var field = reader.getFieldNumber(); + var field = reader.getFieldNumber() switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setR(value); - break; - case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setS(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint32()); - msg.setV(value); - break; - case 4: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setEncodedTimestamp(value); - break; - default: - reader.skipField(); - break; + case 1: + var value = /** @type {!Uint8Array} */ (reader.readBytes()) + msg.setR(value) + break + case 2: + var value = /** @type {!Uint8Array} */ (reader.readBytes()) + msg.setS(value) + break + case 3: + var value = /** @type {number} */ (reader.readUint32()) + msg.setV(value) + break + case 4: + var value = /** @type {!Uint8Array} */ (reader.readBytes()) + msg.setEncodedTimestamp(value) + break + default: + reader.skipField() + break } } - return msg; -}; - + return msg +} /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.bandchain.v1.oracle.TMSignature.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.bandchain.v1.oracle.TMSignature.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.bandchain.v1.oracle.TMSignature.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter() + proto.bandchain.v1.oracle.TMSignature.serializeBinaryToWriter(this, writer) + return writer.getResultBuffer() +} /** * Serializes the given message to binary data (in protobuf wire @@ -4778,58 +5201,47 @@ proto.bandchain.v1.oracle.TMSignature.prototype.serializeBinary = function() { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.bandchain.v1.oracle.TMSignature.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getR_asU8(); +proto.bandchain.v1.oracle.TMSignature.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined + f = message.getR_asU8() if (f.length > 0) { - writer.writeBytes( - 1, - f - ); + writer.writeBytes(1, f) } - f = message.getS_asU8(); + f = message.getS_asU8() if (f.length > 0) { - writer.writeBytes( - 2, - f - ); + writer.writeBytes(2, f) } - f = message.getV(); + f = message.getV() if (f !== 0) { - writer.writeUint32( - 3, - f - ); + writer.writeUint32(3, f) } - f = message.getEncodedTimestamp_asU8(); + f = message.getEncodedTimestamp_asU8() if (f.length > 0) { - writer.writeBytes( - 4, - f - ); + writer.writeBytes(4, f) } -}; - +} /** * optional bytes r = 1; * @return {!(string|Uint8Array)} */ -proto.bandchain.v1.oracle.TMSignature.prototype.getR = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - +proto.bandchain.v1.oracle.TMSignature.prototype.getR = function () { + return /** @type {!(string|Uint8Array)} */ ( + jspb.Message.getFieldWithDefault(this, 1, '') + ) +} /** * optional bytes r = 1; * This is a type-conversion wrapper around `getR()` * @return {string} */ -proto.bandchain.v1.oracle.TMSignature.prototype.getR_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getR())); -}; - +proto.bandchain.v1.oracle.TMSignature.prototype.getR_asB64 = function () { + return /** @type {string} */ (jspb.Message.bytesAsB64(this.getR())) +} /** * optional bytes r = 1; @@ -4838,40 +5250,36 @@ proto.bandchain.v1.oracle.TMSignature.prototype.getR_asB64 = function() { * This is a type-conversion wrapper around `getR()` * @return {!Uint8Array} */ -proto.bandchain.v1.oracle.TMSignature.prototype.getR_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getR())); -}; - +proto.bandchain.v1.oracle.TMSignature.prototype.getR_asU8 = function () { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(this.getR())) +} /** * @param {!(string|Uint8Array)} value * @return {!proto.bandchain.v1.oracle.TMSignature} returns this */ -proto.bandchain.v1.oracle.TMSignature.prototype.setR = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - +proto.bandchain.v1.oracle.TMSignature.prototype.setR = function (value) { + return jspb.Message.setProto3BytesField(this, 1, value) +} /** * optional bytes s = 2; * @return {!(string|Uint8Array)} */ -proto.bandchain.v1.oracle.TMSignature.prototype.getS = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - +proto.bandchain.v1.oracle.TMSignature.prototype.getS = function () { + return /** @type {!(string|Uint8Array)} */ ( + jspb.Message.getFieldWithDefault(this, 2, '') + ) +} /** * optional bytes s = 2; * This is a type-conversion wrapper around `getS()` * @return {string} */ -proto.bandchain.v1.oracle.TMSignature.prototype.getS_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getS())); -}; - +proto.bandchain.v1.oracle.TMSignature.prototype.getS_asB64 = function () { + return /** @type {string} */ (jspb.Message.bytesAsB64(this.getS())) +} /** * optional bytes s = 2; @@ -4880,58 +5288,56 @@ proto.bandchain.v1.oracle.TMSignature.prototype.getS_asB64 = function() { * This is a type-conversion wrapper around `getS()` * @return {!Uint8Array} */ -proto.bandchain.v1.oracle.TMSignature.prototype.getS_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getS())); -}; - +proto.bandchain.v1.oracle.TMSignature.prototype.getS_asU8 = function () { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(this.getS())) +} /** * @param {!(string|Uint8Array)} value * @return {!proto.bandchain.v1.oracle.TMSignature} returns this */ -proto.bandchain.v1.oracle.TMSignature.prototype.setS = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); -}; - +proto.bandchain.v1.oracle.TMSignature.prototype.setS = function (value) { + return jspb.Message.setProto3BytesField(this, 2, value) +} /** * optional uint32 v = 3; * @return {number} */ -proto.bandchain.v1.oracle.TMSignature.prototype.getV = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - +proto.bandchain.v1.oracle.TMSignature.prototype.getV = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)) +} /** * @param {number} value * @return {!proto.bandchain.v1.oracle.TMSignature} returns this */ -proto.bandchain.v1.oracle.TMSignature.prototype.setV = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - +proto.bandchain.v1.oracle.TMSignature.prototype.setV = function (value) { + return jspb.Message.setProto3IntField(this, 3, value) +} /** * optional bytes encoded_timestamp = 4; * @return {!(string|Uint8Array)} */ -proto.bandchain.v1.oracle.TMSignature.prototype.getEncodedTimestamp = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - +proto.bandchain.v1.oracle.TMSignature.prototype.getEncodedTimestamp = + function () { + return /** @type {!(string|Uint8Array)} */ ( + jspb.Message.getFieldWithDefault(this, 4, '') + ) + } /** * optional bytes encoded_timestamp = 4; * This is a type-conversion wrapper around `getEncodedTimestamp()` * @return {string} */ -proto.bandchain.v1.oracle.TMSignature.prototype.getEncodedTimestamp_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getEncodedTimestamp())); -}; - +proto.bandchain.v1.oracle.TMSignature.prototype.getEncodedTimestamp_asB64 = + function () { + return /** @type {string} */ ( + jspb.Message.bytesAsB64(this.getEncodedTimestamp()) + ) + } /** * optional bytes encoded_timestamp = 4; @@ -4940,85 +5346,98 @@ proto.bandchain.v1.oracle.TMSignature.prototype.getEncodedTimestamp_asB64 = func * This is a type-conversion wrapper around `getEncodedTimestamp()` * @return {!Uint8Array} */ -proto.bandchain.v1.oracle.TMSignature.prototype.getEncodedTimestamp_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getEncodedTimestamp())); -}; - +proto.bandchain.v1.oracle.TMSignature.prototype.getEncodedTimestamp_asU8 = + function () { + return /** @type {!Uint8Array} */ ( + jspb.Message.bytesAsU8(this.getEncodedTimestamp()) + ) + } /** * @param {!(string|Uint8Array)} value * @return {!proto.bandchain.v1.oracle.TMSignature} returns this */ -proto.bandchain.v1.oracle.TMSignature.prototype.setEncodedTimestamp = function(value) { - return jspb.Message.setProto3BytesField(this, 4, value); -}; - - +proto.bandchain.v1.oracle.TMSignature.prototype.setEncodedTimestamp = function ( + value, +) { + return jspb.Message.setProto3BytesField(this, 4, value) +} /** * List of repeated fields within this message type. * @private {!Array} * @const */ -proto.bandchain.v1.oracle.RequestsCountProof.repeatedFields_ = [3]; - - +proto.bandchain.v1.oracle.RequestsCountProof.repeatedFields_ = [3] if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.bandchain.v1.oracle.RequestsCountProof.prototype.toObject = function(opt_includeInstance) { - return proto.bandchain.v1.oracle.RequestsCountProof.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.bandchain.v1.oracle.RequestsCountProof} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bandchain.v1.oracle.RequestsCountProof.toObject = function(includeInstance, msg) { - var f, obj = { - count: jspb.Message.getFieldWithDefault(msg, 1, 0), - version: jspb.Message.getFieldWithDefault(msg, 2, 0), - merklePathsList: jspb.Message.toObjectList(msg.getMerklePathsList(), - proto.bandchain.v1.oracle.IAVLMerklePath.toObject, includeInstance) - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bandchain.v1.oracle.RequestsCountProof.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.bandchain.v1.oracle.RequestsCountProof.toObject( + opt_includeInstance, + this, + ) + } + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bandchain.v1.oracle.RequestsCountProof} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bandchain.v1.oracle.RequestsCountProof.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = { + count: jspb.Message.getFieldWithDefault(msg, 1, 0), + version: jspb.Message.getFieldWithDefault(msg, 2, 0), + merklePathsList: jspb.Message.toObjectList( + msg.getMerklePathsList(), + proto.bandchain.v1.oracle.IAVLMerklePath.toObject, + includeInstance, + ), + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.bandchain.v1.oracle.RequestsCountProof} */ -proto.bandchain.v1.oracle.RequestsCountProof.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.bandchain.v1.oracle.RequestsCountProof; - return proto.bandchain.v1.oracle.RequestsCountProof.deserializeBinaryFromReader(msg, reader); -}; - +proto.bandchain.v1.oracle.RequestsCountProof.deserializeBinary = function ( + bytes, +) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.bandchain.v1.oracle.RequestsCountProof() + return proto.bandchain.v1.oracle.RequestsCountProof.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -5027,45 +5446,52 @@ proto.bandchain.v1.oracle.RequestsCountProof.deserializeBinary = function(bytes) * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.bandchain.v1.oracle.RequestsCountProof} */ -proto.bandchain.v1.oracle.RequestsCountProof.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint64()); - msg.setCount(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint64()); - msg.setVersion(value); - break; - case 3: - var value = new proto.bandchain.v1.oracle.IAVLMerklePath; - reader.readMessage(value,proto.bandchain.v1.oracle.IAVLMerklePath.deserializeBinaryFromReader); - msg.addMerklePaths(value); - break; - default: - reader.skipField(); - break; +proto.bandchain.v1.oracle.RequestsCountProof.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break + } + var field = reader.getFieldNumber() + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readUint64()) + msg.setCount(value) + break + case 2: + var value = /** @type {number} */ (reader.readUint64()) + msg.setVersion(value) + break + case 3: + var value = new proto.bandchain.v1.oracle.IAVLMerklePath() + reader.readMessage( + value, + proto.bandchain.v1.oracle.IAVLMerklePath + .deserializeBinaryFromReader, + ) + msg.addMerklePaths(value) + break + default: + reader.skipField() + break + } } + return msg } - return msg; -}; - /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.bandchain.v1.oracle.RequestsCountProof.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.bandchain.v1.oracle.RequestsCountProof.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.bandchain.v1.oracle.RequestsCountProof.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter() + proto.bandchain.v1.oracle.RequestsCountProof.serializeBinaryToWriter( + this, + writer, + ) + return writer.getResultBuffer() + } /** * Serializes the given message to binary data (in protobuf wire @@ -5074,105 +5500,111 @@ proto.bandchain.v1.oracle.RequestsCountProof.prototype.serializeBinary = functio * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.bandchain.v1.oracle.RequestsCountProof.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCount(); - if (f !== 0) { - writer.writeUint64( - 1, - f - ); - } - f = message.getVersion(); - if (f !== 0) { - writer.writeUint64( - 2, - f - ); - } - f = message.getMerklePathsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - proto.bandchain.v1.oracle.IAVLMerklePath.serializeBinaryToWriter - ); +proto.bandchain.v1.oracle.RequestsCountProof.serializeBinaryToWriter = + function (message, writer) { + var f = undefined + f = message.getCount() + if (f !== 0) { + writer.writeUint64(1, f) + } + f = message.getVersion() + if (f !== 0) { + writer.writeUint64(2, f) + } + f = message.getMerklePathsList() + if (f.length > 0) { + writer.writeRepeatedMessage( + 3, + f, + proto.bandchain.v1.oracle.IAVLMerklePath.serializeBinaryToWriter, + ) + } } -}; - /** * optional uint64 count = 1; * @return {number} */ -proto.bandchain.v1.oracle.RequestsCountProof.prototype.getCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - +proto.bandchain.v1.oracle.RequestsCountProof.prototype.getCount = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)) +} /** * @param {number} value * @return {!proto.bandchain.v1.oracle.RequestsCountProof} returns this */ -proto.bandchain.v1.oracle.RequestsCountProof.prototype.setCount = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - +proto.bandchain.v1.oracle.RequestsCountProof.prototype.setCount = function ( + value, +) { + return jspb.Message.setProto3IntField(this, 1, value) +} /** * optional uint64 version = 2; * @return {number} */ -proto.bandchain.v1.oracle.RequestsCountProof.prototype.getVersion = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - +proto.bandchain.v1.oracle.RequestsCountProof.prototype.getVersion = + function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)) + } /** * @param {number} value * @return {!proto.bandchain.v1.oracle.RequestsCountProof} returns this */ -proto.bandchain.v1.oracle.RequestsCountProof.prototype.setVersion = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - +proto.bandchain.v1.oracle.RequestsCountProof.prototype.setVersion = function ( + value, +) { + return jspb.Message.setProto3IntField(this, 2, value) +} /** * repeated IAVLMerklePath merkle_paths = 3; * @return {!Array} */ -proto.bandchain.v1.oracle.RequestsCountProof.prototype.getMerklePathsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.bandchain.v1.oracle.IAVLMerklePath, 3)); -}; - +proto.bandchain.v1.oracle.RequestsCountProof.prototype.getMerklePathsList = + function () { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField( + this, + proto.bandchain.v1.oracle.IAVLMerklePath, + 3, + ) + ) + } /** * @param {!Array} value * @return {!proto.bandchain.v1.oracle.RequestsCountProof} returns this -*/ -proto.bandchain.v1.oracle.RequestsCountProof.prototype.setMerklePathsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - + */ +proto.bandchain.v1.oracle.RequestsCountProof.prototype.setMerklePathsList = + function (value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value) + } /** * @param {!proto.bandchain.v1.oracle.IAVLMerklePath=} opt_value * @param {number=} opt_index * @return {!proto.bandchain.v1.oracle.IAVLMerklePath} */ -proto.bandchain.v1.oracle.RequestsCountProof.prototype.addMerklePaths = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.bandchain.v1.oracle.IAVLMerklePath, opt_index); -}; - +proto.bandchain.v1.oracle.RequestsCountProof.prototype.addMerklePaths = + function (opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField( + this, + 3, + opt_value, + proto.bandchain.v1.oracle.IAVLMerklePath, + opt_index, + ) + } /** * Clears the list making it empty but non-null. * @return {!proto.bandchain.v1.oracle.RequestsCountProof} returns this */ -proto.bandchain.v1.oracle.RequestsCountProof.prototype.clearMerklePathsList = function() { - return this.setMerklePathsList([]); -}; - +proto.bandchain.v1.oracle.RequestsCountProof.prototype.clearMerklePathsList = + function () { + return this.setMerklePathsList([]) + } -goog.object.extend(exports, proto.bandchain.v1.oracle); +goog.object.extend(exports, proto.bandchain.v1.oracle) diff --git a/proto/bandchain/v1/oracle/proof_pb_service.d.ts b/proto/bandchain/v1/oracle/proof_pb_service.d.ts index 4ba7a8e..814cb6d 100644 --- a/proto/bandchain/v1/oracle/proof_pb_service.d.ts +++ b/proto/bandchain/v1/oracle/proof_pb_service.d.ts @@ -1,101 +1,131 @@ // package: bandchain.v1.oracle // file: bandchain/v1/oracle/proof.proto -import * as bandchain_v1_oracle_proof_pb from "../../../bandchain/v1/oracle/proof_pb"; -import {grpc} from "@improbable-eng/grpc-web"; +import * as bandchain_v1_oracle_proof_pb from '../../../bandchain/v1/oracle/proof_pb' +import { grpc } from '@improbable-eng/grpc-web' type ServiceProof = { - readonly methodName: string; - readonly service: typeof Service; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof bandchain_v1_oracle_proof_pb.QueryProofRequest; - readonly responseType: typeof bandchain_v1_oracle_proof_pb.QueryProofResponse; -}; + readonly methodName: string + readonly service: typeof Service + readonly requestStream: false + readonly responseStream: false + readonly requestType: typeof bandchain_v1_oracle_proof_pb.ProofRequest + readonly responseType: typeof bandchain_v1_oracle_proof_pb.ProofResponse +} type ServiceMultiProof = { - readonly methodName: string; - readonly service: typeof Service; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof bandchain_v1_oracle_proof_pb.QueryMultiProofRequest; - readonly responseType: typeof bandchain_v1_oracle_proof_pb.QueryMultiProofResponse; -}; + readonly methodName: string + readonly service: typeof Service + readonly requestStream: false + readonly responseStream: false + readonly requestType: typeof bandchain_v1_oracle_proof_pb.MultiProofRequest + readonly responseType: typeof bandchain_v1_oracle_proof_pb.MultiProofResponse +} type ServiceRequestCountProof = { - readonly methodName: string; - readonly service: typeof Service; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof bandchain_v1_oracle_proof_pb.QueryRequestCountProofRequest; - readonly responseType: typeof bandchain_v1_oracle_proof_pb.QueryRequestCountProofResponse; -}; + readonly methodName: string + readonly service: typeof Service + readonly requestStream: false + readonly responseStream: false + readonly requestType: typeof bandchain_v1_oracle_proof_pb.RequestCountProofRequest + readonly responseType: typeof bandchain_v1_oracle_proof_pb.RequestCountProofResponse +} export class Service { - static readonly serviceName: string; - static readonly Proof: ServiceProof; - static readonly MultiProof: ServiceMultiProof; - static readonly RequestCountProof: ServiceRequestCountProof; + static readonly serviceName: string + static readonly Proof: ServiceProof + static readonly MultiProof: ServiceMultiProof + static readonly RequestCountProof: ServiceRequestCountProof } -export type ServiceError = { message: string, code: number; metadata: grpc.Metadata } -export type Status = { details: string, code: number; metadata: grpc.Metadata } +export type ServiceError = { + message: string + code: number + metadata: grpc.Metadata +} +export type Status = { details: string; code: number; metadata: grpc.Metadata } interface UnaryResponse { - cancel(): void; + cancel(): void } interface ResponseStream { - cancel(): void; - on(type: 'data', handler: (message: T) => void): ResponseStream; - on(type: 'end', handler: (status?: Status) => void): ResponseStream; - on(type: 'status', handler: (status: Status) => void): ResponseStream; + cancel(): void + on(type: 'data', handler: (message: T) => void): ResponseStream + on(type: 'end', handler: (status?: Status) => void): ResponseStream + on(type: 'status', handler: (status: Status) => void): ResponseStream } interface RequestStream { - write(message: T): RequestStream; - end(): void; - cancel(): void; - on(type: 'end', handler: (status?: Status) => void): RequestStream; - on(type: 'status', handler: (status: Status) => void): RequestStream; + write(message: T): RequestStream + end(): void + cancel(): void + on(type: 'end', handler: (status?: Status) => void): RequestStream + on(type: 'status', handler: (status: Status) => void): RequestStream } interface BidirectionalStream { - write(message: ReqT): BidirectionalStream; - end(): void; - cancel(): void; - on(type: 'data', handler: (message: ResT) => void): BidirectionalStream; - on(type: 'end', handler: (status?: Status) => void): BidirectionalStream; - on(type: 'status', handler: (status: Status) => void): BidirectionalStream; + write(message: ReqT): BidirectionalStream + end(): void + cancel(): void + on( + type: 'data', + handler: (message: ResT) => void, + ): BidirectionalStream + on( + type: 'end', + handler: (status?: Status) => void, + ): BidirectionalStream + on( + type: 'status', + handler: (status: Status) => void, + ): BidirectionalStream } export class ServiceClient { - readonly serviceHost: string; + readonly serviceHost: string - constructor(serviceHost: string, options?: grpc.RpcOptions); + constructor(serviceHost: string, options?: grpc.RpcOptions) proof( - requestMessage: bandchain_v1_oracle_proof_pb.QueryProofRequest, + requestMessage: bandchain_v1_oracle_proof_pb.ProofRequest, metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: bandchain_v1_oracle_proof_pb.QueryProofResponse|null) => void - ): UnaryResponse; + callback: ( + error: ServiceError | null, + responseMessage: bandchain_v1_oracle_proof_pb.ProofResponse | null, + ) => void, + ): UnaryResponse proof( - requestMessage: bandchain_v1_oracle_proof_pb.QueryProofRequest, - callback: (error: ServiceError|null, responseMessage: bandchain_v1_oracle_proof_pb.QueryProofResponse|null) => void - ): UnaryResponse; + requestMessage: bandchain_v1_oracle_proof_pb.ProofRequest, + callback: ( + error: ServiceError | null, + responseMessage: bandchain_v1_oracle_proof_pb.ProofResponse | null, + ) => void, + ): UnaryResponse multiProof( - requestMessage: bandchain_v1_oracle_proof_pb.QueryMultiProofRequest, + requestMessage: bandchain_v1_oracle_proof_pb.MultiProofRequest, metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: bandchain_v1_oracle_proof_pb.QueryMultiProofResponse|null) => void - ): UnaryResponse; + callback: ( + error: ServiceError | null, + responseMessage: bandchain_v1_oracle_proof_pb.MultiProofResponse | null, + ) => void, + ): UnaryResponse multiProof( - requestMessage: bandchain_v1_oracle_proof_pb.QueryMultiProofRequest, - callback: (error: ServiceError|null, responseMessage: bandchain_v1_oracle_proof_pb.QueryMultiProofResponse|null) => void - ): UnaryResponse; + requestMessage: bandchain_v1_oracle_proof_pb.MultiProofRequest, + callback: ( + error: ServiceError | null, + responseMessage: bandchain_v1_oracle_proof_pb.MultiProofResponse | null, + ) => void, + ): UnaryResponse requestCountProof( - requestMessage: bandchain_v1_oracle_proof_pb.QueryRequestCountProofRequest, + requestMessage: bandchain_v1_oracle_proof_pb.RequestCountProofRequest, metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: bandchain_v1_oracle_proof_pb.QueryRequestCountProofResponse|null) => void - ): UnaryResponse; + callback: ( + error: ServiceError | null, + responseMessage: bandchain_v1_oracle_proof_pb.RequestCountProofResponse | null, + ) => void, + ): UnaryResponse requestCountProof( - requestMessage: bandchain_v1_oracle_proof_pb.QueryRequestCountProofRequest, - callback: (error: ServiceError|null, responseMessage: bandchain_v1_oracle_proof_pb.QueryRequestCountProofResponse|null) => void - ): UnaryResponse; + requestMessage: bandchain_v1_oracle_proof_pb.RequestCountProofRequest, + callback: ( + error: ServiceError | null, + responseMessage: bandchain_v1_oracle_proof_pb.RequestCountProofResponse | null, + ) => void, + ): UnaryResponse } - diff --git a/proto/bandchain/v1/oracle/proof_pb_service.js b/proto/bandchain/v1/oracle/proof_pb_service.js index bf5bff3..79e40ee 100644 --- a/proto/bandchain/v1/oracle/proof_pb_service.js +++ b/proto/bandchain/v1/oracle/proof_pb_service.js @@ -1,52 +1,56 @@ // package: bandchain.v1.oracle // file: bandchain/v1/oracle/proof.proto -var bandchain_v1_oracle_proof_pb = require("../../../bandchain/v1/oracle/proof_pb"); -var grpc = require("@improbable-eng/grpc-web").grpc; +var bandchain_v1_oracle_proof_pb = require('../../../bandchain/v1/oracle/proof_pb') +var grpc = require('@improbable-eng/grpc-web').grpc var Service = (function () { function Service() {} - Service.serviceName = "bandchain.v1.oracle.Service"; - return Service; -}()); + Service.serviceName = 'bandchain.v1.oracle.Service' + return Service +})() Service.Proof = { - methodName: "Proof", + methodName: 'Proof', service: Service, requestStream: false, responseStream: false, - requestType: bandchain_v1_oracle_proof_pb.QueryProofRequest, - responseType: bandchain_v1_oracle_proof_pb.QueryProofResponse -}; + requestType: bandchain_v1_oracle_proof_pb.ProofRequest, + responseType: bandchain_v1_oracle_proof_pb.ProofResponse, +} Service.MultiProof = { - methodName: "MultiProof", + methodName: 'MultiProof', service: Service, requestStream: false, responseStream: false, - requestType: bandchain_v1_oracle_proof_pb.QueryMultiProofRequest, - responseType: bandchain_v1_oracle_proof_pb.QueryMultiProofResponse -}; + requestType: bandchain_v1_oracle_proof_pb.MultiProofRequest, + responseType: bandchain_v1_oracle_proof_pb.MultiProofResponse, +} Service.RequestCountProof = { - methodName: "RequestCountProof", + methodName: 'RequestCountProof', service: Service, requestStream: false, responseStream: false, - requestType: bandchain_v1_oracle_proof_pb.QueryRequestCountProofRequest, - responseType: bandchain_v1_oracle_proof_pb.QueryRequestCountProofResponse -}; + requestType: bandchain_v1_oracle_proof_pb.RequestCountProofRequest, + responseType: bandchain_v1_oracle_proof_pb.RequestCountProofResponse, +} -exports.Service = Service; +exports.Service = Service function ServiceClient(serviceHost, options) { - this.serviceHost = serviceHost; - this.options = options || {}; + this.serviceHost = serviceHost + this.options = options || {} } -ServiceClient.prototype.proof = function proof(requestMessage, metadata, callback) { +ServiceClient.prototype.proof = function proof( + requestMessage, + metadata, + callback, +) { if (arguments.length === 2) { - callback = arguments[1]; + callback = arguments[1] } var client = grpc.unary(Service.Proof, { request: requestMessage, @@ -57,27 +61,31 @@ ServiceClient.prototype.proof = function proof(requestMessage, metadata, callbac onEnd: function (response) { if (callback) { if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); + var err = new Error(response.statusMessage) + err.code = response.status + err.metadata = response.trailers + callback(err, null) } else { - callback(null, response.message); + callback(null, response.message) } } - } - }); + }, + }) return { cancel: function () { - callback = null; - client.close(); - } - }; -}; + callback = null + client.close() + }, + } +} -ServiceClient.prototype.multiProof = function multiProof(requestMessage, metadata, callback) { +ServiceClient.prototype.multiProof = function multiProof( + requestMessage, + metadata, + callback, +) { if (arguments.length === 2) { - callback = arguments[1]; + callback = arguments[1] } var client = grpc.unary(Service.MultiProof, { request: requestMessage, @@ -88,27 +96,31 @@ ServiceClient.prototype.multiProof = function multiProof(requestMessage, metadat onEnd: function (response) { if (callback) { if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); + var err = new Error(response.statusMessage) + err.code = response.status + err.metadata = response.trailers + callback(err, null) } else { - callback(null, response.message); + callback(null, response.message) } } - } - }); + }, + }) return { cancel: function () { - callback = null; - client.close(); - } - }; -}; + callback = null + client.close() + }, + } +} -ServiceClient.prototype.requestCountProof = function requestCountProof(requestMessage, metadata, callback) { +ServiceClient.prototype.requestCountProof = function requestCountProof( + requestMessage, + metadata, + callback, +) { if (arguments.length === 2) { - callback = arguments[1]; + callback = arguments[1] } var client = grpc.unary(Service.RequestCountProof, { request: requestMessage, @@ -119,23 +131,22 @@ ServiceClient.prototype.requestCountProof = function requestCountProof(requestMe onEnd: function (response) { if (callback) { if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); + var err = new Error(response.statusMessage) + err.code = response.status + err.metadata = response.trailers + callback(err, null) } else { - callback(null, response.message); + callback(null, response.message) } } - } - }); + }, + }) return { cancel: function () { - callback = null; - client.close(); - } - }; -}; - -exports.ServiceClient = ServiceClient; + callback = null + client.close() + }, + } +} +exports.ServiceClient = ServiceClient diff --git a/proto/globalfee/v1beta1/genesis_pb.d.ts b/proto/globalfee/v1beta1/genesis_pb.d.ts index aaeb1a8..597975d 100644 --- a/proto/globalfee/v1beta1/genesis_pb.d.ts +++ b/proto/globalfee/v1beta1/genesis_pb.d.ts @@ -1,51 +1,74 @@ // package: globalfee.v1beta1 // file: globalfee/v1beta1/genesis.proto -import * as jspb from "google-protobuf"; -import * as gogoproto_gogo_pb from "../../gogoproto/gogo_pb"; -import * as cosmos_base_v1beta1_coin_pb from "../../cosmos/base/v1beta1/coin_pb"; +import * as jspb from 'google-protobuf' +import * as gogoproto_gogo_pb from '../../gogoproto/gogo_pb' +import * as cosmos_base_v1beta1_coin_pb from '../../cosmos/base/v1beta1/coin_pb' export class GenesisState extends jspb.Message { - hasParams(): boolean; - clearParams(): void; - getParams(): Params | undefined; - setParams(value?: Params): void; + hasParams(): boolean + clearParams(): void + getParams(): Params | undefined + setParams(value?: Params): void - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GenesisState.AsObject; - static toObject(includeInstance: boolean, msg: GenesisState): GenesisState.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GenesisState, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GenesisState; - static deserializeBinaryFromReader(message: GenesisState, reader: jspb.BinaryReader): GenesisState; + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): GenesisState.AsObject + static toObject( + includeInstance: boolean, + msg: GenesisState, + ): GenesisState.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: GenesisState, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): GenesisState + static deserializeBinaryFromReader( + message: GenesisState, + reader: jspb.BinaryReader, + ): GenesisState } export namespace GenesisState { export type AsObject = { - params?: Params.AsObject, + params?: Params.AsObject } } export class Params extends jspb.Message { - clearMinimumGasPricesList(): void; - getMinimumGasPricesList(): Array; - setMinimumGasPricesList(value: Array): void; - addMinimumGasPrices(value?: cosmos_base_v1beta1_coin_pb.DecCoin, index?: number): cosmos_base_v1beta1_coin_pb.DecCoin; + clearMinimumGasPricesList(): void + getMinimumGasPricesList(): Array + setMinimumGasPricesList( + value: Array, + ): void + addMinimumGasPrices( + value?: cosmos_base_v1beta1_coin_pb.DecCoin, + index?: number, + ): cosmos_base_v1beta1_coin_pb.DecCoin - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Params.AsObject; - static toObject(includeInstance: boolean, msg: Params): Params.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Params, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Params; - static deserializeBinaryFromReader(message: Params, reader: jspb.BinaryReader): Params; + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): Params.AsObject + static toObject(includeInstance: boolean, msg: Params): Params.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: Params, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): Params + static deserializeBinaryFromReader( + message: Params, + reader: jspb.BinaryReader, + ): Params } export namespace Params { export type AsObject = { - minimumGasPricesList: Array, + minimumGasPricesList: Array } } - diff --git a/proto/globalfee/v1beta1/genesis_pb.js b/proto/globalfee/v1beta1/genesis_pb.js index fb1a86f..b9ed755 100644 --- a/proto/globalfee/v1beta1/genesis_pb.js +++ b/proto/globalfee/v1beta1/genesis_pb.js @@ -11,16 +11,24 @@ /* eslint-disable */ // @ts-nocheck -var jspb = require('google-protobuf'); -var goog = jspb; -var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); - -var gogoproto_gogo_pb = require('../../gogoproto/gogo_pb.js'); -goog.object.extend(proto, gogoproto_gogo_pb); -var cosmos_base_v1beta1_coin_pb = require('../../cosmos/base/v1beta1/coin_pb.js'); -goog.object.extend(proto, cosmos_base_v1beta1_coin_pb); -goog.exportSymbol('proto.globalfee.v1beta1.GenesisState', null, global); -goog.exportSymbol('proto.globalfee.v1beta1.Params', null, global); +var jspb = require('google-protobuf') +var goog = jspb +var global = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + function () { + return this + }.call(null) || + Function('return this')() + +var gogoproto_gogo_pb = require('../../gogoproto/gogo_pb.js') +goog.object.extend(proto, gogoproto_gogo_pb) +var cosmos_base_v1beta1_coin_pb = require('../../cosmos/base/v1beta1/coin_pb.js') +goog.object.extend(proto, cosmos_base_v1beta1_coin_pb) +goog.exportSymbol('proto.globalfee.v1beta1.GenesisState', null, global) +goog.exportSymbol('proto.globalfee.v1beta1.Params', null, global) /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -31,16 +39,17 @@ goog.exportSymbol('proto.globalfee.v1beta1.Params', null, global); * @extends {jspb.Message} * @constructor */ -proto.globalfee.v1beta1.GenesisState = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.globalfee.v1beta1.GenesisState, jspb.Message); +proto.globalfee.v1beta1.GenesisState = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null) +} +goog.inherits(proto.globalfee.v1beta1.GenesisState, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.globalfee.v1beta1.GenesisState.displayName = 'proto.globalfee.v1beta1.GenesisState'; + proto.globalfee.v1beta1.GenesisState.displayName = + 'proto.globalfee.v1beta1.GenesisState' } /** * Generated by JsPbCodeGenerator. @@ -52,71 +61,87 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.globalfee.v1beta1.Params = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.globalfee.v1beta1.Params.repeatedFields_, null); -}; -goog.inherits(proto.globalfee.v1beta1.Params, jspb.Message); +proto.globalfee.v1beta1.Params = function (opt_data) { + jspb.Message.initialize( + this, + opt_data, + 0, + -1, + proto.globalfee.v1beta1.Params.repeatedFields_, + null, + ) +} +goog.inherits(proto.globalfee.v1beta1.Params, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.globalfee.v1beta1.Params.displayName = 'proto.globalfee.v1beta1.Params'; + proto.globalfee.v1beta1.Params.displayName = 'proto.globalfee.v1beta1.Params' } - - if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.globalfee.v1beta1.GenesisState.prototype.toObject = function(opt_includeInstance) { - return proto.globalfee.v1beta1.GenesisState.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.globalfee.v1beta1.GenesisState} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.globalfee.v1beta1.GenesisState.toObject = function(includeInstance, msg) { - var f, obj = { - params: (f = msg.getParams()) && proto.globalfee.v1beta1.Params.toObject(includeInstance, f) - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.globalfee.v1beta1.GenesisState.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.globalfee.v1beta1.GenesisState.toObject( + opt_includeInstance, + this, + ) + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.globalfee.v1beta1.GenesisState} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.globalfee.v1beta1.GenesisState.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = { + params: + (f = msg.getParams()) && + proto.globalfee.v1beta1.Params.toObject(includeInstance, f), + } + + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.globalfee.v1beta1.GenesisState} */ -proto.globalfee.v1beta1.GenesisState.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.globalfee.v1beta1.GenesisState; - return proto.globalfee.v1beta1.GenesisState.deserializeBinaryFromReader(msg, reader); -}; - +proto.globalfee.v1beta1.GenesisState.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.globalfee.v1beta1.GenesisState() + return proto.globalfee.v1beta1.GenesisState.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -125,37 +150,41 @@ proto.globalfee.v1beta1.GenesisState.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.globalfee.v1beta1.GenesisState} */ -proto.globalfee.v1beta1.GenesisState.deserializeBinaryFromReader = function(msg, reader) { +proto.globalfee.v1beta1.GenesisState.deserializeBinaryFromReader = function ( + msg, + reader, +) { while (reader.nextField()) { if (reader.isEndGroup()) { - break; + break } - var field = reader.getFieldNumber(); + var field = reader.getFieldNumber() switch (field) { - case 1: - var value = new proto.globalfee.v1beta1.Params; - reader.readMessage(value,proto.globalfee.v1beta1.Params.deserializeBinaryFromReader); - msg.setParams(value); - break; - default: - reader.skipField(); - break; + case 1: + var value = new proto.globalfee.v1beta1.Params() + reader.readMessage( + value, + proto.globalfee.v1beta1.Params.deserializeBinaryFromReader, + ) + msg.setParams(value) + break + default: + reader.skipField() + break } } - return msg; -}; - + return msg +} /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.globalfee.v1beta1.GenesisState.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.globalfee.v1beta1.GenesisState.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.globalfee.v1beta1.GenesisState.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter() + proto.globalfee.v1beta1.GenesisState.serializeBinaryToWriter(this, writer) + return writer.getResultBuffer() +} /** * Serializes the given message to binary data (in protobuf wire @@ -164,118 +193,117 @@ proto.globalfee.v1beta1.GenesisState.prototype.serializeBinary = function() { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.globalfee.v1beta1.GenesisState.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getParams(); +proto.globalfee.v1beta1.GenesisState.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined + f = message.getParams() if (f != null) { writer.writeMessage( 1, f, - proto.globalfee.v1beta1.Params.serializeBinaryToWriter - ); + proto.globalfee.v1beta1.Params.serializeBinaryToWriter, + ) } -}; - +} /** * optional Params params = 1; * @return {?proto.globalfee.v1beta1.Params} */ -proto.globalfee.v1beta1.GenesisState.prototype.getParams = function() { +proto.globalfee.v1beta1.GenesisState.prototype.getParams = function () { return /** @type{?proto.globalfee.v1beta1.Params} */ ( - jspb.Message.getWrapperField(this, proto.globalfee.v1beta1.Params, 1)); -}; - + jspb.Message.getWrapperField(this, proto.globalfee.v1beta1.Params, 1) + ) +} /** * @param {?proto.globalfee.v1beta1.Params|undefined} value * @return {!proto.globalfee.v1beta1.GenesisState} returns this -*/ -proto.globalfee.v1beta1.GenesisState.prototype.setParams = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - + */ +proto.globalfee.v1beta1.GenesisState.prototype.setParams = function (value) { + return jspb.Message.setWrapperField(this, 1, value) +} /** * Clears the message field making it undefined. * @return {!proto.globalfee.v1beta1.GenesisState} returns this */ -proto.globalfee.v1beta1.GenesisState.prototype.clearParams = function() { - return this.setParams(undefined); -}; - +proto.globalfee.v1beta1.GenesisState.prototype.clearParams = function () { + return this.setParams(undefined) +} /** * Returns whether this field is set. * @return {boolean} */ -proto.globalfee.v1beta1.GenesisState.prototype.hasParams = function() { - return jspb.Message.getField(this, 1) != null; -}; - - +proto.globalfee.v1beta1.GenesisState.prototype.hasParams = function () { + return jspb.Message.getField(this, 1) != null +} /** * List of repeated fields within this message type. * @private {!Array} * @const */ -proto.globalfee.v1beta1.Params.repeatedFields_ = [1]; - - +proto.globalfee.v1beta1.Params.repeatedFields_ = [1] if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.globalfee.v1beta1.Params.prototype.toObject = function(opt_includeInstance) { - return proto.globalfee.v1beta1.Params.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.globalfee.v1beta1.Params} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.globalfee.v1beta1.Params.toObject = function(includeInstance, msg) { - var f, obj = { - minimumGasPricesList: jspb.Message.toObjectList(msg.getMinimumGasPricesList(), - cosmos_base_v1beta1_coin_pb.DecCoin.toObject, includeInstance) - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.globalfee.v1beta1.Params.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.globalfee.v1beta1.Params.toObject(opt_includeInstance, this) + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.globalfee.v1beta1.Params} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.globalfee.v1beta1.Params.toObject = function (includeInstance, msg) { + var f, + obj = { + minimumGasPricesList: jspb.Message.toObjectList( + msg.getMinimumGasPricesList(), + cosmos_base_v1beta1_coin_pb.DecCoin.toObject, + includeInstance, + ), + } + + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.globalfee.v1beta1.Params} */ -proto.globalfee.v1beta1.Params.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.globalfee.v1beta1.Params; - return proto.globalfee.v1beta1.Params.deserializeBinaryFromReader(msg, reader); -}; - +proto.globalfee.v1beta1.Params.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.globalfee.v1beta1.Params() + return proto.globalfee.v1beta1.Params.deserializeBinaryFromReader(msg, reader) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -284,37 +312,41 @@ proto.globalfee.v1beta1.Params.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.globalfee.v1beta1.Params} */ -proto.globalfee.v1beta1.Params.deserializeBinaryFromReader = function(msg, reader) { +proto.globalfee.v1beta1.Params.deserializeBinaryFromReader = function ( + msg, + reader, +) { while (reader.nextField()) { if (reader.isEndGroup()) { - break; + break } - var field = reader.getFieldNumber(); + var field = reader.getFieldNumber() switch (field) { - case 1: - var value = new cosmos_base_v1beta1_coin_pb.DecCoin; - reader.readMessage(value,cosmos_base_v1beta1_coin_pb.DecCoin.deserializeBinaryFromReader); - msg.addMinimumGasPrices(value); - break; - default: - reader.skipField(); - break; + case 1: + var value = new cosmos_base_v1beta1_coin_pb.DecCoin() + reader.readMessage( + value, + cosmos_base_v1beta1_coin_pb.DecCoin.deserializeBinaryFromReader, + ) + msg.addMinimumGasPrices(value) + break + default: + reader.skipField() + break } } - return msg; -}; - + return msg +} /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.globalfee.v1beta1.Params.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.globalfee.v1beta1.Params.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.globalfee.v1beta1.Params.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter() + proto.globalfee.v1beta1.Params.serializeBinaryToWriter(this, writer) + return writer.getResultBuffer() +} /** * Serializes the given message to binary data (in protobuf wire @@ -323,55 +355,70 @@ proto.globalfee.v1beta1.Params.prototype.serializeBinary = function() { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.globalfee.v1beta1.Params.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMinimumGasPricesList(); +proto.globalfee.v1beta1.Params.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined + f = message.getMinimumGasPricesList() if (f.length > 0) { writer.writeRepeatedMessage( 1, f, - cosmos_base_v1beta1_coin_pb.DecCoin.serializeBinaryToWriter - ); + cosmos_base_v1beta1_coin_pb.DecCoin.serializeBinaryToWriter, + ) } -}; - +} /** * repeated cosmos.base.v1beta1.DecCoin minimum_gas_prices = 1; * @return {!Array} */ -proto.globalfee.v1beta1.Params.prototype.getMinimumGasPricesList = function() { +proto.globalfee.v1beta1.Params.prototype.getMinimumGasPricesList = function () { return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, cosmos_base_v1beta1_coin_pb.DecCoin, 1)); -}; - + jspb.Message.getRepeatedWrapperField( + this, + cosmos_base_v1beta1_coin_pb.DecCoin, + 1, + ) + ) +} /** * @param {!Array} value * @return {!proto.globalfee.v1beta1.Params} returns this -*/ -proto.globalfee.v1beta1.Params.prototype.setMinimumGasPricesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - + */ +proto.globalfee.v1beta1.Params.prototype.setMinimumGasPricesList = function ( + value, +) { + return jspb.Message.setRepeatedWrapperField(this, 1, value) +} /** * @param {!proto.cosmos.base.v1beta1.DecCoin=} opt_value * @param {number=} opt_index * @return {!proto.cosmos.base.v1beta1.DecCoin} */ -proto.globalfee.v1beta1.Params.prototype.addMinimumGasPrices = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.cosmos.base.v1beta1.DecCoin, opt_index); -}; - +proto.globalfee.v1beta1.Params.prototype.addMinimumGasPrices = function ( + opt_value, + opt_index, +) { + return jspb.Message.addToRepeatedWrapperField( + this, + 1, + opt_value, + proto.cosmos.base.v1beta1.DecCoin, + opt_index, + ) +} /** * Clears the list making it empty but non-null. * @return {!proto.globalfee.v1beta1.Params} returns this */ -proto.globalfee.v1beta1.Params.prototype.clearMinimumGasPricesList = function() { - return this.setMinimumGasPricesList([]); -}; - +proto.globalfee.v1beta1.Params.prototype.clearMinimumGasPricesList = + function () { + return this.setMinimumGasPricesList([]) + } -goog.object.extend(exports, proto.globalfee.v1beta1); +goog.object.extend(exports, proto.globalfee.v1beta1) diff --git a/proto/globalfee/v1beta1/genesis_pb_service.d.ts b/proto/globalfee/v1beta1/genesis_pb_service.d.ts index c6c368e..279dd30 100644 --- a/proto/globalfee/v1beta1/genesis_pb_service.d.ts +++ b/proto/globalfee/v1beta1/genesis_pb_service.d.ts @@ -1,3 +1,2 @@ // package: globalfee.v1beta1 // file: globalfee/v1beta1/genesis.proto - diff --git a/proto/globalfee/v1beta1/genesis_pb_service.js b/proto/globalfee/v1beta1/genesis_pb_service.js index c6c368e..279dd30 100644 --- a/proto/globalfee/v1beta1/genesis_pb_service.js +++ b/proto/globalfee/v1beta1/genesis_pb_service.js @@ -1,3 +1,2 @@ // package: globalfee.v1beta1 // file: globalfee/v1beta1/genesis.proto - diff --git a/proto/globalfee/v1beta1/query_pb.d.ts b/proto/globalfee/v1beta1/query_pb.d.ts index 4201f0d..f28ef31 100644 --- a/proto/globalfee/v1beta1/query_pb.d.ts +++ b/proto/globalfee/v1beta1/query_pb.d.ts @@ -1,46 +1,66 @@ // package: globalfee.v1beta1 // file: globalfee/v1beta1/query.proto -import * as jspb from "google-protobuf"; -import * as gogoproto_gogo_pb from "../../gogoproto/gogo_pb"; -import * as google_api_annotations_pb from "../../google/api/annotations_pb"; -import * as globalfee_v1beta1_genesis_pb from "../../globalfee/v1beta1/genesis_pb"; +import * as jspb from 'google-protobuf' +import * as gogoproto_gogo_pb from '../../gogoproto/gogo_pb' +import * as google_api_annotations_pb from '../../google/api/annotations_pb' +import * as globalfee_v1beta1_genesis_pb from '../../globalfee/v1beta1/genesis_pb' export class QueryParamsRequest extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QueryParamsRequest.AsObject; - static toObject(includeInstance: boolean, msg: QueryParamsRequest): QueryParamsRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QueryParamsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QueryParamsRequest; - static deserializeBinaryFromReader(message: QueryParamsRequest, reader: jspb.BinaryReader): QueryParamsRequest; + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): QueryParamsRequest.AsObject + static toObject( + includeInstance: boolean, + msg: QueryParamsRequest, + ): QueryParamsRequest.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: QueryParamsRequest, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): QueryParamsRequest + static deserializeBinaryFromReader( + message: QueryParamsRequest, + reader: jspb.BinaryReader, + ): QueryParamsRequest } export namespace QueryParamsRequest { - export type AsObject = { - } + export type AsObject = {} } export class QueryParamsResponse extends jspb.Message { - hasParams(): boolean; - clearParams(): void; - getParams(): globalfee_v1beta1_genesis_pb.Params | undefined; - setParams(value?: globalfee_v1beta1_genesis_pb.Params): void; + hasParams(): boolean + clearParams(): void + getParams(): globalfee_v1beta1_genesis_pb.Params | undefined + setParams(value?: globalfee_v1beta1_genesis_pb.Params): void - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QueryParamsResponse.AsObject; - static toObject(includeInstance: boolean, msg: QueryParamsResponse): QueryParamsResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QueryParamsResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QueryParamsResponse; - static deserializeBinaryFromReader(message: QueryParamsResponse, reader: jspb.BinaryReader): QueryParamsResponse; + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): QueryParamsResponse.AsObject + static toObject( + includeInstance: boolean, + msg: QueryParamsResponse, + ): QueryParamsResponse.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: QueryParamsResponse, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): QueryParamsResponse + static deserializeBinaryFromReader( + message: QueryParamsResponse, + reader: jspb.BinaryReader, + ): QueryParamsResponse } export namespace QueryParamsResponse { export type AsObject = { - params?: globalfee_v1beta1_genesis_pb.Params.AsObject, + params?: globalfee_v1beta1_genesis_pb.Params.AsObject } } - diff --git a/proto/globalfee/v1beta1/query_pb.js b/proto/globalfee/v1beta1/query_pb.js index 8804640..bfda50d 100644 --- a/proto/globalfee/v1beta1/query_pb.js +++ b/proto/globalfee/v1beta1/query_pb.js @@ -11,18 +11,26 @@ /* eslint-disable */ // @ts-nocheck -var jspb = require('google-protobuf'); -var goog = jspb; -var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); - -var gogoproto_gogo_pb = require('../../gogoproto/gogo_pb.js'); -goog.object.extend(proto, gogoproto_gogo_pb); -var google_api_annotations_pb = require('../../google/api/annotations_pb.js'); -goog.object.extend(proto, google_api_annotations_pb); -var globalfee_v1beta1_genesis_pb = require('../../globalfee/v1beta1/genesis_pb.js'); -goog.object.extend(proto, globalfee_v1beta1_genesis_pb); -goog.exportSymbol('proto.globalfee.v1beta1.QueryParamsRequest', null, global); -goog.exportSymbol('proto.globalfee.v1beta1.QueryParamsResponse', null, global); +var jspb = require('google-protobuf') +var goog = jspb +var global = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + function () { + return this + }.call(null) || + Function('return this')() + +var gogoproto_gogo_pb = require('../../gogoproto/gogo_pb.js') +goog.object.extend(proto, gogoproto_gogo_pb) +var google_api_annotations_pb = require('../../google/api/annotations_pb.js') +goog.object.extend(proto, google_api_annotations_pb) +var globalfee_v1beta1_genesis_pb = require('../../globalfee/v1beta1/genesis_pb.js') +goog.object.extend(proto, globalfee_v1beta1_genesis_pb) +goog.exportSymbol('proto.globalfee.v1beta1.QueryParamsRequest', null, global) +goog.exportSymbol('proto.globalfee.v1beta1.QueryParamsResponse', null, global) /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -33,16 +41,17 @@ goog.exportSymbol('proto.globalfee.v1beta1.QueryParamsResponse', null, global); * @extends {jspb.Message} * @constructor */ -proto.globalfee.v1beta1.QueryParamsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.globalfee.v1beta1.QueryParamsRequest, jspb.Message); +proto.globalfee.v1beta1.QueryParamsRequest = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null) +} +goog.inherits(proto.globalfee.v1beta1.QueryParamsRequest, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.globalfee.v1beta1.QueryParamsRequest.displayName = 'proto.globalfee.v1beta1.QueryParamsRequest'; + proto.globalfee.v1beta1.QueryParamsRequest.displayName = + 'proto.globalfee.v1beta1.QueryParamsRequest' } /** * Generated by JsPbCodeGenerator. @@ -54,71 +63,79 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.globalfee.v1beta1.QueryParamsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.globalfee.v1beta1.QueryParamsResponse, jspb.Message); +proto.globalfee.v1beta1.QueryParamsResponse = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null) +} +goog.inherits(proto.globalfee.v1beta1.QueryParamsResponse, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.globalfee.v1beta1.QueryParamsResponse.displayName = 'proto.globalfee.v1beta1.QueryParamsResponse'; + proto.globalfee.v1beta1.QueryParamsResponse.displayName = + 'proto.globalfee.v1beta1.QueryParamsResponse' } - - if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.globalfee.v1beta1.QueryParamsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.globalfee.v1beta1.QueryParamsRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.globalfee.v1beta1.QueryParamsRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.globalfee.v1beta1.QueryParamsRequest.toObject = function(includeInstance, msg) { - var f, obj = { - - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.globalfee.v1beta1.QueryParamsRequest.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.globalfee.v1beta1.QueryParamsRequest.toObject( + opt_includeInstance, + this, + ) + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.globalfee.v1beta1.QueryParamsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.globalfee.v1beta1.QueryParamsRequest.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = {} + + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.globalfee.v1beta1.QueryParamsRequest} */ -proto.globalfee.v1beta1.QueryParamsRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.globalfee.v1beta1.QueryParamsRequest; - return proto.globalfee.v1beta1.QueryParamsRequest.deserializeBinaryFromReader(msg, reader); -}; - +proto.globalfee.v1beta1.QueryParamsRequest.deserializeBinary = function ( + bytes, +) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.globalfee.v1beta1.QueryParamsRequest() + return proto.globalfee.v1beta1.QueryParamsRequest.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -127,32 +144,35 @@ proto.globalfee.v1beta1.QueryParamsRequest.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.globalfee.v1beta1.QueryParamsRequest} */ -proto.globalfee.v1beta1.QueryParamsRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - default: - reader.skipField(); - break; +proto.globalfee.v1beta1.QueryParamsRequest.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break + } + var field = reader.getFieldNumber() + switch (field) { + default: + reader.skipField() + break + } } + return msg } - return msg; -}; - /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.globalfee.v1beta1.QueryParamsRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.globalfee.v1beta1.QueryParamsRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.globalfee.v1beta1.QueryParamsRequest.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter() + proto.globalfee.v1beta1.QueryParamsRequest.serializeBinaryToWriter( + this, + writer, + ) + return writer.getResultBuffer() + } /** * Serializes the given message to binary data (in protobuf wire @@ -161,65 +181,77 @@ proto.globalfee.v1beta1.QueryParamsRequest.prototype.serializeBinary = function( * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.globalfee.v1beta1.QueryParamsRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - - - +proto.globalfee.v1beta1.QueryParamsRequest.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined +} if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.globalfee.v1beta1.QueryParamsResponse.prototype.toObject = function(opt_includeInstance) { - return proto.globalfee.v1beta1.QueryParamsResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.globalfee.v1beta1.QueryParamsResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.globalfee.v1beta1.QueryParamsResponse.toObject = function(includeInstance, msg) { - var f, obj = { - params: (f = msg.getParams()) && globalfee_v1beta1_genesis_pb.Params.toObject(includeInstance, f) - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.globalfee.v1beta1.QueryParamsResponse.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.globalfee.v1beta1.QueryParamsResponse.toObject( + opt_includeInstance, + this, + ) + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.globalfee.v1beta1.QueryParamsResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.globalfee.v1beta1.QueryParamsResponse.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = { + params: + (f = msg.getParams()) && + globalfee_v1beta1_genesis_pb.Params.toObject(includeInstance, f), + } + + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.globalfee.v1beta1.QueryParamsResponse} */ -proto.globalfee.v1beta1.QueryParamsResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.globalfee.v1beta1.QueryParamsResponse; - return proto.globalfee.v1beta1.QueryParamsResponse.deserializeBinaryFromReader(msg, reader); -}; - +proto.globalfee.v1beta1.QueryParamsResponse.deserializeBinary = function ( + bytes, +) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.globalfee.v1beta1.QueryParamsResponse() + return proto.globalfee.v1beta1.QueryParamsResponse.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -228,37 +260,43 @@ proto.globalfee.v1beta1.QueryParamsResponse.deserializeBinary = function(bytes) * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.globalfee.v1beta1.QueryParamsResponse} */ -proto.globalfee.v1beta1.QueryParamsResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new globalfee_v1beta1_genesis_pb.Params; - reader.readMessage(value,globalfee_v1beta1_genesis_pb.Params.deserializeBinaryFromReader); - msg.setParams(value); - break; - default: - reader.skipField(); - break; +proto.globalfee.v1beta1.QueryParamsResponse.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break + } + var field = reader.getFieldNumber() + switch (field) { + case 1: + var value = new globalfee_v1beta1_genesis_pb.Params() + reader.readMessage( + value, + globalfee_v1beta1_genesis_pb.Params.deserializeBinaryFromReader, + ) + msg.setParams(value) + break + default: + reader.skipField() + break + } } + return msg } - return msg; -}; - /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.globalfee.v1beta1.QueryParamsResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.globalfee.v1beta1.QueryParamsResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.globalfee.v1beta1.QueryParamsResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter() + proto.globalfee.v1beta1.QueryParamsResponse.serializeBinaryToWriter( + this, + writer, + ) + return writer.getResultBuffer() + } /** * Serializes the given message to binary data (in protobuf wire @@ -267,54 +305,56 @@ proto.globalfee.v1beta1.QueryParamsResponse.prototype.serializeBinary = function * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.globalfee.v1beta1.QueryParamsResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getParams(); +proto.globalfee.v1beta1.QueryParamsResponse.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined + f = message.getParams() if (f != null) { writer.writeMessage( 1, f, - globalfee_v1beta1_genesis_pb.Params.serializeBinaryToWriter - ); + globalfee_v1beta1_genesis_pb.Params.serializeBinaryToWriter, + ) } -}; - +} /** * optional Params params = 1; * @return {?proto.globalfee.v1beta1.Params} */ -proto.globalfee.v1beta1.QueryParamsResponse.prototype.getParams = function() { +proto.globalfee.v1beta1.QueryParamsResponse.prototype.getParams = function () { return /** @type{?proto.globalfee.v1beta1.Params} */ ( - jspb.Message.getWrapperField(this, globalfee_v1beta1_genesis_pb.Params, 1)); -}; - + jspb.Message.getWrapperField(this, globalfee_v1beta1_genesis_pb.Params, 1) + ) +} /** * @param {?proto.globalfee.v1beta1.Params|undefined} value * @return {!proto.globalfee.v1beta1.QueryParamsResponse} returns this -*/ -proto.globalfee.v1beta1.QueryParamsResponse.prototype.setParams = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - + */ +proto.globalfee.v1beta1.QueryParamsResponse.prototype.setParams = function ( + value, +) { + return jspb.Message.setWrapperField(this, 1, value) +} /** * Clears the message field making it undefined. * @return {!proto.globalfee.v1beta1.QueryParamsResponse} returns this */ -proto.globalfee.v1beta1.QueryParamsResponse.prototype.clearParams = function() { - return this.setParams(undefined); -}; - +proto.globalfee.v1beta1.QueryParamsResponse.prototype.clearParams = + function () { + return this.setParams(undefined) + } /** * Returns whether this field is set. * @return {boolean} */ -proto.globalfee.v1beta1.QueryParamsResponse.prototype.hasParams = function() { - return jspb.Message.getField(this, 1) != null; -}; - +proto.globalfee.v1beta1.QueryParamsResponse.prototype.hasParams = function () { + return jspb.Message.getField(this, 1) != null +} -goog.object.extend(exports, proto.globalfee.v1beta1); +goog.object.extend(exports, proto.globalfee.v1beta1) diff --git a/proto/globalfee/v1beta1/query_pb_service.d.ts b/proto/globalfee/v1beta1/query_pb_service.d.ts index b3a6811..8967ad0 100644 --- a/proto/globalfee/v1beta1/query_pb_service.d.ts +++ b/proto/globalfee/v1beta1/query_pb_service.d.ts @@ -1,63 +1,81 @@ // package: globalfee.v1beta1 // file: globalfee/v1beta1/query.proto -import * as globalfee_v1beta1_query_pb from "../../globalfee/v1beta1/query_pb"; -import {grpc} from "@improbable-eng/grpc-web"; +import * as globalfee_v1beta1_query_pb from '../../globalfee/v1beta1/query_pb' +import { grpc } from '@improbable-eng/grpc-web' type QueryParams = { - readonly methodName: string; - readonly service: typeof Query; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof globalfee_v1beta1_query_pb.QueryParamsRequest; - readonly responseType: typeof globalfee_v1beta1_query_pb.QueryParamsResponse; -}; + readonly methodName: string + readonly service: typeof Query + readonly requestStream: false + readonly responseStream: false + readonly requestType: typeof globalfee_v1beta1_query_pb.QueryParamsRequest + readonly responseType: typeof globalfee_v1beta1_query_pb.QueryParamsResponse +} export class Query { - static readonly serviceName: string; - static readonly Params: QueryParams; + static readonly serviceName: string + static readonly Params: QueryParams } -export type ServiceError = { message: string, code: number; metadata: grpc.Metadata } -export type Status = { details: string, code: number; metadata: grpc.Metadata } +export type ServiceError = { + message: string + code: number + metadata: grpc.Metadata +} +export type Status = { details: string; code: number; metadata: grpc.Metadata } interface UnaryResponse { - cancel(): void; + cancel(): void } interface ResponseStream { - cancel(): void; - on(type: 'data', handler: (message: T) => void): ResponseStream; - on(type: 'end', handler: (status?: Status) => void): ResponseStream; - on(type: 'status', handler: (status: Status) => void): ResponseStream; + cancel(): void + on(type: 'data', handler: (message: T) => void): ResponseStream + on(type: 'end', handler: (status?: Status) => void): ResponseStream + on(type: 'status', handler: (status: Status) => void): ResponseStream } interface RequestStream { - write(message: T): RequestStream; - end(): void; - cancel(): void; - on(type: 'end', handler: (status?: Status) => void): RequestStream; - on(type: 'status', handler: (status: Status) => void): RequestStream; + write(message: T): RequestStream + end(): void + cancel(): void + on(type: 'end', handler: (status?: Status) => void): RequestStream + on(type: 'status', handler: (status: Status) => void): RequestStream } interface BidirectionalStream { - write(message: ReqT): BidirectionalStream; - end(): void; - cancel(): void; - on(type: 'data', handler: (message: ResT) => void): BidirectionalStream; - on(type: 'end', handler: (status?: Status) => void): BidirectionalStream; - on(type: 'status', handler: (status: Status) => void): BidirectionalStream; + write(message: ReqT): BidirectionalStream + end(): void + cancel(): void + on( + type: 'data', + handler: (message: ResT) => void, + ): BidirectionalStream + on( + type: 'end', + handler: (status?: Status) => void, + ): BidirectionalStream + on( + type: 'status', + handler: (status: Status) => void, + ): BidirectionalStream } export class QueryClient { - readonly serviceHost: string; + readonly serviceHost: string - constructor(serviceHost: string, options?: grpc.RpcOptions); + constructor(serviceHost: string, options?: grpc.RpcOptions) params( requestMessage: globalfee_v1beta1_query_pb.QueryParamsRequest, metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: globalfee_v1beta1_query_pb.QueryParamsResponse|null) => void - ): UnaryResponse; + callback: ( + error: ServiceError | null, + responseMessage: globalfee_v1beta1_query_pb.QueryParamsResponse | null, + ) => void, + ): UnaryResponse params( requestMessage: globalfee_v1beta1_query_pb.QueryParamsRequest, - callback: (error: ServiceError|null, responseMessage: globalfee_v1beta1_query_pb.QueryParamsResponse|null) => void - ): UnaryResponse; + callback: ( + error: ServiceError | null, + responseMessage: globalfee_v1beta1_query_pb.QueryParamsResponse | null, + ) => void, + ): UnaryResponse } - diff --git a/proto/globalfee/v1beta1/query_pb_service.js b/proto/globalfee/v1beta1/query_pb_service.js index 8684a97..2361dec 100644 --- a/proto/globalfee/v1beta1/query_pb_service.js +++ b/proto/globalfee/v1beta1/query_pb_service.js @@ -1,34 +1,38 @@ // package: globalfee.v1beta1 // file: globalfee/v1beta1/query.proto -var globalfee_v1beta1_query_pb = require("../../globalfee/v1beta1/query_pb"); -var grpc = require("@improbable-eng/grpc-web").grpc; +var globalfee_v1beta1_query_pb = require('../../globalfee/v1beta1/query_pb') +var grpc = require('@improbable-eng/grpc-web').grpc var Query = (function () { function Query() {} - Query.serviceName = "globalfee.v1beta1.Query"; - return Query; -}()); + Query.serviceName = 'globalfee.v1beta1.Query' + return Query +})() Query.Params = { - methodName: "Params", + methodName: 'Params', service: Query, requestStream: false, responseStream: false, requestType: globalfee_v1beta1_query_pb.QueryParamsRequest, - responseType: globalfee_v1beta1_query_pb.QueryParamsResponse -}; + responseType: globalfee_v1beta1_query_pb.QueryParamsResponse, +} -exports.Query = Query; +exports.Query = Query function QueryClient(serviceHost, options) { - this.serviceHost = serviceHost; - this.options = options || {}; + this.serviceHost = serviceHost + this.options = options || {} } -QueryClient.prototype.params = function params(requestMessage, metadata, callback) { +QueryClient.prototype.params = function params( + requestMessage, + metadata, + callback, +) { if (arguments.length === 2) { - callback = arguments[1]; + callback = arguments[1] } var client = grpc.unary(Query.Params, { request: requestMessage, @@ -39,23 +43,22 @@ QueryClient.prototype.params = function params(requestMessage, metadata, callbac onEnd: function (response) { if (callback) { if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); + var err = new Error(response.statusMessage) + err.code = response.status + err.metadata = response.trailers + callback(err, null) } else { - callback(null, response.message); + callback(null, response.message) } } - } - }); + }, + }) return { cancel: function () { - callback = null; - client.close(); - } - }; -}; - -exports.QueryClient = QueryClient; + callback = null + client.close() + }, + } +} +exports.QueryClient = QueryClient diff --git a/proto/globalfee/v1beta1/tx_pb.d.ts b/proto/globalfee/v1beta1/tx_pb.d.ts index 97cf26c..71a8019 100644 --- a/proto/globalfee/v1beta1/tx_pb.d.ts +++ b/proto/globalfee/v1beta1/tx_pb.d.ts @@ -1,51 +1,71 @@ // package: globalfee.v1beta1 // file: globalfee/v1beta1/tx.proto -import * as jspb from "google-protobuf"; -import * as cosmos_msg_v1_msg_pb from "../../cosmos/msg/v1/msg_pb"; -import * as globalfee_v1beta1_genesis_pb from "../../globalfee/v1beta1/genesis_pb"; -import * as gogoproto_gogo_pb from "../../gogoproto/gogo_pb"; -import * as cosmos_proto_cosmos_pb from "../../cosmos_proto/cosmos_pb"; +import * as jspb from 'google-protobuf' +import * as gogoproto_gogo_pb from '../../gogoproto/gogo_pb' +import * as cosmos_proto_cosmos_pb from '../../cosmos_proto/cosmos_pb' +import * as cosmos_msg_v1_msg_pb from '../../cosmos/msg/v1/msg_pb' +import * as globalfee_v1beta1_genesis_pb from '../../globalfee/v1beta1/genesis_pb' export class MsgUpdateParams extends jspb.Message { - getAuthority(): string; - setAuthority(value: string): void; + getAuthority(): string + setAuthority(value: string): void - hasParams(): boolean; - clearParams(): void; - getParams(): globalfee_v1beta1_genesis_pb.Params | undefined; - setParams(value?: globalfee_v1beta1_genesis_pb.Params): void; + hasParams(): boolean + clearParams(): void + getParams(): globalfee_v1beta1_genesis_pb.Params | undefined + setParams(value?: globalfee_v1beta1_genesis_pb.Params): void - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MsgUpdateParams.AsObject; - static toObject(includeInstance: boolean, msg: MsgUpdateParams): MsgUpdateParams.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MsgUpdateParams, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MsgUpdateParams; - static deserializeBinaryFromReader(message: MsgUpdateParams, reader: jspb.BinaryReader): MsgUpdateParams; + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): MsgUpdateParams.AsObject + static toObject( + includeInstance: boolean, + msg: MsgUpdateParams, + ): MsgUpdateParams.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: MsgUpdateParams, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): MsgUpdateParams + static deserializeBinaryFromReader( + message: MsgUpdateParams, + reader: jspb.BinaryReader, + ): MsgUpdateParams } export namespace MsgUpdateParams { export type AsObject = { - authority: string, - params?: globalfee_v1beta1_genesis_pb.Params.AsObject, + authority: string + params?: globalfee_v1beta1_genesis_pb.Params.AsObject } } export class MsgUpdateParamsResponse extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MsgUpdateParamsResponse.AsObject; - static toObject(includeInstance: boolean, msg: MsgUpdateParamsResponse): MsgUpdateParamsResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MsgUpdateParamsResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MsgUpdateParamsResponse; - static deserializeBinaryFromReader(message: MsgUpdateParamsResponse, reader: jspb.BinaryReader): MsgUpdateParamsResponse; + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): MsgUpdateParamsResponse.AsObject + static toObject( + includeInstance: boolean, + msg: MsgUpdateParamsResponse, + ): MsgUpdateParamsResponse.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: MsgUpdateParamsResponse, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): MsgUpdateParamsResponse + static deserializeBinaryFromReader( + message: MsgUpdateParamsResponse, + reader: jspb.BinaryReader, + ): MsgUpdateParamsResponse } export namespace MsgUpdateParamsResponse { - export type AsObject = { - } + export type AsObject = {} } - diff --git a/proto/globalfee/v1beta1/tx_pb.js b/proto/globalfee/v1beta1/tx_pb.js index 67e762b..1ecd0cc 100644 --- a/proto/globalfee/v1beta1/tx_pb.js +++ b/proto/globalfee/v1beta1/tx_pb.js @@ -11,20 +11,32 @@ /* eslint-disable */ // @ts-nocheck -var jspb = require('google-protobuf'); -var goog = jspb; -var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); - -var cosmos_msg_v1_msg_pb = require('../../cosmos/msg/v1/msg_pb.js'); -goog.object.extend(proto, cosmos_msg_v1_msg_pb); -var globalfee_v1beta1_genesis_pb = require('../../globalfee/v1beta1/genesis_pb.js'); -goog.object.extend(proto, globalfee_v1beta1_genesis_pb); -var gogoproto_gogo_pb = require('../../gogoproto/gogo_pb.js'); -goog.object.extend(proto, gogoproto_gogo_pb); -var cosmos_proto_cosmos_pb = require('../../cosmos_proto/cosmos_pb.js'); -goog.object.extend(proto, cosmos_proto_cosmos_pb); -goog.exportSymbol('proto.globalfee.v1beta1.MsgUpdateParams', null, global); -goog.exportSymbol('proto.globalfee.v1beta1.MsgUpdateParamsResponse', null, global); +var jspb = require('google-protobuf') +var goog = jspb +var global = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + function () { + return this + }.call(null) || + Function('return this')() + +var gogoproto_gogo_pb = require('../../gogoproto/gogo_pb.js') +goog.object.extend(proto, gogoproto_gogo_pb) +var cosmos_proto_cosmos_pb = require('../../cosmos_proto/cosmos_pb.js') +goog.object.extend(proto, cosmos_proto_cosmos_pb) +var cosmos_msg_v1_msg_pb = require('../../cosmos/msg/v1/msg_pb.js') +goog.object.extend(proto, cosmos_msg_v1_msg_pb) +var globalfee_v1beta1_genesis_pb = require('../../globalfee/v1beta1/genesis_pb.js') +goog.object.extend(proto, globalfee_v1beta1_genesis_pb) +goog.exportSymbol('proto.globalfee.v1beta1.MsgUpdateParams', null, global) +goog.exportSymbol( + 'proto.globalfee.v1beta1.MsgUpdateParamsResponse', + null, + global, +) /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -35,16 +47,17 @@ goog.exportSymbol('proto.globalfee.v1beta1.MsgUpdateParamsResponse', null, globa * @extends {jspb.Message} * @constructor */ -proto.globalfee.v1beta1.MsgUpdateParams = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.globalfee.v1beta1.MsgUpdateParams, jspb.Message); +proto.globalfee.v1beta1.MsgUpdateParams = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null) +} +goog.inherits(proto.globalfee.v1beta1.MsgUpdateParams, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.globalfee.v1beta1.MsgUpdateParams.displayName = 'proto.globalfee.v1beta1.MsgUpdateParams'; + proto.globalfee.v1beta1.MsgUpdateParams.displayName = + 'proto.globalfee.v1beta1.MsgUpdateParams' } /** * Generated by JsPbCodeGenerator. @@ -56,72 +69,82 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.globalfee.v1beta1.MsgUpdateParamsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.globalfee.v1beta1.MsgUpdateParamsResponse, jspb.Message); +proto.globalfee.v1beta1.MsgUpdateParamsResponse = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null) +} +goog.inherits(proto.globalfee.v1beta1.MsgUpdateParamsResponse, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.globalfee.v1beta1.MsgUpdateParamsResponse.displayName = 'proto.globalfee.v1beta1.MsgUpdateParamsResponse'; + proto.globalfee.v1beta1.MsgUpdateParamsResponse.displayName = + 'proto.globalfee.v1beta1.MsgUpdateParamsResponse' } - - if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.globalfee.v1beta1.MsgUpdateParams.prototype.toObject = function(opt_includeInstance) { - return proto.globalfee.v1beta1.MsgUpdateParams.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.globalfee.v1beta1.MsgUpdateParams} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.globalfee.v1beta1.MsgUpdateParams.toObject = function(includeInstance, msg) { - var f, obj = { - authority: jspb.Message.getFieldWithDefault(msg, 1, ""), - params: (f = msg.getParams()) && globalfee_v1beta1_genesis_pb.Params.toObject(includeInstance, f) - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.globalfee.v1beta1.MsgUpdateParams.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.globalfee.v1beta1.MsgUpdateParams.toObject( + opt_includeInstance, + this, + ) + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.globalfee.v1beta1.MsgUpdateParams} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.globalfee.v1beta1.MsgUpdateParams.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = { + authority: jspb.Message.getFieldWithDefault(msg, 1, ''), + params: + (f = msg.getParams()) && + globalfee_v1beta1_genesis_pb.Params.toObject(includeInstance, f), + } + + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.globalfee.v1beta1.MsgUpdateParams} */ -proto.globalfee.v1beta1.MsgUpdateParams.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.globalfee.v1beta1.MsgUpdateParams; - return proto.globalfee.v1beta1.MsgUpdateParams.deserializeBinaryFromReader(msg, reader); -}; - +proto.globalfee.v1beta1.MsgUpdateParams.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.globalfee.v1beta1.MsgUpdateParams() + return proto.globalfee.v1beta1.MsgUpdateParams.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -130,41 +153,49 @@ proto.globalfee.v1beta1.MsgUpdateParams.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.globalfee.v1beta1.MsgUpdateParams} */ -proto.globalfee.v1beta1.MsgUpdateParams.deserializeBinaryFromReader = function(msg, reader) { +proto.globalfee.v1beta1.MsgUpdateParams.deserializeBinaryFromReader = function ( + msg, + reader, +) { while (reader.nextField()) { if (reader.isEndGroup()) { - break; + break } - var field = reader.getFieldNumber(); + var field = reader.getFieldNumber() switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setAuthority(value); - break; - case 2: - var value = new globalfee_v1beta1_genesis_pb.Params; - reader.readMessage(value,globalfee_v1beta1_genesis_pb.Params.deserializeBinaryFromReader); - msg.setParams(value); - break; - default: - reader.skipField(); - break; + case 1: + var value = /** @type {string} */ (reader.readString()) + msg.setAuthority(value) + break + case 2: + var value = new globalfee_v1beta1_genesis_pb.Params() + reader.readMessage( + value, + globalfee_v1beta1_genesis_pb.Params.deserializeBinaryFromReader, + ) + msg.setParams(value) + break + default: + reader.skipField() + break } } - return msg; -}; - + return msg +} /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.globalfee.v1beta1.MsgUpdateParams.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.globalfee.v1beta1.MsgUpdateParams.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.globalfee.v1beta1.MsgUpdateParams.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter() + proto.globalfee.v1beta1.MsgUpdateParams.serializeBinaryToWriter( + this, + writer, + ) + return writer.getResultBuffer() + } /** * Serializes the given message to binary data (in protobuf wire @@ -173,135 +204,136 @@ proto.globalfee.v1beta1.MsgUpdateParams.prototype.serializeBinary = function() { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.globalfee.v1beta1.MsgUpdateParams.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getAuthority(); +proto.globalfee.v1beta1.MsgUpdateParams.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined + f = message.getAuthority() if (f.length > 0) { - writer.writeString( - 1, - f - ); + writer.writeString(1, f) } - f = message.getParams(); + f = message.getParams() if (f != null) { writer.writeMessage( 2, f, - globalfee_v1beta1_genesis_pb.Params.serializeBinaryToWriter - ); + globalfee_v1beta1_genesis_pb.Params.serializeBinaryToWriter, + ) } -}; - +} /** * optional string authority = 1; * @return {string} */ -proto.globalfee.v1beta1.MsgUpdateParams.prototype.getAuthority = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - +proto.globalfee.v1beta1.MsgUpdateParams.prototype.getAuthority = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, '')) +} /** * @param {string} value * @return {!proto.globalfee.v1beta1.MsgUpdateParams} returns this */ -proto.globalfee.v1beta1.MsgUpdateParams.prototype.setAuthority = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - +proto.globalfee.v1beta1.MsgUpdateParams.prototype.setAuthority = function ( + value, +) { + return jspb.Message.setProto3StringField(this, 1, value) +} /** * optional Params params = 2; * @return {?proto.globalfee.v1beta1.Params} */ -proto.globalfee.v1beta1.MsgUpdateParams.prototype.getParams = function() { +proto.globalfee.v1beta1.MsgUpdateParams.prototype.getParams = function () { return /** @type{?proto.globalfee.v1beta1.Params} */ ( - jspb.Message.getWrapperField(this, globalfee_v1beta1_genesis_pb.Params, 2)); -}; - + jspb.Message.getWrapperField(this, globalfee_v1beta1_genesis_pb.Params, 2) + ) +} /** * @param {?proto.globalfee.v1beta1.Params|undefined} value * @return {!proto.globalfee.v1beta1.MsgUpdateParams} returns this -*/ -proto.globalfee.v1beta1.MsgUpdateParams.prototype.setParams = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - + */ +proto.globalfee.v1beta1.MsgUpdateParams.prototype.setParams = function (value) { + return jspb.Message.setWrapperField(this, 2, value) +} /** * Clears the message field making it undefined. * @return {!proto.globalfee.v1beta1.MsgUpdateParams} returns this */ -proto.globalfee.v1beta1.MsgUpdateParams.prototype.clearParams = function() { - return this.setParams(undefined); -}; - +proto.globalfee.v1beta1.MsgUpdateParams.prototype.clearParams = function () { + return this.setParams(undefined) +} /** * Returns whether this field is set. * @return {boolean} */ -proto.globalfee.v1beta1.MsgUpdateParams.prototype.hasParams = function() { - return jspb.Message.getField(this, 2) != null; -}; - - - - +proto.globalfee.v1beta1.MsgUpdateParams.prototype.hasParams = function () { + return jspb.Message.getField(this, 2) != null +} if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.globalfee.v1beta1.MsgUpdateParamsResponse.prototype.toObject = function(opt_includeInstance) { - return proto.globalfee.v1beta1.MsgUpdateParamsResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.globalfee.v1beta1.MsgUpdateParamsResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.globalfee.v1beta1.MsgUpdateParamsResponse.toObject = function(includeInstance, msg) { - var f, obj = { - - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.globalfee.v1beta1.MsgUpdateParamsResponse.prototype.toObject = + function (opt_includeInstance) { + return proto.globalfee.v1beta1.MsgUpdateParamsResponse.toObject( + opt_includeInstance, + this, + ) + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.globalfee.v1beta1.MsgUpdateParamsResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.globalfee.v1beta1.MsgUpdateParamsResponse.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = {} + + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.globalfee.v1beta1.MsgUpdateParamsResponse} */ -proto.globalfee.v1beta1.MsgUpdateParamsResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.globalfee.v1beta1.MsgUpdateParamsResponse; - return proto.globalfee.v1beta1.MsgUpdateParamsResponse.deserializeBinaryFromReader(msg, reader); -}; - +proto.globalfee.v1beta1.MsgUpdateParamsResponse.deserializeBinary = function ( + bytes, +) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.globalfee.v1beta1.MsgUpdateParamsResponse() + return proto.globalfee.v1beta1.MsgUpdateParamsResponse.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -310,32 +342,35 @@ proto.globalfee.v1beta1.MsgUpdateParamsResponse.deserializeBinary = function(byt * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.globalfee.v1beta1.MsgUpdateParamsResponse} */ -proto.globalfee.v1beta1.MsgUpdateParamsResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - default: - reader.skipField(); - break; +proto.globalfee.v1beta1.MsgUpdateParamsResponse.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break + } + var field = reader.getFieldNumber() + switch (field) { + default: + reader.skipField() + break + } } + return msg } - return msg; -}; - /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.globalfee.v1beta1.MsgUpdateParamsResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.globalfee.v1beta1.MsgUpdateParamsResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.globalfee.v1beta1.MsgUpdateParamsResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter() + proto.globalfee.v1beta1.MsgUpdateParamsResponse.serializeBinaryToWriter( + this, + writer, + ) + return writer.getResultBuffer() + } /** * Serializes the given message to binary data (in protobuf wire @@ -344,9 +379,9 @@ proto.globalfee.v1beta1.MsgUpdateParamsResponse.prototype.serializeBinary = func * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.globalfee.v1beta1.MsgUpdateParamsResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - +proto.globalfee.v1beta1.MsgUpdateParamsResponse.serializeBinaryToWriter = + function (message, writer) { + var f = undefined + } -goog.object.extend(exports, proto.globalfee.v1beta1); +goog.object.extend(exports, proto.globalfee.v1beta1) diff --git a/proto/globalfee/v1beta1/tx_pb_service.d.ts b/proto/globalfee/v1beta1/tx_pb_service.d.ts index 6da847d..817fef3 100644 --- a/proto/globalfee/v1beta1/tx_pb_service.d.ts +++ b/proto/globalfee/v1beta1/tx_pb_service.d.ts @@ -1,63 +1,81 @@ // package: globalfee.v1beta1 // file: globalfee/v1beta1/tx.proto -import * as globalfee_v1beta1_tx_pb from "../../globalfee/v1beta1/tx_pb"; -import {grpc} from "@improbable-eng/grpc-web"; +import * as globalfee_v1beta1_tx_pb from '../../globalfee/v1beta1/tx_pb' +import { grpc } from '@improbable-eng/grpc-web' type MsgUpdateParams = { - readonly methodName: string; - readonly service: typeof Msg; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof globalfee_v1beta1_tx_pb.MsgUpdateParams; - readonly responseType: typeof globalfee_v1beta1_tx_pb.MsgUpdateParamsResponse; -}; + readonly methodName: string + readonly service: typeof Msg + readonly requestStream: false + readonly responseStream: false + readonly requestType: typeof globalfee_v1beta1_tx_pb.MsgUpdateParams + readonly responseType: typeof globalfee_v1beta1_tx_pb.MsgUpdateParamsResponse +} export class Msg { - static readonly serviceName: string; - static readonly UpdateParams: MsgUpdateParams; + static readonly serviceName: string + static readonly UpdateParams: MsgUpdateParams } -export type ServiceError = { message: string, code: number; metadata: grpc.Metadata } -export type Status = { details: string, code: number; metadata: grpc.Metadata } +export type ServiceError = { + message: string + code: number + metadata: grpc.Metadata +} +export type Status = { details: string; code: number; metadata: grpc.Metadata } interface UnaryResponse { - cancel(): void; + cancel(): void } interface ResponseStream { - cancel(): void; - on(type: 'data', handler: (message: T) => void): ResponseStream; - on(type: 'end', handler: (status?: Status) => void): ResponseStream; - on(type: 'status', handler: (status: Status) => void): ResponseStream; + cancel(): void + on(type: 'data', handler: (message: T) => void): ResponseStream + on(type: 'end', handler: (status?: Status) => void): ResponseStream + on(type: 'status', handler: (status: Status) => void): ResponseStream } interface RequestStream { - write(message: T): RequestStream; - end(): void; - cancel(): void; - on(type: 'end', handler: (status?: Status) => void): RequestStream; - on(type: 'status', handler: (status: Status) => void): RequestStream; + write(message: T): RequestStream + end(): void + cancel(): void + on(type: 'end', handler: (status?: Status) => void): RequestStream + on(type: 'status', handler: (status: Status) => void): RequestStream } interface BidirectionalStream { - write(message: ReqT): BidirectionalStream; - end(): void; - cancel(): void; - on(type: 'data', handler: (message: ResT) => void): BidirectionalStream; - on(type: 'end', handler: (status?: Status) => void): BidirectionalStream; - on(type: 'status', handler: (status: Status) => void): BidirectionalStream; + write(message: ReqT): BidirectionalStream + end(): void + cancel(): void + on( + type: 'data', + handler: (message: ResT) => void, + ): BidirectionalStream + on( + type: 'end', + handler: (status?: Status) => void, + ): BidirectionalStream + on( + type: 'status', + handler: (status: Status) => void, + ): BidirectionalStream } export class MsgClient { - readonly serviceHost: string; + readonly serviceHost: string - constructor(serviceHost: string, options?: grpc.RpcOptions); + constructor(serviceHost: string, options?: grpc.RpcOptions) updateParams( requestMessage: globalfee_v1beta1_tx_pb.MsgUpdateParams, metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: globalfee_v1beta1_tx_pb.MsgUpdateParamsResponse|null) => void - ): UnaryResponse; + callback: ( + error: ServiceError | null, + responseMessage: globalfee_v1beta1_tx_pb.MsgUpdateParamsResponse | null, + ) => void, + ): UnaryResponse updateParams( requestMessage: globalfee_v1beta1_tx_pb.MsgUpdateParams, - callback: (error: ServiceError|null, responseMessage: globalfee_v1beta1_tx_pb.MsgUpdateParamsResponse|null) => void - ): UnaryResponse; + callback: ( + error: ServiceError | null, + responseMessage: globalfee_v1beta1_tx_pb.MsgUpdateParamsResponse | null, + ) => void, + ): UnaryResponse } - diff --git a/proto/oracle/v1/genesis_pb.d.ts b/proto/oracle/v1/genesis_pb.d.ts index 8e1ddf9..f24a9b7 100644 --- a/proto/oracle/v1/genesis_pb.d.ts +++ b/proto/oracle/v1/genesis_pb.d.ts @@ -1,41 +1,57 @@ // package: oracle.v1 // file: oracle/v1/genesis.proto -import * as jspb from "google-protobuf"; -import * as gogoproto_gogo_pb from "../../gogoproto/gogo_pb"; -import * as oracle_v1_oracle_pb from "../../oracle/v1/oracle_pb"; +import * as jspb from 'google-protobuf' +import * as gogoproto_gogo_pb from '../../gogoproto/gogo_pb' +import * as oracle_v1_oracle_pb from '../../oracle/v1/oracle_pb' export class GenesisState extends jspb.Message { - hasParams(): boolean; - clearParams(): void; - getParams(): oracle_v1_oracle_pb.Params | undefined; - setParams(value?: oracle_v1_oracle_pb.Params): void; + hasParams(): boolean + clearParams(): void + getParams(): oracle_v1_oracle_pb.Params | undefined + setParams(value?: oracle_v1_oracle_pb.Params): void - clearDataSourcesList(): void; - getDataSourcesList(): Array; - setDataSourcesList(value: Array): void; - addDataSources(value?: oracle_v1_oracle_pb.DataSource, index?: number): oracle_v1_oracle_pb.DataSource; + clearDataSourcesList(): void + getDataSourcesList(): Array + setDataSourcesList(value: Array): void + addDataSources( + value?: oracle_v1_oracle_pb.DataSource, + index?: number, + ): oracle_v1_oracle_pb.DataSource - clearOracleScriptsList(): void; - getOracleScriptsList(): Array; - setOracleScriptsList(value: Array): void; - addOracleScripts(value?: oracle_v1_oracle_pb.OracleScript, index?: number): oracle_v1_oracle_pb.OracleScript; + clearOracleScriptsList(): void + getOracleScriptsList(): Array + setOracleScriptsList(value: Array): void + addOracleScripts( + value?: oracle_v1_oracle_pb.OracleScript, + index?: number, + ): oracle_v1_oracle_pb.OracleScript - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GenesisState.AsObject; - static toObject(includeInstance: boolean, msg: GenesisState): GenesisState.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GenesisState, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GenesisState; - static deserializeBinaryFromReader(message: GenesisState, reader: jspb.BinaryReader): GenesisState; + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): GenesisState.AsObject + static toObject( + includeInstance: boolean, + msg: GenesisState, + ): GenesisState.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: GenesisState, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): GenesisState + static deserializeBinaryFromReader( + message: GenesisState, + reader: jspb.BinaryReader, + ): GenesisState } export namespace GenesisState { export type AsObject = { - params?: oracle_v1_oracle_pb.Params.AsObject, - dataSourcesList: Array, - oracleScriptsList: Array, + params?: oracle_v1_oracle_pb.Params.AsObject + dataSourcesList: Array + oracleScriptsList: Array } } - diff --git a/proto/oracle/v1/genesis_pb.js b/proto/oracle/v1/genesis_pb.js index f0b868a..fc636df 100644 --- a/proto/oracle/v1/genesis_pb.js +++ b/proto/oracle/v1/genesis_pb.js @@ -11,15 +11,23 @@ /* eslint-disable */ // @ts-nocheck -var jspb = require('google-protobuf'); -var goog = jspb; -var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); - -var gogoproto_gogo_pb = require('../../gogoproto/gogo_pb.js'); -goog.object.extend(proto, gogoproto_gogo_pb); -var oracle_v1_oracle_pb = require('../../oracle/v1/oracle_pb.js'); -goog.object.extend(proto, oracle_v1_oracle_pb); -goog.exportSymbol('proto.oracle.v1.GenesisState', null, global); +var jspb = require('google-protobuf') +var goog = jspb +var global = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + function () { + return this + }.call(null) || + Function('return this')() + +var gogoproto_gogo_pb = require('../../gogoproto/gogo_pb.js') +goog.object.extend(proto, gogoproto_gogo_pb) +var oracle_v1_oracle_pb = require('../../oracle/v1/oracle_pb.js') +goog.object.extend(proto, oracle_v1_oracle_pb) +goog.exportSymbol('proto.oracle.v1.GenesisState', null, global) /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -30,16 +38,23 @@ goog.exportSymbol('proto.oracle.v1.GenesisState', null, global); * @extends {jspb.Message} * @constructor */ -proto.oracle.v1.GenesisState = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.oracle.v1.GenesisState.repeatedFields_, null); -}; -goog.inherits(proto.oracle.v1.GenesisState, jspb.Message); +proto.oracle.v1.GenesisState = function (opt_data) { + jspb.Message.initialize( + this, + opt_data, + 0, + -1, + proto.oracle.v1.GenesisState.repeatedFields_, + null, + ) +} +goog.inherits(proto.oracle.v1.GenesisState, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.oracle.v1.GenesisState.displayName = 'proto.oracle.v1.GenesisState'; + proto.oracle.v1.GenesisState.displayName = 'proto.oracle.v1.GenesisState' } /** @@ -47,65 +62,71 @@ if (goog.DEBUG && !COMPILED) { * @private {!Array} * @const */ -proto.oracle.v1.GenesisState.repeatedFields_ = [2,3]; - - +proto.oracle.v1.GenesisState.repeatedFields_ = [2, 3] if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.oracle.v1.GenesisState.prototype.toObject = function(opt_includeInstance) { - return proto.oracle.v1.GenesisState.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.oracle.v1.GenesisState} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.oracle.v1.GenesisState.toObject = function(includeInstance, msg) { - var f, obj = { - params: (f = msg.getParams()) && oracle_v1_oracle_pb.Params.toObject(includeInstance, f), - dataSourcesList: jspb.Message.toObjectList(msg.getDataSourcesList(), - oracle_v1_oracle_pb.DataSource.toObject, includeInstance), - oracleScriptsList: jspb.Message.toObjectList(msg.getOracleScriptsList(), - oracle_v1_oracle_pb.OracleScript.toObject, includeInstance) - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.oracle.v1.GenesisState.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.oracle.v1.GenesisState.toObject(opt_includeInstance, this) + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.oracle.v1.GenesisState} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.oracle.v1.GenesisState.toObject = function (includeInstance, msg) { + var f, + obj = { + params: + (f = msg.getParams()) && + oracle_v1_oracle_pb.Params.toObject(includeInstance, f), + dataSourcesList: jspb.Message.toObjectList( + msg.getDataSourcesList(), + oracle_v1_oracle_pb.DataSource.toObject, + includeInstance, + ), + oracleScriptsList: jspb.Message.toObjectList( + msg.getOracleScriptsList(), + oracle_v1_oracle_pb.OracleScript.toObject, + includeInstance, + ), + } + + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.oracle.v1.GenesisState} */ -proto.oracle.v1.GenesisState.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.oracle.v1.GenesisState; - return proto.oracle.v1.GenesisState.deserializeBinaryFromReader(msg, reader); -}; - +proto.oracle.v1.GenesisState.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.oracle.v1.GenesisState() + return proto.oracle.v1.GenesisState.deserializeBinaryFromReader(msg, reader) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -114,47 +135,57 @@ proto.oracle.v1.GenesisState.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.oracle.v1.GenesisState} */ -proto.oracle.v1.GenesisState.deserializeBinaryFromReader = function(msg, reader) { +proto.oracle.v1.GenesisState.deserializeBinaryFromReader = function ( + msg, + reader, +) { while (reader.nextField()) { if (reader.isEndGroup()) { - break; + break } - var field = reader.getFieldNumber(); + var field = reader.getFieldNumber() switch (field) { - case 1: - var value = new oracle_v1_oracle_pb.Params; - reader.readMessage(value,oracle_v1_oracle_pb.Params.deserializeBinaryFromReader); - msg.setParams(value); - break; - case 2: - var value = new oracle_v1_oracle_pb.DataSource; - reader.readMessage(value,oracle_v1_oracle_pb.DataSource.deserializeBinaryFromReader); - msg.addDataSources(value); - break; - case 3: - var value = new oracle_v1_oracle_pb.OracleScript; - reader.readMessage(value,oracle_v1_oracle_pb.OracleScript.deserializeBinaryFromReader); - msg.addOracleScripts(value); - break; - default: - reader.skipField(); - break; + case 1: + var value = new oracle_v1_oracle_pb.Params() + reader.readMessage( + value, + oracle_v1_oracle_pb.Params.deserializeBinaryFromReader, + ) + msg.setParams(value) + break + case 2: + var value = new oracle_v1_oracle_pb.DataSource() + reader.readMessage( + value, + oracle_v1_oracle_pb.DataSource.deserializeBinaryFromReader, + ) + msg.addDataSources(value) + break + case 3: + var value = new oracle_v1_oracle_pb.OracleScript() + reader.readMessage( + value, + oracle_v1_oracle_pb.OracleScript.deserializeBinaryFromReader, + ) + msg.addOracleScripts(value) + break + default: + reader.skipField() + break } } - return msg; -}; - + return msg +} /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.oracle.v1.GenesisState.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.oracle.v1.GenesisState.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.oracle.v1.GenesisState.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter() + proto.oracle.v1.GenesisState.serializeBinaryToWriter(this, writer) + return writer.getResultBuffer() +} /** * Serializes the given message to binary data (in protobuf wire @@ -163,146 +194,165 @@ proto.oracle.v1.GenesisState.prototype.serializeBinary = function() { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.oracle.v1.GenesisState.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getParams(); +proto.oracle.v1.GenesisState.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined + f = message.getParams() if (f != null) { writer.writeMessage( 1, f, - oracle_v1_oracle_pb.Params.serializeBinaryToWriter - ); + oracle_v1_oracle_pb.Params.serializeBinaryToWriter, + ) } - f = message.getDataSourcesList(); + f = message.getDataSourcesList() if (f.length > 0) { writer.writeRepeatedMessage( 2, f, - oracle_v1_oracle_pb.DataSource.serializeBinaryToWriter - ); + oracle_v1_oracle_pb.DataSource.serializeBinaryToWriter, + ) } - f = message.getOracleScriptsList(); + f = message.getOracleScriptsList() if (f.length > 0) { writer.writeRepeatedMessage( 3, f, - oracle_v1_oracle_pb.OracleScript.serializeBinaryToWriter - ); + oracle_v1_oracle_pb.OracleScript.serializeBinaryToWriter, + ) } -}; - +} /** * optional Params params = 1; * @return {?proto.oracle.v1.Params} */ -proto.oracle.v1.GenesisState.prototype.getParams = function() { +proto.oracle.v1.GenesisState.prototype.getParams = function () { return /** @type{?proto.oracle.v1.Params} */ ( - jspb.Message.getWrapperField(this, oracle_v1_oracle_pb.Params, 1)); -}; - + jspb.Message.getWrapperField(this, oracle_v1_oracle_pb.Params, 1) + ) +} /** * @param {?proto.oracle.v1.Params|undefined} value * @return {!proto.oracle.v1.GenesisState} returns this -*/ -proto.oracle.v1.GenesisState.prototype.setParams = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - + */ +proto.oracle.v1.GenesisState.prototype.setParams = function (value) { + return jspb.Message.setWrapperField(this, 1, value) +} /** * Clears the message field making it undefined. * @return {!proto.oracle.v1.GenesisState} returns this */ -proto.oracle.v1.GenesisState.prototype.clearParams = function() { - return this.setParams(undefined); -}; - +proto.oracle.v1.GenesisState.prototype.clearParams = function () { + return this.setParams(undefined) +} /** * Returns whether this field is set. * @return {boolean} */ -proto.oracle.v1.GenesisState.prototype.hasParams = function() { - return jspb.Message.getField(this, 1) != null; -}; - +proto.oracle.v1.GenesisState.prototype.hasParams = function () { + return jspb.Message.getField(this, 1) != null +} /** * repeated DataSource data_sources = 2; * @return {!Array} */ -proto.oracle.v1.GenesisState.prototype.getDataSourcesList = function() { +proto.oracle.v1.GenesisState.prototype.getDataSourcesList = function () { return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, oracle_v1_oracle_pb.DataSource, 2)); -}; - + jspb.Message.getRepeatedWrapperField( + this, + oracle_v1_oracle_pb.DataSource, + 2, + ) + ) +} /** * @param {!Array} value * @return {!proto.oracle.v1.GenesisState} returns this -*/ -proto.oracle.v1.GenesisState.prototype.setDataSourcesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - + */ +proto.oracle.v1.GenesisState.prototype.setDataSourcesList = function (value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value) +} /** * @param {!proto.oracle.v1.DataSource=} opt_value * @param {number=} opt_index * @return {!proto.oracle.v1.DataSource} */ -proto.oracle.v1.GenesisState.prototype.addDataSources = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.oracle.v1.DataSource, opt_index); -}; - +proto.oracle.v1.GenesisState.prototype.addDataSources = function ( + opt_value, + opt_index, +) { + return jspb.Message.addToRepeatedWrapperField( + this, + 2, + opt_value, + proto.oracle.v1.DataSource, + opt_index, + ) +} /** * Clears the list making it empty but non-null. * @return {!proto.oracle.v1.GenesisState} returns this */ -proto.oracle.v1.GenesisState.prototype.clearDataSourcesList = function() { - return this.setDataSourcesList([]); -}; - +proto.oracle.v1.GenesisState.prototype.clearDataSourcesList = function () { + return this.setDataSourcesList([]) +} /** * repeated OracleScript oracle_scripts = 3; * @return {!Array} */ -proto.oracle.v1.GenesisState.prototype.getOracleScriptsList = function() { +proto.oracle.v1.GenesisState.prototype.getOracleScriptsList = function () { return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, oracle_v1_oracle_pb.OracleScript, 3)); -}; - + jspb.Message.getRepeatedWrapperField( + this, + oracle_v1_oracle_pb.OracleScript, + 3, + ) + ) +} /** * @param {!Array} value * @return {!proto.oracle.v1.GenesisState} returns this -*/ -proto.oracle.v1.GenesisState.prototype.setOracleScriptsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - + */ +proto.oracle.v1.GenesisState.prototype.setOracleScriptsList = function (value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value) +} /** * @param {!proto.oracle.v1.OracleScript=} opt_value * @param {number=} opt_index * @return {!proto.oracle.v1.OracleScript} */ -proto.oracle.v1.GenesisState.prototype.addOracleScripts = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.oracle.v1.OracleScript, opt_index); -}; - +proto.oracle.v1.GenesisState.prototype.addOracleScripts = function ( + opt_value, + opt_index, +) { + return jspb.Message.addToRepeatedWrapperField( + this, + 3, + opt_value, + proto.oracle.v1.OracleScript, + opt_index, + ) +} /** * Clears the list making it empty but non-null. * @return {!proto.oracle.v1.GenesisState} returns this */ -proto.oracle.v1.GenesisState.prototype.clearOracleScriptsList = function() { - return this.setOracleScriptsList([]); -}; - +proto.oracle.v1.GenesisState.prototype.clearOracleScriptsList = function () { + return this.setOracleScriptsList([]) +} -goog.object.extend(exports, proto.oracle.v1); +goog.object.extend(exports, proto.oracle.v1) diff --git a/proto/oracle/v1/genesis_pb_service.d.ts b/proto/oracle/v1/genesis_pb_service.d.ts index a79bd18..76a0b35 100644 --- a/proto/oracle/v1/genesis_pb_service.d.ts +++ b/proto/oracle/v1/genesis_pb_service.d.ts @@ -1,3 +1,2 @@ // package: oracle.v1 // file: oracle/v1/genesis.proto - diff --git a/proto/oracle/v1/genesis_pb_service.js b/proto/oracle/v1/genesis_pb_service.js index a79bd18..76a0b35 100644 --- a/proto/oracle/v1/genesis_pb_service.js +++ b/proto/oracle/v1/genesis_pb_service.js @@ -1,3 +1,2 @@ // package: oracle.v1 // file: oracle/v1/genesis.proto - diff --git a/proto/oracle/v1/oracle_pb.d.ts b/proto/oracle/v1/oracle_pb.d.ts index 1133527..40fcce8 100644 --- a/proto/oracle/v1/oracle_pb.d.ts +++ b/proto/oracle/v1/oracle_pb.d.ts @@ -1,729 +1,844 @@ // package: oracle.v1 // file: oracle/v1/oracle.proto -import * as jspb from "google-protobuf"; -import * as gogoproto_gogo_pb from "../../gogoproto/gogo_pb"; -import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb"; -import * as cosmos_base_v1beta1_coin_pb from "../../cosmos/base/v1beta1/coin_pb"; +import * as jspb from 'google-protobuf' +import * as gogoproto_gogo_pb from '../../gogoproto/gogo_pb' +import * as google_protobuf_timestamp_pb from 'google-protobuf/google/protobuf/timestamp_pb' +import * as cosmos_base_v1beta1_coin_pb from '../../cosmos/base/v1beta1/coin_pb' export class DataSource extends jspb.Message { - getOwner(): string; - setOwner(value: string): void; - - getName(): string; - setName(value: string): void; - - getDescription(): string; - setDescription(value: string): void; - - getFilename(): string; - setFilename(value: string): void; - - getTreasury(): string; - setTreasury(value: string): void; - - clearFeeList(): void; - getFeeList(): Array; - setFeeList(value: Array): void; - addFee(value?: cosmos_base_v1beta1_coin_pb.Coin, index?: number): cosmos_base_v1beta1_coin_pb.Coin; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DataSource.AsObject; - static toObject(includeInstance: boolean, msg: DataSource): DataSource.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DataSource, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DataSource; - static deserializeBinaryFromReader(message: DataSource, reader: jspb.BinaryReader): DataSource; + getOwner(): string + setOwner(value: string): void + + getName(): string + setName(value: string): void + + getDescription(): string + setDescription(value: string): void + + getFilename(): string + setFilename(value: string): void + + getTreasury(): string + setTreasury(value: string): void + + clearFeeList(): void + getFeeList(): Array + setFeeList(value: Array): void + addFee( + value?: cosmos_base_v1beta1_coin_pb.Coin, + index?: number, + ): cosmos_base_v1beta1_coin_pb.Coin + + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): DataSource.AsObject + static toObject( + includeInstance: boolean, + msg: DataSource, + ): DataSource.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: DataSource, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): DataSource + static deserializeBinaryFromReader( + message: DataSource, + reader: jspb.BinaryReader, + ): DataSource } export namespace DataSource { export type AsObject = { - owner: string, - name: string, - description: string, - filename: string, - treasury: string, - feeList: Array, + owner: string + name: string + description: string + filename: string + treasury: string + feeList: Array } } export class OracleScript extends jspb.Message { - getOwner(): string; - setOwner(value: string): void; + getOwner(): string + setOwner(value: string): void - getName(): string; - setName(value: string): void; + getName(): string + setName(value: string): void - getDescription(): string; - setDescription(value: string): void; + getDescription(): string + setDescription(value: string): void - getFilename(): string; - setFilename(value: string): void; + getFilename(): string + setFilename(value: string): void - getSchema(): string; - setSchema(value: string): void; + getSchema(): string + setSchema(value: string): void - getSourceCodeUrl(): string; - setSourceCodeUrl(value: string): void; + getSourceCodeUrl(): string + setSourceCodeUrl(value: string): void - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OracleScript.AsObject; - static toObject(includeInstance: boolean, msg: OracleScript): OracleScript.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: OracleScript, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OracleScript; - static deserializeBinaryFromReader(message: OracleScript, reader: jspb.BinaryReader): OracleScript; + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): OracleScript.AsObject + static toObject( + includeInstance: boolean, + msg: OracleScript, + ): OracleScript.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: OracleScript, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): OracleScript + static deserializeBinaryFromReader( + message: OracleScript, + reader: jspb.BinaryReader, + ): OracleScript } export namespace OracleScript { export type AsObject = { - owner: string, - name: string, - description: string, - filename: string, - schema: string, - sourceCodeUrl: string, + owner: string + name: string + description: string + filename: string + schema: string + sourceCodeUrl: string } } export class RawRequest extends jspb.Message { - getExternalId(): number; - setExternalId(value: number): void; - - getDataSourceId(): number; - setDataSourceId(value: number): void; - - getCalldata(): Uint8Array | string; - getCalldata_asU8(): Uint8Array; - getCalldata_asB64(): string; - setCalldata(value: Uint8Array | string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RawRequest.AsObject; - static toObject(includeInstance: boolean, msg: RawRequest): RawRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: RawRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RawRequest; - static deserializeBinaryFromReader(message: RawRequest, reader: jspb.BinaryReader): RawRequest; + getExternalId(): number + setExternalId(value: number): void + + getDataSourceId(): number + setDataSourceId(value: number): void + + getCalldata(): Uint8Array | string + getCalldata_asU8(): Uint8Array + getCalldata_asB64(): string + setCalldata(value: Uint8Array | string): void + + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): RawRequest.AsObject + static toObject( + includeInstance: boolean, + msg: RawRequest, + ): RawRequest.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: RawRequest, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): RawRequest + static deserializeBinaryFromReader( + message: RawRequest, + reader: jspb.BinaryReader, + ): RawRequest } export namespace RawRequest { export type AsObject = { - externalId: number, - dataSourceId: number, - calldata: Uint8Array | string, + externalId: number + dataSourceId: number + calldata: Uint8Array | string } } export class RawReport extends jspb.Message { - getExternalId(): number; - setExternalId(value: number): void; - - getExitCode(): number; - setExitCode(value: number): void; - - getData(): Uint8Array | string; - getData_asU8(): Uint8Array; - getData_asB64(): string; - setData(value: Uint8Array | string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RawReport.AsObject; - static toObject(includeInstance: boolean, msg: RawReport): RawReport.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: RawReport, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RawReport; - static deserializeBinaryFromReader(message: RawReport, reader: jspb.BinaryReader): RawReport; + getExternalId(): number + setExternalId(value: number): void + + getExitCode(): number + setExitCode(value: number): void + + getData(): Uint8Array | string + getData_asU8(): Uint8Array + getData_asB64(): string + setData(value: Uint8Array | string): void + + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): RawReport.AsObject + static toObject(includeInstance: boolean, msg: RawReport): RawReport.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: RawReport, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): RawReport + static deserializeBinaryFromReader( + message: RawReport, + reader: jspb.BinaryReader, + ): RawReport } export namespace RawReport { export type AsObject = { - externalId: number, - exitCode: number, - data: Uint8Array | string, + externalId: number + exitCode: number + data: Uint8Array | string } } export class Request extends jspb.Message { - getOracleScriptId(): number; - setOracleScriptId(value: number): void; - - getCalldata(): Uint8Array | string; - getCalldata_asU8(): Uint8Array; - getCalldata_asB64(): string; - setCalldata(value: Uint8Array | string): void; - - clearRequestedValidatorsList(): void; - getRequestedValidatorsList(): Array; - setRequestedValidatorsList(value: Array): void; - addRequestedValidators(value: string, index?: number): string; - - getMinCount(): number; - setMinCount(value: number): void; - - getRequestHeight(): number; - setRequestHeight(value: number): void; - - getRequestTime(): number; - setRequestTime(value: number): void; - - getClientId(): string; - setClientId(value: string): void; - - clearRawRequestsList(): void; - getRawRequestsList(): Array; - setRawRequestsList(value: Array): void; - addRawRequests(value?: RawRequest, index?: number): RawRequest; - - hasIbcChannel(): boolean; - clearIbcChannel(): void; - getIbcChannel(): IBCChannel | undefined; - setIbcChannel(value?: IBCChannel): void; - - getExecuteGas(): number; - setExecuteGas(value: number): void; - - getTssGroupId(): number; - setTssGroupId(value: number): void; - - getRequester(): string; - setRequester(value: string): void; - - clearFeeLimitList(): void; - getFeeLimitList(): Array; - setFeeLimitList(value: Array): void; - addFeeLimit(value?: cosmos_base_v1beta1_coin_pb.Coin, index?: number): cosmos_base_v1beta1_coin_pb.Coin; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Request.AsObject; - static toObject(includeInstance: boolean, msg: Request): Request.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Request, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Request; - static deserializeBinaryFromReader(message: Request, reader: jspb.BinaryReader): Request; + getOracleScriptId(): number + setOracleScriptId(value: number): void + + getCalldata(): Uint8Array | string + getCalldata_asU8(): Uint8Array + getCalldata_asB64(): string + setCalldata(value: Uint8Array | string): void + + clearRequestedValidatorsList(): void + getRequestedValidatorsList(): Array + setRequestedValidatorsList(value: Array): void + addRequestedValidators(value: string, index?: number): string + + getMinCount(): number + setMinCount(value: number): void + + getRequestHeight(): number + setRequestHeight(value: number): void + + getRequestTime(): number + setRequestTime(value: number): void + + getClientId(): string + setClientId(value: string): void + + clearRawRequestsList(): void + getRawRequestsList(): Array + setRawRequestsList(value: Array): void + addRawRequests(value?: RawRequest, index?: number): RawRequest + + hasIbcChannel(): boolean + clearIbcChannel(): void + getIbcChannel(): IBCChannel | undefined + setIbcChannel(value?: IBCChannel): void + + getExecuteGas(): number + setExecuteGas(value: number): void + + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): Request.AsObject + static toObject(includeInstance: boolean, msg: Request): Request.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: Request, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): Request + static deserializeBinaryFromReader( + message: Request, + reader: jspb.BinaryReader, + ): Request } export namespace Request { export type AsObject = { - oracleScriptId: number, - calldata: Uint8Array | string, - requestedValidatorsList: Array, - minCount: number, - requestHeight: number, - requestTime: number, - clientId: string, - rawRequestsList: Array, - ibcChannel?: IBCChannel.AsObject, - executeGas: number, - tssGroupId: number, - requester: string, - feeLimitList: Array, + oracleScriptId: number + calldata: Uint8Array | string + requestedValidatorsList: Array + minCount: number + requestHeight: number + requestTime: number + clientId: string + rawRequestsList: Array + ibcChannel?: IBCChannel.AsObject + executeGas: number } } export class Report extends jspb.Message { - getValidator(): string; - setValidator(value: string): void; - - getInBeforeResolve(): boolean; - setInBeforeResolve(value: boolean): void; - - clearRawReportsList(): void; - getRawReportsList(): Array; - setRawReportsList(value: Array): void; - addRawReports(value?: RawReport, index?: number): RawReport; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Report.AsObject; - static toObject(includeInstance: boolean, msg: Report): Report.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Report, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Report; - static deserializeBinaryFromReader(message: Report, reader: jspb.BinaryReader): Report; + getValidator(): string + setValidator(value: string): void + + getInBeforeResolve(): boolean + setInBeforeResolve(value: boolean): void + + clearRawReportsList(): void + getRawReportsList(): Array + setRawReportsList(value: Array): void + addRawReports(value?: RawReport, index?: number): RawReport + + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): Report.AsObject + static toObject(includeInstance: boolean, msg: Report): Report.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: Report, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): Report + static deserializeBinaryFromReader( + message: Report, + reader: jspb.BinaryReader, + ): Report } export namespace Report { export type AsObject = { - validator: string, - inBeforeResolve: boolean, - rawReportsList: Array, + validator: string + inBeforeResolve: boolean + rawReportsList: Array } } export class OracleRequestPacketData extends jspb.Message { - getClientId(): string; - setClientId(value: string): void; - - getOracleScriptId(): number; - setOracleScriptId(value: number): void; - - getCalldata(): Uint8Array | string; - getCalldata_asU8(): Uint8Array; - getCalldata_asB64(): string; - setCalldata(value: Uint8Array | string): void; - - getAskCount(): number; - setAskCount(value: number): void; - - getMinCount(): number; - setMinCount(value: number): void; - - clearFeeLimitList(): void; - getFeeLimitList(): Array; - setFeeLimitList(value: Array): void; - addFeeLimit(value?: cosmos_base_v1beta1_coin_pb.Coin, index?: number): cosmos_base_v1beta1_coin_pb.Coin; - - getPrepareGas(): number; - setPrepareGas(value: number): void; - - getExecuteGas(): number; - setExecuteGas(value: number): void; - - getTssGroupId(): number; - setTssGroupId(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OracleRequestPacketData.AsObject; - static toObject(includeInstance: boolean, msg: OracleRequestPacketData): OracleRequestPacketData.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: OracleRequestPacketData, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OracleRequestPacketData; - static deserializeBinaryFromReader(message: OracleRequestPacketData, reader: jspb.BinaryReader): OracleRequestPacketData; + getClientId(): string + setClientId(value: string): void + + getOracleScriptId(): number + setOracleScriptId(value: number): void + + getCalldata(): Uint8Array | string + getCalldata_asU8(): Uint8Array + getCalldata_asB64(): string + setCalldata(value: Uint8Array | string): void + + getAskCount(): number + setAskCount(value: number): void + + getMinCount(): number + setMinCount(value: number): void + + clearFeeLimitList(): void + getFeeLimitList(): Array + setFeeLimitList(value: Array): void + addFeeLimit( + value?: cosmos_base_v1beta1_coin_pb.Coin, + index?: number, + ): cosmos_base_v1beta1_coin_pb.Coin + + getPrepareGas(): number + setPrepareGas(value: number): void + + getExecuteGas(): number + setExecuteGas(value: number): void + + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): OracleRequestPacketData.AsObject + static toObject( + includeInstance: boolean, + msg: OracleRequestPacketData, + ): OracleRequestPacketData.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: OracleRequestPacketData, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): OracleRequestPacketData + static deserializeBinaryFromReader( + message: OracleRequestPacketData, + reader: jspb.BinaryReader, + ): OracleRequestPacketData } export namespace OracleRequestPacketData { export type AsObject = { - clientId: string, - oracleScriptId: number, - calldata: Uint8Array | string, - askCount: number, - minCount: number, - feeLimitList: Array, - prepareGas: number, - executeGas: number, - tssGroupId: number, + clientId: string + oracleScriptId: number + calldata: Uint8Array | string + askCount: number + minCount: number + feeLimitList: Array + prepareGas: number + executeGas: number } } export class OracleRequestPacketAcknowledgement extends jspb.Message { - getRequestId(): number; - setRequestId(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OracleRequestPacketAcknowledgement.AsObject; - static toObject(includeInstance: boolean, msg: OracleRequestPacketAcknowledgement): OracleRequestPacketAcknowledgement.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: OracleRequestPacketAcknowledgement, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OracleRequestPacketAcknowledgement; - static deserializeBinaryFromReader(message: OracleRequestPacketAcknowledgement, reader: jspb.BinaryReader): OracleRequestPacketAcknowledgement; + getRequestId(): number + setRequestId(value: number): void + + serializeBinary(): Uint8Array + toObject( + includeInstance?: boolean, + ): OracleRequestPacketAcknowledgement.AsObject + static toObject( + includeInstance: boolean, + msg: OracleRequestPacketAcknowledgement, + ): OracleRequestPacketAcknowledgement.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: OracleRequestPacketAcknowledgement, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary( + bytes: Uint8Array, + ): OracleRequestPacketAcknowledgement + static deserializeBinaryFromReader( + message: OracleRequestPacketAcknowledgement, + reader: jspb.BinaryReader, + ): OracleRequestPacketAcknowledgement } export namespace OracleRequestPacketAcknowledgement { export type AsObject = { - requestId: number, + requestId: number } } export class OracleResponsePacketData extends jspb.Message { - getClientId(): string; - setClientId(value: string): void; - - getRequestId(): number; - setRequestId(value: number): void; - - getAnsCount(): number; - setAnsCount(value: number): void; - - getRequestTime(): number; - setRequestTime(value: number): void; - - getResolveTime(): number; - setResolveTime(value: number): void; - - getResolveStatus(): ResolveStatusMap[keyof ResolveStatusMap]; - setResolveStatus(value: ResolveStatusMap[keyof ResolveStatusMap]): void; - - getResult(): Uint8Array | string; - getResult_asU8(): Uint8Array; - getResult_asB64(): string; - setResult(value: Uint8Array | string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OracleResponsePacketData.AsObject; - static toObject(includeInstance: boolean, msg: OracleResponsePacketData): OracleResponsePacketData.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: OracleResponsePacketData, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OracleResponsePacketData; - static deserializeBinaryFromReader(message: OracleResponsePacketData, reader: jspb.BinaryReader): OracleResponsePacketData; + getClientId(): string + setClientId(value: string): void + + getRequestId(): number + setRequestId(value: number): void + + getAnsCount(): number + setAnsCount(value: number): void + + getRequestTime(): number + setRequestTime(value: number): void + + getResolveTime(): number + setResolveTime(value: number): void + + getResolveStatus(): ResolveStatusMap[keyof ResolveStatusMap] + setResolveStatus(value: ResolveStatusMap[keyof ResolveStatusMap]): void + + getResult(): Uint8Array | string + getResult_asU8(): Uint8Array + getResult_asB64(): string + setResult(value: Uint8Array | string): void + + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): OracleResponsePacketData.AsObject + static toObject( + includeInstance: boolean, + msg: OracleResponsePacketData, + ): OracleResponsePacketData.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: OracleResponsePacketData, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): OracleResponsePacketData + static deserializeBinaryFromReader( + message: OracleResponsePacketData, + reader: jspb.BinaryReader, + ): OracleResponsePacketData } export namespace OracleResponsePacketData { export type AsObject = { - clientId: string, - requestId: number, - ansCount: number, - requestTime: number, - resolveTime: number, - resolveStatus: ResolveStatusMap[keyof ResolveStatusMap], - result: Uint8Array | string, + clientId: string + requestId: number + ansCount: number + requestTime: number + resolveTime: number + resolveStatus: ResolveStatusMap[keyof ResolveStatusMap] + result: Uint8Array | string } } export class Result extends jspb.Message { - getClientId(): string; - setClientId(value: string): void; + getClientId(): string + setClientId(value: string): void - getOracleScriptId(): number; - setOracleScriptId(value: number): void; + getOracleScriptId(): number + setOracleScriptId(value: number): void - getCalldata(): Uint8Array | string; - getCalldata_asU8(): Uint8Array; - getCalldata_asB64(): string; - setCalldata(value: Uint8Array | string): void; + getCalldata(): Uint8Array | string + getCalldata_asU8(): Uint8Array + getCalldata_asB64(): string + setCalldata(value: Uint8Array | string): void - getAskCount(): number; - setAskCount(value: number): void; + getAskCount(): number + setAskCount(value: number): void - getMinCount(): number; - setMinCount(value: number): void; + getMinCount(): number + setMinCount(value: number): void - getRequestId(): number; - setRequestId(value: number): void; + getRequestId(): number + setRequestId(value: number): void - getAnsCount(): number; - setAnsCount(value: number): void; + getAnsCount(): number + setAnsCount(value: number): void - getRequestTime(): number; - setRequestTime(value: number): void; + getRequestTime(): number + setRequestTime(value: number): void - getResolveTime(): number; - setResolveTime(value: number): void; + getResolveTime(): number + setResolveTime(value: number): void - getResolveStatus(): ResolveStatusMap[keyof ResolveStatusMap]; - setResolveStatus(value: ResolveStatusMap[keyof ResolveStatusMap]): void; + getResolveStatus(): ResolveStatusMap[keyof ResolveStatusMap] + setResolveStatus(value: ResolveStatusMap[keyof ResolveStatusMap]): void - getResult(): Uint8Array | string; - getResult_asU8(): Uint8Array; - getResult_asB64(): string; - setResult(value: Uint8Array | string): void; + getResult(): Uint8Array | string + getResult_asU8(): Uint8Array + getResult_asB64(): string + setResult(value: Uint8Array | string): void - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Result.AsObject; - static toObject(includeInstance: boolean, msg: Result): Result.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Result, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Result; - static deserializeBinaryFromReader(message: Result, reader: jspb.BinaryReader): Result; -} - -export namespace Result { - export type AsObject = { - clientId: string, - oracleScriptId: number, - calldata: Uint8Array | string, - askCount: number, - minCount: number, - requestId: number, - ansCount: number, - requestTime: number, - resolveTime: number, - resolveStatus: ResolveStatusMap[keyof ResolveStatusMap], - result: Uint8Array | string, + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): Result.AsObject + static toObject(includeInstance: boolean, msg: Result): Result.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo } + static serializeBinaryToWriter( + message: Result, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): Result + static deserializeBinaryFromReader( + message: Result, + reader: jspb.BinaryReader, + ): Result } -export class SigningResult extends jspb.Message { - getSigningId(): number; - setSigningId(value: number): void; - - getErrorCodespace(): string; - setErrorCodespace(value: string): void; - - getErrorCode(): number; - setErrorCode(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SigningResult.AsObject; - static toObject(includeInstance: boolean, msg: SigningResult): SigningResult.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SigningResult, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SigningResult; - static deserializeBinaryFromReader(message: SigningResult, reader: jspb.BinaryReader): SigningResult; -} - -export namespace SigningResult { +export namespace Result { export type AsObject = { - signingId: number, - errorCodespace: string, - errorCode: number, + clientId: string + oracleScriptId: number + calldata: Uint8Array | string + askCount: number + minCount: number + requestId: number + ansCount: number + requestTime: number + resolveTime: number + resolveStatus: ResolveStatusMap[keyof ResolveStatusMap] + result: Uint8Array | string } } export class ValidatorStatus extends jspb.Message { - getIsActive(): boolean; - setIsActive(value: boolean): void; - - hasSince(): boolean; - clearSince(): void; - getSince(): google_protobuf_timestamp_pb.Timestamp | undefined; - setSince(value?: google_protobuf_timestamp_pb.Timestamp): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ValidatorStatus.AsObject; - static toObject(includeInstance: boolean, msg: ValidatorStatus): ValidatorStatus.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ValidatorStatus, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ValidatorStatus; - static deserializeBinaryFromReader(message: ValidatorStatus, reader: jspb.BinaryReader): ValidatorStatus; + getIsActive(): boolean + setIsActive(value: boolean): void + + hasSince(): boolean + clearSince(): void + getSince(): google_protobuf_timestamp_pb.Timestamp | undefined + setSince(value?: google_protobuf_timestamp_pb.Timestamp): void + + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): ValidatorStatus.AsObject + static toObject( + includeInstance: boolean, + msg: ValidatorStatus, + ): ValidatorStatus.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: ValidatorStatus, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): ValidatorStatus + static deserializeBinaryFromReader( + message: ValidatorStatus, + reader: jspb.BinaryReader, + ): ValidatorStatus } export namespace ValidatorStatus { export type AsObject = { - isActive: boolean, - since?: google_protobuf_timestamp_pb.Timestamp.AsObject, + isActive: boolean + since?: google_protobuf_timestamp_pb.Timestamp.AsObject } } export class ActiveValidator extends jspb.Message { - getAddress(): string; - setAddress(value: string): void; - - getPower(): number; - setPower(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ActiveValidator.AsObject; - static toObject(includeInstance: boolean, msg: ActiveValidator): ActiveValidator.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ActiveValidator, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ActiveValidator; - static deserializeBinaryFromReader(message: ActiveValidator, reader: jspb.BinaryReader): ActiveValidator; + getAddress(): string + setAddress(value: string): void + + getPower(): number + setPower(value: number): void + + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): ActiveValidator.AsObject + static toObject( + includeInstance: boolean, + msg: ActiveValidator, + ): ActiveValidator.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: ActiveValidator, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): ActiveValidator + static deserializeBinaryFromReader( + message: ActiveValidator, + reader: jspb.BinaryReader, + ): ActiveValidator } export namespace ActiveValidator { export type AsObject = { - address: string, - power: number, + address: string + power: number } } export class Params extends jspb.Message { - getMaxRawRequestCount(): number; - setMaxRawRequestCount(value: number): void; + getMaxRawRequestCount(): number + setMaxRawRequestCount(value: number): void - getMaxAskCount(): number; - setMaxAskCount(value: number): void; + getMaxAskCount(): number + setMaxAskCount(value: number): void - getMaxCalldataSize(): number; - setMaxCalldataSize(value: number): void; + getMaxCalldataSize(): number + setMaxCalldataSize(value: number): void - getMaxReportDataSize(): number; - setMaxReportDataSize(value: number): void; + getMaxReportDataSize(): number + setMaxReportDataSize(value: number): void - getExpirationBlockCount(): number; - setExpirationBlockCount(value: number): void; + getExpirationBlockCount(): number + setExpirationBlockCount(value: number): void - getBaseOwasmGas(): number; - setBaseOwasmGas(value: number): void; + getBaseOwasmGas(): number + setBaseOwasmGas(value: number): void - getPerValidatorRequestGas(): number; - setPerValidatorRequestGas(value: number): void; + getPerValidatorRequestGas(): number + setPerValidatorRequestGas(value: number): void - getSamplingTryCount(): number; - setSamplingTryCount(value: number): void; + getSamplingTryCount(): number + setSamplingTryCount(value: number): void - getOracleRewardPercentage(): number; - setOracleRewardPercentage(value: number): void; + getOracleRewardPercentage(): number + setOracleRewardPercentage(value: number): void - getInactivePenaltyDuration(): number; - setInactivePenaltyDuration(value: number): void; + getInactivePenaltyDuration(): number + setInactivePenaltyDuration(value: number): void - getIbcRequestEnabled(): boolean; - setIbcRequestEnabled(value: boolean): void; + getIbcRequestEnabled(): boolean + setIbcRequestEnabled(value: boolean): void - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Params.AsObject; - static toObject(includeInstance: boolean, msg: Params): Params.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Params, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Params; - static deserializeBinaryFromReader(message: Params, reader: jspb.BinaryReader): Params; + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): Params.AsObject + static toObject(includeInstance: boolean, msg: Params): Params.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: Params, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): Params + static deserializeBinaryFromReader( + message: Params, + reader: jspb.BinaryReader, + ): Params } export namespace Params { export type AsObject = { - maxRawRequestCount: number, - maxAskCount: number, - maxCalldataSize: number, - maxReportDataSize: number, - expirationBlockCount: number, - baseOwasmGas: number, - perValidatorRequestGas: number, - samplingTryCount: number, - oracleRewardPercentage: number, - inactivePenaltyDuration: number, - ibcRequestEnabled: boolean, + maxRawRequestCount: number + maxAskCount: number + maxCalldataSize: number + maxReportDataSize: number + expirationBlockCount: number + baseOwasmGas: number + perValidatorRequestGas: number + samplingTryCount: number + oracleRewardPercentage: number + inactivePenaltyDuration: number + ibcRequestEnabled: boolean } } export class PendingResolveList extends jspb.Message { - clearRequestIdsList(): void; - getRequestIdsList(): Array; - setRequestIdsList(value: Array): void; - addRequestIds(value: number, index?: number): number; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PendingResolveList.AsObject; - static toObject(includeInstance: boolean, msg: PendingResolveList): PendingResolveList.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PendingResolveList, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PendingResolveList; - static deserializeBinaryFromReader(message: PendingResolveList, reader: jspb.BinaryReader): PendingResolveList; + clearRequestIdsList(): void + getRequestIdsList(): Array + setRequestIdsList(value: Array): void + addRequestIds(value: number, index?: number): number + + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): PendingResolveList.AsObject + static toObject( + includeInstance: boolean, + msg: PendingResolveList, + ): PendingResolveList.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: PendingResolveList, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): PendingResolveList + static deserializeBinaryFromReader( + message: PendingResolveList, + reader: jspb.BinaryReader, + ): PendingResolveList } export namespace PendingResolveList { export type AsObject = { - requestIdsList: Array, + requestIdsList: Array } } export class IBCChannel extends jspb.Message { - getPortId(): string; - setPortId(value: string): void; - - getChannelId(): string; - setChannelId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): IBCChannel.AsObject; - static toObject(includeInstance: boolean, msg: IBCChannel): IBCChannel.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: IBCChannel, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): IBCChannel; - static deserializeBinaryFromReader(message: IBCChannel, reader: jspb.BinaryReader): IBCChannel; + getPortId(): string + setPortId(value: string): void + + getChannelId(): string + setChannelId(value: string): void + + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): IBCChannel.AsObject + static toObject( + includeInstance: boolean, + msg: IBCChannel, + ): IBCChannel.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: IBCChannel, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): IBCChannel + static deserializeBinaryFromReader( + message: IBCChannel, + reader: jspb.BinaryReader, + ): IBCChannel } export namespace IBCChannel { export type AsObject = { - portId: string, - channelId: string, + portId: string + channelId: string } } export class RequestVerification extends jspb.Message { - getChainId(): string; - setChainId(value: string): void; - - getValidator(): string; - setValidator(value: string): void; - - getRequestId(): number; - setRequestId(value: number): void; - - getExternalId(): number; - setExternalId(value: number): void; - - getDataSourceId(): number; - setDataSourceId(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RequestVerification.AsObject; - static toObject(includeInstance: boolean, msg: RequestVerification): RequestVerification.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: RequestVerification, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RequestVerification; - static deserializeBinaryFromReader(message: RequestVerification, reader: jspb.BinaryReader): RequestVerification; + getChainId(): string + setChainId(value: string): void + + getValidator(): string + setValidator(value: string): void + + getRequestId(): number + setRequestId(value: number): void + + getExternalId(): number + setExternalId(value: number): void + + getDataSourceId(): number + setDataSourceId(value: number): void + + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): RequestVerification.AsObject + static toObject( + includeInstance: boolean, + msg: RequestVerification, + ): RequestVerification.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: RequestVerification, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): RequestVerification + static deserializeBinaryFromReader( + message: RequestVerification, + reader: jspb.BinaryReader, + ): RequestVerification } export namespace RequestVerification { export type AsObject = { - chainId: string, - validator: string, - requestId: number, - externalId: number, - dataSourceId: number, + chainId: string + validator: string + requestId: number + externalId: number + dataSourceId: number } } export class PriceResult extends jspb.Message { - getSymbol(): string; - setSymbol(value: string): void; - - getMultiplier(): number; - setMultiplier(value: number): void; - - getPx(): number; - setPx(value: number): void; - - getRequestId(): number; - setRequestId(value: number): void; - - getResolveTime(): number; - setResolveTime(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PriceResult.AsObject; - static toObject(includeInstance: boolean, msg: PriceResult): PriceResult.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PriceResult, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PriceResult; - static deserializeBinaryFromReader(message: PriceResult, reader: jspb.BinaryReader): PriceResult; -} - -export namespace PriceResult { - export type AsObject = { - symbol: string, - multiplier: number, - px: number, - requestId: number, - resolveTime: number, + getSymbol(): string + setSymbol(value: string): void + + getMultiplier(): number + setMultiplier(value: number): void + + getPx(): number + setPx(value: number): void + + getRequestId(): number + setRequestId(value: number): void + + getResolveTime(): number + setResolveTime(value: number): void + + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): PriceResult.AsObject + static toObject( + includeInstance: boolean, + msg: PriceResult, + ): PriceResult.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo } + static serializeBinaryToWriter( + message: PriceResult, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): PriceResult + static deserializeBinaryFromReader( + message: PriceResult, + reader: jspb.BinaryReader, + ): PriceResult } -export class OracleResultRequestingSignature extends jspb.Message { - getRequestId(): number; - setRequestId(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OracleResultRequestingSignature.AsObject; - static toObject(includeInstance: boolean, msg: OracleResultRequestingSignature): OracleResultRequestingSignature.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: OracleResultRequestingSignature, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OracleResultRequestingSignature; - static deserializeBinaryFromReader(message: OracleResultRequestingSignature, reader: jspb.BinaryReader): OracleResultRequestingSignature; -} - -export namespace OracleResultRequestingSignature { +export namespace PriceResult { export type AsObject = { - requestId: number, + symbol: string + multiplier: number + px: number + requestId: number + resolveTime: number } } export interface ResolveStatusMap { - RESOLVE_STATUS_OPEN_UNSPECIFIED: 0; - RESOLVE_STATUS_SUCCESS: 1; - RESOLVE_STATUS_FAILURE: 2; - RESOLVE_STATUS_EXPIRED: 3; + RESOLVE_STATUS_OPEN_UNSPECIFIED: 0 + RESOLVE_STATUS_SUCCESS: 1 + RESOLVE_STATUS_FAILURE: 2 + RESOLVE_STATUS_EXPIRED: 3 } -export const ResolveStatus: ResolveStatusMap; - +export const ResolveStatus: ResolveStatusMap diff --git a/proto/oracle/v1/oracle_pb.js b/proto/oracle/v1/oracle_pb.js index 7933a3b..c79d3c6 100644 --- a/proto/oracle/v1/oracle_pb.js +++ b/proto/oracle/v1/oracle_pb.js @@ -11,36 +11,46 @@ /* eslint-disable */ // @ts-nocheck -var jspb = require('google-protobuf'); -var goog = jspb; -var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); - -var gogoproto_gogo_pb = require('../../gogoproto/gogo_pb.js'); -goog.object.extend(proto, gogoproto_gogo_pb); -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); -goog.object.extend(proto, google_protobuf_timestamp_pb); -var cosmos_base_v1beta1_coin_pb = require('../../cosmos/base/v1beta1/coin_pb.js'); -goog.object.extend(proto, cosmos_base_v1beta1_coin_pb); -goog.exportSymbol('proto.oracle.v1.ActiveValidator', null, global); -goog.exportSymbol('proto.oracle.v1.DataSource', null, global); -goog.exportSymbol('proto.oracle.v1.IBCChannel', null, global); -goog.exportSymbol('proto.oracle.v1.OracleRequestPacketAcknowledgement', null, global); -goog.exportSymbol('proto.oracle.v1.OracleRequestPacketData', null, global); -goog.exportSymbol('proto.oracle.v1.OracleResponsePacketData', null, global); -goog.exportSymbol('proto.oracle.v1.OracleResultRequestingSignature', null, global); -goog.exportSymbol('proto.oracle.v1.OracleScript', null, global); -goog.exportSymbol('proto.oracle.v1.Params', null, global); -goog.exportSymbol('proto.oracle.v1.PendingResolveList', null, global); -goog.exportSymbol('proto.oracle.v1.PriceResult', null, global); -goog.exportSymbol('proto.oracle.v1.RawReport', null, global); -goog.exportSymbol('proto.oracle.v1.RawRequest', null, global); -goog.exportSymbol('proto.oracle.v1.Report', null, global); -goog.exportSymbol('proto.oracle.v1.Request', null, global); -goog.exportSymbol('proto.oracle.v1.RequestVerification', null, global); -goog.exportSymbol('proto.oracle.v1.ResolveStatus', null, global); -goog.exportSymbol('proto.oracle.v1.Result', null, global); -goog.exportSymbol('proto.oracle.v1.SigningResult', null, global); -goog.exportSymbol('proto.oracle.v1.ValidatorStatus', null, global); +var jspb = require('google-protobuf') +var goog = jspb +var global = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + function () { + return this + }.call(null) || + Function('return this')() + +var gogoproto_gogo_pb = require('../../gogoproto/gogo_pb.js') +goog.object.extend(proto, gogoproto_gogo_pb) +var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js') +goog.object.extend(proto, google_protobuf_timestamp_pb) +var cosmos_base_v1beta1_coin_pb = require('../../cosmos/base/v1beta1/coin_pb.js') +goog.object.extend(proto, cosmos_base_v1beta1_coin_pb) +goog.exportSymbol('proto.oracle.v1.ActiveValidator', null, global) +goog.exportSymbol('proto.oracle.v1.DataSource', null, global) +goog.exportSymbol('proto.oracle.v1.IBCChannel', null, global) +goog.exportSymbol( + 'proto.oracle.v1.OracleRequestPacketAcknowledgement', + null, + global, +) +goog.exportSymbol('proto.oracle.v1.OracleRequestPacketData', null, global) +goog.exportSymbol('proto.oracle.v1.OracleResponsePacketData', null, global) +goog.exportSymbol('proto.oracle.v1.OracleScript', null, global) +goog.exportSymbol('proto.oracle.v1.Params', null, global) +goog.exportSymbol('proto.oracle.v1.PendingResolveList', null, global) +goog.exportSymbol('proto.oracle.v1.PriceResult', null, global) +goog.exportSymbol('proto.oracle.v1.RawReport', null, global) +goog.exportSymbol('proto.oracle.v1.RawRequest', null, global) +goog.exportSymbol('proto.oracle.v1.Report', null, global) +goog.exportSymbol('proto.oracle.v1.Request', null, global) +goog.exportSymbol('proto.oracle.v1.RequestVerification', null, global) +goog.exportSymbol('proto.oracle.v1.ResolveStatus', null, global) +goog.exportSymbol('proto.oracle.v1.Result', null, global) +goog.exportSymbol('proto.oracle.v1.ValidatorStatus', null, global) /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -51,37 +61,23 @@ goog.exportSymbol('proto.oracle.v1.ValidatorStatus', null, global); * @extends {jspb.Message} * @constructor */ -proto.oracle.v1.DataSource = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.oracle.v1.DataSource.repeatedFields_, null); -}; -goog.inherits(proto.oracle.v1.DataSource, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.oracle.v1.DataSource.displayName = 'proto.oracle.v1.DataSource'; +proto.oracle.v1.DataSource = function (opt_data) { + jspb.Message.initialize( + this, + opt_data, + 0, + -1, + proto.oracle.v1.DataSource.repeatedFields_, + null, + ) } -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.oracle.v1.OracleScript = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.oracle.v1.OracleScript, jspb.Message); +goog.inherits(proto.oracle.v1.DataSource, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.oracle.v1.OracleScript.displayName = 'proto.oracle.v1.OracleScript'; + proto.oracle.v1.DataSource.displayName = 'proto.oracle.v1.DataSource' } /** * Generated by JsPbCodeGenerator. @@ -93,37 +89,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.oracle.v1.RawRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.oracle.v1.RawRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.oracle.v1.RawRequest.displayName = 'proto.oracle.v1.RawRequest'; +proto.oracle.v1.OracleScript = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null) } -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.oracle.v1.RawReport = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.oracle.v1.RawReport, jspb.Message); +goog.inherits(proto.oracle.v1.OracleScript, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.oracle.v1.RawReport.displayName = 'proto.oracle.v1.RawReport'; + proto.oracle.v1.OracleScript.displayName = 'proto.oracle.v1.OracleScript' } /** * Generated by JsPbCodeGenerator. @@ -135,16 +110,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.oracle.v1.Request = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.oracle.v1.Request.repeatedFields_, null); -}; -goog.inherits(proto.oracle.v1.Request, jspb.Message); +proto.oracle.v1.RawRequest = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null) +} +goog.inherits(proto.oracle.v1.RawRequest, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.oracle.v1.Request.displayName = 'proto.oracle.v1.Request'; + proto.oracle.v1.RawRequest.displayName = 'proto.oracle.v1.RawRequest' } /** * Generated by JsPbCodeGenerator. @@ -156,16 +131,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.oracle.v1.Report = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.oracle.v1.Report.repeatedFields_, null); -}; -goog.inherits(proto.oracle.v1.Report, jspb.Message); +proto.oracle.v1.RawReport = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null) +} +goog.inherits(proto.oracle.v1.RawReport, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.oracle.v1.Report.displayName = 'proto.oracle.v1.Report'; + proto.oracle.v1.RawReport.displayName = 'proto.oracle.v1.RawReport' } /** * Generated by JsPbCodeGenerator. @@ -177,16 +152,23 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.oracle.v1.OracleRequestPacketData = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.oracle.v1.OracleRequestPacketData.repeatedFields_, null); -}; -goog.inherits(proto.oracle.v1.OracleRequestPacketData, jspb.Message); +proto.oracle.v1.Request = function (opt_data) { + jspb.Message.initialize( + this, + opt_data, + 0, + -1, + proto.oracle.v1.Request.repeatedFields_, + null, + ) +} +goog.inherits(proto.oracle.v1.Request, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.oracle.v1.OracleRequestPacketData.displayName = 'proto.oracle.v1.OracleRequestPacketData'; + proto.oracle.v1.Request.displayName = 'proto.oracle.v1.Request' } /** * Generated by JsPbCodeGenerator. @@ -198,16 +180,23 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.oracle.v1.OracleRequestPacketAcknowledgement = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.oracle.v1.OracleRequestPacketAcknowledgement, jspb.Message); +proto.oracle.v1.Report = function (opt_data) { + jspb.Message.initialize( + this, + opt_data, + 0, + -1, + proto.oracle.v1.Report.repeatedFields_, + null, + ) +} +goog.inherits(proto.oracle.v1.Report, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.oracle.v1.OracleRequestPacketAcknowledgement.displayName = 'proto.oracle.v1.OracleRequestPacketAcknowledgement'; + proto.oracle.v1.Report.displayName = 'proto.oracle.v1.Report' } /** * Generated by JsPbCodeGenerator. @@ -219,16 +208,24 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.oracle.v1.OracleResponsePacketData = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.oracle.v1.OracleResponsePacketData, jspb.Message); +proto.oracle.v1.OracleRequestPacketData = function (opt_data) { + jspb.Message.initialize( + this, + opt_data, + 0, + -1, + proto.oracle.v1.OracleRequestPacketData.repeatedFields_, + null, + ) +} +goog.inherits(proto.oracle.v1.OracleRequestPacketData, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.oracle.v1.OracleResponsePacketData.displayName = 'proto.oracle.v1.OracleResponsePacketData'; + proto.oracle.v1.OracleRequestPacketData.displayName = + 'proto.oracle.v1.OracleRequestPacketData' } /** * Generated by JsPbCodeGenerator. @@ -240,16 +237,17 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.oracle.v1.Result = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.oracle.v1.Result, jspb.Message); +proto.oracle.v1.OracleRequestPacketAcknowledgement = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null) +} +goog.inherits(proto.oracle.v1.OracleRequestPacketAcknowledgement, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.oracle.v1.Result.displayName = 'proto.oracle.v1.Result'; + proto.oracle.v1.OracleRequestPacketAcknowledgement.displayName = + 'proto.oracle.v1.OracleRequestPacketAcknowledgement' } /** * Generated by JsPbCodeGenerator. @@ -261,16 +259,17 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.oracle.v1.SigningResult = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.oracle.v1.SigningResult, jspb.Message); +proto.oracle.v1.OracleResponsePacketData = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null) +} +goog.inherits(proto.oracle.v1.OracleResponsePacketData, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.oracle.v1.SigningResult.displayName = 'proto.oracle.v1.SigningResult'; + proto.oracle.v1.OracleResponsePacketData.displayName = + 'proto.oracle.v1.OracleResponsePacketData' } /** * Generated by JsPbCodeGenerator. @@ -282,16 +281,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.oracle.v1.ValidatorStatus = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.oracle.v1.ValidatorStatus, jspb.Message); +proto.oracle.v1.Result = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null) +} +goog.inherits(proto.oracle.v1.Result, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.oracle.v1.ValidatorStatus.displayName = 'proto.oracle.v1.ValidatorStatus'; + proto.oracle.v1.Result.displayName = 'proto.oracle.v1.Result' } /** * Generated by JsPbCodeGenerator. @@ -303,16 +302,17 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.oracle.v1.ActiveValidator = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.oracle.v1.ActiveValidator, jspb.Message); +proto.oracle.v1.ValidatorStatus = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null) +} +goog.inherits(proto.oracle.v1.ValidatorStatus, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.oracle.v1.ActiveValidator.displayName = 'proto.oracle.v1.ActiveValidator'; + proto.oracle.v1.ValidatorStatus.displayName = + 'proto.oracle.v1.ValidatorStatus' } /** * Generated by JsPbCodeGenerator. @@ -324,16 +324,17 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.oracle.v1.Params = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.oracle.v1.Params, jspb.Message); +proto.oracle.v1.ActiveValidator = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null) +} +goog.inherits(proto.oracle.v1.ActiveValidator, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.oracle.v1.Params.displayName = 'proto.oracle.v1.Params'; + proto.oracle.v1.ActiveValidator.displayName = + 'proto.oracle.v1.ActiveValidator' } /** * Generated by JsPbCodeGenerator. @@ -345,16 +346,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.oracle.v1.PendingResolveList = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.oracle.v1.PendingResolveList.repeatedFields_, null); -}; -goog.inherits(proto.oracle.v1.PendingResolveList, jspb.Message); +proto.oracle.v1.Params = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null) +} +goog.inherits(proto.oracle.v1.Params, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.oracle.v1.PendingResolveList.displayName = 'proto.oracle.v1.PendingResolveList'; + proto.oracle.v1.Params.displayName = 'proto.oracle.v1.Params' } /** * Generated by JsPbCodeGenerator. @@ -366,16 +367,24 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.oracle.v1.IBCChannel = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.oracle.v1.IBCChannel, jspb.Message); +proto.oracle.v1.PendingResolveList = function (opt_data) { + jspb.Message.initialize( + this, + opt_data, + 0, + -1, + proto.oracle.v1.PendingResolveList.repeatedFields_, + null, + ) +} +goog.inherits(proto.oracle.v1.PendingResolveList, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.oracle.v1.IBCChannel.displayName = 'proto.oracle.v1.IBCChannel'; + proto.oracle.v1.PendingResolveList.displayName = + 'proto.oracle.v1.PendingResolveList' } /** * Generated by JsPbCodeGenerator. @@ -387,16 +396,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.oracle.v1.RequestVerification = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.oracle.v1.RequestVerification, jspb.Message); +proto.oracle.v1.IBCChannel = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null) +} +goog.inherits(proto.oracle.v1.IBCChannel, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.oracle.v1.RequestVerification.displayName = 'proto.oracle.v1.RequestVerification'; + proto.oracle.v1.IBCChannel.displayName = 'proto.oracle.v1.IBCChannel' } /** * Generated by JsPbCodeGenerator. @@ -408,16 +417,17 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.oracle.v1.PriceResult = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.oracle.v1.PriceResult, jspb.Message); +proto.oracle.v1.RequestVerification = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null) +} +goog.inherits(proto.oracle.v1.RequestVerification, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.oracle.v1.PriceResult.displayName = 'proto.oracle.v1.PriceResult'; + proto.oracle.v1.RequestVerification.displayName = + 'proto.oracle.v1.RequestVerification' } /** * Generated by JsPbCodeGenerator. @@ -429,16 +439,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.oracle.v1.OracleResultRequestingSignature = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.oracle.v1.OracleResultRequestingSignature, jspb.Message); +proto.oracle.v1.PriceResult = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null) +} +goog.inherits(proto.oracle.v1.PriceResult, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.oracle.v1.OracleResultRequestingSignature.displayName = 'proto.oracle.v1.OracleResultRequestingSignature'; + proto.oracle.v1.PriceResult.displayName = 'proto.oracle.v1.PriceResult' } /** @@ -446,67 +456,68 @@ if (goog.DEBUG && !COMPILED) { * @private {!Array} * @const */ -proto.oracle.v1.DataSource.repeatedFields_ = [6]; - - +proto.oracle.v1.DataSource.repeatedFields_ = [6] if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.oracle.v1.DataSource.prototype.toObject = function(opt_includeInstance) { - return proto.oracle.v1.DataSource.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.oracle.v1.DataSource} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.oracle.v1.DataSource.toObject = function(includeInstance, msg) { - var f, obj = { - owner: jspb.Message.getFieldWithDefault(msg, 1, ""), - name: jspb.Message.getFieldWithDefault(msg, 2, ""), - description: jspb.Message.getFieldWithDefault(msg, 3, ""), - filename: jspb.Message.getFieldWithDefault(msg, 4, ""), - treasury: jspb.Message.getFieldWithDefault(msg, 5, ""), - feeList: jspb.Message.toObjectList(msg.getFeeList(), - cosmos_base_v1beta1_coin_pb.Coin.toObject, includeInstance) - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.oracle.v1.DataSource.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.oracle.v1.DataSource.toObject(opt_includeInstance, this) + } + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.oracle.v1.DataSource} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.oracle.v1.DataSource.toObject = function (includeInstance, msg) { + var f, + obj = { + owner: jspb.Message.getFieldWithDefault(msg, 1, ''), + name: jspb.Message.getFieldWithDefault(msg, 2, ''), + description: jspb.Message.getFieldWithDefault(msg, 3, ''), + filename: jspb.Message.getFieldWithDefault(msg, 4, ''), + treasury: jspb.Message.getFieldWithDefault(msg, 5, ''), + feeList: jspb.Message.toObjectList( + msg.getFeeList(), + cosmos_base_v1beta1_coin_pb.Coin.toObject, + includeInstance, + ), + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.oracle.v1.DataSource} */ -proto.oracle.v1.DataSource.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.oracle.v1.DataSource; - return proto.oracle.v1.DataSource.deserializeBinaryFromReader(msg, reader); -}; - +proto.oracle.v1.DataSource.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.oracle.v1.DataSource() + return proto.oracle.v1.DataSource.deserializeBinaryFromReader(msg, reader) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -515,57 +526,61 @@ proto.oracle.v1.DataSource.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.oracle.v1.DataSource} */ -proto.oracle.v1.DataSource.deserializeBinaryFromReader = function(msg, reader) { +proto.oracle.v1.DataSource.deserializeBinaryFromReader = function ( + msg, + reader, +) { while (reader.nextField()) { if (reader.isEndGroup()) { - break; + break } - var field = reader.getFieldNumber(); + var field = reader.getFieldNumber() switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setOwner(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setFilename(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setTreasury(value); - break; - case 6: - var value = new cosmos_base_v1beta1_coin_pb.Coin; - reader.readMessage(value,cosmos_base_v1beta1_coin_pb.Coin.deserializeBinaryFromReader); - msg.addFee(value); - break; - default: - reader.skipField(); - break; + case 1: + var value = /** @type {string} */ (reader.readString()) + msg.setOwner(value) + break + case 2: + var value = /** @type {string} */ (reader.readString()) + msg.setName(value) + break + case 3: + var value = /** @type {string} */ (reader.readString()) + msg.setDescription(value) + break + case 4: + var value = /** @type {string} */ (reader.readString()) + msg.setFilename(value) + break + case 5: + var value = /** @type {string} */ (reader.readString()) + msg.setTreasury(value) + break + case 6: + var value = new cosmos_base_v1beta1_coin_pb.Coin() + reader.readMessage( + value, + cosmos_base_v1beta1_coin_pb.Coin.deserializeBinaryFromReader, + ) + msg.addFee(value) + break + default: + reader.skipField() + break } } - return msg; -}; - + return msg +} /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.oracle.v1.DataSource.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.oracle.v1.DataSource.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.oracle.v1.DataSource.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter() + proto.oracle.v1.DataSource.serializeBinaryToWriter(this, writer) + return writer.getResultBuffer() +} /** * Serializes the given message to binary data (in protobuf wire @@ -574,241 +589,222 @@ proto.oracle.v1.DataSource.prototype.serializeBinary = function() { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.oracle.v1.DataSource.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOwner(); +proto.oracle.v1.DataSource.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined + f = message.getOwner() if (f.length > 0) { - writer.writeString( - 1, - f - ); + writer.writeString(1, f) } - f = message.getName(); + f = message.getName() if (f.length > 0) { - writer.writeString( - 2, - f - ); + writer.writeString(2, f) } - f = message.getDescription(); + f = message.getDescription() if (f.length > 0) { - writer.writeString( - 3, - f - ); + writer.writeString(3, f) } - f = message.getFilename(); + f = message.getFilename() if (f.length > 0) { - writer.writeString( - 4, - f - ); + writer.writeString(4, f) } - f = message.getTreasury(); + f = message.getTreasury() if (f.length > 0) { - writer.writeString( - 5, - f - ); + writer.writeString(5, f) } - f = message.getFeeList(); + f = message.getFeeList() if (f.length > 0) { writer.writeRepeatedMessage( 6, f, - cosmos_base_v1beta1_coin_pb.Coin.serializeBinaryToWriter - ); + cosmos_base_v1beta1_coin_pb.Coin.serializeBinaryToWriter, + ) } -}; - +} /** * optional string owner = 1; * @return {string} */ -proto.oracle.v1.DataSource.prototype.getOwner = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - +proto.oracle.v1.DataSource.prototype.getOwner = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, '')) +} /** * @param {string} value * @return {!proto.oracle.v1.DataSource} returns this */ -proto.oracle.v1.DataSource.prototype.setOwner = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - +proto.oracle.v1.DataSource.prototype.setOwner = function (value) { + return jspb.Message.setProto3StringField(this, 1, value) +} /** * optional string name = 2; * @return {string} */ -proto.oracle.v1.DataSource.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - +proto.oracle.v1.DataSource.prototype.getName = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, '')) +} /** * @param {string} value * @return {!proto.oracle.v1.DataSource} returns this */ -proto.oracle.v1.DataSource.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - +proto.oracle.v1.DataSource.prototype.setName = function (value) { + return jspb.Message.setProto3StringField(this, 2, value) +} /** * optional string description = 3; * @return {string} */ -proto.oracle.v1.DataSource.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - +proto.oracle.v1.DataSource.prototype.getDescription = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, '')) +} /** * @param {string} value * @return {!proto.oracle.v1.DataSource} returns this */ -proto.oracle.v1.DataSource.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - +proto.oracle.v1.DataSource.prototype.setDescription = function (value) { + return jspb.Message.setProto3StringField(this, 3, value) +} /** * optional string filename = 4; * @return {string} */ -proto.oracle.v1.DataSource.prototype.getFilename = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - +proto.oracle.v1.DataSource.prototype.getFilename = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, '')) +} /** * @param {string} value * @return {!proto.oracle.v1.DataSource} returns this */ -proto.oracle.v1.DataSource.prototype.setFilename = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - +proto.oracle.v1.DataSource.prototype.setFilename = function (value) { + return jspb.Message.setProto3StringField(this, 4, value) +} /** * optional string treasury = 5; * @return {string} */ -proto.oracle.v1.DataSource.prototype.getTreasury = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - +proto.oracle.v1.DataSource.prototype.getTreasury = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, '')) +} /** * @param {string} value * @return {!proto.oracle.v1.DataSource} returns this */ -proto.oracle.v1.DataSource.prototype.setTreasury = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - +proto.oracle.v1.DataSource.prototype.setTreasury = function (value) { + return jspb.Message.setProto3StringField(this, 5, value) +} /** * repeated cosmos.base.v1beta1.Coin fee = 6; * @return {!Array} */ -proto.oracle.v1.DataSource.prototype.getFeeList = function() { +proto.oracle.v1.DataSource.prototype.getFeeList = function () { return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, cosmos_base_v1beta1_coin_pb.Coin, 6)); -}; - + jspb.Message.getRepeatedWrapperField( + this, + cosmos_base_v1beta1_coin_pb.Coin, + 6, + ) + ) +} /** * @param {!Array} value * @return {!proto.oracle.v1.DataSource} returns this -*/ -proto.oracle.v1.DataSource.prototype.setFeeList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 6, value); -}; - + */ +proto.oracle.v1.DataSource.prototype.setFeeList = function (value) { + return jspb.Message.setRepeatedWrapperField(this, 6, value) +} /** * @param {!proto.cosmos.base.v1beta1.Coin=} opt_value * @param {number=} opt_index * @return {!proto.cosmos.base.v1beta1.Coin} */ -proto.oracle.v1.DataSource.prototype.addFee = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.cosmos.base.v1beta1.Coin, opt_index); -}; - +proto.oracle.v1.DataSource.prototype.addFee = function (opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField( + this, + 6, + opt_value, + proto.cosmos.base.v1beta1.Coin, + opt_index, + ) +} /** * Clears the list making it empty but non-null. * @return {!proto.oracle.v1.DataSource} returns this */ -proto.oracle.v1.DataSource.prototype.clearFeeList = function() { - return this.setFeeList([]); -}; - - - - +proto.oracle.v1.DataSource.prototype.clearFeeList = function () { + return this.setFeeList([]) +} if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.oracle.v1.OracleScript.prototype.toObject = function(opt_includeInstance) { - return proto.oracle.v1.OracleScript.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.oracle.v1.OracleScript} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.oracle.v1.OracleScript.toObject = function(includeInstance, msg) { - var f, obj = { - owner: jspb.Message.getFieldWithDefault(msg, 1, ""), - name: jspb.Message.getFieldWithDefault(msg, 2, ""), - description: jspb.Message.getFieldWithDefault(msg, 3, ""), - filename: jspb.Message.getFieldWithDefault(msg, 4, ""), - schema: jspb.Message.getFieldWithDefault(msg, 5, ""), - sourceCodeUrl: jspb.Message.getFieldWithDefault(msg, 6, "") - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.oracle.v1.OracleScript.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.oracle.v1.OracleScript.toObject(opt_includeInstance, this) + } + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.oracle.v1.OracleScript} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.oracle.v1.OracleScript.toObject = function (includeInstance, msg) { + var f, + obj = { + owner: jspb.Message.getFieldWithDefault(msg, 1, ''), + name: jspb.Message.getFieldWithDefault(msg, 2, ''), + description: jspb.Message.getFieldWithDefault(msg, 3, ''), + filename: jspb.Message.getFieldWithDefault(msg, 4, ''), + schema: jspb.Message.getFieldWithDefault(msg, 5, ''), + sourceCodeUrl: jspb.Message.getFieldWithDefault(msg, 6, ''), + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.oracle.v1.OracleScript} */ -proto.oracle.v1.OracleScript.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.oracle.v1.OracleScript; - return proto.oracle.v1.OracleScript.deserializeBinaryFromReader(msg, reader); -}; - +proto.oracle.v1.OracleScript.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.oracle.v1.OracleScript() + return proto.oracle.v1.OracleScript.deserializeBinaryFromReader(msg, reader) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -817,56 +813,57 @@ proto.oracle.v1.OracleScript.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.oracle.v1.OracleScript} */ -proto.oracle.v1.OracleScript.deserializeBinaryFromReader = function(msg, reader) { +proto.oracle.v1.OracleScript.deserializeBinaryFromReader = function ( + msg, + reader, +) { while (reader.nextField()) { if (reader.isEndGroup()) { - break; + break } - var field = reader.getFieldNumber(); + var field = reader.getFieldNumber() switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setOwner(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setFilename(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setSchema(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setSourceCodeUrl(value); - break; - default: - reader.skipField(); - break; + case 1: + var value = /** @type {string} */ (reader.readString()) + msg.setOwner(value) + break + case 2: + var value = /** @type {string} */ (reader.readString()) + msg.setName(value) + break + case 3: + var value = /** @type {string} */ (reader.readString()) + msg.setDescription(value) + break + case 4: + var value = /** @type {string} */ (reader.readString()) + msg.setFilename(value) + break + case 5: + var value = /** @type {string} */ (reader.readString()) + msg.setSchema(value) + break + case 6: + var value = /** @type {string} */ (reader.readString()) + msg.setSourceCodeUrl(value) + break + default: + reader.skipField() + break } } - return msg; -}; - + return msg +} /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.oracle.v1.OracleScript.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.oracle.v1.OracleScript.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.oracle.v1.OracleScript.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter() + proto.oracle.v1.OracleScript.serializeBinaryToWriter(this, writer) + return writer.getResultBuffer() +} /** * Serializes the given message to binary data (in protobuf wire @@ -875,217 +872,186 @@ proto.oracle.v1.OracleScript.prototype.serializeBinary = function() { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.oracle.v1.OracleScript.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOwner(); +proto.oracle.v1.OracleScript.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined + f = message.getOwner() if (f.length > 0) { - writer.writeString( - 1, - f - ); + writer.writeString(1, f) } - f = message.getName(); + f = message.getName() if (f.length > 0) { - writer.writeString( - 2, - f - ); + writer.writeString(2, f) } - f = message.getDescription(); + f = message.getDescription() if (f.length > 0) { - writer.writeString( - 3, - f - ); + writer.writeString(3, f) } - f = message.getFilename(); + f = message.getFilename() if (f.length > 0) { - writer.writeString( - 4, - f - ); + writer.writeString(4, f) } - f = message.getSchema(); + f = message.getSchema() if (f.length > 0) { - writer.writeString( - 5, - f - ); + writer.writeString(5, f) } - f = message.getSourceCodeUrl(); + f = message.getSourceCodeUrl() if (f.length > 0) { - writer.writeString( - 6, - f - ); + writer.writeString(6, f) } -}; - +} /** * optional string owner = 1; * @return {string} */ -proto.oracle.v1.OracleScript.prototype.getOwner = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - +proto.oracle.v1.OracleScript.prototype.getOwner = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, '')) +} /** * @param {string} value * @return {!proto.oracle.v1.OracleScript} returns this */ -proto.oracle.v1.OracleScript.prototype.setOwner = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - +proto.oracle.v1.OracleScript.prototype.setOwner = function (value) { + return jspb.Message.setProto3StringField(this, 1, value) +} /** * optional string name = 2; * @return {string} */ -proto.oracle.v1.OracleScript.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - +proto.oracle.v1.OracleScript.prototype.getName = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, '')) +} /** * @param {string} value * @return {!proto.oracle.v1.OracleScript} returns this */ -proto.oracle.v1.OracleScript.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - +proto.oracle.v1.OracleScript.prototype.setName = function (value) { + return jspb.Message.setProto3StringField(this, 2, value) +} /** * optional string description = 3; * @return {string} */ -proto.oracle.v1.OracleScript.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - +proto.oracle.v1.OracleScript.prototype.getDescription = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, '')) +} /** * @param {string} value * @return {!proto.oracle.v1.OracleScript} returns this */ -proto.oracle.v1.OracleScript.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - +proto.oracle.v1.OracleScript.prototype.setDescription = function (value) { + return jspb.Message.setProto3StringField(this, 3, value) +} /** * optional string filename = 4; * @return {string} */ -proto.oracle.v1.OracleScript.prototype.getFilename = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - +proto.oracle.v1.OracleScript.prototype.getFilename = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, '')) +} /** * @param {string} value * @return {!proto.oracle.v1.OracleScript} returns this */ -proto.oracle.v1.OracleScript.prototype.setFilename = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - +proto.oracle.v1.OracleScript.prototype.setFilename = function (value) { + return jspb.Message.setProto3StringField(this, 4, value) +} /** * optional string schema = 5; * @return {string} */ -proto.oracle.v1.OracleScript.prototype.getSchema = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - +proto.oracle.v1.OracleScript.prototype.getSchema = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, '')) +} /** * @param {string} value * @return {!proto.oracle.v1.OracleScript} returns this */ -proto.oracle.v1.OracleScript.prototype.setSchema = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - +proto.oracle.v1.OracleScript.prototype.setSchema = function (value) { + return jspb.Message.setProto3StringField(this, 5, value) +} /** * optional string source_code_url = 6; * @return {string} */ -proto.oracle.v1.OracleScript.prototype.getSourceCodeUrl = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - +proto.oracle.v1.OracleScript.prototype.getSourceCodeUrl = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, '')) +} /** * @param {string} value * @return {!proto.oracle.v1.OracleScript} returns this */ -proto.oracle.v1.OracleScript.prototype.setSourceCodeUrl = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - - - +proto.oracle.v1.OracleScript.prototype.setSourceCodeUrl = function (value) { + return jspb.Message.setProto3StringField(this, 6, value) +} if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.oracle.v1.RawRequest.prototype.toObject = function(opt_includeInstance) { - return proto.oracle.v1.RawRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.oracle.v1.RawRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.oracle.v1.RawRequest.toObject = function(includeInstance, msg) { - var f, obj = { - externalId: jspb.Message.getFieldWithDefault(msg, 1, 0), - dataSourceId: jspb.Message.getFieldWithDefault(msg, 2, 0), - calldata: msg.getCalldata_asB64() - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.oracle.v1.RawRequest.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.oracle.v1.RawRequest.toObject(opt_includeInstance, this) + } + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.oracle.v1.RawRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.oracle.v1.RawRequest.toObject = function (includeInstance, msg) { + var f, + obj = { + externalId: jspb.Message.getFieldWithDefault(msg, 1, 0), + dataSourceId: jspb.Message.getFieldWithDefault(msg, 2, 0), + calldata: msg.getCalldata_asB64(), + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.oracle.v1.RawRequest} */ -proto.oracle.v1.RawRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.oracle.v1.RawRequest; - return proto.oracle.v1.RawRequest.deserializeBinaryFromReader(msg, reader); -}; - +proto.oracle.v1.RawRequest.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.oracle.v1.RawRequest() + return proto.oracle.v1.RawRequest.deserializeBinaryFromReader(msg, reader) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -1094,44 +1060,45 @@ proto.oracle.v1.RawRequest.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.oracle.v1.RawRequest} */ -proto.oracle.v1.RawRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.oracle.v1.RawRequest.deserializeBinaryFromReader = function ( + msg, + reader, +) { while (reader.nextField()) { if (reader.isEndGroup()) { - break; + break } - var field = reader.getFieldNumber(); + var field = reader.getFieldNumber() switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint64()); - msg.setExternalId(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint64()); - msg.setDataSourceId(value); - break; - case 3: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setCalldata(value); - break; - default: - reader.skipField(); - break; + case 1: + var value = /** @type {number} */ (reader.readUint64()) + msg.setExternalId(value) + break + case 2: + var value = /** @type {number} */ (reader.readUint64()) + msg.setDataSourceId(value) + break + case 3: + var value = /** @type {!Uint8Array} */ (reader.readBytes()) + msg.setCalldata(value) + break + default: + reader.skipField() + break } } - return msg; -}; - + return msg +} /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.oracle.v1.RawRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.oracle.v1.RawRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.oracle.v1.RawRequest.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter() + proto.oracle.v1.RawRequest.serializeBinaryToWriter(this, writer) + return writer.getResultBuffer() +} /** * Serializes the given message to binary data (in protobuf wire @@ -1140,87 +1107,75 @@ proto.oracle.v1.RawRequest.prototype.serializeBinary = function() { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.oracle.v1.RawRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getExternalId(); +proto.oracle.v1.RawRequest.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined + f = message.getExternalId() if (f !== 0) { - writer.writeUint64( - 1, - f - ); + writer.writeUint64(1, f) } - f = message.getDataSourceId(); + f = message.getDataSourceId() if (f !== 0) { - writer.writeUint64( - 2, - f - ); + writer.writeUint64(2, f) } - f = message.getCalldata_asU8(); + f = message.getCalldata_asU8() if (f.length > 0) { - writer.writeBytes( - 3, - f - ); + writer.writeBytes(3, f) } -}; - +} /** * optional uint64 external_id = 1; * @return {number} */ -proto.oracle.v1.RawRequest.prototype.getExternalId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - +proto.oracle.v1.RawRequest.prototype.getExternalId = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)) +} /** * @param {number} value * @return {!proto.oracle.v1.RawRequest} returns this */ -proto.oracle.v1.RawRequest.prototype.setExternalId = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - +proto.oracle.v1.RawRequest.prototype.setExternalId = function (value) { + return jspb.Message.setProto3IntField(this, 1, value) +} /** * optional uint64 data_source_id = 2; * @return {number} */ -proto.oracle.v1.RawRequest.prototype.getDataSourceId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - +proto.oracle.v1.RawRequest.prototype.getDataSourceId = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)) +} /** * @param {number} value * @return {!proto.oracle.v1.RawRequest} returns this */ -proto.oracle.v1.RawRequest.prototype.setDataSourceId = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - +proto.oracle.v1.RawRequest.prototype.setDataSourceId = function (value) { + return jspb.Message.setProto3IntField(this, 2, value) +} /** * optional bytes calldata = 3; * @return {!(string|Uint8Array)} */ -proto.oracle.v1.RawRequest.prototype.getCalldata = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - +proto.oracle.v1.RawRequest.prototype.getCalldata = function () { + return /** @type {!(string|Uint8Array)} */ ( + jspb.Message.getFieldWithDefault(this, 3, '') + ) +} /** * optional bytes calldata = 3; * This is a type-conversion wrapper around `getCalldata()` * @return {string} */ -proto.oracle.v1.RawRequest.prototype.getCalldata_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getCalldata())); -}; - +proto.oracle.v1.RawRequest.prototype.getCalldata_asB64 = function () { + return /** @type {string} */ (jspb.Message.bytesAsB64(this.getCalldata())) +} /** * optional bytes calldata = 3; @@ -1229,77 +1184,71 @@ proto.oracle.v1.RawRequest.prototype.getCalldata_asB64 = function() { * This is a type-conversion wrapper around `getCalldata()` * @return {!Uint8Array} */ -proto.oracle.v1.RawRequest.prototype.getCalldata_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getCalldata())); -}; - +proto.oracle.v1.RawRequest.prototype.getCalldata_asU8 = function () { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(this.getCalldata())) +} /** * @param {!(string|Uint8Array)} value * @return {!proto.oracle.v1.RawRequest} returns this */ -proto.oracle.v1.RawRequest.prototype.setCalldata = function(value) { - return jspb.Message.setProto3BytesField(this, 3, value); -}; - - - - +proto.oracle.v1.RawRequest.prototype.setCalldata = function (value) { + return jspb.Message.setProto3BytesField(this, 3, value) +} if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.oracle.v1.RawReport.prototype.toObject = function(opt_includeInstance) { - return proto.oracle.v1.RawReport.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.oracle.v1.RawReport} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.oracle.v1.RawReport.toObject = function(includeInstance, msg) { - var f, obj = { - externalId: jspb.Message.getFieldWithDefault(msg, 1, 0), - exitCode: jspb.Message.getFieldWithDefault(msg, 2, 0), - data: msg.getData_asB64() - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.oracle.v1.RawReport.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.oracle.v1.RawReport.toObject(opt_includeInstance, this) + } + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.oracle.v1.RawReport} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.oracle.v1.RawReport.toObject = function (includeInstance, msg) { + var f, + obj = { + externalId: jspb.Message.getFieldWithDefault(msg, 1, 0), + exitCode: jspb.Message.getFieldWithDefault(msg, 2, 0), + data: msg.getData_asB64(), + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.oracle.v1.RawReport} */ -proto.oracle.v1.RawReport.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.oracle.v1.RawReport; - return proto.oracle.v1.RawReport.deserializeBinaryFromReader(msg, reader); -}; - +proto.oracle.v1.RawReport.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.oracle.v1.RawReport() + return proto.oracle.v1.RawReport.deserializeBinaryFromReader(msg, reader) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -1308,44 +1257,42 @@ proto.oracle.v1.RawReport.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.oracle.v1.RawReport} */ -proto.oracle.v1.RawReport.deserializeBinaryFromReader = function(msg, reader) { +proto.oracle.v1.RawReport.deserializeBinaryFromReader = function (msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { - break; + break } - var field = reader.getFieldNumber(); + var field = reader.getFieldNumber() switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint64()); - msg.setExternalId(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setExitCode(value); - break; - case 3: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setData(value); - break; - default: - reader.skipField(); - break; + case 1: + var value = /** @type {number} */ (reader.readUint64()) + msg.setExternalId(value) + break + case 2: + var value = /** @type {number} */ (reader.readUint32()) + msg.setExitCode(value) + break + case 3: + var value = /** @type {!Uint8Array} */ (reader.readBytes()) + msg.setData(value) + break + default: + reader.skipField() + break } } - return msg; -}; - + return msg +} /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.oracle.v1.RawReport.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.oracle.v1.RawReport.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.oracle.v1.RawReport.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter() + proto.oracle.v1.RawReport.serializeBinaryToWriter(this, writer) + return writer.getResultBuffer() +} /** * Serializes the given message to binary data (in protobuf wire @@ -1354,87 +1301,72 @@ proto.oracle.v1.RawReport.prototype.serializeBinary = function() { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.oracle.v1.RawReport.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getExternalId(); +proto.oracle.v1.RawReport.serializeBinaryToWriter = function (message, writer) { + var f = undefined + f = message.getExternalId() if (f !== 0) { - writer.writeUint64( - 1, - f - ); + writer.writeUint64(1, f) } - f = message.getExitCode(); + f = message.getExitCode() if (f !== 0) { - writer.writeUint32( - 2, - f - ); + writer.writeUint32(2, f) } - f = message.getData_asU8(); + f = message.getData_asU8() if (f.length > 0) { - writer.writeBytes( - 3, - f - ); + writer.writeBytes(3, f) } -}; - +} /** * optional uint64 external_id = 1; * @return {number} */ -proto.oracle.v1.RawReport.prototype.getExternalId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - +proto.oracle.v1.RawReport.prototype.getExternalId = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)) +} /** * @param {number} value * @return {!proto.oracle.v1.RawReport} returns this */ -proto.oracle.v1.RawReport.prototype.setExternalId = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - +proto.oracle.v1.RawReport.prototype.setExternalId = function (value) { + return jspb.Message.setProto3IntField(this, 1, value) +} /** * optional uint32 exit_code = 2; * @return {number} */ -proto.oracle.v1.RawReport.prototype.getExitCode = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - +proto.oracle.v1.RawReport.prototype.getExitCode = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)) +} /** * @param {number} value * @return {!proto.oracle.v1.RawReport} returns this */ -proto.oracle.v1.RawReport.prototype.setExitCode = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - +proto.oracle.v1.RawReport.prototype.setExitCode = function (value) { + return jspb.Message.setProto3IntField(this, 2, value) +} /** * optional bytes data = 3; * @return {!(string|Uint8Array)} */ -proto.oracle.v1.RawReport.prototype.getData = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - +proto.oracle.v1.RawReport.prototype.getData = function () { + return /** @type {!(string|Uint8Array)} */ ( + jspb.Message.getFieldWithDefault(this, 3, '') + ) +} /** * optional bytes data = 3; * This is a type-conversion wrapper around `getData()` * @return {string} */ -proto.oracle.v1.RawReport.prototype.getData_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getData())); -}; - +proto.oracle.v1.RawReport.prototype.getData_asB64 = function () { + return /** @type {string} */ (jspb.Message.bytesAsB64(this.getData())) +} /** * optional bytes data = 3; @@ -1443,96 +1375,90 @@ proto.oracle.v1.RawReport.prototype.getData_asB64 = function() { * This is a type-conversion wrapper around `getData()` * @return {!Uint8Array} */ -proto.oracle.v1.RawReport.prototype.getData_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getData())); -}; - +proto.oracle.v1.RawReport.prototype.getData_asU8 = function () { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(this.getData())) +} /** * @param {!(string|Uint8Array)} value * @return {!proto.oracle.v1.RawReport} returns this */ -proto.oracle.v1.RawReport.prototype.setData = function(value) { - return jspb.Message.setProto3BytesField(this, 3, value); -}; - - +proto.oracle.v1.RawReport.prototype.setData = function (value) { + return jspb.Message.setProto3BytesField(this, 3, value) +} /** * List of repeated fields within this message type. * @private {!Array} * @const */ -proto.oracle.v1.Request.repeatedFields_ = [3,8,13]; - - +proto.oracle.v1.Request.repeatedFields_ = [3, 8] if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.oracle.v1.Request.prototype.toObject = function(opt_includeInstance) { - return proto.oracle.v1.Request.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.oracle.v1.Request} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.oracle.v1.Request.toObject = function(includeInstance, msg) { - var f, obj = { - oracleScriptId: jspb.Message.getFieldWithDefault(msg, 1, 0), - calldata: msg.getCalldata_asB64(), - requestedValidatorsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f, - minCount: jspb.Message.getFieldWithDefault(msg, 4, 0), - requestHeight: jspb.Message.getFieldWithDefault(msg, 5, 0), - requestTime: jspb.Message.getFieldWithDefault(msg, 6, 0), - clientId: jspb.Message.getFieldWithDefault(msg, 7, ""), - rawRequestsList: jspb.Message.toObjectList(msg.getRawRequestsList(), - proto.oracle.v1.RawRequest.toObject, includeInstance), - ibcChannel: (f = msg.getIbcChannel()) && proto.oracle.v1.IBCChannel.toObject(includeInstance, f), - executeGas: jspb.Message.getFieldWithDefault(msg, 10, 0), - tssGroupId: jspb.Message.getFieldWithDefault(msg, 11, 0), - requester: jspb.Message.getFieldWithDefault(msg, 12, ""), - feeLimitList: jspb.Message.toObjectList(msg.getFeeLimitList(), - cosmos_base_v1beta1_coin_pb.Coin.toObject, includeInstance) - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.oracle.v1.Request.prototype.toObject = function (opt_includeInstance) { + return proto.oracle.v1.Request.toObject(opt_includeInstance, this) + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.oracle.v1.Request} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.oracle.v1.Request.toObject = function (includeInstance, msg) { + var f, + obj = { + oracleScriptId: jspb.Message.getFieldWithDefault(msg, 1, 0), + calldata: msg.getCalldata_asB64(), + requestedValidatorsList: + (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f, + minCount: jspb.Message.getFieldWithDefault(msg, 4, 0), + requestHeight: jspb.Message.getFieldWithDefault(msg, 5, 0), + requestTime: jspb.Message.getFieldWithDefault(msg, 6, 0), + clientId: jspb.Message.getFieldWithDefault(msg, 7, ''), + rawRequestsList: jspb.Message.toObjectList( + msg.getRawRequestsList(), + proto.oracle.v1.RawRequest.toObject, + includeInstance, + ), + ibcChannel: + (f = msg.getIbcChannel()) && + proto.oracle.v1.IBCChannel.toObject(includeInstance, f), + executeGas: jspb.Message.getFieldWithDefault(msg, 10, 0), + } + + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.oracle.v1.Request} */ -proto.oracle.v1.Request.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.oracle.v1.Request; - return proto.oracle.v1.Request.deserializeBinaryFromReader(msg, reader); -}; - +proto.oracle.v1.Request.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.oracle.v1.Request() + return proto.oracle.v1.Request.deserializeBinaryFromReader(msg, reader) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -1541,87 +1467,78 @@ proto.oracle.v1.Request.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.oracle.v1.Request} */ -proto.oracle.v1.Request.deserializeBinaryFromReader = function(msg, reader) { +proto.oracle.v1.Request.deserializeBinaryFromReader = function (msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { - break; + break } - var field = reader.getFieldNumber(); + var field = reader.getFieldNumber() switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint64()); - msg.setOracleScriptId(value); - break; - case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setCalldata(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.addRequestedValidators(value); - break; - case 4: - var value = /** @type {number} */ (reader.readUint64()); - msg.setMinCount(value); - break; - case 5: - var value = /** @type {number} */ (reader.readInt64()); - msg.setRequestHeight(value); - break; - case 6: - var value = /** @type {number} */ (reader.readInt64()); - msg.setRequestTime(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setClientId(value); - break; - case 8: - var value = new proto.oracle.v1.RawRequest; - reader.readMessage(value,proto.oracle.v1.RawRequest.deserializeBinaryFromReader); - msg.addRawRequests(value); - break; - case 9: - var value = new proto.oracle.v1.IBCChannel; - reader.readMessage(value,proto.oracle.v1.IBCChannel.deserializeBinaryFromReader); - msg.setIbcChannel(value); - break; - case 10: - var value = /** @type {number} */ (reader.readUint64()); - msg.setExecuteGas(value); - break; - case 11: - var value = /** @type {number} */ (reader.readUint64()); - msg.setTssGroupId(value); - break; - case 12: - var value = /** @type {string} */ (reader.readString()); - msg.setRequester(value); - break; - case 13: - var value = new cosmos_base_v1beta1_coin_pb.Coin; - reader.readMessage(value,cosmos_base_v1beta1_coin_pb.Coin.deserializeBinaryFromReader); - msg.addFeeLimit(value); - break; - default: - reader.skipField(); - break; + case 1: + var value = /** @type {number} */ (reader.readUint64()) + msg.setOracleScriptId(value) + break + case 2: + var value = /** @type {!Uint8Array} */ (reader.readBytes()) + msg.setCalldata(value) + break + case 3: + var value = /** @type {string} */ (reader.readString()) + msg.addRequestedValidators(value) + break + case 4: + var value = /** @type {number} */ (reader.readUint64()) + msg.setMinCount(value) + break + case 5: + var value = /** @type {number} */ (reader.readInt64()) + msg.setRequestHeight(value) + break + case 6: + var value = /** @type {number} */ (reader.readInt64()) + msg.setRequestTime(value) + break + case 7: + var value = /** @type {string} */ (reader.readString()) + msg.setClientId(value) + break + case 8: + var value = new proto.oracle.v1.RawRequest() + reader.readMessage( + value, + proto.oracle.v1.RawRequest.deserializeBinaryFromReader, + ) + msg.addRawRequests(value) + break + case 9: + var value = new proto.oracle.v1.IBCChannel() + reader.readMessage( + value, + proto.oracle.v1.IBCChannel.deserializeBinaryFromReader, + ) + msg.setIbcChannel(value) + break + case 10: + var value = /** @type {number} */ (reader.readUint64()) + msg.setExecuteGas(value) + break + default: + reader.skipField() + break } } - return msg; -}; - + return msg +} /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.oracle.v1.Request.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.oracle.v1.Request.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.oracle.v1.Request.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter() + proto.oracle.v1.Request.serializeBinaryToWriter(this, writer) + return writer.getResultBuffer() +} /** * Serializes the given message to binary data (in protobuf wire @@ -1630,142 +1547,92 @@ proto.oracle.v1.Request.prototype.serializeBinary = function() { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.oracle.v1.Request.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOracleScriptId(); +proto.oracle.v1.Request.serializeBinaryToWriter = function (message, writer) { + var f = undefined + f = message.getOracleScriptId() if (f !== 0) { - writer.writeUint64( - 1, - f - ); + writer.writeUint64(1, f) } - f = message.getCalldata_asU8(); + f = message.getCalldata_asU8() if (f.length > 0) { - writer.writeBytes( - 2, - f - ); + writer.writeBytes(2, f) } - f = message.getRequestedValidatorsList(); + f = message.getRequestedValidatorsList() if (f.length > 0) { - writer.writeRepeatedString( - 3, - f - ); + writer.writeRepeatedString(3, f) } - f = message.getMinCount(); + f = message.getMinCount() if (f !== 0) { - writer.writeUint64( - 4, - f - ); + writer.writeUint64(4, f) } - f = message.getRequestHeight(); + f = message.getRequestHeight() if (f !== 0) { - writer.writeInt64( - 5, - f - ); + writer.writeInt64(5, f) } - f = message.getRequestTime(); + f = message.getRequestTime() if (f !== 0) { - writer.writeInt64( - 6, - f - ); + writer.writeInt64(6, f) } - f = message.getClientId(); + f = message.getClientId() if (f.length > 0) { - writer.writeString( - 7, - f - ); + writer.writeString(7, f) } - f = message.getRawRequestsList(); + f = message.getRawRequestsList() if (f.length > 0) { writer.writeRepeatedMessage( 8, f, - proto.oracle.v1.RawRequest.serializeBinaryToWriter - ); + proto.oracle.v1.RawRequest.serializeBinaryToWriter, + ) } - f = message.getIbcChannel(); + f = message.getIbcChannel() if (f != null) { writer.writeMessage( 9, f, - proto.oracle.v1.IBCChannel.serializeBinaryToWriter - ); + proto.oracle.v1.IBCChannel.serializeBinaryToWriter, + ) } - f = message.getExecuteGas(); + f = message.getExecuteGas() if (f !== 0) { - writer.writeUint64( - 10, - f - ); + writer.writeUint64(10, f) } - f = message.getTssGroupId(); - if (f !== 0) { - writer.writeUint64( - 11, - f - ); - } - f = message.getRequester(); - if (f.length > 0) { - writer.writeString( - 12, - f - ); - } - f = message.getFeeLimitList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 13, - f, - cosmos_base_v1beta1_coin_pb.Coin.serializeBinaryToWriter - ); - } -}; - +} /** * optional uint64 oracle_script_id = 1; * @return {number} */ -proto.oracle.v1.Request.prototype.getOracleScriptId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - +proto.oracle.v1.Request.prototype.getOracleScriptId = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)) +} /** * @param {number} value * @return {!proto.oracle.v1.Request} returns this */ -proto.oracle.v1.Request.prototype.setOracleScriptId = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - +proto.oracle.v1.Request.prototype.setOracleScriptId = function (value) { + return jspb.Message.setProto3IntField(this, 1, value) +} /** * optional bytes calldata = 2; * @return {!(string|Uint8Array)} */ -proto.oracle.v1.Request.prototype.getCalldata = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - +proto.oracle.v1.Request.prototype.getCalldata = function () { + return /** @type {!(string|Uint8Array)} */ ( + jspb.Message.getFieldWithDefault(this, 2, '') + ) +} /** * optional bytes calldata = 2; * This is a type-conversion wrapper around `getCalldata()` * @return {string} */ -proto.oracle.v1.Request.prototype.getCalldata_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getCalldata())); -}; - +proto.oracle.v1.Request.prototype.getCalldata_asB64 = function () { + return /** @type {string} */ (jspb.Message.bytesAsB64(this.getCalldata())) +} /** * optional bytes calldata = 2; @@ -1774,361 +1641,276 @@ proto.oracle.v1.Request.prototype.getCalldata_asB64 = function() { * This is a type-conversion wrapper around `getCalldata()` * @return {!Uint8Array} */ -proto.oracle.v1.Request.prototype.getCalldata_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getCalldata())); -}; - +proto.oracle.v1.Request.prototype.getCalldata_asU8 = function () { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(this.getCalldata())) +} /** * @param {!(string|Uint8Array)} value * @return {!proto.oracle.v1.Request} returns this */ -proto.oracle.v1.Request.prototype.setCalldata = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); -}; - +proto.oracle.v1.Request.prototype.setCalldata = function (value) { + return jspb.Message.setProto3BytesField(this, 2, value) +} /** * repeated string requested_validators = 3; * @return {!Array} */ -proto.oracle.v1.Request.prototype.getRequestedValidatorsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); -}; - +proto.oracle.v1.Request.prototype.getRequestedValidatorsList = function () { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)) +} /** * @param {!Array} value * @return {!proto.oracle.v1.Request} returns this */ -proto.oracle.v1.Request.prototype.setRequestedValidatorsList = function(value) { - return jspb.Message.setField(this, 3, value || []); -}; - +proto.oracle.v1.Request.prototype.setRequestedValidatorsList = function ( + value, +) { + return jspb.Message.setField(this, 3, value || []) +} /** * @param {string} value * @param {number=} opt_index * @return {!proto.oracle.v1.Request} returns this */ -proto.oracle.v1.Request.prototype.addRequestedValidators = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 3, value, opt_index); -}; - +proto.oracle.v1.Request.prototype.addRequestedValidators = function ( + value, + opt_index, +) { + return jspb.Message.addToRepeatedField(this, 3, value, opt_index) +} /** * Clears the list making it empty but non-null. * @return {!proto.oracle.v1.Request} returns this */ -proto.oracle.v1.Request.prototype.clearRequestedValidatorsList = function() { - return this.setRequestedValidatorsList([]); -}; - +proto.oracle.v1.Request.prototype.clearRequestedValidatorsList = function () { + return this.setRequestedValidatorsList([]) +} /** * optional uint64 min_count = 4; * @return {number} */ -proto.oracle.v1.Request.prototype.getMinCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - +proto.oracle.v1.Request.prototype.getMinCount = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)) +} /** * @param {number} value * @return {!proto.oracle.v1.Request} returns this */ -proto.oracle.v1.Request.prototype.setMinCount = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - +proto.oracle.v1.Request.prototype.setMinCount = function (value) { + return jspb.Message.setProto3IntField(this, 4, value) +} /** * optional int64 request_height = 5; * @return {number} */ -proto.oracle.v1.Request.prototype.getRequestHeight = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - +proto.oracle.v1.Request.prototype.getRequestHeight = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)) +} /** * @param {number} value * @return {!proto.oracle.v1.Request} returns this */ -proto.oracle.v1.Request.prototype.setRequestHeight = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - +proto.oracle.v1.Request.prototype.setRequestHeight = function (value) { + return jspb.Message.setProto3IntField(this, 5, value) +} /** * optional int64 request_time = 6; * @return {number} */ -proto.oracle.v1.Request.prototype.getRequestTime = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - +proto.oracle.v1.Request.prototype.getRequestTime = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)) +} /** * @param {number} value * @return {!proto.oracle.v1.Request} returns this */ -proto.oracle.v1.Request.prototype.setRequestTime = function(value) { - return jspb.Message.setProto3IntField(this, 6, value); -}; - +proto.oracle.v1.Request.prototype.setRequestTime = function (value) { + return jspb.Message.setProto3IntField(this, 6, value) +} /** * optional string client_id = 7; * @return {string} */ -proto.oracle.v1.Request.prototype.getClientId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - +proto.oracle.v1.Request.prototype.getClientId = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, '')) +} /** * @param {string} value * @return {!proto.oracle.v1.Request} returns this */ -proto.oracle.v1.Request.prototype.setClientId = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); -}; - +proto.oracle.v1.Request.prototype.setClientId = function (value) { + return jspb.Message.setProto3StringField(this, 7, value) +} /** * repeated RawRequest raw_requests = 8; * @return {!Array} */ -proto.oracle.v1.Request.prototype.getRawRequestsList = function() { +proto.oracle.v1.Request.prototype.getRawRequestsList = function () { return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.oracle.v1.RawRequest, 8)); -}; - + jspb.Message.getRepeatedWrapperField(this, proto.oracle.v1.RawRequest, 8) + ) +} /** * @param {!Array} value * @return {!proto.oracle.v1.Request} returns this -*/ -proto.oracle.v1.Request.prototype.setRawRequestsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 8, value); -}; - + */ +proto.oracle.v1.Request.prototype.setRawRequestsList = function (value) { + return jspb.Message.setRepeatedWrapperField(this, 8, value) +} /** * @param {!proto.oracle.v1.RawRequest=} opt_value * @param {number=} opt_index * @return {!proto.oracle.v1.RawRequest} */ -proto.oracle.v1.Request.prototype.addRawRequests = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 8, opt_value, proto.oracle.v1.RawRequest, opt_index); -}; - +proto.oracle.v1.Request.prototype.addRawRequests = function ( + opt_value, + opt_index, +) { + return jspb.Message.addToRepeatedWrapperField( + this, + 8, + opt_value, + proto.oracle.v1.RawRequest, + opt_index, + ) +} /** * Clears the list making it empty but non-null. * @return {!proto.oracle.v1.Request} returns this */ -proto.oracle.v1.Request.prototype.clearRawRequestsList = function() { - return this.setRawRequestsList([]); -}; - +proto.oracle.v1.Request.prototype.clearRawRequestsList = function () { + return this.setRawRequestsList([]) +} /** * optional IBCChannel ibc_channel = 9; * @return {?proto.oracle.v1.IBCChannel} */ -proto.oracle.v1.Request.prototype.getIbcChannel = function() { +proto.oracle.v1.Request.prototype.getIbcChannel = function () { return /** @type{?proto.oracle.v1.IBCChannel} */ ( - jspb.Message.getWrapperField(this, proto.oracle.v1.IBCChannel, 9)); -}; - + jspb.Message.getWrapperField(this, proto.oracle.v1.IBCChannel, 9) + ) +} /** * @param {?proto.oracle.v1.IBCChannel|undefined} value * @return {!proto.oracle.v1.Request} returns this -*/ -proto.oracle.v1.Request.prototype.setIbcChannel = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - + */ +proto.oracle.v1.Request.prototype.setIbcChannel = function (value) { + return jspb.Message.setWrapperField(this, 9, value) +} /** * Clears the message field making it undefined. * @return {!proto.oracle.v1.Request} returns this */ -proto.oracle.v1.Request.prototype.clearIbcChannel = function() { - return this.setIbcChannel(undefined); -}; - +proto.oracle.v1.Request.prototype.clearIbcChannel = function () { + return this.setIbcChannel(undefined) +} /** * Returns whether this field is set. * @return {boolean} */ -proto.oracle.v1.Request.prototype.hasIbcChannel = function() { - return jspb.Message.getField(this, 9) != null; -}; - +proto.oracle.v1.Request.prototype.hasIbcChannel = function () { + return jspb.Message.getField(this, 9) != null +} /** * optional uint64 execute_gas = 10; * @return {number} */ -proto.oracle.v1.Request.prototype.getExecuteGas = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.oracle.v1.Request} returns this - */ -proto.oracle.v1.Request.prototype.setExecuteGas = function(value) { - return jspb.Message.setProto3IntField(this, 10, value); -}; - - -/** - * optional uint64 tss_group_id = 11; - * @return {number} - */ -proto.oracle.v1.Request.prototype.getTssGroupId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0)); -}; - +proto.oracle.v1.Request.prototype.getExecuteGas = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)) +} /** * @param {number} value * @return {!proto.oracle.v1.Request} returns this */ -proto.oracle.v1.Request.prototype.setTssGroupId = function(value) { - return jspb.Message.setProto3IntField(this, 11, value); -}; - - -/** - * optional string requester = 12; - * @return {string} - */ -proto.oracle.v1.Request.prototype.getRequester = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); -}; - - -/** - * @param {string} value - * @return {!proto.oracle.v1.Request} returns this - */ -proto.oracle.v1.Request.prototype.setRequester = function(value) { - return jspb.Message.setProto3StringField(this, 12, value); -}; - - -/** - * repeated cosmos.base.v1beta1.Coin fee_limit = 13; - * @return {!Array} - */ -proto.oracle.v1.Request.prototype.getFeeLimitList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, cosmos_base_v1beta1_coin_pb.Coin, 13)); -}; - - -/** - * @param {!Array} value - * @return {!proto.oracle.v1.Request} returns this -*/ -proto.oracle.v1.Request.prototype.setFeeLimitList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 13, value); -}; - - -/** - * @param {!proto.cosmos.base.v1beta1.Coin=} opt_value - * @param {number=} opt_index - * @return {!proto.cosmos.base.v1beta1.Coin} - */ -proto.oracle.v1.Request.prototype.addFeeLimit = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 13, opt_value, proto.cosmos.base.v1beta1.Coin, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.oracle.v1.Request} returns this - */ -proto.oracle.v1.Request.prototype.clearFeeLimitList = function() { - return this.setFeeLimitList([]); -}; - - +proto.oracle.v1.Request.prototype.setExecuteGas = function (value) { + return jspb.Message.setProto3IntField(this, 10, value) +} /** * List of repeated fields within this message type. * @private {!Array} * @const */ -proto.oracle.v1.Report.repeatedFields_ = [3]; - - +proto.oracle.v1.Report.repeatedFields_ = [3] if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.oracle.v1.Report.prototype.toObject = function(opt_includeInstance) { - return proto.oracle.v1.Report.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.oracle.v1.Report} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.oracle.v1.Report.toObject = function(includeInstance, msg) { - var f, obj = { - validator: jspb.Message.getFieldWithDefault(msg, 1, ""), - inBeforeResolve: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - rawReportsList: jspb.Message.toObjectList(msg.getRawReportsList(), - proto.oracle.v1.RawReport.toObject, includeInstance) - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.oracle.v1.Report.prototype.toObject = function (opt_includeInstance) { + return proto.oracle.v1.Report.toObject(opt_includeInstance, this) + } + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.oracle.v1.Report} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.oracle.v1.Report.toObject = function (includeInstance, msg) { + var f, + obj = { + validator: jspb.Message.getFieldWithDefault(msg, 1, ''), + inBeforeResolve: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), + rawReportsList: jspb.Message.toObjectList( + msg.getRawReportsList(), + proto.oracle.v1.RawReport.toObject, + includeInstance, + ), + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.oracle.v1.Report} */ -proto.oracle.v1.Report.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.oracle.v1.Report; - return proto.oracle.v1.Report.deserializeBinaryFromReader(msg, reader); -}; - +proto.oracle.v1.Report.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.oracle.v1.Report() + return proto.oracle.v1.Report.deserializeBinaryFromReader(msg, reader) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -2137,45 +1919,46 @@ proto.oracle.v1.Report.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.oracle.v1.Report} */ -proto.oracle.v1.Report.deserializeBinaryFromReader = function(msg, reader) { +proto.oracle.v1.Report.deserializeBinaryFromReader = function (msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { - break; + break } - var field = reader.getFieldNumber(); + var field = reader.getFieldNumber() switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setValidator(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setInBeforeResolve(value); - break; - case 3: - var value = new proto.oracle.v1.RawReport; - reader.readMessage(value,proto.oracle.v1.RawReport.deserializeBinaryFromReader); - msg.addRawReports(value); - break; - default: - reader.skipField(); - break; + case 1: + var value = /** @type {string} */ (reader.readString()) + msg.setValidator(value) + break + case 2: + var value = /** @type {boolean} */ (reader.readBool()) + msg.setInBeforeResolve(value) + break + case 3: + var value = new proto.oracle.v1.RawReport() + reader.readMessage( + value, + proto.oracle.v1.RawReport.deserializeBinaryFromReader, + ) + msg.addRawReports(value) + break + default: + reader.skipField() + break } } - return msg; -}; - + return msg +} /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.oracle.v1.Report.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.oracle.v1.Report.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.oracle.v1.Report.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter() + proto.oracle.v1.Report.serializeBinaryToWriter(this, writer) + return writer.getResultBuffer() +} /** * Serializes the given message to binary data (in protobuf wire @@ -2184,177 +1967,182 @@ proto.oracle.v1.Report.prototype.serializeBinary = function() { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.oracle.v1.Report.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getValidator(); +proto.oracle.v1.Report.serializeBinaryToWriter = function (message, writer) { + var f = undefined + f = message.getValidator() if (f.length > 0) { - writer.writeString( - 1, - f - ); + writer.writeString(1, f) } - f = message.getInBeforeResolve(); + f = message.getInBeforeResolve() if (f) { - writer.writeBool( - 2, - f - ); + writer.writeBool(2, f) } - f = message.getRawReportsList(); + f = message.getRawReportsList() if (f.length > 0) { writer.writeRepeatedMessage( 3, f, - proto.oracle.v1.RawReport.serializeBinaryToWriter - ); + proto.oracle.v1.RawReport.serializeBinaryToWriter, + ) } -}; - +} /** * optional string validator = 1; * @return {string} */ -proto.oracle.v1.Report.prototype.getValidator = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - +proto.oracle.v1.Report.prototype.getValidator = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, '')) +} /** * @param {string} value * @return {!proto.oracle.v1.Report} returns this */ -proto.oracle.v1.Report.prototype.setValidator = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - +proto.oracle.v1.Report.prototype.setValidator = function (value) { + return jspb.Message.setProto3StringField(this, 1, value) +} /** * optional bool in_before_resolve = 2; * @return {boolean} */ -proto.oracle.v1.Report.prototype.getInBeforeResolve = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - +proto.oracle.v1.Report.prototype.getInBeforeResolve = function () { + return /** @type {boolean} */ ( + jspb.Message.getBooleanFieldWithDefault(this, 2, false) + ) +} /** * @param {boolean} value * @return {!proto.oracle.v1.Report} returns this */ -proto.oracle.v1.Report.prototype.setInBeforeResolve = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); -}; - +proto.oracle.v1.Report.prototype.setInBeforeResolve = function (value) { + return jspb.Message.setProto3BooleanField(this, 2, value) +} /** * repeated RawReport raw_reports = 3; * @return {!Array} */ -proto.oracle.v1.Report.prototype.getRawReportsList = function() { +proto.oracle.v1.Report.prototype.getRawReportsList = function () { return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.oracle.v1.RawReport, 3)); -}; - + jspb.Message.getRepeatedWrapperField(this, proto.oracle.v1.RawReport, 3) + ) +} /** * @param {!Array} value * @return {!proto.oracle.v1.Report} returns this -*/ -proto.oracle.v1.Report.prototype.setRawReportsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - + */ +proto.oracle.v1.Report.prototype.setRawReportsList = function (value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value) +} /** * @param {!proto.oracle.v1.RawReport=} opt_value * @param {number=} opt_index * @return {!proto.oracle.v1.RawReport} */ -proto.oracle.v1.Report.prototype.addRawReports = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.oracle.v1.RawReport, opt_index); -}; - +proto.oracle.v1.Report.prototype.addRawReports = function ( + opt_value, + opt_index, +) { + return jspb.Message.addToRepeatedWrapperField( + this, + 3, + opt_value, + proto.oracle.v1.RawReport, + opt_index, + ) +} /** * Clears the list making it empty but non-null. * @return {!proto.oracle.v1.Report} returns this */ -proto.oracle.v1.Report.prototype.clearRawReportsList = function() { - return this.setRawReportsList([]); -}; - - +proto.oracle.v1.Report.prototype.clearRawReportsList = function () { + return this.setRawReportsList([]) +} /** * List of repeated fields within this message type. * @private {!Array} * @const */ -proto.oracle.v1.OracleRequestPacketData.repeatedFields_ = [6]; - - +proto.oracle.v1.OracleRequestPacketData.repeatedFields_ = [6] if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.oracle.v1.OracleRequestPacketData.prototype.toObject = function(opt_includeInstance) { - return proto.oracle.v1.OracleRequestPacketData.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.oracle.v1.OracleRequestPacketData} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.oracle.v1.OracleRequestPacketData.toObject = function(includeInstance, msg) { - var f, obj = { - clientId: jspb.Message.getFieldWithDefault(msg, 1, ""), - oracleScriptId: jspb.Message.getFieldWithDefault(msg, 2, 0), - calldata: msg.getCalldata_asB64(), - askCount: jspb.Message.getFieldWithDefault(msg, 4, 0), - minCount: jspb.Message.getFieldWithDefault(msg, 5, 0), - feeLimitList: jspb.Message.toObjectList(msg.getFeeLimitList(), - cosmos_base_v1beta1_coin_pb.Coin.toObject, includeInstance), - prepareGas: jspb.Message.getFieldWithDefault(msg, 7, 0), - executeGas: jspb.Message.getFieldWithDefault(msg, 8, 0), - tssGroupId: jspb.Message.getFieldWithDefault(msg, 9, 0) - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.oracle.v1.OracleRequestPacketData.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.oracle.v1.OracleRequestPacketData.toObject( + opt_includeInstance, + this, + ) + } + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.oracle.v1.OracleRequestPacketData} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.oracle.v1.OracleRequestPacketData.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = { + clientId: jspb.Message.getFieldWithDefault(msg, 1, ''), + oracleScriptId: jspb.Message.getFieldWithDefault(msg, 2, 0), + calldata: msg.getCalldata_asB64(), + askCount: jspb.Message.getFieldWithDefault(msg, 4, 0), + minCount: jspb.Message.getFieldWithDefault(msg, 5, 0), + feeLimitList: jspb.Message.toObjectList( + msg.getFeeLimitList(), + cosmos_base_v1beta1_coin_pb.Coin.toObject, + includeInstance, + ), + prepareGas: jspb.Message.getFieldWithDefault(msg, 7, 0), + executeGas: jspb.Message.getFieldWithDefault(msg, 8, 0), + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.oracle.v1.OracleRequestPacketData} */ -proto.oracle.v1.OracleRequestPacketData.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.oracle.v1.OracleRequestPacketData; - return proto.oracle.v1.OracleRequestPacketData.deserializeBinaryFromReader(msg, reader); -}; - +proto.oracle.v1.OracleRequestPacketData.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.oracle.v1.OracleRequestPacketData() + return proto.oracle.v1.OracleRequestPacketData.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -2363,69 +2151,73 @@ proto.oracle.v1.OracleRequestPacketData.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.oracle.v1.OracleRequestPacketData} */ -proto.oracle.v1.OracleRequestPacketData.deserializeBinaryFromReader = function(msg, reader) { +proto.oracle.v1.OracleRequestPacketData.deserializeBinaryFromReader = function ( + msg, + reader, +) { while (reader.nextField()) { if (reader.isEndGroup()) { - break; + break } - var field = reader.getFieldNumber(); + var field = reader.getFieldNumber() switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setClientId(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint64()); - msg.setOracleScriptId(value); - break; - case 3: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setCalldata(value); - break; - case 4: - var value = /** @type {number} */ (reader.readUint64()); - msg.setAskCount(value); - break; - case 5: - var value = /** @type {number} */ (reader.readUint64()); - msg.setMinCount(value); - break; - case 6: - var value = new cosmos_base_v1beta1_coin_pb.Coin; - reader.readMessage(value,cosmos_base_v1beta1_coin_pb.Coin.deserializeBinaryFromReader); - msg.addFeeLimit(value); - break; - case 7: - var value = /** @type {number} */ (reader.readUint64()); - msg.setPrepareGas(value); - break; - case 8: - var value = /** @type {number} */ (reader.readUint64()); - msg.setExecuteGas(value); - break; - case 9: - var value = /** @type {number} */ (reader.readUint64()); - msg.setTssGroupId(value); - break; - default: - reader.skipField(); - break; + case 1: + var value = /** @type {string} */ (reader.readString()) + msg.setClientId(value) + break + case 2: + var value = /** @type {number} */ (reader.readUint64()) + msg.setOracleScriptId(value) + break + case 3: + var value = /** @type {!Uint8Array} */ (reader.readBytes()) + msg.setCalldata(value) + break + case 4: + var value = /** @type {number} */ (reader.readUint64()) + msg.setAskCount(value) + break + case 5: + var value = /** @type {number} */ (reader.readUint64()) + msg.setMinCount(value) + break + case 6: + var value = new cosmos_base_v1beta1_coin_pb.Coin() + reader.readMessage( + value, + cosmos_base_v1beta1_coin_pb.Coin.deserializeBinaryFromReader, + ) + msg.addFeeLimit(value) + break + case 7: + var value = /** @type {number} */ (reader.readUint64()) + msg.setPrepareGas(value) + break + case 8: + var value = /** @type {number} */ (reader.readUint64()) + msg.setExecuteGas(value) + break + default: + reader.skipField() + break } } - return msg; -}; - + return msg +} /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.oracle.v1.OracleRequestPacketData.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.oracle.v1.OracleRequestPacketData.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.oracle.v1.OracleRequestPacketData.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter() + proto.oracle.v1.OracleRequestPacketData.serializeBinaryToWriter( + this, + writer, + ) + return writer.getResultBuffer() + } /** * Serializes the given message to binary data (in protobuf wire @@ -2434,130 +2226,105 @@ proto.oracle.v1.OracleRequestPacketData.prototype.serializeBinary = function() { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.oracle.v1.OracleRequestPacketData.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getClientId(); +proto.oracle.v1.OracleRequestPacketData.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined + f = message.getClientId() if (f.length > 0) { - writer.writeString( - 1, - f - ); + writer.writeString(1, f) } - f = message.getOracleScriptId(); + f = message.getOracleScriptId() if (f !== 0) { - writer.writeUint64( - 2, - f - ); + writer.writeUint64(2, f) } - f = message.getCalldata_asU8(); + f = message.getCalldata_asU8() if (f.length > 0) { - writer.writeBytes( - 3, - f - ); + writer.writeBytes(3, f) } - f = message.getAskCount(); + f = message.getAskCount() if (f !== 0) { - writer.writeUint64( - 4, - f - ); + writer.writeUint64(4, f) } - f = message.getMinCount(); + f = message.getMinCount() if (f !== 0) { - writer.writeUint64( - 5, - f - ); + writer.writeUint64(5, f) } - f = message.getFeeLimitList(); + f = message.getFeeLimitList() if (f.length > 0) { writer.writeRepeatedMessage( 6, f, - cosmos_base_v1beta1_coin_pb.Coin.serializeBinaryToWriter - ); - } - f = message.getPrepareGas(); - if (f !== 0) { - writer.writeUint64( - 7, - f - ); + cosmos_base_v1beta1_coin_pb.Coin.serializeBinaryToWriter, + ) } - f = message.getExecuteGas(); + f = message.getPrepareGas() if (f !== 0) { - writer.writeUint64( - 8, - f - ); + writer.writeUint64(7, f) } - f = message.getTssGroupId(); + f = message.getExecuteGas() if (f !== 0) { - writer.writeUint64( - 9, - f - ); + writer.writeUint64(8, f) } -}; - +} /** * optional string client_id = 1; * @return {string} */ -proto.oracle.v1.OracleRequestPacketData.prototype.getClientId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - +proto.oracle.v1.OracleRequestPacketData.prototype.getClientId = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, '')) +} /** * @param {string} value * @return {!proto.oracle.v1.OracleRequestPacketData} returns this */ -proto.oracle.v1.OracleRequestPacketData.prototype.setClientId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - +proto.oracle.v1.OracleRequestPacketData.prototype.setClientId = function ( + value, +) { + return jspb.Message.setProto3StringField(this, 1, value) +} /** * optional uint64 oracle_script_id = 2; * @return {number} */ -proto.oracle.v1.OracleRequestPacketData.prototype.getOracleScriptId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - +proto.oracle.v1.OracleRequestPacketData.prototype.getOracleScriptId = + function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)) + } /** * @param {number} value * @return {!proto.oracle.v1.OracleRequestPacketData} returns this */ -proto.oracle.v1.OracleRequestPacketData.prototype.setOracleScriptId = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - +proto.oracle.v1.OracleRequestPacketData.prototype.setOracleScriptId = function ( + value, +) { + return jspb.Message.setProto3IntField(this, 2, value) +} /** * optional bytes calldata = 3; * @return {!(string|Uint8Array)} */ -proto.oracle.v1.OracleRequestPacketData.prototype.getCalldata = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - +proto.oracle.v1.OracleRequestPacketData.prototype.getCalldata = function () { + return /** @type {!(string|Uint8Array)} */ ( + jspb.Message.getFieldWithDefault(this, 3, '') + ) +} /** * optional bytes calldata = 3; * This is a type-conversion wrapper around `getCalldata()` * @return {string} */ -proto.oracle.v1.OracleRequestPacketData.prototype.getCalldata_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getCalldata())); -}; - +proto.oracle.v1.OracleRequestPacketData.prototype.getCalldata_asB64 = + function () { + return /** @type {string} */ (jspb.Message.bytesAsB64(this.getCalldata())) + } /** * optional bytes calldata = 3; @@ -2566,203 +2333,207 @@ proto.oracle.v1.OracleRequestPacketData.prototype.getCalldata_asB64 = function() * This is a type-conversion wrapper around `getCalldata()` * @return {!Uint8Array} */ -proto.oracle.v1.OracleRequestPacketData.prototype.getCalldata_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getCalldata())); -}; - +proto.oracle.v1.OracleRequestPacketData.prototype.getCalldata_asU8 = + function () { + return /** @type {!Uint8Array} */ ( + jspb.Message.bytesAsU8(this.getCalldata()) + ) + } /** * @param {!(string|Uint8Array)} value * @return {!proto.oracle.v1.OracleRequestPacketData} returns this */ -proto.oracle.v1.OracleRequestPacketData.prototype.setCalldata = function(value) { - return jspb.Message.setProto3BytesField(this, 3, value); -}; - +proto.oracle.v1.OracleRequestPacketData.prototype.setCalldata = function ( + value, +) { + return jspb.Message.setProto3BytesField(this, 3, value) +} /** * optional uint64 ask_count = 4; * @return {number} */ -proto.oracle.v1.OracleRequestPacketData.prototype.getAskCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - +proto.oracle.v1.OracleRequestPacketData.prototype.getAskCount = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)) +} /** * @param {number} value * @return {!proto.oracle.v1.OracleRequestPacketData} returns this */ -proto.oracle.v1.OracleRequestPacketData.prototype.setAskCount = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - +proto.oracle.v1.OracleRequestPacketData.prototype.setAskCount = function ( + value, +) { + return jspb.Message.setProto3IntField(this, 4, value) +} /** * optional uint64 min_count = 5; * @return {number} */ -proto.oracle.v1.OracleRequestPacketData.prototype.getMinCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - +proto.oracle.v1.OracleRequestPacketData.prototype.getMinCount = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)) +} /** * @param {number} value * @return {!proto.oracle.v1.OracleRequestPacketData} returns this */ -proto.oracle.v1.OracleRequestPacketData.prototype.setMinCount = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - +proto.oracle.v1.OracleRequestPacketData.prototype.setMinCount = function ( + value, +) { + return jspb.Message.setProto3IntField(this, 5, value) +} /** * repeated cosmos.base.v1beta1.Coin fee_limit = 6; * @return {!Array} */ -proto.oracle.v1.OracleRequestPacketData.prototype.getFeeLimitList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, cosmos_base_v1beta1_coin_pb.Coin, 6)); -}; - +proto.oracle.v1.OracleRequestPacketData.prototype.getFeeLimitList = + function () { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField( + this, + cosmos_base_v1beta1_coin_pb.Coin, + 6, + ) + ) + } /** * @param {!Array} value * @return {!proto.oracle.v1.OracleRequestPacketData} returns this -*/ -proto.oracle.v1.OracleRequestPacketData.prototype.setFeeLimitList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 6, value); -}; - + */ +proto.oracle.v1.OracleRequestPacketData.prototype.setFeeLimitList = function ( + value, +) { + return jspb.Message.setRepeatedWrapperField(this, 6, value) +} /** * @param {!proto.cosmos.base.v1beta1.Coin=} opt_value * @param {number=} opt_index * @return {!proto.cosmos.base.v1beta1.Coin} */ -proto.oracle.v1.OracleRequestPacketData.prototype.addFeeLimit = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.cosmos.base.v1beta1.Coin, opt_index); -}; - +proto.oracle.v1.OracleRequestPacketData.prototype.addFeeLimit = function ( + opt_value, + opt_index, +) { + return jspb.Message.addToRepeatedWrapperField( + this, + 6, + opt_value, + proto.cosmos.base.v1beta1.Coin, + opt_index, + ) +} /** * Clears the list making it empty but non-null. * @return {!proto.oracle.v1.OracleRequestPacketData} returns this */ -proto.oracle.v1.OracleRequestPacketData.prototype.clearFeeLimitList = function() { - return this.setFeeLimitList([]); -}; - +proto.oracle.v1.OracleRequestPacketData.prototype.clearFeeLimitList = + function () { + return this.setFeeLimitList([]) + } /** * optional uint64 prepare_gas = 7; * @return {number} */ -proto.oracle.v1.OracleRequestPacketData.prototype.getPrepareGas = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - +proto.oracle.v1.OracleRequestPacketData.prototype.getPrepareGas = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)) +} /** * @param {number} value * @return {!proto.oracle.v1.OracleRequestPacketData} returns this */ -proto.oracle.v1.OracleRequestPacketData.prototype.setPrepareGas = function(value) { - return jspb.Message.setProto3IntField(this, 7, value); -}; - +proto.oracle.v1.OracleRequestPacketData.prototype.setPrepareGas = function ( + value, +) { + return jspb.Message.setProto3IntField(this, 7, value) +} /** * optional uint64 execute_gas = 8; * @return {number} */ -proto.oracle.v1.OracleRequestPacketData.prototype.getExecuteGas = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.oracle.v1.OracleRequestPacketData} returns this - */ -proto.oracle.v1.OracleRequestPacketData.prototype.setExecuteGas = function(value) { - return jspb.Message.setProto3IntField(this, 8, value); -}; - - -/** - * optional uint64 tss_group_id = 9; - * @return {number} - */ -proto.oracle.v1.OracleRequestPacketData.prototype.getTssGroupId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); -}; - +proto.oracle.v1.OracleRequestPacketData.prototype.getExecuteGas = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)) +} /** * @param {number} value * @return {!proto.oracle.v1.OracleRequestPacketData} returns this */ -proto.oracle.v1.OracleRequestPacketData.prototype.setTssGroupId = function(value) { - return jspb.Message.setProto3IntField(this, 9, value); -}; - - - - +proto.oracle.v1.OracleRequestPacketData.prototype.setExecuteGas = function ( + value, +) { + return jspb.Message.setProto3IntField(this, 8, value) +} if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.oracle.v1.OracleRequestPacketAcknowledgement.prototype.toObject = function(opt_includeInstance) { - return proto.oracle.v1.OracleRequestPacketAcknowledgement.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.oracle.v1.OracleRequestPacketAcknowledgement} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.oracle.v1.OracleRequestPacketAcknowledgement.toObject = function(includeInstance, msg) { - var f, obj = { - requestId: jspb.Message.getFieldWithDefault(msg, 1, 0) - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.oracle.v1.OracleRequestPacketAcknowledgement.prototype.toObject = + function (opt_includeInstance) { + return proto.oracle.v1.OracleRequestPacketAcknowledgement.toObject( + opt_includeInstance, + this, + ) + } + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.oracle.v1.OracleRequestPacketAcknowledgement} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.oracle.v1.OracleRequestPacketAcknowledgement.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = { + requestId: jspb.Message.getFieldWithDefault(msg, 1, 0), + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.oracle.v1.OracleRequestPacketAcknowledgement} */ -proto.oracle.v1.OracleRequestPacketAcknowledgement.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.oracle.v1.OracleRequestPacketAcknowledgement; - return proto.oracle.v1.OracleRequestPacketAcknowledgement.deserializeBinaryFromReader(msg, reader); -}; - +proto.oracle.v1.OracleRequestPacketAcknowledgement.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.oracle.v1.OracleRequestPacketAcknowledgement() + return proto.oracle.v1.OracleRequestPacketAcknowledgement.deserializeBinaryFromReader( + msg, + reader, + ) + } /** * Deserializes binary data (in protobuf wire format) from the @@ -2771,36 +2542,39 @@ proto.oracle.v1.OracleRequestPacketAcknowledgement.deserializeBinary = function( * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.oracle.v1.OracleRequestPacketAcknowledgement} */ -proto.oracle.v1.OracleRequestPacketAcknowledgement.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint64()); - msg.setRequestId(value); - break; - default: - reader.skipField(); - break; +proto.oracle.v1.OracleRequestPacketAcknowledgement.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break + } + var field = reader.getFieldNumber() + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readUint64()) + msg.setRequestId(value) + break + default: + reader.skipField() + break + } } + return msg } - return msg; -}; - /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.oracle.v1.OracleRequestPacketAcknowledgement.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.oracle.v1.OracleRequestPacketAcknowledgement.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.oracle.v1.OracleRequestPacketAcknowledgement.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter() + proto.oracle.v1.OracleRequestPacketAcknowledgement.serializeBinaryToWriter( + this, + writer, + ) + return writer.getResultBuffer() + } /** * Serializes the given message to binary data (in protobuf wire @@ -2809,96 +2583,99 @@ proto.oracle.v1.OracleRequestPacketAcknowledgement.prototype.serializeBinary = f * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.oracle.v1.OracleRequestPacketAcknowledgement.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRequestId(); - if (f !== 0) { - writer.writeUint64( - 1, - f - ); +proto.oracle.v1.OracleRequestPacketAcknowledgement.serializeBinaryToWriter = + function (message, writer) { + var f = undefined + f = message.getRequestId() + if (f !== 0) { + writer.writeUint64(1, f) + } } -}; - /** * optional uint64 request_id = 1; * @return {number} */ -proto.oracle.v1.OracleRequestPacketAcknowledgement.prototype.getRequestId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - +proto.oracle.v1.OracleRequestPacketAcknowledgement.prototype.getRequestId = + function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)) + } /** * @param {number} value * @return {!proto.oracle.v1.OracleRequestPacketAcknowledgement} returns this */ -proto.oracle.v1.OracleRequestPacketAcknowledgement.prototype.setRequestId = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - - - +proto.oracle.v1.OracleRequestPacketAcknowledgement.prototype.setRequestId = + function (value) { + return jspb.Message.setProto3IntField(this, 1, value) + } if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.oracle.v1.OracleResponsePacketData.prototype.toObject = function(opt_includeInstance) { - return proto.oracle.v1.OracleResponsePacketData.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.oracle.v1.OracleResponsePacketData} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.oracle.v1.OracleResponsePacketData.toObject = function(includeInstance, msg) { - var f, obj = { - clientId: jspb.Message.getFieldWithDefault(msg, 1, ""), - requestId: jspb.Message.getFieldWithDefault(msg, 2, 0), - ansCount: jspb.Message.getFieldWithDefault(msg, 3, 0), - requestTime: jspb.Message.getFieldWithDefault(msg, 4, 0), - resolveTime: jspb.Message.getFieldWithDefault(msg, 5, 0), - resolveStatus: jspb.Message.getFieldWithDefault(msg, 6, 0), - result: msg.getResult_asB64() - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.oracle.v1.OracleResponsePacketData.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.oracle.v1.OracleResponsePacketData.toObject( + opt_includeInstance, + this, + ) + } + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.oracle.v1.OracleResponsePacketData} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.oracle.v1.OracleResponsePacketData.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = { + clientId: jspb.Message.getFieldWithDefault(msg, 1, ''), + requestId: jspb.Message.getFieldWithDefault(msg, 2, 0), + ansCount: jspb.Message.getFieldWithDefault(msg, 3, 0), + requestTime: jspb.Message.getFieldWithDefault(msg, 4, 0), + resolveTime: jspb.Message.getFieldWithDefault(msg, 5, 0), + resolveStatus: jspb.Message.getFieldWithDefault(msg, 6, 0), + result: msg.getResult_asB64(), + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.oracle.v1.OracleResponsePacketData} */ -proto.oracle.v1.OracleResponsePacketData.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.oracle.v1.OracleResponsePacketData; - return proto.oracle.v1.OracleResponsePacketData.deserializeBinaryFromReader(msg, reader); -}; - +proto.oracle.v1.OracleResponsePacketData.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.oracle.v1.OracleResponsePacketData() + return proto.oracle.v1.OracleResponsePacketData.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -2907,60 +2684,65 @@ proto.oracle.v1.OracleResponsePacketData.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.oracle.v1.OracleResponsePacketData} */ -proto.oracle.v1.OracleResponsePacketData.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setClientId(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint64()); - msg.setRequestId(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setAnsCount(value); - break; - case 4: - var value = /** @type {number} */ (reader.readInt64()); - msg.setRequestTime(value); - break; - case 5: - var value = /** @type {number} */ (reader.readInt64()); - msg.setResolveTime(value); - break; - case 6: - var value = /** @type {!proto.oracle.v1.ResolveStatus} */ (reader.readEnum()); - msg.setResolveStatus(value); - break; - case 7: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setResult(value); - break; - default: - reader.skipField(); - break; +proto.oracle.v1.OracleResponsePacketData.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break + } + var field = reader.getFieldNumber() + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()) + msg.setClientId(value) + break + case 2: + var value = /** @type {number} */ (reader.readUint64()) + msg.setRequestId(value) + break + case 3: + var value = /** @type {number} */ (reader.readUint64()) + msg.setAnsCount(value) + break + case 4: + var value = /** @type {number} */ (reader.readInt64()) + msg.setRequestTime(value) + break + case 5: + var value = /** @type {number} */ (reader.readInt64()) + msg.setResolveTime(value) + break + case 6: + var value = /** @type {!proto.oracle.v1.ResolveStatus} */ ( + reader.readEnum() + ) + msg.setResolveStatus(value) + break + case 7: + var value = /** @type {!Uint8Array} */ (reader.readBytes()) + msg.setResult(value) + break + default: + reader.skipField() + break + } } + return msg } - return msg; -}; - /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.oracle.v1.OracleResponsePacketData.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.oracle.v1.OracleResponsePacketData.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.oracle.v1.OracleResponsePacketData.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter() + proto.oracle.v1.OracleResponsePacketData.serializeBinaryToWriter( + this, + writer, + ) + return writer.getResultBuffer() + } /** * Serializes the given message to binary data (in protobuf wire @@ -2969,187 +2751,173 @@ proto.oracle.v1.OracleResponsePacketData.prototype.serializeBinary = function() * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.oracle.v1.OracleResponsePacketData.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getClientId(); +proto.oracle.v1.OracleResponsePacketData.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined + f = message.getClientId() if (f.length > 0) { - writer.writeString( - 1, - f - ); + writer.writeString(1, f) } - f = message.getRequestId(); + f = message.getRequestId() if (f !== 0) { - writer.writeUint64( - 2, - f - ); + writer.writeUint64(2, f) } - f = message.getAnsCount(); + f = message.getAnsCount() if (f !== 0) { - writer.writeUint64( - 3, - f - ); + writer.writeUint64(3, f) } - f = message.getRequestTime(); + f = message.getRequestTime() if (f !== 0) { - writer.writeInt64( - 4, - f - ); + writer.writeInt64(4, f) } - f = message.getResolveTime(); + f = message.getResolveTime() if (f !== 0) { - writer.writeInt64( - 5, - f - ); + writer.writeInt64(5, f) } - f = message.getResolveStatus(); + f = message.getResolveStatus() if (f !== 0.0) { - writer.writeEnum( - 6, - f - ); + writer.writeEnum(6, f) } - f = message.getResult_asU8(); + f = message.getResult_asU8() if (f.length > 0) { - writer.writeBytes( - 7, - f - ); + writer.writeBytes(7, f) } -}; - +} /** * optional string client_id = 1; * @return {string} */ -proto.oracle.v1.OracleResponsePacketData.prototype.getClientId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - +proto.oracle.v1.OracleResponsePacketData.prototype.getClientId = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, '')) +} /** * @param {string} value * @return {!proto.oracle.v1.OracleResponsePacketData} returns this */ -proto.oracle.v1.OracleResponsePacketData.prototype.setClientId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - +proto.oracle.v1.OracleResponsePacketData.prototype.setClientId = function ( + value, +) { + return jspb.Message.setProto3StringField(this, 1, value) +} /** * optional uint64 request_id = 2; * @return {number} */ -proto.oracle.v1.OracleResponsePacketData.prototype.getRequestId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - +proto.oracle.v1.OracleResponsePacketData.prototype.getRequestId = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)) +} /** * @param {number} value * @return {!proto.oracle.v1.OracleResponsePacketData} returns this */ -proto.oracle.v1.OracleResponsePacketData.prototype.setRequestId = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - +proto.oracle.v1.OracleResponsePacketData.prototype.setRequestId = function ( + value, +) { + return jspb.Message.setProto3IntField(this, 2, value) +} /** * optional uint64 ans_count = 3; * @return {number} */ -proto.oracle.v1.OracleResponsePacketData.prototype.getAnsCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - +proto.oracle.v1.OracleResponsePacketData.prototype.getAnsCount = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)) +} /** * @param {number} value * @return {!proto.oracle.v1.OracleResponsePacketData} returns this */ -proto.oracle.v1.OracleResponsePacketData.prototype.setAnsCount = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - +proto.oracle.v1.OracleResponsePacketData.prototype.setAnsCount = function ( + value, +) { + return jspb.Message.setProto3IntField(this, 3, value) +} /** * optional int64 request_time = 4; * @return {number} */ -proto.oracle.v1.OracleResponsePacketData.prototype.getRequestTime = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - +proto.oracle.v1.OracleResponsePacketData.prototype.getRequestTime = + function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)) + } /** * @param {number} value * @return {!proto.oracle.v1.OracleResponsePacketData} returns this */ -proto.oracle.v1.OracleResponsePacketData.prototype.setRequestTime = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - +proto.oracle.v1.OracleResponsePacketData.prototype.setRequestTime = function ( + value, +) { + return jspb.Message.setProto3IntField(this, 4, value) +} /** * optional int64 resolve_time = 5; * @return {number} */ -proto.oracle.v1.OracleResponsePacketData.prototype.getResolveTime = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - +proto.oracle.v1.OracleResponsePacketData.prototype.getResolveTime = + function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)) + } /** * @param {number} value * @return {!proto.oracle.v1.OracleResponsePacketData} returns this */ -proto.oracle.v1.OracleResponsePacketData.prototype.setResolveTime = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - +proto.oracle.v1.OracleResponsePacketData.prototype.setResolveTime = function ( + value, +) { + return jspb.Message.setProto3IntField(this, 5, value) +} /** * optional ResolveStatus resolve_status = 6; * @return {!proto.oracle.v1.ResolveStatus} */ -proto.oracle.v1.OracleResponsePacketData.prototype.getResolveStatus = function() { - return /** @type {!proto.oracle.v1.ResolveStatus} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - +proto.oracle.v1.OracleResponsePacketData.prototype.getResolveStatus = + function () { + return /** @type {!proto.oracle.v1.ResolveStatus} */ ( + jspb.Message.getFieldWithDefault(this, 6, 0) + ) + } /** * @param {!proto.oracle.v1.ResolveStatus} value * @return {!proto.oracle.v1.OracleResponsePacketData} returns this */ -proto.oracle.v1.OracleResponsePacketData.prototype.setResolveStatus = function(value) { - return jspb.Message.setProto3EnumField(this, 6, value); -}; - +proto.oracle.v1.OracleResponsePacketData.prototype.setResolveStatus = function ( + value, +) { + return jspb.Message.setProto3EnumField(this, 6, value) +} /** * optional bytes result = 7; * @return {!(string|Uint8Array)} */ -proto.oracle.v1.OracleResponsePacketData.prototype.getResult = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - +proto.oracle.v1.OracleResponsePacketData.prototype.getResult = function () { + return /** @type {!(string|Uint8Array)} */ ( + jspb.Message.getFieldWithDefault(this, 7, '') + ) +} /** * optional bytes result = 7; * This is a type-conversion wrapper around `getResult()` * @return {string} */ -proto.oracle.v1.OracleResponsePacketData.prototype.getResult_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getResult())); -}; - +proto.oracle.v1.OracleResponsePacketData.prototype.getResult_asB64 = + function () { + return /** @type {string} */ (jspb.Message.bytesAsB64(this.getResult())) + } /** * optional bytes result = 7; @@ -3158,85 +2926,80 @@ proto.oracle.v1.OracleResponsePacketData.prototype.getResult_asB64 = function() * This is a type-conversion wrapper around `getResult()` * @return {!Uint8Array} */ -proto.oracle.v1.OracleResponsePacketData.prototype.getResult_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getResult())); -}; - +proto.oracle.v1.OracleResponsePacketData.prototype.getResult_asU8 = + function () { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(this.getResult())) + } /** * @param {!(string|Uint8Array)} value * @return {!proto.oracle.v1.OracleResponsePacketData} returns this */ -proto.oracle.v1.OracleResponsePacketData.prototype.setResult = function(value) { - return jspb.Message.setProto3BytesField(this, 7, value); -}; - - - - +proto.oracle.v1.OracleResponsePacketData.prototype.setResult = function ( + value, +) { + return jspb.Message.setProto3BytesField(this, 7, value) +} if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.oracle.v1.Result.prototype.toObject = function(opt_includeInstance) { - return proto.oracle.v1.Result.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.oracle.v1.Result} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.oracle.v1.Result.toObject = function(includeInstance, msg) { - var f, obj = { - clientId: jspb.Message.getFieldWithDefault(msg, 1, ""), - oracleScriptId: jspb.Message.getFieldWithDefault(msg, 2, 0), - calldata: msg.getCalldata_asB64(), - askCount: jspb.Message.getFieldWithDefault(msg, 4, 0), - minCount: jspb.Message.getFieldWithDefault(msg, 5, 0), - requestId: jspb.Message.getFieldWithDefault(msg, 6, 0), - ansCount: jspb.Message.getFieldWithDefault(msg, 7, 0), - requestTime: jspb.Message.getFieldWithDefault(msg, 8, 0), - resolveTime: jspb.Message.getFieldWithDefault(msg, 9, 0), - resolveStatus: jspb.Message.getFieldWithDefault(msg, 10, 0), - result: msg.getResult_asB64() - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.oracle.v1.Result.prototype.toObject = function (opt_includeInstance) { + return proto.oracle.v1.Result.toObject(opt_includeInstance, this) + } + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.oracle.v1.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.oracle.v1.Result.toObject = function (includeInstance, msg) { + var f, + obj = { + clientId: jspb.Message.getFieldWithDefault(msg, 1, ''), + oracleScriptId: jspb.Message.getFieldWithDefault(msg, 2, 0), + calldata: msg.getCalldata_asB64(), + askCount: jspb.Message.getFieldWithDefault(msg, 4, 0), + minCount: jspb.Message.getFieldWithDefault(msg, 5, 0), + requestId: jspb.Message.getFieldWithDefault(msg, 6, 0), + ansCount: jspb.Message.getFieldWithDefault(msg, 7, 0), + requestTime: jspb.Message.getFieldWithDefault(msg, 8, 0), + resolveTime: jspb.Message.getFieldWithDefault(msg, 9, 0), + resolveStatus: jspb.Message.getFieldWithDefault(msg, 10, 0), + result: msg.getResult_asB64(), + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.oracle.v1.Result} */ -proto.oracle.v1.Result.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.oracle.v1.Result; - return proto.oracle.v1.Result.deserializeBinaryFromReader(msg, reader); -}; - +proto.oracle.v1.Result.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.oracle.v1.Result() + return proto.oracle.v1.Result.deserializeBinaryFromReader(msg, reader) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -3245,76 +3008,76 @@ proto.oracle.v1.Result.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.oracle.v1.Result} */ -proto.oracle.v1.Result.deserializeBinaryFromReader = function(msg, reader) { +proto.oracle.v1.Result.deserializeBinaryFromReader = function (msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { - break; + break } - var field = reader.getFieldNumber(); + var field = reader.getFieldNumber() switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setClientId(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint64()); - msg.setOracleScriptId(value); - break; - case 3: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setCalldata(value); - break; - case 4: - var value = /** @type {number} */ (reader.readUint64()); - msg.setAskCount(value); - break; - case 5: - var value = /** @type {number} */ (reader.readUint64()); - msg.setMinCount(value); - break; - case 6: - var value = /** @type {number} */ (reader.readUint64()); - msg.setRequestId(value); - break; - case 7: - var value = /** @type {number} */ (reader.readUint64()); - msg.setAnsCount(value); - break; - case 8: - var value = /** @type {number} */ (reader.readInt64()); - msg.setRequestTime(value); - break; - case 9: - var value = /** @type {number} */ (reader.readInt64()); - msg.setResolveTime(value); - break; - case 10: - var value = /** @type {!proto.oracle.v1.ResolveStatus} */ (reader.readEnum()); - msg.setResolveStatus(value); - break; - case 11: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setResult(value); - break; - default: - reader.skipField(); - break; + case 1: + var value = /** @type {string} */ (reader.readString()) + msg.setClientId(value) + break + case 2: + var value = /** @type {number} */ (reader.readUint64()) + msg.setOracleScriptId(value) + break + case 3: + var value = /** @type {!Uint8Array} */ (reader.readBytes()) + msg.setCalldata(value) + break + case 4: + var value = /** @type {number} */ (reader.readUint64()) + msg.setAskCount(value) + break + case 5: + var value = /** @type {number} */ (reader.readUint64()) + msg.setMinCount(value) + break + case 6: + var value = /** @type {number} */ (reader.readUint64()) + msg.setRequestId(value) + break + case 7: + var value = /** @type {number} */ (reader.readUint64()) + msg.setAnsCount(value) + break + case 8: + var value = /** @type {number} */ (reader.readInt64()) + msg.setRequestTime(value) + break + case 9: + var value = /** @type {number} */ (reader.readInt64()) + msg.setResolveTime(value) + break + case 10: + var value = /** @type {!proto.oracle.v1.ResolveStatus} */ ( + reader.readEnum() + ) + msg.setResolveStatus(value) + break + case 11: + var value = /** @type {!Uint8Array} */ (reader.readBytes()) + msg.setResult(value) + break + default: + reader.skipField() + break } } - return msg; -}; - + return msg +} /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.oracle.v1.Result.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.oracle.v1.Result.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.oracle.v1.Result.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter() + proto.oracle.v1.Result.serializeBinaryToWriter(this, writer) + return writer.getResultBuffer() +} /** * Serializes the given message to binary data (in protobuf wire @@ -3323,143 +3086,104 @@ proto.oracle.v1.Result.prototype.serializeBinary = function() { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.oracle.v1.Result.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getClientId(); +proto.oracle.v1.Result.serializeBinaryToWriter = function (message, writer) { + var f = undefined + f = message.getClientId() if (f.length > 0) { - writer.writeString( - 1, - f - ); + writer.writeString(1, f) } - f = message.getOracleScriptId(); + f = message.getOracleScriptId() if (f !== 0) { - writer.writeUint64( - 2, - f - ); + writer.writeUint64(2, f) } - f = message.getCalldata_asU8(); + f = message.getCalldata_asU8() if (f.length > 0) { - writer.writeBytes( - 3, - f - ); + writer.writeBytes(3, f) } - f = message.getAskCount(); + f = message.getAskCount() if (f !== 0) { - writer.writeUint64( - 4, - f - ); + writer.writeUint64(4, f) } - f = message.getMinCount(); + f = message.getMinCount() if (f !== 0) { - writer.writeUint64( - 5, - f - ); + writer.writeUint64(5, f) } - f = message.getRequestId(); + f = message.getRequestId() if (f !== 0) { - writer.writeUint64( - 6, - f - ); + writer.writeUint64(6, f) } - f = message.getAnsCount(); + f = message.getAnsCount() if (f !== 0) { - writer.writeUint64( - 7, - f - ); + writer.writeUint64(7, f) } - f = message.getRequestTime(); + f = message.getRequestTime() if (f !== 0) { - writer.writeInt64( - 8, - f - ); + writer.writeInt64(8, f) } - f = message.getResolveTime(); + f = message.getResolveTime() if (f !== 0) { - writer.writeInt64( - 9, - f - ); + writer.writeInt64(9, f) } - f = message.getResolveStatus(); + f = message.getResolveStatus() if (f !== 0.0) { - writer.writeEnum( - 10, - f - ); + writer.writeEnum(10, f) } - f = message.getResult_asU8(); + f = message.getResult_asU8() if (f.length > 0) { - writer.writeBytes( - 11, - f - ); + writer.writeBytes(11, f) } -}; - +} /** * optional string client_id = 1; * @return {string} */ -proto.oracle.v1.Result.prototype.getClientId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - +proto.oracle.v1.Result.prototype.getClientId = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, '')) +} /** * @param {string} value * @return {!proto.oracle.v1.Result} returns this */ -proto.oracle.v1.Result.prototype.setClientId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - +proto.oracle.v1.Result.prototype.setClientId = function (value) { + return jspb.Message.setProto3StringField(this, 1, value) +} /** * optional uint64 oracle_script_id = 2; * @return {number} */ -proto.oracle.v1.Result.prototype.getOracleScriptId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - +proto.oracle.v1.Result.prototype.getOracleScriptId = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)) +} /** * @param {number} value * @return {!proto.oracle.v1.Result} returns this */ -proto.oracle.v1.Result.prototype.setOracleScriptId = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - +proto.oracle.v1.Result.prototype.setOracleScriptId = function (value) { + return jspb.Message.setProto3IntField(this, 2, value) +} /** * optional bytes calldata = 3; * @return {!(string|Uint8Array)} */ -proto.oracle.v1.Result.prototype.getCalldata = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - +proto.oracle.v1.Result.prototype.getCalldata = function () { + return /** @type {!(string|Uint8Array)} */ ( + jspb.Message.getFieldWithDefault(this, 3, '') + ) +} /** * optional bytes calldata = 3; * This is a type-conversion wrapper around `getCalldata()` * @return {string} */ -proto.oracle.v1.Result.prototype.getCalldata_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getCalldata())); -}; - +proto.oracle.v1.Result.prototype.getCalldata_asB64 = function () { + return /** @type {string} */ (jspb.Message.bytesAsB64(this.getCalldata())) +} /** * optional bytes calldata = 3; @@ -3468,166 +3192,150 @@ proto.oracle.v1.Result.prototype.getCalldata_asB64 = function() { * This is a type-conversion wrapper around `getCalldata()` * @return {!Uint8Array} */ -proto.oracle.v1.Result.prototype.getCalldata_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getCalldata())); -}; - +proto.oracle.v1.Result.prototype.getCalldata_asU8 = function () { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(this.getCalldata())) +} /** * @param {!(string|Uint8Array)} value * @return {!proto.oracle.v1.Result} returns this */ -proto.oracle.v1.Result.prototype.setCalldata = function(value) { - return jspb.Message.setProto3BytesField(this, 3, value); -}; - +proto.oracle.v1.Result.prototype.setCalldata = function (value) { + return jspb.Message.setProto3BytesField(this, 3, value) +} /** * optional uint64 ask_count = 4; * @return {number} */ -proto.oracle.v1.Result.prototype.getAskCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - +proto.oracle.v1.Result.prototype.getAskCount = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)) +} /** * @param {number} value * @return {!proto.oracle.v1.Result} returns this */ -proto.oracle.v1.Result.prototype.setAskCount = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - +proto.oracle.v1.Result.prototype.setAskCount = function (value) { + return jspb.Message.setProto3IntField(this, 4, value) +} /** * optional uint64 min_count = 5; * @return {number} */ -proto.oracle.v1.Result.prototype.getMinCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - +proto.oracle.v1.Result.prototype.getMinCount = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)) +} /** * @param {number} value * @return {!proto.oracle.v1.Result} returns this */ -proto.oracle.v1.Result.prototype.setMinCount = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - +proto.oracle.v1.Result.prototype.setMinCount = function (value) { + return jspb.Message.setProto3IntField(this, 5, value) +} /** * optional uint64 request_id = 6; * @return {number} */ -proto.oracle.v1.Result.prototype.getRequestId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - +proto.oracle.v1.Result.prototype.getRequestId = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)) +} /** * @param {number} value * @return {!proto.oracle.v1.Result} returns this */ -proto.oracle.v1.Result.prototype.setRequestId = function(value) { - return jspb.Message.setProto3IntField(this, 6, value); -}; - +proto.oracle.v1.Result.prototype.setRequestId = function (value) { + return jspb.Message.setProto3IntField(this, 6, value) +} /** * optional uint64 ans_count = 7; * @return {number} */ -proto.oracle.v1.Result.prototype.getAnsCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - +proto.oracle.v1.Result.prototype.getAnsCount = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)) +} /** * @param {number} value * @return {!proto.oracle.v1.Result} returns this */ -proto.oracle.v1.Result.prototype.setAnsCount = function(value) { - return jspb.Message.setProto3IntField(this, 7, value); -}; - +proto.oracle.v1.Result.prototype.setAnsCount = function (value) { + return jspb.Message.setProto3IntField(this, 7, value) +} /** * optional int64 request_time = 8; * @return {number} */ -proto.oracle.v1.Result.prototype.getRequestTime = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); -}; - +proto.oracle.v1.Result.prototype.getRequestTime = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)) +} /** * @param {number} value * @return {!proto.oracle.v1.Result} returns this */ -proto.oracle.v1.Result.prototype.setRequestTime = function(value) { - return jspb.Message.setProto3IntField(this, 8, value); -}; - +proto.oracle.v1.Result.prototype.setRequestTime = function (value) { + return jspb.Message.setProto3IntField(this, 8, value) +} /** * optional int64 resolve_time = 9; * @return {number} */ -proto.oracle.v1.Result.prototype.getResolveTime = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); -}; - +proto.oracle.v1.Result.prototype.getResolveTime = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)) +} /** * @param {number} value * @return {!proto.oracle.v1.Result} returns this */ -proto.oracle.v1.Result.prototype.setResolveTime = function(value) { - return jspb.Message.setProto3IntField(this, 9, value); -}; - +proto.oracle.v1.Result.prototype.setResolveTime = function (value) { + return jspb.Message.setProto3IntField(this, 9, value) +} /** * optional ResolveStatus resolve_status = 10; * @return {!proto.oracle.v1.ResolveStatus} */ -proto.oracle.v1.Result.prototype.getResolveStatus = function() { - return /** @type {!proto.oracle.v1.ResolveStatus} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); -}; - +proto.oracle.v1.Result.prototype.getResolveStatus = function () { + return /** @type {!proto.oracle.v1.ResolveStatus} */ ( + jspb.Message.getFieldWithDefault(this, 10, 0) + ) +} /** * @param {!proto.oracle.v1.ResolveStatus} value * @return {!proto.oracle.v1.Result} returns this */ -proto.oracle.v1.Result.prototype.setResolveStatus = function(value) { - return jspb.Message.setProto3EnumField(this, 10, value); -}; - +proto.oracle.v1.Result.prototype.setResolveStatus = function (value) { + return jspb.Message.setProto3EnumField(this, 10, value) +} /** * optional bytes result = 11; * @return {!(string|Uint8Array)} */ -proto.oracle.v1.Result.prototype.getResult = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 11, "")); -}; - +proto.oracle.v1.Result.prototype.getResult = function () { + return /** @type {!(string|Uint8Array)} */ ( + jspb.Message.getFieldWithDefault(this, 11, '') + ) +} /** * optional bytes result = 11; * This is a type-conversion wrapper around `getResult()` * @return {string} */ -proto.oracle.v1.Result.prototype.getResult_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getResult())); -}; - +proto.oracle.v1.Result.prototype.getResult_asB64 = function () { + return /** @type {string} */ (jspb.Message.bytesAsB64(this.getResult())) +} /** * optional bytes result = 11; @@ -3636,266 +3344,75 @@ proto.oracle.v1.Result.prototype.getResult_asB64 = function() { * This is a type-conversion wrapper around `getResult()` * @return {!Uint8Array} */ -proto.oracle.v1.Result.prototype.getResult_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getResult())); -}; - +proto.oracle.v1.Result.prototype.getResult_asU8 = function () { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(this.getResult())) +} /** * @param {!(string|Uint8Array)} value * @return {!proto.oracle.v1.Result} returns this */ -proto.oracle.v1.Result.prototype.setResult = function(value) { - return jspb.Message.setProto3BytesField(this, 11, value); -}; - - - - +proto.oracle.v1.Result.prototype.setResult = function (value) { + return jspb.Message.setProto3BytesField(this, 11, value) +} if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.oracle.v1.SigningResult.prototype.toObject = function(opt_includeInstance) { - return proto.oracle.v1.SigningResult.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.oracle.v1.SigningResult} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.oracle.v1.SigningResult.toObject = function(includeInstance, msg) { - var f, obj = { - signingId: jspb.Message.getFieldWithDefault(msg, 1, 0), - errorCodespace: jspb.Message.getFieldWithDefault(msg, 2, ""), - errorCode: jspb.Message.getFieldWithDefault(msg, 3, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.oracle.v1.ValidatorStatus.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.oracle.v1.ValidatorStatus.toObject(opt_includeInstance, this) } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.oracle.v1.SigningResult} - */ -proto.oracle.v1.SigningResult.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.oracle.v1.SigningResult; - return proto.oracle.v1.SigningResult.deserializeBinaryFromReader(msg, reader); -}; + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.oracle.v1.ValidatorStatus} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.oracle.v1.ValidatorStatus.toObject = function (includeInstance, msg) { + var f, + obj = { + isActive: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), + since: + (f = msg.getSince()) && + google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + } -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.oracle.v1.SigningResult} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.oracle.v1.SigningResult} - */ -proto.oracle.v1.SigningResult.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint64()); - msg.setSigningId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setErrorCodespace(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setErrorCode(value); - break; - default: - reader.skipField(); - break; + if (includeInstance) { + obj.$jspbMessageInstance = msg } + return obj } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.oracle.v1.SigningResult.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.oracle.v1.SigningResult.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.oracle.v1.SigningResult} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.oracle.v1.SigningResult.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSigningId(); - if (f !== 0) { - writer.writeUint64( - 1, - f - ); - } - f = message.getErrorCodespace(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getErrorCode(); - if (f !== 0) { - writer.writeUint64( - 3, - f - ); - } -}; - - -/** - * optional uint64 signing_id = 1; - * @return {number} - */ -proto.oracle.v1.SigningResult.prototype.getSigningId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.oracle.v1.SigningResult} returns this - */ -proto.oracle.v1.SigningResult.prototype.setSigningId = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional string error_codespace = 2; - * @return {string} - */ -proto.oracle.v1.SigningResult.prototype.getErrorCodespace = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.oracle.v1.SigningResult} returns this - */ -proto.oracle.v1.SigningResult.prototype.setErrorCodespace = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional uint64 error_code = 3; - * @return {number} - */ -proto.oracle.v1.SigningResult.prototype.getErrorCode = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.oracle.v1.SigningResult} returns this - */ -proto.oracle.v1.SigningResult.prototype.setErrorCode = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.oracle.v1.ValidatorStatus.prototype.toObject = function(opt_includeInstance) { - return proto.oracle.v1.ValidatorStatus.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.oracle.v1.ValidatorStatus} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.oracle.v1.ValidatorStatus.toObject = function(includeInstance, msg) { - var f, obj = { - isActive: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), - since: (f = msg.getSince()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.oracle.v1.ValidatorStatus} */ -proto.oracle.v1.ValidatorStatus.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.oracle.v1.ValidatorStatus; - return proto.oracle.v1.ValidatorStatus.deserializeBinaryFromReader(msg, reader); -}; - +proto.oracle.v1.ValidatorStatus.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.oracle.v1.ValidatorStatus() + return proto.oracle.v1.ValidatorStatus.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -3904,41 +3421,45 @@ proto.oracle.v1.ValidatorStatus.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.oracle.v1.ValidatorStatus} */ -proto.oracle.v1.ValidatorStatus.deserializeBinaryFromReader = function(msg, reader) { +proto.oracle.v1.ValidatorStatus.deserializeBinaryFromReader = function ( + msg, + reader, +) { while (reader.nextField()) { if (reader.isEndGroup()) { - break; + break } - var field = reader.getFieldNumber(); + var field = reader.getFieldNumber() switch (field) { - case 1: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsActive(value); - break; - case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setSince(value); - break; - default: - reader.skipField(); - break; + case 1: + var value = /** @type {boolean} */ (reader.readBool()) + msg.setIsActive(value) + break + case 2: + var value = new google_protobuf_timestamp_pb.Timestamp() + reader.readMessage( + value, + google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader, + ) + msg.setSince(value) + break + default: + reader.skipField() + break } } - return msg; -}; - + return msg +} /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.oracle.v1.ValidatorStatus.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.oracle.v1.ValidatorStatus.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.oracle.v1.ValidatorStatus.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter() + proto.oracle.v1.ValidatorStatus.serializeBinaryToWriter(this, writer) + return writer.getResultBuffer() +} /** * Serializes the given message to binary data (in protobuf wire @@ -3947,136 +3468,136 @@ proto.oracle.v1.ValidatorStatus.prototype.serializeBinary = function() { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.oracle.v1.ValidatorStatus.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIsActive(); +proto.oracle.v1.ValidatorStatus.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined + f = message.getIsActive() if (f) { - writer.writeBool( - 1, - f - ); + writer.writeBool(1, f) } - f = message.getSince(); + f = message.getSince() if (f != null) { writer.writeMessage( 2, f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter, + ) } -}; - +} /** * optional bool is_active = 1; * @return {boolean} */ -proto.oracle.v1.ValidatorStatus.prototype.getIsActive = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); -}; - +proto.oracle.v1.ValidatorStatus.prototype.getIsActive = function () { + return /** @type {boolean} */ ( + jspb.Message.getBooleanFieldWithDefault(this, 1, false) + ) +} /** * @param {boolean} value * @return {!proto.oracle.v1.ValidatorStatus} returns this */ -proto.oracle.v1.ValidatorStatus.prototype.setIsActive = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); -}; - +proto.oracle.v1.ValidatorStatus.prototype.setIsActive = function (value) { + return jspb.Message.setProto3BooleanField(this, 1, value) +} /** * optional google.protobuf.Timestamp since = 2; * @return {?proto.google.protobuf.Timestamp} */ -proto.oracle.v1.ValidatorStatus.prototype.getSince = function() { +proto.oracle.v1.ValidatorStatus.prototype.getSince = function () { return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); -}; - + jspb.Message.getWrapperField( + this, + google_protobuf_timestamp_pb.Timestamp, + 2, + ) + ) +} /** * @param {?proto.google.protobuf.Timestamp|undefined} value * @return {!proto.oracle.v1.ValidatorStatus} returns this -*/ -proto.oracle.v1.ValidatorStatus.prototype.setSince = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - + */ +proto.oracle.v1.ValidatorStatus.prototype.setSince = function (value) { + return jspb.Message.setWrapperField(this, 2, value) +} /** * Clears the message field making it undefined. * @return {!proto.oracle.v1.ValidatorStatus} returns this */ -proto.oracle.v1.ValidatorStatus.prototype.clearSince = function() { - return this.setSince(undefined); -}; - +proto.oracle.v1.ValidatorStatus.prototype.clearSince = function () { + return this.setSince(undefined) +} /** * Returns whether this field is set. * @return {boolean} */ -proto.oracle.v1.ValidatorStatus.prototype.hasSince = function() { - return jspb.Message.getField(this, 2) != null; -}; - - - - +proto.oracle.v1.ValidatorStatus.prototype.hasSince = function () { + return jspb.Message.getField(this, 2) != null +} if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.oracle.v1.ActiveValidator.prototype.toObject = function(opt_includeInstance) { - return proto.oracle.v1.ActiveValidator.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.oracle.v1.ActiveValidator} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.oracle.v1.ActiveValidator.toObject = function(includeInstance, msg) { - var f, obj = { - address: jspb.Message.getFieldWithDefault(msg, 1, ""), - power: jspb.Message.getFieldWithDefault(msg, 2, 0) - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.oracle.v1.ActiveValidator.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.oracle.v1.ActiveValidator.toObject(opt_includeInstance, this) + } + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.oracle.v1.ActiveValidator} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.oracle.v1.ActiveValidator.toObject = function (includeInstance, msg) { + var f, + obj = { + address: jspb.Message.getFieldWithDefault(msg, 1, ''), + power: jspb.Message.getFieldWithDefault(msg, 2, 0), + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.oracle.v1.ActiveValidator} */ -proto.oracle.v1.ActiveValidator.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.oracle.v1.ActiveValidator; - return proto.oracle.v1.ActiveValidator.deserializeBinaryFromReader(msg, reader); -}; - +proto.oracle.v1.ActiveValidator.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.oracle.v1.ActiveValidator() + return proto.oracle.v1.ActiveValidator.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -4085,40 +3606,41 @@ proto.oracle.v1.ActiveValidator.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.oracle.v1.ActiveValidator} */ -proto.oracle.v1.ActiveValidator.deserializeBinaryFromReader = function(msg, reader) { +proto.oracle.v1.ActiveValidator.deserializeBinaryFromReader = function ( + msg, + reader, +) { while (reader.nextField()) { if (reader.isEndGroup()) { - break; + break } - var field = reader.getFieldNumber(); + var field = reader.getFieldNumber() switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setAddress(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint64()); - msg.setPower(value); - break; - default: - reader.skipField(); - break; + case 1: + var value = /** @type {string} */ (reader.readString()) + msg.setAddress(value) + break + case 2: + var value = /** @type {number} */ (reader.readUint64()) + msg.setPower(value) + break + default: + reader.skipField() + break } } - return msg; -}; - + return msg +} /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.oracle.v1.ActiveValidator.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.oracle.v1.ActiveValidator.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.oracle.v1.ActiveValidator.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter() + proto.oracle.v1.ActiveValidator.serializeBinaryToWriter(this, writer) + return writer.getResultBuffer() +} /** * Serializes the given message to binary data (in protobuf wire @@ -4127,125 +3649,116 @@ proto.oracle.v1.ActiveValidator.prototype.serializeBinary = function() { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.oracle.v1.ActiveValidator.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getAddress(); +proto.oracle.v1.ActiveValidator.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined + f = message.getAddress() if (f.length > 0) { - writer.writeString( - 1, - f - ); + writer.writeString(1, f) } - f = message.getPower(); + f = message.getPower() if (f !== 0) { - writer.writeUint64( - 2, - f - ); + writer.writeUint64(2, f) } -}; - +} /** * optional string address = 1; * @return {string} */ -proto.oracle.v1.ActiveValidator.prototype.getAddress = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - +proto.oracle.v1.ActiveValidator.prototype.getAddress = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, '')) +} /** * @param {string} value * @return {!proto.oracle.v1.ActiveValidator} returns this */ -proto.oracle.v1.ActiveValidator.prototype.setAddress = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - +proto.oracle.v1.ActiveValidator.prototype.setAddress = function (value) { + return jspb.Message.setProto3StringField(this, 1, value) +} /** * optional uint64 power = 2; * @return {number} */ -proto.oracle.v1.ActiveValidator.prototype.getPower = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - +proto.oracle.v1.ActiveValidator.prototype.getPower = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)) +} /** * @param {number} value * @return {!proto.oracle.v1.ActiveValidator} returns this */ -proto.oracle.v1.ActiveValidator.prototype.setPower = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - - - +proto.oracle.v1.ActiveValidator.prototype.setPower = function (value) { + return jspb.Message.setProto3IntField(this, 2, value) +} if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.oracle.v1.Params.prototype.toObject = function(opt_includeInstance) { - return proto.oracle.v1.Params.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.oracle.v1.Params} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.oracle.v1.Params.toObject = function(includeInstance, msg) { - var f, obj = { - maxRawRequestCount: jspb.Message.getFieldWithDefault(msg, 1, 0), - maxAskCount: jspb.Message.getFieldWithDefault(msg, 2, 0), - maxCalldataSize: jspb.Message.getFieldWithDefault(msg, 3, 0), - maxReportDataSize: jspb.Message.getFieldWithDefault(msg, 4, 0), - expirationBlockCount: jspb.Message.getFieldWithDefault(msg, 5, 0), - baseOwasmGas: jspb.Message.getFieldWithDefault(msg, 6, 0), - perValidatorRequestGas: jspb.Message.getFieldWithDefault(msg, 7, 0), - samplingTryCount: jspb.Message.getFieldWithDefault(msg, 8, 0), - oracleRewardPercentage: jspb.Message.getFieldWithDefault(msg, 9, 0), - inactivePenaltyDuration: jspb.Message.getFieldWithDefault(msg, 10, 0), - ibcRequestEnabled: jspb.Message.getBooleanFieldWithDefault(msg, 11, false) - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.oracle.v1.Params.prototype.toObject = function (opt_includeInstance) { + return proto.oracle.v1.Params.toObject(opt_includeInstance, this) + } + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.oracle.v1.Params} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.oracle.v1.Params.toObject = function (includeInstance, msg) { + var f, + obj = { + maxRawRequestCount: jspb.Message.getFieldWithDefault(msg, 1, 0), + maxAskCount: jspb.Message.getFieldWithDefault(msg, 2, 0), + maxCalldataSize: jspb.Message.getFieldWithDefault(msg, 3, 0), + maxReportDataSize: jspb.Message.getFieldWithDefault(msg, 4, 0), + expirationBlockCount: jspb.Message.getFieldWithDefault(msg, 5, 0), + baseOwasmGas: jspb.Message.getFieldWithDefault(msg, 6, 0), + perValidatorRequestGas: jspb.Message.getFieldWithDefault(msg, 7, 0), + samplingTryCount: jspb.Message.getFieldWithDefault(msg, 8, 0), + oracleRewardPercentage: jspb.Message.getFieldWithDefault(msg, 9, 0), + inactivePenaltyDuration: jspb.Message.getFieldWithDefault(msg, 10, 0), + ibcRequestEnabled: jspb.Message.getBooleanFieldWithDefault( + msg, + 11, + false, + ), + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.oracle.v1.Params} */ -proto.oracle.v1.Params.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.oracle.v1.Params; - return proto.oracle.v1.Params.deserializeBinaryFromReader(msg, reader); -}; - +proto.oracle.v1.Params.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.oracle.v1.Params() + return proto.oracle.v1.Params.deserializeBinaryFromReader(msg, reader) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -4254,76 +3767,74 @@ proto.oracle.v1.Params.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.oracle.v1.Params} */ -proto.oracle.v1.Params.deserializeBinaryFromReader = function(msg, reader) { +proto.oracle.v1.Params.deserializeBinaryFromReader = function (msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { - break; + break } - var field = reader.getFieldNumber(); + var field = reader.getFieldNumber() switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint64()); - msg.setMaxRawRequestCount(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint64()); - msg.setMaxAskCount(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setMaxCalldataSize(value); - break; - case 4: - var value = /** @type {number} */ (reader.readUint64()); - msg.setMaxReportDataSize(value); - break; - case 5: - var value = /** @type {number} */ (reader.readUint64()); - msg.setExpirationBlockCount(value); - break; - case 6: - var value = /** @type {number} */ (reader.readUint64()); - msg.setBaseOwasmGas(value); - break; - case 7: - var value = /** @type {number} */ (reader.readUint64()); - msg.setPerValidatorRequestGas(value); - break; - case 8: - var value = /** @type {number} */ (reader.readUint64()); - msg.setSamplingTryCount(value); - break; - case 9: - var value = /** @type {number} */ (reader.readUint64()); - msg.setOracleRewardPercentage(value); - break; - case 10: - var value = /** @type {number} */ (reader.readUint64()); - msg.setInactivePenaltyDuration(value); - break; - case 11: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIbcRequestEnabled(value); - break; - default: - reader.skipField(); - break; + case 1: + var value = /** @type {number} */ (reader.readUint64()) + msg.setMaxRawRequestCount(value) + break + case 2: + var value = /** @type {number} */ (reader.readUint64()) + msg.setMaxAskCount(value) + break + case 3: + var value = /** @type {number} */ (reader.readUint64()) + msg.setMaxCalldataSize(value) + break + case 4: + var value = /** @type {number} */ (reader.readUint64()) + msg.setMaxReportDataSize(value) + break + case 5: + var value = /** @type {number} */ (reader.readUint64()) + msg.setExpirationBlockCount(value) + break + case 6: + var value = /** @type {number} */ (reader.readUint64()) + msg.setBaseOwasmGas(value) + break + case 7: + var value = /** @type {number} */ (reader.readUint64()) + msg.setPerValidatorRequestGas(value) + break + case 8: + var value = /** @type {number} */ (reader.readUint64()) + msg.setSamplingTryCount(value) + break + case 9: + var value = /** @type {number} */ (reader.readUint64()) + msg.setOracleRewardPercentage(value) + break + case 10: + var value = /** @type {number} */ (reader.readUint64()) + msg.setInactivePenaltyDuration(value) + break + case 11: + var value = /** @type {boolean} */ (reader.readBool()) + msg.setIbcRequestEnabled(value) + break + default: + reader.skipField() + break } } - return msg; -}; - + return msg +} /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.oracle.v1.Params.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.oracle.v1.Params.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.oracle.v1.Params.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter() + proto.oracle.v1.Params.serializeBinaryToWriter(this, writer) + return writer.getResultBuffer() +} /** * Serializes the given message to binary data (in protobuf wire @@ -4332,347 +3843,300 @@ proto.oracle.v1.Params.prototype.serializeBinary = function() { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.oracle.v1.Params.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMaxRawRequestCount(); +proto.oracle.v1.Params.serializeBinaryToWriter = function (message, writer) { + var f = undefined + f = message.getMaxRawRequestCount() if (f !== 0) { - writer.writeUint64( - 1, - f - ); + writer.writeUint64(1, f) } - f = message.getMaxAskCount(); + f = message.getMaxAskCount() if (f !== 0) { - writer.writeUint64( - 2, - f - ); + writer.writeUint64(2, f) } - f = message.getMaxCalldataSize(); + f = message.getMaxCalldataSize() if (f !== 0) { - writer.writeUint64( - 3, - f - ); + writer.writeUint64(3, f) } - f = message.getMaxReportDataSize(); + f = message.getMaxReportDataSize() if (f !== 0) { - writer.writeUint64( - 4, - f - ); + writer.writeUint64(4, f) } - f = message.getExpirationBlockCount(); + f = message.getExpirationBlockCount() if (f !== 0) { - writer.writeUint64( - 5, - f - ); + writer.writeUint64(5, f) } - f = message.getBaseOwasmGas(); + f = message.getBaseOwasmGas() if (f !== 0) { - writer.writeUint64( - 6, - f - ); + writer.writeUint64(6, f) } - f = message.getPerValidatorRequestGas(); + f = message.getPerValidatorRequestGas() if (f !== 0) { - writer.writeUint64( - 7, - f - ); + writer.writeUint64(7, f) } - f = message.getSamplingTryCount(); + f = message.getSamplingTryCount() if (f !== 0) { - writer.writeUint64( - 8, - f - ); + writer.writeUint64(8, f) } - f = message.getOracleRewardPercentage(); + f = message.getOracleRewardPercentage() if (f !== 0) { - writer.writeUint64( - 9, - f - ); + writer.writeUint64(9, f) } - f = message.getInactivePenaltyDuration(); + f = message.getInactivePenaltyDuration() if (f !== 0) { - writer.writeUint64( - 10, - f - ); + writer.writeUint64(10, f) } - f = message.getIbcRequestEnabled(); + f = message.getIbcRequestEnabled() if (f) { - writer.writeBool( - 11, - f - ); + writer.writeBool(11, f) } -}; - +} /** * optional uint64 max_raw_request_count = 1; * @return {number} */ -proto.oracle.v1.Params.prototype.getMaxRawRequestCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - +proto.oracle.v1.Params.prototype.getMaxRawRequestCount = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)) +} /** * @param {number} value * @return {!proto.oracle.v1.Params} returns this */ -proto.oracle.v1.Params.prototype.setMaxRawRequestCount = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - +proto.oracle.v1.Params.prototype.setMaxRawRequestCount = function (value) { + return jspb.Message.setProto3IntField(this, 1, value) +} /** * optional uint64 max_ask_count = 2; * @return {number} */ -proto.oracle.v1.Params.prototype.getMaxAskCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - +proto.oracle.v1.Params.prototype.getMaxAskCount = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)) +} /** * @param {number} value * @return {!proto.oracle.v1.Params} returns this */ -proto.oracle.v1.Params.prototype.setMaxAskCount = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - +proto.oracle.v1.Params.prototype.setMaxAskCount = function (value) { + return jspb.Message.setProto3IntField(this, 2, value) +} /** * optional uint64 max_calldata_size = 3; * @return {number} */ -proto.oracle.v1.Params.prototype.getMaxCalldataSize = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - +proto.oracle.v1.Params.prototype.getMaxCalldataSize = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)) +} /** * @param {number} value * @return {!proto.oracle.v1.Params} returns this */ -proto.oracle.v1.Params.prototype.setMaxCalldataSize = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - +proto.oracle.v1.Params.prototype.setMaxCalldataSize = function (value) { + return jspb.Message.setProto3IntField(this, 3, value) +} /** * optional uint64 max_report_data_size = 4; * @return {number} */ -proto.oracle.v1.Params.prototype.getMaxReportDataSize = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - +proto.oracle.v1.Params.prototype.getMaxReportDataSize = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)) +} /** * @param {number} value * @return {!proto.oracle.v1.Params} returns this */ -proto.oracle.v1.Params.prototype.setMaxReportDataSize = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - +proto.oracle.v1.Params.prototype.setMaxReportDataSize = function (value) { + return jspb.Message.setProto3IntField(this, 4, value) +} /** * optional uint64 expiration_block_count = 5; * @return {number} */ -proto.oracle.v1.Params.prototype.getExpirationBlockCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - +proto.oracle.v1.Params.prototype.getExpirationBlockCount = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)) +} /** * @param {number} value * @return {!proto.oracle.v1.Params} returns this */ -proto.oracle.v1.Params.prototype.setExpirationBlockCount = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - +proto.oracle.v1.Params.prototype.setExpirationBlockCount = function (value) { + return jspb.Message.setProto3IntField(this, 5, value) +} /** * optional uint64 base_owasm_gas = 6; * @return {number} */ -proto.oracle.v1.Params.prototype.getBaseOwasmGas = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - +proto.oracle.v1.Params.prototype.getBaseOwasmGas = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)) +} /** * @param {number} value * @return {!proto.oracle.v1.Params} returns this */ -proto.oracle.v1.Params.prototype.setBaseOwasmGas = function(value) { - return jspb.Message.setProto3IntField(this, 6, value); -}; - +proto.oracle.v1.Params.prototype.setBaseOwasmGas = function (value) { + return jspb.Message.setProto3IntField(this, 6, value) +} /** * optional uint64 per_validator_request_gas = 7; * @return {number} */ -proto.oracle.v1.Params.prototype.getPerValidatorRequestGas = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - +proto.oracle.v1.Params.prototype.getPerValidatorRequestGas = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)) +} /** * @param {number} value * @return {!proto.oracle.v1.Params} returns this */ -proto.oracle.v1.Params.prototype.setPerValidatorRequestGas = function(value) { - return jspb.Message.setProto3IntField(this, 7, value); -}; - +proto.oracle.v1.Params.prototype.setPerValidatorRequestGas = function (value) { + return jspb.Message.setProto3IntField(this, 7, value) +} /** * optional uint64 sampling_try_count = 8; * @return {number} */ -proto.oracle.v1.Params.prototype.getSamplingTryCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); -}; - +proto.oracle.v1.Params.prototype.getSamplingTryCount = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)) +} /** * @param {number} value * @return {!proto.oracle.v1.Params} returns this */ -proto.oracle.v1.Params.prototype.setSamplingTryCount = function(value) { - return jspb.Message.setProto3IntField(this, 8, value); -}; - +proto.oracle.v1.Params.prototype.setSamplingTryCount = function (value) { + return jspb.Message.setProto3IntField(this, 8, value) +} /** * optional uint64 oracle_reward_percentage = 9; * @return {number} */ -proto.oracle.v1.Params.prototype.getOracleRewardPercentage = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); -}; - +proto.oracle.v1.Params.prototype.getOracleRewardPercentage = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)) +} /** * @param {number} value * @return {!proto.oracle.v1.Params} returns this */ -proto.oracle.v1.Params.prototype.setOracleRewardPercentage = function(value) { - return jspb.Message.setProto3IntField(this, 9, value); -}; - +proto.oracle.v1.Params.prototype.setOracleRewardPercentage = function (value) { + return jspb.Message.setProto3IntField(this, 9, value) +} /** * optional uint64 inactive_penalty_duration = 10; * @return {number} */ -proto.oracle.v1.Params.prototype.getInactivePenaltyDuration = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); -}; - +proto.oracle.v1.Params.prototype.getInactivePenaltyDuration = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)) +} /** * @param {number} value * @return {!proto.oracle.v1.Params} returns this */ -proto.oracle.v1.Params.prototype.setInactivePenaltyDuration = function(value) { - return jspb.Message.setProto3IntField(this, 10, value); -}; - +proto.oracle.v1.Params.prototype.setInactivePenaltyDuration = function (value) { + return jspb.Message.setProto3IntField(this, 10, value) +} /** * optional bool ibc_request_enabled = 11; * @return {boolean} */ -proto.oracle.v1.Params.prototype.getIbcRequestEnabled = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 11, false)); -}; - +proto.oracle.v1.Params.prototype.getIbcRequestEnabled = function () { + return /** @type {boolean} */ ( + jspb.Message.getBooleanFieldWithDefault(this, 11, false) + ) +} /** * @param {boolean} value * @return {!proto.oracle.v1.Params} returns this */ -proto.oracle.v1.Params.prototype.setIbcRequestEnabled = function(value) { - return jspb.Message.setProto3BooleanField(this, 11, value); -}; - - +proto.oracle.v1.Params.prototype.setIbcRequestEnabled = function (value) { + return jspb.Message.setProto3BooleanField(this, 11, value) +} /** * List of repeated fields within this message type. * @private {!Array} * @const */ -proto.oracle.v1.PendingResolveList.repeatedFields_ = [1]; - - +proto.oracle.v1.PendingResolveList.repeatedFields_ = [1] if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.oracle.v1.PendingResolveList.prototype.toObject = function(opt_includeInstance) { - return proto.oracle.v1.PendingResolveList.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.oracle.v1.PendingResolveList} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.oracle.v1.PendingResolveList.toObject = function(includeInstance, msg) { - var f, obj = { - requestIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.oracle.v1.PendingResolveList.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.oracle.v1.PendingResolveList.toObject( + opt_includeInstance, + this, + ) + } + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.oracle.v1.PendingResolveList} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.oracle.v1.PendingResolveList.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = { + requestIdsList: + (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f, + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.oracle.v1.PendingResolveList} */ -proto.oracle.v1.PendingResolveList.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.oracle.v1.PendingResolveList; - return proto.oracle.v1.PendingResolveList.deserializeBinaryFromReader(msg, reader); -}; - +proto.oracle.v1.PendingResolveList.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.oracle.v1.PendingResolveList() + return proto.oracle.v1.PendingResolveList.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -4681,38 +4145,43 @@ proto.oracle.v1.PendingResolveList.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.oracle.v1.PendingResolveList} */ -proto.oracle.v1.PendingResolveList.deserializeBinaryFromReader = function(msg, reader) { +proto.oracle.v1.PendingResolveList.deserializeBinaryFromReader = function ( + msg, + reader, +) { while (reader.nextField()) { if (reader.isEndGroup()) { - break; + break } - var field = reader.getFieldNumber(); + var field = reader.getFieldNumber() switch (field) { - case 1: - var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedUint64() : [reader.readUint64()]); - for (var i = 0; i < values.length; i++) { - msg.addRequestIds(values[i]); - } - break; - default: - reader.skipField(); - break; + case 1: + var values = /** @type {!Array} */ ( + reader.isDelimited() + ? reader.readPackedUint64() + : [reader.readUint64()] + ) + for (var i = 0; i < values.length; i++) { + msg.addRequestIds(values[i]) + } + break + default: + reader.skipField() + break } } - return msg; -}; - + return msg +} /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.oracle.v1.PendingResolveList.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.oracle.v1.PendingResolveList.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.oracle.v1.PendingResolveList.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter() + proto.oracle.v1.PendingResolveList.serializeBinaryToWriter(this, writer) + return writer.getResultBuffer() +} /** * Serializes the given message to binary data (in protobuf wire @@ -4721,110 +4190,107 @@ proto.oracle.v1.PendingResolveList.prototype.serializeBinary = function() { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.oracle.v1.PendingResolveList.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRequestIdsList(); +proto.oracle.v1.PendingResolveList.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined + f = message.getRequestIdsList() if (f.length > 0) { - writer.writePackedUint64( - 1, - f - ); + writer.writePackedUint64(1, f) } -}; - +} /** * repeated uint64 request_ids = 1; * @return {!Array} */ -proto.oracle.v1.PendingResolveList.prototype.getRequestIdsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); -}; - +proto.oracle.v1.PendingResolveList.prototype.getRequestIdsList = function () { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)) +} /** * @param {!Array} value * @return {!proto.oracle.v1.PendingResolveList} returns this */ -proto.oracle.v1.PendingResolveList.prototype.setRequestIdsList = function(value) { - return jspb.Message.setField(this, 1, value || []); -}; - +proto.oracle.v1.PendingResolveList.prototype.setRequestIdsList = function ( + value, +) { + return jspb.Message.setField(this, 1, value || []) +} /** * @param {number} value * @param {number=} opt_index * @return {!proto.oracle.v1.PendingResolveList} returns this */ -proto.oracle.v1.PendingResolveList.prototype.addRequestIds = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 1, value, opt_index); -}; - +proto.oracle.v1.PendingResolveList.prototype.addRequestIds = function ( + value, + opt_index, +) { + return jspb.Message.addToRepeatedField(this, 1, value, opt_index) +} /** * Clears the list making it empty but non-null. * @return {!proto.oracle.v1.PendingResolveList} returns this */ -proto.oracle.v1.PendingResolveList.prototype.clearRequestIdsList = function() { - return this.setRequestIdsList([]); -}; - - - - +proto.oracle.v1.PendingResolveList.prototype.clearRequestIdsList = function () { + return this.setRequestIdsList([]) +} if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.oracle.v1.IBCChannel.prototype.toObject = function(opt_includeInstance) { - return proto.oracle.v1.IBCChannel.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.oracle.v1.IBCChannel} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.oracle.v1.IBCChannel.toObject = function(includeInstance, msg) { - var f, obj = { - portId: jspb.Message.getFieldWithDefault(msg, 1, ""), - channelId: jspb.Message.getFieldWithDefault(msg, 2, "") - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.oracle.v1.IBCChannel.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.oracle.v1.IBCChannel.toObject(opt_includeInstance, this) + } + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.oracle.v1.IBCChannel} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.oracle.v1.IBCChannel.toObject = function (includeInstance, msg) { + var f, + obj = { + portId: jspb.Message.getFieldWithDefault(msg, 1, ''), + channelId: jspb.Message.getFieldWithDefault(msg, 2, ''), + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.oracle.v1.IBCChannel} */ -proto.oracle.v1.IBCChannel.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.oracle.v1.IBCChannel; - return proto.oracle.v1.IBCChannel.deserializeBinaryFromReader(msg, reader); -}; - +proto.oracle.v1.IBCChannel.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.oracle.v1.IBCChannel() + return proto.oracle.v1.IBCChannel.deserializeBinaryFromReader(msg, reader) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -4833,40 +4299,41 @@ proto.oracle.v1.IBCChannel.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.oracle.v1.IBCChannel} */ -proto.oracle.v1.IBCChannel.deserializeBinaryFromReader = function(msg, reader) { +proto.oracle.v1.IBCChannel.deserializeBinaryFromReader = function ( + msg, + reader, +) { while (reader.nextField()) { if (reader.isEndGroup()) { - break; + break } - var field = reader.getFieldNumber(); + var field = reader.getFieldNumber() switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setPortId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setChannelId(value); - break; - default: - reader.skipField(); - break; + case 1: + var value = /** @type {string} */ (reader.readString()) + msg.setPortId(value) + break + case 2: + var value = /** @type {string} */ (reader.readString()) + msg.setChannelId(value) + break + default: + reader.skipField() + break } } - return msg; -}; - + return msg +} /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.oracle.v1.IBCChannel.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.oracle.v1.IBCChannel.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.oracle.v1.IBCChannel.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter() + proto.oracle.v1.IBCChannel.serializeBinaryToWriter(this, writer) + return writer.getResultBuffer() +} /** * Serializes the given message to binary data (in protobuf wire @@ -4875,119 +4342,117 @@ proto.oracle.v1.IBCChannel.prototype.serializeBinary = function() { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.oracle.v1.IBCChannel.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPortId(); +proto.oracle.v1.IBCChannel.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined + f = message.getPortId() if (f.length > 0) { - writer.writeString( - 1, - f - ); + writer.writeString(1, f) } - f = message.getChannelId(); + f = message.getChannelId() if (f.length > 0) { - writer.writeString( - 2, - f - ); + writer.writeString(2, f) } -}; - +} /** * optional string port_id = 1; * @return {string} */ -proto.oracle.v1.IBCChannel.prototype.getPortId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - +proto.oracle.v1.IBCChannel.prototype.getPortId = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, '')) +} /** * @param {string} value * @return {!proto.oracle.v1.IBCChannel} returns this */ -proto.oracle.v1.IBCChannel.prototype.setPortId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - +proto.oracle.v1.IBCChannel.prototype.setPortId = function (value) { + return jspb.Message.setProto3StringField(this, 1, value) +} /** * optional string channel_id = 2; * @return {string} */ -proto.oracle.v1.IBCChannel.prototype.getChannelId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - +proto.oracle.v1.IBCChannel.prototype.getChannelId = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, '')) +} /** * @param {string} value * @return {!proto.oracle.v1.IBCChannel} returns this */ -proto.oracle.v1.IBCChannel.prototype.setChannelId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - +proto.oracle.v1.IBCChannel.prototype.setChannelId = function (value) { + return jspb.Message.setProto3StringField(this, 2, value) +} if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.oracle.v1.RequestVerification.prototype.toObject = function(opt_includeInstance) { - return proto.oracle.v1.RequestVerification.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.oracle.v1.RequestVerification} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.oracle.v1.RequestVerification.toObject = function(includeInstance, msg) { - var f, obj = { - chainId: jspb.Message.getFieldWithDefault(msg, 1, ""), - validator: jspb.Message.getFieldWithDefault(msg, 2, ""), - requestId: jspb.Message.getFieldWithDefault(msg, 3, 0), - externalId: jspb.Message.getFieldWithDefault(msg, 4, 0), - dataSourceId: jspb.Message.getFieldWithDefault(msg, 5, 0) - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.oracle.v1.RequestVerification.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.oracle.v1.RequestVerification.toObject( + opt_includeInstance, + this, + ) + } + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.oracle.v1.RequestVerification} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.oracle.v1.RequestVerification.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = { + chainId: jspb.Message.getFieldWithDefault(msg, 1, ''), + validator: jspb.Message.getFieldWithDefault(msg, 2, ''), + requestId: jspb.Message.getFieldWithDefault(msg, 3, 0), + externalId: jspb.Message.getFieldWithDefault(msg, 4, 0), + dataSourceId: jspb.Message.getFieldWithDefault(msg, 5, 0), + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.oracle.v1.RequestVerification} */ -proto.oracle.v1.RequestVerification.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.oracle.v1.RequestVerification; - return proto.oracle.v1.RequestVerification.deserializeBinaryFromReader(msg, reader); -}; - +proto.oracle.v1.RequestVerification.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.oracle.v1.RequestVerification() + return proto.oracle.v1.RequestVerification.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -4996,52 +4461,53 @@ proto.oracle.v1.RequestVerification.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.oracle.v1.RequestVerification} */ -proto.oracle.v1.RequestVerification.deserializeBinaryFromReader = function(msg, reader) { +proto.oracle.v1.RequestVerification.deserializeBinaryFromReader = function ( + msg, + reader, +) { while (reader.nextField()) { if (reader.isEndGroup()) { - break; + break } - var field = reader.getFieldNumber(); + var field = reader.getFieldNumber() switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setChainId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setValidator(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setRequestId(value); - break; - case 4: - var value = /** @type {number} */ (reader.readUint64()); - msg.setExternalId(value); - break; - case 5: - var value = /** @type {number} */ (reader.readUint64()); - msg.setDataSourceId(value); - break; - default: - reader.skipField(); - break; + case 1: + var value = /** @type {string} */ (reader.readString()) + msg.setChainId(value) + break + case 2: + var value = /** @type {string} */ (reader.readString()) + msg.setValidator(value) + break + case 3: + var value = /** @type {number} */ (reader.readUint64()) + msg.setRequestId(value) + break + case 4: + var value = /** @type {number} */ (reader.readUint64()) + msg.setExternalId(value) + break + case 5: + var value = /** @type {number} */ (reader.readUint64()) + msg.setDataSourceId(value) + break + default: + reader.skipField() + break } } - return msg; -}; - + return msg +} /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.oracle.v1.RequestVerification.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.oracle.v1.RequestVerification.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.oracle.v1.RequestVerification.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter() + proto.oracle.v1.RequestVerification.serializeBinaryToWriter(this, writer) + return writer.getResultBuffer() +} /** * Serializes the given message to binary data (in protobuf wire @@ -5050,194 +4516,170 @@ proto.oracle.v1.RequestVerification.prototype.serializeBinary = function() { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.oracle.v1.RequestVerification.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getChainId(); +proto.oracle.v1.RequestVerification.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined + f = message.getChainId() if (f.length > 0) { - writer.writeString( - 1, - f - ); + writer.writeString(1, f) } - f = message.getValidator(); + f = message.getValidator() if (f.length > 0) { - writer.writeString( - 2, - f - ); + writer.writeString(2, f) } - f = message.getRequestId(); + f = message.getRequestId() if (f !== 0) { - writer.writeUint64( - 3, - f - ); + writer.writeUint64(3, f) } - f = message.getExternalId(); + f = message.getExternalId() if (f !== 0) { - writer.writeUint64( - 4, - f - ); + writer.writeUint64(4, f) } - f = message.getDataSourceId(); + f = message.getDataSourceId() if (f !== 0) { - writer.writeUint64( - 5, - f - ); + writer.writeUint64(5, f) } -}; - +} /** * optional string chain_id = 1; * @return {string} */ -proto.oracle.v1.RequestVerification.prototype.getChainId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - +proto.oracle.v1.RequestVerification.prototype.getChainId = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, '')) +} /** * @param {string} value * @return {!proto.oracle.v1.RequestVerification} returns this */ -proto.oracle.v1.RequestVerification.prototype.setChainId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - +proto.oracle.v1.RequestVerification.prototype.setChainId = function (value) { + return jspb.Message.setProto3StringField(this, 1, value) +} /** * optional string validator = 2; * @return {string} */ -proto.oracle.v1.RequestVerification.prototype.getValidator = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - +proto.oracle.v1.RequestVerification.prototype.getValidator = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, '')) +} /** * @param {string} value * @return {!proto.oracle.v1.RequestVerification} returns this */ -proto.oracle.v1.RequestVerification.prototype.setValidator = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - +proto.oracle.v1.RequestVerification.prototype.setValidator = function (value) { + return jspb.Message.setProto3StringField(this, 2, value) +} /** * optional uint64 request_id = 3; * @return {number} */ -proto.oracle.v1.RequestVerification.prototype.getRequestId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - +proto.oracle.v1.RequestVerification.prototype.getRequestId = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)) +} /** * @param {number} value * @return {!proto.oracle.v1.RequestVerification} returns this */ -proto.oracle.v1.RequestVerification.prototype.setRequestId = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - +proto.oracle.v1.RequestVerification.prototype.setRequestId = function (value) { + return jspb.Message.setProto3IntField(this, 3, value) +} /** * optional uint64 external_id = 4; * @return {number} */ -proto.oracle.v1.RequestVerification.prototype.getExternalId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - +proto.oracle.v1.RequestVerification.prototype.getExternalId = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)) +} /** * @param {number} value * @return {!proto.oracle.v1.RequestVerification} returns this */ -proto.oracle.v1.RequestVerification.prototype.setExternalId = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - +proto.oracle.v1.RequestVerification.prototype.setExternalId = function (value) { + return jspb.Message.setProto3IntField(this, 4, value) +} /** * optional uint64 data_source_id = 5; * @return {number} */ -proto.oracle.v1.RequestVerification.prototype.getDataSourceId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - +proto.oracle.v1.RequestVerification.prototype.getDataSourceId = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)) +} /** * @param {number} value * @return {!proto.oracle.v1.RequestVerification} returns this */ -proto.oracle.v1.RequestVerification.prototype.setDataSourceId = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - - - - +proto.oracle.v1.RequestVerification.prototype.setDataSourceId = function ( + value, +) { + return jspb.Message.setProto3IntField(this, 5, value) +} if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.oracle.v1.PriceResult.prototype.toObject = function(opt_includeInstance) { - return proto.oracle.v1.PriceResult.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.oracle.v1.PriceResult} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.oracle.v1.PriceResult.toObject = function(includeInstance, msg) { - var f, obj = { - symbol: jspb.Message.getFieldWithDefault(msg, 1, ""), - multiplier: jspb.Message.getFieldWithDefault(msg, 2, 0), - px: jspb.Message.getFieldWithDefault(msg, 3, 0), - requestId: jspb.Message.getFieldWithDefault(msg, 4, 0), - resolveTime: jspb.Message.getFieldWithDefault(msg, 5, 0) - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.oracle.v1.PriceResult.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.oracle.v1.PriceResult.toObject(opt_includeInstance, this) + } + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.oracle.v1.PriceResult} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.oracle.v1.PriceResult.toObject = function (includeInstance, msg) { + var f, + obj = { + symbol: jspb.Message.getFieldWithDefault(msg, 1, ''), + multiplier: jspb.Message.getFieldWithDefault(msg, 2, 0), + px: jspb.Message.getFieldWithDefault(msg, 3, 0), + requestId: jspb.Message.getFieldWithDefault(msg, 4, 0), + resolveTime: jspb.Message.getFieldWithDefault(msg, 5, 0), + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.oracle.v1.PriceResult} */ -proto.oracle.v1.PriceResult.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.oracle.v1.PriceResult; - return proto.oracle.v1.PriceResult.deserializeBinaryFromReader(msg, reader); -}; - +proto.oracle.v1.PriceResult.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.oracle.v1.PriceResult() + return proto.oracle.v1.PriceResult.deserializeBinaryFromReader(msg, reader) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -5246,52 +4688,53 @@ proto.oracle.v1.PriceResult.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.oracle.v1.PriceResult} */ -proto.oracle.v1.PriceResult.deserializeBinaryFromReader = function(msg, reader) { +proto.oracle.v1.PriceResult.deserializeBinaryFromReader = function ( + msg, + reader, +) { while (reader.nextField()) { if (reader.isEndGroup()) { - break; + break } - var field = reader.getFieldNumber(); + var field = reader.getFieldNumber() switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setSymbol(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint64()); - msg.setMultiplier(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setPx(value); - break; - case 4: - var value = /** @type {number} */ (reader.readUint64()); - msg.setRequestId(value); - break; - case 5: - var value = /** @type {number} */ (reader.readInt64()); - msg.setResolveTime(value); - break; - default: - reader.skipField(); - break; + case 1: + var value = /** @type {string} */ (reader.readString()) + msg.setSymbol(value) + break + case 2: + var value = /** @type {number} */ (reader.readUint64()) + msg.setMultiplier(value) + break + case 3: + var value = /** @type {number} */ (reader.readUint64()) + msg.setPx(value) + break + case 4: + var value = /** @type {number} */ (reader.readUint64()) + msg.setRequestId(value) + break + case 5: + var value = /** @type {number} */ (reader.readInt64()) + msg.setResolveTime(value) + break + default: + reader.skipField() + break } } - return msg; -}; - + return msg +} /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.oracle.v1.PriceResult.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.oracle.v1.PriceResult.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.oracle.v1.PriceResult.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter() + proto.oracle.v1.PriceResult.serializeBinaryToWriter(this, writer) + return writer.getResultBuffer() +} /** * Serializes the given message to binary data (in protobuf wire @@ -5300,266 +4743,113 @@ proto.oracle.v1.PriceResult.prototype.serializeBinary = function() { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.oracle.v1.PriceResult.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSymbol(); +proto.oracle.v1.PriceResult.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined + f = message.getSymbol() if (f.length > 0) { - writer.writeString( - 1, - f - ); + writer.writeString(1, f) } - f = message.getMultiplier(); + f = message.getMultiplier() if (f !== 0) { - writer.writeUint64( - 2, - f - ); + writer.writeUint64(2, f) } - f = message.getPx(); + f = message.getPx() if (f !== 0) { - writer.writeUint64( - 3, - f - ); + writer.writeUint64(3, f) } - f = message.getRequestId(); + f = message.getRequestId() if (f !== 0) { - writer.writeUint64( - 4, - f - ); + writer.writeUint64(4, f) } - f = message.getResolveTime(); + f = message.getResolveTime() if (f !== 0) { - writer.writeInt64( - 5, - f - ); + writer.writeInt64(5, f) } -}; - +} /** * optional string symbol = 1; * @return {string} */ -proto.oracle.v1.PriceResult.prototype.getSymbol = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - +proto.oracle.v1.PriceResult.prototype.getSymbol = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, '')) +} /** * @param {string} value * @return {!proto.oracle.v1.PriceResult} returns this */ -proto.oracle.v1.PriceResult.prototype.setSymbol = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - +proto.oracle.v1.PriceResult.prototype.setSymbol = function (value) { + return jspb.Message.setProto3StringField(this, 1, value) +} /** * optional uint64 multiplier = 2; * @return {number} */ -proto.oracle.v1.PriceResult.prototype.getMultiplier = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - +proto.oracle.v1.PriceResult.prototype.getMultiplier = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)) +} /** * @param {number} value * @return {!proto.oracle.v1.PriceResult} returns this */ -proto.oracle.v1.PriceResult.prototype.setMultiplier = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - +proto.oracle.v1.PriceResult.prototype.setMultiplier = function (value) { + return jspb.Message.setProto3IntField(this, 2, value) +} /** * optional uint64 px = 3; * @return {number} */ -proto.oracle.v1.PriceResult.prototype.getPx = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - +proto.oracle.v1.PriceResult.prototype.getPx = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)) +} /** * @param {number} value * @return {!proto.oracle.v1.PriceResult} returns this */ -proto.oracle.v1.PriceResult.prototype.setPx = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - +proto.oracle.v1.PriceResult.prototype.setPx = function (value) { + return jspb.Message.setProto3IntField(this, 3, value) +} /** * optional uint64 request_id = 4; * @return {number} */ -proto.oracle.v1.PriceResult.prototype.getRequestId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - +proto.oracle.v1.PriceResult.prototype.getRequestId = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)) +} /** * @param {number} value * @return {!proto.oracle.v1.PriceResult} returns this */ -proto.oracle.v1.PriceResult.prototype.setRequestId = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - +proto.oracle.v1.PriceResult.prototype.setRequestId = function (value) { + return jspb.Message.setProto3IntField(this, 4, value) +} /** * optional int64 resolve_time = 5; * @return {number} */ -proto.oracle.v1.PriceResult.prototype.getResolveTime = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - +proto.oracle.v1.PriceResult.prototype.getResolveTime = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)) +} /** * @param {number} value * @return {!proto.oracle.v1.PriceResult} returns this */ -proto.oracle.v1.PriceResult.prototype.setResolveTime = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.oracle.v1.OracleResultRequestingSignature.prototype.toObject = function(opt_includeInstance) { - return proto.oracle.v1.OracleResultRequestingSignature.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.oracle.v1.OracleResultRequestingSignature} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.oracle.v1.OracleResultRequestingSignature.toObject = function(includeInstance, msg) { - var f, obj = { - requestId: jspb.Message.getFieldWithDefault(msg, 1, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; +proto.oracle.v1.PriceResult.prototype.setResolveTime = function (value) { + return jspb.Message.setProto3IntField(this, 5, value) } - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.oracle.v1.OracleResultRequestingSignature} - */ -proto.oracle.v1.OracleResultRequestingSignature.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.oracle.v1.OracleResultRequestingSignature; - return proto.oracle.v1.OracleResultRequestingSignature.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.oracle.v1.OracleResultRequestingSignature} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.oracle.v1.OracleResultRequestingSignature} - */ -proto.oracle.v1.OracleResultRequestingSignature.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint64()); - msg.setRequestId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.oracle.v1.OracleResultRequestingSignature.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.oracle.v1.OracleResultRequestingSignature.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.oracle.v1.OracleResultRequestingSignature} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.oracle.v1.OracleResultRequestingSignature.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRequestId(); - if (f !== 0) { - writer.writeUint64( - 1, - f - ); - } -}; - - -/** - * optional uint64 request_id = 1; - * @return {number} - */ -proto.oracle.v1.OracleResultRequestingSignature.prototype.getRequestId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.oracle.v1.OracleResultRequestingSignature} returns this - */ -proto.oracle.v1.OracleResultRequestingSignature.prototype.setRequestId = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - /** * @enum {number} */ @@ -5567,7 +4857,7 @@ proto.oracle.v1.ResolveStatus = { RESOLVE_STATUS_OPEN_UNSPECIFIED: 0, RESOLVE_STATUS_SUCCESS: 1, RESOLVE_STATUS_FAILURE: 2, - RESOLVE_STATUS_EXPIRED: 3 -}; + RESOLVE_STATUS_EXPIRED: 3, +} -goog.object.extend(exports, proto.oracle.v1); +goog.object.extend(exports, proto.oracle.v1) diff --git a/proto/oracle/v1/oracle_pb_service.d.ts b/proto/oracle/v1/oracle_pb_service.d.ts index d46f5ce..95e7fa5 100644 --- a/proto/oracle/v1/oracle_pb_service.d.ts +++ b/proto/oracle/v1/oracle_pb_service.d.ts @@ -1,3 +1,2 @@ // package: oracle.v1 // file: oracle/v1/oracle.proto - diff --git a/proto/oracle/v1/oracle_pb_service.js b/proto/oracle/v1/oracle_pb_service.js index d46f5ce..95e7fa5 100644 --- a/proto/oracle/v1/oracle_pb_service.js +++ b/proto/oracle/v1/oracle_pb_service.js @@ -1,3 +1,2 @@ // package: oracle.v1 // file: oracle/v1/oracle.proto - diff --git a/proto/oracle/v1/query_pb.d.ts b/proto/oracle/v1/query_pb.d.ts index 20fdf15..53447f0 100644 --- a/proto/oracle/v1/query_pb.d.ts +++ b/proto/oracle/v1/query_pb.d.ts @@ -1,680 +1,988 @@ // package: oracle.v1 // file: oracle/v1/query.proto -import * as jspb from "google-protobuf"; -import * as gogoproto_gogo_pb from "../../gogoproto/gogo_pb"; -import * as google_api_annotations_pb from "../../google/api/annotations_pb"; -import * as oracle_v1_oracle_pb from "../../oracle/v1/oracle_pb"; +import * as jspb from 'google-protobuf' +import * as gogoproto_gogo_pb from '../../gogoproto/gogo_pb' +import * as google_api_annotations_pb from '../../google/api/annotations_pb' +import * as cosmos_proto_cosmos_pb from '../../cosmos_proto/cosmos_pb' +import * as oracle_v1_oracle_pb from '../../oracle/v1/oracle_pb' export class QueryCountsRequest extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QueryCountsRequest.AsObject; - static toObject(includeInstance: boolean, msg: QueryCountsRequest): QueryCountsRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QueryCountsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QueryCountsRequest; - static deserializeBinaryFromReader(message: QueryCountsRequest, reader: jspb.BinaryReader): QueryCountsRequest; + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): QueryCountsRequest.AsObject + static toObject( + includeInstance: boolean, + msg: QueryCountsRequest, + ): QueryCountsRequest.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: QueryCountsRequest, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): QueryCountsRequest + static deserializeBinaryFromReader( + message: QueryCountsRequest, + reader: jspb.BinaryReader, + ): QueryCountsRequest } export namespace QueryCountsRequest { - export type AsObject = { - } + export type AsObject = {} } export class QueryCountsResponse extends jspb.Message { - getDataSourceCount(): number; - setDataSourceCount(value: number): void; - - getOracleScriptCount(): number; - setOracleScriptCount(value: number): void; - - getRequestCount(): number; - setRequestCount(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QueryCountsResponse.AsObject; - static toObject(includeInstance: boolean, msg: QueryCountsResponse): QueryCountsResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QueryCountsResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QueryCountsResponse; - static deserializeBinaryFromReader(message: QueryCountsResponse, reader: jspb.BinaryReader): QueryCountsResponse; + getDataSourceCount(): number + setDataSourceCount(value: number): void + + getOracleScriptCount(): number + setOracleScriptCount(value: number): void + + getRequestCount(): number + setRequestCount(value: number): void + + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): QueryCountsResponse.AsObject + static toObject( + includeInstance: boolean, + msg: QueryCountsResponse, + ): QueryCountsResponse.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: QueryCountsResponse, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): QueryCountsResponse + static deserializeBinaryFromReader( + message: QueryCountsResponse, + reader: jspb.BinaryReader, + ): QueryCountsResponse } export namespace QueryCountsResponse { export type AsObject = { - dataSourceCount: number, - oracleScriptCount: number, - requestCount: number, + dataSourceCount: number + oracleScriptCount: number + requestCount: number } } export class QueryDataRequest extends jspb.Message { - getDataHash(): string; - setDataHash(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QueryDataRequest.AsObject; - static toObject(includeInstance: boolean, msg: QueryDataRequest): QueryDataRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QueryDataRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QueryDataRequest; - static deserializeBinaryFromReader(message: QueryDataRequest, reader: jspb.BinaryReader): QueryDataRequest; + getDataHash(): string + setDataHash(value: string): void + + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): QueryDataRequest.AsObject + static toObject( + includeInstance: boolean, + msg: QueryDataRequest, + ): QueryDataRequest.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: QueryDataRequest, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): QueryDataRequest + static deserializeBinaryFromReader( + message: QueryDataRequest, + reader: jspb.BinaryReader, + ): QueryDataRequest } export namespace QueryDataRequest { export type AsObject = { - dataHash: string, + dataHash: string } } export class QueryDataResponse extends jspb.Message { - getData(): Uint8Array | string; - getData_asU8(): Uint8Array; - getData_asB64(): string; - setData(value: Uint8Array | string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QueryDataResponse.AsObject; - static toObject(includeInstance: boolean, msg: QueryDataResponse): QueryDataResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QueryDataResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QueryDataResponse; - static deserializeBinaryFromReader(message: QueryDataResponse, reader: jspb.BinaryReader): QueryDataResponse; + getData(): Uint8Array | string + getData_asU8(): Uint8Array + getData_asB64(): string + setData(value: Uint8Array | string): void + + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): QueryDataResponse.AsObject + static toObject( + includeInstance: boolean, + msg: QueryDataResponse, + ): QueryDataResponse.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: QueryDataResponse, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): QueryDataResponse + static deserializeBinaryFromReader( + message: QueryDataResponse, + reader: jspb.BinaryReader, + ): QueryDataResponse } export namespace QueryDataResponse { export type AsObject = { - data: Uint8Array | string, + data: Uint8Array | string } } export class QueryDataSourceRequest extends jspb.Message { - getDataSourceId(): number; - setDataSourceId(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QueryDataSourceRequest.AsObject; - static toObject(includeInstance: boolean, msg: QueryDataSourceRequest): QueryDataSourceRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QueryDataSourceRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QueryDataSourceRequest; - static deserializeBinaryFromReader(message: QueryDataSourceRequest, reader: jspb.BinaryReader): QueryDataSourceRequest; + getDataSourceId(): number + setDataSourceId(value: number): void + + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): QueryDataSourceRequest.AsObject + static toObject( + includeInstance: boolean, + msg: QueryDataSourceRequest, + ): QueryDataSourceRequest.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: QueryDataSourceRequest, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): QueryDataSourceRequest + static deserializeBinaryFromReader( + message: QueryDataSourceRequest, + reader: jspb.BinaryReader, + ): QueryDataSourceRequest } export namespace QueryDataSourceRequest { export type AsObject = { - dataSourceId: number, + dataSourceId: number } } export class QueryDataSourceResponse extends jspb.Message { - hasDataSource(): boolean; - clearDataSource(): void; - getDataSource(): oracle_v1_oracle_pb.DataSource | undefined; - setDataSource(value?: oracle_v1_oracle_pb.DataSource): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QueryDataSourceResponse.AsObject; - static toObject(includeInstance: boolean, msg: QueryDataSourceResponse): QueryDataSourceResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QueryDataSourceResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QueryDataSourceResponse; - static deserializeBinaryFromReader(message: QueryDataSourceResponse, reader: jspb.BinaryReader): QueryDataSourceResponse; + hasDataSource(): boolean + clearDataSource(): void + getDataSource(): oracle_v1_oracle_pb.DataSource | undefined + setDataSource(value?: oracle_v1_oracle_pb.DataSource): void + + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): QueryDataSourceResponse.AsObject + static toObject( + includeInstance: boolean, + msg: QueryDataSourceResponse, + ): QueryDataSourceResponse.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: QueryDataSourceResponse, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): QueryDataSourceResponse + static deserializeBinaryFromReader( + message: QueryDataSourceResponse, + reader: jspb.BinaryReader, + ): QueryDataSourceResponse } export namespace QueryDataSourceResponse { export type AsObject = { - dataSource?: oracle_v1_oracle_pb.DataSource.AsObject, + dataSource?: oracle_v1_oracle_pb.DataSource.AsObject } } export class QueryOracleScriptRequest extends jspb.Message { - getOracleScriptId(): number; - setOracleScriptId(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QueryOracleScriptRequest.AsObject; - static toObject(includeInstance: boolean, msg: QueryOracleScriptRequest): QueryOracleScriptRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QueryOracleScriptRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QueryOracleScriptRequest; - static deserializeBinaryFromReader(message: QueryOracleScriptRequest, reader: jspb.BinaryReader): QueryOracleScriptRequest; + getOracleScriptId(): number + setOracleScriptId(value: number): void + + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): QueryOracleScriptRequest.AsObject + static toObject( + includeInstance: boolean, + msg: QueryOracleScriptRequest, + ): QueryOracleScriptRequest.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: QueryOracleScriptRequest, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): QueryOracleScriptRequest + static deserializeBinaryFromReader( + message: QueryOracleScriptRequest, + reader: jspb.BinaryReader, + ): QueryOracleScriptRequest } export namespace QueryOracleScriptRequest { export type AsObject = { - oracleScriptId: number, + oracleScriptId: number } } export class QueryOracleScriptResponse extends jspb.Message { - hasOracleScript(): boolean; - clearOracleScript(): void; - getOracleScript(): oracle_v1_oracle_pb.OracleScript | undefined; - setOracleScript(value?: oracle_v1_oracle_pb.OracleScript): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QueryOracleScriptResponse.AsObject; - static toObject(includeInstance: boolean, msg: QueryOracleScriptResponse): QueryOracleScriptResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QueryOracleScriptResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QueryOracleScriptResponse; - static deserializeBinaryFromReader(message: QueryOracleScriptResponse, reader: jspb.BinaryReader): QueryOracleScriptResponse; + hasOracleScript(): boolean + clearOracleScript(): void + getOracleScript(): oracle_v1_oracle_pb.OracleScript | undefined + setOracleScript(value?: oracle_v1_oracle_pb.OracleScript): void + + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): QueryOracleScriptResponse.AsObject + static toObject( + includeInstance: boolean, + msg: QueryOracleScriptResponse, + ): QueryOracleScriptResponse.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: QueryOracleScriptResponse, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): QueryOracleScriptResponse + static deserializeBinaryFromReader( + message: QueryOracleScriptResponse, + reader: jspb.BinaryReader, + ): QueryOracleScriptResponse } export namespace QueryOracleScriptResponse { export type AsObject = { - oracleScript?: oracle_v1_oracle_pb.OracleScript.AsObject, + oracleScript?: oracle_v1_oracle_pb.OracleScript.AsObject } } export class QueryRequestRequest extends jspb.Message { - getRequestId(): number; - setRequestId(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QueryRequestRequest.AsObject; - static toObject(includeInstance: boolean, msg: QueryRequestRequest): QueryRequestRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QueryRequestRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QueryRequestRequest; - static deserializeBinaryFromReader(message: QueryRequestRequest, reader: jspb.BinaryReader): QueryRequestRequest; + getRequestId(): number + setRequestId(value: number): void + + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): QueryRequestRequest.AsObject + static toObject( + includeInstance: boolean, + msg: QueryRequestRequest, + ): QueryRequestRequest.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: QueryRequestRequest, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): QueryRequestRequest + static deserializeBinaryFromReader( + message: QueryRequestRequest, + reader: jspb.BinaryReader, + ): QueryRequestRequest } export namespace QueryRequestRequest { export type AsObject = { - requestId: number, + requestId: number } } export class QueryRequestResponse extends jspb.Message { - hasRequest(): boolean; - clearRequest(): void; - getRequest(): oracle_v1_oracle_pb.Request | undefined; - setRequest(value?: oracle_v1_oracle_pb.Request): void; - - clearReportsList(): void; - getReportsList(): Array; - setReportsList(value: Array): void; - addReports(value?: oracle_v1_oracle_pb.Report, index?: number): oracle_v1_oracle_pb.Report; - - hasResult(): boolean; - clearResult(): void; - getResult(): oracle_v1_oracle_pb.Result | undefined; - setResult(value?: oracle_v1_oracle_pb.Result): void; - - hasSigning(): boolean; - clearSigning(): void; - getSigning(): oracle_v1_oracle_pb.SigningResult | undefined; - setSigning(value?: oracle_v1_oracle_pb.SigningResult): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QueryRequestResponse.AsObject; - static toObject(includeInstance: boolean, msg: QueryRequestResponse): QueryRequestResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QueryRequestResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QueryRequestResponse; - static deserializeBinaryFromReader(message: QueryRequestResponse, reader: jspb.BinaryReader): QueryRequestResponse; + hasRequest(): boolean + clearRequest(): void + getRequest(): oracle_v1_oracle_pb.Request | undefined + setRequest(value?: oracle_v1_oracle_pb.Request): void + + clearReportsList(): void + getReportsList(): Array + setReportsList(value: Array): void + addReports( + value?: oracle_v1_oracle_pb.Report, + index?: number, + ): oracle_v1_oracle_pb.Report + + hasResult(): boolean + clearResult(): void + getResult(): oracle_v1_oracle_pb.Result | undefined + setResult(value?: oracle_v1_oracle_pb.Result): void + + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): QueryRequestResponse.AsObject + static toObject( + includeInstance: boolean, + msg: QueryRequestResponse, + ): QueryRequestResponse.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: QueryRequestResponse, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): QueryRequestResponse + static deserializeBinaryFromReader( + message: QueryRequestResponse, + reader: jspb.BinaryReader, + ): QueryRequestResponse } export namespace QueryRequestResponse { export type AsObject = { - request?: oracle_v1_oracle_pb.Request.AsObject, - reportsList: Array, - result?: oracle_v1_oracle_pb.Result.AsObject, - signing?: oracle_v1_oracle_pb.SigningResult.AsObject, + request?: oracle_v1_oracle_pb.Request.AsObject + reportsList: Array + result?: oracle_v1_oracle_pb.Result.AsObject } } export class QueryPendingRequestsRequest extends jspb.Message { - getValidatorAddress(): string; - setValidatorAddress(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QueryPendingRequestsRequest.AsObject; - static toObject(includeInstance: boolean, msg: QueryPendingRequestsRequest): QueryPendingRequestsRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QueryPendingRequestsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QueryPendingRequestsRequest; - static deserializeBinaryFromReader(message: QueryPendingRequestsRequest, reader: jspb.BinaryReader): QueryPendingRequestsRequest; + getValidatorAddress(): string + setValidatorAddress(value: string): void + + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): QueryPendingRequestsRequest.AsObject + static toObject( + includeInstance: boolean, + msg: QueryPendingRequestsRequest, + ): QueryPendingRequestsRequest.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: QueryPendingRequestsRequest, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): QueryPendingRequestsRequest + static deserializeBinaryFromReader( + message: QueryPendingRequestsRequest, + reader: jspb.BinaryReader, + ): QueryPendingRequestsRequest } export namespace QueryPendingRequestsRequest { export type AsObject = { - validatorAddress: string, + validatorAddress: string } } export class QueryPendingRequestsResponse extends jspb.Message { - clearRequestIdsList(): void; - getRequestIdsList(): Array; - setRequestIdsList(value: Array): void; - addRequestIds(value: number, index?: number): number; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QueryPendingRequestsResponse.AsObject; - static toObject(includeInstance: boolean, msg: QueryPendingRequestsResponse): QueryPendingRequestsResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QueryPendingRequestsResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QueryPendingRequestsResponse; - static deserializeBinaryFromReader(message: QueryPendingRequestsResponse, reader: jspb.BinaryReader): QueryPendingRequestsResponse; + clearRequestIdsList(): void + getRequestIdsList(): Array + setRequestIdsList(value: Array): void + addRequestIds(value: number, index?: number): number + + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): QueryPendingRequestsResponse.AsObject + static toObject( + includeInstance: boolean, + msg: QueryPendingRequestsResponse, + ): QueryPendingRequestsResponse.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: QueryPendingRequestsResponse, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): QueryPendingRequestsResponse + static deserializeBinaryFromReader( + message: QueryPendingRequestsResponse, + reader: jspb.BinaryReader, + ): QueryPendingRequestsResponse } export namespace QueryPendingRequestsResponse { export type AsObject = { - requestIdsList: Array, + requestIdsList: Array } } export class QueryParamsRequest extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QueryParamsRequest.AsObject; - static toObject(includeInstance: boolean, msg: QueryParamsRequest): QueryParamsRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QueryParamsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QueryParamsRequest; - static deserializeBinaryFromReader(message: QueryParamsRequest, reader: jspb.BinaryReader): QueryParamsRequest; + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): QueryParamsRequest.AsObject + static toObject( + includeInstance: boolean, + msg: QueryParamsRequest, + ): QueryParamsRequest.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: QueryParamsRequest, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): QueryParamsRequest + static deserializeBinaryFromReader( + message: QueryParamsRequest, + reader: jspb.BinaryReader, + ): QueryParamsRequest } export namespace QueryParamsRequest { - export type AsObject = { - } + export type AsObject = {} } export class QueryParamsResponse extends jspb.Message { - hasParams(): boolean; - clearParams(): void; - getParams(): oracle_v1_oracle_pb.Params | undefined; - setParams(value?: oracle_v1_oracle_pb.Params): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QueryParamsResponse.AsObject; - static toObject(includeInstance: boolean, msg: QueryParamsResponse): QueryParamsResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QueryParamsResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QueryParamsResponse; - static deserializeBinaryFromReader(message: QueryParamsResponse, reader: jspb.BinaryReader): QueryParamsResponse; + hasParams(): boolean + clearParams(): void + getParams(): oracle_v1_oracle_pb.Params | undefined + setParams(value?: oracle_v1_oracle_pb.Params): void + + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): QueryParamsResponse.AsObject + static toObject( + includeInstance: boolean, + msg: QueryParamsResponse, + ): QueryParamsResponse.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: QueryParamsResponse, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): QueryParamsResponse + static deserializeBinaryFromReader( + message: QueryParamsResponse, + reader: jspb.BinaryReader, + ): QueryParamsResponse } export namespace QueryParamsResponse { export type AsObject = { - params?: oracle_v1_oracle_pb.Params.AsObject, + params?: oracle_v1_oracle_pb.Params.AsObject } } export class QueryValidatorRequest extends jspb.Message { - getValidatorAddress(): string; - setValidatorAddress(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QueryValidatorRequest.AsObject; - static toObject(includeInstance: boolean, msg: QueryValidatorRequest): QueryValidatorRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QueryValidatorRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QueryValidatorRequest; - static deserializeBinaryFromReader(message: QueryValidatorRequest, reader: jspb.BinaryReader): QueryValidatorRequest; + getValidatorAddress(): string + setValidatorAddress(value: string): void + + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): QueryValidatorRequest.AsObject + static toObject( + includeInstance: boolean, + msg: QueryValidatorRequest, + ): QueryValidatorRequest.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: QueryValidatorRequest, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): QueryValidatorRequest + static deserializeBinaryFromReader( + message: QueryValidatorRequest, + reader: jspb.BinaryReader, + ): QueryValidatorRequest } export namespace QueryValidatorRequest { export type AsObject = { - validatorAddress: string, + validatorAddress: string } } export class QueryValidatorResponse extends jspb.Message { - hasStatus(): boolean; - clearStatus(): void; - getStatus(): oracle_v1_oracle_pb.ValidatorStatus | undefined; - setStatus(value?: oracle_v1_oracle_pb.ValidatorStatus): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QueryValidatorResponse.AsObject; - static toObject(includeInstance: boolean, msg: QueryValidatorResponse): QueryValidatorResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QueryValidatorResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QueryValidatorResponse; - static deserializeBinaryFromReader(message: QueryValidatorResponse, reader: jspb.BinaryReader): QueryValidatorResponse; + hasStatus(): boolean + clearStatus(): void + getStatus(): oracle_v1_oracle_pb.ValidatorStatus | undefined + setStatus(value?: oracle_v1_oracle_pb.ValidatorStatus): void + + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): QueryValidatorResponse.AsObject + static toObject( + includeInstance: boolean, + msg: QueryValidatorResponse, + ): QueryValidatorResponse.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: QueryValidatorResponse, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): QueryValidatorResponse + static deserializeBinaryFromReader( + message: QueryValidatorResponse, + reader: jspb.BinaryReader, + ): QueryValidatorResponse } export namespace QueryValidatorResponse { export type AsObject = { - status?: oracle_v1_oracle_pb.ValidatorStatus.AsObject, + status?: oracle_v1_oracle_pb.ValidatorStatus.AsObject } } export class QueryIsReporterRequest extends jspb.Message { - getValidatorAddress(): string; - setValidatorAddress(value: string): void; - - getReporterAddress(): string; - setReporterAddress(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QueryIsReporterRequest.AsObject; - static toObject(includeInstance: boolean, msg: QueryIsReporterRequest): QueryIsReporterRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QueryIsReporterRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QueryIsReporterRequest; - static deserializeBinaryFromReader(message: QueryIsReporterRequest, reader: jspb.BinaryReader): QueryIsReporterRequest; + getValidatorAddress(): string + setValidatorAddress(value: string): void + + getReporterAddress(): string + setReporterAddress(value: string): void + + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): QueryIsReporterRequest.AsObject + static toObject( + includeInstance: boolean, + msg: QueryIsReporterRequest, + ): QueryIsReporterRequest.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: QueryIsReporterRequest, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): QueryIsReporterRequest + static deserializeBinaryFromReader( + message: QueryIsReporterRequest, + reader: jspb.BinaryReader, + ): QueryIsReporterRequest } export namespace QueryIsReporterRequest { export type AsObject = { - validatorAddress: string, - reporterAddress: string, + validatorAddress: string + reporterAddress: string } } export class QueryIsReporterResponse extends jspb.Message { - getIsReporter(): boolean; - setIsReporter(value: boolean): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QueryIsReporterResponse.AsObject; - static toObject(includeInstance: boolean, msg: QueryIsReporterResponse): QueryIsReporterResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QueryIsReporterResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QueryIsReporterResponse; - static deserializeBinaryFromReader(message: QueryIsReporterResponse, reader: jspb.BinaryReader): QueryIsReporterResponse; + getIsReporter(): boolean + setIsReporter(value: boolean): void + + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): QueryIsReporterResponse.AsObject + static toObject( + includeInstance: boolean, + msg: QueryIsReporterResponse, + ): QueryIsReporterResponse.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: QueryIsReporterResponse, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): QueryIsReporterResponse + static deserializeBinaryFromReader( + message: QueryIsReporterResponse, + reader: jspb.BinaryReader, + ): QueryIsReporterResponse } export namespace QueryIsReporterResponse { export type AsObject = { - isReporter: boolean, + isReporter: boolean } } export class QueryReportersRequest extends jspb.Message { - getValidatorAddress(): string; - setValidatorAddress(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QueryReportersRequest.AsObject; - static toObject(includeInstance: boolean, msg: QueryReportersRequest): QueryReportersRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QueryReportersRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QueryReportersRequest; - static deserializeBinaryFromReader(message: QueryReportersRequest, reader: jspb.BinaryReader): QueryReportersRequest; + getValidatorAddress(): string + setValidatorAddress(value: string): void + + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): QueryReportersRequest.AsObject + static toObject( + includeInstance: boolean, + msg: QueryReportersRequest, + ): QueryReportersRequest.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: QueryReportersRequest, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): QueryReportersRequest + static deserializeBinaryFromReader( + message: QueryReportersRequest, + reader: jspb.BinaryReader, + ): QueryReportersRequest } export namespace QueryReportersRequest { export type AsObject = { - validatorAddress: string, + validatorAddress: string } } export class QueryReportersResponse extends jspb.Message { - clearReporterList(): void; - getReporterList(): Array; - setReporterList(value: Array): void; - addReporter(value: string, index?: number): string; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QueryReportersResponse.AsObject; - static toObject(includeInstance: boolean, msg: QueryReportersResponse): QueryReportersResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QueryReportersResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QueryReportersResponse; - static deserializeBinaryFromReader(message: QueryReportersResponse, reader: jspb.BinaryReader): QueryReportersResponse; + clearReporterList(): void + getReporterList(): Array + setReporterList(value: Array): void + addReporter(value: string, index?: number): string + + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): QueryReportersResponse.AsObject + static toObject( + includeInstance: boolean, + msg: QueryReportersResponse, + ): QueryReportersResponse.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: QueryReportersResponse, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): QueryReportersResponse + static deserializeBinaryFromReader( + message: QueryReportersResponse, + reader: jspb.BinaryReader, + ): QueryReportersResponse } export namespace QueryReportersResponse { export type AsObject = { - reporterList: Array, + reporterList: Array } } export class QueryActiveValidatorsRequest extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QueryActiveValidatorsRequest.AsObject; - static toObject(includeInstance: boolean, msg: QueryActiveValidatorsRequest): QueryActiveValidatorsRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QueryActiveValidatorsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QueryActiveValidatorsRequest; - static deserializeBinaryFromReader(message: QueryActiveValidatorsRequest, reader: jspb.BinaryReader): QueryActiveValidatorsRequest; + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): QueryActiveValidatorsRequest.AsObject + static toObject( + includeInstance: boolean, + msg: QueryActiveValidatorsRequest, + ): QueryActiveValidatorsRequest.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: QueryActiveValidatorsRequest, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): QueryActiveValidatorsRequest + static deserializeBinaryFromReader( + message: QueryActiveValidatorsRequest, + reader: jspb.BinaryReader, + ): QueryActiveValidatorsRequest } export namespace QueryActiveValidatorsRequest { - export type AsObject = { - } + export type AsObject = {} } export class QueryActiveValidatorsResponse extends jspb.Message { - clearValidatorsList(): void; - getValidatorsList(): Array; - setValidatorsList(value: Array): void; - addValidators(value?: oracle_v1_oracle_pb.ActiveValidator, index?: number): oracle_v1_oracle_pb.ActiveValidator; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QueryActiveValidatorsResponse.AsObject; - static toObject(includeInstance: boolean, msg: QueryActiveValidatorsResponse): QueryActiveValidatorsResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QueryActiveValidatorsResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QueryActiveValidatorsResponse; - static deserializeBinaryFromReader(message: QueryActiveValidatorsResponse, reader: jspb.BinaryReader): QueryActiveValidatorsResponse; + clearValidatorsList(): void + getValidatorsList(): Array + setValidatorsList(value: Array): void + addValidators( + value?: oracle_v1_oracle_pb.ActiveValidator, + index?: number, + ): oracle_v1_oracle_pb.ActiveValidator + + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): QueryActiveValidatorsResponse.AsObject + static toObject( + includeInstance: boolean, + msg: QueryActiveValidatorsResponse, + ): QueryActiveValidatorsResponse.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: QueryActiveValidatorsResponse, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): QueryActiveValidatorsResponse + static deserializeBinaryFromReader( + message: QueryActiveValidatorsResponse, + reader: jspb.BinaryReader, + ): QueryActiveValidatorsResponse } export namespace QueryActiveValidatorsResponse { export type AsObject = { - validatorsList: Array, + validatorsList: Array } } export class QueryRequestSearchRequest extends jspb.Message { - getOracleScriptId(): number; - setOracleScriptId(value: number): void; - - getCalldata(): string; - setCalldata(value: string): void; - - getAskCount(): number; - setAskCount(value: number): void; - - getMinCount(): number; - setMinCount(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QueryRequestSearchRequest.AsObject; - static toObject(includeInstance: boolean, msg: QueryRequestSearchRequest): QueryRequestSearchRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QueryRequestSearchRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QueryRequestSearchRequest; - static deserializeBinaryFromReader(message: QueryRequestSearchRequest, reader: jspb.BinaryReader): QueryRequestSearchRequest; + getOracleScriptId(): number + setOracleScriptId(value: number): void + + getCalldata(): string + setCalldata(value: string): void + + getAskCount(): number + setAskCount(value: number): void + + getMinCount(): number + setMinCount(value: number): void + + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): QueryRequestSearchRequest.AsObject + static toObject( + includeInstance: boolean, + msg: QueryRequestSearchRequest, + ): QueryRequestSearchRequest.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: QueryRequestSearchRequest, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): QueryRequestSearchRequest + static deserializeBinaryFromReader( + message: QueryRequestSearchRequest, + reader: jspb.BinaryReader, + ): QueryRequestSearchRequest } export namespace QueryRequestSearchRequest { export type AsObject = { - oracleScriptId: number, - calldata: string, - askCount: number, - minCount: number, + oracleScriptId: number + calldata: string + askCount: number + minCount: number } } export class QueryRequestSearchResponse extends jspb.Message { - hasRequest(): boolean; - clearRequest(): void; - getRequest(): QueryRequestResponse | undefined; - setRequest(value?: QueryRequestResponse): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QueryRequestSearchResponse.AsObject; - static toObject(includeInstance: boolean, msg: QueryRequestSearchResponse): QueryRequestSearchResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QueryRequestSearchResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QueryRequestSearchResponse; - static deserializeBinaryFromReader(message: QueryRequestSearchResponse, reader: jspb.BinaryReader): QueryRequestSearchResponse; + hasRequest(): boolean + clearRequest(): void + getRequest(): QueryRequestResponse | undefined + setRequest(value?: QueryRequestResponse): void + + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): QueryRequestSearchResponse.AsObject + static toObject( + includeInstance: boolean, + msg: QueryRequestSearchResponse, + ): QueryRequestSearchResponse.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: QueryRequestSearchResponse, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): QueryRequestSearchResponse + static deserializeBinaryFromReader( + message: QueryRequestSearchResponse, + reader: jspb.BinaryReader, + ): QueryRequestSearchResponse } export namespace QueryRequestSearchResponse { export type AsObject = { - request?: QueryRequestResponse.AsObject, + request?: QueryRequestResponse.AsObject } } export class QueryRequestPriceRequest extends jspb.Message { - clearSymbolsList(): void; - getSymbolsList(): Array; - setSymbolsList(value: Array): void; - addSymbols(value: string, index?: number): string; - - getAskCount(): number; - setAskCount(value: number): void; - - getMinCount(): number; - setMinCount(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QueryRequestPriceRequest.AsObject; - static toObject(includeInstance: boolean, msg: QueryRequestPriceRequest): QueryRequestPriceRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QueryRequestPriceRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QueryRequestPriceRequest; - static deserializeBinaryFromReader(message: QueryRequestPriceRequest, reader: jspb.BinaryReader): QueryRequestPriceRequest; + clearSymbolsList(): void + getSymbolsList(): Array + setSymbolsList(value: Array): void + addSymbols(value: string, index?: number): string + + getAskCount(): number + setAskCount(value: number): void + + getMinCount(): number + setMinCount(value: number): void + + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): QueryRequestPriceRequest.AsObject + static toObject( + includeInstance: boolean, + msg: QueryRequestPriceRequest, + ): QueryRequestPriceRequest.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: QueryRequestPriceRequest, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): QueryRequestPriceRequest + static deserializeBinaryFromReader( + message: QueryRequestPriceRequest, + reader: jspb.BinaryReader, + ): QueryRequestPriceRequest } export namespace QueryRequestPriceRequest { export type AsObject = { - symbolsList: Array, - askCount: number, - minCount: number, + symbolsList: Array + askCount: number + minCount: number } } export class QueryRequestPriceResponse extends jspb.Message { - clearPriceResultsList(): void; - getPriceResultsList(): Array; - setPriceResultsList(value: Array): void; - addPriceResults(value?: oracle_v1_oracle_pb.PriceResult, index?: number): oracle_v1_oracle_pb.PriceResult; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QueryRequestPriceResponse.AsObject; - static toObject(includeInstance: boolean, msg: QueryRequestPriceResponse): QueryRequestPriceResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QueryRequestPriceResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QueryRequestPriceResponse; - static deserializeBinaryFromReader(message: QueryRequestPriceResponse, reader: jspb.BinaryReader): QueryRequestPriceResponse; + clearPriceResultsList(): void + getPriceResultsList(): Array + setPriceResultsList(value: Array): void + addPriceResults( + value?: oracle_v1_oracle_pb.PriceResult, + index?: number, + ): oracle_v1_oracle_pb.PriceResult + + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): QueryRequestPriceResponse.AsObject + static toObject( + includeInstance: boolean, + msg: QueryRequestPriceResponse, + ): QueryRequestPriceResponse.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: QueryRequestPriceResponse, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): QueryRequestPriceResponse + static deserializeBinaryFromReader( + message: QueryRequestPriceResponse, + reader: jspb.BinaryReader, + ): QueryRequestPriceResponse } export namespace QueryRequestPriceResponse { export type AsObject = { - priceResultsList: Array, + priceResultsList: Array } } export class QueryRequestVerificationRequest extends jspb.Message { - getChainId(): string; - setChainId(value: string): void; + getChainId(): string + setChainId(value: string): void - getValidator(): string; - setValidator(value: string): void; + getValidator(): string + setValidator(value: string): void - getRequestId(): number; - setRequestId(value: number): void; + getRequestId(): number + setRequestId(value: number): void - getExternalId(): number; - setExternalId(value: number): void; + getExternalId(): number + setExternalId(value: number): void - getDataSourceId(): number; - setDataSourceId(value: number): void; + getDataSourceId(): number + setDataSourceId(value: number): void - getReporter(): string; - setReporter(value: string): void; + getReporter(): string + setReporter(value: string): void - getSignature(): Uint8Array | string; - getSignature_asU8(): Uint8Array; - getSignature_asB64(): string; - setSignature(value: Uint8Array | string): void; + getSignature(): Uint8Array | string + getSignature_asU8(): Uint8Array + getSignature_asB64(): string + setSignature(value: Uint8Array | string): void - getMaxDelay(): number; - setMaxDelay(value: number): void; + getMaxDelay(): number + setMaxDelay(value: number): void - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QueryRequestVerificationRequest.AsObject; - static toObject(includeInstance: boolean, msg: QueryRequestVerificationRequest): QueryRequestVerificationRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QueryRequestVerificationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QueryRequestVerificationRequest; - static deserializeBinaryFromReader(message: QueryRequestVerificationRequest, reader: jspb.BinaryReader): QueryRequestVerificationRequest; + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): QueryRequestVerificationRequest.AsObject + static toObject( + includeInstance: boolean, + msg: QueryRequestVerificationRequest, + ): QueryRequestVerificationRequest.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: QueryRequestVerificationRequest, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): QueryRequestVerificationRequest + static deserializeBinaryFromReader( + message: QueryRequestVerificationRequest, + reader: jspb.BinaryReader, + ): QueryRequestVerificationRequest } export namespace QueryRequestVerificationRequest { export type AsObject = { - chainId: string, - validator: string, - requestId: number, - externalId: number, - dataSourceId: number, - reporter: string, - signature: Uint8Array | string, - maxDelay: number, + chainId: string + validator: string + requestId: number + externalId: number + dataSourceId: number + reporter: string + signature: Uint8Array | string + maxDelay: number } } export class QueryRequestVerificationResponse extends jspb.Message { - getChainId(): string; - setChainId(value: string): void; + getChainId(): string + setChainId(value: string): void - getValidator(): string; - setValidator(value: string): void; + getValidator(): string + setValidator(value: string): void - getRequestId(): number; - setRequestId(value: number): void; + getRequestId(): number + setRequestId(value: number): void - getExternalId(): number; - setExternalId(value: number): void; + getExternalId(): number + setExternalId(value: number): void - getDataSourceId(): number; - setDataSourceId(value: number): void; + getDataSourceId(): number + setDataSourceId(value: number): void - getIsDelay(): boolean; - setIsDelay(value: boolean): void; + getIsDelay(): boolean + setIsDelay(value: boolean): void - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QueryRequestVerificationResponse.AsObject; - static toObject(includeInstance: boolean, msg: QueryRequestVerificationResponse): QueryRequestVerificationResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QueryRequestVerificationResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QueryRequestVerificationResponse; - static deserializeBinaryFromReader(message: QueryRequestVerificationResponse, reader: jspb.BinaryReader): QueryRequestVerificationResponse; + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): QueryRequestVerificationResponse.AsObject + static toObject( + includeInstance: boolean, + msg: QueryRequestVerificationResponse, + ): QueryRequestVerificationResponse.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: QueryRequestVerificationResponse, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): QueryRequestVerificationResponse + static deserializeBinaryFromReader( + message: QueryRequestVerificationResponse, + reader: jspb.BinaryReader, + ): QueryRequestVerificationResponse } export namespace QueryRequestVerificationResponse { export type AsObject = { - chainId: string, - validator: string, - requestId: number, - externalId: number, - dataSourceId: number, - isDelay: boolean, + chainId: string + validator: string + requestId: number + externalId: number + dataSourceId: number + isDelay: boolean } } - diff --git a/proto/oracle/v1/query_pb.js b/proto/oracle/v1/query_pb.js index 4adc126..f2c1627 100644 --- a/proto/oracle/v1/query_pb.js +++ b/proto/oracle/v1/query_pb.js @@ -11,44 +11,62 @@ /* eslint-disable */ // @ts-nocheck -var jspb = require('google-protobuf'); -var goog = jspb; -var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); - -var gogoproto_gogo_pb = require('../../gogoproto/gogo_pb.js'); -goog.object.extend(proto, gogoproto_gogo_pb); -var google_api_annotations_pb = require('../../google/api/annotations_pb.js'); -goog.object.extend(proto, google_api_annotations_pb); -var oracle_v1_oracle_pb = require('../../oracle/v1/oracle_pb.js'); -goog.object.extend(proto, oracle_v1_oracle_pb); -goog.exportSymbol('proto.oracle.v1.QueryActiveValidatorsRequest', null, global); -goog.exportSymbol('proto.oracle.v1.QueryActiveValidatorsResponse', null, global); -goog.exportSymbol('proto.oracle.v1.QueryCountsRequest', null, global); -goog.exportSymbol('proto.oracle.v1.QueryCountsResponse', null, global); -goog.exportSymbol('proto.oracle.v1.QueryDataRequest', null, global); -goog.exportSymbol('proto.oracle.v1.QueryDataResponse', null, global); -goog.exportSymbol('proto.oracle.v1.QueryDataSourceRequest', null, global); -goog.exportSymbol('proto.oracle.v1.QueryDataSourceResponse', null, global); -goog.exportSymbol('proto.oracle.v1.QueryIsReporterRequest', null, global); -goog.exportSymbol('proto.oracle.v1.QueryIsReporterResponse', null, global); -goog.exportSymbol('proto.oracle.v1.QueryOracleScriptRequest', null, global); -goog.exportSymbol('proto.oracle.v1.QueryOracleScriptResponse', null, global); -goog.exportSymbol('proto.oracle.v1.QueryParamsRequest', null, global); -goog.exportSymbol('proto.oracle.v1.QueryParamsResponse', null, global); -goog.exportSymbol('proto.oracle.v1.QueryPendingRequestsRequest', null, global); -goog.exportSymbol('proto.oracle.v1.QueryPendingRequestsResponse', null, global); -goog.exportSymbol('proto.oracle.v1.QueryReportersRequest', null, global); -goog.exportSymbol('proto.oracle.v1.QueryReportersResponse', null, global); -goog.exportSymbol('proto.oracle.v1.QueryRequestPriceRequest', null, global); -goog.exportSymbol('proto.oracle.v1.QueryRequestPriceResponse', null, global); -goog.exportSymbol('proto.oracle.v1.QueryRequestRequest', null, global); -goog.exportSymbol('proto.oracle.v1.QueryRequestResponse', null, global); -goog.exportSymbol('proto.oracle.v1.QueryRequestSearchRequest', null, global); -goog.exportSymbol('proto.oracle.v1.QueryRequestSearchResponse', null, global); -goog.exportSymbol('proto.oracle.v1.QueryRequestVerificationRequest', null, global); -goog.exportSymbol('proto.oracle.v1.QueryRequestVerificationResponse', null, global); -goog.exportSymbol('proto.oracle.v1.QueryValidatorRequest', null, global); -goog.exportSymbol('proto.oracle.v1.QueryValidatorResponse', null, global); +var jspb = require('google-protobuf') +var goog = jspb +var global = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + function () { + return this + }.call(null) || + Function('return this')() + +var gogoproto_gogo_pb = require('../../gogoproto/gogo_pb.js') +goog.object.extend(proto, gogoproto_gogo_pb) +var google_api_annotations_pb = require('../../google/api/annotations_pb.js') +goog.object.extend(proto, google_api_annotations_pb) +var cosmos_proto_cosmos_pb = require('../../cosmos_proto/cosmos_pb.js') +goog.object.extend(proto, cosmos_proto_cosmos_pb) +var oracle_v1_oracle_pb = require('../../oracle/v1/oracle_pb.js') +goog.object.extend(proto, oracle_v1_oracle_pb) +goog.exportSymbol('proto.oracle.v1.QueryActiveValidatorsRequest', null, global) +goog.exportSymbol('proto.oracle.v1.QueryActiveValidatorsResponse', null, global) +goog.exportSymbol('proto.oracle.v1.QueryCountsRequest', null, global) +goog.exportSymbol('proto.oracle.v1.QueryCountsResponse', null, global) +goog.exportSymbol('proto.oracle.v1.QueryDataRequest', null, global) +goog.exportSymbol('proto.oracle.v1.QueryDataResponse', null, global) +goog.exportSymbol('proto.oracle.v1.QueryDataSourceRequest', null, global) +goog.exportSymbol('proto.oracle.v1.QueryDataSourceResponse', null, global) +goog.exportSymbol('proto.oracle.v1.QueryIsReporterRequest', null, global) +goog.exportSymbol('proto.oracle.v1.QueryIsReporterResponse', null, global) +goog.exportSymbol('proto.oracle.v1.QueryOracleScriptRequest', null, global) +goog.exportSymbol('proto.oracle.v1.QueryOracleScriptResponse', null, global) +goog.exportSymbol('proto.oracle.v1.QueryParamsRequest', null, global) +goog.exportSymbol('proto.oracle.v1.QueryParamsResponse', null, global) +goog.exportSymbol('proto.oracle.v1.QueryPendingRequestsRequest', null, global) +goog.exportSymbol('proto.oracle.v1.QueryPendingRequestsResponse', null, global) +goog.exportSymbol('proto.oracle.v1.QueryReportersRequest', null, global) +goog.exportSymbol('proto.oracle.v1.QueryReportersResponse', null, global) +goog.exportSymbol('proto.oracle.v1.QueryRequestPriceRequest', null, global) +goog.exportSymbol('proto.oracle.v1.QueryRequestPriceResponse', null, global) +goog.exportSymbol('proto.oracle.v1.QueryRequestRequest', null, global) +goog.exportSymbol('proto.oracle.v1.QueryRequestResponse', null, global) +goog.exportSymbol('proto.oracle.v1.QueryRequestSearchRequest', null, global) +goog.exportSymbol('proto.oracle.v1.QueryRequestSearchResponse', null, global) +goog.exportSymbol( + 'proto.oracle.v1.QueryRequestVerificationRequest', + null, + global, +) +goog.exportSymbol( + 'proto.oracle.v1.QueryRequestVerificationResponse', + null, + global, +) +goog.exportSymbol('proto.oracle.v1.QueryValidatorRequest', null, global) +goog.exportSymbol('proto.oracle.v1.QueryValidatorResponse', null, global) /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -59,16 +77,17 @@ goog.exportSymbol('proto.oracle.v1.QueryValidatorResponse', null, global); * @extends {jspb.Message} * @constructor */ -proto.oracle.v1.QueryCountsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.oracle.v1.QueryCountsRequest, jspb.Message); +proto.oracle.v1.QueryCountsRequest = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null) +} +goog.inherits(proto.oracle.v1.QueryCountsRequest, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.oracle.v1.QueryCountsRequest.displayName = 'proto.oracle.v1.QueryCountsRequest'; + proto.oracle.v1.QueryCountsRequest.displayName = + 'proto.oracle.v1.QueryCountsRequest' } /** * Generated by JsPbCodeGenerator. @@ -80,16 +99,17 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.oracle.v1.QueryCountsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.oracle.v1.QueryCountsResponse, jspb.Message); +proto.oracle.v1.QueryCountsResponse = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null) +} +goog.inherits(proto.oracle.v1.QueryCountsResponse, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.oracle.v1.QueryCountsResponse.displayName = 'proto.oracle.v1.QueryCountsResponse'; + proto.oracle.v1.QueryCountsResponse.displayName = + 'proto.oracle.v1.QueryCountsResponse' } /** * Generated by JsPbCodeGenerator. @@ -101,16 +121,17 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.oracle.v1.QueryDataRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.oracle.v1.QueryDataRequest, jspb.Message); +proto.oracle.v1.QueryDataRequest = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null) +} +goog.inherits(proto.oracle.v1.QueryDataRequest, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.oracle.v1.QueryDataRequest.displayName = 'proto.oracle.v1.QueryDataRequest'; + proto.oracle.v1.QueryDataRequest.displayName = + 'proto.oracle.v1.QueryDataRequest' } /** * Generated by JsPbCodeGenerator. @@ -122,16 +143,17 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.oracle.v1.QueryDataResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.oracle.v1.QueryDataResponse, jspb.Message); +proto.oracle.v1.QueryDataResponse = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null) +} +goog.inherits(proto.oracle.v1.QueryDataResponse, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.oracle.v1.QueryDataResponse.displayName = 'proto.oracle.v1.QueryDataResponse'; + proto.oracle.v1.QueryDataResponse.displayName = + 'proto.oracle.v1.QueryDataResponse' } /** * Generated by JsPbCodeGenerator. @@ -143,16 +165,17 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.oracle.v1.QueryDataSourceRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.oracle.v1.QueryDataSourceRequest, jspb.Message); +proto.oracle.v1.QueryDataSourceRequest = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null) +} +goog.inherits(proto.oracle.v1.QueryDataSourceRequest, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.oracle.v1.QueryDataSourceRequest.displayName = 'proto.oracle.v1.QueryDataSourceRequest'; + proto.oracle.v1.QueryDataSourceRequest.displayName = + 'proto.oracle.v1.QueryDataSourceRequest' } /** * Generated by JsPbCodeGenerator. @@ -164,16 +187,17 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.oracle.v1.QueryDataSourceResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.oracle.v1.QueryDataSourceResponse, jspb.Message); +proto.oracle.v1.QueryDataSourceResponse = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null) +} +goog.inherits(proto.oracle.v1.QueryDataSourceResponse, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.oracle.v1.QueryDataSourceResponse.displayName = 'proto.oracle.v1.QueryDataSourceResponse'; + proto.oracle.v1.QueryDataSourceResponse.displayName = + 'proto.oracle.v1.QueryDataSourceResponse' } /** * Generated by JsPbCodeGenerator. @@ -185,16 +209,17 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.oracle.v1.QueryOracleScriptRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.oracle.v1.QueryOracleScriptRequest, jspb.Message); +proto.oracle.v1.QueryOracleScriptRequest = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null) +} +goog.inherits(proto.oracle.v1.QueryOracleScriptRequest, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.oracle.v1.QueryOracleScriptRequest.displayName = 'proto.oracle.v1.QueryOracleScriptRequest'; + proto.oracle.v1.QueryOracleScriptRequest.displayName = + 'proto.oracle.v1.QueryOracleScriptRequest' } /** * Generated by JsPbCodeGenerator. @@ -206,16 +231,17 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.oracle.v1.QueryOracleScriptResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.oracle.v1.QueryOracleScriptResponse, jspb.Message); +proto.oracle.v1.QueryOracleScriptResponse = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null) +} +goog.inherits(proto.oracle.v1.QueryOracleScriptResponse, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.oracle.v1.QueryOracleScriptResponse.displayName = 'proto.oracle.v1.QueryOracleScriptResponse'; + proto.oracle.v1.QueryOracleScriptResponse.displayName = + 'proto.oracle.v1.QueryOracleScriptResponse' } /** * Generated by JsPbCodeGenerator. @@ -227,16 +253,17 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.oracle.v1.QueryRequestRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.oracle.v1.QueryRequestRequest, jspb.Message); +proto.oracle.v1.QueryRequestRequest = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null) +} +goog.inherits(proto.oracle.v1.QueryRequestRequest, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.oracle.v1.QueryRequestRequest.displayName = 'proto.oracle.v1.QueryRequestRequest'; + proto.oracle.v1.QueryRequestRequest.displayName = + 'proto.oracle.v1.QueryRequestRequest' } /** * Generated by JsPbCodeGenerator. @@ -248,16 +275,24 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.oracle.v1.QueryRequestResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.oracle.v1.QueryRequestResponse.repeatedFields_, null); -}; -goog.inherits(proto.oracle.v1.QueryRequestResponse, jspb.Message); +proto.oracle.v1.QueryRequestResponse = function (opt_data) { + jspb.Message.initialize( + this, + opt_data, + 0, + -1, + proto.oracle.v1.QueryRequestResponse.repeatedFields_, + null, + ) +} +goog.inherits(proto.oracle.v1.QueryRequestResponse, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.oracle.v1.QueryRequestResponse.displayName = 'proto.oracle.v1.QueryRequestResponse'; + proto.oracle.v1.QueryRequestResponse.displayName = + 'proto.oracle.v1.QueryRequestResponse' } /** * Generated by JsPbCodeGenerator. @@ -269,16 +304,17 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.oracle.v1.QueryPendingRequestsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.oracle.v1.QueryPendingRequestsRequest, jspb.Message); +proto.oracle.v1.QueryPendingRequestsRequest = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null) +} +goog.inherits(proto.oracle.v1.QueryPendingRequestsRequest, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.oracle.v1.QueryPendingRequestsRequest.displayName = 'proto.oracle.v1.QueryPendingRequestsRequest'; + proto.oracle.v1.QueryPendingRequestsRequest.displayName = + 'proto.oracle.v1.QueryPendingRequestsRequest' } /** * Generated by JsPbCodeGenerator. @@ -290,16 +326,24 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.oracle.v1.QueryPendingRequestsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.oracle.v1.QueryPendingRequestsResponse.repeatedFields_, null); -}; -goog.inherits(proto.oracle.v1.QueryPendingRequestsResponse, jspb.Message); +proto.oracle.v1.QueryPendingRequestsResponse = function (opt_data) { + jspb.Message.initialize( + this, + opt_data, + 0, + -1, + proto.oracle.v1.QueryPendingRequestsResponse.repeatedFields_, + null, + ) +} +goog.inherits(proto.oracle.v1.QueryPendingRequestsResponse, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.oracle.v1.QueryPendingRequestsResponse.displayName = 'proto.oracle.v1.QueryPendingRequestsResponse'; + proto.oracle.v1.QueryPendingRequestsResponse.displayName = + 'proto.oracle.v1.QueryPendingRequestsResponse' } /** * Generated by JsPbCodeGenerator. @@ -311,16 +355,17 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.oracle.v1.QueryParamsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.oracle.v1.QueryParamsRequest, jspb.Message); +proto.oracle.v1.QueryParamsRequest = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null) +} +goog.inherits(proto.oracle.v1.QueryParamsRequest, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.oracle.v1.QueryParamsRequest.displayName = 'proto.oracle.v1.QueryParamsRequest'; + proto.oracle.v1.QueryParamsRequest.displayName = + 'proto.oracle.v1.QueryParamsRequest' } /** * Generated by JsPbCodeGenerator. @@ -332,16 +377,17 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.oracle.v1.QueryParamsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.oracle.v1.QueryParamsResponse, jspb.Message); +proto.oracle.v1.QueryParamsResponse = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null) +} +goog.inherits(proto.oracle.v1.QueryParamsResponse, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.oracle.v1.QueryParamsResponse.displayName = 'proto.oracle.v1.QueryParamsResponse'; + proto.oracle.v1.QueryParamsResponse.displayName = + 'proto.oracle.v1.QueryParamsResponse' } /** * Generated by JsPbCodeGenerator. @@ -353,16 +399,17 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.oracle.v1.QueryValidatorRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.oracle.v1.QueryValidatorRequest, jspb.Message); +proto.oracle.v1.QueryValidatorRequest = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null) +} +goog.inherits(proto.oracle.v1.QueryValidatorRequest, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.oracle.v1.QueryValidatorRequest.displayName = 'proto.oracle.v1.QueryValidatorRequest'; + proto.oracle.v1.QueryValidatorRequest.displayName = + 'proto.oracle.v1.QueryValidatorRequest' } /** * Generated by JsPbCodeGenerator. @@ -374,16 +421,17 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.oracle.v1.QueryValidatorResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.oracle.v1.QueryValidatorResponse, jspb.Message); +proto.oracle.v1.QueryValidatorResponse = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null) +} +goog.inherits(proto.oracle.v1.QueryValidatorResponse, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.oracle.v1.QueryValidatorResponse.displayName = 'proto.oracle.v1.QueryValidatorResponse'; + proto.oracle.v1.QueryValidatorResponse.displayName = + 'proto.oracle.v1.QueryValidatorResponse' } /** * Generated by JsPbCodeGenerator. @@ -395,16 +443,17 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.oracle.v1.QueryIsReporterRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.oracle.v1.QueryIsReporterRequest, jspb.Message); +proto.oracle.v1.QueryIsReporterRequest = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null) +} +goog.inherits(proto.oracle.v1.QueryIsReporterRequest, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.oracle.v1.QueryIsReporterRequest.displayName = 'proto.oracle.v1.QueryIsReporterRequest'; + proto.oracle.v1.QueryIsReporterRequest.displayName = + 'proto.oracle.v1.QueryIsReporterRequest' } /** * Generated by JsPbCodeGenerator. @@ -416,16 +465,17 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.oracle.v1.QueryIsReporterResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.oracle.v1.QueryIsReporterResponse, jspb.Message); +proto.oracle.v1.QueryIsReporterResponse = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null) +} +goog.inherits(proto.oracle.v1.QueryIsReporterResponse, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.oracle.v1.QueryIsReporterResponse.displayName = 'proto.oracle.v1.QueryIsReporterResponse'; + proto.oracle.v1.QueryIsReporterResponse.displayName = + 'proto.oracle.v1.QueryIsReporterResponse' } /** * Generated by JsPbCodeGenerator. @@ -437,16 +487,17 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.oracle.v1.QueryReportersRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.oracle.v1.QueryReportersRequest, jspb.Message); +proto.oracle.v1.QueryReportersRequest = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null) +} +goog.inherits(proto.oracle.v1.QueryReportersRequest, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.oracle.v1.QueryReportersRequest.displayName = 'proto.oracle.v1.QueryReportersRequest'; + proto.oracle.v1.QueryReportersRequest.displayName = + 'proto.oracle.v1.QueryReportersRequest' } /** * Generated by JsPbCodeGenerator. @@ -458,16 +509,24 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.oracle.v1.QueryReportersResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.oracle.v1.QueryReportersResponse.repeatedFields_, null); -}; -goog.inherits(proto.oracle.v1.QueryReportersResponse, jspb.Message); +proto.oracle.v1.QueryReportersResponse = function (opt_data) { + jspb.Message.initialize( + this, + opt_data, + 0, + -1, + proto.oracle.v1.QueryReportersResponse.repeatedFields_, + null, + ) +} +goog.inherits(proto.oracle.v1.QueryReportersResponse, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.oracle.v1.QueryReportersResponse.displayName = 'proto.oracle.v1.QueryReportersResponse'; + proto.oracle.v1.QueryReportersResponse.displayName = + 'proto.oracle.v1.QueryReportersResponse' } /** * Generated by JsPbCodeGenerator. @@ -479,16 +538,17 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.oracle.v1.QueryActiveValidatorsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.oracle.v1.QueryActiveValidatorsRequest, jspb.Message); +proto.oracle.v1.QueryActiveValidatorsRequest = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null) +} +goog.inherits(proto.oracle.v1.QueryActiveValidatorsRequest, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.oracle.v1.QueryActiveValidatorsRequest.displayName = 'proto.oracle.v1.QueryActiveValidatorsRequest'; + proto.oracle.v1.QueryActiveValidatorsRequest.displayName = + 'proto.oracle.v1.QueryActiveValidatorsRequest' } /** * Generated by JsPbCodeGenerator. @@ -500,16 +560,24 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.oracle.v1.QueryActiveValidatorsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.oracle.v1.QueryActiveValidatorsResponse.repeatedFields_, null); -}; -goog.inherits(proto.oracle.v1.QueryActiveValidatorsResponse, jspb.Message); +proto.oracle.v1.QueryActiveValidatorsResponse = function (opt_data) { + jspb.Message.initialize( + this, + opt_data, + 0, + -1, + proto.oracle.v1.QueryActiveValidatorsResponse.repeatedFields_, + null, + ) +} +goog.inherits(proto.oracle.v1.QueryActiveValidatorsResponse, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.oracle.v1.QueryActiveValidatorsResponse.displayName = 'proto.oracle.v1.QueryActiveValidatorsResponse'; + proto.oracle.v1.QueryActiveValidatorsResponse.displayName = + 'proto.oracle.v1.QueryActiveValidatorsResponse' } /** * Generated by JsPbCodeGenerator. @@ -521,16 +589,17 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.oracle.v1.QueryRequestSearchRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.oracle.v1.QueryRequestSearchRequest, jspb.Message); +proto.oracle.v1.QueryRequestSearchRequest = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null) +} +goog.inherits(proto.oracle.v1.QueryRequestSearchRequest, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.oracle.v1.QueryRequestSearchRequest.displayName = 'proto.oracle.v1.QueryRequestSearchRequest'; + proto.oracle.v1.QueryRequestSearchRequest.displayName = + 'proto.oracle.v1.QueryRequestSearchRequest' } /** * Generated by JsPbCodeGenerator. @@ -542,16 +611,17 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.oracle.v1.QueryRequestSearchResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.oracle.v1.QueryRequestSearchResponse, jspb.Message); +proto.oracle.v1.QueryRequestSearchResponse = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null) +} +goog.inherits(proto.oracle.v1.QueryRequestSearchResponse, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.oracle.v1.QueryRequestSearchResponse.displayName = 'proto.oracle.v1.QueryRequestSearchResponse'; + proto.oracle.v1.QueryRequestSearchResponse.displayName = + 'proto.oracle.v1.QueryRequestSearchResponse' } /** * Generated by JsPbCodeGenerator. @@ -563,16 +633,24 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.oracle.v1.QueryRequestPriceRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.oracle.v1.QueryRequestPriceRequest.repeatedFields_, null); -}; -goog.inherits(proto.oracle.v1.QueryRequestPriceRequest, jspb.Message); +proto.oracle.v1.QueryRequestPriceRequest = function (opt_data) { + jspb.Message.initialize( + this, + opt_data, + 0, + -1, + proto.oracle.v1.QueryRequestPriceRequest.repeatedFields_, + null, + ) +} +goog.inherits(proto.oracle.v1.QueryRequestPriceRequest, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.oracle.v1.QueryRequestPriceRequest.displayName = 'proto.oracle.v1.QueryRequestPriceRequest'; + proto.oracle.v1.QueryRequestPriceRequest.displayName = + 'proto.oracle.v1.QueryRequestPriceRequest' } /** * Generated by JsPbCodeGenerator. @@ -584,16 +662,24 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.oracle.v1.QueryRequestPriceResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.oracle.v1.QueryRequestPriceResponse.repeatedFields_, null); -}; -goog.inherits(proto.oracle.v1.QueryRequestPriceResponse, jspb.Message); +proto.oracle.v1.QueryRequestPriceResponse = function (opt_data) { + jspb.Message.initialize( + this, + opt_data, + 0, + -1, + proto.oracle.v1.QueryRequestPriceResponse.repeatedFields_, + null, + ) +} +goog.inherits(proto.oracle.v1.QueryRequestPriceResponse, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.oracle.v1.QueryRequestPriceResponse.displayName = 'proto.oracle.v1.QueryRequestPriceResponse'; + proto.oracle.v1.QueryRequestPriceResponse.displayName = + 'proto.oracle.v1.QueryRequestPriceResponse' } /** * Generated by JsPbCodeGenerator. @@ -605,16 +691,17 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.oracle.v1.QueryRequestVerificationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.oracle.v1.QueryRequestVerificationRequest, jspb.Message); +proto.oracle.v1.QueryRequestVerificationRequest = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null) +} +goog.inherits(proto.oracle.v1.QueryRequestVerificationRequest, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.oracle.v1.QueryRequestVerificationRequest.displayName = 'proto.oracle.v1.QueryRequestVerificationRequest'; + proto.oracle.v1.QueryRequestVerificationRequest.displayName = + 'proto.oracle.v1.QueryRequestVerificationRequest' } /** * Generated by JsPbCodeGenerator. @@ -626,71 +713,77 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.oracle.v1.QueryRequestVerificationResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.oracle.v1.QueryRequestVerificationResponse, jspb.Message); +proto.oracle.v1.QueryRequestVerificationResponse = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null) +} +goog.inherits(proto.oracle.v1.QueryRequestVerificationResponse, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.oracle.v1.QueryRequestVerificationResponse.displayName = 'proto.oracle.v1.QueryRequestVerificationResponse'; + proto.oracle.v1.QueryRequestVerificationResponse.displayName = + 'proto.oracle.v1.QueryRequestVerificationResponse' } - - if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.oracle.v1.QueryCountsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.oracle.v1.QueryCountsRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.oracle.v1.QueryCountsRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.oracle.v1.QueryCountsRequest.toObject = function(includeInstance, msg) { - var f, obj = { - - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.oracle.v1.QueryCountsRequest.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.oracle.v1.QueryCountsRequest.toObject( + opt_includeInstance, + this, + ) + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.oracle.v1.QueryCountsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.oracle.v1.QueryCountsRequest.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = {} + + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.oracle.v1.QueryCountsRequest} */ -proto.oracle.v1.QueryCountsRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.oracle.v1.QueryCountsRequest; - return proto.oracle.v1.QueryCountsRequest.deserializeBinaryFromReader(msg, reader); -}; - +proto.oracle.v1.QueryCountsRequest.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.oracle.v1.QueryCountsRequest() + return proto.oracle.v1.QueryCountsRequest.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -699,32 +792,33 @@ proto.oracle.v1.QueryCountsRequest.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.oracle.v1.QueryCountsRequest} */ -proto.oracle.v1.QueryCountsRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.oracle.v1.QueryCountsRequest.deserializeBinaryFromReader = function ( + msg, + reader, +) { while (reader.nextField()) { if (reader.isEndGroup()) { - break; + break } - var field = reader.getFieldNumber(); + var field = reader.getFieldNumber() switch (field) { - default: - reader.skipField(); - break; + default: + reader.skipField() + break } } - return msg; -}; - + return msg +} /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.oracle.v1.QueryCountsRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.oracle.v1.QueryCountsRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.oracle.v1.QueryCountsRequest.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter() + proto.oracle.v1.QueryCountsRequest.serializeBinaryToWriter(this, writer) + return writer.getResultBuffer() +} /** * Serializes the given message to binary data (in protobuf wire @@ -733,67 +827,75 @@ proto.oracle.v1.QueryCountsRequest.prototype.serializeBinary = function() { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.oracle.v1.QueryCountsRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - - - +proto.oracle.v1.QueryCountsRequest.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined +} if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.oracle.v1.QueryCountsResponse.prototype.toObject = function(opt_includeInstance) { - return proto.oracle.v1.QueryCountsResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.oracle.v1.QueryCountsResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.oracle.v1.QueryCountsResponse.toObject = function(includeInstance, msg) { - var f, obj = { - dataSourceCount: jspb.Message.getFieldWithDefault(msg, 1, 0), - oracleScriptCount: jspb.Message.getFieldWithDefault(msg, 2, 0), - requestCount: jspb.Message.getFieldWithDefault(msg, 3, 0) - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.oracle.v1.QueryCountsResponse.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.oracle.v1.QueryCountsResponse.toObject( + opt_includeInstance, + this, + ) + } + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.oracle.v1.QueryCountsResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.oracle.v1.QueryCountsResponse.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = { + dataSourceCount: jspb.Message.getFieldWithDefault(msg, 1, 0), + oracleScriptCount: jspb.Message.getFieldWithDefault(msg, 2, 0), + requestCount: jspb.Message.getFieldWithDefault(msg, 3, 0), + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.oracle.v1.QueryCountsResponse} */ -proto.oracle.v1.QueryCountsResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.oracle.v1.QueryCountsResponse; - return proto.oracle.v1.QueryCountsResponse.deserializeBinaryFromReader(msg, reader); -}; - +proto.oracle.v1.QueryCountsResponse.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.oracle.v1.QueryCountsResponse() + return proto.oracle.v1.QueryCountsResponse.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -802,44 +904,45 @@ proto.oracle.v1.QueryCountsResponse.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.oracle.v1.QueryCountsResponse} */ -proto.oracle.v1.QueryCountsResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.oracle.v1.QueryCountsResponse.deserializeBinaryFromReader = function ( + msg, + reader, +) { while (reader.nextField()) { if (reader.isEndGroup()) { - break; + break } - var field = reader.getFieldNumber(); + var field = reader.getFieldNumber() switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint64()); - msg.setDataSourceCount(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint64()); - msg.setOracleScriptCount(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setRequestCount(value); - break; - default: - reader.skipField(); - break; + case 1: + var value = /** @type {number} */ (reader.readUint64()) + msg.setDataSourceCount(value) + break + case 2: + var value = /** @type {number} */ (reader.readUint64()) + msg.setOracleScriptCount(value) + break + case 3: + var value = /** @type {number} */ (reader.readUint64()) + msg.setRequestCount(value) + break + default: + reader.skipField() + break } } - return msg; -}; - + return msg +} /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.oracle.v1.QueryCountsResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.oracle.v1.QueryCountsResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.oracle.v1.QueryCountsResponse.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter() + proto.oracle.v1.QueryCountsResponse.serializeBinaryToWriter(this, writer) + return writer.getResultBuffer() +} /** * Serializes the given message to binary data (in protobuf wire @@ -848,140 +951,134 @@ proto.oracle.v1.QueryCountsResponse.prototype.serializeBinary = function() { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.oracle.v1.QueryCountsResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDataSourceCount(); +proto.oracle.v1.QueryCountsResponse.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined + f = message.getDataSourceCount() if (f !== 0) { - writer.writeUint64( - 1, - f - ); + writer.writeUint64(1, f) } - f = message.getOracleScriptCount(); + f = message.getOracleScriptCount() if (f !== 0) { - writer.writeUint64( - 2, - f - ); + writer.writeUint64(2, f) } - f = message.getRequestCount(); + f = message.getRequestCount() if (f !== 0) { - writer.writeUint64( - 3, - f - ); + writer.writeUint64(3, f) } -}; - +} /** * optional uint64 data_source_count = 1; * @return {number} */ -proto.oracle.v1.QueryCountsResponse.prototype.getDataSourceCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - +proto.oracle.v1.QueryCountsResponse.prototype.getDataSourceCount = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)) +} /** * @param {number} value * @return {!proto.oracle.v1.QueryCountsResponse} returns this */ -proto.oracle.v1.QueryCountsResponse.prototype.setDataSourceCount = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - +proto.oracle.v1.QueryCountsResponse.prototype.setDataSourceCount = function ( + value, +) { + return jspb.Message.setProto3IntField(this, 1, value) +} /** * optional uint64 oracle_script_count = 2; * @return {number} */ -proto.oracle.v1.QueryCountsResponse.prototype.getOracleScriptCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - +proto.oracle.v1.QueryCountsResponse.prototype.getOracleScriptCount = + function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)) + } /** * @param {number} value * @return {!proto.oracle.v1.QueryCountsResponse} returns this */ -proto.oracle.v1.QueryCountsResponse.prototype.setOracleScriptCount = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - +proto.oracle.v1.QueryCountsResponse.prototype.setOracleScriptCount = function ( + value, +) { + return jspb.Message.setProto3IntField(this, 2, value) +} /** * optional uint64 request_count = 3; * @return {number} */ -proto.oracle.v1.QueryCountsResponse.prototype.getRequestCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - +proto.oracle.v1.QueryCountsResponse.prototype.getRequestCount = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)) +} /** * @param {number} value * @return {!proto.oracle.v1.QueryCountsResponse} returns this */ -proto.oracle.v1.QueryCountsResponse.prototype.setRequestCount = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - - - +proto.oracle.v1.QueryCountsResponse.prototype.setRequestCount = function ( + value, +) { + return jspb.Message.setProto3IntField(this, 3, value) +} if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.oracle.v1.QueryDataRequest.prototype.toObject = function(opt_includeInstance) { - return proto.oracle.v1.QueryDataRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.oracle.v1.QueryDataRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.oracle.v1.QueryDataRequest.toObject = function(includeInstance, msg) { - var f, obj = { - dataHash: jspb.Message.getFieldWithDefault(msg, 1, "") - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.oracle.v1.QueryDataRequest.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.oracle.v1.QueryDataRequest.toObject(opt_includeInstance, this) + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.oracle.v1.QueryDataRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.oracle.v1.QueryDataRequest.toObject = function (includeInstance, msg) { + var f, + obj = { + dataHash: jspb.Message.getFieldWithDefault(msg, 1, ''), + } + + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.oracle.v1.QueryDataRequest} */ -proto.oracle.v1.QueryDataRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.oracle.v1.QueryDataRequest; - return proto.oracle.v1.QueryDataRequest.deserializeBinaryFromReader(msg, reader); -}; - +proto.oracle.v1.QueryDataRequest.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.oracle.v1.QueryDataRequest() + return proto.oracle.v1.QueryDataRequest.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -990,36 +1087,37 @@ proto.oracle.v1.QueryDataRequest.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.oracle.v1.QueryDataRequest} */ -proto.oracle.v1.QueryDataRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.oracle.v1.QueryDataRequest.deserializeBinaryFromReader = function ( + msg, + reader, +) { while (reader.nextField()) { if (reader.isEndGroup()) { - break; + break } - var field = reader.getFieldNumber(); + var field = reader.getFieldNumber() switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setDataHash(value); - break; - default: - reader.skipField(); - break; + case 1: + var value = /** @type {string} */ (reader.readString()) + msg.setDataHash(value) + break + default: + reader.skipField() + break } } - return msg; -}; - + return msg +} /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.oracle.v1.QueryDataRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.oracle.v1.QueryDataRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.oracle.v1.QueryDataRequest.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter() + proto.oracle.v1.QueryDataRequest.serializeBinaryToWriter(this, writer) + return writer.getResultBuffer() +} /** * Serializes the given message to binary data (in protobuf wire @@ -1028,90 +1126,87 @@ proto.oracle.v1.QueryDataRequest.prototype.serializeBinary = function() { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.oracle.v1.QueryDataRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDataHash(); +proto.oracle.v1.QueryDataRequest.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined + f = message.getDataHash() if (f.length > 0) { - writer.writeString( - 1, - f - ); + writer.writeString(1, f) } -}; - +} /** * optional string data_hash = 1; * @return {string} */ -proto.oracle.v1.QueryDataRequest.prototype.getDataHash = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - +proto.oracle.v1.QueryDataRequest.prototype.getDataHash = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, '')) +} /** * @param {string} value * @return {!proto.oracle.v1.QueryDataRequest} returns this */ -proto.oracle.v1.QueryDataRequest.prototype.setDataHash = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - +proto.oracle.v1.QueryDataRequest.prototype.setDataHash = function (value) { + return jspb.Message.setProto3StringField(this, 1, value) +} if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.oracle.v1.QueryDataResponse.prototype.toObject = function(opt_includeInstance) { - return proto.oracle.v1.QueryDataResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.oracle.v1.QueryDataResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.oracle.v1.QueryDataResponse.toObject = function(includeInstance, msg) { - var f, obj = { - data: msg.getData_asB64() - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.oracle.v1.QueryDataResponse.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.oracle.v1.QueryDataResponse.toObject(opt_includeInstance, this) + } + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.oracle.v1.QueryDataResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.oracle.v1.QueryDataResponse.toObject = function (includeInstance, msg) { + var f, + obj = { + data: msg.getData_asB64(), + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.oracle.v1.QueryDataResponse} */ -proto.oracle.v1.QueryDataResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.oracle.v1.QueryDataResponse; - return proto.oracle.v1.QueryDataResponse.deserializeBinaryFromReader(msg, reader); -}; - +proto.oracle.v1.QueryDataResponse.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.oracle.v1.QueryDataResponse() + return proto.oracle.v1.QueryDataResponse.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -1120,36 +1215,37 @@ proto.oracle.v1.QueryDataResponse.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.oracle.v1.QueryDataResponse} */ -proto.oracle.v1.QueryDataResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.oracle.v1.QueryDataResponse.deserializeBinaryFromReader = function ( + msg, + reader, +) { while (reader.nextField()) { if (reader.isEndGroup()) { - break; + break } - var field = reader.getFieldNumber(); + var field = reader.getFieldNumber() switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setData(value); - break; - default: - reader.skipField(); - break; + case 1: + var value = /** @type {!Uint8Array} */ (reader.readBytes()) + msg.setData(value) + break + default: + reader.skipField() + break } } - return msg; -}; - + return msg +} /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.oracle.v1.QueryDataResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.oracle.v1.QueryDataResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.oracle.v1.QueryDataResponse.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter() + proto.oracle.v1.QueryDataResponse.serializeBinaryToWriter(this, writer) + return writer.getResultBuffer() +} /** * Serializes the given message to binary data (in protobuf wire @@ -1158,37 +1254,35 @@ proto.oracle.v1.QueryDataResponse.prototype.serializeBinary = function() { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.oracle.v1.QueryDataResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getData_asU8(); +proto.oracle.v1.QueryDataResponse.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined + f = message.getData_asU8() if (f.length > 0) { - writer.writeBytes( - 1, - f - ); + writer.writeBytes(1, f) } -}; - +} /** * optional bytes data = 1; * @return {!(string|Uint8Array)} */ -proto.oracle.v1.QueryDataResponse.prototype.getData = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - +proto.oracle.v1.QueryDataResponse.prototype.getData = function () { + return /** @type {!(string|Uint8Array)} */ ( + jspb.Message.getFieldWithDefault(this, 1, '') + ) +} /** * optional bytes data = 1; * This is a type-conversion wrapper around `getData()` * @return {string} */ -proto.oracle.v1.QueryDataResponse.prototype.getData_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getData())); -}; - +proto.oracle.v1.QueryDataResponse.prototype.getData_asB64 = function () { + return /** @type {string} */ (jspb.Message.bytesAsB64(this.getData())) +} /** * optional bytes data = 1; @@ -1197,75 +1291,78 @@ proto.oracle.v1.QueryDataResponse.prototype.getData_asB64 = function() { * This is a type-conversion wrapper around `getData()` * @return {!Uint8Array} */ -proto.oracle.v1.QueryDataResponse.prototype.getData_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getData())); -}; - +proto.oracle.v1.QueryDataResponse.prototype.getData_asU8 = function () { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(this.getData())) +} /** * @param {!(string|Uint8Array)} value * @return {!proto.oracle.v1.QueryDataResponse} returns this */ -proto.oracle.v1.QueryDataResponse.prototype.setData = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - - - +proto.oracle.v1.QueryDataResponse.prototype.setData = function (value) { + return jspb.Message.setProto3BytesField(this, 1, value) +} if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.oracle.v1.QueryDataSourceRequest.prototype.toObject = function(opt_includeInstance) { - return proto.oracle.v1.QueryDataSourceRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.oracle.v1.QueryDataSourceRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.oracle.v1.QueryDataSourceRequest.toObject = function(includeInstance, msg) { - var f, obj = { - dataSourceId: jspb.Message.getFieldWithDefault(msg, 1, 0) - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.oracle.v1.QueryDataSourceRequest.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.oracle.v1.QueryDataSourceRequest.toObject( + opt_includeInstance, + this, + ) + } + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.oracle.v1.QueryDataSourceRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.oracle.v1.QueryDataSourceRequest.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = { + dataSourceId: jspb.Message.getFieldWithDefault(msg, 1, 0), + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.oracle.v1.QueryDataSourceRequest} */ -proto.oracle.v1.QueryDataSourceRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.oracle.v1.QueryDataSourceRequest; - return proto.oracle.v1.QueryDataSourceRequest.deserializeBinaryFromReader(msg, reader); -}; - +proto.oracle.v1.QueryDataSourceRequest.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.oracle.v1.QueryDataSourceRequest() + return proto.oracle.v1.QueryDataSourceRequest.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -1274,36 +1371,37 @@ proto.oracle.v1.QueryDataSourceRequest.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.oracle.v1.QueryDataSourceRequest} */ -proto.oracle.v1.QueryDataSourceRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.oracle.v1.QueryDataSourceRequest.deserializeBinaryFromReader = function ( + msg, + reader, +) { while (reader.nextField()) { if (reader.isEndGroup()) { - break; + break } - var field = reader.getFieldNumber(); + var field = reader.getFieldNumber() switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint64()); - msg.setDataSourceId(value); - break; - default: - reader.skipField(); - break; + case 1: + var value = /** @type {number} */ (reader.readUint64()) + msg.setDataSourceId(value) + break + default: + reader.skipField() + break } } - return msg; -}; - + return msg +} /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.oracle.v1.QueryDataSourceRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.oracle.v1.QueryDataSourceRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.oracle.v1.QueryDataSourceRequest.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter() + proto.oracle.v1.QueryDataSourceRequest.serializeBinaryToWriter(this, writer) + return writer.getResultBuffer() +} /** * Serializes the given message to binary data (in protobuf wire @@ -1312,90 +1410,97 @@ proto.oracle.v1.QueryDataSourceRequest.prototype.serializeBinary = function() { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.oracle.v1.QueryDataSourceRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDataSourceId(); +proto.oracle.v1.QueryDataSourceRequest.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined + f = message.getDataSourceId() if (f !== 0) { - writer.writeUint64( - 1, - f - ); + writer.writeUint64(1, f) } -}; - +} /** * optional uint64 data_source_id = 1; * @return {number} */ -proto.oracle.v1.QueryDataSourceRequest.prototype.getDataSourceId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - +proto.oracle.v1.QueryDataSourceRequest.prototype.getDataSourceId = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)) +} /** * @param {number} value * @return {!proto.oracle.v1.QueryDataSourceRequest} returns this */ -proto.oracle.v1.QueryDataSourceRequest.prototype.setDataSourceId = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - - - +proto.oracle.v1.QueryDataSourceRequest.prototype.setDataSourceId = function ( + value, +) { + return jspb.Message.setProto3IntField(this, 1, value) +} if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.oracle.v1.QueryDataSourceResponse.prototype.toObject = function(opt_includeInstance) { - return proto.oracle.v1.QueryDataSourceResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.oracle.v1.QueryDataSourceResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.oracle.v1.QueryDataSourceResponse.toObject = function(includeInstance, msg) { - var f, obj = { - dataSource: (f = msg.getDataSource()) && oracle_v1_oracle_pb.DataSource.toObject(includeInstance, f) - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.oracle.v1.QueryDataSourceResponse.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.oracle.v1.QueryDataSourceResponse.toObject( + opt_includeInstance, + this, + ) + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.oracle.v1.QueryDataSourceResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.oracle.v1.QueryDataSourceResponse.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = { + dataSource: + (f = msg.getDataSource()) && + oracle_v1_oracle_pb.DataSource.toObject(includeInstance, f), + } + + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.oracle.v1.QueryDataSourceResponse} */ -proto.oracle.v1.QueryDataSourceResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.oracle.v1.QueryDataSourceResponse; - return proto.oracle.v1.QueryDataSourceResponse.deserializeBinaryFromReader(msg, reader); -}; - +proto.oracle.v1.QueryDataSourceResponse.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.oracle.v1.QueryDataSourceResponse() + return proto.oracle.v1.QueryDataSourceResponse.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -1404,37 +1509,45 @@ proto.oracle.v1.QueryDataSourceResponse.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.oracle.v1.QueryDataSourceResponse} */ -proto.oracle.v1.QueryDataSourceResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.oracle.v1.QueryDataSourceResponse.deserializeBinaryFromReader = function ( + msg, + reader, +) { while (reader.nextField()) { if (reader.isEndGroup()) { - break; + break } - var field = reader.getFieldNumber(); + var field = reader.getFieldNumber() switch (field) { - case 1: - var value = new oracle_v1_oracle_pb.DataSource; - reader.readMessage(value,oracle_v1_oracle_pb.DataSource.deserializeBinaryFromReader); - msg.setDataSource(value); - break; - default: - reader.skipField(); - break; + case 1: + var value = new oracle_v1_oracle_pb.DataSource() + reader.readMessage( + value, + oracle_v1_oracle_pb.DataSource.deserializeBinaryFromReader, + ) + msg.setDataSource(value) + break + default: + reader.skipField() + break } } - return msg; -}; - + return msg +} /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.oracle.v1.QueryDataSourceResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.oracle.v1.QueryDataSourceResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.oracle.v1.QueryDataSourceResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter() + proto.oracle.v1.QueryDataSourceResponse.serializeBinaryToWriter( + this, + writer, + ) + return writer.getResultBuffer() + } /** * Serializes the given message to binary data (in protobuf wire @@ -1443,110 +1556,118 @@ proto.oracle.v1.QueryDataSourceResponse.prototype.serializeBinary = function() { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.oracle.v1.QueryDataSourceResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDataSource(); +proto.oracle.v1.QueryDataSourceResponse.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined + f = message.getDataSource() if (f != null) { writer.writeMessage( 1, f, - oracle_v1_oracle_pb.DataSource.serializeBinaryToWriter - ); + oracle_v1_oracle_pb.DataSource.serializeBinaryToWriter, + ) } -}; - +} /** * optional DataSource data_source = 1; * @return {?proto.oracle.v1.DataSource} */ -proto.oracle.v1.QueryDataSourceResponse.prototype.getDataSource = function() { +proto.oracle.v1.QueryDataSourceResponse.prototype.getDataSource = function () { return /** @type{?proto.oracle.v1.DataSource} */ ( - jspb.Message.getWrapperField(this, oracle_v1_oracle_pb.DataSource, 1)); -}; - + jspb.Message.getWrapperField(this, oracle_v1_oracle_pb.DataSource, 1) + ) +} /** * @param {?proto.oracle.v1.DataSource|undefined} value * @return {!proto.oracle.v1.QueryDataSourceResponse} returns this -*/ -proto.oracle.v1.QueryDataSourceResponse.prototype.setDataSource = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - + */ +proto.oracle.v1.QueryDataSourceResponse.prototype.setDataSource = function ( + value, +) { + return jspb.Message.setWrapperField(this, 1, value) +} /** * Clears the message field making it undefined. * @return {!proto.oracle.v1.QueryDataSourceResponse} returns this */ -proto.oracle.v1.QueryDataSourceResponse.prototype.clearDataSource = function() { - return this.setDataSource(undefined); -}; - +proto.oracle.v1.QueryDataSourceResponse.prototype.clearDataSource = + function () { + return this.setDataSource(undefined) + } /** * Returns whether this field is set. * @return {boolean} */ -proto.oracle.v1.QueryDataSourceResponse.prototype.hasDataSource = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - +proto.oracle.v1.QueryDataSourceResponse.prototype.hasDataSource = function () { + return jspb.Message.getField(this, 1) != null +} if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.oracle.v1.QueryOracleScriptRequest.prototype.toObject = function(opt_includeInstance) { - return proto.oracle.v1.QueryOracleScriptRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.oracle.v1.QueryOracleScriptRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.oracle.v1.QueryOracleScriptRequest.toObject = function(includeInstance, msg) { - var f, obj = { - oracleScriptId: jspb.Message.getFieldWithDefault(msg, 1, 0) - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.oracle.v1.QueryOracleScriptRequest.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.oracle.v1.QueryOracleScriptRequest.toObject( + opt_includeInstance, + this, + ) + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.oracle.v1.QueryOracleScriptRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.oracle.v1.QueryOracleScriptRequest.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = { + oracleScriptId: jspb.Message.getFieldWithDefault(msg, 1, 0), + } + + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.oracle.v1.QueryOracleScriptRequest} */ -proto.oracle.v1.QueryOracleScriptRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.oracle.v1.QueryOracleScriptRequest; - return proto.oracle.v1.QueryOracleScriptRequest.deserializeBinaryFromReader(msg, reader); -}; - +proto.oracle.v1.QueryOracleScriptRequest.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.oracle.v1.QueryOracleScriptRequest() + return proto.oracle.v1.QueryOracleScriptRequest.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -1555,36 +1676,39 @@ proto.oracle.v1.QueryOracleScriptRequest.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.oracle.v1.QueryOracleScriptRequest} */ -proto.oracle.v1.QueryOracleScriptRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint64()); - msg.setOracleScriptId(value); - break; - default: - reader.skipField(); - break; +proto.oracle.v1.QueryOracleScriptRequest.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break + } + var field = reader.getFieldNumber() + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readUint64()) + msg.setOracleScriptId(value) + break + default: + reader.skipField() + break + } } + return msg } - return msg; -}; - /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.oracle.v1.QueryOracleScriptRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.oracle.v1.QueryOracleScriptRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.oracle.v1.QueryOracleScriptRequest.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter() + proto.oracle.v1.QueryOracleScriptRequest.serializeBinaryToWriter( + this, + writer, + ) + return writer.getResultBuffer() + } /** * Serializes the given message to binary data (in protobuf wire @@ -1593,90 +1717,97 @@ proto.oracle.v1.QueryOracleScriptRequest.prototype.serializeBinary = function() * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.oracle.v1.QueryOracleScriptRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOracleScriptId(); +proto.oracle.v1.QueryOracleScriptRequest.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined + f = message.getOracleScriptId() if (f !== 0) { - writer.writeUint64( - 1, - f - ); + writer.writeUint64(1, f) } -}; - +} /** * optional uint64 oracle_script_id = 1; * @return {number} */ -proto.oracle.v1.QueryOracleScriptRequest.prototype.getOracleScriptId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - +proto.oracle.v1.QueryOracleScriptRequest.prototype.getOracleScriptId = + function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)) + } /** * @param {number} value * @return {!proto.oracle.v1.QueryOracleScriptRequest} returns this */ -proto.oracle.v1.QueryOracleScriptRequest.prototype.setOracleScriptId = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - - - +proto.oracle.v1.QueryOracleScriptRequest.prototype.setOracleScriptId = + function (value) { + return jspb.Message.setProto3IntField(this, 1, value) + } if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.oracle.v1.QueryOracleScriptResponse.prototype.toObject = function(opt_includeInstance) { - return proto.oracle.v1.QueryOracleScriptResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.oracle.v1.QueryOracleScriptResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.oracle.v1.QueryOracleScriptResponse.toObject = function(includeInstance, msg) { - var f, obj = { - oracleScript: (f = msg.getOracleScript()) && oracle_v1_oracle_pb.OracleScript.toObject(includeInstance, f) - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.oracle.v1.QueryOracleScriptResponse.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.oracle.v1.QueryOracleScriptResponse.toObject( + opt_includeInstance, + this, + ) + } + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.oracle.v1.QueryOracleScriptResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.oracle.v1.QueryOracleScriptResponse.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = { + oracleScript: + (f = msg.getOracleScript()) && + oracle_v1_oracle_pb.OracleScript.toObject(includeInstance, f), + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.oracle.v1.QueryOracleScriptResponse} */ -proto.oracle.v1.QueryOracleScriptResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.oracle.v1.QueryOracleScriptResponse; - return proto.oracle.v1.QueryOracleScriptResponse.deserializeBinaryFromReader(msg, reader); -}; - +proto.oracle.v1.QueryOracleScriptResponse.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.oracle.v1.QueryOracleScriptResponse() + return proto.oracle.v1.QueryOracleScriptResponse.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -1685,37 +1816,43 @@ proto.oracle.v1.QueryOracleScriptResponse.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.oracle.v1.QueryOracleScriptResponse} */ -proto.oracle.v1.QueryOracleScriptResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new oracle_v1_oracle_pb.OracleScript; - reader.readMessage(value,oracle_v1_oracle_pb.OracleScript.deserializeBinaryFromReader); - msg.setOracleScript(value); - break; - default: - reader.skipField(); - break; +proto.oracle.v1.QueryOracleScriptResponse.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break + } + var field = reader.getFieldNumber() + switch (field) { + case 1: + var value = new oracle_v1_oracle_pb.OracleScript() + reader.readMessage( + value, + oracle_v1_oracle_pb.OracleScript.deserializeBinaryFromReader, + ) + msg.setOracleScript(value) + break + default: + reader.skipField() + break + } } + return msg } - return msg; -}; - /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.oracle.v1.QueryOracleScriptResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.oracle.v1.QueryOracleScriptResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.oracle.v1.QueryOracleScriptResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter() + proto.oracle.v1.QueryOracleScriptResponse.serializeBinaryToWriter( + this, + writer, + ) + return writer.getResultBuffer() + } /** * Serializes the given message to binary data (in protobuf wire @@ -1724,110 +1861,120 @@ proto.oracle.v1.QueryOracleScriptResponse.prototype.serializeBinary = function() * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.oracle.v1.QueryOracleScriptResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOracleScript(); +proto.oracle.v1.QueryOracleScriptResponse.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined + f = message.getOracleScript() if (f != null) { writer.writeMessage( 1, f, - oracle_v1_oracle_pb.OracleScript.serializeBinaryToWriter - ); + oracle_v1_oracle_pb.OracleScript.serializeBinaryToWriter, + ) } -}; - +} /** * optional OracleScript oracle_script = 1; * @return {?proto.oracle.v1.OracleScript} */ -proto.oracle.v1.QueryOracleScriptResponse.prototype.getOracleScript = function() { - return /** @type{?proto.oracle.v1.OracleScript} */ ( - jspb.Message.getWrapperField(this, oracle_v1_oracle_pb.OracleScript, 1)); -}; - +proto.oracle.v1.QueryOracleScriptResponse.prototype.getOracleScript = + function () { + return /** @type{?proto.oracle.v1.OracleScript} */ ( + jspb.Message.getWrapperField(this, oracle_v1_oracle_pb.OracleScript, 1) + ) + } /** * @param {?proto.oracle.v1.OracleScript|undefined} value * @return {!proto.oracle.v1.QueryOracleScriptResponse} returns this -*/ -proto.oracle.v1.QueryOracleScriptResponse.prototype.setOracleScript = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - + */ +proto.oracle.v1.QueryOracleScriptResponse.prototype.setOracleScript = function ( + value, +) { + return jspb.Message.setWrapperField(this, 1, value) +} /** * Clears the message field making it undefined. * @return {!proto.oracle.v1.QueryOracleScriptResponse} returns this */ -proto.oracle.v1.QueryOracleScriptResponse.prototype.clearOracleScript = function() { - return this.setOracleScript(undefined); -}; - +proto.oracle.v1.QueryOracleScriptResponse.prototype.clearOracleScript = + function () { + return this.setOracleScript(undefined) + } /** * Returns whether this field is set. * @return {boolean} */ -proto.oracle.v1.QueryOracleScriptResponse.prototype.hasOracleScript = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - +proto.oracle.v1.QueryOracleScriptResponse.prototype.hasOracleScript = + function () { + return jspb.Message.getField(this, 1) != null + } if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.oracle.v1.QueryRequestRequest.prototype.toObject = function(opt_includeInstance) { - return proto.oracle.v1.QueryRequestRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.oracle.v1.QueryRequestRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.oracle.v1.QueryRequestRequest.toObject = function(includeInstance, msg) { - var f, obj = { - requestId: jspb.Message.getFieldWithDefault(msg, 1, 0) - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.oracle.v1.QueryRequestRequest.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.oracle.v1.QueryRequestRequest.toObject( + opt_includeInstance, + this, + ) + } + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.oracle.v1.QueryRequestRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.oracle.v1.QueryRequestRequest.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = { + requestId: jspb.Message.getFieldWithDefault(msg, 1, 0), + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.oracle.v1.QueryRequestRequest} */ -proto.oracle.v1.QueryRequestRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.oracle.v1.QueryRequestRequest; - return proto.oracle.v1.QueryRequestRequest.deserializeBinaryFromReader(msg, reader); -}; - +proto.oracle.v1.QueryRequestRequest.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.oracle.v1.QueryRequestRequest() + return proto.oracle.v1.QueryRequestRequest.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -1836,36 +1983,37 @@ proto.oracle.v1.QueryRequestRequest.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.oracle.v1.QueryRequestRequest} */ -proto.oracle.v1.QueryRequestRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.oracle.v1.QueryRequestRequest.deserializeBinaryFromReader = function ( + msg, + reader, +) { while (reader.nextField()) { if (reader.isEndGroup()) { - break; + break } - var field = reader.getFieldNumber(); + var field = reader.getFieldNumber() switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint64()); - msg.setRequestId(value); - break; - default: - reader.skipField(); - break; + case 1: + var value = /** @type {number} */ (reader.readUint64()) + msg.setRequestId(value) + break + default: + reader.skipField() + break } } - return msg; -}; - + return msg +} /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.oracle.v1.QueryRequestRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.oracle.v1.QueryRequestRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.oracle.v1.QueryRequestRequest.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter() + proto.oracle.v1.QueryRequestRequest.serializeBinaryToWriter(this, writer) + return writer.getResultBuffer() +} /** * Serializes the given message to binary data (in protobuf wire @@ -1874,101 +2022,110 @@ proto.oracle.v1.QueryRequestRequest.prototype.serializeBinary = function() { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.oracle.v1.QueryRequestRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRequestId(); +proto.oracle.v1.QueryRequestRequest.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined + f = message.getRequestId() if (f !== 0) { - writer.writeUint64( - 1, - f - ); + writer.writeUint64(1, f) } -}; - +} /** * optional uint64 request_id = 1; * @return {number} */ -proto.oracle.v1.QueryRequestRequest.prototype.getRequestId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - +proto.oracle.v1.QueryRequestRequest.prototype.getRequestId = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)) +} /** * @param {number} value * @return {!proto.oracle.v1.QueryRequestRequest} returns this */ -proto.oracle.v1.QueryRequestRequest.prototype.setRequestId = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - +proto.oracle.v1.QueryRequestRequest.prototype.setRequestId = function (value) { + return jspb.Message.setProto3IntField(this, 1, value) +} /** * List of repeated fields within this message type. * @private {!Array} * @const */ -proto.oracle.v1.QueryRequestResponse.repeatedFields_ = [2]; - - +proto.oracle.v1.QueryRequestResponse.repeatedFields_ = [2] if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.oracle.v1.QueryRequestResponse.prototype.toObject = function(opt_includeInstance) { - return proto.oracle.v1.QueryRequestResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.oracle.v1.QueryRequestResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.oracle.v1.QueryRequestResponse.toObject = function(includeInstance, msg) { - var f, obj = { - request: (f = msg.getRequest()) && oracle_v1_oracle_pb.Request.toObject(includeInstance, f), - reportsList: jspb.Message.toObjectList(msg.getReportsList(), - oracle_v1_oracle_pb.Report.toObject, includeInstance), - result: (f = msg.getResult()) && oracle_v1_oracle_pb.Result.toObject(includeInstance, f), - signing: (f = msg.getSigning()) && oracle_v1_oracle_pb.SigningResult.toObject(includeInstance, f) - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.oracle.v1.QueryRequestResponse.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.oracle.v1.QueryRequestResponse.toObject( + opt_includeInstance, + this, + ) + } + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.oracle.v1.QueryRequestResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.oracle.v1.QueryRequestResponse.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = { + request: + (f = msg.getRequest()) && + oracle_v1_oracle_pb.Request.toObject(includeInstance, f), + reportsList: jspb.Message.toObjectList( + msg.getReportsList(), + oracle_v1_oracle_pb.Report.toObject, + includeInstance, + ), + result: + (f = msg.getResult()) && + oracle_v1_oracle_pb.Result.toObject(includeInstance, f), + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.oracle.v1.QueryRequestResponse} */ -proto.oracle.v1.QueryRequestResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.oracle.v1.QueryRequestResponse; - return proto.oracle.v1.QueryRequestResponse.deserializeBinaryFromReader(msg, reader); -}; - +proto.oracle.v1.QueryRequestResponse.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.oracle.v1.QueryRequestResponse() + return proto.oracle.v1.QueryRequestResponse.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -1977,52 +2134,57 @@ proto.oracle.v1.QueryRequestResponse.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.oracle.v1.QueryRequestResponse} */ -proto.oracle.v1.QueryRequestResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.oracle.v1.QueryRequestResponse.deserializeBinaryFromReader = function ( + msg, + reader, +) { while (reader.nextField()) { if (reader.isEndGroup()) { - break; + break } - var field = reader.getFieldNumber(); + var field = reader.getFieldNumber() switch (field) { - case 1: - var value = new oracle_v1_oracle_pb.Request; - reader.readMessage(value,oracle_v1_oracle_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - case 2: - var value = new oracle_v1_oracle_pb.Report; - reader.readMessage(value,oracle_v1_oracle_pb.Report.deserializeBinaryFromReader); - msg.addReports(value); - break; - case 3: - var value = new oracle_v1_oracle_pb.Result; - reader.readMessage(value,oracle_v1_oracle_pb.Result.deserializeBinaryFromReader); - msg.setResult(value); - break; - case 4: - var value = new oracle_v1_oracle_pb.SigningResult; - reader.readMessage(value,oracle_v1_oracle_pb.SigningResult.deserializeBinaryFromReader); - msg.setSigning(value); - break; - default: - reader.skipField(); - break; + case 1: + var value = new oracle_v1_oracle_pb.Request() + reader.readMessage( + value, + oracle_v1_oracle_pb.Request.deserializeBinaryFromReader, + ) + msg.setRequest(value) + break + case 2: + var value = new oracle_v1_oracle_pb.Report() + reader.readMessage( + value, + oracle_v1_oracle_pb.Report.deserializeBinaryFromReader, + ) + msg.addReports(value) + break + case 3: + var value = new oracle_v1_oracle_pb.Result() + reader.readMessage( + value, + oracle_v1_oracle_pb.Result.deserializeBinaryFromReader, + ) + msg.setResult(value) + break + default: + reader.skipField() + break } } - return msg; -}; - + return msg +} /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.oracle.v1.QueryRequestResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.oracle.v1.QueryRequestResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.oracle.v1.QueryRequestResponse.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter() + proto.oracle.v1.QueryRequestResponse.serializeBinaryToWriter(this, writer) + return writer.getResultBuffer() +} /** * Serializes the given message to binary data (in protobuf wire @@ -2031,246 +2193,213 @@ proto.oracle.v1.QueryRequestResponse.prototype.serializeBinary = function() { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.oracle.v1.QueryRequestResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRequest(); +proto.oracle.v1.QueryRequestResponse.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined + f = message.getRequest() if (f != null) { writer.writeMessage( 1, f, - oracle_v1_oracle_pb.Request.serializeBinaryToWriter - ); + oracle_v1_oracle_pb.Request.serializeBinaryToWriter, + ) } - f = message.getReportsList(); + f = message.getReportsList() if (f.length > 0) { writer.writeRepeatedMessage( 2, f, - oracle_v1_oracle_pb.Report.serializeBinaryToWriter - ); + oracle_v1_oracle_pb.Report.serializeBinaryToWriter, + ) } - f = message.getResult(); + f = message.getResult() if (f != null) { writer.writeMessage( 3, f, - oracle_v1_oracle_pb.Result.serializeBinaryToWriter - ); - } - f = message.getSigning(); - if (f != null) { - writer.writeMessage( - 4, - f, - oracle_v1_oracle_pb.SigningResult.serializeBinaryToWriter - ); + oracle_v1_oracle_pb.Result.serializeBinaryToWriter, + ) } -}; - +} /** * optional Request request = 1; * @return {?proto.oracle.v1.Request} */ -proto.oracle.v1.QueryRequestResponse.prototype.getRequest = function() { +proto.oracle.v1.QueryRequestResponse.prototype.getRequest = function () { return /** @type{?proto.oracle.v1.Request} */ ( - jspb.Message.getWrapperField(this, oracle_v1_oracle_pb.Request, 1)); -}; - + jspb.Message.getWrapperField(this, oracle_v1_oracle_pb.Request, 1) + ) +} /** * @param {?proto.oracle.v1.Request|undefined} value * @return {!proto.oracle.v1.QueryRequestResponse} returns this -*/ -proto.oracle.v1.QueryRequestResponse.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - + */ +proto.oracle.v1.QueryRequestResponse.prototype.setRequest = function (value) { + return jspb.Message.setWrapperField(this, 1, value) +} /** * Clears the message field making it undefined. * @return {!proto.oracle.v1.QueryRequestResponse} returns this */ -proto.oracle.v1.QueryRequestResponse.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - +proto.oracle.v1.QueryRequestResponse.prototype.clearRequest = function () { + return this.setRequest(undefined) +} /** * Returns whether this field is set. * @return {boolean} */ -proto.oracle.v1.QueryRequestResponse.prototype.hasRequest = function() { - return jspb.Message.getField(this, 1) != null; -}; - +proto.oracle.v1.QueryRequestResponse.prototype.hasRequest = function () { + return jspb.Message.getField(this, 1) != null +} /** * repeated Report reports = 2; * @return {!Array} */ -proto.oracle.v1.QueryRequestResponse.prototype.getReportsList = function() { +proto.oracle.v1.QueryRequestResponse.prototype.getReportsList = function () { return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, oracle_v1_oracle_pb.Report, 2)); -}; - + jspb.Message.getRepeatedWrapperField(this, oracle_v1_oracle_pb.Report, 2) + ) +} /** * @param {!Array} value * @return {!proto.oracle.v1.QueryRequestResponse} returns this -*/ -proto.oracle.v1.QueryRequestResponse.prototype.setReportsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - + */ +proto.oracle.v1.QueryRequestResponse.prototype.setReportsList = function ( + value, +) { + return jspb.Message.setRepeatedWrapperField(this, 2, value) +} /** * @param {!proto.oracle.v1.Report=} opt_value * @param {number=} opt_index * @return {!proto.oracle.v1.Report} */ -proto.oracle.v1.QueryRequestResponse.prototype.addReports = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.oracle.v1.Report, opt_index); -}; - +proto.oracle.v1.QueryRequestResponse.prototype.addReports = function ( + opt_value, + opt_index, +) { + return jspb.Message.addToRepeatedWrapperField( + this, + 2, + opt_value, + proto.oracle.v1.Report, + opt_index, + ) +} /** * Clears the list making it empty but non-null. * @return {!proto.oracle.v1.QueryRequestResponse} returns this */ -proto.oracle.v1.QueryRequestResponse.prototype.clearReportsList = function() { - return this.setReportsList([]); -}; - +proto.oracle.v1.QueryRequestResponse.prototype.clearReportsList = function () { + return this.setReportsList([]) +} /** * optional Result result = 3; * @return {?proto.oracle.v1.Result} */ -proto.oracle.v1.QueryRequestResponse.prototype.getResult = function() { +proto.oracle.v1.QueryRequestResponse.prototype.getResult = function () { return /** @type{?proto.oracle.v1.Result} */ ( - jspb.Message.getWrapperField(this, oracle_v1_oracle_pb.Result, 3)); -}; - + jspb.Message.getWrapperField(this, oracle_v1_oracle_pb.Result, 3) + ) +} /** * @param {?proto.oracle.v1.Result|undefined} value * @return {!proto.oracle.v1.QueryRequestResponse} returns this -*/ -proto.oracle.v1.QueryRequestResponse.prototype.setResult = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.oracle.v1.QueryRequestResponse} returns this - */ -proto.oracle.v1.QueryRequestResponse.prototype.clearResult = function() { - return this.setResult(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.oracle.v1.QueryRequestResponse.prototype.hasResult = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional SigningResult signing = 4; - * @return {?proto.oracle.v1.SigningResult} */ -proto.oracle.v1.QueryRequestResponse.prototype.getSigning = function() { - return /** @type{?proto.oracle.v1.SigningResult} */ ( - jspb.Message.getWrapperField(this, oracle_v1_oracle_pb.SigningResult, 4)); -}; - - -/** - * @param {?proto.oracle.v1.SigningResult|undefined} value - * @return {!proto.oracle.v1.QueryRequestResponse} returns this -*/ -proto.oracle.v1.QueryRequestResponse.prototype.setSigning = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - +proto.oracle.v1.QueryRequestResponse.prototype.setResult = function (value) { + return jspb.Message.setWrapperField(this, 3, value) +} /** * Clears the message field making it undefined. * @return {!proto.oracle.v1.QueryRequestResponse} returns this */ -proto.oracle.v1.QueryRequestResponse.prototype.clearSigning = function() { - return this.setSigning(undefined); -}; - +proto.oracle.v1.QueryRequestResponse.prototype.clearResult = function () { + return this.setResult(undefined) +} /** * Returns whether this field is set. * @return {boolean} */ -proto.oracle.v1.QueryRequestResponse.prototype.hasSigning = function() { - return jspb.Message.getField(this, 4) != null; -}; - - - - +proto.oracle.v1.QueryRequestResponse.prototype.hasResult = function () { + return jspb.Message.getField(this, 3) != null +} if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.oracle.v1.QueryPendingRequestsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.oracle.v1.QueryPendingRequestsRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.oracle.v1.QueryPendingRequestsRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.oracle.v1.QueryPendingRequestsRequest.toObject = function(includeInstance, msg) { - var f, obj = { - validatorAddress: jspb.Message.getFieldWithDefault(msg, 1, "") - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.oracle.v1.QueryPendingRequestsRequest.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.oracle.v1.QueryPendingRequestsRequest.toObject( + opt_includeInstance, + this, + ) + } + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.oracle.v1.QueryPendingRequestsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.oracle.v1.QueryPendingRequestsRequest.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = { + validatorAddress: jspb.Message.getFieldWithDefault(msg, 1, ''), + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.oracle.v1.QueryPendingRequestsRequest} */ -proto.oracle.v1.QueryPendingRequestsRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.oracle.v1.QueryPendingRequestsRequest; - return proto.oracle.v1.QueryPendingRequestsRequest.deserializeBinaryFromReader(msg, reader); -}; - +proto.oracle.v1.QueryPendingRequestsRequest.deserializeBinary = function ( + bytes, +) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.oracle.v1.QueryPendingRequestsRequest() + return proto.oracle.v1.QueryPendingRequestsRequest.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -2279,36 +2408,39 @@ proto.oracle.v1.QueryPendingRequestsRequest.deserializeBinary = function(bytes) * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.oracle.v1.QueryPendingRequestsRequest} */ -proto.oracle.v1.QueryPendingRequestsRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setValidatorAddress(value); - break; - default: - reader.skipField(); - break; +proto.oracle.v1.QueryPendingRequestsRequest.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break + } + var field = reader.getFieldNumber() + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()) + msg.setValidatorAddress(value) + break + default: + reader.skipField() + break + } } + return msg } - return msg; -}; - /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.oracle.v1.QueryPendingRequestsRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.oracle.v1.QueryPendingRequestsRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.oracle.v1.QueryPendingRequestsRequest.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter() + proto.oracle.v1.QueryPendingRequestsRequest.serializeBinaryToWriter( + this, + writer, + ) + return writer.getResultBuffer() + } /** * Serializes the given message to binary data (in protobuf wire @@ -2317,97 +2449,105 @@ proto.oracle.v1.QueryPendingRequestsRequest.prototype.serializeBinary = function * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.oracle.v1.QueryPendingRequestsRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getValidatorAddress(); +proto.oracle.v1.QueryPendingRequestsRequest.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined + f = message.getValidatorAddress() if (f.length > 0) { - writer.writeString( - 1, - f - ); + writer.writeString(1, f) } -}; - +} /** * optional string validator_address = 1; * @return {string} */ -proto.oracle.v1.QueryPendingRequestsRequest.prototype.getValidatorAddress = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - +proto.oracle.v1.QueryPendingRequestsRequest.prototype.getValidatorAddress = + function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, '')) + } /** * @param {string} value * @return {!proto.oracle.v1.QueryPendingRequestsRequest} returns this */ -proto.oracle.v1.QueryPendingRequestsRequest.prototype.setValidatorAddress = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - +proto.oracle.v1.QueryPendingRequestsRequest.prototype.setValidatorAddress = + function (value) { + return jspb.Message.setProto3StringField(this, 1, value) + } /** * List of repeated fields within this message type. * @private {!Array} * @const */ -proto.oracle.v1.QueryPendingRequestsResponse.repeatedFields_ = [1]; - - +proto.oracle.v1.QueryPendingRequestsResponse.repeatedFields_ = [1] if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.oracle.v1.QueryPendingRequestsResponse.prototype.toObject = function(opt_includeInstance) { - return proto.oracle.v1.QueryPendingRequestsResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.oracle.v1.QueryPendingRequestsResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.oracle.v1.QueryPendingRequestsResponse.toObject = function(includeInstance, msg) { - var f, obj = { - requestIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.oracle.v1.QueryPendingRequestsResponse.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.oracle.v1.QueryPendingRequestsResponse.toObject( + opt_includeInstance, + this, + ) + } + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.oracle.v1.QueryPendingRequestsResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.oracle.v1.QueryPendingRequestsResponse.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = { + requestIdsList: + (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f, + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.oracle.v1.QueryPendingRequestsResponse} */ -proto.oracle.v1.QueryPendingRequestsResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.oracle.v1.QueryPendingRequestsResponse; - return proto.oracle.v1.QueryPendingRequestsResponse.deserializeBinaryFromReader(msg, reader); -}; - +proto.oracle.v1.QueryPendingRequestsResponse.deserializeBinary = function ( + bytes, +) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.oracle.v1.QueryPendingRequestsResponse() + return proto.oracle.v1.QueryPendingRequestsResponse.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -2416,38 +2556,45 @@ proto.oracle.v1.QueryPendingRequestsResponse.deserializeBinary = function(bytes) * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.oracle.v1.QueryPendingRequestsResponse} */ -proto.oracle.v1.QueryPendingRequestsResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedUint64() : [reader.readUint64()]); - for (var i = 0; i < values.length; i++) { - msg.addRequestIds(values[i]); +proto.oracle.v1.QueryPendingRequestsResponse.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break + } + var field = reader.getFieldNumber() + switch (field) { + case 1: + var values = /** @type {!Array} */ ( + reader.isDelimited() + ? reader.readPackedUint64() + : [reader.readUint64()] + ) + for (var i = 0; i < values.length; i++) { + msg.addRequestIds(values[i]) + } + break + default: + reader.skipField() + break } - break; - default: - reader.skipField(); - break; } + return msg } - return msg; -}; - /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.oracle.v1.QueryPendingRequestsResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.oracle.v1.QueryPendingRequestsResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.oracle.v1.QueryPendingRequestsResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter() + proto.oracle.v1.QueryPendingRequestsResponse.serializeBinaryToWriter( + this, + writer, + ) + return writer.getResultBuffer() + } /** * Serializes the given message to binary data (in protobuf wire @@ -2456,109 +2603,112 @@ proto.oracle.v1.QueryPendingRequestsResponse.prototype.serializeBinary = functio * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.oracle.v1.QueryPendingRequestsResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRequestIdsList(); - if (f.length > 0) { - writer.writePackedUint64( - 1, - f - ); +proto.oracle.v1.QueryPendingRequestsResponse.serializeBinaryToWriter = + function (message, writer) { + var f = undefined + f = message.getRequestIdsList() + if (f.length > 0) { + writer.writePackedUint64(1, f) + } } -}; - /** * repeated uint64 request_ids = 1; * @return {!Array} */ -proto.oracle.v1.QueryPendingRequestsResponse.prototype.getRequestIdsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); -}; - +proto.oracle.v1.QueryPendingRequestsResponse.prototype.getRequestIdsList = + function () { + return /** @type {!Array} */ ( + jspb.Message.getRepeatedField(this, 1) + ) + } /** * @param {!Array} value * @return {!proto.oracle.v1.QueryPendingRequestsResponse} returns this */ -proto.oracle.v1.QueryPendingRequestsResponse.prototype.setRequestIdsList = function(value) { - return jspb.Message.setField(this, 1, value || []); -}; - +proto.oracle.v1.QueryPendingRequestsResponse.prototype.setRequestIdsList = + function (value) { + return jspb.Message.setField(this, 1, value || []) + } /** * @param {number} value * @param {number=} opt_index * @return {!proto.oracle.v1.QueryPendingRequestsResponse} returns this */ -proto.oracle.v1.QueryPendingRequestsResponse.prototype.addRequestIds = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 1, value, opt_index); -}; - +proto.oracle.v1.QueryPendingRequestsResponse.prototype.addRequestIds = + function (value, opt_index) { + return jspb.Message.addToRepeatedField(this, 1, value, opt_index) + } /** * Clears the list making it empty but non-null. * @return {!proto.oracle.v1.QueryPendingRequestsResponse} returns this */ -proto.oracle.v1.QueryPendingRequestsResponse.prototype.clearRequestIdsList = function() { - return this.setRequestIdsList([]); -}; - - - - +proto.oracle.v1.QueryPendingRequestsResponse.prototype.clearRequestIdsList = + function () { + return this.setRequestIdsList([]) + } if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.oracle.v1.QueryParamsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.oracle.v1.QueryParamsRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.oracle.v1.QueryParamsRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.oracle.v1.QueryParamsRequest.toObject = function(includeInstance, msg) { - var f, obj = { - - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.oracle.v1.QueryParamsRequest.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.oracle.v1.QueryParamsRequest.toObject( + opt_includeInstance, + this, + ) + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.oracle.v1.QueryParamsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.oracle.v1.QueryParamsRequest.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = {} + + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.oracle.v1.QueryParamsRequest} */ -proto.oracle.v1.QueryParamsRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.oracle.v1.QueryParamsRequest; - return proto.oracle.v1.QueryParamsRequest.deserializeBinaryFromReader(msg, reader); -}; - +proto.oracle.v1.QueryParamsRequest.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.oracle.v1.QueryParamsRequest() + return proto.oracle.v1.QueryParamsRequest.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -2567,32 +2717,33 @@ proto.oracle.v1.QueryParamsRequest.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.oracle.v1.QueryParamsRequest} */ -proto.oracle.v1.QueryParamsRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.oracle.v1.QueryParamsRequest.deserializeBinaryFromReader = function ( + msg, + reader, +) { while (reader.nextField()) { if (reader.isEndGroup()) { - break; + break } - var field = reader.getFieldNumber(); + var field = reader.getFieldNumber() switch (field) { - default: - reader.skipField(); - break; + default: + reader.skipField() + break } } - return msg; -}; - + return msg +} /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.oracle.v1.QueryParamsRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.oracle.v1.QueryParamsRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.oracle.v1.QueryParamsRequest.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter() + proto.oracle.v1.QueryParamsRequest.serializeBinaryToWriter(this, writer) + return writer.getResultBuffer() +} /** * Serializes the given message to binary data (in protobuf wire @@ -2601,65 +2752,75 @@ proto.oracle.v1.QueryParamsRequest.prototype.serializeBinary = function() { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.oracle.v1.QueryParamsRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - - - +proto.oracle.v1.QueryParamsRequest.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined +} if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.oracle.v1.QueryParamsResponse.prototype.toObject = function(opt_includeInstance) { - return proto.oracle.v1.QueryParamsResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.oracle.v1.QueryParamsResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.oracle.v1.QueryParamsResponse.toObject = function(includeInstance, msg) { - var f, obj = { - params: (f = msg.getParams()) && oracle_v1_oracle_pb.Params.toObject(includeInstance, f) - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.oracle.v1.QueryParamsResponse.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.oracle.v1.QueryParamsResponse.toObject( + opt_includeInstance, + this, + ) + } + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.oracle.v1.QueryParamsResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.oracle.v1.QueryParamsResponse.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = { + params: + (f = msg.getParams()) && + oracle_v1_oracle_pb.Params.toObject(includeInstance, f), + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.oracle.v1.QueryParamsResponse} */ -proto.oracle.v1.QueryParamsResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.oracle.v1.QueryParamsResponse; - return proto.oracle.v1.QueryParamsResponse.deserializeBinaryFromReader(msg, reader); -}; - +proto.oracle.v1.QueryParamsResponse.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.oracle.v1.QueryParamsResponse() + return proto.oracle.v1.QueryParamsResponse.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -2668,37 +2829,41 @@ proto.oracle.v1.QueryParamsResponse.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.oracle.v1.QueryParamsResponse} */ -proto.oracle.v1.QueryParamsResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.oracle.v1.QueryParamsResponse.deserializeBinaryFromReader = function ( + msg, + reader, +) { while (reader.nextField()) { if (reader.isEndGroup()) { - break; + break } - var field = reader.getFieldNumber(); + var field = reader.getFieldNumber() switch (field) { - case 1: - var value = new oracle_v1_oracle_pb.Params; - reader.readMessage(value,oracle_v1_oracle_pb.Params.deserializeBinaryFromReader); - msg.setParams(value); - break; - default: - reader.skipField(); - break; + case 1: + var value = new oracle_v1_oracle_pb.Params() + reader.readMessage( + value, + oracle_v1_oracle_pb.Params.deserializeBinaryFromReader, + ) + msg.setParams(value) + break + default: + reader.skipField() + break } } - return msg; -}; - + return msg +} /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.oracle.v1.QueryParamsResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.oracle.v1.QueryParamsResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.oracle.v1.QueryParamsResponse.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter() + proto.oracle.v1.QueryParamsResponse.serializeBinaryToWriter(this, writer) + return writer.getResultBuffer() +} /** * Serializes the given message to binary data (in protobuf wire @@ -2707,110 +2872,115 @@ proto.oracle.v1.QueryParamsResponse.prototype.serializeBinary = function() { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.oracle.v1.QueryParamsResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getParams(); +proto.oracle.v1.QueryParamsResponse.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined + f = message.getParams() if (f != null) { writer.writeMessage( 1, f, - oracle_v1_oracle_pb.Params.serializeBinaryToWriter - ); + oracle_v1_oracle_pb.Params.serializeBinaryToWriter, + ) } -}; - +} /** * optional Params params = 1; * @return {?proto.oracle.v1.Params} */ -proto.oracle.v1.QueryParamsResponse.prototype.getParams = function() { +proto.oracle.v1.QueryParamsResponse.prototype.getParams = function () { return /** @type{?proto.oracle.v1.Params} */ ( - jspb.Message.getWrapperField(this, oracle_v1_oracle_pb.Params, 1)); -}; - + jspb.Message.getWrapperField(this, oracle_v1_oracle_pb.Params, 1) + ) +} /** * @param {?proto.oracle.v1.Params|undefined} value * @return {!proto.oracle.v1.QueryParamsResponse} returns this -*/ -proto.oracle.v1.QueryParamsResponse.prototype.setParams = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - + */ +proto.oracle.v1.QueryParamsResponse.prototype.setParams = function (value) { + return jspb.Message.setWrapperField(this, 1, value) +} /** * Clears the message field making it undefined. * @return {!proto.oracle.v1.QueryParamsResponse} returns this */ -proto.oracle.v1.QueryParamsResponse.prototype.clearParams = function() { - return this.setParams(undefined); -}; - +proto.oracle.v1.QueryParamsResponse.prototype.clearParams = function () { + return this.setParams(undefined) +} /** * Returns whether this field is set. * @return {boolean} */ -proto.oracle.v1.QueryParamsResponse.prototype.hasParams = function() { - return jspb.Message.getField(this, 1) != null; -}; - +proto.oracle.v1.QueryParamsResponse.prototype.hasParams = function () { + return jspb.Message.getField(this, 1) != null +} +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.oracle.v1.QueryValidatorRequest.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.oracle.v1.QueryValidatorRequest.toObject( + opt_includeInstance, + this, + ) + } + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.oracle.v1.QueryValidatorRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.oracle.v1.QueryValidatorRequest.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = { + validatorAddress: jspb.Message.getFieldWithDefault(msg, 1, ''), + } - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.oracle.v1.QueryValidatorRequest.prototype.toObject = function(opt_includeInstance) { - return proto.oracle.v1.QueryValidatorRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.oracle.v1.QueryValidatorRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.oracle.v1.QueryValidatorRequest.toObject = function(includeInstance, msg) { - var f, obj = { - validatorAddress: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj + } +} /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.oracle.v1.QueryValidatorRequest} */ -proto.oracle.v1.QueryValidatorRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.oracle.v1.QueryValidatorRequest; - return proto.oracle.v1.QueryValidatorRequest.deserializeBinaryFromReader(msg, reader); -}; - +proto.oracle.v1.QueryValidatorRequest.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.oracle.v1.QueryValidatorRequest() + return proto.oracle.v1.QueryValidatorRequest.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -2819,36 +2989,37 @@ proto.oracle.v1.QueryValidatorRequest.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.oracle.v1.QueryValidatorRequest} */ -proto.oracle.v1.QueryValidatorRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.oracle.v1.QueryValidatorRequest.deserializeBinaryFromReader = function ( + msg, + reader, +) { while (reader.nextField()) { if (reader.isEndGroup()) { - break; + break } - var field = reader.getFieldNumber(); + var field = reader.getFieldNumber() switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setValidatorAddress(value); - break; - default: - reader.skipField(); - break; + case 1: + var value = /** @type {string} */ (reader.readString()) + msg.setValidatorAddress(value) + break + default: + reader.skipField() + break } } - return msg; -}; - + return msg +} /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.oracle.v1.QueryValidatorRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.oracle.v1.QueryValidatorRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.oracle.v1.QueryValidatorRequest.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter() + proto.oracle.v1.QueryValidatorRequest.serializeBinaryToWriter(this, writer) + return writer.getResultBuffer() +} /** * Serializes the given message to binary data (in protobuf wire @@ -2857,90 +3028,98 @@ proto.oracle.v1.QueryValidatorRequest.prototype.serializeBinary = function() { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.oracle.v1.QueryValidatorRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getValidatorAddress(); +proto.oracle.v1.QueryValidatorRequest.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined + f = message.getValidatorAddress() if (f.length > 0) { - writer.writeString( - 1, - f - ); + writer.writeString(1, f) } -}; - +} /** * optional string validator_address = 1; * @return {string} */ -proto.oracle.v1.QueryValidatorRequest.prototype.getValidatorAddress = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - +proto.oracle.v1.QueryValidatorRequest.prototype.getValidatorAddress = + function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, '')) + } /** * @param {string} value * @return {!proto.oracle.v1.QueryValidatorRequest} returns this */ -proto.oracle.v1.QueryValidatorRequest.prototype.setValidatorAddress = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - +proto.oracle.v1.QueryValidatorRequest.prototype.setValidatorAddress = function ( + value, +) { + return jspb.Message.setProto3StringField(this, 1, value) +} if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.oracle.v1.QueryValidatorResponse.prototype.toObject = function(opt_includeInstance) { - return proto.oracle.v1.QueryValidatorResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.oracle.v1.QueryValidatorResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.oracle.v1.QueryValidatorResponse.toObject = function(includeInstance, msg) { - var f, obj = { - status: (f = msg.getStatus()) && oracle_v1_oracle_pb.ValidatorStatus.toObject(includeInstance, f) - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.oracle.v1.QueryValidatorResponse.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.oracle.v1.QueryValidatorResponse.toObject( + opt_includeInstance, + this, + ) + } + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.oracle.v1.QueryValidatorResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.oracle.v1.QueryValidatorResponse.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = { + status: + (f = msg.getStatus()) && + oracle_v1_oracle_pb.ValidatorStatus.toObject(includeInstance, f), + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.oracle.v1.QueryValidatorResponse} */ -proto.oracle.v1.QueryValidatorResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.oracle.v1.QueryValidatorResponse; - return proto.oracle.v1.QueryValidatorResponse.deserializeBinaryFromReader(msg, reader); -}; - +proto.oracle.v1.QueryValidatorResponse.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.oracle.v1.QueryValidatorResponse() + return proto.oracle.v1.QueryValidatorResponse.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -2949,37 +3128,41 @@ proto.oracle.v1.QueryValidatorResponse.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.oracle.v1.QueryValidatorResponse} */ -proto.oracle.v1.QueryValidatorResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.oracle.v1.QueryValidatorResponse.deserializeBinaryFromReader = function ( + msg, + reader, +) { while (reader.nextField()) { if (reader.isEndGroup()) { - break; + break } - var field = reader.getFieldNumber(); + var field = reader.getFieldNumber() switch (field) { - case 1: - var value = new oracle_v1_oracle_pb.ValidatorStatus; - reader.readMessage(value,oracle_v1_oracle_pb.ValidatorStatus.deserializeBinaryFromReader); - msg.setStatus(value); - break; - default: - reader.skipField(); - break; + case 1: + var value = new oracle_v1_oracle_pb.ValidatorStatus() + reader.readMessage( + value, + oracle_v1_oracle_pb.ValidatorStatus.deserializeBinaryFromReader, + ) + msg.setStatus(value) + break + default: + reader.skipField() + break } } - return msg; -}; - + return msg +} /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.oracle.v1.QueryValidatorResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.oracle.v1.QueryValidatorResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.oracle.v1.QueryValidatorResponse.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter() + proto.oracle.v1.QueryValidatorResponse.serializeBinaryToWriter(this, writer) + return writer.getResultBuffer() +} /** * Serializes the given message to binary data (in protobuf wire @@ -2988,111 +3171,116 @@ proto.oracle.v1.QueryValidatorResponse.prototype.serializeBinary = function() { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.oracle.v1.QueryValidatorResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getStatus(); +proto.oracle.v1.QueryValidatorResponse.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined + f = message.getStatus() if (f != null) { writer.writeMessage( 1, f, - oracle_v1_oracle_pb.ValidatorStatus.serializeBinaryToWriter - ); + oracle_v1_oracle_pb.ValidatorStatus.serializeBinaryToWriter, + ) } -}; - +} /** * optional ValidatorStatus status = 1; * @return {?proto.oracle.v1.ValidatorStatus} */ -proto.oracle.v1.QueryValidatorResponse.prototype.getStatus = function() { +proto.oracle.v1.QueryValidatorResponse.prototype.getStatus = function () { return /** @type{?proto.oracle.v1.ValidatorStatus} */ ( - jspb.Message.getWrapperField(this, oracle_v1_oracle_pb.ValidatorStatus, 1)); -}; - + jspb.Message.getWrapperField(this, oracle_v1_oracle_pb.ValidatorStatus, 1) + ) +} /** * @param {?proto.oracle.v1.ValidatorStatus|undefined} value * @return {!proto.oracle.v1.QueryValidatorResponse} returns this -*/ -proto.oracle.v1.QueryValidatorResponse.prototype.setStatus = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - + */ +proto.oracle.v1.QueryValidatorResponse.prototype.setStatus = function (value) { + return jspb.Message.setWrapperField(this, 1, value) +} /** * Clears the message field making it undefined. * @return {!proto.oracle.v1.QueryValidatorResponse} returns this */ -proto.oracle.v1.QueryValidatorResponse.prototype.clearStatus = function() { - return this.setStatus(undefined); -}; - +proto.oracle.v1.QueryValidatorResponse.prototype.clearStatus = function () { + return this.setStatus(undefined) +} /** * Returns whether this field is set. * @return {boolean} */ -proto.oracle.v1.QueryValidatorResponse.prototype.hasStatus = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - +proto.oracle.v1.QueryValidatorResponse.prototype.hasStatus = function () { + return jspb.Message.getField(this, 1) != null +} if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.oracle.v1.QueryIsReporterRequest.prototype.toObject = function(opt_includeInstance) { - return proto.oracle.v1.QueryIsReporterRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.oracle.v1.QueryIsReporterRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.oracle.v1.QueryIsReporterRequest.toObject = function(includeInstance, msg) { - var f, obj = { - validatorAddress: jspb.Message.getFieldWithDefault(msg, 1, ""), - reporterAddress: jspb.Message.getFieldWithDefault(msg, 2, "") - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.oracle.v1.QueryIsReporterRequest.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.oracle.v1.QueryIsReporterRequest.toObject( + opt_includeInstance, + this, + ) + } + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.oracle.v1.QueryIsReporterRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.oracle.v1.QueryIsReporterRequest.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = { + validatorAddress: jspb.Message.getFieldWithDefault(msg, 1, ''), + reporterAddress: jspb.Message.getFieldWithDefault(msg, 2, ''), + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.oracle.v1.QueryIsReporterRequest} */ -proto.oracle.v1.QueryIsReporterRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.oracle.v1.QueryIsReporterRequest; - return proto.oracle.v1.QueryIsReporterRequest.deserializeBinaryFromReader(msg, reader); -}; - +proto.oracle.v1.QueryIsReporterRequest.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.oracle.v1.QueryIsReporterRequest() + return proto.oracle.v1.QueryIsReporterRequest.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -3101,40 +3289,41 @@ proto.oracle.v1.QueryIsReporterRequest.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.oracle.v1.QueryIsReporterRequest} */ -proto.oracle.v1.QueryIsReporterRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.oracle.v1.QueryIsReporterRequest.deserializeBinaryFromReader = function ( + msg, + reader, +) { while (reader.nextField()) { if (reader.isEndGroup()) { - break; + break } - var field = reader.getFieldNumber(); + var field = reader.getFieldNumber() switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setValidatorAddress(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setReporterAddress(value); - break; - default: - reader.skipField(); - break; + case 1: + var value = /** @type {string} */ (reader.readString()) + msg.setValidatorAddress(value) + break + case 2: + var value = /** @type {string} */ (reader.readString()) + msg.setReporterAddress(value) + break + default: + reader.skipField() + break } } - return msg; -}; - + return msg +} /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.oracle.v1.QueryIsReporterRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.oracle.v1.QueryIsReporterRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.oracle.v1.QueryIsReporterRequest.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter() + proto.oracle.v1.QueryIsReporterRequest.serializeBinaryToWriter(this, writer) + return writer.getResultBuffer() +} /** * Serializes the given message to binary data (in protobuf wire @@ -3143,115 +3332,118 @@ proto.oracle.v1.QueryIsReporterRequest.prototype.serializeBinary = function() { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.oracle.v1.QueryIsReporterRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getValidatorAddress(); +proto.oracle.v1.QueryIsReporterRequest.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined + f = message.getValidatorAddress() if (f.length > 0) { - writer.writeString( - 1, - f - ); + writer.writeString(1, f) } - f = message.getReporterAddress(); + f = message.getReporterAddress() if (f.length > 0) { - writer.writeString( - 2, - f - ); + writer.writeString(2, f) } -}; - +} /** * optional string validator_address = 1; * @return {string} */ -proto.oracle.v1.QueryIsReporterRequest.prototype.getValidatorAddress = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - +proto.oracle.v1.QueryIsReporterRequest.prototype.getValidatorAddress = + function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, '')) + } /** * @param {string} value * @return {!proto.oracle.v1.QueryIsReporterRequest} returns this */ -proto.oracle.v1.QueryIsReporterRequest.prototype.setValidatorAddress = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - +proto.oracle.v1.QueryIsReporterRequest.prototype.setValidatorAddress = + function (value) { + return jspb.Message.setProto3StringField(this, 1, value) + } /** * optional string reporter_address = 2; * @return {string} */ -proto.oracle.v1.QueryIsReporterRequest.prototype.getReporterAddress = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - +proto.oracle.v1.QueryIsReporterRequest.prototype.getReporterAddress = + function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, '')) + } /** * @param {string} value * @return {!proto.oracle.v1.QueryIsReporterRequest} returns this */ -proto.oracle.v1.QueryIsReporterRequest.prototype.setReporterAddress = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - +proto.oracle.v1.QueryIsReporterRequest.prototype.setReporterAddress = function ( + value, +) { + return jspb.Message.setProto3StringField(this, 2, value) +} if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.oracle.v1.QueryIsReporterResponse.prototype.toObject = function(opt_includeInstance) { - return proto.oracle.v1.QueryIsReporterResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.oracle.v1.QueryIsReporterResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.oracle.v1.QueryIsReporterResponse.toObject = function(includeInstance, msg) { - var f, obj = { - isReporter: jspb.Message.getBooleanFieldWithDefault(msg, 1, false) - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.oracle.v1.QueryIsReporterResponse.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.oracle.v1.QueryIsReporterResponse.toObject( + opt_includeInstance, + this, + ) + } + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.oracle.v1.QueryIsReporterResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.oracle.v1.QueryIsReporterResponse.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = { + isReporter: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.oracle.v1.QueryIsReporterResponse} */ -proto.oracle.v1.QueryIsReporterResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.oracle.v1.QueryIsReporterResponse; - return proto.oracle.v1.QueryIsReporterResponse.deserializeBinaryFromReader(msg, reader); -}; - +proto.oracle.v1.QueryIsReporterResponse.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.oracle.v1.QueryIsReporterResponse() + return proto.oracle.v1.QueryIsReporterResponse.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -3260,36 +3452,41 @@ proto.oracle.v1.QueryIsReporterResponse.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.oracle.v1.QueryIsReporterResponse} */ -proto.oracle.v1.QueryIsReporterResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.oracle.v1.QueryIsReporterResponse.deserializeBinaryFromReader = function ( + msg, + reader, +) { while (reader.nextField()) { if (reader.isEndGroup()) { - break; + break } - var field = reader.getFieldNumber(); + var field = reader.getFieldNumber() switch (field) { - case 1: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsReporter(value); - break; - default: - reader.skipField(); - break; + case 1: + var value = /** @type {boolean} */ (reader.readBool()) + msg.setIsReporter(value) + break + default: + reader.skipField() + break } } - return msg; -}; - + return msg +} /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.oracle.v1.QueryIsReporterResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.oracle.v1.QueryIsReporterResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.oracle.v1.QueryIsReporterResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter() + proto.oracle.v1.QueryIsReporterResponse.serializeBinaryToWriter( + this, + writer, + ) + return writer.getResultBuffer() + } /** * Serializes the given message to binary data (in protobuf wire @@ -3298,90 +3495,97 @@ proto.oracle.v1.QueryIsReporterResponse.prototype.serializeBinary = function() { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.oracle.v1.QueryIsReporterResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIsReporter(); +proto.oracle.v1.QueryIsReporterResponse.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined + f = message.getIsReporter() if (f) { - writer.writeBool( - 1, - f - ); + writer.writeBool(1, f) } -}; - +} /** * optional bool is_reporter = 1; * @return {boolean} */ -proto.oracle.v1.QueryIsReporterResponse.prototype.getIsReporter = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); -}; - +proto.oracle.v1.QueryIsReporterResponse.prototype.getIsReporter = function () { + return /** @type {boolean} */ ( + jspb.Message.getBooleanFieldWithDefault(this, 1, false) + ) +} /** * @param {boolean} value * @return {!proto.oracle.v1.QueryIsReporterResponse} returns this */ -proto.oracle.v1.QueryIsReporterResponse.prototype.setIsReporter = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); -}; - - - - +proto.oracle.v1.QueryIsReporterResponse.prototype.setIsReporter = function ( + value, +) { + return jspb.Message.setProto3BooleanField(this, 1, value) +} if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.oracle.v1.QueryReportersRequest.prototype.toObject = function(opt_includeInstance) { - return proto.oracle.v1.QueryReportersRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.oracle.v1.QueryReportersRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.oracle.v1.QueryReportersRequest.toObject = function(includeInstance, msg) { - var f, obj = { - validatorAddress: jspb.Message.getFieldWithDefault(msg, 1, "") - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.oracle.v1.QueryReportersRequest.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.oracle.v1.QueryReportersRequest.toObject( + opt_includeInstance, + this, + ) + } + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.oracle.v1.QueryReportersRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.oracle.v1.QueryReportersRequest.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = { + validatorAddress: jspb.Message.getFieldWithDefault(msg, 1, ''), + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.oracle.v1.QueryReportersRequest} */ -proto.oracle.v1.QueryReportersRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.oracle.v1.QueryReportersRequest; - return proto.oracle.v1.QueryReportersRequest.deserializeBinaryFromReader(msg, reader); -}; - +proto.oracle.v1.QueryReportersRequest.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.oracle.v1.QueryReportersRequest() + return proto.oracle.v1.QueryReportersRequest.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -3390,36 +3594,37 @@ proto.oracle.v1.QueryReportersRequest.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.oracle.v1.QueryReportersRequest} */ -proto.oracle.v1.QueryReportersRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.oracle.v1.QueryReportersRequest.deserializeBinaryFromReader = function ( + msg, + reader, +) { while (reader.nextField()) { if (reader.isEndGroup()) { - break; + break } - var field = reader.getFieldNumber(); + var field = reader.getFieldNumber() switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setValidatorAddress(value); - break; - default: - reader.skipField(); - break; + case 1: + var value = /** @type {string} */ (reader.readString()) + msg.setValidatorAddress(value) + break + default: + reader.skipField() + break } } - return msg; -}; - + return msg +} /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.oracle.v1.QueryReportersRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.oracle.v1.QueryReportersRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.oracle.v1.QueryReportersRequest.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter() + proto.oracle.v1.QueryReportersRequest.serializeBinaryToWriter(this, writer) + return writer.getResultBuffer() +} /** * Serializes the given message to binary data (in protobuf wire @@ -3428,97 +3633,104 @@ proto.oracle.v1.QueryReportersRequest.prototype.serializeBinary = function() { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.oracle.v1.QueryReportersRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getValidatorAddress(); +proto.oracle.v1.QueryReportersRequest.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined + f = message.getValidatorAddress() if (f.length > 0) { - writer.writeString( - 1, - f - ); + writer.writeString(1, f) } -}; - +} /** * optional string validator_address = 1; * @return {string} */ -proto.oracle.v1.QueryReportersRequest.prototype.getValidatorAddress = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - +proto.oracle.v1.QueryReportersRequest.prototype.getValidatorAddress = + function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, '')) + } /** * @param {string} value * @return {!proto.oracle.v1.QueryReportersRequest} returns this */ -proto.oracle.v1.QueryReportersRequest.prototype.setValidatorAddress = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - +proto.oracle.v1.QueryReportersRequest.prototype.setValidatorAddress = function ( + value, +) { + return jspb.Message.setProto3StringField(this, 1, value) +} /** * List of repeated fields within this message type. * @private {!Array} * @const */ -proto.oracle.v1.QueryReportersResponse.repeatedFields_ = [1]; - - +proto.oracle.v1.QueryReportersResponse.repeatedFields_ = [1] if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.oracle.v1.QueryReportersResponse.prototype.toObject = function(opt_includeInstance) { - return proto.oracle.v1.QueryReportersResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.oracle.v1.QueryReportersResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.oracle.v1.QueryReportersResponse.toObject = function(includeInstance, msg) { - var f, obj = { - reporterList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.oracle.v1.QueryReportersResponse.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.oracle.v1.QueryReportersResponse.toObject( + opt_includeInstance, + this, + ) + } + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.oracle.v1.QueryReportersResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.oracle.v1.QueryReportersResponse.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = { + reporterList: + (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f, + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.oracle.v1.QueryReportersResponse} */ -proto.oracle.v1.QueryReportersResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.oracle.v1.QueryReportersResponse; - return proto.oracle.v1.QueryReportersResponse.deserializeBinaryFromReader(msg, reader); -}; - +proto.oracle.v1.QueryReportersResponse.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.oracle.v1.QueryReportersResponse() + return proto.oracle.v1.QueryReportersResponse.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -3527,36 +3739,37 @@ proto.oracle.v1.QueryReportersResponse.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.oracle.v1.QueryReportersResponse} */ -proto.oracle.v1.QueryReportersResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.oracle.v1.QueryReportersResponse.deserializeBinaryFromReader = function ( + msg, + reader, +) { while (reader.nextField()) { if (reader.isEndGroup()) { - break; + break } - var field = reader.getFieldNumber(); + var field = reader.getFieldNumber() switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.addReporter(value); - break; - default: - reader.skipField(); - break; + case 1: + var value = /** @type {string} */ (reader.readString()) + msg.addReporter(value) + break + default: + reader.skipField() + break } } - return msg; -}; - + return msg +} /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.oracle.v1.QueryReportersResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.oracle.v1.QueryReportersResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.oracle.v1.QueryReportersResponse.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter() + proto.oracle.v1.QueryReportersResponse.serializeBinaryToWriter(this, writer) + return writer.getResultBuffer() +} /** * Serializes the given message to binary data (in protobuf wire @@ -3565,109 +3778,116 @@ proto.oracle.v1.QueryReportersResponse.prototype.serializeBinary = function() { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.oracle.v1.QueryReportersResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getReporterList(); +proto.oracle.v1.QueryReportersResponse.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined + f = message.getReporterList() if (f.length > 0) { - writer.writeRepeatedString( - 1, - f - ); + writer.writeRepeatedString(1, f) } -}; - +} /** * repeated string reporter = 1; * @return {!Array} */ -proto.oracle.v1.QueryReportersResponse.prototype.getReporterList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); -}; - +proto.oracle.v1.QueryReportersResponse.prototype.getReporterList = function () { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)) +} /** * @param {!Array} value * @return {!proto.oracle.v1.QueryReportersResponse} returns this */ -proto.oracle.v1.QueryReportersResponse.prototype.setReporterList = function(value) { - return jspb.Message.setField(this, 1, value || []); -}; - +proto.oracle.v1.QueryReportersResponse.prototype.setReporterList = function ( + value, +) { + return jspb.Message.setField(this, 1, value || []) +} /** * @param {string} value * @param {number=} opt_index * @return {!proto.oracle.v1.QueryReportersResponse} returns this */ -proto.oracle.v1.QueryReportersResponse.prototype.addReporter = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 1, value, opt_index); -}; - +proto.oracle.v1.QueryReportersResponse.prototype.addReporter = function ( + value, + opt_index, +) { + return jspb.Message.addToRepeatedField(this, 1, value, opt_index) +} /** * Clears the list making it empty but non-null. * @return {!proto.oracle.v1.QueryReportersResponse} returns this */ -proto.oracle.v1.QueryReportersResponse.prototype.clearReporterList = function() { - return this.setReporterList([]); -}; - - - - +proto.oracle.v1.QueryReportersResponse.prototype.clearReporterList = + function () { + return this.setReporterList([]) + } if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.oracle.v1.QueryActiveValidatorsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.oracle.v1.QueryActiveValidatorsRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.oracle.v1.QueryActiveValidatorsRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.oracle.v1.QueryActiveValidatorsRequest.toObject = function(includeInstance, msg) { - var f, obj = { - - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.oracle.v1.QueryActiveValidatorsRequest.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.oracle.v1.QueryActiveValidatorsRequest.toObject( + opt_includeInstance, + this, + ) + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.oracle.v1.QueryActiveValidatorsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.oracle.v1.QueryActiveValidatorsRequest.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = {} + + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.oracle.v1.QueryActiveValidatorsRequest} */ -proto.oracle.v1.QueryActiveValidatorsRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.oracle.v1.QueryActiveValidatorsRequest; - return proto.oracle.v1.QueryActiveValidatorsRequest.deserializeBinaryFromReader(msg, reader); -}; - +proto.oracle.v1.QueryActiveValidatorsRequest.deserializeBinary = function ( + bytes, +) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.oracle.v1.QueryActiveValidatorsRequest() + return proto.oracle.v1.QueryActiveValidatorsRequest.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -3676,32 +3896,35 @@ proto.oracle.v1.QueryActiveValidatorsRequest.deserializeBinary = function(bytes) * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.oracle.v1.QueryActiveValidatorsRequest} */ -proto.oracle.v1.QueryActiveValidatorsRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - default: - reader.skipField(); - break; +proto.oracle.v1.QueryActiveValidatorsRequest.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break + } + var field = reader.getFieldNumber() + switch (field) { + default: + reader.skipField() + break + } } + return msg } - return msg; -}; - /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.oracle.v1.QueryActiveValidatorsRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.oracle.v1.QueryActiveValidatorsRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.oracle.v1.QueryActiveValidatorsRequest.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter() + proto.oracle.v1.QueryActiveValidatorsRequest.serializeBinaryToWriter( + this, + writer, + ) + return writer.getResultBuffer() + } /** * Serializes the given message to binary data (in protobuf wire @@ -3710,73 +3933,84 @@ proto.oracle.v1.QueryActiveValidatorsRequest.prototype.serializeBinary = functio * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.oracle.v1.QueryActiveValidatorsRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - +proto.oracle.v1.QueryActiveValidatorsRequest.serializeBinaryToWriter = + function (message, writer) { + var f = undefined + } /** * List of repeated fields within this message type. * @private {!Array} * @const */ -proto.oracle.v1.QueryActiveValidatorsResponse.repeatedFields_ = [1]; - - +proto.oracle.v1.QueryActiveValidatorsResponse.repeatedFields_ = [1] if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.oracle.v1.QueryActiveValidatorsResponse.prototype.toObject = function(opt_includeInstance) { - return proto.oracle.v1.QueryActiveValidatorsResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.oracle.v1.QueryActiveValidatorsResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.oracle.v1.QueryActiveValidatorsResponse.toObject = function(includeInstance, msg) { - var f, obj = { - validatorsList: jspb.Message.toObjectList(msg.getValidatorsList(), - oracle_v1_oracle_pb.ActiveValidator.toObject, includeInstance) - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.oracle.v1.QueryActiveValidatorsResponse.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.oracle.v1.QueryActiveValidatorsResponse.toObject( + opt_includeInstance, + this, + ) + } + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.oracle.v1.QueryActiveValidatorsResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.oracle.v1.QueryActiveValidatorsResponse.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = { + validatorsList: jspb.Message.toObjectList( + msg.getValidatorsList(), + oracle_v1_oracle_pb.ActiveValidator.toObject, + includeInstance, + ), + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.oracle.v1.QueryActiveValidatorsResponse} */ -proto.oracle.v1.QueryActiveValidatorsResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.oracle.v1.QueryActiveValidatorsResponse; - return proto.oracle.v1.QueryActiveValidatorsResponse.deserializeBinaryFromReader(msg, reader); -}; - +proto.oracle.v1.QueryActiveValidatorsResponse.deserializeBinary = function ( + bytes, +) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.oracle.v1.QueryActiveValidatorsResponse() + return proto.oracle.v1.QueryActiveValidatorsResponse.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -3785,37 +4019,43 @@ proto.oracle.v1.QueryActiveValidatorsResponse.deserializeBinary = function(bytes * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.oracle.v1.QueryActiveValidatorsResponse} */ -proto.oracle.v1.QueryActiveValidatorsResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new oracle_v1_oracle_pb.ActiveValidator; - reader.readMessage(value,oracle_v1_oracle_pb.ActiveValidator.deserializeBinaryFromReader); - msg.addValidators(value); - break; - default: - reader.skipField(); - break; +proto.oracle.v1.QueryActiveValidatorsResponse.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break + } + var field = reader.getFieldNumber() + switch (field) { + case 1: + var value = new oracle_v1_oracle_pb.ActiveValidator() + reader.readMessage( + value, + oracle_v1_oracle_pb.ActiveValidator.deserializeBinaryFromReader, + ) + msg.addValidators(value) + break + default: + reader.skipField() + break + } } + return msg } - return msg; -}; - /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.oracle.v1.QueryActiveValidatorsResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.oracle.v1.QueryActiveValidatorsResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.oracle.v1.QueryActiveValidatorsResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter() + proto.oracle.v1.QueryActiveValidatorsResponse.serializeBinaryToWriter( + this, + writer, + ) + return writer.getResultBuffer() + } /** * Serializes the given message to binary data (in protobuf wire @@ -3824,114 +4064,131 @@ proto.oracle.v1.QueryActiveValidatorsResponse.prototype.serializeBinary = functi * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.oracle.v1.QueryActiveValidatorsResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getValidatorsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - oracle_v1_oracle_pb.ActiveValidator.serializeBinaryToWriter - ); +proto.oracle.v1.QueryActiveValidatorsResponse.serializeBinaryToWriter = + function (message, writer) { + var f = undefined + f = message.getValidatorsList() + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + oracle_v1_oracle_pb.ActiveValidator.serializeBinaryToWriter, + ) + } } -}; - /** * repeated ActiveValidator validators = 1; * @return {!Array} */ -proto.oracle.v1.QueryActiveValidatorsResponse.prototype.getValidatorsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, oracle_v1_oracle_pb.ActiveValidator, 1)); -}; - +proto.oracle.v1.QueryActiveValidatorsResponse.prototype.getValidatorsList = + function () { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField( + this, + oracle_v1_oracle_pb.ActiveValidator, + 1, + ) + ) + } /** * @param {!Array} value * @return {!proto.oracle.v1.QueryActiveValidatorsResponse} returns this -*/ -proto.oracle.v1.QueryActiveValidatorsResponse.prototype.setValidatorsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - + */ +proto.oracle.v1.QueryActiveValidatorsResponse.prototype.setValidatorsList = + function (value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value) + } /** * @param {!proto.oracle.v1.ActiveValidator=} opt_value * @param {number=} opt_index * @return {!proto.oracle.v1.ActiveValidator} */ -proto.oracle.v1.QueryActiveValidatorsResponse.prototype.addValidators = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.oracle.v1.ActiveValidator, opt_index); -}; - +proto.oracle.v1.QueryActiveValidatorsResponse.prototype.addValidators = + function (opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField( + this, + 1, + opt_value, + proto.oracle.v1.ActiveValidator, + opt_index, + ) + } /** * Clears the list making it empty but non-null. * @return {!proto.oracle.v1.QueryActiveValidatorsResponse} returns this */ -proto.oracle.v1.QueryActiveValidatorsResponse.prototype.clearValidatorsList = function() { - return this.setValidatorsList([]); -}; - - - - +proto.oracle.v1.QueryActiveValidatorsResponse.prototype.clearValidatorsList = + function () { + return this.setValidatorsList([]) + } if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.oracle.v1.QueryRequestSearchRequest.prototype.toObject = function(opt_includeInstance) { - return proto.oracle.v1.QueryRequestSearchRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.oracle.v1.QueryRequestSearchRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.oracle.v1.QueryRequestSearchRequest.toObject = function(includeInstance, msg) { - var f, obj = { - oracleScriptId: jspb.Message.getFieldWithDefault(msg, 1, 0), - calldata: jspb.Message.getFieldWithDefault(msg, 2, ""), - askCount: jspb.Message.getFieldWithDefault(msg, 3, 0), - minCount: jspb.Message.getFieldWithDefault(msg, 4, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.oracle.v1.QueryRequestSearchRequest.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.oracle.v1.QueryRequestSearchRequest.toObject( + opt_includeInstance, + this, + ) } - return obj; -}; -} + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.oracle.v1.QueryRequestSearchRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.oracle.v1.QueryRequestSearchRequest.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = { + oracleScriptId: jspb.Message.getFieldWithDefault(msg, 1, 0), + calldata: jspb.Message.getFieldWithDefault(msg, 2, ''), + askCount: jspb.Message.getFieldWithDefault(msg, 3, 0), + minCount: jspb.Message.getFieldWithDefault(msg, 4, 0), + } + + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj + } +} /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.oracle.v1.QueryRequestSearchRequest} */ -proto.oracle.v1.QueryRequestSearchRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.oracle.v1.QueryRequestSearchRequest; - return proto.oracle.v1.QueryRequestSearchRequest.deserializeBinaryFromReader(msg, reader); -}; - +proto.oracle.v1.QueryRequestSearchRequest.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.oracle.v1.QueryRequestSearchRequest() + return proto.oracle.v1.QueryRequestSearchRequest.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -3940,48 +4197,51 @@ proto.oracle.v1.QueryRequestSearchRequest.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.oracle.v1.QueryRequestSearchRequest} */ -proto.oracle.v1.QueryRequestSearchRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint64()); - msg.setOracleScriptId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setCalldata(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setAskCount(value); - break; - case 4: - var value = /** @type {number} */ (reader.readUint64()); - msg.setMinCount(value); - break; - default: - reader.skipField(); - break; +proto.oracle.v1.QueryRequestSearchRequest.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break + } + var field = reader.getFieldNumber() + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readUint64()) + msg.setOracleScriptId(value) + break + case 2: + var value = /** @type {string} */ (reader.readString()) + msg.setCalldata(value) + break + case 3: + var value = /** @type {number} */ (reader.readUint64()) + msg.setAskCount(value) + break + case 4: + var value = /** @type {number} */ (reader.readUint64()) + msg.setMinCount(value) + break + default: + reader.skipField() + break + } } + return msg } - return msg; -}; - /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.oracle.v1.QueryRequestSearchRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.oracle.v1.QueryRequestSearchRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.oracle.v1.QueryRequestSearchRequest.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter() + proto.oracle.v1.QueryRequestSearchRequest.serializeBinaryToWriter( + this, + writer, + ) + return writer.getResultBuffer() + } /** * Serializes the given message to binary data (in protobuf wire @@ -3990,165 +4250,165 @@ proto.oracle.v1.QueryRequestSearchRequest.prototype.serializeBinary = function() * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.oracle.v1.QueryRequestSearchRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOracleScriptId(); +proto.oracle.v1.QueryRequestSearchRequest.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined + f = message.getOracleScriptId() if (f !== 0) { - writer.writeUint64( - 1, - f - ); + writer.writeUint64(1, f) } - f = message.getCalldata(); + f = message.getCalldata() if (f.length > 0) { - writer.writeString( - 2, - f - ); + writer.writeString(2, f) } - f = message.getAskCount(); + f = message.getAskCount() if (f !== 0) { - writer.writeUint64( - 3, - f - ); + writer.writeUint64(3, f) } - f = message.getMinCount(); + f = message.getMinCount() if (f !== 0) { - writer.writeUint64( - 4, - f - ); + writer.writeUint64(4, f) } -}; - +} /** * optional uint64 oracle_script_id = 1; * @return {number} */ -proto.oracle.v1.QueryRequestSearchRequest.prototype.getOracleScriptId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - +proto.oracle.v1.QueryRequestSearchRequest.prototype.getOracleScriptId = + function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)) + } /** * @param {number} value * @return {!proto.oracle.v1.QueryRequestSearchRequest} returns this */ -proto.oracle.v1.QueryRequestSearchRequest.prototype.setOracleScriptId = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - +proto.oracle.v1.QueryRequestSearchRequest.prototype.setOracleScriptId = + function (value) { + return jspb.Message.setProto3IntField(this, 1, value) + } /** * optional string calldata = 2; * @return {string} */ -proto.oracle.v1.QueryRequestSearchRequest.prototype.getCalldata = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - +proto.oracle.v1.QueryRequestSearchRequest.prototype.getCalldata = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, '')) +} /** * @param {string} value * @return {!proto.oracle.v1.QueryRequestSearchRequest} returns this */ -proto.oracle.v1.QueryRequestSearchRequest.prototype.setCalldata = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - +proto.oracle.v1.QueryRequestSearchRequest.prototype.setCalldata = function ( + value, +) { + return jspb.Message.setProto3StringField(this, 2, value) +} /** * optional uint64 ask_count = 3; * @return {number} */ -proto.oracle.v1.QueryRequestSearchRequest.prototype.getAskCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - +proto.oracle.v1.QueryRequestSearchRequest.prototype.getAskCount = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)) +} /** * @param {number} value * @return {!proto.oracle.v1.QueryRequestSearchRequest} returns this */ -proto.oracle.v1.QueryRequestSearchRequest.prototype.setAskCount = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - +proto.oracle.v1.QueryRequestSearchRequest.prototype.setAskCount = function ( + value, +) { + return jspb.Message.setProto3IntField(this, 3, value) +} /** * optional uint64 min_count = 4; * @return {number} */ -proto.oracle.v1.QueryRequestSearchRequest.prototype.getMinCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - +proto.oracle.v1.QueryRequestSearchRequest.prototype.getMinCount = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)) +} /** * @param {number} value * @return {!proto.oracle.v1.QueryRequestSearchRequest} returns this */ -proto.oracle.v1.QueryRequestSearchRequest.prototype.setMinCount = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - - - - +proto.oracle.v1.QueryRequestSearchRequest.prototype.setMinCount = function ( + value, +) { + return jspb.Message.setProto3IntField(this, 4, value) +} if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.oracle.v1.QueryRequestSearchResponse.prototype.toObject = function(opt_includeInstance) { - return proto.oracle.v1.QueryRequestSearchResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.oracle.v1.QueryRequestSearchResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.oracle.v1.QueryRequestSearchResponse.toObject = function(includeInstance, msg) { - var f, obj = { - request: (f = msg.getRequest()) && proto.oracle.v1.QueryRequestResponse.toObject(includeInstance, f) - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.oracle.v1.QueryRequestSearchResponse.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.oracle.v1.QueryRequestSearchResponse.toObject( + opt_includeInstance, + this, + ) + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.oracle.v1.QueryRequestSearchResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.oracle.v1.QueryRequestSearchResponse.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = { + request: + (f = msg.getRequest()) && + proto.oracle.v1.QueryRequestResponse.toObject(includeInstance, f), + } + + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.oracle.v1.QueryRequestSearchResponse} */ -proto.oracle.v1.QueryRequestSearchResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.oracle.v1.QueryRequestSearchResponse; - return proto.oracle.v1.QueryRequestSearchResponse.deserializeBinaryFromReader(msg, reader); -}; - +proto.oracle.v1.QueryRequestSearchResponse.deserializeBinary = function ( + bytes, +) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.oracle.v1.QueryRequestSearchResponse() + return proto.oracle.v1.QueryRequestSearchResponse.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -4157,37 +4417,43 @@ proto.oracle.v1.QueryRequestSearchResponse.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.oracle.v1.QueryRequestSearchResponse} */ -proto.oracle.v1.QueryRequestSearchResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.oracle.v1.QueryRequestResponse; - reader.readMessage(value,proto.oracle.v1.QueryRequestResponse.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; +proto.oracle.v1.QueryRequestSearchResponse.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break + } + var field = reader.getFieldNumber() + switch (field) { + case 1: + var value = new proto.oracle.v1.QueryRequestResponse() + reader.readMessage( + value, + proto.oracle.v1.QueryRequestResponse.deserializeBinaryFromReader, + ) + msg.setRequest(value) + break + default: + reader.skipField() + break + } } + return msg } - return msg; -}; - /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.oracle.v1.QueryRequestSearchResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.oracle.v1.QueryRequestSearchResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.oracle.v1.QueryRequestSearchResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter() + proto.oracle.v1.QueryRequestSearchResponse.serializeBinaryToWriter( + this, + writer, + ) + return writer.getResultBuffer() + } /** * Serializes the given message to binary data (in protobuf wire @@ -4196,119 +4462,128 @@ proto.oracle.v1.QueryRequestSearchResponse.prototype.serializeBinary = function( * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.oracle.v1.QueryRequestSearchResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRequest(); +proto.oracle.v1.QueryRequestSearchResponse.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined + f = message.getRequest() if (f != null) { writer.writeMessage( 1, f, - proto.oracle.v1.QueryRequestResponse.serializeBinaryToWriter - ); + proto.oracle.v1.QueryRequestResponse.serializeBinaryToWriter, + ) } -}; - +} /** * optional QueryRequestResponse request = 1; * @return {?proto.oracle.v1.QueryRequestResponse} */ -proto.oracle.v1.QueryRequestSearchResponse.prototype.getRequest = function() { +proto.oracle.v1.QueryRequestSearchResponse.prototype.getRequest = function () { return /** @type{?proto.oracle.v1.QueryRequestResponse} */ ( - jspb.Message.getWrapperField(this, proto.oracle.v1.QueryRequestResponse, 1)); -}; - + jspb.Message.getWrapperField(this, proto.oracle.v1.QueryRequestResponse, 1) + ) +} /** * @param {?proto.oracle.v1.QueryRequestResponse|undefined} value * @return {!proto.oracle.v1.QueryRequestSearchResponse} returns this -*/ -proto.oracle.v1.QueryRequestSearchResponse.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - + */ +proto.oracle.v1.QueryRequestSearchResponse.prototype.setRequest = function ( + value, +) { + return jspb.Message.setWrapperField(this, 1, value) +} /** * Clears the message field making it undefined. * @return {!proto.oracle.v1.QueryRequestSearchResponse} returns this */ -proto.oracle.v1.QueryRequestSearchResponse.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - +proto.oracle.v1.QueryRequestSearchResponse.prototype.clearRequest = + function () { + return this.setRequest(undefined) + } /** * Returns whether this field is set. * @return {boolean} */ -proto.oracle.v1.QueryRequestSearchResponse.prototype.hasRequest = function() { - return jspb.Message.getField(this, 1) != null; -}; - - +proto.oracle.v1.QueryRequestSearchResponse.prototype.hasRequest = function () { + return jspb.Message.getField(this, 1) != null +} /** * List of repeated fields within this message type. * @private {!Array} * @const */ -proto.oracle.v1.QueryRequestPriceRequest.repeatedFields_ = [1]; - - +proto.oracle.v1.QueryRequestPriceRequest.repeatedFields_ = [1] if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.oracle.v1.QueryRequestPriceRequest.prototype.toObject = function(opt_includeInstance) { - return proto.oracle.v1.QueryRequestPriceRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.oracle.v1.QueryRequestPriceRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.oracle.v1.QueryRequestPriceRequest.toObject = function(includeInstance, msg) { - var f, obj = { - symbolsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f, - askCount: jspb.Message.getFieldWithDefault(msg, 2, 0), - minCount: jspb.Message.getFieldWithDefault(msg, 3, 0) - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.oracle.v1.QueryRequestPriceRequest.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.oracle.v1.QueryRequestPriceRequest.toObject( + opt_includeInstance, + this, + ) + } + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.oracle.v1.QueryRequestPriceRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.oracle.v1.QueryRequestPriceRequest.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = { + symbolsList: + (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f, + askCount: jspb.Message.getFieldWithDefault(msg, 2, 0), + minCount: jspb.Message.getFieldWithDefault(msg, 3, 0), + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.oracle.v1.QueryRequestPriceRequest} */ -proto.oracle.v1.QueryRequestPriceRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.oracle.v1.QueryRequestPriceRequest; - return proto.oracle.v1.QueryRequestPriceRequest.deserializeBinaryFromReader(msg, reader); -}; - +proto.oracle.v1.QueryRequestPriceRequest.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.oracle.v1.QueryRequestPriceRequest() + return proto.oracle.v1.QueryRequestPriceRequest.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -4317,44 +4592,47 @@ proto.oracle.v1.QueryRequestPriceRequest.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.oracle.v1.QueryRequestPriceRequest} */ -proto.oracle.v1.QueryRequestPriceRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.addSymbols(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint64()); - msg.setAskCount(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setMinCount(value); - break; - default: - reader.skipField(); - break; +proto.oracle.v1.QueryRequestPriceRequest.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break + } + var field = reader.getFieldNumber() + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()) + msg.addSymbols(value) + break + case 2: + var value = /** @type {number} */ (reader.readUint64()) + msg.setAskCount(value) + break + case 3: + var value = /** @type {number} */ (reader.readUint64()) + msg.setMinCount(value) + break + default: + reader.skipField() + break + } } + return msg } - return msg; -}; - /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.oracle.v1.QueryRequestPriceRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.oracle.v1.QueryRequestPriceRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.oracle.v1.QueryRequestPriceRequest.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter() + proto.oracle.v1.QueryRequestPriceRequest.serializeBinaryToWriter( + this, + writer, + ) + return writer.getResultBuffer() + } /** * Serializes the given message to binary data (in protobuf wire @@ -4363,167 +4641,174 @@ proto.oracle.v1.QueryRequestPriceRequest.prototype.serializeBinary = function() * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.oracle.v1.QueryRequestPriceRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSymbolsList(); +proto.oracle.v1.QueryRequestPriceRequest.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined + f = message.getSymbolsList() if (f.length > 0) { - writer.writeRepeatedString( - 1, - f - ); + writer.writeRepeatedString(1, f) } - f = message.getAskCount(); + f = message.getAskCount() if (f !== 0) { - writer.writeUint64( - 2, - f - ); + writer.writeUint64(2, f) } - f = message.getMinCount(); + f = message.getMinCount() if (f !== 0) { - writer.writeUint64( - 3, - f - ); + writer.writeUint64(3, f) } -}; - +} /** * repeated string symbols = 1; * @return {!Array} */ -proto.oracle.v1.QueryRequestPriceRequest.prototype.getSymbolsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); -}; - +proto.oracle.v1.QueryRequestPriceRequest.prototype.getSymbolsList = + function () { + return /** @type {!Array} */ ( + jspb.Message.getRepeatedField(this, 1) + ) + } /** * @param {!Array} value * @return {!proto.oracle.v1.QueryRequestPriceRequest} returns this */ -proto.oracle.v1.QueryRequestPriceRequest.prototype.setSymbolsList = function(value) { - return jspb.Message.setField(this, 1, value || []); -}; - +proto.oracle.v1.QueryRequestPriceRequest.prototype.setSymbolsList = function ( + value, +) { + return jspb.Message.setField(this, 1, value || []) +} /** * @param {string} value * @param {number=} opt_index * @return {!proto.oracle.v1.QueryRequestPriceRequest} returns this */ -proto.oracle.v1.QueryRequestPriceRequest.prototype.addSymbols = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 1, value, opt_index); -}; - +proto.oracle.v1.QueryRequestPriceRequest.prototype.addSymbols = function ( + value, + opt_index, +) { + return jspb.Message.addToRepeatedField(this, 1, value, opt_index) +} /** * Clears the list making it empty but non-null. * @return {!proto.oracle.v1.QueryRequestPriceRequest} returns this */ -proto.oracle.v1.QueryRequestPriceRequest.prototype.clearSymbolsList = function() { - return this.setSymbolsList([]); -}; - +proto.oracle.v1.QueryRequestPriceRequest.prototype.clearSymbolsList = + function () { + return this.setSymbolsList([]) + } /** * optional uint64 ask_count = 2; * @return {number} */ -proto.oracle.v1.QueryRequestPriceRequest.prototype.getAskCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - +proto.oracle.v1.QueryRequestPriceRequest.prototype.getAskCount = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)) +} /** * @param {number} value * @return {!proto.oracle.v1.QueryRequestPriceRequest} returns this */ -proto.oracle.v1.QueryRequestPriceRequest.prototype.setAskCount = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - +proto.oracle.v1.QueryRequestPriceRequest.prototype.setAskCount = function ( + value, +) { + return jspb.Message.setProto3IntField(this, 2, value) +} /** * optional uint64 min_count = 3; * @return {number} */ -proto.oracle.v1.QueryRequestPriceRequest.prototype.getMinCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - +proto.oracle.v1.QueryRequestPriceRequest.prototype.getMinCount = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)) +} /** * @param {number} value * @return {!proto.oracle.v1.QueryRequestPriceRequest} returns this */ -proto.oracle.v1.QueryRequestPriceRequest.prototype.setMinCount = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - +proto.oracle.v1.QueryRequestPriceRequest.prototype.setMinCount = function ( + value, +) { + return jspb.Message.setProto3IntField(this, 3, value) +} /** * List of repeated fields within this message type. * @private {!Array} * @const */ -proto.oracle.v1.QueryRequestPriceResponse.repeatedFields_ = [1]; - - +proto.oracle.v1.QueryRequestPriceResponse.repeatedFields_ = [1] if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.oracle.v1.QueryRequestPriceResponse.prototype.toObject = function(opt_includeInstance) { - return proto.oracle.v1.QueryRequestPriceResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.oracle.v1.QueryRequestPriceResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.oracle.v1.QueryRequestPriceResponse.toObject = function(includeInstance, msg) { - var f, obj = { - priceResultsList: jspb.Message.toObjectList(msg.getPriceResultsList(), - oracle_v1_oracle_pb.PriceResult.toObject, includeInstance) - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.oracle.v1.QueryRequestPriceResponse.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.oracle.v1.QueryRequestPriceResponse.toObject( + opt_includeInstance, + this, + ) + } + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.oracle.v1.QueryRequestPriceResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.oracle.v1.QueryRequestPriceResponse.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = { + priceResultsList: jspb.Message.toObjectList( + msg.getPriceResultsList(), + oracle_v1_oracle_pb.PriceResult.toObject, + includeInstance, + ), + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.oracle.v1.QueryRequestPriceResponse} */ -proto.oracle.v1.QueryRequestPriceResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.oracle.v1.QueryRequestPriceResponse; - return proto.oracle.v1.QueryRequestPriceResponse.deserializeBinaryFromReader(msg, reader); -}; - +proto.oracle.v1.QueryRequestPriceResponse.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.oracle.v1.QueryRequestPriceResponse() + return proto.oracle.v1.QueryRequestPriceResponse.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -4532,37 +4817,43 @@ proto.oracle.v1.QueryRequestPriceResponse.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.oracle.v1.QueryRequestPriceResponse} */ -proto.oracle.v1.QueryRequestPriceResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new oracle_v1_oracle_pb.PriceResult; - reader.readMessage(value,oracle_v1_oracle_pb.PriceResult.deserializeBinaryFromReader); - msg.addPriceResults(value); - break; - default: - reader.skipField(); - break; +proto.oracle.v1.QueryRequestPriceResponse.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break + } + var field = reader.getFieldNumber() + switch (field) { + case 1: + var value = new oracle_v1_oracle_pb.PriceResult() + reader.readMessage( + value, + oracle_v1_oracle_pb.PriceResult.deserializeBinaryFromReader, + ) + msg.addPriceResults(value) + break + default: + reader.skipField() + break + } } + return msg } - return msg; -}; - /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.oracle.v1.QueryRequestPriceResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.oracle.v1.QueryRequestPriceResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.oracle.v1.QueryRequestPriceResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter() + proto.oracle.v1.QueryRequestPriceResponse.serializeBinaryToWriter( + this, + writer, + ) + return writer.getResultBuffer() + } /** * Serializes the given message to binary data (in protobuf wire @@ -4571,118 +4862,140 @@ proto.oracle.v1.QueryRequestPriceResponse.prototype.serializeBinary = function() * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.oracle.v1.QueryRequestPriceResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPriceResultsList(); +proto.oracle.v1.QueryRequestPriceResponse.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined + f = message.getPriceResultsList() if (f.length > 0) { writer.writeRepeatedMessage( 1, f, - oracle_v1_oracle_pb.PriceResult.serializeBinaryToWriter - ); + oracle_v1_oracle_pb.PriceResult.serializeBinaryToWriter, + ) } -}; - +} /** * repeated PriceResult price_results = 1; * @return {!Array} */ -proto.oracle.v1.QueryRequestPriceResponse.prototype.getPriceResultsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, oracle_v1_oracle_pb.PriceResult, 1)); -}; - +proto.oracle.v1.QueryRequestPriceResponse.prototype.getPriceResultsList = + function () { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField( + this, + oracle_v1_oracle_pb.PriceResult, + 1, + ) + ) + } /** * @param {!Array} value * @return {!proto.oracle.v1.QueryRequestPriceResponse} returns this -*/ -proto.oracle.v1.QueryRequestPriceResponse.prototype.setPriceResultsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - + */ +proto.oracle.v1.QueryRequestPriceResponse.prototype.setPriceResultsList = + function (value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value) + } /** * @param {!proto.oracle.v1.PriceResult=} opt_value * @param {number=} opt_index * @return {!proto.oracle.v1.PriceResult} */ -proto.oracle.v1.QueryRequestPriceResponse.prototype.addPriceResults = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.oracle.v1.PriceResult, opt_index); -}; - +proto.oracle.v1.QueryRequestPriceResponse.prototype.addPriceResults = function ( + opt_value, + opt_index, +) { + return jspb.Message.addToRepeatedWrapperField( + this, + 1, + opt_value, + proto.oracle.v1.PriceResult, + opt_index, + ) +} /** * Clears the list making it empty but non-null. * @return {!proto.oracle.v1.QueryRequestPriceResponse} returns this */ -proto.oracle.v1.QueryRequestPriceResponse.prototype.clearPriceResultsList = function() { - return this.setPriceResultsList([]); -}; - - - - +proto.oracle.v1.QueryRequestPriceResponse.prototype.clearPriceResultsList = + function () { + return this.setPriceResultsList([]) + } if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.oracle.v1.QueryRequestVerificationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.oracle.v1.QueryRequestVerificationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.oracle.v1.QueryRequestVerificationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.oracle.v1.QueryRequestVerificationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - chainId: jspb.Message.getFieldWithDefault(msg, 1, ""), - validator: jspb.Message.getFieldWithDefault(msg, 2, ""), - requestId: jspb.Message.getFieldWithDefault(msg, 3, 0), - externalId: jspb.Message.getFieldWithDefault(msg, 4, 0), - dataSourceId: jspb.Message.getFieldWithDefault(msg, 5, 0), - reporter: jspb.Message.getFieldWithDefault(msg, 6, ""), - signature: msg.getSignature_asB64(), - maxDelay: jspb.Message.getFieldWithDefault(msg, 8, 0) - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.oracle.v1.QueryRequestVerificationRequest.prototype.toObject = + function (opt_includeInstance) { + return proto.oracle.v1.QueryRequestVerificationRequest.toObject( + opt_includeInstance, + this, + ) + } + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.oracle.v1.QueryRequestVerificationRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.oracle.v1.QueryRequestVerificationRequest.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = { + chainId: jspb.Message.getFieldWithDefault(msg, 1, ''), + validator: jspb.Message.getFieldWithDefault(msg, 2, ''), + requestId: jspb.Message.getFieldWithDefault(msg, 3, 0), + externalId: jspb.Message.getFieldWithDefault(msg, 4, 0), + dataSourceId: jspb.Message.getFieldWithDefault(msg, 5, 0), + reporter: jspb.Message.getFieldWithDefault(msg, 6, ''), + signature: msg.getSignature_asB64(), + maxDelay: jspb.Message.getFieldWithDefault(msg, 8, 0), + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.oracle.v1.QueryRequestVerificationRequest} */ -proto.oracle.v1.QueryRequestVerificationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.oracle.v1.QueryRequestVerificationRequest; - return proto.oracle.v1.QueryRequestVerificationRequest.deserializeBinaryFromReader(msg, reader); -}; - +proto.oracle.v1.QueryRequestVerificationRequest.deserializeBinary = function ( + bytes, +) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.oracle.v1.QueryRequestVerificationRequest() + return proto.oracle.v1.QueryRequestVerificationRequest.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -4691,64 +5004,67 @@ proto.oracle.v1.QueryRequestVerificationRequest.deserializeBinary = function(byt * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.oracle.v1.QueryRequestVerificationRequest} */ -proto.oracle.v1.QueryRequestVerificationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setChainId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setValidator(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setRequestId(value); - break; - case 4: - var value = /** @type {number} */ (reader.readUint64()); - msg.setExternalId(value); - break; - case 5: - var value = /** @type {number} */ (reader.readUint64()); - msg.setDataSourceId(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setReporter(value); - break; - case 7: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setSignature(value); - break; - case 8: - var value = /** @type {number} */ (reader.readUint64()); - msg.setMaxDelay(value); - break; - default: - reader.skipField(); - break; +proto.oracle.v1.QueryRequestVerificationRequest.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break + } + var field = reader.getFieldNumber() + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()) + msg.setChainId(value) + break + case 2: + var value = /** @type {string} */ (reader.readString()) + msg.setValidator(value) + break + case 3: + var value = /** @type {number} */ (reader.readUint64()) + msg.setRequestId(value) + break + case 4: + var value = /** @type {number} */ (reader.readUint64()) + msg.setExternalId(value) + break + case 5: + var value = /** @type {number} */ (reader.readUint64()) + msg.setDataSourceId(value) + break + case 6: + var value = /** @type {string} */ (reader.readString()) + msg.setReporter(value) + break + case 7: + var value = /** @type {!Uint8Array} */ (reader.readBytes()) + msg.setSignature(value) + break + case 8: + var value = /** @type {number} */ (reader.readUint64()) + msg.setMaxDelay(value) + break + default: + reader.skipField() + break + } } + return msg } - return msg; -}; - /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.oracle.v1.QueryRequestVerificationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.oracle.v1.QueryRequestVerificationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.oracle.v1.QueryRequestVerificationRequest.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter() + proto.oracle.v1.QueryRequestVerificationRequest.serializeBinaryToWriter( + this, + writer, + ) + return writer.getResultBuffer() + } /** * Serializes the given message to binary data (in protobuf wire @@ -4757,194 +5073,171 @@ proto.oracle.v1.QueryRequestVerificationRequest.prototype.serializeBinary = func * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.oracle.v1.QueryRequestVerificationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getChainId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getValidator(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getRequestId(); - if (f !== 0) { - writer.writeUint64( - 3, - f - ); - } - f = message.getExternalId(); - if (f !== 0) { - writer.writeUint64( - 4, - f - ); - } - f = message.getDataSourceId(); - if (f !== 0) { - writer.writeUint64( - 5, - f - ); - } - f = message.getReporter(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getSignature_asU8(); - if (f.length > 0) { - writer.writeBytes( - 7, - f - ); - } - f = message.getMaxDelay(); - if (f !== 0) { - writer.writeUint64( - 8, - f - ); +proto.oracle.v1.QueryRequestVerificationRequest.serializeBinaryToWriter = + function (message, writer) { + var f = undefined + f = message.getChainId() + if (f.length > 0) { + writer.writeString(1, f) + } + f = message.getValidator() + if (f.length > 0) { + writer.writeString(2, f) + } + f = message.getRequestId() + if (f !== 0) { + writer.writeUint64(3, f) + } + f = message.getExternalId() + if (f !== 0) { + writer.writeUint64(4, f) + } + f = message.getDataSourceId() + if (f !== 0) { + writer.writeUint64(5, f) + } + f = message.getReporter() + if (f.length > 0) { + writer.writeString(6, f) + } + f = message.getSignature_asU8() + if (f.length > 0) { + writer.writeBytes(7, f) + } + f = message.getMaxDelay() + if (f !== 0) { + writer.writeUint64(8, f) + } } -}; - /** * optional string chain_id = 1; * @return {string} */ -proto.oracle.v1.QueryRequestVerificationRequest.prototype.getChainId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - +proto.oracle.v1.QueryRequestVerificationRequest.prototype.getChainId = + function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, '')) + } /** * @param {string} value * @return {!proto.oracle.v1.QueryRequestVerificationRequest} returns this */ -proto.oracle.v1.QueryRequestVerificationRequest.prototype.setChainId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - +proto.oracle.v1.QueryRequestVerificationRequest.prototype.setChainId = + function (value) { + return jspb.Message.setProto3StringField(this, 1, value) + } /** * optional string validator = 2; * @return {string} */ -proto.oracle.v1.QueryRequestVerificationRequest.prototype.getValidator = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - +proto.oracle.v1.QueryRequestVerificationRequest.prototype.getValidator = + function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, '')) + } /** * @param {string} value * @return {!proto.oracle.v1.QueryRequestVerificationRequest} returns this */ -proto.oracle.v1.QueryRequestVerificationRequest.prototype.setValidator = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - +proto.oracle.v1.QueryRequestVerificationRequest.prototype.setValidator = + function (value) { + return jspb.Message.setProto3StringField(this, 2, value) + } /** * optional uint64 request_id = 3; * @return {number} */ -proto.oracle.v1.QueryRequestVerificationRequest.prototype.getRequestId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - +proto.oracle.v1.QueryRequestVerificationRequest.prototype.getRequestId = + function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)) + } /** * @param {number} value * @return {!proto.oracle.v1.QueryRequestVerificationRequest} returns this */ -proto.oracle.v1.QueryRequestVerificationRequest.prototype.setRequestId = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - +proto.oracle.v1.QueryRequestVerificationRequest.prototype.setRequestId = + function (value) { + return jspb.Message.setProto3IntField(this, 3, value) + } /** * optional uint64 external_id = 4; * @return {number} */ -proto.oracle.v1.QueryRequestVerificationRequest.prototype.getExternalId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - +proto.oracle.v1.QueryRequestVerificationRequest.prototype.getExternalId = + function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)) + } /** * @param {number} value * @return {!proto.oracle.v1.QueryRequestVerificationRequest} returns this */ -proto.oracle.v1.QueryRequestVerificationRequest.prototype.setExternalId = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - +proto.oracle.v1.QueryRequestVerificationRequest.prototype.setExternalId = + function (value) { + return jspb.Message.setProto3IntField(this, 4, value) + } /** * optional uint64 data_source_id = 5; * @return {number} */ -proto.oracle.v1.QueryRequestVerificationRequest.prototype.getDataSourceId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - +proto.oracle.v1.QueryRequestVerificationRequest.prototype.getDataSourceId = + function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)) + } /** * @param {number} value * @return {!proto.oracle.v1.QueryRequestVerificationRequest} returns this */ -proto.oracle.v1.QueryRequestVerificationRequest.prototype.setDataSourceId = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - +proto.oracle.v1.QueryRequestVerificationRequest.prototype.setDataSourceId = + function (value) { + return jspb.Message.setProto3IntField(this, 5, value) + } /** * optional string reporter = 6; * @return {string} */ -proto.oracle.v1.QueryRequestVerificationRequest.prototype.getReporter = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - +proto.oracle.v1.QueryRequestVerificationRequest.prototype.getReporter = + function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, '')) + } /** * @param {string} value * @return {!proto.oracle.v1.QueryRequestVerificationRequest} returns this */ -proto.oracle.v1.QueryRequestVerificationRequest.prototype.setReporter = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - +proto.oracle.v1.QueryRequestVerificationRequest.prototype.setReporter = + function (value) { + return jspb.Message.setProto3StringField(this, 6, value) + } /** * optional bytes signature = 7; * @return {!(string|Uint8Array)} */ -proto.oracle.v1.QueryRequestVerificationRequest.prototype.getSignature = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - +proto.oracle.v1.QueryRequestVerificationRequest.prototype.getSignature = + function () { + return /** @type {!(string|Uint8Array)} */ ( + jspb.Message.getFieldWithDefault(this, 7, '') + ) + } /** * optional bytes signature = 7; * This is a type-conversion wrapper around `getSignature()` * @return {string} */ -proto.oracle.v1.QueryRequestVerificationRequest.prototype.getSignature_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getSignature())); -}; - +proto.oracle.v1.QueryRequestVerificationRequest.prototype.getSignature_asB64 = + function () { + return /** @type {string} */ (jspb.Message.bytesAsB64(this.getSignature())) + } /** * optional bytes signature = 7; @@ -4953,98 +5246,106 @@ proto.oracle.v1.QueryRequestVerificationRequest.prototype.getSignature_asB64 = f * This is a type-conversion wrapper around `getSignature()` * @return {!Uint8Array} */ -proto.oracle.v1.QueryRequestVerificationRequest.prototype.getSignature_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getSignature())); -}; - +proto.oracle.v1.QueryRequestVerificationRequest.prototype.getSignature_asU8 = + function () { + return /** @type {!Uint8Array} */ ( + jspb.Message.bytesAsU8(this.getSignature()) + ) + } /** * @param {!(string|Uint8Array)} value * @return {!proto.oracle.v1.QueryRequestVerificationRequest} returns this */ -proto.oracle.v1.QueryRequestVerificationRequest.prototype.setSignature = function(value) { - return jspb.Message.setProto3BytesField(this, 7, value); -}; - +proto.oracle.v1.QueryRequestVerificationRequest.prototype.setSignature = + function (value) { + return jspb.Message.setProto3BytesField(this, 7, value) + } /** * optional uint64 max_delay = 8; * @return {number} */ -proto.oracle.v1.QueryRequestVerificationRequest.prototype.getMaxDelay = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); -}; - +proto.oracle.v1.QueryRequestVerificationRequest.prototype.getMaxDelay = + function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)) + } /** * @param {number} value * @return {!proto.oracle.v1.QueryRequestVerificationRequest} returns this */ -proto.oracle.v1.QueryRequestVerificationRequest.prototype.setMaxDelay = function(value) { - return jspb.Message.setProto3IntField(this, 8, value); -}; - - - - +proto.oracle.v1.QueryRequestVerificationRequest.prototype.setMaxDelay = + function (value) { + return jspb.Message.setProto3IntField(this, 8, value) + } if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.oracle.v1.QueryRequestVerificationResponse.prototype.toObject = function(opt_includeInstance) { - return proto.oracle.v1.QueryRequestVerificationResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.oracle.v1.QueryRequestVerificationResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.oracle.v1.QueryRequestVerificationResponse.toObject = function(includeInstance, msg) { - var f, obj = { - chainId: jspb.Message.getFieldWithDefault(msg, 1, ""), - validator: jspb.Message.getFieldWithDefault(msg, 2, ""), - requestId: jspb.Message.getFieldWithDefault(msg, 3, 0), - externalId: jspb.Message.getFieldWithDefault(msg, 4, 0), - dataSourceId: jspb.Message.getFieldWithDefault(msg, 5, 0), - isDelay: jspb.Message.getBooleanFieldWithDefault(msg, 6, false) - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.oracle.v1.QueryRequestVerificationResponse.prototype.toObject = + function (opt_includeInstance) { + return proto.oracle.v1.QueryRequestVerificationResponse.toObject( + opt_includeInstance, + this, + ) + } + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.oracle.v1.QueryRequestVerificationResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.oracle.v1.QueryRequestVerificationResponse.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = { + chainId: jspb.Message.getFieldWithDefault(msg, 1, ''), + validator: jspb.Message.getFieldWithDefault(msg, 2, ''), + requestId: jspb.Message.getFieldWithDefault(msg, 3, 0), + externalId: jspb.Message.getFieldWithDefault(msg, 4, 0), + dataSourceId: jspb.Message.getFieldWithDefault(msg, 5, 0), + isDelay: jspb.Message.getBooleanFieldWithDefault(msg, 6, false), + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.oracle.v1.QueryRequestVerificationResponse} */ -proto.oracle.v1.QueryRequestVerificationResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.oracle.v1.QueryRequestVerificationResponse; - return proto.oracle.v1.QueryRequestVerificationResponse.deserializeBinaryFromReader(msg, reader); -}; - +proto.oracle.v1.QueryRequestVerificationResponse.deserializeBinary = function ( + bytes, +) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.oracle.v1.QueryRequestVerificationResponse() + return proto.oracle.v1.QueryRequestVerificationResponse.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -5053,56 +5354,59 @@ proto.oracle.v1.QueryRequestVerificationResponse.deserializeBinary = function(by * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.oracle.v1.QueryRequestVerificationResponse} */ -proto.oracle.v1.QueryRequestVerificationResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setChainId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setValidator(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setRequestId(value); - break; - case 4: - var value = /** @type {number} */ (reader.readUint64()); - msg.setExternalId(value); - break; - case 5: - var value = /** @type {number} */ (reader.readUint64()); - msg.setDataSourceId(value); - break; - case 6: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsDelay(value); - break; - default: - reader.skipField(); - break; +proto.oracle.v1.QueryRequestVerificationResponse.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break + } + var field = reader.getFieldNumber() + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()) + msg.setChainId(value) + break + case 2: + var value = /** @type {string} */ (reader.readString()) + msg.setValidator(value) + break + case 3: + var value = /** @type {number} */ (reader.readUint64()) + msg.setRequestId(value) + break + case 4: + var value = /** @type {number} */ (reader.readUint64()) + msg.setExternalId(value) + break + case 5: + var value = /** @type {number} */ (reader.readUint64()) + msg.setDataSourceId(value) + break + case 6: + var value = /** @type {boolean} */ (reader.readBool()) + msg.setIsDelay(value) + break + default: + reader.skipField() + break + } } + return msg } - return msg; -}; - /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.oracle.v1.QueryRequestVerificationResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.oracle.v1.QueryRequestVerificationResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.oracle.v1.QueryRequestVerificationResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter() + proto.oracle.v1.QueryRequestVerificationResponse.serializeBinaryToWriter( + this, + writer, + ) + return writer.getResultBuffer() + } /** * Serializes the given message to binary data (in protobuf wire @@ -5111,159 +5415,143 @@ proto.oracle.v1.QueryRequestVerificationResponse.prototype.serializeBinary = fun * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.oracle.v1.QueryRequestVerificationResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getChainId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getValidator(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getRequestId(); - if (f !== 0) { - writer.writeUint64( - 3, - f - ); - } - f = message.getExternalId(); - if (f !== 0) { - writer.writeUint64( - 4, - f - ); - } - f = message.getDataSourceId(); - if (f !== 0) { - writer.writeUint64( - 5, - f - ); - } - f = message.getIsDelay(); - if (f) { - writer.writeBool( - 6, - f - ); +proto.oracle.v1.QueryRequestVerificationResponse.serializeBinaryToWriter = + function (message, writer) { + var f = undefined + f = message.getChainId() + if (f.length > 0) { + writer.writeString(1, f) + } + f = message.getValidator() + if (f.length > 0) { + writer.writeString(2, f) + } + f = message.getRequestId() + if (f !== 0) { + writer.writeUint64(3, f) + } + f = message.getExternalId() + if (f !== 0) { + writer.writeUint64(4, f) + } + f = message.getDataSourceId() + if (f !== 0) { + writer.writeUint64(5, f) + } + f = message.getIsDelay() + if (f) { + writer.writeBool(6, f) + } } -}; - /** * optional string chain_id = 1; * @return {string} */ -proto.oracle.v1.QueryRequestVerificationResponse.prototype.getChainId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - +proto.oracle.v1.QueryRequestVerificationResponse.prototype.getChainId = + function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, '')) + } /** * @param {string} value * @return {!proto.oracle.v1.QueryRequestVerificationResponse} returns this */ -proto.oracle.v1.QueryRequestVerificationResponse.prototype.setChainId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - +proto.oracle.v1.QueryRequestVerificationResponse.prototype.setChainId = + function (value) { + return jspb.Message.setProto3StringField(this, 1, value) + } /** * optional string validator = 2; * @return {string} */ -proto.oracle.v1.QueryRequestVerificationResponse.prototype.getValidator = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - +proto.oracle.v1.QueryRequestVerificationResponse.prototype.getValidator = + function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, '')) + } /** * @param {string} value * @return {!proto.oracle.v1.QueryRequestVerificationResponse} returns this */ -proto.oracle.v1.QueryRequestVerificationResponse.prototype.setValidator = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - +proto.oracle.v1.QueryRequestVerificationResponse.prototype.setValidator = + function (value) { + return jspb.Message.setProto3StringField(this, 2, value) + } /** * optional uint64 request_id = 3; * @return {number} */ -proto.oracle.v1.QueryRequestVerificationResponse.prototype.getRequestId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - +proto.oracle.v1.QueryRequestVerificationResponse.prototype.getRequestId = + function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)) + } /** * @param {number} value * @return {!proto.oracle.v1.QueryRequestVerificationResponse} returns this */ -proto.oracle.v1.QueryRequestVerificationResponse.prototype.setRequestId = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - +proto.oracle.v1.QueryRequestVerificationResponse.prototype.setRequestId = + function (value) { + return jspb.Message.setProto3IntField(this, 3, value) + } /** * optional uint64 external_id = 4; * @return {number} */ -proto.oracle.v1.QueryRequestVerificationResponse.prototype.getExternalId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - +proto.oracle.v1.QueryRequestVerificationResponse.prototype.getExternalId = + function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)) + } /** * @param {number} value * @return {!proto.oracle.v1.QueryRequestVerificationResponse} returns this */ -proto.oracle.v1.QueryRequestVerificationResponse.prototype.setExternalId = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - +proto.oracle.v1.QueryRequestVerificationResponse.prototype.setExternalId = + function (value) { + return jspb.Message.setProto3IntField(this, 4, value) + } /** * optional uint64 data_source_id = 5; * @return {number} */ -proto.oracle.v1.QueryRequestVerificationResponse.prototype.getDataSourceId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - +proto.oracle.v1.QueryRequestVerificationResponse.prototype.getDataSourceId = + function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)) + } /** * @param {number} value * @return {!proto.oracle.v1.QueryRequestVerificationResponse} returns this */ -proto.oracle.v1.QueryRequestVerificationResponse.prototype.setDataSourceId = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - +proto.oracle.v1.QueryRequestVerificationResponse.prototype.setDataSourceId = + function (value) { + return jspb.Message.setProto3IntField(this, 5, value) + } /** * optional bool is_delay = 6; * @return {boolean} */ -proto.oracle.v1.QueryRequestVerificationResponse.prototype.getIsDelay = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); -}; - +proto.oracle.v1.QueryRequestVerificationResponse.prototype.getIsDelay = + function () { + return /** @type {boolean} */ ( + jspb.Message.getBooleanFieldWithDefault(this, 6, false) + ) + } /** * @param {boolean} value * @return {!proto.oracle.v1.QueryRequestVerificationResponse} returns this */ -proto.oracle.v1.QueryRequestVerificationResponse.prototype.setIsDelay = function(value) { - return jspb.Message.setProto3BooleanField(this, 6, value); -}; - +proto.oracle.v1.QueryRequestVerificationResponse.prototype.setIsDelay = + function (value) { + return jspb.Message.setProto3BooleanField(this, 6, value) + } -goog.object.extend(exports, proto.oracle.v1); +goog.object.extend(exports, proto.oracle.v1) diff --git a/proto/oracle/v1/query_pb_service.d.ts b/proto/oracle/v1/query_pb_service.d.ts index 16032e6..148275d 100644 --- a/proto/oracle/v1/query_pb_service.d.ts +++ b/proto/oracle/v1/query_pb_service.d.ts @@ -1,310 +1,406 @@ // package: oracle.v1 // file: oracle/v1/query.proto -import * as oracle_v1_query_pb from "../../oracle/v1/query_pb"; -import {grpc} from "@improbable-eng/grpc-web"; +import * as oracle_v1_query_pb from '../../oracle/v1/query_pb' +import { grpc } from '@improbable-eng/grpc-web' type QueryCounts = { - readonly methodName: string; - readonly service: typeof Query; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof oracle_v1_query_pb.QueryCountsRequest; - readonly responseType: typeof oracle_v1_query_pb.QueryCountsResponse; -}; + readonly methodName: string + readonly service: typeof Query + readonly requestStream: false + readonly responseStream: false + readonly requestType: typeof oracle_v1_query_pb.QueryCountsRequest + readonly responseType: typeof oracle_v1_query_pb.QueryCountsResponse +} type QueryData = { - readonly methodName: string; - readonly service: typeof Query; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof oracle_v1_query_pb.QueryDataRequest; - readonly responseType: typeof oracle_v1_query_pb.QueryDataResponse; -}; + readonly methodName: string + readonly service: typeof Query + readonly requestStream: false + readonly responseStream: false + readonly requestType: typeof oracle_v1_query_pb.QueryDataRequest + readonly responseType: typeof oracle_v1_query_pb.QueryDataResponse +} type QueryDataSource = { - readonly methodName: string; - readonly service: typeof Query; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof oracle_v1_query_pb.QueryDataSourceRequest; - readonly responseType: typeof oracle_v1_query_pb.QueryDataSourceResponse; -}; + readonly methodName: string + readonly service: typeof Query + readonly requestStream: false + readonly responseStream: false + readonly requestType: typeof oracle_v1_query_pb.QueryDataSourceRequest + readonly responseType: typeof oracle_v1_query_pb.QueryDataSourceResponse +} type QueryOracleScript = { - readonly methodName: string; - readonly service: typeof Query; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof oracle_v1_query_pb.QueryOracleScriptRequest; - readonly responseType: typeof oracle_v1_query_pb.QueryOracleScriptResponse; -}; + readonly methodName: string + readonly service: typeof Query + readonly requestStream: false + readonly responseStream: false + readonly requestType: typeof oracle_v1_query_pb.QueryOracleScriptRequest + readonly responseType: typeof oracle_v1_query_pb.QueryOracleScriptResponse +} type QueryRequest = { - readonly methodName: string; - readonly service: typeof Query; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof oracle_v1_query_pb.QueryRequestRequest; - readonly responseType: typeof oracle_v1_query_pb.QueryRequestResponse; -}; + readonly methodName: string + readonly service: typeof Query + readonly requestStream: false + readonly responseStream: false + readonly requestType: typeof oracle_v1_query_pb.QueryRequestRequest + readonly responseType: typeof oracle_v1_query_pb.QueryRequestResponse +} type QueryPendingRequests = { - readonly methodName: string; - readonly service: typeof Query; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof oracle_v1_query_pb.QueryPendingRequestsRequest; - readonly responseType: typeof oracle_v1_query_pb.QueryPendingRequestsResponse; -}; + readonly methodName: string + readonly service: typeof Query + readonly requestStream: false + readonly responseStream: false + readonly requestType: typeof oracle_v1_query_pb.QueryPendingRequestsRequest + readonly responseType: typeof oracle_v1_query_pb.QueryPendingRequestsResponse +} type QueryValidator = { - readonly methodName: string; - readonly service: typeof Query; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof oracle_v1_query_pb.QueryValidatorRequest; - readonly responseType: typeof oracle_v1_query_pb.QueryValidatorResponse; -}; + readonly methodName: string + readonly service: typeof Query + readonly requestStream: false + readonly responseStream: false + readonly requestType: typeof oracle_v1_query_pb.QueryValidatorRequest + readonly responseType: typeof oracle_v1_query_pb.QueryValidatorResponse +} type QueryIsReporter = { - readonly methodName: string; - readonly service: typeof Query; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof oracle_v1_query_pb.QueryIsReporterRequest; - readonly responseType: typeof oracle_v1_query_pb.QueryIsReporterResponse; -}; + readonly methodName: string + readonly service: typeof Query + readonly requestStream: false + readonly responseStream: false + readonly requestType: typeof oracle_v1_query_pb.QueryIsReporterRequest + readonly responseType: typeof oracle_v1_query_pb.QueryIsReporterResponse +} type QueryReporters = { - readonly methodName: string; - readonly service: typeof Query; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof oracle_v1_query_pb.QueryReportersRequest; - readonly responseType: typeof oracle_v1_query_pb.QueryReportersResponse; -}; + readonly methodName: string + readonly service: typeof Query + readonly requestStream: false + readonly responseStream: false + readonly requestType: typeof oracle_v1_query_pb.QueryReportersRequest + readonly responseType: typeof oracle_v1_query_pb.QueryReportersResponse +} type QueryActiveValidators = { - readonly methodName: string; - readonly service: typeof Query; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof oracle_v1_query_pb.QueryActiveValidatorsRequest; - readonly responseType: typeof oracle_v1_query_pb.QueryActiveValidatorsResponse; -}; + readonly methodName: string + readonly service: typeof Query + readonly requestStream: false + readonly responseStream: false + readonly requestType: typeof oracle_v1_query_pb.QueryActiveValidatorsRequest + readonly responseType: typeof oracle_v1_query_pb.QueryActiveValidatorsResponse +} type QueryParams = { - readonly methodName: string; - readonly service: typeof Query; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof oracle_v1_query_pb.QueryParamsRequest; - readonly responseType: typeof oracle_v1_query_pb.QueryParamsResponse; -}; + readonly methodName: string + readonly service: typeof Query + readonly requestStream: false + readonly responseStream: false + readonly requestType: typeof oracle_v1_query_pb.QueryParamsRequest + readonly responseType: typeof oracle_v1_query_pb.QueryParamsResponse +} type QueryRequestSearch = { - readonly methodName: string; - readonly service: typeof Query; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof oracle_v1_query_pb.QueryRequestSearchRequest; - readonly responseType: typeof oracle_v1_query_pb.QueryRequestSearchResponse; -}; + readonly methodName: string + readonly service: typeof Query + readonly requestStream: false + readonly responseStream: false + readonly requestType: typeof oracle_v1_query_pb.QueryRequestSearchRequest + readonly responseType: typeof oracle_v1_query_pb.QueryRequestSearchResponse +} type QueryRequestPrice = { - readonly methodName: string; - readonly service: typeof Query; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof oracle_v1_query_pb.QueryRequestPriceRequest; - readonly responseType: typeof oracle_v1_query_pb.QueryRequestPriceResponse; -}; + readonly methodName: string + readonly service: typeof Query + readonly requestStream: false + readonly responseStream: false + readonly requestType: typeof oracle_v1_query_pb.QueryRequestPriceRequest + readonly responseType: typeof oracle_v1_query_pb.QueryRequestPriceResponse +} type QueryRequestVerification = { - readonly methodName: string; - readonly service: typeof Query; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof oracle_v1_query_pb.QueryRequestVerificationRequest; - readonly responseType: typeof oracle_v1_query_pb.QueryRequestVerificationResponse; -}; + readonly methodName: string + readonly service: typeof Query + readonly requestStream: false + readonly responseStream: false + readonly requestType: typeof oracle_v1_query_pb.QueryRequestVerificationRequest + readonly responseType: typeof oracle_v1_query_pb.QueryRequestVerificationResponse +} export class Query { - static readonly serviceName: string; - static readonly Counts: QueryCounts; - static readonly Data: QueryData; - static readonly DataSource: QueryDataSource; - static readonly OracleScript: QueryOracleScript; - static readonly Request: QueryRequest; - static readonly PendingRequests: QueryPendingRequests; - static readonly Validator: QueryValidator; - static readonly IsReporter: QueryIsReporter; - static readonly Reporters: QueryReporters; - static readonly ActiveValidators: QueryActiveValidators; - static readonly Params: QueryParams; - static readonly RequestSearch: QueryRequestSearch; - static readonly RequestPrice: QueryRequestPrice; - static readonly RequestVerification: QueryRequestVerification; + static readonly serviceName: string + static readonly Counts: QueryCounts + static readonly Data: QueryData + static readonly DataSource: QueryDataSource + static readonly OracleScript: QueryOracleScript + static readonly Request: QueryRequest + static readonly PendingRequests: QueryPendingRequests + static readonly Validator: QueryValidator + static readonly IsReporter: QueryIsReporter + static readonly Reporters: QueryReporters + static readonly ActiveValidators: QueryActiveValidators + static readonly Params: QueryParams + static readonly RequestSearch: QueryRequestSearch + static readonly RequestPrice: QueryRequestPrice + static readonly RequestVerification: QueryRequestVerification } -export type ServiceError = { message: string, code: number; metadata: grpc.Metadata } -export type Status = { details: string, code: number; metadata: grpc.Metadata } +export type ServiceError = { + message: string + code: number + metadata: grpc.Metadata +} +export type Status = { details: string; code: number; metadata: grpc.Metadata } interface UnaryResponse { - cancel(): void; + cancel(): void } interface ResponseStream { - cancel(): void; - on(type: 'data', handler: (message: T) => void): ResponseStream; - on(type: 'end', handler: (status?: Status) => void): ResponseStream; - on(type: 'status', handler: (status: Status) => void): ResponseStream; + cancel(): void + on(type: 'data', handler: (message: T) => void): ResponseStream + on(type: 'end', handler: (status?: Status) => void): ResponseStream + on(type: 'status', handler: (status: Status) => void): ResponseStream } interface RequestStream { - write(message: T): RequestStream; - end(): void; - cancel(): void; - on(type: 'end', handler: (status?: Status) => void): RequestStream; - on(type: 'status', handler: (status: Status) => void): RequestStream; + write(message: T): RequestStream + end(): void + cancel(): void + on(type: 'end', handler: (status?: Status) => void): RequestStream + on(type: 'status', handler: (status: Status) => void): RequestStream } interface BidirectionalStream { - write(message: ReqT): BidirectionalStream; - end(): void; - cancel(): void; - on(type: 'data', handler: (message: ResT) => void): BidirectionalStream; - on(type: 'end', handler: (status?: Status) => void): BidirectionalStream; - on(type: 'status', handler: (status: Status) => void): BidirectionalStream; + write(message: ReqT): BidirectionalStream + end(): void + cancel(): void + on( + type: 'data', + handler: (message: ResT) => void, + ): BidirectionalStream + on( + type: 'end', + handler: (status?: Status) => void, + ): BidirectionalStream + on( + type: 'status', + handler: (status: Status) => void, + ): BidirectionalStream } export class QueryClient { - readonly serviceHost: string; + readonly serviceHost: string - constructor(serviceHost: string, options?: grpc.RpcOptions); + constructor(serviceHost: string, options?: grpc.RpcOptions) counts( requestMessage: oracle_v1_query_pb.QueryCountsRequest, metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: oracle_v1_query_pb.QueryCountsResponse|null) => void - ): UnaryResponse; + callback: ( + error: ServiceError | null, + responseMessage: oracle_v1_query_pb.QueryCountsResponse | null, + ) => void, + ): UnaryResponse counts( requestMessage: oracle_v1_query_pb.QueryCountsRequest, - callback: (error: ServiceError|null, responseMessage: oracle_v1_query_pb.QueryCountsResponse|null) => void - ): UnaryResponse; + callback: ( + error: ServiceError | null, + responseMessage: oracle_v1_query_pb.QueryCountsResponse | null, + ) => void, + ): UnaryResponse data( requestMessage: oracle_v1_query_pb.QueryDataRequest, metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: oracle_v1_query_pb.QueryDataResponse|null) => void - ): UnaryResponse; + callback: ( + error: ServiceError | null, + responseMessage: oracle_v1_query_pb.QueryDataResponse | null, + ) => void, + ): UnaryResponse data( requestMessage: oracle_v1_query_pb.QueryDataRequest, - callback: (error: ServiceError|null, responseMessage: oracle_v1_query_pb.QueryDataResponse|null) => void - ): UnaryResponse; + callback: ( + error: ServiceError | null, + responseMessage: oracle_v1_query_pb.QueryDataResponse | null, + ) => void, + ): UnaryResponse dataSource( requestMessage: oracle_v1_query_pb.QueryDataSourceRequest, metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: oracle_v1_query_pb.QueryDataSourceResponse|null) => void - ): UnaryResponse; + callback: ( + error: ServiceError | null, + responseMessage: oracle_v1_query_pb.QueryDataSourceResponse | null, + ) => void, + ): UnaryResponse dataSource( requestMessage: oracle_v1_query_pb.QueryDataSourceRequest, - callback: (error: ServiceError|null, responseMessage: oracle_v1_query_pb.QueryDataSourceResponse|null) => void - ): UnaryResponse; + callback: ( + error: ServiceError | null, + responseMessage: oracle_v1_query_pb.QueryDataSourceResponse | null, + ) => void, + ): UnaryResponse oracleScript( requestMessage: oracle_v1_query_pb.QueryOracleScriptRequest, metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: oracle_v1_query_pb.QueryOracleScriptResponse|null) => void - ): UnaryResponse; + callback: ( + error: ServiceError | null, + responseMessage: oracle_v1_query_pb.QueryOracleScriptResponse | null, + ) => void, + ): UnaryResponse oracleScript( requestMessage: oracle_v1_query_pb.QueryOracleScriptRequest, - callback: (error: ServiceError|null, responseMessage: oracle_v1_query_pb.QueryOracleScriptResponse|null) => void - ): UnaryResponse; + callback: ( + error: ServiceError | null, + responseMessage: oracle_v1_query_pb.QueryOracleScriptResponse | null, + ) => void, + ): UnaryResponse request( requestMessage: oracle_v1_query_pb.QueryRequestRequest, metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: oracle_v1_query_pb.QueryRequestResponse|null) => void - ): UnaryResponse; + callback: ( + error: ServiceError | null, + responseMessage: oracle_v1_query_pb.QueryRequestResponse | null, + ) => void, + ): UnaryResponse request( requestMessage: oracle_v1_query_pb.QueryRequestRequest, - callback: (error: ServiceError|null, responseMessage: oracle_v1_query_pb.QueryRequestResponse|null) => void - ): UnaryResponse; + callback: ( + error: ServiceError | null, + responseMessage: oracle_v1_query_pb.QueryRequestResponse | null, + ) => void, + ): UnaryResponse pendingRequests( requestMessage: oracle_v1_query_pb.QueryPendingRequestsRequest, metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: oracle_v1_query_pb.QueryPendingRequestsResponse|null) => void - ): UnaryResponse; + callback: ( + error: ServiceError | null, + responseMessage: oracle_v1_query_pb.QueryPendingRequestsResponse | null, + ) => void, + ): UnaryResponse pendingRequests( requestMessage: oracle_v1_query_pb.QueryPendingRequestsRequest, - callback: (error: ServiceError|null, responseMessage: oracle_v1_query_pb.QueryPendingRequestsResponse|null) => void - ): UnaryResponse; + callback: ( + error: ServiceError | null, + responseMessage: oracle_v1_query_pb.QueryPendingRequestsResponse | null, + ) => void, + ): UnaryResponse validator( requestMessage: oracle_v1_query_pb.QueryValidatorRequest, metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: oracle_v1_query_pb.QueryValidatorResponse|null) => void - ): UnaryResponse; + callback: ( + error: ServiceError | null, + responseMessage: oracle_v1_query_pb.QueryValidatorResponse | null, + ) => void, + ): UnaryResponse validator( requestMessage: oracle_v1_query_pb.QueryValidatorRequest, - callback: (error: ServiceError|null, responseMessage: oracle_v1_query_pb.QueryValidatorResponse|null) => void - ): UnaryResponse; + callback: ( + error: ServiceError | null, + responseMessage: oracle_v1_query_pb.QueryValidatorResponse | null, + ) => void, + ): UnaryResponse isReporter( requestMessage: oracle_v1_query_pb.QueryIsReporterRequest, metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: oracle_v1_query_pb.QueryIsReporterResponse|null) => void - ): UnaryResponse; + callback: ( + error: ServiceError | null, + responseMessage: oracle_v1_query_pb.QueryIsReporterResponse | null, + ) => void, + ): UnaryResponse isReporter( requestMessage: oracle_v1_query_pb.QueryIsReporterRequest, - callback: (error: ServiceError|null, responseMessage: oracle_v1_query_pb.QueryIsReporterResponse|null) => void - ): UnaryResponse; + callback: ( + error: ServiceError | null, + responseMessage: oracle_v1_query_pb.QueryIsReporterResponse | null, + ) => void, + ): UnaryResponse reporters( requestMessage: oracle_v1_query_pb.QueryReportersRequest, metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: oracle_v1_query_pb.QueryReportersResponse|null) => void - ): UnaryResponse; + callback: ( + error: ServiceError | null, + responseMessage: oracle_v1_query_pb.QueryReportersResponse | null, + ) => void, + ): UnaryResponse reporters( requestMessage: oracle_v1_query_pb.QueryReportersRequest, - callback: (error: ServiceError|null, responseMessage: oracle_v1_query_pb.QueryReportersResponse|null) => void - ): UnaryResponse; + callback: ( + error: ServiceError | null, + responseMessage: oracle_v1_query_pb.QueryReportersResponse | null, + ) => void, + ): UnaryResponse activeValidators( requestMessage: oracle_v1_query_pb.QueryActiveValidatorsRequest, metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: oracle_v1_query_pb.QueryActiveValidatorsResponse|null) => void - ): UnaryResponse; + callback: ( + error: ServiceError | null, + responseMessage: oracle_v1_query_pb.QueryActiveValidatorsResponse | null, + ) => void, + ): UnaryResponse activeValidators( requestMessage: oracle_v1_query_pb.QueryActiveValidatorsRequest, - callback: (error: ServiceError|null, responseMessage: oracle_v1_query_pb.QueryActiveValidatorsResponse|null) => void - ): UnaryResponse; + callback: ( + error: ServiceError | null, + responseMessage: oracle_v1_query_pb.QueryActiveValidatorsResponse | null, + ) => void, + ): UnaryResponse params( requestMessage: oracle_v1_query_pb.QueryParamsRequest, metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: oracle_v1_query_pb.QueryParamsResponse|null) => void - ): UnaryResponse; + callback: ( + error: ServiceError | null, + responseMessage: oracle_v1_query_pb.QueryParamsResponse | null, + ) => void, + ): UnaryResponse params( requestMessage: oracle_v1_query_pb.QueryParamsRequest, - callback: (error: ServiceError|null, responseMessage: oracle_v1_query_pb.QueryParamsResponse|null) => void - ): UnaryResponse; + callback: ( + error: ServiceError | null, + responseMessage: oracle_v1_query_pb.QueryParamsResponse | null, + ) => void, + ): UnaryResponse requestSearch( requestMessage: oracle_v1_query_pb.QueryRequestSearchRequest, metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: oracle_v1_query_pb.QueryRequestSearchResponse|null) => void - ): UnaryResponse; + callback: ( + error: ServiceError | null, + responseMessage: oracle_v1_query_pb.QueryRequestSearchResponse | null, + ) => void, + ): UnaryResponse requestSearch( requestMessage: oracle_v1_query_pb.QueryRequestSearchRequest, - callback: (error: ServiceError|null, responseMessage: oracle_v1_query_pb.QueryRequestSearchResponse|null) => void - ): UnaryResponse; + callback: ( + error: ServiceError | null, + responseMessage: oracle_v1_query_pb.QueryRequestSearchResponse | null, + ) => void, + ): UnaryResponse requestPrice( requestMessage: oracle_v1_query_pb.QueryRequestPriceRequest, metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: oracle_v1_query_pb.QueryRequestPriceResponse|null) => void - ): UnaryResponse; + callback: ( + error: ServiceError | null, + responseMessage: oracle_v1_query_pb.QueryRequestPriceResponse | null, + ) => void, + ): UnaryResponse requestPrice( requestMessage: oracle_v1_query_pb.QueryRequestPriceRequest, - callback: (error: ServiceError|null, responseMessage: oracle_v1_query_pb.QueryRequestPriceResponse|null) => void - ): UnaryResponse; + callback: ( + error: ServiceError | null, + responseMessage: oracle_v1_query_pb.QueryRequestPriceResponse | null, + ) => void, + ): UnaryResponse requestVerification( requestMessage: oracle_v1_query_pb.QueryRequestVerificationRequest, metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: oracle_v1_query_pb.QueryRequestVerificationResponse|null) => void - ): UnaryResponse; + callback: ( + error: ServiceError | null, + responseMessage: oracle_v1_query_pb.QueryRequestVerificationResponse | null, + ) => void, + ): UnaryResponse requestVerification( requestMessage: oracle_v1_query_pb.QueryRequestVerificationRequest, - callback: (error: ServiceError|null, responseMessage: oracle_v1_query_pb.QueryRequestVerificationResponse|null) => void - ): UnaryResponse; + callback: ( + error: ServiceError | null, + responseMessage: oracle_v1_query_pb.QueryRequestVerificationResponse | null, + ) => void, + ): UnaryResponse } - diff --git a/proto/oracle/v1/query_pb_service.js b/proto/oracle/v1/query_pb_service.js index fc2ce76..af46ab0 100644 --- a/proto/oracle/v1/query_pb_service.js +++ b/proto/oracle/v1/query_pb_service.js @@ -1,151 +1,155 @@ // package: oracle.v1 // file: oracle/v1/query.proto -var oracle_v1_query_pb = require("../../oracle/v1/query_pb"); -var grpc = require("@improbable-eng/grpc-web").grpc; +var oracle_v1_query_pb = require('../../oracle/v1/query_pb') +var grpc = require('@improbable-eng/grpc-web').grpc var Query = (function () { function Query() {} - Query.serviceName = "oracle.v1.Query"; - return Query; -}()); + Query.serviceName = 'oracle.v1.Query' + return Query +})() Query.Counts = { - methodName: "Counts", + methodName: 'Counts', service: Query, requestStream: false, responseStream: false, requestType: oracle_v1_query_pb.QueryCountsRequest, - responseType: oracle_v1_query_pb.QueryCountsResponse -}; + responseType: oracle_v1_query_pb.QueryCountsResponse, +} Query.Data = { - methodName: "Data", + methodName: 'Data', service: Query, requestStream: false, responseStream: false, requestType: oracle_v1_query_pb.QueryDataRequest, - responseType: oracle_v1_query_pb.QueryDataResponse -}; + responseType: oracle_v1_query_pb.QueryDataResponse, +} Query.DataSource = { - methodName: "DataSource", + methodName: 'DataSource', service: Query, requestStream: false, responseStream: false, requestType: oracle_v1_query_pb.QueryDataSourceRequest, - responseType: oracle_v1_query_pb.QueryDataSourceResponse -}; + responseType: oracle_v1_query_pb.QueryDataSourceResponse, +} Query.OracleScript = { - methodName: "OracleScript", + methodName: 'OracleScript', service: Query, requestStream: false, responseStream: false, requestType: oracle_v1_query_pb.QueryOracleScriptRequest, - responseType: oracle_v1_query_pb.QueryOracleScriptResponse -}; + responseType: oracle_v1_query_pb.QueryOracleScriptResponse, +} Query.Request = { - methodName: "Request", + methodName: 'Request', service: Query, requestStream: false, responseStream: false, requestType: oracle_v1_query_pb.QueryRequestRequest, - responseType: oracle_v1_query_pb.QueryRequestResponse -}; + responseType: oracle_v1_query_pb.QueryRequestResponse, +} Query.PendingRequests = { - methodName: "PendingRequests", + methodName: 'PendingRequests', service: Query, requestStream: false, responseStream: false, requestType: oracle_v1_query_pb.QueryPendingRequestsRequest, - responseType: oracle_v1_query_pb.QueryPendingRequestsResponse -}; + responseType: oracle_v1_query_pb.QueryPendingRequestsResponse, +} Query.Validator = { - methodName: "Validator", + methodName: 'Validator', service: Query, requestStream: false, responseStream: false, requestType: oracle_v1_query_pb.QueryValidatorRequest, - responseType: oracle_v1_query_pb.QueryValidatorResponse -}; + responseType: oracle_v1_query_pb.QueryValidatorResponse, +} Query.IsReporter = { - methodName: "IsReporter", + methodName: 'IsReporter', service: Query, requestStream: false, responseStream: false, requestType: oracle_v1_query_pb.QueryIsReporterRequest, - responseType: oracle_v1_query_pb.QueryIsReporterResponse -}; + responseType: oracle_v1_query_pb.QueryIsReporterResponse, +} Query.Reporters = { - methodName: "Reporters", + methodName: 'Reporters', service: Query, requestStream: false, responseStream: false, requestType: oracle_v1_query_pb.QueryReportersRequest, - responseType: oracle_v1_query_pb.QueryReportersResponse -}; + responseType: oracle_v1_query_pb.QueryReportersResponse, +} Query.ActiveValidators = { - methodName: "ActiveValidators", + methodName: 'ActiveValidators', service: Query, requestStream: false, responseStream: false, requestType: oracle_v1_query_pb.QueryActiveValidatorsRequest, - responseType: oracle_v1_query_pb.QueryActiveValidatorsResponse -}; + responseType: oracle_v1_query_pb.QueryActiveValidatorsResponse, +} Query.Params = { - methodName: "Params", + methodName: 'Params', service: Query, requestStream: false, responseStream: false, requestType: oracle_v1_query_pb.QueryParamsRequest, - responseType: oracle_v1_query_pb.QueryParamsResponse -}; + responseType: oracle_v1_query_pb.QueryParamsResponse, +} Query.RequestSearch = { - methodName: "RequestSearch", + methodName: 'RequestSearch', service: Query, requestStream: false, responseStream: false, requestType: oracle_v1_query_pb.QueryRequestSearchRequest, - responseType: oracle_v1_query_pb.QueryRequestSearchResponse -}; + responseType: oracle_v1_query_pb.QueryRequestSearchResponse, +} Query.RequestPrice = { - methodName: "RequestPrice", + methodName: 'RequestPrice', service: Query, requestStream: false, responseStream: false, requestType: oracle_v1_query_pb.QueryRequestPriceRequest, - responseType: oracle_v1_query_pb.QueryRequestPriceResponse -}; + responseType: oracle_v1_query_pb.QueryRequestPriceResponse, +} Query.RequestVerification = { - methodName: "RequestVerification", + methodName: 'RequestVerification', service: Query, requestStream: false, responseStream: false, requestType: oracle_v1_query_pb.QueryRequestVerificationRequest, - responseType: oracle_v1_query_pb.QueryRequestVerificationResponse -}; + responseType: oracle_v1_query_pb.QueryRequestVerificationResponse, +} -exports.Query = Query; +exports.Query = Query function QueryClient(serviceHost, options) { - this.serviceHost = serviceHost; - this.options = options || {}; + this.serviceHost = serviceHost + this.options = options || {} } -QueryClient.prototype.counts = function counts(requestMessage, metadata, callback) { +QueryClient.prototype.counts = function counts( + requestMessage, + metadata, + callback, +) { if (arguments.length === 2) { - callback = arguments[1]; + callback = arguments[1] } var client = grpc.unary(Query.Counts, { request: requestMessage, @@ -156,27 +160,27 @@ QueryClient.prototype.counts = function counts(requestMessage, metadata, callbac onEnd: function (response) { if (callback) { if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); + var err = new Error(response.statusMessage) + err.code = response.status + err.metadata = response.trailers + callback(err, null) } else { - callback(null, response.message); + callback(null, response.message) } } - } - }); + }, + }) return { cancel: function () { - callback = null; - client.close(); - } - }; -}; + callback = null + client.close() + }, + } +} QueryClient.prototype.data = function data(requestMessage, metadata, callback) { if (arguments.length === 2) { - callback = arguments[1]; + callback = arguments[1] } var client = grpc.unary(Query.Data, { request: requestMessage, @@ -187,27 +191,31 @@ QueryClient.prototype.data = function data(requestMessage, metadata, callback) { onEnd: function (response) { if (callback) { if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); + var err = new Error(response.statusMessage) + err.code = response.status + err.metadata = response.trailers + callback(err, null) } else { - callback(null, response.message); + callback(null, response.message) } } - } - }); + }, + }) return { cancel: function () { - callback = null; - client.close(); - } - }; -}; + callback = null + client.close() + }, + } +} -QueryClient.prototype.dataSource = function dataSource(requestMessage, metadata, callback) { +QueryClient.prototype.dataSource = function dataSource( + requestMessage, + metadata, + callback, +) { if (arguments.length === 2) { - callback = arguments[1]; + callback = arguments[1] } var client = grpc.unary(Query.DataSource, { request: requestMessage, @@ -218,27 +226,31 @@ QueryClient.prototype.dataSource = function dataSource(requestMessage, metadata, onEnd: function (response) { if (callback) { if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); + var err = new Error(response.statusMessage) + err.code = response.status + err.metadata = response.trailers + callback(err, null) } else { - callback(null, response.message); + callback(null, response.message) } } - } - }); + }, + }) return { cancel: function () { - callback = null; - client.close(); - } - }; -}; + callback = null + client.close() + }, + } +} -QueryClient.prototype.oracleScript = function oracleScript(requestMessage, metadata, callback) { +QueryClient.prototype.oracleScript = function oracleScript( + requestMessage, + metadata, + callback, +) { if (arguments.length === 2) { - callback = arguments[1]; + callback = arguments[1] } var client = grpc.unary(Query.OracleScript, { request: requestMessage, @@ -249,27 +261,31 @@ QueryClient.prototype.oracleScript = function oracleScript(requestMessage, metad onEnd: function (response) { if (callback) { if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); + var err = new Error(response.statusMessage) + err.code = response.status + err.metadata = response.trailers + callback(err, null) } else { - callback(null, response.message); + callback(null, response.message) } } - } - }); + }, + }) return { cancel: function () { - callback = null; - client.close(); - } - }; -}; + callback = null + client.close() + }, + } +} -QueryClient.prototype.request = function request(requestMessage, metadata, callback) { +QueryClient.prototype.request = function request( + requestMessage, + metadata, + callback, +) { if (arguments.length === 2) { - callback = arguments[1]; + callback = arguments[1] } var client = grpc.unary(Query.Request, { request: requestMessage, @@ -280,27 +296,31 @@ QueryClient.prototype.request = function request(requestMessage, metadata, callb onEnd: function (response) { if (callback) { if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); + var err = new Error(response.statusMessage) + err.code = response.status + err.metadata = response.trailers + callback(err, null) } else { - callback(null, response.message); + callback(null, response.message) } } - } - }); + }, + }) return { cancel: function () { - callback = null; - client.close(); - } - }; -}; + callback = null + client.close() + }, + } +} -QueryClient.prototype.pendingRequests = function pendingRequests(requestMessage, metadata, callback) { +QueryClient.prototype.pendingRequests = function pendingRequests( + requestMessage, + metadata, + callback, +) { if (arguments.length === 2) { - callback = arguments[1]; + callback = arguments[1] } var client = grpc.unary(Query.PendingRequests, { request: requestMessage, @@ -311,27 +331,31 @@ QueryClient.prototype.pendingRequests = function pendingRequests(requestMessage, onEnd: function (response) { if (callback) { if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); + var err = new Error(response.statusMessage) + err.code = response.status + err.metadata = response.trailers + callback(err, null) } else { - callback(null, response.message); + callback(null, response.message) } } - } - }); + }, + }) return { cancel: function () { - callback = null; - client.close(); - } - }; -}; + callback = null + client.close() + }, + } +} -QueryClient.prototype.validator = function validator(requestMessage, metadata, callback) { +QueryClient.prototype.validator = function validator( + requestMessage, + metadata, + callback, +) { if (arguments.length === 2) { - callback = arguments[1]; + callback = arguments[1] } var client = grpc.unary(Query.Validator, { request: requestMessage, @@ -342,27 +366,31 @@ QueryClient.prototype.validator = function validator(requestMessage, metadata, c onEnd: function (response) { if (callback) { if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); + var err = new Error(response.statusMessage) + err.code = response.status + err.metadata = response.trailers + callback(err, null) } else { - callback(null, response.message); + callback(null, response.message) } } - } - }); + }, + }) return { cancel: function () { - callback = null; - client.close(); - } - }; -}; + callback = null + client.close() + }, + } +} -QueryClient.prototype.isReporter = function isReporter(requestMessage, metadata, callback) { +QueryClient.prototype.isReporter = function isReporter( + requestMessage, + metadata, + callback, +) { if (arguments.length === 2) { - callback = arguments[1]; + callback = arguments[1] } var client = grpc.unary(Query.IsReporter, { request: requestMessage, @@ -373,27 +401,31 @@ QueryClient.prototype.isReporter = function isReporter(requestMessage, metadata, onEnd: function (response) { if (callback) { if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); + var err = new Error(response.statusMessage) + err.code = response.status + err.metadata = response.trailers + callback(err, null) } else { - callback(null, response.message); + callback(null, response.message) } } - } - }); + }, + }) return { cancel: function () { - callback = null; - client.close(); - } - }; -}; + callback = null + client.close() + }, + } +} -QueryClient.prototype.reporters = function reporters(requestMessage, metadata, callback) { +QueryClient.prototype.reporters = function reporters( + requestMessage, + metadata, + callback, +) { if (arguments.length === 2) { - callback = arguments[1]; + callback = arguments[1] } var client = grpc.unary(Query.Reporters, { request: requestMessage, @@ -404,27 +436,31 @@ QueryClient.prototype.reporters = function reporters(requestMessage, metadata, c onEnd: function (response) { if (callback) { if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); + var err = new Error(response.statusMessage) + err.code = response.status + err.metadata = response.trailers + callback(err, null) } else { - callback(null, response.message); + callback(null, response.message) } } - } - }); + }, + }) return { cancel: function () { - callback = null; - client.close(); - } - }; -}; + callback = null + client.close() + }, + } +} -QueryClient.prototype.activeValidators = function activeValidators(requestMessage, metadata, callback) { +QueryClient.prototype.activeValidators = function activeValidators( + requestMessage, + metadata, + callback, +) { if (arguments.length === 2) { - callback = arguments[1]; + callback = arguments[1] } var client = grpc.unary(Query.ActiveValidators, { request: requestMessage, @@ -435,27 +471,31 @@ QueryClient.prototype.activeValidators = function activeValidators(requestMessag onEnd: function (response) { if (callback) { if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); + var err = new Error(response.statusMessage) + err.code = response.status + err.metadata = response.trailers + callback(err, null) } else { - callback(null, response.message); + callback(null, response.message) } } - } - }); + }, + }) return { cancel: function () { - callback = null; - client.close(); - } - }; -}; + callback = null + client.close() + }, + } +} -QueryClient.prototype.params = function params(requestMessage, metadata, callback) { +QueryClient.prototype.params = function params( + requestMessage, + metadata, + callback, +) { if (arguments.length === 2) { - callback = arguments[1]; + callback = arguments[1] } var client = grpc.unary(Query.Params, { request: requestMessage, @@ -466,27 +506,31 @@ QueryClient.prototype.params = function params(requestMessage, metadata, callbac onEnd: function (response) { if (callback) { if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); + var err = new Error(response.statusMessage) + err.code = response.status + err.metadata = response.trailers + callback(err, null) } else { - callback(null, response.message); + callback(null, response.message) } } - } - }); + }, + }) return { cancel: function () { - callback = null; - client.close(); - } - }; -}; + callback = null + client.close() + }, + } +} -QueryClient.prototype.requestSearch = function requestSearch(requestMessage, metadata, callback) { +QueryClient.prototype.requestSearch = function requestSearch( + requestMessage, + metadata, + callback, +) { if (arguments.length === 2) { - callback = arguments[1]; + callback = arguments[1] } var client = grpc.unary(Query.RequestSearch, { request: requestMessage, @@ -497,27 +541,31 @@ QueryClient.prototype.requestSearch = function requestSearch(requestMessage, met onEnd: function (response) { if (callback) { if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); + var err = new Error(response.statusMessage) + err.code = response.status + err.metadata = response.trailers + callback(err, null) } else { - callback(null, response.message); + callback(null, response.message) } } - } - }); + }, + }) return { cancel: function () { - callback = null; - client.close(); - } - }; -}; + callback = null + client.close() + }, + } +} -QueryClient.prototype.requestPrice = function requestPrice(requestMessage, metadata, callback) { +QueryClient.prototype.requestPrice = function requestPrice( + requestMessage, + metadata, + callback, +) { if (arguments.length === 2) { - callback = arguments[1]; + callback = arguments[1] } var client = grpc.unary(Query.RequestPrice, { request: requestMessage, @@ -528,27 +576,31 @@ QueryClient.prototype.requestPrice = function requestPrice(requestMessage, metad onEnd: function (response) { if (callback) { if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); + var err = new Error(response.statusMessage) + err.code = response.status + err.metadata = response.trailers + callback(err, null) } else { - callback(null, response.message); + callback(null, response.message) } } - } - }); + }, + }) return { cancel: function () { - callback = null; - client.close(); - } - }; -}; + callback = null + client.close() + }, + } +} -QueryClient.prototype.requestVerification = function requestVerification(requestMessage, metadata, callback) { +QueryClient.prototype.requestVerification = function requestVerification( + requestMessage, + metadata, + callback, +) { if (arguments.length === 2) { - callback = arguments[1]; + callback = arguments[1] } var client = grpc.unary(Query.RequestVerification, { request: requestMessage, @@ -559,23 +611,22 @@ QueryClient.prototype.requestVerification = function requestVerification(request onEnd: function (response) { if (callback) { if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); + var err = new Error(response.statusMessage) + err.code = response.status + err.metadata = response.trailers + callback(err, null) } else { - callback(null, response.message); + callback(null, response.message) } } - } - }); + }, + }) return { cancel: function () { - callback = null; - client.close(); - } - }; -}; - -exports.QueryClient = QueryClient; + callback = null + client.close() + }, + } +} +exports.QueryClient = QueryClient diff --git a/proto/oracle/v1/tx_pb.d.ts b/proto/oracle/v1/tx_pb.d.ts index 8cb8f87..dbd848f 100644 --- a/proto/oracle/v1/tx_pb.d.ts +++ b/proto/oracle/v1/tx_pb.d.ts @@ -1,471 +1,646 @@ // package: oracle.v1 // file: oracle/v1/tx.proto -import * as jspb from "google-protobuf"; -import * as gogoproto_gogo_pb from "../../gogoproto/gogo_pb"; -import * as oracle_v1_oracle_pb from "../../oracle/v1/oracle_pb"; -import * as cosmos_base_v1beta1_coin_pb from "../../cosmos/base/v1beta1/coin_pb"; -import * as cosmos_proto_cosmos_pb from "../../cosmos_proto/cosmos_pb"; -import * as cosmos_msg_v1_msg_pb from "../../cosmos/msg/v1/msg_pb"; -import * as amino_amino_pb from "../../amino/amino_pb"; +import * as jspb from 'google-protobuf' +import * as gogoproto_gogo_pb from '../../gogoproto/gogo_pb' +import * as oracle_v1_oracle_pb from '../../oracle/v1/oracle_pb' +import * as cosmos_base_v1beta1_coin_pb from '../../cosmos/base/v1beta1/coin_pb' +import * as cosmos_proto_cosmos_pb from '../../cosmos_proto/cosmos_pb' +import * as cosmos_msg_v1_msg_pb from '../../cosmos/msg/v1/msg_pb' +import * as amino_amino_pb from '../../amino/amino_pb' export class MsgRequestData extends jspb.Message { - getOracleScriptId(): number; - setOracleScriptId(value: number): void; - - getCalldata(): Uint8Array | string; - getCalldata_asU8(): Uint8Array; - getCalldata_asB64(): string; - setCalldata(value: Uint8Array | string): void; - - getAskCount(): number; - setAskCount(value: number): void; - - getMinCount(): number; - setMinCount(value: number): void; - - getClientId(): string; - setClientId(value: string): void; - - clearFeeLimitList(): void; - getFeeLimitList(): Array; - setFeeLimitList(value: Array): void; - addFeeLimit(value?: cosmos_base_v1beta1_coin_pb.Coin, index?: number): cosmos_base_v1beta1_coin_pb.Coin; - - getPrepareGas(): number; - setPrepareGas(value: number): void; - - getExecuteGas(): number; - setExecuteGas(value: number): void; - - getSender(): string; - setSender(value: string): void; - - getTssGroupId(): number; - setTssGroupId(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MsgRequestData.AsObject; - static toObject(includeInstance: boolean, msg: MsgRequestData): MsgRequestData.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MsgRequestData, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MsgRequestData; - static deserializeBinaryFromReader(message: MsgRequestData, reader: jspb.BinaryReader): MsgRequestData; + getOracleScriptId(): number + setOracleScriptId(value: number): void + + getCalldata(): Uint8Array | string + getCalldata_asU8(): Uint8Array + getCalldata_asB64(): string + setCalldata(value: Uint8Array | string): void + + getAskCount(): number + setAskCount(value: number): void + + getMinCount(): number + setMinCount(value: number): void + + getClientId(): string + setClientId(value: string): void + + clearFeeLimitList(): void + getFeeLimitList(): Array + setFeeLimitList(value: Array): void + addFeeLimit( + value?: cosmos_base_v1beta1_coin_pb.Coin, + index?: number, + ): cosmos_base_v1beta1_coin_pb.Coin + + getPrepareGas(): number + setPrepareGas(value: number): void + + getExecuteGas(): number + setExecuteGas(value: number): void + + getSender(): string + setSender(value: string): void + + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): MsgRequestData.AsObject + static toObject( + includeInstance: boolean, + msg: MsgRequestData, + ): MsgRequestData.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: MsgRequestData, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): MsgRequestData + static deserializeBinaryFromReader( + message: MsgRequestData, + reader: jspb.BinaryReader, + ): MsgRequestData } export namespace MsgRequestData { export type AsObject = { - oracleScriptId: number, - calldata: Uint8Array | string, - askCount: number, - minCount: number, - clientId: string, - feeLimitList: Array, - prepareGas: number, - executeGas: number, - sender: string, - tssGroupId: number, + oracleScriptId: number + calldata: Uint8Array | string + askCount: number + minCount: number + clientId: string + feeLimitList: Array + prepareGas: number + executeGas: number + sender: string } } export class MsgRequestDataResponse extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MsgRequestDataResponse.AsObject; - static toObject(includeInstance: boolean, msg: MsgRequestDataResponse): MsgRequestDataResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MsgRequestDataResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MsgRequestDataResponse; - static deserializeBinaryFromReader(message: MsgRequestDataResponse, reader: jspb.BinaryReader): MsgRequestDataResponse; + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): MsgRequestDataResponse.AsObject + static toObject( + includeInstance: boolean, + msg: MsgRequestDataResponse, + ): MsgRequestDataResponse.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: MsgRequestDataResponse, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): MsgRequestDataResponse + static deserializeBinaryFromReader( + message: MsgRequestDataResponse, + reader: jspb.BinaryReader, + ): MsgRequestDataResponse } export namespace MsgRequestDataResponse { - export type AsObject = { - } + export type AsObject = {} } export class MsgReportData extends jspb.Message { - getRequestId(): number; - setRequestId(value: number): void; - - clearRawReportsList(): void; - getRawReportsList(): Array; - setRawReportsList(value: Array): void; - addRawReports(value?: oracle_v1_oracle_pb.RawReport, index?: number): oracle_v1_oracle_pb.RawReport; - - getValidator(): string; - setValidator(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MsgReportData.AsObject; - static toObject(includeInstance: boolean, msg: MsgReportData): MsgReportData.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MsgReportData, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MsgReportData; - static deserializeBinaryFromReader(message: MsgReportData, reader: jspb.BinaryReader): MsgReportData; + getRequestId(): number + setRequestId(value: number): void + + clearRawReportsList(): void + getRawReportsList(): Array + setRawReportsList(value: Array): void + addRawReports( + value?: oracle_v1_oracle_pb.RawReport, + index?: number, + ): oracle_v1_oracle_pb.RawReport + + getValidator(): string + setValidator(value: string): void + + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): MsgReportData.AsObject + static toObject( + includeInstance: boolean, + msg: MsgReportData, + ): MsgReportData.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: MsgReportData, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): MsgReportData + static deserializeBinaryFromReader( + message: MsgReportData, + reader: jspb.BinaryReader, + ): MsgReportData } export namespace MsgReportData { export type AsObject = { - requestId: number, - rawReportsList: Array, - validator: string, + requestId: number + rawReportsList: Array + validator: string } } export class MsgReportDataResponse extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MsgReportDataResponse.AsObject; - static toObject(includeInstance: boolean, msg: MsgReportDataResponse): MsgReportDataResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MsgReportDataResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MsgReportDataResponse; - static deserializeBinaryFromReader(message: MsgReportDataResponse, reader: jspb.BinaryReader): MsgReportDataResponse; + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): MsgReportDataResponse.AsObject + static toObject( + includeInstance: boolean, + msg: MsgReportDataResponse, + ): MsgReportDataResponse.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: MsgReportDataResponse, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): MsgReportDataResponse + static deserializeBinaryFromReader( + message: MsgReportDataResponse, + reader: jspb.BinaryReader, + ): MsgReportDataResponse } export namespace MsgReportDataResponse { - export type AsObject = { - } + export type AsObject = {} } export class MsgCreateDataSource extends jspb.Message { - getName(): string; - setName(value: string): void; - - getDescription(): string; - setDescription(value: string): void; - - getExecutable(): Uint8Array | string; - getExecutable_asU8(): Uint8Array; - getExecutable_asB64(): string; - setExecutable(value: Uint8Array | string): void; - - clearFeeList(): void; - getFeeList(): Array; - setFeeList(value: Array): void; - addFee(value?: cosmos_base_v1beta1_coin_pb.Coin, index?: number): cosmos_base_v1beta1_coin_pb.Coin; - - getTreasury(): string; - setTreasury(value: string): void; - - getOwner(): string; - setOwner(value: string): void; - - getSender(): string; - setSender(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MsgCreateDataSource.AsObject; - static toObject(includeInstance: boolean, msg: MsgCreateDataSource): MsgCreateDataSource.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MsgCreateDataSource, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MsgCreateDataSource; - static deserializeBinaryFromReader(message: MsgCreateDataSource, reader: jspb.BinaryReader): MsgCreateDataSource; + getName(): string + setName(value: string): void + + getDescription(): string + setDescription(value: string): void + + getExecutable(): Uint8Array | string + getExecutable_asU8(): Uint8Array + getExecutable_asB64(): string + setExecutable(value: Uint8Array | string): void + + clearFeeList(): void + getFeeList(): Array + setFeeList(value: Array): void + addFee( + value?: cosmos_base_v1beta1_coin_pb.Coin, + index?: number, + ): cosmos_base_v1beta1_coin_pb.Coin + + getTreasury(): string + setTreasury(value: string): void + + getOwner(): string + setOwner(value: string): void + + getSender(): string + setSender(value: string): void + + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): MsgCreateDataSource.AsObject + static toObject( + includeInstance: boolean, + msg: MsgCreateDataSource, + ): MsgCreateDataSource.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: MsgCreateDataSource, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): MsgCreateDataSource + static deserializeBinaryFromReader( + message: MsgCreateDataSource, + reader: jspb.BinaryReader, + ): MsgCreateDataSource } export namespace MsgCreateDataSource { export type AsObject = { - name: string, - description: string, - executable: Uint8Array | string, - feeList: Array, - treasury: string, - owner: string, - sender: string, + name: string + description: string + executable: Uint8Array | string + feeList: Array + treasury: string + owner: string + sender: string } } export class MsgCreateDataSourceResponse extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MsgCreateDataSourceResponse.AsObject; - static toObject(includeInstance: boolean, msg: MsgCreateDataSourceResponse): MsgCreateDataSourceResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MsgCreateDataSourceResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MsgCreateDataSourceResponse; - static deserializeBinaryFromReader(message: MsgCreateDataSourceResponse, reader: jspb.BinaryReader): MsgCreateDataSourceResponse; + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): MsgCreateDataSourceResponse.AsObject + static toObject( + includeInstance: boolean, + msg: MsgCreateDataSourceResponse, + ): MsgCreateDataSourceResponse.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: MsgCreateDataSourceResponse, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): MsgCreateDataSourceResponse + static deserializeBinaryFromReader( + message: MsgCreateDataSourceResponse, + reader: jspb.BinaryReader, + ): MsgCreateDataSourceResponse } export namespace MsgCreateDataSourceResponse { - export type AsObject = { - } + export type AsObject = {} } export class MsgEditDataSource extends jspb.Message { - getDataSourceId(): number; - setDataSourceId(value: number): void; - - getName(): string; - setName(value: string): void; - - getDescription(): string; - setDescription(value: string): void; - - getExecutable(): Uint8Array | string; - getExecutable_asU8(): Uint8Array; - getExecutable_asB64(): string; - setExecutable(value: Uint8Array | string): void; - - clearFeeList(): void; - getFeeList(): Array; - setFeeList(value: Array): void; - addFee(value?: cosmos_base_v1beta1_coin_pb.Coin, index?: number): cosmos_base_v1beta1_coin_pb.Coin; - - getTreasury(): string; - setTreasury(value: string): void; - - getOwner(): string; - setOwner(value: string): void; - - getSender(): string; - setSender(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MsgEditDataSource.AsObject; - static toObject(includeInstance: boolean, msg: MsgEditDataSource): MsgEditDataSource.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MsgEditDataSource, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MsgEditDataSource; - static deserializeBinaryFromReader(message: MsgEditDataSource, reader: jspb.BinaryReader): MsgEditDataSource; + getDataSourceId(): number + setDataSourceId(value: number): void + + getName(): string + setName(value: string): void + + getDescription(): string + setDescription(value: string): void + + getExecutable(): Uint8Array | string + getExecutable_asU8(): Uint8Array + getExecutable_asB64(): string + setExecutable(value: Uint8Array | string): void + + clearFeeList(): void + getFeeList(): Array + setFeeList(value: Array): void + addFee( + value?: cosmos_base_v1beta1_coin_pb.Coin, + index?: number, + ): cosmos_base_v1beta1_coin_pb.Coin + + getTreasury(): string + setTreasury(value: string): void + + getOwner(): string + setOwner(value: string): void + + getSender(): string + setSender(value: string): void + + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): MsgEditDataSource.AsObject + static toObject( + includeInstance: boolean, + msg: MsgEditDataSource, + ): MsgEditDataSource.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: MsgEditDataSource, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): MsgEditDataSource + static deserializeBinaryFromReader( + message: MsgEditDataSource, + reader: jspb.BinaryReader, + ): MsgEditDataSource } export namespace MsgEditDataSource { export type AsObject = { - dataSourceId: number, - name: string, - description: string, - executable: Uint8Array | string, - feeList: Array, - treasury: string, - owner: string, - sender: string, + dataSourceId: number + name: string + description: string + executable: Uint8Array | string + feeList: Array + treasury: string + owner: string + sender: string } } export class MsgEditDataSourceResponse extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MsgEditDataSourceResponse.AsObject; - static toObject(includeInstance: boolean, msg: MsgEditDataSourceResponse): MsgEditDataSourceResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MsgEditDataSourceResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MsgEditDataSourceResponse; - static deserializeBinaryFromReader(message: MsgEditDataSourceResponse, reader: jspb.BinaryReader): MsgEditDataSourceResponse; + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): MsgEditDataSourceResponse.AsObject + static toObject( + includeInstance: boolean, + msg: MsgEditDataSourceResponse, + ): MsgEditDataSourceResponse.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: MsgEditDataSourceResponse, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): MsgEditDataSourceResponse + static deserializeBinaryFromReader( + message: MsgEditDataSourceResponse, + reader: jspb.BinaryReader, + ): MsgEditDataSourceResponse } export namespace MsgEditDataSourceResponse { - export type AsObject = { - } + export type AsObject = {} } export class MsgCreateOracleScript extends jspb.Message { - getName(): string; - setName(value: string): void; - - getDescription(): string; - setDescription(value: string): void; - - getSchema(): string; - setSchema(value: string): void; - - getSourceCodeUrl(): string; - setSourceCodeUrl(value: string): void; - - getCode(): Uint8Array | string; - getCode_asU8(): Uint8Array; - getCode_asB64(): string; - setCode(value: Uint8Array | string): void; - - getOwner(): string; - setOwner(value: string): void; - - getSender(): string; - setSender(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MsgCreateOracleScript.AsObject; - static toObject(includeInstance: boolean, msg: MsgCreateOracleScript): MsgCreateOracleScript.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MsgCreateOracleScript, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MsgCreateOracleScript; - static deserializeBinaryFromReader(message: MsgCreateOracleScript, reader: jspb.BinaryReader): MsgCreateOracleScript; + getName(): string + setName(value: string): void + + getDescription(): string + setDescription(value: string): void + + getSchema(): string + setSchema(value: string): void + + getSourceCodeUrl(): string + setSourceCodeUrl(value: string): void + + getCode(): Uint8Array | string + getCode_asU8(): Uint8Array + getCode_asB64(): string + setCode(value: Uint8Array | string): void + + getOwner(): string + setOwner(value: string): void + + getSender(): string + setSender(value: string): void + + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): MsgCreateOracleScript.AsObject + static toObject( + includeInstance: boolean, + msg: MsgCreateOracleScript, + ): MsgCreateOracleScript.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: MsgCreateOracleScript, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): MsgCreateOracleScript + static deserializeBinaryFromReader( + message: MsgCreateOracleScript, + reader: jspb.BinaryReader, + ): MsgCreateOracleScript } export namespace MsgCreateOracleScript { export type AsObject = { - name: string, - description: string, - schema: string, - sourceCodeUrl: string, - code: Uint8Array | string, - owner: string, - sender: string, + name: string + description: string + schema: string + sourceCodeUrl: string + code: Uint8Array | string + owner: string + sender: string } } export class MsgCreateOracleScriptResponse extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MsgCreateOracleScriptResponse.AsObject; - static toObject(includeInstance: boolean, msg: MsgCreateOracleScriptResponse): MsgCreateOracleScriptResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MsgCreateOracleScriptResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MsgCreateOracleScriptResponse; - static deserializeBinaryFromReader(message: MsgCreateOracleScriptResponse, reader: jspb.BinaryReader): MsgCreateOracleScriptResponse; + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): MsgCreateOracleScriptResponse.AsObject + static toObject( + includeInstance: boolean, + msg: MsgCreateOracleScriptResponse, + ): MsgCreateOracleScriptResponse.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: MsgCreateOracleScriptResponse, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): MsgCreateOracleScriptResponse + static deserializeBinaryFromReader( + message: MsgCreateOracleScriptResponse, + reader: jspb.BinaryReader, + ): MsgCreateOracleScriptResponse } export namespace MsgCreateOracleScriptResponse { - export type AsObject = { - } + export type AsObject = {} } export class MsgEditOracleScript extends jspb.Message { - getOracleScriptId(): number; - setOracleScriptId(value: number): void; + getOracleScriptId(): number + setOracleScriptId(value: number): void - getName(): string; - setName(value: string): void; + getName(): string + setName(value: string): void - getDescription(): string; - setDescription(value: string): void; + getDescription(): string + setDescription(value: string): void - getSchema(): string; - setSchema(value: string): void; + getSchema(): string + setSchema(value: string): void - getSourceCodeUrl(): string; - setSourceCodeUrl(value: string): void; + getSourceCodeUrl(): string + setSourceCodeUrl(value: string): void - getCode(): Uint8Array | string; - getCode_asU8(): Uint8Array; - getCode_asB64(): string; - setCode(value: Uint8Array | string): void; + getCode(): Uint8Array | string + getCode_asU8(): Uint8Array + getCode_asB64(): string + setCode(value: Uint8Array | string): void - getOwner(): string; - setOwner(value: string): void; + getOwner(): string + setOwner(value: string): void - getSender(): string; - setSender(value: string): void; + getSender(): string + setSender(value: string): void - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MsgEditOracleScript.AsObject; - static toObject(includeInstance: boolean, msg: MsgEditOracleScript): MsgEditOracleScript.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MsgEditOracleScript, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MsgEditOracleScript; - static deserializeBinaryFromReader(message: MsgEditOracleScript, reader: jspb.BinaryReader): MsgEditOracleScript; + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): MsgEditOracleScript.AsObject + static toObject( + includeInstance: boolean, + msg: MsgEditOracleScript, + ): MsgEditOracleScript.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: MsgEditOracleScript, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): MsgEditOracleScript + static deserializeBinaryFromReader( + message: MsgEditOracleScript, + reader: jspb.BinaryReader, + ): MsgEditOracleScript } export namespace MsgEditOracleScript { export type AsObject = { - oracleScriptId: number, - name: string, - description: string, - schema: string, - sourceCodeUrl: string, - code: Uint8Array | string, - owner: string, - sender: string, + oracleScriptId: number + name: string + description: string + schema: string + sourceCodeUrl: string + code: Uint8Array | string + owner: string + sender: string } } export class MsgEditOracleScriptResponse extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MsgEditOracleScriptResponse.AsObject; - static toObject(includeInstance: boolean, msg: MsgEditOracleScriptResponse): MsgEditOracleScriptResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MsgEditOracleScriptResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MsgEditOracleScriptResponse; - static deserializeBinaryFromReader(message: MsgEditOracleScriptResponse, reader: jspb.BinaryReader): MsgEditOracleScriptResponse; + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): MsgEditOracleScriptResponse.AsObject + static toObject( + includeInstance: boolean, + msg: MsgEditOracleScriptResponse, + ): MsgEditOracleScriptResponse.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: MsgEditOracleScriptResponse, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): MsgEditOracleScriptResponse + static deserializeBinaryFromReader( + message: MsgEditOracleScriptResponse, + reader: jspb.BinaryReader, + ): MsgEditOracleScriptResponse } export namespace MsgEditOracleScriptResponse { - export type AsObject = { - } + export type AsObject = {} } export class MsgActivate extends jspb.Message { - getValidator(): string; - setValidator(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MsgActivate.AsObject; - static toObject(includeInstance: boolean, msg: MsgActivate): MsgActivate.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MsgActivate, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MsgActivate; - static deserializeBinaryFromReader(message: MsgActivate, reader: jspb.BinaryReader): MsgActivate; + getValidator(): string + setValidator(value: string): void + + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): MsgActivate.AsObject + static toObject( + includeInstance: boolean, + msg: MsgActivate, + ): MsgActivate.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: MsgActivate, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): MsgActivate + static deserializeBinaryFromReader( + message: MsgActivate, + reader: jspb.BinaryReader, + ): MsgActivate } export namespace MsgActivate { export type AsObject = { - validator: string, + validator: string } } export class MsgActivateResponse extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MsgActivateResponse.AsObject; - static toObject(includeInstance: boolean, msg: MsgActivateResponse): MsgActivateResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MsgActivateResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MsgActivateResponse; - static deserializeBinaryFromReader(message: MsgActivateResponse, reader: jspb.BinaryReader): MsgActivateResponse; + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): MsgActivateResponse.AsObject + static toObject( + includeInstance: boolean, + msg: MsgActivateResponse, + ): MsgActivateResponse.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: MsgActivateResponse, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): MsgActivateResponse + static deserializeBinaryFromReader( + message: MsgActivateResponse, + reader: jspb.BinaryReader, + ): MsgActivateResponse } export namespace MsgActivateResponse { - export type AsObject = { - } + export type AsObject = {} } export class MsgUpdateParams extends jspb.Message { - getAuthority(): string; - setAuthority(value: string): void; - - hasParams(): boolean; - clearParams(): void; - getParams(): oracle_v1_oracle_pb.Params | undefined; - setParams(value?: oracle_v1_oracle_pb.Params): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MsgUpdateParams.AsObject; - static toObject(includeInstance: boolean, msg: MsgUpdateParams): MsgUpdateParams.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MsgUpdateParams, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MsgUpdateParams; - static deserializeBinaryFromReader(message: MsgUpdateParams, reader: jspb.BinaryReader): MsgUpdateParams; + getAuthority(): string + setAuthority(value: string): void + + hasParams(): boolean + clearParams(): void + getParams(): oracle_v1_oracle_pb.Params | undefined + setParams(value?: oracle_v1_oracle_pb.Params): void + + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): MsgUpdateParams.AsObject + static toObject( + includeInstance: boolean, + msg: MsgUpdateParams, + ): MsgUpdateParams.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: MsgUpdateParams, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): MsgUpdateParams + static deserializeBinaryFromReader( + message: MsgUpdateParams, + reader: jspb.BinaryReader, + ): MsgUpdateParams } export namespace MsgUpdateParams { export type AsObject = { - authority: string, - params?: oracle_v1_oracle_pb.Params.AsObject, + authority: string + params?: oracle_v1_oracle_pb.Params.AsObject } } export class MsgUpdateParamsResponse extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MsgUpdateParamsResponse.AsObject; - static toObject(includeInstance: boolean, msg: MsgUpdateParamsResponse): MsgUpdateParamsResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MsgUpdateParamsResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MsgUpdateParamsResponse; - static deserializeBinaryFromReader(message: MsgUpdateParamsResponse, reader: jspb.BinaryReader): MsgUpdateParamsResponse; + serializeBinary(): Uint8Array + toObject(includeInstance?: boolean): MsgUpdateParamsResponse.AsObject + static toObject( + includeInstance: boolean, + msg: MsgUpdateParamsResponse, + ): MsgUpdateParamsResponse.AsObject + static extensions: { [key: number]: jspb.ExtensionFieldInfo } + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo + } + static serializeBinaryToWriter( + message: MsgUpdateParamsResponse, + writer: jspb.BinaryWriter, + ): void + static deserializeBinary(bytes: Uint8Array): MsgUpdateParamsResponse + static deserializeBinaryFromReader( + message: MsgUpdateParamsResponse, + reader: jspb.BinaryReader, + ): MsgUpdateParamsResponse } export namespace MsgUpdateParamsResponse { - export type AsObject = { - } + export type AsObject = {} } - diff --git a/proto/oracle/v1/tx_pb.js b/proto/oracle/v1/tx_pb.js index d57132d..620ca80 100644 --- a/proto/oracle/v1/tx_pb.js +++ b/proto/oracle/v1/tx_pb.js @@ -11,38 +11,46 @@ /* eslint-disable */ // @ts-nocheck -var jspb = require('google-protobuf'); -var goog = jspb; -var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); - -var gogoproto_gogo_pb = require('../../gogoproto/gogo_pb.js'); -goog.object.extend(proto, gogoproto_gogo_pb); -var oracle_v1_oracle_pb = require('../../oracle/v1/oracle_pb.js'); -goog.object.extend(proto, oracle_v1_oracle_pb); -var cosmos_base_v1beta1_coin_pb = require('../../cosmos/base/v1beta1/coin_pb.js'); -goog.object.extend(proto, cosmos_base_v1beta1_coin_pb); -var cosmos_proto_cosmos_pb = require('../../cosmos_proto/cosmos_pb.js'); -goog.object.extend(proto, cosmos_proto_cosmos_pb); -var cosmos_msg_v1_msg_pb = require('../../cosmos/msg/v1/msg_pb.js'); -goog.object.extend(proto, cosmos_msg_v1_msg_pb); -var amino_amino_pb = require('../../amino/amino_pb.js'); -goog.object.extend(proto, amino_amino_pb); -goog.exportSymbol('proto.oracle.v1.MsgActivate', null, global); -goog.exportSymbol('proto.oracle.v1.MsgActivateResponse', null, global); -goog.exportSymbol('proto.oracle.v1.MsgCreateDataSource', null, global); -goog.exportSymbol('proto.oracle.v1.MsgCreateDataSourceResponse', null, global); -goog.exportSymbol('proto.oracle.v1.MsgCreateOracleScript', null, global); -goog.exportSymbol('proto.oracle.v1.MsgCreateOracleScriptResponse', null, global); -goog.exportSymbol('proto.oracle.v1.MsgEditDataSource', null, global); -goog.exportSymbol('proto.oracle.v1.MsgEditDataSourceResponse', null, global); -goog.exportSymbol('proto.oracle.v1.MsgEditOracleScript', null, global); -goog.exportSymbol('proto.oracle.v1.MsgEditOracleScriptResponse', null, global); -goog.exportSymbol('proto.oracle.v1.MsgReportData', null, global); -goog.exportSymbol('proto.oracle.v1.MsgReportDataResponse', null, global); -goog.exportSymbol('proto.oracle.v1.MsgRequestData', null, global); -goog.exportSymbol('proto.oracle.v1.MsgRequestDataResponse', null, global); -goog.exportSymbol('proto.oracle.v1.MsgUpdateParams', null, global); -goog.exportSymbol('proto.oracle.v1.MsgUpdateParamsResponse', null, global); +var jspb = require('google-protobuf') +var goog = jspb +var global = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + function () { + return this + }.call(null) || + Function('return this')() + +var gogoproto_gogo_pb = require('../../gogoproto/gogo_pb.js') +goog.object.extend(proto, gogoproto_gogo_pb) +var oracle_v1_oracle_pb = require('../../oracle/v1/oracle_pb.js') +goog.object.extend(proto, oracle_v1_oracle_pb) +var cosmos_base_v1beta1_coin_pb = require('../../cosmos/base/v1beta1/coin_pb.js') +goog.object.extend(proto, cosmos_base_v1beta1_coin_pb) +var cosmos_proto_cosmos_pb = require('../../cosmos_proto/cosmos_pb.js') +goog.object.extend(proto, cosmos_proto_cosmos_pb) +var cosmos_msg_v1_msg_pb = require('../../cosmos/msg/v1/msg_pb.js') +goog.object.extend(proto, cosmos_msg_v1_msg_pb) +var amino_amino_pb = require('../../amino/amino_pb.js') +goog.object.extend(proto, amino_amino_pb) +goog.exportSymbol('proto.oracle.v1.MsgActivate', null, global) +goog.exportSymbol('proto.oracle.v1.MsgActivateResponse', null, global) +goog.exportSymbol('proto.oracle.v1.MsgCreateDataSource', null, global) +goog.exportSymbol('proto.oracle.v1.MsgCreateDataSourceResponse', null, global) +goog.exportSymbol('proto.oracle.v1.MsgCreateOracleScript', null, global) +goog.exportSymbol('proto.oracle.v1.MsgCreateOracleScriptResponse', null, global) +goog.exportSymbol('proto.oracle.v1.MsgEditDataSource', null, global) +goog.exportSymbol('proto.oracle.v1.MsgEditDataSourceResponse', null, global) +goog.exportSymbol('proto.oracle.v1.MsgEditOracleScript', null, global) +goog.exportSymbol('proto.oracle.v1.MsgEditOracleScriptResponse', null, global) +goog.exportSymbol('proto.oracle.v1.MsgReportData', null, global) +goog.exportSymbol('proto.oracle.v1.MsgReportDataResponse', null, global) +goog.exportSymbol('proto.oracle.v1.MsgRequestData', null, global) +goog.exportSymbol('proto.oracle.v1.MsgRequestDataResponse', null, global) +goog.exportSymbol('proto.oracle.v1.MsgUpdateParams', null, global) +goog.exportSymbol('proto.oracle.v1.MsgUpdateParamsResponse', null, global) /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -53,16 +61,23 @@ goog.exportSymbol('proto.oracle.v1.MsgUpdateParamsResponse', null, global); * @extends {jspb.Message} * @constructor */ -proto.oracle.v1.MsgRequestData = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.oracle.v1.MsgRequestData.repeatedFields_, null); -}; -goog.inherits(proto.oracle.v1.MsgRequestData, jspb.Message); +proto.oracle.v1.MsgRequestData = function (opt_data) { + jspb.Message.initialize( + this, + opt_data, + 0, + -1, + proto.oracle.v1.MsgRequestData.repeatedFields_, + null, + ) +} +goog.inherits(proto.oracle.v1.MsgRequestData, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.oracle.v1.MsgRequestData.displayName = 'proto.oracle.v1.MsgRequestData'; + proto.oracle.v1.MsgRequestData.displayName = 'proto.oracle.v1.MsgRequestData' } /** * Generated by JsPbCodeGenerator. @@ -74,16 +89,17 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.oracle.v1.MsgRequestDataResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.oracle.v1.MsgRequestDataResponse, jspb.Message); +proto.oracle.v1.MsgRequestDataResponse = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null) +} +goog.inherits(proto.oracle.v1.MsgRequestDataResponse, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.oracle.v1.MsgRequestDataResponse.displayName = 'proto.oracle.v1.MsgRequestDataResponse'; + proto.oracle.v1.MsgRequestDataResponse.displayName = + 'proto.oracle.v1.MsgRequestDataResponse' } /** * Generated by JsPbCodeGenerator. @@ -95,16 +111,23 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.oracle.v1.MsgReportData = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.oracle.v1.MsgReportData.repeatedFields_, null); -}; -goog.inherits(proto.oracle.v1.MsgReportData, jspb.Message); +proto.oracle.v1.MsgReportData = function (opt_data) { + jspb.Message.initialize( + this, + opt_data, + 0, + -1, + proto.oracle.v1.MsgReportData.repeatedFields_, + null, + ) +} +goog.inherits(proto.oracle.v1.MsgReportData, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.oracle.v1.MsgReportData.displayName = 'proto.oracle.v1.MsgReportData'; + proto.oracle.v1.MsgReportData.displayName = 'proto.oracle.v1.MsgReportData' } /** * Generated by JsPbCodeGenerator. @@ -116,16 +139,17 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.oracle.v1.MsgReportDataResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.oracle.v1.MsgReportDataResponse, jspb.Message); +proto.oracle.v1.MsgReportDataResponse = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null) +} +goog.inherits(proto.oracle.v1.MsgReportDataResponse, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.oracle.v1.MsgReportDataResponse.displayName = 'proto.oracle.v1.MsgReportDataResponse'; + proto.oracle.v1.MsgReportDataResponse.displayName = + 'proto.oracle.v1.MsgReportDataResponse' } /** * Generated by JsPbCodeGenerator. @@ -137,16 +161,24 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.oracle.v1.MsgCreateDataSource = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.oracle.v1.MsgCreateDataSource.repeatedFields_, null); -}; -goog.inherits(proto.oracle.v1.MsgCreateDataSource, jspb.Message); +proto.oracle.v1.MsgCreateDataSource = function (opt_data) { + jspb.Message.initialize( + this, + opt_data, + 0, + -1, + proto.oracle.v1.MsgCreateDataSource.repeatedFields_, + null, + ) +} +goog.inherits(proto.oracle.v1.MsgCreateDataSource, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.oracle.v1.MsgCreateDataSource.displayName = 'proto.oracle.v1.MsgCreateDataSource'; + proto.oracle.v1.MsgCreateDataSource.displayName = + 'proto.oracle.v1.MsgCreateDataSource' } /** * Generated by JsPbCodeGenerator. @@ -158,16 +190,17 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.oracle.v1.MsgCreateDataSourceResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.oracle.v1.MsgCreateDataSourceResponse, jspb.Message); +proto.oracle.v1.MsgCreateDataSourceResponse = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null) +} +goog.inherits(proto.oracle.v1.MsgCreateDataSourceResponse, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.oracle.v1.MsgCreateDataSourceResponse.displayName = 'proto.oracle.v1.MsgCreateDataSourceResponse'; + proto.oracle.v1.MsgCreateDataSourceResponse.displayName = + 'proto.oracle.v1.MsgCreateDataSourceResponse' } /** * Generated by JsPbCodeGenerator. @@ -179,16 +212,24 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.oracle.v1.MsgEditDataSource = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.oracle.v1.MsgEditDataSource.repeatedFields_, null); -}; -goog.inherits(proto.oracle.v1.MsgEditDataSource, jspb.Message); +proto.oracle.v1.MsgEditDataSource = function (opt_data) { + jspb.Message.initialize( + this, + opt_data, + 0, + -1, + proto.oracle.v1.MsgEditDataSource.repeatedFields_, + null, + ) +} +goog.inherits(proto.oracle.v1.MsgEditDataSource, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.oracle.v1.MsgEditDataSource.displayName = 'proto.oracle.v1.MsgEditDataSource'; + proto.oracle.v1.MsgEditDataSource.displayName = + 'proto.oracle.v1.MsgEditDataSource' } /** * Generated by JsPbCodeGenerator. @@ -200,16 +241,17 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.oracle.v1.MsgEditDataSourceResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.oracle.v1.MsgEditDataSourceResponse, jspb.Message); +proto.oracle.v1.MsgEditDataSourceResponse = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null) +} +goog.inherits(proto.oracle.v1.MsgEditDataSourceResponse, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.oracle.v1.MsgEditDataSourceResponse.displayName = 'proto.oracle.v1.MsgEditDataSourceResponse'; + proto.oracle.v1.MsgEditDataSourceResponse.displayName = + 'proto.oracle.v1.MsgEditDataSourceResponse' } /** * Generated by JsPbCodeGenerator. @@ -221,16 +263,17 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.oracle.v1.MsgCreateOracleScript = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.oracle.v1.MsgCreateOracleScript, jspb.Message); +proto.oracle.v1.MsgCreateOracleScript = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null) +} +goog.inherits(proto.oracle.v1.MsgCreateOracleScript, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.oracle.v1.MsgCreateOracleScript.displayName = 'proto.oracle.v1.MsgCreateOracleScript'; + proto.oracle.v1.MsgCreateOracleScript.displayName = + 'proto.oracle.v1.MsgCreateOracleScript' } /** * Generated by JsPbCodeGenerator. @@ -242,16 +285,17 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.oracle.v1.MsgCreateOracleScriptResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.oracle.v1.MsgCreateOracleScriptResponse, jspb.Message); +proto.oracle.v1.MsgCreateOracleScriptResponse = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null) +} +goog.inherits(proto.oracle.v1.MsgCreateOracleScriptResponse, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.oracle.v1.MsgCreateOracleScriptResponse.displayName = 'proto.oracle.v1.MsgCreateOracleScriptResponse'; + proto.oracle.v1.MsgCreateOracleScriptResponse.displayName = + 'proto.oracle.v1.MsgCreateOracleScriptResponse' } /** * Generated by JsPbCodeGenerator. @@ -263,16 +307,17 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.oracle.v1.MsgEditOracleScript = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.oracle.v1.MsgEditOracleScript, jspb.Message); +proto.oracle.v1.MsgEditOracleScript = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null) +} +goog.inherits(proto.oracle.v1.MsgEditOracleScript, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.oracle.v1.MsgEditOracleScript.displayName = 'proto.oracle.v1.MsgEditOracleScript'; + proto.oracle.v1.MsgEditOracleScript.displayName = + 'proto.oracle.v1.MsgEditOracleScript' } /** * Generated by JsPbCodeGenerator. @@ -284,16 +329,17 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.oracle.v1.MsgEditOracleScriptResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.oracle.v1.MsgEditOracleScriptResponse, jspb.Message); +proto.oracle.v1.MsgEditOracleScriptResponse = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null) +} +goog.inherits(proto.oracle.v1.MsgEditOracleScriptResponse, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.oracle.v1.MsgEditOracleScriptResponse.displayName = 'proto.oracle.v1.MsgEditOracleScriptResponse'; + proto.oracle.v1.MsgEditOracleScriptResponse.displayName = + 'proto.oracle.v1.MsgEditOracleScriptResponse' } /** * Generated by JsPbCodeGenerator. @@ -305,16 +351,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.oracle.v1.MsgActivate = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.oracle.v1.MsgActivate, jspb.Message); +proto.oracle.v1.MsgActivate = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null) +} +goog.inherits(proto.oracle.v1.MsgActivate, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.oracle.v1.MsgActivate.displayName = 'proto.oracle.v1.MsgActivate'; + proto.oracle.v1.MsgActivate.displayName = 'proto.oracle.v1.MsgActivate' } /** * Generated by JsPbCodeGenerator. @@ -326,16 +372,17 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.oracle.v1.MsgActivateResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.oracle.v1.MsgActivateResponse, jspb.Message); +proto.oracle.v1.MsgActivateResponse = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null) +} +goog.inherits(proto.oracle.v1.MsgActivateResponse, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.oracle.v1.MsgActivateResponse.displayName = 'proto.oracle.v1.MsgActivateResponse'; + proto.oracle.v1.MsgActivateResponse.displayName = + 'proto.oracle.v1.MsgActivateResponse' } /** * Generated by JsPbCodeGenerator. @@ -347,16 +394,17 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.oracle.v1.MsgUpdateParams = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.oracle.v1.MsgUpdateParams, jspb.Message); +proto.oracle.v1.MsgUpdateParams = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null) +} +goog.inherits(proto.oracle.v1.MsgUpdateParams, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.oracle.v1.MsgUpdateParams.displayName = 'proto.oracle.v1.MsgUpdateParams'; + proto.oracle.v1.MsgUpdateParams.displayName = + 'proto.oracle.v1.MsgUpdateParams' } /** * Generated by JsPbCodeGenerator. @@ -368,16 +416,17 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.oracle.v1.MsgUpdateParamsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.oracle.v1.MsgUpdateParamsResponse, jspb.Message); +proto.oracle.v1.MsgUpdateParamsResponse = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null) +} +goog.inherits(proto.oracle.v1.MsgUpdateParamsResponse, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.oracle.v1.MsgUpdateParamsResponse.displayName = 'proto.oracle.v1.MsgUpdateParamsResponse'; + proto.oracle.v1.MsgUpdateParamsResponse.displayName = + 'proto.oracle.v1.MsgUpdateParamsResponse' } /** @@ -385,71 +434,71 @@ if (goog.DEBUG && !COMPILED) { * @private {!Array} * @const */ -proto.oracle.v1.MsgRequestData.repeatedFields_ = [6]; - - +proto.oracle.v1.MsgRequestData.repeatedFields_ = [6] if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.oracle.v1.MsgRequestData.prototype.toObject = function(opt_includeInstance) { - return proto.oracle.v1.MsgRequestData.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.oracle.v1.MsgRequestData} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.oracle.v1.MsgRequestData.toObject = function(includeInstance, msg) { - var f, obj = { - oracleScriptId: jspb.Message.getFieldWithDefault(msg, 1, 0), - calldata: msg.getCalldata_asB64(), - askCount: jspb.Message.getFieldWithDefault(msg, 3, 0), - minCount: jspb.Message.getFieldWithDefault(msg, 4, 0), - clientId: jspb.Message.getFieldWithDefault(msg, 5, ""), - feeLimitList: jspb.Message.toObjectList(msg.getFeeLimitList(), - cosmos_base_v1beta1_coin_pb.Coin.toObject, includeInstance), - prepareGas: jspb.Message.getFieldWithDefault(msg, 7, 0), - executeGas: jspb.Message.getFieldWithDefault(msg, 8, 0), - sender: jspb.Message.getFieldWithDefault(msg, 9, ""), - tssGroupId: jspb.Message.getFieldWithDefault(msg, 10, 0) - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.oracle.v1.MsgRequestData.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.oracle.v1.MsgRequestData.toObject(opt_includeInstance, this) + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.oracle.v1.MsgRequestData} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.oracle.v1.MsgRequestData.toObject = function (includeInstance, msg) { + var f, + obj = { + oracleScriptId: jspb.Message.getFieldWithDefault(msg, 1, 0), + calldata: msg.getCalldata_asB64(), + askCount: jspb.Message.getFieldWithDefault(msg, 3, 0), + minCount: jspb.Message.getFieldWithDefault(msg, 4, 0), + clientId: jspb.Message.getFieldWithDefault(msg, 5, ''), + feeLimitList: jspb.Message.toObjectList( + msg.getFeeLimitList(), + cosmos_base_v1beta1_coin_pb.Coin.toObject, + includeInstance, + ), + prepareGas: jspb.Message.getFieldWithDefault(msg, 7, 0), + executeGas: jspb.Message.getFieldWithDefault(msg, 8, 0), + sender: jspb.Message.getFieldWithDefault(msg, 9, ''), + } + + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.oracle.v1.MsgRequestData} */ -proto.oracle.v1.MsgRequestData.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.oracle.v1.MsgRequestData; - return proto.oracle.v1.MsgRequestData.deserializeBinaryFromReader(msg, reader); -}; - +proto.oracle.v1.MsgRequestData.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.oracle.v1.MsgRequestData() + return proto.oracle.v1.MsgRequestData.deserializeBinaryFromReader(msg, reader) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -458,73 +507,73 @@ proto.oracle.v1.MsgRequestData.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.oracle.v1.MsgRequestData} */ -proto.oracle.v1.MsgRequestData.deserializeBinaryFromReader = function(msg, reader) { +proto.oracle.v1.MsgRequestData.deserializeBinaryFromReader = function ( + msg, + reader, +) { while (reader.nextField()) { if (reader.isEndGroup()) { - break; + break } - var field = reader.getFieldNumber(); + var field = reader.getFieldNumber() switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint64()); - msg.setOracleScriptId(value); - break; - case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setCalldata(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setAskCount(value); - break; - case 4: - var value = /** @type {number} */ (reader.readUint64()); - msg.setMinCount(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setClientId(value); - break; - case 6: - var value = new cosmos_base_v1beta1_coin_pb.Coin; - reader.readMessage(value,cosmos_base_v1beta1_coin_pb.Coin.deserializeBinaryFromReader); - msg.addFeeLimit(value); - break; - case 7: - var value = /** @type {number} */ (reader.readUint64()); - msg.setPrepareGas(value); - break; - case 8: - var value = /** @type {number} */ (reader.readUint64()); - msg.setExecuteGas(value); - break; - case 9: - var value = /** @type {string} */ (reader.readString()); - msg.setSender(value); - break; - case 10: - var value = /** @type {number} */ (reader.readUint64()); - msg.setTssGroupId(value); - break; - default: - reader.skipField(); - break; + case 1: + var value = /** @type {number} */ (reader.readUint64()) + msg.setOracleScriptId(value) + break + case 2: + var value = /** @type {!Uint8Array} */ (reader.readBytes()) + msg.setCalldata(value) + break + case 3: + var value = /** @type {number} */ (reader.readUint64()) + msg.setAskCount(value) + break + case 4: + var value = /** @type {number} */ (reader.readUint64()) + msg.setMinCount(value) + break + case 5: + var value = /** @type {string} */ (reader.readString()) + msg.setClientId(value) + break + case 6: + var value = new cosmos_base_v1beta1_coin_pb.Coin() + reader.readMessage( + value, + cosmos_base_v1beta1_coin_pb.Coin.deserializeBinaryFromReader, + ) + msg.addFeeLimit(value) + break + case 7: + var value = /** @type {number} */ (reader.readUint64()) + msg.setPrepareGas(value) + break + case 8: + var value = /** @type {number} */ (reader.readUint64()) + msg.setExecuteGas(value) + break + case 9: + var value = /** @type {string} */ (reader.readString()) + msg.setSender(value) + break + default: + reader.skipField() + break } } - return msg; -}; - + return msg +} /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.oracle.v1.MsgRequestData.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.oracle.v1.MsgRequestData.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.oracle.v1.MsgRequestData.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter() + proto.oracle.v1.MsgRequestData.serializeBinaryToWriter(this, writer) + return writer.getResultBuffer() +} /** * Serializes the given message to binary data (in protobuf wire @@ -533,119 +582,87 @@ proto.oracle.v1.MsgRequestData.prototype.serializeBinary = function() { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.oracle.v1.MsgRequestData.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOracleScriptId(); +proto.oracle.v1.MsgRequestData.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined + f = message.getOracleScriptId() if (f !== 0) { - writer.writeUint64( - 1, - f - ); + writer.writeUint64(1, f) } - f = message.getCalldata_asU8(); + f = message.getCalldata_asU8() if (f.length > 0) { - writer.writeBytes( - 2, - f - ); + writer.writeBytes(2, f) } - f = message.getAskCount(); + f = message.getAskCount() if (f !== 0) { - writer.writeUint64( - 3, - f - ); + writer.writeUint64(3, f) } - f = message.getMinCount(); + f = message.getMinCount() if (f !== 0) { - writer.writeUint64( - 4, - f - ); + writer.writeUint64(4, f) } - f = message.getClientId(); + f = message.getClientId() if (f.length > 0) { - writer.writeString( - 5, - f - ); + writer.writeString(5, f) } - f = message.getFeeLimitList(); + f = message.getFeeLimitList() if (f.length > 0) { writer.writeRepeatedMessage( 6, f, - cosmos_base_v1beta1_coin_pb.Coin.serializeBinaryToWriter - ); + cosmos_base_v1beta1_coin_pb.Coin.serializeBinaryToWriter, + ) } - f = message.getPrepareGas(); + f = message.getPrepareGas() if (f !== 0) { - writer.writeUint64( - 7, - f - ); + writer.writeUint64(7, f) } - f = message.getExecuteGas(); + f = message.getExecuteGas() if (f !== 0) { - writer.writeUint64( - 8, - f - ); + writer.writeUint64(8, f) } - f = message.getSender(); + f = message.getSender() if (f.length > 0) { - writer.writeString( - 9, - f - ); - } - f = message.getTssGroupId(); - if (f !== 0) { - writer.writeUint64( - 10, - f - ); + writer.writeString(9, f) } -}; - +} /** * optional uint64 oracle_script_id = 1; * @return {number} */ -proto.oracle.v1.MsgRequestData.prototype.getOracleScriptId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - +proto.oracle.v1.MsgRequestData.prototype.getOracleScriptId = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)) +} /** * @param {number} value * @return {!proto.oracle.v1.MsgRequestData} returns this */ -proto.oracle.v1.MsgRequestData.prototype.setOracleScriptId = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - +proto.oracle.v1.MsgRequestData.prototype.setOracleScriptId = function (value) { + return jspb.Message.setProto3IntField(this, 1, value) +} /** * optional bytes calldata = 2; * @return {!(string|Uint8Array)} */ -proto.oracle.v1.MsgRequestData.prototype.getCalldata = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - +proto.oracle.v1.MsgRequestData.prototype.getCalldata = function () { + return /** @type {!(string|Uint8Array)} */ ( + jspb.Message.getFieldWithDefault(this, 2, '') + ) +} /** * optional bytes calldata = 2; * This is a type-conversion wrapper around `getCalldata()` * @return {string} */ -proto.oracle.v1.MsgRequestData.prototype.getCalldata_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getCalldata())); -}; - +proto.oracle.v1.MsgRequestData.prototype.getCalldata_asB64 = function () { + return /** @type {string} */ (jspb.Message.bytesAsB64(this.getCalldata())) +} /** * optional bytes calldata = 2; @@ -654,239 +671,220 @@ proto.oracle.v1.MsgRequestData.prototype.getCalldata_asB64 = function() { * This is a type-conversion wrapper around `getCalldata()` * @return {!Uint8Array} */ -proto.oracle.v1.MsgRequestData.prototype.getCalldata_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getCalldata())); -}; - +proto.oracle.v1.MsgRequestData.prototype.getCalldata_asU8 = function () { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(this.getCalldata())) +} /** * @param {!(string|Uint8Array)} value * @return {!proto.oracle.v1.MsgRequestData} returns this */ -proto.oracle.v1.MsgRequestData.prototype.setCalldata = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); -}; - +proto.oracle.v1.MsgRequestData.prototype.setCalldata = function (value) { + return jspb.Message.setProto3BytesField(this, 2, value) +} /** * optional uint64 ask_count = 3; * @return {number} */ -proto.oracle.v1.MsgRequestData.prototype.getAskCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - +proto.oracle.v1.MsgRequestData.prototype.getAskCount = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)) +} /** * @param {number} value * @return {!proto.oracle.v1.MsgRequestData} returns this */ -proto.oracle.v1.MsgRequestData.prototype.setAskCount = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - +proto.oracle.v1.MsgRequestData.prototype.setAskCount = function (value) { + return jspb.Message.setProto3IntField(this, 3, value) +} /** * optional uint64 min_count = 4; * @return {number} */ -proto.oracle.v1.MsgRequestData.prototype.getMinCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - +proto.oracle.v1.MsgRequestData.prototype.getMinCount = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)) +} /** * @param {number} value * @return {!proto.oracle.v1.MsgRequestData} returns this */ -proto.oracle.v1.MsgRequestData.prototype.setMinCount = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - +proto.oracle.v1.MsgRequestData.prototype.setMinCount = function (value) { + return jspb.Message.setProto3IntField(this, 4, value) +} /** * optional string client_id = 5; * @return {string} */ -proto.oracle.v1.MsgRequestData.prototype.getClientId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - +proto.oracle.v1.MsgRequestData.prototype.getClientId = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, '')) +} /** * @param {string} value * @return {!proto.oracle.v1.MsgRequestData} returns this */ -proto.oracle.v1.MsgRequestData.prototype.setClientId = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - +proto.oracle.v1.MsgRequestData.prototype.setClientId = function (value) { + return jspb.Message.setProto3StringField(this, 5, value) +} /** * repeated cosmos.base.v1beta1.Coin fee_limit = 6; * @return {!Array} */ -proto.oracle.v1.MsgRequestData.prototype.getFeeLimitList = function() { +proto.oracle.v1.MsgRequestData.prototype.getFeeLimitList = function () { return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, cosmos_base_v1beta1_coin_pb.Coin, 6)); -}; - + jspb.Message.getRepeatedWrapperField( + this, + cosmos_base_v1beta1_coin_pb.Coin, + 6, + ) + ) +} /** * @param {!Array} value * @return {!proto.oracle.v1.MsgRequestData} returns this -*/ -proto.oracle.v1.MsgRequestData.prototype.setFeeLimitList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 6, value); -}; - + */ +proto.oracle.v1.MsgRequestData.prototype.setFeeLimitList = function (value) { + return jspb.Message.setRepeatedWrapperField(this, 6, value) +} /** * @param {!proto.cosmos.base.v1beta1.Coin=} opt_value * @param {number=} opt_index * @return {!proto.cosmos.base.v1beta1.Coin} */ -proto.oracle.v1.MsgRequestData.prototype.addFeeLimit = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.cosmos.base.v1beta1.Coin, opt_index); -}; - +proto.oracle.v1.MsgRequestData.prototype.addFeeLimit = function ( + opt_value, + opt_index, +) { + return jspb.Message.addToRepeatedWrapperField( + this, + 6, + opt_value, + proto.cosmos.base.v1beta1.Coin, + opt_index, + ) +} /** * Clears the list making it empty but non-null. * @return {!proto.oracle.v1.MsgRequestData} returns this */ -proto.oracle.v1.MsgRequestData.prototype.clearFeeLimitList = function() { - return this.setFeeLimitList([]); -}; - +proto.oracle.v1.MsgRequestData.prototype.clearFeeLimitList = function () { + return this.setFeeLimitList([]) +} /** * optional uint64 prepare_gas = 7; * @return {number} */ -proto.oracle.v1.MsgRequestData.prototype.getPrepareGas = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - +proto.oracle.v1.MsgRequestData.prototype.getPrepareGas = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)) +} /** * @param {number} value * @return {!proto.oracle.v1.MsgRequestData} returns this */ -proto.oracle.v1.MsgRequestData.prototype.setPrepareGas = function(value) { - return jspb.Message.setProto3IntField(this, 7, value); -}; - +proto.oracle.v1.MsgRequestData.prototype.setPrepareGas = function (value) { + return jspb.Message.setProto3IntField(this, 7, value) +} /** * optional uint64 execute_gas = 8; * @return {number} */ -proto.oracle.v1.MsgRequestData.prototype.getExecuteGas = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); -}; - +proto.oracle.v1.MsgRequestData.prototype.getExecuteGas = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)) +} /** * @param {number} value * @return {!proto.oracle.v1.MsgRequestData} returns this */ -proto.oracle.v1.MsgRequestData.prototype.setExecuteGas = function(value) { - return jspb.Message.setProto3IntField(this, 8, value); -}; - +proto.oracle.v1.MsgRequestData.prototype.setExecuteGas = function (value) { + return jspb.Message.setProto3IntField(this, 8, value) +} /** * optional string sender = 9; * @return {string} */ -proto.oracle.v1.MsgRequestData.prototype.getSender = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); -}; - +proto.oracle.v1.MsgRequestData.prototype.getSender = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, '')) +} /** * @param {string} value * @return {!proto.oracle.v1.MsgRequestData} returns this */ -proto.oracle.v1.MsgRequestData.prototype.setSender = function(value) { - return jspb.Message.setProto3StringField(this, 9, value); -}; - - -/** - * optional uint64 tss_group_id = 10; - * @return {number} - */ -proto.oracle.v1.MsgRequestData.prototype.getTssGroupId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.oracle.v1.MsgRequestData} returns this - */ -proto.oracle.v1.MsgRequestData.prototype.setTssGroupId = function(value) { - return jspb.Message.setProto3IntField(this, 10, value); -}; - - - - +proto.oracle.v1.MsgRequestData.prototype.setSender = function (value) { + return jspb.Message.setProto3StringField(this, 9, value) +} if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.oracle.v1.MsgRequestDataResponse.prototype.toObject = function(opt_includeInstance) { - return proto.oracle.v1.MsgRequestDataResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.oracle.v1.MsgRequestDataResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.oracle.v1.MsgRequestDataResponse.toObject = function(includeInstance, msg) { - var f, obj = { - - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.oracle.v1.MsgRequestDataResponse.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.oracle.v1.MsgRequestDataResponse.toObject( + opt_includeInstance, + this, + ) + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.oracle.v1.MsgRequestDataResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.oracle.v1.MsgRequestDataResponse.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = {} + + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.oracle.v1.MsgRequestDataResponse} */ -proto.oracle.v1.MsgRequestDataResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.oracle.v1.MsgRequestDataResponse; - return proto.oracle.v1.MsgRequestDataResponse.deserializeBinaryFromReader(msg, reader); -}; - +proto.oracle.v1.MsgRequestDataResponse.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.oracle.v1.MsgRequestDataResponse() + return proto.oracle.v1.MsgRequestDataResponse.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -895,32 +893,33 @@ proto.oracle.v1.MsgRequestDataResponse.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.oracle.v1.MsgRequestDataResponse} */ -proto.oracle.v1.MsgRequestDataResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.oracle.v1.MsgRequestDataResponse.deserializeBinaryFromReader = function ( + msg, + reader, +) { while (reader.nextField()) { if (reader.isEndGroup()) { - break; + break } - var field = reader.getFieldNumber(); + var field = reader.getFieldNumber() switch (field) { - default: - reader.skipField(); - break; + default: + reader.skipField() + break } } - return msg; -}; - + return msg +} /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.oracle.v1.MsgRequestDataResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.oracle.v1.MsgRequestDataResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.oracle.v1.MsgRequestDataResponse.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter() + proto.oracle.v1.MsgRequestDataResponse.serializeBinaryToWriter(this, writer) + return writer.getResultBuffer() +} /** * Serializes the given message to binary data (in protobuf wire @@ -929,75 +928,77 @@ proto.oracle.v1.MsgRequestDataResponse.prototype.serializeBinary = function() { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.oracle.v1.MsgRequestDataResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - +proto.oracle.v1.MsgRequestDataResponse.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined +} /** * List of repeated fields within this message type. * @private {!Array} * @const */ -proto.oracle.v1.MsgReportData.repeatedFields_ = [2]; - - +proto.oracle.v1.MsgReportData.repeatedFields_ = [2] if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.oracle.v1.MsgReportData.prototype.toObject = function(opt_includeInstance) { - return proto.oracle.v1.MsgReportData.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.oracle.v1.MsgReportData} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.oracle.v1.MsgReportData.toObject = function(includeInstance, msg) { - var f, obj = { - requestId: jspb.Message.getFieldWithDefault(msg, 1, 0), - rawReportsList: jspb.Message.toObjectList(msg.getRawReportsList(), - oracle_v1_oracle_pb.RawReport.toObject, includeInstance), - validator: jspb.Message.getFieldWithDefault(msg, 3, "") - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.oracle.v1.MsgReportData.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.oracle.v1.MsgReportData.toObject(opt_includeInstance, this) + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.oracle.v1.MsgReportData} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.oracle.v1.MsgReportData.toObject = function (includeInstance, msg) { + var f, + obj = { + requestId: jspb.Message.getFieldWithDefault(msg, 1, 0), + rawReportsList: jspb.Message.toObjectList( + msg.getRawReportsList(), + oracle_v1_oracle_pb.RawReport.toObject, + includeInstance, + ), + validator: jspb.Message.getFieldWithDefault(msg, 3, ''), + } + + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.oracle.v1.MsgReportData} */ -proto.oracle.v1.MsgReportData.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.oracle.v1.MsgReportData; - return proto.oracle.v1.MsgReportData.deserializeBinaryFromReader(msg, reader); -}; - +proto.oracle.v1.MsgReportData.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.oracle.v1.MsgReportData() + return proto.oracle.v1.MsgReportData.deserializeBinaryFromReader(msg, reader) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -1006,45 +1007,49 @@ proto.oracle.v1.MsgReportData.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.oracle.v1.MsgReportData} */ -proto.oracle.v1.MsgReportData.deserializeBinaryFromReader = function(msg, reader) { +proto.oracle.v1.MsgReportData.deserializeBinaryFromReader = function ( + msg, + reader, +) { while (reader.nextField()) { if (reader.isEndGroup()) { - break; + break } - var field = reader.getFieldNumber(); + var field = reader.getFieldNumber() switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint64()); - msg.setRequestId(value); - break; - case 2: - var value = new oracle_v1_oracle_pb.RawReport; - reader.readMessage(value,oracle_v1_oracle_pb.RawReport.deserializeBinaryFromReader); - msg.addRawReports(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setValidator(value); - break; - default: - reader.skipField(); - break; + case 1: + var value = /** @type {number} */ (reader.readUint64()) + msg.setRequestId(value) + break + case 2: + var value = new oracle_v1_oracle_pb.RawReport() + reader.readMessage( + value, + oracle_v1_oracle_pb.RawReport.deserializeBinaryFromReader, + ) + msg.addRawReports(value) + break + case 3: + var value = /** @type {string} */ (reader.readString()) + msg.setValidator(value) + break + default: + reader.skipField() + break } } - return msg; -}; - + return msg +} /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.oracle.v1.MsgReportData.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.oracle.v1.MsgReportData.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.oracle.v1.MsgReportData.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter() + proto.oracle.v1.MsgReportData.serializeBinaryToWriter(this, writer) + return writer.getResultBuffer() +} /** * Serializes the given message to binary data (in protobuf wire @@ -1053,161 +1058,163 @@ proto.oracle.v1.MsgReportData.prototype.serializeBinary = function() { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.oracle.v1.MsgReportData.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRequestId(); +proto.oracle.v1.MsgReportData.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined + f = message.getRequestId() if (f !== 0) { - writer.writeUint64( - 1, - f - ); + writer.writeUint64(1, f) } - f = message.getRawReportsList(); + f = message.getRawReportsList() if (f.length > 0) { writer.writeRepeatedMessage( 2, f, - oracle_v1_oracle_pb.RawReport.serializeBinaryToWriter - ); + oracle_v1_oracle_pb.RawReport.serializeBinaryToWriter, + ) } - f = message.getValidator(); + f = message.getValidator() if (f.length > 0) { - writer.writeString( - 3, - f - ); + writer.writeString(3, f) } -}; - +} /** * optional uint64 request_id = 1; * @return {number} */ -proto.oracle.v1.MsgReportData.prototype.getRequestId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - +proto.oracle.v1.MsgReportData.prototype.getRequestId = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)) +} /** * @param {number} value * @return {!proto.oracle.v1.MsgReportData} returns this */ -proto.oracle.v1.MsgReportData.prototype.setRequestId = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - +proto.oracle.v1.MsgReportData.prototype.setRequestId = function (value) { + return jspb.Message.setProto3IntField(this, 1, value) +} /** * repeated RawReport raw_reports = 2; * @return {!Array} */ -proto.oracle.v1.MsgReportData.prototype.getRawReportsList = function() { +proto.oracle.v1.MsgReportData.prototype.getRawReportsList = function () { return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, oracle_v1_oracle_pb.RawReport, 2)); -}; - + jspb.Message.getRepeatedWrapperField(this, oracle_v1_oracle_pb.RawReport, 2) + ) +} /** * @param {!Array} value * @return {!proto.oracle.v1.MsgReportData} returns this -*/ -proto.oracle.v1.MsgReportData.prototype.setRawReportsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - + */ +proto.oracle.v1.MsgReportData.prototype.setRawReportsList = function (value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value) +} /** * @param {!proto.oracle.v1.RawReport=} opt_value * @param {number=} opt_index * @return {!proto.oracle.v1.RawReport} */ -proto.oracle.v1.MsgReportData.prototype.addRawReports = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.oracle.v1.RawReport, opt_index); -}; - +proto.oracle.v1.MsgReportData.prototype.addRawReports = function ( + opt_value, + opt_index, +) { + return jspb.Message.addToRepeatedWrapperField( + this, + 2, + opt_value, + proto.oracle.v1.RawReport, + opt_index, + ) +} /** * Clears the list making it empty but non-null. * @return {!proto.oracle.v1.MsgReportData} returns this */ -proto.oracle.v1.MsgReportData.prototype.clearRawReportsList = function() { - return this.setRawReportsList([]); -}; - +proto.oracle.v1.MsgReportData.prototype.clearRawReportsList = function () { + return this.setRawReportsList([]) +} /** * optional string validator = 3; * @return {string} */ -proto.oracle.v1.MsgReportData.prototype.getValidator = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - +proto.oracle.v1.MsgReportData.prototype.getValidator = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, '')) +} /** * @param {string} value * @return {!proto.oracle.v1.MsgReportData} returns this */ -proto.oracle.v1.MsgReportData.prototype.setValidator = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - - - +proto.oracle.v1.MsgReportData.prototype.setValidator = function (value) { + return jspb.Message.setProto3StringField(this, 3, value) +} if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.oracle.v1.MsgReportDataResponse.prototype.toObject = function(opt_includeInstance) { - return proto.oracle.v1.MsgReportDataResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.oracle.v1.MsgReportDataResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.oracle.v1.MsgReportDataResponse.toObject = function(includeInstance, msg) { - var f, obj = { - - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.oracle.v1.MsgReportDataResponse.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.oracle.v1.MsgReportDataResponse.toObject( + opt_includeInstance, + this, + ) + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.oracle.v1.MsgReportDataResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.oracle.v1.MsgReportDataResponse.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = {} + + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.oracle.v1.MsgReportDataResponse} */ -proto.oracle.v1.MsgReportDataResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.oracle.v1.MsgReportDataResponse; - return proto.oracle.v1.MsgReportDataResponse.deserializeBinaryFromReader(msg, reader); -}; - +proto.oracle.v1.MsgReportDataResponse.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.oracle.v1.MsgReportDataResponse() + return proto.oracle.v1.MsgReportDataResponse.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -1216,32 +1223,33 @@ proto.oracle.v1.MsgReportDataResponse.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.oracle.v1.MsgReportDataResponse} */ -proto.oracle.v1.MsgReportDataResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.oracle.v1.MsgReportDataResponse.deserializeBinaryFromReader = function ( + msg, + reader, +) { while (reader.nextField()) { if (reader.isEndGroup()) { - break; + break } - var field = reader.getFieldNumber(); + var field = reader.getFieldNumber() switch (field) { - default: - reader.skipField(); - break; + default: + reader.skipField() + break } } - return msg; -}; - + return msg +} /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.oracle.v1.MsgReportDataResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.oracle.v1.MsgReportDataResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.oracle.v1.MsgReportDataResponse.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter() + proto.oracle.v1.MsgReportDataResponse.serializeBinaryToWriter(this, writer) + return writer.getResultBuffer() +} /** * Serializes the given message to binary data (in protobuf wire @@ -1250,79 +1258,90 @@ proto.oracle.v1.MsgReportDataResponse.prototype.serializeBinary = function() { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.oracle.v1.MsgReportDataResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - +proto.oracle.v1.MsgReportDataResponse.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined +} /** * List of repeated fields within this message type. * @private {!Array} * @const */ -proto.oracle.v1.MsgCreateDataSource.repeatedFields_ = [4]; - - +proto.oracle.v1.MsgCreateDataSource.repeatedFields_ = [4] if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.oracle.v1.MsgCreateDataSource.prototype.toObject = function(opt_includeInstance) { - return proto.oracle.v1.MsgCreateDataSource.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.oracle.v1.MsgCreateDataSource} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.oracle.v1.MsgCreateDataSource.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - description: jspb.Message.getFieldWithDefault(msg, 2, ""), - executable: msg.getExecutable_asB64(), - feeList: jspb.Message.toObjectList(msg.getFeeList(), - cosmos_base_v1beta1_coin_pb.Coin.toObject, includeInstance), - treasury: jspb.Message.getFieldWithDefault(msg, 5, ""), - owner: jspb.Message.getFieldWithDefault(msg, 6, ""), - sender: jspb.Message.getFieldWithDefault(msg, 7, "") - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.oracle.v1.MsgCreateDataSource.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.oracle.v1.MsgCreateDataSource.toObject( + opt_includeInstance, + this, + ) + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.oracle.v1.MsgCreateDataSource} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.oracle.v1.MsgCreateDataSource.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = { + name: jspb.Message.getFieldWithDefault(msg, 1, ''), + description: jspb.Message.getFieldWithDefault(msg, 2, ''), + executable: msg.getExecutable_asB64(), + feeList: jspb.Message.toObjectList( + msg.getFeeList(), + cosmos_base_v1beta1_coin_pb.Coin.toObject, + includeInstance, + ), + treasury: jspb.Message.getFieldWithDefault(msg, 5, ''), + owner: jspb.Message.getFieldWithDefault(msg, 6, ''), + sender: jspb.Message.getFieldWithDefault(msg, 7, ''), + } + + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.oracle.v1.MsgCreateDataSource} */ -proto.oracle.v1.MsgCreateDataSource.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.oracle.v1.MsgCreateDataSource; - return proto.oracle.v1.MsgCreateDataSource.deserializeBinaryFromReader(msg, reader); -}; - +proto.oracle.v1.MsgCreateDataSource.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.oracle.v1.MsgCreateDataSource() + return proto.oracle.v1.MsgCreateDataSource.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -1331,61 +1350,65 @@ proto.oracle.v1.MsgCreateDataSource.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.oracle.v1.MsgCreateDataSource} */ -proto.oracle.v1.MsgCreateDataSource.deserializeBinaryFromReader = function(msg, reader) { +proto.oracle.v1.MsgCreateDataSource.deserializeBinaryFromReader = function ( + msg, + reader, +) { while (reader.nextField()) { if (reader.isEndGroup()) { - break; + break } - var field = reader.getFieldNumber(); + var field = reader.getFieldNumber() switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 3: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setExecutable(value); - break; - case 4: - var value = new cosmos_base_v1beta1_coin_pb.Coin; - reader.readMessage(value,cosmos_base_v1beta1_coin_pb.Coin.deserializeBinaryFromReader); - msg.addFee(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setTreasury(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setOwner(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setSender(value); - break; - default: - reader.skipField(); - break; + case 1: + var value = /** @type {string} */ (reader.readString()) + msg.setName(value) + break + case 2: + var value = /** @type {string} */ (reader.readString()) + msg.setDescription(value) + break + case 3: + var value = /** @type {!Uint8Array} */ (reader.readBytes()) + msg.setExecutable(value) + break + case 4: + var value = new cosmos_base_v1beta1_coin_pb.Coin() + reader.readMessage( + value, + cosmos_base_v1beta1_coin_pb.Coin.deserializeBinaryFromReader, + ) + msg.addFee(value) + break + case 5: + var value = /** @type {string} */ (reader.readString()) + msg.setTreasury(value) + break + case 6: + var value = /** @type {string} */ (reader.readString()) + msg.setOwner(value) + break + case 7: + var value = /** @type {string} */ (reader.readString()) + msg.setSender(value) + break + default: + reader.skipField() + break } } - return msg; -}; - + return msg +} /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.oracle.v1.MsgCreateDataSource.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.oracle.v1.MsgCreateDataSource.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.oracle.v1.MsgCreateDataSource.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter() + proto.oracle.v1.MsgCreateDataSource.serializeBinaryToWriter(this, writer) + return writer.getResultBuffer() +} /** * Serializes the given message to binary data (in protobuf wire @@ -1394,116 +1417,98 @@ proto.oracle.v1.MsgCreateDataSource.prototype.serializeBinary = function() { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.oracle.v1.MsgCreateDataSource.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); +proto.oracle.v1.MsgCreateDataSource.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined + f = message.getName() if (f.length > 0) { - writer.writeString( - 1, - f - ); + writer.writeString(1, f) } - f = message.getDescription(); + f = message.getDescription() if (f.length > 0) { - writer.writeString( - 2, - f - ); + writer.writeString(2, f) } - f = message.getExecutable_asU8(); + f = message.getExecutable_asU8() if (f.length > 0) { - writer.writeBytes( - 3, - f - ); + writer.writeBytes(3, f) } - f = message.getFeeList(); + f = message.getFeeList() if (f.length > 0) { writer.writeRepeatedMessage( 4, f, - cosmos_base_v1beta1_coin_pb.Coin.serializeBinaryToWriter - ); + cosmos_base_v1beta1_coin_pb.Coin.serializeBinaryToWriter, + ) } - f = message.getTreasury(); + f = message.getTreasury() if (f.length > 0) { - writer.writeString( - 5, - f - ); + writer.writeString(5, f) } - f = message.getOwner(); + f = message.getOwner() if (f.length > 0) { - writer.writeString( - 6, - f - ); + writer.writeString(6, f) } - f = message.getSender(); + f = message.getSender() if (f.length > 0) { - writer.writeString( - 7, - f - ); + writer.writeString(7, f) } -}; - +} /** * optional string name = 1; * @return {string} */ -proto.oracle.v1.MsgCreateDataSource.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - +proto.oracle.v1.MsgCreateDataSource.prototype.getName = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, '')) +} /** * @param {string} value * @return {!proto.oracle.v1.MsgCreateDataSource} returns this */ -proto.oracle.v1.MsgCreateDataSource.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - +proto.oracle.v1.MsgCreateDataSource.prototype.setName = function (value) { + return jspb.Message.setProto3StringField(this, 1, value) +} /** * optional string description = 2; * @return {string} */ -proto.oracle.v1.MsgCreateDataSource.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - +proto.oracle.v1.MsgCreateDataSource.prototype.getDescription = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, '')) +} /** * @param {string} value * @return {!proto.oracle.v1.MsgCreateDataSource} returns this */ -proto.oracle.v1.MsgCreateDataSource.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - +proto.oracle.v1.MsgCreateDataSource.prototype.setDescription = function ( + value, +) { + return jspb.Message.setProto3StringField(this, 2, value) +} /** * optional bytes executable = 3; * @return {!(string|Uint8Array)} */ -proto.oracle.v1.MsgCreateDataSource.prototype.getExecutable = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - +proto.oracle.v1.MsgCreateDataSource.prototype.getExecutable = function () { + return /** @type {!(string|Uint8Array)} */ ( + jspb.Message.getFieldWithDefault(this, 3, '') + ) +} /** * optional bytes executable = 3; * This is a type-conversion wrapper around `getExecutable()` * @return {string} */ -proto.oracle.v1.MsgCreateDataSource.prototype.getExecutable_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getExecutable())); -}; - +proto.oracle.v1.MsgCreateDataSource.prototype.getExecutable_asB64 = + function () { + return /** @type {string} */ (jspb.Message.bytesAsB64(this.getExecutable())) + } /** * optional bytes executable = 3; @@ -1512,167 +1517,176 @@ proto.oracle.v1.MsgCreateDataSource.prototype.getExecutable_asB64 = function() { * This is a type-conversion wrapper around `getExecutable()` * @return {!Uint8Array} */ -proto.oracle.v1.MsgCreateDataSource.prototype.getExecutable_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getExecutable())); -}; - +proto.oracle.v1.MsgCreateDataSource.prototype.getExecutable_asU8 = function () { + return /** @type {!Uint8Array} */ ( + jspb.Message.bytesAsU8(this.getExecutable()) + ) +} /** * @param {!(string|Uint8Array)} value * @return {!proto.oracle.v1.MsgCreateDataSource} returns this */ -proto.oracle.v1.MsgCreateDataSource.prototype.setExecutable = function(value) { - return jspb.Message.setProto3BytesField(this, 3, value); -}; - +proto.oracle.v1.MsgCreateDataSource.prototype.setExecutable = function (value) { + return jspb.Message.setProto3BytesField(this, 3, value) +} /** * repeated cosmos.base.v1beta1.Coin fee = 4; * @return {!Array} */ -proto.oracle.v1.MsgCreateDataSource.prototype.getFeeList = function() { +proto.oracle.v1.MsgCreateDataSource.prototype.getFeeList = function () { return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, cosmos_base_v1beta1_coin_pb.Coin, 4)); -}; - + jspb.Message.getRepeatedWrapperField( + this, + cosmos_base_v1beta1_coin_pb.Coin, + 4, + ) + ) +} /** * @param {!Array} value * @return {!proto.oracle.v1.MsgCreateDataSource} returns this -*/ -proto.oracle.v1.MsgCreateDataSource.prototype.setFeeList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 4, value); -}; - + */ +proto.oracle.v1.MsgCreateDataSource.prototype.setFeeList = function (value) { + return jspb.Message.setRepeatedWrapperField(this, 4, value) +} /** * @param {!proto.cosmos.base.v1beta1.Coin=} opt_value * @param {number=} opt_index * @return {!proto.cosmos.base.v1beta1.Coin} */ -proto.oracle.v1.MsgCreateDataSource.prototype.addFee = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.cosmos.base.v1beta1.Coin, opt_index); -}; - +proto.oracle.v1.MsgCreateDataSource.prototype.addFee = function ( + opt_value, + opt_index, +) { + return jspb.Message.addToRepeatedWrapperField( + this, + 4, + opt_value, + proto.cosmos.base.v1beta1.Coin, + opt_index, + ) +} /** * Clears the list making it empty but non-null. * @return {!proto.oracle.v1.MsgCreateDataSource} returns this */ -proto.oracle.v1.MsgCreateDataSource.prototype.clearFeeList = function() { - return this.setFeeList([]); -}; - +proto.oracle.v1.MsgCreateDataSource.prototype.clearFeeList = function () { + return this.setFeeList([]) +} /** * optional string treasury = 5; * @return {string} */ -proto.oracle.v1.MsgCreateDataSource.prototype.getTreasury = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - +proto.oracle.v1.MsgCreateDataSource.prototype.getTreasury = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, '')) +} /** * @param {string} value * @return {!proto.oracle.v1.MsgCreateDataSource} returns this */ -proto.oracle.v1.MsgCreateDataSource.prototype.setTreasury = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - +proto.oracle.v1.MsgCreateDataSource.prototype.setTreasury = function (value) { + return jspb.Message.setProto3StringField(this, 5, value) +} /** * optional string owner = 6; * @return {string} */ -proto.oracle.v1.MsgCreateDataSource.prototype.getOwner = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - +proto.oracle.v1.MsgCreateDataSource.prototype.getOwner = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, '')) +} /** * @param {string} value * @return {!proto.oracle.v1.MsgCreateDataSource} returns this */ -proto.oracle.v1.MsgCreateDataSource.prototype.setOwner = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - +proto.oracle.v1.MsgCreateDataSource.prototype.setOwner = function (value) { + return jspb.Message.setProto3StringField(this, 6, value) +} /** * optional string sender = 7; * @return {string} */ -proto.oracle.v1.MsgCreateDataSource.prototype.getSender = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - +proto.oracle.v1.MsgCreateDataSource.prototype.getSender = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, '')) +} /** * @param {string} value * @return {!proto.oracle.v1.MsgCreateDataSource} returns this */ -proto.oracle.v1.MsgCreateDataSource.prototype.setSender = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); -}; - - - - +proto.oracle.v1.MsgCreateDataSource.prototype.setSender = function (value) { + return jspb.Message.setProto3StringField(this, 7, value) +} if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.oracle.v1.MsgCreateDataSourceResponse.prototype.toObject = function(opt_includeInstance) { - return proto.oracle.v1.MsgCreateDataSourceResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.oracle.v1.MsgCreateDataSourceResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.oracle.v1.MsgCreateDataSourceResponse.toObject = function(includeInstance, msg) { - var f, obj = { - - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.oracle.v1.MsgCreateDataSourceResponse.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.oracle.v1.MsgCreateDataSourceResponse.toObject( + opt_includeInstance, + this, + ) + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.oracle.v1.MsgCreateDataSourceResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.oracle.v1.MsgCreateDataSourceResponse.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = {} + + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.oracle.v1.MsgCreateDataSourceResponse} */ -proto.oracle.v1.MsgCreateDataSourceResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.oracle.v1.MsgCreateDataSourceResponse; - return proto.oracle.v1.MsgCreateDataSourceResponse.deserializeBinaryFromReader(msg, reader); -}; - +proto.oracle.v1.MsgCreateDataSourceResponse.deserializeBinary = function ( + bytes, +) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.oracle.v1.MsgCreateDataSourceResponse() + return proto.oracle.v1.MsgCreateDataSourceResponse.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -1681,32 +1695,35 @@ proto.oracle.v1.MsgCreateDataSourceResponse.deserializeBinary = function(bytes) * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.oracle.v1.MsgCreateDataSourceResponse} */ -proto.oracle.v1.MsgCreateDataSourceResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - default: - reader.skipField(); - break; +proto.oracle.v1.MsgCreateDataSourceResponse.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break + } + var field = reader.getFieldNumber() + switch (field) { + default: + reader.skipField() + break + } } + return msg } - return msg; -}; - /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.oracle.v1.MsgCreateDataSourceResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.oracle.v1.MsgCreateDataSourceResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.oracle.v1.MsgCreateDataSourceResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter() + proto.oracle.v1.MsgCreateDataSourceResponse.serializeBinaryToWriter( + this, + writer, + ) + return writer.getResultBuffer() + } /** * Serializes the given message to binary data (in protobuf wire @@ -1715,80 +1732,85 @@ proto.oracle.v1.MsgCreateDataSourceResponse.prototype.serializeBinary = function * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.oracle.v1.MsgCreateDataSourceResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - +proto.oracle.v1.MsgCreateDataSourceResponse.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined +} /** * List of repeated fields within this message type. * @private {!Array} * @const */ -proto.oracle.v1.MsgEditDataSource.repeatedFields_ = [5]; - - +proto.oracle.v1.MsgEditDataSource.repeatedFields_ = [5] if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.oracle.v1.MsgEditDataSource.prototype.toObject = function(opt_includeInstance) { - return proto.oracle.v1.MsgEditDataSource.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.oracle.v1.MsgEditDataSource} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.oracle.v1.MsgEditDataSource.toObject = function(includeInstance, msg) { - var f, obj = { - dataSourceId: jspb.Message.getFieldWithDefault(msg, 1, 0), - name: jspb.Message.getFieldWithDefault(msg, 2, ""), - description: jspb.Message.getFieldWithDefault(msg, 3, ""), - executable: msg.getExecutable_asB64(), - feeList: jspb.Message.toObjectList(msg.getFeeList(), - cosmos_base_v1beta1_coin_pb.Coin.toObject, includeInstance), - treasury: jspb.Message.getFieldWithDefault(msg, 6, ""), - owner: jspb.Message.getFieldWithDefault(msg, 7, ""), - sender: jspb.Message.getFieldWithDefault(msg, 8, "") - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.oracle.v1.MsgEditDataSource.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.oracle.v1.MsgEditDataSource.toObject(opt_includeInstance, this) + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.oracle.v1.MsgEditDataSource} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.oracle.v1.MsgEditDataSource.toObject = function (includeInstance, msg) { + var f, + obj = { + dataSourceId: jspb.Message.getFieldWithDefault(msg, 1, 0), + name: jspb.Message.getFieldWithDefault(msg, 2, ''), + description: jspb.Message.getFieldWithDefault(msg, 3, ''), + executable: msg.getExecutable_asB64(), + feeList: jspb.Message.toObjectList( + msg.getFeeList(), + cosmos_base_v1beta1_coin_pb.Coin.toObject, + includeInstance, + ), + treasury: jspb.Message.getFieldWithDefault(msg, 6, ''), + owner: jspb.Message.getFieldWithDefault(msg, 7, ''), + sender: jspb.Message.getFieldWithDefault(msg, 8, ''), + } + + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.oracle.v1.MsgEditDataSource} */ -proto.oracle.v1.MsgEditDataSource.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.oracle.v1.MsgEditDataSource; - return proto.oracle.v1.MsgEditDataSource.deserializeBinaryFromReader(msg, reader); -}; - +proto.oracle.v1.MsgEditDataSource.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.oracle.v1.MsgEditDataSource() + return proto.oracle.v1.MsgEditDataSource.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -1797,65 +1819,69 @@ proto.oracle.v1.MsgEditDataSource.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.oracle.v1.MsgEditDataSource} */ -proto.oracle.v1.MsgEditDataSource.deserializeBinaryFromReader = function(msg, reader) { +proto.oracle.v1.MsgEditDataSource.deserializeBinaryFromReader = function ( + msg, + reader, +) { while (reader.nextField()) { if (reader.isEndGroup()) { - break; + break } - var field = reader.getFieldNumber(); + var field = reader.getFieldNumber() switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint64()); - msg.setDataSourceId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 4: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setExecutable(value); - break; - case 5: - var value = new cosmos_base_v1beta1_coin_pb.Coin; - reader.readMessage(value,cosmos_base_v1beta1_coin_pb.Coin.deserializeBinaryFromReader); - msg.addFee(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setTreasury(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setOwner(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setSender(value); - break; - default: - reader.skipField(); - break; + case 1: + var value = /** @type {number} */ (reader.readUint64()) + msg.setDataSourceId(value) + break + case 2: + var value = /** @type {string} */ (reader.readString()) + msg.setName(value) + break + case 3: + var value = /** @type {string} */ (reader.readString()) + msg.setDescription(value) + break + case 4: + var value = /** @type {!Uint8Array} */ (reader.readBytes()) + msg.setExecutable(value) + break + case 5: + var value = new cosmos_base_v1beta1_coin_pb.Coin() + reader.readMessage( + value, + cosmos_base_v1beta1_coin_pb.Coin.deserializeBinaryFromReader, + ) + msg.addFee(value) + break + case 6: + var value = /** @type {string} */ (reader.readString()) + msg.setTreasury(value) + break + case 7: + var value = /** @type {string} */ (reader.readString()) + msg.setOwner(value) + break + case 8: + var value = /** @type {string} */ (reader.readString()) + msg.setSender(value) + break + default: + reader.skipField() + break } } - return msg; -}; - + return msg +} /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.oracle.v1.MsgEditDataSource.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.oracle.v1.MsgEditDataSource.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.oracle.v1.MsgEditDataSource.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter() + proto.oracle.v1.MsgEditDataSource.serializeBinaryToWriter(this, writer) + return writer.getResultBuffer() +} /** * Serializes the given message to binary data (in protobuf wire @@ -1864,141 +1890,115 @@ proto.oracle.v1.MsgEditDataSource.prototype.serializeBinary = function() { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.oracle.v1.MsgEditDataSource.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDataSourceId(); +proto.oracle.v1.MsgEditDataSource.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined + f = message.getDataSourceId() if (f !== 0) { - writer.writeUint64( - 1, - f - ); + writer.writeUint64(1, f) } - f = message.getName(); + f = message.getName() if (f.length > 0) { - writer.writeString( - 2, - f - ); + writer.writeString(2, f) } - f = message.getDescription(); + f = message.getDescription() if (f.length > 0) { - writer.writeString( - 3, - f - ); + writer.writeString(3, f) } - f = message.getExecutable_asU8(); + f = message.getExecutable_asU8() if (f.length > 0) { - writer.writeBytes( - 4, - f - ); + writer.writeBytes(4, f) } - f = message.getFeeList(); + f = message.getFeeList() if (f.length > 0) { writer.writeRepeatedMessage( 5, f, - cosmos_base_v1beta1_coin_pb.Coin.serializeBinaryToWriter - ); + cosmos_base_v1beta1_coin_pb.Coin.serializeBinaryToWriter, + ) } - f = message.getTreasury(); + f = message.getTreasury() if (f.length > 0) { - writer.writeString( - 6, - f - ); + writer.writeString(6, f) } - f = message.getOwner(); + f = message.getOwner() if (f.length > 0) { - writer.writeString( - 7, - f - ); + writer.writeString(7, f) } - f = message.getSender(); + f = message.getSender() if (f.length > 0) { - writer.writeString( - 8, - f - ); + writer.writeString(8, f) } -}; - +} /** * optional uint64 data_source_id = 1; * @return {number} */ -proto.oracle.v1.MsgEditDataSource.prototype.getDataSourceId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - +proto.oracle.v1.MsgEditDataSource.prototype.getDataSourceId = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)) +} /** * @param {number} value * @return {!proto.oracle.v1.MsgEditDataSource} returns this */ -proto.oracle.v1.MsgEditDataSource.prototype.setDataSourceId = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - +proto.oracle.v1.MsgEditDataSource.prototype.setDataSourceId = function (value) { + return jspb.Message.setProto3IntField(this, 1, value) +} /** * optional string name = 2; * @return {string} */ -proto.oracle.v1.MsgEditDataSource.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - +proto.oracle.v1.MsgEditDataSource.prototype.getName = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, '')) +} /** * @param {string} value * @return {!proto.oracle.v1.MsgEditDataSource} returns this */ -proto.oracle.v1.MsgEditDataSource.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - +proto.oracle.v1.MsgEditDataSource.prototype.setName = function (value) { + return jspb.Message.setProto3StringField(this, 2, value) +} /** * optional string description = 3; * @return {string} */ -proto.oracle.v1.MsgEditDataSource.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - +proto.oracle.v1.MsgEditDataSource.prototype.getDescription = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, '')) +} /** * @param {string} value * @return {!proto.oracle.v1.MsgEditDataSource} returns this */ -proto.oracle.v1.MsgEditDataSource.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - +proto.oracle.v1.MsgEditDataSource.prototype.setDescription = function (value) { + return jspb.Message.setProto3StringField(this, 3, value) +} /** * optional bytes executable = 4; * @return {!(string|Uint8Array)} */ -proto.oracle.v1.MsgEditDataSource.prototype.getExecutable = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - +proto.oracle.v1.MsgEditDataSource.prototype.getExecutable = function () { + return /** @type {!(string|Uint8Array)} */ ( + jspb.Message.getFieldWithDefault(this, 4, '') + ) +} /** * optional bytes executable = 4; * This is a type-conversion wrapper around `getExecutable()` * @return {string} */ -proto.oracle.v1.MsgEditDataSource.prototype.getExecutable_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getExecutable())); -}; - +proto.oracle.v1.MsgEditDataSource.prototype.getExecutable_asB64 = function () { + return /** @type {string} */ (jspb.Message.bytesAsB64(this.getExecutable())) +} /** * optional bytes executable = 4; @@ -2007,167 +2007,174 @@ proto.oracle.v1.MsgEditDataSource.prototype.getExecutable_asB64 = function() { * This is a type-conversion wrapper around `getExecutable()` * @return {!Uint8Array} */ -proto.oracle.v1.MsgEditDataSource.prototype.getExecutable_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getExecutable())); -}; - +proto.oracle.v1.MsgEditDataSource.prototype.getExecutable_asU8 = function () { + return /** @type {!Uint8Array} */ ( + jspb.Message.bytesAsU8(this.getExecutable()) + ) +} /** * @param {!(string|Uint8Array)} value * @return {!proto.oracle.v1.MsgEditDataSource} returns this */ -proto.oracle.v1.MsgEditDataSource.prototype.setExecutable = function(value) { - return jspb.Message.setProto3BytesField(this, 4, value); -}; - +proto.oracle.v1.MsgEditDataSource.prototype.setExecutable = function (value) { + return jspb.Message.setProto3BytesField(this, 4, value) +} /** * repeated cosmos.base.v1beta1.Coin fee = 5; * @return {!Array} */ -proto.oracle.v1.MsgEditDataSource.prototype.getFeeList = function() { +proto.oracle.v1.MsgEditDataSource.prototype.getFeeList = function () { return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, cosmos_base_v1beta1_coin_pb.Coin, 5)); -}; - + jspb.Message.getRepeatedWrapperField( + this, + cosmos_base_v1beta1_coin_pb.Coin, + 5, + ) + ) +} /** * @param {!Array} value * @return {!proto.oracle.v1.MsgEditDataSource} returns this -*/ -proto.oracle.v1.MsgEditDataSource.prototype.setFeeList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 5, value); -}; - + */ +proto.oracle.v1.MsgEditDataSource.prototype.setFeeList = function (value) { + return jspb.Message.setRepeatedWrapperField(this, 5, value) +} /** * @param {!proto.cosmos.base.v1beta1.Coin=} opt_value * @param {number=} opt_index * @return {!proto.cosmos.base.v1beta1.Coin} */ -proto.oracle.v1.MsgEditDataSource.prototype.addFee = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.cosmos.base.v1beta1.Coin, opt_index); -}; - +proto.oracle.v1.MsgEditDataSource.prototype.addFee = function ( + opt_value, + opt_index, +) { + return jspb.Message.addToRepeatedWrapperField( + this, + 5, + opt_value, + proto.cosmos.base.v1beta1.Coin, + opt_index, + ) +} /** * Clears the list making it empty but non-null. * @return {!proto.oracle.v1.MsgEditDataSource} returns this */ -proto.oracle.v1.MsgEditDataSource.prototype.clearFeeList = function() { - return this.setFeeList([]); -}; - +proto.oracle.v1.MsgEditDataSource.prototype.clearFeeList = function () { + return this.setFeeList([]) +} /** * optional string treasury = 6; * @return {string} */ -proto.oracle.v1.MsgEditDataSource.prototype.getTreasury = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - +proto.oracle.v1.MsgEditDataSource.prototype.getTreasury = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, '')) +} /** * @param {string} value * @return {!proto.oracle.v1.MsgEditDataSource} returns this */ -proto.oracle.v1.MsgEditDataSource.prototype.setTreasury = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - +proto.oracle.v1.MsgEditDataSource.prototype.setTreasury = function (value) { + return jspb.Message.setProto3StringField(this, 6, value) +} /** * optional string owner = 7; * @return {string} */ -proto.oracle.v1.MsgEditDataSource.prototype.getOwner = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - +proto.oracle.v1.MsgEditDataSource.prototype.getOwner = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, '')) +} /** * @param {string} value * @return {!proto.oracle.v1.MsgEditDataSource} returns this */ -proto.oracle.v1.MsgEditDataSource.prototype.setOwner = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); -}; - +proto.oracle.v1.MsgEditDataSource.prototype.setOwner = function (value) { + return jspb.Message.setProto3StringField(this, 7, value) +} /** * optional string sender = 8; * @return {string} */ -proto.oracle.v1.MsgEditDataSource.prototype.getSender = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); -}; - +proto.oracle.v1.MsgEditDataSource.prototype.getSender = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, '')) +} /** * @param {string} value * @return {!proto.oracle.v1.MsgEditDataSource} returns this */ -proto.oracle.v1.MsgEditDataSource.prototype.setSender = function(value) { - return jspb.Message.setProto3StringField(this, 8, value); -}; - - - - +proto.oracle.v1.MsgEditDataSource.prototype.setSender = function (value) { + return jspb.Message.setProto3StringField(this, 8, value) +} if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.oracle.v1.MsgEditDataSourceResponse.prototype.toObject = function(opt_includeInstance) { - return proto.oracle.v1.MsgEditDataSourceResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.oracle.v1.MsgEditDataSourceResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.oracle.v1.MsgEditDataSourceResponse.toObject = function(includeInstance, msg) { - var f, obj = { - - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.oracle.v1.MsgEditDataSourceResponse.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.oracle.v1.MsgEditDataSourceResponse.toObject( + opt_includeInstance, + this, + ) + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.oracle.v1.MsgEditDataSourceResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.oracle.v1.MsgEditDataSourceResponse.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = {} + + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.oracle.v1.MsgEditDataSourceResponse} */ -proto.oracle.v1.MsgEditDataSourceResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.oracle.v1.MsgEditDataSourceResponse; - return proto.oracle.v1.MsgEditDataSourceResponse.deserializeBinaryFromReader(msg, reader); -}; - +proto.oracle.v1.MsgEditDataSourceResponse.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.oracle.v1.MsgEditDataSourceResponse() + return proto.oracle.v1.MsgEditDataSourceResponse.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -2176,32 +2183,35 @@ proto.oracle.v1.MsgEditDataSourceResponse.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.oracle.v1.MsgEditDataSourceResponse} */ -proto.oracle.v1.MsgEditDataSourceResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - default: - reader.skipField(); - break; +proto.oracle.v1.MsgEditDataSourceResponse.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break + } + var field = reader.getFieldNumber() + switch (field) { + default: + reader.skipField() + break + } } + return msg } - return msg; -}; - /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.oracle.v1.MsgEditDataSourceResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.oracle.v1.MsgEditDataSourceResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.oracle.v1.MsgEditDataSourceResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter() + proto.oracle.v1.MsgEditDataSourceResponse.serializeBinaryToWriter( + this, + writer, + ) + return writer.getResultBuffer() + } /** * Serializes the given message to binary data (in protobuf wire @@ -2210,71 +2220,79 @@ proto.oracle.v1.MsgEditDataSourceResponse.prototype.serializeBinary = function() * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.oracle.v1.MsgEditDataSourceResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - - - +proto.oracle.v1.MsgEditDataSourceResponse.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined +} if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.oracle.v1.MsgCreateOracleScript.prototype.toObject = function(opt_includeInstance) { - return proto.oracle.v1.MsgCreateOracleScript.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.oracle.v1.MsgCreateOracleScript} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.oracle.v1.MsgCreateOracleScript.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - description: jspb.Message.getFieldWithDefault(msg, 2, ""), - schema: jspb.Message.getFieldWithDefault(msg, 3, ""), - sourceCodeUrl: jspb.Message.getFieldWithDefault(msg, 4, ""), - code: msg.getCode_asB64(), - owner: jspb.Message.getFieldWithDefault(msg, 6, ""), - sender: jspb.Message.getFieldWithDefault(msg, 7, "") - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.oracle.v1.MsgCreateOracleScript.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.oracle.v1.MsgCreateOracleScript.toObject( + opt_includeInstance, + this, + ) + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.oracle.v1.MsgCreateOracleScript} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.oracle.v1.MsgCreateOracleScript.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = { + name: jspb.Message.getFieldWithDefault(msg, 1, ''), + description: jspb.Message.getFieldWithDefault(msg, 2, ''), + schema: jspb.Message.getFieldWithDefault(msg, 3, ''), + sourceCodeUrl: jspb.Message.getFieldWithDefault(msg, 4, ''), + code: msg.getCode_asB64(), + owner: jspb.Message.getFieldWithDefault(msg, 6, ''), + sender: jspb.Message.getFieldWithDefault(msg, 7, ''), + } + + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.oracle.v1.MsgCreateOracleScript} */ -proto.oracle.v1.MsgCreateOracleScript.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.oracle.v1.MsgCreateOracleScript; - return proto.oracle.v1.MsgCreateOracleScript.deserializeBinaryFromReader(msg, reader); -}; - +proto.oracle.v1.MsgCreateOracleScript.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.oracle.v1.MsgCreateOracleScript() + return proto.oracle.v1.MsgCreateOracleScript.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -2283,60 +2301,61 @@ proto.oracle.v1.MsgCreateOracleScript.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.oracle.v1.MsgCreateOracleScript} */ -proto.oracle.v1.MsgCreateOracleScript.deserializeBinaryFromReader = function(msg, reader) { +proto.oracle.v1.MsgCreateOracleScript.deserializeBinaryFromReader = function ( + msg, + reader, +) { while (reader.nextField()) { if (reader.isEndGroup()) { - break; + break } - var field = reader.getFieldNumber(); + var field = reader.getFieldNumber() switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setSchema(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setSourceCodeUrl(value); - break; - case 5: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setCode(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setOwner(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setSender(value); - break; - default: - reader.skipField(); - break; + case 1: + var value = /** @type {string} */ (reader.readString()) + msg.setName(value) + break + case 2: + var value = /** @type {string} */ (reader.readString()) + msg.setDescription(value) + break + case 3: + var value = /** @type {string} */ (reader.readString()) + msg.setSchema(value) + break + case 4: + var value = /** @type {string} */ (reader.readString()) + msg.setSourceCodeUrl(value) + break + case 5: + var value = /** @type {!Uint8Array} */ (reader.readBytes()) + msg.setCode(value) + break + case 6: + var value = /** @type {string} */ (reader.readString()) + msg.setOwner(value) + break + case 7: + var value = /** @type {string} */ (reader.readString()) + msg.setSender(value) + break + default: + reader.skipField() + break } } - return msg; -}; - + return msg +} /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.oracle.v1.MsgCreateOracleScript.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.oracle.v1.MsgCreateOracleScript.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.oracle.v1.MsgCreateOracleScript.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter() + proto.oracle.v1.MsgCreateOracleScript.serializeBinaryToWriter(this, writer) + return writer.getResultBuffer() +} /** * Serializes the given message to binary data (in protobuf wire @@ -2345,151 +2364,127 @@ proto.oracle.v1.MsgCreateOracleScript.prototype.serializeBinary = function() { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.oracle.v1.MsgCreateOracleScript.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); +proto.oracle.v1.MsgCreateOracleScript.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined + f = message.getName() if (f.length > 0) { - writer.writeString( - 1, - f - ); + writer.writeString(1, f) } - f = message.getDescription(); + f = message.getDescription() if (f.length > 0) { - writer.writeString( - 2, - f - ); + writer.writeString(2, f) } - f = message.getSchema(); + f = message.getSchema() if (f.length > 0) { - writer.writeString( - 3, - f - ); + writer.writeString(3, f) } - f = message.getSourceCodeUrl(); + f = message.getSourceCodeUrl() if (f.length > 0) { - writer.writeString( - 4, - f - ); + writer.writeString(4, f) } - f = message.getCode_asU8(); + f = message.getCode_asU8() if (f.length > 0) { - writer.writeBytes( - 5, - f - ); + writer.writeBytes(5, f) } - f = message.getOwner(); + f = message.getOwner() if (f.length > 0) { - writer.writeString( - 6, - f - ); + writer.writeString(6, f) } - f = message.getSender(); + f = message.getSender() if (f.length > 0) { - writer.writeString( - 7, - f - ); + writer.writeString(7, f) } -}; - +} /** * optional string name = 1; * @return {string} */ -proto.oracle.v1.MsgCreateOracleScript.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - +proto.oracle.v1.MsgCreateOracleScript.prototype.getName = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, '')) +} /** * @param {string} value * @return {!proto.oracle.v1.MsgCreateOracleScript} returns this */ -proto.oracle.v1.MsgCreateOracleScript.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - +proto.oracle.v1.MsgCreateOracleScript.prototype.setName = function (value) { + return jspb.Message.setProto3StringField(this, 1, value) +} /** * optional string description = 2; * @return {string} */ -proto.oracle.v1.MsgCreateOracleScript.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - +proto.oracle.v1.MsgCreateOracleScript.prototype.getDescription = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, '')) +} /** * @param {string} value * @return {!proto.oracle.v1.MsgCreateOracleScript} returns this */ -proto.oracle.v1.MsgCreateOracleScript.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - +proto.oracle.v1.MsgCreateOracleScript.prototype.setDescription = function ( + value, +) { + return jspb.Message.setProto3StringField(this, 2, value) +} /** * optional string schema = 3; * @return {string} */ -proto.oracle.v1.MsgCreateOracleScript.prototype.getSchema = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - +proto.oracle.v1.MsgCreateOracleScript.prototype.getSchema = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, '')) +} /** * @param {string} value * @return {!proto.oracle.v1.MsgCreateOracleScript} returns this */ -proto.oracle.v1.MsgCreateOracleScript.prototype.setSchema = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - +proto.oracle.v1.MsgCreateOracleScript.prototype.setSchema = function (value) { + return jspb.Message.setProto3StringField(this, 3, value) +} /** * optional string source_code_url = 4; * @return {string} */ -proto.oracle.v1.MsgCreateOracleScript.prototype.getSourceCodeUrl = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - +proto.oracle.v1.MsgCreateOracleScript.prototype.getSourceCodeUrl = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, '')) +} /** * @param {string} value * @return {!proto.oracle.v1.MsgCreateOracleScript} returns this */ -proto.oracle.v1.MsgCreateOracleScript.prototype.setSourceCodeUrl = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - +proto.oracle.v1.MsgCreateOracleScript.prototype.setSourceCodeUrl = function ( + value, +) { + return jspb.Message.setProto3StringField(this, 4, value) +} /** * optional bytes code = 5; * @return {!(string|Uint8Array)} */ -proto.oracle.v1.MsgCreateOracleScript.prototype.getCode = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - +proto.oracle.v1.MsgCreateOracleScript.prototype.getCode = function () { + return /** @type {!(string|Uint8Array)} */ ( + jspb.Message.getFieldWithDefault(this, 5, '') + ) +} /** * optional bytes code = 5; * This is a type-conversion wrapper around `getCode()` * @return {string} */ -proto.oracle.v1.MsgCreateOracleScript.prototype.getCode_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getCode())); -}; - +proto.oracle.v1.MsgCreateOracleScript.prototype.getCode_asB64 = function () { + return /** @type {string} */ (jspb.Message.bytesAsB64(this.getCode())) +} /** * optional bytes code = 5; @@ -2498,111 +2493,110 @@ proto.oracle.v1.MsgCreateOracleScript.prototype.getCode_asB64 = function() { * This is a type-conversion wrapper around `getCode()` * @return {!Uint8Array} */ -proto.oracle.v1.MsgCreateOracleScript.prototype.getCode_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getCode())); -}; - +proto.oracle.v1.MsgCreateOracleScript.prototype.getCode_asU8 = function () { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(this.getCode())) +} /** * @param {!(string|Uint8Array)} value * @return {!proto.oracle.v1.MsgCreateOracleScript} returns this */ -proto.oracle.v1.MsgCreateOracleScript.prototype.setCode = function(value) { - return jspb.Message.setProto3BytesField(this, 5, value); -}; - +proto.oracle.v1.MsgCreateOracleScript.prototype.setCode = function (value) { + return jspb.Message.setProto3BytesField(this, 5, value) +} /** * optional string owner = 6; * @return {string} */ -proto.oracle.v1.MsgCreateOracleScript.prototype.getOwner = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - +proto.oracle.v1.MsgCreateOracleScript.prototype.getOwner = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, '')) +} /** * @param {string} value * @return {!proto.oracle.v1.MsgCreateOracleScript} returns this */ -proto.oracle.v1.MsgCreateOracleScript.prototype.setOwner = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - +proto.oracle.v1.MsgCreateOracleScript.prototype.setOwner = function (value) { + return jspb.Message.setProto3StringField(this, 6, value) +} /** * optional string sender = 7; * @return {string} */ -proto.oracle.v1.MsgCreateOracleScript.prototype.getSender = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - +proto.oracle.v1.MsgCreateOracleScript.prototype.getSender = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, '')) +} /** * @param {string} value * @return {!proto.oracle.v1.MsgCreateOracleScript} returns this */ -proto.oracle.v1.MsgCreateOracleScript.prototype.setSender = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); -}; - - - - +proto.oracle.v1.MsgCreateOracleScript.prototype.setSender = function (value) { + return jspb.Message.setProto3StringField(this, 7, value) +} if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.oracle.v1.MsgCreateOracleScriptResponse.prototype.toObject = function(opt_includeInstance) { - return proto.oracle.v1.MsgCreateOracleScriptResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.oracle.v1.MsgCreateOracleScriptResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.oracle.v1.MsgCreateOracleScriptResponse.toObject = function(includeInstance, msg) { - var f, obj = { - - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.oracle.v1.MsgCreateOracleScriptResponse.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.oracle.v1.MsgCreateOracleScriptResponse.toObject( + opt_includeInstance, + this, + ) + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.oracle.v1.MsgCreateOracleScriptResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.oracle.v1.MsgCreateOracleScriptResponse.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = {} + + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.oracle.v1.MsgCreateOracleScriptResponse} */ -proto.oracle.v1.MsgCreateOracleScriptResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.oracle.v1.MsgCreateOracleScriptResponse; - return proto.oracle.v1.MsgCreateOracleScriptResponse.deserializeBinaryFromReader(msg, reader); -}; - +proto.oracle.v1.MsgCreateOracleScriptResponse.deserializeBinary = function ( + bytes, +) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.oracle.v1.MsgCreateOracleScriptResponse() + return proto.oracle.v1.MsgCreateOracleScriptResponse.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -2611,32 +2605,35 @@ proto.oracle.v1.MsgCreateOracleScriptResponse.deserializeBinary = function(bytes * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.oracle.v1.MsgCreateOracleScriptResponse} */ -proto.oracle.v1.MsgCreateOracleScriptResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - default: - reader.skipField(); - break; +proto.oracle.v1.MsgCreateOracleScriptResponse.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break + } + var field = reader.getFieldNumber() + switch (field) { + default: + reader.skipField() + break + } } + return msg } - return msg; -}; - /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.oracle.v1.MsgCreateOracleScriptResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.oracle.v1.MsgCreateOracleScriptResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.oracle.v1.MsgCreateOracleScriptResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter() + proto.oracle.v1.MsgCreateOracleScriptResponse.serializeBinaryToWriter( + this, + writer, + ) + return writer.getResultBuffer() + } /** * Serializes the given message to binary data (in protobuf wire @@ -2645,72 +2642,78 @@ proto.oracle.v1.MsgCreateOracleScriptResponse.prototype.serializeBinary = functi * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.oracle.v1.MsgCreateOracleScriptResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - - - +proto.oracle.v1.MsgCreateOracleScriptResponse.serializeBinaryToWriter = + function (message, writer) { + var f = undefined + } if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.oracle.v1.MsgEditOracleScript.prototype.toObject = function(opt_includeInstance) { - return proto.oracle.v1.MsgEditOracleScript.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.oracle.v1.MsgEditOracleScript} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.oracle.v1.MsgEditOracleScript.toObject = function(includeInstance, msg) { - var f, obj = { - oracleScriptId: jspb.Message.getFieldWithDefault(msg, 1, 0), - name: jspb.Message.getFieldWithDefault(msg, 2, ""), - description: jspb.Message.getFieldWithDefault(msg, 3, ""), - schema: jspb.Message.getFieldWithDefault(msg, 4, ""), - sourceCodeUrl: jspb.Message.getFieldWithDefault(msg, 5, ""), - code: msg.getCode_asB64(), - owner: jspb.Message.getFieldWithDefault(msg, 7, ""), - sender: jspb.Message.getFieldWithDefault(msg, 8, "") - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.oracle.v1.MsgEditOracleScript.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.oracle.v1.MsgEditOracleScript.toObject( + opt_includeInstance, + this, + ) + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.oracle.v1.MsgEditOracleScript} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.oracle.v1.MsgEditOracleScript.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = { + oracleScriptId: jspb.Message.getFieldWithDefault(msg, 1, 0), + name: jspb.Message.getFieldWithDefault(msg, 2, ''), + description: jspb.Message.getFieldWithDefault(msg, 3, ''), + schema: jspb.Message.getFieldWithDefault(msg, 4, ''), + sourceCodeUrl: jspb.Message.getFieldWithDefault(msg, 5, ''), + code: msg.getCode_asB64(), + owner: jspb.Message.getFieldWithDefault(msg, 7, ''), + sender: jspb.Message.getFieldWithDefault(msg, 8, ''), + } + + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.oracle.v1.MsgEditOracleScript} */ -proto.oracle.v1.MsgEditOracleScript.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.oracle.v1.MsgEditOracleScript; - return proto.oracle.v1.MsgEditOracleScript.deserializeBinaryFromReader(msg, reader); -}; - +proto.oracle.v1.MsgEditOracleScript.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.oracle.v1.MsgEditOracleScript() + return proto.oracle.v1.MsgEditOracleScript.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -2719,64 +2722,65 @@ proto.oracle.v1.MsgEditOracleScript.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.oracle.v1.MsgEditOracleScript} */ -proto.oracle.v1.MsgEditOracleScript.deserializeBinaryFromReader = function(msg, reader) { +proto.oracle.v1.MsgEditOracleScript.deserializeBinaryFromReader = function ( + msg, + reader, +) { while (reader.nextField()) { if (reader.isEndGroup()) { - break; + break } - var field = reader.getFieldNumber(); + var field = reader.getFieldNumber() switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint64()); - msg.setOracleScriptId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setSchema(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setSourceCodeUrl(value); - break; - case 6: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setCode(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setOwner(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setSender(value); - break; - default: - reader.skipField(); - break; + case 1: + var value = /** @type {number} */ (reader.readUint64()) + msg.setOracleScriptId(value) + break + case 2: + var value = /** @type {string} */ (reader.readString()) + msg.setName(value) + break + case 3: + var value = /** @type {string} */ (reader.readString()) + msg.setDescription(value) + break + case 4: + var value = /** @type {string} */ (reader.readString()) + msg.setSchema(value) + break + case 5: + var value = /** @type {string} */ (reader.readString()) + msg.setSourceCodeUrl(value) + break + case 6: + var value = /** @type {!Uint8Array} */ (reader.readBytes()) + msg.setCode(value) + break + case 7: + var value = /** @type {string} */ (reader.readString()) + msg.setOwner(value) + break + case 8: + var value = /** @type {string} */ (reader.readString()) + msg.setSender(value) + break + default: + reader.skipField() + break } } - return msg; -}; - + return msg +} /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.oracle.v1.MsgEditOracleScript.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.oracle.v1.MsgEditOracleScript.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.oracle.v1.MsgEditOracleScript.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter() + proto.oracle.v1.MsgEditOracleScript.serializeBinaryToWriter(this, writer) + return writer.getResultBuffer() +} /** * Serializes the given message to binary data (in protobuf wire @@ -2785,176 +2789,149 @@ proto.oracle.v1.MsgEditOracleScript.prototype.serializeBinary = function() { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.oracle.v1.MsgEditOracleScript.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOracleScriptId(); +proto.oracle.v1.MsgEditOracleScript.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined + f = message.getOracleScriptId() if (f !== 0) { - writer.writeUint64( - 1, - f - ); + writer.writeUint64(1, f) } - f = message.getName(); + f = message.getName() if (f.length > 0) { - writer.writeString( - 2, - f - ); + writer.writeString(2, f) } - f = message.getDescription(); + f = message.getDescription() if (f.length > 0) { - writer.writeString( - 3, - f - ); + writer.writeString(3, f) } - f = message.getSchema(); + f = message.getSchema() if (f.length > 0) { - writer.writeString( - 4, - f - ); + writer.writeString(4, f) } - f = message.getSourceCodeUrl(); + f = message.getSourceCodeUrl() if (f.length > 0) { - writer.writeString( - 5, - f - ); + writer.writeString(5, f) } - f = message.getCode_asU8(); + f = message.getCode_asU8() if (f.length > 0) { - writer.writeBytes( - 6, - f - ); + writer.writeBytes(6, f) } - f = message.getOwner(); + f = message.getOwner() if (f.length > 0) { - writer.writeString( - 7, - f - ); + writer.writeString(7, f) } - f = message.getSender(); + f = message.getSender() if (f.length > 0) { - writer.writeString( - 8, - f - ); + writer.writeString(8, f) } -}; - +} /** * optional uint64 oracle_script_id = 1; * @return {number} */ -proto.oracle.v1.MsgEditOracleScript.prototype.getOracleScriptId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - +proto.oracle.v1.MsgEditOracleScript.prototype.getOracleScriptId = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)) +} /** * @param {number} value * @return {!proto.oracle.v1.MsgEditOracleScript} returns this */ -proto.oracle.v1.MsgEditOracleScript.prototype.setOracleScriptId = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - +proto.oracle.v1.MsgEditOracleScript.prototype.setOracleScriptId = function ( + value, +) { + return jspb.Message.setProto3IntField(this, 1, value) +} /** * optional string name = 2; * @return {string} */ -proto.oracle.v1.MsgEditOracleScript.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - +proto.oracle.v1.MsgEditOracleScript.prototype.getName = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, '')) +} /** * @param {string} value * @return {!proto.oracle.v1.MsgEditOracleScript} returns this */ -proto.oracle.v1.MsgEditOracleScript.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - +proto.oracle.v1.MsgEditOracleScript.prototype.setName = function (value) { + return jspb.Message.setProto3StringField(this, 2, value) +} /** * optional string description = 3; * @return {string} */ -proto.oracle.v1.MsgEditOracleScript.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - +proto.oracle.v1.MsgEditOracleScript.prototype.getDescription = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, '')) +} /** * @param {string} value * @return {!proto.oracle.v1.MsgEditOracleScript} returns this */ -proto.oracle.v1.MsgEditOracleScript.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - +proto.oracle.v1.MsgEditOracleScript.prototype.setDescription = function ( + value, +) { + return jspb.Message.setProto3StringField(this, 3, value) +} /** * optional string schema = 4; * @return {string} */ -proto.oracle.v1.MsgEditOracleScript.prototype.getSchema = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - +proto.oracle.v1.MsgEditOracleScript.prototype.getSchema = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, '')) +} /** * @param {string} value * @return {!proto.oracle.v1.MsgEditOracleScript} returns this */ -proto.oracle.v1.MsgEditOracleScript.prototype.setSchema = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - +proto.oracle.v1.MsgEditOracleScript.prototype.setSchema = function (value) { + return jspb.Message.setProto3StringField(this, 4, value) +} /** * optional string source_code_url = 5; * @return {string} */ -proto.oracle.v1.MsgEditOracleScript.prototype.getSourceCodeUrl = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - +proto.oracle.v1.MsgEditOracleScript.prototype.getSourceCodeUrl = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, '')) +} /** * @param {string} value * @return {!proto.oracle.v1.MsgEditOracleScript} returns this */ -proto.oracle.v1.MsgEditOracleScript.prototype.setSourceCodeUrl = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - +proto.oracle.v1.MsgEditOracleScript.prototype.setSourceCodeUrl = function ( + value, +) { + return jspb.Message.setProto3StringField(this, 5, value) +} /** * optional bytes code = 6; * @return {!(string|Uint8Array)} */ -proto.oracle.v1.MsgEditOracleScript.prototype.getCode = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - +proto.oracle.v1.MsgEditOracleScript.prototype.getCode = function () { + return /** @type {!(string|Uint8Array)} */ ( + jspb.Message.getFieldWithDefault(this, 6, '') + ) +} /** * optional bytes code = 6; * This is a type-conversion wrapper around `getCode()` * @return {string} */ -proto.oracle.v1.MsgEditOracleScript.prototype.getCode_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getCode())); -}; - +proto.oracle.v1.MsgEditOracleScript.prototype.getCode_asB64 = function () { + return /** @type {string} */ (jspb.Message.bytesAsB64(this.getCode())) +} /** * optional bytes code = 6; @@ -2963,111 +2940,110 @@ proto.oracle.v1.MsgEditOracleScript.prototype.getCode_asB64 = function() { * This is a type-conversion wrapper around `getCode()` * @return {!Uint8Array} */ -proto.oracle.v1.MsgEditOracleScript.prototype.getCode_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getCode())); -}; - +proto.oracle.v1.MsgEditOracleScript.prototype.getCode_asU8 = function () { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(this.getCode())) +} /** * @param {!(string|Uint8Array)} value * @return {!proto.oracle.v1.MsgEditOracleScript} returns this */ -proto.oracle.v1.MsgEditOracleScript.prototype.setCode = function(value) { - return jspb.Message.setProto3BytesField(this, 6, value); -}; - +proto.oracle.v1.MsgEditOracleScript.prototype.setCode = function (value) { + return jspb.Message.setProto3BytesField(this, 6, value) +} /** * optional string owner = 7; * @return {string} */ -proto.oracle.v1.MsgEditOracleScript.prototype.getOwner = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - +proto.oracle.v1.MsgEditOracleScript.prototype.getOwner = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, '')) +} /** * @param {string} value * @return {!proto.oracle.v1.MsgEditOracleScript} returns this */ -proto.oracle.v1.MsgEditOracleScript.prototype.setOwner = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); -}; - +proto.oracle.v1.MsgEditOracleScript.prototype.setOwner = function (value) { + return jspb.Message.setProto3StringField(this, 7, value) +} /** * optional string sender = 8; * @return {string} */ -proto.oracle.v1.MsgEditOracleScript.prototype.getSender = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); -}; - +proto.oracle.v1.MsgEditOracleScript.prototype.getSender = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, '')) +} /** * @param {string} value * @return {!proto.oracle.v1.MsgEditOracleScript} returns this */ -proto.oracle.v1.MsgEditOracleScript.prototype.setSender = function(value) { - return jspb.Message.setProto3StringField(this, 8, value); -}; - - - - +proto.oracle.v1.MsgEditOracleScript.prototype.setSender = function (value) { + return jspb.Message.setProto3StringField(this, 8, value) +} if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.oracle.v1.MsgEditOracleScriptResponse.prototype.toObject = function(opt_includeInstance) { - return proto.oracle.v1.MsgEditOracleScriptResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.oracle.v1.MsgEditOracleScriptResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.oracle.v1.MsgEditOracleScriptResponse.toObject = function(includeInstance, msg) { - var f, obj = { - - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.oracle.v1.MsgEditOracleScriptResponse.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.oracle.v1.MsgEditOracleScriptResponse.toObject( + opt_includeInstance, + this, + ) + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.oracle.v1.MsgEditOracleScriptResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.oracle.v1.MsgEditOracleScriptResponse.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = {} + + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.oracle.v1.MsgEditOracleScriptResponse} */ -proto.oracle.v1.MsgEditOracleScriptResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.oracle.v1.MsgEditOracleScriptResponse; - return proto.oracle.v1.MsgEditOracleScriptResponse.deserializeBinaryFromReader(msg, reader); -}; - +proto.oracle.v1.MsgEditOracleScriptResponse.deserializeBinary = function ( + bytes, +) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.oracle.v1.MsgEditOracleScriptResponse() + return proto.oracle.v1.MsgEditOracleScriptResponse.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -3076,32 +3052,35 @@ proto.oracle.v1.MsgEditOracleScriptResponse.deserializeBinary = function(bytes) * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.oracle.v1.MsgEditOracleScriptResponse} */ -proto.oracle.v1.MsgEditOracleScriptResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - default: - reader.skipField(); - break; +proto.oracle.v1.MsgEditOracleScriptResponse.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break + } + var field = reader.getFieldNumber() + switch (field) { + default: + reader.skipField() + break + } } + return msg } - return msg; -}; - /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.oracle.v1.MsgEditOracleScriptResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.oracle.v1.MsgEditOracleScriptResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.oracle.v1.MsgEditOracleScriptResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter() + proto.oracle.v1.MsgEditOracleScriptResponse.serializeBinaryToWriter( + this, + writer, + ) + return writer.getResultBuffer() + } /** * Serializes the given message to binary data (in protobuf wire @@ -3110,65 +3089,64 @@ proto.oracle.v1.MsgEditOracleScriptResponse.prototype.serializeBinary = function * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.oracle.v1.MsgEditOracleScriptResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - - - +proto.oracle.v1.MsgEditOracleScriptResponse.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined +} if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.oracle.v1.MsgActivate.prototype.toObject = function(opt_includeInstance) { - return proto.oracle.v1.MsgActivate.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.oracle.v1.MsgActivate} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.oracle.v1.MsgActivate.toObject = function(includeInstance, msg) { - var f, obj = { - validator: jspb.Message.getFieldWithDefault(msg, 1, "") - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.oracle.v1.MsgActivate.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.oracle.v1.MsgActivate.toObject(opt_includeInstance, this) + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.oracle.v1.MsgActivate} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.oracle.v1.MsgActivate.toObject = function (includeInstance, msg) { + var f, + obj = { + validator: jspb.Message.getFieldWithDefault(msg, 1, ''), + } + + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.oracle.v1.MsgActivate} */ -proto.oracle.v1.MsgActivate.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.oracle.v1.MsgActivate; - return proto.oracle.v1.MsgActivate.deserializeBinaryFromReader(msg, reader); -}; - +proto.oracle.v1.MsgActivate.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.oracle.v1.MsgActivate() + return proto.oracle.v1.MsgActivate.deserializeBinaryFromReader(msg, reader) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -3177,36 +3155,37 @@ proto.oracle.v1.MsgActivate.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.oracle.v1.MsgActivate} */ -proto.oracle.v1.MsgActivate.deserializeBinaryFromReader = function(msg, reader) { +proto.oracle.v1.MsgActivate.deserializeBinaryFromReader = function ( + msg, + reader, +) { while (reader.nextField()) { if (reader.isEndGroup()) { - break; + break } - var field = reader.getFieldNumber(); + var field = reader.getFieldNumber() switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setValidator(value); - break; - default: - reader.skipField(); - break; + case 1: + var value = /** @type {string} */ (reader.readString()) + msg.setValidator(value) + break + default: + reader.skipField() + break } } - return msg; -}; - + return msg +} /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.oracle.v1.MsgActivate.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.oracle.v1.MsgActivate.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.oracle.v1.MsgActivate.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter() + proto.oracle.v1.MsgActivate.serializeBinaryToWriter(this, writer) + return writer.getResultBuffer() +} /** * Serializes the given message to binary data (in protobuf wire @@ -3215,90 +3194,91 @@ proto.oracle.v1.MsgActivate.prototype.serializeBinary = function() { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.oracle.v1.MsgActivate.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getValidator(); +proto.oracle.v1.MsgActivate.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined + f = message.getValidator() if (f.length > 0) { - writer.writeString( - 1, - f - ); + writer.writeString(1, f) } -}; - +} /** * optional string validator = 1; * @return {string} */ -proto.oracle.v1.MsgActivate.prototype.getValidator = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - +proto.oracle.v1.MsgActivate.prototype.getValidator = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, '')) +} /** * @param {string} value * @return {!proto.oracle.v1.MsgActivate} returns this */ -proto.oracle.v1.MsgActivate.prototype.setValidator = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - +proto.oracle.v1.MsgActivate.prototype.setValidator = function (value) { + return jspb.Message.setProto3StringField(this, 1, value) +} if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.oracle.v1.MsgActivateResponse.prototype.toObject = function(opt_includeInstance) { - return proto.oracle.v1.MsgActivateResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.oracle.v1.MsgActivateResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.oracle.v1.MsgActivateResponse.toObject = function(includeInstance, msg) { - var f, obj = { - - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.oracle.v1.MsgActivateResponse.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.oracle.v1.MsgActivateResponse.toObject( + opt_includeInstance, + this, + ) + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.oracle.v1.MsgActivateResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.oracle.v1.MsgActivateResponse.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = {} + + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.oracle.v1.MsgActivateResponse} */ -proto.oracle.v1.MsgActivateResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.oracle.v1.MsgActivateResponse; - return proto.oracle.v1.MsgActivateResponse.deserializeBinaryFromReader(msg, reader); -}; - +proto.oracle.v1.MsgActivateResponse.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.oracle.v1.MsgActivateResponse() + return proto.oracle.v1.MsgActivateResponse.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -3307,32 +3287,33 @@ proto.oracle.v1.MsgActivateResponse.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.oracle.v1.MsgActivateResponse} */ -proto.oracle.v1.MsgActivateResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.oracle.v1.MsgActivateResponse.deserializeBinaryFromReader = function ( + msg, + reader, +) { while (reader.nextField()) { if (reader.isEndGroup()) { - break; + break } - var field = reader.getFieldNumber(); + var field = reader.getFieldNumber() switch (field) { - default: - reader.skipField(); - break; + default: + reader.skipField() + break } } - return msg; -}; - + return msg +} /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.oracle.v1.MsgActivateResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.oracle.v1.MsgActivateResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.oracle.v1.MsgActivateResponse.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter() + proto.oracle.v1.MsgActivateResponse.serializeBinaryToWriter(this, writer) + return writer.getResultBuffer() +} /** * Serializes the given message to binary data (in protobuf wire @@ -3341,66 +3322,70 @@ proto.oracle.v1.MsgActivateResponse.prototype.serializeBinary = function() { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.oracle.v1.MsgActivateResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - - - +proto.oracle.v1.MsgActivateResponse.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined +} if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.oracle.v1.MsgUpdateParams.prototype.toObject = function(opt_includeInstance) { - return proto.oracle.v1.MsgUpdateParams.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.oracle.v1.MsgUpdateParams} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.oracle.v1.MsgUpdateParams.toObject = function(includeInstance, msg) { - var f, obj = { - authority: jspb.Message.getFieldWithDefault(msg, 1, ""), - params: (f = msg.getParams()) && oracle_v1_oracle_pb.Params.toObject(includeInstance, f) - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.oracle.v1.MsgUpdateParams.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.oracle.v1.MsgUpdateParams.toObject(opt_includeInstance, this) + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.oracle.v1.MsgUpdateParams} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.oracle.v1.MsgUpdateParams.toObject = function (includeInstance, msg) { + var f, + obj = { + authority: jspb.Message.getFieldWithDefault(msg, 1, ''), + params: + (f = msg.getParams()) && + oracle_v1_oracle_pb.Params.toObject(includeInstance, f), + } + + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.oracle.v1.MsgUpdateParams} */ -proto.oracle.v1.MsgUpdateParams.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.oracle.v1.MsgUpdateParams; - return proto.oracle.v1.MsgUpdateParams.deserializeBinaryFromReader(msg, reader); -}; - +proto.oracle.v1.MsgUpdateParams.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.oracle.v1.MsgUpdateParams() + return proto.oracle.v1.MsgUpdateParams.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -3409,41 +3394,45 @@ proto.oracle.v1.MsgUpdateParams.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.oracle.v1.MsgUpdateParams} */ -proto.oracle.v1.MsgUpdateParams.deserializeBinaryFromReader = function(msg, reader) { +proto.oracle.v1.MsgUpdateParams.deserializeBinaryFromReader = function ( + msg, + reader, +) { while (reader.nextField()) { if (reader.isEndGroup()) { - break; + break } - var field = reader.getFieldNumber(); + var field = reader.getFieldNumber() switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setAuthority(value); - break; - case 2: - var value = new oracle_v1_oracle_pb.Params; - reader.readMessage(value,oracle_v1_oracle_pb.Params.deserializeBinaryFromReader); - msg.setParams(value); - break; - default: - reader.skipField(); - break; + case 1: + var value = /** @type {string} */ (reader.readString()) + msg.setAuthority(value) + break + case 2: + var value = new oracle_v1_oracle_pb.Params() + reader.readMessage( + value, + oracle_v1_oracle_pb.Params.deserializeBinaryFromReader, + ) + msg.setParams(value) + break + default: + reader.skipField() + break } } - return msg; -}; - + return msg +} /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.oracle.v1.MsgUpdateParams.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.oracle.v1.MsgUpdateParams.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.oracle.v1.MsgUpdateParams.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter() + proto.oracle.v1.MsgUpdateParams.serializeBinaryToWriter(this, writer) + return writer.getResultBuffer() +} /** * Serializes the given message to binary data (in protobuf wire @@ -3452,135 +3441,133 @@ proto.oracle.v1.MsgUpdateParams.prototype.serializeBinary = function() { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.oracle.v1.MsgUpdateParams.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getAuthority(); +proto.oracle.v1.MsgUpdateParams.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined + f = message.getAuthority() if (f.length > 0) { - writer.writeString( - 1, - f - ); + writer.writeString(1, f) } - f = message.getParams(); + f = message.getParams() if (f != null) { writer.writeMessage( 2, f, - oracle_v1_oracle_pb.Params.serializeBinaryToWriter - ); + oracle_v1_oracle_pb.Params.serializeBinaryToWriter, + ) } -}; - +} /** * optional string authority = 1; * @return {string} */ -proto.oracle.v1.MsgUpdateParams.prototype.getAuthority = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - +proto.oracle.v1.MsgUpdateParams.prototype.getAuthority = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, '')) +} /** * @param {string} value * @return {!proto.oracle.v1.MsgUpdateParams} returns this */ -proto.oracle.v1.MsgUpdateParams.prototype.setAuthority = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - +proto.oracle.v1.MsgUpdateParams.prototype.setAuthority = function (value) { + return jspb.Message.setProto3StringField(this, 1, value) +} /** * optional Params params = 2; * @return {?proto.oracle.v1.Params} */ -proto.oracle.v1.MsgUpdateParams.prototype.getParams = function() { +proto.oracle.v1.MsgUpdateParams.prototype.getParams = function () { return /** @type{?proto.oracle.v1.Params} */ ( - jspb.Message.getWrapperField(this, oracle_v1_oracle_pb.Params, 2)); -}; - + jspb.Message.getWrapperField(this, oracle_v1_oracle_pb.Params, 2) + ) +} /** * @param {?proto.oracle.v1.Params|undefined} value * @return {!proto.oracle.v1.MsgUpdateParams} returns this -*/ -proto.oracle.v1.MsgUpdateParams.prototype.setParams = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - + */ +proto.oracle.v1.MsgUpdateParams.prototype.setParams = function (value) { + return jspb.Message.setWrapperField(this, 2, value) +} /** * Clears the message field making it undefined. * @return {!proto.oracle.v1.MsgUpdateParams} returns this */ -proto.oracle.v1.MsgUpdateParams.prototype.clearParams = function() { - return this.setParams(undefined); -}; - +proto.oracle.v1.MsgUpdateParams.prototype.clearParams = function () { + return this.setParams(undefined) +} /** * Returns whether this field is set. * @return {boolean} */ -proto.oracle.v1.MsgUpdateParams.prototype.hasParams = function() { - return jspb.Message.getField(this, 2) != null; -}; - - - - +proto.oracle.v1.MsgUpdateParams.prototype.hasParams = function () { + return jspb.Message.getField(this, 2) != null +} if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.oracle.v1.MsgUpdateParamsResponse.prototype.toObject = function(opt_includeInstance) { - return proto.oracle.v1.MsgUpdateParamsResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.oracle.v1.MsgUpdateParamsResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.oracle.v1.MsgUpdateParamsResponse.toObject = function(includeInstance, msg) { - var f, obj = { - - }; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.oracle.v1.MsgUpdateParamsResponse.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.oracle.v1.MsgUpdateParamsResponse.toObject( + opt_includeInstance, + this, + ) + } - if (includeInstance) { - obj.$jspbMessageInstance = msg; + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.oracle.v1.MsgUpdateParamsResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.oracle.v1.MsgUpdateParamsResponse.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = {} + + if (includeInstance) { + obj.$jspbMessageInstance = msg + } + return obj } - return obj; -}; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.oracle.v1.MsgUpdateParamsResponse} */ -proto.oracle.v1.MsgUpdateParamsResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.oracle.v1.MsgUpdateParamsResponse; - return proto.oracle.v1.MsgUpdateParamsResponse.deserializeBinaryFromReader(msg, reader); -}; - +proto.oracle.v1.MsgUpdateParamsResponse.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes) + var msg = new proto.oracle.v1.MsgUpdateParamsResponse() + return proto.oracle.v1.MsgUpdateParamsResponse.deserializeBinaryFromReader( + msg, + reader, + ) +} /** * Deserializes binary data (in protobuf wire format) from the @@ -3589,32 +3576,37 @@ proto.oracle.v1.MsgUpdateParamsResponse.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.oracle.v1.MsgUpdateParamsResponse} */ -proto.oracle.v1.MsgUpdateParamsResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.oracle.v1.MsgUpdateParamsResponse.deserializeBinaryFromReader = function ( + msg, + reader, +) { while (reader.nextField()) { if (reader.isEndGroup()) { - break; + break } - var field = reader.getFieldNumber(); + var field = reader.getFieldNumber() switch (field) { - default: - reader.skipField(); - break; + default: + reader.skipField() + break } } - return msg; -}; - + return msg +} /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.oracle.v1.MsgUpdateParamsResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.oracle.v1.MsgUpdateParamsResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - +proto.oracle.v1.MsgUpdateParamsResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter() + proto.oracle.v1.MsgUpdateParamsResponse.serializeBinaryToWriter( + this, + writer, + ) + return writer.getResultBuffer() + } /** * Serializes the given message to binary data (in protobuf wire @@ -3623,9 +3615,11 @@ proto.oracle.v1.MsgUpdateParamsResponse.prototype.serializeBinary = function() { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.oracle.v1.MsgUpdateParamsResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - +proto.oracle.v1.MsgUpdateParamsResponse.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined +} -goog.object.extend(exports, proto.oracle.v1); +goog.object.extend(exports, proto.oracle.v1) diff --git a/proto/oracle/v1/tx_pb_service.d.ts b/proto/oracle/v1/tx_pb_service.d.ts index 8f03b7b..f839206 100644 --- a/proto/oracle/v1/tx_pb_service.d.ts +++ b/proto/oracle/v1/tx_pb_service.d.ts @@ -1,196 +1,256 @@ // package: oracle.v1 // file: oracle/v1/tx.proto -import * as oracle_v1_tx_pb from "../../oracle/v1/tx_pb"; -import {grpc} from "@improbable-eng/grpc-web"; +import * as oracle_v1_tx_pb from '../../oracle/v1/tx_pb' +import { grpc } from '@improbable-eng/grpc-web' type MsgRequestData = { - readonly methodName: string; - readonly service: typeof Msg; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof oracle_v1_tx_pb.MsgRequestData; - readonly responseType: typeof oracle_v1_tx_pb.MsgRequestDataResponse; -}; + readonly methodName: string + readonly service: typeof Msg + readonly requestStream: false + readonly responseStream: false + readonly requestType: typeof oracle_v1_tx_pb.MsgRequestData + readonly responseType: typeof oracle_v1_tx_pb.MsgRequestDataResponse +} type MsgReportData = { - readonly methodName: string; - readonly service: typeof Msg; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof oracle_v1_tx_pb.MsgReportData; - readonly responseType: typeof oracle_v1_tx_pb.MsgReportDataResponse; -}; + readonly methodName: string + readonly service: typeof Msg + readonly requestStream: false + readonly responseStream: false + readonly requestType: typeof oracle_v1_tx_pb.MsgReportData + readonly responseType: typeof oracle_v1_tx_pb.MsgReportDataResponse +} type MsgCreateDataSource = { - readonly methodName: string; - readonly service: typeof Msg; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof oracle_v1_tx_pb.MsgCreateDataSource; - readonly responseType: typeof oracle_v1_tx_pb.MsgCreateDataSourceResponse; -}; + readonly methodName: string + readonly service: typeof Msg + readonly requestStream: false + readonly responseStream: false + readonly requestType: typeof oracle_v1_tx_pb.MsgCreateDataSource + readonly responseType: typeof oracle_v1_tx_pb.MsgCreateDataSourceResponse +} type MsgEditDataSource = { - readonly methodName: string; - readonly service: typeof Msg; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof oracle_v1_tx_pb.MsgEditDataSource; - readonly responseType: typeof oracle_v1_tx_pb.MsgEditDataSourceResponse; -}; + readonly methodName: string + readonly service: typeof Msg + readonly requestStream: false + readonly responseStream: false + readonly requestType: typeof oracle_v1_tx_pb.MsgEditDataSource + readonly responseType: typeof oracle_v1_tx_pb.MsgEditDataSourceResponse +} type MsgCreateOracleScript = { - readonly methodName: string; - readonly service: typeof Msg; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof oracle_v1_tx_pb.MsgCreateOracleScript; - readonly responseType: typeof oracle_v1_tx_pb.MsgCreateOracleScriptResponse; -}; + readonly methodName: string + readonly service: typeof Msg + readonly requestStream: false + readonly responseStream: false + readonly requestType: typeof oracle_v1_tx_pb.MsgCreateOracleScript + readonly responseType: typeof oracle_v1_tx_pb.MsgCreateOracleScriptResponse +} type MsgEditOracleScript = { - readonly methodName: string; - readonly service: typeof Msg; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof oracle_v1_tx_pb.MsgEditOracleScript; - readonly responseType: typeof oracle_v1_tx_pb.MsgEditOracleScriptResponse; -}; + readonly methodName: string + readonly service: typeof Msg + readonly requestStream: false + readonly responseStream: false + readonly requestType: typeof oracle_v1_tx_pb.MsgEditOracleScript + readonly responseType: typeof oracle_v1_tx_pb.MsgEditOracleScriptResponse +} type MsgActivate = { - readonly methodName: string; - readonly service: typeof Msg; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof oracle_v1_tx_pb.MsgActivate; - readonly responseType: typeof oracle_v1_tx_pb.MsgActivateResponse; -}; + readonly methodName: string + readonly service: typeof Msg + readonly requestStream: false + readonly responseStream: false + readonly requestType: typeof oracle_v1_tx_pb.MsgActivate + readonly responseType: typeof oracle_v1_tx_pb.MsgActivateResponse +} type MsgUpdateParams = { - readonly methodName: string; - readonly service: typeof Msg; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof oracle_v1_tx_pb.MsgUpdateParams; - readonly responseType: typeof oracle_v1_tx_pb.MsgUpdateParamsResponse; -}; + readonly methodName: string + readonly service: typeof Msg + readonly requestStream: false + readonly responseStream: false + readonly requestType: typeof oracle_v1_tx_pb.MsgUpdateParams + readonly responseType: typeof oracle_v1_tx_pb.MsgUpdateParamsResponse +} export class Msg { - static readonly serviceName: string; - static readonly RequestData: MsgRequestData; - static readonly ReportData: MsgReportData; - static readonly CreateDataSource: MsgCreateDataSource; - static readonly EditDataSource: MsgEditDataSource; - static readonly CreateOracleScript: MsgCreateOracleScript; - static readonly EditOracleScript: MsgEditOracleScript; - static readonly Activate: MsgActivate; - static readonly UpdateParams: MsgUpdateParams; + static readonly serviceName: string + static readonly RequestData: MsgRequestData + static readonly ReportData: MsgReportData + static readonly CreateDataSource: MsgCreateDataSource + static readonly EditDataSource: MsgEditDataSource + static readonly CreateOracleScript: MsgCreateOracleScript + static readonly EditOracleScript: MsgEditOracleScript + static readonly Activate: MsgActivate + static readonly UpdateParams: MsgUpdateParams } -export type ServiceError = { message: string, code: number; metadata: grpc.Metadata } -export type Status = { details: string, code: number; metadata: grpc.Metadata } +export type ServiceError = { + message: string + code: number + metadata: grpc.Metadata +} +export type Status = { details: string; code: number; metadata: grpc.Metadata } interface UnaryResponse { - cancel(): void; + cancel(): void } interface ResponseStream { - cancel(): void; - on(type: 'data', handler: (message: T) => void): ResponseStream; - on(type: 'end', handler: (status?: Status) => void): ResponseStream; - on(type: 'status', handler: (status: Status) => void): ResponseStream; + cancel(): void + on(type: 'data', handler: (message: T) => void): ResponseStream + on(type: 'end', handler: (status?: Status) => void): ResponseStream + on(type: 'status', handler: (status: Status) => void): ResponseStream } interface RequestStream { - write(message: T): RequestStream; - end(): void; - cancel(): void; - on(type: 'end', handler: (status?: Status) => void): RequestStream; - on(type: 'status', handler: (status: Status) => void): RequestStream; + write(message: T): RequestStream + end(): void + cancel(): void + on(type: 'end', handler: (status?: Status) => void): RequestStream + on(type: 'status', handler: (status: Status) => void): RequestStream } interface BidirectionalStream { - write(message: ReqT): BidirectionalStream; - end(): void; - cancel(): void; - on(type: 'data', handler: (message: ResT) => void): BidirectionalStream; - on(type: 'end', handler: (status?: Status) => void): BidirectionalStream; - on(type: 'status', handler: (status: Status) => void): BidirectionalStream; + write(message: ReqT): BidirectionalStream + end(): void + cancel(): void + on( + type: 'data', + handler: (message: ResT) => void, + ): BidirectionalStream + on( + type: 'end', + handler: (status?: Status) => void, + ): BidirectionalStream + on( + type: 'status', + handler: (status: Status) => void, + ): BidirectionalStream } export class MsgClient { - readonly serviceHost: string; + readonly serviceHost: string - constructor(serviceHost: string, options?: grpc.RpcOptions); + constructor(serviceHost: string, options?: grpc.RpcOptions) requestData( requestMessage: oracle_v1_tx_pb.MsgRequestData, metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: oracle_v1_tx_pb.MsgRequestDataResponse|null) => void - ): UnaryResponse; + callback: ( + error: ServiceError | null, + responseMessage: oracle_v1_tx_pb.MsgRequestDataResponse | null, + ) => void, + ): UnaryResponse requestData( requestMessage: oracle_v1_tx_pb.MsgRequestData, - callback: (error: ServiceError|null, responseMessage: oracle_v1_tx_pb.MsgRequestDataResponse|null) => void - ): UnaryResponse; + callback: ( + error: ServiceError | null, + responseMessage: oracle_v1_tx_pb.MsgRequestDataResponse | null, + ) => void, + ): UnaryResponse reportData( requestMessage: oracle_v1_tx_pb.MsgReportData, metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: oracle_v1_tx_pb.MsgReportDataResponse|null) => void - ): UnaryResponse; + callback: ( + error: ServiceError | null, + responseMessage: oracle_v1_tx_pb.MsgReportDataResponse | null, + ) => void, + ): UnaryResponse reportData( requestMessage: oracle_v1_tx_pb.MsgReportData, - callback: (error: ServiceError|null, responseMessage: oracle_v1_tx_pb.MsgReportDataResponse|null) => void - ): UnaryResponse; + callback: ( + error: ServiceError | null, + responseMessage: oracle_v1_tx_pb.MsgReportDataResponse | null, + ) => void, + ): UnaryResponse createDataSource( requestMessage: oracle_v1_tx_pb.MsgCreateDataSource, metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: oracle_v1_tx_pb.MsgCreateDataSourceResponse|null) => void - ): UnaryResponse; + callback: ( + error: ServiceError | null, + responseMessage: oracle_v1_tx_pb.MsgCreateDataSourceResponse | null, + ) => void, + ): UnaryResponse createDataSource( requestMessage: oracle_v1_tx_pb.MsgCreateDataSource, - callback: (error: ServiceError|null, responseMessage: oracle_v1_tx_pb.MsgCreateDataSourceResponse|null) => void - ): UnaryResponse; + callback: ( + error: ServiceError | null, + responseMessage: oracle_v1_tx_pb.MsgCreateDataSourceResponse | null, + ) => void, + ): UnaryResponse editDataSource( requestMessage: oracle_v1_tx_pb.MsgEditDataSource, metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: oracle_v1_tx_pb.MsgEditDataSourceResponse|null) => void - ): UnaryResponse; + callback: ( + error: ServiceError | null, + responseMessage: oracle_v1_tx_pb.MsgEditDataSourceResponse | null, + ) => void, + ): UnaryResponse editDataSource( requestMessage: oracle_v1_tx_pb.MsgEditDataSource, - callback: (error: ServiceError|null, responseMessage: oracle_v1_tx_pb.MsgEditDataSourceResponse|null) => void - ): UnaryResponse; + callback: ( + error: ServiceError | null, + responseMessage: oracle_v1_tx_pb.MsgEditDataSourceResponse | null, + ) => void, + ): UnaryResponse createOracleScript( requestMessage: oracle_v1_tx_pb.MsgCreateOracleScript, metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: oracle_v1_tx_pb.MsgCreateOracleScriptResponse|null) => void - ): UnaryResponse; + callback: ( + error: ServiceError | null, + responseMessage: oracle_v1_tx_pb.MsgCreateOracleScriptResponse | null, + ) => void, + ): UnaryResponse createOracleScript( requestMessage: oracle_v1_tx_pb.MsgCreateOracleScript, - callback: (error: ServiceError|null, responseMessage: oracle_v1_tx_pb.MsgCreateOracleScriptResponse|null) => void - ): UnaryResponse; + callback: ( + error: ServiceError | null, + responseMessage: oracle_v1_tx_pb.MsgCreateOracleScriptResponse | null, + ) => void, + ): UnaryResponse editOracleScript( requestMessage: oracle_v1_tx_pb.MsgEditOracleScript, metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: oracle_v1_tx_pb.MsgEditOracleScriptResponse|null) => void - ): UnaryResponse; + callback: ( + error: ServiceError | null, + responseMessage: oracle_v1_tx_pb.MsgEditOracleScriptResponse | null, + ) => void, + ): UnaryResponse editOracleScript( requestMessage: oracle_v1_tx_pb.MsgEditOracleScript, - callback: (error: ServiceError|null, responseMessage: oracle_v1_tx_pb.MsgEditOracleScriptResponse|null) => void - ): UnaryResponse; + callback: ( + error: ServiceError | null, + responseMessage: oracle_v1_tx_pb.MsgEditOracleScriptResponse | null, + ) => void, + ): UnaryResponse activate( requestMessage: oracle_v1_tx_pb.MsgActivate, metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: oracle_v1_tx_pb.MsgActivateResponse|null) => void - ): UnaryResponse; + callback: ( + error: ServiceError | null, + responseMessage: oracle_v1_tx_pb.MsgActivateResponse | null, + ) => void, + ): UnaryResponse activate( requestMessage: oracle_v1_tx_pb.MsgActivate, - callback: (error: ServiceError|null, responseMessage: oracle_v1_tx_pb.MsgActivateResponse|null) => void - ): UnaryResponse; + callback: ( + error: ServiceError | null, + responseMessage: oracle_v1_tx_pb.MsgActivateResponse | null, + ) => void, + ): UnaryResponse updateParams( requestMessage: oracle_v1_tx_pb.MsgUpdateParams, metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: oracle_v1_tx_pb.MsgUpdateParamsResponse|null) => void - ): UnaryResponse; + callback: ( + error: ServiceError | null, + responseMessage: oracle_v1_tx_pb.MsgUpdateParamsResponse | null, + ) => void, + ): UnaryResponse updateParams( requestMessage: oracle_v1_tx_pb.MsgUpdateParams, - callback: (error: ServiceError|null, responseMessage: oracle_v1_tx_pb.MsgUpdateParamsResponse|null) => void - ): UnaryResponse; + callback: ( + error: ServiceError | null, + responseMessage: oracle_v1_tx_pb.MsgUpdateParamsResponse | null, + ) => void, + ): UnaryResponse } - diff --git a/proto/oracle/v1/tx_pb_service.js b/proto/oracle/v1/tx_pb_service.js index aea6877..ea2f174 100644 --- a/proto/oracle/v1/tx_pb_service.js +++ b/proto/oracle/v1/tx_pb_service.js @@ -1,97 +1,101 @@ // package: oracle.v1 // file: oracle/v1/tx.proto -var oracle_v1_tx_pb = require("../../oracle/v1/tx_pb"); -var grpc = require("@improbable-eng/grpc-web").grpc; +var oracle_v1_tx_pb = require('../../oracle/v1/tx_pb') +var grpc = require('@improbable-eng/grpc-web').grpc var Msg = (function () { function Msg() {} - Msg.serviceName = "oracle.v1.Msg"; - return Msg; -}()); + Msg.serviceName = 'oracle.v1.Msg' + return Msg +})() Msg.RequestData = { - methodName: "RequestData", + methodName: 'RequestData', service: Msg, requestStream: false, responseStream: false, requestType: oracle_v1_tx_pb.MsgRequestData, - responseType: oracle_v1_tx_pb.MsgRequestDataResponse -}; + responseType: oracle_v1_tx_pb.MsgRequestDataResponse, +} Msg.ReportData = { - methodName: "ReportData", + methodName: 'ReportData', service: Msg, requestStream: false, responseStream: false, requestType: oracle_v1_tx_pb.MsgReportData, - responseType: oracle_v1_tx_pb.MsgReportDataResponse -}; + responseType: oracle_v1_tx_pb.MsgReportDataResponse, +} Msg.CreateDataSource = { - methodName: "CreateDataSource", + methodName: 'CreateDataSource', service: Msg, requestStream: false, responseStream: false, requestType: oracle_v1_tx_pb.MsgCreateDataSource, - responseType: oracle_v1_tx_pb.MsgCreateDataSourceResponse -}; + responseType: oracle_v1_tx_pb.MsgCreateDataSourceResponse, +} Msg.EditDataSource = { - methodName: "EditDataSource", + methodName: 'EditDataSource', service: Msg, requestStream: false, responseStream: false, requestType: oracle_v1_tx_pb.MsgEditDataSource, - responseType: oracle_v1_tx_pb.MsgEditDataSourceResponse -}; + responseType: oracle_v1_tx_pb.MsgEditDataSourceResponse, +} Msg.CreateOracleScript = { - methodName: "CreateOracleScript", + methodName: 'CreateOracleScript', service: Msg, requestStream: false, responseStream: false, requestType: oracle_v1_tx_pb.MsgCreateOracleScript, - responseType: oracle_v1_tx_pb.MsgCreateOracleScriptResponse -}; + responseType: oracle_v1_tx_pb.MsgCreateOracleScriptResponse, +} Msg.EditOracleScript = { - methodName: "EditOracleScript", + methodName: 'EditOracleScript', service: Msg, requestStream: false, responseStream: false, requestType: oracle_v1_tx_pb.MsgEditOracleScript, - responseType: oracle_v1_tx_pb.MsgEditOracleScriptResponse -}; + responseType: oracle_v1_tx_pb.MsgEditOracleScriptResponse, +} Msg.Activate = { - methodName: "Activate", + methodName: 'Activate', service: Msg, requestStream: false, responseStream: false, requestType: oracle_v1_tx_pb.MsgActivate, - responseType: oracle_v1_tx_pb.MsgActivateResponse -}; + responseType: oracle_v1_tx_pb.MsgActivateResponse, +} Msg.UpdateParams = { - methodName: "UpdateParams", + methodName: 'UpdateParams', service: Msg, requestStream: false, responseStream: false, requestType: oracle_v1_tx_pb.MsgUpdateParams, - responseType: oracle_v1_tx_pb.MsgUpdateParamsResponse -}; + responseType: oracle_v1_tx_pb.MsgUpdateParamsResponse, +} -exports.Msg = Msg; +exports.Msg = Msg function MsgClient(serviceHost, options) { - this.serviceHost = serviceHost; - this.options = options || {}; + this.serviceHost = serviceHost + this.options = options || {} } -MsgClient.prototype.requestData = function requestData(requestMessage, metadata, callback) { +MsgClient.prototype.requestData = function requestData( + requestMessage, + metadata, + callback, +) { if (arguments.length === 2) { - callback = arguments[1]; + callback = arguments[1] } var client = grpc.unary(Msg.RequestData, { request: requestMessage, @@ -102,27 +106,31 @@ MsgClient.prototype.requestData = function requestData(requestMessage, metadata, onEnd: function (response) { if (callback) { if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); + var err = new Error(response.statusMessage) + err.code = response.status + err.metadata = response.trailers + callback(err, null) } else { - callback(null, response.message); + callback(null, response.message) } } - } - }); + }, + }) return { cancel: function () { - callback = null; - client.close(); - } - }; -}; + callback = null + client.close() + }, + } +} -MsgClient.prototype.reportData = function reportData(requestMessage, metadata, callback) { +MsgClient.prototype.reportData = function reportData( + requestMessage, + metadata, + callback, +) { if (arguments.length === 2) { - callback = arguments[1]; + callback = arguments[1] } var client = grpc.unary(Msg.ReportData, { request: requestMessage, @@ -133,27 +141,31 @@ MsgClient.prototype.reportData = function reportData(requestMessage, metadata, c onEnd: function (response) { if (callback) { if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); + var err = new Error(response.statusMessage) + err.code = response.status + err.metadata = response.trailers + callback(err, null) } else { - callback(null, response.message); + callback(null, response.message) } } - } - }); + }, + }) return { cancel: function () { - callback = null; - client.close(); - } - }; -}; + callback = null + client.close() + }, + } +} -MsgClient.prototype.createDataSource = function createDataSource(requestMessage, metadata, callback) { +MsgClient.prototype.createDataSource = function createDataSource( + requestMessage, + metadata, + callback, +) { if (arguments.length === 2) { - callback = arguments[1]; + callback = arguments[1] } var client = grpc.unary(Msg.CreateDataSource, { request: requestMessage, @@ -164,27 +176,31 @@ MsgClient.prototype.createDataSource = function createDataSource(requestMessage, onEnd: function (response) { if (callback) { if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); + var err = new Error(response.statusMessage) + err.code = response.status + err.metadata = response.trailers + callback(err, null) } else { - callback(null, response.message); + callback(null, response.message) } } - } - }); + }, + }) return { cancel: function () { - callback = null; - client.close(); - } - }; -}; + callback = null + client.close() + }, + } +} -MsgClient.prototype.editDataSource = function editDataSource(requestMessage, metadata, callback) { +MsgClient.prototype.editDataSource = function editDataSource( + requestMessage, + metadata, + callback, +) { if (arguments.length === 2) { - callback = arguments[1]; + callback = arguments[1] } var client = grpc.unary(Msg.EditDataSource, { request: requestMessage, @@ -195,27 +211,31 @@ MsgClient.prototype.editDataSource = function editDataSource(requestMessage, met onEnd: function (response) { if (callback) { if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); + var err = new Error(response.statusMessage) + err.code = response.status + err.metadata = response.trailers + callback(err, null) } else { - callback(null, response.message); + callback(null, response.message) } } - } - }); + }, + }) return { cancel: function () { - callback = null; - client.close(); - } - }; -}; + callback = null + client.close() + }, + } +} -MsgClient.prototype.createOracleScript = function createOracleScript(requestMessage, metadata, callback) { +MsgClient.prototype.createOracleScript = function createOracleScript( + requestMessage, + metadata, + callback, +) { if (arguments.length === 2) { - callback = arguments[1]; + callback = arguments[1] } var client = grpc.unary(Msg.CreateOracleScript, { request: requestMessage, @@ -226,27 +246,31 @@ MsgClient.prototype.createOracleScript = function createOracleScript(requestMess onEnd: function (response) { if (callback) { if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); + var err = new Error(response.statusMessage) + err.code = response.status + err.metadata = response.trailers + callback(err, null) } else { - callback(null, response.message); + callback(null, response.message) } } - } - }); + }, + }) return { cancel: function () { - callback = null; - client.close(); - } - }; -}; + callback = null + client.close() + }, + } +} -MsgClient.prototype.editOracleScript = function editOracleScript(requestMessage, metadata, callback) { +MsgClient.prototype.editOracleScript = function editOracleScript( + requestMessage, + metadata, + callback, +) { if (arguments.length === 2) { - callback = arguments[1]; + callback = arguments[1] } var client = grpc.unary(Msg.EditOracleScript, { request: requestMessage, @@ -257,27 +281,31 @@ MsgClient.prototype.editOracleScript = function editOracleScript(requestMessage, onEnd: function (response) { if (callback) { if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); + var err = new Error(response.statusMessage) + err.code = response.status + err.metadata = response.trailers + callback(err, null) } else { - callback(null, response.message); + callback(null, response.message) } } - } - }); + }, + }) return { cancel: function () { - callback = null; - client.close(); - } - }; -}; + callback = null + client.close() + }, + } +} -MsgClient.prototype.activate = function activate(requestMessage, metadata, callback) { +MsgClient.prototype.activate = function activate( + requestMessage, + metadata, + callback, +) { if (arguments.length === 2) { - callback = arguments[1]; + callback = arguments[1] } var client = grpc.unary(Msg.Activate, { request: requestMessage, @@ -288,27 +316,31 @@ MsgClient.prototype.activate = function activate(requestMessage, metadata, callb onEnd: function (response) { if (callback) { if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); + var err = new Error(response.statusMessage) + err.code = response.status + err.metadata = response.trailers + callback(err, null) } else { - callback(null, response.message); + callback(null, response.message) } } - } - }); + }, + }) return { cancel: function () { - callback = null; - client.close(); - } - }; -}; + callback = null + client.close() + }, + } +} -MsgClient.prototype.updateParams = function updateParams(requestMessage, metadata, callback) { +MsgClient.prototype.updateParams = function updateParams( + requestMessage, + metadata, + callback, +) { if (arguments.length === 2) { - callback = arguments[1]; + callback = arguments[1] } var client = grpc.unary(Msg.UpdateParams, { request: requestMessage, @@ -319,23 +351,22 @@ MsgClient.prototype.updateParams = function updateParams(requestMessage, metadat onEnd: function (response) { if (callback) { if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); + var err = new Error(response.statusMessage) + err.code = response.status + err.metadata = response.trailers + callback(err, null) } else { - callback(null, response.message); + callback(null, response.message) } } - } - }); + }, + }) return { cancel: function () { - callback = null; - client.close(); - } - }; -}; - -exports.MsgClient = MsgClient; + callback = null + client.close() + }, + } +} +exports.MsgClient = MsgClient diff --git a/src/message.ts b/src/message.ts index 5487efe..f3f7571 100644 --- a/src/message.ts +++ b/src/message.ts @@ -82,7 +82,6 @@ export class MsgRequestData extends MsgRequestDataProto implements BaseMsg { feeLimitList: Coin[] = [], prepareGas: number = 50000, executeGas: number = 300000, - tssGroupId: number = 0, ) { super() this.setOracleScriptId(oracleScriptId) @@ -94,7 +93,6 @@ export class MsgRequestData extends MsgRequestDataProto implements BaseMsg { this.setPrepareGas(prepareGas) this.setExecuteGas(executeGas) this.setSender(sender) - this.setTssGroupId(tssGroupId) } toAny(): Any { @@ -119,7 +117,6 @@ export class MsgRequestData extends MsgRequestDataProto implements BaseMsg { fee_limit: this.getFeeLimitList().map((coin) => coin.toObject()), prepare_gas: this.getPrepareGas().toString(), execute_gas: this.getExecuteGas().toString(), - tss_group_id: this.getTssGroupId().toString(), }, } }