Bump static Substrate metadata (#3616)

* Bump static Substrate metadata

* Add size alias
This commit is contained in:
Jaco
2021-06-04 11:15:11 +02:00
committed by GitHub
parent ba3ac3f73d
commit 3b46505027
12 changed files with 534 additions and 10 deletions
+311 -2
View File
@@ -1477,6 +1477,22 @@
" NOTE: Should only be accessed when setting, changing and freeing a lock."
]
},
{
"name": "Reserves",
"modifier": "Default",
"type": {
"map": {
"hasher": "Blake2_128Concat",
"key": "AccountId",
"value": "Vec<ReserveData>",
"linked": false
}
},
"fallback": "0x00",
"documentation": [
" Named reserves on some account balances."
]
},
{
"name": "StorageVersion",
"modifier": "Default",
@@ -1765,6 +1781,12 @@
"documentation": [
" Beneficiary account must pre-exist"
]
},
{
"name": "TooManyReserves",
"documentation": [
" Number of named reserves exceed MaxReserves"
]
}
],
"index": 6
@@ -4663,7 +4685,7 @@
"type": "BlockNumber",
"value": "0x80510100",
"documentation": [
" Minimum voting period allowed for an emergency referendum."
" Minimum voting period allowed for a fast-track referendum."
]
},
{
@@ -4687,7 +4709,10 @@
"type": "u32",
"value": "0x64000000",
"documentation": [
" The maximum number of votes for an account."
" The maximum number of votes for an account.",
"",
" Also used to compute weight, an overly big value can",
" lead to extrinsic with very big weight: see `delegate` for instance."
]
}
],
@@ -15512,6 +15537,290 @@
}
],
"index": 38
},
{
"name": "TransactionStorage",
"storage": {
"prefix": "TransactionStorage",
"items": [
{
"name": "Transactions",
"modifier": "Optional",
"type": {
"map": {
"hasher": "Blake2_128Concat",
"key": "BlockNumber",
"value": "Vec<TransactionInfo>",
"linked": false
}
},
"fallback": "0x00",
"documentation": [
" Collection of transaction metadata by block number."
]
},
{
"name": "ChunkCount",
"modifier": "Default",
"type": {
"map": {
"hasher": "Blake2_128Concat",
"key": "BlockNumber",
"value": "u32",
"linked": false
}
},
"fallback": "0x00000000",
"documentation": [
" Count indexed chunks for each block."
]
},
{
"name": "ByteFee",
"modifier": "Optional",
"type": {
"plain": "BalanceOf"
},
"fallback": "0x00",
"documentation": [
" Storage fee per byte."
]
},
{
"name": "EntryFee",
"modifier": "Optional",
"type": {
"plain": "BalanceOf"
},
"fallback": "0x00",
"documentation": [
" Storage fee per transaction."
]
},
{
"name": "MaxTransactionSize",
"modifier": "Default",
"type": {
"plain": "u32"
},
"fallback": "0x00000000",
"documentation": [
" Maximum data set in a single transaction in bytes."
]
},
{
"name": "MaxBlockTransactions",
"modifier": "Default",
"type": {
"plain": "u32"
},
"fallback": "0x00000000",
"documentation": [
" Maximum number of indexed transactions in the block."
]
},
{
"name": "StoragePeriod",
"modifier": "Default",
"type": {
"plain": "BlockNumber"
},
"fallback": "0x00000000",
"documentation": [
" Storage period for data in blocks. Should match `sp_storage_proof::DEFAULT_STORAGE_PERIOD`",
" for block authoring."
]
},
{
"name": "BlockTransactions",
"modifier": "Default",
"type": {
"plain": "Vec<TransactionInfo>"
},
"fallback": "0x00",
"documentation": []
},
{
"name": "ProofChecked",
"modifier": "Default",
"type": {
"plain": "bool"
},
"fallback": "0x00",
"documentation": [
" Was the proof checked in this block?"
]
}
]
},
"calls": [
{
"name": "store",
"args": [
{
"name": "data",
"type": "Bytes"
}
],
"documentation": [
" Index and store data on chain. Minimum data size is 1 bytes, maximum is `MaxTransactionSize`.",
" Data will be removed after `STORAGE_PERIOD` blocks, unless `renew` is called.",
" # <weight>",
" - n*log(n) of data size, as all data is pushed to an in-memory trie.",
" Additionally contains a DB write.",
" # </weight>"
]
},
{
"name": "renew",
"args": [
{
"name": "block",
"type": "BlockNumber"
},
{
"name": "index",
"type": "u32"
}
],
"documentation": [
" Renew previously stored data. Parameters are the block number that contains",
" previous `store` or `renew` call and transaction index within that block.",
" Transaction index is emitted in the `Stored` or `Renewed` event.",
" Applies same fees as `store`.",
" # <weight>",
" - Constant.",
" # </weight>"
]
},
{
"name": "check_proof",
"args": [
{
"name": "proof",
"type": "TransactionStorageProof"
}
],
"documentation": [
" Check storage proof for block number `block_number() - StoragePeriod`.",
" If such block does not exist the proof is expected to be `None`.",
" # <weight>",
" - Linear w.r.t the number of indexed transactions in the proved block for random probing.",
" There's a DB read for each transaction.",
" Here we assume a maximum of 100 probed transactions.",
" # </weight>"
]
}
],
"events": [
{
"name": "Stored",
"args": [
"u32"
],
"documentation": [
" Stored data under specified index."
]
},
{
"name": "Renewed",
"args": [
"u32"
],
"documentation": [
" Renewed data under specified index."
]
},
{
"name": "ProofChecked",
"args": [],
"documentation": [
" Storage proof was successfully checked."
]
}
],
"constants": [],
"errors": [
{
"name": "InsufficientFunds",
"documentation": [
" Insufficient account balance."
]
},
{
"name": "NotConfigured",
"documentation": [
" Invalid configuration."
]
},
{
"name": "RenewedNotFound",
"documentation": [
" Renewed extrinsic is not found."
]
},
{
"name": "EmptyTransaction",
"documentation": [
" Attempting to store empty transaction"
]
},
{
"name": "UnexpectedProof",
"documentation": [
" Proof was not expected in this block."
]
},
{
"name": "InvalidProof",
"documentation": [
" Proof failed verification."
]
},
{
"name": "MissingProof",
"documentation": [
" Missing storage proof."
]
},
{
"name": "MissingStateData",
"documentation": [
" Unable to verify proof becasue state data is missing."
]
},
{
"name": "DoubleCheck",
"documentation": [
" Double proof check in the block."
]
},
{
"name": "ProofNotChecked",
"documentation": [
" Storage proof was not checked in the block."
]
},
{
"name": "TransactionTooLarge",
"documentation": [
" Transaction is too large."
]
},
{
"name": "TooManyTransactions",
"documentation": [
" Too many transactions in the block."
]
},
{
"name": "BadContext",
"documentation": [
" Attempted to call `store` outside of block execution."
]
}
],
"index": 39
}
],
"extrinsic": {
File diff suppressed because one or more lines are too long