-
Notifications
You must be signed in to change notification settings - Fork 505
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set FullyCanoncialSig flag and fix integration tests
- Loading branch information
Chris Clark
committed
Oct 20, 2015
1 parent
01ecd19
commit 8a1bc23
Showing
33 changed files
with
284 additions
and
270 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
'use strict'; | ||
|
||
const transactionFlags = { | ||
// Universal flags can apply to any transaction type | ||
Universal: { | ||
FullyCanonicalSig: 0x80000000 | ||
}, | ||
|
||
AccountSet: { | ||
RequireDestTag: 0x00010000, | ||
OptionalDestTag: 0x00020000, | ||
RequireAuth: 0x00040000, | ||
OptionalAuth: 0x00080000, | ||
DisallowXRP: 0x00100000, | ||
AllowXRP: 0x00200000 | ||
}, | ||
|
||
TrustSet: { | ||
SetAuth: 0x00010000, | ||
NoRipple: 0x00020000, | ||
SetNoRipple: 0x00020000, | ||
ClearNoRipple: 0x00040000, | ||
SetFreeze: 0x00100000, | ||
ClearFreeze: 0x00200000 | ||
}, | ||
|
||
OfferCreate: { | ||
Passive: 0x00010000, | ||
ImmediateOrCancel: 0x00020000, | ||
FillOrKill: 0x00040000, | ||
Sell: 0x00080000 | ||
}, | ||
|
||
Payment: { | ||
NoRippleDirect: 0x00010000, | ||
PartialPayment: 0x00020000, | ||
LimitQuality: 0x00040000 | ||
} | ||
}; | ||
|
||
// The following are integer (as opposed to bit) flags | ||
// that can be set for particular transactions in the | ||
// SetFlag or ClearFlag field | ||
const transactionFlagIndices = { | ||
AccountSet: { | ||
asfRequireDest: 1, | ||
asfRequireAuth: 2, | ||
asfDisallowXRP: 3, | ||
asfDisableMaster: 4, | ||
asfAccountTxnID: 5, | ||
asfNoFreeze: 6, | ||
asfGlobalFreeze: 7, | ||
asfDefaultRipple: 8 | ||
} | ||
}; | ||
|
||
module.exports = { | ||
transactionFlags, | ||
transactionFlagIndices | ||
}; |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
2 changes: 1 addition & 1 deletion
2
test/fixtures/api/responses/prepare-payment-no-counterparty.json
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.