Disallow escrow of IOU

This commit is contained in:
wilsonianb
2017-03-30 10:10:00 -07:00
parent 917aae9bf3
commit 9393adf66f
11 changed files with 14 additions and 86 deletions

View File

@@ -3,8 +3,7 @@
"address": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
"maxAmount": {
"value": "0.01",
"currency": "USD",
"counterparty": "rMH4UxPrbuMa1spCBR98hLLyNJp4d8p4tM"
"currency": "XRP"
},
"tag": 1
},
@@ -12,8 +11,7 @@
"address": "rpZc4mVfWUif9CRoHRKKcmhu1nx2xktxBo",
"amount": {
"value": "0.01",
"currency": "USD",
"counterparty": "rMH4UxPrbuMa1spCBR98hLLyNJp4d8p4tM"
"currency": "XRP"
},
"tag": 2
},

View File

@@ -3,16 +3,14 @@
"address": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
"maxAmount": {
"value": "0.01",
"currency": "USD",
"counterparty": "rMH4UxPrbuMa1spCBR98hLLyNJp4d8p4tM"
"currency": "XRP"
}
},
"destination": {
"address": "rpZc4mVfWUif9CRoHRKKcmhu1nx2xktxBo",
"amount": {
"value": "0.01",
"currency": "USD",
"counterparty": "rMH4UxPrbuMa1spCBR98hLLyNJp4d8p4tM"
"currency": "XRP"
}
},
"allowCancelAfter": "2014-09-24T21:21:50.000Z"

View File

@@ -1,51 +0,0 @@
{
"type": "escrowCreation",
"address": "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"sequence": 10,
"id": "144F272380BDB4F1BD92329A2178BABB70C20F59042C495E10BF72EBFB408EE2",
"specification": {
"source": {
"address": "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"maxAmount": {
"currency": "USD",
"value": "2"
},
"tag": 1
},
"destination": {
"address": "rp8rJYTpodf8qbSCHVTNacf8nSW8mRakFw",
"amount": {
"currency": "USD",
"value": "2",
"counterparty": "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh"
},
"tag": 2
},
"memos": [
{
"type": "x2",
"format": "text/plain",
"data": "mema data"
}
],
"condition": "8F434346648F6B96DF89DDA901C5176B10A6D83961DD3C1AC88B59B2DC327AA4",
"allowCancelAfter": "2015-11-16T06:53:42.000Z",
"allowExecuteAfter": "2015-11-16T06:47:42.000Z"
},
"outcome": {
"result": "tesSUCCESS",
"timestamp": "2015-11-16T06:43:00.000Z",
"fee": "0.000012",
"balanceChanges": {
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh": [
{
"currency": "XRP",
"value": "-0.000014"
}
]
},
"orderbookChanges": {},
"ledgerVersion": 15,
"indexInLedger": 0
}
}

View File

@@ -36,8 +36,6 @@ module.exports = {
notValidated: require('./get-transaction-not-validated.json'),
escrowCreation:
require('./get-transaction-escrow-create.json'),
EscrowCreationIOU:
require('./get-transaction-escrow-create-iou.json'),
escrowCancellation:
require('./get-transaction-escrow-cancellation.json'),
escrowExecution:

View File

@@ -1,5 +1,5 @@
{
"txJSON": "{\"TransactionType\":\"EscrowCreate\",\"Account\":\"r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59\",\"Destination\":\"rpZc4mVfWUif9CRoHRKKcmhu1nx2xktxBo\",\"Amount\":{\"currency\":\"USD\",\"issuer\":\"rMH4UxPrbuMa1spCBR98hLLyNJp4d8p4tM\",\"value\":\"0.01\"},\"Condition\":\"8F434346648F6B96DF89DDA901C5176B10A6D83961DD3C1AC88B59B2DC327AA4\",\"FinishAfter\":464908910,\"SourceTag\":1,\"DestinationTag\":2,\"Memos\":[{\"Memo\":{\"MemoData\":\"7465787465642064617461\",\"MemoType\":\"74657374\"}}],\"Flags\":2147483648,\"LastLedgerSequence\":8819954,\"Fee\":\"12\",\"Sequence\":23}",
"txJSON": "{\"TransactionType\":\"EscrowCreate\",\"Account\":\"r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59\",\"Destination\":\"rpZc4mVfWUif9CRoHRKKcmhu1nx2xktxBo\",\"Amount\":\"10000\",\"Condition\":\"8F434346648F6B96DF89DDA901C5176B10A6D83961DD3C1AC88B59B2DC327AA4\",\"FinishAfter\":464908910,\"SourceTag\":1,\"DestinationTag\":2,\"Memos\":[{\"Memo\":{\"MemoData\":\"7465787465642064617461\",\"MemoType\":\"74657374\"}}],\"Flags\":2147483648,\"LastLedgerSequence\":8819954,\"Fee\":\"12\",\"Sequence\":23}",
"instructions": {
"fee": "0.000012",
"sequence": 23,

View File

@@ -1,5 +1,5 @@
{
"txJSON": "{\"Flags\":2147483648,\"TransactionType\":\"EscrowCreate\",\"Account\":\"r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59\",\"Destination\":\"rpZc4mVfWUif9CRoHRKKcmhu1nx2xktxBo\",\"Amount\":{\"value\":\"0.01\",\"currency\":\"USD\",\"issuer\":\"rMH4UxPrbuMa1spCBR98hLLyNJp4d8p4tM\"},\"CancelAfter\":464908910,\"LastLedgerSequence\":8820051,\"Fee\":\"12\",\"Sequence\":23}",
"txJSON": "{\"Flags\":2147483648,\"TransactionType\":\"EscrowCreate\",\"Account\":\"r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59\",\"Destination\":\"rpZc4mVfWUif9CRoHRKKcmhu1nx2xktxBo\",\"Amount\":\"10000\",\"CancelAfter\":464908910,\"LastLedgerSequence\":8820051,\"Fee\":\"12\",\"Sequence\":23}",
"instructions": {
"fee": "0.000012",
"sequence": 23,

View File

@@ -65,8 +65,6 @@ module.exports = {
NotValidated: require('./tx/not-validated.json'),
OfferWithExpiration: require('./tx/order-with-expiration.json'),
EscrowCreation: require('./tx/escrow-creation.json'),
EscrowCreationIOU:
require('./tx/escrow-creation-iou.json'),
EscrowCancellation:
require('./tx/escrow-cancellation.json'),
EscrowExecution: require('./tx/escrow-execution.json'),