@keepkey/device-protocol 7.7.1 → 7.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/messages-cosmos_pb.d.ts +236 -0
- package/lib/messages-cosmos_pb.js +1964 -91
- package/lib/messages-tendermint_pb.d.ts +230 -0
- package/lib/messages-tendermint_pb.js +1917 -92
- package/lib/messages_pb.d.ts +10 -0
- package/lib/messages_pb.js +10 -0
- package/lib/proto.json +281 -3
- package/package.json +1 -1
@@ -20,8 +20,13 @@ goog.object.extend(proto, types_pb);
|
|
20
20
|
goog.exportSymbol('proto.CosmosAddress', null, global);
|
21
21
|
goog.exportSymbol('proto.CosmosGetAddress', null, global);
|
22
22
|
goog.exportSymbol('proto.CosmosMsgAck', null, global);
|
23
|
+
goog.exportSymbol('proto.CosmosMsgDelegate', null, global);
|
24
|
+
goog.exportSymbol('proto.CosmosMsgIBCTransfer', null, global);
|
25
|
+
goog.exportSymbol('proto.CosmosMsgRedelegate', null, global);
|
23
26
|
goog.exportSymbol('proto.CosmosMsgRequest', null, global);
|
27
|
+
goog.exportSymbol('proto.CosmosMsgRewards', null, global);
|
24
28
|
goog.exportSymbol('proto.CosmosMsgSend', null, global);
|
29
|
+
goog.exportSymbol('proto.CosmosMsgUndelegate', null, global);
|
25
30
|
goog.exportSymbol('proto.CosmosSignTx', null, global);
|
26
31
|
goog.exportSymbol('proto.CosmosSignedTx', null, global);
|
27
32
|
/**
|
@@ -150,6 +155,111 @@ if (goog.DEBUG && !COMPILED) {
|
|
150
155
|
*/
|
151
156
|
proto.CosmosMsgSend.displayName = 'proto.CosmosMsgSend';
|
152
157
|
}
|
158
|
+
/**
|
159
|
+
* Generated by JsPbCodeGenerator.
|
160
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
161
|
+
* server response, or constructed directly in Javascript. The array is used
|
162
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
163
|
+
* If no data is provided, the constructed object will be empty, but still
|
164
|
+
* valid.
|
165
|
+
* @extends {jspb.Message}
|
166
|
+
* @constructor
|
167
|
+
*/
|
168
|
+
proto.CosmosMsgDelegate = function(opt_data) {
|
169
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
170
|
+
};
|
171
|
+
goog.inherits(proto.CosmosMsgDelegate, jspb.Message);
|
172
|
+
if (goog.DEBUG && !COMPILED) {
|
173
|
+
/**
|
174
|
+
* @public
|
175
|
+
* @override
|
176
|
+
*/
|
177
|
+
proto.CosmosMsgDelegate.displayName = 'proto.CosmosMsgDelegate';
|
178
|
+
}
|
179
|
+
/**
|
180
|
+
* Generated by JsPbCodeGenerator.
|
181
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
182
|
+
* server response, or constructed directly in Javascript. The array is used
|
183
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
184
|
+
* If no data is provided, the constructed object will be empty, but still
|
185
|
+
* valid.
|
186
|
+
* @extends {jspb.Message}
|
187
|
+
* @constructor
|
188
|
+
*/
|
189
|
+
proto.CosmosMsgUndelegate = function(opt_data) {
|
190
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
191
|
+
};
|
192
|
+
goog.inherits(proto.CosmosMsgUndelegate, jspb.Message);
|
193
|
+
if (goog.DEBUG && !COMPILED) {
|
194
|
+
/**
|
195
|
+
* @public
|
196
|
+
* @override
|
197
|
+
*/
|
198
|
+
proto.CosmosMsgUndelegate.displayName = 'proto.CosmosMsgUndelegate';
|
199
|
+
}
|
200
|
+
/**
|
201
|
+
* Generated by JsPbCodeGenerator.
|
202
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
203
|
+
* server response, or constructed directly in Javascript. The array is used
|
204
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
205
|
+
* If no data is provided, the constructed object will be empty, but still
|
206
|
+
* valid.
|
207
|
+
* @extends {jspb.Message}
|
208
|
+
* @constructor
|
209
|
+
*/
|
210
|
+
proto.CosmosMsgRedelegate = function(opt_data) {
|
211
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
212
|
+
};
|
213
|
+
goog.inherits(proto.CosmosMsgRedelegate, jspb.Message);
|
214
|
+
if (goog.DEBUG && !COMPILED) {
|
215
|
+
/**
|
216
|
+
* @public
|
217
|
+
* @override
|
218
|
+
*/
|
219
|
+
proto.CosmosMsgRedelegate.displayName = 'proto.CosmosMsgRedelegate';
|
220
|
+
}
|
221
|
+
/**
|
222
|
+
* Generated by JsPbCodeGenerator.
|
223
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
224
|
+
* server response, or constructed directly in Javascript. The array is used
|
225
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
226
|
+
* If no data is provided, the constructed object will be empty, but still
|
227
|
+
* valid.
|
228
|
+
* @extends {jspb.Message}
|
229
|
+
* @constructor
|
230
|
+
*/
|
231
|
+
proto.CosmosMsgRewards = function(opt_data) {
|
232
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
233
|
+
};
|
234
|
+
goog.inherits(proto.CosmosMsgRewards, jspb.Message);
|
235
|
+
if (goog.DEBUG && !COMPILED) {
|
236
|
+
/**
|
237
|
+
* @public
|
238
|
+
* @override
|
239
|
+
*/
|
240
|
+
proto.CosmosMsgRewards.displayName = 'proto.CosmosMsgRewards';
|
241
|
+
}
|
242
|
+
/**
|
243
|
+
* Generated by JsPbCodeGenerator.
|
244
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
245
|
+
* server response, or constructed directly in Javascript. The array is used
|
246
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
247
|
+
* If no data is provided, the constructed object will be empty, but still
|
248
|
+
* valid.
|
249
|
+
* @extends {jspb.Message}
|
250
|
+
* @constructor
|
251
|
+
*/
|
252
|
+
proto.CosmosMsgIBCTransfer = function(opt_data) {
|
253
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
254
|
+
};
|
255
|
+
goog.inherits(proto.CosmosMsgIBCTransfer, jspb.Message);
|
256
|
+
if (goog.DEBUG && !COMPILED) {
|
257
|
+
/**
|
258
|
+
* @public
|
259
|
+
* @override
|
260
|
+
*/
|
261
|
+
proto.CosmosMsgIBCTransfer.displayName = 'proto.CosmosMsgIBCTransfer';
|
262
|
+
}
|
153
263
|
/**
|
154
264
|
* Generated by JsPbCodeGenerator.
|
155
265
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
@@ -1152,7 +1262,12 @@ proto.CosmosMsgAck.prototype.toObject = function(opt_includeInstance) {
|
|
1152
1262
|
*/
|
1153
1263
|
proto.CosmosMsgAck.toObject = function(includeInstance, msg) {
|
1154
1264
|
var f, obj = {
|
1155
|
-
send: (f = msg.getSend()) && proto.CosmosMsgSend.toObject(includeInstance, f)
|
1265
|
+
send: (f = msg.getSend()) && proto.CosmosMsgSend.toObject(includeInstance, f),
|
1266
|
+
delegate: (f = msg.getDelegate()) && proto.CosmosMsgDelegate.toObject(includeInstance, f),
|
1267
|
+
undelegate: (f = msg.getUndelegate()) && proto.CosmosMsgUndelegate.toObject(includeInstance, f),
|
1268
|
+
redelegate: (f = msg.getRedelegate()) && proto.CosmosMsgRedelegate.toObject(includeInstance, f),
|
1269
|
+
rewards: (f = msg.getRewards()) && proto.CosmosMsgRewards.toObject(includeInstance, f),
|
1270
|
+
ibcTransfer: (f = msg.getIbcTransfer()) && proto.CosmosMsgIBCTransfer.toObject(includeInstance, f)
|
1156
1271
|
};
|
1157
1272
|
|
1158
1273
|
if (includeInstance) {
|
@@ -1194,6 +1309,31 @@ proto.CosmosMsgAck.deserializeBinaryFromReader = function(msg, reader) {
|
|
1194
1309
|
reader.readMessage(value,proto.CosmosMsgSend.deserializeBinaryFromReader);
|
1195
1310
|
msg.setSend(value);
|
1196
1311
|
break;
|
1312
|
+
case 2:
|
1313
|
+
var value = new proto.CosmosMsgDelegate;
|
1314
|
+
reader.readMessage(value,proto.CosmosMsgDelegate.deserializeBinaryFromReader);
|
1315
|
+
msg.setDelegate(value);
|
1316
|
+
break;
|
1317
|
+
case 3:
|
1318
|
+
var value = new proto.CosmosMsgUndelegate;
|
1319
|
+
reader.readMessage(value,proto.CosmosMsgUndelegate.deserializeBinaryFromReader);
|
1320
|
+
msg.setUndelegate(value);
|
1321
|
+
break;
|
1322
|
+
case 4:
|
1323
|
+
var value = new proto.CosmosMsgRedelegate;
|
1324
|
+
reader.readMessage(value,proto.CosmosMsgRedelegate.deserializeBinaryFromReader);
|
1325
|
+
msg.setRedelegate(value);
|
1326
|
+
break;
|
1327
|
+
case 5:
|
1328
|
+
var value = new proto.CosmosMsgRewards;
|
1329
|
+
reader.readMessage(value,proto.CosmosMsgRewards.deserializeBinaryFromReader);
|
1330
|
+
msg.setRewards(value);
|
1331
|
+
break;
|
1332
|
+
case 6:
|
1333
|
+
var value = new proto.CosmosMsgIBCTransfer;
|
1334
|
+
reader.readMessage(value,proto.CosmosMsgIBCTransfer.deserializeBinaryFromReader);
|
1335
|
+
msg.setIbcTransfer(value);
|
1336
|
+
break;
|
1197
1337
|
default:
|
1198
1338
|
reader.skipField();
|
1199
1339
|
break;
|
@@ -1231,6 +1371,46 @@ proto.CosmosMsgAck.serializeBinaryToWriter = function(message, writer) {
|
|
1231
1371
|
proto.CosmosMsgSend.serializeBinaryToWriter
|
1232
1372
|
);
|
1233
1373
|
}
|
1374
|
+
f = message.getDelegate();
|
1375
|
+
if (f != null) {
|
1376
|
+
writer.writeMessage(
|
1377
|
+
2,
|
1378
|
+
f,
|
1379
|
+
proto.CosmosMsgDelegate.serializeBinaryToWriter
|
1380
|
+
);
|
1381
|
+
}
|
1382
|
+
f = message.getUndelegate();
|
1383
|
+
if (f != null) {
|
1384
|
+
writer.writeMessage(
|
1385
|
+
3,
|
1386
|
+
f,
|
1387
|
+
proto.CosmosMsgUndelegate.serializeBinaryToWriter
|
1388
|
+
);
|
1389
|
+
}
|
1390
|
+
f = message.getRedelegate();
|
1391
|
+
if (f != null) {
|
1392
|
+
writer.writeMessage(
|
1393
|
+
4,
|
1394
|
+
f,
|
1395
|
+
proto.CosmosMsgRedelegate.serializeBinaryToWriter
|
1396
|
+
);
|
1397
|
+
}
|
1398
|
+
f = message.getRewards();
|
1399
|
+
if (f != null) {
|
1400
|
+
writer.writeMessage(
|
1401
|
+
5,
|
1402
|
+
f,
|
1403
|
+
proto.CosmosMsgRewards.serializeBinaryToWriter
|
1404
|
+
);
|
1405
|
+
}
|
1406
|
+
f = message.getIbcTransfer();
|
1407
|
+
if (f != null) {
|
1408
|
+
writer.writeMessage(
|
1409
|
+
6,
|
1410
|
+
f,
|
1411
|
+
proto.CosmosMsgIBCTransfer.serializeBinaryToWriter
|
1412
|
+
);
|
1413
|
+
}
|
1234
1414
|
};
|
1235
1415
|
|
1236
1416
|
|
@@ -1271,126 +1451,311 @@ proto.CosmosMsgAck.prototype.hasSend = function() {
|
|
1271
1451
|
};
|
1272
1452
|
|
1273
1453
|
|
1454
|
+
/**
|
1455
|
+
* optional CosmosMsgDelegate delegate = 2;
|
1456
|
+
* @return {?proto.CosmosMsgDelegate}
|
1457
|
+
*/
|
1458
|
+
proto.CosmosMsgAck.prototype.getDelegate = function() {
|
1459
|
+
return /** @type{?proto.CosmosMsgDelegate} */ (
|
1460
|
+
jspb.Message.getWrapperField(this, proto.CosmosMsgDelegate, 2));
|
1461
|
+
};
|
1462
|
+
|
1274
1463
|
|
1464
|
+
/**
|
1465
|
+
* @param {?proto.CosmosMsgDelegate|undefined} value
|
1466
|
+
* @return {!proto.CosmosMsgAck} returns this
|
1467
|
+
*/
|
1468
|
+
proto.CosmosMsgAck.prototype.setDelegate = function(value) {
|
1469
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
1470
|
+
};
|
1275
1471
|
|
1276
1472
|
|
1277
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
1278
1473
|
/**
|
1279
|
-
*
|
1280
|
-
*
|
1281
|
-
* Optional fields that are not set will be set to undefined.
|
1282
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
1283
|
-
* For the list of reserved names please see:
|
1284
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
1285
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
1286
|
-
* JSPB instance for transitional soy proto support:
|
1287
|
-
* http://goto/soy-param-migration
|
1288
|
-
* @return {!Object}
|
1474
|
+
* Clears the message field making it undefined.
|
1475
|
+
* @return {!proto.CosmosMsgAck} returns this
|
1289
1476
|
*/
|
1290
|
-
proto.
|
1291
|
-
return
|
1477
|
+
proto.CosmosMsgAck.prototype.clearDelegate = function() {
|
1478
|
+
return this.setDelegate(undefined);
|
1292
1479
|
};
|
1293
1480
|
|
1294
1481
|
|
1295
1482
|
/**
|
1296
|
-
*
|
1297
|
-
* @
|
1298
|
-
* the JSPB instance for transitional soy proto support:
|
1299
|
-
* http://goto/soy-param-migration
|
1300
|
-
* @param {!proto.CosmosMsgSend} msg The msg instance to transform.
|
1301
|
-
* @return {!Object}
|
1302
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1483
|
+
* Returns whether this field is set.
|
1484
|
+
* @return {boolean}
|
1303
1485
|
*/
|
1304
|
-
proto.
|
1305
|
-
|
1306
|
-
|
1307
|
-
toAddress: (f = jspb.Message.getField(msg, 7)) == null ? undefined : f,
|
1308
|
-
amount: (f = jspb.Message.getField(msg, 8)) == null ? undefined : f,
|
1309
|
-
addressType: (f = jspb.Message.getField(msg, 9)) == null ? undefined : f,
|
1310
|
-
exchangeType: (f = msg.getExchangeType()) && types_pb.ExchangeType.toObject(includeInstance, f)
|
1311
|
-
};
|
1486
|
+
proto.CosmosMsgAck.prototype.hasDelegate = function() {
|
1487
|
+
return jspb.Message.getField(this, 2) != null;
|
1488
|
+
};
|
1312
1489
|
|
1313
|
-
|
1314
|
-
|
1315
|
-
|
1316
|
-
|
1490
|
+
|
1491
|
+
/**
|
1492
|
+
* optional CosmosMsgUndelegate undelegate = 3;
|
1493
|
+
* @return {?proto.CosmosMsgUndelegate}
|
1494
|
+
*/
|
1495
|
+
proto.CosmosMsgAck.prototype.getUndelegate = function() {
|
1496
|
+
return /** @type{?proto.CosmosMsgUndelegate} */ (
|
1497
|
+
jspb.Message.getWrapperField(this, proto.CosmosMsgUndelegate, 3));
|
1317
1498
|
};
|
1318
|
-
}
|
1319
1499
|
|
1320
1500
|
|
1321
1501
|
/**
|
1322
|
-
*
|
1323
|
-
* @
|
1324
|
-
|
1502
|
+
* @param {?proto.CosmosMsgUndelegate|undefined} value
|
1503
|
+
* @return {!proto.CosmosMsgAck} returns this
|
1504
|
+
*/
|
1505
|
+
proto.CosmosMsgAck.prototype.setUndelegate = function(value) {
|
1506
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
1507
|
+
};
|
1508
|
+
|
1509
|
+
|
1510
|
+
/**
|
1511
|
+
* Clears the message field making it undefined.
|
1512
|
+
* @return {!proto.CosmosMsgAck} returns this
|
1325
1513
|
*/
|
1326
|
-
proto.
|
1327
|
-
|
1328
|
-
var msg = new proto.CosmosMsgSend;
|
1329
|
-
return proto.CosmosMsgSend.deserializeBinaryFromReader(msg, reader);
|
1514
|
+
proto.CosmosMsgAck.prototype.clearUndelegate = function() {
|
1515
|
+
return this.setUndelegate(undefined);
|
1330
1516
|
};
|
1331
1517
|
|
1332
1518
|
|
1333
1519
|
/**
|
1334
|
-
*
|
1335
|
-
*
|
1336
|
-
* @param {!proto.CosmosMsgSend} msg The message object to deserialize into.
|
1337
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
1338
|
-
* @return {!proto.CosmosMsgSend}
|
1520
|
+
* Returns whether this field is set.
|
1521
|
+
* @return {boolean}
|
1339
1522
|
*/
|
1340
|
-
proto.
|
1341
|
-
|
1342
|
-
if (reader.isEndGroup()) {
|
1343
|
-
break;
|
1344
|
-
}
|
1345
|
-
var field = reader.getFieldNumber();
|
1346
|
-
switch (field) {
|
1347
|
-
case 6:
|
1348
|
-
var value = /** @type {string} */ (reader.readString());
|
1349
|
-
msg.setFromAddress(value);
|
1350
|
-
break;
|
1351
|
-
case 7:
|
1352
|
-
var value = /** @type {string} */ (reader.readString());
|
1353
|
-
msg.setToAddress(value);
|
1354
|
-
break;
|
1355
|
-
case 8:
|
1356
|
-
var value = /** @type {string} */ (reader.readUint64String());
|
1357
|
-
msg.setAmount(value);
|
1358
|
-
break;
|
1359
|
-
case 9:
|
1360
|
-
var value = /** @type {!proto.OutputAddressType} */ (reader.readEnum());
|
1361
|
-
msg.setAddressType(value);
|
1362
|
-
break;
|
1363
|
-
case 10:
|
1364
|
-
var value = new types_pb.ExchangeType;
|
1365
|
-
reader.readMessage(value,types_pb.ExchangeType.deserializeBinaryFromReader);
|
1366
|
-
msg.setExchangeType(value);
|
1367
|
-
break;
|
1368
|
-
default:
|
1369
|
-
reader.skipField();
|
1370
|
-
break;
|
1371
|
-
}
|
1372
|
-
}
|
1373
|
-
return msg;
|
1523
|
+
proto.CosmosMsgAck.prototype.hasUndelegate = function() {
|
1524
|
+
return jspb.Message.getField(this, 3) != null;
|
1374
1525
|
};
|
1375
1526
|
|
1376
1527
|
|
1377
1528
|
/**
|
1378
|
-
*
|
1379
|
-
* @return {
|
1529
|
+
* optional CosmosMsgRedelegate redelegate = 4;
|
1530
|
+
* @return {?proto.CosmosMsgRedelegate}
|
1380
1531
|
*/
|
1381
|
-
proto.
|
1382
|
-
|
1383
|
-
|
1384
|
-
return writer.getResultBuffer();
|
1532
|
+
proto.CosmosMsgAck.prototype.getRedelegate = function() {
|
1533
|
+
return /** @type{?proto.CosmosMsgRedelegate} */ (
|
1534
|
+
jspb.Message.getWrapperField(this, proto.CosmosMsgRedelegate, 4));
|
1385
1535
|
};
|
1386
1536
|
|
1387
1537
|
|
1388
1538
|
/**
|
1389
|
-
*
|
1390
|
-
*
|
1391
|
-
|
1392
|
-
|
1393
|
-
|
1539
|
+
* @param {?proto.CosmosMsgRedelegate|undefined} value
|
1540
|
+
* @return {!proto.CosmosMsgAck} returns this
|
1541
|
+
*/
|
1542
|
+
proto.CosmosMsgAck.prototype.setRedelegate = function(value) {
|
1543
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
1544
|
+
};
|
1545
|
+
|
1546
|
+
|
1547
|
+
/**
|
1548
|
+
* Clears the message field making it undefined.
|
1549
|
+
* @return {!proto.CosmosMsgAck} returns this
|
1550
|
+
*/
|
1551
|
+
proto.CosmosMsgAck.prototype.clearRedelegate = function() {
|
1552
|
+
return this.setRedelegate(undefined);
|
1553
|
+
};
|
1554
|
+
|
1555
|
+
|
1556
|
+
/**
|
1557
|
+
* Returns whether this field is set.
|
1558
|
+
* @return {boolean}
|
1559
|
+
*/
|
1560
|
+
proto.CosmosMsgAck.prototype.hasRedelegate = function() {
|
1561
|
+
return jspb.Message.getField(this, 4) != null;
|
1562
|
+
};
|
1563
|
+
|
1564
|
+
|
1565
|
+
/**
|
1566
|
+
* optional CosmosMsgRewards rewards = 5;
|
1567
|
+
* @return {?proto.CosmosMsgRewards}
|
1568
|
+
*/
|
1569
|
+
proto.CosmosMsgAck.prototype.getRewards = function() {
|
1570
|
+
return /** @type{?proto.CosmosMsgRewards} */ (
|
1571
|
+
jspb.Message.getWrapperField(this, proto.CosmosMsgRewards, 5));
|
1572
|
+
};
|
1573
|
+
|
1574
|
+
|
1575
|
+
/**
|
1576
|
+
* @param {?proto.CosmosMsgRewards|undefined} value
|
1577
|
+
* @return {!proto.CosmosMsgAck} returns this
|
1578
|
+
*/
|
1579
|
+
proto.CosmosMsgAck.prototype.setRewards = function(value) {
|
1580
|
+
return jspb.Message.setWrapperField(this, 5, value);
|
1581
|
+
};
|
1582
|
+
|
1583
|
+
|
1584
|
+
/**
|
1585
|
+
* Clears the message field making it undefined.
|
1586
|
+
* @return {!proto.CosmosMsgAck} returns this
|
1587
|
+
*/
|
1588
|
+
proto.CosmosMsgAck.prototype.clearRewards = function() {
|
1589
|
+
return this.setRewards(undefined);
|
1590
|
+
};
|
1591
|
+
|
1592
|
+
|
1593
|
+
/**
|
1594
|
+
* Returns whether this field is set.
|
1595
|
+
* @return {boolean}
|
1596
|
+
*/
|
1597
|
+
proto.CosmosMsgAck.prototype.hasRewards = function() {
|
1598
|
+
return jspb.Message.getField(this, 5) != null;
|
1599
|
+
};
|
1600
|
+
|
1601
|
+
|
1602
|
+
/**
|
1603
|
+
* optional CosmosMsgIBCTransfer ibc_transfer = 6;
|
1604
|
+
* @return {?proto.CosmosMsgIBCTransfer}
|
1605
|
+
*/
|
1606
|
+
proto.CosmosMsgAck.prototype.getIbcTransfer = function() {
|
1607
|
+
return /** @type{?proto.CosmosMsgIBCTransfer} */ (
|
1608
|
+
jspb.Message.getWrapperField(this, proto.CosmosMsgIBCTransfer, 6));
|
1609
|
+
};
|
1610
|
+
|
1611
|
+
|
1612
|
+
/**
|
1613
|
+
* @param {?proto.CosmosMsgIBCTransfer|undefined} value
|
1614
|
+
* @return {!proto.CosmosMsgAck} returns this
|
1615
|
+
*/
|
1616
|
+
proto.CosmosMsgAck.prototype.setIbcTransfer = function(value) {
|
1617
|
+
return jspb.Message.setWrapperField(this, 6, value);
|
1618
|
+
};
|
1619
|
+
|
1620
|
+
|
1621
|
+
/**
|
1622
|
+
* Clears the message field making it undefined.
|
1623
|
+
* @return {!proto.CosmosMsgAck} returns this
|
1624
|
+
*/
|
1625
|
+
proto.CosmosMsgAck.prototype.clearIbcTransfer = function() {
|
1626
|
+
return this.setIbcTransfer(undefined);
|
1627
|
+
};
|
1628
|
+
|
1629
|
+
|
1630
|
+
/**
|
1631
|
+
* Returns whether this field is set.
|
1632
|
+
* @return {boolean}
|
1633
|
+
*/
|
1634
|
+
proto.CosmosMsgAck.prototype.hasIbcTransfer = function() {
|
1635
|
+
return jspb.Message.getField(this, 6) != null;
|
1636
|
+
};
|
1637
|
+
|
1638
|
+
|
1639
|
+
|
1640
|
+
|
1641
|
+
|
1642
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
1643
|
+
/**
|
1644
|
+
* Creates an object representation of this proto.
|
1645
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
1646
|
+
* Optional fields that are not set will be set to undefined.
|
1647
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
1648
|
+
* For the list of reserved names please see:
|
1649
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
1650
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
1651
|
+
* JSPB instance for transitional soy proto support:
|
1652
|
+
* http://goto/soy-param-migration
|
1653
|
+
* @return {!Object}
|
1654
|
+
*/
|
1655
|
+
proto.CosmosMsgSend.prototype.toObject = function(opt_includeInstance) {
|
1656
|
+
return proto.CosmosMsgSend.toObject(opt_includeInstance, this);
|
1657
|
+
};
|
1658
|
+
|
1659
|
+
|
1660
|
+
/**
|
1661
|
+
* Static version of the {@see toObject} method.
|
1662
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
1663
|
+
* the JSPB instance for transitional soy proto support:
|
1664
|
+
* http://goto/soy-param-migration
|
1665
|
+
* @param {!proto.CosmosMsgSend} msg The msg instance to transform.
|
1666
|
+
* @return {!Object}
|
1667
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1668
|
+
*/
|
1669
|
+
proto.CosmosMsgSend.toObject = function(includeInstance, msg) {
|
1670
|
+
var f, obj = {
|
1671
|
+
fromAddress: (f = jspb.Message.getField(msg, 6)) == null ? undefined : f,
|
1672
|
+
toAddress: (f = jspb.Message.getField(msg, 7)) == null ? undefined : f,
|
1673
|
+
amount: (f = jspb.Message.getField(msg, 8)) == null ? undefined : f,
|
1674
|
+
addressType: (f = jspb.Message.getField(msg, 9)) == null ? undefined : f,
|
1675
|
+
exchangeType: (f = msg.getExchangeType()) && types_pb.ExchangeType.toObject(includeInstance, f)
|
1676
|
+
};
|
1677
|
+
|
1678
|
+
if (includeInstance) {
|
1679
|
+
obj.$jspbMessageInstance = msg;
|
1680
|
+
}
|
1681
|
+
return obj;
|
1682
|
+
};
|
1683
|
+
}
|
1684
|
+
|
1685
|
+
|
1686
|
+
/**
|
1687
|
+
* Deserializes binary data (in protobuf wire format).
|
1688
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
1689
|
+
* @return {!proto.CosmosMsgSend}
|
1690
|
+
*/
|
1691
|
+
proto.CosmosMsgSend.deserializeBinary = function(bytes) {
|
1692
|
+
var reader = new jspb.BinaryReader(bytes);
|
1693
|
+
var msg = new proto.CosmosMsgSend;
|
1694
|
+
return proto.CosmosMsgSend.deserializeBinaryFromReader(msg, reader);
|
1695
|
+
};
|
1696
|
+
|
1697
|
+
|
1698
|
+
/**
|
1699
|
+
* Deserializes binary data (in protobuf wire format) from the
|
1700
|
+
* given reader into the given message object.
|
1701
|
+
* @param {!proto.CosmosMsgSend} msg The message object to deserialize into.
|
1702
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
1703
|
+
* @return {!proto.CosmosMsgSend}
|
1704
|
+
*/
|
1705
|
+
proto.CosmosMsgSend.deserializeBinaryFromReader = function(msg, reader) {
|
1706
|
+
while (reader.nextField()) {
|
1707
|
+
if (reader.isEndGroup()) {
|
1708
|
+
break;
|
1709
|
+
}
|
1710
|
+
var field = reader.getFieldNumber();
|
1711
|
+
switch (field) {
|
1712
|
+
case 6:
|
1713
|
+
var value = /** @type {string} */ (reader.readString());
|
1714
|
+
msg.setFromAddress(value);
|
1715
|
+
break;
|
1716
|
+
case 7:
|
1717
|
+
var value = /** @type {string} */ (reader.readString());
|
1718
|
+
msg.setToAddress(value);
|
1719
|
+
break;
|
1720
|
+
case 8:
|
1721
|
+
var value = /** @type {string} */ (reader.readUint64String());
|
1722
|
+
msg.setAmount(value);
|
1723
|
+
break;
|
1724
|
+
case 9:
|
1725
|
+
var value = /** @type {!proto.OutputAddressType} */ (reader.readEnum());
|
1726
|
+
msg.setAddressType(value);
|
1727
|
+
break;
|
1728
|
+
case 10:
|
1729
|
+
var value = new types_pb.ExchangeType;
|
1730
|
+
reader.readMessage(value,types_pb.ExchangeType.deserializeBinaryFromReader);
|
1731
|
+
msg.setExchangeType(value);
|
1732
|
+
break;
|
1733
|
+
default:
|
1734
|
+
reader.skipField();
|
1735
|
+
break;
|
1736
|
+
}
|
1737
|
+
}
|
1738
|
+
return msg;
|
1739
|
+
};
|
1740
|
+
|
1741
|
+
|
1742
|
+
/**
|
1743
|
+
* Serializes the message to binary data (in protobuf wire format).
|
1744
|
+
* @return {!Uint8Array}
|
1745
|
+
*/
|
1746
|
+
proto.CosmosMsgSend.prototype.serializeBinary = function() {
|
1747
|
+
var writer = new jspb.BinaryWriter();
|
1748
|
+
proto.CosmosMsgSend.serializeBinaryToWriter(this, writer);
|
1749
|
+
return writer.getResultBuffer();
|
1750
|
+
};
|
1751
|
+
|
1752
|
+
|
1753
|
+
/**
|
1754
|
+
* Serializes the given message to binary data (in protobuf wire
|
1755
|
+
* format), writing to the given BinaryWriter.
|
1756
|
+
* @param {!proto.CosmosMsgSend} message
|
1757
|
+
* @param {!jspb.BinaryWriter} writer
|
1758
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1394
1759
|
*/
|
1395
1760
|
proto.CosmosMsgSend.serializeBinaryToWriter = function(message, writer) {
|
1396
1761
|
var f = undefined;
|
@@ -1617,6 +1982,1514 @@ proto.CosmosMsgSend.prototype.hasExchangeType = function() {
|
|
1617
1982
|
|
1618
1983
|
|
1619
1984
|
|
1985
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
1986
|
+
/**
|
1987
|
+
* Creates an object representation of this proto.
|
1988
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
1989
|
+
* Optional fields that are not set will be set to undefined.
|
1990
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
1991
|
+
* For the list of reserved names please see:
|
1992
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
1993
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
1994
|
+
* JSPB instance for transitional soy proto support:
|
1995
|
+
* http://goto/soy-param-migration
|
1996
|
+
* @return {!Object}
|
1997
|
+
*/
|
1998
|
+
proto.CosmosMsgDelegate.prototype.toObject = function(opt_includeInstance) {
|
1999
|
+
return proto.CosmosMsgDelegate.toObject(opt_includeInstance, this);
|
2000
|
+
};
|
2001
|
+
|
2002
|
+
|
2003
|
+
/**
|
2004
|
+
* Static version of the {@see toObject} method.
|
2005
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
2006
|
+
* the JSPB instance for transitional soy proto support:
|
2007
|
+
* http://goto/soy-param-migration
|
2008
|
+
* @param {!proto.CosmosMsgDelegate} msg The msg instance to transform.
|
2009
|
+
* @return {!Object}
|
2010
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2011
|
+
*/
|
2012
|
+
proto.CosmosMsgDelegate.toObject = function(includeInstance, msg) {
|
2013
|
+
var f, obj = {
|
2014
|
+
delegatorAddress: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
|
2015
|
+
validatorAddress: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f,
|
2016
|
+
amount: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f
|
2017
|
+
};
|
2018
|
+
|
2019
|
+
if (includeInstance) {
|
2020
|
+
obj.$jspbMessageInstance = msg;
|
2021
|
+
}
|
2022
|
+
return obj;
|
2023
|
+
};
|
2024
|
+
}
|
2025
|
+
|
2026
|
+
|
2027
|
+
/**
|
2028
|
+
* Deserializes binary data (in protobuf wire format).
|
2029
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
2030
|
+
* @return {!proto.CosmosMsgDelegate}
|
2031
|
+
*/
|
2032
|
+
proto.CosmosMsgDelegate.deserializeBinary = function(bytes) {
|
2033
|
+
var reader = new jspb.BinaryReader(bytes);
|
2034
|
+
var msg = new proto.CosmosMsgDelegate;
|
2035
|
+
return proto.CosmosMsgDelegate.deserializeBinaryFromReader(msg, reader);
|
2036
|
+
};
|
2037
|
+
|
2038
|
+
|
2039
|
+
/**
|
2040
|
+
* Deserializes binary data (in protobuf wire format) from the
|
2041
|
+
* given reader into the given message object.
|
2042
|
+
* @param {!proto.CosmosMsgDelegate} msg The message object to deserialize into.
|
2043
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
2044
|
+
* @return {!proto.CosmosMsgDelegate}
|
2045
|
+
*/
|
2046
|
+
proto.CosmosMsgDelegate.deserializeBinaryFromReader = function(msg, reader) {
|
2047
|
+
while (reader.nextField()) {
|
2048
|
+
if (reader.isEndGroup()) {
|
2049
|
+
break;
|
2050
|
+
}
|
2051
|
+
var field = reader.getFieldNumber();
|
2052
|
+
switch (field) {
|
2053
|
+
case 1:
|
2054
|
+
var value = /** @type {string} */ (reader.readString());
|
2055
|
+
msg.setDelegatorAddress(value);
|
2056
|
+
break;
|
2057
|
+
case 2:
|
2058
|
+
var value = /** @type {string} */ (reader.readString());
|
2059
|
+
msg.setValidatorAddress(value);
|
2060
|
+
break;
|
2061
|
+
case 3:
|
2062
|
+
var value = /** @type {string} */ (reader.readUint64String());
|
2063
|
+
msg.setAmount(value);
|
2064
|
+
break;
|
2065
|
+
default:
|
2066
|
+
reader.skipField();
|
2067
|
+
break;
|
2068
|
+
}
|
2069
|
+
}
|
2070
|
+
return msg;
|
2071
|
+
};
|
2072
|
+
|
2073
|
+
|
2074
|
+
/**
|
2075
|
+
* Serializes the message to binary data (in protobuf wire format).
|
2076
|
+
* @return {!Uint8Array}
|
2077
|
+
*/
|
2078
|
+
proto.CosmosMsgDelegate.prototype.serializeBinary = function() {
|
2079
|
+
var writer = new jspb.BinaryWriter();
|
2080
|
+
proto.CosmosMsgDelegate.serializeBinaryToWriter(this, writer);
|
2081
|
+
return writer.getResultBuffer();
|
2082
|
+
};
|
2083
|
+
|
2084
|
+
|
2085
|
+
/**
|
2086
|
+
* Serializes the given message to binary data (in protobuf wire
|
2087
|
+
* format), writing to the given BinaryWriter.
|
2088
|
+
* @param {!proto.CosmosMsgDelegate} message
|
2089
|
+
* @param {!jspb.BinaryWriter} writer
|
2090
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2091
|
+
*/
|
2092
|
+
proto.CosmosMsgDelegate.serializeBinaryToWriter = function(message, writer) {
|
2093
|
+
var f = undefined;
|
2094
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 1));
|
2095
|
+
if (f != null) {
|
2096
|
+
writer.writeString(
|
2097
|
+
1,
|
2098
|
+
f
|
2099
|
+
);
|
2100
|
+
}
|
2101
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
2102
|
+
if (f != null) {
|
2103
|
+
writer.writeString(
|
2104
|
+
2,
|
2105
|
+
f
|
2106
|
+
);
|
2107
|
+
}
|
2108
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
2109
|
+
if (f != null) {
|
2110
|
+
writer.writeUint64String(
|
2111
|
+
3,
|
2112
|
+
f
|
2113
|
+
);
|
2114
|
+
}
|
2115
|
+
};
|
2116
|
+
|
2117
|
+
|
2118
|
+
/**
|
2119
|
+
* optional string delegator_address = 1;
|
2120
|
+
* @return {string}
|
2121
|
+
*/
|
2122
|
+
proto.CosmosMsgDelegate.prototype.getDelegatorAddress = function() {
|
2123
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
2124
|
+
};
|
2125
|
+
|
2126
|
+
|
2127
|
+
/**
|
2128
|
+
* @param {string} value
|
2129
|
+
* @return {!proto.CosmosMsgDelegate} returns this
|
2130
|
+
*/
|
2131
|
+
proto.CosmosMsgDelegate.prototype.setDelegatorAddress = function(value) {
|
2132
|
+
return jspb.Message.setField(this, 1, value);
|
2133
|
+
};
|
2134
|
+
|
2135
|
+
|
2136
|
+
/**
|
2137
|
+
* Clears the field making it undefined.
|
2138
|
+
* @return {!proto.CosmosMsgDelegate} returns this
|
2139
|
+
*/
|
2140
|
+
proto.CosmosMsgDelegate.prototype.clearDelegatorAddress = function() {
|
2141
|
+
return jspb.Message.setField(this, 1, undefined);
|
2142
|
+
};
|
2143
|
+
|
2144
|
+
|
2145
|
+
/**
|
2146
|
+
* Returns whether this field is set.
|
2147
|
+
* @return {boolean}
|
2148
|
+
*/
|
2149
|
+
proto.CosmosMsgDelegate.prototype.hasDelegatorAddress = function() {
|
2150
|
+
return jspb.Message.getField(this, 1) != null;
|
2151
|
+
};
|
2152
|
+
|
2153
|
+
|
2154
|
+
/**
|
2155
|
+
* optional string validator_address = 2;
|
2156
|
+
* @return {string}
|
2157
|
+
*/
|
2158
|
+
proto.CosmosMsgDelegate.prototype.getValidatorAddress = function() {
|
2159
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
2160
|
+
};
|
2161
|
+
|
2162
|
+
|
2163
|
+
/**
|
2164
|
+
* @param {string} value
|
2165
|
+
* @return {!proto.CosmosMsgDelegate} returns this
|
2166
|
+
*/
|
2167
|
+
proto.CosmosMsgDelegate.prototype.setValidatorAddress = function(value) {
|
2168
|
+
return jspb.Message.setField(this, 2, value);
|
2169
|
+
};
|
2170
|
+
|
2171
|
+
|
2172
|
+
/**
|
2173
|
+
* Clears the field making it undefined.
|
2174
|
+
* @return {!proto.CosmosMsgDelegate} returns this
|
2175
|
+
*/
|
2176
|
+
proto.CosmosMsgDelegate.prototype.clearValidatorAddress = function() {
|
2177
|
+
return jspb.Message.setField(this, 2, undefined);
|
2178
|
+
};
|
2179
|
+
|
2180
|
+
|
2181
|
+
/**
|
2182
|
+
* Returns whether this field is set.
|
2183
|
+
* @return {boolean}
|
2184
|
+
*/
|
2185
|
+
proto.CosmosMsgDelegate.prototype.hasValidatorAddress = function() {
|
2186
|
+
return jspb.Message.getField(this, 2) != null;
|
2187
|
+
};
|
2188
|
+
|
2189
|
+
|
2190
|
+
/**
|
2191
|
+
* optional uint64 amount = 3;
|
2192
|
+
* @return {string}
|
2193
|
+
*/
|
2194
|
+
proto.CosmosMsgDelegate.prototype.getAmount = function() {
|
2195
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "0"));
|
2196
|
+
};
|
2197
|
+
|
2198
|
+
|
2199
|
+
/**
|
2200
|
+
* @param {string} value
|
2201
|
+
* @return {!proto.CosmosMsgDelegate} returns this
|
2202
|
+
*/
|
2203
|
+
proto.CosmosMsgDelegate.prototype.setAmount = function(value) {
|
2204
|
+
return jspb.Message.setField(this, 3, value);
|
2205
|
+
};
|
2206
|
+
|
2207
|
+
|
2208
|
+
/**
|
2209
|
+
* Clears the field making it undefined.
|
2210
|
+
* @return {!proto.CosmosMsgDelegate} returns this
|
2211
|
+
*/
|
2212
|
+
proto.CosmosMsgDelegate.prototype.clearAmount = function() {
|
2213
|
+
return jspb.Message.setField(this, 3, undefined);
|
2214
|
+
};
|
2215
|
+
|
2216
|
+
|
2217
|
+
/**
|
2218
|
+
* Returns whether this field is set.
|
2219
|
+
* @return {boolean}
|
2220
|
+
*/
|
2221
|
+
proto.CosmosMsgDelegate.prototype.hasAmount = function() {
|
2222
|
+
return jspb.Message.getField(this, 3) != null;
|
2223
|
+
};
|
2224
|
+
|
2225
|
+
|
2226
|
+
|
2227
|
+
|
2228
|
+
|
2229
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
2230
|
+
/**
|
2231
|
+
* Creates an object representation of this proto.
|
2232
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
2233
|
+
* Optional fields that are not set will be set to undefined.
|
2234
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
2235
|
+
* For the list of reserved names please see:
|
2236
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
2237
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
2238
|
+
* JSPB instance for transitional soy proto support:
|
2239
|
+
* http://goto/soy-param-migration
|
2240
|
+
* @return {!Object}
|
2241
|
+
*/
|
2242
|
+
proto.CosmosMsgUndelegate.prototype.toObject = function(opt_includeInstance) {
|
2243
|
+
return proto.CosmosMsgUndelegate.toObject(opt_includeInstance, this);
|
2244
|
+
};
|
2245
|
+
|
2246
|
+
|
2247
|
+
/**
|
2248
|
+
* Static version of the {@see toObject} method.
|
2249
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
2250
|
+
* the JSPB instance for transitional soy proto support:
|
2251
|
+
* http://goto/soy-param-migration
|
2252
|
+
* @param {!proto.CosmosMsgUndelegate} msg The msg instance to transform.
|
2253
|
+
* @return {!Object}
|
2254
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2255
|
+
*/
|
2256
|
+
proto.CosmosMsgUndelegate.toObject = function(includeInstance, msg) {
|
2257
|
+
var f, obj = {
|
2258
|
+
delegatorAddress: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
|
2259
|
+
validatorAddress: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f,
|
2260
|
+
amount: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f
|
2261
|
+
};
|
2262
|
+
|
2263
|
+
if (includeInstance) {
|
2264
|
+
obj.$jspbMessageInstance = msg;
|
2265
|
+
}
|
2266
|
+
return obj;
|
2267
|
+
};
|
2268
|
+
}
|
2269
|
+
|
2270
|
+
|
2271
|
+
/**
|
2272
|
+
* Deserializes binary data (in protobuf wire format).
|
2273
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
2274
|
+
* @return {!proto.CosmosMsgUndelegate}
|
2275
|
+
*/
|
2276
|
+
proto.CosmosMsgUndelegate.deserializeBinary = function(bytes) {
|
2277
|
+
var reader = new jspb.BinaryReader(bytes);
|
2278
|
+
var msg = new proto.CosmosMsgUndelegate;
|
2279
|
+
return proto.CosmosMsgUndelegate.deserializeBinaryFromReader(msg, reader);
|
2280
|
+
};
|
2281
|
+
|
2282
|
+
|
2283
|
+
/**
|
2284
|
+
* Deserializes binary data (in protobuf wire format) from the
|
2285
|
+
* given reader into the given message object.
|
2286
|
+
* @param {!proto.CosmosMsgUndelegate} msg The message object to deserialize into.
|
2287
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
2288
|
+
* @return {!proto.CosmosMsgUndelegate}
|
2289
|
+
*/
|
2290
|
+
proto.CosmosMsgUndelegate.deserializeBinaryFromReader = function(msg, reader) {
|
2291
|
+
while (reader.nextField()) {
|
2292
|
+
if (reader.isEndGroup()) {
|
2293
|
+
break;
|
2294
|
+
}
|
2295
|
+
var field = reader.getFieldNumber();
|
2296
|
+
switch (field) {
|
2297
|
+
case 1:
|
2298
|
+
var value = /** @type {string} */ (reader.readString());
|
2299
|
+
msg.setDelegatorAddress(value);
|
2300
|
+
break;
|
2301
|
+
case 2:
|
2302
|
+
var value = /** @type {string} */ (reader.readString());
|
2303
|
+
msg.setValidatorAddress(value);
|
2304
|
+
break;
|
2305
|
+
case 3:
|
2306
|
+
var value = /** @type {string} */ (reader.readUint64String());
|
2307
|
+
msg.setAmount(value);
|
2308
|
+
break;
|
2309
|
+
default:
|
2310
|
+
reader.skipField();
|
2311
|
+
break;
|
2312
|
+
}
|
2313
|
+
}
|
2314
|
+
return msg;
|
2315
|
+
};
|
2316
|
+
|
2317
|
+
|
2318
|
+
/**
|
2319
|
+
* Serializes the message to binary data (in protobuf wire format).
|
2320
|
+
* @return {!Uint8Array}
|
2321
|
+
*/
|
2322
|
+
proto.CosmosMsgUndelegate.prototype.serializeBinary = function() {
|
2323
|
+
var writer = new jspb.BinaryWriter();
|
2324
|
+
proto.CosmosMsgUndelegate.serializeBinaryToWriter(this, writer);
|
2325
|
+
return writer.getResultBuffer();
|
2326
|
+
};
|
2327
|
+
|
2328
|
+
|
2329
|
+
/**
|
2330
|
+
* Serializes the given message to binary data (in protobuf wire
|
2331
|
+
* format), writing to the given BinaryWriter.
|
2332
|
+
* @param {!proto.CosmosMsgUndelegate} message
|
2333
|
+
* @param {!jspb.BinaryWriter} writer
|
2334
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2335
|
+
*/
|
2336
|
+
proto.CosmosMsgUndelegate.serializeBinaryToWriter = function(message, writer) {
|
2337
|
+
var f = undefined;
|
2338
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 1));
|
2339
|
+
if (f != null) {
|
2340
|
+
writer.writeString(
|
2341
|
+
1,
|
2342
|
+
f
|
2343
|
+
);
|
2344
|
+
}
|
2345
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
2346
|
+
if (f != null) {
|
2347
|
+
writer.writeString(
|
2348
|
+
2,
|
2349
|
+
f
|
2350
|
+
);
|
2351
|
+
}
|
2352
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
2353
|
+
if (f != null) {
|
2354
|
+
writer.writeUint64String(
|
2355
|
+
3,
|
2356
|
+
f
|
2357
|
+
);
|
2358
|
+
}
|
2359
|
+
};
|
2360
|
+
|
2361
|
+
|
2362
|
+
/**
|
2363
|
+
* optional string delegator_address = 1;
|
2364
|
+
* @return {string}
|
2365
|
+
*/
|
2366
|
+
proto.CosmosMsgUndelegate.prototype.getDelegatorAddress = function() {
|
2367
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
2368
|
+
};
|
2369
|
+
|
2370
|
+
|
2371
|
+
/**
|
2372
|
+
* @param {string} value
|
2373
|
+
* @return {!proto.CosmosMsgUndelegate} returns this
|
2374
|
+
*/
|
2375
|
+
proto.CosmosMsgUndelegate.prototype.setDelegatorAddress = function(value) {
|
2376
|
+
return jspb.Message.setField(this, 1, value);
|
2377
|
+
};
|
2378
|
+
|
2379
|
+
|
2380
|
+
/**
|
2381
|
+
* Clears the field making it undefined.
|
2382
|
+
* @return {!proto.CosmosMsgUndelegate} returns this
|
2383
|
+
*/
|
2384
|
+
proto.CosmosMsgUndelegate.prototype.clearDelegatorAddress = function() {
|
2385
|
+
return jspb.Message.setField(this, 1, undefined);
|
2386
|
+
};
|
2387
|
+
|
2388
|
+
|
2389
|
+
/**
|
2390
|
+
* Returns whether this field is set.
|
2391
|
+
* @return {boolean}
|
2392
|
+
*/
|
2393
|
+
proto.CosmosMsgUndelegate.prototype.hasDelegatorAddress = function() {
|
2394
|
+
return jspb.Message.getField(this, 1) != null;
|
2395
|
+
};
|
2396
|
+
|
2397
|
+
|
2398
|
+
/**
|
2399
|
+
* optional string validator_address = 2;
|
2400
|
+
* @return {string}
|
2401
|
+
*/
|
2402
|
+
proto.CosmosMsgUndelegate.prototype.getValidatorAddress = function() {
|
2403
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
2404
|
+
};
|
2405
|
+
|
2406
|
+
|
2407
|
+
/**
|
2408
|
+
* @param {string} value
|
2409
|
+
* @return {!proto.CosmosMsgUndelegate} returns this
|
2410
|
+
*/
|
2411
|
+
proto.CosmosMsgUndelegate.prototype.setValidatorAddress = function(value) {
|
2412
|
+
return jspb.Message.setField(this, 2, value);
|
2413
|
+
};
|
2414
|
+
|
2415
|
+
|
2416
|
+
/**
|
2417
|
+
* Clears the field making it undefined.
|
2418
|
+
* @return {!proto.CosmosMsgUndelegate} returns this
|
2419
|
+
*/
|
2420
|
+
proto.CosmosMsgUndelegate.prototype.clearValidatorAddress = function() {
|
2421
|
+
return jspb.Message.setField(this, 2, undefined);
|
2422
|
+
};
|
2423
|
+
|
2424
|
+
|
2425
|
+
/**
|
2426
|
+
* Returns whether this field is set.
|
2427
|
+
* @return {boolean}
|
2428
|
+
*/
|
2429
|
+
proto.CosmosMsgUndelegate.prototype.hasValidatorAddress = function() {
|
2430
|
+
return jspb.Message.getField(this, 2) != null;
|
2431
|
+
};
|
2432
|
+
|
2433
|
+
|
2434
|
+
/**
|
2435
|
+
* optional uint64 amount = 3;
|
2436
|
+
* @return {string}
|
2437
|
+
*/
|
2438
|
+
proto.CosmosMsgUndelegate.prototype.getAmount = function() {
|
2439
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "0"));
|
2440
|
+
};
|
2441
|
+
|
2442
|
+
|
2443
|
+
/**
|
2444
|
+
* @param {string} value
|
2445
|
+
* @return {!proto.CosmosMsgUndelegate} returns this
|
2446
|
+
*/
|
2447
|
+
proto.CosmosMsgUndelegate.prototype.setAmount = function(value) {
|
2448
|
+
return jspb.Message.setField(this, 3, value);
|
2449
|
+
};
|
2450
|
+
|
2451
|
+
|
2452
|
+
/**
|
2453
|
+
* Clears the field making it undefined.
|
2454
|
+
* @return {!proto.CosmosMsgUndelegate} returns this
|
2455
|
+
*/
|
2456
|
+
proto.CosmosMsgUndelegate.prototype.clearAmount = function() {
|
2457
|
+
return jspb.Message.setField(this, 3, undefined);
|
2458
|
+
};
|
2459
|
+
|
2460
|
+
|
2461
|
+
/**
|
2462
|
+
* Returns whether this field is set.
|
2463
|
+
* @return {boolean}
|
2464
|
+
*/
|
2465
|
+
proto.CosmosMsgUndelegate.prototype.hasAmount = function() {
|
2466
|
+
return jspb.Message.getField(this, 3) != null;
|
2467
|
+
};
|
2468
|
+
|
2469
|
+
|
2470
|
+
|
2471
|
+
|
2472
|
+
|
2473
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
2474
|
+
/**
|
2475
|
+
* Creates an object representation of this proto.
|
2476
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
2477
|
+
* Optional fields that are not set will be set to undefined.
|
2478
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
2479
|
+
* For the list of reserved names please see:
|
2480
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
2481
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
2482
|
+
* JSPB instance for transitional soy proto support:
|
2483
|
+
* http://goto/soy-param-migration
|
2484
|
+
* @return {!Object}
|
2485
|
+
*/
|
2486
|
+
proto.CosmosMsgRedelegate.prototype.toObject = function(opt_includeInstance) {
|
2487
|
+
return proto.CosmosMsgRedelegate.toObject(opt_includeInstance, this);
|
2488
|
+
};
|
2489
|
+
|
2490
|
+
|
2491
|
+
/**
|
2492
|
+
* Static version of the {@see toObject} method.
|
2493
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
2494
|
+
* the JSPB instance for transitional soy proto support:
|
2495
|
+
* http://goto/soy-param-migration
|
2496
|
+
* @param {!proto.CosmosMsgRedelegate} msg The msg instance to transform.
|
2497
|
+
* @return {!Object}
|
2498
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2499
|
+
*/
|
2500
|
+
proto.CosmosMsgRedelegate.toObject = function(includeInstance, msg) {
|
2501
|
+
var f, obj = {
|
2502
|
+
delegatorAddress: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
|
2503
|
+
validatorSrcAddress: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f,
|
2504
|
+
validatorDstAddress: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f,
|
2505
|
+
amount: (f = jspb.Message.getField(msg, 4)) == null ? undefined : f
|
2506
|
+
};
|
2507
|
+
|
2508
|
+
if (includeInstance) {
|
2509
|
+
obj.$jspbMessageInstance = msg;
|
2510
|
+
}
|
2511
|
+
return obj;
|
2512
|
+
};
|
2513
|
+
}
|
2514
|
+
|
2515
|
+
|
2516
|
+
/**
|
2517
|
+
* Deserializes binary data (in protobuf wire format).
|
2518
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
2519
|
+
* @return {!proto.CosmosMsgRedelegate}
|
2520
|
+
*/
|
2521
|
+
proto.CosmosMsgRedelegate.deserializeBinary = function(bytes) {
|
2522
|
+
var reader = new jspb.BinaryReader(bytes);
|
2523
|
+
var msg = new proto.CosmosMsgRedelegate;
|
2524
|
+
return proto.CosmosMsgRedelegate.deserializeBinaryFromReader(msg, reader);
|
2525
|
+
};
|
2526
|
+
|
2527
|
+
|
2528
|
+
/**
|
2529
|
+
* Deserializes binary data (in protobuf wire format) from the
|
2530
|
+
* given reader into the given message object.
|
2531
|
+
* @param {!proto.CosmosMsgRedelegate} msg The message object to deserialize into.
|
2532
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
2533
|
+
* @return {!proto.CosmosMsgRedelegate}
|
2534
|
+
*/
|
2535
|
+
proto.CosmosMsgRedelegate.deserializeBinaryFromReader = function(msg, reader) {
|
2536
|
+
while (reader.nextField()) {
|
2537
|
+
if (reader.isEndGroup()) {
|
2538
|
+
break;
|
2539
|
+
}
|
2540
|
+
var field = reader.getFieldNumber();
|
2541
|
+
switch (field) {
|
2542
|
+
case 1:
|
2543
|
+
var value = /** @type {string} */ (reader.readString());
|
2544
|
+
msg.setDelegatorAddress(value);
|
2545
|
+
break;
|
2546
|
+
case 2:
|
2547
|
+
var value = /** @type {string} */ (reader.readString());
|
2548
|
+
msg.setValidatorSrcAddress(value);
|
2549
|
+
break;
|
2550
|
+
case 3:
|
2551
|
+
var value = /** @type {string} */ (reader.readString());
|
2552
|
+
msg.setValidatorDstAddress(value);
|
2553
|
+
break;
|
2554
|
+
case 4:
|
2555
|
+
var value = /** @type {string} */ (reader.readUint64String());
|
2556
|
+
msg.setAmount(value);
|
2557
|
+
break;
|
2558
|
+
default:
|
2559
|
+
reader.skipField();
|
2560
|
+
break;
|
2561
|
+
}
|
2562
|
+
}
|
2563
|
+
return msg;
|
2564
|
+
};
|
2565
|
+
|
2566
|
+
|
2567
|
+
/**
|
2568
|
+
* Serializes the message to binary data (in protobuf wire format).
|
2569
|
+
* @return {!Uint8Array}
|
2570
|
+
*/
|
2571
|
+
proto.CosmosMsgRedelegate.prototype.serializeBinary = function() {
|
2572
|
+
var writer = new jspb.BinaryWriter();
|
2573
|
+
proto.CosmosMsgRedelegate.serializeBinaryToWriter(this, writer);
|
2574
|
+
return writer.getResultBuffer();
|
2575
|
+
};
|
2576
|
+
|
2577
|
+
|
2578
|
+
/**
|
2579
|
+
* Serializes the given message to binary data (in protobuf wire
|
2580
|
+
* format), writing to the given BinaryWriter.
|
2581
|
+
* @param {!proto.CosmosMsgRedelegate} message
|
2582
|
+
* @param {!jspb.BinaryWriter} writer
|
2583
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2584
|
+
*/
|
2585
|
+
proto.CosmosMsgRedelegate.serializeBinaryToWriter = function(message, writer) {
|
2586
|
+
var f = undefined;
|
2587
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 1));
|
2588
|
+
if (f != null) {
|
2589
|
+
writer.writeString(
|
2590
|
+
1,
|
2591
|
+
f
|
2592
|
+
);
|
2593
|
+
}
|
2594
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
2595
|
+
if (f != null) {
|
2596
|
+
writer.writeString(
|
2597
|
+
2,
|
2598
|
+
f
|
2599
|
+
);
|
2600
|
+
}
|
2601
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
2602
|
+
if (f != null) {
|
2603
|
+
writer.writeString(
|
2604
|
+
3,
|
2605
|
+
f
|
2606
|
+
);
|
2607
|
+
}
|
2608
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
2609
|
+
if (f != null) {
|
2610
|
+
writer.writeUint64String(
|
2611
|
+
4,
|
2612
|
+
f
|
2613
|
+
);
|
2614
|
+
}
|
2615
|
+
};
|
2616
|
+
|
2617
|
+
|
2618
|
+
/**
|
2619
|
+
* optional string delegator_address = 1;
|
2620
|
+
* @return {string}
|
2621
|
+
*/
|
2622
|
+
proto.CosmosMsgRedelegate.prototype.getDelegatorAddress = function() {
|
2623
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
2624
|
+
};
|
2625
|
+
|
2626
|
+
|
2627
|
+
/**
|
2628
|
+
* @param {string} value
|
2629
|
+
* @return {!proto.CosmosMsgRedelegate} returns this
|
2630
|
+
*/
|
2631
|
+
proto.CosmosMsgRedelegate.prototype.setDelegatorAddress = function(value) {
|
2632
|
+
return jspb.Message.setField(this, 1, value);
|
2633
|
+
};
|
2634
|
+
|
2635
|
+
|
2636
|
+
/**
|
2637
|
+
* Clears the field making it undefined.
|
2638
|
+
* @return {!proto.CosmosMsgRedelegate} returns this
|
2639
|
+
*/
|
2640
|
+
proto.CosmosMsgRedelegate.prototype.clearDelegatorAddress = function() {
|
2641
|
+
return jspb.Message.setField(this, 1, undefined);
|
2642
|
+
};
|
2643
|
+
|
2644
|
+
|
2645
|
+
/**
|
2646
|
+
* Returns whether this field is set.
|
2647
|
+
* @return {boolean}
|
2648
|
+
*/
|
2649
|
+
proto.CosmosMsgRedelegate.prototype.hasDelegatorAddress = function() {
|
2650
|
+
return jspb.Message.getField(this, 1) != null;
|
2651
|
+
};
|
2652
|
+
|
2653
|
+
|
2654
|
+
/**
|
2655
|
+
* optional string validator_src_address = 2;
|
2656
|
+
* @return {string}
|
2657
|
+
*/
|
2658
|
+
proto.CosmosMsgRedelegate.prototype.getValidatorSrcAddress = function() {
|
2659
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
2660
|
+
};
|
2661
|
+
|
2662
|
+
|
2663
|
+
/**
|
2664
|
+
* @param {string} value
|
2665
|
+
* @return {!proto.CosmosMsgRedelegate} returns this
|
2666
|
+
*/
|
2667
|
+
proto.CosmosMsgRedelegate.prototype.setValidatorSrcAddress = function(value) {
|
2668
|
+
return jspb.Message.setField(this, 2, value);
|
2669
|
+
};
|
2670
|
+
|
2671
|
+
|
2672
|
+
/**
|
2673
|
+
* Clears the field making it undefined.
|
2674
|
+
* @return {!proto.CosmosMsgRedelegate} returns this
|
2675
|
+
*/
|
2676
|
+
proto.CosmosMsgRedelegate.prototype.clearValidatorSrcAddress = function() {
|
2677
|
+
return jspb.Message.setField(this, 2, undefined);
|
2678
|
+
};
|
2679
|
+
|
2680
|
+
|
2681
|
+
/**
|
2682
|
+
* Returns whether this field is set.
|
2683
|
+
* @return {boolean}
|
2684
|
+
*/
|
2685
|
+
proto.CosmosMsgRedelegate.prototype.hasValidatorSrcAddress = function() {
|
2686
|
+
return jspb.Message.getField(this, 2) != null;
|
2687
|
+
};
|
2688
|
+
|
2689
|
+
|
2690
|
+
/**
|
2691
|
+
* optional string validator_dst_address = 3;
|
2692
|
+
* @return {string}
|
2693
|
+
*/
|
2694
|
+
proto.CosmosMsgRedelegate.prototype.getValidatorDstAddress = function() {
|
2695
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
2696
|
+
};
|
2697
|
+
|
2698
|
+
|
2699
|
+
/**
|
2700
|
+
* @param {string} value
|
2701
|
+
* @return {!proto.CosmosMsgRedelegate} returns this
|
2702
|
+
*/
|
2703
|
+
proto.CosmosMsgRedelegate.prototype.setValidatorDstAddress = function(value) {
|
2704
|
+
return jspb.Message.setField(this, 3, value);
|
2705
|
+
};
|
2706
|
+
|
2707
|
+
|
2708
|
+
/**
|
2709
|
+
* Clears the field making it undefined.
|
2710
|
+
* @return {!proto.CosmosMsgRedelegate} returns this
|
2711
|
+
*/
|
2712
|
+
proto.CosmosMsgRedelegate.prototype.clearValidatorDstAddress = function() {
|
2713
|
+
return jspb.Message.setField(this, 3, undefined);
|
2714
|
+
};
|
2715
|
+
|
2716
|
+
|
2717
|
+
/**
|
2718
|
+
* Returns whether this field is set.
|
2719
|
+
* @return {boolean}
|
2720
|
+
*/
|
2721
|
+
proto.CosmosMsgRedelegate.prototype.hasValidatorDstAddress = function() {
|
2722
|
+
return jspb.Message.getField(this, 3) != null;
|
2723
|
+
};
|
2724
|
+
|
2725
|
+
|
2726
|
+
/**
|
2727
|
+
* optional uint64 amount = 4;
|
2728
|
+
* @return {string}
|
2729
|
+
*/
|
2730
|
+
proto.CosmosMsgRedelegate.prototype.getAmount = function() {
|
2731
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "0"));
|
2732
|
+
};
|
2733
|
+
|
2734
|
+
|
2735
|
+
/**
|
2736
|
+
* @param {string} value
|
2737
|
+
* @return {!proto.CosmosMsgRedelegate} returns this
|
2738
|
+
*/
|
2739
|
+
proto.CosmosMsgRedelegate.prototype.setAmount = function(value) {
|
2740
|
+
return jspb.Message.setField(this, 4, value);
|
2741
|
+
};
|
2742
|
+
|
2743
|
+
|
2744
|
+
/**
|
2745
|
+
* Clears the field making it undefined.
|
2746
|
+
* @return {!proto.CosmosMsgRedelegate} returns this
|
2747
|
+
*/
|
2748
|
+
proto.CosmosMsgRedelegate.prototype.clearAmount = function() {
|
2749
|
+
return jspb.Message.setField(this, 4, undefined);
|
2750
|
+
};
|
2751
|
+
|
2752
|
+
|
2753
|
+
/**
|
2754
|
+
* Returns whether this field is set.
|
2755
|
+
* @return {boolean}
|
2756
|
+
*/
|
2757
|
+
proto.CosmosMsgRedelegate.prototype.hasAmount = function() {
|
2758
|
+
return jspb.Message.getField(this, 4) != null;
|
2759
|
+
};
|
2760
|
+
|
2761
|
+
|
2762
|
+
|
2763
|
+
|
2764
|
+
|
2765
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
2766
|
+
/**
|
2767
|
+
* Creates an object representation of this proto.
|
2768
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
2769
|
+
* Optional fields that are not set will be set to undefined.
|
2770
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
2771
|
+
* For the list of reserved names please see:
|
2772
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
2773
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
2774
|
+
* JSPB instance for transitional soy proto support:
|
2775
|
+
* http://goto/soy-param-migration
|
2776
|
+
* @return {!Object}
|
2777
|
+
*/
|
2778
|
+
proto.CosmosMsgRewards.prototype.toObject = function(opt_includeInstance) {
|
2779
|
+
return proto.CosmosMsgRewards.toObject(opt_includeInstance, this);
|
2780
|
+
};
|
2781
|
+
|
2782
|
+
|
2783
|
+
/**
|
2784
|
+
* Static version of the {@see toObject} method.
|
2785
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
2786
|
+
* the JSPB instance for transitional soy proto support:
|
2787
|
+
* http://goto/soy-param-migration
|
2788
|
+
* @param {!proto.CosmosMsgRewards} msg The msg instance to transform.
|
2789
|
+
* @return {!Object}
|
2790
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2791
|
+
*/
|
2792
|
+
proto.CosmosMsgRewards.toObject = function(includeInstance, msg) {
|
2793
|
+
var f, obj = {
|
2794
|
+
delegatorAddress: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
|
2795
|
+
validatorAddress: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f,
|
2796
|
+
amount: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f
|
2797
|
+
};
|
2798
|
+
|
2799
|
+
if (includeInstance) {
|
2800
|
+
obj.$jspbMessageInstance = msg;
|
2801
|
+
}
|
2802
|
+
return obj;
|
2803
|
+
};
|
2804
|
+
}
|
2805
|
+
|
2806
|
+
|
2807
|
+
/**
|
2808
|
+
* Deserializes binary data (in protobuf wire format).
|
2809
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
2810
|
+
* @return {!proto.CosmosMsgRewards}
|
2811
|
+
*/
|
2812
|
+
proto.CosmosMsgRewards.deserializeBinary = function(bytes) {
|
2813
|
+
var reader = new jspb.BinaryReader(bytes);
|
2814
|
+
var msg = new proto.CosmosMsgRewards;
|
2815
|
+
return proto.CosmosMsgRewards.deserializeBinaryFromReader(msg, reader);
|
2816
|
+
};
|
2817
|
+
|
2818
|
+
|
2819
|
+
/**
|
2820
|
+
* Deserializes binary data (in protobuf wire format) from the
|
2821
|
+
* given reader into the given message object.
|
2822
|
+
* @param {!proto.CosmosMsgRewards} msg The message object to deserialize into.
|
2823
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
2824
|
+
* @return {!proto.CosmosMsgRewards}
|
2825
|
+
*/
|
2826
|
+
proto.CosmosMsgRewards.deserializeBinaryFromReader = function(msg, reader) {
|
2827
|
+
while (reader.nextField()) {
|
2828
|
+
if (reader.isEndGroup()) {
|
2829
|
+
break;
|
2830
|
+
}
|
2831
|
+
var field = reader.getFieldNumber();
|
2832
|
+
switch (field) {
|
2833
|
+
case 1:
|
2834
|
+
var value = /** @type {string} */ (reader.readString());
|
2835
|
+
msg.setDelegatorAddress(value);
|
2836
|
+
break;
|
2837
|
+
case 2:
|
2838
|
+
var value = /** @type {string} */ (reader.readString());
|
2839
|
+
msg.setValidatorAddress(value);
|
2840
|
+
break;
|
2841
|
+
case 3:
|
2842
|
+
var value = /** @type {string} */ (reader.readUint64String());
|
2843
|
+
msg.setAmount(value);
|
2844
|
+
break;
|
2845
|
+
default:
|
2846
|
+
reader.skipField();
|
2847
|
+
break;
|
2848
|
+
}
|
2849
|
+
}
|
2850
|
+
return msg;
|
2851
|
+
};
|
2852
|
+
|
2853
|
+
|
2854
|
+
/**
|
2855
|
+
* Serializes the message to binary data (in protobuf wire format).
|
2856
|
+
* @return {!Uint8Array}
|
2857
|
+
*/
|
2858
|
+
proto.CosmosMsgRewards.prototype.serializeBinary = function() {
|
2859
|
+
var writer = new jspb.BinaryWriter();
|
2860
|
+
proto.CosmosMsgRewards.serializeBinaryToWriter(this, writer);
|
2861
|
+
return writer.getResultBuffer();
|
2862
|
+
};
|
2863
|
+
|
2864
|
+
|
2865
|
+
/**
|
2866
|
+
* Serializes the given message to binary data (in protobuf wire
|
2867
|
+
* format), writing to the given BinaryWriter.
|
2868
|
+
* @param {!proto.CosmosMsgRewards} message
|
2869
|
+
* @param {!jspb.BinaryWriter} writer
|
2870
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2871
|
+
*/
|
2872
|
+
proto.CosmosMsgRewards.serializeBinaryToWriter = function(message, writer) {
|
2873
|
+
var f = undefined;
|
2874
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 1));
|
2875
|
+
if (f != null) {
|
2876
|
+
writer.writeString(
|
2877
|
+
1,
|
2878
|
+
f
|
2879
|
+
);
|
2880
|
+
}
|
2881
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
2882
|
+
if (f != null) {
|
2883
|
+
writer.writeString(
|
2884
|
+
2,
|
2885
|
+
f
|
2886
|
+
);
|
2887
|
+
}
|
2888
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
2889
|
+
if (f != null) {
|
2890
|
+
writer.writeUint64String(
|
2891
|
+
3,
|
2892
|
+
f
|
2893
|
+
);
|
2894
|
+
}
|
2895
|
+
};
|
2896
|
+
|
2897
|
+
|
2898
|
+
/**
|
2899
|
+
* optional string delegator_address = 1;
|
2900
|
+
* @return {string}
|
2901
|
+
*/
|
2902
|
+
proto.CosmosMsgRewards.prototype.getDelegatorAddress = function() {
|
2903
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
2904
|
+
};
|
2905
|
+
|
2906
|
+
|
2907
|
+
/**
|
2908
|
+
* @param {string} value
|
2909
|
+
* @return {!proto.CosmosMsgRewards} returns this
|
2910
|
+
*/
|
2911
|
+
proto.CosmosMsgRewards.prototype.setDelegatorAddress = function(value) {
|
2912
|
+
return jspb.Message.setField(this, 1, value);
|
2913
|
+
};
|
2914
|
+
|
2915
|
+
|
2916
|
+
/**
|
2917
|
+
* Clears the field making it undefined.
|
2918
|
+
* @return {!proto.CosmosMsgRewards} returns this
|
2919
|
+
*/
|
2920
|
+
proto.CosmosMsgRewards.prototype.clearDelegatorAddress = function() {
|
2921
|
+
return jspb.Message.setField(this, 1, undefined);
|
2922
|
+
};
|
2923
|
+
|
2924
|
+
|
2925
|
+
/**
|
2926
|
+
* Returns whether this field is set.
|
2927
|
+
* @return {boolean}
|
2928
|
+
*/
|
2929
|
+
proto.CosmosMsgRewards.prototype.hasDelegatorAddress = function() {
|
2930
|
+
return jspb.Message.getField(this, 1) != null;
|
2931
|
+
};
|
2932
|
+
|
2933
|
+
|
2934
|
+
/**
|
2935
|
+
* optional string validator_address = 2;
|
2936
|
+
* @return {string}
|
2937
|
+
*/
|
2938
|
+
proto.CosmosMsgRewards.prototype.getValidatorAddress = function() {
|
2939
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
2940
|
+
};
|
2941
|
+
|
2942
|
+
|
2943
|
+
/**
|
2944
|
+
* @param {string} value
|
2945
|
+
* @return {!proto.CosmosMsgRewards} returns this
|
2946
|
+
*/
|
2947
|
+
proto.CosmosMsgRewards.prototype.setValidatorAddress = function(value) {
|
2948
|
+
return jspb.Message.setField(this, 2, value);
|
2949
|
+
};
|
2950
|
+
|
2951
|
+
|
2952
|
+
/**
|
2953
|
+
* Clears the field making it undefined.
|
2954
|
+
* @return {!proto.CosmosMsgRewards} returns this
|
2955
|
+
*/
|
2956
|
+
proto.CosmosMsgRewards.prototype.clearValidatorAddress = function() {
|
2957
|
+
return jspb.Message.setField(this, 2, undefined);
|
2958
|
+
};
|
2959
|
+
|
2960
|
+
|
2961
|
+
/**
|
2962
|
+
* Returns whether this field is set.
|
2963
|
+
* @return {boolean}
|
2964
|
+
*/
|
2965
|
+
proto.CosmosMsgRewards.prototype.hasValidatorAddress = function() {
|
2966
|
+
return jspb.Message.getField(this, 2) != null;
|
2967
|
+
};
|
2968
|
+
|
2969
|
+
|
2970
|
+
/**
|
2971
|
+
* optional uint64 amount = 3;
|
2972
|
+
* @return {string}
|
2973
|
+
*/
|
2974
|
+
proto.CosmosMsgRewards.prototype.getAmount = function() {
|
2975
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "0"));
|
2976
|
+
};
|
2977
|
+
|
2978
|
+
|
2979
|
+
/**
|
2980
|
+
* @param {string} value
|
2981
|
+
* @return {!proto.CosmosMsgRewards} returns this
|
2982
|
+
*/
|
2983
|
+
proto.CosmosMsgRewards.prototype.setAmount = function(value) {
|
2984
|
+
return jspb.Message.setField(this, 3, value);
|
2985
|
+
};
|
2986
|
+
|
2987
|
+
|
2988
|
+
/**
|
2989
|
+
* Clears the field making it undefined.
|
2990
|
+
* @return {!proto.CosmosMsgRewards} returns this
|
2991
|
+
*/
|
2992
|
+
proto.CosmosMsgRewards.prototype.clearAmount = function() {
|
2993
|
+
return jspb.Message.setField(this, 3, undefined);
|
2994
|
+
};
|
2995
|
+
|
2996
|
+
|
2997
|
+
/**
|
2998
|
+
* Returns whether this field is set.
|
2999
|
+
* @return {boolean}
|
3000
|
+
*/
|
3001
|
+
proto.CosmosMsgRewards.prototype.hasAmount = function() {
|
3002
|
+
return jspb.Message.getField(this, 3) != null;
|
3003
|
+
};
|
3004
|
+
|
3005
|
+
|
3006
|
+
|
3007
|
+
|
3008
|
+
|
3009
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
3010
|
+
/**
|
3011
|
+
* Creates an object representation of this proto.
|
3012
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
3013
|
+
* Optional fields that are not set will be set to undefined.
|
3014
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
3015
|
+
* For the list of reserved names please see:
|
3016
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
3017
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
3018
|
+
* JSPB instance for transitional soy proto support:
|
3019
|
+
* http://goto/soy-param-migration
|
3020
|
+
* @return {!Object}
|
3021
|
+
*/
|
3022
|
+
proto.CosmosMsgIBCTransfer.prototype.toObject = function(opt_includeInstance) {
|
3023
|
+
return proto.CosmosMsgIBCTransfer.toObject(opt_includeInstance, this);
|
3024
|
+
};
|
3025
|
+
|
3026
|
+
|
3027
|
+
/**
|
3028
|
+
* Static version of the {@see toObject} method.
|
3029
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
3030
|
+
* the JSPB instance for transitional soy proto support:
|
3031
|
+
* http://goto/soy-param-migration
|
3032
|
+
* @param {!proto.CosmosMsgIBCTransfer} msg The msg instance to transform.
|
3033
|
+
* @return {!Object}
|
3034
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
3035
|
+
*/
|
3036
|
+
proto.CosmosMsgIBCTransfer.toObject = function(includeInstance, msg) {
|
3037
|
+
var f, obj = {
|
3038
|
+
receiver: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
|
3039
|
+
sender: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f,
|
3040
|
+
sourceChannel: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f,
|
3041
|
+
sourcePort: (f = jspb.Message.getField(msg, 4)) == null ? undefined : f,
|
3042
|
+
revisionHeight: (f = jspb.Message.getField(msg, 5)) == null ? undefined : f,
|
3043
|
+
revisionNumber: (f = jspb.Message.getField(msg, 6)) == null ? undefined : f,
|
3044
|
+
denom: (f = jspb.Message.getField(msg, 7)) == null ? undefined : f,
|
3045
|
+
amount: (f = jspb.Message.getField(msg, 8)) == null ? undefined : f
|
3046
|
+
};
|
3047
|
+
|
3048
|
+
if (includeInstance) {
|
3049
|
+
obj.$jspbMessageInstance = msg;
|
3050
|
+
}
|
3051
|
+
return obj;
|
3052
|
+
};
|
3053
|
+
}
|
3054
|
+
|
3055
|
+
|
3056
|
+
/**
|
3057
|
+
* Deserializes binary data (in protobuf wire format).
|
3058
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
3059
|
+
* @return {!proto.CosmosMsgIBCTransfer}
|
3060
|
+
*/
|
3061
|
+
proto.CosmosMsgIBCTransfer.deserializeBinary = function(bytes) {
|
3062
|
+
var reader = new jspb.BinaryReader(bytes);
|
3063
|
+
var msg = new proto.CosmosMsgIBCTransfer;
|
3064
|
+
return proto.CosmosMsgIBCTransfer.deserializeBinaryFromReader(msg, reader);
|
3065
|
+
};
|
3066
|
+
|
3067
|
+
|
3068
|
+
/**
|
3069
|
+
* Deserializes binary data (in protobuf wire format) from the
|
3070
|
+
* given reader into the given message object.
|
3071
|
+
* @param {!proto.CosmosMsgIBCTransfer} msg The message object to deserialize into.
|
3072
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
3073
|
+
* @return {!proto.CosmosMsgIBCTransfer}
|
3074
|
+
*/
|
3075
|
+
proto.CosmosMsgIBCTransfer.deserializeBinaryFromReader = function(msg, reader) {
|
3076
|
+
while (reader.nextField()) {
|
3077
|
+
if (reader.isEndGroup()) {
|
3078
|
+
break;
|
3079
|
+
}
|
3080
|
+
var field = reader.getFieldNumber();
|
3081
|
+
switch (field) {
|
3082
|
+
case 1:
|
3083
|
+
var value = /** @type {string} */ (reader.readString());
|
3084
|
+
msg.setReceiver(value);
|
3085
|
+
break;
|
3086
|
+
case 2:
|
3087
|
+
var value = /** @type {string} */ (reader.readString());
|
3088
|
+
msg.setSender(value);
|
3089
|
+
break;
|
3090
|
+
case 3:
|
3091
|
+
var value = /** @type {string} */ (reader.readString());
|
3092
|
+
msg.setSourceChannel(value);
|
3093
|
+
break;
|
3094
|
+
case 4:
|
3095
|
+
var value = /** @type {string} */ (reader.readString());
|
3096
|
+
msg.setSourcePort(value);
|
3097
|
+
break;
|
3098
|
+
case 5:
|
3099
|
+
var value = /** @type {string} */ (reader.readString());
|
3100
|
+
msg.setRevisionHeight(value);
|
3101
|
+
break;
|
3102
|
+
case 6:
|
3103
|
+
var value = /** @type {string} */ (reader.readString());
|
3104
|
+
msg.setRevisionNumber(value);
|
3105
|
+
break;
|
3106
|
+
case 7:
|
3107
|
+
var value = /** @type {string} */ (reader.readString());
|
3108
|
+
msg.setDenom(value);
|
3109
|
+
break;
|
3110
|
+
case 8:
|
3111
|
+
var value = /** @type {number} */ (reader.readUint64());
|
3112
|
+
msg.setAmount(value);
|
3113
|
+
break;
|
3114
|
+
default:
|
3115
|
+
reader.skipField();
|
3116
|
+
break;
|
3117
|
+
}
|
3118
|
+
}
|
3119
|
+
return msg;
|
3120
|
+
};
|
3121
|
+
|
3122
|
+
|
3123
|
+
/**
|
3124
|
+
* Serializes the message to binary data (in protobuf wire format).
|
3125
|
+
* @return {!Uint8Array}
|
3126
|
+
*/
|
3127
|
+
proto.CosmosMsgIBCTransfer.prototype.serializeBinary = function() {
|
3128
|
+
var writer = new jspb.BinaryWriter();
|
3129
|
+
proto.CosmosMsgIBCTransfer.serializeBinaryToWriter(this, writer);
|
3130
|
+
return writer.getResultBuffer();
|
3131
|
+
};
|
3132
|
+
|
3133
|
+
|
3134
|
+
/**
|
3135
|
+
* Serializes the given message to binary data (in protobuf wire
|
3136
|
+
* format), writing to the given BinaryWriter.
|
3137
|
+
* @param {!proto.CosmosMsgIBCTransfer} message
|
3138
|
+
* @param {!jspb.BinaryWriter} writer
|
3139
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
3140
|
+
*/
|
3141
|
+
proto.CosmosMsgIBCTransfer.serializeBinaryToWriter = function(message, writer) {
|
3142
|
+
var f = undefined;
|
3143
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 1));
|
3144
|
+
if (f != null) {
|
3145
|
+
writer.writeString(
|
3146
|
+
1,
|
3147
|
+
f
|
3148
|
+
);
|
3149
|
+
}
|
3150
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
3151
|
+
if (f != null) {
|
3152
|
+
writer.writeString(
|
3153
|
+
2,
|
3154
|
+
f
|
3155
|
+
);
|
3156
|
+
}
|
3157
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
3158
|
+
if (f != null) {
|
3159
|
+
writer.writeString(
|
3160
|
+
3,
|
3161
|
+
f
|
3162
|
+
);
|
3163
|
+
}
|
3164
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
3165
|
+
if (f != null) {
|
3166
|
+
writer.writeString(
|
3167
|
+
4,
|
3168
|
+
f
|
3169
|
+
);
|
3170
|
+
}
|
3171
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 5));
|
3172
|
+
if (f != null) {
|
3173
|
+
writer.writeString(
|
3174
|
+
5,
|
3175
|
+
f
|
3176
|
+
);
|
3177
|
+
}
|
3178
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 6));
|
3179
|
+
if (f != null) {
|
3180
|
+
writer.writeString(
|
3181
|
+
6,
|
3182
|
+
f
|
3183
|
+
);
|
3184
|
+
}
|
3185
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 7));
|
3186
|
+
if (f != null) {
|
3187
|
+
writer.writeString(
|
3188
|
+
7,
|
3189
|
+
f
|
3190
|
+
);
|
3191
|
+
}
|
3192
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 8));
|
3193
|
+
if (f != null) {
|
3194
|
+
writer.writeUint64(
|
3195
|
+
8,
|
3196
|
+
f
|
3197
|
+
);
|
3198
|
+
}
|
3199
|
+
};
|
3200
|
+
|
3201
|
+
|
3202
|
+
/**
|
3203
|
+
* optional string receiver = 1;
|
3204
|
+
* @return {string}
|
3205
|
+
*/
|
3206
|
+
proto.CosmosMsgIBCTransfer.prototype.getReceiver = function() {
|
3207
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
3208
|
+
};
|
3209
|
+
|
3210
|
+
|
3211
|
+
/**
|
3212
|
+
* @param {string} value
|
3213
|
+
* @return {!proto.CosmosMsgIBCTransfer} returns this
|
3214
|
+
*/
|
3215
|
+
proto.CosmosMsgIBCTransfer.prototype.setReceiver = function(value) {
|
3216
|
+
return jspb.Message.setField(this, 1, value);
|
3217
|
+
};
|
3218
|
+
|
3219
|
+
|
3220
|
+
/**
|
3221
|
+
* Clears the field making it undefined.
|
3222
|
+
* @return {!proto.CosmosMsgIBCTransfer} returns this
|
3223
|
+
*/
|
3224
|
+
proto.CosmosMsgIBCTransfer.prototype.clearReceiver = function() {
|
3225
|
+
return jspb.Message.setField(this, 1, undefined);
|
3226
|
+
};
|
3227
|
+
|
3228
|
+
|
3229
|
+
/**
|
3230
|
+
* Returns whether this field is set.
|
3231
|
+
* @return {boolean}
|
3232
|
+
*/
|
3233
|
+
proto.CosmosMsgIBCTransfer.prototype.hasReceiver = function() {
|
3234
|
+
return jspb.Message.getField(this, 1) != null;
|
3235
|
+
};
|
3236
|
+
|
3237
|
+
|
3238
|
+
/**
|
3239
|
+
* optional string sender = 2;
|
3240
|
+
* @return {string}
|
3241
|
+
*/
|
3242
|
+
proto.CosmosMsgIBCTransfer.prototype.getSender = function() {
|
3243
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
3244
|
+
};
|
3245
|
+
|
3246
|
+
|
3247
|
+
/**
|
3248
|
+
* @param {string} value
|
3249
|
+
* @return {!proto.CosmosMsgIBCTransfer} returns this
|
3250
|
+
*/
|
3251
|
+
proto.CosmosMsgIBCTransfer.prototype.setSender = function(value) {
|
3252
|
+
return jspb.Message.setField(this, 2, value);
|
3253
|
+
};
|
3254
|
+
|
3255
|
+
|
3256
|
+
/**
|
3257
|
+
* Clears the field making it undefined.
|
3258
|
+
* @return {!proto.CosmosMsgIBCTransfer} returns this
|
3259
|
+
*/
|
3260
|
+
proto.CosmosMsgIBCTransfer.prototype.clearSender = function() {
|
3261
|
+
return jspb.Message.setField(this, 2, undefined);
|
3262
|
+
};
|
3263
|
+
|
3264
|
+
|
3265
|
+
/**
|
3266
|
+
* Returns whether this field is set.
|
3267
|
+
* @return {boolean}
|
3268
|
+
*/
|
3269
|
+
proto.CosmosMsgIBCTransfer.prototype.hasSender = function() {
|
3270
|
+
return jspb.Message.getField(this, 2) != null;
|
3271
|
+
};
|
3272
|
+
|
3273
|
+
|
3274
|
+
/**
|
3275
|
+
* optional string source_channel = 3;
|
3276
|
+
* @return {string}
|
3277
|
+
*/
|
3278
|
+
proto.CosmosMsgIBCTransfer.prototype.getSourceChannel = function() {
|
3279
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
3280
|
+
};
|
3281
|
+
|
3282
|
+
|
3283
|
+
/**
|
3284
|
+
* @param {string} value
|
3285
|
+
* @return {!proto.CosmosMsgIBCTransfer} returns this
|
3286
|
+
*/
|
3287
|
+
proto.CosmosMsgIBCTransfer.prototype.setSourceChannel = function(value) {
|
3288
|
+
return jspb.Message.setField(this, 3, value);
|
3289
|
+
};
|
3290
|
+
|
3291
|
+
|
3292
|
+
/**
|
3293
|
+
* Clears the field making it undefined.
|
3294
|
+
* @return {!proto.CosmosMsgIBCTransfer} returns this
|
3295
|
+
*/
|
3296
|
+
proto.CosmosMsgIBCTransfer.prototype.clearSourceChannel = function() {
|
3297
|
+
return jspb.Message.setField(this, 3, undefined);
|
3298
|
+
};
|
3299
|
+
|
3300
|
+
|
3301
|
+
/**
|
3302
|
+
* Returns whether this field is set.
|
3303
|
+
* @return {boolean}
|
3304
|
+
*/
|
3305
|
+
proto.CosmosMsgIBCTransfer.prototype.hasSourceChannel = function() {
|
3306
|
+
return jspb.Message.getField(this, 3) != null;
|
3307
|
+
};
|
3308
|
+
|
3309
|
+
|
3310
|
+
/**
|
3311
|
+
* optional string source_port = 4;
|
3312
|
+
* @return {string}
|
3313
|
+
*/
|
3314
|
+
proto.CosmosMsgIBCTransfer.prototype.getSourcePort = function() {
|
3315
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
3316
|
+
};
|
3317
|
+
|
3318
|
+
|
3319
|
+
/**
|
3320
|
+
* @param {string} value
|
3321
|
+
* @return {!proto.CosmosMsgIBCTransfer} returns this
|
3322
|
+
*/
|
3323
|
+
proto.CosmosMsgIBCTransfer.prototype.setSourcePort = function(value) {
|
3324
|
+
return jspb.Message.setField(this, 4, value);
|
3325
|
+
};
|
3326
|
+
|
3327
|
+
|
3328
|
+
/**
|
3329
|
+
* Clears the field making it undefined.
|
3330
|
+
* @return {!proto.CosmosMsgIBCTransfer} returns this
|
3331
|
+
*/
|
3332
|
+
proto.CosmosMsgIBCTransfer.prototype.clearSourcePort = function() {
|
3333
|
+
return jspb.Message.setField(this, 4, undefined);
|
3334
|
+
};
|
3335
|
+
|
3336
|
+
|
3337
|
+
/**
|
3338
|
+
* Returns whether this field is set.
|
3339
|
+
* @return {boolean}
|
3340
|
+
*/
|
3341
|
+
proto.CosmosMsgIBCTransfer.prototype.hasSourcePort = function() {
|
3342
|
+
return jspb.Message.getField(this, 4) != null;
|
3343
|
+
};
|
3344
|
+
|
3345
|
+
|
3346
|
+
/**
|
3347
|
+
* optional string revision_height = 5;
|
3348
|
+
* @return {string}
|
3349
|
+
*/
|
3350
|
+
proto.CosmosMsgIBCTransfer.prototype.getRevisionHeight = function() {
|
3351
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
3352
|
+
};
|
3353
|
+
|
3354
|
+
|
3355
|
+
/**
|
3356
|
+
* @param {string} value
|
3357
|
+
* @return {!proto.CosmosMsgIBCTransfer} returns this
|
3358
|
+
*/
|
3359
|
+
proto.CosmosMsgIBCTransfer.prototype.setRevisionHeight = function(value) {
|
3360
|
+
return jspb.Message.setField(this, 5, value);
|
3361
|
+
};
|
3362
|
+
|
3363
|
+
|
3364
|
+
/**
|
3365
|
+
* Clears the field making it undefined.
|
3366
|
+
* @return {!proto.CosmosMsgIBCTransfer} returns this
|
3367
|
+
*/
|
3368
|
+
proto.CosmosMsgIBCTransfer.prototype.clearRevisionHeight = function() {
|
3369
|
+
return jspb.Message.setField(this, 5, undefined);
|
3370
|
+
};
|
3371
|
+
|
3372
|
+
|
3373
|
+
/**
|
3374
|
+
* Returns whether this field is set.
|
3375
|
+
* @return {boolean}
|
3376
|
+
*/
|
3377
|
+
proto.CosmosMsgIBCTransfer.prototype.hasRevisionHeight = function() {
|
3378
|
+
return jspb.Message.getField(this, 5) != null;
|
3379
|
+
};
|
3380
|
+
|
3381
|
+
|
3382
|
+
/**
|
3383
|
+
* optional string revision_number = 6;
|
3384
|
+
* @return {string}
|
3385
|
+
*/
|
3386
|
+
proto.CosmosMsgIBCTransfer.prototype.getRevisionNumber = function() {
|
3387
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
3388
|
+
};
|
3389
|
+
|
3390
|
+
|
3391
|
+
/**
|
3392
|
+
* @param {string} value
|
3393
|
+
* @return {!proto.CosmosMsgIBCTransfer} returns this
|
3394
|
+
*/
|
3395
|
+
proto.CosmosMsgIBCTransfer.prototype.setRevisionNumber = function(value) {
|
3396
|
+
return jspb.Message.setField(this, 6, value);
|
3397
|
+
};
|
3398
|
+
|
3399
|
+
|
3400
|
+
/**
|
3401
|
+
* Clears the field making it undefined.
|
3402
|
+
* @return {!proto.CosmosMsgIBCTransfer} returns this
|
3403
|
+
*/
|
3404
|
+
proto.CosmosMsgIBCTransfer.prototype.clearRevisionNumber = function() {
|
3405
|
+
return jspb.Message.setField(this, 6, undefined);
|
3406
|
+
};
|
3407
|
+
|
3408
|
+
|
3409
|
+
/**
|
3410
|
+
* Returns whether this field is set.
|
3411
|
+
* @return {boolean}
|
3412
|
+
*/
|
3413
|
+
proto.CosmosMsgIBCTransfer.prototype.hasRevisionNumber = function() {
|
3414
|
+
return jspb.Message.getField(this, 6) != null;
|
3415
|
+
};
|
3416
|
+
|
3417
|
+
|
3418
|
+
/**
|
3419
|
+
* optional string denom = 7;
|
3420
|
+
* @return {string}
|
3421
|
+
*/
|
3422
|
+
proto.CosmosMsgIBCTransfer.prototype.getDenom = function() {
|
3423
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
3424
|
+
};
|
3425
|
+
|
3426
|
+
|
3427
|
+
/**
|
3428
|
+
* @param {string} value
|
3429
|
+
* @return {!proto.CosmosMsgIBCTransfer} returns this
|
3430
|
+
*/
|
3431
|
+
proto.CosmosMsgIBCTransfer.prototype.setDenom = function(value) {
|
3432
|
+
return jspb.Message.setField(this, 7, value);
|
3433
|
+
};
|
3434
|
+
|
3435
|
+
|
3436
|
+
/**
|
3437
|
+
* Clears the field making it undefined.
|
3438
|
+
* @return {!proto.CosmosMsgIBCTransfer} returns this
|
3439
|
+
*/
|
3440
|
+
proto.CosmosMsgIBCTransfer.prototype.clearDenom = function() {
|
3441
|
+
return jspb.Message.setField(this, 7, undefined);
|
3442
|
+
};
|
3443
|
+
|
3444
|
+
|
3445
|
+
/**
|
3446
|
+
* Returns whether this field is set.
|
3447
|
+
* @return {boolean}
|
3448
|
+
*/
|
3449
|
+
proto.CosmosMsgIBCTransfer.prototype.hasDenom = function() {
|
3450
|
+
return jspb.Message.getField(this, 7) != null;
|
3451
|
+
};
|
3452
|
+
|
3453
|
+
|
3454
|
+
/**
|
3455
|
+
* optional uint64 amount = 8;
|
3456
|
+
* @return {number}
|
3457
|
+
*/
|
3458
|
+
proto.CosmosMsgIBCTransfer.prototype.getAmount = function() {
|
3459
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
|
3460
|
+
};
|
3461
|
+
|
3462
|
+
|
3463
|
+
/**
|
3464
|
+
* @param {number} value
|
3465
|
+
* @return {!proto.CosmosMsgIBCTransfer} returns this
|
3466
|
+
*/
|
3467
|
+
proto.CosmosMsgIBCTransfer.prototype.setAmount = function(value) {
|
3468
|
+
return jspb.Message.setField(this, 8, value);
|
3469
|
+
};
|
3470
|
+
|
3471
|
+
|
3472
|
+
/**
|
3473
|
+
* Clears the field making it undefined.
|
3474
|
+
* @return {!proto.CosmosMsgIBCTransfer} returns this
|
3475
|
+
*/
|
3476
|
+
proto.CosmosMsgIBCTransfer.prototype.clearAmount = function() {
|
3477
|
+
return jspb.Message.setField(this, 8, undefined);
|
3478
|
+
};
|
3479
|
+
|
3480
|
+
|
3481
|
+
/**
|
3482
|
+
* Returns whether this field is set.
|
3483
|
+
* @return {boolean}
|
3484
|
+
*/
|
3485
|
+
proto.CosmosMsgIBCTransfer.prototype.hasAmount = function() {
|
3486
|
+
return jspb.Message.getField(this, 8) != null;
|
3487
|
+
};
|
3488
|
+
|
3489
|
+
|
3490
|
+
|
3491
|
+
|
3492
|
+
|
1620
3493
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
1621
3494
|
/**
|
1622
3495
|
* Creates an object representation of this proto.
|