@storagehub/api-augment 0.1.0
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/README.md +54 -0
- package/biome.json +10 -0
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -0
- package/dist/interfaces/augment-api-consts.js +6 -0
- package/dist/interfaces/augment-api-consts.js.map +1 -0
- package/dist/interfaces/augment-api-errors.js +6 -0
- package/dist/interfaces/augment-api-errors.js.map +1 -0
- package/dist/interfaces/augment-api-events.js +6 -0
- package/dist/interfaces/augment-api-events.js.map +1 -0
- package/dist/interfaces/augment-api-query.js +6 -0
- package/dist/interfaces/augment-api-query.js.map +1 -0
- package/dist/interfaces/augment-api-rpc.js +6 -0
- package/dist/interfaces/augment-api-rpc.js.map +1 -0
- package/dist/interfaces/augment-api-runtime.js +6 -0
- package/dist/interfaces/augment-api-runtime.js.map +1 -0
- package/dist/interfaces/augment-api-tx.js +6 -0
- package/dist/interfaces/augment-api-tx.js.map +1 -0
- package/dist/interfaces/augment-api.js +10 -0
- package/dist/interfaces/augment-api.js.map +1 -0
- package/dist/interfaces/augment-types.js +6 -0
- package/dist/interfaces/augment-types.js.map +1 -0
- package/dist/interfaces/definitions.js +2 -0
- package/dist/interfaces/definitions.js.map +1 -0
- package/dist/interfaces/index.js +4 -0
- package/dist/interfaces/index.js.map +1 -0
- package/dist/interfaces/lookup.js +4504 -0
- package/dist/interfaces/lookup.js.map +1 -0
- package/dist/interfaces/registry.js +6 -0
- package/dist/interfaces/registry.js.map +1 -0
- package/dist/interfaces/storagehubclient/definitions.js +7 -0
- package/dist/interfaces/storagehubclient/definitions.js.map +1 -0
- package/dist/interfaces/storagehubclient/index.js +4 -0
- package/dist/interfaces/storagehubclient/index.js.map +1 -0
- package/dist/interfaces/storagehubclient/runtime.js +152 -0
- package/dist/interfaces/storagehubclient/runtime.js.map +1 -0
- package/dist/interfaces/storagehubclient/types.js +4 -0
- package/dist/interfaces/storagehubclient/types.js.map +1 -0
- package/dist/interfaces/types-lookup.js +6 -0
- package/dist/interfaces/types-lookup.js.map +1 -0
- package/dist/interfaces/types.js +4 -0
- package/dist/interfaces/types.js.map +1 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/interfaces/augment-api-consts.d.ts +556 -0
- package/dist/types/interfaces/augment-api-errors.d.ts +1195 -0
- package/dist/types/interfaces/augment-api-events.d.ts +2070 -0
- package/dist/types/interfaces/augment-api-query.d.ts +1439 -0
- package/dist/types/interfaces/augment-api-rpc.d.ts +718 -0
- package/dist/types/interfaces/augment-api-runtime.d.ts +441 -0
- package/dist/types/interfaces/augment-api-tx.d.ts +3039 -0
- package/dist/types/interfaces/augment-api.d.ts +7 -0
- package/dist/types/interfaces/augment-types.d.ts +1285 -0
- package/dist/types/interfaces/definitions.d.ts +1 -0
- package/dist/types/interfaces/index.d.ts +1 -0
- package/dist/types/interfaces/lookup.d.ts +4179 -0
- package/dist/types/interfaces/registry.d.ts +272 -0
- package/dist/types/interfaces/storagehubclient/definitions.d.ts +6 -0
- package/dist/types/interfaces/storagehubclient/index.d.ts +1 -0
- package/dist/types/interfaces/storagehubclient/runtime.d.ts +2 -0
- package/dist/types/interfaces/storagehubclient/types.d.ts +198 -0
- package/dist/types/interfaces/types-lookup.d.ts +4457 -0
- package/dist/types/interfaces/types.d.ts +1 -0
- package/package.json +38 -0
- package/scripts/scrapeMetadata.ts +77 -0
- package/src/index.ts +3 -0
- package/src/interfaces/augment-api-consts.ts +570 -0
- package/src/interfaces/augment-api-errors.ts +1203 -0
- package/src/interfaces/augment-api-events.ts +1836 -0
- package/src/interfaces/augment-api-query.ts +1975 -0
- package/src/interfaces/augment-api-rpc.ts +1201 -0
- package/src/interfaces/augment-api-runtime.ts +707 -0
- package/src/interfaces/augment-api-tx.ts +3418 -0
- package/src/interfaces/augment-api.ts +10 -0
- package/src/interfaces/augment-types.ts +2508 -0
- package/src/interfaces/definitions.ts +1 -0
- package/src/interfaces/index.ts +4 -0
- package/src/interfaces/lookup.ts +4511 -0
- package/src/interfaces/registry.ts +546 -0
- package/src/interfaces/storagehubclient/definitions.ts +7 -0
- package/src/interfaces/storagehubclient/index.ts +4 -0
- package/src/interfaces/storagehubclient/runtime.ts +156 -0
- package/src/interfaces/storagehubclient/types.ts +241 -0
- package/src/interfaces/types-lookup.ts +5623 -0
- package/src/interfaces/types.ts +4 -0
- package/storagehub.json +1 -0
- package/tsconfig.json +22 -0
|
@@ -0,0 +1,570 @@
|
|
|
1
|
+
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
|
|
4
|
+
// import type lookup before we augment - in some environments
|
|
5
|
+
// this is required to allow for ambient/previous definitions
|
|
6
|
+
import "@polkadot/api-base/types/consts";
|
|
7
|
+
|
|
8
|
+
import type { ApiTypes, AugmentedConst } from "@polkadot/api-base/types";
|
|
9
|
+
import type { Option, u128, u16, u32, u64, u8 } from "@polkadot/types-codec";
|
|
10
|
+
import type { Codec } from "@polkadot/types-codec/types";
|
|
11
|
+
import type { AccountId32, H256, Perbill } from "@polkadot/types/interfaces/runtime";
|
|
12
|
+
import type {
|
|
13
|
+
FrameSystemLimitsBlockLength,
|
|
14
|
+
FrameSystemLimitsBlockWeights,
|
|
15
|
+
SpVersionRuntimeVersion,
|
|
16
|
+
SpWeightsRuntimeDbWeight,
|
|
17
|
+
SpWeightsWeightV2Weight
|
|
18
|
+
} from "@polkadot/types/lookup";
|
|
19
|
+
|
|
20
|
+
export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
|
|
21
|
+
|
|
22
|
+
declare module "@polkadot/api-base/types/consts" {
|
|
23
|
+
interface AugmentedConsts<ApiType extends ApiTypes> {
|
|
24
|
+
aura: {
|
|
25
|
+
/**
|
|
26
|
+
* The slot duration Aura should run with, expressed in milliseconds.
|
|
27
|
+
* The effective value of this type should not change while the chain is running.
|
|
28
|
+
*
|
|
29
|
+
* For backwards compatibility either use [`MinimumPeriodTimesTwo`] or a const.
|
|
30
|
+
**/
|
|
31
|
+
slotDuration: u64 & AugmentedConst<ApiType>;
|
|
32
|
+
/**
|
|
33
|
+
* Generic const
|
|
34
|
+
**/
|
|
35
|
+
[key: string]: Codec;
|
|
36
|
+
};
|
|
37
|
+
balances: {
|
|
38
|
+
/**
|
|
39
|
+
* The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO!
|
|
40
|
+
*
|
|
41
|
+
* If you *really* need it to be zero, you can enable the feature `insecure_zero_ed` for
|
|
42
|
+
* this pallet. However, you do so at your own risk: this will open up a major DoS vector.
|
|
43
|
+
* In case you have multiple sources of provider references, you may also get unexpected
|
|
44
|
+
* behaviour if you set this to zero.
|
|
45
|
+
*
|
|
46
|
+
* Bottom line: Do yourself a favour and make it at least one!
|
|
47
|
+
**/
|
|
48
|
+
existentialDeposit: u128 & AugmentedConst<ApiType>;
|
|
49
|
+
/**
|
|
50
|
+
* The maximum number of individual freeze locks that can exist on an account at any time.
|
|
51
|
+
**/
|
|
52
|
+
maxFreezes: u32 & AugmentedConst<ApiType>;
|
|
53
|
+
/**
|
|
54
|
+
* The maximum number of locks that should exist on an account.
|
|
55
|
+
* Not strictly enforced, but used for weight estimation.
|
|
56
|
+
*
|
|
57
|
+
* Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
|
|
58
|
+
**/
|
|
59
|
+
maxLocks: u32 & AugmentedConst<ApiType>;
|
|
60
|
+
/**
|
|
61
|
+
* The maximum number of named reserves that can exist on an account.
|
|
62
|
+
*
|
|
63
|
+
* Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
|
|
64
|
+
**/
|
|
65
|
+
maxReserves: u32 & AugmentedConst<ApiType>;
|
|
66
|
+
/**
|
|
67
|
+
* Generic const
|
|
68
|
+
**/
|
|
69
|
+
[key: string]: Codec;
|
|
70
|
+
};
|
|
71
|
+
fileSystem: {
|
|
72
|
+
/**
|
|
73
|
+
* Maximum batch of storage requests that can be confirmed at once when calling `bsp_confirm_storing`.
|
|
74
|
+
**/
|
|
75
|
+
maxBatchConfirmStorageRequests: u32 & AugmentedConst<ApiType>;
|
|
76
|
+
/**
|
|
77
|
+
* Maximum batch of storage requests that can be responded to at once when calling `msp_respond_storage_requests_multiple_buckets`.
|
|
78
|
+
**/
|
|
79
|
+
maxBatchMspRespondStorageRequests: u32 & AugmentedConst<ApiType>;
|
|
80
|
+
/**
|
|
81
|
+
* Maximum number of SPs (MSP + BSPs) that can store a file.
|
|
82
|
+
*
|
|
83
|
+
* This is used to limit the number of BSPs storing a file and claiming rewards for it.
|
|
84
|
+
* If this number is too high, then the reward for storing a file might be to diluted and pointless to store.
|
|
85
|
+
**/
|
|
86
|
+
maxBspsPerStorageRequest: u32 & AugmentedConst<ApiType>;
|
|
87
|
+
/**
|
|
88
|
+
* Maximum number of multiaddresses for a storage request.
|
|
89
|
+
**/
|
|
90
|
+
maxDataServerMultiAddresses: u32 & AugmentedConst<ApiType>;
|
|
91
|
+
/**
|
|
92
|
+
* Maximum number of expired items (per type) to clean up in a single block.
|
|
93
|
+
**/
|
|
94
|
+
maxExpiredItemsInBlock: u32 & AugmentedConst<ApiType>;
|
|
95
|
+
/**
|
|
96
|
+
* Maximum byte size of a file path.
|
|
97
|
+
**/
|
|
98
|
+
maxFilePathSize: u32 & AugmentedConst<ApiType>;
|
|
99
|
+
/**
|
|
100
|
+
* Maximum number of peer ids for a storage request.
|
|
101
|
+
**/
|
|
102
|
+
maxNumberOfPeerIds: u32 & AugmentedConst<ApiType>;
|
|
103
|
+
/**
|
|
104
|
+
* Maximum byte size of a peer id.
|
|
105
|
+
**/
|
|
106
|
+
maxPeerIdSize: u32 & AugmentedConst<ApiType>;
|
|
107
|
+
/**
|
|
108
|
+
* Maximum number of file deletion requests a user can have pending.
|
|
109
|
+
**/
|
|
110
|
+
maxUserPendingDeletionRequests: u32 & AugmentedConst<ApiType>;
|
|
111
|
+
/**
|
|
112
|
+
* Maximum number of move bucket requests a user can have pending.
|
|
113
|
+
**/
|
|
114
|
+
maxUserPendingMoveBucketRequests: u32 & AugmentedConst<ApiType>;
|
|
115
|
+
/**
|
|
116
|
+
* Number of blocks required to pass between a BSP requesting to stop storing a file and it being able to confirm to stop storing it.
|
|
117
|
+
**/
|
|
118
|
+
minWaitForStopStoring: u32 & AugmentedConst<ApiType>;
|
|
119
|
+
/**
|
|
120
|
+
* Time-to-live for a move bucket request, after which the request is considered expired.
|
|
121
|
+
**/
|
|
122
|
+
moveBucketRequestTtl: u32 & AugmentedConst<ApiType>;
|
|
123
|
+
/**
|
|
124
|
+
* Time-to-live for a pending file deletion request, after which a priority challenge is sent out to enforce the deletion.
|
|
125
|
+
**/
|
|
126
|
+
pendingFileDeletionRequestTtl: u32 & AugmentedConst<ApiType>;
|
|
127
|
+
/**
|
|
128
|
+
* Time-to-live for a storage request.
|
|
129
|
+
**/
|
|
130
|
+
storageRequestTtl: u32 & AugmentedConst<ApiType>;
|
|
131
|
+
/**
|
|
132
|
+
* Generic const
|
|
133
|
+
**/
|
|
134
|
+
[key: string]: Codec;
|
|
135
|
+
};
|
|
136
|
+
messageQueue: {
|
|
137
|
+
/**
|
|
138
|
+
* The size of the page; this implies the maximum message size which can be sent.
|
|
139
|
+
*
|
|
140
|
+
* A good value depends on the expected message sizes, their weights, the weight that is
|
|
141
|
+
* available for processing them and the maximal needed message size. The maximal message
|
|
142
|
+
* size is slightly lower than this as defined by [`MaxMessageLenOf`].
|
|
143
|
+
**/
|
|
144
|
+
heapSize: u32 & AugmentedConst<ApiType>;
|
|
145
|
+
/**
|
|
146
|
+
* The maximum amount of weight (if any) to be used from remaining weight `on_idle` which
|
|
147
|
+
* should be provided to the message queue for servicing enqueued items `on_idle`.
|
|
148
|
+
* Useful for parachains to process messages at the same block they are received.
|
|
149
|
+
*
|
|
150
|
+
* If `None`, it will not call `ServiceQueues::service_queues` in `on_idle`.
|
|
151
|
+
**/
|
|
152
|
+
idleMaxServiceWeight: Option<SpWeightsWeightV2Weight> & AugmentedConst<ApiType>;
|
|
153
|
+
/**
|
|
154
|
+
* The maximum number of stale pages (i.e. of overweight messages) allowed before culling
|
|
155
|
+
* can happen. Once there are more stale pages than this, then historical pages may be
|
|
156
|
+
* dropped, even if they contain unprocessed overweight messages.
|
|
157
|
+
**/
|
|
158
|
+
maxStale: u32 & AugmentedConst<ApiType>;
|
|
159
|
+
/**
|
|
160
|
+
* The amount of weight (if any) which should be provided to the message queue for
|
|
161
|
+
* servicing enqueued items `on_initialize`.
|
|
162
|
+
*
|
|
163
|
+
* This may be legitimately `None` in the case that you will call
|
|
164
|
+
* `ServiceQueues::service_queues` manually or set [`Self::IdleMaxServiceWeight`] to have
|
|
165
|
+
* it run in `on_idle`.
|
|
166
|
+
**/
|
|
167
|
+
serviceWeight: Option<SpWeightsWeightV2Weight> & AugmentedConst<ApiType>;
|
|
168
|
+
/**
|
|
169
|
+
* Generic const
|
|
170
|
+
**/
|
|
171
|
+
[key: string]: Codec;
|
|
172
|
+
};
|
|
173
|
+
nfts: {
|
|
174
|
+
/**
|
|
175
|
+
* The maximum approvals an item could have.
|
|
176
|
+
**/
|
|
177
|
+
approvalsLimit: u32 & AugmentedConst<ApiType>;
|
|
178
|
+
/**
|
|
179
|
+
* The basic amount of funds that must be reserved when adding an attribute to an item.
|
|
180
|
+
**/
|
|
181
|
+
attributeDepositBase: u128 & AugmentedConst<ApiType>;
|
|
182
|
+
/**
|
|
183
|
+
* The basic amount of funds that must be reserved for collection.
|
|
184
|
+
**/
|
|
185
|
+
collectionDeposit: u128 & AugmentedConst<ApiType>;
|
|
186
|
+
/**
|
|
187
|
+
* The additional funds that must be reserved for the number of bytes store in metadata,
|
|
188
|
+
* either "normal" metadata or attribute metadata.
|
|
189
|
+
**/
|
|
190
|
+
depositPerByte: u128 & AugmentedConst<ApiType>;
|
|
191
|
+
/**
|
|
192
|
+
* Disables some of pallet's features.
|
|
193
|
+
**/
|
|
194
|
+
features: u64 & AugmentedConst<ApiType>;
|
|
195
|
+
/**
|
|
196
|
+
* The maximum attributes approvals an item could have.
|
|
197
|
+
**/
|
|
198
|
+
itemAttributesApprovalsLimit: u32 & AugmentedConst<ApiType>;
|
|
199
|
+
/**
|
|
200
|
+
* The basic amount of funds that must be reserved for an item.
|
|
201
|
+
**/
|
|
202
|
+
itemDeposit: u128 & AugmentedConst<ApiType>;
|
|
203
|
+
/**
|
|
204
|
+
* The maximum length of an attribute key.
|
|
205
|
+
**/
|
|
206
|
+
keyLimit: u32 & AugmentedConst<ApiType>;
|
|
207
|
+
/**
|
|
208
|
+
* The max number of attributes a user could set per call.
|
|
209
|
+
**/
|
|
210
|
+
maxAttributesPerCall: u32 & AugmentedConst<ApiType>;
|
|
211
|
+
/**
|
|
212
|
+
* The max duration in blocks for deadlines.
|
|
213
|
+
**/
|
|
214
|
+
maxDeadlineDuration: u32 & AugmentedConst<ApiType>;
|
|
215
|
+
/**
|
|
216
|
+
* The max number of tips a user could send.
|
|
217
|
+
**/
|
|
218
|
+
maxTips: u32 & AugmentedConst<ApiType>;
|
|
219
|
+
/**
|
|
220
|
+
* The basic amount of funds that must be reserved when adding metadata to your item.
|
|
221
|
+
**/
|
|
222
|
+
metadataDepositBase: u128 & AugmentedConst<ApiType>;
|
|
223
|
+
/**
|
|
224
|
+
* The maximum length of data stored on-chain.
|
|
225
|
+
**/
|
|
226
|
+
stringLimit: u32 & AugmentedConst<ApiType>;
|
|
227
|
+
/**
|
|
228
|
+
* The maximum length of an attribute value.
|
|
229
|
+
**/
|
|
230
|
+
valueLimit: u32 & AugmentedConst<ApiType>;
|
|
231
|
+
/**
|
|
232
|
+
* Generic const
|
|
233
|
+
**/
|
|
234
|
+
[key: string]: Codec;
|
|
235
|
+
};
|
|
236
|
+
parachainSystem: {
|
|
237
|
+
/**
|
|
238
|
+
* Returns the parachain ID we are running with.
|
|
239
|
+
**/
|
|
240
|
+
selfParaId: u32 & AugmentedConst<ApiType>;
|
|
241
|
+
/**
|
|
242
|
+
* Generic const
|
|
243
|
+
**/
|
|
244
|
+
[key: string]: Codec;
|
|
245
|
+
};
|
|
246
|
+
paymentStreams: {
|
|
247
|
+
/**
|
|
248
|
+
* The number of ticks that correspond to the deposit that a User has to pay to open a payment stream.
|
|
249
|
+
* This means that, from the balance of the User for which the payment stream is being created, the amount
|
|
250
|
+
* `NewStreamDeposit * rate` will be held as a deposit.
|
|
251
|
+
* In the case of dynamic-rate payment streams, `rate` will be `amount_provided * current_service_price`, where `current_service_price` has
|
|
252
|
+
* to be provided by the pallet using the `PaymentStreamsInterface` interface.
|
|
253
|
+
**/
|
|
254
|
+
newStreamDeposit: u32 & AugmentedConst<ApiType>;
|
|
255
|
+
/**
|
|
256
|
+
* 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
|
|
257
|
+
* and be able to pay for services again. If there's any outstanding debt when the flag is cleared, it will be paid.
|
|
258
|
+
**/
|
|
259
|
+
userWithoutFundsCooldown: u32 & AugmentedConst<ApiType>;
|
|
260
|
+
/**
|
|
261
|
+
* Generic const
|
|
262
|
+
**/
|
|
263
|
+
[key: string]: Codec;
|
|
264
|
+
};
|
|
265
|
+
proofsDealer: {
|
|
266
|
+
/**
|
|
267
|
+
* The minimum unused weight that a block must have to be considered _not_ full.
|
|
268
|
+
*
|
|
269
|
+
* This is used as part of the criteria for checking if the network is presumably under a spam attack.
|
|
270
|
+
* For example, this can be set to the benchmarked weight of a `submit_proof` extrinsic, which would
|
|
271
|
+
* mean that a block is not considered full if a `submit_proof` extrinsic could have still fit in it.
|
|
272
|
+
**/
|
|
273
|
+
blockFullnessHeadroom: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
|
|
274
|
+
/**
|
|
275
|
+
* The period of blocks for which the block fullness is checked.
|
|
276
|
+
*
|
|
277
|
+
* This is the amount of blocks from the past, for which the block fullness has been checked
|
|
278
|
+
* and is stored. Blocks older than `current_block` - [`Config::BlockFullnessPeriod`] are
|
|
279
|
+
* cleared from storage.
|
|
280
|
+
*
|
|
281
|
+
* This constant should be equal or smaller than the [`Config::ChallengeTicksTolerance`] constant,
|
|
282
|
+
* if the goal is to prevent spamming attacks that would prevent honest Providers from submitting
|
|
283
|
+
* their proofs in time.
|
|
284
|
+
**/
|
|
285
|
+
blockFullnessPeriod: u32 & AugmentedConst<ApiType>;
|
|
286
|
+
/**
|
|
287
|
+
* The number of ticks that challenges history is kept for.
|
|
288
|
+
* After this many ticks, challenges are removed from [`TickToChallengesSeed`] StorageMap.
|
|
289
|
+
* A "tick" is usually one block, but some blocks may be skipped due to migrations.
|
|
290
|
+
**/
|
|
291
|
+
challengeHistoryLength: u32 & AugmentedConst<ApiType>;
|
|
292
|
+
/**
|
|
293
|
+
* The fee charged for submitting a challenge.
|
|
294
|
+
* This fee goes to the Treasury, and is used to prevent spam. Registered Providers are
|
|
295
|
+
* exempt from this fee.
|
|
296
|
+
**/
|
|
297
|
+
challengesFee: u128 & AugmentedConst<ApiType>;
|
|
298
|
+
/**
|
|
299
|
+
* The length of the `ChallengesQueue` StorageValue.
|
|
300
|
+
* This is to limit the size of the queue, and therefore the number of
|
|
301
|
+
* manual challenges that can be made.
|
|
302
|
+
**/
|
|
303
|
+
challengesQueueLength: u32 & AugmentedConst<ApiType>;
|
|
304
|
+
/**
|
|
305
|
+
* The tolerance in number of ticks (almost equivalent to blocks, but skipping MBM) that
|
|
306
|
+
* a Provider has to submit a proof, counting from the tick the challenge is emitted for
|
|
307
|
+
* that Provider.
|
|
308
|
+
*
|
|
309
|
+
* For example, if a Provider is supposed to submit a proof for tick `n`, and the tolerance
|
|
310
|
+
* is set to `t`, then the Provider has to submit a proof for challenges in tick `n`, before
|
|
311
|
+
* `n + t`.
|
|
312
|
+
**/
|
|
313
|
+
challengeTicksTolerance: u32 & AugmentedConst<ApiType>;
|
|
314
|
+
/**
|
|
315
|
+
* The number of blocks in between a checkpoint challenges round (i.e. with custom challenges).
|
|
316
|
+
* This is used to determine when to include the challenges from the `ChallengesQueue` and
|
|
317
|
+
* `PriorityChallengesQueue` in the `BlockToChallenges` StorageMap. These checkpoint challenge
|
|
318
|
+
* rounds have to be answered by ALL Providers, and this is enforced by the `submit_proof`
|
|
319
|
+
* extrinsic.
|
|
320
|
+
*
|
|
321
|
+
* WARNING: This period needs to be equal or larger than the challenge period of the smallest
|
|
322
|
+
* Provider in the network. If the smallest Provider has a challenge period of 10 ticks (blocks),
|
|
323
|
+
* then the checkpoint challenge period needs to be at least 10 ticks.
|
|
324
|
+
**/
|
|
325
|
+
checkpointChallengePeriod: u32 & AugmentedConst<ApiType>;
|
|
326
|
+
/**
|
|
327
|
+
* The maximum number of custom challenges that can be made in a single checkpoint block.
|
|
328
|
+
**/
|
|
329
|
+
maxCustomChallengesPerBlock: u32 & AugmentedConst<ApiType>;
|
|
330
|
+
/**
|
|
331
|
+
* The maximum amount of Providers that can submit a proof in a single block.
|
|
332
|
+
* Although this can be seen as an arbitrary limit, if set to the already existing
|
|
333
|
+
* implicit limit that is "how many `submit_proof` extrinsics fit in the weight of
|
|
334
|
+
* a block, this wouldn't add any additional artificial limit.
|
|
335
|
+
**/
|
|
336
|
+
maxSubmittersPerTick: u32 & AugmentedConst<ApiType>;
|
|
337
|
+
/**
|
|
338
|
+
* The minimum period in which a Provider can be challenged, regardless of their stake.
|
|
339
|
+
**/
|
|
340
|
+
minChallengePeriod: u32 & AugmentedConst<ApiType>;
|
|
341
|
+
/**
|
|
342
|
+
* The minimum ratio (or percentage if you will) of blocks that must be considered _not_ full,
|
|
343
|
+
* from the total number of [`Config::BlockFullnessPeriod`] blocks taken into account.
|
|
344
|
+
*
|
|
345
|
+
* If less than this percentage of blocks are not full, the networks is considered to be presumably
|
|
346
|
+
* under a spam attack.
|
|
347
|
+
* This can also be thought of as the maximum ratio of misbehaving collators tolerated. For example,
|
|
348
|
+
* if this is set to `Perbill::from_percent(50)`, then if more than half of the last `BlockFullnessPeriod`
|
|
349
|
+
* blocks are not full, then one of those blocks surely was produced by an honest collator, meaning
|
|
350
|
+
* that there was at least one truly _not_ full block in the last `BlockFullnessPeriod` blocks.
|
|
351
|
+
**/
|
|
352
|
+
minNotFullBlocksRatio: Perbill & AugmentedConst<ApiType>;
|
|
353
|
+
/**
|
|
354
|
+
* The number of random challenges that are generated per block, using the random seed
|
|
355
|
+
* generated for that block.
|
|
356
|
+
**/
|
|
357
|
+
randomChallengesPerBlock: u32 & AugmentedConst<ApiType>;
|
|
358
|
+
/**
|
|
359
|
+
* The ratio to convert staked balance to block period.
|
|
360
|
+
* This is used to determine the period in which a Provider should submit a proof, based on
|
|
361
|
+
* their stake. The period is calculated as `StakeToChallengePeriod / stake`, saturating at [`Config::MinChallengePeriod`].
|
|
362
|
+
**/
|
|
363
|
+
stakeToChallengePeriod: u128 & AugmentedConst<ApiType>;
|
|
364
|
+
/**
|
|
365
|
+
* The target number of ticks for which to store the submitters that submitted valid proofs in them,
|
|
366
|
+
* stored in the `ValidProofSubmittersLastTicks` StorageMap. That storage will be trimmed down to this number
|
|
367
|
+
* of ticks in the `on_idle` hook of this pallet, to avoid bloating the state.
|
|
368
|
+
**/
|
|
369
|
+
targetTicksStorageOfSubmitters: u32 & AugmentedConst<ApiType>;
|
|
370
|
+
/**
|
|
371
|
+
* The Treasury AccountId.
|
|
372
|
+
* The account to which:
|
|
373
|
+
* - The fees for submitting a challenge are transferred.
|
|
374
|
+
* - The slashed funds are transferred.
|
|
375
|
+
**/
|
|
376
|
+
treasury: AccountId32 & AugmentedConst<ApiType>;
|
|
377
|
+
/**
|
|
378
|
+
* Generic const
|
|
379
|
+
**/
|
|
380
|
+
[key: string]: Codec;
|
|
381
|
+
};
|
|
382
|
+
providers: {
|
|
383
|
+
/**
|
|
384
|
+
* The amount that an account has to deposit to create a bucket.
|
|
385
|
+
**/
|
|
386
|
+
bucketDeposit: u128 & AugmentedConst<ApiType>;
|
|
387
|
+
/**
|
|
388
|
+
* Type that represents the byte limit of a bucket name.
|
|
389
|
+
**/
|
|
390
|
+
bucketNameLimit: u32 & AugmentedConst<ApiType>;
|
|
391
|
+
/**
|
|
392
|
+
* The default value of the root of the Merkle Patricia Trie of the runtime
|
|
393
|
+
**/
|
|
394
|
+
defaultMerkleRoot: H256 & AugmentedConst<ApiType>;
|
|
395
|
+
/**
|
|
396
|
+
* 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.
|
|
397
|
+
**/
|
|
398
|
+
depositPerData: u128 & AugmentedConst<ApiType>;
|
|
399
|
+
/**
|
|
400
|
+
* The maximum amount of blocks after which a sign up request expires so the randomness cannot be chosen
|
|
401
|
+
**/
|
|
402
|
+
maxBlocksForRandomness: u32 & AugmentedConst<ApiType>;
|
|
403
|
+
/**
|
|
404
|
+
* The maximum amount of Buckets that a MSP can have.
|
|
405
|
+
**/
|
|
406
|
+
maxBuckets: u32 & AugmentedConst<ApiType>;
|
|
407
|
+
/**
|
|
408
|
+
* The estimated maximum size of an unknown file.
|
|
409
|
+
*
|
|
410
|
+
* Used primarily to slash a Storage Provider when it fails to provide a chunk of data for an unknown file size.
|
|
411
|
+
**/
|
|
412
|
+
maxFileSize: u64 & AugmentedConst<ApiType>;
|
|
413
|
+
/**
|
|
414
|
+
* The maximum amount of multiaddresses that a Storage Provider can have.
|
|
415
|
+
**/
|
|
416
|
+
maxMultiAddressAmount: u32 & AugmentedConst<ApiType>;
|
|
417
|
+
/**
|
|
418
|
+
* The maximum size of a multiaddress.
|
|
419
|
+
**/
|
|
420
|
+
maxMultiAddressSize: u32 & AugmentedConst<ApiType>;
|
|
421
|
+
/**
|
|
422
|
+
* The maximum number of protocols the MSP can support (at least within the runtime).
|
|
423
|
+
**/
|
|
424
|
+
maxProtocols: u32 & AugmentedConst<ApiType>;
|
|
425
|
+
/**
|
|
426
|
+
* The minimum amount of blocks between capacity changes for a SP
|
|
427
|
+
**/
|
|
428
|
+
minBlocksBetweenCapacityChanges: u32 & AugmentedConst<ApiType>;
|
|
429
|
+
/**
|
|
430
|
+
* The slash factor deducted from a Storage Provider's deposit for every single storage proof they fail to provide.
|
|
431
|
+
**/
|
|
432
|
+
slashAmountPerMaxFileSize: u128 & AugmentedConst<ApiType>;
|
|
433
|
+
/**
|
|
434
|
+
* The amount that a BSP receives as allocation of storage capacity when it deposits SpMinDeposit.
|
|
435
|
+
**/
|
|
436
|
+
spMinCapacity: u64 & AugmentedConst<ApiType>;
|
|
437
|
+
/**
|
|
438
|
+
* The minimum amount that an account has to deposit to become a storage provider.
|
|
439
|
+
**/
|
|
440
|
+
spMinDeposit: u128 & AugmentedConst<ApiType>;
|
|
441
|
+
/**
|
|
442
|
+
* Starting reputation weight for a newly registered BSP.
|
|
443
|
+
**/
|
|
444
|
+
startingReputationWeight: u32 & AugmentedConst<ApiType>;
|
|
445
|
+
/**
|
|
446
|
+
* The Treasury AccountId.
|
|
447
|
+
* The account to which:
|
|
448
|
+
* - The fees for submitting a challenge are transferred.
|
|
449
|
+
* - The slashed funds are transferred.
|
|
450
|
+
**/
|
|
451
|
+
treasury: AccountId32 & AugmentedConst<ApiType>;
|
|
452
|
+
/**
|
|
453
|
+
* Generic const
|
|
454
|
+
**/
|
|
455
|
+
[key: string]: Codec;
|
|
456
|
+
};
|
|
457
|
+
system: {
|
|
458
|
+
/**
|
|
459
|
+
* Maximum number of block number to block hash mappings to keep (oldest pruned first).
|
|
460
|
+
**/
|
|
461
|
+
blockHashCount: u32 & AugmentedConst<ApiType>;
|
|
462
|
+
/**
|
|
463
|
+
* The maximum length of a block (in bytes).
|
|
464
|
+
**/
|
|
465
|
+
blockLength: FrameSystemLimitsBlockLength & AugmentedConst<ApiType>;
|
|
466
|
+
/**
|
|
467
|
+
* Block & extrinsics weights: base values and limits.
|
|
468
|
+
**/
|
|
469
|
+
blockWeights: FrameSystemLimitsBlockWeights & AugmentedConst<ApiType>;
|
|
470
|
+
/**
|
|
471
|
+
* The weight of runtime database operations the runtime can invoke.
|
|
472
|
+
**/
|
|
473
|
+
dbWeight: SpWeightsRuntimeDbWeight & AugmentedConst<ApiType>;
|
|
474
|
+
/**
|
|
475
|
+
* The designated SS58 prefix of this chain.
|
|
476
|
+
*
|
|
477
|
+
* This replaces the "ss58Format" property declared in the chain spec. Reason is
|
|
478
|
+
* that the runtime should know about the prefix in order to make use of it as
|
|
479
|
+
* an identifier of the chain.
|
|
480
|
+
**/
|
|
481
|
+
ss58Prefix: u16 & AugmentedConst<ApiType>;
|
|
482
|
+
/**
|
|
483
|
+
* Get the chain's in-code version.
|
|
484
|
+
**/
|
|
485
|
+
version: SpVersionRuntimeVersion & AugmentedConst<ApiType>;
|
|
486
|
+
/**
|
|
487
|
+
* Generic const
|
|
488
|
+
**/
|
|
489
|
+
[key: string]: Codec;
|
|
490
|
+
};
|
|
491
|
+
timestamp: {
|
|
492
|
+
/**
|
|
493
|
+
* The minimum period between blocks.
|
|
494
|
+
*
|
|
495
|
+
* Be aware that this is different to the *expected* period that the block production
|
|
496
|
+
* apparatus provides. Your chosen consensus system will generally work with this to
|
|
497
|
+
* determine a sensible block time. For example, in the Aura pallet it will be double this
|
|
498
|
+
* period on default settings.
|
|
499
|
+
**/
|
|
500
|
+
minimumPeriod: u64 & AugmentedConst<ApiType>;
|
|
501
|
+
/**
|
|
502
|
+
* Generic const
|
|
503
|
+
**/
|
|
504
|
+
[key: string]: Codec;
|
|
505
|
+
};
|
|
506
|
+
transactionPayment: {
|
|
507
|
+
/**
|
|
508
|
+
* A fee multiplier for `Operational` extrinsics to compute "virtual tip" to boost their
|
|
509
|
+
* `priority`
|
|
510
|
+
*
|
|
511
|
+
* This value is multiplied by the `final_fee` to obtain a "virtual tip" that is later
|
|
512
|
+
* added to a tip component in regular `priority` calculations.
|
|
513
|
+
* It means that a `Normal` transaction can front-run a similarly-sized `Operational`
|
|
514
|
+
* extrinsic (with no tip), by including a tip value greater than the virtual tip.
|
|
515
|
+
*
|
|
516
|
+
* ```rust,ignore
|
|
517
|
+
* // For `Normal`
|
|
518
|
+
* let priority = priority_calc(tip);
|
|
519
|
+
*
|
|
520
|
+
* // For `Operational`
|
|
521
|
+
* let virtual_tip = (inclusion_fee + tip) * OperationalFeeMultiplier;
|
|
522
|
+
* let priority = priority_calc(tip + virtual_tip);
|
|
523
|
+
* ```
|
|
524
|
+
*
|
|
525
|
+
* Note that since we use `final_fee` the multiplier applies also to the regular `tip`
|
|
526
|
+
* sent with the transaction. So, not only does the transaction get a priority bump based
|
|
527
|
+
* on the `inclusion_fee`, but we also amplify the impact of tips applied to `Operational`
|
|
528
|
+
* transactions.
|
|
529
|
+
**/
|
|
530
|
+
operationalFeeMultiplier: u8 & AugmentedConst<ApiType>;
|
|
531
|
+
/**
|
|
532
|
+
* Generic const
|
|
533
|
+
**/
|
|
534
|
+
[key: string]: Codec;
|
|
535
|
+
};
|
|
536
|
+
xcmpQueue: {
|
|
537
|
+
/**
|
|
538
|
+
* Maximal number of outbound XCMP channels that can have messages queued at the same time.
|
|
539
|
+
*
|
|
540
|
+
* If this is reached, then no further messages can be sent to channels that do not yet
|
|
541
|
+
* have a message queued. This should be set to the expected maximum of outbound channels
|
|
542
|
+
* which is determined by [`Self::ChannelInfo`]. It is important to set this large enough,
|
|
543
|
+
* since otherwise the congestion control protocol will not work as intended and messages
|
|
544
|
+
* may be dropped. This value increases the PoV and should therefore not be picked too
|
|
545
|
+
* high. Governance needs to pay attention to not open more channels than this value.
|
|
546
|
+
**/
|
|
547
|
+
maxActiveOutboundChannels: u32 & AugmentedConst<ApiType>;
|
|
548
|
+
/**
|
|
549
|
+
* The maximum number of inbound XCMP channels that can be suspended simultaneously.
|
|
550
|
+
*
|
|
551
|
+
* Any further channel suspensions will fail and messages may get dropped without further
|
|
552
|
+
* notice. Choosing a high value (1000) is okay; the trade-off that is described in
|
|
553
|
+
* [`InboundXcmpSuspended`] still applies at that scale.
|
|
554
|
+
**/
|
|
555
|
+
maxInboundSuspended: u32 & AugmentedConst<ApiType>;
|
|
556
|
+
/**
|
|
557
|
+
* The maximal page size for HRMP message pages.
|
|
558
|
+
*
|
|
559
|
+
* A lower limit can be set dynamically, but this is the hard-limit for the PoV worst case
|
|
560
|
+
* benchmarking. The limit for the size of a message is slightly below this, since some
|
|
561
|
+
* overhead is incurred for encoding the format.
|
|
562
|
+
**/
|
|
563
|
+
maxPageSize: u32 & AugmentedConst<ApiType>;
|
|
564
|
+
/**
|
|
565
|
+
* Generic const
|
|
566
|
+
**/
|
|
567
|
+
[key: string]: Codec;
|
|
568
|
+
};
|
|
569
|
+
} // AugmentedConsts
|
|
570
|
+
} // declare module
|