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