Skip to content
This repository has been archived by the owner on Sep 2, 2023. It is now read-only.

Commit

Permalink
Use asyncify to remove callbacks on synchronous functions, add simple…
Browse files Browse the repository at this point in the history
…-asyncify dependency, and update async dependency version
  • Loading branch information
Chris Clark committed Apr 22, 2015
1 parent 28a42c5 commit 9a90d2b
Show file tree
Hide file tree
Showing 13 changed files with 342 additions and 457 deletions.
23 changes: 22 additions & 1 deletion api/lib/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,31 @@ var AccountSetResponseFlags = {
value: ripple.Transaction.flags.AccountSet.DisallowXRP}
};

var OfferCreateFlags = {
Passive: {name: 'passive',
value: ripple.Transaction.flags.OfferCreate.Passive},
ImmediateOrCancel: {name: 'immediate_or_cancel',
value: ripple.Transaction.flags.OfferCreate.ImmediateOrCancel},
FillOrKill: {name: 'fill_or_kill',
value: ripple.Transaction.flags.OfferCreate.FillOrKill},
Sell: {name: 'sell', value: ripple.Transaction.flags.OfferCreate.Sell}
};

var TrustSetResponseFlags = {
NoRipple: {name: 'prevent_rippling',
value: ripple.Transaction.flags.TrustSet.NoRipple},
SetFreeze: {name: 'account_trustline_frozen',
value: ripple.Transaction.flags.TrustSet.SetFreeze},
SetAuth: {name: 'authorized',
value: ripple.Transaction.flags.TrustSet.SetAuth}
};

module.exports = {
AccountRootFlags: AccountRootFlags,
AccountRootFields: AccountRootFields,
AccountSetIntFlags: AccountSetIntFlags,
AccountSetFlags: AccountSetFlags,
AccountSetResponseFlags: AccountSetResponseFlags
AccountSetResponseFlags: AccountSetResponseFlags,
OfferCreateFlags: OfferCreateFlags,
TrustSetResponseFlags: TrustSetResponseFlags
};
Loading

0 comments on commit 9a90d2b

Please sign in to comment.