Skip to content

Commit 4bf12e4

Browse files
locallycompactch1bo
authored andcommitted
Remove Transaction from json schemas
1 parent 230e2ba commit 4bf12e4

File tree

1 file changed

+1
-187
lines changed

1 file changed

+1
-187
lines changed

hydra-node/json-schemas/api.yaml

+1-187
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,6 @@ channels:
164164
oneOf:
165165
- $ref: "api.yaml#/components/schemas/RawTransaction"
166166
- $ref: "api.yaml#/components/schemas/TextEnvelopeTransaction"
167-
- $ref: "api.yaml#/components/schemas/Transaction"
168167
bindings:
169168
http:
170169
type: response
@@ -244,7 +243,6 @@ components:
244243
oneOf:
245244
- $ref: "api.yaml#/components/schemas/RawTransaction"
246245
- $ref: "api.yaml#/components/schemas/TextEnvelopeTransaction"
247-
- $ref: "api.yaml#/components/schemas/Transaction"
248246

249247
Close:
250248
title: Close
@@ -604,7 +602,6 @@ components:
604602
transaction:
605603
description: Choose between output formats using the `tx-output` query parameter.
606604
oneOf:
607-
- $ref: "api.yaml#/components/schemas/Transaction"
608605
- $ref: "api.yaml#/components/schemas/RawTransaction"
609606
seq:
610607
$ref: "api.yaml#/components/schemas/SequenceNumber"
@@ -640,7 +637,6 @@ components:
640637
transaction:
641638
description: Choose between output formats using the `tx-output` query parameter.
642639
oneOf:
643-
- $ref: "api.yaml#/components/schemas/Transaction"
644640
- $ref: "api.yaml#/components/schemas/RawTransaction"
645641
validationError:
646642
type: object
@@ -1348,7 +1344,7 @@ components:
13481344
type: string
13491345
enum: ["InternalWalletError"]
13501346
tx:
1351-
$ref: "api.yaml#/components/schemas/Transaction"
1347+
$ref: "api.yaml#/components/schemas/RawTransaction"
13521348
description: |
13531349
A representation of the faulty transaction
13541350
reason:
@@ -1706,188 +1702,6 @@ components:
17061702
cborHex:
17071703
$ref: "api.yaml#/components/schemas/RawTransaction"
17081704

