@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,2818 @@
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/submittable";
7
+
8
+ import type {
9
+ ApiTypes,
10
+ AugmentedSubmittable,
11
+ SubmittableExtrinsic,
12
+ SubmittableExtrinsicFunction
13
+ } from "@polkadot/api-base/types";
14
+ import type {
15
+ Bytes,
16
+ Compact,
17
+ Option,
18
+ U256,
19
+ Vec,
20
+ bool,
21
+ u128,
22
+ u32,
23
+ u64
24
+ } from "@polkadot/types-codec";
25
+ import type { AnyNumber, IMethod, ITuple } from "@polkadot/types-codec/types";
26
+ import type { AccountId20, Call, H160, H256 } from "@polkadot/types/interfaces/runtime";
27
+ import type {
28
+ EthereumTransactionTransactionV2,
29
+ FpAccountEthereumSignature,
30
+ PalletBalancesAdjustmentDirection,
31
+ PalletFileSystemBucketMoveRequestResponse,
32
+ PalletFileSystemFileKeyWithProof,
33
+ PalletFileSystemFileOperationIntention,
34
+ PalletFileSystemReplicationTarget,
35
+ PalletFileSystemStorageRequestMspBucketResponse,
36
+ PalletNftsAttributeNamespace,
37
+ PalletNftsCancelAttributesApprovalWitness,
38
+ PalletNftsCollectionConfig,
39
+ PalletNftsDestroyWitness,
40
+ PalletNftsItemConfig,
41
+ PalletNftsItemTip,
42
+ PalletNftsMintSettings,
43
+ PalletNftsMintWitness,
44
+ PalletNftsPreSignedAttributes,
45
+ PalletNftsPreSignedMint,
46
+ PalletNftsPriceWithDirection,
47
+ PalletProofsDealerProof,
48
+ ShSolochainEvmRuntimeConfigsRuntimeParamsRuntimeParameters,
49
+ ShSolochainEvmRuntimeSessionKeys,
50
+ SpConsensusBabeDigestsNextConfigDescriptor,
51
+ SpConsensusGrandpaEquivocationProof,
52
+ SpConsensusSlotsEquivocationProof,
53
+ SpSessionMembershipProof,
54
+ SpTrieStorageProofCompactProof,
55
+ SpWeightsWeightV2Weight
56
+ } from "@polkadot/types/lookup";
57
+
58
+ export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
59
+ export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
60
+ export type __SubmittableExtrinsicFunction<ApiType extends ApiTypes> =
61
+ SubmittableExtrinsicFunction<ApiType>;
62
+
63
+ declare module "@polkadot/api-base/types/submittable" {
64
+ interface AugmentedSubmittables<ApiType extends ApiTypes> {
65
+ babe: {
66
+ /**
67
+ * Plan an epoch config change. The epoch config change is recorded and will be enacted on
68
+ * the next call to `enact_epoch_change`. The config will be activated one epoch after.
69
+ * Multiple calls to this method will replace any existing planned config change that had
70
+ * not been enacted yet.
71
+ **/
72
+ planConfigChange: AugmentedSubmittable<
73
+ (
74
+ config: SpConsensusBabeDigestsNextConfigDescriptor | { V1: any } | string | Uint8Array
75
+ ) => SubmittableExtrinsic<ApiType>,
76
+ [SpConsensusBabeDigestsNextConfigDescriptor]
77
+ >;
78
+ /**
79
+ * Report authority equivocation/misbehavior. This method will verify
80
+ * the equivocation proof and validate the given key ownership proof
81
+ * against the extracted offender. If both are valid, the offence will
82
+ * be reported.
83
+ **/
84
+ reportEquivocation: AugmentedSubmittable<
85
+ (
86
+ equivocationProof:
87
+ | SpConsensusSlotsEquivocationProof
88
+ | { offender?: any; slot?: any; firstHeader?: any; secondHeader?: any }
89
+ | string
90
+ | Uint8Array,
91
+ keyOwnerProof:
92
+ | SpSessionMembershipProof
93
+ | { session?: any; trieNodes?: any; validatorCount?: any }
94
+ | string
95
+ | Uint8Array
96
+ ) => SubmittableExtrinsic<ApiType>,
97
+ [SpConsensusSlotsEquivocationProof, SpSessionMembershipProof]
98
+ >;
99
+ /**
100
+ * Report authority equivocation/misbehavior. This method will verify
101
+ * the equivocation proof and validate the given key ownership proof
102
+ * against the extracted offender. If both are valid, the offence will
103
+ * be reported.
104
+ * This extrinsic must be called unsigned and it is expected that only
105
+ * block authors will call it (validated in `ValidateUnsigned`), as such
106
+ * if the block author is defined it will be defined as the equivocation
107
+ * reporter.
108
+ **/
109
+ reportEquivocationUnsigned: AugmentedSubmittable<
110
+ (
111
+ equivocationProof:
112
+ | SpConsensusSlotsEquivocationProof
113
+ | { offender?: any; slot?: any; firstHeader?: any; secondHeader?: any }
114
+ | string
115
+ | Uint8Array,
116
+ keyOwnerProof:
117
+ | SpSessionMembershipProof
118
+ | { session?: any; trieNodes?: any; validatorCount?: any }
119
+ | string
120
+ | Uint8Array
121
+ ) => SubmittableExtrinsic<ApiType>,
122
+ [SpConsensusSlotsEquivocationProof, SpSessionMembershipProof]
123
+ >;
124
+ /**
125
+ * Generic tx
126
+ **/
127
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
128
+ };
129
+ balances: {
130
+ /**
131
+ * Burn the specified liquid free balance from the origin account.
132
+ *
133
+ * If the origin's account ends up below the existential deposit as a result
134
+ * of the burn and `keep_alive` is false, the account will be reaped.
135
+ *
136
+ * Unlike sending funds to a _burn_ address, which merely makes the funds inaccessible,
137
+ * this `burn` operation will reduce total issuance by the amount _burned_.
138
+ **/
139
+ burn: AugmentedSubmittable<
140
+ (
141
+ value: Compact<u128> | AnyNumber | Uint8Array,
142
+ keepAlive: bool | boolean | Uint8Array
143
+ ) => SubmittableExtrinsic<ApiType>,
144
+ [Compact<u128>, bool]
145
+ >;
146
+ /**
147
+ * Adjust the total issuance in a saturating way.
148
+ *
149
+ * Can only be called by root and always needs a positive `delta`.
150
+ *
151
+ * # Example
152
+ **/
153
+ forceAdjustTotalIssuance: AugmentedSubmittable<
154
+ (
155
+ direction:
156
+ | PalletBalancesAdjustmentDirection
157
+ | "Increase"
158
+ | "Decrease"
159
+ | number
160
+ | Uint8Array,
161
+ delta: Compact<u128> | AnyNumber | Uint8Array
162
+ ) => SubmittableExtrinsic<ApiType>,
163
+ [PalletBalancesAdjustmentDirection, Compact<u128>]
164
+ >;
165
+ /**
166
+ * Set the regular balance of a given account.
167
+ *
168
+ * The dispatch origin for this call is `root`.
169
+ **/
170
+ forceSetBalance: AugmentedSubmittable<
171
+ (
172
+ who: AccountId20 | string | Uint8Array,
173
+ newFree: Compact<u128> | AnyNumber | Uint8Array
174
+ ) => SubmittableExtrinsic<ApiType>,
175
+ [AccountId20, Compact<u128>]
176
+ >;
177
+ /**
178
+ * Exactly as `transfer_allow_death`, except the origin must be root and the source account
179
+ * may be specified.
180
+ **/
181
+ forceTransfer: AugmentedSubmittable<
182
+ (
183
+ source: AccountId20 | string | Uint8Array,
184
+ dest: AccountId20 | string | Uint8Array,
185
+ value: Compact<u128> | AnyNumber | Uint8Array
186
+ ) => SubmittableExtrinsic<ApiType>,
187
+ [AccountId20, AccountId20, Compact<u128>]
188
+ >;
189
+ /**
190
+ * Unreserve some balance from a user by force.
191
+ *
192
+ * Can only be called by ROOT.
193
+ **/
194
+ forceUnreserve: AugmentedSubmittable<
195
+ (
196
+ who: AccountId20 | string | Uint8Array,
197
+ amount: u128 | AnyNumber | Uint8Array
198
+ ) => SubmittableExtrinsic<ApiType>,
199
+ [AccountId20, u128]
200
+ >;
201
+ /**
202
+ * Transfer the entire transferable balance from the caller account.
203
+ *
204
+ * NOTE: This function only attempts to transfer _transferable_ balances. This means that
205
+ * any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be
206
+ * transferred by this function. To ensure that this function results in a killed account,
207
+ * you might need to prepare the account by removing any reference counters, storage
208
+ * deposits, etc...
209
+ *
210
+ * The dispatch origin of this call must be Signed.
211
+ *
212
+ * - `dest`: The recipient of the transfer.
213
+ * - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
214
+ * of the funds the account has, causing the sender account to be killed (false), or
215
+ * transfer everything except at least the existential deposit, which will guarantee to
216
+ * keep the sender account alive (true).
217
+ **/
218
+ transferAll: AugmentedSubmittable<
219
+ (
220
+ dest: AccountId20 | string | Uint8Array,
221
+ keepAlive: bool | boolean | Uint8Array
222
+ ) => SubmittableExtrinsic<ApiType>,
223
+ [AccountId20, bool]
224
+ >;
225
+ /**
226
+ * Transfer some liquid free balance to another account.
227
+ *
228
+ * `transfer_allow_death` will set the `FreeBalance` of the sender and receiver.
229
+ * If the sender's account is below the existential deposit as a result
230
+ * of the transfer, the account will be reaped.
231
+ *
232
+ * The dispatch origin for this call must be `Signed` by the transactor.
233
+ **/
234
+ transferAllowDeath: AugmentedSubmittable<
235
+ (
236
+ dest: AccountId20 | string | Uint8Array,
237
+ value: Compact<u128> | AnyNumber | Uint8Array
238
+ ) => SubmittableExtrinsic<ApiType>,
239
+ [AccountId20, Compact<u128>]
240
+ >;
241
+ /**
242
+ * Same as the [`transfer_allow_death`] call, but with a check that the transfer will not
243
+ * kill the origin account.
244
+ *
245
+ * 99% of the time you want [`transfer_allow_death`] instead.
246
+ *
247
+ * [`transfer_allow_death`]: struct.Pallet.html#method.transfer
248
+ **/
249
+ transferKeepAlive: AugmentedSubmittable<
250
+ (
251
+ dest: AccountId20 | string | Uint8Array,
252
+ value: Compact<u128> | AnyNumber | Uint8Array
253
+ ) => SubmittableExtrinsic<ApiType>,
254
+ [AccountId20, Compact<u128>]
255
+ >;
256
+ /**
257
+ * Upgrade a specified account.
258
+ *
259
+ * - `origin`: Must be `Signed`.
260
+ * - `who`: The account to be upgraded.
261
+ *
262
+ * This will waive the transaction fee if at least all but 10% of the accounts needed to
263
+ * be upgraded. (We let some not have to be upgraded just in order to allow for the
264
+ * possibility of churn).
265
+ **/
266
+ upgradeAccounts: AugmentedSubmittable<
267
+ (
268
+ who: Vec<AccountId20> | (AccountId20 | string | Uint8Array)[]
269
+ ) => SubmittableExtrinsic<ApiType>,
270
+ [Vec<AccountId20>]
271
+ >;
272
+ /**
273
+ * Generic tx
274
+ **/
275
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
276
+ };
277
+ bucketNfts: {
278
+ /**
279
+ * Share access to files within a bucket with another account.
280
+ *
281
+ * The `read_access_regex` parameter is optional and when set to `None` it means that the recipient will be denied access for any read request within the bucket.
282
+ **/
283
+ shareAccess: AugmentedSubmittable<
284
+ (
285
+ recipient: AccountId20 | string | Uint8Array,
286
+ bucket: H256 | string | Uint8Array,
287
+ itemId: u32 | AnyNumber | Uint8Array,
288
+ readAccessRegex: Option<Bytes> | null | Uint8Array | Bytes | string
289
+ ) => SubmittableExtrinsic<ApiType>,
290
+ [AccountId20, H256, u32, Option<Bytes>]
291
+ >;
292
+ /**
293
+ * Update read access for an item.
294
+ **/
295
+ updateReadAccess: AugmentedSubmittable<
296
+ (
297
+ bucket: H256 | string | Uint8Array,
298
+ itemId: u32 | AnyNumber | Uint8Array,
299
+ readAccessRegex: Option<Bytes> | null | Uint8Array | Bytes | string
300
+ ) => SubmittableExtrinsic<ApiType>,
301
+ [H256, u32, Option<Bytes>]
302
+ >;
303
+ /**
304
+ * Generic tx
305
+ **/
306
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
307
+ };
308
+ ethereum: {
309
+ /**
310
+ * Transact an Ethereum transaction.
311
+ **/
312
+ transact: AugmentedSubmittable<
313
+ (
314
+ transaction:
315
+ | EthereumTransactionTransactionV2
316
+ | { Legacy: any }
317
+ | { EIP2930: any }
318
+ | { EIP1559: any }
319
+ | string
320
+ | Uint8Array
321
+ ) => SubmittableExtrinsic<ApiType>,
322
+ [EthereumTransactionTransactionV2]
323
+ >;
324
+ /**
325
+ * Generic tx
326
+ **/
327
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
328
+ };
329
+ evm: {
330
+ /**
331
+ * Issue an EVM call operation. This is similar to a message call transaction in Ethereum.
332
+ **/
333
+ call: AugmentedSubmittable<
334
+ (
335
+ source: H160 | string | Uint8Array,
336
+ target: H160 | string | Uint8Array,
337
+ input: Bytes | string | Uint8Array,
338
+ value: U256 | AnyNumber | Uint8Array,
339
+ gasLimit: u64 | AnyNumber | Uint8Array,
340
+ maxFeePerGas: U256 | AnyNumber | Uint8Array,
341
+ maxPriorityFeePerGas: Option<U256> | null | Uint8Array | U256 | AnyNumber,
342
+ nonce: Option<U256> | null | Uint8Array | U256 | AnyNumber,
343
+ accessList:
344
+ | Vec<ITuple<[H160, Vec<H256>]>>
345
+ | [H160 | string | Uint8Array, Vec<H256> | (H256 | string | Uint8Array)[]][]
346
+ ) => SubmittableExtrinsic<ApiType>,
347
+ [
348
+ H160,
349
+ H160,
350
+ Bytes,
351
+ U256,
352
+ u64,
353
+ U256,
354
+ Option<U256>,
355
+ Option<U256>,
356
+ Vec<ITuple<[H160, Vec<H256>]>>
357
+ ]
358
+ >;
359
+ /**
360
+ * Issue an EVM create operation. This is similar to a contract creation transaction in
361
+ * Ethereum.
362
+ **/
363
+ create: AugmentedSubmittable<
364
+ (
365
+ source: H160 | string | Uint8Array,
366
+ init: Bytes | string | Uint8Array,
367
+ value: U256 | AnyNumber | Uint8Array,
368
+ gasLimit: u64 | AnyNumber | Uint8Array,
369
+ maxFeePerGas: U256 | AnyNumber | Uint8Array,
370
+ maxPriorityFeePerGas: Option<U256> | null | Uint8Array | U256 | AnyNumber,
371
+ nonce: Option<U256> | null | Uint8Array | U256 | AnyNumber,
372
+ accessList:
373
+ | Vec<ITuple<[H160, Vec<H256>]>>
374
+ | [H160 | string | Uint8Array, Vec<H256> | (H256 | string | Uint8Array)[]][]
375
+ ) => SubmittableExtrinsic<ApiType>,
376
+ [H160, Bytes, U256, u64, U256, Option<U256>, Option<U256>, Vec<ITuple<[H160, Vec<H256>]>>]
377
+ >;
378
+ /**
379
+ * Issue an EVM create2 operation.
380
+ **/
381
+ create2: AugmentedSubmittable<
382
+ (
383
+ source: H160 | string | Uint8Array,
384
+ init: Bytes | string | Uint8Array,
385
+ salt: H256 | string | Uint8Array,
386
+ value: U256 | AnyNumber | Uint8Array,
387
+ gasLimit: u64 | AnyNumber | Uint8Array,
388
+ maxFeePerGas: U256 | AnyNumber | Uint8Array,
389
+ maxPriorityFeePerGas: Option<U256> | null | Uint8Array | U256 | AnyNumber,
390
+ nonce: Option<U256> | null | Uint8Array | U256 | AnyNumber,
391
+ accessList:
392
+ | Vec<ITuple<[H160, Vec<H256>]>>
393
+ | [H160 | string | Uint8Array, Vec<H256> | (H256 | string | Uint8Array)[]][]
394
+ ) => SubmittableExtrinsic<ApiType>,
395
+ [
396
+ H160,
397
+ Bytes,
398
+ H256,
399
+ U256,
400
+ u64,
401
+ U256,
402
+ Option<U256>,
403
+ Option<U256>,
404
+ Vec<ITuple<[H160, Vec<H256>]>>
405
+ ]
406
+ >;
407
+ /**
408
+ * Withdraw balance from EVM into currency/balances pallet.
409
+ **/
410
+ withdraw: AugmentedSubmittable<
411
+ (
412
+ address: H160 | string | Uint8Array,
413
+ value: u128 | AnyNumber | Uint8Array
414
+ ) => SubmittableExtrinsic<ApiType>,
415
+ [H160, u128]
416
+ >;
417
+ /**
418
+ * Generic tx
419
+ **/
420
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
421
+ };
422
+ fileSystem: {
423
+ /**
424
+ * Executed by a BSP to confirm to stop storing a file.
425
+ *
426
+ * It has to have previously opened a pending stop storing request using the `bsp_request_stop_storing` extrinsic.
427
+ * The minimum amount of blocks between the request and the confirmation is defined by the runtime, such that the
428
+ * BSP can't immediately stop storing a file it has previously lost when receiving a challenge for it.
429
+ **/
430
+ bspConfirmStopStoring: AugmentedSubmittable<
431
+ (
432
+ fileKey: H256 | string | Uint8Array,
433
+ inclusionForestProof:
434
+ | SpTrieStorageProofCompactProof
435
+ | { encodedNodes?: any }
436
+ | string
437
+ | Uint8Array
438
+ ) => SubmittableExtrinsic<ApiType>,
439
+ [H256, SpTrieStorageProofCompactProof]
440
+ >;
441
+ /**
442
+ * Used by a BSP to confirm they are storing data of a storage request.
443
+ **/
444
+ bspConfirmStoring: AugmentedSubmittable<
445
+ (
446
+ nonInclusionForestProof:
447
+ | SpTrieStorageProofCompactProof
448
+ | { encodedNodes?: any }
449
+ | string
450
+ | Uint8Array,
451
+ fileKeysAndProofs:
452
+ | Vec<PalletFileSystemFileKeyWithProof>
453
+ | (
454
+ | PalletFileSystemFileKeyWithProof
455
+ | { fileKey?: any; proof?: any }
456
+ | string
457
+ | Uint8Array
458
+ )[]
459
+ ) => SubmittableExtrinsic<ApiType>,
460
+ [SpTrieStorageProofCompactProof, Vec<PalletFileSystemFileKeyWithProof>]
461
+ >;
462
+ /**
463
+ * Executed by a BSP to request to stop storing a file.
464
+ *
465
+ * In the event when a storage request no longer exists for the data the BSP no longer stores,
466
+ * it is required that the BSP still has access to the metadata of the initial storage request.
467
+ * If they do not, they will at least need that metadata to reconstruct the File ID and from wherever
468
+ * the BSP gets that data is up to it. One example could be from the assigned MSP.
469
+ * This metadata is necessary since it is needed to reconstruct the leaf node key in the storage
470
+ * provider's Merkle Forest.
471
+ **/
472
+ bspRequestStopStoring: AugmentedSubmittable<
473
+ (
474
+ fileKey: H256 | string | Uint8Array,
475
+ bucketId: H256 | string | Uint8Array,
476
+ location: Bytes | string | Uint8Array,
477
+ owner: AccountId20 | string | Uint8Array,
478
+ fingerprint: H256 | string | Uint8Array,
479
+ size: u64 | AnyNumber | Uint8Array,
480
+ canServe: bool | boolean | Uint8Array,
481
+ inclusionForestProof:
482
+ | SpTrieStorageProofCompactProof
483
+ | { encodedNodes?: any }
484
+ | string
485
+ | Uint8Array
486
+ ) => SubmittableExtrinsic<ApiType>,
487
+ [H256, H256, Bytes, AccountId20, H256, u64, bool, SpTrieStorageProofCompactProof]
488
+ >;
489
+ /**
490
+ * Used by a BSP to volunteer for storing a file.
491
+ *
492
+ * The transaction will fail if the XOR between the file ID and the BSP ID is not below the threshold,
493
+ * so a BSP is strongly advised to check beforehand. Another reason for failure is
494
+ * if the maximum number of BSPs has been reached. A successful assignment as BSP means
495
+ * that some of the collateral tokens of that MSP are frozen.
496
+ **/
497
+ bspVolunteer: AugmentedSubmittable<
498
+ (fileKey: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>,
499
+ [H256]
500
+ >;
501
+ /**
502
+ * Create and associate a collection with a bucket.
503
+ **/
504
+ createAndAssociateCollectionWithBucket: AugmentedSubmittable<
505
+ (bucketId: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>,
506
+ [H256]
507
+ >;
508
+ createBucket: AugmentedSubmittable<
509
+ (
510
+ mspId: H256 | string | Uint8Array,
511
+ name: Bytes | string | Uint8Array,
512
+ private: bool | boolean | Uint8Array,
513
+ valuePropId: H256 | string | Uint8Array
514
+ ) => SubmittableExtrinsic<ApiType>,
515
+ [H256, Bytes, bool, H256]
516
+ >;
517
+ /**
518
+ * Dispatchable extrinsic that allows a User to delete any of their buckets if it is currently empty.
519
+ * This way, the User is allowed to remove now unused buckets to recover their deposit for them.
520
+ *
521
+ * The User must provide the BucketId of the bucket they want to delete, which should correspond to a
522
+ * bucket that is both theirs and currently empty.
523
+ *
524
+ * To check if a bucket is empty, we compare its current root with the one of an empty trie.
525
+ **/
526
+ deleteBucket: AugmentedSubmittable<
527
+ (bucketId: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>,
528
+ [H256]
529
+ >;
530
+ /**
531
+ * Deletes a file from a provider's forest, changing its root
532
+ *
533
+ * This extrinsic allows any actor to execute file deletion based on signed intentions
534
+ * from the `FileDeletionRequested` event. It requires a valid forest proof showing that the
535
+ * file exists in the specified provider's forest before allowing deletion.
536
+ *
537
+ * If `bsp_id` is `None`, the file will be deleted from the bucket forest.
538
+ * If `bsp_id` is `Some(id)`, the file will be deleted from the specified BSP's forest.
539
+ **/
540
+ deleteFile: AugmentedSubmittable<
541
+ (
542
+ fileOwner: AccountId20 | string | Uint8Array,
543
+ signedIntention:
544
+ | PalletFileSystemFileOperationIntention
545
+ | { fileKey?: any; operation?: any }
546
+ | string
547
+ | Uint8Array,
548
+ signature: FpAccountEthereumSignature | string | Uint8Array,
549
+ bucketId: H256 | string | Uint8Array,
550
+ location: Bytes | string | Uint8Array,
551
+ size: u64 | AnyNumber | Uint8Array,
552
+ fingerprint: H256 | string | Uint8Array,
553
+ bspId: Option<H256> | null | Uint8Array | H256 | string,
554
+ forestProof: SpTrieStorageProofCompactProof | { encodedNodes?: any } | string | Uint8Array
555
+ ) => SubmittableExtrinsic<ApiType>,
556
+ [
557
+ AccountId20,
558
+ PalletFileSystemFileOperationIntention,
559
+ FpAccountEthereumSignature,
560
+ H256,
561
+ Bytes,
562
+ u64,
563
+ H256,
564
+ Option<H256>,
565
+ SpTrieStorageProofCompactProof
566
+ ]
567
+ >;
568
+ /**
569
+ * Delete a file from an incomplete (rejected, expired or revoked) storage request.
570
+ *
571
+ * This extrinsic allows fisherman nodes to delete files from providers when an IncompleteStorageRequestMetadata for the given file_key
572
+ * exist in the IncompleteStorageRequests mapping. It validates that the IncompleteStorageRequestMetadata exists,
573
+ * that the provider has the file in its Merkle Patricia Forest, and verifies the file key matches the metadata.
574
+ **/
575
+ deleteFileForIncompleteStorageRequest: AugmentedSubmittable<
576
+ (
577
+ fileKey: H256 | string | Uint8Array,
578
+ bspId: Option<H256> | null | Uint8Array | H256 | string,
579
+ forestProof: SpTrieStorageProofCompactProof | { encodedNodes?: any } | string | Uint8Array
580
+ ) => SubmittableExtrinsic<ApiType>,
581
+ [H256, Option<H256>, SpTrieStorageProofCompactProof]
582
+ >;
583
+ /**
584
+ * Issue a new storage request for a file
585
+ **/
586
+ issueStorageRequest: AugmentedSubmittable<
587
+ (
588
+ bucketId: H256 | string | Uint8Array,
589
+ location: Bytes | string | Uint8Array,
590
+ fingerprint: H256 | string | Uint8Array,
591
+ size: u64 | AnyNumber | Uint8Array,
592
+ mspId: H256 | string | Uint8Array,
593
+ peerIds: Vec<Bytes> | (Bytes | string | Uint8Array)[],
594
+ replicationTarget:
595
+ | PalletFileSystemReplicationTarget
596
+ | { Basic: any }
597
+ | { Standard: any }
598
+ | { HighSecurity: any }
599
+ | { SuperHighSecurity: any }
600
+ | { UltraHighSecurity: any }
601
+ | { Custom: any }
602
+ | string
603
+ | Uint8Array
604
+ ) => SubmittableExtrinsic<ApiType>,
605
+ [H256, Bytes, H256, u64, H256, Vec<Bytes>, PalletFileSystemReplicationTarget]
606
+ >;
607
+ mspRespondMoveBucketRequest: AugmentedSubmittable<
608
+ (
609
+ bucketId: H256 | string | Uint8Array,
610
+ response:
611
+ | PalletFileSystemBucketMoveRequestResponse
612
+ | "Accepted"
613
+ | "Rejected"
614
+ | number
615
+ | Uint8Array
616
+ ) => SubmittableExtrinsic<ApiType>,
617
+ [H256, PalletFileSystemBucketMoveRequestResponse]
618
+ >;
619
+ /**
620
+ * Used by a MSP to accept or decline storage requests in batches, grouped by bucket.
621
+ *
622
+ * This follows a best-effort strategy, meaning that all file keys will be processed and declared to have successfully be
623
+ * accepted, rejected or have failed to be processed in the results of the event emitted.
624
+ *
625
+ * The MSP has to provide a file proof for all the file keys that are being accepted and a non-inclusion proof for the file keys
626
+ * in the bucket's Merkle Patricia Forest. The file proofs for the file keys is necessary to verify that
627
+ * the MSP actually has the files, while the non-inclusion proof is necessary to verify that the MSP
628
+ * wasn't storing it before.
629
+ **/
630
+ mspRespondStorageRequestsMultipleBuckets: AugmentedSubmittable<
631
+ (
632
+ storageRequestMspResponse:
633
+ | Vec<PalletFileSystemStorageRequestMspBucketResponse>
634
+ | (
635
+ | PalletFileSystemStorageRequestMspBucketResponse
636
+ | { bucketId?: any; accept?: any; reject?: any }
637
+ | string
638
+ | Uint8Array
639
+ )[]
640
+ ) => SubmittableExtrinsic<ApiType>,
641
+ [Vec<PalletFileSystemStorageRequestMspBucketResponse>]
642
+ >;
643
+ mspStopStoringBucket: AugmentedSubmittable<
644
+ (bucketId: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>,
645
+ [H256]
646
+ >;
647
+ /**
648
+ * Executed by a MSP to stop storing a bucket from an insolvent user.
649
+ *
650
+ * This is used when a user has become insolvent and the MSP needs to stop storing the buckets of that user, since
651
+ * it won't be getting paid for them anymore.
652
+ * It validates that:
653
+ * - The sender is the MSP that's currently storing the bucket, and the bucket exists.
654
+ * - That the user is currently insolvent OR
655
+ * - That the payment stream between the MSP and user doesn't exist (which would occur as a consequence of the MSP previously
656
+ * having deleted another bucket it was storing for this user through this extrinsic).
657
+ * And then completely removes the bucket from the system.
658
+ *
659
+ * If there was a storage request pending for the bucket, it will eventually expire without being fulfilled (because the MSP can't
660
+ * accept storage requests for insolvent users and BSPs can't volunteer nor confirm them either) and afterwards any BSPs that
661
+ * had confirmed the file can just call `sp_stop_storing_for_insolvent_user` to get rid of it.
662
+ **/
663
+ mspStopStoringBucketForInsolventUser: AugmentedSubmittable<
664
+ (bucketId: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>,
665
+ [H256]
666
+ >;
667
+ /**
668
+ * Request deletion of a file using a signed delete intention.
669
+ *
670
+ * The origin must be signed and the signature must be valid for the given delete intention.
671
+ * The delete intention must contain the file key and the delete operation.
672
+ * File metadata is provided separately for ownership verification.
673
+ **/
674
+ requestDeleteFile: AugmentedSubmittable<
675
+ (
676
+ signedIntention:
677
+ | PalletFileSystemFileOperationIntention
678
+ | { fileKey?: any; operation?: any }
679
+ | string
680
+ | Uint8Array,
681
+ signature: FpAccountEthereumSignature | string | Uint8Array,
682
+ bucketId: H256 | string | Uint8Array,
683
+ location: Bytes | string | Uint8Array,
684
+ size: u64 | AnyNumber | Uint8Array,
685
+ fingerprint: H256 | string | Uint8Array
686
+ ) => SubmittableExtrinsic<ApiType>,
687
+ [PalletFileSystemFileOperationIntention, FpAccountEthereumSignature, H256, Bytes, u64, H256]
688
+ >;
689
+ requestMoveBucket: AugmentedSubmittable<
690
+ (
691
+ bucketId: H256 | string | Uint8Array,
692
+ newMspId: H256 | string | Uint8Array,
693
+ newValuePropId: H256 | string | Uint8Array
694
+ ) => SubmittableExtrinsic<ApiType>,
695
+ [H256, H256, H256]
696
+ >;
697
+ /**
698
+ * Revoke storage request
699
+ **/
700
+ revokeStorageRequest: AugmentedSubmittable<
701
+ (fileKey: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>,
702
+ [H256]
703
+ >;
704
+ /**
705
+ * Executed by a SP to stop storing a file from an insolvent user.
706
+ *
707
+ * This is used when a user has become insolvent and the SP needs to stop storing the files of that user, since
708
+ * it won't be getting paid for it anymore.
709
+ * The validations are similar to the ones in the `bsp_request_stop_storing` and `bsp_confirm_stop_storing` extrinsics, but the SP doesn't need to
710
+ * wait for a minimum amount of blocks to confirm to stop storing the file nor it has to be a BSP.
711
+ **/
712
+ stopStoringForInsolventUser: AugmentedSubmittable<
713
+ (
714
+ fileKey: H256 | string | Uint8Array,
715
+ bucketId: H256 | string | Uint8Array,
716
+ location: Bytes | string | Uint8Array,
717
+ owner: AccountId20 | string | Uint8Array,
718
+ fingerprint: H256 | string | Uint8Array,
719
+ size: u64 | AnyNumber | Uint8Array,
720
+ inclusionForestProof:
721
+ | SpTrieStorageProofCompactProof
722
+ | { encodedNodes?: any }
723
+ | string
724
+ | Uint8Array
725
+ ) => SubmittableExtrinsic<ApiType>,
726
+ [H256, H256, Bytes, AccountId20, H256, u64, SpTrieStorageProofCompactProof]
727
+ >;
728
+ updateBucketPrivacy: AugmentedSubmittable<
729
+ (
730
+ bucketId: H256 | string | Uint8Array,
731
+ private: bool | boolean | Uint8Array
732
+ ) => SubmittableExtrinsic<ApiType>,
733
+ [H256, bool]
734
+ >;
735
+ /**
736
+ * Generic tx
737
+ **/
738
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
739
+ };
740
+ grandpa: {
741
+ /**
742
+ * Note that the current authority set of the GRANDPA finality gadget has stalled.
743
+ *
744
+ * This will trigger a forced authority set change at the beginning of the next session, to
745
+ * be enacted `delay` blocks after that. The `delay` should be high enough to safely assume
746
+ * that the block signalling the forced change will not be re-orged e.g. 1000 blocks.
747
+ * The block production rate (which may be slowed down because of finality lagging) should
748
+ * be taken into account when choosing the `delay`. The GRANDPA voters based on the new
749
+ * authority will start voting on top of `best_finalized_block_number` for new finalized
750
+ * blocks. `best_finalized_block_number` should be the highest of the latest finalized
751
+ * block of all validators of the new authority set.
752
+ *
753
+ * Only callable by root.
754
+ **/
755
+ noteStalled: AugmentedSubmittable<
756
+ (
757
+ delay: u32 | AnyNumber | Uint8Array,
758
+ bestFinalizedBlockNumber: u32 | AnyNumber | Uint8Array
759
+ ) => SubmittableExtrinsic<ApiType>,
760
+ [u32, u32]
761
+ >;
762
+ /**
763
+ * Report voter equivocation/misbehavior. This method will verify the
764
+ * equivocation proof and validate the given key ownership proof
765
+ * against the extracted offender. If both are valid, the offence
766
+ * will be reported.
767
+ **/
768
+ reportEquivocation: AugmentedSubmittable<
769
+ (
770
+ equivocationProof:
771
+ | SpConsensusGrandpaEquivocationProof
772
+ | { setId?: any; equivocation?: any }
773
+ | string
774
+ | Uint8Array,
775
+ keyOwnerProof:
776
+ | SpSessionMembershipProof
777
+ | { session?: any; trieNodes?: any; validatorCount?: any }
778
+ | string
779
+ | Uint8Array
780
+ ) => SubmittableExtrinsic<ApiType>,
781
+ [SpConsensusGrandpaEquivocationProof, SpSessionMembershipProof]
782
+ >;
783
+ /**
784
+ * Report voter equivocation/misbehavior. This method will verify the
785
+ * equivocation proof and validate the given key ownership proof
786
+ * against the extracted offender. If both are valid, the offence
787
+ * will be reported.
788
+ *
789
+ * This extrinsic must be called unsigned and it is expected that only
790
+ * block authors will call it (validated in `ValidateUnsigned`), as such
791
+ * if the block author is defined it will be defined as the equivocation
792
+ * reporter.
793
+ **/
794
+ reportEquivocationUnsigned: AugmentedSubmittable<
795
+ (
796
+ equivocationProof:
797
+ | SpConsensusGrandpaEquivocationProof
798
+ | { setId?: any; equivocation?: any }
799
+ | string
800
+ | Uint8Array,
801
+ keyOwnerProof:
802
+ | SpSessionMembershipProof
803
+ | { session?: any; trieNodes?: any; validatorCount?: any }
804
+ | string
805
+ | Uint8Array
806
+ ) => SubmittableExtrinsic<ApiType>,
807
+ [SpConsensusGrandpaEquivocationProof, SpSessionMembershipProof]
808
+ >;
809
+ /**
810
+ * Generic tx
811
+ **/
812
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
813
+ };
814
+ nfts: {
815
+ /**
816
+ * Approve item's attributes to be changed by a delegated third-party account.
817
+ *
818
+ * Origin must be Signed and must be an owner of the `item`.
819
+ *
820
+ * - `collection`: A collection of the item.
821
+ * - `item`: The item that holds attributes.
822
+ * - `delegate`: The account to delegate permission to change attributes of the item.
823
+ *
824
+ * Emits `ItemAttributesApprovalAdded` on success.
825
+ **/
826
+ approveItemAttributes: AugmentedSubmittable<
827
+ (
828
+ collection: u32 | AnyNumber | Uint8Array,
829
+ item: u32 | AnyNumber | Uint8Array,
830
+ delegate: AccountId20 | string | Uint8Array
831
+ ) => SubmittableExtrinsic<ApiType>,
832
+ [u32, u32, AccountId20]
833
+ >;
834
+ /**
835
+ * Approve an item to be transferred by a delegated third-party account.
836
+ *
837
+ * Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the
838
+ * `item`.
839
+ *
840
+ * - `collection`: The collection of the item to be approved for delegated transfer.
841
+ * - `item`: The item to be approved for delegated transfer.
842
+ * - `delegate`: The account to delegate permission to transfer the item.
843
+ * - `maybe_deadline`: Optional deadline for the approval. Specified by providing the
844
+ * number of blocks after which the approval will expire
845
+ *
846
+ * Emits `TransferApproved` on success.
847
+ *
848
+ * Weight: `O(1)`
849
+ **/
850
+ approveTransfer: AugmentedSubmittable<
851
+ (
852
+ collection: u32 | AnyNumber | Uint8Array,
853
+ item: u32 | AnyNumber | Uint8Array,
854
+ delegate: AccountId20 | string | Uint8Array,
855
+ maybeDeadline: Option<u32> | null | Uint8Array | u32 | AnyNumber
856
+ ) => SubmittableExtrinsic<ApiType>,
857
+ [u32, u32, AccountId20, Option<u32>]
858
+ >;
859
+ /**
860
+ * Destroy a single item.
861
+ *
862
+ * The origin must conform to `ForceOrigin` or must be Signed and the signing account must
863
+ * be the owner of the `item`.
864
+ *
865
+ * - `collection`: The collection of the item to be burned.
866
+ * - `item`: The item to be burned.
867
+ *
868
+ * Emits `Burned`.
869
+ *
870
+ * Weight: `O(1)`
871
+ **/
872
+ burn: AugmentedSubmittable<
873
+ (
874
+ collection: u32 | AnyNumber | Uint8Array,
875
+ item: u32 | AnyNumber | Uint8Array
876
+ ) => SubmittableExtrinsic<ApiType>,
877
+ [u32, u32]
878
+ >;
879
+ /**
880
+ * Allows to buy an item if it's up for sale.
881
+ *
882
+ * Origin must be Signed and must not be the owner of the `item`.
883
+ *
884
+ * - `collection`: The collection of the item.
885
+ * - `item`: The item the sender wants to buy.
886
+ * - `bid_price`: The price the sender is willing to pay.
887
+ *
888
+ * Emits `ItemBought` on success.
889
+ **/
890
+ buyItem: AugmentedSubmittable<
891
+ (
892
+ collection: u32 | AnyNumber | Uint8Array,
893
+ item: u32 | AnyNumber | Uint8Array,
894
+ bidPrice: u128 | AnyNumber | Uint8Array
895
+ ) => SubmittableExtrinsic<ApiType>,
896
+ [u32, u32, u128]
897
+ >;
898
+ /**
899
+ * Cancel one of the transfer approvals for a specific item.
900
+ *
901
+ * Origin must be either:
902
+ * - the `Force` origin;
903
+ * - `Signed` with the signer being the Owner of the `item`;
904
+ *
905
+ * Arguments:
906
+ * - `collection`: The collection of the item of whose approval will be cancelled.
907
+ * - `item`: The item of the collection of whose approval will be cancelled.
908
+ * - `delegate`: The account that is going to loose their approval.
909
+ *
910
+ * Emits `ApprovalCancelled` on success.
911
+ *
912
+ * Weight: `O(1)`
913
+ **/
914
+ cancelApproval: AugmentedSubmittable<
915
+ (
916
+ collection: u32 | AnyNumber | Uint8Array,
917
+ item: u32 | AnyNumber | Uint8Array,
918
+ delegate: AccountId20 | string | Uint8Array
919
+ ) => SubmittableExtrinsic<ApiType>,
920
+ [u32, u32, AccountId20]
921
+ >;
922
+ /**
923
+ * Cancel the previously provided approval to change item's attributes.
924
+ * All the previously set attributes by the `delegate` will be removed.
925
+ *
926
+ * Origin must be Signed and must be an owner of the `item`.
927
+ *
928
+ * - `collection`: Collection that the item is contained within.
929
+ * - `item`: The item that holds attributes.
930
+ * - `delegate`: The previously approved account to remove.
931
+ *
932
+ * Emits `ItemAttributesApprovalRemoved` on success.
933
+ **/
934
+ cancelItemAttributesApproval: AugmentedSubmittable<
935
+ (
936
+ collection: u32 | AnyNumber | Uint8Array,
937
+ item: u32 | AnyNumber | Uint8Array,
938
+ delegate: AccountId20 | string | Uint8Array,
939
+ witness:
940
+ | PalletNftsCancelAttributesApprovalWitness
941
+ | { accountAttributes?: any }
942
+ | string
943
+ | Uint8Array
944
+ ) => SubmittableExtrinsic<ApiType>,
945
+ [u32, u32, AccountId20, PalletNftsCancelAttributesApprovalWitness]
946
+ >;
947
+ /**
948
+ * Cancel an atomic swap.
949
+ *
950
+ * Origin must be Signed.
951
+ * Origin must be an owner of the `item` if the deadline hasn't expired.
952
+ *
953
+ * - `collection`: The collection of the item.
954
+ * - `item`: The item an owner wants to give.
955
+ *
956
+ * Emits `SwapCancelled` on success.
957
+ **/
958
+ cancelSwap: AugmentedSubmittable<
959
+ (
960
+ offeredCollection: u32 | AnyNumber | Uint8Array,
961
+ offeredItem: u32 | AnyNumber | Uint8Array
962
+ ) => SubmittableExtrinsic<ApiType>,
963
+ [u32, u32]
964
+ >;
965
+ /**
966
+ * Claim an atomic swap.
967
+ * This method executes a pending swap, that was created by a counterpart before.
968
+ *
969
+ * Origin must be Signed and must be an owner of the `item`.
970
+ *
971
+ * - `send_collection`: The collection of the item to be sent.
972
+ * - `send_item`: The item to be sent.
973
+ * - `receive_collection`: The collection of the item to be received.
974
+ * - `receive_item`: The item to be received.
975
+ * - `witness_price`: A price that was previously agreed on.
976
+ *
977
+ * Emits `SwapClaimed` on success.
978
+ **/
979
+ claimSwap: AugmentedSubmittable<
980
+ (
981
+ sendCollection: u32 | AnyNumber | Uint8Array,
982
+ sendItem: u32 | AnyNumber | Uint8Array,
983
+ receiveCollection: u32 | AnyNumber | Uint8Array,
984
+ receiveItem: u32 | AnyNumber | Uint8Array,
985
+ witnessPrice:
986
+ | Option<PalletNftsPriceWithDirection>
987
+ | null
988
+ | Uint8Array
989
+ | PalletNftsPriceWithDirection
990
+ | { amount?: any; direction?: any }
991
+ | string
992
+ ) => SubmittableExtrinsic<ApiType>,
993
+ [u32, u32, u32, u32, Option<PalletNftsPriceWithDirection>]
994
+ >;
995
+ /**
996
+ * Cancel all the approvals of a specific item.
997
+ *
998
+ * Origin must be either:
999
+ * - the `Force` origin;
1000
+ * - `Signed` with the signer being the Owner of the `item`;
1001
+ *
1002
+ * Arguments:
1003
+ * - `collection`: The collection of the item of whose approvals will be cleared.
1004
+ * - `item`: The item of the collection of whose approvals will be cleared.
1005
+ *
1006
+ * Emits `AllApprovalsCancelled` on success.
1007
+ *
1008
+ * Weight: `O(1)`
1009
+ **/
1010
+ clearAllTransferApprovals: AugmentedSubmittable<
1011
+ (
1012
+ collection: u32 | AnyNumber | Uint8Array,
1013
+ item: u32 | AnyNumber | Uint8Array
1014
+ ) => SubmittableExtrinsic<ApiType>,
1015
+ [u32, u32]
1016
+ >;
1017
+ /**
1018
+ * Clear an attribute for a collection or item.
1019
+ *
1020
+ * Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the
1021
+ * attribute.
1022
+ *
1023
+ * Any deposit is freed for the collection's owner.
1024
+ *
1025
+ * - `collection`: The identifier of the collection whose item's metadata to clear.
1026
+ * - `maybe_item`: The identifier of the item whose metadata to clear.
1027
+ * - `namespace`: Attribute's namespace.
1028
+ * - `key`: The key of the attribute.
1029
+ *
1030
+ * Emits `AttributeCleared`.
1031
+ *
1032
+ * Weight: `O(1)`
1033
+ **/
1034
+ clearAttribute: AugmentedSubmittable<
1035
+ (
1036
+ collection: u32 | AnyNumber | Uint8Array,
1037
+ maybeItem: Option<u32> | null | Uint8Array | u32 | AnyNumber,
1038
+ namespace:
1039
+ | PalletNftsAttributeNamespace
1040
+ | { Pallet: any }
1041
+ | { CollectionOwner: any }
1042
+ | { ItemOwner: any }
1043
+ | { Account: any }
1044
+ | string
1045
+ | Uint8Array,
1046
+ key: Bytes | string | Uint8Array
1047
+ ) => SubmittableExtrinsic<ApiType>,
1048
+ [u32, Option<u32>, PalletNftsAttributeNamespace, Bytes]
1049
+ >;
1050
+ /**
1051
+ * Clear the metadata for a collection.
1052
+ *
1053
+ * Origin must be either `ForceOrigin` or `Signed` and the sender should be the Admin of
1054
+ * the `collection`.
1055
+ *
1056
+ * Any deposit is freed for the collection's owner.
1057
+ *
1058
+ * - `collection`: The identifier of the collection whose metadata to clear.
1059
+ *
1060
+ * Emits `CollectionMetadataCleared`.
1061
+ *
1062
+ * Weight: `O(1)`
1063
+ **/
1064
+ clearCollectionMetadata: AugmentedSubmittable<
1065
+ (collection: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>,
1066
+ [u32]
1067
+ >;
1068
+ /**
1069
+ * Clear the metadata for an item.
1070
+ *
1071
+ * Origin must be either `ForceOrigin` or Signed and the sender should be the Admin of the
1072
+ * `collection`.
1073
+ *
1074
+ * Any deposit is freed for the collection's owner.
1075
+ *
1076
+ * - `collection`: The identifier of the collection whose item's metadata to clear.
1077
+ * - `item`: The identifier of the item whose metadata to clear.
1078
+ *
1079
+ * Emits `ItemMetadataCleared`.
1080
+ *
1081
+ * Weight: `O(1)`
1082
+ **/
1083
+ clearMetadata: AugmentedSubmittable<
1084
+ (
1085
+ collection: u32 | AnyNumber | Uint8Array,
1086
+ item: u32 | AnyNumber | Uint8Array
1087
+ ) => SubmittableExtrinsic<ApiType>,
1088
+ [u32, u32]
1089
+ >;
1090
+ /**
1091
+ * Issue a new collection of non-fungible items from a public origin.
1092
+ *
1093
+ * This new collection has no items initially and its owner is the origin.
1094
+ *
1095
+ * The origin must be Signed and the sender must have sufficient funds free.
1096
+ *
1097
+ * `CollectionDeposit` funds of sender are reserved.
1098
+ *
1099
+ * Parameters:
1100
+ * - `admin`: The admin of this collection. The admin is the initial address of each
1101
+ * member of the collection's admin team.
1102
+ *
1103
+ * Emits `Created` event when successful.
1104
+ *
1105
+ * Weight: `O(1)`
1106
+ **/
1107
+ create: AugmentedSubmittable<
1108
+ (
1109
+ admin: AccountId20 | string | Uint8Array,
1110
+ config:
1111
+ | PalletNftsCollectionConfig
1112
+ | { settings?: any; maxSupply?: any; mintSettings?: any }
1113
+ | string
1114
+ | Uint8Array
1115
+ ) => SubmittableExtrinsic<ApiType>,
1116
+ [AccountId20, PalletNftsCollectionConfig]
1117
+ >;
1118
+ /**
1119
+ * Register a new atomic swap, declaring an intention to send an `item` in exchange for
1120
+ * `desired_item` from origin to target on the current blockchain.
1121
+ * The target can execute the swap during the specified `duration` of blocks (if set).
1122
+ * Additionally, the price could be set for the desired `item`.
1123
+ *
1124
+ * Origin must be Signed and must be an owner of the `item`.
1125
+ *
1126
+ * - `collection`: The collection of the item.
1127
+ * - `item`: The item an owner wants to give.
1128
+ * - `desired_collection`: The collection of the desired item.
1129
+ * - `desired_item`: The desired item an owner wants to receive.
1130
+ * - `maybe_price`: The price an owner is willing to pay or receive for the desired `item`.
1131
+ * - `duration`: A deadline for the swap. Specified by providing the number of blocks
1132
+ * after which the swap will expire.
1133
+ *
1134
+ * Emits `SwapCreated` on success.
1135
+ **/
1136
+ createSwap: AugmentedSubmittable<
1137
+ (
1138
+ offeredCollection: u32 | AnyNumber | Uint8Array,
1139
+ offeredItem: u32 | AnyNumber | Uint8Array,
1140
+ desiredCollection: u32 | AnyNumber | Uint8Array,
1141
+ maybeDesiredItem: Option<u32> | null | Uint8Array | u32 | AnyNumber,
1142
+ maybePrice:
1143
+ | Option<PalletNftsPriceWithDirection>
1144
+ | null
1145
+ | Uint8Array
1146
+ | PalletNftsPriceWithDirection
1147
+ | { amount?: any; direction?: any }
1148
+ | string,
1149
+ duration: u32 | AnyNumber | Uint8Array
1150
+ ) => SubmittableExtrinsic<ApiType>,
1151
+ [u32, u32, u32, Option<u32>, Option<PalletNftsPriceWithDirection>, u32]
1152
+ >;
1153
+ /**
1154
+ * Destroy a collection of fungible items.
1155
+ *
1156
+ * The origin must conform to `ForceOrigin` or must be `Signed` and the sender must be the
1157
+ * owner of the `collection`.
1158
+ *
1159
+ * NOTE: The collection must have 0 items to be destroyed.
1160
+ *
1161
+ * - `collection`: The identifier of the collection to be destroyed.
1162
+ * - `witness`: Information on the items minted in the collection. This must be
1163
+ * correct.
1164
+ *
1165
+ * Emits `Destroyed` event when successful.
1166
+ *
1167
+ * Weight: `O(m + c + a)` where:
1168
+ * - `m = witness.item_metadatas`
1169
+ * - `c = witness.item_configs`
1170
+ * - `a = witness.attributes`
1171
+ **/
1172
+ destroy: AugmentedSubmittable<
1173
+ (
1174
+ collection: u32 | AnyNumber | Uint8Array,
1175
+ witness:
1176
+ | PalletNftsDestroyWitness
1177
+ | { itemMetadatas?: any; itemConfigs?: any; attributes?: any }
1178
+ | string
1179
+ | Uint8Array
1180
+ ) => SubmittableExtrinsic<ApiType>,
1181
+ [u32, PalletNftsDestroyWitness]
1182
+ >;
1183
+ /**
1184
+ * Change the config of a collection.
1185
+ *
1186
+ * Origin must be `ForceOrigin`.
1187
+ *
1188
+ * - `collection`: The identifier of the collection.
1189
+ * - `config`: The new config of this collection.
1190
+ *
1191
+ * Emits `CollectionConfigChanged`.
1192
+ *
1193
+ * Weight: `O(1)`
1194
+ **/
1195
+ forceCollectionConfig: AugmentedSubmittable<
1196
+ (
1197
+ collection: u32 | AnyNumber | Uint8Array,
1198
+ config:
1199
+ | PalletNftsCollectionConfig
1200
+ | { settings?: any; maxSupply?: any; mintSettings?: any }
1201
+ | string
1202
+ | Uint8Array
1203
+ ) => SubmittableExtrinsic<ApiType>,
1204
+ [u32, PalletNftsCollectionConfig]
1205
+ >;
1206
+ /**
1207
+ * Change the Owner of a collection.
1208
+ *
1209
+ * Origin must be `ForceOrigin`.
1210
+ *
1211
+ * - `collection`: The identifier of the collection.
1212
+ * - `owner`: The new Owner of this collection.
1213
+ *
1214
+ * Emits `OwnerChanged`.
1215
+ *
1216
+ * Weight: `O(1)`
1217
+ **/
1218
+ forceCollectionOwner: AugmentedSubmittable<
1219
+ (
1220
+ collection: u32 | AnyNumber | Uint8Array,
1221
+ owner: AccountId20 | string | Uint8Array
1222
+ ) => SubmittableExtrinsic<ApiType>,
1223
+ [u32, AccountId20]
1224
+ >;
1225
+ /**
1226
+ * Issue a new collection of non-fungible items from a privileged origin.
1227
+ *
1228
+ * This new collection has no items initially.
1229
+ *
1230
+ * The origin must conform to `ForceOrigin`.
1231
+ *
1232
+ * Unlike `create`, no funds are reserved.
1233
+ *
1234
+ * - `owner`: The owner of this collection of items. The owner has full superuser
1235
+ * permissions over this item, but may later change and configure the permissions using
1236
+ * `transfer_ownership` and `set_team`.
1237
+ *
1238
+ * Emits `ForceCreated` event when successful.
1239
+ *
1240
+ * Weight: `O(1)`
1241
+ **/
1242
+ forceCreate: AugmentedSubmittable<
1243
+ (
1244
+ owner: AccountId20 | string | Uint8Array,
1245
+ config:
1246
+ | PalletNftsCollectionConfig
1247
+ | { settings?: any; maxSupply?: any; mintSettings?: any }
1248
+ | string
1249
+ | Uint8Array
1250
+ ) => SubmittableExtrinsic<ApiType>,
1251
+ [AccountId20, PalletNftsCollectionConfig]
1252
+ >;
1253
+ /**
1254
+ * Mint an item of a particular collection from a privileged origin.
1255
+ *
1256
+ * The origin must conform to `ForceOrigin` or must be `Signed` and the sender must be the
1257
+ * Issuer of the `collection`.
1258
+ *
1259
+ * - `collection`: The collection of the item to be minted.
1260
+ * - `item`: An identifier of the new item.
1261
+ * - `mint_to`: Account into which the item will be minted.
1262
+ * - `item_config`: A config of the new item.
1263
+ *
1264
+ * Emits `Issued` event when successful.
1265
+ *
1266
+ * Weight: `O(1)`
1267
+ **/
1268
+ forceMint: AugmentedSubmittable<
1269
+ (
1270
+ collection: u32 | AnyNumber | Uint8Array,
1271
+ item: u32 | AnyNumber | Uint8Array,
1272
+ mintTo: AccountId20 | string | Uint8Array,
1273
+ itemConfig: PalletNftsItemConfig | { settings?: any } | string | Uint8Array
1274
+ ) => SubmittableExtrinsic<ApiType>,
1275
+ [u32, u32, AccountId20, PalletNftsItemConfig]
1276
+ >;
1277
+ /**
1278
+ * Force-set an attribute for a collection or item.
1279
+ *
1280
+ * Origin must be `ForceOrigin`.
1281
+ *
1282
+ * If the attribute already exists and it was set by another account, the deposit
1283
+ * will be returned to the previous owner.
1284
+ *
1285
+ * - `set_as`: An optional owner of the attribute.
1286
+ * - `collection`: The identifier of the collection whose item's metadata to set.
1287
+ * - `maybe_item`: The identifier of the item whose metadata to set.
1288
+ * - `namespace`: Attribute's namespace.
1289
+ * - `key`: The key of the attribute.
1290
+ * - `value`: The value to which to set the attribute.
1291
+ *
1292
+ * Emits `AttributeSet`.
1293
+ *
1294
+ * Weight: `O(1)`
1295
+ **/
1296
+ forceSetAttribute: AugmentedSubmittable<
1297
+ (
1298
+ setAs: Option<AccountId20> | null | Uint8Array | AccountId20 | string,
1299
+ collection: u32 | AnyNumber | Uint8Array,
1300
+ maybeItem: Option<u32> | null | Uint8Array | u32 | AnyNumber,
1301
+ namespace:
1302
+ | PalletNftsAttributeNamespace
1303
+ | { Pallet: any }
1304
+ | { CollectionOwner: any }
1305
+ | { ItemOwner: any }
1306
+ | { Account: any }
1307
+ | string
1308
+ | Uint8Array,
1309
+ key: Bytes | string | Uint8Array,
1310
+ value: Bytes | string | Uint8Array
1311
+ ) => SubmittableExtrinsic<ApiType>,
1312
+ [Option<AccountId20>, u32, Option<u32>, PalletNftsAttributeNamespace, Bytes, Bytes]
1313
+ >;
1314
+ /**
1315
+ * Disallows specified settings for the whole collection.
1316
+ *
1317
+ * Origin must be Signed and the sender should be the Owner of the `collection`.
1318
+ *
1319
+ * - `collection`: The collection to be locked.
1320
+ * - `lock_settings`: The settings to be locked.
1321
+ *
1322
+ * Note: it's possible to only lock(set) the setting, but not to unset it.
1323
+ *
1324
+ * Emits `CollectionLocked`.
1325
+ *
1326
+ * Weight: `O(1)`
1327
+ **/
1328
+ lockCollection: AugmentedSubmittable<
1329
+ (
1330
+ collection: u32 | AnyNumber | Uint8Array,
1331
+ lockSettings: u64 | AnyNumber | Uint8Array
1332
+ ) => SubmittableExtrinsic<ApiType>,
1333
+ [u32, u64]
1334
+ >;
1335
+ /**
1336
+ * Disallows changing the metadata or attributes of the item.
1337
+ *
1338
+ * Origin must be either `ForceOrigin` or Signed and the sender should be the Admin
1339
+ * of the `collection`.
1340
+ *
1341
+ * - `collection`: The collection if the `item`.
1342
+ * - `item`: An item to be locked.
1343
+ * - `lock_metadata`: Specifies whether the metadata should be locked.
1344
+ * - `lock_attributes`: Specifies whether the attributes in the `CollectionOwner` namespace
1345
+ * should be locked.
1346
+ *
1347
+ * Note: `lock_attributes` affects the attributes in the `CollectionOwner` namespace only.
1348
+ * When the metadata or attributes are locked, it won't be possible the unlock them.
1349
+ *
1350
+ * Emits `ItemPropertiesLocked`.
1351
+ *
1352
+ * Weight: `O(1)`
1353
+ **/
1354
+ lockItemProperties: AugmentedSubmittable<
1355
+ (
1356
+ collection: u32 | AnyNumber | Uint8Array,
1357
+ item: u32 | AnyNumber | Uint8Array,
1358
+ lockMetadata: bool | boolean | Uint8Array,
1359
+ lockAttributes: bool | boolean | Uint8Array
1360
+ ) => SubmittableExtrinsic<ApiType>,
1361
+ [u32, u32, bool, bool]
1362
+ >;
1363
+ /**
1364
+ * Disallow further unprivileged transfer of an item.
1365
+ *
1366
+ * Origin must be Signed and the sender should be the Freezer of the `collection`.
1367
+ *
1368
+ * - `collection`: The collection of the item to be changed.
1369
+ * - `item`: The item to become non-transferable.
1370
+ *
1371
+ * Emits `ItemTransferLocked`.
1372
+ *
1373
+ * Weight: `O(1)`
1374
+ **/
1375
+ lockItemTransfer: AugmentedSubmittable<
1376
+ (
1377
+ collection: u32 | AnyNumber | Uint8Array,
1378
+ item: u32 | AnyNumber | Uint8Array
1379
+ ) => SubmittableExtrinsic<ApiType>,
1380
+ [u32, u32]
1381
+ >;
1382
+ /**
1383
+ * Mint an item of a particular collection.
1384
+ *
1385
+ * The origin must be Signed and the sender must comply with the `mint_settings` rules.
1386
+ *
1387
+ * - `collection`: The collection of the item to be minted.
1388
+ * - `item`: An identifier of the new item.
1389
+ * - `mint_to`: Account into which the item will be minted.
1390
+ * - `witness_data`: When the mint type is `HolderOf(collection_id)`, then the owned
1391
+ * item_id from that collection needs to be provided within the witness data object. If
1392
+ * the mint price is set, then it should be additionally confirmed in the `witness_data`.
1393
+ *
1394
+ * Note: the deposit will be taken from the `origin` and not the `owner` of the `item`.
1395
+ *
1396
+ * Emits `Issued` event when successful.
1397
+ *
1398
+ * Weight: `O(1)`
1399
+ **/
1400
+ mint: AugmentedSubmittable<
1401
+ (
1402
+ collection: u32 | AnyNumber | Uint8Array,
1403
+ item: u32 | AnyNumber | Uint8Array,
1404
+ mintTo: AccountId20 | string | Uint8Array,
1405
+ witnessData:
1406
+ | Option<PalletNftsMintWitness>
1407
+ | null
1408
+ | Uint8Array
1409
+ | PalletNftsMintWitness
1410
+ | { ownedItem?: any; mintPrice?: any }
1411
+ | string
1412
+ ) => SubmittableExtrinsic<ApiType>,
1413
+ [u32, u32, AccountId20, Option<PalletNftsMintWitness>]
1414
+ >;
1415
+ /**
1416
+ * Mint an item by providing the pre-signed approval.
1417
+ *
1418
+ * Origin must be Signed.
1419
+ *
1420
+ * - `mint_data`: The pre-signed approval that consists of the information about the item,
1421
+ * its metadata, attributes, who can mint it (`None` for anyone) and until what block
1422
+ * number.
1423
+ * - `signature`: The signature of the `data` object.
1424
+ * - `signer`: The `data` object's signer. Should be an Issuer of the collection.
1425
+ *
1426
+ * Emits `Issued` on success.
1427
+ * Emits `AttributeSet` if the attributes were provided.
1428
+ * Emits `ItemMetadataSet` if the metadata was not empty.
1429
+ **/
1430
+ mintPreSigned: AugmentedSubmittable<
1431
+ (
1432
+ mintData:
1433
+ | PalletNftsPreSignedMint
1434
+ | {
1435
+ collection?: any;
1436
+ item?: any;
1437
+ attributes?: any;
1438
+ metadata?: any;
1439
+ onlyAccount?: any;
1440
+ deadline?: any;
1441
+ mintPrice?: any;
1442
+ }
1443
+ | string
1444
+ | Uint8Array,
1445
+ signature: FpAccountEthereumSignature | string | Uint8Array,
1446
+ signer: AccountId20 | string | Uint8Array
1447
+ ) => SubmittableExtrinsic<ApiType>,
1448
+ [PalletNftsPreSignedMint, FpAccountEthereumSignature, AccountId20]
1449
+ >;
1450
+ /**
1451
+ * Allows to pay the tips.
1452
+ *
1453
+ * Origin must be Signed.
1454
+ *
1455
+ * - `tips`: Tips array.
1456
+ *
1457
+ * Emits `TipSent` on every tip transfer.
1458
+ **/
1459
+ payTips: AugmentedSubmittable<
1460
+ (
1461
+ tips:
1462
+ | Vec<PalletNftsItemTip>
1463
+ | (
1464
+ | PalletNftsItemTip
1465
+ | { collection?: any; item?: any; receiver?: any; amount?: any }
1466
+ | string
1467
+ | Uint8Array
1468
+ )[]
1469
+ ) => SubmittableExtrinsic<ApiType>,
1470
+ [Vec<PalletNftsItemTip>]
1471
+ >;
1472
+ /**
1473
+ * Re-evaluate the deposits on some items.
1474
+ *
1475
+ * Origin must be Signed and the sender should be the Owner of the `collection`.
1476
+ *
1477
+ * - `collection`: The collection of the items to be reevaluated.
1478
+ * - `items`: The items of the collection whose deposits will be reevaluated.
1479
+ *
1480
+ * NOTE: This exists as a best-effort function. Any items which are unknown or
1481
+ * in the case that the owner account does not have reservable funds to pay for a
1482
+ * deposit increase are ignored. Generally the owner isn't going to call this on items
1483
+ * whose existing deposit is less than the refreshed deposit as it would only cost them,
1484
+ * so it's of little consequence.
1485
+ *
1486
+ * It will still return an error in the case that the collection is unknown or the signer
1487
+ * is not permitted to call it.
1488
+ *
1489
+ * Weight: `O(items.len())`
1490
+ **/
1491
+ redeposit: AugmentedSubmittable<
1492
+ (
1493
+ collection: u32 | AnyNumber | Uint8Array,
1494
+ items: Vec<u32> | (u32 | AnyNumber | Uint8Array)[]
1495
+ ) => SubmittableExtrinsic<ApiType>,
1496
+ [u32, Vec<u32>]
1497
+ >;
1498
+ /**
1499
+ * Set (or reset) the acceptance of ownership for a particular account.
1500
+ *
1501
+ * Origin must be `Signed` and if `maybe_collection` is `Some`, then the signer must have a
1502
+ * provider reference.
1503
+ *
1504
+ * - `maybe_collection`: The identifier of the collection whose ownership the signer is
1505
+ * willing to accept, or if `None`, an indication that the signer is willing to accept no
1506
+ * ownership transferal.
1507
+ *
1508
+ * Emits `OwnershipAcceptanceChanged`.
1509
+ **/
1510
+ setAcceptOwnership: AugmentedSubmittable<
1511
+ (
1512
+ maybeCollection: Option<u32> | null | Uint8Array | u32 | AnyNumber
1513
+ ) => SubmittableExtrinsic<ApiType>,
1514
+ [Option<u32>]
1515
+ >;
1516
+ /**
1517
+ * Set an attribute for a collection or item.
1518
+ *
1519
+ * Origin must be Signed and must conform to the namespace ruleset:
1520
+ * - `CollectionOwner` namespace could be modified by the `collection` Admin only;
1521
+ * - `ItemOwner` namespace could be modified by the `maybe_item` owner only. `maybe_item`
1522
+ * should be set in that case;
1523
+ * - `Account(AccountId)` namespace could be modified only when the `origin` was given a
1524
+ * permission to do so;
1525
+ *
1526
+ * The funds of `origin` are reserved according to the formula:
1527
+ * `AttributeDepositBase + DepositPerByte * (key.len + value.len)` taking into
1528
+ * account any already reserved funds.
1529
+ *
1530
+ * - `collection`: The identifier of the collection whose item's metadata to set.
1531
+ * - `maybe_item`: The identifier of the item whose metadata to set.
1532
+ * - `namespace`: Attribute's namespace.
1533
+ * - `key`: The key of the attribute.
1534
+ * - `value`: The value to which to set the attribute.
1535
+ *
1536
+ * Emits `AttributeSet`.
1537
+ *
1538
+ * Weight: `O(1)`
1539
+ **/
1540
+ setAttribute: AugmentedSubmittable<
1541
+ (
1542
+ collection: u32 | AnyNumber | Uint8Array,
1543
+ maybeItem: Option<u32> | null | Uint8Array | u32 | AnyNumber,
1544
+ namespace:
1545
+ | PalletNftsAttributeNamespace
1546
+ | { Pallet: any }
1547
+ | { CollectionOwner: any }
1548
+ | { ItemOwner: any }
1549
+ | { Account: any }
1550
+ | string
1551
+ | Uint8Array,
1552
+ key: Bytes | string | Uint8Array,
1553
+ value: Bytes | string | Uint8Array
1554
+ ) => SubmittableExtrinsic<ApiType>,
1555
+ [u32, Option<u32>, PalletNftsAttributeNamespace, Bytes, Bytes]
1556
+ >;
1557
+ /**
1558
+ * Set attributes for an item by providing the pre-signed approval.
1559
+ *
1560
+ * Origin must be Signed and must be an owner of the `data.item`.
1561
+ *
1562
+ * - `data`: The pre-signed approval that consists of the information about the item,
1563
+ * attributes to update and until what block number.
1564
+ * - `signature`: The signature of the `data` object.
1565
+ * - `signer`: The `data` object's signer. Should be an Admin of the collection for the
1566
+ * `CollectionOwner` namespace.
1567
+ *
1568
+ * Emits `AttributeSet` for each provided attribute.
1569
+ * Emits `ItemAttributesApprovalAdded` if the approval wasn't set before.
1570
+ * Emits `PreSignedAttributesSet` on success.
1571
+ **/
1572
+ setAttributesPreSigned: AugmentedSubmittable<
1573
+ (
1574
+ data:
1575
+ | PalletNftsPreSignedAttributes
1576
+ | { collection?: any; item?: any; attributes?: any; namespace?: any; deadline?: any }
1577
+ | string
1578
+ | Uint8Array,
1579
+ signature: FpAccountEthereumSignature | string | Uint8Array,
1580
+ signer: AccountId20 | string | Uint8Array
1581
+ ) => SubmittableExtrinsic<ApiType>,
1582
+ [PalletNftsPreSignedAttributes, FpAccountEthereumSignature, AccountId20]
1583
+ >;
1584
+ /**
1585
+ * Set the maximum number of items a collection could have.
1586
+ *
1587
+ * Origin must be either `ForceOrigin` or `Signed` and the sender should be the Owner of
1588
+ * the `collection`.
1589
+ *
1590
+ * - `collection`: The identifier of the collection to change.
1591
+ * - `max_supply`: The maximum number of items a collection could have.
1592
+ *
1593
+ * Emits `CollectionMaxSupplySet` event when successful.
1594
+ **/
1595
+ setCollectionMaxSupply: AugmentedSubmittable<
1596
+ (
1597
+ collection: u32 | AnyNumber | Uint8Array,
1598
+ maxSupply: u32 | AnyNumber | Uint8Array
1599
+ ) => SubmittableExtrinsic<ApiType>,
1600
+ [u32, u32]
1601
+ >;
1602
+ /**
1603
+ * Set the metadata for a collection.
1604
+ *
1605
+ * Origin must be either `ForceOrigin` or `Signed` and the sender should be the Admin of
1606
+ * the `collection`.
1607
+ *
1608
+ * If the origin is `Signed`, then funds of signer are reserved according to the formula:
1609
+ * `MetadataDepositBase + DepositPerByte * data.len` taking into
1610
+ * account any already reserved funds.
1611
+ *
1612
+ * - `collection`: The identifier of the item whose metadata to update.
1613
+ * - `data`: The general information of this item. Limited in length by `StringLimit`.
1614
+ *
1615
+ * Emits `CollectionMetadataSet`.
1616
+ *
1617
+ * Weight: `O(1)`
1618
+ **/
1619
+ setCollectionMetadata: AugmentedSubmittable<
1620
+ (
1621
+ collection: u32 | AnyNumber | Uint8Array,
1622
+ data: Bytes | string | Uint8Array
1623
+ ) => SubmittableExtrinsic<ApiType>,
1624
+ [u32, Bytes]
1625
+ >;
1626
+ /**
1627
+ * Set the metadata for an item.
1628
+ *
1629
+ * Origin must be either `ForceOrigin` or Signed and the sender should be the Admin of the
1630
+ * `collection`.
1631
+ *
1632
+ * If the origin is Signed, then funds of signer are reserved according to the formula:
1633
+ * `MetadataDepositBase + DepositPerByte * data.len` taking into
1634
+ * account any already reserved funds.
1635
+ *
1636
+ * - `collection`: The identifier of the collection whose item's metadata to set.
1637
+ * - `item`: The identifier of the item whose metadata to set.
1638
+ * - `data`: The general information of this item. Limited in length by `StringLimit`.
1639
+ *
1640
+ * Emits `ItemMetadataSet`.
1641
+ *
1642
+ * Weight: `O(1)`
1643
+ **/
1644
+ setMetadata: AugmentedSubmittable<
1645
+ (
1646
+ collection: u32 | AnyNumber | Uint8Array,
1647
+ item: u32 | AnyNumber | Uint8Array,
1648
+ data: Bytes | string | Uint8Array
1649
+ ) => SubmittableExtrinsic<ApiType>,
1650
+ [u32, u32, Bytes]
1651
+ >;
1652
+ /**
1653
+ * Set (or reset) the price for an item.
1654
+ *
1655
+ * Origin must be Signed and must be the owner of the `item`.
1656
+ *
1657
+ * - `collection`: The collection of the item.
1658
+ * - `item`: The item to set the price for.
1659
+ * - `price`: The price for the item. Pass `None`, to reset the price.
1660
+ * - `buyer`: Restricts the buy operation to a specific account.
1661
+ *
1662
+ * Emits `ItemPriceSet` on success if the price is not `None`.
1663
+ * Emits `ItemPriceRemoved` on success if the price is `None`.
1664
+ **/
1665
+ setPrice: AugmentedSubmittable<
1666
+ (
1667
+ collection: u32 | AnyNumber | Uint8Array,
1668
+ item: u32 | AnyNumber | Uint8Array,
1669
+ price: Option<u128> | null | Uint8Array | u128 | AnyNumber,
1670
+ whitelistedBuyer: Option<AccountId20> | null | Uint8Array | AccountId20 | string
1671
+ ) => SubmittableExtrinsic<ApiType>,
1672
+ [u32, u32, Option<u128>, Option<AccountId20>]
1673
+ >;
1674
+ /**
1675
+ * Change the Issuer, Admin and Freezer of a collection.
1676
+ *
1677
+ * Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the
1678
+ * `collection`.
1679
+ *
1680
+ * Note: by setting the role to `None` only the `ForceOrigin` will be able to change it
1681
+ * after to `Some(account)`.
1682
+ *
1683
+ * - `collection`: The collection whose team should be changed.
1684
+ * - `issuer`: The new Issuer of this collection.
1685
+ * - `admin`: The new Admin of this collection.
1686
+ * - `freezer`: The new Freezer of this collection.
1687
+ *
1688
+ * Emits `TeamChanged`.
1689
+ *
1690
+ * Weight: `O(1)`
1691
+ **/
1692
+ setTeam: AugmentedSubmittable<
1693
+ (
1694
+ collection: u32 | AnyNumber | Uint8Array,
1695
+ issuer: Option<AccountId20> | null | Uint8Array | AccountId20 | string,
1696
+ admin: Option<AccountId20> | null | Uint8Array | AccountId20 | string,
1697
+ freezer: Option<AccountId20> | null | Uint8Array | AccountId20 | string
1698
+ ) => SubmittableExtrinsic<ApiType>,
1699
+ [u32, Option<AccountId20>, Option<AccountId20>, Option<AccountId20>]
1700
+ >;
1701
+ /**
1702
+ * Move an item from the sender account to another.
1703
+ *
1704
+ * Origin must be Signed and the signing account must be either:
1705
+ * - the Owner of the `item`;
1706
+ * - the approved delegate for the `item` (in this case, the approval is reset).
1707
+ *
1708
+ * Arguments:
1709
+ * - `collection`: The collection of the item to be transferred.
1710
+ * - `item`: The item to be transferred.
1711
+ * - `dest`: The account to receive ownership of the item.
1712
+ *
1713
+ * Emits `Transferred`.
1714
+ *
1715
+ * Weight: `O(1)`
1716
+ **/
1717
+ transfer: AugmentedSubmittable<
1718
+ (
1719
+ collection: u32 | AnyNumber | Uint8Array,
1720
+ item: u32 | AnyNumber | Uint8Array,
1721
+ dest: AccountId20 | string | Uint8Array
1722
+ ) => SubmittableExtrinsic<ApiType>,
1723
+ [u32, u32, AccountId20]
1724
+ >;
1725
+ /**
1726
+ * Change the Owner of a collection.
1727
+ *
1728
+ * Origin must be Signed and the sender should be the Owner of the `collection`.
1729
+ *
1730
+ * - `collection`: The collection whose owner should be changed.
1731
+ * - `owner`: The new Owner of this collection. They must have called
1732
+ * `set_accept_ownership` with `collection` in order for this operation to succeed.
1733
+ *
1734
+ * Emits `OwnerChanged`.
1735
+ *
1736
+ * Weight: `O(1)`
1737
+ **/
1738
+ transferOwnership: AugmentedSubmittable<
1739
+ (
1740
+ collection: u32 | AnyNumber | Uint8Array,
1741
+ newOwner: AccountId20 | string | Uint8Array
1742
+ ) => SubmittableExtrinsic<ApiType>,
1743
+ [u32, AccountId20]
1744
+ >;
1745
+ /**
1746
+ * Re-allow unprivileged transfer of an item.
1747
+ *
1748
+ * Origin must be Signed and the sender should be the Freezer of the `collection`.
1749
+ *
1750
+ * - `collection`: The collection of the item to be changed.
1751
+ * - `item`: The item to become transferable.
1752
+ *
1753
+ * Emits `ItemTransferUnlocked`.
1754
+ *
1755
+ * Weight: `O(1)`
1756
+ **/
1757
+ unlockItemTransfer: AugmentedSubmittable<
1758
+ (
1759
+ collection: u32 | AnyNumber | Uint8Array,
1760
+ item: u32 | AnyNumber | Uint8Array
1761
+ ) => SubmittableExtrinsic<ApiType>,
1762
+ [u32, u32]
1763
+ >;
1764
+ /**
1765
+ * Update mint settings.
1766
+ *
1767
+ * Origin must be either `ForceOrigin` or `Signed` and the sender should be the Issuer
1768
+ * of the `collection`.
1769
+ *
1770
+ * - `collection`: The identifier of the collection to change.
1771
+ * - `mint_settings`: The new mint settings.
1772
+ *
1773
+ * Emits `CollectionMintSettingsUpdated` event when successful.
1774
+ **/
1775
+ updateMintSettings: AugmentedSubmittable<
1776
+ (
1777
+ collection: u32 | AnyNumber | Uint8Array,
1778
+ mintSettings:
1779
+ | PalletNftsMintSettings
1780
+ | {
1781
+ mintType?: any;
1782
+ price?: any;
1783
+ startBlock?: any;
1784
+ endBlock?: any;
1785
+ defaultItemSettings?: any;
1786
+ }
1787
+ | string
1788
+ | Uint8Array
1789
+ ) => SubmittableExtrinsic<ApiType>,
1790
+ [u32, PalletNftsMintSettings]
1791
+ >;
1792
+ /**
1793
+ * Generic tx
1794
+ **/
1795
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
1796
+ };
1797
+ parameters: {
1798
+ /**
1799
+ * Set the value of a parameter.
1800
+ *
1801
+ * The dispatch origin of this call must be `AdminOrigin` for the given `key`. Values be
1802
+ * deleted by setting them to `None`.
1803
+ **/
1804
+ setParameter: AugmentedSubmittable<
1805
+ (
1806
+ keyValue:
1807
+ | ShSolochainEvmRuntimeConfigsRuntimeParamsRuntimeParameters
1808
+ | { RuntimeConfig: any }
1809
+ | string
1810
+ | Uint8Array
1811
+ ) => SubmittableExtrinsic<ApiType>,
1812
+ [ShSolochainEvmRuntimeConfigsRuntimeParamsRuntimeParameters]
1813
+ >;
1814
+ /**
1815
+ * Generic tx
1816
+ **/
1817
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
1818
+ };
1819
+ paymentStreams: {
1820
+ /**
1821
+ * Dispatchable extrinsic that allows Providers to charge multiple User's payment streams.
1822
+ *
1823
+ * The dispatch origin for this call must be Signed.
1824
+ * The origin must be the Provider that has at least one type of payment stream with each of the Users.
1825
+ *
1826
+ * Parameters:
1827
+ * - `user_accounts`: The array of User Account IDs that have payment streams with the Provider.
1828
+ *
1829
+ * This extrinsic will perform the following checks and logic:
1830
+ * 1. Check that the extrinsic was signed and get the signer.
1831
+ * 2. Check that the array of Users is not bigger than the maximum allowed.
1832
+ * 3. Execute a for loop for each User in the array of User Account IDs, in which it:
1833
+ * a. Checks that a payment stream between the signer (Provider) and the User exists
1834
+ * b. If there is a fixed-rate payment stream:
1835
+ * 1. Get the rate of the payment stream
1836
+ * 2. Get the difference between the last charged tick number and the last chargeable tick number of the stream
1837
+ * 3. Calculate the amount to charge doing `rate * difference`
1838
+ * 4. Charge the user (if the user does not have enough funds, it gets flagged and a `UserWithoutFunds` event is emitted)
1839
+ * 5. Update the last charged tick number of the payment stream
1840
+ * c. If there is a dynamic-rate payment stream:
1841
+ * 1. Get the amount provided by the Provider
1842
+ * 2. Get the difference between price index when the stream was last charged and the price index at the last chargeable tick
1843
+ * 3. Calculate the amount to charge doing `amount_provided * difference`
1844
+ * 4. Charge the user (if the user does not have enough funds, it gets flagged and a `UserWithoutFunds` event is emitted)
1845
+ * 5. Update the price index when the stream was last charged of the payment stream
1846
+ *
1847
+ * Emits a `PaymentStreamCharged` per User that had to pay and a `UsersCharged` event when successful.
1848
+ *
1849
+ * Notes: a Provider could have both a fixed-rate and a dynamic-rate payment stream with a User. If that's the case, this extrinsic
1850
+ * will try to charge both and the amount charged will be the sum of the amounts charged for each payment stream.
1851
+ **/
1852
+ chargeMultipleUsersPaymentStreams: AugmentedSubmittable<
1853
+ (
1854
+ userAccounts: Vec<AccountId20> | (AccountId20 | string | Uint8Array)[]
1855
+ ) => SubmittableExtrinsic<ApiType>,
1856
+ [Vec<AccountId20>]
1857
+ >;
1858
+ /**
1859
+ * Dispatchable extrinsic that allows Providers to charge a payment stream from a User.
1860
+ *
1861
+ * The dispatch origin for this call must be Signed.
1862
+ * The origin must be the Provider that has at least one type of payment stream with the User.
1863
+ *
1864
+ * Parameters:
1865
+ * - `user_account`: The User Account ID that the payment stream is for.
1866
+ *
1867
+ * This extrinsic will perform the following checks and logic:
1868
+ * 1. Check that the extrinsic was signed and get the signer.
1869
+ * 2. Check that a payment stream between the signer (Provider) and the User exists
1870
+ * 3. If there is a fixed-rate payment stream:
1871
+ * 1. Get the rate of the payment stream
1872
+ * 2. Get the difference between the last charged tick number and the last chargeable tick number of the stream
1873
+ * 3. Calculate the amount to charge doing `rate * difference`
1874
+ * 4. Charge the user (if the user does not have enough funds, it gets flagged and a `UserWithoutFunds` event is emitted)
1875
+ * 5. Update the last charged tick number of the payment stream
1876
+ * 4. If there is a dynamic-rate payment stream:
1877
+ * 1. Get the amount provided by the Provider
1878
+ * 2. Get the difference between price index when the stream was last charged and the price index at the last chargeable tick
1879
+ * 3. Calculate the amount to charge doing `amount_provided * difference`
1880
+ * 4. Charge the user (if the user does not have enough funds, it gets flagged and a `UserWithoutFunds` event is emitted)
1881
+ * 5. Update the price index when the stream was last charged of the payment stream
1882
+ *
1883
+ * Emits a `PaymentStreamCharged` event when successful.
1884
+ *
1885
+ * Notes: a Provider could have both a fixed-rate and a dynamic-rate payment stream with a User. If that's the case, this extrinsic
1886
+ * will try to charge both and the amount charged will be the sum of the amounts charged for each payment stream.
1887
+ **/
1888
+ chargePaymentStreams: AugmentedSubmittable<
1889
+ (userAccount: AccountId20 | string | Uint8Array) => SubmittableExtrinsic<ApiType>,
1890
+ [AccountId20]
1891
+ >;
1892
+ /**
1893
+ * Dispatchable extrinsic that allows a user flagged as without funds long ago enough to clear this flag from its account,
1894
+ * allowing it to begin contracting and paying for services again. It should have previously paid all its outstanding debt.
1895
+ *
1896
+ * The dispatch origin for this call must be Signed.
1897
+ * The origin must be the User that has been flagged as without funds.
1898
+ *
1899
+ * This extrinsic will perform the following checks and logic:
1900
+ * 1. Check that the extrinsic was signed and get the signer.
1901
+ * 2. Check that the user has been flagged as without funds.
1902
+ * 3. Check that the cooldown period has passed since the user was flagged as without funds.
1903
+ * 4. Check that there's no remaining outstanding debt.
1904
+ * 5. Unflag the user as without funds.
1905
+ *
1906
+ * Emits a 'UserSolvent' event when successful.
1907
+ **/
1908
+ clearInsolventFlag: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
1909
+ /**
1910
+ * Dispatchable extrinsic that allows root to add a dynamic-rate payment stream from a User to a Provider.
1911
+ *
1912
+ * The dispatch origin for this call must be Root (Payment streams should only be added by traits in other pallets,
1913
+ * this extrinsic is for manual testing).
1914
+ *
1915
+ * Parameters:
1916
+ * - `provider_id`: The Provider ID that the payment stream is for.
1917
+ * - `user_account`: The User Account ID that the payment stream is for.
1918
+ * - `amount_provided`: The initial amount provided by the Provider.
1919
+ *
1920
+ * This extrinsic will perform the following checks and logic:
1921
+ * 1. Check that the extrinsic was executed by the root origin
1922
+ * 2. Check that the payment stream does not already exist
1923
+ * 3. Check that the User has enough funds to pay the deposit
1924
+ * 4. Hold the deposit from the User
1925
+ * 5. Update the Payment Streams storage to add the new payment stream
1926
+ *
1927
+ * Emits `DynamicRatePaymentStreamCreated` event when successful.
1928
+ **/
1929
+ createDynamicRatePaymentStream: AugmentedSubmittable<
1930
+ (
1931
+ providerId: H256 | string | Uint8Array,
1932
+ userAccount: AccountId20 | string | Uint8Array,
1933
+ amountProvided: u64 | AnyNumber | Uint8Array
1934
+ ) => SubmittableExtrinsic<ApiType>,
1935
+ [H256, AccountId20, u64]
1936
+ >;
1937
+ /**
1938
+ * Dispatchable extrinsic that allows root to add a fixed-rate payment stream from a User to a Provider.
1939
+ *
1940
+ * The dispatch origin for this call must be Root (Payment streams should only be added by traits in other pallets,
1941
+ * this extrinsic is for manual testing).
1942
+ *
1943
+ * Parameters:
1944
+ * - `provider_id`: The Provider ID that the payment stream is for.
1945
+ * - `user_account`: The User Account ID that the payment stream is for.
1946
+ * - `rate`: The initial rate of the payment stream.
1947
+ *
1948
+ * This extrinsic will perform the following checks and logic:
1949
+ * 1. Check that the extrinsic was executed by the root origin
1950
+ * 2. Check that the payment stream does not already exist
1951
+ * 3. Check that the User has enough funds to pay the deposit
1952
+ * 4. Hold the deposit from the User
1953
+ * 5. Update the Payment Streams storage to add the new payment stream
1954
+ *
1955
+ * Emits `FixedRatePaymentStreamCreated` event when successful.
1956
+ **/
1957
+ createFixedRatePaymentStream: AugmentedSubmittable<
1958
+ (
1959
+ providerId: H256 | string | Uint8Array,
1960
+ userAccount: AccountId20 | string | Uint8Array,
1961
+ rate: u128 | AnyNumber | Uint8Array
1962
+ ) => SubmittableExtrinsic<ApiType>,
1963
+ [H256, AccountId20, u128]
1964
+ >;
1965
+ /**
1966
+ * Dispatchable extrinsic that allows root to delete an existing dynamic-rate payment stream between a User and a Provider.
1967
+ *
1968
+ * The dispatch origin for this call must be Root (Payment streams should only be added by traits in other pallets,
1969
+ * this extrinsic is for manual testing).
1970
+ *
1971
+ * Parameters:
1972
+ * - `provider_id`: The Provider ID that the payment stream is for.
1973
+ * - `user_account`: The User Account ID that the payment stream is for.
1974
+ *
1975
+ * This extrinsic will perform the following checks and logic:
1976
+ * 1. Check that the extrinsic was executed by the root origin
1977
+ * 2. Check that the payment stream exists
1978
+ * 3. Update the Payment Streams storage to remove the payment stream
1979
+ *
1980
+ * Emits `DynamicRatePaymentStreamDeleted` event when successful.
1981
+ **/
1982
+ deleteDynamicRatePaymentStream: AugmentedSubmittable<
1983
+ (
1984
+ providerId: H256 | string | Uint8Array,
1985
+ userAccount: AccountId20 | string | Uint8Array
1986
+ ) => SubmittableExtrinsic<ApiType>,
1987
+ [H256, AccountId20]
1988
+ >;
1989
+ /**
1990
+ * Dispatchable extrinsic that allows root to delete an existing fixed-rate payment stream between a User and a Provider.
1991
+ *
1992
+ * The dispatch origin for this call must be Root (Payment streams should only be added by traits in other pallets,
1993
+ * this extrinsic is for manual testing).
1994
+ *
1995
+ * Parameters:
1996
+ * - `provider_id`: The Provider ID that the payment stream is for.
1997
+ * - `user_account`: The User Account ID that the payment stream is for.
1998
+ *
1999
+ * This extrinsic will perform the following checks and logic:
2000
+ * 1. Check that the extrinsic was executed by the root origin
2001
+ * 2. Check that the payment stream exists
2002
+ * 3. Update the Payment Streams storage to remove the payment stream
2003
+ *
2004
+ * Emits `FixedRatePaymentStreamDeleted` event when successful.
2005
+ **/
2006
+ deleteFixedRatePaymentStream: AugmentedSubmittable<
2007
+ (
2008
+ providerId: H256 | string | Uint8Array,
2009
+ userAccount: AccountId20 | string | Uint8Array
2010
+ ) => SubmittableExtrinsic<ApiType>,
2011
+ [H256, AccountId20]
2012
+ >;
2013
+ /**
2014
+ * Dispatchable extrinsic that allows a user flagged as without funds to pay the Providers that still have payment streams
2015
+ * with it, in order to recover as much of its deposits as possible.
2016
+ *
2017
+ * The dispatch origin for this call must be Signed.
2018
+ * The origin must be the User that has been flagged as without funds.
2019
+ *
2020
+ * This extrinsic will perform the following checks and logic:
2021
+ * 1. Check that the extrinsic was signed and get the signer.
2022
+ * 2. Check that the user has been flagged as without funds.
2023
+ * 3. Release the user's funds that were held as a deposit for each payment stream to be paid.
2024
+ * 4. Get the payment streams that the user has with the provided list of Providers, and pay them for the services.
2025
+ * 5. Delete the charged payment streams of the user.
2026
+ *
2027
+ * Emits a 'UserPaidSomeDebts' event when successful if the user has remaining debts. If the user has successfully paid all its debts,
2028
+ * it emits a 'UserPaidAllDebts' event.
2029
+ *
2030
+ * Notes: this extrinsic iterates over the provided list of Providers, getting the payment streams they have with the user and charging
2031
+ * them, so the execution could get expensive. It's recommended to provide a list of Providers that the user actually has payment streams with,
2032
+ * which can be obtained by calling the `get_providers_with_payment_streams_with_user` runtime API.
2033
+ * There was an idea to limit the amount of Providers that can be received by this extrinsic using a constant in the configuration of this pallet,
2034
+ * but the correct benchmarking of this extrinsic should be enough to avoid any potential abuse.
2035
+ **/
2036
+ payOutstandingDebt: AugmentedSubmittable<
2037
+ (providers: Vec<H256> | (H256 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>,
2038
+ [Vec<H256>]
2039
+ >;
2040
+ /**
2041
+ * Dispatchable extrinsic that allows root to update an existing dynamic-rate payment stream between a User and a Provider.
2042
+ *
2043
+ * The dispatch origin for this call must be Root (Payment streams should only be added by traits in other pallets,
2044
+ * this extrinsic is for manual testing).
2045
+ *
2046
+ * Parameters:
2047
+ * - `provider_id`: The Provider ID that the payment stream is for.
2048
+ * - `user_account`: The User Account ID that the payment stream is for.
2049
+ * - `new_amount_provided`: The new amount provided by the Provider.
2050
+ *
2051
+ * This extrinsic will perform the following checks and logic:
2052
+ * 1. Check that the extrinsic was executed by the root origin
2053
+ * 2. Check that the payment stream exists
2054
+ * 3. Update the Payment Streams storage to update the payment stream
2055
+ *
2056
+ * Emits `DynamicRatePaymentStreamUpdated` event when successful.
2057
+ **/
2058
+ updateDynamicRatePaymentStream: AugmentedSubmittable<
2059
+ (
2060
+ providerId: H256 | string | Uint8Array,
2061
+ userAccount: AccountId20 | string | Uint8Array,
2062
+ newAmountProvided: u64 | AnyNumber | Uint8Array
2063
+ ) => SubmittableExtrinsic<ApiType>,
2064
+ [H256, AccountId20, u64]
2065
+ >;
2066
+ /**
2067
+ * Dispatchable extrinsic that allows root to update an existing fixed-rate payment stream between a User and a Provider.
2068
+ *
2069
+ * The dispatch origin for this call must be Root (Payment streams should only be added by traits in other pallets,
2070
+ * this extrinsic is for manual testing).
2071
+ *
2072
+ * Parameters:
2073
+ * - `provider_id`: The Provider ID that the payment stream is for.
2074
+ * - `user_account`: The User Account ID that the payment stream is for.
2075
+ * - `new_rate`: The new rate of the payment stream.
2076
+ *
2077
+ * This extrinsic will perform the following checks and logic:
2078
+ * 1. Check that the extrinsic was executed by the root origin
2079
+ * 2. Check that the payment stream exists
2080
+ * 3. Update the Payment Streams storage to update the payment stream
2081
+ *
2082
+ * Emits `FixedRatePaymentStreamUpdated` event when successful.
2083
+ **/
2084
+ updateFixedRatePaymentStream: AugmentedSubmittable<
2085
+ (
2086
+ providerId: H256 | string | Uint8Array,
2087
+ userAccount: AccountId20 | string | Uint8Array,
2088
+ newRate: u128 | AnyNumber | Uint8Array
2089
+ ) => SubmittableExtrinsic<ApiType>,
2090
+ [H256, AccountId20, u128]
2091
+ >;
2092
+ /**
2093
+ * Generic tx
2094
+ **/
2095
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
2096
+ };
2097
+ proofsDealer: {
2098
+ /**
2099
+ * Introduce a new challenge.
2100
+ *
2101
+ * This function allows authorized origins to add a new challenge to the `ChallengesQueue`.
2102
+ * The challenge will be dispatched in the coming blocks.
2103
+ * Users are charged a small fee for submitting a challenge, which
2104
+ * goes to the Treasury.
2105
+ **/
2106
+ challenge: AugmentedSubmittable<
2107
+ (key: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>,
2108
+ [H256]
2109
+ >;
2110
+ /**
2111
+ * Initialise a Provider's challenge cycle.
2112
+ *
2113
+ * Only callable by sudo.
2114
+ *
2115
+ * Sets the last tick the Provider submitted a proof for to the current tick, and sets the
2116
+ * deadline for submitting a proof to the current tick + the Provider's period + the tolerance.
2117
+ **/
2118
+ forceInitialiseChallengeCycle: AugmentedSubmittable<
2119
+ (provider: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>,
2120
+ [H256]
2121
+ >;
2122
+ priorityChallenge: AugmentedSubmittable<
2123
+ (
2124
+ key: H256 | string | Uint8Array,
2125
+ shouldRemoveKey: bool | boolean | Uint8Array
2126
+ ) => SubmittableExtrinsic<ApiType>,
2127
+ [H256, bool]
2128
+ >;
2129
+ /**
2130
+ * Set the [`ChallengesTickerPaused`] to `true` or `false`.
2131
+ *
2132
+ * Only callable by sudo.
2133
+ **/
2134
+ setPaused: AugmentedSubmittable<
2135
+ (paused: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>,
2136
+ [bool]
2137
+ >;
2138
+ /**
2139
+ * For a Provider to submit a proof.
2140
+ *
2141
+ * Checks that `provider` is a registered Provider. If none
2142
+ * is provided, the proof submitter is considered to be the Provider.
2143
+ * Relies on a Providers pallet to get the root for the Provider.
2144
+ * Validates that the proof corresponds to a challenge that was made in the past,
2145
+ * by checking the [`TickToChallengesSeed`] StorageMap. The challenge tick that the
2146
+ * Provider should be submitting a proof for is retrieved from [`ProviderToProofSubmissionRecord`],
2147
+ * and it was calculated based on the last tick they submitted a proof for, and the challenge
2148
+ * period for that Provider, at the time of the previous proof submission or when it was
2149
+ * marked as slashable.
2150
+ *
2151
+ * This extrinsic also checks that there hasn't been a checkpoint challenge round
2152
+ * in between the last time the Provider submitted a proof for and the tick
2153
+ * for which the proof is being submitted. If there has been, the Provider is
2154
+ * expected to include responses to the checkpoint challenges in the proof.
2155
+ *
2156
+ * If valid:
2157
+ * - Pushes forward the Provider in the [`TickToProvidersDeadlines`] StorageMap a number
2158
+ * of ticks corresponding to the stake of the Provider.
2159
+ * - Registers the last tick for which the Provider submitted a proof for in
2160
+ * [`ProviderToProofSubmissionRecord`], as well as the next tick for which the Provider
2161
+ * should submit a proof for.
2162
+ *
2163
+ * Execution of this extrinsic should be refunded if the proof is valid.
2164
+ **/
2165
+ submitProof: AugmentedSubmittable<
2166
+ (
2167
+ proof:
2168
+ | PalletProofsDealerProof
2169
+ | { forestProof?: any; keyProofs?: any }
2170
+ | string
2171
+ | Uint8Array,
2172
+ provider: Option<H256> | null | Uint8Array | H256 | string
2173
+ ) => SubmittableExtrinsic<ApiType>,
2174
+ [PalletProofsDealerProof, Option<H256>]
2175
+ >;
2176
+ /**
2177
+ * Generic tx
2178
+ **/
2179
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
2180
+ };
2181
+ providers: {
2182
+ /**
2183
+ * Dispatchable extrinsic that allows BSPs and MSPs to add a new multiaddress to their account.
2184
+ *
2185
+ * The dispatch origin for this call must be Signed.
2186
+ * The origin must be the account that wants to add a new multiaddress.
2187
+ *
2188
+ * Parameters:
2189
+ * - `new_multiaddress`: The new multiaddress that the signer wants to add to its account.
2190
+ *
2191
+ * This extrinsic will perform the following checks and logic:
2192
+ * 1. Check that the extrinsic was signed and get the signer.
2193
+ * 2. Check that the signer is registered as a MSP or BSP.
2194
+ * 3. Check that the Provider has not reached the maximum amount of multiaddresses.
2195
+ * 4. Check that the multiaddress is valid (size and any other relevant checks). TODO: Implement this.
2196
+ * 5. Update the Provider's storage to add the multiaddress.
2197
+ *
2198
+ * Emits `MultiAddressAdded` event when successful.
2199
+ **/
2200
+ addMultiaddress: AugmentedSubmittable<
2201
+ (newMultiaddress: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>,
2202
+ [Bytes]
2203
+ >;
2204
+ /**
2205
+ * Dispatchable extrinsic only callable by an MSP that allows it to add a value proposition to its service
2206
+ *
2207
+ * The dispatch origin for this call must be Signed.
2208
+ * The origin must be the account that wants to add a value proposition.
2209
+ *
2210
+ * Emits `ValuePropAdded` event when successful.
2211
+ **/
2212
+ addValueProp: AugmentedSubmittable<
2213
+ (
2214
+ pricePerGigaUnitOfDataPerBlock: u128 | AnyNumber | Uint8Array,
2215
+ commitment: Bytes | string | Uint8Array,
2216
+ bucketDataLimit: u64 | AnyNumber | Uint8Array
2217
+ ) => SubmittableExtrinsic<ApiType>,
2218
+ [u128, Bytes, u64]
2219
+ >;
2220
+ /**
2221
+ * Dispatchable extrinsic that allows users to sign off as a Backup Storage Provider.
2222
+ *
2223
+ * The dispatch origin for this call must be Signed.
2224
+ * The origin must be the account that wants to sign off as a Backup Storage Provider.
2225
+ *
2226
+ * This extrinsic will perform the following checks and logic:
2227
+ * 1. Check that the extrinsic was signed and get the signer.
2228
+ * 2. Check that the signer is registered as a BSP
2229
+ * 3. Check that the BSP has no storage assigned to it
2230
+ * 4. Update the BSPs storage, removing the signer as an BSP
2231
+ * 5. Update the total capacity of all BSPs, removing the capacity of the signer
2232
+ * 6. Return the deposit to the signer
2233
+ * 7. Decrement the storage that holds total amount of BSPs currently in the system
2234
+ *
2235
+ * Emits `BspSignOffSuccess` event when successful.
2236
+ **/
2237
+ bspSignOff: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
2238
+ /**
2239
+ * Dispatchable extrinsic that allows a user with a pending Sign Up Request to cancel it, getting the deposit back.
2240
+ *
2241
+ * The dispatch origin for this call must be Signed.
2242
+ * The origin must be the account that requested to sign up as a Storage Provider.
2243
+ *
2244
+ * This extrinsic will perform the following checks and logic:
2245
+ * 1. Check that the extrinsic was signed and get the signer.
2246
+ * 2. Check that the signer has requested to sign up as a SP
2247
+ * 3. Delete the request from the Sign Up Requests storage
2248
+ * 4. Return the deposit to the signer
2249
+ *
2250
+ * Emits `SignUpRequestCanceled` event when successful.
2251
+ **/
2252
+ cancelSignUp: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
2253
+ /**
2254
+ * Dispatchable extrinsic that allows users to change their amount of stored data
2255
+ *
2256
+ * The dispatch origin for this call must be Signed.
2257
+ * The origin must be the account that wants to change its capacity.
2258
+ *
2259
+ * Parameters:
2260
+ * - `new_capacity`: The new total amount of data that the Storage Provider wants to be able to store.
2261
+ *
2262
+ * This extrinsic will perform the following checks and logic:
2263
+ * 1. Check that the extrinsic was signed and get the signer.
2264
+ * 2. Check that the signer is registered as a SP
2265
+ * 3. Check that enough time has passed since the last time the SP changed its capacity
2266
+ * 4. Check that the new capacity is greater than the minimum required by the runtime
2267
+ * 5. Check that the new capacity is greater than the data used by this SP
2268
+ * 6. Calculate the new deposit needed for this new capacity
2269
+ * 7. Check to see if the new deposit needed is greater or less than the current deposit
2270
+ * a. If the new deposit is greater than the current deposit:
2271
+ * i. Check that the signer has enough funds to pay this extra deposit
2272
+ * ii. Hold the extra deposit from the signer
2273
+ * b. If the new deposit is less than the current deposit, return the held difference to the signer
2274
+ * 7. Update the SPs storage to change the total data
2275
+ * 8. If user is a BSP, update the total capacity of the network (sum of all capacities of BSPs)
2276
+ *
2277
+ * Emits `CapacityChanged` event when successful.
2278
+ **/
2279
+ changeCapacity: AugmentedSubmittable<
2280
+ (newCapacity: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>,
2281
+ [u64]
2282
+ >;
2283
+ /**
2284
+ * Dispatchable extrinsic that allows users to confirm their sign up as a Storage Provider, either MSP or BSP.
2285
+ *
2286
+ * The dispatch origin for this call must be Signed.
2287
+ * The origin must be the account that requested to sign up as a Storage Provider, except when providing a
2288
+ * `provider_account` parameter, in which case the origin can be any account.
2289
+ *
2290
+ * Parameters:
2291
+ * - `provider_account`: The account that requested to sign up as a Storage Provider. If not provided, the signer
2292
+ * will be considered the account that requested to sign up.
2293
+ *
2294
+ * This extrinsic will perform the following checks and logic:
2295
+ * 1. Check that the extrinsic was signed
2296
+ * 2. Check that the account received has requested to register as a SP
2297
+ * 3. Check that the current randomness is sufficiently fresh to be used as a salt for that request
2298
+ * 4. Check that the request has not expired
2299
+ * 5. Register the signer as a MSP or BSP with the data provided in the request
2300
+ *
2301
+ * Emits `MspSignUpSuccess` or `BspSignUpSuccess` event when successful, depending on the type of sign up.
2302
+ *
2303
+ * Notes:
2304
+ * - This extrinsic could be called by the user itself or by a third party
2305
+ * - The deposit that the user has to pay to register as a SP is held when the user requests to register as a SP
2306
+ * - If this extrinsic is successful, it will be free for the caller, to incentive state de-bloating
2307
+ **/
2308
+ confirmSignUp: AugmentedSubmittable<
2309
+ (
2310
+ providerAccount: Option<AccountId20> | null | Uint8Array | AccountId20 | string
2311
+ ) => SubmittableExtrinsic<ApiType>,
2312
+ [Option<AccountId20>]
2313
+ >;
2314
+ /**
2315
+ * Delete a provider from the system.
2316
+ *
2317
+ * This can only be done if the following conditions are met:
2318
+ * - The provider is insolvent.
2319
+ * - The provider has no active payment streams.
2320
+ *
2321
+ * This is a free operation and can be called by anyone with a signed transaction.
2322
+ *
2323
+ * You can utilize the runtime API `can_delete_provider` to check if a provider can be deleted
2324
+ * to automate the process.
2325
+ *
2326
+ * Emits `MspDeleted` or `BspDeleted` event when successful.
2327
+ *
2328
+ * This operation is free if successful to encourage the community to delete insolvent providers,
2329
+ * debloating the state.
2330
+ **/
2331
+ deleteProvider: AugmentedSubmittable<
2332
+ (providerId: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>,
2333
+ [H256]
2334
+ >;
2335
+ /**
2336
+ * Dispatchable extrinsic that allows to forcefully and automatically sing up a Backup Storage Provider.
2337
+ *
2338
+ * The dispatch origin for this call must be Root.
2339
+ * The `who` parameter is the account that wants to sign up as a Backup Storage Provider.
2340
+ *
2341
+ * Funds proportional to the capacity requested are reserved (held) from the account passed as the `who` parameter.
2342
+ *
2343
+ * Parameters:
2344
+ * - `who`: The account that wants to sign up as a Backup Storage Provider.
2345
+ * - `bsp_id`: The Backup Storage Provider ID that the account passed as the `who` parameter is requesting to sign up as.
2346
+ * - `capacity`: The total amount of data that the Backup Storage Provider will be able to store.
2347
+ * - `multiaddresses`: The vector of multiaddresses that the signer wants to register (according to the
2348
+ * [Multiaddr spec](https://github.com/multiformats/multiaddr))
2349
+ *
2350
+ * This extrinsic will perform the steps of:
2351
+ * 1. [request_bsp_sign_up](crate::dispatchables::request_bsp_sign_up)
2352
+ * 2. [confirm_sign_up](crate::dispatchables::confirm_sign_up)
2353
+ *
2354
+ * Emits `BspRequestSignUpSuccess` and `BspSignUpSuccess` events when successful.
2355
+ **/
2356
+ forceBspSignUp: AugmentedSubmittable<
2357
+ (
2358
+ who: AccountId20 | string | Uint8Array,
2359
+ bspId: H256 | string | Uint8Array,
2360
+ capacity: u64 | AnyNumber | Uint8Array,
2361
+ multiaddresses: Vec<Bytes> | (Bytes | string | Uint8Array)[],
2362
+ paymentAccount: AccountId20 | string | Uint8Array,
2363
+ weight: Option<u32> | null | Uint8Array | u32 | AnyNumber
2364
+ ) => SubmittableExtrinsic<ApiType>,
2365
+ [AccountId20, H256, u64, Vec<Bytes>, AccountId20, Option<u32>]
2366
+ >;
2367
+ /**
2368
+ * Dispatchable extrinsic that allows to forcefully and automatically sign up a Main Storage Provider.
2369
+ *
2370
+ * The dispatch origin for this call must be Root.
2371
+ * The `who` parameter is the account that wants to sign up as a Main Storage Provider.
2372
+ *
2373
+ * Funds proportional to the capacity requested are reserved (held) from the account passed as the `who` parameter.
2374
+ *
2375
+ * Parameters:
2376
+ * - `who`: The account that wants to sign up as a Main Storage Provider.
2377
+ * - `msp_id`: The Main Storage Provider ID that the account passed as the `who` parameter is requesting to sign up as.
2378
+ * - `capacity`: The total amount of data that the Main Storage Provider will be able to store.
2379
+ * - `multiaddresses`: The vector of multiaddresses that the signer wants to register (according to the
2380
+ * [Multiaddr spec](https://github.com/multiformats/multiaddr))
2381
+ * - `value_prop`: The value proposition that the signer will provide as a Main Storage Provider to
2382
+ * users and wants to register on-chain. It could be data limits, communication protocols to access the user's
2383
+ * data, and more.
2384
+ *
2385
+ * This extrinsic will perform the steps of:
2386
+ * 1. [request_msp_sign_up](crate::dispatchables::request_msp_sign_up)
2387
+ * 2. [confirm_sign_up](crate::dispatchables::confirm_sign_up)
2388
+ *
2389
+ * Emits `MspRequestSignUpSuccess` and `MspSignUpSuccess` events when successful.
2390
+ **/
2391
+ forceMspSignUp: AugmentedSubmittable<
2392
+ (
2393
+ who: AccountId20 | string | Uint8Array,
2394
+ mspId: H256 | string | Uint8Array,
2395
+ capacity: u64 | AnyNumber | Uint8Array,
2396
+ multiaddresses: Vec<Bytes> | (Bytes | string | Uint8Array)[],
2397
+ valuePropPricePerGigaUnitOfDataPerBlock: u128 | AnyNumber | Uint8Array,
2398
+ commitment: Bytes | string | Uint8Array,
2399
+ valuePropMaxDataLimit: u64 | AnyNumber | Uint8Array,
2400
+ paymentAccount: AccountId20 | string | Uint8Array
2401
+ ) => SubmittableExtrinsic<ApiType>,
2402
+ [AccountId20, H256, u64, Vec<Bytes>, u128, Bytes, u64, AccountId20]
2403
+ >;
2404
+ /**
2405
+ * Dispatchable extrinsic only callable by an MSP that allows it to make a value proposition unavailable.
2406
+ *
2407
+ * This operation cannot be reversed. You can only add new value propositions.
2408
+ * This will not affect existing buckets which are using this value proposition.
2409
+ **/
2410
+ makeValuePropUnavailable: AugmentedSubmittable<
2411
+ (valuePropId: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>,
2412
+ [H256]
2413
+ >;
2414
+ /**
2415
+ * Dispatchable extrinsic that allows users to sign off as a Main Storage Provider.
2416
+ *
2417
+ * The dispatch origin for this call must be Signed.
2418
+ * The origin must be the account that wants to sign off as a Main Storage Provider.
2419
+ *
2420
+ * This extrinsic will perform the following checks and logic:
2421
+ * 1. Check that the extrinsic was signed and get the signer.
2422
+ * 2. Check that the signer is registered as a MSP
2423
+ * 3. Check that the MSP has no storage assigned to it (no buckets or data used by it)
2424
+ * 4. Update the MSPs storage, removing the signer as an MSP
2425
+ * 5. Return the deposit to the signer
2426
+ * 6. Decrement the storage that holds total amount of MSPs currently in the system
2427
+ *
2428
+ * Emits `MspSignOffSuccess` event when successful.
2429
+ **/
2430
+ mspSignOff: AugmentedSubmittable<
2431
+ (mspId: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>,
2432
+ [H256]
2433
+ >;
2434
+ /**
2435
+ * Dispatchable extrinsic that allows BSPs and MSPs to remove an existing multiaddress from their account.
2436
+ *
2437
+ * The dispatch origin for this call must be Signed.
2438
+ * The origin must be the account that wants to remove a multiaddress.
2439
+ *
2440
+ * Parameters:
2441
+ * - `multiaddress`: The multiaddress that the signer wants to remove from its account.
2442
+ *
2443
+ * This extrinsic will perform the following checks and logic:
2444
+ * 1. Check that the extrinsic was signed and get the signer.
2445
+ * 2. Check that the signer is registered as a MSP or BSP.
2446
+ * 3. Check that the multiaddress exists in the Provider's account.
2447
+ * 4. Update the Provider's storage to remove the multiaddress.
2448
+ *
2449
+ * Emits `MultiAddressRemoved` event when successful.
2450
+ **/
2451
+ removeMultiaddress: AugmentedSubmittable<
2452
+ (multiaddress: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>,
2453
+ [Bytes]
2454
+ >;
2455
+ /**
2456
+ * Dispatchable extrinsic that allows users to sign up as a Backup Storage Provider.
2457
+ *
2458
+ * The dispatch origin for this call must be Signed.
2459
+ * The origin must be the account that wants to sign up as a Backup Storage Provider.
2460
+ *
2461
+ * Funds proportional to the capacity requested are reserved (held) from the account.
2462
+ *
2463
+ * Parameters:
2464
+ * - `capacity`: The total amount of data that the Backup Storage Provider will be able to store.
2465
+ * - `multiaddresses`: The vector of multiaddresses that the signer wants to register (according to the
2466
+ * [Multiaddr spec](https://github.com/multiformats/multiaddr))
2467
+ *
2468
+ * This extrinsic will perform the following checks and logic:
2469
+ * 1. Check that the extrinsic was signed and get the signer.
2470
+ * 2. Check that the signer is not already registered as either a MSP or BSP
2471
+ * 3. Check that the multiaddress is valid
2472
+ * 4. Check that the data to be stored is greater than the minimum required by the runtime
2473
+ * 5. Calculate how much deposit will the signer have to pay using the amount of data it wants to store
2474
+ * 6. Check that the signer has enough funds to pay the deposit
2475
+ * 7. Hold the deposit from the signer
2476
+ * 8. Update the Sign Up Requests storage to add the signer as requesting to sign up as a BSP
2477
+ *
2478
+ * Emits `BspRequestSignUpSuccess` event when successful.
2479
+ **/
2480
+ requestBspSignUp: AugmentedSubmittable<
2481
+ (
2482
+ capacity: u64 | AnyNumber | Uint8Array,
2483
+ multiaddresses: Vec<Bytes> | (Bytes | string | Uint8Array)[],
2484
+ paymentAccount: AccountId20 | string | Uint8Array
2485
+ ) => SubmittableExtrinsic<ApiType>,
2486
+ [u64, Vec<Bytes>, AccountId20]
2487
+ >;
2488
+ /**
2489
+ * Dispatchable extrinsic that allows users to request to sign up as a Main Storage Provider.
2490
+ *
2491
+ * The dispatch origin for this call must be Signed.
2492
+ * The origin must be the account that wants to sign up as a Main Storage Provider.
2493
+ *
2494
+ * Funds proportional to the capacity requested are reserved (held) from the account.
2495
+ *
2496
+ * Parameters:
2497
+ * - `capacity`: The total amount of data that the Main Storage Provider will be able to store.
2498
+ * - `multiaddresses`: The vector of multiaddresses that the signer wants to register (according to the
2499
+ * [Multiaddr spec](https://github.com/multiformats/multiaddr))
2500
+ * - `value_prop`: The value proposition that the signer will provide as a Main Storage Provider to
2501
+ * users and wants to register on-chain. It could be data limits, communication protocols to access the user's
2502
+ * data, and more.
2503
+ *
2504
+ * This extrinsic will perform the following checks and logic:
2505
+ * 1. Check that the extrinsic was signed and get the signer.
2506
+ * 2. Check that the signer is not already registered as either a MSP or BSP
2507
+ * 3. Check that the multiaddress is valid
2508
+ * 4. Check that the data to be stored is greater than the minimum required by the runtime.
2509
+ * 5. Calculate how much deposit will the signer have to pay using the amount of data it wants to store
2510
+ * 6. Check that the signer has enough funds to pay the deposit
2511
+ * 7. Hold the deposit from the signer
2512
+ * 8. Update the Sign Up Requests storage to add the signer as requesting to sign up as a MSP
2513
+ *
2514
+ * Emits `MspRequestSignUpSuccess` event when successful.
2515
+ **/
2516
+ requestMspSignUp: AugmentedSubmittable<
2517
+ (
2518
+ capacity: u64 | AnyNumber | Uint8Array,
2519
+ multiaddresses: Vec<Bytes> | (Bytes | string | Uint8Array)[],
2520
+ valuePropPricePerGigaUnitOfDataPerBlock: u128 | AnyNumber | Uint8Array,
2521
+ commitment: Bytes | string | Uint8Array,
2522
+ valuePropMaxDataLimit: u64 | AnyNumber | Uint8Array,
2523
+ paymentAccount: AccountId20 | string | Uint8Array
2524
+ ) => SubmittableExtrinsic<ApiType>,
2525
+ [u64, Vec<Bytes>, u128, Bytes, u64, AccountId20]
2526
+ >;
2527
+ /**
2528
+ * Dispatchable extrinsic to slash a _slashable_ Storage Provider.
2529
+ *
2530
+ * A Storage Provider is _slashable_ iff it has failed to respond to challenges for providing proofs of storage.
2531
+ * In the context of the StorageHub protocol, the proofs-dealer pallet marks a Storage Provider as _slashable_ when it fails to respond to challenges.
2532
+ *
2533
+ * This is a free operation to incentivise the community to slash misbehaving providers.
2534
+ **/
2535
+ slash: AugmentedSubmittable<
2536
+ (providerId: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>,
2537
+ [H256]
2538
+ >;
2539
+ /**
2540
+ * BSP operation to stop all of your automatic cycles.
2541
+ *
2542
+ * This includes:
2543
+ *
2544
+ * - Commit reveal randomness cycle
2545
+ * - Proof challenge cycle
2546
+ *
2547
+ * If you are an BSP, the only requirement that must be met is that your root is the default one (an empty root).
2548
+ **/
2549
+ stopAllCycles: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
2550
+ /**
2551
+ * Dispatchable extrinsic to top-up the deposit of a Storage Provider.
2552
+ *
2553
+ * The dispatch origin for this call must be signed.
2554
+ **/
2555
+ topUpDeposit: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
2556
+ /**
2557
+ * Generic tx
2558
+ **/
2559
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
2560
+ };
2561
+ randomness: {
2562
+ /**
2563
+ * This inherent that must be included (DispatchClass::Mandatory) at each block saves the latest randomness available from the
2564
+ * relay chain into a variable that can then be used as a seed for commitments that happened during
2565
+ * the previous relay chain epoch
2566
+ **/
2567
+ setBabeRandomness: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
2568
+ /**
2569
+ * Generic tx
2570
+ **/
2571
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
2572
+ };
2573
+ session: {
2574
+ /**
2575
+ * Removes any session key(s) of the function caller.
2576
+ *
2577
+ * This doesn't take effect until the next session.
2578
+ *
2579
+ * The dispatch origin of this function must be Signed and the account must be either be
2580
+ * convertible to a validator ID using the chain's typical addressing system (this usually
2581
+ * means being a controller account) or directly convertible into a validator ID (which
2582
+ * usually means being a stash account).
2583
+ *
2584
+ * ## Complexity
2585
+ * - `O(1)` in number of key types. Actual cost depends on the number of length of
2586
+ * `T::Keys::key_ids()` which is fixed.
2587
+ **/
2588
+ purgeKeys: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
2589
+ /**
2590
+ * Sets the session key(s) of the function caller to `keys`.
2591
+ * Allows an account to set its session key prior to becoming a validator.
2592
+ * This doesn't take effect until the next session.
2593
+ *
2594
+ * The dispatch origin of this function must be signed.
2595
+ *
2596
+ * ## Complexity
2597
+ * - `O(1)`. Actual cost depends on the number of length of `T::Keys::key_ids()` which is
2598
+ * fixed.
2599
+ **/
2600
+ setKeys: AugmentedSubmittable<
2601
+ (
2602
+ keys:
2603
+ | ShSolochainEvmRuntimeSessionKeys
2604
+ | { babe?: any; grandpa?: any }
2605
+ | string
2606
+ | Uint8Array,
2607
+ proof: Bytes | string | Uint8Array
2608
+ ) => SubmittableExtrinsic<ApiType>,
2609
+ [ShSolochainEvmRuntimeSessionKeys, Bytes]
2610
+ >;
2611
+ /**
2612
+ * Generic tx
2613
+ **/
2614
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
2615
+ };
2616
+ sudo: {
2617
+ /**
2618
+ * Permanently removes the sudo key.
2619
+ *
2620
+ * **This cannot be un-done.**
2621
+ **/
2622
+ removeKey: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
2623
+ /**
2624
+ * Authenticates the current sudo key and sets the given AccountId (`new`) as the new sudo
2625
+ * key.
2626
+ **/
2627
+ setKey: AugmentedSubmittable<
2628
+ (updated: AccountId20 | string | Uint8Array) => SubmittableExtrinsic<ApiType>,
2629
+ [AccountId20]
2630
+ >;
2631
+ /**
2632
+ * Authenticates the sudo key and dispatches a function call with `Root` origin.
2633
+ **/
2634
+ sudo: AugmentedSubmittable<
2635
+ (call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>,
2636
+ [Call]
2637
+ >;
2638
+ /**
2639
+ * Authenticates the sudo key and dispatches a function call with `Signed` origin from
2640
+ * a given account.
2641
+ *
2642
+ * The dispatch origin for this call must be _Signed_.
2643
+ **/
2644
+ sudoAs: AugmentedSubmittable<
2645
+ (
2646
+ who: AccountId20 | string | Uint8Array,
2647
+ call: Call | IMethod | string | Uint8Array
2648
+ ) => SubmittableExtrinsic<ApiType>,
2649
+ [AccountId20, Call]
2650
+ >;
2651
+ /**
2652
+ * Authenticates the sudo key and dispatches a function call with `Root` origin.
2653
+ * This function does not check the weight of the call, and instead allows the
2654
+ * Sudo user to specify the weight of the call.
2655
+ *
2656
+ * The dispatch origin for this call must be _Signed_.
2657
+ **/
2658
+ sudoUncheckedWeight: AugmentedSubmittable<
2659
+ (
2660
+ call: Call | IMethod | string | Uint8Array,
2661
+ weight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array
2662
+ ) => SubmittableExtrinsic<ApiType>,
2663
+ [Call, SpWeightsWeightV2Weight]
2664
+ >;
2665
+ /**
2666
+ * Generic tx
2667
+ **/
2668
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
2669
+ };
2670
+ system: {
2671
+ /**
2672
+ * Provide the preimage (runtime binary) `code` for an upgrade that has been authorized.
2673
+ *
2674
+ * If the authorization required a version check, this call will ensure the spec name
2675
+ * remains unchanged and that the spec version has increased.
2676
+ *
2677
+ * Depending on the runtime's `OnSetCode` configuration, this function may directly apply
2678
+ * the new `code` in the same block or attempt to schedule the upgrade.
2679
+ *
2680
+ * All origins are allowed.
2681
+ **/
2682
+ applyAuthorizedUpgrade: AugmentedSubmittable<
2683
+ (code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>,
2684
+ [Bytes]
2685
+ >;
2686
+ /**
2687
+ * Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied
2688
+ * later.
2689
+ *
2690
+ * This call requires Root origin.
2691
+ **/
2692
+ authorizeUpgrade: AugmentedSubmittable<
2693
+ (codeHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>,
2694
+ [H256]
2695
+ >;
2696
+ /**
2697
+ * Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied
2698
+ * later.
2699
+ *
2700
+ * WARNING: This authorizes an upgrade that will take place without any safety checks, for
2701
+ * example that the spec name remains the same and that the version number increases. Not
2702
+ * recommended for normal use. Use `authorize_upgrade` instead.
2703
+ *
2704
+ * This call requires Root origin.
2705
+ **/
2706
+ authorizeUpgradeWithoutChecks: AugmentedSubmittable<
2707
+ (codeHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>,
2708
+ [H256]
2709
+ >;
2710
+ /**
2711
+ * Kill all storage items with a key that starts with the given prefix.
2712
+ *
2713
+ * **NOTE:** We rely on the Root origin to provide us the number of subkeys under
2714
+ * the prefix we are removing to accurately calculate the weight of this function.
2715
+ **/
2716
+ killPrefix: AugmentedSubmittable<
2717
+ (
2718
+ prefix: Bytes | string | Uint8Array,
2719
+ subkeys: u32 | AnyNumber | Uint8Array
2720
+ ) => SubmittableExtrinsic<ApiType>,
2721
+ [Bytes, u32]
2722
+ >;
2723
+ /**
2724
+ * Kill some items from storage.
2725
+ **/
2726
+ killStorage: AugmentedSubmittable<
2727
+ (keys: Vec<Bytes> | (Bytes | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>,
2728
+ [Vec<Bytes>]
2729
+ >;
2730
+ /**
2731
+ * Make some on-chain remark.
2732
+ *
2733
+ * Can be executed by every `origin`.
2734
+ **/
2735
+ remark: AugmentedSubmittable<
2736
+ (remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>,
2737
+ [Bytes]
2738
+ >;
2739
+ /**
2740
+ * Make some on-chain remark and emit event.
2741
+ **/
2742
+ remarkWithEvent: AugmentedSubmittable<
2743
+ (remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>,
2744
+ [Bytes]
2745
+ >;
2746
+ /**
2747
+ * Set the new runtime code.
2748
+ **/
2749
+ setCode: AugmentedSubmittable<
2750
+ (code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>,
2751
+ [Bytes]
2752
+ >;
2753
+ /**
2754
+ * Set the new runtime code without doing any checks of the given `code`.
2755
+ *
2756
+ * Note that runtime upgrades will not run if this is called with a not-increasing spec
2757
+ * version!
2758
+ **/
2759
+ setCodeWithoutChecks: AugmentedSubmittable<
2760
+ (code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>,
2761
+ [Bytes]
2762
+ >;
2763
+ /**
2764
+ * Set the number of pages in the WebAssembly environment's heap.
2765
+ **/
2766
+ setHeapPages: AugmentedSubmittable<
2767
+ (pages: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>,
2768
+ [u64]
2769
+ >;
2770
+ /**
2771
+ * Set some items of storage.
2772
+ **/
2773
+ setStorage: AugmentedSubmittable<
2774
+ (
2775
+ items:
2776
+ | Vec<ITuple<[Bytes, Bytes]>>
2777
+ | [Bytes | string | Uint8Array, Bytes | string | Uint8Array][]
2778
+ ) => SubmittableExtrinsic<ApiType>,
2779
+ [Vec<ITuple<[Bytes, Bytes]>>]
2780
+ >;
2781
+ /**
2782
+ * Generic tx
2783
+ **/
2784
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
2785
+ };
2786
+ timestamp: {
2787
+ /**
2788
+ * Set the current time.
2789
+ *
2790
+ * This call should be invoked exactly once per block. It will panic at the finalization
2791
+ * phase, if this call hasn't been invoked by that time.
2792
+ *
2793
+ * The timestamp should be greater than the previous one by the amount specified by
2794
+ * [`Config::MinimumPeriod`].
2795
+ *
2796
+ * The dispatch origin for this call must be _None_.
2797
+ *
2798
+ * This dispatch class is _Mandatory_ to ensure it gets executed in the block. Be aware
2799
+ * that changing the complexity of this call could result exhausting the resources in a
2800
+ * block to execute any other calls.
2801
+ *
2802
+ * ## Complexity
2803
+ * - `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`)
2804
+ * - 1 storage read and 1 storage mutation (codec `O(1)` because of `DidUpdate::take` in
2805
+ * `on_finalize`)
2806
+ * - 1 event handler `on_timestamp_set`. Must be `O(1)`.
2807
+ **/
2808
+ set: AugmentedSubmittable<
2809
+ (now: Compact<u64> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>,
2810
+ [Compact<u64>]
2811
+ >;
2812
+ /**
2813
+ * Generic tx
2814
+ **/
2815
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
2816
+ };
2817
+ } // AugmentedSubmittables
2818
+ } // declare module