Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(e2e): use predefined addresses in load
- use predefined set of addresses per network in wallet restoration test
- Loading branch information
Ivaylo Andonov
committed
Mar 16, 2023
1 parent
f0a951b
commit 4537094
Showing
11 changed files
with
505,108 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export const SECOND = 1000; | ||
export const MINUTE = 60 * SECOND; | ||
|
||
export const TX_TIMEOUT_DEFAULT = 7 * MINUTE; | ||
export const SYNC_TIMEOUT_DEFAULT = 3 * MINUTE; | ||
export const BALANCE_TIMEOUT_DEFAULT = 3 * MINUTE; | ||
export const FAST_OPERATION_TIMEOUT_DEFAULT = 15 * SECOND; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,12 @@ | ||
/** | ||
* Query randomized distinct addresses from db associated with users who are staking. | ||
* Query distinct addresses from db associated with users who are staking. | ||
*/ | ||
export const findAddressesWithRegisteredStakeKey = ` | ||
SELECT * FROM ( | ||
SELECT DISTINCT txOut.address as address, sa.view as stake_address | ||
FROM public.delegation d | ||
LEFT JOIN public.tx_out txOut on | ||
d.addr_id = txOut.stake_address_id | ||
LEFT JOIN public.stake_address sa on | ||
txOut.stake_address_id = sa.id | ||
) distinct_addresses | ||
ORDER BY RANDOM() LIMIT $1 | ||
SELECT COUNT(*) AS tx_count, address, sa.view as stake_address | ||
FROM tx_out | ||
LEFT JOIN public.stake_address sa | ||
ON tx_out.stake_address_id = sa.id | ||
WHERE tx_out.id stake_address_id IS NOT NULL | ||
GROUP BY address, stake_address | ||
ORDER BY address DESC LIMIT $1; | ||
`; |
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.