@functionland/react-native-fula 1.55.15 → 1.55.17

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 (93) hide show
  1. package/LICENSE +20 -20
  2. package/android/build.gradle +114 -114
  3. package/android/gradle.properties +8 -8
  4. package/android/src/main/AndroidManifest.xml +3 -3
  5. package/android/src/main/AndroidManifestNew.xml +2 -2
  6. package/android/src/main/java/land/fx/fula/ConfigRef.java +7 -7
  7. package/android/src/main/java/land/fx/fula/Cryptography.java +62 -62
  8. package/android/src/main/java/land/fx/fula/FulaModule.java +0 -0
  9. package/android/src/main/java/land/fx/fula/FulaPackage.java +32 -32
  10. package/android/src/main/java/land/fx/fula/SharedPreferenceHelper.java +65 -65
  11. package/android/src/main/java/land/fx/fula/StaticHelper.java +13 -13
  12. package/android/src/main/java/land/fx/fula/ThreadUtils.java +42 -42
  13. package/ios/Cryptography.swift +59 -59
  14. package/ios/Fula-Bridging-Header.h +3 -3
  15. package/ios/Fula.mm +272 -272
  16. package/ios/Fula.swift +32 -21
  17. package/ios/UserDataHelper.swift +143 -143
  18. package/lib/commonjs/index.js.map +1 -1
  19. package/lib/commonjs/interfaces/augment-api-consts.js.map +1 -1
  20. package/lib/commonjs/interfaces/augment-api-errors.js.map +1 -1
  21. package/lib/commonjs/interfaces/augment-api-events.js.map +1 -1
  22. package/lib/commonjs/interfaces/augment-api-query.js.map +1 -1
  23. package/lib/commonjs/interfaces/augment-api-rpc.js.map +1 -1
  24. package/lib/commonjs/interfaces/augment-api-runtime.js.map +1 -1
  25. package/lib/commonjs/interfaces/augment-api-tx.js.map +1 -1
  26. package/lib/commonjs/interfaces/augment-api.js.map +1 -1
  27. package/lib/commonjs/interfaces/augment-types.js.map +1 -1
  28. package/lib/commonjs/interfaces/definitions.js.map +1 -1
  29. package/lib/commonjs/interfaces/defintions.js.map +1 -1
  30. package/lib/commonjs/interfaces/fulaNativeModule.js.map +1 -1
  31. package/lib/commonjs/interfaces/index.js.map +1 -1
  32. package/lib/commonjs/interfaces/lookup.js +300 -300
  33. package/lib/commonjs/interfaces/lookup.js.map +1 -1
  34. package/lib/commonjs/interfaces/registry.js.map +1 -1
  35. package/lib/commonjs/interfaces/types-lookup.js.map +1 -1
  36. package/lib/commonjs/interfaces/types.js.map +1 -1
  37. package/lib/commonjs/protocols/blockchain.js +70 -70
  38. package/lib/commonjs/protocols/blockchain.js.map +1 -1
  39. package/lib/commonjs/protocols/chain-api.js.map +1 -1
  40. package/lib/commonjs/protocols/fula.js.map +1 -1
  41. package/lib/commonjs/protocols/fx-ai.js.map +1 -1
  42. package/lib/commonjs/protocols/fxblox.js +3 -3
  43. package/lib/commonjs/protocols/fxblox.js.map +1 -1
  44. package/lib/commonjs/types/blockchain.js.map +1 -1
  45. package/lib/commonjs/types/fxblox.js.map +1 -1
  46. package/lib/module/index.js.map +1 -1
  47. package/lib/module/interfaces/augment-api-consts.js.map +1 -1
  48. package/lib/module/interfaces/augment-api-errors.js.map +1 -1
  49. package/lib/module/interfaces/augment-api-events.js.map +1 -1
  50. package/lib/module/interfaces/augment-api-query.js.map +1 -1
  51. package/lib/module/interfaces/augment-api-rpc.js.map +1 -1
  52. package/lib/module/interfaces/augment-api-runtime.js.map +1 -1
  53. package/lib/module/interfaces/augment-api-tx.js.map +1 -1
  54. package/lib/module/interfaces/augment-api.js.map +1 -1
  55. package/lib/module/interfaces/augment-types.js.map +1 -1
  56. package/lib/module/interfaces/definitions.js.map +1 -1
  57. package/lib/module/interfaces/defintions.js.map +1 -1
  58. package/lib/module/interfaces/fulaNativeModule.js.map +1 -1
  59. package/lib/module/interfaces/index.js.map +1 -1
  60. package/lib/module/interfaces/lookup.js +300 -300
  61. package/lib/module/interfaces/lookup.js.map +1 -1
  62. package/lib/module/interfaces/registry.js.map +1 -1
  63. package/lib/module/interfaces/types-lookup.js.map +1 -1
  64. package/lib/module/interfaces/types.js.map +1 -1
  65. package/lib/module/protocols/blockchain.js +70 -70
  66. package/lib/module/protocols/blockchain.js.map +1 -1
  67. package/lib/module/protocols/chain-api.js.map +1 -1
  68. package/lib/module/protocols/fula.js.map +1 -1
  69. package/lib/module/protocols/fx-ai.js.map +1 -1
  70. package/lib/module/protocols/fxblox.js +3 -3
  71. package/lib/module/protocols/fxblox.js.map +1 -1
  72. package/lib/module/types/blockchain.js.map +1 -1
  73. package/lib/module/types/fxblox.js.map +1 -1
  74. package/package.json +177 -176
  75. package/src/index.tsx +4 -4
  76. package/src/interfaces/augment-api-consts.ts +273 -273
  77. package/src/interfaces/augment-api-errors.ts +474 -474
  78. package/src/interfaces/augment-api-events.ts +448 -448
  79. package/src/interfaces/augment-api-query.ts +466 -466
  80. package/src/interfaces/augment-api-rpc.ts +617 -617
  81. package/src/interfaces/augment-api-runtime.ts +223 -223
  82. package/src/interfaces/augment-api-tx.ts +709 -709
  83. package/src/interfaces/augment-api.ts +9 -9
  84. package/src/interfaces/augment-types.ts +1322 -1322
  85. package/src/interfaces/definitions.ts +1 -1
  86. package/src/interfaces/defintions.ts +1 -1
  87. package/src/interfaces/index.ts +3 -3
  88. package/src/interfaces/lookup.ts +2011 -2011
  89. package/src/interfaces/registry.ts +163 -163
  90. package/src/interfaces/types-lookup.ts +2165 -2165
  91. package/src/interfaces/types.ts +2 -2
  92. package/src/protocols/blockchain.ts +716 -716
  93. package/src/protocols/fxblox.ts +442 -442
