Bump metadata (#2000)

* Bump metadata

* Fix lint & docs
This commit is contained in:
Jaco Greeff
2020-03-05 19:36:48 +01:00
committed by GitHub
parent 6963e40074
commit 30d4d8c3a5
7 changed files with 379 additions and 54 deletions
@@ -4110,6 +4110,18 @@
"documentation": [
" The current members of the collective. This is stored sorted (just by value)."
]
},
{
"name": "Prime",
"modifier": "Optional",
"type": {
"Plain": "AccountId"
},
"fallback": "0x00",
"documentation": [
" The member who provides the default vote for any other members that do not vote before",
" the timeout. If None, then no member has that privilege."
]
}
]
},
@@ -4120,11 +4132,17 @@
{
"name": "new_members",
"type": "Vec<AccountId>"
},
{
"name": "prime",
"type": "Option<AccountId>"
}
],
"documentation": [
" Set the collective's membership manually to `new_members`. Be nice to the chain and",
" provide it pre-sorted.",
" Set the collective's membership.",
"",
" - `new_members`: The new member list. Be nice to the chain and",
" - `prime`: The prime member whose vote sets the default.",
"",
" Requires root origin."
]
@@ -4184,6 +4202,34 @@
" - Will be slightly heavier if the proposal is approved / disapproved after the vote.",
" # </weight>"
]
},
{
"name": "close",
"args": [
{
"name": "proposal",
"type": "Hash"
},
{
"name": "index",
"type": "Compact<ProposalIndex>"
}
],
"documentation": [
" May be called by any signed account after the voting duration has ended in order to",
" finish voting and close the proposal.",
"",
" Abstentions are counted as rejections unless there is a prime member set and the prime",
" member cast an approval.",
"",
" - the weight of `proposal` preimage.",
" - up to three events deposited.",
" - one read, two removals, one mutation. (plus three static reads.)",
" - computation and i/o `O(P + L + M)` where:",
" - `M` is number of members,",
" - `P` is number of active proposals,",
" - `L` is the encoded length of `proposal` preimage."
]
}
],
"events": [
@@ -4251,6 +4297,17 @@
"documentation": [
" A single member did some action; `bool` is true if returned without error."
]
},
{
"name": "Closed",
"args": [
"Hash",
"MemberCount",
"MemberCount"
],
"documentation": [
" A proposal was closed after its duration was up."
]
}
],
"constants": [],
@@ -4290,6 +4347,12 @@
"documentation": [
" Members are already initialized!"
]
},
{
"name": "TooEarly",
"documentation": [
" The close call is made too early, before the end of the voting."
]
}
]
},
@@ -4362,6 +4425,18 @@
"documentation": [
" The current members of the collective. This is stored sorted (just by value)."
]
},
{
"name": "Prime",
"modifier": "Optional",
"type": {
"Plain": "AccountId"
},
"fallback": "0x00",
"documentation": [
" The member who provides the default vote for any other members that do not vote before",
" the timeout. If None, then no member has that privilege."
]
}
]
},
@@ -4372,11 +4447,17 @@
{
"name": "new_members",
"type": "Vec<AccountId>"
},
{
"name": "prime",
"type": "Option<AccountId>"
}
],
"documentation": [
" Set the collective's membership manually to `new_members`. Be nice to the chain and",
" provide it pre-sorted.",
" Set the collective's membership.",
"",
" - `new_members`: The new member list. Be nice to the chain and",
" - `prime`: The prime member whose vote sets the default.",
"",
" Requires root origin."
]
@@ -4436,6 +4517,34 @@
" - Will be slightly heavier if the proposal is approved / disapproved after the vote.",
" # </weight>"
]
},
{
"name": "close",
"args": [
{
"name": "proposal",
"type": "Hash"
},
{
"name": "index",
"type": "Compact<ProposalIndex>"
}
],
"documentation": [
" May be called by any signed account after the voting duration has ended in order to",
" finish voting and close the proposal.",
"",
" Abstentions are counted as rejections unless there is a prime member set and the prime",
" member cast an approval.",
"",
" - the weight of `proposal` preimage.",
" - up to three events deposited.",
" - one read, two removals, one mutation. (plus three static reads.)",
" - computation and i/o `O(P + L + M)` where:",
" - `M` is number of members,",
" - `P` is number of active proposals,",
" - `L` is the encoded length of `proposal` preimage."
]
}
],
"events": [
@@ -4503,6 +4612,17 @@
"documentation": [
" A single member did some action; `bool` is true if returned without error."
]
},
{
"name": "Closed",
"args": [
"Hash",
"MemberCount",
"MemberCount"
],
"documentation": [
" A proposal was closed after its duration was up."
]
}
],
"constants": [],
@@ -4542,6 +4662,12 @@
"documentation": [
" Members are already initialized!"
]
},
{
"name": "TooEarly",
"documentation": [
" The close call is made too early, before the end of the voting."
]
}
]
},
@@ -4940,6 +5066,17 @@
"documentation": [
" The current membership, stored as an ordered Vec."
]
},
{
"name": "Prime",
"modifier": "Optional",
"type": {
"Plain": "AccountId"
},
"fallback": "0x00",
"documentation": [
" The current prime member, if one exists."
]
}
]
},
@@ -4987,7 +5124,9 @@
"documentation": [
" Swap out one member `remove` for another `add`.",
"",
" May only be called from `SwapOrigin` or root."
" May only be called from `SwapOrigin` or root.",
"",
" Prime membership is *not* passed from `remove` to `add`, if extant."
]
},
{
@@ -5016,7 +5155,28 @@
"documentation": [
" Swap out the sending member for some other key `new`.",
"",
" May only be called from `Signed` origin of a current member."
" May only be called from `Signed` origin of a current member.",
"",
" Prime membership is passed from the origin account to `new`, if extant."
]
},
{
"name": "set_prime",
"args": [
{
"name": "who",
"type": "AccountId"
}
],
"documentation": [
" Set the prime member. Must be a current member."
]
},
{
"name": "clear_prime",
"args": [],
"documentation": [
" Remove the prime member if it exists."
]
}
],
File diff suppressed because one or more lines are too long