Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5aae48cc28 | ||
|
|
4ab3b55383 | ||
|
|
6ea6b90e03 | ||
|
|
eb5c888cb8 | ||
|
|
cda07dfa0b | ||
|
|
4abae3200b | ||
|
|
b60895beb4 | ||
|
|
855d70a3b3 | ||
|
|
583d9bfe36 | ||
|
|
d519611a25 | ||
|
|
9a9bace8e8 | ||
|
|
40810f2fdb | ||
|
|
361a77580e | ||
|
|
ea45c7e689 | ||
|
|
cc1d51a6ca | ||
|
|
b8233fb7b8 | ||
|
|
5cbe80066d | ||
|
|
3f6c10256c | ||
|
|
609b2830b0 | ||
|
|
b7bbd2d615 | ||
|
|
41d6429782 |
@@ -11,7 +11,10 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
YARN_ENABLE_SCRIPTS: false
|
YARN_ENABLE_SCRIPTS: false
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
|
- uses: actions/checkout@v3
|
||||||
|
- uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: 'lts/*'
|
||||||
- uses: denoland/setup-deno@004814556e37c54a2f6e31384c9e18e983317366
|
- uses: denoland/setup-deno@004814556e37c54a2f6e31384c9e18e983317366
|
||||||
with:
|
with:
|
||||||
deno-version: vx.x.x
|
deno-version: vx.x.x
|
||||||
|
|||||||
@@ -19,10 +19,13 @@ jobs:
|
|||||||
GH_RELEASE_GITHUB_API_TOKEN: ${{ secrets.GH_PAT_BOT }}
|
GH_RELEASE_GITHUB_API_TOKEN: ${{ secrets.GH_PAT_BOT }}
|
||||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
token: ${{ secrets.GH_PAT_BOT }}
|
token: ${{ secrets.GH_PAT_BOT }}
|
||||||
|
- uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: 'lts/*'
|
||||||
- name: ${{ matrix.step }}
|
- name: ${{ matrix.step }}
|
||||||
run: |
|
run: |
|
||||||
yarn install --immutable | grep -v 'YN0013'
|
yarn install --immutable | grep -v 'YN0013'
|
||||||
|
|||||||
@@ -1,5 +1,14 @@
|
|||||||
# CHANGELOG
|
# CHANGELOG
|
||||||
|
|
||||||
|
## 9.14.2 Feb 19, 2023
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Don't allow `WsProvider.connect()` on an open connection (creates resource leaks)
|
||||||
|
- Adjust typegen to use metadata-defined aliases in query return decoration
|
||||||
|
- Update to latest Polkadot, Kusama & Substrate metadata
|
||||||
|
|
||||||
|
|
||||||
## 9.14.1 Feb 12, 2023
|
## 9.14.1 Feb 12, 2023
|
||||||
|
|
||||||
Changes:
|
Changes:
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
3363 Jaco 9.14.1 (#5481)
|
3374 Jaco 9.14.2 (#5500)
|
||||||
83 Amaury Martiny StatementKind: Regular and Saft (#2303)
|
83 Amaury Martiny StatementKind: Regular and Saft (#2303)
|
||||||
37 Keith Ingram Update contract types and rpc (#4541)
|
37 Keith Ingram Update contract types and rpc (#4541)
|
||||||
35 Stefanie Doll Updated child storage parameters (#1709)
|
35 Stefanie Doll Updated child storage parameters (#1709)
|
||||||
|
|||||||
+9
-8
@@ -11,10 +11,10 @@
|
|||||||
},
|
},
|
||||||
"sideEffects": false,
|
"sideEffects": false,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "9.14.1",
|
"version": "9.14.2",
|
||||||
"versions": {
|
"versions": {
|
||||||
"git": "9.14.1",
|
"git": "9.14.2",
|
||||||
"npm": "9.14.1"
|
"npm": "9.14.2"
|
||||||
},
|
},
|
||||||
"workspaces": [
|
"workspaces": [
|
||||||
"packages/*"
|
"packages/*"
|
||||||
@@ -23,23 +23,24 @@
|
|||||||
"build": "yarn build:interfaces && polkadot-dev-build-ts",
|
"build": "yarn build:interfaces && polkadot-dev-build-ts",
|
||||||
"build:extra": "(cd packages/typegen && copyfiles scripts/* build)",
|
"build:extra": "(cd packages/typegen && copyfiles scripts/* build)",
|
||||||
"build:interfaces": "polkadot-types-internal-interfaces",
|
"build:interfaces": "polkadot-types-internal-interfaces",
|
||||||
"build:metadata": "yarn build:interfaces && yarn test:one packages/types/src/metadata/v14",
|
"build:metadata": "yarn build:interfaces && polkadot-dev-run-test packages/types/src/metadata/v14",
|
||||||
"build:release": "polkadot-ci-ghact-build",
|
"build:release": "polkadot-ci-ghact-build",
|
||||||
"build:rollup": "polkadot-exec-rollup --config",
|
"build:rollup": "polkadot-exec-rollup --config",
|
||||||
"build:upgrades": "yarn test:one packages/types-known/src/upgrades/e2e",
|
"build:upgrades": "polkadot-dev-run-test upgrades/e2e",
|
||||||
"chain:info": "polkadot-types-chain-info",
|
"chain:info": "polkadot-types-chain-info",
|
||||||
"clean": "polkadot-dev-clean-build",
|
"clean": "polkadot-dev-clean-build",
|
||||||
"deno": "yarn polkadot-dev-deno-map && yarn build && deno check --import-map=import_map.json mod.ts",
|
"deno": "yarn polkadot-dev-deno-map && yarn build && deno check --import-map=import_map.json mod.ts",
|
||||||
"lint": "polkadot-dev-run-lint",
|
"lint": "polkadot-dev-run-lint",
|
||||||
"postinstall": "polkadot-dev-yarn-only",
|
"postinstall": "polkadot-dev-yarn-only",
|
||||||
"test": "NODE_OPTIONS=--experimental-vm-modules polkadot-dev-run-test --coverage --forceExit --runInBand --testPathIgnorePatterns e2e",
|
"test": "polkadot-dev-run-test --env jest --coverage --forceExit --runInBand ^e2e",
|
||||||
"test:one": "NODE_OPTIONS=--experimental-vm-modules polkadot-dev-run-test --detectOpenHandles --forceExit"
|
"test:node": "polkadot-dev-run-test --env node ^e2e",
|
||||||
|
"test:one": "polkadot-dev-run-test --detectOpenHandles --forceExit"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.20.12",
|
"@babel/core": "^7.20.12",
|
||||||
"@babel/register": "^7.18.9",
|
"@babel/register": "^7.18.9",
|
||||||
"@babel/runtime": "^7.20.13",
|
"@babel/runtime": "^7.20.13",
|
||||||
"@polkadot/dev": "^0.68.20",
|
"@polkadot/dev": "^0.68.38",
|
||||||
"@polkadot/typegen": "workspace:packages/typegen",
|
"@polkadot/typegen": "workspace:packages/typegen",
|
||||||
"@types/jest": "^29.4.0",
|
"@types/jest": "^29.4.0",
|
||||||
"copyfiles": "^2.4.1"
|
"copyfiles": "^2.4.1"
|
||||||
|
|||||||
@@ -20,15 +20,15 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "9.14.1",
|
"version": "9.14.2",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.20.13",
|
"@babel/runtime": "^7.20.13",
|
||||||
"@polkadot/api-base": "9.14.1",
|
"@polkadot/api-base": "9.14.2",
|
||||||
"@polkadot/rpc-augment": "9.14.1",
|
"@polkadot/rpc-augment": "9.14.2",
|
||||||
"@polkadot/types": "9.14.1",
|
"@polkadot/types": "9.14.2",
|
||||||
"@polkadot/types-augment": "9.14.1",
|
"@polkadot/types-augment": "9.14.2",
|
||||||
"@polkadot/types-codec": "9.14.1",
|
"@polkadot/types-codec": "9.14.2",
|
||||||
"@polkadot/util": "^10.4.1"
|
"@polkadot/util": "^10.4.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import type { BTreeSet, Bytes, Null, Option, U8aFixed, Vec, WrapperOpaque, bool,
|
|||||||
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
||||||
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
||||||
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KusamaRuntimeSessionKeys, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletConvictionVotingVoteVoting, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2AssignmentAppPublic, PolkadotPrimitivesV2CandidateCommitments, PolkadotPrimitivesV2CoreOccupied, PolkadotPrimitivesV2DisputeState, PolkadotPrimitivesV2ScrapedOnChainVotes, PolkadotPrimitivesV2SessionInfo, PolkadotPrimitivesV2UpgradeGoAhead, PolkadotPrimitivesV2UpgradeRestriction, PolkadotPrimitivesV2ValidatorAppPublic, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, SpWeightsWeightV2Weight, XcmVersionedAssetId, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KusamaRuntimeSessionKeys, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletConvictionVotingVoteVoting, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2AssignmentAppPublic, PolkadotPrimitivesV2CandidateCommitments, PolkadotPrimitivesV2CoreOccupied, PolkadotPrimitivesV2DisputeState, PolkadotPrimitivesV2ScrapedOnChainVotes, PolkadotPrimitivesV2SessionInfo, PolkadotPrimitivesV2UpgradeGoAhead, PolkadotPrimitivesV2UpgradeRestriction, PolkadotPrimitivesV2ValidatorAppPublic, PolkadotPrimitivesVstagingExecutorParams, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, SpWeightsWeightV2Weight, XcmVersionedAssetId, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
||||||
import type { Observable } from '@polkadot/types/types';
|
import type { Observable } from '@polkadot/types/types';
|
||||||
|
|
||||||
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
||||||
@@ -1342,6 +1342,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* The earliest session for which previous session info is stored.
|
* The earliest session for which previous session info is stored.
|
||||||
**/
|
**/
|
||||||
earliestStoredSession: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
earliestStoredSession: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* Executor parameter set for a given session index
|
||||||
|
**/
|
||||||
|
sessionExecutorParams: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesVstagingExecutorParams>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
/**
|
/**
|
||||||
* Session information in a rolling window.
|
* Session information in a rolling window.
|
||||||
* Should have an entry in range `EarliestStoredSession..=CurrentSessionIndex`.
|
* Should have an entry in range `EarliestStoredSession..=CurrentSessionIndex`.
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '9.14.1' };
|
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '9.14.2' };
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import type { BTreeSet, Bytes, Null, Option, U8aFixed, Vec, WrapperOpaque, bool,
|
|||||||
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
||||||
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
||||||
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletSchedulerScheduled, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2AssignmentAppPublic, PolkadotPrimitivesV2CandidateCommitments, PolkadotPrimitivesV2CoreOccupied, PolkadotPrimitivesV2DisputeState, PolkadotPrimitivesV2ScrapedOnChainVotes, PolkadotPrimitivesV2SessionInfo, PolkadotPrimitivesV2UpgradeGoAhead, PolkadotPrimitivesV2UpgradeRestriction, PolkadotPrimitivesV2ValidatorAppPublic, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, PolkadotRuntimeSessionKeys, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, SpWeightsWeightV2Weight, XcmVersionedAssetId, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletSchedulerScheduled, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2AssignmentAppPublic, PolkadotPrimitivesV2CandidateCommitments, PolkadotPrimitivesV2CoreOccupied, PolkadotPrimitivesV2DisputeState, PolkadotPrimitivesV2ScrapedOnChainVotes, PolkadotPrimitivesV2SessionInfo, PolkadotPrimitivesV2UpgradeGoAhead, PolkadotPrimitivesV2UpgradeRestriction, PolkadotPrimitivesV2ValidatorAppPublic, PolkadotPrimitivesVstagingExecutorParams, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, PolkadotRuntimeSessionKeys, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, SpWeightsWeightV2Weight, XcmVersionedAssetId, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
||||||
import type { Observable } from '@polkadot/types/types';
|
import type { Observable } from '@polkadot/types/types';
|
||||||
|
|
||||||
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
||||||
@@ -1186,6 +1186,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* The earliest session for which previous session info is stored.
|
* The earliest session for which previous session info is stored.
|
||||||
**/
|
**/
|
||||||
earliestStoredSession: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
earliestStoredSession: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* Executor parameter set for a given session index
|
||||||
|
**/
|
||||||
|
sessionExecutorParams: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesVstagingExecutorParams>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
/**
|
/**
|
||||||
* Session information in a rolling window.
|
* Session information in a rolling window.
|
||||||
* Should have an entry in range `EarliestStoredSession..=CurrentSessionIndex`.
|
* Should have an entry in range `EarliestStoredSession..=CurrentSessionIndex`.
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -703,6 +703,10 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
* The maximum length of an attribute key.
|
* The maximum length of an attribute key.
|
||||||
**/
|
**/
|
||||||
keyLimit: u32 & AugmentedConst<ApiType>;
|
keyLimit: u32 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* The max number of attributes a user could set per call.
|
||||||
|
**/
|
||||||
|
maxAttributesPerCall: u32 & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The max duration in blocks for deadlines.
|
* The max duration in blocks for deadlines.
|
||||||
**/
|
**/
|
||||||
|
|||||||
@@ -414,10 +414,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* Contract trapped during execution.
|
* Contract trapped during execution.
|
||||||
**/
|
**/
|
||||||
ContractTrapped: AugmentedError<ApiType>;
|
ContractTrapped: AugmentedError<ApiType>;
|
||||||
/**
|
|
||||||
* The debug message specified to `seal_debug_message` does contain invalid UTF-8.
|
|
||||||
**/
|
|
||||||
DebugMessageInvalidUTF8: AugmentedError<ApiType>;
|
|
||||||
/**
|
/**
|
||||||
* Input passed to a contract API function failed to decode as expected type.
|
* Input passed to a contract API function failed to decode as expected type.
|
||||||
**/
|
**/
|
||||||
@@ -1212,6 +1208,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* The provided data is incorrect.
|
* The provided data is incorrect.
|
||||||
**/
|
**/
|
||||||
IncorrectData: AugmentedError<ApiType>;
|
IncorrectData: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The provided metadata might be too long.
|
||||||
|
**/
|
||||||
|
IncorrectMetadata: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The item is locked (non-transferable).
|
* The item is locked (non-transferable).
|
||||||
**/
|
**/
|
||||||
@@ -1236,6 +1236,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* Item's metadata is locked.
|
* Item's metadata is locked.
|
||||||
**/
|
**/
|
||||||
LockedItemMetadata: AugmentedError<ApiType>;
|
LockedItemMetadata: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Can't set more attributes per one call.
|
||||||
|
**/
|
||||||
|
MaxAttributesLimitReached: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The max supply is locked and can't be changed.
|
* The max supply is locked and can't be changed.
|
||||||
**/
|
**/
|
||||||
@@ -1316,6 +1320,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* The duration provided should be less than or equal to `MaxDeadlineDuration`.
|
* The duration provided should be less than or equal to `MaxDeadlineDuration`.
|
||||||
**/
|
**/
|
||||||
WrongDuration: AugmentedError<ApiType>;
|
WrongDuration: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The extrinsic was sent by the wrong origin.
|
||||||
|
**/
|
||||||
|
WrongOrigin: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The owner turned out to be different to what was expected.
|
* The owner turned out to be different to what was expected.
|
||||||
**/
|
**/
|
||||||
@@ -1324,6 +1332,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* The provided setting can't be set.
|
* The provided setting can't be set.
|
||||||
**/
|
**/
|
||||||
WrongSetting: AugmentedError<ApiType>;
|
WrongSetting: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The provided signature is incorrect.
|
||||||
|
**/
|
||||||
|
WrongSignature: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Generic error
|
* Generic error
|
||||||
**/
|
**/
|
||||||
|
|||||||
@@ -226,6 +226,17 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* epoch.
|
* epoch.
|
||||||
**/
|
**/
|
||||||
segmentIndex: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
segmentIndex: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* A list of the last 100 skipped epochs and the corresponding session index
|
||||||
|
* when the epoch was skipped.
|
||||||
|
*
|
||||||
|
* This is only used for validating equivocation proofs. An equivocation proof
|
||||||
|
* must contains a key-ownership proof for a given session, therefore we need a
|
||||||
|
* way to tie together sessions and epoch indices, i.e. we need to validate that
|
||||||
|
* a validator was the owner of a given key on a given session, and what the
|
||||||
|
* active epoch index was during that session.
|
||||||
|
**/
|
||||||
|
skippedEpochs: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u64, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay.
|
* TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay.
|
||||||
**/
|
**/
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -20,13 +20,13 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "9.14.1",
|
"version": "9.14.2",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.20.13",
|
"@babel/runtime": "^7.20.13",
|
||||||
"@polkadot/rpc-core": "9.14.1",
|
"@polkadot/rpc-core": "9.14.2",
|
||||||
"@polkadot/types": "9.14.1",
|
"@polkadot/types": "9.14.2",
|
||||||
"@polkadot/util": "^10.4.1",
|
"@polkadot/util": "^10.4.2",
|
||||||
"rxjs": "^7.8.0"
|
"rxjs": "^7.8.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '9.14.1' };
|
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '9.14.2' };
|
||||||
|
|||||||
@@ -20,20 +20,20 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "9.14.1",
|
"version": "9.14.2",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.20.13",
|
"@babel/runtime": "^7.20.13",
|
||||||
"@polkadot/api": "9.14.1",
|
"@polkadot/api": "9.14.2",
|
||||||
"@polkadot/types": "9.14.1",
|
"@polkadot/types": "9.14.2",
|
||||||
"@polkadot/types-codec": "9.14.1",
|
"@polkadot/types-codec": "9.14.2",
|
||||||
"@polkadot/types-create": "9.14.1",
|
"@polkadot/types-create": "9.14.2",
|
||||||
"@polkadot/util": "^10.4.1",
|
"@polkadot/util": "^10.4.2",
|
||||||
"@polkadot/util-crypto": "^10.4.1",
|
"@polkadot/util-crypto": "^10.4.2",
|
||||||
"rxjs": "^7.8.0"
|
"rxjs": "^7.8.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/api-augment": "9.14.1",
|
"@polkadot/api-augment": "9.14.2",
|
||||||
"@polkadot/keyring": "^10.4.1"
|
"@polkadot/keyring": "^10.4.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import type { Registry } from '@polkadot/types/types';
|
|||||||
|
|
||||||
import fs from 'fs';
|
import fs from 'fs';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
|
import process from 'process';
|
||||||
|
|
||||||
import { TypeDefInfo } from '@polkadot/types/types';
|
import { TypeDefInfo } from '@polkadot/types/types';
|
||||||
import { blake2AsHex } from '@polkadot/util-crypto';
|
import { blake2AsHex } from '@polkadot/util-crypto';
|
||||||
@@ -41,6 +42,9 @@ interface JSONAbi {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// FIXME When Jest is removed with ESM tests, this should be converted to use import.meta.url
|
||||||
|
const cmpPath = path.join(process.cwd(), 'packages/api-contract/src/test/compare');
|
||||||
|
|
||||||
function stringifyInfo (key: string, value: unknown): unknown {
|
function stringifyInfo (key: string, value: unknown): unknown {
|
||||||
return key === 'info'
|
return key === 'info'
|
||||||
? TypeDefInfo[value as number]
|
? TypeDefInfo[value as number]
|
||||||
@@ -82,25 +86,23 @@ describe('Abi', (): void => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
describe('TypeDef', (): void => {
|
describe('TypeDef', (): void => {
|
||||||
Object.keys(abis).forEach((abiName) => {
|
it.each(Object.keys(abis))('initializes from a contract ABI: %s', (abiName): void => {
|
||||||
it(`initializes from a contract ABI (${abiName})`, (): void => {
|
const abi = new Abi(abis[abiName]);
|
||||||
const abi = new Abi(abis[abiName]);
|
const json = stringifyJson(abi.registry);
|
||||||
const json = stringifyJson(abi.registry);
|
const cmpFile = path.join(cmpPath, `${abiName}.test.json`);
|
||||||
const cmpPath = path.join(__dirname, `../test/compare/${abiName}.test.json`);
|
const cmpText = fs.readFileSync(cmpFile, 'utf-8');
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
expect(JSON.parse(json)).toEqual(JSON.parse(cmpText));
|
||||||
expect(JSON.parse(json)).toEqual(require(cmpPath));
|
} catch (error) {
|
||||||
} catch (error) {
|
if (process.env.GITHUB_REPOSITORY) {
|
||||||
if (process.env.GITHUB_REPOSITORY) {
|
console.error(json);
|
||||||
console.error(json);
|
|
||||||
|
|
||||||
throw error;
|
throw error;
|
||||||
}
|
|
||||||
|
|
||||||
fs.writeFileSync(cmpPath, json, { flag: 'w' });
|
|
||||||
}
|
}
|
||||||
});
|
|
||||||
|
fs.writeFileSync(cmpFile, json, { flag: 'w' });
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
import fs from 'fs';
|
import fs from 'fs';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
|
import process from 'process';
|
||||||
|
|
||||||
import { toPromiseMethod } from '@polkadot/api';
|
import { toPromiseMethod } from '@polkadot/api';
|
||||||
|
|
||||||
@@ -12,7 +13,8 @@ import v1contractFlipper from '../test/contracts/ink/v1/flipper.contract.json' a
|
|||||||
import { Code } from './Code';
|
import { Code } from './Code';
|
||||||
import { mockApi } from './mock';
|
import { mockApi } from './mock';
|
||||||
|
|
||||||
const v0wasmFlipper = fs.readFileSync(path.join(__dirname, '../test/contracts/ink/v0/flipper.wasm'));
|
// FIXME When Jest is removed with ESM tests, this should be converted to use import.meta.url
|
||||||
|
const v0wasmFlipper = fs.readFileSync(path.join(process.cwd(), 'packages/api-contract/src/test/contracts/ink/v0/flipper.wasm'), 'utf-8');
|
||||||
|
|
||||||
describe('Code', (): void => {
|
describe('Code', (): void => {
|
||||||
it('can construct with an individual ABI/WASM combo', (): void => {
|
it('can construct with an individual ABI/WASM combo', (): void => {
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '9.14.1' };
|
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '9.14.2' };
|
||||||
|
|||||||
@@ -20,25 +20,25 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "9.14.1",
|
"version": "9.14.2",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.20.13",
|
"@babel/runtime": "^7.20.13",
|
||||||
"@polkadot/api": "9.14.1",
|
"@polkadot/api": "9.14.2",
|
||||||
"@polkadot/api-augment": "9.14.1",
|
"@polkadot/api-augment": "9.14.2",
|
||||||
"@polkadot/api-base": "9.14.1",
|
"@polkadot/api-base": "9.14.2",
|
||||||
"@polkadot/rpc-core": "9.14.1",
|
"@polkadot/rpc-core": "9.14.2",
|
||||||
"@polkadot/types": "9.14.1",
|
"@polkadot/types": "9.14.2",
|
||||||
"@polkadot/types-codec": "9.14.1",
|
"@polkadot/types-codec": "9.14.2",
|
||||||
"@polkadot/util": "^10.4.1",
|
"@polkadot/util": "^10.4.2",
|
||||||
"@polkadot/util-crypto": "^10.4.1",
|
"@polkadot/util-crypto": "^10.4.2",
|
||||||
"rxjs": "^7.8.0"
|
"rxjs": "^7.8.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/api": "9.14.1",
|
"@polkadot/api": "9.14.2",
|
||||||
"@polkadot/api-augment": "9.14.1",
|
"@polkadot/api-augment": "9.14.2",
|
||||||
"@polkadot/rpc-augment": "9.14.1",
|
"@polkadot/rpc-augment": "9.14.2",
|
||||||
"@polkadot/rpc-provider": "9.14.1",
|
"@polkadot/rpc-provider": "9.14.2",
|
||||||
"@polkadot/types-support": "9.14.1"
|
"@polkadot/types-support": "9.14.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,19 +27,20 @@ const testFunction = (api: ApiRx): any => {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
function waitReady (api: ApiRx): Promise<ApiRx> {
|
||||||
|
return new Promise<ApiRx>((resolve) =>
|
||||||
|
api.isReady.subscribe((api) => resolve(api))
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
describe('derive', (): void => {
|
describe('derive', (): void => {
|
||||||
const registry = new TypeRegistry();
|
const registry = new TypeRegistry();
|
||||||
|
|
||||||
describe('builtin', (): void => {
|
describe('builtin', (): void => {
|
||||||
const api = new ApiRx({ provider: new MockProvider(registry), registry });
|
const api = new ApiRx({ provider: new MockProvider(registry), registry });
|
||||||
|
|
||||||
beforeAll((done): void => {
|
beforeAll(() => waitReady(api));
|
||||||
api.isReady.subscribe(() => done());
|
afterAll(() => api.disconnect());
|
||||||
});
|
|
||||||
|
|
||||||
afterAll(async () => {
|
|
||||||
await api.disconnect();
|
|
||||||
});
|
|
||||||
|
|
||||||
testFunction(api)('accounts', 'idAndIndex', []);
|
testFunction(api)('accounts', 'idAndIndex', []);
|
||||||
testFunction(api)('accounts', 'idToIndex', []);
|
testFunction(api)('accounts', 'idToIndex', []);
|
||||||
@@ -81,13 +82,8 @@ describe('derive', (): void => {
|
|||||||
throwOnConnect: true
|
throwOnConnect: true
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeAll((done): void => {
|
beforeAll(() => waitReady(api));
|
||||||
api.isReady.subscribe(() => done());
|
afterAll(() => api.disconnect());
|
||||||
});
|
|
||||||
|
|
||||||
afterAll(async () => {
|
|
||||||
await api.disconnect();
|
|
||||||
});
|
|
||||||
|
|
||||||
// override
|
// override
|
||||||
testFunction(api)('balances', 'fees', ['a', 'b']);
|
testFunction(api)('balances', 'fees', ['a', 'b']);
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '9.14.1' };
|
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '9.14.2' };
|
||||||
|
|||||||
+17
-17
@@ -20,29 +20,29 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "9.14.1",
|
"version": "9.14.2",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.20.13",
|
"@babel/runtime": "^7.20.13",
|
||||||
"@polkadot/api-augment": "9.14.1",
|
"@polkadot/api-augment": "9.14.2",
|
||||||
"@polkadot/api-base": "9.14.1",
|
"@polkadot/api-base": "9.14.2",
|
||||||
"@polkadot/api-derive": "9.14.1",
|
"@polkadot/api-derive": "9.14.2",
|
||||||
"@polkadot/keyring": "^10.4.1",
|
"@polkadot/keyring": "^10.4.2",
|
||||||
"@polkadot/rpc-augment": "9.14.1",
|
"@polkadot/rpc-augment": "9.14.2",
|
||||||
"@polkadot/rpc-core": "9.14.1",
|
"@polkadot/rpc-core": "9.14.2",
|
||||||
"@polkadot/rpc-provider": "9.14.1",
|
"@polkadot/rpc-provider": "9.14.2",
|
||||||
"@polkadot/types": "9.14.1",
|
"@polkadot/types": "9.14.2",
|
||||||
"@polkadot/types-augment": "9.14.1",
|
"@polkadot/types-augment": "9.14.2",
|
||||||
"@polkadot/types-codec": "9.14.1",
|
"@polkadot/types-codec": "9.14.2",
|
||||||
"@polkadot/types-create": "9.14.1",
|
"@polkadot/types-create": "9.14.2",
|
||||||
"@polkadot/types-known": "9.14.1",
|
"@polkadot/types-known": "9.14.2",
|
||||||
"@polkadot/util": "^10.4.1",
|
"@polkadot/util": "^10.4.2",
|
||||||
"@polkadot/util-crypto": "^10.4.1",
|
"@polkadot/util-crypto": "^10.4.2",
|
||||||
"eventemitter3": "^5.0.0",
|
"eventemitter3": "^5.0.0",
|
||||||
"rxjs": "^7.8.0"
|
"rxjs": "^7.8.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/api-augment": "9.14.1",
|
"@polkadot/api-augment": "9.14.2",
|
||||||
"@polkadot/types-support": "9.14.1"
|
"@polkadot/types-support": "9.14.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '9.14.1' };
|
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '9.14.2' };
|
||||||
|
|||||||
@@ -4,8 +4,6 @@
|
|||||||
import type { HexString } from '@polkadot/util/types';
|
import type { HexString } from '@polkadot/util/types';
|
||||||
import type { SubmittableExtrinsic } from '../types';
|
import type { SubmittableExtrinsic } from '../types';
|
||||||
|
|
||||||
import { jest } from '@jest/globals';
|
|
||||||
|
|
||||||
import { createPair } from '@polkadot/keyring/pair';
|
import { createPair } from '@polkadot/keyring/pair';
|
||||||
import { createTestKeyring } from '@polkadot/keyring/testing';
|
import { createTestKeyring } from '@polkadot/keyring/testing';
|
||||||
import { MockProvider } from '@polkadot/rpc-provider/mock';
|
import { MockProvider } from '@polkadot/rpc-provider/mock';
|
||||||
@@ -47,7 +45,6 @@ describe('ApiPromise', (): void => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
beforeEach((): void => {
|
beforeEach((): void => {
|
||||||
jest.setTimeout(10000);
|
|
||||||
provider = new MockProvider(registry);
|
provider = new MockProvider(registry);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -4,15 +4,14 @@
|
|||||||
import { augmentObject } from './augmentObject';
|
import { augmentObject } from './augmentObject';
|
||||||
|
|
||||||
describe('augmentObject', (): void => {
|
describe('augmentObject', (): void => {
|
||||||
let spy: any;
|
let spy: jest.SpyInstance;
|
||||||
|
|
||||||
beforeEach((): void => {
|
beforeEach((): void => {
|
||||||
spy = jest.spyOn(console, 'warn');
|
spy = jest.spyOn(console, 'warn');
|
||||||
});
|
});
|
||||||
|
|
||||||
afterEach((): void => {
|
afterEach((): void => {
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-call,@typescript-eslint/no-unsafe-member-access
|
spy.mockRestore();
|
||||||
spy.mockClear();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('logs added/removed sections and methods', (): void => {
|
it('logs added/removed sections and methods', (): void => {
|
||||||
@@ -24,12 +23,12 @@ describe('augmentObject', (): void => {
|
|||||||
|
|
||||||
expect(spy).toHaveBeenCalledWith(
|
expect(spy).toHaveBeenCalledWith(
|
||||||
expect.anything(),
|
expect.anything(),
|
||||||
expect.stringContaining('API/AUGMENT'),
|
expect.stringMatching(/API\/AUGMENT/),
|
||||||
'api.test: Found 1 added and 1 removed modules:\n\t added: new\n\tremoved: baz'
|
'api.test: Found 1 added and 1 removed modules:\n\t added: new\n\tremoved: baz'
|
||||||
);
|
);
|
||||||
expect(spy).toHaveBeenCalledWith(
|
expect(spy).toHaveBeenCalledWith(
|
||||||
expect.anything(),
|
expect.anything(),
|
||||||
expect.stringContaining('API/AUGMENT'),
|
expect.stringMatching(/API\/AUGMENT/),
|
||||||
'api.test: Found 2 added and 3 removed calls:\n\t added: bar.b, foo.d\n\tremoved: bar.a, bar.c, foo.c'
|
'api.test: Found 2 added and 3 removed calls:\n\t added: bar.b, foo.d\n\tremoved: bar.a, bar.c, foo.c'
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -20,13 +20,13 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "9.14.1",
|
"version": "9.14.2",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.20.13",
|
"@babel/runtime": "^7.20.13",
|
||||||
"@polkadot/rpc-core": "9.14.1",
|
"@polkadot/rpc-core": "9.14.2",
|
||||||
"@polkadot/types": "9.14.1",
|
"@polkadot/types": "9.14.2",
|
||||||
"@polkadot/types-codec": "9.14.1",
|
"@polkadot/types-codec": "9.14.2",
|
||||||
"@polkadot/util": "^10.4.1"
|
"@polkadot/util": "^10.4.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '9.14.1' };
|
export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '9.14.2' };
|
||||||
|
|||||||
@@ -20,18 +20,18 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "9.14.1",
|
"version": "9.14.2",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.20.13",
|
"@babel/runtime": "^7.20.13",
|
||||||
"@polkadot/rpc-augment": "9.14.1",
|
"@polkadot/rpc-augment": "9.14.2",
|
||||||
"@polkadot/rpc-provider": "9.14.1",
|
"@polkadot/rpc-provider": "9.14.2",
|
||||||
"@polkadot/types": "9.14.1",
|
"@polkadot/types": "9.14.2",
|
||||||
"@polkadot/util": "^10.4.1",
|
"@polkadot/util": "^10.4.2",
|
||||||
"rxjs": "^7.8.0"
|
"rxjs": "^7.8.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/keyring": "^10.4.1",
|
"@polkadot/keyring": "^10.4.2",
|
||||||
"@polkadot/rpc-augment": "9.14.1"
|
"@polkadot/rpc-augment": "9.14.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '9.14.1' };
|
export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '9.14.2' };
|
||||||
|
|||||||
@@ -1,16 +1,11 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-derive authors & contributors
|
// Copyright 2017-2023 @polkadot/api-derive authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { jest } from '@jest/globals';
|
|
||||||
import { of, timer } from 'rxjs';
|
import { of, timer } from 'rxjs';
|
||||||
|
|
||||||
import { drr } from '.';
|
import { drr } from '.';
|
||||||
|
|
||||||
describe('drr', (): void => {
|
describe('drr', (): void => {
|
||||||
beforeEach((): void => {
|
|
||||||
jest.setTimeout(15000);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should not fire twice the same value', (done): void => {
|
it('should not fire twice the same value', (done): void => {
|
||||||
let count = 0;
|
let count = 0;
|
||||||
|
|
||||||
|
|||||||
@@ -20,20 +20,20 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "9.14.1",
|
"version": "9.14.2",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.20.13",
|
"@babel/runtime": "^7.20.13",
|
||||||
"@polkadot/keyring": "^10.4.1",
|
"@polkadot/keyring": "^10.4.2",
|
||||||
"@polkadot/types": "9.14.1",
|
"@polkadot/types": "9.14.2",
|
||||||
"@polkadot/types-support": "9.14.1",
|
"@polkadot/types-support": "9.14.2",
|
||||||
"@polkadot/util": "^10.4.1",
|
"@polkadot/util": "^10.4.2",
|
||||||
"@polkadot/util-crypto": "^10.4.1",
|
"@polkadot/util-crypto": "^10.4.2",
|
||||||
"@polkadot/x-fetch": "^10.4.1",
|
"@polkadot/x-fetch": "^10.4.2",
|
||||||
"@polkadot/x-global": "^10.4.1",
|
"@polkadot/x-global": "^10.4.2",
|
||||||
"@polkadot/x-ws": "^10.4.1",
|
"@polkadot/x-ws": "^10.4.2",
|
||||||
"eventemitter3": "^5.0.0",
|
"eventemitter3": "^5.0.0",
|
||||||
"mock-socket": "^9.2.0",
|
"mock-socket": "^9.2.1",
|
||||||
"nock": "^13.3.0"
|
"nock": "^13.3.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
@@ -16,9 +16,9 @@ describe.skip('send', (): void => {
|
|||||||
http = new HttpProvider(TEST_HTTP_URL);
|
http = new HttpProvider(TEST_HTTP_URL);
|
||||||
});
|
});
|
||||||
|
|
||||||
afterEach((): void => {
|
afterEach(async () => {
|
||||||
if (mock) {
|
if (mock) {
|
||||||
mock.done();
|
await mock.done();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -69,11 +69,7 @@ export function mockWs (requests: Request[], wsUrl: string = TEST_WS_URL): Scope
|
|||||||
let requestCount = 0;
|
let requestCount = 0;
|
||||||
const scope: Scope = {
|
const scope: Scope = {
|
||||||
body: {},
|
body: {},
|
||||||
done: (): void => {
|
done: () => new Promise<void>((resolve) => server.stop(resolve)),
|
||||||
server.stop((): void => {
|
|
||||||
// ignore
|
|
||||||
});
|
|
||||||
},
|
|
||||||
requests: 0,
|
requests: 0,
|
||||||
server
|
server
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ export interface Mock {
|
|||||||
body: Record<string, Record<string, unknown>>;
|
body: Record<string, Record<string, unknown>>;
|
||||||
requests: number;
|
requests: number;
|
||||||
server: Server;
|
server: Server;
|
||||||
done: () => Record<string, unknown>;
|
done: () => Promise<void>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type MockStateSubscriptionCallback = (error: Error | null, value: any) => void;
|
export type MockStateSubscriptionCallback = (error: Error | null, value: any) => void;
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '9.14.1' };
|
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '9.14.2' };
|
||||||
|
|||||||
@@ -21,18 +21,33 @@
|
|||||||
import type Sc from '@substrate/connect';
|
import type Sc from '@substrate/connect';
|
||||||
import type { HealthChecker, SmoldotHealth } from './types';
|
import type { HealthChecker, SmoldotHealth } from './types';
|
||||||
|
|
||||||
import { jest } from '@jest/globals';
|
|
||||||
|
|
||||||
import { ScProvider } from '.';
|
import { ScProvider } from '.';
|
||||||
|
|
||||||
const wait = (ms: number) => new Promise((res) => setTimeout(res, ms));
|
type MockChain = Sc.Chain & {
|
||||||
|
_spec: () => string
|
||||||
|
_recevedRequests: () => string[]
|
||||||
|
_isTerminated: () => boolean
|
||||||
|
_triggerCallback: (response: string | {}) => void
|
||||||
|
_setTerminateInterceptor: (fn: () => void) => void
|
||||||
|
_setSendJsonRpcInterceptor: (fn: (rpc: string) => void) => void
|
||||||
|
_getLatestRequest: () => string
|
||||||
|
}
|
||||||
|
|
||||||
type MockedHealthChecker = HealthChecker & {
|
type MockedHealthChecker = HealthChecker & {
|
||||||
_isActive: () => boolean
|
_isActive: () => boolean
|
||||||
_triggerHealthUpdate: (update: SmoldotHealth) => void
|
_triggerHealthUpdate: (update: SmoldotHealth) => void
|
||||||
}
|
}
|
||||||
|
|
||||||
const healthCheckerMock = (): MockedHealthChecker => {
|
enum WellKnownChain {
|
||||||
|
polkadot = 'polkadot',
|
||||||
|
ksmcc3 = 'ksmcc3',
|
||||||
|
rococo_v2_2 = 'rococo_v2_2',
|
||||||
|
westend2 = 'westend2'
|
||||||
|
}
|
||||||
|
|
||||||
|
const wait = (ms: number) => new Promise((res) => setTimeout(res, ms));
|
||||||
|
|
||||||
|
function healthCheckerMock (): MockedHealthChecker {
|
||||||
let cb: (health: SmoldotHealth) => void = () => {};
|
let cb: (health: SmoldotHealth) => void = () => {};
|
||||||
|
|
||||||
let sendJsonRpc: (request: string) => void = () => {};
|
let sendJsonRpc: (request: string) => void = () => {};
|
||||||
@@ -57,9 +72,9 @@ const healthCheckerMock = (): MockedHealthChecker => {
|
|||||||
cb(update);
|
cb(update);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
};
|
}
|
||||||
|
|
||||||
const healthCheckerFactory = () => {
|
function healthCheckerFactory () {
|
||||||
const _healthCheckers: MockedHealthChecker[] = [];
|
const _healthCheckers: MockedHealthChecker[] = [];
|
||||||
|
|
||||||
return {
|
return {
|
||||||
@@ -73,21 +88,9 @@ const healthCheckerFactory = () => {
|
|||||||
_healthCheckers,
|
_healthCheckers,
|
||||||
_latestHealthChecker: () => _healthCheckers.slice(-1)[0]
|
_latestHealthChecker: () => _healthCheckers.slice(-1)[0]
|
||||||
};
|
};
|
||||||
};
|
|
||||||
|
|
||||||
jest.mock('./Health', () => healthCheckerFactory());
|
|
||||||
|
|
||||||
type MockChain = Sc.Chain & {
|
|
||||||
_spec: () => string
|
|
||||||
_recevedRequests: () => string[]
|
|
||||||
_isTerminated: () => boolean
|
|
||||||
_triggerCallback: (response: string | {}) => void
|
|
||||||
_setTerminateInterceptor: (fn: () => void) => void
|
|
||||||
_setSendJsonRpcInterceptor: (fn: (rpc: string) => void) => void
|
|
||||||
_getLatestRequest: () => string
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const getFakeChain = (spec: string, callback: Sc.JsonRpcCallback): MockChain => {
|
function getFakeChain (spec: string, callback: Sc.JsonRpcCallback): MockChain {
|
||||||
const _receivedRequests: string[] = [];
|
const _receivedRequests: string[] = [];
|
||||||
let _isTerminated = false;
|
let _isTerminated = false;
|
||||||
|
|
||||||
@@ -119,9 +122,9 @@ const getFakeChain = (spec: string, callback: Sc.JsonRpcCallback): MockChain =>
|
|||||||
},
|
},
|
||||||
_getLatestRequest: () => _receivedRequests[_receivedRequests.length - 1]
|
_getLatestRequest: () => _receivedRequests[_receivedRequests.length - 1]
|
||||||
};
|
};
|
||||||
};
|
}
|
||||||
|
|
||||||
const getFakeClient = () => {
|
function getFakeClient () {
|
||||||
const chains: MockChain[] = [];
|
const chains: MockChain[] = [];
|
||||||
let addChainInterceptor: Promise<void> = Promise.resolve();
|
let addChainInterceptor: Promise<void> = Promise.resolve();
|
||||||
let addWellKnownChainInterceptor: Promise<void> = Promise.resolve();
|
let addWellKnownChainInterceptor: Promise<void> = Promise.resolve();
|
||||||
@@ -154,16 +157,9 @@ const getFakeClient = () => {
|
|||||||
return result;
|
return result;
|
||||||
})
|
})
|
||||||
};
|
};
|
||||||
};
|
|
||||||
|
|
||||||
enum WellKnownChain {
|
|
||||||
polkadot = 'polkadot',
|
|
||||||
ksmcc3 = 'ksmcc3',
|
|
||||||
rococo_v2_2 = 'rococo_v2_2',
|
|
||||||
westend2 = 'westend2'
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const connectorFactory = () => {
|
function connectorFactory () {
|
||||||
const clients: ReturnType<typeof getFakeClient>[] = [];
|
const clients: ReturnType<typeof getFakeClient>[] = [];
|
||||||
const latestClient = () => clients[clients.length - 1];
|
const latestClient = () => clients[clients.length - 1];
|
||||||
|
|
||||||
@@ -181,26 +177,26 @@ const connectorFactory = () => {
|
|||||||
latestChain: () =>
|
latestChain: () =>
|
||||||
latestClient()._chains()[latestClient()._chains().length - 1]
|
latestClient()._chains()[latestClient()._chains().length - 1]
|
||||||
};
|
};
|
||||||
};
|
}
|
||||||
|
|
||||||
let mockSc: typeof Sc & { latestChain: () => MockChain };
|
function setChainSyncyingStatus (isSyncing: boolean) {
|
||||||
let mockedHealthChecker: ReturnType<typeof healthCheckerFactory>;
|
|
||||||
const getCurrentHealthChecker = () => mockedHealthChecker._latestHealthChecker();
|
|
||||||
|
|
||||||
const setChainSyncyingStatus = (isSyncing: boolean) => {
|
|
||||||
getCurrentHealthChecker()._triggerHealthUpdate({
|
getCurrentHealthChecker()._triggerHealthUpdate({
|
||||||
isSyncing,
|
isSyncing,
|
||||||
peers: 1,
|
peers: 1,
|
||||||
shouldHavePeers: true
|
shouldHavePeers: true
|
||||||
});
|
});
|
||||||
};
|
}
|
||||||
|
|
||||||
beforeAll(() => {
|
let mockSc: typeof Sc & { latestChain: () => MockChain };
|
||||||
mockSc = connectorFactory() as unknown as typeof Sc & { latestChain: () => MockChain };
|
let mockedHealthChecker: ReturnType<typeof healthCheckerFactory>;
|
||||||
mockedHealthChecker = healthCheckerFactory();
|
const getCurrentHealthChecker = () => mockedHealthChecker._latestHealthChecker();
|
||||||
});
|
|
||||||
|
|
||||||
describe('ScProvider', () => {
|
describe('ScProvider', () => {
|
||||||
|
beforeAll(() => {
|
||||||
|
mockSc = connectorFactory() as unknown as typeof Sc & { latestChain: () => MockChain };
|
||||||
|
mockedHealthChecker = healthCheckerFactory();
|
||||||
|
});
|
||||||
|
|
||||||
describe('on', () => {
|
describe('on', () => {
|
||||||
it('emits `connected` as soon as the chain is not syncing', async () => {
|
it('emits `connected` as soon as the chain is not syncing', async () => {
|
||||||
const provider = new ScProvider(mockSc, '');
|
const provider = new ScProvider(mockSc, '');
|
||||||
@@ -251,16 +247,15 @@ describe('ScProvider', () => {
|
|||||||
setChainSyncyingStatus(false);
|
setChainSyncyingStatus(false);
|
||||||
|
|
||||||
const onConnected = jest.fn();
|
const onConnected = jest.fn();
|
||||||
|
|
||||||
provider.on('connected', onConnected);
|
|
||||||
const onDisconnected = jest.fn();
|
const onDisconnected = jest.fn();
|
||||||
|
|
||||||
|
provider.on('connected', onConnected);
|
||||||
provider.on('disconnected', onDisconnected);
|
provider.on('disconnected', onDisconnected);
|
||||||
|
|
||||||
expect(onConnected).toHaveBeenCalled();
|
expect(onConnected).toHaveBeenCalled();
|
||||||
expect(onDisconnected).not.toHaveBeenCalled();
|
expect(onDisconnected).not.toHaveBeenCalled();
|
||||||
|
|
||||||
onConnected.mockRestore();
|
onConnected.mockReset();
|
||||||
setChainSyncyingStatus(true);
|
setChainSyncyingStatus(true);
|
||||||
|
|
||||||
expect(onConnected).not.toHaveBeenCalled();
|
expect(onConnected).not.toHaveBeenCalled();
|
||||||
@@ -284,7 +279,7 @@ describe('ScProvider', () => {
|
|||||||
|
|
||||||
await provider.connect(undefined, mockedHealthChecker.healthChecker);
|
await provider.connect(undefined, mockedHealthChecker.healthChecker);
|
||||||
|
|
||||||
expect(() => provider.clone()).toThrowError();
|
expect(() => provider.clone()).toThrow();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -306,9 +301,9 @@ describe('ScProvider', () => {
|
|||||||
|
|
||||||
setChainSyncyingStatus(false);
|
setChainSyncyingStatus(false);
|
||||||
|
|
||||||
await expect(provider.connect(undefined, mockedHealthChecker.healthChecker)).rejects.toThrowError(
|
await expect(
|
||||||
'Already connected!'
|
provider.connect(undefined, mockedHealthChecker.healthChecker)
|
||||||
);
|
).rejects.toThrow(/Already connected/);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -328,9 +323,8 @@ describe('ScProvider', () => {
|
|||||||
const provider = new ScProvider(mockSc, '');
|
const provider = new ScProvider(mockSc, '');
|
||||||
|
|
||||||
await provider.connect(undefined, mockedHealthChecker.healthChecker);
|
await provider.connect(undefined, mockedHealthChecker.healthChecker);
|
||||||
|
|
||||||
await provider.disconnect();
|
await provider.disconnect();
|
||||||
await expect(provider.disconnect()).resolves.not.toThrow();
|
await provider.disconnect();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -402,9 +396,9 @@ describe('ScProvider', () => {
|
|||||||
throw new Error('boom!');
|
throw new Error('boom!');
|
||||||
});
|
});
|
||||||
|
|
||||||
await expect(provider.send('getData', ['foo'])).rejects.toThrowError(
|
await expect(
|
||||||
'Disconnected'
|
provider.send('getData', ['foo'])
|
||||||
);
|
).rejects.toThrow(/Disconnected/);
|
||||||
expect(provider.isConnected).toBe(false);
|
expect(provider.isConnected).toBe(false);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@@ -551,8 +545,7 @@ describe('ScProvider', () => {
|
|||||||
|
|
||||||
expect(token).toBe(unsubscribeToken);
|
expect(token).toBe(unsubscribeToken);
|
||||||
expect(cb).toHaveBeenCalledTimes(1);
|
expect(cb).toHaveBeenCalledTimes(1);
|
||||||
expect(cb.mock.lastCall![0]).toBeInstanceOf(Error);
|
expect(cb).toHaveBeenLastCalledWith(expect.any(Error), undefined);
|
||||||
expect(cb.mock.lastCall![1]).toBe(undefined);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('errors when subscribing to an unsupported method', async () => {
|
it('errors when subscribing to an unsupported method', async () => {
|
||||||
@@ -561,11 +554,11 @@ describe('ScProvider', () => {
|
|||||||
await provider.connect(undefined, mockedHealthChecker.healthChecker);
|
await provider.connect(undefined, mockedHealthChecker.healthChecker);
|
||||||
|
|
||||||
setChainSyncyingStatus(false);
|
setChainSyncyingStatus(false);
|
||||||
await wait(0);
|
|
||||||
|
|
||||||
|
await wait(0);
|
||||||
await expect(
|
await expect(
|
||||||
provider.subscribe('foo', 'bar', ['baz'], () => {})
|
provider.subscribe('foo', 'bar', ['baz'], () => {})
|
||||||
).rejects.toThrowError('Unsupported subscribe method: bar');
|
).rejects.toThrow(/Unsupported subscribe method: bar/);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -577,9 +570,9 @@ describe('ScProvider', () => {
|
|||||||
|
|
||||||
setChainSyncyingStatus(false);
|
setChainSyncyingStatus(false);
|
||||||
|
|
||||||
await expect(provider.unsubscribe('', '', '')).rejects.toThrowError(
|
await expect(
|
||||||
'Unable to find active subscription=::'
|
provider.unsubscribe('', '', '')
|
||||||
);
|
).rejects.toThrow(/Unable to find active subscription/);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -3,97 +3,104 @@
|
|||||||
|
|
||||||
import type { Mock } from '../mock/types';
|
import type { Mock } from '../mock/types';
|
||||||
|
|
||||||
import { jest } from '@jest/globals';
|
|
||||||
|
|
||||||
import { mockWs } from '../mock/mockWs';
|
import { mockWs } from '../mock/mockWs';
|
||||||
import { WsProvider } from './';
|
import { WsProvider } from './';
|
||||||
|
|
||||||
const TEST_WS_URL = 'ws://localhost-connect.spec.ts:9988';
|
const TEST_WS_URL = 'ws://localhost-connect.spec.ts:9988';
|
||||||
|
|
||||||
function sleepMs (ms = 0): Promise<void> {
|
function sleep (ms = 100): Promise<void> {
|
||||||
return new Promise((resolve) => setTimeout(resolve, ms));
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
||||||
}
|
}
|
||||||
|
|
||||||
describe('onConnect', (): void => {
|
describe('onConnect', (): void => {
|
||||||
let mocks: Mock[];
|
let mocks: Mock[];
|
||||||
|
let provider: WsProvider | null;
|
||||||
|
|
||||||
beforeEach((): void => {
|
beforeEach((): void => {
|
||||||
jest.setTimeout(30000);
|
|
||||||
mocks = [mockWs([], TEST_WS_URL)];
|
mocks = [mockWs([], TEST_WS_URL)];
|
||||||
});
|
});
|
||||||
|
|
||||||
afterEach((): void => {
|
afterEach(async () => {
|
||||||
jest.setTimeout(5000);
|
if (provider) {
|
||||||
mocks.forEach((m) => {
|
await provider.disconnect();
|
||||||
if (m) {
|
await sleep();
|
||||||
m.done();
|
|
||||||
}
|
provider = null;
|
||||||
});
|
}
|
||||||
|
|
||||||
|
await Promise.all(mocks.map((m) => m.done()));
|
||||||
|
await sleep();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('Does not connect when autoConnect is false', async () => {
|
it('Does not connect when autoConnect is false', async () => {
|
||||||
const provider: WsProvider = new WsProvider(TEST_WS_URL, 0);
|
provider = new WsProvider(TEST_WS_URL, 0);
|
||||||
|
|
||||||
|
await sleep();
|
||||||
|
|
||||||
await sleepMs(100); // Hack to give the provider time to connect
|
|
||||||
expect(provider.isConnected).toBe(false);
|
expect(provider.isConnected).toBe(false);
|
||||||
|
|
||||||
await provider.connect();
|
await provider.connect();
|
||||||
await sleepMs(100); // Hack to give the provider time to connect
|
await sleep();
|
||||||
|
|
||||||
expect(provider.isConnected).toBe(true);
|
expect(provider.isConnected).toBe(true);
|
||||||
|
|
||||||
await provider.disconnect();
|
await provider.disconnect();
|
||||||
|
await sleep();
|
||||||
|
|
||||||
await sleepMs(100); // Hack to give the provider time to connect
|
|
||||||
expect(provider.isConnected).toBe(false);
|
expect(provider.isConnected).toBe(false);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('Does connect when autoConnect is true', async () => {
|
it('Does connect when autoConnect is true', async () => {
|
||||||
const provider: WsProvider = new WsProvider(TEST_WS_URL, 1);
|
provider = new WsProvider(TEST_WS_URL, 1);
|
||||||
|
|
||||||
|
await sleep();
|
||||||
|
|
||||||
await sleepMs(100); // Hack to give the provider time to connect
|
|
||||||
expect(provider.isConnected).toBe(true);
|
expect(provider.isConnected).toBe(true);
|
||||||
|
|
||||||
await provider.disconnect();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('Creates a new WebSocket instance by calling the connect() method', async () => {
|
it('Creates a new WebSocket instance by calling the connect() method', async () => {
|
||||||
const provider: WsProvider = new WsProvider(TEST_WS_URL, false);
|
provider = new WsProvider(TEST_WS_URL, false);
|
||||||
|
|
||||||
expect(provider.isConnected).toBe(false);
|
expect(provider.isConnected).toBe(false);
|
||||||
expect(mocks[0].server.clients().length).toBe(0);
|
expect(mocks[0].server.clients().length).toBe(0);
|
||||||
|
|
||||||
await provider.connect();
|
await provider.connect();
|
||||||
await sleepMs(100); // Hack to give the provider time to connect
|
await sleep();
|
||||||
|
|
||||||
expect(provider.isConnected).toBe(true);
|
expect(provider.isConnected).toBe(true);
|
||||||
expect(mocks[0].server.clients()).toHaveLength(1);
|
expect(mocks[0].server.clients()).toHaveLength(1);
|
||||||
|
|
||||||
await provider.disconnect();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('Connects to first endpoint when an array is given', async () => {
|
it('Connects to first endpoint when an array is given', async () => {
|
||||||
const provider: WsProvider = new WsProvider([TEST_WS_URL], 1);
|
provider = new WsProvider([TEST_WS_URL], 1);
|
||||||
|
|
||||||
await provider.connect();
|
await sleep();
|
||||||
await sleepMs(100); // Hack to give the provider time to connect
|
|
||||||
|
expect(provider.isConnected).toBe(true);
|
||||||
|
expect(mocks[0].server.clients()).toHaveLength(1);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('Does not allow connect() on already-connected', async () => {
|
||||||
|
provider = new WsProvider([TEST_WS_URL], 1);
|
||||||
|
|
||||||
|
await sleep();
|
||||||
|
|
||||||
expect(provider.isConnected).toBe(true);
|
expect(provider.isConnected).toBe(true);
|
||||||
|
|
||||||
await provider.disconnect();
|
await expect(
|
||||||
|
provider.connect()
|
||||||
|
).rejects.toThrow(/already connected/);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('Connects to the second endpoint when the first is unreachable', async () => {
|
it('Connects to the second endpoint when the first is unreachable', async () => {
|
||||||
/* eslint-disable @typescript-eslint/no-empty-function */
|
const endpoints: string[] = ['ws://localhost-unreachable-connect.spec.ts:9956', TEST_WS_URL];
|
||||||
jest.spyOn(console, 'error').mockImplementation((): void => {});
|
|
||||||
|
|
||||||
const endpoints: string[] = ['ws://localhost-connect.spec.ts:9956', TEST_WS_URL];
|
provider = new WsProvider(endpoints, 1);
|
||||||
const provider: WsProvider = new WsProvider(endpoints, 1);
|
|
||||||
|
|
||||||
await sleepMs(100); // Hack to give the provider time to connect
|
await sleep();
|
||||||
|
|
||||||
|
expect(mocks[0].server.clients()).toHaveLength(1);
|
||||||
expect(provider.isConnected).toBe(true);
|
expect(provider.isConnected).toBe(true);
|
||||||
|
|
||||||
await provider.disconnect();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('Connects to the second endpoint when the first is dropped', async () => {
|
it('Connects to the second endpoint when the first is dropped', async () => {
|
||||||
@@ -101,22 +108,22 @@ describe('onConnect', (): void => {
|
|||||||
|
|
||||||
mocks.push(mockWs([], endpoints[1]));
|
mocks.push(mockWs([], endpoints[1]));
|
||||||
|
|
||||||
const provider: WsProvider = new WsProvider(endpoints, 1);
|
provider = new WsProvider(endpoints, 1);
|
||||||
|
|
||||||
|
await sleep();
|
||||||
|
|
||||||
await sleepMs(100); // Hack to give the provider time to connect
|
|
||||||
// Check that first server is connected
|
// Check that first server is connected
|
||||||
expect(mocks[0].server.clients()).toHaveLength(1);
|
expect(mocks[0].server.clients()).toHaveLength(1);
|
||||||
expect(mocks[1].server.clients()).toHaveLength(0);
|
expect(mocks[1].server.clients()).toHaveLength(0);
|
||||||
|
|
||||||
// Close connection from first server
|
// Close connection from first server
|
||||||
mocks[0].server.clients()[0].close();
|
mocks[0].server.clients()[0].close();
|
||||||
await sleepMs(100);
|
|
||||||
|
await sleep();
|
||||||
|
|
||||||
// Check that second server is connected
|
// Check that second server is connected
|
||||||
expect(mocks[1].server.clients()).toHaveLength(1);
|
expect(mocks[1].server.clients()).toHaveLength(1);
|
||||||
expect(provider.isConnected).toBe(true);
|
expect(provider.isConnected).toBe(true);
|
||||||
|
|
||||||
await provider.disconnect();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('Round-robin of endpoints on WsProvider', async () => {
|
it('Round-robin of endpoints on WsProvider', async () => {
|
||||||
@@ -138,22 +145,21 @@ describe('onConnect', (): void => {
|
|||||||
mocks[3],
|
mocks[3],
|
||||||
mocks[0]
|
mocks[0]
|
||||||
];
|
];
|
||||||
const provider: WsProvider = new WsProvider(endpoints, 1);
|
|
||||||
|
|
||||||
for (let round = 0; round < 5; round++) {
|
provider = new WsProvider(endpoints, 1);
|
||||||
|
|
||||||
|
for (let round = 0; round < 2; round++) {
|
||||||
for (let mock = 0; mock < mocks.length; mock++) {
|
for (let mock = 0; mock < mocks.length; mock++) {
|
||||||
await sleepMs(100); // Hack to give the provider time to connect
|
await sleep();
|
||||||
|
|
||||||
// Check that first server is connected and the next one isn't
|
// Wwe are connected, the current mock has the connection and the next doesn't
|
||||||
|
expect(provider.isConnected).toBe(true);
|
||||||
expect(mocks[mock].server.clients()).toHaveLength(1);
|
expect(mocks[mock].server.clients()).toHaveLength(1);
|
||||||
expect(mockNext[mock].server.clients()).toHaveLength(0);
|
expect(mockNext[mock].server.clients()).toHaveLength(0);
|
||||||
expect(provider.isConnected).toBe(true);
|
|
||||||
|
|
||||||
// Close connection from first server
|
// Close connection from first server
|
||||||
mocks[mock].server.clients()[0].close();
|
mocks[mock].server.clients()[0].close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
await provider.disconnect();
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ function createWs (requests: Request[], autoConnect = 1000, headers?: Record<str
|
|||||||
describe('Ws', (): void => {
|
describe('Ws', (): void => {
|
||||||
afterEach(async () => {
|
afterEach(async () => {
|
||||||
if (mock) {
|
if (mock) {
|
||||||
mock.done();
|
await mock.done();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (provider) {
|
if (provider) {
|
||||||
@@ -58,7 +58,7 @@ describe('Endpoint Parsing', (): void => {
|
|||||||
it('Throws when WsProvider endpoint is an invalid string', () => {
|
it('Throws when WsProvider endpoint is an invalid string', () => {
|
||||||
expect(
|
expect(
|
||||||
() => new WsProvider('http://127.0.0.1:9955', 0)
|
() => new WsProvider('http://127.0.0.1:9955', 0)
|
||||||
).toThrowError(/^Endpoint should start with /);
|
).toThrow(/^Endpoint should start with /);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('Succeeds when WsProvider endpoint is a valid array', () => {
|
it('Succeeds when WsProvider endpoint is a valid array', () => {
|
||||||
@@ -73,7 +73,7 @@ describe('Endpoint Parsing', (): void => {
|
|||||||
|
|
||||||
expect(
|
expect(
|
||||||
() => new WsProvider(endpoints, 0)
|
() => new WsProvider(endpoints, 0)
|
||||||
).toThrowError('WsProvider requires at least one Endpoint');
|
).toThrow('WsProvider requires at least one Endpoint');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('Throws when WsProvider endpoint is an invalid array', () => {
|
it('Throws when WsProvider endpoint is an invalid array', () => {
|
||||||
@@ -81,6 +81,6 @@ describe('Endpoint Parsing', (): void => {
|
|||||||
|
|
||||||
expect(
|
expect(
|
||||||
() => new WsProvider(endpoints, 0)
|
() => new WsProvider(endpoints, 0)
|
||||||
).toThrowError(/^Endpoint should start with /);
|
).toThrow(/^Endpoint should start with /);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -188,6 +188,10 @@ export class WsProvider implements ProviderInterface {
|
|||||||
*/
|
*/
|
||||||
// eslint-disable-next-line @typescript-eslint/require-await
|
// eslint-disable-next-line @typescript-eslint/require-await
|
||||||
public async connect (): Promise<void> {
|
public async connect (): Promise<void> {
|
||||||
|
if (this.#websocket) {
|
||||||
|
throw new Error('WebSocket is already connected');
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
this.#endpointIndex = (this.#endpointIndex + 1) % this.#endpoints.length;
|
this.#endpointIndex = (this.#endpointIndex + 1) % this.#endpoints.length;
|
||||||
|
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ describe('send', (): void => {
|
|||||||
global.WebSocket = globalWs;
|
global.WebSocket = globalWs;
|
||||||
|
|
||||||
if (mock) {
|
if (mock) {
|
||||||
mock.done();
|
await mock.done();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (provider) {
|
if (provider) {
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ describe('subscribe', (): void => {
|
|||||||
global.WebSocket = globalWs;
|
global.WebSocket = globalWs;
|
||||||
|
|
||||||
if (mock) {
|
if (mock) {
|
||||||
mock.done();
|
await mock.done();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (provider) {
|
if (provider) {
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ describe('subscribe', (): void => {
|
|||||||
global.WebSocket = globalWs;
|
global.WebSocket = globalWs;
|
||||||
|
|
||||||
if (mock) {
|
if (mock) {
|
||||||
mock.done();
|
await mock.done();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (provider) {
|
if (provider) {
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "9.14.1",
|
"version": "9.14.2",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"bin": {
|
"bin": {
|
||||||
"polkadot-types-chain-info": "./scripts/polkadot-types-chain-info.cjs",
|
"polkadot-types-chain-info": "./scripts/polkadot-types-chain-info.cjs",
|
||||||
@@ -33,18 +33,18 @@
|
|||||||
"@babel/core": "^7.20.12",
|
"@babel/core": "^7.20.12",
|
||||||
"@babel/register": "^7.18.9",
|
"@babel/register": "^7.18.9",
|
||||||
"@babel/runtime": "^7.20.13",
|
"@babel/runtime": "^7.20.13",
|
||||||
"@polkadot/api": "9.14.1",
|
"@polkadot/api": "9.14.2",
|
||||||
"@polkadot/api-augment": "9.14.1",
|
"@polkadot/api-augment": "9.14.2",
|
||||||
"@polkadot/rpc-augment": "9.14.1",
|
"@polkadot/rpc-augment": "9.14.2",
|
||||||
"@polkadot/rpc-provider": "9.14.1",
|
"@polkadot/rpc-provider": "9.14.2",
|
||||||
"@polkadot/types": "9.14.1",
|
"@polkadot/types": "9.14.2",
|
||||||
"@polkadot/types-augment": "9.14.1",
|
"@polkadot/types-augment": "9.14.2",
|
||||||
"@polkadot/types-codec": "9.14.1",
|
"@polkadot/types-codec": "9.14.2",
|
||||||
"@polkadot/types-create": "9.14.1",
|
"@polkadot/types-create": "9.14.2",
|
||||||
"@polkadot/types-support": "9.14.1",
|
"@polkadot/types-support": "9.14.2",
|
||||||
"@polkadot/util": "^10.4.1",
|
"@polkadot/util": "^10.4.2",
|
||||||
"@polkadot/util-crypto": "^10.4.1",
|
"@polkadot/util-crypto": "^10.4.2",
|
||||||
"@polkadot/x-ws": "^10.4.1",
|
"@polkadot/x-ws": "^10.4.2",
|
||||||
"handlebars": "^4.7.7",
|
"handlebars": "^4.7.7",
|
||||||
"websocket": "^1.0.34",
|
"websocket": "^1.0.34",
|
||||||
"yargs": "^17.6.2"
|
"yargs": "^17.6.2"
|
||||||
|
|||||||
@@ -50,16 +50,14 @@ function entrySignature (lookup: PortableRegistry, allDefs: Record<string, Modul
|
|||||||
storageEntry.modifier.isOptional
|
storageEntry.modifier.isOptional
|
||||||
? 'Option'
|
? 'Option'
|
||||||
: null,
|
: null,
|
||||||
defValue.lookupName
|
defValue.lookupName || defValue.type
|
||||||
? undefined
|
|
||||||
: defValue.type
|
|
||||||
]);
|
]);
|
||||||
|
|
||||||
return [
|
return [
|
||||||
storageEntry.modifier.isOptional,
|
storageEntry.modifier.isOptional,
|
||||||
keyDefs.map((k) => formatType(registry, allDefs, k.lookupName || k.type, imports)).join(', '),
|
keyDefs.map((k) => formatType(registry, allDefs, k.lookupName || k.type, imports)).join(', '),
|
||||||
keyTypes.map((t, i) => `arg${keyTypes.length === 1 ? '' : (i + 1)}: ${t}`).join(', '),
|
keyTypes.map((t, i) => `arg${keyTypes.length === 1 ? '' : (i + 1)}: ${t}`).join(', '),
|
||||||
formatType(registry, allDefs, outputType, imports)
|
outputType.lookupName || formatType(registry, allDefs, outputType, imports)
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '9.14.1' };
|
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '9.14.2' };
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
import fs from 'fs';
|
import fs from 'fs';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
|
import process from 'process';
|
||||||
|
|
||||||
import { packageInfo } from '../packageInfo';
|
import { packageInfo } from '../packageInfo';
|
||||||
|
|
||||||
@@ -25,7 +26,7 @@ export function writeFile (dest: string, generator: () => string, noLog?: boolea
|
|||||||
export function readTemplate (template: string): string {
|
export function readTemplate (template: string): string {
|
||||||
// Inside the api repo itself, it will be 'auto'
|
// Inside the api repo itself, it will be 'auto'
|
||||||
const rootDir = packageInfo.path === 'auto'
|
const rootDir = packageInfo.path === 'auto'
|
||||||
? path.join(__dirname, '..')
|
? path.join(process.cwd(), 'packages/typegen/src')
|
||||||
: packageInfo.path;
|
: packageInfo.path;
|
||||||
|
|
||||||
// NOTE With cjs in a subdir, search one lower as well
|
// NOTE With cjs in a subdir, search one lower as well
|
||||||
|
|||||||
@@ -20,12 +20,12 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "9.14.1",
|
"version": "9.14.2",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.20.13",
|
"@babel/runtime": "^7.20.13",
|
||||||
"@polkadot/types": "9.14.1",
|
"@polkadot/types": "9.14.2",
|
||||||
"@polkadot/types-codec": "9.14.1",
|
"@polkadot/types-codec": "9.14.2",
|
||||||
"@polkadot/util": "^10.4.1"
|
"@polkadot/util": "^10.4.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -164,7 +164,7 @@ export default {
|
|||||||
votes24: 'Vec<(Compact<u32>,[(Compact<u16>,Compact<PerU16>);23],Compact<u16>)>'
|
votes24: 'Vec<(Compact<u32>,[(Compact<u16>,Compact<PerU16>);23],Compact<u16>)>'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup871: kusama_runtime::Runtime
|
* Lookup876: kusama_runtime::Runtime
|
||||||
**/
|
**/
|
||||||
KusamaRuntimeRuntime: 'Null'
|
KusamaRuntimeRuntime: 'Null'
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -382,7 +382,10 @@ export default {
|
|||||||
},
|
},
|
||||||
PalletInstance: 'u8',
|
PalletInstance: 'u8',
|
||||||
GeneralIndex: 'Compact<u128>',
|
GeneralIndex: 'Compact<u128>',
|
||||||
GeneralKey: '[u8;32]',
|
GeneralKey: {
|
||||||
|
length: 'u8',
|
||||||
|
data: '[u8;32]',
|
||||||
|
},
|
||||||
OnlyChild: 'Null',
|
OnlyChild: 'Null',
|
||||||
Plurality: {
|
Plurality: {
|
||||||
id: 'XcmV3JunctionBodyId',
|
id: 'XcmV3JunctionBodyId',
|
||||||
@@ -1449,14 +1452,14 @@ export default {
|
|||||||
hrmpWatermark: 'u32'
|
hrmpWatermark: 'u32'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup411: polkadot_core_primitives::OutboundHrmpMessage<polkadot_parachain::primitives::Id>
|
* Lookup412: polkadot_core_primitives::OutboundHrmpMessage<polkadot_parachain::primitives::Id>
|
||||||
**/
|
**/
|
||||||
PolkadotCorePrimitivesOutboundHrmpMessage: {
|
PolkadotCorePrimitivesOutboundHrmpMessage: {
|
||||||
recipient: 'u32',
|
recipient: 'u32',
|
||||||
data: 'Bytes'
|
data: 'Bytes'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup415: polkadot_primitives::v2::ValidityAttestation
|
* Lookup417: polkadot_primitives::v2::ValidityAttestation
|
||||||
**/
|
**/
|
||||||
PolkadotPrimitivesV2ValidityAttestation: {
|
PolkadotPrimitivesV2ValidityAttestation: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -1466,7 +1469,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup417: polkadot_primitives::v2::DisputeStatementSet
|
* Lookup419: polkadot_primitives::v2::DisputeStatementSet
|
||||||
**/
|
**/
|
||||||
PolkadotPrimitivesV2DisputeStatementSet: {
|
PolkadotPrimitivesV2DisputeStatementSet: {
|
||||||
candidateHash: 'H256',
|
candidateHash: 'H256',
|
||||||
@@ -1474,7 +1477,7 @@ export default {
|
|||||||
statements: 'Vec<(PolkadotPrimitivesV2DisputeStatement,u32,PolkadotPrimitivesV2ValidatorAppSignature)>'
|
statements: 'Vec<(PolkadotPrimitivesV2DisputeStatement,u32,PolkadotPrimitivesV2ValidatorAppSignature)>'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup420: polkadot_primitives::v2::DisputeStatement
|
* Lookup422: polkadot_primitives::v2::DisputeStatement
|
||||||
**/
|
**/
|
||||||
PolkadotPrimitivesV2DisputeStatement: {
|
PolkadotPrimitivesV2DisputeStatement: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -1483,7 +1486,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup421: polkadot_primitives::v2::ValidDisputeStatementKind
|
* Lookup423: polkadot_primitives::v2::ValidDisputeStatementKind
|
||||||
**/
|
**/
|
||||||
PolkadotPrimitivesV2ValidDisputeStatementKind: {
|
PolkadotPrimitivesV2ValidDisputeStatementKind: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -1494,13 +1497,13 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup422: polkadot_primitives::v2::InvalidDisputeStatementKind
|
* Lookup424: polkadot_primitives::v2::InvalidDisputeStatementKind
|
||||||
**/
|
**/
|
||||||
PolkadotPrimitivesV2InvalidDisputeStatementKind: {
|
PolkadotPrimitivesV2InvalidDisputeStatementKind: {
|
||||||
_enum: ['Explicit']
|
_enum: ['Explicit']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup423: polkadot_runtime_parachains::paras::pallet::Call<T>
|
* Lookup425: polkadot_runtime_parachains::paras::pallet::Call<T>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsParasPalletCall: {
|
PolkadotRuntimeParachainsParasPalletCall: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -1537,7 +1540,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup424: polkadot_primitives::v2::PvfCheckStatement
|
* Lookup426: polkadot_primitives::v2::PvfCheckStatement
|
||||||
**/
|
**/
|
||||||
PolkadotPrimitivesV2PvfCheckStatement: {
|
PolkadotPrimitivesV2PvfCheckStatement: {
|
||||||
accept: 'bool',
|
accept: 'bool',
|
||||||
@@ -1546,7 +1549,7 @@ export default {
|
|||||||
validatorIndex: 'u32'
|
validatorIndex: 'u32'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup425: polkadot_runtime_parachains::initializer::pallet::Call<T>
|
* Lookup427: polkadot_runtime_parachains::initializer::pallet::Call<T>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsInitializerPalletCall: {
|
PolkadotRuntimeParachainsInitializerPalletCall: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -1556,11 +1559,11 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup426: polkadot_runtime_parachains::dmp::pallet::Call<T>
|
* Lookup428: polkadot_runtime_parachains::dmp::pallet::Call<T>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsDmpPalletCall: 'Null',
|
PolkadotRuntimeParachainsDmpPalletCall: 'Null',
|
||||||
/**
|
/**
|
||||||
* Lookup427: polkadot_runtime_parachains::ump::pallet::Call<T>
|
* Lookup429: polkadot_runtime_parachains::ump::pallet::Call<T>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsUmpPalletCall: {
|
PolkadotRuntimeParachainsUmpPalletCall: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -1571,7 +1574,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup428: polkadot_runtime_parachains::hrmp::pallet::Call<T>
|
* Lookup430: polkadot_runtime_parachains::hrmp::pallet::Call<T>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsHrmpPalletCall: {
|
PolkadotRuntimeParachainsHrmpPalletCall: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -1610,13 +1613,13 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup429: polkadot_runtime_parachains::disputes::pallet::Call<T>
|
* Lookup431: polkadot_runtime_parachains::disputes::pallet::Call<T>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsDisputesPalletCall: {
|
PolkadotRuntimeParachainsDisputesPalletCall: {
|
||||||
_enum: ['force_unfreeze']
|
_enum: ['force_unfreeze']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup430: polkadot_runtime_common::paras_registrar::pallet::Call<T>
|
* Lookup432: polkadot_runtime_common::paras_registrar::pallet::Call<T>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeCommonParasRegistrarPalletCall: {
|
PolkadotRuntimeCommonParasRegistrarPalletCall: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -1657,7 +1660,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup431: polkadot_runtime_common::slots::pallet::Call<T>
|
* Lookup433: polkadot_runtime_common::slots::pallet::Call<T>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeCommonSlotsPalletCall: {
|
PolkadotRuntimeCommonSlotsPalletCall: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -1677,7 +1680,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup432: polkadot_runtime_common::auctions::pallet::Call<T>
|
* Lookup434: polkadot_runtime_common::auctions::pallet::Call<T>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeCommonAuctionsPalletCall: {
|
PolkadotRuntimeCommonAuctionsPalletCall: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -1696,7 +1699,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup434: polkadot_runtime_common::crowdloan::pallet::Call<T>
|
* Lookup436: polkadot_runtime_common::crowdloan::pallet::Call<T>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeCommonCrowdloanPalletCall: {
|
PolkadotRuntimeCommonCrowdloanPalletCall: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -1745,7 +1748,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup436: sp_runtime::MultiSigner
|
* Lookup438: sp_runtime::MultiSigner
|
||||||
**/
|
**/
|
||||||
SpRuntimeMultiSigner: {
|
SpRuntimeMultiSigner: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -1755,11 +1758,11 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup437: sp_core::ecdsa::Public
|
* Lookup439: sp_core::ecdsa::Public
|
||||||
**/
|
**/
|
||||||
SpCoreEcdsaPublic: '[u8;33]',
|
SpCoreEcdsaPublic: '[u8;33]',
|
||||||
/**
|
/**
|
||||||
* Lookup442: pallet_xcm::pallet::Call<T>
|
* Lookup444: pallet_xcm::pallet::Call<T>
|
||||||
**/
|
**/
|
||||||
PalletXcmCall: {
|
PalletXcmCall: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -1813,7 +1816,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup443: xcm::VersionedXcm<RuntimeCall>
|
* Lookup445: xcm::VersionedXcm<RuntimeCall>
|
||||||
**/
|
**/
|
||||||
XcmVersionedXcm: {
|
XcmVersionedXcm: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -1824,11 +1827,11 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup444: xcm::v2::Xcm<RuntimeCall>
|
* Lookup446: xcm::v2::Xcm<RuntimeCall>
|
||||||
**/
|
**/
|
||||||
XcmV2Xcm: 'Vec<XcmV2Instruction>',
|
XcmV2Xcm: 'Vec<XcmV2Instruction>',
|
||||||
/**
|
/**
|
||||||
* Lookup446: xcm::v2::Instruction<RuntimeCall>
|
* Lookup448: xcm::v2::Instruction<RuntimeCall>
|
||||||
**/
|
**/
|
||||||
XcmV2Instruction: {
|
XcmV2Instruction: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -1926,7 +1929,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup447: xcm::v2::Response
|
* Lookup449: xcm::v2::Response
|
||||||
**/
|
**/
|
||||||
XcmV2Response: {
|
XcmV2Response: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -1937,7 +1940,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup450: xcm::v2::traits::Error
|
* Lookup452: xcm::v2::traits::Error
|
||||||
**/
|
**/
|
||||||
XcmV2TraitsError: {
|
XcmV2TraitsError: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -1970,7 +1973,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup451: xcm::v2::multiasset::MultiAssetFilter
|
* Lookup453: xcm::v2::multiasset::MultiAssetFilter
|
||||||
**/
|
**/
|
||||||
XcmV2MultiassetMultiAssetFilter: {
|
XcmV2MultiassetMultiAssetFilter: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -1979,7 +1982,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup452: xcm::v2::multiasset::WildMultiAsset
|
* Lookup454: xcm::v2::multiasset::WildMultiAsset
|
||||||
**/
|
**/
|
||||||
XcmV2MultiassetWildMultiAsset: {
|
XcmV2MultiassetWildMultiAsset: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -1991,13 +1994,13 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup453: xcm::v2::multiasset::WildFungibility
|
* Lookup455: xcm::v2::multiasset::WildFungibility
|
||||||
**/
|
**/
|
||||||
XcmV2MultiassetWildFungibility: {
|
XcmV2MultiassetWildFungibility: {
|
||||||
_enum: ['Fungible', 'NonFungible']
|
_enum: ['Fungible', 'NonFungible']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup454: xcm::v2::WeightLimit
|
* Lookup456: xcm::v2::WeightLimit
|
||||||
**/
|
**/
|
||||||
XcmV2WeightLimit: {
|
XcmV2WeightLimit: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -2006,13 +2009,13 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup570: polkadot_runtime_common::claims::pallet::Error<T>
|
* Lookup572: polkadot_runtime_common::claims::pallet::Error<T>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeCommonClaimsPalletError: {
|
PolkadotRuntimeCommonClaimsPalletError: {
|
||||||
_enum: ['InvalidEthereumSignature', 'SignerHasNoClaim', 'SenderHasNoClaim', 'PotUnderflow', 'InvalidStatement', 'VestedBalanceExists']
|
_enum: ['InvalidEthereumSignature', 'SignerHasNoClaim', 'SenderHasNoClaim', 'PotUnderflow', 'InvalidStatement', 'VestedBalanceExists']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup645: polkadot_runtime_parachains::configuration::HostConfiguration<BlockNumber>
|
* Lookup647: polkadot_runtime_parachains::configuration::HostConfiguration<BlockNumber>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsConfigurationHostConfiguration: {
|
PolkadotRuntimeParachainsConfigurationHostConfiguration: {
|
||||||
maxCodeSize: 'u32',
|
maxCodeSize: 'u32',
|
||||||
@@ -2059,20 +2062,20 @@ export default {
|
|||||||
minimumValidationUpgradeDelay: 'u32'
|
minimumValidationUpgradeDelay: 'u32'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup648: polkadot_runtime_parachains::configuration::pallet::Error<T>
|
* Lookup650: polkadot_runtime_parachains::configuration::pallet::Error<T>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsConfigurationPalletError: {
|
PolkadotRuntimeParachainsConfigurationPalletError: {
|
||||||
_enum: ['InvalidNewValue']
|
_enum: ['InvalidNewValue']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup651: polkadot_runtime_parachains::inclusion::AvailabilityBitfieldRecord<N>
|
* Lookup653: polkadot_runtime_parachains::inclusion::AvailabilityBitfieldRecord<N>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord: {
|
PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord: {
|
||||||
bitfield: 'BitVec',
|
bitfield: 'BitVec',
|
||||||
submittedAt: 'u32'
|
submittedAt: 'u32'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup652: polkadot_runtime_parachains::inclusion::CandidatePendingAvailability<primitive_types::H256, N>
|
* Lookup654: polkadot_runtime_parachains::inclusion::CandidatePendingAvailability<primitive_types::H256, N>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsInclusionCandidatePendingAvailability: {
|
PolkadotRuntimeParachainsInclusionCandidatePendingAvailability: {
|
||||||
_alias: {
|
_alias: {
|
||||||
@@ -2088,13 +2091,13 @@ export default {
|
|||||||
backingGroup: 'u32'
|
backingGroup: 'u32'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup653: polkadot_runtime_parachains::inclusion::pallet::Error<T>
|
* Lookup655: polkadot_runtime_parachains::inclusion::pallet::Error<T>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsInclusionPalletError: {
|
PolkadotRuntimeParachainsInclusionPalletError: {
|
||||||
_enum: ['UnsortedOrDuplicateValidatorIndices', 'UnsortedOrDuplicateDisputeStatementSet', 'UnsortedOrDuplicateBackedCandidates', 'UnexpectedRelayParent', 'WrongBitfieldSize', 'BitfieldAllZeros', 'BitfieldDuplicateOrUnordered', 'ValidatorIndexOutOfBounds', 'InvalidBitfieldSignature', 'UnscheduledCandidate', 'CandidateScheduledBeforeParaFree', 'WrongCollator', 'ScheduledOutOfOrder', 'HeadDataTooLarge', 'PrematureCodeUpgrade', 'NewCodeTooLarge', 'CandidateNotInParentContext', 'InvalidGroupIndex', 'InsufficientBacking', 'InvalidBacking', 'NotCollatorSigned', 'ValidationDataHashMismatch', 'IncorrectDownwardMessageHandling', 'InvalidUpwardMessages', 'HrmpWatermarkMishandling', 'InvalidOutboundHrmp', 'InvalidValidationCodeHash', 'ParaHeadMismatch', 'BitfieldReferencesFreedCore']
|
_enum: ['UnsortedOrDuplicateValidatorIndices', 'UnsortedOrDuplicateDisputeStatementSet', 'UnsortedOrDuplicateBackedCandidates', 'UnexpectedRelayParent', 'WrongBitfieldSize', 'BitfieldAllZeros', 'BitfieldDuplicateOrUnordered', 'ValidatorIndexOutOfBounds', 'InvalidBitfieldSignature', 'UnscheduledCandidate', 'CandidateScheduledBeforeParaFree', 'WrongCollator', 'ScheduledOutOfOrder', 'HeadDataTooLarge', 'PrematureCodeUpgrade', 'NewCodeTooLarge', 'CandidateNotInParentContext', 'InvalidGroupIndex', 'InsufficientBacking', 'InvalidBacking', 'NotCollatorSigned', 'ValidationDataHashMismatch', 'IncorrectDownwardMessageHandling', 'InvalidUpwardMessages', 'HrmpWatermarkMishandling', 'InvalidOutboundHrmp', 'InvalidValidationCodeHash', 'ParaHeadMismatch', 'BitfieldReferencesFreedCore']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup654: polkadot_primitives::v2::ScrapedOnChainVotes<primitive_types::H256>
|
* Lookup656: polkadot_primitives::v2::ScrapedOnChainVotes<primitive_types::H256>
|
||||||
**/
|
**/
|
||||||
PolkadotPrimitivesV2ScrapedOnChainVotes: {
|
PolkadotPrimitivesV2ScrapedOnChainVotes: {
|
||||||
session: 'u32',
|
session: 'u32',
|
||||||
@@ -2102,38 +2105,38 @@ export default {
|
|||||||
disputes: 'Vec<PolkadotPrimitivesV2DisputeStatementSet>'
|
disputes: 'Vec<PolkadotPrimitivesV2DisputeStatementSet>'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup659: polkadot_runtime_parachains::paras_inherent::pallet::Error<T>
|
* Lookup661: polkadot_runtime_parachains::paras_inherent::pallet::Error<T>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsParasInherentPalletError: {
|
PolkadotRuntimeParachainsParasInherentPalletError: {
|
||||||
_enum: ['TooManyInclusionInherents', 'InvalidParentHeader', 'CandidateConcludedInvalid', 'InherentOverweight', 'DisputeStatementsUnsortedOrDuplicates', 'DisputeInvalid']
|
_enum: ['TooManyInclusionInherents', 'InvalidParentHeader', 'CandidateConcludedInvalid', 'InherentOverweight', 'DisputeStatementsUnsortedOrDuplicates', 'DisputeInvalid']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup661: polkadot_runtime_parachains::scheduler::ParathreadClaimQueue
|
* Lookup663: polkadot_runtime_parachains::scheduler::ParathreadClaimQueue
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsSchedulerParathreadClaimQueue: {
|
PolkadotRuntimeParachainsSchedulerParathreadClaimQueue: {
|
||||||
queue: 'Vec<PolkadotRuntimeParachainsSchedulerQueuedParathread>',
|
queue: 'Vec<PolkadotRuntimeParachainsSchedulerQueuedParathread>',
|
||||||
nextCoreOffset: 'u32'
|
nextCoreOffset: 'u32'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup663: polkadot_runtime_parachains::scheduler::QueuedParathread
|
* Lookup665: polkadot_runtime_parachains::scheduler::QueuedParathread
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsSchedulerQueuedParathread: {
|
PolkadotRuntimeParachainsSchedulerQueuedParathread: {
|
||||||
claim: 'PolkadotPrimitivesV2ParathreadEntry',
|
claim: 'PolkadotPrimitivesV2ParathreadEntry',
|
||||||
coreOffset: 'u32'
|
coreOffset: 'u32'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup664: polkadot_primitives::v2::ParathreadEntry
|
* Lookup666: polkadot_primitives::v2::ParathreadEntry
|
||||||
**/
|
**/
|
||||||
PolkadotPrimitivesV2ParathreadEntry: {
|
PolkadotPrimitivesV2ParathreadEntry: {
|
||||||
claim: 'PolkadotPrimitivesV2ParathreadClaim',
|
claim: 'PolkadotPrimitivesV2ParathreadClaim',
|
||||||
retries: 'u32'
|
retries: 'u32'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup665: polkadot_primitives::v2::ParathreadClaim
|
* Lookup667: polkadot_primitives::v2::ParathreadClaim
|
||||||
**/
|
**/
|
||||||
PolkadotPrimitivesV2ParathreadClaim: '(u32,PolkadotPrimitivesV2CollatorAppPublic)',
|
PolkadotPrimitivesV2ParathreadClaim: '(u32,PolkadotPrimitivesV2CollatorAppPublic)',
|
||||||
/**
|
/**
|
||||||
* Lookup668: polkadot_primitives::v2::CoreOccupied
|
* Lookup670: polkadot_primitives::v2::CoreOccupied
|
||||||
**/
|
**/
|
||||||
PolkadotPrimitivesV2CoreOccupied: {
|
PolkadotPrimitivesV2CoreOccupied: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -2142,7 +2145,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup671: polkadot_runtime_parachains::scheduler::CoreAssignment
|
* Lookup673: polkadot_runtime_parachains::scheduler::CoreAssignment
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsSchedulerCoreAssignment: {
|
PolkadotRuntimeParachainsSchedulerCoreAssignment: {
|
||||||
core: 'u32',
|
core: 'u32',
|
||||||
@@ -2151,7 +2154,7 @@ export default {
|
|||||||
groupIdx: 'u32'
|
groupIdx: 'u32'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup672: polkadot_runtime_parachains::scheduler::AssignmentKind
|
* Lookup674: polkadot_runtime_parachains::scheduler::AssignmentKind
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsSchedulerAssignmentKind: {
|
PolkadotRuntimeParachainsSchedulerAssignmentKind: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -2160,7 +2163,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup673: polkadot_runtime_parachains::paras::PvfCheckActiveVoteState<BlockNumber>
|
* Lookup675: polkadot_runtime_parachains::paras::PvfCheckActiveVoteState<BlockNumber>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsParasPvfCheckActiveVoteState: {
|
PolkadotRuntimeParachainsParasPvfCheckActiveVoteState: {
|
||||||
votesAccept: 'BitVec',
|
votesAccept: 'BitVec',
|
||||||
@@ -2170,7 +2173,7 @@ export default {
|
|||||||
causes: 'Vec<PolkadotRuntimeParachainsParasPvfCheckCause>'
|
causes: 'Vec<PolkadotRuntimeParachainsParasPvfCheckCause>'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup675: polkadot_runtime_parachains::paras::PvfCheckCause<BlockNumber>
|
* Lookup677: polkadot_runtime_parachains::paras::PvfCheckCause<BlockNumber>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsParasPvfCheckCause: {
|
PolkadotRuntimeParachainsParasPvfCheckCause: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -2182,39 +2185,39 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup677: polkadot_runtime_parachains::paras::ParaLifecycle
|
* Lookup679: polkadot_runtime_parachains::paras::ParaLifecycle
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsParasParaLifecycle: {
|
PolkadotRuntimeParachainsParasParaLifecycle: {
|
||||||
_enum: ['Onboarding', 'Parathread', 'Parachain', 'UpgradingParathread', 'DowngradingParachain', 'OffboardingParathread', 'OffboardingParachain']
|
_enum: ['Onboarding', 'Parathread', 'Parachain', 'UpgradingParathread', 'DowngradingParachain', 'OffboardingParathread', 'OffboardingParachain']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup679: polkadot_runtime_parachains::paras::ParaPastCodeMeta<N>
|
* Lookup681: polkadot_runtime_parachains::paras::ParaPastCodeMeta<N>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsParasParaPastCodeMeta: {
|
PolkadotRuntimeParachainsParasParaPastCodeMeta: {
|
||||||
upgradeTimes: 'Vec<PolkadotRuntimeParachainsParasReplacementTimes>',
|
upgradeTimes: 'Vec<PolkadotRuntimeParachainsParasReplacementTimes>',
|
||||||
lastPruned: 'Option<u32>'
|
lastPruned: 'Option<u32>'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup681: polkadot_runtime_parachains::paras::ReplacementTimes<N>
|
* Lookup683: polkadot_runtime_parachains::paras::ReplacementTimes<N>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsParasReplacementTimes: {
|
PolkadotRuntimeParachainsParasReplacementTimes: {
|
||||||
expectedAt: 'u32',
|
expectedAt: 'u32',
|
||||||
activatedAt: 'u32'
|
activatedAt: 'u32'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup683: polkadot_primitives::v2::UpgradeGoAhead
|
* Lookup685: polkadot_primitives::v2::UpgradeGoAhead
|
||||||
**/
|
**/
|
||||||
PolkadotPrimitivesV2UpgradeGoAhead: {
|
PolkadotPrimitivesV2UpgradeGoAhead: {
|
||||||
_enum: ['Abort', 'GoAhead']
|
_enum: ['Abort', 'GoAhead']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup684: polkadot_primitives::v2::UpgradeRestriction
|
* Lookup686: polkadot_primitives::v2::UpgradeRestriction
|
||||||
**/
|
**/
|
||||||
PolkadotPrimitivesV2UpgradeRestriction: {
|
PolkadotPrimitivesV2UpgradeRestriction: {
|
||||||
_enum: ['Present']
|
_enum: ['Present']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup685: polkadot_runtime_parachains::paras::ParaGenesisArgs
|
* Lookup687: polkadot_runtime_parachains::paras::ParaGenesisArgs
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsParasParaGenesisArgs: {
|
PolkadotRuntimeParachainsParasParaGenesisArgs: {
|
||||||
genesisHead: 'Bytes',
|
genesisHead: 'Bytes',
|
||||||
@@ -2222,13 +2225,13 @@ export default {
|
|||||||
paraKind: 'bool'
|
paraKind: 'bool'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup686: polkadot_runtime_parachains::paras::pallet::Error<T>
|
* Lookup688: polkadot_runtime_parachains::paras::pallet::Error<T>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsParasPalletError: {
|
PolkadotRuntimeParachainsParasPalletError: {
|
||||||
_enum: ['NotRegistered', 'CannotOnboard', 'CannotOffboard', 'CannotUpgrade', 'CannotDowngrade', 'PvfCheckStatementStale', 'PvfCheckStatementFuture', 'PvfCheckValidatorIndexOutOfBounds', 'PvfCheckInvalidSignature', 'PvfCheckDoubleVote', 'PvfCheckSubjectInvalid', 'PvfCheckDisabled', 'CannotUpgradeCode']
|
_enum: ['NotRegistered', 'CannotOnboard', 'CannotOffboard', 'CannotUpgrade', 'CannotDowngrade', 'PvfCheckStatementStale', 'PvfCheckStatementFuture', 'PvfCheckValidatorIndexOutOfBounds', 'PvfCheckInvalidSignature', 'PvfCheckDoubleVote', 'PvfCheckSubjectInvalid', 'PvfCheckDisabled', 'CannotUpgradeCode']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup688: polkadot_runtime_parachains::initializer::BufferedSessionChange
|
* Lookup690: polkadot_runtime_parachains::initializer::BufferedSessionChange
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsInitializerBufferedSessionChange: {
|
PolkadotRuntimeParachainsInitializerBufferedSessionChange: {
|
||||||
validators: 'Vec<PolkadotPrimitivesV2ValidatorAppPublic>',
|
validators: 'Vec<PolkadotPrimitivesV2ValidatorAppPublic>',
|
||||||
@@ -2236,20 +2239,20 @@ export default {
|
|||||||
sessionIndex: 'u32'
|
sessionIndex: 'u32'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup690: polkadot_core_primitives::InboundDownwardMessage<BlockNumber>
|
* Lookup692: polkadot_core_primitives::InboundDownwardMessage<BlockNumber>
|
||||||
**/
|
**/
|
||||||
PolkadotCorePrimitivesInboundDownwardMessage: {
|
PolkadotCorePrimitivesInboundDownwardMessage: {
|
||||||
sentAt: 'u32',
|
sentAt: 'u32',
|
||||||
msg: 'Bytes'
|
msg: 'Bytes'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup692: polkadot_runtime_parachains::ump::pallet::Error<T>
|
* Lookup694: polkadot_runtime_parachains::ump::pallet::Error<T>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsUmpPalletError: {
|
PolkadotRuntimeParachainsUmpPalletError: {
|
||||||
_enum: ['UnknownMessageIndex', 'WeightOverLimit']
|
_enum: ['UnknownMessageIndex', 'WeightOverLimit']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup693: polkadot_runtime_parachains::hrmp::HrmpOpenChannelRequest
|
* Lookup695: polkadot_runtime_parachains::hrmp::HrmpOpenChannelRequest
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest: {
|
PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest: {
|
||||||
confirmed: 'bool',
|
confirmed: 'bool',
|
||||||
@@ -2260,7 +2263,7 @@ export default {
|
|||||||
maxTotalSize: 'u32'
|
maxTotalSize: 'u32'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup695: polkadot_runtime_parachains::hrmp::HrmpChannel
|
* Lookup697: polkadot_runtime_parachains::hrmp::HrmpChannel
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsHrmpHrmpChannel: {
|
PolkadotRuntimeParachainsHrmpHrmpChannel: {
|
||||||
maxCapacity: 'u32',
|
maxCapacity: 'u32',
|
||||||
@@ -2273,20 +2276,20 @@ export default {
|
|||||||
recipientDeposit: 'u128'
|
recipientDeposit: 'u128'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup697: polkadot_core_primitives::InboundHrmpMessage<BlockNumber>
|
* Lookup699: polkadot_core_primitives::InboundHrmpMessage<BlockNumber>
|
||||||
**/
|
**/
|
||||||
PolkadotCorePrimitivesInboundHrmpMessage: {
|
PolkadotCorePrimitivesInboundHrmpMessage: {
|
||||||
sentAt: 'u32',
|
sentAt: 'u32',
|
||||||
data: 'Bytes'
|
data: 'Bytes'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup700: polkadot_runtime_parachains::hrmp::pallet::Error<T>
|
* Lookup702: polkadot_runtime_parachains::hrmp::pallet::Error<T>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsHrmpPalletError: {
|
PolkadotRuntimeParachainsHrmpPalletError: {
|
||||||
_enum: ['OpenHrmpChannelToSelf', 'OpenHrmpChannelInvalidRecipient', 'OpenHrmpChannelZeroCapacity', 'OpenHrmpChannelCapacityExceedsLimit', 'OpenHrmpChannelZeroMessageSize', 'OpenHrmpChannelMessageSizeExceedsLimit', 'OpenHrmpChannelAlreadyExists', 'OpenHrmpChannelAlreadyRequested', 'OpenHrmpChannelLimitExceeded', 'AcceptHrmpChannelDoesntExist', 'AcceptHrmpChannelAlreadyConfirmed', 'AcceptHrmpChannelLimitExceeded', 'CloseHrmpChannelUnauthorized', 'CloseHrmpChannelDoesntExist', 'CloseHrmpChannelAlreadyUnderway', 'CancelHrmpOpenChannelUnauthorized', 'OpenHrmpChannelDoesntExist', 'OpenHrmpChannelAlreadyConfirmed', 'WrongWitness']
|
_enum: ['OpenHrmpChannelToSelf', 'OpenHrmpChannelInvalidRecipient', 'OpenHrmpChannelZeroCapacity', 'OpenHrmpChannelCapacityExceedsLimit', 'OpenHrmpChannelZeroMessageSize', 'OpenHrmpChannelMessageSizeExceedsLimit', 'OpenHrmpChannelAlreadyExists', 'OpenHrmpChannelAlreadyRequested', 'OpenHrmpChannelLimitExceeded', 'AcceptHrmpChannelDoesntExist', 'AcceptHrmpChannelAlreadyConfirmed', 'AcceptHrmpChannelLimitExceeded', 'CloseHrmpChannelUnauthorized', 'CloseHrmpChannelDoesntExist', 'CloseHrmpChannelAlreadyUnderway', 'CancelHrmpOpenChannelUnauthorized', 'OpenHrmpChannelDoesntExist', 'OpenHrmpChannelAlreadyConfirmed', 'WrongWitness']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup702: polkadot_primitives::v2::SessionInfo
|
* Lookup704: polkadot_primitives::v2::SessionInfo
|
||||||
**/
|
**/
|
||||||
PolkadotPrimitivesV2SessionInfo: {
|
PolkadotPrimitivesV2SessionInfo: {
|
||||||
activeValidatorIndices: 'Vec<u32>',
|
activeValidatorIndices: 'Vec<u32>',
|
||||||
@@ -2304,15 +2307,30 @@ export default {
|
|||||||
neededApprovals: 'u32'
|
neededApprovals: 'u32'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup703: polkadot_primitives::v2::IndexedVec<polkadot_primitives::v2::ValidatorIndex, polkadot_primitives::v2::validator_app::Public>
|
* Lookup705: polkadot_primitives::v2::IndexedVec<polkadot_primitives::v2::ValidatorIndex, polkadot_primitives::v2::validator_app::Public>
|
||||||
**/
|
**/
|
||||||
PolkadotPrimitivesV2IndexedVecValidatorIndex: 'Vec<PolkadotPrimitivesV2ValidatorAppPublic>',
|
PolkadotPrimitivesV2IndexedVecValidatorIndex: 'Vec<PolkadotPrimitivesV2ValidatorAppPublic>',
|
||||||
/**
|
/**
|
||||||
* Lookup705: polkadot_primitives::v2::IndexedVec<polkadot_primitives::v2::GroupIndex, V>
|
* Lookup707: polkadot_primitives::v2::IndexedVec<polkadot_primitives::v2::GroupIndex, V>
|
||||||
**/
|
**/
|
||||||
PolkadotPrimitivesV2IndexedVecGroupIndex: 'Vec<Vec<u32>>',
|
PolkadotPrimitivesV2IndexedVecGroupIndex: 'Vec<Vec<u32>>',
|
||||||
/**
|
/**
|
||||||
* Lookup707: polkadot_primitives::v2::DisputeState<N>
|
* Lookup708: polkadot_primitives::vstaging::executor_params::ExecutorParams
|
||||||
|
**/
|
||||||
|
PolkadotPrimitivesVstagingExecutorParams: 'Vec<PolkadotPrimitivesVstagingExecutorParamsExecutorParam>',
|
||||||
|
/**
|
||||||
|
* Lookup710: polkadot_primitives::vstaging::executor_params::ExecutorParam
|
||||||
|
**/
|
||||||
|
PolkadotPrimitivesVstagingExecutorParamsExecutorParam: {
|
||||||
|
_enum: {
|
||||||
|
MaxMemoryPages: 'u32',
|
||||||
|
StackLogicalMax: 'u32',
|
||||||
|
StackNativeMax: 'u32',
|
||||||
|
PrecheckingMaxMemory: 'u64'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Lookup712: polkadot_primitives::v2::DisputeState<N>
|
||||||
**/
|
**/
|
||||||
PolkadotPrimitivesV2DisputeState: {
|
PolkadotPrimitivesV2DisputeState: {
|
||||||
validatorsFor: 'BitVec',
|
validatorsFor: 'BitVec',
|
||||||
@@ -2321,13 +2339,13 @@ export default {
|
|||||||
concludedAt: 'Option<u32>'
|
concludedAt: 'Option<u32>'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup709: polkadot_runtime_parachains::disputes::pallet::Error<T>
|
* Lookup714: polkadot_runtime_parachains::disputes::pallet::Error<T>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsDisputesPalletError: {
|
PolkadotRuntimeParachainsDisputesPalletError: {
|
||||||
_enum: ['DuplicateDisputeStatementSets', 'AncientDisputeStatement', 'ValidatorIndexOutOfBounds', 'InvalidSignature', 'DuplicateStatement', 'SingleSidedDispute', 'MaliciousBacker', 'MissingBackingVotes', 'UnconfirmedDispute']
|
_enum: ['DuplicateDisputeStatementSets', 'AncientDisputeStatement', 'ValidatorIndexOutOfBounds', 'InvalidSignature', 'DuplicateStatement', 'SingleSidedDispute', 'MaliciousBacker', 'MissingBackingVotes', 'UnconfirmedDispute']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup710: polkadot_runtime_common::paras_registrar::ParaInfo<sp_core::crypto::AccountId32, Balance>
|
* Lookup715: polkadot_runtime_common::paras_registrar::ParaInfo<sp_core::crypto::AccountId32, Balance>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeCommonParasRegistrarParaInfo: {
|
PolkadotRuntimeCommonParasRegistrarParaInfo: {
|
||||||
manager: 'AccountId32',
|
manager: 'AccountId32',
|
||||||
@@ -2335,25 +2353,25 @@ export default {
|
|||||||
locked: 'bool'
|
locked: 'bool'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup711: polkadot_runtime_common::paras_registrar::pallet::Error<T>
|
* Lookup716: polkadot_runtime_common::paras_registrar::pallet::Error<T>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeCommonParasRegistrarPalletError: {
|
PolkadotRuntimeCommonParasRegistrarPalletError: {
|
||||||
_enum: ['NotRegistered', 'AlreadyRegistered', 'NotOwner', 'CodeTooLarge', 'HeadDataTooLarge', 'NotParachain', 'NotParathread', 'CannotDeregister', 'CannotDowngrade', 'CannotUpgrade', 'ParaLocked', 'NotReserved', 'EmptyCode', 'CannotSwap']
|
_enum: ['NotRegistered', 'AlreadyRegistered', 'NotOwner', 'CodeTooLarge', 'HeadDataTooLarge', 'NotParachain', 'NotParathread', 'CannotDeregister', 'CannotDowngrade', 'CannotUpgrade', 'ParaLocked', 'NotReserved', 'EmptyCode', 'CannotSwap']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup713: polkadot_runtime_common::slots::pallet::Error<T>
|
* Lookup718: polkadot_runtime_common::slots::pallet::Error<T>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeCommonSlotsPalletError: {
|
PolkadotRuntimeCommonSlotsPalletError: {
|
||||||
_enum: ['ParaNotOnboarding', 'LeaseError']
|
_enum: ['ParaNotOnboarding', 'LeaseError']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup718: polkadot_runtime_common::auctions::pallet::Error<T>
|
* Lookup723: polkadot_runtime_common::auctions::pallet::Error<T>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeCommonAuctionsPalletError: {
|
PolkadotRuntimeCommonAuctionsPalletError: {
|
||||||
_enum: ['AuctionInProgress', 'LeasePeriodInPast', 'ParaNotRegistered', 'NotCurrentAuction', 'NotAuction', 'AuctionEnded', 'AlreadyLeasedOut']
|
_enum: ['AuctionInProgress', 'LeasePeriodInPast', 'ParaNotRegistered', 'NotCurrentAuction', 'NotAuction', 'AuctionEnded', 'AlreadyLeasedOut']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup719: polkadot_runtime_common::crowdloan::FundInfo<sp_core::crypto::AccountId32, Balance, BlockNumber, LeasePeriod>
|
* Lookup724: polkadot_runtime_common::crowdloan::FundInfo<sp_core::crypto::AccountId32, Balance, BlockNumber, LeasePeriod>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeCommonCrowdloanFundInfo: {
|
PolkadotRuntimeCommonCrowdloanFundInfo: {
|
||||||
depositor: 'AccountId32',
|
depositor: 'AccountId32',
|
||||||
@@ -2368,7 +2386,7 @@ export default {
|
|||||||
fundIndex: 'u32'
|
fundIndex: 'u32'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup720: polkadot_runtime_common::crowdloan::LastContribution<BlockNumber>
|
* Lookup725: polkadot_runtime_common::crowdloan::LastContribution<BlockNumber>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeCommonCrowdloanLastContribution: {
|
PolkadotRuntimeCommonCrowdloanLastContribution: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -2378,13 +2396,13 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup721: polkadot_runtime_common::crowdloan::pallet::Error<T>
|
* Lookup726: polkadot_runtime_common::crowdloan::pallet::Error<T>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeCommonCrowdloanPalletError: {
|
PolkadotRuntimeCommonCrowdloanPalletError: {
|
||||||
_enum: ['FirstPeriodInPast', 'FirstPeriodTooFarInFuture', 'LastPeriodBeforeFirstPeriod', 'LastPeriodTooFarInFuture', 'CannotEndInPast', 'EndTooFarInFuture', 'Overflow', 'ContributionTooSmall', 'InvalidParaId', 'CapExceeded', 'ContributionPeriodOver', 'InvalidOrigin', 'NotParachain', 'LeaseActive', 'BidOrLeaseActive', 'FundNotEnded', 'NoContributions', 'NotReadyToDissolve', 'InvalidSignature', 'MemoTooLarge', 'AlreadyInNewRaise', 'VrfDelayInProgress', 'NoLeasePeriod']
|
_enum: ['FirstPeriodInPast', 'FirstPeriodTooFarInFuture', 'LastPeriodBeforeFirstPeriod', 'LastPeriodTooFarInFuture', 'CannotEndInPast', 'EndTooFarInFuture', 'Overflow', 'ContributionTooSmall', 'InvalidParaId', 'CapExceeded', 'ContributionPeriodOver', 'InvalidOrigin', 'NotParachain', 'LeaseActive', 'BidOrLeaseActive', 'FundNotEnded', 'NoContributions', 'NotReadyToDissolve', 'InvalidSignature', 'MemoTooLarge', 'AlreadyInNewRaise', 'VrfDelayInProgress', 'NoLeasePeriod']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup722: pallet_xcm::pallet::QueryStatus<BlockNumber>
|
* Lookup727: pallet_xcm::pallet::QueryStatus<BlockNumber>
|
||||||
**/
|
**/
|
||||||
PalletXcmQueryStatus: {
|
PalletXcmQueryStatus: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -2405,7 +2423,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup726: xcm::VersionedResponse
|
* Lookup731: xcm::VersionedResponse
|
||||||
**/
|
**/
|
||||||
XcmVersionedResponse: {
|
XcmVersionedResponse: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -2414,7 +2432,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup732: pallet_xcm::pallet::VersionMigrationStage
|
* Lookup737: pallet_xcm::pallet::VersionMigrationStage
|
||||||
**/
|
**/
|
||||||
PalletXcmVersionMigrationStage: {
|
PalletXcmVersionMigrationStage: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -2425,7 +2443,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup735: xcm::VersionedAssetId
|
* Lookup740: xcm::VersionedAssetId
|
||||||
**/
|
**/
|
||||||
XcmVersionedAssetId: {
|
XcmVersionedAssetId: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -2433,7 +2451,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup736: pallet_xcm::pallet::RemoteLockedFungibleRecord
|
* Lookup741: pallet_xcm::pallet::RemoteLockedFungibleRecord
|
||||||
**/
|
**/
|
||||||
PalletXcmRemoteLockedFungibleRecord: {
|
PalletXcmRemoteLockedFungibleRecord: {
|
||||||
amount: 'u128',
|
amount: 'u128',
|
||||||
@@ -2442,21 +2460,21 @@ export default {
|
|||||||
users: 'u32'
|
users: 'u32'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup740: pallet_xcm::pallet::Error<T>
|
* Lookup745: pallet_xcm::pallet::Error<T>
|
||||||
**/
|
**/
|
||||||
PalletXcmError: {
|
PalletXcmError: {
|
||||||
_enum: ['Unreachable', 'SendFailure', 'Filtered', 'UnweighableMessage', 'DestinationNotInvertible', 'Empty', 'CannotReanchor', 'TooManyAssets', 'InvalidOrigin', 'BadVersion', 'BadLocation', 'NoSubscription', 'AlreadySubscribed', 'InvalidAsset', 'LowBalance', 'TooManyLocks', 'AccountNotSovereign', 'FeesNotMet', 'LockNotFound', 'InUse']
|
_enum: ['Unreachable', 'SendFailure', 'Filtered', 'UnweighableMessage', 'DestinationNotInvertible', 'Empty', 'CannotReanchor', 'TooManyAssets', 'InvalidOrigin', 'BadVersion', 'BadLocation', 'NoSubscription', 'AlreadySubscribed', 'InvalidAsset', 'LowBalance', 'TooManyLocks', 'AccountNotSovereign', 'FeesNotMet', 'LockNotFound', 'InUse']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup751: pallet_transaction_payment::ChargeTransactionPayment<T>
|
* Lookup756: pallet_transaction_payment::ChargeTransactionPayment<T>
|
||||||
**/
|
**/
|
||||||
PalletTransactionPaymentChargeTransactionPayment: 'Compact<u128>',
|
PalletTransactionPaymentChargeTransactionPayment: 'Compact<u128>',
|
||||||
/**
|
/**
|
||||||
* Lookup752: polkadot_runtime_common::claims::PrevalidateAttests<T>
|
* Lookup757: polkadot_runtime_common::claims::PrevalidateAttests<T>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeCommonClaimsPrevalidateAttests: 'Null',
|
PolkadotRuntimeCommonClaimsPrevalidateAttests: 'Null',
|
||||||
/**
|
/**
|
||||||
* Lookup753: polkadot_runtime::Runtime
|
* Lookup758: polkadot_runtime::Runtime
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeRuntime: 'Null'
|
PolkadotRuntimeRuntime: 'Null'
|
||||||
};
|
};
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -111,7 +111,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly votes24: Vec<ITuple<[Compact<u32>, Vec<ITuple<[Compact<u16>, Compact<PerU16>]>>, Compact<u16>]>>;
|
readonly votes24: Vec<ITuple<[Compact<u32>, Vec<ITuple<[Compact<u16>, Compact<PerU16>]>>, Compact<u16>]>>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name KusamaRuntimeRuntime (871) */
|
/** @name KusamaRuntimeRuntime (876) */
|
||||||
type KusamaRuntimeRuntime = Null;
|
type KusamaRuntimeRuntime = Null;
|
||||||
|
|
||||||
} // declare module
|
} // declare module
|
||||||
|
|||||||
@@ -453,7 +453,10 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly isGeneralIndex: boolean;
|
readonly isGeneralIndex: boolean;
|
||||||
readonly asGeneralIndex: Compact<u128>;
|
readonly asGeneralIndex: Compact<u128>;
|
||||||
readonly isGeneralKey: boolean;
|
readonly isGeneralKey: boolean;
|
||||||
readonly asGeneralKey: U8aFixed;
|
readonly asGeneralKey: {
|
||||||
|
readonly length: u8;
|
||||||
|
readonly data: U8aFixed;
|
||||||
|
} & Struct;
|
||||||
readonly isOnlyChild: boolean;
|
readonly isOnlyChild: boolean;
|
||||||
readonly isPlurality: boolean;
|
readonly isPlurality: boolean;
|
||||||
readonly asPlurality: {
|
readonly asPlurality: {
|
||||||
@@ -1386,13 +1389,13 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly hrmpWatermark: u32;
|
readonly hrmpWatermark: u32;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotCorePrimitivesOutboundHrmpMessage (411) */
|
/** @name PolkadotCorePrimitivesOutboundHrmpMessage (412) */
|
||||||
interface PolkadotCorePrimitivesOutboundHrmpMessage extends Struct {
|
interface PolkadotCorePrimitivesOutboundHrmpMessage extends Struct {
|
||||||
readonly recipient: u32;
|
readonly recipient: u32;
|
||||||
readonly data: Bytes;
|
readonly data: Bytes;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotPrimitivesV2ValidityAttestation (415) */
|
/** @name PolkadotPrimitivesV2ValidityAttestation (417) */
|
||||||
interface PolkadotPrimitivesV2ValidityAttestation extends Enum {
|
interface PolkadotPrimitivesV2ValidityAttestation extends Enum {
|
||||||
readonly isImplicit: boolean;
|
readonly isImplicit: boolean;
|
||||||
readonly asImplicit: PolkadotPrimitivesV2ValidatorAppSignature;
|
readonly asImplicit: PolkadotPrimitivesV2ValidatorAppSignature;
|
||||||
@@ -1401,14 +1404,14 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'Implicit' | 'Explicit';
|
readonly type: 'Implicit' | 'Explicit';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotPrimitivesV2DisputeStatementSet (417) */
|
/** @name PolkadotPrimitivesV2DisputeStatementSet (419) */
|
||||||
interface PolkadotPrimitivesV2DisputeStatementSet extends Struct {
|
interface PolkadotPrimitivesV2DisputeStatementSet extends Struct {
|
||||||
readonly candidateHash: H256;
|
readonly candidateHash: H256;
|
||||||
readonly session: u32;
|
readonly session: u32;
|
||||||
readonly statements: Vec<ITuple<[PolkadotPrimitivesV2DisputeStatement, u32, PolkadotPrimitivesV2ValidatorAppSignature]>>;
|
readonly statements: Vec<ITuple<[PolkadotPrimitivesV2DisputeStatement, u32, PolkadotPrimitivesV2ValidatorAppSignature]>>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotPrimitivesV2DisputeStatement (420) */
|
/** @name PolkadotPrimitivesV2DisputeStatement (422) */
|
||||||
interface PolkadotPrimitivesV2DisputeStatement extends Enum {
|
interface PolkadotPrimitivesV2DisputeStatement extends Enum {
|
||||||
readonly isValid: boolean;
|
readonly isValid: boolean;
|
||||||
readonly asValid: PolkadotPrimitivesV2ValidDisputeStatementKind;
|
readonly asValid: PolkadotPrimitivesV2ValidDisputeStatementKind;
|
||||||
@@ -1417,7 +1420,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'Valid' | 'Invalid';
|
readonly type: 'Valid' | 'Invalid';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotPrimitivesV2ValidDisputeStatementKind (421) */
|
/** @name PolkadotPrimitivesV2ValidDisputeStatementKind (423) */
|
||||||
interface PolkadotPrimitivesV2ValidDisputeStatementKind extends Enum {
|
interface PolkadotPrimitivesV2ValidDisputeStatementKind extends Enum {
|
||||||
readonly isExplicit: boolean;
|
readonly isExplicit: boolean;
|
||||||
readonly isBackingSeconded: boolean;
|
readonly isBackingSeconded: boolean;
|
||||||
@@ -1428,13 +1431,13 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'Explicit' | 'BackingSeconded' | 'BackingValid' | 'ApprovalChecking';
|
readonly type: 'Explicit' | 'BackingSeconded' | 'BackingValid' | 'ApprovalChecking';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotPrimitivesV2InvalidDisputeStatementKind (422) */
|
/** @name PolkadotPrimitivesV2InvalidDisputeStatementKind (424) */
|
||||||
interface PolkadotPrimitivesV2InvalidDisputeStatementKind extends Enum {
|
interface PolkadotPrimitivesV2InvalidDisputeStatementKind extends Enum {
|
||||||
readonly isExplicit: boolean;
|
readonly isExplicit: boolean;
|
||||||
readonly type: 'Explicit';
|
readonly type: 'Explicit';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsParasPalletCall (423) */
|
/** @name PolkadotRuntimeParachainsParasPalletCall (425) */
|
||||||
interface PolkadotRuntimeParachainsParasPalletCall extends Enum {
|
interface PolkadotRuntimeParachainsParasPalletCall extends Enum {
|
||||||
readonly isForceSetCurrentCode: boolean;
|
readonly isForceSetCurrentCode: boolean;
|
||||||
readonly asForceSetCurrentCode: {
|
readonly asForceSetCurrentCode: {
|
||||||
@@ -1477,7 +1480,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'ForceSetCurrentCode' | 'ForceSetCurrentHead' | 'ForceScheduleCodeUpgrade' | 'ForceNoteNewHead' | 'ForceQueueAction' | 'AddTrustedValidationCode' | 'PokeUnusedValidationCode' | 'IncludePvfCheckStatement';
|
readonly type: 'ForceSetCurrentCode' | 'ForceSetCurrentHead' | 'ForceScheduleCodeUpgrade' | 'ForceNoteNewHead' | 'ForceQueueAction' | 'AddTrustedValidationCode' | 'PokeUnusedValidationCode' | 'IncludePvfCheckStatement';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotPrimitivesV2PvfCheckStatement (424) */
|
/** @name PolkadotPrimitivesV2PvfCheckStatement (426) */
|
||||||
interface PolkadotPrimitivesV2PvfCheckStatement extends Struct {
|
interface PolkadotPrimitivesV2PvfCheckStatement extends Struct {
|
||||||
readonly accept: bool;
|
readonly accept: bool;
|
||||||
readonly subject: H256;
|
readonly subject: H256;
|
||||||
@@ -1485,7 +1488,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly validatorIndex: u32;
|
readonly validatorIndex: u32;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsInitializerPalletCall (425) */
|
/** @name PolkadotRuntimeParachainsInitializerPalletCall (427) */
|
||||||
interface PolkadotRuntimeParachainsInitializerPalletCall extends Enum {
|
interface PolkadotRuntimeParachainsInitializerPalletCall extends Enum {
|
||||||
readonly isForceApprove: boolean;
|
readonly isForceApprove: boolean;
|
||||||
readonly asForceApprove: {
|
readonly asForceApprove: {
|
||||||
@@ -1494,10 +1497,10 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'ForceApprove';
|
readonly type: 'ForceApprove';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsDmpPalletCall (426) */
|
/** @name PolkadotRuntimeParachainsDmpPalletCall (428) */
|
||||||
type PolkadotRuntimeParachainsDmpPalletCall = Null;
|
type PolkadotRuntimeParachainsDmpPalletCall = Null;
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsUmpPalletCall (427) */
|
/** @name PolkadotRuntimeParachainsUmpPalletCall (429) */
|
||||||
interface PolkadotRuntimeParachainsUmpPalletCall extends Enum {
|
interface PolkadotRuntimeParachainsUmpPalletCall extends Enum {
|
||||||
readonly isServiceOverweight: boolean;
|
readonly isServiceOverweight: boolean;
|
||||||
readonly asServiceOverweight: {
|
readonly asServiceOverweight: {
|
||||||
@@ -1507,7 +1510,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'ServiceOverweight';
|
readonly type: 'ServiceOverweight';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsHrmpPalletCall (428) */
|
/** @name PolkadotRuntimeParachainsHrmpPalletCall (430) */
|
||||||
interface PolkadotRuntimeParachainsHrmpPalletCall extends Enum {
|
interface PolkadotRuntimeParachainsHrmpPalletCall extends Enum {
|
||||||
readonly isHrmpInitOpenChannel: boolean;
|
readonly isHrmpInitOpenChannel: boolean;
|
||||||
readonly asHrmpInitOpenChannel: {
|
readonly asHrmpInitOpenChannel: {
|
||||||
@@ -1552,13 +1555,13 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'HrmpInitOpenChannel' | 'HrmpAcceptOpenChannel' | 'HrmpCloseChannel' | 'ForceCleanHrmp' | 'ForceProcessHrmpOpen' | 'ForceProcessHrmpClose' | 'HrmpCancelOpenRequest' | 'ForceOpenHrmpChannel';
|
readonly type: 'HrmpInitOpenChannel' | 'HrmpAcceptOpenChannel' | 'HrmpCloseChannel' | 'ForceCleanHrmp' | 'ForceProcessHrmpOpen' | 'ForceProcessHrmpClose' | 'HrmpCancelOpenRequest' | 'ForceOpenHrmpChannel';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsDisputesPalletCall (429) */
|
/** @name PolkadotRuntimeParachainsDisputesPalletCall (431) */
|
||||||
interface PolkadotRuntimeParachainsDisputesPalletCall extends Enum {
|
interface PolkadotRuntimeParachainsDisputesPalletCall extends Enum {
|
||||||
readonly isForceUnfreeze: boolean;
|
readonly isForceUnfreeze: boolean;
|
||||||
readonly type: 'ForceUnfreeze';
|
readonly type: 'ForceUnfreeze';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeCommonParasRegistrarPalletCall (430) */
|
/** @name PolkadotRuntimeCommonParasRegistrarPalletCall (432) */
|
||||||
interface PolkadotRuntimeCommonParasRegistrarPalletCall extends Enum {
|
interface PolkadotRuntimeCommonParasRegistrarPalletCall extends Enum {
|
||||||
readonly isRegister: boolean;
|
readonly isRegister: boolean;
|
||||||
readonly asRegister: {
|
readonly asRegister: {
|
||||||
@@ -1605,7 +1608,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'Register' | 'ForceRegister' | 'Deregister' | 'Swap' | 'RemoveLock' | 'Reserve' | 'AddLock' | 'ScheduleCodeUpgrade' | 'SetCurrentHead';
|
readonly type: 'Register' | 'ForceRegister' | 'Deregister' | 'Swap' | 'RemoveLock' | 'Reserve' | 'AddLock' | 'ScheduleCodeUpgrade' | 'SetCurrentHead';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeCommonSlotsPalletCall (431) */
|
/** @name PolkadotRuntimeCommonSlotsPalletCall (433) */
|
||||||
interface PolkadotRuntimeCommonSlotsPalletCall extends Enum {
|
interface PolkadotRuntimeCommonSlotsPalletCall extends Enum {
|
||||||
readonly isForceLease: boolean;
|
readonly isForceLease: boolean;
|
||||||
readonly asForceLease: {
|
readonly asForceLease: {
|
||||||
@@ -1626,7 +1629,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'ForceLease' | 'ClearAllLeases' | 'TriggerOnboard';
|
readonly type: 'ForceLease' | 'ClearAllLeases' | 'TriggerOnboard';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeCommonAuctionsPalletCall (432) */
|
/** @name PolkadotRuntimeCommonAuctionsPalletCall (434) */
|
||||||
interface PolkadotRuntimeCommonAuctionsPalletCall extends Enum {
|
interface PolkadotRuntimeCommonAuctionsPalletCall extends Enum {
|
||||||
readonly isNewAuction: boolean;
|
readonly isNewAuction: boolean;
|
||||||
readonly asNewAuction: {
|
readonly asNewAuction: {
|
||||||
@@ -1645,7 +1648,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'NewAuction' | 'Bid' | 'CancelAuction';
|
readonly type: 'NewAuction' | 'Bid' | 'CancelAuction';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeCommonCrowdloanPalletCall (434) */
|
/** @name PolkadotRuntimeCommonCrowdloanPalletCall (436) */
|
||||||
interface PolkadotRuntimeCommonCrowdloanPalletCall extends Enum {
|
interface PolkadotRuntimeCommonCrowdloanPalletCall extends Enum {
|
||||||
readonly isCreate: boolean;
|
readonly isCreate: boolean;
|
||||||
readonly asCreate: {
|
readonly asCreate: {
|
||||||
@@ -1701,7 +1704,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'Create' | 'Contribute' | 'Withdraw' | 'Refund' | 'Dissolve' | 'Edit' | 'AddMemo' | 'Poke' | 'ContributeAll';
|
readonly type: 'Create' | 'Contribute' | 'Withdraw' | 'Refund' | 'Dissolve' | 'Edit' | 'AddMemo' | 'Poke' | 'ContributeAll';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name SpRuntimeMultiSigner (436) */
|
/** @name SpRuntimeMultiSigner (438) */
|
||||||
interface SpRuntimeMultiSigner extends Enum {
|
interface SpRuntimeMultiSigner extends Enum {
|
||||||
readonly isEd25519: boolean;
|
readonly isEd25519: boolean;
|
||||||
readonly asEd25519: SpCoreEd25519Public;
|
readonly asEd25519: SpCoreEd25519Public;
|
||||||
@@ -1712,10 +1715,10 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'Ed25519' | 'Sr25519' | 'Ecdsa';
|
readonly type: 'Ed25519' | 'Sr25519' | 'Ecdsa';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name SpCoreEcdsaPublic (437) */
|
/** @name SpCoreEcdsaPublic (439) */
|
||||||
interface SpCoreEcdsaPublic extends U8aFixed {}
|
interface SpCoreEcdsaPublic extends U8aFixed {}
|
||||||
|
|
||||||
/** @name PalletXcmCall (442) */
|
/** @name PalletXcmCall (444) */
|
||||||
interface PalletXcmCall extends Enum {
|
interface PalletXcmCall extends Enum {
|
||||||
readonly isSend: boolean;
|
readonly isSend: boolean;
|
||||||
readonly asSend: {
|
readonly asSend: {
|
||||||
@@ -1777,7 +1780,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'Send' | 'TeleportAssets' | 'ReserveTransferAssets' | 'Execute' | 'ForceXcmVersion' | 'ForceDefaultXcmVersion' | 'ForceSubscribeVersionNotify' | 'ForceUnsubscribeVersionNotify' | 'LimitedReserveTransferAssets' | 'LimitedTeleportAssets';
|
readonly type: 'Send' | 'TeleportAssets' | 'ReserveTransferAssets' | 'Execute' | 'ForceXcmVersion' | 'ForceDefaultXcmVersion' | 'ForceSubscribeVersionNotify' | 'ForceUnsubscribeVersionNotify' | 'LimitedReserveTransferAssets' | 'LimitedTeleportAssets';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name XcmVersionedXcm (443) */
|
/** @name XcmVersionedXcm (445) */
|
||||||
interface XcmVersionedXcm extends Enum {
|
interface XcmVersionedXcm extends Enum {
|
||||||
readonly isV2: boolean;
|
readonly isV2: boolean;
|
||||||
readonly asV2: XcmV2Xcm;
|
readonly asV2: XcmV2Xcm;
|
||||||
@@ -1786,10 +1789,10 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'V2' | 'V3';
|
readonly type: 'V2' | 'V3';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name XcmV2Xcm (444) */
|
/** @name XcmV2Xcm (446) */
|
||||||
interface XcmV2Xcm extends Vec<XcmV2Instruction> {}
|
interface XcmV2Xcm extends Vec<XcmV2Instruction> {}
|
||||||
|
|
||||||
/** @name XcmV2Instruction (446) */
|
/** @name XcmV2Instruction (448) */
|
||||||
interface XcmV2Instruction extends Enum {
|
interface XcmV2Instruction extends Enum {
|
||||||
readonly isWithdrawAsset: boolean;
|
readonly isWithdrawAsset: boolean;
|
||||||
readonly asWithdrawAsset: XcmV2MultiassetMultiAssets;
|
readonly asWithdrawAsset: XcmV2MultiassetMultiAssets;
|
||||||
@@ -1909,7 +1912,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'WithdrawAsset' | 'ReserveAssetDeposited' | 'ReceiveTeleportedAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'ClearOrigin' | 'DescendOrigin' | 'ReportError' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution' | 'RefundSurplus' | 'SetErrorHandler' | 'SetAppendix' | 'ClearError' | 'ClaimAsset' | 'Trap' | 'SubscribeVersion' | 'UnsubscribeVersion';
|
readonly type: 'WithdrawAsset' | 'ReserveAssetDeposited' | 'ReceiveTeleportedAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'ClearOrigin' | 'DescendOrigin' | 'ReportError' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution' | 'RefundSurplus' | 'SetErrorHandler' | 'SetAppendix' | 'ClearError' | 'ClaimAsset' | 'Trap' | 'SubscribeVersion' | 'UnsubscribeVersion';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name XcmV2Response (447) */
|
/** @name XcmV2Response (449) */
|
||||||
interface XcmV2Response extends Enum {
|
interface XcmV2Response extends Enum {
|
||||||
readonly isNull: boolean;
|
readonly isNull: boolean;
|
||||||
readonly isAssets: boolean;
|
readonly isAssets: boolean;
|
||||||
@@ -1921,7 +1924,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'Null' | 'Assets' | 'ExecutionResult' | 'Version';
|
readonly type: 'Null' | 'Assets' | 'ExecutionResult' | 'Version';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name XcmV2TraitsError (450) */
|
/** @name XcmV2TraitsError (452) */
|
||||||
interface XcmV2TraitsError extends Enum {
|
interface XcmV2TraitsError extends Enum {
|
||||||
readonly isOverflow: boolean;
|
readonly isOverflow: boolean;
|
||||||
readonly isUnimplemented: boolean;
|
readonly isUnimplemented: boolean;
|
||||||
@@ -1954,7 +1957,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'Overflow' | 'Unimplemented' | 'UntrustedReserveLocation' | 'UntrustedTeleportLocation' | 'MultiLocationFull' | 'MultiLocationNotInvertible' | 'BadOrigin' | 'InvalidLocation' | 'AssetNotFound' | 'FailedToTransactAsset' | 'NotWithdrawable' | 'LocationCannotHold' | 'ExceedsMaxMessageSize' | 'DestinationUnsupported' | 'Transport' | 'Unroutable' | 'UnknownClaim' | 'FailedToDecode' | 'MaxWeightInvalid' | 'NotHoldingFees' | 'TooExpensive' | 'Trap' | 'UnhandledXcmVersion' | 'WeightLimitReached' | 'Barrier' | 'WeightNotComputable';
|
readonly type: 'Overflow' | 'Unimplemented' | 'UntrustedReserveLocation' | 'UntrustedTeleportLocation' | 'MultiLocationFull' | 'MultiLocationNotInvertible' | 'BadOrigin' | 'InvalidLocation' | 'AssetNotFound' | 'FailedToTransactAsset' | 'NotWithdrawable' | 'LocationCannotHold' | 'ExceedsMaxMessageSize' | 'DestinationUnsupported' | 'Transport' | 'Unroutable' | 'UnknownClaim' | 'FailedToDecode' | 'MaxWeightInvalid' | 'NotHoldingFees' | 'TooExpensive' | 'Trap' | 'UnhandledXcmVersion' | 'WeightLimitReached' | 'Barrier' | 'WeightNotComputable';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name XcmV2MultiassetMultiAssetFilter (451) */
|
/** @name XcmV2MultiassetMultiAssetFilter (453) */
|
||||||
interface XcmV2MultiassetMultiAssetFilter extends Enum {
|
interface XcmV2MultiassetMultiAssetFilter extends Enum {
|
||||||
readonly isDefinite: boolean;
|
readonly isDefinite: boolean;
|
||||||
readonly asDefinite: XcmV2MultiassetMultiAssets;
|
readonly asDefinite: XcmV2MultiassetMultiAssets;
|
||||||
@@ -1963,7 +1966,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'Definite' | 'Wild';
|
readonly type: 'Definite' | 'Wild';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name XcmV2MultiassetWildMultiAsset (452) */
|
/** @name XcmV2MultiassetWildMultiAsset (454) */
|
||||||
interface XcmV2MultiassetWildMultiAsset extends Enum {
|
interface XcmV2MultiassetWildMultiAsset extends Enum {
|
||||||
readonly isAll: boolean;
|
readonly isAll: boolean;
|
||||||
readonly isAllOf: boolean;
|
readonly isAllOf: boolean;
|
||||||
@@ -1974,14 +1977,14 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'All' | 'AllOf';
|
readonly type: 'All' | 'AllOf';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name XcmV2MultiassetWildFungibility (453) */
|
/** @name XcmV2MultiassetWildFungibility (455) */
|
||||||
interface XcmV2MultiassetWildFungibility extends Enum {
|
interface XcmV2MultiassetWildFungibility extends Enum {
|
||||||
readonly isFungible: boolean;
|
readonly isFungible: boolean;
|
||||||
readonly isNonFungible: boolean;
|
readonly isNonFungible: boolean;
|
||||||
readonly type: 'Fungible' | 'NonFungible';
|
readonly type: 'Fungible' | 'NonFungible';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name XcmV2WeightLimit (454) */
|
/** @name XcmV2WeightLimit (456) */
|
||||||
interface XcmV2WeightLimit extends Enum {
|
interface XcmV2WeightLimit extends Enum {
|
||||||
readonly isUnlimited: boolean;
|
readonly isUnlimited: boolean;
|
||||||
readonly isLimited: boolean;
|
readonly isLimited: boolean;
|
||||||
@@ -1989,7 +1992,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'Unlimited' | 'Limited';
|
readonly type: 'Unlimited' | 'Limited';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeCommonClaimsPalletError (570) */
|
/** @name PolkadotRuntimeCommonClaimsPalletError (572) */
|
||||||
interface PolkadotRuntimeCommonClaimsPalletError extends Enum {
|
interface PolkadotRuntimeCommonClaimsPalletError extends Enum {
|
||||||
readonly isInvalidEthereumSignature: boolean;
|
readonly isInvalidEthereumSignature: boolean;
|
||||||
readonly isSignerHasNoClaim: boolean;
|
readonly isSignerHasNoClaim: boolean;
|
||||||
@@ -2000,7 +2003,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'InvalidEthereumSignature' | 'SignerHasNoClaim' | 'SenderHasNoClaim' | 'PotUnderflow' | 'InvalidStatement' | 'VestedBalanceExists';
|
readonly type: 'InvalidEthereumSignature' | 'SignerHasNoClaim' | 'SenderHasNoClaim' | 'PotUnderflow' | 'InvalidStatement' | 'VestedBalanceExists';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsConfigurationHostConfiguration (645) */
|
/** @name PolkadotRuntimeParachainsConfigurationHostConfiguration (647) */
|
||||||
interface PolkadotRuntimeParachainsConfigurationHostConfiguration extends Struct {
|
interface PolkadotRuntimeParachainsConfigurationHostConfiguration extends Struct {
|
||||||
readonly maxCodeSize: u32;
|
readonly maxCodeSize: u32;
|
||||||
readonly maxHeadDataSize: u32;
|
readonly maxHeadDataSize: u32;
|
||||||
@@ -2046,19 +2049,19 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly minimumValidationUpgradeDelay: u32;
|
readonly minimumValidationUpgradeDelay: u32;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsConfigurationPalletError (648) */
|
/** @name PolkadotRuntimeParachainsConfigurationPalletError (650) */
|
||||||
interface PolkadotRuntimeParachainsConfigurationPalletError extends Enum {
|
interface PolkadotRuntimeParachainsConfigurationPalletError extends Enum {
|
||||||
readonly isInvalidNewValue: boolean;
|
readonly isInvalidNewValue: boolean;
|
||||||
readonly type: 'InvalidNewValue';
|
readonly type: 'InvalidNewValue';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord (651) */
|
/** @name PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord (653) */
|
||||||
interface PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord extends Struct {
|
interface PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord extends Struct {
|
||||||
readonly bitfield: BitVec;
|
readonly bitfield: BitVec;
|
||||||
readonly submittedAt: u32;
|
readonly submittedAt: u32;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsInclusionCandidatePendingAvailability (652) */
|
/** @name PolkadotRuntimeParachainsInclusionCandidatePendingAvailability (654) */
|
||||||
interface PolkadotRuntimeParachainsInclusionCandidatePendingAvailability extends Struct {
|
interface PolkadotRuntimeParachainsInclusionCandidatePendingAvailability extends Struct {
|
||||||
readonly core: u32;
|
readonly core: u32;
|
||||||
readonly hash_: H256;
|
readonly hash_: H256;
|
||||||
@@ -2070,7 +2073,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly backingGroup: u32;
|
readonly backingGroup: u32;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsInclusionPalletError (653) */
|
/** @name PolkadotRuntimeParachainsInclusionPalletError (655) */
|
||||||
interface PolkadotRuntimeParachainsInclusionPalletError extends Enum {
|
interface PolkadotRuntimeParachainsInclusionPalletError extends Enum {
|
||||||
readonly isUnsortedOrDuplicateValidatorIndices: boolean;
|
readonly isUnsortedOrDuplicateValidatorIndices: boolean;
|
||||||
readonly isUnsortedOrDuplicateDisputeStatementSet: boolean;
|
readonly isUnsortedOrDuplicateDisputeStatementSet: boolean;
|
||||||
@@ -2104,14 +2107,14 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'UnsortedOrDuplicateValidatorIndices' | 'UnsortedOrDuplicateDisputeStatementSet' | 'UnsortedOrDuplicateBackedCandidates' | 'UnexpectedRelayParent' | 'WrongBitfieldSize' | 'BitfieldAllZeros' | 'BitfieldDuplicateOrUnordered' | 'ValidatorIndexOutOfBounds' | 'InvalidBitfieldSignature' | 'UnscheduledCandidate' | 'CandidateScheduledBeforeParaFree' | 'WrongCollator' | 'ScheduledOutOfOrder' | 'HeadDataTooLarge' | 'PrematureCodeUpgrade' | 'NewCodeTooLarge' | 'CandidateNotInParentContext' | 'InvalidGroupIndex' | 'InsufficientBacking' | 'InvalidBacking' | 'NotCollatorSigned' | 'ValidationDataHashMismatch' | 'IncorrectDownwardMessageHandling' | 'InvalidUpwardMessages' | 'HrmpWatermarkMishandling' | 'InvalidOutboundHrmp' | 'InvalidValidationCodeHash' | 'ParaHeadMismatch' | 'BitfieldReferencesFreedCore';
|
readonly type: 'UnsortedOrDuplicateValidatorIndices' | 'UnsortedOrDuplicateDisputeStatementSet' | 'UnsortedOrDuplicateBackedCandidates' | 'UnexpectedRelayParent' | 'WrongBitfieldSize' | 'BitfieldAllZeros' | 'BitfieldDuplicateOrUnordered' | 'ValidatorIndexOutOfBounds' | 'InvalidBitfieldSignature' | 'UnscheduledCandidate' | 'CandidateScheduledBeforeParaFree' | 'WrongCollator' | 'ScheduledOutOfOrder' | 'HeadDataTooLarge' | 'PrematureCodeUpgrade' | 'NewCodeTooLarge' | 'CandidateNotInParentContext' | 'InvalidGroupIndex' | 'InsufficientBacking' | 'InvalidBacking' | 'NotCollatorSigned' | 'ValidationDataHashMismatch' | 'IncorrectDownwardMessageHandling' | 'InvalidUpwardMessages' | 'HrmpWatermarkMishandling' | 'InvalidOutboundHrmp' | 'InvalidValidationCodeHash' | 'ParaHeadMismatch' | 'BitfieldReferencesFreedCore';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotPrimitivesV2ScrapedOnChainVotes (654) */
|
/** @name PolkadotPrimitivesV2ScrapedOnChainVotes (656) */
|
||||||
interface PolkadotPrimitivesV2ScrapedOnChainVotes extends Struct {
|
interface PolkadotPrimitivesV2ScrapedOnChainVotes extends Struct {
|
||||||
readonly session: u32;
|
readonly session: u32;
|
||||||
readonly backingValidatorsPerCandidate: Vec<ITuple<[PolkadotPrimitivesV2CandidateReceipt, Vec<ITuple<[u32, PolkadotPrimitivesV2ValidityAttestation]>>]>>;
|
readonly backingValidatorsPerCandidate: Vec<ITuple<[PolkadotPrimitivesV2CandidateReceipt, Vec<ITuple<[u32, PolkadotPrimitivesV2ValidityAttestation]>>]>>;
|
||||||
readonly disputes: Vec<PolkadotPrimitivesV2DisputeStatementSet>;
|
readonly disputes: Vec<PolkadotPrimitivesV2DisputeStatementSet>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsParasInherentPalletError (659) */
|
/** @name PolkadotRuntimeParachainsParasInherentPalletError (661) */
|
||||||
interface PolkadotRuntimeParachainsParasInherentPalletError extends Enum {
|
interface PolkadotRuntimeParachainsParasInherentPalletError extends Enum {
|
||||||
readonly isTooManyInclusionInherents: boolean;
|
readonly isTooManyInclusionInherents: boolean;
|
||||||
readonly isInvalidParentHeader: boolean;
|
readonly isInvalidParentHeader: boolean;
|
||||||
@@ -2122,28 +2125,28 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'TooManyInclusionInherents' | 'InvalidParentHeader' | 'CandidateConcludedInvalid' | 'InherentOverweight' | 'DisputeStatementsUnsortedOrDuplicates' | 'DisputeInvalid';
|
readonly type: 'TooManyInclusionInherents' | 'InvalidParentHeader' | 'CandidateConcludedInvalid' | 'InherentOverweight' | 'DisputeStatementsUnsortedOrDuplicates' | 'DisputeInvalid';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsSchedulerParathreadClaimQueue (661) */
|
/** @name PolkadotRuntimeParachainsSchedulerParathreadClaimQueue (663) */
|
||||||
interface PolkadotRuntimeParachainsSchedulerParathreadClaimQueue extends Struct {
|
interface PolkadotRuntimeParachainsSchedulerParathreadClaimQueue extends Struct {
|
||||||
readonly queue: Vec<PolkadotRuntimeParachainsSchedulerQueuedParathread>;
|
readonly queue: Vec<PolkadotRuntimeParachainsSchedulerQueuedParathread>;
|
||||||
readonly nextCoreOffset: u32;
|
readonly nextCoreOffset: u32;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsSchedulerQueuedParathread (663) */
|
/** @name PolkadotRuntimeParachainsSchedulerQueuedParathread (665) */
|
||||||
interface PolkadotRuntimeParachainsSchedulerQueuedParathread extends Struct {
|
interface PolkadotRuntimeParachainsSchedulerQueuedParathread extends Struct {
|
||||||
readonly claim: PolkadotPrimitivesV2ParathreadEntry;
|
readonly claim: PolkadotPrimitivesV2ParathreadEntry;
|
||||||
readonly coreOffset: u32;
|
readonly coreOffset: u32;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotPrimitivesV2ParathreadEntry (664) */
|
/** @name PolkadotPrimitivesV2ParathreadEntry (666) */
|
||||||
interface PolkadotPrimitivesV2ParathreadEntry extends Struct {
|
interface PolkadotPrimitivesV2ParathreadEntry extends Struct {
|
||||||
readonly claim: PolkadotPrimitivesV2ParathreadClaim;
|
readonly claim: PolkadotPrimitivesV2ParathreadClaim;
|
||||||
readonly retries: u32;
|
readonly retries: u32;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotPrimitivesV2ParathreadClaim (665) */
|
/** @name PolkadotPrimitivesV2ParathreadClaim (667) */
|
||||||
interface PolkadotPrimitivesV2ParathreadClaim extends ITuple<[u32, PolkadotPrimitivesV2CollatorAppPublic]> {}
|
interface PolkadotPrimitivesV2ParathreadClaim extends ITuple<[u32, PolkadotPrimitivesV2CollatorAppPublic]> {}
|
||||||
|
|
||||||
/** @name PolkadotPrimitivesV2CoreOccupied (668) */
|
/** @name PolkadotPrimitivesV2CoreOccupied (670) */
|
||||||
interface PolkadotPrimitivesV2CoreOccupied extends Enum {
|
interface PolkadotPrimitivesV2CoreOccupied extends Enum {
|
||||||
readonly isParathread: boolean;
|
readonly isParathread: boolean;
|
||||||
readonly asParathread: PolkadotPrimitivesV2ParathreadEntry;
|
readonly asParathread: PolkadotPrimitivesV2ParathreadEntry;
|
||||||
@@ -2151,7 +2154,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'Parathread' | 'Parachain';
|
readonly type: 'Parathread' | 'Parachain';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsSchedulerCoreAssignment (671) */
|
/** @name PolkadotRuntimeParachainsSchedulerCoreAssignment (673) */
|
||||||
interface PolkadotRuntimeParachainsSchedulerCoreAssignment extends Struct {
|
interface PolkadotRuntimeParachainsSchedulerCoreAssignment extends Struct {
|
||||||
readonly core: u32;
|
readonly core: u32;
|
||||||
readonly paraId: u32;
|
readonly paraId: u32;
|
||||||
@@ -2159,7 +2162,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly groupIdx: u32;
|
readonly groupIdx: u32;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsSchedulerAssignmentKind (672) */
|
/** @name PolkadotRuntimeParachainsSchedulerAssignmentKind (674) */
|
||||||
interface PolkadotRuntimeParachainsSchedulerAssignmentKind extends Enum {
|
interface PolkadotRuntimeParachainsSchedulerAssignmentKind extends Enum {
|
||||||
readonly isParachain: boolean;
|
readonly isParachain: boolean;
|
||||||
readonly isParathread: boolean;
|
readonly isParathread: boolean;
|
||||||
@@ -2167,7 +2170,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'Parachain' | 'Parathread';
|
readonly type: 'Parachain' | 'Parathread';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsParasPvfCheckActiveVoteState (673) */
|
/** @name PolkadotRuntimeParachainsParasPvfCheckActiveVoteState (675) */
|
||||||
interface PolkadotRuntimeParachainsParasPvfCheckActiveVoteState extends Struct {
|
interface PolkadotRuntimeParachainsParasPvfCheckActiveVoteState extends Struct {
|
||||||
readonly votesAccept: BitVec;
|
readonly votesAccept: BitVec;
|
||||||
readonly votesReject: BitVec;
|
readonly votesReject: BitVec;
|
||||||
@@ -2176,7 +2179,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly causes: Vec<PolkadotRuntimeParachainsParasPvfCheckCause>;
|
readonly causes: Vec<PolkadotRuntimeParachainsParasPvfCheckCause>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsParasPvfCheckCause (675) */
|
/** @name PolkadotRuntimeParachainsParasPvfCheckCause (677) */
|
||||||
interface PolkadotRuntimeParachainsParasPvfCheckCause extends Enum {
|
interface PolkadotRuntimeParachainsParasPvfCheckCause extends Enum {
|
||||||
readonly isOnboarding: boolean;
|
readonly isOnboarding: boolean;
|
||||||
readonly asOnboarding: u32;
|
readonly asOnboarding: u32;
|
||||||
@@ -2188,7 +2191,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'Onboarding' | 'Upgrade';
|
readonly type: 'Onboarding' | 'Upgrade';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsParasParaLifecycle (677) */
|
/** @name PolkadotRuntimeParachainsParasParaLifecycle (679) */
|
||||||
interface PolkadotRuntimeParachainsParasParaLifecycle extends Enum {
|
interface PolkadotRuntimeParachainsParasParaLifecycle extends Enum {
|
||||||
readonly isOnboarding: boolean;
|
readonly isOnboarding: boolean;
|
||||||
readonly isParathread: boolean;
|
readonly isParathread: boolean;
|
||||||
@@ -2200,39 +2203,39 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'Onboarding' | 'Parathread' | 'Parachain' | 'UpgradingParathread' | 'DowngradingParachain' | 'OffboardingParathread' | 'OffboardingParachain';
|
readonly type: 'Onboarding' | 'Parathread' | 'Parachain' | 'UpgradingParathread' | 'DowngradingParachain' | 'OffboardingParathread' | 'OffboardingParachain';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsParasParaPastCodeMeta (679) */
|
/** @name PolkadotRuntimeParachainsParasParaPastCodeMeta (681) */
|
||||||
interface PolkadotRuntimeParachainsParasParaPastCodeMeta extends Struct {
|
interface PolkadotRuntimeParachainsParasParaPastCodeMeta extends Struct {
|
||||||
readonly upgradeTimes: Vec<PolkadotRuntimeParachainsParasReplacementTimes>;
|
readonly upgradeTimes: Vec<PolkadotRuntimeParachainsParasReplacementTimes>;
|
||||||
readonly lastPruned: Option<u32>;
|
readonly lastPruned: Option<u32>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsParasReplacementTimes (681) */
|
/** @name PolkadotRuntimeParachainsParasReplacementTimes (683) */
|
||||||
interface PolkadotRuntimeParachainsParasReplacementTimes extends Struct {
|
interface PolkadotRuntimeParachainsParasReplacementTimes extends Struct {
|
||||||
readonly expectedAt: u32;
|
readonly expectedAt: u32;
|
||||||
readonly activatedAt: u32;
|
readonly activatedAt: u32;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotPrimitivesV2UpgradeGoAhead (683) */
|
/** @name PolkadotPrimitivesV2UpgradeGoAhead (685) */
|
||||||
interface PolkadotPrimitivesV2UpgradeGoAhead extends Enum {
|
interface PolkadotPrimitivesV2UpgradeGoAhead extends Enum {
|
||||||
readonly isAbort: boolean;
|
readonly isAbort: boolean;
|
||||||
readonly isGoAhead: boolean;
|
readonly isGoAhead: boolean;
|
||||||
readonly type: 'Abort' | 'GoAhead';
|
readonly type: 'Abort' | 'GoAhead';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotPrimitivesV2UpgradeRestriction (684) */
|
/** @name PolkadotPrimitivesV2UpgradeRestriction (686) */
|
||||||
interface PolkadotPrimitivesV2UpgradeRestriction extends Enum {
|
interface PolkadotPrimitivesV2UpgradeRestriction extends Enum {
|
||||||
readonly isPresent: boolean;
|
readonly isPresent: boolean;
|
||||||
readonly type: 'Present';
|
readonly type: 'Present';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsParasParaGenesisArgs (685) */
|
/** @name PolkadotRuntimeParachainsParasParaGenesisArgs (687) */
|
||||||
interface PolkadotRuntimeParachainsParasParaGenesisArgs extends Struct {
|
interface PolkadotRuntimeParachainsParasParaGenesisArgs extends Struct {
|
||||||
readonly genesisHead: Bytes;
|
readonly genesisHead: Bytes;
|
||||||
readonly validationCode: Bytes;
|
readonly validationCode: Bytes;
|
||||||
readonly paraKind: bool;
|
readonly paraKind: bool;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsParasPalletError (686) */
|
/** @name PolkadotRuntimeParachainsParasPalletError (688) */
|
||||||
interface PolkadotRuntimeParachainsParasPalletError extends Enum {
|
interface PolkadotRuntimeParachainsParasPalletError extends Enum {
|
||||||
readonly isNotRegistered: boolean;
|
readonly isNotRegistered: boolean;
|
||||||
readonly isCannotOnboard: boolean;
|
readonly isCannotOnboard: boolean;
|
||||||
@@ -2250,27 +2253,27 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'NotRegistered' | 'CannotOnboard' | 'CannotOffboard' | 'CannotUpgrade' | 'CannotDowngrade' | 'PvfCheckStatementStale' | 'PvfCheckStatementFuture' | 'PvfCheckValidatorIndexOutOfBounds' | 'PvfCheckInvalidSignature' | 'PvfCheckDoubleVote' | 'PvfCheckSubjectInvalid' | 'PvfCheckDisabled' | 'CannotUpgradeCode';
|
readonly type: 'NotRegistered' | 'CannotOnboard' | 'CannotOffboard' | 'CannotUpgrade' | 'CannotDowngrade' | 'PvfCheckStatementStale' | 'PvfCheckStatementFuture' | 'PvfCheckValidatorIndexOutOfBounds' | 'PvfCheckInvalidSignature' | 'PvfCheckDoubleVote' | 'PvfCheckSubjectInvalid' | 'PvfCheckDisabled' | 'CannotUpgradeCode';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsInitializerBufferedSessionChange (688) */
|
/** @name PolkadotRuntimeParachainsInitializerBufferedSessionChange (690) */
|
||||||
interface PolkadotRuntimeParachainsInitializerBufferedSessionChange extends Struct {
|
interface PolkadotRuntimeParachainsInitializerBufferedSessionChange extends Struct {
|
||||||
readonly validators: Vec<PolkadotPrimitivesV2ValidatorAppPublic>;
|
readonly validators: Vec<PolkadotPrimitivesV2ValidatorAppPublic>;
|
||||||
readonly queued: Vec<PolkadotPrimitivesV2ValidatorAppPublic>;
|
readonly queued: Vec<PolkadotPrimitivesV2ValidatorAppPublic>;
|
||||||
readonly sessionIndex: u32;
|
readonly sessionIndex: u32;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotCorePrimitivesInboundDownwardMessage (690) */
|
/** @name PolkadotCorePrimitivesInboundDownwardMessage (692) */
|
||||||
interface PolkadotCorePrimitivesInboundDownwardMessage extends Struct {
|
interface PolkadotCorePrimitivesInboundDownwardMessage extends Struct {
|
||||||
readonly sentAt: u32;
|
readonly sentAt: u32;
|
||||||
readonly msg: Bytes;
|
readonly msg: Bytes;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsUmpPalletError (692) */
|
/** @name PolkadotRuntimeParachainsUmpPalletError (694) */
|
||||||
interface PolkadotRuntimeParachainsUmpPalletError extends Enum {
|
interface PolkadotRuntimeParachainsUmpPalletError extends Enum {
|
||||||
readonly isUnknownMessageIndex: boolean;
|
readonly isUnknownMessageIndex: boolean;
|
||||||
readonly isWeightOverLimit: boolean;
|
readonly isWeightOverLimit: boolean;
|
||||||
readonly type: 'UnknownMessageIndex' | 'WeightOverLimit';
|
readonly type: 'UnknownMessageIndex' | 'WeightOverLimit';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest (693) */
|
/** @name PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest (695) */
|
||||||
interface PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest extends Struct {
|
interface PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest extends Struct {
|
||||||
readonly confirmed: bool;
|
readonly confirmed: bool;
|
||||||
readonly age: u32;
|
readonly age: u32;
|
||||||
@@ -2280,7 +2283,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly maxTotalSize: u32;
|
readonly maxTotalSize: u32;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsHrmpHrmpChannel (695) */
|
/** @name PolkadotRuntimeParachainsHrmpHrmpChannel (697) */
|
||||||
interface PolkadotRuntimeParachainsHrmpHrmpChannel extends Struct {
|
interface PolkadotRuntimeParachainsHrmpHrmpChannel extends Struct {
|
||||||
readonly maxCapacity: u32;
|
readonly maxCapacity: u32;
|
||||||
readonly maxTotalSize: u32;
|
readonly maxTotalSize: u32;
|
||||||
@@ -2292,13 +2295,13 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly recipientDeposit: u128;
|
readonly recipientDeposit: u128;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotCorePrimitivesInboundHrmpMessage (697) */
|
/** @name PolkadotCorePrimitivesInboundHrmpMessage (699) */
|
||||||
interface PolkadotCorePrimitivesInboundHrmpMessage extends Struct {
|
interface PolkadotCorePrimitivesInboundHrmpMessage extends Struct {
|
||||||
readonly sentAt: u32;
|
readonly sentAt: u32;
|
||||||
readonly data: Bytes;
|
readonly data: Bytes;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsHrmpPalletError (700) */
|
/** @name PolkadotRuntimeParachainsHrmpPalletError (702) */
|
||||||
interface PolkadotRuntimeParachainsHrmpPalletError extends Enum {
|
interface PolkadotRuntimeParachainsHrmpPalletError extends Enum {
|
||||||
readonly isOpenHrmpChannelToSelf: boolean;
|
readonly isOpenHrmpChannelToSelf: boolean;
|
||||||
readonly isOpenHrmpChannelInvalidRecipient: boolean;
|
readonly isOpenHrmpChannelInvalidRecipient: boolean;
|
||||||
@@ -2322,7 +2325,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'OpenHrmpChannelToSelf' | 'OpenHrmpChannelInvalidRecipient' | 'OpenHrmpChannelZeroCapacity' | 'OpenHrmpChannelCapacityExceedsLimit' | 'OpenHrmpChannelZeroMessageSize' | 'OpenHrmpChannelMessageSizeExceedsLimit' | 'OpenHrmpChannelAlreadyExists' | 'OpenHrmpChannelAlreadyRequested' | 'OpenHrmpChannelLimitExceeded' | 'AcceptHrmpChannelDoesntExist' | 'AcceptHrmpChannelAlreadyConfirmed' | 'AcceptHrmpChannelLimitExceeded' | 'CloseHrmpChannelUnauthorized' | 'CloseHrmpChannelDoesntExist' | 'CloseHrmpChannelAlreadyUnderway' | 'CancelHrmpOpenChannelUnauthorized' | 'OpenHrmpChannelDoesntExist' | 'OpenHrmpChannelAlreadyConfirmed' | 'WrongWitness';
|
readonly type: 'OpenHrmpChannelToSelf' | 'OpenHrmpChannelInvalidRecipient' | 'OpenHrmpChannelZeroCapacity' | 'OpenHrmpChannelCapacityExceedsLimit' | 'OpenHrmpChannelZeroMessageSize' | 'OpenHrmpChannelMessageSizeExceedsLimit' | 'OpenHrmpChannelAlreadyExists' | 'OpenHrmpChannelAlreadyRequested' | 'OpenHrmpChannelLimitExceeded' | 'AcceptHrmpChannelDoesntExist' | 'AcceptHrmpChannelAlreadyConfirmed' | 'AcceptHrmpChannelLimitExceeded' | 'CloseHrmpChannelUnauthorized' | 'CloseHrmpChannelDoesntExist' | 'CloseHrmpChannelAlreadyUnderway' | 'CancelHrmpOpenChannelUnauthorized' | 'OpenHrmpChannelDoesntExist' | 'OpenHrmpChannelAlreadyConfirmed' | 'WrongWitness';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotPrimitivesV2SessionInfo (702) */
|
/** @name PolkadotPrimitivesV2SessionInfo (704) */
|
||||||
interface PolkadotPrimitivesV2SessionInfo extends Struct {
|
interface PolkadotPrimitivesV2SessionInfo extends Struct {
|
||||||
readonly activeValidatorIndices: Vec<u32>;
|
readonly activeValidatorIndices: Vec<u32>;
|
||||||
readonly randomSeed: U8aFixed;
|
readonly randomSeed: U8aFixed;
|
||||||
@@ -2339,13 +2342,29 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly neededApprovals: u32;
|
readonly neededApprovals: u32;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotPrimitivesV2IndexedVecValidatorIndex (703) */
|
/** @name PolkadotPrimitivesV2IndexedVecValidatorIndex (705) */
|
||||||
interface PolkadotPrimitivesV2IndexedVecValidatorIndex extends Vec<PolkadotPrimitivesV2ValidatorAppPublic> {}
|
interface PolkadotPrimitivesV2IndexedVecValidatorIndex extends Vec<PolkadotPrimitivesV2ValidatorAppPublic> {}
|
||||||
|
|
||||||
/** @name PolkadotPrimitivesV2IndexedVecGroupIndex (705) */
|
/** @name PolkadotPrimitivesV2IndexedVecGroupIndex (707) */
|
||||||
interface PolkadotPrimitivesV2IndexedVecGroupIndex extends Vec<Vec<u32>> {}
|
interface PolkadotPrimitivesV2IndexedVecGroupIndex extends Vec<Vec<u32>> {}
|
||||||
|
|
||||||
/** @name PolkadotPrimitivesV2DisputeState (707) */
|
/** @name PolkadotPrimitivesVstagingExecutorParams (708) */
|
||||||
|
interface PolkadotPrimitivesVstagingExecutorParams extends Vec<PolkadotPrimitivesVstagingExecutorParamsExecutorParam> {}
|
||||||
|
|
||||||
|
/** @name PolkadotPrimitivesVstagingExecutorParamsExecutorParam (710) */
|
||||||
|
interface PolkadotPrimitivesVstagingExecutorParamsExecutorParam 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 type: 'MaxMemoryPages' | 'StackLogicalMax' | 'StackNativeMax' | 'PrecheckingMaxMemory';
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name PolkadotPrimitivesV2DisputeState (712) */
|
||||||
interface PolkadotPrimitivesV2DisputeState extends Struct {
|
interface PolkadotPrimitivesV2DisputeState extends Struct {
|
||||||
readonly validatorsFor: BitVec;
|
readonly validatorsFor: BitVec;
|
||||||
readonly validatorsAgainst: BitVec;
|
readonly validatorsAgainst: BitVec;
|
||||||
@@ -2353,7 +2372,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly concludedAt: Option<u32>;
|
readonly concludedAt: Option<u32>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsDisputesPalletError (709) */
|
/** @name PolkadotRuntimeParachainsDisputesPalletError (714) */
|
||||||
interface PolkadotRuntimeParachainsDisputesPalletError extends Enum {
|
interface PolkadotRuntimeParachainsDisputesPalletError extends Enum {
|
||||||
readonly isDuplicateDisputeStatementSets: boolean;
|
readonly isDuplicateDisputeStatementSets: boolean;
|
||||||
readonly isAncientDisputeStatement: boolean;
|
readonly isAncientDisputeStatement: boolean;
|
||||||
@@ -2367,14 +2386,14 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'DuplicateDisputeStatementSets' | 'AncientDisputeStatement' | 'ValidatorIndexOutOfBounds' | 'InvalidSignature' | 'DuplicateStatement' | 'SingleSidedDispute' | 'MaliciousBacker' | 'MissingBackingVotes' | 'UnconfirmedDispute';
|
readonly type: 'DuplicateDisputeStatementSets' | 'AncientDisputeStatement' | 'ValidatorIndexOutOfBounds' | 'InvalidSignature' | 'DuplicateStatement' | 'SingleSidedDispute' | 'MaliciousBacker' | 'MissingBackingVotes' | 'UnconfirmedDispute';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeCommonParasRegistrarParaInfo (710) */
|
/** @name PolkadotRuntimeCommonParasRegistrarParaInfo (715) */
|
||||||
interface PolkadotRuntimeCommonParasRegistrarParaInfo extends Struct {
|
interface PolkadotRuntimeCommonParasRegistrarParaInfo extends Struct {
|
||||||
readonly manager: AccountId32;
|
readonly manager: AccountId32;
|
||||||
readonly deposit: u128;
|
readonly deposit: u128;
|
||||||
readonly locked: bool;
|
readonly locked: bool;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeCommonParasRegistrarPalletError (711) */
|
/** @name PolkadotRuntimeCommonParasRegistrarPalletError (716) */
|
||||||
interface PolkadotRuntimeCommonParasRegistrarPalletError extends Enum {
|
interface PolkadotRuntimeCommonParasRegistrarPalletError extends Enum {
|
||||||
readonly isNotRegistered: boolean;
|
readonly isNotRegistered: boolean;
|
||||||
readonly isAlreadyRegistered: boolean;
|
readonly isAlreadyRegistered: boolean;
|
||||||
@@ -2393,14 +2412,14 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'NotRegistered' | 'AlreadyRegistered' | 'NotOwner' | 'CodeTooLarge' | 'HeadDataTooLarge' | 'NotParachain' | 'NotParathread' | 'CannotDeregister' | 'CannotDowngrade' | 'CannotUpgrade' | 'ParaLocked' | 'NotReserved' | 'EmptyCode' | 'CannotSwap';
|
readonly type: 'NotRegistered' | 'AlreadyRegistered' | 'NotOwner' | 'CodeTooLarge' | 'HeadDataTooLarge' | 'NotParachain' | 'NotParathread' | 'CannotDeregister' | 'CannotDowngrade' | 'CannotUpgrade' | 'ParaLocked' | 'NotReserved' | 'EmptyCode' | 'CannotSwap';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeCommonSlotsPalletError (713) */
|
/** @name PolkadotRuntimeCommonSlotsPalletError (718) */
|
||||||
interface PolkadotRuntimeCommonSlotsPalletError extends Enum {
|
interface PolkadotRuntimeCommonSlotsPalletError extends Enum {
|
||||||
readonly isParaNotOnboarding: boolean;
|
readonly isParaNotOnboarding: boolean;
|
||||||
readonly isLeaseError: boolean;
|
readonly isLeaseError: boolean;
|
||||||
readonly type: 'ParaNotOnboarding' | 'LeaseError';
|
readonly type: 'ParaNotOnboarding' | 'LeaseError';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeCommonAuctionsPalletError (718) */
|
/** @name PolkadotRuntimeCommonAuctionsPalletError (723) */
|
||||||
interface PolkadotRuntimeCommonAuctionsPalletError extends Enum {
|
interface PolkadotRuntimeCommonAuctionsPalletError extends Enum {
|
||||||
readonly isAuctionInProgress: boolean;
|
readonly isAuctionInProgress: boolean;
|
||||||
readonly isLeasePeriodInPast: boolean;
|
readonly isLeasePeriodInPast: boolean;
|
||||||
@@ -2412,7 +2431,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'AuctionInProgress' | 'LeasePeriodInPast' | 'ParaNotRegistered' | 'NotCurrentAuction' | 'NotAuction' | 'AuctionEnded' | 'AlreadyLeasedOut';
|
readonly type: 'AuctionInProgress' | 'LeasePeriodInPast' | 'ParaNotRegistered' | 'NotCurrentAuction' | 'NotAuction' | 'AuctionEnded' | 'AlreadyLeasedOut';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeCommonCrowdloanFundInfo (719) */
|
/** @name PolkadotRuntimeCommonCrowdloanFundInfo (724) */
|
||||||
interface PolkadotRuntimeCommonCrowdloanFundInfo extends Struct {
|
interface PolkadotRuntimeCommonCrowdloanFundInfo extends Struct {
|
||||||
readonly depositor: AccountId32;
|
readonly depositor: AccountId32;
|
||||||
readonly verifier: Option<SpRuntimeMultiSigner>;
|
readonly verifier: Option<SpRuntimeMultiSigner>;
|
||||||
@@ -2426,7 +2445,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly fundIndex: u32;
|
readonly fundIndex: u32;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeCommonCrowdloanLastContribution (720) */
|
/** @name PolkadotRuntimeCommonCrowdloanLastContribution (725) */
|
||||||
interface PolkadotRuntimeCommonCrowdloanLastContribution extends Enum {
|
interface PolkadotRuntimeCommonCrowdloanLastContribution extends Enum {
|
||||||
readonly isNever: boolean;
|
readonly isNever: boolean;
|
||||||
readonly isPreEnding: boolean;
|
readonly isPreEnding: boolean;
|
||||||
@@ -2436,7 +2455,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'Never' | 'PreEnding' | 'Ending';
|
readonly type: 'Never' | 'PreEnding' | 'Ending';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeCommonCrowdloanPalletError (721) */
|
/** @name PolkadotRuntimeCommonCrowdloanPalletError (726) */
|
||||||
interface PolkadotRuntimeCommonCrowdloanPalletError extends Enum {
|
interface PolkadotRuntimeCommonCrowdloanPalletError extends Enum {
|
||||||
readonly isFirstPeriodInPast: boolean;
|
readonly isFirstPeriodInPast: boolean;
|
||||||
readonly isFirstPeriodTooFarInFuture: boolean;
|
readonly isFirstPeriodTooFarInFuture: boolean;
|
||||||
@@ -2464,7 +2483,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'FirstPeriodInPast' | 'FirstPeriodTooFarInFuture' | 'LastPeriodBeforeFirstPeriod' | 'LastPeriodTooFarInFuture' | 'CannotEndInPast' | 'EndTooFarInFuture' | 'Overflow' | 'ContributionTooSmall' | 'InvalidParaId' | 'CapExceeded' | 'ContributionPeriodOver' | 'InvalidOrigin' | 'NotParachain' | 'LeaseActive' | 'BidOrLeaseActive' | 'FundNotEnded' | 'NoContributions' | 'NotReadyToDissolve' | 'InvalidSignature' | 'MemoTooLarge' | 'AlreadyInNewRaise' | 'VrfDelayInProgress' | 'NoLeasePeriod';
|
readonly type: 'FirstPeriodInPast' | 'FirstPeriodTooFarInFuture' | 'LastPeriodBeforeFirstPeriod' | 'LastPeriodTooFarInFuture' | 'CannotEndInPast' | 'EndTooFarInFuture' | 'Overflow' | 'ContributionTooSmall' | 'InvalidParaId' | 'CapExceeded' | 'ContributionPeriodOver' | 'InvalidOrigin' | 'NotParachain' | 'LeaseActive' | 'BidOrLeaseActive' | 'FundNotEnded' | 'NoContributions' | 'NotReadyToDissolve' | 'InvalidSignature' | 'MemoTooLarge' | 'AlreadyInNewRaise' | 'VrfDelayInProgress' | 'NoLeasePeriod';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletXcmQueryStatus (722) */
|
/** @name PalletXcmQueryStatus (727) */
|
||||||
interface PalletXcmQueryStatus extends Enum {
|
interface PalletXcmQueryStatus extends Enum {
|
||||||
readonly isPending: boolean;
|
readonly isPending: boolean;
|
||||||
readonly asPending: {
|
readonly asPending: {
|
||||||
@@ -2486,7 +2505,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'Pending' | 'VersionNotifier' | 'Ready';
|
readonly type: 'Pending' | 'VersionNotifier' | 'Ready';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name XcmVersionedResponse (726) */
|
/** @name XcmVersionedResponse (731) */
|
||||||
interface XcmVersionedResponse extends Enum {
|
interface XcmVersionedResponse extends Enum {
|
||||||
readonly isV2: boolean;
|
readonly isV2: boolean;
|
||||||
readonly asV2: XcmV2Response;
|
readonly asV2: XcmV2Response;
|
||||||
@@ -2495,7 +2514,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'V2' | 'V3';
|
readonly type: 'V2' | 'V3';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletXcmVersionMigrationStage (732) */
|
/** @name PalletXcmVersionMigrationStage (737) */
|
||||||
interface PalletXcmVersionMigrationStage extends Enum {
|
interface PalletXcmVersionMigrationStage extends Enum {
|
||||||
readonly isMigrateSupportedVersion: boolean;
|
readonly isMigrateSupportedVersion: boolean;
|
||||||
readonly isMigrateVersionNotifiers: boolean;
|
readonly isMigrateVersionNotifiers: boolean;
|
||||||
@@ -2505,14 +2524,14 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'MigrateSupportedVersion' | 'MigrateVersionNotifiers' | 'NotifyCurrentTargets' | 'MigrateAndNotifyOldTargets';
|
readonly type: 'MigrateSupportedVersion' | 'MigrateVersionNotifiers' | 'NotifyCurrentTargets' | 'MigrateAndNotifyOldTargets';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name XcmVersionedAssetId (735) */
|
/** @name XcmVersionedAssetId (740) */
|
||||||
interface XcmVersionedAssetId extends Enum {
|
interface XcmVersionedAssetId extends Enum {
|
||||||
readonly isV3: boolean;
|
readonly isV3: boolean;
|
||||||
readonly asV3: XcmV3MultiassetAssetId;
|
readonly asV3: XcmV3MultiassetAssetId;
|
||||||
readonly type: 'V3';
|
readonly type: 'V3';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletXcmRemoteLockedFungibleRecord (736) */
|
/** @name PalletXcmRemoteLockedFungibleRecord (741) */
|
||||||
interface PalletXcmRemoteLockedFungibleRecord extends Struct {
|
interface PalletXcmRemoteLockedFungibleRecord extends Struct {
|
||||||
readonly amount: u128;
|
readonly amount: u128;
|
||||||
readonly owner: XcmVersionedMultiLocation;
|
readonly owner: XcmVersionedMultiLocation;
|
||||||
@@ -2520,7 +2539,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly users: u32;
|
readonly users: u32;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletXcmError (740) */
|
/** @name PalletXcmError (745) */
|
||||||
interface PalletXcmError extends Enum {
|
interface PalletXcmError extends Enum {
|
||||||
readonly isUnreachable: boolean;
|
readonly isUnreachable: boolean;
|
||||||
readonly isSendFailure: boolean;
|
readonly isSendFailure: boolean;
|
||||||
@@ -2545,13 +2564,13 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'Unreachable' | 'SendFailure' | 'Filtered' | 'UnweighableMessage' | 'DestinationNotInvertible' | 'Empty' | 'CannotReanchor' | 'TooManyAssets' | 'InvalidOrigin' | 'BadVersion' | 'BadLocation' | 'NoSubscription' | 'AlreadySubscribed' | 'InvalidAsset' | 'LowBalance' | 'TooManyLocks' | 'AccountNotSovereign' | 'FeesNotMet' | 'LockNotFound' | 'InUse';
|
readonly type: 'Unreachable' | 'SendFailure' | 'Filtered' | 'UnweighableMessage' | 'DestinationNotInvertible' | 'Empty' | 'CannotReanchor' | 'TooManyAssets' | 'InvalidOrigin' | 'BadVersion' | 'BadLocation' | 'NoSubscription' | 'AlreadySubscribed' | 'InvalidAsset' | 'LowBalance' | 'TooManyLocks' | 'AccountNotSovereign' | 'FeesNotMet' | 'LockNotFound' | 'InUse';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletTransactionPaymentChargeTransactionPayment (751) */
|
/** @name PalletTransactionPaymentChargeTransactionPayment (756) */
|
||||||
interface PalletTransactionPaymentChargeTransactionPayment extends Compact<u128> {}
|
interface PalletTransactionPaymentChargeTransactionPayment extends Compact<u128> {}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeCommonClaimsPrevalidateAttests (752) */
|
/** @name PolkadotRuntimeCommonClaimsPrevalidateAttests (757) */
|
||||||
type PolkadotRuntimeCommonClaimsPrevalidateAttests = Null;
|
type PolkadotRuntimeCommonClaimsPrevalidateAttests = Null;
|
||||||
|
|
||||||
/** @name PolkadotRuntimeRuntime (753) */
|
/** @name PolkadotRuntimeRuntime (758) */
|
||||||
type PolkadotRuntimeRuntime = Null;
|
type PolkadotRuntimeRuntime = Null;
|
||||||
|
|
||||||
} // declare module
|
} // declare module
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '9.14.1' };
|
export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '9.14.2' };
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -20,17 +20,17 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "9.14.1",
|
"version": "9.14.2",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.20.13",
|
"@babel/runtime": "^7.20.13",
|
||||||
"@polkadot/util": "^10.4.1",
|
"@polkadot/util": "^10.4.2",
|
||||||
"@polkadot/x-bigint": "^10.4.1"
|
"@polkadot/x-bigint": "^10.4.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/types": "9.14.1",
|
"@polkadot/types": "9.14.2",
|
||||||
"@polkadot/types-augment": "9.14.1",
|
"@polkadot/types-augment": "9.14.2",
|
||||||
"@polkadot/types-support": "9.14.1",
|
"@polkadot/types-support": "9.14.2",
|
||||||
"@polkadot/util-crypto": "^10.4.1"
|
"@polkadot/util-crypto": "^10.4.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -305,6 +305,7 @@ describe('Enum', (): void => {
|
|||||||
'0x0134120000'
|
'0x0134120000'
|
||||||
).inspect()
|
).inspect()
|
||||||
).toEqual({
|
).toEqual({
|
||||||
|
inner: undefined,
|
||||||
outer: [new Uint8Array([0x01]), new Uint8Array([0x34, 0x12, 0x00, 0x00])]
|
outer: [new Uint8Array([0x01]), new Uint8Array([0x34, 0x12, 0x00, 0x00])]
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -200,6 +200,7 @@ describe('Option', (): void => {
|
|||||||
expect(
|
expect(
|
||||||
new Option(registry, U32, '1234').inspect()
|
new Option(registry, U32, '1234').inspect()
|
||||||
).toEqual({
|
).toEqual({
|
||||||
|
inner: undefined,
|
||||||
outer: [new Uint8Array([0x01]), new Uint8Array([210, 4, 0, 0])]
|
outer: [new Uint8Array([0x01]), new Uint8Array([210, 4, 0, 0])]
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ describe('BTreeMap', (): void => {
|
|||||||
(): BTreeMap<Text, U32> => new (
|
(): BTreeMap<Text, U32> => new (
|
||||||
BTreeMap.with(Text, U32)
|
BTreeMap.with(Text, U32)
|
||||||
)(registry, 'ABC')
|
)(registry, 'ABC')
|
||||||
).toThrowError(/Map: cannot decode type/);
|
).toThrow(/Map: cannot decode type/);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('correctly encodes length', (): void => {
|
it('correctly encodes length', (): void => {
|
||||||
|
|||||||
@@ -123,7 +123,7 @@ describe('BTreeSet', (): void => {
|
|||||||
(): BTreeSet<U32> => new (
|
(): BTreeSet<U32> => new (
|
||||||
BTreeSet.with(U32)
|
BTreeSet.with(U32)
|
||||||
)(registry, 'ABC')
|
)(registry, 'ABC')
|
||||||
).toThrowError(/BTreeSet: cannot decode type/);
|
).toThrow(/BTreeSet: cannot decode type/);
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('enocodedLength & initialU8aLength', (): void => {
|
describe('enocodedLength & initialU8aLength', (): void => {
|
||||||
|
|||||||
@@ -134,7 +134,7 @@ describe('Struct', (): void => {
|
|||||||
u32: U32
|
u32: U32
|
||||||
})
|
})
|
||||||
)(registry, 'ABC')
|
)(registry, 'ABC')
|
||||||
).toThrowError(/Cannot decode value/);
|
).toThrow(/Cannot decode value/);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('throws a sensical error on incorrect array values passed to structs', (): void => {
|
it('throws a sensical error on incorrect array values passed to structs', (): void => {
|
||||||
@@ -392,6 +392,7 @@ describe('Struct', (): void => {
|
|||||||
outer: [new Uint8Array([1 << 2]), new Uint8Array([0x99])]
|
outer: [new Uint8Array([1 << 2]), new Uint8Array([0x99])]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
inner: undefined,
|
||||||
name: 'bar',
|
name: 'bar',
|
||||||
outer: [new Uint8Array([1]), new Uint8Array([1, 0, 0, 0])]
|
outer: [new Uint8Array([1]), new Uint8Array([1, 0, 0, 0])]
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/types-codec', path: 'auto', type: 'auto', version: '9.14.1' };
|
export const packageInfo = { name: '@polkadot/types-codec', path: 'auto', type: 'auto', version: '9.14.2' };
|
||||||
|
|||||||
@@ -42,14 +42,14 @@ ${formatFixed(micro).padStart(NUM_PAD + PRE_PAD + 1)} μs/op`;
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function perf (name: string, count: number, inputs: unknown[][], exec: ExecFn): void {
|
export function perf (name: string, count: number, inputs: unknown[][], exec: ExecFn): void {
|
||||||
if (process.env.GITHUB_REPOSITORY) {
|
const test = process.env.GITHUB_REPOSITORY
|
||||||
return;
|
? it.skip
|
||||||
}
|
: it;
|
||||||
|
|
||||||
it(`performance: ${name}`, (): void => {
|
test(`performance: ${name}`, (): void => {
|
||||||
const [time] = loop(count, inputs, exec);
|
const [time] = loop(count, inputs, exec);
|
||||||
|
|
||||||
console.log(`
|
console.error(`
|
||||||
performance run for ${name} completed with ${formatNumber(count)} iterations.
|
performance run for ${name} completed with ${formatNumber(count)} iterations.
|
||||||
|
|
||||||
${`${name}:`.padStart(PRE_PAD)} ${time.toFixed(2).padStart(NUM_PAD)} ms${formatOps(count, time)}
|
${`${name}:`.padStart(PRE_PAD)} ${time.toFixed(2).padStart(NUM_PAD)} ms${formatOps(count, time)}
|
||||||
|
|||||||
@@ -20,14 +20,14 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "9.14.1",
|
"version": "9.14.2",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.20.13",
|
"@babel/runtime": "^7.20.13",
|
||||||
"@polkadot/types-codec": "9.14.1",
|
"@polkadot/types-codec": "9.14.2",
|
||||||
"@polkadot/util": "^10.4.1"
|
"@polkadot/util": "^10.4.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/types": "9.14.1"
|
"@polkadot/types": "9.14.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/types-create', path: 'auto', type: 'auto', version: '9.14.1' };
|
export const packageInfo = { name: '@polkadot/types-create', path: 'auto', type: 'auto', version: '9.14.2' };
|
||||||
|
|||||||
@@ -9,7 +9,9 @@ describe('getTypeDef', (): void => {
|
|||||||
expect(
|
expect(
|
||||||
getTypeDef('()')
|
getTypeDef('()')
|
||||||
).toEqual({
|
).toEqual({
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.Tuple,
|
info: TypeDefInfo.Tuple,
|
||||||
|
name: undefined,
|
||||||
sub: [],
|
sub: [],
|
||||||
type: '()'
|
type: '()'
|
||||||
});
|
});
|
||||||
@@ -19,14 +21,20 @@ describe('getTypeDef', (): void => {
|
|||||||
expect(
|
expect(
|
||||||
getTypeDef('BTreeMap<u32, Text>')
|
getTypeDef('BTreeMap<u32, Text>')
|
||||||
).toEqual({
|
).toEqual({
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.BTreeMap,
|
info: TypeDefInfo.BTreeMap,
|
||||||
|
name: undefined,
|
||||||
sub: [
|
sub: [
|
||||||
{
|
{
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.Plain,
|
info: TypeDefInfo.Plain,
|
||||||
|
name: undefined,
|
||||||
type: 'u32'
|
type: 'u32'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.Plain,
|
info: TypeDefInfo.Plain,
|
||||||
|
name: undefined,
|
||||||
type: 'Text'
|
type: 'Text'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -38,9 +46,13 @@ describe('getTypeDef', (): void => {
|
|||||||
expect(
|
expect(
|
||||||
getTypeDef('BTreeSet<Text>')
|
getTypeDef('BTreeSet<Text>')
|
||||||
).toEqual({
|
).toEqual({
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.BTreeSet,
|
info: TypeDefInfo.BTreeSet,
|
||||||
|
name: undefined,
|
||||||
sub: {
|
sub: {
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.Plain,
|
info: TypeDefInfo.Plain,
|
||||||
|
name: undefined,
|
||||||
type: 'Text'
|
type: 'Text'
|
||||||
},
|
},
|
||||||
type: 'BTreeSet<Text>'
|
type: 'BTreeSet<Text>'
|
||||||
@@ -51,14 +63,20 @@ describe('getTypeDef', (): void => {
|
|||||||
expect(
|
expect(
|
||||||
getTypeDef('Result<u32, Text>')
|
getTypeDef('Result<u32, Text>')
|
||||||
).toEqual({
|
).toEqual({
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.Result,
|
info: TypeDefInfo.Result,
|
||||||
|
name: undefined,
|
||||||
sub: [
|
sub: [
|
||||||
{
|
{
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.Plain,
|
info: TypeDefInfo.Plain,
|
||||||
|
name: undefined,
|
||||||
type: 'u32'
|
type: 'u32'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.Plain,
|
info: TypeDefInfo.Plain,
|
||||||
|
name: undefined,
|
||||||
type: 'Text'
|
type: 'Text'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -70,24 +88,34 @@ describe('getTypeDef', (): void => {
|
|||||||
expect(
|
expect(
|
||||||
getTypeDef('Result<Result<Null,u32>,Text>')
|
getTypeDef('Result<Result<Null,u32>,Text>')
|
||||||
).toEqual({
|
).toEqual({
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.Result,
|
info: TypeDefInfo.Result,
|
||||||
|
name: undefined,
|
||||||
sub: [
|
sub: [
|
||||||
{
|
{
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.Result,
|
info: TypeDefInfo.Result,
|
||||||
|
name: undefined,
|
||||||
sub: [
|
sub: [
|
||||||
{
|
{
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.Plain,
|
info: TypeDefInfo.Plain,
|
||||||
|
name: undefined,
|
||||||
type: 'Null'
|
type: 'Null'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.Plain,
|
info: TypeDefInfo.Plain,
|
||||||
|
name: undefined,
|
||||||
type: 'u32'
|
type: 'u32'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
type: 'Result<Null,u32>'
|
type: 'Result<Null,u32>'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.Plain,
|
info: TypeDefInfo.Plain,
|
||||||
|
name: undefined,
|
||||||
type: 'Text'
|
type: 'Text'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -99,54 +127,82 @@ describe('getTypeDef', (): void => {
|
|||||||
expect(
|
expect(
|
||||||
getTypeDef('(u32, Compact<u32>, Vec<u64>, Option<u128>, (Text,Vec<(Bool,u128)>))')
|
getTypeDef('(u32, Compact<u32>, Vec<u64>, Option<u128>, (Text,Vec<(Bool,u128)>))')
|
||||||
).toEqual({
|
).toEqual({
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.Tuple,
|
info: TypeDefInfo.Tuple,
|
||||||
|
name: undefined,
|
||||||
sub: [
|
sub: [
|
||||||
{
|
{
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.Plain,
|
info: TypeDefInfo.Plain,
|
||||||
|
name: undefined,
|
||||||
type: 'u32'
|
type: 'u32'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.Compact,
|
info: TypeDefInfo.Compact,
|
||||||
|
name: undefined,
|
||||||
sub: {
|
sub: {
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.Plain,
|
info: TypeDefInfo.Plain,
|
||||||
|
name: undefined,
|
||||||
type: 'u32'
|
type: 'u32'
|
||||||
},
|
},
|
||||||
type: 'Compact<u32>'
|
type: 'Compact<u32>'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.Vec,
|
info: TypeDefInfo.Vec,
|
||||||
|
name: undefined,
|
||||||
sub: {
|
sub: {
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.Plain,
|
info: TypeDefInfo.Plain,
|
||||||
|
name: undefined,
|
||||||
type: 'u64'
|
type: 'u64'
|
||||||
},
|
},
|
||||||
type: 'Vec<u64>'
|
type: 'Vec<u64>'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.Option,
|
info: TypeDefInfo.Option,
|
||||||
|
name: undefined,
|
||||||
sub: {
|
sub: {
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.Plain,
|
info: TypeDefInfo.Plain,
|
||||||
|
name: undefined,
|
||||||
type: 'u128'
|
type: 'u128'
|
||||||
},
|
},
|
||||||
type: 'Option<u128>'
|
type: 'Option<u128>'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.Tuple,
|
info: TypeDefInfo.Tuple,
|
||||||
|
name: undefined,
|
||||||
sub: [
|
sub: [
|
||||||
{
|
{
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.Plain,
|
info: TypeDefInfo.Plain,
|
||||||
|
name: undefined,
|
||||||
type: 'Text'
|
type: 'Text'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.Vec,
|
info: TypeDefInfo.Vec,
|
||||||
|
name: undefined,
|
||||||
sub: {
|
sub: {
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.Tuple,
|
info: TypeDefInfo.Tuple,
|
||||||
|
name: undefined,
|
||||||
sub: [
|
sub: [
|
||||||
{
|
{
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.Plain,
|
info: TypeDefInfo.Plain,
|
||||||
|
name: undefined,
|
||||||
type: 'Bool'
|
type: 'Bool'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.Plain,
|
info: TypeDefInfo.Plain,
|
||||||
|
name: undefined,
|
||||||
type: 'u128'
|
type: 'u128'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -166,20 +222,30 @@ describe('getTypeDef', (): void => {
|
|||||||
expect(
|
expect(
|
||||||
getTypeDef('Vec<(Box<PropIndex>, Proposal,Lookup::Target)>')
|
getTypeDef('Vec<(Box<PropIndex>, Proposal,Lookup::Target)>')
|
||||||
).toEqual({
|
).toEqual({
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.Vec,
|
info: TypeDefInfo.Vec,
|
||||||
|
name: undefined,
|
||||||
sub: {
|
sub: {
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.Tuple,
|
info: TypeDefInfo.Tuple,
|
||||||
|
name: undefined,
|
||||||
sub: [
|
sub: [
|
||||||
{
|
{
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.Plain,
|
info: TypeDefInfo.Plain,
|
||||||
|
name: undefined,
|
||||||
type: 'PropIndex'
|
type: 'PropIndex'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.Plain,
|
info: TypeDefInfo.Plain,
|
||||||
|
name: undefined,
|
||||||
type: 'Proposal'
|
type: 'Proposal'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.Plain,
|
info: TypeDefInfo.Plain,
|
||||||
|
name: undefined,
|
||||||
type: 'LookupTarget'
|
type: 'LookupTarget'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -193,20 +259,30 @@ describe('getTypeDef', (): void => {
|
|||||||
expect(
|
expect(
|
||||||
getTypeDef('Vec<(PropIndex, Proposal, AccountId)>')
|
getTypeDef('Vec<(PropIndex, Proposal, AccountId)>')
|
||||||
).toEqual({
|
).toEqual({
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.Vec,
|
info: TypeDefInfo.Vec,
|
||||||
|
name: undefined,
|
||||||
sub: {
|
sub: {
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.Tuple,
|
info: TypeDefInfo.Tuple,
|
||||||
|
name: undefined,
|
||||||
sub: [
|
sub: [
|
||||||
{
|
{
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.Plain,
|
info: TypeDefInfo.Plain,
|
||||||
|
name: undefined,
|
||||||
type: 'PropIndex'
|
type: 'PropIndex'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.Plain,
|
info: TypeDefInfo.Plain,
|
||||||
|
name: undefined,
|
||||||
type: 'Proposal'
|
type: 'Proposal'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.Plain,
|
info: TypeDefInfo.Plain,
|
||||||
|
name: undefined,
|
||||||
type: 'AccountId'
|
type: 'AccountId'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -220,28 +296,39 @@ describe('getTypeDef', (): void => {
|
|||||||
expect(
|
expect(
|
||||||
getTypeDef('{"balance":"Balance","account_id":"AccountId","log":"(u64, Signature)"}')
|
getTypeDef('{"balance":"Balance","account_id":"AccountId","log":"(u64, Signature)"}')
|
||||||
).toEqual({
|
).toEqual({
|
||||||
|
alias: undefined,
|
||||||
|
displayName: undefined,
|
||||||
|
fallbackType: undefined,
|
||||||
info: TypeDefInfo.Struct,
|
info: TypeDefInfo.Struct,
|
||||||
|
name: undefined,
|
||||||
sub: [
|
sub: [
|
||||||
{
|
{
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.Plain,
|
info: TypeDefInfo.Plain,
|
||||||
name: 'balance',
|
name: 'balance',
|
||||||
type: 'Balance'
|
type: 'Balance'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.Plain,
|
info: TypeDefInfo.Plain,
|
||||||
name: 'account_id',
|
name: 'account_id',
|
||||||
type: 'AccountId'
|
type: 'AccountId'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.Tuple,
|
info: TypeDefInfo.Tuple,
|
||||||
name: 'log',
|
name: 'log',
|
||||||
sub: [
|
sub: [
|
||||||
{
|
{
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.Plain,
|
info: TypeDefInfo.Plain,
|
||||||
|
name: undefined,
|
||||||
type: 'u64'
|
type: 'u64'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.Plain,
|
info: TypeDefInfo.Plain,
|
||||||
|
name: undefined,
|
||||||
type: 'Signature'
|
type: 'Signature'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -256,16 +343,24 @@ describe('getTypeDef', (): void => {
|
|||||||
expect(
|
expect(
|
||||||
getTypeDef('[[[bool; 3]; 6]; 9]')
|
getTypeDef('[[[bool; 3]; 6]; 9]')
|
||||||
).toEqual({
|
).toEqual({
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.VecFixed,
|
info: TypeDefInfo.VecFixed,
|
||||||
length: 9,
|
length: 9,
|
||||||
|
name: undefined,
|
||||||
sub: {
|
sub: {
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.VecFixed,
|
info: TypeDefInfo.VecFixed,
|
||||||
length: 6,
|
length: 6,
|
||||||
|
name: undefined,
|
||||||
sub: {
|
sub: {
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.VecFixed,
|
info: TypeDefInfo.VecFixed,
|
||||||
length: 3,
|
length: 3,
|
||||||
|
name: undefined,
|
||||||
sub: {
|
sub: {
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.Plain,
|
info: TypeDefInfo.Plain,
|
||||||
|
name: undefined,
|
||||||
type: 'bool'
|
type: 'bool'
|
||||||
},
|
},
|
||||||
type: '[bool;3]'
|
type: '[bool;3]'
|
||||||
@@ -283,11 +378,16 @@ describe('getTypeDef', (): void => {
|
|||||||
displayName: 'MyType',
|
displayName: 'MyType',
|
||||||
info: TypeDefInfo.VecFixed,
|
info: TypeDefInfo.VecFixed,
|
||||||
length: 3,
|
length: 3,
|
||||||
|
name: undefined,
|
||||||
sub: {
|
sub: {
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.VecFixed,
|
info: TypeDefInfo.VecFixed,
|
||||||
length: 6,
|
length: 6,
|
||||||
|
name: undefined,
|
||||||
sub: {
|
sub: {
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.Plain,
|
info: TypeDefInfo.Plain,
|
||||||
|
name: undefined,
|
||||||
type: 'bool'
|
type: 'bool'
|
||||||
},
|
},
|
||||||
type: '[bool;6]'
|
type: '[bool;6]'
|
||||||
@@ -300,24 +400,34 @@ describe('getTypeDef', (): void => {
|
|||||||
expect(
|
expect(
|
||||||
getTypeDef('((u32, u64), u128)')
|
getTypeDef('((u32, u64), u128)')
|
||||||
).toEqual({
|
).toEqual({
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.Tuple,
|
info: TypeDefInfo.Tuple,
|
||||||
|
name: undefined,
|
||||||
sub: [
|
sub: [
|
||||||
{
|
{
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.Tuple,
|
info: TypeDefInfo.Tuple,
|
||||||
|
name: undefined,
|
||||||
sub: [
|
sub: [
|
||||||
{
|
{
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.Plain,
|
info: TypeDefInfo.Plain,
|
||||||
|
name: undefined,
|
||||||
type: 'u32'
|
type: 'u32'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.Plain,
|
info: TypeDefInfo.Plain,
|
||||||
|
name: undefined,
|
||||||
type: 'u64'
|
type: 'u64'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
type: '(u32,u64)'
|
type: '(u32,u64)'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.Plain,
|
info: TypeDefInfo.Plain,
|
||||||
|
name: undefined,
|
||||||
type: 'u128'
|
type: 'u128'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -338,41 +448,55 @@ describe('getTypeDef', (): void => {
|
|||||||
}
|
}
|
||||||
}))
|
}))
|
||||||
).toEqual({
|
).toEqual({
|
||||||
|
displayName: undefined,
|
||||||
|
fallbackType: undefined,
|
||||||
info: TypeDefInfo.Enum,
|
info: TypeDefInfo.Enum,
|
||||||
|
name: undefined,
|
||||||
sub: [
|
sub: [
|
||||||
{
|
{
|
||||||
|
displayName: undefined,
|
||||||
index: 0,
|
index: 0,
|
||||||
info: TypeDefInfo.Plain,
|
info: TypeDefInfo.Plain,
|
||||||
name: 'A',
|
name: 'A',
|
||||||
type: 'u32'
|
type: 'u32'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
displayName: undefined,
|
||||||
index: 1,
|
index: 1,
|
||||||
info: TypeDefInfo.Tuple,
|
info: TypeDefInfo.Tuple,
|
||||||
name: 'B',
|
name: 'B',
|
||||||
sub: [
|
sub: [
|
||||||
{
|
{
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.Plain,
|
info: TypeDefInfo.Plain,
|
||||||
|
name: undefined,
|
||||||
type: 'u32'
|
type: 'u32'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.Plain,
|
info: TypeDefInfo.Plain,
|
||||||
|
name: undefined,
|
||||||
type: 'bool'
|
type: 'bool'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
type: '(u32,bool)'
|
type: '(u32,bool)'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
alias: undefined,
|
||||||
|
displayName: undefined,
|
||||||
|
fallbackType: undefined,
|
||||||
index: 2,
|
index: 2,
|
||||||
info: TypeDefInfo.Struct,
|
info: TypeDefInfo.Struct,
|
||||||
name: 'C',
|
name: 'C',
|
||||||
sub: [
|
sub: [
|
||||||
{
|
{
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.Plain,
|
info: TypeDefInfo.Plain,
|
||||||
name: 'd',
|
name: 'd',
|
||||||
type: 'AccountId'
|
type: 'AccountId'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.Plain,
|
info: TypeDefInfo.Plain,
|
||||||
name: 'e',
|
name: 'e',
|
||||||
type: 'Balance'
|
type: 'Balance'
|
||||||
@@ -396,38 +520,53 @@ describe('getTypeDef', (): void => {
|
|||||||
}
|
}
|
||||||
}))
|
}))
|
||||||
).toEqual({
|
).toEqual({
|
||||||
|
alias: undefined,
|
||||||
|
displayName: undefined,
|
||||||
|
fallbackType: undefined,
|
||||||
info: TypeDefInfo.Struct,
|
info: TypeDefInfo.Struct,
|
||||||
|
name: undefined,
|
||||||
sub: [
|
sub: [
|
||||||
{
|
{
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.Plain,
|
info: TypeDefInfo.Plain,
|
||||||
name: 'a',
|
name: 'a',
|
||||||
type: 'u32'
|
type: 'u32'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.Tuple,
|
info: TypeDefInfo.Tuple,
|
||||||
name: 'b',
|
name: 'b',
|
||||||
sub: [
|
sub: [
|
||||||
{
|
{
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.Plain,
|
info: TypeDefInfo.Plain,
|
||||||
|
name: undefined,
|
||||||
type: 'u32'
|
type: 'u32'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.Plain,
|
info: TypeDefInfo.Plain,
|
||||||
|
name: undefined,
|
||||||
type: 'bool'
|
type: 'bool'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
type: '(u32,bool)'
|
type: '(u32,bool)'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
alias: undefined,
|
||||||
|
displayName: undefined,
|
||||||
|
fallbackType: undefined,
|
||||||
info: TypeDefInfo.Struct,
|
info: TypeDefInfo.Struct,
|
||||||
name: 'c',
|
name: 'c',
|
||||||
sub: [
|
sub: [
|
||||||
{
|
{
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.Plain,
|
info: TypeDefInfo.Plain,
|
||||||
name: 'd',
|
name: 'd',
|
||||||
type: 'AccountId'
|
type: 'AccountId'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.Plain,
|
info: TypeDefInfo.Plain,
|
||||||
name: 'e',
|
name: 'e',
|
||||||
type: 'Balance'
|
type: 'Balance'
|
||||||
@@ -444,18 +583,28 @@ describe('getTypeDef', (): void => {
|
|||||||
expect(
|
expect(
|
||||||
getTypeDef('Vec<[[[bool; 3]; 6]; 9]>')
|
getTypeDef('Vec<[[[bool; 3]; 6]; 9]>')
|
||||||
).toEqual({
|
).toEqual({
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.Vec,
|
info: TypeDefInfo.Vec,
|
||||||
|
name: undefined,
|
||||||
sub: {
|
sub: {
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.VecFixed,
|
info: TypeDefInfo.VecFixed,
|
||||||
length: 9,
|
length: 9,
|
||||||
|
name: undefined,
|
||||||
sub: {
|
sub: {
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.VecFixed,
|
info: TypeDefInfo.VecFixed,
|
||||||
length: 6,
|
length: 6,
|
||||||
|
name: undefined,
|
||||||
sub: {
|
sub: {
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.VecFixed,
|
info: TypeDefInfo.VecFixed,
|
||||||
length: 3,
|
length: 3,
|
||||||
|
name: undefined,
|
||||||
sub: {
|
sub: {
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.Plain,
|
info: TypeDefInfo.Plain,
|
||||||
|
name: undefined,
|
||||||
type: 'bool'
|
type: 'bool'
|
||||||
},
|
},
|
||||||
type: '[bool;3]'
|
type: '[bool;3]'
|
||||||
@@ -472,25 +621,37 @@ describe('getTypeDef', (): void => {
|
|||||||
expect(
|
expect(
|
||||||
getTypeDef('Vec<{ "a": "u32", "b": "(u32, bool)" }>')
|
getTypeDef('Vec<{ "a": "u32", "b": "(u32, bool)" }>')
|
||||||
).toEqual({
|
).toEqual({
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.Vec,
|
info: TypeDefInfo.Vec,
|
||||||
|
name: undefined,
|
||||||
sub: {
|
sub: {
|
||||||
|
alias: undefined,
|
||||||
|
displayName: undefined,
|
||||||
|
fallbackType: undefined,
|
||||||
info: TypeDefInfo.Struct,
|
info: TypeDefInfo.Struct,
|
||||||
|
name: undefined,
|
||||||
sub: [
|
sub: [
|
||||||
{
|
{
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.Plain,
|
info: TypeDefInfo.Plain,
|
||||||
name: 'a',
|
name: 'a',
|
||||||
type: 'u32'
|
type: 'u32'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.Tuple,
|
info: TypeDefInfo.Tuple,
|
||||||
name: 'b',
|
name: 'b',
|
||||||
sub: [
|
sub: [
|
||||||
{
|
{
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.Plain,
|
info: TypeDefInfo.Plain,
|
||||||
|
name: undefined,
|
||||||
type: 'u32'
|
type: 'u32'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.Plain,
|
info: TypeDefInfo.Plain,
|
||||||
|
name: undefined,
|
||||||
type: 'bool'
|
type: 'bool'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -517,12 +678,19 @@ describe('getTypeDef', (): void => {
|
|||||||
expect(
|
expect(
|
||||||
getTypeDef(raw)
|
getTypeDef(raw)
|
||||||
).toEqual({
|
).toEqual({
|
||||||
|
alias: undefined,
|
||||||
|
displayName: undefined,
|
||||||
|
fallbackType: undefined,
|
||||||
info: TypeDefInfo.Struct,
|
info: TypeDefInfo.Struct,
|
||||||
|
name: undefined,
|
||||||
sub: [{
|
sub: [{
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.Vec,
|
info: TypeDefInfo.Vec,
|
||||||
name: 'data',
|
name: 'data',
|
||||||
sub: {
|
sub: {
|
||||||
|
displayName: undefined,
|
||||||
info: TypeDefInfo.Plain,
|
info: TypeDefInfo.Plain,
|
||||||
|
name: undefined,
|
||||||
type: 'Recursive'
|
type: 'Recursive'
|
||||||
},
|
},
|
||||||
type: 'Vec<Recursive>'
|
type: 'Vec<Recursive>'
|
||||||
|
|||||||
@@ -20,17 +20,17 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "9.14.1",
|
"version": "9.14.2",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.20.13",
|
"@babel/runtime": "^7.20.13",
|
||||||
"@polkadot/networks": "^10.4.1",
|
"@polkadot/networks": "^10.4.2",
|
||||||
"@polkadot/types": "9.14.1",
|
"@polkadot/types": "9.14.2",
|
||||||
"@polkadot/types-codec": "9.14.1",
|
"@polkadot/types-codec": "9.14.2",
|
||||||
"@polkadot/types-create": "9.14.1",
|
"@polkadot/types-create": "9.14.2",
|
||||||
"@polkadot/util": "^10.4.1"
|
"@polkadot/util": "^10.4.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/api": "9.14.1"
|
"@polkadot/api": "9.14.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/types-known', path: 'auto', type: 'auto', version: '9.14.1' };
|
export const packageInfo = { name: '@polkadot/types-known', path: 'auto', type: 'auto', version: '9.14.2' };
|
||||||
|
|||||||
@@ -20,10 +20,10 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "9.14.1",
|
"version": "9.14.2",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.20.13",
|
"@babel/runtime": "^7.20.13",
|
||||||
"@polkadot/util": "^10.4.1"
|
"@polkadot/util": "^10.4.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/types-support', path: 'auto', type: 'auto', version: '9.14.1' };
|
export const packageInfo = { name: '@polkadot/types-support', path: 'auto', type: 'auto', version: '9.14.2' };
|
||||||
|
|||||||
@@ -20,20 +20,20 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "9.14.1",
|
"version": "9.14.2",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.20.13",
|
"@babel/runtime": "^7.20.13",
|
||||||
"@polkadot/keyring": "^10.4.1",
|
"@polkadot/keyring": "^10.4.2",
|
||||||
"@polkadot/types-augment": "9.14.1",
|
"@polkadot/types-augment": "9.14.2",
|
||||||
"@polkadot/types-codec": "9.14.1",
|
"@polkadot/types-codec": "9.14.2",
|
||||||
"@polkadot/types-create": "9.14.1",
|
"@polkadot/types-create": "9.14.2",
|
||||||
"@polkadot/util": "^10.4.1",
|
"@polkadot/util": "^10.4.2",
|
||||||
"@polkadot/util-crypto": "^10.4.1",
|
"@polkadot/util-crypto": "^10.4.2",
|
||||||
"rxjs": "^7.8.0"
|
"rxjs": "^7.8.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/keyring": "^10.4.1",
|
"@polkadot/keyring": "^10.4.2",
|
||||||
"@polkadot/types-support": "9.14.1"
|
"@polkadot/types-support": "9.14.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -100,7 +100,7 @@ describe('createType', (): void => {
|
|||||||
it('fails creation for a UInt<bitLength> where bitLength is not power of 8', (): void => {
|
it('fails creation for a UInt<bitLength> where bitLength is not power of 8', (): void => {
|
||||||
expect(
|
expect(
|
||||||
() => registry.createType('UInt<20>').toRawType()
|
() => registry.createType('UInt<20>').toRawType()
|
||||||
).toThrow('UInt<20>: Only support for UInt<bitLength>, where length <= 8192 and a power of 8');
|
).toThrow(/UInt<20>: Only support for UInt<bitLength>, where length <= 8192 and a power of 8/);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('fails on creation of DoNotConstruct', (): void => {
|
it('fails on creation of DoNotConstruct', (): void => {
|
||||||
@@ -108,7 +108,7 @@ describe('createType', (): void => {
|
|||||||
|
|
||||||
expect(
|
expect(
|
||||||
() => new Clazz(registry)
|
() => new Clazz(registry)
|
||||||
).toThrow('Cannot construct unknown type UnknownSomething');
|
).toThrow(/Cannot construct unknown type UnknownSomething/);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('allows creation of a [u8; 8]', (): void => {
|
it('allows creation of a [u8; 8]', (): void => {
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ describe('TypeRegistry', (): void => {
|
|||||||
const registry = new TypeRegistry();
|
const registry = new TypeRegistry();
|
||||||
|
|
||||||
it('handles non exist type', (): void => {
|
it('handles non exist type', (): void => {
|
||||||
expect(registry.get('non-exist')).toBeUndefined();
|
expect(registry.get('non-exist')).not.toBeDefined();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('throws on non-existent via getOrThrow', (): void => {
|
it('throws on non-existent via getOrThrow', (): void => {
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ describe('ExtrinsicPayload', (): void => {
|
|||||||
expect(new ExtrinsicPayload(registry, { method: tx.timestamp.set(0).toHex() } as never).inspect()).toEqual({
|
expect(new ExtrinsicPayload(registry, { method: tx.timestamp.set(0).toHex() } as never).inspect()).toEqual({
|
||||||
inner: [
|
inner: [
|
||||||
{ name: 'method', outer: [new Uint8Array([3, 0, 0])] },
|
{ name: 'method', outer: [new Uint8Array([3, 0, 0])] },
|
||||||
{ name: 'era', outer: [new Uint8Array([0]), new Uint8Array([0])] },
|
{ inner: undefined, name: 'era', outer: [new Uint8Array([0]), new Uint8Array([0])] },
|
||||||
{ name: 'nonce', outer: [new Uint8Array([0])] },
|
{ name: 'nonce', outer: [new Uint8Array([0])] },
|
||||||
{ name: 'tip', outer: [new Uint8Array([0])] },
|
{ name: 'tip', outer: [new Uint8Array([0])] },
|
||||||
{ name: 'assetId', outer: [new Uint8Array([0])] },
|
{ name: 'assetId', outer: [new Uint8Array([0])] },
|
||||||
|
|||||||
@@ -13,8 +13,15 @@ describe('SystemInherentData', (): void => {
|
|||||||
it('can decode Kilt', (): void => {
|
it('can decode Kilt', (): void => {
|
||||||
const value = registry.createType('SystemInherentData', KILT);
|
const value = registry.createType('SystemInherentData', KILT);
|
||||||
|
|
||||||
console.log(JSON.stringify(value.toHuman(), null, 2));
|
// console.log(JSON.stringify(value.toHuman(), null, 2));
|
||||||
|
|
||||||
expect(value).toBeTruthy();
|
expect(value.toHuman()).toMatchObject({
|
||||||
|
validationData: {
|
||||||
|
maxPovSize: '0',
|
||||||
|
parentHead: '0xd51627af4cb8414b6ad454e7204424e7e8489738c5fabe20cee3256bd69b7534d12b2798b04e574d05fb8a4b163745b1e610fb75de59399271bd57e49738506a7a93ee0038dd6a1b3bfbb58f747a7b2052058620839a8e2d03f5a43b48ca6000c66a00',
|
||||||
|
relayParentNumber: '38,441',
|
||||||
|
relayParentStorageRoot: '0x4412f5d19eed1a0cbafadd3b050b6e87fbcdff0a4b2ab0dce498d2180f7d7fe4'
|
||||||
|
}
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ describe('extrinsics', (): void => {
|
|||||||
|
|
||||||
describe('decorateExtrinsics', (): void => {
|
describe('decorateExtrinsics', (): void => {
|
||||||
it('should throw if an incorrect number of args is supplied', (): void => {
|
it('should throw if an incorrect number of args is supplied', (): void => {
|
||||||
expect(() => extrinsics.balances.setBalance()).toThrowError(/expects 3 arguments/);
|
expect(() => extrinsics.balances.setBalance()).toThrow(/expects 3 arguments/);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should return a value if the storage function does not expect an argument', (): void => {
|
it('should return a value if the storage function does not expect an argument', (): void => {
|
||||||
|
|||||||
@@ -21,15 +21,15 @@ describe('decorateStorage', (): void => {
|
|||||||
const query = decorateStorage(registry, metadata.asLatest, metadata.version);
|
const query = decorateStorage(registry, metadata.asLatest, metadata.version);
|
||||||
|
|
||||||
it('should throw if the storage function expects an argument', (): void => {
|
it('should throw if the storage function expects an argument', (): void => {
|
||||||
expect(() => query.balances.account()).toThrowError('Call to balances.account needs 1 arguments, found []');
|
expect(() => query.balances.account()).toThrow('Call to balances.account needs 1 arguments, found []');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should throw if the storage function expects multiple arguments', (): void => {
|
it('should throw if the storage function expects multiple arguments', (): void => {
|
||||||
expect(() => query.staking.erasStakers([1])).toThrowError('Call to staking.erasStakers needs 2 arguments, found [1]');
|
expect(() => query.staking.erasStakers([1])).toThrow('Call to staking.erasStakers needs 2 arguments, found [1]');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should throw if the storage function expects tuple arguments', (): void => {
|
it('should throw if the storage function expects tuple arguments', (): void => {
|
||||||
expect(() => query.staking.erasStakers(1)).toThrowError('Call to staking.erasStakers needs 2 arguments');
|
expect(() => query.staking.erasStakers(1)).toThrow('Call to staking.erasStakers needs 2 arguments, found [1]');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should return a value if the storage function does not expect an argument', (): void => {
|
it('should return a value if the storage function does not expect an argument', (): void => {
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/types', path: 'auto', type: 'auto', version: '9.14.1' };
|
export const packageInfo = { name: '@polkadot/types', path: 'auto', type: 'auto', version: '9.14.2' };
|
||||||
|
|||||||
Reference in New Issue
Block a user