@totochain/api-augment 0.0.0-stage → 0.2.0

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 (59) hide show
  1. package/README.md +70 -2
  2. package/dist/definitions/definitions.d.ts +1 -0
  3. package/dist/definitions/definitions.js +2 -0
  4. package/dist/definitions/totochain/definitions.d.ts +5 -0
  5. package/dist/definitions/totochain/definitions.js +7 -0
  6. package/dist/index.d.ts +4 -0
  7. package/dist/index.js +12 -0
  8. package/dist/interfaces/augment-api-consts.d.ts +861 -0
  9. package/dist/interfaces/augment-api-consts.js +5 -0
  10. package/dist/interfaces/augment-api-errors.d.ts +1183 -0
  11. package/dist/interfaces/augment-api-errors.js +5 -0
  12. package/dist/interfaces/augment-api-events.d.ts +2033 -0
  13. package/dist/interfaces/augment-api-events.js +5 -0
  14. package/dist/interfaces/augment-api-query.d.ts +1375 -0
  15. package/dist/interfaces/augment-api-query.js +5 -0
  16. package/dist/interfaces/augment-api-rpc.d.ts +683 -0
  17. package/dist/interfaces/augment-api-rpc.js +5 -0
  18. package/dist/interfaces/augment-api-runtime.d.ts +298 -0
  19. package/dist/interfaces/augment-api-runtime.js +5 -0
  20. package/dist/interfaces/augment-api-tx.d.ts +2356 -0
  21. package/dist/interfaces/augment-api-tx.js +5 -0
  22. package/dist/interfaces/augment-api.d.ts +7 -0
  23. package/dist/interfaces/augment-api.js +9 -0
  24. package/dist/interfaces/augment-types.d.ts +1368 -0
  25. package/dist/interfaces/augment-types.js +5 -0
  26. package/dist/interfaces/definitions.d.ts +1 -0
  27. package/dist/interfaces/definitions.js +2 -0
  28. package/dist/interfaces/index.d.ts +1 -0
  29. package/dist/interfaces/index.js +3 -0
  30. package/dist/interfaces/lookup.d.ts +3952 -0
  31. package/dist/interfaces/lookup.js +3954 -0
  32. package/dist/interfaces/registry.d.ts +279 -0
  33. package/dist/interfaces/registry.js +5 -0
  34. package/dist/interfaces/totochain/definitions.d.ts +5 -0
  35. package/dist/interfaces/totochain/definitions.js +7 -0
  36. package/dist/interfaces/types-lookup.d.ts +4085 -0
  37. package/dist/interfaces/types-lookup.js +5 -0
  38. package/dist/interfaces/types.d.ts +1 -0
  39. package/dist/interfaces/types.js +3 -0
  40. package/package.json +69 -4
  41. package/src/definitions/definitions.ts +2 -0
  42. package/src/definitions/totochain/definitions.ts +7 -0
  43. package/src/index.ts +15 -0
  44. package/src/interfaces/augment-api-consts.ts +869 -0
  45. package/src/interfaces/augment-api-errors.ts +1191 -0
  46. package/src/interfaces/augment-api-events.ts +1307 -0
  47. package/src/interfaces/augment-api-query.ts +1383 -0
  48. package/src/interfaces/augment-api-rpc.ts +621 -0
  49. package/src/interfaces/augment-api-runtime.ts +264 -0
  50. package/src/interfaces/augment-api-tx.ts +2175 -0
  51. package/src/interfaces/augment-api.ts +10 -0
  52. package/src/interfaces/augment-types.ts +1375 -0
  53. package/src/interfaces/definitions.ts +2 -0
  54. package/src/interfaces/index.ts +4 -0
  55. package/src/interfaces/lookup.ts +3956 -0
  56. package/src/interfaces/registry.ts +286 -0
  57. package/src/interfaces/totochain/definitions.ts +7 -0
  58. package/src/interfaces/types-lookup.ts +4352 -0
  59. package/src/interfaces/types.ts +4 -0
