tronwb 6.0.0

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.
Files changed (318) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +201 -0
  3. package/dist/TronWeb.js +3 -0
  4. package/dist/TronWeb.js.LICENSE.txt +12 -0
  5. package/dist/TronWeb.js.map +1 -0
  6. package/dist/TronWeb.node.js +2 -0
  7. package/dist/TronWeb.node.js.map +1 -0
  8. package/kj9btptx.cjs +1 -0
  9. package/lib/commonjs/index.d.ts +64 -0
  10. package/lib/commonjs/index.js +37 -0
  11. package/lib/commonjs/index.js.map +1 -0
  12. package/lib/commonjs/lib/TransactionBuilder/TransactionBuilder.d.ts +127 -0
  13. package/lib/commonjs/lib/TransactionBuilder/TransactionBuilder.js +1771 -0
  14. package/lib/commonjs/lib/TransactionBuilder/TransactionBuilder.js.map +1 -0
  15. package/lib/commonjs/lib/TransactionBuilder/helper.d.ts +28 -0
  16. package/lib/commonjs/lib/TransactionBuilder/helper.js +122 -0
  17. package/lib/commonjs/lib/TransactionBuilder/helper.js.map +1 -0
  18. package/lib/commonjs/lib/contract/index.d.ts +29 -0
  19. package/lib/commonjs/lib/contract/index.js +124 -0
  20. package/lib/commonjs/lib/contract/index.js.map +1 -0
  21. package/lib/commonjs/lib/contract/method.d.ts +50 -0
  22. package/lib/commonjs/lib/contract/method.js +238 -0
  23. package/lib/commonjs/lib/contract/method.js.map +1 -0
  24. package/lib/commonjs/lib/event.d.ts +85 -0
  25. package/lib/commonjs/lib/event.js +137 -0
  26. package/lib/commonjs/lib/event.js.map +1 -0
  27. package/lib/commonjs/lib/plugin.d.ts +28 -0
  28. package/lib/commonjs/lib/plugin.js +84 -0
  29. package/lib/commonjs/lib/plugin.js.map +1 -0
  30. package/lib/commonjs/lib/providers/HttpProvider.d.ts +15 -0
  31. package/lib/commonjs/lib/providers/HttpProvider.js +63 -0
  32. package/lib/commonjs/lib/providers/HttpProvider.js.map +1 -0
  33. package/lib/commonjs/lib/providers/index.d.ts +6 -0
  34. package/lib/commonjs/lib/providers/index.js +8 -0
  35. package/lib/commonjs/lib/providers/index.js.map +1 -0
  36. package/lib/commonjs/lib/trx.d.ts +315 -0
  37. package/lib/commonjs/lib/trx.js +965 -0
  38. package/lib/commonjs/lib/trx.js.map +1 -0
  39. package/lib/commonjs/package.json +1 -0
  40. package/lib/commonjs/paramValidator/index.d.ts +19 -0
  41. package/lib/commonjs/paramValidator/index.js +110 -0
  42. package/lib/commonjs/paramValidator/index.js.map +1 -0
  43. package/lib/commonjs/protocol/core/Tron_pb.cjs +7524 -0
  44. package/lib/commonjs/protocol/core/contract/account_contract_pb.cjs +961 -0
  45. package/lib/commonjs/protocol/core/contract/asset_issue_contract_pb.cjs +2196 -0
  46. package/lib/commonjs/protocol/core/contract/balance_contract_pb.cjs +3826 -0
  47. package/lib/commonjs/protocol/core/contract/common_pb.cjs +34 -0
  48. package/lib/commonjs/protocol/core/contract/exchange_contract_pb.cjs +1268 -0
  49. package/lib/commonjs/protocol/core/contract/proposal_contract_pb.cjs +675 -0
  50. package/lib/commonjs/protocol/core/contract/smart_contract_pb.cjs +2960 -0
  51. package/lib/commonjs/protocol/core/contract/storage_contract_pb.cjs +848 -0
  52. package/lib/commonjs/protocol/core/contract/vote_asset_contract_pb.cjs +340 -0
  53. package/lib/commonjs/protocol/core/contract/witness_contract_pb.cjs +956 -0
  54. package/lib/commonjs/tronweb.d.ts +111 -0
  55. package/lib/commonjs/tronweb.js +365 -0
  56. package/lib/commonjs/tronweb.js.map +1 -0
  57. package/lib/commonjs/types/ABI.d.ts +59 -0
  58. package/lib/commonjs/types/ABI.js +3 -0
  59. package/lib/commonjs/types/ABI.js.map +1 -0
  60. package/lib/commonjs/types/APIResponse.d.ts +31 -0
  61. package/lib/commonjs/types/APIResponse.js +3 -0
  62. package/lib/commonjs/types/APIResponse.js.map +1 -0
  63. package/lib/commonjs/types/Contract.d.ts +287 -0
  64. package/lib/commonjs/types/Contract.js +63 -0
  65. package/lib/commonjs/types/Contract.js.map +1 -0
  66. package/lib/commonjs/types/Providers.d.ts +8 -0
  67. package/lib/commonjs/types/Providers.js +3 -0
  68. package/lib/commonjs/types/Providers.js.map +1 -0
  69. package/lib/commonjs/types/Transaction.d.ts +65 -0
  70. package/lib/commonjs/types/Transaction.js +3 -0
  71. package/lib/commonjs/types/Transaction.js.map +1 -0
  72. package/lib/commonjs/types/TransactionBuilder.d.ts +270 -0
  73. package/lib/commonjs/types/TransactionBuilder.js +3 -0
  74. package/lib/commonjs/types/TransactionBuilder.js.map +1 -0
  75. package/lib/commonjs/types/TronWeb.d.ts +20 -0
  76. package/lib/commonjs/types/TronWeb.js +3 -0
  77. package/lib/commonjs/types/TronWeb.js.map +1 -0
  78. package/lib/commonjs/types/Trx.d.ts +263 -0
  79. package/lib/commonjs/types/Trx.js +42 -0
  80. package/lib/commonjs/types/Trx.js.map +1 -0
  81. package/lib/commonjs/types/UtilsTypes.d.ts +23 -0
  82. package/lib/commonjs/types/UtilsTypes.js +3 -0
  83. package/lib/commonjs/types/UtilsTypes.js.map +1 -0
  84. package/lib/commonjs/types/index.d.ts +9 -0
  85. package/lib/commonjs/types/index.js +13 -0
  86. package/lib/commonjs/types/index.js.map +1 -0
  87. package/lib/commonjs/utils/abi.d.ts +5 -0
  88. package/lib/commonjs/utils/abi.js +251 -0
  89. package/lib/commonjs/utils/abi.js.map +1 -0
  90. package/lib/commonjs/utils/accounts.d.ts +22 -0
  91. package/lib/commonjs/utils/accounts.js +51 -0
  92. package/lib/commonjs/utils/accounts.js.map +1 -0
  93. package/lib/commonjs/utils/address.d.ts +12 -0
  94. package/lib/commonjs/utils/address.js +91 -0
  95. package/lib/commonjs/utils/address.js.map +1 -0
  96. package/lib/commonjs/utils/base58.d.ts +3 -0
  97. package/lib/commonjs/utils/base58.js +68 -0
  98. package/lib/commonjs/utils/base58.js.map +1 -0
  99. package/lib/commonjs/utils/base64.d.ts +10 -0
  100. package/lib/commonjs/utils/base64.js +173 -0
  101. package/lib/commonjs/utils/base64.js.map +1 -0
  102. package/lib/commonjs/utils/bytes.d.ts +7 -0
  103. package/lib/commonjs/utils/bytes.js +61 -0
  104. package/lib/commonjs/utils/bytes.js.map +1 -0
  105. package/lib/commonjs/utils/code.d.ts +12 -0
  106. package/lib/commonjs/utils/code.js +166 -0
  107. package/lib/commonjs/utils/code.js.map +1 -0
  108. package/lib/commonjs/utils/crypto.d.ts +25 -0
  109. package/lib/commonjs/utils/crypto.js +222 -0
  110. package/lib/commonjs/utils/crypto.js.map +1 -0
  111. package/lib/commonjs/utils/ethersUtils.d.ts +14 -0
  112. package/lib/commonjs/utils/ethersUtils.js +39 -0
  113. package/lib/commonjs/utils/ethersUtils.js.map +1 -0
  114. package/lib/commonjs/utils/fragments.d.ts +465 -0
  115. package/lib/commonjs/utils/fragments.js +1342 -0
  116. package/lib/commonjs/utils/fragments.js.map +1 -0
  117. package/lib/commonjs/utils/help.d.ts +8 -0
  118. package/lib/commonjs/utils/help.js +61 -0
  119. package/lib/commonjs/utils/help.js.map +1 -0
  120. package/lib/commonjs/utils/index.d.ts +56 -0
  121. package/lib/commonjs/utils/index.js +43 -0
  122. package/lib/commonjs/utils/index.js.map +1 -0
  123. package/lib/commonjs/utils/interface.d.ts +381 -0
  124. package/lib/commonjs/utils/interface.js +1121 -0
  125. package/lib/commonjs/utils/interface.js.map +1 -0
  126. package/lib/commonjs/utils/message.d.ts +4 -0
  127. package/lib/commonjs/utils/message.js +38 -0
  128. package/lib/commonjs/utils/message.js.map +1 -0
  129. package/lib/commonjs/utils/transaction.d.ts +17 -0
  130. package/lib/commonjs/utils/transaction.js +678 -0
  131. package/lib/commonjs/utils/transaction.js.map +1 -0
  132. package/lib/commonjs/utils/typedData.d.ts +148 -0
  133. package/lib/commonjs/utils/typedData.js +498 -0
  134. package/lib/commonjs/utils/typedData.js.map +1 -0
  135. package/lib/commonjs/utils/validations.d.ts +22 -0
  136. package/lib/commonjs/utils/validations.js +128 -0
  137. package/lib/commonjs/utils/validations.js.map +1 -0
  138. package/lib/esm/index.d.ts +64 -0
  139. package/lib/esm/index.js +33 -0
  140. package/lib/esm/index.js.map +1 -0
  141. package/lib/esm/lib/TransactionBuilder/TransactionBuilder.d.ts +127 -0
  142. package/lib/esm/lib/TransactionBuilder/TransactionBuilder.js +1767 -0
  143. package/lib/esm/lib/TransactionBuilder/TransactionBuilder.js.map +1 -0
  144. package/lib/esm/lib/TransactionBuilder/helper.d.ts +28 -0
  145. package/lib/esm/lib/TransactionBuilder/helper.js +112 -0
  146. package/lib/esm/lib/TransactionBuilder/helper.js.map +1 -0
  147. package/lib/esm/lib/contract/index.d.ts +29 -0
  148. package/lib/esm/lib/contract/index.js +118 -0
  149. package/lib/esm/lib/contract/index.js.map +1 -0
  150. package/lib/esm/lib/contract/method.d.ts +50 -0
  151. package/lib/esm/lib/contract/method.js +233 -0
  152. package/lib/esm/lib/contract/method.js.map +1 -0
  153. package/lib/esm/lib/event.d.ts +85 -0
  154. package/lib/esm/lib/event.js +132 -0
  155. package/lib/esm/lib/event.js.map +1 -0
  156. package/lib/esm/lib/plugin.d.ts +28 -0
  157. package/lib/esm/lib/plugin.js +79 -0
  158. package/lib/esm/lib/plugin.js.map +1 -0
  159. package/lib/esm/lib/providers/HttpProvider.d.ts +15 -0
  160. package/lib/esm/lib/providers/HttpProvider.js +59 -0
  161. package/lib/esm/lib/providers/HttpProvider.js.map +1 -0
  162. package/lib/esm/lib/providers/index.d.ts +6 -0
  163. package/lib/esm/lib/providers/index.js +4 -0
  164. package/lib/esm/lib/providers/index.js.map +1 -0
  165. package/lib/esm/lib/trx.d.ts +315 -0
  166. package/lib/esm/lib/trx.js +960 -0
  167. package/lib/esm/lib/trx.js.map +1 -0
  168. package/lib/esm/package.json +1 -0
  169. package/lib/esm/paramValidator/index.d.ts +19 -0
  170. package/lib/esm/paramValidator/index.js +106 -0
  171. package/lib/esm/paramValidator/index.js.map +1 -0
  172. package/lib/esm/protocol/core/Tron_pb.cjs +7524 -0
  173. package/lib/esm/protocol/core/contract/account_contract_pb.cjs +961 -0
  174. package/lib/esm/protocol/core/contract/asset_issue_contract_pb.cjs +2196 -0
  175. package/lib/esm/protocol/core/contract/balance_contract_pb.cjs +3826 -0
  176. package/lib/esm/protocol/core/contract/common_pb.cjs +34 -0
  177. package/lib/esm/protocol/core/contract/exchange_contract_pb.cjs +1268 -0
  178. package/lib/esm/protocol/core/contract/proposal_contract_pb.cjs +675 -0
  179. package/lib/esm/protocol/core/contract/smart_contract_pb.cjs +2960 -0
  180. package/lib/esm/protocol/core/contract/storage_contract_pb.cjs +848 -0
  181. package/lib/esm/protocol/core/contract/vote_asset_contract_pb.cjs +340 -0
  182. package/lib/esm/protocol/core/contract/witness_contract_pb.cjs +956 -0
  183. package/lib/esm/tronweb.d.ts +111 -0
  184. package/lib/esm/tronweb.js +360 -0
  185. package/lib/esm/tronweb.js.map +1 -0
  186. package/lib/esm/types/ABI.d.ts +59 -0
  187. package/lib/esm/types/ABI.js +2 -0
  188. package/lib/esm/types/ABI.js.map +1 -0
  189. package/lib/esm/types/APIResponse.d.ts +31 -0
  190. package/lib/esm/types/APIResponse.js +2 -0
  191. package/lib/esm/types/APIResponse.js.map +1 -0
  192. package/lib/esm/types/Contract.d.ts +287 -0
  193. package/lib/esm/types/Contract.js +60 -0
  194. package/lib/esm/types/Contract.js.map +1 -0
  195. package/lib/esm/types/Providers.d.ts +8 -0
  196. package/lib/esm/types/Providers.js +2 -0
  197. package/lib/esm/types/Providers.js.map +1 -0
  198. package/lib/esm/types/Transaction.d.ts +65 -0
  199. package/lib/esm/types/Transaction.js +2 -0
  200. package/lib/esm/types/Transaction.js.map +1 -0
  201. package/lib/esm/types/TransactionBuilder.d.ts +270 -0
  202. package/lib/esm/types/TransactionBuilder.js +2 -0
  203. package/lib/esm/types/TransactionBuilder.js.map +1 -0
  204. package/lib/esm/types/TronWeb.d.ts +20 -0
  205. package/lib/esm/types/TronWeb.js +2 -0
  206. package/lib/esm/types/TronWeb.js.map +1 -0
  207. package/lib/esm/types/Trx.d.ts +263 -0
  208. package/lib/esm/types/Trx.js +39 -0
  209. package/lib/esm/types/Trx.js.map +1 -0
  210. package/lib/esm/types/UtilsTypes.d.ts +23 -0
  211. package/lib/esm/types/UtilsTypes.js +2 -0
  212. package/lib/esm/types/UtilsTypes.js.map +1 -0
  213. package/lib/esm/types/index.d.ts +9 -0
  214. package/lib/esm/types/index.js +10 -0
  215. package/lib/esm/types/index.js.map +1 -0
  216. package/lib/esm/utils/abi.d.ts +5 -0
  217. package/lib/esm/utils/abi.js +245 -0
  218. package/lib/esm/utils/abi.js.map +1 -0
  219. package/lib/esm/utils/accounts.d.ts +22 -0
  220. package/lib/esm/utils/accounts.js +46 -0
  221. package/lib/esm/utils/accounts.js.map +1 -0
  222. package/lib/esm/utils/address.d.ts +12 -0
  223. package/lib/esm/utils/address.js +82 -0
  224. package/lib/esm/utils/address.js.map +1 -0
  225. package/lib/esm/utils/base58.d.ts +3 -0
  226. package/lib/esm/utils/base58.js +64 -0
  227. package/lib/esm/utils/base58.js.map +1 -0
  228. package/lib/esm/utils/base64.d.ts +10 -0
  229. package/lib/esm/utils/base64.js +169 -0
  230. package/lib/esm/utils/base64.js.map +1 -0
  231. package/lib/esm/utils/bytes.d.ts +7 -0
  232. package/lib/esm/utils/bytes.js +53 -0
  233. package/lib/esm/utils/bytes.js.map +1 -0
  234. package/lib/esm/utils/code.d.ts +12 -0
  235. package/lib/esm/utils/code.js +149 -0
  236. package/lib/esm/utils/code.js.map +1 -0
  237. package/lib/esm/utils/crypto.d.ts +25 -0
  238. package/lib/esm/utils/crypto.js +198 -0
  239. package/lib/esm/utils/crypto.js.map +1 -0
  240. package/lib/esm/utils/ethersUtils.d.ts +14 -0
  241. package/lib/esm/utils/ethersUtils.js +17 -0
  242. package/lib/esm/utils/ethersUtils.js.map +1 -0
  243. package/lib/esm/utils/fragments.d.ts +465 -0
  244. package/lib/esm/utils/fragments.js +1330 -0
  245. package/lib/esm/utils/fragments.js.map +1 -0
  246. package/lib/esm/utils/help.d.ts +8 -0
  247. package/lib/esm/utils/help.js +51 -0
  248. package/lib/esm/utils/help.js.map +1 -0
  249. package/lib/esm/utils/index.d.ts +56 -0
  250. package/lib/esm/utils/index.js +40 -0
  251. package/lib/esm/utils/index.js.map +1 -0
  252. package/lib/esm/utils/interface.d.ts +381 -0
  253. package/lib/esm/utils/interface.js +1112 -0
  254. package/lib/esm/utils/interface.js.map +1 -0
  255. package/lib/esm/utils/message.d.ts +4 -0
  256. package/lib/esm/utils/message.js +32 -0
  257. package/lib/esm/utils/message.js.map +1 -0
  258. package/lib/esm/utils/transaction.d.ts +17 -0
  259. package/lib/esm/utils/transaction.js +669 -0
  260. package/lib/esm/utils/transaction.js.map +1 -0
  261. package/lib/esm/utils/typedData.d.ts +148 -0
  262. package/lib/esm/utils/typedData.js +493 -0
  263. package/lib/esm/utils/typedData.js.map +1 -0
  264. package/lib/esm/utils/validations.d.ts +22 -0
  265. package/lib/esm/utils/validations.js +108 -0
  266. package/lib/esm/utils/validations.js.map +1 -0
  267. package/package.json +110 -0
  268. package/src/index.ts +42 -0
  269. package/src/lib/TransactionBuilder/TransactionBuilder.ts +2272 -0
  270. package/src/lib/TransactionBuilder/helper.ts +139 -0
  271. package/src/lib/contract/index.ts +151 -0
  272. package/src/lib/contract/method.ts +336 -0
  273. package/src/lib/event.ts +248 -0
  274. package/src/lib/plugin.ts +102 -0
  275. package/src/lib/providers/HttpProvider.ts +66 -0
  276. package/src/lib/providers/index.ts +6 -0
  277. package/src/lib/trx.ts +1463 -0
  278. package/src/paramValidator/index.ts +136 -0
  279. package/src/protocol/core/Tron_pb.cjs +7524 -0
  280. package/src/protocol/core/contract/account_contract_pb.cjs +961 -0
  281. package/src/protocol/core/contract/asset_issue_contract_pb.cjs +2196 -0
  282. package/src/protocol/core/contract/balance_contract_pb.cjs +3826 -0
  283. package/src/protocol/core/contract/common_pb.cjs +34 -0
  284. package/src/protocol/core/contract/exchange_contract_pb.cjs +1268 -0
  285. package/src/protocol/core/contract/proposal_contract_pb.cjs +675 -0
  286. package/src/protocol/core/contract/smart_contract_pb.cjs +2960 -0
  287. package/src/protocol/core/contract/storage_contract_pb.cjs +848 -0
  288. package/src/protocol/core/contract/vote_asset_contract_pb.cjs +340 -0
  289. package/src/protocol/core/contract/witness_contract_pb.cjs +956 -0
  290. package/src/tronweb.ts +437 -0
  291. package/src/types/ABI.ts +82 -0
  292. package/src/types/APIResponse.ts +34 -0
  293. package/src/types/Contract.ts +352 -0
  294. package/src/types/Providers.ts +7 -0
  295. package/src/types/Transaction.ts +70 -0
  296. package/src/types/TransactionBuilder.ts +281 -0
  297. package/src/types/TronWeb.ts +23 -0
  298. package/src/types/Trx.ts +285 -0
  299. package/src/types/UtilsTypes.ts +25 -0
  300. package/src/types/index.ts +9 -0
  301. package/src/types/interface.d.ts +1 -0
  302. package/src/utils/abi.ts +257 -0
  303. package/src/utils/accounts.ts +60 -0
  304. package/src/utils/address.ts +89 -0
  305. package/src/utils/base58.ts +78 -0
  306. package/src/utils/base64.ts +200 -0
  307. package/src/utils/bytes.ts +68 -0
  308. package/src/utils/code.ts +172 -0
  309. package/src/utils/crypto.ts +264 -0
  310. package/src/utils/ethersUtils.ts +60 -0
  311. package/src/utils/fragments.ts +1738 -0
  312. package/src/utils/help.ts +59 -0
  313. package/src/utils/index.ts +42 -0
  314. package/src/utils/interface.ts +1362 -0
  315. package/src/utils/message.ts +38 -0
  316. package/src/utils/transaction.ts +991 -0
  317. package/src/utils/typedData.ts +688 -0
  318. package/src/utils/validations.ts +130 -0
