@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.
Files changed (190) hide show
  1. package/LICENSE +674 -0
  2. package/biome.json +2 -9
  3. package/dist/parachain/index.js.map +1 -0
  4. package/dist/parachain/interfaces/augment-api-consts.js.map +1 -0
  5. package/dist/parachain/interfaces/augment-api-errors.js.map +1 -0
  6. package/dist/parachain/interfaces/augment-api-events.js.map +1 -0
  7. package/dist/parachain/interfaces/augment-api-query.js.map +1 -0
  8. package/dist/parachain/interfaces/augment-api-rpc.js.map +1 -0
  9. package/dist/parachain/interfaces/augment-api-runtime.js.map +1 -0
  10. package/dist/parachain/interfaces/augment-api-tx.js.map +1 -0
  11. package/dist/parachain/interfaces/augment-api.js.map +1 -0
  12. package/dist/parachain/interfaces/augment-types.js.map +1 -0
  13. package/dist/parachain/interfaces/definitions.js.map +1 -0
  14. package/dist/parachain/interfaces/index.js.map +1 -0
  15. package/dist/{interfaces → parachain/interfaces}/lookup.js +1465 -813
  16. package/dist/parachain/interfaces/lookup.js.map +1 -0
  17. package/dist/parachain/interfaces/registry.js.map +1 -0
  18. package/dist/parachain/interfaces/storagehubclient/definitions.js +7 -0
  19. package/dist/parachain/interfaces/storagehubclient/definitions.js.map +1 -0
  20. package/dist/parachain/interfaces/storagehubclient/index.js.map +1 -0
  21. package/dist/parachain/interfaces/storagehubclient/runtime.js.map +1 -0
  22. package/dist/parachain/interfaces/storagehubclient/types.js.map +1 -0
  23. package/dist/parachain/interfaces/types-lookup.js.map +1 -0
  24. package/dist/parachain/interfaces/types.js.map +1 -0
  25. package/dist/solochain-evm/index.js +4 -0
  26. package/dist/solochain-evm/index.js.map +1 -0
  27. package/dist/solochain-evm/interfaces/augment-api-consts.js +6 -0
  28. package/dist/solochain-evm/interfaces/augment-api-consts.js.map +1 -0
  29. package/dist/solochain-evm/interfaces/augment-api-errors.js +6 -0
  30. package/dist/solochain-evm/interfaces/augment-api-errors.js.map +1 -0
  31. package/dist/solochain-evm/interfaces/augment-api-events.js +6 -0
  32. package/dist/solochain-evm/interfaces/augment-api-events.js.map +1 -0
  33. package/dist/solochain-evm/interfaces/augment-api-query.js +6 -0
  34. package/dist/solochain-evm/interfaces/augment-api-query.js.map +1 -0
  35. package/dist/solochain-evm/interfaces/augment-api-rpc.js +6 -0
  36. package/dist/solochain-evm/interfaces/augment-api-rpc.js.map +1 -0
  37. package/dist/solochain-evm/interfaces/augment-api-runtime.js +6 -0
  38. package/dist/solochain-evm/interfaces/augment-api-runtime.js.map +1 -0
  39. package/dist/solochain-evm/interfaces/augment-api-tx.js +6 -0
  40. package/dist/solochain-evm/interfaces/augment-api-tx.js.map +1 -0
  41. package/dist/solochain-evm/interfaces/augment-api.js +10 -0
  42. package/dist/solochain-evm/interfaces/augment-api.js.map +1 -0
  43. package/dist/solochain-evm/interfaces/augment-types.js +6 -0
  44. package/dist/solochain-evm/interfaces/augment-types.js.map +1 -0
  45. package/dist/solochain-evm/interfaces/definitions.js +2 -0
  46. package/dist/solochain-evm/interfaces/definitions.js.map +1 -0
  47. package/dist/solochain-evm/interfaces/index.js +4 -0
  48. package/dist/solochain-evm/interfaces/index.js.map +1 -0
  49. package/dist/solochain-evm/interfaces/lookup.js +3744 -0
  50. package/dist/solochain-evm/interfaces/lookup.js.map +1 -0
  51. package/dist/solochain-evm/interfaces/registry.js +6 -0
  52. package/dist/solochain-evm/interfaces/registry.js.map +1 -0
  53. package/dist/solochain-evm/interfaces/storagehubclient/definitions.js +7 -0
  54. package/dist/solochain-evm/interfaces/storagehubclient/definitions.js.map +1 -0
  55. package/dist/solochain-evm/interfaces/storagehubclient/index.js +4 -0
  56. package/dist/solochain-evm/interfaces/storagehubclient/index.js.map +1 -0
  57. package/dist/solochain-evm/interfaces/storagehubclient/types.js +4 -0
  58. package/dist/solochain-evm/interfaces/storagehubclient/types.js.map +1 -0
  59. package/dist/solochain-evm/interfaces/types-lookup.js +6 -0
  60. package/dist/solochain-evm/interfaces/types-lookup.js.map +1 -0
  61. package/dist/solochain-evm/interfaces/types.js +4 -0
  62. package/dist/solochain-evm/interfaces/types.js.map +1 -0
  63. package/dist/types/{interfaces → parachain/interfaces}/augment-api-consts.d.ts +147 -20
  64. package/dist/types/{interfaces → parachain/interfaces}/augment-api-errors.d.ts +235 -8
  65. package/dist/types/{interfaces → parachain/interfaces}/augment-api-events.d.ts +542 -118
  66. package/dist/types/{interfaces → parachain/interfaces}/augment-api-query.d.ts +208 -118
  67. package/dist/types/{interfaces → parachain/interfaces}/augment-api-rpc.d.ts +61 -4
  68. package/dist/types/{interfaces → parachain/interfaces}/augment-api-runtime.d.ts +97 -8
  69. package/dist/types/{interfaces → parachain/interfaces}/augment-api-tx.d.ts +356 -181
  70. package/dist/types/{interfaces → parachain/interfaces}/augment-types.d.ts +144 -11
  71. package/dist/types/{interfaces → parachain/interfaces}/lookup.d.ts +1067 -513
  72. package/dist/types/parachain/interfaces/registry.d.ts +311 -0
  73. package/dist/types/{interfaces → parachain/interfaces}/storagehubclient/types.d.ts +129 -18
  74. package/dist/types/{interfaces → parachain/interfaces}/types-lookup.d.ts +1619 -887
  75. package/dist/types/solochain-evm/interfaces/augment-api-consts.d.ts +641 -0
  76. package/dist/types/solochain-evm/interfaces/augment-api-errors.d.ts +1260 -0
  77. package/dist/types/solochain-evm/interfaces/augment-api-events.d.ts +2058 -0
  78. package/dist/types/solochain-evm/interfaces/augment-api-query.d.ts +1317 -0
  79. package/dist/types/solochain-evm/interfaces/augment-api-rpc.d.ts +775 -0
  80. package/dist/types/solochain-evm/interfaces/augment-api-runtime.d.ts +535 -0
  81. package/dist/types/solochain-evm/interfaces/augment-api-tx.d.ts +2381 -0
  82. package/dist/types/solochain-evm/interfaces/augment-api.d.ts +7 -0
  83. package/dist/types/solochain-evm/interfaces/augment-types.d.ts +1418 -0
  84. package/dist/types/solochain-evm/interfaces/index.d.ts +1 -0
  85. package/dist/types/solochain-evm/interfaces/lookup.d.ts +3363 -0
  86. package/dist/types/solochain-evm/interfaces/registry.d.ts +252 -0
  87. package/dist/types/solochain-evm/interfaces/storagehubclient/definitions.d.ts +6 -0
  88. package/dist/types/solochain-evm/interfaces/storagehubclient/index.d.ts +1 -0
  89. package/dist/types/solochain-evm/interfaces/storagehubclient/types.d.ts +319 -0
  90. package/dist/types/solochain-evm/interfaces/types-lookup.d.ts +3577 -0
  91. package/dist/types/solochain-evm/interfaces/types.d.ts +1 -0
  92. package/metadata-sh-parachain.json +5 -0
  93. package/metadata-sh-solochain-evm.json +5 -0
  94. package/package.json +41 -26
  95. package/scripts/scrapeMetadata.ts +41 -29
  96. package/src/parachain/index.ts +3 -0
  97. package/src/{interfaces → parachain/interfaces}/augment-api-consts.ts +147 -20
  98. package/src/{interfaces → parachain/interfaces}/augment-api-errors.ts +235 -8
  99. package/src/{interfaces → parachain/interfaces}/augment-api-events.ts +527 -137
  100. package/src/{interfaces → parachain/interfaces}/augment-api-query.ts +272 -145
  101. package/src/{interfaces → parachain/interfaces}/augment-api-rpc.ts +123 -5
  102. package/src/{interfaces → parachain/interfaces}/augment-api-runtime.ts +183 -8
  103. package/src/{interfaces → parachain/interfaces}/augment-api-tx.ts +374 -182
  104. package/src/{interfaces → parachain/interfaces}/augment-types.ts +278 -12
  105. package/src/parachain/interfaces/definitions.ts +1 -0
  106. package/src/{interfaces → parachain/interfaces}/lookup.ts +1497 -813
  107. package/src/{interfaces → parachain/interfaces}/registry.ts +176 -98
  108. package/src/parachain/interfaces/storagehubclient/definitions.ts +7 -0
  109. package/src/{interfaces → parachain/interfaces}/storagehubclient/types.ts +158 -18
  110. package/src/{interfaces → parachain/interfaces}/types-lookup.ts +1970 -896
  111. package/src/solochain-evm/index.ts +3 -0
  112. package/src/solochain-evm/interfaces/augment-api-consts.ts +655 -0
  113. package/src/solochain-evm/interfaces/augment-api-errors.ts +1268 -0
  114. package/src/solochain-evm/interfaces/augment-api-events.ts +1813 -0
  115. package/src/solochain-evm/interfaces/augment-api-query.ts +1838 -0
  116. package/src/solochain-evm/interfaces/augment-api-rpc.ts +1319 -0
  117. package/src/solochain-evm/interfaces/augment-api-runtime.ts +958 -0
  118. package/src/solochain-evm/interfaces/augment-api-tx.ts +2818 -0
  119. package/src/solochain-evm/interfaces/augment-api.ts +10 -0
  120. package/src/solochain-evm/interfaces/augment-types.ts +2774 -0
  121. package/src/solochain-evm/interfaces/definitions.ts +1 -0
  122. package/src/solochain-evm/interfaces/index.ts +4 -0
  123. package/src/solochain-evm/interfaces/lookup.ts +3788 -0
  124. package/src/solochain-evm/interfaces/registry.ts +506 -0
  125. package/src/solochain-evm/interfaces/storagehubclient/definitions.ts +7 -0
  126. package/src/solochain-evm/interfaces/storagehubclient/index.ts +4 -0
  127. package/src/solochain-evm/interfaces/storagehubclient/types.ts +391 -0
  128. package/src/solochain-evm/interfaces/types-lookup.ts +4616 -0
  129. package/src/solochain-evm/interfaces/types.ts +4 -0
  130. package/tsconfig.json +17 -20
  131. package/tsconfig.parachain.json +17 -0
  132. package/tsconfig.solochain-evm.json +17 -0
  133. package/tsconfig.tsbuildinfo +1 -0
  134. package/dist/index.js.map +0 -1
  135. package/dist/interfaces/augment-api-consts.js.map +0 -1
  136. package/dist/interfaces/augment-api-errors.js.map +0 -1
  137. package/dist/interfaces/augment-api-events.js.map +0 -1
  138. package/dist/interfaces/augment-api-query.js.map +0 -1
  139. package/dist/interfaces/augment-api-rpc.js.map +0 -1
  140. package/dist/interfaces/augment-api-runtime.js.map +0 -1
  141. package/dist/interfaces/augment-api-tx.js.map +0 -1
  142. package/dist/interfaces/augment-api.js.map +0 -1
  143. package/dist/interfaces/augment-types.js.map +0 -1
  144. package/dist/interfaces/definitions.js.map +0 -1
  145. package/dist/interfaces/index.js.map +0 -1
  146. package/dist/interfaces/lookup.js.map +0 -1
  147. package/dist/interfaces/registry.js.map +0 -1
  148. package/dist/interfaces/storagehubclient/definitions.js +0 -7
  149. package/dist/interfaces/storagehubclient/definitions.js.map +0 -1
  150. package/dist/interfaces/storagehubclient/index.js.map +0 -1
  151. package/dist/interfaces/storagehubclient/runtime.js.map +0 -1
  152. package/dist/interfaces/storagehubclient/types.js.map +0 -1
  153. package/dist/interfaces/types-lookup.js.map +0 -1
  154. package/dist/interfaces/types.js.map +0 -1
  155. package/dist/types/interfaces/registry.d.ts +0 -272
  156. package/src/interfaces/storagehubclient/definitions.ts +0 -7
  157. package/storagehub.json +0 -1
  158. /package/dist/{index.js → parachain/index.js} +0 -0
  159. /package/dist/{interfaces → parachain/interfaces}/augment-api-consts.js +0 -0
  160. /package/dist/{interfaces → parachain/interfaces}/augment-api-errors.js +0 -0
  161. /package/dist/{interfaces → parachain/interfaces}/augment-api-events.js +0 -0
  162. /package/dist/{interfaces → parachain/interfaces}/augment-api-query.js +0 -0
  163. /package/dist/{interfaces → parachain/interfaces}/augment-api-rpc.js +0 -0
  164. /package/dist/{interfaces → parachain/interfaces}/augment-api-runtime.js +0 -0
  165. /package/dist/{interfaces → parachain/interfaces}/augment-api-tx.js +0 -0
  166. /package/dist/{interfaces → parachain/interfaces}/augment-api.js +0 -0
  167. /package/dist/{interfaces → parachain/interfaces}/augment-types.js +0 -0
  168. /package/dist/{interfaces → parachain/interfaces}/definitions.js +0 -0
  169. /package/dist/{interfaces → parachain/interfaces}/index.js +0 -0
  170. /package/dist/{interfaces → parachain/interfaces}/registry.js +0 -0
  171. /package/dist/{interfaces → parachain/interfaces}/storagehubclient/index.js +0 -0
  172. /package/dist/{interfaces → parachain/interfaces}/storagehubclient/runtime.js +0 -0
  173. /package/dist/{interfaces → parachain/interfaces}/storagehubclient/types.js +0 -0
  174. /package/dist/{interfaces → parachain/interfaces}/types-lookup.js +0 -0
  175. /package/dist/{interfaces → parachain/interfaces}/types.js +0 -0
  176. /package/dist/types/{index.d.ts → parachain/index.d.ts} +0 -0
  177. /package/dist/types/{interfaces → parachain/interfaces}/augment-api.d.ts +0 -0
  178. /package/dist/types/{interfaces → parachain/interfaces}/definitions.d.ts +0 -0
  179. /package/dist/types/{interfaces → parachain/interfaces}/index.d.ts +0 -0
  180. /package/dist/types/{interfaces → parachain/interfaces}/storagehubclient/definitions.d.ts +0 -0
  181. /package/dist/types/{interfaces → parachain/interfaces}/storagehubclient/index.d.ts +0 -0
  182. /package/dist/types/{interfaces → parachain/interfaces}/storagehubclient/runtime.d.ts +0 -0
  183. /package/dist/types/{interfaces → parachain/interfaces}/types.d.ts +0 -0
  184. /package/{src/index.ts → dist/types/solochain-evm/index.d.ts} +0 -0
  185. /package/{src/interfaces/definitions.ts → dist/types/solochain-evm/interfaces/definitions.d.ts} +0 -0
  186. /package/src/{interfaces → parachain/interfaces}/augment-api.ts +0 -0
  187. /package/src/{interfaces → parachain/interfaces}/index.ts +0 -0
  188. /package/src/{interfaces → parachain/interfaces}/storagehubclient/index.ts +0 -0
  189. /package/src/{interfaces → parachain/interfaces}/storagehubclient/runtime.ts +0 -0
  190. /package/src/{interfaces → parachain/interfaces}/types.ts +0 -0
@@ -3,7 +3,7 @@ import type { ApiTypes, AugmentedEvent } from "@polkadot/api-base/types";
3
3
  import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u32, u64, u8 } from "@polkadot/types-codec";
4
4
  import type { ITuple } from "@polkadot/types-codec/types";
5
5
  import type { AccountId32, H256 } from "@polkadot/types/interfaces/runtime";
6
- import type { CumulusPrimitivesCoreAggregateMessageOrigin, FrameSupportDispatchDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportTokensMiscBalanceStatus, PalletFileSystemEitherAccountIdOrMspId, PalletFileSystemMspRespondStorageRequestsResult, PalletNftsAttributeNamespace, PalletNftsPalletAttributes, PalletNftsPriceWithDirection, PalletProofsDealerProof, PalletStorageProvidersStorageProviderId, PalletStorageProvidersValueProposition, ShpTraitsTrieRemoveMutation, SpRuntimeDispatchError, SpWeightsWeightV2Weight, StagingXcmV4AssetAssets, StagingXcmV4Location, StagingXcmV4Response, StagingXcmV4TraitsOutcome, StagingXcmV4Xcm, StorageHubRuntimeConfigsRuntimeParamsRuntimeParametersKey, StorageHubRuntimeConfigsRuntimeParamsRuntimeParametersValue, XcmV3TraitsError, XcmVersionedAssets, XcmVersionedLocation } from "@polkadot/types/lookup";
6
+ import type { CumulusPrimitivesCoreAggregateMessageOrigin, FrameSupportMessagesProcessMessageError, FrameSupportTokensMiscBalanceStatus, FrameSystemDispatchEventInfo, PalletFileSystemEitherAccountIdOrMspId, PalletFileSystemFileOperationIntention, PalletFileSystemRejectedStorageRequestReason, PalletNftsAttributeNamespace, PalletNftsPalletAttributes, PalletNftsPriceWithDirection, PalletProofsDealerCustomChallenge, PalletProofsDealerProof, PalletStorageProvidersStorageProviderId, PalletStorageProvidersTopUpMetadata, PalletStorageProvidersValueProposition, PalletStorageProvidersValuePropositionWithId, ShParachainRuntimeConfigsRuntimeParamsRuntimeParametersKey, ShParachainRuntimeConfigsRuntimeParamsRuntimeParametersValue, ShpFileMetadataFileMetadata, ShpTraitsTrieMutation, SpRuntimeDispatchError, SpRuntimeMultiSignature, SpWeightsWeightV2Weight, StagingXcmV5AssetAssets, StagingXcmV5Location, StagingXcmV5Response, StagingXcmV5TraitsOutcome, StagingXcmV5Xcm, XcmV5TraitsError, XcmVersionedAssets, XcmVersionedLocation } from "@polkadot/types/lookup";
7
7
  export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
