Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: merge pending state update and state update. #128

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 9 additions & 34 deletions api/starknet_api_openrpc.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,6 @@
{
"title": "State update",
"$ref": "#/components/schemas/STATE_UPDATE"
},
{
"title": "Pending state update",
"$ref": "#/components/schemas/PENDING_STATE_UPDATE"
}
]
}
Expand Down Expand Up @@ -1096,37 +1092,16 @@
"STATE_UPDATE": {
"title": "State update",
"type": "object",
"allOf": [
{
"title": "Block info",
"type": "object",
"properties": {
"block_hash": {
"title": "Block hash",
"$ref": "#/components/schemas/BLOCK_HASH"
},
"new_root": {
"title": "New root",
"description": "The new global state root",
"$ref": "#/components/schemas/FELT"
}
},
"required": [
"block_hash",
"new_root"
]
},
{
"title": "Pending state update",
"$ref": "#/components/schemas/PENDING_STATE_UPDATE"
}
]
},
"PENDING_STATE_UPDATE": {
"title": "Pending state update",
"description": "Pending state update",
"type": "object",
"properties": {
"block_hash": {
"title": "Block hash",
"$ref": "#/components/schemas/BLOCK_HASH"
},
"new_root": {
"title": "New root",
"description": "The new global state root",
"$ref": "#/components/schemas/FELT"
},
"old_root": {
"title": "Old root",
"description": "The previous global state root",
Expand Down