Skip to content

Commit

Permalink
feat(connector-besu): add getBlock web service hyperledger-cacti#1065
Browse files Browse the repository at this point in the history
fixes hyperledger-cacti#1065

Signed-off-by: Tommesha Wiggins <tommesha.wiggins@accenture.com>
  • Loading branch information
twiggins120 authored and Ty Lazar committed Jun 28, 2021
1 parent d470540 commit b882b90
Show file tree
Hide file tree
Showing 9 changed files with 752 additions and 152 deletions.
74 changes: 68 additions & 6 deletions packages/cactus-plugin-ledger-connector-besu/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/cactus-plugin-ledger-connector-besu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@
"@hyperledger/cactus-test-tooling": "0.5.0",
"@types/express": "4.17.8",
"socket.io": "4.0.1",
"web3-core": "1.2.7",
"web3-eth": "1.2.7"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,26 @@
}
}
},

"BlockTransactionString":{
"type": "object",
"properties": {
"transactions":{
"type": "array",
"items": {}
}
}
},
"GetBlockV1Response": {
"type": "object",
"required": [
"blockTransactionString"
],
"properties": {
"blockTransactionString": {
"$ref":"#/components/schemas/BlockTransactionString"
}
}
},
"EvmTransaction":{
"type":"object",
"properties":{
Expand Down Expand Up @@ -98,9 +117,8 @@
"properties": {
"transaction": {
"$ref":"#/components/schemas/EvmTransaction"
}
}

}
},
"GetTransactionV1Request": {
"type": "object",
Expand All @@ -110,7 +128,14 @@
"type": "string"
}
}

}
},
"GetBlockV1Request": {
"required": ["blockHashOrBlockNumber"],
"type": "object",
"properties": {
"blockHashOrBlockNumber": {
}
},
"WatchBlocksV1": {
"type": "string",
Expand Down Expand Up @@ -846,6 +871,40 @@
}
}
},
"/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-besu/get-block": {
"post": {
"x-hyperledger-cactus": {
"http": {
"verbLowerCase": "post",
"path": "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-besu/get-block"
}
},
"operationId": "getBlockV1",
"summary": "Returns a block matching the block",
"parameters": [],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GetBlockV1Request"
}
}
}
},
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GetBlockV1Response"
}
}
}
}
}
}
},
"/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-besu/run-transaction": {
"post": {
"x-hyperledger-cactus": {
Expand Down
Loading

0 comments on commit b882b90

Please sign in to comment.