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

Replace App raps with BX #5608

Merged
merged 10 commits into from May 14, 2024
Merged

Replace App raps with BX #5608

merged 10 commits into from May 14, 2024

Conversation

walmat
Copy link
Contributor

@walmat walmat commented Apr 8, 2024

Fixes APP-1311

Simulator.Screen.Recording.-.iPhone.15.Pro.-.2024-04-08.at.17.25.16.mp4

Copy link

linear bot commented Apr 8, 2024

@walmat walmat requested review from jinchung and skylarbarrera and removed request for jinchung April 8, 2024 21:14
Copy link
Contributor

@skylarbarrera skylarbarrera left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code looks great,

do think we need to finish up the custom gas logic if we use new gas store in these existing flows before we merge this (or remove and use legacy for now)

src/raps/actions/crosschainSwap.test.ts Outdated Show resolved Hide resolved
src/raps/actions/crosschainSwap.ts Outdated Show resolved Hide resolved
src/raps/actions/crosschainSwap.ts Show resolved Hide resolved
src/raps/actions/unlock.ts Show resolved Hide resolved
resolve();
} else {
// Wait for 1 second and try again
await delay(1000);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this seems slow to me 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can bump it up, just what the BX had

@walmat walmat added the blocked Blocked by anything (design, UI work, other task, etc) label Apr 9, 2024
@walmat
Copy link
Contributor Author

walmat commented Apr 9, 2024

blocked by custom gas. Need to rip out old redux gas logic from app

Replaced new gas store with old redux gas. Will rip old redux stuff out in a future PR.

@walmat walmat requested a review from benisgold as a code owner April 22, 2024 21:26
@walmat walmat removed the blocked Blocked by anything (design, UI work, other task, etc) label Apr 22, 2024
Copy link
Member

@benisgold benisgold left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tested send, wc, accept offer, mint, swap


const waitForNodeAck = async (hash: string, provider: Signer['provider']): Promise<void> => {
return new Promise(async resolve => {
const tx = await provider?.getTransaction(hash);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could use that and wait for 1 confirmation, however for the sake of keeping code parity between app <> bx I didn't change any of the raps (functionally).

See: https://github.com/rainbow-me/browser-extension/blob/09b452e60561671d6ae25e9dc8915cde31683920/src/core/raps/execute.ts#L109

Copy link
Contributor

@skylarbarrera skylarbarrera left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could use QA but lgtm

@walmat
Copy link
Contributor Author

walmat commented May 14, 2024

tested all raps entry points and they worked as expected

@walmat walmat merged commit c51a95d into develop May 14, 2024
6 checks passed
@walmat walmat deleted the @matthew/raps branch May 14, 2024 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants