Skip to content

Commit 7ed958f

Browse files
authored
Metadata bump (#2322)
* Metadata bump * yarn.lock * var requires
1 parent bbe9b94 commit 7ed958f

File tree

15 files changed

+170
-85
lines changed

15 files changed

+170
-85
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
- Allow `BTreeSet` decoding from Array/JSON inputs
77
- Adjust Call-only metadata output to trim documentation to first full line
88
- Safeguard against divide-by-zero for total era points (expired reward eras)
9-
- Internal derive optimizations
9+
- Internal derive optimizations with combining calls
10+
- Support for latest Substrate types & metadata
11+
- `@polkadot/util` 2.12
1012

1113
## 1.16.1 May 26, 2020
1214

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424
"test:watch": "polkadot-dev-run-test --watch"
2525
},
2626
"devDependencies": {
27-
"@babel/core": "^7.10.1",
27+
"@babel/core": "^7.10.2",
2828
"@babel/register": "^7.10.1",
29-
"@babel/runtime": "^7.10.1",
30-
"@polkadot/dev": "^0.55.6",
29+
"@babel/runtime": "^7.10.2",
30+
"@polkadot/dev": "^0.55.7",
3131
"@polkadot/ts": "^0.3.25",
3232
"@polkadot/typegen": "workspace:packages/typegen",
3333
"@types/jest": "^25.2.3",

packages/api-contract/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
},
2727
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-contract#readme",
2828
"dependencies": {
29-
"@babel/runtime": "^7.10.1",
29+
"@babel/runtime": "^7.10.2",
3030
"@polkadot/api": "1.17.0-beta.7",
3131
"@polkadot/rpc-core": "1.17.0-beta.7",
3232
"@polkadot/types": "1.17.0-beta.7",

packages/api-derive/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
},
2828
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme",
2929
"dependencies": {
30-
"@babel/runtime": "^7.10.1",
30+
"@babel/runtime": "^7.10.2",
3131
"@polkadot/api": "1.17.0-beta.7",
3232
"@polkadot/rpc-core": "1.17.0-beta.7",
3333
"@polkadot/rpc-provider": "1.17.0-beta.7",

packages/api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
},
2727
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme",
2828
"dependencies": {
29-
"@babel/runtime": "^7.10.1",
29+
"@babel/runtime": "^7.10.2",
3030
"@polkadot/api-derive": "1.17.0-beta.7",
3131
"@polkadot/keyring": "^2.12.2",
3232
"@polkadot/metadata": "1.17.0-beta.7",

packages/metadata/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
},
2727
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/type-metadata#readme",
2828
"dependencies": {
29-
"@babel/runtime": "^7.10.1",
29+
"@babel/runtime": "^7.10.2",
3030
"@polkadot/types": "1.17.0-beta.7",
3131
"@polkadot/types-known": "1.17.0-beta.7",
3232
"@polkadot/util": "^2.12.2",

packages/metadata/src/Metadata/v11/static-substrate.json

Lines changed: 88 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,8 @@
565565
"documentation": [
566566
" Send a batch of dispatch calls.",
567567
"",
568-
" This will execute until the first one fails and then stop.",
568+
" This will execute until the first one fails and then stop. Calls must fulfil the",
569+
" `IsCallable` filter unless the origin is `Root`.",
569570
"",
570571
" May be called from any origin.",
571572
"",
@@ -599,6 +600,8 @@
599600
"documentation": [
600601
" Send a call through an indexed pseudonym of the sender.",
601602
"",
603+
" Calls must each fulfil the `IsCallable` filter.",
604+
"",
602605
" The dispatch origin for this call must be _Signed_.",
603606
"",
604607
" # <weight>",
@@ -631,7 +634,8 @@
631634
" Register approval for a dispatch to be made from a deterministic composite account if",
632635
" approved by a total of `threshold - 1` of `other_signatories`.",
633636
"",
634-
" If there are enough, then dispatch the call.",
637+
" If there are enough, then dispatch the call. Calls must each fulfil the `IsCallable`",
638+
" filter.",
635639
"",
636640
" Payment: `MultisigDepositBase` will be reserved if this is the first approval, plus",
637641
" `threshold` times `MultisigDepositFactor`. It is returned once this dispatch happens or",
@@ -863,6 +867,15 @@
863867
" A multisig operation has been cancelled. First param is the account that is",
864868
" cancelling, third is the multisig account, fourth is hash of the call."
865869
]
870+
},
871+
{
872+
"name": "Uncallable",
873+
"args": [
874+
"u32"
875+
],
876+
"documentation": [
877+
" A call with a `false` IsCallable filter was attempted."
878+
]
866879
}
867880
],
868881
"constants": [],
@@ -938,6 +951,12 @@
938951
"documentation": [
939952
" A timepoint was given, yet no multisig operation is underway."
940953
]
954+
},
955+
{
956+
"name": "Uncallable",
957+
"documentation": [
958+
" A call with a `false` IsCallable filter was attempted."
959+
]
941960
}
942961
]
943962
},
@@ -3170,6 +3189,15 @@
31703189
" A new set of stakers was elected with the given computation method."
31713190
]
31723191
},
3192+
{
3193+
"name": "SolutionStored",
3194+
"args": [
3195+
"ElectionCompute"
3196+
],
3197+
"documentation": [
3198+
" A new solution for the upcoming election has been stored."
3199+
]
3200+
},
31733201
{
31743202
"name": "Bonded",
31753203
"args": [
@@ -5393,7 +5421,7 @@
53935421
"name": "close",
53945422
"args": [
53955423
{
5396-
"name": "proposal",
5424+
"name": "proposal_hash",
53975425
"type": "Hash"
53985426
},
53995427
{
@@ -5438,6 +5466,31 @@
54385466
" - up to 3 events",
54395467
" # </weight>"
54405468
]
5469+
},
5470+
{
5471+
"name": "disapprove_proposal",
5472+
"args": [
5473+
{
5474+
"name": "proposal_hash",
5475+
"type": "Hash"
5476+
}
5477+
],
5478+
"documentation": [
5479+
" Disapprove a proposal, close, and remove it from the system, regardless of its current state.",
5480+
"",
5481+
" Must be called by the Root origin.",
5482+
"",
5483+
" Parameters:",
5484+
" * `proposal_hash`: The hash of the proposal that should be disapproved.",
5485+
"",
5486+
" # <weight>",
5487+
" Complexity: O(P) where P is the number of max proposals",
5488+
" Base Weight: .49 * P",
5489+
" DB Weight:",
5490+
" * Reads: Proposals",
5491+
" * Writes: Voting, Proposals, ProposalOf",
5492+
" # </weight>"
5493+
]
54415494
}
54425495
],
54435496
"events": [
@@ -5816,7 +5869,7 @@
58165869
"name": "close",
58175870
"args": [
58185871
{
5819-
"name": "proposal",
5872+
"name": "proposal_hash",
58205873
"type": "Hash"
58215874
},
58225875
{
@@ -5861,6 +5914,31 @@
58615914
" - up to 3 events",
58625915
" # </weight>"
58635916
]
5917+
},
5918+
{
5919+
"name": "disapprove_proposal",
5920+
"args": [
5921+
{
5922+
"name": "proposal_hash",
5923+
"type": "Hash"
5924+
}
5925+
],
5926+
"documentation": [
5927+
" Disapprove a proposal, close, and remove it from the system, regardless of its current state.",
5928+
"",
5929+
" Must be called by the Root origin.",
5930+
"",
5931+
" Parameters:",
5932+
" * `proposal_hash`: The hash of the proposal that should be disapproved.",
5933+
"",
5934+
" # <weight>",
5935+
" Complexity: O(P) where P is the number of max proposals",
5936+
" Base Weight: .49 * P",
5937+
" DB Weight:",
5938+
" * Reads: Proposals",
5939+
" * Writes: Voting, Proposals, ProposalOf",
5940+
" # </weight>"
5941+
]
58645942
}
58655943
],
58665944
"events": [
@@ -7750,8 +7828,12 @@
77507828
"type": "u32",
77517829
"value": "0x08000000",
77527830
"documentation": [
7753-
" Size of a contract at the time of instantiation. This is a simple way to ensure that",
7754-
" empty contracts eventually gets deleted."
7831+
" A size offset for an contract. A just created account with untouched storage will have that",
7832+
" much of storage from the perspective of the state rent.",
7833+
"",
7834+
" This is a simple way to ensure that contracts with empty storage eventually get deleted",
7835+
" by making them pay rent. This creates an incentive to remove them early in order to save",
7836+
" rent."
77557837
]
77567838
},
77577839
{

packages/metadata/src/Metadata/v11/static.ts

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

packages/rpc-core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
},
2727
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-core#readme",
2828
"dependencies": {
29-
"@babel/runtime": "^7.10.1",
29+
"@babel/runtime": "^7.10.2",
3030
"@polkadot/metadata": "1.17.0-beta.7",
3131
"@polkadot/rpc-provider": "1.17.0-beta.7",
3232
"@polkadot/types": "1.17.0-beta.7",

packages/rpc-provider/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
},
2727
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme",
2828
"dependencies": {
29-
"@babel/runtime": "^7.10.1",
29+
"@babel/runtime": "^7.10.2",
3030
"@polkadot/metadata": "1.17.0-beta.7",
3131
"@polkadot/types": "1.17.0-beta.7",
3232
"@polkadot/util": "^2.12.2",

0 commit comments

Comments
 (0)