@steemit/steem-js 0.7.11 → 0.8.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 (74) hide show
  1. package/README.md +22 -3
  2. package/circle.yml +1 -1
  3. package/config.json +1 -1
  4. package/dist/steem-tests.min.js +4097 -23
  5. package/dist/steem.min.js +2089 -18
  6. package/docker-webpack.config.js +44 -0
  7. package/lib/api/index.js +305 -412
  8. package/lib/api/methods.js +16 -1
  9. package/lib/api/rpc-auth.js +135 -0
  10. package/lib/api/transports/base.js +25 -66
  11. package/lib/api/transports/http.js +114 -129
  12. package/lib/api/transports/index.js +8 -15
  13. package/lib/api/transports/ws.js +107 -207
  14. package/lib/auth/ecc/index.js +9 -9
  15. package/lib/auth/ecc/src/address.js +48 -78
  16. package/lib/auth/ecc/src/aes.js +93 -129
  17. package/lib/auth/ecc/src/brain_key.js +7 -7
  18. package/lib/auth/ecc/src/ecdsa.js +7 -33
  19. package/lib/auth/ecc/src/ecsignature.js +4 -30
  20. package/lib/auth/ecc/src/enforce_types.js +1 -8
  21. package/lib/auth/ecc/src/hash.js +16 -25
  22. package/lib/auth/ecc/src/key_private.js +146 -199
  23. package/lib/auth/ecc/src/key_public.js +130 -202
  24. package/lib/auth/ecc/src/key_utils.js +64 -106
  25. package/lib/auth/ecc/src/signature.js +125 -177
  26. package/lib/auth/index.js +84 -97
  27. package/lib/auth/memo.js +90 -118
  28. package/lib/auth/serializer/index.js +12 -18
  29. package/lib/auth/serializer/src/ChainTypes.js +0 -3
  30. package/lib/auth/serializer/src/convert.js +29 -32
  31. package/lib/auth/serializer/src/error_with_cause.js +22 -37
  32. package/lib/auth/serializer/src/fast_parser.js +54 -74
  33. package/lib/auth/serializer/src/number_utils.js +30 -54
  34. package/lib/auth/serializer/src/object_id.js +37 -62
  35. package/lib/auth/serializer/src/operations.js +597 -689
  36. package/lib/auth/serializer/src/precision.js +55 -73
  37. package/lib/auth/serializer/src/serializer.js +158 -204
  38. package/lib/auth/serializer/src/template.js +13 -8
  39. package/lib/auth/serializer/src/types.js +949 -1102
  40. package/lib/auth/serializer/src/validation.js +268 -328
  41. package/lib/broadcast/helpers.js +61 -98
  42. package/lib/broadcast/index.js +61 -82
  43. package/lib/browser.js +15 -19
  44. package/lib/config.js +16 -38
  45. package/lib/formatter.js +89 -115
  46. package/lib/index.js +19 -17
  47. package/lib/utils.js +4 -9
  48. package/node-18.dockerfile +28 -0
  49. package/package.json +62 -38
  50. package/test/Crypto.js +16 -16
  51. package/test/KeyFormats.js +1 -1
  52. package/test/api.test.js +37 -0
  53. package/test/broadcast.test.js +14 -8
  54. package/test/comment.test.js +17 -3
  55. package/test/operations_test.js +1 -1
  56. package/test/promise-broadcast.test.js +86 -0
  57. package/test/reputation.test.js +68 -0
  58. package/test/smt.test.js +10 -10
  59. package/test-github-workflow.bat +19 -0
  60. package/test-github-workflow.sh +15 -0
  61. package/webpack/makeConfig.js +25 -17
  62. package/.circleci/config.yml +0 -23
  63. package/dist/statistics.html +0 -208
  64. package/dist/steem-tests.min.js.gz +0 -0
  65. package/dist/steem-tests.min.js.map +0 -1
  66. package/dist/steem.min.js.gz +0 -0
  67. package/dist/steem.min.js.map +0 -1
  68. package/lib/auth/ecc/README.md +0 -20
  69. package/lib/auth/ecc/package.json +0 -36
  70. package/lib/auth/serializer/README.md +0 -13
  71. package/lib/auth/serializer/package.json +0 -32
  72. package/node-4.dockerfile +0 -6
  73. package/node-6.dockerfile +0 -6
  74. package/yarn.lock +0 -3336
@@ -1,15 +1,5 @@
1
1
  "use strict";
2
2
 
3
- var _types = require("./types");
4
-
5
- var _types2 = _interopRequireDefault(_types);
6
-
7
- var _serializer = require("./serializer");
8
-
9
- var _serializer2 = _interopRequireDefault(_serializer);
10
-
11
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
-
13
3
  // This file is merge updated from steemd's js_operation_serializer program.
