-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(jumpstart): handle jumpstart state (#4963)
### Description 1. Introducing new slice to the redux state for jumpstart link handling: ``` jumpstart: { showLoading: boolean showError: boolean } ``` This state is expected to be used for rendering UI components displaying the jumpstart link handling state to the user. The actual components will follow in the subsequent PR once the design discussions converge. 2. After successful jumpstart claim two types of pending transactions are dispatched (getting tx data trough blockchain RPC calls): * Payment received (for ERC-20 claim) * NFT received (for ERC-721 claim) Those transactions are expected to be replaced with blockchain-api data once it's fetched. 3. Added analytics events for jumpstart handler lifecycle: * claim succeeded * claim failed * ERC20 token claimed * ERC721 nft claimed ### Test plan * Updated unit tests ### Related issues - Related to RET-1004 ### Backwards compatibility Y ### Network scalability If a new NetworkId and/or Network are added in the future, the changes in this PR will: - [x] Continue to work without code changes, OR trigger a compilation error (guaranteeing we find it when a new network is added)
- Loading branch information
Showing
22 changed files
with
907 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.