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