Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Commit

Permalink
🐛 Include eventRoot in blocks response
Browse files Browse the repository at this point in the history
  • Loading branch information
sameersubudhi committed Oct 28, 2023
1 parent c730a7f commit c815644
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/api/version3.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ _Supports pagination._
"transactionRoot": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"assetsRoot": "6e904b2f678eb3b6c3042acb188a607d903d441d61508d047fe36b3c982995c8",
"stateRoot": "95d9b1773b78034b8df9ac741c903b881da761d8ba002a939de28a4b86982c04",
"eventRoot": "7dee8ae1899582aabb0c4b967ceda6874329dba57b5eb23d7c62890917a55cbd",
"maxHeightGenerated": 559421,
"maxHeightPrevoted": 559434,
"validatorsHash": "ad0076aa444f6cda608bb163c3bd77d9bf172f1d2803d53095bc0f277db6bcb3",
Expand Down Expand Up @@ -5826,6 +5827,7 @@ Proxy request to directly invoke application endpoint. Returns endpoint response
"transactionRoot": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"assetsRoot": "6e904b2f678eb3b6c3042acb188a607d903d441d61508d047fe36b3c982995c8",
"stateRoot": "95d9b1773b78034b8df9ac741c903b881da761d8ba002a939de28a4b86982c04",
"eventRoot": "7dee8ae1899582aabb0c4b967ceda6874329dba57b5eb23d7c62890917a55cbd",
"maxHeightGenerated": 559421,
"maxHeightPrevoted": 559434,
"validatorsHash": "ad0076aa444f6cda608bb163c3bd77d9bf172f1d2803d53095bc0f277db6bcb3",
Expand Down
2 changes: 2 additions & 0 deletions docs/api/websocket_subscribe_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ Updates about a newly generated block.
"transactionRoot": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"assetsRoot": "6e904b2f678eb3b6c3042acb188a607d903d441d61508d047fe36b3c982995c8",
"stateRoot": "95d9b1773b78034b8df9ac741c903b881da761d8ba002a939de28a4b86982c04",
"eventRoot": "7dee8ae1899582aabb0c4b967ceda6874329dba57b5eb23d7c62890917a55cbd",
"maxHeightGenerated": 559421,
"maxHeightPrevoted": 559434,
"validatorsHash": "ad0076aa444f6cda608bb163c3bd77d9bf172f1d2803d53095bc0f277db6bcb3",
Expand Down Expand Up @@ -146,6 +147,7 @@ Updates about a deleted block. This usually happens when the chain switches fork
"transactionRoot": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"assetsRoot": "6e904b2f678eb3b6c3042acb188a607d903d441d61508d047fe36b3c982995c8",
"stateRoot": "95d9b1773b78034b8df9ac741c903b881da761d8ba002a939de28a4b86982c04",
"eventRoot": "7dee8ae1899582aabb0c4b967ceda6874329dba57b5eb23d7c62890917a55cbd",
"maxHeightGenerated": 559421,
"maxHeightPrevoted": 559434,
"validatorsHash": "ad0076aa444f6cda608bb163c3bd77d9bf172f1d2803d53095bc0f277db6bcb3",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"transactionRoot",
"assetsRoot",
"stateRoot",
"eventRoot",
"maxHeightPrevoted",
"maxHeightGenerated",
"validatorsHash",
Expand Down Expand Up @@ -86,6 +87,11 @@
"example": "95d9b1773b78034b8df9ac741c903b881da761d8ba002a939de28a4b86982c04",
"description": "The root of the Sparse Merkle Tree that is computed from the state of the blockchain."
},
"eventRoot": {
"type": "string",
"example": "7dee8ae1899582aabb0c4b967ceda6874329dba57b5eb23d7c62890917a55cbd",
"description": "Merkle root of the events array."
},
"maxHeightGenerated": {
"type": "integer",
"example": 559421
Expand Down
1 change: 1 addition & 0 deletions services/gateway/sources/version3/mappings/block.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ module.exports = {
transactionRoot: '=,string',
assetRoot: '=,string',
stateRoot: '=,string',
eventRoot: '=,string',
maxHeightPrevoted: '=,number',
maxHeightGenerated: '=,number',
validatorsHash: '=,string',
Expand Down

0 comments on commit c815644

Please sign in to comment.