Skip to content

Commit

Permalink
chore: update the runtime versions used in the blockstore, and e2e te…
Browse files Browse the repository at this point in the history
…sts (#592)

* fix: update metadata consts for blockstore

* fix: update metadata consts and e2e tests
  • Loading branch information
TarikGul committed Jun 29, 2021
1 parent 863ba0a commit 4e42877
Show file tree
Hide file tree
Showing 10 changed files with 5,562 additions and 3 deletions.
1,363 changes: 1,363 additions & 0 deletions e2e-tests/endpoints/kusama/7673144.json

Large diffs are not rendered by default.

1,212 changes: 1,212 additions & 0 deletions e2e-tests/endpoints/kusama/7944249.json

Large diffs are not rendered by default.

1,316 changes: 1,316 additions & 0 deletions e2e-tests/endpoints/kusama/8049096.json

Large diffs are not rendered by default.

1,408 changes: 1,408 additions & 0 deletions e2e-tests/endpoints/kusama/8113510.json

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions e2e-tests/endpoints/kusama/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ import block6566865 from './6566865.json';
import block6819725 from './6819725.json';
import block7354817 from './7354817.json';
import block7519631 from './7519631.json';
import block7673144 from './7673144.json';
import block7944249 from './7944249.json';
import block8049096 from './8049096.json'
import block8113510 from './8113510.json';

export const kusamaEndpoints = [
['/blocks/9253', JSON.stringify(block9253)], //v1020
Expand All @@ -40,4 +44,8 @@ export const kusamaEndpoints = [
['/blocks/6819725', JSON.stringify(block6819725)], //v2029
['/blocks/7354817', JSON.stringify(block7354817)], //v2030
['/blocks/7519631', JSON.stringify(block7519631)], //v9010
['/blocks/7673144', JSON.stringify(block7673144)], //v9030
['/blocks/7944249', JSON.stringify(block7944249)], //v9040
['/blocks/8049096', JSON.stringify(block8049096)], //v9050
['/blocks/8113510', JSON.stringify(block8113510)], //v9070
];
250 changes: 250 additions & 0 deletions e2e-tests/endpoints/polkadot/5705186.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,250 @@
{
"number": "5705186",
"hash": "0x5977cfb363ab2071a09941dbe2ce7f18f207aae2f9eac6697883717cbae3b9fb",
"parentHash": "0x1fe8cbf3b157e9b97c5052dd94eb6eb9e17f7520dad471b430f5e24d5907a37d",
"stateRoot": "0x5fe2e85be77eb68cc0b1ef0082541a6a52db4bf3c47c3cdd3c0fb684d170f172",
"extrinsicsRoot": "0x62278caccf9286f058465a6864a152e89aa25268ebc0e717cdec63a343197c93",
"authorId": "15yyudqwLHT6VcKdEug98wt1rCbyg5TBvr6ikakL4rNVAYXf",
"logs": [
{
"type": "PreRuntime",
"index": "6",
"value": [
"0x42414245",
"0x0302010000ee52241000000000921de25bdb304bd39f9e624cd1a81b1b8a7893e80b18de38a676095dc7a4de47e023149ccab8e8f110fd36cb8f132f2a944287929360f06e140407303c913004cf95ec8a4a3f2a5bc85b5bb5c63690654bd5d2b7b670d810645308123a0ff301"
]
},
{
"type": "Seal",
"index": "5",
"value": [
"0x42414245",
"0x06467f7c94075b2e00acdc975038cee8071d6b40b41fb64a55527148fa4e6a7f16a4fe7b6eb468632be33003202d2ab67a2b6afcab05a641e846be0226b4a089"
]
}
],
"onInitialize": {
"events": []
},
"extrinsics": [
{
"method": {
"pallet": "timestamp",
"method": "set"
},
"signature": null,
"nonce": null,
"args": {
"now": "1624895892001"
},
"tip": null,
"hash": "0xd0b771b25b76c49b3d5a55989fd9d28bf060cb2e17b8f638dc253d35d8859818",
"info": {},
"events": [
{
"method": {
"pallet": "system",
"method": "ExtrinsicSuccess"
},
"data": [
{
"weight": "184868000",
"class": "Mandatory",
"paysFee": "Yes"
}
]
}
],
"success": true,
"paysFee": false
},
{
"method": {
"pallet": "balances",
"method": "transferKeepAlive"
},
"signature": {
"signature": "0x29e038dedbf40d02975d7c3bb745296268da06335c102587f2af1563749da66defc5869f59da87ef07504513d9f1ef79f544dfcf0c594fb9df6a270e0e609409",
"signer": {
"id": "16hp43x8DUZtU8L3cJy9Z8JMwTzuu8ZZRWqDZnpMhp464oEd"
}
},
"nonce": "41337",
"args": {
"dest": {
"id": "15B1yBngAC55mHp4BqvLNQCCcoc2Hef43GDsS8HbWuvKNGCN"
},
"value": "181250000000"
},
"tip": "0",
"hash": "0x5fe684dada8f1a09249e892bb7b4362876627247bd89c0372a73add38e8fc21c",
"info": {
"weight": "175696000",
"class": "Normal",
"partialFee": "159000014"
},
"events": [
{
"method": {
"pallet": "system",
"method": "NewAccount"
},
"data": [
"15B1yBngAC55mHp4BqvLNQCCcoc2Hef43GDsS8HbWuvKNGCN"
]
},
{
"method": {
"pallet": "balances",
"method": "Endowed"
},
"data": [
"15B1yBngAC55mHp4BqvLNQCCcoc2Hef43GDsS8HbWuvKNGCN",
"181250000000"
]
},
{
"method": {
"pallet": "balances",
"method": "Transfer"
},
"data": [
"16hp43x8DUZtU8L3cJy9Z8JMwTzuu8ZZRWqDZnpMhp464oEd",
"15B1yBngAC55mHp4BqvLNQCCcoc2Hef43GDsS8HbWuvKNGCN",
"181250000000"
]
},
{
"method": {
"pallet": "treasury",
"method": "Deposit"
},
"data": [
"127200011"
]
},
{
"method": {
"pallet": "balances",
"method": "Deposit"
},
"data": [
"15yyudqwLHT6VcKdEug98wt1rCbyg5TBvr6ikakL4rNVAYXf",
"31800003"
]
},
{
"method": {
"pallet": "system",
"method": "ExtrinsicSuccess"
},
"data": [
{
"weight": "175696000",
"class": "Normal",
"paysFee": "Yes"
}
]
}
],
"success": true,
"paysFee": true
},
{
"method": {
"pallet": "balances",
"method": "transferKeepAlive"
},
"signature": {
"signature": "0x08bb4710f3b23e46d4d074f0a129ac4ca500bbb3594d0805e1f8e239a2965d15a95ffeaddb38dcff8d5ca159089b08cb56fbf224545de52a176f71f00099d082",
"signer": {
"id": "12pgFvpTqXr3u7F5fiDohwnEwJEe7VVTGPzSUwzdtgKjuiAX"
}
},
"nonce": "4159",
"args": {
"dest": {
"id": "15oW1RYUaG4Y241QQgsyYCaTGP68AdFFeg1TKjLLFRofcVoC"
},
"value": "28894720000"
},
"tip": "0",
"hash": "0x5433169ae22b8a46409417dc1f7d1e7703a623eece814bfe12b593ae9e777a7f",
"info": {
"weight": "175696000",
"class": "Normal",
"partialFee": "157000014"
},
"events": [
{
"method": {
"pallet": "system",
"method": "NewAccount"
},
"data": [
"15oW1RYUaG4Y241QQgsyYCaTGP68AdFFeg1TKjLLFRofcVoC"
]
},
{
"method": {
"pallet": "balances",
"method": "Endowed"
},
"data": [
"15oW1RYUaG4Y241QQgsyYCaTGP68AdFFeg1TKjLLFRofcVoC",
"28894720000"
]
},
{
"method": {
"pallet": "balances",
"method": "Transfer"
},
"data": [
"12pgFvpTqXr3u7F5fiDohwnEwJEe7VVTGPzSUwzdtgKjuiAX",
"15oW1RYUaG4Y241QQgsyYCaTGP68AdFFeg1TKjLLFRofcVoC",
"28894720000"
]
},
{
"method": {
"pallet": "treasury",
"method": "Deposit"
},
"data": [
"125600011"
]
},
{
"method": {
"pallet": "balances",
"method": "Deposit"
},
"data": [
"15yyudqwLHT6VcKdEug98wt1rCbyg5TBvr6ikakL4rNVAYXf",
"31400003"
]
},
{
"method": {
"pallet": "system",
"method": "ExtrinsicSuccess"
},
"data": [
{
"weight": "175696000",
"class": "Normal",
"paysFee": "Yes"
}
]
}
],
"success": true,
"paysFee": true
}
],
"onFinalize": {
"events": []
},
"finalized": true
}
2 changes: 2 additions & 0 deletions e2e-tests/endpoints/polkadot/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import block3892620 from './3892620.json';
import block4092619 from './4092619.json';
import block4392619 from './4392619.json';
import block4947391 from './4947391.json';
import block5705186 from './5705186.json';

export const polkadotEndpoints = [
['/blocks/943438', JSON.stringify(block943438)], //v17
Expand All @@ -20,4 +21,5 @@ export const polkadotEndpoints = [
['/blocks/4092619', JSON.stringify(block4092619)], //v28
['/blocks/4392619', JSON.stringify(block4392619)], //v29
['/blocks/4947391', JSON.stringify(block4947391)], //v30
['/blocks/5705186', JSON.stringify(block5705186)], //v9050
];
2 changes: 1 addition & 1 deletion src/chains-config/metadata-consts/kusamaConsts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const kusamaDefinitions: MetadataConsts[] = [
extrinsicBaseWeight,
},
{
runtimeVersions: [2027, 2028, 2029],
runtimeVersions: [2027, 2028, 2029, 2030, 9010, 9030, 9040, 9050, 9070],
perClass,
},
];
2 changes: 1 addition & 1 deletion src/chains-config/metadata-consts/polkadotConsts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const polkadotDefinitions: MetadataConsts[] = [
extrinsicBaseWeight,
},
{
runtimeVersions: [27, 28, 29],
runtimeVersions: [27, 28, 29, 30, 9050],
perClass,
},
];
2 changes: 1 addition & 1 deletion src/chains-config/metadata-consts/westendConsts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const westendDefinitions: MetadataConsts[] = [
extrinsicBaseWeight,
},
{
runtimeVersions: [47, 48, 49],
runtimeVersions: [47, 48, 49, 50, 9010, 9030, 9033, 9050, 9070],
perClass,
},
];

0 comments on commit 4e42877

Please sign in to comment.