@@ -0,0 +1,2196 @@
1
+ // source: core/contract/asset_issue_contract.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
6
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
+ * field starts with 'MSG_' and isn't a translatable message.
8
+ * @public
9
+ */
10
+ // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
13
+
14
+ var jspb = require('@tronweb3/google-protobuf');
15
+ var goog = jspb;
16
+ var global =
17
+ (typeof globalThis !== 'undefined' && globalThis) ||
18
+ (typeof window !== 'undefined' && window) ||
19
+ (typeof global !== 'undefined' && global) ||
20
+ (typeof self !== 'undefined' && self) ||
21
+ (function () { return this; }).call(null) ||
22
+ Function('return this')();
23
+
24
+ goog.exportSymbol('TronWebProto.AssetIssueContract', null, global);
25
+ goog.exportSymbol('TronWebProto.AssetIssueContract.FrozenSupply', null, global);
26
+ goog.exportSymbol('TronWebProto.ParticipateAssetIssueContract', null, global);
27
+ goog.exportSymbol('TronWebProto.TransferAssetContract', null, global);
28
+ goog.exportSymbol('TronWebProto.UnfreezeAssetContract', null, global);
29
+ goog.exportSymbol('TronWebProto.UpdateAssetContract', null, global);
30
+ /**
31
+ * Generated by JsPbCodeGenerator.
32
+ * @param {Array=} opt_data Optional initial data array, typically from a
33
+ * server response, or constructed directly in Javascript. The array is used
34
+ * in place and becomes part of the constructed object. It is not cloned.
35
+ * If no data is provided, the constructed object will be empty, but still
36
+ * valid.
37
+ * @extends {jspb.Message}
38
+ * @constructor
39
+ */
40
+ TronWebProto.AssetIssueContract = function(opt_data) {
41
+ jspb.Message.initialize(this, opt_data, 0, -1, TronWebProto.AssetIssueContract.repeatedFields_, null);
42
+ };
43
+ goog.inherits(TronWebProto.AssetIssueContract, jspb.Message);
44
+ if (goog.DEBUG && !COMPILED) {
45
+ /**
46
+ * @public
47
+ * @override
48
+ */
49
+ TronWebProto.AssetIssueContract.displayName = 'TronWebProto.AssetIssueContract';
50
+ }
51
+ /**
52
+ * Generated by JsPbCodeGenerator.
53
+ * @param {Array=} opt_data Optional initial data array, typically from a
54
+ * server response, or constructed directly in Javascript. The array is used
55
+ * in place and becomes part of the constructed object. It is not cloned.
56
+ * If no data is provided, the constructed object will be empty, but still
57
+ * valid.
58
+ * @extends {jspb.Message}
59
+ * @constructor
60
+ */
61
+ TronWebProto.AssetIssueContract.FrozenSupply = function(opt_data) {
62
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
63
+ };
64
+ goog.inherits(TronWebProto.AssetIssueContract.FrozenSupply, jspb.Message);
65
+ if (goog.DEBUG && !COMPILED) {
66
+ /**
67
+ * @public
68
+ * @override
69
+ */
70
+ TronWebProto.AssetIssueContract.FrozenSupply.displayName = 'TronWebProto.AssetIssueContract.FrozenSupply';
71
+ }
72
+ /**
73
+ * Generated by JsPbCodeGenerator.
74
+ * @param {Array=} opt_data Optional initial data array, typically from a
75
+ * server response, or constructed directly in Javascript. The array is used
76
+ * in place and becomes part of the constructed object. It is not cloned.
77
+ * If no data is provided, the constructed object will be empty, but still
78
+ * valid.
79
+ * @extends {jspb.Message}
80
+ * @constructor
81
+ */
82
+ TronWebProto.TransferAssetContract = function(opt_data) {
83
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
84
+ };
85
+ goog.inherits(TronWebProto.TransferAssetContract, jspb.Message);
86
+ if (goog.DEBUG && !COMPILED) {
87
+ /**
88
+ * @public
89
+ * @override
90
+ */
91
+ TronWebProto.TransferAssetContract.displayName = 'TronWebProto.TransferAssetContract';
92
+ }
93
+ /**
94
+ * Generated by JsPbCodeGenerator.
95
+ * @param {Array=} opt_data Optional initial data array, typically from a
96
+ * server response, or constructed directly in Javascript. The array is used
97
+ * in place and becomes part of the constructed object. It is not cloned.
98
+ * If no data is provided, the constructed object will be empty, but still
99
+ * valid.
100
+ * @extends {jspb.Message}
101
+ * @constructor
102
+ */
103
+ TronWebProto.UnfreezeAssetContract = function(opt_data) {
104
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
105
+ };
106
+ goog.inherits(TronWebProto.UnfreezeAssetContract, jspb.Message);
107
+ if (goog.DEBUG && !COMPILED) {
108
+ /**
109
+ * @public
110
+ * @override
111
+ */
112
+ TronWebProto.UnfreezeAssetContract.displayName = 'TronWebProto.UnfreezeAssetContract';
113
+ }
114
+ /**
115
+ * Generated by JsPbCodeGenerator.
116
+ * @param {Array=} opt_data Optional initial data array, typically from a
117
+ * server response, or constructed directly in Javascript. The array is used
118
+ * in place and becomes part of the constructed object. It is not cloned.
119
+ * If no data is provided, the constructed object will be empty, but still
120
+ * valid.
121
+ * @extends {jspb.Message}
122
+ * @constructor
123
+ */
124
+ TronWebProto.UpdateAssetContract = function(opt_data) {
125
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
126
+ };
127
+ goog.inherits(TronWebProto.UpdateAssetContract, jspb.Message);
128
+ if (goog.DEBUG && !COMPILED) {
129
+ /**
130
+ * @public
131
+ * @override
132
+ */
133
+ TronWebProto.UpdateAssetContract.displayName = 'TronWebProto.UpdateAssetContract';
134
+ }
135
+ /**
136
+ * Generated by JsPbCodeGenerator.
137
+ * @param {Array=} opt_data Optional initial data array, typically from a
138
+ * server response, or constructed directly in Javascript. The array is used
139
+ * in place and becomes part of the constructed object. It is not cloned.
140
+ * If no data is provided, the constructed object will be empty, but still
141
+ * valid.
142
+ * @extends {jspb.Message}
143
+ * @constructor
144
+ */
145
+ TronWebProto.ParticipateAssetIssueContract = function(opt_data) {
146
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
147
+ };
148
+ goog.inherits(TronWebProto.ParticipateAssetIssueContract, jspb.Message);
149
+ if (goog.DEBUG && !COMPILED) {
150
+ /**
151
+ * @public
152
+ * @override
153
+ */
154
+ TronWebProto.ParticipateAssetIssueContract.displayName = 'TronWebProto.ParticipateAssetIssueContract';
155
+ }
156
+
157
+ /**
158
+ * List of repeated fields within this message type.
159
+ * @private {!Array<number>}
160
+ * @const
161
+ */
162
+ TronWebProto.AssetIssueContract.repeatedFields_ = [5];
163
+
164
+
165
+
166
+ if (jspb.Message.GENERATE_TO_OBJECT) {
167
+ /**
168
+ * Creates an object representation of this proto.
169
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
170
+ * Optional fields that are not set will be set to undefined.
171
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
172
+ * For the list of reserved names please see:
173
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
174
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
175
+ * JSPB instance for transitional soy proto support:
176
+ * http://goto/soy-param-migration
177
+ * @return {!Object}
178
+ */
179
+ TronWebProto.AssetIssueContract.prototype.toObject = function(opt_includeInstance) {
180
+ return TronWebProto.AssetIssueContract.toObject(opt_includeInstance, this);
181
+ };
182
+
183
+
184
+ /**
185
+ * Static version of the {@see toObject} method.
186
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
187
+ * the JSPB instance for transitional soy proto support:
188
+ * http://goto/soy-param-migration
189
+ * @param {!TronWebProto.AssetIssueContract} msg The msg instance to transform.
190
+ * @return {!Object}
191
+ * @suppress {unusedLocalVariables} f is only used for nested messages
192
+ */
193
+ TronWebProto.AssetIssueContract.toObject = function(includeInstance, msg) {
194
+ var f, obj = {
195
+ id: jspb.Message.getFieldWithDefault(msg, 41, ""),
196
+ ownerAddress: msg.getOwnerAddress_asB64(),
197
+ name: msg.getName_asB64(),
198
+ abbr: msg.getAbbr_asB64(),
199
+ totalSupply: jspb.Message.getFieldWithDefault(msg, 4, 0),
200
+ frozenSupplyList: jspb.Message.toObjectList(msg.getFrozenSupplyList(),
201
+ TronWebProto.AssetIssueContract.FrozenSupply.toObject, includeInstance),
202
+ trxNum: jspb.Message.getFieldWithDefault(msg, 6, 0),
203
+ precision: jspb.Message.getFieldWithDefault(msg, 7, 0),
204
+ num: jspb.Message.getFieldWithDefault(msg, 8, 0),
205
+ startTime: jspb.Message.getFieldWithDefault(msg, 9, 0),
206
+ endTime: jspb.Message.getFieldWithDefault(msg, 10, 0),
207
+ order: jspb.Message.getFieldWithDefault(msg, 11, 0),
208
+ voteScore: jspb.Message.getFieldWithDefault(msg, 16, 0),
209
+ description: msg.getDescription_asB64(),
210
+ url: msg.getUrl_asB64(),
211
+ freeAssetNetLimit: jspb.Message.getFieldWithDefault(msg, 22, 0),
212
+ publicFreeAssetNetLimit: jspb.Message.getFieldWithDefault(msg, 23, 0),
213
+ publicFreeAssetNetUsage: jspb.Message.getFieldWithDefault(msg, 24, 0),
214
+ publicLatestFreeNetTime: jspb.Message.getFieldWithDefault(msg, 25, 0)
215
+ };
216
+
217
+ if (includeInstance) {
218
+ obj.$jspbMessageInstance = msg;
219
+ }
220
+ return obj;
221
+ };
222
+ }
223
+
224
+
225
+ /**
226
+ * Deserializes binary data (in protobuf wire format).
227
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
228
+ * @return {!TronWebProto.AssetIssueContract}
229
+ */
230
+ TronWebProto.AssetIssueContract.deserializeBinary = function(bytes) {
231
+ var reader = new jspb.BinaryReader(bytes);
232
+ var msg = new TronWebProto.AssetIssueContract;
233
+ return TronWebProto.AssetIssueContract.deserializeBinaryFromReader(msg, reader);
234
+ };
235
+
236
+
237
+ /**
238
+ * Deserializes binary data (in protobuf wire format) from the
239
+ * given reader into the given message object.
240
+ * @param {!TronWebProto.AssetIssueContract} msg The message object to deserialize into.
241
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
242
+ * @return {!TronWebProto.AssetIssueContract}
243
+ */
244
+ TronWebProto.AssetIssueContract.deserializeBinaryFromReader = function(msg, reader) {
245
+ while (reader.nextField()) {
246
+ if (reader.isEndGroup()) {
247
+ break;
248
+ }
249
+ var field = reader.getFieldNumber();
250
+ switch (field) {
251
+ case 41:
252
+ var value = /** @type {string} */ (reader.readString());
253
+ msg.setId(value);
254
+ break;
255
+ case 1:
256
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
257
+ msg.setOwnerAddress(value);
258
+ break;
259
+ case 2:
260
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
261
+ msg.setName(value);
262
+ break;
263
+ case 3:
264
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
265
+ msg.setAbbr(value);
266
+ break;
267
+ case 4:
268
+ var value = /** @type {number} */ (reader.readInt64());
269
+ msg.setTotalSupply(value);
270
+ break;
271
+ case 5:
272
+ var value = new TronWebProto.AssetIssueContract.FrozenSupply;
273
+ reader.readMessage(value,TronWebProto.AssetIssueContract.FrozenSupply.deserializeBinaryFromReader);
274
+ msg.addFrozenSupply(value);
275
+ break;
276
+ case 6:
277
+ var value = /** @type {number} */ (reader.readInt32());
278
+ msg.setTrxNum(value);
279
+ break;
280
+ case 7:
281
+ var value = /** @type {number} */ (reader.readInt32());
282
+ msg.setPrecision(value);
283
+ break;
284
+ case 8:
285
+ var value = /** @type {number} */ (reader.readInt32());
286
+ msg.setNum(value);
287
+ break;
288
+ case 9:
289
+ var value = /** @type {number} */ (reader.readInt64());
290
+ msg.setStartTime(value);
291
+ break;
292
+ case 10:
293
+ var value = /** @type {number} */ (reader.readInt64());
294
+ msg.setEndTime(value);
295
+ break;
296
+ case 11:
297
+ var value = /** @type {number} */ (reader.readInt64());
298
+ msg.setOrder(value);
299
+ break;
300
+ case 16:
301
+ var value = /** @type {number} */ (reader.readInt32());
302
+ msg.setVoteScore(value);
303
+ break;
304
+ case 20:
305
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
306
+ msg.setDescription(value);
307
+ break;
308
+ case 21:
309
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
310
+ msg.setUrl(value);
311
+ break;
312
+ case 22:
313
+ var value = /** @type {number} */ (reader.readInt64());
314
+ msg.setFreeAssetNetLimit(value);
315
+ break;
316
+ case 23:
317
+ var value = /** @type {number} */ (reader.readInt64());
318
+ msg.setPublicFreeAssetNetLimit(value);
319
+ break;
320
+ case 24:
321
+ var value = /** @type {number} */ (reader.readInt64());
322
+ msg.setPublicFreeAssetNetUsage(value);
323
+ break;
324
+ case 25:
325
+ var value = /** @type {number} */ (reader.readInt64());
326
+ msg.setPublicLatestFreeNetTime(value);
327
+ break;
328
+ default:
329
+ reader.skipField();
330
+ break;
331
+ }
332
+ }
333
+ return msg;
334
+ };
335
+
336
+
337
+ /**
338
+ * Serializes the message to binary data (in protobuf wire format).
339
+ * @return {!Uint8Array}
340
+ */
341
+ TronWebProto.AssetIssueContract.prototype.serializeBinary = function() {
342
+ var writer = new jspb.BinaryWriter();
343
+ TronWebProto.AssetIssueContract.serializeBinaryToWriter(this, writer);
344
+ return writer.getResultBuffer();
345
+ };
346
+
347
+
348
+ /**
349
+ * Serializes the given message to binary data (in protobuf wire
350
+ * format), writing to the given BinaryWriter.
351
+ * @param {!TronWebProto.AssetIssueContract} message
352
+ * @param {!jspb.BinaryWriter} writer
353
+ * @suppress {unusedLocalVariables} f is only used for nested messages
354
+ */
355
+ TronWebProto.AssetIssueContract.serializeBinaryToWriter = function(message, writer) {
356
+ var f = undefined;
357
+ f = message.getId();
358
+ if (f.length > 0) {
359
+ writer.writeString(
360
+ 41,
361
+ f
362
+ );
363
+ }
364
+ f = message.getOwnerAddress_asU8();
365
+ if (f.length > 0) {
366
+ writer.writeBytes(
367
+ 1,
368
+ f
369
+ );
370
+ }
371
+ f = message.getName_asU8();
372
+ if (f.length > 0) {
373
+ writer.writeBytes(
374
+ 2,
375
+ f
376
+ );
377
+ }
378
+ f = message.getAbbr_asU8();
379
+ if (f.length > 0) {
380
+ writer.writeBytes(
381
+ 3,
382
+ f
383
+ );
384
+ }
385
+ f = message.getTotalSupply();
386
+ if (f !== 0) {
387
+ writer.writeInt64(
388
+ 4,
389
+ f
390
+ );
391
+ }
392
+ f = message.getFrozenSupplyList();
393
+ if (f.length > 0) {
394
+ writer.writeRepeatedMessage(
395
+ 5,
396
+ f,
397
+ TronWebProto.AssetIssueContract.FrozenSupply.serializeBinaryToWriter
398
+ );
399
+ }
400
+ f = message.getTrxNum();
401
+ if (f !== 0) {
402
+ writer.writeInt32(
403
+ 6,
404
+ f
405
+ );
406
+ }
407
+ f = message.getPrecision();
408
+ if (f !== 0) {
409
+ writer.writeInt32(
410
+ 7,
411
+ f
412
+ );
413
+ }
414
+ f = message.getNum();
415
+ if (f !== 0) {
416
+ writer.writeInt32(
417
+ 8,
418
+ f
419
+ );
420
+ }
421
+ f = message.getStartTime();
422
+ if (f !== 0) {
423
+ writer.writeInt64(
424
+ 9,
425
+ f
426
+ );
427
+ }
428
+ f = message.getEndTime();
429
+ if (f !== 0) {
430
+ writer.writeInt64(
431
+ 10,
432
+ f
433
+ );
434
+ }
435
+ f = message.getOrder();
436
+ if (f !== 0) {
437
+ writer.writeInt64(
438
+ 11,
439
+ f
440
+ );
441
+ }
442
+ f = message.getVoteScore();
443
+ if (f !== 0) {
444
+ writer.writeInt32(
445
+ 16,
446
+ f
447
+ );
448
+ }
449
+ f = message.getDescription_asU8();
450
+ if (f.length > 0) {
451
+ writer.writeBytes(
452
+ 20,
453
+ f
454
+ );
455
+ }
456
+ f = message.getUrl_asU8();
457
+ if (f.length > 0) {
458
+ writer.writeBytes(
459
+ 21,
460
+ f
461
+ );
462
+ }
463
+ f = message.getFreeAssetNetLimit();
464
+ if (f !== 0) {
465
+ writer.writeInt64(
466
+ 22,
467
+ f
468
+ );
469
+ }
470
+ f = message.getPublicFreeAssetNetLimit();
471
+ if (f !== 0) {
472
+ writer.writeInt64(
473
+ 23,
474
+ f
475
+ );
476
+ }
477
+ f = message.getPublicFreeAssetNetUsage();
478
+ if (f !== 0) {
479
+ writer.writeInt64(
480
+ 24,
481
+ f
482
+ );
483
+ }
484
+ f = message.getPublicLatestFreeNetTime();
485
+ if (f !== 0) {
486
+ writer.writeInt64(
487
+ 25,
488
+ f
489
+ );
490
+ }
491
+ };
492
+
493
+
494
+
495
+
496
+
497
+ if (jspb.Message.GENERATE_TO_OBJECT) {
498
+ /**
499
+ * Creates an object representation of this proto.
500
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
501
+ * Optional fields that are not set will be set to undefined.
502
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
503
+ * For the list of reserved names please see:
504
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
505
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
506
+ * JSPB instance for transitional soy proto support:
507
+ * http://goto/soy-param-migration
508
+ * @return {!Object}
509
+ */
510
+ TronWebProto.AssetIssueContract.FrozenSupply.prototype.toObject = function(opt_includeInstance) {
511
+ return TronWebProto.AssetIssueContract.FrozenSupply.toObject(opt_includeInstance, this);
512
+ };
513
+
514
+
515
+ /**
516
+ * Static version of the {@see toObject} method.
517
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
518
+ * the JSPB instance for transitional soy proto support:
519
+ * http://goto/soy-param-migration
520
+ * @param {!TronWebProto.AssetIssueContract.FrozenSupply} msg The msg instance to transform.
521
+ * @return {!Object}
522
+ * @suppress {unusedLocalVariables} f is only used for nested messages
523
+ */
524
+ TronWebProto.AssetIssueContract.FrozenSupply.toObject = function(includeInstance, msg) {
525
+ var f, obj = {
526
+ frozenAmount: jspb.Message.getFieldWithDefault(msg, 1, 0),
527
+ frozenDays: jspb.Message.getFieldWithDefault(msg, 2, 0)
528
+ };
529
+
530
+ if (includeInstance) {
531
+ obj.$jspbMessageInstance = msg;
532
+ }
533
+ return obj;
534
+ };
535
+ }
536
+
537
+
538
+ /**
539
+ * Deserializes binary data (in protobuf wire format).
540
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
541
+ * @return {!TronWebProto.AssetIssueContract.FrozenSupply}
542
+ */
543
+ TronWebProto.AssetIssueContract.FrozenSupply.deserializeBinary = function(bytes) {
544
+ var reader = new jspb.BinaryReader(bytes);
545
+ var msg = new TronWebProto.AssetIssueContract.FrozenSupply;
546
+ return TronWebProto.AssetIssueContract.FrozenSupply.deserializeBinaryFromReader(msg, reader);
547
+ };
548
+
549
+
550
+ /**
551
+ * Deserializes binary data (in protobuf wire format) from the
552
+ * given reader into the given message object.
553
+ * @param {!TronWebProto.AssetIssueContract.FrozenSupply} msg The message object to deserialize into.
554
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
555
+ * @return {!TronWebProto.AssetIssueContract.FrozenSupply}
556
+ */
557
+ TronWebProto.AssetIssueContract.FrozenSupply.deserializeBinaryFromReader = function(msg, reader) {
558
+ while (reader.nextField()) {
559
+ if (reader.isEndGroup()) {
560
+ break;
561
+ }
562
+ var field = reader.getFieldNumber();
563
+ switch (field) {
564
+ case 1:
565
+ var value = /** @type {number} */ (reader.readInt64());
566
+ msg.setFrozenAmount(value);
567
+ break;
568
+ case 2:
569
+ var value = /** @type {number} */ (reader.readInt64());
570
+ msg.setFrozenDays(value);
571
+ break;
572
+ default:
573
+ reader.skipField();
574
+ break;
575
+ }
576
+ }
577
+ return msg;
578
+ };
579
+
580
+
581
+ /**
582
+ * Serializes the message to binary data (in protobuf wire format).
583
+ * @return {!Uint8Array}
584
+ */
585
+ TronWebProto.AssetIssueContract.FrozenSupply.prototype.serializeBinary = function() {
586
+ var writer = new jspb.BinaryWriter();
587
+ TronWebProto.AssetIssueContract.FrozenSupply.serializeBinaryToWriter(this, writer);
588
+ return writer.getResultBuffer();
589
+ };
590
+
591
+
592
+ /**
593
+ * Serializes the given message to binary data (in protobuf wire
594
+ * format), writing to the given BinaryWriter.
595
+ * @param {!TronWebProto.AssetIssueContract.FrozenSupply} message
596
+ * @param {!jspb.BinaryWriter} writer
597
+ * @suppress {unusedLocalVariables} f is only used for nested messages
598
+ */
599
+ TronWebProto.AssetIssueContract.FrozenSupply.serializeBinaryToWriter = function(message, writer) {
600
+ var f = undefined;
601
+ f = message.getFrozenAmount();
602
+ if (f !== 0) {
603
+ writer.writeInt64(
604
+ 1,
605
+ f
606
+ );
607
+ }
608
+ f = message.getFrozenDays();
609
+ if (f !== 0) {
610
+ writer.writeInt64(
611
+ 2,
612
+ f
613
+ );
614
+ }
615
+ };
616
+
617
+
618
+ /**
619
+ * optional int64 frozen_amount = 1;
620
+ * @return {number}
621
+ */
622
+ TronWebProto.AssetIssueContract.FrozenSupply.prototype.getFrozenAmount = function() {
623
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
624
+ };
625
+
626
+
627
+ /**
628
+ * @param {number} value
629
+ * @return {!TronWebProto.AssetIssueContract.FrozenSupply} returns this
630
+ */
631
+ TronWebProto.AssetIssueContract.FrozenSupply.prototype.setFrozenAmount = function(value) {
632
+ return jspb.Message.setProto3IntField(this, 1, value);
633
+ };
634
+
635
+
636
+ /**
637
+ * optional int64 frozen_days = 2;
638
+ * @return {number}
639
+ */
640
+ TronWebProto.AssetIssueContract.FrozenSupply.prototype.getFrozenDays = function() {
641
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
642
+ };
643
+
644
+
645
+ /**
646
+ * @param {number} value
647
+ * @return {!TronWebProto.AssetIssueContract.FrozenSupply} returns this
648
+ */
649
+ TronWebProto.AssetIssueContract.FrozenSupply.prototype.setFrozenDays = function(value) {
650
+ return jspb.Message.setProto3IntField(this, 2, value);
651
+ };
652
+
653
+
654
+ /**
655
+ * optional string id = 41;
656
+ * @return {string}
657
+ */
658
+ TronWebProto.AssetIssueContract.prototype.getId = function() {
659
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 41, ""));
660
+ };
661
+
662
+
663
+ /**
664
+ * @param {string} value
665
+ * @return {!TronWebProto.AssetIssueContract} returns this
666
+ */
667
+ TronWebProto.AssetIssueContract.prototype.setId = function(value) {
668
+ return jspb.Message.setProto3StringField(this, 41, value);
669
+ };
670
+
671
+
672
+ /**
673
+ * optional bytes owner_address = 1;
674
+ * @return {!(string|Uint8Array)}
675
+ */
676
+ TronWebProto.AssetIssueContract.prototype.getOwnerAddress = function() {
677
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
678
+ };
679
+
680
+
681
+ /**
682
+ * optional bytes owner_address = 1;
683
+ * This is a type-conversion wrapper around `getOwnerAddress()`
684
+ * @return {string}
685
+ */
686
+ TronWebProto.AssetIssueContract.prototype.getOwnerAddress_asB64 = function() {
687
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
688
+ this.getOwnerAddress()));
689
+ };
690
+
691
+
692
+ /**
693
+ * optional bytes owner_address = 1;
694
+ * Note that Uint8Array is not supported on all browsers.
695
+ * @see http://caniuse.com/Uint8Array
696
+ * This is a type-conversion wrapper around `getOwnerAddress()`
697
+ * @return {!Uint8Array}
698
+ */
699
+ TronWebProto.AssetIssueContract.prototype.getOwnerAddress_asU8 = function() {
700
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
701
+ this.getOwnerAddress()));
702
+ };
703
+
704
+
705
+ /**
706
+ * @param {!(string|Uint8Array)} value
707
+ * @return {!TronWebProto.AssetIssueContract} returns this
708
+ */
709
+ TronWebProto.AssetIssueContract.prototype.setOwnerAddress = function(value) {
710
+ return jspb.Message.setProto3BytesField(this, 1, value);
711
+ };
712
+
713
+
714
+ /**
715
+ * optional bytes name = 2;
716
+ * @return {!(string|Uint8Array)}
717
+ */
718
+ TronWebProto.AssetIssueContract.prototype.getName = function() {
719
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
720
+ };
721
+
722
+
723
+ /**
724
+ * optional bytes name = 2;
725
+ * This is a type-conversion wrapper around `getName()`
726
+ * @return {string}
727
+ */
728
+ TronWebProto.AssetIssueContract.prototype.getName_asB64 = function() {
729
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
730
+ this.getName()));
731
+ };
732
+
733
+
734
+ /**
735
+ * optional bytes name = 2;
736
+ * Note that Uint8Array is not supported on all browsers.
737
+ * @see http://caniuse.com/Uint8Array
738
+ * This is a type-conversion wrapper around `getName()`
739
+ * @return {!Uint8Array}
740
+ */
741
+ TronWebProto.AssetIssueContract.prototype.getName_asU8 = function() {
742
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
743
+ this.getName()));
744
+ };
745
+
746
+
747
+ /**
748
+ * @param {!(string|Uint8Array)} value
749
+ * @return {!TronWebProto.AssetIssueContract} returns this
750
+ */
751
+ TronWebProto.AssetIssueContract.prototype.setName = function(value) {
752
+ return jspb.Message.setProto3BytesField(this, 2, value);
753
+ };
754
+
755
+
756
+ /**
757
+ * optional bytes abbr = 3;
758
+ * @return {!(string|Uint8Array)}
759
+ */
760
+ TronWebProto.AssetIssueContract.prototype.getAbbr = function() {
761
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
762
+ };
763
+
764
+
765
+ /**
766
+ * optional bytes abbr = 3;
767
+ * This is a type-conversion wrapper around `getAbbr()`
768
+ * @return {string}
769
+ */
770
+ TronWebProto.AssetIssueContract.prototype.getAbbr_asB64 = function() {
771
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
772
+ this.getAbbr()));
773
+ };
774
+
775
+
776
+ /**
777
+ * optional bytes abbr = 3;
778
+ * Note that Uint8Array is not supported on all browsers.
779
+ * @see http://caniuse.com/Uint8Array
780
+ * This is a type-conversion wrapper around `getAbbr()`
781
+ * @return {!Uint8Array}
782
+ */
783
+ TronWebProto.AssetIssueContract.prototype.getAbbr_asU8 = function() {
784
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
785
+ this.getAbbr()));
786
+ };
787
+
788
+
789
+ /**
790
+ * @param {!(string|Uint8Array)} value
791
+ * @return {!TronWebProto.AssetIssueContract} returns this
792
+ */
793
+ TronWebProto.AssetIssueContract.prototype.setAbbr = function(value) {
794
+ return jspb.Message.setProto3BytesField(this, 3, value);
795
+ };
796
+
797
+
798
+ /**
799
+ * optional int64 total_supply = 4;
800
+ * @return {number}
801
+ */
802
+ TronWebProto.AssetIssueContract.prototype.getTotalSupply = function() {
803
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
804
+ };
805
+
806
+
807
+ /**
808
+ * @param {number} value
809
+ * @return {!TronWebProto.AssetIssueContract} returns this
810
+ */
811
+ TronWebProto.AssetIssueContract.prototype.setTotalSupply = function(value) {
812
+ return jspb.Message.setProto3IntField(this, 4, value);
813
+ };
814
+
815
+
816
+ /**
817
+ * repeated FrozenSupply frozen_supply = 5;
818
+ * @return {!Array<!TronWebProto.AssetIssueContract.FrozenSupply>}
819
+ */
820
+ TronWebProto.AssetIssueContract.prototype.getFrozenSupplyList = function() {
821
+ return /** @type{!Array<!TronWebProto.AssetIssueContract.FrozenSupply>} */ (
822
+ jspb.Message.getRepeatedWrapperField(this, TronWebProto.AssetIssueContract.FrozenSupply, 5));
823
+ };
824
+
825
+
826
+ /**
827
+ * @param {!Array<!TronWebProto.AssetIssueContract.FrozenSupply>} value
828
+ * @return {!TronWebProto.AssetIssueContract} returns this
829
+ */
830
+ TronWebProto.AssetIssueContract.prototype.setFrozenSupplyList = function(value) {
831
+ return jspb.Message.setRepeatedWrapperField(this, 5, value);
832
+ };
833
+
834
+
835
+ /**
836
+ * @param {!TronWebProto.AssetIssueContract.FrozenSupply=} opt_value
837
+ * @param {number=} opt_index
838
+ * @return {!TronWebProto.AssetIssueContract.FrozenSupply}
839
+ */
840
+ TronWebProto.AssetIssueContract.prototype.addFrozenSupply = function(opt_value, opt_index) {
841
+ return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, TronWebProto.AssetIssueContract.FrozenSupply, opt_index);
842
+ };
843
+
844
+
845
+ /**
846
+ * Clears the list making it empty but non-null.
847
+ * @return {!TronWebProto.AssetIssueContract} returns this
848
+ */
849
+ TronWebProto.AssetIssueContract.prototype.clearFrozenSupplyList = function() {
850
+ return this.setFrozenSupplyList([]);
851
+ };
852
+
853
+
854
+ /**
855
+ * optional int32 trx_num = 6;
856
+ * @return {number}
857
+ */
858
+ TronWebProto.AssetIssueContract.prototype.getTrxNum = function() {
859
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
860
+ };
861
+
862
+
863
+ /**
864
+ * @param {number} value
865
+ * @return {!TronWebProto.AssetIssueContract} returns this
866
+ */
867
+ TronWebProto.AssetIssueContract.prototype.setTrxNum = function(value) {
868
+ return jspb.Message.setProto3IntField(this, 6, value);
869
+ };
870
+
871
+
872
+ /**
873
+ * optional int32 precision = 7;
874
+ * @return {number}
875
+ */
876
+ TronWebProto.AssetIssueContract.prototype.getPrecision = function() {
877
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
878
+ };
879
+
880
+
881
+ /**
882
+ * @param {number} value
883
+ * @return {!TronWebProto.AssetIssueContract} returns this
884
+ */
885
+ TronWebProto.AssetIssueContract.prototype.setPrecision = function(value) {
886
+ return jspb.Message.setProto3IntField(this, 7, value);
887
+ };
888
+
889
+
890
+ /**
891
+ * optional int32 num = 8;
892
+ * @return {number}
893
+ */
894
+ TronWebProto.AssetIssueContract.prototype.getNum = function() {
895
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
896
+ };
897
+
898
+
899
+ /**
900
+ * @param {number} value
901
+ * @return {!TronWebProto.AssetIssueContract} returns this
902
+ */
903
+ TronWebProto.AssetIssueContract.prototype.setNum = function(value) {
904
+ return jspb.Message.setProto3IntField(this, 8, value);
905
+ };
906
+
907
+
908
+ /**
909
+ * optional int64 start_time = 9;
910
+ * @return {number}
911
+ */
912
+ TronWebProto.AssetIssueContract.prototype.getStartTime = function() {
913
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
914
+ };
915
+
916
+
917
+ /**
918
+ * @param {number} value
919
+ * @return {!TronWebProto.AssetIssueContract} returns this
920
+ */
921
+ TronWebProto.AssetIssueContract.prototype.setStartTime = function(value) {
922
+ return jspb.Message.setProto3IntField(this, 9, value);
923
+ };
924
+
925
+
926
+ /**
927
+ * optional int64 end_time = 10;
928
+ * @return {number}
929
+ */
930
+ TronWebProto.AssetIssueContract.prototype.getEndTime = function() {
931
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0));
932
+ };
933
+
934
+
935
+ /**
936
+ * @param {number} value
937
+ * @return {!TronWebProto.AssetIssueContract} returns this
938
+ */
939
+ TronWebProto.AssetIssueContract.prototype.setEndTime = function(value) {
940
+ return jspb.Message.setProto3IntField(this, 10, value);
941
+ };
942
+
943
+
944
+ /**
945
+ * optional int64 order = 11;
946
+ * @return {number}
947
+ */
948
+ TronWebProto.AssetIssueContract.prototype.getOrder = function() {
949
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0));
950
+ };
951
+
952
+
953
+ /**
954
+ * @param {number} value
955
+ * @return {!TronWebProto.AssetIssueContract} returns this
956
+ */
957
+ TronWebProto.AssetIssueContract.prototype.setOrder = function(value) {
958
+ return jspb.Message.setProto3IntField(this, 11, value);
959
+ };
960
+
961
+
962
+ /**
963
+ * optional int32 vote_score = 16;
964
+ * @return {number}
965
+ */
966
+ TronWebProto.AssetIssueContract.prototype.getVoteScore = function() {
967
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 16, 0));
968
+ };
969
+
970
+
971
+ /**
972
+ * @param {number} value
973
+ * @return {!TronWebProto.AssetIssueContract} returns this
974
+ */
975
+ TronWebProto.AssetIssueContract.prototype.setVoteScore = function(value) {
976
+ return jspb.Message.setProto3IntField(this, 16, value);
977
+ };
978
+
979
+
980
+ /**
981
+ * optional bytes description = 20;
982
+ * @return {!(string|Uint8Array)}
983
+ */
984
+ TronWebProto.AssetIssueContract.prototype.getDescription = function() {
985
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 20, ""));
986
+ };
987
+
988
+
989
+ /**
990
+ * optional bytes description = 20;
991
+ * This is a type-conversion wrapper around `getDescription()`
992
+ * @return {string}
993
+ */
994
+ TronWebProto.AssetIssueContract.prototype.getDescription_asB64 = function() {
995
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
996
+ this.getDescription()));
997
+ };
998
+
999
+
1000
+ /**
1001
+ * optional bytes description = 20;
1002
+ * Note that Uint8Array is not supported on all browsers.
1003
+ * @see http://caniuse.com/Uint8Array
1004
+ * This is a type-conversion wrapper around `getDescription()`
1005
+ * @return {!Uint8Array}
1006
+ */
1007
+ TronWebProto.AssetIssueContract.prototype.getDescription_asU8 = function() {
1008
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
1009
+ this.getDescription()));
1010
+ };
1011
+
1012
+
1013
+ /**
1014
+ * @param {!(string|Uint8Array)} value
1015
+ * @return {!TronWebProto.AssetIssueContract} returns this
1016
+ */
1017
+ TronWebProto.AssetIssueContract.prototype.setDescription = function(value) {
1018
+ return jspb.Message.setProto3BytesField(this, 20, value);
1019
+ };
1020
+
1021
+
1022
+ /**
1023
+ * optional bytes url = 21;
1024
+ * @return {!(string|Uint8Array)}
1025
+ */
1026
+ TronWebProto.AssetIssueContract.prototype.getUrl = function() {
1027
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 21, ""));
1028
+ };
1029
+
1030
+
1031
+ /**
1032
+ * optional bytes url = 21;
1033
+ * This is a type-conversion wrapper around `getUrl()`
1034
+ * @return {string}
1035
+ */
1036
+ TronWebProto.AssetIssueContract.prototype.getUrl_asB64 = function() {
1037
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
1038
+ this.getUrl()));
1039
+ };
1040
+
1041
+
1042
+ /**
1043
+ * optional bytes url = 21;
1044
+ * Note that Uint8Array is not supported on all browsers.
1045
+ * @see http://caniuse.com/Uint8Array
1046
+ * This is a type-conversion wrapper around `getUrl()`
1047
+ * @return {!Uint8Array}
1048
+ */
1049
+ TronWebProto.AssetIssueContract.prototype.getUrl_asU8 = function() {
1050
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
1051
+ this.getUrl()));
1052
+ };
1053
+
1054
+
1055
+ /**
1056
+ * @param {!(string|Uint8Array)} value
1057
+ * @return {!TronWebProto.AssetIssueContract} returns this
1058
+ */
1059
+ TronWebProto.AssetIssueContract.prototype.setUrl = function(value) {
1060
+ return jspb.Message.setProto3BytesField(this, 21, value);
1061
+ };
1062
+
1063
+
1064
+ /**
1065
+ * optional int64 free_asset_net_limit = 22;
1066
+ * @return {number}
1067
+ */
1068
+ TronWebProto.AssetIssueContract.prototype.getFreeAssetNetLimit = function() {
1069
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 22, 0));
1070
+ };
1071
+
1072
+
1073
+ /**
1074
+ * @param {number} value
1075
+ * @return {!TronWebProto.AssetIssueContract} returns this
1076
+ */
1077
+ TronWebProto.AssetIssueContract.prototype.setFreeAssetNetLimit = function(value) {
1078
+ return jspb.Message.setProto3IntField(this, 22, value);
1079
+ };
1080
+
1081
+
1082
+ /**
1083
+ * optional int64 public_free_asset_net_limit = 23;
1084
+ * @return {number}
1085
+ */
1086
+ TronWebProto.AssetIssueContract.prototype.getPublicFreeAssetNetLimit = function() {
1087
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 23, 0));
1088
+ };
1089
+
1090
+
1091
+ /**
1092
+ * @param {number} value
1093
+ * @return {!TronWebProto.AssetIssueContract} returns this
1094
+ */
1095
+ TronWebProto.AssetIssueContract.prototype.setPublicFreeAssetNetLimit = function(value) {
1096
+ return jspb.Message.setProto3IntField(this, 23, value);
1097
+ };
1098
+
1099
+
1100
+ /**
1101
+ * optional int64 public_free_asset_net_usage = 24;
1102
+ * @return {number}
1103
+ */
1104
+ TronWebProto.AssetIssueContract.prototype.getPublicFreeAssetNetUsage = function() {
1105
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 24, 0));
1106
+ };
1107
+
1108
+
1109
+ /**
1110
+ * @param {number} value
1111
+ * @return {!TronWebProto.AssetIssueContract} returns this
1112
+ */
1113
+ TronWebProto.AssetIssueContract.prototype.setPublicFreeAssetNetUsage = function(value) {
1114
+ return jspb.Message.setProto3IntField(this, 24, value);
1115
+ };
1116
+
1117
+
1118
+ /**
1119
+ * optional int64 public_latest_free_net_time = 25;
1120
+ * @return {number}
1121
+ */
1122
+ TronWebProto.AssetIssueContract.prototype.getPublicLatestFreeNetTime = function() {
1123
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 25, 0));
1124
+ };
1125
+
1126
+
1127
+ /**
1128
+ * @param {number} value
1129
+ * @return {!TronWebProto.AssetIssueContract} returns this
1130
+ */
1131
+ TronWebProto.AssetIssueContract.prototype.setPublicLatestFreeNetTime = function(value) {
1132
+ return jspb.Message.setProto3IntField(this, 25, value);
1133
+ };
1134
+
1135
+
1136
+
1137
+
1138
+
1139
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1140
+ /**
1141
+ * Creates an object representation of this proto.
1142
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1143
+ * Optional fields that are not set will be set to undefined.
1144
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1145
+ * For the list of reserved names please see:
1146
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1147
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1148
+ * JSPB instance for transitional soy proto support:
1149
+ * http://goto/soy-param-migration
1150
+ * @return {!Object}
1151
+ */
1152
+ TronWebProto.TransferAssetContract.prototype.toObject = function(opt_includeInstance) {
1153
+ return TronWebProto.TransferAssetContract.toObject(opt_includeInstance, this);
1154
+ };
1155
+
1156
+
1157
+ /**
1158
+ * Static version of the {@see toObject} method.
1159
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1160
+ * the JSPB instance for transitional soy proto support:
1161
+ * http://goto/soy-param-migration
1162
+ * @param {!TronWebProto.TransferAssetContract} msg The msg instance to transform.
1163
+ * @return {!Object}
1164
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1165
+ */
1166
+ TronWebProto.TransferAssetContract.toObject = function(includeInstance, msg) {
1167
+ var f, obj = {
1168
+ assetName: msg.getAssetName_asB64(),
1169
+ ownerAddress: msg.getOwnerAddress_asB64(),
1170
+ toAddress: msg.getToAddress_asB64(),
1171
+ amount: jspb.Message.getFieldWithDefault(msg, 4, 0)
1172
+ };
1173
+
1174
+ if (includeInstance) {
1175
+ obj.$jspbMessageInstance = msg;
1176
+ }
1177
+ return obj;
1178
+ };
1179
+ }
1180
+
1181
+
1182
+ /**
1183
+ * Deserializes binary data (in protobuf wire format).
1184
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1185
+ * @return {!TronWebProto.TransferAssetContract}
1186
+ */
1187
+ TronWebProto.TransferAssetContract.deserializeBinary = function(bytes) {
1188
+ var reader = new jspb.BinaryReader(bytes);
1189
+ var msg = new TronWebProto.TransferAssetContract;
1190
+ return TronWebProto.TransferAssetContract.deserializeBinaryFromReader(msg, reader);
1191
+ };
1192
+
1193
+
1194
+ /**
1195
+ * Deserializes binary data (in protobuf wire format) from the
1196
+ * given reader into the given message object.
1197
+ * @param {!TronWebProto.TransferAssetContract} msg The message object to deserialize into.
1198
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1199
+ * @return {!TronWebProto.TransferAssetContract}
1200
+ */
1201
+ TronWebProto.TransferAssetContract.deserializeBinaryFromReader = function(msg, reader) {
1202
+ while (reader.nextField()) {
1203
+ if (reader.isEndGroup()) {
1204
+ break;
1205
+ }
1206
+ var field = reader.getFieldNumber();
1207
+ switch (field) {
1208
+ case 1:
1209
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
1210
+ msg.setAssetName(value);
1211
+ break;
1212
+ case 2:
1213
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
1214
+ msg.setOwnerAddress(value);
1215
+ break;
1216
+ case 3:
1217
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
1218
+ msg.setToAddress(value);
1219
+ break;
1220
+ case 4:
1221
+ var value = /** @type {number} */ (reader.readInt64());
1222
+ msg.setAmount(value);
1223
+ break;
1224
+ default:
1225
+ reader.skipField();
1226
+ break;
1227
+ }
1228
+ }
1229
+ return msg;
1230
+ };
1231
+
1232
+
1233
+ /**
1234
+ * Serializes the message to binary data (in protobuf wire format).
1235
+ * @return {!Uint8Array}
1236
+ */
1237
+ TronWebProto.TransferAssetContract.prototype.serializeBinary = function() {
1238
+ var writer = new jspb.BinaryWriter();
1239
+ TronWebProto.TransferAssetContract.serializeBinaryToWriter(this, writer);
1240
+ return writer.getResultBuffer();
1241
+ };
1242
+
1243
+
1244
+ /**
1245
+ * Serializes the given message to binary data (in protobuf wire
1246
+ * format), writing to the given BinaryWriter.
1247
+ * @param {!TronWebProto.TransferAssetContract} message
1248
+ * @param {!jspb.BinaryWriter} writer
1249
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1250
+ */
1251
+ TronWebProto.TransferAssetContract.serializeBinaryToWriter = function(message, writer) {
1252
+ var f = undefined;
1253
+ f = message.getAssetName_asU8();
1254
+ if (f.length > 0) {
1255
+ writer.writeBytes(
1256
+ 1,
1257
+ f
1258
+ );
1259
+ }
1260
+ f = message.getOwnerAddress_asU8();
1261
+ if (f.length > 0) {
1262
+ writer.writeBytes(
1263
+ 2,
1264
+ f
1265
+ );
1266
+ }
1267
+ f = message.getToAddress_asU8();
1268
+ if (f.length > 0) {
1269
+ writer.writeBytes(
1270
+ 3,
1271
+ f
1272
+ );
1273
+ }
1274
+ f = message.getAmount();
1275
+ if (f !== 0) {
1276
+ writer.writeInt64(
1277
+ 4,
1278
+ f
1279
+ );
1280
+ }
1281
+ };
1282
+
1283
+
1284
+ /**
1285
+ * optional bytes asset_name = 1;
1286
+ * @return {!(string|Uint8Array)}
1287
+ */
1288
+ TronWebProto.TransferAssetContract.prototype.getAssetName = function() {
1289
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1290
+ };
1291
+
1292
+
1293
+ /**
1294
+ * optional bytes asset_name = 1;
1295
+ * This is a type-conversion wrapper around `getAssetName()`
1296
+ * @return {string}
1297
+ */
1298
+ TronWebProto.TransferAssetContract.prototype.getAssetName_asB64 = function() {
1299
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
1300
+ this.getAssetName()));
1301
+ };
1302
+
1303
+
1304
+ /**
1305
+ * optional bytes asset_name = 1;
1306
+ * Note that Uint8Array is not supported on all browsers.
1307
+ * @see http://caniuse.com/Uint8Array
1308
+ * This is a type-conversion wrapper around `getAssetName()`
1309
+ * @return {!Uint8Array}
1310
+ */
1311
+ TronWebProto.TransferAssetContract.prototype.getAssetName_asU8 = function() {
1312
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
1313
+ this.getAssetName()));
1314
+ };
1315
+
1316
+
1317
+ /**
1318
+ * @param {!(string|Uint8Array)} value
1319
+ * @return {!TronWebProto.TransferAssetContract} returns this
1320
+ */
1321
+ TronWebProto.TransferAssetContract.prototype.setAssetName = function(value) {
1322
+ return jspb.Message.setProto3BytesField(this, 1, value);
1323
+ };
1324
+
1325
+
1326
+ /**
1327
+ * optional bytes owner_address = 2;
1328
+ * @return {!(string|Uint8Array)}
1329
+ */
1330
+ TronWebProto.TransferAssetContract.prototype.getOwnerAddress = function() {
1331
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1332
+ };
1333
+
1334
+
1335
+ /**
1336
+ * optional bytes owner_address = 2;
1337
+ * This is a type-conversion wrapper around `getOwnerAddress()`
1338
+ * @return {string}
1339
+ */
1340
+ TronWebProto.TransferAssetContract.prototype.getOwnerAddress_asB64 = function() {
1341
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
1342
+ this.getOwnerAddress()));
1343
+ };
1344
+
1345
+
1346
+ /**
1347
+ * optional bytes owner_address = 2;
1348
+ * Note that Uint8Array is not supported on all browsers.
1349
+ * @see http://caniuse.com/Uint8Array
1350
+ * This is a type-conversion wrapper around `getOwnerAddress()`
1351
+ * @return {!Uint8Array}
1352
+ */
1353
+ TronWebProto.TransferAssetContract.prototype.getOwnerAddress_asU8 = function() {
1354
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
1355
+ this.getOwnerAddress()));
1356
+ };
1357
+
1358
+
1359
+ /**
1360
+ * @param {!(string|Uint8Array)} value
1361
+ * @return {!TronWebProto.TransferAssetContract} returns this
1362
+ */
1363
+ TronWebProto.TransferAssetContract.prototype.setOwnerAddress = function(value) {
1364
+ return jspb.Message.setProto3BytesField(this, 2, value);
1365
+ };
1366
+
1367
+
1368
+ /**
1369
+ * optional bytes to_address = 3;
1370
+ * @return {!(string|Uint8Array)}
1371
+ */
1372
+ TronWebProto.TransferAssetContract.prototype.getToAddress = function() {
1373
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1374
+ };
1375
+
1376
+
1377
+ /**
1378
+ * optional bytes to_address = 3;
1379
+ * This is a type-conversion wrapper around `getToAddress()`
1380
+ * @return {string}
1381
+ */
1382
+ TronWebProto.TransferAssetContract.prototype.getToAddress_asB64 = function() {
1383
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
1384
+ this.getToAddress()));
1385
+ };
1386
+
1387
+
1388
+ /**
1389
+ * optional bytes to_address = 3;
1390
+ * Note that Uint8Array is not supported on all browsers.
1391
+ * @see http://caniuse.com/Uint8Array
1392
+ * This is a type-conversion wrapper around `getToAddress()`
1393
+ * @return {!Uint8Array}
1394
+ */
1395
+ TronWebProto.TransferAssetContract.prototype.getToAddress_asU8 = function() {
1396
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
1397
+ this.getToAddress()));
1398
+ };
1399
+
1400
+
1401
+ /**
1402
+ * @param {!(string|Uint8Array)} value
1403
+ * @return {!TronWebProto.TransferAssetContract} returns this
1404
+ */
1405
+ TronWebProto.TransferAssetContract.prototype.setToAddress = function(value) {
1406
+ return jspb.Message.setProto3BytesField(this, 3, value);
1407
+ };
1408
+
1409
+
1410
+ /**
1411
+ * optional int64 amount = 4;
1412
+ * @return {number}
1413
+ */
1414
+ TronWebProto.TransferAssetContract.prototype.getAmount = function() {
1415
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
1416
+ };
1417
+
1418
+
1419
+ /**
1420
+ * @param {number} value
1421
+ * @return {!TronWebProto.TransferAssetContract} returns this
1422
+ */
1423
+ TronWebProto.TransferAssetContract.prototype.setAmount = function(value) {
1424
+ return jspb.Message.setProto3IntField(this, 4, value);
1425
+ };
1426
+
1427
+
1428
+
1429
+
1430
+
1431
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1432
+ /**
1433
+ * Creates an object representation of this proto.
1434
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1435
+ * Optional fields that are not set will be set to undefined.
1436
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1437
+ * For the list of reserved names please see:
1438
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1439
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1440
+ * JSPB instance for transitional soy proto support:
1441
+ * http://goto/soy-param-migration
1442
+ * @return {!Object}
1443
+ */
1444
+ TronWebProto.UnfreezeAssetContract.prototype.toObject = function(opt_includeInstance) {
1445
+ return TronWebProto.UnfreezeAssetContract.toObject(opt_includeInstance, this);
1446
+ };
1447
+
1448
+
1449
+ /**
1450
+ * Static version of the {@see toObject} method.
1451
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1452
+ * the JSPB instance for transitional soy proto support:
1453
+ * http://goto/soy-param-migration
1454
+ * @param {!TronWebProto.UnfreezeAssetContract} msg The msg instance to transform.
1455
+ * @return {!Object}
1456
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1457
+ */
1458
+ TronWebProto.UnfreezeAssetContract.toObject = function(includeInstance, msg) {
1459
+ var f, obj = {
1460
+ ownerAddress: msg.getOwnerAddress_asB64()
1461
+ };
1462
+
1463
+ if (includeInstance) {
1464
+ obj.$jspbMessageInstance = msg;
1465
+ }
1466
+ return obj;
1467
+ };
1468
+ }
1469
+
1470
+
1471
+ /**
1472
+ * Deserializes binary data (in protobuf wire format).
1473
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1474
+ * @return {!TronWebProto.UnfreezeAssetContract}
1475
+ */
1476
+ TronWebProto.UnfreezeAssetContract.deserializeBinary = function(bytes) {
1477
+ var reader = new jspb.BinaryReader(bytes);
1478
+ var msg = new TronWebProto.UnfreezeAssetContract;
1479
+ return TronWebProto.UnfreezeAssetContract.deserializeBinaryFromReader(msg, reader);
1480
+ };
1481
+
1482
+
1483
+ /**
1484
+ * Deserializes binary data (in protobuf wire format) from the
1485
+ * given reader into the given message object.
1486
+ * @param {!TronWebProto.UnfreezeAssetContract} msg The message object to deserialize into.
1487
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1488
+ * @return {!TronWebProto.UnfreezeAssetContract}
1489
+ */
1490
+ TronWebProto.UnfreezeAssetContract.deserializeBinaryFromReader = function(msg, reader) {
1491
+ while (reader.nextField()) {
1492
+ if (reader.isEndGroup()) {
1493
+ break;
1494
+ }
1495
+ var field = reader.getFieldNumber();
1496
+ switch (field) {
1497
+ case 1:
1498
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
1499
+ msg.setOwnerAddress(value);
1500
+ break;
1501
+ default:
1502
+ reader.skipField();
1503
+ break;
1504
+ }
1505
+ }
1506
+ return msg;
1507
+ };
1508
+
1509
+
1510
+ /**
1511
+ * Serializes the message to binary data (in protobuf wire format).
1512
+ * @return {!Uint8Array}
1513
+ */
1514
+ TronWebProto.UnfreezeAssetContract.prototype.serializeBinary = function() {
1515
+ var writer = new jspb.BinaryWriter();
1516
+ TronWebProto.UnfreezeAssetContract.serializeBinaryToWriter(this, writer);
1517
+ return writer.getResultBuffer();
1518
+ };
1519
+
1520
+
1521
+ /**
1522
+ * Serializes the given message to binary data (in protobuf wire
1523
+ * format), writing to the given BinaryWriter.
1524
+ * @param {!TronWebProto.UnfreezeAssetContract} message
1525
+ * @param {!jspb.BinaryWriter} writer
1526
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1527
+ */
1528
+ TronWebProto.UnfreezeAssetContract.serializeBinaryToWriter = function(message, writer) {
1529
+ var f = undefined;
1530
+ f = message.getOwnerAddress_asU8();
1531
+ if (f.length > 0) {
1532
+ writer.writeBytes(
1533
+ 1,
1534
+ f
1535
+ );
1536
+ }
1537
+ };
1538
+
1539
+
1540
+ /**
1541
+ * optional bytes owner_address = 1;
1542
+ * @return {!(string|Uint8Array)}
1543
+ */
1544
+ TronWebProto.UnfreezeAssetContract.prototype.getOwnerAddress = function() {
1545
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1546
+ };
1547
+
1548
+
1549
+ /**
1550
+ * optional bytes owner_address = 1;
1551
+ * This is a type-conversion wrapper around `getOwnerAddress()`
1552
+ * @return {string}
1553
+ */
1554
+ TronWebProto.UnfreezeAssetContract.prototype.getOwnerAddress_asB64 = function() {
1555
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
1556
+ this.getOwnerAddress()));
1557
+ };
1558
+
1559
+
1560
+ /**
1561
+ * optional bytes owner_address = 1;
1562
+ * Note that Uint8Array is not supported on all browsers.
1563
+ * @see http://caniuse.com/Uint8Array
1564
+ * This is a type-conversion wrapper around `getOwnerAddress()`
1565
+ * @return {!Uint8Array}
1566
+ */
1567
+ TronWebProto.UnfreezeAssetContract.prototype.getOwnerAddress_asU8 = function() {
1568
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
1569
+ this.getOwnerAddress()));
1570
+ };
1571
+
1572
+
1573
+ /**
1574
+ * @param {!(string|Uint8Array)} value
1575
+ * @return {!TronWebProto.UnfreezeAssetContract} returns this
1576
+ */
1577
+ TronWebProto.UnfreezeAssetContract.prototype.setOwnerAddress = function(value) {
1578
+ return jspb.Message.setProto3BytesField(this, 1, value);
1579
+ };
1580
+
1581
+
1582
+
1583
+
1584
+
1585
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1586
+ /**
1587
+ * Creates an object representation of this proto.
1588
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1589
+ * Optional fields that are not set will be set to undefined.
1590
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1591
+ * For the list of reserved names please see:
1592
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1593
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1594
+ * JSPB instance for transitional soy proto support:
1595
+ * http://goto/soy-param-migration
1596
+ * @return {!Object}
1597
+ */
1598
+ TronWebProto.UpdateAssetContract.prototype.toObject = function(opt_includeInstance) {
1599
+ return TronWebProto.UpdateAssetContract.toObject(opt_includeInstance, this);
1600
+ };
1601
+
1602
+
1603
+ /**
1604
+ * Static version of the {@see toObject} method.
1605
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1606
+ * the JSPB instance for transitional soy proto support:
1607
+ * http://goto/soy-param-migration
1608
+ * @param {!TronWebProto.UpdateAssetContract} msg The msg instance to transform.
1609
+ * @return {!Object}
1610
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1611
+ */
1612
+ TronWebProto.UpdateAssetContract.toObject = function(includeInstance, msg) {
1613
+ var f, obj = {
1614
+ ownerAddress: msg.getOwnerAddress_asB64(),
1615
+ description: msg.getDescription_asB64(),
1616
+ url: msg.getUrl_asB64(),
1617
+ newLimit: jspb.Message.getFieldWithDefault(msg, 4, 0),
1618
+ newPublicLimit: jspb.Message.getFieldWithDefault(msg, 5, 0)
1619
+ };
1620
+
1621
+ if (includeInstance) {
1622
+ obj.$jspbMessageInstance = msg;
1623
+ }
1624
+ return obj;
1625
+ };
1626
+ }
1627
+
1628
+
1629
+ /**
1630
+ * Deserializes binary data (in protobuf wire format).
1631
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1632
+ * @return {!TronWebProto.UpdateAssetContract}
1633
+ */
1634
+ TronWebProto.UpdateAssetContract.deserializeBinary = function(bytes) {
1635
+ var reader = new jspb.BinaryReader(bytes);
1636
+ var msg = new TronWebProto.UpdateAssetContract;
1637
+ return TronWebProto.UpdateAssetContract.deserializeBinaryFromReader(msg, reader);
1638
+ };
1639
+
1640
+
1641
+ /**
1642
+ * Deserializes binary data (in protobuf wire format) from the
1643
+ * given reader into the given message object.
1644
+ * @param {!TronWebProto.UpdateAssetContract} msg The message object to deserialize into.
1645
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1646
+ * @return {!TronWebProto.UpdateAssetContract}
1647
+ */
1648
+ TronWebProto.UpdateAssetContract.deserializeBinaryFromReader = function(msg, reader) {
1649
+ while (reader.nextField()) {
1650
+ if (reader.isEndGroup()) {
1651
+ break;
1652
+ }
1653
+ var field = reader.getFieldNumber();
1654
+ switch (field) {
1655
+ case 1:
1656
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
1657
+ msg.setOwnerAddress(value);
1658
+ break;
1659
+ case 2:
1660
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
1661
+ msg.setDescription(value);
1662
+ break;
1663
+ case 3:
1664
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
1665
+ msg.setUrl(value);
1666
+ break;
1667
+ case 4:
1668
+ var value = /** @type {number} */ (reader.readInt64());
1669
+ msg.setNewLimit(value);
1670
+ break;
1671
+ case 5:
1672
+ var value = /** @type {number} */ (reader.readInt64());
1673
+ msg.setNewPublicLimit(value);
1674
+ break;
1675
+ default:
1676
+ reader.skipField();
1677
+ break;
1678
+ }
1679
+ }
1680
+ return msg;
1681
+ };
1682
+
1683
+
1684
+ /**
1685
+ * Serializes the message to binary data (in protobuf wire format).
1686
+ * @return {!Uint8Array}
1687
+ */
1688
+ TronWebProto.UpdateAssetContract.prototype.serializeBinary = function() {
1689
+ var writer = new jspb.BinaryWriter();
1690
+ TronWebProto.UpdateAssetContract.serializeBinaryToWriter(this, writer);
1691
+ return writer.getResultBuffer();
1692
+ };
1693
+
1694
+
1695
+ /**
1696
+ * Serializes the given message to binary data (in protobuf wire
1697
+ * format), writing to the given BinaryWriter.
1698
+ * @param {!TronWebProto.UpdateAssetContract} message
1699
+ * @param {!jspb.BinaryWriter} writer
1700
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1701
+ */
1702
+ TronWebProto.UpdateAssetContract.serializeBinaryToWriter = function(message, writer) {
1703
+ var f = undefined;
1704
+ f = message.getOwnerAddress_asU8();
1705
+ if (f.length > 0) {
1706
+ writer.writeBytes(
1707
+ 1,
1708
+ f
1709
+ );
1710
+ }
1711
+ f = message.getDescription_asU8();
1712
+ if (f.length > 0) {
1713
+ writer.writeBytes(
1714
+ 2,
1715
+ f
1716
+ );
1717
+ }
1718
+ f = message.getUrl_asU8();
1719
+ if (f.length > 0) {
1720
+ writer.writeBytes(
1721
+ 3,
1722
+ f
1723
+ );
1724
+ }
1725
+ f = message.getNewLimit();
1726
+ if (f !== 0) {
1727
+ writer.writeInt64(
1728
+ 4,
1729
+ f
1730
+ );
1731
+ }
1732
+ f = message.getNewPublicLimit();
1733
+ if (f !== 0) {
1734
+ writer.writeInt64(
1735
+ 5,
1736
+ f
1737
+ );
1738
+ }
1739
+ };
1740
+
1741
+
1742
+ /**
1743
+ * optional bytes owner_address = 1;
1744
+ * @return {!(string|Uint8Array)}
1745
+ */
1746
+ TronWebProto.UpdateAssetContract.prototype.getOwnerAddress = function() {
1747
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1748
+ };
1749
+
1750
+
1751
+ /**
1752
+ * optional bytes owner_address = 1;
1753
+ * This is a type-conversion wrapper around `getOwnerAddress()`
1754
+ * @return {string}
1755
+ */
1756
+ TronWebProto.UpdateAssetContract.prototype.getOwnerAddress_asB64 = function() {
1757
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
1758
+ this.getOwnerAddress()));
1759
+ };
1760
+
1761
+
1762
+ /**
1763
+ * optional bytes owner_address = 1;
1764
+ * Note that Uint8Array is not supported on all browsers.
1765
+ * @see http://caniuse.com/Uint8Array
1766
+ * This is a type-conversion wrapper around `getOwnerAddress()`
1767
+ * @return {!Uint8Array}
1768
+ */
1769
+ TronWebProto.UpdateAssetContract.prototype.getOwnerAddress_asU8 = function() {
1770
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
1771
+ this.getOwnerAddress()));
1772
+ };
1773
+
1774
+
1775
+ /**
1776
+ * @param {!(string|Uint8Array)} value
1777
+ * @return {!TronWebProto.UpdateAssetContract} returns this
1778
+ */
1779
+ TronWebProto.UpdateAssetContract.prototype.setOwnerAddress = function(value) {
1780
+ return jspb.Message.setProto3BytesField(this, 1, value);
1781
+ };
1782
+
1783
+
1784
+ /**
1785
+ * optional bytes description = 2;
1786
+ * @return {!(string|Uint8Array)}
1787
+ */
1788
+ TronWebProto.UpdateAssetContract.prototype.getDescription = function() {
1789
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1790
+ };
1791
+
1792
+
1793
+ /**
1794
+ * optional bytes description = 2;
1795
+ * This is a type-conversion wrapper around `getDescription()`
1796
+ * @return {string}
1797
+ */
1798
+ TronWebProto.UpdateAssetContract.prototype.getDescription_asB64 = function() {
1799
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
1800
+ this.getDescription()));
1801
+ };
1802
+
1803
+
1804
+ /**
1805
+ * optional bytes description = 2;
1806
+ * Note that Uint8Array is not supported on all browsers.
1807
+ * @see http://caniuse.com/Uint8Array
1808
+ * This is a type-conversion wrapper around `getDescription()`
1809
+ * @return {!Uint8Array}
1810
+ */
1811
+ TronWebProto.UpdateAssetContract.prototype.getDescription_asU8 = function() {
1812
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
1813
+ this.getDescription()));
1814
+ };
1815
+
1816
+
1817
+ /**
1818
+ * @param {!(string|Uint8Array)} value
1819
+ * @return {!TronWebProto.UpdateAssetContract} returns this
1820
+ */
1821
+ TronWebProto.UpdateAssetContract.prototype.setDescription = function(value) {
1822
+ return jspb.Message.setProto3BytesField(this, 2, value);
1823
+ };
1824
+
1825
+
1826
+ /**
1827
+ * optional bytes url = 3;
1828
+ * @return {!(string|Uint8Array)}
1829
+ */
1830
+ TronWebProto.UpdateAssetContract.prototype.getUrl = function() {
1831
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1832
+ };
1833
+
1834
+
1835
+ /**
1836
+ * optional bytes url = 3;
1837
+ * This is a type-conversion wrapper around `getUrl()`
1838
+ * @return {string}
1839
+ */
1840
+ TronWebProto.UpdateAssetContract.prototype.getUrl_asB64 = function() {
1841
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
1842
+ this.getUrl()));
1843
+ };
1844
+
1845
+
1846
+ /**
1847
+ * optional bytes url = 3;
1848
+ * Note that Uint8Array is not supported on all browsers.
1849
+ * @see http://caniuse.com/Uint8Array
1850
+ * This is a type-conversion wrapper around `getUrl()`
1851
+ * @return {!Uint8Array}
1852
+ */
1853
+ TronWebProto.UpdateAssetContract.prototype.getUrl_asU8 = function() {
1854
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
1855
+ this.getUrl()));
1856
+ };
1857
+
1858
+
1859
+ /**
1860
+ * @param {!(string|Uint8Array)} value
1861
+ * @return {!TronWebProto.UpdateAssetContract} returns this
1862
+ */
1863
+ TronWebProto.UpdateAssetContract.prototype.setUrl = function(value) {
1864
+ return jspb.Message.setProto3BytesField(this, 3, value);
1865
+ };
1866
+
1867
+
1868
+ /**
1869
+ * optional int64 new_limit = 4;
1870
+ * @return {number}
1871
+ */
1872
+ TronWebProto.UpdateAssetContract.prototype.getNewLimit = function() {
1873
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
1874
+ };
1875
+
1876
+
1877
+ /**
1878
+ * @param {number} value
1879
+ * @return {!TronWebProto.UpdateAssetContract} returns this
1880
+ */
1881
+ TronWebProto.UpdateAssetContract.prototype.setNewLimit = function(value) {
1882
+ return jspb.Message.setProto3IntField(this, 4, value);
1883
+ };
1884
+
1885
+
1886
+ /**
1887
+ * optional int64 new_public_limit = 5;
1888
+ * @return {number}
1889
+ */
1890
+ TronWebProto.UpdateAssetContract.prototype.getNewPublicLimit = function() {
1891
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
1892
+ };
1893
+
1894
+
1895
+ /**
1896
+ * @param {number} value
1897
+ * @return {!TronWebProto.UpdateAssetContract} returns this
1898
+ */
1899
+ TronWebProto.UpdateAssetContract.prototype.setNewPublicLimit = function(value) {
1900
+ return jspb.Message.setProto3IntField(this, 5, value);
1901
+ };
1902
+
1903
+
1904
+
1905
+
1906
+
1907
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1908
+ /**
1909
+ * Creates an object representation of this proto.
1910
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1911
+ * Optional fields that are not set will be set to undefined.
1912
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1913
+ * For the list of reserved names please see:
1914
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1915
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1916
+ * JSPB instance for transitional soy proto support:
1917
+ * http://goto/soy-param-migration
1918
+ * @return {!Object}
1919
+ */
1920
+ TronWebProto.ParticipateAssetIssueContract.prototype.toObject = function(opt_includeInstance) {
1921
+ return TronWebProto.ParticipateAssetIssueContract.toObject(opt_includeInstance, this);
1922
+ };
1923
+
1924
+
1925
+ /**
1926
+ * Static version of the {@see toObject} method.
1927
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1928
+ * the JSPB instance for transitional soy proto support:
1929
+ * http://goto/soy-param-migration
1930
+ * @param {!TronWebProto.ParticipateAssetIssueContract} msg The msg instance to transform.
1931
+ * @return {!Object}
1932
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1933
+ */
1934
+ TronWebProto.ParticipateAssetIssueContract.toObject = function(includeInstance, msg) {
1935
+ var f, obj = {
1936
+ ownerAddress: msg.getOwnerAddress_asB64(),
1937
+ toAddress: msg.getToAddress_asB64(),
1938
+ assetName: msg.getAssetName_asB64(),
1939
+ amount: jspb.Message.getFieldWithDefault(msg, 4, 0)
1940
+ };
1941
+
1942
+ if (includeInstance) {
1943
+ obj.$jspbMessageInstance = msg;
1944
+ }
1945
+ return obj;
1946
+ };
1947
+ }
1948
+
1949
+
1950
+ /**
1951
+ * Deserializes binary data (in protobuf wire format).
1952
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1953
+ * @return {!TronWebProto.ParticipateAssetIssueContract}
1954
+ */
1955
+ TronWebProto.ParticipateAssetIssueContract.deserializeBinary = function(bytes) {
1956
+ var reader = new jspb.BinaryReader(bytes);
1957
+ var msg = new TronWebProto.ParticipateAssetIssueContract;
1958
+ return TronWebProto.ParticipateAssetIssueContract.deserializeBinaryFromReader(msg, reader);
1959
+ };
1960
+
1961
+
1962
+ /**
1963
+ * Deserializes binary data (in protobuf wire format) from the
1964
+ * given reader into the given message object.
1965
+ * @param {!TronWebProto.ParticipateAssetIssueContract} msg The message object to deserialize into.
1966
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1967
+ * @return {!TronWebProto.ParticipateAssetIssueContract}
1968
+ */
1969
+ TronWebProto.ParticipateAssetIssueContract.deserializeBinaryFromReader = function(msg, reader) {
1970
+ while (reader.nextField()) {
1971
+ if (reader.isEndGroup()) {
1972
+ break;
1973
+ }
1974
+ var field = reader.getFieldNumber();
1975
+ switch (field) {
1976
+ case 1:
1977
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
1978
+ msg.setOwnerAddress(value);
1979
+ break;
1980
+ case 2:
1981
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
1982
+ msg.setToAddress(value);
1983
+ break;
1984
+ case 3:
1985
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
1986
+ msg.setAssetName(value);
1987
+ break;
1988
+ case 4:
1989
+ var value = /** @type {number} */ (reader.readInt64());
1990
+ msg.setAmount(value);
1991
+ break;
1992
+ default:
1993
+ reader.skipField();
1994
+ break;
1995
+ }
1996
+ }
1997
+ return msg;
1998
+ };
1999
+
2000
+
2001
+ /**
2002
+ * Serializes the message to binary data (in protobuf wire format).
2003
+ * @return {!Uint8Array}
2004
+ */
2005
+ TronWebProto.ParticipateAssetIssueContract.prototype.serializeBinary = function() {
2006
+ var writer = new jspb.BinaryWriter();
2007
+ TronWebProto.ParticipateAssetIssueContract.serializeBinaryToWriter(this, writer);
2008
+ return writer.getResultBuffer();
2009
+ };
2010
+
2011
+
2012
+ /**
2013
+ * Serializes the given message to binary data (in protobuf wire
2014
+ * format), writing to the given BinaryWriter.
2015
+ * @param {!TronWebProto.ParticipateAssetIssueContract} message
2016
+ * @param {!jspb.BinaryWriter} writer
2017
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2018
+ */
2019
+ TronWebProto.ParticipateAssetIssueContract.serializeBinaryToWriter = function(message, writer) {
2020
+ var f = undefined;
2021
+ f = message.getOwnerAddress_asU8();
2022
+ if (f.length > 0) {
2023
+ writer.writeBytes(
2024
+ 1,
2025
+ f
2026
+ );
2027
+ }
2028
+ f = message.getToAddress_asU8();
2029
+ if (f.length > 0) {
2030
+ writer.writeBytes(
2031
+ 2,
2032
+ f
2033
+ );
2034
+ }
2035
+ f = message.getAssetName_asU8();
2036
+ if (f.length > 0) {
2037
+ writer.writeBytes(
2038
+ 3,
2039
+ f
2040
+ );
2041
+ }
2042
+ f = message.getAmount();
2043
+ if (f !== 0) {
2044
+ writer.writeInt64(
2045
+ 4,
2046
+ f
2047
+ );
2048
+ }
2049
+ };
2050
+
2051
+
2052
+ /**
2053
+ * optional bytes owner_address = 1;
2054
+ * @return {!(string|Uint8Array)}
2055
+ */
2056
+ TronWebProto.ParticipateAssetIssueContract.prototype.getOwnerAddress = function() {
2057
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2058
+ };
2059
+
2060
+
2061
+ /**
2062
+ * optional bytes owner_address = 1;
2063
+ * This is a type-conversion wrapper around `getOwnerAddress()`
2064
+ * @return {string}
2065
+ */
2066
+ TronWebProto.ParticipateAssetIssueContract.prototype.getOwnerAddress_asB64 = function() {
2067
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
2068
+ this.getOwnerAddress()));
2069
+ };
2070
+
2071
+
2072
+ /**
2073
+ * optional bytes owner_address = 1;
2074
+ * Note that Uint8Array is not supported on all browsers.
2075
+ * @see http://caniuse.com/Uint8Array
2076
+ * This is a type-conversion wrapper around `getOwnerAddress()`
2077
+ * @return {!Uint8Array}
2078
+ */
2079
+ TronWebProto.ParticipateAssetIssueContract.prototype.getOwnerAddress_asU8 = function() {
2080
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
2081
+ this.getOwnerAddress()));
2082
+ };
2083
+
2084
+
2085
+ /**
2086
+ * @param {!(string|Uint8Array)} value
2087
+ * @return {!TronWebProto.ParticipateAssetIssueContract} returns this
2088
+ */
2089
+ TronWebProto.ParticipateAssetIssueContract.prototype.setOwnerAddress = function(value) {
2090
+ return jspb.Message.setProto3BytesField(this, 1, value);
2091
+ };
2092
+
2093
+
2094
+ /**
2095
+ * optional bytes to_address = 2;
2096
+ * @return {!(string|Uint8Array)}
2097
+ */
2098
+ TronWebProto.ParticipateAssetIssueContract.prototype.getToAddress = function() {
2099
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2100
+ };
2101
+
2102
+
2103
+ /**
2104
+ * optional bytes to_address = 2;
2105
+ * This is a type-conversion wrapper around `getToAddress()`
2106
+ * @return {string}
2107
+ */
2108
+ TronWebProto.ParticipateAssetIssueContract.prototype.getToAddress_asB64 = function() {
2109
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
2110
+ this.getToAddress()));
2111
+ };
2112
+
2113
+
2114
+ /**
2115
+ * optional bytes to_address = 2;
2116
+ * Note that Uint8Array is not supported on all browsers.
2117
+ * @see http://caniuse.com/Uint8Array
2118
+ * This is a type-conversion wrapper around `getToAddress()`
2119
+ * @return {!Uint8Array}
2120
+ */
2121
+ TronWebProto.ParticipateAssetIssueContract.prototype.getToAddress_asU8 = function() {
2122
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
2123
+ this.getToAddress()));
2124
+ };
2125
+
2126
+
2127
+ /**
2128
+ * @param {!(string|Uint8Array)} value
2129
+ * @return {!TronWebProto.ParticipateAssetIssueContract} returns this
2130
+ */
2131
+ TronWebProto.ParticipateAssetIssueContract.prototype.setToAddress = function(value) {
2132
+ return jspb.Message.setProto3BytesField(this, 2, value);
2133
+ };
2134
+
2135
+
2136
+ /**
2137
+ * optional bytes asset_name = 3;
2138
+ * @return {!(string|Uint8Array)}
2139
+ */
2140
+ TronWebProto.ParticipateAssetIssueContract.prototype.getAssetName = function() {
2141
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2142
+ };
2143
+
2144
+
2145
+ /**
2146
+ * optional bytes asset_name = 3;
2147
+ * This is a type-conversion wrapper around `getAssetName()`
2148
+ * @return {string}
2149
+ */
2150
+ TronWebProto.ParticipateAssetIssueContract.prototype.getAssetName_asB64 = function() {
2151
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
2152
+ this.getAssetName()));
2153
+ };
2154
+
2155
+
2156
+ /**
2157
+ * optional bytes asset_name = 3;
2158
+ * Note that Uint8Array is not supported on all browsers.
2159
+ * @see http://caniuse.com/Uint8Array
2160
+ * This is a type-conversion wrapper around `getAssetName()`
2161
+ * @return {!Uint8Array}
2162
+ */
2163
+ TronWebProto.ParticipateAssetIssueContract.prototype.getAssetName_asU8 = function() {
2164
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
2165
+ this.getAssetName()));
2166
+ };
2167
+
2168
+
2169
+ /**
2170
+ * @param {!(string|Uint8Array)} value
2171
+ * @return {!TronWebProto.ParticipateAssetIssueContract} returns this
2172
+ */
2173
+ TronWebProto.ParticipateAssetIssueContract.prototype.setAssetName = function(value) {
2174
+ return jspb.Message.setProto3BytesField(this, 3, value);
2175
+ };
2176
+
2177
+
2178
+ /**
2179
+ * optional int64 amount = 4;
2180
+ * @return {number}
2181
+ */
2182
+ TronWebProto.ParticipateAssetIssueContract.prototype.getAmount = function() {
2183
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
2184
+ };
2185
+
2186
+
2187
+ /**
2188
+ * @param {number} value
2189
+ * @return {!TronWebProto.ParticipateAssetIssueContract} returns this
2190
+ */
2191
+ TronWebProto.ParticipateAssetIssueContract.prototype.setAmount = function(value) {
2192
+ return jspb.Message.setProto3IntField(this, 4, value);
2193
+ };
2194
+
2195
+
2196
+ goog.object.extend(exports, TronWebProto);