@@ -1,466 +1,466 @@
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/storage';
7
-
8
- import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/api-base/types';
9
- import type { Bytes, Option, U8aFixed, Vec, WrapperOpaque, bool, u128, u32, u64 } from '@polkadot/types-codec';
10
- import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
11
- import type { AccountId32, Call, H256 } from '@polkadot/types/interfaces/runtime';
12
- import type { FrameSupportDispatchPerDispatchClassWeight, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, FulaPoolPool, FulaPoolPoolRequest, FulaPoolUser, FunctionlandFulaChallenge, FunctionlandFulaClaimData, FunctionlandFulaManifest, FunctionlandFulaManifestStorageData, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesIdAmount, PalletBalancesReserveData, PalletCollectiveVotes, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletSchedulerScheduled, PalletTransactionPaymentReleases, SpCoreCryptoKeyTypeId, SpRuntimeDigest, SugarfungeAssetAsset, SugarfungeAssetClass, SugarfungeBagBag, SugarfungeBagBagClass, SugarfungeBundleBundle, SugarfungeMarketAssetRate, SugarfungeMarketMarket, SugarfungeRuntimeOpaqueSessionKeys } from '@polkadot/types/lookup';
13
- import type { Observable } from '@polkadot/types/types';
14
-
15
- export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
16
- export type __QueryableStorageEntry<ApiType extends ApiTypes> = QueryableStorageEntry<ApiType>;
17
-
18
- declare module '@polkadot/api-base/types/storage' {
19
- interface AugmentedQueries<ApiType extends ApiTypes> {
20
- asset: {
21
- assetCount: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<u64>, [u64]> & QueryableStorageEntry<ApiType, [u64]>;
22
- assets: AugmentedQuery<ApiType, (arg1: u64 | AnyNumber | Uint8Array, arg2: u64 | AnyNumber | Uint8Array) => Observable<Option<SugarfungeAssetAsset>>, [u64, u64]> & QueryableStorageEntry<ApiType, [u64, u64]>;
23
- balances: AugmentedQuery<ApiType, (arg1: AccountId32 | string | Uint8Array, arg2: u64 | AnyNumber | Uint8Array, arg3: u64 | AnyNumber | Uint8Array) => Observable<u128>, [AccountId32, u64, u64]> & QueryableStorageEntry<ApiType, [AccountId32, u64, u64]>;
24
- classes: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<SugarfungeAssetClass>>, [u64]> & QueryableStorageEntry<ApiType, [u64]>;
25
- /**
26
- * Generic query
27
- **/
28
- [key: string]: QueryableStorageEntry<ApiType>;
29
- };
30
- authorship: {
31
- /**
32
- * Author of current block.
33
- **/
34
- author: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
35
- /**
36
- * Generic query
37
- **/
38
- [key: string]: QueryableStorageEntry<ApiType>;
39
- };
40
- bag: {
41
- bagClasses: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<SugarfungeBagBagClass>>, [u64]> & QueryableStorageEntry<ApiType, [u64]>;
42
- bags: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<SugarfungeBagBag>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
43
- nextBagId: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<u64>, [u64]> & QueryableStorageEntry<ApiType, [u64]>;
44
- /**
45
- * Generic query
46
- **/
47
- [key: string]: QueryableStorageEntry<ApiType>;
48
- };
49
- balances: {
50
- /**
51
- * The Balances pallet example of storing the balance of an account.
52
- *
53
- * # Example
54
- *
55
- * ```nocompile
56
- * impl pallet_balances::Config for Runtime {
57
- * type AccountStore = StorageMapShim<Self::Account<Runtime>, frame_system::Provider<Runtime>, AccountId, Self::AccountData<Balance>>
58
- * }
59
- * ```
60
- *
61
- * You can also store the balance of an account in the `System` pallet.
62
- *
63
- * # Example
64
- *
65
- * ```nocompile
66
- * impl pallet_balances::Config for Runtime {
67
- * type AccountStore = System
68
- * }
69
- * ```
70
- *
71
- * But this comes with tradeoffs, storing account balances in the system pallet stores
72
- * `frame_system` data alongside the account data contrary to storing account balances in the
73
- * `Balances` pallet, which uses a `StorageMap` to store balances data only.
74
- * NOTE: This is only used in the case that this pallet is used to store balances.
75
- **/
76
- account: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletBalancesAccountData>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
77
- /**
78
- * Freeze locks on account balances.
79
- **/
80
- freezes: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesIdAmount>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
81
- /**
82
- * Holds on account balances.
83
- **/
84
- holds: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesIdAmount>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
85
- /**
86
- * The total units of outstanding deactivated balance in the system.
87
- **/
88
- inactiveIssuance: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
89
- /**
90
- * Any liquidity locks on some account balances.
91
- * NOTE: Should only be accessed when setting, changing and freeing a lock.
92
- **/
93
- locks: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesBalanceLock>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
94
- /**
95
- * Named reserves on some account balances.
96
- **/
97
- reserves: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesReserveData>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
98
- /**
99
- * The total units issued in the system.
100
- **/
101
- totalIssuance: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
102
- /**
103
- * Generic query
104
- **/
105
- [key: string]: QueryableStorageEntry<ApiType>;
106
- };
107
- bundle: {
108
- assetBundles: AugmentedQuery<ApiType, (arg1: u64 | AnyNumber | Uint8Array, arg2: u64 | AnyNumber | Uint8Array) => Observable<Option<H256>>, [u64, u64]> & QueryableStorageEntry<ApiType, [u64, u64]>;
109
- bundles: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<SugarfungeBundleBundle>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
110
- /**
111
- * Generic query
112
- **/
113
- [key: string]: QueryableStorageEntry<ApiType>;
114
- };
115
- council: {
116
- /**
117
- * The current members of the collective. This is stored sorted (just by value).
118
- **/
119
- members: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
120
- /**
121
- * The prime member that helps determine the default vote behavior in case of absentations.
122
- **/
123
- prime: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
124
- /**
125
- * Proposals so far.
126
- **/
127
- proposalCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
128
- /**
129
- * Actual proposal for a given hash, if it's current.
130
- **/
131
- proposalOf: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<Call>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
132
- /**
133
- * The hashes of the active proposals.
134
- **/
135
- proposals: AugmentedQuery<ApiType, () => Observable<Vec<H256>>, []> & QueryableStorageEntry<ApiType, []>;
136
- /**
137
- * Votes on a given proposal, if it is ongoing.
138
- **/
139
- voting: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletCollectiveVotes>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
140
- /**
141
- * Generic query
142
- **/
143
- [key: string]: QueryableStorageEntry<ApiType>;
144
- };
145
- dao: {
146
- something: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
147
- /**
148
- * Generic query
149
- **/
150
- [key: string]: QueryableStorageEntry<ApiType>;
151
- };
152
- exgine: {
153
- something: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
154
- /**
155
- * Generic query
156
- **/
157
- [key: string]: QueryableStorageEntry<ApiType>;
158
- };
159
- fula: {
160
- challengeRequests: AugmentedQuery<ApiType, (arg1: AccountId32 | string | Uint8Array, arg2: Bytes | string | Uint8Array) => Observable<Option<FunctionlandFulaChallenge>>, [AccountId32, Bytes]> & QueryableStorageEntry<ApiType, [AccountId32, Bytes]>;
161
- claims: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<FunctionlandFulaClaimData>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
162
- manifests: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: Bytes | string | Uint8Array) => Observable<Option<FunctionlandFulaManifest>>, [u32, Bytes]> & QueryableStorageEntry<ApiType, [u32, Bytes]>;
163
- manifestsStorerData: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array, arg3: Bytes | string | Uint8Array) => Observable<Option<FunctionlandFulaManifestStorageData>>, [u32, AccountId32, Bytes]> & QueryableStorageEntry<ApiType, [u32, AccountId32, Bytes]>;
164
- networkSize: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
165
- /**
166
- * Generic query
167
- **/
168
- [key: string]: QueryableStorageEntry<ApiType>;
169
- };
170
- grandpa: {
171
- /**
172
- * The number of changes (both in terms of keys and underlying economic responsibilities)
173
- * in the "set" of Grandpa validators from genesis.
174
- **/
175
- currentSetId: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
176
- /**
177
- * next block number where we can force a change.
178
- **/
179
- nextForced: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
180
- /**
181
- * Pending change: (signaled at, scheduled change).
182
- **/
183
- pendingChange: AugmentedQuery<ApiType, () => Observable<Option<PalletGrandpaStoredPendingChange>>, []> & QueryableStorageEntry<ApiType, []>;
184
- /**
185
- * A mapping from grandpa set ID to the index of the *most recent* session for which its
186
- * members were responsible.
187
- *
188
- * This is only used for validating equivocation proofs. An equivocation proof must
189
- * contains a key-ownership proof for a given session, therefore we need a way to tie
190
- * together sessions and GRANDPA set ids, i.e. we need to validate that a validator
191
- * was the owner of a given key on a given session, and what the active set ID was
192
- * during that session.
193
- *
194
- * TWOX-NOTE: `SetId` is not under user control.
195
- **/
196
- setIdSession: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u64]> & QueryableStorageEntry<ApiType, [u64]>;
197
- /**
198
- * `true` if we are currently stalled.
199
- **/
200
- stalled: AugmentedQuery<ApiType, () => Observable<Option<ITuple<[u32, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
201
- /**
202
- * State of the current authority set.
203
- **/
204
- state: AugmentedQuery<ApiType, () => Observable<PalletGrandpaStoredState>, []> & QueryableStorageEntry<ApiType, []>;
205
- /**
206
- * Generic query
207
- **/
208
- [key: string]: QueryableStorageEntry<ApiType>;
209
- };
210
- imOnline: {
211
- /**
212
- * For each session index, we keep a mapping of `ValidatorId<T>` to the
213
- * number of blocks authored by the given authority.
214
- **/
215
- authoredBlocks: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<u32>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
216
- /**
217
- * The block number after which it's ok to send heartbeats in the current
218
- * session.
219
- *
220
- * At the beginning of each session we set this to a value that should fall
221
- * roughly in the middle of the session duration. The idea is to first wait for
222
- * the validators to produce a block in the current session, so that the
223
- * heartbeat later on will not be necessary.
224
- *
225
- * This value will only be used as a fallback if we fail to get a proper session
226
- * progress estimate from `NextSessionRotation`, as those estimates should be
227
- * more accurate then the value we calculate for `HeartbeatAfter`.
228
- **/
229
- heartbeatAfter: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
230
- /**
231
- * The current set of keys that may issue a heartbeat.
232
- **/
233
- keys: AugmentedQuery<ApiType, () => Observable<Vec<PalletImOnlineSr25519AppSr25519Public>>, []> & QueryableStorageEntry<ApiType, []>;
234
- /**
235
- * For each session index, we keep a mapping of `SessionIndex` and `AuthIndex` to
236
- * `WrapperOpaque<BoundedOpaqueNetworkState>`.
237
- **/
238
- receivedHeartbeats: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<WrapperOpaque<PalletImOnlineBoundedOpaqueNetworkState>>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
239
- /**
240
- * Generic query
241
- **/
242
- [key: string]: QueryableStorageEntry<ApiType>;
243
- };
244
- market: {
245
- marketRates: AugmentedQuery<ApiType, (arg1: u64 | AnyNumber | Uint8Array, arg2: u64 | AnyNumber | Uint8Array) => Observable<Option<Vec<SugarfungeMarketAssetRate>>>, [u64, u64]> & QueryableStorageEntry<ApiType, [u64, u64]>;
246
- marketRatesMetadata: AugmentedQuery<ApiType, (arg1: u64 | AnyNumber | Uint8Array, arg2: u64 | AnyNumber | Uint8Array) => Observable<Option<Bytes>>, [u64, u64]> & QueryableStorageEntry<ApiType, [u64, u64]>;
247
- markets: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<SugarfungeMarketMarket>>, [u64]> & QueryableStorageEntry<ApiType, [u64]>;
248
- /**
249
- * Generic query
250
- **/
251
- [key: string]: QueryableStorageEntry<ApiType>;
252
- };
253
- pool: {
254
- /**
255
- * An incremental value reflecting all pools created so far.
256
- **/
257
- lastPoolId: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
258
- /**
259
- * Maximum number of pools that can exist. If `None`, then an unbounded number of
260
- * pools can exist.
261
- **/
262
- maxPools: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
263
- /**
264
- * PoolRequests storage
265
- **/
266
- poolRequests: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<FulaPoolPoolRequest>>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
267
- /**
268
- * Pools storage
269
- **/
270
- pools: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<FulaPoolPool>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
271
- /**
272
- * Users storage, useful in case a user wants to leave or join a pool.
273
- **/
274
- users: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<FulaPoolUser>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
275
- /**
276
- * Generic query
277
- **/
278
- [key: string]: QueryableStorageEntry<ApiType>;
279
- };
280
- scheduler: {
281
- /**
282
- * Items to be executed, indexed by the block number that they should be executed on.
283
- **/
284
- agenda: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<Option<PalletSchedulerScheduled>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
285
- incompleteSince: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
286
- /**
287
- * Lookup from a name to the block number and index of the task.
288
- *
289
- * For v3 -> v4 the previously unbounded identities are Blake2-256 hashed to form the v4
290
- * identities.
291
- **/
292
- lookup: AugmentedQuery<ApiType, (arg: U8aFixed | string | Uint8Array) => Observable<Option<ITuple<[u32, u32]>>>, [U8aFixed]> & QueryableStorageEntry<ApiType, [U8aFixed]>;
293
- /**
294
- * Generic query
295
- **/
296
- [key: string]: QueryableStorageEntry<ApiType>;
297
- };
298
- session: {
299
- /**
300
- * Current index of the session.
301
- **/
302
- currentIndex: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
303
- /**
304
- * Indices of disabled validators.
305
- *
306
- * The vec is always kept sorted so that we can find whether a given validator is
307
- * disabled using binary search. It gets cleared when `on_session_ending` returns
308
- * a new set of identities.
309
- **/
310
- disabledValidators: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []> & QueryableStorageEntry<ApiType, []>;
311
- /**
312
- * The owner of a key. The key is the `KeyTypeId` + the encoded key.
313
- **/
314
- keyOwner: AugmentedQuery<ApiType, (arg: ITuple<[SpCoreCryptoKeyTypeId, Bytes]> | [SpCoreCryptoKeyTypeId | string | Uint8Array, Bytes | string | Uint8Array]) => Observable<Option<AccountId32>>, [ITuple<[SpCoreCryptoKeyTypeId, Bytes]>]> & QueryableStorageEntry<ApiType, [ITuple<[SpCoreCryptoKeyTypeId, Bytes]>]>;
315
- /**
316
- * The next session keys for a validator.
317
- **/
318
- nextKeys: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<SugarfungeRuntimeOpaqueSessionKeys>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
319
- /**
320
- * True if the underlying economic identities or weighting behind the validators
321
- * has changed in the queued validator set.
322
- **/
323
- queuedChanged: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
324
- /**
325
- * The queued keys for the next session. When the next session begins, these keys
326
- * will be used to determine the validator's session keys.
327
- **/
328
- queuedKeys: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[AccountId32, SugarfungeRuntimeOpaqueSessionKeys]>>>, []> & QueryableStorageEntry<ApiType, []>;
329
- /**
330
- * The current set of validators.
331
- **/
332
- validators: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
333
- /**
334
- * Generic query
335
- **/
336
- [key: string]: QueryableStorageEntry<ApiType>;
337
- };
338
- sudo: {
339
- /**
340
- * The `AccountId` of the sudo key.
341
- **/
342
- key: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
343
- /**
344
- * Generic query
345
- **/
346
- [key: string]: QueryableStorageEntry<ApiType>;
347
- };
348
- system: {
349
- /**
350
- * The full account information for a particular account ID.
351
- **/
352
- account: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<FrameSystemAccountInfo>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
353
- /**
354
- * Total length (in bytes) for all extrinsics put together, for the current block.
355
- **/
356
- allExtrinsicsLen: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
357
- /**
358
- * Map of block numbers to block hashes.
359
- **/
360
- blockHash: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<H256>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
361
- /**
362
- * The current weight for the block.
363
- **/
364
- blockWeight: AugmentedQuery<ApiType, () => Observable<FrameSupportDispatchPerDispatchClassWeight>, []> & QueryableStorageEntry<ApiType, []>;
365
- /**
366
- * Digest of the current block, also part of the block header.
367
- **/
368
- digest: AugmentedQuery<ApiType, () => Observable<SpRuntimeDigest>, []> & QueryableStorageEntry<ApiType, []>;
369
- /**
370
- * The number of events in the `Events<T>` list.
371
- **/
372
- eventCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
373
- /**
374
- * Events deposited for the current block.
375
- *
376
- * NOTE: The item is unbound and should therefore never be read on chain.
377
- * It could otherwise inflate the PoV size of a block.
378
- *
379
- * Events have a large in-memory size. Box the events to not go out-of-memory
380
- * just in case someone still reads them from within the runtime.
381
- **/
382
- events: AugmentedQuery<ApiType, () => Observable<Vec<FrameSystemEventRecord>>, []> & QueryableStorageEntry<ApiType, []>;
383
- /**
384
- * Mapping between a topic (represented by T::Hash) and a vector of indexes
385
- * of events in the `<Events<T>>` list.
386
- *
387
- * All topic vectors have deterministic storage locations depending on the topic. This
388
- * allows light-clients to leverage the changes trie storage tracking mechanism and
389
- * in case of changes fetch the list of events of interest.
390
- *
391
- * The value has the type `(T::BlockNumber, EventIndex)` because if we used only just
392
- * the `EventIndex` then in case if the topic has the same contents on the next block
393
- * no notification will be triggered thus the event might be lost.
394
- **/
395
- eventTopics: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Vec<ITuple<[u32, u32]>>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
396
- /**
397
- * The execution phase of the block.
398
- **/
399
- executionPhase: AugmentedQuery<ApiType, () => Observable<Option<FrameSystemPhase>>, []> & QueryableStorageEntry<ApiType, []>;
400
- /**
401
- * Total extrinsics count for the current block.
402
- **/
403
- extrinsicCount: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
404
- /**
405
- * Extrinsics data for the current block (maps an extrinsic's index to its data).
406
- **/
407
- extrinsicData: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Bytes>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
408
- /**
409
- * Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened.
410
- **/
411
- lastRuntimeUpgrade: AugmentedQuery<ApiType, () => Observable<Option<FrameSystemLastRuntimeUpgradeInfo>>, []> & QueryableStorageEntry<ApiType, []>;
412
- /**
413
- * The current block number being processed. Set by `execute_block`.
414
- **/
415
- number: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
416
- /**
417
- * Hash of the previous block.
418
- **/
419
- parentHash: AugmentedQuery<ApiType, () => Observable<H256>, []> & QueryableStorageEntry<ApiType, []>;
420
- /**
421
- * True if we have upgraded so that AccountInfo contains three types of `RefCount`. False
422
- * (default) if not.
423
- **/
424
- upgradedToTripleRefCount: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
425
- /**
426
- * True if we have upgraded so that `type RefCount` is `u32`. False (default) if not.
427
- **/
428
- upgradedToU32RefCount: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
429
- /**
430
- * Generic query
431
- **/
432
- [key: string]: QueryableStorageEntry<ApiType>;
433
- };
434
- timestamp: {
435
- /**
436
- * Did the timestamp get updated in this block?
437
- **/
438
- didUpdate: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
439
- /**
440
- * Current time for the current block.
441
- **/
442
- now: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
443
- /**
444
- * Generic query
445
- **/
446
- [key: string]: QueryableStorageEntry<ApiType>;
447
- };
448
- transactionPayment: {
449
- nextFeeMultiplier: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
450
- storageVersion: AugmentedQuery<ApiType, () => Observable<PalletTransactionPaymentReleases>, []> & QueryableStorageEntry<ApiType, []>;
451
- /**
452
- * Generic query
453
- **/
454
- [key: string]: QueryableStorageEntry<ApiType>;
455
- };
456
- validatorSet: {
457
- approvedValidators: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
458
- offlineValidators: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
459
- validators: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
460
- /**
461
- * Generic query
462
- **/
463
- [key: string]: QueryableStorageEntry<ApiType>;
464
- };
465
- } // AugmentedQueries
466
- } // 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/storage';
7
+
8
+ import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/api-base/types';
9
+ import type { Bytes, Option, U8aFixed, Vec, WrapperOpaque, bool, u128, u32, u64 } from '@polkadot/types-codec';
10
+ import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
11
+ import type { AccountId32, Call, H256 } from '@polkadot/types/interfaces/runtime';
12
+ import type { FrameSupportDispatchPerDispatchClassWeight, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, FulaPoolPool, FulaPoolPoolRequest, FulaPoolUser, FunctionlandFulaChallenge, FunctionlandFulaClaimData, FunctionlandFulaManifest, FunctionlandFulaManifestStorageData, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesIdAmount, PalletBalancesReserveData, PalletCollectiveVotes, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletSchedulerScheduled, PalletTransactionPaymentReleases, SpCoreCryptoKeyTypeId, SpRuntimeDigest, SugarfungeAssetAsset, SugarfungeAssetClass, SugarfungeBagBag, SugarfungeBagBagClass, SugarfungeBundleBundle, SugarfungeMarketAssetRate, SugarfungeMarketMarket, SugarfungeRuntimeOpaqueSessionKeys } from '@polkadot/types/lookup';
13
+ import type { Observable } from '@polkadot/types/types';
14
+
15
+ export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
16
+ export type __QueryableStorageEntry<ApiType extends ApiTypes> = QueryableStorageEntry<ApiType>;
17
+
18
+ declare module '@polkadot/api-base/types/storage' {
19
+ interface AugmentedQueries<ApiType extends ApiTypes> {
20
+ asset: {
21
+ assetCount: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<u64>, [u64]> & QueryableStorageEntry<ApiType, [u64]>;
22
+ assets: AugmentedQuery<ApiType, (arg1: u64 | AnyNumber | Uint8Array, arg2: u64 | AnyNumber | Uint8Array) => Observable<Option<SugarfungeAssetAsset>>, [u64, u64]> & QueryableStorageEntry<ApiType, [u64, u64]>;
23
+ balances: AugmentedQuery<ApiType, (arg1: AccountId32 | string | Uint8Array, arg2: u64 | AnyNumber | Uint8Array, arg3: u64 | AnyNumber | Uint8Array) => Observable<u128>, [AccountId32, u64, u64]> & QueryableStorageEntry<ApiType, [AccountId32, u64, u64]>;
24
+ classes: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<SugarfungeAssetClass>>, [u64]> & QueryableStorageEntry<ApiType, [u64]>;
25
+ /**
26
+ * Generic query
27
+ **/
28
+ [key: string]: QueryableStorageEntry<ApiType>;
29
+ };
30
+ authorship: {
31
+ /**
32
+ * Author of current block.
33
+ **/
34
+ author: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
35
+ /**
36
+ * Generic query
37
+ **/
38
+ [key: string]: QueryableStorageEntry<ApiType>;
39
+ };
40
+ bag: {
41
+ bagClasses: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<SugarfungeBagBagClass>>, [u64]> & QueryableStorageEntry<ApiType, [u64]>;
42
+ bags: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<SugarfungeBagBag>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
43
+ nextBagId: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<u64>, [u64]> & QueryableStorageEntry<ApiType, [u64]>;
44
+ /**
45
+ * Generic query
46
+ **/
47
+ [key: string]: QueryableStorageEntry<ApiType>;
48
+ };
49
+ balances: {
50
+ /**
51
+ * The Balances pallet example of storing the balance of an account.
52
+ *
53
+ * # Example
54
+ *
55
+ * ```nocompile
56
+ * impl pallet_balances::Config for Runtime {
57
+ * type AccountStore = StorageMapShim<Self::Account<Runtime>, frame_system::Provider<Runtime>, AccountId, Self::AccountData<Balance>>
58
+ * }
59
+ * ```
60
+ *
61
+ * You can also store the balance of an account in the `System` pallet.
62
+ *
63
+ * # Example
64
+ *
65
+ * ```nocompile
66
+ * impl pallet_balances::Config for Runtime {
67
+ * type AccountStore = System
68
+ * }
69
+ * ```
70
+ *
71
+ * But this comes with tradeoffs, storing account balances in the system pallet stores
72
+ * `frame_system` data alongside the account data contrary to storing account balances in the
73
+ * `Balances` pallet, which uses a `StorageMap` to store balances data only.
74
+ * NOTE: This is only used in the case that this pallet is used to store balances.
75
+ **/
76
+ account: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletBalancesAccountData>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
77
+ /**
78
+ * Freeze locks on account balances.
79
+ **/
80
+ freezes: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesIdAmount>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
81
+ /**
82
+ * Holds on account balances.
83
+ **/
84
+ holds: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesIdAmount>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
85
+ /**
86
+ * The total units of outstanding deactivated balance in the system.
87
+ **/
88
+ inactiveIssuance: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
89
+ /**
90
+ * Any liquidity locks on some account balances.
91
+ * NOTE: Should only be accessed when setting, changing and freeing a lock.
92
+ **/
93
+ locks: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesBalanceLock>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
94
+ /**
95
+ * Named reserves on some account balances.
96
+ **/
97
+ reserves: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesReserveData>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
98
+ /**
99
+ * The total units issued in the system.
100
+ **/
101
+ totalIssuance: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
102
+ /**
103
+ * Generic query
104
+ **/
105
+ [key: string]: QueryableStorageEntry<ApiType>;
106
+ };
107
+ bundle: {
108
+ assetBundles: AugmentedQuery<ApiType, (arg1: u64 | AnyNumber | Uint8Array, arg2: u64 | AnyNumber | Uint8Array) => Observable<Option<H256>>, [u64, u64]> & QueryableStorageEntry<ApiType, [u64, u64]>;
109
+ bundles: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<SugarfungeBundleBundle>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
110
+ /**
111
+ * Generic query
112
+ **/
113
+ [key: string]: QueryableStorageEntry<ApiType>;
114
+ };
115
+ council: {
116
+ /**
117
+ * The current members of the collective. This is stored sorted (just by value).
118
+ **/
119
+ members: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
120
+ /**
121
+ * The prime member that helps determine the default vote behavior in case of absentations.
122
+ **/
123
+ prime: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
124
+ /**
125
+ * Proposals so far.
126
+ **/
127
+ proposalCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
128
+ /**
129
+ * Actual proposal for a given hash, if it's current.
130
+ **/
131
+ proposalOf: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<Call>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
132
+ /**
133
+ * The hashes of the active proposals.
134
+ **/
135
+ proposals: AugmentedQuery<ApiType, () => Observable<Vec<H256>>, []> & QueryableStorageEntry<ApiType, []>;
136
+ /**
137
+ * Votes on a given proposal, if it is ongoing.
138
+ **/
139
+ voting: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletCollectiveVotes>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
140
+ /**
141
+ * Generic query
142
+ **/
143
+ [key: string]: QueryableStorageEntry<ApiType>;
144
+ };
145
+ dao: {
146
+ something: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
147
+ /**
148
+ * Generic query
149
+ **/
150
+ [key: string]: QueryableStorageEntry<ApiType>;
151
+ };
152
+ exgine: {
153
+ something: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
154
+ /**
155
+ * Generic query
156
+ **/
157
+ [key: string]: QueryableStorageEntry<ApiType>;
158
+ };
159
+ fula: {
160
+ challengeRequests: AugmentedQuery<ApiType, (arg1: AccountId32 | string | Uint8Array, arg2: Bytes | string | Uint8Array) => Observable<Option<FunctionlandFulaChallenge>>, [AccountId32, Bytes]> & QueryableStorageEntry<ApiType, [AccountId32, Bytes]>;
161
+ claims: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<FunctionlandFulaClaimData>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
162
+ manifests: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: Bytes | string | Uint8Array) => Observable<Option<FunctionlandFulaManifest>>, [u32, Bytes]> & QueryableStorageEntry<ApiType, [u32, Bytes]>;
163
+ manifestsStorerData: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array, arg3: Bytes | string | Uint8Array) => Observable<Option<FunctionlandFulaManifestStorageData>>, [u32, AccountId32, Bytes]> & QueryableStorageEntry<ApiType, [u32, AccountId32, Bytes]>;
164
+ networkSize: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
165
+ /**
166
+ * Generic query
167
+ **/
168
+ [key: string]: QueryableStorageEntry<ApiType>;
169
+ };
170
+ grandpa: {
171
+ /**
172
+ * The number of changes (both in terms of keys and underlying economic responsibilities)
173
+ * in the "set" of Grandpa validators from genesis.
174
+ **/
175
+ currentSetId: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
176
+ /**
177
+ * next block number where we can force a change.
178
+ **/
179
+ nextForced: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
180
+ /**
181
+ * Pending change: (signaled at, scheduled change).
182
+ **/
183
+ pendingChange: AugmentedQuery<ApiType, () => Observable<Option<PalletGrandpaStoredPendingChange>>, []> & QueryableStorageEntry<ApiType, []>;
184
+ /**
185
+ * A mapping from grandpa set ID to the index of the *most recent* session for which its
186
+ * members were responsible.
187
+ *
188
+ * This is only used for validating equivocation proofs. An equivocation proof must
189
+ * contains a key-ownership proof for a given session, therefore we need a way to tie
190
+ * together sessions and GRANDPA set ids, i.e. we need to validate that a validator
191
+ * was the owner of a given key on a given session, and what the active set ID was
192
+ * during that session.
193
+ *
194
+ * TWOX-NOTE: `SetId` is not under user control.
195
+ **/
196
+ setIdSession: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u64]> & QueryableStorageEntry<ApiType, [u64]>;
197
+ /**
198
+ * `true` if we are currently stalled.
199
+ **/
200
+ stalled: AugmentedQuery<ApiType, () => Observable<Option<ITuple<[u32, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
201
+ /**
202
+ * State of the current authority set.
203
+ **/
204
+ state: AugmentedQuery<ApiType, () => Observable<PalletGrandpaStoredState>, []> & QueryableStorageEntry<ApiType, []>;
205
+ /**
206
+ * Generic query
207
+ **/
208
+ [key: string]: QueryableStorageEntry<ApiType>;
209
+ };
210
+ imOnline: {
211
+ /**
212
+ * For each session index, we keep a mapping of `ValidatorId<T>` to the
213
+ * number of blocks authored by the given authority.
214
+ **/
215
+ authoredBlocks: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<u32>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
216
+ /**
217
+ * The block number after which it's ok to send heartbeats in the current
218
+ * session.
219
+ *
220
+ * At the beginning of each session we set this to a value that should fall
221
+ * roughly in the middle of the session duration. The idea is to first wait for
222
+ * the validators to produce a block in the current session, so that the
223
+ * heartbeat later on will not be necessary.
224
+ *
225
+ * This value will only be used as a fallback if we fail to get a proper session
226
+ * progress estimate from `NextSessionRotation`, as those estimates should be
227
+ * more accurate then the value we calculate for `HeartbeatAfter`.
228
+ **/
229
+ heartbeatAfter: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
230
+ /**
231
+ * The current set of keys that may issue a heartbeat.
232
+ **/
233
+ keys: AugmentedQuery<ApiType, () => Observable<Vec<PalletImOnlineSr25519AppSr25519Public>>, []> & QueryableStorageEntry<ApiType, []>;
234
+ /**
235
+ * For each session index, we keep a mapping of `SessionIndex` and `AuthIndex` to
236
+ * `WrapperOpaque<BoundedOpaqueNetworkState>`.
237
+ **/
238
+ receivedHeartbeats: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<WrapperOpaque<PalletImOnlineBoundedOpaqueNetworkState>>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
239
+ /**
240
+ * Generic query
241
+ **/
242
+ [key: string]: QueryableStorageEntry<ApiType>;
243
+ };
244
+ market: {
245
+ marketRates: AugmentedQuery<ApiType, (arg1: u64 | AnyNumber | Uint8Array, arg2: u64 | AnyNumber | Uint8Array) => Observable<Option<Vec<SugarfungeMarketAssetRate>>>, [u64, u64]> & QueryableStorageEntry<ApiType, [u64, u64]>;
246
+ marketRatesMetadata: AugmentedQuery<ApiType, (arg1: u64 | AnyNumber | Uint8Array, arg2: u64 | AnyNumber | Uint8Array) => Observable<Option<Bytes>>, [u64, u64]> & QueryableStorageEntry<ApiType, [u64, u64]>;
247
+ markets: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<SugarfungeMarketMarket>>, [u64]> & QueryableStorageEntry<ApiType, [u64]>;
248
+ /**
249
+ * Generic query
250
+ **/
251
+ [key: string]: QueryableStorageEntry<ApiType>;
252
+ };
253
+ pool: {
254
+ /**
255
+ * An incremental value reflecting all pools created so far.
256
+ **/
257
+ lastPoolId: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
258
+ /**
259
+ * Maximum number of pools that can exist. If `None`, then an unbounded number of
260
+ * pools can exist.
261
+ **/
262
+ maxPools: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
263
+ /**
264
+ * PoolRequests storage
265
+ **/
266
+ poolRequests: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<FulaPoolPoolRequest>>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
267
+ /**
268
+ * Pools storage
269
+ **/
270
+ pools: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<FulaPoolPool>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
271
+ /**
272
+ * Users storage, useful in case a user wants to leave or join a pool.
273
+ **/
274
+ users: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<FulaPoolUser>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
275
+ /**
276
+ * Generic query
277
+ **/
278
+ [key: string]: QueryableStorageEntry<ApiType>;
279
+ };
280
+ scheduler: {
281
+ /**
282
+ * Items to be executed, indexed by the block number that they should be executed on.
283
+ **/
284
+ agenda: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<Option<PalletSchedulerScheduled>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
285
+ incompleteSince: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
286
+ /**
287
+ * Lookup from a name to the block number and index of the task.
288
+ *
289
+ * For v3 -> v4 the previously unbounded identities are Blake2-256 hashed to form the v4
290
+ * identities.
291
+ **/
292
+ lookup: AugmentedQuery<ApiType, (arg: U8aFixed | string | Uint8Array) => Observable<Option<ITuple<[u32, u32]>>>, [U8aFixed]> & QueryableStorageEntry<ApiType, [U8aFixed]>;
293
+ /**
294
+ * Generic query
295
+ **/
296
+ [key: string]: QueryableStorageEntry<ApiType>;
297
+ };
298
+ session: {
299
+ /**
300
+ * Current index of the session.
301
+ **/
302
+ currentIndex: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
303
+ /**
304
+ * Indices of disabled validators.
305
+ *
306
+ * The vec is always kept sorted so that we can find whether a given validator is
307
+ * disabled using binary search. It gets cleared when `on_session_ending` returns
308
+ * a new set of identities.
309
+ **/
310
+ disabledValidators: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []> & QueryableStorageEntry<ApiType, []>;
311
+ /**
312
+ * The owner of a key. The key is the `KeyTypeId` + the encoded key.
313
+ **/
314
+ keyOwner: AugmentedQuery<ApiType, (arg: ITuple<[SpCoreCryptoKeyTypeId, Bytes]> | [SpCoreCryptoKeyTypeId | string | Uint8Array, Bytes | string | Uint8Array]) => Observable<Option<AccountId32>>, [ITuple<[SpCoreCryptoKeyTypeId, Bytes]>]> & QueryableStorageEntry<ApiType, [ITuple<[SpCoreCryptoKeyTypeId, Bytes]>]>;
315
+ /**
316
+ * The next session keys for a validator.
317
+ **/
318
+ nextKeys: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<SugarfungeRuntimeOpaqueSessionKeys>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
319
+ /**
320
+ * True if the underlying economic identities or weighting behind the validators
321
+ * has changed in the queued validator set.
322
+ **/
323
+ queuedChanged: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
324
+ /**
325
+ * The queued keys for the next session. When the next session begins, these keys
326
+ * will be used to determine the validator's session keys.
327
+ **/
328
+ queuedKeys: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[AccountId32, SugarfungeRuntimeOpaqueSessionKeys]>>>, []> & QueryableStorageEntry<ApiType, []>;
329
+ /**
330
+ * The current set of validators.
331
+ **/
332
+ validators: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
333
+ /**
334
+ * Generic query
335
+ **/
336
+ [key: string]: QueryableStorageEntry<ApiType>;
337
+ };
338
+ sudo: {
339
+ /**
340
+ * The `AccountId` of the sudo key.
341
+ **/
342
+ key: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
343
+ /**
344
+ * Generic query
345
+ **/
346
+ [key: string]: QueryableStorageEntry<ApiType>;
347
+ };
348
+ system: {
349
+ /**
350
+ * The full account information for a particular account ID.
351
+ **/
352
+ account: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<FrameSystemAccountInfo>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
353
+ /**
354
+ * Total length (in bytes) for all extrinsics put together, for the current block.
355
+ **/
356
+ allExtrinsicsLen: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
357
+ /**
358
+ * Map of block numbers to block hashes.
359
+ **/
360
+ blockHash: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<H256>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
361
+ /**
362
+ * The current weight for the block.
363
+ **/
364
+ blockWeight: AugmentedQuery<ApiType, () => Observable<FrameSupportDispatchPerDispatchClassWeight>, []> & QueryableStorageEntry<ApiType, []>;
365
+ /**
366
+ * Digest of the current block, also part of the block header.
367
+ **/
368
+ digest: AugmentedQuery<ApiType, () => Observable<SpRuntimeDigest>, []> & QueryableStorageEntry<ApiType, []>;
369
+ /**
370
+ * The number of events in the `Events<T>` list.
371
+ **/
372
+ eventCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
373
+ /**
374
+ * Events deposited for the current block.
375
+ *
376
+ * NOTE: The item is unbound and should therefore never be read on chain.
377
+ * It could otherwise inflate the PoV size of a block.
378
+ *
379
+ * Events have a large in-memory size. Box the events to not go out-of-memory
380
+ * just in case someone still reads them from within the runtime.
381
+ **/
382
+ events: AugmentedQuery<ApiType, () => Observable<Vec<FrameSystemEventRecord>>, []> & QueryableStorageEntry<ApiType, []>;
383
+ /**
384
+ * Mapping between a topic (represented by T::Hash) and a vector of indexes
385
+ * of events in the `<Events<T>>` list.
386
+ *
387
+ * All topic vectors have deterministic storage locations depending on the topic. This
388
+ * allows light-clients to leverage the changes trie storage tracking mechanism and
389
+ * in case of changes fetch the list of events of interest.
390
+ *
391
+ * The value has the type `(T::BlockNumber, EventIndex)` because if we used only just
392
+ * the `EventIndex` then in case if the topic has the same contents on the next block
393
+ * no notification will be triggered thus the event might be lost.
394
+ **/
395
+ eventTopics: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Vec<ITuple<[u32, u32]>>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
396
+ /**
397
+ * The execution phase of the block.
398
+ **/
399
+ executionPhase: AugmentedQuery<ApiType, () => Observable<Option<FrameSystemPhase>>, []> & QueryableStorageEntry<ApiType, []>;
400
+ /**
401
+ * Total extrinsics count for the current block.
402
+ **/
403
+ extrinsicCount: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
404
+ /**
405
+ * Extrinsics data for the current block (maps an extrinsic's index to its data).
406
+ **/
407
+ extrinsicData: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Bytes>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
408
+ /**
409
+ * Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened.
410
+ **/
411
+ lastRuntimeUpgrade: AugmentedQuery<ApiType, () => Observable<Option<FrameSystemLastRuntimeUpgradeInfo>>, []> & QueryableStorageEntry<ApiType, []>;
412
+ /**
413
+ * The current block number being processed. Set by `execute_block`.
414
+ **/
415
+ number: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
416
+ /**
417
+ * Hash of the previous block.
418
+ **/
419
+ parentHash: AugmentedQuery<ApiType, () => Observable<H256>, []> & QueryableStorageEntry<ApiType, []>;
420
+ /**
421
+ * True if we have upgraded so that AccountInfo contains three types of `RefCount`. False
422
+ * (default) if not.
423
+ **/
424
+ upgradedToTripleRefCount: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
425
+ /**
426
+ * True if we have upgraded so that `type RefCount` is `u32`. False (default) if not.
427
+ **/
428
+ upgradedToU32RefCount: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
429
+ /**
430
+ * Generic query
431
+ **/
432
+ [key: string]: QueryableStorageEntry<ApiType>;
433
+ };
434
+ timestamp: {
435
+ /**
436
+ * Did the timestamp get updated in this block?
437
+ **/
438
+ didUpdate: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
439
+ /**
440
+ * Current time for the current block.
441
+ **/
442
+ now: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
443
+ /**
444
+ * Generic query
445
+ **/
446
+ [key: string]: QueryableStorageEntry<ApiType>;
447
+ };
448
+ transactionPayment: {
449
+ nextFeeMultiplier: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
450
+ storageVersion: AugmentedQuery<ApiType, () => Observable<PalletTransactionPaymentReleases>, []> & QueryableStorageEntry<ApiType, []>;
451
+ /**
452
+ * Generic query
453
+ **/
454
+ [key: string]: QueryableStorageEntry<ApiType>;
455
+ };
456
+ validatorSet: {
457
+ approvedValidators: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
458
+ offlineValidators: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
459
+ validators: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
460
+ /**
461
+ * Generic query
462
+ **/
463
+ [key: string]: QueryableStorageEntry<ApiType>;
464
+ };
465
+ } // AugmentedQueries
466
+ } // declare module