-
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): kusama e2e tests for paras endpoint (#736)
* paras e2e tests for kusama * lint * eslint disable next lint
- Loading branch information
Showing
29 changed files
with
1,333 additions
and
2 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 { kusamaAccountsEndpoints } from './accounts'; | ||
import { kusamaBlockEndpoints } from './blocks'; | ||
import { kusamaParasEndpoints } from './paras'; | ||
import { kusamaRuntimeEndpoints } from './runtime'; | ||
|
||
export const kusamaEndpoints = { | ||
blocks: kusamaBlockEndpoints, | ||
accounts: kusamaAccountsEndpoints, | ||
paras: kusamaParasEndpoints, | ||
runtime: kusamaRuntimeEndpoints, | ||
}; |
21 changes: 21 additions & 0 deletions
21
e2e-tests/endpoints/kusama/paras/auctions-current/8400000.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,21 @@ | ||
{ | ||
"at": { | ||
"hash": "0xd04190fb7b5e6ad66b7f5e218f41a3706fd19426ae9176fee64c777a232a1030", | ||
"height": "8400000" | ||
}, | ||
"beginEnd": "8351750", | ||
"finishEnd": "8423750", | ||
"phase": "endPeriod", | ||
"auctionIndex": "5", | ||
"leasePeriods": [ | ||
"13", | ||
"14", | ||
"15", | ||
"16", | ||
"17", | ||
"18", | ||
"19", | ||
"20" | ||
], | ||
"winning": null | ||
} |
21 changes: 21 additions & 0 deletions
21
e2e-tests/endpoints/kusama/paras/auctions-current/9828507.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,21 @@ | ||
{ | ||
"at": { | ||
"hash": "0x0d3f41f12acb57a080f7907fc03b5ff99d7cbc1c1a7302f69f2830a38c9c68bb", | ||
"height": "9828507" | ||
}, | ||
"beginEnd": "9833873", | ||
"finishEnd": "9905873", | ||
"phase": "startPeriod", | ||
"auctionIndex": "12", | ||
"leasePeriods": [ | ||
"17", | ||
"18", | ||
"19", | ||
"20", | ||
"21", | ||
"22", | ||
"23", | ||
"24" | ||
], | ||
"winning": null | ||
} |
13 changes: 13 additions & 0 deletions
13
e2e-tests/endpoints/kusama/paras/auctions-current/index.ts
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,13 @@ | ||
import parasAuctionsCurrent8400000 from './8400000.json'; | ||
import parasAuctionsCurrent9828507 from './9828507.json'; | ||
|
||
export const parasAuctionsCurrentEndpoints = [ | ||
[ | ||
'/experimental/paras/auctions/current?at=8400000', | ||
JSON.stringify(parasAuctionsCurrent8400000), | ||
], | ||
[ | ||
'/experimental/paras/auctions/current?at=9828507', | ||
JSON.stringify(parasAuctionsCurrent9828507), | ||
], | ||
]; |
32 changes: 32 additions & 0 deletions
32
e2e-tests/endpoints/kusama/paras/crowdloan-info/8367200.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,32 @@ | ||
{ | ||
"at": { | ||
"hash": "0xae928763687168ef54906f186f76d4e45b6f47e94406c07e3bf9e3013651a4be", | ||
"height": "8367200" | ||
}, | ||
"fundInfo": { | ||
"depositor": "FFuCbRwsDTkj1cc2w6dvBmXvumyoZR6QgfAv1LwL3kBgmbX", | ||
"verifier": { | ||
"sr25519": "0x6c79c2c862124697baf6d0562055a50f3b0eac3c895c23bb16e8d1e2da341549" | ||
}, | ||
"deposit": "9999999900000", | ||
"raised": "205935011120809976", | ||
"end": "8467200", | ||
"cap": "1000000000000000000", | ||
"lastContribution": { | ||
"ending": "8123536" | ||
}, | ||
"firstPeriod": "13", | ||
"lastPeriod": "20", | ||
"trieIndex": "2" | ||
}, | ||
"leasePeriods": [ | ||
"13", | ||
"14", | ||
"15", | ||
"16", | ||
"17", | ||
"18", | ||
"19", | ||
"20" | ||
] | ||
} |
30 changes: 30 additions & 0 deletions
30
e2e-tests/endpoints/kusama/paras/crowdloan-info/9000000.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,30 @@ | ||
{ | ||
"at": { | ||
"hash": "0x4cead84882586ab41fc299d10e1a873cd19aeb3c9cf3dda2e663f183bef030ab", | ||
"height": "9000000" | ||
}, | ||
"fundInfo": { | ||
"depositor": "Eo2YWNA49Uhqu3rVawFUjhm19H72XeuNinmAHBGbKpHasNH", | ||
"verifier": null, | ||
"deposit": "9999999900000", | ||
"raised": "0", | ||
"end": "8467200", | ||
"cap": "135000000000000000", | ||
"lastContribution": { | ||
"preEnding": "43" | ||
}, | ||
"firstPeriod": "13", | ||
"lastPeriod": "20", | ||
"trieIndex": "12" | ||
}, | ||
"leasePeriods": [ | ||
"13", | ||
"14", | ||
"15", | ||
"16", | ||
"17", | ||
"18", | ||
"19", | ||
"20" | ||
] | ||
} |
30 changes: 30 additions & 0 deletions
30
e2e-tests/endpoints/kusama/paras/crowdloan-info/9810000.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,30 @@ | ||
{ | ||
"at": { | ||
"hash": "0x6eb8910da088f091e43cb31489bdb2a6980a02d88b95313266135244408aa682", | ||
"height": "9810000" | ||
}, | ||
"fundInfo": { | ||
"depositor": "Eo2YWNA49Uhqu3rVawFUjhm19H72XeuNinmAHBGbKpHasNH", | ||
"verifier": null, | ||
"deposit": "9999999900000", | ||
"raised": "1706827230863411", | ||
"end": "10113719", | ||
"cap": "42000000000000000000", | ||
"lastContribution": { | ||
"preEnding": "49" | ||
}, | ||
"firstPeriod": "17", | ||
"lastPeriod": "24", | ||
"trieIndex": "41" | ||
}, | ||
"leasePeriods": [ | ||
"17", | ||
"18", | ||
"19", | ||
"20", | ||
"21", | ||
"22", | ||
"23", | ||
"24" | ||
] | ||
} |
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 @@ | ||
import parasCrowdloanInfo8367200 from './8367200.json'; | ||
import parasCrowdloanInfo9000000 from './9000000.json'; | ||
import parasCrowdloanInfo9810000 from './9810000.json'; | ||
|
||
export const parasCrowdloanInfoEndpoints = [ | ||
[ | ||
'/experimental/paras/2023/crowdloan-info?at=8367200', | ||
JSON.stringify(parasCrowdloanInfo8367200), | ||
], | ||
[ | ||
'/experimental/paras/2077/crowdloan-info?at=9000000', | ||
JSON.stringify(parasCrowdloanInfo9000000), | ||
], | ||
[ | ||
'/experimental/paras/2077/crowdloan-info?at=9810000', | ||
JSON.stringify(parasCrowdloanInfo9810000), | ||
], | ||
]; |
Oops, something went wrong.