@functionland/react-native-fula 1.55.0 → 1.55.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.
- package/LICENSE +20 -20
- package/android/build.gradle +114 -115
- package/android/gradle.properties +8 -8
- package/android/src/main/AndroidManifest.xml +3 -3
- package/android/src/main/AndroidManifestNew.xml +2 -2
- package/android/src/main/java/land/fx/fula/ConfigRef.java +7 -7
- package/android/src/main/java/land/fx/fula/Cryptography.java +62 -62
- package/android/src/main/java/land/fx/fula/FulaModule.java +1991 -1868
- package/android/src/main/java/land/fx/fula/FulaPackage.java +32 -32
- package/android/src/main/java/land/fx/fula/SharedPreferenceHelper.java +65 -65
- package/android/src/main/java/land/fx/fula/StaticHelper.java +13 -13
- package/android/src/main/java/land/fx/fula/ThreadUtils.java +42 -42
- package/ios/Cryptography.swift +59 -59
- package/ios/Fula-Bridging-Header.h +3 -3
- package/ios/UserDataHelper.swift +143 -143
- package/lib/commonjs/index.js +3 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/interfaces/augment-api-consts.js.map +1 -1
- package/lib/commonjs/interfaces/augment-api-errors.js.map +1 -1
- package/lib/commonjs/interfaces/augment-api-events.js.map +1 -1
- package/lib/commonjs/interfaces/augment-api-query.js.map +1 -1
- package/lib/commonjs/interfaces/augment-api-rpc.js.map +1 -1
- package/lib/commonjs/interfaces/augment-api-runtime.js.map +1 -1
- package/lib/commonjs/interfaces/augment-api-tx.js.map +1 -1
- package/lib/commonjs/interfaces/augment-api.js.map +1 -1
- package/lib/commonjs/interfaces/augment-types.js.map +1 -1
- package/lib/commonjs/interfaces/definitions.js.map +1 -1
- package/lib/commonjs/interfaces/defintions.js.map +1 -1
- package/lib/commonjs/interfaces/fulaNativeModule.js.map +1 -1
- package/lib/commonjs/interfaces/index.js.map +1 -1
- package/lib/commonjs/interfaces/lookup.js +300 -300
- package/lib/commonjs/interfaces/lookup.js.map +1 -1
- package/lib/commonjs/interfaces/registry.js.map +1 -1
- package/lib/commonjs/interfaces/types-lookup.js.map +1 -1
- package/lib/commonjs/interfaces/types.js.map +1 -1
- package/lib/commonjs/protocols/blockchain.js +66 -66
- package/lib/commonjs/protocols/blockchain.js.map +1 -1
- package/lib/commonjs/protocols/chain-api.js.map +1 -1
- package/lib/commonjs/protocols/fula.js.map +1 -1
- package/lib/commonjs/protocols/fx-ai.js +161 -0
- package/lib/commonjs/protocols/fx-ai.js.map +1 -0
- package/lib/commonjs/protocols/fxblox.js +3 -3
- package/lib/commonjs/protocols/fxblox.js.map +1 -1
- package/lib/commonjs/types/blockchain.js.map +1 -1
- package/lib/commonjs/types/fxblox.js.map +1 -1
- package/lib/module/index.js +1 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/interfaces/augment-api-consts.js.map +1 -1
- package/lib/module/interfaces/augment-api-errors.js.map +1 -1
- package/lib/module/interfaces/augment-api-events.js.map +1 -1
- package/lib/module/interfaces/augment-api-query.js.map +1 -1
- package/lib/module/interfaces/augment-api-rpc.js.map +1 -1
- package/lib/module/interfaces/augment-api-runtime.js.map +1 -1
- package/lib/module/interfaces/augment-api-tx.js.map +1 -1
- package/lib/module/interfaces/augment-api.js.map +1 -1
- package/lib/module/interfaces/augment-types.js.map +1 -1
- package/lib/module/interfaces/definitions.js.map +1 -1
- package/lib/module/interfaces/defintions.js.map +1 -1
- package/lib/module/interfaces/fulaNativeModule.js.map +1 -1
- package/lib/module/interfaces/index.js.map +1 -1
- package/lib/module/interfaces/lookup.js +300 -300
- package/lib/module/interfaces/lookup.js.map +1 -1
- package/lib/module/interfaces/registry.js.map +1 -1
- package/lib/module/interfaces/types-lookup.js.map +1 -1
- package/lib/module/interfaces/types.js.map +1 -1
- package/lib/module/protocols/blockchain.js +66 -66
- package/lib/module/protocols/blockchain.js.map +1 -1
- package/lib/module/protocols/chain-api.js.map +1 -1
- package/lib/module/protocols/fula.js.map +1 -1
- package/lib/module/protocols/fx-ai.js +150 -0
- package/lib/module/protocols/fx-ai.js.map +1 -0
- package/lib/module/protocols/fxblox.js +3 -3
- package/lib/module/protocols/fxblox.js.map +1 -1
- package/lib/module/types/blockchain.js.map +1 -1
- package/lib/module/types/fxblox.js.map +1 -1
- package/package.json +176 -176
- package/react-native-fula.podspec +47 -47
- package/src/index.tsx +5 -4
- package/src/interfaces/augment-api-consts.ts +273 -273
- package/src/interfaces/augment-api-errors.ts +474 -474
- package/src/interfaces/augment-api-events.ts +448 -448
- package/src/interfaces/augment-api-query.ts +466 -466
- package/src/interfaces/augment-api-rpc.ts +617 -617
- package/src/interfaces/augment-api-runtime.ts +223 -223
- package/src/interfaces/augment-api-tx.ts +709 -709
- package/src/interfaces/augment-api.ts +9 -9
- package/src/interfaces/augment-types.ts +1322 -1322
- package/src/interfaces/definitions.ts +1 -1
- package/src/interfaces/defintions.ts +1 -1
- package/src/interfaces/fulaNativeModule.ts +175 -168
- package/src/interfaces/index.ts +3 -3
- package/src/interfaces/lookup.ts +2011 -2011
- package/src/interfaces/registry.ts +163 -163
- package/src/interfaces/types-lookup.ts +2165 -2165
- package/src/interfaces/types.ts +2 -2
- package/src/protocols/blockchain.ts +644 -644
- package/src/protocols/fx-ai.ts +182 -0
- package/src/protocols/fxblox.ts +443 -443
|
@@ -1,273 +1,273 @@
|
|
|
1
|
-
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
|
|
4
|
-
// import type lookup before we augment - in some environments
|
|
5
|
-
// this is required to allow for ambient/previous definitions
|
|
6
|
-
import '@polkadot/api-base/types/consts';
|
|
7
|
-
|
|
8
|
-
import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
|
|
9
|
-
import type { u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
10
|
-
import type { Codec } from '@polkadot/types-codec/types';
|
|
11
|
-
import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
|
12
|
-
|
|
13
|
-
export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
|
|
14
|
-
|
|
15
|
-
declare module '@polkadot/api-base/types/consts' {
|
|
16
|
-
interface AugmentedConsts<ApiType extends ApiTypes> {
|
|
17
|
-
asset: {
|
|
18
|
-
/**
|
|
19
|
-
* The minimum balance to create class
|
|
20
|
-
**/
|
|
21
|
-
createAssetClassDeposit: u128 & AugmentedConst<ApiType>;
|
|
22
|
-
maxAssetMetadata: u32 & AugmentedConst<ApiType>;
|
|
23
|
-
maxClassMetadata: u32 & AugmentedConst<ApiType>;
|
|
24
|
-
/**
|
|
25
|
-
* Generic const
|
|
26
|
-
**/
|
|
27
|
-
[key: string]: Codec;
|
|
28
|
-
};
|
|
29
|
-
bag: {
|
|
30
|
-
/**
|
|
31
|
-
* The minimum balance to create bag
|
|
32
|
-
**/
|
|
33
|
-
createBagDeposit: u128 & AugmentedConst<ApiType>;
|
|
34
|
-
/**
|
|
35
|
-
* Max number of owners
|
|
36
|
-
**/
|
|
37
|
-
maxOwners: u32 & AugmentedConst<ApiType>;
|
|
38
|
-
/**
|
|
39
|
-
* Generic const
|
|
40
|
-
**/
|
|
41
|
-
[key: string]: Codec;
|
|
42
|
-
};
|
|
43
|
-
balances: {
|
|
44
|
-
/**
|
|
45
|
-
* The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO!
|
|
46
|
-
*
|
|
47
|
-
* If you *really* need it to be zero, you can enable the feature `insecure_zero_ed` for
|
|
48
|
-
* this pallet. However, you do so at your own risk: this will open up a major DoS vector.
|
|
49
|
-
* In case you have multiple sources of provider references, you may also get unexpected
|
|
50
|
-
* behaviour if you set this to zero.
|
|
51
|
-
*
|
|
52
|
-
* Bottom line: Do yourself a favour and make it at least one!
|
|
53
|
-
**/
|
|
54
|
-
existentialDeposit: u128 & AugmentedConst<ApiType>;
|
|
55
|
-
/**
|
|
56
|
-
* The maximum number of individual freeze locks that can exist on an account at any time.
|
|
57
|
-
**/
|
|
58
|
-
maxFreezes: u32 & AugmentedConst<ApiType>;
|
|
59
|
-
/**
|
|
60
|
-
* The maximum number of holds that can exist on an account at any time.
|
|
61
|
-
**/
|
|
62
|
-
maxHolds: u32 & AugmentedConst<ApiType>;
|
|
63
|
-
/**
|
|
64
|
-
* The maximum number of locks that should exist on an account.
|
|
65
|
-
* Not strictly enforced, but used for weight estimation.
|
|
66
|
-
**/
|
|
67
|
-
maxLocks: u32 & AugmentedConst<ApiType>;
|
|
68
|
-
/**
|
|
69
|
-
* The maximum number of named reserves that can exist on an account.
|
|
70
|
-
**/
|
|
71
|
-
maxReserves: u32 & AugmentedConst<ApiType>;
|
|
72
|
-
/**
|
|
73
|
-
* Generic const
|
|
74
|
-
**/
|
|
75
|
-
[key: string]: Codec;
|
|
76
|
-
};
|
|
77
|
-
bundle: {
|
|
78
|
-
/**
|
|
79
|
-
* Max number of asset classes and per asset_id in a bundle
|
|
80
|
-
**/
|
|
81
|
-
maxAssets: u32 & AugmentedConst<ApiType>;
|
|
82
|
-
palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
|
|
83
|
-
/**
|
|
84
|
-
* Generic const
|
|
85
|
-
**/
|
|
86
|
-
[key: string]: Codec;
|
|
87
|
-
};
|
|
88
|
-
council: {
|
|
89
|
-
/**
|
|
90
|
-
* The maximum weight of a dispatch call that can be proposed and executed.
|
|
91
|
-
**/
|
|
92
|
-
maxProposalWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
|
|
93
|
-
/**
|
|
94
|
-
* Generic const
|
|
95
|
-
**/
|
|
96
|
-
[key: string]: Codec;
|
|
97
|
-
};
|
|
98
|
-
fula: {
|
|
99
|
-
maxManifestMetadata: u32 & AugmentedConst<ApiType>;
|
|
100
|
-
/**
|
|
101
|
-
* Generic const
|
|
102
|
-
**/
|
|
103
|
-
[key: string]: Codec;
|
|
104
|
-
};
|
|
105
|
-
grandpa: {
|
|
106
|
-
/**
|
|
107
|
-
* Max Authorities in use
|
|
108
|
-
**/
|
|
109
|
-
maxAuthorities: u32 & AugmentedConst<ApiType>;
|
|
110
|
-
/**
|
|
111
|
-
* The maximum number of entries to keep in the set id to session index mapping.
|
|
112
|
-
*
|
|
113
|
-
* Since the `SetIdSession` map is only used for validating equivocations this
|
|
114
|
-
* value should relate to the bonding duration of whatever staking system is
|
|
115
|
-
* being used (if any). If equivocation handling is not enabled then this value
|
|
116
|
-
* can be zero.
|
|
117
|
-
**/
|
|
118
|
-
maxSetIdSessionEntries: u64 & AugmentedConst<ApiType>;
|
|
119
|
-
/**
|
|
120
|
-
* Generic const
|
|
121
|
-
**/
|
|
122
|
-
[key: string]: Codec;
|
|
123
|
-
};
|
|
124
|
-
imOnline: {
|
|
125
|
-
/**
|
|
126
|
-
* A configuration for base priority of unsigned transactions.
|
|
127
|
-
*
|
|
128
|
-
* This is exposed so that it can be tuned for particular runtime, when
|
|
129
|
-
* multiple pallets send unsigned transactions.
|
|
130
|
-
**/
|
|
131
|
-
unsignedPriority: u64 & AugmentedConst<ApiType>;
|
|
132
|
-
/**
|
|
133
|
-
* Generic const
|
|
134
|
-
**/
|
|
135
|
-
[key: string]: Codec;
|
|
136
|
-
};
|
|
137
|
-
market: {
|
|
138
|
-
/**
|
|
139
|
-
* Max metadata size
|
|
140
|
-
**/
|
|
141
|
-
maxMetadata: u32 & AugmentedConst<ApiType>;
|
|
142
|
-
/**
|
|
143
|
-
* Max number of rates per market_rate
|
|
144
|
-
**/
|
|
145
|
-
maxRates: u32 & AugmentedConst<ApiType>;
|
|
146
|
-
palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
|
|
147
|
-
/**
|
|
148
|
-
* Generic const
|
|
149
|
-
**/
|
|
150
|
-
[key: string]: Codec;
|
|
151
|
-
};
|
|
152
|
-
pool: {
|
|
153
|
-
/**
|
|
154
|
-
* The maximum number of pool participants. We are aiming at `u8::MAX`.
|
|
155
|
-
**/
|
|
156
|
-
maxPoolParticipants: u32 & AugmentedConst<ApiType>;
|
|
157
|
-
/**
|
|
158
|
-
* The maximum length of a name or symbol stored on-chain. See if this can be limited to
|
|
159
|
-
* `u8::MAX`.
|
|
160
|
-
**/
|
|
161
|
-
stringLimit: u32 & AugmentedConst<ApiType>;
|
|
162
|
-
/**
|
|
163
|
-
* Generic const
|
|
164
|
-
**/
|
|
165
|
-
[key: string]: Codec;
|
|
166
|
-
};
|
|
167
|
-
scheduler: {
|
|
168
|
-
/**
|
|
169
|
-
* The maximum weight that may be scheduled per block for any dispatchables.
|
|
170
|
-
**/
|
|
171
|
-
maximumWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
|
|
172
|
-
/**
|
|
173
|
-
* The maximum number of scheduled calls in the queue for a single block.
|
|
174
|
-
*
|
|
175
|
-
* NOTE:
|
|
176
|
-
* + Dependent pallets' benchmarks might require a higher limit for the setting. Set a
|
|
177
|
-
* higher limit under `runtime-benchmarks` feature.
|
|
178
|
-
**/
|
|
179
|
-
maxScheduledPerBlock: u32 & AugmentedConst<ApiType>;
|
|
180
|
-
/**
|
|
181
|
-
* Generic const
|
|
182
|
-
**/
|
|
183
|
-
[key: string]: Codec;
|
|
184
|
-
};
|
|
185
|
-
system: {
|
|
186
|
-
/**
|
|
187
|
-
* Maximum number of block number to block hash mappings to keep (oldest pruned first).
|
|
188
|
-
**/
|
|
189
|
-
blockHashCount: u32 & AugmentedConst<ApiType>;
|
|
190
|
-
/**
|
|
191
|
-
* The maximum length of a block (in bytes).
|
|
192
|
-
**/
|
|
193
|
-
blockLength: FrameSystemLimitsBlockLength & AugmentedConst<ApiType>;
|
|
194
|
-
/**
|
|
195
|
-
* Block & extrinsics weights: base values and limits.
|
|
196
|
-
**/
|
|
197
|
-
blockWeights: FrameSystemLimitsBlockWeights & AugmentedConst<ApiType>;
|
|
198
|
-
/**
|
|
199
|
-
* The weight of runtime database operations the runtime can invoke.
|
|
200
|
-
**/
|
|
201
|
-
dbWeight: SpWeightsRuntimeDbWeight & AugmentedConst<ApiType>;
|
|
202
|
-
/**
|
|
203
|
-
* The designated SS58 prefix of this chain.
|
|
204
|
-
*
|
|
205
|
-
* This replaces the "ss58Format" property declared in the chain spec. Reason is
|
|
206
|
-
* that the runtime should know about the prefix in order to make use of it as
|
|
207
|
-
* an identifier of the chain.
|
|
208
|
-
**/
|
|
209
|
-
ss58Prefix: u16 & AugmentedConst<ApiType>;
|
|
210
|
-
/**
|
|
211
|
-
* Get the chain's current version.
|
|
212
|
-
**/
|
|
213
|
-
version: SpVersionRuntimeVersion & AugmentedConst<ApiType>;
|
|
214
|
-
/**
|
|
215
|
-
* Generic const
|
|
216
|
-
**/
|
|
217
|
-
[key: string]: Codec;
|
|
218
|
-
};
|
|
219
|
-
timestamp: {
|
|
220
|
-
/**
|
|
221
|
-
* The minimum period between blocks. Beware that this is different to the *expected*
|
|
222
|
-
* period that the block production apparatus provides. Your chosen consensus system will
|
|
223
|
-
* generally work with this to determine a sensible block time. e.g. For Aura, it will be
|
|
224
|
-
* double this period on default settings.
|
|
225
|
-
**/
|
|
226
|
-
minimumPeriod: u64 & AugmentedConst<ApiType>;
|
|
227
|
-
/**
|
|
228
|
-
* Generic const
|
|
229
|
-
**/
|
|
230
|
-
[key: string]: Codec;
|
|
231
|
-
};
|
|
232
|
-
transactionPayment: {
|
|
233
|
-
/**
|
|
234
|
-
* A fee mulitplier for `Operational` extrinsics to compute "virtual tip" to boost their
|
|
235
|
-
* `priority`
|
|
236
|
-
*
|
|
237
|
-
* This value is multipled by the `final_fee` to obtain a "virtual tip" that is later
|
|
238
|
-
* added to a tip component in regular `priority` calculations.
|
|
239
|
-
* It means that a `Normal` transaction can front-run a similarly-sized `Operational`
|
|
240
|
-
* extrinsic (with no tip), by including a tip value greater than the virtual tip.
|
|
241
|
-
*
|
|
242
|
-
* ```rust,ignore
|
|
243
|
-
* // For `Normal`
|
|
244
|
-
* let priority = priority_calc(tip);
|
|
245
|
-
*
|
|
246
|
-
* // For `Operational`
|
|
247
|
-
* let virtual_tip = (inclusion_fee + tip) * OperationalFeeMultiplier;
|
|
248
|
-
* let priority = priority_calc(tip + virtual_tip);
|
|
249
|
-
* ```
|
|
250
|
-
*
|
|
251
|
-
* Note that since we use `final_fee` the multiplier applies also to the regular `tip`
|
|
252
|
-
* sent with the transaction. So, not only does the transaction get a priority bump based
|
|
253
|
-
* on the `inclusion_fee`, but we also amplify the impact of tips applied to `Operational`
|
|
254
|
-
* transactions.
|
|
255
|
-
**/
|
|
256
|
-
operationalFeeMultiplier: u8 & AugmentedConst<ApiType>;
|
|
257
|
-
/**
|
|
258
|
-
* Generic const
|
|
259
|
-
**/
|
|
260
|
-
[key: string]: Codec;
|
|
261
|
-
};
|
|
262
|
-
utility: {
|
|
263
|
-
/**
|
|
264
|
-
* The limit on the number of batched calls.
|
|
265
|
-
**/
|
|
266
|
-
batchedCallsLimit: u32 & AugmentedConst<ApiType>;
|
|
267
|
-
/**
|
|
268
|
-
* Generic const
|
|
269
|
-
**/
|
|
270
|
-
[key: string]: Codec;
|
|
271
|
-
};
|
|
272
|
-
} // AugmentedConsts
|
|
273
|
-
} // declare module
|
|
1
|
+
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
|
|
4
|
+
// import type lookup before we augment - in some environments
|
|
5
|
+
// this is required to allow for ambient/previous definitions
|
|
6
|
+
import '@polkadot/api-base/types/consts';
|
|
7
|
+
|
|
8
|
+
import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
|
|
9
|
+
import type { u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
10
|
+
import type { Codec } from '@polkadot/types-codec/types';
|
|
11
|
+
import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
|
12
|
+
|
|
13
|
+
export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
|
|
14
|
+
|
|
15
|
+
declare module '@polkadot/api-base/types/consts' {
|
|
16
|
+
interface AugmentedConsts<ApiType extends ApiTypes> {
|
|
17
|
+
asset: {
|
|
18
|
+
/**
|
|
19
|
+
* The minimum balance to create class
|
|
20
|
+
**/
|
|
21
|
+
createAssetClassDeposit: u128 & AugmentedConst<ApiType>;
|
|
22
|
+
maxAssetMetadata: u32 & AugmentedConst<ApiType>;
|
|
23
|
+
maxClassMetadata: u32 & AugmentedConst<ApiType>;
|
|
24
|
+
/**
|
|
25
|
+
* Generic const
|
|
26
|
+
**/
|
|
27
|
+
[key: string]: Codec;
|
|
28
|
+
};
|
|
29
|
+
bag: {
|
|
30
|
+
/**
|
|
31
|
+
* The minimum balance to create bag
|
|
32
|
+
**/
|
|
33
|
+
createBagDeposit: u128 & AugmentedConst<ApiType>;
|
|
34
|
+
/**
|
|
35
|
+
* Max number of owners
|
|
36
|
+
**/
|
|
37
|
+
maxOwners: u32 & AugmentedConst<ApiType>;
|
|
38
|
+
/**
|
|
39
|
+
* Generic const
|
|
40
|
+
**/
|
|
41
|
+
[key: string]: Codec;
|
|
42
|
+
};
|
|
43
|
+
balances: {
|
|
44
|
+
/**
|
|
45
|
+
* The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO!
|
|
46
|
+
*
|
|
47
|
+
* If you *really* need it to be zero, you can enable the feature `insecure_zero_ed` for
|
|
48
|
+
* this pallet. However, you do so at your own risk: this will open up a major DoS vector.
|
|
49
|
+
* In case you have multiple sources of provider references, you may also get unexpected
|
|
50
|
+
* behaviour if you set this to zero.
|
|
51
|
+
*
|
|
52
|
+
* Bottom line: Do yourself a favour and make it at least one!
|
|
53
|
+
**/
|
|
54
|
+
existentialDeposit: u128 & AugmentedConst<ApiType>;
|
|
55
|
+
/**
|
|
56
|
+
* The maximum number of individual freeze locks that can exist on an account at any time.
|
|
57
|
+
**/
|
|
58
|
+
maxFreezes: u32 & AugmentedConst<ApiType>;
|
|
59
|
+
/**
|
|
60
|
+
* The maximum number of holds that can exist on an account at any time.
|
|
61
|
+
**/
|
|
62
|
+
maxHolds: u32 & AugmentedConst<ApiType>;
|
|
63
|
+
/**
|
|
64
|
+
* The maximum number of locks that should exist on an account.
|
|
65
|
+
* Not strictly enforced, but used for weight estimation.
|
|
66
|
+
**/
|
|
67
|
+
maxLocks: u32 & AugmentedConst<ApiType>;
|
|
68
|
+
/**
|
|
69
|
+
* The maximum number of named reserves that can exist on an account.
|
|
70
|
+
**/
|
|
71
|
+
maxReserves: u32 & AugmentedConst<ApiType>;
|
|
72
|
+
/**
|
|
73
|
+
* Generic const
|
|
74
|
+
**/
|
|
75
|
+
[key: string]: Codec;
|
|
76
|
+
};
|
|
77
|
+
bundle: {
|
|
78
|
+
/**
|
|
79
|
+
* Max number of asset classes and per asset_id in a bundle
|
|
80
|
+
**/
|
|
81
|
+
maxAssets: u32 & AugmentedConst<ApiType>;
|
|
82
|
+
palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
|
|
83
|
+
/**
|
|
84
|
+
* Generic const
|
|
85
|
+
**/
|
|
86
|
+
[key: string]: Codec;
|
|
87
|
+
};
|
|
88
|
+
council: {
|
|
89
|
+
/**
|
|
90
|
+
* The maximum weight of a dispatch call that can be proposed and executed.
|
|
91
|
+
**/
|
|
92
|
+
maxProposalWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
|
|
93
|
+
/**
|
|
94
|
+
* Generic const
|
|
95
|
+
**/
|
|
96
|
+
[key: string]: Codec;
|
|
97
|
+
};
|
|
98
|
+
fula: {
|
|
99
|
+
maxManifestMetadata: u32 & AugmentedConst<ApiType>;
|
|
100
|
+
/**
|
|
101
|
+
* Generic const
|
|
102
|
+
**/
|
|
103
|
+
[key: string]: Codec;
|
|
104
|
+
};
|
|
105
|
+
grandpa: {
|
|
106
|
+
/**
|
|
107
|
+
* Max Authorities in use
|
|
108
|
+
**/
|
|
109
|
+
maxAuthorities: u32 & AugmentedConst<ApiType>;
|
|
110
|
+
/**
|
|
111
|
+
* The maximum number of entries to keep in the set id to session index mapping.
|
|
112
|
+
*
|
|
113
|
+
* Since the `SetIdSession` map is only used for validating equivocations this
|
|
114
|
+
* value should relate to the bonding duration of whatever staking system is
|
|
115
|
+
* being used (if any). If equivocation handling is not enabled then this value
|
|
116
|
+
* can be zero.
|
|
117
|
+
**/
|
|
118
|
+
maxSetIdSessionEntries: u64 & AugmentedConst<ApiType>;
|
|
119
|
+
/**
|
|
120
|
+
* Generic const
|
|
121
|
+
**/
|
|
122
|
+
[key: string]: Codec;
|
|
123
|
+
};
|
|
124
|
+
imOnline: {
|
|
125
|
+
/**
|
|
126
|
+
* A configuration for base priority of unsigned transactions.
|
|
127
|
+
*
|
|
128
|
+
* This is exposed so that it can be tuned for particular runtime, when
|
|
129
|
+
* multiple pallets send unsigned transactions.
|
|
130
|
+
**/
|
|
131
|
+
unsignedPriority: u64 & AugmentedConst<ApiType>;
|
|
132
|
+
/**
|
|
133
|
+
* Generic const
|
|
134
|
+
**/
|
|
135
|
+
[key: string]: Codec;
|
|
136
|
+
};
|
|
137
|
+
market: {
|
|
138
|
+
/**
|
|
139
|
+
* Max metadata size
|
|
140
|
+
**/
|
|
141
|
+
maxMetadata: u32 & AugmentedConst<ApiType>;
|
|
142
|
+
/**
|
|
143
|
+
* Max number of rates per market_rate
|
|
144
|
+
**/
|
|
145
|
+
maxRates: u32 & AugmentedConst<ApiType>;
|
|
146
|
+
palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
|
|
147
|
+
/**
|
|
148
|
+
* Generic const
|
|
149
|
+
**/
|
|
150
|
+
[key: string]: Codec;
|
|
151
|
+
};
|
|
152
|
+
pool: {
|
|
153
|
+
/**
|
|
154
|
+
* The maximum number of pool participants. We are aiming at `u8::MAX`.
|
|
155
|
+
**/
|
|
156
|
+
maxPoolParticipants: u32 & AugmentedConst<ApiType>;
|
|
157
|
+
/**
|
|
158
|
+
* The maximum length of a name or symbol stored on-chain. See if this can be limited to
|
|
159
|
+
* `u8::MAX`.
|
|
160
|
+
**/
|
|
161
|
+
stringLimit: u32 & AugmentedConst<ApiType>;
|
|
162
|
+
/**
|
|
163
|
+
* Generic const
|
|
164
|
+
**/
|
|
165
|
+
[key: string]: Codec;
|
|
166
|
+
};
|
|
167
|
+
scheduler: {
|
|
168
|
+
/**
|
|
169
|
+
* The maximum weight that may be scheduled per block for any dispatchables.
|
|
170
|
+
**/
|
|
171
|
+
maximumWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
|
|
172
|
+
/**
|
|
173
|
+
* The maximum number of scheduled calls in the queue for a single block.
|
|
174
|
+
*
|
|
175
|
+
* NOTE:
|
|
176
|
+
* + Dependent pallets' benchmarks might require a higher limit for the setting. Set a
|
|
177
|
+
* higher limit under `runtime-benchmarks` feature.
|
|
178
|
+
**/
|
|
179
|
+
maxScheduledPerBlock: u32 & AugmentedConst<ApiType>;
|
|
180
|
+
/**
|
|
181
|
+
* Generic const
|
|
182
|
+
**/
|
|
183
|
+
[key: string]: Codec;
|
|
184
|
+
};
|
|
185
|
+
system: {
|
|
186
|
+
/**
|
|
187
|
+
* Maximum number of block number to block hash mappings to keep (oldest pruned first).
|
|
188
|
+
**/
|
|
189
|
+
blockHashCount: u32 & AugmentedConst<ApiType>;
|
|
190
|
+
/**
|
|
191
|
+
* The maximum length of a block (in bytes).
|
|
192
|
+
**/
|
|
193
|
+
blockLength: FrameSystemLimitsBlockLength & AugmentedConst<ApiType>;
|
|
194
|
+
/**
|
|
195
|
+
* Block & extrinsics weights: base values and limits.
|
|
196
|
+
**/
|
|
197
|
+
blockWeights: FrameSystemLimitsBlockWeights & AugmentedConst<ApiType>;
|
|
198
|
+
/**
|
|
199
|
+
* The weight of runtime database operations the runtime can invoke.
|
|
200
|
+
**/
|
|
201
|
+
dbWeight: SpWeightsRuntimeDbWeight & AugmentedConst<ApiType>;
|
|
202
|
+
/**
|
|
203
|
+
* The designated SS58 prefix of this chain.
|
|
204
|
+
*
|
|
205
|
+
* This replaces the "ss58Format" property declared in the chain spec. Reason is
|
|
206
|
+
* that the runtime should know about the prefix in order to make use of it as
|
|
207
|
+
* an identifier of the chain.
|
|
208
|
+
**/
|
|
209
|
+
ss58Prefix: u16 & AugmentedConst<ApiType>;
|
|
210
|
+
/**
|
|
211
|
+
* Get the chain's current version.
|
|
212
|
+
**/
|
|
213
|
+
version: SpVersionRuntimeVersion & AugmentedConst<ApiType>;
|
|
214
|
+
/**
|
|
215
|
+
* Generic const
|
|
216
|
+
**/
|
|
217
|
+
[key: string]: Codec;
|
|
218
|
+
};
|
|
219
|
+
timestamp: {
|
|
220
|
+
/**
|
|
221
|
+
* The minimum period between blocks. Beware that this is different to the *expected*
|
|
222
|
+
* period that the block production apparatus provides. Your chosen consensus system will
|
|
223
|
+
* generally work with this to determine a sensible block time. e.g. For Aura, it will be
|
|
224
|
+
* double this period on default settings.
|
|
225
|
+
**/
|
|
226
|
+
minimumPeriod: u64 & AugmentedConst<ApiType>;
|
|
227
|
+
/**
|
|
228
|
+
* Generic const
|
|
229
|
+
**/
|
|
230
|
+
[key: string]: Codec;
|
|
231
|
+
};
|
|
232
|
+
transactionPayment: {
|
|
233
|
+
/**
|
|
234
|
+
* A fee mulitplier for `Operational` extrinsics to compute "virtual tip" to boost their
|
|
235
|
+
* `priority`
|
|
236
|
+
*
|
|
237
|
+
* This value is multipled by the `final_fee` to obtain a "virtual tip" that is later
|
|
238
|
+
* added to a tip component in regular `priority` calculations.
|
|
239
|
+
* It means that a `Normal` transaction can front-run a similarly-sized `Operational`
|
|
240
|
+
* extrinsic (with no tip), by including a tip value greater than the virtual tip.
|
|
241
|
+
*
|
|
242
|
+
* ```rust,ignore
|
|
243
|
+
* // For `Normal`
|
|
244
|
+
* let priority = priority_calc(tip);
|
|
245
|
+
*
|
|
246
|
+
* // For `Operational`
|
|
247
|
+
* let virtual_tip = (inclusion_fee + tip) * OperationalFeeMultiplier;
|
|
248
|
+
* let priority = priority_calc(tip + virtual_tip);
|
|
249
|
+
* ```
|
|
250
|
+
*
|
|
251
|
+
* Note that since we use `final_fee` the multiplier applies also to the regular `tip`
|
|
252
|
+
* sent with the transaction. So, not only does the transaction get a priority bump based
|
|
253
|
+
* on the `inclusion_fee`, but we also amplify the impact of tips applied to `Operational`
|
|
254
|
+
* transactions.
|
|
255
|
+
**/
|
|
256
|
+
operationalFeeMultiplier: u8 & AugmentedConst<ApiType>;
|
|
257
|
+
/**
|
|
258
|
+
* Generic const
|
|
259
|
+
**/
|
|
260
|
+
[key: string]: Codec;
|
|
261
|
+
};
|
|
262
|
+
utility: {
|
|
263
|
+
/**
|
|
264
|
+
* The limit on the number of batched calls.
|
|
265
|
+
**/
|
|
266
|
+
batchedCallsLimit: u32 & AugmentedConst<ApiType>;
|
|
267
|
+
/**
|
|
268
|
+
* Generic const
|
|
269
|
+
**/
|
|
270
|
+
[key: string]: Codec;
|
|
271
|
+
};
|
|
272
|
+
} // AugmentedConsts
|
|
273
|
+
} // declare module
|