-
Notifications
You must be signed in to change notification settings - Fork 34
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
chore(blob-explorers
): accomodate new blobscan API changes
#68
Conversation
/// Block hash. | ||
pub hash: B256, | ||
/// Block timestamp. | ||
pub timestamp: chrono::DateTime<chrono::offset::Utc>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These fields are present when fetching a block, for which BlockResponse<T>
has these fields—BlockInfo
doesn't need them as it corresponds to a transaction response (see /blocks/{id}
vs /transactions/{id}
).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, pending @mattsse
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see,
lgtm
Blobscan had some more API changes. They added a few things:
DataStorageReferences
fields to bestorage
andurl
.This aligns the new responses to the new format, and another tx test. See their API docs. Although I saw #66 open, the behavior implemented in that PR doesn't seem up to date anymore.