8
8
  declare module "@polkadot/api-base/types/events" {
9
9
  interface AugmentedEvents<ApiType extends ApiTypes> {
@@ -367,7 +367,7 @@ declare module "@polkadot/api-base/types/events" {
367
367
  * Downward message executed with the given outcome.
368
368
  * \[ id, outcome \]
369
369
  **/
370
- ExecutedDownward: AugmentedEvent<ApiType, [U8aFixed, StagingXcmV4TraitsOutcome]>;
370
+ ExecutedDownward: AugmentedEvent<ApiType, [U8aFixed, StagingXcmV5TraitsOutcome]>;
371
371
  /**
372
372
  * Downward message is invalid XCM.
373
373
  * \[ id \]
@@ -421,12 +421,14 @@ declare module "@polkadot/api-base/types/events" {
421
421
  BspConfirmedStoring: AugmentedEvent<ApiType, [
422
422
  who: AccountId32,
423
423
  bspId: H256,
424
- fileKeys: Vec<H256>,
424
+ confirmedFileKeys: Vec<ITuple<[H256, ShpFileMetadataFileMetadata]>>,
425
+ skippedFileKeys: Vec<H256>,
425
426
  newRoot: H256
426
427
  ], {
427
428
  who: AccountId32;
428
429
  bspId: H256;
429
- fileKeys: Vec<H256>;
430
+ confirmedFileKeys: Vec<ITuple<[H256, ShpFileMetadataFileMetadata]>>;
431
+ skippedFileKeys: Vec<H256>;
430
432
  newRoot: H256;
431
433
  }>;
432
434
  /**
@@ -442,8 +444,23 @@ declare module "@polkadot/api-base/types/events" {
442
444
  newRoot: H256;
443
445
  }>;
444
446
  /**
445
- * Notifies that a BSP has opened a request to stop storing a file.
447
+ * Notifies that a file deletion has been completed successfully for a BSP.
446
448
  **/
449
+ BspFileDeletionCompleted: AugmentedEvent<ApiType, [
450
+ user: AccountId32,
451
+ fileKey: H256,
452
+ fileSize: u64,
453
+ bspId: H256,
454
+ oldRoot: H256,
455
+ newRoot: H256
456
+ ], {
457
+ user: AccountId32;
458
+ fileKey: H256;
459
+ fileSize: u64;
460
+ bspId: H256;
461
+ oldRoot: H256;
462
+ newRoot: H256;
463
+ }>;
447
464
  BspRequestedToStopStoring: AugmentedEvent<ApiType, [
448
465
  bspId: H256,
449
466
  fileKey: H256,
@@ -455,6 +472,38 @@ declare module "@polkadot/api-base/types/events" {
455
472
  owner: AccountId32;
456
473
  location: Bytes;
457
474
  }>;
475
+ /**
476
+ * Notifies that an empty bucket has been deleted.
477
+ **/
478
+ BucketDeleted: AugmentedEvent<ApiType, [
479
+ who: AccountId32,
480
+ bucketId: H256,
481
+ maybeCollectionId: Option<u32>
482
+ ], {
483
+ who: AccountId32;
484
+ bucketId: H256;
485
+ maybeCollectionId: Option<u32>;
486
+ }>;
487
+ /**
488
+ * Notifies that a file deletion has been completed successfully for a Bucket.
489
+ **/
490
+ BucketFileDeletionCompleted: AugmentedEvent<ApiType, [
491
+ user: AccountId32,
492
+ fileKey: H256,
493
+ fileSize: u64,
494
+ bucketId: H256,
495
+ mspId: Option<H256>,
496
+ oldRoot: H256,
497
+ newRoot: H256
498
+ ], {
499
+ user: AccountId32;
500
+ fileKey: H256;
501
+ fileSize: u64;
502
+ bucketId: H256;
503
+ mspId: Option<H256>;
504
+ oldRoot: H256;
505
+ newRoot: H256;
506
+ }>;
458
507
  /**
459
508
  * Notifies that a bucket's privacy has been updated.
460
509
  **/
@@ -470,24 +519,85 @@ declare module "@polkadot/api-base/types/events" {
470
519
  private: bool;
471
520
  }>;
472
521
  /**
473
- * Notifies that a data server has been registered for a move bucket request.
522
+ * Failed to decrease MSP's used capacity for expired file deletion request
474
523
  **/
475
- DataServerRegisteredForMoveBucket: AugmentedEvent<ApiType, [
476
- bspId: H256,
477
- bucketId: H256
524
+ FailedToDecreaseMspUsedCapacity: AugmentedEvent<ApiType, [
525
+ user: AccountId32,
526
+ mspId: H256,
527
+ fileKey: H256,
528
+ fileSize: u64,
529
+ error: SpRuntimeDispatchError
530
+ ], {
531
+ user: AccountId32;
532
+ mspId: H256;
533
+ fileKey: H256;
534
+ fileSize: u64;
535
+ error: SpRuntimeDispatchError;
536
+ }>;
537
+ /**
538
+ * Failed to get the MSP owner of the bucket for an expired file deletion request
539
+ * This is different from the bucket not having a MSP, which is allowed and won't error
540
+ **/
541
+ FailedToGetMspOfBucket: AugmentedEvent<ApiType, [
542
+ bucketId: H256,
543
+ error: SpRuntimeDispatchError
478
544
  ], {
479
- bspId: H256;
480
545
  bucketId: H256;
546
+ error: SpRuntimeDispatchError;
481
547
  }>;
482
548
  /**
483
- * Notifies that a priority challenge failed to be queued for pending file deletion.
549
+ * Notifies that a priority challenge with a trie remove mutation failed to be queued in the `on_idle` hook.
550
+ * This can happen if the priority challenge queue is full, and the failed challenge should be manually
551
+ * queued at a later time.
484
552
  **/
485
553
  FailedToQueuePriorityChallenge: AugmentedEvent<ApiType, [
486
- user: AccountId32,
487
- fileKey: H256
554
+ fileKey: H256,
555
+ error: SpRuntimeDispatchError
488
556
  ], {
489
- user: AccountId32;
490
557
  fileKey: H256;
558
+ error: SpRuntimeDispatchError;
559
+ }>;
560
+ /**
561
+ * Event to notify if, in the `on_idle` hook when cleaning up an expired storage request,
562
+ * the return of that storage request's deposit to the user failed.
563
+ **/
564
+ FailedToReleaseStorageRequestCreationDeposit: AugmentedEvent<ApiType, [
565
+ fileKey: H256,
566
+ owner: AccountId32,
567
+ amountToReturn: u128,
568
+ error: SpRuntimeDispatchError
569
+ ], {
570
+ fileKey: H256;
571
+ owner: AccountId32;
572
+ amountToReturn: u128;
573
+ error: SpRuntimeDispatchError;
574
+ }>;
575
+ /**
576
+ * Event to notify if, in the `on_idle` hook when cleaning up an expired storage request,
577
+ * the transfer of a part of that storage request's deposit to one of the volunteered BSPs failed.
578
+ **/
579
+ FailedToTransferDepositFundsToBsp: AugmentedEvent<ApiType, [
580
+ fileKey: H256,
581
+ owner: AccountId32,
582
+ bspId: H256,
583
+ amountToTransfer: u128,
584
+ error: SpRuntimeDispatchError
585
+ ], {
586
+ fileKey: H256;
587
+ owner: AccountId32;
588
+ bspId: H256;
589
+ amountToTransfer: u128;
590
+ error: SpRuntimeDispatchError;
591
+ }>;
592
+ /**
593
+ * Notifies that a file has been deleted from a rejected storage request.
594
+ **/
595
+ FileDeletedFromIncompleteStorageRequest: AugmentedEvent<ApiType, [
596
+ fileKey: H256,
597
+ bspId: Option<H256>
598
+ ], {
599
+ fileKey: H256;
600
+ bspId: Option<H256>;
491
601
  }>;
492
602
  /**
493
603
  * Notifies that a file will be deleted.
@@ -495,35 +605,63 @@ declare module "@polkadot/api-base/types/events" {
495
605
  FileDeletionRequest: AugmentedEvent<ApiType, [
496
606
  user: AccountId32,
497
607
  fileKey: H256,
608
+ fileSize: u64,
498
609
  bucketId: H256,
499
610
  mspId: H256,
500
611
  proofOfInclusion: bool
501
612
  ], {
502
613
  user: AccountId32;
503
614
  fileKey: H256;
615
+ fileSize: u64;
504
616
  bucketId: H256;
505
617
  mspId: H256;
506
618
  proofOfInclusion: bool;
507
619
  }>;
508
620
  /**
509
- * Notifies that a bucket has been moved to a new MSP.
621
+ * Notifies that a file deletion has been requested.
622
+ * Contains a signed intention that allows any actor to execute the actual deletion.
623
+ **/
624
+ FileDeletionRequested: AugmentedEvent<ApiType, [
625
+ signedDeleteIntention: PalletFileSystemFileOperationIntention,
626
+ signature: SpRuntimeMultiSignature
627
+ ], {
628
+ signedDeleteIntention: PalletFileSystemFileOperationIntention;
629
+ signature: SpRuntimeMultiSignature;
630
+ }>;
631
+ /**
632
+ * Notifies that a storage request was marked as incomplete.
633
+ *
634
+ * This is important for fisherman nodes to listen and react to, to delete
635
+ * the file key from the BSPs and/or Bucket storing that file from their forest.
636
+ **/
637
+ IncompleteStorageRequest: AugmentedEvent<ApiType, [fileKey: H256], {
638
+ fileKey: H256;
639
+ }>;
640
+ /**
641
+ * Notifies that a bucket has been moved to a new MSP under a new value proposition.
510
642
  **/
511
643
  MoveBucketAccepted: AugmentedEvent<ApiType, [
512
644
  bucketId: H256,
513
- mspId: H256
645
+ oldMspId: Option<H256>,
646
+ newMspId: H256,
647
+ valuePropId: H256
514
648
  ], {
515
649
  bucketId: H256;
516
- mspId: H256;
650
+ oldMspId: Option<H256>;
651
+ newMspId: H256;
652
+ valuePropId: H256;
517
653
  }>;
518
654
  /**
519
655
  * Notifies that a bucket move request has been rejected by the MSP.
520
656
  **/
521
657
  MoveBucketRejected: AugmentedEvent<ApiType, [
522
658
  bucketId: H256,
523
- mspId: H256
659
+ oldMspId: Option<H256>,
660
+ newMspId: H256
524
661
  ], {
525
662
  bucketId: H256;
526
- mspId: H256;
663
+ oldMspId: Option<H256>;
664
+ newMspId: H256;
527
665
  }>;
528
666
  /**
529
667
  * Notifies that a bucket is being moved to a new MSP.
@@ -531,29 +669,61 @@ declare module "@polkadot/api-base/types/events" {
531
669
  MoveBucketRequested: AugmentedEvent<ApiType, [
532
670
  who: AccountId32,
533
671
  bucketId: H256,
534
- newMspId: H256
672
+ newMspId: H256,
673
+ newValuePropId: H256
535
674
  ], {
536
675
  who: AccountId32;
537
676
  bucketId: H256;
538
677
  newMspId: H256;
678
+ newValuePropId: H256;
539
679
  }>;
540
680
  /**
541
681
  * Notifies that a move bucket request has expired.
542
682
  **/
543
- MoveBucketRequestExpired: AugmentedEvent<ApiType, [
683
+ MoveBucketRequestExpired: AugmentedEvent<ApiType, [bucketId: H256], {
684
+ bucketId: H256;
685
+ }>;
686
+ /**
687
+ * Notifies that a Main Storage Provider (MSP) has accepted a storage request for a specific file key.
688
+ *
689
+ * This event is emitted when an MSP agrees to store a file, but the storage request
690
+ * is not yet fully fulfilled (i.e., the required number of Backup Storage Providers
691
+ * have not yet confirmed storage).
692
+ *
693
+ * # Note
694
+ * This event is not emitted when the storage request is immediately fulfilled upon
695
+ * MSP acceptance. In such cases, a [`StorageRequestFulfilled`] event is emitted instead.
696
+ **/
697
+ MspAcceptedStorageRequest: AugmentedEvent<ApiType, [
698
+ fileKey: H256,
699
+ fileMetadata: ShpFileMetadataFileMetadata
700
+ ], {
701
+ fileKey: H256;
702
+ fileMetadata: ShpFileMetadataFileMetadata;
703
+ }>;
704
+ /**
705
+ * Notifies that a MSP has stopped storing a bucket.
706
+ **/
707
+ MspStoppedStoringBucket: AugmentedEvent<ApiType, [
544
708
  mspId: H256,
709
+ owner: AccountId32,
545
710
  bucketId: H256
546
711
  ], {
547
712
  mspId: H256;
713
+ owner: AccountId32;
548
714
  bucketId: H256;
549
715
  }>;
550
716
  /**
551
- * Notifies that a MSP has responded to storage request(s).
717
+ * Notifies that a MSP has stopped storing a bucket because its owner has become insolvent.
552
718
  **/
553
- MspRespondedToStorageRequests: AugmentedEvent<ApiType, [
554
- results: PalletFileSystemMspRespondStorageRequestsResult
719
+ MspStopStoringBucketInsolventUser: AugmentedEvent<ApiType, [
720
+ mspId: H256,
721
+ owner: AccountId32,
722
+ bucketId: H256
555
723
  ], {
556
- results: PalletFileSystemMspRespondStorageRequestsResult;
724
+ mspId: H256;
725
+ owner: AccountId32;
726
+ bucketId: H256;
557
727
  }>;
558
728
  /**
559
729
  * Notifies that a new bucket has been created.
@@ -563,15 +733,19 @@ declare module "@polkadot/api-base/types/events" {
563
733
  mspId: H256,
564
734
  bucketId: H256,
565
735
  name: Bytes,
736
+ root: H256,
566
737
  collectionId: Option<u32>,
567
- private: bool
738
+ private: bool,
739
+ valuePropId: H256
568
740
  ], {
569
741
  who: AccountId32;
570
742
  mspId: H256;
571
743
  bucketId: H256;
572
744
  name: Bytes;
745
+ root: H256;
573
746
  collectionId: Option<u32>;
574
747
  private: bool;
748
+ valuePropId: H256;
575
749
  }>;
576
750
  /**
577
751
  * Notifies that a new collection has been created and associated with a bucket.
@@ -595,7 +769,8 @@ declare module "@polkadot/api-base/types/events" {
595
769
  location: Bytes,
596
770
  fingerprint: H256,
597
771
  size_: u64,
598
- peerIds: Vec<Bytes>
772
+ peerIds: Vec<Bytes>,
773
+ expiresAt: u32
599
774
  ], {
600
775
  who: AccountId32;
601
776
  fileKey: H256;
@@ -604,6 +779,7 @@ declare module "@polkadot/api-base/types/events" {
604
779
  fingerprint: H256;
605
780
  size_: u64;
606
781
  peerIds: Vec<Bytes>;
782
+ expiresAt: u32;
607
783
  }>;
608
784
  /**
609
785
  * Notifies that a file key has been queued for a priority challenge for file deletion.
@@ -619,16 +795,18 @@ declare module "@polkadot/api-base/types/events" {
619
795
  * Notifies that a proof has been submitted for a pending file deletion request.
620
796
  **/
621
797
  ProofSubmittedForPendingFileDeletionRequest: AugmentedEvent<ApiType, [
622
- mspId: H256,
623
798
  user: AccountId32,
624
799
  fileKey: H256,
800
+ fileSize: u64,
625
801
  bucketId: H256,
802
+ mspId: H256,
626
803
  proofOfInclusion: bool
627
804
  ], {
628
- mspId: H256;
629
805
  user: AccountId32;
630
806
  fileKey: H256;
807
+ fileSize: u64;
631
808
  bucketId: H256;
809
+ mspId: H256;
632
810
  proofOfInclusion: bool;
633
811
  }>;
634
812
  /**
@@ -648,23 +826,51 @@ declare module "@polkadot/api-base/types/events" {
648
826
  newRoot: H256;
649
827
  }>;
650
828
  /**
651
- * Notifies the expiration of a storage request.
829
+ * Notifies the expiration of a storage request. This means that the storage request has
830
+ * been accepted by the MSP but the BSP target has not been reached (possibly 0 BSPs).
831
+ * Note: This is a valid storage outcome, the user being responsible to track the number
832
+ * of BSPs and choose to either delete the file and re-issue a storage request or continue.
652
833
  **/
653
834
  StorageRequestExpired: AugmentedEvent<ApiType, [fileKey: H256], {
654
835
  fileKey: H256;
655
836
  }>;
656
837
  /**
657
838
  * Notifies that a storage request for a file key has been fulfilled.
839
+ * This means that the storage request has been accepted by the MSP and the BSP target
840
+ * has been reached.
658
841
  **/
659
842
  StorageRequestFulfilled: AugmentedEvent<ApiType, [fileKey: H256], {
660
843
  fileKey: H256;
661
844
  }>;
845
+ /**
846
+ * Notifies that a storage request has either been directly rejected by the MSP or
847
+ * the MSP did not respond to the storage request in time.
848
+ * Note: There might be BSPs that have volunteered and confirmed the file already, for
849
+ * which a priority challenge to delete the file will be issued.
850
+ **/
851
+ StorageRequestRejected: AugmentedEvent<ApiType, [
852
+ fileKey: H256,
853
+ reason: PalletFileSystemRejectedStorageRequestReason
854
+ ], {
855
+ fileKey: H256;
856
+ reason: PalletFileSystemRejectedStorageRequestReason;
857
+ }>;
662
858
  /**
663
859
  * Notifies that a storage request has been revoked by the user who initiated it.
860
+ * Note: the BSPs who confirmed the file are also issued a priority challenge to delete the
861
+ * file.
664
862
  **/
665
863
  StorageRequestRevoked: AugmentedEvent<ApiType, [fileKey: H256], {
666
864
  fileKey: H256;
667
865
  }>;
866
+ /**
867
+ * Event to notify of incoherencies in used capacity.
868
+ **/
869
+ UsedCapacityShouldBeZero: AugmentedEvent<ApiType, [
870
+ actualUsedCapacity: u64
871
+ ], {
872
+ actualUsedCapacity: u64;
873
+ }>;
668
874
  /**
669
875
  * Generic event
670
876
  **/
@@ -1244,13 +1450,13 @@ declare module "@polkadot/api-base/types/events" {
1244
1450
  * Is also emitted when the value was not changed.
1245
1451
  **/
1246
1452
  Updated: AugmentedEvent<ApiType, [
1247
- key: StorageHubRuntimeConfigsRuntimeParamsRuntimeParametersKey,
1248
- oldValue: Option<StorageHubRuntimeConfigsRuntimeParamsRuntimeParametersValue>,
1249
- newValue: Option<StorageHubRuntimeConfigsRuntimeParamsRuntimeParametersValue>
1453
+ key: ShParachainRuntimeConfigsRuntimeParamsRuntimeParametersKey,
1454
+ oldValue: Option<ShParachainRuntimeConfigsRuntimeParamsRuntimeParametersValue>,
1455
+ newValue: Option<ShParachainRuntimeConfigsRuntimeParamsRuntimeParametersValue>
1250
1456
  ], {
1251
- key: StorageHubRuntimeConfigsRuntimeParamsRuntimeParametersKey;
1252
- oldValue: Option<StorageHubRuntimeConfigsRuntimeParamsRuntimeParametersValue>;
1253
- newValue: Option<StorageHubRuntimeConfigsRuntimeParamsRuntimeParametersValue>;
1457
+ key: ShParachainRuntimeConfigsRuntimeParamsRuntimeParametersKey;
1458
+ oldValue: Option<ShParachainRuntimeConfigsRuntimeParamsRuntimeParametersValue>;
1459
+ newValue: Option<ShParachainRuntimeConfigsRuntimeParamsRuntimeParametersValue>;
1254
1460
  }>;
1255
1461
  /**
1256
1462
  * Generic event
@@ -1330,6 +1536,16 @@ declare module "@polkadot/api-base/types/events" {
1330
1536
  providerId: H256;
1331
1537
  newRate: u128;
1332
1538
  }>;
1539
+ /**
1540
+ * Event emitted when the `on_poll` hook detects that the tick of the proof submitters that needs to process is not the one immediately after the last processed tick.
1541
+ **/
1542
+ InconsistentTickProcessing: AugmentedEvent<ApiType, [
1543
+ lastProcessedTick: u32,
1544
+ tickToProcess: u32
1545
+ ], {
1546
+ lastProcessedTick: u32;
1547
+ tickToProcess: u32;
1548
+ }>;
1333
1549
  /**
1334
1550
  * Event emitted when a Provider's last chargeable tick and price index are updated. Provides information about the Provider of the stream,
1335
1551
  * the tick number of the last chargeable tick and the price index at that tick.
@@ -1363,9 +1579,28 @@ declare module "@polkadot/api-base/types/events" {
1363
1579
  /**
1364
1580
  * Event emitted when a User that has been flagged as not having enough funds to pay for their contracted services has paid all its outstanding debt.
1365
1581
  **/
1366
- UserPaidDebts: AugmentedEvent<ApiType, [who: AccountId32], {
1582
+ UserPaidAllDebts: AugmentedEvent<ApiType, [who: AccountId32], {
1367
1583
  who: AccountId32;
1368
1584
  }>;
1585
+ /**
1586
+ * Event emitted when a User that has been flagged as not having enough funds to pay for their contracted services has paid some (but not all) of its outstanding debt.
1587
+ **/
1588
+ UserPaidSomeDebts: AugmentedEvent<ApiType, [who: AccountId32], {
1589
+ who: AccountId32;
1590
+ }>;
1591
+ /**
1592
+ * Event emitted when multiple payment streams have been charged from a Provider. Provides information about
1593
+ * the charged users, the Provider that received the funds and the tick when the charge happened.
1594
+ **/
1595
+ UsersCharged: AugmentedEvent<ApiType, [
1596
+ userAccounts: Vec<AccountId32>,
1597
+ providerId: H256,
1598
+ chargedAtTick: u32
1599
+ ], {
1600
+ userAccounts: Vec<AccountId32>;
1601
+ providerId: H256;
1602
+ chargedAtTick: u32;
1603
+ }>;
1369
1604
  /**
1370
1605
  * Event emitted when a User that has been flagged as not having enough funds to pay for their contracted services has waited the cooldown period,
1371
1606
  * correctly paid all their outstanding debt and can now contract new services again.
@@ -1392,11 +1627,11 @@ declare module "@polkadot/api-base/types/events" {
1392
1627
  **/
1393
1628
  AssetsClaimed: AugmentedEvent<ApiType, [
1394
1629
  hash_: H256,
1395
- origin: StagingXcmV4Location,
1630
+ origin: StagingXcmV5Location,
1396
1631
  assets: XcmVersionedAssets
1397
1632
  ], {
1398
1633
  hash_: H256;
1399
- origin: StagingXcmV4Location;
1634
+ origin: StagingXcmV5Location;
1400
1635
  assets: XcmVersionedAssets;
1401
1636
  }>;
1402
1637
  /**
@@ -1404,30 +1639,30 @@ declare module "@polkadot/api-base/types/events" {
1404
1639
  **/
1405
1640
  AssetsTrapped: AugmentedEvent<ApiType, [
1406
1641
  hash_: H256,
1407
- origin: StagingXcmV4Location,
1642
+ origin: StagingXcmV5Location,
1408
1643
  assets: XcmVersionedAssets
1409
1644
  ], {
1410
1645
  hash_: H256;
1411
- origin: StagingXcmV4Location;
1646
+ origin: StagingXcmV5Location;
1412
1647
  assets: XcmVersionedAssets;
1413
1648
  }>;
1414
1649
  /**
1415
1650
  * Execution of an XCM message was attempted.
1416
1651
  **/
1417
1652
  Attempted: AugmentedEvent<ApiType, [
1418
- outcome: StagingXcmV4TraitsOutcome
1653
+ outcome: StagingXcmV5TraitsOutcome
1419
1654
  ], {
1420
- outcome: StagingXcmV4TraitsOutcome;
1655
+ outcome: StagingXcmV5TraitsOutcome;
1421
1656
  }>;
1422
1657
  /**
1423
1658
  * Fees were paid from a location for an operation (often for using `SendXcm`).
1424
1659
  **/
1425
1660
  FeesPaid: AugmentedEvent<ApiType, [
1426
- paying: StagingXcmV4Location,
1427
- fees: StagingXcmV4AssetAssets
1661
+ paying: StagingXcmV5Location,
1662
+ fees: StagingXcmV5AssetAssets
1428
1663
  ], {
1429
- paying: StagingXcmV4Location;
1430
- fees: StagingXcmV4AssetAssets;
1664
+ paying: StagingXcmV5Location;
1665
+ fees: StagingXcmV5AssetAssets;
1431
1666
  }>;
1432
1667
  /**
1433
1668
  * Expected query response has been received but the querier location of the response does
@@ -1435,15 +1670,15 @@ declare module "@polkadot/api-base/types/events" {
1435
1670
  * be received and acted upon.
1436
1671
  **/
1437
1672
  InvalidQuerier: AugmentedEvent<ApiType, [
1438
- origin: StagingXcmV4Location,
1673
+ origin: StagingXcmV5Location,
1439
1674
  queryId: u64,
1440
- expectedQuerier: StagingXcmV4Location,
1441
- maybeActualQuerier: Option<StagingXcmV4Location>
1675
+ expectedQuerier: StagingXcmV5Location,
1676
+ maybeActualQuerier: Option<StagingXcmV5Location>
1442
1677
  ], {
1443
- origin: StagingXcmV4Location;
1678
+ origin: StagingXcmV5Location;
1444
1679
  queryId: u64;
1445
- expectedQuerier: StagingXcmV4Location;
1446
- maybeActualQuerier: Option<StagingXcmV4Location>;
1680
+ expectedQuerier: StagingXcmV5Location;
1681
+ maybeActualQuerier: Option<StagingXcmV5Location>;
1447
1682
  }>;
1448
1683
  /**
1449
1684
  * Expected query response has been received but the expected querier location placed in
@@ -1455,10 +1690,10 @@ declare module "@polkadot/api-base/types/events" {
1455
1690
  * needed.
1456
1691
  **/
1457
1692
  InvalidQuerierVersion: AugmentedEvent<ApiType, [
1458
- origin: StagingXcmV4Location,
1693
+ origin: StagingXcmV5Location,
1459
1694
  queryId: u64
1460
1695
  ], {
1461
- origin: StagingXcmV4Location;
1696
+ origin: StagingXcmV5Location;
1462
1697
  queryId: u64;
1463
1698
  }>;
1464
1699
  /**
@@ -1467,13 +1702,13 @@ declare module "@polkadot/api-base/types/events" {
1467
1702
  * be received and acted upon.
1468
1703
  **/
1469
1704
  InvalidResponder: AugmentedEvent<ApiType, [
1470
- origin: StagingXcmV4Location,
1705
+ origin: StagingXcmV5Location,
1471
1706
  queryId: u64,
1472
- expectedLocation: Option<StagingXcmV4Location>
1707
+ expectedLocation: Option<StagingXcmV5Location>
1473
1708
  ], {
1474
- origin: StagingXcmV4Location;
1709
+ origin: StagingXcmV5Location;
1475
1710
  queryId: u64;
1476
- expectedLocation: Option<StagingXcmV4Location>;
1711
+ expectedLocation: Option<StagingXcmV5Location>;
1477
1712
  }>;
1478
1713
  /**
1479
1714
  * Expected query response has been received but the expected origin location placed in
@@ -1485,10 +1720,10 @@ declare module "@polkadot/api-base/types/events" {
1485
1720
  * needed.
1486
1721
  **/
1487
1722
  InvalidResponderVersion: AugmentedEvent<ApiType, [
1488
- origin: StagingXcmV4Location,
1723
+ origin: StagingXcmV5Location,
1489
1724
  queryId: u64
1490
1725
  ], {
1491
- origin: StagingXcmV4Location;
1726
+ origin: StagingXcmV5Location;
1492
1727
  queryId: u64;
1493
1728
  }>;
1494
1729
  /**
@@ -1565,13 +1800,13 @@ declare module "@polkadot/api-base/types/events" {
1565
1800
  * sending the notification to it.
1566
1801
  **/
1567
1802
  NotifyTargetSendFail: AugmentedEvent<ApiType, [
1568
- location: StagingXcmV4Location,
1803
+ location: StagingXcmV5Location,
1569
1804
  queryId: u64,
1570
- error: XcmV3TraitsError
1805
+ error: XcmV5TraitsError
1571
1806
  ], {
1572
- location: StagingXcmV4Location;
1807
+ location: StagingXcmV5Location;
1573
1808
  queryId: u64;
1574
- error: XcmV3TraitsError;
1809
+ error: XcmV5TraitsError;
1575
1810
  }>;
1576
1811
  /**
1577
1812
  * Query response has been received and is ready for taking with `take_response`. There is
@@ -1579,10 +1814,10 @@ declare module "@polkadot/api-base/types/events" {
1579
1814
  **/
1580
1815
  ResponseReady: AugmentedEvent<ApiType, [
1581
1816
  queryId: u64,
1582
- response: StagingXcmV4Response
1817
+ response: StagingXcmV5Response
1583
1818
  ], {
1584
1819
  queryId: u64;
1585
- response: StagingXcmV4Response;
1820
+ response: StagingXcmV5Response;
1586
1821
  }>;
1587
1822
  /**
1588
1823
  * Received query response has been read and removed.
@@ -1594,14 +1829,14 @@ declare module "@polkadot/api-base/types/events" {
1594
1829
  * A XCM message was sent.
1595
1830
  **/
1596
1831
  Sent: AugmentedEvent<ApiType, [
1597
- origin: StagingXcmV4Location,
1598
- destination: StagingXcmV4Location,
1599
- message: StagingXcmV4Xcm,
1832
+ origin: StagingXcmV5Location,
1833
+ destination: StagingXcmV5Location,
1834
+ message: StagingXcmV5Xcm,
1600
1835
  messageId: U8aFixed
1601
1836
  ], {
1602
- origin: StagingXcmV4Location;
1603
- destination: StagingXcmV4Location;
1604
- message: StagingXcmV4Xcm;
1837
+ origin: StagingXcmV5Location;
1838
+ destination: StagingXcmV5Location;
1839
+ message: StagingXcmV5Xcm;
1605
1840
  messageId: U8aFixed;
1606
1841
  }>;
1607
1842
  /**
@@ -1609,10 +1844,10 @@ declare module "@polkadot/api-base/types/events" {
1609
1844
  * automatic notification or a manual intervention.
1610
1845
  **/
1611
1846
  SupportedVersionChanged: AugmentedEvent<ApiType, [
1612
- location: StagingXcmV4Location,
1847
+ location: StagingXcmV5Location,
1613
1848
  version: u32
1614
1849
  ], {
1615
- location: StagingXcmV4Location;
1850
+ location: StagingXcmV5Location;
1616
1851
  version: u32;
1617
1852
  }>;
1618
1853
  /**
@@ -1621,10 +1856,10 @@ declare module "@polkadot/api-base/types/events" {
1621
1856
  * because the query timed out.
1622
1857
  **/
1623
1858
  UnexpectedResponse: AugmentedEvent<ApiType, [
1624
- origin: StagingXcmV4Location,
1859
+ origin: StagingXcmV5Location,
1625
1860
  queryId: u64
1626
1861
  ], {
1627
- origin: StagingXcmV4Location;
1862
+ origin: StagingXcmV5Location;
1628
1863
  queryId: u64;
1629
1864
  }>;
1630
1865
  /**
@@ -1633,14 +1868,14 @@ declare module "@polkadot/api-base/types/events" {
1633
1868
  * The cost of sending it (borne by the chain) is included.
1634
1869
  **/
1635
1870
  VersionChangeNotified: AugmentedEvent<ApiType, [
1636
- destination: StagingXcmV4Location,
1871
+ destination: StagingXcmV5Location,
1637
1872
  result: u32,
1638
- cost: StagingXcmV4AssetAssets,
1873
+ cost: StagingXcmV5AssetAssets,
1639
1874
  messageId: U8aFixed
1640
1875
  ], {
1641
- destination: StagingXcmV4Location;
1876
+ destination: StagingXcmV5Location;
1642
1877
  result: u32;
1643
- cost: StagingXcmV4AssetAssets;
1878
+ cost: StagingXcmV5AssetAssets;
1644
1879
  messageId: U8aFixed;
1645
1880
  }>;
1646
1881
  /**
@@ -1653,12 +1888,12 @@ declare module "@polkadot/api-base/types/events" {
1653
1888
  * We have requested that a remote chain send us XCM version change notifications.
1654
1889
  **/
1655
1890
  VersionNotifyRequested: AugmentedEvent<ApiType, [
1656
- destination: StagingXcmV4Location,
1657
- cost: StagingXcmV4AssetAssets,
1891
+ destination: StagingXcmV5Location,
1892
+ cost: StagingXcmV5AssetAssets,
1658
1893
  messageId: U8aFixed
1659
1894
  ], {
1660
- destination: StagingXcmV4Location;
1661
- cost: StagingXcmV4AssetAssets;
1895
+ destination: StagingXcmV5Location;
1896
+ cost: StagingXcmV5AssetAssets;
1662
1897
  messageId: U8aFixed;
1663
1898
  }>;
1664
1899
  /**
@@ -1666,12 +1901,12 @@ declare module "@polkadot/api-base/types/events" {
1666
1901
  * A version information message is sent to them and its cost is included.
1667
1902
  **/
1668
1903
  VersionNotifyStarted: AugmentedEvent<ApiType, [
1669
- destination: StagingXcmV4Location,
1670
- cost: StagingXcmV4AssetAssets,
1904
+ destination: StagingXcmV5Location,
1905
+ cost: StagingXcmV5AssetAssets,
1671
1906
  messageId: U8aFixed
1672
1907
  ], {
1673
- destination: StagingXcmV4Location;
1674
- cost: StagingXcmV4AssetAssets;
1908
+ destination: StagingXcmV5Location;
1909
+ cost: StagingXcmV5AssetAssets;
1675
1910
  messageId: U8aFixed;
1676
1911
  }>;
1677
1912
  /**
@@ -1679,12 +1914,12 @@ declare module "@polkadot/api-base/types/events" {
1679
1914
  * notifications.
1680
1915
  **/
1681
1916
  VersionNotifyUnrequested: AugmentedEvent<ApiType, [
1682
- destination: StagingXcmV4Location,
1683
- cost: StagingXcmV4AssetAssets,
1917
+ destination: StagingXcmV5Location,
1918
+ cost: StagingXcmV5AssetAssets,
1684
1919
  messageId: U8aFixed
1685
1920
  ], {
1686
- destination: StagingXcmV4Location;
1687
- cost: StagingXcmV4AssetAssets;
1921
+ destination: StagingXcmV5Location;
1922
+ cost: StagingXcmV5AssetAssets;
1688
1923
  messageId: U8aFixed;
1689
1924
  }>;
1690
1925
  /**
@@ -1700,25 +1935,47 @@ declare module "@polkadot/api-base/types/events" {
1700
1935
  paused: bool;
1701
1936
  }>;
1702
1937
  /**
1703
- * A set of mutations has been applied to the Forest.
1938
+ * A set of mutations has been applied to a given Forest.
1939
+ * This is the generic version of [`MutationsAppliedForProvider`](Event::MutationsAppliedForProvider)
1940
+ * when [`generic_apply_delta`](ProofsDealerInterface::generic_apply_delta) is used
1941
+ * and the root is not necessarily linked to a specific Provider.
1942
+ *
1943
+ * Additional information for context on where the mutations were applied can be provided
1944
+ * by using the `event_info` field.
1704
1945
  **/
1705
1946
  MutationsApplied: AugmentedEvent<ApiType, [
1706
- provider: H256,
1707
- mutations: Vec<ITuple<[H256, ShpTraitsTrieRemoveMutation]>>,
1947
+ mutations: Vec<ITuple<[H256, ShpTraitsTrieMutation]>>,
1948
+ oldRoot: H256,
1949
+ newRoot: H256,
1950
+ eventInfo: Option<Bytes>
1951
+ ], {
1952
+ mutations: Vec<ITuple<[H256, ShpTraitsTrieMutation]>>;
1953
+ oldRoot: H256;
1954
+ newRoot: H256;
1955
+ eventInfo: Option<Bytes>;
1956
+ }>;
1957
+ /**
1958
+ * A set of mutations has been applied to the Forest of a given Provider.
1959
+ **/
1960
+ MutationsAppliedForProvider: AugmentedEvent<ApiType, [
1961
+ providerId: H256,
1962
+ mutations: Vec<ITuple<[H256, ShpTraitsTrieMutation]>>,
1963
+ oldRoot: H256,
1708
1964
  newRoot: H256
1709
1965
  ], {
1710
- provider: H256;
1711
- mutations: Vec<ITuple<[H256, ShpTraitsTrieRemoveMutation]>>;
1966
+ providerId: H256;
1967
+ mutations: Vec<ITuple<[H256, ShpTraitsTrieMutation]>>;
1968
+ oldRoot: H256;
1712
1969
  newRoot: H256;
1713
1970
  }>;
1714
1971
  /**
1715
1972
  * A manual challenge was submitted.
1716
1973
  **/
1717
1974
  NewChallenge: AugmentedEvent<ApiType, [
1718
- who: AccountId32,
1975
+ who: Option<AccountId32>,
1719
1976
  keyChallenged: H256
1720
1977
  ], {
1721
- who: AccountId32;
1978
+ who: Option<AccountId32>;
1722
1979
  keyChallenged: H256;
1723
1980
  }>;
1724
1981
  /**
@@ -1750,10 +2007,22 @@ declare module "@polkadot/api-base/types/events" {
1750
2007
  **/
1751
2008
  NewCheckpointChallenge: AugmentedEvent<ApiType, [
1752
2009
  challengesTicker: u32,
1753
- challenges: Vec<ITuple<[H256, Option<ShpTraitsTrieRemoveMutation>]>>
2010
+ challenges: Vec<PalletProofsDealerCustomChallenge>
1754
2011
  ], {
1755
2012
  challengesTicker: u32;
1756
- challenges: Vec<ITuple<[H256, Option<ShpTraitsTrieRemoveMutation>]>>;
2013
+ challenges: Vec<PalletProofsDealerCustomChallenge>;
2014
+ }>;
2015
+ /**
2016
+ * A priority challenge was submitted.
2017
+ **/
2018
+ NewPriorityChallenge: AugmentedEvent<ApiType, [
2019
+ who: Option<AccountId32>,
2020
+ keyChallenged: H256,
2021
+ shouldRemoveKey: bool
2022
+ ], {
2023
+ who: Option<AccountId32>;
2024
+ keyChallenged: H256;
2025
+ shouldRemoveKey: bool;
1757
2026
  }>;
1758
2027
  /**
1759
2028
  * No record of the last tick the Provider submitted a proof for.
@@ -1765,11 +2034,13 @@ declare module "@polkadot/api-base/types/events" {
1765
2034
  * A proof was accepted.
1766
2035
  **/
1767
2036
  ProofAccepted: AugmentedEvent<ApiType, [
1768
- provider: H256,
1769
- proof: PalletProofsDealerProof
2037
+ providerId: H256,
2038
+ proof: PalletProofsDealerProof,
2039
+ lastTickProven: u32
1770
2040
  ], {
1771
- provider: H256;
2041
+ providerId: H256;
1772
2042
  proof: PalletProofsDealerProof;
2043
+ lastTickProven: u32;
1773
2044
  }>;
1774
2045
  /**
1775
2046
  * A provider was marked as slashable and their challenge deadline was forcefully pushed.
@@ -1787,6 +2058,23 @@ declare module "@polkadot/api-base/types/events" {
1787
2058
  [key: string]: AugmentedEvent<ApiType>;
1788
2059
  };
1789
2060
  providers: {
2061
+ /**
2062
+ * Event emitted when a provider has been slashed and they have reached a capacity deficit (i.e. the provider's capacity fell below their used capacity)
2063
+ * signalling the end of the grace period since an automatic top up could not be performed due to insufficient free balance.
2064
+ **/
2065
+ AwaitingTopUp: AugmentedEvent<ApiType, [
2066
+ providerId: H256,
2067
+ topUpMetadata: PalletStorageProvidersTopUpMetadata
2068
+ ], {
2069
+ providerId: H256;
2070
+ topUpMetadata: PalletStorageProvidersTopUpMetadata;
2071
+ }>;
2072
+ /**
2073
+ * Event emitted when a BSP has been deleted.
2074
+ **/
2075
+ BspDeleted: AugmentedEvent<ApiType, [providerId: H256], {
2076
+ providerId: H256;
2077
+ }>;
1790
2078
  /**
1791
2079
  * Event emitted when a Backup Storage Provider has requested to sign up successfully. Provides information about
1792
2080
  * that BSP's account id, its multiaddresses, and the total data it can store according to its stake.
@@ -1813,19 +2101,45 @@ declare module "@polkadot/api-base/types/events" {
1813
2101
  }>;
1814
2102
  /**
1815
2103
  * Event emitted when a Backup Storage Provider has confirmed its sign up successfully. Provides information about
1816
- * that BSP's account id, the total data it can store according to its stake, and its multiaddress.
2104
+ * that BSP's account id, the initial root of the Merkle Patricia Trie that it stores, the total data it can store
2105
+ * according to its stake, and its multiaddress.
1817
2106
  **/
1818
2107
  BspSignUpSuccess: AugmentedEvent<ApiType, [
1819
2108
  who: AccountId32,
1820
2109
  bspId: H256,
2110
+ root: H256,
1821
2111
  multiaddresses: Vec<Bytes>,
1822
2112
  capacity: u64
1823
2113
  ], {
1824
2114
  who: AccountId32;
1825
2115
  bspId: H256;
2116
+ root: H256;
1826
2117
  multiaddresses: Vec<Bytes>;
1827
2118
  capacity: u64;
1828
2119
  }>;
2120
+ /**
2121
+ * Event emitted when a bucket's root has been changed.
2122
+ **/
2123
+ BucketRootChanged: AugmentedEvent<ApiType, [
2124
+ bucketId: H256,
2125
+ oldRoot: H256,
2126
+ newRoot: H256
2127
+ ], {
2128
+ bucketId: H256;
2129
+ oldRoot: H256;
2130
+ newRoot: H256;
2131
+ }>;
2132
+ /**
2133
+ * Event emitted when the provider that has been marked as insolvent was a MSP. It notifies the users of that MSP
2134
+ * the buckets that it was holding, so they can take appropriate measures.
2135
+ **/
2136
+ BucketsOfInsolventMsp: AugmentedEvent<ApiType, [
2137
+ mspId: H256,
2138
+ buckets: Vec<H256>
2139
+ ], {
2140
+ mspId: H256;
2141
+ buckets: Vec<H256>;
2142
+ }>;
1829
2143
  /**
1830
2144
  * Event emitted when a SP has changed its capacity successfully. Provides information about
1831
2145
  * that SP's account id, its old total data that could store, and the new total data.
@@ -1843,6 +2157,57 @@ declare module "@polkadot/api-base/types/events" {
1843
2157
  newCapacity: u64;
1844
2158
  nextBlockWhenChangeAllowed: u32;
1845
2159
  }>;
2160
+ /**
2161
+ * Event emitted when the account ID of a provider that has just been marked as insolvent can't be found in storage.
2162
+ **/
2163
+ FailedToGetOwnerAccountOfInsolventProvider: AugmentedEvent<ApiType, [
2164
+ providerId: H256
2165
+ ], {
2166
+ providerId: H256;
2167
+ }>;
2168
+ /**
2169
+ * Event emitted when there was an inconsistency error and the provider was found in `ProviderTopUpExpirations`
2170
+ * for a tick that wasn't actually when its top up expired, and when trying to insert it with the actual
2171
+ * expiration tick in `ProviderTopUpExpirations` the append failed.
2172
+ *
2173
+ * The result of this is that the provider's top up expiration will be reinserted at the correct expiration tick based on the
2174
+ * `TopUpMetadata` found in `AwaitingTopUpFromProviders` storage.
2175
+ **/
2176
+ FailedToInsertProviderTopUpExpiration: AugmentedEvent<ApiType, [
2177
+ providerId: H256,
2178
+ expirationTick: u32
2179
+ ], {
2180
+ providerId: H256;
2181
+ expirationTick: u32;
2182
+ }>;
2183
+ /**
2184
+ * Event emitted when there's an error slashing the now insolvent provider.
2185
+ **/
2186
+ FailedToSlashInsolventProvider: AugmentedEvent<ApiType, [
2187
+ providerId: H256,
2188
+ amountToSlash: u128,
2189
+ error: SpRuntimeDispatchError
2190
+ ], {
2191
+ providerId: H256;
2192
+ amountToSlash: u128;
2193
+ error: SpRuntimeDispatchError;
2194
+ }>;
2195
+ /**
2196
+ * Event emitted when there's an error stopping all cycles for an insolvent Backup Storage Provider.
2197
+ **/
2198
+ FailedToStopAllCyclesForInsolventBsp: AugmentedEvent<ApiType, [
2199
+ providerId: H256,
2200
+ error: SpRuntimeDispatchError
2201
+ ], {
2202
+ providerId: H256;
2203
+ error: SpRuntimeDispatchError;
2204
+ }>;
2205
+ /**
2206
+ * Event emitted when an MSP has been deleted.
2207
+ **/
2208
+ MspDeleted: AugmentedEvent<ApiType, [providerId: H256], {
2209
+ providerId: H256;
2210
+ }>;
1846
2211
  /**
1847
2212
  * Event emitted when a Main Storage Provider has requested to sign up successfully. Provides information about
1848
2213
  * that MSP's account id, its multiaddresses, the total data it can store according to its stake, and its value proposition.
@@ -1850,13 +2215,11 @@ declare module "@polkadot/api-base/types/events" {
1850
2215
  MspRequestSignUpSuccess: AugmentedEvent<ApiType, [
1851
2216
  who: AccountId32,
1852
2217
  multiaddresses: Vec<Bytes>,
1853
- capacity: u64,
1854
- valueProp: PalletStorageProvidersValueProposition
2218
+ capacity: u64
1855
2219
  ], {
1856
2220
  who: AccountId32;
1857
2221
  multiaddresses: Vec<Bytes>;
1858
2222
  capacity: u64;
1859
- valueProp: PalletStorageProvidersValueProposition;
1860
2223
  }>;
1861
2224
  /**
1862
2225
  * Event emitted when a Main Storage Provider has signed off successfully. Provides information about
@@ -1878,13 +2241,42 @@ declare module "@polkadot/api-base/types/events" {
1878
2241
  mspId: H256,
1879
2242
  multiaddresses: Vec<Bytes>,
1880
2243
  capacity: u64,
1881
- valueProp: PalletStorageProvidersValueProposition
2244
+ valueProp: PalletStorageProvidersValuePropositionWithId
1882
2245
  ], {
1883
2246
  who: AccountId32;
1884
2247
  mspId: H256;
1885
2248
  multiaddresses: Vec<Bytes>;
1886
2249
  capacity: u64;
1887
- valueProp: PalletStorageProvidersValueProposition;
2250
+ valueProp: PalletStorageProvidersValuePropositionWithId;
2251
+ }>;
2252
+ /**
2253
+ * Event emitted when a Provider has added a new MultiAddress to its account.
2254
+ **/
2255
+ MultiAddressAdded: AugmentedEvent<ApiType, [
2256
+ providerId: H256,
2257
+ newMultiaddress: Bytes
2258
+ ], {
2259
+ providerId: H256;
2260
+ newMultiaddress: Bytes;
2261
+ }>;
2262
+ /**
2263
+ * Event emitted when a Provider has removed a MultiAddress from its account.
2264
+ **/
2265
+ MultiAddressRemoved: AugmentedEvent<ApiType, [
2266
+ providerId: H256,
2267
+ removedMultiaddress: Bytes
2268
+ ], {
2269
+ providerId: H256;
2270
+ removedMultiaddress: Bytes;
2271
+ }>;
2272
+ /**
2273
+ * Event emitted when a provider has been marked as insolvent.
2274
+ *
2275
+ * This happens when the provider hasn't topped up their deposit within the grace period after being slashed
2276
+ * and they have a capacity deficit (i.e. their capacity based on their stake is below their used capacity by the files it stores).
2277
+ **/
2278
+ ProviderInsolvent: AugmentedEvent<ApiType, [providerId: H256], {
2279
+ providerId: H256;
1888
2280
  }>;
1889
2281
  /**
1890
2282
  * Event emitted when a sign up request has been canceled successfully. Provides information about
@@ -1894,14 +2286,46 @@ declare module "@polkadot/api-base/types/events" {
1894
2286
  who: AccountId32;
1895
2287
  }>;
1896
2288
  /**
1897
- * Event emitted when an SP has been slashed.
2289
+ * Event emitted when a SP has been slashed.
1898
2290
  **/
1899
2291
  Slashed: AugmentedEvent<ApiType, [
1900
2292
  providerId: H256,
1901
- amountSlashed: u128
2293
+ amount: u128
2294
+ ], {
2295
+ providerId: H256;
2296
+ amount: u128;
2297
+ }>;
2298
+ /**
2299
+ * Event emitted when an SP has topped up its deposit based on slash amount.
2300
+ **/
2301
+ TopUpFulfilled: AugmentedEvent<ApiType, [
2302
+ providerId: H256,
2303
+ amount: u128
1902
2304
  ], {
1903
2305
  providerId: H256;
1904
- amountSlashed: u128;
2306
+ amount: u128;
2307
+ }>;
2308
+ /**
2309
+ * Event emitted when an MSP adds a new value proposition.
2310
+ **/
2311
+ ValuePropAdded: AugmentedEvent<ApiType, [
2312
+ mspId: H256,
2313
+ valuePropId: H256,
2314
+ valueProp: PalletStorageProvidersValueProposition
2315
+ ], {
2316
+ mspId: H256;
2317
+ valuePropId: H256;
2318
+ valueProp: PalletStorageProvidersValueProposition;
2319
+ }>;
2320
+ /**
2321
+ * Event emitted when an MSP's value proposition is made unavailable.
2322
+ **/
2323
+ ValuePropUnavailable: AugmentedEvent<ApiType, [
2324
+ mspId: H256,
2325
+ valuePropId: H256
2326
+ ], {
2327
+ mspId: H256;
2328
+ valuePropId: H256;
1905
2329
  }>;
1906
2330
  /**
1907
2331
  * Generic event
@@ -1985,18 +2409,18 @@ declare module "@polkadot/api-base/types/events" {
1985
2409
  **/
1986
2410
  ExtrinsicFailed: AugmentedEvent<ApiType, [
1987
2411
  dispatchError: SpRuntimeDispatchError,
1988
- dispatchInfo: FrameSupportDispatchDispatchInfo
2412
+ dispatchInfo: FrameSystemDispatchEventInfo
1989
2413
  ], {
1990
2414
  dispatchError: SpRuntimeDispatchError;
1991
- dispatchInfo: FrameSupportDispatchDispatchInfo;
2415
+ dispatchInfo: FrameSystemDispatchEventInfo;
1992
2416
  }>;
1993
2417
  /**
1994
2418
  * An extrinsic completed successfully.
1995
2419
  **/
1996
2420
  ExtrinsicSuccess: AugmentedEvent<ApiType, [
1997
- dispatchInfo: FrameSupportDispatchDispatchInfo
2421
+ dispatchInfo: FrameSystemDispatchEventInfo
1998
2422
  ], {
1999
- dispatchInfo: FrameSupportDispatchDispatchInfo;
2423
+ dispatchInfo: FrameSystemDispatchEventInfo;
2000
2424
  }>;
2001
2425
  /**
2002
2426
  * An account was reaped.