@routerprotocol/chain-api
Version:
Router Chain API Query client with generated gRPC bindings.
496 lines (429 loc) • 14 kB
JavaScript
// source: ethermint/evm/v1/trace_config_v0.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')();
var gogoproto_gogo_pb = require('../../../gogoproto/gogo_pb.js');
goog.object.extend(proto, gogoproto_gogo_pb);
var ethermint_evm_v1_chain_config_v0_pb = require('../../../ethermint/evm/v1/chain_config_v0_pb.js');
goog.object.extend(proto, ethermint_evm_v1_chain_config_v0_pb);
goog.exportSymbol('proto.ethermint.evm.v1.V0TraceConfig', 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.ethermint.evm.v1.V0TraceConfig = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.ethermint.evm.v1.V0TraceConfig, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ethermint.evm.v1.V0TraceConfig.displayName = 'proto.ethermint.evm.v1.V0TraceConfig';
}
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.ethermint.evm.v1.V0TraceConfig.prototype.toObject = function(opt_includeInstance) {
return proto.ethermint.evm.v1.V0TraceConfig.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.ethermint.evm.v1.V0TraceConfig} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.ethermint.evm.v1.V0TraceConfig.toObject = function(includeInstance, msg) {
var f, obj = {
tracer: jspb.Message.getFieldWithDefault(msg, 1, ""),
timeout: jspb.Message.getFieldWithDefault(msg, 2, ""),
reexec: jspb.Message.getFieldWithDefault(msg, 3, 0),
disableStack: jspb.Message.getBooleanFieldWithDefault(msg, 5, false),
disableStorage: jspb.Message.getBooleanFieldWithDefault(msg, 6, false),
debug: jspb.Message.getBooleanFieldWithDefault(msg, 8, false),
limit: jspb.Message.getFieldWithDefault(msg, 9, 0),
overrides: (f = msg.getOverrides()) && ethermint_evm_v1_chain_config_v0_pb.V0ChainConfig.toObject(includeInstance, f),
enableMemory: jspb.Message.getBooleanFieldWithDefault(msg, 11, false),
enableReturnData: jspb.Message.getBooleanFieldWithDefault(msg, 12, false),
tracerJsonConfig: jspb.Message.getFieldWithDefault(msg, 13, "")
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.ethermint.evm.v1.V0TraceConfig}
*/
proto.ethermint.evm.v1.V0TraceConfig.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.ethermint.evm.v1.V0TraceConfig;
return proto.ethermint.evm.v1.V0TraceConfig.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.ethermint.evm.v1.V0TraceConfig} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.ethermint.evm.v1.V0TraceConfig}
*/
proto.ethermint.evm.v1.V0TraceConfig.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.setTracer(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setTimeout(value);
break;
case 3:
var value = /** @type {number} */ (reader.readUint64());
msg.setReexec(value);
break;
case 5:
var value = /** @type {boolean} */ (reader.readBool());
msg.setDisableStack(value);
break;
case 6:
var value = /** @type {boolean} */ (reader.readBool());
msg.setDisableStorage(value);
break;
case 8:
var value = /** @type {boolean} */ (reader.readBool());
msg.setDebug(value);
break;
case 9:
var value = /** @type {number} */ (reader.readInt32());
msg.setLimit(value);
break;
case 10:
var value = new ethermint_evm_v1_chain_config_v0_pb.V0ChainConfig;
reader.readMessage(value,ethermint_evm_v1_chain_config_v0_pb.V0ChainConfig.deserializeBinaryFromReader);
msg.setOverrides(value);
break;
case 11:
var value = /** @type {boolean} */ (reader.readBool());
msg.setEnableMemory(value);
break;
case 12:
var value = /** @type {boolean} */ (reader.readBool());
msg.setEnableReturnData(value);
break;
case 13:
var value = /** @type {string} */ (reader.readString());
msg.setTracerJsonConfig(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.ethermint.evm.v1.V0TraceConfig.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.ethermint.evm.v1.V0TraceConfig.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.ethermint.evm.v1.V0TraceConfig} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.ethermint.evm.v1.V0TraceConfig.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getTracer();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getTimeout();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
f = message.getReexec();
if (f !== 0) {
writer.writeUint64(
3,
f
);
}
f = message.getDisableStack();
if (f) {
writer.writeBool(
5,
f
);
}
f = message.getDisableStorage();
if (f) {
writer.writeBool(
6,
f
);
}
f = message.getDebug();
if (f) {
writer.writeBool(
8,
f
);
}
f = message.getLimit();
if (f !== 0) {
writer.writeInt32(
9,
f
);
}
f = message.getOverrides();
if (f != null) {
writer.writeMessage(
10,
f,
ethermint_evm_v1_chain_config_v0_pb.V0ChainConfig.serializeBinaryToWriter
);
}
f = message.getEnableMemory();
if (f) {
writer.writeBool(
11,
f
);
}
f = message.getEnableReturnData();
if (f) {
writer.writeBool(
12,
f
);
}
f = message.getTracerJsonConfig();
if (f.length > 0) {
writer.writeString(
13,
f
);
}
};
/**
* optional string tracer = 1;
* @return {string}
*/
proto.ethermint.evm.v1.V0TraceConfig.prototype.getTracer = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.ethermint.evm.v1.V0TraceConfig} returns this
*/
proto.ethermint.evm.v1.V0TraceConfig.prototype.setTracer = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional string timeout = 2;
* @return {string}
*/
proto.ethermint.evm.v1.V0TraceConfig.prototype.getTimeout = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.ethermint.evm.v1.V0TraceConfig} returns this
*/
proto.ethermint.evm.v1.V0TraceConfig.prototype.setTimeout = function(value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* optional uint64 reexec = 3;
* @return {number}
*/
proto.ethermint.evm.v1.V0TraceConfig.prototype.getReexec = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
};
/**
* @param {number} value
* @return {!proto.ethermint.evm.v1.V0TraceConfig} returns this
*/
proto.ethermint.evm.v1.V0TraceConfig.prototype.setReexec = function(value) {
return jspb.Message.setProto3IntField(this, 3, value);
};
/**
* optional bool disable_stack = 5;
* @return {boolean}
*/
proto.ethermint.evm.v1.V0TraceConfig.prototype.getDisableStack = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
};
/**
* @param {boolean} value
* @return {!proto.ethermint.evm.v1.V0TraceConfig} returns this
*/
proto.ethermint.evm.v1.V0TraceConfig.prototype.setDisableStack = function(value) {
return jspb.Message.setProto3BooleanField(this, 5, value);
};
/**
* optional bool disable_storage = 6;
* @return {boolean}
*/
proto.ethermint.evm.v1.V0TraceConfig.prototype.getDisableStorage = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false));
};
/**
* @param {boolean} value
* @return {!proto.ethermint.evm.v1.V0TraceConfig} returns this
*/
proto.ethermint.evm.v1.V0TraceConfig.prototype.setDisableStorage = function(value) {
return jspb.Message.setProto3BooleanField(this, 6, value);
};
/**
* optional bool debug = 8;
* @return {boolean}
*/
proto.ethermint.evm.v1.V0TraceConfig.prototype.getDebug = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false));
};
/**
* @param {boolean} value
* @return {!proto.ethermint.evm.v1.V0TraceConfig} returns this
*/
proto.ethermint.evm.v1.V0TraceConfig.prototype.setDebug = function(value) {
return jspb.Message.setProto3BooleanField(this, 8, value);
};
/**
* optional int32 limit = 9;
* @return {number}
*/
proto.ethermint.evm.v1.V0TraceConfig.prototype.getLimit = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
};
/**
* @param {number} value
* @return {!proto.ethermint.evm.v1.V0TraceConfig} returns this
*/
proto.ethermint.evm.v1.V0TraceConfig.prototype.setLimit = function(value) {
return jspb.Message.setProto3IntField(this, 9, value);
};
/**
* optional V0ChainConfig overrides = 10;
* @return {?proto.ethermint.evm.v1.V0ChainConfig}
*/
proto.ethermint.evm.v1.V0TraceConfig.prototype.getOverrides = function() {
return /** @type{?proto.ethermint.evm.v1.V0ChainConfig} */ (
jspb.Message.getWrapperField(this, ethermint_evm_v1_chain_config_v0_pb.V0ChainConfig, 10));
};
/**
* @param {?proto.ethermint.evm.v1.V0ChainConfig|undefined} value
* @return {!proto.ethermint.evm.v1.V0TraceConfig} returns this
*/
proto.ethermint.evm.v1.V0TraceConfig.prototype.setOverrides = function(value) {
return jspb.Message.setWrapperField(this, 10, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.ethermint.evm.v1.V0TraceConfig} returns this
*/
proto.ethermint.evm.v1.V0TraceConfig.prototype.clearOverrides = function() {
return this.setOverrides(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.ethermint.evm.v1.V0TraceConfig.prototype.hasOverrides = function() {
return jspb.Message.getField(this, 10) != null;
};
/**
* optional bool enable_memory = 11;
* @return {boolean}
*/
proto.ethermint.evm.v1.V0TraceConfig.prototype.getEnableMemory = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 11, false));
};
/**
* @param {boolean} value
* @return {!proto.ethermint.evm.v1.V0TraceConfig} returns this
*/
proto.ethermint.evm.v1.V0TraceConfig.prototype.setEnableMemory = function(value) {
return jspb.Message.setProto3BooleanField(this, 11, value);
};
/**
* optional bool enable_return_data = 12;
* @return {boolean}
*/
proto.ethermint.evm.v1.V0TraceConfig.prototype.getEnableReturnData = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 12, false));
};
/**
* @param {boolean} value
* @return {!proto.ethermint.evm.v1.V0TraceConfig} returns this
*/
proto.ethermint.evm.v1.V0TraceConfig.prototype.setEnableReturnData = function(value) {
return jspb.Message.setProto3BooleanField(this, 12, value);
};
/**
* optional string tracer_json_config = 13;
* @return {string}
*/
proto.ethermint.evm.v1.V0TraceConfig.prototype.getTracerJsonConfig = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
};
/**
* @param {string} value
* @return {!proto.ethermint.evm.v1.V0TraceConfig} returns this
*/
proto.ethermint.evm.v1.V0TraceConfig.prototype.setTracerJsonConfig = function(value) {
return jspb.Message.setProto3StringField(this, 13, value);
};
goog.object.extend(exports, proto.ethermint.evm.v1);