mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-20 12:15:51 +00:00
Apply automatic formatting
This commit is contained in:
@@ -4,8 +4,17 @@
|
|||||||
"link": "transaction-types",
|
"link": "transaction-types",
|
||||||
"description": "The type of the transaction.",
|
"description": "The type of the transaction.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": ["payment", "order", "orderCancellation", "trustline", "settings",
|
"enum": [
|
||||||
"escrowCreation", "escrowCancellation",
|
"payment",
|
||||||
"escrowExecution", "paymentChannelCreate",
|
"order",
|
||||||
"paymentChannelFund", "paymentChannelClaim"]
|
"orderCancellation",
|
||||||
|
"trustline",
|
||||||
|
"settings",
|
||||||
|
"escrowCreation",
|
||||||
|
"escrowCancellation",
|
||||||
|
"escrowExecution",
|
||||||
|
"paymentChannelCreate",
|
||||||
|
"paymentChannelFund",
|
||||||
|
"paymentChannelClaim"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,9 @@
|
|||||||
"title": "getTransaction",
|
"title": "getTransaction",
|
||||||
"link": "gettransaction",
|
"link": "gettransaction",
|
||||||
"properties": {
|
"properties": {
|
||||||
"type": {"$ref": "transactionType"},
|
"type": {
|
||||||
|
"$ref": "transactionType"
|
||||||
|
},
|
||||||
"specification": {
|
"specification": {
|
||||||
"description": "A specification that would produce the same outcome as this transaction. The structure of the specification depends on the value of the `type` field (see [Transaction Types](#transaction-types) for details). *Note:* This is **not** necessarily the same as the original specification."
|
"description": "A specification that would produce the same outcome as this transaction. The structure of the specification depends on the value of the `type` field (see [Transaction Types](#transaction-types) for details). *Note:* This is **not** necessarily the same as the original specification."
|
||||||
},
|
},
|
||||||
@@ -24,73 +26,146 @@
|
|||||||
"description": "The account sequence number of the transaction for the account that initiated it."
|
"description": "The account sequence number of the transaction for the account that initiated it."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": ["id", "address", "sequence", "type", "specification", "outcome"],
|
"required": [
|
||||||
|
"id",
|
||||||
|
"address",
|
||||||
|
"sequence",
|
||||||
|
"type",
|
||||||
|
"specification",
|
||||||
|
"outcome"
|
||||||
|
],
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"oneOf": [
|
"oneOf": [
|
||||||
{
|
{
|
||||||
"properties": {
|
"properties": {
|
||||||
"type": {"enum": ["payment"]},
|
"type": {
|
||||||
"specification": {"$ref": "payment"}
|
"enum": [
|
||||||
|
"payment"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"specification": {
|
||||||
|
"$ref": "payment"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"properties": {
|
"properties": {
|
||||||
"type": {"enum": ["order"]},
|
"type": {
|
||||||
"specification": {"$ref": "order"}
|
"enum": [
|
||||||
|
"order"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"specification": {
|
||||||
|
"$ref": "order"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"properties": {
|
"properties": {
|
||||||
"type": {"enum": ["orderCancellation"]},
|
"type": {
|
||||||
"specification": {"$ref": "orderCancellation"}
|
"enum": [
|
||||||
|
"orderCancellation"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"specification": {
|
||||||
|
"$ref": "orderCancellation"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"properties": {
|
"properties": {
|
||||||
"type": {"enum": ["trustline"]},
|
"type": {
|
||||||
"specification": {"$ref": "trustline"}
|
"enum": [
|
||||||
|
"trustline"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"specification": {
|
||||||
|
"$ref": "trustline"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"properties": {
|
"properties": {
|
||||||
"type": {"enum": ["settings"]},
|
"type": {
|
||||||
"specification": {"$ref": "getSettings"}
|
"enum": [
|
||||||
|
"settings"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"specification": {
|
||||||
|
"$ref": "getSettings"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"properties": {
|
"properties": {
|
||||||
"type": {"enum": ["escrowCreation"]},
|
"type": {
|
||||||
"specification": {"$ref": "escrowCreation"}
|
"enum": [
|
||||||
|
"escrowCreation"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"specification": {
|
||||||
|
"$ref": "escrowCreation"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"properties": {
|
"properties": {
|
||||||
"type": {"enum": ["escrowCancellation"]},
|
"type": {
|
||||||
"specification": {"$ref": "escrowCancellation"}
|
"enum": [
|
||||||
|
"escrowCancellation"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"specification": {
|
||||||
|
"$ref": "escrowCancellation"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"properties": {
|
"properties": {
|
||||||
"type": {"enum": ["escrowExecution"]},
|
"type": {
|
||||||
"specification": {"$ref": "escrowExecution"}
|
"enum": [
|
||||||
|
"escrowExecution"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"specification": {
|
||||||
|
"$ref": "escrowExecution"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"properties": {
|
"properties": {
|
||||||
"type": {"enum": ["paymentChannelCreate"]},
|
"type": {
|
||||||
"specification": {"$ref": "paymentChannelCreate"}
|
"enum": [
|
||||||
|
"paymentChannelCreate"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"specification": {
|
||||||
|
"$ref": "paymentChannelCreate"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"properties": {
|
"properties": {
|
||||||
"type": {"enum": ["paymentChannelFund"]},
|
"type": {
|
||||||
"specification": {"$ref": "paymentChannelFund"}
|
"enum": [
|
||||||
|
"paymentChannelFund"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"specification": {
|
||||||
|
"$ref": "paymentChannelFund"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"properties": {
|
"properties": {
|
||||||
"type": {"enum": ["paymentChannelClaim"]},
|
"type": {
|
||||||
"specification": {"$ref": "paymentChannelClaim"}
|
"enum": [
|
||||||
|
"paymentChannelClaim"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"specification": {
|
||||||
|
"$ref": "paymentChannelClaim"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -2,5 +2,7 @@
|
|||||||
"$schema": "http://json-schema.org/draft-04/schema#",
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
||||||
"title": "getTransactions",
|
"title": "getTransactions",
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {"$ref": "getTransaction"}
|
"items": {
|
||||||
|
"$ref": "getTransaction"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -116,8 +116,10 @@ module.exports = function createMockRippled(port) {
|
|||||||
} else if (request.data.openOnOtherPort) {
|
} else if (request.data.openOnOtherPort) {
|
||||||
getFreePort().then(newPort => {
|
getFreePort().then(newPort => {
|
||||||
createMockRippled(newPort);
|
createMockRippled(newPort);
|
||||||
conn.send(createResponse(request, {status: 'success', type: 'response',
|
conn.send(createResponse(request, {
|
||||||
result: {port: newPort}}
|
status: 'success', type: 'response',
|
||||||
|
result: { port: newPort }
|
||||||
|
}
|
||||||
));
|
));
|
||||||
});
|
});
|
||||||
} else if (request.data.closeServerAndReopen) {
|
} else if (request.data.closeServerAndReopen) {
|
||||||
|
|||||||
Reference in New Issue
Block a user