-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
386 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
apps/omg_watcher_rpc/priv/swagger/info_api_specs/batch_transaction/paths.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
transaction.batch_submit: | ||
post: | ||
tags: | ||
- Transaction | ||
summary: This endpoint submits an array of signed transaction to the child chain. | ||
description: > | ||
Normally you should call the Watcher's Transaction - Submit instead of this. | ||
The Watcher's version performs various security and validation checks (TO DO) before submitting the transaction, | ||
so is much safer. However, if the Watcher is not available this version exists. | ||
operationId: batch_submit | ||
requestBody: | ||
$ref: 'request_bodies.yaml#/TransactionBatchSubmitBodySchema' | ||
responses: | ||
200: | ||
$ref: 'responses.yaml#/TransactionBatchSubmitResponse' | ||
500: | ||
$ref: '../responses.yaml#/InternalServerError' |
17 changes: 17 additions & 0 deletions
17
apps/omg_watcher_rpc/priv/swagger/info_api_specs/batch_transaction/request_bodies.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
TransactionBatchSubmitBodySchema: | ||
description: Array of signed transactions, RLP-encoded to bytes, and HEX-encoded to string | ||
required: true | ||
content: | ||
application/json: | ||
schema: | ||
title: 'TransactionBatchSubmitBodySchema' | ||
type: object | ||
properties: | ||
transactions: | ||
type: array | ||
items: | ||
type: string | ||
required: | ||
- transactions | ||
example: | ||
transactions: ['0xf8d083015ba98080808080940000...', '0xf8d083a15ba98080808080920000...'] |
14 changes: 14 additions & 0 deletions
14
apps/omg_watcher_rpc/priv/swagger/info_api_specs/batch_transaction/response_schemas.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
TransactionBatchSubmitResponseSchema: | ||
allOf: | ||
- $ref: '../response_schemas.yaml#/WatcherBaseResponseSchema' | ||
- type: object | ||
properties: | ||
data: | ||
type: array | ||
$ref: 'schemas.yaml#/TransactionBatchSubmitSchema ' | ||
example: | ||
data: | ||
- | ||
blknum: 123000 | ||
txindex: 111 | ||
txhash: '0xbdf562c24ace032176e27621073df58ce1c6f65de3b5932343b70ba03c72132d' |
6 changes: 6 additions & 0 deletions
6
apps/omg_watcher_rpc/priv/swagger/info_api_specs/batch_transaction/responses.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
TransactionBatchSubmitResponse: | ||
description: Transaction batch submission successful response | ||
content: | ||
application/json: | ||
schema: | ||
$ref: 'response_schemas.yaml#/TransactionBatchSubmitResponseSchema' |
13 changes: 13 additions & 0 deletions
13
apps/omg_watcher_rpc/priv/swagger/info_api_specs/batch_transaction/schemas.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
TransactionBatchSubmitSchema: | ||
type: array | ||
items: | ||
type: object | ||
properties: | ||
blknum: | ||
type: integer | ||
format: int64 | ||
txindex: | ||
type: integer | ||
format: int16 | ||
txhash: | ||
type: string |
Oops, something went wrong.