Skip to content

Commit

Permalink
chore: refine events directory structure
Browse files Browse the repository at this point in the history
  • Loading branch information
gfyrag committed Feb 28, 2024
1 parent ad78bdb commit fe43bde
Show file tree
Hide file tree
Showing 38 changed files with 1,527 additions and 18 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

95 changes: 95 additions & 0 deletions libs/events/generated/ledger/v1.0.0/COMMITTED_TRANSACTIONS.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
{
"type": "object",
"properties": {
"app": {
"type": "string"
},
"version": {
"type": "string"
},
"date": {
"type": "string",
"format": "date-time"
},
"type": {
"type": "string"
},
"ledger": {
"type": "string"
},
"payload": {
"type": "object",
"properties": {
"ledger": {
"type": "string"
},
"transactions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"postings": {
"type": "array",
"items": {
"type": "object",
"properties": {
"source": {
"type": "string"
},
"destination": {
"type": "string"
},
"amount": {
"type": "number"
},
"asset": {
"type": "string"
}
},
"required": [
"source",
"destination",
"amount",
"asset"
]
}
},
"reference": {
"type": "string"
},
"metadata": {
"type": "object",
"properties": {},
"required": []
},
"txid": {
"type": "number"
},
"timestamp": {
"type": "string"
}
},
"required": [
"postings",
"reference",
"metadata",
"txid",
"timestamp"
]
}
}
},
"required": [
"ledger",
"transactions"
]
}
},
"required": [
"date",
"app",
"version",
"type",
"payload"
]
}
145 changes: 145 additions & 0 deletions libs/events/generated/ledger/v1.0.0/REVERTED_TRANSACTION.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
{
"type": "object",
"properties": {
"app": {
"type": "string"
},
"version": {
"type": "string"
},
"date": {
"type": "string",
"format": "date-time"
},
"type": {
"type": "string"
},
"ledger": {
"type": "string"
},
"payload": {
"type": "object",
"properties": {
"ledger": {
"type": "string"
},
"revertedTransaction": {
"type": "object",
"properties": {
"postings": {
"type": "array",
"items": {
"type": "object",
"properties": {
"source": {
"type": "string"
},
"destination": {
"type": "string"
},
"amount": {
"type": "number"
},
"asset": {
"type": "string"
}
},
"required": [
"source",
"destination",
"amount",
"asset"
]
}
},
"reference": {
"type": "string"
},
"metadata": {
"type": "object",
"properties": {},
"required": []
},
"txid": {
"type": "number"
},
"timestamp": {
"type": "string"
}
},
"required": [
"postings",
"reference",
"metadata",
"txid",
"timestamp"
]
},
"revertTransaction": {
"type": "object",
"properties": {
"postings": {
"type": "array",
"items": {
"type": "object",
"properties": {
"source": {
"type": "string"
},
"destination": {
"type": "string"
},
"amount": {
"type": "number"
},
"asset": {
"type": "string"
}
},
"required": [
"source",
"destination",
"amount",
"asset"
]
}
},
"reference": {
"type": "string"
},
"metadata": {
"type": "object",
"properties": {},
"required": []
},
"txid": {
"type": "number"
},
"timestamp": {
"type": "string"
}
},
"required": [
"postings",
"reference",
"metadata",
"txid",
"timestamp"
]
}
},
"required": [
"ledger",
"revertedTransaction",
"revertTransaction"
]
}
},
"required": [
"date",
"app",
"version",
"type",
"payload"
]
}
52 changes: 52 additions & 0 deletions libs/events/generated/ledger/v1.0.0/SAVED_METADATA.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"type": "object",
"properties": {
"app": {
"type": "string"
},
"version": {
"type": "string"
},
"date": {
"type": "string",
"format": "date-time"
},
"type": {
"type": "string"
},
"ledger": {
"type": "string"
},
"payload": {
"type": "object",
"properties": {
"ledger": {
"type": "string"
},
"targetType": {
"type": "string"
},
"targetId": {
"type": "string"
},
"metadata": {
"type": "object",
"additionalProperties": {}
}
},
"required": [
"ledger",
"targetType",
"targetId",
"metadata"
]
}
},
"required": [
"date",
"app",
"version",
"type",
"payload"
]
}
Loading

0 comments on commit fe43bde

Please sign in to comment.