-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(e2e-tests): tests for staking-info endpoint (#742)
* e2e tests for staking info * lint
- Loading branch information
Showing
20 changed files
with
1,275 additions
and
0 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 |
---|---|---|
@@ -1,9 +1,11 @@ | ||
import { kusamaAccountBalanceEndpoints } from './balance-info'; | ||
import { kusamaAccountStakingInfoEndpoints } from './staking-info'; | ||
import { kusamaAccountValidateEndpoints } from './validate'; | ||
import { kusamaAccountVestingInfoEndpoints } from './vesting-info'; | ||
|
||
export const kusamaAccountsEndpoints = [ | ||
...kusamaAccountBalanceEndpoints, | ||
...kusamaAccountStakingInfoEndpoints, | ||
...kusamaAccountVestingInfoEndpoints, | ||
...kusamaAccountValidateEndpoints, | ||
]; |
18 changes: 18 additions & 0 deletions
18
e2e-tests/endpoints/kusama/accounts/staking-info/1500000.json
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,18 @@ | ||
{ | ||
"at": { | ||
"hash": "0x9ab99465a0f2613ca4dde52b8545c664f9413d3fc0c73855f0c5d0afd5886239", | ||
"height": "1500000" | ||
}, | ||
"controller": "HJ6cnbBrA1N4SXkrC58tTH3VB2KdvrdMpXbH8SAEAa46oQC", | ||
"rewardDestination": { | ||
"stash": null | ||
}, | ||
"numSlashingSpans": "3", | ||
"staking": { | ||
"stash": "HP8qJ8P4u4W2QgsJ8jzVuSsjfFTT6orQomFD6eTRSGEbiTK", | ||
"total": "497576923500", | ||
"active": "497576923500", | ||
"unlocking": [], | ||
"lastReward": "552" | ||
} | ||
} |
103 changes: 103 additions & 0 deletions
103
e2e-tests/endpoints/kusama/accounts/staking-info/3000000.json
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,103 @@ | ||
{ | ||
"at": { | ||
"hash": "0x5684300299fab954b2a5febd49e3d05712e78bdac7b734084c5079cb87625798", | ||
"height": "3000000" | ||
}, | ||
"controller": "HJ6cnbBrA1N4SXkrC58tTH3VB2KdvrdMpXbH8SAEAa46oQC", | ||
"rewardDestination": { | ||
"stash": null | ||
}, | ||
"numSlashingSpans": "2", | ||
"staking": { | ||
"stash": "HP8qJ8P4u4W2QgsJ8jzVuSsjfFTT6orQomFD6eTRSGEbiTK", | ||
"total": "497576923500", | ||
"active": "497576923500", | ||
"unlocking": [], | ||
"claimedRewards": [ | ||
"775", | ||
"776", | ||
"777", | ||
"778", | ||
"779", | ||
"780", | ||
"781", | ||
"782", | ||
"783", | ||
"784", | ||
"785", | ||
"786", | ||
"787", | ||
"788", | ||
"789", | ||
"790", | ||
"791", | ||
"792", | ||
"793", | ||
"794", | ||
"795", | ||
"796", | ||
"797", | ||
"798", | ||
"799", | ||
"800", | ||
"801", | ||
"802", | ||
"803", | ||
"804", | ||
"805", | ||
"806", | ||
"807", | ||
"808", | ||
"809", | ||
"810", | ||
"811", | ||
"812", | ||
"813", | ||
"814", | ||
"815", | ||
"816", | ||
"817", | ||
"818", | ||
"819", | ||
"820", | ||
"821", | ||
"822", | ||
"823", | ||
"824", | ||
"825", | ||
"826", | ||
"827", | ||
"828", | ||
"829", | ||
"830", | ||
"831", | ||
"832", | ||
"833", | ||
"834", | ||
"835", | ||
"836", | ||
"837", | ||
"838", | ||
"839", | ||
"840", | ||
"841", | ||
"842", | ||
"843", | ||
"844", | ||
"845", | ||
"846", | ||
"847", | ||
"848", | ||
"849", | ||
"850", | ||
"851", | ||
"852", | ||
"853", | ||
"854", | ||
"855", | ||
"856", | ||
"857", | ||
"858" | ||
] | ||
} | ||
} |
37 changes: 37 additions & 0 deletions
37
e2e-tests/endpoints/kusama/accounts/staking-info/5000000.json
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,37 @@ | ||
{ | ||
"at": { | ||
"hash": "0xe360cc614f6de435a6e1e2598795aca7ca9dfc658b84ecf8e7139b89d7a161e3", | ||
"height": "5000000" | ||
}, | ||
"controller": "HJ6cnbBrA1N4SXkrC58tTH3VB2KdvrdMpXbH8SAEAa46oQC", | ||
"rewardDestination": { | ||
"stash": null | ||
}, | ||
"numSlashingSpans": "2", | ||
"staking": { | ||
"stash": "HP8qJ8P4u4W2QgsJ8jzVuSsjfFTT6orQomFD6eTRSGEbiTK", | ||
"total": "497576923500", | ||
"active": "497576923500", | ||
"unlocking": [], | ||
"claimedRewards": [ | ||
"1532", | ||
"1533", | ||
"1534", | ||
"1535", | ||
"1536", | ||
"1537", | ||
"1538", | ||
"1539", | ||
"1540", | ||
"1541", | ||
"1542", | ||
"1543", | ||
"1544", | ||
"1545", | ||
"1546", | ||
"1547", | ||
"1548", | ||
"1549" | ||
] | ||
} | ||
} |
101 changes: 101 additions & 0 deletions
101
e2e-tests/endpoints/kusama/accounts/staking-info/8000000.json
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,101 @@ | ||
{ | ||
"at": { | ||
"hash": "0xe3a79b3c656f0d7d6b6b6c3105575b937f8324e6c1f36a27ab97b8f897cb2b8e", | ||
"height": "8000000" | ||
}, | ||
"controller": "HJ6cnbBrA1N4SXkrC58tTH3VB2KdvrdMpXbH8SAEAa46oQC", | ||
"rewardDestination": { | ||
"stash": null | ||
}, | ||
"numSlashingSpans": "3", | ||
"staking": { | ||
"stash": "HP8qJ8P4u4W2QgsJ8jzVuSsjfFTT6orQomFD6eTRSGEbiTK", | ||
"total": "497576923500", | ||
"active": "497576923500", | ||
"unlocking": [], | ||
"claimedRewards": [ | ||
"2314", | ||
"2316", | ||
"2317", | ||
"2318", | ||
"2319", | ||
"2320", | ||
"2321", | ||
"2322", | ||
"2323", | ||
"2324", | ||
"2325", | ||
"2326", | ||
"2327", | ||
"2328", | ||
"2329", | ||
"2330", | ||
"2331", | ||
"2332", | ||
"2333", | ||
"2334", | ||
"2335", | ||
"2336", | ||
"2337", | ||
"2338", | ||
"2339", | ||
"2340", | ||
"2341", | ||
"2342", | ||
"2343", | ||
"2344", | ||
"2345", | ||
"2346", | ||
"2347", | ||
"2348", | ||
"2349", | ||
"2350", | ||
"2351", | ||
"2353", | ||
"2354", | ||
"2355", | ||
"2356", | ||
"2357", | ||
"2358", | ||
"2359", | ||
"2360", | ||
"2361", | ||
"2362", | ||
"2363", | ||
"2364", | ||
"2365", | ||
"2366", | ||
"2367", | ||
"2368", | ||
"2369", | ||
"2370", | ||
"2371", | ||
"2372", | ||
"2373", | ||
"2374", | ||
"2375", | ||
"2376", | ||
"2377", | ||
"2378", | ||
"2379", | ||
"2380", | ||
"2381", | ||
"2382", | ||
"2383", | ||
"2384", | ||
"2385", | ||
"2386", | ||
"2387", | ||
"2388", | ||
"2389", | ||
"2390", | ||
"2391", | ||
"2392", | ||
"2393", | ||
"2394", | ||
"2395", | ||
"2396", | ||
"2397" | ||
] | ||
} | ||
} |
100 changes: 100 additions & 0 deletions
100
e2e-tests/endpoints/kusama/accounts/staking-info/9500000.json
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,100 @@ | ||
{ | ||
"at": { | ||
"hash": "0x10f81a4d78f2cd55d255a9c80b5d420315256a5af459f8a624be0bb31747563f", | ||
"height": "9500000" | ||
}, | ||
"controller": "HJ6cnbBrA1N4SXkrC58tTH3VB2KdvrdMpXbH8SAEAa46oQC", | ||
"rewardDestination": { | ||
"stash": null | ||
}, | ||
"numSlashingSpans": "2", | ||
"staking": { | ||
"stash": "HP8qJ8P4u4W2QgsJ8jzVuSsjfFTT6orQomFD6eTRSGEbiTK", | ||
"total": "497576923500", | ||
"active": "497576923500", | ||
"unlocking": [], | ||
"claimedRewards": [ | ||
"2734", | ||
"2735", | ||
"2736", | ||
"2737", | ||
"2738", | ||
"2739", | ||
"2740", | ||
"2741", | ||
"2742", | ||
"2743", | ||
"2745", | ||
"2746", | ||
"2747", | ||
"2748", | ||
"2749", | ||
"2751", | ||
"2752", | ||
"2753", | ||
"2754", | ||
"2755", | ||
"2756", | ||
"2757", | ||
"2758", | ||
"2759", | ||
"2760", | ||
"2761", | ||
"2762", | ||
"2763", | ||
"2764", | ||
"2765", | ||
"2766", | ||
"2767", | ||
"2768", | ||
"2769", | ||
"2770", | ||
"2771", | ||
"2772", | ||
"2773", | ||
"2774", | ||
"2775", | ||
"2776", | ||
"2777", | ||
"2778", | ||
"2779", | ||
"2780", | ||
"2781", | ||
"2782", | ||
"2783", | ||
"2784", | ||
"2785", | ||
"2786", | ||
"2787", | ||
"2788", | ||
"2789", | ||
"2790", | ||
"2791", | ||
"2792", | ||
"2793", | ||
"2794", | ||
"2795", | ||
"2796", | ||
"2797", | ||
"2798", | ||
"2799", | ||
"2800", | ||
"2801", | ||
"2802", | ||
"2803", | ||
"2804", | ||
"2806", | ||
"2807", | ||
"2808", | ||
"2809", | ||
"2810", | ||
"2811", | ||
"2812", | ||
"2813", | ||
"2814", | ||
"2815", | ||
"2816", | ||
"2817" | ||
] | ||
} | ||
} |
Oops, something went wrong.