Skip to content

Commit

Permalink
Remove unneeded TryRuntime state call defs (#5176)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacogr authored Aug 21, 2022
1 parent 17c6ef7 commit aacebca
Show file tree
Hide file tree
Showing 19 changed files with 138 additions and 159 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Changes:

- Adjust `StakingLedger` with fallback for Kusama 1050 (2 different structures on-chain)
- Remove `TryRuntime` state call definitions (only off-chain usage)
- Update to latest Substrate, Polkadot & Kusama metadata


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"@babel/core": "^7.18.10",
"@babel/register": "^7.18.9",
"@babel/runtime": "^7.18.9",
"@polkadot/dev": "^0.67.112",
"@polkadot/dev": "^0.67.113",
"@polkadot/typegen": "workspace:packages/typegen",
"@types/jest": "^28.1.7",
"copyfiles": "^2.4.1"
Expand Down
2 changes: 1 addition & 1 deletion packages/api-augment/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"@polkadot/types": "9.2.3-4-x",
"@polkadot/types-augment": "9.2.3-4-x",
"@polkadot/types-codec": "9.2.3-4-x",
"@polkadot/util": "^10.1.4"
"@polkadot/util": "^10.1.5"
},
"devDependencies": {
"@polkadot/types-support": "9.2.3-4-x"
Expand Down
2 changes: 1 addition & 1 deletion packages/api-base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"@babel/runtime": "^7.18.9",
"@polkadot/rpc-core": "9.2.3-4-x",
"@polkadot/types": "9.2.3-4-x",
"@polkadot/util": "^10.1.4",
"@polkadot/util": "^10.1.5",
"rxjs": "^7.5.6"
}
}
6 changes: 3 additions & 3 deletions packages/api-contract/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@
"@polkadot/types": "9.2.3-4-x",
"@polkadot/types-codec": "9.2.3-4-x",
"@polkadot/types-create": "9.2.3-4-x",
"@polkadot/util": "^10.1.4",
"@polkadot/util-crypto": "^10.1.4",
"@polkadot/util": "^10.1.5",
"@polkadot/util-crypto": "^10.1.5",
"rxjs": "^7.5.6"
},
"devDependencies": {
"@polkadot/api-augment": "9.2.3-4-x",
"@polkadot/keyring": "^10.1.4"
"@polkadot/keyring": "^10.1.5"
}
}
4 changes: 2 additions & 2 deletions packages/api-derive/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
"@polkadot/rpc-core": "9.2.3-4-x",
"@polkadot/types": "9.2.3-4-x",
"@polkadot/types-codec": "9.2.3-4-x",
"@polkadot/util": "^10.1.4",
"@polkadot/util-crypto": "^10.1.4",
"@polkadot/util": "^10.1.5",
"@polkadot/util-crypto": "^10.1.5",
"rxjs": "^7.5.6"
},
"devDependencies": {
Expand Down
6 changes: 3 additions & 3 deletions packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"@polkadot/api-augment": "9.2.3-4-x",
"@polkadot/api-base": "9.2.3-4-x",
"@polkadot/api-derive": "9.2.3-4-x",
"@polkadot/keyring": "^10.1.4",
"@polkadot/keyring": "^10.1.5",
"@polkadot/rpc-augment": "9.2.3-4-x",
"@polkadot/rpc-core": "9.2.3-4-x",
"@polkadot/rpc-provider": "9.2.3-4-x",
Expand All @@ -36,8 +36,8 @@
"@polkadot/types-codec": "9.2.3-4-x",
"@polkadot/types-create": "9.2.3-4-x",
"@polkadot/types-known": "9.2.3-4-x",
"@polkadot/util": "^10.1.4",
"@polkadot/util-crypto": "^10.1.4",
"@polkadot/util": "^10.1.5",
"@polkadot/util-crypto": "^10.1.5",
"eventemitter3": "^4.0.7",
"rxjs": "^7.5.6"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/rpc-augment/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@
"@polkadot/rpc-core": "9.2.3-4-x",
"@polkadot/types": "9.2.3-4-x",
"@polkadot/types-codec": "9.2.3-4-x",
"@polkadot/util": "^10.1.4"
"@polkadot/util": "^10.1.5"
}
}
4 changes: 2 additions & 2 deletions packages/rpc-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@
"@polkadot/rpc-augment": "9.2.3-4-x",
"@polkadot/rpc-provider": "9.2.3-4-x",
"@polkadot/types": "9.2.3-4-x",
"@polkadot/util": "^10.1.4",
"@polkadot/util": "^10.1.5",
"rxjs": "^7.5.6"
},
"devDependencies": {
"@polkadot/keyring": "^10.1.4",
"@polkadot/keyring": "^10.1.5",
"@polkadot/rpc-augment": "9.2.3-4-x"
}
}
12 changes: 6 additions & 6 deletions packages/rpc-provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.18.9",
"@polkadot/keyring": "^10.1.4",
"@polkadot/keyring": "^10.1.5",
"@polkadot/types": "9.2.3-4-x",
"@polkadot/types-support": "9.2.3-4-x",
"@polkadot/util": "^10.1.4",
"@polkadot/util-crypto": "^10.1.4",
"@polkadot/x-fetch": "^10.1.4",
"@polkadot/x-global": "^10.1.4",
"@polkadot/x-ws": "^10.1.4",
"@polkadot/util": "^10.1.5",
"@polkadot/util-crypto": "^10.1.5",
"@polkadot/x-fetch": "^10.1.5",
"@polkadot/x-global": "^10.1.5",
"@polkadot/x-ws": "^10.1.5",
"@substrate/connect": "0.7.11",
"eventemitter3": "^4.0.7",
"mock-socket": "^9.1.5",
Expand Down
6 changes: 3 additions & 3 deletions packages/typegen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@
"@polkadot/types-codec": "9.2.3-4-x",
"@polkadot/types-create": "9.2.3-4-x",
"@polkadot/types-support": "9.2.3-4-x",
"@polkadot/util": "^10.1.4",
"@polkadot/util-crypto": "^10.1.4",
"@polkadot/x-ws": "^10.1.4",
"@polkadot/util": "^10.1.5",
"@polkadot/util-crypto": "^10.1.5",
"@polkadot/x-ws": "^10.1.5",
"handlebars": "^4.7.7",
"websocket": "^1.0.34",
"yargs": "^17.5.1"
Expand Down
2 changes: 1 addition & 1 deletion packages/types-augment/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@
"@babel/runtime": "^7.18.9",
"@polkadot/types": "9.2.3-4-x",
"@polkadot/types-codec": "9.2.3-4-x",
"@polkadot/util": "^10.1.4"
"@polkadot/util": "^10.1.5"
}
}
6 changes: 3 additions & 3 deletions packages/types-codec/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.18.9",
"@polkadot/util": "^10.1.4",
"@polkadot/x-bigint": "^10.1.4"
"@polkadot/util": "^10.1.5",
"@polkadot/x-bigint": "^10.1.5"
},
"devDependencies": {
"@polkadot/types": "9.2.3-4-x",
"@polkadot/types-augment": "9.2.3-4-x",
"@polkadot/types-support": "9.2.3-4-x",
"@polkadot/util-crypto": "^10.1.4"
"@polkadot/util-crypto": "^10.1.5"
}
}
2 changes: 1 addition & 1 deletion packages/types-create/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"dependencies": {
"@babel/runtime": "^7.18.9",
"@polkadot/types-codec": "9.2.3-4-x",
"@polkadot/util": "^10.1.4"
"@polkadot/util": "^10.1.5"
},
"devDependencies": {
"@polkadot/types": "9.2.3-4-x"
Expand Down
4 changes: 2 additions & 2 deletions packages/types-known/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.18.9",
"@polkadot/networks": "^10.1.4",
"@polkadot/networks": "^10.1.5",
"@polkadot/types": "9.2.3-4-x",
"@polkadot/types-codec": "9.2.3-4-x",
"@polkadot/types-create": "9.2.3-4-x",
"@polkadot/util": "^10.1.4"
"@polkadot/util": "^10.1.5"
},
"devDependencies": {
"@polkadot/api": "9.2.3-4-x"
Expand Down
2 changes: 1 addition & 1 deletion packages/types-support/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.18.9",
"@polkadot/util": "^10.1.4"
"@polkadot/util": "^10.1.5"
}
}
8 changes: 4 additions & 4 deletions packages/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.18.9",
"@polkadot/keyring": "^10.1.4",
"@polkadot/keyring": "^10.1.5",
"@polkadot/types-augment": "9.2.3-4-x",
"@polkadot/types-codec": "9.2.3-4-x",
"@polkadot/types-create": "9.2.3-4-x",
"@polkadot/util": "^10.1.4",
"@polkadot/util-crypto": "^10.1.4",
"@polkadot/util": "^10.1.5",
"@polkadot/util-crypto": "^10.1.5",
"rxjs": "^7.5.6"
},
"devDependencies": {
"@polkadot/keyring": "^10.1.4",
"@polkadot/keyring": "^10.1.5",
"@polkadot/types-support": "9.2.3-4-x"
}
}
22 changes: 0 additions & 22 deletions packages/types/src/interfaces/runtime/runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,27 +80,5 @@ export const runtime: DefinitionsCall = {
}, CORE_V1_TO_V2, CORE_V1_TO_V4),
version: 1
}
],
TryRuntime: [
{
methods: {
execute_block_no_check: {
description: "Execute the given block, but don't check that its state root matches that of yours.",
params: [
{
name: 'block',
type: 'Block'
}
],
type: 'Weight'
},
on_runtime_upgrade: {
description: 'dry-run runtime upgrades, returning the total weight consumed.',
params: [],
type: '(Weight, Weight)'
}
},
version: 1
}
]
};
Loading

0 comments on commit aacebca

Please sign in to comment.