Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8efc552b9b | ||
|
|
2b3d40a29b | ||
|
|
d91d29cff5 | ||
|
|
17fa8fa120 | ||
|
|
cecd43305e | ||
|
|
9501da9e25 | ||
|
|
9becdced12 | ||
|
|
262372666c | ||
|
|
83907f79fe | ||
|
|
abce780033 | ||
|
|
a6b23ca635 | ||
|
|
508439ce59 | ||
|
|
64e30dd0a7 | ||
|
|
33fd56a61d | ||
|
|
4ec2c32854 | ||
|
|
3ca93ee283 | ||
|
|
7cf36bbf68 | ||
|
|
da100e80f2 | ||
|
|
9d9a99e71e | ||
|
|
6ce045c9a1 | ||
|
|
5c0fe9b34b | ||
|
|
f9acee5c5f | ||
|
|
91afebc020 | ||
|
|
0e95f51e94 | ||
|
|
67e8232718 | ||
|
|
72719ff3a2 | ||
|
|
585bedb996 | ||
|
|
bc199956f3 | ||
|
|
1772458304 | ||
|
|
e75272e15b | ||
|
|
85473c9912 | ||
|
|
a3e1499f20 | ||
|
|
127122990e | ||
|
|
3dfe19c601 | ||
|
|
c054f96c80 | ||
|
|
11c1b998be | ||
|
|
fdebf8b74b | ||
|
|
7c91ee5ccc | ||
|
|
c146727510 | ||
|
|
096da21c76 | ||
|
|
d3c16b5cb4 |
@@ -14,10 +14,12 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 'lts/*'
|
||||
# This will default to using v20 so that CI will pass.
|
||||
# ref: https://github.com/polkadot-js/api/issues/6017
|
||||
node-version: 'lts/iron'
|
||||
- uses: denoland/setup-deno@v1
|
||||
with:
|
||||
deno-version: vx.x.x
|
||||
deno-version: v1.42.x
|
||||
- name: ${{ matrix.step }}
|
||||
if: always()
|
||||
run: |
|
||||
|
||||
@@ -24,7 +24,9 @@ jobs:
|
||||
token: ${{ secrets.GH_PAT_BOT }}
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 'lts/*'
|
||||
# This will default to using v20 so that CI will pass.
|
||||
# ref: https://github.com/polkadot-js/api/issues/6017
|
||||
node-version: 'lts/iron'
|
||||
- name: ${{ matrix.step }}
|
||||
run: |
|
||||
yarn install --immutable
|
||||
|
||||
+364
-355
File diff suppressed because one or more lines are too long
+1
-1
@@ -12,4 +12,4 @@ logFilters:
|
||||
|
||||
nodeLinker: node-modules
|
||||
|
||||
yarnPath: .yarn/releases/yarn-4.5.0.cjs
|
||||
yarnPath: .yarn/releases/yarn-4.5.1.cjs
|
||||
|
||||
@@ -1,5 +1,58 @@
|
||||
# CHANGELOG
|
||||
|
||||
## 14.2.3 Nov 5, 2024
|
||||
|
||||
Changes:
|
||||
|
||||
- Increase RPC-CORE default cache capacity ([#6016](https://github.com/polkadot-js/api/pull/6016))
|
||||
- Set CI to use Node.js Iron (v20) ([#6018](https://github.com/polkadot-js/api/pull/6018))
|
||||
|
||||
|
||||
## 14.2.2 Oct 31, 2024
|
||||
|
||||
Changes:
|
||||
|
||||
- fix: update LRUcache to not keep thread ([#6013](https://github.com/polkadot-js/api/pull/6013))
|
||||
- Adjust `api.derive.staking.nextElected` to use erasStakersOverview ([#6011](https://github.com/polkadot-js/api/pull/6011))
|
||||
|
||||
|
||||
## 14.2.1 Oct 28, 2024
|
||||
|
||||
Changes:
|
||||
|
||||
- Add isClaimed field to api.derive.staking._stakerRewards ([#6007](https://github.com/polkadot-js/api/pull/6007))
|
||||
- Upgrade polkadot/common to 13.1.2 ([#6008](https://github.com/polkadot-js/api/pull/6008))
|
||||
- Bump yarn to 4.5.1 ([#6005](https://github.com/polkadot-js/api/pull/6005))
|
||||
|
||||
|
||||
## 14.1.1 Oct 21, 2024
|
||||
|
||||
Changes:
|
||||
|
||||
- Fix deno build in CI to version 1.42.x ([#5999](https://github.com/polkadot-js/api/pull/5999))
|
||||
- Add LRU TTL cache implementation ([#5997](https://github.com/polkadot-js/api/pull/5997))
|
||||
- This focuses on performance advancements and less memory usage
|
||||
- Update non-pjs deps ([#6000](https://github.com/polkadot-js/api/pull/6000))
|
||||
- Set static metadata to v15 and update typegen to generate runtime apis and use v15 metadata ([#5987](https://github.com/polkadot-js/api/pull/5987))
|
||||
- Additionally: This does update the static types to be inline with polkadot 1003003
|
||||
- Bump dev to 0.81.2 ([#6001](https://github.com/polkadot-js/api/pull/6001))
|
||||
- Allows for correct CJS targetting
|
||||
- Bump common to 13.2.1 ([#6002](https://github.com/polkadot-js/api/pull/6002))
|
||||
|
||||
|
||||
## 14.0.1 Oct 2, 2024
|
||||
|
||||
Changes:
|
||||
|
||||
- TransactionExtension, ExtrinsicV5
|
||||
- This is a very large feature that gives support for Extrinsic V5. This is not a breaking change, but because of the impact it has it is a Major bump.
|
||||
- This PR acts as a forward compatible feature that still focuses on v4, but allows for the use of v5 when:
|
||||
a: The metadata extrinsic version is set to 5
|
||||
b: The extrinsic version is set to 5 when manually constructing transactions.
|
||||
- The PR allows the decoding of all v4, and v5 extrinsics including {bare, signed, general} transactions.
|
||||
- Address parsing issues for H160 accounts in api.derive.accounts.{*} ([#5991](https://github.com/polkadot-js/api/pull/5991))
|
||||
|
||||
|
||||
## 13.2.1 Sep 23, 2024
|
||||
|
||||
Changes:
|
||||
|
||||
+4
-1
@@ -1,5 +1,5 @@
|
||||
3512 Jaco Bump deps (#5785)
|
||||
106 Tarik Gul 13.2.1 (#5989)
|
||||
124 Tarik Gul 14.2.3 (#6019)
|
||||
83 Amaury Martiny StatementKind: Regular and Saft (#2303)
|
||||
37 Keith Ingram Update contract types and rpc (#4541)
|
||||
35 Stefanie Doll Updated child storage parameters (#1709)
|
||||
@@ -66,6 +66,7 @@
|
||||
1 Dan Forbes Add WeightToFeeCoefficient type (#2296)
|
||||
1 Daniel Maricic Fixed typo in README (#2402)
|
||||
1 Daniel Savu fix: Generate custom type definitions (#4224)
|
||||
1 Daria choosing AccountId20 type if the address is 20 bytes (#5991)
|
||||
1 David Don't log full error (#2952)
|
||||
1 David Duong Avoid reserved words during named enum fields augmentation (#5203)
|
||||
1 Denis Tsai realign AccountKey20Junction to polkadot xcm's Junction enum (#3770)
|
||||
@@ -74,6 +75,8 @@
|
||||
1 Drew Stone Update evm definitions to include vicinity (#2279)
|
||||
1 Dylan Galea Updated users of the polkadot-js/api (#2027)
|
||||
1 Ermal Kaleci fix cache key (rpc-provider) (#5745)
|
||||
1 filvecchiato Add lru ttl cache implementation (#5997)
|
||||
1 filvecchiato fix: update LRUcache to not keep thread (#6013)
|
||||
1 flex Change BeefySignedCommitment signatures type to EcdsaSignature (#4204)
|
||||
1 Florian Franzen metadataMd: use endpoint for rpc and runtime details too (#5628)
|
||||
1 Francis O'Brien fix: Re-subscribe to chain updates on reconnection if not a clone (#5794)
|
||||
|
||||
+6
-6
@@ -6,7 +6,7 @@
|
||||
},
|
||||
"homepage": "https://github.com/polkadot-js/api#readme",
|
||||
"license": "Apache-2.0",
|
||||
"packageManager": "yarn@4.5.0",
|
||||
"packageManager": "yarn@4.5.1",
|
||||
"private": true,
|
||||
"repository": {
|
||||
"type": "git",
|
||||
@@ -14,10 +14,10 @@
|
||||
},
|
||||
"sideEffects": false,
|
||||
"type": "module",
|
||||
"version": "13.2.1",
|
||||
"version": "14.2.3",
|
||||
"versions": {
|
||||
"git": "13.2.1",
|
||||
"npm": "13.2.1"
|
||||
"git": "14.2.3",
|
||||
"npm": "14.2.3"
|
||||
},
|
||||
"workspaces": [
|
||||
"packages/*"
|
||||
@@ -40,9 +40,9 @@
|
||||
"test:one": "polkadot-dev-run-test --env node"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/dev": "^0.80.1",
|
||||
"@polkadot/dev": "^0.81.2",
|
||||
"@polkadot/typegen": "workspace:packages/typegen",
|
||||
"@types/node": "^20.15.0"
|
||||
"@types/node": "^22.7.5"
|
||||
},
|
||||
"resolutions": {
|
||||
"typescript": "^5.5.4"
|
||||
|
||||
@@ -18,15 +18,15 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "13.2.1",
|
||||
"version": "14.2.3",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/api-base": "13.2.1",
|
||||
"@polkadot/rpc-augment": "13.2.1",
|
||||
"@polkadot/types": "13.2.1",
|
||||
"@polkadot/types-augment": "13.2.1",
|
||||
"@polkadot/types-codec": "13.2.1",
|
||||
"@polkadot/util": "^13.1.1",
|
||||
"tslib": "^2.7.0"
|
||||
"@polkadot/api-base": "14.2.3",
|
||||
"@polkadot/rpc-augment": "14.2.3",
|
||||
"@polkadot/types": "14.2.3",
|
||||
"@polkadot/types-augment": "14.2.3",
|
||||
"@polkadot/types-codec": "14.2.3",
|
||||
"@polkadot/util": "^13.2.2",
|
||||
"tslib": "^2.8.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,32 +6,14 @@
|
||||
import '@polkadot/api-base/types/calls';
|
||||
|
||||
import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-base/types';
|
||||
import type { BTreeMap, Bytes, Null, Option, Result, U64, Vec, bool, u128, u32 } from '@polkadot/types-codec';
|
||||
import type { BTreeMap, BitVec, Bytes, Null, Option, Result, Text, Vec, bool, u128, u32, u64 } from '@polkadot/types-codec';
|
||||
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
||||
import type { BabeEquivocationProof, BabeGenesisConfiguration, Epoch, OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
|
||||
import type { BeefyAuthoritySet, BeefyEquivocationProof, BeefyNextAuthoritySet, ValidatorSet, ValidatorSetId } from '@polkadot/types/interfaces/beefy';
|
||||
import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfaces/blockbuilder';
|
||||
import type { BlockHash } from '@polkadot/types/interfaces/chain';
|
||||
import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
|
||||
import type { CallDryRunEffects, XcmDryRunApiError, XcmDryRunEffects } from '@polkadot/types/interfaces/dryRunApi';
|
||||
import type { OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
|
||||
import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
|
||||
import type { GenesisBuildErr } from '@polkadot/types/interfaces/genesisBuilder';
|
||||
import type { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/types/interfaces/grandpa';
|
||||
import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
|
||||
import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError } from '@polkadot/types/interfaces/mmr';
|
||||
import type { NpPoolId } from '@polkadot/types/interfaces/nompools';
|
||||
import type { ApprovalVotingParams, AsyncBackingParams, BackingState, CandidateCommitments, CandidateEvent, CandidateHash, CommittedCandidateReceipt, CoreIndex, CoreState, DisputeProof, DisputeState, ExecutorParams, GroupRotationInfo, InboundDownwardMessage, InboundHrmpMessage, NodeFeatures, OccupiedCoreAssumption, ParaId, ParaValidatorIndex, PendingSlashes, PersistedValidationData, PvfCheckStatement, ScrapedOnChainVotes, SessionInfo, ValidationCode, ValidationCodeHash, ValidatorSignature } from '@polkadot/types/interfaces/parachains';
|
||||
import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
|
||||
import type { AccountId, Balance, Block, BlockNumber, Call, ExtrinsicInclusionMode, Hash, Header, Index, KeyTypeId, OriginCaller, RuntimeCall, Slot, ValidatorId, Weight, WeightV2 } from '@polkadot/types/interfaces/runtime';
|
||||
import type { SessionIndex } from '@polkadot/types/interfaces/session';
|
||||
import type { ValidatorIndex } from '@polkadot/types/interfaces/staking';
|
||||
import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
|
||||
import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system';
|
||||
import type { TransactionSource, TransactionValidity } from '@polkadot/types/interfaces/txqueue';
|
||||
import type { VersionedMultiLocation, VersionedXcm } from '@polkadot/types/interfaces/xcm';
|
||||
import type { XcmPaymentApiError } from '@polkadot/types/interfaces/xcmPaymentApi';
|
||||
import type { Error } from '@polkadot/types/interfaces/xcmRuntimeApi';
|
||||
import type { XcmVersionedAssetId, XcmVersionedLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
|
||||
import type { ParaId, ValidationCodeHash } from '@polkadot/types/interfaces/parachains';
|
||||
import type { AccountId32, H256, RuntimeCall, Slot } from '@polkadot/types/interfaces/runtime';
|
||||
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';
|
||||
import type { IExtrinsic, Observable } from '@polkadot/types/types';
|
||||
|
||||
export type __AugmentedCall<ApiType extends ApiTypes> = AugmentedCall<ApiType>;
|
||||
@@ -39,215 +21,230 @@ export type __DecoratedCallBase<ApiType extends ApiTypes> = DecoratedCallBase<Ap
|
||||
|
||||
declare module '@polkadot/api-base/types/calls' {
|
||||
interface AugmentedCalls<ApiType extends ApiTypes> {
|
||||
/** 0xbc9d89904f5b923f/1 */
|
||||
/** 0xbc9d89904f5b923f/ */
|
||||
accountNonceApi: {
|
||||
/**
|
||||
* The API to query account nonce (aka transaction index)
|
||||
* Get current account nonce of given `AccountId`.
|
||||
**/
|
||||
accountNonce: AugmentedCall<ApiType, (accountId: AccountId | string | Uint8Array) => Observable<Index>>;
|
||||
accountNonce: AugmentedCall<ApiType, (account: AccountId32 | string | Uint8Array) => Observable<u32>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x687ad44ad37f03c2/1 */
|
||||
/** 0x687ad44ad37f03c2/ */
|
||||
authorityDiscoveryApi: {
|
||||
/**
|
||||
* Retrieve authority identifiers of the current and next authority set.
|
||||
**/
|
||||
authorities: AugmentedCall<ApiType, () => Observable<Vec<AuthorityId>>>;
|
||||
authorities: AugmentedCall<ApiType, () => Observable<Vec<SpAuthorityDiscoveryAppPublic>>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0xcbca25e39f142387/2 */
|
||||
/** 0xcbca25e39f142387/ */
|
||||
babeApi: {
|
||||
/**
|
||||
* Return the genesis configuration for BABE. The configuration is only read on genesis.
|
||||
* Return the configuration for BABE.
|
||||
**/
|
||||
configuration: AugmentedCall<ApiType, () => Observable<BabeGenesisConfiguration>>;
|
||||
configuration: AugmentedCall<ApiType, () => Observable<SpConsensusBabeBabeConfiguration>>;
|
||||
/**
|
||||
* Returns information regarding the current epoch.
|
||||
**/
|
||||
currentEpoch: AugmentedCall<ApiType, () => Observable<Epoch>>;
|
||||
currentEpoch: AugmentedCall<ApiType, () => Observable<SpConsensusBabeEpoch>>;
|
||||
/**
|
||||
* Returns the slot that started the current epoch.
|
||||
**/
|
||||
currentEpochStart: AugmentedCall<ApiType, () => Observable<Slot>>;
|
||||
/**
|
||||
* Generates a proof of key ownership for the given authority in the current epoch.
|
||||
* 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.
|
||||
**/
|
||||
generateKeyOwnershipProof: AugmentedCall<ApiType, (slot: Slot | AnyNumber | Uint8Array, authorityId: AuthorityId | string | Uint8Array) => Observable<Option<OpaqueKeyOwnershipProof>>>;
|
||||
generateKeyOwnershipProof: AugmentedCall<ApiType, (slot: Slot | AnyNumber | Uint8Array, authority_id: SpConsensusBabeAppPublic | string | Uint8Array) => Observable<Option<Bytes>>>;
|
||||
/**
|
||||
* Returns information regarding the next epoch (which was already previously announced).
|
||||
* Returns information regarding the next epoch (which was already, previously announced).
|
||||
**/
|
||||
nextEpoch: AugmentedCall<ApiType, () => Observable<Epoch>>;
|
||||
nextEpoch: AugmentedCall<ApiType, () => Observable<SpConsensusBabeEpoch>>;
|
||||
/**
|
||||
* Submits an unsigned extrinsic to report an equivocation.
|
||||
* 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.
|
||||
**/
|
||||
submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocationProof: BabeEquivocationProof | { offender?: any; slotNumber?: any; firstHeader?: any; secondHeader?: any } | string | Uint8Array, keyOwnerProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
|
||||
submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocation_proof: SpConsensusSlotsEquivocationProof | { offender?: any; slot?: any; firstHeader?: any; secondHeader?: any } | string | Uint8Array, key_owner_proof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x49eaaf1b548a0cb0/3 */
|
||||
/** 0x49eaaf1b548a0cb0/ */
|
||||
beefyApi: {
|
||||
/**
|
||||
* Return the block number where BEEFY consensus is enabled/started
|
||||
**/
|
||||
beefyGenesis: AugmentedCall<ApiType, () => Observable<Option<BlockNumber>>>;
|
||||
beefyGenesis: AugmentedCall<ApiType, () => Observable<Option<u32>>>;
|
||||
/**
|
||||
* Generates a proof of key ownership for the given authority in the given set.
|
||||
* 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.
|
||||
**/
|
||||
generateKeyOwnershipProof: AugmentedCall<ApiType, (setId: ValidatorSetId | AnyNumber | Uint8Array, authorityId: AuthorityId | string | Uint8Array) => Observable<Option<OpaqueKeyOwnershipProof>>>;
|
||||
generateKeyOwnershipProof: AugmentedCall<ApiType, (set_id: u64 | AnyNumber | Uint8Array, authority_id: SpConsensusBeefyEcdsaCryptoPublic | string | Uint8Array) => Observable<Option<Bytes>>>;
|
||||
/**
|
||||
* Submits an unsigned extrinsic to report an equivocation.
|
||||
* 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.
|
||||
**/
|
||||
submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocationProof: BeefyEquivocationProof | { first?: any; second?: any } | string | Uint8Array, keyOwnerProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
|
||||
submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocation_proof: SpConsensusBeefyDoubleVotingProof | { first?: any; second?: any } | string | Uint8Array, key_owner_proof: Bytes | string | Uint8Array) => Observable<Option<Null>>>;
|
||||
/**
|
||||
* Return the current active BEEFY validator set
|
||||
**/
|
||||
validatorSet: AugmentedCall<ApiType, () => Observable<Option<ValidatorSet>>>;
|
||||
validatorSet: AugmentedCall<ApiType, () => Observable<Option<SpConsensusBeefyValidatorSet>>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x2a5e924655399e60/1 */
|
||||
/** 0x2a5e924655399e60/ */
|
||||
beefyMmrApi: {
|
||||
/**
|
||||
* Return the currently active BEEFY authority set proof.
|
||||
**/
|
||||
authoritySetProof: AugmentedCall<ApiType, () => Observable<BeefyAuthoritySet>>;
|
||||
authoritySetProof: AugmentedCall<ApiType, () => Observable<SpConsensusBeefyMmrBeefyAuthoritySet>>;
|
||||
/**
|
||||
* Return the next/queued BEEFY authority set proof.
|
||||
**/
|
||||
nextAuthoritySetProof: AugmentedCall<ApiType, () => Observable<BeefyNextAuthoritySet>>;
|
||||
nextAuthoritySetProof: AugmentedCall<ApiType, () => Observable<SpConsensusBeefyMmrBeefyAuthoritySet>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x40fe3ad401f8959a/6 */
|
||||
/** 0x40fe3ad401f8959a/ */
|
||||
blockBuilder: {
|
||||
/**
|
||||
* Apply the given extrinsic.
|
||||
* Apply the given extrinsic.,, Returns an inclusion outcome which specifies if this extrinsic is included in, this block or not.
|
||||
**/
|
||||
applyExtrinsic: AugmentedCall<ApiType, (extrinsic: Extrinsic | IExtrinsic | string | Uint8Array) => Observable<ApplyExtrinsicResult>>;
|
||||
applyExtrinsic: AugmentedCall<ApiType, (extrinsic: Extrinsic | IExtrinsic | string | Uint8Array) => Observable<Result<Result<Null, SpRuntimeDispatchError>, SpRuntimeTransactionValidityTransactionValidityError>>>;
|
||||
/**
|
||||
* Check that the inherents are valid.
|
||||
* Check that the inherents are valid. The inherent data will vary from chain to chain.
|
||||
**/
|
||||
checkInherents: AugmentedCall<ApiType, (block: Block | { header?: any; extrinsics?: any } | string | Uint8Array, data: InherentData | { data?: any } | string | Uint8Array) => Observable<CheckInherentsResult>>;
|
||||
checkInherents: AugmentedCall<ApiType, (block: SpRuntimeBlock | { header?: any; extrinsics?: any } | string | Uint8Array, data: SpInherentsInherentData | { data?: any } | string | Uint8Array) => Observable<SpInherentsCheckInherentsResult>>;
|
||||
/**
|
||||
* Finish the current block.
|
||||
**/
|
||||
finalizeBlock: AugmentedCall<ApiType, () => Observable<Header>>;
|
||||
finalizeBlock: AugmentedCall<ApiType, () => Observable<SpRuntimeHeader>>;
|
||||
/**
|
||||
* Generate inherent extrinsics.
|
||||
* Generate inherent extrinsics. The inherent data will vary from chain to chain.
|
||||
**/
|
||||
inherentExtrinsics: AugmentedCall<ApiType, (inherent: InherentData | { data?: any } | string | Uint8Array) => Observable<Vec<Extrinsic>>>;
|
||||
inherentExtrinsics: AugmentedCall<ApiType, (inherent: SpInherentsInherentData | { data?: any } | string | Uint8Array) => Observable<Vec<Bytes>>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0xdf6acb689907609b/5 */
|
||||
/** 0xdf6acb689907609b/ */
|
||||
core: {
|
||||
/**
|
||||
* Execute the given block.
|
||||
**/
|
||||
executeBlock: AugmentedCall<ApiType, (block: Block | { header?: any; extrinsics?: any } | string | Uint8Array) => Observable<Null>>;
|
||||
executeBlock: AugmentedCall<ApiType, (block: SpRuntimeBlock | { header?: any; extrinsics?: any } | string | Uint8Array) => Observable<Null>>;
|
||||
/**
|
||||
* Initialize a block with the given header.
|
||||
* Initialize a block with the given header and return the runtime executive mode.
|
||||
**/
|
||||
initializeBlock: AugmentedCall<ApiType, (header: Header | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } | string | Uint8Array) => Observable<ExtrinsicInclusionMode>>;
|
||||
initializeBlock: AugmentedCall<ApiType, (header: SpRuntimeHeader | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } | string | Uint8Array) => Observable<SpRuntimeExtrinsicInclusionMode>>;
|
||||
/**
|
||||
* Returns the version of the runtime.
|
||||
**/
|
||||
version: AugmentedCall<ApiType, () => Observable<RuntimeVersion>>;
|
||||
version: AugmentedCall<ApiType, () => Observable<SpVersionRuntimeVersion>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x91b1c8b16328eb92/1 */
|
||||
/** 0x91b1c8b16328eb92/ */
|
||||
dryRunApi: {
|
||||
/**
|
||||
* Dry run call
|
||||
* Dry run call.
|
||||
**/
|
||||
dryRunCall: AugmentedCall<ApiType, (origin: OriginCaller | { System: any } | string | Uint8Array, call: RuntimeCall | IMethod | string | Uint8Array) => Observable<Result<CallDryRunEffects, XcmDryRunApiError>>>;
|
||||
dryRunCall: AugmentedCall<ApiType, (origin: StagingKusamaRuntimeOriginCaller | { system: any } | { Void: any } | { Origins: any } | { ParachainsOrigin: any } | { XcmPallet: any } | string | Uint8Array, call: RuntimeCall | IMethod | string | Uint8Array) => Observable<Result<XcmRuntimeApisDryRunCallDryRunEffects, XcmRuntimeApisDryRunError>>>;
|
||||
/**
|
||||
* Dry run XCM program
|
||||
**/
|
||||
dryRunXcm: AugmentedCall<ApiType, (originLocation: VersionedMultiLocation | { V0: any } | { V1: any } | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, xcm: VersionedXcm | { V0: any } | { V1: any } | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => Observable<Result<XcmDryRunEffects, XcmDryRunApiError>>>;
|
||||
dryRunXcm: AugmentedCall<ApiType, (origin_location: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, xcm: XcmVersionedXcm | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => Observable<Result<XcmRuntimeApisDryRunXcmDryRunEffects, XcmRuntimeApisDryRunError>>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0xfbc577b9d747efd6/1 */
|
||||
/** 0xfbc577b9d747efd6/ */
|
||||
genesisBuilder: {
|
||||
/**
|
||||
* Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the storage.
|
||||
* 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.
|
||||
**/
|
||||
buildConfig: AugmentedCall<ApiType, (json: Bytes | string | Uint8Array) => Observable<Result<ITuple<[]>, GenesisBuildErr>>>;
|
||||
buildState: AugmentedCall<ApiType, (json: Bytes | string | Uint8Array) => Observable<Result<Null, Text>>>;
|
||||
/**
|
||||
* Creates the default `RuntimeGenesisConfig` and returns it as a JSON blob.
|
||||
* 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.
|
||||
**/
|
||||
createDefaultConfig: AugmentedCall<ApiType, () => Observable<Bytes>>;
|
||||
getPreset: AugmentedCall<ApiType, (id: Option<Text> | null | Uint8Array | Text | string) => Observable<Option<Bytes>>>;
|
||||
/**
|
||||
* 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.
|
||||
**/
|
||||
presetNames: AugmentedCall<ApiType, () => Observable<Vec<Text>>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0xed99c5acb25eedf5/3 */
|
||||
/** 0xed99c5acb25eedf5/ */
|
||||
grandpaApi: {
|
||||
/**
|
||||
* Get current GRANDPA authority set id.
|
||||
**/
|
||||
currentSetId: AugmentedCall<ApiType, () => Observable<SetId>>;
|
||||
currentSetId: AugmentedCall<ApiType, () => Observable<u64>>;
|
||||
/**
|
||||
* Generates a proof of key ownership for the given authority in the given set.
|
||||
* 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.
|
||||
**/
|
||||
generateKeyOwnershipProof: AugmentedCall<ApiType, (setId: SetId | AnyNumber | Uint8Array, authorityId: AuthorityId | string | Uint8Array) => Observable<Option<OpaqueKeyOwnershipProof>>>;
|
||||
generateKeyOwnershipProof: AugmentedCall<ApiType, (set_id: u64 | AnyNumber | Uint8Array, authority_id: SpConsensusGrandpaAppPublic | string | Uint8Array) => Observable<Option<Bytes>>>;
|
||||
/**
|
||||
* Get the current GRANDPA authorities and weights. This should not change except for when changes are scheduled and the corresponding delay has passed.
|
||||
* 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.
|
||||
**/
|
||||
grandpaAuthorities: AugmentedCall<ApiType, () => Observable<AuthorityList>>;
|
||||
grandpaAuthorities: AugmentedCall<ApiType, () => Observable<Vec<ITuple<[SpConsensusGrandpaAppPublic, u64]>>>>;
|
||||
/**
|
||||
* Submits an unsigned extrinsic to report an equivocation.
|
||||
* 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.
|
||||
**/
|
||||
submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocationProof: GrandpaEquivocationProof | { setId?: any; equivocation?: any } | string | Uint8Array, keyOwnerProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
|
||||
submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocation_proof: SpConsensusGrandpaEquivocationProof | { setId?: any; equivocation?: any } | string | Uint8Array, key_owner_proof: Bytes | string | Uint8Array) => Observable<Option<Null>>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x9ffb505aa738d69c/1 */
|
||||
/** 0xc51ff1fa3f5d0cca/ */
|
||||
inflation: {
|
||||
/**
|
||||
* 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.
|
||||
**/
|
||||
experimentalInflationPredictionInfo: AugmentedCall<ApiType, () => Observable<RelayCommonApisInflationInfo>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x9ffb505aa738d69c/ */
|
||||
locationToAccountApi: {
|
||||
/**
|
||||
* Converts `Location` to `AccountId`
|
||||
* Converts `Location` to `AccountId`.
|
||||
**/
|
||||
convertLocation: AugmentedCall<ApiType, (location: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => Observable<Result<AccountId, Error>>>;
|
||||
convertLocation: AugmentedCall<ApiType, (location: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => Observable<Result<AccountId32, XcmRuntimeApisConversionsError>>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x37e397fc7c91f5e4/2 */
|
||||
/** 0x37e397fc7c91f5e4/ */
|
||||
metadata: {
|
||||
/**
|
||||
* Returns the metadata of a runtime
|
||||
* Returns the metadata of a runtime.
|
||||
**/
|
||||
metadata: AugmentedCall<ApiType, () => Observable<OpaqueMetadata>>;
|
||||
/**
|
||||
* Returns the metadata at a given version.
|
||||
* 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.
|
||||
**/
|
||||
metadataAtVersion: AugmentedCall<ApiType, (version: u32 | AnyNumber | Uint8Array) => Observable<Option<OpaqueMetadata>>>;
|
||||
/**
|
||||
* Returns the supported metadata versions.
|
||||
* Returns the supported metadata versions.,, This can be used to call `metadata_at_version`.
|
||||
**/
|
||||
metadataVersions: AugmentedCall<ApiType, () => Observable<Vec<u32>>>;
|
||||
/**
|
||||
@@ -255,198 +252,218 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x91d5df18b0d2cf58/2 */
|
||||
/** 0x91d5df18b0d2cf58/ */
|
||||
mmrApi: {
|
||||
/**
|
||||
* Generate MMR proof for the given block numbers.
|
||||
* 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.
|
||||
**/
|
||||
generateProof: AugmentedCall<ApiType, (blockNumbers: Vec<BlockNumber> | (BlockNumber | AnyNumber | Uint8Array)[], bestKnownBlockNumber: Option<BlockNumber> | null | Uint8Array | BlockNumber | AnyNumber) => Observable<Result<ITuple<[Vec<MmrEncodableOpaqueLeaf>, MmrBatchProof]>, MmrError>>>;
|
||||
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>>>;
|
||||
/**
|
||||
* Return the number of MMR blocks in the chain.
|
||||
**/
|
||||
mmrLeafCount: AugmentedCall<ApiType, () => Observable<Result<U64, MmrError>>>;
|
||||
mmrLeafCount: AugmentedCall<ApiType, () => Observable<Result<u64, SpMmrPrimitivesError>>>;
|
||||
/**
|
||||
* Return the on-chain MMR root hash.
|
||||
**/
|
||||
mmrRoot: AugmentedCall<ApiType, () => Observable<Result<Hash, MmrError>>>;
|
||||
mmrRoot: AugmentedCall<ApiType, () => Observable<Result<H256, SpMmrPrimitivesError>>>;
|
||||
/**
|
||||
* Verify MMR proof against on-chain MMR.
|
||||
* 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]
|
||||
**/
|
||||
verifyProof: AugmentedCall<ApiType, (leaves: Vec<MmrEncodableOpaqueLeaf> | (MmrEncodableOpaqueLeaf | string | Uint8Array)[], proof: MmrBatchProof | { leafIndices?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
|
||||
verifyProof: AugmentedCall<ApiType, (leaves: Vec<Bytes> | (Bytes | string | Uint8Array)[], proof: SpMmrPrimitivesLeafProof | { leafIndices?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<Null, SpMmrPrimitivesError>>>;
|
||||
/**
|
||||
* Verify MMR proof against given root hash.
|
||||
* 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]
|
||||
**/
|
||||
verifyProofStateless: AugmentedCall<ApiType, (root: Hash | string | Uint8Array, leaves: Vec<MmrEncodableOpaqueLeaf> | (MmrEncodableOpaqueLeaf | string | Uint8Array)[], proof: MmrBatchProof | { leafIndices?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
|
||||
verifyProofStateless: AugmentedCall<ApiType, (root: H256 | string | Uint8Array, leaves: Vec<Bytes> | (Bytes | string | Uint8Array)[], proof: SpMmrPrimitivesLeafProof | { leafIndices?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<Null, SpMmrPrimitivesError>>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x17a6bc0d0062aeb3/1 */
|
||||
/** 0x17a6bc0d0062aeb3/ */
|
||||
nominationPoolsApi: {
|
||||
/**
|
||||
* Returns the equivalent points of `new_funds` for a given pool.
|
||||
**/
|
||||
balanceToPoints: AugmentedCall<ApiType, (poolId: NpPoolId | AnyNumber | Uint8Array, newFunds: Balance | AnyNumber | Uint8Array) => Observable<Balance>>;
|
||||
balanceToPoints: AugmentedCall<ApiType, (pool_id: u32 | AnyNumber | Uint8Array, new_funds: u128 | AnyNumber | Uint8Array) => Observable<u128>>;
|
||||
/**
|
||||
* Returns the pending rewards for the given member.
|
||||
* 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.
|
||||
**/
|
||||
pendingRewards: AugmentedCall<ApiType, (member: AccountId | string | Uint8Array) => Observable<Balance>>;
|
||||
memberNeedsDelegateMigration: AugmentedCall<ApiType, (member: AccountId32 | string | Uint8Array) => Observable<bool>>;
|
||||
/**
|
||||
* Returns the pending slash for a given pool member.
|
||||
**/
|
||||
memberPendingSlash: AugmentedCall<ApiType, (member: AccountId32 | string | Uint8Array) => Observable<u128>>;
|
||||
/**
|
||||
* Returns the pending rewards for the member that the AccountId was given for.
|
||||
**/
|
||||
pendingRewards: AugmentedCall<ApiType, (who: AccountId32 | string | Uint8Array) => Observable<u128>>;
|
||||
/**
|
||||
* Returns the equivalent balance of `points` for a given pool.
|
||||
**/
|
||||
pointsToBalance: AugmentedCall<ApiType, (poolId: NpPoolId | AnyNumber | Uint8Array, points: Balance | AnyNumber | Uint8Array) => Observable<Balance>>;
|
||||
pointsToBalance: AugmentedCall<ApiType, (pool_id: u32 | AnyNumber | Uint8Array, points: u128 | AnyNumber | Uint8Array) => Observable<u128>>;
|
||||
/**
|
||||
* 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.
|
||||
**/
|
||||
poolNeedsDelegateMigration: AugmentedCall<ApiType, (pool_id: u32 | AnyNumber | Uint8Array) => Observable<bool>>;
|
||||
/**
|
||||
* Returns the pending slash for a given pool.
|
||||
**/
|
||||
poolPendingSlash: AugmentedCall<ApiType, (pool_id: u32 | AnyNumber | Uint8Array) => Observable<u128>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0xf78b278be53f454c/2 */
|
||||
/** 0xf78b278be53f454c/ */
|
||||
offchainWorkerApi: {
|
||||
/**
|
||||
* Starts the off-chain task for given block header.
|
||||
**/
|
||||
offchainWorker: AugmentedCall<ApiType, (header: Header | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } | string | Uint8Array) => Observable<Null>>;
|
||||
offchainWorker: AugmentedCall<ApiType, (header: SpRuntimeHeader | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } | string | Uint8Array) => Observable<Null>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0xaf2c0297a23e6d3d/11 */
|
||||
/** 0xaf2c0297a23e6d3d/ */
|
||||
parachainHost: {
|
||||
/**
|
||||
* Approval voting configuration parameters
|
||||
**/
|
||||
approvalVotingParams: AugmentedCall<ApiType, () => Observable<ApprovalVotingParams>>;
|
||||
approvalVotingParams: AugmentedCall<ApiType, () => Observable<PolkadotPrimitivesV7ApprovalVotingParams>>;
|
||||
/**
|
||||
* Returns the persisted validation data for the given `ParaId` along with the corresponding validation code hash.
|
||||
* 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.
|
||||
**/
|
||||
assumedValidationData: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, hash: Hash | string | Uint8Array) => Observable<Option<ITuple<[PersistedValidationData, ValidationCodeHash]>>>>;
|
||||
assumedValidationData: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array, expected_persisted_validation_data_hash: H256 | string | Uint8Array) => Observable<Option<ITuple<[PolkadotPrimitivesV7PersistedValidationData, H256]>>>>;
|
||||
/**
|
||||
* Returns candidate's acceptance limitations for asynchronous backing for a relay parent
|
||||
* Returns candidate's acceptance limitations for asynchronous backing for a relay parent.
|
||||
**/
|
||||
asyncBackingParams: AugmentedCall<ApiType, () => Observable<AsyncBackingParams>>;
|
||||
asyncBackingParams: AugmentedCall<ApiType, () => Observable<PolkadotPrimitivesV7AsyncBackingAsyncBackingParams>>;
|
||||
/**
|
||||
* Yields information on all availability cores as relevant to the child block.
|
||||
* 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.
|
||||
**/
|
||||
availabilityCores: AugmentedCall<ApiType, () => Observable<Vec<CoreState>>>;
|
||||
availabilityCores: AugmentedCall<ApiType, () => Observable<Vec<PolkadotPrimitivesV7CoreState>>>;
|
||||
/**
|
||||
* Get a vector of events concerning candidates that occurred within a block.
|
||||
**/
|
||||
candidateEvents: AugmentedCall<ApiType, () => Observable<Vec<CandidateEvent>>>;
|
||||
candidateEvents: AugmentedCall<ApiType, () => Observable<Vec<PolkadotPrimitivesV7CandidateEvent>>>;
|
||||
/**
|
||||
* Get the receipt of a candidate pending availability.
|
||||
* Get the receipt of a candidate pending availability. This returns `Some` for any paras, assigned to occupied cores in `availability_cores` and `None` otherwise.
|
||||
**/
|
||||
candidatePendingAvailability: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array) => Observable<Option<CommittedCandidateReceipt>>>;
|
||||
candidatePendingAvailability: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV7CommittedCandidateReceipt>>>;
|
||||
/**
|
||||
* Elastic scaling support
|
||||
**/
|
||||
candidatesPendingAvailability: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array) => Observable<Vec<PolkadotPrimitivesV7CommittedCandidateReceipt>>>;
|
||||
/**
|
||||
* Checks if the given validation outputs pass the acceptance criteria.
|
||||
**/
|
||||
checkValidationOutputs: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, outputs: CandidateCommitments | { upwardMessages?: any; horizontalMessages?: any; newValidationCode?: any; headData?: any; processedDownwardMessages?: any; hrmpWatermark?: any } | string | Uint8Array) => Observable<bool>>;
|
||||
checkValidationOutputs: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array, outputs: PolkadotPrimitivesV7CandidateCommitments | { upwardMessages?: any; horizontalMessages?: any; newValidationCode?: any; headData?: any; processedDownwardMessages?: any; hrmpWatermark?: any } | string | Uint8Array) => Observable<bool>>;
|
||||
/**
|
||||
* Claim queue
|
||||
**/
|
||||
claimQueue: AugmentedCall<ApiType, () => Observable<BTreeMap<CoreIndex, Vec<u32>>>>;
|
||||
claimQueue: AugmentedCall<ApiType, () => Observable<BTreeMap<u32, Vec<u32>>>>;
|
||||
/**
|
||||
* Returns a list of all disabled validators at the given block
|
||||
* Returns a list of all disabled validators at the given block.
|
||||
**/
|
||||
disabledValidators: AugmentedCall<ApiType, () => Observable<ValidatorIndex>>;
|
||||
disabledValidators: AugmentedCall<ApiType, () => Observable<Vec<u32>>>;
|
||||
/**
|
||||
* Returns all onchain disputes.
|
||||
**/
|
||||
disputes: AugmentedCall<ApiType, () => Observable<Vec<ITuple<[SessionIndex, CandidateHash, DisputeState]>>>>;
|
||||
disputes: AugmentedCall<ApiType, () => Observable<Vec<ITuple<[u32, H256, PolkadotPrimitivesV7DisputeState]>>>>;
|
||||
/**
|
||||
* Get all the pending inbound messages in the downward message queue for a para.
|
||||
**/
|
||||
dmqContents: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array) => Observable<Vec<InboundDownwardMessage>>>;
|
||||
dmqContents: AugmentedCall<ApiType, (recipient: ParaId | AnyNumber | Uint8Array) => Observable<Vec<PolkadotCorePrimitivesInboundDownwardMessage>>>;
|
||||
/**
|
||||
* Get the contents of all channels addressed to the given recipient.
|
||||
* Get the contents of all channels addressed to the given recipient. Channels that have no, messages in them are also included.
|
||||
**/
|
||||
inboundHrmpChannelsContents: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array) => Observable<Vec<InboundHrmpMessage>>>;
|
||||
inboundHrmpChannelsContents: AugmentedCall<ApiType, (recipient: ParaId | AnyNumber | Uint8Array) => Observable<BTreeMap<u32, Vec<PolkadotCorePrimitivesInboundHrmpMessage>>>>;
|
||||
/**
|
||||
* Returns a merkle proof of a validator session key
|
||||
* Returns a merkle proof of a validator session key., NOTE: This function is only available since parachain host version 5.
|
||||
**/
|
||||
keyOwnershipProof: AugmentedCall<ApiType, (validatorId: ValidatorId | string | Uint8Array) => Observable<Option<OpaqueKeyOwnershipProof>>>;
|
||||
keyOwnershipProof: AugmentedCall<ApiType, (validator_id: PolkadotPrimitivesV7ValidatorAppPublic | string | Uint8Array) => Observable<Option<Bytes>>>;
|
||||
/**
|
||||
* Get the minimum number of backing votes for a parachain candidate. This is a staging method! Do not use on production runtimes!
|
||||
* Get the minimum number of backing votes for a parachain candidate., This is a staging method! Do not use on production runtimes!
|
||||
**/
|
||||
minimumBackingVotes: AugmentedCall<ApiType, () => Observable<u32>>;
|
||||
/**
|
||||
* Get node features. This is a staging method! Do not use on production runtimes!
|
||||
* Get node features., This is a staging method! Do not use on production runtimes!
|
||||
**/
|
||||
nodeFeatures: AugmentedCall<ApiType, () => Observable<NodeFeatures>>;
|
||||
nodeFeatures: AugmentedCall<ApiType, () => Observable<BitVec>>;
|
||||
/**
|
||||
* Scrape dispute relevant from on-chain, backing votes and resolved disputes.
|
||||
**/
|
||||
onChainVotes: AugmentedCall<ApiType, () => Observable<Option<ScrapedOnChainVotes>>>;
|
||||
onChainVotes: AugmentedCall<ApiType, () => Observable<Option<PolkadotPrimitivesV7ScrapedOnChainVotes>>>;
|
||||
/**
|
||||
* Returns the state of parachain backing for a given para
|
||||
* Returns the state of parachain backing for a given para.
|
||||
**/
|
||||
paraBackingState: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array) => Observable<Option<BackingState>>>;
|
||||
paraBackingState: AugmentedCall<ApiType, (_: ParaId | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV7AsyncBackingBackingState>>>;
|
||||
/**
|
||||
* Yields the persisted validation data for the given `ParaId` along with an assumption that should be used if the para currently occupies a core.
|
||||
* 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.
|
||||
**/
|
||||
persistedValidationData: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, assumption: OccupiedCoreAssumption | 'Included,' | 'TimedOut' | 'Free' | number | Uint8Array) => Observable<Option<PersistedValidationData>>>;
|
||||
persistedValidationData: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array, assumption: PolkadotPrimitivesV7OccupiedCoreAssumption | 'Included' | 'TimedOut' | 'Free' | number | Uint8Array) => Observable<Option<PolkadotPrimitivesV7PersistedValidationData>>>;
|
||||
/**
|
||||
* Returns code hashes of PVFs that require pre-checking by validators in the active set.
|
||||
* 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.
|
||||
**/
|
||||
pvfsRequirePrecheck: AugmentedCall<ApiType, () => Observable<Vec<ValidationCodeHash>>>;
|
||||
pvfsRequirePrecheck: AugmentedCall<ApiType, () => Observable<Vec<H256>>>;
|
||||
/**
|
||||
* Returns execution parameters for the session.
|
||||
**/
|
||||
sessionExecutorParams: AugmentedCall<ApiType, (sessionIndex: SessionIndex | AnyNumber | Uint8Array) => Observable<Option<ExecutorParams>>>;
|
||||
sessionExecutorParams: AugmentedCall<ApiType, (session_index: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV7ExecutorParams>>>;
|
||||
/**
|
||||
* Returns the session index expected at a child of the block.
|
||||
* Returns the session index expected at a child of the block.,, This can be used to instantiate a `SigningContext`.
|
||||
**/
|
||||
sessionIndexForChild: AugmentedCall<ApiType, () => Observable<SessionIndex>>;
|
||||
sessionIndexForChild: AugmentedCall<ApiType, () => Observable<u32>>;
|
||||
/**
|
||||
* Get the session info for the given session, if stored.
|
||||
* Get the session info for the given session, if stored.,, NOTE: This function is only available since parachain host version 2.
|
||||
**/
|
||||
sessionInfo: AugmentedCall<ApiType, (index: SessionIndex | AnyNumber | Uint8Array) => Observable<Option<SessionInfo>>>;
|
||||
sessionInfo: AugmentedCall<ApiType, (index: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV7SessionInfo>>>;
|
||||
/**
|
||||
* Submits a PVF pre-checking statement into the transaction pool.
|
||||
* Submits a PVF pre-checking statement into the transaction pool.,, NOTE: This function is only available since parachain host version 2.
|
||||
**/
|
||||
submitPvfCheckStatement: AugmentedCall<ApiType, (stmt: PvfCheckStatement | { accept?: any; subject?: any; sessionIndex?: any; validatorIndex?: any } | string | Uint8Array, signature: ValidatorSignature | string | Uint8Array) => Observable<Null>>;
|
||||
submitPvfCheckStatement: AugmentedCall<ApiType, (stmt: PolkadotPrimitivesV7PvfCheckStatement | { accept?: any; subject?: any; sessionIndex?: any; validatorIndex?: any } | string | Uint8Array, signature: PolkadotPrimitivesV7ValidatorAppSignature | string | Uint8Array) => Observable<Null>>;
|
||||
/**
|
||||
* Submit an unsigned extrinsic to slash validators who lost a dispute about a candidate of a past session
|
||||
* 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.
|
||||
**/
|
||||
submitReportDisputeLost: AugmentedCall<ApiType, (disputeProof: DisputeProof | { timeSlot?: any; kind?: any; validatorIndex?: any; validatorId?: any } | string | Uint8Array, keyOwnershipProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
|
||||
submitReportDisputeLost: AugmentedCall<ApiType, (dispute_proof: PolkadotPrimitivesV7SlashingDisputeProof | { timeSlot?: any; kind?: any; validatorIndex?: any; validatorId?: any } | string | Uint8Array, key_ownership_proof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
|
||||
/**
|
||||
* Returns a list of validators that lost a past session dispute and need to be slashed
|
||||
* 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.
|
||||
**/
|
||||
unappliedSlashes: AugmentedCall<ApiType, () => Observable<Vec<ITuple<[SessionIndex, CandidateHash, PendingSlashes]>>>>;
|
||||
unappliedSlashes: AugmentedCall<ApiType, () => Observable<Vec<ITuple<[u32, H256, PolkadotPrimitivesV7SlashingPendingSlashes]>>>>;
|
||||
/**
|
||||
* Fetch the validation code used by a para, making the given `OccupiedCoreAssumption`.
|
||||
* 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.
|
||||
**/
|
||||
validationCode: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, assumption: OccupiedCoreAssumption | 'Included,' | 'TimedOut' | 'Free' | number | Uint8Array) => Observable<Option<ValidationCode>>>;
|
||||
validationCode: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array, assumption: PolkadotPrimitivesV7OccupiedCoreAssumption | 'Included' | 'TimedOut' | 'Free' | number | Uint8Array) => Observable<Option<Bytes>>>;
|
||||
/**
|
||||
* Get the validation code from its hash.
|
||||
**/
|
||||
validationCodeByHash: AugmentedCall<ApiType, (hash: ValidationCodeHash | string | Uint8Array) => Observable<Option<ValidationCode>>>;
|
||||
validationCodeByHash: AugmentedCall<ApiType, (hash: ValidationCodeHash | string | Uint8Array) => Observable<Option<Bytes>>>;
|
||||
/**
|
||||
* Fetch the hash of the validation code used by a para, making the given `OccupiedCoreAssumption`.
|
||||
* 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.
|
||||
**/
|
||||
validationCodeHash: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, assumption: OccupiedCoreAssumption | 'Included,' | 'TimedOut' | 'Free' | number | Uint8Array) => Observable<Option<ValidationCodeHash>>>;
|
||||
validationCodeHash: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array, assumption: PolkadotPrimitivesV7OccupiedCoreAssumption | 'Included' | 'TimedOut' | 'Free' | number | Uint8Array) => Observable<Option<H256>>>;
|
||||
/**
|
||||
* Returns the validator groups and rotation info localized based on the hypothetical child of a block whose state this is invoked on
|
||||
* 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.
|
||||
**/
|
||||
validatorGroups: AugmentedCall<ApiType, () => Observable<ITuple<[Vec<Vec<ParaValidatorIndex>>, GroupRotationInfo]>>>;
|
||||
validatorGroups: AugmentedCall<ApiType, () => Observable<ITuple<[Vec<Vec<u32>>, PolkadotPrimitivesV7GroupRotationInfo]>>>;
|
||||
/**
|
||||
* Get the current validators.
|
||||
**/
|
||||
validators: AugmentedCall<ApiType, () => Observable<Vec<ValidatorId>>>;
|
||||
validators: AugmentedCall<ApiType, () => Observable<Vec<PolkadotPrimitivesV7ValidatorAppPublic>>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0xab3c0572291feb8b/1 */
|
||||
/** 0xab3c0572291feb8b/ */
|
||||
sessionKeys: {
|
||||
/**
|
||||
* Decode the given public session keys.
|
||||
* Decode the given public session keys.,, Returns the list of public raw public keys + key type.
|
||||
**/
|
||||
decodeSessionKeys: AugmentedCall<ApiType, (encoded: Bytes | string | Uint8Array) => Observable<Option<Vec<ITuple<[Bytes, KeyTypeId]>>>>>;
|
||||
decodeSessionKeys: AugmentedCall<ApiType, (encoded: Bytes | string | Uint8Array) => Observable<Option<Vec<ITuple<[Bytes, SpCoreCryptoKeyTypeId]>>>>>;
|
||||
/**
|
||||
* Generate a set of session keys with optionally using the given seed.
|
||||
* 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.
|
||||
**/
|
||||
generateSessionKeys: AugmentedCall<ApiType, (seed: Option<Bytes> | null | Uint8Array | Bytes | string) => Observable<Bytes>>;
|
||||
/**
|
||||
@@ -454,88 +471,100 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x18ef58a3b67ba770/1 */
|
||||
/** 0x18ef58a3b67ba770/ */
|
||||
stakingApi: {
|
||||
/**
|
||||
* Returns the page count of exposures for a validator `account` in a given era.
|
||||
**/
|
||||
erasStakersPageCount: AugmentedCall<ApiType, (era: u32 | AnyNumber | Uint8Array, account: AccountId32 | string | Uint8Array) => Observable<u32>>;
|
||||
/**
|
||||
* Returns the nominations quota for a nominator with a given balance.
|
||||
**/
|
||||
nominationsQuota: AugmentedCall<ApiType, (balance: Balance | AnyNumber | Uint8Array) => Observable<u32>>;
|
||||
nominationsQuota: AugmentedCall<ApiType, (balance: u128 | AnyNumber | Uint8Array) => Observable<u32>>;
|
||||
/**
|
||||
* Returns true if validator `account` has pages to be claimed for the given era.
|
||||
**/
|
||||
pendingRewards: AugmentedCall<ApiType, (era: u32 | AnyNumber | Uint8Array, account: AccountId32 | string | Uint8Array) => Observable<bool>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0xd2bc9897eed08f15/3 */
|
||||
/** 0xd2bc9897eed08f15/ */
|
||||
taggedTransactionQueue: {
|
||||
/**
|
||||
* Validate the transaction.
|
||||
* 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.
|
||||
**/
|
||||
validateTransaction: AugmentedCall<ApiType, (source: TransactionSource | 'InBlock' | 'Local' | 'External' | number | Uint8Array, tx: Extrinsic | IExtrinsic | string | Uint8Array, blockHash: BlockHash | string | Uint8Array) => Observable<TransactionValidity>>;
|
||||
validateTransaction: AugmentedCall<ApiType, (source: SpRuntimeTransactionValidityTransactionSource | 'InBlock' | 'Local' | 'External' | number | Uint8Array, tx: Extrinsic | IExtrinsic | string | Uint8Array, block_hash: H256 | string | Uint8Array) => Observable<Result<SpRuntimeTransactionValidityValidTransaction, SpRuntimeTransactionValidityTransactionValidityError>>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x37c8bb1350a9a2a8/4 */
|
||||
/** 0x37c8bb1350a9a2a8/ */
|
||||
transactionPaymentApi: {
|
||||
/**
|
||||
* The transaction fee details
|
||||
*
|
||||
**/
|
||||
queryFeeDetails: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<FeeDetails>>;
|
||||
queryFeeDetails: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<PalletTransactionPaymentFeeDetails>>;
|
||||
/**
|
||||
* The transaction info
|
||||
*
|
||||
**/
|
||||
queryInfo: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<RuntimeDispatchInfo>>;
|
||||
queryInfo: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<PalletTransactionPaymentRuntimeDispatchInfo>>;
|
||||
/**
|
||||
* Query the output of the current LengthToFee given some input
|
||||
*
|
||||
**/
|
||||
queryLengthToFee: AugmentedCall<ApiType, (length: u32 | AnyNumber | Uint8Array) => Observable<Balance>>;
|
||||
queryLengthToFee: AugmentedCall<ApiType, (length: u32 | AnyNumber | Uint8Array) => Observable<u128>>;
|
||||
/**
|
||||
* Query the output of the current WeightToFee given some input
|
||||
*
|
||||
**/
|
||||
queryWeightToFee: AugmentedCall<ApiType, (weight: Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => Observable<Balance>>;
|
||||
queryWeightToFee: AugmentedCall<ApiType, (weight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => Observable<u128>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0xf3ff14d5ab527059/3 */
|
||||
/** 0xf3ff14d5ab527059/ */
|
||||
transactionPaymentCallApi: {
|
||||
/**
|
||||
* The call fee details
|
||||
* Query fee details of a given encoded `Call`.
|
||||
**/
|
||||
queryCallFeeDetails: AugmentedCall<ApiType, (call: Call | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<FeeDetails>>;
|
||||
queryCallFeeDetails: AugmentedCall<ApiType, (call: RuntimeCall | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<PalletTransactionPaymentFeeDetails>>;
|
||||
/**
|
||||
* The call info
|
||||
* Query information of a dispatch class, weight, and fee of a given encoded `Call`.
|
||||
**/
|
||||
queryCallInfo: AugmentedCall<ApiType, (call: Call | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<RuntimeDispatchInfo>>;
|
||||
queryCallInfo: AugmentedCall<ApiType, (call: RuntimeCall | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<PalletTransactionPaymentRuntimeDispatchInfo>>;
|
||||
/**
|
||||
* Query the output of the current LengthToFee given some input
|
||||
* Query the output of the current `LengthToFee` given some input.
|
||||
**/
|
||||
queryLengthToFee: AugmentedCall<ApiType, (length: u32 | AnyNumber | Uint8Array) => Observable<Balance>>;
|
||||
queryLengthToFee: AugmentedCall<ApiType, (length: u32 | AnyNumber | Uint8Array) => Observable<u128>>;
|
||||
/**
|
||||
* Query the output of the current WeightToFee given some input
|
||||
* Query the output of the current `WeightToFee` given some input.
|
||||
**/
|
||||
queryWeightToFee: AugmentedCall<ApiType, (weight: Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => Observable<Balance>>;
|
||||
queryWeightToFee: AugmentedCall<ApiType, (weight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => Observable<u128>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x6ff52ee858e6c5bd/1 */
|
||||
/** 0x6ff52ee858e6c5bd/ */
|
||||
xcmPaymentApi: {
|
||||
/**
|
||||
* The API to query acceptable payment assets
|
||||
* Returns a list of acceptable payment assets.,, # Arguments,, * `xcm_version`: Version.
|
||||
**/
|
||||
queryAcceptablePaymentAssets: AugmentedCall<ApiType, (version: u32 | AnyNumber | Uint8Array) => Observable<Result<Vec<XcmVersionedAssetId>, XcmPaymentApiError>>>;
|
||||
queryAcceptablePaymentAssets: AugmentedCall<ApiType, (xcm_version: u32 | AnyNumber | Uint8Array) => Observable<Result<Vec<XcmVersionedAssetId>, XcmRuntimeApisFeesError>>>;
|
||||
/**
|
||||
*
|
||||
* 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.
|
||||
**/
|
||||
queryWeightToAssetFee: AugmentedCall<ApiType, (weight: WeightV2 | { refTime?: any; proofSize?: any } | string | Uint8Array, asset: XcmVersionedAssetId | { V3: any } | { V4: any } | string | Uint8Array) => Observable<Result<u128, XcmPaymentApiError>>>;
|
||||
queryDeliveryFees: AugmentedCall<ApiType, (destination: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, message: XcmVersionedXcm | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => Observable<Result<XcmVersionedAssets, XcmRuntimeApisFeesError>>>;
|
||||
/**
|
||||
*
|
||||
* Converts a weight into a fee for the specified `AssetId`.,, # Arguments,, * `weight`: convertible `Weight`., * `asset`: `VersionedAssetId`.
|
||||
**/
|
||||
queryXcmWeight: AugmentedCall<ApiType, (message: XcmVersionedXcm | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => Observable<Result<WeightV2, XcmPaymentApiError>>>;
|
||||
queryWeightToAssetFee: AugmentedCall<ApiType, (weight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array, asset: XcmVersionedAssetId | { V3: any } | { V4: any } | string | Uint8Array) => Observable<Result<u128, XcmRuntimeApisFeesError>>>;
|
||||
/**
|
||||
* Returns a weight needed to execute a XCM.,, # Arguments,, * `message`: `VersionedXcm`.
|
||||
**/
|
||||
queryXcmWeight: AugmentedCall<ApiType, (message: XcmVersionedXcm | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => Observable<Result<SpWeightsWeightV2Weight, XcmRuntimeApisFeesError>>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '13.2.1' };
|
||||
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '14.2.3' };
|
||||
|
||||
@@ -9,7 +9,7 @@ import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
|
||||
import type { Bytes, Option, Vec, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||
import type { Codec, ITuple } from '@polkadot/types-codec/types';
|
||||
import type { Perbill, Permill } from '@polkadot/types/interfaces/runtime';
|
||||
import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletReferendaTrackInfo, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
||||
import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletReferendaTrackInfo, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight, StagingXcmV4Junctions } from '@polkadot/types/lookup';
|
||||
|
||||
export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
|
||||
|
||||
@@ -80,10 +80,14 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
/**
|
||||
* The maximum number of locks that should exist on an account.
|
||||
* Not strictly enforced, but used for weight estimation.
|
||||
*
|
||||
* Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
|
||||
**/
|
||||
maxLocks: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of named reserves that can exist on an account.
|
||||
*
|
||||
* Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
|
||||
**/
|
||||
maxReserves: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
@@ -202,6 +206,20 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
coretime: {
|
||||
/**
|
||||
* The ParaId of the coretime chain.
|
||||
**/
|
||||
brokerId: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The coretime chain pot location.
|
||||
**/
|
||||
brokerPotLocation: StagingXcmV4Junctions & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Generic const
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
crowdloan: {
|
||||
/**
|
||||
* The minimum amount that may be contributed into a crowdloan. Should almost certainly be
|
||||
@@ -280,18 +298,10 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
* this value.
|
||||
**/
|
||||
signedMaxWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Duration of the signed phase.
|
||||
**/
|
||||
signedPhase: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Base reward for a signed solution
|
||||
**/
|
||||
signedRewardBase: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Duration of the unsigned phase.
|
||||
**/
|
||||
unsignedPhase: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Generic const
|
||||
**/
|
||||
@@ -331,47 +341,6 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
identity: {
|
||||
/**
|
||||
* The amount held on deposit for a registered identity.
|
||||
**/
|
||||
basicDeposit: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The amount held on deposit per encoded byte for a registered identity.
|
||||
**/
|
||||
byteDeposit: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Maxmimum number of registrars allowed in the system. Needed to bound the complexity
|
||||
* of, e.g., updating judgements.
|
||||
**/
|
||||
maxRegistrars: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of sub-accounts allowed per identified account.
|
||||
**/
|
||||
maxSubAccounts: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum length of a suffix.
|
||||
**/
|
||||
maxSuffixLength: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum length of a username, including its suffix and any system-added delimiters.
|
||||
**/
|
||||
maxUsernameLength: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The number of blocks within which a username grant must be accepted.
|
||||
**/
|
||||
pendingUsernameExpiration: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The amount held on deposit for a registered subaccount. This should account for the fact
|
||||
* that one storage item's value will increase by the size of an account ID, and there will
|
||||
* be another trie item whose value is the size of an account ID plus 32 bytes.
|
||||
**/
|
||||
subAccountDeposit: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Generic const
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
indices: {
|
||||
/**
|
||||
* The deposit needed for reserving an index.
|
||||
@@ -391,6 +360,14 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
* size is slightly lower than this as defined by [`MaxMessageLenOf`].
|
||||
**/
|
||||
heapSize: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum amount of weight (if any) to be used from remaining weight `on_idle` which
|
||||
* should be provided to the message queue for servicing enqueued items `on_idle`.
|
||||
* Useful for parachains to process messages at the same block they are received.
|
||||
*
|
||||
* If `None`, it will not call `ServiceQueues::service_queues` in `on_idle`.
|
||||
**/
|
||||
idleMaxServiceWeight: Option<SpWeightsWeightV2Weight> & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of stale pages (i.e. of overweight messages) allowed before culling
|
||||
* can happen. Once there are more stale pages than this, then historical pages may be
|
||||
@@ -399,10 +376,11 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
maxStale: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The amount of weight (if any) which should be provided to the message queue for
|
||||
* servicing enqueued items.
|
||||
* servicing enqueued items `on_initialize`.
|
||||
*
|
||||
* This may be legitimately `None` in the case that you will call
|
||||
* `ServiceQueues::service_queues` manually.
|
||||
* `ServiceQueues::service_queues` manually or set [`Self::IdleMaxServiceWeight`] to have
|
||||
* it run in `on_idle`.
|
||||
**/
|
||||
serviceWeight: Option<SpWeightsWeightV2Weight> & AugmentedConst<ApiType>;
|
||||
/**
|
||||
@@ -464,6 +442,25 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
onDemand: {
|
||||
/**
|
||||
* The maximum number of blocks some historical revenue
|
||||
* information stored for.
|
||||
**/
|
||||
maxHistoricalRevenue: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Identifier for the internal revenue balance.
|
||||
**/
|
||||
palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The default value for the spot traffic multiplier.
|
||||
**/
|
||||
trafficDefaultValue: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Generic const
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
paras: {
|
||||
unsignedPriority: u64 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
@@ -717,7 +714,7 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
**/
|
||||
ss58Prefix: u16 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Get the chain's current version.
|
||||
* Get the chain's in-code version.
|
||||
**/
|
||||
version: SpVersionRuntimeVersion & AugmentedConst<ApiType>;
|
||||
/**
|
||||
@@ -789,19 +786,6 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
* The period during which an approved treasury spend has to be claimed.
|
||||
**/
|
||||
payoutPeriod: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Fraction of a proposal's value that should be bonded in order to place the proposal.
|
||||
* An accepted proposal gets these back. A rejected proposal does not.
|
||||
**/
|
||||
proposalBond: Permill & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Maximum amount of funds that should be placed in a deposit for making a proposal.
|
||||
**/
|
||||
proposalBondMaximum: Option<u128> & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Minimum amount of funds that should be placed in a deposit for making a proposal.
|
||||
**/
|
||||
proposalBondMinimum: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Period between successive spends.
|
||||
**/
|
||||
|
||||
@@ -16,6 +16,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* The given asset ID already has an assigned conversion rate and cannot be re-created.
|
||||
**/
|
||||
AlreadyExists: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Overflow ocurred when calculating the inverse rate.
|
||||
**/
|
||||
Overflow: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The given asset ID is unknown.
|
||||
**/
|
||||
@@ -274,7 +278,7 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
AlreadyDelegating: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The account currently has votes attached to it and the operation cannot succeed until
|
||||
* these are removed, either through `unvote` or `reap_vote`.
|
||||
* these are removed through `remove_vote`.
|
||||
**/
|
||||
AlreadyVoting: AugmentedError<ApiType>;
|
||||
/**
|
||||
@@ -322,6 +326,53 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
coretime: {
|
||||
/**
|
||||
* Failed to transfer assets to the coretime chain
|
||||
**/
|
||||
AssetTransferFailed: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The paraid making the call is not the coretime brokerage system parachain.
|
||||
**/
|
||||
NotBroker: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Requested revenue information `when` parameter was in the future from the current
|
||||
* block height.
|
||||
**/
|
||||
RequestedFutureRevenue: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Generic error
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
coretimeAssignmentProvider: {
|
||||
AssignmentsEmpty: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Tried to add an unsorted set of assignments
|
||||
**/
|
||||
AssignmentsNotSorted: AugmentedError<ApiType>;
|
||||
/**
|
||||
* assign_core is only allowed to append new assignments at the end of already existing
|
||||
* ones.
|
||||
**/
|
||||
DisallowedInsert: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Tried to insert a schedule for the same core and block number as an existing schedule
|
||||
**/
|
||||
DuplicateInsert: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Assignments together exceeded 57600.
|
||||
**/
|
||||
OverScheduled: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Assignments together less than 57600
|
||||
**/
|
||||
UnderScheduled: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Generic error
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
crowdloan: {
|
||||
/**
|
||||
* The fund is already in `NewRaise`
|
||||
@@ -447,7 +498,7 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
OcwCallWrongEra: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Sumission was prepared for a different round.
|
||||
* Submission was prepared for a different round.
|
||||
**/
|
||||
PreDispatchDifferentRound: AugmentedError<ApiType>;
|
||||
/**
|
||||
@@ -641,116 +692,6 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
identity: {
|
||||
/**
|
||||
* Account ID is already named.
|
||||
**/
|
||||
AlreadyClaimed: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Empty index.
|
||||
**/
|
||||
EmptyIndex: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Fee is changed.
|
||||
**/
|
||||
FeeChanged: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The index is invalid.
|
||||
**/
|
||||
InvalidIndex: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Invalid judgement.
|
||||
**/
|
||||
InvalidJudgement: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The signature on a username was not valid.
|
||||
**/
|
||||
InvalidSignature: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The provided suffix is too long.
|
||||
**/
|
||||
InvalidSuffix: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The target is invalid.
|
||||
**/
|
||||
InvalidTarget: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The username does not meet the requirements.
|
||||
**/
|
||||
InvalidUsername: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The provided judgement was for a different identity.
|
||||
**/
|
||||
JudgementForDifferentIdentity: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Judgement given.
|
||||
**/
|
||||
JudgementGiven: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Error that occurs when there is an issue paying for judgement.
|
||||
**/
|
||||
JudgementPaymentFailed: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The authority cannot allocate any more usernames.
|
||||
**/
|
||||
NoAllocation: AugmentedError<ApiType>;
|
||||
/**
|
||||
* No identity found.
|
||||
**/
|
||||
NoIdentity: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The username cannot be forcefully removed because it can still be accepted.
|
||||
**/
|
||||
NotExpired: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Account isn't found.
|
||||
**/
|
||||
NotFound: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Account isn't named.
|
||||
**/
|
||||
NotNamed: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Sub-account isn't owned by sender.
|
||||
**/
|
||||
NotOwned: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Sender is not a sub-account.
|
||||
**/
|
||||
NotSub: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The sender does not have permission to issue a username.
|
||||
**/
|
||||
NotUsernameAuthority: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The requested username does not exist.
|
||||
**/
|
||||
NoUsername: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Setting this username requires a signature, but none was provided.
|
||||
**/
|
||||
RequiresSignature: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Sticky judgement.
|
||||
**/
|
||||
StickyJudgement: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Maximum amount of registrars reached. Cannot add any more.
|
||||
**/
|
||||
TooManyRegistrars: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Too many subs-accounts.
|
||||
**/
|
||||
TooManySubAccounts: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The username is already taken.
|
||||
**/
|
||||
UsernameTaken: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Generic error
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
indices: {
|
||||
/**
|
||||
* The index was not available.
|
||||
@@ -893,6 +834,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* pool at a time.
|
||||
**/
|
||||
AccountBelongsToOtherPool: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The pool or member delegation has already migrated to delegate stake.
|
||||
**/
|
||||
AlreadyMigrated: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Bonding extra is restricted to the exact pending reward amount.
|
||||
**/
|
||||
@@ -984,10 +929,18 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* No imbalance in the ED deposit for the pool.
|
||||
**/
|
||||
NothingToAdjust: AugmentedError<ApiType>;
|
||||
/**
|
||||
* No slash pending that can be applied to the member.
|
||||
**/
|
||||
NothingToSlash: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Either a) the caller cannot make a valid kick or b) the pool is not destroying.
|
||||
**/
|
||||
NotKickerOrDestroying: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The pool or member delegation has not migrated yet to delegate stake.
|
||||
**/
|
||||
NotMigrated: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The caller does not have nominating permissions for the pool.
|
||||
**/
|
||||
@@ -996,6 +949,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* The pool is not open to join
|
||||
**/
|
||||
NotOpen: AugmentedError<ApiType>;
|
||||
/**
|
||||
* This call is not allowed in the current state of the pallet.
|
||||
**/
|
||||
NotSupported: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The transaction could not be executed due to overflow risk for the pool.
|
||||
**/
|
||||
@@ -1029,25 +986,22 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
onDemand: {
|
||||
/**
|
||||
* The order queue is full, `place_order` will not continue.
|
||||
**/
|
||||
QueueFull: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The current spot price is higher than the max amount specified in the `place_order`
|
||||
* call, making it invalid.
|
||||
**/
|
||||
SpotPriceHigherThanMaxAmount: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Generic error
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
paraInclusion: {
|
||||
/**
|
||||
* Bitfield consists of zeros only.
|
||||
**/
|
||||
BitfieldAllZeros: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Multiple bitfields submitted by same validator or validators out of order by index.
|
||||
**/
|
||||
BitfieldDuplicateOrUnordered: AugmentedError<ApiType>;
|
||||
/**
|
||||
* A bitfield that references a freed core,
|
||||
* either intentionally or as part of a concluded
|
||||
* invalid dispute.
|
||||
**/
|
||||
BitfieldReferencesFreedCore: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Candidate scheduled despite pending candidate already existing for the para.
|
||||
**/
|
||||
CandidateScheduledBeforeParaFree: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The candidate's relay-parent was not allowed. Either it was
|
||||
* not recent enough or it didn't advance based on the last parachain block.
|
||||
@@ -1078,10 +1032,6 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* Invalid (bad signature, unknown validator, etc.) backing.
|
||||
**/
|
||||
InvalidBacking: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Invalid signature
|
||||
**/
|
||||
InvalidBitfieldSignature: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Invalid group index in core assignment.
|
||||
**/
|
||||
@@ -1115,30 +1065,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* Code upgrade prematurely.
|
||||
**/
|
||||
PrematureCodeUpgrade: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Scheduled cores out of order.
|
||||
**/
|
||||
ScheduledOutOfOrder: AugmentedError<ApiType>;
|
||||
/**
|
||||
* A different relay parent was provided compared to the on-chain stored one.
|
||||
**/
|
||||
UnexpectedRelayParent: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Candidate submitted but para not scheduled.
|
||||
**/
|
||||
UnscheduledCandidate: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Backed candidates are out of order (core index) or contain duplicates.
|
||||
**/
|
||||
UnsortedOrDuplicateBackedCandidates: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Dispute statement sets are out of order or contain duplicates.
|
||||
**/
|
||||
UnsortedOrDuplicateDisputeStatementSet: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Validator indices are out of order or contains duplicates.
|
||||
**/
|
||||
UnsortedOrDuplicateValidatorIndices: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The validation data hash does not match expected.
|
||||
**/
|
||||
@@ -1147,10 +1077,6 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* Validator index out of bounds.
|
||||
**/
|
||||
ValidatorIndexOutOfBounds: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Availability bitfield has unexpected size.
|
||||
**/
|
||||
WrongBitfieldSize: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Generic error
|
||||
**/
|
||||
@@ -1158,25 +1084,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
};
|
||||
paraInherent: {
|
||||
/**
|
||||
* A candidate was backed by a disabled validator
|
||||
* A candidate was filtered during inherent execution. This should have only been done
|
||||
* during creation.
|
||||
**/
|
||||
BackedByDisabled: AugmentedError<ApiType>;
|
||||
/**
|
||||
* A candidate was backed even though the paraid was not scheduled.
|
||||
**/
|
||||
BackedOnUnscheduledCore: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Disputed candidate that was concluded invalid.
|
||||
**/
|
||||
CandidateConcludedInvalid: AugmentedError<ApiType>;
|
||||
/**
|
||||
* A dispute statement was invalid.
|
||||
**/
|
||||
DisputeInvalid: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The ordering of dispute statements was invalid.
|
||||
**/
|
||||
DisputeStatementsUnsortedOrDuplicates: AugmentedError<ApiType>;
|
||||
CandidatesFilteredDuringExecution: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The data given to the inherent will result in an overweight block.
|
||||
**/
|
||||
@@ -1220,6 +1131,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* Parachain cannot currently schedule a code upgrade.
|
||||
**/
|
||||
CannotUpgradeCode: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Invalid validation code size.
|
||||
**/
|
||||
InvalidCode: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Para is not registered in our system.
|
||||
**/
|
||||
@@ -1331,6 +1246,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* Preimage has already been noted on-chain.
|
||||
**/
|
||||
AlreadyNoted: AugmentedError<ApiType>;
|
||||
/**
|
||||
* No ticket with a cost was returned by [`Config::Consideration`] to store the preimage.
|
||||
**/
|
||||
NoCost: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The user is not authorized to perform this action.
|
||||
**/
|
||||
@@ -1447,6 +1366,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* The preimage does not exist.
|
||||
**/
|
||||
PreimageNotExist: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The preimage is stored with a different length than the one provided.
|
||||
**/
|
||||
PreimageStoredWithDifferentLength: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The queue of the track is empty.
|
||||
**/
|
||||
@@ -1486,14 +1409,14 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* Invalid para code size.
|
||||
**/
|
||||
CodeTooLarge: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Registering parachain with empty code is not allowed.
|
||||
**/
|
||||
EmptyCode: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Invalid para head data size.
|
||||
**/
|
||||
HeadDataTooLarge: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The validation code is invalid.
|
||||
**/
|
||||
InvalidCode: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The caller is not the owner of this Id.
|
||||
**/
|
||||
@@ -1681,6 +1604,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* Not a controller account.
|
||||
**/
|
||||
NotController: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Not enough funds available to withdraw.
|
||||
**/
|
||||
NotEnoughFunds: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Items are not sorted and unique.
|
||||
**/
|
||||
@@ -1693,6 +1620,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* Can not rebond without unlocking chunks.
|
||||
**/
|
||||
NoUnlockChunk: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Provided reward destination is not allowed.
|
||||
**/
|
||||
RewardDestinationRestricted: AugmentedError<ApiType>;
|
||||
/**
|
||||
* There are too many nominators in the system. Governance needs to adjust the staking
|
||||
* settings to keep things safe for the runtime.
|
||||
@@ -1707,6 +1638,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* staking settings to keep things safe for the runtime.
|
||||
**/
|
||||
TooManyValidators: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Operation not allowed for virtual stakers.
|
||||
**/
|
||||
VirtualStakerNotAllowed: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Generic error
|
||||
**/
|
||||
@@ -1764,6 +1699,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* and the new runtime.
|
||||
**/
|
||||
InvalidSpecName: AugmentedError<ApiType>;
|
||||
/**
|
||||
* A multi-block migration is ongoing and prevents the current code from being replaced.
|
||||
**/
|
||||
MultiBlockMigrationsOngoing: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Suicide called when the account has non-default composite data.
|
||||
**/
|
||||
@@ -1812,10 +1751,6 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* amount to be spent.
|
||||
**/
|
||||
InsufficientPermission: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Proposer's balance is too low.
|
||||
**/
|
||||
InsufficientProposersBalance: AugmentedError<ApiType>;
|
||||
/**
|
||||
* No proposal, bounty or spend at that index.
|
||||
**/
|
||||
@@ -1964,10 +1899,6 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* The unlock operation cannot succeed because there are still consumers of the lock.
|
||||
**/
|
||||
InUse: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Invalid non-concrete asset.
|
||||
**/
|
||||
InvalidAssetNotConcrete: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Invalid asset, reserve chain could not be determined for it.
|
||||
**/
|
||||
|
||||
@@ -10,7 +10,7 @@ import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32,
|
||||
import type { ITuple } from '@polkadot/types-codec/types';
|
||||
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
||||
import type { AccountId32, H256, Perbill } from '@polkadot/types/interfaces/runtime';
|
||||
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensMiscBalanceStatus, PalletConvictionVotingTally, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletMultisigTimepoint, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsPoolState, PalletStakingForcing, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, PolkadotParachainPrimitivesPrimitivesHrmpChannelId, PolkadotPrimitivesV6CandidateReceipt, PolkadotRuntimeCommonImplsVersionedLocatableAsset, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, PolkadotRuntimeProxyType, SpConsensusGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpWeightsWeightV2Weight, StagingXcmV4AssetAssets, StagingXcmV4Location, StagingXcmV4Response, StagingXcmV4TraitsOutcome, StagingXcmV4Xcm, XcmV3TraitsError, XcmVersionedAssets, XcmVersionedLocation } from '@polkadot/types/lookup';
|
||||
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensMiscBalanceStatus, PalletConvictionVotingTally, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletMultisigTimepoint, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsPoolState, PalletStakingForcing, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, PolkadotParachainPrimitivesPrimitivesHrmpChannelId, PolkadotPrimitivesV7CandidateReceipt, PolkadotRuntimeCommonImplsVersionedLocatableAsset, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, PolkadotRuntimeProxyType, PolkadotRuntimeRuntimeParametersKey, PolkadotRuntimeRuntimeParametersValue, SpConsensusGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpWeightsWeightV2Weight, StagingXcmV4AssetAssets, StagingXcmV4Location, StagingXcmV4Response, StagingXcmV4TraitsOutcome, StagingXcmV4Xcm, XcmV3TraitsError, XcmVersionedAssets, XcmVersionedLocation } from '@polkadot/types/lookup';
|
||||
|
||||
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
|
||||
|
||||
@@ -255,6 +255,20 @@ declare module '@polkadot/api-base/types/events' {
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
coretime: {
|
||||
/**
|
||||
* A core has received a new assignment from the broker chain.
|
||||
**/
|
||||
CoreAssigned: AugmentedEvent<ApiType, [core: u32], { core: u32 }>;
|
||||
/**
|
||||
* The broker chain has asked for revenue information for a specific block.
|
||||
**/
|
||||
RevenueInfoRequested: AugmentedEvent<ApiType, [when: u32], { when: u32 }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
crowdloan: {
|
||||
/**
|
||||
* A parachain has been moved to `NewRaise`
|
||||
@@ -329,7 +343,7 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* A solution was stored with the given compute.
|
||||
*
|
||||
* The `origin` indicates the origin of the solution. If `origin` is `Some(AccountId)`,
|
||||
* the stored solution was submited in the signed phase by a miner with the `AccountId`.
|
||||
* the stored solution was submitted in the signed phase by a miner with the `AccountId`.
|
||||
* Otherwise, the solution was stored either during the unsigned phase or by
|
||||
* `T::ForceOrigin`. The `bool` is `true` when a previous solution was ejected to make
|
||||
* room for this one.
|
||||
@@ -421,82 +435,6 @@ declare module '@polkadot/api-base/types/events' {
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
identity: {
|
||||
/**
|
||||
* A username authority was added.
|
||||
**/
|
||||
AuthorityAdded: AugmentedEvent<ApiType, [authority: AccountId32], { authority: AccountId32 }>;
|
||||
/**
|
||||
* A username authority was removed.
|
||||
**/
|
||||
AuthorityRemoved: AugmentedEvent<ApiType, [authority: AccountId32], { authority: AccountId32 }>;
|
||||
/**
|
||||
* A dangling username (as in, a username corresponding to an account that has removed its
|
||||
* identity) has been removed.
|
||||
**/
|
||||
DanglingUsernameRemoved: AugmentedEvent<ApiType, [who: AccountId32, username: Bytes], { who: AccountId32, username: Bytes }>;
|
||||
/**
|
||||
* A name was cleared, and the given balance returned.
|
||||
**/
|
||||
IdentityCleared: AugmentedEvent<ApiType, [who: AccountId32, deposit: u128], { who: AccountId32, deposit: u128 }>;
|
||||
/**
|
||||
* A name was removed and the given balance slashed.
|
||||
**/
|
||||
IdentityKilled: AugmentedEvent<ApiType, [who: AccountId32, deposit: u128], { who: AccountId32, deposit: u128 }>;
|
||||
/**
|
||||
* A name was set or reset (which will remove all judgements).
|
||||
**/
|
||||
IdentitySet: AugmentedEvent<ApiType, [who: AccountId32], { who: AccountId32 }>;
|
||||
/**
|
||||
* A judgement was given by a registrar.
|
||||
**/
|
||||
JudgementGiven: AugmentedEvent<ApiType, [target: AccountId32, registrarIndex: u32], { target: AccountId32, registrarIndex: u32 }>;
|
||||
/**
|
||||
* A judgement was asked from a registrar.
|
||||
**/
|
||||
JudgementRequested: AugmentedEvent<ApiType, [who: AccountId32, registrarIndex: u32], { who: AccountId32, registrarIndex: u32 }>;
|
||||
/**
|
||||
* A judgement request was retracted.
|
||||
**/
|
||||
JudgementUnrequested: AugmentedEvent<ApiType, [who: AccountId32, registrarIndex: u32], { who: AccountId32, registrarIndex: u32 }>;
|
||||
/**
|
||||
* A queued username passed its expiration without being claimed and was removed.
|
||||
**/
|
||||
PreapprovalExpired: AugmentedEvent<ApiType, [whose: AccountId32], { whose: AccountId32 }>;
|
||||
/**
|
||||
* A username was set as a primary and can be looked up from `who`.
|
||||
**/
|
||||
PrimaryUsernameSet: AugmentedEvent<ApiType, [who: AccountId32, username: Bytes], { who: AccountId32, username: Bytes }>;
|
||||
/**
|
||||
* A registrar was added.
|
||||
**/
|
||||
RegistrarAdded: AugmentedEvent<ApiType, [registrarIndex: u32], { registrarIndex: u32 }>;
|
||||
/**
|
||||
* A sub-identity was added to an identity and the deposit paid.
|
||||
**/
|
||||
SubIdentityAdded: AugmentedEvent<ApiType, [sub: AccountId32, main: AccountId32, deposit: u128], { sub: AccountId32, main: AccountId32, deposit: u128 }>;
|
||||
/**
|
||||
* A sub-identity was removed from an identity and the deposit freed.
|
||||
**/
|
||||
SubIdentityRemoved: AugmentedEvent<ApiType, [sub: AccountId32, main: AccountId32, deposit: u128], { sub: AccountId32, main: AccountId32, deposit: u128 }>;
|
||||
/**
|
||||
* A sub-identity was cleared, and the given deposit repatriated from the
|
||||
* main identity account to the sub-identity account.
|
||||
**/
|
||||
SubIdentityRevoked: AugmentedEvent<ApiType, [sub: AccountId32, main: AccountId32, deposit: u128], { sub: AccountId32, main: AccountId32, deposit: u128 }>;
|
||||
/**
|
||||
* A username was queued, but `who` must accept it prior to `expiration`.
|
||||
**/
|
||||
UsernameQueued: AugmentedEvent<ApiType, [who: AccountId32, username: Bytes, expiration: u32], { who: AccountId32, username: Bytes, expiration: u32 }>;
|
||||
/**
|
||||
* A username was set for `who`.
|
||||
**/
|
||||
UsernameSet: AugmentedEvent<ApiType, [who: AccountId32, username: Bytes], { who: AccountId32, username: Bytes }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
indices: {
|
||||
/**
|
||||
* A account index was assigned.
|
||||
@@ -667,19 +605,33 @@ declare module '@polkadot/api-base/types/events' {
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
onDemand: {
|
||||
/**
|
||||
* An order was placed at some spot price amount by orderer ordered_by
|
||||
**/
|
||||
OnDemandOrderPlaced: AugmentedEvent<ApiType, [paraId: u32, spotPrice: u128, orderedBy: AccountId32], { paraId: u32, spotPrice: u128, orderedBy: AccountId32 }>;
|
||||
/**
|
||||
* The value of the spot price has likely changed
|
||||
**/
|
||||
SpotPriceSet: AugmentedEvent<ApiType, [spotPrice: u128], { spotPrice: u128 }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
paraInclusion: {
|
||||
/**
|
||||
* A candidate was backed. `[candidate, head_data]`
|
||||
**/
|
||||
CandidateBacked: AugmentedEvent<ApiType, [PolkadotPrimitivesV6CandidateReceipt, Bytes, u32, u32]>;
|
||||
CandidateBacked: AugmentedEvent<ApiType, [PolkadotPrimitivesV7CandidateReceipt, Bytes, u32, u32]>;
|
||||
/**
|
||||
* A candidate was included. `[candidate, head_data]`
|
||||
**/
|
||||
CandidateIncluded: AugmentedEvent<ApiType, [PolkadotPrimitivesV6CandidateReceipt, Bytes, u32, u32]>;
|
||||
CandidateIncluded: AugmentedEvent<ApiType, [PolkadotPrimitivesV7CandidateReceipt, Bytes, u32, u32]>;
|
||||
/**
|
||||
* A candidate timed out. `[candidate, head_data]`
|
||||
**/
|
||||
CandidateTimedOut: AugmentedEvent<ApiType, [PolkadotPrimitivesV6CandidateReceipt, Bytes, u32]>;
|
||||
CandidateTimedOut: AugmentedEvent<ApiType, [PolkadotPrimitivesV7CandidateReceipt, Bytes, u32]>;
|
||||
/**
|
||||
* Some upward messages have been received and will be processed.
|
||||
**/
|
||||
@@ -689,6 +641,18 @@ declare module '@polkadot/api-base/types/events' {
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
parameters: {
|
||||
/**
|
||||
* A Parameter was set.
|
||||
*
|
||||
* Is also emitted when the value was not changed.
|
||||
**/
|
||||
Updated: AugmentedEvent<ApiType, [key: PolkadotRuntimeRuntimeParametersKey, oldValue: Option<PolkadotRuntimeRuntimeParametersValue>, newValue: Option<PolkadotRuntimeRuntimeParametersValue>], { key: PolkadotRuntimeRuntimeParametersKey, oldValue: Option<PolkadotRuntimeRuntimeParametersValue>, newValue: Option<PolkadotRuntimeRuntimeParametersValue> }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
paras: {
|
||||
/**
|
||||
* A para has been queued to execute pending actions. `para_id`
|
||||
@@ -892,6 +856,19 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* The given task can never be executed since it is overweight.
|
||||
**/
|
||||
PermanentlyOverweight: AugmentedEvent<ApiType, [task: ITuple<[u32, u32]>, id: Option<U8aFixed>], { task: ITuple<[u32, u32]>, id: Option<U8aFixed> }>;
|
||||
/**
|
||||
* Cancel a retry configuration for some task.
|
||||
**/
|
||||
RetryCancelled: AugmentedEvent<ApiType, [task: ITuple<[u32, u32]>, id: Option<U8aFixed>], { task: ITuple<[u32, u32]>, id: Option<U8aFixed> }>;
|
||||
/**
|
||||
* The given task was unable to be retried since the agenda is full at that block or there
|
||||
* was not enough weight to reschedule it.
|
||||
**/
|
||||
RetryFailed: AugmentedEvent<ApiType, [task: ITuple<[u32, u32]>, id: Option<U8aFixed>], { task: ITuple<[u32, u32]>, id: Option<U8aFixed> }>;
|
||||
/**
|
||||
* Set a retry configuration for some task.
|
||||
**/
|
||||
RetrySet: AugmentedEvent<ApiType, [task: ITuple<[u32, u32]>, id: Option<U8aFixed>, period: u32, retries: u8], { task: ITuple<[u32, u32]>, id: Option<U8aFixed>, period: u32, retries: u8 }>;
|
||||
/**
|
||||
* Scheduled some task.
|
||||
**/
|
||||
@@ -1110,14 +1087,6 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* A payment failed and can be retried.
|
||||
**/
|
||||
PaymentFailed: AugmentedEvent<ApiType, [index: u32, paymentId: u64], { index: u32, paymentId: u64 }>;
|
||||
/**
|
||||
* New proposal.
|
||||
**/
|
||||
Proposed: AugmentedEvent<ApiType, [proposalIndex: u32], { proposalIndex: u32 }>;
|
||||
/**
|
||||
* A proposal was rejected; funds were slashed.
|
||||
**/
|
||||
Rejected: AugmentedEvent<ApiType, [proposalIndex: u32, slashed: u128], { proposalIndex: u32, slashed: u128 }>;
|
||||
/**
|
||||
* Spending has finished; this is the amount that rolls over until next spend.
|
||||
**/
|
||||
|
||||
@@ -6,12 +6,11 @@
|
||||
import '@polkadot/api-base/types/storage';
|
||||
|
||||
import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/api-base/types';
|
||||
import type { Data } from '@polkadot/types';
|
||||
import type { BTreeMap, BTreeSet, Bytes, Null, Option, U8aFixed, Vec, bool, u128, u16, u32, u64 } from '@polkadot/types-codec';
|
||||
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
||||
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
||||
import type { AccountId32, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
||||
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesIdAmountRuntimeFreezeReason, PalletBalancesIdAmountRuntimeHoldReason, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletConvictionVotingVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityAuthorityProperties, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageOldRequestStatus, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletReferendaReferendumInfo, PalletSchedulerScheduled, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletTreasurySpendStatus, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesPrimitivesHrmpChannelId, PolkadotPrimitivesV6AssignmentAppPublic, PolkadotPrimitivesV6CandidateCommitments, PolkadotPrimitivesV6DisputeState, PolkadotPrimitivesV6ExecutorParams, PolkadotPrimitivesV6ScrapedOnChainVotes, PolkadotPrimitivesV6SessionInfo, PolkadotPrimitivesV6SlashingPendingSlashes, PolkadotPrimitivesV6UpgradeGoAhead, PolkadotPrimitivesV6UpgradeRestriction, PolkadotPrimitivesV6ValidatorAppPublic, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonImplsVersionedLocatableAsset, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerPalletCoreOccupied, PolkadotRuntimeParachainsSchedulerPalletParasEntry, PolkadotRuntimeParachainsSharedAllowedRelayParentsTracker, PolkadotRuntimeSessionKeys, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyMmrBeefyAuthoritySet, SpConsensusGrandpaAppPublic, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingExposure, SpStakingExposurePage, SpStakingOffenceOffenceDetails, SpStakingPagedExposureMetadata, SpWeightsWeightV2Weight, XcmVersionedAssetId, XcmVersionedLocation } from '@polkadot/types/lookup';
|
||||
import type { BinaryHeapEnqueuedOrder, FrameSupportDispatchPerDispatchClassWeight, FrameSupportTokensMiscIdAmountRuntimeFreezeReason, FrameSupportTokensMiscIdAmountRuntimeHoldReason, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletConvictionVotingVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageOldRequestStatus, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletReferendaReferendumInfo, PalletSchedulerRetryConfig, PalletSchedulerScheduled, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletTreasurySpendStatus, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesPrimitivesHrmpChannelId, PolkadotPrimitivesV7AssignmentAppPublic, PolkadotPrimitivesV7DisputeState, PolkadotPrimitivesV7ExecutorParams, PolkadotPrimitivesV7ScrapedOnChainVotes, PolkadotPrimitivesV7SessionInfo, PolkadotPrimitivesV7SlashingPendingSlashes, PolkadotPrimitivesV7UpgradeGoAhead, PolkadotPrimitivesV7UpgradeRestriction, PolkadotPrimitivesV7ValidatorAppPublic, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonImplsVersionedLocatableAsset, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor, PolkadotRuntimeParachainsAssignerCoretimeSchedule, PolkadotRuntimeParachainsAssignerOnDemandTypesCoreAffinityCount, PolkadotRuntimeParachainsAssignerOnDemandTypesEnqueuedOrder, PolkadotRuntimeParachainsAssignerOnDemandTypesQueueStatusType, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerPalletCoreOccupied, PolkadotRuntimeParachainsSchedulerPalletParasEntry, PolkadotRuntimeParachainsSharedAllowedRelayParentsTracker, PolkadotRuntimeRuntimeParametersKey, PolkadotRuntimeRuntimeParametersValue, PolkadotRuntimeSessionKeys, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyMmrBeefyAuthoritySet, SpConsensusGrandpaAppPublic, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingExposure, SpStakingExposurePage, SpStakingOffenceOffenceDetails, SpStakingPagedExposureMetadata, SpWeightsWeightV2Weight, StagingXcmV4Instruction, StagingXcmV4Xcm, XcmVersionedAssetId, XcmVersionedLocation } from '@polkadot/types/lookup';
|
||||
import type { Observable } from '@polkadot/types/types';
|
||||
|
||||
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
||||
@@ -228,11 +227,11 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
/**
|
||||
* Freeze locks on account balances.
|
||||
**/
|
||||
freezes: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesIdAmountRuntimeFreezeReason>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
freezes: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<FrameSupportTokensMiscIdAmountRuntimeFreezeReason>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
* Holds on account balances.
|
||||
**/
|
||||
holds: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesIdAmountRuntimeHoldReason>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
holds: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<FrameSupportTokensMiscIdAmountRuntimeHoldReason>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
* The total units of outstanding deactivated balance in the system.
|
||||
**/
|
||||
@@ -240,10 +239,14 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
/**
|
||||
* Any liquidity locks on some account balances.
|
||||
* NOTE: Should only be accessed when setting, changing and freeing a lock.
|
||||
*
|
||||
* Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
|
||||
**/
|
||||
locks: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesBalanceLock>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
* Named reserves on some account balances.
|
||||
*
|
||||
* Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
|
||||
**/
|
||||
reserves: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesReserveData>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
@@ -422,6 +425,26 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
coretimeAssignmentProvider: {
|
||||
/**
|
||||
* Assignments which are currently active.
|
||||
*
|
||||
* They will be picked from `PendingAssignments` once we reach the scheduled block number in
|
||||
* `PendingAssignments`.
|
||||
**/
|
||||
coreDescriptors: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* Scheduled assignment sets.
|
||||
*
|
||||
* Assignments as of the given block number. They will go into state once the block number is
|
||||
* reached (and replace whatever was in there before).
|
||||
**/
|
||||
coreSchedules: AugmentedQuery<ApiType, (arg: ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array]) => Observable<Option<PolkadotRuntimeParachainsAssignerCoretimeSchedule>>, [ITuple<[u32, u32]>]> & QueryableStorageEntry<ApiType, [ITuple<[u32, u32]>]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
crowdloan: {
|
||||
/**
|
||||
* The number of auctions that have entered into their ending period so far.
|
||||
@@ -727,60 +750,6 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
identity: {
|
||||
/**
|
||||
* Reverse lookup from `username` to the `AccountId` that has registered it. The value should
|
||||
* be a key in the `IdentityOf` map, but it may not if the user has cleared their identity.
|
||||
*
|
||||
* Multiple usernames may map to the same `AccountId`, but `IdentityOf` will only map to one
|
||||
* primary username.
|
||||
**/
|
||||
accountOfUsername: AugmentedQuery<ApiType, (arg: Bytes | string | Uint8Array) => Observable<Option<AccountId32>>, [Bytes]> & QueryableStorageEntry<ApiType, [Bytes]>;
|
||||
/**
|
||||
* Information that is pertinent to identify the entity behind an account. First item is the
|
||||
* registration, second is the account's primary username.
|
||||
*
|
||||
* TWOX-NOTE: OK ― `AccountId` is a secure hash.
|
||||
**/
|
||||
identityOf: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<ITuple<[PalletIdentityRegistration, Option<Bytes>]>>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
* Usernames that an authority has granted, but that the account controller has not confirmed
|
||||
* that they want it. Used primarily in cases where the `AccountId` cannot provide a signature
|
||||
* because they are a pure proxy, multisig, etc. In order to confirm it, they should call
|
||||
* [`Call::accept_username`].
|
||||
*
|
||||
* First tuple item is the account and second is the acceptance deadline.
|
||||
**/
|
||||
pendingUsernames: AugmentedQuery<ApiType, (arg: Bytes | string | Uint8Array) => Observable<Option<ITuple<[AccountId32, u32]>>>, [Bytes]> & QueryableStorageEntry<ApiType, [Bytes]>;
|
||||
/**
|
||||
* The set of registrars. Not expected to get very big as can only be added through a
|
||||
* special origin (likely a council motion).
|
||||
*
|
||||
* The index into this can be cast to `RegistrarIndex` to get a valid value.
|
||||
**/
|
||||
registrars: AugmentedQuery<ApiType, () => Observable<Vec<Option<PalletIdentityRegistrarInfo>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Alternative "sub" identities of this account.
|
||||
*
|
||||
* The first item is the deposit, the second is a vector of the accounts.
|
||||
*
|
||||
* TWOX-NOTE: OK ― `AccountId` is a secure hash.
|
||||
**/
|
||||
subsOf: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<ITuple<[u128, Vec<AccountId32>]>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
* The super-identity of an alternative "sub" identity together with its name, within that
|
||||
* context. If the account is not some other account's sub-identity, then just `None`.
|
||||
**/
|
||||
superOf: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<ITuple<[AccountId32, Data]>>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
* A map of the accounts who are authorized to grant usernames.
|
||||
**/
|
||||
usernameAuthorities: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletIdentityAuthorityProperties>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
indices: {
|
||||
/**
|
||||
* The lookup from index to account.
|
||||
@@ -952,13 +921,13 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
/**
|
||||
* A reverse lookup from the pool's account id to its id.
|
||||
*
|
||||
* This is only used for slashing. In all other instances, the pool id is used, and the
|
||||
* accounts are deterministically derived from it.
|
||||
* This is only used for slashing and on automatic withdraw update. In all other instances, the
|
||||
* pool id is used, and the accounts are deterministically derived from it.
|
||||
**/
|
||||
reversePoolIdLookup: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u32>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
* Reward pools. This is where there rewards for each pool accumulate. When a members payout is
|
||||
* claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account.
|
||||
* claimed, the balance comes out of the reward pool. Keyed by the bonded pools account.
|
||||
**/
|
||||
rewardPools: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsRewardPool>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
@@ -993,19 +962,43 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
onDemand: {
|
||||
/**
|
||||
* Queue entries that are currently bound to a particular core due to core affinity.
|
||||
**/
|
||||
affinityEntries: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<BinaryHeapEnqueuedOrder>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* Priority queue for all orders which don't yet (or not any more) have any core affinity.
|
||||
**/
|
||||
freeEntries: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotRuntimeParachainsAssignerOnDemandTypesEnqueuedOrder>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Maps a `ParaId` to `CoreIndex` and keeps track of how many assignments the scheduler has in
|
||||
* it's lookahead. Keeping track of this affinity prevents parallel execution of the same
|
||||
* `ParaId` on two or more `CoreIndex`es.
|
||||
**/
|
||||
paraIdAffinity: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotRuntimeParachainsAssignerOnDemandTypesCoreAffinityCount>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* Overall status of queue (both free + affinity entries)
|
||||
**/
|
||||
queueStatus: AugmentedQuery<ApiType, () => Observable<PolkadotRuntimeParachainsAssignerOnDemandTypesQueueStatusType>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Keeps track of accumulated revenue from on demand order sales.
|
||||
**/
|
||||
revenue: AugmentedQuery<ApiType, () => Observable<Vec<u128>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
paraInclusion: {
|
||||
/**
|
||||
* The latest bitfield for each validator, referred to by their index in the validator set.
|
||||
* Candidates pending availability by `ParaId`. They form a chain starting from the latest
|
||||
* included head of the para.
|
||||
* Use a different prefix post-migration to v1, since the v0 `PendingAvailability` storage
|
||||
* would otherwise have the exact same prefix which could cause undefined behaviour when doing
|
||||
* the migration.
|
||||
**/
|
||||
availabilityBitfields: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* Candidates pending availability by `ParaId`.
|
||||
**/
|
||||
pendingAvailability: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotRuntimeParachainsInclusionCandidatePendingAvailability>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* The commitments of candidates pending availability, by `ParaId`.
|
||||
**/
|
||||
pendingAvailabilityCommitments: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV6CandidateCommitments>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
v1: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Vec<PolkadotRuntimeParachainsInclusionCandidatePendingAvailability>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
@@ -1024,7 +1017,17 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
/**
|
||||
* Scraped on chain data for extracting resolved disputes as well as backing votes.
|
||||
**/
|
||||
onChainVotes: AugmentedQuery<ApiType, () => Observable<Option<PolkadotPrimitivesV6ScrapedOnChainVotes>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
onChainVotes: AugmentedQuery<ApiType, () => Observable<Option<PolkadotPrimitivesV7ScrapedOnChainVotes>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
parameters: {
|
||||
/**
|
||||
* Stored parameters.
|
||||
**/
|
||||
parameters: AugmentedQuery<ApiType, (arg: PolkadotRuntimeRuntimeParametersKey | { Inflation: any } | string | Uint8Array) => Observable<Option<PolkadotRuntimeRuntimeParametersValue>>, [PolkadotRuntimeRuntimeParametersKey]> & QueryableStorageEntry<ApiType, [PolkadotRuntimeRuntimeParametersKey]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
@@ -1059,11 +1062,23 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
futureCodeHash: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<H256>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* The block number at which the planned code change is expected for a para.
|
||||
* The block number at which the planned code change is expected for a parachain.
|
||||
*
|
||||
* The change will be applied after the first parablock for this ID included which executes
|
||||
* in the context of a relay chain block with a number >= `expected_at`.
|
||||
**/
|
||||
futureCodeUpgrades: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* The list of upcoming future code upgrades.
|
||||
*
|
||||
* Each item is a pair of the parachain and the expected block at which the upgrade should be
|
||||
* applied. The upgrade will be applied at the given relay chain block. In contrast to
|
||||
* [`FutureCodeUpgrades`] this code upgrade will be applied regardless the parachain making any
|
||||
* progress or not.
|
||||
*
|
||||
* Ordered ascending by block number.
|
||||
**/
|
||||
futureCodeUpgradesAt: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The head-data of every registered para.
|
||||
**/
|
||||
@@ -1124,8 +1139,10 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
upcomingParasGenesis: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotRuntimeParachainsParasParaGenesisArgs>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* The list of upcoming code upgrades. Each item is a pair of which para performs a code
|
||||
* upgrade and at which relay-chain block it is expected at.
|
||||
* The list of upcoming code upgrades.
|
||||
*
|
||||
* Each item is a pair of which para performs a code upgrade and at which relay-chain block it
|
||||
* is expected at.
|
||||
*
|
||||
* Ordered ascending by block number.
|
||||
**/
|
||||
@@ -1148,7 +1165,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* NOTE that this field is used by parachains via merkle storage proofs, therefore changing
|
||||
* the format will require migration of parachains.
|
||||
**/
|
||||
upgradeGoAheadSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV6UpgradeGoAhead>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
upgradeGoAheadSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV7UpgradeGoAhead>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* This is used by the relay-chain to communicate that there are restrictions for performing
|
||||
* an upgrade for this parachain.
|
||||
@@ -1160,7 +1177,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* NOTE that this field is used by parachains via merkle storage proofs, therefore changing
|
||||
* the format will require migration of parachains.
|
||||
**/
|
||||
upgradeRestrictionSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV6UpgradeRestriction>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
upgradeRestrictionSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV7UpgradeRestriction>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
@@ -1168,10 +1185,8 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
};
|
||||
paraScheduler: {
|
||||
/**
|
||||
* One entry for each availability core. Entries are `None` if the core is not currently
|
||||
* occupied. Can be temporarily `Some` if scheduled but not occupied.
|
||||
* The i'th parachain belongs to the i'th core, with the remaining cores all being
|
||||
* parathread-multiplexers.
|
||||
* One entry for each availability core. The i'th parachain belongs to the i'th core, with the
|
||||
* remaining cores all being on demand parachain multiplexers.
|
||||
*
|
||||
* Bounded by the maximum of either of these two values:
|
||||
* * The number of parachains and parathread multiplexers
|
||||
@@ -1180,10 +1195,8 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
availabilityCores: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotRuntimeParachainsSchedulerPalletCoreOccupied>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* One entry for each availability core. The `VecDeque` represents the assignments to be
|
||||
* scheduled on that core. `None` is used to signal to not schedule the next para of the core
|
||||
* as there is one currently being scheduled. Not using `None` here would overwrite the
|
||||
* `CoreState` in the runtime API. The value contained here will not be valid after the end of
|
||||
* a block. Runtime APIs should be used to determine scheduled cores/ for the upcoming block.
|
||||
* scheduled on that core. The value contained here will not be valid after the end of
|
||||
* a block. Runtime APIs should be used to determine scheduled cores for the upcoming block.
|
||||
**/
|
||||
claimQueue: AugmentedQuery<ApiType, () => Observable<BTreeMap<u32, Vec<PolkadotRuntimeParachainsSchedulerPalletParasEntry>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
@@ -1220,7 +1233,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
/**
|
||||
* All ongoing or concluded disputes for the last several sessions.
|
||||
**/
|
||||
disputes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<PolkadotPrimitivesV6DisputeState>>, [u32, H256]> & QueryableStorageEntry<ApiType, [u32, H256]>;
|
||||
disputes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<PolkadotPrimitivesV7DisputeState>>, [u32, H256]> & QueryableStorageEntry<ApiType, [u32, H256]>;
|
||||
/**
|
||||
* Whether the chain is frozen. Starts as `None`. When this is `Some`,
|
||||
* the chain will not accept any new parachain blocks for backing or inclusion,
|
||||
@@ -1253,7 +1266,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* Note that this API is private due to it being prone to 'off-by-one' at session boundaries.
|
||||
* When in doubt, use `Sessions` API instead.
|
||||
**/
|
||||
assignmentKeysUnsafe: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV6AssignmentAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
assignmentKeysUnsafe: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV7AssignmentAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The earliest session for which previous session info is stored.
|
||||
**/
|
||||
@@ -1261,13 +1274,13 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
/**
|
||||
* Executor parameter set for a given session index
|
||||
**/
|
||||
sessionExecutorParams: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV6ExecutorParams>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
sessionExecutorParams: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV7ExecutorParams>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* Session information in a rolling window.
|
||||
* Should have an entry in range `EarliestStoredSession..=CurrentSessionIndex`.
|
||||
* Does not have any entries before the session index in the first session change notification.
|
||||
**/
|
||||
sessions: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV6SessionInfo>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
sessions: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV7SessionInfo>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
@@ -1283,7 +1296,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* The parachain attestation keys of the validators actively participating in parachain
|
||||
* consensus. This should be the same length as `ActiveValidatorIndices`.
|
||||
**/
|
||||
activeValidatorKeys: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV6ValidatorAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
activeValidatorKeys: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV7ValidatorAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* All allowed relay-parents.
|
||||
**/
|
||||
@@ -1301,7 +1314,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
/**
|
||||
* Validators pending dispute slashes.
|
||||
**/
|
||||
unappliedSlashes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<PolkadotPrimitivesV6SlashingPendingSlashes>>, [u32, H256]> & QueryableStorageEntry<ApiType, [u32, H256]>;
|
||||
unappliedSlashes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<PolkadotPrimitivesV7SlashingPendingSlashes>>, [u32, H256]> & QueryableStorageEntry<ApiType, [u32, H256]>;
|
||||
/**
|
||||
* `ValidatorSetCount` per session.
|
||||
**/
|
||||
@@ -1409,6 +1422,10 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* identities.
|
||||
**/
|
||||
lookup: AugmentedQuery<ApiType, (arg: U8aFixed | string | Uint8Array) => Observable<Option<ITuple<[u32, u32]>>>, [U8aFixed]> & QueryableStorageEntry<ApiType, [U8aFixed]>;
|
||||
/**
|
||||
* Retry configurations for items to be executed, indexed by task address.
|
||||
**/
|
||||
retries: AugmentedQuery<ApiType, (arg: ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array]) => Observable<Option<PalletSchedulerRetryConfig>>, [ITuple<[u32, u32]>]> & QueryableStorageEntry<ApiType, [ITuple<[u32, u32]>]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
@@ -1528,6 +1545,10 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* Counter for the related counted storage map
|
||||
**/
|
||||
counterForValidators: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Counter for the related counted storage map
|
||||
**/
|
||||
counterForVirtualStakers: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The current era index.
|
||||
*
|
||||
@@ -1541,6 +1562,16 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* This is basically in sync with the call to [`pallet_session::SessionManager::new_session`].
|
||||
**/
|
||||
currentPlannedSession: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Indices of validators that have offended in the active era. The offenders are disabled for a
|
||||
* whole era. For this reason they are kept here - only staking pallet knows about eras. The
|
||||
* implementor of [`DisablingStrategy`] defines if a validator should be disabled which
|
||||
* implicitly means that the implementor also controls the max number of disabled validators.
|
||||
*
|
||||
* The vec is always kept sorted so that we can find whether a given validator has previously
|
||||
* offended using binary search.
|
||||
**/
|
||||
disabledValidators: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Rewards for the last [`Config::HistoryDepth`] eras.
|
||||
* If reward hasn't been set or has been removed then 0 reward is returned.
|
||||
@@ -1649,6 +1680,12 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* When this value is not set, no limits are enforced.
|
||||
**/
|
||||
maxNominatorsCount: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Maximum staked rewards, i.e. the percentage of the era inflation that
|
||||
* is used for stake rewards.
|
||||
* See [Era payout](./index.html#era-payout).
|
||||
**/
|
||||
maxStakedRewards: AugmentedQuery<ApiType, () => Observable<Option<Percent>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The maximum validator count before we stop allowing new validators to join.
|
||||
*
|
||||
@@ -1703,18 +1740,6 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* All slashing events on nominators, mapped by era to the highest slash value of the era.
|
||||
**/
|
||||
nominatorSlashInEra: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<u128>>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
|
||||
/**
|
||||
* Indices of validators that have offended in the active era and whether they are currently
|
||||
* disabled.
|
||||
*
|
||||
* This value should be a superset of disabled validators since not all offences lead to the
|
||||
* validator being disabled (if there was no slash). This is needed to track the percentage of
|
||||
* validators that have offended in the current era, ensuring a new era is forced if
|
||||
* `OffendingValidatorsThreshold` is reached. The vec is always kept sorted so that we can find
|
||||
* whether a given validator has previously offended using binary search. It gets cleared when
|
||||
* the era ends.
|
||||
**/
|
||||
offendingValidators: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, bool]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Where the reward payment should be made. Keyed by stash.
|
||||
*
|
||||
@@ -1755,6 +1780,15 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* and slash value of the era.
|
||||
**/
|
||||
validatorSlashInEra: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<ITuple<[Perbill, u128]>>>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
|
||||
/**
|
||||
* Stakers whose funds are managed by other pallets.
|
||||
*
|
||||
* This pallet does not apply any locks on them, therefore they are only virtually bonded. They
|
||||
* are expected to be keyless accounts and hence should not be allowed to mutate their ledger
|
||||
* directly via this pallet. Instead, these accounts are managed by other pallets and accessed
|
||||
* via low level apis. We keep track of them to do minimal integrity checks.
|
||||
**/
|
||||
virtualStakers: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<Null>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
@@ -1849,6 +1883,10 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* Extrinsics data for the current block (maps an extrinsic's index to its data).
|
||||
**/
|
||||
extrinsicData: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Bytes>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* Whether all inherents have been applied.
|
||||
**/
|
||||
inherentsApplied: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened.
|
||||
**/
|
||||
@@ -1999,6 +2037,15 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* The latest available query index.
|
||||
**/
|
||||
queryCounter: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* If [`ShouldRecordXcm`] is set to true, then the last XCM program executed locally
|
||||
* will be stored here.
|
||||
* Runtime APIs can fetch the XCM that was executed by accessing this value.
|
||||
*
|
||||
* Only relevant if this pallet is being used as the [`xcm_executor::traits::RecordXcm`]
|
||||
* implementation in the XCM executor configuration.
|
||||
**/
|
||||
recordedXcm: AugmentedQuery<ApiType, () => Observable<Option<Vec<StagingXcmV4Instruction>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Fungible assets which we know are locked on a remote chain.
|
||||
**/
|
||||
@@ -2008,6 +2055,16 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* then the destinations whose XCM version is unknown are considered unreachable.
|
||||
**/
|
||||
safeXcmVersion: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Whether or not incoming XCMs (both executed locally and received) should be recorded.
|
||||
* Only one XCM program will be recorded at a time.
|
||||
* This is meant to be used in runtime APIs, and it's advised it stays false
|
||||
* for all other use cases, so as to not degrade regular performance.
|
||||
*
|
||||
* Only relevant if this pallet is being used as the [`xcm_executor::traits::RecordXcm`]
|
||||
* implementation in the XCM executor configuration.
|
||||
**/
|
||||
shouldRecordXcm: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The Latest versions that we know various locations support.
|
||||
**/
|
||||
|
||||
@@ -6,27 +6,14 @@
|
||||
import '@polkadot/api-base/types/calls';
|
||||
|
||||
import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-base/types';
|
||||
import type { Bytes, Null, Option, Result, U64, Vec, bool, u32 } from '@polkadot/types-codec';
|
||||
import type { BTreeMap, BitVec, Bytes, Null, Option, Result, Text, Vec, bool, u128, u32, u64 } from '@polkadot/types-codec';
|
||||
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
||||
import type { BabeEquivocationProof, BabeGenesisConfiguration, Epoch, OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
|
||||
import type { BeefyAuthoritySet, BeefyEquivocationProof, BeefyNextAuthoritySet, ValidatorSet, ValidatorSetId } from '@polkadot/types/interfaces/beefy';
|
||||
import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfaces/blockbuilder';
|
||||
import type { BlockHash } from '@polkadot/types/interfaces/chain';
|
||||
import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
|
||||
import type { OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
|
||||
import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
|
||||
import type { GenesisBuildErr } from '@polkadot/types/interfaces/genesisBuilder';
|
||||
import type { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/types/interfaces/grandpa';
|
||||
import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
|
||||
import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError } from '@polkadot/types/interfaces/mmr';
|
||||
import type { NpPoolId } from '@polkadot/types/interfaces/nompools';
|
||||
import type { ApprovalVotingParams, AsyncBackingParams, BackingState, CandidateCommitments, CandidateEvent, CandidateHash, CommittedCandidateReceipt, CoreState, DisputeProof, DisputeState, ExecutorParams, GroupRotationInfo, InboundDownwardMessage, InboundHrmpMessage, NodeFeatures, OccupiedCoreAssumption, ParaId, ParaValidatorIndex, PendingSlashes, PersistedValidationData, PvfCheckStatement, ScrapedOnChainVotes, SessionInfo, ValidationCode, ValidationCodeHash, ValidatorSignature } from '@polkadot/types/interfaces/parachains';
|
||||
import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
|
||||
import type { AccountId, Balance, Block, BlockNumber, Call, Hash, Header, Index, KeyTypeId, Slot, ValidatorId, Weight } from '@polkadot/types/interfaces/runtime';
|
||||
import type { SessionIndex } from '@polkadot/types/interfaces/session';
|
||||
import type { ValidatorIndex } from '@polkadot/types/interfaces/staking';
|
||||
import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
|
||||
import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system';
|
||||
import type { TransactionSource, TransactionValidity } from '@polkadot/types/interfaces/txqueue';
|
||||
import type { ParaId, ValidationCodeHash } from '@polkadot/types/interfaces/parachains';
|
||||
import type { AccountId32, H256, RuntimeCall, Slot } from '@polkadot/types/interfaces/runtime';
|
||||
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, PolkadotRuntimeOriginCaller, 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, XcmRuntimeApisConversionsError, XcmRuntimeApisDryRunCallDryRunEffects, XcmRuntimeApisDryRunError, XcmRuntimeApisDryRunXcmDryRunEffects, XcmRuntimeApisFeesError, XcmVersionedAssetId, XcmVersionedAssets, XcmVersionedLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
|
||||
import type { IExtrinsic, Observable } from '@polkadot/types/types';
|
||||
|
||||
export type __AugmentedCall<ApiType extends ApiTypes> = AugmentedCall<ApiType>;
|
||||
@@ -34,189 +21,230 @@ export type __DecoratedCallBase<ApiType extends ApiTypes> = DecoratedCallBase<Ap
|
||||
|
||||
declare module '@polkadot/api-base/types/calls' {
|
||||
interface AugmentedCalls<ApiType extends ApiTypes> {
|
||||
/** 0xbc9d89904f5b923f/1 */
|
||||
/** 0xbc9d89904f5b923f/ */
|
||||
accountNonceApi: {
|
||||
/**
|
||||
* The API to query account nonce (aka transaction index)
|
||||
* Get current account nonce of given `AccountId`.
|
||||
**/
|
||||
accountNonce: AugmentedCall<ApiType, (accountId: AccountId | string | Uint8Array) => Observable<Index>>;
|
||||
accountNonce: AugmentedCall<ApiType, (account: AccountId32 | string | Uint8Array) => Observable<u32>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x687ad44ad37f03c2/1 */
|
||||
/** 0x687ad44ad37f03c2/ */
|
||||
authorityDiscoveryApi: {
|
||||
/**
|
||||
* Retrieve authority identifiers of the current and next authority set.
|
||||
**/
|
||||
authorities: AugmentedCall<ApiType, () => Observable<Vec<AuthorityId>>>;
|
||||
authorities: AugmentedCall<ApiType, () => Observable<Vec<SpAuthorityDiscoveryAppPublic>>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0xcbca25e39f142387/2 */
|
||||
/** 0xcbca25e39f142387/ */
|
||||
babeApi: {
|
||||
/**
|
||||
* Return the genesis configuration for BABE. The configuration is only read on genesis.
|
||||
* Return the configuration for BABE.
|
||||
**/
|
||||
configuration: AugmentedCall<ApiType, () => Observable<BabeGenesisConfiguration>>;
|
||||
configuration: AugmentedCall<ApiType, () => Observable<SpConsensusBabeBabeConfiguration>>;
|
||||
/**
|
||||
* Returns information regarding the current epoch.
|
||||
**/
|
||||
currentEpoch: AugmentedCall<ApiType, () => Observable<Epoch>>;
|
||||
currentEpoch: AugmentedCall<ApiType, () => Observable<SpConsensusBabeEpoch>>;
|
||||
/**
|
||||
* Returns the slot that started the current epoch.
|
||||
**/
|
||||
currentEpochStart: AugmentedCall<ApiType, () => Observable<Slot>>;
|
||||
/**
|
||||
* Generates a proof of key ownership for the given authority in the current epoch.
|
||||
* 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.
|
||||
**/
|
||||
generateKeyOwnershipProof: AugmentedCall<ApiType, (slot: Slot | AnyNumber | Uint8Array, authorityId: AuthorityId | string | Uint8Array) => Observable<Option<OpaqueKeyOwnershipProof>>>;
|
||||
generateKeyOwnershipProof: AugmentedCall<ApiType, (slot: Slot | AnyNumber | Uint8Array, authority_id: SpConsensusBabeAppPublic | string | Uint8Array) => Observable<Option<Bytes>>>;
|
||||
/**
|
||||
* Returns information regarding the next epoch (which was already previously announced).
|
||||
* Returns information regarding the next epoch (which was already, previously announced).
|
||||
**/
|
||||
nextEpoch: AugmentedCall<ApiType, () => Observable<Epoch>>;
|
||||
nextEpoch: AugmentedCall<ApiType, () => Observable<SpConsensusBabeEpoch>>;
|
||||
/**
|
||||
* Submits an unsigned extrinsic to report an equivocation.
|
||||
* 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.
|
||||
**/
|
||||
submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocationProof: BabeEquivocationProof | { offender?: any; slotNumber?: any; firstHeader?: any; secondHeader?: any } | string | Uint8Array, keyOwnerProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
|
||||
submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocation_proof: SpConsensusSlotsEquivocationProof | { offender?: any; slot?: any; firstHeader?: any; secondHeader?: any } | string | Uint8Array, key_owner_proof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x49eaaf1b548a0cb0/3 */
|
||||
/** 0x49eaaf1b548a0cb0/ */
|
||||
beefyApi: {
|
||||
/**
|
||||
* Return the block number where BEEFY consensus is enabled/started
|
||||
**/
|
||||
beefyGenesis: AugmentedCall<ApiType, () => Observable<Option<BlockNumber>>>;
|
||||
beefyGenesis: AugmentedCall<ApiType, () => Observable<Option<u32>>>;
|
||||
/**
|
||||
* Generates a proof of key ownership for the given authority in the given set.
|
||||
* 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.
|
||||
**/
|
||||
generateKeyOwnershipProof: AugmentedCall<ApiType, (setId: ValidatorSetId | AnyNumber | Uint8Array, authorityId: AuthorityId | string | Uint8Array) => Observable<Option<OpaqueKeyOwnershipProof>>>;
|
||||
generateKeyOwnershipProof: AugmentedCall<ApiType, (set_id: u64 | AnyNumber | Uint8Array, authority_id: SpConsensusBeefyEcdsaCryptoPublic | string | Uint8Array) => Observable<Option<Bytes>>>;
|
||||
/**
|
||||
* Submits an unsigned extrinsic to report an equivocation.
|
||||
* 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.
|
||||
**/
|
||||
submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocationProof: BeefyEquivocationProof | { first?: any; second?: any } | string | Uint8Array, keyOwnerProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
|
||||
submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocation_proof: SpConsensusBeefyDoubleVotingProof | { first?: any; second?: any } | string | Uint8Array, key_owner_proof: Bytes | string | Uint8Array) => Observable<Option<Null>>>;
|
||||
/**
|
||||
* Return the current active BEEFY validator set
|
||||
**/
|
||||
validatorSet: AugmentedCall<ApiType, () => Observable<Option<ValidatorSet>>>;
|
||||
validatorSet: AugmentedCall<ApiType, () => Observable<Option<SpConsensusBeefyValidatorSet>>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x2a5e924655399e60/1 */
|
||||
/** 0x2a5e924655399e60/ */
|
||||
beefyMmrApi: {
|
||||
/**
|
||||
* Return the currently active BEEFY authority set proof.
|
||||
**/
|
||||
authoritySetProof: AugmentedCall<ApiType, () => Observable<BeefyAuthoritySet>>;
|
||||
authoritySetProof: AugmentedCall<ApiType, () => Observable<SpConsensusBeefyMmrBeefyAuthoritySet>>;
|
||||
/**
|
||||
* Return the next/queued BEEFY authority set proof.
|
||||
**/
|
||||
nextAuthoritySetProof: AugmentedCall<ApiType, () => Observable<BeefyNextAuthoritySet>>;
|
||||
nextAuthoritySetProof: AugmentedCall<ApiType, () => Observable<SpConsensusBeefyMmrBeefyAuthoritySet>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x40fe3ad401f8959a/6 */
|
||||
/** 0x40fe3ad401f8959a/ */
|
||||
blockBuilder: {
|
||||
/**
|
||||
* Apply the given extrinsic.
|
||||
* Apply the given extrinsic.,, Returns an inclusion outcome which specifies if this extrinsic is included in, this block or not.
|
||||
**/
|
||||
applyExtrinsic: AugmentedCall<ApiType, (extrinsic: Extrinsic | IExtrinsic | string | Uint8Array) => Observable<ApplyExtrinsicResult>>;
|
||||
applyExtrinsic: AugmentedCall<ApiType, (extrinsic: Extrinsic | IExtrinsic | string | Uint8Array) => Observable<Result<Result<Null, SpRuntimeDispatchError>, SpRuntimeTransactionValidityTransactionValidityError>>>;
|
||||
/**
|
||||
* Check that the inherents are valid.
|
||||
* Check that the inherents are valid. The inherent data will vary from chain to chain.
|
||||
**/
|
||||
checkInherents: AugmentedCall<ApiType, (block: Block | { header?: any; extrinsics?: any } | string | Uint8Array, data: InherentData | { data?: any } | string | Uint8Array) => Observable<CheckInherentsResult>>;
|
||||
checkInherents: AugmentedCall<ApiType, (block: SpRuntimeBlock | { header?: any; extrinsics?: any } | string | Uint8Array, data: SpInherentsInherentData | { data?: any } | string | Uint8Array) => Observable<SpInherentsCheckInherentsResult>>;
|
||||
/**
|
||||
* Finish the current block.
|
||||
**/
|
||||
finalizeBlock: AugmentedCall<ApiType, () => Observable<Header>>;
|
||||
finalizeBlock: AugmentedCall<ApiType, () => Observable<SpRuntimeHeader>>;
|
||||
/**
|
||||
* Generate inherent extrinsics.
|
||||
* Generate inherent extrinsics. The inherent data will vary from chain to chain.
|
||||
**/
|
||||
inherentExtrinsics: AugmentedCall<ApiType, (inherent: InherentData | { data?: any } | string | Uint8Array) => Observable<Vec<Extrinsic>>>;
|
||||
inherentExtrinsics: AugmentedCall<ApiType, (inherent: SpInherentsInherentData | { data?: any } | string | Uint8Array) => Observable<Vec<Bytes>>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0xdf6acb689907609b/4 */
|
||||
/** 0xdf6acb689907609b/ */
|
||||
core: {
|
||||
/**
|
||||
* Execute the given block.
|
||||
**/
|
||||
executeBlock: AugmentedCall<ApiType, (block: Block | { header?: any; extrinsics?: any } | string | Uint8Array) => Observable<Null>>;
|
||||
executeBlock: AugmentedCall<ApiType, (block: SpRuntimeBlock | { header?: any; extrinsics?: any } | string | Uint8Array) => Observable<Null>>;
|
||||
/**
|
||||
* Initialize a block with the given header.
|
||||
* Initialize a block with the given header and return the runtime executive mode.
|
||||
**/
|
||||
initializeBlock: AugmentedCall<ApiType, (header: Header | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } | string | Uint8Array) => Observable<Null>>;
|
||||
initializeBlock: AugmentedCall<ApiType, (header: SpRuntimeHeader | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } | string | Uint8Array) => Observable<SpRuntimeExtrinsicInclusionMode>>;
|
||||
/**
|
||||
* Returns the version of the runtime.
|
||||
**/
|
||||
version: AugmentedCall<ApiType, () => Observable<RuntimeVersion>>;
|
||||
version: AugmentedCall<ApiType, () => Observable<SpVersionRuntimeVersion>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0xfbc577b9d747efd6/1 */
|
||||
/** 0x91b1c8b16328eb92/ */
|
||||
dryRunApi: {
|
||||
/**
|
||||
* Dry run call.
|
||||
**/
|
||||
dryRunCall: AugmentedCall<ApiType, (origin: PolkadotRuntimeOriginCaller | { system: any } | { Void: any } | { Origins: any } | { ParachainsOrigin: any } | { XcmPallet: any } | string | Uint8Array, call: RuntimeCall | IMethod | string | Uint8Array) => Observable<Result<XcmRuntimeApisDryRunCallDryRunEffects, XcmRuntimeApisDryRunError>>>;
|
||||
/**
|
||||
* Dry run XCM program
|
||||
**/
|
||||
dryRunXcm: AugmentedCall<ApiType, (origin_location: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, xcm: XcmVersionedXcm | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => Observable<Result<XcmRuntimeApisDryRunXcmDryRunEffects, XcmRuntimeApisDryRunError>>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0xfbc577b9d747efd6/ */
|
||||
genesisBuilder: {
|
||||
/**
|
||||
* Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the storage.
|
||||
* 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.
|
||||
**/
|
||||
buildConfig: AugmentedCall<ApiType, (json: Bytes | string | Uint8Array) => Observable<Result<ITuple<[]>, GenesisBuildErr>>>;
|
||||
buildState: AugmentedCall<ApiType, (json: Bytes | string | Uint8Array) => Observable<Result<Null, Text>>>;
|
||||
/**
|
||||
* Creates the default `RuntimeGenesisConfig` and returns it as a JSON blob.
|
||||
* 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.
|
||||
**/
|
||||
createDefaultConfig: AugmentedCall<ApiType, () => Observable<Bytes>>;
|
||||
getPreset: AugmentedCall<ApiType, (id: Option<Text> | null | Uint8Array | Text | string) => Observable<Option<Bytes>>>;
|
||||
/**
|
||||
* 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.
|
||||
**/
|
||||
presetNames: AugmentedCall<ApiType, () => Observable<Vec<Text>>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0xed99c5acb25eedf5/3 */
|
||||
/** 0xed99c5acb25eedf5/ */
|
||||
grandpaApi: {
|
||||
/**
|
||||
* Get current GRANDPA authority set id.
|
||||
**/
|
||||
currentSetId: AugmentedCall<ApiType, () => Observable<SetId>>;
|
||||
currentSetId: AugmentedCall<ApiType, () => Observable<u64>>;
|
||||
/**
|
||||
* Generates a proof of key ownership for the given authority in the given set.
|
||||
* 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.
|
||||
**/
|
||||
generateKeyOwnershipProof: AugmentedCall<ApiType, (setId: SetId | AnyNumber | Uint8Array, authorityId: AuthorityId | string | Uint8Array) => Observable<Option<OpaqueKeyOwnershipProof>>>;
|
||||
generateKeyOwnershipProof: AugmentedCall<ApiType, (set_id: u64 | AnyNumber | Uint8Array, authority_id: SpConsensusGrandpaAppPublic | string | Uint8Array) => Observable<Option<Bytes>>>;
|
||||
/**
|
||||
* Get the current GRANDPA authorities and weights. This should not change except for when changes are scheduled and the corresponding delay has passed.
|
||||
* 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.
|
||||
**/
|
||||
grandpaAuthorities: AugmentedCall<ApiType, () => Observable<AuthorityList>>;
|
||||
grandpaAuthorities: AugmentedCall<ApiType, () => Observable<Vec<ITuple<[SpConsensusGrandpaAppPublic, u64]>>>>;
|
||||
/**
|
||||
* Submits an unsigned extrinsic to report an equivocation.
|
||||
* 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.
|
||||
**/
|
||||
submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocationProof: GrandpaEquivocationProof | { setId?: any; equivocation?: any } | string | Uint8Array, keyOwnerProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
|
||||
submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocation_proof: SpConsensusGrandpaEquivocationProof | { setId?: any; equivocation?: any } | string | Uint8Array, key_owner_proof: Bytes | string | Uint8Array) => Observable<Option<Null>>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x37e397fc7c91f5e4/2 */
|
||||
/** 0xc51ff1fa3f5d0cca/ */
|
||||
inflation: {
|
||||
/**
|
||||
* 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.
|
||||
**/
|
||||
experimentalInflationPredictionInfo: AugmentedCall<ApiType, () => Observable<RelayCommonApisInflationInfo>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x9ffb505aa738d69c/ */
|
||||
locationToAccountApi: {
|
||||
/**
|
||||
* Converts `Location` to `AccountId`.
|
||||
**/
|
||||
convertLocation: AugmentedCall<ApiType, (location: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => Observable<Result<AccountId32, XcmRuntimeApisConversionsError>>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x37e397fc7c91f5e4/ */
|
||||
metadata: {
|
||||
/**
|
||||
* Returns the metadata of a runtime
|
||||
* Returns the metadata of a runtime.
|
||||
**/
|
||||
metadata: AugmentedCall<ApiType, () => Observable<OpaqueMetadata>>;
|
||||
/**
|
||||
* Returns the metadata at a given version.
|
||||
* 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.
|
||||
**/
|
||||
metadataAtVersion: AugmentedCall<ApiType, (version: u32 | AnyNumber | Uint8Array) => Observable<Option<OpaqueMetadata>>>;
|
||||
/**
|
||||
* Returns the supported metadata versions.
|
||||
* Returns the supported metadata versions.,, This can be used to call `metadata_at_version`.
|
||||
**/
|
||||
metadataVersions: AugmentedCall<ApiType, () => Observable<Vec<u32>>>;
|
||||
/**
|
||||
@@ -224,194 +252,218 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x91d5df18b0d2cf58/2 */
|
||||
/** 0x91d5df18b0d2cf58/ */
|
||||
mmrApi: {
|
||||
/**
|
||||
* Generate MMR proof for the given block numbers.
|
||||
* 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.
|
||||
**/
|
||||
generateProof: AugmentedCall<ApiType, (blockNumbers: Vec<BlockNumber> | (BlockNumber | AnyNumber | Uint8Array)[], bestKnownBlockNumber: Option<BlockNumber> | null | Uint8Array | BlockNumber | AnyNumber) => Observable<Result<ITuple<[Vec<MmrEncodableOpaqueLeaf>, MmrBatchProof]>, MmrError>>>;
|
||||
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>>>;
|
||||
/**
|
||||
* Return the number of MMR blocks in the chain.
|
||||
**/
|
||||
mmrLeafCount: AugmentedCall<ApiType, () => Observable<Result<U64, MmrError>>>;
|
||||
mmrLeafCount: AugmentedCall<ApiType, () => Observable<Result<u64, SpMmrPrimitivesError>>>;
|
||||
/**
|
||||
* Return the on-chain MMR root hash.
|
||||
**/
|
||||
mmrRoot: AugmentedCall<ApiType, () => Observable<Result<Hash, MmrError>>>;
|
||||
mmrRoot: AugmentedCall<ApiType, () => Observable<Result<H256, SpMmrPrimitivesError>>>;
|
||||
/**
|
||||
* Verify MMR proof against on-chain MMR.
|
||||
* 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]
|
||||
**/
|
||||
verifyProof: AugmentedCall<ApiType, (leaves: Vec<MmrEncodableOpaqueLeaf> | (MmrEncodableOpaqueLeaf | string | Uint8Array)[], proof: MmrBatchProof | { leafIndices?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
|
||||
verifyProof: AugmentedCall<ApiType, (leaves: Vec<Bytes> | (Bytes | string | Uint8Array)[], proof: SpMmrPrimitivesLeafProof | { leafIndices?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<Null, SpMmrPrimitivesError>>>;
|
||||
/**
|
||||
* Verify MMR proof against given root hash.
|
||||
* 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]
|
||||
**/
|
||||
verifyProofStateless: AugmentedCall<ApiType, (root: Hash | string | Uint8Array, leaves: Vec<MmrEncodableOpaqueLeaf> | (MmrEncodableOpaqueLeaf | string | Uint8Array)[], proof: MmrBatchProof | { leafIndices?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
|
||||
verifyProofStateless: AugmentedCall<ApiType, (root: H256 | string | Uint8Array, leaves: Vec<Bytes> | (Bytes | string | Uint8Array)[], proof: SpMmrPrimitivesLeafProof | { leafIndices?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<Null, SpMmrPrimitivesError>>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x17a6bc0d0062aeb3/1 */
|
||||
/** 0x17a6bc0d0062aeb3/ */
|
||||
nominationPoolsApi: {
|
||||
/**
|
||||
* Returns the equivalent points of `new_funds` for a given pool.
|
||||
**/
|
||||
balanceToPoints: AugmentedCall<ApiType, (poolId: NpPoolId | AnyNumber | Uint8Array, newFunds: Balance | AnyNumber | Uint8Array) => Observable<Balance>>;
|
||||
balanceToPoints: AugmentedCall<ApiType, (pool_id: u32 | AnyNumber | Uint8Array, new_funds: u128 | AnyNumber | Uint8Array) => Observable<u128>>;
|
||||
/**
|
||||
* Returns the pending rewards for the given member.
|
||||
* 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.
|
||||
**/
|
||||
pendingRewards: AugmentedCall<ApiType, (member: AccountId | string | Uint8Array) => Observable<Balance>>;
|
||||
memberNeedsDelegateMigration: AugmentedCall<ApiType, (member: AccountId32 | string | Uint8Array) => Observable<bool>>;
|
||||
/**
|
||||
* Returns the pending slash for a given pool member.
|
||||
**/
|
||||
memberPendingSlash: AugmentedCall<ApiType, (member: AccountId32 | string | Uint8Array) => Observable<u128>>;
|
||||
/**
|
||||
* Returns the pending rewards for the member that the AccountId was given for.
|
||||
**/
|
||||
pendingRewards: AugmentedCall<ApiType, (who: AccountId32 | string | Uint8Array) => Observable<u128>>;
|
||||
/**
|
||||
* Returns the equivalent balance of `points` for a given pool.
|
||||
**/
|
||||
pointsToBalance: AugmentedCall<ApiType, (poolId: NpPoolId | AnyNumber | Uint8Array, points: Balance | AnyNumber | Uint8Array) => Observable<Balance>>;
|
||||
pointsToBalance: AugmentedCall<ApiType, (pool_id: u32 | AnyNumber | Uint8Array, points: u128 | AnyNumber | Uint8Array) => Observable<u128>>;
|
||||
/**
|
||||
* 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.
|
||||
**/
|
||||
poolNeedsDelegateMigration: AugmentedCall<ApiType, (pool_id: u32 | AnyNumber | Uint8Array) => Observable<bool>>;
|
||||
/**
|
||||
* Returns the pending slash for a given pool.
|
||||
**/
|
||||
poolPendingSlash: AugmentedCall<ApiType, (pool_id: u32 | AnyNumber | Uint8Array) => Observable<u128>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0xf78b278be53f454c/2 */
|
||||
/** 0xf78b278be53f454c/ */
|
||||
offchainWorkerApi: {
|
||||
/**
|
||||
* Starts the off-chain task for given block header.
|
||||
**/
|
||||
offchainWorker: AugmentedCall<ApiType, (header: Header | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } | string | Uint8Array) => Observable<Null>>;
|
||||
offchainWorker: AugmentedCall<ApiType, (header: SpRuntimeHeader | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } | string | Uint8Array) => Observable<Null>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0xaf2c0297a23e6d3d/10 */
|
||||
/** 0xaf2c0297a23e6d3d/ */
|
||||
parachainHost: {
|
||||
/**
|
||||
* Approval voting configuration parameters
|
||||
**/
|
||||
approvalVotingParams: AugmentedCall<ApiType, () => Observable<ApprovalVotingParams>>;
|
||||
approvalVotingParams: AugmentedCall<ApiType, () => Observable<PolkadotPrimitivesV7ApprovalVotingParams>>;
|
||||
/**
|
||||
* Returns the persisted validation data for the given `ParaId` along with the corresponding validation code hash.
|
||||
* 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.
|
||||
**/
|
||||
assumedValidationData: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, hash: Hash | string | Uint8Array) => Observable<Option<ITuple<[PersistedValidationData, ValidationCodeHash]>>>>;
|
||||
assumedValidationData: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array, expected_persisted_validation_data_hash: H256 | string | Uint8Array) => Observable<Option<ITuple<[PolkadotPrimitivesV7PersistedValidationData, H256]>>>>;
|
||||
/**
|
||||
* Returns candidate's acceptance limitations for asynchronous backing for a relay parent
|
||||
* Returns candidate's acceptance limitations for asynchronous backing for a relay parent.
|
||||
**/
|
||||
asyncBackingParams: AugmentedCall<ApiType, () => Observable<AsyncBackingParams>>;
|
||||
asyncBackingParams: AugmentedCall<ApiType, () => Observable<PolkadotPrimitivesV7AsyncBackingAsyncBackingParams>>;
|
||||
/**
|
||||
* Yields information on all availability cores as relevant to the child block.
|
||||
* 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.
|
||||
**/
|
||||
availabilityCores: AugmentedCall<ApiType, () => Observable<Vec<CoreState>>>;
|
||||
availabilityCores: AugmentedCall<ApiType, () => Observable<Vec<PolkadotPrimitivesV7CoreState>>>;
|
||||
/**
|
||||
* Get a vector of events concerning candidates that occurred within a block.
|
||||
**/
|
||||
candidateEvents: AugmentedCall<ApiType, () => Observable<Vec<CandidateEvent>>>;
|
||||
candidateEvents: AugmentedCall<ApiType, () => Observable<Vec<PolkadotPrimitivesV7CandidateEvent>>>;
|
||||
/**
|
||||
* Get the receipt of a candidate pending availability.
|
||||
* Get the receipt of a candidate pending availability. This returns `Some` for any paras, assigned to occupied cores in `availability_cores` and `None` otherwise.
|
||||
**/
|
||||
candidatePendingAvailability: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array) => Observable<Option<CommittedCandidateReceipt>>>;
|
||||
candidatePendingAvailability: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV7CommittedCandidateReceipt>>>;
|
||||
/**
|
||||
* Elastic scaling support
|
||||
**/
|
||||
candidatesPendingAvailability: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array) => Observable<Vec<PolkadotPrimitivesV7CommittedCandidateReceipt>>>;
|
||||
/**
|
||||
* Checks if the given validation outputs pass the acceptance criteria.
|
||||
**/
|
||||
checkValidationOutputs: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, outputs: CandidateCommitments | { upwardMessages?: any; horizontalMessages?: any; newValidationCode?: any; headData?: any; processedDownwardMessages?: any; hrmpWatermark?: any } | string | Uint8Array) => Observable<bool>>;
|
||||
checkValidationOutputs: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array, outputs: PolkadotPrimitivesV7CandidateCommitments | { upwardMessages?: any; horizontalMessages?: any; newValidationCode?: any; headData?: any; processedDownwardMessages?: any; hrmpWatermark?: any } | string | Uint8Array) => Observable<bool>>;
|
||||
/**
|
||||
* Returns a list of all disabled validators at the given block
|
||||
* Claim queue
|
||||
**/
|
||||
disabledValidators: AugmentedCall<ApiType, () => Observable<ValidatorIndex>>;
|
||||
claimQueue: AugmentedCall<ApiType, () => Observable<BTreeMap<u32, Vec<u32>>>>;
|
||||
/**
|
||||
* Returns a list of all disabled validators at the given block.
|
||||
**/
|
||||
disabledValidators: AugmentedCall<ApiType, () => Observable<Vec<u32>>>;
|
||||
/**
|
||||
* Returns all onchain disputes.
|
||||
**/
|
||||
disputes: AugmentedCall<ApiType, () => Observable<Vec<ITuple<[SessionIndex, CandidateHash, DisputeState]>>>>;
|
||||
disputes: AugmentedCall<ApiType, () => Observable<Vec<ITuple<[u32, H256, PolkadotPrimitivesV7DisputeState]>>>>;
|
||||
/**
|
||||
* Get all the pending inbound messages in the downward message queue for a para.
|
||||
**/
|
||||
dmqContents: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array) => Observable<Vec<InboundDownwardMessage>>>;
|
||||
dmqContents: AugmentedCall<ApiType, (recipient: ParaId | AnyNumber | Uint8Array) => Observable<Vec<PolkadotCorePrimitivesInboundDownwardMessage>>>;
|
||||
/**
|
||||
* Get the contents of all channels addressed to the given recipient.
|
||||
* Get the contents of all channels addressed to the given recipient. Channels that have no, messages in them are also included.
|
||||
**/
|
||||
inboundHrmpChannelsContents: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array) => Observable<Vec<InboundHrmpMessage>>>;
|
||||
inboundHrmpChannelsContents: AugmentedCall<ApiType, (recipient: ParaId | AnyNumber | Uint8Array) => Observable<BTreeMap<u32, Vec<PolkadotCorePrimitivesInboundHrmpMessage>>>>;
|
||||
/**
|
||||
* Returns a merkle proof of a validator session key
|
||||
* Returns a merkle proof of a validator session key., NOTE: This function is only available since parachain host version 5.
|
||||
**/
|
||||
keyOwnershipProof: AugmentedCall<ApiType, (validatorId: ValidatorId | string | Uint8Array) => Observable<Option<OpaqueKeyOwnershipProof>>>;
|
||||
keyOwnershipProof: AugmentedCall<ApiType, (validator_id: PolkadotPrimitivesV7ValidatorAppPublic | string | Uint8Array) => Observable<Option<Bytes>>>;
|
||||
/**
|
||||
* Get the minimum number of backing votes for a parachain candidate. This is a staging method! Do not use on production runtimes!
|
||||
* Get the minimum number of backing votes for a parachain candidate., This is a staging method! Do not use on production runtimes!
|
||||
**/
|
||||
minimumBackingVotes: AugmentedCall<ApiType, () => Observable<u32>>;
|
||||
/**
|
||||
* Get node features. This is a staging method! Do not use on production runtimes!
|
||||
* Get node features., This is a staging method! Do not use on production runtimes!
|
||||
**/
|
||||
nodeFeatures: AugmentedCall<ApiType, () => Observable<NodeFeatures>>;
|
||||
nodeFeatures: AugmentedCall<ApiType, () => Observable<BitVec>>;
|
||||
/**
|
||||
* Scrape dispute relevant from on-chain, backing votes and resolved disputes.
|
||||
**/
|
||||
onChainVotes: AugmentedCall<ApiType, () => Observable<Option<ScrapedOnChainVotes>>>;
|
||||
onChainVotes: AugmentedCall<ApiType, () => Observable<Option<PolkadotPrimitivesV7ScrapedOnChainVotes>>>;
|
||||
/**
|
||||
* Returns the state of parachain backing for a given para
|
||||
* Returns the state of parachain backing for a given para.
|
||||
**/
|
||||
paraBackingState: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array) => Observable<Option<BackingState>>>;
|
||||
paraBackingState: AugmentedCall<ApiType, (_: ParaId | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV7AsyncBackingBackingState>>>;
|
||||
/**
|
||||
* Yields the persisted validation data for the given `ParaId` along with an assumption that should be used if the para currently occupies a core.
|
||||
* 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.
|
||||
**/
|
||||
persistedValidationData: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, assumption: OccupiedCoreAssumption | 'Included,' | 'TimedOut' | 'Free' | number | Uint8Array) => Observable<Option<PersistedValidationData>>>;
|
||||
persistedValidationData: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array, assumption: PolkadotPrimitivesV7OccupiedCoreAssumption | 'Included' | 'TimedOut' | 'Free' | number | Uint8Array) => Observable<Option<PolkadotPrimitivesV7PersistedValidationData>>>;
|
||||
/**
|
||||
* Returns code hashes of PVFs that require pre-checking by validators in the active set.
|
||||
* 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.
|
||||
**/
|
||||
pvfsRequirePrecheck: AugmentedCall<ApiType, () => Observable<Vec<ValidationCodeHash>>>;
|
||||
pvfsRequirePrecheck: AugmentedCall<ApiType, () => Observable<Vec<H256>>>;
|
||||
/**
|
||||
* Returns execution parameters for the session.
|
||||
**/
|
||||
sessionExecutorParams: AugmentedCall<ApiType, (sessionIndex: SessionIndex | AnyNumber | Uint8Array) => Observable<Option<ExecutorParams>>>;
|
||||
sessionExecutorParams: AugmentedCall<ApiType, (session_index: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV7ExecutorParams>>>;
|
||||
/**
|
||||
* Returns the session index expected at a child of the block.
|
||||
* Returns the session index expected at a child of the block.,, This can be used to instantiate a `SigningContext`.
|
||||
**/
|
||||
sessionIndexForChild: AugmentedCall<ApiType, () => Observable<SessionIndex>>;
|
||||
sessionIndexForChild: AugmentedCall<ApiType, () => Observable<u32>>;
|
||||
/**
|
||||
* Get the session info for the given session, if stored.
|
||||
* Get the session info for the given session, if stored.,, NOTE: This function is only available since parachain host version 2.
|
||||
**/
|
||||
sessionInfo: AugmentedCall<ApiType, (index: SessionIndex | AnyNumber | Uint8Array) => Observable<Option<SessionInfo>>>;
|
||||
sessionInfo: AugmentedCall<ApiType, (index: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV7SessionInfo>>>;
|
||||
/**
|
||||
* Submits a PVF pre-checking statement into the transaction pool.
|
||||
* Submits a PVF pre-checking statement into the transaction pool.,, NOTE: This function is only available since parachain host version 2.
|
||||
**/
|
||||
submitPvfCheckStatement: AugmentedCall<ApiType, (stmt: PvfCheckStatement | { accept?: any; subject?: any; sessionIndex?: any; validatorIndex?: any } | string | Uint8Array, signature: ValidatorSignature | string | Uint8Array) => Observable<Null>>;
|
||||
submitPvfCheckStatement: AugmentedCall<ApiType, (stmt: PolkadotPrimitivesV7PvfCheckStatement | { accept?: any; subject?: any; sessionIndex?: any; validatorIndex?: any } | string | Uint8Array, signature: PolkadotPrimitivesV7ValidatorAppSignature | string | Uint8Array) => Observable<Null>>;
|
||||
/**
|
||||
* Submit an unsigned extrinsic to slash validators who lost a dispute about a candidate of a past session
|
||||
* 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.
|
||||
**/
|
||||
submitReportDisputeLost: AugmentedCall<ApiType, (disputeProof: DisputeProof | { timeSlot?: any; kind?: any; validatorIndex?: any; validatorId?: any } | string | Uint8Array, keyOwnershipProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
|
||||
submitReportDisputeLost: AugmentedCall<ApiType, (dispute_proof: PolkadotPrimitivesV7SlashingDisputeProof | { timeSlot?: any; kind?: any; validatorIndex?: any; validatorId?: any } | string | Uint8Array, key_ownership_proof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
|
||||
/**
|
||||
* Returns a list of validators that lost a past session dispute and need to be slashed
|
||||
* 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.
|
||||
**/
|
||||
unappliedSlashes: AugmentedCall<ApiType, () => Observable<Vec<ITuple<[SessionIndex, CandidateHash, PendingSlashes]>>>>;
|
||||
unappliedSlashes: AugmentedCall<ApiType, () => Observable<Vec<ITuple<[u32, H256, PolkadotPrimitivesV7SlashingPendingSlashes]>>>>;
|
||||
/**
|
||||
* Fetch the validation code used by a para, making the given `OccupiedCoreAssumption`.
|
||||
* 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.
|
||||
**/
|
||||
validationCode: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, assumption: OccupiedCoreAssumption | 'Included,' | 'TimedOut' | 'Free' | number | Uint8Array) => Observable<Option<ValidationCode>>>;
|
||||
validationCode: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array, assumption: PolkadotPrimitivesV7OccupiedCoreAssumption | 'Included' | 'TimedOut' | 'Free' | number | Uint8Array) => Observable<Option<Bytes>>>;
|
||||
/**
|
||||
* Get the validation code from its hash.
|
||||
**/
|
||||
validationCodeByHash: AugmentedCall<ApiType, (hash: ValidationCodeHash | string | Uint8Array) => Observable<Option<ValidationCode>>>;
|
||||
validationCodeByHash: AugmentedCall<ApiType, (hash: ValidationCodeHash | string | Uint8Array) => Observable<Option<Bytes>>>;
|
||||
/**
|
||||
* Fetch the hash of the validation code used by a para, making the given `OccupiedCoreAssumption`.
|
||||
* 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.
|
||||
**/
|
||||
validationCodeHash: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, assumption: OccupiedCoreAssumption | 'Included,' | 'TimedOut' | 'Free' | number | Uint8Array) => Observable<Option<ValidationCodeHash>>>;
|
||||
validationCodeHash: AugmentedCall<ApiType, (para_id: ParaId | AnyNumber | Uint8Array, assumption: PolkadotPrimitivesV7OccupiedCoreAssumption | 'Included' | 'TimedOut' | 'Free' | number | Uint8Array) => Observable<Option<H256>>>;
|
||||
/**
|
||||
* Returns the validator groups and rotation info localized based on the hypothetical child of a block whose state this is invoked on
|
||||
* 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.
|
||||
**/
|
||||
validatorGroups: AugmentedCall<ApiType, () => Observable<ITuple<[Vec<Vec<ParaValidatorIndex>>, GroupRotationInfo]>>>;
|
||||
validatorGroups: AugmentedCall<ApiType, () => Observable<ITuple<[Vec<Vec<u32>>, PolkadotPrimitivesV7GroupRotationInfo]>>>;
|
||||
/**
|
||||
* Get the current validators.
|
||||
**/
|
||||
validators: AugmentedCall<ApiType, () => Observable<Vec<ValidatorId>>>;
|
||||
validators: AugmentedCall<ApiType, () => Observable<Vec<PolkadotPrimitivesV7ValidatorAppPublic>>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0xab3c0572291feb8b/1 */
|
||||
/** 0xab3c0572291feb8b/ */
|
||||
sessionKeys: {
|
||||
/**
|
||||
* Decode the given public session keys.
|
||||
* Decode the given public session keys.,, Returns the list of public raw public keys + key type.
|
||||
**/
|
||||
decodeSessionKeys: AugmentedCall<ApiType, (encoded: Bytes | string | Uint8Array) => Observable<Option<Vec<ITuple<[Bytes, KeyTypeId]>>>>>;
|
||||
decodeSessionKeys: AugmentedCall<ApiType, (encoded: Bytes | string | Uint8Array) => Observable<Option<Vec<ITuple<[Bytes, SpCoreCryptoKeyTypeId]>>>>>;
|
||||
/**
|
||||
* Generate a set of session keys with optionally using the given seed.
|
||||
* 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.
|
||||
**/
|
||||
generateSessionKeys: AugmentedCall<ApiType, (seed: Option<Bytes> | null | Uint8Array | Bytes | string) => Observable<Bytes>>;
|
||||
/**
|
||||
@@ -419,69 +471,100 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x18ef58a3b67ba770/1 */
|
||||
/** 0x18ef58a3b67ba770/ */
|
||||
stakingApi: {
|
||||
/**
|
||||
* Returns the page count of exposures for a validator `account` in a given era.
|
||||
**/
|
||||
erasStakersPageCount: AugmentedCall<ApiType, (era: u32 | AnyNumber | Uint8Array, account: AccountId32 | string | Uint8Array) => Observable<u32>>;
|
||||
/**
|
||||
* Returns the nominations quota for a nominator with a given balance.
|
||||
**/
|
||||
nominationsQuota: AugmentedCall<ApiType, (balance: Balance | AnyNumber | Uint8Array) => Observable<u32>>;
|
||||
nominationsQuota: AugmentedCall<ApiType, (balance: u128 | AnyNumber | Uint8Array) => Observable<u32>>;
|
||||
/**
|
||||
* Returns true if validator `account` has pages to be claimed for the given era.
|
||||
**/
|
||||
pendingRewards: AugmentedCall<ApiType, (era: u32 | AnyNumber | Uint8Array, account: AccountId32 | string | Uint8Array) => Observable<bool>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0xd2bc9897eed08f15/3 */
|
||||
/** 0xd2bc9897eed08f15/ */
|
||||
taggedTransactionQueue: {
|
||||
/**
|
||||
* Validate the transaction.
|
||||
* 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.
|
||||
**/
|
||||
validateTransaction: AugmentedCall<ApiType, (source: TransactionSource | 'InBlock' | 'Local' | 'External' | number | Uint8Array, tx: Extrinsic | IExtrinsic | string | Uint8Array, blockHash: BlockHash | string | Uint8Array) => Observable<TransactionValidity>>;
|
||||
validateTransaction: AugmentedCall<ApiType, (source: SpRuntimeTransactionValidityTransactionSource | 'InBlock' | 'Local' | 'External' | number | Uint8Array, tx: Extrinsic | IExtrinsic | string | Uint8Array, block_hash: H256 | string | Uint8Array) => Observable<Result<SpRuntimeTransactionValidityValidTransaction, SpRuntimeTransactionValidityTransactionValidityError>>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x37c8bb1350a9a2a8/4 */
|
||||
/** 0x37c8bb1350a9a2a8/ */
|
||||
transactionPaymentApi: {
|
||||
/**
|
||||
* The transaction fee details
|
||||
*
|
||||
**/
|
||||
queryFeeDetails: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<FeeDetails>>;
|
||||
queryFeeDetails: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<PalletTransactionPaymentFeeDetails>>;
|
||||
/**
|
||||
* The transaction info
|
||||
*
|
||||
**/
|
||||
queryInfo: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<RuntimeDispatchInfo>>;
|
||||
queryInfo: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<PalletTransactionPaymentRuntimeDispatchInfo>>;
|
||||
/**
|
||||
* Query the output of the current LengthToFee given some input
|
||||
*
|
||||
**/
|
||||
queryLengthToFee: AugmentedCall<ApiType, (length: u32 | AnyNumber | Uint8Array) => Observable<Balance>>;
|
||||
queryLengthToFee: AugmentedCall<ApiType, (length: u32 | AnyNumber | Uint8Array) => Observable<u128>>;
|
||||
/**
|
||||
* Query the output of the current WeightToFee given some input
|
||||
*
|
||||
**/
|
||||
queryWeightToFee: AugmentedCall<ApiType, (weight: Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => Observable<Balance>>;
|
||||
queryWeightToFee: AugmentedCall<ApiType, (weight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => Observable<u128>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0xf3ff14d5ab527059/3 */
|
||||
/** 0xf3ff14d5ab527059/ */
|
||||
transactionPaymentCallApi: {
|
||||
/**
|
||||
* The call fee details
|
||||
* Query fee details of a given encoded `Call`.
|
||||
**/
|
||||
queryCallFeeDetails: AugmentedCall<ApiType, (call: Call | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<FeeDetails>>;
|
||||
queryCallFeeDetails: AugmentedCall<ApiType, (call: RuntimeCall | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<PalletTransactionPaymentFeeDetails>>;
|
||||
/**
|
||||
* The call info
|
||||
* Query information of a dispatch class, weight, and fee of a given encoded `Call`.
|
||||
**/
|
||||
queryCallInfo: AugmentedCall<ApiType, (call: Call | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<RuntimeDispatchInfo>>;
|
||||
queryCallInfo: AugmentedCall<ApiType, (call: RuntimeCall | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<PalletTransactionPaymentRuntimeDispatchInfo>>;
|
||||
/**
|
||||
* Query the output of the current LengthToFee given some input
|
||||
* Query the output of the current `LengthToFee` given some input.
|
||||
**/
|
||||
queryLengthToFee: AugmentedCall<ApiType, (length: u32 | AnyNumber | Uint8Array) => Observable<Balance>>;
|
||||
queryLengthToFee: AugmentedCall<ApiType, (length: u32 | AnyNumber | Uint8Array) => Observable<u128>>;
|
||||
/**
|
||||
* Query the output of the current WeightToFee given some input
|
||||
* Query the output of the current `WeightToFee` given some input.
|
||||
**/
|
||||
queryWeightToFee: AugmentedCall<ApiType, (weight: Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => Observable<Balance>>;
|
||||
queryWeightToFee: AugmentedCall<ApiType, (weight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => Observable<u128>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x6ff52ee858e6c5bd/ */
|
||||
xcmPaymentApi: {
|
||||
/**
|
||||
* Returns a list of acceptable payment assets.,, # Arguments,, * `xcm_version`: Version.
|
||||
**/
|
||||
queryAcceptablePaymentAssets: AugmentedCall<ApiType, (xcm_version: u32 | AnyNumber | Uint8Array) => Observable<Result<Vec<XcmVersionedAssetId>, XcmRuntimeApisFeesError>>>;
|
||||
/**
|
||||
* 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.
|
||||
**/
|
||||
queryDeliveryFees: AugmentedCall<ApiType, (destination: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, message: XcmVersionedXcm | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => Observable<Result<XcmVersionedAssets, XcmRuntimeApisFeesError>>>;
|
||||
/**
|
||||
* Converts a weight into a fee for the specified `AssetId`.,, # Arguments,, * `weight`: convertible `Weight`., * `asset`: `VersionedAssetId`.
|
||||
**/
|
||||
queryWeightToAssetFee: AugmentedCall<ApiType, (weight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array, asset: XcmVersionedAssetId | { V3: any } | { V4: any } | string | Uint8Array) => Observable<Result<u128, XcmRuntimeApisFeesError>>>;
|
||||
/**
|
||||
* Returns a weight needed to execute a XCM.,, # Arguments,, * `message`: `VersionedXcm`.
|
||||
**/
|
||||
queryXcmWeight: AugmentedCall<ApiType, (message: XcmVersionedXcm | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => Observable<Result<SpWeightsWeightV2Weight, XcmRuntimeApisFeesError>>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
|
||||
+2709
-445
File diff suppressed because it is too large
Load Diff
@@ -6,30 +6,13 @@
|
||||
import '@polkadot/api-base/types/calls';
|
||||
|
||||
import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-base/types';
|
||||
import type { Bytes, Null, Option, Result, U64, Vec, bool, u128, u32 } from '@polkadot/types-codec';
|
||||
import type { Bytes, Null, Option, Result, Struct, Text, Vec, bool, u128, u32, u64 } from '@polkadot/types-codec';
|
||||
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
||||
import type { TAssetBalance } from '@polkadot/types/interfaces/assets';
|
||||
import type { BabeEquivocationProof, BabeGenesisConfiguration, Epoch, OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
|
||||
import type { ValidatorSet, ValidatorSetId } from '@polkadot/types/interfaces/beefy';
|
||||
import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfaces/blockbuilder';
|
||||
import type { BlockHash } from '@polkadot/types/interfaces/chain';
|
||||
import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
|
||||
import type { CodeSource, CodeUploadResult, ContractExecResult, ContractInstantiateResult } from '@polkadot/types/interfaces/contracts';
|
||||
import type { OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
|
||||
import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
|
||||
import type { GenesisBuildErr } from '@polkadot/types/interfaces/genesisBuilder';
|
||||
import type { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/types/interfaces/grandpa';
|
||||
import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
|
||||
import type { Mixnode, MixnodesErr, SessionStatus } from '@polkadot/types/interfaces/mixnet';
|
||||
import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError } from '@polkadot/types/interfaces/mmr';
|
||||
import type { NftCollectionId, NftItemId } from '@polkadot/types/interfaces/nfts';
|
||||
import type { NpPoolId } from '@polkadot/types/interfaces/nompools';
|
||||
import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
|
||||
import type { AccountId, Balance, Block, BlockNumber, Call, ExtrinsicInclusionMode, Hash, Header, Index, KeyTypeId, Slot, Weight, WeightV2 } from '@polkadot/types/interfaces/runtime';
|
||||
import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
|
||||
import type { StatementStoreInvalidStatement, StatementStoreStatementSource, StatementStoreValidStatement } from '@polkadot/types/interfaces/statement';
|
||||
import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system';
|
||||
import type { TransactionSource, TransactionValidity } from '@polkadot/types/interfaces/txqueue';
|
||||
import type { SpConsensusBeefyDoubleVotingProof, SpStatementStoreStatement, StagingXcmV3MultiLocation } from '@polkadot/types/lookup';
|
||||
import type { AccountId32, H256, RuntimeCall, Slot } from '@polkadot/types/interfaces/runtime';
|
||||
import type { FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSystemEventRecord, PalletContractsPrimitivesCode, PalletContractsPrimitivesCodeUploadReturnValue, PalletContractsPrimitivesContractAccessError, PalletContractsPrimitivesContractResult, PalletContractsPrimitivesExecReturnValue, PalletContractsPrimitivesStorageDeposit, PalletContractsWasmDeterminism, PalletTransactionPaymentFeeDetails, PalletTransactionPaymentRuntimeDispatchInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeConfiguration, SpConsensusBabeEpoch, SpConsensusBeefyDoubleVotingProof, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyValidatorSet, SpConsensusGrandpaAppPublic, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpCoreCryptoKeyTypeId, SpInherentsCheckInherentsResult, SpInherentsInherentData, SpMixnetMixnode, SpMixnetMixnodesErr, SpMixnetSessionStatus, SpMmrPrimitivesError, SpMmrPrimitivesLeafProof, SpRuntimeBlock, SpRuntimeDispatchError, SpRuntimeExtrinsicInclusionMode, SpRuntimeHeader, SpRuntimeTransactionValidityTransactionSource, SpRuntimeTransactionValidityTransactionValidityError, SpRuntimeTransactionValidityValidTransaction, SpStatementStoreRuntimeApiInvalidStatement, SpStatementStoreRuntimeApiStatementSource, SpStatementStoreRuntimeApiValidStatement, SpStatementStoreStatement, SpVersionRuntimeVersion, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
||||
import type { IExtrinsic, Observable } from '@polkadot/types/types';
|
||||
|
||||
export type __AugmentedCall<ApiType extends ApiTypes> = AugmentedCall<ApiType>;
|
||||
@@ -37,227 +20,238 @@ export type __DecoratedCallBase<ApiType extends ApiTypes> = DecoratedCallBase<Ap
|
||||
|
||||
declare module '@polkadot/api-base/types/calls' {
|
||||
interface AugmentedCalls<ApiType extends ApiTypes> {
|
||||
/** 0xbc9d89904f5b923f/1 */
|
||||
/** 0xbc9d89904f5b923f/ */
|
||||
accountNonceApi: {
|
||||
/**
|
||||
* The API to query account nonce (aka transaction index)
|
||||
* Get current account nonce of given `AccountId`.
|
||||
**/
|
||||
accountNonce: AugmentedCall<ApiType, (accountId: AccountId | string | Uint8Array) => Observable<Index>>;
|
||||
accountNonce: AugmentedCall<ApiType, (account: AccountId32 | string | Uint8Array) => Observable<u32>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x8a8047a53a8277ec/1 */
|
||||
/** 0x8a8047a53a8277ec/ */
|
||||
assetConversionApi: {
|
||||
/**
|
||||
* Get pool reserves
|
||||
* Returns the size of the liquidity pool for the given asset pair.
|
||||
**/
|
||||
getReserves: AugmentedCall<ApiType, (asset1: StagingXcmV3MultiLocation, asset2: StagingXcmV3MultiLocation) => Observable<Option<ITuple<[Balance, Balance]>>>>;
|
||||
getReserves: AugmentedCall<ApiType, (asset1: FrameSupportTokensFungibleUnionOfNativeOrWithId | { Native: any } | { WithId: any } | string | Uint8Array, asset2: FrameSupportTokensFungibleUnionOfNativeOrWithId | { Native: any } | { WithId: any } | string | Uint8Array) => Observable<Option<ITuple<[u128, u128]>>>>;
|
||||
/**
|
||||
* Quote price: exact tokens for tokens
|
||||
* Provides a quote for [`Pallet::swap_exact_tokens_for_tokens`].,, Note that the price may have changed by the time the transaction is executed., (Use `amount_out_min` to control slippage.)
|
||||
**/
|
||||
quotePriceExactTokensForTokens: AugmentedCall<ApiType, (asset1: StagingXcmV3MultiLocation, asset2: StagingXcmV3MultiLocation, amount: u128 | AnyNumber | Uint8Array, include_fee: bool | boolean | Uint8Array) => Observable<Option<Balance>>>;
|
||||
quotePriceExactTokensForTokens: AugmentedCall<ApiType, (asset1: FrameSupportTokensFungibleUnionOfNativeOrWithId | { Native: any } | { WithId: any } | string | Uint8Array, asset2: FrameSupportTokensFungibleUnionOfNativeOrWithId | { Native: any } | { WithId: any } | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array, include_fee: bool | boolean | Uint8Array) => Observable<Option<u128>>>;
|
||||
/**
|
||||
* Quote price: tokens for exact tokens
|
||||
* Provides a quote for [`Pallet::swap_tokens_for_exact_tokens`].,, Note that the price may have changed by the time the transaction is executed., (Use `amount_in_max` to control slippage.)
|
||||
**/
|
||||
quotePriceTokensForExactTokens: AugmentedCall<ApiType, (asset1: StagingXcmV3MultiLocation, asset2: StagingXcmV3MultiLocation, amount: u128 | AnyNumber | Uint8Array, include_fee: bool | boolean | Uint8Array) => Observable<Option<Balance>>>;
|
||||
quotePriceTokensForExactTokens: AugmentedCall<ApiType, (asset1: FrameSupportTokensFungibleUnionOfNativeOrWithId | { Native: any } | { WithId: any } | string | Uint8Array, asset2: FrameSupportTokensFungibleUnionOfNativeOrWithId | { Native: any } | { WithId: any } | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array, include_fee: bool | boolean | Uint8Array) => Observable<Option<u128>>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x8453b50b22293977/1 */
|
||||
/** 0x8453b50b22293977/ */
|
||||
assetsApi: {
|
||||
/**
|
||||
* Return the current set of authorities.
|
||||
* Returns the list of `AssetId`s and corresponding balance that an `AccountId` has.
|
||||
**/
|
||||
accountBalances: AugmentedCall<ApiType, (account: AccountId | string | Uint8Array) => Observable<Vec<ITuple<[u32, TAssetBalance]>>>>;
|
||||
accountBalances: AugmentedCall<ApiType, (account: AccountId32 | string | Uint8Array) => Observable<Vec<ITuple<[u32, u128]>>>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x687ad44ad37f03c2/1 */
|
||||
/** 0x687ad44ad37f03c2/ */
|
||||
authorityDiscoveryApi: {
|
||||
/**
|
||||
* Retrieve authority identifiers of the current and next authority set.
|
||||
**/
|
||||
authorities: AugmentedCall<ApiType, () => Observable<Vec<AuthorityId>>>;
|
||||
authorities: AugmentedCall<ApiType, () => Observable<Vec<SpAuthorityDiscoveryAppPublic>>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0xcbca25e39f142387/2 */
|
||||
/** 0xcbca25e39f142387/ */
|
||||
babeApi: {
|
||||
/**
|
||||
* Return the genesis configuration for BABE. The configuration is only read on genesis.
|
||||
* Return the configuration for BABE.
|
||||
**/
|
||||
configuration: AugmentedCall<ApiType, () => Observable<BabeGenesisConfiguration>>;
|
||||
configuration: AugmentedCall<ApiType, () => Observable<SpConsensusBabeBabeConfiguration>>;
|
||||
/**
|
||||
* Returns information regarding the current epoch.
|
||||
**/
|
||||
currentEpoch: AugmentedCall<ApiType, () => Observable<Epoch>>;
|
||||
currentEpoch: AugmentedCall<ApiType, () => Observable<SpConsensusBabeEpoch>>;
|
||||
/**
|
||||
* Returns the slot that started the current epoch.
|
||||
**/
|
||||
currentEpochStart: AugmentedCall<ApiType, () => Observable<Slot>>;
|
||||
/**
|
||||
* Generates a proof of key ownership for the given authority in the current epoch.
|
||||
* 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.
|
||||
**/
|
||||
generateKeyOwnershipProof: AugmentedCall<ApiType, (slot: Slot | AnyNumber | Uint8Array, authorityId: AuthorityId | string | Uint8Array) => Observable<Option<OpaqueKeyOwnershipProof>>>;
|
||||
generateKeyOwnershipProof: AugmentedCall<ApiType, (slot: Slot | AnyNumber | Uint8Array, authority_id: SpConsensusBabeAppPublic | string | Uint8Array) => Observable<Option<Bytes>>>;
|
||||
/**
|
||||
* Returns information regarding the next epoch (which was already previously announced).
|
||||
* Returns information regarding the next epoch (which was already, previously announced).
|
||||
**/
|
||||
nextEpoch: AugmentedCall<ApiType, () => Observable<Epoch>>;
|
||||
nextEpoch: AugmentedCall<ApiType, () => Observable<SpConsensusBabeEpoch>>;
|
||||
/**
|
||||
* Submits an unsigned extrinsic to report an equivocation.
|
||||
* 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.
|
||||
**/
|
||||
submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocationProof: BabeEquivocationProof | { offender?: any; slotNumber?: any; firstHeader?: any; secondHeader?: any } | string | Uint8Array, keyOwnerProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
|
||||
submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocation_proof: SpConsensusSlotsEquivocationProof | { offender?: any; slot?: any; firstHeader?: any; secondHeader?: any } | string | Uint8Array, key_owner_proof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x49eaaf1b548a0cb0/4 */
|
||||
/** 0x49eaaf1b548a0cb0/ */
|
||||
beefyApi: {
|
||||
/**
|
||||
* Return the block number where BEEFY consensus is enabled/started
|
||||
**/
|
||||
beefyGenesis: AugmentedCall<ApiType, () => Observable<Option<BlockNumber>>>;
|
||||
beefyGenesis: AugmentedCall<ApiType, () => Observable<Option<u32>>>;
|
||||
/**
|
||||
* Generates a proof of key ownership for the given authority in the given set.
|
||||
* 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.
|
||||
**/
|
||||
generateKeyOwnershipProof: AugmentedCall<ApiType, (setId: ValidatorSetId | AnyNumber | Uint8Array, authorityId: AuthorityId | string | Uint8Array) => Observable<Option<OpaqueKeyOwnershipProof>>>;
|
||||
generateKeyOwnershipProof: AugmentedCall<ApiType, (set_id: u64 | AnyNumber | Uint8Array, authority_id: SpConsensusBeefyEcdsaCryptoPublic | string | Uint8Array) => Observable<Option<Bytes>>>;
|
||||
/**
|
||||
* Submits an unsigned extrinsic to report a double voting equivocation.
|
||||
* Submits an unsigned extrinsic to report a double voting equivocation. The caller, must provide the double voting 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.
|
||||
**/
|
||||
submitReportDoubleVotingUnsignedExtrinsic: AugmentedCall<ApiType, (equivocationProof: SpConsensusBeefyDoubleVotingProof | { first?: any; second?: any } | string | Uint8Array, keyOwnerProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
|
||||
submitReportDoubleVotingUnsignedExtrinsic: AugmentedCall<ApiType, (equivocation_proof: SpConsensusBeefyDoubleVotingProof | { first?: any; second?: any } | string | Uint8Array, key_owner_proof: Bytes | string | Uint8Array) => Observable<Option<Null>>>;
|
||||
/**
|
||||
* Return the current active BEEFY validator set
|
||||
**/
|
||||
validatorSet: AugmentedCall<ApiType, () => Observable<Option<ValidatorSet>>>;
|
||||
validatorSet: AugmentedCall<ApiType, () => Observable<Option<SpConsensusBeefyValidatorSet>>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x40fe3ad401f8959a/6 */
|
||||
/** 0x40fe3ad401f8959a/ */
|
||||
blockBuilder: {
|
||||
/**
|
||||
* Apply the given extrinsic.
|
||||
* Apply the given extrinsic.,, Returns an inclusion outcome which specifies if this extrinsic is included in, this block or not.
|
||||
**/
|
||||
applyExtrinsic: AugmentedCall<ApiType, (extrinsic: Extrinsic | IExtrinsic | string | Uint8Array) => Observable<ApplyExtrinsicResult>>;
|
||||
applyExtrinsic: AugmentedCall<ApiType, (extrinsic: Extrinsic | IExtrinsic | string | Uint8Array) => Observable<Result<Result<Null, SpRuntimeDispatchError>, SpRuntimeTransactionValidityTransactionValidityError>>>;
|
||||
/**
|
||||
* Check that the inherents are valid.
|
||||
* Check that the inherents are valid. The inherent data will vary from chain to chain.
|
||||
**/
|
||||
checkInherents: AugmentedCall<ApiType, (block: Block | { header?: any; extrinsics?: any } | string | Uint8Array, data: InherentData | { data?: any } | string | Uint8Array) => Observable<CheckInherentsResult>>;
|
||||
checkInherents: AugmentedCall<ApiType, (block: SpRuntimeBlock | { header?: any; extrinsics?: any } | string | Uint8Array, data: SpInherentsInherentData | { data?: any } | string | Uint8Array) => Observable<SpInherentsCheckInherentsResult>>;
|
||||
/**
|
||||
* Finish the current block.
|
||||
**/
|
||||
finalizeBlock: AugmentedCall<ApiType, () => Observable<Header>>;
|
||||
finalizeBlock: AugmentedCall<ApiType, () => Observable<SpRuntimeHeader>>;
|
||||
/**
|
||||
* Generate inherent extrinsics.
|
||||
* Generate inherent extrinsics. The inherent data will vary from chain to chain.
|
||||
**/
|
||||
inherentExtrinsics: AugmentedCall<ApiType, (inherent: InherentData | { data?: any } | string | Uint8Array) => Observable<Vec<Extrinsic>>>;
|
||||
inherentExtrinsics: AugmentedCall<ApiType, (inherent: SpInherentsInherentData | { data?: any } | string | Uint8Array) => Observable<Vec<Bytes>>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x68b66ba122c93fa7/2 */
|
||||
/** 0x68b66ba122c93fa7/ */
|
||||
contractsApi: {
|
||||
/**
|
||||
* Perform a call from a specified account to a given contract.
|
||||
* Perform a call from a specified account to a given contract.,, See [`crate::Pallet::bare_call`].
|
||||
**/
|
||||
call: AugmentedCall<ApiType, (origin: AccountId | string | Uint8Array, dest: AccountId | string | Uint8Array, value: Balance | AnyNumber | Uint8Array, gasLimit: Option<WeightV2> | null | Uint8Array | WeightV2 | { refTime?: any; proofSize?: any } | string, storageDepositLimit: Option<Balance> | null | Uint8Array | Balance | AnyNumber, inputData: Bytes | string | Uint8Array) => Observable<ContractExecResult>>;
|
||||
call: AugmentedCall<ApiType, (origin: AccountId32 | string | Uint8Array, dest: AccountId32 | string | Uint8Array, value: u128 | AnyNumber | Uint8Array, gas_limit: Option<SpWeightsWeightV2Weight> | null | Uint8Array | SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string, storage_deposit_limit: Option<u128> | null | Uint8Array | u128 | AnyNumber, input_data: Bytes | string | Uint8Array) => Observable<{
|
||||
readonly gasConsumed: SpWeightsWeightV2Weight;
|
||||
readonly gasRequired: SpWeightsWeightV2Weight;
|
||||
readonly storageDeposit: PalletContractsPrimitivesStorageDeposit;
|
||||
readonly debugMessage: Bytes;
|
||||
readonly result: Result<PalletContractsPrimitivesExecReturnValue, SpRuntimeDispatchError>;
|
||||
readonly events: Option<Vec<FrameSystemEventRecord>>;
|
||||
} & Struct>>;
|
||||
/**
|
||||
* Query a given storage key in a given contract.
|
||||
* Query a given storage key in a given contract.,, Returns `Ok(Some(Vec<u8>))` if the storage value exists under the given key in the, specified account and `Ok(None)` if it doesn't. If the account specified by the address, doesn't exist, or doesn't have a contract then `Err` is returned.
|
||||
**/
|
||||
getStorage: AugmentedCall<ApiType, (address: AccountId | string | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Option<Bytes>>>;
|
||||
getStorage: AugmentedCall<ApiType, (address: AccountId32 | string | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Result<Option<Bytes>, PalletContractsPrimitivesContractAccessError>>>;
|
||||
/**
|
||||
* Instantiate a new contract.
|
||||
* Instantiate a new contract.,, See `[crate::Pallet::bare_instantiate]`.
|
||||
**/
|
||||
instantiate: AugmentedCall<ApiType, (origin: AccountId | string | Uint8Array, value: Balance | AnyNumber | Uint8Array, gasLimit: Option<WeightV2> | null | Uint8Array | WeightV2 | { refTime?: any; proofSize?: any } | string, storageDepositLimit: Option<Balance> | null | Uint8Array | Balance | AnyNumber, code: CodeSource | { Upload: any } | { Existing: any } | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => Observable<ContractInstantiateResult>>;
|
||||
instantiate: AugmentedCall<ApiType, (origin: AccountId32 | string | Uint8Array, value: u128 | AnyNumber | Uint8Array, gas_limit: Option<SpWeightsWeightV2Weight> | null | Uint8Array | SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string, storage_deposit_limit: Option<u128> | null | Uint8Array | u128 | AnyNumber, code: PalletContractsPrimitivesCode | { Upload: any } | { Existing: any } | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => Observable<PalletContractsPrimitivesContractResult>>;
|
||||
/**
|
||||
* Upload new code without instantiating a contract from it.
|
||||
* Upload new code without instantiating a contract from it.,, See [`crate::Pallet::bare_upload_code`].
|
||||
**/
|
||||
uploadCode: AugmentedCall<ApiType, (origin: AccountId | string | Uint8Array, code: Bytes | string | Uint8Array, storageDepositLimit: Option<Balance> | null | Uint8Array | Balance | AnyNumber) => Observable<CodeUploadResult>>;
|
||||
uploadCode: AugmentedCall<ApiType, (origin: AccountId32 | string | Uint8Array, code: Bytes | string | Uint8Array, storage_deposit_limit: Option<u128> | null | Uint8Array | u128 | AnyNumber, determinism: PalletContractsWasmDeterminism | 'Enforced' | 'Relaxed' | number | Uint8Array) => Observable<Result<PalletContractsPrimitivesCodeUploadReturnValue, SpRuntimeDispatchError>>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0xdf6acb689907609b/5 */
|
||||
/** 0xdf6acb689907609b/ */
|
||||
core: {
|
||||
/**
|
||||
* Execute the given block.
|
||||
**/
|
||||
executeBlock: AugmentedCall<ApiType, (block: Block | { header?: any; extrinsics?: any } | string | Uint8Array) => Observable<Null>>;
|
||||
executeBlock: AugmentedCall<ApiType, (block: SpRuntimeBlock | { header?: any; extrinsics?: any } | string | Uint8Array) => Observable<Null>>;
|
||||
/**
|
||||
* Initialize a block with the given header.
|
||||
* Initialize a block with the given header and return the runtime executive mode.
|
||||
**/
|
||||
initializeBlock: AugmentedCall<ApiType, (header: Header | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } | string | Uint8Array) => Observable<ExtrinsicInclusionMode>>;
|
||||
initializeBlock: AugmentedCall<ApiType, (header: SpRuntimeHeader | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } | string | Uint8Array) => Observable<SpRuntimeExtrinsicInclusionMode>>;
|
||||
/**
|
||||
* Returns the version of the runtime.
|
||||
**/
|
||||
version: AugmentedCall<ApiType, () => Observable<RuntimeVersion>>;
|
||||
version: AugmentedCall<ApiType, () => Observable<SpVersionRuntimeVersion>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0xfbc577b9d747efd6/1 */
|
||||
/** 0xfbc577b9d747efd6/ */
|
||||
genesisBuilder: {
|
||||
/**
|
||||
* Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the storage.
|
||||
* 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.
|
||||
**/
|
||||
buildConfig: AugmentedCall<ApiType, (json: Bytes | string | Uint8Array) => Observable<Result<ITuple<[]>, GenesisBuildErr>>>;
|
||||
buildState: AugmentedCall<ApiType, (json: Bytes | string | Uint8Array) => Observable<Result<Null, Text>>>;
|
||||
/**
|
||||
* Creates the default `RuntimeGenesisConfig` and returns it as a JSON blob.
|
||||
* 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.
|
||||
**/
|
||||
createDefaultConfig: AugmentedCall<ApiType, () => Observable<Bytes>>;
|
||||
getPreset: AugmentedCall<ApiType, (id: Option<Text> | null | Uint8Array | Text | string) => Observable<Option<Bytes>>>;
|
||||
/**
|
||||
* 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.
|
||||
**/
|
||||
presetNames: AugmentedCall<ApiType, () => Observable<Vec<Text>>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0xed99c5acb25eedf5/3 */
|
||||
/** 0xed99c5acb25eedf5/ */
|
||||
grandpaApi: {
|
||||
/**
|
||||
* Get current GRANDPA authority set id.
|
||||
**/
|
||||
currentSetId: AugmentedCall<ApiType, () => Observable<SetId>>;
|
||||
currentSetId: AugmentedCall<ApiType, () => Observable<u64>>;
|
||||
/**
|
||||
* Generates a proof of key ownership for the given authority in the given set.
|
||||
* 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.
|
||||
**/
|
||||
generateKeyOwnershipProof: AugmentedCall<ApiType, (setId: SetId | AnyNumber | Uint8Array, authorityId: AuthorityId | string | Uint8Array) => Observable<Option<OpaqueKeyOwnershipProof>>>;
|
||||
generateKeyOwnershipProof: AugmentedCall<ApiType, (set_id: u64 | AnyNumber | Uint8Array, authority_id: SpConsensusGrandpaAppPublic | string | Uint8Array) => Observable<Option<Bytes>>>;
|
||||
/**
|
||||
* Get the current GRANDPA authorities and weights. This should not change except for when changes are scheduled and the corresponding delay has passed.
|
||||
* 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.
|
||||
**/
|
||||
grandpaAuthorities: AugmentedCall<ApiType, () => Observable<AuthorityList>>;
|
||||
grandpaAuthorities: AugmentedCall<ApiType, () => Observable<Vec<ITuple<[SpConsensusGrandpaAppPublic, u64]>>>>;
|
||||
/**
|
||||
* Submits an unsigned extrinsic to report an equivocation.
|
||||
* 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.
|
||||
**/
|
||||
submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocationProof: GrandpaEquivocationProof | { setId?: any; equivocation?: any } | string | Uint8Array, keyOwnerProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
|
||||
submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocation_proof: SpConsensusGrandpaEquivocationProof | { setId?: any; equivocation?: any } | string | Uint8Array, key_owner_proof: Bytes | string | Uint8Array) => Observable<Option<Null>>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x37e397fc7c91f5e4/2 */
|
||||
/** 0x37e397fc7c91f5e4/ */
|
||||
metadata: {
|
||||
/**
|
||||
* Returns the metadata of a runtime
|
||||
* Returns the metadata of a runtime.
|
||||
**/
|
||||
metadata: AugmentedCall<ApiType, () => Observable<OpaqueMetadata>>;
|
||||
/**
|
||||
* Returns the metadata at a given version.
|
||||
* 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.
|
||||
**/
|
||||
metadataAtVersion: AugmentedCall<ApiType, (version: u32 | AnyNumber | Uint8Array) => Observable<Option<OpaqueMetadata>>>;
|
||||
/**
|
||||
* Returns the supported metadata versions.
|
||||
* Returns the supported metadata versions.,, This can be used to call `metadata_at_version`.
|
||||
**/
|
||||
metadataVersions: AugmentedCall<ApiType, () => Observable<Vec<u32>>>;
|
||||
/**
|
||||
@@ -265,125 +259,141 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x6fd7c327202e4a8d/1 */
|
||||
/** 0x6fd7c327202e4a8d/ */
|
||||
mixnetApi: {
|
||||
/**
|
||||
* Get the index and phase of the current session.
|
||||
* Get the mixnode set for the current session.
|
||||
**/
|
||||
currentMixnodes: AugmentedCall<ApiType, () => Observable<Result<Mixnode, MixnodesErr>>>;
|
||||
currentMixnodes: AugmentedCall<ApiType, () => Observable<Result<Vec<SpMixnetMixnode>, SpMixnetMixnodesErr>>>;
|
||||
/**
|
||||
* Try to register a mixnode for the next session.
|
||||
* Try to register a mixnode for the next session.,, If a registration extrinsic is submitted, `true` is returned. The caller should avoid, calling `maybe_register` again for a few blocks, to give the submitted extrinsic a, chance to get included.,, With the above exception, `maybe_register` is designed to be called every block. Most, of the time it will not do anything, for example:,, - If it is not an appropriate time to submit a registration extrinsic., - If the local node has already registered a mixnode for the next session., - If the local node is not permitted to register a mixnode for the next session.,, `session_index` should match `session_status().current_index`; if it does not, `false`, is returned immediately.
|
||||
**/
|
||||
maybeRegister: AugmentedCall<ApiType, (session_index: u32 | AnyNumber | Uint8Array, mixnode: Mixnode | { externalAddresses?: any; kxPublic?: any; peerId?: any } | string | Uint8Array) => Observable<bool>>;
|
||||
maybeRegister: AugmentedCall<ApiType, (session_index: u32 | AnyNumber | Uint8Array, mixnode: SpMixnetMixnode | { kxPublic?: any; peerId?: any; externalAddresses?: any } | string | Uint8Array) => Observable<bool>>;
|
||||
/**
|
||||
* Get the mixnode set for the previous session.
|
||||
**/
|
||||
prevMixnodes: AugmentedCall<ApiType, () => Observable<Result<Vec<SpMixnetMixnode>, SpMixnetMixnodesErr>>>;
|
||||
/**
|
||||
* Get the index and phase of the current session.
|
||||
**/
|
||||
prevMixnodes: AugmentedCall<ApiType, () => Observable<Result<Mixnode, MixnodesErr>>>;
|
||||
/**
|
||||
* Get the index and phase of the current session.
|
||||
**/
|
||||
sessionStatus: AugmentedCall<ApiType, () => Observable<SessionStatus>>;
|
||||
sessionStatus: AugmentedCall<ApiType, () => Observable<SpMixnetSessionStatus>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x91d5df18b0d2cf58/2 */
|
||||
/** 0x91d5df18b0d2cf58/ */
|
||||
mmrApi: {
|
||||
/**
|
||||
* Generate MMR proof for the given block numbers.
|
||||
* 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.
|
||||
**/
|
||||
generateProof: AugmentedCall<ApiType, (blockNumbers: Vec<BlockNumber> | (BlockNumber | AnyNumber | Uint8Array)[], bestKnownBlockNumber: Option<BlockNumber> | null | Uint8Array | BlockNumber | AnyNumber) => Observable<Result<ITuple<[Vec<MmrEncodableOpaqueLeaf>, MmrBatchProof]>, MmrError>>>;
|
||||
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>>>;
|
||||
/**
|
||||
* Return the number of MMR blocks in the chain.
|
||||
**/
|
||||
mmrLeafCount: AugmentedCall<ApiType, () => Observable<Result<U64, MmrError>>>;
|
||||
mmrLeafCount: AugmentedCall<ApiType, () => Observable<Result<u64, SpMmrPrimitivesError>>>;
|
||||
/**
|
||||
* Return the on-chain MMR root hash.
|
||||
**/
|
||||
mmrRoot: AugmentedCall<ApiType, () => Observable<Result<Hash, MmrError>>>;
|
||||
mmrRoot: AugmentedCall<ApiType, () => Observable<Result<H256, SpMmrPrimitivesError>>>;
|
||||
/**
|
||||
* Verify MMR proof against on-chain MMR.
|
||||
* 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]
|
||||
**/
|
||||
verifyProof: AugmentedCall<ApiType, (leaves: Vec<MmrEncodableOpaqueLeaf> | (MmrEncodableOpaqueLeaf | string | Uint8Array)[], proof: MmrBatchProof | { leafIndices?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
|
||||
verifyProof: AugmentedCall<ApiType, (leaves: Vec<Bytes> | (Bytes | string | Uint8Array)[], proof: SpMmrPrimitivesLeafProof | { leafIndices?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<Null, SpMmrPrimitivesError>>>;
|
||||
/**
|
||||
* Verify MMR proof against given root hash.
|
||||
* 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]
|
||||
**/
|
||||
verifyProofStateless: AugmentedCall<ApiType, (root: Hash | string | Uint8Array, leaves: Vec<MmrEncodableOpaqueLeaf> | (MmrEncodableOpaqueLeaf | string | Uint8Array)[], proof: MmrBatchProof | { leafIndices?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
|
||||
verifyProofStateless: AugmentedCall<ApiType, (root: H256 | string | Uint8Array, leaves: Vec<Bytes> | (Bytes | string | Uint8Array)[], proof: SpMmrPrimitivesLeafProof | { leafIndices?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<Null, SpMmrPrimitivesError>>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x899a250cbe84f250/1 */
|
||||
/** 0x899a250cbe84f250/ */
|
||||
nftsApi: {
|
||||
/**
|
||||
* An attribute
|
||||
*
|
||||
**/
|
||||
attribute: AugmentedCall<ApiType, (collection: NftCollectionId | AnyNumber | Uint8Array, item: NftItemId | AnyNumber | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Option<Bytes>>>;
|
||||
attribute: AugmentedCall<ApiType, (collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Option<Bytes>>>;
|
||||
/**
|
||||
* A collection attribute
|
||||
*
|
||||
**/
|
||||
collectionAttribute: AugmentedCall<ApiType, (collection: NftCollectionId | AnyNumber | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Option<Bytes>>>;
|
||||
collectionAttribute: AugmentedCall<ApiType, (collection: u32 | AnyNumber | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Option<Bytes>>>;
|
||||
/**
|
||||
* A collection owner
|
||||
*
|
||||
**/
|
||||
collectionOwner: AugmentedCall<ApiType, (collection: NftCollectionId | AnyNumber | Uint8Array) => Observable<Option<AccountId>>>;
|
||||
collectionOwner: AugmentedCall<ApiType, (collection: u32 | AnyNumber | Uint8Array) => Observable<Option<AccountId32>>>;
|
||||
/**
|
||||
* A custom attribute
|
||||
*
|
||||
**/
|
||||
customAttribute: AugmentedCall<ApiType, (account: AccountId | string | Uint8Array, collection: NftCollectionId | AnyNumber | Uint8Array, item: NftItemId | AnyNumber | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Option<Bytes>>>;
|
||||
customAttribute: AugmentedCall<ApiType, (account: AccountId32 | string | Uint8Array, collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Option<Bytes>>>;
|
||||
/**
|
||||
* Collection owner
|
||||
*
|
||||
**/
|
||||
owner: AugmentedCall<ApiType, (collection: NftCollectionId | AnyNumber | Uint8Array, item: NftItemId | AnyNumber | Uint8Array) => Observable<Option<AccountId>>>;
|
||||
owner: AugmentedCall<ApiType, (collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array) => Observable<Option<AccountId32>>>;
|
||||
/**
|
||||
* System attribute
|
||||
*
|
||||
**/
|
||||
systemAttribute: AugmentedCall<ApiType, (collection: NftCollectionId | AnyNumber | Uint8Array, item: NftItemId | AnyNumber | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Option<Bytes>>>;
|
||||
systemAttribute: AugmentedCall<ApiType, (collection: u32 | AnyNumber | Uint8Array, item: Option<u32> | null | Uint8Array | u32 | AnyNumber, key: Bytes | string | Uint8Array) => Observable<Option<Bytes>>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x17a6bc0d0062aeb3/1 */
|
||||
/** 0x17a6bc0d0062aeb3/ */
|
||||
nominationPoolsApi: {
|
||||
/**
|
||||
* Returns the equivalent points of `new_funds` for a given pool.
|
||||
**/
|
||||
balanceToPoints: AugmentedCall<ApiType, (poolId: NpPoolId | AnyNumber | Uint8Array, newFunds: Balance | AnyNumber | Uint8Array) => Observable<Balance>>;
|
||||
balanceToPoints: AugmentedCall<ApiType, (pool_id: u32 | AnyNumber | Uint8Array, new_funds: u128 | AnyNumber | Uint8Array) => Observable<u128>>;
|
||||
/**
|
||||
* Returns the pending rewards for the given member.
|
||||
* 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.
|
||||
**/
|
||||
pendingRewards: AugmentedCall<ApiType, (member: AccountId | string | Uint8Array) => Observable<Balance>>;
|
||||
memberNeedsDelegateMigration: AugmentedCall<ApiType, (member: AccountId32 | string | Uint8Array) => Observable<bool>>;
|
||||
/**
|
||||
* Returns the pending slash for a given pool member.
|
||||
**/
|
||||
memberPendingSlash: AugmentedCall<ApiType, (member: AccountId32 | string | Uint8Array) => Observable<u128>>;
|
||||
/**
|
||||
* Returns the pending rewards for the member that the AccountId was given for.
|
||||
**/
|
||||
pendingRewards: AugmentedCall<ApiType, (who: AccountId32 | string | Uint8Array) => Observable<u128>>;
|
||||
/**
|
||||
* Returns the equivalent balance of `points` for a given pool.
|
||||
**/
|
||||
pointsToBalance: AugmentedCall<ApiType, (poolId: NpPoolId | AnyNumber | Uint8Array, points: Balance | AnyNumber | Uint8Array) => Observable<Balance>>;
|
||||
pointsToBalance: AugmentedCall<ApiType, (pool_id: u32 | AnyNumber | Uint8Array, points: u128 | AnyNumber | Uint8Array) => Observable<u128>>;
|
||||
/**
|
||||
* 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.
|
||||
**/
|
||||
poolNeedsDelegateMigration: AugmentedCall<ApiType, (pool_id: u32 | AnyNumber | Uint8Array) => Observable<bool>>;
|
||||
/**
|
||||
* Returns the pending slash for a given pool.
|
||||
**/
|
||||
poolPendingSlash: AugmentedCall<ApiType, (pool_id: u32 | AnyNumber | Uint8Array) => Observable<u128>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0xf78b278be53f454c/2 */
|
||||
/** 0xf78b278be53f454c/ */
|
||||
offchainWorkerApi: {
|
||||
/**
|
||||
* Starts the off-chain task for given block header.
|
||||
**/
|
||||
offchainWorker: AugmentedCall<ApiType, (header: Header | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } | string | Uint8Array) => Observable<Null>>;
|
||||
offchainWorker: AugmentedCall<ApiType, (header: SpRuntimeHeader | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } | string | Uint8Array) => Observable<Null>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0xab3c0572291feb8b/1 */
|
||||
/** 0xab3c0572291feb8b/ */
|
||||
sessionKeys: {
|
||||
/**
|
||||
* Decode the given public session keys.
|
||||
* Decode the given public session keys.,, Returns the list of public raw public keys + key type.
|
||||
**/
|
||||
decodeSessionKeys: AugmentedCall<ApiType, (encoded: Bytes | string | Uint8Array) => Observable<Option<Vec<ITuple<[Bytes, KeyTypeId]>>>>>;
|
||||
decodeSessionKeys: AugmentedCall<ApiType, (encoded: Bytes | string | Uint8Array) => Observable<Option<Vec<ITuple<[Bytes, SpCoreCryptoKeyTypeId]>>>>>;
|
||||
/**
|
||||
* Generate a set of session keys with optionally using the given seed.
|
||||
* 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.
|
||||
**/
|
||||
generateSessionKeys: AugmentedCall<ApiType, (seed: Option<Bytes> | null | Uint8Array | Bytes | string) => Observable<Bytes>>;
|
||||
/**
|
||||
@@ -391,80 +401,88 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x18ef58a3b67ba770/1 */
|
||||
/** 0x18ef58a3b67ba770/ */
|
||||
stakingApi: {
|
||||
/**
|
||||
* Returns the page count of exposures for a validator `account` in a given era.
|
||||
**/
|
||||
erasStakersPageCount: AugmentedCall<ApiType, (era: u32 | AnyNumber | Uint8Array, account: AccountId32 | string | Uint8Array) => Observable<u32>>;
|
||||
/**
|
||||
* Returns the nominations quota for a nominator with a given balance.
|
||||
**/
|
||||
nominationsQuota: AugmentedCall<ApiType, (balance: Balance | AnyNumber | Uint8Array) => Observable<u32>>;
|
||||
nominationsQuota: AugmentedCall<ApiType, (balance: u128 | AnyNumber | Uint8Array) => Observable<u32>>;
|
||||
/**
|
||||
* Returns true if validator `account` has pages to be claimed for the given era.
|
||||
**/
|
||||
pendingRewards: AugmentedCall<ApiType, (era: u32 | AnyNumber | Uint8Array, account: AccountId32 | string | Uint8Array) => Observable<bool>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0xd2bc9897eed08f15/3 */
|
||||
/** 0xd2bc9897eed08f15/ */
|
||||
taggedTransactionQueue: {
|
||||
/**
|
||||
* Validate the transaction.
|
||||
* 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.
|
||||
**/
|
||||
validateTransaction: AugmentedCall<ApiType, (source: TransactionSource | 'InBlock' | 'Local' | 'External' | number | Uint8Array, tx: Extrinsic | IExtrinsic | string | Uint8Array, blockHash: BlockHash | string | Uint8Array) => Observable<TransactionValidity>>;
|
||||
validateTransaction: AugmentedCall<ApiType, (source: SpRuntimeTransactionValidityTransactionSource | 'InBlock' | 'Local' | 'External' | number | Uint8Array, tx: Extrinsic | IExtrinsic | string | Uint8Array, block_hash: H256 | string | Uint8Array) => Observable<Result<SpRuntimeTransactionValidityValidTransaction, SpRuntimeTransactionValidityTransactionValidityError>>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x37c8bb1350a9a2a8/4 */
|
||||
/** 0x37c8bb1350a9a2a8/ */
|
||||
transactionPaymentApi: {
|
||||
/**
|
||||
* The transaction fee details
|
||||
*
|
||||
**/
|
||||
queryFeeDetails: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<FeeDetails>>;
|
||||
queryFeeDetails: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<PalletTransactionPaymentFeeDetails>>;
|
||||
/**
|
||||
* The transaction info
|
||||
*
|
||||
**/
|
||||
queryInfo: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<RuntimeDispatchInfo>>;
|
||||
queryInfo: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<PalletTransactionPaymentRuntimeDispatchInfo>>;
|
||||
/**
|
||||
* Query the output of the current LengthToFee given some input
|
||||
*
|
||||
**/
|
||||
queryLengthToFee: AugmentedCall<ApiType, (length: u32 | AnyNumber | Uint8Array) => Observable<Balance>>;
|
||||
queryLengthToFee: AugmentedCall<ApiType, (length: u32 | AnyNumber | Uint8Array) => Observable<u128>>;
|
||||
/**
|
||||
* Query the output of the current WeightToFee given some input
|
||||
*
|
||||
**/
|
||||
queryWeightToFee: AugmentedCall<ApiType, (weight: Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => Observable<Balance>>;
|
||||
queryWeightToFee: AugmentedCall<ApiType, (weight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => Observable<u128>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0xf3ff14d5ab527059/3 */
|
||||
/** 0xf3ff14d5ab527059/ */
|
||||
transactionPaymentCallApi: {
|
||||
/**
|
||||
* The call fee details
|
||||
* Query fee details of a given encoded `Call`.
|
||||
**/
|
||||
queryCallFeeDetails: AugmentedCall<ApiType, (call: Call | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<FeeDetails>>;
|
||||
queryCallFeeDetails: AugmentedCall<ApiType, (call: RuntimeCall | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<PalletTransactionPaymentFeeDetails>>;
|
||||
/**
|
||||
* The call info
|
||||
* Query information of a dispatch class, weight, and fee of a given encoded `Call`.
|
||||
**/
|
||||
queryCallInfo: AugmentedCall<ApiType, (call: Call | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<RuntimeDispatchInfo>>;
|
||||
queryCallInfo: AugmentedCall<ApiType, (call: RuntimeCall | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<PalletTransactionPaymentRuntimeDispatchInfo>>;
|
||||
/**
|
||||
* Query the output of the current LengthToFee given some input
|
||||
* Query the output of the current `LengthToFee` given some input.
|
||||
**/
|
||||
queryLengthToFee: AugmentedCall<ApiType, (length: u32 | AnyNumber | Uint8Array) => Observable<Balance>>;
|
||||
queryLengthToFee: AugmentedCall<ApiType, (length: u32 | AnyNumber | Uint8Array) => Observable<u128>>;
|
||||
/**
|
||||
* Query the output of the current WeightToFee given some input
|
||||
* Query the output of the current `WeightToFee` given some input.
|
||||
**/
|
||||
queryWeightToFee: AugmentedCall<ApiType, (weight: Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => Observable<Balance>>;
|
||||
queryWeightToFee: AugmentedCall<ApiType, (weight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => Observable<u128>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0xbe9fb0c91a8046cf/1 */
|
||||
/** 0xbe9fb0c91a8046cf/ */
|
||||
validateStatement: {
|
||||
/**
|
||||
* Validate the statement.
|
||||
**/
|
||||
valdateStatement: AugmentedCall<ApiType, (source: StatementStoreStatementSource | 'Chain' | 'Network' | 'Local' | number | Uint8Array, statement: SpStatementStoreStatement | { proof?: any; decryptionKey?: any; channel?: any; priority?: any; numTopics?: any; topics?: any; data?: any } | string | Uint8Array) => Observable<Result<StatementStoreValidStatement, StatementStoreInvalidStatement>>>;
|
||||
validateStatement: AugmentedCall<ApiType, (source: SpStatementStoreRuntimeApiStatementSource | 'Chain' | 'Network' | 'Local' | number | Uint8Array, statement: SpStatementStoreStatement | { proof?: any; decryptionKey?: any; channel?: any; priority?: any; numTopics?: any; topics?: any; data?: any } | string | Uint8Array) => Observable<Result<SpStatementStoreRuntimeApiValidStatement, SpStatementStoreRuntimeApiInvalidStatement>>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
|
||||
@@ -18,13 +18,13 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "13.2.1",
|
||||
"version": "14.2.3",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/rpc-core": "13.2.1",
|
||||
"@polkadot/types": "13.2.1",
|
||||
"@polkadot/util": "^13.1.1",
|
||||
"@polkadot/rpc-core": "14.2.3",
|
||||
"@polkadot/types": "14.2.3",
|
||||
"@polkadot/util": "^13.2.2",
|
||||
"rxjs": "^7.8.1",
|
||||
"tslib": "^2.7.0"
|
||||
"tslib": "^2.8.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '13.2.1' };
|
||||
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '14.2.3' };
|
||||
|
||||
@@ -18,22 +18,22 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "13.2.1",
|
||||
"version": "14.2.3",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/api": "13.2.1",
|
||||
"@polkadot/api-augment": "13.2.1",
|
||||
"@polkadot/types": "13.2.1",
|
||||
"@polkadot/types-codec": "13.2.1",
|
||||
"@polkadot/types-create": "13.2.1",
|
||||
"@polkadot/util": "^13.1.1",
|
||||
"@polkadot/util-crypto": "^13.1.1",
|
||||
"@polkadot/api": "14.2.3",
|
||||
"@polkadot/api-augment": "14.2.3",
|
||||
"@polkadot/types": "14.2.3",
|
||||
"@polkadot/types-codec": "14.2.3",
|
||||
"@polkadot/types-create": "14.2.3",
|
||||
"@polkadot/util": "^13.2.2",
|
||||
"@polkadot/util-crypto": "^13.2.2",
|
||||
"rxjs": "^7.8.1",
|
||||
"tslib": "^2.7.0"
|
||||
"tslib": "^2.8.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api-augment": "13.2.1",
|
||||
"@polkadot/keyring": "^13.1.1",
|
||||
"@polkadot/types-support": "13.2.1"
|
||||
"@polkadot/api-augment": "14.2.3",
|
||||
"@polkadot/keyring": "^13.2.2",
|
||||
"@polkadot/types-support": "14.2.3"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '13.2.1' };
|
||||
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '14.2.3' };
|
||||
|
||||
@@ -18,25 +18,25 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "13.2.1",
|
||||
"version": "14.2.3",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/api": "13.2.1",
|
||||
"@polkadot/api-augment": "13.2.1",
|
||||
"@polkadot/api-base": "13.2.1",
|
||||
"@polkadot/rpc-core": "13.2.1",
|
||||
"@polkadot/types": "13.2.1",
|
||||
"@polkadot/types-codec": "13.2.1",
|
||||
"@polkadot/util": "^13.1.1",
|
||||
"@polkadot/util-crypto": "^13.1.1",
|
||||
"@polkadot/api": "14.2.3",
|
||||
"@polkadot/api-augment": "14.2.3",
|
||||
"@polkadot/api-base": "14.2.3",
|
||||
"@polkadot/rpc-core": "14.2.3",
|
||||
"@polkadot/types": "14.2.3",
|
||||
"@polkadot/types-codec": "14.2.3",
|
||||
"@polkadot/util": "^13.2.2",
|
||||
"@polkadot/util-crypto": "^13.2.2",
|
||||
"rxjs": "^7.8.1",
|
||||
"tslib": "^2.7.0"
|
||||
"tslib": "^2.8.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api": "13.2.1",
|
||||
"@polkadot/api-augment": "13.2.1",
|
||||
"@polkadot/rpc-augment": "13.2.1",
|
||||
"@polkadot/rpc-provider": "13.2.1",
|
||||
"@polkadot/types-support": "13.2.1"
|
||||
"@polkadot/api": "14.2.3",
|
||||
"@polkadot/api-augment": "14.2.3",
|
||||
"@polkadot/rpc-augment": "14.2.3",
|
||||
"@polkadot/rpc-provider": "14.2.3",
|
||||
"@polkadot/types-support": "14.2.3"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ export function accountId (instanceId: string, api: DeriveApi): (address?: Addre
|
||||
: decodeAddress((address || '').toString());
|
||||
|
||||
if (decoded.length > 8) {
|
||||
return of(api.registry.createType('AccountId', decoded));
|
||||
return of(api.registry.createType(decoded.length === 20 ? 'AccountId20' : 'AccountId', decoded));
|
||||
}
|
||||
|
||||
const accountIndex = api.registry.createType('AccountIndex', decoded);
|
||||
|
||||
@@ -34,7 +34,7 @@ export function idAndIndex (instanceId: string, api: DeriveApi): (address?: Addr
|
||||
: decodeAddress((address || '').toString());
|
||||
|
||||
if (decoded.length > 8) {
|
||||
const accountId = api.registry.createType('AccountId', decoded);
|
||||
const accountId = api.registry.createType(decoded.length === 20 ? 'AccountId20' : 'AccountId', decoded);
|
||||
|
||||
return api.derive.accounts.idToIndex(accountId).pipe(
|
||||
map((accountIndex): AccountIdAndIndex => [accountId, accountIndex])
|
||||
|
||||
@@ -5,7 +5,7 @@ import type { Observable } from 'rxjs';
|
||||
import type { QueryableStorage } from '@polkadot/api-base/types';
|
||||
import type { Compact, Vec } from '@polkadot/types';
|
||||
import type { AccountId, BlockNumber, Header } from '@polkadot/types/interfaces';
|
||||
import type { SpCoreSr25519Public } from '@polkadot/types/lookup';
|
||||
import type { PalletImOnlineSr25519AppSr25519Public } from '@polkadot/types/lookup';
|
||||
import type { Codec, IOption } from '@polkadot/types/types';
|
||||
import type { DeriveApi } from '../types.js';
|
||||
|
||||
@@ -16,7 +16,7 @@ import { memo, unwrapBlockNumber } from '../util/index.js';
|
||||
export type BlockNumberDerive = (instanceId: string, api: DeriveApi) => () => Observable<BlockNumber>;
|
||||
|
||||
type OptionMapping = IOption<{ account: AccountId } & Codec>;
|
||||
type OptionNimbus = IOption<{ nimbus: SpCoreSr25519Public } & Codec>;
|
||||
type OptionNimbus = IOption<{ nimbus: PalletImOnlineSr25519AppSr25519Public } & Codec>;
|
||||
|
||||
export function createBlockNumberDerive <T extends { number: Compact<BlockNumber> | BlockNumber }> (fn: (api: DeriveApi) => Observable<T>): BlockNumberDerive {
|
||||
return (instanceId: string, api: DeriveApi) =>
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '13.2.1' };
|
||||
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '14.2.3' };
|
||||
|
||||
@@ -29,7 +29,7 @@ function extractCompatRewards (claimedRewardsEras: Vec<u32>, ledger?: PalletStak
|
||||
return claimedRewardsEras.toArray().concat(l);
|
||||
}
|
||||
|
||||
function parseRewards (api: DeriveApi, stashId: AccountId, [erasPoints, erasPrefs, erasRewards]: ErasResult, exposures: DeriveStakerExposure[]): DeriveStakerReward[] {
|
||||
function parseRewards (api: DeriveApi, stashId: AccountId, [erasPoints, erasPrefs, erasRewards]: ErasResult, exposures: DeriveStakerExposure[], claimedRewardsEras: Vec<u32>): DeriveStakerReward[] {
|
||||
return exposures.map(({ era, isEmpty, isValidator, nominating, validators: eraValidators }): DeriveStakerReward => {
|
||||
const { eraPoints, validators: allValPoints } = erasPoints.find((p) => p.era.eq(era)) || { eraPoints: BN_ZERO, validators: {} as DeriveEraValPoints };
|
||||
const { eraReward } = erasRewards.find((r) => r.era.eq(era)) || { eraReward: api.registry.createType('Balance') };
|
||||
@@ -84,6 +84,7 @@ function parseRewards (api: DeriveApi, stashId: AccountId, [erasPoints, erasPref
|
||||
return {
|
||||
era,
|
||||
eraReward,
|
||||
isClaimed: claimedRewardsEras.some((c) => c.eq(era)),
|
||||
isEmpty,
|
||||
isValidator,
|
||||
nominating,
|
||||
@@ -152,6 +153,7 @@ function filterRewards (eras: EraIndex[], valInfo: [string, DeriveStakingQuery][
|
||||
.filter(({ validators }) => Object.keys(validators).length !== 0)
|
||||
.map((reward) =>
|
||||
objectSpread({}, reward, {
|
||||
isClaimed: filter.some((f) => reward.era.eq(f)),
|
||||
nominators: reward.nominating.filter((n) => reward.validators[n.validatorId])
|
||||
})
|
||||
);
|
||||
@@ -182,7 +184,7 @@ export function _stakerRewards (instanceId: string, api: DeriveApi): (accountIds
|
||||
const allRewards = queries.map(({ claimedRewardsEras, stakingLedger, stashId }, index): DeriveStakerReward[] =>
|
||||
(!stashId || (!stakingLedger && !claimedRewardsEras))
|
||||
? []
|
||||
: parseRewards(api, stashId, erasResult, exposures[index])
|
||||
: parseRewards(api, stashId, erasResult, exposures[index], claimedRewardsEras)
|
||||
);
|
||||
|
||||
if (withActive) {
|
||||
|
||||
@@ -93,6 +93,7 @@ export interface DeriveStakerRewardValidator {
|
||||
export interface DeriveStakerReward {
|
||||
era: EraIndex;
|
||||
eraReward: Balance;
|
||||
isClaimed: boolean;
|
||||
isEmpty: boolean;
|
||||
isValidator: boolean;
|
||||
nominating: DeriveEraExposureNominating[];
|
||||
|
||||
@@ -12,11 +12,11 @@ import { memo } from '../util/index.js';
|
||||
export function nextElected (instanceId: string, api: DeriveApi): () => Observable<AccountId[]> {
|
||||
return memo(instanceId, (): Observable<AccountId[]> =>
|
||||
// Compatibility for future generation changes in staking.
|
||||
api.query.staking.erasStakersPaged
|
||||
api.query.staking.erasStakersOverview
|
||||
? api.derive.session.indexes().pipe(
|
||||
// only populate for next era in the last session, so track both here - entries are not
|
||||
// subscriptions, so we need a trigger - currentIndex acts as that trigger to refresh
|
||||
switchMap(({ currentEra }) => api.query.staking.erasStakersPaged.keys(currentEra)),
|
||||
switchMap(({ currentEra }) => api.query.staking.erasStakersOverview.keys(currentEra)),
|
||||
// Dedupe any duplicates
|
||||
map((keys) => [...new Set(keys.map(({ args: [, accountId] }) => accountId.toString()))].map((a) => api.registry.createType('AccountId', a)))
|
||||
)
|
||||
|
||||
@@ -10,7 +10,7 @@ interface CacheValue<T> {
|
||||
x: number;
|
||||
}
|
||||
|
||||
const CHACHE_EXPIRY = 7 * (24 * 60) * (60 * 1000);
|
||||
const CACHE_EXPIRY = 7 * (24 * 60) * (60 * 1000);
|
||||
|
||||
let deriveCache: DeriveCache;
|
||||
|
||||
@@ -43,7 +43,7 @@ function clearCache (cache: DeriveCache): void {
|
||||
const all: string[] = [];
|
||||
|
||||
cache.forEach((key: string, { x }: CacheValue<any>): void => {
|
||||
((now - x) > CHACHE_EXPIRY) && all.push(key);
|
||||
((now - x) > CACHE_EXPIRY) && all.push(key);
|
||||
});
|
||||
|
||||
// don't do delete inside loop, just in-case
|
||||
|
||||
+18
-18
@@ -18,29 +18,29 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "13.2.1",
|
||||
"version": "14.2.3",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/api-augment": "13.2.1",
|
||||
"@polkadot/api-base": "13.2.1",
|
||||
"@polkadot/api-derive": "13.2.1",
|
||||
"@polkadot/keyring": "^13.1.1",
|
||||
"@polkadot/rpc-augment": "13.2.1",
|
||||
"@polkadot/rpc-core": "13.2.1",
|
||||
"@polkadot/rpc-provider": "13.2.1",
|
||||
"@polkadot/types": "13.2.1",
|
||||
"@polkadot/types-augment": "13.2.1",
|
||||
"@polkadot/types-codec": "13.2.1",
|
||||
"@polkadot/types-create": "13.2.1",
|
||||
"@polkadot/types-known": "13.2.1",
|
||||
"@polkadot/util": "^13.1.1",
|
||||
"@polkadot/util-crypto": "^13.1.1",
|
||||
"@polkadot/api-augment": "14.2.3",
|
||||
"@polkadot/api-base": "14.2.3",
|
||||
"@polkadot/api-derive": "14.2.3",
|
||||
"@polkadot/keyring": "^13.2.2",
|
||||
"@polkadot/rpc-augment": "14.2.3",
|
||||
"@polkadot/rpc-core": "14.2.3",
|
||||
"@polkadot/rpc-provider": "14.2.3",
|
||||
"@polkadot/types": "14.2.3",
|
||||
"@polkadot/types-augment": "14.2.3",
|
||||
"@polkadot/types-codec": "14.2.3",
|
||||
"@polkadot/types-create": "14.2.3",
|
||||
"@polkadot/types-known": "14.2.3",
|
||||
"@polkadot/util": "^13.2.2",
|
||||
"@polkadot/util-crypto": "^13.2.2",
|
||||
"eventemitter3": "^5.0.1",
|
||||
"rxjs": "^7.8.1",
|
||||
"tslib": "^2.7.0"
|
||||
"tslib": "^2.8.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api-augment": "13.2.1",
|
||||
"@polkadot/types-support": "13.2.1"
|
||||
"@polkadot/api-augment": "14.2.3",
|
||||
"@polkadot/types-support": "14.2.3"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '13.2.1' };
|
||||
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '14.2.3' };
|
||||
|
||||
@@ -18,13 +18,13 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "13.2.1",
|
||||
"version": "14.2.3",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/rpc-core": "13.2.1",
|
||||
"@polkadot/types": "13.2.1",
|
||||
"@polkadot/types-codec": "13.2.1",
|
||||
"@polkadot/util": "^13.1.1",
|
||||
"tslib": "^2.7.0"
|
||||
"@polkadot/rpc-core": "14.2.3",
|
||||
"@polkadot/types": "14.2.3",
|
||||
"@polkadot/types-codec": "14.2.3",
|
||||
"@polkadot/util": "^13.2.2",
|
||||
"tslib": "^2.8.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '13.2.1' };
|
||||
export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '14.2.3' };
|
||||
|
||||
@@ -18,18 +18,18 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "13.2.1",
|
||||
"version": "14.2.3",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/rpc-augment": "13.2.1",
|
||||
"@polkadot/rpc-provider": "13.2.1",
|
||||
"@polkadot/types": "13.2.1",
|
||||
"@polkadot/util": "^13.1.1",
|
||||
"@polkadot/rpc-augment": "14.2.3",
|
||||
"@polkadot/rpc-provider": "14.2.3",
|
||||
"@polkadot/types": "14.2.3",
|
||||
"@polkadot/util": "^13.2.2",
|
||||
"rxjs": "^7.8.1",
|
||||
"tslib": "^2.7.0"
|
||||
"tslib": "^2.8.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^13.1.1",
|
||||
"@polkadot/rpc-augment": "13.2.1"
|
||||
"@polkadot/keyring": "^13.2.2",
|
||||
"@polkadot/rpc-augment": "14.2.3"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,6 +11,7 @@ import type { RpcCoreStats, RpcInterfaceMethod } from './types/index.js';
|
||||
|
||||
import { Observable, publishReplay, refCount } from 'rxjs';
|
||||
|
||||
import { DEFAULT_CAPACITY, LRUCache } from '@polkadot/rpc-provider';
|
||||
import { rpcDefinitions } from '@polkadot/types';
|
||||
import { hexToU8a, isFunction, isNull, isUndefined, lazyMethod, logger, memoize, objectSpread, u8aConcat, u8aToU8a } from '@polkadot/util';
|
||||
|
||||
@@ -93,9 +94,8 @@ export class RpcCore {
|
||||
readonly #instanceId: string;
|
||||
readonly #isPedantic: boolean;
|
||||
readonly #registryDefault: Registry;
|
||||
readonly #storageCache = new Map<string, Codec>();
|
||||
readonly #storageCache: LRUCache;
|
||||
#storageCacheHits = 0;
|
||||
#storageCacheSize = 0;
|
||||
|
||||
#getBlockRegistry?: (blockHash: Uint8Array) => Promise<{ registry: Registry }>;
|
||||
#getBlockHash?: (blockNumber: AnyNumber) => Promise<Uint8Array>;
|
||||
@@ -123,7 +123,7 @@ export class RpcCore {
|
||||
|
||||
// these are the base keys (i.e. part of jsonrpc)
|
||||
this.sections.push(...sectionNames);
|
||||
|
||||
this.#storageCache = new LRUCache(DEFAULT_CAPACITY * 10 * 10);
|
||||
// decorate all interfaces, defined and user on this instance
|
||||
this.addUserInterfaces(userRpc);
|
||||
}
|
||||
@@ -145,7 +145,7 @@ export class RpcCore {
|
||||
/**
|
||||
* @description Manually disconnect from the attached provider
|
||||
*/
|
||||
public disconnect (): Promise<void> {
|
||||
public async disconnect (): Promise<void> {
|
||||
return this.provider.disconnect();
|
||||
}
|
||||
|
||||
@@ -160,7 +160,7 @@ export class RpcCore {
|
||||
...stats,
|
||||
core: {
|
||||
cacheHits: this.#storageCacheHits,
|
||||
cacheSize: this.#storageCacheSize
|
||||
cacheSize: this.#storageCache.length
|
||||
}
|
||||
}
|
||||
: undefined;
|
||||
@@ -469,7 +469,7 @@ export class RpcCore {
|
||||
// - if a single result value, don't fill - it is not an update hole
|
||||
// - fallback to an empty option in all cases
|
||||
if (isNotFound && withCache) {
|
||||
const cached = this.#storageCache.get(hexKey);
|
||||
const cached = this.#storageCache.get(hexKey) as Codec | undefined;
|
||||
|
||||
if (cached) {
|
||||
this.#storageCacheHits++;
|
||||
@@ -487,15 +487,15 @@ export class RpcCore {
|
||||
: u8aToU8a(value);
|
||||
const codec = this._newType(registry, blockHash, key, input, isEmpty, entryIndex);
|
||||
|
||||
// store the retrieved result - the only issue with this cache is that there is no
|
||||
// clearing of it, so very long running processes (not just a couple of hours, longer)
|
||||
// will increase memory beyond what is allowed.
|
||||
this.#storageCache.set(hexKey, codec);
|
||||
this.#storageCacheSize++;
|
||||
this._setToCache(hexKey, codec);
|
||||
|
||||
return codec;
|
||||
}
|
||||
|
||||
private _setToCache (key: string, value: Codec): void {
|
||||
this.#storageCache.set(key, value);
|
||||
}
|
||||
|
||||
private _newType (registry: Registry, blockHash: Uint8Array | string | null | undefined, key: StorageKey, input: string | Uint8Array | null, isEmpty: boolean, entryIndex = -1): Codec {
|
||||
// single return value (via state.getStorage), decode the value based on the
|
||||
// outputType that we have specified. Fallback to Raw on nothing
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '13.2.1' };
|
||||
export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '14.2.3' };
|
||||
|
||||
@@ -18,21 +18,21 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "13.2.1",
|
||||
"version": "14.2.3",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/keyring": "^13.1.1",
|
||||
"@polkadot/types": "13.2.1",
|
||||
"@polkadot/types-support": "13.2.1",
|
||||
"@polkadot/util": "^13.1.1",
|
||||
"@polkadot/util-crypto": "^13.1.1",
|
||||
"@polkadot/x-fetch": "^13.1.1",
|
||||
"@polkadot/x-global": "^13.1.1",
|
||||
"@polkadot/x-ws": "^13.1.1",
|
||||
"@polkadot/keyring": "^13.2.2",
|
||||
"@polkadot/types": "14.2.3",
|
||||
"@polkadot/types-support": "14.2.3",
|
||||
"@polkadot/util": "^13.2.2",
|
||||
"@polkadot/util-crypto": "^13.2.2",
|
||||
"@polkadot/x-fetch": "^13.2.2",
|
||||
"@polkadot/x-global": "^13.2.2",
|
||||
"@polkadot/x-ws": "^13.2.2",
|
||||
"eventemitter3": "^5.0.1",
|
||||
"mock-socket": "^9.3.1",
|
||||
"nock": "^13.5.4",
|
||||
"tslib": "^2.7.0"
|
||||
"nock": "^13.5.5",
|
||||
"tslib": "^2.8.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@substrate/connect": "0.8.11"
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
export { HttpProvider } from './http/index.js';
|
||||
export { DEFAULT_CAPACITY, LRUCache } from './lru.js';
|
||||
export { packageInfo } from './packageInfo.js';
|
||||
export { ScProvider } from './substrate-connect/index.js';
|
||||
export { WsProvider } from './ws/index.js';
|
||||
|
||||
@@ -8,7 +8,7 @@ import { fetch } from '@polkadot/x-fetch';
|
||||
|
||||
import { RpcCoder } from '../coder/index.js';
|
||||
import defaults from '../defaults.js';
|
||||
import { LRUCache } from '../lru.js';
|
||||
import { DEFAULT_CAPACITY, LRUCache } from '../lru.js';
|
||||
|
||||
const ERROR_SUBSCRIBE = 'HTTP Provider does not have subscriptions, use WebSockets instead';
|
||||
|
||||
@@ -35,7 +35,8 @@ const l = logger('api-http');
|
||||
* @see [[WsProvider]]
|
||||
*/
|
||||
export class HttpProvider implements ProviderInterface {
|
||||
readonly #callCache = new LRUCache();
|
||||
readonly #callCache: LRUCache;
|
||||
readonly #cacheCapacity: number;
|
||||
readonly #coder: RpcCoder;
|
||||
readonly #endpoint: string;
|
||||
readonly #headers: Record<string, string>;
|
||||
@@ -44,7 +45,7 @@ export class HttpProvider implements ProviderInterface {
|
||||
/**
|
||||
* @param {string} endpoint The endpoint url starting with http://
|
||||
*/
|
||||
constructor (endpoint: string = defaults.HTTP_URL, headers: Record<string, string> = {}) {
|
||||
constructor (endpoint: string = defaults.HTTP_URL, headers: Record<string, string> = {}, cacheCapacity?: number) {
|
||||
if (!/^(https|http):\/\//.test(endpoint)) {
|
||||
throw new Error(`Endpoint should start with 'http://' or 'https://', received '${endpoint}'`);
|
||||
}
|
||||
@@ -52,6 +53,9 @@ export class HttpProvider implements ProviderInterface {
|
||||
this.#coder = new RpcCoder();
|
||||
this.#endpoint = endpoint;
|
||||
this.#headers = headers;
|
||||
this.#callCache = new LRUCache(cacheCapacity === 0 ? 0 : cacheCapacity || DEFAULT_CAPACITY);
|
||||
this.#cacheCapacity = cacheCapacity === 0 ? 0 : cacheCapacity || DEFAULT_CAPACITY;
|
||||
|
||||
this.#stats = {
|
||||
active: { requests: 0, subscriptions: 0 },
|
||||
total: { bytesRecv: 0, bytesSent: 0, cached: 0, errors: 0, requests: 0, subscriptions: 0, timeout: 0 }
|
||||
@@ -125,6 +129,11 @@ export class HttpProvider implements ProviderInterface {
|
||||
this.#stats.total.requests++;
|
||||
|
||||
const [, body] = this.#coder.encodeJson(method, params);
|
||||
|
||||
if (this.#cacheCapacity === 0) {
|
||||
return this.#send(body);
|
||||
}
|
||||
|
||||
const cacheKey = isCacheable ? `${method}::${stringify(params)}` : '';
|
||||
let resultPromise: Promise<T> | null = isCacheable
|
||||
? this.#callCache.get(cacheKey)
|
||||
|
||||
@@ -6,52 +6,69 @@
|
||||
import { LRUCache } from './lru.js';
|
||||
|
||||
describe('LRUCache', (): void => {
|
||||
let lru: LRUCache | undefined;
|
||||
|
||||
beforeEach((): void => {
|
||||
lru = new LRUCache(4, 500);
|
||||
});
|
||||
|
||||
it('allows getting of items below capacity', (): void => {
|
||||
const keys = ['1', '2', '3', '4'];
|
||||
const lru = new LRUCache(4);
|
||||
|
||||
keys.forEach((k) => lru.set(k, `${k}${k}${k}`));
|
||||
keys.forEach((k) => lru?.set(k, `${k}${k}${k}`));
|
||||
const lruKeys = lru?.keys();
|
||||
|
||||
expect(lru.keys().join(', ')).toEqual(keys.reverse().join(', '));
|
||||
expect(lru.length === lru.lengthData && lru.length === lru.lengthRefs).toBe(true);
|
||||
expect(lruKeys?.join(', ')).toBe(keys.reverse().join(', '));
|
||||
expect(lru?.length === lru?.lengthData && lru?.length === lru?.lengthRefs).toBe(true);
|
||||
|
||||
keys.forEach((k) => expect(lru.get(k)).toEqual(`${k}${k}${k}`));
|
||||
keys.forEach((k) => expect(lru?.get(k)).toEqual(`${k}${k}${k}`));
|
||||
});
|
||||
|
||||
it('drops items when at capacity', (): void => {
|
||||
const keys = ['1', '2', '3', '4', '5', '6'];
|
||||
const lru = new LRUCache(4);
|
||||
|
||||
keys.forEach((k) => lru.set(k, `${k}${k}${k}`));
|
||||
keys.forEach((k) => lru?.set(k, `${k}${k}${k}`));
|
||||
|
||||
expect(lru.keys().join(', ')).toEqual(keys.slice(2).reverse().join(', '));
|
||||
expect(lru.length === lru.lengthData && lru.length === lru.lengthRefs).toBe(true);
|
||||
expect(lru?.keys().join(', ')).toEqual(keys.slice(2).reverse().join(', '));
|
||||
expect(lru?.length === lru?.lengthData && lru?.length === lru?.lengthRefs).toBe(true);
|
||||
|
||||
keys.slice(2).forEach((k) => expect(lru.get(k)).toEqual(`${k}${k}${k}`));
|
||||
keys.slice(2).forEach((k) => expect(lru?.get(k)).toEqual(`${k}${k}${k}`));
|
||||
});
|
||||
|
||||
it('adjusts the order as they are used', (): void => {
|
||||
const keys = ['1', '2', '3', '4', '5'];
|
||||
const lru = new LRUCache(4);
|
||||
|
||||
keys.forEach((k) => lru.set(k, `${k}${k}${k}`));
|
||||
keys.forEach((k) => lru?.set(k, `${k}${k}${k}`));
|
||||
|
||||
expect(lru.entries()).toEqual([['5', '555'], ['4', '444'], ['3', '333'], ['2', '222']]);
|
||||
expect(lru.length === lru.lengthData && lru.length === lru.lengthRefs).toBe(true);
|
||||
expect(lru?.entries()).toEqual([['5', '555'], ['4', '444'], ['3', '333'], ['2', '222']]);
|
||||
expect(lru?.length === lru?.lengthData && lru?.length === lru?.lengthRefs).toBe(true);
|
||||
|
||||
lru.get('3');
|
||||
lru?.get('3');
|
||||
|
||||
expect(lru.entries()).toEqual([['3', '333'], ['5', '555'], ['4', '444'], ['2', '222']]);
|
||||
expect(lru.length === lru.lengthData && lru.length === lru.lengthRefs).toBe(true);
|
||||
expect(lru?.entries()).toEqual([['3', '333'], ['5', '555'], ['4', '444'], ['2', '222']]);
|
||||
expect(lru?.length === lru?.lengthData && lru?.length === lru?.lengthRefs).toBe(true);
|
||||
|
||||
lru.set('4', '4433');
|
||||
lru?.set('4', '4433');
|
||||
|
||||
expect(lru.entries()).toEqual([['4', '4433'], ['3', '333'], ['5', '555'], ['2', '222']]);
|
||||
expect(lru.length === lru.lengthData && lru.length === lru.lengthRefs).toBe(true);
|
||||
expect(lru?.entries()).toEqual([['4', '4433'], ['3', '333'], ['5', '555'], ['2', '222']]);
|
||||
expect(lru?.length === lru?.lengthData && lru?.length === lru?.lengthRefs).toBe(true);
|
||||
|
||||
lru.set('6', '666');
|
||||
lru?.set('6', '666');
|
||||
|
||||
expect(lru.entries()).toEqual([['6', '666'], ['4', '4433'], ['3', '333'], ['5', '555']]);
|
||||
expect(lru.length === lru.lengthData && lru.length === lru.lengthRefs).toBe(true);
|
||||
expect(lru?.entries()).toEqual([['6', '666'], ['4', '4433'], ['3', '333'], ['5', '555']]);
|
||||
expect(lru?.length === lru?.lengthData && lru?.length === lru?.lengthRefs).toBe(true);
|
||||
});
|
||||
|
||||
it('evicts items with TTL', (): void => {
|
||||
const keys = ['1', '2', '3', '4', '5'];
|
||||
|
||||
keys.forEach((k) => lru?.set(k, `${k}${k}${k}`));
|
||||
|
||||
expect(lru?.entries()).toEqual([['5', '555'], ['4', '444'], ['3', '333'], ['2', '222']]);
|
||||
|
||||
setTimeout((): void => {
|
||||
lru?.get('3');
|
||||
expect(lru?.entries()).toEqual([['3', '333']]);
|
||||
}, 800);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -4,18 +4,33 @@
|
||||
// Assuming all 1.5MB responses, we apply a default allowing for 192MB
|
||||
// cache space (depending on the historic queries this would vary, metadata
|
||||
// for Kusama/Polkadot/Substrate falls between 600-750K, 2x for estimate)
|
||||
export const DEFAULT_CAPACITY = 128;
|
||||
|
||||
export const DEFAULT_CAPACITY = 1024;
|
||||
|
||||
class LRUNode {
|
||||
readonly key: string;
|
||||
#expires: number;
|
||||
#ttl: number;
|
||||
readonly createdAt: number;
|
||||
|
||||
public next: LRUNode;
|
||||
public prev: LRUNode;
|
||||
|
||||
constructor (key: string) {
|
||||
constructor (key: string, ttl: number) {
|
||||
this.key = key;
|
||||
this.#ttl = ttl;
|
||||
this.#expires = Date.now() + ttl;
|
||||
this.createdAt = Date.now();
|
||||
this.next = this.prev = this;
|
||||
}
|
||||
|
||||
public refresh (): void {
|
||||
this.#expires = Date.now() + this.#ttl;
|
||||
}
|
||||
|
||||
public get expiry (): number {
|
||||
return this.#expires;
|
||||
}
|
||||
}
|
||||
|
||||
// https://en.wikipedia.org/wiki/Cache_replacement_policies#LRU
|
||||
@@ -29,9 +44,16 @@ export class LRUCache {
|
||||
#head: LRUNode;
|
||||
#tail: LRUNode;
|
||||
|
||||
constructor (capacity = DEFAULT_CAPACITY) {
|
||||
readonly #ttl: number;
|
||||
|
||||
constructor (capacity = DEFAULT_CAPACITY, ttl = 30000) {
|
||||
this.capacity = capacity;
|
||||
this.#head = this.#tail = new LRUNode('<empty>');
|
||||
this.#ttl = ttl;
|
||||
this.#head = this.#tail = new LRUNode('<empty>', ttl);
|
||||
}
|
||||
|
||||
get ttl (): number {
|
||||
return this.#ttl;
|
||||
}
|
||||
|
||||
get length (): number {
|
||||
@@ -83,9 +105,14 @@ export class LRUCache {
|
||||
if (data) {
|
||||
this.#toHead(key);
|
||||
|
||||
// Evict TTL once data is refreshed
|
||||
this.#evictTTL();
|
||||
|
||||
return data as T;
|
||||
}
|
||||
|
||||
this.#evictTTL();
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -93,7 +120,7 @@ export class LRUCache {
|
||||
if (this.#data.has(key)) {
|
||||
this.#toHead(key);
|
||||
} else {
|
||||
const node = new LRUNode(key);
|
||||
const node = new LRUNode(key, this.#ttl);
|
||||
|
||||
this.#refs.set(node.key, node);
|
||||
|
||||
@@ -116,13 +143,33 @@ export class LRUCache {
|
||||
}
|
||||
}
|
||||
|
||||
// Evict TTL once data is refreshed or added
|
||||
this.#evictTTL();
|
||||
|
||||
this.#data.set(key, value);
|
||||
}
|
||||
|
||||
#evictTTL () {
|
||||
// Find last node to keep
|
||||
// traverse map to find the expired nodes
|
||||
while (this.#tail.expiry && this.#tail.expiry < Date.now() && this.#length > 0) {
|
||||
this.#refs.delete(this.#tail.key);
|
||||
this.#data.delete(this.#tail.key);
|
||||
this.#length -= 1;
|
||||
this.#tail = this.#tail.prev;
|
||||
this.#tail.next = this.#head;
|
||||
}
|
||||
|
||||
if (this.#length === 0) {
|
||||
this.#head = this.#tail = new LRUNode('<empty>', this.#ttl);
|
||||
}
|
||||
}
|
||||
|
||||
#toHead (key: string): void {
|
||||
const ref = this.#refs.get(key);
|
||||
|
||||
if (ref && ref !== this.#head) {
|
||||
ref.refresh();
|
||||
ref.prev.next = ref.next;
|
||||
ref.next.prev = ref.prev;
|
||||
ref.next = this.#head;
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '13.2.1' };
|
||||
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '14.2.3' };
|
||||
|
||||
@@ -92,6 +92,7 @@ export class WsProvider implements ProviderInterface {
|
||||
readonly #isReadyPromise: Promise<WsProvider>;
|
||||
readonly #stats: ProviderStats;
|
||||
readonly #waitingForId: Record<string, JsonRpcResponse<unknown>> = {};
|
||||
readonly #cacheCapacity: number;
|
||||
|
||||
#autoConnectMs: number;
|
||||
#endpointIndex: number;
|
||||
@@ -123,6 +124,7 @@ export class WsProvider implements ProviderInterface {
|
||||
}
|
||||
});
|
||||
this.#callCache = new LRUCache(cacheCapacity || DEFAULT_CAPACITY);
|
||||
this.#cacheCapacity = cacheCapacity || DEFAULT_CAPACITY;
|
||||
this.#eventemitter = new EventEmitter();
|
||||
this.#autoConnectMs = autoConnectMs || 0;
|
||||
this.#coder = new RpcCoder();
|
||||
@@ -312,6 +314,11 @@ export class WsProvider implements ProviderInterface {
|
||||
this.#stats.total.requests++;
|
||||
|
||||
const [id, body] = this.#coder.encodeJson(method, params);
|
||||
|
||||
if (this.#cacheCapacity === 0) {
|
||||
return this.#send(id, body, method, params, subscription);
|
||||
}
|
||||
|
||||
const cacheKey = isCacheable ? `${method}::${stringify(params)}` : '';
|
||||
let resultPromise: Promise<T> | null = isCacheable
|
||||
? this.#callCache.get(cacheKey)
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "13.2.1",
|
||||
"version": "14.2.3",
|
||||
"main": "index.js",
|
||||
"bin": {
|
||||
"polkadot-types-chain-info": "./scripts/polkadot-types-chain-info.mjs",
|
||||
@@ -28,20 +28,20 @@
|
||||
"polkadot-types-internal-metadata": "./scripts/polkadot-types-internal-metadata.mjs"
|
||||
},
|
||||
"dependencies": {
|
||||
"@polkadot/api": "13.2.1",
|
||||
"@polkadot/api-augment": "13.2.1",
|
||||
"@polkadot/rpc-augment": "13.2.1",
|
||||
"@polkadot/rpc-provider": "13.2.1",
|
||||
"@polkadot/types": "13.2.1",
|
||||
"@polkadot/types-augment": "13.2.1",
|
||||
"@polkadot/types-codec": "13.2.1",
|
||||
"@polkadot/types-create": "13.2.1",
|
||||
"@polkadot/types-support": "13.2.1",
|
||||
"@polkadot/util": "^13.1.1",
|
||||
"@polkadot/util-crypto": "^13.1.1",
|
||||
"@polkadot/x-ws": "^13.1.1",
|
||||
"@polkadot/api": "14.2.3",
|
||||
"@polkadot/api-augment": "14.2.3",
|
||||
"@polkadot/rpc-augment": "14.2.3",
|
||||
"@polkadot/rpc-provider": "14.2.3",
|
||||
"@polkadot/types": "14.2.3",
|
||||
"@polkadot/types-augment": "14.2.3",
|
||||
"@polkadot/types-codec": "14.2.3",
|
||||
"@polkadot/types-create": "14.2.3",
|
||||
"@polkadot/types-support": "14.2.3",
|
||||
"@polkadot/util": "^13.2.2",
|
||||
"@polkadot/util-crypto": "^13.2.2",
|
||||
"@polkadot/x-ws": "^13.2.2",
|
||||
"handlebars": "^4.7.8",
|
||||
"tslib": "^2.7.0",
|
||||
"tslib": "^2.8.0",
|
||||
"yargs": "^17.7.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -11,9 +11,9 @@ import Handlebars from 'handlebars';
|
||||
import path from 'node:path';
|
||||
|
||||
import * as defaultDefinitions from '@polkadot/types/interfaces/definitions';
|
||||
import staticKusama from '@polkadot/types-support/metadata/static-kusama';
|
||||
import staticPolkadot from '@polkadot/types-support/metadata/static-polkadot';
|
||||
import staticSubstrate from '@polkadot/types-support/metadata/static-substrate';
|
||||
import staticKusama from '@polkadot/types-support/metadata/v15/kusama-hex';
|
||||
import staticPolkadot from '@polkadot/types-support/metadata/v15/polkadot-hex';
|
||||
import staticSubstrate from '@polkadot/types-support/metadata/v15/substrate-hex';
|
||||
import { isString, stringify } from '@polkadot/util';
|
||||
|
||||
import { createImports, exportInterface, initMeta, readTemplate, writeFile } from '../util/index.js';
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
// Copyright 2017-2024 @polkadot/typegen authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { RuntimeApiMethodMetadataV15, SiLookupTypeId } from '@polkadot/types/interfaces';
|
||||
import type { Metadata } from '@polkadot/types/metadata/Metadata';
|
||||
import type { DefinitionCallNamed, Definitions, Registry } from '@polkadot/types/types';
|
||||
import type { DefinitionCall, DefinitionCallNamed, Definitions, DefinitionsCall, Registry } from '@polkadot/types/types';
|
||||
import type { Vec } from '@polkadot/types-codec';
|
||||
import type { HexString } from '@polkadot/util/types';
|
||||
import type { ExtraTypes } from './types.js';
|
||||
|
||||
@@ -19,45 +21,136 @@ type Apis = [HexString, number][];
|
||||
|
||||
const generateCallsTypesTemplate = Handlebars.compile(readTemplate('calls'));
|
||||
|
||||
// This works similar to the PATHS_ALIAS set from the PortableRegistry
|
||||
const aliases: Record<string, string> = {
|
||||
KitchensinkRuntimeRuntimeCall: 'RuntimeCall',
|
||||
OpaqueValue: 'Bytes',
|
||||
PolkadotParachainPrimitivesPrimitivesId: 'ParaId',
|
||||
PolkadotParachainPrimitivesPrimitivesValidationCodeHash: 'ValidationCodeHash',
|
||||
PolkadotPrimitivesV7SlashingOpaqueKeyOwnershipProof: 'OpaqueKeyOwnershipProof',
|
||||
PolkadotRuntimeRuntimeCall: 'RuntimeCall',
|
||||
PrimitiveTypesH256: 'H256',
|
||||
SpConsensusBabeOpaqueKeyOwnershipProof: 'OpaqueKeyOwnershipProof',
|
||||
SpConsensusSlotsSlot: 'Slot',
|
||||
SpCoreCryptoAccountId32: 'AccountId32',
|
||||
SpCoreOpaqueMetadata: 'OpaqueMetadata',
|
||||
SpRuntimeOpaqueValue: 'Bytes',
|
||||
SpRuntimeUncheckedExtrinsic: 'Extrinsic',
|
||||
StagingKusamaRuntimeRuntimeCall: 'RuntimeCall'
|
||||
};
|
||||
|
||||
const getTypesViaAlias = (registry: Registry, id: SiLookupTypeId) => {
|
||||
const typeName = registry.lookup.getName(id) || registry.lookup.getTypeDef(id).type;
|
||||
|
||||
if (aliases[typeName]) {
|
||||
return aliases[typeName];
|
||||
}
|
||||
|
||||
return typeName;
|
||||
};
|
||||
|
||||
/** @internal */
|
||||
function getDefs (apis: Apis | null, defs: Record<string, Definitions>): Record<string, Record<string, DefinitionCallNamed>> {
|
||||
function getMethods (registry: Registry, methods: Vec<RuntimeApiMethodMetadataV15>) {
|
||||
const result: Record<string, DefinitionCall> = {};
|
||||
|
||||
methods.forEach((m) => {
|
||||
const { docs, inputs, name, output } = m;
|
||||
|
||||
result[name.toString()] = {
|
||||
description: docs.map((d) => d.toString()).join(),
|
||||
params: inputs.map(({ name, type }) => {
|
||||
return { name: name.toString(), type: getTypesViaAlias(registry, type) };
|
||||
}),
|
||||
type: getTypesViaAlias(registry, output)
|
||||
};
|
||||
});
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
function getRuntimeDefViaMetadata (registry: Registry) {
|
||||
const result: DefinitionsCall = {};
|
||||
const { apis } = registry.metadata;
|
||||
|
||||
for (let i = 0, count = apis.length; i < count; i++) {
|
||||
const { methods, name } = apis[i];
|
||||
|
||||
result[name.toString()] = [{
|
||||
methods: getMethods(registry, methods),
|
||||
// We set the version to 0 here since it will not be relevant when we are grabbing the runtime apis
|
||||
// from the Metadata.
|
||||
version: 0
|
||||
}];
|
||||
}
|
||||
|
||||
return Object.entries(result);
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
function getDefs (apis: Apis | null, defs: Record<string, Definitions>, registry: Registry): Record<string, Record<string, DefinitionCallNamed>> {
|
||||
const named: Record<string, Record<string, DefinitionCallNamed>> = {};
|
||||
const all = Object.values(defs);
|
||||
const isApiInMetadata = registry.metadata.apis.length > 0;
|
||||
|
||||
for (let j = 0, jcount = all.length; j < jcount; j++) {
|
||||
const set = all[j].runtime;
|
||||
if (isApiInMetadata) {
|
||||
const sections = getRuntimeDefViaMetadata(registry);
|
||||
|
||||
if (set) {
|
||||
const sections = Object.entries(set);
|
||||
for (let j = 0, jcount = sections.length; j < jcount; j++) {
|
||||
const [_section, secs] = sections[j];
|
||||
const sec = secs[0];
|
||||
const sectionHash = blake2AsHex(_section, 64);
|
||||
|
||||
for (let i = 0, scount = sections.length; i < scount; i++) {
|
||||
const [_section, sec] = sections[i];
|
||||
const sectionHash = blake2AsHex(_section, 64);
|
||||
const api = apis?.find(([h]) => h === sectionHash);
|
||||
const section = stringCamelCase(_section);
|
||||
const methods = Object.entries(sec.methods);
|
||||
|
||||
if (api) {
|
||||
const ver = sec.find(({ version }) => version === api[1]);
|
||||
if (!named[section]) {
|
||||
named[section] = {};
|
||||
}
|
||||
|
||||
if (ver) {
|
||||
const methods = Object.entries(ver.methods);
|
||||
const mcount = methods.length;
|
||||
for (let m = 0, mcount = methods.length; m < mcount; m++) {
|
||||
const [_method, def] = methods[m];
|
||||
const method = stringCamelCase(_method);
|
||||
|
||||
if (mcount) {
|
||||
const section = stringCamelCase(_section);
|
||||
named[section][method] = objectSpread({ method, name: `${_section}_${_method}`, section, sectionHash }, def);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
for (let j = 0, jcount = all.length; j < jcount; j++) {
|
||||
const set = all[j].runtime;
|
||||
|
||||
if (!named[section]) {
|
||||
named[section] = {};
|
||||
}
|
||||
|
||||
for (let m = 0; m < mcount; m++) {
|
||||
const [_method, def] = methods[m];
|
||||
const method = stringCamelCase(_method);
|
||||
|
||||
named[section][method] = objectSpread({ method, name: `${_section}_${method}`, section, sectionHash, version: ver.version }, def);
|
||||
if (set) {
|
||||
const sections = Object.entries(set);
|
||||
|
||||
for (let i = 0, scount = sections.length; i < scount; i++) {
|
||||
const [_section, sec] = sections[i];
|
||||
const sectionHash = blake2AsHex(_section, 64);
|
||||
const api = apis?.find(([h]) => h === sectionHash);
|
||||
|
||||
if (api) {
|
||||
const ver = sec.find(({ version }) => version === api[1]);
|
||||
|
||||
if (ver) {
|
||||
const methods = Object.entries(ver.methods);
|
||||
const mcount = methods.length;
|
||||
|
||||
if (mcount) {
|
||||
const section = stringCamelCase(_section);
|
||||
|
||||
if (!named[section]) {
|
||||
named[section] = {};
|
||||
}
|
||||
|
||||
for (let m = 0; m < mcount; m++) {
|
||||
const [_method, def] = methods[m];
|
||||
const method = stringCamelCase(_method);
|
||||
|
||||
named[section][method] = objectSpread({ method, name: `${_section}_${method}`, section, sectionHash, version: ver.version }, def);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
console.warn(`Unable to find matching version for runtime ${_section}, expected ${api[1]}`);
|
||||
}
|
||||
} else {
|
||||
console.warn(`Unable to find matching version for runtime ${_section}, expected ${api[1]}`);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -101,7 +194,7 @@ export function generateCallTypes (registry: Registry, meta: Metadata, dest: str
|
||||
const allDefs = Object.entries(allTypes).reduce((defs, [path, obj]) => {
|
||||
return Object.entries(obj).reduce((defs, [key, value]) => ({ ...defs, [`${path}/${key}`]: value }), defs);
|
||||
}, {});
|
||||
const definitions = getDefs(apis, imports.definitions as Record<string, Definitions>);
|
||||
const definitions = getDefs(apis, imports.definitions as Record<string, Definitions>, registry);
|
||||
const callKeys = Object.keys(definitions);
|
||||
|
||||
const modules = callKeys.map((section) => {
|
||||
|
||||
@@ -57,8 +57,9 @@ function tsEnum (registry: Registry, definitions: Record<string, ModuleTypes>, {
|
||||
|
||||
// When the parent type does not have a lookupName, and the sub type is the same
|
||||
// type as the parent we can take the lookupName from the sub.
|
||||
// This is specific to `StagingXcmV4Junction`.
|
||||
// see: https://github.com/polkadot-js/api/pull/5812
|
||||
if (sub && !Array.isArray(sub) && type.includes(`${sub.type};`)) {
|
||||
if (sub && !Array.isArray(sub) && type.includes(`${sub.type};`) && sub.lookupName === 'StagingXcmV4Junction') {
|
||||
extractedLookupName = sub.lookupName;
|
||||
}
|
||||
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
|
||||
import type { HexString } from '@polkadot/util/types';
|
||||
|
||||
import kusama from '@polkadot/types-support/metadata/static-kusama';
|
||||
import polkadot from '@polkadot/types-support/metadata/static-polkadot';
|
||||
import substrate from '@polkadot/types-support/metadata/static-substrate';
|
||||
import kusama from '@polkadot/types-support/metadata/v15/kusama-hex';
|
||||
import polkadot from '@polkadot/types-support/metadata/v15/polkadot-hex';
|
||||
import substrate from '@polkadot/types-support/metadata/v15/substrate-hex';
|
||||
|
||||
import { generateDefaultConsts, generateDefaultErrors, generateDefaultEvents, generateDefaultInterface, generateDefaultLookup, generateDefaultQuery, generateDefaultRpc, generateDefaultRuntime, generateDefaultTsDef, generateDefaultTx } from './generate/index.js';
|
||||
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '13.2.1' };
|
||||
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '14.2.3' };
|
||||
|
||||
@@ -13,12 +13,23 @@ interface Result {
|
||||
registry: TypeRegistry;
|
||||
}
|
||||
|
||||
/**
|
||||
* This helper method has been transitioned to work with V14, V15 and up.
|
||||
*/
|
||||
export function initMeta (staticMeta: HexString, extraTypes: ExtraTypes = {}): Result {
|
||||
const registry = new TypeRegistry();
|
||||
|
||||
registerDefinitions(registry, extraTypes);
|
||||
|
||||
const metadata = new Metadata(registry, staticMeta);
|
||||
let metadata: Metadata;
|
||||
|
||||
try {
|
||||
const opaqueMetadata = registry.createType('Option<OpaqueMetadata>', registry.createType('Raw', staticMeta).toU8a()).unwrap();
|
||||
|
||||
metadata = new Metadata(registry, opaqueMetadata.toHex());
|
||||
} catch {
|
||||
metadata = new Metadata(registry, staticMeta);
|
||||
}
|
||||
|
||||
registry.setMetadata(metadata);
|
||||
|
||||
|
||||
@@ -18,12 +18,12 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "13.2.1",
|
||||
"version": "14.2.3",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/types": "13.2.1",
|
||||
"@polkadot/types-codec": "13.2.1",
|
||||
"@polkadot/util": "^13.1.1",
|
||||
"tslib": "^2.7.0"
|
||||
"@polkadot/types": "14.2.3",
|
||||
"@polkadot/types-codec": "14.2.3",
|
||||
"@polkadot/util": "^13.2.2",
|
||||
"tslib": "^2.8.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,14 +15,6 @@ export default {
|
||||
authorityDiscovery: 'SpAuthorityDiscoveryAppPublic',
|
||||
beefy: 'SpConsensusBeefyEcdsaCryptoPublic'
|
||||
},
|
||||
/**
|
||||
* Lookup126: polkadot_primitives::v7::validator_app::Public
|
||||
**/
|
||||
PolkadotPrimitivesV7ValidatorAppPublic: '[u8;32]',
|
||||
/**
|
||||
* Lookup127: polkadot_primitives::v7::assignment_app::Public
|
||||
**/
|
||||
PolkadotPrimitivesV7AssignmentAppPublic: '[u8;32]',
|
||||
/**
|
||||
* Lookup150: staging_kusama_runtime::OriginCaller
|
||||
**/
|
||||
@@ -211,253 +203,6 @@ export default {
|
||||
votes23: 'Vec<(Compact<u32>,[(Compact<u16>,Compact<PerU16>);22],Compact<u16>)>',
|
||||
votes24: 'Vec<(Compact<u32>,[(Compact<u16>,Compact<PerU16>);23],Compact<u16>)>'
|
||||
},
|
||||
/**
|
||||
* Lookup303: polkadot_primitives::v7::async_backing::AsyncBackingParams
|
||||
**/
|
||||
PolkadotPrimitivesV7AsyncBackingAsyncBackingParams: {
|
||||
maxCandidateDepth: 'u32',
|
||||
allowedAncestryLen: 'u32'
|
||||
},
|
||||
/**
|
||||
* Lookup304: polkadot_primitives::v7::executor_params::ExecutorParams
|
||||
**/
|
||||
PolkadotPrimitivesV7ExecutorParams: 'Vec<PolkadotPrimitivesV7ExecutorParamsExecutorParam>',
|
||||
/**
|
||||
* Lookup306: polkadot_primitives::v7::executor_params::ExecutorParam
|
||||
**/
|
||||
PolkadotPrimitivesV7ExecutorParamsExecutorParam: {
|
||||
_enum: {
|
||||
__Unused0: 'Null',
|
||||
MaxMemoryPages: 'u32',
|
||||
StackLogicalMax: 'u32',
|
||||
StackNativeMax: 'u32',
|
||||
PrecheckingMaxMemory: 'u64',
|
||||
PvfPrepTimeout: '(PolkadotPrimitivesV7PvfPrepKind,u64)',
|
||||
PvfExecTimeout: '(PolkadotPrimitivesV7PvfExecKind,u64)',
|
||||
WasmExtBulkMemory: 'Null'
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup307: polkadot_primitives::v7::PvfPrepKind
|
||||
**/
|
||||
PolkadotPrimitivesV7PvfPrepKind: {
|
||||
_enum: ['Precheck', 'Prepare']
|
||||
},
|
||||
/**
|
||||
* Lookup308: polkadot_primitives::v7::PvfExecKind
|
||||
**/
|
||||
PolkadotPrimitivesV7PvfExecKind: {
|
||||
_enum: ['Backing', 'Approval']
|
||||
},
|
||||
/**
|
||||
* Lookup309: polkadot_primitives::v7::ApprovalVotingParams
|
||||
**/
|
||||
PolkadotPrimitivesV7ApprovalVotingParams: {
|
||||
maxApprovalCoalesceCount: 'u32'
|
||||
},
|
||||
/**
|
||||
* Lookup310: polkadot_primitives::vstaging::SchedulerParams<BlockNumber>
|
||||
**/
|
||||
PolkadotPrimitivesVstagingSchedulerParams: {
|
||||
groupRotationFrequency: 'u32',
|
||||
parasAvailabilityPeriod: 'u32',
|
||||
maxValidatorsPerCore: 'Option<u32>',
|
||||
lookahead: 'u32',
|
||||
numCores: 'u32',
|
||||
maxAvailabilityTimeouts: 'u32',
|
||||
onDemandQueueMaxSize: 'u32',
|
||||
onDemandTargetQueueUtilization: 'Perbill',
|
||||
onDemandFeeVariability: 'Perbill',
|
||||
onDemandBaseFee: 'u128',
|
||||
ttl: 'u32'
|
||||
},
|
||||
/**
|
||||
* Lookup314: polkadot_primitives::v7::InherentData<sp_runtime::generic::header::Header<Number, Hash>>
|
||||
**/
|
||||
PolkadotPrimitivesV7InherentData: {
|
||||
bitfields: 'Vec<PolkadotPrimitivesV7SignedUncheckedSigned>',
|
||||
backedCandidates: 'Vec<PolkadotPrimitivesV7BackedCandidate>',
|
||||
disputes: 'Vec<PolkadotPrimitivesV7DisputeStatementSet>',
|
||||
parentHeader: 'SpRuntimeHeader'
|
||||
},
|
||||
/**
|
||||
* Lookup316: polkadot_primitives::v7::signed::UncheckedSigned<polkadot_primitives::v7::AvailabilityBitfield, polkadot_primitives::v7::AvailabilityBitfield>
|
||||
**/
|
||||
PolkadotPrimitivesV7SignedUncheckedSigned: {
|
||||
payload: 'BitVec',
|
||||
validatorIndex: 'u32',
|
||||
signature: 'PolkadotPrimitivesV7ValidatorAppSignature'
|
||||
},
|
||||
/**
|
||||
* Lookup321: polkadot_primitives::v7::validator_app::Signature
|
||||
**/
|
||||
PolkadotPrimitivesV7ValidatorAppSignature: '[u8;64]',
|
||||
/**
|
||||
* Lookup323: polkadot_primitives::v7::BackedCandidate<primitive_types::H256>
|
||||
**/
|
||||
PolkadotPrimitivesV7BackedCandidate: {
|
||||
candidate: 'PolkadotPrimitivesV7CommittedCandidateReceipt',
|
||||
validityVotes: 'Vec<PolkadotPrimitivesV7ValidityAttestation>',
|
||||
validatorIndices: 'BitVec'
|
||||
},
|
||||
/**
|
||||
* Lookup324: polkadot_primitives::v7::CommittedCandidateReceipt<primitive_types::H256>
|
||||
**/
|
||||
PolkadotPrimitivesV7CommittedCandidateReceipt: {
|
||||
descriptor: 'PolkadotPrimitivesV7CandidateDescriptor',
|
||||
commitments: 'PolkadotPrimitivesV7CandidateCommitments'
|
||||
},
|
||||
/**
|
||||
* Lookup325: polkadot_primitives::v7::CandidateDescriptor<primitive_types::H256>
|
||||
**/
|
||||
PolkadotPrimitivesV7CandidateDescriptor: {
|
||||
paraId: 'u32',
|
||||
relayParent: 'H256',
|
||||
collator: 'PolkadotPrimitivesV7CollatorAppPublic',
|
||||
persistedValidationDataHash: 'H256',
|
||||
povHash: 'H256',
|
||||
erasureRoot: 'H256',
|
||||
signature: 'PolkadotPrimitivesV7CollatorAppSignature',
|
||||
paraHead: 'H256',
|
||||
validationCodeHash: 'H256'
|
||||
},
|
||||
/**
|
||||
* Lookup326: polkadot_primitives::v7::collator_app::Public
|
||||
**/
|
||||
PolkadotPrimitivesV7CollatorAppPublic: '[u8;32]',
|
||||
/**
|
||||
* Lookup327: polkadot_primitives::v7::collator_app::Signature
|
||||
**/
|
||||
PolkadotPrimitivesV7CollatorAppSignature: '[u8;64]',
|
||||
/**
|
||||
* Lookup329: polkadot_primitives::v7::CandidateCommitments<N>
|
||||
**/
|
||||
PolkadotPrimitivesV7CandidateCommitments: {
|
||||
upwardMessages: 'Vec<Bytes>',
|
||||
horizontalMessages: 'Vec<PolkadotCorePrimitivesOutboundHrmpMessage>',
|
||||
newValidationCode: 'Option<Bytes>',
|
||||
headData: 'Bytes',
|
||||
processedDownwardMessages: 'u32',
|
||||
hrmpWatermark: 'u32'
|
||||
},
|
||||
/**
|
||||
* Lookup338: polkadot_primitives::v7::ValidityAttestation
|
||||
**/
|
||||
PolkadotPrimitivesV7ValidityAttestation: {
|
||||
_enum: {
|
||||
__Unused0: 'Null',
|
||||
Implicit: 'PolkadotPrimitivesV7ValidatorAppSignature',
|
||||
Explicit: 'PolkadotPrimitivesV7ValidatorAppSignature'
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup340: polkadot_primitives::v7::DisputeStatementSet
|
||||
**/
|
||||
PolkadotPrimitivesV7DisputeStatementSet: {
|
||||
candidateHash: 'H256',
|
||||
session: 'u32',
|
||||
statements: 'Vec<(PolkadotPrimitivesV7DisputeStatement,u32,PolkadotPrimitivesV7ValidatorAppSignature)>'
|
||||
},
|
||||
/**
|
||||
* Lookup344: polkadot_primitives::v7::DisputeStatement
|
||||
**/
|
||||
PolkadotPrimitivesV7DisputeStatement: {
|
||||
_enum: {
|
||||
Valid: 'PolkadotPrimitivesV7ValidDisputeStatementKind',
|
||||
Invalid: 'PolkadotPrimitivesV7InvalidDisputeStatementKind'
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup345: polkadot_primitives::v7::ValidDisputeStatementKind
|
||||
**/
|
||||
PolkadotPrimitivesV7ValidDisputeStatementKind: {
|
||||
_enum: {
|
||||
Explicit: 'Null',
|
||||
BackingSeconded: 'H256',
|
||||
BackingValid: 'H256',
|
||||
ApprovalChecking: 'Null',
|
||||
ApprovalCheckingMultipleCandidates: 'Vec<H256>'
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup347: polkadot_primitives::v7::InvalidDisputeStatementKind
|
||||
**/
|
||||
PolkadotPrimitivesV7InvalidDisputeStatementKind: {
|
||||
_enum: ['Explicit']
|
||||
},
|
||||
/**
|
||||
* Lookup349: polkadot_primitives::v7::PvfCheckStatement
|
||||
**/
|
||||
PolkadotPrimitivesV7PvfCheckStatement: {
|
||||
accept: 'bool',
|
||||
subject: 'H256',
|
||||
sessionIndex: 'u32',
|
||||
validatorIndex: 'u32'
|
||||
},
|
||||
/**
|
||||
* Lookup355: polkadot_primitives::v7::slashing::DisputeProof
|
||||
**/
|
||||
PolkadotPrimitivesV7SlashingDisputeProof: {
|
||||
timeSlot: 'PolkadotPrimitivesV7SlashingDisputesTimeSlot',
|
||||
kind: 'PolkadotPrimitivesV7SlashingSlashingOffenceKind',
|
||||
validatorIndex: 'u32',
|
||||
validatorId: 'PolkadotPrimitivesV7ValidatorAppPublic'
|
||||
},
|
||||
/**
|
||||
* Lookup356: polkadot_primitives::v7::slashing::DisputesTimeSlot
|
||||
**/
|
||||
PolkadotPrimitivesV7SlashingDisputesTimeSlot: {
|
||||
sessionIndex: 'u32',
|
||||
candidateHash: 'H256'
|
||||
},
|
||||
/**
|
||||
* Lookup357: polkadot_primitives::v7::slashing::SlashingOffenceKind
|
||||
**/
|
||||
PolkadotPrimitivesV7SlashingSlashingOffenceKind: {
|
||||
_enum: ['ForInvalid', 'AgainstValid']
|
||||
},
|
||||
/**
|
||||
* Lookup358: polkadot_runtime_parachains::assigner_on_demand::pallet::Call<T>
|
||||
**/
|
||||
PolkadotRuntimeParachainsAssignerOnDemandPalletCall: {
|
||||
_enum: {
|
||||
place_order_allow_death: {
|
||||
maxAmount: 'u128',
|
||||
paraId: 'u32',
|
||||
},
|
||||
place_order_keep_alive: {
|
||||
maxAmount: 'u128',
|
||||
paraId: 'u32'
|
||||
}
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup368: polkadot_runtime_parachains::coretime::pallet::Call<T>
|
||||
**/
|
||||
PolkadotRuntimeParachainsCoretimePalletCall: {
|
||||
_enum: {
|
||||
__Unused0: 'Null',
|
||||
request_core_count: {
|
||||
count: 'u16',
|
||||
},
|
||||
request_revenue_at: {
|
||||
when: 'u32',
|
||||
},
|
||||
__Unused3: 'Null',
|
||||
assign_core: {
|
||||
core: 'u16',
|
||||
begin: 'u32',
|
||||
assignment: 'Vec<(PalletBrokerCoretimeInterfaceCoreAssignment,u16)>',
|
||||
endHint: 'Option<u32>'
|
||||
}
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup414: xcm::v3::OriginKind
|
||||
**/
|
||||
XcmV3OriginKind: {
|
||||
_enum: ['Native', 'SovereignAccount', 'Superuser', 'Xcm']
|
||||
},
|
||||
/**
|
||||
* Lookup479: staging_kusama_runtime::RuntimeParametersKey
|
||||
**/
|
||||
@@ -492,41 +237,6 @@ export default {
|
||||
UseAuctionSlots: 'bool'
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup508: polkadot_primitives::v7::CandidateReceipt<primitive_types::H256>
|
||||
**/
|
||||
PolkadotPrimitivesV7CandidateReceipt: {
|
||||
descriptor: 'PolkadotPrimitivesV7CandidateDescriptor',
|
||||
commitmentsHash: 'H256'
|
||||
},
|
||||
/**
|
||||
* Lookup516: polkadot_runtime_parachains::assigner_on_demand::pallet::Event<T>
|
||||
**/
|
||||
PolkadotRuntimeParachainsAssignerOnDemandPalletEvent: {
|
||||
_enum: {
|
||||
OnDemandOrderPlaced: {
|
||||
paraId: 'u32',
|
||||
spotPrice: 'u128',
|
||||
orderedBy: 'AccountId32',
|
||||
},
|
||||
SpotPriceSet: {
|
||||
spotPrice: 'u128'
|
||||
}
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup521: polkadot_runtime_parachains::coretime::pallet::Event<T>
|
||||
**/
|
||||
PolkadotRuntimeParachainsCoretimePalletEvent: {
|
||||
_enum: {
|
||||
RevenueInfoRequested: {
|
||||
when: 'u32',
|
||||
},
|
||||
CoreAssigned: {
|
||||
core: 'u32'
|
||||
}
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup570: staging_kusama_runtime::RuntimeHoldReason
|
||||
**/
|
||||
@@ -630,165 +340,215 @@ export default {
|
||||
amount: 'u128'
|
||||
},
|
||||
/**
|
||||
* Lookup791: polkadot_primitives::v7::ScrapedOnChainVotes<primitive_types::H256>
|
||||
* Lookup928: staging_kusama_runtime::Runtime
|
||||
**/
|
||||
PolkadotPrimitivesV7ScrapedOnChainVotes: {
|
||||
session: 'u32',
|
||||
backingValidatorsPerCandidate: 'Vec<(PolkadotPrimitivesV7CandidateReceipt,Vec<(u32,PolkadotPrimitivesV7ValidityAttestation)>)>',
|
||||
disputes: 'Vec<PolkadotPrimitivesV7DisputeStatementSet>'
|
||||
},
|
||||
StagingKusamaRuntimeRuntime: 'Null',
|
||||
/**
|
||||
* Lookup809: polkadot_runtime_parachains::paras::UpgradeStrategy
|
||||
* Lookup1040: staging_kusama_runtime::RuntimeError
|
||||
**/
|
||||
PolkadotRuntimeParachainsParasUpgradeStrategy: {
|
||||
_enum: ['SetGoAheadSignal', 'ApplyAtExpectedBlock']
|
||||
},
|
||||
/**
|
||||
* Lookup818: polkadot_primitives::v7::UpgradeGoAhead
|
||||
**/
|
||||
PolkadotPrimitivesV7UpgradeGoAhead: {
|
||||
_enum: ['Abort', 'GoAhead']
|
||||
},
|
||||
/**
|
||||
* Lookup819: polkadot_primitives::v7::UpgradeRestriction
|
||||
**/
|
||||
PolkadotPrimitivesV7UpgradeRestriction: {
|
||||
_enum: ['Present']
|
||||
},
|
||||
/**
|
||||
* Lookup835: polkadot_primitives::v7::SessionInfo
|
||||
**/
|
||||
PolkadotPrimitivesV7SessionInfo: {
|
||||
activeValidatorIndices: 'Vec<u32>',
|
||||
randomSeed: '[u8;32]',
|
||||
disputePeriod: 'u32',
|
||||
validators: 'PolkadotPrimitivesV7IndexedVecValidatorIndex',
|
||||
discoveryKeys: 'Vec<SpAuthorityDiscoveryAppPublic>',
|
||||
assignmentKeys: 'Vec<PolkadotPrimitivesV7AssignmentAppPublic>',
|
||||
validatorGroups: 'PolkadotPrimitivesV7IndexedVecGroupIndex',
|
||||
nCores: 'u32',
|
||||
zerothDelayTrancheWidth: 'u32',
|
||||
relayVrfModuloSamples: 'u32',
|
||||
nDelayTranches: 'u32',
|
||||
noShowSlots: 'u32',
|
||||
neededApprovals: 'u32'
|
||||
},
|
||||
/**
|
||||
* Lookup836: polkadot_primitives::v7::IndexedVec<polkadot_primitives::v7::ValidatorIndex, polkadot_primitives::v7::validator_app::Public>
|
||||
**/
|
||||
PolkadotPrimitivesV7IndexedVecValidatorIndex: 'Vec<PolkadotPrimitivesV7ValidatorAppPublic>',
|
||||
/**
|
||||
* Lookup837: polkadot_primitives::v7::IndexedVec<polkadot_primitives::v7::GroupIndex, V>
|
||||
**/
|
||||
PolkadotPrimitivesV7IndexedVecGroupIndex: 'Vec<Vec<u32>>',
|
||||
/**
|
||||
* Lookup839: polkadot_primitives::v7::DisputeState<N>
|
||||
**/
|
||||
PolkadotPrimitivesV7DisputeState: {
|
||||
validatorsFor: 'BitVec',
|
||||
validatorsAgainst: 'BitVec',
|
||||
start: 'u32',
|
||||
concludedAt: 'Option<u32>'
|
||||
},
|
||||
/**
|
||||
* Lookup842: polkadot_primitives::v7::slashing::PendingSlashes
|
||||
**/
|
||||
PolkadotPrimitivesV7SlashingPendingSlashes: {
|
||||
_alias: {
|
||||
keys_: 'keys'
|
||||
},
|
||||
keys_: 'BTreeMap<u32, PolkadotPrimitivesV7ValidatorAppPublic>',
|
||||
kind: 'PolkadotPrimitivesV7SlashingSlashingOffenceKind'
|
||||
},
|
||||
/**
|
||||
* Lookup847: polkadot_runtime_parachains::assigner_on_demand::types::CoreAffinityCount
|
||||
**/
|
||||
PolkadotRuntimeParachainsAssignerOnDemandTypesCoreAffinityCount: {
|
||||
coreIndex: 'u32',
|
||||
count: 'u32'
|
||||
},
|
||||
/**
|
||||
* Lookup848: polkadot_runtime_parachains::assigner_on_demand::types::QueueStatusType
|
||||
**/
|
||||
PolkadotRuntimeParachainsAssignerOnDemandTypesQueueStatusType: {
|
||||
traffic: 'u128',
|
||||
nextIndex: 'u32',
|
||||
smallestIndex: 'u32',
|
||||
freedIndices: 'BinaryHeapReverseQueueIndex'
|
||||
},
|
||||
/**
|
||||
* Lookup850: BinaryHeap<polkadot_runtime_parachains::assigner_on_demand::types::ReverseQueueIndex>
|
||||
**/
|
||||
BinaryHeapReverseQueueIndex: 'Vec<u32>',
|
||||
/**
|
||||
* Lookup853: BinaryHeap<polkadot_runtime_parachains::assigner_on_demand::types::EnqueuedOrder>
|
||||
**/
|
||||
BinaryHeapEnqueuedOrder: 'Vec<PolkadotRuntimeParachainsAssignerOnDemandTypesEnqueuedOrder>',
|
||||
/**
|
||||
* Lookup854: polkadot_runtime_parachains::assigner_on_demand::types::EnqueuedOrder
|
||||
**/
|
||||
PolkadotRuntimeParachainsAssignerOnDemandTypesEnqueuedOrder: {
|
||||
paraId: 'u32',
|
||||
idx: 'u32'
|
||||
},
|
||||
/**
|
||||
* Lookup858: polkadot_runtime_parachains::assigner_on_demand::pallet::Error<T>
|
||||
**/
|
||||
PolkadotRuntimeParachainsAssignerOnDemandPalletError: {
|
||||
_enum: ['QueueFull', 'SpotPriceHigherThanMaxAmount']
|
||||
},
|
||||
/**
|
||||
* Lookup860: polkadot_runtime_parachains::assigner_coretime::Schedule<N>
|
||||
**/
|
||||
PolkadotRuntimeParachainsAssignerCoretimeSchedule: {
|
||||
assignments: 'Vec<(PalletBrokerCoretimeInterfaceCoreAssignment,u16)>',
|
||||
endHint: 'Option<u32>',
|
||||
nextSchedule: 'Option<u32>'
|
||||
},
|
||||
/**
|
||||
* Lookup861: polkadot_runtime_parachains::assigner_coretime::CoreDescriptor<N>
|
||||
**/
|
||||
PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor: {
|
||||
queue: 'Option<PolkadotRuntimeParachainsAssignerCoretimeQueueDescriptor>',
|
||||
currentWork: 'Option<PolkadotRuntimeParachainsAssignerCoretimeWorkState>'
|
||||
},
|
||||
/**
|
||||
* Lookup863: polkadot_runtime_parachains::assigner_coretime::QueueDescriptor<N>
|
||||
**/
|
||||
PolkadotRuntimeParachainsAssignerCoretimeQueueDescriptor: {
|
||||
first: 'u32',
|
||||
last: 'u32'
|
||||
},
|
||||
/**
|
||||
* Lookup865: polkadot_runtime_parachains::assigner_coretime::WorkState<N>
|
||||
**/
|
||||
PolkadotRuntimeParachainsAssignerCoretimeWorkState: {
|
||||
assignments: 'Vec<(PalletBrokerCoretimeInterfaceCoreAssignment,PolkadotRuntimeParachainsAssignerCoretimeAssignmentState)>',
|
||||
endHint: 'Option<u32>',
|
||||
pos: 'u16',
|
||||
step: 'u16'
|
||||
},
|
||||
/**
|
||||
* Lookup868: polkadot_runtime_parachains::assigner_coretime::AssignmentState
|
||||
**/
|
||||
PolkadotRuntimeParachainsAssignerCoretimeAssignmentState: {
|
||||
ratio: 'u16',
|
||||
remaining: 'u16'
|
||||
},
|
||||
/**
|
||||
* Lookup869: polkadot_runtime_parachains::assigner_coretime::pallet::Error<T>
|
||||
**/
|
||||
PolkadotRuntimeParachainsAssignerCoretimePalletError: {
|
||||
_enum: ['AssignmentsEmpty', 'OverScheduled', 'UnderScheduled', 'DisallowedInsert', 'DuplicateInsert', 'AssignmentsNotSorted']
|
||||
},
|
||||
/**
|
||||
* Lookup882: polkadot_runtime_parachains::coretime::pallet::Error<T>
|
||||
**/
|
||||
PolkadotRuntimeParachainsCoretimePalletError: {
|
||||
_enum: ['NotBroker', 'RequestedFutureRevenue', 'AssetTransferFailed']
|
||||
},
|
||||
/**
|
||||
* Lookup929: staging_kusama_runtime::Runtime
|
||||
**/
|
||||
StagingKusamaRuntimeRuntime: 'Null'
|
||||
StagingKusamaRuntimeRuntimeError: {
|
||||
_enum: {
|
||||
System: 'FrameSystemError',
|
||||
Babe: 'PalletBabeError',
|
||||
__Unused2: 'Null',
|
||||
Indices: 'PalletIndicesError',
|
||||
Balances: 'PalletBalancesError',
|
||||
__Unused5: 'Null',
|
||||
Staking: 'PalletStakingPalletError',
|
||||
__Unused7: 'Null',
|
||||
Session: 'PalletSessionError',
|
||||
__Unused9: 'Null',
|
||||
Grandpa: 'PalletGrandpaError',
|
||||
__Unused11: 'Null',
|
||||
__Unused12: 'Null',
|
||||
__Unused13: 'Null',
|
||||
__Unused14: 'Null',
|
||||
__Unused15: 'Null',
|
||||
__Unused16: 'Null',
|
||||
__Unused17: 'Null',
|
||||
Treasury: 'PalletTreasuryError',
|
||||
Claims: 'PolkadotRuntimeCommonClaimsPalletError',
|
||||
ConvictionVoting: 'PalletConvictionVotingError',
|
||||
Referenda: 'PalletReferendaError',
|
||||
FellowshipCollective: 'PalletRankedCollectiveError',
|
||||
FellowshipReferenda: 'PalletReferendaError',
|
||||
Utility: 'PalletUtilityError',
|
||||
__Unused25: 'Null',
|
||||
Society: 'PalletSocietyError',
|
||||
Recovery: 'PalletRecoveryError',
|
||||
Vesting: 'PalletVestingError',
|
||||
Scheduler: 'PalletSchedulerError',
|
||||
Proxy: 'PalletProxyError',
|
||||
Multisig: 'PalletMultisigError',
|
||||
Preimage: 'PalletPreimageError',
|
||||
__Unused33: 'Null',
|
||||
__Unused34: 'Null',
|
||||
Bounties: 'PalletBountiesError',
|
||||
__Unused36: 'Null',
|
||||
ElectionProviderMultiPhase: 'PalletElectionProviderMultiPhaseError',
|
||||
Nis: 'PalletNisError',
|
||||
VoterList: 'PalletBagsListError',
|
||||
ChildBounties: 'PalletChildBountiesError',
|
||||
NominationPools: 'PalletNominationPoolsError',
|
||||
FastUnstake: 'PalletFastUnstakeError',
|
||||
__Unused43: 'Null',
|
||||
Whitelist: 'PalletWhitelistError',
|
||||
NisCounterpartBalances: 'PalletBalancesError',
|
||||
__Unused46: 'Null',
|
||||
__Unused47: 'Null',
|
||||
__Unused48: 'Null',
|
||||
__Unused49: 'Null',
|
||||
__Unused50: 'Null',
|
||||
Configuration: 'PolkadotRuntimeParachainsConfigurationPalletError',
|
||||
__Unused52: 'Null',
|
||||
ParaInclusion: 'PolkadotRuntimeParachainsInclusionPalletError',
|
||||
ParaInherent: 'PolkadotRuntimeParachainsParasInherentPalletError',
|
||||
__Unused55: 'Null',
|
||||
Paras: 'PolkadotRuntimeParachainsParasPalletError',
|
||||
__Unused57: 'Null',
|
||||
__Unused58: 'Null',
|
||||
__Unused59: 'Null',
|
||||
Hrmp: 'PolkadotRuntimeParachainsHrmpPalletError',
|
||||
__Unused61: 'Null',
|
||||
ParasDisputes: 'PolkadotRuntimeParachainsDisputesPalletError',
|
||||
ParasSlashing: 'PolkadotRuntimeParachainsDisputesSlashingPalletError',
|
||||
OnDemandAssignmentProvider: 'PolkadotRuntimeParachainsAssignerOnDemandPalletError',
|
||||
CoretimeAssignmentProvider: 'PolkadotRuntimeParachainsAssignerCoretimePalletError',
|
||||
__Unused66: 'Null',
|
||||
__Unused67: 'Null',
|
||||
__Unused68: 'Null',
|
||||
__Unused69: 'Null',
|
||||
Registrar: 'PolkadotRuntimeCommonParasRegistrarPalletError',
|
||||
Slots: 'PolkadotRuntimeCommonSlotsPalletError',
|
||||
Auctions: 'PolkadotRuntimeCommonAuctionsPalletError',
|
||||
Crowdloan: 'PolkadotRuntimeCommonCrowdloanPalletError',
|
||||
Coretime: 'PolkadotRuntimeParachainsCoretimePalletError',
|
||||
__Unused75: 'Null',
|
||||
__Unused76: 'Null',
|
||||
__Unused77: 'Null',
|
||||
__Unused78: 'Null',
|
||||
__Unused79: 'Null',
|
||||
__Unused80: 'Null',
|
||||
__Unused81: 'Null',
|
||||
__Unused82: 'Null',
|
||||
__Unused83: 'Null',
|
||||
__Unused84: 'Null',
|
||||
__Unused85: 'Null',
|
||||
__Unused86: 'Null',
|
||||
__Unused87: 'Null',
|
||||
__Unused88: 'Null',
|
||||
__Unused89: 'Null',
|
||||
__Unused90: 'Null',
|
||||
__Unused91: 'Null',
|
||||
__Unused92: 'Null',
|
||||
__Unused93: 'Null',
|
||||
__Unused94: 'Null',
|
||||
__Unused95: 'Null',
|
||||
__Unused96: 'Null',
|
||||
__Unused97: 'Null',
|
||||
__Unused98: 'Null',
|
||||
XcmPallet: 'PalletXcmError',
|
||||
MessageQueue: 'PalletMessageQueueError',
|
||||
AssetRate: 'PalletAssetRateError',
|
||||
__Unused102: 'Null',
|
||||
__Unused103: 'Null',
|
||||
__Unused104: 'Null',
|
||||
__Unused105: 'Null',
|
||||
__Unused106: 'Null',
|
||||
__Unused107: 'Null',
|
||||
__Unused108: 'Null',
|
||||
__Unused109: 'Null',
|
||||
__Unused110: 'Null',
|
||||
__Unused111: 'Null',
|
||||
__Unused112: 'Null',
|
||||
__Unused113: 'Null',
|
||||
__Unused114: 'Null',
|
||||
__Unused115: 'Null',
|
||||
__Unused116: 'Null',
|
||||
__Unused117: 'Null',
|
||||
__Unused118: 'Null',
|
||||
__Unused119: 'Null',
|
||||
__Unused120: 'Null',
|
||||
__Unused121: 'Null',
|
||||
__Unused122: 'Null',
|
||||
__Unused123: 'Null',
|
||||
__Unused124: 'Null',
|
||||
__Unused125: 'Null',
|
||||
__Unused126: 'Null',
|
||||
__Unused127: 'Null',
|
||||
__Unused128: 'Null',
|
||||
__Unused129: 'Null',
|
||||
__Unused130: 'Null',
|
||||
__Unused131: 'Null',
|
||||
__Unused132: 'Null',
|
||||
__Unused133: 'Null',
|
||||
__Unused134: 'Null',
|
||||
__Unused135: 'Null',
|
||||
__Unused136: 'Null',
|
||||
__Unused137: 'Null',
|
||||
__Unused138: 'Null',
|
||||
__Unused139: 'Null',
|
||||
__Unused140: 'Null',
|
||||
__Unused141: 'Null',
|
||||
__Unused142: 'Null',
|
||||
__Unused143: 'Null',
|
||||
__Unused144: 'Null',
|
||||
__Unused145: 'Null',
|
||||
__Unused146: 'Null',
|
||||
__Unused147: 'Null',
|
||||
__Unused148: 'Null',
|
||||
__Unused149: 'Null',
|
||||
__Unused150: 'Null',
|
||||
__Unused151: 'Null',
|
||||
__Unused152: 'Null',
|
||||
__Unused153: 'Null',
|
||||
__Unused154: 'Null',
|
||||
__Unused155: 'Null',
|
||||
__Unused156: 'Null',
|
||||
__Unused157: 'Null',
|
||||
__Unused158: 'Null',
|
||||
__Unused159: 'Null',
|
||||
__Unused160: 'Null',
|
||||
__Unused161: 'Null',
|
||||
__Unused162: 'Null',
|
||||
__Unused163: 'Null',
|
||||
__Unused164: 'Null',
|
||||
__Unused165: 'Null',
|
||||
__Unused166: 'Null',
|
||||
__Unused167: 'Null',
|
||||
__Unused168: 'Null',
|
||||
__Unused169: 'Null',
|
||||
__Unused170: 'Null',
|
||||
__Unused171: 'Null',
|
||||
__Unused172: 'Null',
|
||||
__Unused173: 'Null',
|
||||
__Unused174: 'Null',
|
||||
__Unused175: 'Null',
|
||||
__Unused176: 'Null',
|
||||
__Unused177: 'Null',
|
||||
__Unused178: 'Null',
|
||||
__Unused179: 'Null',
|
||||
__Unused180: 'Null',
|
||||
__Unused181: 'Null',
|
||||
__Unused182: 'Null',
|
||||
__Unused183: 'Null',
|
||||
__Unused184: 'Null',
|
||||
__Unused185: 'Null',
|
||||
__Unused186: 'Null',
|
||||
__Unused187: 'Null',
|
||||
__Unused188: 'Null',
|
||||
__Unused189: 'Null',
|
||||
__Unused190: 'Null',
|
||||
__Unused191: 'Null',
|
||||
__Unused192: 'Null',
|
||||
__Unused193: 'Null',
|
||||
__Unused194: 'Null',
|
||||
__Unused195: 'Null',
|
||||
__Unused196: 'Null',
|
||||
__Unused197: 'Null',
|
||||
__Unused198: 'Null',
|
||||
__Unused199: 'Null',
|
||||
Beefy: 'PalletBeefyError'
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -8378,46 +8378,392 @@ export default {
|
||||
_enum: ['InvalidAssetPair', 'PoolNotFound', 'ZeroBalance', 'PartialTransfer']
|
||||
},
|
||||
/**
|
||||
* Lookup934: frame_system::extensions::check_non_zero_sender::CheckNonZeroSender<T>
|
||||
* Lookup933: frame_system::extensions::check_non_zero_sender::CheckNonZeroSender<T>
|
||||
**/
|
||||
FrameSystemExtensionsCheckNonZeroSender: 'Null',
|
||||
/**
|
||||
* Lookup935: frame_system::extensions::check_spec_version::CheckSpecVersion<T>
|
||||
* Lookup934: frame_system::extensions::check_spec_version::CheckSpecVersion<T>
|
||||
**/
|
||||
FrameSystemExtensionsCheckSpecVersion: 'Null',
|
||||
/**
|
||||
* Lookup936: frame_system::extensions::check_tx_version::CheckTxVersion<T>
|
||||
* Lookup935: frame_system::extensions::check_tx_version::CheckTxVersion<T>
|
||||
**/
|
||||
FrameSystemExtensionsCheckTxVersion: 'Null',
|
||||
/**
|
||||
* Lookup937: frame_system::extensions::check_genesis::CheckGenesis<T>
|
||||
* Lookup936: frame_system::extensions::check_genesis::CheckGenesis<T>
|
||||
**/
|
||||
FrameSystemExtensionsCheckGenesis: 'Null',
|
||||
/**
|
||||
* Lookup940: frame_system::extensions::check_nonce::CheckNonce<T>
|
||||
* Lookup939: frame_system::extensions::check_nonce::CheckNonce<T>
|
||||
**/
|
||||
FrameSystemExtensionsCheckNonce: 'Compact<u32>',
|
||||
/**
|
||||
* Lookup941: frame_system::extensions::check_weight::CheckWeight<T>
|
||||
* Lookup940: frame_system::extensions::check_weight::CheckWeight<T>
|
||||
**/
|
||||
FrameSystemExtensionsCheckWeight: 'Null',
|
||||
/**
|
||||
* Lookup942: pallet_asset_conversion_tx_payment::ChargeAssetTxPayment<T>
|
||||
* Lookup941: pallet_asset_conversion_tx_payment::ChargeAssetTxPayment<T>
|
||||
**/
|
||||
PalletAssetConversionTxPaymentChargeAssetTxPayment: {
|
||||
tip: 'Compact<u128>',
|
||||
assetId: 'Option<u32>'
|
||||
},
|
||||
/**
|
||||
* Lookup943: frame_metadata_hash_extension::CheckMetadataHash<T>
|
||||
* Lookup942: frame_metadata_hash_extension::CheckMetadataHash<T>
|
||||
**/
|
||||
FrameMetadataHashExtensionCheckMetadataHash: {
|
||||
mode: 'FrameMetadataHashExtensionMode'
|
||||
},
|
||||
/**
|
||||
* Lookup944: frame_metadata_hash_extension::Mode
|
||||
* Lookup943: frame_metadata_hash_extension::Mode
|
||||
**/
|
||||
FrameMetadataHashExtensionMode: {
|
||||
_enum: ['Disabled', 'Enabled']
|
||||
},
|
||||
/**
|
||||
* Lookup944: sp_runtime::generic::block::Block<sp_runtime::generic::header::Header<Number, Hash>, sp_runtime::generic::unchecked_extrinsic::UncheckedExtrinsic<sp_runtime::multiaddress::MultiAddress<sp_core::crypto::AccountId32, AccountIndex>, kitchensink_runtime::RuntimeCall, sp_runtime::MultiSignature, Extra>>
|
||||
**/
|
||||
SpRuntimeBlock: {
|
||||
header: 'SpRuntimeHeader',
|
||||
extrinsics: 'Vec<Bytes>'
|
||||
},
|
||||
/**
|
||||
* Lookup947: sp_runtime::ExtrinsicInclusionMode
|
||||
**/
|
||||
SpRuntimeExtrinsicInclusionMode: {
|
||||
_enum: ['AllExtrinsics', 'OnlyInherents']
|
||||
},
|
||||
/**
|
||||
* Lookup951: sp_runtime::transaction_validity::TransactionValidityError
|
||||
**/
|
||||
SpRuntimeTransactionValidityTransactionValidityError: {
|
||||
_enum: {
|
||||
Invalid: 'SpRuntimeTransactionValidityInvalidTransaction',
|
||||
Unknown: 'SpRuntimeTransactionValidityUnknownTransaction'
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup952: sp_runtime::transaction_validity::InvalidTransaction
|
||||
**/
|
||||
SpRuntimeTransactionValidityInvalidTransaction: {
|
||||
_enum: {
|
||||
Call: 'Null',
|
||||
Payment: 'Null',
|
||||
Future: 'Null',
|
||||
Stale: 'Null',
|
||||
BadProof: 'Null',
|
||||
AncientBirthBlock: 'Null',
|
||||
ExhaustsResources: 'Null',
|
||||
Custom: 'u8',
|
||||
BadMandatory: 'Null',
|
||||
MandatoryValidation: 'Null',
|
||||
BadSigner: 'Null'
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup953: sp_runtime::transaction_validity::UnknownTransaction
|
||||
**/
|
||||
SpRuntimeTransactionValidityUnknownTransaction: {
|
||||
_enum: {
|
||||
CannotLookup: 'Null',
|
||||
NoUnsignedValidator: 'Null',
|
||||
Custom: 'u8'
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup954: sp_inherents::InherentData
|
||||
**/
|
||||
SpInherentsInherentData: {
|
||||
data: 'BTreeMap<[u8;8], Bytes>'
|
||||
},
|
||||
/**
|
||||
* Lookup958: sp_inherents::CheckInherentsResult
|
||||
**/
|
||||
SpInherentsCheckInherentsResult: {
|
||||
okay: 'bool',
|
||||
fatalError: 'bool',
|
||||
errors: 'SpInherentsInherentData'
|
||||
},
|
||||
/**
|
||||
* Lookup959: sp_runtime::transaction_validity::TransactionSource
|
||||
**/
|
||||
SpRuntimeTransactionValidityTransactionSource: {
|
||||
_enum: ['InBlock', 'Local', 'External']
|
||||
},
|
||||
/**
|
||||
* Lookup961: sp_runtime::transaction_validity::ValidTransaction
|
||||
**/
|
||||
SpRuntimeTransactionValidityValidTransaction: {
|
||||
priority: 'u64',
|
||||
requires: 'Vec<Bytes>',
|
||||
provides: 'Vec<Bytes>',
|
||||
longevity: 'u64',
|
||||
propagate: 'bool'
|
||||
},
|
||||
/**
|
||||
* Lookup962: sp_statement_store::runtime_api::StatementSource
|
||||
**/
|
||||
SpStatementStoreRuntimeApiStatementSource: {
|
||||
_enum: ['Chain', 'Network', 'Local']
|
||||
},
|
||||
/**
|
||||
* Lookup964: sp_statement_store::runtime_api::ValidStatement
|
||||
**/
|
||||
SpStatementStoreRuntimeApiValidStatement: {
|
||||
maxCount: 'u32',
|
||||
maxSize: 'u32'
|
||||
},
|
||||
/**
|
||||
* Lookup965: sp_statement_store::runtime_api::InvalidStatement
|
||||
**/
|
||||
SpStatementStoreRuntimeApiInvalidStatement: {
|
||||
_enum: ['BadProof', 'NoProof', 'InternalError']
|
||||
},
|
||||
/**
|
||||
* Lookup969: sp_consensus_babe::BabeConfiguration
|
||||
**/
|
||||
SpConsensusBabeBabeConfiguration: {
|
||||
slotDuration: 'u64',
|
||||
epochLength: 'u64',
|
||||
c: '(u64,u64)',
|
||||
authorities: 'Vec<(SpConsensusBabeAppPublic,u64)>',
|
||||
randomness: '[u8;32]',
|
||||
allowedSlots: 'SpConsensusBabeAllowedSlots'
|
||||
},
|
||||
/**
|
||||
* Lookup970: sp_consensus_babe::Epoch
|
||||
**/
|
||||
SpConsensusBabeEpoch: {
|
||||
epochIndex: 'u64',
|
||||
startSlot: 'u64',
|
||||
duration: 'u64',
|
||||
authorities: 'Vec<(SpConsensusBabeAppPublic,u64)>',
|
||||
randomness: '[u8;32]',
|
||||
config: 'SpConsensusBabeBabeEpochConfiguration'
|
||||
},
|
||||
/**
|
||||
* Lookup975: pallet_contracts::primitives::ExecReturnValue
|
||||
**/
|
||||
PalletContractsPrimitivesExecReturnValue: {
|
||||
flags: 'PalletContractsUapiFlagsReturnFlags',
|
||||
data: 'Bytes'
|
||||
},
|
||||
/**
|
||||
* Lookup976: pallet_contracts_uapi::flags::ReturnFlags
|
||||
**/
|
||||
PalletContractsUapiFlagsReturnFlags: {
|
||||
bits: 'u32'
|
||||
},
|
||||
/**
|
||||
* Lookup977: pallet_contracts::primitives::StorageDeposit<Balance>
|
||||
**/
|
||||
PalletContractsPrimitivesStorageDeposit: {
|
||||
_enum: {
|
||||
Refund: 'u128',
|
||||
Charge: 'u128'
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup980: pallet_contracts::primitives::Code<primitive_types::H256>
|
||||
**/
|
||||
PalletContractsPrimitivesCode: {
|
||||
_enum: {
|
||||
Upload: 'Bytes',
|
||||
Existing: 'H256'
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup981: pallet_contracts::primitives::ContractResult<Result<pallet_contracts::primitives::InstantiateReturnValue<sp_core::crypto::AccountId32>, sp_runtime::DispatchError>, Balance, frame_system::EventRecord<kitchensink_runtime::RuntimeEvent, primitive_types::H256>>
|
||||
**/
|
||||
PalletContractsPrimitivesContractResult: {
|
||||
gasConsumed: 'SpWeightsWeightV2Weight',
|
||||
gasRequired: 'SpWeightsWeightV2Weight',
|
||||
storageDeposit: 'PalletContractsPrimitivesStorageDeposit',
|
||||
debugMessage: 'Bytes',
|
||||
result: 'Result<PalletContractsPrimitivesInstantiateReturnValue, SpRuntimeDispatchError>',
|
||||
events: 'Option<Vec<FrameSystemEventRecord>>'
|
||||
},
|
||||
/**
|
||||
* Lookup983: pallet_contracts::primitives::InstantiateReturnValue<sp_core::crypto::AccountId32>
|
||||
**/
|
||||
PalletContractsPrimitivesInstantiateReturnValue: {
|
||||
result: 'PalletContractsPrimitivesExecReturnValue',
|
||||
accountId: 'AccountId32'
|
||||
},
|
||||
/**
|
||||
* Lookup985: pallet_contracts::primitives::CodeUploadReturnValue<primitive_types::H256, Balance>
|
||||
**/
|
||||
PalletContractsPrimitivesCodeUploadReturnValue: {
|
||||
codeHash: 'H256',
|
||||
deposit: 'u128'
|
||||
},
|
||||
/**
|
||||
* Lookup987: pallet_contracts::primitives::ContractAccessError
|
||||
**/
|
||||
PalletContractsPrimitivesContractAccessError: {
|
||||
_enum: ['DoesntExist', 'KeyDecodingFailed', 'MigrationInProgress']
|
||||
},
|
||||
/**
|
||||
* Lookup988: pallet_transaction_payment::types::RuntimeDispatchInfo<Balance, sp_weights::weight_v2::Weight>
|
||||
**/
|
||||
PalletTransactionPaymentRuntimeDispatchInfo: {
|
||||
weight: 'SpWeightsWeightV2Weight',
|
||||
class: 'FrameSupportDispatchDispatchClass',
|
||||
partialFee: 'u128'
|
||||
},
|
||||
/**
|
||||
* Lookup989: pallet_transaction_payment::types::FeeDetails<Balance>
|
||||
**/
|
||||
PalletTransactionPaymentFeeDetails: {
|
||||
inclusionFee: 'Option<PalletTransactionPaymentInclusionFee>',
|
||||
tip: 'u128'
|
||||
},
|
||||
/**
|
||||
* Lookup991: pallet_transaction_payment::types::InclusionFee<Balance>
|
||||
**/
|
||||
PalletTransactionPaymentInclusionFee: {
|
||||
baseFee: 'u128',
|
||||
lenFee: 'u128',
|
||||
adjustedWeightFee: 'u128'
|
||||
},
|
||||
/**
|
||||
* Lookup995: sp_consensus_beefy::ValidatorSet<sp_consensus_beefy::ecdsa_crypto::Public>
|
||||
**/
|
||||
SpConsensusBeefyValidatorSet: {
|
||||
validators: 'Vec<SpConsensusBeefyEcdsaCryptoPublic>',
|
||||
id: 'u64'
|
||||
},
|
||||
/**
|
||||
* Lookup997: sp_mmr_primitives::Error
|
||||
**/
|
||||
SpMmrPrimitivesError: {
|
||||
_enum: ['InvalidNumericOp', 'Push', 'GetRoot', 'Commit', 'GenerateProof', 'Verify', 'LeafNotFound', 'PalletNotIncluded', 'InvalidLeafIndex', 'InvalidBestKnownBlock']
|
||||
},
|
||||
/**
|
||||
* Lookup1003: sp_mmr_primitives::LeafProof<primitive_types::H256>
|
||||
**/
|
||||
SpMmrPrimitivesLeafProof: {
|
||||
leafIndices: 'Vec<u64>',
|
||||
leafCount: 'u64',
|
||||
items: 'Vec<H256>'
|
||||
},
|
||||
/**
|
||||
* Lookup1005: sp_mixnet::types::SessionStatus
|
||||
**/
|
||||
SpMixnetSessionStatus: {
|
||||
currentIndex: 'u32',
|
||||
phase: 'SpMixnetSessionPhase'
|
||||
},
|
||||
/**
|
||||
* Lookup1006: sp_mixnet::types::SessionPhase
|
||||
**/
|
||||
SpMixnetSessionPhase: {
|
||||
_enum: ['CoverToCurrent', 'RequestsToCurrent', 'CoverToPrev', 'DisconnectFromPrev']
|
||||
},
|
||||
/**
|
||||
* Lookup1009: sp_mixnet::types::Mixnode
|
||||
**/
|
||||
SpMixnetMixnode: {
|
||||
kxPublic: '[u8;32]',
|
||||
peerId: '[u8;32]',
|
||||
externalAddresses: 'Vec<Bytes>'
|
||||
},
|
||||
/**
|
||||
* Lookup1010: sp_mixnet::types::MixnodesErr
|
||||
**/
|
||||
SpMixnetMixnodesErr: {
|
||||
_enum: {
|
||||
InsufficientRegistrations: {
|
||||
num: 'u32',
|
||||
min: 'u32'
|
||||
}
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup1017: kitchensink_runtime::RuntimeError
|
||||
**/
|
||||
KitchensinkRuntimeRuntimeError: {
|
||||
_enum: {
|
||||
System: 'FrameSystemError',
|
||||
Utility: 'PalletUtilityError',
|
||||
Babe: 'PalletBabeError',
|
||||
__Unused3: 'Null',
|
||||
__Unused4: 'Null',
|
||||
Indices: 'PalletIndicesError',
|
||||
Balances: 'PalletBalancesError',
|
||||
__Unused7: 'Null',
|
||||
__Unused8: 'Null',
|
||||
__Unused9: 'Null',
|
||||
ElectionProviderMultiPhase: 'PalletElectionProviderMultiPhaseError',
|
||||
Staking: 'PalletStakingPalletError',
|
||||
Session: 'PalletSessionError',
|
||||
Democracy: 'PalletDemocracyError',
|
||||
Council: 'PalletCollectiveError',
|
||||
TechnicalCommittee: 'PalletCollectiveError',
|
||||
Elections: 'PalletElectionsPhragmenError',
|
||||
TechnicalMembership: 'PalletMembershipError',
|
||||
Grandpa: 'PalletGrandpaError',
|
||||
Treasury: 'PalletTreasuryError',
|
||||
AssetRate: 'PalletAssetRateError',
|
||||
Contracts: 'PalletContractsError',
|
||||
Sudo: 'PalletSudoError',
|
||||
ImOnline: 'PalletImOnlineError',
|
||||
__Unused24: 'Null',
|
||||
__Unused25: 'Null',
|
||||
__Unused26: 'Null',
|
||||
__Unused27: 'Null',
|
||||
Identity: 'PalletIdentityError',
|
||||
Society: 'PalletSocietyError',
|
||||
Recovery: 'PalletRecoveryError',
|
||||
Vesting: 'PalletVestingError',
|
||||
Scheduler: 'PalletSchedulerError',
|
||||
Glutton: 'PalletGluttonError',
|
||||
Preimage: 'PalletPreimageError',
|
||||
Proxy: 'PalletProxyError',
|
||||
Multisig: 'PalletMultisigError',
|
||||
Bounties: 'PalletBountiesError',
|
||||
Tips: 'PalletTipsError',
|
||||
Assets: 'PalletAssetsError',
|
||||
PoolAssets: 'PalletAssetsError',
|
||||
Beefy: 'PalletBeefyError',
|
||||
__Unused42: 'Null',
|
||||
__Unused43: 'Null',
|
||||
Lottery: 'PalletLotteryError',
|
||||
Nis: 'PalletNisError',
|
||||
Uniques: 'PalletUniquesError',
|
||||
Nfts: 'PalletNftsError',
|
||||
NftFractionalization: 'PalletNftFractionalizationError',
|
||||
Salary: 'PalletSalaryError',
|
||||
CoreFellowship: 'PalletCoreFellowshipError',
|
||||
TransactionStorage: 'PalletTransactionStorageError',
|
||||
VoterList: 'PalletBagsListError',
|
||||
StateTrieMigration: 'PalletStateTrieMigrationError',
|
||||
ChildBounties: 'PalletChildBountiesError',
|
||||
Referenda: 'PalletReferendaError',
|
||||
Remark: 'PalletRemarkError',
|
||||
__Unused57: 'Null',
|
||||
ConvictionVoting: 'PalletConvictionVotingError',
|
||||
Whitelist: 'PalletWhitelistError',
|
||||
AllianceMotion: 'PalletCollectiveError',
|
||||
Alliance: 'PalletAllianceError',
|
||||
NominationPools: 'PalletNominationPoolsError',
|
||||
RankedPolls: 'PalletReferendaError',
|
||||
RankedCollective: 'PalletRankedCollectiveError',
|
||||
AssetConversion: 'PalletAssetConversionError',
|
||||
FastUnstake: 'PalletFastUnstakeError',
|
||||
MessageQueue: 'PalletMessageQueueError',
|
||||
__Unused68: 'Null',
|
||||
TxPause: 'PalletTxPauseError',
|
||||
SafeMode: 'PalletSafeModeError',
|
||||
__Unused71: 'Null',
|
||||
MultiBlockMigrations: 'PalletMigrationsError',
|
||||
Broker: 'PalletBrokerError',
|
||||
TasksExample: 'PalletExampleTasksError',
|
||||
__Unused75: 'Null',
|
||||
__Unused76: 'Null',
|
||||
__Unused77: 'Null',
|
||||
__Unused78: 'Null',
|
||||
AssetConversionMigration: 'PalletAssetConversionOpsError'
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@@ -5,9 +5,9 @@
|
||||
// this is required to allow for ambient/previous definitions
|
||||
import '@polkadot/types/lookup';
|
||||
|
||||
import type { BTreeMap, BitVec, Bytes, Compact, Enum, Null, Option, Struct, U8aFixed, Vec, bool, u128, u16, u32, u64 } from '@polkadot/types-codec';
|
||||
import type { Compact, Enum, Null, Option, Struct, Vec, bool, u128, u16, u32 } from '@polkadot/types-codec';
|
||||
import type { ITuple } from '@polkadot/types-codec/types';
|
||||
import type { AccountId32, H256, PerU16, Perbill, Perquintill } from '@polkadot/types/interfaces/runtime';
|
||||
import type { PerU16, Perquintill } from '@polkadot/types/interfaces/runtime';
|
||||
|
||||
declare module '@polkadot/types/lookup' {
|
||||
/** @name StagingKusamaRuntimeSessionKeys (125) */
|
||||
@@ -20,12 +20,6 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly beefy: SpConsensusBeefyEcdsaCryptoPublic;
|
||||
}
|
||||
|
||||
/** @name PolkadotPrimitivesV7ValidatorAppPublic (126) */
|
||||
interface PolkadotPrimitivesV7ValidatorAppPublic extends U8aFixed {}
|
||||
|
||||
/** @name PolkadotPrimitivesV7AssignmentAppPublic (127) */
|
||||
interface PolkadotPrimitivesV7AssignmentAppPublic extends U8aFixed {}
|
||||
|
||||
/** @name StagingKusamaRuntimeOriginCaller (150) */
|
||||
interface StagingKusamaRuntimeOriginCaller extends Enum {
|
||||
readonly isSystem: boolean;
|
||||
@@ -152,244 +146,6 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly votes24: Vec<ITuple<[Compact<u32>, Vec<ITuple<[Compact<u16>, Compact<PerU16>]>>, Compact<u16>]>>;
|
||||
}
|
||||
|
||||
/** @name PolkadotPrimitivesV7AsyncBackingAsyncBackingParams (303) */
|
||||
interface PolkadotPrimitivesV7AsyncBackingAsyncBackingParams extends Struct {
|
||||
readonly maxCandidateDepth: u32;
|
||||
readonly allowedAncestryLen: u32;
|
||||
}
|
||||
|
||||
/** @name PolkadotPrimitivesV7ExecutorParams (304) */
|
||||
interface PolkadotPrimitivesV7ExecutorParams extends Vec<PolkadotPrimitivesV7ExecutorParamsExecutorParam> {}
|
||||
|
||||
/** @name PolkadotPrimitivesV7ExecutorParamsExecutorParam (306) */
|
||||
interface PolkadotPrimitivesV7ExecutorParamsExecutorParam extends Enum {
|
||||
readonly isMaxMemoryPages: boolean;
|
||||
readonly asMaxMemoryPages: u32;
|
||||
readonly isStackLogicalMax: boolean;
|
||||
readonly asStackLogicalMax: u32;
|
||||
readonly isStackNativeMax: boolean;
|
||||
readonly asStackNativeMax: u32;
|
||||
readonly isPrecheckingMaxMemory: boolean;
|
||||
readonly asPrecheckingMaxMemory: u64;
|
||||
readonly isPvfPrepTimeout: boolean;
|
||||
readonly asPvfPrepTimeout: ITuple<[PolkadotPrimitivesV7PvfPrepKind, u64]>;
|
||||
readonly isPvfExecTimeout: boolean;
|
||||
readonly asPvfExecTimeout: ITuple<[PolkadotPrimitivesV7PvfExecKind, u64]>;
|
||||
readonly isWasmExtBulkMemory: boolean;
|
||||
readonly type: 'MaxMemoryPages' | 'StackLogicalMax' | 'StackNativeMax' | 'PrecheckingMaxMemory' | 'PvfPrepTimeout' | 'PvfExecTimeout' | 'WasmExtBulkMemory';
|
||||
}
|
||||
|
||||
/** @name PolkadotPrimitivesV7PvfPrepKind (307) */
|
||||
interface PolkadotPrimitivesV7PvfPrepKind extends Enum {
|
||||
readonly isPrecheck: boolean;
|
||||
readonly isPrepare: boolean;
|
||||
readonly type: 'Precheck' | 'Prepare';
|
||||
}
|
||||
|
||||
/** @name PolkadotPrimitivesV7PvfExecKind (308) */
|
||||
interface PolkadotPrimitivesV7PvfExecKind extends Enum {
|
||||
readonly isBacking: boolean;
|
||||
readonly isApproval: boolean;
|
||||
readonly type: 'Backing' | 'Approval';
|
||||
}
|
||||
|
||||
/** @name PolkadotPrimitivesV7ApprovalVotingParams (309) */
|
||||
interface PolkadotPrimitivesV7ApprovalVotingParams extends Struct {
|
||||
readonly maxApprovalCoalesceCount: u32;
|
||||
}
|
||||
|
||||
/** @name PolkadotPrimitivesVstagingSchedulerParams (310) */
|
||||
interface PolkadotPrimitivesVstagingSchedulerParams extends Struct {
|
||||
readonly groupRotationFrequency: u32;
|
||||
readonly parasAvailabilityPeriod: u32;
|
||||
readonly maxValidatorsPerCore: Option<u32>;
|
||||
readonly lookahead: u32;
|
||||
readonly numCores: u32;
|
||||
readonly maxAvailabilityTimeouts: u32;
|
||||
readonly onDemandQueueMaxSize: u32;
|
||||
readonly onDemandTargetQueueUtilization: Perbill;
|
||||
readonly onDemandFeeVariability: Perbill;
|
||||
readonly onDemandBaseFee: u128;
|
||||
readonly ttl: u32;
|
||||
}
|
||||
|
||||
/** @name PolkadotPrimitivesV7InherentData (314) */
|
||||
interface PolkadotPrimitivesV7InherentData extends Struct {
|
||||
readonly bitfields: Vec<PolkadotPrimitivesV7SignedUncheckedSigned>;
|
||||
readonly backedCandidates: Vec<PolkadotPrimitivesV7BackedCandidate>;
|
||||
readonly disputes: Vec<PolkadotPrimitivesV7DisputeStatementSet>;
|
||||
readonly parentHeader: SpRuntimeHeader;
|
||||
}
|
||||
|
||||
/** @name PolkadotPrimitivesV7SignedUncheckedSigned (316) */
|
||||
interface PolkadotPrimitivesV7SignedUncheckedSigned extends Struct {
|
||||
readonly payload: BitVec;
|
||||
readonly validatorIndex: u32;
|
||||
readonly signature: PolkadotPrimitivesV7ValidatorAppSignature;
|
||||
}
|
||||
|
||||
/** @name PolkadotPrimitivesV7ValidatorAppSignature (321) */
|
||||
interface PolkadotPrimitivesV7ValidatorAppSignature extends U8aFixed {}
|
||||
|
||||
/** @name PolkadotPrimitivesV7BackedCandidate (323) */
|
||||
interface PolkadotPrimitivesV7BackedCandidate extends Struct {
|
||||
readonly candidate: PolkadotPrimitivesV7CommittedCandidateReceipt;
|
||||
readonly validityVotes: Vec<PolkadotPrimitivesV7ValidityAttestation>;
|
||||
readonly validatorIndices: BitVec;
|
||||
}
|
||||
|
||||
/** @name PolkadotPrimitivesV7CommittedCandidateReceipt (324) */
|
||||
interface PolkadotPrimitivesV7CommittedCandidateReceipt extends Struct {
|
||||
readonly descriptor: PolkadotPrimitivesV7CandidateDescriptor;
|
||||
readonly commitments: PolkadotPrimitivesV7CandidateCommitments;
|
||||
}
|
||||
|
||||
/** @name PolkadotPrimitivesV7CandidateDescriptor (325) */
|
||||
interface PolkadotPrimitivesV7CandidateDescriptor extends Struct {
|
||||
readonly paraId: u32;
|
||||
readonly relayParent: H256;
|
||||
readonly collator: PolkadotPrimitivesV7CollatorAppPublic;
|
||||
readonly persistedValidationDataHash: H256;
|
||||
readonly povHash: H256;
|
||||
readonly erasureRoot: H256;
|
||||
readonly signature: PolkadotPrimitivesV7CollatorAppSignature;
|
||||
readonly paraHead: H256;
|
||||
readonly validationCodeHash: H256;
|
||||
}
|
||||
|
||||
/** @name PolkadotPrimitivesV7CollatorAppPublic (326) */
|
||||
interface PolkadotPrimitivesV7CollatorAppPublic extends U8aFixed {}
|
||||
|
||||
/** @name PolkadotPrimitivesV7CollatorAppSignature (327) */
|
||||
interface PolkadotPrimitivesV7CollatorAppSignature extends U8aFixed {}
|
||||
|
||||
/** @name PolkadotPrimitivesV7CandidateCommitments (329) */
|
||||
interface PolkadotPrimitivesV7CandidateCommitments extends Struct {
|
||||
readonly upwardMessages: Vec<Bytes>;
|
||||
readonly horizontalMessages: Vec<PolkadotCorePrimitivesOutboundHrmpMessage>;
|
||||
readonly newValidationCode: Option<Bytes>;
|
||||
readonly headData: Bytes;
|
||||
readonly processedDownwardMessages: u32;
|
||||
readonly hrmpWatermark: u32;
|
||||
}
|
||||
|
||||
/** @name PolkadotPrimitivesV7ValidityAttestation (338) */
|
||||
interface PolkadotPrimitivesV7ValidityAttestation extends Enum {
|
||||
readonly isImplicit: boolean;
|
||||
readonly asImplicit: PolkadotPrimitivesV7ValidatorAppSignature;
|
||||
readonly isExplicit: boolean;
|
||||
readonly asExplicit: PolkadotPrimitivesV7ValidatorAppSignature;
|
||||
readonly type: 'Implicit' | 'Explicit';
|
||||
}
|
||||
|
||||
/** @name PolkadotPrimitivesV7DisputeStatementSet (340) */
|
||||
interface PolkadotPrimitivesV7DisputeStatementSet extends Struct {
|
||||
readonly candidateHash: H256;
|
||||
readonly session: u32;
|
||||
readonly statements: Vec<ITuple<[PolkadotPrimitivesV7DisputeStatement, u32, PolkadotPrimitivesV7ValidatorAppSignature]>>;
|
||||
}
|
||||
|
||||
/** @name PolkadotPrimitivesV7DisputeStatement (344) */
|
||||
interface PolkadotPrimitivesV7DisputeStatement extends Enum {
|
||||
readonly isValid: boolean;
|
||||
readonly asValid: PolkadotPrimitivesV7ValidDisputeStatementKind;
|
||||
readonly isInvalid: boolean;
|
||||
readonly asInvalid: PolkadotPrimitivesV7InvalidDisputeStatementKind;
|
||||
readonly type: 'Valid' | 'Invalid';
|
||||
}
|
||||
|
||||
/** @name PolkadotPrimitivesV7ValidDisputeStatementKind (345) */
|
||||
interface PolkadotPrimitivesV7ValidDisputeStatementKind extends Enum {
|
||||
readonly isExplicit: boolean;
|
||||
readonly isBackingSeconded: boolean;
|
||||
readonly asBackingSeconded: H256;
|
||||
readonly isBackingValid: boolean;
|
||||
readonly asBackingValid: H256;
|
||||
readonly isApprovalChecking: boolean;
|
||||
readonly isApprovalCheckingMultipleCandidates: boolean;
|
||||
readonly asApprovalCheckingMultipleCandidates: Vec<H256>;
|
||||
readonly type: 'Explicit' | 'BackingSeconded' | 'BackingValid' | 'ApprovalChecking' | 'ApprovalCheckingMultipleCandidates';
|
||||
}
|
||||
|
||||
/** @name PolkadotPrimitivesV7InvalidDisputeStatementKind (347) */
|
||||
interface PolkadotPrimitivesV7InvalidDisputeStatementKind extends Enum {
|
||||
readonly isExplicit: boolean;
|
||||
readonly type: 'Explicit';
|
||||
}
|
||||
|
||||
/** @name PolkadotPrimitivesV7PvfCheckStatement (349) */
|
||||
interface PolkadotPrimitivesV7PvfCheckStatement extends Struct {
|
||||
readonly accept: bool;
|
||||
readonly subject: H256;
|
||||
readonly sessionIndex: u32;
|
||||
readonly validatorIndex: u32;
|
||||
}
|
||||
|
||||
/** @name PolkadotPrimitivesV7SlashingDisputeProof (355) */
|
||||
interface PolkadotPrimitivesV7SlashingDisputeProof extends Struct {
|
||||
readonly timeSlot: PolkadotPrimitivesV7SlashingDisputesTimeSlot;
|
||||
readonly kind: PolkadotPrimitivesV7SlashingSlashingOffenceKind;
|
||||
readonly validatorIndex: u32;
|
||||
readonly validatorId: PolkadotPrimitivesV7ValidatorAppPublic;
|
||||
}
|
||||
|
||||
/** @name PolkadotPrimitivesV7SlashingDisputesTimeSlot (356) */
|
||||
interface PolkadotPrimitivesV7SlashingDisputesTimeSlot extends Struct {
|
||||
readonly sessionIndex: u32;
|
||||
readonly candidateHash: H256;
|
||||
}
|
||||
|
||||
/** @name PolkadotPrimitivesV7SlashingSlashingOffenceKind (357) */
|
||||
interface PolkadotPrimitivesV7SlashingSlashingOffenceKind extends Enum {
|
||||
readonly isForInvalid: boolean;
|
||||
readonly isAgainstValid: boolean;
|
||||
readonly type: 'ForInvalid' | 'AgainstValid';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsAssignerOnDemandPalletCall (358) */
|
||||
interface PolkadotRuntimeParachainsAssignerOnDemandPalletCall extends Enum {
|
||||
readonly isPlaceOrderAllowDeath: boolean;
|
||||
readonly asPlaceOrderAllowDeath: {
|
||||
readonly maxAmount: u128;
|
||||
readonly paraId: u32;
|
||||
} & Struct;
|
||||
readonly isPlaceOrderKeepAlive: boolean;
|
||||
readonly asPlaceOrderKeepAlive: {
|
||||
readonly maxAmount: u128;
|
||||
readonly paraId: u32;
|
||||
} & Struct;
|
||||
readonly type: 'PlaceOrderAllowDeath' | 'PlaceOrderKeepAlive';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsCoretimePalletCall (368) */
|
||||
interface PolkadotRuntimeParachainsCoretimePalletCall extends Enum {
|
||||
readonly isRequestCoreCount: boolean;
|
||||
readonly asRequestCoreCount: {
|
||||
readonly count: u16;
|
||||
} & Struct;
|
||||
readonly isRequestRevenueAt: boolean;
|
||||
readonly asRequestRevenueAt: {
|
||||
readonly when: u32;
|
||||
} & Struct;
|
||||
readonly isAssignCore: boolean;
|
||||
readonly asAssignCore: {
|
||||
readonly core: u16;
|
||||
readonly begin: u32;
|
||||
readonly assignment: Vec<ITuple<[PalletBrokerCoretimeInterfaceCoreAssignment, u16]>>;
|
||||
readonly endHint: Option<u32>;
|
||||
} & Struct;
|
||||
readonly type: 'RequestCoreCount' | 'RequestRevenueAt' | 'AssignCore';
|
||||
}
|
||||
|
||||
/** @name XcmV3OriginKind (414) */
|
||||
interface XcmV3OriginKind extends Enum {
|
||||
readonly isNative: boolean;
|
||||
readonly isSovereignAccount: boolean;
|
||||
readonly isSuperuser: boolean;
|
||||
readonly isXcm: boolean;
|
||||
readonly type: 'Native' | 'SovereignAccount' | 'Superuser' | 'Xcm';
|
||||
}
|
||||
|
||||
/** @name StagingKusamaRuntimeRuntimeParametersKey (479) */
|
||||
interface StagingKusamaRuntimeRuntimeParametersKey extends Enum {
|
||||
readonly isInflation: boolean;
|
||||
@@ -429,40 +185,6 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'MinInflation' | 'MaxInflation' | 'IdealStake' | 'Falloff' | 'UseAuctionSlots';
|
||||
}
|
||||
|
||||
/** @name PolkadotPrimitivesV7CandidateReceipt (508) */
|
||||
interface PolkadotPrimitivesV7CandidateReceipt extends Struct {
|
||||
readonly descriptor: PolkadotPrimitivesV7CandidateDescriptor;
|
||||
readonly commitmentsHash: H256;
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsAssignerOnDemandPalletEvent (516) */
|
||||
interface PolkadotRuntimeParachainsAssignerOnDemandPalletEvent extends Enum {
|
||||
readonly isOnDemandOrderPlaced: boolean;
|
||||
readonly asOnDemandOrderPlaced: {
|
||||
readonly paraId: u32;
|
||||
readonly spotPrice: u128;
|
||||
readonly orderedBy: AccountId32;
|
||||
} & Struct;
|
||||
readonly isSpotPriceSet: boolean;
|
||||
readonly asSpotPriceSet: {
|
||||
readonly spotPrice: u128;
|
||||
} & Struct;
|
||||
readonly type: 'OnDemandOrderPlaced' | 'SpotPriceSet';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsCoretimePalletEvent (521) */
|
||||
interface PolkadotRuntimeParachainsCoretimePalletEvent extends Enum {
|
||||
readonly isRevenueInfoRequested: boolean;
|
||||
readonly asRevenueInfoRequested: {
|
||||
readonly when: u32;
|
||||
} & Struct;
|
||||
readonly isCoreAssigned: boolean;
|
||||
readonly asCoreAssigned: {
|
||||
readonly core: u32;
|
||||
} & Struct;
|
||||
readonly type: 'RevenueInfoRequested' | 'CoreAssigned';
|
||||
}
|
||||
|
||||
/** @name StagingKusamaRuntimeRuntimeHoldReason (570) */
|
||||
interface StagingKusamaRuntimeRuntimeHoldReason extends Enum {
|
||||
readonly isPreimage: boolean;
|
||||
@@ -485,156 +207,108 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly amount: u128;
|
||||
}
|
||||
|
||||
/** @name PolkadotPrimitivesV7ScrapedOnChainVotes (791) */
|
||||
interface PolkadotPrimitivesV7ScrapedOnChainVotes extends Struct {
|
||||
readonly session: u32;
|
||||
readonly backingValidatorsPerCandidate: Vec<ITuple<[PolkadotPrimitivesV7CandidateReceipt, Vec<ITuple<[u32, PolkadotPrimitivesV7ValidityAttestation]>>]>>;
|
||||
readonly disputes: Vec<PolkadotPrimitivesV7DisputeStatementSet>;
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsParasUpgradeStrategy (809) */
|
||||
interface PolkadotRuntimeParachainsParasUpgradeStrategy extends Enum {
|
||||
readonly isSetGoAheadSignal: boolean;
|
||||
readonly isApplyAtExpectedBlock: boolean;
|
||||
readonly type: 'SetGoAheadSignal' | 'ApplyAtExpectedBlock';
|
||||
}
|
||||
|
||||
/** @name PolkadotPrimitivesV7UpgradeGoAhead (818) */
|
||||
interface PolkadotPrimitivesV7UpgradeGoAhead extends Enum {
|
||||
readonly isAbort: boolean;
|
||||
readonly isGoAhead: boolean;
|
||||
readonly type: 'Abort' | 'GoAhead';
|
||||
}
|
||||
|
||||
/** @name PolkadotPrimitivesV7UpgradeRestriction (819) */
|
||||
interface PolkadotPrimitivesV7UpgradeRestriction extends Enum {
|
||||
readonly isPresent: boolean;
|
||||
readonly type: 'Present';
|
||||
}
|
||||
|
||||
/** @name PolkadotPrimitivesV7SessionInfo (835) */
|
||||
interface PolkadotPrimitivesV7SessionInfo extends Struct {
|
||||
readonly activeValidatorIndices: Vec<u32>;
|
||||
readonly randomSeed: U8aFixed;
|
||||
readonly disputePeriod: u32;
|
||||
readonly validators: PolkadotPrimitivesV7IndexedVecValidatorIndex;
|
||||
readonly discoveryKeys: Vec<SpAuthorityDiscoveryAppPublic>;
|
||||
readonly assignmentKeys: Vec<PolkadotPrimitivesV7AssignmentAppPublic>;
|
||||
readonly validatorGroups: PolkadotPrimitivesV7IndexedVecGroupIndex;
|
||||
readonly nCores: u32;
|
||||
readonly zerothDelayTrancheWidth: u32;
|
||||
readonly relayVrfModuloSamples: u32;
|
||||
readonly nDelayTranches: u32;
|
||||
readonly noShowSlots: u32;
|
||||
readonly neededApprovals: u32;
|
||||
}
|
||||
|
||||
/** @name PolkadotPrimitivesV7IndexedVecValidatorIndex (836) */
|
||||
interface PolkadotPrimitivesV7IndexedVecValidatorIndex extends Vec<PolkadotPrimitivesV7ValidatorAppPublic> {}
|
||||
|
||||
/** @name PolkadotPrimitivesV7IndexedVecGroupIndex (837) */
|
||||
interface PolkadotPrimitivesV7IndexedVecGroupIndex extends Vec<Vec<u32>> {}
|
||||
|
||||
/** @name PolkadotPrimitivesV7DisputeState (839) */
|
||||
interface PolkadotPrimitivesV7DisputeState extends Struct {
|
||||
readonly validatorsFor: BitVec;
|
||||
readonly validatorsAgainst: BitVec;
|
||||
readonly start: u32;
|
||||
readonly concludedAt: Option<u32>;
|
||||
}
|
||||
|
||||
/** @name PolkadotPrimitivesV7SlashingPendingSlashes (842) */
|
||||
interface PolkadotPrimitivesV7SlashingPendingSlashes extends Struct {
|
||||
readonly keys_: BTreeMap<u32, PolkadotPrimitivesV7ValidatorAppPublic>;
|
||||
readonly kind: PolkadotPrimitivesV7SlashingSlashingOffenceKind;
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsAssignerOnDemandTypesCoreAffinityCount (847) */
|
||||
interface PolkadotRuntimeParachainsAssignerOnDemandTypesCoreAffinityCount extends Struct {
|
||||
readonly coreIndex: u32;
|
||||
readonly count: u32;
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsAssignerOnDemandTypesQueueStatusType (848) */
|
||||
interface PolkadotRuntimeParachainsAssignerOnDemandTypesQueueStatusType extends Struct {
|
||||
readonly traffic: u128;
|
||||
readonly nextIndex: u32;
|
||||
readonly smallestIndex: u32;
|
||||
readonly freedIndices: BinaryHeapReverseQueueIndex;
|
||||
}
|
||||
|
||||
/** @name BinaryHeapReverseQueueIndex (850) */
|
||||
interface BinaryHeapReverseQueueIndex extends Vec<u32> {}
|
||||
|
||||
/** @name BinaryHeapEnqueuedOrder (853) */
|
||||
interface BinaryHeapEnqueuedOrder extends Vec<PolkadotRuntimeParachainsAssignerOnDemandTypesEnqueuedOrder> {}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsAssignerOnDemandTypesEnqueuedOrder (854) */
|
||||
interface PolkadotRuntimeParachainsAssignerOnDemandTypesEnqueuedOrder extends Struct {
|
||||
readonly paraId: u32;
|
||||
readonly idx: u32;
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsAssignerOnDemandPalletError (858) */
|
||||
interface PolkadotRuntimeParachainsAssignerOnDemandPalletError extends Enum {
|
||||
readonly isQueueFull: boolean;
|
||||
readonly isSpotPriceHigherThanMaxAmount: boolean;
|
||||
readonly type: 'QueueFull' | 'SpotPriceHigherThanMaxAmount';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsAssignerCoretimeSchedule (860) */
|
||||
interface PolkadotRuntimeParachainsAssignerCoretimeSchedule extends Struct {
|
||||
readonly assignments: Vec<ITuple<[PalletBrokerCoretimeInterfaceCoreAssignment, u16]>>;
|
||||
readonly endHint: Option<u32>;
|
||||
readonly nextSchedule: Option<u32>;
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor (861) */
|
||||
interface PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor extends Struct {
|
||||
readonly queue: Option<PolkadotRuntimeParachainsAssignerCoretimeQueueDescriptor>;
|
||||
readonly currentWork: Option<PolkadotRuntimeParachainsAssignerCoretimeWorkState>;
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsAssignerCoretimeQueueDescriptor (863) */
|
||||
interface PolkadotRuntimeParachainsAssignerCoretimeQueueDescriptor extends Struct {
|
||||
readonly first: u32;
|
||||
readonly last: u32;
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsAssignerCoretimeWorkState (865) */
|
||||
interface PolkadotRuntimeParachainsAssignerCoretimeWorkState extends Struct {
|
||||
readonly assignments: Vec<ITuple<[PalletBrokerCoretimeInterfaceCoreAssignment, PolkadotRuntimeParachainsAssignerCoretimeAssignmentState]>>;
|
||||
readonly endHint: Option<u32>;
|
||||
readonly pos: u16;
|
||||
readonly step: u16;
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsAssignerCoretimeAssignmentState (868) */
|
||||
interface PolkadotRuntimeParachainsAssignerCoretimeAssignmentState extends Struct {
|
||||
readonly ratio: u16;
|
||||
readonly remaining: u16;
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsAssignerCoretimePalletError (869) */
|
||||
interface PolkadotRuntimeParachainsAssignerCoretimePalletError extends Enum {
|
||||
readonly isAssignmentsEmpty: boolean;
|
||||
readonly isOverScheduled: boolean;
|
||||
readonly isUnderScheduled: boolean;
|
||||
readonly isDisallowedInsert: boolean;
|
||||
readonly isDuplicateInsert: boolean;
|
||||
readonly isAssignmentsNotSorted: boolean;
|
||||
readonly type: 'AssignmentsEmpty' | 'OverScheduled' | 'UnderScheduled' | 'DisallowedInsert' | 'DuplicateInsert' | 'AssignmentsNotSorted';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsCoretimePalletError (882) */
|
||||
interface PolkadotRuntimeParachainsCoretimePalletError extends Enum {
|
||||
readonly isNotBroker: boolean;
|
||||
readonly isRequestedFutureRevenue: boolean;
|
||||
readonly isAssetTransferFailed: boolean;
|
||||
readonly type: 'NotBroker' | 'RequestedFutureRevenue' | 'AssetTransferFailed';
|
||||
}
|
||||
|
||||
/** @name StagingKusamaRuntimeRuntime (929) */
|
||||
/** @name StagingKusamaRuntimeRuntime (928) */
|
||||
type StagingKusamaRuntimeRuntime = Null;
|
||||
|
||||
/** @name StagingKusamaRuntimeRuntimeError (1040) */
|
||||
interface StagingKusamaRuntimeRuntimeError extends Enum {
|
||||
readonly isSystem: boolean;
|
||||
readonly asSystem: FrameSystemError;
|
||||
readonly isBabe: boolean;
|
||||
readonly asBabe: PalletBabeError;
|
||||
readonly isIndices: boolean;
|
||||
readonly asIndices: PalletIndicesError;
|
||||
readonly isBalances: boolean;
|
||||
readonly asBalances: PalletBalancesError;
|
||||
readonly isStaking: boolean;
|
||||
readonly asStaking: PalletStakingPalletError;
|
||||
readonly isSession: boolean;
|
||||
readonly asSession: PalletSessionError;
|
||||
readonly isGrandpa: boolean;
|
||||
readonly asGrandpa: PalletGrandpaError;
|
||||
readonly isTreasury: boolean;
|
||||
readonly asTreasury: PalletTreasuryError;
|
||||
readonly isClaims: boolean;
|
||||
readonly asClaims: PolkadotRuntimeCommonClaimsPalletError;
|
||||
readonly isConvictionVoting: boolean;
|
||||
readonly asConvictionVoting: PalletConvictionVotingError;
|
||||
readonly isReferenda: boolean;
|
||||
readonly asReferenda: PalletReferendaError;
|
||||
readonly isFellowshipCollective: boolean;
|
||||
readonly asFellowshipCollective: PalletRankedCollectiveError;
|
||||
readonly isFellowshipReferenda: boolean;
|
||||
readonly asFellowshipReferenda: PalletReferendaError;
|
||||
readonly isUtility: boolean;
|
||||
readonly asUtility: PalletUtilityError;
|
||||
readonly isSociety: boolean;
|
||||
readonly asSociety: PalletSocietyError;
|
||||
readonly isRecovery: boolean;
|
||||
readonly asRecovery: PalletRecoveryError;
|
||||
readonly isVesting: boolean;
|
||||
readonly asVesting: PalletVestingError;
|
||||
readonly isScheduler: boolean;
|
||||
readonly asScheduler: PalletSchedulerError;
|
||||
readonly isProxy: boolean;
|
||||
readonly asProxy: PalletProxyError;
|
||||
readonly isMultisig: boolean;
|
||||
readonly asMultisig: PalletMultisigError;
|
||||
readonly isPreimage: boolean;
|
||||
readonly asPreimage: PalletPreimageError;
|
||||
readonly isBounties: boolean;
|
||||
readonly asBounties: PalletBountiesError;
|
||||
readonly isElectionProviderMultiPhase: boolean;
|
||||
readonly asElectionProviderMultiPhase: PalletElectionProviderMultiPhaseError;
|
||||
readonly isNis: boolean;
|
||||
readonly asNis: PalletNisError;
|
||||
readonly isVoterList: boolean;
|
||||
readonly asVoterList: PalletBagsListError;
|
||||
readonly isChildBounties: boolean;
|
||||
readonly asChildBounties: PalletChildBountiesError;
|
||||
readonly isNominationPools: boolean;
|
||||
readonly asNominationPools: PalletNominationPoolsError;
|
||||
readonly isFastUnstake: boolean;
|
||||
readonly asFastUnstake: PalletFastUnstakeError;
|
||||
readonly isWhitelist: boolean;
|
||||
readonly asWhitelist: PalletWhitelistError;
|
||||
readonly isNisCounterpartBalances: boolean;
|
||||
readonly asNisCounterpartBalances: PalletBalancesError;
|
||||
readonly isConfiguration: boolean;
|
||||
readonly asConfiguration: PolkadotRuntimeParachainsConfigurationPalletError;
|
||||
readonly isParaInclusion: boolean;
|
||||
readonly asParaInclusion: PolkadotRuntimeParachainsInclusionPalletError;
|
||||
readonly isParaInherent: boolean;
|
||||
readonly asParaInherent: PolkadotRuntimeParachainsParasInherentPalletError;
|
||||
readonly isParas: boolean;
|
||||
readonly asParas: PolkadotRuntimeParachainsParasPalletError;
|
||||
readonly isHrmp: boolean;
|
||||
readonly asHrmp: PolkadotRuntimeParachainsHrmpPalletError;
|
||||
readonly isParasDisputes: boolean;
|
||||
readonly asParasDisputes: PolkadotRuntimeParachainsDisputesPalletError;
|
||||
readonly isParasSlashing: boolean;
|
||||
readonly asParasSlashing: PolkadotRuntimeParachainsDisputesSlashingPalletError;
|
||||
readonly isOnDemandAssignmentProvider: boolean;
|
||||
readonly asOnDemandAssignmentProvider: PolkadotRuntimeParachainsAssignerOnDemandPalletError;
|
||||
readonly isCoretimeAssignmentProvider: boolean;
|
||||
readonly asCoretimeAssignmentProvider: PolkadotRuntimeParachainsAssignerCoretimePalletError;
|
||||
readonly isRegistrar: boolean;
|
||||
readonly asRegistrar: PolkadotRuntimeCommonParasRegistrarPalletError;
|
||||
readonly isSlots: boolean;
|
||||
readonly asSlots: PolkadotRuntimeCommonSlotsPalletError;
|
||||
readonly isAuctions: boolean;
|
||||
readonly asAuctions: PolkadotRuntimeCommonAuctionsPalletError;
|
||||
readonly isCrowdloan: boolean;
|
||||
readonly asCrowdloan: PolkadotRuntimeCommonCrowdloanPalletError;
|
||||
readonly isCoretime: boolean;
|
||||
readonly asCoretime: PolkadotRuntimeParachainsCoretimePalletError;
|
||||
readonly isXcmPallet: boolean;
|
||||
readonly asXcmPallet: PalletXcmError;
|
||||
readonly isMessageQueue: boolean;
|
||||
readonly asMessageQueue: PalletMessageQueueError;
|
||||
readonly isAssetRate: boolean;
|
||||
readonly asAssetRate: PalletAssetRateError;
|
||||
readonly isBeefy: boolean;
|
||||
readonly asBeefy: PalletBeefyError;
|
||||
readonly type: 'System' | 'Babe' | 'Indices' | 'Balances' | 'Staking' | 'Session' | 'Grandpa' | 'Treasury' | 'Claims' | 'ConvictionVoting' | 'Referenda' | 'FellowshipCollective' | 'FellowshipReferenda' | 'Utility' | 'Society' | 'Recovery' | 'Vesting' | 'Scheduler' | 'Proxy' | 'Multisig' | 'Preimage' | 'Bounties' | 'ElectionProviderMultiPhase' | 'Nis' | 'VoterList' | 'ChildBounties' | 'NominationPools' | 'FastUnstake' | 'Whitelist' | 'NisCounterpartBalances' | 'Configuration' | 'ParaInclusion' | 'ParaInherent' | 'Paras' | 'Hrmp' | 'ParasDisputes' | 'ParasSlashing' | 'OnDemandAssignmentProvider' | 'CoretimeAssignmentProvider' | 'Registrar' | 'Slots' | 'Auctions' | 'Crowdloan' | 'Coretime' | 'XcmPallet' | 'MessageQueue' | 'AssetRate' | 'Beefy';
|
||||
}
|
||||
|
||||
} // declare module
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -9130,40 +9130,427 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'InvalidAssetPair' | 'PoolNotFound' | 'ZeroBalance' | 'PartialTransfer';
|
||||
}
|
||||
|
||||
/** @name FrameSystemExtensionsCheckNonZeroSender (934) */
|
||||
/** @name FrameSystemExtensionsCheckNonZeroSender (933) */
|
||||
type FrameSystemExtensionsCheckNonZeroSender = Null;
|
||||
|
||||
/** @name FrameSystemExtensionsCheckSpecVersion (935) */
|
||||
/** @name FrameSystemExtensionsCheckSpecVersion (934) */
|
||||
type FrameSystemExtensionsCheckSpecVersion = Null;
|
||||
|
||||
/** @name FrameSystemExtensionsCheckTxVersion (936) */
|
||||
/** @name FrameSystemExtensionsCheckTxVersion (935) */
|
||||
type FrameSystemExtensionsCheckTxVersion = Null;
|
||||
|
||||
/** @name FrameSystemExtensionsCheckGenesis (937) */
|
||||
/** @name FrameSystemExtensionsCheckGenesis (936) */
|
||||
type FrameSystemExtensionsCheckGenesis = Null;
|
||||
|
||||
/** @name FrameSystemExtensionsCheckNonce (940) */
|
||||
/** @name FrameSystemExtensionsCheckNonce (939) */
|
||||
interface FrameSystemExtensionsCheckNonce extends Compact<u32> {}
|
||||
|
||||
/** @name FrameSystemExtensionsCheckWeight (941) */
|
||||
/** @name FrameSystemExtensionsCheckWeight (940) */
|
||||
type FrameSystemExtensionsCheckWeight = Null;
|
||||
|
||||
/** @name PalletAssetConversionTxPaymentChargeAssetTxPayment (942) */
|
||||
/** @name PalletAssetConversionTxPaymentChargeAssetTxPayment (941) */
|
||||
interface PalletAssetConversionTxPaymentChargeAssetTxPayment extends Struct {
|
||||
readonly tip: Compact<u128>;
|
||||
readonly assetId: Option<u32>;
|
||||
}
|
||||
|
||||
/** @name FrameMetadataHashExtensionCheckMetadataHash (943) */
|
||||
/** @name FrameMetadataHashExtensionCheckMetadataHash (942) */
|
||||
interface FrameMetadataHashExtensionCheckMetadataHash extends Struct {
|
||||
readonly mode: FrameMetadataHashExtensionMode;
|
||||
}
|
||||
|
||||
/** @name FrameMetadataHashExtensionMode (944) */
|
||||
/** @name FrameMetadataHashExtensionMode (943) */
|
||||
interface FrameMetadataHashExtensionMode extends Enum {
|
||||
readonly isDisabled: boolean;
|
||||
readonly isEnabled: boolean;
|
||||
readonly type: 'Disabled' | 'Enabled';
|
||||
}
|
||||
|
||||
/** @name SpRuntimeBlock (944) */
|
||||
interface SpRuntimeBlock extends Struct {
|
||||
readonly header: SpRuntimeHeader;
|
||||
readonly extrinsics: Vec<Bytes>;
|
||||
}
|
||||
|
||||
/** @name SpRuntimeExtrinsicInclusionMode (947) */
|
||||
interface SpRuntimeExtrinsicInclusionMode extends Enum {
|
||||
readonly isAllExtrinsics: boolean;
|
||||
readonly isOnlyInherents: boolean;
|
||||
readonly type: 'AllExtrinsics' | 'OnlyInherents';
|
||||
}
|
||||
|
||||
/** @name SpRuntimeTransactionValidityTransactionValidityError (951) */
|
||||
interface SpRuntimeTransactionValidityTransactionValidityError extends Enum {
|
||||
readonly isInvalid: boolean;
|
||||
readonly asInvalid: SpRuntimeTransactionValidityInvalidTransaction;
|
||||
readonly isUnknown: boolean;
|
||||
readonly asUnknown: SpRuntimeTransactionValidityUnknownTransaction;
|
||||
readonly type: 'Invalid' | 'Unknown';
|
||||
}
|
||||
|
||||
/** @name SpRuntimeTransactionValidityInvalidTransaction (952) */
|
||||
interface SpRuntimeTransactionValidityInvalidTransaction extends Enum {
|
||||
readonly isCall: boolean;
|
||||
readonly isPayment: boolean;
|
||||
readonly isFuture: boolean;
|
||||
readonly isStale: boolean;
|
||||
readonly isBadProof: boolean;
|
||||
readonly isAncientBirthBlock: boolean;
|
||||
readonly isExhaustsResources: boolean;
|
||||
readonly isCustom: boolean;
|
||||
readonly asCustom: u8;
|
||||
readonly isBadMandatory: boolean;
|
||||
readonly isMandatoryValidation: boolean;
|
||||
readonly isBadSigner: boolean;
|
||||
readonly type: 'Call' | 'Payment' | 'Future' | 'Stale' | 'BadProof' | 'AncientBirthBlock' | 'ExhaustsResources' | 'Custom' | 'BadMandatory' | 'MandatoryValidation' | 'BadSigner';
|
||||
}
|
||||
|
||||
/** @name SpRuntimeTransactionValidityUnknownTransaction (953) */
|
||||
interface SpRuntimeTransactionValidityUnknownTransaction extends Enum {
|
||||
readonly isCannotLookup: boolean;
|
||||
readonly isNoUnsignedValidator: boolean;
|
||||
readonly isCustom: boolean;
|
||||
readonly asCustom: u8;
|
||||
readonly type: 'CannotLookup' | 'NoUnsignedValidator' | 'Custom';
|
||||
}
|
||||
|
||||
/** @name SpInherentsInherentData (954) */
|
||||
interface SpInherentsInherentData extends Struct {
|
||||
readonly data: BTreeMap<U8aFixed, Bytes>;
|
||||
}
|
||||
|
||||
/** @name SpInherentsCheckInherentsResult (958) */
|
||||
interface SpInherentsCheckInherentsResult extends Struct {
|
||||
readonly okay: bool;
|
||||
readonly fatalError: bool;
|
||||
readonly errors: SpInherentsInherentData;
|
||||
}
|
||||
|
||||
/** @name SpRuntimeTransactionValidityTransactionSource (959) */
|
||||
interface SpRuntimeTransactionValidityTransactionSource extends Enum {
|
||||
readonly isInBlock: boolean;
|
||||
readonly isLocal: boolean;
|
||||
readonly isExternal: boolean;
|
||||
readonly type: 'InBlock' | 'Local' | 'External';
|
||||
}
|
||||
|
||||
/** @name SpRuntimeTransactionValidityValidTransaction (961) */
|
||||
interface SpRuntimeTransactionValidityValidTransaction extends Struct {
|
||||
readonly priority: u64;
|
||||
readonly requires: Vec<Bytes>;
|
||||
readonly provides: Vec<Bytes>;
|
||||
readonly longevity: u64;
|
||||
readonly propagate: bool;
|
||||
}
|
||||
|
||||
/** @name SpStatementStoreRuntimeApiStatementSource (962) */
|
||||
interface SpStatementStoreRuntimeApiStatementSource extends Enum {
|
||||
readonly isChain: boolean;
|
||||
readonly isNetwork: boolean;
|
||||
readonly isLocal: boolean;
|
||||
readonly type: 'Chain' | 'Network' | 'Local';
|
||||
}
|
||||
|
||||
/** @name SpStatementStoreRuntimeApiValidStatement (964) */
|
||||
interface SpStatementStoreRuntimeApiValidStatement extends Struct {
|
||||
readonly maxCount: u32;
|
||||
readonly maxSize: u32;
|
||||
}
|
||||
|
||||
/** @name SpStatementStoreRuntimeApiInvalidStatement (965) */
|
||||
interface SpStatementStoreRuntimeApiInvalidStatement extends Enum {
|
||||
readonly isBadProof: boolean;
|
||||
readonly isNoProof: boolean;
|
||||
readonly isInternalError: boolean;
|
||||
readonly type: 'BadProof' | 'NoProof' | 'InternalError';
|
||||
}
|
||||
|
||||
/** @name SpConsensusBabeBabeConfiguration (969) */
|
||||
interface SpConsensusBabeBabeConfiguration extends Struct {
|
||||
readonly slotDuration: u64;
|
||||
readonly epochLength: u64;
|
||||
readonly c: ITuple<[u64, u64]>;
|
||||
readonly authorities: Vec<ITuple<[SpConsensusBabeAppPublic, u64]>>;
|
||||
readonly randomness: U8aFixed;
|
||||
readonly allowedSlots: SpConsensusBabeAllowedSlots;
|
||||
}
|
||||
|
||||
/** @name SpConsensusBabeEpoch (970) */
|
||||
interface SpConsensusBabeEpoch extends Struct {
|
||||
readonly epochIndex: u64;
|
||||
readonly startSlot: u64;
|
||||
readonly duration: u64;
|
||||
readonly authorities: Vec<ITuple<[SpConsensusBabeAppPublic, u64]>>;
|
||||
readonly randomness: U8aFixed;
|
||||
readonly config: SpConsensusBabeBabeEpochConfiguration;
|
||||
}
|
||||
|
||||
/** @name PalletContractsPrimitivesExecReturnValue (975) */
|
||||
interface PalletContractsPrimitivesExecReturnValue extends Struct {
|
||||
readonly flags: PalletContractsUapiFlagsReturnFlags;
|
||||
readonly data: Bytes;
|
||||
}
|
||||
|
||||
/** @name PalletContractsUapiFlagsReturnFlags (976) */
|
||||
interface PalletContractsUapiFlagsReturnFlags extends Struct {
|
||||
readonly bits: u32;
|
||||
}
|
||||
|
||||
/** @name PalletContractsPrimitivesStorageDeposit (977) */
|
||||
interface PalletContractsPrimitivesStorageDeposit extends Enum {
|
||||
readonly isRefund: boolean;
|
||||
readonly asRefund: u128;
|
||||
readonly isCharge: boolean;
|
||||
readonly asCharge: u128;
|
||||
readonly type: 'Refund' | 'Charge';
|
||||
}
|
||||
|
||||
/** @name PalletContractsPrimitivesCode (980) */
|
||||
interface PalletContractsPrimitivesCode extends Enum {
|
||||
readonly isUpload: boolean;
|
||||
readonly asUpload: Bytes;
|
||||
readonly isExisting: boolean;
|
||||
readonly asExisting: H256;
|
||||
readonly type: 'Upload' | 'Existing';
|
||||
}
|
||||
|
||||
/** @name PalletContractsPrimitivesContractResult (981) */
|
||||
interface PalletContractsPrimitivesContractResult extends Struct {
|
||||
readonly gasConsumed: SpWeightsWeightV2Weight;
|
||||
readonly gasRequired: SpWeightsWeightV2Weight;
|
||||
readonly storageDeposit: PalletContractsPrimitivesStorageDeposit;
|
||||
readonly debugMessage: Bytes;
|
||||
readonly result: Result<PalletContractsPrimitivesInstantiateReturnValue, SpRuntimeDispatchError>;
|
||||
readonly events: Option<Vec<FrameSystemEventRecord>>;
|
||||
}
|
||||
|
||||
/** @name PalletContractsPrimitivesInstantiateReturnValue (983) */
|
||||
interface PalletContractsPrimitivesInstantiateReturnValue extends Struct {
|
||||
readonly result: PalletContractsPrimitivesExecReturnValue;
|
||||
readonly accountId: AccountId32;
|
||||
}
|
||||
|
||||
/** @name PalletContractsPrimitivesCodeUploadReturnValue (985) */
|
||||
interface PalletContractsPrimitivesCodeUploadReturnValue extends Struct {
|
||||
readonly codeHash: H256;
|
||||
readonly deposit: u128;
|
||||
}
|
||||
|
||||
/** @name PalletContractsPrimitivesContractAccessError (987) */
|
||||
interface PalletContractsPrimitivesContractAccessError extends Enum {
|
||||
readonly isDoesntExist: boolean;
|
||||
readonly isKeyDecodingFailed: boolean;
|
||||
readonly isMigrationInProgress: boolean;
|
||||
readonly type: 'DoesntExist' | 'KeyDecodingFailed' | 'MigrationInProgress';
|
||||
}
|
||||
|
||||
/** @name PalletTransactionPaymentRuntimeDispatchInfo (988) */
|
||||
interface PalletTransactionPaymentRuntimeDispatchInfo extends Struct {
|
||||
readonly weight: SpWeightsWeightV2Weight;
|
||||
readonly class: FrameSupportDispatchDispatchClass;
|
||||
readonly partialFee: u128;
|
||||
}
|
||||
|
||||
/** @name PalletTransactionPaymentFeeDetails (989) */
|
||||
interface PalletTransactionPaymentFeeDetails extends Struct {
|
||||
readonly inclusionFee: Option<PalletTransactionPaymentInclusionFee>;
|
||||
readonly tip: u128;
|
||||
}
|
||||
|
||||
/** @name PalletTransactionPaymentInclusionFee (991) */
|
||||
interface PalletTransactionPaymentInclusionFee extends Struct {
|
||||
readonly baseFee: u128;
|
||||
readonly lenFee: u128;
|
||||
readonly adjustedWeightFee: u128;
|
||||
}
|
||||
|
||||
/** @name SpConsensusBeefyValidatorSet (995) */
|
||||
interface SpConsensusBeefyValidatorSet extends Struct {
|
||||
readonly validators: Vec<SpConsensusBeefyEcdsaCryptoPublic>;
|
||||
readonly id: u64;
|
||||
}
|
||||
|
||||
/** @name SpMmrPrimitivesError (997) */
|
||||
interface SpMmrPrimitivesError extends Enum {
|
||||
readonly isInvalidNumericOp: boolean;
|
||||
readonly isPush: boolean;
|
||||
readonly isGetRoot: boolean;
|
||||
readonly isCommit: boolean;
|
||||
readonly isGenerateProof: boolean;
|
||||
readonly isVerify: boolean;
|
||||
readonly isLeafNotFound: boolean;
|
||||
readonly isPalletNotIncluded: boolean;
|
||||
readonly isInvalidLeafIndex: boolean;
|
||||
readonly isInvalidBestKnownBlock: boolean;
|
||||
readonly type: 'InvalidNumericOp' | 'Push' | 'GetRoot' | 'Commit' | 'GenerateProof' | 'Verify' | 'LeafNotFound' | 'PalletNotIncluded' | 'InvalidLeafIndex' | 'InvalidBestKnownBlock';
|
||||
}
|
||||
|
||||
/** @name SpMmrPrimitivesLeafProof (1003) */
|
||||
interface SpMmrPrimitivesLeafProof extends Struct {
|
||||
readonly leafIndices: Vec<u64>;
|
||||
readonly leafCount: u64;
|
||||
readonly items: Vec<H256>;
|
||||
}
|
||||
|
||||
/** @name SpMixnetSessionStatus (1005) */
|
||||
interface SpMixnetSessionStatus extends Struct {
|
||||
readonly currentIndex: u32;
|
||||
readonly phase: SpMixnetSessionPhase;
|
||||
}
|
||||
|
||||
/** @name SpMixnetSessionPhase (1006) */
|
||||
interface SpMixnetSessionPhase extends Enum {
|
||||
readonly isCoverToCurrent: boolean;
|
||||
readonly isRequestsToCurrent: boolean;
|
||||
readonly isCoverToPrev: boolean;
|
||||
readonly isDisconnectFromPrev: boolean;
|
||||
readonly type: 'CoverToCurrent' | 'RequestsToCurrent' | 'CoverToPrev' | 'DisconnectFromPrev';
|
||||
}
|
||||
|
||||
/** @name SpMixnetMixnode (1009) */
|
||||
interface SpMixnetMixnode extends Struct {
|
||||
readonly kxPublic: U8aFixed;
|
||||
readonly peerId: U8aFixed;
|
||||
readonly externalAddresses: Vec<Bytes>;
|
||||
}
|
||||
|
||||
/** @name SpMixnetMixnodesErr (1010) */
|
||||
interface SpMixnetMixnodesErr extends Enum {
|
||||
readonly isInsufficientRegistrations: boolean;
|
||||
readonly asInsufficientRegistrations: {
|
||||
readonly num: u32;
|
||||
readonly min: u32;
|
||||
} & Struct;
|
||||
readonly type: 'InsufficientRegistrations';
|
||||
}
|
||||
|
||||
/** @name KitchensinkRuntimeRuntimeError (1017) */
|
||||
interface KitchensinkRuntimeRuntimeError extends Enum {
|
||||
readonly isSystem: boolean;
|
||||
readonly asSystem: FrameSystemError;
|
||||
readonly isUtility: boolean;
|
||||
readonly asUtility: PalletUtilityError;
|
||||
readonly isBabe: boolean;
|
||||
readonly asBabe: PalletBabeError;
|
||||
readonly isIndices: boolean;
|
||||
readonly asIndices: PalletIndicesError;
|
||||
readonly isBalances: boolean;
|
||||
readonly asBalances: PalletBalancesError;
|
||||
readonly isElectionProviderMultiPhase: boolean;
|
||||
readonly asElectionProviderMultiPhase: PalletElectionProviderMultiPhaseError;
|
||||
readonly isStaking: boolean;
|
||||
readonly asStaking: PalletStakingPalletError;
|
||||
readonly isSession: boolean;
|
||||
readonly asSession: PalletSessionError;
|
||||
readonly isDemocracy: boolean;
|
||||
readonly asDemocracy: PalletDemocracyError;
|
||||
readonly isCouncil: boolean;
|
||||
readonly asCouncil: PalletCollectiveError;
|
||||
readonly isTechnicalCommittee: boolean;
|
||||
readonly asTechnicalCommittee: PalletCollectiveError;
|
||||
readonly isElections: boolean;
|
||||
readonly asElections: PalletElectionsPhragmenError;
|
||||
readonly isTechnicalMembership: boolean;
|
||||
readonly asTechnicalMembership: PalletMembershipError;
|
||||
readonly isGrandpa: boolean;
|
||||
readonly asGrandpa: PalletGrandpaError;
|
||||
readonly isTreasury: boolean;
|
||||
readonly asTreasury: PalletTreasuryError;
|
||||
readonly isAssetRate: boolean;
|
||||
readonly asAssetRate: PalletAssetRateError;
|
||||
readonly isContracts: boolean;
|
||||
readonly asContracts: PalletContractsError;
|
||||
readonly isSudo: boolean;
|
||||
readonly asSudo: PalletSudoError;
|
||||
readonly isImOnline: boolean;
|
||||
readonly asImOnline: PalletImOnlineError;
|
||||
readonly isIdentity: boolean;
|
||||
readonly asIdentity: PalletIdentityError;
|
||||
readonly isSociety: boolean;
|
||||
readonly asSociety: PalletSocietyError;
|
||||
readonly isRecovery: boolean;
|
||||
readonly asRecovery: PalletRecoveryError;
|
||||
readonly isVesting: boolean;
|
||||
readonly asVesting: PalletVestingError;
|
||||
readonly isScheduler: boolean;
|
||||
readonly asScheduler: PalletSchedulerError;
|
||||
readonly isGlutton: boolean;
|
||||
readonly asGlutton: PalletGluttonError;
|
||||
readonly isPreimage: boolean;
|
||||
readonly asPreimage: PalletPreimageError;
|
||||
readonly isProxy: boolean;
|
||||
readonly asProxy: PalletProxyError;
|
||||
readonly isMultisig: boolean;
|
||||
readonly asMultisig: PalletMultisigError;
|
||||
readonly isBounties: boolean;
|
||||
readonly asBounties: PalletBountiesError;
|
||||
readonly isTips: boolean;
|
||||
readonly asTips: PalletTipsError;
|
||||
readonly isAssets: boolean;
|
||||
readonly asAssets: PalletAssetsError;
|
||||
readonly isPoolAssets: boolean;
|
||||
readonly asPoolAssets: PalletAssetsError;
|
||||
readonly isBeefy: boolean;
|
||||
readonly asBeefy: PalletBeefyError;
|
||||
readonly isLottery: boolean;
|
||||
readonly asLottery: PalletLotteryError;
|
||||
readonly isNis: boolean;
|
||||
readonly asNis: PalletNisError;
|
||||
readonly isUniques: boolean;
|
||||
readonly asUniques: PalletUniquesError;
|
||||
readonly isNfts: boolean;
|
||||
readonly asNfts: PalletNftsError;
|
||||
readonly isNftFractionalization: boolean;
|
||||
readonly asNftFractionalization: PalletNftFractionalizationError;
|
||||
readonly isSalary: boolean;
|
||||
readonly asSalary: PalletSalaryError;
|
||||
readonly isCoreFellowship: boolean;
|
||||
readonly asCoreFellowship: PalletCoreFellowshipError;
|
||||
readonly isTransactionStorage: boolean;
|
||||
readonly asTransactionStorage: PalletTransactionStorageError;
|
||||
readonly isVoterList: boolean;
|
||||
readonly asVoterList: PalletBagsListError;
|
||||
readonly isStateTrieMigration: boolean;
|
||||
readonly asStateTrieMigration: PalletStateTrieMigrationError;
|
||||
readonly isChildBounties: boolean;
|
||||
readonly asChildBounties: PalletChildBountiesError;
|
||||
readonly isReferenda: boolean;
|
||||
readonly asReferenda: PalletReferendaError;
|
||||
readonly isRemark: boolean;
|
||||
readonly asRemark: PalletRemarkError;
|
||||
readonly isConvictionVoting: boolean;
|
||||
readonly asConvictionVoting: PalletConvictionVotingError;
|
||||
readonly isWhitelist: boolean;
|
||||
readonly asWhitelist: PalletWhitelistError;
|
||||
readonly isAllianceMotion: boolean;
|
||||
readonly asAllianceMotion: PalletCollectiveError;
|
||||
readonly isAlliance: boolean;
|
||||
readonly asAlliance: PalletAllianceError;
|
||||
readonly isNominationPools: boolean;
|
||||
readonly asNominationPools: PalletNominationPoolsError;
|
||||
readonly isRankedPolls: boolean;
|
||||
readonly asRankedPolls: PalletReferendaError;
|
||||
readonly isRankedCollective: boolean;
|
||||
readonly asRankedCollective: PalletRankedCollectiveError;
|
||||
readonly isAssetConversion: boolean;
|
||||
readonly asAssetConversion: PalletAssetConversionError;
|
||||
readonly isFastUnstake: boolean;
|
||||
readonly asFastUnstake: PalletFastUnstakeError;
|
||||
readonly isMessageQueue: boolean;
|
||||
readonly asMessageQueue: PalletMessageQueueError;
|
||||
readonly isTxPause: boolean;
|
||||
readonly asTxPause: PalletTxPauseError;
|
||||
readonly isSafeMode: boolean;
|
||||
readonly asSafeMode: PalletSafeModeError;
|
||||
readonly isMultiBlockMigrations: boolean;
|
||||
readonly asMultiBlockMigrations: PalletMigrationsError;
|
||||
readonly isBroker: boolean;
|
||||
readonly asBroker: PalletBrokerError;
|
||||
readonly isTasksExample: boolean;
|
||||
readonly asTasksExample: PalletExampleTasksError;
|
||||
readonly isAssetConversionMigration: boolean;
|
||||
readonly asAssetConversionMigration: PalletAssetConversionOpsError;
|
||||
readonly type: 'System' | 'Utility' | 'Babe' | 'Indices' | 'Balances' | 'ElectionProviderMultiPhase' | 'Staking' | 'Session' | 'Democracy' | 'Council' | 'TechnicalCommittee' | 'Elections' | 'TechnicalMembership' | 'Grandpa' | 'Treasury' | 'AssetRate' | 'Contracts' | 'Sudo' | 'ImOnline' | 'Identity' | 'Society' | 'Recovery' | 'Vesting' | 'Scheduler' | 'Glutton' | 'Preimage' | 'Proxy' | 'Multisig' | 'Bounties' | 'Tips' | 'Assets' | 'PoolAssets' | 'Beefy' | 'Lottery' | 'Nis' | 'Uniques' | 'Nfts' | 'NftFractionalization' | 'Salary' | 'CoreFellowship' | 'TransactionStorage' | 'VoterList' | 'StateTrieMigration' | 'ChildBounties' | 'Referenda' | 'Remark' | 'ConvictionVoting' | 'Whitelist' | 'AllianceMotion' | 'Alliance' | 'NominationPools' | 'RankedPolls' | 'RankedCollective' | 'AssetConversion' | 'FastUnstake' | 'MessageQueue' | 'TxPause' | 'SafeMode' | 'MultiBlockMigrations' | 'Broker' | 'TasksExample' | 'AssetConversionMigration';
|
||||
}
|
||||
|
||||
} // declare module
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '13.2.1' };
|
||||
export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '14.2.3' };
|
||||
|
||||
@@ -35,7 +35,7 @@ import type { ApprovalFlag, DefunctVoter, Renouncing, SetIndex, Vote, VoteIndex,
|
||||
import type { CreatedBlock, ImportedAux } from '@polkadot/types/interfaces/engine';
|
||||
import type { BlockV0, BlockV1, BlockV2, EIP1559Transaction, EIP2930Transaction, EthAccessList, EthAccessListItem, EthAccount, EthAddress, EthBlock, EthBloom, EthCallRequest, EthFeeHistory, EthFilter, EthFilterAddress, EthFilterChanges, EthFilterTopic, EthFilterTopicEntry, EthFilterTopicInner, EthHeader, EthLog, EthReceipt, EthReceiptV0, EthReceiptV3, EthRichBlock, EthRichHeader, EthStorageProof, EthSubKind, EthSubParams, EthSubResult, EthSyncInfo, EthSyncStatus, EthTransaction, EthTransactionAction, EthTransactionCondition, EthTransactionRequest, EthTransactionSignature, EthTransactionStatus, EthWork, EthereumAccountId, EthereumAddress, EthereumLookupSource, EthereumSignature, LegacyTransaction, TransactionV0, TransactionV1, TransactionV2 } from '@polkadot/types/interfaces/eth';
|
||||
import type { EvmAccount, EvmCallInfo, EvmCallInfoV2, EvmCreateInfo, EvmCreateInfoV2, EvmLog, EvmVicinity, EvmWeightInfo, ExitError, ExitFatal, ExitReason, ExitRevert, ExitSucceed } from '@polkadot/types/interfaces/evm';
|
||||
import type { AnySignature, EcdsaSignature, Ed25519Signature, Era, Extrinsic, ExtrinsicEra, ExtrinsicPayload, ExtrinsicPayloadUnknown, ExtrinsicPayloadV4, ExtrinsicSignature, ExtrinsicSignatureV4, ExtrinsicUnknown, ExtrinsicV4, ImmortalEra, MortalEra, MultiSignature, Signature, SignerPayload, Sr25519Signature } from '@polkadot/types/interfaces/extrinsics';
|
||||
import type { AnySignature, EcdsaSignature, Ed25519Signature, Era, Extrinsic, ExtrinsicEra, ExtrinsicPayload, ExtrinsicPayloadUnknown, ExtrinsicPayloadV4, ExtrinsicPayloadV5, ExtrinsicSignature, ExtrinsicSignatureV4, ExtrinsicSignatureV5, ExtrinsicUnknown, ExtrinsicV4, ExtrinsicV5, ImmortalEra, MortalEra, MultiSignature, Signature, SignerPayload, Sr25519Signature } from '@polkadot/types/interfaces/extrinsics';
|
||||
import type { FungiblesAccessError } from '@polkadot/types/interfaces/fungibles';
|
||||
import type { AssetOptions, Owner, PermissionLatest, PermissionVersions, PermissionsV1 } from '@polkadot/types/interfaces/genericAsset';
|
||||
import type { GenesisBuildErr } from '@polkadot/types/interfaces/genesisBuilder';
|
||||
@@ -504,12 +504,15 @@ declare module '@polkadot/types/types/registry' {
|
||||
ExtrinsicPayload: ExtrinsicPayload;
|
||||
ExtrinsicPayloadUnknown: ExtrinsicPayloadUnknown;
|
||||
ExtrinsicPayloadV4: ExtrinsicPayloadV4;
|
||||
ExtrinsicPayloadV5: ExtrinsicPayloadV5;
|
||||
ExtrinsicSignature: ExtrinsicSignature;
|
||||
ExtrinsicSignatureV4: ExtrinsicSignatureV4;
|
||||
ExtrinsicSignatureV5: ExtrinsicSignatureV5;
|
||||
ExtrinsicStatus: ExtrinsicStatus;
|
||||
ExtrinsicsWeight: ExtrinsicsWeight;
|
||||
ExtrinsicUnknown: ExtrinsicUnknown;
|
||||
ExtrinsicV4: ExtrinsicV4;
|
||||
ExtrinsicV5: ExtrinsicV5;
|
||||
f32: f32;
|
||||
F32: F32;
|
||||
f64: f64;
|
||||
|
||||
@@ -5,65 +5,11 @@
|
||||
// this is required to allow for ambient/previous definitions
|
||||
import '@polkadot/types/types/registry';
|
||||
|
||||
import type { BinaryHeapEnqueuedOrder, BinaryHeapReverseQueueIndex, FrameSupportTokensMiscIdAmount, PolkadotPrimitivesV7ApprovalVotingParams, PolkadotPrimitivesV7AssignmentAppPublic, PolkadotPrimitivesV7AsyncBackingAsyncBackingParams, PolkadotPrimitivesV7BackedCandidate, PolkadotPrimitivesV7CandidateCommitments, PolkadotPrimitivesV7CandidateDescriptor, PolkadotPrimitivesV7CandidateReceipt, PolkadotPrimitivesV7CollatorAppPublic, PolkadotPrimitivesV7CollatorAppSignature, PolkadotPrimitivesV7CommittedCandidateReceipt, PolkadotPrimitivesV7DisputeState, PolkadotPrimitivesV7DisputeStatement, PolkadotPrimitivesV7DisputeStatementSet, PolkadotPrimitivesV7ExecutorParams, PolkadotPrimitivesV7ExecutorParamsExecutorParam, PolkadotPrimitivesV7IndexedVecGroupIndex, PolkadotPrimitivesV7IndexedVecValidatorIndex, PolkadotPrimitivesV7InherentData, PolkadotPrimitivesV7InvalidDisputeStatementKind, PolkadotPrimitivesV7PvfCheckStatement, PolkadotPrimitivesV7PvfExecKind, PolkadotPrimitivesV7PvfPrepKind, PolkadotPrimitivesV7ScrapedOnChainVotes, PolkadotPrimitivesV7SessionInfo, PolkadotPrimitivesV7SignedUncheckedSigned, PolkadotPrimitivesV7SlashingDisputeProof, PolkadotPrimitivesV7SlashingDisputesTimeSlot, PolkadotPrimitivesV7SlashingPendingSlashes, PolkadotPrimitivesV7SlashingSlashingOffenceKind, PolkadotPrimitivesV7UpgradeGoAhead, PolkadotPrimitivesV7UpgradeRestriction, PolkadotPrimitivesV7ValidDisputeStatementKind, PolkadotPrimitivesV7ValidatorAppPublic, PolkadotPrimitivesV7ValidatorAppSignature, PolkadotPrimitivesV7ValidityAttestation, PolkadotPrimitivesVstagingSchedulerParams, PolkadotRuntimeParachainsAssignerCoretimeAssignmentState, PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor, PolkadotRuntimeParachainsAssignerCoretimePalletError, PolkadotRuntimeParachainsAssignerCoretimeQueueDescriptor, PolkadotRuntimeParachainsAssignerCoretimeSchedule, PolkadotRuntimeParachainsAssignerCoretimeWorkState, PolkadotRuntimeParachainsAssignerOnDemandPalletCall, PolkadotRuntimeParachainsAssignerOnDemandPalletError, PolkadotRuntimeParachainsAssignerOnDemandPalletEvent, PolkadotRuntimeParachainsAssignerOnDemandTypesCoreAffinityCount, PolkadotRuntimeParachainsAssignerOnDemandTypesEnqueuedOrder, PolkadotRuntimeParachainsAssignerOnDemandTypesQueueStatusType, PolkadotRuntimeParachainsCoretimePalletCall, PolkadotRuntimeParachainsCoretimePalletError, PolkadotRuntimeParachainsCoretimePalletEvent, PolkadotRuntimeParachainsParasUpgradeStrategy, StagingKusamaRuntimeDynamicParamsInflationFalloff, StagingKusamaRuntimeDynamicParamsInflationIdealStake, StagingKusamaRuntimeDynamicParamsInflationMaxInflation, StagingKusamaRuntimeDynamicParamsInflationMinInflation, StagingKusamaRuntimeDynamicParamsInflationParameters, StagingKusamaRuntimeDynamicParamsInflationParametersKey, StagingKusamaRuntimeDynamicParamsInflationParametersValue, StagingKusamaRuntimeDynamicParamsInflationUseAuctionSlots, StagingKusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin, StagingKusamaRuntimeNposCompactSolution24, StagingKusamaRuntimeOriginCaller, StagingKusamaRuntimeProxyType, StagingKusamaRuntimeRuntime, StagingKusamaRuntimeRuntimeFreezeReason, StagingKusamaRuntimeRuntimeHoldReason, StagingKusamaRuntimeRuntimeParameters, StagingKusamaRuntimeRuntimeParametersKey, StagingKusamaRuntimeRuntimeParametersValue, StagingKusamaRuntimeSessionKeys, XcmV3OriginKind } from '@polkadot/types/lookup';
|
||||
import type { FrameSupportTokensMiscIdAmount, StagingKusamaRuntimeDynamicParamsInflationFalloff, StagingKusamaRuntimeDynamicParamsInflationIdealStake, StagingKusamaRuntimeDynamicParamsInflationMaxInflation, StagingKusamaRuntimeDynamicParamsInflationMinInflation, StagingKusamaRuntimeDynamicParamsInflationParameters, StagingKusamaRuntimeDynamicParamsInflationParametersKey, StagingKusamaRuntimeDynamicParamsInflationParametersValue, StagingKusamaRuntimeDynamicParamsInflationUseAuctionSlots, StagingKusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin, StagingKusamaRuntimeNposCompactSolution24, StagingKusamaRuntimeOriginCaller, StagingKusamaRuntimeProxyType, StagingKusamaRuntimeRuntime, StagingKusamaRuntimeRuntimeError, StagingKusamaRuntimeRuntimeFreezeReason, StagingKusamaRuntimeRuntimeHoldReason, StagingKusamaRuntimeRuntimeParameters, StagingKusamaRuntimeRuntimeParametersKey, StagingKusamaRuntimeRuntimeParametersValue, StagingKusamaRuntimeSessionKeys } from '@polkadot/types/lookup';
|
||||
|
||||
declare module '@polkadot/types/types/registry' {
|
||||
interface InterfaceTypes {
|
||||
BinaryHeapEnqueuedOrder: BinaryHeapEnqueuedOrder;
|
||||
BinaryHeapReverseQueueIndex: BinaryHeapReverseQueueIndex;
|
||||
FrameSupportTokensMiscIdAmount: FrameSupportTokensMiscIdAmount;
|
||||
PolkadotPrimitivesV7ApprovalVotingParams: PolkadotPrimitivesV7ApprovalVotingParams;
|
||||
PolkadotPrimitivesV7AssignmentAppPublic: PolkadotPrimitivesV7AssignmentAppPublic;
|
||||
PolkadotPrimitivesV7AsyncBackingAsyncBackingParams: PolkadotPrimitivesV7AsyncBackingAsyncBackingParams;
|
||||
PolkadotPrimitivesV7BackedCandidate: PolkadotPrimitivesV7BackedCandidate;
|
||||
PolkadotPrimitivesV7CandidateCommitments: PolkadotPrimitivesV7CandidateCommitments;
|
||||
PolkadotPrimitivesV7CandidateDescriptor: PolkadotPrimitivesV7CandidateDescriptor;
|
||||
PolkadotPrimitivesV7CandidateReceipt: PolkadotPrimitivesV7CandidateReceipt;
|
||||
PolkadotPrimitivesV7CollatorAppPublic: PolkadotPrimitivesV7CollatorAppPublic;
|
||||
PolkadotPrimitivesV7CollatorAppSignature: PolkadotPrimitivesV7CollatorAppSignature;
|
||||
PolkadotPrimitivesV7CommittedCandidateReceipt: PolkadotPrimitivesV7CommittedCandidateReceipt;
|
||||
PolkadotPrimitivesV7DisputeState: PolkadotPrimitivesV7DisputeState;
|
||||
PolkadotPrimitivesV7DisputeStatement: PolkadotPrimitivesV7DisputeStatement;
|
||||
PolkadotPrimitivesV7DisputeStatementSet: PolkadotPrimitivesV7DisputeStatementSet;
|
||||
PolkadotPrimitivesV7ExecutorParams: PolkadotPrimitivesV7ExecutorParams;
|
||||
PolkadotPrimitivesV7ExecutorParamsExecutorParam: PolkadotPrimitivesV7ExecutorParamsExecutorParam;
|
||||
PolkadotPrimitivesV7IndexedVecGroupIndex: PolkadotPrimitivesV7IndexedVecGroupIndex;
|
||||
PolkadotPrimitivesV7IndexedVecValidatorIndex: PolkadotPrimitivesV7IndexedVecValidatorIndex;
|
||||
PolkadotPrimitivesV7InherentData: PolkadotPrimitivesV7InherentData;
|
||||
PolkadotPrimitivesV7InvalidDisputeStatementKind: PolkadotPrimitivesV7InvalidDisputeStatementKind;
|
||||
PolkadotPrimitivesV7PvfCheckStatement: PolkadotPrimitivesV7PvfCheckStatement;
|
||||
PolkadotPrimitivesV7PvfExecKind: PolkadotPrimitivesV7PvfExecKind;
|
||||
PolkadotPrimitivesV7PvfPrepKind: PolkadotPrimitivesV7PvfPrepKind;
|
||||
PolkadotPrimitivesV7ScrapedOnChainVotes: PolkadotPrimitivesV7ScrapedOnChainVotes;
|
||||
PolkadotPrimitivesV7SessionInfo: PolkadotPrimitivesV7SessionInfo;
|
||||
PolkadotPrimitivesV7SignedUncheckedSigned: PolkadotPrimitivesV7SignedUncheckedSigned;
|
||||
PolkadotPrimitivesV7SlashingDisputeProof: PolkadotPrimitivesV7SlashingDisputeProof;
|
||||
PolkadotPrimitivesV7SlashingDisputesTimeSlot: PolkadotPrimitivesV7SlashingDisputesTimeSlot;
|
||||
PolkadotPrimitivesV7SlashingPendingSlashes: PolkadotPrimitivesV7SlashingPendingSlashes;
|
||||
PolkadotPrimitivesV7SlashingSlashingOffenceKind: PolkadotPrimitivesV7SlashingSlashingOffenceKind;
|
||||
PolkadotPrimitivesV7UpgradeGoAhead: PolkadotPrimitivesV7UpgradeGoAhead;
|
||||
PolkadotPrimitivesV7UpgradeRestriction: PolkadotPrimitivesV7UpgradeRestriction;
|
||||
PolkadotPrimitivesV7ValidDisputeStatementKind: PolkadotPrimitivesV7ValidDisputeStatementKind;
|
||||
PolkadotPrimitivesV7ValidatorAppPublic: PolkadotPrimitivesV7ValidatorAppPublic;
|
||||
PolkadotPrimitivesV7ValidatorAppSignature: PolkadotPrimitivesV7ValidatorAppSignature;
|
||||
PolkadotPrimitivesV7ValidityAttestation: PolkadotPrimitivesV7ValidityAttestation;
|
||||
PolkadotPrimitivesVstagingSchedulerParams: PolkadotPrimitivesVstagingSchedulerParams;
|
||||
PolkadotRuntimeParachainsAssignerCoretimeAssignmentState: PolkadotRuntimeParachainsAssignerCoretimeAssignmentState;
|
||||
PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor: PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor;
|
||||
PolkadotRuntimeParachainsAssignerCoretimePalletError: PolkadotRuntimeParachainsAssignerCoretimePalletError;
|
||||
PolkadotRuntimeParachainsAssignerCoretimeQueueDescriptor: PolkadotRuntimeParachainsAssignerCoretimeQueueDescriptor;
|
||||
PolkadotRuntimeParachainsAssignerCoretimeSchedule: PolkadotRuntimeParachainsAssignerCoretimeSchedule;
|
||||
PolkadotRuntimeParachainsAssignerCoretimeWorkState: PolkadotRuntimeParachainsAssignerCoretimeWorkState;
|
||||
PolkadotRuntimeParachainsAssignerOnDemandPalletCall: PolkadotRuntimeParachainsAssignerOnDemandPalletCall;
|
||||
PolkadotRuntimeParachainsAssignerOnDemandPalletError: PolkadotRuntimeParachainsAssignerOnDemandPalletError;
|
||||
PolkadotRuntimeParachainsAssignerOnDemandPalletEvent: PolkadotRuntimeParachainsAssignerOnDemandPalletEvent;
|
||||
PolkadotRuntimeParachainsAssignerOnDemandTypesCoreAffinityCount: PolkadotRuntimeParachainsAssignerOnDemandTypesCoreAffinityCount;
|
||||
PolkadotRuntimeParachainsAssignerOnDemandTypesEnqueuedOrder: PolkadotRuntimeParachainsAssignerOnDemandTypesEnqueuedOrder;
|
||||
PolkadotRuntimeParachainsAssignerOnDemandTypesQueueStatusType: PolkadotRuntimeParachainsAssignerOnDemandTypesQueueStatusType;
|
||||
PolkadotRuntimeParachainsCoretimePalletCall: PolkadotRuntimeParachainsCoretimePalletCall;
|
||||
PolkadotRuntimeParachainsCoretimePalletError: PolkadotRuntimeParachainsCoretimePalletError;
|
||||
PolkadotRuntimeParachainsCoretimePalletEvent: PolkadotRuntimeParachainsCoretimePalletEvent;
|
||||
PolkadotRuntimeParachainsParasUpgradeStrategy: PolkadotRuntimeParachainsParasUpgradeStrategy;
|
||||
StagingKusamaRuntimeDynamicParamsInflationFalloff: StagingKusamaRuntimeDynamicParamsInflationFalloff;
|
||||
StagingKusamaRuntimeDynamicParamsInflationIdealStake: StagingKusamaRuntimeDynamicParamsInflationIdealStake;
|
||||
StagingKusamaRuntimeDynamicParamsInflationMaxInflation: StagingKusamaRuntimeDynamicParamsInflationMaxInflation;
|
||||
@@ -77,12 +23,12 @@ declare module '@polkadot/types/types/registry' {
|
||||
StagingKusamaRuntimeOriginCaller: StagingKusamaRuntimeOriginCaller;
|
||||
StagingKusamaRuntimeProxyType: StagingKusamaRuntimeProxyType;
|
||||
StagingKusamaRuntimeRuntime: StagingKusamaRuntimeRuntime;
|
||||
StagingKusamaRuntimeRuntimeError: StagingKusamaRuntimeRuntimeError;
|
||||
StagingKusamaRuntimeRuntimeFreezeReason: StagingKusamaRuntimeRuntimeFreezeReason;
|
||||
StagingKusamaRuntimeRuntimeHoldReason: StagingKusamaRuntimeRuntimeHoldReason;
|
||||
StagingKusamaRuntimeRuntimeParameters: StagingKusamaRuntimeRuntimeParameters;
|
||||
StagingKusamaRuntimeRuntimeParametersKey: StagingKusamaRuntimeRuntimeParametersKey;
|
||||
StagingKusamaRuntimeRuntimeParametersValue: StagingKusamaRuntimeRuntimeParametersValue;
|
||||
StagingKusamaRuntimeSessionKeys: StagingKusamaRuntimeSessionKeys;
|
||||
XcmV3OriginKind: XcmV3OriginKind;
|
||||
} // InterfaceTypes
|
||||
} // declare module
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -18,17 +18,17 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "13.2.1",
|
||||
"version": "14.2.3",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/util": "^13.1.1",
|
||||
"@polkadot/x-bigint": "^13.1.1",
|
||||
"tslib": "^2.7.0"
|
||||
"@polkadot/util": "^13.2.2",
|
||||
"@polkadot/x-bigint": "^13.2.2",
|
||||
"tslib": "^2.8.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/types": "13.2.1",
|
||||
"@polkadot/types-augment": "13.2.1",
|
||||
"@polkadot/types-support": "13.2.1",
|
||||
"@polkadot/util-crypto": "^13.1.1"
|
||||
"@polkadot/types": "14.2.3",
|
||||
"@polkadot/types-augment": "14.2.3",
|
||||
"@polkadot/types-support": "14.2.3",
|
||||
"@polkadot/util-crypto": "^13.2.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/types-codec', path: 'auto', type: 'auto', version: '13.2.1' };
|
||||
export const packageInfo = { name: '@polkadot/types-codec', path: 'auto', type: 'auto', version: '14.2.3' };
|
||||
|
||||
@@ -71,6 +71,7 @@ export interface Registry {
|
||||
getClassName (clazz: CodecClass): string | undefined;
|
||||
getOrThrow <T extends Codec = Codec, K extends string = string> (name: K, msg?: string): CodecClass<T>;
|
||||
getOrUnknown <T extends Codec = Codec, K extends string = string> (name: K): CodecClass<T>;
|
||||
getTransactionExtensionVersion (): number;
|
||||
getSignedExtensionExtra (): Record<string, string>;
|
||||
getSignedExtensionTypes (): Record<string, string>;
|
||||
|
||||
|
||||
@@ -18,14 +18,14 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "13.2.1",
|
||||
"version": "14.2.3",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/types-codec": "13.2.1",
|
||||
"@polkadot/util": "^13.1.1",
|
||||
"tslib": "^2.7.0"
|
||||
"@polkadot/types-codec": "14.2.3",
|
||||
"@polkadot/util": "^13.2.2",
|
||||
"tslib": "^2.8.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/types": "13.2.1"
|
||||
"@polkadot/types": "14.2.3"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/types-create', path: 'auto', type: 'auto', version: '13.2.1' };
|
||||
export const packageInfo = { name: '@polkadot/types-create', path: 'auto', type: 'auto', version: '14.2.3' };
|
||||
|
||||
@@ -18,17 +18,17 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "13.2.1",
|
||||
"version": "14.2.3",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/networks": "^13.1.1",
|
||||
"@polkadot/types": "13.2.1",
|
||||
"@polkadot/types-codec": "13.2.1",
|
||||
"@polkadot/types-create": "13.2.1",
|
||||
"@polkadot/util": "^13.1.1",
|
||||
"tslib": "^2.7.0"
|
||||
"@polkadot/networks": "^13.2.2",
|
||||
"@polkadot/types": "14.2.3",
|
||||
"@polkadot/types-codec": "14.2.3",
|
||||
"@polkadot/types-create": "14.2.3",
|
||||
"@polkadot/util": "^13.2.2",
|
||||
"tslib": "^2.8.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api": "13.2.1"
|
||||
"@polkadot/api": "14.2.3"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/types-known', path: 'auto', type: 'auto', version: '13.2.1' };
|
||||
export const packageInfo = { name: '@polkadot/types-known', path: 'auto', type: 'auto', version: '14.2.3' };
|
||||
|
||||
@@ -18,10 +18,10 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "13.2.1",
|
||||
"version": "14.2.3",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/util": "^13.1.1",
|
||||
"tslib": "^2.7.0"
|
||||
"@polkadot/util": "^13.2.2",
|
||||
"tslib": "^2.8.0"
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,134 @@
|
||||
// Copyright 2017-2024 @polkadot/types-support authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/* eslint-disable */
|
||||
|
||||
// cargo run --release -- purge-chain -y --chain kusama-dev && cargo run --release -- --chain kusama-dev --alice --force-authoring
|
||||
|
||||
export default {
|
||||
"methods": [
|
||||
"account_nextIndex",
|
||||
"archive_unstable_body",
|
||||
"archive_unstable_call",
|
||||
"archive_unstable_finalizedHeight",
|
||||
"archive_unstable_genesisHash",
|
||||
"archive_unstable_hashByHeight",
|
||||
"archive_unstable_header",
|
||||
"archive_unstable_storage",
|
||||
"author_hasKey",
|
||||
"author_hasSessionKeys",
|
||||
"author_insertKey",
|
||||
"author_pendingExtrinsics",
|
||||
"author_removeExtrinsic",
|
||||
"author_rotateKeys",
|
||||
"author_submitAndWatchExtrinsic",
|
||||
"author_submitExtrinsic",
|
||||
"author_unwatchExtrinsic",
|
||||
"babe_epochAuthorship",
|
||||
"beefy_getFinalizedHead",
|
||||
"beefy_subscribeJustifications",
|
||||
"beefy_unsubscribeJustifications",
|
||||
"chainHead_v1_body",
|
||||
"chainHead_v1_call",
|
||||
"chainHead_v1_continue",
|
||||
"chainHead_v1_follow",
|
||||
"chainHead_v1_header",
|
||||
"chainHead_v1_stopOperation",
|
||||
"chainHead_v1_storage",
|
||||
"chainHead_v1_unfollow",
|
||||
"chainHead_v1_unpin",
|
||||
"chainSpec_v1_chainName",
|
||||
"chainSpec_v1_genesisHash",
|
||||
"chainSpec_v1_properties",
|
||||
"chain_getBlock",
|
||||
"chain_getBlockHash",
|
||||
"chain_getFinalisedHead",
|
||||
"chain_getFinalizedHead",
|
||||
"chain_getHead",
|
||||
"chain_getHeader",
|
||||
"chain_getRuntimeVersion",
|
||||
"chain_subscribeAllHeads",
|
||||
"chain_subscribeFinalisedHeads",
|
||||
"chain_subscribeFinalizedHeads",
|
||||
"chain_subscribeNewHead",
|
||||
"chain_subscribeNewHeads",
|
||||
"chain_subscribeRuntimeVersion",
|
||||
"chain_unsubscribeAllHeads",
|
||||
"chain_unsubscribeFinalisedHeads",
|
||||
"chain_unsubscribeFinalizedHeads",
|
||||
"chain_unsubscribeNewHead",
|
||||
"chain_unsubscribeNewHeads",
|
||||
"chain_unsubscribeRuntimeVersion",
|
||||
"childstate_getKeys",
|
||||
"childstate_getKeysPaged",
|
||||
"childstate_getKeysPagedAt",
|
||||
"childstate_getStorage",
|
||||
"childstate_getStorageEntries",
|
||||
"childstate_getStorageHash",
|
||||
"childstate_getStorageSize",
|
||||
"grandpa_proveFinality",
|
||||
"grandpa_roundState",
|
||||
"grandpa_subscribeJustifications",
|
||||
"grandpa_unsubscribeJustifications",
|
||||
"mmr_generateProof",
|
||||
"mmr_root",
|
||||
"mmr_verifyProof",
|
||||
"mmr_verifyProofStateless",
|
||||
"offchain_localStorageGet",
|
||||
"offchain_localStorageSet",
|
||||
"payment_queryFeeDetails",
|
||||
"payment_queryInfo",
|
||||
"rpc_methods",
|
||||
"state_call",
|
||||
"state_callAt",
|
||||
"state_getChildReadProof",
|
||||
"state_getKeys",
|
||||
"state_getKeysPaged",
|
||||
"state_getKeysPagedAt",
|
||||
"state_getMetadata",
|
||||
"state_getPairs",
|
||||
"state_getReadProof",
|
||||
"state_getRuntimeVersion",
|
||||
"state_getStorage",
|
||||
"state_getStorageAt",
|
||||
"state_getStorageHash",
|
||||
"state_getStorageHashAt",
|
||||
"state_getStorageSize",
|
||||
"state_getStorageSizeAt",
|
||||
"state_queryStorage",
|
||||
"state_queryStorageAt",
|
||||
"state_subscribeRuntimeVersion",
|
||||
"state_subscribeStorage",
|
||||
"state_traceBlock",
|
||||
"state_trieMigrationStatus",
|
||||
"state_unsubscribeRuntimeVersion",
|
||||
"state_unsubscribeStorage",
|
||||
"subscribe_newHead",
|
||||
"sync_state_genSyncSpec",
|
||||
"system_accountNextIndex",
|
||||
"system_addLogFilter",
|
||||
"system_addReservedPeer",
|
||||
"system_chain",
|
||||
"system_chainType",
|
||||
"system_dryRun",
|
||||
"system_dryRunAt",
|
||||
"system_health",
|
||||
"system_localListenAddresses",
|
||||
"system_localPeerId",
|
||||
"system_name",
|
||||
"system_nodeRoles",
|
||||
"system_peers",
|
||||
"system_properties",
|
||||
"system_removeReservedPeer",
|
||||
"system_reservedPeers",
|
||||
"system_resetLogFilter",
|
||||
"system_syncState",
|
||||
"system_unstable_networkState",
|
||||
"system_version",
|
||||
"transactionWatch_v1_submitAndWatch",
|
||||
"transactionWatch_v1_unwatch",
|
||||
"transaction_v1_broadcast",
|
||||
"transaction_v1_stop",
|
||||
"unsubscribe_newHead"
|
||||
]
|
||||
};
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,110 @@
|
||||
// Copyright 2017-2024 @polkadot/types-support authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/* eslint-disable */
|
||||
|
||||
// cargo run --release -- purge-chain -y --chain kusama-dev && cargo run --release -- --chain kusama-dev --alice --force-authoring
|
||||
|
||||
export default {
|
||||
"specName": "kusama",
|
||||
"implName": "parity-kusama",
|
||||
"authoringVersion": 2,
|
||||
"specVersion": 1003000,
|
||||
"implVersion": 0,
|
||||
"apis": [
|
||||
[
|
||||
"0xc51ff1fa3f5d0cca",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0xdf6acb689907609b",
|
||||
5
|
||||
],
|
||||
[
|
||||
"0x37e397fc7c91f5e4",
|
||||
2
|
||||
],
|
||||
[
|
||||
"0x40fe3ad401f8959a",
|
||||
6
|
||||
],
|
||||
[
|
||||
"0xd2bc9897eed08f15",
|
||||
3
|
||||
],
|
||||
[
|
||||
"0xf78b278be53f454c",
|
||||
2
|
||||
],
|
||||
[
|
||||
"0xaf2c0297a23e6d3d",
|
||||
11
|
||||
],
|
||||
[
|
||||
"0x49eaaf1b548a0cb0",
|
||||
3
|
||||
],
|
||||
[
|
||||
"0x91d5df18b0d2cf58",
|
||||
2
|
||||
],
|
||||
[
|
||||
"0x2a5e924655399e60",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0xed99c5acb25eedf5",
|
||||
3
|
||||
],
|
||||
[
|
||||
"0xcbca25e39f142387",
|
||||
2
|
||||
],
|
||||
[
|
||||
"0x687ad44ad37f03c2",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0xab3c0572291feb8b",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0xbc9d89904f5b923f",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0x37c8bb1350a9a2a8",
|
||||
4
|
||||
],
|
||||
[
|
||||
"0xf3ff14d5ab527059",
|
||||
3
|
||||
],
|
||||
[
|
||||
"0x6ff52ee858e6c5bd",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0x91b1c8b16328eb92",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0x9ffb505aa738d69c",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0x17a6bc0d0062aeb3",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0x18ef58a3b67ba770",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0xfbc577b9d747efd6",
|
||||
1
|
||||
]
|
||||
],
|
||||
"transactionVersion": 26,
|
||||
"stateVersion": 1
|
||||
};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,134 @@
|
||||
// Copyright 2017-2024 @polkadot/types-support authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/* eslint-disable */
|
||||
|
||||
// cargo run --release -- purge-chain -y --dev && cargo run --release -- --dev
|
||||
|
||||
export default {
|
||||
"methods": [
|
||||
"account_nextIndex",
|
||||
"archive_unstable_body",
|
||||
"archive_unstable_call",
|
||||
"archive_unstable_finalizedHeight",
|
||||
"archive_unstable_genesisHash",
|
||||
"archive_unstable_hashByHeight",
|
||||
"archive_unstable_header",
|
||||
"archive_unstable_storage",
|
||||
"author_hasKey",
|
||||
"author_hasSessionKeys",
|
||||
"author_insertKey",
|
||||
"author_pendingExtrinsics",
|
||||
"author_removeExtrinsic",
|
||||
"author_rotateKeys",
|
||||
"author_submitAndWatchExtrinsic",
|
||||
"author_submitExtrinsic",
|
||||
"author_unwatchExtrinsic",
|
||||
"babe_epochAuthorship",
|
||||
"beefy_getFinalizedHead",
|
||||
"beefy_subscribeJustifications",
|
||||
"beefy_unsubscribeJustifications",
|
||||
"chainHead_v1_body",
|
||||
"chainHead_v1_call",
|
||||
"chainHead_v1_continue",
|
||||
"chainHead_v1_follow",
|
||||
"chainHead_v1_header",
|
||||
"chainHead_v1_stopOperation",
|
||||
"chainHead_v1_storage",
|
||||
"chainHead_v1_unfollow",
|
||||
"chainHead_v1_unpin",
|
||||
"chainSpec_v1_chainName",
|
||||
"chainSpec_v1_genesisHash",
|
||||
"chainSpec_v1_properties",
|
||||
"chain_getBlock",
|
||||
"chain_getBlockHash",
|
||||
"chain_getFinalisedHead",
|
||||
"chain_getFinalizedHead",
|
||||
"chain_getHead",
|
||||
"chain_getHeader",
|
||||
"chain_getRuntimeVersion",
|
||||
"chain_subscribeAllHeads",
|
||||
"chain_subscribeFinalisedHeads",
|
||||
"chain_subscribeFinalizedHeads",
|
||||
"chain_subscribeNewHead",
|
||||
"chain_subscribeNewHeads",
|
||||
"chain_subscribeRuntimeVersion",
|
||||
"chain_unsubscribeAllHeads",
|
||||
"chain_unsubscribeFinalisedHeads",
|
||||
"chain_unsubscribeFinalizedHeads",
|
||||
"chain_unsubscribeNewHead",
|
||||
"chain_unsubscribeNewHeads",
|
||||
"chain_unsubscribeRuntimeVersion",
|
||||
"childstate_getKeys",
|
||||
"childstate_getKeysPaged",
|
||||
"childstate_getKeysPagedAt",
|
||||
"childstate_getStorage",
|
||||
"childstate_getStorageEntries",
|
||||
"childstate_getStorageHash",
|
||||
"childstate_getStorageSize",
|
||||
"grandpa_proveFinality",
|
||||
"grandpa_roundState",
|
||||
"grandpa_subscribeJustifications",
|
||||
"grandpa_unsubscribeJustifications",
|
||||
"mmr_generateProof",
|
||||
"mmr_root",
|
||||
"mmr_verifyProof",
|
||||
"mmr_verifyProofStateless",
|
||||
"offchain_localStorageGet",
|
||||
"offchain_localStorageSet",
|
||||
"payment_queryFeeDetails",
|
||||
"payment_queryInfo",
|
||||
"rpc_methods",
|
||||
"state_call",
|
||||
"state_callAt",
|
||||
"state_getChildReadProof",
|
||||
"state_getKeys",
|
||||
"state_getKeysPaged",
|
||||
"state_getKeysPagedAt",
|
||||
"state_getMetadata",
|
||||
"state_getPairs",
|
||||
"state_getReadProof",
|
||||
"state_getRuntimeVersion",
|
||||
"state_getStorage",
|
||||
"state_getStorageAt",
|
||||
"state_getStorageHash",
|
||||
"state_getStorageHashAt",
|
||||
"state_getStorageSize",
|
||||
"state_getStorageSizeAt",
|
||||
"state_queryStorage",
|
||||
"state_queryStorageAt",
|
||||
"state_subscribeRuntimeVersion",
|
||||
"state_subscribeStorage",
|
||||
"state_traceBlock",
|
||||
"state_trieMigrationStatus",
|
||||
"state_unsubscribeRuntimeVersion",
|
||||
"state_unsubscribeStorage",
|
||||
"subscribe_newHead",
|
||||
"sync_state_genSyncSpec",
|
||||
"system_accountNextIndex",
|
||||
"system_addLogFilter",
|
||||
"system_addReservedPeer",
|
||||
"system_chain",
|
||||
"system_chainType",
|
||||
"system_dryRun",
|
||||
"system_dryRunAt",
|
||||
"system_health",
|
||||
"system_localListenAddresses",
|
||||
"system_localPeerId",
|
||||
"system_name",
|
||||
"system_nodeRoles",
|
||||
"system_peers",
|
||||
"system_properties",
|
||||
"system_removeReservedPeer",
|
||||
"system_reservedPeers",
|
||||
"system_resetLogFilter",
|
||||
"system_syncState",
|
||||
"system_unstable_networkState",
|
||||
"system_version",
|
||||
"transactionWatch_v1_submitAndWatch",
|
||||
"transactionWatch_v1_unwatch",
|
||||
"transaction_v1_broadcast",
|
||||
"transaction_v1_stop",
|
||||
"unsubscribe_newHead"
|
||||
]
|
||||
};
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,110 @@
|
||||
// Copyright 2017-2024 @polkadot/types-support authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/* eslint-disable */
|
||||
|
||||
// cargo run --release -- purge-chain -y --dev && cargo run --release -- --dev
|
||||
|
||||
export default {
|
||||
"specName": "polkadot",
|
||||
"implName": "parity-polkadot",
|
||||
"authoringVersion": 0,
|
||||
"specVersion": 1003003,
|
||||
"implVersion": 0,
|
||||
"apis": [
|
||||
[
|
||||
"0xc51ff1fa3f5d0cca",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0xdf6acb689907609b",
|
||||
5
|
||||
],
|
||||
[
|
||||
"0x37e397fc7c91f5e4",
|
||||
2
|
||||
],
|
||||
[
|
||||
"0x40fe3ad401f8959a",
|
||||
6
|
||||
],
|
||||
[
|
||||
"0x17a6bc0d0062aeb3",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0x18ef58a3b67ba770",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0xd2bc9897eed08f15",
|
||||
3
|
||||
],
|
||||
[
|
||||
"0xf78b278be53f454c",
|
||||
2
|
||||
],
|
||||
[
|
||||
"0xaf2c0297a23e6d3d",
|
||||
11
|
||||
],
|
||||
[
|
||||
"0x49eaaf1b548a0cb0",
|
||||
3
|
||||
],
|
||||
[
|
||||
"0x91d5df18b0d2cf58",
|
||||
2
|
||||
],
|
||||
[
|
||||
"0x2a5e924655399e60",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0xed99c5acb25eedf5",
|
||||
3
|
||||
],
|
||||
[
|
||||
"0xcbca25e39f142387",
|
||||
2
|
||||
],
|
||||
[
|
||||
"0x687ad44ad37f03c2",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0xab3c0572291feb8b",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0xbc9d89904f5b923f",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0x37c8bb1350a9a2a8",
|
||||
4
|
||||
],
|
||||
[
|
||||
"0xf3ff14d5ab527059",
|
||||
3
|
||||
],
|
||||
[
|
||||
"0x6ff52ee858e6c5bd",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0x91b1c8b16328eb92",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0x9ffb505aa738d69c",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0xfbc577b9d747efd6",
|
||||
1
|
||||
]
|
||||
],
|
||||
"transactionVersion": 26,
|
||||
"stateVersion": 1
|
||||
};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,134 @@
|
||||
// Copyright 2017-2024 @polkadot/types-support authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/* eslint-disable */
|
||||
|
||||
// cargo run --release -- purge-chain -y --dev && cargo run --release -- --dev
|
||||
|
||||
export default {
|
||||
"methods": [
|
||||
"account_nextIndex",
|
||||
"author_hasKey",
|
||||
"author_hasSessionKeys",
|
||||
"author_insertKey",
|
||||
"author_pendingExtrinsics",
|
||||
"author_removeExtrinsic",
|
||||
"author_rotateKeys",
|
||||
"author_submitAndWatchExtrinsic",
|
||||
"author_submitExtrinsic",
|
||||
"author_unwatchExtrinsic",
|
||||
"babe_epochAuthorship",
|
||||
"beefy_getFinalizedHead",
|
||||
"beefy_subscribeJustifications",
|
||||
"beefy_unsubscribeJustifications",
|
||||
"chainHead_v1_body",
|
||||
"chainHead_v1_call",
|
||||
"chainHead_v1_continue",
|
||||
"chainHead_v1_follow",
|
||||
"chainHead_v1_header",
|
||||
"chainHead_v1_stopOperation",
|
||||
"chainHead_v1_storage",
|
||||
"chainHead_v1_unfollow",
|
||||
"chainHead_v1_unpin",
|
||||
"chainSpec_v1_chainName",
|
||||
"chainSpec_v1_genesisHash",
|
||||
"chainSpec_v1_properties",
|
||||
"chain_getBlock",
|
||||
"chain_getBlockHash",
|
||||
"chain_getFinalisedHead",
|
||||
"chain_getFinalizedHead",
|
||||
"chain_getHead",
|
||||
"chain_getHeader",
|
||||
"chain_getRuntimeVersion",
|
||||
"chain_subscribeAllHeads",
|
||||
"chain_subscribeFinalisedHeads",
|
||||
"chain_subscribeFinalizedHeads",
|
||||
"chain_subscribeNewHead",
|
||||
"chain_subscribeNewHeads",
|
||||
"chain_subscribeRuntimeVersion",
|
||||
"chain_unsubscribeAllHeads",
|
||||
"chain_unsubscribeFinalisedHeads",
|
||||
"chain_unsubscribeFinalizedHeads",
|
||||
"chain_unsubscribeNewHead",
|
||||
"chain_unsubscribeNewHeads",
|
||||
"chain_unsubscribeRuntimeVersion",
|
||||
"childstate_getKeys",
|
||||
"childstate_getKeysPaged",
|
||||
"childstate_getKeysPagedAt",
|
||||
"childstate_getStorage",
|
||||
"childstate_getStorageEntries",
|
||||
"childstate_getStorageHash",
|
||||
"childstate_getStorageSize",
|
||||
"dev_getBlockStats",
|
||||
"grandpa_proveFinality",
|
||||
"grandpa_roundState",
|
||||
"grandpa_subscribeJustifications",
|
||||
"grandpa_unsubscribeJustifications",
|
||||
"mmr_generateProof",
|
||||
"mmr_root",
|
||||
"mmr_verifyProof",
|
||||
"mmr_verifyProofStateless",
|
||||
"offchain_localStorageGet",
|
||||
"offchain_localStorageSet",
|
||||
"payment_queryFeeDetails",
|
||||
"payment_queryInfo",
|
||||
"rpc_methods",
|
||||
"state_call",
|
||||
"state_callAt",
|
||||
"state_getChildReadProof",
|
||||
"state_getKeys",
|
||||
"state_getKeysPaged",
|
||||
"state_getKeysPagedAt",
|
||||
"state_getMetadata",
|
||||
"state_getPairs",
|
||||
"state_getReadProof",
|
||||
"state_getRuntimeVersion",
|
||||
"state_getStorage",
|
||||
"state_getStorageAt",
|
||||
"state_getStorageHash",
|
||||
"state_getStorageHashAt",
|
||||
"state_getStorageSize",
|
||||
"state_getStorageSizeAt",
|
||||
"state_queryStorage",
|
||||
"state_queryStorageAt",
|
||||
"state_subscribeRuntimeVersion",
|
||||
"state_subscribeStorage",
|
||||
"state_traceBlock",
|
||||
"state_trieMigrationStatus",
|
||||
"state_unsubscribeRuntimeVersion",
|
||||
"state_unsubscribeStorage",
|
||||
"statement_broadcasts",
|
||||
"statement_dump",
|
||||
"statement_posted",
|
||||
"statement_postedClear",
|
||||
"statement_remove",
|
||||
"statement_submit",
|
||||
"subscribe_newHead",
|
||||
"sync_state_genSyncSpec",
|
||||
"system_accountNextIndex",
|
||||
"system_addLogFilter",
|
||||
"system_addReservedPeer",
|
||||
"system_chain",
|
||||
"system_chainType",
|
||||
"system_dryRun",
|
||||
"system_dryRunAt",
|
||||
"system_health",
|
||||
"system_localListenAddresses",
|
||||
"system_localPeerId",
|
||||
"system_name",
|
||||
"system_nodeRoles",
|
||||
"system_peers",
|
||||
"system_properties",
|
||||
"system_removeReservedPeer",
|
||||
"system_reservedPeers",
|
||||
"system_resetLogFilter",
|
||||
"system_syncState",
|
||||
"system_unstable_networkState",
|
||||
"system_version",
|
||||
"transactionWatch_v1_submitAndWatch",
|
||||
"transactionWatch_v1_unwatch",
|
||||
"transaction_v1_broadcast",
|
||||
"transaction_v1_stop",
|
||||
"unsubscribe_newHead"
|
||||
]
|
||||
};
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,110 @@
|
||||
// Copyright 2017-2024 @polkadot/types-support authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/* eslint-disable */
|
||||
|
||||
// cargo run --release -- purge-chain -y --dev && cargo run --release -- --dev
|
||||
|
||||
export default {
|
||||
"specName": "node",
|
||||
"implName": "substrate-node",
|
||||
"authoringVersion": 10,
|
||||
"specVersion": 268,
|
||||
"implVersion": 0,
|
||||
"apis": [
|
||||
[
|
||||
"0xdf6acb689907609b",
|
||||
5
|
||||
],
|
||||
[
|
||||
"0x37e397fc7c91f5e4",
|
||||
2
|
||||
],
|
||||
[
|
||||
"0x40fe3ad401f8959a",
|
||||
6
|
||||
],
|
||||
[
|
||||
"0xd2bc9897eed08f15",
|
||||
3
|
||||
],
|
||||
[
|
||||
"0xbe9fb0c91a8046cf",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0xf78b278be53f454c",
|
||||
2
|
||||
],
|
||||
[
|
||||
"0xed99c5acb25eedf5",
|
||||
3
|
||||
],
|
||||
[
|
||||
"0x17a6bc0d0062aeb3",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0x18ef58a3b67ba770",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0xcbca25e39f142387",
|
||||
2
|
||||
],
|
||||
[
|
||||
"0x687ad44ad37f03c2",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0xbc9d89904f5b923f",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0x8453b50b22293977",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0x68b66ba122c93fa7",
|
||||
2
|
||||
],
|
||||
[
|
||||
"0x37c8bb1350a9a2a8",
|
||||
4
|
||||
],
|
||||
[
|
||||
"0x8a8047a53a8277ec",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0xf3ff14d5ab527059",
|
||||
3
|
||||
],
|
||||
[
|
||||
"0x899a250cbe84f250",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0x49eaaf1b548a0cb0",
|
||||
4
|
||||
],
|
||||
[
|
||||
"0x91d5df18b0d2cf58",
|
||||
2
|
||||
],
|
||||
[
|
||||
"0x6fd7c327202e4a8d",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0xab3c0572291feb8b",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0xfbc577b9d747efd6",
|
||||
1
|
||||
]
|
||||
],
|
||||
"transactionVersion": 2,
|
||||
"stateVersion": 1
|
||||
};
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/types-support', path: 'auto', type: 'auto', version: '13.2.1' };
|
||||
export const packageInfo = { name: '@polkadot/types-support', path: 'auto', type: 'auto', version: '14.2.3' };
|
||||
|
||||
+10
-10
@@ -18,20 +18,20 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "13.2.1",
|
||||
"version": "14.2.3",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/keyring": "^13.1.1",
|
||||
"@polkadot/types-augment": "13.2.1",
|
||||
"@polkadot/types-codec": "13.2.1",
|
||||
"@polkadot/types-create": "13.2.1",
|
||||
"@polkadot/util": "^13.1.1",
|
||||
"@polkadot/util-crypto": "^13.1.1",
|
||||
"@polkadot/keyring": "^13.2.2",
|
||||
"@polkadot/types-augment": "14.2.3",
|
||||
"@polkadot/types-codec": "14.2.3",
|
||||
"@polkadot/types-create": "14.2.3",
|
||||
"@polkadot/util": "^13.2.2",
|
||||
"@polkadot/util-crypto": "^13.2.2",
|
||||
"rxjs": "^7.8.1",
|
||||
"tslib": "^2.7.0"
|
||||
"tslib": "^2.8.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^13.1.1",
|
||||
"@polkadot/types-support": "13.2.1"
|
||||
"@polkadot/keyring": "^13.2.2",
|
||||
"@polkadot/types-support": "14.2.3"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -441,6 +441,11 @@ export class TypeRegistry implements Registry {
|
||||
return this.get<T, K>(name, true) as unknown as CodecClass<R>;
|
||||
}
|
||||
|
||||
// Only used in extrinsic version 5
|
||||
public getTransactionExtensionVersion (): number {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public getSignedExtensionExtra (): Record<string, string> {
|
||||
return expandExtensionTypes(this.#signedExtensions, 'payload', this.#userExtensions);
|
||||
}
|
||||
|
||||
@@ -48,4 +48,81 @@ describe('Extrinsic', (): void => {
|
||||
expect(extrinsic.toPrimitive()).toEqual({ method: { args: { dest: { id: '5DiuK2zR4asj2CEh77SKtUgTswTLkD8eiAKrByg5G3wL5w9b' }, value: 104560923320000 }, callIndex: '0x0600' }, signature: { era: { mortalEra: [1024, 186] }, nonce: 68, signature: { ed25519: '0xd99ffe3e610ad234e1414bda5831395a6df9098bf80b01561ce89a5065ae89d5c10e1619c6c99131b0bea4fb73ef04d07c07770e2ae9df5c325c331769ccb300' }, signer: { id: '5Hn8KKEp8qruCGWaN9MEsjTs4FXB4wv9xn7g1RWkNeKKNXCr' }, tip: 30000000000 } });
|
||||
});
|
||||
});
|
||||
|
||||
describe('V5', () => {
|
||||
// Ensure it does not have its registry modified by the fallback extensions.
|
||||
const registry = new TypeRegistry();
|
||||
const metadata = new Metadata(registry, rpcMetadata);
|
||||
|
||||
registry.setMetadata(metadata);
|
||||
|
||||
describe('SignedExtrinsic', () => {
|
||||
it('Should work when the version and preamble is passed in', () => {
|
||||
const extrinsic = new Extrinsic(
|
||||
registry,
|
||||
'0x51028500d43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d011e0b7d9438899333c50121f8e10144952d51c3bb8d0ea11dd1f24940d8ff615ad351d95ed9f41f078748ed7cf182864a20b38eebfaef6629433365eb90c0148c007502000000000603008eaf04151687736326c9fea17e25fc5287613693c912909cb226aa4794f26a480b00a0724e1809',
|
||||
{ preamble: 'signed', version: 5 }
|
||||
);
|
||||
|
||||
expect(extrinsic.signer.toString()).toEqual('5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY');
|
||||
expect(extrinsic.era.toHuman()).toEqual({ MortalEra: { period: '64', phase: '39' } });
|
||||
expect(extrinsic.nonce.toNumber()).toEqual(0);
|
||||
expect(extrinsic.tip.toHuman()).toEqual('0');
|
||||
expect(extrinsic.callIndex).toEqual(new Uint8Array([6, 3]));
|
||||
expect(extrinsic.args[0].toHex()).toEqual('0x008eaf04151687736326c9fea17e25fc5287613693c912909cb226aa4794f26a48');
|
||||
expect(extrinsic.args[1].toHuman()).toEqual('10,000,000,000,000');
|
||||
});
|
||||
|
||||
it('Should work when the version and preamble is not passed in', () => {
|
||||
const extrinsic = new Extrinsic(
|
||||
registry,
|
||||
'0x51028500d43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d011e0b7d9438899333c50121f8e10144952d51c3bb8d0ea11dd1f24940d8ff615ad351d95ed9f41f078748ed7cf182864a20b38eebfaef6629433365eb90c0148c007502000000000603008eaf04151687736326c9fea17e25fc5287613693c912909cb226aa4794f26a480b00a0724e1809'
|
||||
);
|
||||
|
||||
expect(extrinsic.version).toEqual(133);
|
||||
expect(extrinsic.signer.toString()).toEqual('5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY');
|
||||
expect(extrinsic.era.toHuman()).toEqual({ MortalEra: { period: '64', phase: '39' } });
|
||||
expect(extrinsic.nonce.toNumber()).toEqual(0);
|
||||
expect(extrinsic.tip.toHuman()).toEqual('0');
|
||||
expect(extrinsic.callIndex).toEqual(new Uint8Array([6, 3]));
|
||||
expect(extrinsic.args[0].toHex()).toEqual('0x008eaf04151687736326c9fea17e25fc5287613693c912909cb226aa4794f26a48');
|
||||
expect(extrinsic.args[1].toHuman()).toEqual('10,000,000,000,000');
|
||||
});
|
||||
});
|
||||
|
||||
describe('GeneralExtrinsic', () => {
|
||||
it('Should work when the version and preamble is passed in', () => {
|
||||
const extrinsic = new Extrinsic(
|
||||
registry,
|
||||
'0xc44500650000000000060000d43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d0700e40b5402',
|
||||
{ preamble: 'general', version: 5 }
|
||||
);
|
||||
|
||||
expect(extrinsic.version).toEqual(69);
|
||||
// expect(extrinsic.transactionExtensionVersion.toNumber()).toEqual(0);
|
||||
expect(extrinsic.method.toHuman()).toEqual({ args: { dest: { Id: '5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY' }, value: '10,000,000,000' }, method: 'transferAllowDeath', section: 'balances' });
|
||||
expect(extrinsic.era.toHuman()).toEqual({ MortalEra: { period: '64', phase: '6' } });
|
||||
expect(extrinsic.tip.toNumber()).toEqual(0);
|
||||
expect(extrinsic.mode.toNumber()).toEqual(0);
|
||||
expect(extrinsic.assetId.toHuman()).toEqual(null);
|
||||
expect(extrinsic.nonce.toNumber()).toEqual(0);
|
||||
});
|
||||
|
||||
it('Should work when there is no version and preamble is passed in', () => {
|
||||
const extrinsic = new Extrinsic(
|
||||
registry,
|
||||
'0xc44500650000000000060000d43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d0700e40b5402'
|
||||
);
|
||||
|
||||
expect(extrinsic.version).toEqual(69);
|
||||
// expect(extrinsic.transactionExtensionVersion.toNumber()).toEqual(0);
|
||||
expect(extrinsic.method.toHuman()).toEqual({ args: { dest: { Id: '5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY' }, value: '10,000,000,000' }, method: 'transferAllowDeath', section: 'balances' });
|
||||
expect(extrinsic.era.toHuman()).toEqual({ MortalEra: { period: '64', phase: '6' } });
|
||||
expect(extrinsic.tip.toNumber()).toEqual(0);
|
||||
expect(extrinsic.mode.toNumber()).toEqual(0);
|
||||
expect(extrinsic.assetId.toHuman()).toEqual(null);
|
||||
expect(extrinsic.nonce.toNumber()).toEqual(0);
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -3,48 +3,71 @@
|
||||
|
||||
import type { AnyJson, AnyTuple, AnyU8a, ArgsDef, IMethod, Inspect, IOption } from '@polkadot/types-codec/types';
|
||||
import type { HexString } from '@polkadot/util/types';
|
||||
import type { EcdsaSignature, Ed25519Signature, ExtrinsicUnknown, ExtrinsicV4, Sr25519Signature } from '../interfaces/extrinsics/index.js';
|
||||
import type { GeneralExtrinsic } from '../index.types.js';
|
||||
import type { EcdsaSignature, Ed25519Signature, ExtrinsicSignatureV5, ExtrinsicUnknown, ExtrinsicV5, Sr25519Signature } from '../interfaces/extrinsics/index.js';
|
||||
import type { FunctionMetadataLatest } from '../interfaces/metadata/index.js';
|
||||
import type { Address, Call, CodecHash, Hash } from '../interfaces/runtime/index.js';
|
||||
import type { MultiLocation } from '../interfaces/types.js';
|
||||
import type { CallBase, ExtrinsicPayloadValue, ICompact, IExtrinsic, IKeyringPair, INumber, Registry, SignatureOptions } from '../types/index.js';
|
||||
import type { GenericExtrinsicEra } from './ExtrinsicEra.js';
|
||||
import type { ExtrinsicValueV4 } from './v4/Extrinsic.js';
|
||||
import type { Preamble } from './types.js';
|
||||
import type { ExtrinsicValueV5 } from './v5/Extrinsic.js';
|
||||
|
||||
import { AbstractBase } from '@polkadot/types-codec';
|
||||
import { compactAddLength, compactFromU8a, compactToU8a, isHex, isU8a, objectProperty, objectSpread, u8aConcat, u8aToHex, u8aToU8a } from '@polkadot/util';
|
||||
|
||||
import { EXTRINSIC_VERSION as LATEST_EXTRINSIC_VERSION } from './v4/Extrinsic.js';
|
||||
import { BIT_SIGNED, BIT_UNSIGNED, DEFAULT_VERSION, UNMASK_VERSION } from './constants.js';
|
||||
import { BARE_EXTRINSIC, BIT_SIGNED, BIT_UNSIGNED, DEFAULT_PREAMBLE, GENERAL_EXTRINSIC, LATEST_EXTRINSIC_VERSION, LOWEST_SUPPORTED_EXTRINSIC_FORMAT_VERSION, SIGNED_EXTRINSIC, TYPE_MASK, VERSION_MASK } from './constants.js';
|
||||
|
||||
interface CreateOptions {
|
||||
version?: number;
|
||||
preamble?: Preamble;
|
||||
}
|
||||
|
||||
// NOTE The following 2 types, as well as the VERSION structure and the latest export
|
||||
// is to be changed with the addition of a new extrinsic version
|
||||
|
||||
type ExtrinsicVx = ExtrinsicV4;
|
||||
type ExtrinsicValue = ExtrinsicValueV4;
|
||||
type ExtrinsicVx = ExtrinsicV5 | GeneralExtrinsic;
|
||||
type ExtrinsicValue = ExtrinsicValueV5;
|
||||
|
||||
const VERSIONS = [
|
||||
'ExtrinsicUnknown', // v0 is unknown
|
||||
'ExtrinsicUnknown',
|
||||
'ExtrinsicUnknown',
|
||||
'ExtrinsicUnknown',
|
||||
'ExtrinsicV4'
|
||||
'ExtrinsicV4',
|
||||
'ExtrinsicV5'
|
||||
];
|
||||
|
||||
const PREAMBLE = {
|
||||
bare: 'ExtrinsicV5',
|
||||
general: 'GeneralExtrinsic',
|
||||
signed: 'ExtrinsicV5'
|
||||
};
|
||||
|
||||
const PreambleMask = {
|
||||
bare: BARE_EXTRINSIC,
|
||||
general: GENERAL_EXTRINSIC,
|
||||
signed: SIGNED_EXTRINSIC
|
||||
};
|
||||
|
||||
const preambleUnMask: Record<string, Preamble> = {
|
||||
0: 'bare',
|
||||
// eslint-disable-next-line sort-keys
|
||||
64: 'general',
|
||||
// eslint-disable-next-line sort-keys
|
||||
128: 'signed'
|
||||
};
|
||||
|
||||
export { LATEST_EXTRINSIC_VERSION };
|
||||
|
||||
/** @internal */
|
||||
function newFromValue (registry: Registry, value: any, version: number): ExtrinsicVx | ExtrinsicUnknown {
|
||||
function newFromValue (registry: Registry, value: any, version: number, preamble: Preamble): ExtrinsicVx | ExtrinsicUnknown {
|
||||
if (value instanceof GenericExtrinsic) {
|
||||
return value.unwrap();
|
||||
}
|
||||
|
||||
const isSigned = (version & BIT_SIGNED) === BIT_SIGNED;
|
||||
const type = VERSIONS[version & UNMASK_VERSION] || VERSIONS[0];
|
||||
const type = (version & VERSION_MASK) === 5 ? PREAMBLE[preamble] : VERSIONS[version & VERSION_MASK] || VERSIONS[0];
|
||||
|
||||
// we cast here since the VERSION definition is incredibly broad - we don't have a
|
||||
// slice for "only add extrinsic types", and more string definitions become unwieldy
|
||||
@@ -52,20 +75,20 @@ function newFromValue (registry: Registry, value: any, version: number): Extrins
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
function decodeExtrinsic (registry: Registry, value?: GenericExtrinsic | ExtrinsicValue | AnyU8a | Call, version: number = DEFAULT_VERSION): ExtrinsicVx | ExtrinsicUnknown {
|
||||
function decodeExtrinsic (registry: Registry, value?: GenericExtrinsic | ExtrinsicValue | AnyU8a | Call, version: number = LOWEST_SUPPORTED_EXTRINSIC_FORMAT_VERSION, preamble: Preamble = DEFAULT_PREAMBLE): ExtrinsicVx | ExtrinsicUnknown {
|
||||
if (isU8a(value) || Array.isArray(value) || isHex(value)) {
|
||||
return decodeU8a(registry, u8aToU8a(value), version);
|
||||
return decodeU8a(registry, u8aToU8a(value), version, preamble);
|
||||
} else if (value instanceof registry.createClassUnsafe('Call')) {
|
||||
return newFromValue(registry, { method: value }, version);
|
||||
return newFromValue(registry, { method: value }, version, preamble);
|
||||
}
|
||||
|
||||
return newFromValue(registry, value, version);
|
||||
return newFromValue(registry, value, version, preamble);
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
function decodeU8a (registry: Registry, value: Uint8Array, version: number): ExtrinsicVx | ExtrinsicUnknown {
|
||||
function decodeU8a (registry: Registry, value: Uint8Array, version: number, preamble: Preamble): ExtrinsicVx | ExtrinsicUnknown {
|
||||
if (!value.length) {
|
||||
return newFromValue(registry, new Uint8Array(), version);
|
||||
return newFromValue(registry, new Uint8Array(), version, preamble);
|
||||
}
|
||||
|
||||
const [offset, length] = compactFromU8a(value);
|
||||
@@ -76,22 +99,41 @@ function decodeU8a (registry: Registry, value: Uint8Array, version: number): Ext
|
||||
}
|
||||
|
||||
const data = value.subarray(offset, total);
|
||||
const unmaskedPreamble = data[0] & TYPE_MASK;
|
||||
|
||||
return newFromValue(registry, data.subarray(1), data[0]);
|
||||
if (preambleUnMask[`${unmaskedPreamble}`] === 'general') {
|
||||
// NOTE: GeneralExtrinsic needs to have the full data to validate the preamble and version
|
||||
return newFromValue(registry, value, data[0], preambleUnMask[`${unmaskedPreamble}`] || preamble);
|
||||
} else {
|
||||
return newFromValue(registry, data.subarray(1), data[0], preambleUnMask[`${unmaskedPreamble}`] || preamble);
|
||||
}
|
||||
}
|
||||
|
||||
abstract class ExtrinsicBase<A extends AnyTuple> extends AbstractBase<ExtrinsicVx | ExtrinsicUnknown> {
|
||||
constructor (registry: Registry, value: ExtrinsicV4 | ExtrinsicUnknown, initialU8aLength?: number) {
|
||||
readonly #preamble: Preamble;
|
||||
|
||||
constructor (registry: Registry, value: ExtrinsicVx | ExtrinsicUnknown, initialU8aLength?: number, preamble?: Preamble) {
|
||||
super(registry, value, initialU8aLength);
|
||||
|
||||
const signKeys = Object.keys(registry.getSignedExtensionTypes());
|
||||
const getter = (key: string) => this.inner.signature[key as 'signer'];
|
||||
|
||||
// This is on the abstract class, ensuring that hasOwnProperty operates
|
||||
// correctly, i.e. it needs to be on the base class exposing it
|
||||
for (let i = 0, count = signKeys.length; i < count; i++) {
|
||||
objectProperty(this, signKeys[i], getter);
|
||||
if (this.version === 5 && preamble !== 'general') {
|
||||
const getter = (key: string) => (this.inner.signature as unknown as ExtrinsicSignatureV5)[key as 'signer'];
|
||||
|
||||
// This is on the abstract class, ensuring that hasOwnProperty operates
|
||||
// correctly, i.e. it needs to be on the base class exposing it
|
||||
for (let i = 0, count = signKeys.length; i < count; i++) {
|
||||
objectProperty(this, signKeys[i], getter);
|
||||
}
|
||||
}
|
||||
|
||||
const unmaskedPreamble = this.type & TYPE_MASK;
|
||||
|
||||
this.#preamble = preamble || preambleUnMask[`${unmaskedPreamble}`];
|
||||
}
|
||||
|
||||
public isGeneral () {
|
||||
return this.#preamble === 'general';
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -126,7 +168,9 @@ abstract class ExtrinsicBase<A extends AnyTuple> extends AbstractBase<ExtrinsicV
|
||||
* @description The era for this extrinsic
|
||||
*/
|
||||
public get era (): GenericExtrinsicEra {
|
||||
return this.inner.signature.era;
|
||||
return this.isGeneral()
|
||||
? (this.inner as unknown as GeneralExtrinsic).era
|
||||
: (this.inner.signature as unknown as ExtrinsicSignatureV5).era;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -140,7 +184,9 @@ abstract class ExtrinsicBase<A extends AnyTuple> extends AbstractBase<ExtrinsicV
|
||||
* @description `true` id the extrinsic is signed
|
||||
*/
|
||||
public get isSigned (): boolean {
|
||||
return this.inner.signature.isSigned;
|
||||
return this.isGeneral()
|
||||
? false
|
||||
: (this.inner.signature as unknown as ExtrinsicSignatureV5).isSigned;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -168,49 +214,67 @@ abstract class ExtrinsicBase<A extends AnyTuple> extends AbstractBase<ExtrinsicV
|
||||
* @description The nonce for this extrinsic
|
||||
*/
|
||||
public get nonce (): ICompact<INumber> {
|
||||
return this.inner.signature.nonce;
|
||||
return this.isGeneral()
|
||||
? (this.inner as unknown as GeneralExtrinsic).nonce
|
||||
: (this.inner.signature as unknown as ExtrinsicSignatureV5).nonce;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description The actual [[EcdsaSignature]], [[Ed25519Signature]] or [[Sr25519Signature]]
|
||||
*/
|
||||
public get signature (): EcdsaSignature | Ed25519Signature | Sr25519Signature {
|
||||
return this.inner.signature.signature;
|
||||
if (this.isGeneral()) {
|
||||
throw new Error('Extrinsic: GeneralExtrinsic does not have signature implemented');
|
||||
}
|
||||
|
||||
return (this.inner.signature as unknown as ExtrinsicSignatureV5).signature;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description The [[Address]] that signed
|
||||
*/
|
||||
public get signer (): Address {
|
||||
return this.inner.signature.signer;
|
||||
if (this.isGeneral()) {
|
||||
throw new Error('Extrinsic: GeneralExtrinsic does not have signer implemented');
|
||||
}
|
||||
|
||||
return (this.inner.signature as unknown as ExtrinsicSignatureV5).signer;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description Forwards compat
|
||||
*/
|
||||
public get tip (): ICompact<INumber> {
|
||||
return this.inner.signature.tip;
|
||||
return this.isGeneral()
|
||||
? (this.inner as unknown as GeneralExtrinsic).tip
|
||||
: (this.inner.signature as unknown as ExtrinsicSignatureV5).tip;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description Forward compat
|
||||
*/
|
||||
public get assetId (): IOption<INumber | MultiLocation> {
|
||||
return this.inner.signature.assetId;
|
||||
return this.isGeneral()
|
||||
? (this.inner as unknown as GeneralExtrinsic).assetId
|
||||
: (this.inner.signature as unknown as ExtrinsicSignatureV5).assetId;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description Forward compat
|
||||
*/
|
||||
public get metadataHash (): IOption<Hash> {
|
||||
return this.inner.signature.metadataHash;
|
||||
return this.isGeneral()
|
||||
? (this.inner as unknown as GeneralExtrinsic).metadataHash
|
||||
: (this.inner.signature as unknown as ExtrinsicSignatureV5).metadataHash;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description Forward compat
|
||||
*/
|
||||
public get mode (): INumber {
|
||||
return this.inner.signature.mode;
|
||||
return this.isGeneral()
|
||||
? (this.inner as unknown as GeneralExtrinsic).mode
|
||||
: (this.inner.signature as unknown as ExtrinsicSignatureV5).mode;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -228,7 +292,11 @@ abstract class ExtrinsicBase<A extends AnyTuple> extends AbstractBase<ExtrinsicV
|
||||
* @description Returns the encoded version flag
|
||||
*/
|
||||
public get version (): number {
|
||||
return this.type | (this.isSigned ? BIT_SIGNED : BIT_UNSIGNED);
|
||||
if (this.type <= LOWEST_SUPPORTED_EXTRINSIC_FORMAT_VERSION) {
|
||||
return this.type | (this.isSigned ? BIT_SIGNED : BIT_UNSIGNED);
|
||||
} else {
|
||||
return this.type | (this.isSigned ? PreambleMask.signed : this.isGeneral() ? PreambleMask.general : PreambleMask.bare);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -260,8 +328,8 @@ export class GenericExtrinsic<A extends AnyTuple = AnyTuple> extends ExtrinsicBa
|
||||
|
||||
static LATEST_EXTRINSIC_VERSION = LATEST_EXTRINSIC_VERSION;
|
||||
|
||||
constructor (registry: Registry, value?: GenericExtrinsic | ExtrinsicValue | AnyU8a | Call, { version }: CreateOptions = {}) {
|
||||
super(registry, decodeExtrinsic(registry, value, version));
|
||||
constructor (registry: Registry, value?: GenericExtrinsic | ExtrinsicValue | AnyU8a | Call, { preamble, version }: CreateOptions = {}) {
|
||||
super(registry, decodeExtrinsic(registry, value, version || registry.metadata.extrinsic.version?.toNumber(), preamble), undefined, preamble);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -5,37 +5,49 @@ import type { Bytes } from '@polkadot/types-codec';
|
||||
import type { AnyJson, BareOpts, Registry } from '@polkadot/types-codec/types';
|
||||
import type { HexString } from '@polkadot/util/types';
|
||||
import type { BlockHash } from '../interfaces/chain/index.js';
|
||||
import type { ExtrinsicPayloadV4 } from '../interfaces/extrinsics/index.js';
|
||||
import type { ExtrinsicPayloadV5 } from '../interfaces/extrinsics/index.js';
|
||||
import type { Hash, MultiLocation } from '../interfaces/types.js';
|
||||
import type { ExtrinsicPayloadValue, ICompact, IKeyringPair, INumber, IOption } from '../types/index.js';
|
||||
import type { GenericExtrinsicEra } from './ExtrinsicEra.js';
|
||||
import type { Preamble } from './types.js';
|
||||
|
||||
import { AbstractBase } from '@polkadot/types-codec';
|
||||
import { hexToU8a, isHex, u8aToHex } from '@polkadot/util';
|
||||
|
||||
import { DEFAULT_VERSION } from './constants.js';
|
||||
import { DEFAULT_PREAMBLE, LATEST_EXTRINSIC_VERSION } from './constants.js';
|
||||
|
||||
interface ExtrinsicPayloadOptions {
|
||||
version?: number;
|
||||
preamble?: Preamble;
|
||||
}
|
||||
|
||||
// all our known types that can be returned
|
||||
type ExtrinsicPayloadVx = ExtrinsicPayloadV4;
|
||||
type ExtrinsicPayloadVx = ExtrinsicPayloadV5;
|
||||
|
||||
const VERSIONS = [
|
||||
'ExtrinsicPayloadUnknown', // v0 is unknown
|
||||
'ExtrinsicPayloadUnknown',
|
||||
'ExtrinsicPayloadUnknown',
|
||||
'ExtrinsicPayloadUnknown',
|
||||
'ExtrinsicPayloadV4'
|
||||
'ExtrinsicPayloadV4',
|
||||
'ExtrinsicPayloadV5'
|
||||
];
|
||||
|
||||
const PREAMBLES = {
|
||||
bare: 'ExtrinsicPayloadV5',
|
||||
// Not supported yet
|
||||
general: 'ExtrinsicPayloadV5',
|
||||
signed: 'ExtrinsicPayloadV5'
|
||||
};
|
||||
|
||||
/** @internal */
|
||||
function decodeExtrinsicPayload (registry: Registry, value?: GenericExtrinsicPayload | ExtrinsicPayloadValue | Uint8Array | string, version: number = DEFAULT_VERSION): ExtrinsicPayloadVx {
|
||||
function decodeExtrinsicPayload (registry: Registry, value?: GenericExtrinsicPayload | ExtrinsicPayloadValue | Uint8Array | string, version = LATEST_EXTRINSIC_VERSION, preamble: Preamble = DEFAULT_PREAMBLE): ExtrinsicPayloadVx {
|
||||
if (value instanceof GenericExtrinsicPayload) {
|
||||
return value.unwrap();
|
||||
}
|
||||
|
||||
const extVersion = version === 5 ? PREAMBLES[preamble] : VERSIONS[version] || VERSIONS[0];
|
||||
|
||||
/**
|
||||
* HACK: In order to change the assetId from `number | object` to HexString (While maintaining the true type ie Option<TAssetConversion>),
|
||||
* to allow for easier generalization of the SignerPayloadJSON interface the below check is necessary. The ExtrinsicPayloadV4 class does not like
|
||||
@@ -51,10 +63,10 @@ function decodeExtrinsicPayload (registry: Registry, value?: GenericExtrinsicPay
|
||||
assetId: registry.createType('TAssetConversion', hexToU8a((value as ExtrinsicPayloadValue).assetId)).toJSON()
|
||||
};
|
||||
|
||||
return registry.createTypeUnsafe(VERSIONS[version] || VERSIONS[0], [adjustedPayload, { version }]);
|
||||
return registry.createTypeUnsafe(extVersion, [adjustedPayload, { version }]);
|
||||
}
|
||||
|
||||
return registry.createTypeUnsafe(VERSIONS[version] || VERSIONS[0], [value, { version }]);
|
||||
return registry.createTypeUnsafe(extVersion, [value, { version }]);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -64,8 +76,8 @@ function decodeExtrinsicPayload (registry: Registry, value?: GenericExtrinsicPay
|
||||
* on the contents included
|
||||
*/
|
||||
export class GenericExtrinsicPayload extends AbstractBase<ExtrinsicPayloadVx> {
|
||||
constructor (registry: Registry, value?: Partial<ExtrinsicPayloadValue> | Uint8Array | string, { version }: ExtrinsicPayloadOptions = {}) {
|
||||
super(registry, decodeExtrinsicPayload(registry, value as ExtrinsicPayloadValue, version));
|
||||
constructor (registry: Registry, value?: Partial<ExtrinsicPayloadValue> | Uint8Array | string, { preamble, version }: ExtrinsicPayloadOptions = {}) {
|
||||
super(registry, decodeExtrinsicPayload(registry, value as ExtrinsicPayloadValue, version, preamble));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -7,8 +7,23 @@ export const BIT_UNSIGNED = 0;
|
||||
|
||||
export const EMPTY_U8A = new Uint8Array();
|
||||
|
||||
export const DEFAULT_VERSION = 4;
|
||||
|
||||
export const IMMORTAL_ERA = new Uint8Array([0]);
|
||||
|
||||
export const UNMASK_VERSION = 0b01111111;
|
||||
|
||||
export const DEFAULT_PREAMBLE = 'bare';
|
||||
|
||||
// Latest extrinsic version is v5, which has backwards compatibility for v4 signed extrinsics
|
||||
export const LATEST_EXTRINSIC_VERSION = 5;
|
||||
|
||||
export const VERSION_MASK = 0b00111111;
|
||||
|
||||
export const TYPE_MASK = 0b11000000;
|
||||
|
||||
export const BARE_EXTRINSIC = 0b00000000;
|
||||
|
||||
export const SIGNED_EXTRINSIC = 0b10000000;
|
||||
|
||||
export const GENERAL_EXTRINSIC = 0b01000000;
|
||||
|
||||
export const LOWEST_SUPPORTED_EXTRINSIC_FORMAT_VERSION = 4;
|
||||
|
||||
@@ -11,3 +11,4 @@ export { GenericSignerPayload } from './SignerPayload.js';
|
||||
|
||||
// all starred
|
||||
export * from './v4/index.js';
|
||||
export * from './v5/index.js';
|
||||
|
||||
@@ -21,3 +21,5 @@ export interface ExtrinsicExtraValue {
|
||||
nonce?: AnyNumber;
|
||||
tip?: AnyNumber;
|
||||
}
|
||||
|
||||
export type Preamble = 'signed' | 'bare' | 'general';
|
||||
|
||||
@@ -13,3 +13,16 @@ export function sign (registry: Registry, signerPair: IKeyringPair, u8a: Uint8Ar
|
||||
|
||||
return signerPair.sign(encoded, options);
|
||||
}
|
||||
|
||||
// a helper function for both types of payloads, Raw and metadata-known
|
||||
export function signV5 (registry: Registry, signerPair: IKeyringPair, u8a: Uint8Array, options?: SignOptions): Uint8Array {
|
||||
const encoded = registry.hash(u8a);
|
||||
|
||||
return signerPair.sign(encoded, options);
|
||||
}
|
||||
|
||||
export function signGeneral (registry: Registry, u8a: Uint8Array): Uint8Array {
|
||||
const encoded = registry.hash(u8a);
|
||||
|
||||
return encoded;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,87 @@
|
||||
// Copyright 2017-2024 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/// <reference types="@polkadot/dev-test/globals.d.ts" />
|
||||
|
||||
import { createTestPairs } from '@polkadot/keyring/testingPairs';
|
||||
import rpcMetadata from '@polkadot/types-support/metadata/static-substrate';
|
||||
import { BN } from '@polkadot/util';
|
||||
|
||||
import { TypeRegistry } from '../../create/index.js';
|
||||
import { decorateExtrinsics, Metadata } from '../../metadata/index.js';
|
||||
import { GenericExtrinsicV5 as Extrinsic } from './index.js';
|
||||
|
||||
const registry = new TypeRegistry();
|
||||
const metadata = new Metadata(registry, rpcMetadata);
|
||||
const keyring = createTestPairs({ type: 'ed25519' }, false);
|
||||
|
||||
registry.setMetadata(metadata);
|
||||
|
||||
const tx = decorateExtrinsics(registry, metadata.asLatest, metadata.version);
|
||||
|
||||
describe('ExtrinsicV5', (): void => {
|
||||
it('constructs a sane Uint8Array (default)', (): void => {
|
||||
const xt = new Extrinsic(registry);
|
||||
|
||||
// expect(`${xt.method.section}${xt.method.method}`).toEqual('system.fillBlock');
|
||||
expect(`${xt.method.section}.${xt.method.method}`).toEqual('system.remark');
|
||||
|
||||
expect(xt.toU8a()).toEqual(new Uint8Array([
|
||||
0, 0, // index
|
||||
// 0, 0, 0, 0 // fillBlock, Perbill
|
||||
0 // remark, Vec<u8>
|
||||
]));
|
||||
});
|
||||
|
||||
it('creates a unsigned extrinsic', (): void => {
|
||||
expect(
|
||||
new Extrinsic(
|
||||
registry,
|
||||
tx['balances']['transferAllowDeath'](keyring.bob.publicKey, 6969n)
|
||||
).toHex()
|
||||
).toEqual(
|
||||
'0x' +
|
||||
'0600' + // balance.transferAllowDeath
|
||||
'00' +
|
||||
'd7568e5f0a7eda67a82691ff379ac4bba4f9c9b859fe779b5d46363b61ad2db9' +
|
||||
'e56c'
|
||||
);
|
||||
});
|
||||
|
||||
it('creates a signed extrinsic', (): void => {
|
||||
expect(
|
||||
new Extrinsic(
|
||||
registry,
|
||||
tx['balances']['transferAllowDeath'](keyring.bob.publicKey, 6969n)
|
||||
).sign(keyring.alice, {
|
||||
blockHash: '0xec7afaf1cca720ce88c1d1b689d81f0583cc15a97d621cf046dd9abf605ef22f',
|
||||
genesisHash: '0xdcd1346701ca8396496e52aa2785b1748deb6db09551b72159dcb3e08991025b',
|
||||
mode: 0,
|
||||
nonce: 1,
|
||||
runtimeVersion: {
|
||||
apis: [],
|
||||
authoringVersion: new BN(123),
|
||||
implName: 'test',
|
||||
implVersion: new BN(123),
|
||||
specName: 'test',
|
||||
specVersion: new BN(123),
|
||||
transactionVersion: new BN(123)
|
||||
},
|
||||
tip: 2
|
||||
}).toHex()
|
||||
).toEqual(
|
||||
'0x' +
|
||||
'00' +
|
||||
'd172a74cda4c865912c32ba0a80a57ae69abae410e5ccb59dee84e2f4432db4f' +
|
||||
'00' + // ed25519
|
||||
'84181ebef350cc212e70e042b6ebcd33ca955bf9497711a64aa7c64e2b8c2732' +
|
||||
'ab837715364eab7be5cc76f74eefa36d3ba9ee698264ed28a286c8360fc9aa0c' +
|
||||
'00' + // TransactionExtension version
|
||||
'0004080000' + // era. nonce, tip, mode
|
||||
'0600' +
|
||||
'00' +
|
||||
'd7568e5f0a7eda67a82691ff379ac4bba4f9c9b859fe779b5d46363b61ad2db9' +
|
||||
'e56c'
|
||||
);
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,116 @@
|
||||
// Copyright 2017-2024 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { HexString } from '@polkadot/util/types';
|
||||
import type { ExtrinsicSignatureV5 } from '../../interfaces/extrinsics/index.js';
|
||||
import type { Address, Call } from '../../interfaces/runtime/index.js';
|
||||
import type { ExtrinsicPayloadValue, IExtrinsicV5Impl, IKeyringPair, Registry, SignatureOptions } from '../../types/index.js';
|
||||
import type { ExtrinsicOptions, Preamble } from '../types.js';
|
||||
|
||||
import { Struct } from '@polkadot/types-codec';
|
||||
import { isU8a } from '@polkadot/util';
|
||||
|
||||
export const EXTRINSIC_VERSION = 5;
|
||||
|
||||
export interface ExtrinsicValueV5 {
|
||||
method?: Call;
|
||||
signature?: ExtrinsicSignatureV5;
|
||||
}
|
||||
|
||||
/**
|
||||
* @name GenericExtrinsicV5
|
||||
* @description
|
||||
* The fourth generation of compact extrinsics
|
||||
*/
|
||||
export class GenericExtrinsicV5 extends Struct implements IExtrinsicV5Impl {
|
||||
constructor (registry: Registry, value?: Uint8Array | ExtrinsicValueV5 | Call, { isSigned }: Partial<ExtrinsicOptions> = {}) {
|
||||
super(registry, {
|
||||
signature: 'ExtrinsicSignatureV5',
|
||||
// eslint-disable-next-line sort-keys
|
||||
method: 'Call'
|
||||
}, GenericExtrinsicV5.decodeExtrinsic(registry, value, isSigned));
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
public static decodeExtrinsic (registry: Registry, value?: Call | Uint8Array | ExtrinsicValueV5, isSigned = false): ExtrinsicValueV5 {
|
||||
if (value instanceof GenericExtrinsicV5) {
|
||||
return value;
|
||||
} else if (value instanceof registry.createClassUnsafe<Call>('Call')) {
|
||||
return { method: value };
|
||||
} else if (isU8a(value)) {
|
||||
// here we decode manually since we need to pull through the version information
|
||||
const signature = registry.createTypeUnsafe<ExtrinsicSignatureV5>('ExtrinsicSignatureV5', [value, { isSigned }]);
|
||||
// We add 2 here since the length of the TransactionExtension Version needs to be accounted for
|
||||
const method = registry.createTypeUnsafe<Call>('Call', [value.subarray(signature.encodedLength)]);
|
||||
|
||||
return {
|
||||
method,
|
||||
signature
|
||||
};
|
||||
}
|
||||
|
||||
return value || {};
|
||||
}
|
||||
|
||||
/**
|
||||
* @description The length of the value when encoded as a Uint8Array
|
||||
*/
|
||||
public override get encodedLength (): number {
|
||||
return this.toU8a().length;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description The [[Call]] this extrinsic wraps
|
||||
*/
|
||||
public get method (): Call {
|
||||
return this.getT('method');
|
||||
}
|
||||
|
||||
/**
|
||||
* @description The [[ExtrinsicSignatureV5]]
|
||||
*/
|
||||
public get signature (): ExtrinsicSignatureV5 {
|
||||
return this.getT('signature');
|
||||
}
|
||||
|
||||
/**
|
||||
* @description The version for the signature
|
||||
*/
|
||||
public get version (): number {
|
||||
return EXTRINSIC_VERSION;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description The [[Preamble]] for the extrinsic
|
||||
*/
|
||||
public get preamble (): Preamble {
|
||||
return this.getT('preamble');
|
||||
}
|
||||
|
||||
/**
|
||||
* @description Add an [[ExtrinsicSignatureV5]] to the extrinsic (already generated)
|
||||
*/
|
||||
public addSignature (signer: Address | Uint8Array | string, signature: Uint8Array | HexString, payload: ExtrinsicPayloadValue | Uint8Array | HexString): GenericExtrinsicV5 {
|
||||
this.signature.addSignature(signer, signature, payload);
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description Sign the extrinsic with a specific keypair
|
||||
*/
|
||||
public sign (account: IKeyringPair, options: SignatureOptions): GenericExtrinsicV5 {
|
||||
this.signature.sign(this.method, account, options);
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @describe Adds a fake signature to the extrinsic
|
||||
*/
|
||||
public signFake (signer: Address | Uint8Array | string, options: SignatureOptions): GenericExtrinsicV5 {
|
||||
this.signature.signFake(this.method, signer, options);
|
||||
|
||||
return this;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
// Copyright 2017-2024 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/// <reference types="@polkadot/dev-test/globals.d.ts" />
|
||||
|
||||
import rpcMetadata from '@polkadot/types-support/metadata/static-substrate';
|
||||
|
||||
import { TypeRegistry } from '../../create/index.js';
|
||||
import { decorateExtrinsics, Metadata } from '../../metadata/index.js';
|
||||
import { GenericExtrinsicPayloadV5 as ExtrinsicPayload } from './index.js';
|
||||
|
||||
const registry = new TypeRegistry();
|
||||
const metadata = new Metadata(registry, rpcMetadata);
|
||||
|
||||
registry.setMetadata(metadata);
|
||||
|
||||
const tx = decorateExtrinsics(registry, metadata.asLatest, metadata.version);
|
||||
|
||||
describe('ExtrinsicPayload', (): void => {
|
||||
it('has a sane inspect', (): void => {
|
||||
// we don't expect this to fail, however it is actually a good
|
||||
// reference for the ordering in base Substrate
|
||||
expect(new ExtrinsicPayload(registry, { method: tx['timestamp']['set'](0).toHex() } as never).inspect()).toEqual({
|
||||
inner: [
|
||||
{ name: 'method', outer: [new Uint8Array([3, 0, 0])] },
|
||||
{ inner: undefined, name: 'era', outer: [new Uint8Array([0]), new Uint8Array([0])] },
|
||||
{ name: 'nonce', outer: [new Uint8Array([0])] },
|
||||
{ name: 'tip', outer: [new Uint8Array([0])] },
|
||||
{ name: 'assetId', outer: [new Uint8Array([0])] },
|
||||
{ name: 'mode', outer: [new Uint8Array([0])] },
|
||||
{ name: 'specVersion', outer: [new Uint8Array([0, 0, 0, 0])] },
|
||||
{ name: 'transactionVersion', outer: [new Uint8Array([0, 0, 0, 0])] },
|
||||
{ name: 'genesisHash', outer: [new Uint8Array(32)] },
|
||||
{ name: 'blockHash', outer: [new Uint8Array(32)] },
|
||||
{ name: 'metadataHash', outer: [new Uint8Array([0])] }
|
||||
]
|
||||
});
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,130 @@
|
||||
// Copyright 2017-2024 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { SignOptions } from '@polkadot/keyring/types';
|
||||
import type { Hash, MultiLocation } from '@polkadot/types/interfaces';
|
||||
import type { Bytes } from '@polkadot/types-codec';
|
||||
import type { Inspect, Registry } from '@polkadot/types-codec/types';
|
||||
import type { HexString } from '@polkadot/util/types';
|
||||
import type { BlockHash } from '../../interfaces/chain/index.js';
|
||||
import type { ExtrinsicEra } from '../../interfaces/extrinsics/index.js';
|
||||
import type { ExtrinsicPayloadValue, ICompact, IKeyringPair, INumber, IOption } from '../../types/index.js';
|
||||
|
||||
import { Enum, Struct } from '@polkadot/types-codec';
|
||||
import { objectSpread } from '@polkadot/util';
|
||||
|
||||
import { signV5 } from '../util.js';
|
||||
|
||||
/**
|
||||
* @name GenericExtrinsicPayloadV5
|
||||
* @description
|
||||
* A signing payload for an [[Extrinsic]]. For the final encoding, it is
|
||||
* variable length based on the contents included
|
||||
*/
|
||||
export class GenericExtrinsicPayloadV5 extends Struct {
|
||||
#signOptions: SignOptions;
|
||||
|
||||
constructor (registry: Registry, value?: ExtrinsicPayloadValue | Uint8Array | HexString) {
|
||||
super(registry, objectSpread(
|
||||
{ method: 'Bytes' },
|
||||
registry.getSignedExtensionTypes(),
|
||||
registry.getSignedExtensionExtra()
|
||||
), value);
|
||||
|
||||
// Do detection for the type of extrinsic, in the case of MultiSignature
|
||||
// this is an enum, in the case of AnySignature, this is a Hash only
|
||||
// (which may be 64 or 65 bytes)
|
||||
this.#signOptions = {
|
||||
withType: registry.createTypeUnsafe('ExtrinsicSignature', []) instanceof Enum
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* @description Returns a breakdown of the hex encoding for this Codec
|
||||
*/
|
||||
public override inspect (): Inspect {
|
||||
return super.inspect({ method: true });
|
||||
}
|
||||
|
||||
/**
|
||||
* @description The block [[BlockHash]] the signature applies to (mortal/immortal)
|
||||
*/
|
||||
public get blockHash (): BlockHash {
|
||||
return this.getT('blockHash');
|
||||
}
|
||||
|
||||
/**
|
||||
* @description The [[ExtrinsicEra]]
|
||||
*/
|
||||
public get era (): ExtrinsicEra {
|
||||
return this.getT('era');
|
||||
}
|
||||
|
||||
/**
|
||||
* @description The genesis [[BlockHash]] the signature applies to (mortal/immortal)
|
||||
*/
|
||||
public get genesisHash (): BlockHash {
|
||||
return this.getT('genesisHash');
|
||||
}
|
||||
|
||||
/**
|
||||
* @description The [[Bytes]] contained in the payload
|
||||
*/
|
||||
public get method (): Bytes {
|
||||
return this.getT('method');
|
||||
}
|
||||
|
||||
/**
|
||||
* @description The [[Index]]
|
||||
*/
|
||||
public get nonce (): ICompact<INumber> {
|
||||
return this.getT('nonce');
|
||||
}
|
||||
|
||||
/**
|
||||
* @description The specVersion for this signature
|
||||
*/
|
||||
public get specVersion (): INumber {
|
||||
return this.getT('specVersion');
|
||||
}
|
||||
|
||||
/**
|
||||
* @description The tip [[Balance]]
|
||||
*/
|
||||
public get tip (): ICompact<INumber> {
|
||||
return this.getT('tip');
|
||||
}
|
||||
|
||||
/**
|
||||
* @description The transactionVersion for this signature
|
||||
*/
|
||||
public get transactionVersion (): INumber {
|
||||
return this.getT('transactionVersion');
|
||||
}
|
||||
|
||||
/**
|
||||
* @description The (optional) asset id for this signature for chains that support transaction fees in assets
|
||||
*/
|
||||
public get assetId (): IOption<INumber | MultiLocation> {
|
||||
return this.getT('assetId');
|
||||
}
|
||||
|
||||
/**
|
||||
* @description The (optional) metadataHash proof for the CheckMetadataHash TransactionExtension
|
||||
*/
|
||||
public get metadataHash (): IOption<Hash> {
|
||||
return this.getT('metadataHash');
|
||||
}
|
||||
|
||||
/**
|
||||
* @description Sign the payload with the keypair
|
||||
*/
|
||||
public sign (signerPair: IKeyringPair): Uint8Array {
|
||||
// NOTE The `toU8a({ method: true })` argument is absolutely critical, we
|
||||
// don't want the method (Bytes) to have the length prefix included. This
|
||||
// means that the data-as-signed is un-decodable, but is also doesn't need
|
||||
// the extra information, only the pure data (and is not decoded) ...
|
||||
// The same applies to V1..V3, if we have a V6, carry this comment
|
||||
return signV5(this.registry, signerPair, this.toU8a({ method: true }), this.#signOptions);
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user