@steemit/steem-js 0.7.11 → 1.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 (132) hide show
  1. package/README.md +203 -87
  2. package/dist/api/index.d.ts +128 -0
  3. package/dist/api/methods.d.ts +9 -0
  4. package/dist/api/rpc-auth.d.ts +43 -0
  5. package/dist/api/transports/base.d.ts +13 -0
  6. package/dist/api/transports/http.d.ts +9 -0
  7. package/dist/api/transports/index.d.ts +9 -0
  8. package/dist/api/transports/types.d.ts +35 -0
  9. package/dist/api/transports/ws.d.ts +18 -0
  10. package/dist/auth/ecc/index.d.ts +9 -0
  11. package/dist/auth/ecc/src/address.d.ts +13 -0
  12. package/dist/auth/ecc/src/aes.d.ts +16 -0
  13. package/dist/auth/ecc/src/brain_key.d.ts +1 -0
  14. package/dist/auth/ecc/src/ecdsa.d.ts +28 -0
  15. package/dist/auth/ecc/src/ecsignature.d.ts +19 -0
  16. package/dist/auth/ecc/src/enforce_types.d.ts +5 -0
  17. package/dist/auth/ecc/src/hash.d.ts +25 -0
  18. package/dist/auth/ecc/src/index.d.ts +9 -0
  19. package/dist/auth/ecc/src/key_private.d.ts +38 -0
  20. package/dist/auth/ecc/src/key_public.d.ts +41 -0
  21. package/dist/auth/ecc/src/key_utils.d.ts +9 -0
  22. package/dist/auth/ecc/src/signature.d.ts +18 -0
  23. package/dist/auth/ecc.d.ts +3 -0
  24. package/dist/auth/index.d.ts +48 -0
  25. package/dist/auth/key_classes.d.ts +3 -0
  26. package/dist/auth/serializer.d.ts +19 -0
  27. package/dist/broadcast/helpers.d.ts +11 -0
  28. package/dist/broadcast/index.d.ts +43 -0
  29. package/dist/broadcast/operations.d.ts +6 -0
  30. package/dist/config.d.ts +25 -0
  31. package/dist/crypto/index.d.ts +25 -0
  32. package/dist/formatter/index.d.ts +92 -0
  33. package/dist/index.cjs +25848 -0
  34. package/dist/index.cjs.map +1 -0
  35. package/dist/index.d.ts +30 -0
  36. package/dist/index.js +25812 -0
  37. package/dist/index.js.map +1 -0
  38. package/dist/index.umd.js +57513 -0
  39. package/dist/index.umd.js.map +1 -0
  40. package/dist/memo/index.d.ts +11 -0
  41. package/dist/operations/index.d.ts +44 -0
  42. package/dist/serializer/convert.d.ts +12 -0
  43. package/dist/serializer/index.d.ts +11 -0
  44. package/dist/serializer/number_utils.d.ts +8 -0
  45. package/dist/serializer/precision.d.ts +5 -0
  46. package/dist/serializer/types.d.ts +36 -0
  47. package/dist/types/index.d.ts +131 -0
  48. package/dist/types.d.ts +34 -0
  49. package/dist/utils/index.d.ts +8 -0
  50. package/dist/utils.d.ts +2 -0
  51. package/package.json +72 -67
  52. package/.circleci/config.yml +0 -23
  53. package/.dockerignore +0 -12
  54. package/.editorconfig +0 -20
  55. package/.eslintrc +0 -27
  56. package/LICENSE +0 -21
  57. package/circle.yml +0 -3
  58. package/config.json +0 -10
  59. package/dist/statistics.html +0 -208
  60. package/dist/steem-tests.min.js +0 -23
  61. package/dist/steem-tests.min.js.gz +0 -0
  62. package/dist/steem-tests.min.js.map +0 -1
  63. package/dist/steem.min.js +0 -18
  64. package/dist/steem.min.js.gz +0 -0
  65. package/dist/steem.min.js.map +0 -1
  66. package/lib/api/index.js +0 -422
  67. package/lib/api/methods.js +0 -413
  68. package/lib/api/transports/base.js +0 -72
  69. package/lib/api/transports/http.js +0 -172
  70. package/lib/api/transports/index.js +0 -20
  71. package/lib/api/transports/ws.js +0 -228
  72. package/lib/auth/ecc/README.md +0 -20
  73. package/lib/auth/ecc/index.js +0 -13
  74. package/lib/auth/ecc/package.json +0 -36
  75. package/lib/auth/ecc/src/address.js +0 -84
  76. package/lib/auth/ecc/src/aes.js +0 -184
  77. package/lib/auth/ecc/src/brain_key.js +0 -13
  78. package/lib/auth/ecc/src/ecdsa.js +0 -219
  79. package/lib/auth/ecc/src/ecsignature.js +0 -128
  80. package/lib/auth/ecc/src/enforce_types.js +0 -49
  81. package/lib/auth/ecc/src/hash.js +0 -67
  82. package/lib/auth/ecc/src/key_private.js +0 -212
  83. package/lib/auth/ecc/src/key_public.js +0 -215
  84. package/lib/auth/ecc/src/key_utils.js +0 -112
  85. package/lib/auth/ecc/src/signature.js +0 -187
  86. package/lib/auth/index.js +0 -126
  87. package/lib/auth/memo.js +0 -147
  88. package/lib/auth/serializer/README.md +0 -13
  89. package/lib/auth/serializer/index.js +0 -21
  90. package/lib/auth/serializer/package.json +0 -32
  91. package/lib/auth/serializer/src/ChainTypes.js +0 -90
  92. package/lib/auth/serializer/src/convert.js +0 -37
  93. package/lib/auth/serializer/src/error_with_cause.js +0 -42
  94. package/lib/auth/serializer/src/fast_parser.js +0 -77
  95. package/lib/auth/serializer/src/number_utils.js +0 -67
  96. package/lib/auth/serializer/src/object_id.js +0 -68
  97. package/lib/auth/serializer/src/operations.js +0 -787
  98. package/lib/auth/serializer/src/precision.js +0 -95
  99. package/lib/auth/serializer/src/serializer.js +0 -211
  100. package/lib/auth/serializer/src/template.js +0 -17
  101. package/lib/auth/serializer/src/types.js +0 -1238
  102. package/lib/auth/serializer/src/validation.js +0 -360
  103. package/lib/broadcast/helpers.js +0 -177
  104. package/lib/broadcast/index.js +0 -127
  105. package/lib/broadcast/operations.js +0 -255
  106. package/lib/browser.js +0 -29
  107. package/lib/config.js +0 -45
  108. package/lib/formatter.js +0 -189
  109. package/lib/index.js +0 -19
  110. package/lib/utils.js +0 -55
  111. package/node-4.dockerfile +0 -6
  112. package/node-6.dockerfile +0 -6
  113. package/test/Crypto.js +0 -100
  114. package/test/KeyFormats.js +0 -105
  115. package/test/all_types.js +0 -115
  116. package/test/api.test.js +0 -326
  117. package/test/broadcast.test.js +0 -225
  118. package/test/browser/BrowserTests.js +0 -55
  119. package/test/comment.test.js +0 -69
  120. package/test/hf20-accounts.test.js +0 -76
  121. package/test/hf21-sps.test.js +0 -78
  122. package/test/memo.test.js +0 -37
  123. package/test/number_utils.js +0 -28
  124. package/test/operations_test.js +0 -39
  125. package/test/smt.test.js +0 -347
  126. package/test/test-post.json +0 -13
  127. package/test/test.html +0 -13
  128. package/test/test_helper.js +0 -19
  129. package/test/types_test.js +0 -139
  130. package/webpack/makeConfig.js +0 -105
  131. package/webpack.config.js +0 -2
  132. package/yarn.lock +0 -3336
