Skip to content

Commit d24bfe8

Browse files
asimm241zone117x
authored andcommitted
fix: mempool schema files renamed: rosetta-mempool-transaction-list-* -> rosetta-mempool-*
For consistency, rename RosettaMempoolTransactionListRequest -> RosettaMempoolRequest as well.
1 parent bd4dc86 commit d24bfe8

5 files changed

+23
-67
lines changed

docs/api/rosetta/rosetta-mempool-transaction-list-request.schema.json renamed to docs/api/rosetta/rosetta-mempool-request.schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema",
33
"type": "object",
4-
"title": "RosettaMempoolTransactionListRequest",
4+
"title": "RosettaMempoolRequest",
55
"description": "Get all Transaction Identifiers in the mempool",
66
"required": ["network_identifier"],
77
"properties": {
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema",
3+
"type": "object",
4+
"title": "RosettaMempoolResponse",
5+
"description": "A MempoolResponse contains all transaction identifiers in the mempool for a particular network_identifier.",
6+
"required": ["transaction_identifiers"],
7+
"properties": {
8+
"transaction_identifiers": {
9+
"type": "array",
10+
"description": "",
11+
"items": {
12+
"$ref": "./../../entities/rosetta/rosetta-transaction-identifier.schema.json"
13+
}
14+
},
15+
"metadata": {
16+
"type": "object"
17+
}
18+
}
19+
}

docs/api/rosetta/rosetta-mempool-transaction-list-response.schema.json

Lines changed: 0 additions & 34 deletions
This file was deleted.

docs/api/rosetta/rosetta-mempool-transaction-response.schema.json

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,7 @@
99
"$ref": "./../../entities/rosetta/rosetta-transaction.schema.json"
1010
},
1111
"metadata": {
12-
"type": "object",
13-
"description": "",
14-
"required": [],
15-
"properties": {
16-
"descendant_fees": {
17-
"type": "integer",
18-
"description": ""
19-
},
20-
"ancestor_count": {
21-
"type": "integer",
22-
"description": ""
23-
}
24-
}
12+
"type": "object"
2513
}
2614
}
2715
}

docs/index.d.ts

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ export interface RosettaBlockTransactionResponse {
278278
/**
279279
* Get all Transaction Identifiers in the mempool
280280
*/
281-
export interface RosettaMempoolTransactionListRequest {
281+
export interface RosettaMempoolRequest {
282282
network_identifier: NetworkIdentifier;
283283
metadata?: {
284284
[k: string]: unknown | undefined;
@@ -288,24 +288,9 @@ export interface RosettaMempoolTransactionListRequest {
288288
/**
289289
* A MempoolResponse contains all transaction identifiers in the mempool for a particular network_identifier.
290290
*/
291-
export interface RosettaMempoolTransactionListResponse {
291+
export interface RosettaMempoolResponse {
292292
transaction_identifiers: TransactionIdentifier[];
293-
/**
294-
* meta data to support pagination
295-
*/
296293
metadata?: {
297-
/**
298-
* number of transactions returned
299-
*/
300-
limit?: number;
301-
/**
302-
* Total number of transactions
303-
*/
304-
total?: number;
305-
/**
306-
* Response offset
307-
*/
308-
offset?: number;
309294
[k: string]: unknown | undefined;
310295
};
311296
}
@@ -324,8 +309,6 @@ export interface RosettaMempoolTransactionRequest {
324309
export interface RosettaMempoolTransactionResponse {
325310
transaction: RosettaTransaction;
326311
metadata?: {
327-
descendant_fees?: number;
328-
ancestor_count?: number;
329312
[k: string]: unknown | undefined;
330313
};
331314
}

0 commit comments

Comments
 (0)