14
4
  /*
15
5
 
@@ -42,102 +32,95 @@ static_variant [
42
32
 
43
33
  // Merge tmp.js - See "Generated code follows" below
44
34
 
45
- var uint8 = _types2.default.uint8,
46
- uint16 = _types2.default.uint16,
47
- int16 = _types2.default.int16,
48
- uint32 = _types2.default.uint32,
49
- uint64 = _types2.default.uint64,
50
- int64 = _types2.default.int64,
51
- uint128 = _types2.default.uint128,
52
- string = _types2.default.string,
53
- string_binary = _types2.default.string_binary,
54
- bytes = _types2.default.bytes,
55
- bool = _types2.default.bool,
56
- array = _types2.default.array,
57
- static_variant = _types2.default.static_variant,
58
- map = _types2.default.map,
59
- set = _types2.default.set,
60
- public_key = _types2.default.public_key,
61
- time_point_sec = _types2.default.time_point_sec,
62
- optional = _types2.default.optional,
63
- asset = _types2.default.asset,
64
- asset_symbol = _types2.default.asset_symbol;
65
-
66
-
67
- var future_extensions = _types2.default.void;
68
- var hardfork_version_vote = _types2.default.void;
69
- var version = _types2.default.void;
70
- var required_automated_actions = _types2.default.void;
71
- var optional_automated_actions = _types2.default.void;
35
+ const types = require("./types");
36
+ const SerializerImpl = require("./serializer");
37
+ const {
38
+ //id_type,
39
+ //varint32, uint8, int64, fixed_array, object_id_type, vote_id, address,
40
+ uint8,
41
+ uint16,
42
+ int16,
43
+ uint32,
44
+ uint64,
45
+ int64,
46
+ uint128,
47
+ string,
48
+ string_binary,
49
+ bytes,
50
+ bool,
51
+ array,
52
+ // protocol_id_type,
53
+ static_variant,
54
+ map,
55
+ set,
56
+ public_key,
57
+ time_point_sec,
58
+ optional,
59
+ asset,
60
+ asset_symbol
61
+ } = types;
62
+ const future_extensions = types.void;
63
+ const hardfork_version_vote = types.void;
64
+ const version = types.void;
65
+ const required_automated_actions = types.void;
66
+ const optional_automated_actions = types.void;
72
67
 
73
68
  // Place-holder, their are dependencies on "operation" .. The final list of
74
69
  // operations is not avialble until the very end of the generated code.
75
70
  // See: operation.st_operations = ...
76
- var operation = static_variant();
71
+ const operation = static_variant();
77
72
  module.exports.operation = operation;
78
73
 
79
74
  // For module.exports
80
- var Serializer = function Serializer(operation_name, serilization_types_object) {
81
- var s = new _serializer2.default(operation_name, serilization_types_object);
82
- return module.exports[operation_name] = s;
75
+ const Serializer = function (operation_name, serilization_types_object) {
76
+ const s = new SerializerImpl(operation_name, serilization_types_object);
77
+ return module.exports[operation_name] = s;
83
78
  };
84
-
85
- var beneficiaries = new Serializer("beneficiaries", {
86
- account: string,
87
- weight: uint16
79
+ const beneficiaries = new Serializer("beneficiaries", {
80
+ account: string,
81
+ weight: uint16
88
82
  });
89
-
90
- var comment_payout_beneficiaries = new Serializer(0, {
91
- beneficiaries: set(beneficiaries)
83
+ const comment_payout_beneficiaries = new Serializer(0, {
84
+ beneficiaries: set(beneficiaries)
92
85
  });
93
-
94
- var votable_asset_options = new Serializer("votable_asset_options", {
95
- max_accepted_payout: int64,
96
- allow_curation_rewards: bool,
97
- beneficiaries: comment_payout_beneficiaries
86
+ const votable_asset_options = new Serializer("votable_asset_options", {
87
+ max_accepted_payout: int64,
88
+ allow_curation_rewards: bool,
89
+ beneficiaries: comment_payout_beneficiaries
98
90
  });
99
-
100
- var allowed_vote_assets = new Serializer(1, {
101
- votable_assets: map(asset_symbol, votable_asset_options)
91
+ const allowed_vote_assets = new Serializer(1, {
92
+ votable_assets: map(asset_symbol, votable_asset_options)
102
93
  });
103
-
104
- var smt_generation_unit = new Serializer("smt_generation_unit", {
105
- steem_unit: map(string, uint16),
106
- token_unit: map(string, uint16)
94
+ const smt_generation_unit = new Serializer("smt_generation_unit", {
95
+ steem_unit: map(string, uint16),
96
+ token_unit: map(string, uint16)
107
97
  });
108
-
109
- var smt_capped_generation_policy = new Serializer(0, {
110
- generation_unit: smt_generation_unit,
111
- extensions: set(future_extensions)
98
+ const smt_capped_generation_policy = new Serializer(0, {
99
+ generation_unit: smt_generation_unit,
100
+ extensions: set(future_extensions)
112
101
  });
113
-
114
- var smt_emissions_unit = new Serializer("smt_emissions_unit", {
115
- token_unit: map(string, uint16)
102
+ const smt_emissions_unit = new Serializer("smt_emissions_unit", {
103
+ token_unit: map(string, uint16)
116
104
  });
117
-
118
- var smt_param_allow_voting = new Serializer(0, {
119
- value: bool
105
+ const smt_param_allow_voting = new Serializer(0, {
106
+ value: bool
120
107
  });
121
-
122
- var smt_param_windows_v1 = new Serializer(0, {
123
- cashout_window_seconds: uint32,
124
- reverse_auction_window_seconds: uint32
108
+ const smt_param_windows_v1 = new Serializer(0, {
109
+ cashout_window_seconds: uint32,
110
+ reverse_auction_window_seconds: uint32
125
111
  });
126
-
127
- var smt_param_vote_regeneration_period_seconds_v1 = new Serializer(1, {
128
- vote_regeneration_period_seconds: uint32,
129
- votes_per_regeneration_period: uint32
112
+ const smt_param_vote_regeneration_period_seconds_v1 = new Serializer(1, {
113
+ vote_regeneration_period_seconds: uint32,
114
+ votes_per_regeneration_period: uint32
130
115
  });
131
-
132
- var smt_param_rewards_v1 = new Serializer(2, {
133
- content_constant: uint128,
134
- percent_curation_rewards: uint16,
135
- author_reward_curve: int64,
136
- curation_reward_curve: int64
116
+ const smt_param_rewards_v1 = new Serializer(2, {
117
+ content_constant: uint128,
118
+ percent_curation_rewards: uint16,
119
+ author_reward_curve: int64,
120
+ curation_reward_curve: int64
137
121
  });
138
-
139
- var smt_param_allow_downvotes = new Serializer(3, {
140
- value: bool
122
+ const smt_param_allow_downvotes = new Serializer(3, {
123
+ value: bool
141
124
  });
142
125
 
143
126
  // Custom-types after Generated code
@@ -164,607 +147,530 @@ let asset = new Serializer(
164
147
  Replace: authority.prototype.account_authority_map
165
148
  With: map((string), (uint16))
166
149
  */
