@polkadot/api-augment 14.0.1 → 14.1.1
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/cjs/base.d.ts +2 -0
- package/cjs/bundle.d.ts +2 -0
- package/cjs/index.d.ts +2 -0
- package/cjs/kusama/consts.d.ts +1044 -0
- package/cjs/kusama/errors.d.ts +2355 -0
- package/cjs/kusama/events.d.ts +2543 -0
- package/cjs/kusama/index.d.ts +8 -0
- package/cjs/kusama/query.d.ts +2378 -0
- package/cjs/kusama/registry.d.ts +3 -0
- package/cjs/kusama/runtime.d.ts +683 -0
- package/cjs/kusama/tx.d.ts +5778 -0
- package/cjs/packageDetect.d.ts +1 -0
- package/cjs/packageInfo.d.ts +6 -0
- package/cjs/packageInfo.js +1 -1
- package/cjs/polkadot/consts.d.ts +864 -0
- package/cjs/polkadot/errors.d.ts +1954 -0
- package/cjs/polkadot/events.d.ts +2024 -0
- package/cjs/polkadot/index.d.ts +8 -0
- package/cjs/polkadot/query.d.ts +2133 -0
- package/cjs/polkadot/registry.d.ts +2 -0
- package/cjs/polkadot/runtime.d.ts +683 -0
- package/cjs/polkadot/tx.d.ts +4932 -0
- package/cjs/substrate/consts.d.ts +1763 -0
- package/cjs/substrate/errors.d.ts +3409 -0
- package/cjs/substrate/events.d.ts +4300 -0
- package/cjs/substrate/index.d.ts +8 -0
- package/cjs/substrate/query.d.ts +2582 -0
- package/cjs/substrate/registry.d.ts +1 -0
- package/cjs/substrate/runtime.d.ts +577 -0
- package/cjs/substrate/tx.d.ts +10200 -0
- package/kusama/runtime.d.ts +253 -212
- package/package.json +368 -128
- package/packageInfo.js +1 -1
- package/polkadot/consts.d.ts +50 -66
- package/polkadot/errors.d.ts +114 -183
- package/polkadot/events.d.ts +83 -144
- package/polkadot/query.d.ts +159 -100
- package/polkadot/runtime.d.ts +315 -179
- package/polkadot/tx.d.ts +2770 -636
- package/substrate/runtime.d.ts +217 -175
package/kusama/runtime.d.ts
CHANGED
|
@@ -1,275 +1,272 @@
|
|
|
1
1
|
import '@polkadot/api-base/types/calls';
|
|
2
2
|
import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-base/types';
|
|
3
|
-
import type { BTreeMap, Bytes, Null, Option, Result,
|
|
3
|
+
import type { BTreeMap, BitVec, Bytes, Null, Option, Result, Text, Vec, bool, u128, u32, u64 } from '@polkadot/types-codec';
|
|
4
4
|
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
|
5
|
-
import type {
|
|
6
|
-
import type { BeefyAuthoritySet, BeefyEquivocationProof, BeefyNextAuthoritySet, ValidatorSet, ValidatorSetId } from '@polkadot/types/interfaces/beefy';
|
|
7
|
-
import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfaces/blockbuilder';
|
|
8
|
-
import type { BlockHash } from '@polkadot/types/interfaces/chain';
|
|
9
|
-
import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
|
|
10
|
-
import type { CallDryRunEffects, XcmDryRunApiError, XcmDryRunEffects } from '@polkadot/types/interfaces/dryRunApi';
|
|
5
|
+
import type { OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
|
|
11
6
|
import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
|
|
12
|
-
import type { GenesisBuildErr } from '@polkadot/types/interfaces/genesisBuilder';
|
|
13
|
-
import type { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/types/interfaces/grandpa';
|
|
14
7
|
import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
|
|
15
|
-
import type {
|
|
16
|
-
import type {
|
|
17
|
-
import type {
|
|
18
|
-
import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
|
|
19
|
-
import type { AccountId, Balance, Block, BlockNumber, Call, ExtrinsicInclusionMode, Hash, Header, Index, KeyTypeId, OriginCaller, RuntimeCall, Slot, ValidatorId, Weight, WeightV2 } from '@polkadot/types/interfaces/runtime';
|
|
20
|
-
import type { SessionIndex } from '@polkadot/types/interfaces/session';
|
|
21
|
-
import type { ValidatorIndex } from '@polkadot/types/interfaces/staking';
|
|
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 { VersionedMultiLocation, VersionedXcm } from '@polkadot/types/interfaces/xcm';
|
|
26
|
-
import type { XcmPaymentApiError } from '@polkadot/types/interfaces/xcmPaymentApi';
|
|
27
|
-
import type { Error } from '@polkadot/types/interfaces/xcmRuntimeApi';
|
|
28
|
-
import type { XcmVersionedAssetId, XcmVersionedLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
|
|
8
|
+
import type { ParaId, ValidationCodeHash } from '@polkadot/types/interfaces/parachains';
|
|
9
|
+
import type { AccountId32, H256, RuntimeCall, Slot } from '@polkadot/types/interfaces/runtime';
|
|
10
|
+
import type { PalletTransactionPaymentFeeDetails, PalletTransactionPaymentRuntimeDispatchInfo, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotPrimitivesV7ApprovalVotingParams, PolkadotPrimitivesV7AsyncBackingAsyncBackingParams, PolkadotPrimitivesV7AsyncBackingBackingState, PolkadotPrimitivesV7CandidateCommitments, PolkadotPrimitivesV7CandidateEvent, PolkadotPrimitivesV7CommittedCandidateReceipt, PolkadotPrimitivesV7CoreState, PolkadotPrimitivesV7DisputeState, PolkadotPrimitivesV7ExecutorParams, PolkadotPrimitivesV7GroupRotationInfo, PolkadotPrimitivesV7OccupiedCoreAssumption, PolkadotPrimitivesV7PersistedValidationData, PolkadotPrimitivesV7PvfCheckStatement, PolkadotPrimitivesV7ScrapedOnChainVotes, PolkadotPrimitivesV7SessionInfo, PolkadotPrimitivesV7SlashingDisputeProof, PolkadotPrimitivesV7SlashingPendingSlashes, PolkadotPrimitivesV7ValidatorAppPublic, PolkadotPrimitivesV7ValidatorAppSignature, RelayCommonApisInflationInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeConfiguration, SpConsensusBabeEpoch, SpConsensusBeefyDoubleVotingProof, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyMmrBeefyAuthoritySet, SpConsensusBeefyValidatorSet, SpConsensusGrandpaAppPublic, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpCoreCryptoKeyTypeId, SpInherentsCheckInherentsResult, SpInherentsInherentData, SpMmrPrimitivesError, SpMmrPrimitivesLeafProof, SpRuntimeBlock, SpRuntimeDispatchError, SpRuntimeExtrinsicInclusionMode, SpRuntimeHeader, SpRuntimeTransactionValidityTransactionSource, SpRuntimeTransactionValidityTransactionValidityError, SpRuntimeTransactionValidityValidTransaction, SpVersionRuntimeVersion, SpWeightsWeightV2Weight, StagingKusamaRuntimeOriginCaller, XcmRuntimeApisConversionsError, XcmRuntimeApisDryRunCallDryRunEffects, XcmRuntimeApisDryRunError, XcmRuntimeApisDryRunXcmDryRunEffects, XcmRuntimeApisFeesError, XcmVersionedAssetId, XcmVersionedAssets, XcmVersionedLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
|
|
29
11
|
import type { IExtrinsic, Observable } from '@polkadot/types/types';
|
|
30
12
|
export type __AugmentedCall<ApiType extends ApiTypes> = AugmentedCall<ApiType>;
|
|
31
13
|
export type __DecoratedCallBase<ApiType extends ApiTypes> = DecoratedCallBase<ApiType>;
|
|
32
14
|
declare module '@polkadot/api-base/types/calls' {
|
|
33
15
|
interface AugmentedCalls<ApiType extends ApiTypes> {
|
|
34
|
-
/** 0xbc9d89904f5b923f/
|
|
16
|
+
/** 0xbc9d89904f5b923f/ */
|
|
35
17
|
accountNonceApi: {
|
|
36
18
|
/**
|
|
37
|
-
*
|
|
19
|
+
* Get current account nonce of given `AccountId`.
|
|
38
20
|
**/
|
|
39
|
-
accountNonce: AugmentedCall<ApiType, (
|
|
21
|
+
accountNonce: AugmentedCall<ApiType, (account: AccountId32 | string | Uint8Array) => Observable<u32>>;
|
|
40
22
|
/**
|
|
41
23
|
* Generic call
|
|
42
24
|
**/
|
|
43
25
|
[key: string]: DecoratedCallBase<ApiType>;
|
|
44
26
|
};
|
|
45
|
-
/** 0x687ad44ad37f03c2/
|
|
27
|
+
/** 0x687ad44ad37f03c2/ */
|
|
46
28
|
authorityDiscoveryApi: {
|
|
47
29
|
/**
|
|
48
30
|
* Retrieve authority identifiers of the current and next authority set.
|
|
49
31
|
**/
|
|
50
|
-
authorities: AugmentedCall<ApiType, () => Observable<Vec<
|
|
32
|
+
authorities: AugmentedCall<ApiType, () => Observable<Vec<SpAuthorityDiscoveryAppPublic>>>;
|
|
51
33
|
/**
|
|
52
34
|
* Generic call
|
|
53
35
|
**/
|
|
54
36
|
[key: string]: DecoratedCallBase<ApiType>;
|
|
55
37
|
};
|
|
56
|
-
/** 0xcbca25e39f142387/
|
|
38
|
+
/** 0xcbca25e39f142387/ */
|
|
57
39
|
babeApi: {
|
|
58
40
|
/**
|
|
59
|
-
* Return the
|
|
41
|
+
* Return the configuration for BABE.
|
|
60
42
|
**/
|
|
61
|
-
configuration: AugmentedCall<ApiType, () => Observable<
|
|
43
|
+
configuration: AugmentedCall<ApiType, () => Observable<SpConsensusBabeBabeConfiguration>>;
|
|
62
44
|
/**
|
|
63
45
|
* Returns information regarding the current epoch.
|
|
64
46
|
**/
|
|
65
|
-
currentEpoch: AugmentedCall<ApiType, () => Observable<
|
|
47
|
+
currentEpoch: AugmentedCall<ApiType, () => Observable<SpConsensusBabeEpoch>>;
|
|
66
48
|
/**
|
|
67
49
|
* Returns the slot that started the current epoch.
|
|
68
50
|
**/
|
|
69
51
|
currentEpochStart: AugmentedCall<ApiType, () => Observable<Slot>>;
|
|
70
52
|
/**
|
|
71
|
-
* Generates a proof of key ownership for the given authority in the current epoch.
|
|
53
|
+
* Generates a proof of key ownership for the given authority in the, current epoch. An example usage of this module is coupled with the, session historical module to prove that a given authority key is, tied to a given staking identity during a specific session. Proofs, of key ownership are necessary for submitting equivocation reports., NOTE: even though the API takes a `slot` as parameter the current, implementations ignores this parameter and instead relies on this, method being called at the correct block height, i.e. any point at, which the epoch for the given slot is live on-chain. Future, implementations will instead use indexed data through an offchain, worker, not requiring older states to be available.
|
|
72
54
|
**/
|
|
73
|
-
generateKeyOwnershipProof: AugmentedCall<ApiType, (slot: Slot | AnyNumber | Uint8Array,
|
|
55
|
+
generateKeyOwnershipProof: AugmentedCall<ApiType, (slot: Slot | AnyNumber | Uint8Array, authority_id: SpConsensusBabeAppPublic | string | Uint8Array) => Observable<Option<Bytes>>>;
|
|
74
56
|
/**
|
|
75
|
-
* Returns information regarding the next epoch (which was already previously announced).
|
|
57
|
+
* Returns information regarding the next epoch (which was already, previously announced).
|
|
76
58
|
**/
|
|
77
|
-
nextEpoch: AugmentedCall<ApiType, () => Observable<
|
|
59
|
+
nextEpoch: AugmentedCall<ApiType, () => Observable<SpConsensusBabeEpoch>>;
|
|
78
60
|
/**
|
|
79
|
-
* Submits an unsigned extrinsic to report an equivocation.
|
|
61
|
+
* Submits an unsigned extrinsic to report an equivocation. The caller, must provide the equivocation proof and a key ownership proof, (should be obtained using `generate_key_ownership_proof`). The, extrinsic will be unsigned and should only be accepted for local, authorship (not to be broadcast to the network). This method returns, `None` when creation of the extrinsic fails, e.g. if equivocation, reporting is disabled for the given runtime (i.e. this method is, hardcoded to return `None`). Only useful in an offchain context.
|
|
80
62
|
**/
|
|
81
|
-
submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (
|
|
63
|
+
submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocation_proof: SpConsensusSlotsEquivocationProof | {
|
|
82
64
|
offender?: any;
|
|
83
|
-
|
|
65
|
+
slot?: any;
|
|
84
66
|
firstHeader?: any;
|
|
85
67
|
secondHeader?: any;
|
|
86
|
-
} | string | Uint8Array,
|
|
68
|
+
} | string | Uint8Array, key_owner_proof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
|
|
87
69
|
/**
|
|
88
70
|
* Generic call
|
|
89
71
|
**/
|
|
90
72
|
[key: string]: DecoratedCallBase<ApiType>;
|
|
91
73
|
};
|
|
92
|
-
/** 0x49eaaf1b548a0cb0/
|
|
74
|
+
/** 0x49eaaf1b548a0cb0/ */
|
|
93
75
|
beefyApi: {
|
|
94
76
|
/**
|
|
95
77
|
* Return the block number where BEEFY consensus is enabled/started
|
|
96
78
|
**/
|
|
97
|
-
beefyGenesis: AugmentedCall<ApiType, () => Observable<Option<
|
|
79
|
+
beefyGenesis: AugmentedCall<ApiType, () => Observable<Option<u32>>>;
|
|
98
80
|
/**
|
|
99
|
-
* Generates a proof of key ownership for the given authority in the given set.
|
|
81
|
+
* Generates a proof of key ownership for the given authority in the, given set. An example usage of this module is coupled with the, session historical module to prove that a given authority key is, tied to a given staking identity during a specific session. Proofs, of key ownership are necessary for submitting equivocation reports., NOTE: even though the API takes a `set_id` as parameter the current, implementations ignores this parameter and instead relies on this, method being called at the correct block height, i.e. any point at, which the given set id is live on-chain. Future implementations will, instead use indexed data through an offchain worker, not requiring, older states to be available.
|
|
100
82
|
**/
|
|
101
|
-
generateKeyOwnershipProof: AugmentedCall<ApiType, (
|
|
83
|
+
generateKeyOwnershipProof: AugmentedCall<ApiType, (set_id: u64 | AnyNumber | Uint8Array, authority_id: SpConsensusBeefyEcdsaCryptoPublic | string | Uint8Array) => Observable<Option<Bytes>>>;
|
|
102
84
|
/**
|
|
103
|
-
* Submits an unsigned extrinsic to report an equivocation.
|
|
85
|
+
* Submits an unsigned extrinsic to report an equivocation. The caller, must provide the equivocation proof and a key ownership proof, (should be obtained using `generate_key_ownership_proof`). The, extrinsic will be unsigned and should only be accepted for local, authorship (not to be broadcast to the network). This method returns, `None` when creation of the extrinsic fails, e.g. if equivocation, reporting is disabled for the given runtime (i.e. this method is, hardcoded to return `None`). Only useful in an offchain context.
|
|
104
86
|
**/
|
|
105
|
-
submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (
|
|
87
|
+
submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocation_proof: SpConsensusBeefyDoubleVotingProof | {
|
|
106
88
|
first?: any;
|
|
107
89
|
second?: any;
|
|
108
|
-
} | string | Uint8Array,
|
|
90
|
+
} | string | Uint8Array, key_owner_proof: Bytes | string | Uint8Array) => Observable<Option<Null>>>;
|
|
109
91
|
/**
|
|
110
92
|
* Return the current active BEEFY validator set
|
|
111
93
|
**/
|
|
112
|
-
validatorSet: AugmentedCall<ApiType, () => Observable<Option<
|
|
94
|
+
validatorSet: AugmentedCall<ApiType, () => Observable<Option<SpConsensusBeefyValidatorSet>>>;
|
|
113
95
|
/**
|
|
114
96
|
* Generic call
|
|
115
97
|
**/
|
|
116
98
|
[key: string]: DecoratedCallBase<ApiType>;
|
|
117
99
|
};
|
|
118
|
-
/** 0x2a5e924655399e60/
|
|
100
|
+
/** 0x2a5e924655399e60/ */
|
|
119
101
|
beefyMmrApi: {
|
|
120
102
|
/**
|
|
121
103
|
* Return the currently active BEEFY authority set proof.
|
|
122
104
|
**/
|
|
123
|
-
authoritySetProof: AugmentedCall<ApiType, () => Observable<
|
|
105
|
+
authoritySetProof: AugmentedCall<ApiType, () => Observable<SpConsensusBeefyMmrBeefyAuthoritySet>>;
|
|
124
106
|
/**
|
|
125
107
|
* Return the next/queued BEEFY authority set proof.
|
|
126
108
|
**/
|
|
127
|
-
nextAuthoritySetProof: AugmentedCall<ApiType, () => Observable<
|
|
109
|
+
nextAuthoritySetProof: AugmentedCall<ApiType, () => Observable<SpConsensusBeefyMmrBeefyAuthoritySet>>;
|
|
128
110
|
/**
|
|
129
111
|
* Generic call
|
|
130
112
|
**/
|
|
131
113
|
[key: string]: DecoratedCallBase<ApiType>;
|
|
132
114
|
};
|
|
133
|
-
/** 0x40fe3ad401f8959a/
|
|
115
|
+
/** 0x40fe3ad401f8959a/ */
|
|
134
116
|
blockBuilder: {
|
|
135
117
|
/**
|
|
136
|
-
* Apply the given extrinsic.
|
|
118
|
+
* Apply the given extrinsic.,, Returns an inclusion outcome which specifies if this extrinsic is included in, this block or not.
|
|
137
119
|
**/
|
|
138
|
-
applyExtrinsic: AugmentedCall<ApiType, (extrinsic: Extrinsic | IExtrinsic | string | Uint8Array) => Observable<
|
|
120
|
+
applyExtrinsic: AugmentedCall<ApiType, (extrinsic: Extrinsic | IExtrinsic | string | Uint8Array) => Observable<Result<Result<Null, SpRuntimeDispatchError>, SpRuntimeTransactionValidityTransactionValidityError>>>;
|
|
139
121
|
/**
|
|
140
|
-
* Check that the inherents are valid.
|
|
122
|
+
* Check that the inherents are valid. The inherent data will vary from chain to chain.
|
|
141
123
|
**/
|
|
142
|
-
checkInherents: AugmentedCall<ApiType, (block:
|
|
124
|
+
checkInherents: AugmentedCall<ApiType, (block: SpRuntimeBlock | {
|
|
143
125
|
header?: any;
|
|
144
126
|
extrinsics?: any;
|
|
145
|
-
} | string | Uint8Array, data:
|
|
127
|
+
} | string | Uint8Array, data: SpInherentsInherentData | {
|
|
146
128
|
data?: any;
|
|
147
|
-
} | string | Uint8Array) => Observable<
|
|
129
|
+
} | string | Uint8Array) => Observable<SpInherentsCheckInherentsResult>>;
|
|
148
130
|
/**
|
|
149
131
|
* Finish the current block.
|
|
150
132
|
**/
|
|
151
|
-
finalizeBlock: AugmentedCall<ApiType, () => Observable<
|
|
133
|
+
finalizeBlock: AugmentedCall<ApiType, () => Observable<SpRuntimeHeader>>;
|
|
152
134
|
/**
|
|
153
|
-
* Generate inherent extrinsics.
|
|
135
|
+
* Generate inherent extrinsics. The inherent data will vary from chain to chain.
|
|
154
136
|
**/
|
|
155
|
-
inherentExtrinsics: AugmentedCall<ApiType, (inherent:
|
|
137
|
+
inherentExtrinsics: AugmentedCall<ApiType, (inherent: SpInherentsInherentData | {
|
|
156
138
|
data?: any;
|
|
157
|
-
} | string | Uint8Array) => Observable<Vec<
|
|
139
|
+
} | string | Uint8Array) => Observable<Vec<Bytes>>>;
|
|
158
140
|
/**
|
|
159
141
|
* Generic call
|
|
160
142
|
**/
|
|
161
143
|
[key: string]: DecoratedCallBase<ApiType>;
|
|
162
144
|
};
|
|
163
|
-
/** 0xdf6acb689907609b/
|
|
145
|
+
/** 0xdf6acb689907609b/ */
|
|
164
146
|
core: {
|
|
165
147
|
/**
|
|
166
148
|
* Execute the given block.
|
|
167
149
|
**/
|
|
168
|
-
executeBlock: AugmentedCall<ApiType, (block:
|
|
150
|
+
executeBlock: AugmentedCall<ApiType, (block: SpRuntimeBlock | {
|
|
169
151
|
header?: any;
|
|
170
152
|
extrinsics?: any;
|
|
171
153
|
} | string | Uint8Array) => Observable<Null>>;
|
|
172
154
|
/**
|
|
173
|
-
* Initialize a block with the given header.
|
|
155
|
+
* Initialize a block with the given header and return the runtime executive mode.
|
|
174
156
|
**/
|
|
175
|
-
initializeBlock: AugmentedCall<ApiType, (header:
|
|
157
|
+
initializeBlock: AugmentedCall<ApiType, (header: SpRuntimeHeader | {
|
|
176
158
|
parentHash?: any;
|
|
177
159
|
number?: any;
|
|
178
160
|
stateRoot?: any;
|
|
179
161
|
extrinsicsRoot?: any;
|
|
180
162
|
digest?: any;
|
|
181
|
-
} | string | Uint8Array) => Observable<
|
|
163
|
+
} | string | Uint8Array) => Observable<SpRuntimeExtrinsicInclusionMode>>;
|
|
182
164
|
/**
|
|
183
165
|
* Returns the version of the runtime.
|
|
184
166
|
**/
|
|
185
|
-
version: AugmentedCall<ApiType, () => Observable<
|
|
167
|
+
version: AugmentedCall<ApiType, () => Observable<SpVersionRuntimeVersion>>;
|
|
186
168
|
/**
|
|
187
169
|
* Generic call
|
|
188
170
|
**/
|
|
189
171
|
[key: string]: DecoratedCallBase<ApiType>;
|
|
190
172
|
};
|
|
191
|
-
/** 0x91b1c8b16328eb92/
|
|
173
|
+
/** 0x91b1c8b16328eb92/ */
|
|
192
174
|
dryRunApi: {
|
|
193
175
|
/**
|
|
194
|
-
* Dry run call
|
|
176
|
+
* Dry run call.
|
|
195
177
|
**/
|
|
196
|
-
dryRunCall: AugmentedCall<ApiType, (origin:
|
|
197
|
-
|
|
198
|
-
} |
|
|
178
|
+
dryRunCall: AugmentedCall<ApiType, (origin: StagingKusamaRuntimeOriginCaller | {
|
|
179
|
+
system: any;
|
|
180
|
+
} | {
|
|
181
|
+
Void: any;
|
|
182
|
+
} | {
|
|
183
|
+
Origins: any;
|
|
184
|
+
} | {
|
|
185
|
+
ParachainsOrigin: any;
|
|
186
|
+
} | {
|
|
187
|
+
XcmPallet: any;
|
|
188
|
+
} | string | Uint8Array, call: RuntimeCall | IMethod | string | Uint8Array) => Observable<Result<XcmRuntimeApisDryRunCallDryRunEffects, XcmRuntimeApisDryRunError>>>;
|
|
199
189
|
/**
|
|
200
190
|
* Dry run XCM program
|
|
201
191
|
**/
|
|
202
|
-
dryRunXcm: AugmentedCall<ApiType, (
|
|
203
|
-
V0: any;
|
|
204
|
-
} | {
|
|
205
|
-
V1: any;
|
|
206
|
-
} | {
|
|
192
|
+
dryRunXcm: AugmentedCall<ApiType, (origin_location: XcmVersionedLocation | {
|
|
207
193
|
V2: any;
|
|
208
194
|
} | {
|
|
209
195
|
V3: any;
|
|
210
196
|
} | {
|
|
211
197
|
V4: any;
|
|
212
|
-
} | string | Uint8Array, xcm:
|
|
213
|
-
V0: any;
|
|
214
|
-
} | {
|
|
215
|
-
V1: any;
|
|
216
|
-
} | {
|
|
198
|
+
} | string | Uint8Array, xcm: XcmVersionedXcm | {
|
|
217
199
|
V2: any;
|
|
218
200
|
} | {
|
|
219
201
|
V3: any;
|
|
220
202
|
} | {
|
|
221
203
|
V4: any;
|
|
222
|
-
} | string | Uint8Array) => Observable<Result<
|
|
204
|
+
} | string | Uint8Array) => Observable<Result<XcmRuntimeApisDryRunXcmDryRunEffects, XcmRuntimeApisDryRunError>>>;
|
|
223
205
|
/**
|
|
224
206
|
* Generic call
|
|
225
207
|
**/
|
|
226
208
|
[key: string]: DecoratedCallBase<ApiType>;
|
|
227
209
|
};
|
|
228
|
-
/** 0xfbc577b9d747efd6/
|
|
210
|
+
/** 0xfbc577b9d747efd6/ */
|
|
229
211
|
genesisBuilder: {
|
|
230
212
|
/**
|
|
231
|
-
* Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the storage.
|
|
213
|
+
* Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the, storage.,, In the case of a FRAME-based runtime, this function deserializes the full `RuntimeGenesisConfig` from the given JSON blob and, puts it into the storage. If the provided JSON blob is incorrect or incomplete or the, deserialization fails, an error is returned.,, Please note that provided JSON blob must contain all `RuntimeGenesisConfig` fields, no, defaults will be used.
|
|
214
|
+
**/
|
|
215
|
+
buildState: AugmentedCall<ApiType, (json: Bytes | string | Uint8Array) => Observable<Result<Null, Text>>>;
|
|
216
|
+
/**
|
|
217
|
+
* Returns a JSON blob representation of the built-in `RuntimeGenesisConfig` identified by, `id`.,, If `id` is `None` the function returns JSON blob representation of the default, `RuntimeGenesisConfig` struct of the runtime. Implementation must provide default, `RuntimeGenesisConfig`.,, Otherwise function returns a JSON representation of the built-in, named, `RuntimeGenesisConfig` preset identified by `id`, or `None` if such preset does not, exists. Returned `Vec<u8>` contains bytes of JSON blob (patch) which comprises a list of, (potentially nested) key-value pairs that are intended for customizing the default, runtime genesis config. The patch shall be merged (rfc7386) with the JSON representation, of the default `RuntimeGenesisConfig` to create a comprehensive genesis config that can, be used in `build_state` method.
|
|
232
218
|
**/
|
|
233
|
-
|
|
219
|
+
getPreset: AugmentedCall<ApiType, (id: Option<Text> | null | Uint8Array | Text | string) => Observable<Option<Bytes>>>;
|
|
234
220
|
/**
|
|
235
|
-
*
|
|
221
|
+
* Returns a list of identifiers for available builtin `RuntimeGenesisConfig` presets.,, The presets from the list can be queried with [`GenesisBuilder::get_preset`] method. If, no named presets are provided by the runtime the list is empty.
|
|
236
222
|
**/
|
|
237
|
-
|
|
223
|
+
presetNames: AugmentedCall<ApiType, () => Observable<Vec<Text>>>;
|
|
238
224
|
/**
|
|
239
225
|
* Generic call
|
|
240
226
|
**/
|
|
241
227
|
[key: string]: DecoratedCallBase<ApiType>;
|
|
242
228
|
};
|
|
243
|
-
/** 0xed99c5acb25eedf5/
|
|
229
|
+
/** 0xed99c5acb25eedf5/ */
|
|
244
230
|
grandpaApi: {
|
|
245
231
|
/**
|
|
246
232
|
* Get current GRANDPA authority set id.
|
|
247
233
|
**/
|
|
248
|
-
currentSetId: AugmentedCall<ApiType, () => Observable<
|
|
234
|
+
currentSetId: AugmentedCall<ApiType, () => Observable<u64>>;
|
|
249
235
|
/**
|
|
250
|
-
* Generates a proof of key ownership for the given authority in the given set.
|
|
236
|
+
* Generates a proof of key ownership for the given authority in the, given set. An example usage of this module is coupled with the, session historical module to prove that a given authority key is, tied to a given staking identity during a specific session. Proofs, of key ownership are necessary for submitting equivocation reports., NOTE: even though the API takes a `set_id` as parameter the current, implementations ignore this parameter and instead rely on this, method being called at the correct block height, i.e. any point at, which the given set id is live on-chain. Future implementations will, instead use indexed data through an offchain worker, not requiring, older states to be available.
|
|
251
237
|
**/
|
|
252
|
-
generateKeyOwnershipProof: AugmentedCall<ApiType, (
|
|
238
|
+
generateKeyOwnershipProof: AugmentedCall<ApiType, (set_id: u64 | AnyNumber | Uint8Array, authority_id: SpConsensusGrandpaAppPublic | string | Uint8Array) => Observable<Option<Bytes>>>;
|
|
253
239
|
/**
|
|
254
|
-
* Get the current GRANDPA authorities and weights. This should not change except for when changes are scheduled and the corresponding delay has passed.
|
|
240
|
+
* Get the current GRANDPA authorities and weights. This should not change except, for when changes are scheduled and the corresponding delay has passed.,, When called at block B, it will return the set of authorities that should be, used to finalize descendants of this block (B+1, B+2, ...). The block B itself, is finalized by the authorities from block B-1.
|
|
255
241
|
**/
|
|
256
|
-
grandpaAuthorities: AugmentedCall<ApiType, () => Observable<
|
|
242
|
+
grandpaAuthorities: AugmentedCall<ApiType, () => Observable<Vec<ITuple<[SpConsensusGrandpaAppPublic, u64]>>>>;
|
|
257
243
|
/**
|
|
258
|
-
* Submits an unsigned extrinsic to report an equivocation.
|
|
244
|
+
* Submits an unsigned extrinsic to report an equivocation. The caller, must provide the equivocation proof and a key ownership proof, (should be obtained using `generate_key_ownership_proof`). The, extrinsic will be unsigned and should only be accepted for local, authorship (not to be broadcast to the network). This method returns, `None` when creation of the extrinsic fails, e.g. if equivocation, reporting is disabled for the given runtime (i.e. this method is, hardcoded to return `None`). Only useful in an offchain context.
|
|
259
245
|
**/
|
|
260
|
-
submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (
|
|
246
|
+
submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocation_proof: SpConsensusGrandpaEquivocationProof | {
|
|
261
247
|
setId?: any;
|
|
262
248
|
equivocation?: any;
|
|
263
|
-
} | string | Uint8Array,
|
|
249
|
+
} | string | Uint8Array, key_owner_proof: Bytes | string | Uint8Array) => Observable<Option<Null>>>;
|
|
264
250
|
/**
|
|
265
251
|
* Generic call
|
|
266
252
|
**/
|
|
267
253
|
[key: string]: DecoratedCallBase<ApiType>;
|
|
268
254
|
};
|
|
269
|
-
/**
|
|
255
|
+
/** 0xc51ff1fa3f5d0cca/ */
|
|
256
|
+
inflation: {
|
|
257
|
+
/**
|
|
258
|
+
* Return the current estimates of the inflation amount.,, This is marked as experimental in light of RFC#89. Nonetheless, its usage is highly, recommended over trying to read-storage, or re-create the onchain logic.
|
|
259
|
+
**/
|
|
260
|
+
experimentalInflationPredictionInfo: AugmentedCall<ApiType, () => Observable<RelayCommonApisInflationInfo>>;
|
|
261
|
+
/**
|
|
262
|
+
* Generic call
|
|
263
|
+
**/
|
|
264
|
+
[key: string]: DecoratedCallBase<ApiType>;
|
|
265
|
+
};
|
|
266
|
+
/** 0x9ffb505aa738d69c/ */
|
|
270
267
|
locationToAccountApi: {
|
|
271
268
|
/**
|
|
272
|
-
* Converts `Location` to `AccountId
|
|
269
|
+
* Converts `Location` to `AccountId`.
|
|
273
270
|
**/
|
|
274
271
|
convertLocation: AugmentedCall<ApiType, (location: XcmVersionedLocation | {
|
|
275
272
|
V2: any;
|
|
@@ -277,24 +274,24 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
277
274
|
V3: any;
|
|
278
275
|
} | {
|
|
279
276
|
V4: any;
|
|
280
|
-
} | string | Uint8Array) => Observable<Result<
|
|
277
|
+
} | string | Uint8Array) => Observable<Result<AccountId32, XcmRuntimeApisConversionsError>>>;
|
|
281
278
|
/**
|
|
282
279
|
* Generic call
|
|
283
280
|
**/
|
|
284
281
|
[key: string]: DecoratedCallBase<ApiType>;
|
|
285
282
|
};
|
|
286
|
-
/** 0x37e397fc7c91f5e4/
|
|
283
|
+
/** 0x37e397fc7c91f5e4/ */
|
|
287
284
|
metadata: {
|
|
288
285
|
/**
|
|
289
|
-
* Returns the metadata of a runtime
|
|
286
|
+
* Returns the metadata of a runtime.
|
|
290
287
|
**/
|
|
291
288
|
metadata: AugmentedCall<ApiType, () => Observable<OpaqueMetadata>>;
|
|
292
289
|
/**
|
|
293
|
-
* Returns the metadata at a given version.
|
|
290
|
+
* Returns the metadata at a given version.,, If the given `version` isn't supported, this will return `None`., Use [`Self::metadata_versions`] to find out about supported metadata version of the runtime.
|
|
294
291
|
**/
|
|
295
292
|
metadataAtVersion: AugmentedCall<ApiType, (version: u32 | AnyNumber | Uint8Array) => Observable<Option<OpaqueMetadata>>>;
|
|
296
293
|
/**
|
|
297
|
-
* Returns the supported metadata versions
|
|
294
|
+
* Returns the supported metadata versions.,, This can be used to call `metadata_at_version`.
|
|
298
295
|
**/
|
|
299
296
|
metadataVersions: AugmentedCall<ApiType, () => Observable<Vec<u32>>>;
|
|
300
297
|
/**
|
|
@@ -302,66 +299,82 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
302
299
|
**/
|
|
303
300
|
[key: string]: DecoratedCallBase<ApiType>;
|
|
304
301
|
};
|
|
305
|
-
/** 0x91d5df18b0d2cf58/
|
|
302
|
+
/** 0x91d5df18b0d2cf58/ */
|
|
306
303
|
mmrApi: {
|
|
307
304
|
/**
|
|
308
|
-
* Generate MMR proof for
|
|
305
|
+
* Generate MMR proof for a series of block numbers. If `best_known_block_number = Some(n)`,, use historical MMR state at given block height `n`. Else, use current MMR state.
|
|
309
306
|
**/
|
|
310
|
-
generateProof: AugmentedCall<ApiType, (
|
|
307
|
+
generateProof: AugmentedCall<ApiType, (block_numbers: Vec<u32> | (u32 | AnyNumber | Uint8Array)[], best_known_block_number: Option<u32> | null | Uint8Array | u32 | AnyNumber) => Observable<Result<ITuple<[Vec<Bytes>, SpMmrPrimitivesLeafProof]>, SpMmrPrimitivesError>>>;
|
|
311
308
|
/**
|
|
312
309
|
* Return the number of MMR blocks in the chain.
|
|
313
310
|
**/
|
|
314
|
-
mmrLeafCount: AugmentedCall<ApiType, () => Observable<Result<
|
|
311
|
+
mmrLeafCount: AugmentedCall<ApiType, () => Observable<Result<u64, SpMmrPrimitivesError>>>;
|
|
315
312
|
/**
|
|
316
313
|
* Return the on-chain MMR root hash.
|
|
317
314
|
**/
|
|
318
|
-
mmrRoot: AugmentedCall<ApiType, () => Observable<Result<
|
|
315
|
+
mmrRoot: AugmentedCall<ApiType, () => Observable<Result<H256, SpMmrPrimitivesError>>>;
|
|
319
316
|
/**
|
|
320
|
-
* Verify MMR proof against on-chain MMR
|
|
317
|
+
* Verify MMR proof against on-chain MMR for a batch of leaves.,, Note this function will use on-chain MMR root hash and check if the proof matches the hash., Note, the leaves should be sorted such that corresponding leaves and leaf indices have the, same position in both the `leaves` vector and the `leaf_indices` vector contained in the [LeafProof]
|
|
321
318
|
**/
|
|
322
|
-
verifyProof: AugmentedCall<ApiType, (leaves: Vec<
|
|
319
|
+
verifyProof: AugmentedCall<ApiType, (leaves: Vec<Bytes> | (Bytes | string | Uint8Array)[], proof: SpMmrPrimitivesLeafProof | {
|
|
323
320
|
leafIndices?: any;
|
|
324
321
|
leafCount?: any;
|
|
325
322
|
items?: any;
|
|
326
|
-
} | string | Uint8Array) => Observable<Result<
|
|
323
|
+
} | string | Uint8Array) => Observable<Result<Null, SpMmrPrimitivesError>>>;
|
|
327
324
|
/**
|
|
328
|
-
* Verify MMR proof against given root hash
|
|
325
|
+
* Verify MMR proof against given root hash for a batch of leaves.,, Note this function does not require any on-chain storage - the, proof is verified against given MMR root hash.,, Note, the leaves should be sorted such that corresponding leaves and leaf indices have the, same position in both the `leaves` vector and the `leaf_indices` vector contained in the [LeafProof]
|
|
329
326
|
**/
|
|
330
|
-
verifyProofStateless: AugmentedCall<ApiType, (root:
|
|
327
|
+
verifyProofStateless: AugmentedCall<ApiType, (root: H256 | string | Uint8Array, leaves: Vec<Bytes> | (Bytes | string | Uint8Array)[], proof: SpMmrPrimitivesLeafProof | {
|
|
331
328
|
leafIndices?: any;
|
|
332
329
|
leafCount?: any;
|
|
333
330
|
items?: any;
|
|
334
|
-
} | string | Uint8Array) => Observable<Result<
|
|
331
|
+
} | string | Uint8Array) => Observable<Result<Null, SpMmrPrimitivesError>>>;
|
|
335
332
|
/**
|
|
336
333
|
* Generic call
|
|
337
334
|
**/
|
|
338
335
|
[key: string]: DecoratedCallBase<ApiType>;
|
|
339
336
|
};
|
|
340
|
-
/** 0x17a6bc0d0062aeb3/
|
|
337
|
+
/** 0x17a6bc0d0062aeb3/ */
|
|
341
338
|
nominationPoolsApi: {
|
|
342
339
|
/**
|
|
343
340
|
* Returns the equivalent points of `new_funds` for a given pool.
|
|
344
341
|
**/
|
|
345
|
-
balanceToPoints: AugmentedCall<ApiType, (
|
|
342
|
+
balanceToPoints: AugmentedCall<ApiType, (pool_id: u32 | AnyNumber | Uint8Array, new_funds: u128 | AnyNumber | Uint8Array) => Observable<u128>>;
|
|
343
|
+
/**
|
|
344
|
+
* Returns true if the delegated funds of the pool `member` needs migration.,, Once a pool has successfully migrated to the strategy, [`DelegateStake`](pallet_nomination_pools::adapter::DelegateStake), the funds of the, member can be migrated from pool account to the member's account. Use, [`migrate_delegation`](pallet_nomination_pools::Call::migrate_delegation), to migrate the funds of the pool member.
|
|
345
|
+
**/
|
|
346
|
+
memberNeedsDelegateMigration: AugmentedCall<ApiType, (member: AccountId32 | string | Uint8Array) => Observable<bool>>;
|
|
346
347
|
/**
|
|
347
|
-
* Returns the pending
|
|
348
|
+
* Returns the pending slash for a given pool member.
|
|
348
349
|
**/
|
|
349
|
-
|
|
350
|
+
memberPendingSlash: AugmentedCall<ApiType, (member: AccountId32 | string | Uint8Array) => Observable<u128>>;
|
|
351
|
+
/**
|
|
352
|
+
* Returns the pending rewards for the member that the AccountId was given for.
|
|
353
|
+
**/
|
|
354
|
+
pendingRewards: AugmentedCall<ApiType, (who: AccountId32 | string | Uint8Array) => Observable<u128>>;
|
|
350
355
|
/**
|
|
351
356
|
* Returns the equivalent balance of `points` for a given pool.
|
|
352
357
|
**/
|
|
353
|
-
pointsToBalance: AugmentedCall<ApiType, (
|
|
358
|
+
pointsToBalance: AugmentedCall<ApiType, (pool_id: u32 | AnyNumber | Uint8Array, points: u128 | AnyNumber | Uint8Array) => Observable<u128>>;
|
|
359
|
+
/**
|
|
360
|
+
* Returns true if the pool with `pool_id` needs migration.,, This can happen when the `pallet-nomination-pools` has switched to using strategy, [`DelegateStake`](pallet_nomination_pools::adapter::DelegateStake) but the pool, still has funds that were staked using the older strategy, [TransferStake](pallet_nomination_pools::adapter::TransferStake). Use, [`migrate_pool_to_delegate_stake`](pallet_nomination_pools::Call::migrate_pool_to_delegate_stake), to migrate the pool.
|
|
361
|
+
**/
|
|
362
|
+
poolNeedsDelegateMigration: AugmentedCall<ApiType, (pool_id: u32 | AnyNumber | Uint8Array) => Observable<bool>>;
|
|
363
|
+
/**
|
|
364
|
+
* Returns the pending slash for a given pool.
|
|
365
|
+
**/
|
|
366
|
+
poolPendingSlash: AugmentedCall<ApiType, (pool_id: u32 | AnyNumber | Uint8Array) => Observable<u128>>;
|
|
354
367
|
/**
|
|
355
368
|
* Generic call
|
|
356
369
|
**/
|
|
357
370
|
[key: string]: DecoratedCallBase<ApiType>;
|
|
358
371
|
};
|
|
359
|
-
/** 0xf78b278be53f454c/
|
|
372
|
+
/** 0xf78b278be53f454c/ */
|
|
360
373
|
offchainWorkerApi: {
|
|
361
374
|
/**
|
|
362
375
|
* Starts the off-chain task for given block header.
|
|
363
376
|
**/
|
|
364
|
-
offchainWorker: AugmentedCall<ApiType, (header:
|
|
377
|
+
offchainWorker: AugmentedCall<ApiType, (header: SpRuntimeHeader | {
|
|
365
378
|
parentHash?: any;
|
|
366
379
|
number?: any;
|
|
367
380
|
stateRoot?: any;
|
|
@@ -373,36 +386,40 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
373
386
|
**/
|
|
374
387
|
[key: string]: DecoratedCallBase<ApiType>;
|
|
375
388
|
};
|
|
376
|
-
/** 0xaf2c0297a23e6d3d/
|
|
389
|
+
/** 0xaf2c0297a23e6d3d/ */
|
|
377
390
|
parachainHost: {
|
|
378
391
|
/**
|
|
379
392
|
* Approval voting configuration parameters
|
|
380
393
|
**/
|
|
381
|
-
approvalVotingParams: AugmentedCall<ApiType, () => Observable<
|
|
394
|
+
approvalVotingParams: AugmentedCall<ApiType, () => Observable<PolkadotPrimitivesV7ApprovalVotingParams>>;
|
|
382
395
|
/**
|
|
383
|
-
* Returns the persisted validation data for the given `ParaId` along with the corresponding validation code hash.
|
|
396
|
+
* Returns the persisted validation data for the given `ParaId` along with the corresponding, validation code hash. Instead of accepting assumption about the para, matches the validation, data hash against an expected one and yields `None` if they're not equal.
|
|
384
397
|
**/
|
|
385
|
-
assumedValidationData: AugmentedCall<ApiType, (
|
|
398
|
+
assumedValidationData: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array, expected_persisted_validation_data_hash: H256 | string | Uint8Array) => Observable<Option<ITuple<[PolkadotPrimitivesV7PersistedValidationData, H256]>>>>;
|
|
386
399
|
/**
|
|
387
|
-
* Returns candidate's acceptance limitations for asynchronous backing for a relay parent
|
|
400
|
+
* Returns candidate's acceptance limitations for asynchronous backing for a relay parent.
|
|
388
401
|
**/
|
|
389
|
-
asyncBackingParams: AugmentedCall<ApiType, () => Observable<
|
|
402
|
+
asyncBackingParams: AugmentedCall<ApiType, () => Observable<PolkadotPrimitivesV7AsyncBackingAsyncBackingParams>>;
|
|
390
403
|
/**
|
|
391
|
-
* Yields information on all availability cores as relevant to the child block.
|
|
404
|
+
* Yields information on all availability cores as relevant to the child block., Cores are either free or occupied. Free cores can have paras assigned to them.
|
|
392
405
|
**/
|
|
393
|
-
availabilityCores: AugmentedCall<ApiType, () => Observable<Vec<
|
|
406
|
+
availabilityCores: AugmentedCall<ApiType, () => Observable<Vec<PolkadotPrimitivesV7CoreState>>>;
|
|
394
407
|
/**
|
|
395
408
|
* Get a vector of events concerning candidates that occurred within a block.
|
|
396
409
|
**/
|
|
397
|
-
candidateEvents: AugmentedCall<ApiType, () => Observable<Vec<
|
|
410
|
+
candidateEvents: AugmentedCall<ApiType, () => Observable<Vec<PolkadotPrimitivesV7CandidateEvent>>>;
|
|
398
411
|
/**
|
|
399
|
-
* Get the receipt of a candidate pending availability.
|
|
412
|
+
* Get the receipt of a candidate pending availability. This returns `Some` for any paras, assigned to occupied cores in `availability_cores` and `None` otherwise.
|
|
400
413
|
**/
|
|
401
|
-
candidatePendingAvailability: AugmentedCall<ApiType, (
|
|
414
|
+
candidatePendingAvailability: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV7CommittedCandidateReceipt>>>;
|
|
415
|
+
/**
|
|
416
|
+
* Elastic scaling support
|
|
417
|
+
**/
|
|
418
|
+
candidatesPendingAvailability: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array) => Observable<Vec<PolkadotPrimitivesV7CommittedCandidateReceipt>>>;
|
|
402
419
|
/**
|
|
403
420
|
* Checks if the given validation outputs pass the acceptance criteria.
|
|
404
421
|
**/
|
|
405
|
-
checkValidationOutputs: AugmentedCall<ApiType, (
|
|
422
|
+
checkValidationOutputs: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array, outputs: PolkadotPrimitivesV7CandidateCommitments | {
|
|
406
423
|
upwardMessages?: any;
|
|
407
424
|
horizontalMessages?: any;
|
|
408
425
|
newValidationCode?: any;
|
|
@@ -413,118 +430,118 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
413
430
|
/**
|
|
414
431
|
* Claim queue
|
|
415
432
|
**/
|
|
416
|
-
claimQueue: AugmentedCall<ApiType, () => Observable<BTreeMap<
|
|
433
|
+
claimQueue: AugmentedCall<ApiType, () => Observable<BTreeMap<u32, Vec<u32>>>>;
|
|
417
434
|
/**
|
|
418
|
-
* Returns a list of all disabled validators at the given block
|
|
435
|
+
* Returns a list of all disabled validators at the given block.
|
|
419
436
|
**/
|
|
420
|
-
disabledValidators: AugmentedCall<ApiType, () => Observable<
|
|
437
|
+
disabledValidators: AugmentedCall<ApiType, () => Observable<Vec<u32>>>;
|
|
421
438
|
/**
|
|
422
439
|
* Returns all onchain disputes.
|
|
423
440
|
**/
|
|
424
|
-
disputes: AugmentedCall<ApiType, () => Observable<Vec<ITuple<[
|
|
441
|
+
disputes: AugmentedCall<ApiType, () => Observable<Vec<ITuple<[u32, H256, PolkadotPrimitivesV7DisputeState]>>>>;
|
|
425
442
|
/**
|
|
426
443
|
* Get all the pending inbound messages in the downward message queue for a para.
|
|
427
444
|
**/
|
|
428
|
-
dmqContents: AugmentedCall<ApiType, (
|
|
445
|
+
dmqContents: AugmentedCall<ApiType, (recipient: ParaId | AnyNumber | Uint8Array) => Observable<Vec<PolkadotCorePrimitivesInboundDownwardMessage>>>;
|
|
429
446
|
/**
|
|
430
|
-
* Get the contents of all channels addressed to the given recipient.
|
|
447
|
+
* Get the contents of all channels addressed to the given recipient. Channels that have no, messages in them are also included.
|
|
431
448
|
**/
|
|
432
|
-
inboundHrmpChannelsContents: AugmentedCall<ApiType, (
|
|
449
|
+
inboundHrmpChannelsContents: AugmentedCall<ApiType, (recipient: ParaId | AnyNumber | Uint8Array) => Observable<BTreeMap<u32, Vec<PolkadotCorePrimitivesInboundHrmpMessage>>>>;
|
|
433
450
|
/**
|
|
434
|
-
* Returns a merkle proof of a validator session key
|
|
451
|
+
* Returns a merkle proof of a validator session key., NOTE: This function is only available since parachain host version 5.
|
|
435
452
|
**/
|
|
436
|
-
keyOwnershipProof: AugmentedCall<ApiType, (
|
|
453
|
+
keyOwnershipProof: AugmentedCall<ApiType, (validator_id: PolkadotPrimitivesV7ValidatorAppPublic | string | Uint8Array) => Observable<Option<Bytes>>>;
|
|
437
454
|
/**
|
|
438
|
-
* Get the minimum number of backing votes for a parachain candidate
|
|
455
|
+
* Get the minimum number of backing votes for a parachain candidate., This is a staging method! Do not use on production runtimes!
|
|
439
456
|
**/
|
|
440
457
|
minimumBackingVotes: AugmentedCall<ApiType, () => Observable<u32>>;
|
|
441
458
|
/**
|
|
442
|
-
* Get node features
|
|
459
|
+
* Get node features., This is a staging method! Do not use on production runtimes!
|
|
443
460
|
**/
|
|
444
|
-
nodeFeatures: AugmentedCall<ApiType, () => Observable<
|
|
461
|
+
nodeFeatures: AugmentedCall<ApiType, () => Observable<BitVec>>;
|
|
445
462
|
/**
|
|
446
463
|
* Scrape dispute relevant from on-chain, backing votes and resolved disputes.
|
|
447
464
|
**/
|
|
448
|
-
onChainVotes: AugmentedCall<ApiType, () => Observable<Option<
|
|
465
|
+
onChainVotes: AugmentedCall<ApiType, () => Observable<Option<PolkadotPrimitivesV7ScrapedOnChainVotes>>>;
|
|
449
466
|
/**
|
|
450
|
-
* Returns the state of parachain backing for a given para
|
|
467
|
+
* Returns the state of parachain backing for a given para.
|
|
451
468
|
**/
|
|
452
|
-
paraBackingState: AugmentedCall<ApiType, (
|
|
469
|
+
paraBackingState: AugmentedCall<ApiType, (_: ParaId | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV7AsyncBackingBackingState>>>;
|
|
453
470
|
/**
|
|
454
|
-
* Yields the persisted validation data for the given `ParaId` along with an assumption that should be used if the para currently occupies a core.
|
|
471
|
+
* Yields the persisted validation data for the given `ParaId` along with an assumption that, should be used if the para currently occupies a core.,, Returns `None` if either the para is not registered or the assumption is `Freed`, and the para already occupies a core.
|
|
455
472
|
**/
|
|
456
|
-
persistedValidationData: AugmentedCall<ApiType, (
|
|
473
|
+
persistedValidationData: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array, assumption: PolkadotPrimitivesV7OccupiedCoreAssumption | 'Included' | 'TimedOut' | 'Free' | number | Uint8Array) => Observable<Option<PolkadotPrimitivesV7PersistedValidationData>>>;
|
|
457
474
|
/**
|
|
458
|
-
* Returns code hashes of PVFs that require pre-checking by validators in the active set.
|
|
475
|
+
* Returns code hashes of PVFs that require pre-checking by validators in the active set.,, NOTE: This function is only available since parachain host version 2.
|
|
459
476
|
**/
|
|
460
|
-
pvfsRequirePrecheck: AugmentedCall<ApiType, () => Observable<Vec<
|
|
477
|
+
pvfsRequirePrecheck: AugmentedCall<ApiType, () => Observable<Vec<H256>>>;
|
|
461
478
|
/**
|
|
462
479
|
* Returns execution parameters for the session.
|
|
463
480
|
**/
|
|
464
|
-
sessionExecutorParams: AugmentedCall<ApiType, (
|
|
481
|
+
sessionExecutorParams: AugmentedCall<ApiType, (session_index: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV7ExecutorParams>>>;
|
|
465
482
|
/**
|
|
466
|
-
* Returns the session index expected at a child of the block
|
|
483
|
+
* Returns the session index expected at a child of the block.,, This can be used to instantiate a `SigningContext`.
|
|
467
484
|
**/
|
|
468
|
-
sessionIndexForChild: AugmentedCall<ApiType, () => Observable<
|
|
485
|
+
sessionIndexForChild: AugmentedCall<ApiType, () => Observable<u32>>;
|
|
469
486
|
/**
|
|
470
|
-
* Get the session info for the given session, if stored.
|
|
487
|
+
* Get the session info for the given session, if stored.,, NOTE: This function is only available since parachain host version 2.
|
|
471
488
|
**/
|
|
472
|
-
sessionInfo: AugmentedCall<ApiType, (index:
|
|
489
|
+
sessionInfo: AugmentedCall<ApiType, (index: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV7SessionInfo>>>;
|
|
473
490
|
/**
|
|
474
|
-
* Submits a PVF pre-checking statement into the transaction pool.
|
|
491
|
+
* Submits a PVF pre-checking statement into the transaction pool.,, NOTE: This function is only available since parachain host version 2.
|
|
475
492
|
**/
|
|
476
|
-
submitPvfCheckStatement: AugmentedCall<ApiType, (stmt:
|
|
493
|
+
submitPvfCheckStatement: AugmentedCall<ApiType, (stmt: PolkadotPrimitivesV7PvfCheckStatement | {
|
|
477
494
|
accept?: any;
|
|
478
495
|
subject?: any;
|
|
479
496
|
sessionIndex?: any;
|
|
480
497
|
validatorIndex?: any;
|
|
481
|
-
} | string | Uint8Array, signature:
|
|
498
|
+
} | string | Uint8Array, signature: PolkadotPrimitivesV7ValidatorAppSignature | string | Uint8Array) => Observable<Null>>;
|
|
482
499
|
/**
|
|
483
|
-
* Submit an unsigned extrinsic to slash validators who lost a dispute about a candidate of a past session
|
|
500
|
+
* Submit an unsigned extrinsic to slash validators who lost a dispute about, a candidate of a past session., NOTE: This function is only available since parachain host version 5.
|
|
484
501
|
**/
|
|
485
|
-
submitReportDisputeLost: AugmentedCall<ApiType, (
|
|
502
|
+
submitReportDisputeLost: AugmentedCall<ApiType, (dispute_proof: PolkadotPrimitivesV7SlashingDisputeProof | {
|
|
486
503
|
timeSlot?: any;
|
|
487
504
|
kind?: any;
|
|
488
505
|
validatorIndex?: any;
|
|
489
506
|
validatorId?: any;
|
|
490
|
-
} | string | Uint8Array,
|
|
507
|
+
} | string | Uint8Array, key_ownership_proof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
|
|
491
508
|
/**
|
|
492
|
-
* Returns a list of validators that lost a past session dispute and need to be slashed
|
|
509
|
+
* Returns a list of validators that lost a past session dispute and need to be slashed., NOTE: This function is only available since parachain host version 5.
|
|
493
510
|
**/
|
|
494
|
-
unappliedSlashes: AugmentedCall<ApiType, () => Observable<Vec<ITuple<[
|
|
511
|
+
unappliedSlashes: AugmentedCall<ApiType, () => Observable<Vec<ITuple<[u32, H256, PolkadotPrimitivesV7SlashingPendingSlashes]>>>>;
|
|
495
512
|
/**
|
|
496
|
-
* Fetch the validation code used by a para, making the given `OccupiedCoreAssumption
|
|
513
|
+
* Fetch the validation code used by a para, making the given `OccupiedCoreAssumption`.,, Returns `None` if either the para is not registered or the assumption is `Freed`, and the para already occupies a core.
|
|
497
514
|
**/
|
|
498
|
-
validationCode: AugmentedCall<ApiType, (
|
|
515
|
+
validationCode: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array, assumption: PolkadotPrimitivesV7OccupiedCoreAssumption | 'Included' | 'TimedOut' | 'Free' | number | Uint8Array) => Observable<Option<Bytes>>>;
|
|
499
516
|
/**
|
|
500
517
|
* Get the validation code from its hash.
|
|
501
518
|
**/
|
|
502
|
-
validationCodeByHash: AugmentedCall<ApiType, (hash: ValidationCodeHash | string | Uint8Array) => Observable<Option<
|
|
519
|
+
validationCodeByHash: AugmentedCall<ApiType, (hash: ValidationCodeHash | string | Uint8Array) => Observable<Option<Bytes>>>;
|
|
503
520
|
/**
|
|
504
|
-
* Fetch the hash of the validation code used by a para, making the given `OccupiedCoreAssumption
|
|
521
|
+
* Fetch the hash of the validation code used by a para, making the given `OccupiedCoreAssumption`.,, NOTE: This function is only available since parachain host version 2.
|
|
505
522
|
**/
|
|
506
|
-
validationCodeHash: AugmentedCall<ApiType, (
|
|
523
|
+
validationCodeHash: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array, assumption: PolkadotPrimitivesV7OccupiedCoreAssumption | 'Included' | 'TimedOut' | 'Free' | number | Uint8Array) => Observable<Option<H256>>>;
|
|
507
524
|
/**
|
|
508
|
-
* Returns the validator groups and rotation info localized based on the hypothetical child
|
|
525
|
+
* Returns the validator groups and rotation info localized based on the hypothetical child, of a block whose state this is invoked on. Note that `now` in the `GroupRotationInfo`, should be the successor of the number of the block.
|
|
509
526
|
**/
|
|
510
|
-
validatorGroups: AugmentedCall<ApiType, () => Observable<ITuple<[Vec<Vec<
|
|
527
|
+
validatorGroups: AugmentedCall<ApiType, () => Observable<ITuple<[Vec<Vec<u32>>, PolkadotPrimitivesV7GroupRotationInfo]>>>;
|
|
511
528
|
/**
|
|
512
529
|
* Get the current validators.
|
|
513
530
|
**/
|
|
514
|
-
validators: AugmentedCall<ApiType, () => Observable<Vec<
|
|
531
|
+
validators: AugmentedCall<ApiType, () => Observable<Vec<PolkadotPrimitivesV7ValidatorAppPublic>>>;
|
|
515
532
|
/**
|
|
516
533
|
* Generic call
|
|
517
534
|
**/
|
|
518
535
|
[key: string]: DecoratedCallBase<ApiType>;
|
|
519
536
|
};
|
|
520
|
-
/** 0xab3c0572291feb8b/
|
|
537
|
+
/** 0xab3c0572291feb8b/ */
|
|
521
538
|
sessionKeys: {
|
|
522
539
|
/**
|
|
523
|
-
* Decode the given public session keys.
|
|
540
|
+
* Decode the given public session keys.,, Returns the list of public raw public keys + key type.
|
|
524
541
|
**/
|
|
525
|
-
decodeSessionKeys: AugmentedCall<ApiType, (encoded: Bytes | string | Uint8Array) => Observable<Option<Vec<ITuple<[Bytes,
|
|
542
|
+
decodeSessionKeys: AugmentedCall<ApiType, (encoded: Bytes | string | Uint8Array) => Observable<Option<Vec<ITuple<[Bytes, SpCoreCryptoKeyTypeId]>>>>>;
|
|
526
543
|
/**
|
|
527
|
-
* Generate a set of session keys with optionally using the given seed.
|
|
544
|
+
* Generate a set of session keys with optionally using the given seed., The keys should be stored within the keystore exposed via runtime, externalities.,, The seed needs to be a valid `utf8` string.,, Returns the concatenated SCALE encoded public keys.
|
|
528
545
|
**/
|
|
529
546
|
generateSessionKeys: AugmentedCall<ApiType, (seed: Option<Bytes> | null | Uint8Array | Bytes | string) => Observable<Bytes>>;
|
|
530
547
|
/**
|
|
@@ -532,99 +549,123 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
532
549
|
**/
|
|
533
550
|
[key: string]: DecoratedCallBase<ApiType>;
|
|
534
551
|
};
|
|
535
|
-
/** 0x18ef58a3b67ba770/
|
|
552
|
+
/** 0x18ef58a3b67ba770/ */
|
|
536
553
|
stakingApi: {
|
|
554
|
+
/**
|
|
555
|
+
* Returns the page count of exposures for a validator `account` in a given era.
|
|
556
|
+
**/
|
|
557
|
+
erasStakersPageCount: AugmentedCall<ApiType, (era: u32 | AnyNumber | Uint8Array, account: AccountId32 | string | Uint8Array) => Observable<u32>>;
|
|
537
558
|
/**
|
|
538
559
|
* Returns the nominations quota for a nominator with a given balance.
|
|
539
560
|
**/
|
|
540
|
-
nominationsQuota: AugmentedCall<ApiType, (balance:
|
|
561
|
+
nominationsQuota: AugmentedCall<ApiType, (balance: u128 | AnyNumber | Uint8Array) => Observable<u32>>;
|
|
562
|
+
/**
|
|
563
|
+
* Returns true if validator `account` has pages to be claimed for the given era.
|
|
564
|
+
**/
|
|
565
|
+
pendingRewards: AugmentedCall<ApiType, (era: u32 | AnyNumber | Uint8Array, account: AccountId32 | string | Uint8Array) => Observable<bool>>;
|
|
541
566
|
/**
|
|
542
567
|
* Generic call
|
|
543
568
|
**/
|
|
544
569
|
[key: string]: DecoratedCallBase<ApiType>;
|
|
545
570
|
};
|
|
546
|
-
/** 0xd2bc9897eed08f15/
|
|
571
|
+
/** 0xd2bc9897eed08f15/ */
|
|
547
572
|
taggedTransactionQueue: {
|
|
548
573
|
/**
|
|
549
|
-
* Validate the transaction.
|
|
574
|
+
* Validate the transaction.,, This method is invoked by the transaction pool to learn details about given transaction., The implementation should make sure to verify the correctness of the transaction, against current state. The given `block_hash` corresponds to the hash of the block, that is used as current state.,, Note that this call may be performed by the pool multiple times and transactions, might be verified in any possible order.
|
|
550
575
|
**/
|
|
551
|
-
validateTransaction: AugmentedCall<ApiType, (source:
|
|
576
|
+
validateTransaction: AugmentedCall<ApiType, (source: SpRuntimeTransactionValidityTransactionSource | 'InBlock' | 'Local' | 'External' | number | Uint8Array, tx: Extrinsic | IExtrinsic | string | Uint8Array, block_hash: H256 | string | Uint8Array) => Observable<Result<SpRuntimeTransactionValidityValidTransaction, SpRuntimeTransactionValidityTransactionValidityError>>>;
|
|
552
577
|
/**
|
|
553
578
|
* Generic call
|
|
554
579
|
**/
|
|
555
580
|
[key: string]: DecoratedCallBase<ApiType>;
|
|
556
581
|
};
|
|
557
|
-
/** 0x37c8bb1350a9a2a8/
|
|
582
|
+
/** 0x37c8bb1350a9a2a8/ */
|
|
558
583
|
transactionPaymentApi: {
|
|
559
584
|
/**
|
|
560
|
-
*
|
|
585
|
+
*
|
|
561
586
|
**/
|
|
562
|
-
queryFeeDetails: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<
|
|
587
|
+
queryFeeDetails: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<PalletTransactionPaymentFeeDetails>>;
|
|
563
588
|
/**
|
|
564
|
-
*
|
|
589
|
+
*
|
|
565
590
|
**/
|
|
566
|
-
queryInfo: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<
|
|
591
|
+
queryInfo: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<PalletTransactionPaymentRuntimeDispatchInfo>>;
|
|
567
592
|
/**
|
|
568
|
-
*
|
|
593
|
+
*
|
|
569
594
|
**/
|
|
570
|
-
queryLengthToFee: AugmentedCall<ApiType, (length: u32 | AnyNumber | Uint8Array) => Observable<
|
|
595
|
+
queryLengthToFee: AugmentedCall<ApiType, (length: u32 | AnyNumber | Uint8Array) => Observable<u128>>;
|
|
571
596
|
/**
|
|
572
|
-
*
|
|
597
|
+
*
|
|
573
598
|
**/
|
|
574
|
-
queryWeightToFee: AugmentedCall<ApiType, (weight:
|
|
599
|
+
queryWeightToFee: AugmentedCall<ApiType, (weight: SpWeightsWeightV2Weight | {
|
|
575
600
|
refTime?: any;
|
|
576
601
|
proofSize?: any;
|
|
577
|
-
} | string | Uint8Array) => Observable<
|
|
602
|
+
} | string | Uint8Array) => Observable<u128>>;
|
|
578
603
|
/**
|
|
579
604
|
* Generic call
|
|
580
605
|
**/
|
|
581
606
|
[key: string]: DecoratedCallBase<ApiType>;
|
|
582
607
|
};
|
|
583
|
-
/** 0xf3ff14d5ab527059/
|
|
608
|
+
/** 0xf3ff14d5ab527059/ */
|
|
584
609
|
transactionPaymentCallApi: {
|
|
585
610
|
/**
|
|
586
|
-
*
|
|
611
|
+
* Query fee details of a given encoded `Call`.
|
|
587
612
|
**/
|
|
588
|
-
queryCallFeeDetails: AugmentedCall<ApiType, (call:
|
|
613
|
+
queryCallFeeDetails: AugmentedCall<ApiType, (call: RuntimeCall | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<PalletTransactionPaymentFeeDetails>>;
|
|
589
614
|
/**
|
|
590
|
-
*
|
|
615
|
+
* Query information of a dispatch class, weight, and fee of a given encoded `Call`.
|
|
591
616
|
**/
|
|
592
|
-
queryCallInfo: AugmentedCall<ApiType, (call:
|
|
617
|
+
queryCallInfo: AugmentedCall<ApiType, (call: RuntimeCall | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<PalletTransactionPaymentRuntimeDispatchInfo>>;
|
|
593
618
|
/**
|
|
594
|
-
* Query the output of the current LengthToFee given some input
|
|
619
|
+
* Query the output of the current `LengthToFee` given some input.
|
|
595
620
|
**/
|
|
596
|
-
queryLengthToFee: AugmentedCall<ApiType, (length: u32 | AnyNumber | Uint8Array) => Observable<
|
|
621
|
+
queryLengthToFee: AugmentedCall<ApiType, (length: u32 | AnyNumber | Uint8Array) => Observable<u128>>;
|
|
597
622
|
/**
|
|
598
|
-
* Query the output of the current WeightToFee given some input
|
|
623
|
+
* Query the output of the current `WeightToFee` given some input.
|
|
599
624
|
**/
|
|
600
|
-
queryWeightToFee: AugmentedCall<ApiType, (weight:
|
|
625
|
+
queryWeightToFee: AugmentedCall<ApiType, (weight: SpWeightsWeightV2Weight | {
|
|
601
626
|
refTime?: any;
|
|
602
627
|
proofSize?: any;
|
|
603
|
-
} | string | Uint8Array) => Observable<
|
|
628
|
+
} | string | Uint8Array) => Observable<u128>>;
|
|
604
629
|
/**
|
|
605
630
|
* Generic call
|
|
606
631
|
**/
|
|
607
632
|
[key: string]: DecoratedCallBase<ApiType>;
|
|
608
633
|
};
|
|
609
|
-
/** 0x6ff52ee858e6c5bd/
|
|
634
|
+
/** 0x6ff52ee858e6c5bd/ */
|
|
610
635
|
xcmPaymentApi: {
|
|
611
636
|
/**
|
|
612
|
-
*
|
|
637
|
+
* Returns a list of acceptable payment assets.,, # Arguments,, * `xcm_version`: Version.
|
|
613
638
|
**/
|
|
614
|
-
queryAcceptablePaymentAssets: AugmentedCall<ApiType, (
|
|
639
|
+
queryAcceptablePaymentAssets: AugmentedCall<ApiType, (xcm_version: u32 | AnyNumber | Uint8Array) => Observable<Result<Vec<XcmVersionedAssetId>, XcmRuntimeApisFeesError>>>;
|
|
615
640
|
/**
|
|
616
|
-
*
|
|
641
|
+
* Get delivery fees for sending a specific `message` to a `destination`., These always come in a specific asset, defined by the chain.,, # Arguments, * `message`: The message that'll be sent, necessary because most delivery fees are based on the, size of the message., * `destination`: The destination to send the message to. Different destinations may use, different senders that charge different fees.
|
|
642
|
+
**/
|
|
643
|
+
queryDeliveryFees: AugmentedCall<ApiType, (destination: XcmVersionedLocation | {
|
|
644
|
+
V2: any;
|
|
645
|
+
} | {
|
|
646
|
+
V3: any;
|
|
647
|
+
} | {
|
|
648
|
+
V4: any;
|
|
649
|
+
} | string | Uint8Array, message: XcmVersionedXcm | {
|
|
650
|
+
V2: any;
|
|
651
|
+
} | {
|
|
652
|
+
V3: any;
|
|
653
|
+
} | {
|
|
654
|
+
V4: any;
|
|
655
|
+
} | string | Uint8Array) => Observable<Result<XcmVersionedAssets, XcmRuntimeApisFeesError>>>;
|
|
656
|
+
/**
|
|
657
|
+
* Converts a weight into a fee for the specified `AssetId`.,, # Arguments,, * `weight`: convertible `Weight`., * `asset`: `VersionedAssetId`.
|
|
617
658
|
**/
|
|
618
|
-
queryWeightToAssetFee: AugmentedCall<ApiType, (weight:
|
|
659
|
+
queryWeightToAssetFee: AugmentedCall<ApiType, (weight: SpWeightsWeightV2Weight | {
|
|
619
660
|
refTime?: any;
|
|
620
661
|
proofSize?: any;
|
|
621
662
|
} | string | Uint8Array, asset: XcmVersionedAssetId | {
|
|
622
663
|
V3: any;
|
|
623
664
|
} | {
|
|
624
665
|
V4: any;
|
|
625
|
-
} | string | Uint8Array) => Observable<Result<u128,
|
|
666
|
+
} | string | Uint8Array) => Observable<Result<u128, XcmRuntimeApisFeesError>>>;
|
|
626
667
|
/**
|
|
627
|
-
*
|
|
668
|
+
* Returns a weight needed to execute a XCM.,, # Arguments,, * `message`: `VersionedXcm`.
|
|
628
669
|
**/
|
|
629
670
|
queryXcmWeight: AugmentedCall<ApiType, (message: XcmVersionedXcm | {
|
|
630
671
|
V2: any;
|
|
@@ -632,7 +673,7 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
632
673
|
V3: any;
|
|
633
674
|
} | {
|
|
634
675
|
V4: any;
|
|
635
|
-
} | string | Uint8Array) => Observable<Result<
|
|
676
|
+
} | string | Uint8Array) => Observable<Result<SpWeightsWeightV2Weight, XcmRuntimeApisFeesError>>>;
|
|
636
677
|
/**
|
|
637
678
|
* Generic call
|
|
638
679
|
**/
|