@@ -1,787 +0,0 @@
1
- "use strict";
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
- // This file is merge updated from steemd's js_operation_serializer program.
14
- /*
15
-
16
- ./js_operation_serializer |
17
- sed 's/void/future_extensions/g'|
18
- sed 's/steemit_protocol:://g'|
19
- sed 's/14static_variantIJNS_12fixed_stringINSt3__14pairIyyEEEEEEE/string/g'|
20
- sed 's/steemit_future_extensions/future_extensions/g'|
21
- sed 's/steemit_protocol_//g' > tmp.coffee
22
-
23
- */
24
- // coffee tmp.coffee # fix errors until you see: `ChainTypes is not defined`
25
-
26
- /*
27
-
28
- remove these 7 lines from tmp.coffee:
29
-
30
- static_variant [
31
- pow2
32
- equihash_pow
33
- ] = static_variant [
34
- pow2
35
- equihash_pow
36
- ]
37
-
38
- */
39
-
40
- // npm i -g decaffeinate
41
- // decaffeinate tmp.coffee
42
-
43
- // Merge tmp.js - See "Generated code follows" below
44
-
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;
72
-
73
- // Place-holder, their are dependencies on "operation" .. The final list of
74
- // operations is not avialble until the very end of the generated code.
75
- // See: operation.st_operations = ...
76
- var operation = static_variant();
77
- module.exports.operation = operation;
78
-
79
- // 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;
83
- };
84
-
85
- var beneficiaries = new Serializer("beneficiaries", {
86
- account: string,
87
- weight: uint16
88
- });
89
-
90
- var comment_payout_beneficiaries = new Serializer(0, {
91
- beneficiaries: set(beneficiaries)
92
- });
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
98
- });
99
-
100
- var allowed_vote_assets = new Serializer(1, {
101
- votable_assets: map(asset_symbol, votable_asset_options)
102
- });
103
-
104
- var smt_generation_unit = new Serializer("smt_generation_unit", {
105
- steem_unit: map(string, uint16),
106
- token_unit: map(string, uint16)
107
- });
108
-
109
- var smt_capped_generation_policy = new Serializer(0, {
110
- generation_unit: smt_generation_unit,
111
- extensions: set(future_extensions)
112
- });
113
-
114
- var smt_emissions_unit = new Serializer("smt_emissions_unit", {
115
- token_unit: map(string, uint16)
116
- });
117
-
118
- var smt_param_allow_voting = new Serializer(0, {
119
- value: bool
120
- });
121
-
122
- var smt_param_windows_v1 = new Serializer(0, {
123
- cashout_window_seconds: uint32,
124
- reverse_auction_window_seconds: uint32
125
- });
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
130
- });
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
137
- });
138
-
139
- var smt_param_allow_downvotes = new Serializer(3, {
140
- value: bool
141
- });
142
-
143
- // Custom-types after Generated code
144
-
145
- // ## Generated code follows
146
- // -------------------------------
147
- /*
148
- When updating generated code (fix closing notation)
149
- Replace: var operation = static_variant([
150
- with: operation.st_operations = [
151
-
152
- Delete (these are custom types instead):
153
- let public_key = new Serializer(
154
- "public_key",
155
- {key_data: bytes(33)}
156
- );
157
-
158
- let asset = new Serializer(
159
- "asset",
160
- {amount: int64,
161
- symbol: uint64}
162
- );
163
-
164
- Replace: authority.prototype.account_authority_map
165
- With: map((string), (uint16))
166
- */
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
266
- });
267
-
268
- 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)
391
- });
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
- 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)
768
- });
769
-
770
- //# -------------------------------
771
- //# Generated code end S T O P
772
- //# -------------------------------
773
-
774
- // Custom Types (do not over-write)
775
-
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 });
781
- /*
782
-
783
- // Make sure all tests pass
784
-
785
- npm test
786
-
787
- */