@storagehub/api-augment 0.1.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +674 -0
- package/biome.json +2 -9
- package/dist/parachain/index.js.map +1 -0
- package/dist/parachain/interfaces/augment-api-consts.js.map +1 -0
- package/dist/parachain/interfaces/augment-api-errors.js.map +1 -0
- package/dist/parachain/interfaces/augment-api-events.js.map +1 -0
- package/dist/parachain/interfaces/augment-api-query.js.map +1 -0
- package/dist/parachain/interfaces/augment-api-rpc.js.map +1 -0
- package/dist/parachain/interfaces/augment-api-runtime.js.map +1 -0
- package/dist/parachain/interfaces/augment-api-tx.js.map +1 -0
- package/dist/parachain/interfaces/augment-api.js.map +1 -0
- package/dist/parachain/interfaces/augment-types.js.map +1 -0
- package/dist/parachain/interfaces/definitions.js.map +1 -0
- package/dist/parachain/interfaces/index.js.map +1 -0
- package/dist/{interfaces → parachain/interfaces}/lookup.js +1465 -813
- package/dist/parachain/interfaces/lookup.js.map +1 -0
- package/dist/parachain/interfaces/registry.js.map +1 -0
- package/dist/parachain/interfaces/storagehubclient/definitions.js +7 -0
- package/dist/parachain/interfaces/storagehubclient/definitions.js.map +1 -0
- package/dist/parachain/interfaces/storagehubclient/index.js.map +1 -0
- package/dist/parachain/interfaces/storagehubclient/runtime.js.map +1 -0
- package/dist/parachain/interfaces/storagehubclient/types.js.map +1 -0
- package/dist/parachain/interfaces/types-lookup.js.map +1 -0
- package/dist/parachain/interfaces/types.js.map +1 -0
- package/dist/solochain-evm/index.js +4 -0
- package/dist/solochain-evm/index.js.map +1 -0
- package/dist/solochain-evm/interfaces/augment-api-consts.js +6 -0
- package/dist/solochain-evm/interfaces/augment-api-consts.js.map +1 -0
- package/dist/solochain-evm/interfaces/augment-api-errors.js +6 -0
- package/dist/solochain-evm/interfaces/augment-api-errors.js.map +1 -0
- package/dist/solochain-evm/interfaces/augment-api-events.js +6 -0
- package/dist/solochain-evm/interfaces/augment-api-events.js.map +1 -0
- package/dist/solochain-evm/interfaces/augment-api-query.js +6 -0
- package/dist/solochain-evm/interfaces/augment-api-query.js.map +1 -0
- package/dist/solochain-evm/interfaces/augment-api-rpc.js +6 -0
- package/dist/solochain-evm/interfaces/augment-api-rpc.js.map +1 -0
- package/dist/solochain-evm/interfaces/augment-api-runtime.js +6 -0
- package/dist/solochain-evm/interfaces/augment-api-runtime.js.map +1 -0
- package/dist/solochain-evm/interfaces/augment-api-tx.js +6 -0
- package/dist/solochain-evm/interfaces/augment-api-tx.js.map +1 -0
- package/dist/solochain-evm/interfaces/augment-api.js +10 -0
- package/dist/solochain-evm/interfaces/augment-api.js.map +1 -0
- package/dist/solochain-evm/interfaces/augment-types.js +6 -0
- package/dist/solochain-evm/interfaces/augment-types.js.map +1 -0
- package/dist/solochain-evm/interfaces/definitions.js +2 -0
- package/dist/solochain-evm/interfaces/definitions.js.map +1 -0
- package/dist/solochain-evm/interfaces/index.js +4 -0
- package/dist/solochain-evm/interfaces/index.js.map +1 -0
- package/dist/solochain-evm/interfaces/lookup.js +3744 -0
- package/dist/solochain-evm/interfaces/lookup.js.map +1 -0
- package/dist/solochain-evm/interfaces/registry.js +6 -0
- package/dist/solochain-evm/interfaces/registry.js.map +1 -0
- package/dist/solochain-evm/interfaces/storagehubclient/definitions.js +7 -0
- package/dist/solochain-evm/interfaces/storagehubclient/definitions.js.map +1 -0
- package/dist/solochain-evm/interfaces/storagehubclient/index.js +4 -0
- package/dist/solochain-evm/interfaces/storagehubclient/index.js.map +1 -0
- package/dist/solochain-evm/interfaces/storagehubclient/types.js +4 -0
- package/dist/solochain-evm/interfaces/storagehubclient/types.js.map +1 -0
- package/dist/solochain-evm/interfaces/types-lookup.js +6 -0
- package/dist/solochain-evm/interfaces/types-lookup.js.map +1 -0
- package/dist/solochain-evm/interfaces/types.js +4 -0
- package/dist/solochain-evm/interfaces/types.js.map +1 -0
- package/dist/types/{interfaces → parachain/interfaces}/augment-api-consts.d.ts +147 -20
- package/dist/types/{interfaces → parachain/interfaces}/augment-api-errors.d.ts +235 -8
- package/dist/types/{interfaces → parachain/interfaces}/augment-api-events.d.ts +542 -118
- package/dist/types/{interfaces → parachain/interfaces}/augment-api-query.d.ts +208 -118
- package/dist/types/{interfaces → parachain/interfaces}/augment-api-rpc.d.ts +61 -4
- package/dist/types/{interfaces → parachain/interfaces}/augment-api-runtime.d.ts +97 -8
- package/dist/types/{interfaces → parachain/interfaces}/augment-api-tx.d.ts +356 -181
- package/dist/types/{interfaces → parachain/interfaces}/augment-types.d.ts +144 -11
- package/dist/types/{interfaces → parachain/interfaces}/lookup.d.ts +1067 -513
- package/dist/types/parachain/interfaces/registry.d.ts +311 -0
- package/dist/types/{interfaces → parachain/interfaces}/storagehubclient/types.d.ts +129 -18
- package/dist/types/{interfaces → parachain/interfaces}/types-lookup.d.ts +1619 -887
- package/dist/types/solochain-evm/interfaces/augment-api-consts.d.ts +641 -0
- package/dist/types/solochain-evm/interfaces/augment-api-errors.d.ts +1260 -0
- package/dist/types/solochain-evm/interfaces/augment-api-events.d.ts +2058 -0
- package/dist/types/solochain-evm/interfaces/augment-api-query.d.ts +1317 -0
- package/dist/types/solochain-evm/interfaces/augment-api-rpc.d.ts +775 -0
- package/dist/types/solochain-evm/interfaces/augment-api-runtime.d.ts +535 -0
- package/dist/types/solochain-evm/interfaces/augment-api-tx.d.ts +2381 -0
- package/dist/types/solochain-evm/interfaces/augment-api.d.ts +7 -0
- package/dist/types/solochain-evm/interfaces/augment-types.d.ts +1418 -0
- package/dist/types/solochain-evm/interfaces/index.d.ts +1 -0
- package/dist/types/solochain-evm/interfaces/lookup.d.ts +3363 -0
- package/dist/types/solochain-evm/interfaces/registry.d.ts +252 -0
- package/dist/types/solochain-evm/interfaces/storagehubclient/definitions.d.ts +6 -0
- package/dist/types/solochain-evm/interfaces/storagehubclient/index.d.ts +1 -0
- package/dist/types/solochain-evm/interfaces/storagehubclient/types.d.ts +319 -0
- package/dist/types/solochain-evm/interfaces/types-lookup.d.ts +3577 -0
- package/dist/types/solochain-evm/interfaces/types.d.ts +1 -0
- package/metadata-sh-parachain.json +5 -0
- package/metadata-sh-solochain-evm.json +5 -0
- package/package.json +41 -26
- package/scripts/scrapeMetadata.ts +41 -29
- package/src/parachain/index.ts +3 -0
- package/src/{interfaces → parachain/interfaces}/augment-api-consts.ts +147 -20
- package/src/{interfaces → parachain/interfaces}/augment-api-errors.ts +235 -8
- package/src/{interfaces → parachain/interfaces}/augment-api-events.ts +527 -137
- package/src/{interfaces → parachain/interfaces}/augment-api-query.ts +272 -145
- package/src/{interfaces → parachain/interfaces}/augment-api-rpc.ts +123 -5
- package/src/{interfaces → parachain/interfaces}/augment-api-runtime.ts +183 -8
- package/src/{interfaces → parachain/interfaces}/augment-api-tx.ts +374 -182
- package/src/{interfaces → parachain/interfaces}/augment-types.ts +278 -12
- package/src/parachain/interfaces/definitions.ts +1 -0
- package/src/{interfaces → parachain/interfaces}/lookup.ts +1497 -813
- package/src/{interfaces → parachain/interfaces}/registry.ts +176 -98
- package/src/parachain/interfaces/storagehubclient/definitions.ts +7 -0
- package/src/{interfaces → parachain/interfaces}/storagehubclient/types.ts +158 -18
- package/src/{interfaces → parachain/interfaces}/types-lookup.ts +1970 -896
- package/src/solochain-evm/index.ts +3 -0
- package/src/solochain-evm/interfaces/augment-api-consts.ts +655 -0
- package/src/solochain-evm/interfaces/augment-api-errors.ts +1268 -0
- package/src/solochain-evm/interfaces/augment-api-events.ts +1813 -0
- package/src/solochain-evm/interfaces/augment-api-query.ts +1838 -0
- package/src/solochain-evm/interfaces/augment-api-rpc.ts +1319 -0
- package/src/solochain-evm/interfaces/augment-api-runtime.ts +958 -0
- package/src/solochain-evm/interfaces/augment-api-tx.ts +2818 -0
- package/src/solochain-evm/interfaces/augment-api.ts +10 -0
- package/src/solochain-evm/interfaces/augment-types.ts +2774 -0
- package/src/solochain-evm/interfaces/definitions.ts +1 -0
- package/src/solochain-evm/interfaces/index.ts +4 -0
- package/src/solochain-evm/interfaces/lookup.ts +3788 -0
- package/src/solochain-evm/interfaces/registry.ts +506 -0
- package/src/solochain-evm/interfaces/storagehubclient/definitions.ts +7 -0
- package/src/solochain-evm/interfaces/storagehubclient/index.ts +4 -0
- package/src/solochain-evm/interfaces/storagehubclient/types.ts +391 -0
- package/src/solochain-evm/interfaces/types-lookup.ts +4616 -0
- package/src/solochain-evm/interfaces/types.ts +4 -0
- package/tsconfig.json +17 -20
- package/tsconfig.parachain.json +17 -0
- package/tsconfig.solochain-evm.json +17 -0
- package/tsconfig.tsbuildinfo +1 -0
- package/dist/index.js.map +0 -1
- package/dist/interfaces/augment-api-consts.js.map +0 -1
- package/dist/interfaces/augment-api-errors.js.map +0 -1
- package/dist/interfaces/augment-api-events.js.map +0 -1
- package/dist/interfaces/augment-api-query.js.map +0 -1
- package/dist/interfaces/augment-api-rpc.js.map +0 -1
- package/dist/interfaces/augment-api-runtime.js.map +0 -1
- package/dist/interfaces/augment-api-tx.js.map +0 -1
- package/dist/interfaces/augment-api.js.map +0 -1
- package/dist/interfaces/augment-types.js.map +0 -1
- package/dist/interfaces/definitions.js.map +0 -1
- package/dist/interfaces/index.js.map +0 -1
- package/dist/interfaces/lookup.js.map +0 -1
- package/dist/interfaces/registry.js.map +0 -1
- package/dist/interfaces/storagehubclient/definitions.js +0 -7
- package/dist/interfaces/storagehubclient/definitions.js.map +0 -1
- package/dist/interfaces/storagehubclient/index.js.map +0 -1
- package/dist/interfaces/storagehubclient/runtime.js.map +0 -1
- package/dist/interfaces/storagehubclient/types.js.map +0 -1
- package/dist/interfaces/types-lookup.js.map +0 -1
- package/dist/interfaces/types.js.map +0 -1
- package/dist/types/interfaces/registry.d.ts +0 -272
- package/src/interfaces/storagehubclient/definitions.ts +0 -7
- package/storagehub.json +0 -1
- /package/dist/{index.js → parachain/index.js} +0 -0
- /package/dist/{interfaces → parachain/interfaces}/augment-api-consts.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/augment-api-errors.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/augment-api-events.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/augment-api-query.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/augment-api-rpc.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/augment-api-runtime.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/augment-api-tx.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/augment-api.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/augment-types.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/definitions.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/index.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/registry.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/storagehubclient/index.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/storagehubclient/runtime.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/storagehubclient/types.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/types-lookup.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/types.js +0 -0
- /package/dist/types/{index.d.ts → parachain/index.d.ts} +0 -0
- /package/dist/types/{interfaces → parachain/interfaces}/augment-api.d.ts +0 -0
- /package/dist/types/{interfaces → parachain/interfaces}/definitions.d.ts +0 -0
- /package/dist/types/{interfaces → parachain/interfaces}/index.d.ts +0 -0
- /package/dist/types/{interfaces → parachain/interfaces}/storagehubclient/definitions.d.ts +0 -0
- /package/dist/types/{interfaces → parachain/interfaces}/storagehubclient/index.d.ts +0 -0
- /package/dist/types/{interfaces → parachain/interfaces}/storagehubclient/runtime.d.ts +0 -0
- /package/dist/types/{interfaces → parachain/interfaces}/types.d.ts +0 -0
- /package/{src/index.ts → dist/types/solochain-evm/index.d.ts} +0 -0
- /package/{src/interfaces/definitions.ts → dist/types/solochain-evm/interfaces/definitions.d.ts} +0 -0
- /package/src/{interfaces → parachain/interfaces}/augment-api.ts +0 -0
- /package/src/{interfaces → parachain/interfaces}/index.ts +0 -0
- /package/src/{interfaces → parachain/interfaces}/storagehubclient/index.ts +0 -0
- /package/src/{interfaces → parachain/interfaces}/storagehubclient/runtime.ts +0 -0
- /package/src/{interfaces → parachain/interfaces}/types.ts +0 -0
|
@@ -0,0 +1,641 @@
|
|
|
1
|
+
import "@polkadot/api-base/types/consts";
|
|
2
|
+
import type { ApiTypes, AugmentedConst } from "@polkadot/api-base/types";
|
|
3
|
+
import type { u128, u16, u32, u64, u8 } from "@polkadot/types-codec";
|
|
4
|
+
import type { Codec } from "@polkadot/types-codec/types";
|
|
5
|
+
import type { AccountId20, H256, Perbill } from "@polkadot/types/interfaces/runtime";
|
|
6
|
+
import type { FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight } from "@polkadot/types/lookup";
|
|
7
|
+
export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
|
|
8
|
+
declare module "@polkadot/api-base/types/consts" {
|
|
9
|
+
interface AugmentedConsts<ApiType extends ApiTypes> {
|
|
10
|
+
babe: {
|
|
11
|
+
/**
|
|
12
|
+
* The amount of time, in slots, that each epoch should last.
|
|
13
|
+
* NOTE: Currently it is not possible to change the epoch duration after
|
|
14
|
+
* the chain has started. Attempting to do so will brick block production.
|
|
15
|
+
**/
|
|
16
|
+
epochDuration: u64 & AugmentedConst<ApiType>;
|
|
17
|
+
/**
|
|
18
|
+
* The expected average block time at which BABE should be creating
|
|
19
|
+
* blocks. Since BABE is probabilistic it is not trivial to figure out
|
|
20
|
+
* what the expected average block time should be based on the slot
|
|
21
|
+
* duration and the security parameter `c` (where `1 - c` represents
|
|
22
|
+
* the probability of a slot being empty).
|
|
23
|
+
**/
|
|
24
|
+
expectedBlockTime: u64 & AugmentedConst<ApiType>;
|
|
25
|
+
/**
|
|
26
|
+
* Max number of authorities allowed
|
|
27
|
+
**/
|
|
28
|
+
maxAuthorities: u32 & AugmentedConst<ApiType>;
|
|
29
|
+
/**
|
|
30
|
+
* The maximum number of nominators for each validator.
|
|
31
|
+
**/
|
|
32
|
+
maxNominators: u32 & AugmentedConst<ApiType>;
|
|
33
|
+
/**
|
|
34
|
+
* Generic const
|
|
35
|
+
**/
|
|
36
|
+
[key: string]: Codec;
|
|
37
|
+
};
|
|
38
|
+
balances: {
|
|
39
|
+
/**
|
|
40
|
+
* The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO!
|
|
41
|
+
*
|
|
42
|
+
* If you *really* need it to be zero, you can enable the feature `insecure_zero_ed` for
|
|
43
|
+
* this pallet. However, you do so at your own risk: this will open up a major DoS vector.
|
|
44
|
+
* In case you have multiple sources of provider references, you may also get unexpected
|
|
45
|
+
* behaviour if you set this to zero.
|
|
46
|
+
*
|
|
47
|
+
* Bottom line: Do yourself a favour and make it at least one!
|
|
48
|
+
**/
|
|
49
|
+
existentialDeposit: u128 & AugmentedConst<ApiType>;
|
|
50
|
+
/**
|
|
51
|
+
* The maximum number of individual freeze locks that can exist on an account at any time.
|
|
52
|
+
**/
|
|
53
|
+
maxFreezes: u32 & AugmentedConst<ApiType>;
|
|
54
|
+
/**
|
|
55
|
+
* The maximum number of locks that should exist on an account.
|
|
56
|
+
* Not strictly enforced, but used for weight estimation.
|
|
57
|
+
*
|
|
58
|
+
* Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
|
|
59
|
+
**/
|
|
60
|
+
maxLocks: u32 & AugmentedConst<ApiType>;
|
|
61
|
+
/**
|
|
62
|
+
* The maximum number of named reserves that can exist on an account.
|
|
63
|
+
*
|
|
64
|
+
* Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
|
|
65
|
+
**/
|
|
66
|
+
maxReserves: u32 & AugmentedConst<ApiType>;
|
|
67
|
+
/**
|
|
68
|
+
* Generic const
|
|
69
|
+
**/
|
|
70
|
+
[key: string]: Codec;
|
|
71
|
+
};
|
|
72
|
+
fileSystem: {
|
|
73
|
+
/**
|
|
74
|
+
* Base deposit held from the User when creating a new storage request. The actual deposit held is this amount
|
|
75
|
+
* plus the amount required to pay for all BSP's `bsp_volunteer` extrinsic.
|
|
76
|
+
**/
|
|
77
|
+
baseStorageRequestCreationDeposit: u128 & AugmentedConst<ApiType>;
|
|
78
|
+
/**
|
|
79
|
+
* Basic security replication target for a new storage request.
|
|
80
|
+
*
|
|
81
|
+
* This should be high enough so that it gives users a ~1% chance of their file
|
|
82
|
+
* being controlled by a single malicious entity under certain network conditions.
|
|
83
|
+
*
|
|
84
|
+
* For more details, see [crate::types::ReplicationTarget].
|
|
85
|
+
**/
|
|
86
|
+
basicReplicationTarget: u32 & AugmentedConst<ApiType>;
|
|
87
|
+
/**
|
|
88
|
+
* Penalty paid by a BSP when they forcefully stop storing a file.
|
|
89
|
+
**/
|
|
90
|
+
bspStopStoringFilePenalty: u128 & AugmentedConst<ApiType>;
|
|
91
|
+
/**
|
|
92
|
+
* The deposit paid by a user to create a new file deletion request.
|
|
93
|
+
*
|
|
94
|
+
* This deposit gets returned to the user when the MSP submits an inclusion proof of the file to
|
|
95
|
+
* confirm its deletion, but gets sent to the MSP if the MSP did not actually had the file and
|
|
96
|
+
* sends a non-inclusion proof instead. This is done to prevent users being able to spam MSPs
|
|
97
|
+
* with malicious file deletion requests.
|
|
98
|
+
**/
|
|
99
|
+
fileDeletionRequestDeposit: u128 & AugmentedConst<ApiType>;
|
|
100
|
+
/**
|
|
101
|
+
* High security replication target for a new storage request.
|
|
102
|
+
*
|
|
103
|
+
* This should be high enough so that it gives users a ~0.01% chance of their file
|
|
104
|
+
* being controlled by a single malicious entity under certain network conditions.
|
|
105
|
+
*
|
|
106
|
+
* For more details, see [crate::types::ReplicationTarget].
|
|
107
|
+
**/
|
|
108
|
+
highSecurityReplicationTarget: u32 & AugmentedConst<ApiType>;
|
|
109
|
+
/**
|
|
110
|
+
* Maximum batch of storage requests that can be confirmed at once when calling `bsp_confirm_storing`.
|
|
111
|
+
**/
|
|
112
|
+
maxBatchConfirmStorageRequests: u32 & AugmentedConst<ApiType>;
|
|
113
|
+
/**
|
|
114
|
+
* Maximum number of multiaddresses for a storage request.
|
|
115
|
+
**/
|
|
116
|
+
maxDataServerMultiAddresses: u32 & AugmentedConst<ApiType>;
|
|
117
|
+
/**
|
|
118
|
+
* Maximum number of expired items (per type) to clean up in a single tick.
|
|
119
|
+
**/
|
|
120
|
+
maxExpiredItemsInTick: u32 & AugmentedConst<ApiType>;
|
|
121
|
+
/**
|
|
122
|
+
* Maximum byte size of a file path.
|
|
123
|
+
**/
|
|
124
|
+
maxFilePathSize: u32 & AugmentedConst<ApiType>;
|
|
125
|
+
/**
|
|
126
|
+
* Maximum number of peer ids for a storage request.
|
|
127
|
+
**/
|
|
128
|
+
maxNumberOfPeerIds: u32 & AugmentedConst<ApiType>;
|
|
129
|
+
/**
|
|
130
|
+
* Maximum byte size of a peer id.
|
|
131
|
+
**/
|
|
132
|
+
maxPeerIdSize: u32 & AugmentedConst<ApiType>;
|
|
133
|
+
/**
|
|
134
|
+
* Maximum replication target that a user can select for a new storage request.
|
|
135
|
+
**/
|
|
136
|
+
maxReplicationTarget: u32 & AugmentedConst<ApiType>;
|
|
137
|
+
/**
|
|
138
|
+
* Maximum number of file deletion requests a user can have pending.
|
|
139
|
+
**/
|
|
140
|
+
maxUserPendingDeletionRequests: u32 & AugmentedConst<ApiType>;
|
|
141
|
+
/**
|
|
142
|
+
* Maximum number of move bucket requests a user can have pending.
|
|
143
|
+
**/
|
|
144
|
+
maxUserPendingMoveBucketRequests: u32 & AugmentedConst<ApiType>;
|
|
145
|
+
/**
|
|
146
|
+
* Number of ticks required to pass between a BSP requesting to stop storing a file and it being able to confirm to stop storing it.
|
|
147
|
+
**/
|
|
148
|
+
minWaitForStopStoring: u32 & AugmentedConst<ApiType>;
|
|
149
|
+
/**
|
|
150
|
+
* Time-to-live for a move bucket request, after which the request is considered expired.
|
|
151
|
+
**/
|
|
152
|
+
moveBucketRequestTtl: u32 & AugmentedConst<ApiType>;
|
|
153
|
+
/**
|
|
154
|
+
* Standard security replication target for a new storage request.
|
|
155
|
+
*
|
|
156
|
+
* This should be high enough so that it gives users a ~0.1% chance of their file
|
|
157
|
+
* being controlled by a single malicious entity under certain network conditions.
|
|
158
|
+
*
|
|
159
|
+
* For more details, see [crate::types::ReplicationTarget].
|
|
160
|
+
**/
|
|
161
|
+
standardReplicationTarget: u32 & AugmentedConst<ApiType>;
|
|
162
|
+
/**
|
|
163
|
+
* Time-to-live for a storage request.
|
|
164
|
+
**/
|
|
165
|
+
storageRequestTtl: u32 & AugmentedConst<ApiType>;
|
|
166
|
+
/**
|
|
167
|
+
* Super high security replication target for a new storage request.
|
|
168
|
+
*
|
|
169
|
+
* This should be high enough so that it gives users a ~0.001% chance of their file
|
|
170
|
+
* being controlled by a single malicious entity under certain network conditions.
|
|
171
|
+
*
|
|
172
|
+
* For more details, see [crate::types::ReplicationTarget].
|
|
173
|
+
**/
|
|
174
|
+
superHighSecurityReplicationTarget: u32 & AugmentedConst<ApiType>;
|
|
175
|
+
/**
|
|
176
|
+
* The amount of ticks that have to pass for the threshold to volunteer for a specific storage request
|
|
177
|
+
* to arrive at its maximum value.
|
|
178
|
+
**/
|
|
179
|
+
tickRangeToMaximumThreshold: u32 & AugmentedConst<ApiType>;
|
|
180
|
+
/**
|
|
181
|
+
* The treasury account of the runtime, where a fraction of each payment goes.
|
|
182
|
+
**/
|
|
183
|
+
treasuryAccount: AccountId20 & AugmentedConst<ApiType>;
|
|
184
|
+
/**
|
|
185
|
+
* Ultra high security replication target for a new storage request.
|
|
186
|
+
*
|
|
187
|
+
* This should be high enough so that it gives users a ~0.0001% chance of their file
|
|
188
|
+
* being controlled by a single malicious entity under certain network conditions.
|
|
189
|
+
*
|
|
190
|
+
* For more details, see [crate::types::ReplicationTarget].
|
|
191
|
+
**/
|
|
192
|
+
ultraHighSecurityReplicationTarget: u32 & AugmentedConst<ApiType>;
|
|
193
|
+
/**
|
|
194
|
+
* The amount of ticks that the user has to pay upfront when issuing a storage request.
|
|
195
|
+
*
|
|
196
|
+
* This is to compensate the system load that the process of file retrieval will have on the network.
|
|
197
|
+
* If this did not exist, a malicious user could spam the network with huge files, making BSPs change
|
|
198
|
+
* their capacity and download a lot of data while the user might not even have the balance to
|
|
199
|
+
* store and pay those BSPs in the long term.
|
|
200
|
+
*
|
|
201
|
+
* It initially exists as a deterrent, since these funds will be transferred to the treasury and not to the BSPs
|
|
202
|
+
* of the network. Governance can then decide what to do with these funds.
|
|
203
|
+
*
|
|
204
|
+
* The amount that the user is going to have to pay is calculated as follows:
|
|
205
|
+
* `Replication Target Chosen * PricePerGigaUnitPerTick * File Size in Gigabytes * UpfrontTicksToPay`
|
|
206
|
+
**/
|
|
207
|
+
upfrontTicksToPay: u32 & AugmentedConst<ApiType>;
|
|
208
|
+
/**
|
|
209
|
+
* Generic const
|
|
210
|
+
**/
|
|
211
|
+
[key: string]: Codec;
|
|
212
|
+
};
|
|
213
|
+
grandpa: {
|
|
214
|
+
/**
|
|
215
|
+
* Max Authorities in use
|
|
216
|
+
**/
|
|
217
|
+
maxAuthorities: u32 & AugmentedConst<ApiType>;
|
|
218
|
+
/**
|
|
219
|
+
* The maximum number of nominators for each validator.
|
|
220
|
+
**/
|
|
221
|
+
maxNominators: u32 & AugmentedConst<ApiType>;
|
|
222
|
+
/**
|
|
223
|
+
* The maximum number of entries to keep in the set id to session index mapping.
|
|
224
|
+
*
|
|
225
|
+
* Since the `SetIdSession` map is only used for validating equivocations this
|
|
226
|
+
* value should relate to the bonding duration of whatever staking system is
|
|
227
|
+
* being used (if any). If equivocation handling is not enabled then this value
|
|
228
|
+
* can be zero.
|
|
229
|
+
**/
|
|
230
|
+
maxSetIdSessionEntries: u64 & AugmentedConst<ApiType>;
|
|
231
|
+
/**
|
|
232
|
+
* Generic const
|
|
233
|
+
**/
|
|
234
|
+
[key: string]: Codec;
|
|
235
|
+
};
|
|
236
|
+
nfts: {
|
|
237
|
+
/**
|
|
238
|
+
* The maximum approvals an item could have.
|
|
239
|
+
**/
|
|
240
|
+
approvalsLimit: u32 & AugmentedConst<ApiType>;
|
|
241
|
+
/**
|
|
242
|
+
* The basic amount of funds that must be reserved when adding an attribute to an item.
|
|
243
|
+
**/
|
|
244
|
+
attributeDepositBase: u128 & AugmentedConst<ApiType>;
|
|
245
|
+
/**
|
|
246
|
+
* The basic amount of funds that must be reserved for collection.
|
|
247
|
+
**/
|
|
248
|
+
collectionDeposit: u128 & AugmentedConst<ApiType>;
|
|
249
|
+
/**
|
|
250
|
+
* The additional funds that must be reserved for the number of bytes store in metadata,
|
|
251
|
+
* either "normal" metadata or attribute metadata.
|
|
252
|
+
**/
|
|
253
|
+
depositPerByte: u128 & AugmentedConst<ApiType>;
|
|
254
|
+
/**
|
|
255
|
+
* Disables some of pallet's features.
|
|
256
|
+
**/
|
|
257
|
+
features: u64 & AugmentedConst<ApiType>;
|
|
258
|
+
/**
|
|
259
|
+
* The maximum attributes approvals an item could have.
|
|
260
|
+
**/
|
|
261
|
+
itemAttributesApprovalsLimit: u32 & AugmentedConst<ApiType>;
|
|
262
|
+
/**
|
|
263
|
+
* The basic amount of funds that must be reserved for an item.
|
|
264
|
+
**/
|
|
265
|
+
itemDeposit: u128 & AugmentedConst<ApiType>;
|
|
266
|
+
/**
|
|
267
|
+
* The maximum length of an attribute key.
|
|
268
|
+
**/
|
|
269
|
+
keyLimit: u32 & AugmentedConst<ApiType>;
|
|
270
|
+
/**
|
|
271
|
+
* The max number of attributes a user could set per call.
|
|
272
|
+
**/
|
|
273
|
+
maxAttributesPerCall: u32 & AugmentedConst<ApiType>;
|
|
274
|
+
/**
|
|
275
|
+
* The max duration in blocks for deadlines.
|
|
276
|
+
**/
|
|
277
|
+
maxDeadlineDuration: u32 & AugmentedConst<ApiType>;
|
|
278
|
+
/**
|
|
279
|
+
* The max number of tips a user could send.
|
|
280
|
+
**/
|
|
281
|
+
maxTips: u32 & AugmentedConst<ApiType>;
|
|
282
|
+
/**
|
|
283
|
+
* The basic amount of funds that must be reserved when adding metadata to your item.
|
|
284
|
+
**/
|
|
285
|
+
metadataDepositBase: u128 & AugmentedConst<ApiType>;
|
|
286
|
+
/**
|
|
287
|
+
* The maximum length of data stored on-chain.
|
|
288
|
+
**/
|
|
289
|
+
stringLimit: u32 & AugmentedConst<ApiType>;
|
|
290
|
+
/**
|
|
291
|
+
* The maximum length of an attribute value.
|
|
292
|
+
**/
|
|
293
|
+
valueLimit: u32 & AugmentedConst<ApiType>;
|
|
294
|
+
/**
|
|
295
|
+
* Generic const
|
|
296
|
+
**/
|
|
297
|
+
[key: string]: Codec;
|
|
298
|
+
};
|
|
299
|
+
paymentStreams: {
|
|
300
|
+
/**
|
|
301
|
+
* The base deposit for a new payment stream. The actual deposit will be this constant + the deposit calculated using the `NewStreamDeposit` constant.
|
|
302
|
+
**/
|
|
303
|
+
baseDeposit: u128 & AugmentedConst<ApiType>;
|
|
304
|
+
/**
|
|
305
|
+
* The maximum amount of Users that a Provider can charge in a single extrinsic execution.
|
|
306
|
+
* This is used to prevent a Provider from charging too many Users in a single block, which could lead to a DoS attack.
|
|
307
|
+
**/
|
|
308
|
+
maxUsersToCharge: u32 & AugmentedConst<ApiType>;
|
|
309
|
+
/**
|
|
310
|
+
* The number of ticks that correspond to the deposit that a User has to pay to open a payment stream.
|
|
311
|
+
* This means that, from the balance of the User for which the payment stream is being created, the amount
|
|
312
|
+
* `NewStreamDeposit * rate + BaseDeposit` will be held as a deposit.
|
|
313
|
+
* In the case of dynamic-rate payment streams, `rate` will be `amount_provided_in_giga_units * price_per_giga_unit_per_tick`, where `price_per_giga_unit_per_tick` is
|
|
314
|
+
* obtained from the `CurrentPricePerGigaUnitPerTick` storage.
|
|
315
|
+
**/
|
|
316
|
+
newStreamDeposit: u32 & AugmentedConst<ApiType>;
|
|
317
|
+
/**
|
|
318
|
+
* The treasury account of the runtime, where a fraction of each payment goes.
|
|
319
|
+
**/
|
|
320
|
+
treasuryAccount: AccountId20 & AugmentedConst<ApiType>;
|
|
321
|
+
/**
|
|
322
|
+
* The number of ticks that a user will have to wait after it has been flagged as without funds to be able to clear that flag
|
|
323
|
+
* and be able to pay for services again. If there's any outstanding debt when the flag is cleared, it will be paid.
|
|
324
|
+
**/
|
|
325
|
+
userWithoutFundsCooldown: u32 & AugmentedConst<ApiType>;
|
|
326
|
+
/**
|
|
327
|
+
* Generic const
|
|
328
|
+
**/
|
|
329
|
+
[key: string]: Codec;
|
|
330
|
+
};
|
|
331
|
+
proofsDealer: {
|
|
332
|
+
/**
|
|
333
|
+
* The minimum unused weight that a block must have to be considered _not_ full.
|
|
334
|
+
*
|
|
335
|
+
* This is used as part of the criteria for checking if the network is presumably under a spam attack.
|
|
336
|
+
* For example, this can be set to the benchmarked weight of a `submit_proof` extrinsic, which would
|
|
337
|
+
* mean that a block is not considered full if a `submit_proof` extrinsic could have still fit in it.
|
|
338
|
+
**/
|
|
339
|
+
blockFullnessHeadroom: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
|
|
340
|
+
/**
|
|
341
|
+
* The period of blocks for which the block fullness is checked.
|
|
342
|
+
*
|
|
343
|
+
* This is the amount of blocks from the past, for which the block fullness has been checked
|
|
344
|
+
* and is stored. Blocks older than `current_block` - [`Config::BlockFullnessPeriod`] are
|
|
345
|
+
* cleared from storage.
|
|
346
|
+
*
|
|
347
|
+
* This constant should be equal or smaller than the [`Config::ChallengeTicksTolerance`] constant,
|
|
348
|
+
* if the goal is to prevent spamming attacks that would prevent honest Providers from submitting
|
|
349
|
+
* their proofs in time.
|
|
350
|
+
**/
|
|
351
|
+
blockFullnessPeriod: u32 & AugmentedConst<ApiType>;
|
|
352
|
+
/**
|
|
353
|
+
* The number of ticks that challenges history is kept for.
|
|
354
|
+
* After this many ticks, challenges are removed from [`TickToChallengesSeed`] StorageMap.
|
|
355
|
+
* A "tick" is usually one block, but some blocks may be skipped due to migrations.
|
|
356
|
+
**/
|
|
357
|
+
challengeHistoryLength: u32 & AugmentedConst<ApiType>;
|
|
358
|
+
/**
|
|
359
|
+
* The fee charged for submitting a challenge.
|
|
360
|
+
* This fee goes to the Treasury, and is used to prevent spam. Registered Providers are
|
|
361
|
+
* exempt from this fee.
|
|
362
|
+
**/
|
|
363
|
+
challengesFee: u128 & AugmentedConst<ApiType>;
|
|
364
|
+
/**
|
|
365
|
+
* The length of the `ChallengesQueue` StorageValue.
|
|
366
|
+
* This is to limit the size of the queue, and therefore the number of
|
|
367
|
+
* manual challenges that can be made.
|
|
368
|
+
**/
|
|
369
|
+
challengesQueueLength: u32 & AugmentedConst<ApiType>;
|
|
370
|
+
/**
|
|
371
|
+
* The tolerance in number of ticks (almost equivalent to blocks, but skipping MBM) that
|
|
372
|
+
* a Provider has to submit a proof, counting from the tick the challenge is emitted for
|
|
373
|
+
* that Provider.
|
|
374
|
+
*
|
|
375
|
+
* For example, if a Provider is supposed to submit a proof for tick `n`, and the tolerance
|
|
376
|
+
* is set to `t`, then the Provider has to submit a proof for challenges in tick `n`, before
|
|
377
|
+
* `n + t`.
|
|
378
|
+
**/
|
|
379
|
+
challengeTicksTolerance: u32 & AugmentedConst<ApiType>;
|
|
380
|
+
/**
|
|
381
|
+
* The number of blocks in between a checkpoint challenges round (i.e. with custom challenges).
|
|
382
|
+
* This is used to determine when to include the challenges from the `ChallengesQueue` and
|
|
383
|
+
* `PriorityChallengesQueue` in the `BlockToChallenges` StorageMap. These checkpoint challenge
|
|
384
|
+
* rounds have to be answered by ALL Providers, and this is enforced by the `submit_proof`
|
|
385
|
+
* extrinsic.
|
|
386
|
+
*
|
|
387
|
+
* WARNING: This period needs to be equal or larger than the challenge period of the smallest
|
|
388
|
+
* Provider in the network. If the smallest Provider has a challenge period of 10 ticks (blocks),
|
|
389
|
+
* then the checkpoint challenge period needs to be at least 10 ticks.
|
|
390
|
+
**/
|
|
391
|
+
checkpointChallengePeriod: u32 & AugmentedConst<ApiType>;
|
|
392
|
+
/**
|
|
393
|
+
* The maximum number of custom challenges that can be made in a single checkpoint block.
|
|
394
|
+
**/
|
|
395
|
+
maxCustomChallengesPerBlock: u32 & AugmentedConst<ApiType>;
|
|
396
|
+
/**
|
|
397
|
+
* The maximum number of Providers that can be slashed per tick.
|
|
398
|
+
*
|
|
399
|
+
* Providers are marked as slashable if they are found in the [`TickToProvidersDeadlines`] StorageMap
|
|
400
|
+
* for the current challenges tick. It is expected that most of the times, there will be little to
|
|
401
|
+
* no Providers in the [`TickToProvidersDeadlines`] StorageMap for the current challenges tick. That
|
|
402
|
+
* is because Providers are expected to submit proofs in time. However, in the extreme scenario where
|
|
403
|
+
* a large number of Providers are missing the proof submissions, this configuration is used to keep
|
|
404
|
+
* the execution of the `on_poll` hook bounded.
|
|
405
|
+
**/
|
|
406
|
+
maxSlashableProvidersPerTick: u32 & AugmentedConst<ApiType>;
|
|
407
|
+
/**
|
|
408
|
+
* The maximum amount of Providers that can submit a proof in a single block.
|
|
409
|
+
* Although this can be seen as an arbitrary limit, if set to the already existing
|
|
410
|
+
* implicit limit that is "how many `submit_proof` extrinsics fit in the weight of
|
|
411
|
+
* a block, this wouldn't add any additional artificial limit.
|
|
412
|
+
**/
|
|
413
|
+
maxSubmittersPerTick: u32 & AugmentedConst<ApiType>;
|
|
414
|
+
/**
|
|
415
|
+
* The minimum period in which a Provider can be challenged, regardless of their stake.
|
|
416
|
+
**/
|
|
417
|
+
minChallengePeriod: u32 & AugmentedConst<ApiType>;
|
|
418
|
+
/**
|
|
419
|
+
* The minimum ratio (or percentage if you will) of blocks that must be considered _not_ full,
|
|
420
|
+
* from the total number of [`Config::BlockFullnessPeriod`] blocks taken into account.
|
|
421
|
+
*
|
|
422
|
+
* If less than this percentage of blocks are not full, the networks is considered to be presumably
|
|
423
|
+
* under a spam attack.
|
|
424
|
+
* This can also be thought of as the maximum ratio of misbehaving collators tolerated. For example,
|
|
425
|
+
* if this is set to `Perbill::from_percent(50)`, then if more than half of the last [`Config::BlockFullnessPeriod`]
|
|
426
|
+
* blocks are not full, then one of those blocks surely was produced by an honest collator, meaning
|
|
427
|
+
* that there was at least one truly _not_ full block in the last [`Config::BlockFullnessPeriod`] blocks.
|
|
428
|
+
**/
|
|
429
|
+
minNotFullBlocksRatio: Perbill & AugmentedConst<ApiType>;
|
|
430
|
+
/**
|
|
431
|
+
* The fee charged for submitting a priority challenge.
|
|
432
|
+
* This fee goes to the Treasury, and is used to prevent spam.
|
|
433
|
+
**/
|
|
434
|
+
priorityChallengesFee: u128 & AugmentedConst<ApiType>;
|
|
435
|
+
/**
|
|
436
|
+
* The number of random challenges that are generated per block, using the random seed
|
|
437
|
+
* generated for that block.
|
|
438
|
+
**/
|
|
439
|
+
randomChallengesPerBlock: u32 & AugmentedConst<ApiType>;
|
|
440
|
+
/**
|
|
441
|
+
* The ratio to convert staked balance to block period.
|
|
442
|
+
* This is used to determine the period in which a Provider should submit a proof, based on
|
|
443
|
+
* their stake. The period is calculated as `StakeToChallengePeriod / stake`, saturating at [`Config::MinChallengePeriod`].
|
|
444
|
+
**/
|
|
445
|
+
stakeToChallengePeriod: u128 & AugmentedConst<ApiType>;
|
|
446
|
+
/**
|
|
447
|
+
* The target number of ticks for which to store the submitters that submitted valid proofs in them,
|
|
448
|
+
* stored in the `ValidProofSubmittersLastTicks` StorageMap. That storage will be trimmed down to this number
|
|
449
|
+
* of ticks in the `on_idle` hook of this pallet, to avoid bloating the state.
|
|
450
|
+
**/
|
|
451
|
+
targetTicksStorageOfSubmitters: u32 & AugmentedConst<ApiType>;
|
|
452
|
+
/**
|
|
453
|
+
* The Treasury AccountId.
|
|
454
|
+
* The account to which:
|
|
455
|
+
* - The fees for submitting a challenge are transferred.
|
|
456
|
+
* - The slashed funds are transferred.
|
|
457
|
+
**/
|
|
458
|
+
treasury: AccountId20 & AugmentedConst<ApiType>;
|
|
459
|
+
/**
|
|
460
|
+
* Generic const
|
|
461
|
+
**/
|
|
462
|
+
[key: string]: Codec;
|
|
463
|
+
};
|
|
464
|
+
providers: {
|
|
465
|
+
/**
|
|
466
|
+
* The amount of blocks that a BSP must wait before being able to sign off, after being signed up.
|
|
467
|
+
*
|
|
468
|
+
* This is to prevent BSPs from signing up and off too quickly, thus making it harder for an attacker
|
|
469
|
+
* to suddenly have a large portion of the total number of BSPs. The reason for this, is that the
|
|
470
|
+
* attacker would have to lock up a large amount of funds for this period of time.
|
|
471
|
+
**/
|
|
472
|
+
bspSignUpLockPeriod: u32 & AugmentedConst<ApiType>;
|
|
473
|
+
/**
|
|
474
|
+
* The amount that an account has to deposit to create a bucket.
|
|
475
|
+
**/
|
|
476
|
+
bucketDeposit: u128 & AugmentedConst<ApiType>;
|
|
477
|
+
/**
|
|
478
|
+
* Type that represents the byte limit of a bucket name.
|
|
479
|
+
**/
|
|
480
|
+
bucketNameLimit: u32 & AugmentedConst<ApiType>;
|
|
481
|
+
/**
|
|
482
|
+
* The default value of the root of the Merkle Patricia Trie of the runtime
|
|
483
|
+
**/
|
|
484
|
+
defaultMerkleRoot: H256 & AugmentedConst<ApiType>;
|
|
485
|
+
/**
|
|
486
|
+
* The slope of the collateral vs storage capacity curve. In other terms, how many tokens a Storage Provider should add as collateral to increase its storage capacity in one unit of StorageDataUnit.
|
|
487
|
+
**/
|
|
488
|
+
depositPerData: u128 & AugmentedConst<ApiType>;
|
|
489
|
+
/**
|
|
490
|
+
* The maximum amount of blocks after which a sign up request expires so the randomness cannot be chosen
|
|
491
|
+
**/
|
|
492
|
+
maxBlocksForRandomness: u32 & AugmentedConst<ApiType>;
|
|
493
|
+
maxCommitmentSize: u32 & AugmentedConst<ApiType>;
|
|
494
|
+
/**
|
|
495
|
+
* Maximum number of expired items (per type) to clean up in a single block.
|
|
496
|
+
**/
|
|
497
|
+
maxExpiredItemsInBlock: u32 & AugmentedConst<ApiType>;
|
|
498
|
+
/**
|
|
499
|
+
* The estimated maximum size of an unknown file.
|
|
500
|
+
*
|
|
501
|
+
* Used primarily to slash a Storage Provider when it fails to provide a chunk of data for an unknown file size.
|
|
502
|
+
**/
|
|
503
|
+
maxFileSize: u64 & AugmentedConst<ApiType>;
|
|
504
|
+
/**
|
|
505
|
+
* The maximum amount of multiaddresses that a Storage Provider can have.
|
|
506
|
+
**/
|
|
507
|
+
maxMultiAddressAmount: u32 & AugmentedConst<ApiType>;
|
|
508
|
+
/**
|
|
509
|
+
* The maximum size of a multiaddress.
|
|
510
|
+
**/
|
|
511
|
+
maxMultiAddressSize: u32 & AugmentedConst<ApiType>;
|
|
512
|
+
/**
|
|
513
|
+
* The maximum number of protocols the MSP can support (at least within the runtime).
|
|
514
|
+
**/
|
|
515
|
+
maxProtocols: u32 & AugmentedConst<ApiType>;
|
|
516
|
+
/**
|
|
517
|
+
* The minimum amount of blocks between capacity changes for a SP
|
|
518
|
+
**/
|
|
519
|
+
minBlocksBetweenCapacityChanges: u32 & AugmentedConst<ApiType>;
|
|
520
|
+
/**
|
|
521
|
+
* Time-to-live for a provider to top up their deposit to cover a capacity deficit.
|
|
522
|
+
*
|
|
523
|
+
* This TTL is used to determine at what point to insert the expiration item in the
|
|
524
|
+
* [`ProviderTopUpExpirations`] storage which is processed in the `on_idle` hook at
|
|
525
|
+
* the time when the tick has been reached.
|
|
526
|
+
**/
|
|
527
|
+
providerTopUpTtl: u32 & AugmentedConst<ApiType>;
|
|
528
|
+
/**
|
|
529
|
+
* The slash factor deducted from a Storage Provider's deposit for every single storage proof they fail to provide.
|
|
530
|
+
**/
|
|
531
|
+
slashAmountPerMaxFileSize: u128 & AugmentedConst<ApiType>;
|
|
532
|
+
/**
|
|
533
|
+
* The amount that a BSP receives as allocation of storage capacity when it deposits SpMinDeposit.
|
|
534
|
+
**/
|
|
535
|
+
spMinCapacity: u64 & AugmentedConst<ApiType>;
|
|
536
|
+
/**
|
|
537
|
+
* The minimum amount that an account has to deposit to become a storage provider.
|
|
538
|
+
**/
|
|
539
|
+
spMinDeposit: u128 & AugmentedConst<ApiType>;
|
|
540
|
+
/**
|
|
541
|
+
* Starting reputation weight for a newly registered BSP.
|
|
542
|
+
**/
|
|
543
|
+
startingReputationWeight: u32 & AugmentedConst<ApiType>;
|
|
544
|
+
/**
|
|
545
|
+
* The Treasury AccountId.
|
|
546
|
+
* The account to which:
|
|
547
|
+
* - The fees for submitting a challenge are transferred.
|
|
548
|
+
* - The slashed funds are transferred.
|
|
549
|
+
**/
|
|
550
|
+
treasury: AccountId20 & AugmentedConst<ApiType>;
|
|
551
|
+
/**
|
|
552
|
+
* 0-size bucket fixed rate payment stream (i.e. the amount charged as a base
|
|
553
|
+
* fee for a bucket that doesn't have any files yet)
|
|
554
|
+
**/
|
|
555
|
+
zeroSizeBucketFixedRate: u128 & AugmentedConst<ApiType>;
|
|
556
|
+
/**
|
|
557
|
+
* Generic const
|
|
558
|
+
**/
|
|
559
|
+
[key: string]: Codec;
|
|
560
|
+
};
|
|
561
|
+
system: {
|
|
562
|
+
/**
|
|
563
|
+
* Maximum number of block number to block hash mappings to keep (oldest pruned first).
|
|
564
|
+
**/
|
|
565
|
+
blockHashCount: u32 & AugmentedConst<ApiType>;
|
|
566
|
+
/**
|
|
567
|
+
* The maximum length of a block (in bytes).
|
|
568
|
+
**/
|
|
569
|
+
blockLength: FrameSystemLimitsBlockLength & AugmentedConst<ApiType>;
|
|
570
|
+
/**
|
|
571
|
+
* Block & extrinsics weights: base values and limits.
|
|
572
|
+
**/
|
|
573
|
+
blockWeights: FrameSystemLimitsBlockWeights & AugmentedConst<ApiType>;
|
|
574
|
+
/**
|
|
575
|
+
* The weight of runtime database operations the runtime can invoke.
|
|
576
|
+
**/
|
|
577
|
+
dbWeight: SpWeightsRuntimeDbWeight & AugmentedConst<ApiType>;
|
|
578
|
+
/**
|
|
579
|
+
* The designated SS58 prefix of this chain.
|
|
580
|
+
*
|
|
581
|
+
* This replaces the "ss58Format" property declared in the chain spec. Reason is
|
|
582
|
+
* that the runtime should know about the prefix in order to make use of it as
|
|
583
|
+
* an identifier of the chain.
|
|
584
|
+
**/
|
|
585
|
+
ss58Prefix: u16 & AugmentedConst<ApiType>;
|
|
586
|
+
/**
|
|
587
|
+
* Get the chain's in-code version.
|
|
588
|
+
**/
|
|
589
|
+
version: SpVersionRuntimeVersion & AugmentedConst<ApiType>;
|
|
590
|
+
/**
|
|
591
|
+
* Generic const
|
|
592
|
+
**/
|
|
593
|
+
[key: string]: Codec;
|
|
594
|
+
};
|
|
595
|
+
timestamp: {
|
|
596
|
+
/**
|
|
597
|
+
* The minimum period between blocks.
|
|
598
|
+
*
|
|
599
|
+
* Be aware that this is different to the *expected* period that the block production
|
|
600
|
+
* apparatus provides. Your chosen consensus system will generally work with this to
|
|
601
|
+
* determine a sensible block time. For example, in the Aura pallet it will be double this
|
|
602
|
+
* period on default settings.
|
|
603
|
+
**/
|
|
604
|
+
minimumPeriod: u64 & AugmentedConst<ApiType>;
|
|
605
|
+
/**
|
|
606
|
+
* Generic const
|
|
607
|
+
**/
|
|
608
|
+
[key: string]: Codec;
|
|
609
|
+
};
|
|
610
|
+
transactionPayment: {
|
|
611
|
+
/**
|
|
612
|
+
* A fee multiplier for `Operational` extrinsics to compute "virtual tip" to boost their
|
|
613
|
+
* `priority`
|
|
614
|
+
*
|
|
615
|
+
* This value is multiplied by the `final_fee` to obtain a "virtual tip" that is later
|
|
616
|
+
* added to a tip component in regular `priority` calculations.
|
|
617
|
+
* It means that a `Normal` transaction can front-run a similarly-sized `Operational`
|
|
618
|
+
* extrinsic (with no tip), by including a tip value greater than the virtual tip.
|
|
619
|
+
*
|
|
620
|
+
* ```rust,ignore
|
|
621
|
+
* // For `Normal`
|
|
622
|
+
* let priority = priority_calc(tip);
|
|
623
|
+
*
|
|
624
|
+
* // For `Operational`
|
|
625
|
+
* let virtual_tip = (inclusion_fee + tip) * OperationalFeeMultiplier;
|
|
626
|
+
* let priority = priority_calc(tip + virtual_tip);
|
|
627
|
+
* ```
|
|
628
|
+
*
|
|
629
|
+
* Note that since we use `final_fee` the multiplier applies also to the regular `tip`
|
|
630
|
+
* sent with the transaction. So, not only does the transaction get a priority bump based
|
|
631
|
+
* on the `inclusion_fee`, but we also amplify the impact of tips applied to `Operational`
|
|
632
|
+
* transactions.
|
|
633
|
+
**/
|
|
634
|
+
operationalFeeMultiplier: u8 & AugmentedConst<ApiType>;
|
|
635
|
+
/**
|
|
636
|
+
* Generic const
|
|
637
|
+
**/
|
|
638
|
+
[key: string]: Codec;
|
|
639
|
+
};
|
|
640
|
+
}
|
|
641
|
+
}
|