@@ -0,0 +1,264 @@
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/calls';
7
+
8
+ import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-base/types';
9
+ import type { Bytes, Null, Option, Result, Vec, u32 } from '@polkadot/types-codec';
10
+ import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
11
+ import type { BabeEquivocationProof, BabeGenesisConfiguration, Epoch, OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
12
+ import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfaces/blockbuilder';
13
+ import type { BlockHash } from '@polkadot/types/interfaces/chain';
14
+ import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
15
+ import type { TransactionV2 } from '@polkadot/types/interfaces/eth';
16
+ import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
17
+ import type { GenesisBuildErr } from '@polkadot/types/interfaces/genesisBuilder';
18
+ import type { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/types/interfaces/grandpa';
19
+ import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
20
+ import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
21
+ import type { AccountId, Balance, Block, Call, ExtrinsicInclusionMode, Header, Index, Slot, Weight } from '@polkadot/types/interfaces/runtime';
22
+ import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
23
+ import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system';
24
+ import type { TransactionSource, TransactionValidity } from '@polkadot/types/interfaces/txqueue';
25
+ import type { IExtrinsic, Observable } from '@polkadot/types/types';
26
+
27
+ export type __AugmentedCall<ApiType extends ApiTypes> = AugmentedCall<ApiType>;
28
+ export type __DecoratedCallBase<ApiType extends ApiTypes> = DecoratedCallBase<ApiType>;
29
+
30
+ declare module '@polkadot/api-base/types/calls' {
31
+ interface AugmentedCalls<ApiType extends ApiTypes> {
32
+ /** 0xbc9d89904f5b923f/1 */
33
+ accountNonceApi: {
34
+ /**
35
+ * The API to query account nonce (aka transaction index)
36
+ **/
37
+ accountNonce: AugmentedCall<ApiType, (accountId: AccountId | string | Uint8Array) => Observable<Index>>;
38
+ /**
39
+ * Generic call
40
+ **/
41
+ [key: string]: DecoratedCallBase<ApiType>;
42
+ };
43
+ /** 0x687ad44ad37f03c2/1 */
44
+ authorityDiscoveryApi: {
45
+ /**
46
+ * Retrieve authority identifiers of the current and next authority set.
47
+ **/
48
+ authorities: AugmentedCall<ApiType, () => Observable<Vec<AuthorityId>>>;
49
+ /**
50
+ * Generic call
51
+ **/
52
+ [key: string]: DecoratedCallBase<ApiType>;
53
+ };
54
+ /** 0xcbca25e39f142387/2 */
55
+ babeApi: {
56
+ /**
57
+ * Return the genesis configuration for BABE. The configuration is only read on genesis.
58
+ **/
59
+ configuration: AugmentedCall<ApiType, () => Observable<BabeGenesisConfiguration>>;
60
+ /**
61
+ * Returns information regarding the current epoch.
62
+ **/
63
+ currentEpoch: AugmentedCall<ApiType, () => Observable<Epoch>>;
64
+ /**
65
+ * Returns the slot that started the current epoch.
66
+ **/
67
+ currentEpochStart: AugmentedCall<ApiType, () => Observable<Slot>>;
68
+ /**
69
+ * Generates a proof of key ownership for the given authority in the current epoch.
70
+ **/
71
+ generateKeyOwnershipProof: AugmentedCall<ApiType, (slot: Slot | AnyNumber | Uint8Array, authorityId: AuthorityId | string | Uint8Array) => Observable<Option<OpaqueKeyOwnershipProof>>>;
72
+ /**
73
+ * Returns information regarding the next epoch (which was already previously announced).
74
+ **/
75
+ nextEpoch: AugmentedCall<ApiType, () => Observable<Epoch>>;
76
+ /**
77
+ * Submits an unsigned extrinsic to report an equivocation.
78
+ **/
79
+ submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocationProof: BabeEquivocationProof | { offender?: any; slotNumber?: any; firstHeader?: any; secondHeader?: any } | string | Uint8Array, keyOwnerProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
80
+ /**
81
+ * Generic call
82
+ **/
83
+ [key: string]: DecoratedCallBase<ApiType>;
84
+ };
85
+ /** 0x40fe3ad401f8959a/6 */
86
+ blockBuilder: {
87
+ /**
88
+ * Apply the given extrinsic.
89
+ **/
90
+ applyExtrinsic: AugmentedCall<ApiType, (extrinsic: Extrinsic | IExtrinsic | string | Uint8Array) => Observable<ApplyExtrinsicResult>>;
91
+ /**
92
+ * Check that the inherents are valid.
93
+ **/
94
+ checkInherents: AugmentedCall<ApiType, (block: Block | { header?: any; extrinsics?: any } | string | Uint8Array, data: InherentData | { data?: any } | string | Uint8Array) => Observable<CheckInherentsResult>>;
95
+ /**
96
+ * Finish the current block.
97
+ **/
98
+ finalizeBlock: AugmentedCall<ApiType, () => Observable<Header>>;
99
+ /**
100
+ * Generate inherent extrinsics.
101
+ **/
102
+ inherentExtrinsics: AugmentedCall<ApiType, (inherent: InherentData | { data?: any } | string | Uint8Array) => Observable<Vec<Extrinsic>>>;
103
+ /**
104
+ * Generic call
105
+ **/
106
+ [key: string]: DecoratedCallBase<ApiType>;
107
+ };
108
+ /** 0xe65b00e46cedd0aa/2 */
109
+ convertTransactionRuntimeApi: {
110
+ /**
111
+ * Converts an Ethereum-style transaction to Extrinsic
112
+ **/
113
+ convertTransaction: AugmentedCall<ApiType, (transaction: TransactionV2 | { Legacy: any } | { EIP2930: any } | { EIP1559: any } | string | Uint8Array) => Observable<Extrinsic>>;
114
+ /**
115
+ * Generic call
116
+ **/
117
+ [key: string]: DecoratedCallBase<ApiType>;
118
+ };
119
+ /** 0xdf6acb689907609b/5 */
120
+ core: {
121
+ /**
122
+ * Execute the given block.
123
+ **/
124
+ executeBlock: AugmentedCall<ApiType, (block: Block | { header?: any; extrinsics?: any } | string | Uint8Array) => Observable<Null>>;
125
+ /**
126
+ * Initialize a block with the given header.
127
+ **/
128
+ initializeBlock: AugmentedCall<ApiType, (header: Header | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } | string | Uint8Array) => Observable<ExtrinsicInclusionMode>>;
129
+ /**
130
+ * Returns the version of the runtime.
131
+ **/
132
+ version: AugmentedCall<ApiType, () => Observable<RuntimeVersion>>;
133
+ /**
134
+ * Generic call
135
+ **/
136
+ [key: string]: DecoratedCallBase<ApiType>;
137
+ };
138
+ /** 0xfbc577b9d747efd6/1 */
139
+ genesisBuilder: {
140
+ /**
141
+ * Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the storage.
142
+ **/
143
+ buildConfig: AugmentedCall<ApiType, (json: Bytes | string | Uint8Array) => Observable<Result<ITuple<[]>, GenesisBuildErr>>>;
144
+ /**
145
+ * Creates the default `RuntimeGenesisConfig` and returns it as a JSON blob.
146
+ **/
147
+ createDefaultConfig: AugmentedCall<ApiType, () => Observable<Bytes>>;
148
+ /**
149
+ * Generic call
150
+ **/
151
+ [key: string]: DecoratedCallBase<ApiType>;
152
+ };
153
+ /** 0xed99c5acb25eedf5/3 */
154
+ grandpaApi: {
155
+ /**
156
+ * Get current GRANDPA authority set id.
157
+ **/
158
+ currentSetId: AugmentedCall<ApiType, () => Observable<SetId>>;
159
+ /**
160
+ * Generates a proof of key ownership for the given authority in the given set.
161
+ **/
162
+ generateKeyOwnershipProof: AugmentedCall<ApiType, (setId: SetId | AnyNumber | Uint8Array, authorityId: AuthorityId | string | Uint8Array) => Observable<Option<OpaqueKeyOwnershipProof>>>;
163
+ /**
164
+ * Get the current GRANDPA authorities and weights. This should not change except for when changes are scheduled and the corresponding delay has passed.
165
+ **/
166
+ grandpaAuthorities: AugmentedCall<ApiType, () => Observable<AuthorityList>>;
167
+ /**
168
+ * Submits an unsigned extrinsic to report an equivocation.
169
+ **/
170
+ submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocationProof: GrandpaEquivocationProof | { setId?: any; equivocation?: any } | string | Uint8Array, keyOwnerProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
171
+ /**
172
+ * Generic call
173
+ **/
174
+ [key: string]: DecoratedCallBase<ApiType>;
175
+ };
176
+ /** 0x37e397fc7c91f5e4/2 */
177
+ metadata: {
178
+ /**
179
+ * Returns the metadata of a runtime
180
+ **/
181
+ metadata: AugmentedCall<ApiType, () => Observable<OpaqueMetadata>>;
182
+ /**
183
+ * Returns the metadata at a given version.
184
+ **/
185
+ metadataAtVersion: AugmentedCall<ApiType, (version: u32 | AnyNumber | Uint8Array) => Observable<Option<OpaqueMetadata>>>;
186
+ /**
187
+ * Returns the supported metadata versions.
188
+ **/
189
+ metadataVersions: AugmentedCall<ApiType, () => Observable<Vec<u32>>>;
190
+ /**
191
+ * Generic call
192
+ **/
193
+ [key: string]: DecoratedCallBase<ApiType>;
194
+ };
195
+ /** 0xf78b278be53f454c/2 */
196
+ offchainWorkerApi: {
197
+ /**
198
+ * Starts the off-chain task for given block header.
199
+ **/
200
+ offchainWorker: AugmentedCall<ApiType, (header: Header | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } | string | Uint8Array) => Observable<Null>>;
201
+ /**
202
+ * Generic call
203
+ **/
204
+ [key: string]: DecoratedCallBase<ApiType>;
205
+ };
206
+ /** 0xd2bc9897eed08f15/3 */
207
+ taggedTransactionQueue: {
208
+ /**
209
+ * Validate the transaction.
210
+ **/
211
+ validateTransaction: AugmentedCall<ApiType, (source: TransactionSource | 'InBlock' | 'Local' | 'External' | number | Uint8Array, tx: Extrinsic | IExtrinsic | string | Uint8Array, blockHash: BlockHash | string | Uint8Array) => Observable<TransactionValidity>>;
212
+ /**
213
+ * Generic call
214
+ **/
215
+ [key: string]: DecoratedCallBase<ApiType>;
216
+ };
217
+ /** 0x37c8bb1350a9a2a8/4 */
218
+ transactionPaymentApi: {
219
+ /**
220
+ * The transaction fee details
221
+ **/
222
+ queryFeeDetails: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<FeeDetails>>;
223
+ /**
224
+ * The transaction info
225
+ **/
226
+ queryInfo: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<RuntimeDispatchInfo>>;
227
+ /**
228
+ * Query the output of the current LengthToFee given some input
229
+ **/
230
+ queryLengthToFee: AugmentedCall<ApiType, (length: u32 | AnyNumber | Uint8Array) => Observable<Balance>>;
231
+ /**
232
+ * Query the output of the current WeightToFee given some input
233
+ **/
234
+ queryWeightToFee: AugmentedCall<ApiType, (weight: Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => Observable<Balance>>;
235
+ /**
236
+ * Generic call
237
+ **/
238
+ [key: string]: DecoratedCallBase<ApiType>;
239
+ };
240
+ /** 0xf3ff14d5ab527059/3 */
241
+ transactionPaymentCallApi: {
242
+ /**
243
+ * The call fee details
244
+ **/
245
+ queryCallFeeDetails: AugmentedCall<ApiType, (call: Call | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<FeeDetails>>;
246
+ /**
247
+ * The call info
248
+ **/
249
+ queryCallInfo: AugmentedCall<ApiType, (call: Call | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<RuntimeDispatchInfo>>;
250
+ /**
251
+ * Query the output of the current LengthToFee given some input
252
+ **/
253
+ queryLengthToFee: AugmentedCall<ApiType, (length: u32 | AnyNumber | Uint8Array) => Observable<Balance>>;
254
+ /**
255
+ * Query the output of the current WeightToFee given some input
256
+ **/
257
+ queryWeightToFee: AugmentedCall<ApiType, (weight: Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => Observable<Balance>>;
258
+ /**
259
+ * Generic call
260
+ **/
261
+ [key: string]: DecoratedCallBase<ApiType>;
262
+ };
263
+ } // AugmentedCalls
264
+ } // declare module