From c4add13d6f539ce6a24efc021e8277742559f05d Mon Sep 17 00:00:00 2001 From: babybunn Date: Mon, 18 Sep 2023 12:55:10 +0700 Subject: [PATCH 1/7] add MsgVoteGroup --- package.json | 2 +- src/message.ts | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 67 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index fa0058f..11ef1ac 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@bandprotocol/bandchain.js", - "version": "2.2.1", + "version": "2.3.0", "description": "Library for interacting with BandChain in browser and Node.js environments", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/src/message.ts b/src/message.ts index 9571ca2..82a9893 100644 --- a/src/message.ts +++ b/src/message.ts @@ -18,6 +18,18 @@ import { VoteOption, VoteOptionMap, } from '../proto/cosmos/gov/v1beta1/gov_pb' + +import { + MsgVote as MsgVoteGroupProto, + Exec as GroupExec, + ExecMap as GroupExecMap, +} from '../proto/cosmos/group/v1/tx_pb' + +import { + VoteOption as VoteOptionGroup, + VoteOptionMap as VoteOptionGroupMap, +} from '../proto/cosmos/group/v1/types_pb' + import { MsgBeginRedelegate as MsgBeginRedelegateProto, MsgDelegate as MsgDelegateProto, @@ -904,3 +916,57 @@ export class MsgDeposit extends MsgDepositProto implements BaseMsg { } } } + +export class MsgVoteGroup extends MsgVoteGroupProto implements BaseMsg { + constructor( + proposalId: number, + voter: string, + option: VoteOptionGroupMap[keyof VoteOptionGroupMap], + metadata: string, + exec: GroupExecMap[keyof GroupExecMap], + ) { + super() + this.setProposalId(proposalId) + this.setVoter(voter) + this.setOption(option) + this.setMetadata(metadata) + this.setExec(exec) + } + + toAny(): Any { + this.validate() + + const anyMsg = new Any() + const name = 'cosmos.group.v1.MsgVote' + anyMsg.pack(this.serializeBinary(), name, '/') + return anyMsg + } + + toJSON(): object { + return { + type: 'cosmos-sdk/group/MsgVote', + value: { + proposal_id: this.getProposalId().toString(), + voter: this.getVoter(), + option: this.getOption(), + metadata: this.getMetadata(), + exec: this.getExec(), + }, + } + } + + validate() { + if (this.getProposalId() <= 0) { + throw new NegativeIntegerError('proposalId cannot be less than zero') + } + if (this.getVoter() === '') { + throw new ValueError('Address should not be an empty string') + } + if (this.getOption() === VoteOptionGroup.VOTE_OPTION_UNSPECIFIED) { + throw new ValueError('VoteOption should not be VOTE_OPTION_UNSPECIFIED') + } + if (this.getMetadata() === '') { + throw new ValueError('metadata should not be an empty string') + } + } +} From 6051a14c720e64d3a9e0cd29f58b0bb5e23034f9 Mon Sep 17 00:00:00 2001 From: babybunn Date: Mon, 18 Sep 2023 12:56:11 +0700 Subject: [PATCH 2/7] remove unused import --- src/message.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/message.ts b/src/message.ts index 82a9893..db8d1ee 100644 --- a/src/message.ts +++ b/src/message.ts @@ -21,7 +21,6 @@ import { import { MsgVote as MsgVoteGroupProto, - Exec as GroupExec, ExecMap as GroupExecMap, } from '../proto/cosmos/group/v1/tx_pb' From ef4a9667be7884437f5d84b1a4e1e234ad8f1f18 Mon Sep 17 00:00:00 2001 From: babybunn Date: Tue, 3 Oct 2023 18:34:07 +0700 Subject: [PATCH 3/7] feat: add group id MsgRequestData --- __tests__/client/client.test.ts | 7 + __tests__/transaction.test.ts | 2 +- proto/oracle/v1/genesis_pb.js | 2 +- proto/oracle/v1/oracle_pb.d.ts | 71 +++- proto/oracle/v1/oracle_pb.js | 549 ++++++++++++++++++++++++++++- proto/oracle/v1/query_pb.d.ts | 21 +- proto/oracle/v1/query_pb.js | 179 ++++++++-- proto/oracle/v1/tx_pb.d.ts | 51 ++- proto/oracle/v1/tx_pb.js | 370 ++++++++++++++++++- proto/oracle/v1/tx_pb_service.d.ts | 19 + proto/oracle/v1/tx_pb_service.js | 40 +++ src/message.ts | 3 + 12 files changed, 1271 insertions(+), 43 deletions(-) diff --git a/__tests__/client/client.test.ts b/__tests__/client/client.test.ts index 05575cb..63b2602 100644 --- a/__tests__/client/client.test.ts +++ b/__tests__/client/client.test.ts @@ -849,6 +849,9 @@ describe('get latest request', () => { 'bandvaloper1e9sa38742tzhmandc4gkqve9zy8zc0yremaa3j', 'bandvaloper1l2hchtyawk9tk43zzjrzr2lcd0zyxngcjdsshe', ]) + request.setTssGroupId(0) + request.setFeeLimitList([]) + request.setRequester("") request.setMinCount(3) request.setRequestHeight(431790) request.setRequestTime(1625547173) @@ -950,6 +953,10 @@ 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 2451990..1663b17 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"}}],"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\",\"tss_group_id\":\"0\"}}],\"sequence\":\"100\"}`, ) }) diff --git a/proto/oracle/v1/genesis_pb.js b/proto/oracle/v1/genesis_pb.js index d2e0925..f0b868a 100644 --- a/proto/oracle/v1/genesis_pb.js +++ b/proto/oracle/v1/genesis_pb.js @@ -13,7 +13,7 @@ var jspb = require('google-protobuf'); var goog = jspb; -var global = Function('return this')(); +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); diff --git a/proto/oracle/v1/oracle_pb.d.ts b/proto/oracle/v1/oracle_pb.d.ts index 24a14fe..1133527 100644 --- a/proto/oracle/v1/oracle_pb.d.ts +++ b/proto/oracle/v1/oracle_pb.d.ts @@ -4,7 +4,6 @@ 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 google_protobuf_any_pb from "google-protobuf/google/protobuf/any_pb"; import * as cosmos_base_v1beta1_coin_pb from "../../cosmos/base/v1beta1/coin_pb"; export class DataSource extends jspb.Message { @@ -188,6 +187,17 @@ export class Request extends jspb.Message { 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; @@ -210,6 +220,9 @@ export namespace Request { rawRequestsList: Array, ibcChannel?: IBCChannel.AsObject, executeGas: number, + tssGroupId: number, + requester: string, + feeLimitList: Array, } } @@ -272,6 +285,9 @@ export class OracleRequestPacketData extends jspb.Message { 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; @@ -292,6 +308,7 @@ export namespace OracleRequestPacketData { feeLimitList: Array, prepareGas: number, executeGas: number, + tssGroupId: number, } } @@ -425,6 +442,34 @@ export namespace 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 type AsObject = { + signingId: number, + errorCodespace: string, + errorCode: number, + } +} + export class ValidatorStatus extends jspb.Message { getIsActive(): boolean; setIsActive(value: boolean): void; @@ -594,6 +639,9 @@ export class RequestVerification extends jspb.Message { 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; @@ -610,6 +658,7 @@ export namespace RequestVerification { validator: string, requestId: number, externalId: number, + dataSourceId: number, } } @@ -649,6 +698,26 @@ export namespace 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 type AsObject = { + requestId: number, + } +} + export interface ResolveStatusMap { RESOLVE_STATUS_OPEN_UNSPECIFIED: 0; RESOLVE_STATUS_SUCCESS: 1; diff --git a/proto/oracle/v1/oracle_pb.js b/proto/oracle/v1/oracle_pb.js index 084c381..7933a3b 100644 --- a/proto/oracle/v1/oracle_pb.js +++ b/proto/oracle/v1/oracle_pb.js @@ -13,14 +13,12 @@ var jspb = require('google-protobuf'); var goog = jspb; -var global = Function('return this')(); +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 google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js'); -goog.object.extend(proto, google_protobuf_any_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); @@ -29,6 +27,7 @@ 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); @@ -40,6 +39,7 @@ 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); /** * Generated by JsPbCodeGenerator. @@ -251,6 +251,27 @@ if (goog.DEBUG && !COMPILED) { */ proto.oracle.v1.Result.displayName = 'proto.oracle.v1.Result'; } +/** + * 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.SigningResult = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.oracle.v1.SigningResult, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.oracle.v1.SigningResult.displayName = 'proto.oracle.v1.SigningResult'; +} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -398,6 +419,27 @@ if (goog.DEBUG && !COMPILED) { */ proto.oracle.v1.PriceResult.displayName = 'proto.oracle.v1.PriceResult'; } +/** + * 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.OracleResultRequestingSignature = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.oracle.v1.OracleResultRequestingSignature, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.oracle.v1.OracleResultRequestingSignature.displayName = 'proto.oracle.v1.OracleResultRequestingSignature'; +} /** * List of repeated fields within this message type. @@ -1422,7 +1464,7 @@ proto.oracle.v1.RawReport.prototype.setData = function(value) { * @private {!Array} * @const */ -proto.oracle.v1.Request.repeatedFields_ = [3,8]; +proto.oracle.v1.Request.repeatedFields_ = [3,8,13]; @@ -1465,7 +1507,11 @@ proto.oracle.v1.Request.toObject = function(includeInstance, msg) { 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) + 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) }; if (includeInstance) { @@ -1544,6 +1590,19 @@ proto.oracle.v1.Request.deserializeBinaryFromReader = function(msg, reader) { 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; @@ -1645,6 +1704,28 @@ proto.oracle.v1.Request.serializeBinaryToWriter = function(message, writer) { 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 + ); + } }; @@ -1910,6 +1991,80 @@ proto.oracle.v1.Request.prototype.setExecuteGas = function(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)); +}; + + +/** + * @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([]); +}; + + /** * List of repeated fields within this message type. @@ -2177,7 +2332,8 @@ proto.oracle.v1.OracleRequestPacketData.toObject = function(includeInstance, msg 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) + executeGas: jspb.Message.getFieldWithDefault(msg, 8, 0), + tssGroupId: jspb.Message.getFieldWithDefault(msg, 9, 0) }; if (includeInstance) { @@ -2247,6 +2403,10 @@ proto.oracle.v1.OracleRequestPacketData.deserializeBinaryFromReader = function(m 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; @@ -2333,6 +2493,13 @@ proto.oracle.v1.OracleRequestPacketData.serializeBinaryToWriter = function(messa f ); } + f = message.getTssGroupId(); + if (f !== 0) { + writer.writeUint64( + 9, + f + ); + } }; @@ -2524,6 +2691,24 @@ proto.oracle.v1.OracleRequestPacketData.prototype.setExecuteGas = function(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)); +}; + + +/** + * @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); +}; + + @@ -3469,6 +3654,196 @@ proto.oracle.v1.Result.prototype.setResult = function(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; + } + 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); +}; + + +/** + * 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; + } + } + 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. @@ -4590,7 +4965,8 @@ proto.oracle.v1.RequestVerification.toObject = function(includeInstance, msg) { 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) + externalId: jspb.Message.getFieldWithDefault(msg, 4, 0), + dataSourceId: jspb.Message.getFieldWithDefault(msg, 5, 0) }; if (includeInstance) { @@ -4643,6 +5019,10 @@ proto.oracle.v1.RequestVerification.deserializeBinaryFromReader = function(msg, 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; @@ -4700,6 +5080,13 @@ proto.oracle.v1.RequestVerification.serializeBinaryToWriter = function(message, f ); } + f = message.getDataSourceId(); + if (f !== 0) { + writer.writeUint64( + 5, + f + ); + } }; @@ -4775,6 +5162,24 @@ proto.oracle.v1.RequestVerification.prototype.setExternalId = function(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)); +}; + + +/** + * @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); +}; + + @@ -5025,6 +5430,136 @@ proto.oracle.v1.PriceResult.prototype.setResolveTime = function(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; +}; +} + + +/** + * 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} */ diff --git a/proto/oracle/v1/query_pb.d.ts b/proto/oracle/v1/query_pb.d.ts index c6c0128..20fdf15 100644 --- a/proto/oracle/v1/query_pb.d.ts +++ b/proto/oracle/v1/query_pb.d.ts @@ -3,11 +3,8 @@ import * as jspb from "google-protobuf"; import * as gogoproto_gogo_pb from "../../gogoproto/gogo_pb"; -import * as google_protobuf_any_pb from "google-protobuf/google/protobuf/any_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 cosmos_base_v1beta1_coin_pb from "../../cosmos/base/v1beta1/coin_pb"; -import * as cosmos_proto_cosmos_pb from "../../cosmos_proto/cosmos_pb"; export class QueryCountsRequest extends jspb.Message { serializeBinary(): Uint8Array; @@ -215,6 +212,11 @@ export class QueryRequestResponse extends jspb.Message { 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; @@ -230,6 +232,7 @@ export namespace QueryRequestResponse { request?: oracle_v1_oracle_pb.Request.AsObject, reportsList: Array, result?: oracle_v1_oracle_pb.Result.AsObject, + signing?: oracle_v1_oracle_pb.SigningResult.AsObject, } } @@ -598,6 +601,9 @@ export class QueryRequestVerificationRequest extends jspb.Message { getExternalId(): number; setExternalId(value: number): void; + getDataSourceId(): number; + setDataSourceId(value: number): void; + getReporter(): string; setReporter(value: string): void; @@ -606,6 +612,9 @@ export class QueryRequestVerificationRequest extends jspb.Message { getSignature_asB64(): string; setSignature(value: Uint8Array | string): void; + getMaxDelay(): number; + setMaxDelay(value: number): void; + serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): QueryRequestVerificationRequest.AsObject; static toObject(includeInstance: boolean, msg: QueryRequestVerificationRequest): QueryRequestVerificationRequest.AsObject; @@ -622,8 +631,10 @@ export namespace QueryRequestVerificationRequest { validator: string, requestId: number, externalId: number, + dataSourceId: number, reporter: string, signature: Uint8Array | string, + maxDelay: number, } } @@ -643,6 +654,9 @@ export class QueryRequestVerificationResponse extends jspb.Message { getDataSourceId(): number; setDataSourceId(value: number): void; + getIsDelay(): boolean; + setIsDelay(value: boolean): void; + serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): QueryRequestVerificationResponse.AsObject; static toObject(includeInstance: boolean, msg: QueryRequestVerificationResponse): QueryRequestVerificationResponse.AsObject; @@ -660,6 +674,7 @@ export namespace QueryRequestVerificationResponse { 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 deebe5f..4adc126 100644 --- a/proto/oracle/v1/query_pb.js +++ b/proto/oracle/v1/query_pb.js @@ -13,20 +13,14 @@ var jspb = require('google-protobuf'); var goog = jspb; -var global = Function('return this')(); +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_any_pb = require('google-protobuf/google/protobuf/any_pb.js'); -goog.object.extend(proto, google_protobuf_any_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); -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); goog.exportSymbol('proto.oracle.v1.QueryActiveValidatorsRequest', null, global); goog.exportSymbol('proto.oracle.v1.QueryActiveValidatorsResponse', null, global); goog.exportSymbol('proto.oracle.v1.QueryCountsRequest', null, global); @@ -1952,7 +1946,8 @@ proto.oracle.v1.QueryRequestResponse.toObject = function(includeInstance, msg) { 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) + result: (f = msg.getResult()) && oracle_v1_oracle_pb.Result.toObject(includeInstance, f), + signing: (f = msg.getSigning()) && oracle_v1_oracle_pb.SigningResult.toObject(includeInstance, f) }; if (includeInstance) { @@ -2004,6 +1999,11 @@ proto.oracle.v1.QueryRequestResponse.deserializeBinaryFromReader = function(msg, 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; @@ -2057,6 +2057,14 @@ proto.oracle.v1.QueryRequestResponse.serializeBinaryToWriter = function(message, oracle_v1_oracle_pb.Result.serializeBinaryToWriter ); } + f = message.getSigning(); + if (f != null) { + writer.writeMessage( + 4, + f, + oracle_v1_oracle_pb.SigningResult.serializeBinaryToWriter + ); + } }; @@ -2172,6 +2180,43 @@ proto.oracle.v1.QueryRequestResponse.prototype.hasResult = function() { }; +/** + * 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); +}; + + +/** + * 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); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.oracle.v1.QueryRequestResponse.prototype.hasSigning = function() { + return jspb.Message.getField(this, 4) != null; +}; + + @@ -4613,8 +4658,10 @@ proto.oracle.v1.QueryRequestVerificationRequest.toObject = function(includeInsta validator: jspb.Message.getFieldWithDefault(msg, 2, ""), requestId: jspb.Message.getFieldWithDefault(msg, 3, 0), externalId: jspb.Message.getFieldWithDefault(msg, 4, 0), - reporter: jspb.Message.getFieldWithDefault(msg, 5, ""), - signature: msg.getSignature_asB64() + 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) { @@ -4668,13 +4715,21 @@ proto.oracle.v1.QueryRequestVerificationRequest.deserializeBinaryFromReader = fu 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 6: + 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; @@ -4732,17 +4787,31 @@ proto.oracle.v1.QueryRequestVerificationRequest.serializeBinaryToWriter = functi f ); } + f = message.getDataSourceId(); + if (f !== 0) { + writer.writeUint64( + 5, + f + ); + } f = message.getReporter(); if (f.length > 0) { writer.writeString( - 5, + 6, f ); } f = message.getSignature_asU8(); if (f.length > 0) { writer.writeBytes( - 6, + 7, + f + ); + } + f = message.getMaxDelay(); + if (f !== 0) { + writer.writeUint64( + 8, f ); } @@ -4822,11 +4891,29 @@ proto.oracle.v1.QueryRequestVerificationRequest.prototype.setExternalId = functi /** - * optional string reporter = 5; + * optional uint64 data_source_id = 5; + * @return {number} + */ +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); +}; + + +/** + * optional string reporter = 6; * @return {string} */ proto.oracle.v1.QueryRequestVerificationRequest.prototype.getReporter = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); }; @@ -4835,21 +4922,21 @@ proto.oracle.v1.QueryRequestVerificationRequest.prototype.getReporter = function * @return {!proto.oracle.v1.QueryRequestVerificationRequest} returns this */ proto.oracle.v1.QueryRequestVerificationRequest.prototype.setReporter = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); + return jspb.Message.setProto3StringField(this, 6, value); }; /** - * optional bytes signature = 6; + * optional bytes signature = 7; * @return {!(string|Uint8Array)} */ proto.oracle.v1.QueryRequestVerificationRequest.prototype.getSignature = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 6, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 7, "")); }; /** - * optional bytes signature = 6; + * optional bytes signature = 7; * This is a type-conversion wrapper around `getSignature()` * @return {string} */ @@ -4860,7 +4947,7 @@ proto.oracle.v1.QueryRequestVerificationRequest.prototype.getSignature_asB64 = f /** - * optional bytes signature = 6; + * optional bytes signature = 7; * Note that Uint8Array is not supported on all browsers. * @see http://caniuse.com/Uint8Array * This is a type-conversion wrapper around `getSignature()` @@ -4877,7 +4964,25 @@ proto.oracle.v1.QueryRequestVerificationRequest.prototype.getSignature_asU8 = fu * @return {!proto.oracle.v1.QueryRequestVerificationRequest} returns this */ proto.oracle.v1.QueryRequestVerificationRequest.prototype.setSignature = function(value) { - return jspb.Message.setProto3BytesField(this, 6, 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)); +}; + + +/** + * @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); }; @@ -4917,7 +5022,8 @@ proto.oracle.v1.QueryRequestVerificationResponse.toObject = function(includeInst 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) + dataSourceId: jspb.Message.getFieldWithDefault(msg, 5, 0), + isDelay: jspb.Message.getBooleanFieldWithDefault(msg, 6, false) }; if (includeInstance) { @@ -4974,6 +5080,10 @@ proto.oracle.v1.QueryRequestVerificationResponse.deserializeBinaryFromReader = f 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; @@ -5038,6 +5148,13 @@ proto.oracle.v1.QueryRequestVerificationResponse.serializeBinaryToWriter = funct f ); } + f = message.getIsDelay(); + if (f) { + writer.writeBool( + 6, + f + ); + } }; @@ -5131,4 +5248,22 @@ proto.oracle.v1.QueryRequestVerificationResponse.prototype.setDataSourceId = fun }; +/** + * optional bool is_delay = 6; + * @return {boolean} + */ +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); +}; + + goog.object.extend(exports, proto.oracle.v1); diff --git a/proto/oracle/v1/tx_pb.d.ts b/proto/oracle/v1/tx_pb.d.ts index 0335e22..8cb8f87 100644 --- a/proto/oracle/v1/tx_pb.d.ts +++ b/proto/oracle/v1/tx_pb.d.ts @@ -3,10 +3,11 @@ 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 google_protobuf_any_pb from "google-protobuf/google/protobuf/any_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; @@ -40,6 +41,9 @@ export class MsgRequestData extends jspb.Message { 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; @@ -61,6 +65,7 @@ export namespace MsgRequestData { prepareGas: number, executeGas: number, sender: string, + tssGroupId: number, } } @@ -422,3 +427,45 @@ export namespace MsgActivateResponse { } } +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; +} + +export namespace MsgUpdateParams { + export type 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; +} + +export namespace MsgUpdateParamsResponse { + export type AsObject = { + } +} + diff --git a/proto/oracle/v1/tx_pb.js b/proto/oracle/v1/tx_pb.js index c50541b..d57132d 100644 --- a/proto/oracle/v1/tx_pb.js +++ b/proto/oracle/v1/tx_pb.js @@ -13,18 +13,20 @@ var jspb = require('google-protobuf'); var goog = jspb; -var global = Function('return this')(); +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 google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js'); -goog.object.extend(proto, google_protobuf_any_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); @@ -39,6 +41,8 @@ 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 @@ -333,6 +337,48 @@ if (goog.DEBUG && !COMPILED) { */ proto.oracle.v1.MsgActivateResponse.displayName = 'proto.oracle.v1.MsgActivateResponse'; } +/** + * 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.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'; +} +/** + * 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.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'; +} /** * List of repeated fields within this message type. @@ -381,7 +427,8 @@ proto.oracle.v1.MsgRequestData.toObject = function(includeInstance, msg) { 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, "") + sender: jspb.Message.getFieldWithDefault(msg, 9, ""), + tssGroupId: jspb.Message.getFieldWithDefault(msg, 10, 0) }; if (includeInstance) { @@ -455,6 +502,10 @@ proto.oracle.v1.MsgRequestData.deserializeBinaryFromReader = function(msg, reade 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; @@ -548,6 +599,13 @@ proto.oracle.v1.MsgRequestData.serializeBinaryToWriter = function(message, write f ); } + f = message.getTssGroupId(); + if (f !== 0) { + writer.writeUint64( + 10, + f + ); + } }; @@ -757,6 +815,24 @@ proto.oracle.v1.MsgRequestData.prototype.setSender = function(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); +}; + + @@ -3270,4 +3346,286 @@ proto.oracle.v1.MsgActivateResponse.serializeBinaryToWriter = function(message, }; + + + +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) + }; + + 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.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); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.oracle.v1.MsgUpdateParams} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.oracle.v1.MsgUpdateParams} + */ +proto.oracle.v1.MsgUpdateParams.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.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; +}; + + +/** + * 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(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.oracle.v1.MsgUpdateParams} message + * @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(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getParams(); + if (f != null) { + writer.writeMessage( + 2, + f, + 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, "")); +}; + + +/** + * @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); +}; + + +/** + * optional Params params = 2; + * @return {?proto.oracle.v1.Params} + */ +proto.oracle.v1.MsgUpdateParams.prototype.getParams = function() { + return /** @type{?proto.oracle.v1.Params} */ ( + 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); +}; + + +/** + * 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); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +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 = { + + }; + + 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.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); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.oracle.v1.MsgUpdateParamsResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.oracle.v1.MsgUpdateParamsResponse} + */ +proto.oracle.v1.MsgUpdateParamsResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + 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(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.oracle.v1.MsgUpdateParamsResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.oracle.v1.MsgUpdateParamsResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + 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 22a8172..8f03b7b 100644 --- a/proto/oracle/v1/tx_pb_service.d.ts +++ b/proto/oracle/v1/tx_pb_service.d.ts @@ -67,6 +67,15 @@ type 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; +}; + export class Msg { static readonly serviceName: string; static readonly RequestData: MsgRequestData; @@ -76,6 +85,7 @@ export class Msg { 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 } @@ -173,5 +183,14 @@ export class MsgClient { requestMessage: oracle_v1_tx_pb.MsgActivate, 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; + updateParams( + requestMessage: oracle_v1_tx_pb.MsgUpdateParams, + 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 3aeffaa..aea6877 100644 --- a/proto/oracle/v1/tx_pb_service.js +++ b/proto/oracle/v1/tx_pb_service.js @@ -73,6 +73,15 @@ Msg.Activate = { responseType: oracle_v1_tx_pb.MsgActivateResponse }; +Msg.UpdateParams = { + methodName: "UpdateParams", + service: Msg, + requestStream: false, + responseStream: false, + requestType: oracle_v1_tx_pb.MsgUpdateParams, + responseType: oracle_v1_tx_pb.MsgUpdateParamsResponse +}; + exports.Msg = Msg; function MsgClient(serviceHost, options) { @@ -297,5 +306,36 @@ MsgClient.prototype.activate = function activate(requestMessage, metadata, callb }; }; +MsgClient.prototype.updateParams = function updateParams(requestMessage, metadata, callback) { + if (arguments.length === 2) { + callback = arguments[1]; + } + var client = grpc.unary(Msg.UpdateParams, { + request: requestMessage, + host: this.serviceHost, + metadata: metadata, + transport: this.options.transport, + debug: this.options.debug, + 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); + } else { + callback(null, response.message); + } + } + } + }); + return { + cancel: function () { + callback = null; + client.close(); + } + }; +}; + exports.MsgClient = MsgClient; diff --git a/src/message.ts b/src/message.ts index 9571ca2..d867bcf 100644 --- a/src/message.ts +++ b/src/message.ts @@ -58,6 +58,7 @@ export class MsgRequestData extends MsgRequestDataProto implements BaseMsg { feeLimitList: Coin[] = [], prepareGas: number = 50000, executeGas: number = 300000, + tssGroupId: number = 0 ) { super() this.setOracleScriptId(oracleScriptId) @@ -69,6 +70,7 @@ export class MsgRequestData extends MsgRequestDataProto implements BaseMsg { this.setPrepareGas(prepareGas) this.setExecuteGas(executeGas) this.setSender(sender) + this.setTssGroupId(tssGroupId) } toAny(): Any { @@ -93,6 +95,7 @@ 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() }, } } From 45dcaa82360e4c30f2dc60f78027bb81788dd0ac Mon Sep 17 00:00:00 2001 From: babybunn Date: Tue, 3 Oct 2023 18:36:34 +0700 Subject: [PATCH 4/7] update version to 2.3.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index fa0058f..11ef1ac 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@bandprotocol/bandchain.js", - "version": "2.2.1", + "version": "2.3.0", "description": "Library for interacting with BandChain in browser and Node.js environments", "main": "lib/index.js", "types": "lib/index.d.ts", From 8000508b0e7388518bb4c7bd92ba652bc88a25dd Mon Sep 17 00:00:00 2001 From: babybunn Date: Wed, 4 Oct 2023 14:30:53 +0700 Subject: [PATCH 5/7] change version to v2.3.0-rc --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 11ef1ac..72a4932 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@bandprotocol/bandchain.js", - "version": "2.3.0", + "version": "2.3.0-rc", "description": "Library for interacting with BandChain in browser and Node.js environments", "main": "lib/index.js", "types": "lib/index.d.ts", From 84d844fc3404382a07cf43db037ceaa304d23ec6 Mon Sep 17 00:00:00 2001 From: babybunn Date: Wed, 4 Oct 2023 14:42:30 +0700 Subject: [PATCH 6/7] update cosmos-sdk proto to 0.47.5 --- .gitignore | 1 + proto/bandchain/v1/node/query_pb.d.ts | 109 + proto/bandchain/v1/node/query_pb.js | 814 +++ proto/bandchain/v1/node/query_pb_service.d.ts | 82 + proto/bandchain/v1/node/query_pb_service.js | 101 + proto/bandchain/v1/oracle/proof_pb.d.ts | 644 ++ proto/bandchain/v1/oracle/proof_pb.js | 5178 +++++++++++++++ .../bandchain/v1/oracle/proof_pb_service.d.ts | 101 + proto/bandchain/v1/oracle/proof_pb_service.js | 141 + proto/globalfee/v1beta1/genesis_pb.d.ts | 51 + proto/globalfee/v1beta1/genesis_pb.js | 377 ++ .../globalfee/v1beta1/genesis_pb_service.d.ts | 3 + proto/globalfee/v1beta1/genesis_pb_service.js | 3 + proto/globalfee/v1beta1/query_pb.d.ts | 46 + proto/globalfee/v1beta1/query_pb.js | 320 + proto/globalfee/v1beta1/query_pb_service.d.ts | 63 + proto/globalfee/v1beta1/query_pb_service.js | 61 + proto/globalfee/v1beta1/tx_pb.d.ts | 51 + proto/globalfee/v1beta1/tx_pb.js | 352 + proto/globalfee/v1beta1/tx_pb_service.d.ts | 63 + proto/globalfee/v1beta1/tx_pb_service.js | 61 + proto/rollingseed/v1beta1/genesis_pb.d.ts | 21 + proto/rollingseed/v1beta1/genesis_pb.js | 141 + .../v1beta1/genesis_pb_service.d.ts | 3 + .../rollingseed/v1beta1/genesis_pb_service.js | 3 + proto/tss/v1beta1/genesis_pb.d.ts | 189 + proto/tss/v1beta1/genesis_pb.js | 1475 +++++ proto/tss/v1beta1/genesis_pb_service.d.ts | 3 + proto/tss/v1beta1/genesis_pb_service.js | 3 + proto/tss/v1beta1/query_pb.d.ts | 607 ++ proto/tss/v1beta1/query_pb.js | 4791 ++++++++++++++ proto/tss/v1beta1/query_pb_service.d.ts | 272 + proto/tss/v1beta1/query_pb_service.js | 501 ++ proto/tss/v1beta1/tss_pb.d.ts | 750 +++ proto/tss/v1beta1/tss_pb.js | 5646 +++++++++++++++++ proto/tss/v1beta1/tss_pb_service.d.ts | 3 + proto/tss/v1beta1/tss_pb_service.js | 3 + proto/tss/v1beta1/tx_pb.d.ts | 608 ++ proto/tss/v1beta1/tx_pb.js | 4683 ++++++++++++++ proto/tss/v1beta1/tx_pb_service.d.ts | 291 + proto/tss/v1beta1/tx_pb_service.js | 541 ++ 41 files changed, 29156 insertions(+) create mode 100644 proto/bandchain/v1/node/query_pb.d.ts create mode 100644 proto/bandchain/v1/node/query_pb.js create mode 100644 proto/bandchain/v1/node/query_pb_service.d.ts create mode 100644 proto/bandchain/v1/node/query_pb_service.js create mode 100644 proto/bandchain/v1/oracle/proof_pb.d.ts create mode 100644 proto/bandchain/v1/oracle/proof_pb.js create mode 100644 proto/bandchain/v1/oracle/proof_pb_service.d.ts create mode 100644 proto/bandchain/v1/oracle/proof_pb_service.js create mode 100644 proto/globalfee/v1beta1/genesis_pb.d.ts create mode 100644 proto/globalfee/v1beta1/genesis_pb.js create mode 100644 proto/globalfee/v1beta1/genesis_pb_service.d.ts create mode 100644 proto/globalfee/v1beta1/genesis_pb_service.js create mode 100644 proto/globalfee/v1beta1/query_pb.d.ts create mode 100644 proto/globalfee/v1beta1/query_pb.js create mode 100644 proto/globalfee/v1beta1/query_pb_service.d.ts create mode 100644 proto/globalfee/v1beta1/query_pb_service.js create mode 100644 proto/globalfee/v1beta1/tx_pb.d.ts create mode 100644 proto/globalfee/v1beta1/tx_pb.js create mode 100644 proto/globalfee/v1beta1/tx_pb_service.d.ts create mode 100644 proto/globalfee/v1beta1/tx_pb_service.js create mode 100644 proto/rollingseed/v1beta1/genesis_pb.d.ts create mode 100644 proto/rollingseed/v1beta1/genesis_pb.js create mode 100644 proto/rollingseed/v1beta1/genesis_pb_service.d.ts create mode 100644 proto/rollingseed/v1beta1/genesis_pb_service.js create mode 100644 proto/tss/v1beta1/genesis_pb.d.ts create mode 100644 proto/tss/v1beta1/genesis_pb.js create mode 100644 proto/tss/v1beta1/genesis_pb_service.d.ts create mode 100644 proto/tss/v1beta1/genesis_pb_service.js create mode 100644 proto/tss/v1beta1/query_pb.d.ts create mode 100644 proto/tss/v1beta1/query_pb.js create mode 100644 proto/tss/v1beta1/query_pb_service.d.ts create mode 100644 proto/tss/v1beta1/query_pb_service.js create mode 100644 proto/tss/v1beta1/tss_pb.d.ts create mode 100644 proto/tss/v1beta1/tss_pb.js create mode 100644 proto/tss/v1beta1/tss_pb_service.d.ts create mode 100644 proto/tss/v1beta1/tss_pb_service.js create mode 100644 proto/tss/v1beta1/tx_pb.d.ts create mode 100644 proto/tss/v1beta1/tx_pb.js create mode 100644 proto/tss/v1beta1/tx_pb_service.d.ts create mode 100644 proto/tss/v1beta1/tx_pb_service.js diff --git a/.gitignore b/.gitignore index 1f201cd..19d1591 100644 --- a/.gitignore +++ b/.gitignore @@ -25,3 +25,4 @@ yarn-error.log* # dev next-app +_proto diff --git a/proto/bandchain/v1/node/query_pb.d.ts b/proto/bandchain/v1/node/query_pb.d.ts new file mode 100644 index 0000000..c05eec2 --- /dev/null +++ b/proto/bandchain/v1/node/query_pb.d.ts @@ -0,0 +1,109 @@ +// 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; +} + +export namespace QueryChainIDRequest { + 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 namespace QueryChainIDResponse { + export type AsObject = { + 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 namespace QueryEVMValidatorsRequest { + 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 namespace QueryEVMValidatorsResponse { + export type AsObject = { + 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; +} + +export namespace ValidatorMinimal { + export type AsObject = { + address: string, + votingPower: number, + } +} + diff --git a/proto/bandchain/v1/node/query_pb.js b/proto/bandchain/v1/node/query_pb.js new file mode 100644 index 0000000..761ce84 --- /dev/null +++ b/proto/bandchain/v1/node/query_pb.js @@ -0,0 +1,814 @@ +// source: bandchain/v1/node/query.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* 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); +/** + * 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.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); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bandchain.v1.node.QueryChainIDRequest.displayName = 'proto.bandchain.v1.node.QueryChainIDRequest'; +} +/** + * 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.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); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bandchain.v1.node.QueryChainIDResponse.displayName = 'proto.bandchain.v1.node.QueryChainIDResponse'; +} +/** + * 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.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); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bandchain.v1.node.QueryEVMValidatorsRequest.displayName = 'proto.bandchain.v1.node.QueryEVMValidatorsRequest'; +} +/** + * 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.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); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bandchain.v1.node.QueryEVMValidatorsResponse.displayName = 'proto.bandchain.v1.node.QueryEVMValidatorsResponse'; +} +/** + * 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.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'; +} + + + +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 = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + 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); +}; + + +/** + * 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 {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bandchain.v1.node.QueryChainIDRequest} + */ +proto.bandchain.v1.node.QueryChainIDRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + 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(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bandchain.v1.node.QueryChainIDRequest} 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; +}; + + + + + +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, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + 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); +}; + + +/** + * 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 {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bandchain.v1.node.QueryChainIDResponse} + */ +proto.bandchain.v1.node.QueryChainIDResponse.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; + default: + reader.skipField(); + break; + } + } + 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(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bandchain.v1.node.QueryChainIDResponse} 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(); + if (f.length > 0) { + 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, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bandchain.v1.node.QueryChainIDResponse} returns this + */ +proto.bandchain.v1.node.QueryChainIDResponse.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 = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + 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); +}; + + +/** + * 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 {!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 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(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bandchain.v1.node.QueryEVMValidatorsRequest} 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; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.bandchain.v1.node.QueryEVMValidatorsResponse.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) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + 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); +}; + + +/** + * 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 {!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 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(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bandchain.v1.node.QueryEVMValidatorsResponse} 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 + ); + } +}; + + +/** + * optional int64 block_height = 1; + * @return {number} + */ +proto.bandchain.v1.node.QueryEVMValidatorsResponse.prototype.getBlockHeight = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.bandchain.v1.node.QueryEVMValidatorsResponse} returns this + */ +proto.bandchain.v1.node.QueryEVMValidatorsResponse.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)); +}; + + +/** + * @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); +}; + + +/** + * @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); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.bandchain.v1.node.QueryEVMValidatorsResponse} returns this + */ +proto.bandchain.v1.node.QueryEVMValidatorsResponse.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) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + 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); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bandchain.v1.node.ValidatorMinimal} msg The message object to deserialize into. + * @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; + } + } + 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(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bandchain.v1.node.ValidatorMinimal} message + * @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(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getVotingPower(); + if (f !== 0) { + 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, "")); +}; + + +/** + * @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); +}; + + +/** + * optional int64 voting_power = 2; + * @return {number} + */ +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); +}; + + +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 new file mode 100644 index 0000000..cbe9c97 --- /dev/null +++ b/proto/bandchain/v1/node/query_pb_service.d.ts @@ -0,0 +1,82 @@ +// 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"; + +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; +}; + +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; +}; + +export class Service { + 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 } + +interface UnaryResponse { + 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; +} +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; +} +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; +} + +export class ServiceClient { + readonly serviceHost: string; + + constructor(serviceHost: string, options?: grpc.RpcOptions); + chainID( + requestMessage: bandchain_v1_node_query_pb.QueryChainIDRequest, + metadata: grpc.Metadata, + callback: (error: ServiceError|null, responseMessage: bandchain_v1_node_query_pb.QueryChainIDResponse|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; + eVMValidators( + requestMessage: bandchain_v1_node_query_pb.QueryEVMValidatorsRequest, + metadata: grpc.Metadata, + callback: (error: ServiceError|null, responseMessage: bandchain_v1_node_query_pb.QueryEVMValidatorsResponse|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; +} + diff --git a/proto/bandchain/v1/node/query_pb_service.js b/proto/bandchain/v1/node/query_pb_service.js new file mode 100644 index 0000000..e649e30 --- /dev/null +++ b/proto/bandchain/v1/node/query_pb_service.js @@ -0,0 +1,101 @@ +// 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 Service = (function () { + function Service() {} + Service.serviceName = "bandchain.v1.node.Service"; + return Service; +}()); + +Service.ChainID = { + methodName: "ChainID", + service: Service, + requestStream: false, + responseStream: false, + requestType: bandchain_v1_node_query_pb.QueryChainIDRequest, + responseType: bandchain_v1_node_query_pb.QueryChainIDResponse +}; + +Service.EVMValidators = { + methodName: "EVMValidators", + service: Service, + requestStream: false, + responseStream: false, + requestType: bandchain_v1_node_query_pb.QueryEVMValidatorsRequest, + responseType: bandchain_v1_node_query_pb.QueryEVMValidatorsResponse +}; + +exports.Service = Service; + +function ServiceClient(serviceHost, options) { + this.serviceHost = serviceHost; + this.options = options || {}; +} + +ServiceClient.prototype.chainID = function chainID(requestMessage, metadata, callback) { + if (arguments.length === 2) { + callback = arguments[1]; + } + var client = grpc.unary(Service.ChainID, { + request: requestMessage, + host: this.serviceHost, + metadata: metadata, + transport: this.options.transport, + debug: this.options.debug, + 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); + } else { + callback(null, response.message); + } + } + } + }); + return { + cancel: function () { + callback = null; + client.close(); + } + }; +}; + +ServiceClient.prototype.eVMValidators = function eVMValidators(requestMessage, metadata, callback) { + if (arguments.length === 2) { + callback = arguments[1]; + } + var client = grpc.unary(Service.EVMValidators, { + request: requestMessage, + host: this.serviceHost, + metadata: metadata, + transport: this.options.transport, + debug: this.options.debug, + 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); + } else { + callback(null, response.message); + } + } + } + }); + return { + cancel: function () { + 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 new file mode 100644 index 0000000..b6a3dcb --- /dev/null +++ b/proto/bandchain/v1/oracle/proof_pb.d.ts @@ -0,0 +1,644 @@ +// 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, + } +} + +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 { + export type AsObject = { + height: number, + result?: SingleProofResponse.AsObject, + } +} + +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 type AsObject = { + requestIdsList: Array, + } +} + +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 type AsObject = { + height: number, + result?: MultiProofResponse.AsObject, + } +} + +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 namespace QueryRequestCountProofRequest { + export type 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 type AsObject = { + height: number, + result?: CountProofResponse.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 type AsObject = { + 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 type AsObject = { + 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 type AsObject = { + 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; +} + +export namespace SingleProof { + export type 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; +} + +export namespace MultiProof { + export type 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; +} + +export namespace CountProof { + export type 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; +} + +export namespace OracleDataProof { + export type AsObject = { + 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; +} + +export namespace IAVLMerklePath { + export type AsObject = { + 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; +} + +export namespace BlockRelayProof { + export type AsObject = { + 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; +} + +export namespace MultiStoreProof { + export type AsObject = { + oracleIavlStateHash: Uint8Array | string, + mintStoreMerkleHash: Uint8Array | string, + paramsToSlashingStoresMerkleHash: Uint8Array | string, + govToIcahostStoresMerkleHash: Uint8Array | string, + authToFeegrantStoresMerkleHash: Uint8Array | string, + stakingToUpgradeStoresMerkleHash: 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; +} + +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, + } +} + +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; +} + +export namespace CommonEncodedVotePart { + export type AsObject = { + 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; +} + +export namespace TMSignature { + export type AsObject = { + 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; +} + +export namespace RequestsCountProof { + export type AsObject = { + count: number, + version: number, + merklePathsList: Array, + } +} + diff --git a/proto/bandchain/v1/oracle/proof_pb.js b/proto/bandchain/v1/oracle/proof_pb.js new file mode 100644 index 0000000..9fccd71 --- /dev/null +++ b/proto/bandchain/v1/oracle/proof_pb.js @@ -0,0 +1,5178 @@ +// source: bandchain/v1/oracle/proof.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* 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); +/** + * 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.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); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bandchain.v1.oracle.QueryProofRequest.displayName = 'proto.bandchain.v1.oracle.QueryProofRequest'; +} +/** + * 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.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); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bandchain.v1.oracle.QueryProofResponse.displayName = 'proto.bandchain.v1.oracle.QueryProofResponse'; +} +/** + * 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.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); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bandchain.v1.oracle.QueryMultiProofRequest.displayName = 'proto.bandchain.v1.oracle.QueryMultiProofRequest'; +} +/** + * 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.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); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bandchain.v1.oracle.QueryMultiProofResponse.displayName = 'proto.bandchain.v1.oracle.QueryMultiProofResponse'; +} +/** + * 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.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); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bandchain.v1.oracle.QueryRequestCountProofRequest.displayName = 'proto.bandchain.v1.oracle.QueryRequestCountProofRequest'; +} +/** + * 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.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); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bandchain.v1.oracle.QueryRequestCountProofResponse.displayName = 'proto.bandchain.v1.oracle.QueryRequestCountProofResponse'; +} +/** + * 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.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); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bandchain.v1.oracle.SingleProofResponse.displayName = 'proto.bandchain.v1.oracle.SingleProofResponse'; +} +/** + * 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.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.MultiProofResponse.displayName = 'proto.bandchain.v1.oracle.MultiProofResponse'; +} +/** + * 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.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); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bandchain.v1.oracle.CountProofResponse.displayName = 'proto.bandchain.v1.oracle.CountProofResponse'; +} +/** + * 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.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'; +} +/** + * 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.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'; +} +/** + * 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.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'; +} +/** + * 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.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'; +} +/** + * 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.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'; +} +/** + * 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.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'; +} +/** + * 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.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'; +} +/** + * 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.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'; +} +/** + * 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.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'; +} +/** + * 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.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'; +} +/** + * 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.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'; +} + + + +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) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + 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); +}; + + +/** + * 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 {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bandchain.v1.oracle.QueryProofRequest} + */ +proto.bandchain.v1.oracle.QueryProofRequest.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; + case 2: + var value = /** @type {number} */ (reader.readInt64()); + msg.setHeight(value); + break; + default: + reader.skipField(); + break; + } + } + 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(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bandchain.v1.oracle.QueryProofRequest} 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(); + if (f !== 0) { + writer.writeUint64( + 1, + f + ); + } + f = message.getHeight(); + if (f !== 0) { + 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)); +}; + + +/** + * @param {number} value + * @return {!proto.bandchain.v1.oracle.QueryProofRequest} returns this + */ +proto.bandchain.v1.oracle.QueryProofRequest.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)); +}; + + +/** + * @param {number} value + * @return {!proto.bandchain.v1.oracle.QueryProofRequest} returns this + */ +proto.bandchain.v1.oracle.QueryProofRequest.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) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + 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); +}; + + +/** + * 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 {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bandchain.v1.oracle.QueryProofResponse} + */ +proto.bandchain.v1.oracle.QueryProofResponse.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.SingleProofResponse; + reader.readMessage(value,proto.bandchain.v1.oracle.SingleProofResponse.deserializeBinaryFromReader); + msg.setResult(value); + break; + default: + reader.skipField(); + break; + } + } + 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(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bandchain.v1.oracle.QueryProofResponse} 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(); + if (f !== 0) { + writer.writeInt64( + 1, + f + ); + } + f = message.getResult(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.bandchain.v1.oracle.SingleProofResponse.serializeBinaryToWriter + ); + } +}; + + +/** + * optional int64 height = 1; + * @return {number} + */ +proto.bandchain.v1.oracle.QueryProofResponse.prototype.getHeight = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.bandchain.v1.oracle.QueryProofResponse} returns this + */ +proto.bandchain.v1.oracle.QueryProofResponse.prototype.setHeight = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional SingleProofResponse result = 2; + * @return {?proto.bandchain.v1.oracle.SingleProofResponse} + */ +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)); +}; + + +/** + * @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); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bandchain.v1.oracle.QueryProofResponse} returns this + */ +proto.bandchain.v1.oracle.QueryProofResponse.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; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.bandchain.v1.oracle.QueryMultiProofRequest.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 + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + 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); +}; + + +/** + * 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 {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bandchain.v1.oracle.QueryMultiProofRequest} + */ +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]); + } + break; + default: + reader.skipField(); + break; + } + } + 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(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bandchain.v1.oracle.QueryMultiProofRequest} 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(); + if (f.length > 0) { + 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)); +}; + + +/** + * @param {!Array} value + * @return {!proto.bandchain.v1.oracle.QueryMultiProofRequest} returns this + */ +proto.bandchain.v1.oracle.QueryMultiProofRequest.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 + */ +proto.bandchain.v1.oracle.QueryMultiProofRequest.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 + */ +proto.bandchain.v1.oracle.QueryMultiProofRequest.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) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bandchain.v1.oracle.QueryMultiProofResponse} + */ +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); +}; + + +/** + * 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 {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bandchain.v1.oracle.QueryMultiProofResponse} + */ +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; + } + } + 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(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bandchain.v1.oracle.QueryMultiProofResponse} 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 + ); + } +}; + + +/** + * optional int64 height = 1; + * @return {number} + */ +proto.bandchain.v1.oracle.QueryMultiProofResponse.prototype.getHeight = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.bandchain.v1.oracle.QueryMultiProofResponse} returns this + */ +proto.bandchain.v1.oracle.QueryMultiProofResponse.prototype.setHeight = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional MultiProofResponse result = 2; + * @return {?proto.bandchain.v1.oracle.MultiProofResponse} + */ +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)); +}; + + +/** + * @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); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bandchain.v1.oracle.QueryMultiProofResponse} returns this + */ +proto.bandchain.v1.oracle.QueryMultiProofResponse.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; +}; + + + + + +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 = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + 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); +}; + + +/** + * 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 {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bandchain.v1.oracle.QueryRequestCountProofRequest} + */ +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; + } + } + 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(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bandchain.v1.oracle.QueryRequestCountProofRequest} 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; +}; + + + + + +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) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + 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); +}; + + +/** + * 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 {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bandchain.v1.oracle.QueryRequestCountProofResponse} + */ +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; + } + } + 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(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bandchain.v1.oracle.QueryRequestCountProofResponse} 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 + ); + } +}; + + +/** + * optional int64 height = 1; + * @return {number} + */ +proto.bandchain.v1.oracle.QueryRequestCountProofResponse.prototype.getHeight = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.bandchain.v1.oracle.QueryRequestCountProofResponse} returns this + */ +proto.bandchain.v1.oracle.QueryRequestCountProofResponse.prototype.setHeight = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional CountProofResponse result = 2; + * @return {?proto.bandchain.v1.oracle.CountProofResponse} + */ +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)); +}; + + +/** + * @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); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bandchain.v1.oracle.QueryRequestCountProofResponse} returns this + */ +proto.bandchain.v1.oracle.QueryRequestCountProofResponse.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; +}; + + + + + +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() + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + 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); +}; + + +/** + * 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 {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bandchain.v1.oracle.SingleProofResponse} + */ +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; + } + } + 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(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bandchain.v1.oracle.SingleProofResponse} 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(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.bandchain.v1.oracle.SingleProof.serializeBinaryToWriter + ); + } + f = message.getEvmProofBytes_asU8(); + if (f.length > 0) { + writer.writeBytes( + 2, + f + ); + } +}; + + +/** + * optional SingleProof proof = 1; + * @return {?proto.bandchain.v1.oracle.SingleProof} + */ +proto.bandchain.v1.oracle.SingleProofResponse.prototype.getProof = function() { + return /** @type{?proto.bandchain.v1.oracle.SingleProof} */ ( + 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); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bandchain.v1.oracle.SingleProofResponse} returns this + */ +proto.bandchain.v1.oracle.SingleProofResponse.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; +}; + + +/** + * 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, "")); +}; + + +/** + * 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())); +}; + + +/** + * optional bytes evm_proof_bytes = 2; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * 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())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.bandchain.v1.oracle.SingleProofResponse} returns this + */ +proto.bandchain.v1.oracle.SingleProofResponse.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() + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + 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); +}; + + +/** + * 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 {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bandchain.v1.oracle.MultiProofResponse} + */ +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; + } + } + 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(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bandchain.v1.oracle.MultiProofResponse} 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(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.bandchain.v1.oracle.MultiProof.serializeBinaryToWriter + ); + } + f = message.getEvmProofBytes_asU8(); + if (f.length > 0) { + writer.writeBytes( + 2, + f + ); + } +}; + + +/** + * optional MultiProof proof = 1; + * @return {?proto.bandchain.v1.oracle.MultiProof} + */ +proto.bandchain.v1.oracle.MultiProofResponse.prototype.getProof = function() { + return /** @type{?proto.bandchain.v1.oracle.MultiProof} */ ( + 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); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bandchain.v1.oracle.MultiProofResponse} returns this + */ +proto.bandchain.v1.oracle.MultiProofResponse.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; +}; + + +/** + * 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, "")); +}; + + +/** + * 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())); +}; + + +/** + * optional bytes evm_proof_bytes = 2; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * 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())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.bandchain.v1.oracle.MultiProofResponse} returns this + */ +proto.bandchain.v1.oracle.MultiProofResponse.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() + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + 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); +}; + + +/** + * 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 {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bandchain.v1.oracle.CountProofResponse} + */ +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; + } + } + 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(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bandchain.v1.oracle.CountProofResponse} 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(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.bandchain.v1.oracle.CountProof.serializeBinaryToWriter + ); + } + f = message.getEvmProofBytes_asU8(); + if (f.length > 0) { + writer.writeBytes( + 2, + f + ); + } +}; + + +/** + * optional CountProof proof = 1; + * @return {?proto.bandchain.v1.oracle.CountProof} + */ +proto.bandchain.v1.oracle.CountProofResponse.prototype.getProof = function() { + return /** @type{?proto.bandchain.v1.oracle.CountProof} */ ( + 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); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bandchain.v1.oracle.CountProofResponse} returns this + */ +proto.bandchain.v1.oracle.CountProofResponse.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; +}; + + +/** + * 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, "")); +}; + + +/** + * 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())); +}; + + +/** + * optional bytes evm_proof_bytes = 2; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * 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())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.bandchain.v1.oracle.CountProofResponse} returns this + */ +proto.bandchain.v1.oracle.CountProofResponse.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) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + 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); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bandchain.v1.oracle.SingleProof} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bandchain.v1.oracle.SingleProof} + */ +proto.bandchain.v1.oracle.SingleProof.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.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; +}; + + +/** + * 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(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bandchain.v1.oracle.SingleProof} message + * @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(); + if (f !== 0) { + writer.writeUint64( + 1, + f + ); + } + f = message.getOracleDataProof(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.bandchain.v1.oracle.OracleDataProof.serializeBinaryToWriter + ); + } + f = message.getBlockRelayProof(); + if (f != null) { + writer.writeMessage( + 3, + f, + 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)); +}; + + +/** + * @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); +}; + + +/** + * 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)); +}; + + +/** + * @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); +}; + + +/** + * 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); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +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)); +}; + + +/** + * @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); +}; + + +/** + * 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); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +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]; + + + +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) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + 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); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bandchain.v1.oracle.MultiProof} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bandchain.v1.oracle.MultiProof} + */ +proto.bandchain.v1.oracle.MultiProof.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.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; +}; + + +/** + * 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(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bandchain.v1.oracle.MultiProof} message + * @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(); + if (f !== 0) { + writer.writeUint64( + 1, + f + ); + } + f = message.getOracleDataMultiProofList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto.bandchain.v1.oracle.OracleDataProof.serializeBinaryToWriter + ); + } + f = message.getBlockRelayProof(); + if (f != null) { + writer.writeMessage( + 3, + f, + 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)); +}; + + +/** + * @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); +}; + + +/** + * 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)); +}; + + +/** + * @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); +}; + + +/** + * @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); +}; + + +/** + * 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([]); +}; + + +/** + * 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)); +}; + + +/** + * @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); +}; + + +/** + * 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); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +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) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + 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); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bandchain.v1.oracle.CountProof} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bandchain.v1.oracle.CountProof} + */ +proto.bandchain.v1.oracle.CountProof.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.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; +}; + + +/** + * 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(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bandchain.v1.oracle.CountProof} message + * @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(); + if (f !== 0) { + writer.writeUint64( + 1, + f + ); + } + f = message.getCountProof(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.bandchain.v1.oracle.RequestsCountProof.serializeBinaryToWriter + ); + } + f = message.getBlockRelayProof(); + if (f != null) { + writer.writeMessage( + 3, + f, + 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)); +}; + + +/** + * @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); +}; + + +/** + * optional RequestsCountProof count_proof = 2; + * @return {?proto.bandchain.v1.oracle.RequestsCountProof} + */ +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)); +}; + + +/** + * @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); +}; + + +/** + * 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); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +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)); +}; + + +/** + * @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); +}; + + +/** + * 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); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +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]; + + + +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) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + 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); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bandchain.v1.oracle.OracleDataProof} msg The message object to deserialize into. + * @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; + } + } + 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(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bandchain.v1.oracle.OracleDataProof} message + * @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(); + if (f != null) { + writer.writeMessage( + 1, + f, + oracle_v1_oracle_pb.Result.serializeBinaryToWriter + ); + } + 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 oracle.v1.Result result = 1; + * @return {?proto.oracle.v1.Result} + */ +proto.bandchain.v1.oracle.OracleDataProof.prototype.getResult = function() { + return /** @type{?proto.oracle.v1.Result} */ ( + 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); +}; + + +/** + * 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); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +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)); +}; + + +/** + * @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); +}; + + +/** + * 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)); +}; + + +/** + * @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); +}; + + +/** + * @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); +}; + + +/** + * 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([]); +}; + + + + + +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() + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + 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); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bandchain.v1.oracle.IAVLMerklePath} msg The message object to deserialize into. + * @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; + } + } + 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(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bandchain.v1.oracle.IAVLMerklePath} message + * @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(); + if (f) { + writer.writeBool( + 1, + f + ); + } + f = message.getSubtreeHeight(); + if (f !== 0) { + writer.writeUint32( + 2, + f + ); + } + f = message.getSubtreeSize(); + if (f !== 0) { + writer.writeUint64( + 3, + f + ); + } + f = message.getSubtreeVersion(); + if (f !== 0) { + writer.writeUint64( + 4, + f + ); + } + f = message.getSiblingHash_asU8(); + if (f.length > 0) { + 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)); +}; + + +/** + * @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); +}; + + +/** + * optional uint32 subtree_height = 2; + * @return {number} + */ +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); +}; + + +/** + * optional uint64 subtree_size = 3; + * @return {number} + */ +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); +}; + + +/** + * optional uint64 subtree_version = 4; + * @return {number} + */ +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); +}; + + +/** + * 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, "")); +}; + + +/** + * 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())); +}; + + +/** + * optional bytes sibling_hash = 5; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * 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())); +}; + + +/** + * @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); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +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) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + 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); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bandchain.v1.oracle.BlockRelayProof} msg The message object to deserialize into. + * @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; + } + } + 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(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bandchain.v1.oracle.BlockRelayProof} message + * @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(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.bandchain.v1.oracle.MultiStoreProof.serializeBinaryToWriter + ); + } + f = message.getBlockHeaderMerkleParts(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.bandchain.v1.oracle.BlockHeaderMerkleParts.serializeBinaryToWriter + ); + } + f = message.getCommonEncodedVotePart(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.bandchain.v1.oracle.CommonEncodedVotePart.serializeBinaryToWriter + ); + } + f = message.getSignaturesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 4, + f, + 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)); +}; + + +/** + * @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); +}; + + +/** + * 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); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +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)); +}; + + +/** + * @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); +}; + + +/** + * 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); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +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)); +}; + + +/** + * @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); +}; + + +/** + * 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); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +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)); +}; + + +/** + * @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); +}; + + +/** + * @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); +}; + + +/** + * 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([]); +}; + + + + + +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() + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + 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); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bandchain.v1.oracle.MultiStoreProof} msg The message object to deserialize into. + * @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; + } + } + 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(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bandchain.v1.oracle.MultiStoreProof} message + * @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(); + if (f.length > 0) { + writer.writeBytes( + 1, + f + ); + } + f = message.getMintStoreMerkleHash_asU8(); + if (f.length > 0) { + writer.writeBytes( + 2, + f + ); + } + f = message.getParamsToSlashingStoresMerkleHash_asU8(); + if (f.length > 0) { + writer.writeBytes( + 3, + f + ); + } + f = message.getGovToIcahostStoresMerkleHash_asU8(); + if (f.length > 0) { + writer.writeBytes( + 4, + f + ); + } + f = message.getAuthToFeegrantStoresMerkleHash_asU8(); + if (f.length > 0) { + writer.writeBytes( + 5, + f + ); + } + f = message.getStakingToUpgradeStoresMerkleHash_asU8(); + if (f.length > 0) { + writer.writeBytes( + 6, + 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, "")); +}; + + +/** + * 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())); +}; + + +/** + * optional bytes oracle_iavl_state_hash = 1; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * 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())); +}; + + +/** + * @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); +}; + + +/** + * optional bytes params_to_slashing_stores_merkle_hash = 3; + * @return {!(string|Uint8Array)} + */ +proto.bandchain.v1.oracle.MultiStoreProof.prototype.getParamsToSlashingStoresMerkleHash = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * optional bytes params_to_slashing_stores_merkle_hash = 3; + * This is a type-conversion wrapper around `getParamsToSlashingStoresMerkleHash()` + * @return {string} + */ +proto.bandchain.v1.oracle.MultiStoreProof.prototype.getParamsToSlashingStoresMerkleHash_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getParamsToSlashingStoresMerkleHash())); +}; + + +/** + * optional bytes params_to_slashing_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 `getParamsToSlashingStoresMerkleHash()` + * @return {!Uint8Array} + */ +proto.bandchain.v1.oracle.MultiStoreProof.prototype.getParamsToSlashingStoresMerkleHash_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getParamsToSlashingStoresMerkleHash())); +}; + + +/** + * @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); +}; + + +/** + * optional bytes gov_to_icahost_stores_merkle_hash = 4; + * @return {!(string|Uint8Array)} + */ +proto.bandchain.v1.oracle.MultiStoreProof.prototype.getGovToIcahostStoresMerkleHash = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * optional bytes gov_to_icahost_stores_merkle_hash = 4; + * This is a type-conversion wrapper around `getGovToIcahostStoresMerkleHash()` + * @return {string} + */ +proto.bandchain.v1.oracle.MultiStoreProof.prototype.getGovToIcahostStoresMerkleHash_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getGovToIcahostStoresMerkleHash())); +}; + + +/** + * optional bytes gov_to_icahost_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 `getGovToIcahostStoresMerkleHash()` + * @return {!Uint8Array} + */ +proto.bandchain.v1.oracle.MultiStoreProof.prototype.getGovToIcahostStoresMerkleHash_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getGovToIcahostStoresMerkleHash())); +}; + + +/** + * @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); +}; + + +/** + * optional bytes auth_to_feegrant_stores_merkle_hash = 5; + * @return {!(string|Uint8Array)} + */ +proto.bandchain.v1.oracle.MultiStoreProof.prototype.getAuthToFeegrantStoresMerkleHash = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * optional bytes auth_to_feegrant_stores_merkle_hash = 5; + * This is a type-conversion wrapper around `getAuthToFeegrantStoresMerkleHash()` + * @return {string} + */ +proto.bandchain.v1.oracle.MultiStoreProof.prototype.getAuthToFeegrantStoresMerkleHash_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getAuthToFeegrantStoresMerkleHash())); +}; + + +/** + * optional bytes auth_to_feegrant_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 `getAuthToFeegrantStoresMerkleHash()` + * @return {!Uint8Array} + */ +proto.bandchain.v1.oracle.MultiStoreProof.prototype.getAuthToFeegrantStoresMerkleHash_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getAuthToFeegrantStoresMerkleHash())); +}; + + +/** + * @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); +}; + + +/** + * optional bytes staking_to_upgrade_stores_merkle_hash = 6; + * @return {!(string|Uint8Array)} + */ +proto.bandchain.v1.oracle.MultiStoreProof.prototype.getStakingToUpgradeStoresMerkleHash = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 6, "")); +}; + + +/** + * optional bytes staking_to_upgrade_stores_merkle_hash = 6; + * This is a type-conversion wrapper around `getStakingToUpgradeStoresMerkleHash()` + * @return {string} + */ +proto.bandchain.v1.oracle.MultiStoreProof.prototype.getStakingToUpgradeStoresMerkleHash_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getStakingToUpgradeStoresMerkleHash())); +}; + + +/** + * optional bytes staking_to_upgrade_stores_merkle_hash = 6; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getStakingToUpgradeStoresMerkleHash()` + * @return {!Uint8Array} + */ +proto.bandchain.v1.oracle.MultiStoreProof.prototype.getStakingToUpgradeStoresMerkleHash_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getStakingToUpgradeStoresMerkleHash())); +}; + + +/** + * @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); +}; + + + + + +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() + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + 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); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bandchain.v1.oracle.BlockHeaderMerkleParts} msg The message object to deserialize into. + * @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; + } + } + 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(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bandchain.v1.oracle.BlockHeaderMerkleParts} message + * @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 + ); + } +}; + + +/** + * 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, "")); +}; + + +/** + * 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())); +}; + + +/** + * optional bytes version_and_chain_id_hash = 1; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * 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())); +}; + + +/** + * @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); +}; + + +/** + * optional uint64 height = 2; + * @return {number} + */ +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); +}; + + +/** + * optional uint64 time_second = 3; + * @return {number} + */ +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); +}; + + +/** + * 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)); +}; + + +/** + * @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); +}; + + +/** + * 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, "")); +}; + + +/** + * 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())); +}; + + +/** + * optional bytes last_block_id_and_other = 5; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * 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())); +}; + + +/** + * @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); +}; + + +/** + * 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, "")); +}; + + +/** + * 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())); +}; + + +/** + * optional bytes next_validator_hash_and_consensus_hash = 6; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * 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())); +}; + + +/** + * @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); +}; + + +/** + * 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, "")); +}; + + +/** + * 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())); +}; + + +/** + * optional bytes last_results_hash = 7; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * 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())); +}; + + +/** + * @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); +}; + + +/** + * 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, "")); +}; + + +/** + * 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())); +}; + + +/** + * optional bytes evidence_and_proposer_hash = 8; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * 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())); +}; + + +/** + * @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); +}; + + + + + +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() + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + 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); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bandchain.v1.oracle.CommonEncodedVotePart} msg The message object to deserialize into. + * @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; + } + } + 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(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bandchain.v1.oracle.CommonEncodedVotePart} message + * @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 + ); + } +}; + + +/** + * 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, "")); +}; + + +/** + * 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())); +}; + + +/** + * optional bytes signed_data_prefix = 1; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * 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())); +}; + + +/** + * @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); +}; + + +/** + * 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, "")); +}; + + +/** + * 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())); +}; + + +/** + * optional bytes signed_data_suffix = 2; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * 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())); +}; + + +/** + * @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); +}; + + + + + +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() + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + 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); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bandchain.v1.oracle.TMSignature} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bandchain.v1.oracle.TMSignature} + */ +proto.bandchain.v1.oracle.TMSignature.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.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; +}; + + +/** + * 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(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bandchain.v1.oracle.TMSignature} message + * @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(); + if (f.length > 0) { + writer.writeBytes( + 1, + f + ); + } + f = message.getS_asU8(); + if (f.length > 0) { + writer.writeBytes( + 2, + f + ); + } + f = message.getV(); + if (f !== 0) { + writer.writeUint32( + 3, + f + ); + } + f = message.getEncodedTimestamp_asU8(); + if (f.length > 0) { + 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, "")); +}; + + +/** + * 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())); +}; + + +/** + * optional bytes r = 1; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * 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())); +}; + + +/** + * @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); +}; + + +/** + * optional bytes s = 2; + * @return {!(string|Uint8Array)} + */ +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())); +}; + + +/** + * optional bytes s = 2; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * 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())); +}; + + +/** + * @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); +}; + + +/** + * optional uint32 v = 3; + * @return {number} + */ +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); +}; + + +/** + * 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, "")); +}; + + +/** + * 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())); +}; + + +/** + * optional bytes encoded_timestamp = 4; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * 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())); +}; + + +/** + * @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); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +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) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + 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); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bandchain.v1.oracle.RequestsCountProof} msg The message object to deserialize into. + * @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; + } + } + 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(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bandchain.v1.oracle.RequestsCountProof} message + * @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 + ); + } +}; + + +/** + * optional uint64 count = 1; + * @return {number} + */ +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); +}; + + +/** + * optional uint64 version = 2; + * @return {number} + */ +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); +}; + + +/** + * 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)); +}; + + +/** + * @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); +}; + + +/** + * @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); +}; + + +/** + * 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([]); +}; + + +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 new file mode 100644 index 0000000..4ba7a8e --- /dev/null +++ b/proto/bandchain/v1/oracle/proof_pb_service.d.ts @@ -0,0 +1,101 @@ +// 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"; + +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; +}; + +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; +}; + +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; +}; + +export class Service { + 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 } + +interface UnaryResponse { + 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; +} +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; +} +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; +} + +export class ServiceClient { + readonly serviceHost: string; + + constructor(serviceHost: string, options?: grpc.RpcOptions); + proof( + requestMessage: bandchain_v1_oracle_proof_pb.QueryProofRequest, + metadata: grpc.Metadata, + callback: (error: ServiceError|null, responseMessage: bandchain_v1_oracle_proof_pb.QueryProofResponse|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; + multiProof( + requestMessage: bandchain_v1_oracle_proof_pb.QueryMultiProofRequest, + metadata: grpc.Metadata, + callback: (error: ServiceError|null, responseMessage: bandchain_v1_oracle_proof_pb.QueryMultiProofResponse|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; + requestCountProof( + requestMessage: bandchain_v1_oracle_proof_pb.QueryRequestCountProofRequest, + metadata: grpc.Metadata, + callback: (error: ServiceError|null, responseMessage: bandchain_v1_oracle_proof_pb.QueryRequestCountProofResponse|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; +} + diff --git a/proto/bandchain/v1/oracle/proof_pb_service.js b/proto/bandchain/v1/oracle/proof_pb_service.js new file mode 100644 index 0000000..bf5bff3 --- /dev/null +++ b/proto/bandchain/v1/oracle/proof_pb_service.js @@ -0,0 +1,141 @@ +// 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 Service = (function () { + function Service() {} + Service.serviceName = "bandchain.v1.oracle.Service"; + return Service; +}()); + +Service.Proof = { + methodName: "Proof", + service: Service, + requestStream: false, + responseStream: false, + requestType: bandchain_v1_oracle_proof_pb.QueryProofRequest, + responseType: bandchain_v1_oracle_proof_pb.QueryProofResponse +}; + +Service.MultiProof = { + methodName: "MultiProof", + service: Service, + requestStream: false, + responseStream: false, + requestType: bandchain_v1_oracle_proof_pb.QueryMultiProofRequest, + responseType: bandchain_v1_oracle_proof_pb.QueryMultiProofResponse +}; + +Service.RequestCountProof = { + methodName: "RequestCountProof", + service: Service, + requestStream: false, + responseStream: false, + requestType: bandchain_v1_oracle_proof_pb.QueryRequestCountProofRequest, + responseType: bandchain_v1_oracle_proof_pb.QueryRequestCountProofResponse +}; + +exports.Service = Service; + +function ServiceClient(serviceHost, options) { + this.serviceHost = serviceHost; + this.options = options || {}; +} + +ServiceClient.prototype.proof = function proof(requestMessage, metadata, callback) { + if (arguments.length === 2) { + callback = arguments[1]; + } + var client = grpc.unary(Service.Proof, { + request: requestMessage, + host: this.serviceHost, + metadata: metadata, + transport: this.options.transport, + debug: this.options.debug, + 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); + } else { + callback(null, response.message); + } + } + } + }); + return { + cancel: function () { + callback = null; + client.close(); + } + }; +}; + +ServiceClient.prototype.multiProof = function multiProof(requestMessage, metadata, callback) { + if (arguments.length === 2) { + callback = arguments[1]; + } + var client = grpc.unary(Service.MultiProof, { + request: requestMessage, + host: this.serviceHost, + metadata: metadata, + transport: this.options.transport, + debug: this.options.debug, + 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); + } else { + callback(null, response.message); + } + } + } + }); + return { + cancel: function () { + callback = null; + client.close(); + } + }; +}; + +ServiceClient.prototype.requestCountProof = function requestCountProof(requestMessage, metadata, callback) { + if (arguments.length === 2) { + callback = arguments[1]; + } + var client = grpc.unary(Service.RequestCountProof, { + request: requestMessage, + host: this.serviceHost, + metadata: metadata, + transport: this.options.transport, + debug: this.options.debug, + 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); + } else { + callback(null, response.message); + } + } + } + }); + return { + cancel: function () { + 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 new file mode 100644 index 0000000..aaeb1a8 --- /dev/null +++ b/proto/globalfee/v1beta1/genesis_pb.d.ts @@ -0,0 +1,51 @@ +// 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"; + +export class GenesisState extends jspb.Message { + 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; +} + +export namespace GenesisState { + export type 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; + + 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, + } +} + diff --git a/proto/globalfee/v1beta1/genesis_pb.js b/proto/globalfee/v1beta1/genesis_pb.js new file mode 100644 index 0000000..fb1a86f --- /dev/null +++ b/proto/globalfee/v1beta1/genesis_pb.js @@ -0,0 +1,377 @@ +// source: globalfee/v1beta1/genesis.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* 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); +/** + * 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.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'; +} +/** + * 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.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'; +} + + + +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) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + 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); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.globalfee.v1beta1.GenesisState} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.globalfee.v1beta1.GenesisState} + */ +proto.globalfee.v1beta1.GenesisState.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + 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; + } + } + 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(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.globalfee.v1beta1.GenesisState} message + * @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(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.globalfee.v1beta1.Params.serializeBinaryToWriter + ); + } +}; + + +/** + * optional Params params = 1; + * @return {?proto.globalfee.v1beta1.Params} + */ +proto.globalfee.v1beta1.GenesisState.prototype.getParams = function() { + return /** @type{?proto.globalfee.v1beta1.Params} */ ( + 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); +}; + + +/** + * 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); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +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]; + + + +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) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + 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); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.globalfee.v1beta1.Params} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.globalfee.v1beta1.Params} + */ +proto.globalfee.v1beta1.Params.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + 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; + } + } + 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(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.globalfee.v1beta1.Params} message + * @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(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + 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() { + return /** @type{!Array} */ ( + 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); +}; + + +/** + * @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); +}; + + +/** + * 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([]); +}; + + +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 new file mode 100644 index 0000000..c6c368e --- /dev/null +++ b/proto/globalfee/v1beta1/genesis_pb_service.d.ts @@ -0,0 +1,3 @@ +// 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 new file mode 100644 index 0000000..c6c368e --- /dev/null +++ b/proto/globalfee/v1beta1/genesis_pb_service.js @@ -0,0 +1,3 @@ +// 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 new file mode 100644 index 0000000..4201f0d --- /dev/null +++ b/proto/globalfee/v1beta1/query_pb.d.ts @@ -0,0 +1,46 @@ +// 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"; + +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; +} + +export namespace QueryParamsRequest { + 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; + + 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, + } +} + diff --git a/proto/globalfee/v1beta1/query_pb.js b/proto/globalfee/v1beta1/query_pb.js new file mode 100644 index 0000000..8804640 --- /dev/null +++ b/proto/globalfee/v1beta1/query_pb.js @@ -0,0 +1,320 @@ +// source: globalfee/v1beta1/query.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* 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); +/** + * 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.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'; +} +/** + * 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.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'; +} + + + +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 = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + 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); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.globalfee.v1beta1.QueryParamsRequest} msg The message object to deserialize into. + * @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; + } + } + 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(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.globalfee.v1beta1.QueryParamsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +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) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + 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); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.globalfee.v1beta1.QueryParamsResponse} msg The message object to deserialize into. + * @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; + } + } + 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(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.globalfee.v1beta1.QueryParamsResponse} message + * @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(); + if (f != null) { + writer.writeMessage( + 1, + f, + globalfee_v1beta1_genesis_pb.Params.serializeBinaryToWriter + ); + } +}; + + +/** + * optional Params params = 1; + * @return {?proto.globalfee.v1beta1.Params} + */ +proto.globalfee.v1beta1.QueryParamsResponse.prototype.getParams = function() { + return /** @type{?proto.globalfee.v1beta1.Params} */ ( + 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); +}; + + +/** + * 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); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.globalfee.v1beta1.QueryParamsResponse.prototype.hasParams = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +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 new file mode 100644 index 0000000..b3a6811 --- /dev/null +++ b/proto/globalfee/v1beta1/query_pb_service.d.ts @@ -0,0 +1,63 @@ +// 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"; + +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; +}; + +export class Query { + 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 } + +interface UnaryResponse { + 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; +} +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; +} +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; +} + +export class QueryClient { + readonly serviceHost: string; + + 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; + params( + requestMessage: globalfee_v1beta1_query_pb.QueryParamsRequest, + 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 new file mode 100644 index 0000000..8684a97 --- /dev/null +++ b/proto/globalfee/v1beta1/query_pb_service.js @@ -0,0 +1,61 @@ +// 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 Query = (function () { + function Query() {} + Query.serviceName = "globalfee.v1beta1.Query"; + return Query; +}()); + +Query.Params = { + methodName: "Params", + service: Query, + requestStream: false, + responseStream: false, + requestType: globalfee_v1beta1_query_pb.QueryParamsRequest, + responseType: globalfee_v1beta1_query_pb.QueryParamsResponse +}; + +exports.Query = Query; + +function QueryClient(serviceHost, options) { + this.serviceHost = serviceHost; + this.options = options || {}; +} + +QueryClient.prototype.params = function params(requestMessage, metadata, callback) { + if (arguments.length === 2) { + callback = arguments[1]; + } + var client = grpc.unary(Query.Params, { + request: requestMessage, + host: this.serviceHost, + metadata: metadata, + transport: this.options.transport, + debug: this.options.debug, + 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); + } else { + callback(null, response.message); + } + } + } + }); + return { + cancel: function () { + 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 new file mode 100644 index 0000000..97cf26c --- /dev/null +++ b/proto/globalfee/v1beta1/tx_pb.d.ts @@ -0,0 +1,51 @@ +// 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"; + +export class MsgUpdateParams extends jspb.Message { + 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; + + 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, + } +} + +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; +} + +export namespace MsgUpdateParamsResponse { + export type AsObject = { + } +} + diff --git a/proto/globalfee/v1beta1/tx_pb.js b/proto/globalfee/v1beta1/tx_pb.js new file mode 100644 index 0000000..67e762b --- /dev/null +++ b/proto/globalfee/v1beta1/tx_pb.js @@ -0,0 +1,352 @@ +// source: globalfee/v1beta1/tx.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* 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); +/** + * 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.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'; +} +/** + * 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.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'; +} + + + +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) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + 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); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.globalfee.v1beta1.MsgUpdateParams} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.globalfee.v1beta1.MsgUpdateParams} + */ +proto.globalfee.v1beta1.MsgUpdateParams.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.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; +}; + + +/** + * 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(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.globalfee.v1beta1.MsgUpdateParams} message + * @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(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getParams(); + if (f != null) { + writer.writeMessage( + 2, + f, + 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, "")); +}; + + +/** + * @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); +}; + + +/** + * optional Params params = 2; + * @return {?proto.globalfee.v1beta1.Params} + */ +proto.globalfee.v1beta1.MsgUpdateParams.prototype.getParams = function() { + return /** @type{?proto.globalfee.v1beta1.Params} */ ( + 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); +}; + + +/** + * 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); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +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 = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + 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); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.globalfee.v1beta1.MsgUpdateParamsResponse} msg The message object to deserialize into. + * @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; + } + } + 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(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.globalfee.v1beta1.MsgUpdateParamsResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.globalfee.v1beta1.MsgUpdateParamsResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + +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 new file mode 100644 index 0000000..6da847d --- /dev/null +++ b/proto/globalfee/v1beta1/tx_pb_service.d.ts @@ -0,0 +1,63 @@ +// 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"; + +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; +}; + +export class Msg { + 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 } + +interface UnaryResponse { + 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; +} +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; +} +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; +} + +export class MsgClient { + readonly serviceHost: string; + + 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; + updateParams( + requestMessage: globalfee_v1beta1_tx_pb.MsgUpdateParams, + callback: (error: ServiceError|null, responseMessage: globalfee_v1beta1_tx_pb.MsgUpdateParamsResponse|null) => void + ): UnaryResponse; +} + diff --git a/proto/globalfee/v1beta1/tx_pb_service.js b/proto/globalfee/v1beta1/tx_pb_service.js new file mode 100644 index 0000000..f2d1c8a --- /dev/null +++ b/proto/globalfee/v1beta1/tx_pb_service.js @@ -0,0 +1,61 @@ +// package: globalfee.v1beta1 +// file: globalfee/v1beta1/tx.proto + +var globalfee_v1beta1_tx_pb = require("../../globalfee/v1beta1/tx_pb"); +var grpc = require("@improbable-eng/grpc-web").grpc; + +var Msg = (function () { + function Msg() {} + Msg.serviceName = "globalfee.v1beta1.Msg"; + return Msg; +}()); + +Msg.UpdateParams = { + methodName: "UpdateParams", + service: Msg, + requestStream: false, + responseStream: false, + requestType: globalfee_v1beta1_tx_pb.MsgUpdateParams, + responseType: globalfee_v1beta1_tx_pb.MsgUpdateParamsResponse +}; + +exports.Msg = Msg; + +function MsgClient(serviceHost, options) { + this.serviceHost = serviceHost; + this.options = options || {}; +} + +MsgClient.prototype.updateParams = function updateParams(requestMessage, metadata, callback) { + if (arguments.length === 2) { + callback = arguments[1]; + } + var client = grpc.unary(Msg.UpdateParams, { + request: requestMessage, + host: this.serviceHost, + metadata: metadata, + transport: this.options.transport, + debug: this.options.debug, + 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); + } else { + callback(null, response.message); + } + } + } + }); + return { + cancel: function () { + callback = null; + client.close(); + } + }; +}; + +exports.MsgClient = MsgClient; + diff --git a/proto/rollingseed/v1beta1/genesis_pb.d.ts b/proto/rollingseed/v1beta1/genesis_pb.d.ts new file mode 100644 index 0000000..12cd8af --- /dev/null +++ b/proto/rollingseed/v1beta1/genesis_pb.d.ts @@ -0,0 +1,21 @@ +// package: rollingseed.v1beta1 +// file: rollingseed/v1beta1/genesis.proto + +import * as jspb from "google-protobuf"; + +export class GenesisState extends jspb.Message { + 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 = { + } +} + diff --git a/proto/rollingseed/v1beta1/genesis_pb.js b/proto/rollingseed/v1beta1/genesis_pb.js new file mode 100644 index 0000000..230b742 --- /dev/null +++ b/proto/rollingseed/v1beta1/genesis_pb.js @@ -0,0 +1,141 @@ +// source: rollingseed/v1beta1/genesis.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* 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); + +goog.exportSymbol('proto.rollingseed.v1beta1.GenesisState', null, global); +/** + * 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.rollingseed.v1beta1.GenesisState = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.rollingseed.v1beta1.GenesisState, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.rollingseed.v1beta1.GenesisState.displayName = 'proto.rollingseed.v1beta1.GenesisState'; +} + + + +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.rollingseed.v1beta1.GenesisState.prototype.toObject = function(opt_includeInstance) { + return proto.rollingseed.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.rollingseed.v1beta1.GenesisState} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.rollingseed.v1beta1.GenesisState.toObject = function(includeInstance, msg) { + var f, 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.rollingseed.v1beta1.GenesisState} + */ +proto.rollingseed.v1beta1.GenesisState.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.rollingseed.v1beta1.GenesisState; + return proto.rollingseed.v1beta1.GenesisState.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.rollingseed.v1beta1.GenesisState} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.rollingseed.v1beta1.GenesisState} + */ +proto.rollingseed.v1beta1.GenesisState.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.rollingseed.v1beta1.GenesisState.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.rollingseed.v1beta1.GenesisState.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.rollingseed.v1beta1.GenesisState} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.rollingseed.v1beta1.GenesisState.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + +goog.object.extend(exports, proto.rollingseed.v1beta1); diff --git a/proto/rollingseed/v1beta1/genesis_pb_service.d.ts b/proto/rollingseed/v1beta1/genesis_pb_service.d.ts new file mode 100644 index 0000000..be899fb --- /dev/null +++ b/proto/rollingseed/v1beta1/genesis_pb_service.d.ts @@ -0,0 +1,3 @@ +// package: rollingseed.v1beta1 +// file: rollingseed/v1beta1/genesis.proto + diff --git a/proto/rollingseed/v1beta1/genesis_pb_service.js b/proto/rollingseed/v1beta1/genesis_pb_service.js new file mode 100644 index 0000000..be899fb --- /dev/null +++ b/proto/rollingseed/v1beta1/genesis_pb_service.js @@ -0,0 +1,3 @@ +// package: rollingseed.v1beta1 +// file: rollingseed/v1beta1/genesis.proto + diff --git a/proto/tss/v1beta1/genesis_pb.d.ts b/proto/tss/v1beta1/genesis_pb.d.ts new file mode 100644 index 0000000..377d015 --- /dev/null +++ b/proto/tss/v1beta1/genesis_pb.d.ts @@ -0,0 +1,189 @@ +// package: tss.v1beta1 +// file: tss/v1beta1/genesis.proto + +import * as jspb from "google-protobuf"; +import * as gogoproto_gogo_pb from "../../gogoproto/gogo_pb"; +import * as google_protobuf_duration_pb from "google-protobuf/google/protobuf/duration_pb"; +import * as tss_v1beta1_tss_pb from "../../tss/v1beta1/tss_pb"; +import * as cosmos_proto_cosmos_pb from "../../cosmos_proto/cosmos_pb"; + +export class GenesisState extends jspb.Message { + hasParams(): boolean; + clearParams(): void; + getParams(): Params | undefined; + setParams(value?: Params): void; + + getGroupCount(): number; + setGroupCount(value: number): void; + + clearGroupsList(): void; + getGroupsList(): Array; + setGroupsList(value: Array): void; + addGroups(value?: tss_v1beta1_tss_pb.Group, index?: number): tss_v1beta1_tss_pb.Group; + + getSigningCount(): number; + setSigningCount(value: number): void; + + clearSigningsList(): void; + getSigningsList(): Array; + setSigningsList(value: Array): void; + addSignings(value?: tss_v1beta1_tss_pb.Signing, index?: number): tss_v1beta1_tss_pb.Signing; + + getReplacementCount(): number; + setReplacementCount(value: number): void; + + clearReplacementsList(): void; + getReplacementsList(): Array; + setReplacementsList(value: Array): void; + addReplacements(value?: tss_v1beta1_tss_pb.Replacement, index?: number): tss_v1beta1_tss_pb.Replacement; + + clearDeQueuesGenesisList(): void; + getDeQueuesGenesisList(): Array; + setDeQueuesGenesisList(value: Array): void; + addDeQueuesGenesis(value?: DEQueueGenesis, index?: number): DEQueueGenesis; + + clearDesGenesisList(): void; + getDesGenesisList(): Array; + setDesGenesisList(value: Array): void; + addDesGenesis(value?: DEGenesis, index?: number): DEGenesis; + + clearStatusesList(): void; + getStatusesList(): Array; + setStatusesList(value: Array): void; + addStatuses(value?: tss_v1beta1_tss_pb.Status, index?: number): tss_v1beta1_tss_pb.Status; + + 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, + groupCount: number, + groupsList: Array, + signingCount: number, + signingsList: Array, + replacementCount: number, + replacementsList: Array, + deQueuesGenesisList: Array, + desGenesisList: Array, + statusesList: Array, + } +} + +export class Params extends jspb.Message { + getMaxGroupSize(): number; + setMaxGroupSize(value: number): void; + + getMaxDESize(): number; + setMaxDESize(value: number): void; + + getCreatingPeriod(): number; + setCreatingPeriod(value: number): void; + + getSigningPeriod(): number; + setSigningPeriod(value: number): void; + + hasActiveDuration(): boolean; + clearActiveDuration(): void; + getActiveDuration(): google_protobuf_duration_pb.Duration | undefined; + setActiveDuration(value?: google_protobuf_duration_pb.Duration): void; + + hasInactivePenaltyDuration(): boolean; + clearInactivePenaltyDuration(): void; + getInactivePenaltyDuration(): google_protobuf_duration_pb.Duration | undefined; + setInactivePenaltyDuration(value?: google_protobuf_duration_pb.Duration): void; + + hasJailPenaltyDuration(): boolean; + clearJailPenaltyDuration(): void; + getJailPenaltyDuration(): google_protobuf_duration_pb.Duration | undefined; + setJailPenaltyDuration(value?: google_protobuf_duration_pb.Duration): void; + + getRewardPercentage(): number; + setRewardPercentage(value: number): 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; +} + +export namespace Params { + export type AsObject = { + maxGroupSize: number, + maxDESize: number, + creatingPeriod: number, + signingPeriod: number, + activeDuration?: google_protobuf_duration_pb.Duration.AsObject, + inactivePenaltyDuration?: google_protobuf_duration_pb.Duration.AsObject, + jailPenaltyDuration?: google_protobuf_duration_pb.Duration.AsObject, + rewardPercentage: number, + } +} + +export class DEQueueGenesis extends jspb.Message { + getAddress(): string; + setAddress(value: string): void; + + hasDeQueue(): boolean; + clearDeQueue(): void; + getDeQueue(): tss_v1beta1_tss_pb.DEQueue | undefined; + setDeQueue(value?: tss_v1beta1_tss_pb.DEQueue): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DEQueueGenesis.AsObject; + static toObject(includeInstance: boolean, msg: DEQueueGenesis): DEQueueGenesis.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DEQueueGenesis, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DEQueueGenesis; + static deserializeBinaryFromReader(message: DEQueueGenesis, reader: jspb.BinaryReader): DEQueueGenesis; +} + +export namespace DEQueueGenesis { + export type AsObject = { + address: string, + deQueue?: tss_v1beta1_tss_pb.DEQueue.AsObject, + } +} + +export class DEGenesis extends jspb.Message { + getAddress(): string; + setAddress(value: string): void; + + getIndex(): number; + setIndex(value: number): void; + + hasDe(): boolean; + clearDe(): void; + getDe(): tss_v1beta1_tss_pb.DE | undefined; + setDe(value?: tss_v1beta1_tss_pb.DE): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DEGenesis.AsObject; + static toObject(includeInstance: boolean, msg: DEGenesis): DEGenesis.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DEGenesis, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DEGenesis; + static deserializeBinaryFromReader(message: DEGenesis, reader: jspb.BinaryReader): DEGenesis; +} + +export namespace DEGenesis { + export type AsObject = { + address: string, + index: number, + de?: tss_v1beta1_tss_pb.DE.AsObject, + } +} + diff --git a/proto/tss/v1beta1/genesis_pb.js b/proto/tss/v1beta1/genesis_pb.js new file mode 100644 index 0000000..fdc45b4 --- /dev/null +++ b/proto/tss/v1beta1/genesis_pb.js @@ -0,0 +1,1475 @@ +// source: tss/v1beta1/genesis.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* 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_duration_pb = require('google-protobuf/google/protobuf/duration_pb.js'); +goog.object.extend(proto, google_protobuf_duration_pb); +var tss_v1beta1_tss_pb = require('../../tss/v1beta1/tss_pb.js'); +goog.object.extend(proto, tss_v1beta1_tss_pb); +var cosmos_proto_cosmos_pb = require('../../cosmos_proto/cosmos_pb.js'); +goog.object.extend(proto, cosmos_proto_cosmos_pb); +goog.exportSymbol('proto.tss.v1beta1.DEGenesis', null, global); +goog.exportSymbol('proto.tss.v1beta1.DEQueueGenesis', null, global); +goog.exportSymbol('proto.tss.v1beta1.GenesisState', null, global); +goog.exportSymbol('proto.tss.v1beta1.Params', null, global); +/** + * 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.tss.v1beta1.GenesisState = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.tss.v1beta1.GenesisState.repeatedFields_, null); +}; +goog.inherits(proto.tss.v1beta1.GenesisState, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.GenesisState.displayName = 'proto.tss.v1beta1.GenesisState'; +} +/** + * 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.tss.v1beta1.Params = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.tss.v1beta1.Params, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.Params.displayName = 'proto.tss.v1beta1.Params'; +} +/** + * 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.tss.v1beta1.DEQueueGenesis = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.tss.v1beta1.DEQueueGenesis, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.DEQueueGenesis.displayName = 'proto.tss.v1beta1.DEQueueGenesis'; +} +/** + * 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.tss.v1beta1.DEGenesis = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.tss.v1beta1.DEGenesis, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.DEGenesis.displayName = 'proto.tss.v1beta1.DEGenesis'; +} + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.tss.v1beta1.GenesisState.repeatedFields_ = [3,5,7,8,9,10]; + + + +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.tss.v1beta1.GenesisState.prototype.toObject = function(opt_includeInstance) { + return proto.tss.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.tss.v1beta1.GenesisState} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.GenesisState.toObject = function(includeInstance, msg) { + var f, obj = { + params: (f = msg.getParams()) && proto.tss.v1beta1.Params.toObject(includeInstance, f), + groupCount: jspb.Message.getFieldWithDefault(msg, 2, 0), + groupsList: jspb.Message.toObjectList(msg.getGroupsList(), + tss_v1beta1_tss_pb.Group.toObject, includeInstance), + signingCount: jspb.Message.getFieldWithDefault(msg, 4, 0), + signingsList: jspb.Message.toObjectList(msg.getSigningsList(), + tss_v1beta1_tss_pb.Signing.toObject, includeInstance), + replacementCount: jspb.Message.getFieldWithDefault(msg, 6, 0), + replacementsList: jspb.Message.toObjectList(msg.getReplacementsList(), + tss_v1beta1_tss_pb.Replacement.toObject, includeInstance), + deQueuesGenesisList: jspb.Message.toObjectList(msg.getDeQueuesGenesisList(), + proto.tss.v1beta1.DEQueueGenesis.toObject, includeInstance), + desGenesisList: jspb.Message.toObjectList(msg.getDesGenesisList(), + proto.tss.v1beta1.DEGenesis.toObject, includeInstance), + statusesList: jspb.Message.toObjectList(msg.getStatusesList(), + tss_v1beta1_tss_pb.Status.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.tss.v1beta1.GenesisState} + */ +proto.tss.v1beta1.GenesisState.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.GenesisState; + return proto.tss.v1beta1.GenesisState.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.GenesisState} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.GenesisState} + */ +proto.tss.v1beta1.GenesisState.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.tss.v1beta1.Params; + reader.readMessage(value,proto.tss.v1beta1.Params.deserializeBinaryFromReader); + msg.setParams(value); + break; + case 2: + var value = /** @type {number} */ (reader.readUint64()); + msg.setGroupCount(value); + break; + case 3: + var value = new tss_v1beta1_tss_pb.Group; + reader.readMessage(value,tss_v1beta1_tss_pb.Group.deserializeBinaryFromReader); + msg.addGroups(value); + break; + case 4: + var value = /** @type {number} */ (reader.readUint64()); + msg.setSigningCount(value); + break; + case 5: + var value = new tss_v1beta1_tss_pb.Signing; + reader.readMessage(value,tss_v1beta1_tss_pb.Signing.deserializeBinaryFromReader); + msg.addSignings(value); + break; + case 6: + var value = /** @type {number} */ (reader.readUint64()); + msg.setReplacementCount(value); + break; + case 7: + var value = new tss_v1beta1_tss_pb.Replacement; + reader.readMessage(value,tss_v1beta1_tss_pb.Replacement.deserializeBinaryFromReader); + msg.addReplacements(value); + break; + case 8: + var value = new proto.tss.v1beta1.DEQueueGenesis; + reader.readMessage(value,proto.tss.v1beta1.DEQueueGenesis.deserializeBinaryFromReader); + msg.addDeQueuesGenesis(value); + break; + case 9: + var value = new proto.tss.v1beta1.DEGenesis; + reader.readMessage(value,proto.tss.v1beta1.DEGenesis.deserializeBinaryFromReader); + msg.addDesGenesis(value); + break; + case 10: + var value = new tss_v1beta1_tss_pb.Status; + reader.readMessage(value,tss_v1beta1_tss_pb.Status.deserializeBinaryFromReader); + msg.addStatuses(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.GenesisState.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.GenesisState.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.GenesisState} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.GenesisState.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getParams(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.tss.v1beta1.Params.serializeBinaryToWriter + ); + } + f = message.getGroupCount(); + if (f !== 0) { + writer.writeUint64( + 2, + f + ); + } + f = message.getGroupsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 3, + f, + tss_v1beta1_tss_pb.Group.serializeBinaryToWriter + ); + } + f = message.getSigningCount(); + if (f !== 0) { + writer.writeUint64( + 4, + f + ); + } + f = message.getSigningsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 5, + f, + tss_v1beta1_tss_pb.Signing.serializeBinaryToWriter + ); + } + f = message.getReplacementCount(); + if (f !== 0) { + writer.writeUint64( + 6, + f + ); + } + f = message.getReplacementsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 7, + f, + tss_v1beta1_tss_pb.Replacement.serializeBinaryToWriter + ); + } + f = message.getDeQueuesGenesisList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 8, + f, + proto.tss.v1beta1.DEQueueGenesis.serializeBinaryToWriter + ); + } + f = message.getDesGenesisList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 9, + f, + proto.tss.v1beta1.DEGenesis.serializeBinaryToWriter + ); + } + f = message.getStatusesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 10, + f, + tss_v1beta1_tss_pb.Status.serializeBinaryToWriter + ); + } +}; + + +/** + * optional Params params = 1; + * @return {?proto.tss.v1beta1.Params} + */ +proto.tss.v1beta1.GenesisState.prototype.getParams = function() { + return /** @type{?proto.tss.v1beta1.Params} */ ( + jspb.Message.getWrapperField(this, proto.tss.v1beta1.Params, 1)); +}; + + +/** + * @param {?proto.tss.v1beta1.Params|undefined} value + * @return {!proto.tss.v1beta1.GenesisState} returns this +*/ +proto.tss.v1beta1.GenesisState.prototype.setParams = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.tss.v1beta1.GenesisState} returns this + */ +proto.tss.v1beta1.GenesisState.prototype.clearParams = function() { + return this.setParams(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.tss.v1beta1.GenesisState.prototype.hasParams = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional uint64 group_count = 2; + * @return {number} + */ +proto.tss.v1beta1.GenesisState.prototype.getGroupCount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.tss.v1beta1.GenesisState} returns this + */ +proto.tss.v1beta1.GenesisState.prototype.setGroupCount = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * repeated Group groups = 3; + * @return {!Array} + */ +proto.tss.v1beta1.GenesisState.prototype.getGroupsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, tss_v1beta1_tss_pb.Group, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.tss.v1beta1.GenesisState} returns this +*/ +proto.tss.v1beta1.GenesisState.prototype.setGroupsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); +}; + + +/** + * @param {!proto.tss.v1beta1.Group=} opt_value + * @param {number=} opt_index + * @return {!proto.tss.v1beta1.Group} + */ +proto.tss.v1beta1.GenesisState.prototype.addGroups = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.tss.v1beta1.Group, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.tss.v1beta1.GenesisState} returns this + */ +proto.tss.v1beta1.GenesisState.prototype.clearGroupsList = function() { + return this.setGroupsList([]); +}; + + +/** + * optional uint64 signing_count = 4; + * @return {number} + */ +proto.tss.v1beta1.GenesisState.prototype.getSigningCount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.tss.v1beta1.GenesisState} returns this + */ +proto.tss.v1beta1.GenesisState.prototype.setSigningCount = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); +}; + + +/** + * repeated Signing signings = 5; + * @return {!Array} + */ +proto.tss.v1beta1.GenesisState.prototype.getSigningsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, tss_v1beta1_tss_pb.Signing, 5)); +}; + + +/** + * @param {!Array} value + * @return {!proto.tss.v1beta1.GenesisState} returns this +*/ +proto.tss.v1beta1.GenesisState.prototype.setSigningsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 5, value); +}; + + +/** + * @param {!proto.tss.v1beta1.Signing=} opt_value + * @param {number=} opt_index + * @return {!proto.tss.v1beta1.Signing} + */ +proto.tss.v1beta1.GenesisState.prototype.addSignings = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.tss.v1beta1.Signing, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.tss.v1beta1.GenesisState} returns this + */ +proto.tss.v1beta1.GenesisState.prototype.clearSigningsList = function() { + return this.setSigningsList([]); +}; + + +/** + * optional uint64 replacement_count = 6; + * @return {number} + */ +proto.tss.v1beta1.GenesisState.prototype.getReplacementCount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.tss.v1beta1.GenesisState} returns this + */ +proto.tss.v1beta1.GenesisState.prototype.setReplacementCount = function(value) { + return jspb.Message.setProto3IntField(this, 6, value); +}; + + +/** + * repeated Replacement replacements = 7; + * @return {!Array} + */ +proto.tss.v1beta1.GenesisState.prototype.getReplacementsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, tss_v1beta1_tss_pb.Replacement, 7)); +}; + + +/** + * @param {!Array} value + * @return {!proto.tss.v1beta1.GenesisState} returns this +*/ +proto.tss.v1beta1.GenesisState.prototype.setReplacementsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 7, value); +}; + + +/** + * @param {!proto.tss.v1beta1.Replacement=} opt_value + * @param {number=} opt_index + * @return {!proto.tss.v1beta1.Replacement} + */ +proto.tss.v1beta1.GenesisState.prototype.addReplacements = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.tss.v1beta1.Replacement, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.tss.v1beta1.GenesisState} returns this + */ +proto.tss.v1beta1.GenesisState.prototype.clearReplacementsList = function() { + return this.setReplacementsList([]); +}; + + +/** + * repeated DEQueueGenesis de_queues_genesis = 8; + * @return {!Array} + */ +proto.tss.v1beta1.GenesisState.prototype.getDeQueuesGenesisList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.tss.v1beta1.DEQueueGenesis, 8)); +}; + + +/** + * @param {!Array} value + * @return {!proto.tss.v1beta1.GenesisState} returns this +*/ +proto.tss.v1beta1.GenesisState.prototype.setDeQueuesGenesisList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 8, value); +}; + + +/** + * @param {!proto.tss.v1beta1.DEQueueGenesis=} opt_value + * @param {number=} opt_index + * @return {!proto.tss.v1beta1.DEQueueGenesis} + */ +proto.tss.v1beta1.GenesisState.prototype.addDeQueuesGenesis = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 8, opt_value, proto.tss.v1beta1.DEQueueGenesis, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.tss.v1beta1.GenesisState} returns this + */ +proto.tss.v1beta1.GenesisState.prototype.clearDeQueuesGenesisList = function() { + return this.setDeQueuesGenesisList([]); +}; + + +/** + * repeated DEGenesis des_genesis = 9; + * @return {!Array} + */ +proto.tss.v1beta1.GenesisState.prototype.getDesGenesisList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.tss.v1beta1.DEGenesis, 9)); +}; + + +/** + * @param {!Array} value + * @return {!proto.tss.v1beta1.GenesisState} returns this +*/ +proto.tss.v1beta1.GenesisState.prototype.setDesGenesisList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 9, value); +}; + + +/** + * @param {!proto.tss.v1beta1.DEGenesis=} opt_value + * @param {number=} opt_index + * @return {!proto.tss.v1beta1.DEGenesis} + */ +proto.tss.v1beta1.GenesisState.prototype.addDesGenesis = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 9, opt_value, proto.tss.v1beta1.DEGenesis, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.tss.v1beta1.GenesisState} returns this + */ +proto.tss.v1beta1.GenesisState.prototype.clearDesGenesisList = function() { + return this.setDesGenesisList([]); +}; + + +/** + * repeated Status statuses = 10; + * @return {!Array} + */ +proto.tss.v1beta1.GenesisState.prototype.getStatusesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, tss_v1beta1_tss_pb.Status, 10)); +}; + + +/** + * @param {!Array} value + * @return {!proto.tss.v1beta1.GenesisState} returns this +*/ +proto.tss.v1beta1.GenesisState.prototype.setStatusesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 10, value); +}; + + +/** + * @param {!proto.tss.v1beta1.Status=} opt_value + * @param {number=} opt_index + * @return {!proto.tss.v1beta1.Status} + */ +proto.tss.v1beta1.GenesisState.prototype.addStatuses = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 10, opt_value, proto.tss.v1beta1.Status, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.tss.v1beta1.GenesisState} returns this + */ +proto.tss.v1beta1.GenesisState.prototype.clearStatusesList = function() { + return this.setStatusesList([]); +}; + + + + + +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.tss.v1beta1.Params.prototype.toObject = function(opt_includeInstance) { + return proto.tss.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.tss.v1beta1.Params} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.Params.toObject = function(includeInstance, msg) { + var f, obj = { + maxGroupSize: jspb.Message.getFieldWithDefault(msg, 1, 0), + maxDESize: jspb.Message.getFieldWithDefault(msg, 2, 0), + creatingPeriod: jspb.Message.getFieldWithDefault(msg, 3, 0), + signingPeriod: jspb.Message.getFieldWithDefault(msg, 4, 0), + activeDuration: (f = msg.getActiveDuration()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f), + inactivePenaltyDuration: (f = msg.getInactivePenaltyDuration()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f), + jailPenaltyDuration: (f = msg.getJailPenaltyDuration()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f), + rewardPercentage: jspb.Message.getFieldWithDefault(msg, 8, 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.tss.v1beta1.Params} + */ +proto.tss.v1beta1.Params.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.Params; + return proto.tss.v1beta1.Params.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.Params} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.Params} + */ +proto.tss.v1beta1.Params.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.setMaxGroupSize(value); + break; + case 2: + var value = /** @type {number} */ (reader.readUint64()); + msg.setMaxDESize(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint64()); + msg.setCreatingPeriod(value); + break; + case 4: + var value = /** @type {number} */ (reader.readUint64()); + msg.setSigningPeriod(value); + break; + case 5: + var value = new google_protobuf_duration_pb.Duration; + reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader); + msg.setActiveDuration(value); + break; + case 6: + var value = new google_protobuf_duration_pb.Duration; + reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader); + msg.setInactivePenaltyDuration(value); + break; + case 7: + var value = new google_protobuf_duration_pb.Duration; + reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader); + msg.setJailPenaltyDuration(value); + break; + case 8: + var value = /** @type {number} */ (reader.readUint64()); + msg.setRewardPercentage(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.Params.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.Params.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.Params} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.Params.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMaxGroupSize(); + if (f !== 0) { + writer.writeUint64( + 1, + f + ); + } + f = message.getMaxDESize(); + if (f !== 0) { + writer.writeUint64( + 2, + f + ); + } + f = message.getCreatingPeriod(); + if (f !== 0) { + writer.writeUint64( + 3, + f + ); + } + f = message.getSigningPeriod(); + if (f !== 0) { + writer.writeUint64( + 4, + f + ); + } + f = message.getActiveDuration(); + if (f != null) { + writer.writeMessage( + 5, + f, + google_protobuf_duration_pb.Duration.serializeBinaryToWriter + ); + } + f = message.getInactivePenaltyDuration(); + if (f != null) { + writer.writeMessage( + 6, + f, + google_protobuf_duration_pb.Duration.serializeBinaryToWriter + ); + } + f = message.getJailPenaltyDuration(); + if (f != null) { + writer.writeMessage( + 7, + f, + google_protobuf_duration_pb.Duration.serializeBinaryToWriter + ); + } + f = message.getRewardPercentage(); + if (f !== 0) { + writer.writeUint64( + 8, + f + ); + } +}; + + +/** + * optional uint64 max_group_size = 1; + * @return {number} + */ +proto.tss.v1beta1.Params.prototype.getMaxGroupSize = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.tss.v1beta1.Params} returns this + */ +proto.tss.v1beta1.Params.prototype.setMaxGroupSize = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional uint64 max_d_e_size = 2; + * @return {number} + */ +proto.tss.v1beta1.Params.prototype.getMaxDESize = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.tss.v1beta1.Params} returns this + */ +proto.tss.v1beta1.Params.prototype.setMaxDESize = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional uint64 creating_period = 3; + * @return {number} + */ +proto.tss.v1beta1.Params.prototype.getCreatingPeriod = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.tss.v1beta1.Params} returns this + */ +proto.tss.v1beta1.Params.prototype.setCreatingPeriod = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + +/** + * optional uint64 signing_period = 4; + * @return {number} + */ +proto.tss.v1beta1.Params.prototype.getSigningPeriod = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.tss.v1beta1.Params} returns this + */ +proto.tss.v1beta1.Params.prototype.setSigningPeriod = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); +}; + + +/** + * optional google.protobuf.Duration active_duration = 5; + * @return {?proto.google.protobuf.Duration} + */ +proto.tss.v1beta1.Params.prototype.getActiveDuration = function() { + return /** @type{?proto.google.protobuf.Duration} */ ( + jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 5)); +}; + + +/** + * @param {?proto.google.protobuf.Duration|undefined} value + * @return {!proto.tss.v1beta1.Params} returns this +*/ +proto.tss.v1beta1.Params.prototype.setActiveDuration = function(value) { + return jspb.Message.setWrapperField(this, 5, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.tss.v1beta1.Params} returns this + */ +proto.tss.v1beta1.Params.prototype.clearActiveDuration = function() { + return this.setActiveDuration(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.tss.v1beta1.Params.prototype.hasActiveDuration = function() { + return jspb.Message.getField(this, 5) != null; +}; + + +/** + * optional google.protobuf.Duration inactive_penalty_duration = 6; + * @return {?proto.google.protobuf.Duration} + */ +proto.tss.v1beta1.Params.prototype.getInactivePenaltyDuration = function() { + return /** @type{?proto.google.protobuf.Duration} */ ( + jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 6)); +}; + + +/** + * @param {?proto.google.protobuf.Duration|undefined} value + * @return {!proto.tss.v1beta1.Params} returns this +*/ +proto.tss.v1beta1.Params.prototype.setInactivePenaltyDuration = function(value) { + return jspb.Message.setWrapperField(this, 6, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.tss.v1beta1.Params} returns this + */ +proto.tss.v1beta1.Params.prototype.clearInactivePenaltyDuration = function() { + return this.setInactivePenaltyDuration(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.tss.v1beta1.Params.prototype.hasInactivePenaltyDuration = function() { + return jspb.Message.getField(this, 6) != null; +}; + + +/** + * optional google.protobuf.Duration jail_penalty_duration = 7; + * @return {?proto.google.protobuf.Duration} + */ +proto.tss.v1beta1.Params.prototype.getJailPenaltyDuration = function() { + return /** @type{?proto.google.protobuf.Duration} */ ( + jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 7)); +}; + + +/** + * @param {?proto.google.protobuf.Duration|undefined} value + * @return {!proto.tss.v1beta1.Params} returns this +*/ +proto.tss.v1beta1.Params.prototype.setJailPenaltyDuration = function(value) { + return jspb.Message.setWrapperField(this, 7, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.tss.v1beta1.Params} returns this + */ +proto.tss.v1beta1.Params.prototype.clearJailPenaltyDuration = function() { + return this.setJailPenaltyDuration(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.tss.v1beta1.Params.prototype.hasJailPenaltyDuration = function() { + return jspb.Message.getField(this, 7) != null; +}; + + +/** + * optional uint64 reward_percentage = 8; + * @return {number} + */ +proto.tss.v1beta1.Params.prototype.getRewardPercentage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.tss.v1beta1.Params} returns this + */ +proto.tss.v1beta1.Params.prototype.setRewardPercentage = 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.tss.v1beta1.DEQueueGenesis.prototype.toObject = function(opt_includeInstance) { + return proto.tss.v1beta1.DEQueueGenesis.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.tss.v1beta1.DEQueueGenesis} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.DEQueueGenesis.toObject = function(includeInstance, msg) { + var f, obj = { + address: jspb.Message.getFieldWithDefault(msg, 1, ""), + deQueue: (f = msg.getDeQueue()) && tss_v1beta1_tss_pb.DEQueue.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.tss.v1beta1.DEQueueGenesis} + */ +proto.tss.v1beta1.DEQueueGenesis.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.DEQueueGenesis; + return proto.tss.v1beta1.DEQueueGenesis.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.DEQueueGenesis} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.DEQueueGenesis} + */ +proto.tss.v1beta1.DEQueueGenesis.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 = new tss_v1beta1_tss_pb.DEQueue; + reader.readMessage(value,tss_v1beta1_tss_pb.DEQueue.deserializeBinaryFromReader); + msg.setDeQueue(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.DEQueueGenesis.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.DEQueueGenesis.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.DEQueueGenesis} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.DEQueueGenesis.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getAddress(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getDeQueue(); + if (f != null) { + writer.writeMessage( + 2, + f, + tss_v1beta1_tss_pb.DEQueue.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string address = 1; + * @return {string} + */ +proto.tss.v1beta1.DEQueueGenesis.prototype.getAddress = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.tss.v1beta1.DEQueueGenesis} returns this + */ +proto.tss.v1beta1.DEQueueGenesis.prototype.setAddress = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional DEQueue de_queue = 2; + * @return {?proto.tss.v1beta1.DEQueue} + */ +proto.tss.v1beta1.DEQueueGenesis.prototype.getDeQueue = function() { + return /** @type{?proto.tss.v1beta1.DEQueue} */ ( + jspb.Message.getWrapperField(this, tss_v1beta1_tss_pb.DEQueue, 2)); +}; + + +/** + * @param {?proto.tss.v1beta1.DEQueue|undefined} value + * @return {!proto.tss.v1beta1.DEQueueGenesis} returns this +*/ +proto.tss.v1beta1.DEQueueGenesis.prototype.setDeQueue = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.tss.v1beta1.DEQueueGenesis} returns this + */ +proto.tss.v1beta1.DEQueueGenesis.prototype.clearDeQueue = function() { + return this.setDeQueue(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.tss.v1beta1.DEQueueGenesis.prototype.hasDeQueue = 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.tss.v1beta1.DEGenesis.prototype.toObject = function(opt_includeInstance) { + return proto.tss.v1beta1.DEGenesis.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.tss.v1beta1.DEGenesis} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.DEGenesis.toObject = function(includeInstance, msg) { + var f, obj = { + address: jspb.Message.getFieldWithDefault(msg, 1, ""), + index: jspb.Message.getFieldWithDefault(msg, 2, 0), + de: (f = msg.getDe()) && tss_v1beta1_tss_pb.DE.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.tss.v1beta1.DEGenesis} + */ +proto.tss.v1beta1.DEGenesis.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.DEGenesis; + return proto.tss.v1beta1.DEGenesis.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.DEGenesis} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.DEGenesis} + */ +proto.tss.v1beta1.DEGenesis.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.readUint64()); + msg.setIndex(value); + break; + case 3: + var value = new tss_v1beta1_tss_pb.DE; + reader.readMessage(value,tss_v1beta1_tss_pb.DE.deserializeBinaryFromReader); + msg.setDe(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.DEGenesis.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.DEGenesis.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.DEGenesis} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.DEGenesis.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getAddress(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getIndex(); + if (f !== 0) { + writer.writeUint64( + 2, + f + ); + } + f = message.getDe(); + if (f != null) { + writer.writeMessage( + 3, + f, + tss_v1beta1_tss_pb.DE.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string address = 1; + * @return {string} + */ +proto.tss.v1beta1.DEGenesis.prototype.getAddress = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.tss.v1beta1.DEGenesis} returns this + */ +proto.tss.v1beta1.DEGenesis.prototype.setAddress = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional uint64 index = 2; + * @return {number} + */ +proto.tss.v1beta1.DEGenesis.prototype.getIndex = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.tss.v1beta1.DEGenesis} returns this + */ +proto.tss.v1beta1.DEGenesis.prototype.setIndex = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional DE de = 3; + * @return {?proto.tss.v1beta1.DE} + */ +proto.tss.v1beta1.DEGenesis.prototype.getDe = function() { + return /** @type{?proto.tss.v1beta1.DE} */ ( + jspb.Message.getWrapperField(this, tss_v1beta1_tss_pb.DE, 3)); +}; + + +/** + * @param {?proto.tss.v1beta1.DE|undefined} value + * @return {!proto.tss.v1beta1.DEGenesis} returns this +*/ +proto.tss.v1beta1.DEGenesis.prototype.setDe = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.tss.v1beta1.DEGenesis} returns this + */ +proto.tss.v1beta1.DEGenesis.prototype.clearDe = function() { + return this.setDe(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.tss.v1beta1.DEGenesis.prototype.hasDe = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +goog.object.extend(exports, proto.tss.v1beta1); diff --git a/proto/tss/v1beta1/genesis_pb_service.d.ts b/proto/tss/v1beta1/genesis_pb_service.d.ts new file mode 100644 index 0000000..5e4a4d3 --- /dev/null +++ b/proto/tss/v1beta1/genesis_pb_service.d.ts @@ -0,0 +1,3 @@ +// package: tss.v1beta1 +// file: tss/v1beta1/genesis.proto + diff --git a/proto/tss/v1beta1/genesis_pb_service.js b/proto/tss/v1beta1/genesis_pb_service.js new file mode 100644 index 0000000..5e4a4d3 --- /dev/null +++ b/proto/tss/v1beta1/genesis_pb_service.js @@ -0,0 +1,3 @@ +// package: tss.v1beta1 +// file: tss/v1beta1/genesis.proto + diff --git a/proto/tss/v1beta1/query_pb.d.ts b/proto/tss/v1beta1/query_pb.d.ts new file mode 100644 index 0000000..8de9cf5 --- /dev/null +++ b/proto/tss/v1beta1/query_pb.d.ts @@ -0,0 +1,607 @@ +// package: tss.v1beta1 +// file: tss/v1beta1/query.proto + +import * as jspb from "google-protobuf"; +import * as gogoproto_gogo_pb from "../../gogoproto/gogo_pb"; +import * as cosmos_base_query_v1beta1_pagination_pb from "../../cosmos/base/query/v1beta1/pagination_pb"; +import * as google_api_annotations_pb from "../../google/api/annotations_pb"; +import * as tss_v1beta1_tss_pb from "../../tss/v1beta1/tss_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; +} + +export namespace QueryCountsRequest { + export type AsObject = { + } +} + +export class QueryCountsResponse extends jspb.Message { + getGroupCount(): number; + setGroupCount(value: number): void; + + getSigningCount(): number; + setSigningCount(value: number): void; + + getReplacementCount(): number; + setReplacementCount(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 = { + groupCount: number, + signingCount: number, + replacementCount: number, + } +} + +export class QueryGroupRequest extends jspb.Message { + getGroupId(): number; + setGroupId(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): QueryGroupRequest.AsObject; + static toObject(includeInstance: boolean, msg: QueryGroupRequest): QueryGroupRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: QueryGroupRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): QueryGroupRequest; + static deserializeBinaryFromReader(message: QueryGroupRequest, reader: jspb.BinaryReader): QueryGroupRequest; +} + +export namespace QueryGroupRequest { + export type AsObject = { + groupId: number, + } +} + +export class QueryGroupResponse extends jspb.Message { + hasGroup(): boolean; + clearGroup(): void; + getGroup(): tss_v1beta1_tss_pb.Group | undefined; + setGroup(value?: tss_v1beta1_tss_pb.Group): void; + + getDkgContext(): Uint8Array | string; + getDkgContext_asU8(): Uint8Array; + getDkgContext_asB64(): string; + setDkgContext(value: Uint8Array | string): void; + + clearMembersList(): void; + getMembersList(): Array; + setMembersList(value: Array): void; + addMembers(value?: tss_v1beta1_tss_pb.Member, index?: number): tss_v1beta1_tss_pb.Member; + + clearStatusesList(): void; + getStatusesList(): Array; + setStatusesList(value: Array): void; + addStatuses(value?: tss_v1beta1_tss_pb.Status, index?: number): tss_v1beta1_tss_pb.Status; + + clearRound1InfosList(): void; + getRound1InfosList(): Array; + setRound1InfosList(value: Array): void; + addRound1Infos(value?: tss_v1beta1_tss_pb.Round1Info, index?: number): tss_v1beta1_tss_pb.Round1Info; + + clearRound2InfosList(): void; + getRound2InfosList(): Array; + setRound2InfosList(value: Array): void; + addRound2Infos(value?: tss_v1beta1_tss_pb.Round2Info, index?: number): tss_v1beta1_tss_pb.Round2Info; + + clearComplaintsWithStatusList(): void; + getComplaintsWithStatusList(): Array; + setComplaintsWithStatusList(value: Array): void; + addComplaintsWithStatus(value?: tss_v1beta1_tss_pb.ComplaintsWithStatus, index?: number): tss_v1beta1_tss_pb.ComplaintsWithStatus; + + clearConfirmsList(): void; + getConfirmsList(): Array; + setConfirmsList(value: Array): void; + addConfirms(value?: tss_v1beta1_tss_pb.Confirm, index?: number): tss_v1beta1_tss_pb.Confirm; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): QueryGroupResponse.AsObject; + static toObject(includeInstance: boolean, msg: QueryGroupResponse): QueryGroupResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: QueryGroupResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): QueryGroupResponse; + static deserializeBinaryFromReader(message: QueryGroupResponse, reader: jspb.BinaryReader): QueryGroupResponse; +} + +export namespace QueryGroupResponse { + export type AsObject = { + group?: tss_v1beta1_tss_pb.Group.AsObject, + dkgContext: Uint8Array | string, + membersList: Array, + statusesList: Array, + round1InfosList: Array, + round2InfosList: Array, + complaintsWithStatusList: Array, + confirmsList: Array, + } +} + +export class QueryMembersRequest extends jspb.Message { + getGroupId(): number; + setGroupId(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): QueryMembersRequest.AsObject; + static toObject(includeInstance: boolean, msg: QueryMembersRequest): QueryMembersRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: QueryMembersRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): QueryMembersRequest; + static deserializeBinaryFromReader(message: QueryMembersRequest, reader: jspb.BinaryReader): QueryMembersRequest; +} + +export namespace QueryMembersRequest { + export type AsObject = { + groupId: number, + } +} + +export class QueryMembersResponse extends jspb.Message { + clearMembersList(): void; + getMembersList(): Array; + setMembersList(value: Array): void; + addMembers(value?: tss_v1beta1_tss_pb.Member, index?: number): tss_v1beta1_tss_pb.Member; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): QueryMembersResponse.AsObject; + static toObject(includeInstance: boolean, msg: QueryMembersResponse): QueryMembersResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: QueryMembersResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): QueryMembersResponse; + static deserializeBinaryFromReader(message: QueryMembersResponse, reader: jspb.BinaryReader): QueryMembersResponse; +} + +export namespace QueryMembersResponse { + export type AsObject = { + membersList: Array, + } +} + +export class QueryIsGranteeRequest extends jspb.Message { + getGranter(): string; + setGranter(value: string): void; + + getGrantee(): string; + setGrantee(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): QueryIsGranteeRequest.AsObject; + static toObject(includeInstance: boolean, msg: QueryIsGranteeRequest): QueryIsGranteeRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: QueryIsGranteeRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): QueryIsGranteeRequest; + static deserializeBinaryFromReader(message: QueryIsGranteeRequest, reader: jspb.BinaryReader): QueryIsGranteeRequest; +} + +export namespace QueryIsGranteeRequest { + export type AsObject = { + granter: string, + grantee: string, + } +} + +export class QueryIsGranteeResponse extends jspb.Message { + getIsGrantee(): boolean; + setIsGrantee(value: boolean): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): QueryIsGranteeResponse.AsObject; + static toObject(includeInstance: boolean, msg: QueryIsGranteeResponse): QueryIsGranteeResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: QueryIsGranteeResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): QueryIsGranteeResponse; + static deserializeBinaryFromReader(message: QueryIsGranteeResponse, reader: jspb.BinaryReader): QueryIsGranteeResponse; +} + +export namespace QueryIsGranteeResponse { + export type AsObject = { + isGrantee: boolean, + } +} + +export class QueryDERequest extends jspb.Message { + getAddress(): string; + setAddress(value: string): void; + + hasPagination(): boolean; + clearPagination(): void; + getPagination(): cosmos_base_query_v1beta1_pagination_pb.PageRequest | undefined; + setPagination(value?: cosmos_base_query_v1beta1_pagination_pb.PageRequest): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): QueryDERequest.AsObject; + static toObject(includeInstance: boolean, msg: QueryDERequest): QueryDERequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: QueryDERequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): QueryDERequest; + static deserializeBinaryFromReader(message: QueryDERequest, reader: jspb.BinaryReader): QueryDERequest; +} + +export namespace QueryDERequest { + export type AsObject = { + address: string, + pagination?: cosmos_base_query_v1beta1_pagination_pb.PageRequest.AsObject, + } +} + +export class QueryDEResponse extends jspb.Message { + clearDesList(): void; + getDesList(): Array; + setDesList(value: Array): void; + addDes(value?: tss_v1beta1_tss_pb.DE, index?: number): tss_v1beta1_tss_pb.DE; + + hasPagination(): boolean; + clearPagination(): void; + getPagination(): cosmos_base_query_v1beta1_pagination_pb.PageResponse | undefined; + setPagination(value?: cosmos_base_query_v1beta1_pagination_pb.PageResponse): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): QueryDEResponse.AsObject; + static toObject(includeInstance: boolean, msg: QueryDEResponse): QueryDEResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: QueryDEResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): QueryDEResponse; + static deserializeBinaryFromReader(message: QueryDEResponse, reader: jspb.BinaryReader): QueryDEResponse; +} + +export namespace QueryDEResponse { + export type AsObject = { + desList: Array, + pagination?: cosmos_base_query_v1beta1_pagination_pb.PageResponse.AsObject, + } +} + +export class QueryPendingGroupsRequest extends jspb.Message { + getAddress(): string; + setAddress(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): QueryPendingGroupsRequest.AsObject; + static toObject(includeInstance: boolean, msg: QueryPendingGroupsRequest): QueryPendingGroupsRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: QueryPendingGroupsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): QueryPendingGroupsRequest; + static deserializeBinaryFromReader(message: QueryPendingGroupsRequest, reader: jspb.BinaryReader): QueryPendingGroupsRequest; +} + +export namespace QueryPendingGroupsRequest { + export type AsObject = { + address: string, + } +} + +export class QueryPendingGroupsResponse extends jspb.Message { + clearPendingGroupsList(): void; + getPendingGroupsList(): Array; + setPendingGroupsList(value: Array): void; + addPendingGroups(value: number, index?: number): number; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): QueryPendingGroupsResponse.AsObject; + static toObject(includeInstance: boolean, msg: QueryPendingGroupsResponse): QueryPendingGroupsResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: QueryPendingGroupsResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): QueryPendingGroupsResponse; + static deserializeBinaryFromReader(message: QueryPendingGroupsResponse, reader: jspb.BinaryReader): QueryPendingGroupsResponse; +} + +export namespace QueryPendingGroupsResponse { + export type AsObject = { + pendingGroupsList: Array, + } +} + +export class QueryPendingSigningsRequest extends jspb.Message { + getAddress(): string; + setAddress(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): QueryPendingSigningsRequest.AsObject; + static toObject(includeInstance: boolean, msg: QueryPendingSigningsRequest): QueryPendingSigningsRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: QueryPendingSigningsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): QueryPendingSigningsRequest; + static deserializeBinaryFromReader(message: QueryPendingSigningsRequest, reader: jspb.BinaryReader): QueryPendingSigningsRequest; +} + +export namespace QueryPendingSigningsRequest { + export type AsObject = { + address: string, + } +} + +export class QueryPendingSigningsResponse extends jspb.Message { + clearPendingSigningsList(): void; + getPendingSigningsList(): Array; + setPendingSigningsList(value: Array): void; + addPendingSignings(value: number, index?: number): number; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): QueryPendingSigningsResponse.AsObject; + static toObject(includeInstance: boolean, msg: QueryPendingSigningsResponse): QueryPendingSigningsResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: QueryPendingSigningsResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): QueryPendingSigningsResponse; + static deserializeBinaryFromReader(message: QueryPendingSigningsResponse, reader: jspb.BinaryReader): QueryPendingSigningsResponse; +} + +export namespace QueryPendingSigningsResponse { + export type AsObject = { + pendingSigningsList: Array, + } +} + +export class QuerySigningRequest extends jspb.Message { + getSigningId(): number; + setSigningId(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): QuerySigningRequest.AsObject; + static toObject(includeInstance: boolean, msg: QuerySigningRequest): QuerySigningRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: QuerySigningRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): QuerySigningRequest; + static deserializeBinaryFromReader(message: QuerySigningRequest, reader: jspb.BinaryReader): QuerySigningRequest; +} + +export namespace QuerySigningRequest { + export type AsObject = { + signingId: number, + } +} + +export class QuerySigningResponse extends jspb.Message { + hasSigning(): boolean; + clearSigning(): void; + getSigning(): tss_v1beta1_tss_pb.Signing | undefined; + setSigning(value?: tss_v1beta1_tss_pb.Signing): void; + + hasEvmSignature(): boolean; + clearEvmSignature(): void; + getEvmSignature(): tss_v1beta1_tss_pb.EVMSignature | undefined; + setEvmSignature(value?: tss_v1beta1_tss_pb.EVMSignature): void; + + clearReceivedPartialSignaturesList(): void; + getReceivedPartialSignaturesList(): Array; + setReceivedPartialSignaturesList(value: Array): void; + addReceivedPartialSignatures(value?: tss_v1beta1_tss_pb.PartialSignature, index?: number): tss_v1beta1_tss_pb.PartialSignature; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): QuerySigningResponse.AsObject; + static toObject(includeInstance: boolean, msg: QuerySigningResponse): QuerySigningResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: QuerySigningResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): QuerySigningResponse; + static deserializeBinaryFromReader(message: QuerySigningResponse, reader: jspb.BinaryReader): QuerySigningResponse; +} + +export namespace QuerySigningResponse { + export type AsObject = { + signing?: tss_v1beta1_tss_pb.Signing.AsObject, + evmSignature?: tss_v1beta1_tss_pb.EVMSignature.AsObject, + receivedPartialSignaturesList: Array, + } +} + +export class QueryStatusesRequest extends jspb.Message { + getStatus(): tss_v1beta1_tss_pb.MemberStatusMap[keyof tss_v1beta1_tss_pb.MemberStatusMap]; + setStatus(value: tss_v1beta1_tss_pb.MemberStatusMap[keyof tss_v1beta1_tss_pb.MemberStatusMap]): void; + + hasPagination(): boolean; + clearPagination(): void; + getPagination(): cosmos_base_query_v1beta1_pagination_pb.PageRequest | undefined; + setPagination(value?: cosmos_base_query_v1beta1_pagination_pb.PageRequest): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): QueryStatusesRequest.AsObject; + static toObject(includeInstance: boolean, msg: QueryStatusesRequest): QueryStatusesRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: QueryStatusesRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): QueryStatusesRequest; + static deserializeBinaryFromReader(message: QueryStatusesRequest, reader: jspb.BinaryReader): QueryStatusesRequest; +} + +export namespace QueryStatusesRequest { + export type AsObject = { + status: tss_v1beta1_tss_pb.MemberStatusMap[keyof tss_v1beta1_tss_pb.MemberStatusMap], + pagination?: cosmos_base_query_v1beta1_pagination_pb.PageRequest.AsObject, + } +} + +export class QueryStatusesResponse extends jspb.Message { + clearStatusesList(): void; + getStatusesList(): Array; + setStatusesList(value: Array): void; + addStatuses(value?: tss_v1beta1_tss_pb.Status, index?: number): tss_v1beta1_tss_pb.Status; + + hasPagination(): boolean; + clearPagination(): void; + getPagination(): cosmos_base_query_v1beta1_pagination_pb.PageResponse | undefined; + setPagination(value?: cosmos_base_query_v1beta1_pagination_pb.PageResponse): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): QueryStatusesResponse.AsObject; + static toObject(includeInstance: boolean, msg: QueryStatusesResponse): QueryStatusesResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: QueryStatusesResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): QueryStatusesResponse; + static deserializeBinaryFromReader(message: QueryStatusesResponse, reader: jspb.BinaryReader): QueryStatusesResponse; +} + +export namespace QueryStatusesResponse { + export type AsObject = { + statusesList: Array, + pagination?: cosmos_base_query_v1beta1_pagination_pb.PageResponse.AsObject, + } +} + +export class QueryStatusRequest extends jspb.Message { + getAddress(): string; + setAddress(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): QueryStatusRequest.AsObject; + static toObject(includeInstance: boolean, msg: QueryStatusRequest): QueryStatusRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: QueryStatusRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): QueryStatusRequest; + static deserializeBinaryFromReader(message: QueryStatusRequest, reader: jspb.BinaryReader): QueryStatusRequest; +} + +export namespace QueryStatusRequest { + export type AsObject = { + address: string, + } +} + +export class QueryStatusResponse extends jspb.Message { + hasStatus(): boolean; + clearStatus(): void; + getStatus(): tss_v1beta1_tss_pb.Status | undefined; + setStatus(value?: tss_v1beta1_tss_pb.Status): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): QueryStatusResponse.AsObject; + static toObject(includeInstance: boolean, msg: QueryStatusResponse): QueryStatusResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: QueryStatusResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): QueryStatusResponse; + static deserializeBinaryFromReader(message: QueryStatusResponse, reader: jspb.BinaryReader): QueryStatusResponse; +} + +export namespace QueryStatusResponse { + export type AsObject = { + status?: tss_v1beta1_tss_pb.Status.AsObject, + } +} + +export class QueryReplacementsRequest extends jspb.Message { + getStatus(): tss_v1beta1_tss_pb.ReplacementStatusMap[keyof tss_v1beta1_tss_pb.ReplacementStatusMap]; + setStatus(value: tss_v1beta1_tss_pb.ReplacementStatusMap[keyof tss_v1beta1_tss_pb.ReplacementStatusMap]): void; + + hasPagination(): boolean; + clearPagination(): void; + getPagination(): cosmos_base_query_v1beta1_pagination_pb.PageRequest | undefined; + setPagination(value?: cosmos_base_query_v1beta1_pagination_pb.PageRequest): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): QueryReplacementsRequest.AsObject; + static toObject(includeInstance: boolean, msg: QueryReplacementsRequest): QueryReplacementsRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: QueryReplacementsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): QueryReplacementsRequest; + static deserializeBinaryFromReader(message: QueryReplacementsRequest, reader: jspb.BinaryReader): QueryReplacementsRequest; +} + +export namespace QueryReplacementsRequest { + export type AsObject = { + status: tss_v1beta1_tss_pb.ReplacementStatusMap[keyof tss_v1beta1_tss_pb.ReplacementStatusMap], + pagination?: cosmos_base_query_v1beta1_pagination_pb.PageRequest.AsObject, + } +} + +export class QueryReplacementsResponse extends jspb.Message { + clearReplacementsList(): void; + getReplacementsList(): Array; + setReplacementsList(value: Array): void; + addReplacements(value?: tss_v1beta1_tss_pb.Replacement, index?: number): tss_v1beta1_tss_pb.Replacement; + + hasPagination(): boolean; + clearPagination(): void; + getPagination(): cosmos_base_query_v1beta1_pagination_pb.PageResponse | undefined; + setPagination(value?: cosmos_base_query_v1beta1_pagination_pb.PageResponse): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): QueryReplacementsResponse.AsObject; + static toObject(includeInstance: boolean, msg: QueryReplacementsResponse): QueryReplacementsResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: QueryReplacementsResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): QueryReplacementsResponse; + static deserializeBinaryFromReader(message: QueryReplacementsResponse, reader: jspb.BinaryReader): QueryReplacementsResponse; +} + +export namespace QueryReplacementsResponse { + export type AsObject = { + replacementsList: Array, + pagination?: cosmos_base_query_v1beta1_pagination_pb.PageResponse.AsObject, + } +} + +export class QueryReplacementRequest extends jspb.Message { + getId(): number; + setId(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): QueryReplacementRequest.AsObject; + static toObject(includeInstance: boolean, msg: QueryReplacementRequest): QueryReplacementRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: QueryReplacementRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): QueryReplacementRequest; + static deserializeBinaryFromReader(message: QueryReplacementRequest, reader: jspb.BinaryReader): QueryReplacementRequest; +} + +export namespace QueryReplacementRequest { + export type AsObject = { + id: number, + } +} + +export class QueryReplacementResponse extends jspb.Message { + hasReplacement(): boolean; + clearReplacement(): void; + getReplacement(): tss_v1beta1_tss_pb.Replacement | undefined; + setReplacement(value?: tss_v1beta1_tss_pb.Replacement): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): QueryReplacementResponse.AsObject; + static toObject(includeInstance: boolean, msg: QueryReplacementResponse): QueryReplacementResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: QueryReplacementResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): QueryReplacementResponse; + static deserializeBinaryFromReader(message: QueryReplacementResponse, reader: jspb.BinaryReader): QueryReplacementResponse; +} + +export namespace QueryReplacementResponse { + export type AsObject = { + replacement?: tss_v1beta1_tss_pb.Replacement.AsObject, + } +} + diff --git a/proto/tss/v1beta1/query_pb.js b/proto/tss/v1beta1/query_pb.js new file mode 100644 index 0000000..7eed1e1 --- /dev/null +++ b/proto/tss/v1beta1/query_pb.js @@ -0,0 +1,4791 @@ +// source: tss/v1beta1/query.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* 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_query_v1beta1_pagination_pb = require('../../cosmos/base/query/v1beta1/pagination_pb.js'); +goog.object.extend(proto, cosmos_base_query_v1beta1_pagination_pb); +var google_api_annotations_pb = require('../../google/api/annotations_pb.js'); +goog.object.extend(proto, google_api_annotations_pb); +var tss_v1beta1_tss_pb = require('../../tss/v1beta1/tss_pb.js'); +goog.object.extend(proto, tss_v1beta1_tss_pb); +goog.exportSymbol('proto.tss.v1beta1.QueryCountsRequest', null, global); +goog.exportSymbol('proto.tss.v1beta1.QueryCountsResponse', null, global); +goog.exportSymbol('proto.tss.v1beta1.QueryDERequest', null, global); +goog.exportSymbol('proto.tss.v1beta1.QueryDEResponse', null, global); +goog.exportSymbol('proto.tss.v1beta1.QueryGroupRequest', null, global); +goog.exportSymbol('proto.tss.v1beta1.QueryGroupResponse', null, global); +goog.exportSymbol('proto.tss.v1beta1.QueryIsGranteeRequest', null, global); +goog.exportSymbol('proto.tss.v1beta1.QueryIsGranteeResponse', null, global); +goog.exportSymbol('proto.tss.v1beta1.QueryMembersRequest', null, global); +goog.exportSymbol('proto.tss.v1beta1.QueryMembersResponse', null, global); +goog.exportSymbol('proto.tss.v1beta1.QueryPendingGroupsRequest', null, global); +goog.exportSymbol('proto.tss.v1beta1.QueryPendingGroupsResponse', null, global); +goog.exportSymbol('proto.tss.v1beta1.QueryPendingSigningsRequest', null, global); +goog.exportSymbol('proto.tss.v1beta1.QueryPendingSigningsResponse', null, global); +goog.exportSymbol('proto.tss.v1beta1.QueryReplacementRequest', null, global); +goog.exportSymbol('proto.tss.v1beta1.QueryReplacementResponse', null, global); +goog.exportSymbol('proto.tss.v1beta1.QueryReplacementsRequest', null, global); +goog.exportSymbol('proto.tss.v1beta1.QueryReplacementsResponse', null, global); +goog.exportSymbol('proto.tss.v1beta1.QuerySigningRequest', null, global); +goog.exportSymbol('proto.tss.v1beta1.QuerySigningResponse', null, global); +goog.exportSymbol('proto.tss.v1beta1.QueryStatusRequest', null, global); +goog.exportSymbol('proto.tss.v1beta1.QueryStatusResponse', null, global); +goog.exportSymbol('proto.tss.v1beta1.QueryStatusesRequest', null, global); +goog.exportSymbol('proto.tss.v1beta1.QueryStatusesResponse', null, global); +/** + * 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.tss.v1beta1.QueryCountsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.tss.v1beta1.QueryCountsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.QueryCountsRequest.displayName = 'proto.tss.v1beta1.QueryCountsRequest'; +} +/** + * 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.tss.v1beta1.QueryCountsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.tss.v1beta1.QueryCountsResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.QueryCountsResponse.displayName = 'proto.tss.v1beta1.QueryCountsResponse'; +} +/** + * 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.tss.v1beta1.QueryGroupRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.tss.v1beta1.QueryGroupRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.QueryGroupRequest.displayName = 'proto.tss.v1beta1.QueryGroupRequest'; +} +/** + * 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.tss.v1beta1.QueryGroupResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.tss.v1beta1.QueryGroupResponse.repeatedFields_, null); +}; +goog.inherits(proto.tss.v1beta1.QueryGroupResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.QueryGroupResponse.displayName = 'proto.tss.v1beta1.QueryGroupResponse'; +} +/** + * 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.tss.v1beta1.QueryMembersRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.tss.v1beta1.QueryMembersRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.QueryMembersRequest.displayName = 'proto.tss.v1beta1.QueryMembersRequest'; +} +/** + * 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.tss.v1beta1.QueryMembersResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.tss.v1beta1.QueryMembersResponse.repeatedFields_, null); +}; +goog.inherits(proto.tss.v1beta1.QueryMembersResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.QueryMembersResponse.displayName = 'proto.tss.v1beta1.QueryMembersResponse'; +} +/** + * 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.tss.v1beta1.QueryIsGranteeRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.tss.v1beta1.QueryIsGranteeRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.QueryIsGranteeRequest.displayName = 'proto.tss.v1beta1.QueryIsGranteeRequest'; +} +/** + * 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.tss.v1beta1.QueryIsGranteeResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.tss.v1beta1.QueryIsGranteeResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.QueryIsGranteeResponse.displayName = 'proto.tss.v1beta1.QueryIsGranteeResponse'; +} +/** + * 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.tss.v1beta1.QueryDERequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.tss.v1beta1.QueryDERequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.QueryDERequest.displayName = 'proto.tss.v1beta1.QueryDERequest'; +} +/** + * 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.tss.v1beta1.QueryDEResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.tss.v1beta1.QueryDEResponse.repeatedFields_, null); +}; +goog.inherits(proto.tss.v1beta1.QueryDEResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.QueryDEResponse.displayName = 'proto.tss.v1beta1.QueryDEResponse'; +} +/** + * 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.tss.v1beta1.QueryPendingGroupsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.tss.v1beta1.QueryPendingGroupsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.QueryPendingGroupsRequest.displayName = 'proto.tss.v1beta1.QueryPendingGroupsRequest'; +} +/** + * 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.tss.v1beta1.QueryPendingGroupsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.tss.v1beta1.QueryPendingGroupsResponse.repeatedFields_, null); +}; +goog.inherits(proto.tss.v1beta1.QueryPendingGroupsResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.QueryPendingGroupsResponse.displayName = 'proto.tss.v1beta1.QueryPendingGroupsResponse'; +} +/** + * 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.tss.v1beta1.QueryPendingSigningsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.tss.v1beta1.QueryPendingSigningsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.QueryPendingSigningsRequest.displayName = 'proto.tss.v1beta1.QueryPendingSigningsRequest'; +} +/** + * 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.tss.v1beta1.QueryPendingSigningsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.tss.v1beta1.QueryPendingSigningsResponse.repeatedFields_, null); +}; +goog.inherits(proto.tss.v1beta1.QueryPendingSigningsResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.QueryPendingSigningsResponse.displayName = 'proto.tss.v1beta1.QueryPendingSigningsResponse'; +} +/** + * 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.tss.v1beta1.QuerySigningRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.tss.v1beta1.QuerySigningRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.QuerySigningRequest.displayName = 'proto.tss.v1beta1.QuerySigningRequest'; +} +/** + * 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.tss.v1beta1.QuerySigningResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.tss.v1beta1.QuerySigningResponse.repeatedFields_, null); +}; +goog.inherits(proto.tss.v1beta1.QuerySigningResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.QuerySigningResponse.displayName = 'proto.tss.v1beta1.QuerySigningResponse'; +} +/** + * 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.tss.v1beta1.QueryStatusesRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.tss.v1beta1.QueryStatusesRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.QueryStatusesRequest.displayName = 'proto.tss.v1beta1.QueryStatusesRequest'; +} +/** + * 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.tss.v1beta1.QueryStatusesResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.tss.v1beta1.QueryStatusesResponse.repeatedFields_, null); +}; +goog.inherits(proto.tss.v1beta1.QueryStatusesResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.QueryStatusesResponse.displayName = 'proto.tss.v1beta1.QueryStatusesResponse'; +} +/** + * 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.tss.v1beta1.QueryStatusRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.tss.v1beta1.QueryStatusRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.QueryStatusRequest.displayName = 'proto.tss.v1beta1.QueryStatusRequest'; +} +/** + * 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.tss.v1beta1.QueryStatusResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.tss.v1beta1.QueryStatusResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.QueryStatusResponse.displayName = 'proto.tss.v1beta1.QueryStatusResponse'; +} +/** + * 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.tss.v1beta1.QueryReplacementsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.tss.v1beta1.QueryReplacementsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.QueryReplacementsRequest.displayName = 'proto.tss.v1beta1.QueryReplacementsRequest'; +} +/** + * 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.tss.v1beta1.QueryReplacementsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.tss.v1beta1.QueryReplacementsResponse.repeatedFields_, null); +}; +goog.inherits(proto.tss.v1beta1.QueryReplacementsResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.QueryReplacementsResponse.displayName = 'proto.tss.v1beta1.QueryReplacementsResponse'; +} +/** + * 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.tss.v1beta1.QueryReplacementRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.tss.v1beta1.QueryReplacementRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.QueryReplacementRequest.displayName = 'proto.tss.v1beta1.QueryReplacementRequest'; +} +/** + * 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.tss.v1beta1.QueryReplacementResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.tss.v1beta1.QueryReplacementResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.QueryReplacementResponse.displayName = 'proto.tss.v1beta1.QueryReplacementResponse'; +} + + + +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.tss.v1beta1.QueryCountsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.tss.v1beta1.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.tss.v1beta1.QueryCountsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.QueryCountsRequest.toObject = function(includeInstance, msg) { + var f, 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.tss.v1beta1.QueryCountsRequest} + */ +proto.tss.v1beta1.QueryCountsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.QueryCountsRequest; + return proto.tss.v1beta1.QueryCountsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.QueryCountsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.QueryCountsRequest} + */ +proto.tss.v1beta1.QueryCountsRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.QueryCountsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.QueryCountsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.QueryCountsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.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.tss.v1beta1.QueryCountsResponse.prototype.toObject = function(opt_includeInstance) { + return proto.tss.v1beta1.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.tss.v1beta1.QueryCountsResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.QueryCountsResponse.toObject = function(includeInstance, msg) { + var f, obj = { + groupCount: jspb.Message.getFieldWithDefault(msg, 1, 0), + signingCount: jspb.Message.getFieldWithDefault(msg, 2, 0), + replacementCount: jspb.Message.getFieldWithDefault(msg, 3, 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.tss.v1beta1.QueryCountsResponse} + */ +proto.tss.v1beta1.QueryCountsResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.QueryCountsResponse; + return proto.tss.v1beta1.QueryCountsResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.QueryCountsResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.QueryCountsResponse} + */ +proto.tss.v1beta1.QueryCountsResponse.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.setGroupCount(value); + break; + case 2: + var value = /** @type {number} */ (reader.readUint64()); + msg.setSigningCount(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint64()); + msg.setReplacementCount(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.QueryCountsResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.QueryCountsResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.QueryCountsResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.QueryCountsResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getGroupCount(); + if (f !== 0) { + writer.writeUint64( + 1, + f + ); + } + f = message.getSigningCount(); + if (f !== 0) { + writer.writeUint64( + 2, + f + ); + } + f = message.getReplacementCount(); + if (f !== 0) { + writer.writeUint64( + 3, + f + ); + } +}; + + +/** + * optional uint64 group_count = 1; + * @return {number} + */ +proto.tss.v1beta1.QueryCountsResponse.prototype.getGroupCount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.tss.v1beta1.QueryCountsResponse} returns this + */ +proto.tss.v1beta1.QueryCountsResponse.prototype.setGroupCount = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional uint64 signing_count = 2; + * @return {number} + */ +proto.tss.v1beta1.QueryCountsResponse.prototype.getSigningCount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.tss.v1beta1.QueryCountsResponse} returns this + */ +proto.tss.v1beta1.QueryCountsResponse.prototype.setSigningCount = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional uint64 replacement_count = 3; + * @return {number} + */ +proto.tss.v1beta1.QueryCountsResponse.prototype.getReplacementCount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.tss.v1beta1.QueryCountsResponse} returns this + */ +proto.tss.v1beta1.QueryCountsResponse.prototype.setReplacementCount = 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.tss.v1beta1.QueryGroupRequest.prototype.toObject = function(opt_includeInstance) { + return proto.tss.v1beta1.QueryGroupRequest.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.tss.v1beta1.QueryGroupRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.QueryGroupRequest.toObject = function(includeInstance, msg) { + var f, obj = { + groupId: jspb.Message.getFieldWithDefault(msg, 1, 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.tss.v1beta1.QueryGroupRequest} + */ +proto.tss.v1beta1.QueryGroupRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.QueryGroupRequest; + return proto.tss.v1beta1.QueryGroupRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.QueryGroupRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.QueryGroupRequest} + */ +proto.tss.v1beta1.QueryGroupRequest.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.setGroupId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.QueryGroupRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.QueryGroupRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.QueryGroupRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.QueryGroupRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getGroupId(); + if (f !== 0) { + writer.writeUint64( + 1, + f + ); + } +}; + + +/** + * optional uint64 group_id = 1; + * @return {number} + */ +proto.tss.v1beta1.QueryGroupRequest.prototype.getGroupId = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.tss.v1beta1.QueryGroupRequest} returns this + */ +proto.tss.v1beta1.QueryGroupRequest.prototype.setGroupId = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.tss.v1beta1.QueryGroupResponse.repeatedFields_ = [3,4,5,6,7,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.tss.v1beta1.QueryGroupResponse.prototype.toObject = function(opt_includeInstance) { + return proto.tss.v1beta1.QueryGroupResponse.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.tss.v1beta1.QueryGroupResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.QueryGroupResponse.toObject = function(includeInstance, msg) { + var f, obj = { + group: (f = msg.getGroup()) && tss_v1beta1_tss_pb.Group.toObject(includeInstance, f), + dkgContext: msg.getDkgContext_asB64(), + membersList: jspb.Message.toObjectList(msg.getMembersList(), + tss_v1beta1_tss_pb.Member.toObject, includeInstance), + statusesList: jspb.Message.toObjectList(msg.getStatusesList(), + tss_v1beta1_tss_pb.Status.toObject, includeInstance), + round1InfosList: jspb.Message.toObjectList(msg.getRound1InfosList(), + tss_v1beta1_tss_pb.Round1Info.toObject, includeInstance), + round2InfosList: jspb.Message.toObjectList(msg.getRound2InfosList(), + tss_v1beta1_tss_pb.Round2Info.toObject, includeInstance), + complaintsWithStatusList: jspb.Message.toObjectList(msg.getComplaintsWithStatusList(), + tss_v1beta1_tss_pb.ComplaintsWithStatus.toObject, includeInstance), + confirmsList: jspb.Message.toObjectList(msg.getConfirmsList(), + tss_v1beta1_tss_pb.Confirm.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.tss.v1beta1.QueryGroupResponse} + */ +proto.tss.v1beta1.QueryGroupResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.QueryGroupResponse; + return proto.tss.v1beta1.QueryGroupResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.QueryGroupResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.QueryGroupResponse} + */ +proto.tss.v1beta1.QueryGroupResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new tss_v1beta1_tss_pb.Group; + reader.readMessage(value,tss_v1beta1_tss_pb.Group.deserializeBinaryFromReader); + msg.setGroup(value); + break; + case 2: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setDkgContext(value); + break; + case 3: + var value = new tss_v1beta1_tss_pb.Member; + reader.readMessage(value,tss_v1beta1_tss_pb.Member.deserializeBinaryFromReader); + msg.addMembers(value); + break; + case 4: + var value = new tss_v1beta1_tss_pb.Status; + reader.readMessage(value,tss_v1beta1_tss_pb.Status.deserializeBinaryFromReader); + msg.addStatuses(value); + break; + case 5: + var value = new tss_v1beta1_tss_pb.Round1Info; + reader.readMessage(value,tss_v1beta1_tss_pb.Round1Info.deserializeBinaryFromReader); + msg.addRound1Infos(value); + break; + case 6: + var value = new tss_v1beta1_tss_pb.Round2Info; + reader.readMessage(value,tss_v1beta1_tss_pb.Round2Info.deserializeBinaryFromReader); + msg.addRound2Infos(value); + break; + case 7: + var value = new tss_v1beta1_tss_pb.ComplaintsWithStatus; + reader.readMessage(value,tss_v1beta1_tss_pb.ComplaintsWithStatus.deserializeBinaryFromReader); + msg.addComplaintsWithStatus(value); + break; + case 8: + var value = new tss_v1beta1_tss_pb.Confirm; + reader.readMessage(value,tss_v1beta1_tss_pb.Confirm.deserializeBinaryFromReader); + msg.addConfirms(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.QueryGroupResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.QueryGroupResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.QueryGroupResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.QueryGroupResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getGroup(); + if (f != null) { + writer.writeMessage( + 1, + f, + tss_v1beta1_tss_pb.Group.serializeBinaryToWriter + ); + } + f = message.getDkgContext_asU8(); + if (f.length > 0) { + writer.writeBytes( + 2, + f + ); + } + f = message.getMembersList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 3, + f, + tss_v1beta1_tss_pb.Member.serializeBinaryToWriter + ); + } + f = message.getStatusesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 4, + f, + tss_v1beta1_tss_pb.Status.serializeBinaryToWriter + ); + } + f = message.getRound1InfosList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 5, + f, + tss_v1beta1_tss_pb.Round1Info.serializeBinaryToWriter + ); + } + f = message.getRound2InfosList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 6, + f, + tss_v1beta1_tss_pb.Round2Info.serializeBinaryToWriter + ); + } + f = message.getComplaintsWithStatusList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 7, + f, + tss_v1beta1_tss_pb.ComplaintsWithStatus.serializeBinaryToWriter + ); + } + f = message.getConfirmsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 8, + f, + tss_v1beta1_tss_pb.Confirm.serializeBinaryToWriter + ); + } +}; + + +/** + * optional Group group = 1; + * @return {?proto.tss.v1beta1.Group} + */ +proto.tss.v1beta1.QueryGroupResponse.prototype.getGroup = function() { + return /** @type{?proto.tss.v1beta1.Group} */ ( + jspb.Message.getWrapperField(this, tss_v1beta1_tss_pb.Group, 1)); +}; + + +/** + * @param {?proto.tss.v1beta1.Group|undefined} value + * @return {!proto.tss.v1beta1.QueryGroupResponse} returns this +*/ +proto.tss.v1beta1.QueryGroupResponse.prototype.setGroup = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.tss.v1beta1.QueryGroupResponse} returns this + */ +proto.tss.v1beta1.QueryGroupResponse.prototype.clearGroup = function() { + return this.setGroup(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.tss.v1beta1.QueryGroupResponse.prototype.hasGroup = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional bytes dkg_context = 2; + * @return {!(string|Uint8Array)} + */ +proto.tss.v1beta1.QueryGroupResponse.prototype.getDkgContext = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * optional bytes dkg_context = 2; + * This is a type-conversion wrapper around `getDkgContext()` + * @return {string} + */ +proto.tss.v1beta1.QueryGroupResponse.prototype.getDkgContext_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getDkgContext())); +}; + + +/** + * optional bytes dkg_context = 2; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getDkgContext()` + * @return {!Uint8Array} + */ +proto.tss.v1beta1.QueryGroupResponse.prototype.getDkgContext_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getDkgContext())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.tss.v1beta1.QueryGroupResponse} returns this + */ +proto.tss.v1beta1.QueryGroupResponse.prototype.setDkgContext = function(value) { + return jspb.Message.setProto3BytesField(this, 2, value); +}; + + +/** + * repeated Member members = 3; + * @return {!Array} + */ +proto.tss.v1beta1.QueryGroupResponse.prototype.getMembersList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, tss_v1beta1_tss_pb.Member, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.tss.v1beta1.QueryGroupResponse} returns this +*/ +proto.tss.v1beta1.QueryGroupResponse.prototype.setMembersList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); +}; + + +/** + * @param {!proto.tss.v1beta1.Member=} opt_value + * @param {number=} opt_index + * @return {!proto.tss.v1beta1.Member} + */ +proto.tss.v1beta1.QueryGroupResponse.prototype.addMembers = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.tss.v1beta1.Member, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.tss.v1beta1.QueryGroupResponse} returns this + */ +proto.tss.v1beta1.QueryGroupResponse.prototype.clearMembersList = function() { + return this.setMembersList([]); +}; + + +/** + * repeated Status statuses = 4; + * @return {!Array} + */ +proto.tss.v1beta1.QueryGroupResponse.prototype.getStatusesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, tss_v1beta1_tss_pb.Status, 4)); +}; + + +/** + * @param {!Array} value + * @return {!proto.tss.v1beta1.QueryGroupResponse} returns this +*/ +proto.tss.v1beta1.QueryGroupResponse.prototype.setStatusesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 4, value); +}; + + +/** + * @param {!proto.tss.v1beta1.Status=} opt_value + * @param {number=} opt_index + * @return {!proto.tss.v1beta1.Status} + */ +proto.tss.v1beta1.QueryGroupResponse.prototype.addStatuses = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.tss.v1beta1.Status, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.tss.v1beta1.QueryGroupResponse} returns this + */ +proto.tss.v1beta1.QueryGroupResponse.prototype.clearStatusesList = function() { + return this.setStatusesList([]); +}; + + +/** + * repeated Round1Info round1_infos = 5; + * @return {!Array} + */ +proto.tss.v1beta1.QueryGroupResponse.prototype.getRound1InfosList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, tss_v1beta1_tss_pb.Round1Info, 5)); +}; + + +/** + * @param {!Array} value + * @return {!proto.tss.v1beta1.QueryGroupResponse} returns this +*/ +proto.tss.v1beta1.QueryGroupResponse.prototype.setRound1InfosList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 5, value); +}; + + +/** + * @param {!proto.tss.v1beta1.Round1Info=} opt_value + * @param {number=} opt_index + * @return {!proto.tss.v1beta1.Round1Info} + */ +proto.tss.v1beta1.QueryGroupResponse.prototype.addRound1Infos = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.tss.v1beta1.Round1Info, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.tss.v1beta1.QueryGroupResponse} returns this + */ +proto.tss.v1beta1.QueryGroupResponse.prototype.clearRound1InfosList = function() { + return this.setRound1InfosList([]); +}; + + +/** + * repeated Round2Info round2_infos = 6; + * @return {!Array} + */ +proto.tss.v1beta1.QueryGroupResponse.prototype.getRound2InfosList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, tss_v1beta1_tss_pb.Round2Info, 6)); +}; + + +/** + * @param {!Array} value + * @return {!proto.tss.v1beta1.QueryGroupResponse} returns this +*/ +proto.tss.v1beta1.QueryGroupResponse.prototype.setRound2InfosList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 6, value); +}; + + +/** + * @param {!proto.tss.v1beta1.Round2Info=} opt_value + * @param {number=} opt_index + * @return {!proto.tss.v1beta1.Round2Info} + */ +proto.tss.v1beta1.QueryGroupResponse.prototype.addRound2Infos = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.tss.v1beta1.Round2Info, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.tss.v1beta1.QueryGroupResponse} returns this + */ +proto.tss.v1beta1.QueryGroupResponse.prototype.clearRound2InfosList = function() { + return this.setRound2InfosList([]); +}; + + +/** + * repeated ComplaintsWithStatus complaints_with_status = 7; + * @return {!Array} + */ +proto.tss.v1beta1.QueryGroupResponse.prototype.getComplaintsWithStatusList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, tss_v1beta1_tss_pb.ComplaintsWithStatus, 7)); +}; + + +/** + * @param {!Array} value + * @return {!proto.tss.v1beta1.QueryGroupResponse} returns this +*/ +proto.tss.v1beta1.QueryGroupResponse.prototype.setComplaintsWithStatusList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 7, value); +}; + + +/** + * @param {!proto.tss.v1beta1.ComplaintsWithStatus=} opt_value + * @param {number=} opt_index + * @return {!proto.tss.v1beta1.ComplaintsWithStatus} + */ +proto.tss.v1beta1.QueryGroupResponse.prototype.addComplaintsWithStatus = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.tss.v1beta1.ComplaintsWithStatus, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.tss.v1beta1.QueryGroupResponse} returns this + */ +proto.tss.v1beta1.QueryGroupResponse.prototype.clearComplaintsWithStatusList = function() { + return this.setComplaintsWithStatusList([]); +}; + + +/** + * repeated Confirm confirms = 8; + * @return {!Array} + */ +proto.tss.v1beta1.QueryGroupResponse.prototype.getConfirmsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, tss_v1beta1_tss_pb.Confirm, 8)); +}; + + +/** + * @param {!Array} value + * @return {!proto.tss.v1beta1.QueryGroupResponse} returns this +*/ +proto.tss.v1beta1.QueryGroupResponse.prototype.setConfirmsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 8, value); +}; + + +/** + * @param {!proto.tss.v1beta1.Confirm=} opt_value + * @param {number=} opt_index + * @return {!proto.tss.v1beta1.Confirm} + */ +proto.tss.v1beta1.QueryGroupResponse.prototype.addConfirms = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 8, opt_value, proto.tss.v1beta1.Confirm, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.tss.v1beta1.QueryGroupResponse} returns this + */ +proto.tss.v1beta1.QueryGroupResponse.prototype.clearConfirmsList = function() { + return this.setConfirmsList([]); +}; + + + + + +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.tss.v1beta1.QueryMembersRequest.prototype.toObject = function(opt_includeInstance) { + return proto.tss.v1beta1.QueryMembersRequest.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.tss.v1beta1.QueryMembersRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.QueryMembersRequest.toObject = function(includeInstance, msg) { + var f, obj = { + groupId: jspb.Message.getFieldWithDefault(msg, 1, 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.tss.v1beta1.QueryMembersRequest} + */ +proto.tss.v1beta1.QueryMembersRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.QueryMembersRequest; + return proto.tss.v1beta1.QueryMembersRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.QueryMembersRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.QueryMembersRequest} + */ +proto.tss.v1beta1.QueryMembersRequest.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.setGroupId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.QueryMembersRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.QueryMembersRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.QueryMembersRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.QueryMembersRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getGroupId(); + if (f !== 0) { + writer.writeUint64( + 1, + f + ); + } +}; + + +/** + * optional uint64 group_id = 1; + * @return {number} + */ +proto.tss.v1beta1.QueryMembersRequest.prototype.getGroupId = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.tss.v1beta1.QueryMembersRequest} returns this + */ +proto.tss.v1beta1.QueryMembersRequest.prototype.setGroupId = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.tss.v1beta1.QueryMembersResponse.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.tss.v1beta1.QueryMembersResponse.prototype.toObject = function(opt_includeInstance) { + return proto.tss.v1beta1.QueryMembersResponse.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.tss.v1beta1.QueryMembersResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.QueryMembersResponse.toObject = function(includeInstance, msg) { + var f, obj = { + membersList: jspb.Message.toObjectList(msg.getMembersList(), + tss_v1beta1_tss_pb.Member.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.tss.v1beta1.QueryMembersResponse} + */ +proto.tss.v1beta1.QueryMembersResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.QueryMembersResponse; + return proto.tss.v1beta1.QueryMembersResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.QueryMembersResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.QueryMembersResponse} + */ +proto.tss.v1beta1.QueryMembersResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new tss_v1beta1_tss_pb.Member; + reader.readMessage(value,tss_v1beta1_tss_pb.Member.deserializeBinaryFromReader); + msg.addMembers(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.QueryMembersResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.QueryMembersResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.QueryMembersResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.QueryMembersResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMembersList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + tss_v1beta1_tss_pb.Member.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated Member members = 1; + * @return {!Array} + */ +proto.tss.v1beta1.QueryMembersResponse.prototype.getMembersList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, tss_v1beta1_tss_pb.Member, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.tss.v1beta1.QueryMembersResponse} returns this +*/ +proto.tss.v1beta1.QueryMembersResponse.prototype.setMembersList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.tss.v1beta1.Member=} opt_value + * @param {number=} opt_index + * @return {!proto.tss.v1beta1.Member} + */ +proto.tss.v1beta1.QueryMembersResponse.prototype.addMembers = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.tss.v1beta1.Member, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.tss.v1beta1.QueryMembersResponse} returns this + */ +proto.tss.v1beta1.QueryMembersResponse.prototype.clearMembersList = function() { + return this.setMembersList([]); +}; + + + + + +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.tss.v1beta1.QueryIsGranteeRequest.prototype.toObject = function(opt_includeInstance) { + return proto.tss.v1beta1.QueryIsGranteeRequest.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.tss.v1beta1.QueryIsGranteeRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.QueryIsGranteeRequest.toObject = function(includeInstance, msg) { + var f, obj = { + granter: jspb.Message.getFieldWithDefault(msg, 1, ""), + grantee: jspb.Message.getFieldWithDefault(msg, 2, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.tss.v1beta1.QueryIsGranteeRequest} + */ +proto.tss.v1beta1.QueryIsGranteeRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.QueryIsGranteeRequest; + return proto.tss.v1beta1.QueryIsGranteeRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.QueryIsGranteeRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.QueryIsGranteeRequest} + */ +proto.tss.v1beta1.QueryIsGranteeRequest.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.setGranter(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setGrantee(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.QueryIsGranteeRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.QueryIsGranteeRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.QueryIsGranteeRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.QueryIsGranteeRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getGranter(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getGrantee(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } +}; + + +/** + * optional string granter = 1; + * @return {string} + */ +proto.tss.v1beta1.QueryIsGranteeRequest.prototype.getGranter = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.tss.v1beta1.QueryIsGranteeRequest} returns this + */ +proto.tss.v1beta1.QueryIsGranteeRequest.prototype.setGranter = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string grantee = 2; + * @return {string} + */ +proto.tss.v1beta1.QueryIsGranteeRequest.prototype.getGrantee = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.tss.v1beta1.QueryIsGranteeRequest} returns this + */ +proto.tss.v1beta1.QueryIsGranteeRequest.prototype.setGrantee = 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.tss.v1beta1.QueryIsGranteeResponse.prototype.toObject = function(opt_includeInstance) { + return proto.tss.v1beta1.QueryIsGranteeResponse.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.tss.v1beta1.QueryIsGranteeResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.QueryIsGranteeResponse.toObject = function(includeInstance, msg) { + var f, obj = { + isGrantee: jspb.Message.getBooleanFieldWithDefault(msg, 1, false) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.tss.v1beta1.QueryIsGranteeResponse} + */ +proto.tss.v1beta1.QueryIsGranteeResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.QueryIsGranteeResponse; + return proto.tss.v1beta1.QueryIsGranteeResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.QueryIsGranteeResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.QueryIsGranteeResponse} + */ +proto.tss.v1beta1.QueryIsGranteeResponse.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.setIsGrantee(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.QueryIsGranteeResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.QueryIsGranteeResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.QueryIsGranteeResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.QueryIsGranteeResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getIsGrantee(); + if (f) { + writer.writeBool( + 1, + f + ); + } +}; + + +/** + * optional bool is_grantee = 1; + * @return {boolean} + */ +proto.tss.v1beta1.QueryIsGranteeResponse.prototype.getIsGrantee = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.tss.v1beta1.QueryIsGranteeResponse} returns this + */ +proto.tss.v1beta1.QueryIsGranteeResponse.prototype.setIsGrantee = 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.tss.v1beta1.QueryDERequest.prototype.toObject = function(opt_includeInstance) { + return proto.tss.v1beta1.QueryDERequest.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.tss.v1beta1.QueryDERequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.QueryDERequest.toObject = function(includeInstance, msg) { + var f, obj = { + address: jspb.Message.getFieldWithDefault(msg, 1, ""), + pagination: (f = msg.getPagination()) && cosmos_base_query_v1beta1_pagination_pb.PageRequest.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.tss.v1beta1.QueryDERequest} + */ +proto.tss.v1beta1.QueryDERequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.QueryDERequest; + return proto.tss.v1beta1.QueryDERequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.QueryDERequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.QueryDERequest} + */ +proto.tss.v1beta1.QueryDERequest.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 = new cosmos_base_query_v1beta1_pagination_pb.PageRequest; + reader.readMessage(value,cosmos_base_query_v1beta1_pagination_pb.PageRequest.deserializeBinaryFromReader); + msg.setPagination(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.QueryDERequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.QueryDERequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.QueryDERequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.QueryDERequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getAddress(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getPagination(); + if (f != null) { + writer.writeMessage( + 2, + f, + cosmos_base_query_v1beta1_pagination_pb.PageRequest.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string address = 1; + * @return {string} + */ +proto.tss.v1beta1.QueryDERequest.prototype.getAddress = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.tss.v1beta1.QueryDERequest} returns this + */ +proto.tss.v1beta1.QueryDERequest.prototype.setAddress = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional cosmos.base.query.v1beta1.PageRequest pagination = 2; + * @return {?proto.cosmos.base.query.v1beta1.PageRequest} + */ +proto.tss.v1beta1.QueryDERequest.prototype.getPagination = function() { + return /** @type{?proto.cosmos.base.query.v1beta1.PageRequest} */ ( + jspb.Message.getWrapperField(this, cosmos_base_query_v1beta1_pagination_pb.PageRequest, 2)); +}; + + +/** + * @param {?proto.cosmos.base.query.v1beta1.PageRequest|undefined} value + * @return {!proto.tss.v1beta1.QueryDERequest} returns this +*/ +proto.tss.v1beta1.QueryDERequest.prototype.setPagination = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.tss.v1beta1.QueryDERequest} returns this + */ +proto.tss.v1beta1.QueryDERequest.prototype.clearPagination = function() { + return this.setPagination(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.tss.v1beta1.QueryDERequest.prototype.hasPagination = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.tss.v1beta1.QueryDEResponse.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.tss.v1beta1.QueryDEResponse.prototype.toObject = function(opt_includeInstance) { + return proto.tss.v1beta1.QueryDEResponse.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.tss.v1beta1.QueryDEResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.QueryDEResponse.toObject = function(includeInstance, msg) { + var f, obj = { + desList: jspb.Message.toObjectList(msg.getDesList(), + tss_v1beta1_tss_pb.DE.toObject, includeInstance), + pagination: (f = msg.getPagination()) && cosmos_base_query_v1beta1_pagination_pb.PageResponse.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.tss.v1beta1.QueryDEResponse} + */ +proto.tss.v1beta1.QueryDEResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.QueryDEResponse; + return proto.tss.v1beta1.QueryDEResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.QueryDEResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.QueryDEResponse} + */ +proto.tss.v1beta1.QueryDEResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new tss_v1beta1_tss_pb.DE; + reader.readMessage(value,tss_v1beta1_tss_pb.DE.deserializeBinaryFromReader); + msg.addDes(value); + break; + case 2: + var value = new cosmos_base_query_v1beta1_pagination_pb.PageResponse; + reader.readMessage(value,cosmos_base_query_v1beta1_pagination_pb.PageResponse.deserializeBinaryFromReader); + msg.setPagination(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.QueryDEResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.QueryDEResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.QueryDEResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.QueryDEResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getDesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + tss_v1beta1_tss_pb.DE.serializeBinaryToWriter + ); + } + f = message.getPagination(); + if (f != null) { + writer.writeMessage( + 2, + f, + cosmos_base_query_v1beta1_pagination_pb.PageResponse.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated DE des = 1; + * @return {!Array} + */ +proto.tss.v1beta1.QueryDEResponse.prototype.getDesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, tss_v1beta1_tss_pb.DE, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.tss.v1beta1.QueryDEResponse} returns this +*/ +proto.tss.v1beta1.QueryDEResponse.prototype.setDesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.tss.v1beta1.DE=} opt_value + * @param {number=} opt_index + * @return {!proto.tss.v1beta1.DE} + */ +proto.tss.v1beta1.QueryDEResponse.prototype.addDes = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.tss.v1beta1.DE, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.tss.v1beta1.QueryDEResponse} returns this + */ +proto.tss.v1beta1.QueryDEResponse.prototype.clearDesList = function() { + return this.setDesList([]); +}; + + +/** + * optional cosmos.base.query.v1beta1.PageResponse pagination = 2; + * @return {?proto.cosmos.base.query.v1beta1.PageResponse} + */ +proto.tss.v1beta1.QueryDEResponse.prototype.getPagination = function() { + return /** @type{?proto.cosmos.base.query.v1beta1.PageResponse} */ ( + jspb.Message.getWrapperField(this, cosmos_base_query_v1beta1_pagination_pb.PageResponse, 2)); +}; + + +/** + * @param {?proto.cosmos.base.query.v1beta1.PageResponse|undefined} value + * @return {!proto.tss.v1beta1.QueryDEResponse} returns this +*/ +proto.tss.v1beta1.QueryDEResponse.prototype.setPagination = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.tss.v1beta1.QueryDEResponse} returns this + */ +proto.tss.v1beta1.QueryDEResponse.prototype.clearPagination = function() { + return this.setPagination(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.tss.v1beta1.QueryDEResponse.prototype.hasPagination = 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.tss.v1beta1.QueryPendingGroupsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.tss.v1beta1.QueryPendingGroupsRequest.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.tss.v1beta1.QueryPendingGroupsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.QueryPendingGroupsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + address: jspb.Message.getFieldWithDefault(msg, 1, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.tss.v1beta1.QueryPendingGroupsRequest} + */ +proto.tss.v1beta1.QueryPendingGroupsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.QueryPendingGroupsRequest; + return proto.tss.v1beta1.QueryPendingGroupsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.QueryPendingGroupsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.QueryPendingGroupsRequest} + */ +proto.tss.v1beta1.QueryPendingGroupsRequest.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; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.QueryPendingGroupsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.QueryPendingGroupsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.QueryPendingGroupsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.QueryPendingGroupsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getAddress(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string address = 1; + * @return {string} + */ +proto.tss.v1beta1.QueryPendingGroupsRequest.prototype.getAddress = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.tss.v1beta1.QueryPendingGroupsRequest} returns this + */ +proto.tss.v1beta1.QueryPendingGroupsRequest.prototype.setAddress = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.tss.v1beta1.QueryPendingGroupsResponse.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.tss.v1beta1.QueryPendingGroupsResponse.prototype.toObject = function(opt_includeInstance) { + return proto.tss.v1beta1.QueryPendingGroupsResponse.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.tss.v1beta1.QueryPendingGroupsResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.QueryPendingGroupsResponse.toObject = function(includeInstance, msg) { + var f, obj = { + pendingGroupsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : 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.tss.v1beta1.QueryPendingGroupsResponse} + */ +proto.tss.v1beta1.QueryPendingGroupsResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.QueryPendingGroupsResponse; + return proto.tss.v1beta1.QueryPendingGroupsResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.QueryPendingGroupsResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.QueryPendingGroupsResponse} + */ +proto.tss.v1beta1.QueryPendingGroupsResponse.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.addPendingGroups(values[i]); + } + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.QueryPendingGroupsResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.QueryPendingGroupsResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.QueryPendingGroupsResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.QueryPendingGroupsResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getPendingGroupsList(); + if (f.length > 0) { + writer.writePackedUint64( + 1, + f + ); + } +}; + + +/** + * repeated uint64 pending_groups = 1; + * @return {!Array} + */ +proto.tss.v1beta1.QueryPendingGroupsResponse.prototype.getPendingGroupsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.tss.v1beta1.QueryPendingGroupsResponse} returns this + */ +proto.tss.v1beta1.QueryPendingGroupsResponse.prototype.setPendingGroupsList = function(value) { + return jspb.Message.setField(this, 1, value || []); +}; + + +/** + * @param {number} value + * @param {number=} opt_index + * @return {!proto.tss.v1beta1.QueryPendingGroupsResponse} returns this + */ +proto.tss.v1beta1.QueryPendingGroupsResponse.prototype.addPendingGroups = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 1, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.tss.v1beta1.QueryPendingGroupsResponse} returns this + */ +proto.tss.v1beta1.QueryPendingGroupsResponse.prototype.clearPendingGroupsList = function() { + return this.setPendingGroupsList([]); +}; + + + + + +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.tss.v1beta1.QueryPendingSigningsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.tss.v1beta1.QueryPendingSigningsRequest.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.tss.v1beta1.QueryPendingSigningsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.QueryPendingSigningsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + address: jspb.Message.getFieldWithDefault(msg, 1, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.tss.v1beta1.QueryPendingSigningsRequest} + */ +proto.tss.v1beta1.QueryPendingSigningsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.QueryPendingSigningsRequest; + return proto.tss.v1beta1.QueryPendingSigningsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.QueryPendingSigningsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.QueryPendingSigningsRequest} + */ +proto.tss.v1beta1.QueryPendingSigningsRequest.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; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.QueryPendingSigningsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.QueryPendingSigningsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.QueryPendingSigningsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.QueryPendingSigningsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getAddress(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string address = 1; + * @return {string} + */ +proto.tss.v1beta1.QueryPendingSigningsRequest.prototype.getAddress = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.tss.v1beta1.QueryPendingSigningsRequest} returns this + */ +proto.tss.v1beta1.QueryPendingSigningsRequest.prototype.setAddress = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.tss.v1beta1.QueryPendingSigningsResponse.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.tss.v1beta1.QueryPendingSigningsResponse.prototype.toObject = function(opt_includeInstance) { + return proto.tss.v1beta1.QueryPendingSigningsResponse.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.tss.v1beta1.QueryPendingSigningsResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.QueryPendingSigningsResponse.toObject = function(includeInstance, msg) { + var f, obj = { + pendingSigningsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : 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.tss.v1beta1.QueryPendingSigningsResponse} + */ +proto.tss.v1beta1.QueryPendingSigningsResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.QueryPendingSigningsResponse; + return proto.tss.v1beta1.QueryPendingSigningsResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.QueryPendingSigningsResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.QueryPendingSigningsResponse} + */ +proto.tss.v1beta1.QueryPendingSigningsResponse.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.addPendingSignings(values[i]); + } + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.QueryPendingSigningsResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.QueryPendingSigningsResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.QueryPendingSigningsResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.QueryPendingSigningsResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getPendingSigningsList(); + if (f.length > 0) { + writer.writePackedUint64( + 1, + f + ); + } +}; + + +/** + * repeated uint64 pending_signings = 1; + * @return {!Array} + */ +proto.tss.v1beta1.QueryPendingSigningsResponse.prototype.getPendingSigningsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.tss.v1beta1.QueryPendingSigningsResponse} returns this + */ +proto.tss.v1beta1.QueryPendingSigningsResponse.prototype.setPendingSigningsList = function(value) { + return jspb.Message.setField(this, 1, value || []); +}; + + +/** + * @param {number} value + * @param {number=} opt_index + * @return {!proto.tss.v1beta1.QueryPendingSigningsResponse} returns this + */ +proto.tss.v1beta1.QueryPendingSigningsResponse.prototype.addPendingSignings = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 1, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.tss.v1beta1.QueryPendingSigningsResponse} returns this + */ +proto.tss.v1beta1.QueryPendingSigningsResponse.prototype.clearPendingSigningsList = function() { + return this.setPendingSigningsList([]); +}; + + + + + +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.tss.v1beta1.QuerySigningRequest.prototype.toObject = function(opt_includeInstance) { + return proto.tss.v1beta1.QuerySigningRequest.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.tss.v1beta1.QuerySigningRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.QuerySigningRequest.toObject = function(includeInstance, msg) { + var f, obj = { + signingId: jspb.Message.getFieldWithDefault(msg, 1, 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.tss.v1beta1.QuerySigningRequest} + */ +proto.tss.v1beta1.QuerySigningRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.QuerySigningRequest; + return proto.tss.v1beta1.QuerySigningRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.QuerySigningRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.QuerySigningRequest} + */ +proto.tss.v1beta1.QuerySigningRequest.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; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.QuerySigningRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.QuerySigningRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.QuerySigningRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.QuerySigningRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSigningId(); + if (f !== 0) { + writer.writeUint64( + 1, + f + ); + } +}; + + +/** + * optional uint64 signing_id = 1; + * @return {number} + */ +proto.tss.v1beta1.QuerySigningRequest.prototype.getSigningId = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.tss.v1beta1.QuerySigningRequest} returns this + */ +proto.tss.v1beta1.QuerySigningRequest.prototype.setSigningId = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.tss.v1beta1.QuerySigningResponse.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.tss.v1beta1.QuerySigningResponse.prototype.toObject = function(opt_includeInstance) { + return proto.tss.v1beta1.QuerySigningResponse.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.tss.v1beta1.QuerySigningResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.QuerySigningResponse.toObject = function(includeInstance, msg) { + var f, obj = { + signing: (f = msg.getSigning()) && tss_v1beta1_tss_pb.Signing.toObject(includeInstance, f), + evmSignature: (f = msg.getEvmSignature()) && tss_v1beta1_tss_pb.EVMSignature.toObject(includeInstance, f), + receivedPartialSignaturesList: jspb.Message.toObjectList(msg.getReceivedPartialSignaturesList(), + tss_v1beta1_tss_pb.PartialSignature.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.tss.v1beta1.QuerySigningResponse} + */ +proto.tss.v1beta1.QuerySigningResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.QuerySigningResponse; + return proto.tss.v1beta1.QuerySigningResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.QuerySigningResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.QuerySigningResponse} + */ +proto.tss.v1beta1.QuerySigningResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new tss_v1beta1_tss_pb.Signing; + reader.readMessage(value,tss_v1beta1_tss_pb.Signing.deserializeBinaryFromReader); + msg.setSigning(value); + break; + case 2: + var value = new tss_v1beta1_tss_pb.EVMSignature; + reader.readMessage(value,tss_v1beta1_tss_pb.EVMSignature.deserializeBinaryFromReader); + msg.setEvmSignature(value); + break; + case 3: + var value = new tss_v1beta1_tss_pb.PartialSignature; + reader.readMessage(value,tss_v1beta1_tss_pb.PartialSignature.deserializeBinaryFromReader); + msg.addReceivedPartialSignatures(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.QuerySigningResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.QuerySigningResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.QuerySigningResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.QuerySigningResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSigning(); + if (f != null) { + writer.writeMessage( + 1, + f, + tss_v1beta1_tss_pb.Signing.serializeBinaryToWriter + ); + } + f = message.getEvmSignature(); + if (f != null) { + writer.writeMessage( + 2, + f, + tss_v1beta1_tss_pb.EVMSignature.serializeBinaryToWriter + ); + } + f = message.getReceivedPartialSignaturesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 3, + f, + tss_v1beta1_tss_pb.PartialSignature.serializeBinaryToWriter + ); + } +}; + + +/** + * optional Signing signing = 1; + * @return {?proto.tss.v1beta1.Signing} + */ +proto.tss.v1beta1.QuerySigningResponse.prototype.getSigning = function() { + return /** @type{?proto.tss.v1beta1.Signing} */ ( + jspb.Message.getWrapperField(this, tss_v1beta1_tss_pb.Signing, 1)); +}; + + +/** + * @param {?proto.tss.v1beta1.Signing|undefined} value + * @return {!proto.tss.v1beta1.QuerySigningResponse} returns this +*/ +proto.tss.v1beta1.QuerySigningResponse.prototype.setSigning = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.tss.v1beta1.QuerySigningResponse} returns this + */ +proto.tss.v1beta1.QuerySigningResponse.prototype.clearSigning = function() { + return this.setSigning(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.tss.v1beta1.QuerySigningResponse.prototype.hasSigning = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional EVMSignature evm_signature = 2; + * @return {?proto.tss.v1beta1.EVMSignature} + */ +proto.tss.v1beta1.QuerySigningResponse.prototype.getEvmSignature = function() { + return /** @type{?proto.tss.v1beta1.EVMSignature} */ ( + jspb.Message.getWrapperField(this, tss_v1beta1_tss_pb.EVMSignature, 2)); +}; + + +/** + * @param {?proto.tss.v1beta1.EVMSignature|undefined} value + * @return {!proto.tss.v1beta1.QuerySigningResponse} returns this +*/ +proto.tss.v1beta1.QuerySigningResponse.prototype.setEvmSignature = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.tss.v1beta1.QuerySigningResponse} returns this + */ +proto.tss.v1beta1.QuerySigningResponse.prototype.clearEvmSignature = function() { + return this.setEvmSignature(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.tss.v1beta1.QuerySigningResponse.prototype.hasEvmSignature = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * repeated PartialSignature received_partial_signatures = 3; + * @return {!Array} + */ +proto.tss.v1beta1.QuerySigningResponse.prototype.getReceivedPartialSignaturesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, tss_v1beta1_tss_pb.PartialSignature, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.tss.v1beta1.QuerySigningResponse} returns this +*/ +proto.tss.v1beta1.QuerySigningResponse.prototype.setReceivedPartialSignaturesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); +}; + + +/** + * @param {!proto.tss.v1beta1.PartialSignature=} opt_value + * @param {number=} opt_index + * @return {!proto.tss.v1beta1.PartialSignature} + */ +proto.tss.v1beta1.QuerySigningResponse.prototype.addReceivedPartialSignatures = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.tss.v1beta1.PartialSignature, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.tss.v1beta1.QuerySigningResponse} returns this + */ +proto.tss.v1beta1.QuerySigningResponse.prototype.clearReceivedPartialSignaturesList = function() { + return this.setReceivedPartialSignaturesList([]); +}; + + + + + +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.tss.v1beta1.QueryStatusesRequest.prototype.toObject = function(opt_includeInstance) { + return proto.tss.v1beta1.QueryStatusesRequest.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.tss.v1beta1.QueryStatusesRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.QueryStatusesRequest.toObject = function(includeInstance, msg) { + var f, obj = { + status: jspb.Message.getFieldWithDefault(msg, 1, 0), + pagination: (f = msg.getPagination()) && cosmos_base_query_v1beta1_pagination_pb.PageRequest.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.tss.v1beta1.QueryStatusesRequest} + */ +proto.tss.v1beta1.QueryStatusesRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.QueryStatusesRequest; + return proto.tss.v1beta1.QueryStatusesRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.QueryStatusesRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.QueryStatusesRequest} + */ +proto.tss.v1beta1.QueryStatusesRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {!proto.tss.v1beta1.MemberStatus} */ (reader.readEnum()); + msg.setStatus(value); + break; + case 2: + var value = new cosmos_base_query_v1beta1_pagination_pb.PageRequest; + reader.readMessage(value,cosmos_base_query_v1beta1_pagination_pb.PageRequest.deserializeBinaryFromReader); + msg.setPagination(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.QueryStatusesRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.QueryStatusesRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.QueryStatusesRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.QueryStatusesRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStatus(); + if (f !== 0.0) { + writer.writeEnum( + 1, + f + ); + } + f = message.getPagination(); + if (f != null) { + writer.writeMessage( + 2, + f, + cosmos_base_query_v1beta1_pagination_pb.PageRequest.serializeBinaryToWriter + ); + } +}; + + +/** + * optional MemberStatus status = 1; + * @return {!proto.tss.v1beta1.MemberStatus} + */ +proto.tss.v1beta1.QueryStatusesRequest.prototype.getStatus = function() { + return /** @type {!proto.tss.v1beta1.MemberStatus} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {!proto.tss.v1beta1.MemberStatus} value + * @return {!proto.tss.v1beta1.QueryStatusesRequest} returns this + */ +proto.tss.v1beta1.QueryStatusesRequest.prototype.setStatus = function(value) { + return jspb.Message.setProto3EnumField(this, 1, value); +}; + + +/** + * optional cosmos.base.query.v1beta1.PageRequest pagination = 2; + * @return {?proto.cosmos.base.query.v1beta1.PageRequest} + */ +proto.tss.v1beta1.QueryStatusesRequest.prototype.getPagination = function() { + return /** @type{?proto.cosmos.base.query.v1beta1.PageRequest} */ ( + jspb.Message.getWrapperField(this, cosmos_base_query_v1beta1_pagination_pb.PageRequest, 2)); +}; + + +/** + * @param {?proto.cosmos.base.query.v1beta1.PageRequest|undefined} value + * @return {!proto.tss.v1beta1.QueryStatusesRequest} returns this +*/ +proto.tss.v1beta1.QueryStatusesRequest.prototype.setPagination = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.tss.v1beta1.QueryStatusesRequest} returns this + */ +proto.tss.v1beta1.QueryStatusesRequest.prototype.clearPagination = function() { + return this.setPagination(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.tss.v1beta1.QueryStatusesRequest.prototype.hasPagination = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.tss.v1beta1.QueryStatusesResponse.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.tss.v1beta1.QueryStatusesResponse.prototype.toObject = function(opt_includeInstance) { + return proto.tss.v1beta1.QueryStatusesResponse.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.tss.v1beta1.QueryStatusesResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.QueryStatusesResponse.toObject = function(includeInstance, msg) { + var f, obj = { + statusesList: jspb.Message.toObjectList(msg.getStatusesList(), + tss_v1beta1_tss_pb.Status.toObject, includeInstance), + pagination: (f = msg.getPagination()) && cosmos_base_query_v1beta1_pagination_pb.PageResponse.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.tss.v1beta1.QueryStatusesResponse} + */ +proto.tss.v1beta1.QueryStatusesResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.QueryStatusesResponse; + return proto.tss.v1beta1.QueryStatusesResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.QueryStatusesResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.QueryStatusesResponse} + */ +proto.tss.v1beta1.QueryStatusesResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new tss_v1beta1_tss_pb.Status; + reader.readMessage(value,tss_v1beta1_tss_pb.Status.deserializeBinaryFromReader); + msg.addStatuses(value); + break; + case 2: + var value = new cosmos_base_query_v1beta1_pagination_pb.PageResponse; + reader.readMessage(value,cosmos_base_query_v1beta1_pagination_pb.PageResponse.deserializeBinaryFromReader); + msg.setPagination(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.QueryStatusesResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.QueryStatusesResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.QueryStatusesResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.QueryStatusesResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStatusesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + tss_v1beta1_tss_pb.Status.serializeBinaryToWriter + ); + } + f = message.getPagination(); + if (f != null) { + writer.writeMessage( + 2, + f, + cosmos_base_query_v1beta1_pagination_pb.PageResponse.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated Status statuses = 1; + * @return {!Array} + */ +proto.tss.v1beta1.QueryStatusesResponse.prototype.getStatusesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, tss_v1beta1_tss_pb.Status, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.tss.v1beta1.QueryStatusesResponse} returns this +*/ +proto.tss.v1beta1.QueryStatusesResponse.prototype.setStatusesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.tss.v1beta1.Status=} opt_value + * @param {number=} opt_index + * @return {!proto.tss.v1beta1.Status} + */ +proto.tss.v1beta1.QueryStatusesResponse.prototype.addStatuses = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.tss.v1beta1.Status, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.tss.v1beta1.QueryStatusesResponse} returns this + */ +proto.tss.v1beta1.QueryStatusesResponse.prototype.clearStatusesList = function() { + return this.setStatusesList([]); +}; + + +/** + * optional cosmos.base.query.v1beta1.PageResponse pagination = 2; + * @return {?proto.cosmos.base.query.v1beta1.PageResponse} + */ +proto.tss.v1beta1.QueryStatusesResponse.prototype.getPagination = function() { + return /** @type{?proto.cosmos.base.query.v1beta1.PageResponse} */ ( + jspb.Message.getWrapperField(this, cosmos_base_query_v1beta1_pagination_pb.PageResponse, 2)); +}; + + +/** + * @param {?proto.cosmos.base.query.v1beta1.PageResponse|undefined} value + * @return {!proto.tss.v1beta1.QueryStatusesResponse} returns this +*/ +proto.tss.v1beta1.QueryStatusesResponse.prototype.setPagination = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.tss.v1beta1.QueryStatusesResponse} returns this + */ +proto.tss.v1beta1.QueryStatusesResponse.prototype.clearPagination = function() { + return this.setPagination(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.tss.v1beta1.QueryStatusesResponse.prototype.hasPagination = 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.tss.v1beta1.QueryStatusRequest.prototype.toObject = function(opt_includeInstance) { + return proto.tss.v1beta1.QueryStatusRequest.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.tss.v1beta1.QueryStatusRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.QueryStatusRequest.toObject = function(includeInstance, msg) { + var f, obj = { + address: jspb.Message.getFieldWithDefault(msg, 1, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.tss.v1beta1.QueryStatusRequest} + */ +proto.tss.v1beta1.QueryStatusRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.QueryStatusRequest; + return proto.tss.v1beta1.QueryStatusRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.QueryStatusRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.QueryStatusRequest} + */ +proto.tss.v1beta1.QueryStatusRequest.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; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.QueryStatusRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.QueryStatusRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.QueryStatusRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.QueryStatusRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getAddress(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string address = 1; + * @return {string} + */ +proto.tss.v1beta1.QueryStatusRequest.prototype.getAddress = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.tss.v1beta1.QueryStatusRequest} returns this + */ +proto.tss.v1beta1.QueryStatusRequest.prototype.setAddress = 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.tss.v1beta1.QueryStatusResponse.prototype.toObject = function(opt_includeInstance) { + return proto.tss.v1beta1.QueryStatusResponse.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.tss.v1beta1.QueryStatusResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.QueryStatusResponse.toObject = function(includeInstance, msg) { + var f, obj = { + status: (f = msg.getStatus()) && tss_v1beta1_tss_pb.Status.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.tss.v1beta1.QueryStatusResponse} + */ +proto.tss.v1beta1.QueryStatusResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.QueryStatusResponse; + return proto.tss.v1beta1.QueryStatusResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.QueryStatusResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.QueryStatusResponse} + */ +proto.tss.v1beta1.QueryStatusResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new tss_v1beta1_tss_pb.Status; + reader.readMessage(value,tss_v1beta1_tss_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.QueryStatusResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.QueryStatusResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.QueryStatusResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.QueryStatusResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStatus(); + if (f != null) { + writer.writeMessage( + 1, + f, + tss_v1beta1_tss_pb.Status.serializeBinaryToWriter + ); + } +}; + + +/** + * optional Status status = 1; + * @return {?proto.tss.v1beta1.Status} + */ +proto.tss.v1beta1.QueryStatusResponse.prototype.getStatus = function() { + return /** @type{?proto.tss.v1beta1.Status} */ ( + jspb.Message.getWrapperField(this, tss_v1beta1_tss_pb.Status, 1)); +}; + + +/** + * @param {?proto.tss.v1beta1.Status|undefined} value + * @return {!proto.tss.v1beta1.QueryStatusResponse} returns this +*/ +proto.tss.v1beta1.QueryStatusResponse.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.tss.v1beta1.QueryStatusResponse} returns this + */ +proto.tss.v1beta1.QueryStatusResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.tss.v1beta1.QueryStatusResponse.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.tss.v1beta1.QueryReplacementsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.tss.v1beta1.QueryReplacementsRequest.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.tss.v1beta1.QueryReplacementsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.QueryReplacementsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + status: jspb.Message.getFieldWithDefault(msg, 1, 0), + pagination: (f = msg.getPagination()) && cosmos_base_query_v1beta1_pagination_pb.PageRequest.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.tss.v1beta1.QueryReplacementsRequest} + */ +proto.tss.v1beta1.QueryReplacementsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.QueryReplacementsRequest; + return proto.tss.v1beta1.QueryReplacementsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.QueryReplacementsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.QueryReplacementsRequest} + */ +proto.tss.v1beta1.QueryReplacementsRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {!proto.tss.v1beta1.ReplacementStatus} */ (reader.readEnum()); + msg.setStatus(value); + break; + case 2: + var value = new cosmos_base_query_v1beta1_pagination_pb.PageRequest; + reader.readMessage(value,cosmos_base_query_v1beta1_pagination_pb.PageRequest.deserializeBinaryFromReader); + msg.setPagination(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.QueryReplacementsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.QueryReplacementsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.QueryReplacementsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.QueryReplacementsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStatus(); + if (f !== 0.0) { + writer.writeEnum( + 1, + f + ); + } + f = message.getPagination(); + if (f != null) { + writer.writeMessage( + 2, + f, + cosmos_base_query_v1beta1_pagination_pb.PageRequest.serializeBinaryToWriter + ); + } +}; + + +/** + * optional ReplacementStatus status = 1; + * @return {!proto.tss.v1beta1.ReplacementStatus} + */ +proto.tss.v1beta1.QueryReplacementsRequest.prototype.getStatus = function() { + return /** @type {!proto.tss.v1beta1.ReplacementStatus} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {!proto.tss.v1beta1.ReplacementStatus} value + * @return {!proto.tss.v1beta1.QueryReplacementsRequest} returns this + */ +proto.tss.v1beta1.QueryReplacementsRequest.prototype.setStatus = function(value) { + return jspb.Message.setProto3EnumField(this, 1, value); +}; + + +/** + * optional cosmos.base.query.v1beta1.PageRequest pagination = 2; + * @return {?proto.cosmos.base.query.v1beta1.PageRequest} + */ +proto.tss.v1beta1.QueryReplacementsRequest.prototype.getPagination = function() { + return /** @type{?proto.cosmos.base.query.v1beta1.PageRequest} */ ( + jspb.Message.getWrapperField(this, cosmos_base_query_v1beta1_pagination_pb.PageRequest, 2)); +}; + + +/** + * @param {?proto.cosmos.base.query.v1beta1.PageRequest|undefined} value + * @return {!proto.tss.v1beta1.QueryReplacementsRequest} returns this +*/ +proto.tss.v1beta1.QueryReplacementsRequest.prototype.setPagination = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.tss.v1beta1.QueryReplacementsRequest} returns this + */ +proto.tss.v1beta1.QueryReplacementsRequest.prototype.clearPagination = function() { + return this.setPagination(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.tss.v1beta1.QueryReplacementsRequest.prototype.hasPagination = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.tss.v1beta1.QueryReplacementsResponse.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.tss.v1beta1.QueryReplacementsResponse.prototype.toObject = function(opt_includeInstance) { + return proto.tss.v1beta1.QueryReplacementsResponse.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.tss.v1beta1.QueryReplacementsResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.QueryReplacementsResponse.toObject = function(includeInstance, msg) { + var f, obj = { + replacementsList: jspb.Message.toObjectList(msg.getReplacementsList(), + tss_v1beta1_tss_pb.Replacement.toObject, includeInstance), + pagination: (f = msg.getPagination()) && cosmos_base_query_v1beta1_pagination_pb.PageResponse.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.tss.v1beta1.QueryReplacementsResponse} + */ +proto.tss.v1beta1.QueryReplacementsResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.QueryReplacementsResponse; + return proto.tss.v1beta1.QueryReplacementsResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.QueryReplacementsResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.QueryReplacementsResponse} + */ +proto.tss.v1beta1.QueryReplacementsResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new tss_v1beta1_tss_pb.Replacement; + reader.readMessage(value,tss_v1beta1_tss_pb.Replacement.deserializeBinaryFromReader); + msg.addReplacements(value); + break; + case 2: + var value = new cosmos_base_query_v1beta1_pagination_pb.PageResponse; + reader.readMessage(value,cosmos_base_query_v1beta1_pagination_pb.PageResponse.deserializeBinaryFromReader); + msg.setPagination(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.QueryReplacementsResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.QueryReplacementsResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.QueryReplacementsResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.QueryReplacementsResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getReplacementsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + tss_v1beta1_tss_pb.Replacement.serializeBinaryToWriter + ); + } + f = message.getPagination(); + if (f != null) { + writer.writeMessage( + 2, + f, + cosmos_base_query_v1beta1_pagination_pb.PageResponse.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated Replacement replacements = 1; + * @return {!Array} + */ +proto.tss.v1beta1.QueryReplacementsResponse.prototype.getReplacementsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, tss_v1beta1_tss_pb.Replacement, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.tss.v1beta1.QueryReplacementsResponse} returns this +*/ +proto.tss.v1beta1.QueryReplacementsResponse.prototype.setReplacementsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.tss.v1beta1.Replacement=} opt_value + * @param {number=} opt_index + * @return {!proto.tss.v1beta1.Replacement} + */ +proto.tss.v1beta1.QueryReplacementsResponse.prototype.addReplacements = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.tss.v1beta1.Replacement, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.tss.v1beta1.QueryReplacementsResponse} returns this + */ +proto.tss.v1beta1.QueryReplacementsResponse.prototype.clearReplacementsList = function() { + return this.setReplacementsList([]); +}; + + +/** + * optional cosmos.base.query.v1beta1.PageResponse pagination = 2; + * @return {?proto.cosmos.base.query.v1beta1.PageResponse} + */ +proto.tss.v1beta1.QueryReplacementsResponse.prototype.getPagination = function() { + return /** @type{?proto.cosmos.base.query.v1beta1.PageResponse} */ ( + jspb.Message.getWrapperField(this, cosmos_base_query_v1beta1_pagination_pb.PageResponse, 2)); +}; + + +/** + * @param {?proto.cosmos.base.query.v1beta1.PageResponse|undefined} value + * @return {!proto.tss.v1beta1.QueryReplacementsResponse} returns this +*/ +proto.tss.v1beta1.QueryReplacementsResponse.prototype.setPagination = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.tss.v1beta1.QueryReplacementsResponse} returns this + */ +proto.tss.v1beta1.QueryReplacementsResponse.prototype.clearPagination = function() { + return this.setPagination(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.tss.v1beta1.QueryReplacementsResponse.prototype.hasPagination = 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.tss.v1beta1.QueryReplacementRequest.prototype.toObject = function(opt_includeInstance) { + return proto.tss.v1beta1.QueryReplacementRequest.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.tss.v1beta1.QueryReplacementRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.QueryReplacementRequest.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, 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.tss.v1beta1.QueryReplacementRequest} + */ +proto.tss.v1beta1.QueryReplacementRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.QueryReplacementRequest; + return proto.tss.v1beta1.QueryReplacementRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.QueryReplacementRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.QueryReplacementRequest} + */ +proto.tss.v1beta1.QueryReplacementRequest.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.setId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.QueryReplacementRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.QueryReplacementRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.QueryReplacementRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.QueryReplacementRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f !== 0) { + writer.writeUint64( + 1, + f + ); + } +}; + + +/** + * optional uint64 id = 1; + * @return {number} + */ +proto.tss.v1beta1.QueryReplacementRequest.prototype.getId = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.tss.v1beta1.QueryReplacementRequest} returns this + */ +proto.tss.v1beta1.QueryReplacementRequest.prototype.setId = 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.tss.v1beta1.QueryReplacementResponse.prototype.toObject = function(opt_includeInstance) { + return proto.tss.v1beta1.QueryReplacementResponse.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.tss.v1beta1.QueryReplacementResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.QueryReplacementResponse.toObject = function(includeInstance, msg) { + var f, obj = { + replacement: (f = msg.getReplacement()) && tss_v1beta1_tss_pb.Replacement.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.tss.v1beta1.QueryReplacementResponse} + */ +proto.tss.v1beta1.QueryReplacementResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.QueryReplacementResponse; + return proto.tss.v1beta1.QueryReplacementResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.QueryReplacementResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.QueryReplacementResponse} + */ +proto.tss.v1beta1.QueryReplacementResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new tss_v1beta1_tss_pb.Replacement; + reader.readMessage(value,tss_v1beta1_tss_pb.Replacement.deserializeBinaryFromReader); + msg.setReplacement(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.QueryReplacementResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.QueryReplacementResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.QueryReplacementResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.QueryReplacementResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getReplacement(); + if (f != null) { + writer.writeMessage( + 1, + f, + tss_v1beta1_tss_pb.Replacement.serializeBinaryToWriter + ); + } +}; + + +/** + * optional Replacement replacement = 1; + * @return {?proto.tss.v1beta1.Replacement} + */ +proto.tss.v1beta1.QueryReplacementResponse.prototype.getReplacement = function() { + return /** @type{?proto.tss.v1beta1.Replacement} */ ( + jspb.Message.getWrapperField(this, tss_v1beta1_tss_pb.Replacement, 1)); +}; + + +/** + * @param {?proto.tss.v1beta1.Replacement|undefined} value + * @return {!proto.tss.v1beta1.QueryReplacementResponse} returns this +*/ +proto.tss.v1beta1.QueryReplacementResponse.prototype.setReplacement = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.tss.v1beta1.QueryReplacementResponse} returns this + */ +proto.tss.v1beta1.QueryReplacementResponse.prototype.clearReplacement = function() { + return this.setReplacement(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.tss.v1beta1.QueryReplacementResponse.prototype.hasReplacement = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +goog.object.extend(exports, proto.tss.v1beta1); diff --git a/proto/tss/v1beta1/query_pb_service.d.ts b/proto/tss/v1beta1/query_pb_service.d.ts new file mode 100644 index 0000000..107dc46 --- /dev/null +++ b/proto/tss/v1beta1/query_pb_service.d.ts @@ -0,0 +1,272 @@ +// package: tss.v1beta1 +// file: tss/v1beta1/query.proto + +import * as tss_v1beta1_query_pb from "../../tss/v1beta1/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 tss_v1beta1_query_pb.QueryCountsRequest; + readonly responseType: typeof tss_v1beta1_query_pb.QueryCountsResponse; +}; + +type QueryGroup = { + readonly methodName: string; + readonly service: typeof Query; + readonly requestStream: false; + readonly responseStream: false; + readonly requestType: typeof tss_v1beta1_query_pb.QueryGroupRequest; + readonly responseType: typeof tss_v1beta1_query_pb.QueryGroupResponse; +}; + +type QueryMembers = { + readonly methodName: string; + readonly service: typeof Query; + readonly requestStream: false; + readonly responseStream: false; + readonly requestType: typeof tss_v1beta1_query_pb.QueryMembersRequest; + readonly responseType: typeof tss_v1beta1_query_pb.QueryMembersResponse; +}; + +type QueryIsGrantee = { + readonly methodName: string; + readonly service: typeof Query; + readonly requestStream: false; + readonly responseStream: false; + readonly requestType: typeof tss_v1beta1_query_pb.QueryIsGranteeRequest; + readonly responseType: typeof tss_v1beta1_query_pb.QueryIsGranteeResponse; +}; + +type QueryDE = { + readonly methodName: string; + readonly service: typeof Query; + readonly requestStream: false; + readonly responseStream: false; + readonly requestType: typeof tss_v1beta1_query_pb.QueryDERequest; + readonly responseType: typeof tss_v1beta1_query_pb.QueryDEResponse; +}; + +type QueryPendingGroups = { + readonly methodName: string; + readonly service: typeof Query; + readonly requestStream: false; + readonly responseStream: false; + readonly requestType: typeof tss_v1beta1_query_pb.QueryPendingGroupsRequest; + readonly responseType: typeof tss_v1beta1_query_pb.QueryPendingGroupsResponse; +}; + +type QueryPendingSignings = { + readonly methodName: string; + readonly service: typeof Query; + readonly requestStream: false; + readonly responseStream: false; + readonly requestType: typeof tss_v1beta1_query_pb.QueryPendingSigningsRequest; + readonly responseType: typeof tss_v1beta1_query_pb.QueryPendingSigningsResponse; +}; + +type QuerySigning = { + readonly methodName: string; + readonly service: typeof Query; + readonly requestStream: false; + readonly responseStream: false; + readonly requestType: typeof tss_v1beta1_query_pb.QuerySigningRequest; + readonly responseType: typeof tss_v1beta1_query_pb.QuerySigningResponse; +}; + +type QueryStatuses = { + readonly methodName: string; + readonly service: typeof Query; + readonly requestStream: false; + readonly responseStream: false; + readonly requestType: typeof tss_v1beta1_query_pb.QueryStatusesRequest; + readonly responseType: typeof tss_v1beta1_query_pb.QueryStatusesResponse; +}; + +type QueryStatus = { + readonly methodName: string; + readonly service: typeof Query; + readonly requestStream: false; + readonly responseStream: false; + readonly requestType: typeof tss_v1beta1_query_pb.QueryStatusRequest; + readonly responseType: typeof tss_v1beta1_query_pb.QueryStatusResponse; +}; + +type QueryReplacements = { + readonly methodName: string; + readonly service: typeof Query; + readonly requestStream: false; + readonly responseStream: false; + readonly requestType: typeof tss_v1beta1_query_pb.QueryReplacementsRequest; + readonly responseType: typeof tss_v1beta1_query_pb.QueryReplacementsResponse; +}; + +type QueryReplacement = { + readonly methodName: string; + readonly service: typeof Query; + readonly requestStream: false; + readonly responseStream: false; + readonly requestType: typeof tss_v1beta1_query_pb.QueryReplacementRequest; + readonly responseType: typeof tss_v1beta1_query_pb.QueryReplacementResponse; +}; + +export class Query { + static readonly serviceName: string; + static readonly Counts: QueryCounts; + static readonly Group: QueryGroup; + static readonly Members: QueryMembers; + static readonly IsGrantee: QueryIsGrantee; + static readonly DE: QueryDE; + static readonly PendingGroups: QueryPendingGroups; + static readonly PendingSignings: QueryPendingSignings; + static readonly Signing: QuerySigning; + static readonly Statuses: QueryStatuses; + static readonly Status: QueryStatus; + static readonly Replacements: QueryReplacements; + static readonly Replacement: QueryReplacement; +} + +export type ServiceError = { message: string, code: number; metadata: grpc.Metadata } +export type Status = { details: string, code: number; metadata: grpc.Metadata } + +interface UnaryResponse { + 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; +} +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; +} +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; +} + +export class QueryClient { + readonly serviceHost: string; + + constructor(serviceHost: string, options?: grpc.RpcOptions); + counts( + requestMessage: tss_v1beta1_query_pb.QueryCountsRequest, + metadata: grpc.Metadata, + callback: (error: ServiceError|null, responseMessage: tss_v1beta1_query_pb.QueryCountsResponse|null) => void + ): UnaryResponse; + counts( + requestMessage: tss_v1beta1_query_pb.QueryCountsRequest, + callback: (error: ServiceError|null, responseMessage: tss_v1beta1_query_pb.QueryCountsResponse|null) => void + ): UnaryResponse; + group( + requestMessage: tss_v1beta1_query_pb.QueryGroupRequest, + metadata: grpc.Metadata, + callback: (error: ServiceError|null, responseMessage: tss_v1beta1_query_pb.QueryGroupResponse|null) => void + ): UnaryResponse; + group( + requestMessage: tss_v1beta1_query_pb.QueryGroupRequest, + callback: (error: ServiceError|null, responseMessage: tss_v1beta1_query_pb.QueryGroupResponse|null) => void + ): UnaryResponse; + members( + requestMessage: tss_v1beta1_query_pb.QueryMembersRequest, + metadata: grpc.Metadata, + callback: (error: ServiceError|null, responseMessage: tss_v1beta1_query_pb.QueryMembersResponse|null) => void + ): UnaryResponse; + members( + requestMessage: tss_v1beta1_query_pb.QueryMembersRequest, + callback: (error: ServiceError|null, responseMessage: tss_v1beta1_query_pb.QueryMembersResponse|null) => void + ): UnaryResponse; + isGrantee( + requestMessage: tss_v1beta1_query_pb.QueryIsGranteeRequest, + metadata: grpc.Metadata, + callback: (error: ServiceError|null, responseMessage: tss_v1beta1_query_pb.QueryIsGranteeResponse|null) => void + ): UnaryResponse; + isGrantee( + requestMessage: tss_v1beta1_query_pb.QueryIsGranteeRequest, + callback: (error: ServiceError|null, responseMessage: tss_v1beta1_query_pb.QueryIsGranteeResponse|null) => void + ): UnaryResponse; + dE( + requestMessage: tss_v1beta1_query_pb.QueryDERequest, + metadata: grpc.Metadata, + callback: (error: ServiceError|null, responseMessage: tss_v1beta1_query_pb.QueryDEResponse|null) => void + ): UnaryResponse; + dE( + requestMessage: tss_v1beta1_query_pb.QueryDERequest, + callback: (error: ServiceError|null, responseMessage: tss_v1beta1_query_pb.QueryDEResponse|null) => void + ): UnaryResponse; + pendingGroups( + requestMessage: tss_v1beta1_query_pb.QueryPendingGroupsRequest, + metadata: grpc.Metadata, + callback: (error: ServiceError|null, responseMessage: tss_v1beta1_query_pb.QueryPendingGroupsResponse|null) => void + ): UnaryResponse; + pendingGroups( + requestMessage: tss_v1beta1_query_pb.QueryPendingGroupsRequest, + callback: (error: ServiceError|null, responseMessage: tss_v1beta1_query_pb.QueryPendingGroupsResponse|null) => void + ): UnaryResponse; + pendingSignings( + requestMessage: tss_v1beta1_query_pb.QueryPendingSigningsRequest, + metadata: grpc.Metadata, + callback: (error: ServiceError|null, responseMessage: tss_v1beta1_query_pb.QueryPendingSigningsResponse|null) => void + ): UnaryResponse; + pendingSignings( + requestMessage: tss_v1beta1_query_pb.QueryPendingSigningsRequest, + callback: (error: ServiceError|null, responseMessage: tss_v1beta1_query_pb.QueryPendingSigningsResponse|null) => void + ): UnaryResponse; + signing( + requestMessage: tss_v1beta1_query_pb.QuerySigningRequest, + metadata: grpc.Metadata, + callback: (error: ServiceError|null, responseMessage: tss_v1beta1_query_pb.QuerySigningResponse|null) => void + ): UnaryResponse; + signing( + requestMessage: tss_v1beta1_query_pb.QuerySigningRequest, + callback: (error: ServiceError|null, responseMessage: tss_v1beta1_query_pb.QuerySigningResponse|null) => void + ): UnaryResponse; + statuses( + requestMessage: tss_v1beta1_query_pb.QueryStatusesRequest, + metadata: grpc.Metadata, + callback: (error: ServiceError|null, responseMessage: tss_v1beta1_query_pb.QueryStatusesResponse|null) => void + ): UnaryResponse; + statuses( + requestMessage: tss_v1beta1_query_pb.QueryStatusesRequest, + callback: (error: ServiceError|null, responseMessage: tss_v1beta1_query_pb.QueryStatusesResponse|null) => void + ): UnaryResponse; + status( + requestMessage: tss_v1beta1_query_pb.QueryStatusRequest, + metadata: grpc.Metadata, + callback: (error: ServiceError|null, responseMessage: tss_v1beta1_query_pb.QueryStatusResponse|null) => void + ): UnaryResponse; + status( + requestMessage: tss_v1beta1_query_pb.QueryStatusRequest, + callback: (error: ServiceError|null, responseMessage: tss_v1beta1_query_pb.QueryStatusResponse|null) => void + ): UnaryResponse; + replacements( + requestMessage: tss_v1beta1_query_pb.QueryReplacementsRequest, + metadata: grpc.Metadata, + callback: (error: ServiceError|null, responseMessage: tss_v1beta1_query_pb.QueryReplacementsResponse|null) => void + ): UnaryResponse; + replacements( + requestMessage: tss_v1beta1_query_pb.QueryReplacementsRequest, + callback: (error: ServiceError|null, responseMessage: tss_v1beta1_query_pb.QueryReplacementsResponse|null) => void + ): UnaryResponse; + replacement( + requestMessage: tss_v1beta1_query_pb.QueryReplacementRequest, + metadata: grpc.Metadata, + callback: (error: ServiceError|null, responseMessage: tss_v1beta1_query_pb.QueryReplacementResponse|null) => void + ): UnaryResponse; + replacement( + requestMessage: tss_v1beta1_query_pb.QueryReplacementRequest, + callback: (error: ServiceError|null, responseMessage: tss_v1beta1_query_pb.QueryReplacementResponse|null) => void + ): UnaryResponse; +} + diff --git a/proto/tss/v1beta1/query_pb_service.js b/proto/tss/v1beta1/query_pb_service.js new file mode 100644 index 0000000..67ad711 --- /dev/null +++ b/proto/tss/v1beta1/query_pb_service.js @@ -0,0 +1,501 @@ +// package: tss.v1beta1 +// file: tss/v1beta1/query.proto + +var tss_v1beta1_query_pb = require("../../tss/v1beta1/query_pb"); +var grpc = require("@improbable-eng/grpc-web").grpc; + +var Query = (function () { + function Query() {} + Query.serviceName = "tss.v1beta1.Query"; + return Query; +}()); + +Query.Counts = { + methodName: "Counts", + service: Query, + requestStream: false, + responseStream: false, + requestType: tss_v1beta1_query_pb.QueryCountsRequest, + responseType: tss_v1beta1_query_pb.QueryCountsResponse +}; + +Query.Group = { + methodName: "Group", + service: Query, + requestStream: false, + responseStream: false, + requestType: tss_v1beta1_query_pb.QueryGroupRequest, + responseType: tss_v1beta1_query_pb.QueryGroupResponse +}; + +Query.Members = { + methodName: "Members", + service: Query, + requestStream: false, + responseStream: false, + requestType: tss_v1beta1_query_pb.QueryMembersRequest, + responseType: tss_v1beta1_query_pb.QueryMembersResponse +}; + +Query.IsGrantee = { + methodName: "IsGrantee", + service: Query, + requestStream: false, + responseStream: false, + requestType: tss_v1beta1_query_pb.QueryIsGranteeRequest, + responseType: tss_v1beta1_query_pb.QueryIsGranteeResponse +}; + +Query.DE = { + methodName: "DE", + service: Query, + requestStream: false, + responseStream: false, + requestType: tss_v1beta1_query_pb.QueryDERequest, + responseType: tss_v1beta1_query_pb.QueryDEResponse +}; + +Query.PendingGroups = { + methodName: "PendingGroups", + service: Query, + requestStream: false, + responseStream: false, + requestType: tss_v1beta1_query_pb.QueryPendingGroupsRequest, + responseType: tss_v1beta1_query_pb.QueryPendingGroupsResponse +}; + +Query.PendingSignings = { + methodName: "PendingSignings", + service: Query, + requestStream: false, + responseStream: false, + requestType: tss_v1beta1_query_pb.QueryPendingSigningsRequest, + responseType: tss_v1beta1_query_pb.QueryPendingSigningsResponse +}; + +Query.Signing = { + methodName: "Signing", + service: Query, + requestStream: false, + responseStream: false, + requestType: tss_v1beta1_query_pb.QuerySigningRequest, + responseType: tss_v1beta1_query_pb.QuerySigningResponse +}; + +Query.Statuses = { + methodName: "Statuses", + service: Query, + requestStream: false, + responseStream: false, + requestType: tss_v1beta1_query_pb.QueryStatusesRequest, + responseType: tss_v1beta1_query_pb.QueryStatusesResponse +}; + +Query.Status = { + methodName: "Status", + service: Query, + requestStream: false, + responseStream: false, + requestType: tss_v1beta1_query_pb.QueryStatusRequest, + responseType: tss_v1beta1_query_pb.QueryStatusResponse +}; + +Query.Replacements = { + methodName: "Replacements", + service: Query, + requestStream: false, + responseStream: false, + requestType: tss_v1beta1_query_pb.QueryReplacementsRequest, + responseType: tss_v1beta1_query_pb.QueryReplacementsResponse +}; + +Query.Replacement = { + methodName: "Replacement", + service: Query, + requestStream: false, + responseStream: false, + requestType: tss_v1beta1_query_pb.QueryReplacementRequest, + responseType: tss_v1beta1_query_pb.QueryReplacementResponse +}; + +exports.Query = Query; + +function QueryClient(serviceHost, options) { + this.serviceHost = serviceHost; + this.options = options || {}; +} + +QueryClient.prototype.counts = function counts(requestMessage, metadata, callback) { + if (arguments.length === 2) { + callback = arguments[1]; + } + var client = grpc.unary(Query.Counts, { + request: requestMessage, + host: this.serviceHost, + metadata: metadata, + transport: this.options.transport, + debug: this.options.debug, + 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); + } else { + callback(null, response.message); + } + } + } + }); + return { + cancel: function () { + callback = null; + client.close(); + } + }; +}; + +QueryClient.prototype.group = function group(requestMessage, metadata, callback) { + if (arguments.length === 2) { + callback = arguments[1]; + } + var client = grpc.unary(Query.Group, { + request: requestMessage, + host: this.serviceHost, + metadata: metadata, + transport: this.options.transport, + debug: this.options.debug, + 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); + } else { + callback(null, response.message); + } + } + } + }); + return { + cancel: function () { + callback = null; + client.close(); + } + }; +}; + +QueryClient.prototype.members = function members(requestMessage, metadata, callback) { + if (arguments.length === 2) { + callback = arguments[1]; + } + var client = grpc.unary(Query.Members, { + request: requestMessage, + host: this.serviceHost, + metadata: metadata, + transport: this.options.transport, + debug: this.options.debug, + 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); + } else { + callback(null, response.message); + } + } + } + }); + return { + cancel: function () { + callback = null; + client.close(); + } + }; +}; + +QueryClient.prototype.isGrantee = function isGrantee(requestMessage, metadata, callback) { + if (arguments.length === 2) { + callback = arguments[1]; + } + var client = grpc.unary(Query.IsGrantee, { + request: requestMessage, + host: this.serviceHost, + metadata: metadata, + transport: this.options.transport, + debug: this.options.debug, + 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); + } else { + callback(null, response.message); + } + } + } + }); + return { + cancel: function () { + callback = null; + client.close(); + } + }; +}; + +QueryClient.prototype.dE = function dE(requestMessage, metadata, callback) { + if (arguments.length === 2) { + callback = arguments[1]; + } + var client = grpc.unary(Query.DE, { + request: requestMessage, + host: this.serviceHost, + metadata: metadata, + transport: this.options.transport, + debug: this.options.debug, + 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); + } else { + callback(null, response.message); + } + } + } + }); + return { + cancel: function () { + callback = null; + client.close(); + } + }; +}; + +QueryClient.prototype.pendingGroups = function pendingGroups(requestMessage, metadata, callback) { + if (arguments.length === 2) { + callback = arguments[1]; + } + var client = grpc.unary(Query.PendingGroups, { + request: requestMessage, + host: this.serviceHost, + metadata: metadata, + transport: this.options.transport, + debug: this.options.debug, + 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); + } else { + callback(null, response.message); + } + } + } + }); + return { + cancel: function () { + callback = null; + client.close(); + } + }; +}; + +QueryClient.prototype.pendingSignings = function pendingSignings(requestMessage, metadata, callback) { + if (arguments.length === 2) { + callback = arguments[1]; + } + var client = grpc.unary(Query.PendingSignings, { + request: requestMessage, + host: this.serviceHost, + metadata: metadata, + transport: this.options.transport, + debug: this.options.debug, + 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); + } else { + callback(null, response.message); + } + } + } + }); + return { + cancel: function () { + callback = null; + client.close(); + } + }; +}; + +QueryClient.prototype.signing = function signing(requestMessage, metadata, callback) { + if (arguments.length === 2) { + callback = arguments[1]; + } + var client = grpc.unary(Query.Signing, { + request: requestMessage, + host: this.serviceHost, + metadata: metadata, + transport: this.options.transport, + debug: this.options.debug, + 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); + } else { + callback(null, response.message); + } + } + } + }); + return { + cancel: function () { + callback = null; + client.close(); + } + }; +}; + +QueryClient.prototype.statuses = function statuses(requestMessage, metadata, callback) { + if (arguments.length === 2) { + callback = arguments[1]; + } + var client = grpc.unary(Query.Statuses, { + request: requestMessage, + host: this.serviceHost, + metadata: metadata, + transport: this.options.transport, + debug: this.options.debug, + 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); + } else { + callback(null, response.message); + } + } + } + }); + return { + cancel: function () { + callback = null; + client.close(); + } + }; +}; + +QueryClient.prototype.status = function status(requestMessage, metadata, callback) { + if (arguments.length === 2) { + callback = arguments[1]; + } + var client = grpc.unary(Query.Status, { + request: requestMessage, + host: this.serviceHost, + metadata: metadata, + transport: this.options.transport, + debug: this.options.debug, + 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); + } else { + callback(null, response.message); + } + } + } + }); + return { + cancel: function () { + callback = null; + client.close(); + } + }; +}; + +QueryClient.prototype.replacements = function replacements(requestMessage, metadata, callback) { + if (arguments.length === 2) { + callback = arguments[1]; + } + var client = grpc.unary(Query.Replacements, { + request: requestMessage, + host: this.serviceHost, + metadata: metadata, + transport: this.options.transport, + debug: this.options.debug, + 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); + } else { + callback(null, response.message); + } + } + } + }); + return { + cancel: function () { + callback = null; + client.close(); + } + }; +}; + +QueryClient.prototype.replacement = function replacement(requestMessage, metadata, callback) { + if (arguments.length === 2) { + callback = arguments[1]; + } + var client = grpc.unary(Query.Replacement, { + request: requestMessage, + host: this.serviceHost, + metadata: metadata, + transport: this.options.transport, + debug: this.options.debug, + 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); + } else { + callback(null, response.message); + } + } + } + }); + return { + cancel: function () { + callback = null; + client.close(); + } + }; +}; + +exports.QueryClient = QueryClient; + diff --git a/proto/tss/v1beta1/tss_pb.d.ts b/proto/tss/v1beta1/tss_pb.d.ts new file mode 100644 index 0000000..a4762e3 --- /dev/null +++ b/proto/tss/v1beta1/tss_pb.d.ts @@ -0,0 +1,750 @@ +// package: tss.v1beta1 +// file: tss/v1beta1/tss.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 cosmos_proto_cosmos_pb from "../../cosmos_proto/cosmos_pb"; + +export class Group extends jspb.Message { + getGroupId(): number; + setGroupId(value: number): void; + + getSize(): number; + setSize(value: number): void; + + getThreshold(): number; + setThreshold(value: number): void; + + getPubKey(): Uint8Array | string; + getPubKey_asU8(): Uint8Array; + getPubKey_asB64(): string; + setPubKey(value: Uint8Array | string): void; + + getStatus(): GroupStatusMap[keyof GroupStatusMap]; + setStatus(value: GroupStatusMap[keyof GroupStatusMap]): 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; + + getLatestReplacementId(): number; + setLatestReplacementId(value: number): void; + + getCreatedHeight(): number; + setCreatedHeight(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Group.AsObject; + static toObject(includeInstance: boolean, msg: Group): Group.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Group, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Group; + static deserializeBinaryFromReader(message: Group, reader: jspb.BinaryReader): Group; +} + +export namespace Group { + export type AsObject = { + groupId: number, + size: number, + threshold: number, + pubKey: Uint8Array | string, + status: GroupStatusMap[keyof GroupStatusMap], + feeList: Array, + latestReplacementId: number, + createdHeight: number, + } +} + +export class Replacement extends jspb.Message { + getId(): number; + setId(value: number): void; + + getSigningId(): number; + setSigningId(value: number): void; + + getFromGroupId(): number; + setFromGroupId(value: number): void; + + getFromPubKey(): Uint8Array | string; + getFromPubKey_asU8(): Uint8Array; + getFromPubKey_asB64(): string; + setFromPubKey(value: Uint8Array | string): void; + + getToGroupId(): number; + setToGroupId(value: number): void; + + getToPubKey(): Uint8Array | string; + getToPubKey_asU8(): Uint8Array; + getToPubKey_asB64(): string; + setToPubKey(value: Uint8Array | string): void; + + getStatus(): ReplacementStatusMap[keyof ReplacementStatusMap]; + setStatus(value: ReplacementStatusMap[keyof ReplacementStatusMap]): void; + + hasExecTime(): boolean; + clearExecTime(): void; + getExecTime(): google_protobuf_timestamp_pb.Timestamp | undefined; + setExecTime(value?: google_protobuf_timestamp_pb.Timestamp): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Replacement.AsObject; + static toObject(includeInstance: boolean, msg: Replacement): Replacement.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Replacement, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Replacement; + static deserializeBinaryFromReader(message: Replacement, reader: jspb.BinaryReader): Replacement; +} + +export namespace Replacement { + export type AsObject = { + id: number, + signingId: number, + fromGroupId: number, + fromPubKey: Uint8Array | string, + toGroupId: number, + toPubKey: Uint8Array | string, + status: ReplacementStatusMap[keyof ReplacementStatusMap], + execTime?: google_protobuf_timestamp_pb.Timestamp.AsObject, + } +} + +export class Round1Info extends jspb.Message { + getMemberId(): number; + setMemberId(value: number): void; + + clearCoefficientCommitsList(): void; + getCoefficientCommitsList(): Array; + getCoefficientCommitsList_asU8(): Array; + getCoefficientCommitsList_asB64(): Array; + setCoefficientCommitsList(value: Array): void; + addCoefficientCommits(value: Uint8Array | string, index?: number): Uint8Array | string; + + getOneTimePubKey(): Uint8Array | string; + getOneTimePubKey_asU8(): Uint8Array; + getOneTimePubKey_asB64(): string; + setOneTimePubKey(value: Uint8Array | string): void; + + getA0Signature(): Uint8Array | string; + getA0Signature_asU8(): Uint8Array; + getA0Signature_asB64(): string; + setA0Signature(value: Uint8Array | string): void; + + getOneTimeSignature(): Uint8Array | string; + getOneTimeSignature_asU8(): Uint8Array; + getOneTimeSignature_asB64(): string; + setOneTimeSignature(value: Uint8Array | string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Round1Info.AsObject; + static toObject(includeInstance: boolean, msg: Round1Info): Round1Info.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Round1Info, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Round1Info; + static deserializeBinaryFromReader(message: Round1Info, reader: jspb.BinaryReader): Round1Info; +} + +export namespace Round1Info { + export type AsObject = { + memberId: number, + coefficientCommitsList: Array, + oneTimePubKey: Uint8Array | string, + a0Signature: Uint8Array | string, + oneTimeSignature: Uint8Array | string, + } +} + +export class Round2Info extends jspb.Message { + getMemberId(): number; + setMemberId(value: number): void; + + clearEncryptedSecretSharesList(): void; + getEncryptedSecretSharesList(): Array; + getEncryptedSecretSharesList_asU8(): Array; + getEncryptedSecretSharesList_asB64(): Array; + setEncryptedSecretSharesList(value: Array): void; + addEncryptedSecretShares(value: Uint8Array | string, index?: number): Uint8Array | string; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Round2Info.AsObject; + static toObject(includeInstance: boolean, msg: Round2Info): Round2Info.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Round2Info, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Round2Info; + static deserializeBinaryFromReader(message: Round2Info, reader: jspb.BinaryReader): Round2Info; +} + +export namespace Round2Info { + export type AsObject = { + memberId: number, + encryptedSecretSharesList: Array, + } +} + +export class DE extends jspb.Message { + getPubD(): Uint8Array | string; + getPubD_asU8(): Uint8Array; + getPubD_asB64(): string; + setPubD(value: Uint8Array | string): void; + + getPubE(): Uint8Array | string; + getPubE_asU8(): Uint8Array; + getPubE_asB64(): string; + setPubE(value: Uint8Array | string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DE.AsObject; + static toObject(includeInstance: boolean, msg: DE): DE.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DE, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DE; + static deserializeBinaryFromReader(message: DE, reader: jspb.BinaryReader): DE; +} + +export namespace DE { + export type AsObject = { + pubD: Uint8Array | string, + pubE: Uint8Array | string, + } +} + +export class DEQueue extends jspb.Message { + getHead(): number; + setHead(value: number): void; + + getTail(): number; + setTail(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DEQueue.AsObject; + static toObject(includeInstance: boolean, msg: DEQueue): DEQueue.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DEQueue, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DEQueue; + static deserializeBinaryFromReader(message: DEQueue, reader: jspb.BinaryReader): DEQueue; +} + +export namespace DEQueue { + export type AsObject = { + head: number, + tail: number, + } +} + +export class Signing extends jspb.Message { + getSigningId(): number; + setSigningId(value: number): void; + + getGroupId(): number; + setGroupId(value: number): void; + + getGroupPubKey(): Uint8Array | string; + getGroupPubKey_asU8(): Uint8Array; + getGroupPubKey_asB64(): string; + setGroupPubKey(value: Uint8Array | string): void; + + clearAssignedMembersList(): void; + getAssignedMembersList(): Array; + setAssignedMembersList(value: Array): void; + addAssignedMembers(value?: AssignedMember, index?: number): AssignedMember; + + getMessage(): Uint8Array | string; + getMessage_asU8(): Uint8Array; + getMessage_asB64(): string; + setMessage(value: Uint8Array | string): void; + + getGroupPubNonce(): Uint8Array | string; + getGroupPubNonce_asU8(): Uint8Array; + getGroupPubNonce_asB64(): string; + setGroupPubNonce(value: Uint8Array | string): void; + + getSignature(): Uint8Array | string; + getSignature_asU8(): Uint8Array; + getSignature_asB64(): string; + setSignature(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; + + getStatus(): SigningStatusMap[keyof SigningStatusMap]; + setStatus(value: SigningStatusMap[keyof SigningStatusMap]): void; + + getCreatedHeight(): number; + setCreatedHeight(value: number): void; + + getRequester(): string; + setRequester(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Signing.AsObject; + static toObject(includeInstance: boolean, msg: Signing): Signing.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Signing, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Signing; + static deserializeBinaryFromReader(message: Signing, reader: jspb.BinaryReader): Signing; +} + +export namespace Signing { + export type AsObject = { + signingId: number, + groupId: number, + groupPubKey: Uint8Array | string, + assignedMembersList: Array, + message: Uint8Array | string, + groupPubNonce: Uint8Array | string, + signature: Uint8Array | string, + feeList: Array, + status: SigningStatusMap[keyof SigningStatusMap], + createdHeight: number, + requester: string, + } +} + +export class AssignedMember extends jspb.Message { + getMemberId(): number; + setMemberId(value: number): void; + + getAddress(): string; + setAddress(value: string): void; + + getPubKey(): Uint8Array | string; + getPubKey_asU8(): Uint8Array; + getPubKey_asB64(): string; + setPubKey(value: Uint8Array | string): void; + + getPubD(): Uint8Array | string; + getPubD_asU8(): Uint8Array; + getPubD_asB64(): string; + setPubD(value: Uint8Array | string): void; + + getPubE(): Uint8Array | string; + getPubE_asU8(): Uint8Array; + getPubE_asB64(): string; + setPubE(value: Uint8Array | string): void; + + getBindingFactor(): Uint8Array | string; + getBindingFactor_asU8(): Uint8Array; + getBindingFactor_asB64(): string; + setBindingFactor(value: Uint8Array | string): void; + + getPubNonce(): Uint8Array | string; + getPubNonce_asU8(): Uint8Array; + getPubNonce_asB64(): string; + setPubNonce(value: Uint8Array | string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): AssignedMember.AsObject; + static toObject(includeInstance: boolean, msg: AssignedMember): AssignedMember.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: AssignedMember, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): AssignedMember; + static deserializeBinaryFromReader(message: AssignedMember, reader: jspb.BinaryReader): AssignedMember; +} + +export namespace AssignedMember { + export type AsObject = { + memberId: number, + address: string, + pubKey: Uint8Array | string, + pubD: Uint8Array | string, + pubE: Uint8Array | string, + bindingFactor: Uint8Array | string, + pubNonce: Uint8Array | string, + } +} + +export class PendingSignings extends jspb.Message { + clearSigningIdsList(): void; + getSigningIdsList(): Array; + setSigningIdsList(value: Array): void; + addSigningIds(value: number, index?: number): number; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PendingSignings.AsObject; + static toObject(includeInstance: boolean, msg: PendingSignings): PendingSignings.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: PendingSignings, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PendingSignings; + static deserializeBinaryFromReader(message: PendingSignings, reader: jspb.BinaryReader): PendingSignings; +} + +export namespace PendingSignings { + export type AsObject = { + signingIdsList: Array, + } +} + +export class Member extends jspb.Message { + getId(): number; + setId(value: number): void; + + getAddress(): string; + setAddress(value: string): void; + + getPubKey(): Uint8Array | string; + getPubKey_asU8(): Uint8Array; + getPubKey_asB64(): string; + setPubKey(value: Uint8Array | string): void; + + getIsMalicious(): boolean; + setIsMalicious(value: boolean): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Member.AsObject; + static toObject(includeInstance: boolean, msg: Member): Member.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Member, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Member; + static deserializeBinaryFromReader(message: Member, reader: jspb.BinaryReader): Member; +} + +export namespace Member { + export type AsObject = { + id: number, + address: string, + pubKey: Uint8Array | string, + isMalicious: boolean, + } +} + +export class Status extends jspb.Message { + getAddress(): string; + setAddress(value: string): void; + + getStatus(): MemberStatusMap[keyof MemberStatusMap]; + setStatus(value: MemberStatusMap[keyof MemberStatusMap]): void; + + hasSince(): boolean; + clearSince(): void; + getSince(): google_protobuf_timestamp_pb.Timestamp | undefined; + setSince(value?: google_protobuf_timestamp_pb.Timestamp): void; + + hasLastActive(): boolean; + clearLastActive(): void; + getLastActive(): google_protobuf_timestamp_pb.Timestamp | undefined; + setLastActive(value?: google_protobuf_timestamp_pb.Timestamp): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Status.AsObject; + static toObject(includeInstance: boolean, msg: Status): Status.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Status, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Status; + static deserializeBinaryFromReader(message: Status, reader: jspb.BinaryReader): Status; +} + +export namespace Status { + export type AsObject = { + address: string, + status: MemberStatusMap[keyof MemberStatusMap], + since?: google_protobuf_timestamp_pb.Timestamp.AsObject, + lastActive?: google_protobuf_timestamp_pb.Timestamp.AsObject, + } +} + +export class Confirm extends jspb.Message { + getMemberId(): number; + setMemberId(value: number): void; + + getOwnPubKeySig(): Uint8Array | string; + getOwnPubKeySig_asU8(): Uint8Array; + getOwnPubKeySig_asB64(): string; + setOwnPubKeySig(value: Uint8Array | string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Confirm.AsObject; + static toObject(includeInstance: boolean, msg: Confirm): Confirm.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Confirm, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Confirm; + static deserializeBinaryFromReader(message: Confirm, reader: jspb.BinaryReader): Confirm; +} + +export namespace Confirm { + export type AsObject = { + memberId: number, + ownPubKeySig: Uint8Array | string, + } +} + +export class Complaint extends jspb.Message { + getComplainant(): number; + setComplainant(value: number): void; + + getRespondent(): number; + setRespondent(value: number): void; + + getKeySym(): Uint8Array | string; + getKeySym_asU8(): Uint8Array; + getKeySym_asB64(): string; + setKeySym(value: Uint8Array | string): void; + + getSignature(): Uint8Array | string; + getSignature_asU8(): Uint8Array; + getSignature_asB64(): string; + setSignature(value: Uint8Array | string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Complaint.AsObject; + static toObject(includeInstance: boolean, msg: Complaint): Complaint.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Complaint, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Complaint; + static deserializeBinaryFromReader(message: Complaint, reader: jspb.BinaryReader): Complaint; +} + +export namespace Complaint { + export type AsObject = { + complainant: number, + respondent: number, + keySym: Uint8Array | string, + signature: Uint8Array | string, + } +} + +export class ComplaintWithStatus extends jspb.Message { + hasComplaint(): boolean; + clearComplaint(): void; + getComplaint(): Complaint | undefined; + setComplaint(value?: Complaint): void; + + getComplaintStatus(): ComplaintStatusMap[keyof ComplaintStatusMap]; + setComplaintStatus(value: ComplaintStatusMap[keyof ComplaintStatusMap]): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ComplaintWithStatus.AsObject; + static toObject(includeInstance: boolean, msg: ComplaintWithStatus): ComplaintWithStatus.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ComplaintWithStatus, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ComplaintWithStatus; + static deserializeBinaryFromReader(message: ComplaintWithStatus, reader: jspb.BinaryReader): ComplaintWithStatus; +} + +export namespace ComplaintWithStatus { + export type AsObject = { + complaint?: Complaint.AsObject, + complaintStatus: ComplaintStatusMap[keyof ComplaintStatusMap], + } +} + +export class ComplaintsWithStatus extends jspb.Message { + getMemberId(): number; + setMemberId(value: number): void; + + clearComplaintsWithStatusList(): void; + getComplaintsWithStatusList(): Array; + setComplaintsWithStatusList(value: Array): void; + addComplaintsWithStatus(value?: ComplaintWithStatus, index?: number): ComplaintWithStatus; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ComplaintsWithStatus.AsObject; + static toObject(includeInstance: boolean, msg: ComplaintsWithStatus): ComplaintsWithStatus.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ComplaintsWithStatus, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ComplaintsWithStatus; + static deserializeBinaryFromReader(message: ComplaintsWithStatus, reader: jspb.BinaryReader): ComplaintsWithStatus; +} + +export namespace ComplaintsWithStatus { + export type AsObject = { + memberId: number, + complaintsWithStatusList: Array, + } +} + +export class PendingProcessGroups extends jspb.Message { + clearGroupIdsList(): void; + getGroupIdsList(): Array; + setGroupIdsList(value: Array): void; + addGroupIds(value: number, index?: number): number; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PendingProcessGroups.AsObject; + static toObject(includeInstance: boolean, msg: PendingProcessGroups): PendingProcessGroups.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: PendingProcessGroups, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PendingProcessGroups; + static deserializeBinaryFromReader(message: PendingProcessGroups, reader: jspb.BinaryReader): PendingProcessGroups; +} + +export namespace PendingProcessGroups { + export type AsObject = { + groupIdsList: Array, + } +} + +export class PendingProcessSignings extends jspb.Message { + clearSigningIdsList(): void; + getSigningIdsList(): Array; + setSigningIdsList(value: Array): void; + addSigningIds(value: number, index?: number): number; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PendingProcessSignings.AsObject; + static toObject(includeInstance: boolean, msg: PendingProcessSignings): PendingProcessSignings.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: PendingProcessSignings, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PendingProcessSignings; + static deserializeBinaryFromReader(message: PendingProcessSignings, reader: jspb.BinaryReader): PendingProcessSignings; +} + +export namespace PendingProcessSignings { + export type AsObject = { + signingIdsList: Array, + } +} + +export class PartialSignature extends jspb.Message { + getMemberId(): number; + setMemberId(value: number): void; + + getSignature(): Uint8Array | string; + getSignature_asU8(): Uint8Array; + getSignature_asB64(): string; + setSignature(value: Uint8Array | string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PartialSignature.AsObject; + static toObject(includeInstance: boolean, msg: PartialSignature): PartialSignature.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: PartialSignature, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PartialSignature; + static deserializeBinaryFromReader(message: PartialSignature, reader: jspb.BinaryReader): PartialSignature; +} + +export namespace PartialSignature { + export type AsObject = { + memberId: number, + signature: Uint8Array | string, + } +} + +export class TextRequestingSignature extends jspb.Message { + getMessage(): Uint8Array | string; + getMessage_asU8(): Uint8Array; + getMessage_asB64(): string; + setMessage(value: Uint8Array | string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): TextRequestingSignature.AsObject; + static toObject(includeInstance: boolean, msg: TextRequestingSignature): TextRequestingSignature.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: TextRequestingSignature, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): TextRequestingSignature; + static deserializeBinaryFromReader(message: TextRequestingSignature, reader: jspb.BinaryReader): TextRequestingSignature; +} + +export namespace TextRequestingSignature { + export type AsObject = { + message: Uint8Array | string, + } +} + +export class EVMSignature extends jspb.Message { + getRAddress(): Uint8Array | string; + getRAddress_asU8(): Uint8Array; + getRAddress_asB64(): string; + setRAddress(value: Uint8Array | string): void; + + getSignature(): Uint8Array | string; + getSignature_asU8(): Uint8Array; + getSignature_asB64(): string; + setSignature(value: Uint8Array | string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): EVMSignature.AsObject; + static toObject(includeInstance: boolean, msg: EVMSignature): EVMSignature.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: EVMSignature, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): EVMSignature; + static deserializeBinaryFromReader(message: EVMSignature, reader: jspb.BinaryReader): EVMSignature; +} + +export namespace EVMSignature { + export type AsObject = { + rAddress: Uint8Array | string, + signature: Uint8Array | string, + } +} + +export interface ReplacementStatusMap { + REPLACEMENT_STATUS_UNSPECIFIED: 0; + REPLACEMENT_STATUS_WAITING: 1; + REPLACEMENT_STATUS_SUCCESS: 2; + REPLACEMENT_STATUS_FALLEN: 3; +} + +export const ReplacementStatus: ReplacementStatusMap; + +export interface SigningStatusMap { + SIGNING_STATUS_UNSPECIFIED: 0; + SIGNING_STATUS_WAITING: 1; + SIGNING_STATUS_SUCCESS: 2; + SIGNING_STATUS_EXPIRED: 3; + SIGNING_STATUS_FALLEN: 4; +} + +export const SigningStatus: SigningStatusMap; + +export interface MemberStatusMap { + MEMBER_STATUS_UNSPECIFIED: 0; + MEMBER_STATUS_ACTIVE: 1; + MEMBER_STATUS_INACTIVE: 2; + MEMBER_STATUS_JAIL: 3; +} + +export const MemberStatus: MemberStatusMap; + +export interface GroupStatusMap { + GROUP_STATUS_UNSPECIFIED: 0; + GROUP_STATUS_ROUND_1: 1; + GROUP_STATUS_ROUND_2: 2; + GROUP_STATUS_ROUND_3: 3; + GROUP_STATUS_ACTIVE: 4; + GROUP_STATUS_EXPIRED: 5; + GROUP_STATUS_FALLEN: 6; +} + +export const GroupStatus: GroupStatusMap; + +export interface ComplaintStatusMap { + COMPLAINT_STATUS_UNSPECIFIED: 0; + COMPLAINT_STATUS_SUCCESS: 1; + COMPLAINT_STATUS_FAILED: 2; +} + +export const ComplaintStatus: ComplaintStatusMap; + +export interface PrefixMsgTypeMap { + PREFIX_UNSPECIFIED_MSG: 0; + PREFIX_TEXT_MSG: 1; + PREFIX_REPLACE_GROUP_MSG: 2; + PREFIX_ORACLE_MSG: 3; +} + +export const PrefixMsgType: PrefixMsgTypeMap; + diff --git a/proto/tss/v1beta1/tss_pb.js b/proto/tss/v1beta1/tss_pb.js new file mode 100644 index 0000000..956ae30 --- /dev/null +++ b/proto/tss/v1beta1/tss_pb.js @@ -0,0 +1,5646 @@ +// source: tss/v1beta1/tss.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* 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); +var cosmos_proto_cosmos_pb = require('../../cosmos_proto/cosmos_pb.js'); +goog.object.extend(proto, cosmos_proto_cosmos_pb); +goog.exportSymbol('proto.tss.v1beta1.AssignedMember', null, global); +goog.exportSymbol('proto.tss.v1beta1.Complaint', null, global); +goog.exportSymbol('proto.tss.v1beta1.ComplaintStatus', null, global); +goog.exportSymbol('proto.tss.v1beta1.ComplaintWithStatus', null, global); +goog.exportSymbol('proto.tss.v1beta1.ComplaintsWithStatus', null, global); +goog.exportSymbol('proto.tss.v1beta1.Confirm', null, global); +goog.exportSymbol('proto.tss.v1beta1.DE', null, global); +goog.exportSymbol('proto.tss.v1beta1.DEQueue', null, global); +goog.exportSymbol('proto.tss.v1beta1.EVMSignature', null, global); +goog.exportSymbol('proto.tss.v1beta1.Group', null, global); +goog.exportSymbol('proto.tss.v1beta1.GroupStatus', null, global); +goog.exportSymbol('proto.tss.v1beta1.Member', null, global); +goog.exportSymbol('proto.tss.v1beta1.MemberStatus', null, global); +goog.exportSymbol('proto.tss.v1beta1.PartialSignature', null, global); +goog.exportSymbol('proto.tss.v1beta1.PendingProcessGroups', null, global); +goog.exportSymbol('proto.tss.v1beta1.PendingProcessSignings', null, global); +goog.exportSymbol('proto.tss.v1beta1.PendingSignings', null, global); +goog.exportSymbol('proto.tss.v1beta1.PrefixMsgType', null, global); +goog.exportSymbol('proto.tss.v1beta1.Replacement', null, global); +goog.exportSymbol('proto.tss.v1beta1.ReplacementStatus', null, global); +goog.exportSymbol('proto.tss.v1beta1.Round1Info', null, global); +goog.exportSymbol('proto.tss.v1beta1.Round2Info', null, global); +goog.exportSymbol('proto.tss.v1beta1.Signing', null, global); +goog.exportSymbol('proto.tss.v1beta1.SigningStatus', null, global); +goog.exportSymbol('proto.tss.v1beta1.Status', null, global); +goog.exportSymbol('proto.tss.v1beta1.TextRequestingSignature', null, global); +/** + * 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.tss.v1beta1.Group = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.tss.v1beta1.Group.repeatedFields_, null); +}; +goog.inherits(proto.tss.v1beta1.Group, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.Group.displayName = 'proto.tss.v1beta1.Group'; +} +/** + * 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.tss.v1beta1.Replacement = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.tss.v1beta1.Replacement, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.Replacement.displayName = 'proto.tss.v1beta1.Replacement'; +} +/** + * 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.tss.v1beta1.Round1Info = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.tss.v1beta1.Round1Info.repeatedFields_, null); +}; +goog.inherits(proto.tss.v1beta1.Round1Info, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.Round1Info.displayName = 'proto.tss.v1beta1.Round1Info'; +} +/** + * 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.tss.v1beta1.Round2Info = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.tss.v1beta1.Round2Info.repeatedFields_, null); +}; +goog.inherits(proto.tss.v1beta1.Round2Info, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.Round2Info.displayName = 'proto.tss.v1beta1.Round2Info'; +} +/** + * 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.tss.v1beta1.DE = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.tss.v1beta1.DE, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.DE.displayName = 'proto.tss.v1beta1.DE'; +} +/** + * 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.tss.v1beta1.DEQueue = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.tss.v1beta1.DEQueue, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.DEQueue.displayName = 'proto.tss.v1beta1.DEQueue'; +} +/** + * 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.tss.v1beta1.Signing = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.tss.v1beta1.Signing.repeatedFields_, null); +}; +goog.inherits(proto.tss.v1beta1.Signing, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.Signing.displayName = 'proto.tss.v1beta1.Signing'; +} +/** + * 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.tss.v1beta1.AssignedMember = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.tss.v1beta1.AssignedMember, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.AssignedMember.displayName = 'proto.tss.v1beta1.AssignedMember'; +} +/** + * 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.tss.v1beta1.PendingSignings = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.tss.v1beta1.PendingSignings.repeatedFields_, null); +}; +goog.inherits(proto.tss.v1beta1.PendingSignings, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.PendingSignings.displayName = 'proto.tss.v1beta1.PendingSignings'; +} +/** + * 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.tss.v1beta1.Member = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.tss.v1beta1.Member, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.Member.displayName = 'proto.tss.v1beta1.Member'; +} +/** + * 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.tss.v1beta1.Status = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.tss.v1beta1.Status, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.Status.displayName = 'proto.tss.v1beta1.Status'; +} +/** + * 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.tss.v1beta1.Confirm = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.tss.v1beta1.Confirm, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.Confirm.displayName = 'proto.tss.v1beta1.Confirm'; +} +/** + * 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.tss.v1beta1.Complaint = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.tss.v1beta1.Complaint, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.Complaint.displayName = 'proto.tss.v1beta1.Complaint'; +} +/** + * 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.tss.v1beta1.ComplaintWithStatus = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.tss.v1beta1.ComplaintWithStatus, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.ComplaintWithStatus.displayName = 'proto.tss.v1beta1.ComplaintWithStatus'; +} +/** + * 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.tss.v1beta1.ComplaintsWithStatus = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.tss.v1beta1.ComplaintsWithStatus.repeatedFields_, null); +}; +goog.inherits(proto.tss.v1beta1.ComplaintsWithStatus, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.ComplaintsWithStatus.displayName = 'proto.tss.v1beta1.ComplaintsWithStatus'; +} +/** + * 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.tss.v1beta1.PendingProcessGroups = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.tss.v1beta1.PendingProcessGroups.repeatedFields_, null); +}; +goog.inherits(proto.tss.v1beta1.PendingProcessGroups, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.PendingProcessGroups.displayName = 'proto.tss.v1beta1.PendingProcessGroups'; +} +/** + * 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.tss.v1beta1.PendingProcessSignings = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.tss.v1beta1.PendingProcessSignings.repeatedFields_, null); +}; +goog.inherits(proto.tss.v1beta1.PendingProcessSignings, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.PendingProcessSignings.displayName = 'proto.tss.v1beta1.PendingProcessSignings'; +} +/** + * 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.tss.v1beta1.PartialSignature = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.tss.v1beta1.PartialSignature, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.PartialSignature.displayName = 'proto.tss.v1beta1.PartialSignature'; +} +/** + * 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.tss.v1beta1.TextRequestingSignature = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.tss.v1beta1.TextRequestingSignature, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.TextRequestingSignature.displayName = 'proto.tss.v1beta1.TextRequestingSignature'; +} +/** + * 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.tss.v1beta1.EVMSignature = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.tss.v1beta1.EVMSignature, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.EVMSignature.displayName = 'proto.tss.v1beta1.EVMSignature'; +} + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.tss.v1beta1.Group.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.tss.v1beta1.Group.prototype.toObject = function(opt_includeInstance) { + return proto.tss.v1beta1.Group.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.tss.v1beta1.Group} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.Group.toObject = function(includeInstance, msg) { + var f, obj = { + groupId: jspb.Message.getFieldWithDefault(msg, 1, 0), + size: jspb.Message.getFieldWithDefault(msg, 2, 0), + threshold: jspb.Message.getFieldWithDefault(msg, 3, 0), + pubKey: msg.getPubKey_asB64(), + status: jspb.Message.getFieldWithDefault(msg, 5, 0), + feeList: jspb.Message.toObjectList(msg.getFeeList(), + cosmos_base_v1beta1_coin_pb.Coin.toObject, includeInstance), + latestReplacementId: jspb.Message.getFieldWithDefault(msg, 7, 0), + createdHeight: jspb.Message.getFieldWithDefault(msg, 8, 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.tss.v1beta1.Group} + */ +proto.tss.v1beta1.Group.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.Group; + return proto.tss.v1beta1.Group.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.Group} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.Group} + */ +proto.tss.v1beta1.Group.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.setGroupId(value); + break; + case 2: + var value = /** @type {number} */ (reader.readUint64()); + msg.setSize(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint64()); + msg.setThreshold(value); + break; + case 4: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setPubKey(value); + break; + case 5: + var value = /** @type {!proto.tss.v1beta1.GroupStatus} */ (reader.readEnum()); + msg.setStatus(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; + case 7: + var value = /** @type {number} */ (reader.readUint64()); + msg.setLatestReplacementId(value); + break; + case 8: + var value = /** @type {number} */ (reader.readUint64()); + msg.setCreatedHeight(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.Group.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.Group.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.Group} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.Group.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getGroupId(); + if (f !== 0) { + writer.writeUint64( + 1, + f + ); + } + f = message.getSize(); + if (f !== 0) { + writer.writeUint64( + 2, + f + ); + } + f = message.getThreshold(); + if (f !== 0) { + writer.writeUint64( + 3, + f + ); + } + f = message.getPubKey_asU8(); + if (f.length > 0) { + writer.writeBytes( + 4, + f + ); + } + f = message.getStatus(); + if (f !== 0.0) { + writer.writeEnum( + 5, + f + ); + } + f = message.getFeeList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 6, + f, + cosmos_base_v1beta1_coin_pb.Coin.serializeBinaryToWriter + ); + } + f = message.getLatestReplacementId(); + if (f !== 0) { + writer.writeUint64( + 7, + f + ); + } + f = message.getCreatedHeight(); + if (f !== 0) { + writer.writeUint64( + 8, + f + ); + } +}; + + +/** + * optional uint64 group_id = 1; + * @return {number} + */ +proto.tss.v1beta1.Group.prototype.getGroupId = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.tss.v1beta1.Group} returns this + */ +proto.tss.v1beta1.Group.prototype.setGroupId = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional uint64 size = 2; + * @return {number} + */ +proto.tss.v1beta1.Group.prototype.getSize = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.tss.v1beta1.Group} returns this + */ +proto.tss.v1beta1.Group.prototype.setSize = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional uint64 threshold = 3; + * @return {number} + */ +proto.tss.v1beta1.Group.prototype.getThreshold = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.tss.v1beta1.Group} returns this + */ +proto.tss.v1beta1.Group.prototype.setThreshold = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + +/** + * optional bytes pub_key = 4; + * @return {!(string|Uint8Array)} + */ +proto.tss.v1beta1.Group.prototype.getPubKey = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * optional bytes pub_key = 4; + * This is a type-conversion wrapper around `getPubKey()` + * @return {string} + */ +proto.tss.v1beta1.Group.prototype.getPubKey_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getPubKey())); +}; + + +/** + * optional bytes pub_key = 4; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getPubKey()` + * @return {!Uint8Array} + */ +proto.tss.v1beta1.Group.prototype.getPubKey_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getPubKey())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.tss.v1beta1.Group} returns this + */ +proto.tss.v1beta1.Group.prototype.setPubKey = function(value) { + return jspb.Message.setProto3BytesField(this, 4, value); +}; + + +/** + * optional GroupStatus status = 5; + * @return {!proto.tss.v1beta1.GroupStatus} + */ +proto.tss.v1beta1.Group.prototype.getStatus = function() { + return /** @type {!proto.tss.v1beta1.GroupStatus} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +}; + + +/** + * @param {!proto.tss.v1beta1.GroupStatus} value + * @return {!proto.tss.v1beta1.Group} returns this + */ +proto.tss.v1beta1.Group.prototype.setStatus = function(value) { + return jspb.Message.setProto3EnumField(this, 5, value); +}; + + +/** + * repeated cosmos.base.v1beta1.Coin fee = 6; + * @return {!Array} + */ +proto.tss.v1beta1.Group.prototype.getFeeList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, cosmos_base_v1beta1_coin_pb.Coin, 6)); +}; + + +/** + * @param {!Array} value + * @return {!proto.tss.v1beta1.Group} returns this +*/ +proto.tss.v1beta1.Group.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.tss.v1beta1.Group.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.tss.v1beta1.Group} returns this + */ +proto.tss.v1beta1.Group.prototype.clearFeeList = function() { + return this.setFeeList([]); +}; + + +/** + * optional uint64 latest_replacement_id = 7; + * @return {number} + */ +proto.tss.v1beta1.Group.prototype.getLatestReplacementId = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.tss.v1beta1.Group} returns this + */ +proto.tss.v1beta1.Group.prototype.setLatestReplacementId = function(value) { + return jspb.Message.setProto3IntField(this, 7, value); +}; + + +/** + * optional uint64 created_height = 8; + * @return {number} + */ +proto.tss.v1beta1.Group.prototype.getCreatedHeight = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.tss.v1beta1.Group} returns this + */ +proto.tss.v1beta1.Group.prototype.setCreatedHeight = 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.tss.v1beta1.Replacement.prototype.toObject = function(opt_includeInstance) { + return proto.tss.v1beta1.Replacement.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.tss.v1beta1.Replacement} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.Replacement.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, 0), + signingId: jspb.Message.getFieldWithDefault(msg, 2, 0), + fromGroupId: jspb.Message.getFieldWithDefault(msg, 3, 0), + fromPubKey: msg.getFromPubKey_asB64(), + toGroupId: jspb.Message.getFieldWithDefault(msg, 5, 0), + toPubKey: msg.getToPubKey_asB64(), + status: jspb.Message.getFieldWithDefault(msg, 7, 0), + execTime: (f = msg.getExecTime()) && 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.tss.v1beta1.Replacement} + */ +proto.tss.v1beta1.Replacement.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.Replacement; + return proto.tss.v1beta1.Replacement.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.Replacement} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.Replacement} + */ +proto.tss.v1beta1.Replacement.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.setId(value); + break; + case 2: + var value = /** @type {number} */ (reader.readUint64()); + msg.setSigningId(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint64()); + msg.setFromGroupId(value); + break; + case 4: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setFromPubKey(value); + break; + case 5: + var value = /** @type {number} */ (reader.readUint64()); + msg.setToGroupId(value); + break; + case 6: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setToPubKey(value); + break; + case 7: + var value = /** @type {!proto.tss.v1beta1.ReplacementStatus} */ (reader.readEnum()); + msg.setStatus(value); + break; + case 8: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setExecTime(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.Replacement.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.Replacement.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.Replacement} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.Replacement.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f !== 0) { + writer.writeUint64( + 1, + f + ); + } + f = message.getSigningId(); + if (f !== 0) { + writer.writeUint64( + 2, + f + ); + } + f = message.getFromGroupId(); + if (f !== 0) { + writer.writeUint64( + 3, + f + ); + } + f = message.getFromPubKey_asU8(); + if (f.length > 0) { + writer.writeBytes( + 4, + f + ); + } + f = message.getToGroupId(); + if (f !== 0) { + writer.writeUint64( + 5, + f + ); + } + f = message.getToPubKey_asU8(); + if (f.length > 0) { + writer.writeBytes( + 6, + f + ); + } + f = message.getStatus(); + if (f !== 0.0) { + writer.writeEnum( + 7, + f + ); + } + f = message.getExecTime(); + if (f != null) { + writer.writeMessage( + 8, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } +}; + + +/** + * optional uint64 id = 1; + * @return {number} + */ +proto.tss.v1beta1.Replacement.prototype.getId = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.tss.v1beta1.Replacement} returns this + */ +proto.tss.v1beta1.Replacement.prototype.setId = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional uint64 signing_id = 2; + * @return {number} + */ +proto.tss.v1beta1.Replacement.prototype.getSigningId = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.tss.v1beta1.Replacement} returns this + */ +proto.tss.v1beta1.Replacement.prototype.setSigningId = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional uint64 from_group_id = 3; + * @return {number} + */ +proto.tss.v1beta1.Replacement.prototype.getFromGroupId = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.tss.v1beta1.Replacement} returns this + */ +proto.tss.v1beta1.Replacement.prototype.setFromGroupId = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + +/** + * optional bytes from_pub_key = 4; + * @return {!(string|Uint8Array)} + */ +proto.tss.v1beta1.Replacement.prototype.getFromPubKey = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * optional bytes from_pub_key = 4; + * This is a type-conversion wrapper around `getFromPubKey()` + * @return {string} + */ +proto.tss.v1beta1.Replacement.prototype.getFromPubKey_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getFromPubKey())); +}; + + +/** + * optional bytes from_pub_key = 4; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getFromPubKey()` + * @return {!Uint8Array} + */ +proto.tss.v1beta1.Replacement.prototype.getFromPubKey_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getFromPubKey())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.tss.v1beta1.Replacement} returns this + */ +proto.tss.v1beta1.Replacement.prototype.setFromPubKey = function(value) { + return jspb.Message.setProto3BytesField(this, 4, value); +}; + + +/** + * optional uint64 to_group_id = 5; + * @return {number} + */ +proto.tss.v1beta1.Replacement.prototype.getToGroupId = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.tss.v1beta1.Replacement} returns this + */ +proto.tss.v1beta1.Replacement.prototype.setToGroupId = function(value) { + return jspb.Message.setProto3IntField(this, 5, value); +}; + + +/** + * optional bytes to_pub_key = 6; + * @return {!(string|Uint8Array)} + */ +proto.tss.v1beta1.Replacement.prototype.getToPubKey = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 6, "")); +}; + + +/** + * optional bytes to_pub_key = 6; + * This is a type-conversion wrapper around `getToPubKey()` + * @return {string} + */ +proto.tss.v1beta1.Replacement.prototype.getToPubKey_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getToPubKey())); +}; + + +/** + * optional bytes to_pub_key = 6; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getToPubKey()` + * @return {!Uint8Array} + */ +proto.tss.v1beta1.Replacement.prototype.getToPubKey_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getToPubKey())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.tss.v1beta1.Replacement} returns this + */ +proto.tss.v1beta1.Replacement.prototype.setToPubKey = function(value) { + return jspb.Message.setProto3BytesField(this, 6, value); +}; + + +/** + * optional ReplacementStatus status = 7; + * @return {!proto.tss.v1beta1.ReplacementStatus} + */ +proto.tss.v1beta1.Replacement.prototype.getStatus = function() { + return /** @type {!proto.tss.v1beta1.ReplacementStatus} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); +}; + + +/** + * @param {!proto.tss.v1beta1.ReplacementStatus} value + * @return {!proto.tss.v1beta1.Replacement} returns this + */ +proto.tss.v1beta1.Replacement.prototype.setStatus = function(value) { + return jspb.Message.setProto3EnumField(this, 7, value); +}; + + +/** + * optional google.protobuf.Timestamp exec_time = 8; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.tss.v1beta1.Replacement.prototype.getExecTime = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 8)); +}; + + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.tss.v1beta1.Replacement} returns this +*/ +proto.tss.v1beta1.Replacement.prototype.setExecTime = function(value) { + return jspb.Message.setWrapperField(this, 8, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.tss.v1beta1.Replacement} returns this + */ +proto.tss.v1beta1.Replacement.prototype.clearExecTime = function() { + return this.setExecTime(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.tss.v1beta1.Replacement.prototype.hasExecTime = function() { + return jspb.Message.getField(this, 8) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.tss.v1beta1.Round1Info.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.tss.v1beta1.Round1Info.prototype.toObject = function(opt_includeInstance) { + return proto.tss.v1beta1.Round1Info.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.tss.v1beta1.Round1Info} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.Round1Info.toObject = function(includeInstance, msg) { + var f, obj = { + memberId: jspb.Message.getFieldWithDefault(msg, 1, 0), + coefficientCommitsList: msg.getCoefficientCommitsList_asB64(), + oneTimePubKey: msg.getOneTimePubKey_asB64(), + a0Signature: msg.getA0Signature_asB64(), + oneTimeSignature: msg.getOneTimeSignature_asB64() + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.tss.v1beta1.Round1Info} + */ +proto.tss.v1beta1.Round1Info.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.Round1Info; + return proto.tss.v1beta1.Round1Info.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.Round1Info} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.Round1Info} + */ +proto.tss.v1beta1.Round1Info.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.setMemberId(value); + break; + case 2: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.addCoefficientCommits(value); + break; + case 3: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setOneTimePubKey(value); + break; + case 4: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setA0Signature(value); + break; + case 5: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setOneTimeSignature(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.Round1Info.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.Round1Info.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.Round1Info} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.Round1Info.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMemberId(); + if (f !== 0) { + writer.writeUint64( + 1, + f + ); + } + f = message.getCoefficientCommitsList_asU8(); + if (f.length > 0) { + writer.writeRepeatedBytes( + 2, + f + ); + } + f = message.getOneTimePubKey_asU8(); + if (f.length > 0) { + writer.writeBytes( + 3, + f + ); + } + f = message.getA0Signature_asU8(); + if (f.length > 0) { + writer.writeBytes( + 4, + f + ); + } + f = message.getOneTimeSignature_asU8(); + if (f.length > 0) { + writer.writeBytes( + 5, + f + ); + } +}; + + +/** + * optional uint64 member_id = 1; + * @return {number} + */ +proto.tss.v1beta1.Round1Info.prototype.getMemberId = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.tss.v1beta1.Round1Info} returns this + */ +proto.tss.v1beta1.Round1Info.prototype.setMemberId = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * repeated bytes coefficient_commits = 2; + * @return {!(Array|Array)} + */ +proto.tss.v1beta1.Round1Info.prototype.getCoefficientCommitsList = function() { + return /** @type {!(Array|Array)} */ (jspb.Message.getRepeatedField(this, 2)); +}; + + +/** + * repeated bytes coefficient_commits = 2; + * This is a type-conversion wrapper around `getCoefficientCommitsList()` + * @return {!Array} + */ +proto.tss.v1beta1.Round1Info.prototype.getCoefficientCommitsList_asB64 = function() { + return /** @type {!Array} */ (jspb.Message.bytesListAsB64( + this.getCoefficientCommitsList())); +}; + + +/** + * repeated bytes coefficient_commits = 2; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getCoefficientCommitsList()` + * @return {!Array} + */ +proto.tss.v1beta1.Round1Info.prototype.getCoefficientCommitsList_asU8 = function() { + return /** @type {!Array} */ (jspb.Message.bytesListAsU8( + this.getCoefficientCommitsList())); +}; + + +/** + * @param {!(Array|Array)} value + * @return {!proto.tss.v1beta1.Round1Info} returns this + */ +proto.tss.v1beta1.Round1Info.prototype.setCoefficientCommitsList = function(value) { + return jspb.Message.setField(this, 2, value || []); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @param {number=} opt_index + * @return {!proto.tss.v1beta1.Round1Info} returns this + */ +proto.tss.v1beta1.Round1Info.prototype.addCoefficientCommits = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.tss.v1beta1.Round1Info} returns this + */ +proto.tss.v1beta1.Round1Info.prototype.clearCoefficientCommitsList = function() { + return this.setCoefficientCommitsList([]); +}; + + +/** + * optional bytes one_time_pub_key = 3; + * @return {!(string|Uint8Array)} + */ +proto.tss.v1beta1.Round1Info.prototype.getOneTimePubKey = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * optional bytes one_time_pub_key = 3; + * This is a type-conversion wrapper around `getOneTimePubKey()` + * @return {string} + */ +proto.tss.v1beta1.Round1Info.prototype.getOneTimePubKey_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getOneTimePubKey())); +}; + + +/** + * optional bytes one_time_pub_key = 3; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getOneTimePubKey()` + * @return {!Uint8Array} + */ +proto.tss.v1beta1.Round1Info.prototype.getOneTimePubKey_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getOneTimePubKey())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.tss.v1beta1.Round1Info} returns this + */ +proto.tss.v1beta1.Round1Info.prototype.setOneTimePubKey = function(value) { + return jspb.Message.setProto3BytesField(this, 3, value); +}; + + +/** + * optional bytes a0_signature = 4; + * @return {!(string|Uint8Array)} + */ +proto.tss.v1beta1.Round1Info.prototype.getA0Signature = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * optional bytes a0_signature = 4; + * This is a type-conversion wrapper around `getA0Signature()` + * @return {string} + */ +proto.tss.v1beta1.Round1Info.prototype.getA0Signature_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getA0Signature())); +}; + + +/** + * optional bytes a0_signature = 4; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getA0Signature()` + * @return {!Uint8Array} + */ +proto.tss.v1beta1.Round1Info.prototype.getA0Signature_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getA0Signature())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.tss.v1beta1.Round1Info} returns this + */ +proto.tss.v1beta1.Round1Info.prototype.setA0Signature = function(value) { + return jspb.Message.setProto3BytesField(this, 4, value); +}; + + +/** + * optional bytes one_time_signature = 5; + * @return {!(string|Uint8Array)} + */ +proto.tss.v1beta1.Round1Info.prototype.getOneTimeSignature = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * optional bytes one_time_signature = 5; + * This is a type-conversion wrapper around `getOneTimeSignature()` + * @return {string} + */ +proto.tss.v1beta1.Round1Info.prototype.getOneTimeSignature_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getOneTimeSignature())); +}; + + +/** + * optional bytes one_time_signature = 5; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getOneTimeSignature()` + * @return {!Uint8Array} + */ +proto.tss.v1beta1.Round1Info.prototype.getOneTimeSignature_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getOneTimeSignature())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.tss.v1beta1.Round1Info} returns this + */ +proto.tss.v1beta1.Round1Info.prototype.setOneTimeSignature = function(value) { + return jspb.Message.setProto3BytesField(this, 5, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.tss.v1beta1.Round2Info.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.tss.v1beta1.Round2Info.prototype.toObject = function(opt_includeInstance) { + return proto.tss.v1beta1.Round2Info.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.tss.v1beta1.Round2Info} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.Round2Info.toObject = function(includeInstance, msg) { + var f, obj = { + memberId: jspb.Message.getFieldWithDefault(msg, 1, 0), + encryptedSecretSharesList: msg.getEncryptedSecretSharesList_asB64() + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.tss.v1beta1.Round2Info} + */ +proto.tss.v1beta1.Round2Info.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.Round2Info; + return proto.tss.v1beta1.Round2Info.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.Round2Info} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.Round2Info} + */ +proto.tss.v1beta1.Round2Info.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.setMemberId(value); + break; + case 2: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.addEncryptedSecretShares(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.Round2Info.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.Round2Info.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.Round2Info} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.Round2Info.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMemberId(); + if (f !== 0) { + writer.writeUint64( + 1, + f + ); + } + f = message.getEncryptedSecretSharesList_asU8(); + if (f.length > 0) { + writer.writeRepeatedBytes( + 2, + f + ); + } +}; + + +/** + * optional uint64 member_id = 1; + * @return {number} + */ +proto.tss.v1beta1.Round2Info.prototype.getMemberId = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.tss.v1beta1.Round2Info} returns this + */ +proto.tss.v1beta1.Round2Info.prototype.setMemberId = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * repeated bytes encrypted_secret_shares = 2; + * @return {!(Array|Array)} + */ +proto.tss.v1beta1.Round2Info.prototype.getEncryptedSecretSharesList = function() { + return /** @type {!(Array|Array)} */ (jspb.Message.getRepeatedField(this, 2)); +}; + + +/** + * repeated bytes encrypted_secret_shares = 2; + * This is a type-conversion wrapper around `getEncryptedSecretSharesList()` + * @return {!Array} + */ +proto.tss.v1beta1.Round2Info.prototype.getEncryptedSecretSharesList_asB64 = function() { + return /** @type {!Array} */ (jspb.Message.bytesListAsB64( + this.getEncryptedSecretSharesList())); +}; + + +/** + * repeated bytes encrypted_secret_shares = 2; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getEncryptedSecretSharesList()` + * @return {!Array} + */ +proto.tss.v1beta1.Round2Info.prototype.getEncryptedSecretSharesList_asU8 = function() { + return /** @type {!Array} */ (jspb.Message.bytesListAsU8( + this.getEncryptedSecretSharesList())); +}; + + +/** + * @param {!(Array|Array)} value + * @return {!proto.tss.v1beta1.Round2Info} returns this + */ +proto.tss.v1beta1.Round2Info.prototype.setEncryptedSecretSharesList = function(value) { + return jspb.Message.setField(this, 2, value || []); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @param {number=} opt_index + * @return {!proto.tss.v1beta1.Round2Info} returns this + */ +proto.tss.v1beta1.Round2Info.prototype.addEncryptedSecretShares = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.tss.v1beta1.Round2Info} returns this + */ +proto.tss.v1beta1.Round2Info.prototype.clearEncryptedSecretSharesList = function() { + return this.setEncryptedSecretSharesList([]); +}; + + + + + +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.tss.v1beta1.DE.prototype.toObject = function(opt_includeInstance) { + return proto.tss.v1beta1.DE.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.tss.v1beta1.DE} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.DE.toObject = function(includeInstance, msg) { + var f, obj = { + pubD: msg.getPubD_asB64(), + pubE: msg.getPubE_asB64() + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.tss.v1beta1.DE} + */ +proto.tss.v1beta1.DE.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.DE; + return proto.tss.v1beta1.DE.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.DE} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.DE} + */ +proto.tss.v1beta1.DE.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.setPubD(value); + break; + case 2: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setPubE(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.DE.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.DE.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.DE} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.DE.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getPubD_asU8(); + if (f.length > 0) { + writer.writeBytes( + 1, + f + ); + } + f = message.getPubE_asU8(); + if (f.length > 0) { + writer.writeBytes( + 2, + f + ); + } +}; + + +/** + * optional bytes pub_d = 1; + * @return {!(string|Uint8Array)} + */ +proto.tss.v1beta1.DE.prototype.getPubD = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * optional bytes pub_d = 1; + * This is a type-conversion wrapper around `getPubD()` + * @return {string} + */ +proto.tss.v1beta1.DE.prototype.getPubD_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getPubD())); +}; + + +/** + * optional bytes pub_d = 1; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getPubD()` + * @return {!Uint8Array} + */ +proto.tss.v1beta1.DE.prototype.getPubD_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getPubD())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.tss.v1beta1.DE} returns this + */ +proto.tss.v1beta1.DE.prototype.setPubD = function(value) { + return jspb.Message.setProto3BytesField(this, 1, value); +}; + + +/** + * optional bytes pub_e = 2; + * @return {!(string|Uint8Array)} + */ +proto.tss.v1beta1.DE.prototype.getPubE = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * optional bytes pub_e = 2; + * This is a type-conversion wrapper around `getPubE()` + * @return {string} + */ +proto.tss.v1beta1.DE.prototype.getPubE_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getPubE())); +}; + + +/** + * optional bytes pub_e = 2; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getPubE()` + * @return {!Uint8Array} + */ +proto.tss.v1beta1.DE.prototype.getPubE_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getPubE())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.tss.v1beta1.DE} returns this + */ +proto.tss.v1beta1.DE.prototype.setPubE = 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.tss.v1beta1.DEQueue.prototype.toObject = function(opt_includeInstance) { + return proto.tss.v1beta1.DEQueue.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.tss.v1beta1.DEQueue} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.DEQueue.toObject = function(includeInstance, msg) { + var f, obj = { + head: jspb.Message.getFieldWithDefault(msg, 1, 0), + tail: jspb.Message.getFieldWithDefault(msg, 2, 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.tss.v1beta1.DEQueue} + */ +proto.tss.v1beta1.DEQueue.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.DEQueue; + return proto.tss.v1beta1.DEQueue.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.DEQueue} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.DEQueue} + */ +proto.tss.v1beta1.DEQueue.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.setHead(value); + break; + case 2: + var value = /** @type {number} */ (reader.readUint64()); + msg.setTail(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.DEQueue.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.DEQueue.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.DEQueue} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.DEQueue.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getHead(); + if (f !== 0) { + writer.writeUint64( + 1, + f + ); + } + f = message.getTail(); + if (f !== 0) { + writer.writeUint64( + 2, + f + ); + } +}; + + +/** + * optional uint64 head = 1; + * @return {number} + */ +proto.tss.v1beta1.DEQueue.prototype.getHead = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.tss.v1beta1.DEQueue} returns this + */ +proto.tss.v1beta1.DEQueue.prototype.setHead = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional uint64 tail = 2; + * @return {number} + */ +proto.tss.v1beta1.DEQueue.prototype.getTail = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.tss.v1beta1.DEQueue} returns this + */ +proto.tss.v1beta1.DEQueue.prototype.setTail = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.tss.v1beta1.Signing.repeatedFields_ = [4,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.tss.v1beta1.Signing.prototype.toObject = function(opt_includeInstance) { + return proto.tss.v1beta1.Signing.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.tss.v1beta1.Signing} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.Signing.toObject = function(includeInstance, msg) { + var f, obj = { + signingId: jspb.Message.getFieldWithDefault(msg, 1, 0), + groupId: jspb.Message.getFieldWithDefault(msg, 2, 0), + groupPubKey: msg.getGroupPubKey_asB64(), + assignedMembersList: jspb.Message.toObjectList(msg.getAssignedMembersList(), + proto.tss.v1beta1.AssignedMember.toObject, includeInstance), + message: msg.getMessage_asB64(), + groupPubNonce: msg.getGroupPubNonce_asB64(), + signature: msg.getSignature_asB64(), + feeList: jspb.Message.toObjectList(msg.getFeeList(), + cosmos_base_v1beta1_coin_pb.Coin.toObject, includeInstance), + status: jspb.Message.getFieldWithDefault(msg, 9, 0), + createdHeight: jspb.Message.getFieldWithDefault(msg, 10, 0), + requester: jspb.Message.getFieldWithDefault(msg, 11, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.tss.v1beta1.Signing} + */ +proto.tss.v1beta1.Signing.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.Signing; + return proto.tss.v1beta1.Signing.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.Signing} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.Signing} + */ +proto.tss.v1beta1.Signing.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 {number} */ (reader.readUint64()); + msg.setGroupId(value); + break; + case 3: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setGroupPubKey(value); + break; + case 4: + var value = new proto.tss.v1beta1.AssignedMember; + reader.readMessage(value,proto.tss.v1beta1.AssignedMember.deserializeBinaryFromReader); + msg.addAssignedMembers(value); + break; + case 5: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setMessage(value); + break; + case 6: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setGroupPubNonce(value); + break; + case 7: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setSignature(value); + break; + case 8: + var value = new cosmos_base_v1beta1_coin_pb.Coin; + reader.readMessage(value,cosmos_base_v1beta1_coin_pb.Coin.deserializeBinaryFromReader); + msg.addFee(value); + break; + case 9: + var value = /** @type {!proto.tss.v1beta1.SigningStatus} */ (reader.readEnum()); + msg.setStatus(value); + break; + case 10: + var value = /** @type {number} */ (reader.readUint64()); + msg.setCreatedHeight(value); + break; + case 11: + var value = /** @type {string} */ (reader.readString()); + msg.setRequester(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.Signing.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.Signing.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.Signing} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.Signing.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSigningId(); + if (f !== 0) { + writer.writeUint64( + 1, + f + ); + } + f = message.getGroupId(); + if (f !== 0) { + writer.writeUint64( + 2, + f + ); + } + f = message.getGroupPubKey_asU8(); + if (f.length > 0) { + writer.writeBytes( + 3, + f + ); + } + f = message.getAssignedMembersList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 4, + f, + proto.tss.v1beta1.AssignedMember.serializeBinaryToWriter + ); + } + f = message.getMessage_asU8(); + if (f.length > 0) { + writer.writeBytes( + 5, + f + ); + } + f = message.getGroupPubNonce_asU8(); + if (f.length > 0) { + writer.writeBytes( + 6, + f + ); + } + f = message.getSignature_asU8(); + if (f.length > 0) { + writer.writeBytes( + 7, + f + ); + } + f = message.getFeeList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 8, + f, + cosmos_base_v1beta1_coin_pb.Coin.serializeBinaryToWriter + ); + } + f = message.getStatus(); + if (f !== 0.0) { + writer.writeEnum( + 9, + f + ); + } + f = message.getCreatedHeight(); + if (f !== 0) { + writer.writeUint64( + 10, + f + ); + } + f = message.getRequester(); + if (f.length > 0) { + writer.writeString( + 11, + f + ); + } +}; + + +/** + * optional uint64 signing_id = 1; + * @return {number} + */ +proto.tss.v1beta1.Signing.prototype.getSigningId = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.tss.v1beta1.Signing} returns this + */ +proto.tss.v1beta1.Signing.prototype.setSigningId = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional uint64 group_id = 2; + * @return {number} + */ +proto.tss.v1beta1.Signing.prototype.getGroupId = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.tss.v1beta1.Signing} returns this + */ +proto.tss.v1beta1.Signing.prototype.setGroupId = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional bytes group_pub_key = 3; + * @return {!(string|Uint8Array)} + */ +proto.tss.v1beta1.Signing.prototype.getGroupPubKey = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * optional bytes group_pub_key = 3; + * This is a type-conversion wrapper around `getGroupPubKey()` + * @return {string} + */ +proto.tss.v1beta1.Signing.prototype.getGroupPubKey_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getGroupPubKey())); +}; + + +/** + * optional bytes group_pub_key = 3; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getGroupPubKey()` + * @return {!Uint8Array} + */ +proto.tss.v1beta1.Signing.prototype.getGroupPubKey_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getGroupPubKey())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.tss.v1beta1.Signing} returns this + */ +proto.tss.v1beta1.Signing.prototype.setGroupPubKey = function(value) { + return jspb.Message.setProto3BytesField(this, 3, value); +}; + + +/** + * repeated AssignedMember assigned_members = 4; + * @return {!Array} + */ +proto.tss.v1beta1.Signing.prototype.getAssignedMembersList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.tss.v1beta1.AssignedMember, 4)); +}; + + +/** + * @param {!Array} value + * @return {!proto.tss.v1beta1.Signing} returns this +*/ +proto.tss.v1beta1.Signing.prototype.setAssignedMembersList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 4, value); +}; + + +/** + * @param {!proto.tss.v1beta1.AssignedMember=} opt_value + * @param {number=} opt_index + * @return {!proto.tss.v1beta1.AssignedMember} + */ +proto.tss.v1beta1.Signing.prototype.addAssignedMembers = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.tss.v1beta1.AssignedMember, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.tss.v1beta1.Signing} returns this + */ +proto.tss.v1beta1.Signing.prototype.clearAssignedMembersList = function() { + return this.setAssignedMembersList([]); +}; + + +/** + * optional bytes message = 5; + * @return {!(string|Uint8Array)} + */ +proto.tss.v1beta1.Signing.prototype.getMessage = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * optional bytes message = 5; + * This is a type-conversion wrapper around `getMessage()` + * @return {string} + */ +proto.tss.v1beta1.Signing.prototype.getMessage_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getMessage())); +}; + + +/** + * optional bytes message = 5; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getMessage()` + * @return {!Uint8Array} + */ +proto.tss.v1beta1.Signing.prototype.getMessage_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getMessage())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.tss.v1beta1.Signing} returns this + */ +proto.tss.v1beta1.Signing.prototype.setMessage = function(value) { + return jspb.Message.setProto3BytesField(this, 5, value); +}; + + +/** + * optional bytes group_pub_nonce = 6; + * @return {!(string|Uint8Array)} + */ +proto.tss.v1beta1.Signing.prototype.getGroupPubNonce = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 6, "")); +}; + + +/** + * optional bytes group_pub_nonce = 6; + * This is a type-conversion wrapper around `getGroupPubNonce()` + * @return {string} + */ +proto.tss.v1beta1.Signing.prototype.getGroupPubNonce_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getGroupPubNonce())); +}; + + +/** + * optional bytes group_pub_nonce = 6; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getGroupPubNonce()` + * @return {!Uint8Array} + */ +proto.tss.v1beta1.Signing.prototype.getGroupPubNonce_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getGroupPubNonce())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.tss.v1beta1.Signing} returns this + */ +proto.tss.v1beta1.Signing.prototype.setGroupPubNonce = function(value) { + return jspb.Message.setProto3BytesField(this, 6, value); +}; + + +/** + * optional bytes signature = 7; + * @return {!(string|Uint8Array)} + */ +proto.tss.v1beta1.Signing.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.tss.v1beta1.Signing.prototype.getSignature_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getSignature())); +}; + + +/** + * optional bytes signature = 7; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getSignature()` + * @return {!Uint8Array} + */ +proto.tss.v1beta1.Signing.prototype.getSignature_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getSignature())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.tss.v1beta1.Signing} returns this + */ +proto.tss.v1beta1.Signing.prototype.setSignature = function(value) { + return jspb.Message.setProto3BytesField(this, 7, value); +}; + + +/** + * repeated cosmos.base.v1beta1.Coin fee = 8; + * @return {!Array} + */ +proto.tss.v1beta1.Signing.prototype.getFeeList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, cosmos_base_v1beta1_coin_pb.Coin, 8)); +}; + + +/** + * @param {!Array} value + * @return {!proto.tss.v1beta1.Signing} returns this +*/ +proto.tss.v1beta1.Signing.prototype.setFeeList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 8, value); +}; + + +/** + * @param {!proto.cosmos.base.v1beta1.Coin=} opt_value + * @param {number=} opt_index + * @return {!proto.cosmos.base.v1beta1.Coin} + */ +proto.tss.v1beta1.Signing.prototype.addFee = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 8, opt_value, proto.cosmos.base.v1beta1.Coin, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.tss.v1beta1.Signing} returns this + */ +proto.tss.v1beta1.Signing.prototype.clearFeeList = function() { + return this.setFeeList([]); +}; + + +/** + * optional SigningStatus status = 9; + * @return {!proto.tss.v1beta1.SigningStatus} + */ +proto.tss.v1beta1.Signing.prototype.getStatus = function() { + return /** @type {!proto.tss.v1beta1.SigningStatus} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); +}; + + +/** + * @param {!proto.tss.v1beta1.SigningStatus} value + * @return {!proto.tss.v1beta1.Signing} returns this + */ +proto.tss.v1beta1.Signing.prototype.setStatus = function(value) { + return jspb.Message.setProto3EnumField(this, 9, value); +}; + + +/** + * optional uint64 created_height = 10; + * @return {number} + */ +proto.tss.v1beta1.Signing.prototype.getCreatedHeight = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.tss.v1beta1.Signing} returns this + */ +proto.tss.v1beta1.Signing.prototype.setCreatedHeight = function(value) { + return jspb.Message.setProto3IntField(this, 10, value); +}; + + +/** + * optional string requester = 11; + * @return {string} + */ +proto.tss.v1beta1.Signing.prototype.getRequester = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "")); +}; + + +/** + * @param {string} value + * @return {!proto.tss.v1beta1.Signing} returns this + */ +proto.tss.v1beta1.Signing.prototype.setRequester = function(value) { + return jspb.Message.setProto3StringField(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.tss.v1beta1.AssignedMember.prototype.toObject = function(opt_includeInstance) { + return proto.tss.v1beta1.AssignedMember.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.tss.v1beta1.AssignedMember} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.AssignedMember.toObject = function(includeInstance, msg) { + var f, obj = { + memberId: jspb.Message.getFieldWithDefault(msg, 1, 0), + address: jspb.Message.getFieldWithDefault(msg, 2, ""), + pubKey: msg.getPubKey_asB64(), + pubD: msg.getPubD_asB64(), + pubE: msg.getPubE_asB64(), + bindingFactor: msg.getBindingFactor_asB64(), + pubNonce: msg.getPubNonce_asB64() + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.tss.v1beta1.AssignedMember} + */ +proto.tss.v1beta1.AssignedMember.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.AssignedMember; + return proto.tss.v1beta1.AssignedMember.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.AssignedMember} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.AssignedMember} + */ +proto.tss.v1beta1.AssignedMember.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.setMemberId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setAddress(value); + break; + case 3: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setPubKey(value); + break; + case 4: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setPubD(value); + break; + case 5: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setPubE(value); + break; + case 6: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setBindingFactor(value); + break; + case 7: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setPubNonce(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.AssignedMember.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.AssignedMember.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.AssignedMember} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.AssignedMember.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMemberId(); + if (f !== 0) { + writer.writeUint64( + 1, + f + ); + } + f = message.getAddress(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getPubKey_asU8(); + if (f.length > 0) { + writer.writeBytes( + 3, + f + ); + } + f = message.getPubD_asU8(); + if (f.length > 0) { + writer.writeBytes( + 4, + f + ); + } + f = message.getPubE_asU8(); + if (f.length > 0) { + writer.writeBytes( + 5, + f + ); + } + f = message.getBindingFactor_asU8(); + if (f.length > 0) { + writer.writeBytes( + 6, + f + ); + } + f = message.getPubNonce_asU8(); + if (f.length > 0) { + writer.writeBytes( + 7, + f + ); + } +}; + + +/** + * optional uint64 member_id = 1; + * @return {number} + */ +proto.tss.v1beta1.AssignedMember.prototype.getMemberId = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.tss.v1beta1.AssignedMember} returns this + */ +proto.tss.v1beta1.AssignedMember.prototype.setMemberId = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional string address = 2; + * @return {string} + */ +proto.tss.v1beta1.AssignedMember.prototype.getAddress = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.tss.v1beta1.AssignedMember} returns this + */ +proto.tss.v1beta1.AssignedMember.prototype.setAddress = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional bytes pub_key = 3; + * @return {!(string|Uint8Array)} + */ +proto.tss.v1beta1.AssignedMember.prototype.getPubKey = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * optional bytes pub_key = 3; + * This is a type-conversion wrapper around `getPubKey()` + * @return {string} + */ +proto.tss.v1beta1.AssignedMember.prototype.getPubKey_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getPubKey())); +}; + + +/** + * optional bytes pub_key = 3; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getPubKey()` + * @return {!Uint8Array} + */ +proto.tss.v1beta1.AssignedMember.prototype.getPubKey_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getPubKey())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.tss.v1beta1.AssignedMember} returns this + */ +proto.tss.v1beta1.AssignedMember.prototype.setPubKey = function(value) { + return jspb.Message.setProto3BytesField(this, 3, value); +}; + + +/** + * optional bytes pub_d = 4; + * @return {!(string|Uint8Array)} + */ +proto.tss.v1beta1.AssignedMember.prototype.getPubD = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * optional bytes pub_d = 4; + * This is a type-conversion wrapper around `getPubD()` + * @return {string} + */ +proto.tss.v1beta1.AssignedMember.prototype.getPubD_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getPubD())); +}; + + +/** + * optional bytes pub_d = 4; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getPubD()` + * @return {!Uint8Array} + */ +proto.tss.v1beta1.AssignedMember.prototype.getPubD_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getPubD())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.tss.v1beta1.AssignedMember} returns this + */ +proto.tss.v1beta1.AssignedMember.prototype.setPubD = function(value) { + return jspb.Message.setProto3BytesField(this, 4, value); +}; + + +/** + * optional bytes pub_e = 5; + * @return {!(string|Uint8Array)} + */ +proto.tss.v1beta1.AssignedMember.prototype.getPubE = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * optional bytes pub_e = 5; + * This is a type-conversion wrapper around `getPubE()` + * @return {string} + */ +proto.tss.v1beta1.AssignedMember.prototype.getPubE_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getPubE())); +}; + + +/** + * optional bytes pub_e = 5; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getPubE()` + * @return {!Uint8Array} + */ +proto.tss.v1beta1.AssignedMember.prototype.getPubE_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getPubE())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.tss.v1beta1.AssignedMember} returns this + */ +proto.tss.v1beta1.AssignedMember.prototype.setPubE = function(value) { + return jspb.Message.setProto3BytesField(this, 5, value); +}; + + +/** + * optional bytes binding_factor = 6; + * @return {!(string|Uint8Array)} + */ +proto.tss.v1beta1.AssignedMember.prototype.getBindingFactor = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 6, "")); +}; + + +/** + * optional bytes binding_factor = 6; + * This is a type-conversion wrapper around `getBindingFactor()` + * @return {string} + */ +proto.tss.v1beta1.AssignedMember.prototype.getBindingFactor_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getBindingFactor())); +}; + + +/** + * optional bytes binding_factor = 6; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getBindingFactor()` + * @return {!Uint8Array} + */ +proto.tss.v1beta1.AssignedMember.prototype.getBindingFactor_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getBindingFactor())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.tss.v1beta1.AssignedMember} returns this + */ +proto.tss.v1beta1.AssignedMember.prototype.setBindingFactor = function(value) { + return jspb.Message.setProto3BytesField(this, 6, value); +}; + + +/** + * optional bytes pub_nonce = 7; + * @return {!(string|Uint8Array)} + */ +proto.tss.v1beta1.AssignedMember.prototype.getPubNonce = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 7, "")); +}; + + +/** + * optional bytes pub_nonce = 7; + * This is a type-conversion wrapper around `getPubNonce()` + * @return {string} + */ +proto.tss.v1beta1.AssignedMember.prototype.getPubNonce_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getPubNonce())); +}; + + +/** + * optional bytes pub_nonce = 7; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getPubNonce()` + * @return {!Uint8Array} + */ +proto.tss.v1beta1.AssignedMember.prototype.getPubNonce_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getPubNonce())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.tss.v1beta1.AssignedMember} returns this + */ +proto.tss.v1beta1.AssignedMember.prototype.setPubNonce = function(value) { + return jspb.Message.setProto3BytesField(this, 7, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.tss.v1beta1.PendingSignings.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.tss.v1beta1.PendingSignings.prototype.toObject = function(opt_includeInstance) { + return proto.tss.v1beta1.PendingSignings.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.tss.v1beta1.PendingSignings} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.PendingSignings.toObject = function(includeInstance, msg) { + var f, obj = { + signingIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : 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.tss.v1beta1.PendingSignings} + */ +proto.tss.v1beta1.PendingSignings.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.PendingSignings; + return proto.tss.v1beta1.PendingSignings.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.PendingSignings} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.PendingSignings} + */ +proto.tss.v1beta1.PendingSignings.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.addSigningIds(values[i]); + } + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.PendingSignings.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.PendingSignings.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.PendingSignings} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.PendingSignings.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSigningIdsList(); + if (f.length > 0) { + writer.writePackedUint64( + 1, + f + ); + } +}; + + +/** + * repeated uint64 signing_ids = 1; + * @return {!Array} + */ +proto.tss.v1beta1.PendingSignings.prototype.getSigningIdsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.tss.v1beta1.PendingSignings} returns this + */ +proto.tss.v1beta1.PendingSignings.prototype.setSigningIdsList = function(value) { + return jspb.Message.setField(this, 1, value || []); +}; + + +/** + * @param {number} value + * @param {number=} opt_index + * @return {!proto.tss.v1beta1.PendingSignings} returns this + */ +proto.tss.v1beta1.PendingSignings.prototype.addSigningIds = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 1, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.tss.v1beta1.PendingSignings} returns this + */ +proto.tss.v1beta1.PendingSignings.prototype.clearSigningIdsList = function() { + return this.setSigningIdsList([]); +}; + + + + + +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.tss.v1beta1.Member.prototype.toObject = function(opt_includeInstance) { + return proto.tss.v1beta1.Member.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.tss.v1beta1.Member} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.Member.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, 0), + address: jspb.Message.getFieldWithDefault(msg, 2, ""), + pubKey: msg.getPubKey_asB64(), + isMalicious: jspb.Message.getBooleanFieldWithDefault(msg, 4, false) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.tss.v1beta1.Member} + */ +proto.tss.v1beta1.Member.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.Member; + return proto.tss.v1beta1.Member.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.Member} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.Member} + */ +proto.tss.v1beta1.Member.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.setId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setAddress(value); + break; + case 3: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setPubKey(value); + break; + case 4: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIsMalicious(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.Member.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.Member.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.Member} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.Member.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f !== 0) { + writer.writeUint64( + 1, + f + ); + } + f = message.getAddress(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getPubKey_asU8(); + if (f.length > 0) { + writer.writeBytes( + 3, + f + ); + } + f = message.getIsMalicious(); + if (f) { + writer.writeBool( + 4, + f + ); + } +}; + + +/** + * optional uint64 id = 1; + * @return {number} + */ +proto.tss.v1beta1.Member.prototype.getId = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.tss.v1beta1.Member} returns this + */ +proto.tss.v1beta1.Member.prototype.setId = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional string address = 2; + * @return {string} + */ +proto.tss.v1beta1.Member.prototype.getAddress = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.tss.v1beta1.Member} returns this + */ +proto.tss.v1beta1.Member.prototype.setAddress = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional bytes pub_key = 3; + * @return {!(string|Uint8Array)} + */ +proto.tss.v1beta1.Member.prototype.getPubKey = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * optional bytes pub_key = 3; + * This is a type-conversion wrapper around `getPubKey()` + * @return {string} + */ +proto.tss.v1beta1.Member.prototype.getPubKey_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getPubKey())); +}; + + +/** + * optional bytes pub_key = 3; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getPubKey()` + * @return {!Uint8Array} + */ +proto.tss.v1beta1.Member.prototype.getPubKey_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getPubKey())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.tss.v1beta1.Member} returns this + */ +proto.tss.v1beta1.Member.prototype.setPubKey = function(value) { + return jspb.Message.setProto3BytesField(this, 3, value); +}; + + +/** + * optional bool is_malicious = 4; + * @return {boolean} + */ +proto.tss.v1beta1.Member.prototype.getIsMalicious = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.tss.v1beta1.Member} returns this + */ +proto.tss.v1beta1.Member.prototype.setIsMalicious = function(value) { + return jspb.Message.setProto3BooleanField(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.tss.v1beta1.Status.prototype.toObject = function(opt_includeInstance) { + return proto.tss.v1beta1.Status.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.tss.v1beta1.Status} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.Status.toObject = function(includeInstance, msg) { + var f, obj = { + address: jspb.Message.getFieldWithDefault(msg, 1, ""), + status: jspb.Message.getFieldWithDefault(msg, 2, 0), + since: (f = msg.getSince()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + lastActive: (f = msg.getLastActive()) && 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.tss.v1beta1.Status} + */ +proto.tss.v1beta1.Status.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.Status; + return proto.tss.v1beta1.Status.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.Status} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.Status} + */ +proto.tss.v1beta1.Status.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 {!proto.tss.v1beta1.MemberStatus} */ (reader.readEnum()); + msg.setStatus(value); + break; + case 3: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setSince(value); + break; + case 4: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setLastActive(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.Status.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.Status.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.Status} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.Status.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getAddress(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getStatus(); + if (f !== 0.0) { + writer.writeEnum( + 2, + f + ); + } + f = message.getSince(); + if (f != null) { + writer.writeMessage( + 3, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getLastActive(); + if (f != null) { + writer.writeMessage( + 4, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string address = 1; + * @return {string} + */ +proto.tss.v1beta1.Status.prototype.getAddress = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.tss.v1beta1.Status} returns this + */ +proto.tss.v1beta1.Status.prototype.setAddress = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional MemberStatus status = 2; + * @return {!proto.tss.v1beta1.MemberStatus} + */ +proto.tss.v1beta1.Status.prototype.getStatus = function() { + return /** @type {!proto.tss.v1beta1.MemberStatus} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {!proto.tss.v1beta1.MemberStatus} value + * @return {!proto.tss.v1beta1.Status} returns this + */ +proto.tss.v1beta1.Status.prototype.setStatus = function(value) { + return jspb.Message.setProto3EnumField(this, 2, value); +}; + + +/** + * optional google.protobuf.Timestamp since = 3; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.tss.v1beta1.Status.prototype.getSince = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); +}; + + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.tss.v1beta1.Status} returns this +*/ +proto.tss.v1beta1.Status.prototype.setSince = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.tss.v1beta1.Status} returns this + */ +proto.tss.v1beta1.Status.prototype.clearSince = function() { + return this.setSince(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.tss.v1beta1.Status.prototype.hasSince = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional google.protobuf.Timestamp last_active = 4; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.tss.v1beta1.Status.prototype.getLastActive = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4)); +}; + + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.tss.v1beta1.Status} returns this +*/ +proto.tss.v1beta1.Status.prototype.setLastActive = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.tss.v1beta1.Status} returns this + */ +proto.tss.v1beta1.Status.prototype.clearLastActive = function() { + return this.setLastActive(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.tss.v1beta1.Status.prototype.hasLastActive = function() { + return jspb.Message.getField(this, 4) != 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.tss.v1beta1.Confirm.prototype.toObject = function(opt_includeInstance) { + return proto.tss.v1beta1.Confirm.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.tss.v1beta1.Confirm} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.Confirm.toObject = function(includeInstance, msg) { + var f, obj = { + memberId: jspb.Message.getFieldWithDefault(msg, 1, 0), + ownPubKeySig: msg.getOwnPubKeySig_asB64() + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.tss.v1beta1.Confirm} + */ +proto.tss.v1beta1.Confirm.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.Confirm; + return proto.tss.v1beta1.Confirm.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.Confirm} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.Confirm} + */ +proto.tss.v1beta1.Confirm.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.setMemberId(value); + break; + case 2: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setOwnPubKeySig(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.Confirm.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.Confirm.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.Confirm} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.Confirm.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMemberId(); + if (f !== 0) { + writer.writeUint64( + 1, + f + ); + } + f = message.getOwnPubKeySig_asU8(); + if (f.length > 0) { + writer.writeBytes( + 2, + f + ); + } +}; + + +/** + * optional uint64 member_id = 1; + * @return {number} + */ +proto.tss.v1beta1.Confirm.prototype.getMemberId = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.tss.v1beta1.Confirm} returns this + */ +proto.tss.v1beta1.Confirm.prototype.setMemberId = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional bytes own_pub_key_sig = 2; + * @return {!(string|Uint8Array)} + */ +proto.tss.v1beta1.Confirm.prototype.getOwnPubKeySig = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * optional bytes own_pub_key_sig = 2; + * This is a type-conversion wrapper around `getOwnPubKeySig()` + * @return {string} + */ +proto.tss.v1beta1.Confirm.prototype.getOwnPubKeySig_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getOwnPubKeySig())); +}; + + +/** + * optional bytes own_pub_key_sig = 2; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getOwnPubKeySig()` + * @return {!Uint8Array} + */ +proto.tss.v1beta1.Confirm.prototype.getOwnPubKeySig_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getOwnPubKeySig())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.tss.v1beta1.Confirm} returns this + */ +proto.tss.v1beta1.Confirm.prototype.setOwnPubKeySig = 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.tss.v1beta1.Complaint.prototype.toObject = function(opt_includeInstance) { + return proto.tss.v1beta1.Complaint.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.tss.v1beta1.Complaint} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.Complaint.toObject = function(includeInstance, msg) { + var f, obj = { + complainant: jspb.Message.getFieldWithDefault(msg, 1, 0), + respondent: jspb.Message.getFieldWithDefault(msg, 2, 0), + keySym: msg.getKeySym_asB64(), + signature: msg.getSignature_asB64() + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.tss.v1beta1.Complaint} + */ +proto.tss.v1beta1.Complaint.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.Complaint; + return proto.tss.v1beta1.Complaint.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.Complaint} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.Complaint} + */ +proto.tss.v1beta1.Complaint.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.setComplainant(value); + break; + case 2: + var value = /** @type {number} */ (reader.readUint64()); + msg.setRespondent(value); + break; + case 3: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setKeySym(value); + break; + case 4: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setSignature(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.Complaint.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.Complaint.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.Complaint} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.Complaint.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getComplainant(); + if (f !== 0) { + writer.writeUint64( + 1, + f + ); + } + f = message.getRespondent(); + if (f !== 0) { + writer.writeUint64( + 2, + f + ); + } + f = message.getKeySym_asU8(); + if (f.length > 0) { + writer.writeBytes( + 3, + f + ); + } + f = message.getSignature_asU8(); + if (f.length > 0) { + writer.writeBytes( + 4, + f + ); + } +}; + + +/** + * optional uint64 complainant = 1; + * @return {number} + */ +proto.tss.v1beta1.Complaint.prototype.getComplainant = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.tss.v1beta1.Complaint} returns this + */ +proto.tss.v1beta1.Complaint.prototype.setComplainant = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional uint64 respondent = 2; + * @return {number} + */ +proto.tss.v1beta1.Complaint.prototype.getRespondent = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.tss.v1beta1.Complaint} returns this + */ +proto.tss.v1beta1.Complaint.prototype.setRespondent = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional bytes key_sym = 3; + * @return {!(string|Uint8Array)} + */ +proto.tss.v1beta1.Complaint.prototype.getKeySym = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * optional bytes key_sym = 3; + * This is a type-conversion wrapper around `getKeySym()` + * @return {string} + */ +proto.tss.v1beta1.Complaint.prototype.getKeySym_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getKeySym())); +}; + + +/** + * optional bytes key_sym = 3; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getKeySym()` + * @return {!Uint8Array} + */ +proto.tss.v1beta1.Complaint.prototype.getKeySym_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getKeySym())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.tss.v1beta1.Complaint} returns this + */ +proto.tss.v1beta1.Complaint.prototype.setKeySym = function(value) { + return jspb.Message.setProto3BytesField(this, 3, value); +}; + + +/** + * optional bytes signature = 4; + * @return {!(string|Uint8Array)} + */ +proto.tss.v1beta1.Complaint.prototype.getSignature = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * optional bytes signature = 4; + * This is a type-conversion wrapper around `getSignature()` + * @return {string} + */ +proto.tss.v1beta1.Complaint.prototype.getSignature_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getSignature())); +}; + + +/** + * optional bytes signature = 4; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getSignature()` + * @return {!Uint8Array} + */ +proto.tss.v1beta1.Complaint.prototype.getSignature_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getSignature())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.tss.v1beta1.Complaint} returns this + */ +proto.tss.v1beta1.Complaint.prototype.setSignature = function(value) { + return jspb.Message.setProto3BytesField(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.tss.v1beta1.ComplaintWithStatus.prototype.toObject = function(opt_includeInstance) { + return proto.tss.v1beta1.ComplaintWithStatus.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.tss.v1beta1.ComplaintWithStatus} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.ComplaintWithStatus.toObject = function(includeInstance, msg) { + var f, obj = { + complaint: (f = msg.getComplaint()) && proto.tss.v1beta1.Complaint.toObject(includeInstance, f), + complaintStatus: jspb.Message.getFieldWithDefault(msg, 2, 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.tss.v1beta1.ComplaintWithStatus} + */ +proto.tss.v1beta1.ComplaintWithStatus.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.ComplaintWithStatus; + return proto.tss.v1beta1.ComplaintWithStatus.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.ComplaintWithStatus} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.ComplaintWithStatus} + */ +proto.tss.v1beta1.ComplaintWithStatus.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.tss.v1beta1.Complaint; + reader.readMessage(value,proto.tss.v1beta1.Complaint.deserializeBinaryFromReader); + msg.setComplaint(value); + break; + case 2: + var value = /** @type {!proto.tss.v1beta1.ComplaintStatus} */ (reader.readEnum()); + msg.setComplaintStatus(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.ComplaintWithStatus.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.ComplaintWithStatus.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.ComplaintWithStatus} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.ComplaintWithStatus.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getComplaint(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.tss.v1beta1.Complaint.serializeBinaryToWriter + ); + } + f = message.getComplaintStatus(); + if (f !== 0.0) { + writer.writeEnum( + 2, + f + ); + } +}; + + +/** + * optional Complaint complaint = 1; + * @return {?proto.tss.v1beta1.Complaint} + */ +proto.tss.v1beta1.ComplaintWithStatus.prototype.getComplaint = function() { + return /** @type{?proto.tss.v1beta1.Complaint} */ ( + jspb.Message.getWrapperField(this, proto.tss.v1beta1.Complaint, 1)); +}; + + +/** + * @param {?proto.tss.v1beta1.Complaint|undefined} value + * @return {!proto.tss.v1beta1.ComplaintWithStatus} returns this +*/ +proto.tss.v1beta1.ComplaintWithStatus.prototype.setComplaint = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.tss.v1beta1.ComplaintWithStatus} returns this + */ +proto.tss.v1beta1.ComplaintWithStatus.prototype.clearComplaint = function() { + return this.setComplaint(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.tss.v1beta1.ComplaintWithStatus.prototype.hasComplaint = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional ComplaintStatus complaint_status = 2; + * @return {!proto.tss.v1beta1.ComplaintStatus} + */ +proto.tss.v1beta1.ComplaintWithStatus.prototype.getComplaintStatus = function() { + return /** @type {!proto.tss.v1beta1.ComplaintStatus} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {!proto.tss.v1beta1.ComplaintStatus} value + * @return {!proto.tss.v1beta1.ComplaintWithStatus} returns this + */ +proto.tss.v1beta1.ComplaintWithStatus.prototype.setComplaintStatus = function(value) { + return jspb.Message.setProto3EnumField(this, 2, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.tss.v1beta1.ComplaintsWithStatus.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.tss.v1beta1.ComplaintsWithStatus.prototype.toObject = function(opt_includeInstance) { + return proto.tss.v1beta1.ComplaintsWithStatus.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.tss.v1beta1.ComplaintsWithStatus} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.ComplaintsWithStatus.toObject = function(includeInstance, msg) { + var f, obj = { + memberId: jspb.Message.getFieldWithDefault(msg, 1, 0), + complaintsWithStatusList: jspb.Message.toObjectList(msg.getComplaintsWithStatusList(), + proto.tss.v1beta1.ComplaintWithStatus.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.tss.v1beta1.ComplaintsWithStatus} + */ +proto.tss.v1beta1.ComplaintsWithStatus.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.ComplaintsWithStatus; + return proto.tss.v1beta1.ComplaintsWithStatus.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.ComplaintsWithStatus} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.ComplaintsWithStatus} + */ +proto.tss.v1beta1.ComplaintsWithStatus.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.setMemberId(value); + break; + case 2: + var value = new proto.tss.v1beta1.ComplaintWithStatus; + reader.readMessage(value,proto.tss.v1beta1.ComplaintWithStatus.deserializeBinaryFromReader); + msg.addComplaintsWithStatus(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.ComplaintsWithStatus.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.ComplaintsWithStatus.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.ComplaintsWithStatus} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.ComplaintsWithStatus.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMemberId(); + if (f !== 0) { + writer.writeUint64( + 1, + f + ); + } + f = message.getComplaintsWithStatusList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto.tss.v1beta1.ComplaintWithStatus.serializeBinaryToWriter + ); + } +}; + + +/** + * optional uint64 member_id = 1; + * @return {number} + */ +proto.tss.v1beta1.ComplaintsWithStatus.prototype.getMemberId = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.tss.v1beta1.ComplaintsWithStatus} returns this + */ +proto.tss.v1beta1.ComplaintsWithStatus.prototype.setMemberId = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * repeated ComplaintWithStatus complaints_with_status = 2; + * @return {!Array} + */ +proto.tss.v1beta1.ComplaintsWithStatus.prototype.getComplaintsWithStatusList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.tss.v1beta1.ComplaintWithStatus, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.tss.v1beta1.ComplaintsWithStatus} returns this +*/ +proto.tss.v1beta1.ComplaintsWithStatus.prototype.setComplaintsWithStatusList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.tss.v1beta1.ComplaintWithStatus=} opt_value + * @param {number=} opt_index + * @return {!proto.tss.v1beta1.ComplaintWithStatus} + */ +proto.tss.v1beta1.ComplaintsWithStatus.prototype.addComplaintsWithStatus = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.tss.v1beta1.ComplaintWithStatus, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.tss.v1beta1.ComplaintsWithStatus} returns this + */ +proto.tss.v1beta1.ComplaintsWithStatus.prototype.clearComplaintsWithStatusList = function() { + return this.setComplaintsWithStatusList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.tss.v1beta1.PendingProcessGroups.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.tss.v1beta1.PendingProcessGroups.prototype.toObject = function(opt_includeInstance) { + return proto.tss.v1beta1.PendingProcessGroups.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.tss.v1beta1.PendingProcessGroups} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.PendingProcessGroups.toObject = function(includeInstance, msg) { + var f, obj = { + groupIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : 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.tss.v1beta1.PendingProcessGroups} + */ +proto.tss.v1beta1.PendingProcessGroups.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.PendingProcessGroups; + return proto.tss.v1beta1.PendingProcessGroups.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.PendingProcessGroups} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.PendingProcessGroups} + */ +proto.tss.v1beta1.PendingProcessGroups.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.addGroupIds(values[i]); + } + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.PendingProcessGroups.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.PendingProcessGroups.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.PendingProcessGroups} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.PendingProcessGroups.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getGroupIdsList(); + if (f.length > 0) { + writer.writePackedUint64( + 1, + f + ); + } +}; + + +/** + * repeated uint64 group_ids = 1; + * @return {!Array} + */ +proto.tss.v1beta1.PendingProcessGroups.prototype.getGroupIdsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.tss.v1beta1.PendingProcessGroups} returns this + */ +proto.tss.v1beta1.PendingProcessGroups.prototype.setGroupIdsList = function(value) { + return jspb.Message.setField(this, 1, value || []); +}; + + +/** + * @param {number} value + * @param {number=} opt_index + * @return {!proto.tss.v1beta1.PendingProcessGroups} returns this + */ +proto.tss.v1beta1.PendingProcessGroups.prototype.addGroupIds = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 1, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.tss.v1beta1.PendingProcessGroups} returns this + */ +proto.tss.v1beta1.PendingProcessGroups.prototype.clearGroupIdsList = function() { + return this.setGroupIdsList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.tss.v1beta1.PendingProcessSignings.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.tss.v1beta1.PendingProcessSignings.prototype.toObject = function(opt_includeInstance) { + return proto.tss.v1beta1.PendingProcessSignings.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.tss.v1beta1.PendingProcessSignings} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.PendingProcessSignings.toObject = function(includeInstance, msg) { + var f, obj = { + signingIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : 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.tss.v1beta1.PendingProcessSignings} + */ +proto.tss.v1beta1.PendingProcessSignings.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.PendingProcessSignings; + return proto.tss.v1beta1.PendingProcessSignings.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.PendingProcessSignings} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.PendingProcessSignings} + */ +proto.tss.v1beta1.PendingProcessSignings.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.addSigningIds(values[i]); + } + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.PendingProcessSignings.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.PendingProcessSignings.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.PendingProcessSignings} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.PendingProcessSignings.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSigningIdsList(); + if (f.length > 0) { + writer.writePackedUint64( + 1, + f + ); + } +}; + + +/** + * repeated uint64 signing_ids = 1; + * @return {!Array} + */ +proto.tss.v1beta1.PendingProcessSignings.prototype.getSigningIdsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.tss.v1beta1.PendingProcessSignings} returns this + */ +proto.tss.v1beta1.PendingProcessSignings.prototype.setSigningIdsList = function(value) { + return jspb.Message.setField(this, 1, value || []); +}; + + +/** + * @param {number} value + * @param {number=} opt_index + * @return {!proto.tss.v1beta1.PendingProcessSignings} returns this + */ +proto.tss.v1beta1.PendingProcessSignings.prototype.addSigningIds = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 1, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.tss.v1beta1.PendingProcessSignings} returns this + */ +proto.tss.v1beta1.PendingProcessSignings.prototype.clearSigningIdsList = function() { + return this.setSigningIdsList([]); +}; + + + + + +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.tss.v1beta1.PartialSignature.prototype.toObject = function(opt_includeInstance) { + return proto.tss.v1beta1.PartialSignature.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.tss.v1beta1.PartialSignature} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.PartialSignature.toObject = function(includeInstance, msg) { + var f, obj = { + memberId: jspb.Message.getFieldWithDefault(msg, 1, 0), + signature: msg.getSignature_asB64() + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.tss.v1beta1.PartialSignature} + */ +proto.tss.v1beta1.PartialSignature.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.PartialSignature; + return proto.tss.v1beta1.PartialSignature.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.PartialSignature} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.PartialSignature} + */ +proto.tss.v1beta1.PartialSignature.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.setMemberId(value); + break; + case 2: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setSignature(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.PartialSignature.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.PartialSignature.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.PartialSignature} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.PartialSignature.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMemberId(); + if (f !== 0) { + writer.writeUint64( + 1, + f + ); + } + f = message.getSignature_asU8(); + if (f.length > 0) { + writer.writeBytes( + 2, + f + ); + } +}; + + +/** + * optional uint64 member_id = 1; + * @return {number} + */ +proto.tss.v1beta1.PartialSignature.prototype.getMemberId = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.tss.v1beta1.PartialSignature} returns this + */ +proto.tss.v1beta1.PartialSignature.prototype.setMemberId = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional bytes signature = 2; + * @return {!(string|Uint8Array)} + */ +proto.tss.v1beta1.PartialSignature.prototype.getSignature = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * optional bytes signature = 2; + * This is a type-conversion wrapper around `getSignature()` + * @return {string} + */ +proto.tss.v1beta1.PartialSignature.prototype.getSignature_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getSignature())); +}; + + +/** + * optional bytes signature = 2; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getSignature()` + * @return {!Uint8Array} + */ +proto.tss.v1beta1.PartialSignature.prototype.getSignature_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getSignature())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.tss.v1beta1.PartialSignature} returns this + */ +proto.tss.v1beta1.PartialSignature.prototype.setSignature = 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.tss.v1beta1.TextRequestingSignature.prototype.toObject = function(opt_includeInstance) { + return proto.tss.v1beta1.TextRequestingSignature.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.tss.v1beta1.TextRequestingSignature} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.TextRequestingSignature.toObject = function(includeInstance, msg) { + var f, obj = { + message: msg.getMessage_asB64() + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.tss.v1beta1.TextRequestingSignature} + */ +proto.tss.v1beta1.TextRequestingSignature.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.TextRequestingSignature; + return proto.tss.v1beta1.TextRequestingSignature.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.TextRequestingSignature} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.TextRequestingSignature} + */ +proto.tss.v1beta1.TextRequestingSignature.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.setMessage(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.TextRequestingSignature.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.TextRequestingSignature.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.TextRequestingSignature} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.TextRequestingSignature.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMessage_asU8(); + if (f.length > 0) { + writer.writeBytes( + 1, + f + ); + } +}; + + +/** + * optional bytes message = 1; + * @return {!(string|Uint8Array)} + */ +proto.tss.v1beta1.TextRequestingSignature.prototype.getMessage = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * optional bytes message = 1; + * This is a type-conversion wrapper around `getMessage()` + * @return {string} + */ +proto.tss.v1beta1.TextRequestingSignature.prototype.getMessage_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getMessage())); +}; + + +/** + * optional bytes message = 1; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getMessage()` + * @return {!Uint8Array} + */ +proto.tss.v1beta1.TextRequestingSignature.prototype.getMessage_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getMessage())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.tss.v1beta1.TextRequestingSignature} returns this + */ +proto.tss.v1beta1.TextRequestingSignature.prototype.setMessage = 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.tss.v1beta1.EVMSignature.prototype.toObject = function(opt_includeInstance) { + return proto.tss.v1beta1.EVMSignature.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.tss.v1beta1.EVMSignature} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.EVMSignature.toObject = function(includeInstance, msg) { + var f, obj = { + rAddress: msg.getRAddress_asB64(), + signature: msg.getSignature_asB64() + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.tss.v1beta1.EVMSignature} + */ +proto.tss.v1beta1.EVMSignature.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.EVMSignature; + return proto.tss.v1beta1.EVMSignature.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.EVMSignature} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.EVMSignature} + */ +proto.tss.v1beta1.EVMSignature.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.setRAddress(value); + break; + case 2: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setSignature(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.EVMSignature.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.EVMSignature.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.EVMSignature} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.EVMSignature.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getRAddress_asU8(); + if (f.length > 0) { + writer.writeBytes( + 1, + f + ); + } + f = message.getSignature_asU8(); + if (f.length > 0) { + writer.writeBytes( + 2, + f + ); + } +}; + + +/** + * optional bytes r_address = 1; + * @return {!(string|Uint8Array)} + */ +proto.tss.v1beta1.EVMSignature.prototype.getRAddress = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * optional bytes r_address = 1; + * This is a type-conversion wrapper around `getRAddress()` + * @return {string} + */ +proto.tss.v1beta1.EVMSignature.prototype.getRAddress_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getRAddress())); +}; + + +/** + * optional bytes r_address = 1; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getRAddress()` + * @return {!Uint8Array} + */ +proto.tss.v1beta1.EVMSignature.prototype.getRAddress_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getRAddress())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.tss.v1beta1.EVMSignature} returns this + */ +proto.tss.v1beta1.EVMSignature.prototype.setRAddress = function(value) { + return jspb.Message.setProto3BytesField(this, 1, value); +}; + + +/** + * optional bytes signature = 2; + * @return {!(string|Uint8Array)} + */ +proto.tss.v1beta1.EVMSignature.prototype.getSignature = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * optional bytes signature = 2; + * This is a type-conversion wrapper around `getSignature()` + * @return {string} + */ +proto.tss.v1beta1.EVMSignature.prototype.getSignature_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getSignature())); +}; + + +/** + * optional bytes signature = 2; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getSignature()` + * @return {!Uint8Array} + */ +proto.tss.v1beta1.EVMSignature.prototype.getSignature_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getSignature())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.tss.v1beta1.EVMSignature} returns this + */ +proto.tss.v1beta1.EVMSignature.prototype.setSignature = function(value) { + return jspb.Message.setProto3BytesField(this, 2, value); +}; + + +/** + * @enum {number} + */ +proto.tss.v1beta1.ReplacementStatus = { + REPLACEMENT_STATUS_UNSPECIFIED: 0, + REPLACEMENT_STATUS_WAITING: 1, + REPLACEMENT_STATUS_SUCCESS: 2, + REPLACEMENT_STATUS_FALLEN: 3 +}; + +/** + * @enum {number} + */ +proto.tss.v1beta1.SigningStatus = { + SIGNING_STATUS_UNSPECIFIED: 0, + SIGNING_STATUS_WAITING: 1, + SIGNING_STATUS_SUCCESS: 2, + SIGNING_STATUS_EXPIRED: 3, + SIGNING_STATUS_FALLEN: 4 +}; + +/** + * @enum {number} + */ +proto.tss.v1beta1.MemberStatus = { + MEMBER_STATUS_UNSPECIFIED: 0, + MEMBER_STATUS_ACTIVE: 1, + MEMBER_STATUS_INACTIVE: 2, + MEMBER_STATUS_JAIL: 3 +}; + +/** + * @enum {number} + */ +proto.tss.v1beta1.GroupStatus = { + GROUP_STATUS_UNSPECIFIED: 0, + GROUP_STATUS_ROUND_1: 1, + GROUP_STATUS_ROUND_2: 2, + GROUP_STATUS_ROUND_3: 3, + GROUP_STATUS_ACTIVE: 4, + GROUP_STATUS_EXPIRED: 5, + GROUP_STATUS_FALLEN: 6 +}; + +/** + * @enum {number} + */ +proto.tss.v1beta1.ComplaintStatus = { + COMPLAINT_STATUS_UNSPECIFIED: 0, + COMPLAINT_STATUS_SUCCESS: 1, + COMPLAINT_STATUS_FAILED: 2 +}; + +/** + * @enum {number} + */ +proto.tss.v1beta1.PrefixMsgType = { + PREFIX_UNSPECIFIED_MSG: 0, + PREFIX_TEXT_MSG: 1, + PREFIX_REPLACE_GROUP_MSG: 2, + PREFIX_ORACLE_MSG: 3 +}; + +goog.object.extend(exports, proto.tss.v1beta1); diff --git a/proto/tss/v1beta1/tss_pb_service.d.ts b/proto/tss/v1beta1/tss_pb_service.d.ts new file mode 100644 index 0000000..72c2c7f --- /dev/null +++ b/proto/tss/v1beta1/tss_pb_service.d.ts @@ -0,0 +1,3 @@ +// package: tss.v1beta1 +// file: tss/v1beta1/tss.proto + diff --git a/proto/tss/v1beta1/tss_pb_service.js b/proto/tss/v1beta1/tss_pb_service.js new file mode 100644 index 0000000..72c2c7f --- /dev/null +++ b/proto/tss/v1beta1/tss_pb_service.js @@ -0,0 +1,3 @@ +// package: tss.v1beta1 +// file: tss/v1beta1/tss.proto + diff --git a/proto/tss/v1beta1/tx_pb.d.ts b/proto/tss/v1beta1/tx_pb.d.ts new file mode 100644 index 0000000..6d71b51 --- /dev/null +++ b/proto/tss/v1beta1/tx_pb.d.ts @@ -0,0 +1,608 @@ +// package: tss.v1beta1 +// file: tss/v1beta1/tx.proto + +import * as jspb from "google-protobuf"; +import * as gogoproto_gogo_pb from "../../gogoproto/gogo_pb"; +import * as google_protobuf_any_pb from "google-protobuf/google/protobuf/any_pb"; +import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb"; +import * as amino_amino_pb from "../../amino/amino_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 tss_v1beta1_tss_pb from "../../tss/v1beta1/tss_pb"; +import * as tss_v1beta1_genesis_pb from "../../tss/v1beta1/genesis_pb"; + +export class MsgCreateGroup extends jspb.Message { + clearMembersList(): void; + getMembersList(): Array; + setMembersList(value: Array): void; + addMembers(value: string, index?: number): string; + + getThreshold(): number; + setThreshold(value: number): 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; + + getAuthority(): string; + setAuthority(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MsgCreateGroup.AsObject; + static toObject(includeInstance: boolean, msg: MsgCreateGroup): MsgCreateGroup.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MsgCreateGroup, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MsgCreateGroup; + static deserializeBinaryFromReader(message: MsgCreateGroup, reader: jspb.BinaryReader): MsgCreateGroup; +} + +export namespace MsgCreateGroup { + export type AsObject = { + membersList: Array, + threshold: number, + feeList: Array, + authority: string, + } +} + +export class MsgCreateGroupResponse extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MsgCreateGroupResponse.AsObject; + static toObject(includeInstance: boolean, msg: MsgCreateGroupResponse): MsgCreateGroupResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MsgCreateGroupResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MsgCreateGroupResponse; + static deserializeBinaryFromReader(message: MsgCreateGroupResponse, reader: jspb.BinaryReader): MsgCreateGroupResponse; +} + +export namespace MsgCreateGroupResponse { + export type AsObject = { + } +} + +export class MsgReplaceGroup extends jspb.Message { + getFromGroupId(): number; + setFromGroupId(value: number): void; + + getToGroupId(): number; + setToGroupId(value: number): void; + + hasExecTime(): boolean; + clearExecTime(): void; + getExecTime(): google_protobuf_timestamp_pb.Timestamp | undefined; + setExecTime(value?: google_protobuf_timestamp_pb.Timestamp): void; + + getAuthority(): string; + setAuthority(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MsgReplaceGroup.AsObject; + static toObject(includeInstance: boolean, msg: MsgReplaceGroup): MsgReplaceGroup.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MsgReplaceGroup, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MsgReplaceGroup; + static deserializeBinaryFromReader(message: MsgReplaceGroup, reader: jspb.BinaryReader): MsgReplaceGroup; +} + +export namespace MsgReplaceGroup { + export type AsObject = { + fromGroupId: number, + toGroupId: number, + execTime?: google_protobuf_timestamp_pb.Timestamp.AsObject, + authority: string, + } +} + +export class MsgReplaceGroupResponse extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MsgReplaceGroupResponse.AsObject; + static toObject(includeInstance: boolean, msg: MsgReplaceGroupResponse): MsgReplaceGroupResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MsgReplaceGroupResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MsgReplaceGroupResponse; + static deserializeBinaryFromReader(message: MsgReplaceGroupResponse, reader: jspb.BinaryReader): MsgReplaceGroupResponse; +} + +export namespace MsgReplaceGroupResponse { + export type AsObject = { + } +} + +export class MsgUpdateGroupFee extends jspb.Message { + getGroupId(): number; + setGroupId(value: number): 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; + + getAuthority(): string; + setAuthority(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MsgUpdateGroupFee.AsObject; + static toObject(includeInstance: boolean, msg: MsgUpdateGroupFee): MsgUpdateGroupFee.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MsgUpdateGroupFee, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MsgUpdateGroupFee; + static deserializeBinaryFromReader(message: MsgUpdateGroupFee, reader: jspb.BinaryReader): MsgUpdateGroupFee; +} + +export namespace MsgUpdateGroupFee { + export type AsObject = { + groupId: number, + feeList: Array, + authority: string, + } +} + +export class MsgUpdateGroupFeeResponse extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MsgUpdateGroupFeeResponse.AsObject; + static toObject(includeInstance: boolean, msg: MsgUpdateGroupFeeResponse): MsgUpdateGroupFeeResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MsgUpdateGroupFeeResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MsgUpdateGroupFeeResponse; + static deserializeBinaryFromReader(message: MsgUpdateGroupFeeResponse, reader: jspb.BinaryReader): MsgUpdateGroupFeeResponse; +} + +export namespace MsgUpdateGroupFeeResponse { + export type AsObject = { + } +} + +export class MsgSubmitDKGRound1 extends jspb.Message { + getGroupId(): number; + setGroupId(value: number): void; + + hasRound1Info(): boolean; + clearRound1Info(): void; + getRound1Info(): tss_v1beta1_tss_pb.Round1Info | undefined; + setRound1Info(value?: tss_v1beta1_tss_pb.Round1Info): void; + + getAddress(): string; + setAddress(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MsgSubmitDKGRound1.AsObject; + static toObject(includeInstance: boolean, msg: MsgSubmitDKGRound1): MsgSubmitDKGRound1.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MsgSubmitDKGRound1, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MsgSubmitDKGRound1; + static deserializeBinaryFromReader(message: MsgSubmitDKGRound1, reader: jspb.BinaryReader): MsgSubmitDKGRound1; +} + +export namespace MsgSubmitDKGRound1 { + export type AsObject = { + groupId: number, + round1Info?: tss_v1beta1_tss_pb.Round1Info.AsObject, + address: string, + } +} + +export class MsgSubmitDKGRound1Response extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MsgSubmitDKGRound1Response.AsObject; + static toObject(includeInstance: boolean, msg: MsgSubmitDKGRound1Response): MsgSubmitDKGRound1Response.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MsgSubmitDKGRound1Response, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MsgSubmitDKGRound1Response; + static deserializeBinaryFromReader(message: MsgSubmitDKGRound1Response, reader: jspb.BinaryReader): MsgSubmitDKGRound1Response; +} + +export namespace MsgSubmitDKGRound1Response { + export type AsObject = { + } +} + +export class MsgSubmitDKGRound2 extends jspb.Message { + getGroupId(): number; + setGroupId(value: number): void; + + hasRound2Info(): boolean; + clearRound2Info(): void; + getRound2Info(): tss_v1beta1_tss_pb.Round2Info | undefined; + setRound2Info(value?: tss_v1beta1_tss_pb.Round2Info): void; + + getAddress(): string; + setAddress(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MsgSubmitDKGRound2.AsObject; + static toObject(includeInstance: boolean, msg: MsgSubmitDKGRound2): MsgSubmitDKGRound2.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MsgSubmitDKGRound2, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MsgSubmitDKGRound2; + static deserializeBinaryFromReader(message: MsgSubmitDKGRound2, reader: jspb.BinaryReader): MsgSubmitDKGRound2; +} + +export namespace MsgSubmitDKGRound2 { + export type AsObject = { + groupId: number, + round2Info?: tss_v1beta1_tss_pb.Round2Info.AsObject, + address: string, + } +} + +export class MsgSubmitDKGRound2Response extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MsgSubmitDKGRound2Response.AsObject; + static toObject(includeInstance: boolean, msg: MsgSubmitDKGRound2Response): MsgSubmitDKGRound2Response.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MsgSubmitDKGRound2Response, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MsgSubmitDKGRound2Response; + static deserializeBinaryFromReader(message: MsgSubmitDKGRound2Response, reader: jspb.BinaryReader): MsgSubmitDKGRound2Response; +} + +export namespace MsgSubmitDKGRound2Response { + export type AsObject = { + } +} + +export class MsgComplain extends jspb.Message { + getGroupId(): number; + setGroupId(value: number): void; + + clearComplaintsList(): void; + getComplaintsList(): Array; + setComplaintsList(value: Array): void; + addComplaints(value?: tss_v1beta1_tss_pb.Complaint, index?: number): tss_v1beta1_tss_pb.Complaint; + + getAddress(): string; + setAddress(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MsgComplain.AsObject; + static toObject(includeInstance: boolean, msg: MsgComplain): MsgComplain.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MsgComplain, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MsgComplain; + static deserializeBinaryFromReader(message: MsgComplain, reader: jspb.BinaryReader): MsgComplain; +} + +export namespace MsgComplain { + export type AsObject = { + groupId: number, + complaintsList: Array, + address: string, + } +} + +export class MsgComplainResponse extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MsgComplainResponse.AsObject; + static toObject(includeInstance: boolean, msg: MsgComplainResponse): MsgComplainResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MsgComplainResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MsgComplainResponse; + static deserializeBinaryFromReader(message: MsgComplainResponse, reader: jspb.BinaryReader): MsgComplainResponse; +} + +export namespace MsgComplainResponse { + export type AsObject = { + } +} + +export class MsgConfirm extends jspb.Message { + getGroupId(): number; + setGroupId(value: number): void; + + getMemberId(): number; + setMemberId(value: number): void; + + getOwnPubKeySig(): Uint8Array | string; + getOwnPubKeySig_asU8(): Uint8Array; + getOwnPubKeySig_asB64(): string; + setOwnPubKeySig(value: Uint8Array | string): void; + + getAddress(): string; + setAddress(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MsgConfirm.AsObject; + static toObject(includeInstance: boolean, msg: MsgConfirm): MsgConfirm.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MsgConfirm, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MsgConfirm; + static deserializeBinaryFromReader(message: MsgConfirm, reader: jspb.BinaryReader): MsgConfirm; +} + +export namespace MsgConfirm { + export type AsObject = { + groupId: number, + memberId: number, + ownPubKeySig: Uint8Array | string, + address: string, + } +} + +export class MsgConfirmResponse extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MsgConfirmResponse.AsObject; + static toObject(includeInstance: boolean, msg: MsgConfirmResponse): MsgConfirmResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MsgConfirmResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MsgConfirmResponse; + static deserializeBinaryFromReader(message: MsgConfirmResponse, reader: jspb.BinaryReader): MsgConfirmResponse; +} + +export namespace MsgConfirmResponse { + export type AsObject = { + } +} + +export class MsgSubmitDEs extends jspb.Message { + clearDesList(): void; + getDesList(): Array; + setDesList(value: Array): void; + addDes(value?: tss_v1beta1_tss_pb.DE, index?: number): tss_v1beta1_tss_pb.DE; + + getAddress(): string; + setAddress(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MsgSubmitDEs.AsObject; + static toObject(includeInstance: boolean, msg: MsgSubmitDEs): MsgSubmitDEs.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MsgSubmitDEs, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MsgSubmitDEs; + static deserializeBinaryFromReader(message: MsgSubmitDEs, reader: jspb.BinaryReader): MsgSubmitDEs; +} + +export namespace MsgSubmitDEs { + export type AsObject = { + desList: Array, + address: string, + } +} + +export class MsgSubmitDEsResponse extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MsgSubmitDEsResponse.AsObject; + static toObject(includeInstance: boolean, msg: MsgSubmitDEsResponse): MsgSubmitDEsResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MsgSubmitDEsResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MsgSubmitDEsResponse; + static deserializeBinaryFromReader(message: MsgSubmitDEsResponse, reader: jspb.BinaryReader): MsgSubmitDEsResponse; +} + +export namespace MsgSubmitDEsResponse { + export type AsObject = { + } +} + +export class MsgRequestSignature extends jspb.Message { + getGroupId(): number; + setGroupId(value: number): void; + + hasContent(): boolean; + clearContent(): void; + getContent(): google_protobuf_any_pb.Any | undefined; + setContent(value?: google_protobuf_any_pb.Any): 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; + + getSender(): string; + setSender(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MsgRequestSignature.AsObject; + static toObject(includeInstance: boolean, msg: MsgRequestSignature): MsgRequestSignature.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MsgRequestSignature, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MsgRequestSignature; + static deserializeBinaryFromReader(message: MsgRequestSignature, reader: jspb.BinaryReader): MsgRequestSignature; +} + +export namespace MsgRequestSignature { + export type AsObject = { + groupId: number, + content?: google_protobuf_any_pb.Any.AsObject, + feeLimitList: Array, + sender: string, + } +} + +export class MsgRequestSignatureResponse extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MsgRequestSignatureResponse.AsObject; + static toObject(includeInstance: boolean, msg: MsgRequestSignatureResponse): MsgRequestSignatureResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MsgRequestSignatureResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MsgRequestSignatureResponse; + static deserializeBinaryFromReader(message: MsgRequestSignatureResponse, reader: jspb.BinaryReader): MsgRequestSignatureResponse; +} + +export namespace MsgRequestSignatureResponse { + export type AsObject = { + } +} + +export class MsgSubmitSignature extends jspb.Message { + getSigningId(): number; + setSigningId(value: number): void; + + getMemberId(): number; + setMemberId(value: number): void; + + getSignature(): Uint8Array | string; + getSignature_asU8(): Uint8Array; + getSignature_asB64(): string; + setSignature(value: Uint8Array | string): void; + + getAddress(): string; + setAddress(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MsgSubmitSignature.AsObject; + static toObject(includeInstance: boolean, msg: MsgSubmitSignature): MsgSubmitSignature.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MsgSubmitSignature, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MsgSubmitSignature; + static deserializeBinaryFromReader(message: MsgSubmitSignature, reader: jspb.BinaryReader): MsgSubmitSignature; +} + +export namespace MsgSubmitSignature { + export type AsObject = { + signingId: number, + memberId: number, + signature: Uint8Array | string, + address: string, + } +} + +export class MsgSubmitSignatureResponse extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MsgSubmitSignatureResponse.AsObject; + static toObject(includeInstance: boolean, msg: MsgSubmitSignatureResponse): MsgSubmitSignatureResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MsgSubmitSignatureResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MsgSubmitSignatureResponse; + static deserializeBinaryFromReader(message: MsgSubmitSignatureResponse, reader: jspb.BinaryReader): MsgSubmitSignatureResponse; +} + +export namespace MsgSubmitSignatureResponse { + export type AsObject = { + } +} + +export class MsgActivate extends jspb.Message { + getAddress(): string; + setAddress(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 = { + address: 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; +} + +export namespace MsgActivateResponse { + export type AsObject = { + } +} + +export class MsgActive extends jspb.Message { + getAddress(): string; + setAddress(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MsgActive.AsObject; + static toObject(includeInstance: boolean, msg: MsgActive): MsgActive.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MsgActive, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MsgActive; + static deserializeBinaryFromReader(message: MsgActive, reader: jspb.BinaryReader): MsgActive; +} + +export namespace MsgActive { + export type AsObject = { + address: string, + } +} + +export class MsgActiveResponse extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MsgActiveResponse.AsObject; + static toObject(includeInstance: boolean, msg: MsgActiveResponse): MsgActiveResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MsgActiveResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MsgActiveResponse; + static deserializeBinaryFromReader(message: MsgActiveResponse, reader: jspb.BinaryReader): MsgActiveResponse; +} + +export namespace MsgActiveResponse { + export type AsObject = { + } +} + +export class MsgUpdateParams extends jspb.Message { + getAuthority(): string; + setAuthority(value: string): void; + + hasParams(): boolean; + clearParams(): void; + getParams(): tss_v1beta1_genesis_pb.Params | undefined; + setParams(value?: tss_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; +} + +export namespace MsgUpdateParams { + export type AsObject = { + authority: string, + params?: tss_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; +} + +export namespace MsgUpdateParamsResponse { + export type AsObject = { + } +} + diff --git a/proto/tss/v1beta1/tx_pb.js b/proto/tss/v1beta1/tx_pb.js new file mode 100644 index 0000000..d5b96bb --- /dev/null +++ b/proto/tss/v1beta1/tx_pb.js @@ -0,0 +1,4683 @@ +// source: tss/v1beta1/tx.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* 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_any_pb = require('google-protobuf/google/protobuf/any_pb.js'); +goog.object.extend(proto, google_protobuf_any_pb); +var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); +goog.object.extend(proto, google_protobuf_timestamp_pb); +var amino_amino_pb = require('../../amino/amino_pb.js'); +goog.object.extend(proto, amino_amino_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 tss_v1beta1_tss_pb = require('../../tss/v1beta1/tss_pb.js'); +goog.object.extend(proto, tss_v1beta1_tss_pb); +var tss_v1beta1_genesis_pb = require('../../tss/v1beta1/genesis_pb.js'); +goog.object.extend(proto, tss_v1beta1_genesis_pb); +goog.exportSymbol('proto.tss.v1beta1.MsgActivate', null, global); +goog.exportSymbol('proto.tss.v1beta1.MsgActivateResponse', null, global); +goog.exportSymbol('proto.tss.v1beta1.MsgActive', null, global); +goog.exportSymbol('proto.tss.v1beta1.MsgActiveResponse', null, global); +goog.exportSymbol('proto.tss.v1beta1.MsgComplain', null, global); +goog.exportSymbol('proto.tss.v1beta1.MsgComplainResponse', null, global); +goog.exportSymbol('proto.tss.v1beta1.MsgConfirm', null, global); +goog.exportSymbol('proto.tss.v1beta1.MsgConfirmResponse', null, global); +goog.exportSymbol('proto.tss.v1beta1.MsgCreateGroup', null, global); +goog.exportSymbol('proto.tss.v1beta1.MsgCreateGroupResponse', null, global); +goog.exportSymbol('proto.tss.v1beta1.MsgReplaceGroup', null, global); +goog.exportSymbol('proto.tss.v1beta1.MsgReplaceGroupResponse', null, global); +goog.exportSymbol('proto.tss.v1beta1.MsgRequestSignature', null, global); +goog.exportSymbol('proto.tss.v1beta1.MsgRequestSignatureResponse', null, global); +goog.exportSymbol('proto.tss.v1beta1.MsgSubmitDEs', null, global); +goog.exportSymbol('proto.tss.v1beta1.MsgSubmitDEsResponse', null, global); +goog.exportSymbol('proto.tss.v1beta1.MsgSubmitDKGRound1', null, global); +goog.exportSymbol('proto.tss.v1beta1.MsgSubmitDKGRound1Response', null, global); +goog.exportSymbol('proto.tss.v1beta1.MsgSubmitDKGRound2', null, global); +goog.exportSymbol('proto.tss.v1beta1.MsgSubmitDKGRound2Response', null, global); +goog.exportSymbol('proto.tss.v1beta1.MsgSubmitSignature', null, global); +goog.exportSymbol('proto.tss.v1beta1.MsgSubmitSignatureResponse', null, global); +goog.exportSymbol('proto.tss.v1beta1.MsgUpdateGroupFee', null, global); +goog.exportSymbol('proto.tss.v1beta1.MsgUpdateGroupFeeResponse', null, global); +goog.exportSymbol('proto.tss.v1beta1.MsgUpdateParams', null, global); +goog.exportSymbol('proto.tss.v1beta1.MsgUpdateParamsResponse', null, global); +/** + * 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.tss.v1beta1.MsgCreateGroup = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.tss.v1beta1.MsgCreateGroup.repeatedFields_, null); +}; +goog.inherits(proto.tss.v1beta1.MsgCreateGroup, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.MsgCreateGroup.displayName = 'proto.tss.v1beta1.MsgCreateGroup'; +} +/** + * 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.tss.v1beta1.MsgCreateGroupResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.tss.v1beta1.MsgCreateGroupResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.MsgCreateGroupResponse.displayName = 'proto.tss.v1beta1.MsgCreateGroupResponse'; +} +/** + * 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.tss.v1beta1.MsgReplaceGroup = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.tss.v1beta1.MsgReplaceGroup, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.MsgReplaceGroup.displayName = 'proto.tss.v1beta1.MsgReplaceGroup'; +} +/** + * 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.tss.v1beta1.MsgReplaceGroupResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.tss.v1beta1.MsgReplaceGroupResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.MsgReplaceGroupResponse.displayName = 'proto.tss.v1beta1.MsgReplaceGroupResponse'; +} +/** + * 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.tss.v1beta1.MsgUpdateGroupFee = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.tss.v1beta1.MsgUpdateGroupFee.repeatedFields_, null); +}; +goog.inherits(proto.tss.v1beta1.MsgUpdateGroupFee, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.MsgUpdateGroupFee.displayName = 'proto.tss.v1beta1.MsgUpdateGroupFee'; +} +/** + * 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.tss.v1beta1.MsgUpdateGroupFeeResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.tss.v1beta1.MsgUpdateGroupFeeResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.MsgUpdateGroupFeeResponse.displayName = 'proto.tss.v1beta1.MsgUpdateGroupFeeResponse'; +} +/** + * 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.tss.v1beta1.MsgSubmitDKGRound1 = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.tss.v1beta1.MsgSubmitDKGRound1, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.MsgSubmitDKGRound1.displayName = 'proto.tss.v1beta1.MsgSubmitDKGRound1'; +} +/** + * 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.tss.v1beta1.MsgSubmitDKGRound1Response = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.tss.v1beta1.MsgSubmitDKGRound1Response, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.MsgSubmitDKGRound1Response.displayName = 'proto.tss.v1beta1.MsgSubmitDKGRound1Response'; +} +/** + * 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.tss.v1beta1.MsgSubmitDKGRound2 = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.tss.v1beta1.MsgSubmitDKGRound2, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.MsgSubmitDKGRound2.displayName = 'proto.tss.v1beta1.MsgSubmitDKGRound2'; +} +/** + * 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.tss.v1beta1.MsgSubmitDKGRound2Response = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.tss.v1beta1.MsgSubmitDKGRound2Response, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.MsgSubmitDKGRound2Response.displayName = 'proto.tss.v1beta1.MsgSubmitDKGRound2Response'; +} +/** + * 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.tss.v1beta1.MsgComplain = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.tss.v1beta1.MsgComplain.repeatedFields_, null); +}; +goog.inherits(proto.tss.v1beta1.MsgComplain, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.MsgComplain.displayName = 'proto.tss.v1beta1.MsgComplain'; +} +/** + * 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.tss.v1beta1.MsgComplainResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.tss.v1beta1.MsgComplainResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.MsgComplainResponse.displayName = 'proto.tss.v1beta1.MsgComplainResponse'; +} +/** + * 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.tss.v1beta1.MsgConfirm = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.tss.v1beta1.MsgConfirm, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.MsgConfirm.displayName = 'proto.tss.v1beta1.MsgConfirm'; +} +/** + * 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.tss.v1beta1.MsgConfirmResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.tss.v1beta1.MsgConfirmResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.MsgConfirmResponse.displayName = 'proto.tss.v1beta1.MsgConfirmResponse'; +} +/** + * 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.tss.v1beta1.MsgSubmitDEs = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.tss.v1beta1.MsgSubmitDEs.repeatedFields_, null); +}; +goog.inherits(proto.tss.v1beta1.MsgSubmitDEs, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.MsgSubmitDEs.displayName = 'proto.tss.v1beta1.MsgSubmitDEs'; +} +/** + * 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.tss.v1beta1.MsgSubmitDEsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.tss.v1beta1.MsgSubmitDEsResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.MsgSubmitDEsResponse.displayName = 'proto.tss.v1beta1.MsgSubmitDEsResponse'; +} +/** + * 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.tss.v1beta1.MsgRequestSignature = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.tss.v1beta1.MsgRequestSignature.repeatedFields_, null); +}; +goog.inherits(proto.tss.v1beta1.MsgRequestSignature, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.MsgRequestSignature.displayName = 'proto.tss.v1beta1.MsgRequestSignature'; +} +/** + * 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.tss.v1beta1.MsgRequestSignatureResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.tss.v1beta1.MsgRequestSignatureResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.MsgRequestSignatureResponse.displayName = 'proto.tss.v1beta1.MsgRequestSignatureResponse'; +} +/** + * 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.tss.v1beta1.MsgSubmitSignature = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.tss.v1beta1.MsgSubmitSignature, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.MsgSubmitSignature.displayName = 'proto.tss.v1beta1.MsgSubmitSignature'; +} +/** + * 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.tss.v1beta1.MsgSubmitSignatureResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.tss.v1beta1.MsgSubmitSignatureResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.MsgSubmitSignatureResponse.displayName = 'proto.tss.v1beta1.MsgSubmitSignatureResponse'; +} +/** + * 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.tss.v1beta1.MsgActivate = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.tss.v1beta1.MsgActivate, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.MsgActivate.displayName = 'proto.tss.v1beta1.MsgActivate'; +} +/** + * 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.tss.v1beta1.MsgActivateResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.tss.v1beta1.MsgActivateResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.MsgActivateResponse.displayName = 'proto.tss.v1beta1.MsgActivateResponse'; +} +/** + * 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.tss.v1beta1.MsgActive = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.tss.v1beta1.MsgActive, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.MsgActive.displayName = 'proto.tss.v1beta1.MsgActive'; +} +/** + * 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.tss.v1beta1.MsgActiveResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.tss.v1beta1.MsgActiveResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.MsgActiveResponse.displayName = 'proto.tss.v1beta1.MsgActiveResponse'; +} +/** + * 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.tss.v1beta1.MsgUpdateParams = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.tss.v1beta1.MsgUpdateParams, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.MsgUpdateParams.displayName = 'proto.tss.v1beta1.MsgUpdateParams'; +} +/** + * 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.tss.v1beta1.MsgUpdateParamsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.tss.v1beta1.MsgUpdateParamsResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.tss.v1beta1.MsgUpdateParamsResponse.displayName = 'proto.tss.v1beta1.MsgUpdateParamsResponse'; +} + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.tss.v1beta1.MsgCreateGroup.repeatedFields_ = [1,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.tss.v1beta1.MsgCreateGroup.prototype.toObject = function(opt_includeInstance) { + return proto.tss.v1beta1.MsgCreateGroup.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.tss.v1beta1.MsgCreateGroup} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.MsgCreateGroup.toObject = function(includeInstance, msg) { + var f, obj = { + membersList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f, + threshold: jspb.Message.getFieldWithDefault(msg, 2, 0), + feeList: jspb.Message.toObjectList(msg.getFeeList(), + cosmos_base_v1beta1_coin_pb.Coin.toObject, includeInstance), + authority: jspb.Message.getFieldWithDefault(msg, 4, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.tss.v1beta1.MsgCreateGroup} + */ +proto.tss.v1beta1.MsgCreateGroup.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.MsgCreateGroup; + return proto.tss.v1beta1.MsgCreateGroup.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.MsgCreateGroup} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.MsgCreateGroup} + */ +proto.tss.v1beta1.MsgCreateGroup.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.addMembers(value); + break; + case 2: + var value = /** @type {number} */ (reader.readUint64()); + msg.setThreshold(value); + break; + case 3: + var value = new cosmos_base_v1beta1_coin_pb.Coin; + reader.readMessage(value,cosmos_base_v1beta1_coin_pb.Coin.deserializeBinaryFromReader); + msg.addFee(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setAuthority(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.MsgCreateGroup.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.MsgCreateGroup.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.MsgCreateGroup} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.MsgCreateGroup.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMembersList(); + if (f.length > 0) { + writer.writeRepeatedString( + 1, + f + ); + } + f = message.getThreshold(); + if (f !== 0) { + writer.writeUint64( + 2, + f + ); + } + f = message.getFeeList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 3, + f, + cosmos_base_v1beta1_coin_pb.Coin.serializeBinaryToWriter + ); + } + f = message.getAuthority(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } +}; + + +/** + * repeated string members = 1; + * @return {!Array} + */ +proto.tss.v1beta1.MsgCreateGroup.prototype.getMembersList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.tss.v1beta1.MsgCreateGroup} returns this + */ +proto.tss.v1beta1.MsgCreateGroup.prototype.setMembersList = function(value) { + return jspb.Message.setField(this, 1, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.tss.v1beta1.MsgCreateGroup} returns this + */ +proto.tss.v1beta1.MsgCreateGroup.prototype.addMembers = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 1, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.tss.v1beta1.MsgCreateGroup} returns this + */ +proto.tss.v1beta1.MsgCreateGroup.prototype.clearMembersList = function() { + return this.setMembersList([]); +}; + + +/** + * optional uint64 threshold = 2; + * @return {number} + */ +proto.tss.v1beta1.MsgCreateGroup.prototype.getThreshold = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.tss.v1beta1.MsgCreateGroup} returns this + */ +proto.tss.v1beta1.MsgCreateGroup.prototype.setThreshold = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * repeated cosmos.base.v1beta1.Coin fee = 3; + * @return {!Array} + */ +proto.tss.v1beta1.MsgCreateGroup.prototype.getFeeList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, cosmos_base_v1beta1_coin_pb.Coin, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.tss.v1beta1.MsgCreateGroup} returns this +*/ +proto.tss.v1beta1.MsgCreateGroup.prototype.setFeeList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); +}; + + +/** + * @param {!proto.cosmos.base.v1beta1.Coin=} opt_value + * @param {number=} opt_index + * @return {!proto.cosmos.base.v1beta1.Coin} + */ +proto.tss.v1beta1.MsgCreateGroup.prototype.addFee = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.cosmos.base.v1beta1.Coin, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.tss.v1beta1.MsgCreateGroup} returns this + */ +proto.tss.v1beta1.MsgCreateGroup.prototype.clearFeeList = function() { + return this.setFeeList([]); +}; + + +/** + * optional string authority = 4; + * @return {string} + */ +proto.tss.v1beta1.MsgCreateGroup.prototype.getAuthority = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.tss.v1beta1.MsgCreateGroup} returns this + */ +proto.tss.v1beta1.MsgCreateGroup.prototype.setAuthority = function(value) { + return jspb.Message.setProto3StringField(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.tss.v1beta1.MsgCreateGroupResponse.prototype.toObject = function(opt_includeInstance) { + return proto.tss.v1beta1.MsgCreateGroupResponse.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.tss.v1beta1.MsgCreateGroupResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.MsgCreateGroupResponse.toObject = function(includeInstance, msg) { + var f, 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.tss.v1beta1.MsgCreateGroupResponse} + */ +proto.tss.v1beta1.MsgCreateGroupResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.MsgCreateGroupResponse; + return proto.tss.v1beta1.MsgCreateGroupResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.MsgCreateGroupResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.MsgCreateGroupResponse} + */ +proto.tss.v1beta1.MsgCreateGroupResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.MsgCreateGroupResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.MsgCreateGroupResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.MsgCreateGroupResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.MsgCreateGroupResponse.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.tss.v1beta1.MsgReplaceGroup.prototype.toObject = function(opt_includeInstance) { + return proto.tss.v1beta1.MsgReplaceGroup.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.tss.v1beta1.MsgReplaceGroup} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.MsgReplaceGroup.toObject = function(includeInstance, msg) { + var f, obj = { + fromGroupId: jspb.Message.getFieldWithDefault(msg, 1, 0), + toGroupId: jspb.Message.getFieldWithDefault(msg, 2, 0), + execTime: (f = msg.getExecTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + authority: jspb.Message.getFieldWithDefault(msg, 4, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.tss.v1beta1.MsgReplaceGroup} + */ +proto.tss.v1beta1.MsgReplaceGroup.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.MsgReplaceGroup; + return proto.tss.v1beta1.MsgReplaceGroup.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.MsgReplaceGroup} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.MsgReplaceGroup} + */ +proto.tss.v1beta1.MsgReplaceGroup.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.setFromGroupId(value); + break; + case 2: + var value = /** @type {number} */ (reader.readUint64()); + msg.setToGroupId(value); + break; + case 3: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setExecTime(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setAuthority(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.MsgReplaceGroup.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.MsgReplaceGroup.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.MsgReplaceGroup} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.MsgReplaceGroup.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getFromGroupId(); + if (f !== 0) { + writer.writeUint64( + 1, + f + ); + } + f = message.getToGroupId(); + if (f !== 0) { + writer.writeUint64( + 2, + f + ); + } + f = message.getExecTime(); + if (f != null) { + writer.writeMessage( + 3, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getAuthority(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } +}; + + +/** + * optional uint64 from_group_id = 1; + * @return {number} + */ +proto.tss.v1beta1.MsgReplaceGroup.prototype.getFromGroupId = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.tss.v1beta1.MsgReplaceGroup} returns this + */ +proto.tss.v1beta1.MsgReplaceGroup.prototype.setFromGroupId = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional uint64 to_group_id = 2; + * @return {number} + */ +proto.tss.v1beta1.MsgReplaceGroup.prototype.getToGroupId = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.tss.v1beta1.MsgReplaceGroup} returns this + */ +proto.tss.v1beta1.MsgReplaceGroup.prototype.setToGroupId = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional google.protobuf.Timestamp exec_time = 3; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.tss.v1beta1.MsgReplaceGroup.prototype.getExecTime = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); +}; + + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.tss.v1beta1.MsgReplaceGroup} returns this +*/ +proto.tss.v1beta1.MsgReplaceGroup.prototype.setExecTime = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.tss.v1beta1.MsgReplaceGroup} returns this + */ +proto.tss.v1beta1.MsgReplaceGroup.prototype.clearExecTime = function() { + return this.setExecTime(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.tss.v1beta1.MsgReplaceGroup.prototype.hasExecTime = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional string authority = 4; + * @return {string} + */ +proto.tss.v1beta1.MsgReplaceGroup.prototype.getAuthority = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.tss.v1beta1.MsgReplaceGroup} returns this + */ +proto.tss.v1beta1.MsgReplaceGroup.prototype.setAuthority = function(value) { + return jspb.Message.setProto3StringField(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.tss.v1beta1.MsgReplaceGroupResponse.prototype.toObject = function(opt_includeInstance) { + return proto.tss.v1beta1.MsgReplaceGroupResponse.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.tss.v1beta1.MsgReplaceGroupResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.MsgReplaceGroupResponse.toObject = function(includeInstance, msg) { + var f, 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.tss.v1beta1.MsgReplaceGroupResponse} + */ +proto.tss.v1beta1.MsgReplaceGroupResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.MsgReplaceGroupResponse; + return proto.tss.v1beta1.MsgReplaceGroupResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.MsgReplaceGroupResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.MsgReplaceGroupResponse} + */ +proto.tss.v1beta1.MsgReplaceGroupResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.MsgReplaceGroupResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.MsgReplaceGroupResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.MsgReplaceGroupResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.MsgReplaceGroupResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.tss.v1beta1.MsgUpdateGroupFee.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.tss.v1beta1.MsgUpdateGroupFee.prototype.toObject = function(opt_includeInstance) { + return proto.tss.v1beta1.MsgUpdateGroupFee.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.tss.v1beta1.MsgUpdateGroupFee} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.MsgUpdateGroupFee.toObject = function(includeInstance, msg) { + var f, obj = { + groupId: jspb.Message.getFieldWithDefault(msg, 1, 0), + feeList: jspb.Message.toObjectList(msg.getFeeList(), + cosmos_base_v1beta1_coin_pb.Coin.toObject, includeInstance), + authority: jspb.Message.getFieldWithDefault(msg, 3, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.tss.v1beta1.MsgUpdateGroupFee} + */ +proto.tss.v1beta1.MsgUpdateGroupFee.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.MsgUpdateGroupFee; + return proto.tss.v1beta1.MsgUpdateGroupFee.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.MsgUpdateGroupFee} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.MsgUpdateGroupFee} + */ +proto.tss.v1beta1.MsgUpdateGroupFee.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.setGroupId(value); + break; + case 2: + var value = new cosmos_base_v1beta1_coin_pb.Coin; + reader.readMessage(value,cosmos_base_v1beta1_coin_pb.Coin.deserializeBinaryFromReader); + msg.addFee(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setAuthority(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.MsgUpdateGroupFee.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.MsgUpdateGroupFee.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.MsgUpdateGroupFee} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.MsgUpdateGroupFee.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getGroupId(); + if (f !== 0) { + writer.writeUint64( + 1, + f + ); + } + f = message.getFeeList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + cosmos_base_v1beta1_coin_pb.Coin.serializeBinaryToWriter + ); + } + f = message.getAuthority(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } +}; + + +/** + * optional uint64 group_id = 1; + * @return {number} + */ +proto.tss.v1beta1.MsgUpdateGroupFee.prototype.getGroupId = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.tss.v1beta1.MsgUpdateGroupFee} returns this + */ +proto.tss.v1beta1.MsgUpdateGroupFee.prototype.setGroupId = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * repeated cosmos.base.v1beta1.Coin fee = 2; + * @return {!Array} + */ +proto.tss.v1beta1.MsgUpdateGroupFee.prototype.getFeeList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, cosmos_base_v1beta1_coin_pb.Coin, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.tss.v1beta1.MsgUpdateGroupFee} returns this +*/ +proto.tss.v1beta1.MsgUpdateGroupFee.prototype.setFeeList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.cosmos.base.v1beta1.Coin=} opt_value + * @param {number=} opt_index + * @return {!proto.cosmos.base.v1beta1.Coin} + */ +proto.tss.v1beta1.MsgUpdateGroupFee.prototype.addFee = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.cosmos.base.v1beta1.Coin, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.tss.v1beta1.MsgUpdateGroupFee} returns this + */ +proto.tss.v1beta1.MsgUpdateGroupFee.prototype.clearFeeList = function() { + return this.setFeeList([]); +}; + + +/** + * optional string authority = 3; + * @return {string} + */ +proto.tss.v1beta1.MsgUpdateGroupFee.prototype.getAuthority = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.tss.v1beta1.MsgUpdateGroupFee} returns this + */ +proto.tss.v1beta1.MsgUpdateGroupFee.prototype.setAuthority = 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.tss.v1beta1.MsgUpdateGroupFeeResponse.prototype.toObject = function(opt_includeInstance) { + return proto.tss.v1beta1.MsgUpdateGroupFeeResponse.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.tss.v1beta1.MsgUpdateGroupFeeResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.MsgUpdateGroupFeeResponse.toObject = function(includeInstance, msg) { + var f, 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.tss.v1beta1.MsgUpdateGroupFeeResponse} + */ +proto.tss.v1beta1.MsgUpdateGroupFeeResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.MsgUpdateGroupFeeResponse; + return proto.tss.v1beta1.MsgUpdateGroupFeeResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.MsgUpdateGroupFeeResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.MsgUpdateGroupFeeResponse} + */ +proto.tss.v1beta1.MsgUpdateGroupFeeResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.MsgUpdateGroupFeeResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.MsgUpdateGroupFeeResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.MsgUpdateGroupFeeResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.MsgUpdateGroupFeeResponse.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.tss.v1beta1.MsgSubmitDKGRound1.prototype.toObject = function(opt_includeInstance) { + return proto.tss.v1beta1.MsgSubmitDKGRound1.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.tss.v1beta1.MsgSubmitDKGRound1} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.MsgSubmitDKGRound1.toObject = function(includeInstance, msg) { + var f, obj = { + groupId: jspb.Message.getFieldWithDefault(msg, 1, 0), + round1Info: (f = msg.getRound1Info()) && tss_v1beta1_tss_pb.Round1Info.toObject(includeInstance, f), + address: jspb.Message.getFieldWithDefault(msg, 3, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.tss.v1beta1.MsgSubmitDKGRound1} + */ +proto.tss.v1beta1.MsgSubmitDKGRound1.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.MsgSubmitDKGRound1; + return proto.tss.v1beta1.MsgSubmitDKGRound1.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.MsgSubmitDKGRound1} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.MsgSubmitDKGRound1} + */ +proto.tss.v1beta1.MsgSubmitDKGRound1.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.setGroupId(value); + break; + case 2: + var value = new tss_v1beta1_tss_pb.Round1Info; + reader.readMessage(value,tss_v1beta1_tss_pb.Round1Info.deserializeBinaryFromReader); + msg.setRound1Info(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setAddress(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.MsgSubmitDKGRound1.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.MsgSubmitDKGRound1.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.MsgSubmitDKGRound1} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.MsgSubmitDKGRound1.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getGroupId(); + if (f !== 0) { + writer.writeUint64( + 1, + f + ); + } + f = message.getRound1Info(); + if (f != null) { + writer.writeMessage( + 2, + f, + tss_v1beta1_tss_pb.Round1Info.serializeBinaryToWriter + ); + } + f = message.getAddress(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } +}; + + +/** + * optional uint64 group_id = 1; + * @return {number} + */ +proto.tss.v1beta1.MsgSubmitDKGRound1.prototype.getGroupId = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.tss.v1beta1.MsgSubmitDKGRound1} returns this + */ +proto.tss.v1beta1.MsgSubmitDKGRound1.prototype.setGroupId = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional Round1Info round1_info = 2; + * @return {?proto.tss.v1beta1.Round1Info} + */ +proto.tss.v1beta1.MsgSubmitDKGRound1.prototype.getRound1Info = function() { + return /** @type{?proto.tss.v1beta1.Round1Info} */ ( + jspb.Message.getWrapperField(this, tss_v1beta1_tss_pb.Round1Info, 2)); +}; + + +/** + * @param {?proto.tss.v1beta1.Round1Info|undefined} value + * @return {!proto.tss.v1beta1.MsgSubmitDKGRound1} returns this +*/ +proto.tss.v1beta1.MsgSubmitDKGRound1.prototype.setRound1Info = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.tss.v1beta1.MsgSubmitDKGRound1} returns this + */ +proto.tss.v1beta1.MsgSubmitDKGRound1.prototype.clearRound1Info = function() { + return this.setRound1Info(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.tss.v1beta1.MsgSubmitDKGRound1.prototype.hasRound1Info = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional string address = 3; + * @return {string} + */ +proto.tss.v1beta1.MsgSubmitDKGRound1.prototype.getAddress = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.tss.v1beta1.MsgSubmitDKGRound1} returns this + */ +proto.tss.v1beta1.MsgSubmitDKGRound1.prototype.setAddress = 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.tss.v1beta1.MsgSubmitDKGRound1Response.prototype.toObject = function(opt_includeInstance) { + return proto.tss.v1beta1.MsgSubmitDKGRound1Response.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.tss.v1beta1.MsgSubmitDKGRound1Response} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.MsgSubmitDKGRound1Response.toObject = function(includeInstance, msg) { + var f, 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.tss.v1beta1.MsgSubmitDKGRound1Response} + */ +proto.tss.v1beta1.MsgSubmitDKGRound1Response.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.MsgSubmitDKGRound1Response; + return proto.tss.v1beta1.MsgSubmitDKGRound1Response.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.MsgSubmitDKGRound1Response} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.MsgSubmitDKGRound1Response} + */ +proto.tss.v1beta1.MsgSubmitDKGRound1Response.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.MsgSubmitDKGRound1Response.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.MsgSubmitDKGRound1Response.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.MsgSubmitDKGRound1Response} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.MsgSubmitDKGRound1Response.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.tss.v1beta1.MsgSubmitDKGRound2.prototype.toObject = function(opt_includeInstance) { + return proto.tss.v1beta1.MsgSubmitDKGRound2.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.tss.v1beta1.MsgSubmitDKGRound2} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.MsgSubmitDKGRound2.toObject = function(includeInstance, msg) { + var f, obj = { + groupId: jspb.Message.getFieldWithDefault(msg, 1, 0), + round2Info: (f = msg.getRound2Info()) && tss_v1beta1_tss_pb.Round2Info.toObject(includeInstance, f), + address: jspb.Message.getFieldWithDefault(msg, 3, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.tss.v1beta1.MsgSubmitDKGRound2} + */ +proto.tss.v1beta1.MsgSubmitDKGRound2.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.MsgSubmitDKGRound2; + return proto.tss.v1beta1.MsgSubmitDKGRound2.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.MsgSubmitDKGRound2} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.MsgSubmitDKGRound2} + */ +proto.tss.v1beta1.MsgSubmitDKGRound2.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.setGroupId(value); + break; + case 2: + var value = new tss_v1beta1_tss_pb.Round2Info; + reader.readMessage(value,tss_v1beta1_tss_pb.Round2Info.deserializeBinaryFromReader); + msg.setRound2Info(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setAddress(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.MsgSubmitDKGRound2.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.MsgSubmitDKGRound2.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.MsgSubmitDKGRound2} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.MsgSubmitDKGRound2.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getGroupId(); + if (f !== 0) { + writer.writeUint64( + 1, + f + ); + } + f = message.getRound2Info(); + if (f != null) { + writer.writeMessage( + 2, + f, + tss_v1beta1_tss_pb.Round2Info.serializeBinaryToWriter + ); + } + f = message.getAddress(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } +}; + + +/** + * optional uint64 group_id = 1; + * @return {number} + */ +proto.tss.v1beta1.MsgSubmitDKGRound2.prototype.getGroupId = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.tss.v1beta1.MsgSubmitDKGRound2} returns this + */ +proto.tss.v1beta1.MsgSubmitDKGRound2.prototype.setGroupId = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional Round2Info round2_info = 2; + * @return {?proto.tss.v1beta1.Round2Info} + */ +proto.tss.v1beta1.MsgSubmitDKGRound2.prototype.getRound2Info = function() { + return /** @type{?proto.tss.v1beta1.Round2Info} */ ( + jspb.Message.getWrapperField(this, tss_v1beta1_tss_pb.Round2Info, 2)); +}; + + +/** + * @param {?proto.tss.v1beta1.Round2Info|undefined} value + * @return {!proto.tss.v1beta1.MsgSubmitDKGRound2} returns this +*/ +proto.tss.v1beta1.MsgSubmitDKGRound2.prototype.setRound2Info = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.tss.v1beta1.MsgSubmitDKGRound2} returns this + */ +proto.tss.v1beta1.MsgSubmitDKGRound2.prototype.clearRound2Info = function() { + return this.setRound2Info(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.tss.v1beta1.MsgSubmitDKGRound2.prototype.hasRound2Info = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional string address = 3; + * @return {string} + */ +proto.tss.v1beta1.MsgSubmitDKGRound2.prototype.getAddress = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.tss.v1beta1.MsgSubmitDKGRound2} returns this + */ +proto.tss.v1beta1.MsgSubmitDKGRound2.prototype.setAddress = 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.tss.v1beta1.MsgSubmitDKGRound2Response.prototype.toObject = function(opt_includeInstance) { + return proto.tss.v1beta1.MsgSubmitDKGRound2Response.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.tss.v1beta1.MsgSubmitDKGRound2Response} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.MsgSubmitDKGRound2Response.toObject = function(includeInstance, msg) { + var f, 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.tss.v1beta1.MsgSubmitDKGRound2Response} + */ +proto.tss.v1beta1.MsgSubmitDKGRound2Response.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.MsgSubmitDKGRound2Response; + return proto.tss.v1beta1.MsgSubmitDKGRound2Response.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.MsgSubmitDKGRound2Response} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.MsgSubmitDKGRound2Response} + */ +proto.tss.v1beta1.MsgSubmitDKGRound2Response.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.MsgSubmitDKGRound2Response.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.MsgSubmitDKGRound2Response.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.MsgSubmitDKGRound2Response} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.MsgSubmitDKGRound2Response.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.tss.v1beta1.MsgComplain.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.tss.v1beta1.MsgComplain.prototype.toObject = function(opt_includeInstance) { + return proto.tss.v1beta1.MsgComplain.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.tss.v1beta1.MsgComplain} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.MsgComplain.toObject = function(includeInstance, msg) { + var f, obj = { + groupId: jspb.Message.getFieldWithDefault(msg, 1, 0), + complaintsList: jspb.Message.toObjectList(msg.getComplaintsList(), + tss_v1beta1_tss_pb.Complaint.toObject, includeInstance), + address: jspb.Message.getFieldWithDefault(msg, 3, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.tss.v1beta1.MsgComplain} + */ +proto.tss.v1beta1.MsgComplain.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.MsgComplain; + return proto.tss.v1beta1.MsgComplain.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.MsgComplain} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.MsgComplain} + */ +proto.tss.v1beta1.MsgComplain.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.setGroupId(value); + break; + case 2: + var value = new tss_v1beta1_tss_pb.Complaint; + reader.readMessage(value,tss_v1beta1_tss_pb.Complaint.deserializeBinaryFromReader); + msg.addComplaints(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setAddress(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.MsgComplain.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.MsgComplain.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.MsgComplain} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.MsgComplain.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getGroupId(); + if (f !== 0) { + writer.writeUint64( + 1, + f + ); + } + f = message.getComplaintsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + tss_v1beta1_tss_pb.Complaint.serializeBinaryToWriter + ); + } + f = message.getAddress(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } +}; + + +/** + * optional uint64 group_id = 1; + * @return {number} + */ +proto.tss.v1beta1.MsgComplain.prototype.getGroupId = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.tss.v1beta1.MsgComplain} returns this + */ +proto.tss.v1beta1.MsgComplain.prototype.setGroupId = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * repeated Complaint complaints = 2; + * @return {!Array} + */ +proto.tss.v1beta1.MsgComplain.prototype.getComplaintsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, tss_v1beta1_tss_pb.Complaint, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.tss.v1beta1.MsgComplain} returns this +*/ +proto.tss.v1beta1.MsgComplain.prototype.setComplaintsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.tss.v1beta1.Complaint=} opt_value + * @param {number=} opt_index + * @return {!proto.tss.v1beta1.Complaint} + */ +proto.tss.v1beta1.MsgComplain.prototype.addComplaints = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.tss.v1beta1.Complaint, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.tss.v1beta1.MsgComplain} returns this + */ +proto.tss.v1beta1.MsgComplain.prototype.clearComplaintsList = function() { + return this.setComplaintsList([]); +}; + + +/** + * optional string address = 3; + * @return {string} + */ +proto.tss.v1beta1.MsgComplain.prototype.getAddress = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.tss.v1beta1.MsgComplain} returns this + */ +proto.tss.v1beta1.MsgComplain.prototype.setAddress = 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.tss.v1beta1.MsgComplainResponse.prototype.toObject = function(opt_includeInstance) { + return proto.tss.v1beta1.MsgComplainResponse.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.tss.v1beta1.MsgComplainResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.MsgComplainResponse.toObject = function(includeInstance, msg) { + var f, 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.tss.v1beta1.MsgComplainResponse} + */ +proto.tss.v1beta1.MsgComplainResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.MsgComplainResponse; + return proto.tss.v1beta1.MsgComplainResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.MsgComplainResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.MsgComplainResponse} + */ +proto.tss.v1beta1.MsgComplainResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.MsgComplainResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.MsgComplainResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.MsgComplainResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.MsgComplainResponse.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.tss.v1beta1.MsgConfirm.prototype.toObject = function(opt_includeInstance) { + return proto.tss.v1beta1.MsgConfirm.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.tss.v1beta1.MsgConfirm} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.MsgConfirm.toObject = function(includeInstance, msg) { + var f, obj = { + groupId: jspb.Message.getFieldWithDefault(msg, 1, 0), + memberId: jspb.Message.getFieldWithDefault(msg, 2, 0), + ownPubKeySig: msg.getOwnPubKeySig_asB64(), + address: jspb.Message.getFieldWithDefault(msg, 4, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.tss.v1beta1.MsgConfirm} + */ +proto.tss.v1beta1.MsgConfirm.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.MsgConfirm; + return proto.tss.v1beta1.MsgConfirm.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.MsgConfirm} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.MsgConfirm} + */ +proto.tss.v1beta1.MsgConfirm.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.setGroupId(value); + break; + case 2: + var value = /** @type {number} */ (reader.readUint64()); + msg.setMemberId(value); + break; + case 3: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setOwnPubKeySig(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setAddress(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.MsgConfirm.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.MsgConfirm.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.MsgConfirm} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.MsgConfirm.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getGroupId(); + if (f !== 0) { + writer.writeUint64( + 1, + f + ); + } + f = message.getMemberId(); + if (f !== 0) { + writer.writeUint64( + 2, + f + ); + } + f = message.getOwnPubKeySig_asU8(); + if (f.length > 0) { + writer.writeBytes( + 3, + f + ); + } + f = message.getAddress(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } +}; + + +/** + * optional uint64 group_id = 1; + * @return {number} + */ +proto.tss.v1beta1.MsgConfirm.prototype.getGroupId = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.tss.v1beta1.MsgConfirm} returns this + */ +proto.tss.v1beta1.MsgConfirm.prototype.setGroupId = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional uint64 member_id = 2; + * @return {number} + */ +proto.tss.v1beta1.MsgConfirm.prototype.getMemberId = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.tss.v1beta1.MsgConfirm} returns this + */ +proto.tss.v1beta1.MsgConfirm.prototype.setMemberId = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional bytes own_pub_key_sig = 3; + * @return {!(string|Uint8Array)} + */ +proto.tss.v1beta1.MsgConfirm.prototype.getOwnPubKeySig = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * optional bytes own_pub_key_sig = 3; + * This is a type-conversion wrapper around `getOwnPubKeySig()` + * @return {string} + */ +proto.tss.v1beta1.MsgConfirm.prototype.getOwnPubKeySig_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getOwnPubKeySig())); +}; + + +/** + * optional bytes own_pub_key_sig = 3; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getOwnPubKeySig()` + * @return {!Uint8Array} + */ +proto.tss.v1beta1.MsgConfirm.prototype.getOwnPubKeySig_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getOwnPubKeySig())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.tss.v1beta1.MsgConfirm} returns this + */ +proto.tss.v1beta1.MsgConfirm.prototype.setOwnPubKeySig = function(value) { + return jspb.Message.setProto3BytesField(this, 3, value); +}; + + +/** + * optional string address = 4; + * @return {string} + */ +proto.tss.v1beta1.MsgConfirm.prototype.getAddress = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.tss.v1beta1.MsgConfirm} returns this + */ +proto.tss.v1beta1.MsgConfirm.prototype.setAddress = function(value) { + return jspb.Message.setProto3StringField(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.tss.v1beta1.MsgConfirmResponse.prototype.toObject = function(opt_includeInstance) { + return proto.tss.v1beta1.MsgConfirmResponse.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.tss.v1beta1.MsgConfirmResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.MsgConfirmResponse.toObject = function(includeInstance, msg) { + var f, 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.tss.v1beta1.MsgConfirmResponse} + */ +proto.tss.v1beta1.MsgConfirmResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.MsgConfirmResponse; + return proto.tss.v1beta1.MsgConfirmResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.MsgConfirmResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.MsgConfirmResponse} + */ +proto.tss.v1beta1.MsgConfirmResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.MsgConfirmResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.MsgConfirmResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.MsgConfirmResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.MsgConfirmResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.tss.v1beta1.MsgSubmitDEs.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.tss.v1beta1.MsgSubmitDEs.prototype.toObject = function(opt_includeInstance) { + return proto.tss.v1beta1.MsgSubmitDEs.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.tss.v1beta1.MsgSubmitDEs} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.MsgSubmitDEs.toObject = function(includeInstance, msg) { + var f, obj = { + desList: jspb.Message.toObjectList(msg.getDesList(), + tss_v1beta1_tss_pb.DE.toObject, includeInstance), + address: jspb.Message.getFieldWithDefault(msg, 2, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.tss.v1beta1.MsgSubmitDEs} + */ +proto.tss.v1beta1.MsgSubmitDEs.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.MsgSubmitDEs; + return proto.tss.v1beta1.MsgSubmitDEs.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.MsgSubmitDEs} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.MsgSubmitDEs} + */ +proto.tss.v1beta1.MsgSubmitDEs.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new tss_v1beta1_tss_pb.DE; + reader.readMessage(value,tss_v1beta1_tss_pb.DE.deserializeBinaryFromReader); + msg.addDes(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setAddress(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.MsgSubmitDEs.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.MsgSubmitDEs.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.MsgSubmitDEs} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.MsgSubmitDEs.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getDesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + tss_v1beta1_tss_pb.DE.serializeBinaryToWriter + ); + } + f = message.getAddress(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } +}; + + +/** + * repeated DE des = 1; + * @return {!Array} + */ +proto.tss.v1beta1.MsgSubmitDEs.prototype.getDesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, tss_v1beta1_tss_pb.DE, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.tss.v1beta1.MsgSubmitDEs} returns this +*/ +proto.tss.v1beta1.MsgSubmitDEs.prototype.setDesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.tss.v1beta1.DE=} opt_value + * @param {number=} opt_index + * @return {!proto.tss.v1beta1.DE} + */ +proto.tss.v1beta1.MsgSubmitDEs.prototype.addDes = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.tss.v1beta1.DE, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.tss.v1beta1.MsgSubmitDEs} returns this + */ +proto.tss.v1beta1.MsgSubmitDEs.prototype.clearDesList = function() { + return this.setDesList([]); +}; + + +/** + * optional string address = 2; + * @return {string} + */ +proto.tss.v1beta1.MsgSubmitDEs.prototype.getAddress = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.tss.v1beta1.MsgSubmitDEs} returns this + */ +proto.tss.v1beta1.MsgSubmitDEs.prototype.setAddress = 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.tss.v1beta1.MsgSubmitDEsResponse.prototype.toObject = function(opt_includeInstance) { + return proto.tss.v1beta1.MsgSubmitDEsResponse.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.tss.v1beta1.MsgSubmitDEsResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.MsgSubmitDEsResponse.toObject = function(includeInstance, msg) { + var f, 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.tss.v1beta1.MsgSubmitDEsResponse} + */ +proto.tss.v1beta1.MsgSubmitDEsResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.MsgSubmitDEsResponse; + return proto.tss.v1beta1.MsgSubmitDEsResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.MsgSubmitDEsResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.MsgSubmitDEsResponse} + */ +proto.tss.v1beta1.MsgSubmitDEsResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.MsgSubmitDEsResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.MsgSubmitDEsResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.MsgSubmitDEsResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.MsgSubmitDEsResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.tss.v1beta1.MsgRequestSignature.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.tss.v1beta1.MsgRequestSignature.prototype.toObject = function(opt_includeInstance) { + return proto.tss.v1beta1.MsgRequestSignature.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.tss.v1beta1.MsgRequestSignature} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.MsgRequestSignature.toObject = function(includeInstance, msg) { + var f, obj = { + groupId: jspb.Message.getFieldWithDefault(msg, 1, 0), + content: (f = msg.getContent()) && google_protobuf_any_pb.Any.toObject(includeInstance, f), + feeLimitList: jspb.Message.toObjectList(msg.getFeeLimitList(), + cosmos_base_v1beta1_coin_pb.Coin.toObject, includeInstance), + sender: jspb.Message.getFieldWithDefault(msg, 4, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.tss.v1beta1.MsgRequestSignature} + */ +proto.tss.v1beta1.MsgRequestSignature.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.MsgRequestSignature; + return proto.tss.v1beta1.MsgRequestSignature.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.MsgRequestSignature} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.MsgRequestSignature} + */ +proto.tss.v1beta1.MsgRequestSignature.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.setGroupId(value); + break; + case 2: + var value = new google_protobuf_any_pb.Any; + reader.readMessage(value,google_protobuf_any_pb.Any.deserializeBinaryFromReader); + msg.setContent(value); + break; + case 3: + var value = new cosmos_base_v1beta1_coin_pb.Coin; + reader.readMessage(value,cosmos_base_v1beta1_coin_pb.Coin.deserializeBinaryFromReader); + msg.addFeeLimit(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setSender(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.MsgRequestSignature.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.MsgRequestSignature.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.MsgRequestSignature} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.MsgRequestSignature.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getGroupId(); + if (f !== 0) { + writer.writeUint64( + 1, + f + ); + } + f = message.getContent(); + if (f != null) { + writer.writeMessage( + 2, + f, + google_protobuf_any_pb.Any.serializeBinaryToWriter + ); + } + f = message.getFeeLimitList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 3, + f, + cosmos_base_v1beta1_coin_pb.Coin.serializeBinaryToWriter + ); + } + f = message.getSender(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } +}; + + +/** + * optional uint64 group_id = 1; + * @return {number} + */ +proto.tss.v1beta1.MsgRequestSignature.prototype.getGroupId = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.tss.v1beta1.MsgRequestSignature} returns this + */ +proto.tss.v1beta1.MsgRequestSignature.prototype.setGroupId = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional google.protobuf.Any content = 2; + * @return {?proto.google.protobuf.Any} + */ +proto.tss.v1beta1.MsgRequestSignature.prototype.getContent = function() { + return /** @type{?proto.google.protobuf.Any} */ ( + jspb.Message.getWrapperField(this, google_protobuf_any_pb.Any, 2)); +}; + + +/** + * @param {?proto.google.protobuf.Any|undefined} value + * @return {!proto.tss.v1beta1.MsgRequestSignature} returns this +*/ +proto.tss.v1beta1.MsgRequestSignature.prototype.setContent = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.tss.v1beta1.MsgRequestSignature} returns this + */ +proto.tss.v1beta1.MsgRequestSignature.prototype.clearContent = function() { + return this.setContent(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.tss.v1beta1.MsgRequestSignature.prototype.hasContent = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * repeated cosmos.base.v1beta1.Coin fee_limit = 3; + * @return {!Array} + */ +proto.tss.v1beta1.MsgRequestSignature.prototype.getFeeLimitList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, cosmos_base_v1beta1_coin_pb.Coin, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.tss.v1beta1.MsgRequestSignature} returns this +*/ +proto.tss.v1beta1.MsgRequestSignature.prototype.setFeeLimitList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); +}; + + +/** + * @param {!proto.cosmos.base.v1beta1.Coin=} opt_value + * @param {number=} opt_index + * @return {!proto.cosmos.base.v1beta1.Coin} + */ +proto.tss.v1beta1.MsgRequestSignature.prototype.addFeeLimit = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.cosmos.base.v1beta1.Coin, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.tss.v1beta1.MsgRequestSignature} returns this + */ +proto.tss.v1beta1.MsgRequestSignature.prototype.clearFeeLimitList = function() { + return this.setFeeLimitList([]); +}; + + +/** + * optional string sender = 4; + * @return {string} + */ +proto.tss.v1beta1.MsgRequestSignature.prototype.getSender = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.tss.v1beta1.MsgRequestSignature} returns this + */ +proto.tss.v1beta1.MsgRequestSignature.prototype.setSender = function(value) { + return jspb.Message.setProto3StringField(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.tss.v1beta1.MsgRequestSignatureResponse.prototype.toObject = function(opt_includeInstance) { + return proto.tss.v1beta1.MsgRequestSignatureResponse.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.tss.v1beta1.MsgRequestSignatureResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.MsgRequestSignatureResponse.toObject = function(includeInstance, msg) { + var f, 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.tss.v1beta1.MsgRequestSignatureResponse} + */ +proto.tss.v1beta1.MsgRequestSignatureResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.MsgRequestSignatureResponse; + return proto.tss.v1beta1.MsgRequestSignatureResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.MsgRequestSignatureResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.MsgRequestSignatureResponse} + */ +proto.tss.v1beta1.MsgRequestSignatureResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.MsgRequestSignatureResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.MsgRequestSignatureResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.MsgRequestSignatureResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.MsgRequestSignatureResponse.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.tss.v1beta1.MsgSubmitSignature.prototype.toObject = function(opt_includeInstance) { + return proto.tss.v1beta1.MsgSubmitSignature.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.tss.v1beta1.MsgSubmitSignature} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.MsgSubmitSignature.toObject = function(includeInstance, msg) { + var f, obj = { + signingId: jspb.Message.getFieldWithDefault(msg, 1, 0), + memberId: jspb.Message.getFieldWithDefault(msg, 2, 0), + signature: msg.getSignature_asB64(), + address: jspb.Message.getFieldWithDefault(msg, 4, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.tss.v1beta1.MsgSubmitSignature} + */ +proto.tss.v1beta1.MsgSubmitSignature.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.MsgSubmitSignature; + return proto.tss.v1beta1.MsgSubmitSignature.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.MsgSubmitSignature} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.MsgSubmitSignature} + */ +proto.tss.v1beta1.MsgSubmitSignature.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 {number} */ (reader.readUint64()); + msg.setMemberId(value); + break; + case 3: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setSignature(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setAddress(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.MsgSubmitSignature.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.MsgSubmitSignature.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.MsgSubmitSignature} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.MsgSubmitSignature.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSigningId(); + if (f !== 0) { + writer.writeUint64( + 1, + f + ); + } + f = message.getMemberId(); + if (f !== 0) { + writer.writeUint64( + 2, + f + ); + } + f = message.getSignature_asU8(); + if (f.length > 0) { + writer.writeBytes( + 3, + f + ); + } + f = message.getAddress(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } +}; + + +/** + * optional uint64 signing_id = 1; + * @return {number} + */ +proto.tss.v1beta1.MsgSubmitSignature.prototype.getSigningId = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.tss.v1beta1.MsgSubmitSignature} returns this + */ +proto.tss.v1beta1.MsgSubmitSignature.prototype.setSigningId = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional uint64 member_id = 2; + * @return {number} + */ +proto.tss.v1beta1.MsgSubmitSignature.prototype.getMemberId = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.tss.v1beta1.MsgSubmitSignature} returns this + */ +proto.tss.v1beta1.MsgSubmitSignature.prototype.setMemberId = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional bytes signature = 3; + * @return {!(string|Uint8Array)} + */ +proto.tss.v1beta1.MsgSubmitSignature.prototype.getSignature = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * optional bytes signature = 3; + * This is a type-conversion wrapper around `getSignature()` + * @return {string} + */ +proto.tss.v1beta1.MsgSubmitSignature.prototype.getSignature_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getSignature())); +}; + + +/** + * optional bytes signature = 3; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getSignature()` + * @return {!Uint8Array} + */ +proto.tss.v1beta1.MsgSubmitSignature.prototype.getSignature_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getSignature())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.tss.v1beta1.MsgSubmitSignature} returns this + */ +proto.tss.v1beta1.MsgSubmitSignature.prototype.setSignature = function(value) { + return jspb.Message.setProto3BytesField(this, 3, value); +}; + + +/** + * optional string address = 4; + * @return {string} + */ +proto.tss.v1beta1.MsgSubmitSignature.prototype.getAddress = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.tss.v1beta1.MsgSubmitSignature} returns this + */ +proto.tss.v1beta1.MsgSubmitSignature.prototype.setAddress = function(value) { + return jspb.Message.setProto3StringField(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.tss.v1beta1.MsgSubmitSignatureResponse.prototype.toObject = function(opt_includeInstance) { + return proto.tss.v1beta1.MsgSubmitSignatureResponse.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.tss.v1beta1.MsgSubmitSignatureResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.MsgSubmitSignatureResponse.toObject = function(includeInstance, msg) { + var f, 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.tss.v1beta1.MsgSubmitSignatureResponse} + */ +proto.tss.v1beta1.MsgSubmitSignatureResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.MsgSubmitSignatureResponse; + return proto.tss.v1beta1.MsgSubmitSignatureResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.MsgSubmitSignatureResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.MsgSubmitSignatureResponse} + */ +proto.tss.v1beta1.MsgSubmitSignatureResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.MsgSubmitSignatureResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.MsgSubmitSignatureResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.MsgSubmitSignatureResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.MsgSubmitSignatureResponse.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.tss.v1beta1.MsgActivate.prototype.toObject = function(opt_includeInstance) { + return proto.tss.v1beta1.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.tss.v1beta1.MsgActivate} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.MsgActivate.toObject = function(includeInstance, msg) { + var f, obj = { + address: jspb.Message.getFieldWithDefault(msg, 1, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.tss.v1beta1.MsgActivate} + */ +proto.tss.v1beta1.MsgActivate.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.MsgActivate; + return proto.tss.v1beta1.MsgActivate.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.MsgActivate} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.MsgActivate} + */ +proto.tss.v1beta1.MsgActivate.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; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.MsgActivate.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.MsgActivate.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.MsgActivate} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.MsgActivate.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getAddress(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string address = 1; + * @return {string} + */ +proto.tss.v1beta1.MsgActivate.prototype.getAddress = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.tss.v1beta1.MsgActivate} returns this + */ +proto.tss.v1beta1.MsgActivate.prototype.setAddress = 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.tss.v1beta1.MsgActivateResponse.prototype.toObject = function(opt_includeInstance) { + return proto.tss.v1beta1.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.tss.v1beta1.MsgActivateResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.MsgActivateResponse.toObject = function(includeInstance, msg) { + var f, 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.tss.v1beta1.MsgActivateResponse} + */ +proto.tss.v1beta1.MsgActivateResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.MsgActivateResponse; + return proto.tss.v1beta1.MsgActivateResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.MsgActivateResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.MsgActivateResponse} + */ +proto.tss.v1beta1.MsgActivateResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.MsgActivateResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.MsgActivateResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.MsgActivateResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.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.tss.v1beta1.MsgActive.prototype.toObject = function(opt_includeInstance) { + return proto.tss.v1beta1.MsgActive.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.tss.v1beta1.MsgActive} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.MsgActive.toObject = function(includeInstance, msg) { + var f, obj = { + address: jspb.Message.getFieldWithDefault(msg, 1, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.tss.v1beta1.MsgActive} + */ +proto.tss.v1beta1.MsgActive.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.MsgActive; + return proto.tss.v1beta1.MsgActive.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.MsgActive} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.MsgActive} + */ +proto.tss.v1beta1.MsgActive.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; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.MsgActive.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.MsgActive.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.MsgActive} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.MsgActive.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getAddress(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string address = 1; + * @return {string} + */ +proto.tss.v1beta1.MsgActive.prototype.getAddress = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.tss.v1beta1.MsgActive} returns this + */ +proto.tss.v1beta1.MsgActive.prototype.setAddress = 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.tss.v1beta1.MsgActiveResponse.prototype.toObject = function(opt_includeInstance) { + return proto.tss.v1beta1.MsgActiveResponse.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.tss.v1beta1.MsgActiveResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.MsgActiveResponse.toObject = function(includeInstance, msg) { + var f, 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.tss.v1beta1.MsgActiveResponse} + */ +proto.tss.v1beta1.MsgActiveResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.MsgActiveResponse; + return proto.tss.v1beta1.MsgActiveResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.MsgActiveResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.MsgActiveResponse} + */ +proto.tss.v1beta1.MsgActiveResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.MsgActiveResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.MsgActiveResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.MsgActiveResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.MsgActiveResponse.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.tss.v1beta1.MsgUpdateParams.prototype.toObject = function(opt_includeInstance) { + return proto.tss.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.tss.v1beta1.MsgUpdateParams} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.MsgUpdateParams.toObject = function(includeInstance, msg) { + var f, obj = { + authority: jspb.Message.getFieldWithDefault(msg, 1, ""), + params: (f = msg.getParams()) && tss_v1beta1_genesis_pb.Params.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.tss.v1beta1.MsgUpdateParams} + */ +proto.tss.v1beta1.MsgUpdateParams.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.MsgUpdateParams; + return proto.tss.v1beta1.MsgUpdateParams.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.MsgUpdateParams} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.MsgUpdateParams} + */ +proto.tss.v1beta1.MsgUpdateParams.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.setAuthority(value); + break; + case 2: + var value = new tss_v1beta1_genesis_pb.Params; + reader.readMessage(value,tss_v1beta1_genesis_pb.Params.deserializeBinaryFromReader); + msg.setParams(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.MsgUpdateParams.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.MsgUpdateParams.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.MsgUpdateParams} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.MsgUpdateParams.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getAuthority(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getParams(); + if (f != null) { + writer.writeMessage( + 2, + f, + tss_v1beta1_genesis_pb.Params.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string authority = 1; + * @return {string} + */ +proto.tss.v1beta1.MsgUpdateParams.prototype.getAuthority = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.tss.v1beta1.MsgUpdateParams} returns this + */ +proto.tss.v1beta1.MsgUpdateParams.prototype.setAuthority = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional Params params = 2; + * @return {?proto.tss.v1beta1.Params} + */ +proto.tss.v1beta1.MsgUpdateParams.prototype.getParams = function() { + return /** @type{?proto.tss.v1beta1.Params} */ ( + jspb.Message.getWrapperField(this, tss_v1beta1_genesis_pb.Params, 2)); +}; + + +/** + * @param {?proto.tss.v1beta1.Params|undefined} value + * @return {!proto.tss.v1beta1.MsgUpdateParams} returns this +*/ +proto.tss.v1beta1.MsgUpdateParams.prototype.setParams = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.tss.v1beta1.MsgUpdateParams} returns this + */ +proto.tss.v1beta1.MsgUpdateParams.prototype.clearParams = function() { + return this.setParams(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.tss.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.tss.v1beta1.MsgUpdateParamsResponse.prototype.toObject = function(opt_includeInstance) { + return proto.tss.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.tss.v1beta1.MsgUpdateParamsResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.MsgUpdateParamsResponse.toObject = function(includeInstance, msg) { + var f, 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.tss.v1beta1.MsgUpdateParamsResponse} + */ +proto.tss.v1beta1.MsgUpdateParamsResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.tss.v1beta1.MsgUpdateParamsResponse; + return proto.tss.v1beta1.MsgUpdateParamsResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.tss.v1beta1.MsgUpdateParamsResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.tss.v1beta1.MsgUpdateParamsResponse} + */ +proto.tss.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; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.tss.v1beta1.MsgUpdateParamsResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.tss.v1beta1.MsgUpdateParamsResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.tss.v1beta1.MsgUpdateParamsResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.tss.v1beta1.MsgUpdateParamsResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + +goog.object.extend(exports, proto.tss.v1beta1); diff --git a/proto/tss/v1beta1/tx_pb_service.d.ts b/proto/tss/v1beta1/tx_pb_service.d.ts new file mode 100644 index 0000000..9d57f6d --- /dev/null +++ b/proto/tss/v1beta1/tx_pb_service.d.ts @@ -0,0 +1,291 @@ +// package: tss.v1beta1 +// file: tss/v1beta1/tx.proto + +import * as tss_v1beta1_tx_pb from "../../tss/v1beta1/tx_pb"; +import {grpc} from "@improbable-eng/grpc-web"; + +type MsgCreateGroup = { + readonly methodName: string; + readonly service: typeof Msg; + readonly requestStream: false; + readonly responseStream: false; + readonly requestType: typeof tss_v1beta1_tx_pb.MsgCreateGroup; + readonly responseType: typeof tss_v1beta1_tx_pb.MsgCreateGroupResponse; +}; + +type MsgReplaceGroup = { + readonly methodName: string; + readonly service: typeof Msg; + readonly requestStream: false; + readonly responseStream: false; + readonly requestType: typeof tss_v1beta1_tx_pb.MsgReplaceGroup; + readonly responseType: typeof tss_v1beta1_tx_pb.MsgReplaceGroupResponse; +}; + +type MsgUpdateGroupFee = { + readonly methodName: string; + readonly service: typeof Msg; + readonly requestStream: false; + readonly responseStream: false; + readonly requestType: typeof tss_v1beta1_tx_pb.MsgUpdateGroupFee; + readonly responseType: typeof tss_v1beta1_tx_pb.MsgUpdateGroupFeeResponse; +}; + +type MsgSubmitDKGRound1 = { + readonly methodName: string; + readonly service: typeof Msg; + readonly requestStream: false; + readonly responseStream: false; + readonly requestType: typeof tss_v1beta1_tx_pb.MsgSubmitDKGRound1; + readonly responseType: typeof tss_v1beta1_tx_pb.MsgSubmitDKGRound1Response; +}; + +type MsgSubmitDKGRound2 = { + readonly methodName: string; + readonly service: typeof Msg; + readonly requestStream: false; + readonly responseStream: false; + readonly requestType: typeof tss_v1beta1_tx_pb.MsgSubmitDKGRound2; + readonly responseType: typeof tss_v1beta1_tx_pb.MsgSubmitDKGRound2Response; +}; + +type MsgComplain = { + readonly methodName: string; + readonly service: typeof Msg; + readonly requestStream: false; + readonly responseStream: false; + readonly requestType: typeof tss_v1beta1_tx_pb.MsgComplain; + readonly responseType: typeof tss_v1beta1_tx_pb.MsgComplainResponse; +}; + +type MsgConfirm = { + readonly methodName: string; + readonly service: typeof Msg; + readonly requestStream: false; + readonly responseStream: false; + readonly requestType: typeof tss_v1beta1_tx_pb.MsgConfirm; + readonly responseType: typeof tss_v1beta1_tx_pb.MsgConfirmResponse; +}; + +type MsgSubmitDEs = { + readonly methodName: string; + readonly service: typeof Msg; + readonly requestStream: false; + readonly responseStream: false; + readonly requestType: typeof tss_v1beta1_tx_pb.MsgSubmitDEs; + readonly responseType: typeof tss_v1beta1_tx_pb.MsgSubmitDEsResponse; +}; + +type MsgRequestSignature = { + readonly methodName: string; + readonly service: typeof Msg; + readonly requestStream: false; + readonly responseStream: false; + readonly requestType: typeof tss_v1beta1_tx_pb.MsgRequestSignature; + readonly responseType: typeof tss_v1beta1_tx_pb.MsgRequestSignatureResponse; +}; + +type MsgSubmitSignature = { + readonly methodName: string; + readonly service: typeof Msg; + readonly requestStream: false; + readonly responseStream: false; + readonly requestType: typeof tss_v1beta1_tx_pb.MsgSubmitSignature; + readonly responseType: typeof tss_v1beta1_tx_pb.MsgSubmitSignatureResponse; +}; + +type MsgActivate = { + readonly methodName: string; + readonly service: typeof Msg; + readonly requestStream: false; + readonly responseStream: false; + readonly requestType: typeof tss_v1beta1_tx_pb.MsgActivate; + readonly responseType: typeof tss_v1beta1_tx_pb.MsgActivateResponse; +}; + +type MsgActive = { + readonly methodName: string; + readonly service: typeof Msg; + readonly requestStream: false; + readonly responseStream: false; + readonly requestType: typeof tss_v1beta1_tx_pb.MsgActive; + readonly responseType: typeof tss_v1beta1_tx_pb.MsgActiveResponse; +}; + +type MsgUpdateParams = { + readonly methodName: string; + readonly service: typeof Msg; + readonly requestStream: false; + readonly responseStream: false; + readonly requestType: typeof tss_v1beta1_tx_pb.MsgUpdateParams; + readonly responseType: typeof tss_v1beta1_tx_pb.MsgUpdateParamsResponse; +}; + +export class Msg { + static readonly serviceName: string; + static readonly CreateGroup: MsgCreateGroup; + static readonly ReplaceGroup: MsgReplaceGroup; + static readonly UpdateGroupFee: MsgUpdateGroupFee; + static readonly SubmitDKGRound1: MsgSubmitDKGRound1; + static readonly SubmitDKGRound2: MsgSubmitDKGRound2; + static readonly Complain: MsgComplain; + static readonly Confirm: MsgConfirm; + static readonly SubmitDEs: MsgSubmitDEs; + static readonly RequestSignature: MsgRequestSignature; + static readonly SubmitSignature: MsgSubmitSignature; + static readonly Activate: MsgActivate; + static readonly Active: MsgActive; + static readonly UpdateParams: MsgUpdateParams; +} + +export type ServiceError = { message: string, code: number; metadata: grpc.Metadata } +export type Status = { details: string, code: number; metadata: grpc.Metadata } + +interface UnaryResponse { + 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; +} +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; +} +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; +} + +export class MsgClient { + readonly serviceHost: string; + + constructor(serviceHost: string, options?: grpc.RpcOptions); + createGroup( + requestMessage: tss_v1beta1_tx_pb.MsgCreateGroup, + metadata: grpc.Metadata, + callback: (error: ServiceError|null, responseMessage: tss_v1beta1_tx_pb.MsgCreateGroupResponse|null) => void + ): UnaryResponse; + createGroup( + requestMessage: tss_v1beta1_tx_pb.MsgCreateGroup, + callback: (error: ServiceError|null, responseMessage: tss_v1beta1_tx_pb.MsgCreateGroupResponse|null) => void + ): UnaryResponse; + replaceGroup( + requestMessage: tss_v1beta1_tx_pb.MsgReplaceGroup, + metadata: grpc.Metadata, + callback: (error: ServiceError|null, responseMessage: tss_v1beta1_tx_pb.MsgReplaceGroupResponse|null) => void + ): UnaryResponse; + replaceGroup( + requestMessage: tss_v1beta1_tx_pb.MsgReplaceGroup, + callback: (error: ServiceError|null, responseMessage: tss_v1beta1_tx_pb.MsgReplaceGroupResponse|null) => void + ): UnaryResponse; + updateGroupFee( + requestMessage: tss_v1beta1_tx_pb.MsgUpdateGroupFee, + metadata: grpc.Metadata, + callback: (error: ServiceError|null, responseMessage: tss_v1beta1_tx_pb.MsgUpdateGroupFeeResponse|null) => void + ): UnaryResponse; + updateGroupFee( + requestMessage: tss_v1beta1_tx_pb.MsgUpdateGroupFee, + callback: (error: ServiceError|null, responseMessage: tss_v1beta1_tx_pb.MsgUpdateGroupFeeResponse|null) => void + ): UnaryResponse; + submitDKGRound1( + requestMessage: tss_v1beta1_tx_pb.MsgSubmitDKGRound1, + metadata: grpc.Metadata, + callback: (error: ServiceError|null, responseMessage: tss_v1beta1_tx_pb.MsgSubmitDKGRound1Response|null) => void + ): UnaryResponse; + submitDKGRound1( + requestMessage: tss_v1beta1_tx_pb.MsgSubmitDKGRound1, + callback: (error: ServiceError|null, responseMessage: tss_v1beta1_tx_pb.MsgSubmitDKGRound1Response|null) => void + ): UnaryResponse; + submitDKGRound2( + requestMessage: tss_v1beta1_tx_pb.MsgSubmitDKGRound2, + metadata: grpc.Metadata, + callback: (error: ServiceError|null, responseMessage: tss_v1beta1_tx_pb.MsgSubmitDKGRound2Response|null) => void + ): UnaryResponse; + submitDKGRound2( + requestMessage: tss_v1beta1_tx_pb.MsgSubmitDKGRound2, + callback: (error: ServiceError|null, responseMessage: tss_v1beta1_tx_pb.MsgSubmitDKGRound2Response|null) => void + ): UnaryResponse; + complain( + requestMessage: tss_v1beta1_tx_pb.MsgComplain, + metadata: grpc.Metadata, + callback: (error: ServiceError|null, responseMessage: tss_v1beta1_tx_pb.MsgComplainResponse|null) => void + ): UnaryResponse; + complain( + requestMessage: tss_v1beta1_tx_pb.MsgComplain, + callback: (error: ServiceError|null, responseMessage: tss_v1beta1_tx_pb.MsgComplainResponse|null) => void + ): UnaryResponse; + confirm( + requestMessage: tss_v1beta1_tx_pb.MsgConfirm, + metadata: grpc.Metadata, + callback: (error: ServiceError|null, responseMessage: tss_v1beta1_tx_pb.MsgConfirmResponse|null) => void + ): UnaryResponse; + confirm( + requestMessage: tss_v1beta1_tx_pb.MsgConfirm, + callback: (error: ServiceError|null, responseMessage: tss_v1beta1_tx_pb.MsgConfirmResponse|null) => void + ): UnaryResponse; + submitDEs( + requestMessage: tss_v1beta1_tx_pb.MsgSubmitDEs, + metadata: grpc.Metadata, + callback: (error: ServiceError|null, responseMessage: tss_v1beta1_tx_pb.MsgSubmitDEsResponse|null) => void + ): UnaryResponse; + submitDEs( + requestMessage: tss_v1beta1_tx_pb.MsgSubmitDEs, + callback: (error: ServiceError|null, responseMessage: tss_v1beta1_tx_pb.MsgSubmitDEsResponse|null) => void + ): UnaryResponse; + requestSignature( + requestMessage: tss_v1beta1_tx_pb.MsgRequestSignature, + metadata: grpc.Metadata, + callback: (error: ServiceError|null, responseMessage: tss_v1beta1_tx_pb.MsgRequestSignatureResponse|null) => void + ): UnaryResponse; + requestSignature( + requestMessage: tss_v1beta1_tx_pb.MsgRequestSignature, + callback: (error: ServiceError|null, responseMessage: tss_v1beta1_tx_pb.MsgRequestSignatureResponse|null) => void + ): UnaryResponse; + submitSignature( + requestMessage: tss_v1beta1_tx_pb.MsgSubmitSignature, + metadata: grpc.Metadata, + callback: (error: ServiceError|null, responseMessage: tss_v1beta1_tx_pb.MsgSubmitSignatureResponse|null) => void + ): UnaryResponse; + submitSignature( + requestMessage: tss_v1beta1_tx_pb.MsgSubmitSignature, + callback: (error: ServiceError|null, responseMessage: tss_v1beta1_tx_pb.MsgSubmitSignatureResponse|null) => void + ): UnaryResponse; + activate( + requestMessage: tss_v1beta1_tx_pb.MsgActivate, + metadata: grpc.Metadata, + callback: (error: ServiceError|null, responseMessage: tss_v1beta1_tx_pb.MsgActivateResponse|null) => void + ): UnaryResponse; + activate( + requestMessage: tss_v1beta1_tx_pb.MsgActivate, + callback: (error: ServiceError|null, responseMessage: tss_v1beta1_tx_pb.MsgActivateResponse|null) => void + ): UnaryResponse; + active( + requestMessage: tss_v1beta1_tx_pb.MsgActive, + metadata: grpc.Metadata, + callback: (error: ServiceError|null, responseMessage: tss_v1beta1_tx_pb.MsgActiveResponse|null) => void + ): UnaryResponse; + active( + requestMessage: tss_v1beta1_tx_pb.MsgActive, + callback: (error: ServiceError|null, responseMessage: tss_v1beta1_tx_pb.MsgActiveResponse|null) => void + ): UnaryResponse; + updateParams( + requestMessage: tss_v1beta1_tx_pb.MsgUpdateParams, + metadata: grpc.Metadata, + callback: (error: ServiceError|null, responseMessage: tss_v1beta1_tx_pb.MsgUpdateParamsResponse|null) => void + ): UnaryResponse; + updateParams( + requestMessage: tss_v1beta1_tx_pb.MsgUpdateParams, + callback: (error: ServiceError|null, responseMessage: tss_v1beta1_tx_pb.MsgUpdateParamsResponse|null) => void + ): UnaryResponse; +} + diff --git a/proto/tss/v1beta1/tx_pb_service.js b/proto/tss/v1beta1/tx_pb_service.js new file mode 100644 index 0000000..20b565c --- /dev/null +++ b/proto/tss/v1beta1/tx_pb_service.js @@ -0,0 +1,541 @@ +// package: tss.v1beta1 +// file: tss/v1beta1/tx.proto + +var tss_v1beta1_tx_pb = require("../../tss/v1beta1/tx_pb"); +var grpc = require("@improbable-eng/grpc-web").grpc; + +var Msg = (function () { + function Msg() {} + Msg.serviceName = "tss.v1beta1.Msg"; + return Msg; +}()); + +Msg.CreateGroup = { + methodName: "CreateGroup", + service: Msg, + requestStream: false, + responseStream: false, + requestType: tss_v1beta1_tx_pb.MsgCreateGroup, + responseType: tss_v1beta1_tx_pb.MsgCreateGroupResponse +}; + +Msg.ReplaceGroup = { + methodName: "ReplaceGroup", + service: Msg, + requestStream: false, + responseStream: false, + requestType: tss_v1beta1_tx_pb.MsgReplaceGroup, + responseType: tss_v1beta1_tx_pb.MsgReplaceGroupResponse +}; + +Msg.UpdateGroupFee = { + methodName: "UpdateGroupFee", + service: Msg, + requestStream: false, + responseStream: false, + requestType: tss_v1beta1_tx_pb.MsgUpdateGroupFee, + responseType: tss_v1beta1_tx_pb.MsgUpdateGroupFeeResponse +}; + +Msg.SubmitDKGRound1 = { + methodName: "SubmitDKGRound1", + service: Msg, + requestStream: false, + responseStream: false, + requestType: tss_v1beta1_tx_pb.MsgSubmitDKGRound1, + responseType: tss_v1beta1_tx_pb.MsgSubmitDKGRound1Response +}; + +Msg.SubmitDKGRound2 = { + methodName: "SubmitDKGRound2", + service: Msg, + requestStream: false, + responseStream: false, + requestType: tss_v1beta1_tx_pb.MsgSubmitDKGRound2, + responseType: tss_v1beta1_tx_pb.MsgSubmitDKGRound2Response +}; + +Msg.Complain = { + methodName: "Complain", + service: Msg, + requestStream: false, + responseStream: false, + requestType: tss_v1beta1_tx_pb.MsgComplain, + responseType: tss_v1beta1_tx_pb.MsgComplainResponse +}; + +Msg.Confirm = { + methodName: "Confirm", + service: Msg, + requestStream: false, + responseStream: false, + requestType: tss_v1beta1_tx_pb.MsgConfirm, + responseType: tss_v1beta1_tx_pb.MsgConfirmResponse +}; + +Msg.SubmitDEs = { + methodName: "SubmitDEs", + service: Msg, + requestStream: false, + responseStream: false, + requestType: tss_v1beta1_tx_pb.MsgSubmitDEs, + responseType: tss_v1beta1_tx_pb.MsgSubmitDEsResponse +}; + +Msg.RequestSignature = { + methodName: "RequestSignature", + service: Msg, + requestStream: false, + responseStream: false, + requestType: tss_v1beta1_tx_pb.MsgRequestSignature, + responseType: tss_v1beta1_tx_pb.MsgRequestSignatureResponse +}; + +Msg.SubmitSignature = { + methodName: "SubmitSignature", + service: Msg, + requestStream: false, + responseStream: false, + requestType: tss_v1beta1_tx_pb.MsgSubmitSignature, + responseType: tss_v1beta1_tx_pb.MsgSubmitSignatureResponse +}; + +Msg.Activate = { + methodName: "Activate", + service: Msg, + requestStream: false, + responseStream: false, + requestType: tss_v1beta1_tx_pb.MsgActivate, + responseType: tss_v1beta1_tx_pb.MsgActivateResponse +}; + +Msg.Active = { + methodName: "Active", + service: Msg, + requestStream: false, + responseStream: false, + requestType: tss_v1beta1_tx_pb.MsgActive, + responseType: tss_v1beta1_tx_pb.MsgActiveResponse +}; + +Msg.UpdateParams = { + methodName: "UpdateParams", + service: Msg, + requestStream: false, + responseStream: false, + requestType: tss_v1beta1_tx_pb.MsgUpdateParams, + responseType: tss_v1beta1_tx_pb.MsgUpdateParamsResponse +}; + +exports.Msg = Msg; + +function MsgClient(serviceHost, options) { + this.serviceHost = serviceHost; + this.options = options || {}; +} + +MsgClient.prototype.createGroup = function createGroup(requestMessage, metadata, callback) { + if (arguments.length === 2) { + callback = arguments[1]; + } + var client = grpc.unary(Msg.CreateGroup, { + request: requestMessage, + host: this.serviceHost, + metadata: metadata, + transport: this.options.transport, + debug: this.options.debug, + 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); + } else { + callback(null, response.message); + } + } + } + }); + return { + cancel: function () { + callback = null; + client.close(); + } + }; +}; + +MsgClient.prototype.replaceGroup = function replaceGroup(requestMessage, metadata, callback) { + if (arguments.length === 2) { + callback = arguments[1]; + } + var client = grpc.unary(Msg.ReplaceGroup, { + request: requestMessage, + host: this.serviceHost, + metadata: metadata, + transport: this.options.transport, + debug: this.options.debug, + 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); + } else { + callback(null, response.message); + } + } + } + }); + return { + cancel: function () { + callback = null; + client.close(); + } + }; +}; + +MsgClient.prototype.updateGroupFee = function updateGroupFee(requestMessage, metadata, callback) { + if (arguments.length === 2) { + callback = arguments[1]; + } + var client = grpc.unary(Msg.UpdateGroupFee, { + request: requestMessage, + host: this.serviceHost, + metadata: metadata, + transport: this.options.transport, + debug: this.options.debug, + 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); + } else { + callback(null, response.message); + } + } + } + }); + return { + cancel: function () { + callback = null; + client.close(); + } + }; +}; + +MsgClient.prototype.submitDKGRound1 = function submitDKGRound1(requestMessage, metadata, callback) { + if (arguments.length === 2) { + callback = arguments[1]; + } + var client = grpc.unary(Msg.SubmitDKGRound1, { + request: requestMessage, + host: this.serviceHost, + metadata: metadata, + transport: this.options.transport, + debug: this.options.debug, + 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); + } else { + callback(null, response.message); + } + } + } + }); + return { + cancel: function () { + callback = null; + client.close(); + } + }; +}; + +MsgClient.prototype.submitDKGRound2 = function submitDKGRound2(requestMessage, metadata, callback) { + if (arguments.length === 2) { + callback = arguments[1]; + } + var client = grpc.unary(Msg.SubmitDKGRound2, { + request: requestMessage, + host: this.serviceHost, + metadata: metadata, + transport: this.options.transport, + debug: this.options.debug, + 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); + } else { + callback(null, response.message); + } + } + } + }); + return { + cancel: function () { + callback = null; + client.close(); + } + }; +}; + +MsgClient.prototype.complain = function complain(requestMessage, metadata, callback) { + if (arguments.length === 2) { + callback = arguments[1]; + } + var client = grpc.unary(Msg.Complain, { + request: requestMessage, + host: this.serviceHost, + metadata: metadata, + transport: this.options.transport, + debug: this.options.debug, + 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); + } else { + callback(null, response.message); + } + } + } + }); + return { + cancel: function () { + callback = null; + client.close(); + } + }; +}; + +MsgClient.prototype.confirm = function confirm(requestMessage, metadata, callback) { + if (arguments.length === 2) { + callback = arguments[1]; + } + var client = grpc.unary(Msg.Confirm, { + request: requestMessage, + host: this.serviceHost, + metadata: metadata, + transport: this.options.transport, + debug: this.options.debug, + 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); + } else { + callback(null, response.message); + } + } + } + }); + return { + cancel: function () { + callback = null; + client.close(); + } + }; +}; + +MsgClient.prototype.submitDEs = function submitDEs(requestMessage, metadata, callback) { + if (arguments.length === 2) { + callback = arguments[1]; + } + var client = grpc.unary(Msg.SubmitDEs, { + request: requestMessage, + host: this.serviceHost, + metadata: metadata, + transport: this.options.transport, + debug: this.options.debug, + 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); + } else { + callback(null, response.message); + } + } + } + }); + return { + cancel: function () { + callback = null; + client.close(); + } + }; +}; + +MsgClient.prototype.requestSignature = function requestSignature(requestMessage, metadata, callback) { + if (arguments.length === 2) { + callback = arguments[1]; + } + var client = grpc.unary(Msg.RequestSignature, { + request: requestMessage, + host: this.serviceHost, + metadata: metadata, + transport: this.options.transport, + debug: this.options.debug, + 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); + } else { + callback(null, response.message); + } + } + } + }); + return { + cancel: function () { + callback = null; + client.close(); + } + }; +}; + +MsgClient.prototype.submitSignature = function submitSignature(requestMessage, metadata, callback) { + if (arguments.length === 2) { + callback = arguments[1]; + } + var client = grpc.unary(Msg.SubmitSignature, { + request: requestMessage, + host: this.serviceHost, + metadata: metadata, + transport: this.options.transport, + debug: this.options.debug, + 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); + } else { + callback(null, response.message); + } + } + } + }); + return { + cancel: function () { + callback = null; + client.close(); + } + }; +}; + +MsgClient.prototype.activate = function activate(requestMessage, metadata, callback) { + if (arguments.length === 2) { + callback = arguments[1]; + } + var client = grpc.unary(Msg.Activate, { + request: requestMessage, + host: this.serviceHost, + metadata: metadata, + transport: this.options.transport, + debug: this.options.debug, + 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); + } else { + callback(null, response.message); + } + } + } + }); + return { + cancel: function () { + callback = null; + client.close(); + } + }; +}; + +MsgClient.prototype.active = function active(requestMessage, metadata, callback) { + if (arguments.length === 2) { + callback = arguments[1]; + } + var client = grpc.unary(Msg.Active, { + request: requestMessage, + host: this.serviceHost, + metadata: metadata, + transport: this.options.transport, + debug: this.options.debug, + 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); + } else { + callback(null, response.message); + } + } + } + }); + return { + cancel: function () { + callback = null; + client.close(); + } + }; +}; + +MsgClient.prototype.updateParams = function updateParams(requestMessage, metadata, callback) { + if (arguments.length === 2) { + callback = arguments[1]; + } + var client = grpc.unary(Msg.UpdateParams, { + request: requestMessage, + host: this.serviceHost, + metadata: metadata, + transport: this.options.transport, + debug: this.options.debug, + 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); + } else { + callback(null, response.message); + } + } + } + }); + return { + cancel: function () { + callback = null; + client.close(); + } + }; +}; + +exports.MsgClient = MsgClient; + From 5e4b00bb78570cc614fa7c56775f9e06d1dfa146 Mon Sep 17 00:00:00 2001 From: babybunn Date: Wed, 4 Oct 2023 15:16:48 +0700 Subject: [PATCH 7/7] change to v.2.4.0-rc --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 72a4932..e94265d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@bandprotocol/bandchain.js", - "version": "2.3.0-rc", + "version": "2.4.0-rc", "description": "Library for interacting with BandChain in browser and Node.js environments", "main": "lib/index.js", "types": "lib/index.d.ts",