1709-
Transaction:
1710-
type: object
1711-
required:
1712-
- id
1713-
- isValid
1714-
- body
1715-
additionalProperties: false
1716-
properties:
1717-
id:
1718-
$ref: "api.yaml#/components/schemas/TxId"
1719-
isValid:
1720-
type: boolean
1721-
body:
1722-
$ref: "api.yaml#/components/schemas/TxBody"
1723-
witnesses:
1724-
type: object
1725-
additionalProperties: false
1726-
properties:
1727-
keys:
1728-
type: array
1729-
items:
1730-
$ref: "api.yaml#/components/schemas/Cbor"
1731-
scripts:
1732-
type: object
1733-
patternProperties:
1734-
"[0-9a-f]+":
1735-
$ref: "api.yaml#/components/schemas/Cbor"
1736-
redeemers:
1737-
$ref: "api.yaml#/components/schemas/Cbor"
1738-
datums:
1739-
type: object
1740-
patternProperties:
1741-
"[0-9a-f]+":
1742-
$ref: "api.yaml#/components/schemas/Cbor"
1743-
bootstrap:
1744-
type: array
1745-
items:
1746-
$ref: "api.yaml#/components/schemas/Cbor"
1747-
auxiliaryData:
1748-
$ref: "api.yaml#/components/schemas/Cbor"
1749-
example:
1750-
{
1751-
"id": "7ca4e30387ec4ba0e95604fdab6e867fc3d740220386e1a63d142c71e8eac4ce",
1752-
"isValid": true,
1753-
"auxiliaryData": "d90103a100a30181a40401622c7166f098a89d2a7e006023600a600c66e4a99d7f6b08",
1754-
"body": {
1755-
"inputs": [
1756-
"03170a2e7597b7b7e3d84c05391d139a62b157e78786d8c082f29dcf4c111314#116",
1757-
"2208e439244a1d0ef238352e3693098aba9de9dd0154f9056551636c8ed15dc1#149"
1758-
],
1759-
"outputs": [
1760-
{
1761-
"address": "addr1w9htvds89a78ex2uls5y969ttry9s3k9etww0staxzndwlgmzuul5",
1762-
"datumhash": "2208e439244a1d0ef238352e3693098aba9de9dd0154f9056551636c8ed15dc1",
1763-
"value": {
1764-
"lovelace": 12,
1765-
"4acf2773917c7b547c576a7ff110d2ba5733c1f1ca9cdc659aea3a56": {
1766-
"91c670": 7
1767-
}
1768-
}
1769-
}
1770-
],
1771-
"fees": 0
1772-
},
1773-
"witnesses": {
1774-
"redeemers": "84840000...e83fccf5",
1775-
"keys": [
1776-
"8258...01ad847b",
1777-
"8258...7944fe3e"
1778-
],
1779-
"scripts": {
1780-
"1be26e9d1710022443c8043b259f7b375ec8732191f3845a6aea28e5": "8200820181820519c355",
1781-
},
1782-
"datums": {
1783-
"ae85d245a3d00bfde01f59f3c4fe0b4bfae1cb37e9cf91929eadcea4985711de": "20",
1784-
}
1785-
}
1786-
}
1787-
1788-
TxBody:
1789-
type: object
1790-
required:
1791-
- inputs
1792-
- outputs
1793-
additionalProperties: false
1794-
properties:
1795-
inputs:
1796-
type: array
1797-
description: >-
1798-
A list of inputs for this transaction. Technically, this is actually a Set, eg. the order of elements does not matter and they must be unique.
1799-
items:
1800-
$ref: "api.yaml#/components/schemas/TxIn"
1801-
referenceInputs:
1802-
type: array
1803-
description: >-
1804-
A list of inputs for this transaction. Technically, this is actually a Set, eg. the order of elements does not matter and they must be unique.
1805-
items:
1806-
$ref: "api.yaml#/components/schemas/TxIn"
1807-
collateral:
1808-
type: array
1809-
description: >-
1810-
A list of collateral inputs for this transaction.
1811-
items:
1812-
$ref: "api.yaml#/components/schemas/TxIn"
1813-
totalCollateral:
1814-
oneOf:
1815-
- type: integer
1816-
minimum: 0
1817-
- type: "null"
1818-
collateralReturn:
1819-
$ref: "api.yaml#/components/schemas/TxOut"
1820-
outputs:
1821-
type: array
1822-
description: >-
1823-
A list of outputs. Ordering is important here because a TxOut is referenced by its
1824-
position in the inputs of subsequent transactions.
1825-
items:
1826-
$ref: "api.yaml#/components/schemas/TxOut"
1827-
certificates:
1828-
type: array
1829-
description: >-
1830-
An array of certificates, encoded as hexadecimal representation of CBOR serialisation.
1831-
items:
1832-
$ref: "api.yaml#/components/schemas/Cbor"
1833-
withdrawals:
1834-
$ref: "api.yaml#/components/schemas/Withdrawals"
1835-
fees:
1836-
type: integer
1837-
minimum: 0
1838-
description: >-
1839-
Fees paid for this transaction, in lovelace.
1840-
validity:
1841-
type: object
1842-
description: >-
1843-
Validity interval of this transaction. Both bounds can be omitted in which case the transaction
1844-
has unlimited validity. Each bound is a slot number.
1845-
properties:
1846-
notBefore:
1847-
oneOf:
1848-
- type: integer
1849-
- type: "null"
1850-
notAfter:
1851-
oneOf:
1852-
- type: integer
1853-
- type: "null"
1854-
auxiliaryDataHash:
1855-
type: string
1856-
contentEncoding: base16
1857-
description: >-
1858-
Hex-encoding of the hash of auxiliary data section of the transactions.
1859-
example: "9b258583229a324c3021d036e83f3c1e69ca4a586a91fad0bc9e4ce79f7411e0"
1860-
mint:
1861-
description: >-
1862-
Values minted by this transaction
1863-
$ref: "api.yaml#/components/schemas/Value"
1864-
networkId:
1865-
type: string
1866-
enum:
1867-
- Mainnet
1868-
- Testnet
1869-
scriptIntegrityHash:
1870-
type: string
1871-
contentEncoding: base16
1872-
description: >-
1873-
Hex-encoding of the hash of script data section of the transaction.
1874-
example: "9b258583229a324c3021d036e83f3c1e69ca4a586a91fad0bc9e4ce79f7411e0"
1875-
requiredSignatures:
1876-
type: array
1877-
items:
1878-
type: string
1879-
contentEncoding: base16
1880-
description: >-
1881-
Hex-encoding of the hash of verification keys identifying extra expected signers.
1882-
1883-
TxId:
1884-
type: string
1885-
description: |
1886-
A Cardano transaction identifier. This is the hex-encoded hash of the
1887-
transaction's body.
1888-
pattern: "^[0-9a-f]{64}"
1889-
example: "8df1616d4337ede40bbad2914f12977815234b83951bcce3bfcd735aed3f63e4"
1890-
18911705
TxIn:
18921706
type: string
18931707
description: |

0 commit comments

Comments
 (0)