@keepkey/device-protocol 7.7.1 → 7.9.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-osmosis_pb.d.ts +242 -198
- package/lib/messages-osmosis_pb.js +2005 -1686
- package/lib/messages-tendermint_pb.d.ts +230 -0
- package/lib/messages-tendermint_pb.js +1917 -92
- package/lib/messages_pb.d.ts +20 -9
- package/lib/messages_pb.js +20 -9
- package/lib/proto.json +453 -105
- package/package.json +1 -1
@@ -20,8 +20,13 @@ goog.object.extend(proto, types_pb);
|
|
20
20
|
goog.exportSymbol('proto.TendermintAddress', null, global);
|
21
21
|
goog.exportSymbol('proto.TendermintGetAddress', null, global);
|
22
22
|
goog.exportSymbol('proto.TendermintMsgAck', null, global);
|
23
|
+
goog.exportSymbol('proto.TendermintMsgDelegate', null, global);
|
24
|
+
goog.exportSymbol('proto.TendermintMsgIBCTransfer', null, global);
|
25
|
+
goog.exportSymbol('proto.TendermintMsgRedelegate', null, global);
|
23
26
|
goog.exportSymbol('proto.TendermintMsgRequest', null, global);
|
27
|
+
goog.exportSymbol('proto.TendermintMsgRewards', null, global);
|
24
28
|
goog.exportSymbol('proto.TendermintMsgSend', null, global);
|
29
|
+
goog.exportSymbol('proto.TendermintMsgUndelegate', null, global);
|
25
30
|
goog.exportSymbol('proto.TendermintSignTx', null, global);
|
26
31
|
goog.exportSymbol('proto.TendermintSignedTx', null, global);
|
27
32
|
/**
|
@@ -150,6 +155,111 @@ if (goog.DEBUG && !COMPILED) {
|
|
150
155
|
*/
|
151
156
|
proto.TendermintMsgSend.displayName = 'proto.TendermintMsgSend';
|
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.TendermintMsgDelegate = function(opt_data) {
|
169
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
170
|
+
};
|
171
|
+
goog.inherits(proto.TendermintMsgDelegate, jspb.Message);
|
172
|
+
if (goog.DEBUG && !COMPILED) {
|
173
|
+
/**
|
174
|
+
* @public
|
175
|
+
* @override
|
176
|
+
*/
|
177
|
+
proto.TendermintMsgDelegate.displayName = 'proto.TendermintMsgDelegate';
|
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.TendermintMsgUndelegate = function(opt_data) {
|
190
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
191
|
+
};
|
192
|
+
goog.inherits(proto.TendermintMsgUndelegate, jspb.Message);
|
193
|
+
if (goog.DEBUG && !COMPILED) {
|
194
|
+
/**
|
195
|
+
* @public
|
196
|
+
* @override
|
197
|
+
*/
|
198
|
+
proto.TendermintMsgUndelegate.displayName = 'proto.TendermintMsgUndelegate';
|
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.TendermintMsgRedelegate = function(opt_data) {
|
211
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
212
|
+
};
|
213
|
+
goog.inherits(proto.TendermintMsgRedelegate, jspb.Message);
|
214
|
+
if (goog.DEBUG && !COMPILED) {
|
215
|
+
/**
|
216
|
+
* @public
|
217
|
+
* @override
|
218
|
+
*/
|
219
|
+
proto.TendermintMsgRedelegate.displayName = 'proto.TendermintMsgRedelegate';
|
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.TendermintMsgRewards = function(opt_data) {
|
232
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
233
|
+
};
|
234
|
+
goog.inherits(proto.TendermintMsgRewards, jspb.Message);
|
235
|
+
if (goog.DEBUG && !COMPILED) {
|
236
|
+
/**
|
237
|
+
* @public
|
238
|
+
* @override
|
239
|
+
*/
|
240
|
+
proto.TendermintMsgRewards.displayName = 'proto.TendermintMsgRewards';
|
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.TendermintMsgIBCTransfer = function(opt_data) {
|
253
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
254
|
+
};
|
255
|
+
goog.inherits(proto.TendermintMsgIBCTransfer, jspb.Message);
|
256
|
+
if (goog.DEBUG && !COMPILED) {
|
257
|
+
/**
|
258
|
+
* @public
|
259
|
+
* @override
|
260
|
+
*/
|
261
|
+
proto.TendermintMsgIBCTransfer.displayName = 'proto.TendermintMsgIBCTransfer';
|
262
|
+
}
|
153
263
|
/**
|
154
264
|
* Generated by JsPbCodeGenerator.
|
155
265
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
@@ -1537,9 +1647,14 @@ proto.TendermintMsgAck.prototype.toObject = function(opt_includeInstance) {
|
|
1537
1647
|
proto.TendermintMsgAck.toObject = function(includeInstance, msg) {
|
1538
1648
|
var f, obj = {
|
1539
1649
|
send: (f = msg.getSend()) && proto.TendermintMsgSend.toObject(includeInstance, f),
|
1540
|
-
|
1541
|
-
|
1542
|
-
|
1650
|
+
delegate: (f = msg.getDelegate()) && proto.TendermintMsgDelegate.toObject(includeInstance, f),
|
1651
|
+
undelegate: (f = msg.getUndelegate()) && proto.TendermintMsgUndelegate.toObject(includeInstance, f),
|
1652
|
+
redelegate: (f = msg.getRedelegate()) && proto.TendermintMsgRedelegate.toObject(includeInstance, f),
|
1653
|
+
rewards: (f = msg.getRewards()) && proto.TendermintMsgRewards.toObject(includeInstance, f),
|
1654
|
+
ibcTransfer: (f = msg.getIbcTransfer()) && proto.TendermintMsgIBCTransfer.toObject(includeInstance, f),
|
1655
|
+
denom: (f = jspb.Message.getField(msg, 7)) == null ? undefined : f,
|
1656
|
+
chainName: (f = jspb.Message.getField(msg, 8)) == null ? undefined : f,
|
1657
|
+
messageTypePrefix: (f = jspb.Message.getField(msg, 9)) == null ? undefined : f
|
1543
1658
|
};
|
1544
1659
|
|
1545
1660
|
if (includeInstance) {
|
@@ -1582,14 +1697,39 @@ proto.TendermintMsgAck.deserializeBinaryFromReader = function(msg, reader) {
|
|
1582
1697
|
msg.setSend(value);
|
1583
1698
|
break;
|
1584
1699
|
case 2:
|
1700
|
+
var value = new proto.TendermintMsgDelegate;
|
1701
|
+
reader.readMessage(value,proto.TendermintMsgDelegate.deserializeBinaryFromReader);
|
1702
|
+
msg.setDelegate(value);
|
1703
|
+
break;
|
1704
|
+
case 3:
|
1705
|
+
var value = new proto.TendermintMsgUndelegate;
|
1706
|
+
reader.readMessage(value,proto.TendermintMsgUndelegate.deserializeBinaryFromReader);
|
1707
|
+
msg.setUndelegate(value);
|
1708
|
+
break;
|
1709
|
+
case 4:
|
1710
|
+
var value = new proto.TendermintMsgRedelegate;
|
1711
|
+
reader.readMessage(value,proto.TendermintMsgRedelegate.deserializeBinaryFromReader);
|
1712
|
+
msg.setRedelegate(value);
|
1713
|
+
break;
|
1714
|
+
case 5:
|
1715
|
+
var value = new proto.TendermintMsgRewards;
|
1716
|
+
reader.readMessage(value,proto.TendermintMsgRewards.deserializeBinaryFromReader);
|
1717
|
+
msg.setRewards(value);
|
1718
|
+
break;
|
1719
|
+
case 6:
|
1720
|
+
var value = new proto.TendermintMsgIBCTransfer;
|
1721
|
+
reader.readMessage(value,proto.TendermintMsgIBCTransfer.deserializeBinaryFromReader);
|
1722
|
+
msg.setIbcTransfer(value);
|
1723
|
+
break;
|
1724
|
+
case 7:
|
1585
1725
|
var value = /** @type {string} */ (reader.readString());
|
1586
1726
|
msg.setDenom(value);
|
1587
1727
|
break;
|
1588
|
-
case
|
1728
|
+
case 8:
|
1589
1729
|
var value = /** @type {string} */ (reader.readString());
|
1590
1730
|
msg.setChainName(value);
|
1591
1731
|
break;
|
1592
|
-
case
|
1732
|
+
case 9:
|
1593
1733
|
var value = /** @type {string} */ (reader.readString());
|
1594
1734
|
msg.setMessageTypePrefix(value);
|
1595
1735
|
break;
|
@@ -1630,24 +1770,64 @@ proto.TendermintMsgAck.serializeBinaryToWriter = function(message, writer) {
|
|
1630
1770
|
proto.TendermintMsgSend.serializeBinaryToWriter
|
1631
1771
|
);
|
1632
1772
|
}
|
1633
|
-
f =
|
1773
|
+
f = message.getDelegate();
|
1634
1774
|
if (f != null) {
|
1635
|
-
writer.
|
1775
|
+
writer.writeMessage(
|
1636
1776
|
2,
|
1777
|
+
f,
|
1778
|
+
proto.TendermintMsgDelegate.serializeBinaryToWriter
|
1779
|
+
);
|
1780
|
+
}
|
1781
|
+
f = message.getUndelegate();
|
1782
|
+
if (f != null) {
|
1783
|
+
writer.writeMessage(
|
1784
|
+
3,
|
1785
|
+
f,
|
1786
|
+
proto.TendermintMsgUndelegate.serializeBinaryToWriter
|
1787
|
+
);
|
1788
|
+
}
|
1789
|
+
f = message.getRedelegate();
|
1790
|
+
if (f != null) {
|
1791
|
+
writer.writeMessage(
|
1792
|
+
4,
|
1793
|
+
f,
|
1794
|
+
proto.TendermintMsgRedelegate.serializeBinaryToWriter
|
1795
|
+
);
|
1796
|
+
}
|
1797
|
+
f = message.getRewards();
|
1798
|
+
if (f != null) {
|
1799
|
+
writer.writeMessage(
|
1800
|
+
5,
|
1801
|
+
f,
|
1802
|
+
proto.TendermintMsgRewards.serializeBinaryToWriter
|
1803
|
+
);
|
1804
|
+
}
|
1805
|
+
f = message.getIbcTransfer();
|
1806
|
+
if (f != null) {
|
1807
|
+
writer.writeMessage(
|
1808
|
+
6,
|
1809
|
+
f,
|
1810
|
+
proto.TendermintMsgIBCTransfer.serializeBinaryToWriter
|
1811
|
+
);
|
1812
|
+
}
|
1813
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 7));
|
1814
|
+
if (f != null) {
|
1815
|
+
writer.writeString(
|
1816
|
+
7,
|
1637
1817
|
f
|
1638
1818
|
);
|
1639
1819
|
}
|
1640
|
-
f = /** @type {string} */ (jspb.Message.getField(message,
|
1820
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 8));
|
1641
1821
|
if (f != null) {
|
1642
1822
|
writer.writeString(
|
1643
|
-
|
1823
|
+
8,
|
1644
1824
|
f
|
1645
1825
|
);
|
1646
1826
|
}
|
1647
|
-
f = /** @type {string} */ (jspb.Message.getField(message,
|
1827
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 9));
|
1648
1828
|
if (f != null) {
|
1649
1829
|
writer.writeString(
|
1650
|
-
|
1830
|
+
9,
|
1651
1831
|
f
|
1652
1832
|
);
|
1653
1833
|
}
|
@@ -1692,29 +1872,30 @@ proto.TendermintMsgAck.prototype.hasSend = function() {
|
|
1692
1872
|
|
1693
1873
|
|
1694
1874
|
/**
|
1695
|
-
* optional
|
1696
|
-
* @return {
|
1875
|
+
* optional TendermintMsgDelegate delegate = 2;
|
1876
|
+
* @return {?proto.TendermintMsgDelegate}
|
1697
1877
|
*/
|
1698
|
-
proto.TendermintMsgAck.prototype.
|
1699
|
-
return /** @type
|
1878
|
+
proto.TendermintMsgAck.prototype.getDelegate = function() {
|
1879
|
+
return /** @type{?proto.TendermintMsgDelegate} */ (
|
1880
|
+
jspb.Message.getWrapperField(this, proto.TendermintMsgDelegate, 2));
|
1700
1881
|
};
|
1701
1882
|
|
1702
1883
|
|
1703
1884
|
/**
|
1704
|
-
* @param {
|
1885
|
+
* @param {?proto.TendermintMsgDelegate|undefined} value
|
1705
1886
|
* @return {!proto.TendermintMsgAck} returns this
|
1706
|
-
|
1707
|
-
proto.TendermintMsgAck.prototype.
|
1708
|
-
return jspb.Message.
|
1887
|
+
*/
|
1888
|
+
proto.TendermintMsgAck.prototype.setDelegate = function(value) {
|
1889
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
1709
1890
|
};
|
1710
1891
|
|
1711
1892
|
|
1712
1893
|
/**
|
1713
|
-
* Clears the field making it undefined.
|
1894
|
+
* Clears the message field making it undefined.
|
1714
1895
|
* @return {!proto.TendermintMsgAck} returns this
|
1715
1896
|
*/
|
1716
|
-
proto.TendermintMsgAck.prototype.
|
1717
|
-
return
|
1897
|
+
proto.TendermintMsgAck.prototype.clearDelegate = function() {
|
1898
|
+
return this.setDelegate(undefined);
|
1718
1899
|
};
|
1719
1900
|
|
1720
1901
|
|
@@ -1722,35 +1903,36 @@ proto.TendermintMsgAck.prototype.clearDenom = function() {
|
|
1722
1903
|
* Returns whether this field is set.
|
1723
1904
|
* @return {boolean}
|
1724
1905
|
*/
|
1725
|
-
proto.TendermintMsgAck.prototype.
|
1906
|
+
proto.TendermintMsgAck.prototype.hasDelegate = function() {
|
1726
1907
|
return jspb.Message.getField(this, 2) != null;
|
1727
1908
|
};
|
1728
1909
|
|
1729
1910
|
|
1730
1911
|
/**
|
1731
|
-
* optional
|
1732
|
-
* @return {
|
1912
|
+
* optional TendermintMsgUndelegate undelegate = 3;
|
1913
|
+
* @return {?proto.TendermintMsgUndelegate}
|
1733
1914
|
*/
|
1734
|
-
proto.TendermintMsgAck.prototype.
|
1735
|
-
return /** @type
|
1915
|
+
proto.TendermintMsgAck.prototype.getUndelegate = function() {
|
1916
|
+
return /** @type{?proto.TendermintMsgUndelegate} */ (
|
1917
|
+
jspb.Message.getWrapperField(this, proto.TendermintMsgUndelegate, 3));
|
1736
1918
|
};
|
1737
1919
|
|
1738
1920
|
|
1739
1921
|
/**
|
1740
|
-
* @param {
|
1922
|
+
* @param {?proto.TendermintMsgUndelegate|undefined} value
|
1741
1923
|
* @return {!proto.TendermintMsgAck} returns this
|
1742
|
-
|
1743
|
-
proto.TendermintMsgAck.prototype.
|
1744
|
-
return jspb.Message.
|
1924
|
+
*/
|
1925
|
+
proto.TendermintMsgAck.prototype.setUndelegate = function(value) {
|
1926
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
1745
1927
|
};
|
1746
1928
|
|
1747
1929
|
|
1748
1930
|
/**
|
1749
|
-
* Clears the field making it undefined.
|
1931
|
+
* Clears the message field making it undefined.
|
1750
1932
|
* @return {!proto.TendermintMsgAck} returns this
|
1751
1933
|
*/
|
1752
|
-
proto.TendermintMsgAck.prototype.
|
1753
|
-
return
|
1934
|
+
proto.TendermintMsgAck.prototype.clearUndelegate = function() {
|
1935
|
+
return this.setUndelegate(undefined);
|
1754
1936
|
};
|
1755
1937
|
|
1756
1938
|
|
@@ -1758,35 +1940,36 @@ proto.TendermintMsgAck.prototype.clearChainName = function() {
|
|
1758
1940
|
* Returns whether this field is set.
|
1759
1941
|
* @return {boolean}
|
1760
1942
|
*/
|
1761
|
-
proto.TendermintMsgAck.prototype.
|
1943
|
+
proto.TendermintMsgAck.prototype.hasUndelegate = function() {
|
1762
1944
|
return jspb.Message.getField(this, 3) != null;
|
1763
1945
|
};
|
1764
1946
|
|
1765
1947
|
|
1766
1948
|
/**
|
1767
|
-
* optional
|
1768
|
-
* @return {
|
1949
|
+
* optional TendermintMsgRedelegate redelegate = 4;
|
1950
|
+
* @return {?proto.TendermintMsgRedelegate}
|
1769
1951
|
*/
|
1770
|
-
proto.TendermintMsgAck.prototype.
|
1771
|
-
return /** @type
|
1952
|
+
proto.TendermintMsgAck.prototype.getRedelegate = function() {
|
1953
|
+
return /** @type{?proto.TendermintMsgRedelegate} */ (
|
1954
|
+
jspb.Message.getWrapperField(this, proto.TendermintMsgRedelegate, 4));
|
1772
1955
|
};
|
1773
1956
|
|
1774
1957
|
|
1775
1958
|
/**
|
1776
|
-
* @param {
|
1959
|
+
* @param {?proto.TendermintMsgRedelegate|undefined} value
|
1777
1960
|
* @return {!proto.TendermintMsgAck} returns this
|
1778
|
-
|
1779
|
-
proto.TendermintMsgAck.prototype.
|
1780
|
-
return jspb.Message.
|
1961
|
+
*/
|
1962
|
+
proto.TendermintMsgAck.prototype.setRedelegate = function(value) {
|
1963
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
1781
1964
|
};
|
1782
1965
|
|
1783
1966
|
|
1784
1967
|
/**
|
1785
|
-
* Clears the field making it undefined.
|
1968
|
+
* Clears the message field making it undefined.
|
1786
1969
|
* @return {!proto.TendermintMsgAck} returns this
|
1787
1970
|
*/
|
1788
|
-
proto.TendermintMsgAck.prototype.
|
1789
|
-
return
|
1971
|
+
proto.TendermintMsgAck.prototype.clearRedelegate = function() {
|
1972
|
+
return this.setRedelegate(undefined);
|
1790
1973
|
};
|
1791
1974
|
|
1792
1975
|
|
@@ -1794,76 +1977,258 @@ proto.TendermintMsgAck.prototype.clearMessageTypePrefix = function() {
|
|
1794
1977
|
* Returns whether this field is set.
|
1795
1978
|
* @return {boolean}
|
1796
1979
|
*/
|
1797
|
-
proto.TendermintMsgAck.prototype.
|
1980
|
+
proto.TendermintMsgAck.prototype.hasRedelegate = function() {
|
1798
1981
|
return jspb.Message.getField(this, 4) != null;
|
1799
1982
|
};
|
1800
1983
|
|
1801
1984
|
|
1985
|
+
/**
|
1986
|
+
* optional TendermintMsgRewards rewards = 5;
|
1987
|
+
* @return {?proto.TendermintMsgRewards}
|
1988
|
+
*/
|
1989
|
+
proto.TendermintMsgAck.prototype.getRewards = function() {
|
1990
|
+
return /** @type{?proto.TendermintMsgRewards} */ (
|
1991
|
+
jspb.Message.getWrapperField(this, proto.TendermintMsgRewards, 5));
|
1992
|
+
};
|
1802
1993
|
|
1803
1994
|
|
1995
|
+
/**
|
1996
|
+
* @param {?proto.TendermintMsgRewards|undefined} value
|
1997
|
+
* @return {!proto.TendermintMsgAck} returns this
|
1998
|
+
*/
|
1999
|
+
proto.TendermintMsgAck.prototype.setRewards = function(value) {
|
2000
|
+
return jspb.Message.setWrapperField(this, 5, value);
|
2001
|
+
};
|
2002
|
+
|
1804
2003
|
|
1805
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
1806
2004
|
/**
|
1807
|
-
*
|
1808
|
-
*
|
1809
|
-
* Optional fields that are not set will be set to undefined.
|
1810
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
1811
|
-
* For the list of reserved names please see:
|
1812
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
1813
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
1814
|
-
* JSPB instance for transitional soy proto support:
|
1815
|
-
* http://goto/soy-param-migration
|
1816
|
-
* @return {!Object}
|
2005
|
+
* Clears the message field making it undefined.
|
2006
|
+
* @return {!proto.TendermintMsgAck} returns this
|
1817
2007
|
*/
|
1818
|
-
proto.
|
1819
|
-
return
|
2008
|
+
proto.TendermintMsgAck.prototype.clearRewards = function() {
|
2009
|
+
return this.setRewards(undefined);
|
1820
2010
|
};
|
1821
2011
|
|
1822
2012
|
|
1823
2013
|
/**
|
1824
|
-
*
|
1825
|
-
* @
|
1826
|
-
* the JSPB instance for transitional soy proto support:
|
1827
|
-
* http://goto/soy-param-migration
|
1828
|
-
* @param {!proto.TendermintMsgSend} msg The msg instance to transform.
|
1829
|
-
* @return {!Object}
|
1830
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2014
|
+
* Returns whether this field is set.
|
2015
|
+
* @return {boolean}
|
1831
2016
|
*/
|
1832
|
-
proto.
|
1833
|
-
|
1834
|
-
|
1835
|
-
toAddress: (f = jspb.Message.getField(msg, 7)) == null ? undefined : f,
|
1836
|
-
amount: (f = jspb.Message.getField(msg, 8)) == null ? undefined : f,
|
1837
|
-
addressType: (f = jspb.Message.getField(msg, 9)) == null ? undefined : f,
|
1838
|
-
exchangeType: (f = msg.getExchangeType()) && types_pb.ExchangeType.toObject(includeInstance, f)
|
1839
|
-
};
|
2017
|
+
proto.TendermintMsgAck.prototype.hasRewards = function() {
|
2018
|
+
return jspb.Message.getField(this, 5) != null;
|
2019
|
+
};
|
1840
2020
|
|
1841
|
-
|
1842
|
-
|
1843
|
-
|
1844
|
-
|
2021
|
+
|
2022
|
+
/**
|
2023
|
+
* optional TendermintMsgIBCTransfer ibc_transfer = 6;
|
2024
|
+
* @return {?proto.TendermintMsgIBCTransfer}
|
2025
|
+
*/
|
2026
|
+
proto.TendermintMsgAck.prototype.getIbcTransfer = function() {
|
2027
|
+
return /** @type{?proto.TendermintMsgIBCTransfer} */ (
|
2028
|
+
jspb.Message.getWrapperField(this, proto.TendermintMsgIBCTransfer, 6));
|
1845
2029
|
};
|
1846
|
-
}
|
1847
2030
|
|
1848
2031
|
|
1849
2032
|
/**
|
1850
|
-
*
|
1851
|
-
* @
|
1852
|
-
|
2033
|
+
* @param {?proto.TendermintMsgIBCTransfer|undefined} value
|
2034
|
+
* @return {!proto.TendermintMsgAck} returns this
|
2035
|
+
*/
|
2036
|
+
proto.TendermintMsgAck.prototype.setIbcTransfer = function(value) {
|
2037
|
+
return jspb.Message.setWrapperField(this, 6, value);
|
2038
|
+
};
|
2039
|
+
|
2040
|
+
|
2041
|
+
/**
|
2042
|
+
* Clears the message field making it undefined.
|
2043
|
+
* @return {!proto.TendermintMsgAck} returns this
|
1853
2044
|
*/
|
1854
|
-
proto.
|
1855
|
-
|
1856
|
-
var msg = new proto.TendermintMsgSend;
|
1857
|
-
return proto.TendermintMsgSend.deserializeBinaryFromReader(msg, reader);
|
2045
|
+
proto.TendermintMsgAck.prototype.clearIbcTransfer = function() {
|
2046
|
+
return this.setIbcTransfer(undefined);
|
1858
2047
|
};
|
1859
2048
|
|
1860
2049
|
|
1861
2050
|
/**
|
1862
|
-
*
|
1863
|
-
*
|
1864
|
-
|
1865
|
-
|
1866
|
-
|
2051
|
+
* Returns whether this field is set.
|
2052
|
+
* @return {boolean}
|
2053
|
+
*/
|
2054
|
+
proto.TendermintMsgAck.prototype.hasIbcTransfer = function() {
|
2055
|
+
return jspb.Message.getField(this, 6) != null;
|
2056
|
+
};
|
2057
|
+
|
2058
|
+
|
2059
|
+
/**
|
2060
|
+
* optional string denom = 7;
|
2061
|
+
* @return {string}
|
2062
|
+
*/
|
2063
|
+
proto.TendermintMsgAck.prototype.getDenom = function() {
|
2064
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
2065
|
+
};
|
2066
|
+
|
2067
|
+
|
2068
|
+
/**
|
2069
|
+
* @param {string} value
|
2070
|
+
* @return {!proto.TendermintMsgAck} returns this
|
2071
|
+
*/
|
2072
|
+
proto.TendermintMsgAck.prototype.setDenom = function(value) {
|
2073
|
+
return jspb.Message.setField(this, 7, value);
|
2074
|
+
};
|
2075
|
+
|
2076
|
+
|
2077
|
+
/**
|
2078
|
+
* Clears the field making it undefined.
|
2079
|
+
* @return {!proto.TendermintMsgAck} returns this
|
2080
|
+
*/
|
2081
|
+
proto.TendermintMsgAck.prototype.clearDenom = function() {
|
2082
|
+
return jspb.Message.setField(this, 7, undefined);
|
2083
|
+
};
|
2084
|
+
|
2085
|
+
|
2086
|
+
/**
|
2087
|
+
* Returns whether this field is set.
|
2088
|
+
* @return {boolean}
|
2089
|
+
*/
|
2090
|
+
proto.TendermintMsgAck.prototype.hasDenom = function() {
|
2091
|
+
return jspb.Message.getField(this, 7) != null;
|
2092
|
+
};
|
2093
|
+
|
2094
|
+
|
2095
|
+
/**
|
2096
|
+
* optional string chain_name = 8;
|
2097
|
+
* @return {string}
|
2098
|
+
*/
|
2099
|
+
proto.TendermintMsgAck.prototype.getChainName = function() {
|
2100
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
2101
|
+
};
|
2102
|
+
|
2103
|
+
|
2104
|
+
/**
|
2105
|
+
* @param {string} value
|
2106
|
+
* @return {!proto.TendermintMsgAck} returns this
|
2107
|
+
*/
|
2108
|
+
proto.TendermintMsgAck.prototype.setChainName = function(value) {
|
2109
|
+
return jspb.Message.setField(this, 8, value);
|
2110
|
+
};
|
2111
|
+
|
2112
|
+
|
2113
|
+
/**
|
2114
|
+
* Clears the field making it undefined.
|
2115
|
+
* @return {!proto.TendermintMsgAck} returns this
|
2116
|
+
*/
|
2117
|
+
proto.TendermintMsgAck.prototype.clearChainName = function() {
|
2118
|
+
return jspb.Message.setField(this, 8, undefined);
|
2119
|
+
};
|
2120
|
+
|
2121
|
+
|
2122
|
+
/**
|
2123
|
+
* Returns whether this field is set.
|
2124
|
+
* @return {boolean}
|
2125
|
+
*/
|
2126
|
+
proto.TendermintMsgAck.prototype.hasChainName = function() {
|
2127
|
+
return jspb.Message.getField(this, 8) != null;
|
2128
|
+
};
|
2129
|
+
|
2130
|
+
|
2131
|
+
/**
|
2132
|
+
* optional string message_type_prefix = 9;
|
2133
|
+
* @return {string}
|
2134
|
+
*/
|
2135
|
+
proto.TendermintMsgAck.prototype.getMessageTypePrefix = function() {
|
2136
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
|
2137
|
+
};
|
2138
|
+
|
2139
|
+
|
2140
|
+
/**
|
2141
|
+
* @param {string} value
|
2142
|
+
* @return {!proto.TendermintMsgAck} returns this
|
2143
|
+
*/
|
2144
|
+
proto.TendermintMsgAck.prototype.setMessageTypePrefix = function(value) {
|
2145
|
+
return jspb.Message.setField(this, 9, value);
|
2146
|
+
};
|
2147
|
+
|
2148
|
+
|
2149
|
+
/**
|
2150
|
+
* Clears the field making it undefined.
|
2151
|
+
* @return {!proto.TendermintMsgAck} returns this
|
2152
|
+
*/
|
2153
|
+
proto.TendermintMsgAck.prototype.clearMessageTypePrefix = function() {
|
2154
|
+
return jspb.Message.setField(this, 9, undefined);
|
2155
|
+
};
|
2156
|
+
|
2157
|
+
|
2158
|
+
/**
|
2159
|
+
* Returns whether this field is set.
|
2160
|
+
* @return {boolean}
|
2161
|
+
*/
|
2162
|
+
proto.TendermintMsgAck.prototype.hasMessageTypePrefix = function() {
|
2163
|
+
return jspb.Message.getField(this, 9) != null;
|
2164
|
+
};
|
2165
|
+
|
2166
|
+
|
2167
|
+
|
2168
|
+
|
2169
|
+
|
2170
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
2171
|
+
/**
|
2172
|
+
* Creates an object representation of this proto.
|
2173
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
2174
|
+
* Optional fields that are not set will be set to undefined.
|
2175
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
2176
|
+
* For the list of reserved names please see:
|
2177
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
2178
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
2179
|
+
* JSPB instance for transitional soy proto support:
|
2180
|
+
* http://goto/soy-param-migration
|
2181
|
+
* @return {!Object}
|
2182
|
+
*/
|
2183
|
+
proto.TendermintMsgSend.prototype.toObject = function(opt_includeInstance) {
|
2184
|
+
return proto.TendermintMsgSend.toObject(opt_includeInstance, this);
|
2185
|
+
};
|
2186
|
+
|
2187
|
+
|
2188
|
+
/**
|
2189
|
+
* Static version of the {@see toObject} method.
|
2190
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
2191
|
+
* the JSPB instance for transitional soy proto support:
|
2192
|
+
* http://goto/soy-param-migration
|
2193
|
+
* @param {!proto.TendermintMsgSend} msg The msg instance to transform.
|
2194
|
+
* @return {!Object}
|
2195
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2196
|
+
*/
|
2197
|
+
proto.TendermintMsgSend.toObject = function(includeInstance, msg) {
|
2198
|
+
var f, obj = {
|
2199
|
+
fromAddress: (f = jspb.Message.getField(msg, 6)) == null ? undefined : f,
|
2200
|
+
toAddress: (f = jspb.Message.getField(msg, 7)) == null ? undefined : f,
|
2201
|
+
amount: (f = jspb.Message.getField(msg, 8)) == null ? undefined : f,
|
2202
|
+
addressType: (f = jspb.Message.getField(msg, 9)) == null ? undefined : f,
|
2203
|
+
exchangeType: (f = msg.getExchangeType()) && types_pb.ExchangeType.toObject(includeInstance, f)
|
2204
|
+
};
|
2205
|
+
|
2206
|
+
if (includeInstance) {
|
2207
|
+
obj.$jspbMessageInstance = msg;
|
2208
|
+
}
|
2209
|
+
return obj;
|
2210
|
+
};
|
2211
|
+
}
|
2212
|
+
|
2213
|
+
|
2214
|
+
/**
|
2215
|
+
* Deserializes binary data (in protobuf wire format).
|
2216
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
2217
|
+
* @return {!proto.TendermintMsgSend}
|
2218
|
+
*/
|
2219
|
+
proto.TendermintMsgSend.deserializeBinary = function(bytes) {
|
2220
|
+
var reader = new jspb.BinaryReader(bytes);
|
2221
|
+
var msg = new proto.TendermintMsgSend;
|
2222
|
+
return proto.TendermintMsgSend.deserializeBinaryFromReader(msg, reader);
|
2223
|
+
};
|
2224
|
+
|
2225
|
+
|
2226
|
+
/**
|
2227
|
+
* Deserializes binary data (in protobuf wire format) from the
|
2228
|
+
* given reader into the given message object.
|
2229
|
+
* @param {!proto.TendermintMsgSend} msg The message object to deserialize into.
|
2230
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
2231
|
+
* @return {!proto.TendermintMsgSend}
|
1867
2232
|
*/
|
1868
2233
|
proto.TendermintMsgSend.deserializeBinaryFromReader = function(msg, reader) {
|
1869
2234
|
while (reader.nextField()) {
|
@@ -2145,6 +2510,1466 @@ proto.TendermintMsgSend.prototype.hasExchangeType = function() {
|
|
2145
2510
|
|
2146
2511
|
|
2147
2512
|
|
2513
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
2514
|
+
/**
|
2515
|
+
* Creates an object representation of this proto.
|
2516
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
2517
|
+
* Optional fields that are not set will be set to undefined.
|
2518
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
2519
|
+
* For the list of reserved names please see:
|
2520
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
2521
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
2522
|
+
* JSPB instance for transitional soy proto support:
|
2523
|
+
* http://goto/soy-param-migration
|
2524
|
+
* @return {!Object}
|
2525
|
+
*/
|
2526
|
+
proto.TendermintMsgDelegate.prototype.toObject = function(opt_includeInstance) {
|
2527
|
+
return proto.TendermintMsgDelegate.toObject(opt_includeInstance, this);
|
2528
|
+
};
|
2529
|
+
|
2530
|
+
|
2531
|
+
/**
|
2532
|
+
* Static version of the {@see toObject} method.
|
2533
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
2534
|
+
* the JSPB instance for transitional soy proto support:
|
2535
|
+
* http://goto/soy-param-migration
|
2536
|
+
* @param {!proto.TendermintMsgDelegate} msg The msg instance to transform.
|
2537
|
+
* @return {!Object}
|
2538
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2539
|
+
*/
|
2540
|
+
proto.TendermintMsgDelegate.toObject = function(includeInstance, msg) {
|
2541
|
+
var f, obj = {
|
2542
|
+
delegatorAddress: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
|
2543
|
+
validatorAddress: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f,
|
2544
|
+
amount: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f
|
2545
|
+
};
|
2546
|
+
|
2547
|
+
if (includeInstance) {
|
2548
|
+
obj.$jspbMessageInstance = msg;
|
2549
|
+
}
|
2550
|
+
return obj;
|
2551
|
+
};
|
2552
|
+
}
|
2553
|
+
|
2554
|
+
|
2555
|
+
/**
|
2556
|
+
* Deserializes binary data (in protobuf wire format).
|
2557
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
2558
|
+
* @return {!proto.TendermintMsgDelegate}
|
2559
|
+
*/
|
2560
|
+
proto.TendermintMsgDelegate.deserializeBinary = function(bytes) {
|
2561
|
+
var reader = new jspb.BinaryReader(bytes);
|
2562
|
+
var msg = new proto.TendermintMsgDelegate;
|
2563
|
+
return proto.TendermintMsgDelegate.deserializeBinaryFromReader(msg, reader);
|
2564
|
+
};
|
2565
|
+
|
2566
|
+
|
2567
|
+
/**
|
2568
|
+
* Deserializes binary data (in protobuf wire format) from the
|
2569
|
+
* given reader into the given message object.
|
2570
|
+
* @param {!proto.TendermintMsgDelegate} msg The message object to deserialize into.
|
2571
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
2572
|
+
* @return {!proto.TendermintMsgDelegate}
|
2573
|
+
*/
|
2574
|
+
proto.TendermintMsgDelegate.deserializeBinaryFromReader = function(msg, reader) {
|
2575
|
+
while (reader.nextField()) {
|
2576
|
+
if (reader.isEndGroup()) {
|
2577
|
+
break;
|
2578
|
+
}
|
2579
|
+
var field = reader.getFieldNumber();
|
2580
|
+
switch (field) {
|
2581
|
+
case 1:
|
2582
|
+
var value = /** @type {string} */ (reader.readString());
|
2583
|
+
msg.setDelegatorAddress(value);
|
2584
|
+
break;
|
2585
|
+
case 2:
|
2586
|
+
var value = /** @type {string} */ (reader.readString());
|
2587
|
+
msg.setValidatorAddress(value);
|
2588
|
+
break;
|
2589
|
+
case 3:
|
2590
|
+
var value = /** @type {string} */ (reader.readUint64String());
|
2591
|
+
msg.setAmount(value);
|
2592
|
+
break;
|
2593
|
+
default:
|
2594
|
+
reader.skipField();
|
2595
|
+
break;
|
2596
|
+
}
|
2597
|
+
}
|
2598
|
+
return msg;
|
2599
|
+
};
|
2600
|
+
|
2601
|
+
|
2602
|
+
/**
|
2603
|
+
* Serializes the message to binary data (in protobuf wire format).
|
2604
|
+
* @return {!Uint8Array}
|
2605
|
+
*/
|
2606
|
+
proto.TendermintMsgDelegate.prototype.serializeBinary = function() {
|
2607
|
+
var writer = new jspb.BinaryWriter();
|
2608
|
+
proto.TendermintMsgDelegate.serializeBinaryToWriter(this, writer);
|
2609
|
+
return writer.getResultBuffer();
|
2610
|
+
};
|
2611
|
+
|
2612
|
+
|
2613
|
+
/**
|
2614
|
+
* Serializes the given message to binary data (in protobuf wire
|
2615
|
+
* format), writing to the given BinaryWriter.
|
2616
|
+
* @param {!proto.TendermintMsgDelegate} message
|
2617
|
+
* @param {!jspb.BinaryWriter} writer
|
2618
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2619
|
+
*/
|
2620
|
+
proto.TendermintMsgDelegate.serializeBinaryToWriter = function(message, writer) {
|
2621
|
+
var f = undefined;
|
2622
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 1));
|
2623
|
+
if (f != null) {
|
2624
|
+
writer.writeString(
|
2625
|
+
1,
|
2626
|
+
f
|
2627
|
+
);
|
2628
|
+
}
|
2629
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
2630
|
+
if (f != null) {
|
2631
|
+
writer.writeString(
|
2632
|
+
2,
|
2633
|
+
f
|
2634
|
+
);
|
2635
|
+
}
|
2636
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
2637
|
+
if (f != null) {
|
2638
|
+
writer.writeUint64String(
|
2639
|
+
3,
|
2640
|
+
f
|
2641
|
+
);
|
2642
|
+
}
|
2643
|
+
};
|
2644
|
+
|
2645
|
+
|
2646
|
+
/**
|
2647
|
+
* optional string delegator_address = 1;
|
2648
|
+
* @return {string}
|
2649
|
+
*/
|
2650
|
+
proto.TendermintMsgDelegate.prototype.getDelegatorAddress = function() {
|
2651
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
2652
|
+
};
|
2653
|
+
|
2654
|
+
|
2655
|
+
/**
|
2656
|
+
* @param {string} value
|
2657
|
+
* @return {!proto.TendermintMsgDelegate} returns this
|
2658
|
+
*/
|
2659
|
+
proto.TendermintMsgDelegate.prototype.setDelegatorAddress = function(value) {
|
2660
|
+
return jspb.Message.setField(this, 1, value);
|
2661
|
+
};
|
2662
|
+
|
2663
|
+
|
2664
|
+
/**
|
2665
|
+
* Clears the field making it undefined.
|
2666
|
+
* @return {!proto.TendermintMsgDelegate} returns this
|
2667
|
+
*/
|
2668
|
+
proto.TendermintMsgDelegate.prototype.clearDelegatorAddress = function() {
|
2669
|
+
return jspb.Message.setField(this, 1, undefined);
|
2670
|
+
};
|
2671
|
+
|
2672
|
+
|
2673
|
+
/**
|
2674
|
+
* Returns whether this field is set.
|
2675
|
+
* @return {boolean}
|
2676
|
+
*/
|
2677
|
+
proto.TendermintMsgDelegate.prototype.hasDelegatorAddress = function() {
|
2678
|
+
return jspb.Message.getField(this, 1) != null;
|
2679
|
+
};
|
2680
|
+
|
2681
|
+
|
2682
|
+
/**
|
2683
|
+
* optional string validator_address = 2;
|
2684
|
+
* @return {string}
|
2685
|
+
*/
|
2686
|
+
proto.TendermintMsgDelegate.prototype.getValidatorAddress = function() {
|
2687
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
2688
|
+
};
|
2689
|
+
|
2690
|
+
|
2691
|
+
/**
|
2692
|
+
* @param {string} value
|
2693
|
+
* @return {!proto.TendermintMsgDelegate} returns this
|
2694
|
+
*/
|
2695
|
+
proto.TendermintMsgDelegate.prototype.setValidatorAddress = function(value) {
|
2696
|
+
return jspb.Message.setField(this, 2, value);
|
2697
|
+
};
|
2698
|
+
|
2699
|
+
|
2700
|
+
/**
|
2701
|
+
* Clears the field making it undefined.
|
2702
|
+
* @return {!proto.TendermintMsgDelegate} returns this
|
2703
|
+
*/
|
2704
|
+
proto.TendermintMsgDelegate.prototype.clearValidatorAddress = function() {
|
2705
|
+
return jspb.Message.setField(this, 2, undefined);
|
2706
|
+
};
|
2707
|
+
|
2708
|
+
|
2709
|
+
/**
|
2710
|
+
* Returns whether this field is set.
|
2711
|
+
* @return {boolean}
|
2712
|
+
*/
|
2713
|
+
proto.TendermintMsgDelegate.prototype.hasValidatorAddress = function() {
|
2714
|
+
return jspb.Message.getField(this, 2) != null;
|
2715
|
+
};
|
2716
|
+
|
2717
|
+
|
2718
|
+
/**
|
2719
|
+
* optional uint64 amount = 3;
|
2720
|
+
* @return {string}
|
2721
|
+
*/
|
2722
|
+
proto.TendermintMsgDelegate.prototype.getAmount = function() {
|
2723
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "0"));
|
2724
|
+
};
|
2725
|
+
|
2726
|
+
|
2727
|
+
/**
|
2728
|
+
* @param {string} value
|
2729
|
+
* @return {!proto.TendermintMsgDelegate} returns this
|
2730
|
+
*/
|
2731
|
+
proto.TendermintMsgDelegate.prototype.setAmount = function(value) {
|
2732
|
+
return jspb.Message.setField(this, 3, value);
|
2733
|
+
};
|
2734
|
+
|
2735
|
+
|
2736
|
+
/**
|
2737
|
+
* Clears the field making it undefined.
|
2738
|
+
* @return {!proto.TendermintMsgDelegate} returns this
|
2739
|
+
*/
|
2740
|
+
proto.TendermintMsgDelegate.prototype.clearAmount = function() {
|
2741
|
+
return jspb.Message.setField(this, 3, undefined);
|
2742
|
+
};
|
2743
|
+
|
2744
|
+
|
2745
|
+
/**
|
2746
|
+
* Returns whether this field is set.
|
2747
|
+
* @return {boolean}
|
2748
|
+
*/
|
2749
|
+
proto.TendermintMsgDelegate.prototype.hasAmount = function() {
|
2750
|
+
return jspb.Message.getField(this, 3) != null;
|
2751
|
+
};
|
2752
|
+
|
2753
|
+
|
2754
|
+
|
2755
|
+
|
2756
|
+
|
2757
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
2758
|
+
/**
|
2759
|
+
* Creates an object representation of this proto.
|
2760
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
2761
|
+
* Optional fields that are not set will be set to undefined.
|
2762
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
2763
|
+
* For the list of reserved names please see:
|
2764
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
2765
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
2766
|
+
* JSPB instance for transitional soy proto support:
|
2767
|
+
* http://goto/soy-param-migration
|
2768
|
+
* @return {!Object}
|
2769
|
+
*/
|
2770
|
+
proto.TendermintMsgUndelegate.prototype.toObject = function(opt_includeInstance) {
|
2771
|
+
return proto.TendermintMsgUndelegate.toObject(opt_includeInstance, this);
|
2772
|
+
};
|
2773
|
+
|
2774
|
+
|
2775
|
+
/**
|
2776
|
+
* Static version of the {@see toObject} method.
|
2777
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
2778
|
+
* the JSPB instance for transitional soy proto support:
|
2779
|
+
* http://goto/soy-param-migration
|
2780
|
+
* @param {!proto.TendermintMsgUndelegate} msg The msg instance to transform.
|
2781
|
+
* @return {!Object}
|
2782
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2783
|
+
*/
|
2784
|
+
proto.TendermintMsgUndelegate.toObject = function(includeInstance, msg) {
|
2785
|
+
var f, obj = {
|
2786
|
+
delegatorAddress: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
|
2787
|
+
validatorAddress: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f,
|
2788
|
+
amount: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f
|
2789
|
+
};
|
2790
|
+
|
2791
|
+
if (includeInstance) {
|
2792
|
+
obj.$jspbMessageInstance = msg;
|
2793
|
+
}
|
2794
|
+
return obj;
|
2795
|
+
};
|
2796
|
+
}
|
2797
|
+
|
2798
|
+
|
2799
|
+
/**
|
2800
|
+
* Deserializes binary data (in protobuf wire format).
|
2801
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
2802
|
+
* @return {!proto.TendermintMsgUndelegate}
|
2803
|
+
*/
|
2804
|
+
proto.TendermintMsgUndelegate.deserializeBinary = function(bytes) {
|
2805
|
+
var reader = new jspb.BinaryReader(bytes);
|
2806
|
+
var msg = new proto.TendermintMsgUndelegate;
|
2807
|
+
return proto.TendermintMsgUndelegate.deserializeBinaryFromReader(msg, reader);
|
2808
|
+
};
|
2809
|
+
|
2810
|
+
|
2811
|
+
/**
|
2812
|
+
* Deserializes binary data (in protobuf wire format) from the
|
2813
|
+
* given reader into the given message object.
|
2814
|
+
* @param {!proto.TendermintMsgUndelegate} msg The message object to deserialize into.
|
2815
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
2816
|
+
* @return {!proto.TendermintMsgUndelegate}
|
2817
|
+
*/
|
2818
|
+
proto.TendermintMsgUndelegate.deserializeBinaryFromReader = function(msg, reader) {
|
2819
|
+
while (reader.nextField()) {
|
2820
|
+
if (reader.isEndGroup()) {
|
2821
|
+
break;
|
2822
|
+
}
|
2823
|
+
var field = reader.getFieldNumber();
|
2824
|
+
switch (field) {
|
2825
|
+
case 1:
|
2826
|
+
var value = /** @type {string} */ (reader.readString());
|
2827
|
+
msg.setDelegatorAddress(value);
|
2828
|
+
break;
|
2829
|
+
case 2:
|
2830
|
+
var value = /** @type {string} */ (reader.readString());
|
2831
|
+
msg.setValidatorAddress(value);
|
2832
|
+
break;
|
2833
|
+
case 3:
|
2834
|
+
var value = /** @type {string} */ (reader.readUint64String());
|
2835
|
+
msg.setAmount(value);
|
2836
|
+
break;
|
2837
|
+
default:
|
2838
|
+
reader.skipField();
|
2839
|
+
break;
|
2840
|
+
}
|
2841
|
+
}
|
2842
|
+
return msg;
|
2843
|
+
};
|
2844
|
+
|
2845
|
+
|
2846
|
+
/**
|
2847
|
+
* Serializes the message to binary data (in protobuf wire format).
|
2848
|
+
* @return {!Uint8Array}
|
2849
|
+
*/
|
2850
|
+
proto.TendermintMsgUndelegate.prototype.serializeBinary = function() {
|
2851
|
+
var writer = new jspb.BinaryWriter();
|
2852
|
+
proto.TendermintMsgUndelegate.serializeBinaryToWriter(this, writer);
|
2853
|
+
return writer.getResultBuffer();
|
2854
|
+
};
|
2855
|
+
|
2856
|
+
|
2857
|
+
/**
|
2858
|
+
* Serializes the given message to binary data (in protobuf wire
|
2859
|
+
* format), writing to the given BinaryWriter.
|
2860
|
+
* @param {!proto.TendermintMsgUndelegate} message
|
2861
|
+
* @param {!jspb.BinaryWriter} writer
|
2862
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2863
|
+
*/
|
2864
|
+
proto.TendermintMsgUndelegate.serializeBinaryToWriter = function(message, writer) {
|
2865
|
+
var f = undefined;
|
2866
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 1));
|
2867
|
+
if (f != null) {
|
2868
|
+
writer.writeString(
|
2869
|
+
1,
|
2870
|
+
f
|
2871
|
+
);
|
2872
|
+
}
|
2873
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
2874
|
+
if (f != null) {
|
2875
|
+
writer.writeString(
|
2876
|
+
2,
|
2877
|
+
f
|
2878
|
+
);
|
2879
|
+
}
|
2880
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
2881
|
+
if (f != null) {
|
2882
|
+
writer.writeUint64String(
|
2883
|
+
3,
|
2884
|
+
f
|
2885
|
+
);
|
2886
|
+
}
|
2887
|
+
};
|
2888
|
+
|
2889
|
+
|
2890
|
+
/**
|
2891
|
+
* optional string delegator_address = 1;
|
2892
|
+
* @return {string}
|
2893
|
+
*/
|
2894
|
+
proto.TendermintMsgUndelegate.prototype.getDelegatorAddress = function() {
|
2895
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
2896
|
+
};
|
2897
|
+
|
2898
|
+
|
2899
|
+
/**
|
2900
|
+
* @param {string} value
|
2901
|
+
* @return {!proto.TendermintMsgUndelegate} returns this
|
2902
|
+
*/
|
2903
|
+
proto.TendermintMsgUndelegate.prototype.setDelegatorAddress = function(value) {
|
2904
|
+
return jspb.Message.setField(this, 1, value);
|
2905
|
+
};
|
2906
|
+
|
2907
|
+
|
2908
|
+
/**
|
2909
|
+
* Clears the field making it undefined.
|
2910
|
+
* @return {!proto.TendermintMsgUndelegate} returns this
|
2911
|
+
*/
|
2912
|
+
proto.TendermintMsgUndelegate.prototype.clearDelegatorAddress = function() {
|
2913
|
+
return jspb.Message.setField(this, 1, undefined);
|
2914
|
+
};
|
2915
|
+
|
2916
|
+
|
2917
|
+
/**
|
2918
|
+
* Returns whether this field is set.
|
2919
|
+
* @return {boolean}
|
2920
|
+
*/
|
2921
|
+
proto.TendermintMsgUndelegate.prototype.hasDelegatorAddress = function() {
|
2922
|
+
return jspb.Message.getField(this, 1) != null;
|
2923
|
+
};
|
2924
|
+
|
2925
|
+
|
2926
|
+
/**
|
2927
|
+
* optional string validator_address = 2;
|
2928
|
+
* @return {string}
|
2929
|
+
*/
|
2930
|
+
proto.TendermintMsgUndelegate.prototype.getValidatorAddress = function() {
|
2931
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
2932
|
+
};
|
2933
|
+
|
2934
|
+
|
2935
|
+
/**
|
2936
|
+
* @param {string} value
|
2937
|
+
* @return {!proto.TendermintMsgUndelegate} returns this
|
2938
|
+
*/
|
2939
|
+
proto.TendermintMsgUndelegate.prototype.setValidatorAddress = function(value) {
|
2940
|
+
return jspb.Message.setField(this, 2, value);
|
2941
|
+
};
|
2942
|
+
|
2943
|
+
|
2944
|
+
/**
|
2945
|
+
* Clears the field making it undefined.
|
2946
|
+
* @return {!proto.TendermintMsgUndelegate} returns this
|
2947
|
+
*/
|
2948
|
+
proto.TendermintMsgUndelegate.prototype.clearValidatorAddress = function() {
|
2949
|
+
return jspb.Message.setField(this, 2, undefined);
|
2950
|
+
};
|
2951
|
+
|
2952
|
+
|
2953
|
+
/**
|
2954
|
+
* Returns whether this field is set.
|
2955
|
+
* @return {boolean}
|
2956
|
+
*/
|
2957
|
+
proto.TendermintMsgUndelegate.prototype.hasValidatorAddress = function() {
|
2958
|
+
return jspb.Message.getField(this, 2) != null;
|
2959
|
+
};
|
2960
|
+
|
2961
|
+
|
2962
|
+
/**
|
2963
|
+
* optional uint64 amount = 3;
|
2964
|
+
* @return {string}
|
2965
|
+
*/
|
2966
|
+
proto.TendermintMsgUndelegate.prototype.getAmount = function() {
|
2967
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "0"));
|
2968
|
+
};
|
2969
|
+
|
2970
|
+
|
2971
|
+
/**
|
2972
|
+
* @param {string} value
|
2973
|
+
* @return {!proto.TendermintMsgUndelegate} returns this
|
2974
|
+
*/
|
2975
|
+
proto.TendermintMsgUndelegate.prototype.setAmount = function(value) {
|
2976
|
+
return jspb.Message.setField(this, 3, value);
|
2977
|
+
};
|
2978
|
+
|
2979
|
+
|
2980
|
+
/**
|
2981
|
+
* Clears the field making it undefined.
|
2982
|
+
* @return {!proto.TendermintMsgUndelegate} returns this
|
2983
|
+
*/
|
2984
|
+
proto.TendermintMsgUndelegate.prototype.clearAmount = function() {
|
2985
|
+
return jspb.Message.setField(this, 3, undefined);
|
2986
|
+
};
|
2987
|
+
|
2988
|
+
|
2989
|
+
/**
|
2990
|
+
* Returns whether this field is set.
|
2991
|
+
* @return {boolean}
|
2992
|
+
*/
|
2993
|
+
proto.TendermintMsgUndelegate.prototype.hasAmount = function() {
|
2994
|
+
return jspb.Message.getField(this, 3) != null;
|
2995
|
+
};
|
2996
|
+
|
2997
|
+
|
2998
|
+
|
2999
|
+
|
3000
|
+
|
3001
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
3002
|
+
/**
|
3003
|
+
* Creates an object representation of this proto.
|
3004
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
3005
|
+
* Optional fields that are not set will be set to undefined.
|
3006
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
3007
|
+
* For the list of reserved names please see:
|
3008
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
3009
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
3010
|
+
* JSPB instance for transitional soy proto support:
|
3011
|
+
* http://goto/soy-param-migration
|
3012
|
+
* @return {!Object}
|
3013
|
+
*/
|
3014
|
+
proto.TendermintMsgRedelegate.prototype.toObject = function(opt_includeInstance) {
|
3015
|
+
return proto.TendermintMsgRedelegate.toObject(opt_includeInstance, this);
|
3016
|
+
};
|
3017
|
+
|
3018
|
+
|
3019
|
+
/**
|
3020
|
+
* Static version of the {@see toObject} method.
|
3021
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
3022
|
+
* the JSPB instance for transitional soy proto support:
|
3023
|
+
* http://goto/soy-param-migration
|
3024
|
+
* @param {!proto.TendermintMsgRedelegate} msg The msg instance to transform.
|
3025
|
+
* @return {!Object}
|
3026
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
3027
|
+
*/
|
3028
|
+
proto.TendermintMsgRedelegate.toObject = function(includeInstance, msg) {
|
3029
|
+
var f, obj = {
|
3030
|
+
delegatorAddress: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
|
3031
|
+
validatorSrcAddress: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f,
|
3032
|
+
validatorDstAddress: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f,
|
3033
|
+
amount: (f = jspb.Message.getField(msg, 4)) == null ? undefined : f
|
3034
|
+
};
|
3035
|
+
|
3036
|
+
if (includeInstance) {
|
3037
|
+
obj.$jspbMessageInstance = msg;
|
3038
|
+
}
|
3039
|
+
return obj;
|
3040
|
+
};
|
3041
|
+
}
|
3042
|
+
|
3043
|
+
|
3044
|
+
/**
|
3045
|
+
* Deserializes binary data (in protobuf wire format).
|
3046
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
3047
|
+
* @return {!proto.TendermintMsgRedelegate}
|
3048
|
+
*/
|
3049
|
+
proto.TendermintMsgRedelegate.deserializeBinary = function(bytes) {
|
3050
|
+
var reader = new jspb.BinaryReader(bytes);
|
3051
|
+
var msg = new proto.TendermintMsgRedelegate;
|
3052
|
+
return proto.TendermintMsgRedelegate.deserializeBinaryFromReader(msg, reader);
|
3053
|
+
};
|
3054
|
+
|
3055
|
+
|
3056
|
+
/**
|
3057
|
+
* Deserializes binary data (in protobuf wire format) from the
|
3058
|
+
* given reader into the given message object.
|
3059
|
+
* @param {!proto.TendermintMsgRedelegate} msg The message object to deserialize into.
|
3060
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
3061
|
+
* @return {!proto.TendermintMsgRedelegate}
|
3062
|
+
*/
|
3063
|
+
proto.TendermintMsgRedelegate.deserializeBinaryFromReader = function(msg, reader) {
|
3064
|
+
while (reader.nextField()) {
|
3065
|
+
if (reader.isEndGroup()) {
|
3066
|
+
break;
|
3067
|
+
}
|
3068
|
+
var field = reader.getFieldNumber();
|
3069
|
+
switch (field) {
|
3070
|
+
case 1:
|
3071
|
+
var value = /** @type {string} */ (reader.readString());
|
3072
|
+
msg.setDelegatorAddress(value);
|
3073
|
+
break;
|
3074
|
+
case 2:
|
3075
|
+
var value = /** @type {string} */ (reader.readString());
|
3076
|
+
msg.setValidatorSrcAddress(value);
|
3077
|
+
break;
|
3078
|
+
case 3:
|
3079
|
+
var value = /** @type {string} */ (reader.readString());
|
3080
|
+
msg.setValidatorDstAddress(value);
|
3081
|
+
break;
|
3082
|
+
case 4:
|
3083
|
+
var value = /** @type {string} */ (reader.readUint64String());
|
3084
|
+
msg.setAmount(value);
|
3085
|
+
break;
|
3086
|
+
default:
|
3087
|
+
reader.skipField();
|
3088
|
+
break;
|
3089
|
+
}
|
3090
|
+
}
|
3091
|
+
return msg;
|
3092
|
+
};
|
3093
|
+
|
3094
|
+
|
3095
|
+
/**
|
3096
|
+
* Serializes the message to binary data (in protobuf wire format).
|
3097
|
+
* @return {!Uint8Array}
|
3098
|
+
*/
|
3099
|
+
proto.TendermintMsgRedelegate.prototype.serializeBinary = function() {
|
3100
|
+
var writer = new jspb.BinaryWriter();
|
3101
|
+
proto.TendermintMsgRedelegate.serializeBinaryToWriter(this, writer);
|
3102
|
+
return writer.getResultBuffer();
|
3103
|
+
};
|
3104
|
+
|
3105
|
+
|
3106
|
+
/**
|
3107
|
+
* Serializes the given message to binary data (in protobuf wire
|
3108
|
+
* format), writing to the given BinaryWriter.
|
3109
|
+
* @param {!proto.TendermintMsgRedelegate} message
|
3110
|
+
* @param {!jspb.BinaryWriter} writer
|
3111
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
3112
|
+
*/
|
3113
|
+
proto.TendermintMsgRedelegate.serializeBinaryToWriter = function(message, writer) {
|
3114
|
+
var f = undefined;
|
3115
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 1));
|
3116
|
+
if (f != null) {
|
3117
|
+
writer.writeString(
|
3118
|
+
1,
|
3119
|
+
f
|
3120
|
+
);
|
3121
|
+
}
|
3122
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
3123
|
+
if (f != null) {
|
3124
|
+
writer.writeString(
|
3125
|
+
2,
|
3126
|
+
f
|
3127
|
+
);
|
3128
|
+
}
|
3129
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
3130
|
+
if (f != null) {
|
3131
|
+
writer.writeString(
|
3132
|
+
3,
|
3133
|
+
f
|
3134
|
+
);
|
3135
|
+
}
|
3136
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
3137
|
+
if (f != null) {
|
3138
|
+
writer.writeUint64String(
|
3139
|
+
4,
|
3140
|
+
f
|
3141
|
+
);
|
3142
|
+
}
|
3143
|
+
};
|
3144
|
+
|
3145
|
+
|
3146
|
+
/**
|
3147
|
+
* optional string delegator_address = 1;
|
3148
|
+
* @return {string}
|
3149
|
+
*/
|
3150
|
+
proto.TendermintMsgRedelegate.prototype.getDelegatorAddress = function() {
|
3151
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
3152
|
+
};
|
3153
|
+
|
3154
|
+
|
3155
|
+
/**
|
3156
|
+
* @param {string} value
|
3157
|
+
* @return {!proto.TendermintMsgRedelegate} returns this
|
3158
|
+
*/
|
3159
|
+
proto.TendermintMsgRedelegate.prototype.setDelegatorAddress = function(value) {
|
3160
|
+
return jspb.Message.setField(this, 1, value);
|
3161
|
+
};
|
3162
|
+
|
3163
|
+
|
3164
|
+
/**
|
3165
|
+
* Clears the field making it undefined.
|
3166
|
+
* @return {!proto.TendermintMsgRedelegate} returns this
|
3167
|
+
*/
|
3168
|
+
proto.TendermintMsgRedelegate.prototype.clearDelegatorAddress = function() {
|
3169
|
+
return jspb.Message.setField(this, 1, undefined);
|
3170
|
+
};
|
3171
|
+
|
3172
|
+
|
3173
|
+
/**
|
3174
|
+
* Returns whether this field is set.
|
3175
|
+
* @return {boolean}
|
3176
|
+
*/
|
3177
|
+
proto.TendermintMsgRedelegate.prototype.hasDelegatorAddress = function() {
|
3178
|
+
return jspb.Message.getField(this, 1) != null;
|
3179
|
+
};
|
3180
|
+
|
3181
|
+
|
3182
|
+
/**
|
3183
|
+
* optional string validator_src_address = 2;
|
3184
|
+
* @return {string}
|
3185
|
+
*/
|
3186
|
+
proto.TendermintMsgRedelegate.prototype.getValidatorSrcAddress = function() {
|
3187
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
3188
|
+
};
|
3189
|
+
|
3190
|
+
|
3191
|
+
/**
|
3192
|
+
* @param {string} value
|
3193
|
+
* @return {!proto.TendermintMsgRedelegate} returns this
|
3194
|
+
*/
|
3195
|
+
proto.TendermintMsgRedelegate.prototype.setValidatorSrcAddress = function(value) {
|
3196
|
+
return jspb.Message.setField(this, 2, value);
|
3197
|
+
};
|
3198
|
+
|
3199
|
+
|
3200
|
+
/**
|
3201
|
+
* Clears the field making it undefined.
|
3202
|
+
* @return {!proto.TendermintMsgRedelegate} returns this
|
3203
|
+
*/
|
3204
|
+
proto.TendermintMsgRedelegate.prototype.clearValidatorSrcAddress = function() {
|
3205
|
+
return jspb.Message.setField(this, 2, undefined);
|
3206
|
+
};
|
3207
|
+
|
3208
|
+
|
3209
|
+
/**
|
3210
|
+
* Returns whether this field is set.
|
3211
|
+
* @return {boolean}
|
3212
|
+
*/
|
3213
|
+
proto.TendermintMsgRedelegate.prototype.hasValidatorSrcAddress = function() {
|
3214
|
+
return jspb.Message.getField(this, 2) != null;
|
3215
|
+
};
|
3216
|
+
|
3217
|
+
|
3218
|
+
/**
|
3219
|
+
* optional string validator_dst_address = 3;
|
3220
|
+
* @return {string}
|
3221
|
+
*/
|
3222
|
+
proto.TendermintMsgRedelegate.prototype.getValidatorDstAddress = function() {
|
3223
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
3224
|
+
};
|
3225
|
+
|
3226
|
+
|
3227
|
+
/**
|
3228
|
+
* @param {string} value
|
3229
|
+
* @return {!proto.TendermintMsgRedelegate} returns this
|
3230
|
+
*/
|
3231
|
+
proto.TendermintMsgRedelegate.prototype.setValidatorDstAddress = function(value) {
|
3232
|
+
return jspb.Message.setField(this, 3, value);
|
3233
|
+
};
|
3234
|
+
|
3235
|
+
|
3236
|
+
/**
|
3237
|
+
* Clears the field making it undefined.
|
3238
|
+
* @return {!proto.TendermintMsgRedelegate} returns this
|
3239
|
+
*/
|
3240
|
+
proto.TendermintMsgRedelegate.prototype.clearValidatorDstAddress = function() {
|
3241
|
+
return jspb.Message.setField(this, 3, undefined);
|
3242
|
+
};
|
3243
|
+
|
3244
|
+
|
3245
|
+
/**
|
3246
|
+
* Returns whether this field is set.
|
3247
|
+
* @return {boolean}
|
3248
|
+
*/
|
3249
|
+
proto.TendermintMsgRedelegate.prototype.hasValidatorDstAddress = function() {
|
3250
|
+
return jspb.Message.getField(this, 3) != null;
|
3251
|
+
};
|
3252
|
+
|
3253
|
+
|
3254
|
+
/**
|
3255
|
+
* optional uint64 amount = 4;
|
3256
|
+
* @return {string}
|
3257
|
+
*/
|
3258
|
+
proto.TendermintMsgRedelegate.prototype.getAmount = function() {
|
3259
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "0"));
|
3260
|
+
};
|
3261
|
+
|
3262
|
+
|
3263
|
+
/**
|
3264
|
+
* @param {string} value
|
3265
|
+
* @return {!proto.TendermintMsgRedelegate} returns this
|
3266
|
+
*/
|
3267
|
+
proto.TendermintMsgRedelegate.prototype.setAmount = function(value) {
|
3268
|
+
return jspb.Message.setField(this, 4, value);
|
3269
|
+
};
|
3270
|
+
|
3271
|
+
|
3272
|
+
/**
|
3273
|
+
* Clears the field making it undefined.
|
3274
|
+
* @return {!proto.TendermintMsgRedelegate} returns this
|
3275
|
+
*/
|
3276
|
+
proto.TendermintMsgRedelegate.prototype.clearAmount = function() {
|
3277
|
+
return jspb.Message.setField(this, 4, undefined);
|
3278
|
+
};
|
3279
|
+
|
3280
|
+
|
3281
|
+
/**
|
3282
|
+
* Returns whether this field is set.
|
3283
|
+
* @return {boolean}
|
3284
|
+
*/
|
3285
|
+
proto.TendermintMsgRedelegate.prototype.hasAmount = function() {
|
3286
|
+
return jspb.Message.getField(this, 4) != null;
|
3287
|
+
};
|
3288
|
+
|
3289
|
+
|
3290
|
+
|
3291
|
+
|
3292
|
+
|
3293
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
3294
|
+
/**
|
3295
|
+
* Creates an object representation of this proto.
|
3296
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
3297
|
+
* Optional fields that are not set will be set to undefined.
|
3298
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
3299
|
+
* For the list of reserved names please see:
|
3300
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
3301
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
3302
|
+
* JSPB instance for transitional soy proto support:
|
3303
|
+
* http://goto/soy-param-migration
|
3304
|
+
* @return {!Object}
|
3305
|
+
*/
|
3306
|
+
proto.TendermintMsgRewards.prototype.toObject = function(opt_includeInstance) {
|
3307
|
+
return proto.TendermintMsgRewards.toObject(opt_includeInstance, this);
|
3308
|
+
};
|
3309
|
+
|
3310
|
+
|
3311
|
+
/**
|
3312
|
+
* Static version of the {@see toObject} method.
|
3313
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
3314
|
+
* the JSPB instance for transitional soy proto support:
|
3315
|
+
* http://goto/soy-param-migration
|
3316
|
+
* @param {!proto.TendermintMsgRewards} msg The msg instance to transform.
|
3317
|
+
* @return {!Object}
|
3318
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
3319
|
+
*/
|
3320
|
+
proto.TendermintMsgRewards.toObject = function(includeInstance, msg) {
|
3321
|
+
var f, obj = {
|
3322
|
+
delegatorAddress: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
|
3323
|
+
validatorAddress: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f,
|
3324
|
+
amount: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f
|
3325
|
+
};
|
3326
|
+
|
3327
|
+
if (includeInstance) {
|
3328
|
+
obj.$jspbMessageInstance = msg;
|
3329
|
+
}
|
3330
|
+
return obj;
|
3331
|
+
};
|
3332
|
+
}
|
3333
|
+
|
3334
|
+
|
3335
|
+
/**
|
3336
|
+
* Deserializes binary data (in protobuf wire format).
|
3337
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
3338
|
+
* @return {!proto.TendermintMsgRewards}
|
3339
|
+
*/
|
3340
|
+
proto.TendermintMsgRewards.deserializeBinary = function(bytes) {
|
3341
|
+
var reader = new jspb.BinaryReader(bytes);
|
3342
|
+
var msg = new proto.TendermintMsgRewards;
|
3343
|
+
return proto.TendermintMsgRewards.deserializeBinaryFromReader(msg, reader);
|
3344
|
+
};
|
3345
|
+
|
3346
|
+
|
3347
|
+
/**
|
3348
|
+
* Deserializes binary data (in protobuf wire format) from the
|
3349
|
+
* given reader into the given message object.
|
3350
|
+
* @param {!proto.TendermintMsgRewards} msg The message object to deserialize into.
|
3351
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
3352
|
+
* @return {!proto.TendermintMsgRewards}
|
3353
|
+
*/
|
3354
|
+
proto.TendermintMsgRewards.deserializeBinaryFromReader = function(msg, reader) {
|
3355
|
+
while (reader.nextField()) {
|
3356
|
+
if (reader.isEndGroup()) {
|
3357
|
+
break;
|
3358
|
+
}
|
3359
|
+
var field = reader.getFieldNumber();
|
3360
|
+
switch (field) {
|
3361
|
+
case 1:
|
3362
|
+
var value = /** @type {string} */ (reader.readString());
|
3363
|
+
msg.setDelegatorAddress(value);
|
3364
|
+
break;
|
3365
|
+
case 2:
|
3366
|
+
var value = /** @type {string} */ (reader.readString());
|
3367
|
+
msg.setValidatorAddress(value);
|
3368
|
+
break;
|
3369
|
+
case 3:
|
3370
|
+
var value = /** @type {string} */ (reader.readUint64String());
|
3371
|
+
msg.setAmount(value);
|
3372
|
+
break;
|
3373
|
+
default:
|
3374
|
+
reader.skipField();
|
3375
|
+
break;
|
3376
|
+
}
|
3377
|
+
}
|
3378
|
+
return msg;
|
3379
|
+
};
|
3380
|
+
|
3381
|
+
|
3382
|
+
/**
|
3383
|
+
* Serializes the message to binary data (in protobuf wire format).
|
3384
|
+
* @return {!Uint8Array}
|
3385
|
+
*/
|
3386
|
+
proto.TendermintMsgRewards.prototype.serializeBinary = function() {
|
3387
|
+
var writer = new jspb.BinaryWriter();
|
3388
|
+
proto.TendermintMsgRewards.serializeBinaryToWriter(this, writer);
|
3389
|
+
return writer.getResultBuffer();
|
3390
|
+
};
|
3391
|
+
|
3392
|
+
|
3393
|
+
/**
|
3394
|
+
* Serializes the given message to binary data (in protobuf wire
|
3395
|
+
* format), writing to the given BinaryWriter.
|
3396
|
+
* @param {!proto.TendermintMsgRewards} message
|
3397
|
+
* @param {!jspb.BinaryWriter} writer
|
3398
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
3399
|
+
*/
|
3400
|
+
proto.TendermintMsgRewards.serializeBinaryToWriter = function(message, writer) {
|
3401
|
+
var f = undefined;
|
3402
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 1));
|
3403
|
+
if (f != null) {
|
3404
|
+
writer.writeString(
|
3405
|
+
1,
|
3406
|
+
f
|
3407
|
+
);
|
3408
|
+
}
|
3409
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
3410
|
+
if (f != null) {
|
3411
|
+
writer.writeString(
|
3412
|
+
2,
|
3413
|
+
f
|
3414
|
+
);
|
3415
|
+
}
|
3416
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
3417
|
+
if (f != null) {
|
3418
|
+
writer.writeUint64String(
|
3419
|
+
3,
|
3420
|
+
f
|
3421
|
+
);
|
3422
|
+
}
|
3423
|
+
};
|
3424
|
+
|
3425
|
+
|
3426
|
+
/**
|
3427
|
+
* optional string delegator_address = 1;
|
3428
|
+
* @return {string}
|
3429
|
+
*/
|
3430
|
+
proto.TendermintMsgRewards.prototype.getDelegatorAddress = function() {
|
3431
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
3432
|
+
};
|
3433
|
+
|
3434
|
+
|
3435
|
+
/**
|
3436
|
+
* @param {string} value
|
3437
|
+
* @return {!proto.TendermintMsgRewards} returns this
|
3438
|
+
*/
|
3439
|
+
proto.TendermintMsgRewards.prototype.setDelegatorAddress = function(value) {
|
3440
|
+
return jspb.Message.setField(this, 1, value);
|
3441
|
+
};
|
3442
|
+
|
3443
|
+
|
3444
|
+
/**
|
3445
|
+
* Clears the field making it undefined.
|
3446
|
+
* @return {!proto.TendermintMsgRewards} returns this
|
3447
|
+
*/
|
3448
|
+
proto.TendermintMsgRewards.prototype.clearDelegatorAddress = function() {
|
3449
|
+
return jspb.Message.setField(this, 1, undefined);
|
3450
|
+
};
|
3451
|
+
|
3452
|
+
|
3453
|
+
/**
|
3454
|
+
* Returns whether this field is set.
|
3455
|
+
* @return {boolean}
|
3456
|
+
*/
|
3457
|
+
proto.TendermintMsgRewards.prototype.hasDelegatorAddress = function() {
|
3458
|
+
return jspb.Message.getField(this, 1) != null;
|
3459
|
+
};
|
3460
|
+
|
3461
|
+
|
3462
|
+
/**
|
3463
|
+
* optional string validator_address = 2;
|
3464
|
+
* @return {string}
|
3465
|
+
*/
|
3466
|
+
proto.TendermintMsgRewards.prototype.getValidatorAddress = function() {
|
3467
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
3468
|
+
};
|
3469
|
+
|
3470
|
+
|
3471
|
+
/**
|
3472
|
+
* @param {string} value
|
3473
|
+
* @return {!proto.TendermintMsgRewards} returns this
|
3474
|
+
*/
|
3475
|
+
proto.TendermintMsgRewards.prototype.setValidatorAddress = function(value) {
|
3476
|
+
return jspb.Message.setField(this, 2, value);
|
3477
|
+
};
|
3478
|
+
|
3479
|
+
|
3480
|
+
/**
|
3481
|
+
* Clears the field making it undefined.
|
3482
|
+
* @return {!proto.TendermintMsgRewards} returns this
|
3483
|
+
*/
|
3484
|
+
proto.TendermintMsgRewards.prototype.clearValidatorAddress = function() {
|
3485
|
+
return jspb.Message.setField(this, 2, undefined);
|
3486
|
+
};
|
3487
|
+
|
3488
|
+
|
3489
|
+
/**
|
3490
|
+
* Returns whether this field is set.
|
3491
|
+
* @return {boolean}
|
3492
|
+
*/
|
3493
|
+
proto.TendermintMsgRewards.prototype.hasValidatorAddress = function() {
|
3494
|
+
return jspb.Message.getField(this, 2) != null;
|
3495
|
+
};
|
3496
|
+
|
3497
|
+
|
3498
|
+
/**
|
3499
|
+
* optional uint64 amount = 3;
|
3500
|
+
* @return {string}
|
3501
|
+
*/
|
3502
|
+
proto.TendermintMsgRewards.prototype.getAmount = function() {
|
3503
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "0"));
|
3504
|
+
};
|
3505
|
+
|
3506
|
+
|
3507
|
+
/**
|
3508
|
+
* @param {string} value
|
3509
|
+
* @return {!proto.TendermintMsgRewards} returns this
|
3510
|
+
*/
|
3511
|
+
proto.TendermintMsgRewards.prototype.setAmount = function(value) {
|
3512
|
+
return jspb.Message.setField(this, 3, value);
|
3513
|
+
};
|
3514
|
+
|
3515
|
+
|
3516
|
+
/**
|
3517
|
+
* Clears the field making it undefined.
|
3518
|
+
* @return {!proto.TendermintMsgRewards} returns this
|
3519
|
+
*/
|
3520
|
+
proto.TendermintMsgRewards.prototype.clearAmount = function() {
|
3521
|
+
return jspb.Message.setField(this, 3, undefined);
|
3522
|
+
};
|
3523
|
+
|
3524
|
+
|
3525
|
+
/**
|
3526
|
+
* Returns whether this field is set.
|
3527
|
+
* @return {boolean}
|
3528
|
+
*/
|
3529
|
+
proto.TendermintMsgRewards.prototype.hasAmount = function() {
|
3530
|
+
return jspb.Message.getField(this, 3) != null;
|
3531
|
+
};
|
3532
|
+
|
3533
|
+
|
3534
|
+
|
3535
|
+
|
3536
|
+
|
3537
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
3538
|
+
/**
|
3539
|
+
* Creates an object representation of this proto.
|
3540
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
3541
|
+
* Optional fields that are not set will be set to undefined.
|
3542
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
3543
|
+
* For the list of reserved names please see:
|
3544
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
3545
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
3546
|
+
* JSPB instance for transitional soy proto support:
|
3547
|
+
* http://goto/soy-param-migration
|
3548
|
+
* @return {!Object}
|
3549
|
+
*/
|
3550
|
+
proto.TendermintMsgIBCTransfer.prototype.toObject = function(opt_includeInstance) {
|
3551
|
+
return proto.TendermintMsgIBCTransfer.toObject(opt_includeInstance, this);
|
3552
|
+
};
|
3553
|
+
|
3554
|
+
|
3555
|
+
/**
|
3556
|
+
* Static version of the {@see toObject} method.
|
3557
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
3558
|
+
* the JSPB instance for transitional soy proto support:
|
3559
|
+
* http://goto/soy-param-migration
|
3560
|
+
* @param {!proto.TendermintMsgIBCTransfer} msg The msg instance to transform.
|
3561
|
+
* @return {!Object}
|
3562
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
3563
|
+
*/
|
3564
|
+
proto.TendermintMsgIBCTransfer.toObject = function(includeInstance, msg) {
|
3565
|
+
var f, obj = {
|
3566
|
+
receiver: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
|
3567
|
+
sender: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f,
|
3568
|
+
sourceChannel: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f,
|
3569
|
+
sourcePort: (f = jspb.Message.getField(msg, 4)) == null ? undefined : f,
|
3570
|
+
revisionHeight: (f = jspb.Message.getField(msg, 5)) == null ? undefined : f,
|
3571
|
+
revisionNumber: (f = jspb.Message.getField(msg, 6)) == null ? undefined : f,
|
3572
|
+
denom: (f = jspb.Message.getField(msg, 7)) == null ? undefined : f
|
3573
|
+
};
|
3574
|
+
|
3575
|
+
if (includeInstance) {
|
3576
|
+
obj.$jspbMessageInstance = msg;
|
3577
|
+
}
|
3578
|
+
return obj;
|
3579
|
+
};
|
3580
|
+
}
|
3581
|
+
|
3582
|
+
|
3583
|
+
/**
|
3584
|
+
* Deserializes binary data (in protobuf wire format).
|
3585
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
3586
|
+
* @return {!proto.TendermintMsgIBCTransfer}
|
3587
|
+
*/
|
3588
|
+
proto.TendermintMsgIBCTransfer.deserializeBinary = function(bytes) {
|
3589
|
+
var reader = new jspb.BinaryReader(bytes);
|
3590
|
+
var msg = new proto.TendermintMsgIBCTransfer;
|
3591
|
+
return proto.TendermintMsgIBCTransfer.deserializeBinaryFromReader(msg, reader);
|
3592
|
+
};
|
3593
|
+
|
3594
|
+
|
3595
|
+
/**
|
3596
|
+
* Deserializes binary data (in protobuf wire format) from the
|
3597
|
+
* given reader into the given message object.
|
3598
|
+
* @param {!proto.TendermintMsgIBCTransfer} msg The message object to deserialize into.
|
3599
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
3600
|
+
* @return {!proto.TendermintMsgIBCTransfer}
|
3601
|
+
*/
|
3602
|
+
proto.TendermintMsgIBCTransfer.deserializeBinaryFromReader = function(msg, reader) {
|
3603
|
+
while (reader.nextField()) {
|
3604
|
+
if (reader.isEndGroup()) {
|
3605
|
+
break;
|
3606
|
+
}
|
3607
|
+
var field = reader.getFieldNumber();
|
3608
|
+
switch (field) {
|
3609
|
+
case 1:
|
3610
|
+
var value = /** @type {string} */ (reader.readString());
|
3611
|
+
msg.setReceiver(value);
|
3612
|
+
break;
|
3613
|
+
case 2:
|
3614
|
+
var value = /** @type {string} */ (reader.readString());
|
3615
|
+
msg.setSender(value);
|
3616
|
+
break;
|
3617
|
+
case 3:
|
3618
|
+
var value = /** @type {string} */ (reader.readString());
|
3619
|
+
msg.setSourceChannel(value);
|
3620
|
+
break;
|
3621
|
+
case 4:
|
3622
|
+
var value = /** @type {string} */ (reader.readString());
|
3623
|
+
msg.setSourcePort(value);
|
3624
|
+
break;
|
3625
|
+
case 5:
|
3626
|
+
var value = /** @type {string} */ (reader.readString());
|
3627
|
+
msg.setRevisionHeight(value);
|
3628
|
+
break;
|
3629
|
+
case 6:
|
3630
|
+
var value = /** @type {string} */ (reader.readString());
|
3631
|
+
msg.setRevisionNumber(value);
|
3632
|
+
break;
|
3633
|
+
case 7:
|
3634
|
+
var value = /** @type {string} */ (reader.readString());
|
3635
|
+
msg.setDenom(value);
|
3636
|
+
break;
|
3637
|
+
default:
|
3638
|
+
reader.skipField();
|
3639
|
+
break;
|
3640
|
+
}
|
3641
|
+
}
|
3642
|
+
return msg;
|
3643
|
+
};
|
3644
|
+
|
3645
|
+
|
3646
|
+
/**
|
3647
|
+
* Serializes the message to binary data (in protobuf wire format).
|
3648
|
+
* @return {!Uint8Array}
|
3649
|
+
*/
|
3650
|
+
proto.TendermintMsgIBCTransfer.prototype.serializeBinary = function() {
|
3651
|
+
var writer = new jspb.BinaryWriter();
|
3652
|
+
proto.TendermintMsgIBCTransfer.serializeBinaryToWriter(this, writer);
|
3653
|
+
return writer.getResultBuffer();
|
3654
|
+
};
|
3655
|
+
|
3656
|
+
|
3657
|
+
/**
|
3658
|
+
* Serializes the given message to binary data (in protobuf wire
|
3659
|
+
* format), writing to the given BinaryWriter.
|
3660
|
+
* @param {!proto.TendermintMsgIBCTransfer} message
|
3661
|
+
* @param {!jspb.BinaryWriter} writer
|
3662
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
3663
|
+
*/
|
3664
|
+
proto.TendermintMsgIBCTransfer.serializeBinaryToWriter = function(message, writer) {
|
3665
|
+
var f = undefined;
|
3666
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 1));
|
3667
|
+
if (f != null) {
|
3668
|
+
writer.writeString(
|
3669
|
+
1,
|
3670
|
+
f
|
3671
|
+
);
|
3672
|
+
}
|
3673
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
3674
|
+
if (f != null) {
|
3675
|
+
writer.writeString(
|
3676
|
+
2,
|
3677
|
+
f
|
3678
|
+
);
|
3679
|
+
}
|
3680
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
3681
|
+
if (f != null) {
|
3682
|
+
writer.writeString(
|
3683
|
+
3,
|
3684
|
+
f
|
3685
|
+
);
|
3686
|
+
}
|
3687
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
3688
|
+
if (f != null) {
|
3689
|
+
writer.writeString(
|
3690
|
+
4,
|
3691
|
+
f
|
3692
|
+
);
|
3693
|
+
}
|
3694
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 5));
|
3695
|
+
if (f != null) {
|
3696
|
+
writer.writeString(
|
3697
|
+
5,
|
3698
|
+
f
|
3699
|
+
);
|
3700
|
+
}
|
3701
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 6));
|
3702
|
+
if (f != null) {
|
3703
|
+
writer.writeString(
|
3704
|
+
6,
|
3705
|
+
f
|
3706
|
+
);
|
3707
|
+
}
|
3708
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 7));
|
3709
|
+
if (f != null) {
|
3710
|
+
writer.writeString(
|
3711
|
+
7,
|
3712
|
+
f
|
3713
|
+
);
|
3714
|
+
}
|
3715
|
+
};
|
3716
|
+
|
3717
|
+
|
3718
|
+
/**
|
3719
|
+
* optional string receiver = 1;
|
3720
|
+
* @return {string}
|
3721
|
+
*/
|
3722
|
+
proto.TendermintMsgIBCTransfer.prototype.getReceiver = function() {
|
3723
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
3724
|
+
};
|
3725
|
+
|
3726
|
+
|
3727
|
+
/**
|
3728
|
+
* @param {string} value
|
3729
|
+
* @return {!proto.TendermintMsgIBCTransfer} returns this
|
3730
|
+
*/
|
3731
|
+
proto.TendermintMsgIBCTransfer.prototype.setReceiver = function(value) {
|
3732
|
+
return jspb.Message.setField(this, 1, value);
|
3733
|
+
};
|
3734
|
+
|
3735
|
+
|
3736
|
+
/**
|
3737
|
+
* Clears the field making it undefined.
|
3738
|
+
* @return {!proto.TendermintMsgIBCTransfer} returns this
|
3739
|
+
*/
|
3740
|
+
proto.TendermintMsgIBCTransfer.prototype.clearReceiver = function() {
|
3741
|
+
return jspb.Message.setField(this, 1, undefined);
|
3742
|
+
};
|
3743
|
+
|
3744
|
+
|
3745
|
+
/**
|
3746
|
+
* Returns whether this field is set.
|
3747
|
+
* @return {boolean}
|
3748
|
+
*/
|
3749
|
+
proto.TendermintMsgIBCTransfer.prototype.hasReceiver = function() {
|
3750
|
+
return jspb.Message.getField(this, 1) != null;
|
3751
|
+
};
|
3752
|
+
|
3753
|
+
|
3754
|
+
/**
|
3755
|
+
* optional string sender = 2;
|
3756
|
+
* @return {string}
|
3757
|
+
*/
|
3758
|
+
proto.TendermintMsgIBCTransfer.prototype.getSender = function() {
|
3759
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
3760
|
+
};
|
3761
|
+
|
3762
|
+
|
3763
|
+
/**
|
3764
|
+
* @param {string} value
|
3765
|
+
* @return {!proto.TendermintMsgIBCTransfer} returns this
|
3766
|
+
*/
|
3767
|
+
proto.TendermintMsgIBCTransfer.prototype.setSender = function(value) {
|
3768
|
+
return jspb.Message.setField(this, 2, value);
|
3769
|
+
};
|
3770
|
+
|
3771
|
+
|
3772
|
+
/**
|
3773
|
+
* Clears the field making it undefined.
|
3774
|
+
* @return {!proto.TendermintMsgIBCTransfer} returns this
|
3775
|
+
*/
|
3776
|
+
proto.TendermintMsgIBCTransfer.prototype.clearSender = function() {
|
3777
|
+
return jspb.Message.setField(this, 2, undefined);
|
3778
|
+
};
|
3779
|
+
|
3780
|
+
|
3781
|
+
/**
|
3782
|
+
* Returns whether this field is set.
|
3783
|
+
* @return {boolean}
|
3784
|
+
*/
|
3785
|
+
proto.TendermintMsgIBCTransfer.prototype.hasSender = function() {
|
3786
|
+
return jspb.Message.getField(this, 2) != null;
|
3787
|
+
};
|
3788
|
+
|
3789
|
+
|
3790
|
+
/**
|
3791
|
+
* optional string source_channel = 3;
|
3792
|
+
* @return {string}
|
3793
|
+
*/
|
3794
|
+
proto.TendermintMsgIBCTransfer.prototype.getSourceChannel = function() {
|
3795
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
3796
|
+
};
|
3797
|
+
|
3798
|
+
|
3799
|
+
/**
|
3800
|
+
* @param {string} value
|
3801
|
+
* @return {!proto.TendermintMsgIBCTransfer} returns this
|
3802
|
+
*/
|
3803
|
+
proto.TendermintMsgIBCTransfer.prototype.setSourceChannel = function(value) {
|
3804
|
+
return jspb.Message.setField(this, 3, value);
|
3805
|
+
};
|
3806
|
+
|
3807
|
+
|
3808
|
+
/**
|
3809
|
+
* Clears the field making it undefined.
|
3810
|
+
* @return {!proto.TendermintMsgIBCTransfer} returns this
|
3811
|
+
*/
|
3812
|
+
proto.TendermintMsgIBCTransfer.prototype.clearSourceChannel = function() {
|
3813
|
+
return jspb.Message.setField(this, 3, undefined);
|
3814
|
+
};
|
3815
|
+
|
3816
|
+
|
3817
|
+
/**
|
3818
|
+
* Returns whether this field is set.
|
3819
|
+
* @return {boolean}
|
3820
|
+
*/
|
3821
|
+
proto.TendermintMsgIBCTransfer.prototype.hasSourceChannel = function() {
|
3822
|
+
return jspb.Message.getField(this, 3) != null;
|
3823
|
+
};
|
3824
|
+
|
3825
|
+
|
3826
|
+
/**
|
3827
|
+
* optional string source_port = 4;
|
3828
|
+
* @return {string}
|
3829
|
+
*/
|
3830
|
+
proto.TendermintMsgIBCTransfer.prototype.getSourcePort = function() {
|
3831
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
3832
|
+
};
|
3833
|
+
|
3834
|
+
|
3835
|
+
/**
|
3836
|
+
* @param {string} value
|
3837
|
+
* @return {!proto.TendermintMsgIBCTransfer} returns this
|
3838
|
+
*/
|
3839
|
+
proto.TendermintMsgIBCTransfer.prototype.setSourcePort = function(value) {
|
3840
|
+
return jspb.Message.setField(this, 4, value);
|
3841
|
+
};
|
3842
|
+
|
3843
|
+
|
3844
|
+
/**
|
3845
|
+
* Clears the field making it undefined.
|
3846
|
+
* @return {!proto.TendermintMsgIBCTransfer} returns this
|
3847
|
+
*/
|
3848
|
+
proto.TendermintMsgIBCTransfer.prototype.clearSourcePort = function() {
|
3849
|
+
return jspb.Message.setField(this, 4, undefined);
|
3850
|
+
};
|
3851
|
+
|
3852
|
+
|
3853
|
+
/**
|
3854
|
+
* Returns whether this field is set.
|
3855
|
+
* @return {boolean}
|
3856
|
+
*/
|
3857
|
+
proto.TendermintMsgIBCTransfer.prototype.hasSourcePort = function() {
|
3858
|
+
return jspb.Message.getField(this, 4) != null;
|
3859
|
+
};
|
3860
|
+
|
3861
|
+
|
3862
|
+
/**
|
3863
|
+
* optional string revision_height = 5;
|
3864
|
+
* @return {string}
|
3865
|
+
*/
|
3866
|
+
proto.TendermintMsgIBCTransfer.prototype.getRevisionHeight = function() {
|
3867
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
3868
|
+
};
|
3869
|
+
|
3870
|
+
|
3871
|
+
/**
|
3872
|
+
* @param {string} value
|
3873
|
+
* @return {!proto.TendermintMsgIBCTransfer} returns this
|
3874
|
+
*/
|
3875
|
+
proto.TendermintMsgIBCTransfer.prototype.setRevisionHeight = function(value) {
|
3876
|
+
return jspb.Message.setField(this, 5, value);
|
3877
|
+
};
|
3878
|
+
|
3879
|
+
|
3880
|
+
/**
|
3881
|
+
* Clears the field making it undefined.
|
3882
|
+
* @return {!proto.TendermintMsgIBCTransfer} returns this
|
3883
|
+
*/
|
3884
|
+
proto.TendermintMsgIBCTransfer.prototype.clearRevisionHeight = function() {
|
3885
|
+
return jspb.Message.setField(this, 5, undefined);
|
3886
|
+
};
|
3887
|
+
|
3888
|
+
|
3889
|
+
/**
|
3890
|
+
* Returns whether this field is set.
|
3891
|
+
* @return {boolean}
|
3892
|
+
*/
|
3893
|
+
proto.TendermintMsgIBCTransfer.prototype.hasRevisionHeight = function() {
|
3894
|
+
return jspb.Message.getField(this, 5) != null;
|
3895
|
+
};
|
3896
|
+
|
3897
|
+
|
3898
|
+
/**
|
3899
|
+
* optional string revision_number = 6;
|
3900
|
+
* @return {string}
|
3901
|
+
*/
|
3902
|
+
proto.TendermintMsgIBCTransfer.prototype.getRevisionNumber = function() {
|
3903
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
3904
|
+
};
|
3905
|
+
|
3906
|
+
|
3907
|
+
/**
|
3908
|
+
* @param {string} value
|
3909
|
+
* @return {!proto.TendermintMsgIBCTransfer} returns this
|
3910
|
+
*/
|
3911
|
+
proto.TendermintMsgIBCTransfer.prototype.setRevisionNumber = function(value) {
|
3912
|
+
return jspb.Message.setField(this, 6, value);
|
3913
|
+
};
|
3914
|
+
|
3915
|
+
|
3916
|
+
/**
|
3917
|
+
* Clears the field making it undefined.
|
3918
|
+
* @return {!proto.TendermintMsgIBCTransfer} returns this
|
3919
|
+
*/
|
3920
|
+
proto.TendermintMsgIBCTransfer.prototype.clearRevisionNumber = function() {
|
3921
|
+
return jspb.Message.setField(this, 6, undefined);
|
3922
|
+
};
|
3923
|
+
|
3924
|
+
|
3925
|
+
/**
|
3926
|
+
* Returns whether this field is set.
|
3927
|
+
* @return {boolean}
|
3928
|
+
*/
|
3929
|
+
proto.TendermintMsgIBCTransfer.prototype.hasRevisionNumber = function() {
|
3930
|
+
return jspb.Message.getField(this, 6) != null;
|
3931
|
+
};
|
3932
|
+
|
3933
|
+
|
3934
|
+
/**
|
3935
|
+
* optional string denom = 7;
|
3936
|
+
* @return {string}
|
3937
|
+
*/
|
3938
|
+
proto.TendermintMsgIBCTransfer.prototype.getDenom = function() {
|
3939
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
3940
|
+
};
|
3941
|
+
|
3942
|
+
|
3943
|
+
/**
|
3944
|
+
* @param {string} value
|
3945
|
+
* @return {!proto.TendermintMsgIBCTransfer} returns this
|
3946
|
+
*/
|
3947
|
+
proto.TendermintMsgIBCTransfer.prototype.setDenom = function(value) {
|
3948
|
+
return jspb.Message.setField(this, 7, value);
|
3949
|
+
};
|
3950
|
+
|
3951
|
+
|
3952
|
+
/**
|
3953
|
+
* Clears the field making it undefined.
|
3954
|
+
* @return {!proto.TendermintMsgIBCTransfer} returns this
|
3955
|
+
*/
|
3956
|
+
proto.TendermintMsgIBCTransfer.prototype.clearDenom = function() {
|
3957
|
+
return jspb.Message.setField(this, 7, undefined);
|
3958
|
+
};
|
3959
|
+
|
3960
|
+
|
3961
|
+
/**
|
3962
|
+
* Returns whether this field is set.
|
3963
|
+
* @return {boolean}
|
3964
|
+
*/
|
3965
|
+
proto.TendermintMsgIBCTransfer.prototype.hasDenom = function() {
|
3966
|
+
return jspb.Message.getField(this, 7) != null;
|
3967
|
+
};
|
3968
|
+
|
3969
|
+
|
3970
|
+
|
3971
|
+
|
3972
|
+
|
2148
3973
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
2149
3974
|
/**
|
2150
3975
|
* Creates an object representation of this proto.
|