@storagehub/api-augment 0.1.0 → 0.2.2

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 +105 -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 +145 -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 +135 -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 +543 -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 +1419 -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 +325 -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 +202 -8
  103. package/src/{interfaces → parachain/interfaces}/augment-api-tx.ts +374 -182
  104. package/src/{interfaces → parachain/interfaces}/augment-types.ts +280 -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 +165 -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 +977 -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 +2776 -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 +398 -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
@@ -0,0 +1,1813 @@
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/events";
7
+
8
+ import type { ApiTypes, AugmentedEvent } from "@polkadot/api-base/types";
9
+ import type {
10
+ Bytes,
11
+ Null,
12
+ Option,
13
+ Result,
14
+ U8aFixed,
15
+ Vec,
16
+ bool,
17
+ u128,
18
+ u32,
19
+ u64
20
+ } from "@polkadot/types-codec";
21
+ import type { ITuple } from "@polkadot/types-codec/types";
22
+ import type { AccountId20, H160, H256 } from "@polkadot/types/interfaces/runtime";
23
+ import type {
24
+ EthereumLog,
25
+ EvmCoreErrorExitReason,
26
+ FpAccountEthereumSignature,
27
+ FrameSupportTokensMiscBalanceStatus,
28
+ FrameSystemDispatchEventInfo,
29
+ PalletFileSystemEitherAccountIdOrMspId,
30
+ PalletFileSystemFileOperationIntention,
31
+ PalletFileSystemRejectedStorageRequestReason,
32
+ PalletNftsAttributeNamespace,
33
+ PalletNftsPalletAttributes,
34
+ PalletNftsPriceWithDirection,
35
+ PalletProofsDealerCustomChallenge,
36
+ PalletProofsDealerProof,
37
+ PalletStorageProvidersStorageProviderId,
38
+ PalletStorageProvidersTopUpMetadata,
39
+ PalletStorageProvidersValueProposition,
40
+ PalletStorageProvidersValuePropositionWithId,
41
+ ShSolochainEvmRuntimeConfigsRuntimeParamsRuntimeParametersKey,
42
+ ShSolochainEvmRuntimeConfigsRuntimeParamsRuntimeParametersValue,
43
+ ShpFileMetadataFileMetadata,
44
+ ShpTraitsTrieMutation,
45
+ SpConsensusGrandpaAppPublic,
46
+ SpRuntimeDispatchError
47
+ } from "@polkadot/types/lookup";
48
+
49
+ export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
50
+
51
+ declare module "@polkadot/api-base/types/events" {
52
+ interface AugmentedEvents<ApiType extends ApiTypes> {
53
+ balances: {
54
+ /**
55
+ * A balance was set by root.
56
+ **/
57
+ BalanceSet: AugmentedEvent<
58
+ ApiType,
59
+ [who: AccountId20, free: u128],
60
+ { who: AccountId20; free: u128 }
61
+ >;
62
+ /**
63
+ * Some amount was burned from an account.
64
+ **/
65
+ Burned: AugmentedEvent<
66
+ ApiType,
67
+ [who: AccountId20, amount: u128],
68
+ { who: AccountId20; amount: u128 }
69
+ >;
70
+ /**
71
+ * Some amount was deposited (e.g. for transaction fees).
72
+ **/
73
+ Deposit: AugmentedEvent<
74
+ ApiType,
75
+ [who: AccountId20, amount: u128],
76
+ { who: AccountId20; amount: u128 }
77
+ >;
78
+ /**
79
+ * An account was removed whose balance was non-zero but below ExistentialDeposit,
80
+ * resulting in an outright loss.
81
+ **/
82
+ DustLost: AugmentedEvent<
83
+ ApiType,
84
+ [account: AccountId20, amount: u128],
85
+ { account: AccountId20; amount: u128 }
86
+ >;
87
+ /**
88
+ * An account was created with some free balance.
89
+ **/
90
+ Endowed: AugmentedEvent<
91
+ ApiType,
92
+ [account: AccountId20, freeBalance: u128],
93
+ { account: AccountId20; freeBalance: u128 }
94
+ >;
95
+ /**
96
+ * Some balance was frozen.
97
+ **/
98
+ Frozen: AugmentedEvent<
99
+ ApiType,
100
+ [who: AccountId20, amount: u128],
101
+ { who: AccountId20; amount: u128 }
102
+ >;
103
+ /**
104
+ * Total issuance was increased by `amount`, creating a credit to be balanced.
105
+ **/
106
+ Issued: AugmentedEvent<ApiType, [amount: u128], { amount: u128 }>;
107
+ /**
108
+ * Some balance was locked.
109
+ **/
110
+ Locked: AugmentedEvent<
111
+ ApiType,
112
+ [who: AccountId20, amount: u128],
113
+ { who: AccountId20; amount: u128 }
114
+ >;
115
+ /**
116
+ * Some amount was minted into an account.
117
+ **/
118
+ Minted: AugmentedEvent<
119
+ ApiType,
120
+ [who: AccountId20, amount: u128],
121
+ { who: AccountId20; amount: u128 }
122
+ >;
123
+ /**
124
+ * Total issuance was decreased by `amount`, creating a debt to be balanced.
125
+ **/
126
+ Rescinded: AugmentedEvent<ApiType, [amount: u128], { amount: u128 }>;
127
+ /**
128
+ * Some balance was reserved (moved from free to reserved).
129
+ **/
130
+ Reserved: AugmentedEvent<
131
+ ApiType,
132
+ [who: AccountId20, amount: u128],
133
+ { who: AccountId20; amount: u128 }
134
+ >;
135
+ /**
136
+ * Some balance was moved from the reserve of the first account to the second account.
137
+ * Final argument indicates the destination balance type.
138
+ **/
139
+ ReserveRepatriated: AugmentedEvent<
140
+ ApiType,
141
+ [
142
+ from: AccountId20,
143
+ to: AccountId20,
144
+ amount: u128,
145
+ destinationStatus: FrameSupportTokensMiscBalanceStatus
146
+ ],
147
+ {
148
+ from: AccountId20;
149
+ to: AccountId20;
150
+ amount: u128;
151
+ destinationStatus: FrameSupportTokensMiscBalanceStatus;
152
+ }
153
+ >;
154
+ /**
155
+ * Some amount was restored into an account.
156
+ **/
157
+ Restored: AugmentedEvent<
158
+ ApiType,
159
+ [who: AccountId20, amount: u128],
160
+ { who: AccountId20; amount: u128 }
161
+ >;
162
+ /**
163
+ * Some amount was removed from the account (e.g. for misbehavior).
164
+ **/
165
+ Slashed: AugmentedEvent<
166
+ ApiType,
167
+ [who: AccountId20, amount: u128],
168
+ { who: AccountId20; amount: u128 }
169
+ >;
170
+ /**
171
+ * Some amount was suspended from an account (it can be restored later).
172
+ **/
173
+ Suspended: AugmentedEvent<
174
+ ApiType,
175
+ [who: AccountId20, amount: u128],
176
+ { who: AccountId20; amount: u128 }
177
+ >;
178
+ /**
179
+ * Some balance was thawed.
180
+ **/
181
+ Thawed: AugmentedEvent<
182
+ ApiType,
183
+ [who: AccountId20, amount: u128],
184
+ { who: AccountId20; amount: u128 }
185
+ >;
186
+ /**
187
+ * The `TotalIssuance` was forcefully changed.
188
+ **/
189
+ TotalIssuanceForced: AugmentedEvent<
190
+ ApiType,
191
+ [old: u128, new_: u128],
192
+ { old: u128; new_: u128 }
193
+ >;
194
+ /**
195
+ * Transfer succeeded.
196
+ **/
197
+ Transfer: AugmentedEvent<
198
+ ApiType,
199
+ [from: AccountId20, to: AccountId20, amount: u128],
200
+ { from: AccountId20; to: AccountId20; amount: u128 }
201
+ >;
202
+ /**
203
+ * Some balance was unlocked.
204
+ **/
205
+ Unlocked: AugmentedEvent<
206
+ ApiType,
207
+ [who: AccountId20, amount: u128],
208
+ { who: AccountId20; amount: u128 }
209
+ >;
210
+ /**
211
+ * Some balance was unreserved (moved from reserved to free).
212
+ **/
213
+ Unreserved: AugmentedEvent<
214
+ ApiType,
215
+ [who: AccountId20, amount: u128],
216
+ { who: AccountId20; amount: u128 }
217
+ >;
218
+ /**
219
+ * An account was upgraded.
220
+ **/
221
+ Upgraded: AugmentedEvent<ApiType, [who: AccountId20], { who: AccountId20 }>;
222
+ /**
223
+ * Some amount was withdrawn from the account (e.g. for transaction fees).
224
+ **/
225
+ Withdraw: AugmentedEvent<
226
+ ApiType,
227
+ [who: AccountId20, amount: u128],
228
+ { who: AccountId20; amount: u128 }
229
+ >;
230
+ /**
231
+ * Generic event
232
+ **/
233
+ [key: string]: AugmentedEvent<ApiType>;
234
+ };
235
+ bucketNfts: {
236
+ /**
237
+ * Notifies that access to a bucket has been shared with another account.
238
+ **/
239
+ AccessShared: AugmentedEvent<
240
+ ApiType,
241
+ [issuer: AccountId20, recipient: AccountId20],
242
+ { issuer: AccountId20; recipient: AccountId20 }
243
+ >;
244
+ /**
245
+ * Notifies that an item has been burned.
246
+ **/
247
+ ItemBurned: AugmentedEvent<
248
+ ApiType,
249
+ [account: AccountId20, bucket: H256, itemId: u32],
250
+ { account: AccountId20; bucket: H256; itemId: u32 }
251
+ >;
252
+ /**
253
+ * Notifies that the read access for an item has been updated.
254
+ **/
255
+ ItemReadAccessUpdated: AugmentedEvent<
256
+ ApiType,
257
+ [admin: AccountId20, bucket: H256, itemId: u32],
258
+ { admin: AccountId20; bucket: H256; itemId: u32 }
259
+ >;
260
+ /**
261
+ * Generic event
262
+ **/
263
+ [key: string]: AugmentedEvent<ApiType>;
264
+ };
265
+ ethereum: {
266
+ /**
267
+ * An ethereum transaction was successfully executed.
268
+ **/
269
+ Executed: AugmentedEvent<
270
+ ApiType,
271
+ [
272
+ from: H160,
273
+ to: H160,
274
+ transactionHash: H256,
275
+ exitReason: EvmCoreErrorExitReason,
276
+ extraData: Bytes
277
+ ],
278
+ {
279
+ from: H160;
280
+ to: H160;
281
+ transactionHash: H256;
282
+ exitReason: EvmCoreErrorExitReason;
283
+ extraData: Bytes;
284
+ }
285
+ >;
286
+ /**
287
+ * Generic event
288
+ **/
289
+ [key: string]: AugmentedEvent<ApiType>;
290
+ };
291
+ evm: {
292
+ /**
293
+ * A contract has been created at given address.
294
+ **/
295
+ Created: AugmentedEvent<ApiType, [address: H160], { address: H160 }>;
296
+ /**
297
+ * A contract was attempted to be created, but the execution failed.
298
+ **/
299
+ CreatedFailed: AugmentedEvent<ApiType, [address: H160], { address: H160 }>;
300
+ /**
301
+ * A contract has been executed successfully with states applied.
302
+ **/
303
+ Executed: AugmentedEvent<ApiType, [address: H160], { address: H160 }>;
304
+ /**
305
+ * A contract has been executed with errors. States are reverted with only gas fees applied.
306
+ **/
307
+ ExecutedFailed: AugmentedEvent<ApiType, [address: H160], { address: H160 }>;
308
+ /**
309
+ * Ethereum events from contracts.
310
+ **/
311
+ Log: AugmentedEvent<ApiType, [log: EthereumLog], { log: EthereumLog }>;
312
+ /**
313
+ * Generic event
314
+ **/
315
+ [key: string]: AugmentedEvent<ApiType>;
316
+ };
317
+ fileSystem: {
318
+ /**
319
+ * Notifies that a BSP has been accepted to store a given file.
320
+ **/
321
+ AcceptedBspVolunteer: AugmentedEvent<
322
+ ApiType,
323
+ [
324
+ bspId: H256,
325
+ bucketId: H256,
326
+ location: Bytes,
327
+ fingerprint: H256,
328
+ multiaddresses: Vec<Bytes>,
329
+ owner: AccountId20,
330
+ size_: u64
331
+ ],
332
+ {
333
+ bspId: H256;
334
+ bucketId: H256;
335
+ location: Bytes;
336
+ fingerprint: H256;
337
+ multiaddresses: Vec<Bytes>;
338
+ owner: AccountId20;
339
+ size_: u64;
340
+ }
341
+ >;
342
+ /**
343
+ * Notifies that a BSP's challenge cycle has been initialised, adding the first file
344
+ * key(s) to the BSP's Merkle Patricia Forest.
345
+ **/
346
+ BspChallengeCycleInitialised: AugmentedEvent<
347
+ ApiType,
348
+ [who: AccountId20, bspId: H256],
349
+ { who: AccountId20; bspId: H256 }
350
+ >;
351
+ /**
352
+ * Notifies that a BSP confirmed storing a file(s).
353
+ **/
354
+ BspConfirmedStoring: AugmentedEvent<
355
+ ApiType,
356
+ [
357
+ who: AccountId20,
358
+ bspId: H256,
359
+ confirmedFileKeys: Vec<ITuple<[H256, ShpFileMetadataFileMetadata]>>,
360
+ skippedFileKeys: Vec<H256>,
361
+ newRoot: H256
362
+ ],
363
+ {
364
+ who: AccountId20;
365
+ bspId: H256;
366
+ confirmedFileKeys: Vec<ITuple<[H256, ShpFileMetadataFileMetadata]>>;
367
+ skippedFileKeys: Vec<H256>;
368
+ newRoot: H256;
369
+ }
370
+ >;
371
+ /**
372
+ * Notifies that a BSP has stopped storing a file.
373
+ **/
374
+ BspConfirmStoppedStoring: AugmentedEvent<
375
+ ApiType,
376
+ [bspId: H256, fileKey: H256, newRoot: H256],
377
+ { bspId: H256; fileKey: H256; newRoot: H256 }
378
+ >;
379
+ /**
380
+ * Notifies that a file deletion has been completed successfully for a BSP.
381
+ **/
382
+ BspFileDeletionCompleted: AugmentedEvent<
383
+ ApiType,
384
+ [
385
+ user: AccountId20,
386
+ fileKey: H256,
387
+ fileSize: u64,
388
+ bspId: H256,
389
+ oldRoot: H256,
390
+ newRoot: H256
391
+ ],
392
+ {
393
+ user: AccountId20;
394
+ fileKey: H256;
395
+ fileSize: u64;
396
+ bspId: H256;
397
+ oldRoot: H256;
398
+ newRoot: H256;
399
+ }
400
+ >;
401
+ BspRequestedToStopStoring: AugmentedEvent<
402
+ ApiType,
403
+ [bspId: H256, fileKey: H256, owner: AccountId20, location: Bytes],
404
+ { bspId: H256; fileKey: H256; owner: AccountId20; location: Bytes }
405
+ >;
406
+ /**
407
+ * Notifies that an empty bucket has been deleted.
408
+ **/
409
+ BucketDeleted: AugmentedEvent<
410
+ ApiType,
411
+ [who: AccountId20, bucketId: H256, maybeCollectionId: Option<u32>],
412
+ { who: AccountId20; bucketId: H256; maybeCollectionId: Option<u32> }
413
+ >;
414
+ /**
415
+ * Notifies that a file deletion has been completed successfully for a Bucket.
416
+ **/
417
+ BucketFileDeletionCompleted: AugmentedEvent<
418
+ ApiType,
419
+ [
420
+ user: AccountId20,
421
+ fileKey: H256,
422
+ fileSize: u64,
423
+ bucketId: H256,
424
+ mspId: Option<H256>,
425
+ oldRoot: H256,
426
+ newRoot: H256
427
+ ],
428
+ {
429
+ user: AccountId20;
430
+ fileKey: H256;
431
+ fileSize: u64;
432
+ bucketId: H256;
433
+ mspId: Option<H256>;
434
+ oldRoot: H256;
435
+ newRoot: H256;
436
+ }
437
+ >;
438
+ /**
439
+ * Notifies that a bucket's privacy has been updated.
440
+ **/
441
+ BucketPrivacyUpdated: AugmentedEvent<
442
+ ApiType,
443
+ [who: AccountId20, bucketId: H256, collectionId: Option<u32>, private: bool],
444
+ { who: AccountId20; bucketId: H256; collectionId: Option<u32>; private: bool }
445
+ >;
446
+ /**
447
+ * Failed to decrease MSP's used capacity for expired file deletion request
448
+ **/
449
+ FailedToDecreaseMspUsedCapacity: AugmentedEvent<
450
+ ApiType,
451
+ [
452
+ user: AccountId20,
453
+ mspId: H256,
454
+ fileKey: H256,
455
+ fileSize: u64,
456
+ error: SpRuntimeDispatchError
457
+ ],
458
+ {
459
+ user: AccountId20;
460
+ mspId: H256;
461
+ fileKey: H256;
462
+ fileSize: u64;
463
+ error: SpRuntimeDispatchError;
464
+ }
465
+ >;
466
+ /**
467
+ * Failed to get the MSP owner of the bucket for an expired file deletion request
468
+ * This is different from the bucket not having a MSP, which is allowed and won't error
469
+ **/
470
+ FailedToGetMspOfBucket: AugmentedEvent<
471
+ ApiType,
472
+ [bucketId: H256, error: SpRuntimeDispatchError],
473
+ { bucketId: H256; error: SpRuntimeDispatchError }
474
+ >;
475
+ /**
476
+ * Notifies that a priority challenge with a trie remove mutation failed to be queued in the `on_idle` hook.
477
+ * This can happen if the priority challenge queue is full, and the failed challenge should be manually
478
+ * queued at a later time.
479
+ **/
480
+ FailedToQueuePriorityChallenge: AugmentedEvent<
481
+ ApiType,
482
+ [fileKey: H256, error: SpRuntimeDispatchError],
483
+ { fileKey: H256; error: SpRuntimeDispatchError }
484
+ >;
485
+ /**
486
+ * Event to notify if, in the `on_idle` hook when cleaning up an expired storage request,
487
+ * the return of that storage request's deposit to the user failed.
488
+ **/
489
+ FailedToReleaseStorageRequestCreationDeposit: AugmentedEvent<
490
+ ApiType,
491
+ [fileKey: H256, owner: AccountId20, amountToReturn: u128, error: SpRuntimeDispatchError],
492
+ { fileKey: H256; owner: AccountId20; amountToReturn: u128; error: SpRuntimeDispatchError }
493
+ >;
494
+ /**
495
+ * Event to notify if, in the `on_idle` hook when cleaning up an expired storage request,
496
+ * the transfer of a part of that storage request's deposit to one of the volunteered BSPs failed.
497
+ **/
498
+ FailedToTransferDepositFundsToBsp: AugmentedEvent<
499
+ ApiType,
500
+ [
501
+ fileKey: H256,
502
+ owner: AccountId20,
503
+ bspId: H256,
504
+ amountToTransfer: u128,
505
+ error: SpRuntimeDispatchError
506
+ ],
507
+ {
508
+ fileKey: H256;
509
+ owner: AccountId20;
510
+ bspId: H256;
511
+ amountToTransfer: u128;
512
+ error: SpRuntimeDispatchError;
513
+ }
514
+ >;
515
+ /**
516
+ * Notifies that a file has been deleted from a rejected storage request.
517
+ **/
518
+ FileDeletedFromIncompleteStorageRequest: AugmentedEvent<
519
+ ApiType,
520
+ [fileKey: H256, bspId: Option<H256>],
521
+ { fileKey: H256; bspId: Option<H256> }
522
+ >;
523
+ /**
524
+ * Notifies that a file will be deleted.
525
+ **/
526
+ FileDeletionRequest: AugmentedEvent<
527
+ ApiType,
528
+ [
529
+ user: AccountId20,
530
+ fileKey: H256,
531
+ fileSize: u64,
532
+ bucketId: H256,
533
+ mspId: H256,
534
+ proofOfInclusion: bool
535
+ ],
536
+ {
537
+ user: AccountId20;
538
+ fileKey: H256;
539
+ fileSize: u64;
540
+ bucketId: H256;
541
+ mspId: H256;
542
+ proofOfInclusion: bool;
543
+ }
544
+ >;
545
+ /**
546
+ * Notifies that a file deletion has been requested.
547
+ * Contains a signed intention that allows any actor to execute the actual deletion.
548
+ **/
549
+ FileDeletionRequested: AugmentedEvent<
550
+ ApiType,
551
+ [
552
+ signedDeleteIntention: PalletFileSystemFileOperationIntention,
553
+ signature: FpAccountEthereumSignature
554
+ ],
555
+ {
556
+ signedDeleteIntention: PalletFileSystemFileOperationIntention;
557
+ signature: FpAccountEthereumSignature;
558
+ }
559
+ >;
560
+ /**
561
+ * Notifies that a storage request was marked as incomplete.
562
+ *
563
+ * This is important for fisherman nodes to listen and react to, to delete
564
+ * the file key from the BSPs and/or Bucket storing that file from their forest.
565
+ **/
566
+ IncompleteStorageRequest: AugmentedEvent<ApiType, [fileKey: H256], { fileKey: H256 }>;
567
+ /**
568
+ * Notifies that a bucket has been moved to a new MSP under a new value proposition.
569
+ **/
570
+ MoveBucketAccepted: AugmentedEvent<
571
+ ApiType,
572
+ [bucketId: H256, oldMspId: Option<H256>, newMspId: H256, valuePropId: H256],
573
+ { bucketId: H256; oldMspId: Option<H256>; newMspId: H256; valuePropId: H256 }
574
+ >;
575
+ /**
576
+ * Notifies that a bucket move request has been rejected by the MSP.
577
+ **/
578
+ MoveBucketRejected: AugmentedEvent<
579
+ ApiType,
580
+ [bucketId: H256, oldMspId: Option<H256>, newMspId: H256],
581
+ { bucketId: H256; oldMspId: Option<H256>; newMspId: H256 }
582
+ >;
583
+ /**
584
+ * Notifies that a bucket is being moved to a new MSP.
585
+ **/
586
+ MoveBucketRequested: AugmentedEvent<
587
+ ApiType,
588
+ [who: AccountId20, bucketId: H256, newMspId: H256, newValuePropId: H256],
589
+ { who: AccountId20; bucketId: H256; newMspId: H256; newValuePropId: H256 }
590
+ >;
591
+ /**
592
+ * Notifies that a move bucket request has expired.
593
+ **/
594
+ MoveBucketRequestExpired: AugmentedEvent<ApiType, [bucketId: H256], { bucketId: H256 }>;
595
+ /**
596
+ * Notifies that a Main Storage Provider (MSP) has accepted a storage request for a specific file key.
597
+ *
598
+ * This event is emitted when an MSP agrees to store a file, but the storage request
599
+ * is not yet fully fulfilled (i.e., the required number of Backup Storage Providers
600
+ * have not yet confirmed storage).
601
+ *
602
+ * # Note
603
+ * This event is not emitted when the storage request is immediately fulfilled upon
604
+ * MSP acceptance. In such cases, a [`StorageRequestFulfilled`] event is emitted instead.
605
+ **/
606
+ MspAcceptedStorageRequest: AugmentedEvent<
607
+ ApiType,
608
+ [fileKey: H256, fileMetadata: ShpFileMetadataFileMetadata],
609
+ { fileKey: H256; fileMetadata: ShpFileMetadataFileMetadata }
610
+ >;
611
+ /**
612
+ * Notifies that a MSP has stopped storing a bucket.
613
+ **/
614
+ MspStoppedStoringBucket: AugmentedEvent<
615
+ ApiType,
616
+ [mspId: H256, owner: AccountId20, bucketId: H256],
617
+ { mspId: H256; owner: AccountId20; bucketId: H256 }
618
+ >;
619
+ /**
620
+ * Notifies that a MSP has stopped storing a bucket because its owner has become insolvent.
621
+ **/
622
+ MspStopStoringBucketInsolventUser: AugmentedEvent<
623
+ ApiType,
624
+ [mspId: H256, owner: AccountId20, bucketId: H256],
625
+ { mspId: H256; owner: AccountId20; bucketId: H256 }
626
+ >;
627
+ /**
628
+ * Notifies that a new bucket has been created.
629
+ **/
630
+ NewBucket: AugmentedEvent<
631
+ ApiType,
632
+ [
633
+ who: AccountId20,
634
+ mspId: H256,
635
+ bucketId: H256,
636
+ name: Bytes,
637
+ root: H256,
638
+ collectionId: Option<u32>,
639
+ private: bool,
640
+ valuePropId: H256
641
+ ],
642
+ {
643
+ who: AccountId20;
644
+ mspId: H256;
645
+ bucketId: H256;
646
+ name: Bytes;
647
+ root: H256;
648
+ collectionId: Option<u32>;
649
+ private: bool;
650
+ valuePropId: H256;
651
+ }
652
+ >;
653
+ /**
654
+ * Notifies that a new collection has been created and associated with a bucket.
655
+ **/
656
+ NewCollectionAndAssociation: AugmentedEvent<
657
+ ApiType,
658
+ [who: AccountId20, bucketId: H256, collectionId: u32],
659
+ { who: AccountId20; bucketId: H256; collectionId: u32 }
660
+ >;
661
+ /**
662
+ * Notifies that a new file has been requested to be stored.
663
+ **/
664
+ NewStorageRequest: AugmentedEvent<
665
+ ApiType,
666
+ [
667
+ who: AccountId20,
668
+ fileKey: H256,
669
+ bucketId: H256,
670
+ location: Bytes,
671
+ fingerprint: H256,
672
+ size_: u64,
673
+ peerIds: Vec<Bytes>,
674
+ expiresAt: u32
675
+ ],
676
+ {
677
+ who: AccountId20;
678
+ fileKey: H256;
679
+ bucketId: H256;
680
+ location: Bytes;
681
+ fingerprint: H256;
682
+ size_: u64;
683
+ peerIds: Vec<Bytes>;
684
+ expiresAt: u32;
685
+ }
686
+ >;
687
+ /**
688
+ * Notifies that a file key has been queued for a priority challenge for file deletion.
689
+ **/
690
+ PriorityChallengeForFileDeletionQueued: AugmentedEvent<
691
+ ApiType,
692
+ [issuer: PalletFileSystemEitherAccountIdOrMspId, fileKey: H256],
693
+ { issuer: PalletFileSystemEitherAccountIdOrMspId; fileKey: H256 }
694
+ >;
695
+ /**
696
+ * Notifies that a proof has been submitted for a pending file deletion request.
697
+ **/
698
+ ProofSubmittedForPendingFileDeletionRequest: AugmentedEvent<
699
+ ApiType,
700
+ [
701
+ user: AccountId20,
702
+ fileKey: H256,
703
+ fileSize: u64,
704
+ bucketId: H256,
705
+ mspId: H256,
706
+ proofOfInclusion: bool
707
+ ],
708
+ {
709
+ user: AccountId20;
710
+ fileKey: H256;
711
+ fileSize: u64;
712
+ bucketId: H256;
713
+ mspId: H256;
714
+ proofOfInclusion: bool;
715
+ }
716
+ >;
717
+ /**
718
+ * Notifies that a SP has stopped storing a file because its owner has become insolvent.
719
+ **/
720
+ SpStopStoringInsolventUser: AugmentedEvent<
721
+ ApiType,
722
+ [spId: H256, fileKey: H256, owner: AccountId20, location: Bytes, newRoot: H256],
723
+ { spId: H256; fileKey: H256; owner: AccountId20; location: Bytes; newRoot: H256 }
724
+ >;
725
+ /**
726
+ * Notifies the expiration of a storage request. This means that the storage request has
727
+ * been accepted by the MSP but the BSP target has not been reached (possibly 0 BSPs).
728
+ * Note: This is a valid storage outcome, the user being responsible to track the number
729
+ * of BSPs and choose to either delete the file and re-issue a storage request or continue.
730
+ **/
731
+ StorageRequestExpired: AugmentedEvent<ApiType, [fileKey: H256], { fileKey: H256 }>;
732
+ /**
733
+ * Notifies that a storage request for a file key has been fulfilled.
734
+ * This means that the storage request has been accepted by the MSP and the BSP target
735
+ * has been reached.
736
+ **/
737
+ StorageRequestFulfilled: AugmentedEvent<ApiType, [fileKey: H256], { fileKey: H256 }>;
738
+ /**
739
+ * Notifies that a storage request has either been directly rejected by the MSP or
740
+ * the MSP did not respond to the storage request in time.
741
+ * Note: the storage request will be marked as "incomplete", and it is expected that fisherman
742
+ * nodes will pick it up and delete the file from the confirmed BSPs as well as the Bucket.
743
+ **/
744
+ StorageRequestRejected: AugmentedEvent<
745
+ ApiType,
746
+ [fileKey: H256, reason: PalletFileSystemRejectedStorageRequestReason],
747
+ { fileKey: H256; reason: PalletFileSystemRejectedStorageRequestReason }
748
+ >;
749
+ /**
750
+ * Notifies that a storage request has been revoked by the user who initiated it.
751
+ * Note: the storage request will be marked as "incomplete", and it is expected that fisherman
752
+ * nodes will pick it up and delete the file from the confirmed BSPs as well as the Bucket.
753
+ **/
754
+ StorageRequestRevoked: AugmentedEvent<ApiType, [fileKey: H256], { fileKey: H256 }>;
755
+ /**
756
+ * Event to notify of incoherencies in used capacity.
757
+ **/
758
+ UsedCapacityShouldBeZero: AugmentedEvent<
759
+ ApiType,
760
+ [actualUsedCapacity: u64],
761
+ { actualUsedCapacity: u64 }
762
+ >;
763
+ /**
764
+ * Generic event
765
+ **/
766
+ [key: string]: AugmentedEvent<ApiType>;
767
+ };
768
+ grandpa: {
769
+ /**
770
+ * New authority set has been applied.
771
+ **/
772
+ NewAuthorities: AugmentedEvent<
773
+ ApiType,
774
+ [authoritySet: Vec<ITuple<[SpConsensusGrandpaAppPublic, u64]>>],
775
+ { authoritySet: Vec<ITuple<[SpConsensusGrandpaAppPublic, u64]>> }
776
+ >;
777
+ /**
778
+ * Current authority set has been paused.
779
+ **/
780
+ Paused: AugmentedEvent<ApiType, []>;
781
+ /**
782
+ * Current authority set has been resumed.
783
+ **/
784
+ Resumed: AugmentedEvent<ApiType, []>;
785
+ /**
786
+ * Generic event
787
+ **/
788
+ [key: string]: AugmentedEvent<ApiType>;
789
+ };
790
+ nfts: {
791
+ /**
792
+ * All approvals of an item got cancelled.
793
+ **/
794
+ AllApprovalsCancelled: AugmentedEvent<
795
+ ApiType,
796
+ [collection: u32, item: u32, owner: AccountId20],
797
+ { collection: u32; item: u32; owner: AccountId20 }
798
+ >;
799
+ /**
800
+ * An approval for a `delegate` account to transfer the `item` of an item
801
+ * `collection` was cancelled by its `owner`.
802
+ **/
803
+ ApprovalCancelled: AugmentedEvent<
804
+ ApiType,
805
+ [collection: u32, item: u32, owner: AccountId20, delegate: AccountId20],
806
+ { collection: u32; item: u32; owner: AccountId20; delegate: AccountId20 }
807
+ >;
808
+ /**
809
+ * Attribute metadata has been cleared for a `collection` or `item`.
810
+ **/
811
+ AttributeCleared: AugmentedEvent<
812
+ ApiType,
813
+ [
814
+ collection: u32,
815
+ maybeItem: Option<u32>,
816
+ key: Bytes,
817
+ namespace: PalletNftsAttributeNamespace
818
+ ],
819
+ {
820
+ collection: u32;
821
+ maybeItem: Option<u32>;
822
+ key: Bytes;
823
+ namespace: PalletNftsAttributeNamespace;
824
+ }
825
+ >;
826
+ /**
827
+ * New attribute metadata has been set for a `collection` or `item`.
828
+ **/
829
+ AttributeSet: AugmentedEvent<
830
+ ApiType,
831
+ [
832
+ collection: u32,
833
+ maybeItem: Option<u32>,
834
+ key: Bytes,
835
+ value: Bytes,
836
+ namespace: PalletNftsAttributeNamespace
837
+ ],
838
+ {
839
+ collection: u32;
840
+ maybeItem: Option<u32>;
841
+ key: Bytes;
842
+ value: Bytes;
843
+ namespace: PalletNftsAttributeNamespace;
844
+ }
845
+ >;
846
+ /**
847
+ * An `item` was destroyed.
848
+ **/
849
+ Burned: AugmentedEvent<
850
+ ApiType,
851
+ [collection: u32, item: u32, owner: AccountId20],
852
+ { collection: u32; item: u32; owner: AccountId20 }
853
+ >;
854
+ /**
855
+ * A `collection` has had its config changed by the `Force` origin.
856
+ **/
857
+ CollectionConfigChanged: AugmentedEvent<ApiType, [collection: u32], { collection: u32 }>;
858
+ /**
859
+ * Some `collection` was locked.
860
+ **/
861
+ CollectionLocked: AugmentedEvent<ApiType, [collection: u32], { collection: u32 }>;
862
+ /**
863
+ * Max supply has been set for a collection.
864
+ **/
865
+ CollectionMaxSupplySet: AugmentedEvent<
866
+ ApiType,
867
+ [collection: u32, maxSupply: u32],
868
+ { collection: u32; maxSupply: u32 }
869
+ >;
870
+ /**
871
+ * Metadata has been cleared for a `collection`.
872
+ **/
873
+ CollectionMetadataCleared: AugmentedEvent<ApiType, [collection: u32], { collection: u32 }>;
874
+ /**
875
+ * New metadata has been set for a `collection`.
876
+ **/
877
+ CollectionMetadataSet: AugmentedEvent<
878
+ ApiType,
879
+ [collection: u32, data: Bytes],
880
+ { collection: u32; data: Bytes }
881
+ >;
882
+ /**
883
+ * Mint settings for a collection had changed.
884
+ **/
885
+ CollectionMintSettingsUpdated: AugmentedEvent<
886
+ ApiType,
887
+ [collection: u32],
888
+ { collection: u32 }
889
+ >;
890
+ /**
891
+ * A `collection` was created.
892
+ **/
893
+ Created: AugmentedEvent<
894
+ ApiType,
895
+ [collection: u32, creator: AccountId20, owner: AccountId20],
896
+ { collection: u32; creator: AccountId20; owner: AccountId20 }
897
+ >;
898
+ /**
899
+ * A `collection` was destroyed.
900
+ **/
901
+ Destroyed: AugmentedEvent<ApiType, [collection: u32], { collection: u32 }>;
902
+ /**
903
+ * A `collection` was force-created.
904
+ **/
905
+ ForceCreated: AugmentedEvent<
906
+ ApiType,
907
+ [collection: u32, owner: AccountId20],
908
+ { collection: u32; owner: AccountId20 }
909
+ >;
910
+ /**
911
+ * An `item` was issued.
912
+ **/
913
+ Issued: AugmentedEvent<
914
+ ApiType,
915
+ [collection: u32, item: u32, owner: AccountId20],
916
+ { collection: u32; item: u32; owner: AccountId20 }
917
+ >;
918
+ /**
919
+ * A new approval to modify item attributes was added.
920
+ **/
921
+ ItemAttributesApprovalAdded: AugmentedEvent<
922
+ ApiType,
923
+ [collection: u32, item: u32, delegate: AccountId20],
924
+ { collection: u32; item: u32; delegate: AccountId20 }
925
+ >;
926
+ /**
927
+ * A new approval to modify item attributes was removed.
928
+ **/
929
+ ItemAttributesApprovalRemoved: AugmentedEvent<
930
+ ApiType,
931
+ [collection: u32, item: u32, delegate: AccountId20],
932
+ { collection: u32; item: u32; delegate: AccountId20 }
933
+ >;
934
+ /**
935
+ * An item was bought.
936
+ **/
937
+ ItemBought: AugmentedEvent<
938
+ ApiType,
939
+ [collection: u32, item: u32, price: u128, seller: AccountId20, buyer: AccountId20],
940
+ { collection: u32; item: u32; price: u128; seller: AccountId20; buyer: AccountId20 }
941
+ >;
942
+ /**
943
+ * Metadata has been cleared for an item.
944
+ **/
945
+ ItemMetadataCleared: AugmentedEvent<
946
+ ApiType,
947
+ [collection: u32, item: u32],
948
+ { collection: u32; item: u32 }
949
+ >;
950
+ /**
951
+ * New metadata has been set for an item.
952
+ **/
953
+ ItemMetadataSet: AugmentedEvent<
954
+ ApiType,
955
+ [collection: u32, item: u32, data: Bytes],
956
+ { collection: u32; item: u32; data: Bytes }
957
+ >;
958
+ /**
959
+ * The price for the item was removed.
960
+ **/
961
+ ItemPriceRemoved: AugmentedEvent<
962
+ ApiType,
963
+ [collection: u32, item: u32],
964
+ { collection: u32; item: u32 }
965
+ >;
966
+ /**
967
+ * The price was set for the item.
968
+ **/
969
+ ItemPriceSet: AugmentedEvent<
970
+ ApiType,
971
+ [collection: u32, item: u32, price: u128, whitelistedBuyer: Option<AccountId20>],
972
+ { collection: u32; item: u32; price: u128; whitelistedBuyer: Option<AccountId20> }
973
+ >;
974
+ /**
975
+ * `item` metadata or attributes were locked.
976
+ **/
977
+ ItemPropertiesLocked: AugmentedEvent<
978
+ ApiType,
979
+ [collection: u32, item: u32, lockMetadata: bool, lockAttributes: bool],
980
+ { collection: u32; item: u32; lockMetadata: bool; lockAttributes: bool }
981
+ >;
982
+ /**
983
+ * An `item` became non-transferable.
984
+ **/
985
+ ItemTransferLocked: AugmentedEvent<
986
+ ApiType,
987
+ [collection: u32, item: u32],
988
+ { collection: u32; item: u32 }
989
+ >;
990
+ /**
991
+ * An `item` became transferable.
992
+ **/
993
+ ItemTransferUnlocked: AugmentedEvent<
994
+ ApiType,
995
+ [collection: u32, item: u32],
996
+ { collection: u32; item: u32 }
997
+ >;
998
+ /**
999
+ * Event gets emitted when the `NextCollectionId` gets incremented.
1000
+ **/
1001
+ NextCollectionIdIncremented: AugmentedEvent<
1002
+ ApiType,
1003
+ [nextId: Option<u32>],
1004
+ { nextId: Option<u32> }
1005
+ >;
1006
+ /**
1007
+ * The owner changed.
1008
+ **/
1009
+ OwnerChanged: AugmentedEvent<
1010
+ ApiType,
1011
+ [collection: u32, newOwner: AccountId20],
1012
+ { collection: u32; newOwner: AccountId20 }
1013
+ >;
1014
+ /**
1015
+ * Ownership acceptance has changed for an account.
1016
+ **/
1017
+ OwnershipAcceptanceChanged: AugmentedEvent<
1018
+ ApiType,
1019
+ [who: AccountId20, maybeCollection: Option<u32>],
1020
+ { who: AccountId20; maybeCollection: Option<u32> }
1021
+ >;
1022
+ /**
1023
+ * A new attribute in the `Pallet` namespace was set for the `collection` or an `item`
1024
+ * within that `collection`.
1025
+ **/
1026
+ PalletAttributeSet: AugmentedEvent<
1027
+ ApiType,
1028
+ [collection: u32, item: Option<u32>, attribute: PalletNftsPalletAttributes, value: Bytes],
1029
+ { collection: u32; item: Option<u32>; attribute: PalletNftsPalletAttributes; value: Bytes }
1030
+ >;
1031
+ /**
1032
+ * New attributes have been set for an `item` of the `collection`.
1033
+ **/
1034
+ PreSignedAttributesSet: AugmentedEvent<
1035
+ ApiType,
1036
+ [collection: u32, item: u32, namespace: PalletNftsAttributeNamespace],
1037
+ { collection: u32; item: u32; namespace: PalletNftsAttributeNamespace }
1038
+ >;
1039
+ /**
1040
+ * The deposit for a set of `item`s within a `collection` has been updated.
1041
+ **/
1042
+ Redeposited: AugmentedEvent<
1043
+ ApiType,
1044
+ [collection: u32, successfulItems: Vec<u32>],
1045
+ { collection: u32; successfulItems: Vec<u32> }
1046
+ >;
1047
+ /**
1048
+ * The swap was cancelled.
1049
+ **/
1050
+ SwapCancelled: AugmentedEvent<
1051
+ ApiType,
1052
+ [
1053
+ offeredCollection: u32,
1054
+ offeredItem: u32,
1055
+ desiredCollection: u32,
1056
+ desiredItem: Option<u32>,
1057
+ price: Option<PalletNftsPriceWithDirection>,
1058
+ deadline: u32
1059
+ ],
1060
+ {
1061
+ offeredCollection: u32;
1062
+ offeredItem: u32;
1063
+ desiredCollection: u32;
1064
+ desiredItem: Option<u32>;
1065
+ price: Option<PalletNftsPriceWithDirection>;
1066
+ deadline: u32;
1067
+ }
1068
+ >;
1069
+ /**
1070
+ * The swap has been claimed.
1071
+ **/
1072
+ SwapClaimed: AugmentedEvent<
1073
+ ApiType,
1074
+ [
1075
+ sentCollection: u32,
1076
+ sentItem: u32,
1077
+ sentItemOwner: AccountId20,
1078
+ receivedCollection: u32,
1079
+ receivedItem: u32,
1080
+ receivedItemOwner: AccountId20,
1081
+ price: Option<PalletNftsPriceWithDirection>,
1082
+ deadline: u32
1083
+ ],
1084
+ {
1085
+ sentCollection: u32;
1086
+ sentItem: u32;
1087
+ sentItemOwner: AccountId20;
1088
+ receivedCollection: u32;
1089
+ receivedItem: u32;
1090
+ receivedItemOwner: AccountId20;
1091
+ price: Option<PalletNftsPriceWithDirection>;
1092
+ deadline: u32;
1093
+ }
1094
+ >;
1095
+ /**
1096
+ * An `item` swap intent was created.
1097
+ **/
1098
+ SwapCreated: AugmentedEvent<
1099
+ ApiType,
1100
+ [
1101
+ offeredCollection: u32,
1102
+ offeredItem: u32,
1103
+ desiredCollection: u32,
1104
+ desiredItem: Option<u32>,
1105
+ price: Option<PalletNftsPriceWithDirection>,
1106
+ deadline: u32
1107
+ ],
1108
+ {
1109
+ offeredCollection: u32;
1110
+ offeredItem: u32;
1111
+ desiredCollection: u32;
1112
+ desiredItem: Option<u32>;
1113
+ price: Option<PalletNftsPriceWithDirection>;
1114
+ deadline: u32;
1115
+ }
1116
+ >;
1117
+ /**
1118
+ * The management team changed.
1119
+ **/
1120
+ TeamChanged: AugmentedEvent<
1121
+ ApiType,
1122
+ [
1123
+ collection: u32,
1124
+ issuer: Option<AccountId20>,
1125
+ admin: Option<AccountId20>,
1126
+ freezer: Option<AccountId20>
1127
+ ],
1128
+ {
1129
+ collection: u32;
1130
+ issuer: Option<AccountId20>;
1131
+ admin: Option<AccountId20>;
1132
+ freezer: Option<AccountId20>;
1133
+ }
1134
+ >;
1135
+ /**
1136
+ * A tip was sent.
1137
+ **/
1138
+ TipSent: AugmentedEvent<
1139
+ ApiType,
1140
+ [collection: u32, item: u32, sender: AccountId20, receiver: AccountId20, amount: u128],
1141
+ { collection: u32; item: u32; sender: AccountId20; receiver: AccountId20; amount: u128 }
1142
+ >;
1143
+ /**
1144
+ * An `item` of a `collection` has been approved by the `owner` for transfer by
1145
+ * a `delegate`.
1146
+ **/
1147
+ TransferApproved: AugmentedEvent<
1148
+ ApiType,
1149
+ [
1150
+ collection: u32,
1151
+ item: u32,
1152
+ owner: AccountId20,
1153
+ delegate: AccountId20,
1154
+ deadline: Option<u32>
1155
+ ],
1156
+ {
1157
+ collection: u32;
1158
+ item: u32;
1159
+ owner: AccountId20;
1160
+ delegate: AccountId20;
1161
+ deadline: Option<u32>;
1162
+ }
1163
+ >;
1164
+ /**
1165
+ * An `item` was transferred.
1166
+ **/
1167
+ Transferred: AugmentedEvent<
1168
+ ApiType,
1169
+ [collection: u32, item: u32, from: AccountId20, to: AccountId20],
1170
+ { collection: u32; item: u32; from: AccountId20; to: AccountId20 }
1171
+ >;
1172
+ /**
1173
+ * Generic event
1174
+ **/
1175
+ [key: string]: AugmentedEvent<ApiType>;
1176
+ };
1177
+ offences: {
1178
+ /**
1179
+ * There is an offence reported of the given `kind` happened at the `session_index` and
1180
+ * (kind-specific) time slot. This event is not deposited for duplicate slashes.
1181
+ * \[kind, timeslot\].
1182
+ **/
1183
+ Offence: AugmentedEvent<
1184
+ ApiType,
1185
+ [kind: U8aFixed, timeslot: Bytes],
1186
+ { kind: U8aFixed; timeslot: Bytes }
1187
+ >;
1188
+ /**
1189
+ * Generic event
1190
+ **/
1191
+ [key: string]: AugmentedEvent<ApiType>;
1192
+ };
1193
+ parameters: {
1194
+ /**
1195
+ * A Parameter was set.
1196
+ *
1197
+ * Is also emitted when the value was not changed.
1198
+ **/
1199
+ Updated: AugmentedEvent<
1200
+ ApiType,
1201
+ [
1202
+ key: ShSolochainEvmRuntimeConfigsRuntimeParamsRuntimeParametersKey,
1203
+ oldValue: Option<ShSolochainEvmRuntimeConfigsRuntimeParamsRuntimeParametersValue>,
1204
+ newValue: Option<ShSolochainEvmRuntimeConfigsRuntimeParamsRuntimeParametersValue>
1205
+ ],
1206
+ {
1207
+ key: ShSolochainEvmRuntimeConfigsRuntimeParamsRuntimeParametersKey;
1208
+ oldValue: Option<ShSolochainEvmRuntimeConfigsRuntimeParamsRuntimeParametersValue>;
1209
+ newValue: Option<ShSolochainEvmRuntimeConfigsRuntimeParamsRuntimeParametersValue>;
1210
+ }
1211
+ >;
1212
+ /**
1213
+ * Generic event
1214
+ **/
1215
+ [key: string]: AugmentedEvent<ApiType>;
1216
+ };
1217
+ paymentStreams: {
1218
+ /**
1219
+ * Event emitted when a dynamic-rate payment stream is created. Provides information about the User and Provider of the stream
1220
+ * and the initial amount provided.
1221
+ **/
1222
+ DynamicRatePaymentStreamCreated: AugmentedEvent<
1223
+ ApiType,
1224
+ [userAccount: AccountId20, providerId: H256, amountProvided: u64],
1225
+ { userAccount: AccountId20; providerId: H256; amountProvided: u64 }
1226
+ >;
1227
+ /**
1228
+ * Event emitted when a dynamic-rate payment stream is removed. Provides information about the User and Provider of the stream.
1229
+ **/
1230
+ DynamicRatePaymentStreamDeleted: AugmentedEvent<
1231
+ ApiType,
1232
+ [userAccount: AccountId20, providerId: H256],
1233
+ { userAccount: AccountId20; providerId: H256 }
1234
+ >;
1235
+ /**
1236
+ * Event emitted when a dynamic-rate payment stream is updated. Provides information about the User and Provider of the stream
1237
+ * and the new amount provided.
1238
+ **/
1239
+ DynamicRatePaymentStreamUpdated: AugmentedEvent<
1240
+ ApiType,
1241
+ [userAccount: AccountId20, providerId: H256, newAmountProvided: u64],
1242
+ { userAccount: AccountId20; providerId: H256; newAmountProvided: u64 }
1243
+ >;
1244
+ /**
1245
+ * Event emitted when a fixed-rate payment stream is created. Provides information about the Provider and User of the stream
1246
+ * and its initial rate.
1247
+ **/
1248
+ FixedRatePaymentStreamCreated: AugmentedEvent<
1249
+ ApiType,
1250
+ [userAccount: AccountId20, providerId: H256, rate: u128],
1251
+ { userAccount: AccountId20; providerId: H256; rate: u128 }
1252
+ >;
1253
+ /**
1254
+ * Event emitted when a fixed-rate payment stream is removed. Provides information about the User and Provider of the stream.
1255
+ **/
1256
+ FixedRatePaymentStreamDeleted: AugmentedEvent<
1257
+ ApiType,
1258
+ [userAccount: AccountId20, providerId: H256],
1259
+ { userAccount: AccountId20; providerId: H256 }
1260
+ >;
1261
+ /**
1262
+ * Event emitted when a fixed-rate payment stream is updated. Provides information about the User and Provider of the stream
1263
+ * and the new rate of the stream.
1264
+ **/
1265
+ FixedRatePaymentStreamUpdated: AugmentedEvent<
1266
+ ApiType,
1267
+ [userAccount: AccountId20, providerId: H256, newRate: u128],
1268
+ { userAccount: AccountId20; providerId: H256; newRate: u128 }
1269
+ >;
1270
+ /**
1271
+ * 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.
1272
+ **/
1273
+ InconsistentTickProcessing: AugmentedEvent<
1274
+ ApiType,
1275
+ [lastProcessedTick: u32, tickToProcess: u32],
1276
+ { lastProcessedTick: u32; tickToProcess: u32 }
1277
+ >;
1278
+ /**
1279
+ * Event emitted when a Provider's last chargeable tick and price index are updated. Provides information about the Provider of the stream,
1280
+ * the tick number of the last chargeable tick and the price index at that tick.
1281
+ **/
1282
+ LastChargeableInfoUpdated: AugmentedEvent<
1283
+ ApiType,
1284
+ [providerId: H256, lastChargeableTick: u32, lastChargeablePriceIndex: u128],
1285
+ { providerId: H256; lastChargeableTick: u32; lastChargeablePriceIndex: u128 }
1286
+ >;
1287
+ /**
1288
+ * Event emitted when a payment is charged. Provides information about the user that was charged,
1289
+ * the Provider that received the funds, the tick up to which it was charged and the amount that was charged.
1290
+ **/
1291
+ PaymentStreamCharged: AugmentedEvent<
1292
+ ApiType,
1293
+ [
1294
+ userAccount: AccountId20,
1295
+ providerId: H256,
1296
+ amount: u128,
1297
+ lastTickCharged: u32,
1298
+ chargedAtTick: u32
1299
+ ],
1300
+ {
1301
+ userAccount: AccountId20;
1302
+ providerId: H256;
1303
+ amount: u128;
1304
+ lastTickCharged: u32;
1305
+ chargedAtTick: u32;
1306
+ }
1307
+ >;
1308
+ /**
1309
+ * 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.
1310
+ **/
1311
+ UserPaidAllDebts: AugmentedEvent<ApiType, [who: AccountId20], { who: AccountId20 }>;
1312
+ /**
1313
+ * 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.
1314
+ **/
1315
+ UserPaidSomeDebts: AugmentedEvent<ApiType, [who: AccountId20], { who: AccountId20 }>;
1316
+ /**
1317
+ * Event emitted when multiple payment streams have been charged from a Provider. Provides information about
1318
+ * the charged users, the Provider that received the funds and the tick when the charge happened.
1319
+ **/
1320
+ UsersCharged: AugmentedEvent<
1321
+ ApiType,
1322
+ [userAccounts: Vec<AccountId20>, providerId: H256, chargedAtTick: u32],
1323
+ { userAccounts: Vec<AccountId20>; providerId: H256; chargedAtTick: u32 }
1324
+ >;
1325
+ /**
1326
+ * 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,
1327
+ * correctly paid all their outstanding debt and can now contract new services again.
1328
+ **/
1329
+ UserSolvent: AugmentedEvent<ApiType, [who: AccountId20], { who: AccountId20 }>;
1330
+ /**
1331
+ * Event emitted when a Provider is correctly trying to charge a User and that User does not have enough funds to pay for their services.
1332
+ * This event is emitted to flag the user and let the network know that the user is not paying for the requested services, so other Providers can
1333
+ * stop providing services to that user.
1334
+ **/
1335
+ UserWithoutFunds: AugmentedEvent<ApiType, [who: AccountId20], { who: AccountId20 }>;
1336
+ /**
1337
+ * Generic event
1338
+ **/
1339
+ [key: string]: AugmentedEvent<ApiType>;
1340
+ };
1341
+ proofsDealer: {
1342
+ /**
1343
+ * The [`ChallengesTicker`] has been paused or unpaused.
1344
+ **/
1345
+ ChallengesTickerSet: AugmentedEvent<ApiType, [paused: bool], { paused: bool }>;
1346
+ /**
1347
+ * A set of mutations has been applied to a given Forest.
1348
+ * This is the generic version of [`MutationsAppliedForProvider`](Event::MutationsAppliedForProvider)
1349
+ * when [`generic_apply_delta`](ProofsDealerInterface::generic_apply_delta) is used
1350
+ * and the root is not necessarily linked to a specific Provider.
1351
+ *
1352
+ * Additional information for context on where the mutations were applied can be provided
1353
+ * by using the `event_info` field.
1354
+ **/
1355
+ MutationsApplied: AugmentedEvent<
1356
+ ApiType,
1357
+ [
1358
+ mutations: Vec<ITuple<[H256, ShpTraitsTrieMutation]>>,
1359
+ oldRoot: H256,
1360
+ newRoot: H256,
1361
+ eventInfo: Option<Bytes>
1362
+ ],
1363
+ {
1364
+ mutations: Vec<ITuple<[H256, ShpTraitsTrieMutation]>>;
1365
+ oldRoot: H256;
1366
+ newRoot: H256;
1367
+ eventInfo: Option<Bytes>;
1368
+ }
1369
+ >;
1370
+ /**
1371
+ * A set of mutations has been applied to the Forest of a given Provider.
1372
+ **/
1373
+ MutationsAppliedForProvider: AugmentedEvent<
1374
+ ApiType,
1375
+ [
1376
+ providerId: H256,
1377
+ mutations: Vec<ITuple<[H256, ShpTraitsTrieMutation]>>,
1378
+ oldRoot: H256,
1379
+ newRoot: H256
1380
+ ],
1381
+ {
1382
+ providerId: H256;
1383
+ mutations: Vec<ITuple<[H256, ShpTraitsTrieMutation]>>;
1384
+ oldRoot: H256;
1385
+ newRoot: H256;
1386
+ }
1387
+ >;
1388
+ /**
1389
+ * A manual challenge was submitted.
1390
+ **/
1391
+ NewChallenge: AugmentedEvent<
1392
+ ApiType,
1393
+ [who: Option<AccountId20>, keyChallenged: H256],
1394
+ { who: Option<AccountId20>; keyChallenged: H256 }
1395
+ >;
1396
+ /**
1397
+ * A provider's challenge cycle was initialised.
1398
+ **/
1399
+ NewChallengeCycleInitialised: AugmentedEvent<
1400
+ ApiType,
1401
+ [
1402
+ currentTick: u32,
1403
+ nextChallengeDeadline: u32,
1404
+ provider: H256,
1405
+ maybeProviderAccount: Option<AccountId20>
1406
+ ],
1407
+ {
1408
+ currentTick: u32;
1409
+ nextChallengeDeadline: u32;
1410
+ provider: H256;
1411
+ maybeProviderAccount: Option<AccountId20>;
1412
+ }
1413
+ >;
1414
+ /**
1415
+ * A new challenge seed was generated.
1416
+ **/
1417
+ NewChallengeSeed: AugmentedEvent<
1418
+ ApiType,
1419
+ [challengesTicker: u32, seed: H256],
1420
+ { challengesTicker: u32; seed: H256 }
1421
+ >;
1422
+ /**
1423
+ * A new checkpoint challenge was generated.
1424
+ **/
1425
+ NewCheckpointChallenge: AugmentedEvent<
1426
+ ApiType,
1427
+ [challengesTicker: u32, challenges: Vec<PalletProofsDealerCustomChallenge>],
1428
+ { challengesTicker: u32; challenges: Vec<PalletProofsDealerCustomChallenge> }
1429
+ >;
1430
+ /**
1431
+ * A priority challenge was submitted.
1432
+ **/
1433
+ NewPriorityChallenge: AugmentedEvent<
1434
+ ApiType,
1435
+ [who: Option<AccountId20>, keyChallenged: H256, shouldRemoveKey: bool],
1436
+ { who: Option<AccountId20>; keyChallenged: H256; shouldRemoveKey: bool }
1437
+ >;
1438
+ /**
1439
+ * No record of the last tick the Provider submitted a proof for.
1440
+ **/
1441
+ NoRecordOfLastSubmittedProof: AugmentedEvent<ApiType, [provider: H256], { provider: H256 }>;
1442
+ /**
1443
+ * A proof was accepted.
1444
+ **/
1445
+ ProofAccepted: AugmentedEvent<
1446
+ ApiType,
1447
+ [providerId: H256, proof: PalletProofsDealerProof, lastTickProven: u32],
1448
+ { providerId: H256; proof: PalletProofsDealerProof; lastTickProven: u32 }
1449
+ >;
1450
+ /**
1451
+ * A provider was marked as slashable and their challenge deadline was forcefully pushed.
1452
+ **/
1453
+ SlashableProvider: AugmentedEvent<
1454
+ ApiType,
1455
+ [provider: H256, nextChallengeDeadline: u32],
1456
+ { provider: H256; nextChallengeDeadline: u32 }
1457
+ >;
1458
+ /**
1459
+ * Generic event
1460
+ **/
1461
+ [key: string]: AugmentedEvent<ApiType>;
1462
+ };
1463
+ providers: {
1464
+ /**
1465
+ * 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)
1466
+ * signalling the end of the grace period since an automatic top up could not be performed due to insufficient free balance.
1467
+ **/
1468
+ AwaitingTopUp: AugmentedEvent<
1469
+ ApiType,
1470
+ [providerId: H256, topUpMetadata: PalletStorageProvidersTopUpMetadata],
1471
+ { providerId: H256; topUpMetadata: PalletStorageProvidersTopUpMetadata }
1472
+ >;
1473
+ /**
1474
+ * Event emitted when a BSP has been deleted.
1475
+ **/
1476
+ BspDeleted: AugmentedEvent<ApiType, [providerId: H256], { providerId: H256 }>;
1477
+ /**
1478
+ * Event emitted when a Backup Storage Provider has requested to sign up successfully. Provides information about
1479
+ * that BSP's account id, its multiaddresses, and the total data it can store according to its stake.
1480
+ **/
1481
+ BspRequestSignUpSuccess: AugmentedEvent<
1482
+ ApiType,
1483
+ [who: AccountId20, multiaddresses: Vec<Bytes>, capacity: u64],
1484
+ { who: AccountId20; multiaddresses: Vec<Bytes>; capacity: u64 }
1485
+ >;
1486
+ /**
1487
+ * Event emitted when a Backup Storage Provider has signed off successfully. Provides information about
1488
+ * that BSP's account id.
1489
+ **/
1490
+ BspSignOffSuccess: AugmentedEvent<
1491
+ ApiType,
1492
+ [who: AccountId20, bspId: H256],
1493
+ { who: AccountId20; bspId: H256 }
1494
+ >;
1495
+ /**
1496
+ * Event emitted when a Backup Storage Provider has confirmed its sign up successfully. Provides information about
1497
+ * that BSP's account id, the initial root of the Merkle Patricia Trie that it stores, the total data it can store
1498
+ * according to its stake, and its multiaddress.
1499
+ **/
1500
+ BspSignUpSuccess: AugmentedEvent<
1501
+ ApiType,
1502
+ [who: AccountId20, bspId: H256, root: H256, multiaddresses: Vec<Bytes>, capacity: u64],
1503
+ { who: AccountId20; bspId: H256; root: H256; multiaddresses: Vec<Bytes>; capacity: u64 }
1504
+ >;
1505
+ /**
1506
+ * Event emitted when a bucket's root has been changed.
1507
+ **/
1508
+ BucketRootChanged: AugmentedEvent<
1509
+ ApiType,
1510
+ [bucketId: H256, oldRoot: H256, newRoot: H256],
1511
+ { bucketId: H256; oldRoot: H256; newRoot: H256 }
1512
+ >;
1513
+ /**
1514
+ * Event emitted when the provider that has been marked as insolvent was a MSP. It notifies the users of that MSP
1515
+ * the buckets that it was holding, so they can take appropriate measures.
1516
+ **/
1517
+ BucketsOfInsolventMsp: AugmentedEvent<
1518
+ ApiType,
1519
+ [mspId: H256, buckets: Vec<H256>],
1520
+ { mspId: H256; buckets: Vec<H256> }
1521
+ >;
1522
+ /**
1523
+ * Event emitted when a SP has changed its capacity successfully. Provides information about
1524
+ * that SP's account id, its old total data that could store, and the new total data.
1525
+ **/
1526
+ CapacityChanged: AugmentedEvent<
1527
+ ApiType,
1528
+ [
1529
+ who: AccountId20,
1530
+ providerId: PalletStorageProvidersStorageProviderId,
1531
+ oldCapacity: u64,
1532
+ newCapacity: u64,
1533
+ nextBlockWhenChangeAllowed: u32
1534
+ ],
1535
+ {
1536
+ who: AccountId20;
1537
+ providerId: PalletStorageProvidersStorageProviderId;
1538
+ oldCapacity: u64;
1539
+ newCapacity: u64;
1540
+ nextBlockWhenChangeAllowed: u32;
1541
+ }
1542
+ >;
1543
+ /**
1544
+ * Event emitted when the account ID of a provider that has just been marked as insolvent can't be found in storage.
1545
+ **/
1546
+ FailedToGetOwnerAccountOfInsolventProvider: AugmentedEvent<
1547
+ ApiType,
1548
+ [providerId: H256],
1549
+ { providerId: H256 }
1550
+ >;
1551
+ /**
1552
+ * Event emitted when there was an inconsistency error and the provider was found in `ProviderTopUpExpirations`
1553
+ * for a tick that wasn't actually when its top up expired, and when trying to insert it with the actual
1554
+ * expiration tick in `ProviderTopUpExpirations` the append failed.
1555
+ *
1556
+ * The result of this is that the provider's top up expiration will be reinserted at the correct expiration tick based on the
1557
+ * `TopUpMetadata` found in `AwaitingTopUpFromProviders` storage.
1558
+ **/
1559
+ FailedToInsertProviderTopUpExpiration: AugmentedEvent<
1560
+ ApiType,
1561
+ [providerId: H256, expirationTick: u32],
1562
+ { providerId: H256; expirationTick: u32 }
1563
+ >;
1564
+ /**
1565
+ * Event emitted when there's an error slashing the now insolvent provider.
1566
+ **/
1567
+ FailedToSlashInsolventProvider: AugmentedEvent<
1568
+ ApiType,
1569
+ [providerId: H256, amountToSlash: u128, error: SpRuntimeDispatchError],
1570
+ { providerId: H256; amountToSlash: u128; error: SpRuntimeDispatchError }
1571
+ >;
1572
+ /**
1573
+ * Event emitted when there's an error stopping all cycles for an insolvent Backup Storage Provider.
1574
+ **/
1575
+ FailedToStopAllCyclesForInsolventBsp: AugmentedEvent<
1576
+ ApiType,
1577
+ [providerId: H256, error: SpRuntimeDispatchError],
1578
+ { providerId: H256; error: SpRuntimeDispatchError }
1579
+ >;
1580
+ /**
1581
+ * Event emitted when an MSP has been deleted.
1582
+ **/
1583
+ MspDeleted: AugmentedEvent<ApiType, [providerId: H256], { providerId: H256 }>;
1584
+ /**
1585
+ * Event emitted when a Main Storage Provider has requested to sign up successfully. Provides information about
1586
+ * that MSP's account id, its multiaddresses, the total data it can store according to its stake, and its value proposition.
1587
+ **/
1588
+ MspRequestSignUpSuccess: AugmentedEvent<
1589
+ ApiType,
1590
+ [who: AccountId20, multiaddresses: Vec<Bytes>, capacity: u64],
1591
+ { who: AccountId20; multiaddresses: Vec<Bytes>; capacity: u64 }
1592
+ >;
1593
+ /**
1594
+ * Event emitted when a Main Storage Provider has signed off successfully. Provides information about
1595
+ * that MSP's account id.
1596
+ **/
1597
+ MspSignOffSuccess: AugmentedEvent<
1598
+ ApiType,
1599
+ [who: AccountId20, mspId: H256],
1600
+ { who: AccountId20; mspId: H256 }
1601
+ >;
1602
+ /**
1603
+ * Event emitted when a Main Storage Provider has confirmed its sign up successfully. Provides information about
1604
+ * that MSP's account id, the total data it can store according to its stake, its multiaddress, and its value proposition.
1605
+ **/
1606
+ MspSignUpSuccess: AugmentedEvent<
1607
+ ApiType,
1608
+ [
1609
+ who: AccountId20,
1610
+ mspId: H256,
1611
+ multiaddresses: Vec<Bytes>,
1612
+ capacity: u64,
1613
+ valueProp: PalletStorageProvidersValuePropositionWithId
1614
+ ],
1615
+ {
1616
+ who: AccountId20;
1617
+ mspId: H256;
1618
+ multiaddresses: Vec<Bytes>;
1619
+ capacity: u64;
1620
+ valueProp: PalletStorageProvidersValuePropositionWithId;
1621
+ }
1622
+ >;
1623
+ /**
1624
+ * Event emitted when a Provider has added a new MultiAddress to its account.
1625
+ **/
1626
+ MultiAddressAdded: AugmentedEvent<
1627
+ ApiType,
1628
+ [providerId: H256, newMultiaddress: Bytes],
1629
+ { providerId: H256; newMultiaddress: Bytes }
1630
+ >;
1631
+ /**
1632
+ * Event emitted when a Provider has removed a MultiAddress from its account.
1633
+ **/
1634
+ MultiAddressRemoved: AugmentedEvent<
1635
+ ApiType,
1636
+ [providerId: H256, removedMultiaddress: Bytes],
1637
+ { providerId: H256; removedMultiaddress: Bytes }
1638
+ >;
1639
+ /**
1640
+ * Event emitted when a provider has been marked as insolvent.
1641
+ *
1642
+ * This happens when the provider hasn't topped up their deposit within the grace period after being slashed
1643
+ * and they have a capacity deficit (i.e. their capacity based on their stake is below their used capacity by the files it stores).
1644
+ **/
1645
+ ProviderInsolvent: AugmentedEvent<ApiType, [providerId: H256], { providerId: H256 }>;
1646
+ /**
1647
+ * Event emitted when a sign up request has been canceled successfully. Provides information about
1648
+ * the account id of the user that canceled the request.
1649
+ **/
1650
+ SignUpRequestCanceled: AugmentedEvent<ApiType, [who: AccountId20], { who: AccountId20 }>;
1651
+ /**
1652
+ * Event emitted when a SP has been slashed.
1653
+ **/
1654
+ Slashed: AugmentedEvent<
1655
+ ApiType,
1656
+ [providerId: H256, amount: u128],
1657
+ { providerId: H256; amount: u128 }
1658
+ >;
1659
+ /**
1660
+ * Event emitted when an SP has topped up its deposit based on slash amount.
1661
+ **/
1662
+ TopUpFulfilled: AugmentedEvent<
1663
+ ApiType,
1664
+ [providerId: H256, amount: u128],
1665
+ { providerId: H256; amount: u128 }
1666
+ >;
1667
+ /**
1668
+ * Event emitted when an MSP adds a new value proposition.
1669
+ **/
1670
+ ValuePropAdded: AugmentedEvent<
1671
+ ApiType,
1672
+ [mspId: H256, valuePropId: H256, valueProp: PalletStorageProvidersValueProposition],
1673
+ { mspId: H256; valuePropId: H256; valueProp: PalletStorageProvidersValueProposition }
1674
+ >;
1675
+ /**
1676
+ * Event emitted when an MSP's value proposition is made unavailable.
1677
+ **/
1678
+ ValuePropUnavailable: AugmentedEvent<
1679
+ ApiType,
1680
+ [mspId: H256, valuePropId: H256],
1681
+ { mspId: H256; valuePropId: H256 }
1682
+ >;
1683
+ /**
1684
+ * Generic event
1685
+ **/
1686
+ [key: string]: AugmentedEvent<ApiType>;
1687
+ };
1688
+ randomness: {
1689
+ /**
1690
+ * Event emitted when a new random seed is available from the relay chain
1691
+ **/
1692
+ NewOneEpochAgoRandomnessAvailable: AugmentedEvent<
1693
+ ApiType,
1694
+ [randomnessSeed: H256, fromEpoch: u64, validUntilBlock: u32],
1695
+ { randomnessSeed: H256; fromEpoch: u64; validUntilBlock: u32 }
1696
+ >;
1697
+ /**
1698
+ * Generic event
1699
+ **/
1700
+ [key: string]: AugmentedEvent<ApiType>;
1701
+ };
1702
+ session: {
1703
+ /**
1704
+ * New session has happened. Note that the argument is the session index, not the
1705
+ * block number as the type might suggest.
1706
+ **/
1707
+ NewSession: AugmentedEvent<ApiType, [sessionIndex: u32], { sessionIndex: u32 }>;
1708
+ /**
1709
+ * Generic event
1710
+ **/
1711
+ [key: string]: AugmentedEvent<ApiType>;
1712
+ };
1713
+ sudo: {
1714
+ /**
1715
+ * The sudo key has been updated.
1716
+ **/
1717
+ KeyChanged: AugmentedEvent<
1718
+ ApiType,
1719
+ [old: Option<AccountId20>, new_: AccountId20],
1720
+ { old: Option<AccountId20>; new_: AccountId20 }
1721
+ >;
1722
+ /**
1723
+ * The key was permanently removed.
1724
+ **/
1725
+ KeyRemoved: AugmentedEvent<ApiType, []>;
1726
+ /**
1727
+ * A sudo call just took place.
1728
+ **/
1729
+ Sudid: AugmentedEvent<
1730
+ ApiType,
1731
+ [sudoResult: Result<Null, SpRuntimeDispatchError>],
1732
+ { sudoResult: Result<Null, SpRuntimeDispatchError> }
1733
+ >;
1734
+ /**
1735
+ * A [sudo_as](Pallet::sudo_as) call just took place.
1736
+ **/
1737
+ SudoAsDone: AugmentedEvent<
1738
+ ApiType,
1739
+ [sudoResult: Result<Null, SpRuntimeDispatchError>],
1740
+ { sudoResult: Result<Null, SpRuntimeDispatchError> }
1741
+ >;
1742
+ /**
1743
+ * Generic event
1744
+ **/
1745
+ [key: string]: AugmentedEvent<ApiType>;
1746
+ };
1747
+ system: {
1748
+ /**
1749
+ * `:code` was updated.
1750
+ **/
1751
+ CodeUpdated: AugmentedEvent<ApiType, []>;
1752
+ /**
1753
+ * An extrinsic failed.
1754
+ **/
1755
+ ExtrinsicFailed: AugmentedEvent<
1756
+ ApiType,
1757
+ [dispatchError: SpRuntimeDispatchError, dispatchInfo: FrameSystemDispatchEventInfo],
1758
+ { dispatchError: SpRuntimeDispatchError; dispatchInfo: FrameSystemDispatchEventInfo }
1759
+ >;
1760
+ /**
1761
+ * An extrinsic completed successfully.
1762
+ **/
1763
+ ExtrinsicSuccess: AugmentedEvent<
1764
+ ApiType,
1765
+ [dispatchInfo: FrameSystemDispatchEventInfo],
1766
+ { dispatchInfo: FrameSystemDispatchEventInfo }
1767
+ >;
1768
+ /**
1769
+ * An account was reaped.
1770
+ **/
1771
+ KilledAccount: AugmentedEvent<ApiType, [account: AccountId20], { account: AccountId20 }>;
1772
+ /**
1773
+ * A new account was created.
1774
+ **/
1775
+ NewAccount: AugmentedEvent<ApiType, [account: AccountId20], { account: AccountId20 }>;
1776
+ /**
1777
+ * On on-chain remark happened.
1778
+ **/
1779
+ Remarked: AugmentedEvent<
1780
+ ApiType,
1781
+ [sender: AccountId20, hash_: H256],
1782
+ { sender: AccountId20; hash_: H256 }
1783
+ >;
1784
+ /**
1785
+ * An upgrade was authorized.
1786
+ **/
1787
+ UpgradeAuthorized: AugmentedEvent<
1788
+ ApiType,
1789
+ [codeHash: H256, checkVersion: bool],
1790
+ { codeHash: H256; checkVersion: bool }
1791
+ >;
1792
+ /**
1793
+ * Generic event
1794
+ **/
1795
+ [key: string]: AugmentedEvent<ApiType>;
1796
+ };
1797
+ transactionPayment: {
1798
+ /**
1799
+ * A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee,
1800
+ * has been paid by `who`.
1801
+ **/
1802
+ TransactionFeePaid: AugmentedEvent<
1803
+ ApiType,
1804
+ [who: AccountId20, actualFee: u128, tip: u128],
1805
+ { who: AccountId20; actualFee: u128; tip: u128 }
1806
+ >;
1807
+ /**
1808
+ * Generic event
1809
+ **/
1810
+ [key: string]: AugmentedEvent<ApiType>;
1811
+ };
1812
+ } // AugmentedEvents
1813
+ } // declare module