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 committed Jun 25, 2021
1 parent 22e3d77 commit 9a8312e
Show file tree
Hide file tree
Showing 10 changed files with 973 additions and 429 deletions.
446 changes: 141 additions & 305 deletions packages/cactus-cockpit/package-lock.json

Large diffs are not rendered by default.

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,85 @@
}
}
},
"EvmBlock":{
"type":"object",
"properties":{
"number":{
"type":"number"
},
"hash":{
"type":"string"
},
"parentHash":{
"type":"string"
},
"nonce":{
"type":"string"
},
"sha3Uncles":{
"type":"string"
},
"logsBloom":{
"type":"string"
},
"transactionsRoot":{
"type":"string"
},
"stateRoot":{
"type":"string"
},
"miner":{
"type":"string"
},
"difficulty":{
"type":"number"
},
"totalDifficulty":{
"type":"number"
},
"extraData":{
"type":"string"
},
"size":{
"type":"number"
},
"gasLimit":{
"type":"number"
},
"gasUsed":{
"type":"number"
},
"timestamp":{
},
"transactions":{
"type":"array",
"items":{}
},
"uncles":{
"type":"array",
"items":{}
}
}
},
"GetBlockV1Response": {
"type": "object",
"required": [
"block"
],
"properties": {
"block": {
"$ref":"#/components/schemas/EvmBlock"
}

}
},
"GetBlockV1Request": {
"required": ["blockHashOrBlockNumber"],
"type": "object",
"properties": {
"blockHashOrBlockNumber":{}
}
},
"WatchBlocksV1": {
"type": "string",
"enum": [
Expand Down Expand Up @@ -790,6 +868,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 9a8312e

Please sign in to comment.