Skip to content

Commit

Permalink
Merge pull request #118 from steemit/update-for-0.18
Browse files Browse the repository at this point in the history
Update operation defs for 0.18.0
  • Loading branch information
Fabien authored Mar 31, 2017
2 parents 20027a5 + 0becb59 commit dafb00f
Show file tree
Hide file tree
Showing 5 changed files with 391 additions and 329 deletions.
12 changes: 12 additions & 0 deletions doc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,18 @@ steem.broadcast.accountCreate(wif, fee, creator, newAccountName, owner, active,
console.log(err, result);
});
```
### Account Create With Delegation
```
steem.broadcast.accountCreateWithDelegation(wif, fee, delegation, creator, newAccountName, owner, active, posting, memoKey, jsonMetadata, extensions, function(err, result) {
console.log(err, result);
});
```
### Delegate Vesting Shares
```
steem.broadcast.delegateVestingShares(wif, delegator, delegatee, vesting_shares, function(err, result) {
console.log(err, result);
});
```
### Account Update
```
steem.broadcast.accountUpdate(wif, account, owner, active, posting, memoKey, jsonMetadata, function(err, result) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "steem",
"version": "0.5.1",
"version": "0.5.2",
"description": "Steem.js the JavaScript API for Steem blockchain",
"main": "index.js",
"scripts": {
Expand Down
28 changes: 16 additions & 12 deletions src/auth/serializer/src/ChainTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,22 @@ ChainTypes.operations= {
reset_account: 37,
set_reset_account: 38,
claim_reward_balance: 39,
fill_convert_request: 40,
author_reward: 41,
curation_reward: 42,
comment_reward: 43,
liquidity_reward: 44,
interest: 45,
fill_vesting_withdraw: 46,
fill_order: 47,
shutdown_witness: 48,
fill_transfer_from_savings: 49,
hardfork: 50,
comment_payout_update: 51
delegate_vesting_shares: 40,
account_create_with_delegation: 41,
fill_convert_request: 42,
author_reward: 43,
curation_reward: 44,
comment_reward: 45,
liquidity_reward: 46,
interest: 47,
fill_vesting_withdraw: 48,
fill_order: 49,
shutdown_witness: 50,
fill_transfer_from_savings: 51,
hardfork: 52,
comment_payout_update: 53,
return_vesting_delegation: 54,
comment_benefactor_reward: 55
};

//types.hpp
Expand Down
Loading

0 comments on commit dafb00f

Please sign in to comment.