167
- var signed_transaction = new Serializer("signed_transaction", {
168
- ref_block_num: uint16,
169
- ref_block_prefix: uint32,
170
- expiration: time_point_sec,
171
- operations: array(operation),
172
- extensions: set(future_extensions),
173
- signatures: array(bytes(65))
174
- });
175
-
176
- var signed_block = new Serializer("signed_block", {
177
- previous: bytes(20),
178
- timestamp: time_point_sec,
179
- witness: string,
180
- transaction_merkle_root: bytes(20),
181
- extensions: set(static_variant([future_extensions, version, hardfork_version_vote, required_automated_actions, optional_automated_actions])),
182
- witness_signature: bytes(65),
183
- transactions: array(signed_transaction)
184
- });
185
-
186
- var block_header = new Serializer("block_header", {
187
- previous: bytes(20),
188
- timestamp: time_point_sec,
189
- witness: string,
190
- transaction_merkle_root: bytes(20),
191
- extensions: set(static_variant([future_extensions, version, hardfork_version_vote]))
192
- });
193
-
194
- var signed_block_header = new Serializer("signed_block_header", {
195
- previous: bytes(20),
196
- timestamp: time_point_sec,
197
- witness: string,
198
- transaction_merkle_root: bytes(20),
199
- extensions: set(static_variant([future_extensions, version, hardfork_version_vote, required_automated_actions, optional_automated_actions])),
200
- witness_signature: bytes(65)
201
- });
202
-
203
- var vote = new Serializer("vote", {
204
- voter: string,
205
- author: string,
206
- permlink: string,
207
- weight: int16
208
- });
209
-
210
- var comment = new Serializer("comment", {
211
- parent_author: string,
212
- parent_permlink: string,
213
- author: string,
214
- permlink: string,
215
- title: string,
216
- body: string,
217
- json_metadata: string
218
- });
219
-
220
- var transfer = new Serializer("transfer", {
221
- from: string,
222
- to: string,
223
- amount: asset,
224
- memo: string
225
- });
226
-
227
- var transfer_to_vesting = new Serializer("transfer_to_vesting", {
228
- from: string,
229
- to: string,
230
- amount: asset
231
- });
232
-
233
- var withdraw_vesting = new Serializer("withdraw_vesting", {
234
- account: string,
235
- vesting_shares: asset
236
- });
237
-
238
- var limit_order_create = new Serializer("limit_order_create", {
239
- owner: string,
240
- orderid: uint32,
241
- amount_to_sell: asset,
242
- min_to_receive: asset,
243
- fill_or_kill: bool,
244
- expiration: time_point_sec
245
- });
246
-
247
- var limit_order_cancel = new Serializer("limit_order_cancel", {
248
- owner: string,
249
- orderid: uint32
250
- });
251
-
252
- var price = new Serializer("price", {
253
- base: asset,
254
- quote: asset
255
- });
256
-
257
- var feed_publish = new Serializer("feed_publish", {
258
- publisher: string,
259
- exchange_rate: price
260
- });
261
-
262
- var convert = new Serializer("convert", {
263
- owner: string,
264
- requestid: uint32,
265
- amount: asset
150
+ let signed_transaction = new Serializer("signed_transaction", {
151
+ ref_block_num: uint16,
152
+ ref_block_prefix: uint32,
153
+ expiration: time_point_sec,
154
+ operations: array(operation),
155
+ extensions: set(future_extensions),
156
+ signatures: array(bytes(65))
157
+ });
158
+ let signed_block = new Serializer("signed_block", {
159
+ previous: bytes(20),
160
+ timestamp: time_point_sec,
161
+ witness: string,
162
+ transaction_merkle_root: bytes(20),
163
+ extensions: set(static_variant([future_extensions, version, hardfork_version_vote, required_automated_actions, optional_automated_actions])),
164
+ witness_signature: bytes(65),
165
+ transactions: array(signed_transaction)
166
+ });
167
+ let block_header = new Serializer("block_header", {
168
+ previous: bytes(20),
169
+ timestamp: time_point_sec,
170
+ witness: string,
171
+ transaction_merkle_root: bytes(20),
172
+ extensions: set(static_variant([future_extensions, version, hardfork_version_vote]))
173
+ });
174
+ let signed_block_header = new Serializer("signed_block_header", {
175
+ previous: bytes(20),
176
+ timestamp: time_point_sec,
177
+ witness: string,
178
+ transaction_merkle_root: bytes(20),
179
+ extensions: set(static_variant([future_extensions, version, hardfork_version_vote, required_automated_actions, optional_automated_actions])),
180
+ witness_signature: bytes(65)
181
+ });
182
+ let vote = new Serializer("vote", {
183
+ voter: string,
184
+ author: string,
185
+ permlink: string,
186
+ weight: int16
187
+ });
188
+ let comment = new Serializer("comment", {
189
+ parent_author: string,
190
+ parent_permlink: string,
191
+ author: string,
192
+ permlink: string,
193
+ title: string,
194
+ body: string,
195
+ json_metadata: string
196
+ });
197
+ let transfer = new Serializer("transfer", {
198
+ from: string,
199
+ to: string,
200
+ amount: asset,
201
+ memo: string
202
+ });
203
+ let transfer_to_vesting = new Serializer("transfer_to_vesting", {
204
+ from: string,
205
+ to: string,
206
+ amount: asset
207
+ });
208
+ let withdraw_vesting = new Serializer("withdraw_vesting", {
209
+ account: string,
210
+ vesting_shares: asset
211
+ });
212
+ let limit_order_create = new Serializer("limit_order_create", {
213
+ owner: string,
214
+ orderid: uint32,
215
+ amount_to_sell: asset,
216
+ min_to_receive: asset,
217
+ fill_or_kill: bool,
218
+ expiration: time_point_sec
219
+ });
220
+ let limit_order_cancel = new Serializer("limit_order_cancel", {
221
+ owner: string,
222
+ orderid: uint32
223
+ });
224
+ let price = new Serializer("price", {
225
+ base: asset,
226
+ quote: asset
227
+ });
228
+ let feed_publish = new Serializer("feed_publish", {
229
+ publisher: string,
230
+ exchange_rate: price
231
+ });
232
+ let convert = new Serializer("convert", {
233
+ owner: string,
234
+ requestid: uint32,
235
+ amount: asset
266
236
  });
267
-
268
237
  var authority = new Serializer("authority", {
269
- weight_threshold: uint32,
270
- account_auths: map(string, uint16),
271
- key_auths: map(public_key, uint16)
272
- });
273
-
274
- var account_create = new Serializer("account_create", {
275
- fee: asset,
276
- creator: string,
277
- new_account_name: string,
278
- owner: authority,
279
- active: authority,
280
- posting: authority,
281
- memo_key: public_key,
282
- json_metadata: string
283
- });
284
-
285
- var account_update = new Serializer("account_update", {
286
- account: string,
287
- owner: optional(authority),
288
- active: optional(authority),
289
- posting: optional(authority),
290
- memo_key: public_key,
291
- json_metadata: string
292
- });
293
-
294
- var chain_properties = new Serializer("chain_properties", {
295
- account_creation_fee: asset,
296
- maximum_block_size: uint32,
297
- sbd_interest_rate: uint16
298
- });
299
-
300
- var witness_update = new Serializer("witness_update", {
301
- owner: string,
302
- url: string,
303
- block_signing_key: public_key,
304
- props: chain_properties,
305
- fee: asset
306
- });
307
-
308
- var account_witness_vote = new Serializer("account_witness_vote", {
309
- account: string,
310
- witness: string,
311
- approve: bool
312
- });
313
-
314
- var account_witness_proxy = new Serializer("account_witness_proxy", {
315
- account: string,
316
- proxy: string
317
- });
318
-
319
- var pow = new Serializer("pow", {
320
- worker: public_key,
321
- input: bytes(32),
322
- signature: bytes(65),
323
- work: bytes(32)
324
- });
325
-
326
- var custom = new Serializer("custom", {
327
- required_auths: set(string),
328
- id: uint16,
329
- data: bytes()
330
- });
331
-
332
- var report_over_production = new Serializer("report_over_production", {
333
- reporter: string,
334
- first_block: signed_block_header,
335
- second_block: signed_block_header
336
- });
337
-
338
- var delete_comment = new Serializer("delete_comment", {
339
- author: string,
340
- permlink: string
341
- });
342
-
343
- var custom_json = new Serializer("custom_json", {
344
- required_auths: set(string),
345
- required_posting_auths: set(string),
346
- id: string,
347
- json: string
348
- });
349
-
350
- var comment_options = new Serializer("comment_options", {
351
- author: string,
352
- permlink: string,
353
- max_accepted_payout: asset,
354
- percent_steem_dollars: uint16,
355
- allow_votes: bool,
356
- allow_curation_rewards: bool,
357
- extensions: set(static_variant([comment_payout_beneficiaries, allowed_vote_assets]))
358
- });
359
-
360
- var set_withdraw_vesting_route = new Serializer("set_withdraw_vesting_route", {
361
- from_account: string,
362
- to_account: string,
363
- percent: uint16,
364
- auto_vest: bool
365
- });
366
-
367
- var limit_order_create2 = new Serializer("limit_order_create2", {
368
- owner: string,
369
- orderid: uint32,
370
- amount_to_sell: asset,
371
- exchange_rate: price,
372
- fill_or_kill: bool,
373
- expiration: time_point_sec
374
- });
375
-
376
- var claim_account = new Serializer("claim_account", {
377
- creator: string,
378
- fee: asset,
379
- extensions: set(future_extensions)
380
- });
381
-
382
- var create_claimed_account = new Serializer("create_claimed_account", {
383
- creator: string,
384
- new_account_name: string,
385
- owner: authority,
386
- active: authority,
387
- posting: authority,
388
- memo_key: public_key,
389
- json_metadata: string,
390
- extensions: set(future_extensions)
238
+ weight_threshold: uint32,
239
+ account_auths: map(string, uint16),
240
+ key_auths: map(public_key, uint16)
241
+ });
242
+ let account_create = new Serializer("account_create", {
243
+ fee: asset,
244
+ creator: string,
245
+ new_account_name: string,
246
+ owner: authority,
247
+ active: authority,
248
+ posting: authority,
249
+ memo_key: public_key,
250
+ json_metadata: string
251
+ });
252
+ let account_update = new Serializer("account_update", {
253
+ account: string,
254
+ owner: optional(authority),
255
+ active: optional(authority),
256
+ posting: optional(authority),
257
+ memo_key: public_key,
258
+ json_metadata: string
259
+ });
260
+ let chain_properties = new Serializer("chain_properties", {
261
+ account_creation_fee: asset,
262
+ maximum_block_size: uint32,
263
+ sbd_interest_rate: uint16
264
+ });
265
+ let witness_update = new Serializer("witness_update", {
266
+ owner: string,
267
+ url: string,
268
+ block_signing_key: public_key,
269
+ props: chain_properties,
270
+ fee: asset
271
+ });
272
+ let account_witness_vote = new Serializer("account_witness_vote", {
273
+ account: string,
274
+ witness: string,
275
+ approve: bool
276
+ });
277
+ let account_witness_proxy = new Serializer("account_witness_proxy", {
278
+ account: string,
279
+ proxy: string
280
+ });
281
+ let pow = new Serializer("pow", {
282
+ worker: public_key,
283
+ input: bytes(32),
284
+ signature: bytes(65),
285
+ work: bytes(32)
286
+ });
287
+ let custom = new Serializer("custom", {
288
+ required_auths: set(string),
289
+ id: uint16,
290
+ data: bytes()
291
+ });
292
+ let report_over_production = new Serializer("report_over_production", {
293
+ reporter: string,
294
+ first_block: signed_block_header,
295
+ second_block: signed_block_header
296
+ });
297
+ let delete_comment = new Serializer("delete_comment", {
298
+ author: string,
299
+ permlink: string
300
+ });
301
+ let custom_json = new Serializer("custom_json", {
302
+ required_auths: set(string),
303
+ required_posting_auths: set(string),
304
+ id: string,
305
+ json: string
306
+ });
307
+ let comment_options = new Serializer("comment_options", {
308
+ author: string,
309
+ permlink: string,
310
+ max_accepted_payout: asset,
311
+ percent_steem_dollars: uint16,
312
+ allow_votes: bool,
313
+ allow_curation_rewards: bool,
314
+ extensions: set(static_variant([comment_payout_beneficiaries, allowed_vote_assets]))
315
+ });
316
+ let set_withdraw_vesting_route = new Serializer("set_withdraw_vesting_route", {
317
+ from_account: string,
318
+ to_account: string,
319
+ percent: uint16,
320
+ auto_vest: bool
321
+ });
322
+ let limit_order_create2 = new Serializer("limit_order_create2", {
323
+ owner: string,
324
+ orderid: uint32,
325
+ amount_to_sell: asset,
326
+ exchange_rate: price,
327
+ fill_or_kill: bool,
328
+ expiration: time_point_sec
329
+ });
330
+ let claim_account = new Serializer("claim_account", {
331
+ creator: string,
332
+ fee: asset,
333
+ extensions: set(future_extensions)
334
+ });
335
+ let create_claimed_account = new Serializer("create_claimed_account", {
336
+ creator: string,
337
+ new_account_name: string,
338
+ owner: authority,
339
+ active: authority,
340
+ posting: authority,
341
+ memo_key: public_key,
342
+ json_metadata: string,
343
+ extensions: set(future_extensions)
344
+ });
345
+ let request_account_recovery = new Serializer("request_account_recovery", {
346
+ recovery_account: string,
347
+ account_to_recover: string,
348
+ new_owner_authority: authority,
349
+ extensions: set(future_extensions)
350
+ });
351
+ let recover_account = new Serializer("recover_account", {
352
+ account_to_recover: string,
353
+ new_owner_authority: authority,
354
+ recent_owner_authority: authority,
355
+ extensions: set(future_extensions)
356
+ });
357
+ let change_recovery_account = new Serializer("change_recovery_account", {
358
+ account_to_recover: string,
359
+ new_recovery_account: string,
360
+ extensions: set(future_extensions)
361
+ });
362
+ let escrow_transfer = new Serializer("escrow_transfer", {
363
+ from: string,
364
+ to: string,
365
+ sbd_amount: asset,
366
+ steem_amount: asset,
367
+ escrow_id: uint32,
368
+ agent: string,
369
+ fee: asset,
370
+ json_meta: string,
371
+ ratification_deadline: time_point_sec,
372
+ escrow_expiration: time_point_sec
373
+ });
374
+ let escrow_dispute = new Serializer("escrow_dispute", {
375
+ from: string,
376
+ to: string,
377
+ agent: string,
378
+ who: string,
379
+ escrow_id: uint32
380
+ });
381
+ let escrow_release = new Serializer("escrow_release", {
382
+ from: string,
383
+ to: string,
384
+ agent: string,
385
+ who: string,
386
+ receiver: string,
387
+ escrow_id: uint32,
388
+ sbd_amount: asset,
389
+ steem_amount: asset
390
+ });
391
+ let pow2_input = new Serializer("pow2_input", {
392
+ worker_account: string,
393
+ prev_block: bytes(20),
394
+ nonce: uint64
395
+ });
396
+ let pow2 = new Serializer("pow2", {
397
+ input: pow2_input,
398
+ pow_summary: uint32
399
+ });
400
+ let equihash_proof = new Serializer("equihash_proof", {
401
+ n: uint32,
402
+ k: uint32,
403
+ seed: bytes(32),
404
+ inputs: array(uint32)
405
+ });
406
+ let equihash_pow = new Serializer("equihash_pow", {
407
+ input: pow2_input,
408
+ proof: equihash_proof,
409
+ prev_block: bytes(20),
410
+ pow_summary: uint32
411
+ });
412
+ let escrow_approve = new Serializer("escrow_approve", {
413
+ from: string,
414
+ to: string,
415
+ agent: string,
416
+ who: string,
417
+ escrow_id: uint32,
418
+ approve: bool
419
+ });
420
+ let transfer_to_savings = new Serializer("transfer_to_savings", {
421
+ from: string,
422
+ to: string,
423
+ amount: asset,
424
+ memo: string
425
+ });
426
+ let transfer_from_savings = new Serializer("transfer_from_savings", {
427
+ from: string,
428
+ request_id: uint32,
429
+ to: string,
430
+ amount: asset,
431
+ memo: string
432
+ });
433
+ let cancel_transfer_from_savings = new Serializer("cancel_transfer_from_savings", {
434
+ from: string,
435
+ request_id: uint32
436
+ });
437
+ let custom_binary = new Serializer("custom_binary", {
438
+ required_owner_auths: set(string),
439
+ required_active_auths: set(string),
440
+ required_posting_auths: set(string),
441
+ required_auths: array(authority),
442
+ id: string,
443
+ data: bytes()
444
+ });
445
+ let decline_voting_rights = new Serializer("decline_voting_rights", {
446
+ account: string,
447
+ decline: bool
448
+ });
449
+ let reset_account = new Serializer("reset_account", {
450
+ reset_account: string,
451
+ account_to_reset: string,
452
+ new_owner_authority: authority
453
+ });
454
+ let set_reset_account = new Serializer("set_reset_account", {
455
+ account: string,
456
+ current_reset_account: string,
457
+ reset_account: string
458
+ });
459
+ let claim_reward_balance = new Serializer("claim_reward_balance", {
460
+ account: string,
461
+ reward_steem: asset,
462
+ reward_sbd: asset,
463
+ reward_vests: asset
464
+ });
465
+ let delegate_vesting_shares = new Serializer("delegate_vesting_shares", {
466
+ delegator: string,
467
+ delegatee: string,
468
+ vesting_shares: asset
469
+ });
470
+ let account_create_with_delegation = new Serializer("account_create_with_delegation", {
471
+ fee: asset,
472
+ delegation: asset,
473
+ creator: string,
474
+ new_account_name: string,
475
+ owner: authority,
476
+ active: authority,
477
+ posting: authority,
478
+ memo_key: public_key,
479
+ json_metadata: string,
480
+ extensions: set(future_extensions)
481
+ });
482
+ let witness_set_properties = new Serializer("witness_set_properties", {
483
+ owner: string,
484
+ props: string,
485
+ extensions: set(future_extensions)
486
+ });
487
+ let account_update2 = new Serializer("account_update2", {
488
+ account: string,
489
+ owner: optional(authority),
490
+ active: optional(authority),
491
+ posting: optional(authority),
492
+ memo_key: optional(public_key),
493
+ json_metadata: string,
494
+ posting_json_metadata: string,
495
+ extensions: set(future_extensions)
496
+ });
497
+ let create_proposal = new Serializer("create_proposal", {
498
+ creator: string,
499
+ receiver: string,
500
+ start_date: time_point_sec,
501
+ end_date: time_point_sec,
502
+ daily_pay: asset,
503
+ subject: string,
504
+ permlink: string,
505
+ extensions: set(future_extensions)
506
+ });
507
+ let update_proposal_votes = new Serializer("update_proposal_votes", {
508
+ voter: string,
509
+ proposal_ids: array(uint64),
510
+ approve: bool,
511
+ extensions: set(future_extensions)
512
+ });
513
+ let remove_proposal = new Serializer("remove_proposal", {
514
+ proposal_owner: string,
515
+ proposal_ids: array(uint64),
516
+ extensions: set(future_extensions)
517
+ });
518
+ let claim_reward_balance2 = new Serializer("claim_reward_balance2", {
519
+ account: string,
520
+ reward_tokens: array(asset),
521
+ extensions: set(future_extensions)
522
+ });
523
+ let vote2 = new Serializer("vote2", {
524
+ voter: string,
525
+ author: string,
526
+ permlink: string,
527
+ rshares: map(asset_symbol, int64),
528
+ extensions: set(future_extensions)
529
+ });
530
+ let smt_create = new Serializer("smt_create", {
531
+ control_account: string,
532
+ symbol: asset_symbol,
533
+ smt_creation_fee: asset,
534
+ precision: uint8,
535
+ extensions: set(future_extensions)
536
+ });
537
+ let smt_setup = new Serializer("smt_setup", {
538
+ control_account: string,
539
+ symbol: asset_symbol,
540
+ max_supply: int64,
541
+ contribution_begin_time: time_point_sec,
542
+ contribution_end_time: time_point_sec,
543
+ launch_time: time_point_sec,
544
+ steem_units_min: int64,
545
+ min_unit_ratio: uint32,
546
+ max_unit_ratio: uint32,
547
+ extensions: set(future_extensions)
548
+ });
549
+ let smt_setup_emissions = new Serializer("smt_setup_emissions", {
550
+ control_account: string,
551
+ symbol: asset_symbol,
552
+ schedule_time: time_point_sec,
553
+ emissions_unit: smt_emissions_unit,
554
+ interval_seconds: uint32,
555
+ emission_count: uint32,
556
+ lep_time: time_point_sec,
557
+ rep_time: time_point_sec,
558
+ lep_abs_amount: int64,
559
+ rep_abs_amount: int64,
560
+ lep_rel_amount_numerator: uint32,
561
+ rep_rel_amount_numerator: uint32,
562
+ rel_amount_denom_bits: uint8,
563
+ remove: bool,
564
+ floor_emissions: bool,
565
+ extensions: set(future_extensions)
566
+ });
567
+ let smt_setup_ico_tier = new Serializer("smt_setup_ico_tier", {
568
+ control_account: string,
569
+ symbol: asset_symbol,
570
+ steem_units_cap: int64,
571
+ generation_policy: static_variant([smt_capped_generation_policy]),
572
+ remove: bool,
573
+ extensions: set(future_extensions)
574
+ });
575
+ let smt_set_setup_parameters = new Serializer("smt_set_setup_parameters", {
576
+ control_account: string,
577
+ symbol: asset_symbol,
578
+ setup_parameters: set(static_variant([smt_param_allow_voting])),
579
+ extensions: set(future_extensions)
580
+ });
581
+ let smt_set_runtime_parameters = new Serializer("smt_set_runtime_parameters", {
582
+ control_account: string,
583
+ symbol: asset_symbol,
584
+ runtime_parameters: set(static_variant([smt_param_windows_v1, smt_param_vote_regeneration_period_seconds_v1, smt_param_rewards_v1, smt_param_allow_downvotes])),
585
+ extensions: set(future_extensions)
586
+ });
587
+ let smt_contribute = new Serializer("smt_contribute", {
588
+ contributor: string,
589
+ symbol: asset_symbol,
590
+ contribution_id: uint32,
591
+ contribution: asset,
592
+ extensions: set(future_extensions)
593
+ });
594
+ let fill_convert_request = new Serializer("fill_convert_request", {
595
+ owner: string,
596
+ requestid: uint32,
597
+ amount_in: asset,
598
+ amount_out: asset
599
+ });
600
+ let author_reward = new Serializer("author_reward", {
601
+ author: string,
602
+ permlink: string,
603
+ sbd_payout: asset,
604
+ steem_payout: asset,
605
+ vesting_payout: asset
606
+ });
607
+ let curation_reward = new Serializer("curation_reward", {
608
+ curator: string,
609
+ reward: asset,
610
+ comment_author: string,
611
+ comment_permlink: string
612
+ });
613
+ let comment_reward = new Serializer("comment_reward", {
614
+ author: string,
615
+ permlink: string,
616
+ payout: asset
617
+ });
618
+ let liquidity_reward = new Serializer("liquidity_reward", {
619
+ owner: string,
620
+ payout: asset
621
+ });
622
+ let interest = new Serializer("interest", {
623
+ owner: string,
624
+ interest: asset
625
+ });
626
+ let fill_vesting_withdraw = new Serializer("fill_vesting_withdraw", {
627
+ from_account: string,
628
+ to_account: string,
629
+ withdrawn: asset,
630
+ deposited: asset
631
+ });
632
+ let fill_order = new Serializer("fill_order", {
633
+ current_owner: string,
634
+ current_orderid: uint32,
635
+ current_pays: asset,
636
+ open_owner: string,
637
+ open_orderid: uint32,
638
+ open_pays: asset
639
+ });
640
+ let shutdown_witness = new Serializer("shutdown_witness", {
641
+ owner: string
642
+ });
643
+ let fill_transfer_from_savings = new Serializer("fill_transfer_from_savings", {
644
+ from: string,
645
+ to: string,
646
+ amount: asset,
647
+ request_id: uint32,
648
+ memo: string
649
+ });
650
+ let hardfork = new Serializer("hardfork", {
651
+ hardfork_id: uint32
652
+ });
653
+ let comment_payout_update = new Serializer("comment_payout_update", {
654
+ author: string,
655
+ permlink: string
656
+ });
657
+ let return_vesting_delegation = new Serializer("return_vesting_delegation", {
658
+ account: string,
659
+ vesting_shares: asset
660
+ });
661
+ let comment_benefactor_reward = new Serializer("comment_benefactor_reward", {
662
+ benefactor: string,
663
+ author: string,
664
+ permlink: string,
665
+ reward: asset
391
666
  });
392
-
393
- var request_account_recovery = new Serializer("request_account_recovery", {
394
- recovery_account: string,
395
- account_to_recover: string,
396
- new_owner_authority: authority,
397
- extensions: set(future_extensions)
398
- });
399
-
400
- var recover_account = new Serializer("recover_account", {
401
- account_to_recover: string,
402
- new_owner_authority: authority,
403
- recent_owner_authority: authority,
404
- extensions: set(future_extensions)
405
- });
406
-
407
- var change_recovery_account = new Serializer("change_recovery_account", {
408
- account_to_recover: string,
409
- new_recovery_account: string,
410
- extensions: set(future_extensions)
411
- });
412
-
413
- var escrow_transfer = new Serializer("escrow_transfer", {
414
- from: string,
415
- to: string,
416
- sbd_amount: asset,
417
- steem_amount: asset,
418
- escrow_id: uint32,
419
- agent: string,
420
- fee: asset,
421
- json_meta: string,
422
- ratification_deadline: time_point_sec,
423
- escrow_expiration: time_point_sec
424
- });
425
-
426
- var escrow_dispute = new Serializer("escrow_dispute", {
427
- from: string,
428
- to: string,
429
- agent: string,
430
- who: string,
431
- escrow_id: uint32
432
- });
433
-
434
- var escrow_release = new Serializer("escrow_release", {
435
- from: string,
436
- to: string,
437
- agent: string,
438
- who: string,
439
- receiver: string,
440
- escrow_id: uint32,
441
- sbd_amount: asset,
442
- steem_amount: asset
443
- });
444
-
445
- var pow2_input = new Serializer("pow2_input", {
446
- worker_account: string,
447
- prev_block: bytes(20),
448
- nonce: uint64
449
- });
450
-
451
- var pow2 = new Serializer("pow2", {
452
- input: pow2_input,
453
- pow_summary: uint32
454
- });
455
-
456
- var equihash_proof = new Serializer("equihash_proof", {
457
- n: uint32,
458
- k: uint32,
459
- seed: bytes(32),
460
- inputs: array(uint32)
461
- });
462
-
463
- var equihash_pow = new Serializer("equihash_pow", {
464
- input: pow2_input,
465
- proof: equihash_proof,
466
- prev_block: bytes(20),
467
- pow_summary: uint32
468
- });
469
-
470
- var escrow_approve = new Serializer("escrow_approve", {
471
- from: string,
472
- to: string,
473
- agent: string,
474
- who: string,
475
- escrow_id: uint32,
476
- approve: bool
477
- });
478
-
479
- var transfer_to_savings = new Serializer("transfer_to_savings", {
480
- from: string,
481
- to: string,
482
- amount: asset,
483
- memo: string
484
- });
485
-
486
- var transfer_from_savings = new Serializer("transfer_from_savings", {
487
- from: string,
488
- request_id: uint32,
489
- to: string,
490
- amount: asset,
491
- memo: string
492
- });
493
-
494
- var cancel_transfer_from_savings = new Serializer("cancel_transfer_from_savings", {
495
- from: string,
496
- request_id: uint32
497
- });
498
-
499
- var custom_binary = new Serializer("custom_binary", {
500
- required_owner_auths: set(string),
501
- required_active_auths: set(string),
502
- required_posting_auths: set(string),
503
- required_auths: array(authority),
504
- id: string,
505
- data: bytes()
506
- });
507
-
508
- var decline_voting_rights = new Serializer("decline_voting_rights", {
509
- account: string,
510
- decline: bool
511
- });
512
-
513
- var reset_account = new Serializer("reset_account", {
514
- reset_account: string,
515
- account_to_reset: string,
516
- new_owner_authority: authority
517
- });
518
-
519
- var set_reset_account = new Serializer("set_reset_account", {
520
- account: string,
521
- current_reset_account: string,
522
- reset_account: string
523
- });
524
-
525
- var claim_reward_balance = new Serializer("claim_reward_balance", {
526
- account: string,
527
- reward_steem: asset,
528
- reward_sbd: asset,
529
- reward_vests: asset
530
- });
531
-
532
- var delegate_vesting_shares = new Serializer("delegate_vesting_shares", {
533
- delegator: string,
534
- delegatee: string,
535
- vesting_shares: asset
536
- });
537
-
538
- var account_create_with_delegation = new Serializer("account_create_with_delegation", {
539
- fee: asset,
540
- delegation: asset,
541
- creator: string,
542
- new_account_name: string,
543
- owner: authority,
544
- active: authority,
545
- posting: authority,
546
- memo_key: public_key,
547
- json_metadata: string,
548
- extensions: set(future_extensions)
549
- });
550
-
551
- var witness_set_properties = new Serializer("witness_set_properties", {
552
- owner: string,
553
- props: string,
554
- extensions: set(future_extensions)
555
- });
556
-
557
- var account_update2 = new Serializer("account_update2", {
558
- account: string,
559
- owner: optional(authority),
560
- active: optional(authority),
561
- posting: optional(authority),
562
- memo_key: optional(public_key),
563
- json_metadata: string,
564
- posting_json_metadata: string,
565
- extensions: set(future_extensions)
566
- });
567
-
568
- var create_proposal = new Serializer("create_proposal", {
569
- creator: string,
570
- receiver: string,
571
- start_date: time_point_sec,
572
- end_date: time_point_sec,
573
- daily_pay: asset,
574
- subject: string,
575
- permlink: string,
576
- extensions: set(future_extensions)
577
- });
578
-
579
- var update_proposal_votes = new Serializer("update_proposal_votes", {
580
- voter: string,
581
- proposal_ids: array(uint64),
582
- approve: bool,
583
- extensions: set(future_extensions)
584
- });
585
-
586
- var remove_proposal = new Serializer("remove_proposal", {
587
- proposal_owner: string,
588
- proposal_ids: array(uint64),
589
- extensions: set(future_extensions)
590
- });
591
-
592
- var claim_reward_balance2 = new Serializer("claim_reward_balance2", {
593
- account: string,
594
- reward_tokens: array(asset),
595
- extensions: set(future_extensions)
596
- });
597
-
598
- var vote2 = new Serializer("vote2", {
599
- voter: string,
600
- author: string,
601
- permlink: string,
602
- rshares: map(asset_symbol, int64),
603
- extensions: set(future_extensions)
604
- });
605
-
606
- var smt_create = new Serializer("smt_create", {
607
- control_account: string,
608
- symbol: asset_symbol,
609
- smt_creation_fee: asset,
610
- precision: uint8,
611
- extensions: set(future_extensions)
612
- });
613
-
614
- var smt_setup = new Serializer("smt_setup", {
615
- control_account: string,
616
- symbol: asset_symbol,
617
- max_supply: int64,
618
- contribution_begin_time: time_point_sec,
619
- contribution_end_time: time_point_sec,
620
- launch_time: time_point_sec,
621
- steem_units_min: int64,
622
- min_unit_ratio: uint32,
623
- max_unit_ratio: uint32,
624
- extensions: set(future_extensions)
625
- });
626
-
627
- var smt_setup_emissions = new Serializer("smt_setup_emissions", {
628
- control_account: string,
629
- symbol: asset_symbol,
630
- schedule_time: time_point_sec,
631
- emissions_unit: smt_emissions_unit,
632
- interval_seconds: uint32,
633
- emission_count: uint32,
634
- lep_time: time_point_sec,
635
- rep_time: time_point_sec,
636
- lep_abs_amount: int64,
637
- rep_abs_amount: int64,
638
- lep_rel_amount_numerator: uint32,
639
- rep_rel_amount_numerator: uint32,
640
- rel_amount_denom_bits: uint8,
641
- remove: bool,
642
- floor_emissions: bool,
643
- extensions: set(future_extensions)
644
- });
645
-
646
- var smt_setup_ico_tier = new Serializer("smt_setup_ico_tier", {
647
- control_account: string,
648
- symbol: asset_symbol,
649
- steem_units_cap: int64,
650
- generation_policy: static_variant([smt_capped_generation_policy]),
651
- remove: bool,
652
- extensions: set(future_extensions)
653
- });
654
-
655
- var smt_set_setup_parameters = new Serializer("smt_set_setup_parameters", {
656
- control_account: string,
657
- symbol: asset_symbol,
658
- setup_parameters: set(static_variant([smt_param_allow_voting])),
659
- extensions: set(future_extensions)
660
- });
661
-
662
- var smt_set_runtime_parameters = new Serializer("smt_set_runtime_parameters", {
663
- control_account: string,
664
- symbol: asset_symbol,
665
- runtime_parameters: set(static_variant([smt_param_windows_v1, smt_param_vote_regeneration_period_seconds_v1, smt_param_rewards_v1, smt_param_allow_downvotes])),
666
- extensions: set(future_extensions)
667
- });
668
-
669
- var smt_contribute = new Serializer("smt_contribute", {
670
- contributor: string,
671
- symbol: asset_symbol,
672
- contribution_id: uint32,
673
- contribution: asset,
674
- extensions: set(future_extensions)
675
- });
676
-
677
- var fill_convert_request = new Serializer("fill_convert_request", {
678
- owner: string,
679
- requestid: uint32,
680
- amount_in: asset,
681
- amount_out: asset
682
- });
683
-
684
- var author_reward = new Serializer("author_reward", {
685
- author: string,
686
- permlink: string,
687
- sbd_payout: asset,
688
- steem_payout: asset,
689
- vesting_payout: asset
690
- });
691
-
692
- var curation_reward = new Serializer("curation_reward", {
693
- curator: string,
694
- reward: asset,
695
- comment_author: string,
696
- comment_permlink: string
697
- });
698
-
699
- var comment_reward = new Serializer("comment_reward", {
700
- author: string,
701
- permlink: string,
702
- payout: asset
703
- });
704
-
705
- var liquidity_reward = new Serializer("liquidity_reward", {
706
- owner: string,
707
- payout: asset
708
- });
709
-
710
- var interest = new Serializer("interest", {
711
- owner: string,
712
- interest: asset
713
- });
714
-
715
- var fill_vesting_withdraw = new Serializer("fill_vesting_withdraw", {
716
- from_account: string,
717
- to_account: string,
718
- withdrawn: asset,
719
- deposited: asset
720
- });
721
-
722
- var fill_order = new Serializer("fill_order", {
723
- current_owner: string,
724
- current_orderid: uint32,
725
- current_pays: asset,
726
- open_owner: string,
727
- open_orderid: uint32,
728
- open_pays: asset
729
- });
730
-
731
- var shutdown_witness = new Serializer("shutdown_witness", { owner: string });
732
-
733
- var fill_transfer_from_savings = new Serializer("fill_transfer_from_savings", {
734
- from: string,
735
- to: string,
736
- amount: asset,
737
- request_id: uint32,
738
- memo: string
739
- });
740
-
741
- var hardfork = new Serializer("hardfork", { hardfork_id: uint32 });
742
-
743
- var comment_payout_update = new Serializer("comment_payout_update", {
744
- author: string,
745
- permlink: string
746
- });
747
-
748
- var return_vesting_delegation = new Serializer("return_vesting_delegation", {
749
- account: string,
750
- vesting_shares: asset
751
- });
752
-
753
- var comment_benefactor_reward = new Serializer("comment_benefactor_reward", {
754
- benefactor: string,
755
- author: string,
756
- permlink: string,
757
- reward: asset
758
- });
759
-
760
667
  operation.st_operations = [vote, comment, transfer, transfer_to_vesting, withdraw_vesting, limit_order_create, limit_order_cancel, feed_publish, convert, account_create, account_update, witness_update, account_witness_vote, account_witness_proxy, pow, custom, report_over_production, delete_comment, custom_json, comment_options, set_withdraw_vesting_route, limit_order_create2, claim_account, create_claimed_account, request_account_recovery, recover_account, change_recovery_account, escrow_transfer, escrow_dispute, escrow_release, pow2, escrow_approve, transfer_to_savings, transfer_from_savings, cancel_transfer_from_savings, custom_binary, decline_voting_rights, reset_account, set_reset_account, claim_reward_balance, delegate_vesting_shares, account_create_with_delegation, witness_set_properties, account_update2, create_proposal, update_proposal_votes, remove_proposal, claim_reward_balance2, vote2, smt_setup, smt_setup_emissions, smt_setup_ico_tier, smt_set_setup_parameters, smt_set_runtime_parameters, smt_create, smt_contribute, fill_convert_request, author_reward, curation_reward, comment_reward, liquidity_reward, interest, fill_vesting_withdraw, fill_order, shutdown_witness, fill_transfer_from_savings, hardfork, comment_payout_update, return_vesting_delegation, comment_benefactor_reward];
761
-
762
- var transaction = new Serializer("transaction", {
763
- ref_block_num: uint16,
764
- ref_block_prefix: uint32,
765
- expiration: time_point_sec,
766
- operations: array(operation),
767
- extensions: set(future_extensions)
668
+ let transaction = new Serializer("transaction", {
669
+ ref_block_num: uint16,
670
+ ref_block_prefix: uint32,
671
+ expiration: time_point_sec,
672
+ operations: array(operation),
673
+ extensions: set(future_extensions)
768
674
  });
769
675
 
770
676
  //# -------------------------------
@@ -773,11 +679,13 @@ var transaction = new Serializer("transaction", {
773
679
 
774
680
  // Custom Types (do not over-write)
775
681
 
776
- var encrypted_memo = new Serializer("encrypted_memo", { from: public_key,
777
- to: public_key,
778
- nonce: uint64,
779
- check: uint32,
780
- encrypted: string_binary });
682
+ const encrypted_memo = new Serializer("encrypted_memo", {
683
+ from: public_key,
684
+ to: public_key,
685
+ nonce: uint64,
686
+ check: uint32,
687
+ encrypted: string_binary
688
+ });
781
689
  /*
782
690
 
783
691
  // Make sure all tests pass