Created
February 22, 2016 18:46
-
-
Save jcalfee/05427be21e3558613640 to your computer and use it in GitHub Desktop.
js extension
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
```js | |
extension(account_create_operation_ext = new Serializer( | |
"extension account_create_operation_ext", | |
{value: account_create_operation_ext} | |
)); | |
var account_create = new Serializer( | |
"account_create", | |
{fee: asset, | |
registrar: protocol_id_type("account"), | |
referrer: protocol_id_type("account"), | |
referrer_percent: uint16, | |
name: string, | |
owner: authority, | |
active: authority, | |
options: account_options, | |
extensions: extension(account_create_operation_ext)} | |
); | |
var account_update_operation_ext = new Serializer( | |
"account_update_operation_ext", | |
{null_ext: optional(void_result), | |
owner_special_authority: optional(special_authority), | |
active_special_authority: optional(special_authority)} | |
); | |
extension(account_update_operation_ext = new Serializer( | |
"extension account_update_operation_ext", | |
{value: account_update_operation_ext} | |
)); | |
var account_update = new Serializer( | |
"account_update", | |
{fee: asset, | |
account: protocol_id_type("account"), | |
owner: optional(authority), | |
active: optional(authority), | |
new_options: optional(account_options), | |
extensions: extension(account_update_operation_ext)} | |
); | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment