Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ad6f3d4531 | ||
|
|
1d28f994db | ||
|
|
b132f6401a | ||
|
|
331036a2b7 | ||
|
|
ad375cbebf | ||
|
|
71e4d14147 | ||
|
|
ac8e554108 | ||
|
|
97fe4ea226 | ||
|
|
beca93e7a9 | ||
|
|
e16ae0869c | ||
|
|
62dbfe6896 | ||
|
|
42c0b2da83 | ||
|
|
f80286f0f8 | ||
|
|
abc7a9e0e7 | ||
|
|
a8ae91d36b | ||
|
|
3c457940ff | ||
|
|
157b3124e3 | ||
|
|
c21090e6e9 | ||
|
|
e6f1cb80b8 | ||
|
|
4323c6fd95 | ||
|
|
eab2f76884 | ||
|
|
8c30ac2170 | ||
|
|
77432e6860 | ||
|
|
5e5e72b485 | ||
|
|
c5aeea29b2 | ||
|
|
4f702089c3 | ||
|
|
75f594b10d | ||
|
|
70bb4bdf0b |
@@ -17,7 +17,7 @@ jobs:
|
|||||||
node-version: 'lts/*'
|
node-version: 'lts/*'
|
||||||
- uses: denoland/setup-deno@v1
|
- uses: denoland/setup-deno@v1
|
||||||
with:
|
with:
|
||||||
deno-version: v1.42.x
|
deno-version: v1.46.3
|
||||||
- name: ${{ matrix.step }}
|
- name: ${{ matrix.step }}
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
+37
-1
@@ -1,6 +1,42 @@
|
|||||||
# CHANGELOG
|
# CHANGELOG
|
||||||
|
|
||||||
## 15.2.1 Jan 6, 2024
|
## 15.5.1 Jan 27, 2025
|
||||||
|
|
||||||
|
Contributed:
|
||||||
|
|
||||||
|
- Add `offchain_localStorageClear` RPC method ([#6070](https://github.com/polkadot-js/api/pull/6070)) (Thanks to https://github.com/khssnv)
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Update polkadot, kusama types-support for rpc, and ver ([#6078](https://github.com/polkadot-js/api/pull/6078))
|
||||||
|
- Update Asset-Hub types-support rpc, and ver ([#6077](https://github.com/polkadot-js/api/pull/6077))
|
||||||
|
- Patch typegen query to prevent it from adding invalid import ([#6073](https://github.com/polkadot-js/api/pull/6073))
|
||||||
|
- Extend `GenericAccountId` description ([#6072](https://github.com/polkadot-js/api/pull/6072))
|
||||||
|
|
||||||
|
## 15.4.1 Jan 20, 2025
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Allow api.derive.accounts.identity() to obtain SubIdentities ([#6066](https://github.com/polkadot-js/api/pull/6066))
|
||||||
|
- Adds a new field `subs` to the `DeriveAccountRegistration` output of `api.derive.accounts.identity()`
|
||||||
|
- Add ElectionResult type override ([#6067](https://github.com/polkadot-js/api/pull/6067))
|
||||||
|
- Bump dev to 0.83.2 ([#6069](https://github.com/polkadot-js/api/pull/6069))
|
||||||
|
- Increases performance of the test-runner, both locally, and in the CI
|
||||||
|
|
||||||
|
|
||||||
|
## 15.3.1 Jan 11, 2025
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Set typegen scripts for Docs to use v15 ([#6060](https://github.com/polkadot-js/api/pull/6060))
|
||||||
|
- Add Asset hub options to polkadot-types-internal-metadata ([#6062](https://github.com/polkadot-js/api/pull/6062))
|
||||||
|
- Add metadataVer cli arg for polkadot-types-internal-metadata, and ensure backwards compatibility with v14 ([#](https://github.com/polkadot-js/api/pull/6063))
|
||||||
|
- This adds `--metadataVer` to `polkadot-types-internal-metadata`. It is meant to be used along side `--endpoint` which will allow for the use of metadata versions above v14.
|
||||||
|
|
||||||
|
|
||||||
|
## 15.2.1 Jan 6, 2025
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
- Give compatibility for nodejs v22
|
- Give compatibility for nodejs v22
|
||||||
- Update common to 13.3.1 ([#6057](https://github.com/polkadot-js/api/pull/6057))
|
- Update common to 13.3.1 ([#6057](https://github.com/polkadot-js/api/pull/6057))
|
||||||
|
|||||||
+3
-1
@@ -1,5 +1,5 @@
|
|||||||
3512 Jaco Bump deps (#5785)
|
3512 Jaco Bump deps (#5785)
|
||||||
148 Tarik Gul 15.2.1 (#6058)
|
157 Tarik Gul 15.5.1 (#6080)
|
||||||
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)
|
||||||
@@ -23,6 +23,7 @@
|
|||||||
4 Joshy Orndorff spelling; efect -> effect (#2295)
|
4 Joshy Orndorff spelling; efect -> effect (#2295)
|
||||||
4 Nantian fix bigint type (#3869)
|
4 Nantian fix bigint type (#3869)
|
||||||
4 Scott Twiname Add support for historical BlockNumber rpc methods (#4574)
|
4 Scott Twiname Add support for historical BlockNumber rpc methods (#4574)
|
||||||
|
4 Valentin Fernandez Patch typegen query to prevent it from adding invalid import (#6073)
|
||||||
3 André Silva add support for ValidationCodeHash (#3640)
|
3 André Silva add support for ValidationCodeHash (#3640)
|
||||||
3 Antoine Estienne Adapted to display moonbeam author (#3108)
|
3 Antoine Estienne Adapted to display moonbeam author (#3108)
|
||||||
3 Arjan Zijderveld Added `Emergency` to `ElectionPhase` (#3707)
|
3 Arjan Zijderveld Added `Emergency` to `ElectionPhase` (#3707)
|
||||||
@@ -57,6 +58,7 @@
|
|||||||
2 扩散性百万甜面包 Typo, deocrateMethod -> decorateMethod (#1594)
|
2 扩散性百万甜面包 Typo, deocrateMethod -> decorateMethod (#1594)
|
||||||
1 Alan Sapede Adds Eth feeHistory & maxPriorityFeePerGas rpc (#4956)
|
1 Alan Sapede Adds Eth feeHistory & maxPriorityFeePerGas rpc (#4956)
|
||||||
1 Aleš Ferlan fix: use H160 for address in getTransactionCount (#5472)
|
1 Aleš Ferlan fix: use H160 for address in getTransactionCount (#5472)
|
||||||
|
1 Alisher A. Khassanov Add `offchain_localStorageClear` RPC method (#6070)
|
||||||
1 Brad Larson [NEW] Support for custom headers with providers (#2423)
|
1 Brad Larson [NEW] Support for custom headers with providers (#2423)
|
||||||
1 Btwiuse Arch Add side effect check workaround (#4994) (#5009)
|
1 Btwiuse Arch Add side effect check workaround (#4994) (#5009)
|
||||||
1 Cameron Marshall implement xcm dry run api (#5970)
|
1 Cameron Marshall implement xcm dry run api (#5970)
|
||||||
|
|||||||
+4
-4
@@ -14,10 +14,10 @@
|
|||||||
},
|
},
|
||||||
"sideEffects": false,
|
"sideEffects": false,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "15.2.1",
|
"version": "15.5.1",
|
||||||
"versions": {
|
"versions": {
|
||||||
"git": "15.2.1",
|
"git": "15.5.1",
|
||||||
"npm": "15.2.1"
|
"npm": "15.5.1"
|
||||||
},
|
},
|
||||||
"workspaces": [
|
"workspaces": [
|
||||||
"packages/*"
|
"packages/*"
|
||||||
@@ -40,7 +40,7 @@
|
|||||||
"test:one": "polkadot-dev-run-test --env node"
|
"test:one": "polkadot-dev-run-test --env node"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/dev": "^0.82.4",
|
"@polkadot/dev": "^0.83.2",
|
||||||
"@polkadot/typegen": "workspace:packages/typegen",
|
"@polkadot/typegen": "workspace:packages/typegen",
|
||||||
"@types/node": "^22.10.5"
|
"@types/node": "^22.10.5"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -18,14 +18,14 @@
|
|||||||
"./packageDetect.cjs"
|
"./packageDetect.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "15.2.1",
|
"version": "15.5.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@polkadot/api-base": "15.2.1",
|
"@polkadot/api-base": "15.5.1",
|
||||||
"@polkadot/rpc-augment": "15.2.1",
|
"@polkadot/rpc-augment": "15.5.1",
|
||||||
"@polkadot/types": "15.2.1",
|
"@polkadot/types": "15.5.1",
|
||||||
"@polkadot/types-augment": "15.2.1",
|
"@polkadot/types-augment": "15.5.1",
|
||||||
"@polkadot/types-codec": "15.2.1",
|
"@polkadot/types-codec": "15.5.1",
|
||||||
"@polkadot/util": "^13.3.1",
|
"@polkadot/util": "^13.3.1",
|
||||||
"tslib": "^2.8.1"
|
"tslib": "^2.8.1"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import type { BTreeMap, BTreeSet, Bytes, Null, Option, Struct, U8aFixed, Vec, bo
|
|||||||
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, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId32, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { BinaryHeapEnqueuedOrder, FrameSupportDispatchPerDispatchClassWeight, FrameSupportTokensMiscIdAmount, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletConvictionVotingVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMultisigMultisig, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageOldRequestStatus, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSchedulerRetryConfig, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyCandidacy, PalletSocietyGroupParams, PalletSocietyIntakeRecord, PalletSocietyMemberRecord, PalletSocietyPayoutRecord, PalletSocietyTally, PalletSocietyVote, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletTreasurySpendStatus, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesPrimitivesHrmpChannelId, PolkadotPrimitivesV7AssignmentAppPublic, PolkadotPrimitivesV7DisputeState, PolkadotPrimitivesV7ExecutorParams, PolkadotPrimitivesV7ScrapedOnChainVotes, PolkadotPrimitivesV7SessionInfo, PolkadotPrimitivesV7SlashingPendingSlashes, PolkadotPrimitivesV7UpgradeGoAhead, PolkadotPrimitivesV7UpgradeRestriction, PolkadotPrimitivesV7ValidatorAppPublic, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonImplsVersionedLocatableAsset, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor, PolkadotRuntimeParachainsAssignerCoretimeSchedule, PolkadotRuntimeParachainsAssignerOnDemandTypesCoreAffinityCount, PolkadotRuntimeParachainsAssignerOnDemandTypesEnqueuedOrder, PolkadotRuntimeParachainsAssignerOnDemandTypesQueueStatusType, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerPalletCoreOccupied, PolkadotRuntimeParachainsSchedulerPalletParasEntry, PolkadotRuntimeParachainsSharedAllowedRelayParentsTracker, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyMmrBeefyAuthoritySet, SpConsensusGrandpaAppPublic, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingExposure, SpStakingExposurePage, SpStakingOffenceOffenceDetails, SpStakingPagedExposureMetadata, SpWeightsWeightV2Weight, StagingKusamaRuntimeRuntimeFreezeReason, StagingKusamaRuntimeRuntimeHoldReason, StagingKusamaRuntimeRuntimeParametersKey, StagingKusamaRuntimeRuntimeParametersValue, StagingKusamaRuntimeSessionKeys, StagingXcmV4Instruction, StagingXcmV4Xcm, XcmVersionedAssetId, XcmVersionedLocation } from '@polkadot/types/lookup';
|
import type { BinaryHeapEnqueuedOrder, FrameSupportDispatchPerDispatchClassWeight, FrameSupportTokensMiscIdAmount, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletConvictionVotingVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMultisigMultisig, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageOldRequestStatus, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSchedulerRetryConfig, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyCandidacy, PalletSocietyGroupParams, PalletSocietyIntakeRecord, PalletSocietyMemberRecord, PalletSocietyPayoutRecord, PalletSocietyTally, PalletSocietyVote, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletTreasurySpendStatus, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesPrimitivesHrmpChannelId, PolkadotPrimitivesV7AssignmentAppPublic, PolkadotPrimitivesV7DisputeState, PolkadotPrimitivesV7ExecutorParams, PolkadotPrimitivesV7ScrapedOnChainVotes, PolkadotPrimitivesV7SessionInfo, PolkadotPrimitivesV7SlashingPendingSlashes, PolkadotPrimitivesV7UpgradeGoAhead, PolkadotPrimitivesV7UpgradeRestriction, PolkadotPrimitivesV7ValidatorAppPublic, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonImplsVersionedLocatableAsset, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor, PolkadotRuntimeParachainsAssignerCoretimeSchedule, PolkadotRuntimeParachainsAssignerOnDemandTypesCoreAffinityCount, PolkadotRuntimeParachainsAssignerOnDemandTypesEnqueuedOrder, PolkadotRuntimeParachainsAssignerOnDemandTypesQueueStatusType, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerPalletCoreOccupied, PolkadotRuntimeParachainsSchedulerPalletParasEntry, PolkadotRuntimeParachainsSharedAllowedRelayParentsTracker, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyMmrBeefyAuthoritySet, SpConsensusGrandpaAppPublic, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingExposure, SpStakingExposurePage, SpStakingOffenceOffenceDetails, SpStakingPagedExposureMetadata, SpWeightsWeightV2Weight, StagingKusamaRuntimeRuntimeFreezeReason, StagingKusamaRuntimeRuntimeHoldReason, StagingKusamaRuntimeRuntimeParametersKey, StagingKusamaRuntimeRuntimeParametersValue, StagingKusamaRuntimeSessionKeys, StagingXcmV4Instruction, XcmVersionedAssetId, XcmVersionedLocation } 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>;
|
||||||
|
|||||||
@@ -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: '15.2.1' };
|
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '15.5.1' };
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import type { BTreeMap, BTreeSet, Bytes, Null, Option, U8aFixed, Vec, bool, u128
|
|||||||
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, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId32, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { BinaryHeapEnqueuedOrder, FrameSupportDispatchPerDispatchClassWeight, FrameSupportTokensMiscIdAmountRuntimeFreezeReason, FrameSupportTokensMiscIdAmountRuntimeHoldReason, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletConvictionVotingVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageOldRequestStatus, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletReferendaReferendumInfo, PalletSchedulerRetryConfig, PalletSchedulerScheduled, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletTreasurySpendStatus, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesPrimitivesHrmpChannelId, PolkadotPrimitivesV7AssignmentAppPublic, PolkadotPrimitivesV7DisputeState, PolkadotPrimitivesV7ExecutorParams, PolkadotPrimitivesV7ScrapedOnChainVotes, PolkadotPrimitivesV7SessionInfo, PolkadotPrimitivesV7SlashingPendingSlashes, PolkadotPrimitivesV7UpgradeGoAhead, PolkadotPrimitivesV7UpgradeRestriction, PolkadotPrimitivesV7ValidatorAppPublic, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonImplsVersionedLocatableAsset, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor, PolkadotRuntimeParachainsAssignerCoretimeSchedule, PolkadotRuntimeParachainsAssignerOnDemandTypesCoreAffinityCount, PolkadotRuntimeParachainsAssignerOnDemandTypesEnqueuedOrder, PolkadotRuntimeParachainsAssignerOnDemandTypesQueueStatusType, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerPalletCoreOccupied, PolkadotRuntimeParachainsSchedulerPalletParasEntry, PolkadotRuntimeParachainsSharedAllowedRelayParentsTracker, PolkadotRuntimeRuntimeParametersKey, PolkadotRuntimeRuntimeParametersValue, PolkadotRuntimeSessionKeys, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyMmrBeefyAuthoritySet, SpConsensusGrandpaAppPublic, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingExposure, SpStakingExposurePage, SpStakingOffenceOffenceDetails, SpStakingPagedExposureMetadata, SpWeightsWeightV2Weight, StagingXcmV4Instruction, StagingXcmV4Xcm, XcmVersionedAssetId, XcmVersionedLocation } from '@polkadot/types/lookup';
|
import type { BinaryHeapEnqueuedOrder, FrameSupportDispatchPerDispatchClassWeight, FrameSupportTokensMiscIdAmountRuntimeFreezeReason, FrameSupportTokensMiscIdAmountRuntimeHoldReason, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletConvictionVotingVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageOldRequestStatus, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletReferendaReferendumInfo, PalletSchedulerRetryConfig, PalletSchedulerScheduled, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletTreasurySpendStatus, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesPrimitivesHrmpChannelId, PolkadotPrimitivesV7AssignmentAppPublic, PolkadotPrimitivesV7DisputeState, PolkadotPrimitivesV7ExecutorParams, PolkadotPrimitivesV7ScrapedOnChainVotes, PolkadotPrimitivesV7SessionInfo, PolkadotPrimitivesV7SlashingPendingSlashes, PolkadotPrimitivesV7UpgradeGoAhead, PolkadotPrimitivesV7UpgradeRestriction, PolkadotPrimitivesV7ValidatorAppPublic, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonImplsVersionedLocatableAsset, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor, PolkadotRuntimeParachainsAssignerCoretimeSchedule, PolkadotRuntimeParachainsAssignerOnDemandTypesCoreAffinityCount, PolkadotRuntimeParachainsAssignerOnDemandTypesEnqueuedOrder, PolkadotRuntimeParachainsAssignerOnDemandTypesQueueStatusType, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerPalletCoreOccupied, PolkadotRuntimeParachainsSchedulerPalletParasEntry, PolkadotRuntimeParachainsSharedAllowedRelayParentsTracker, PolkadotRuntimeRuntimeParametersKey, PolkadotRuntimeRuntimeParametersValue, PolkadotRuntimeSessionKeys, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyMmrBeefyAuthoritySet, SpConsensusGrandpaAppPublic, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingExposure, SpStakingExposurePage, SpStakingOffenceOffenceDetails, SpStakingPagedExposureMetadata, SpWeightsWeightV2Weight, StagingXcmV4Instruction, XcmVersionedAssetId, XcmVersionedLocation } 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>;
|
||||||
|
|||||||
@@ -18,11 +18,11 @@
|
|||||||
"./packageDetect.cjs"
|
"./packageDetect.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "15.2.1",
|
"version": "15.5.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@polkadot/rpc-core": "15.2.1",
|
"@polkadot/rpc-core": "15.5.1",
|
||||||
"@polkadot/types": "15.2.1",
|
"@polkadot/types": "15.5.1",
|
||||||
"@polkadot/util": "^13.3.1",
|
"@polkadot/util": "^13.3.1",
|
||||||
"rxjs": "^7.8.1",
|
"rxjs": "^7.8.1",
|
||||||
"tslib": "^2.8.1"
|
"tslib": "^2.8.1"
|
||||||
|
|||||||
@@ -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: '15.2.1' };
|
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '15.5.1' };
|
||||||
|
|||||||
@@ -18,22 +18,22 @@
|
|||||||
"./packageDetect.cjs"
|
"./packageDetect.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "15.2.1",
|
"version": "15.5.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@polkadot/api": "15.2.1",
|
"@polkadot/api": "15.5.1",
|
||||||
"@polkadot/api-augment": "15.2.1",
|
"@polkadot/api-augment": "15.5.1",
|
||||||
"@polkadot/types": "15.2.1",
|
"@polkadot/types": "15.5.1",
|
||||||
"@polkadot/types-codec": "15.2.1",
|
"@polkadot/types-codec": "15.5.1",
|
||||||
"@polkadot/types-create": "15.2.1",
|
"@polkadot/types-create": "15.5.1",
|
||||||
"@polkadot/util": "^13.3.1",
|
"@polkadot/util": "^13.3.1",
|
||||||
"@polkadot/util-crypto": "^13.3.1",
|
"@polkadot/util-crypto": "^13.3.1",
|
||||||
"rxjs": "^7.8.1",
|
"rxjs": "^7.8.1",
|
||||||
"tslib": "^2.8.1"
|
"tslib": "^2.8.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/api-augment": "15.2.1",
|
"@polkadot/api-augment": "15.5.1",
|
||||||
"@polkadot/keyring": "^13.3.1",
|
"@polkadot/keyring": "^13.3.1",
|
||||||
"@polkadot/types-support": "15.2.1"
|
"@polkadot/types-support": "15.5.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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: '15.2.1' };
|
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '15.5.1' };
|
||||||
|
|||||||
@@ -18,25 +18,25 @@
|
|||||||
"./packageDetect.cjs"
|
"./packageDetect.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "15.2.1",
|
"version": "15.5.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@polkadot/api": "15.2.1",
|
"@polkadot/api": "15.5.1",
|
||||||
"@polkadot/api-augment": "15.2.1",
|
"@polkadot/api-augment": "15.5.1",
|
||||||
"@polkadot/api-base": "15.2.1",
|
"@polkadot/api-base": "15.5.1",
|
||||||
"@polkadot/rpc-core": "15.2.1",
|
"@polkadot/rpc-core": "15.5.1",
|
||||||
"@polkadot/types": "15.2.1",
|
"@polkadot/types": "15.5.1",
|
||||||
"@polkadot/types-codec": "15.2.1",
|
"@polkadot/types-codec": "15.5.1",
|
||||||
"@polkadot/util": "^13.3.1",
|
"@polkadot/util": "^13.3.1",
|
||||||
"@polkadot/util-crypto": "^13.3.1",
|
"@polkadot/util-crypto": "^13.3.1",
|
||||||
"rxjs": "^7.8.1",
|
"rxjs": "^7.8.1",
|
||||||
"tslib": "^2.8.1"
|
"tslib": "^2.8.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/api": "15.2.1",
|
"@polkadot/api": "15.5.1",
|
||||||
"@polkadot/api-augment": "15.2.1",
|
"@polkadot/api-augment": "15.5.1",
|
||||||
"@polkadot/rpc-augment": "15.2.1",
|
"@polkadot/rpc-augment": "15.5.1",
|
||||||
"@polkadot/rpc-provider": "15.2.1",
|
"@polkadot/rpc-provider": "15.5.1",
|
||||||
"@polkadot/types-support": "15.2.1"
|
"@polkadot/types-support": "15.5.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -135,11 +135,36 @@ export function identity (instanceId: string, api: DeriveApi): (accountId?: Acco
|
|||||||
),
|
),
|
||||||
map(([identityOfOpt, superOf]) =>
|
map(([identityOfOpt, superOf]) =>
|
||||||
extractIdentity(identityOfOpt, superOf)
|
extractIdentity(identityOfOpt, superOf)
|
||||||
|
),
|
||||||
|
switchMap((identity) =>
|
||||||
|
getSubIdentities(identity, api, accountId)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// if an account has no parents it will extract its subidentities
|
||||||
|
// otherwise if the account is a subidentity, obtain all subidentities of its parent.
|
||||||
|
function getSubIdentities (identity: DeriveAccountRegistration, api: DeriveApi, accountId?: AccountId | Uint8Array | string): Observable<DeriveAccountRegistration> {
|
||||||
|
const targetAccount = identity.parent || accountId;
|
||||||
|
|
||||||
|
if (!targetAccount) {
|
||||||
|
// No valid accountId return the identity as-is
|
||||||
|
return of(identity);
|
||||||
|
}
|
||||||
|
|
||||||
|
return api.query.identity.subsOf(targetAccount).pipe(
|
||||||
|
map((subsResponse) => {
|
||||||
|
const subs = subsResponse[1];
|
||||||
|
|
||||||
|
return {
|
||||||
|
...identity,
|
||||||
|
subs
|
||||||
|
};
|
||||||
|
})
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
export const hasIdentity = /*#__PURE__*/ firstMemo(
|
export const hasIdentity = /*#__PURE__*/ firstMemo(
|
||||||
(api: DeriveApi, accountId: AccountId | Uint8Array | string) =>
|
(api: DeriveApi, accountId: AccountId | Uint8Array | string) =>
|
||||||
api.derive.accounts.hasIdentityMulti([accountId])
|
api.derive.accounts.hasIdentityMulti([accountId])
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { AccountId, AccountIndex, RegistrationJudgement } from '@polkadot/types/interfaces';
|
import type { AccountId, AccountIndex, RegistrationJudgement } from '@polkadot/types/interfaces';
|
||||||
|
import type { Vec } from '@polkadot/types-codec';
|
||||||
|
|
||||||
export type AccountIdAndIndex = [AccountId | undefined, AccountIndex | undefined];
|
export type AccountIdAndIndex = [AccountId | undefined, AccountIndex | undefined];
|
||||||
|
|
||||||
@@ -20,6 +21,7 @@ export interface DeriveAccountRegistration {
|
|||||||
parent?: AccountId | undefined;
|
parent?: AccountId | undefined;
|
||||||
pgp?: string | undefined;
|
pgp?: string | undefined;
|
||||||
riot?: string | undefined;
|
riot?: string | undefined;
|
||||||
|
subs?: Vec<AccountId> | undefined;
|
||||||
twitter?: string | undefined;
|
twitter?: string | undefined;
|
||||||
web?: string | undefined;
|
web?: string | undefined;
|
||||||
judgements: RegistrationJudgement[];
|
judgements: RegistrationJudgement[];
|
||||||
|
|||||||
@@ -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: '15.2.1' };
|
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '15.5.1' };
|
||||||
|
|||||||
+14
-14
@@ -18,21 +18,21 @@
|
|||||||
"./packageDetect.cjs"
|
"./packageDetect.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "15.2.1",
|
"version": "15.5.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@polkadot/api-augment": "15.2.1",
|
"@polkadot/api-augment": "15.5.1",
|
||||||
"@polkadot/api-base": "15.2.1",
|
"@polkadot/api-base": "15.5.1",
|
||||||
"@polkadot/api-derive": "15.2.1",
|
"@polkadot/api-derive": "15.5.1",
|
||||||
"@polkadot/keyring": "^13.3.1",
|
"@polkadot/keyring": "^13.3.1",
|
||||||
"@polkadot/rpc-augment": "15.2.1",
|
"@polkadot/rpc-augment": "15.5.1",
|
||||||
"@polkadot/rpc-core": "15.2.1",
|
"@polkadot/rpc-core": "15.5.1",
|
||||||
"@polkadot/rpc-provider": "15.2.1",
|
"@polkadot/rpc-provider": "15.5.1",
|
||||||
"@polkadot/types": "15.2.1",
|
"@polkadot/types": "15.5.1",
|
||||||
"@polkadot/types-augment": "15.2.1",
|
"@polkadot/types-augment": "15.5.1",
|
||||||
"@polkadot/types-codec": "15.2.1",
|
"@polkadot/types-codec": "15.5.1",
|
||||||
"@polkadot/types-create": "15.2.1",
|
"@polkadot/types-create": "15.5.1",
|
||||||
"@polkadot/types-known": "15.2.1",
|
"@polkadot/types-known": "15.5.1",
|
||||||
"@polkadot/util": "^13.3.1",
|
"@polkadot/util": "^13.3.1",
|
||||||
"@polkadot/util-crypto": "^13.3.1",
|
"@polkadot/util-crypto": "^13.3.1",
|
||||||
"eventemitter3": "^5.0.1",
|
"eventemitter3": "^5.0.1",
|
||||||
@@ -40,7 +40,7 @@
|
|||||||
"tslib": "^2.8.1"
|
"tslib": "^2.8.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/api-augment": "15.2.1",
|
"@polkadot/api-augment": "15.5.1",
|
||||||
"@polkadot/types-support": "15.2.1"
|
"@polkadot/types-support": "15.5.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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: '15.2.1' };
|
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '15.5.1' };
|
||||||
|
|||||||
@@ -18,12 +18,12 @@
|
|||||||
"./packageDetect.cjs"
|
"./packageDetect.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "15.2.1",
|
"version": "15.5.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@polkadot/rpc-core": "15.2.1",
|
"@polkadot/rpc-core": "15.5.1",
|
||||||
"@polkadot/types": "15.2.1",
|
"@polkadot/types": "15.5.1",
|
||||||
"@polkadot/types-codec": "15.2.1",
|
"@polkadot/types-codec": "15.5.1",
|
||||||
"@polkadot/util": "^13.3.1",
|
"@polkadot/util": "^13.3.1",
|
||||||
"tslib": "^2.8.1"
|
"tslib": "^2.8.1"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -404,6 +404,10 @@ declare module '@polkadot/rpc-core/types/jsonrpc' {
|
|||||||
version: AugmentedRpc<() => Observable<Text>>;
|
version: AugmentedRpc<() => Observable<Text>>;
|
||||||
};
|
};
|
||||||
offchain: {
|
offchain: {
|
||||||
|
/**
|
||||||
|
* Clear offchain local storage under given key and prefix
|
||||||
|
**/
|
||||||
|
localStorageClear: AugmentedRpc<(kind: StorageKind | 'PERSISTENT' | 'LOCAL' | number | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Null>>;
|
||||||
/**
|
/**
|
||||||
* Get offchain local storage under given key and prefix
|
* Get offchain local storage under given key and prefix
|
||||||
**/
|
**/
|
||||||
|
|||||||
@@ -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: '15.2.1' };
|
export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '15.5.1' };
|
||||||
|
|||||||
@@ -18,18 +18,18 @@
|
|||||||
"./packageDetect.cjs"
|
"./packageDetect.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "15.2.1",
|
"version": "15.5.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@polkadot/rpc-augment": "15.2.1",
|
"@polkadot/rpc-augment": "15.5.1",
|
||||||
"@polkadot/rpc-provider": "15.2.1",
|
"@polkadot/rpc-provider": "15.5.1",
|
||||||
"@polkadot/types": "15.2.1",
|
"@polkadot/types": "15.5.1",
|
||||||
"@polkadot/util": "^13.3.1",
|
"@polkadot/util": "^13.3.1",
|
||||||
"rxjs": "^7.8.1",
|
"rxjs": "^7.8.1",
|
||||||
"tslib": "^2.8.1"
|
"tslib": "^2.8.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/keyring": "^13.3.1",
|
"@polkadot/keyring": "^13.3.1",
|
||||||
"@polkadot/rpc-augment": "15.2.1"
|
"@polkadot/rpc-augment": "15.5.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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: '15.2.1' };
|
export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '15.5.1' };
|
||||||
|
|||||||
@@ -18,12 +18,12 @@
|
|||||||
"./packageDetect.cjs"
|
"./packageDetect.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "15.2.1",
|
"version": "15.5.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@polkadot/keyring": "^13.3.1",
|
"@polkadot/keyring": "^13.3.1",
|
||||||
"@polkadot/types": "15.2.1",
|
"@polkadot/types": "15.5.1",
|
||||||
"@polkadot/types-support": "15.2.1",
|
"@polkadot/types-support": "15.5.1",
|
||||||
"@polkadot/util": "^13.3.1",
|
"@polkadot/util": "^13.3.1",
|
||||||
"@polkadot/util-crypto": "^13.3.1",
|
"@polkadot/util-crypto": "^13.3.1",
|
||||||
"@polkadot/x-fetch": "^13.3.1",
|
"@polkadot/x-fetch": "^13.3.1",
|
||||||
|
|||||||
@@ -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: '15.2.1' };
|
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '15.5.1' };
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
"./packageDetect.cjs"
|
"./packageDetect.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "15.2.1",
|
"version": "15.5.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"bin": {
|
"bin": {
|
||||||
"polkadot-types-chain-info": "./scripts/polkadot-types-chain-info.mjs",
|
"polkadot-types-chain-info": "./scripts/polkadot-types-chain-info.mjs",
|
||||||
@@ -28,15 +28,15 @@
|
|||||||
"polkadot-types-internal-metadata": "./scripts/polkadot-types-internal-metadata.mjs"
|
"polkadot-types-internal-metadata": "./scripts/polkadot-types-internal-metadata.mjs"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@polkadot/api": "15.2.1",
|
"@polkadot/api": "15.5.1",
|
||||||
"@polkadot/api-augment": "15.2.1",
|
"@polkadot/api-augment": "15.5.1",
|
||||||
"@polkadot/rpc-augment": "15.2.1",
|
"@polkadot/rpc-augment": "15.5.1",
|
||||||
"@polkadot/rpc-provider": "15.2.1",
|
"@polkadot/rpc-provider": "15.5.1",
|
||||||
"@polkadot/types": "15.2.1",
|
"@polkadot/types": "15.5.1",
|
||||||
"@polkadot/types-augment": "15.2.1",
|
"@polkadot/types-augment": "15.5.1",
|
||||||
"@polkadot/types-codec": "15.2.1",
|
"@polkadot/types-codec": "15.5.1",
|
||||||
"@polkadot/types-create": "15.2.1",
|
"@polkadot/types-create": "15.5.1",
|
||||||
"@polkadot/types-support": "15.2.1",
|
"@polkadot/types-support": "15.5.1",
|
||||||
"@polkadot/util": "^13.3.1",
|
"@polkadot/util": "^13.3.1",
|
||||||
"@polkadot/util-crypto": "^13.3.1",
|
"@polkadot/util-crypto": "^13.3.1",
|
||||||
"@polkadot/x-ws": "^13.3.1",
|
"@polkadot/x-ws": "^13.3.1",
|
||||||
|
|||||||
@@ -81,7 +81,15 @@ function generateForMeta (registry: Registry, meta: Metadata, dest: string, extr
|
|||||||
'@polkadot/types/interfaces': defaultDefs,
|
'@polkadot/types/interfaces': defaultDefs,
|
||||||
...extraTypes
|
...extraTypes
|
||||||
};
|
};
|
||||||
const imports = createImports(allTypes);
|
|
||||||
|
// Incorrect type assignment in StagingXcmV4Xcm.
|
||||||
|
// Temporarily ignore this type to prevent import errors.
|
||||||
|
//
|
||||||
|
// See https://github.com/polkadot-js/api/issues/5977
|
||||||
|
// for more details
|
||||||
|
const ignoreTypes = { types: { StagingXcmV4Xcm: undefined } };
|
||||||
|
|
||||||
|
const imports = createImports(allTypes, ignoreTypes);
|
||||||
const allDefs = Object.entries(allTypes).reduce((defs, [path, obj]) => {
|
const allDefs = Object.entries(allTypes).reduce((defs, [path, obj]) => {
|
||||||
return Object.entries(obj).reduce((defs, [key, value]) => ({ ...defs, [`${path}/${key}`]: value }), defs);
|
return Object.entries(obj).reduce((defs, [key, value]) => ({ ...defs, [`${path}/${key}`]: value }), defs);
|
||||||
}, {});
|
}, {});
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
// Copyright 2017-2025 @polkadot/typegen authors & contributors
|
// Copyright 2017-2025 @polkadot/typegen authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { MetadataLatest, SiLookupTypeId } from '@polkadot/types/interfaces';
|
import type { MetadataLatest, RuntimeApiMethodMetadataV15, SiLookupTypeId } from '@polkadot/types/interfaces';
|
||||||
import type { PortableRegistry } from '@polkadot/types/metadata';
|
import type { PortableRegistry } from '@polkadot/types/metadata';
|
||||||
import type { Text } from '@polkadot/types/primitive';
|
import type { Text } from '@polkadot/types/primitive';
|
||||||
import type { Codec, DefinitionRpcParam } from '@polkadot/types/types';
|
import type { Codec, DefinitionCall, DefinitionRpcParam, DefinitionsCall, Registry } from '@polkadot/types/types';
|
||||||
import type { HexString } from '@polkadot/util/types';
|
import type { HexString } from '@polkadot/util/types';
|
||||||
|
|
||||||
import fs from 'node:fs';
|
import fs from 'node:fs';
|
||||||
@@ -17,9 +17,19 @@ import { Metadata, TypeRegistry, Vec } from '@polkadot/types';
|
|||||||
import * as definitions from '@polkadot/types/interfaces/definitions';
|
import * as definitions from '@polkadot/types/interfaces/definitions';
|
||||||
import { getStorage as getSubstrateStorage } from '@polkadot/types/metadata/decorate/storage/getStorage';
|
import { getStorage as getSubstrateStorage } from '@polkadot/types/metadata/decorate/storage/getStorage';
|
||||||
import { unwrapStorageType } from '@polkadot/types/util';
|
import { unwrapStorageType } from '@polkadot/types/util';
|
||||||
import kusamaMeta, { rpc as kusamaRpc, version as kusamaVer } from '@polkadot/types-support/metadata/static-kusama';
|
import assetHubKusamaMeta from '@polkadot/types-support/metadata/v15/asset-hub-kusama-hex';
|
||||||
import polkadotMeta, { rpc as polkadotRpc, version as polkadotVer } from '@polkadot/types-support/metadata/static-polkadot';
|
import assetHubKusamaRpc from '@polkadot/types-support/metadata/v15/asset-hub-kusama-rpc';
|
||||||
import substrateMeta from '@polkadot/types-support/metadata/static-substrate';
|
import assetHubKusamaVer from '@polkadot/types-support/metadata/v15/asset-hub-kusama-ver';
|
||||||
|
import assetHubPolkadotMeta from '@polkadot/types-support/metadata/v15/asset-hub-polkadot-hex';
|
||||||
|
import assetHubPolkadotRpc from '@polkadot/types-support/metadata/v15/asset-hub-polkadot-rpc';
|
||||||
|
import assetHubPolkadotVer from '@polkadot/types-support/metadata/v15/asset-hub-polkadot-ver';
|
||||||
|
import kusamaMeta from '@polkadot/types-support/metadata/v15/kusama-hex';
|
||||||
|
import kusamaRpc from '@polkadot/types-support/metadata/v15/kusama-rpc';
|
||||||
|
import kusamaVer from '@polkadot/types-support/metadata/v15/kusama-ver';
|
||||||
|
import polkadotMeta from '@polkadot/types-support/metadata/v15/polkadot-hex';
|
||||||
|
import polkadotRpc from '@polkadot/types-support/metadata/v15/polkadot-rpc';
|
||||||
|
import polkadotVer from '@polkadot/types-support/metadata/v15/polkadot-ver';
|
||||||
|
import substrateMeta from '@polkadot/types-support/metadata/v15/substrate-hex';
|
||||||
import { isHex, stringCamelCase, stringLowerFirst } from '@polkadot/util';
|
import { isHex, stringCamelCase, stringLowerFirst } from '@polkadot/util';
|
||||||
import { blake2AsHex } from '@polkadot/util-crypto';
|
import { blake2AsHex } from '@polkadot/util-crypto';
|
||||||
|
|
||||||
@@ -55,6 +65,16 @@ interface StaticDef {
|
|||||||
const headerFn = (runtimeDesc: string) => `\n\n(NOTE: These were generated from a static/snapshot view of a recent ${runtimeDesc}. Some items may not be available in older nodes, or in any customized implementations.)`;
|
const headerFn = (runtimeDesc: string) => `\n\n(NOTE: These were generated from a static/snapshot view of a recent ${runtimeDesc}. Some items may not be available in older nodes, or in any customized implementations.)`;
|
||||||
|
|
||||||
const ALL_STATIC: Record<string, StaticDef> = {
|
const ALL_STATIC: Record<string, StaticDef> = {
|
||||||
|
'asset-hub-kusama': {
|
||||||
|
meta: assetHubKusamaMeta,
|
||||||
|
rpc: assetHubKusamaRpc,
|
||||||
|
ver: assetHubKusamaVer as unknown as { apis: ApiDef[] }
|
||||||
|
},
|
||||||
|
'asset-hub-polkadot': {
|
||||||
|
meta: assetHubPolkadotMeta,
|
||||||
|
rpc: assetHubPolkadotRpc,
|
||||||
|
ver: assetHubPolkadotVer as unknown as { apis: ApiDef[] }
|
||||||
|
},
|
||||||
kusama: {
|
kusama: {
|
||||||
meta: kusamaMeta,
|
meta: kusamaMeta,
|
||||||
rpc: kusamaRpc,
|
rpc: kusamaRpc,
|
||||||
@@ -218,7 +238,89 @@ function addRpc (_runtimeDesc: string, rpcMethods?: string[]): string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
function addRuntime (_runtimeDesc: string, apis?: ApiDef[]): string {
|
function getMethods (registry: Registry, methods: Vec<RuntimeApiMethodMetadataV15>) {
|
||||||
|
const result: Record<string, DefinitionCall> = {};
|
||||||
|
|
||||||
|
methods.forEach((m) => {
|
||||||
|
const { docs, inputs, name, output } = m;
|
||||||
|
|
||||||
|
result[name.toString()] = {
|
||||||
|
description: docs.map((d) => d.toString()).join(),
|
||||||
|
params: inputs.map(({ name, type }) => {
|
||||||
|
return { name: name.toString(), type: registry.lookup.getName(type) || registry.lookup.getTypeDef(type).type };
|
||||||
|
}),
|
||||||
|
type: registry.lookup.getName(output) || registry.lookup.getTypeDef(output).type
|
||||||
|
};
|
||||||
|
});
|
||||||
|
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @internal */
|
||||||
|
function getRuntimeDefViaMetadata (registry: Registry) {
|
||||||
|
const result: DefinitionsCall = {};
|
||||||
|
const { apis } = registry.metadata;
|
||||||
|
|
||||||
|
for (let i = 0, count = apis.length; i < count; i++) {
|
||||||
|
const { methods, name } = apis[i];
|
||||||
|
|
||||||
|
result[name.toString()] = [{
|
||||||
|
methods: getMethods(registry, methods),
|
||||||
|
// We set the version to 0 here since it will not be relevant when we are grabbing the runtime apis
|
||||||
|
// from the Metadata.
|
||||||
|
version: 0
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
|
||||||
|
return Object.entries(result);
|
||||||
|
}
|
||||||
|
|
||||||
|
function runtimeSections (registry: Registry) {
|
||||||
|
const sections = getRuntimeDefViaMetadata(registry);
|
||||||
|
const all = [];
|
||||||
|
|
||||||
|
for (let j = 0, jcount = sections.length; j < jcount; j++) {
|
||||||
|
const [_section, secs] = sections[j];
|
||||||
|
const sec = secs[0];
|
||||||
|
|
||||||
|
const section = stringCamelCase(_section);
|
||||||
|
const methods = Object.entries(sec.methods);
|
||||||
|
|
||||||
|
const container: Section = { items: [], name: section };
|
||||||
|
|
||||||
|
all.push(container);
|
||||||
|
|
||||||
|
methods
|
||||||
|
.sort(([a], [b]) => a.localeCompare(b))
|
||||||
|
.forEach(([methodName, { description, params, type }]): void => {
|
||||||
|
const args = params.map(({ name, type }): string => {
|
||||||
|
// eslint-disable-next-line @typescript-eslint/restrict-plus-operands
|
||||||
|
return name + ': `' + type + '`';
|
||||||
|
}).join(', ');
|
||||||
|
|
||||||
|
container.items.push({
|
||||||
|
interface: '`' + `api.call.${stringCamelCase(section)}.${stringCamelCase(methodName)}` + '`',
|
||||||
|
name: `${stringCamelCase(methodName)}(${args}): ${'`' + type + '`'}`,
|
||||||
|
runtime: '`' + `${section}_${methodName}` + '`',
|
||||||
|
summary: description
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
return all.sort(sortByName);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @internal */
|
||||||
|
function addRuntime (_runtimeDesc: string, registry: Registry): string {
|
||||||
|
return renderPage({
|
||||||
|
description: 'The following section contains known runtime calls that may be available on specific runtimes (depending on configuration and available pallets). These call directly into the WASM runtime for queries and operations.',
|
||||||
|
sections: runtimeSections(registry),
|
||||||
|
title: 'Runtime'
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @internal */
|
||||||
|
function addLegacyRuntime (_runtimeDesc: string, _registry: Registry, apis?: ApiDef[]) {
|
||||||
return renderPage({
|
return renderPage({
|
||||||
description: 'The following section contains known runtime calls that may be available on specific runtimes (depending on configuration and available pallets). These call directly into the WASM runtime for queries and operations.',
|
description: 'The following section contains known runtime calls that may be available on specific runtimes (depending on configuration and available pallets). These call directly into the WASM runtime for queries and operations.',
|
||||||
sections: Object
|
sections: Object
|
||||||
@@ -460,10 +562,10 @@ function writeFile (name: string, ...chunks: any[]): void {
|
|||||||
writeStream.end();
|
writeStream.end();
|
||||||
}
|
}
|
||||||
|
|
||||||
interface ArgV { chain?: string; endpoint?: string; }
|
interface ArgV { chain?: string; endpoint?: string; metadataVer?: number; }
|
||||||
|
|
||||||
async function mainPromise (): Promise<void> {
|
async function mainPromise (): Promise<void> {
|
||||||
const { chain, endpoint } = yargs(hideBin(process.argv)).strict().options({
|
const { chain, endpoint, metadataVer } = yargs(hideBin(process.argv)).strict().options({
|
||||||
chain: {
|
chain: {
|
||||||
description: 'The chain name to use for the output (defaults to "Substrate")',
|
description: 'The chain name to use for the output (defaults to "Substrate")',
|
||||||
type: 'string'
|
type: 'string'
|
||||||
@@ -471,9 +573,19 @@ async function mainPromise (): Promise<void> {
|
|||||||
endpoint: {
|
endpoint: {
|
||||||
description: 'The endpoint to connect to (e.g. wss://kusama-rpc.polkadot.io) or relative path to a file containing the JSON output of an RPC state_getMetadata call',
|
description: 'The endpoint to connect to (e.g. wss://kusama-rpc.polkadot.io) or relative path to a file containing the JSON output of an RPC state_getMetadata call',
|
||||||
type: 'string'
|
type: 'string'
|
||||||
|
},
|
||||||
|
metadataVer: {
|
||||||
|
description: 'The metadata version to use for generating type information. This will use state_call::Metadata_metadata_at_version to query metadata',
|
||||||
|
type: 'number'
|
||||||
}
|
}
|
||||||
}).argv as ArgV;
|
}).argv as ArgV;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This is unique to when the endpoint arg is used. Since the endpoint requires us to query the chain, it may query the chains
|
||||||
|
* rpc state_getMetadata method to get metadata, but this restricts us to v14 only. Therefore we must also check if the `metadataVer` is passed
|
||||||
|
* in as well. These checks will help us decide if we are using v14 or newer.
|
||||||
|
*/
|
||||||
|
const useV14Metadata = endpoint && ((metadataVer && metadataVer < 15) || !metadataVer);
|
||||||
const chainName = chain || 'Substrate';
|
const chainName = chain || 'Substrate';
|
||||||
let metaHex: HexString;
|
let metaHex: HexString;
|
||||||
let rpcMethods: string[] | undefined;
|
let rpcMethods: string[] | undefined;
|
||||||
@@ -481,7 +593,7 @@ async function mainPromise (): Promise<void> {
|
|||||||
|
|
||||||
if (endpoint) {
|
if (endpoint) {
|
||||||
if (endpoint.startsWith('wss://') || endpoint.startsWith('ws://')) {
|
if (endpoint.startsWith('wss://') || endpoint.startsWith('ws://')) {
|
||||||
metaHex = await getMetadataViaWs(endpoint);
|
metaHex = await getMetadataViaWs(endpoint, metadataVer);
|
||||||
rpcMethods = await getRpcMethodsViaWs(endpoint);
|
rpcMethods = await getRpcMethodsViaWs(endpoint);
|
||||||
runtimeApis = await getRuntimeVersionViaWs(endpoint);
|
runtimeApis = await getRuntimeVersionViaWs(endpoint);
|
||||||
} else {
|
} else {
|
||||||
@@ -498,13 +610,20 @@ async function mainPromise (): Promise<void> {
|
|||||||
} else if (ALL_STATIC[chainName.toLowerCase()]) {
|
} else if (ALL_STATIC[chainName.toLowerCase()]) {
|
||||||
metaHex = ALL_STATIC[chainName.toLowerCase()].meta;
|
metaHex = ALL_STATIC[chainName.toLowerCase()].meta;
|
||||||
rpcMethods = ALL_STATIC[chainName.toLowerCase()].rpc?.methods;
|
rpcMethods = ALL_STATIC[chainName.toLowerCase()].rpc?.methods;
|
||||||
runtimeApis = ALL_STATIC[chainName.toLowerCase()].ver?.apis;
|
|
||||||
} else {
|
} else {
|
||||||
metaHex = substrateMeta;
|
metaHex = substrateMeta;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let metadata: Metadata;
|
||||||
const registry = new TypeRegistry();
|
const registry = new TypeRegistry();
|
||||||
const metadata = new Metadata(registry, metaHex);
|
|
||||||
|
if (useV14Metadata) {
|
||||||
|
metadata = new Metadata(registry, metaHex);
|
||||||
|
} else {
|
||||||
|
const opaqueMetadata = registry.createType('Option<OpaqueMetadata>', registry.createType('Raw', metaHex).toU8a()).unwrap();
|
||||||
|
|
||||||
|
metadata = new Metadata(registry, opaqueMetadata.toHex());
|
||||||
|
}
|
||||||
|
|
||||||
registry.setMetadata(metadata);
|
registry.setMetadata(metadata);
|
||||||
|
|
||||||
@@ -514,7 +633,9 @@ async function mainPromise (): Promise<void> {
|
|||||||
|
|
||||||
writeFile(`${docRoot}/rpc.md`, addRpc(runtimeDesc, rpcMethods));
|
writeFile(`${docRoot}/rpc.md`, addRpc(runtimeDesc, rpcMethods));
|
||||||
|
|
||||||
writeFile(`${docRoot}/runtime.md`, addRuntime(runtimeDesc, runtimeApis));
|
useV14Metadata
|
||||||
|
? writeFile(`${docRoot}/runtime.md`, addLegacyRuntime(runtimeDesc, registry, runtimeApis))
|
||||||
|
: writeFile(`${docRoot}/runtime.md`, addRuntime(runtimeDesc, registry));
|
||||||
|
|
||||||
writeFile(`${docRoot}/constants.md`, addConstants(runtimeDesc, latest));
|
writeFile(`${docRoot}/constants.md`, addConstants(runtimeDesc, latest));
|
||||||
writeFile(`${docRoot}/storage.md`, addStorage(runtimeDesc, latest));
|
writeFile(`${docRoot}/storage.md`, addStorage(runtimeDesc, latest));
|
||||||
|
|||||||
@@ -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: '15.2.1' };
|
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '15.5.1' };
|
||||||
|
|||||||
@@ -4,10 +4,11 @@
|
|||||||
import type { HexString } from '@polkadot/util/types';
|
import type { HexString } from '@polkadot/util/types';
|
||||||
|
|
||||||
import { promiseTracker } from '@polkadot/api/promise/decorateMethod';
|
import { promiseTracker } from '@polkadot/api/promise/decorateMethod';
|
||||||
import { stringify } from '@polkadot/util';
|
import { TypeRegistry } from '@polkadot/types';
|
||||||
|
import { stringify, u8aToHex } from '@polkadot/util';
|
||||||
import { WebSocket } from '@polkadot/x-ws';
|
import { WebSocket } from '@polkadot/x-ws';
|
||||||
|
|
||||||
async function getWsData <T> (endpoint: string, method: 'rpc_methods' | 'state_getMetadata' | 'state_getRuntimeVersion'): Promise<T> {
|
async function getWsData <T> (endpoint: string, method: 'rpc_methods' | 'state_call' | 'state_getMetadata' | 'state_getRuntimeVersion', params?: string[]): Promise<T> {
|
||||||
return new Promise((resolve, reject): void => {
|
return new Promise((resolve, reject): void => {
|
||||||
const tracker = promiseTracker<T>(resolve, reject);
|
const tracker = promiseTracker<T>(resolve, reject);
|
||||||
|
|
||||||
@@ -26,7 +27,9 @@ async function getWsData <T> (endpoint: string, method: 'rpc_methods' | 'state_g
|
|||||||
|
|
||||||
websocket.onopen = (): void => {
|
websocket.onopen = (): void => {
|
||||||
console.log('connected');
|
console.log('connected');
|
||||||
websocket.send(`{"id":"1","jsonrpc":"2.0","method":"${method}","params":[]}`);
|
params
|
||||||
|
? websocket.send(`{"id":"1","jsonrpc":"2.0","method":"${method}","params":[${params.map((param) => `"${param}"`).join(',')}]}`)
|
||||||
|
: websocket.send(`{"id":"1","jsonrpc":"2.0","method":"${method}","params":[]}`);
|
||||||
};
|
};
|
||||||
|
|
||||||
websocket.onmessage = (message: { data: string }): void => {
|
websocket.onmessage = (message: { data: string }): void => {
|
||||||
@@ -44,8 +47,14 @@ async function getWsData <T> (endpoint: string, method: 'rpc_methods' | 'state_g
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function getMetadataViaWs (endpoint: string): Promise<HexString> {
|
export async function getMetadataViaWs (endpoint: string, metadataVer?: number): Promise<HexString> {
|
||||||
return getWsData<HexString>(endpoint, 'state_getMetadata');
|
const registry = new TypeRegistry();
|
||||||
|
|
||||||
|
if (metadataVer) {
|
||||||
|
return await getWsData<HexString>(endpoint, 'state_call', ['Metadata_metadata_at_version', u8aToHex(registry.createType('u32', metadataVer).toU8a())]);
|
||||||
|
} else {
|
||||||
|
return await getWsData<HexString>(endpoint, 'state_getMetadata');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function getRpcMethodsViaWs (endpoint: string): Promise<string[]> {
|
export async function getRpcMethodsViaWs (endpoint: string): Promise<string[]> {
|
||||||
|
|||||||
@@ -18,11 +18,11 @@
|
|||||||
"./packageDetect.cjs"
|
"./packageDetect.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "15.2.1",
|
"version": "15.5.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@polkadot/types": "15.2.1",
|
"@polkadot/types": "15.5.1",
|
||||||
"@polkadot/types-codec": "15.2.1",
|
"@polkadot/types-codec": "15.5.1",
|
||||||
"@polkadot/util": "^13.3.1",
|
"@polkadot/util": "^13.3.1",
|
||||||
"tslib": "^2.8.1"
|
"tslib": "^2.8.1"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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: '15.2.1' };
|
export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '15.5.1' };
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ import type { Si0Field, Si0LookupTypeId, Si0Path, Si0Type, Si0TypeDef, Si0TypeDe
|
|||||||
import type { Period, Priority, SchedulePeriod, SchedulePriority, Scheduled, ScheduledTo254, TaskAddress } from '@polkadot/types/interfaces/scheduler';
|
import type { Period, Priority, SchedulePeriod, SchedulePriority, Scheduled, ScheduledTo254, TaskAddress } from '@polkadot/types/interfaces/scheduler';
|
||||||
import type { BeefyKey, FullIdentification, IdentificationTuple, Keys, MembershipProof, SessionIndex, SessionKeys1, SessionKeys10, SessionKeys10B, SessionKeys2, SessionKeys3, SessionKeys4, SessionKeys5, SessionKeys6, SessionKeys6B, SessionKeys7, SessionKeys7B, SessionKeys8, SessionKeys8B, SessionKeys9, SessionKeys9B, ValidatorCount } from '@polkadot/types/interfaces/session';
|
import type { BeefyKey, FullIdentification, IdentificationTuple, Keys, MembershipProof, SessionIndex, SessionKeys1, SessionKeys10, SessionKeys10B, SessionKeys2, SessionKeys3, SessionKeys4, SessionKeys5, SessionKeys6, SessionKeys6B, SessionKeys7, SessionKeys7B, SessionKeys8, SessionKeys8B, SessionKeys9, SessionKeys9B, ValidatorCount } from '@polkadot/types/interfaces/session';
|
||||||
import type { Bid, BidKind, SocietyJudgement, SocietyVote, StrikeCount, VouchingStatus } from '@polkadot/types/interfaces/society';
|
import type { Bid, BidKind, SocietyJudgement, SocietyVote, StrikeCount, VouchingStatus } from '@polkadot/types/interfaces/society';
|
||||||
import type { ActiveEraInfo, CompactAssignments, CompactAssignmentsTo257, CompactAssignmentsTo265, CompactAssignmentsWith16, CompactAssignmentsWith24, CompactScore, CompactScoreCompact, ElectionCompute, ElectionPhase, ElectionResult, ElectionScore, ElectionSize, ElectionStatus, EraIndex, EraPoints, EraRewardPoints, EraRewards, Exposure, ExtendedBalance, Forcing, IndividualExposure, KeyType, MomentOf, Nominations, NominatorIndex, NominatorIndexCompact, OffchainAccuracy, OffchainAccuracyCompact, PhragmenScore, Points, RawSolution, RawSolutionTo265, RawSolutionWith16, RawSolutionWith24, ReadySolution, RewardDestination, RewardPoint, RoundSnapshot, SeatHolder, SignedSubmission, SignedSubmissionOf, SignedSubmissionTo276, SlashJournalEntry, SlashingSpans, SlashingSpansTo204, SolutionOrSnapshotSize, SolutionSupport, SolutionSupports, SpanIndex, SpanRecord, StakingLedger, StakingLedgerTo223, StakingLedgerTo240, SubmissionIndicesOf, Supports, UnappliedSlash, UnappliedSlashOther, UnlockChunk, ValidatorIndex, ValidatorIndexCompact, ValidatorPrefs, ValidatorPrefsTo145, ValidatorPrefsTo196, ValidatorPrefsWithBlocked, ValidatorPrefsWithCommission, VoteWeight, Voter } from '@polkadot/types/interfaces/staking';
|
import type { ActiveEraInfo, CompactAssignments, CompactAssignmentsTo257, CompactAssignmentsTo265, CompactAssignmentsWith16, CompactAssignmentsWith24, CompactScore, CompactScoreCompact, ElectionCompute, ElectionPhase, ElectionResult, ElectionResultToSpec10, ElectionScore, ElectionSize, ElectionStatus, EraIndex, EraPoints, EraRewardPoints, EraRewards, Exposure, ExtendedBalance, Forcing, IndividualExposure, KeyType, MomentOf, Nominations, NominatorIndex, NominatorIndexCompact, OffchainAccuracy, OffchainAccuracyCompact, PhragmenScore, Points, RawSolution, RawSolutionTo265, RawSolutionWith16, RawSolutionWith24, ReadySolution, RewardDestination, RewardPoint, RoundSnapshot, SeatHolder, SignedSubmission, SignedSubmissionOf, SignedSubmissionTo276, SlashJournalEntry, SlashingSpans, SlashingSpansTo204, SolutionOrSnapshotSize, SolutionSupport, SolutionSupports, SpanIndex, SpanRecord, StakingLedger, StakingLedgerTo223, StakingLedgerTo240, SubmissionIndicesOf, Supports, UnappliedSlash, UnappliedSlashOther, UnlockChunk, ValidatorIndex, ValidatorIndexCompact, ValidatorPrefs, ValidatorPrefsTo145, ValidatorPrefsTo196, ValidatorPrefsWithBlocked, ValidatorPrefsWithCommission, VoteWeight, Voter } from '@polkadot/types/interfaces/staking';
|
||||||
import type { ApiId, BlockTrace, BlockTraceEvent, BlockTraceEventData, BlockTraceSpan, KeyValueOption, MigrationStatusResult, ReadProof, RuntimeVersion, RuntimeVersionApi, RuntimeVersionPartial, RuntimeVersionPre3, RuntimeVersionPre4, SpecVersion, StorageChangeSet, TraceBlockResponse, TraceError } from '@polkadot/types/interfaces/state';
|
import type { ApiId, BlockTrace, BlockTraceEvent, BlockTraceEventData, BlockTraceSpan, KeyValueOption, MigrationStatusResult, ReadProof, RuntimeVersion, RuntimeVersionApi, RuntimeVersionPartial, RuntimeVersionPre3, RuntimeVersionPre4, SpecVersion, StorageChangeSet, TraceBlockResponse, TraceError } from '@polkadot/types/interfaces/state';
|
||||||
import type { StatementStoreInvalidStatement, StatementStoreStatementSource, StatementStoreValidStatement } from '@polkadot/types/interfaces/statement';
|
import type { StatementStoreInvalidStatement, StatementStoreStatementSource, StatementStoreValidStatement } from '@polkadot/types/interfaces/statement';
|
||||||
import type { WeightToFeeCoefficient } from '@polkadot/types/interfaces/support';
|
import type { WeightToFeeCoefficient } from '@polkadot/types/interfaces/support';
|
||||||
@@ -402,6 +402,7 @@ declare module '@polkadot/types/types/registry' {
|
|||||||
ElectionCompute: ElectionCompute;
|
ElectionCompute: ElectionCompute;
|
||||||
ElectionPhase: ElectionPhase;
|
ElectionPhase: ElectionPhase;
|
||||||
ElectionResult: ElectionResult;
|
ElectionResult: ElectionResult;
|
||||||
|
ElectionResultToSpec10: ElectionResultToSpec10;
|
||||||
ElectionScore: ElectionScore;
|
ElectionScore: ElectionScore;
|
||||||
ElectionSize: ElectionSize;
|
ElectionSize: ElectionSize;
|
||||||
ElectionStatus: ElectionStatus;
|
ElectionStatus: ElectionStatus;
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
"./packageDetect.cjs"
|
"./packageDetect.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "15.2.1",
|
"version": "15.5.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@polkadot/util": "^13.3.1",
|
"@polkadot/util": "^13.3.1",
|
||||||
@@ -26,9 +26,9 @@
|
|||||||
"tslib": "^2.8.1"
|
"tslib": "^2.8.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/types": "15.2.1",
|
"@polkadot/types": "15.5.1",
|
||||||
"@polkadot/types-augment": "15.2.1",
|
"@polkadot/types-augment": "15.5.1",
|
||||||
"@polkadot/types-support": "15.2.1",
|
"@polkadot/types-support": "15.5.1",
|
||||||
"@polkadot/util-crypto": "^13.3.1"
|
"@polkadot/util-crypto": "^13.3.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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: '15.2.1' };
|
export const packageInfo = { name: '@polkadot/types-codec', path: 'auto', type: 'auto', version: '15.5.1' };
|
||||||
|
|||||||
@@ -18,14 +18,14 @@
|
|||||||
"./packageDetect.cjs"
|
"./packageDetect.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "15.2.1",
|
"version": "15.5.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@polkadot/types-codec": "15.2.1",
|
"@polkadot/types-codec": "15.5.1",
|
||||||
"@polkadot/util": "^13.3.1",
|
"@polkadot/util": "^13.3.1",
|
||||||
"tslib": "^2.8.1"
|
"tslib": "^2.8.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/types": "15.2.1"
|
"@polkadot/types": "15.5.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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: '15.2.1' };
|
export const packageInfo = { name: '@polkadot/types-create', path: 'auto', type: 'auto', version: '15.5.1' };
|
||||||
|
|||||||
@@ -18,17 +18,17 @@
|
|||||||
"./packageDetect.cjs"
|
"./packageDetect.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "15.2.1",
|
"version": "15.5.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@polkadot/networks": "^13.3.1",
|
"@polkadot/networks": "^13.3.1",
|
||||||
"@polkadot/types": "15.2.1",
|
"@polkadot/types": "15.5.1",
|
||||||
"@polkadot/types-codec": "15.2.1",
|
"@polkadot/types-codec": "15.5.1",
|
||||||
"@polkadot/types-create": "15.2.1",
|
"@polkadot/types-create": "15.5.1",
|
||||||
"@polkadot/util": "^13.3.1",
|
"@polkadot/util": "^13.3.1",
|
||||||
"tslib": "^2.8.1"
|
"tslib": "^2.8.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/api": "15.2.1"
|
"@polkadot/api": "15.5.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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: '15.2.1' };
|
export const packageInfo = { name: '@polkadot/types-known', path: 'auto', type: 'auto', version: '15.5.1' };
|
||||||
|
|||||||
@@ -37,7 +37,18 @@ const addrAccountIdTypes = {
|
|||||||
// these are override types for Polkadot
|
// these are override types for Polkadot
|
||||||
export const versioned: OverrideVersionedType[] = [
|
export const versioned: OverrideVersionedType[] = [
|
||||||
{
|
{
|
||||||
minmax: [0, 12],
|
minmax: [0, 10],
|
||||||
|
types: {
|
||||||
|
...sharedTypes,
|
||||||
|
...addrAccountIdTypes,
|
||||||
|
CompactAssignments: 'CompactAssignmentsTo257',
|
||||||
|
OpenTip: 'OpenTipTo225',
|
||||||
|
RefCount: 'RefCountTo259',
|
||||||
|
ElectionResult: 'ElectionResultToSpec10'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
minmax: [11, 12],
|
||||||
types: {
|
types: {
|
||||||
...sharedTypes,
|
...sharedTypes,
|
||||||
...addrAccountIdTypes,
|
...addrAccountIdTypes,
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
"./packageDetect.cjs"
|
"./packageDetect.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "15.2.1",
|
"version": "15.5.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@polkadot/util": "^13.3.1",
|
"@polkadot/util": "^13.3.1",
|
||||||
|
|||||||
@@ -67,6 +67,7 @@ export default {
|
|||||||
"mmr_root",
|
"mmr_root",
|
||||||
"mmr_verifyProof",
|
"mmr_verifyProof",
|
||||||
"mmr_verifyProofStateless",
|
"mmr_verifyProofStateless",
|
||||||
|
"offchain_localStorageClear",
|
||||||
"offchain_localStorageGet",
|
"offchain_localStorageGet",
|
||||||
"offchain_localStorageSet",
|
"offchain_localStorageSet",
|
||||||
"payment_queryFeeDetails",
|
"payment_queryFeeDetails",
|
||||||
|
|||||||
@@ -68,6 +68,7 @@ export default {
|
|||||||
"mmr_root",
|
"mmr_root",
|
||||||
"mmr_verifyProof",
|
"mmr_verifyProof",
|
||||||
"mmr_verifyProofStateless",
|
"mmr_verifyProofStateless",
|
||||||
|
"offchain_localStorageClear",
|
||||||
"offchain_localStorageGet",
|
"offchain_localStorageGet",
|
||||||
"offchain_localStorageSet",
|
"offchain_localStorageSet",
|
||||||
"payment_queryFeeDetails",
|
"payment_queryFeeDetails",
|
||||||
|
|||||||
@@ -14,7 +14,10 @@ export default {
|
|||||||
"archive_unstable_genesisHash",
|
"archive_unstable_genesisHash",
|
||||||
"archive_unstable_hashByHeight",
|
"archive_unstable_hashByHeight",
|
||||||
"archive_unstable_header",
|
"archive_unstable_header",
|
||||||
|
"archive_unstable_stopStorage",
|
||||||
"archive_unstable_storage",
|
"archive_unstable_storage",
|
||||||
|
"archive_unstable_storageDiff",
|
||||||
|
"archive_unstable_storageDiff_stopStorageDiff",
|
||||||
"author_hasKey",
|
"author_hasKey",
|
||||||
"author_hasSessionKeys",
|
"author_hasSessionKeys",
|
||||||
"author_insertKey",
|
"author_insertKey",
|
||||||
|
|||||||
@@ -86,5 +86,6 @@ export default {
|
|||||||
]
|
]
|
||||||
],
|
],
|
||||||
"transactionVersion": 15,
|
"transactionVersion": 15,
|
||||||
|
"systemVersion": 0,
|
||||||
"stateVersion": 0
|
"stateVersion": 0
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -14,7 +14,10 @@ export default {
|
|||||||
"archive_unstable_genesisHash",
|
"archive_unstable_genesisHash",
|
||||||
"archive_unstable_hashByHeight",
|
"archive_unstable_hashByHeight",
|
||||||
"archive_unstable_header",
|
"archive_unstable_header",
|
||||||
|
"archive_unstable_stopStorage",
|
||||||
"archive_unstable_storage",
|
"archive_unstable_storage",
|
||||||
|
"archive_unstable_storageDiff",
|
||||||
|
"archive_unstable_storageDiff_stopStorageDiff",
|
||||||
"author_hasKey",
|
"author_hasKey",
|
||||||
"author_hasSessionKeys",
|
"author_hasSessionKeys",
|
||||||
"author_insertKey",
|
"author_insertKey",
|
||||||
|
|||||||
@@ -86,5 +86,6 @@ export default {
|
|||||||
]
|
]
|
||||||
],
|
],
|
||||||
"transactionVersion": 15,
|
"transactionVersion": 15,
|
||||||
|
"systemVersion": 0,
|
||||||
"stateVersion": 0
|
"stateVersion": 0
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -14,7 +14,10 @@ export default {
|
|||||||
"archive_unstable_genesisHash",
|
"archive_unstable_genesisHash",
|
||||||
"archive_unstable_hashByHeight",
|
"archive_unstable_hashByHeight",
|
||||||
"archive_unstable_header",
|
"archive_unstable_header",
|
||||||
|
"archive_unstable_stopStorage",
|
||||||
"archive_unstable_storage",
|
"archive_unstable_storage",
|
||||||
|
"archive_unstable_storageDiff",
|
||||||
|
"archive_unstable_storageDiff_stopStorageDiff",
|
||||||
"author_hasKey",
|
"author_hasKey",
|
||||||
"author_hasSessionKeys",
|
"author_hasSessionKeys",
|
||||||
"author_insertKey",
|
"author_insertKey",
|
||||||
|
|||||||
@@ -106,5 +106,6 @@ export default {
|
|||||||
]
|
]
|
||||||
],
|
],
|
||||||
"transactionVersion": 26,
|
"transactionVersion": 26,
|
||||||
|
"systemVersion": 1,
|
||||||
"stateVersion": 1
|
"stateVersion": 1
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -14,7 +14,10 @@ export default {
|
|||||||
"archive_unstable_genesisHash",
|
"archive_unstable_genesisHash",
|
||||||
"archive_unstable_hashByHeight",
|
"archive_unstable_hashByHeight",
|
||||||
"archive_unstable_header",
|
"archive_unstable_header",
|
||||||
|
"archive_unstable_stopStorage",
|
||||||
"archive_unstable_storage",
|
"archive_unstable_storage",
|
||||||
|
"archive_unstable_storageDiff",
|
||||||
|
"archive_unstable_storageDiff_stopStorageDiff",
|
||||||
"author_hasKey",
|
"author_hasKey",
|
||||||
"author_hasSessionKeys",
|
"author_hasSessionKeys",
|
||||||
"author_insertKey",
|
"author_insertKey",
|
||||||
|
|||||||
@@ -106,5 +106,6 @@ export default {
|
|||||||
]
|
]
|
||||||
],
|
],
|
||||||
"transactionVersion": 26,
|
"transactionVersion": 26,
|
||||||
|
"systemVersion": 1,
|
||||||
"stateVersion": 1
|
"stateVersion": 1
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -68,6 +68,7 @@ export default {
|
|||||||
"mmr_root",
|
"mmr_root",
|
||||||
"mmr_verifyProof",
|
"mmr_verifyProof",
|
||||||
"mmr_verifyProofStateless",
|
"mmr_verifyProofStateless",
|
||||||
|
"offchain_localStorageClear",
|
||||||
"offchain_localStorageGet",
|
"offchain_localStorageGet",
|
||||||
"offchain_localStorageSet",
|
"offchain_localStorageSet",
|
||||||
"payment_queryFeeDetails",
|
"payment_queryFeeDetails",
|
||||||
|
|||||||
@@ -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: '15.2.1' };
|
export const packageInfo = { name: '@polkadot/types-support', path: 'auto', type: 'auto', version: '15.5.1' };
|
||||||
|
|||||||
@@ -18,13 +18,13 @@
|
|||||||
"./packageDetect.cjs"
|
"./packageDetect.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "15.2.1",
|
"version": "15.5.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@polkadot/keyring": "^13.3.1",
|
"@polkadot/keyring": "^13.3.1",
|
||||||
"@polkadot/types-augment": "15.2.1",
|
"@polkadot/types-augment": "15.5.1",
|
||||||
"@polkadot/types-codec": "15.2.1",
|
"@polkadot/types-codec": "15.5.1",
|
||||||
"@polkadot/types-create": "15.2.1",
|
"@polkadot/types-create": "15.5.1",
|
||||||
"@polkadot/util": "^13.3.1",
|
"@polkadot/util": "^13.3.1",
|
||||||
"@polkadot/util-crypto": "^13.3.1",
|
"@polkadot/util-crypto": "^13.3.1",
|
||||||
"rxjs": "^7.8.1",
|
"rxjs": "^7.8.1",
|
||||||
@@ -32,6 +32,6 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/keyring": "^13.3.1",
|
"@polkadot/keyring": "^13.3.1",
|
||||||
"@polkadot/types-support": "15.2.1"
|
"@polkadot/types-support": "15.5.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -84,6 +84,8 @@ class BaseAccountId extends U8aFixed {
|
|||||||
* A wrapper around an AccountId/PublicKey representation. Since we are dealing with
|
* A wrapper around an AccountId/PublicKey representation. Since we are dealing with
|
||||||
* underlying PublicKeys (32 bytes in length), we extend from U8aFixed which is
|
* underlying PublicKeys (32 bytes in length), we extend from U8aFixed which is
|
||||||
* just a Uint8Array wrapper with a fixed length.
|
* just a Uint8Array wrapper with a fixed length.
|
||||||
|
* If constructed with an empty value ([], "", undefined) it will result in
|
||||||
|
* the zero account 0x000...000.
|
||||||
*/
|
*/
|
||||||
export class GenericAccountId extends BaseAccountId {
|
export class GenericAccountId extends BaseAccountId {
|
||||||
constructor (registry: Registry, value?: AnyU8a) {
|
constructor (registry: Registry, value?: AnyU8a) {
|
||||||
|
|||||||
@@ -4,6 +4,21 @@
|
|||||||
import type { DefinitionsRpc } from '../../types/index.js';
|
import type { DefinitionsRpc } from '../../types/index.js';
|
||||||
|
|
||||||
export const rpc: DefinitionsRpc = {
|
export const rpc: DefinitionsRpc = {
|
||||||
|
localStorageClear: {
|
||||||
|
description: 'Clear offchain local storage under given key and prefix',
|
||||||
|
isUnsafe: true,
|
||||||
|
params: [
|
||||||
|
{
|
||||||
|
name: 'kind',
|
||||||
|
type: 'StorageKind'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'key',
|
||||||
|
type: 'Bytes'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
type: 'Null'
|
||||||
|
},
|
||||||
localStorageGet: {
|
localStorageGet: {
|
||||||
description: 'Get offchain local storage under given key and prefix',
|
description: 'Get offchain local storage under given key and prefix',
|
||||||
isUnsafe: true,
|
isUnsafe: true,
|
||||||
|
|||||||
@@ -102,6 +102,11 @@ const phragmen = {
|
|||||||
electedStashes: 'Vec<AccountId>',
|
electedStashes: 'Vec<AccountId>',
|
||||||
exposures: 'Vec<(AccountId, Exposure)>'
|
exposures: 'Vec<(AccountId, Exposure)>'
|
||||||
},
|
},
|
||||||
|
ElectionResultToSpec10: {
|
||||||
|
electedStashes: 'Vec<AccountId>',
|
||||||
|
exposures: 'Vec<(AccountId, Exposure<AccountId, Balance>)>',
|
||||||
|
compute: 'ElectionCompute'
|
||||||
|
},
|
||||||
ElectionScore: '[u128; 3]',
|
ElectionScore: '[u128; 3]',
|
||||||
ElectionSize: {
|
ElectionSize: {
|
||||||
validators: 'Compact<ValidatorIndex>',
|
validators: 'Compact<ValidatorIndex>',
|
||||||
|
|||||||
@@ -117,6 +117,13 @@ export interface ElectionResult extends Struct {
|
|||||||
readonly exposures: Vec<ITuple<[AccountId, Exposure]>>;
|
readonly exposures: Vec<ITuple<[AccountId, Exposure]>>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @name ElectionResultToSpec10 */
|
||||||
|
export interface ElectionResultToSpec10 extends Struct {
|
||||||
|
readonly electedStashes: Vec<AccountId>;
|
||||||
|
readonly exposures: Vec<ITuple<[AccountId, Exposure]>>;
|
||||||
|
readonly compute: ElectionCompute;
|
||||||
|
}
|
||||||
|
|
||||||
/** @name ElectionScore */
|
/** @name ElectionScore */
|
||||||
export interface ElectionScore extends Vec<u128> {}
|
export interface ElectionScore extends Vec<u128> {}
|
||||||
|
|
||||||
|
|||||||
@@ -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: '15.2.1' };
|
export const packageInfo = { name: '@polkadot/types', path: 'auto', type: 'auto', version: '15.5.1' };
|
||||||
|
|||||||
+1
-2
@@ -2,8 +2,7 @@
|
|||||||
"extends": "@polkadot/dev/config/tsconfig.json",
|
"extends": "@polkadot/dev/config/tsconfig.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"composite": true,
|
"composite": true,
|
||||||
// Rel: https://github.com/polkadot-js/api/issues/5977
|
"noUnusedLocals": true,
|
||||||
"noUnusedLocals": false,
|
|
||||||
"paths": {
|
"paths": {
|
||||||
"@polkadot/api": ["api/src/index.ts"],
|
"@polkadot/api": ["api/src/index.ts"],
|
||||||
"@polkadot/api/base": ["api/src/base/index.ts"],
|
"@polkadot/api/base": ["api/src/base/index.ts"],
|
||||||
|
|||||||
+1
-2
@@ -1,8 +1,7 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"composite": true,
|
"composite": true,
|
||||||
// Rel: https://github.com/polkadot-js/api/issues/5977
|
"noUnusedLocals": true
|
||||||
"noUnusedLocals": false
|
|
||||||
},
|
},
|
||||||
"files": [],
|
"files": [],
|
||||||
"references": [
|
"references": [
|
||||||
|
|||||||
@@ -3,8 +3,7 @@
|
|||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"baseUrl": "./packages",
|
"baseUrl": "./packages",
|
||||||
"composite": false,
|
"composite": false,
|
||||||
// Rel: https://github.com/polkadot-js/api/issues/5977
|
"noUnusedLocals": true
|
||||||
"noUnusedLocals": false
|
|
||||||
},
|
},
|
||||||
"include": [
|
"include": [
|
||||||
"packages/**/src/**/*",
|
"packages/**/src/**/*",
|
||||||
|
|||||||
+1
-2
@@ -4,8 +4,7 @@
|
|||||||
"baseUrl": "./packages",
|
"baseUrl": "./packages",
|
||||||
"composite": false,
|
"composite": false,
|
||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
// Rel: https://github.com/polkadot-js/api/issues/5977
|
"noUnusedLocals": true
|
||||||
"noUnusedLocals": false
|
|
||||||
},
|
},
|
||||||
"include": [
|
"include": [
|
||||||
"packages/**/src/**/*",
|
"packages/**/src/**/*",
|
||||||
|
|||||||
@@ -447,26 +447,26 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"@polkadot/api-augment@npm:15.2.1, @polkadot/api-augment@workspace:packages/api-augment":
|
"@polkadot/api-augment@npm:15.5.1, @polkadot/api-augment@workspace:packages/api-augment":
|
||||||
version: 0.0.0-use.local
|
version: 0.0.0-use.local
|
||||||
resolution: "@polkadot/api-augment@workspace:packages/api-augment"
|
resolution: "@polkadot/api-augment@workspace:packages/api-augment"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@polkadot/api-base": "npm:15.2.1"
|
"@polkadot/api-base": "npm:15.5.1"
|
||||||
"@polkadot/rpc-augment": "npm:15.2.1"
|
"@polkadot/rpc-augment": "npm:15.5.1"
|
||||||
"@polkadot/types": "npm:15.2.1"
|
"@polkadot/types": "npm:15.5.1"
|
||||||
"@polkadot/types-augment": "npm:15.2.1"
|
"@polkadot/types-augment": "npm:15.5.1"
|
||||||
"@polkadot/types-codec": "npm:15.2.1"
|
"@polkadot/types-codec": "npm:15.5.1"
|
||||||
"@polkadot/util": "npm:^13.3.1"
|
"@polkadot/util": "npm:^13.3.1"
|
||||||
tslib: "npm:^2.8.1"
|
tslib: "npm:^2.8.1"
|
||||||
languageName: unknown
|
languageName: unknown
|
||||||
linkType: soft
|
linkType: soft
|
||||||
|
|
||||||
"@polkadot/api-base@npm:15.2.1, @polkadot/api-base@workspace:packages/api-base":
|
"@polkadot/api-base@npm:15.5.1, @polkadot/api-base@workspace:packages/api-base":
|
||||||
version: 0.0.0-use.local
|
version: 0.0.0-use.local
|
||||||
resolution: "@polkadot/api-base@workspace:packages/api-base"
|
resolution: "@polkadot/api-base@workspace:packages/api-base"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@polkadot/rpc-core": "npm:15.2.1"
|
"@polkadot/rpc-core": "npm:15.5.1"
|
||||||
"@polkadot/types": "npm:15.2.1"
|
"@polkadot/types": "npm:15.5.1"
|
||||||
"@polkadot/util": "npm:^13.3.1"
|
"@polkadot/util": "npm:^13.3.1"
|
||||||
rxjs: "npm:^7.8.1"
|
rxjs: "npm:^7.8.1"
|
||||||
tslib: "npm:^2.8.1"
|
tslib: "npm:^2.8.1"
|
||||||
@@ -477,13 +477,13 @@ __metadata:
|
|||||||
version: 0.0.0-use.local
|
version: 0.0.0-use.local
|
||||||
resolution: "@polkadot/api-contract@workspace:packages/api-contract"
|
resolution: "@polkadot/api-contract@workspace:packages/api-contract"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@polkadot/api": "npm:15.2.1"
|
"@polkadot/api": "npm:15.5.1"
|
||||||
"@polkadot/api-augment": "npm:15.2.1"
|
"@polkadot/api-augment": "npm:15.5.1"
|
||||||
"@polkadot/keyring": "npm:^13.3.1"
|
"@polkadot/keyring": "npm:^13.3.1"
|
||||||
"@polkadot/types": "npm:15.2.1"
|
"@polkadot/types": "npm:15.5.1"
|
||||||
"@polkadot/types-codec": "npm:15.2.1"
|
"@polkadot/types-codec": "npm:15.5.1"
|
||||||
"@polkadot/types-create": "npm:15.2.1"
|
"@polkadot/types-create": "npm:15.5.1"
|
||||||
"@polkadot/types-support": "npm:15.2.1"
|
"@polkadot/types-support": "npm:15.5.1"
|
||||||
"@polkadot/util": "npm:^13.3.1"
|
"@polkadot/util": "npm:^13.3.1"
|
||||||
"@polkadot/util-crypto": "npm:^13.3.1"
|
"@polkadot/util-crypto": "npm:^13.3.1"
|
||||||
rxjs: "npm:^7.8.1"
|
rxjs: "npm:^7.8.1"
|
||||||
@@ -491,19 +491,19 @@ __metadata:
|
|||||||
languageName: unknown
|
languageName: unknown
|
||||||
linkType: soft
|
linkType: soft
|
||||||
|
|
||||||
"@polkadot/api-derive@npm:15.2.1, @polkadot/api-derive@workspace:packages/api-derive":
|
"@polkadot/api-derive@npm:15.5.1, @polkadot/api-derive@workspace:packages/api-derive":
|
||||||
version: 0.0.0-use.local
|
version: 0.0.0-use.local
|
||||||
resolution: "@polkadot/api-derive@workspace:packages/api-derive"
|
resolution: "@polkadot/api-derive@workspace:packages/api-derive"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@polkadot/api": "npm:15.2.1"
|
"@polkadot/api": "npm:15.5.1"
|
||||||
"@polkadot/api-augment": "npm:15.2.1"
|
"@polkadot/api-augment": "npm:15.5.1"
|
||||||
"@polkadot/api-base": "npm:15.2.1"
|
"@polkadot/api-base": "npm:15.5.1"
|
||||||
"@polkadot/rpc-augment": "npm:15.2.1"
|
"@polkadot/rpc-augment": "npm:15.5.1"
|
||||||
"@polkadot/rpc-core": "npm:15.2.1"
|
"@polkadot/rpc-core": "npm:15.5.1"
|
||||||
"@polkadot/rpc-provider": "npm:15.2.1"
|
"@polkadot/rpc-provider": "npm:15.5.1"
|
||||||
"@polkadot/types": "npm:15.2.1"
|
"@polkadot/types": "npm:15.5.1"
|
||||||
"@polkadot/types-codec": "npm:15.2.1"
|
"@polkadot/types-codec": "npm:15.5.1"
|
||||||
"@polkadot/types-support": "npm:15.2.1"
|
"@polkadot/types-support": "npm:15.5.1"
|
||||||
"@polkadot/util": "npm:^13.3.1"
|
"@polkadot/util": "npm:^13.3.1"
|
||||||
"@polkadot/util-crypto": "npm:^13.3.1"
|
"@polkadot/util-crypto": "npm:^13.3.1"
|
||||||
rxjs: "npm:^7.8.1"
|
rxjs: "npm:^7.8.1"
|
||||||
@@ -511,23 +511,23 @@ __metadata:
|
|||||||
languageName: unknown
|
languageName: unknown
|
||||||
linkType: soft
|
linkType: soft
|
||||||
|
|
||||||
"@polkadot/api@npm:15.2.1, @polkadot/api@workspace:packages/api":
|
"@polkadot/api@npm:15.5.1, @polkadot/api@workspace:packages/api":
|
||||||
version: 0.0.0-use.local
|
version: 0.0.0-use.local
|
||||||
resolution: "@polkadot/api@workspace:packages/api"
|
resolution: "@polkadot/api@workspace:packages/api"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@polkadot/api-augment": "npm:15.2.1"
|
"@polkadot/api-augment": "npm:15.5.1"
|
||||||
"@polkadot/api-base": "npm:15.2.1"
|
"@polkadot/api-base": "npm:15.5.1"
|
||||||
"@polkadot/api-derive": "npm:15.2.1"
|
"@polkadot/api-derive": "npm:15.5.1"
|
||||||
"@polkadot/keyring": "npm:^13.3.1"
|
"@polkadot/keyring": "npm:^13.3.1"
|
||||||
"@polkadot/rpc-augment": "npm:15.2.1"
|
"@polkadot/rpc-augment": "npm:15.5.1"
|
||||||
"@polkadot/rpc-core": "npm:15.2.1"
|
"@polkadot/rpc-core": "npm:15.5.1"
|
||||||
"@polkadot/rpc-provider": "npm:15.2.1"
|
"@polkadot/rpc-provider": "npm:15.5.1"
|
||||||
"@polkadot/types": "npm:15.2.1"
|
"@polkadot/types": "npm:15.5.1"
|
||||||
"@polkadot/types-augment": "npm:15.2.1"
|
"@polkadot/types-augment": "npm:15.5.1"
|
||||||
"@polkadot/types-codec": "npm:15.2.1"
|
"@polkadot/types-codec": "npm:15.5.1"
|
||||||
"@polkadot/types-create": "npm:15.2.1"
|
"@polkadot/types-create": "npm:15.5.1"
|
||||||
"@polkadot/types-known": "npm:15.2.1"
|
"@polkadot/types-known": "npm:15.5.1"
|
||||||
"@polkadot/types-support": "npm:15.2.1"
|
"@polkadot/types-support": "npm:15.5.1"
|
||||||
"@polkadot/util": "npm:^13.3.1"
|
"@polkadot/util": "npm:^13.3.1"
|
||||||
"@polkadot/util-crypto": "npm:^13.3.1"
|
"@polkadot/util-crypto": "npm:^13.3.1"
|
||||||
eventemitter3: "npm:^5.0.1"
|
eventemitter3: "npm:^5.0.1"
|
||||||
@@ -536,34 +536,34 @@ __metadata:
|
|||||||
languageName: unknown
|
languageName: unknown
|
||||||
linkType: soft
|
linkType: soft
|
||||||
|
|
||||||
"@polkadot/dev-test@npm:^0.82.4":
|
"@polkadot/dev-test@npm:^0.83.2":
|
||||||
version: 0.82.4
|
version: 0.83.2
|
||||||
resolution: "@polkadot/dev-test@npm:0.82.4"
|
resolution: "@polkadot/dev-test@npm:0.83.2"
|
||||||
dependencies:
|
dependencies:
|
||||||
jsdom: "npm:^24.0.0"
|
jsdom: "npm:^24.0.0"
|
||||||
tslib: "npm:^2.7.0"
|
tslib: "npm:^2.7.0"
|
||||||
checksum: 10/2db7c46be1869541d6a9f4689cfd29fedfea7c6563ae88f5356176815129d56bd55aa87f4c525b123733308dd3101712cc42a9925ad1e3fb7de7e418c19a0c51
|
checksum: 10/afe60165272a09d5c9f08e3aec0015621350dc7394ee8ff121d5803c576c7601b176b753716203abba4a81a142b529da066fe4c73f39387b018bdde69fef7a10
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"@polkadot/dev-ts@npm:^0.82.4":
|
"@polkadot/dev-ts@npm:^0.83.2":
|
||||||
version: 0.82.4
|
version: 0.83.2
|
||||||
resolution: "@polkadot/dev-ts@npm:0.82.4"
|
resolution: "@polkadot/dev-ts@npm:0.83.2"
|
||||||
dependencies:
|
dependencies:
|
||||||
json5: "npm:^2.2.3"
|
json5: "npm:^2.2.3"
|
||||||
tslib: "npm:^2.7.0"
|
tslib: "npm:^2.7.0"
|
||||||
typescript: "npm:^5.5.4"
|
typescript: "npm:^5.5.4"
|
||||||
checksum: 10/8599b022df6c30c2be843eb772ee91147814e839f2d9ce0c3fef8091b418a4bdb465da4510901e8703ba0afa56e95f3f3eeda9bb35f1f68d6b8e65a9fd8bbe78
|
checksum: 10/abca4df87a0682285bf5e5644ab8522820d53e0dffc124bfe540b7fccc55532057d1912629584bb04648e855e110896b36e55536d53556a166fc3d33bcc27b39
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"@polkadot/dev@npm:^0.82.4":
|
"@polkadot/dev@npm:^0.83.2":
|
||||||
version: 0.82.4
|
version: 0.83.2
|
||||||
resolution: "@polkadot/dev@npm:0.82.4"
|
resolution: "@polkadot/dev@npm:0.83.2"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@eslint/js": "npm:^8.56.0"
|
"@eslint/js": "npm:^8.56.0"
|
||||||
"@polkadot/dev-test": "npm:^0.82.4"
|
"@polkadot/dev-test": "npm:^0.83.2"
|
||||||
"@polkadot/dev-ts": "npm:^0.82.4"
|
"@polkadot/dev-ts": "npm:^0.83.2"
|
||||||
"@rollup/plugin-alias": "npm:^5.1.1"
|
"@rollup/plugin-alias": "npm:^5.1.1"
|
||||||
"@rollup/plugin-commonjs": "npm:^25.0.8"
|
"@rollup/plugin-commonjs": "npm:^25.0.8"
|
||||||
"@rollup/plugin-dynamic-import-vars": "npm:^2.1.5"
|
"@rollup/plugin-dynamic-import-vars": "npm:^2.1.5"
|
||||||
@@ -628,7 +628,7 @@ __metadata:
|
|||||||
polkadot-exec-rollup: scripts/polkadot-exec-rollup.mjs
|
polkadot-exec-rollup: scripts/polkadot-exec-rollup.mjs
|
||||||
polkadot-exec-tsc: scripts/polkadot-exec-tsc.mjs
|
polkadot-exec-tsc: scripts/polkadot-exec-tsc.mjs
|
||||||
polkadot-exec-webpack: scripts/polkadot-exec-webpack.mjs
|
polkadot-exec-webpack: scripts/polkadot-exec-webpack.mjs
|
||||||
checksum: 10/16a896fcada4987d0b7661dc81675ad728063d435925b41f92124c144bdb23c81280257c451dce302146829d8f732910e91e49b2f9bb84518636f544760a6bec
|
checksum: 10/42a67e0f2401fc13bdffff86398958e326613461eaa294fb5b435037d636b94cbbbce81b1fadbdf3c0553798d3bc5df43ef6af2250f75e312f01e52b665eddfe
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
@@ -657,39 +657,39 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"@polkadot/rpc-augment@npm:15.2.1, @polkadot/rpc-augment@workspace:packages/rpc-augment":
|
"@polkadot/rpc-augment@npm:15.5.1, @polkadot/rpc-augment@workspace:packages/rpc-augment":
|
||||||
version: 0.0.0-use.local
|
version: 0.0.0-use.local
|
||||||
resolution: "@polkadot/rpc-augment@workspace:packages/rpc-augment"
|
resolution: "@polkadot/rpc-augment@workspace:packages/rpc-augment"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@polkadot/rpc-core": "npm:15.2.1"
|
"@polkadot/rpc-core": "npm:15.5.1"
|
||||||
"@polkadot/types": "npm:15.2.1"
|
"@polkadot/types": "npm:15.5.1"
|
||||||
"@polkadot/types-codec": "npm:15.2.1"
|
"@polkadot/types-codec": "npm:15.5.1"
|
||||||
"@polkadot/util": "npm:^13.3.1"
|
"@polkadot/util": "npm:^13.3.1"
|
||||||
tslib: "npm:^2.8.1"
|
tslib: "npm:^2.8.1"
|
||||||
languageName: unknown
|
languageName: unknown
|
||||||
linkType: soft
|
linkType: soft
|
||||||
|
|
||||||
"@polkadot/rpc-core@npm:15.2.1, @polkadot/rpc-core@workspace:packages/rpc-core":
|
"@polkadot/rpc-core@npm:15.5.1, @polkadot/rpc-core@workspace:packages/rpc-core":
|
||||||
version: 0.0.0-use.local
|
version: 0.0.0-use.local
|
||||||
resolution: "@polkadot/rpc-core@workspace:packages/rpc-core"
|
resolution: "@polkadot/rpc-core@workspace:packages/rpc-core"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@polkadot/keyring": "npm:^13.3.1"
|
"@polkadot/keyring": "npm:^13.3.1"
|
||||||
"@polkadot/rpc-augment": "npm:15.2.1"
|
"@polkadot/rpc-augment": "npm:15.5.1"
|
||||||
"@polkadot/rpc-provider": "npm:15.2.1"
|
"@polkadot/rpc-provider": "npm:15.5.1"
|
||||||
"@polkadot/types": "npm:15.2.1"
|
"@polkadot/types": "npm:15.5.1"
|
||||||
"@polkadot/util": "npm:^13.3.1"
|
"@polkadot/util": "npm:^13.3.1"
|
||||||
rxjs: "npm:^7.8.1"
|
rxjs: "npm:^7.8.1"
|
||||||
tslib: "npm:^2.8.1"
|
tslib: "npm:^2.8.1"
|
||||||
languageName: unknown
|
languageName: unknown
|
||||||
linkType: soft
|
linkType: soft
|
||||||
|
|
||||||
"@polkadot/rpc-provider@npm:15.2.1, @polkadot/rpc-provider@workspace:packages/rpc-provider":
|
"@polkadot/rpc-provider@npm:15.5.1, @polkadot/rpc-provider@workspace:packages/rpc-provider":
|
||||||
version: 0.0.0-use.local
|
version: 0.0.0-use.local
|
||||||
resolution: "@polkadot/rpc-provider@workspace:packages/rpc-provider"
|
resolution: "@polkadot/rpc-provider@workspace:packages/rpc-provider"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@polkadot/keyring": "npm:^13.3.1"
|
"@polkadot/keyring": "npm:^13.3.1"
|
||||||
"@polkadot/types": "npm:15.2.1"
|
"@polkadot/types": "npm:15.5.1"
|
||||||
"@polkadot/types-support": "npm:15.2.1"
|
"@polkadot/types-support": "npm:15.5.1"
|
||||||
"@polkadot/util": "npm:^13.3.1"
|
"@polkadot/util": "npm:^13.3.1"
|
||||||
"@polkadot/util-crypto": "npm:^13.3.1"
|
"@polkadot/util-crypto": "npm:^13.3.1"
|
||||||
"@polkadot/x-fetch": "npm:^13.3.1"
|
"@polkadot/x-fetch": "npm:^13.3.1"
|
||||||
@@ -710,15 +710,15 @@ __metadata:
|
|||||||
version: 0.0.0-use.local
|
version: 0.0.0-use.local
|
||||||
resolution: "@polkadot/typegen@workspace:packages/typegen"
|
resolution: "@polkadot/typegen@workspace:packages/typegen"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@polkadot/api": "npm:15.2.1"
|
"@polkadot/api": "npm:15.5.1"
|
||||||
"@polkadot/api-augment": "npm:15.2.1"
|
"@polkadot/api-augment": "npm:15.5.1"
|
||||||
"@polkadot/rpc-augment": "npm:15.2.1"
|
"@polkadot/rpc-augment": "npm:15.5.1"
|
||||||
"@polkadot/rpc-provider": "npm:15.2.1"
|
"@polkadot/rpc-provider": "npm:15.5.1"
|
||||||
"@polkadot/types": "npm:15.2.1"
|
"@polkadot/types": "npm:15.5.1"
|
||||||
"@polkadot/types-augment": "npm:15.2.1"
|
"@polkadot/types-augment": "npm:15.5.1"
|
||||||
"@polkadot/types-codec": "npm:15.2.1"
|
"@polkadot/types-codec": "npm:15.5.1"
|
||||||
"@polkadot/types-create": "npm:15.2.1"
|
"@polkadot/types-create": "npm:15.5.1"
|
||||||
"@polkadot/types-support": "npm:15.2.1"
|
"@polkadot/types-support": "npm:15.5.1"
|
||||||
"@polkadot/util": "npm:^13.3.1"
|
"@polkadot/util": "npm:^13.3.1"
|
||||||
"@polkadot/util-crypto": "npm:^13.3.1"
|
"@polkadot/util-crypto": "npm:^13.3.1"
|
||||||
"@polkadot/x-ws": "npm:^13.3.1"
|
"@polkadot/x-ws": "npm:^13.3.1"
|
||||||
@@ -735,24 +735,24 @@ __metadata:
|
|||||||
languageName: unknown
|
languageName: unknown
|
||||||
linkType: soft
|
linkType: soft
|
||||||
|
|
||||||
"@polkadot/types-augment@npm:15.2.1, @polkadot/types-augment@workspace:packages/types-augment":
|
"@polkadot/types-augment@npm:15.5.1, @polkadot/types-augment@workspace:packages/types-augment":
|
||||||
version: 0.0.0-use.local
|
version: 0.0.0-use.local
|
||||||
resolution: "@polkadot/types-augment@workspace:packages/types-augment"
|
resolution: "@polkadot/types-augment@workspace:packages/types-augment"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@polkadot/types": "npm:15.2.1"
|
"@polkadot/types": "npm:15.5.1"
|
||||||
"@polkadot/types-codec": "npm:15.2.1"
|
"@polkadot/types-codec": "npm:15.5.1"
|
||||||
"@polkadot/util": "npm:^13.3.1"
|
"@polkadot/util": "npm:^13.3.1"
|
||||||
tslib: "npm:^2.8.1"
|
tslib: "npm:^2.8.1"
|
||||||
languageName: unknown
|
languageName: unknown
|
||||||
linkType: soft
|
linkType: soft
|
||||||
|
|
||||||
"@polkadot/types-codec@npm:15.2.1, @polkadot/types-codec@workspace:packages/types-codec":
|
"@polkadot/types-codec@npm:15.5.1, @polkadot/types-codec@workspace:packages/types-codec":
|
||||||
version: 0.0.0-use.local
|
version: 0.0.0-use.local
|
||||||
resolution: "@polkadot/types-codec@workspace:packages/types-codec"
|
resolution: "@polkadot/types-codec@workspace:packages/types-codec"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@polkadot/types": "npm:15.2.1"
|
"@polkadot/types": "npm:15.5.1"
|
||||||
"@polkadot/types-augment": "npm:15.2.1"
|
"@polkadot/types-augment": "npm:15.5.1"
|
||||||
"@polkadot/types-support": "npm:15.2.1"
|
"@polkadot/types-support": "npm:15.5.1"
|
||||||
"@polkadot/util": "npm:^13.3.1"
|
"@polkadot/util": "npm:^13.3.1"
|
||||||
"@polkadot/util-crypto": "npm:^13.3.1"
|
"@polkadot/util-crypto": "npm:^13.3.1"
|
||||||
"@polkadot/x-bigint": "npm:^13.3.1"
|
"@polkadot/x-bigint": "npm:^13.3.1"
|
||||||
@@ -760,32 +760,32 @@ __metadata:
|
|||||||
languageName: unknown
|
languageName: unknown
|
||||||
linkType: soft
|
linkType: soft
|
||||||
|
|
||||||
"@polkadot/types-create@npm:15.2.1, @polkadot/types-create@workspace:packages/types-create":
|
"@polkadot/types-create@npm:15.5.1, @polkadot/types-create@workspace:packages/types-create":
|
||||||
version: 0.0.0-use.local
|
version: 0.0.0-use.local
|
||||||
resolution: "@polkadot/types-create@workspace:packages/types-create"
|
resolution: "@polkadot/types-create@workspace:packages/types-create"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@polkadot/types": "npm:15.2.1"
|
"@polkadot/types": "npm:15.5.1"
|
||||||
"@polkadot/types-codec": "npm:15.2.1"
|
"@polkadot/types-codec": "npm:15.5.1"
|
||||||
"@polkadot/util": "npm:^13.3.1"
|
"@polkadot/util": "npm:^13.3.1"
|
||||||
tslib: "npm:^2.8.1"
|
tslib: "npm:^2.8.1"
|
||||||
languageName: unknown
|
languageName: unknown
|
||||||
linkType: soft
|
linkType: soft
|
||||||
|
|
||||||
"@polkadot/types-known@npm:15.2.1, @polkadot/types-known@workspace:packages/types-known":
|
"@polkadot/types-known@npm:15.5.1, @polkadot/types-known@workspace:packages/types-known":
|
||||||
version: 0.0.0-use.local
|
version: 0.0.0-use.local
|
||||||
resolution: "@polkadot/types-known@workspace:packages/types-known"
|
resolution: "@polkadot/types-known@workspace:packages/types-known"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@polkadot/api": "npm:15.2.1"
|
"@polkadot/api": "npm:15.5.1"
|
||||||
"@polkadot/networks": "npm:^13.3.1"
|
"@polkadot/networks": "npm:^13.3.1"
|
||||||
"@polkadot/types": "npm:15.2.1"
|
"@polkadot/types": "npm:15.5.1"
|
||||||
"@polkadot/types-codec": "npm:15.2.1"
|
"@polkadot/types-codec": "npm:15.5.1"
|
||||||
"@polkadot/types-create": "npm:15.2.1"
|
"@polkadot/types-create": "npm:15.5.1"
|
||||||
"@polkadot/util": "npm:^13.3.1"
|
"@polkadot/util": "npm:^13.3.1"
|
||||||
tslib: "npm:^2.8.1"
|
tslib: "npm:^2.8.1"
|
||||||
languageName: unknown
|
languageName: unknown
|
||||||
linkType: soft
|
linkType: soft
|
||||||
|
|
||||||
"@polkadot/types-support@npm:15.2.1, @polkadot/types-support@workspace:packages/types-support":
|
"@polkadot/types-support@npm:15.5.1, @polkadot/types-support@workspace:packages/types-support":
|
||||||
version: 0.0.0-use.local
|
version: 0.0.0-use.local
|
||||||
resolution: "@polkadot/types-support@workspace:packages/types-support"
|
resolution: "@polkadot/types-support@workspace:packages/types-support"
|
||||||
dependencies:
|
dependencies:
|
||||||
@@ -794,15 +794,15 @@ __metadata:
|
|||||||
languageName: unknown
|
languageName: unknown
|
||||||
linkType: soft
|
linkType: soft
|
||||||
|
|
||||||
"@polkadot/types@npm:15.2.1, @polkadot/types@workspace:packages/types":
|
"@polkadot/types@npm:15.5.1, @polkadot/types@workspace:packages/types":
|
||||||
version: 0.0.0-use.local
|
version: 0.0.0-use.local
|
||||||
resolution: "@polkadot/types@workspace:packages/types"
|
resolution: "@polkadot/types@workspace:packages/types"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@polkadot/keyring": "npm:^13.3.1"
|
"@polkadot/keyring": "npm:^13.3.1"
|
||||||
"@polkadot/types-augment": "npm:15.2.1"
|
"@polkadot/types-augment": "npm:15.5.1"
|
||||||
"@polkadot/types-codec": "npm:15.2.1"
|
"@polkadot/types-codec": "npm:15.5.1"
|
||||||
"@polkadot/types-create": "npm:15.2.1"
|
"@polkadot/types-create": "npm:15.5.1"
|
||||||
"@polkadot/types-support": "npm:15.2.1"
|
"@polkadot/types-support": "npm:15.5.1"
|
||||||
"@polkadot/util": "npm:^13.3.1"
|
"@polkadot/util": "npm:^13.3.1"
|
||||||
"@polkadot/util-crypto": "npm:^13.3.1"
|
"@polkadot/util-crypto": "npm:^13.3.1"
|
||||||
rxjs: "npm:^7.8.1"
|
rxjs: "npm:^7.8.1"
|
||||||
@@ -7942,7 +7942,7 @@ __metadata:
|
|||||||
version: 0.0.0-use.local
|
version: 0.0.0-use.local
|
||||||
resolution: "root-workspace-0b6124@workspace:."
|
resolution: "root-workspace-0b6124@workspace:."
|
||||||
dependencies:
|
dependencies:
|
||||||
"@polkadot/dev": "npm:^0.82.4"
|
"@polkadot/dev": "npm:^0.83.2"
|
||||||
"@polkadot/typegen": "workspace:packages/typegen"
|
"@polkadot/typegen": "workspace:packages/typegen"
|
||||||
"@types/node": "npm:^22.10.5"
|
"@types/node": "npm:^22.10.5"
|
||||||
languageName: unknown
|
languageName: unknown
|
||||||
|
|||||||
Reference in New Issue
Block a user