UNPKG

@provenanceio/wallet-utils

Version:

Typescript Utilities for Provenance Blockchain Wallet

1,601 lines (1,333 loc) 192 kB
"use strict"; // source: provenance/exchange/v1/events.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_proto_cosmos_pb = require('../../../cosmos_proto/cosmos_pb.js'); goog.object.extend(proto, cosmos_proto_cosmos_pb); goog.exportSymbol('proto.provenance.exchange.v1.EventCommitmentReleased', null, global); goog.exportSymbol('proto.provenance.exchange.v1.EventFundsCommitted', null, global); goog.exportSymbol('proto.provenance.exchange.v1.EventMarketCommitmentsDisabled', null, global); goog.exportSymbol('proto.provenance.exchange.v1.EventMarketCommitmentsEnabled', null, global); goog.exportSymbol('proto.provenance.exchange.v1.EventMarketCreated', null, global); goog.exportSymbol('proto.provenance.exchange.v1.EventMarketDetailsUpdated', null, global); goog.exportSymbol('proto.provenance.exchange.v1.EventMarketDisabled', null, global); goog.exportSymbol('proto.provenance.exchange.v1.EventMarketEnabled', null, global); goog.exportSymbol('proto.provenance.exchange.v1.EventMarketFeesUpdated', null, global); goog.exportSymbol('proto.provenance.exchange.v1.EventMarketIntermediaryDenomUpdated', null, global); goog.exportSymbol('proto.provenance.exchange.v1.EventMarketOrdersDisabled', null, global); goog.exportSymbol('proto.provenance.exchange.v1.EventMarketOrdersEnabled', null, global); goog.exportSymbol('proto.provenance.exchange.v1.EventMarketPermissionsUpdated', null, global); goog.exportSymbol('proto.provenance.exchange.v1.EventMarketReqAttrUpdated', null, global); goog.exportSymbol('proto.provenance.exchange.v1.EventMarketUserSettleDisabled', null, global); goog.exportSymbol('proto.provenance.exchange.v1.EventMarketUserSettleEnabled', null, global); goog.exportSymbol('proto.provenance.exchange.v1.EventMarketWithdraw', null, global); goog.exportSymbol('proto.provenance.exchange.v1.EventOrderCancelled', null, global); goog.exportSymbol('proto.provenance.exchange.v1.EventOrderCreated', null, global); goog.exportSymbol('proto.provenance.exchange.v1.EventOrderExternalIDUpdated', null, global); goog.exportSymbol('proto.provenance.exchange.v1.EventOrderFilled', null, global); goog.exportSymbol('proto.provenance.exchange.v1.EventOrderPartiallyFilled', null, global); goog.exportSymbol('proto.provenance.exchange.v1.EventParamsUpdated', null, global); goog.exportSymbol('proto.provenance.exchange.v1.EventPaymentAccepted', null, global); goog.exportSymbol('proto.provenance.exchange.v1.EventPaymentCancelled', null, global); goog.exportSymbol('proto.provenance.exchange.v1.EventPaymentCreated', null, global); goog.exportSymbol('proto.provenance.exchange.v1.EventPaymentRejected', null, global); goog.exportSymbol('proto.provenance.exchange.v1.EventPaymentUpdated', 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.provenance.exchange.v1.EventOrderCreated = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.provenance.exchange.v1.EventOrderCreated, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.provenance.exchange.v1.EventOrderCreated.displayName = 'proto.provenance.exchange.v1.EventOrderCreated'; } /** * 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.provenance.exchange.v1.EventOrderCancelled = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.provenance.exchange.v1.EventOrderCancelled, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.provenance.exchange.v1.EventOrderCancelled.displayName = 'proto.provenance.exchange.v1.EventOrderCancelled'; } /** * 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.provenance.exchange.v1.EventOrderFilled = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.provenance.exchange.v1.EventOrderFilled, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.provenance.exchange.v1.EventOrderFilled.displayName = 'proto.provenance.exchange.v1.EventOrderFilled'; } /** * 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.provenance.exchange.v1.EventOrderPartiallyFilled = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.provenance.exchange.v1.EventOrderPartiallyFilled, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.provenance.exchange.v1.EventOrderPartiallyFilled.displayName = 'proto.provenance.exchange.v1.EventOrderPartiallyFilled'; } /** * 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.provenance.exchange.v1.EventOrderExternalIDUpdated = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.provenance.exchange.v1.EventOrderExternalIDUpdated, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.provenance.exchange.v1.EventOrderExternalIDUpdated.displayName = 'proto.provenance.exchange.v1.EventOrderExternalIDUpdated'; } /** * 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.provenance.exchange.v1.EventFundsCommitted = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.provenance.exchange.v1.EventFundsCommitted, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.provenance.exchange.v1.EventFundsCommitted.displayName = 'proto.provenance.exchange.v1.EventFundsCommitted'; } /** * 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.provenance.exchange.v1.EventCommitmentReleased = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.provenance.exchange.v1.EventCommitmentReleased, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.provenance.exchange.v1.EventCommitmentReleased.displayName = 'proto.provenance.exchange.v1.EventCommitmentReleased'; } /** * 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.provenance.exchange.v1.EventMarketWithdraw = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.provenance.exchange.v1.EventMarketWithdraw, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.provenance.exchange.v1.EventMarketWithdraw.displayName = 'proto.provenance.exchange.v1.EventMarketWithdraw'; } /** * 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.provenance.exchange.v1.EventMarketDetailsUpdated = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.provenance.exchange.v1.EventMarketDetailsUpdated, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.provenance.exchange.v1.EventMarketDetailsUpdated.displayName = 'proto.provenance.exchange.v1.EventMarketDetailsUpdated'; } /** * 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.provenance.exchange.v1.EventMarketEnabled = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.provenance.exchange.v1.EventMarketEnabled, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.provenance.exchange.v1.EventMarketEnabled.displayName = 'proto.provenance.exchange.v1.EventMarketEnabled'; } /** * 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.provenance.exchange.v1.EventMarketDisabled = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.provenance.exchange.v1.EventMarketDisabled, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.provenance.exchange.v1.EventMarketDisabled.displayName = 'proto.provenance.exchange.v1.EventMarketDisabled'; } /** * 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.provenance.exchange.v1.EventMarketOrdersEnabled = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.provenance.exchange.v1.EventMarketOrdersEnabled, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.provenance.exchange.v1.EventMarketOrdersEnabled.displayName = 'proto.provenance.exchange.v1.EventMarketOrdersEnabled'; } /** * 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.provenance.exchange.v1.EventMarketOrdersDisabled = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.provenance.exchange.v1.EventMarketOrdersDisabled, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.provenance.exchange.v1.EventMarketOrdersDisabled.displayName = 'proto.provenance.exchange.v1.EventMarketOrdersDisabled'; } /** * 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.provenance.exchange.v1.EventMarketUserSettleEnabled = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.provenance.exchange.v1.EventMarketUserSettleEnabled, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.provenance.exchange.v1.EventMarketUserSettleEnabled.displayName = 'proto.provenance.exchange.v1.EventMarketUserSettleEnabled'; } /** * 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.provenance.exchange.v1.EventMarketUserSettleDisabled = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.provenance.exchange.v1.EventMarketUserSettleDisabled, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.provenance.exchange.v1.EventMarketUserSettleDisabled.displayName = 'proto.provenance.exchange.v1.EventMarketUserSettleDisabled'; } /** * 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.provenance.exchange.v1.EventMarketCommitmentsEnabled = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.provenance.exchange.v1.EventMarketCommitmentsEnabled, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.provenance.exchange.v1.EventMarketCommitmentsEnabled.displayName = 'proto.provenance.exchange.v1.EventMarketCommitmentsEnabled'; } /** * 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.provenance.exchange.v1.EventMarketCommitmentsDisabled = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.provenance.exchange.v1.EventMarketCommitmentsDisabled, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.provenance.exchange.v1.EventMarketCommitmentsDisabled.displayName = 'proto.provenance.exchange.v1.EventMarketCommitmentsDisabled'; } /** * 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.provenance.exchange.v1.EventMarketIntermediaryDenomUpdated = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.provenance.exchange.v1.EventMarketIntermediaryDenomUpdated, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.provenance.exchange.v1.EventMarketIntermediaryDenomUpdated.displayName = 'proto.provenance.exchange.v1.EventMarketIntermediaryDenomUpdated'; } /** * 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.provenance.exchange.v1.EventMarketPermissionsUpdated = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.provenance.exchange.v1.EventMarketPermissionsUpdated, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.provenance.exchange.v1.EventMarketPermissionsUpdated.displayName = 'proto.provenance.exchange.v1.EventMarketPermissionsUpdated'; } /** * 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.provenance.exchange.v1.EventMarketReqAttrUpdated = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.provenance.exchange.v1.EventMarketReqAttrUpdated, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.provenance.exchange.v1.EventMarketReqAttrUpdated.displayName = 'proto.provenance.exchange.v1.EventMarketReqAttrUpdated'; } /** * 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.provenance.exchange.v1.EventMarketCreated = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.provenance.exchange.v1.EventMarketCreated, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.provenance.exchange.v1.EventMarketCreated.displayName = 'proto.provenance.exchange.v1.EventMarketCreated'; } /** * 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.provenance.exchange.v1.EventMarketFeesUpdated = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.provenance.exchange.v1.EventMarketFeesUpdated, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.provenance.exchange.v1.EventMarketFeesUpdated.displayName = 'proto.provenance.exchange.v1.EventMarketFeesUpdated'; } /** * 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.provenance.exchange.v1.EventParamsUpdated = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.provenance.exchange.v1.EventParamsUpdated, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.provenance.exchange.v1.EventParamsUpdated.displayName = 'proto.provenance.exchange.v1.EventParamsUpdated'; } /** * 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.provenance.exchange.v1.EventPaymentCreated = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.provenance.exchange.v1.EventPaymentCreated, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.provenance.exchange.v1.EventPaymentCreated.displayName = 'proto.provenance.exchange.v1.EventPaymentCreated'; } /** * 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.provenance.exchange.v1.EventPaymentUpdated = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.provenance.exchange.v1.EventPaymentUpdated, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.provenance.exchange.v1.EventPaymentUpdated.displayName = 'proto.provenance.exchange.v1.EventPaymentUpdated'; } /** * 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.provenance.exchange.v1.EventPaymentAccepted = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.provenance.exchange.v1.EventPaymentAccepted, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.provenance.exchange.v1.EventPaymentAccepted.displayName = 'proto.provenance.exchange.v1.EventPaymentAccepted'; } /** * 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.provenance.exchange.v1.EventPaymentRejected = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.provenance.exchange.v1.EventPaymentRejected, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.provenance.exchange.v1.EventPaymentRejected.displayName = 'proto.provenance.exchange.v1.EventPaymentRejected'; } /** * 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.provenance.exchange.v1.EventPaymentCancelled = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.provenance.exchange.v1.EventPaymentCancelled, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.provenance.exchange.v1.EventPaymentCancelled.displayName = 'proto.provenance.exchange.v1.EventPaymentCancelled'; } 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_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.provenance.exchange.v1.EventOrderCreated.prototype.toObject = function (opt_includeInstance) { return proto.provenance.exchange.v1.EventOrderCreated.toObject(opt_includeInstance, this); }; /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.provenance.exchange.v1.EventOrderCreated} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.provenance.exchange.v1.EventOrderCreated.toObject = function (includeInstance, msg) { var f, obj = { orderId: jspb.Message.getFieldWithDefault(msg, 1, 0), orderType: jspb.Message.getFieldWithDefault(msg, 2, ""), marketId: jspb.Message.getFieldWithDefault(msg, 3, 0), externalId: 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.provenance.exchange.v1.EventOrderCreated} */ proto.provenance.exchange.v1.EventOrderCreated.deserializeBinary = function (bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.provenance.exchange.v1.EventOrderCreated(); return proto.provenance.exchange.v1.EventOrderCreated.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.provenance.exchange.v1.EventOrderCreated} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.provenance.exchange.v1.EventOrderCreated} */ proto.provenance.exchange.v1.EventOrderCreated.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.setOrderId(value); break; case 2: var value = /** @type {string} */ reader.readString(); msg.setOrderType(value); break; case 3: var value = /** @type {number} */ reader.readUint32(); msg.setMarketId(value); break; case 4: var value = /** @type {string} */ reader.readString(); msg.setExternalId(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.provenance.exchange.v1.EventOrderCreated.prototype.serializeBinary = function () { var writer = new jspb.BinaryWriter(); proto.provenance.exchange.v1.EventOrderCreated.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.provenance.exchange.v1.EventOrderCreated} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.provenance.exchange.v1.EventOrderCreated.serializeBinaryToWriter = function (message, writer) { var f = undefined; f = message.getOrderId(); if (f !== 0) { writer.writeUint64(1, f); } f = message.getOrderType(); if (f.length > 0) { writer.writeString(2, f); } f = message.getMarketId(); if (f !== 0) { writer.writeUint32(3, f); } f = message.getExternalId(); if (f.length > 0) { writer.writeString(4, f); } }; /** * optional uint64 order_id = 1; * @return {number} */ proto.provenance.exchange.v1.EventOrderCreated.prototype.getOrderId = function () { return ( /** @type {number} */ jspb.Message.getFieldWithDefault(this, 1, 0) ); }; /** * @param {number} value * @return {!proto.provenance.exchange.v1.EventOrderCreated} returns this */ proto.provenance.exchange.v1.EventOrderCreated.prototype.setOrderId = function (value) { return jspb.Message.setProto3IntField(this, 1, value); }; /** * optional string order_type = 2; * @return {string} */ proto.provenance.exchange.v1.EventOrderCreated.prototype.getOrderType = function () { return ( /** @type {string} */ jspb.Message.getFieldWithDefault(this, 2, "") ); }; /** * @param {string} value * @return {!proto.provenance.exchange.v1.EventOrderCreated} returns this */ proto.provenance.exchange.v1.EventOrderCreated.prototype.setOrderType = function (value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * optional uint32 market_id = 3; * @return {number} */ proto.provenance.exchange.v1.EventOrderCreated.prototype.getMarketId = function () { return ( /** @type {number} */ jspb.Message.getFieldWithDefault(this, 3, 0) ); }; /** * @param {number} value * @return {!proto.provenance.exchange.v1.EventOrderCreated} returns this */ proto.provenance.exchange.v1.EventOrderCreated.prototype.setMarketId = function (value) { return jspb.Message.setProto3IntField(this, 3, value); }; /** * optional string external_id = 4; * @return {string} */ proto.provenance.exchange.v1.EventOrderCreated.prototype.getExternalId = function () { return ( /** @type {string} */ jspb.Message.getFieldWithDefault(this, 4, "") ); }; /** * @param {string} value * @return {!proto.provenance.exchange.v1.EventOrderCreated} returns this */ proto.provenance.exchange.v1.EventOrderCreated.prototype.setExternalId = 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_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.provenance.exchange.v1.EventOrderCancelled.prototype.toObject = function (opt_includeInstance) { return proto.provenance.exchange.v1.EventOrderCancelled.toObject(opt_includeInstance, this); }; /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.provenance.exchange.v1.EventOrderCancelled} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.provenance.exchange.v1.EventOrderCancelled.toObject = function (includeInstance, msg) { var f, obj = { orderId: jspb.Message.getFieldWithDefault(msg, 1, 0), cancelledBy: jspb.Message.getFieldWithDefault(msg, 2, ""), marketId: jspb.Message.getFieldWithDefault(msg, 3, 0), externalId: 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.provenance.exchange.v1.EventOrderCancelled} */ proto.provenance.exchange.v1.EventOrderCancelled.deserializeBinary = function (bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.provenance.exchange.v1.EventOrderCancelled(); return proto.provenance.exchange.v1.EventOrderCancelled.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.provenance.exchange.v1.EventOrderCancelled} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.provenance.exchange.v1.EventOrderCancelled} */ proto.provenance.exchange.v1.EventOrderCancelled.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.setOrderId(value); break; case 2: var value = /** @type {string} */ reader.readString(); msg.setCancelledBy(value); break; case 3: var value = /** @type {number} */ reader.readUint32(); msg.setMarketId(value); break; case 4: var value = /** @type {string} */ reader.readString(); msg.setExternalId(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.provenance.exchange.v1.EventOrderCancelled.prototype.serializeBinary = function () { var writer = new jspb.BinaryWriter(); proto.provenance.exchange.v1.EventOrderCancelled.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.provenance.exchange.v1.EventOrderCancelled} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.provenance.exchange.v1.EventOrderCancelled.serializeBinaryToWriter = function (message, writer) { var f = undefined; f = message.getOrderId(); if (f !== 0) { writer.writeUint64(1, f); } f = message.getCancelledBy(); if (f.length > 0) { writer.writeString(2, f); } f = message.getMarketId(); if (f !== 0) { writer.writeUint32(3, f); } f = message.getExternalId(); if (f.length > 0) { writer.writeString(4, f); } }; /** * optional uint64 order_id = 1; * @return {number} */ proto.provenance.exchange.v1.EventOrderCancelled.prototype.getOrderId = function () { return ( /** @type {number} */ jspb.Message.getFieldWithDefault(this, 1, 0) ); }; /** * @param {number} value * @return {!proto.provenance.exchange.v1.EventOrderCancelled} returns this */ proto.provenance.exchange.v1.EventOrderCancelled.prototype.setOrderId = function (value) { return jspb.Message.setProto3IntField(this, 1, value); }; /** * optional string cancelled_by = 2; * @return {string} */ proto.provenance.exchange.v1.EventOrderCancelled.prototype.getCancelledBy = function () { return ( /** @type {string} */ jspb.Message.getFieldWithDefault(this, 2, "") ); }; /** * @param {string} value * @return {!proto.provenance.exchange.v1.EventOrderCancelled} returns this */ proto.provenance.exchange.v1.EventOrderCancelled.prototype.setCancelledBy = function (value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * optional uint32 market_id = 3; * @return {number} */ proto.provenance.exchange.v1.EventOrderCancelled.prototype.getMarketId = function () { return ( /** @type {number} */ jspb.Message.getFieldWithDefault(this, 3, 0) ); }; /** * @param {number} value * @return {!proto.provenance.exchange.v1.EventOrderCancelled} returns this */ proto.provenance.exchange.v1.EventOrderCancelled.prototype.setMarketId = function (value) { return jspb.Message.setProto3IntField(this, 3, value); }; /** * optional string external_id = 4; * @return {string} */ proto.provenance.exchange.v1.EventOrderCancelled.prototype.getExternalId = function () { return ( /** @type {string} */ jspb.Message.getFieldWithDefault(this, 4, "") ); }; /** * @param {string} value * @return {!proto.provenance.exchange.v1.EventOrderCancelled} returns this */ proto.provenance.exchange.v1.EventOrderCancelled.prototype.setExternalId = 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_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.provenance.exchange.v1.EventOrderFilled.prototype.toObject = function (opt_includeInstance) { return proto.provenance.exchange.v1.EventOrderFilled.toObject(opt_includeInstance, this); }; /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.provenance.exchange.v1.EventOrderFilled} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.provenance.exchange.v1.EventOrderFilled.toObject = function (includeInstance, msg) { var f, obj = { orderId: jspb.Message.getFieldWithDefault(msg, 1, 0), assets: jspb.Message.getFieldWithDefault(msg, 2, ""), price: jspb.Message.getFieldWithDefault(msg, 3, ""), fees: jspb.Message.getFieldWithDefault(msg, 4, ""), marketId: jspb.Message.getFieldWithDefault(msg, 5, 0), externalId: jspb.Message.getFieldWithDefault(msg, 6, "") }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.provenance.exchange.v1.EventOrderFilled} */ proto.provenance.exchange.v1.EventOrderFilled.deserializeBinary = function (bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.provenance.exchange.v1.EventOrderFilled(); return proto.provenance.exchange.v1.EventOrderFilled.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.provenance.exchange.v1.EventOrderFilled} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.provenance.exchange.v1.EventOrderFilled} */ proto.provenance.exchange.v1.EventOrderFilled.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.setOrderId(value); break; case 2: var value = /** @type {string} */ reader.readString(); msg.setAssets(value); break; case 3: var value = /** @type {string} */ reader.readString(); msg.setPrice(value); break; case 4: var value = /** @type {string} */ reader.readString(); msg.setFees(value); break; case 5: var value = /** @type {number} */ reader.readUint32(); msg.setMarketId(value); break; case 6: var value = /** @type {string} */ reader.readString(); msg.setExternalId(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.provenance.exchange.v1.EventOrderFilled.prototype.serializeBinary = function () { var writer = new jspb.BinaryWriter(); proto.provenance.exchange.v1.EventOrderFilled.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.provenance.exchange.v1.EventOrderFilled} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.provenance.exchange.v1.EventOrderFilled.serializeBinaryToWriter = function (message, writer) { var f = undefined; f = message.getOrderId(); if (f !== 0) { writer.writeUint64(1, f); } f = message.getAssets(); if (f.length > 0) { writer.writeString(2, f); } f = message.getPrice(); if (f.length > 0) { writer.writeString(3, f); } f = message.getFees(); if (f.length > 0) { writer.writeString(4, f); } f = message.getMarketId(); if (f !== 0) { writer.writeUint32(5, f); } f = message.getExternalId(); if (f.length > 0) { writer.writeString(6, f); } }; /** * optional uint64 order_id = 1; * @return {number} */ proto.provenance.exchange.v1.EventOrderFilled.prototype.getOrderId = function () { return ( /** @type {number} */ jspb.Message.getFieldWithDefault(this, 1, 0) ); }; /** * @param {number} value * @return {!proto.provenance.exchange.v1.EventOrderFilled} returns this */ proto.provenance.exchange.v1.EventOrderFilled.prototype.setOrderId = function (value) { return jspb.Message.setProto3IntField(this, 1, value); }; /** * optional string assets = 2; * @return {string} */ proto.provenance.exchange.v1.EventOrderFilled.prototype.getAssets = function () { return ( /** @type {string} */ jspb.Message.getFieldWithDefault(this, 2, "") ); }; /** * @param {string} value * @return {!proto.provenance.exchange.v1.EventOrderFilled} returns this */ proto.provenance.exchange.v1.EventOrderFilled.prototype.setAssets = function (value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * optional string price = 3; * @return {string} */ proto.provenance.exchange.v1.EventOrderFilled.prototype.getPrice = function () { return ( /** @type {string} */ jspb.Message.getFieldWithDefault(this, 3, "") ); }; /** * @param {string} value * @return {!proto.provenance.exchange.v1.EventOrderFilled} returns this */ proto.provenance.exchange.v1.EventOrderFilled.prototype.setPrice = function (value) { return jspb.Message.setProto3StringField(this, 3, value); }; /** * optional string fees = 4; * @return {string} */ proto.provenance.exchange.v1.EventOrderFilled.prototype.getFees = function () { return ( /** @type {string} */ jspb.Message.getFieldWithDefault(this, 4, "") ); }; /** * @param {string} value * @return {!proto.provenance.exchange.v1.EventOrderFilled} returns this */ proto.provenance.exchange.v1.EventOrderFilled.prototype.setFees = function (value) { return jspb.Message.setProto3StringField(this, 4, value); }; /** * optional uint32 market_id = 5; * @return {number} */ proto.provenance.exchange.v1.EventOrderFilled.prototype.getMarketId = function () { return ( /** @type {number} */ jspb.Message.getFieldWithDefault(this, 5, 0) ); }; /** * @param {number} value * @return {!proto.provenance.exchange.v1.EventOrderFilled} returns this */ proto.provenance.exchange.v1.EventOrderFilled.prototype.setMarketId = function (value) { return jspb.Message.setProto3IntField(this, 5, value); }; /** * optional string external_id = 6; * @return {string} */ proto.provenance.exchange.v1.EventOrderFilled.prototype.getExternalId = function () { return ( /** @type {string} */ jspb.Message.getFieldWithDefault(this, 6, "") ); }; /** * @param {string} value * @return {!proto.provenance.exchange.v1.EventOrderFilled} returns this */ proto.provenance.exchange.v1.EventOrderFilled.prototype.setExternalId = function (value) { return jspb.Message.setProto3StringField(this, 6, value); }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.provenance.exchange.v1.EventOrderPartiallyFilled.prototype.toObject = function (opt_includeInstance) { return proto.provenance.exchange.v1.EventOrderPartiallyFilled.toObject(opt_includeInstance, this); }; /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.provenance.exchange.v1.EventOrderPartiallyFilled} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.provenance.exchange.v1.EventOrderPartiallyFilled.toObject = function (includeInstance, msg) { var f, obj = { orderId: jspb.Message.getFieldWithDefault(msg, 1, 0), assets: jspb.Message.getFieldWithDefault(msg, 2, ""), price: jspb.Message.getFieldWithDefault(msg, 3, ""), fees: jspb.Message.getFieldWithDefault(msg, 4, ""), marketId: jspb.Message.getFieldWithDefault(msg, 5, 0), externalId: jspb.Message.getFieldWithDefault(msg, 6, "") }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.provenance.exchange.v1.EventOrderPartiallyFilled} */ proto.provenance.exchange.v1.EventOrderPartiallyFilled.deserializeBinary = function (bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.provenance.exchange.v1.EventOrderPartiallyFilled(); return proto.provenance.exchange.v1.EventOrderPartia