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

Add support for Oasis Scan API v2 as a backend option for Wallet #2075

Merged
merged 14 commits into from
Nov 13, 2024

Conversation

buberdds
Copy link
Contributor

@buberdds buberdds commented Oct 23, 2024

https://api.oasisscan.com/v2/swagger/

Testing requires .env update

REACT_APP_BACKEND=oasisscanV2

Notes:

TODOs:

Copy link

github-actions bot commented Oct 23, 2024

Deployed to Cloudflare Pages

Latest commit: 52e8cbd17e18d1672057bb4a6170b0cb727fc086
Status:✅ Deploy successful!
Preview URL: https://b088b3f5.oasis-wallet.pages.dev
Alias: https://pr-2075.oasis-wallet.pages.dev

@buberdds buberdds changed the title Mz/api oasisscan2 Support Oasis Scan API v2 Oct 23, 2024
@buberdds buberdds force-pushed the mz/api-oasisscan2 branch 16 times, most recently from b63ee41 to 943af68 Compare October 25, 2024 08:29
@buberdds buberdds force-pushed the mz/api-oasisscan2 branch 7 times, most recently from 933dbce to a7cf45e Compare November 5, 2024 20:08
@buberdds buberdds marked this pull request as ready for review November 5, 2024 20:19
@buberdds buberdds requested a review from lukaw3d November 5, 2024 20:20
@buberdds buberdds changed the title Support Oasis Scan API v2 Add support for Oasis Scan API v2 as a backend option for Wallet Nov 7, 2024
@buberdds buberdds requested a review from lubej November 12, 2024 07:33
src/app/state/account/selectors.ts Show resolved Hide resolved
src/config.ts Show resolved Hide resolved
src/vendors/oasisscan-v2.ts Show resolved Hide resolved
src/vendors/oasisscan-v2.ts Show resolved Hide resolved
runtimeId: t.runtimeId,
round: t.round,
nonce:
t.ctx?.nonce ?? t.etx?.nonce != null ? BigInt(t.ctx?.nonce ?? t.etx?.nonce).toString() : undefined,
Copy link
Member

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

Copy link
Contributor Author

@buberdds buberdds Nov 13, 2024

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.

src/vendors/oasisscan-v2.ts Show resolved Hide resolved
@buberdds buberdds merged commit 67dfd2c into master Nov 13, 2024
13 checks passed
@buberdds buberdds deleted the mz/api-oasisscan2 branch November 13, 2024 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants