-
Notifications
You must be signed in to change notification settings - Fork 45
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
Add support for Oasis Scan API v2 as a backend option for Wallet #2075
Conversation
Deployed to Cloudflare Pages
|
b63ee41
to
943af68
Compare
933dbce
to
a7cf45e
Compare
a7cf45e
to
cd9e2c2
Compare
cd9e2c2
to
39f0498
Compare
runtimeId: t.runtimeId, | ||
round: t.round, | ||
nonce: | ||
t.ctx?.nonce ?? t.etx?.nonce != null ? BigInt(t.ctx?.nonce ?? t.etx?.nonce).toString() : undefined, |
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.
This looks odd. Add a comment if you are handling special cases - e,g. why does ctx.nonce not check != null but etx.nonce does
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 did not find any special cases in responses. was following v1 e9fdf1f3e, Will update if necessary in the follow up PR.
39f0498
to
52e8cbd
Compare
https://api.oasisscan.com/v2/swagger/
Testing requires .env update
Notes:
from
address is oasis1 not eth address compared to v1 Address format diff between v1 and v2 bitcat365/oasisscan-backend#13TODOs:
runtime
query param will be added to V2transactions
endpoint in the future. At this point we cannot show ParaTime deposits or withdraws Not able fetch runtime transactions bitcat365/oasisscan-backend#8