Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3d8ba0f1bf | ||
|
|
b39efbeaf2 | ||
|
|
b305caee6e | ||
|
|
143a149628 | ||
|
|
8f80c0391d | ||
|
|
1364cb8264 | ||
|
|
0e12ebad1d | ||
|
|
8dc0f0486d | ||
|
|
6159270465 | ||
|
|
40b3c54916 | ||
|
|
85e7e3c11c | ||
|
|
3ad01d27b2 | ||
|
|
05b0ff2aba | ||
|
|
84c9da8374 | ||
|
|
6222672faa | ||
|
|
96f2f83cd5 | ||
|
|
f444d9ed75 | ||
|
|
d93a127d88 | ||
|
|
3a9a35a392 | ||
|
|
5c655ca029 | ||
|
|
1808cb0a9d | ||
|
|
54e94ec6bc | ||
|
|
22db4f1c3d | ||
|
|
e514a59e63 | ||
|
|
3318a7566f | ||
|
|
fd568c0341 | ||
|
|
2edcef6ff5 | ||
|
|
264cc9365e | ||
|
|
6e23a27ce1 | ||
|
|
38d39a4d13 | ||
|
|
6954ec794c | ||
|
|
3ee6eb5a13 | ||
|
|
9d1c848f28 | ||
|
|
1d3258f537 | ||
|
|
e8d7013172 | ||
|
|
55ccdd2fbc | ||
|
|
0449dd7b51 | ||
|
|
4d44c1187b | ||
|
|
f2eff6628b | ||
|
|
4923bc3e35 | ||
|
|
47da005bee | ||
|
|
7e82ab3d43 | ||
|
|
8df9642e04 | ||
|
|
6f76e1c4cc |
+2
-1
@@ -51,4 +51,5 @@
|
|||||||
|
|
||||||
7.14.2
|
7.14.2
|
||||||
7.14.3
|
7.14.3
|
||||||
8.0.2
|
8.0.2
|
||||||
|
8.3.2
|
||||||
@@ -1,5 +1,31 @@
|
|||||||
# CHANGELOG
|
# CHANGELOG
|
||||||
|
|
||||||
|
## 8.4.1 May 14, 2022
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Added support for typegen over `Range/RangeInclusive` types
|
||||||
|
- Add explicit support for `Call` typegen (inclusive of non-defaults)
|
||||||
|
- Deupe `wss://` handling in `polkadot-types-from-{chain, defs}`
|
||||||
|
- Allow for optional `definitions.ts` in typegen (only use chain)
|
||||||
|
- Optimize `Compact<*>` decoding in Uint8Array streams
|
||||||
|
- Use `I*` interfaces for extrinsic payload getters
|
||||||
|
- Re-add support for historic linked-map queries
|
||||||
|
- Update to latest Substrate, Kusama & Polkadot static metadata
|
||||||
|
- Add latest upgrade blocks for Polkadot, Kusama & Westend
|
||||||
|
|
||||||
|
|
||||||
|
## 8.3.2 May 8, 2022
|
||||||
|
|
||||||
|
Contributed:
|
||||||
|
|
||||||
|
- Bump `@substrate/connect` to 0.7.4 (Thanks to https://github.com/wirednkod)
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Adjust `BTreeSet` in typegen top-level generation
|
||||||
|
|
||||||
|
|
||||||
## 8.3.1 May 1, 2022
|
## 8.3.1 May 1, 2022
|
||||||
|
|
||||||
Contributed:
|
Contributed:
|
||||||
|
|||||||
+2
-2
@@ -1,4 +1,4 @@
|
|||||||
2936 Jaco 8.3.1 (#4789)
|
2957 Jaco 8.4.1 (#4827)
|
||||||
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)
|
||||||
@@ -26,6 +26,7 @@
|
|||||||
3 Julien Eluard Fixed typos about module balances (#1402)
|
3 Julien Eluard Fixed typos about module balances (#1402)
|
||||||
3 KarishmaBothara Backward compatibility thing (#3511)
|
3 KarishmaBothara Backward compatibility thing (#3511)
|
||||||
3 Miguel Hervas Adding RT4 Types (#3007)
|
3 Miguel Hervas Adding RT4 Types (#3007)
|
||||||
|
3 Nikos Kontakis Bump @substrate/connect in rpc-provider to 0.7.4 (#4796)
|
||||||
3 Shawn Tabrizi Add `isReadyOrError` when connecting to API (#2577)
|
3 Shawn Tabrizi Add `isReadyOrError` when connecting to API (#2577)
|
||||||
3 YJ feat: Vote interface as U8a (#1061)
|
3 YJ feat: Vote interface as U8a (#1061)
|
||||||
2 Alexander Krupenkin Add [u8; 33] type width for U8aFixed type (#2391)
|
2 Alexander Krupenkin Add [u8; 33] type width for U8aFixed type (#2391)
|
||||||
@@ -36,7 +37,6 @@
|
|||||||
2 James Lefrère Add `.eq()` usage to docs and fix docs typos (#1405)
|
2 James Lefrère Add `.eq()` usage to docs and fix docs typos (#1405)
|
||||||
2 Keith Yeung Allow keyPrefix to accept an additional argument for double maps (#2230)
|
2 Keith Yeung Allow keyPrefix to accept an additional argument for double maps (#2230)
|
||||||
2 MOZGIII Follow-up fix after #4665 (#4666)
|
2 MOZGIII Follow-up fix after #4665 (#4666)
|
||||||
2 Nikos Kontakis Add auction in shared types (#4085)
|
|
||||||
2 Paweł Nguyen Fix a minor typo in cookbook blocks docs (#2294)
|
2 Paweł Nguyen Fix a minor typo in cookbook blocks docs (#2294)
|
||||||
2 sung wu Update tx.md (#2485)
|
2 sung wu Update tx.md (#2485)
|
||||||
2 Veliko Abi constructor takes different parameters (#3347)
|
2 Veliko Abi constructor takes different parameters (#3347)
|
||||||
|
|||||||
+3
-3
@@ -11,7 +11,7 @@
|
|||||||
},
|
},
|
||||||
"sideEffects": false,
|
"sideEffects": false,
|
||||||
"type": "commonjs",
|
"type": "commonjs",
|
||||||
"version": "8.3.1",
|
"version": "8.4.1",
|
||||||
"workspaces": [
|
"workspaces": [
|
||||||
"packages/*"
|
"packages/*"
|
||||||
],
|
],
|
||||||
@@ -34,9 +34,9 @@
|
|||||||
"@babel/core": "^7.17.10",
|
"@babel/core": "^7.17.10",
|
||||||
"@babel/register": "^7.17.7",
|
"@babel/register": "^7.17.7",
|
||||||
"@babel/runtime": "^7.17.9",
|
"@babel/runtime": "^7.17.9",
|
||||||
"@polkadot/dev": "^0.66.16",
|
"@polkadot/dev": "^0.66.22",
|
||||||
"@polkadot/typegen": "workspace:packages/typegen",
|
"@polkadot/typegen": "workspace:packages/typegen",
|
||||||
"@types/jest": "^27.4.1",
|
"@types/jest": "^27.5.1",
|
||||||
"copyfiles": "^2.4.1"
|
"copyfiles": "^2.4.1"
|
||||||
},
|
},
|
||||||
"resolutions": {
|
"resolutions": {
|
||||||
|
|||||||
@@ -20,18 +20,18 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "8.3.1",
|
"version": "8.4.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.17.9",
|
"@babel/runtime": "^7.17.9",
|
||||||
"@polkadot/api-base": "8.3.1",
|
"@polkadot/api-base": "8.4.1",
|
||||||
"@polkadot/rpc-augment": "8.3.1",
|
"@polkadot/rpc-augment": "8.4.1",
|
||||||
"@polkadot/types": "8.3.1",
|
"@polkadot/types": "8.4.1",
|
||||||
"@polkadot/types-augment": "8.3.1",
|
"@polkadot/types-augment": "8.4.1",
|
||||||
"@polkadot/types-codec": "8.3.1",
|
"@polkadot/types-codec": "8.4.1",
|
||||||
"@polkadot/util": "^9.1.1"
|
"@polkadot/util": "^9.2.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/types-support": "8.3.1"
|
"@polkadot/types-support": "8.4.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -93,17 +93,9 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
};
|
};
|
||||||
bagsList: {
|
bagsList: {
|
||||||
/**
|
/**
|
||||||
* Id not found in list.
|
* A error in the list interface implementation.
|
||||||
**/
|
**/
|
||||||
IdNotFound: AugmentedError<ApiType>;
|
List: AugmentedError<ApiType>;
|
||||||
/**
|
|
||||||
* An Id does not have a greater score than another Id.
|
|
||||||
**/
|
|
||||||
NotHeavier: AugmentedError<ApiType>;
|
|
||||||
/**
|
|
||||||
* Attempted to place node in front of a node in another bag.
|
|
||||||
**/
|
|
||||||
NotInSameBag: AugmentedError<ApiType>;
|
|
||||||
/**
|
/**
|
||||||
* Generic error
|
* Generic error
|
||||||
**/
|
**/
|
||||||
|
|||||||
@@ -1168,6 +1168,10 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* Batch of dispatches completed fully with no error.
|
* Batch of dispatches completed fully with no error.
|
||||||
**/
|
**/
|
||||||
BatchCompleted: AugmentedEvent<ApiType, []>;
|
BatchCompleted: AugmentedEvent<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* Batch of dispatches completed but has errors.
|
||||||
|
**/
|
||||||
|
BatchCompletedWithErrors: AugmentedEvent<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* Batch of dispatches did not complete fully. Index of first failing dispatch given, as
|
* Batch of dispatches did not complete fully. Index of first failing dispatch given, as
|
||||||
* well as the error.
|
* well as the error.
|
||||||
@@ -1181,6 +1185,10 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* A single item within a Batch of dispatches has completed with no error.
|
* A single item within a Batch of dispatches has completed with no error.
|
||||||
**/
|
**/
|
||||||
ItemCompleted: AugmentedEvent<ApiType, []>;
|
ItemCompleted: AugmentedEvent<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* A single item within a Batch of dispatches has completed with error.
|
||||||
|
**/
|
||||||
|
ItemFailed: AugmentedEvent<ApiType, [SpRuntimeDispatchError]>;
|
||||||
/**
|
/**
|
||||||
* Generic event
|
* Generic event
|
||||||
**/
|
**/
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import type { BTreeMap, Bytes, Null, Option, U8aFixed, Vec, WrapperKeepOpaque, W
|
|||||||
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
||||||
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
||||||
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KusamaRuntimeSessionKeys, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletGiltActiveGilt, PalletGiltActiveGiltsTotal, PalletGiltGiltBid, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletSchedulerScheduledV3, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2AssignmentAppPublic, PolkadotPrimitivesV2CandidateCommitments, PolkadotPrimitivesV2CoreOccupied, PolkadotPrimitivesV2DisputeState, PolkadotPrimitivesV2ScrapedOnChainVotes, PolkadotPrimitivesV2SessionInfo, PolkadotPrimitivesV2UpgradeGoAhead, PolkadotPrimitivesV2UpgradeRestriction, PolkadotPrimitivesV2ValidatorAppPublic, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
import type { FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KusamaRuntimeSessionKeys, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletGiltActiveGilt, PalletGiltActiveGiltsTotal, PalletGiltGiltBid, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletSchedulerScheduledV3, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2AssignmentAppPublic, PolkadotPrimitivesV2CandidateCommitments, PolkadotPrimitivesV2CoreOccupied, PolkadotPrimitivesV2DisputeState, PolkadotPrimitivesV2ScrapedOnChainVotes, PolkadotPrimitivesV2SessionInfo, PolkadotPrimitivesV2UpgradeGoAhead, PolkadotPrimitivesV2UpgradeRestriction, PolkadotPrimitivesV2ValidatorAppPublic, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
||||||
import type { Observable } from '@polkadot/types/types';
|
import type { Observable } from '@polkadot/types/types';
|
||||||
|
|
||||||
declare module '@polkadot/api-base/types/storage' {
|
declare module '@polkadot/api-base/types/storage' {
|
||||||
@@ -68,7 +68,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* This field should always be populated during block processing unless
|
* This field should always be populated during block processing unless
|
||||||
* secondary plain slots are enabled (which don't contain a VRF output).
|
* secondary plain slots are enabled (which don't contain a VRF output).
|
||||||
*
|
*
|
||||||
* It is set in `on_initialize`, before it will contain the value from the last block.
|
* It is set in `on_finalize`, before it will contain the value from the last block.
|
||||||
**/
|
**/
|
||||||
authorVrfRandomness: AugmentedQuery<ApiType, () => Observable<Option<U8aFixed>>, []> & QueryableStorageEntry<ApiType, []>;
|
authorVrfRandomness: AugmentedQuery<ApiType, () => Observable<Option<U8aFixed>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
@@ -101,7 +101,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* Temporary value (cleared at block finalization) which is `Some`
|
* Temporary value (cleared at block finalization) which is `Some`
|
||||||
* if per-block initialization has already been called for current block.
|
* if per-block initialization has already been called for current block.
|
||||||
**/
|
**/
|
||||||
initialized: AugmentedQuery<ApiType, () => Observable<Option<Option<U8aFixed>>>, []> & QueryableStorageEntry<ApiType, []>;
|
initialized: AugmentedQuery<ApiType, () => Observable<Option<Option<SpConsensusBabeDigestsPreDigest>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* How late the current block is compared to its parent.
|
* How late the current block is compared to its parent.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
import type { ApiTypes } from '@polkadot/api-base/types';
|
import type { ApiTypes } from '@polkadot/api-base/types';
|
||||||
import type { Data } from '@polkadot/types';
|
import type { Data } from '@polkadot/types';
|
||||||
import type { Bytes, Compact, Option, U8aFixed, Vec, WrapperKeepOpaque, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
import type { Bytes, Compact, Option, U8aFixed, Vec, WrapperKeepOpaque, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||||
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
||||||
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
||||||
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { FrameSupportScheduleMaybeHashed, KusamaRuntimeOriginCaller, KusamaRuntimeProxyType, KusamaRuntimeSessionKeys, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2InherentData, PolkadotPrimitivesV2PvfCheckStatement, PolkadotPrimitivesV2ValidatorAppSignature, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, XcmV1MultiLocation, XcmV2WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
|
import type { FrameSupportScheduleMaybeHashed, KusamaRuntimeOriginCaller, KusamaRuntimeProxyType, KusamaRuntimeSessionKeys, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2InherentData, PolkadotPrimitivesV2PvfCheckStatement, PolkadotPrimitivesV2ValidatorAppSignature, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, XcmV1MultiLocation, XcmV2WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
|
||||||
@@ -862,7 +862,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - 1 event
|
* - 1 event
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
execute: AugmentedSubmittable<(proposal: Call | { callIndex?: any; args?: any } | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, Compact<u32>]>;
|
execute: AugmentedSubmittable<(proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, Compact<u32>]>;
|
||||||
/**
|
/**
|
||||||
* Add a new proposal to either be voted on or executed directly.
|
* Add a new proposal to either be voted on or executed directly.
|
||||||
*
|
*
|
||||||
@@ -892,7 +892,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - 1 event
|
* - 1 event
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
propose: AugmentedSubmittable<(threshold: Compact<u32> | AnyNumber | Uint8Array, proposal: Call | { callIndex?: any; args?: any } | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Call, Compact<u32>]>;
|
propose: AugmentedSubmittable<(threshold: Compact<u32> | AnyNumber | Uint8Array, proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Call, Compact<u32>]>;
|
||||||
/**
|
/**
|
||||||
* Set the collective's membership.
|
* Set the collective's membership.
|
||||||
*
|
*
|
||||||
@@ -2102,7 +2102,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - Plus Call Weight
|
* - Plus Call Weight
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
asMultiThreshold1: AugmentedSubmittable<(otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], call: Call | { callIndex?: any; args?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Call]>;
|
asMultiThreshold1: AugmentedSubmittable<(otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Call]>;
|
||||||
/**
|
/**
|
||||||
* Cancel a pre-existing, on-going multisig transaction. Any deposit reserved previously
|
* Cancel a pre-existing, on-going multisig transaction. Any deposit reserved previously
|
||||||
* for this operation will be unreserved on success.
|
* for this operation will be unreserved on success.
|
||||||
@@ -2469,7 +2469,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Weight is a function of the number of proxies the user has (P).
|
* Weight is a function of the number of proxies the user has (P).
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
proxy: AugmentedSubmittable<(real: AccountId32 | string | Uint8Array, forceProxyType: Option<KusamaRuntimeProxyType> | null | object | string | Uint8Array, call: Call | { callIndex?: any; args?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, Option<KusamaRuntimeProxyType>, Call]>;
|
proxy: AugmentedSubmittable<(real: AccountId32 | string | Uint8Array, forceProxyType: Option<KusamaRuntimeProxyType> | null | object | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, Option<KusamaRuntimeProxyType>, Call]>;
|
||||||
/**
|
/**
|
||||||
* Dispatch the given `call` from an account that the sender is authorized for through
|
* Dispatch the given `call` from an account that the sender is authorized for through
|
||||||
* `add_proxy`.
|
* `add_proxy`.
|
||||||
@@ -2489,7 +2489,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - P: the number of proxies the user has.
|
* - P: the number of proxies the user has.
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
proxyAnnounced: AugmentedSubmittable<(delegate: AccountId32 | string | Uint8Array, real: AccountId32 | string | Uint8Array, forceProxyType: Option<KusamaRuntimeProxyType> | null | object | string | Uint8Array, call: Call | { callIndex?: any; args?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, AccountId32, Option<KusamaRuntimeProxyType>, Call]>;
|
proxyAnnounced: AugmentedSubmittable<(delegate: AccountId32 | string | Uint8Array, real: AccountId32 | string | Uint8Array, forceProxyType: Option<KusamaRuntimeProxyType> | null | object | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, AccountId32, Option<KusamaRuntimeProxyType>, Call]>;
|
||||||
/**
|
/**
|
||||||
* Remove the given announcement of a delegate.
|
* Remove the given announcement of a delegate.
|
||||||
*
|
*
|
||||||
@@ -2571,7 +2571,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - `account`: The recovered account you want to make a call on-behalf-of.
|
* - `account`: The recovered account you want to make a call on-behalf-of.
|
||||||
* - `call`: The call you want to make with the recovered account.
|
* - `call`: The call you want to make with the recovered account.
|
||||||
**/
|
**/
|
||||||
asRecovered: AugmentedSubmittable<(account: AccountId32 | string | Uint8Array, call: Call | { callIndex?: any; args?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, Call]>;
|
asRecovered: AugmentedSubmittable<(account: AccountId32 | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, Call]>;
|
||||||
/**
|
/**
|
||||||
* Cancel the ability to use `as_recovered` for `account`.
|
* Cancel the ability to use `as_recovered` for `account`.
|
||||||
*
|
*
|
||||||
@@ -3735,7 +3735,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - 1 event
|
* - 1 event
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
execute: AugmentedSubmittable<(proposal: Call | { callIndex?: any; args?: any } | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, Compact<u32>]>;
|
execute: AugmentedSubmittable<(proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, Compact<u32>]>;
|
||||||
/**
|
/**
|
||||||
* Add a new proposal to either be voted on or executed directly.
|
* Add a new proposal to either be voted on or executed directly.
|
||||||
*
|
*
|
||||||
@@ -3765,7 +3765,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - 1 event
|
* - 1 event
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
propose: AugmentedSubmittable<(threshold: Compact<u32> | AnyNumber | Uint8Array, proposal: Call | { callIndex?: any; args?: any } | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Call, Compact<u32>]>;
|
propose: AugmentedSubmittable<(threshold: Compact<u32> | AnyNumber | Uint8Array, proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Call, Compact<u32>]>;
|
||||||
/**
|
/**
|
||||||
* Set the collective's membership.
|
* Set the collective's membership.
|
||||||
*
|
*
|
||||||
@@ -4136,7 +4136,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* The dispatch origin for this call must be _Signed_.
|
* The dispatch origin for this call must be _Signed_.
|
||||||
**/
|
**/
|
||||||
asDerivative: AugmentedSubmittable<(index: u16 | AnyNumber | Uint8Array, call: Call | { callIndex?: any; args?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Call]>;
|
asDerivative: AugmentedSubmittable<(index: u16 | AnyNumber | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Call]>;
|
||||||
/**
|
/**
|
||||||
* Send a batch of dispatch calls.
|
* Send a batch of dispatch calls.
|
||||||
*
|
*
|
||||||
@@ -4158,7 +4158,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* and the error of the failed call. If all were successful, then the `BatchCompleted`
|
* and the error of the failed call. If all were successful, then the `BatchCompleted`
|
||||||
* event is deposited.
|
* event is deposited.
|
||||||
**/
|
**/
|
||||||
batch: AugmentedSubmittable<(calls: Vec<Call> | (Call | { callIndex?: any; args?: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
|
batch: AugmentedSubmittable<(calls: Vec<Call> | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
|
||||||
/**
|
/**
|
||||||
* Send a batch of dispatch calls and atomically execute them.
|
* Send a batch of dispatch calls and atomically execute them.
|
||||||
* The whole transaction will rollback and fail if any of the calls failed.
|
* The whole transaction will rollback and fail if any of the calls failed.
|
||||||
@@ -4175,7 +4175,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - Complexity: O(C) where C is the number of calls to be batched.
|
* - Complexity: O(C) where C is the number of calls to be batched.
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
batchAll: AugmentedSubmittable<(calls: Vec<Call> | (Call | { callIndex?: any; args?: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
|
batchAll: AugmentedSubmittable<(calls: Vec<Call> | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
|
||||||
/**
|
/**
|
||||||
* Dispatches a function call with a provided origin.
|
* Dispatches a function call with a provided origin.
|
||||||
*
|
*
|
||||||
@@ -4188,7 +4188,24 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - Weight of derivative `call` execution + T::WeightInfo::dispatch_as().
|
* - Weight of derivative `call` execution + T::WeightInfo::dispatch_as().
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
dispatchAs: AugmentedSubmittable<(asOrigin: KusamaRuntimeOriginCaller | { system: any } | { Void: any } | { Council: any } | { TechnicalCommittee: any } | { ParachainsOrigin: any } | { XcmPallet: any } | string | Uint8Array, call: Call | { callIndex?: any; args?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [KusamaRuntimeOriginCaller, Call]>;
|
dispatchAs: AugmentedSubmittable<(asOrigin: KusamaRuntimeOriginCaller | { system: any } | { Void: any } | { Council: any } | { TechnicalCommittee: any } | { ParachainsOrigin: any } | { XcmPallet: any } | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [KusamaRuntimeOriginCaller, Call]>;
|
||||||
|
/**
|
||||||
|
* Send a batch of dispatch calls.
|
||||||
|
* Unlike `batch`, it allows errors and won't interrupt.
|
||||||
|
*
|
||||||
|
* May be called from any origin.
|
||||||
|
*
|
||||||
|
* - `calls`: The calls to be dispatched from the same origin. The number of call must not
|
||||||
|
* exceed the constant: `batched_calls_limit` (available in constant metadata).
|
||||||
|
*
|
||||||
|
* If origin is root then call are dispatch without checking origin filter. (This includes
|
||||||
|
* bypassing `frame_system::Config::BaseCallFilter`).
|
||||||
|
*
|
||||||
|
* # <weight>
|
||||||
|
* - Complexity: O(C) where C is the number of calls to be batched.
|
||||||
|
* # </weight>
|
||||||
|
**/
|
||||||
|
forceBatch: AugmentedSubmittable<(calls: Vec<Call> | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
|
||||||
/**
|
/**
|
||||||
* Generic tx
|
* Generic tx
|
||||||
**/
|
**/
|
||||||
|
|||||||
@@ -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: '8.3.1' };
|
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '8.4.1' };
|
||||||
|
|||||||
@@ -93,17 +93,9 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
};
|
};
|
||||||
bagsList: {
|
bagsList: {
|
||||||
/**
|
/**
|
||||||
* Id not found in list.
|
* A error in the list interface implementation.
|
||||||
**/
|
**/
|
||||||
IdNotFound: AugmentedError<ApiType>;
|
List: AugmentedError<ApiType>;
|
||||||
/**
|
|
||||||
* An Id does not have a greater score than another Id.
|
|
||||||
**/
|
|
||||||
NotHeavier: AugmentedError<ApiType>;
|
|
||||||
/**
|
|
||||||
* Attempted to place node in front of a node in another bag.
|
|
||||||
**/
|
|
||||||
NotInSameBag: AugmentedError<ApiType>;
|
|
||||||
/**
|
/**
|
||||||
* Generic error
|
* Generic error
|
||||||
**/
|
**/
|
||||||
|
|||||||
@@ -1043,6 +1043,10 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* Batch of dispatches completed fully with no error.
|
* Batch of dispatches completed fully with no error.
|
||||||
**/
|
**/
|
||||||
BatchCompleted: AugmentedEvent<ApiType, []>;
|
BatchCompleted: AugmentedEvent<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* Batch of dispatches completed but has errors.
|
||||||
|
**/
|
||||||
|
BatchCompletedWithErrors: AugmentedEvent<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* Batch of dispatches did not complete fully. Index of first failing dispatch given, as
|
* Batch of dispatches did not complete fully. Index of first failing dispatch given, as
|
||||||
* well as the error.
|
* well as the error.
|
||||||
@@ -1056,6 +1060,10 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* A single item within a Batch of dispatches has completed with no error.
|
* A single item within a Batch of dispatches has completed with no error.
|
||||||
**/
|
**/
|
||||||
ItemCompleted: AugmentedEvent<ApiType, []>;
|
ItemCompleted: AugmentedEvent<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* A single item within a Batch of dispatches has completed with error.
|
||||||
|
**/
|
||||||
|
ItemFailed: AugmentedEvent<ApiType, [SpRuntimeDispatchError]>;
|
||||||
/**
|
/**
|
||||||
* Generic event
|
* Generic event
|
||||||
**/
|
**/
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import type { BTreeMap, Bytes, Null, Option, U8aFixed, Vec, WrapperKeepOpaque, W
|
|||||||
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
||||||
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
||||||
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletSchedulerScheduledV3, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2AssignmentAppPublic, PolkadotPrimitivesV2CandidateCommitments, PolkadotPrimitivesV2CoreOccupied, PolkadotPrimitivesV2DisputeState, PolkadotPrimitivesV2ScrapedOnChainVotes, PolkadotPrimitivesV2SessionInfo, PolkadotPrimitivesV2UpgradeGoAhead, PolkadotPrimitivesV2UpgradeRestriction, PolkadotPrimitivesV2ValidatorAppPublic, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, PolkadotRuntimeSessionKeys, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
import type { FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletSchedulerScheduledV3, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2AssignmentAppPublic, PolkadotPrimitivesV2CandidateCommitments, PolkadotPrimitivesV2CoreOccupied, PolkadotPrimitivesV2DisputeState, PolkadotPrimitivesV2ScrapedOnChainVotes, PolkadotPrimitivesV2SessionInfo, PolkadotPrimitivesV2UpgradeGoAhead, PolkadotPrimitivesV2UpgradeRestriction, PolkadotPrimitivesV2ValidatorAppPublic, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, PolkadotRuntimeSessionKeys, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
||||||
import type { Observable } from '@polkadot/types/types';
|
import type { Observable } from '@polkadot/types/types';
|
||||||
|
|
||||||
declare module '@polkadot/api-base/types/storage' {
|
declare module '@polkadot/api-base/types/storage' {
|
||||||
@@ -68,7 +68,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* This field should always be populated during block processing unless
|
* This field should always be populated during block processing unless
|
||||||
* secondary plain slots are enabled (which don't contain a VRF output).
|
* secondary plain slots are enabled (which don't contain a VRF output).
|
||||||
*
|
*
|
||||||
* It is set in `on_initialize`, before it will contain the value from the last block.
|
* It is set in `on_finalize`, before it will contain the value from the last block.
|
||||||
**/
|
**/
|
||||||
authorVrfRandomness: AugmentedQuery<ApiType, () => Observable<Option<U8aFixed>>, []> & QueryableStorageEntry<ApiType, []>;
|
authorVrfRandomness: AugmentedQuery<ApiType, () => Observable<Option<U8aFixed>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
@@ -101,7 +101,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* Temporary value (cleared at block finalization) which is `Some`
|
* Temporary value (cleared at block finalization) which is `Some`
|
||||||
* if per-block initialization has already been called for current block.
|
* if per-block initialization has already been called for current block.
|
||||||
**/
|
**/
|
||||||
initialized: AugmentedQuery<ApiType, () => Observable<Option<Option<U8aFixed>>>, []> & QueryableStorageEntry<ApiType, []>;
|
initialized: AugmentedQuery<ApiType, () => Observable<Option<Option<SpConsensusBabeDigestsPreDigest>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* How late the current block is compared to its parent.
|
* How late the current block is compared to its parent.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
import type { ApiTypes } from '@polkadot/api-base/types';
|
import type { ApiTypes } from '@polkadot/api-base/types';
|
||||||
import type { Data } from '@polkadot/types';
|
import type { Data } from '@polkadot/types';
|
||||||
import type { Bytes, Compact, Option, U8aFixed, Vec, WrapperKeepOpaque, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
import type { Bytes, Compact, Option, U8aFixed, Vec, WrapperKeepOpaque, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||||
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
||||||
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
||||||
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { FrameSupportScheduleMaybeHashed, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2InherentData, PolkadotPrimitivesV2PvfCheckStatement, PolkadotPrimitivesV2ValidatorAppSignature, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeOriginCaller, PolkadotRuntimeProxyType, PolkadotRuntimeSessionKeys, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, XcmV1MultiLocation, XcmV2WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
|
import type { FrameSupportScheduleMaybeHashed, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2InherentData, PolkadotPrimitivesV2PvfCheckStatement, PolkadotPrimitivesV2ValidatorAppSignature, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeOriginCaller, PolkadotRuntimeProxyType, PolkadotRuntimeSessionKeys, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, XcmV1MultiLocation, XcmV2WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
|
||||||
@@ -862,7 +862,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - 1 event
|
* - 1 event
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
execute: AugmentedSubmittable<(proposal: Call | { callIndex?: any; args?: any } | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, Compact<u32>]>;
|
execute: AugmentedSubmittable<(proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, Compact<u32>]>;
|
||||||
/**
|
/**
|
||||||
* Add a new proposal to either be voted on or executed directly.
|
* Add a new proposal to either be voted on or executed directly.
|
||||||
*
|
*
|
||||||
@@ -892,7 +892,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - 1 event
|
* - 1 event
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
propose: AugmentedSubmittable<(threshold: Compact<u32> | AnyNumber | Uint8Array, proposal: Call | { callIndex?: any; args?: any } | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Call, Compact<u32>]>;
|
propose: AugmentedSubmittable<(threshold: Compact<u32> | AnyNumber | Uint8Array, proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Call, Compact<u32>]>;
|
||||||
/**
|
/**
|
||||||
* Set the collective's membership.
|
* Set the collective's membership.
|
||||||
*
|
*
|
||||||
@@ -2051,7 +2051,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - Plus Call Weight
|
* - Plus Call Weight
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
asMultiThreshold1: AugmentedSubmittable<(otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], call: Call | { callIndex?: any; args?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Call]>;
|
asMultiThreshold1: AugmentedSubmittable<(otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Call]>;
|
||||||
/**
|
/**
|
||||||
* Cancel a pre-existing, on-going multisig transaction. Any deposit reserved previously
|
* Cancel a pre-existing, on-going multisig transaction. Any deposit reserved previously
|
||||||
* for this operation will be unreserved on success.
|
* for this operation will be unreserved on success.
|
||||||
@@ -2418,7 +2418,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Weight is a function of the number of proxies the user has (P).
|
* Weight is a function of the number of proxies the user has (P).
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
proxy: AugmentedSubmittable<(real: AccountId32 | string | Uint8Array, forceProxyType: Option<PolkadotRuntimeProxyType> | null | object | string | Uint8Array, call: Call | { callIndex?: any; args?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, Option<PolkadotRuntimeProxyType>, Call]>;
|
proxy: AugmentedSubmittable<(real: AccountId32 | string | Uint8Array, forceProxyType: Option<PolkadotRuntimeProxyType> | null | object | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, Option<PolkadotRuntimeProxyType>, Call]>;
|
||||||
/**
|
/**
|
||||||
* Dispatch the given `call` from an account that the sender is authorized for through
|
* Dispatch the given `call` from an account that the sender is authorized for through
|
||||||
* `add_proxy`.
|
* `add_proxy`.
|
||||||
@@ -2438,7 +2438,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - P: the number of proxies the user has.
|
* - P: the number of proxies the user has.
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
proxyAnnounced: AugmentedSubmittable<(delegate: AccountId32 | string | Uint8Array, real: AccountId32 | string | Uint8Array, forceProxyType: Option<PolkadotRuntimeProxyType> | null | object | string | Uint8Array, call: Call | { callIndex?: any; args?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, AccountId32, Option<PolkadotRuntimeProxyType>, Call]>;
|
proxyAnnounced: AugmentedSubmittable<(delegate: AccountId32 | string | Uint8Array, real: AccountId32 | string | Uint8Array, forceProxyType: Option<PolkadotRuntimeProxyType> | null | object | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, AccountId32, Option<PolkadotRuntimeProxyType>, Call]>;
|
||||||
/**
|
/**
|
||||||
* Remove the given announcement of a delegate.
|
* Remove the given announcement of a delegate.
|
||||||
*
|
*
|
||||||
@@ -3231,7 +3231,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - 1 event
|
* - 1 event
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
execute: AugmentedSubmittable<(proposal: Call | { callIndex?: any; args?: any } | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, Compact<u32>]>;
|
execute: AugmentedSubmittable<(proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, Compact<u32>]>;
|
||||||
/**
|
/**
|
||||||
* Add a new proposal to either be voted on or executed directly.
|
* Add a new proposal to either be voted on or executed directly.
|
||||||
*
|
*
|
||||||
@@ -3261,7 +3261,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - 1 event
|
* - 1 event
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
propose: AugmentedSubmittable<(threshold: Compact<u32> | AnyNumber | Uint8Array, proposal: Call | { callIndex?: any; args?: any } | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Call, Compact<u32>]>;
|
propose: AugmentedSubmittable<(threshold: Compact<u32> | AnyNumber | Uint8Array, proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Call, Compact<u32>]>;
|
||||||
/**
|
/**
|
||||||
* Set the collective's membership.
|
* Set the collective's membership.
|
||||||
*
|
*
|
||||||
@@ -3632,7 +3632,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* The dispatch origin for this call must be _Signed_.
|
* The dispatch origin for this call must be _Signed_.
|
||||||
**/
|
**/
|
||||||
asDerivative: AugmentedSubmittable<(index: u16 | AnyNumber | Uint8Array, call: Call | { callIndex?: any; args?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Call]>;
|
asDerivative: AugmentedSubmittable<(index: u16 | AnyNumber | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Call]>;
|
||||||
/**
|
/**
|
||||||
* Send a batch of dispatch calls.
|
* Send a batch of dispatch calls.
|
||||||
*
|
*
|
||||||
@@ -3654,7 +3654,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* and the error of the failed call. If all were successful, then the `BatchCompleted`
|
* and the error of the failed call. If all were successful, then the `BatchCompleted`
|
||||||
* event is deposited.
|
* event is deposited.
|
||||||
**/
|
**/
|
||||||
batch: AugmentedSubmittable<(calls: Vec<Call> | (Call | { callIndex?: any; args?: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
|
batch: AugmentedSubmittable<(calls: Vec<Call> | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
|
||||||
/**
|
/**
|
||||||
* Send a batch of dispatch calls and atomically execute them.
|
* Send a batch of dispatch calls and atomically execute them.
|
||||||
* The whole transaction will rollback and fail if any of the calls failed.
|
* The whole transaction will rollback and fail if any of the calls failed.
|
||||||
@@ -3671,7 +3671,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - Complexity: O(C) where C is the number of calls to be batched.
|
* - Complexity: O(C) where C is the number of calls to be batched.
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
batchAll: AugmentedSubmittable<(calls: Vec<Call> | (Call | { callIndex?: any; args?: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
|
batchAll: AugmentedSubmittable<(calls: Vec<Call> | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
|
||||||
/**
|
/**
|
||||||
* Dispatches a function call with a provided origin.
|
* Dispatches a function call with a provided origin.
|
||||||
*
|
*
|
||||||
@@ -3684,7 +3684,24 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - Weight of derivative `call` execution + T::WeightInfo::dispatch_as().
|
* - Weight of derivative `call` execution + T::WeightInfo::dispatch_as().
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
dispatchAs: AugmentedSubmittable<(asOrigin: PolkadotRuntimeOriginCaller | { system: any } | { Void: any } | { Council: any } | { TechnicalCommittee: any } | { ParachainsOrigin: any } | { XcmPallet: any } | string | Uint8Array, call: Call | { callIndex?: any; args?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotRuntimeOriginCaller, Call]>;
|
dispatchAs: AugmentedSubmittable<(asOrigin: PolkadotRuntimeOriginCaller | { system: any } | { Void: any } | { Council: any } | { TechnicalCommittee: any } | { ParachainsOrigin: any } | { XcmPallet: any } | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotRuntimeOriginCaller, Call]>;
|
||||||
|
/**
|
||||||
|
* Send a batch of dispatch calls.
|
||||||
|
* Unlike `batch`, it allows errors and won't interrupt.
|
||||||
|
*
|
||||||
|
* May be called from any origin.
|
||||||
|
*
|
||||||
|
* - `calls`: The calls to be dispatched from the same origin. The number of call must not
|
||||||
|
* exceed the constant: `batched_calls_limit` (available in constant metadata).
|
||||||
|
*
|
||||||
|
* If origin is root then call are dispatch without checking origin filter. (This includes
|
||||||
|
* bypassing `frame_system::Config::BaseCallFilter`).
|
||||||
|
*
|
||||||
|
* # <weight>
|
||||||
|
* - Complexity: O(C) where C is the number of calls to be batched.
|
||||||
|
* # </weight>
|
||||||
|
**/
|
||||||
|
forceBatch: AugmentedSubmittable<(calls: Vec<Call> | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
|
||||||
/**
|
/**
|
||||||
* Generic tx
|
* Generic tx
|
||||||
**/
|
**/
|
||||||
|
|||||||
@@ -127,17 +127,9 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
};
|
};
|
||||||
bagsList: {
|
bagsList: {
|
||||||
/**
|
/**
|
||||||
* Id not found in list.
|
* A error in the list interface implementation.
|
||||||
**/
|
**/
|
||||||
IdNotFound: AugmentedError<ApiType>;
|
List: AugmentedError<ApiType>;
|
||||||
/**
|
|
||||||
* An Id does not have a greater score than another Id.
|
|
||||||
**/
|
|
||||||
NotHeavier: AugmentedError<ApiType>;
|
|
||||||
/**
|
|
||||||
* Attempted to place node in front of a node in another bag.
|
|
||||||
**/
|
|
||||||
NotInSameBag: AugmentedError<ApiType>;
|
|
||||||
/**
|
/**
|
||||||
* Generic error
|
* Generic error
|
||||||
**/
|
**/
|
||||||
@@ -1104,6 +1096,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* The transaction could not be executed due to overflow risk for the pool.
|
* The transaction could not be executed due to overflow risk for the pool.
|
||||||
**/
|
**/
|
||||||
OverflowRisk: AugmentedError<ApiType>;
|
OverflowRisk: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Partial unbonding now allowed permissionlessly.
|
||||||
|
**/
|
||||||
|
PartialUnbondNotAllowedPermissionlessly: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* An account is not a member.
|
* An account is not a member.
|
||||||
**/
|
**/
|
||||||
|
|||||||
@@ -628,6 +628,12 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* A pool has been destroyed.
|
* A pool has been destroyed.
|
||||||
**/
|
**/
|
||||||
Destroyed: AugmentedEvent<ApiType, [u32]>;
|
Destroyed: AugmentedEvent<ApiType, [u32]>;
|
||||||
|
/**
|
||||||
|
* A member has been removed from a pool.
|
||||||
|
*
|
||||||
|
* The removal can be voluntary (withdrawn all unbonded funds) or involuntary (kicked).
|
||||||
|
**/
|
||||||
|
MemberRemoved: AugmentedEvent<ApiType, [u32, AccountId32]>;
|
||||||
/**
|
/**
|
||||||
* A payout has been made to a member.
|
* A payout has been made to a member.
|
||||||
**/
|
**/
|
||||||
@@ -1291,6 +1297,10 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* Batch of dispatches completed fully with no error.
|
* Batch of dispatches completed fully with no error.
|
||||||
**/
|
**/
|
||||||
BatchCompleted: AugmentedEvent<ApiType, []>;
|
BatchCompleted: AugmentedEvent<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* Batch of dispatches completed but has errors.
|
||||||
|
**/
|
||||||
|
BatchCompletedWithErrors: AugmentedEvent<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* Batch of dispatches did not complete fully. Index of first failing dispatch given, as
|
* Batch of dispatches did not complete fully. Index of first failing dispatch given, as
|
||||||
* well as the error.
|
* well as the error.
|
||||||
@@ -1304,6 +1314,10 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* A single item within a Batch of dispatches has completed with no error.
|
* A single item within a Batch of dispatches has completed with no error.
|
||||||
**/
|
**/
|
||||||
ItemCompleted: AugmentedEvent<ApiType, []>;
|
ItemCompleted: AugmentedEvent<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* A single item within a Batch of dispatches has completed with error.
|
||||||
|
**/
|
||||||
|
ItemFailed: AugmentedEvent<ApiType, [SpRuntimeDispatchError]>;
|
||||||
/**
|
/**
|
||||||
* Generic event
|
* Generic event
|
||||||
**/
|
**/
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import type { Data } from '@polkadot/types';
|
|||||||
import type { BTreeMap, Bytes, Null, Option, U8aFixed, Vec, WrapperKeepOpaque, WrapperOpaque, bool, u128, u32, u64, u8 } from '@polkadot/types-codec';
|
import type { BTreeMap, Bytes, Null, Option, U8aFixed, Vec, WrapperKeepOpaque, WrapperOpaque, bool, u128, u32, u64, u8 } from '@polkadot/types-codec';
|
||||||
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
||||||
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, NodeRuntimeSessionKeys, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageDeletedContract, PalletContractsStorageRawContractInfo, PalletContractsWasmOwnerInfo, PalletContractsWasmPrefabWasmModule, PalletConvictionVotingVoteVoting, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletGiltActiveGilt, PalletGiltActiveGiltsTotal, PalletGiltGiltBid, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfo, PalletSchedulerScheduledV3, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTransactionStorageTransactionInfo, PalletTreasuryProposal, PalletUniquesClassDetails, PalletUniquesClassMetadata, PalletUniquesInstanceDetails, PalletUniquesInstanceMetadata, PalletVestingReleases, PalletVestingVestingInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails } from '@polkadot/types/lookup';
|
import type { FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, NodeRuntimeSessionKeys, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageDeletedContract, PalletContractsStorageRawContractInfo, PalletContractsWasmOwnerInfo, PalletContractsWasmPrefabWasmModule, PalletConvictionVotingVoteVoting, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletGiltActiveGilt, PalletGiltActiveGiltsTotal, PalletGiltGiltBid, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfo, PalletSchedulerScheduledV3, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTransactionStorageTransactionInfo, PalletTreasuryProposal, PalletUniquesClassDetails, PalletUniquesClassMetadata, PalletUniquesInstanceDetails, PalletUniquesInstanceMetadata, PalletVestingReleases, PalletVestingVestingInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails } from '@polkadot/types/lookup';
|
||||||
import type { Observable } from '@polkadot/types/types';
|
import type { Observable } from '@polkadot/types/types';
|
||||||
|
|
||||||
declare module '@polkadot/api-base/types/storage' {
|
declare module '@polkadot/api-base/types/storage' {
|
||||||
@@ -76,7 +76,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* This field should always be populated during block processing unless
|
* This field should always be populated during block processing unless
|
||||||
* secondary plain slots are enabled (which don't contain a VRF output).
|
* secondary plain slots are enabled (which don't contain a VRF output).
|
||||||
*
|
*
|
||||||
* It is set in `on_initialize`, before it will contain the value from the last block.
|
* It is set in `on_finalize`, before it will contain the value from the last block.
|
||||||
**/
|
**/
|
||||||
authorVrfRandomness: AugmentedQuery<ApiType, () => Observable<Option<U8aFixed>>, []> & QueryableStorageEntry<ApiType, []>;
|
authorVrfRandomness: AugmentedQuery<ApiType, () => Observable<Option<U8aFixed>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
@@ -109,7 +109,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* Temporary value (cleared at block finalization) which is `Some`
|
* Temporary value (cleared at block finalization) which is `Some`
|
||||||
* if per-block initialization has already been called for current block.
|
* if per-block initialization has already been called for current block.
|
||||||
**/
|
**/
|
||||||
initialized: AugmentedQuery<ApiType, () => Observable<Option<Option<U8aFixed>>>, []> & QueryableStorageEntry<ApiType, []>;
|
initialized: AugmentedQuery<ApiType, () => Observable<Option<Option<SpConsensusBabeDigestsPreDigest>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* How late the current block is compared to its parent.
|
* How late the current block is compared to its parent.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
import type { ApiTypes } from '@polkadot/api-base/types';
|
import type { ApiTypes } from '@polkadot/api-base/types';
|
||||||
import type { Data } from '@polkadot/types';
|
import type { Data } from '@polkadot/types';
|
||||||
import type { Bytes, Compact, Option, U8aFixed, Vec, WrapperKeepOpaque, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
import type { Bytes, Compact, Option, U8aFixed, Vec, WrapperKeepOpaque, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||||
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
||||||
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { FrameSupportScheduleDispatchTime, FrameSupportScheduleMaybeHashed, NodeRuntimeOriginCaller, NodeRuntimeProxyType, NodeRuntimeSessionKeys, PalletAssetsDestroyWitness, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof } from '@polkadot/types/lookup';
|
import type { FrameSupportScheduleDispatchTime, FrameSupportScheduleMaybeHashed, NodeRuntimeOriginCaller, NodeRuntimeProxyType, NodeRuntimeSessionKeys, PalletAssetsDestroyWitness, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof } from '@polkadot/types/lookup';
|
||||||
|
|
||||||
@@ -1175,7 +1175,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - 1 event
|
* - 1 event
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
execute: AugmentedSubmittable<(proposal: Call | { callIndex?: any; args?: any } | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, Compact<u32>]>;
|
execute: AugmentedSubmittable<(proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, Compact<u32>]>;
|
||||||
/**
|
/**
|
||||||
* Add a new proposal to either be voted on or executed directly.
|
* Add a new proposal to either be voted on or executed directly.
|
||||||
*
|
*
|
||||||
@@ -1205,7 +1205,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - 1 event
|
* - 1 event
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
propose: AugmentedSubmittable<(threshold: Compact<u32> | AnyNumber | Uint8Array, proposal: Call | { callIndex?: any; args?: any } | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Call, Compact<u32>]>;
|
propose: AugmentedSubmittable<(threshold: Compact<u32> | AnyNumber | Uint8Array, proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Call, Compact<u32>]>;
|
||||||
/**
|
/**
|
||||||
* Set the collective's membership.
|
* Set the collective's membership.
|
||||||
*
|
*
|
||||||
@@ -2271,7 +2271,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* This extrinsic must be called by a signed origin.
|
* This extrinsic must be called by a signed origin.
|
||||||
**/
|
**/
|
||||||
buyTicket: AugmentedSubmittable<(call: Call | { callIndex?: any; args?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call]>;
|
buyTicket: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call]>;
|
||||||
/**
|
/**
|
||||||
* Set calls in storage which can be used to purchase a lottery ticket.
|
* Set calls in storage which can be used to purchase a lottery ticket.
|
||||||
*
|
*
|
||||||
@@ -2280,7 +2280,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* This extrinsic must be called by the Manager origin.
|
* This extrinsic must be called by the Manager origin.
|
||||||
**/
|
**/
|
||||||
setCalls: AugmentedSubmittable<(calls: Vec<Call> | (Call | { callIndex?: any; args?: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
|
setCalls: AugmentedSubmittable<(calls: Vec<Call> | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
|
||||||
/**
|
/**
|
||||||
* Start a lottery using the provided configuration.
|
* Start a lottery using the provided configuration.
|
||||||
*
|
*
|
||||||
@@ -2411,7 +2411,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - Plus Call Weight
|
* - Plus Call Weight
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
asMultiThreshold1: AugmentedSubmittable<(otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], call: Call | { callIndex?: any; args?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Call]>;
|
asMultiThreshold1: AugmentedSubmittable<(otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Call]>;
|
||||||
/**
|
/**
|
||||||
* Cancel a pre-existing, on-going multisig transaction. Any deposit reserved previously
|
* Cancel a pre-existing, on-going multisig transaction. Any deposit reserved previously
|
||||||
* for this operation will be unreserved on success.
|
* for this operation will be unreserved on success.
|
||||||
@@ -2716,7 +2716,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Weight is a function of the number of proxies the user has (P).
|
* Weight is a function of the number of proxies the user has (P).
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
proxy: AugmentedSubmittable<(real: AccountId32 | string | Uint8Array, forceProxyType: Option<NodeRuntimeProxyType> | null | object | string | Uint8Array, call: Call | { callIndex?: any; args?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, Option<NodeRuntimeProxyType>, Call]>;
|
proxy: AugmentedSubmittable<(real: AccountId32 | string | Uint8Array, forceProxyType: Option<NodeRuntimeProxyType> | null | object | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, Option<NodeRuntimeProxyType>, Call]>;
|
||||||
/**
|
/**
|
||||||
* Dispatch the given `call` from an account that the sender is authorized for through
|
* Dispatch the given `call` from an account that the sender is authorized for through
|
||||||
* `add_proxy`.
|
* `add_proxy`.
|
||||||
@@ -2736,7 +2736,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - P: the number of proxies the user has.
|
* - P: the number of proxies the user has.
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
proxyAnnounced: AugmentedSubmittable<(delegate: AccountId32 | string | Uint8Array, real: AccountId32 | string | Uint8Array, forceProxyType: Option<NodeRuntimeProxyType> | null | object | string | Uint8Array, call: Call | { callIndex?: any; args?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, AccountId32, Option<NodeRuntimeProxyType>, Call]>;
|
proxyAnnounced: AugmentedSubmittable<(delegate: AccountId32 | string | Uint8Array, real: AccountId32 | string | Uint8Array, forceProxyType: Option<NodeRuntimeProxyType> | null | object | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, AccountId32, Option<NodeRuntimeProxyType>, Call]>;
|
||||||
/**
|
/**
|
||||||
* Remove the given announcement of a delegate.
|
* Remove the given announcement of a delegate.
|
||||||
*
|
*
|
||||||
@@ -2818,7 +2818,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - `account`: The recovered account you want to make a call on-behalf-of.
|
* - `account`: The recovered account you want to make a call on-behalf-of.
|
||||||
* - `call`: The call you want to make with the recovered account.
|
* - `call`: The call you want to make with the recovered account.
|
||||||
**/
|
**/
|
||||||
asRecovered: AugmentedSubmittable<(account: AccountId32 | string | Uint8Array, call: Call | { callIndex?: any; args?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, Call]>;
|
asRecovered: AugmentedSubmittable<(account: AccountId32 | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, Call]>;
|
||||||
/**
|
/**
|
||||||
* Cancel the ability to use `as_recovered` for `account`.
|
* Cancel the ability to use `as_recovered` for `account`.
|
||||||
*
|
*
|
||||||
@@ -3923,7 +3923,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - Weight of derivative `call` execution + 10,000.
|
* - Weight of derivative `call` execution + 10,000.
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
sudo: AugmentedSubmittable<(call: Call | { callIndex?: any; args?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call]>;
|
sudo: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call]>;
|
||||||
/**
|
/**
|
||||||
* Authenticates the sudo key and dispatches a function call with `Signed` origin from
|
* Authenticates the sudo key and dispatches a function call with `Signed` origin from
|
||||||
* a given account.
|
* a given account.
|
||||||
@@ -3937,7 +3937,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - Weight of derivative `call` execution + 10,000.
|
* - Weight of derivative `call` execution + 10,000.
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
sudoAs: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, call: Call | { callIndex?: any; args?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Call]>;
|
sudoAs: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Call]>;
|
||||||
/**
|
/**
|
||||||
* Authenticates the sudo key and dispatches a function call with `Root` origin.
|
* Authenticates the sudo key and dispatches a function call with `Root` origin.
|
||||||
* This function does not check the weight of the call, and instead allows the
|
* This function does not check the weight of the call, and instead allows the
|
||||||
@@ -3950,7 +3950,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - The weight of this call is defined by the caller.
|
* - The weight of this call is defined by the caller.
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
sudoUncheckedWeight: AugmentedSubmittable<(call: Call | { callIndex?: any; args?: any } | string | Uint8Array, weight: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, u64]>;
|
sudoUncheckedWeight: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array, weight: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, u64]>;
|
||||||
/**
|
/**
|
||||||
* Generic tx
|
* Generic tx
|
||||||
**/
|
**/
|
||||||
@@ -4090,7 +4090,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - 1 event
|
* - 1 event
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
execute: AugmentedSubmittable<(proposal: Call | { callIndex?: any; args?: any } | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, Compact<u32>]>;
|
execute: AugmentedSubmittable<(proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, Compact<u32>]>;
|
||||||
/**
|
/**
|
||||||
* Add a new proposal to either be voted on or executed directly.
|
* Add a new proposal to either be voted on or executed directly.
|
||||||
*
|
*
|
||||||
@@ -4120,7 +4120,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - 1 event
|
* - 1 event
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
propose: AugmentedSubmittable<(threshold: Compact<u32> | AnyNumber | Uint8Array, proposal: Call | { callIndex?: any; args?: any } | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Call, Compact<u32>]>;
|
propose: AugmentedSubmittable<(threshold: Compact<u32> | AnyNumber | Uint8Array, proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Call, Compact<u32>]>;
|
||||||
/**
|
/**
|
||||||
* Set the collective's membership.
|
* Set the collective's membership.
|
||||||
*
|
*
|
||||||
@@ -4888,7 +4888,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* The dispatch origin for this call must be _Signed_.
|
* The dispatch origin for this call must be _Signed_.
|
||||||
**/
|
**/
|
||||||
asDerivative: AugmentedSubmittable<(index: u16 | AnyNumber | Uint8Array, call: Call | { callIndex?: any; args?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Call]>;
|
asDerivative: AugmentedSubmittable<(index: u16 | AnyNumber | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Call]>;
|
||||||
/**
|
/**
|
||||||
* Send a batch of dispatch calls.
|
* Send a batch of dispatch calls.
|
||||||
*
|
*
|
||||||
@@ -4910,7 +4910,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* and the error of the failed call. If all were successful, then the `BatchCompleted`
|
* and the error of the failed call. If all were successful, then the `BatchCompleted`
|
||||||
* event is deposited.
|
* event is deposited.
|
||||||
**/
|
**/
|
||||||
batch: AugmentedSubmittable<(calls: Vec<Call> | (Call | { callIndex?: any; args?: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
|
batch: AugmentedSubmittable<(calls: Vec<Call> | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
|
||||||
/**
|
/**
|
||||||
* Send a batch of dispatch calls and atomically execute them.
|
* Send a batch of dispatch calls and atomically execute them.
|
||||||
* The whole transaction will rollback and fail if any of the calls failed.
|
* The whole transaction will rollback and fail if any of the calls failed.
|
||||||
@@ -4927,7 +4927,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - Complexity: O(C) where C is the number of calls to be batched.
|
* - Complexity: O(C) where C is the number of calls to be batched.
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
batchAll: AugmentedSubmittable<(calls: Vec<Call> | (Call | { callIndex?: any; args?: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
|
batchAll: AugmentedSubmittable<(calls: Vec<Call> | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
|
||||||
/**
|
/**
|
||||||
* Dispatches a function call with a provided origin.
|
* Dispatches a function call with a provided origin.
|
||||||
*
|
*
|
||||||
@@ -4940,7 +4940,24 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - Weight of derivative `call` execution + T::WeightInfo::dispatch_as().
|
* - Weight of derivative `call` execution + T::WeightInfo::dispatch_as().
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
dispatchAs: AugmentedSubmittable<(asOrigin: NodeRuntimeOriginCaller | { system: any } | { Void: any } | { Council: any } | { TechnicalCommittee: any } | string | Uint8Array, call: Call | { callIndex?: any; args?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [NodeRuntimeOriginCaller, Call]>;
|
dispatchAs: AugmentedSubmittable<(asOrigin: NodeRuntimeOriginCaller | { system: any } | { Void: any } | { Council: any } | { TechnicalCommittee: any } | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [NodeRuntimeOriginCaller, Call]>;
|
||||||
|
/**
|
||||||
|
* Send a batch of dispatch calls.
|
||||||
|
* Unlike `batch`, it allows errors and won't interrupt.
|
||||||
|
*
|
||||||
|
* May be called from any origin.
|
||||||
|
*
|
||||||
|
* - `calls`: The calls to be dispatched from the same origin. The number of call must not
|
||||||
|
* exceed the constant: `batched_calls_limit` (available in constant metadata).
|
||||||
|
*
|
||||||
|
* If origin is root then call are dispatch without checking origin filter. (This includes
|
||||||
|
* bypassing `frame_system::Config::BaseCallFilter`).
|
||||||
|
*
|
||||||
|
* # <weight>
|
||||||
|
* - Complexity: O(C) where C is the number of calls to be batched.
|
||||||
|
* # </weight>
|
||||||
|
**/
|
||||||
|
forceBatch: AugmentedSubmittable<(calls: Vec<Call> | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
|
||||||
/**
|
/**
|
||||||
* Generic tx
|
* Generic tx
|
||||||
**/
|
**/
|
||||||
@@ -5053,7 +5070,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
};
|
};
|
||||||
whitelist: {
|
whitelist: {
|
||||||
dispatchWhitelistedCall: AugmentedSubmittable<(callHash: H256 | string | Uint8Array, callWeightWitness: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, u64]>;
|
dispatchWhitelistedCall: AugmentedSubmittable<(callHash: H256 | string | Uint8Array, callWeightWitness: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, u64]>;
|
||||||
dispatchWhitelistedCallWithPreimage: AugmentedSubmittable<(call: Call | { callIndex?: any; args?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call]>;
|
dispatchWhitelistedCallWithPreimage: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call]>;
|
||||||
removeWhitelistedCall: AugmentedSubmittable<(callHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
removeWhitelistedCall: AugmentedSubmittable<(callHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
||||||
whitelistCall: AugmentedSubmittable<(callHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
whitelistCall: AugmentedSubmittable<(callHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -20,13 +20,13 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "8.3.1",
|
"version": "8.4.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.17.9",
|
"@babel/runtime": "^7.17.9",
|
||||||
"@polkadot/rpc-core": "8.3.1",
|
"@polkadot/rpc-core": "8.4.1",
|
||||||
"@polkadot/types": "8.3.1",
|
"@polkadot/types": "8.4.1",
|
||||||
"@polkadot/util": "^9.1.1",
|
"@polkadot/util": "^9.2.1",
|
||||||
"rxjs": "^7.5.5"
|
"rxjs": "^7.5.5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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: '8.3.1' };
|
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '8.4.1' };
|
||||||
|
|||||||
@@ -20,20 +20,20 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "8.3.1",
|
"version": "8.4.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.17.9",
|
"@babel/runtime": "^7.17.9",
|
||||||
"@polkadot/api": "8.3.1",
|
"@polkadot/api": "8.4.1",
|
||||||
"@polkadot/types": "8.3.1",
|
"@polkadot/types": "8.4.1",
|
||||||
"@polkadot/types-codec": "8.3.1",
|
"@polkadot/types-codec": "8.4.1",
|
||||||
"@polkadot/types-create": "8.3.1",
|
"@polkadot/types-create": "8.4.1",
|
||||||
"@polkadot/util": "^9.1.1",
|
"@polkadot/util": "^9.2.1",
|
||||||
"@polkadot/util-crypto": "^9.1.1",
|
"@polkadot/util-crypto": "^9.2.1",
|
||||||
"rxjs": "^7.5.5"
|
"rxjs": "^7.5.5"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/api-augment": "8.3.1",
|
"@polkadot/api-augment": "8.4.1",
|
||||||
"@polkadot/keyring": "^9.1.1"
|
"@polkadot/keyring": "^9.2.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: '8.3.1' };
|
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '8.4.1' };
|
||||||
|
|||||||
@@ -20,25 +20,25 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "8.3.1",
|
"version": "8.4.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.17.9",
|
"@babel/runtime": "^7.17.9",
|
||||||
"@polkadot/api": "8.3.1",
|
"@polkadot/api": "8.4.1",
|
||||||
"@polkadot/api-augment": "8.3.1",
|
"@polkadot/api-augment": "8.4.1",
|
||||||
"@polkadot/api-base": "8.3.1",
|
"@polkadot/api-base": "8.4.1",
|
||||||
"@polkadot/rpc-core": "8.3.1",
|
"@polkadot/rpc-core": "8.4.1",
|
||||||
"@polkadot/types": "8.3.1",
|
"@polkadot/types": "8.4.1",
|
||||||
"@polkadot/types-codec": "8.3.1",
|
"@polkadot/types-codec": "8.4.1",
|
||||||
"@polkadot/util": "^9.1.1",
|
"@polkadot/util": "^9.2.1",
|
||||||
"@polkadot/util-crypto": "^9.1.1",
|
"@polkadot/util-crypto": "^9.2.1",
|
||||||
"rxjs": "^7.5.5"
|
"rxjs": "^7.5.5"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/api": "8.3.1",
|
"@polkadot/api": "8.4.1",
|
||||||
"@polkadot/api-augment": "8.3.1",
|
"@polkadot/api-augment": "8.4.1",
|
||||||
"@polkadot/rpc-augment": "8.3.1",
|
"@polkadot/rpc-augment": "8.4.1",
|
||||||
"@polkadot/rpc-provider": "8.3.1",
|
"@polkadot/rpc-provider": "8.4.1",
|
||||||
"@polkadot/types-support": "8.3.1"
|
"@polkadot/types-support": "8.4.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ function retrieveNick (api: DeriveApi, accountId?: AccountId): Observable<string
|
|||||||
) as Observable<Option<ITuple<[Bytes, Balance]>> | undefined>).pipe(
|
) as Observable<Option<ITuple<[Bytes, Balance]>> | undefined>).pipe(
|
||||||
map((nameOf): string | undefined =>
|
map((nameOf): string | undefined =>
|
||||||
nameOf?.isSome
|
nameOf?.isSome
|
||||||
? u8aToString(nameOf.unwrap()[0]).substr(0, (api.consts.nicks.maxLength as u32).toNumber())
|
? u8aToString(nameOf.unwrap()[0]).substring(0, (api.consts.nicks.maxLength as u32).toNumber())
|
||||||
: undefined
|
: undefined
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -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: '8.3.1' };
|
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '8.4.1' };
|
||||||
|
|||||||
+17
-17
@@ -20,29 +20,29 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "8.3.1",
|
"version": "8.4.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.17.9",
|
"@babel/runtime": "^7.17.9",
|
||||||
"@polkadot/api-augment": "8.3.1",
|
"@polkadot/api-augment": "8.4.1",
|
||||||
"@polkadot/api-base": "8.3.1",
|
"@polkadot/api-base": "8.4.1",
|
||||||
"@polkadot/api-derive": "8.3.1",
|
"@polkadot/api-derive": "8.4.1",
|
||||||
"@polkadot/keyring": "^9.1.1",
|
"@polkadot/keyring": "^9.2.1",
|
||||||
"@polkadot/rpc-augment": "8.3.1",
|
"@polkadot/rpc-augment": "8.4.1",
|
||||||
"@polkadot/rpc-core": "8.3.1",
|
"@polkadot/rpc-core": "8.4.1",
|
||||||
"@polkadot/rpc-provider": "8.3.1",
|
"@polkadot/rpc-provider": "8.4.1",
|
||||||
"@polkadot/types": "8.3.1",
|
"@polkadot/types": "8.4.1",
|
||||||
"@polkadot/types-augment": "8.3.1",
|
"@polkadot/types-augment": "8.4.1",
|
||||||
"@polkadot/types-codec": "8.3.1",
|
"@polkadot/types-codec": "8.4.1",
|
||||||
"@polkadot/types-create": "8.3.1",
|
"@polkadot/types-create": "8.4.1",
|
||||||
"@polkadot/types-known": "8.3.1",
|
"@polkadot/types-known": "8.4.1",
|
||||||
"@polkadot/util": "^9.1.1",
|
"@polkadot/util": "^9.2.1",
|
||||||
"@polkadot/util-crypto": "^9.1.1",
|
"@polkadot/util-crypto": "^9.2.1",
|
||||||
"eventemitter3": "^4.0.7",
|
"eventemitter3": "^4.0.7",
|
||||||
"rxjs": "^7.5.5"
|
"rxjs": "^7.5.5"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/api-augment": "8.3.1",
|
"@polkadot/api-augment": "8.4.1",
|
||||||
"@polkadot/types-support": "8.3.1"
|
"@polkadot/types-support": "8.4.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: '8.3.1' };
|
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '8.4.1' };
|
||||||
|
|||||||
@@ -20,13 +20,13 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "8.3.1",
|
"version": "8.4.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.17.9",
|
"@babel/runtime": "^7.17.9",
|
||||||
"@polkadot/rpc-core": "8.3.1",
|
"@polkadot/rpc-core": "8.4.1",
|
||||||
"@polkadot/types": "8.3.1",
|
"@polkadot/types": "8.4.1",
|
||||||
"@polkadot/types-codec": "8.3.1",
|
"@polkadot/types-codec": "8.4.1",
|
||||||
"@polkadot/util": "^9.1.1"
|
"@polkadot/util": "^9.2.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-augment', path: 'auto', type: 'auto', version: '8.3.1' };
|
export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '8.4.1' };
|
||||||
|
|||||||
@@ -20,18 +20,18 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "8.3.1",
|
"version": "8.4.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.17.9",
|
"@babel/runtime": "^7.17.9",
|
||||||
"@polkadot/rpc-augment": "8.3.1",
|
"@polkadot/rpc-augment": "8.4.1",
|
||||||
"@polkadot/rpc-provider": "8.3.1",
|
"@polkadot/rpc-provider": "8.4.1",
|
||||||
"@polkadot/types": "8.3.1",
|
"@polkadot/types": "8.4.1",
|
||||||
"@polkadot/util": "^9.1.1",
|
"@polkadot/util": "^9.2.1",
|
||||||
"rxjs": "^7.5.5"
|
"rxjs": "^7.5.5"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/keyring": "^9.1.1",
|
"@polkadot/keyring": "^9.2.1",
|
||||||
"@polkadot/rpc-augment": "8.3.1"
|
"@polkadot/rpc-augment": "8.4.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import type { RpcInterfaceMethod } from './types';
|
|||||||
import { Observable, publishReplay, refCount } from 'rxjs';
|
import { Observable, publishReplay, refCount } from 'rxjs';
|
||||||
|
|
||||||
import { rpcDefinitions } from '@polkadot/types';
|
import { rpcDefinitions } from '@polkadot/types';
|
||||||
import { assert, hexToU8a, isFunction, isNull, isUndefined, lazyMethod, logger, memoize, objectSpread, u8aToU8a } from '@polkadot/util';
|
import { assert, hexToU8a, isFunction, isNull, isUndefined, lazyMethod, logger, memoize, objectSpread, u8aConcat, u8aToU8a } from '@polkadot/util';
|
||||||
|
|
||||||
import { drr, refCountDelay } from './util';
|
import { drr, refCountDelay } from './util';
|
||||||
|
|
||||||
@@ -455,7 +455,10 @@ export class RpcCore {
|
|||||||
return registry.createTypeUnsafe(type, [
|
return registry.createTypeUnsafe(type, [
|
||||||
isEmpty
|
isEmpty
|
||||||
? meta.fallback
|
? meta.fallback
|
||||||
? hexToU8a(meta.fallback.toHex())
|
// For old-style Linkage, we add an empty linkage at the end
|
||||||
|
? type.includes('Linkage<')
|
||||||
|
? u8aConcat(hexToU8a(meta.fallback.toHex()), new Uint8Array(2))
|
||||||
|
: hexToU8a(meta.fallback.toHex())
|
||||||
: undefined
|
: undefined
|
||||||
: meta.modifier.isOptional
|
: meta.modifier.isOptional
|
||||||
? registry.createTypeUnsafe(type, [input], { blockHash, isPedantic: true })
|
? registry.createTypeUnsafe(type, [input], { blockHash, isPedantic: true })
|
||||||
|
|||||||
@@ -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: '8.3.1' };
|
export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '8.4.1' };
|
||||||
|
|||||||
@@ -20,19 +20,19 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "8.3.1",
|
"version": "8.4.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.17.9",
|
"@babel/runtime": "^7.17.9",
|
||||||
"@polkadot/keyring": "^9.1.1",
|
"@polkadot/keyring": "^9.2.1",
|
||||||
"@polkadot/types": "8.3.1",
|
"@polkadot/types": "8.4.1",
|
||||||
"@polkadot/types-support": "8.3.1",
|
"@polkadot/types-support": "8.4.1",
|
||||||
"@polkadot/util": "^9.1.1",
|
"@polkadot/util": "^9.2.1",
|
||||||
"@polkadot/util-crypto": "^9.1.1",
|
"@polkadot/util-crypto": "^9.2.1",
|
||||||
"@polkadot/x-fetch": "^9.1.1",
|
"@polkadot/x-fetch": "^9.2.1",
|
||||||
"@polkadot/x-global": "^9.1.1",
|
"@polkadot/x-global": "^9.2.1",
|
||||||
"@polkadot/x-ws": "^9.1.1",
|
"@polkadot/x-ws": "^9.2.1",
|
||||||
"@substrate/connect": "0.7.2",
|
"@substrate/connect": "0.7.4",
|
||||||
"eventemitter3": "^4.0.7",
|
"eventemitter3": "^4.0.7",
|
||||||
"mock-socket": "^9.1.3",
|
"mock-socket": "^9.1.3",
|
||||||
"nock": "^13.2.4"
|
"nock": "^13.2.4"
|
||||||
|
|||||||
@@ -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: '8.3.1' };
|
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '8.4.1' };
|
||||||
|
|||||||
@@ -155,7 +155,7 @@ const getFakeClient = () => {
|
|||||||
enum WellKnownChain {
|
enum WellKnownChain {
|
||||||
polkadot = 'polkadot',
|
polkadot = 'polkadot',
|
||||||
ksmcc3 = 'ksmcc3',
|
ksmcc3 = 'ksmcc3',
|
||||||
rococo_v2_1 = 'rococo_v2_1',
|
rococo_v2_2 = 'rococo_v2_2',
|
||||||
westend2 = 'westend2'
|
westend2 = 'westend2'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "8.3.1",
|
"version": "8.4.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"bin": {
|
"bin": {
|
||||||
"polkadot-types-chain-info": "./scripts/polkadot-types-chain-info.cjs",
|
"polkadot-types-chain-info": "./scripts/polkadot-types-chain-info.cjs",
|
||||||
@@ -33,20 +33,20 @@
|
|||||||
"@babel/core": "^7.17.10",
|
"@babel/core": "^7.17.10",
|
||||||
"@babel/register": "^7.17.7",
|
"@babel/register": "^7.17.7",
|
||||||
"@babel/runtime": "^7.17.9",
|
"@babel/runtime": "^7.17.9",
|
||||||
"@polkadot/api": "8.3.1",
|
"@polkadot/api": "8.4.1",
|
||||||
"@polkadot/api-augment": "8.3.1",
|
"@polkadot/api-augment": "8.4.1",
|
||||||
"@polkadot/rpc-augment": "8.3.1",
|
"@polkadot/rpc-augment": "8.4.1",
|
||||||
"@polkadot/rpc-provider": "8.3.1",
|
"@polkadot/rpc-provider": "8.4.1",
|
||||||
"@polkadot/types": "8.3.1",
|
"@polkadot/types": "8.4.1",
|
||||||
"@polkadot/types-augment": "8.3.1",
|
"@polkadot/types-augment": "8.4.1",
|
||||||
"@polkadot/types-codec": "8.3.1",
|
"@polkadot/types-codec": "8.4.1",
|
||||||
"@polkadot/types-create": "8.3.1",
|
"@polkadot/types-create": "8.4.1",
|
||||||
"@polkadot/types-support": "8.3.1",
|
"@polkadot/types-support": "8.4.1",
|
||||||
"@polkadot/util": "^9.1.1",
|
"@polkadot/util": "^9.2.1",
|
||||||
"@polkadot/x-ws": "^9.1.1",
|
"@polkadot/x-ws": "^9.2.1",
|
||||||
"handlebars": "^4.7.7",
|
"handlebars": "^4.7.7",
|
||||||
"websocket": "^1.0.34",
|
"websocket": "^1.0.34",
|
||||||
"yargs": "^17.4.1"
|
"yargs": "^17.5.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/websocket": "^1.0.5",
|
"@types/websocket": "^1.0.5",
|
||||||
|
|||||||
@@ -8,40 +8,46 @@ import yargs from 'yargs';
|
|||||||
|
|
||||||
import { Definitions } from '@polkadot/types/types';
|
import { Definitions } from '@polkadot/types/types';
|
||||||
import { formatNumber } from '@polkadot/util';
|
import { formatNumber } from '@polkadot/util';
|
||||||
import { WebSocket } from '@polkadot/x-ws';
|
|
||||||
|
|
||||||
import { generateDefaultConsts, generateDefaultErrors, generateDefaultEvents, generateDefaultQuery, generateDefaultRpc, generateDefaultTx } from './generate';
|
import { generateDefaultConsts, generateDefaultErrors, generateDefaultEvents, generateDefaultQuery, generateDefaultRpc, generateDefaultTx } from './generate';
|
||||||
import { HEADER, writeFile } from './util';
|
import { assertDir, assertFile, getMetadataViaWs, HEADER, writeFile } from './util';
|
||||||
|
|
||||||
function generate (metaHex: HexString, pkg: string | undefined, output: string, isStrict?: boolean): void {
|
function generate (metaHex: HexString, pkg: string | undefined, output: string, isStrict?: boolean): void {
|
||||||
console.log(`Generating from metadata, ${formatNumber((metaHex.length - 2) / 2)} bytes`);
|
console.log(`Generating from metadata, ${formatNumber((metaHex.length - 2) / 2)} bytes`);
|
||||||
|
|
||||||
const base = path.join(process.cwd(), output);
|
const outputPath = assertDir(path.join(process.cwd(), output));
|
||||||
const extraTypes = pkg
|
let extraTypes: Record<string, any> = {};
|
||||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
let customLookupDefinitions: Definitions = { rpc: {}, types: {} };
|
||||||
? { [pkg]: require(path.join(base, 'definitions')) as Record<string, any> }
|
|
||||||
: {};
|
|
||||||
|
|
||||||
let customLookupDefinitions;
|
if (pkg) {
|
||||||
|
try {
|
||||||
|
extraTypes = {
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-var-requires, @typescript-eslint/no-unsafe-argument
|
||||||
|
[pkg]: require(assertFile(path.join(outputPath, 'definitions.ts'))) as Record<string, any>
|
||||||
|
};
|
||||||
|
} catch (error) {
|
||||||
|
console.error('ERROR: No custom definitions found:', (error as Error).message);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
customLookupDefinitions = {
|
customLookupDefinitions = {
|
||||||
rpc: {},
|
rpc: {},
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-var-requires
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-var-requires
|
||||||
types: require(path.join(base, 'lookup.ts')).default
|
types: require(assertFile(path.join(outputPath, 'lookup.ts'))).default
|
||||||
} as Definitions;
|
};
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log('No custom definitions found.');
|
console.error('ERROR: No lookup definitions found:', (error as Error).message);
|
||||||
}
|
}
|
||||||
|
|
||||||
generateDefaultConsts(path.join(base, 'augment-api-consts.ts'), metaHex, extraTypes, isStrict, customLookupDefinitions);
|
generateDefaultConsts(path.join(outputPath, 'augment-api-consts.ts'), metaHex, extraTypes, isStrict, customLookupDefinitions);
|
||||||
generateDefaultErrors(path.join(base, 'augment-api-errors.ts'), metaHex, extraTypes, isStrict);
|
generateDefaultErrors(path.join(outputPath, 'augment-api-errors.ts'), metaHex, extraTypes, isStrict);
|
||||||
generateDefaultEvents(path.join(base, 'augment-api-events.ts'), metaHex, extraTypes, isStrict, customLookupDefinitions);
|
generateDefaultEvents(path.join(outputPath, 'augment-api-events.ts'), metaHex, extraTypes, isStrict, customLookupDefinitions);
|
||||||
generateDefaultQuery(path.join(base, 'augment-api-query.ts'), metaHex, extraTypes, isStrict, customLookupDefinitions);
|
generateDefaultQuery(path.join(outputPath, 'augment-api-query.ts'), metaHex, extraTypes, isStrict, customLookupDefinitions);
|
||||||
generateDefaultRpc(path.join(base, 'augment-api-rpc.ts'), extraTypes);
|
generateDefaultRpc(path.join(outputPath, 'augment-api-rpc.ts'), extraTypes);
|
||||||
generateDefaultTx(path.join(base, 'augment-api-tx.ts'), metaHex, extraTypes, isStrict, customLookupDefinitions);
|
generateDefaultTx(path.join(outputPath, 'augment-api-tx.ts'), metaHex, extraTypes, isStrict, customLookupDefinitions);
|
||||||
|
|
||||||
writeFile(path.join(base, 'augment-api.ts'), (): string =>
|
writeFile(path.join(outputPath, 'augment-api.ts'), (): string =>
|
||||||
[
|
[
|
||||||
HEADER('chain'),
|
HEADER('chain'),
|
||||||
...[
|
...[
|
||||||
@@ -78,32 +84,11 @@ export function main (): void {
|
|||||||
}).argv as ArgV;
|
}).argv as ArgV;
|
||||||
|
|
||||||
if (endpoint.startsWith('wss://') || endpoint.startsWith('ws://')) {
|
if (endpoint.startsWith('wss://') || endpoint.startsWith('ws://')) {
|
||||||
try {
|
getMetadataViaWs(endpoint)
|
||||||
const websocket = new WebSocket(endpoint);
|
.then((metadata) => generate(metadata, pkg, output, isStrict))
|
||||||
|
.catch(() => process.exit(1));
|
||||||
websocket.onclose = (event: { code: number; reason: string }): void => {
|
|
||||||
console.error(`disconnected, code: '${event.code}' reason: '${event.reason}'`);
|
|
||||||
process.exit(1);
|
|
||||||
};
|
|
||||||
|
|
||||||
websocket.onerror = (event: unknown): void => {
|
|
||||||
console.error(event);
|
|
||||||
process.exit(1);
|
|
||||||
};
|
|
||||||
|
|
||||||
websocket.onopen = (): void => {
|
|
||||||
console.log('connected');
|
|
||||||
websocket.send('{"id":"1","jsonrpc":"2.0","method":"state_getMetadata","params":[]}');
|
|
||||||
};
|
|
||||||
|
|
||||||
websocket.onmessage = (message: unknown): void => {
|
|
||||||
generate((JSON.parse((message as Record<string, string>).data) as Record<string, HexString>).result, pkg, output, isStrict);
|
|
||||||
};
|
|
||||||
} catch (error) {
|
|
||||||
process.exit(1);
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
||||||
generate((require(path.join(process.cwd(), endpoint)) as Record<string, HexString>).result, pkg, output, isStrict);
|
generate((require(assertFile(path.join(process.cwd(), endpoint))) as Record<string, HexString>).result, pkg, output, isStrict);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,11 +7,11 @@ import path from 'path';
|
|||||||
import yargs from 'yargs';
|
import yargs from 'yargs';
|
||||||
|
|
||||||
import * as substrateDefs from '@polkadot/types/interfaces/definitions';
|
import * as substrateDefs from '@polkadot/types/interfaces/definitions';
|
||||||
import { WebSocket } from '@polkadot/x-ws';
|
|
||||||
|
|
||||||
import { generateInterfaceTypes } from './generate/interfaceRegistry';
|
import { generateInterfaceTypes } from './generate/interfaceRegistry';
|
||||||
import { generateTsDef } from './generate/tsDef';
|
import { generateTsDef } from './generate/tsDef';
|
||||||
import { generateDefaultLookup } from './generate';
|
import { generateDefaultLookup } from './generate';
|
||||||
|
import { assertDir, assertFile, getMetadataViaWs } from './util';
|
||||||
|
|
||||||
type ArgV = { input: string; package: string; endpoint?: string; };
|
type ArgV = { input: string; package: string; endpoint?: string; };
|
||||||
|
|
||||||
@@ -33,8 +33,16 @@ export function main (): void {
|
|||||||
}
|
}
|
||||||
}).argv as ArgV;
|
}).argv as ArgV;
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
const inputPath = assertDir(path.join(process.cwd(), input));
|
||||||
const userDefs = require(path.join(process.cwd(), input, 'definitions.ts')) as Record<string, any>;
|
let userDefs: Record<string, any> = {};
|
||||||
|
|
||||||
|
try {
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
||||||
|
userDefs = require(assertFile(path.join(inputPath, 'definitions.ts'))) as Record<string, any>;
|
||||||
|
} catch (error) {
|
||||||
|
console.error('ERROR: Unable to load user definitions:', (error as Error).message);
|
||||||
|
}
|
||||||
|
|
||||||
const userKeys = Object.keys(userDefs);
|
const userKeys = Object.keys(userDefs);
|
||||||
const filteredBase = Object
|
const filteredBase = Object
|
||||||
.entries(substrateDefs as Record<string, unknown>)
|
.entries(substrateDefs as Record<string, unknown>)
|
||||||
@@ -58,41 +66,19 @@ export function main (): void {
|
|||||||
[pkg]: userDefs
|
[pkg]: userDefs
|
||||||
};
|
};
|
||||||
|
|
||||||
generateTsDef(allDefs, path.join(process.cwd(), input), pkg);
|
generateTsDef(allDefs, inputPath, pkg);
|
||||||
generateInterfaceTypes(allDefs, path.join(process.cwd(), input, 'augment-types.ts'));
|
generateInterfaceTypes(allDefs, path.join(inputPath, 'augment-types.ts'));
|
||||||
|
|
||||||
if (endpoint) {
|
if (endpoint) {
|
||||||
if (endpoint.startsWith('wss://') || endpoint.startsWith('ws://')) {
|
if (endpoint.startsWith('wss://') || endpoint.startsWith('ws://')) {
|
||||||
try {
|
getMetadataViaWs(endpoint)
|
||||||
const websocket = new WebSocket(endpoint);
|
.then((metadata) => generateDefaultLookup(inputPath, metadata))
|
||||||
|
.catch(() => process.exit(1));
|
||||||
websocket.onclose = (event: { code: number; reason: string }): void => {
|
|
||||||
console.error(`disconnected, code: '${event.code}' reason: '${event.reason}'`);
|
|
||||||
process.exit(1);
|
|
||||||
};
|
|
||||||
|
|
||||||
websocket.onerror = (event: unknown): void => {
|
|
||||||
console.error(event);
|
|
||||||
process.exit(1);
|
|
||||||
};
|
|
||||||
|
|
||||||
websocket.onopen = (): void => {
|
|
||||||
console.log('connected');
|
|
||||||
websocket.send('{"id":"1","jsonrpc":"2.0","method":"state_getMetadata","params":[]}');
|
|
||||||
};
|
|
||||||
|
|
||||||
websocket.onmessage = (message: unknown): void => {
|
|
||||||
generateDefaultLookup(path.join(process.cwd(), input), (JSON.parse((message as Record<string, string>).data) as Record<string, HexString>).result);
|
|
||||||
process.exit(0);
|
|
||||||
};
|
|
||||||
} catch (error) {
|
|
||||||
process.exit(1);
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
||||||
const metaHex = (require(path.join(process.cwd(), endpoint)) as Record<string, HexString>).result;
|
const metaHex = (require(assertFile(path.join(process.cwd(), endpoint))) as Record<string, HexString>).result;
|
||||||
|
|
||||||
generateDefaultLookup(path.join(process.cwd(), input), metaHex);
|
generateDefaultLookup(inputPath, metaHex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,17 +42,6 @@ function tsExport (registry: Registry, definitions: Record<string, ModuleTypes>,
|
|||||||
return exportInterface(def.lookupIndex, def.name, formatType(registry, definitions, def, imports, false));
|
return exportInterface(def.lookupIndex, def.name, formatType(registry, definitions, def, imports, false));
|
||||||
}
|
}
|
||||||
|
|
||||||
const tsBTreeMap = tsExport;
|
|
||||||
const tsBTreeSet = tsExport;
|
|
||||||
const tsCompact = tsExport;
|
|
||||||
const tsDoNotConstruct = tsExport;
|
|
||||||
const tsHashMap = tsExport;
|
|
||||||
const tsOption = tsExport;
|
|
||||||
const tsPlain = tsExport;
|
|
||||||
const tsTuple = tsExport;
|
|
||||||
const tsWrapperKeepOpaque = tsExport;
|
|
||||||
const tsWrapperOpaque = tsExport;
|
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
function tsEnum (registry: Registry, definitions: Record<string, ModuleTypes>, { lookupIndex, name: enumName, sub }: TypeDef, imports: TypeImports): string {
|
function tsEnum (registry: Registry, definitions: Record<string, ModuleTypes>, { lookupIndex, name: enumName, sub }: TypeDef, imports: TypeImports): string {
|
||||||
setImports(definitions, imports, ['Enum']);
|
setImports(definitions, imports, ['Enum']);
|
||||||
@@ -227,29 +216,29 @@ function tsVec (registry: Registry, definitions: Record<string, ModuleTypes>, de
|
|||||||
// `generators[typedef.info](...)` TS will show any unhandled types. Rather
|
// `generators[typedef.info](...)` TS will show any unhandled types. Rather
|
||||||
// we are being explicit in having no handlers where we do not support (yet)
|
// we are being explicit in having no handlers where we do not support (yet)
|
||||||
export const typeEncoders: Record<TypeDefInfo, (registry: Registry, definitions: Record<string, ModuleTypes>, def: TypeDef, imports: TypeImports) => string> = {
|
export const typeEncoders: Record<TypeDefInfo, (registry: Registry, definitions: Record<string, ModuleTypes>, def: TypeDef, imports: TypeImports) => string> = {
|
||||||
[TypeDefInfo.BTreeMap]: tsBTreeMap,
|
[TypeDefInfo.BTreeMap]: tsExport,
|
||||||
[TypeDefInfo.BTreeSet]: tsBTreeSet,
|
[TypeDefInfo.BTreeSet]: tsExport,
|
||||||
[TypeDefInfo.Compact]: tsCompact,
|
[TypeDefInfo.Compact]: tsExport,
|
||||||
[TypeDefInfo.DoNotConstruct]: tsDoNotConstruct,
|
[TypeDefInfo.DoNotConstruct]: tsExport,
|
||||||
[TypeDefInfo.Enum]: tsEnum,
|
[TypeDefInfo.Enum]: tsEnum,
|
||||||
[TypeDefInfo.HashMap]: tsHashMap,
|
[TypeDefInfo.HashMap]: tsExport,
|
||||||
[TypeDefInfo.Int]: tsInt,
|
[TypeDefInfo.Int]: tsInt,
|
||||||
[TypeDefInfo.Linkage]: errorUnhandled,
|
[TypeDefInfo.Linkage]: errorUnhandled,
|
||||||
[TypeDefInfo.Null]: tsNull,
|
[TypeDefInfo.Null]: tsNull,
|
||||||
[TypeDefInfo.Option]: tsOption,
|
[TypeDefInfo.Option]: tsExport,
|
||||||
[TypeDefInfo.Plain]: tsPlain,
|
[TypeDefInfo.Plain]: tsExport,
|
||||||
[TypeDefInfo.Range]: errorUnhandled,
|
[TypeDefInfo.Range]: tsExport,
|
||||||
[TypeDefInfo.RangeInclusive]: errorUnhandled,
|
[TypeDefInfo.RangeInclusive]: tsExport,
|
||||||
[TypeDefInfo.Result]: tsResult,
|
[TypeDefInfo.Result]: tsResult,
|
||||||
[TypeDefInfo.Set]: tsSet,
|
[TypeDefInfo.Set]: tsSet,
|
||||||
[TypeDefInfo.Si]: tsSi,
|
[TypeDefInfo.Si]: tsSi,
|
||||||
[TypeDefInfo.Struct]: tsStruct,
|
[TypeDefInfo.Struct]: tsStruct,
|
||||||
[TypeDefInfo.Tuple]: tsTuple,
|
[TypeDefInfo.Tuple]: tsExport,
|
||||||
[TypeDefInfo.UInt]: tsUInt,
|
[TypeDefInfo.UInt]: tsUInt,
|
||||||
[TypeDefInfo.Vec]: tsVec,
|
[TypeDefInfo.Vec]: tsVec,
|
||||||
[TypeDefInfo.VecFixed]: tsVec,
|
[TypeDefInfo.VecFixed]: tsVec,
|
||||||
[TypeDefInfo.WrapperKeepOpaque]: tsWrapperKeepOpaque,
|
[TypeDefInfo.WrapperKeepOpaque]: tsExport,
|
||||||
[TypeDefInfo.WrapperOpaque]: tsWrapperOpaque
|
[TypeDefInfo.WrapperOpaque]: tsExport
|
||||||
};
|
};
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
|
|||||||
@@ -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: '8.3.1' };
|
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '8.4.1' };
|
||||||
|
|||||||
@@ -0,0 +1,18 @@
|
|||||||
|
// Copyright 2017-2022 @polkadot/typegen authors & contributors
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
import fs from 'fs';
|
||||||
|
|
||||||
|
import { assert } from '@polkadot/util';
|
||||||
|
|
||||||
|
export function assertDir (path: string): string {
|
||||||
|
assert(fs.existsSync(path) && fs.lstatSync(path).isDirectory(), `${path} is not a directory`);
|
||||||
|
|
||||||
|
return path;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function assertFile (path: string): string {
|
||||||
|
assert(fs.existsSync(path) && fs.lstatSync(path).isFile(), `${path} is not a file`);
|
||||||
|
|
||||||
|
return path;
|
||||||
|
}
|
||||||
@@ -4,7 +4,7 @@
|
|||||||
import type { Constructor, Registry } from '@polkadot/types/types';
|
import type { Constructor, Registry } from '@polkadot/types/types';
|
||||||
import type { TypeDef } from '@polkadot/types-create/types';
|
import type { TypeDef } from '@polkadot/types-create/types';
|
||||||
|
|
||||||
import { GenericAccountId, GenericLookupSource, GenericVote } from '@polkadot/types/generic';
|
import { GenericAccountId, GenericCall, GenericLookupSource, GenericVote } from '@polkadot/types/generic';
|
||||||
import { AllConvictions } from '@polkadot/types/interfaces/democracy/definitions';
|
import { AllConvictions } from '@polkadot/types/interfaces/democracy/definitions';
|
||||||
import { AbstractInt, bool, Compact, Enum, Null, Option, Struct, Tuple, UInt, Vec, WrapperKeepOpaque, WrapperOpaque } from '@polkadot/types-codec';
|
import { AbstractInt, bool, Compact, Enum, Null, Option, Struct, Tuple, UInt, Vec, WrapperKeepOpaque, WrapperOpaque } from '@polkadot/types-codec';
|
||||||
import { getTypeDef, TypeDefInfo } from '@polkadot/types-create';
|
import { getTypeDef, TypeDefInfo } from '@polkadot/types-create';
|
||||||
@@ -84,6 +84,8 @@ export function getSimilarTypes (registry: Registry, definitions: Record<string,
|
|||||||
possibleTypes.push('Address', 'AccountId', 'AccountIndex', 'LookupSource', 'string', 'Uint8Array');
|
possibleTypes.push('Address', 'AccountId', 'AccountIndex', 'LookupSource', 'string', 'Uint8Array');
|
||||||
} else if (isChildClass(GenericAccountId, Clazz)) {
|
} else if (isChildClass(GenericAccountId, Clazz)) {
|
||||||
possibleTypes.push('string', 'Uint8Array');
|
possibleTypes.push('string', 'Uint8Array');
|
||||||
|
} else if (isChildClass(GenericCall, Clazz)) {
|
||||||
|
possibleTypes.push('IMethod', 'string', 'Uint8Array');
|
||||||
} else if (isChildClass(bool, Clazz)) {
|
} else if (isChildClass(bool, Clazz)) {
|
||||||
possibleTypes.push('boolean', 'Uint8Array');
|
possibleTypes.push('boolean', 'Uint8Array');
|
||||||
} else if (isChildClass(Null, Clazz)) {
|
} else if (isChildClass(Null, Clazz)) {
|
||||||
|
|||||||
@@ -175,11 +175,11 @@ const formatters: Record<TypeDefInfo, (registry: Registry, typeDef: TypeDef, def
|
|||||||
},
|
},
|
||||||
|
|
||||||
[TypeDefInfo.Range]: (registry: Registry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
[TypeDefInfo.Range]: (registry: Registry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
||||||
throw new Error(`TypeDefInfo.Range: Not implemented on ${stringify(typeDef)}`);
|
return singleParamNotation(registry, 'Range', typeDef, definitions, imports, withShortcut);
|
||||||
},
|
},
|
||||||
|
|
||||||
[TypeDefInfo.RangeInclusive]: (registry: Registry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
[TypeDefInfo.RangeInclusive]: (registry: Registry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
||||||
throw new Error(`TypeDefInfo.RangeInclusive: Not implemented on ${stringify(typeDef)}`);
|
return singleParamNotation(registry, 'RangeInclusive', typeDef, definitions, imports, withShortcut);
|
||||||
},
|
},
|
||||||
|
|
||||||
[TypeDefInfo.Set]: (registry: Registry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
[TypeDefInfo.Set]: (registry: Registry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ export function setImports (allDefs: Record<string, ModuleTypes>, imports: TypeI
|
|||||||
types.filter((t): t is string => !!t).forEach((type): void => {
|
types.filter((t): t is string => !!t).forEach((type): void => {
|
||||||
if (ignoredTypes.includes(type)) {
|
if (ignoredTypes.includes(type)) {
|
||||||
// do nothing
|
// do nothing
|
||||||
} else if (['AnyNumber', 'CallFunction', 'Codec', 'IExtrinsic', 'ITuple'].includes(type)) {
|
} else if (['AnyNumber', 'CallFunction', 'Codec', 'IExtrinsic', 'IMethod', 'ITuple'].includes(type)) {
|
||||||
typesTypes[type] = true;
|
typesTypes[type] = true;
|
||||||
} else if (['Metadata', 'PortableRegistry'].includes(type)) {
|
} else if (['Metadata', 'PortableRegistry'].includes(type)) {
|
||||||
metadataTypes[type] = true;
|
metadataTypes[type] = true;
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
// Copyright 2017-2022 @polkadot/typegen authors & contributors
|
// Copyright 2017-2022 @polkadot/typegen authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
export * from './assert';
|
||||||
export * from './derived';
|
export * from './derived';
|
||||||
export * from './docs';
|
export * from './docs';
|
||||||
export * from './file';
|
export * from './file';
|
||||||
@@ -8,6 +9,7 @@ export * from './formatting';
|
|||||||
export * from './imports';
|
export * from './imports';
|
||||||
export * from './initMeta';
|
export * from './initMeta';
|
||||||
export * from './register';
|
export * from './register';
|
||||||
|
export * from './wsMeta';
|
||||||
|
|
||||||
type Cmp = { name: { toString(): string } };
|
type Cmp = { name: { toString(): string } };
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,35 @@
|
|||||||
|
// Copyright 2017-2022 @polkadot/typegen authors & contributors
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
import type { HexString } from '@polkadot/util/types';
|
||||||
|
|
||||||
|
import { WebSocket } from '@polkadot/x-ws';
|
||||||
|
|
||||||
|
export async function getMetadataViaWs (endpoint: string): Promise<HexString> {
|
||||||
|
return new Promise((resolve): void => {
|
||||||
|
try {
|
||||||
|
const websocket = new WebSocket(endpoint);
|
||||||
|
|
||||||
|
websocket.onclose = (event: { code: number; reason: string }): void => {
|
||||||
|
console.error(`disconnected, code: '${event.code}' reason: '${event.reason}'`);
|
||||||
|
process.exit(1);
|
||||||
|
};
|
||||||
|
|
||||||
|
websocket.onerror = (event: unknown): void => {
|
||||||
|
console.error(event);
|
||||||
|
process.exit(1);
|
||||||
|
};
|
||||||
|
|
||||||
|
websocket.onopen = (): void => {
|
||||||
|
console.log('connected');
|
||||||
|
websocket.send('{"id":"1","jsonrpc":"2.0","method":"state_getMetadata","params":[]}');
|
||||||
|
};
|
||||||
|
|
||||||
|
websocket.onmessage = (message: { data: string }): void => {
|
||||||
|
resolve((JSON.parse(message.data) as { result: HexString }).result);
|
||||||
|
};
|
||||||
|
} catch (error) {
|
||||||
|
process.exit(1);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
@@ -20,12 +20,12 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "8.3.1",
|
"version": "8.4.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.17.9",
|
"@babel/runtime": "^7.17.9",
|
||||||
"@polkadot/types": "8.3.1",
|
"@polkadot/types": "8.4.1",
|
||||||
"@polkadot/types-codec": "8.3.1",
|
"@polkadot/types-codec": "8.4.1",
|
||||||
"@polkadot/util": "^9.1.1"
|
"@polkadot/util": "^9.2.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ export default {
|
|||||||
_enum: ['Any', 'NonTransfer', 'Governance', 'Staking', 'IdentityJudgement', 'CancelProxy', 'Auction', 'Society']
|
_enum: ['Any', 'NonTransfer', 'Governance', 'Staking', 'IdentityJudgement', 'CancelProxy', 'Auction', 'Society']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup253: kusama_runtime::SessionKeys
|
* Lookup258: kusama_runtime::SessionKeys
|
||||||
**/
|
**/
|
||||||
KusamaRuntimeSessionKeys: {
|
KusamaRuntimeSessionKeys: {
|
||||||
grandpa: 'SpFinalityGrandpaAppPublic',
|
grandpa: 'SpFinalityGrandpaAppPublic',
|
||||||
@@ -22,7 +22,7 @@ export default {
|
|||||||
authorityDiscovery: 'SpAuthorityDiscoveryAppPublic'
|
authorityDiscovery: 'SpAuthorityDiscoveryAppPublic'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup327: kusama_runtime::OriginCaller
|
* Lookup332: kusama_runtime::OriginCaller
|
||||||
**/
|
**/
|
||||||
KusamaRuntimeOriginCaller: {
|
KusamaRuntimeOriginCaller: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -129,7 +129,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup393: kusama_runtime::NposCompactSolution24
|
* Lookup398: kusama_runtime::NposCompactSolution24
|
||||||
**/
|
**/
|
||||||
KusamaRuntimeNposCompactSolution24: {
|
KusamaRuntimeNposCompactSolution24: {
|
||||||
votes1: 'Vec<(Compact<u32>,Compact<u16>)>',
|
votes1: 'Vec<(Compact<u32>,Compact<u16>)>',
|
||||||
@@ -158,7 +158,7 @@ export default {
|
|||||||
votes24: 'Vec<(Compact<u32>,[(Compact<u16>,Compact<PerU16>);23],Compact<u16>)>'
|
votes24: 'Vec<(Compact<u32>,[(Compact<u16>,Compact<PerU16>);23],Compact<u16>)>'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup747: kusama_runtime::Runtime
|
* Lookup753: kusama_runtime::Runtime
|
||||||
**/
|
**/
|
||||||
KusamaRuntimeRuntime: 'Null'
|
KusamaRuntimeRuntime: 'Null'
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1777,13 +1777,13 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup541: polkadot_runtime_common::claims::pallet::Error<T>
|
* Lookup546: polkadot_runtime_common::claims::pallet::Error<T>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeCommonClaimsPalletError: {
|
PolkadotRuntimeCommonClaimsPalletError: {
|
||||||
_enum: ['InvalidEthereumSignature', 'SignerHasNoClaim', 'SenderHasNoClaim', 'PotUnderflow', 'InvalidStatement', 'VestedBalanceExists']
|
_enum: ['InvalidEthereumSignature', 'SignerHasNoClaim', 'SenderHasNoClaim', 'PotUnderflow', 'InvalidStatement', 'VestedBalanceExists']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup596: polkadot_runtime_parachains::configuration::HostConfiguration<BlockNumber>
|
* Lookup602: polkadot_runtime_parachains::configuration::HostConfiguration<BlockNumber>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsConfigurationHostConfiguration: {
|
PolkadotRuntimeParachainsConfigurationHostConfiguration: {
|
||||||
maxCodeSize: 'u32',
|
maxCodeSize: 'u32',
|
||||||
@@ -1831,20 +1831,20 @@ export default {
|
|||||||
minimumValidationUpgradeDelay: 'u32'
|
minimumValidationUpgradeDelay: 'u32'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup599: polkadot_runtime_parachains::configuration::pallet::Error<T>
|
* Lookup605: polkadot_runtime_parachains::configuration::pallet::Error<T>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsConfigurationPalletError: {
|
PolkadotRuntimeParachainsConfigurationPalletError: {
|
||||||
_enum: ['InvalidNewValue']
|
_enum: ['InvalidNewValue']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup602: polkadot_runtime_parachains::inclusion::AvailabilityBitfieldRecord<N>
|
* Lookup608: polkadot_runtime_parachains::inclusion::AvailabilityBitfieldRecord<N>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord: {
|
PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord: {
|
||||||
bitfield: 'BitVec',
|
bitfield: 'BitVec',
|
||||||
submittedAt: 'u32'
|
submittedAt: 'u32'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup603: polkadot_runtime_parachains::inclusion::CandidatePendingAvailability<primitive_types::H256, N>
|
* Lookup609: polkadot_runtime_parachains::inclusion::CandidatePendingAvailability<primitive_types::H256, N>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsInclusionCandidatePendingAvailability: {
|
PolkadotRuntimeParachainsInclusionCandidatePendingAvailability: {
|
||||||
_alias: {
|
_alias: {
|
||||||
@@ -1860,13 +1860,13 @@ export default {
|
|||||||
backingGroup: 'u32'
|
backingGroup: 'u32'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup604: polkadot_runtime_parachains::inclusion::pallet::Error<T>
|
* Lookup610: polkadot_runtime_parachains::inclusion::pallet::Error<T>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsInclusionPalletError: {
|
PolkadotRuntimeParachainsInclusionPalletError: {
|
||||||
_enum: ['UnsortedOrDuplicateValidatorIndices', 'UnsortedOrDuplicateDisputeStatementSet', 'UnsortedOrDuplicateBackedCandidates', 'UnexpectedRelayParent', 'WrongBitfieldSize', 'BitfieldAllZeros', 'BitfieldDuplicateOrUnordered', 'ValidatorIndexOutOfBounds', 'InvalidBitfieldSignature', 'UnscheduledCandidate', 'CandidateScheduledBeforeParaFree', 'WrongCollator', 'ScheduledOutOfOrder', 'HeadDataTooLarge', 'PrematureCodeUpgrade', 'NewCodeTooLarge', 'CandidateNotInParentContext', 'InvalidGroupIndex', 'InsufficientBacking', 'InvalidBacking', 'NotCollatorSigned', 'ValidationDataHashMismatch', 'IncorrectDownwardMessageHandling', 'InvalidUpwardMessages', 'HrmpWatermarkMishandling', 'InvalidOutboundHrmp', 'InvalidValidationCodeHash', 'ParaHeadMismatch', 'BitfieldReferencesFreedCore']
|
_enum: ['UnsortedOrDuplicateValidatorIndices', 'UnsortedOrDuplicateDisputeStatementSet', 'UnsortedOrDuplicateBackedCandidates', 'UnexpectedRelayParent', 'WrongBitfieldSize', 'BitfieldAllZeros', 'BitfieldDuplicateOrUnordered', 'ValidatorIndexOutOfBounds', 'InvalidBitfieldSignature', 'UnscheduledCandidate', 'CandidateScheduledBeforeParaFree', 'WrongCollator', 'ScheduledOutOfOrder', 'HeadDataTooLarge', 'PrematureCodeUpgrade', 'NewCodeTooLarge', 'CandidateNotInParentContext', 'InvalidGroupIndex', 'InsufficientBacking', 'InvalidBacking', 'NotCollatorSigned', 'ValidationDataHashMismatch', 'IncorrectDownwardMessageHandling', 'InvalidUpwardMessages', 'HrmpWatermarkMishandling', 'InvalidOutboundHrmp', 'InvalidValidationCodeHash', 'ParaHeadMismatch', 'BitfieldReferencesFreedCore']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup605: polkadot_primitives::v2::ScrapedOnChainVotes<primitive_types::H256>
|
* Lookup611: polkadot_primitives::v2::ScrapedOnChainVotes<primitive_types::H256>
|
||||||
**/
|
**/
|
||||||
PolkadotPrimitivesV2ScrapedOnChainVotes: {
|
PolkadotPrimitivesV2ScrapedOnChainVotes: {
|
||||||
session: 'u32',
|
session: 'u32',
|
||||||
@@ -1874,38 +1874,38 @@ export default {
|
|||||||
disputes: 'Vec<PolkadotPrimitivesV2DisputeStatementSet>'
|
disputes: 'Vec<PolkadotPrimitivesV2DisputeStatementSet>'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup610: polkadot_runtime_parachains::paras_inherent::pallet::Error<T>
|
* Lookup616: polkadot_runtime_parachains::paras_inherent::pallet::Error<T>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsParasInherentPalletError: {
|
PolkadotRuntimeParachainsParasInherentPalletError: {
|
||||||
_enum: ['TooManyInclusionInherents', 'InvalidParentHeader', 'CandidateConcludedInvalid', 'InherentOverweight', 'DisputeStatementsUnsortedOrDuplicates', 'DisputeInvalid']
|
_enum: ['TooManyInclusionInherents', 'InvalidParentHeader', 'CandidateConcludedInvalid', 'InherentOverweight', 'DisputeStatementsUnsortedOrDuplicates', 'DisputeInvalid']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup612: polkadot_runtime_parachains::scheduler::ParathreadClaimQueue
|
* Lookup618: polkadot_runtime_parachains::scheduler::ParathreadClaimQueue
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsSchedulerParathreadClaimQueue: {
|
PolkadotRuntimeParachainsSchedulerParathreadClaimQueue: {
|
||||||
queue: 'Vec<PolkadotRuntimeParachainsSchedulerQueuedParathread>',
|
queue: 'Vec<PolkadotRuntimeParachainsSchedulerQueuedParathread>',
|
||||||
nextCoreOffset: 'u32'
|
nextCoreOffset: 'u32'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup614: polkadot_runtime_parachains::scheduler::QueuedParathread
|
* Lookup620: polkadot_runtime_parachains::scheduler::QueuedParathread
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsSchedulerQueuedParathread: {
|
PolkadotRuntimeParachainsSchedulerQueuedParathread: {
|
||||||
claim: 'PolkadotPrimitivesV2ParathreadEntry',
|
claim: 'PolkadotPrimitivesV2ParathreadEntry',
|
||||||
coreOffset: 'u32'
|
coreOffset: 'u32'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup615: polkadot_primitives::v2::ParathreadEntry
|
* Lookup621: polkadot_primitives::v2::ParathreadEntry
|
||||||
**/
|
**/
|
||||||
PolkadotPrimitivesV2ParathreadEntry: {
|
PolkadotPrimitivesV2ParathreadEntry: {
|
||||||
claim: 'PolkadotPrimitivesV2ParathreadClaim',
|
claim: 'PolkadotPrimitivesV2ParathreadClaim',
|
||||||
retries: 'u32'
|
retries: 'u32'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup616: polkadot_primitives::v2::ParathreadClaim
|
* Lookup622: polkadot_primitives::v2::ParathreadClaim
|
||||||
**/
|
**/
|
||||||
PolkadotPrimitivesV2ParathreadClaim: '(u32,PolkadotPrimitivesV2CollatorAppPublic)',
|
PolkadotPrimitivesV2ParathreadClaim: '(u32,PolkadotPrimitivesV2CollatorAppPublic)',
|
||||||
/**
|
/**
|
||||||
* Lookup619: polkadot_primitives::v2::CoreOccupied
|
* Lookup625: polkadot_primitives::v2::CoreOccupied
|
||||||
**/
|
**/
|
||||||
PolkadotPrimitivesV2CoreOccupied: {
|
PolkadotPrimitivesV2CoreOccupied: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -1914,7 +1914,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup622: polkadot_runtime_parachains::scheduler::CoreAssignment
|
* Lookup628: polkadot_runtime_parachains::scheduler::CoreAssignment
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsSchedulerCoreAssignment: {
|
PolkadotRuntimeParachainsSchedulerCoreAssignment: {
|
||||||
core: 'u32',
|
core: 'u32',
|
||||||
@@ -1923,7 +1923,7 @@ export default {
|
|||||||
groupIdx: 'u32'
|
groupIdx: 'u32'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup623: polkadot_runtime_parachains::scheduler::AssignmentKind
|
* Lookup629: polkadot_runtime_parachains::scheduler::AssignmentKind
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsSchedulerAssignmentKind: {
|
PolkadotRuntimeParachainsSchedulerAssignmentKind: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -1932,7 +1932,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup624: polkadot_runtime_parachains::paras::PvfCheckActiveVoteState<BlockNumber>
|
* Lookup630: polkadot_runtime_parachains::paras::PvfCheckActiveVoteState<BlockNumber>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsParasPvfCheckActiveVoteState: {
|
PolkadotRuntimeParachainsParasPvfCheckActiveVoteState: {
|
||||||
votesAccept: 'BitVec',
|
votesAccept: 'BitVec',
|
||||||
@@ -1942,7 +1942,7 @@ export default {
|
|||||||
causes: 'Vec<PolkadotRuntimeParachainsParasPvfCheckCause>'
|
causes: 'Vec<PolkadotRuntimeParachainsParasPvfCheckCause>'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup626: polkadot_runtime_parachains::paras::PvfCheckCause<BlockNumber>
|
* Lookup632: polkadot_runtime_parachains::paras::PvfCheckCause<BlockNumber>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsParasPvfCheckCause: {
|
PolkadotRuntimeParachainsParasPvfCheckCause: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -1954,39 +1954,39 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup628: polkadot_runtime_parachains::paras::ParaLifecycle
|
* Lookup634: polkadot_runtime_parachains::paras::ParaLifecycle
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsParasParaLifecycle: {
|
PolkadotRuntimeParachainsParasParaLifecycle: {
|
||||||
_enum: ['Onboarding', 'Parathread', 'Parachain', 'UpgradingParathread', 'DowngradingParachain', 'OffboardingParathread', 'OffboardingParachain']
|
_enum: ['Onboarding', 'Parathread', 'Parachain', 'UpgradingParathread', 'DowngradingParachain', 'OffboardingParathread', 'OffboardingParachain']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup630: polkadot_runtime_parachains::paras::ParaPastCodeMeta<N>
|
* Lookup636: polkadot_runtime_parachains::paras::ParaPastCodeMeta<N>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsParasParaPastCodeMeta: {
|
PolkadotRuntimeParachainsParasParaPastCodeMeta: {
|
||||||
upgradeTimes: 'Vec<PolkadotRuntimeParachainsParasReplacementTimes>',
|
upgradeTimes: 'Vec<PolkadotRuntimeParachainsParasReplacementTimes>',
|
||||||
lastPruned: 'Option<u32>'
|
lastPruned: 'Option<u32>'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup632: polkadot_runtime_parachains::paras::ReplacementTimes<N>
|
* Lookup638: polkadot_runtime_parachains::paras::ReplacementTimes<N>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsParasReplacementTimes: {
|
PolkadotRuntimeParachainsParasReplacementTimes: {
|
||||||
expectedAt: 'u32',
|
expectedAt: 'u32',
|
||||||
activatedAt: 'u32'
|
activatedAt: 'u32'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup634: polkadot_primitives::v2::UpgradeGoAhead
|
* Lookup640: polkadot_primitives::v2::UpgradeGoAhead
|
||||||
**/
|
**/
|
||||||
PolkadotPrimitivesV2UpgradeGoAhead: {
|
PolkadotPrimitivesV2UpgradeGoAhead: {
|
||||||
_enum: ['Abort', 'GoAhead']
|
_enum: ['Abort', 'GoAhead']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup635: polkadot_primitives::v2::UpgradeRestriction
|
* Lookup641: polkadot_primitives::v2::UpgradeRestriction
|
||||||
**/
|
**/
|
||||||
PolkadotPrimitivesV2UpgradeRestriction: {
|
PolkadotPrimitivesV2UpgradeRestriction: {
|
||||||
_enum: ['Present']
|
_enum: ['Present']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup636: polkadot_runtime_parachains::paras::ParaGenesisArgs
|
* Lookup642: polkadot_runtime_parachains::paras::ParaGenesisArgs
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsParasParaGenesisArgs: {
|
PolkadotRuntimeParachainsParasParaGenesisArgs: {
|
||||||
genesisHead: 'Bytes',
|
genesisHead: 'Bytes',
|
||||||
@@ -1994,13 +1994,13 @@ export default {
|
|||||||
parachain: 'bool'
|
parachain: 'bool'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup637: polkadot_runtime_parachains::paras::pallet::Error<T>
|
* Lookup643: polkadot_runtime_parachains::paras::pallet::Error<T>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsParasPalletError: {
|
PolkadotRuntimeParachainsParasPalletError: {
|
||||||
_enum: ['NotRegistered', 'CannotOnboard', 'CannotOffboard', 'CannotUpgrade', 'CannotDowngrade', 'PvfCheckStatementStale', 'PvfCheckStatementFuture', 'PvfCheckValidatorIndexOutOfBounds', 'PvfCheckInvalidSignature', 'PvfCheckDoubleVote', 'PvfCheckSubjectInvalid', 'PvfCheckDisabled']
|
_enum: ['NotRegistered', 'CannotOnboard', 'CannotOffboard', 'CannotUpgrade', 'CannotDowngrade', 'PvfCheckStatementStale', 'PvfCheckStatementFuture', 'PvfCheckValidatorIndexOutOfBounds', 'PvfCheckInvalidSignature', 'PvfCheckDoubleVote', 'PvfCheckSubjectInvalid', 'PvfCheckDisabled']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup639: polkadot_runtime_parachains::initializer::BufferedSessionChange
|
* Lookup645: polkadot_runtime_parachains::initializer::BufferedSessionChange
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsInitializerBufferedSessionChange: {
|
PolkadotRuntimeParachainsInitializerBufferedSessionChange: {
|
||||||
validators: 'Vec<PolkadotPrimitivesV2ValidatorAppPublic>',
|
validators: 'Vec<PolkadotPrimitivesV2ValidatorAppPublic>',
|
||||||
@@ -2008,20 +2008,20 @@ export default {
|
|||||||
sessionIndex: 'u32'
|
sessionIndex: 'u32'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup641: polkadot_core_primitives::InboundDownwardMessage<BlockNumber>
|
* Lookup647: polkadot_core_primitives::InboundDownwardMessage<BlockNumber>
|
||||||
**/
|
**/
|
||||||
PolkadotCorePrimitivesInboundDownwardMessage: {
|
PolkadotCorePrimitivesInboundDownwardMessage: {
|
||||||
sentAt: 'u32',
|
sentAt: 'u32',
|
||||||
msg: 'Bytes'
|
msg: 'Bytes'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup643: polkadot_runtime_parachains::ump::pallet::Error<T>
|
* Lookup649: polkadot_runtime_parachains::ump::pallet::Error<T>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsUmpPalletError: {
|
PolkadotRuntimeParachainsUmpPalletError: {
|
||||||
_enum: ['UnknownMessageIndex', 'WeightOverLimit']
|
_enum: ['UnknownMessageIndex', 'WeightOverLimit']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup644: polkadot_runtime_parachains::hrmp::HrmpOpenChannelRequest
|
* Lookup650: polkadot_runtime_parachains::hrmp::HrmpOpenChannelRequest
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest: {
|
PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest: {
|
||||||
confirmed: 'bool',
|
confirmed: 'bool',
|
||||||
@@ -2032,7 +2032,7 @@ export default {
|
|||||||
maxTotalSize: 'u32'
|
maxTotalSize: 'u32'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup646: polkadot_runtime_parachains::hrmp::HrmpChannel
|
* Lookup652: polkadot_runtime_parachains::hrmp::HrmpChannel
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsHrmpHrmpChannel: {
|
PolkadotRuntimeParachainsHrmpHrmpChannel: {
|
||||||
maxCapacity: 'u32',
|
maxCapacity: 'u32',
|
||||||
@@ -2045,20 +2045,20 @@ export default {
|
|||||||
recipientDeposit: 'u128'
|
recipientDeposit: 'u128'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup649: polkadot_core_primitives::InboundHrmpMessage<BlockNumber>
|
* Lookup655: polkadot_core_primitives::InboundHrmpMessage<BlockNumber>
|
||||||
**/
|
**/
|
||||||
PolkadotCorePrimitivesInboundHrmpMessage: {
|
PolkadotCorePrimitivesInboundHrmpMessage: {
|
||||||
sentAt: 'u32',
|
sentAt: 'u32',
|
||||||
data: 'Bytes'
|
data: 'Bytes'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup652: polkadot_runtime_parachains::hrmp::pallet::Error<T>
|
* Lookup658: polkadot_runtime_parachains::hrmp::pallet::Error<T>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsHrmpPalletError: {
|
PolkadotRuntimeParachainsHrmpPalletError: {
|
||||||
_enum: ['OpenHrmpChannelToSelf', 'OpenHrmpChannelInvalidRecipient', 'OpenHrmpChannelZeroCapacity', 'OpenHrmpChannelCapacityExceedsLimit', 'OpenHrmpChannelZeroMessageSize', 'OpenHrmpChannelMessageSizeExceedsLimit', 'OpenHrmpChannelAlreadyExists', 'OpenHrmpChannelAlreadyRequested', 'OpenHrmpChannelLimitExceeded', 'AcceptHrmpChannelDoesntExist', 'AcceptHrmpChannelAlreadyConfirmed', 'AcceptHrmpChannelLimitExceeded', 'CloseHrmpChannelUnauthorized', 'CloseHrmpChannelDoesntExist', 'CloseHrmpChannelAlreadyUnderway', 'CancelHrmpOpenChannelUnauthorized', 'OpenHrmpChannelDoesntExist', 'OpenHrmpChannelAlreadyConfirmed', 'WrongWitness']
|
_enum: ['OpenHrmpChannelToSelf', 'OpenHrmpChannelInvalidRecipient', 'OpenHrmpChannelZeroCapacity', 'OpenHrmpChannelCapacityExceedsLimit', 'OpenHrmpChannelZeroMessageSize', 'OpenHrmpChannelMessageSizeExceedsLimit', 'OpenHrmpChannelAlreadyExists', 'OpenHrmpChannelAlreadyRequested', 'OpenHrmpChannelLimitExceeded', 'AcceptHrmpChannelDoesntExist', 'AcceptHrmpChannelAlreadyConfirmed', 'AcceptHrmpChannelLimitExceeded', 'CloseHrmpChannelUnauthorized', 'CloseHrmpChannelDoesntExist', 'CloseHrmpChannelAlreadyUnderway', 'CancelHrmpOpenChannelUnauthorized', 'OpenHrmpChannelDoesntExist', 'OpenHrmpChannelAlreadyConfirmed', 'WrongWitness']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup654: polkadot_primitives::v2::SessionInfo
|
* Lookup660: polkadot_primitives::v2::SessionInfo
|
||||||
**/
|
**/
|
||||||
PolkadotPrimitivesV2SessionInfo: {
|
PolkadotPrimitivesV2SessionInfo: {
|
||||||
activeValidatorIndices: 'Vec<u32>',
|
activeValidatorIndices: 'Vec<u32>',
|
||||||
@@ -2076,7 +2076,7 @@ export default {
|
|||||||
neededApprovals: 'u32'
|
neededApprovals: 'u32'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup657: polkadot_primitives::v2::DisputeState<N>
|
* Lookup663: polkadot_primitives::v2::DisputeState<N>
|
||||||
**/
|
**/
|
||||||
PolkadotPrimitivesV2DisputeState: {
|
PolkadotPrimitivesV2DisputeState: {
|
||||||
validatorsFor: 'BitVec',
|
validatorsFor: 'BitVec',
|
||||||
@@ -2085,13 +2085,13 @@ export default {
|
|||||||
concludedAt: 'Option<u32>'
|
concludedAt: 'Option<u32>'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup658: polkadot_runtime_parachains::disputes::pallet::Error<T>
|
* Lookup664: polkadot_runtime_parachains::disputes::pallet::Error<T>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsDisputesPalletError: {
|
PolkadotRuntimeParachainsDisputesPalletError: {
|
||||||
_enum: ['DuplicateDisputeStatementSets', 'AncientDisputeStatement', 'ValidatorIndexOutOfBounds', 'InvalidSignature', 'DuplicateStatement', 'PotentialSpam', 'SingleSidedDispute']
|
_enum: ['DuplicateDisputeStatementSets', 'AncientDisputeStatement', 'ValidatorIndexOutOfBounds', 'InvalidSignature', 'DuplicateStatement', 'PotentialSpam', 'SingleSidedDispute']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup659: polkadot_runtime_common::paras_registrar::ParaInfo<sp_core::crypto::AccountId32, Balance>
|
* Lookup665: polkadot_runtime_common::paras_registrar::ParaInfo<sp_core::crypto::AccountId32, Balance>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeCommonParasRegistrarParaInfo: {
|
PolkadotRuntimeCommonParasRegistrarParaInfo: {
|
||||||
manager: 'AccountId32',
|
manager: 'AccountId32',
|
||||||
@@ -2099,25 +2099,25 @@ export default {
|
|||||||
locked: 'bool'
|
locked: 'bool'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup660: polkadot_runtime_common::paras_registrar::pallet::Error<T>
|
* Lookup666: polkadot_runtime_common::paras_registrar::pallet::Error<T>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeCommonParasRegistrarPalletError: {
|
PolkadotRuntimeCommonParasRegistrarPalletError: {
|
||||||
_enum: ['NotRegistered', 'AlreadyRegistered', 'NotOwner', 'CodeTooLarge', 'HeadDataTooLarge', 'NotParachain', 'NotParathread', 'CannotDeregister', 'CannotDowngrade', 'CannotUpgrade', 'ParaLocked', 'NotReserved', 'EmptyCode', 'CannotSwap']
|
_enum: ['NotRegistered', 'AlreadyRegistered', 'NotOwner', 'CodeTooLarge', 'HeadDataTooLarge', 'NotParachain', 'NotParathread', 'CannotDeregister', 'CannotDowngrade', 'CannotUpgrade', 'ParaLocked', 'NotReserved', 'EmptyCode', 'CannotSwap']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup662: polkadot_runtime_common::slots::pallet::Error<T>
|
* Lookup668: polkadot_runtime_common::slots::pallet::Error<T>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeCommonSlotsPalletError: {
|
PolkadotRuntimeCommonSlotsPalletError: {
|
||||||
_enum: ['ParaNotOnboarding', 'LeaseError']
|
_enum: ['ParaNotOnboarding', 'LeaseError']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup667: polkadot_runtime_common::auctions::pallet::Error<T>
|
* Lookup673: polkadot_runtime_common::auctions::pallet::Error<T>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeCommonAuctionsPalletError: {
|
PolkadotRuntimeCommonAuctionsPalletError: {
|
||||||
_enum: ['AuctionInProgress', 'LeasePeriodInPast', 'ParaNotRegistered', 'NotCurrentAuction', 'NotAuction', 'AuctionEnded', 'AlreadyLeasedOut']
|
_enum: ['AuctionInProgress', 'LeasePeriodInPast', 'ParaNotRegistered', 'NotCurrentAuction', 'NotAuction', 'AuctionEnded', 'AlreadyLeasedOut']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup668: polkadot_runtime_common::crowdloan::FundInfo<sp_core::crypto::AccountId32, Balance, BlockNumber, LeasePeriod>
|
* Lookup674: polkadot_runtime_common::crowdloan::FundInfo<sp_core::crypto::AccountId32, Balance, BlockNumber, LeasePeriod>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeCommonCrowdloanFundInfo: {
|
PolkadotRuntimeCommonCrowdloanFundInfo: {
|
||||||
depositor: 'AccountId32',
|
depositor: 'AccountId32',
|
||||||
@@ -2132,7 +2132,7 @@ export default {
|
|||||||
fundIndex: 'u32'
|
fundIndex: 'u32'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup669: polkadot_runtime_common::crowdloan::LastContribution<BlockNumber>
|
* Lookup675: polkadot_runtime_common::crowdloan::LastContribution<BlockNumber>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeCommonCrowdloanLastContribution: {
|
PolkadotRuntimeCommonCrowdloanLastContribution: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -2142,13 +2142,13 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup670: polkadot_runtime_common::crowdloan::pallet::Error<T>
|
* Lookup676: polkadot_runtime_common::crowdloan::pallet::Error<T>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeCommonCrowdloanPalletError: {
|
PolkadotRuntimeCommonCrowdloanPalletError: {
|
||||||
_enum: ['FirstPeriodInPast', 'FirstPeriodTooFarInFuture', 'LastPeriodBeforeFirstPeriod', 'LastPeriodTooFarInFuture', 'CannotEndInPast', 'EndTooFarInFuture', 'Overflow', 'ContributionTooSmall', 'InvalidParaId', 'CapExceeded', 'ContributionPeriodOver', 'InvalidOrigin', 'NotParachain', 'LeaseActive', 'BidOrLeaseActive', 'FundNotEnded', 'NoContributions', 'NotReadyToDissolve', 'InvalidSignature', 'MemoTooLarge', 'AlreadyInNewRaise', 'VrfDelayInProgress', 'NoLeasePeriod']
|
_enum: ['FirstPeriodInPast', 'FirstPeriodTooFarInFuture', 'LastPeriodBeforeFirstPeriod', 'LastPeriodTooFarInFuture', 'CannotEndInPast', 'EndTooFarInFuture', 'Overflow', 'ContributionTooSmall', 'InvalidParaId', 'CapExceeded', 'ContributionPeriodOver', 'InvalidOrigin', 'NotParachain', 'LeaseActive', 'BidOrLeaseActive', 'FundNotEnded', 'NoContributions', 'NotReadyToDissolve', 'InvalidSignature', 'MemoTooLarge', 'AlreadyInNewRaise', 'VrfDelayInProgress', 'NoLeasePeriod']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup671: pallet_xcm::pallet::QueryStatus<BlockNumber>
|
* Lookup677: pallet_xcm::pallet::QueryStatus<BlockNumber>
|
||||||
**/
|
**/
|
||||||
PalletXcmQueryStatus: {
|
PalletXcmQueryStatus: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -2168,7 +2168,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup674: xcm::VersionedResponse
|
* Lookup680: xcm::VersionedResponse
|
||||||
**/
|
**/
|
||||||
XcmVersionedResponse: {
|
XcmVersionedResponse: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -2178,7 +2178,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup680: pallet_xcm::pallet::VersionMigrationStage
|
* Lookup686: pallet_xcm::pallet::VersionMigrationStage
|
||||||
**/
|
**/
|
||||||
PalletXcmVersionMigrationStage: {
|
PalletXcmVersionMigrationStage: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -2189,21 +2189,21 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup681: pallet_xcm::pallet::Error<T>
|
* Lookup687: pallet_xcm::pallet::Error<T>
|
||||||
**/
|
**/
|
||||||
PalletXcmError: {
|
PalletXcmError: {
|
||||||
_enum: ['Unreachable', 'SendFailure', 'Filtered', 'UnweighableMessage', 'DestinationNotInvertible', 'Empty', 'CannotReanchor', 'TooManyAssets', 'InvalidOrigin', 'BadVersion', 'BadLocation', 'NoSubscription', 'AlreadySubscribed']
|
_enum: ['Unreachable', 'SendFailure', 'Filtered', 'UnweighableMessage', 'DestinationNotInvertible', 'Empty', 'CannotReanchor', 'TooManyAssets', 'InvalidOrigin', 'BadVersion', 'BadLocation', 'NoSubscription', 'AlreadySubscribed']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup692: pallet_transaction_payment::ChargeTransactionPayment<T>
|
* Lookup698: pallet_transaction_payment::ChargeTransactionPayment<T>
|
||||||
**/
|
**/
|
||||||
PalletTransactionPaymentChargeTransactionPayment: 'Compact<u128>',
|
PalletTransactionPaymentChargeTransactionPayment: 'Compact<u128>',
|
||||||
/**
|
/**
|
||||||
* Lookup693: polkadot_runtime_common::claims::PrevalidateAttests<T>
|
* Lookup699: polkadot_runtime_common::claims::PrevalidateAttests<T>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeCommonClaimsPrevalidateAttests: 'Null',
|
PolkadotRuntimeCommonClaimsPrevalidateAttests: 'Null',
|
||||||
/**
|
/**
|
||||||
* Lookup694: polkadot_runtime::Runtime
|
* Lookup700: polkadot_runtime::Runtime
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeRuntime: 'Null'
|
PolkadotRuntimeRuntime: 'Null'
|
||||||
};
|
};
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -19,7 +19,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'Society';
|
readonly type: 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'Society';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name KusamaRuntimeSessionKeys (253) */
|
/** @name KusamaRuntimeSessionKeys (258) */
|
||||||
export interface KusamaRuntimeSessionKeys extends Struct {
|
export interface KusamaRuntimeSessionKeys extends Struct {
|
||||||
readonly grandpa: SpFinalityGrandpaAppPublic;
|
readonly grandpa: SpFinalityGrandpaAppPublic;
|
||||||
readonly babe: SpConsensusBabeAppPublic;
|
readonly babe: SpConsensusBabeAppPublic;
|
||||||
@@ -29,7 +29,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly authorityDiscovery: SpAuthorityDiscoveryAppPublic;
|
readonly authorityDiscovery: SpAuthorityDiscoveryAppPublic;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name KusamaRuntimeOriginCaller (327) */
|
/** @name KusamaRuntimeOriginCaller (332) */
|
||||||
export interface KusamaRuntimeOriginCaller extends Enum {
|
export interface KusamaRuntimeOriginCaller extends Enum {
|
||||||
readonly isSystem: boolean;
|
readonly isSystem: boolean;
|
||||||
readonly asSystem: FrameSupportDispatchRawOrigin;
|
readonly asSystem: FrameSupportDispatchRawOrigin;
|
||||||
@@ -45,7 +45,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'System' | 'Void' | 'Council' | 'TechnicalCommittee' | 'ParachainsOrigin' | 'XcmPallet';
|
readonly type: 'System' | 'Void' | 'Council' | 'TechnicalCommittee' | 'ParachainsOrigin' | 'XcmPallet';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name KusamaRuntimeNposCompactSolution24 (393) */
|
/** @name KusamaRuntimeNposCompactSolution24 (398) */
|
||||||
export interface KusamaRuntimeNposCompactSolution24 extends Struct {
|
export interface KusamaRuntimeNposCompactSolution24 extends Struct {
|
||||||
readonly votes1: Vec<ITuple<[Compact<u32>, Compact<u16>]>>;
|
readonly votes1: Vec<ITuple<[Compact<u32>, Compact<u16>]>>;
|
||||||
readonly votes2: Vec<ITuple<[Compact<u32>, ITuple<[Compact<u16>, Compact<PerU16>]>, Compact<u16>]>>;
|
readonly votes2: Vec<ITuple<[Compact<u32>, ITuple<[Compact<u16>, Compact<PerU16>]>, Compact<u16>]>>;
|
||||||
@@ -73,7 +73,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly votes24: Vec<ITuple<[Compact<u32>, Vec<ITuple<[Compact<u16>, Compact<PerU16>]>>, Compact<u16>]>>;
|
readonly votes24: Vec<ITuple<[Compact<u32>, Vec<ITuple<[Compact<u16>, Compact<PerU16>]>>, Compact<u16>]>>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name KusamaRuntimeRuntime (747) */
|
/** @name KusamaRuntimeRuntime (753) */
|
||||||
export type KusamaRuntimeRuntime = Null;
|
export type KusamaRuntimeRuntime = Null;
|
||||||
|
|
||||||
} // declare module
|
} // declare module
|
||||||
|
|||||||
@@ -1735,7 +1735,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'Assets' | 'Version';
|
readonly type: 'Assets' | 'Version';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeCommonClaimsPalletError (541) */
|
/** @name PolkadotRuntimeCommonClaimsPalletError (546) */
|
||||||
export interface PolkadotRuntimeCommonClaimsPalletError extends Enum {
|
export interface PolkadotRuntimeCommonClaimsPalletError extends Enum {
|
||||||
readonly isInvalidEthereumSignature: boolean;
|
readonly isInvalidEthereumSignature: boolean;
|
||||||
readonly isSignerHasNoClaim: boolean;
|
readonly isSignerHasNoClaim: boolean;
|
||||||
@@ -1746,7 +1746,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'InvalidEthereumSignature' | 'SignerHasNoClaim' | 'SenderHasNoClaim' | 'PotUnderflow' | 'InvalidStatement' | 'VestedBalanceExists';
|
readonly type: 'InvalidEthereumSignature' | 'SignerHasNoClaim' | 'SenderHasNoClaim' | 'PotUnderflow' | 'InvalidStatement' | 'VestedBalanceExists';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsConfigurationHostConfiguration (596) */
|
/** @name PolkadotRuntimeParachainsConfigurationHostConfiguration (602) */
|
||||||
export interface PolkadotRuntimeParachainsConfigurationHostConfiguration extends Struct {
|
export interface PolkadotRuntimeParachainsConfigurationHostConfiguration extends Struct {
|
||||||
readonly maxCodeSize: u32;
|
readonly maxCodeSize: u32;
|
||||||
readonly maxHeadDataSize: u32;
|
readonly maxHeadDataSize: u32;
|
||||||
@@ -1793,19 +1793,19 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly minimumValidationUpgradeDelay: u32;
|
readonly minimumValidationUpgradeDelay: u32;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsConfigurationPalletError (599) */
|
/** @name PolkadotRuntimeParachainsConfigurationPalletError (605) */
|
||||||
export interface PolkadotRuntimeParachainsConfigurationPalletError extends Enum {
|
export interface PolkadotRuntimeParachainsConfigurationPalletError extends Enum {
|
||||||
readonly isInvalidNewValue: boolean;
|
readonly isInvalidNewValue: boolean;
|
||||||
readonly type: 'InvalidNewValue';
|
readonly type: 'InvalidNewValue';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord (602) */
|
/** @name PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord (608) */
|
||||||
export interface PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord extends Struct {
|
export interface PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord extends Struct {
|
||||||
readonly bitfield: BitVec;
|
readonly bitfield: BitVec;
|
||||||
readonly submittedAt: u32;
|
readonly submittedAt: u32;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsInclusionCandidatePendingAvailability (603) */
|
/** @name PolkadotRuntimeParachainsInclusionCandidatePendingAvailability (609) */
|
||||||
export interface PolkadotRuntimeParachainsInclusionCandidatePendingAvailability extends Struct {
|
export interface PolkadotRuntimeParachainsInclusionCandidatePendingAvailability extends Struct {
|
||||||
readonly core: u32;
|
readonly core: u32;
|
||||||
readonly hash_: H256;
|
readonly hash_: H256;
|
||||||
@@ -1817,7 +1817,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly backingGroup: u32;
|
readonly backingGroup: u32;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsInclusionPalletError (604) */
|
/** @name PolkadotRuntimeParachainsInclusionPalletError (610) */
|
||||||
export interface PolkadotRuntimeParachainsInclusionPalletError extends Enum {
|
export interface PolkadotRuntimeParachainsInclusionPalletError extends Enum {
|
||||||
readonly isUnsortedOrDuplicateValidatorIndices: boolean;
|
readonly isUnsortedOrDuplicateValidatorIndices: boolean;
|
||||||
readonly isUnsortedOrDuplicateDisputeStatementSet: boolean;
|
readonly isUnsortedOrDuplicateDisputeStatementSet: boolean;
|
||||||
@@ -1851,14 +1851,14 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'UnsortedOrDuplicateValidatorIndices' | 'UnsortedOrDuplicateDisputeStatementSet' | 'UnsortedOrDuplicateBackedCandidates' | 'UnexpectedRelayParent' | 'WrongBitfieldSize' | 'BitfieldAllZeros' | 'BitfieldDuplicateOrUnordered' | 'ValidatorIndexOutOfBounds' | 'InvalidBitfieldSignature' | 'UnscheduledCandidate' | 'CandidateScheduledBeforeParaFree' | 'WrongCollator' | 'ScheduledOutOfOrder' | 'HeadDataTooLarge' | 'PrematureCodeUpgrade' | 'NewCodeTooLarge' | 'CandidateNotInParentContext' | 'InvalidGroupIndex' | 'InsufficientBacking' | 'InvalidBacking' | 'NotCollatorSigned' | 'ValidationDataHashMismatch' | 'IncorrectDownwardMessageHandling' | 'InvalidUpwardMessages' | 'HrmpWatermarkMishandling' | 'InvalidOutboundHrmp' | 'InvalidValidationCodeHash' | 'ParaHeadMismatch' | 'BitfieldReferencesFreedCore';
|
readonly type: 'UnsortedOrDuplicateValidatorIndices' | 'UnsortedOrDuplicateDisputeStatementSet' | 'UnsortedOrDuplicateBackedCandidates' | 'UnexpectedRelayParent' | 'WrongBitfieldSize' | 'BitfieldAllZeros' | 'BitfieldDuplicateOrUnordered' | 'ValidatorIndexOutOfBounds' | 'InvalidBitfieldSignature' | 'UnscheduledCandidate' | 'CandidateScheduledBeforeParaFree' | 'WrongCollator' | 'ScheduledOutOfOrder' | 'HeadDataTooLarge' | 'PrematureCodeUpgrade' | 'NewCodeTooLarge' | 'CandidateNotInParentContext' | 'InvalidGroupIndex' | 'InsufficientBacking' | 'InvalidBacking' | 'NotCollatorSigned' | 'ValidationDataHashMismatch' | 'IncorrectDownwardMessageHandling' | 'InvalidUpwardMessages' | 'HrmpWatermarkMishandling' | 'InvalidOutboundHrmp' | 'InvalidValidationCodeHash' | 'ParaHeadMismatch' | 'BitfieldReferencesFreedCore';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotPrimitivesV2ScrapedOnChainVotes (605) */
|
/** @name PolkadotPrimitivesV2ScrapedOnChainVotes (611) */
|
||||||
export interface PolkadotPrimitivesV2ScrapedOnChainVotes extends Struct {
|
export interface PolkadotPrimitivesV2ScrapedOnChainVotes extends Struct {
|
||||||
readonly session: u32;
|
readonly session: u32;
|
||||||
readonly backingValidatorsPerCandidate: Vec<ITuple<[PolkadotPrimitivesV2CandidateReceipt, Vec<ITuple<[u32, PolkadotPrimitivesV2ValidityAttestation]>>]>>;
|
readonly backingValidatorsPerCandidate: Vec<ITuple<[PolkadotPrimitivesV2CandidateReceipt, Vec<ITuple<[u32, PolkadotPrimitivesV2ValidityAttestation]>>]>>;
|
||||||
readonly disputes: Vec<PolkadotPrimitivesV2DisputeStatementSet>;
|
readonly disputes: Vec<PolkadotPrimitivesV2DisputeStatementSet>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsParasInherentPalletError (610) */
|
/** @name PolkadotRuntimeParachainsParasInherentPalletError (616) */
|
||||||
export interface PolkadotRuntimeParachainsParasInherentPalletError extends Enum {
|
export interface PolkadotRuntimeParachainsParasInherentPalletError extends Enum {
|
||||||
readonly isTooManyInclusionInherents: boolean;
|
readonly isTooManyInclusionInherents: boolean;
|
||||||
readonly isInvalidParentHeader: boolean;
|
readonly isInvalidParentHeader: boolean;
|
||||||
@@ -1869,28 +1869,28 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'TooManyInclusionInherents' | 'InvalidParentHeader' | 'CandidateConcludedInvalid' | 'InherentOverweight' | 'DisputeStatementsUnsortedOrDuplicates' | 'DisputeInvalid';
|
readonly type: 'TooManyInclusionInherents' | 'InvalidParentHeader' | 'CandidateConcludedInvalid' | 'InherentOverweight' | 'DisputeStatementsUnsortedOrDuplicates' | 'DisputeInvalid';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsSchedulerParathreadClaimQueue (612) */
|
/** @name PolkadotRuntimeParachainsSchedulerParathreadClaimQueue (618) */
|
||||||
export interface PolkadotRuntimeParachainsSchedulerParathreadClaimQueue extends Struct {
|
export interface PolkadotRuntimeParachainsSchedulerParathreadClaimQueue extends Struct {
|
||||||
readonly queue: Vec<PolkadotRuntimeParachainsSchedulerQueuedParathread>;
|
readonly queue: Vec<PolkadotRuntimeParachainsSchedulerQueuedParathread>;
|
||||||
readonly nextCoreOffset: u32;
|
readonly nextCoreOffset: u32;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsSchedulerQueuedParathread (614) */
|
/** @name PolkadotRuntimeParachainsSchedulerQueuedParathread (620) */
|
||||||
export interface PolkadotRuntimeParachainsSchedulerQueuedParathread extends Struct {
|
export interface PolkadotRuntimeParachainsSchedulerQueuedParathread extends Struct {
|
||||||
readonly claim: PolkadotPrimitivesV2ParathreadEntry;
|
readonly claim: PolkadotPrimitivesV2ParathreadEntry;
|
||||||
readonly coreOffset: u32;
|
readonly coreOffset: u32;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotPrimitivesV2ParathreadEntry (615) */
|
/** @name PolkadotPrimitivesV2ParathreadEntry (621) */
|
||||||
export interface PolkadotPrimitivesV2ParathreadEntry extends Struct {
|
export interface PolkadotPrimitivesV2ParathreadEntry extends Struct {
|
||||||
readonly claim: PolkadotPrimitivesV2ParathreadClaim;
|
readonly claim: PolkadotPrimitivesV2ParathreadClaim;
|
||||||
readonly retries: u32;
|
readonly retries: u32;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotPrimitivesV2ParathreadClaim (616) */
|
/** @name PolkadotPrimitivesV2ParathreadClaim (622) */
|
||||||
export interface PolkadotPrimitivesV2ParathreadClaim extends ITuple<[u32, PolkadotPrimitivesV2CollatorAppPublic]> {}
|
export interface PolkadotPrimitivesV2ParathreadClaim extends ITuple<[u32, PolkadotPrimitivesV2CollatorAppPublic]> {}
|
||||||
|
|
||||||
/** @name PolkadotPrimitivesV2CoreOccupied (619) */
|
/** @name PolkadotPrimitivesV2CoreOccupied (625) */
|
||||||
export interface PolkadotPrimitivesV2CoreOccupied extends Enum {
|
export interface PolkadotPrimitivesV2CoreOccupied extends Enum {
|
||||||
readonly isParathread: boolean;
|
readonly isParathread: boolean;
|
||||||
readonly asParathread: PolkadotPrimitivesV2ParathreadEntry;
|
readonly asParathread: PolkadotPrimitivesV2ParathreadEntry;
|
||||||
@@ -1898,7 +1898,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'Parathread' | 'Parachain';
|
readonly type: 'Parathread' | 'Parachain';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsSchedulerCoreAssignment (622) */
|
/** @name PolkadotRuntimeParachainsSchedulerCoreAssignment (628) */
|
||||||
export interface PolkadotRuntimeParachainsSchedulerCoreAssignment extends Struct {
|
export interface PolkadotRuntimeParachainsSchedulerCoreAssignment extends Struct {
|
||||||
readonly core: u32;
|
readonly core: u32;
|
||||||
readonly paraId: u32;
|
readonly paraId: u32;
|
||||||
@@ -1906,7 +1906,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly groupIdx: u32;
|
readonly groupIdx: u32;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsSchedulerAssignmentKind (623) */
|
/** @name PolkadotRuntimeParachainsSchedulerAssignmentKind (629) */
|
||||||
export interface PolkadotRuntimeParachainsSchedulerAssignmentKind extends Enum {
|
export interface PolkadotRuntimeParachainsSchedulerAssignmentKind extends Enum {
|
||||||
readonly isParachain: boolean;
|
readonly isParachain: boolean;
|
||||||
readonly isParathread: boolean;
|
readonly isParathread: boolean;
|
||||||
@@ -1914,7 +1914,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'Parachain' | 'Parathread';
|
readonly type: 'Parachain' | 'Parathread';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsParasPvfCheckActiveVoteState (624) */
|
/** @name PolkadotRuntimeParachainsParasPvfCheckActiveVoteState (630) */
|
||||||
export interface PolkadotRuntimeParachainsParasPvfCheckActiveVoteState extends Struct {
|
export interface PolkadotRuntimeParachainsParasPvfCheckActiveVoteState extends Struct {
|
||||||
readonly votesAccept: BitVec;
|
readonly votesAccept: BitVec;
|
||||||
readonly votesReject: BitVec;
|
readonly votesReject: BitVec;
|
||||||
@@ -1923,7 +1923,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly causes: Vec<PolkadotRuntimeParachainsParasPvfCheckCause>;
|
readonly causes: Vec<PolkadotRuntimeParachainsParasPvfCheckCause>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsParasPvfCheckCause (626) */
|
/** @name PolkadotRuntimeParachainsParasPvfCheckCause (632) */
|
||||||
export interface PolkadotRuntimeParachainsParasPvfCheckCause extends Enum {
|
export interface PolkadotRuntimeParachainsParasPvfCheckCause extends Enum {
|
||||||
readonly isOnboarding: boolean;
|
readonly isOnboarding: boolean;
|
||||||
readonly asOnboarding: u32;
|
readonly asOnboarding: u32;
|
||||||
@@ -1935,7 +1935,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'Onboarding' | 'Upgrade';
|
readonly type: 'Onboarding' | 'Upgrade';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsParasParaLifecycle (628) */
|
/** @name PolkadotRuntimeParachainsParasParaLifecycle (634) */
|
||||||
export interface PolkadotRuntimeParachainsParasParaLifecycle extends Enum {
|
export interface PolkadotRuntimeParachainsParasParaLifecycle extends Enum {
|
||||||
readonly isOnboarding: boolean;
|
readonly isOnboarding: boolean;
|
||||||
readonly isParathread: boolean;
|
readonly isParathread: boolean;
|
||||||
@@ -1947,39 +1947,39 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'Onboarding' | 'Parathread' | 'Parachain' | 'UpgradingParathread' | 'DowngradingParachain' | 'OffboardingParathread' | 'OffboardingParachain';
|
readonly type: 'Onboarding' | 'Parathread' | 'Parachain' | 'UpgradingParathread' | 'DowngradingParachain' | 'OffboardingParathread' | 'OffboardingParachain';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsParasParaPastCodeMeta (630) */
|
/** @name PolkadotRuntimeParachainsParasParaPastCodeMeta (636) */
|
||||||
export interface PolkadotRuntimeParachainsParasParaPastCodeMeta extends Struct {
|
export interface PolkadotRuntimeParachainsParasParaPastCodeMeta extends Struct {
|
||||||
readonly upgradeTimes: Vec<PolkadotRuntimeParachainsParasReplacementTimes>;
|
readonly upgradeTimes: Vec<PolkadotRuntimeParachainsParasReplacementTimes>;
|
||||||
readonly lastPruned: Option<u32>;
|
readonly lastPruned: Option<u32>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsParasReplacementTimes (632) */
|
/** @name PolkadotRuntimeParachainsParasReplacementTimes (638) */
|
||||||
export interface PolkadotRuntimeParachainsParasReplacementTimes extends Struct {
|
export interface PolkadotRuntimeParachainsParasReplacementTimes extends Struct {
|
||||||
readonly expectedAt: u32;
|
readonly expectedAt: u32;
|
||||||
readonly activatedAt: u32;
|
readonly activatedAt: u32;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotPrimitivesV2UpgradeGoAhead (634) */
|
/** @name PolkadotPrimitivesV2UpgradeGoAhead (640) */
|
||||||
export interface PolkadotPrimitivesV2UpgradeGoAhead extends Enum {
|
export interface PolkadotPrimitivesV2UpgradeGoAhead extends Enum {
|
||||||
readonly isAbort: boolean;
|
readonly isAbort: boolean;
|
||||||
readonly isGoAhead: boolean;
|
readonly isGoAhead: boolean;
|
||||||
readonly type: 'Abort' | 'GoAhead';
|
readonly type: 'Abort' | 'GoAhead';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotPrimitivesV2UpgradeRestriction (635) */
|
/** @name PolkadotPrimitivesV2UpgradeRestriction (641) */
|
||||||
export interface PolkadotPrimitivesV2UpgradeRestriction extends Enum {
|
export interface PolkadotPrimitivesV2UpgradeRestriction extends Enum {
|
||||||
readonly isPresent: boolean;
|
readonly isPresent: boolean;
|
||||||
readonly type: 'Present';
|
readonly type: 'Present';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsParasParaGenesisArgs (636) */
|
/** @name PolkadotRuntimeParachainsParasParaGenesisArgs (642) */
|
||||||
export interface PolkadotRuntimeParachainsParasParaGenesisArgs extends Struct {
|
export interface PolkadotRuntimeParachainsParasParaGenesisArgs extends Struct {
|
||||||
readonly genesisHead: Bytes;
|
readonly genesisHead: Bytes;
|
||||||
readonly validationCode: Bytes;
|
readonly validationCode: Bytes;
|
||||||
readonly parachain: bool;
|
readonly parachain: bool;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsParasPalletError (637) */
|
/** @name PolkadotRuntimeParachainsParasPalletError (643) */
|
||||||
export interface PolkadotRuntimeParachainsParasPalletError extends Enum {
|
export interface PolkadotRuntimeParachainsParasPalletError extends Enum {
|
||||||
readonly isNotRegistered: boolean;
|
readonly isNotRegistered: boolean;
|
||||||
readonly isCannotOnboard: boolean;
|
readonly isCannotOnboard: boolean;
|
||||||
@@ -1996,27 +1996,27 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'NotRegistered' | 'CannotOnboard' | 'CannotOffboard' | 'CannotUpgrade' | 'CannotDowngrade' | 'PvfCheckStatementStale' | 'PvfCheckStatementFuture' | 'PvfCheckValidatorIndexOutOfBounds' | 'PvfCheckInvalidSignature' | 'PvfCheckDoubleVote' | 'PvfCheckSubjectInvalid' | 'PvfCheckDisabled';
|
readonly type: 'NotRegistered' | 'CannotOnboard' | 'CannotOffboard' | 'CannotUpgrade' | 'CannotDowngrade' | 'PvfCheckStatementStale' | 'PvfCheckStatementFuture' | 'PvfCheckValidatorIndexOutOfBounds' | 'PvfCheckInvalidSignature' | 'PvfCheckDoubleVote' | 'PvfCheckSubjectInvalid' | 'PvfCheckDisabled';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsInitializerBufferedSessionChange (639) */
|
/** @name PolkadotRuntimeParachainsInitializerBufferedSessionChange (645) */
|
||||||
export interface PolkadotRuntimeParachainsInitializerBufferedSessionChange extends Struct {
|
export interface PolkadotRuntimeParachainsInitializerBufferedSessionChange extends Struct {
|
||||||
readonly validators: Vec<PolkadotPrimitivesV2ValidatorAppPublic>;
|
readonly validators: Vec<PolkadotPrimitivesV2ValidatorAppPublic>;
|
||||||
readonly queued: Vec<PolkadotPrimitivesV2ValidatorAppPublic>;
|
readonly queued: Vec<PolkadotPrimitivesV2ValidatorAppPublic>;
|
||||||
readonly sessionIndex: u32;
|
readonly sessionIndex: u32;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotCorePrimitivesInboundDownwardMessage (641) */
|
/** @name PolkadotCorePrimitivesInboundDownwardMessage (647) */
|
||||||
export interface PolkadotCorePrimitivesInboundDownwardMessage extends Struct {
|
export interface PolkadotCorePrimitivesInboundDownwardMessage extends Struct {
|
||||||
readonly sentAt: u32;
|
readonly sentAt: u32;
|
||||||
readonly msg: Bytes;
|
readonly msg: Bytes;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsUmpPalletError (643) */
|
/** @name PolkadotRuntimeParachainsUmpPalletError (649) */
|
||||||
export interface PolkadotRuntimeParachainsUmpPalletError extends Enum {
|
export interface PolkadotRuntimeParachainsUmpPalletError extends Enum {
|
||||||
readonly isUnknownMessageIndex: boolean;
|
readonly isUnknownMessageIndex: boolean;
|
||||||
readonly isWeightOverLimit: boolean;
|
readonly isWeightOverLimit: boolean;
|
||||||
readonly type: 'UnknownMessageIndex' | 'WeightOverLimit';
|
readonly type: 'UnknownMessageIndex' | 'WeightOverLimit';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest (644) */
|
/** @name PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest (650) */
|
||||||
export interface PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest extends Struct {
|
export interface PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest extends Struct {
|
||||||
readonly confirmed: bool;
|
readonly confirmed: bool;
|
||||||
readonly age: u32;
|
readonly age: u32;
|
||||||
@@ -2026,7 +2026,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly maxTotalSize: u32;
|
readonly maxTotalSize: u32;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsHrmpHrmpChannel (646) */
|
/** @name PolkadotRuntimeParachainsHrmpHrmpChannel (652) */
|
||||||
export interface PolkadotRuntimeParachainsHrmpHrmpChannel extends Struct {
|
export interface PolkadotRuntimeParachainsHrmpHrmpChannel extends Struct {
|
||||||
readonly maxCapacity: u32;
|
readonly maxCapacity: u32;
|
||||||
readonly maxTotalSize: u32;
|
readonly maxTotalSize: u32;
|
||||||
@@ -2038,13 +2038,13 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly recipientDeposit: u128;
|
readonly recipientDeposit: u128;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotCorePrimitivesInboundHrmpMessage (649) */
|
/** @name PolkadotCorePrimitivesInboundHrmpMessage (655) */
|
||||||
export interface PolkadotCorePrimitivesInboundHrmpMessage extends Struct {
|
export interface PolkadotCorePrimitivesInboundHrmpMessage extends Struct {
|
||||||
readonly sentAt: u32;
|
readonly sentAt: u32;
|
||||||
readonly data: Bytes;
|
readonly data: Bytes;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsHrmpPalletError (652) */
|
/** @name PolkadotRuntimeParachainsHrmpPalletError (658) */
|
||||||
export interface PolkadotRuntimeParachainsHrmpPalletError extends Enum {
|
export interface PolkadotRuntimeParachainsHrmpPalletError extends Enum {
|
||||||
readonly isOpenHrmpChannelToSelf: boolean;
|
readonly isOpenHrmpChannelToSelf: boolean;
|
||||||
readonly isOpenHrmpChannelInvalidRecipient: boolean;
|
readonly isOpenHrmpChannelInvalidRecipient: boolean;
|
||||||
@@ -2068,7 +2068,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'OpenHrmpChannelToSelf' | 'OpenHrmpChannelInvalidRecipient' | 'OpenHrmpChannelZeroCapacity' | 'OpenHrmpChannelCapacityExceedsLimit' | 'OpenHrmpChannelZeroMessageSize' | 'OpenHrmpChannelMessageSizeExceedsLimit' | 'OpenHrmpChannelAlreadyExists' | 'OpenHrmpChannelAlreadyRequested' | 'OpenHrmpChannelLimitExceeded' | 'AcceptHrmpChannelDoesntExist' | 'AcceptHrmpChannelAlreadyConfirmed' | 'AcceptHrmpChannelLimitExceeded' | 'CloseHrmpChannelUnauthorized' | 'CloseHrmpChannelDoesntExist' | 'CloseHrmpChannelAlreadyUnderway' | 'CancelHrmpOpenChannelUnauthorized' | 'OpenHrmpChannelDoesntExist' | 'OpenHrmpChannelAlreadyConfirmed' | 'WrongWitness';
|
readonly type: 'OpenHrmpChannelToSelf' | 'OpenHrmpChannelInvalidRecipient' | 'OpenHrmpChannelZeroCapacity' | 'OpenHrmpChannelCapacityExceedsLimit' | 'OpenHrmpChannelZeroMessageSize' | 'OpenHrmpChannelMessageSizeExceedsLimit' | 'OpenHrmpChannelAlreadyExists' | 'OpenHrmpChannelAlreadyRequested' | 'OpenHrmpChannelLimitExceeded' | 'AcceptHrmpChannelDoesntExist' | 'AcceptHrmpChannelAlreadyConfirmed' | 'AcceptHrmpChannelLimitExceeded' | 'CloseHrmpChannelUnauthorized' | 'CloseHrmpChannelDoesntExist' | 'CloseHrmpChannelAlreadyUnderway' | 'CancelHrmpOpenChannelUnauthorized' | 'OpenHrmpChannelDoesntExist' | 'OpenHrmpChannelAlreadyConfirmed' | 'WrongWitness';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotPrimitivesV2SessionInfo (654) */
|
/** @name PolkadotPrimitivesV2SessionInfo (660) */
|
||||||
export interface PolkadotPrimitivesV2SessionInfo extends Struct {
|
export interface PolkadotPrimitivesV2SessionInfo extends Struct {
|
||||||
readonly activeValidatorIndices: Vec<u32>;
|
readonly activeValidatorIndices: Vec<u32>;
|
||||||
readonly randomSeed: U8aFixed;
|
readonly randomSeed: U8aFixed;
|
||||||
@@ -2085,7 +2085,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly neededApprovals: u32;
|
readonly neededApprovals: u32;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotPrimitivesV2DisputeState (657) */
|
/** @name PolkadotPrimitivesV2DisputeState (663) */
|
||||||
export interface PolkadotPrimitivesV2DisputeState extends Struct {
|
export interface PolkadotPrimitivesV2DisputeState extends Struct {
|
||||||
readonly validatorsFor: BitVec;
|
readonly validatorsFor: BitVec;
|
||||||
readonly validatorsAgainst: BitVec;
|
readonly validatorsAgainst: BitVec;
|
||||||
@@ -2093,7 +2093,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly concludedAt: Option<u32>;
|
readonly concludedAt: Option<u32>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsDisputesPalletError (658) */
|
/** @name PolkadotRuntimeParachainsDisputesPalletError (664) */
|
||||||
export interface PolkadotRuntimeParachainsDisputesPalletError extends Enum {
|
export interface PolkadotRuntimeParachainsDisputesPalletError extends Enum {
|
||||||
readonly isDuplicateDisputeStatementSets: boolean;
|
readonly isDuplicateDisputeStatementSets: boolean;
|
||||||
readonly isAncientDisputeStatement: boolean;
|
readonly isAncientDisputeStatement: boolean;
|
||||||
@@ -2105,14 +2105,14 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'DuplicateDisputeStatementSets' | 'AncientDisputeStatement' | 'ValidatorIndexOutOfBounds' | 'InvalidSignature' | 'DuplicateStatement' | 'PotentialSpam' | 'SingleSidedDispute';
|
readonly type: 'DuplicateDisputeStatementSets' | 'AncientDisputeStatement' | 'ValidatorIndexOutOfBounds' | 'InvalidSignature' | 'DuplicateStatement' | 'PotentialSpam' | 'SingleSidedDispute';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeCommonParasRegistrarParaInfo (659) */
|
/** @name PolkadotRuntimeCommonParasRegistrarParaInfo (665) */
|
||||||
export interface PolkadotRuntimeCommonParasRegistrarParaInfo extends Struct {
|
export interface PolkadotRuntimeCommonParasRegistrarParaInfo extends Struct {
|
||||||
readonly manager: AccountId32;
|
readonly manager: AccountId32;
|
||||||
readonly deposit: u128;
|
readonly deposit: u128;
|
||||||
readonly locked: bool;
|
readonly locked: bool;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeCommonParasRegistrarPalletError (660) */
|
/** @name PolkadotRuntimeCommonParasRegistrarPalletError (666) */
|
||||||
export interface PolkadotRuntimeCommonParasRegistrarPalletError extends Enum {
|
export interface PolkadotRuntimeCommonParasRegistrarPalletError extends Enum {
|
||||||
readonly isNotRegistered: boolean;
|
readonly isNotRegistered: boolean;
|
||||||
readonly isAlreadyRegistered: boolean;
|
readonly isAlreadyRegistered: boolean;
|
||||||
@@ -2131,14 +2131,14 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'NotRegistered' | 'AlreadyRegistered' | 'NotOwner' | 'CodeTooLarge' | 'HeadDataTooLarge' | 'NotParachain' | 'NotParathread' | 'CannotDeregister' | 'CannotDowngrade' | 'CannotUpgrade' | 'ParaLocked' | 'NotReserved' | 'EmptyCode' | 'CannotSwap';
|
readonly type: 'NotRegistered' | 'AlreadyRegistered' | 'NotOwner' | 'CodeTooLarge' | 'HeadDataTooLarge' | 'NotParachain' | 'NotParathread' | 'CannotDeregister' | 'CannotDowngrade' | 'CannotUpgrade' | 'ParaLocked' | 'NotReserved' | 'EmptyCode' | 'CannotSwap';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeCommonSlotsPalletError (662) */
|
/** @name PolkadotRuntimeCommonSlotsPalletError (668) */
|
||||||
export interface PolkadotRuntimeCommonSlotsPalletError extends Enum {
|
export interface PolkadotRuntimeCommonSlotsPalletError extends Enum {
|
||||||
readonly isParaNotOnboarding: boolean;
|
readonly isParaNotOnboarding: boolean;
|
||||||
readonly isLeaseError: boolean;
|
readonly isLeaseError: boolean;
|
||||||
readonly type: 'ParaNotOnboarding' | 'LeaseError';
|
readonly type: 'ParaNotOnboarding' | 'LeaseError';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeCommonAuctionsPalletError (667) */
|
/** @name PolkadotRuntimeCommonAuctionsPalletError (673) */
|
||||||
export interface PolkadotRuntimeCommonAuctionsPalletError extends Enum {
|
export interface PolkadotRuntimeCommonAuctionsPalletError extends Enum {
|
||||||
readonly isAuctionInProgress: boolean;
|
readonly isAuctionInProgress: boolean;
|
||||||
readonly isLeasePeriodInPast: boolean;
|
readonly isLeasePeriodInPast: boolean;
|
||||||
@@ -2150,7 +2150,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'AuctionInProgress' | 'LeasePeriodInPast' | 'ParaNotRegistered' | 'NotCurrentAuction' | 'NotAuction' | 'AuctionEnded' | 'AlreadyLeasedOut';
|
readonly type: 'AuctionInProgress' | 'LeasePeriodInPast' | 'ParaNotRegistered' | 'NotCurrentAuction' | 'NotAuction' | 'AuctionEnded' | 'AlreadyLeasedOut';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeCommonCrowdloanFundInfo (668) */
|
/** @name PolkadotRuntimeCommonCrowdloanFundInfo (674) */
|
||||||
export interface PolkadotRuntimeCommonCrowdloanFundInfo extends Struct {
|
export interface PolkadotRuntimeCommonCrowdloanFundInfo extends Struct {
|
||||||
readonly depositor: AccountId32;
|
readonly depositor: AccountId32;
|
||||||
readonly verifier: Option<SpRuntimeMultiSigner>;
|
readonly verifier: Option<SpRuntimeMultiSigner>;
|
||||||
@@ -2164,7 +2164,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly fundIndex: u32;
|
readonly fundIndex: u32;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeCommonCrowdloanLastContribution (669) */
|
/** @name PolkadotRuntimeCommonCrowdloanLastContribution (675) */
|
||||||
export interface PolkadotRuntimeCommonCrowdloanLastContribution extends Enum {
|
export interface PolkadotRuntimeCommonCrowdloanLastContribution extends Enum {
|
||||||
readonly isNever: boolean;
|
readonly isNever: boolean;
|
||||||
readonly isPreEnding: boolean;
|
readonly isPreEnding: boolean;
|
||||||
@@ -2174,7 +2174,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'Never' | 'PreEnding' | 'Ending';
|
readonly type: 'Never' | 'PreEnding' | 'Ending';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeCommonCrowdloanPalletError (670) */
|
/** @name PolkadotRuntimeCommonCrowdloanPalletError (676) */
|
||||||
export interface PolkadotRuntimeCommonCrowdloanPalletError extends Enum {
|
export interface PolkadotRuntimeCommonCrowdloanPalletError extends Enum {
|
||||||
readonly isFirstPeriodInPast: boolean;
|
readonly isFirstPeriodInPast: boolean;
|
||||||
readonly isFirstPeriodTooFarInFuture: boolean;
|
readonly isFirstPeriodTooFarInFuture: boolean;
|
||||||
@@ -2202,7 +2202,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'FirstPeriodInPast' | 'FirstPeriodTooFarInFuture' | 'LastPeriodBeforeFirstPeriod' | 'LastPeriodTooFarInFuture' | 'CannotEndInPast' | 'EndTooFarInFuture' | 'Overflow' | 'ContributionTooSmall' | 'InvalidParaId' | 'CapExceeded' | 'ContributionPeriodOver' | 'InvalidOrigin' | 'NotParachain' | 'LeaseActive' | 'BidOrLeaseActive' | 'FundNotEnded' | 'NoContributions' | 'NotReadyToDissolve' | 'InvalidSignature' | 'MemoTooLarge' | 'AlreadyInNewRaise' | 'VrfDelayInProgress' | 'NoLeasePeriod';
|
readonly type: 'FirstPeriodInPast' | 'FirstPeriodTooFarInFuture' | 'LastPeriodBeforeFirstPeriod' | 'LastPeriodTooFarInFuture' | 'CannotEndInPast' | 'EndTooFarInFuture' | 'Overflow' | 'ContributionTooSmall' | 'InvalidParaId' | 'CapExceeded' | 'ContributionPeriodOver' | 'InvalidOrigin' | 'NotParachain' | 'LeaseActive' | 'BidOrLeaseActive' | 'FundNotEnded' | 'NoContributions' | 'NotReadyToDissolve' | 'InvalidSignature' | 'MemoTooLarge' | 'AlreadyInNewRaise' | 'VrfDelayInProgress' | 'NoLeasePeriod';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletXcmQueryStatus (671) */
|
/** @name PalletXcmQueryStatus (677) */
|
||||||
export interface PalletXcmQueryStatus extends Enum {
|
export interface PalletXcmQueryStatus extends Enum {
|
||||||
readonly isPending: boolean;
|
readonly isPending: boolean;
|
||||||
readonly asPending: {
|
readonly asPending: {
|
||||||
@@ -2223,7 +2223,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'Pending' | 'VersionNotifier' | 'Ready';
|
readonly type: 'Pending' | 'VersionNotifier' | 'Ready';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name XcmVersionedResponse (674) */
|
/** @name XcmVersionedResponse (680) */
|
||||||
export interface XcmVersionedResponse extends Enum {
|
export interface XcmVersionedResponse extends Enum {
|
||||||
readonly isV0: boolean;
|
readonly isV0: boolean;
|
||||||
readonly asV0: XcmV0Response;
|
readonly asV0: XcmV0Response;
|
||||||
@@ -2234,7 +2234,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'V0' | 'V1' | 'V2';
|
readonly type: 'V0' | 'V1' | 'V2';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletXcmVersionMigrationStage (680) */
|
/** @name PalletXcmVersionMigrationStage (686) */
|
||||||
export interface PalletXcmVersionMigrationStage extends Enum {
|
export interface PalletXcmVersionMigrationStage extends Enum {
|
||||||
readonly isMigrateSupportedVersion: boolean;
|
readonly isMigrateSupportedVersion: boolean;
|
||||||
readonly isMigrateVersionNotifiers: boolean;
|
readonly isMigrateVersionNotifiers: boolean;
|
||||||
@@ -2244,7 +2244,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'MigrateSupportedVersion' | 'MigrateVersionNotifiers' | 'NotifyCurrentTargets' | 'MigrateAndNotifyOldTargets';
|
readonly type: 'MigrateSupportedVersion' | 'MigrateVersionNotifiers' | 'NotifyCurrentTargets' | 'MigrateAndNotifyOldTargets';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletXcmError (681) */
|
/** @name PalletXcmError (687) */
|
||||||
export interface PalletXcmError extends Enum {
|
export interface PalletXcmError extends Enum {
|
||||||
readonly isUnreachable: boolean;
|
readonly isUnreachable: boolean;
|
||||||
readonly isSendFailure: boolean;
|
readonly isSendFailure: boolean;
|
||||||
@@ -2262,13 +2262,13 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'Unreachable' | 'SendFailure' | 'Filtered' | 'UnweighableMessage' | 'DestinationNotInvertible' | 'Empty' | 'CannotReanchor' | 'TooManyAssets' | 'InvalidOrigin' | 'BadVersion' | 'BadLocation' | 'NoSubscription' | 'AlreadySubscribed';
|
readonly type: 'Unreachable' | 'SendFailure' | 'Filtered' | 'UnweighableMessage' | 'DestinationNotInvertible' | 'Empty' | 'CannotReanchor' | 'TooManyAssets' | 'InvalidOrigin' | 'BadVersion' | 'BadLocation' | 'NoSubscription' | 'AlreadySubscribed';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletTransactionPaymentChargeTransactionPayment (692) */
|
/** @name PalletTransactionPaymentChargeTransactionPayment (698) */
|
||||||
export interface PalletTransactionPaymentChargeTransactionPayment extends Compact<u128> {}
|
export interface PalletTransactionPaymentChargeTransactionPayment extends Compact<u128> {}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeCommonClaimsPrevalidateAttests (693) */
|
/** @name PolkadotRuntimeCommonClaimsPrevalidateAttests (699) */
|
||||||
export type PolkadotRuntimeCommonClaimsPrevalidateAttests = Null;
|
export type PolkadotRuntimeCommonClaimsPrevalidateAttests = Null;
|
||||||
|
|
||||||
/** @name PolkadotRuntimeRuntime (694) */
|
/** @name PolkadotRuntimeRuntime (700) */
|
||||||
export type PolkadotRuntimeRuntime = Null;
|
export type PolkadotRuntimeRuntime = Null;
|
||||||
|
|
||||||
} // declare module
|
} // declare module
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '8.3.1' };
|
export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '8.4.1' };
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -20,16 +20,16 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "8.3.1",
|
"version": "8.4.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.17.9",
|
"@babel/runtime": "^7.17.9",
|
||||||
"@polkadot/util": "^9.1.1"
|
"@polkadot/util": "^9.2.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/types": "8.3.1",
|
"@polkadot/types": "8.4.1",
|
||||||
"@polkadot/types-augment": "8.3.1",
|
"@polkadot/types-augment": "8.4.1",
|
||||||
"@polkadot/types-support": "8.3.1",
|
"@polkadot/types-support": "8.4.1",
|
||||||
"@polkadot/util-crypto": "^9.1.1"
|
"@polkadot/util-crypto": "^9.2.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,10 +25,8 @@ function toPercentage (value: BN, divisor: BN): string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
function decodeAbstractInt (value: AnyNumber, bitLength: UIntBitLength, isNegative: boolean): string {
|
function decodeAbstractInt (value: Exclude<AnyNumber, Uint8Array>, isNegative: boolean): string {
|
||||||
if (isU8a(value)) {
|
if (isBn(value)) {
|
||||||
return u8aToBn(value.subarray(0, bitLength / 8), { isLe: true, isNegative }).toString();
|
|
||||||
} else if (isBn(value)) {
|
|
||||||
return value.toString();
|
return value.toString();
|
||||||
} else if (isHex(value, -1, true)) {
|
} else if (isHex(value, -1, true)) {
|
||||||
return hexToBn(value, { isLe: false, isNegative }).toString();
|
return hexToBn(value, { isLe: false, isNegative }).toString();
|
||||||
@@ -65,7 +63,7 @@ export abstract class AbstractInt extends BN implements INumber {
|
|||||||
// shortcut isU8a as used in SCALE decoding
|
// shortcut isU8a as used in SCALE decoding
|
||||||
isU8a(value)
|
isU8a(value)
|
||||||
? u8aToBn(value.subarray(0, bitLength / 8), { isLe: true, isNegative: isSigned }).toString()
|
? u8aToBn(value.subarray(0, bitLength / 8), { isLe: true, isNegative: isSigned }).toString()
|
||||||
: decodeAbstractInt(value, bitLength, isSigned)
|
: decodeAbstractInt(value, isSigned)
|
||||||
);
|
);
|
||||||
|
|
||||||
this.registry = registry;
|
this.registry = registry;
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import type { BN } from '@polkadot/util';
|
|||||||
import type { HexString } from '@polkadot/util/types';
|
import type { HexString } from '@polkadot/util/types';
|
||||||
import type { AnyJson, AnyNumber, CodecClass, ICompact, Inspect, INumber, IU8a, Registry } from '../types';
|
import type { AnyJson, AnyNumber, CodecClass, ICompact, Inspect, INumber, IU8a, Registry } from '../types';
|
||||||
|
|
||||||
import { compactFromU8a, compactToU8a, isBigInt, isBn, isNumber, isString } from '@polkadot/util';
|
import { compactFromU8a, compactToU8a, isU8a } from '@polkadot/util';
|
||||||
|
|
||||||
import { typeToConstructor } from '../utils';
|
import { typeToConstructor } from '../utils';
|
||||||
|
|
||||||
@@ -48,17 +48,17 @@ export class Compact<T extends INumber> implements ICompact<T> {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
public static decodeCompact<T extends INumber> (registry: Registry, Type: CodecClass<T>, value: Compact<T> | AnyNumber): [T, number] {
|
public static decodeCompact<T extends INumber> (registry: Registry, Type: CodecClass<T>, value: Compact<T> | AnyNumber): [T, number] {
|
||||||
if (value instanceof Compact) {
|
if (isU8a(value)) {
|
||||||
|
const [decodedLength, bn] = compactFromU8a(value);
|
||||||
|
|
||||||
|
return [new Type(registry, bn), decodedLength];
|
||||||
|
} else if (value instanceof Compact) {
|
||||||
return [new Type(registry, value.#raw), 0];
|
return [new Type(registry, value.#raw), 0];
|
||||||
} else if (value instanceof Type) {
|
} else if (value instanceof Type) {
|
||||||
return [value, 0];
|
return [value, 0];
|
||||||
} else if (isString(value) || isNumber(value) || isBn(value) || isBigInt(value)) {
|
|
||||||
return [new Type(registry, value), 0];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const [decodedLength, bn] = compactFromU8a(value);
|
return [new Type(registry, value), 0];
|
||||||
|
|
||||||
return [new Type(registry, bn), decodedLength];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
import type { HexString } from '@polkadot/util/types';
|
import type { HexString } from '@polkadot/util/types';
|
||||||
import type { AnyJson, Codec, CodecClass, IEnum, Inspect, IU8a, Registry } from '../types';
|
import type { AnyJson, Codec, CodecClass, IEnum, Inspect, IU8a, Registry } from '../types';
|
||||||
|
|
||||||
import { assert, isHex, isNumber, isObject, isString, isU8a, isUndefined, objectProperties, stringCamelCase, stringify, stringPascalCase, u8aConcat, u8aToHex, u8aToU8a } from '@polkadot/util';
|
import { assert, isCodec, isHex, isNumber, isObject, isString, isU8a, isUndefined, objectProperties, stringCamelCase, stringify, stringPascalCase, u8aConcat, u8aToHex, u8aToU8a } from '@polkadot/util';
|
||||||
|
|
||||||
import { mapToTypeMap, typesToMap } from '../utils';
|
import { mapToTypeMap, typesToMap } from '../utils';
|
||||||
import { Null } from './Null';
|
import { Null } from './Null';
|
||||||
@@ -88,7 +88,7 @@ function createFromValue (registry: Registry, def: TypesDef, index = 0, value?:
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
index,
|
index,
|
||||||
value: value instanceof entry.Type
|
value: isCodec(value) && value instanceof entry.Type
|
||||||
? value
|
? value
|
||||||
: new entry.Type(registry, value)
|
: new entry.Type(registry, value)
|
||||||
};
|
};
|
||||||
@@ -266,7 +266,7 @@ export class Enum implements IEnum {
|
|||||||
* @deprecated use isNone
|
* @deprecated use isNone
|
||||||
*/
|
*/
|
||||||
public get isNull (): boolean {
|
public get isNull (): boolean {
|
||||||
return this.#raw instanceof Null;
|
return this.isNone;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -310,7 +310,7 @@ export class Enum implements IEnum {
|
|||||||
return this.type === other;
|
return this.type === other;
|
||||||
} else if (isHex(other)) {
|
} else if (isHex(other)) {
|
||||||
return this.toHex() === other;
|
return this.toHex() === other;
|
||||||
} else if (other instanceof Enum) {
|
} else if (isCodec(other) && other instanceof Enum) {
|
||||||
return this.index === other.index && this.value.eq(other.value);
|
return this.index === other.index && this.value.eq(other.value);
|
||||||
} else if (isObject(other)) {
|
} else if (isObject(other)) {
|
||||||
return this.value.eq(other[this.type]);
|
return this.value.eq(other[this.type]);
|
||||||
@@ -404,7 +404,7 @@ export class Enum implements IEnum {
|
|||||||
* @description Returns the string representation of the value
|
* @description Returns the string representation of the value
|
||||||
*/
|
*/
|
||||||
public toString (): string {
|
public toString (): string {
|
||||||
return this.isNull
|
return this.isNone
|
||||||
? this.type
|
? this.type
|
||||||
: stringify(this.toJSON());
|
: stringify(this.toJSON());
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -80,8 +80,8 @@ describe('Option', (): void => {
|
|||||||
|
|
||||||
// watch the hex prefix and length
|
// watch the hex prefix and length
|
||||||
expect(
|
expect(
|
||||||
new Option(registry, Bytes, HEX).toHex().substr(6)
|
new Option(registry, Bytes, HEX).toHex().substring(6)
|
||||||
).toEqual(HEX.substr(2));
|
).toEqual(HEX.substring(2));
|
||||||
});
|
});
|
||||||
|
|
||||||
it('converts correctly from hex with toNumber (U64)', (): void => {
|
it('converts correctly from hex with toNumber (U64)', (): void => {
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ type TupleTypes = TupleType[] | {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
function decodeTuple (registry: Registry, Classes: TupleCodecClasss, value?: AnyTupleValue): [Codec[], number] {
|
function decodeTuple (registry: Registry, Classes: TupleCodecClasss, value?: Exclude<AnyTupleValue, Uint8Array>): [Codec[], number] {
|
||||||
if (isU8a(value) || isHex(value)) {
|
if (isU8a(value) || isHex(value)) {
|
||||||
return decodeU8a(registry, u8aToU8a(value), Classes);
|
return decodeU8a(registry, u8aToU8a(value), Classes);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -118,7 +118,7 @@ describe('Vec', (): void => {
|
|||||||
|
|
||||||
it('exposes a working map', (): void => {
|
it('exposes a working map', (): void => {
|
||||||
expect(
|
expect(
|
||||||
vector.map((e): string => e.toString().substr(0, 1))
|
vector.map((e): string => e.toString().substring(0, 1))
|
||||||
).toEqual(['1', '2', '3', '4', '5']);
|
).toEqual(['1', '2', '3', '4', '5']);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import { decodeU8aVec, typeToConstructor } from '../utils';
|
|||||||
import { decodeVec } from './Vec';
|
import { decodeVec } from './Vec';
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
function decodeVecFixed<T extends Codec> (registry: Registry, value: Uint8Array | HexString | unknown[], Type: CodecClass<T>, length: number): [T[], number, number] {
|
function decodeVecFixed<T extends Codec> (registry: Registry, value: HexString | unknown[], Type: CodecClass<T>, length: number): [T[], number, number] {
|
||||||
const [values, decodedLength, decodedLengthNoOffset] = decodeVec(registry, Type, value, length);
|
const [values, decodedLength, decodedLengthNoOffset] = decodeVec(registry, Type, value, length);
|
||||||
|
|
||||||
while (values.length < length) {
|
while (values.length < length) {
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import { compareSet, decodeU8aVec, sortSet, typeToConstructor } from '../utils';
|
|||||||
const l = logger('BTreeSet');
|
const l = logger('BTreeSet');
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
function decodeSetFromU8a<V extends Codec> (registry: Registry, ValClass: CodecClass<V>, u8a: Uint8Array): [Set<V>, number] {
|
function decodeSetFromU8a<V extends Codec> (registry: Registry, ValClass: CodecClass<V>, u8a: Uint8Array): [CodecClass<V>, Set<V>, number] {
|
||||||
const output = new Set<V>();
|
const output = new Set<V>();
|
||||||
const [offset, length] = compactFromU8a(u8a);
|
const [offset, length] = compactFromU8a(u8a);
|
||||||
const [values, decodedLength] = decodeU8aVec(registry, u8a, offset, ValClass, length.toNumber());
|
const [values, decodedLength] = decodeU8aVec(registry, u8a, offset, ValClass, length.toNumber());
|
||||||
@@ -20,11 +20,11 @@ function decodeSetFromU8a<V extends Codec> (registry: Registry, ValClass: CodecC
|
|||||||
output.add(values[i]);
|
output.add(values[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
return [output, decodedLength];
|
return [ValClass, output, decodedLength];
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
function decodeSetFromSet<V extends Codec> (registry: Registry, ValClass: CodecClass<V>, value: Set<any> | string[]): [Set<V>, number] {
|
function decodeSetFromSet<V extends Codec> (registry: Registry, ValClass: CodecClass<V>, value: Set<any> | string[]): [CodecClass<V>, Set<V>, number] {
|
||||||
const output = new Set<V>();
|
const output = new Set<V>();
|
||||||
|
|
||||||
value.forEach((val: any) => {
|
value.forEach((val: any) => {
|
||||||
@@ -37,7 +37,7 @@ function decodeSetFromSet<V extends Codec> (registry: Registry, ValClass: CodecC
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
return [output, 0];
|
return [ValClass, output, 0];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -54,14 +54,12 @@ function decodeSetFromSet<V extends Codec> (registry: Registry, ValClass: CodecC
|
|||||||
* @param jsonSet
|
* @param jsonSet
|
||||||
* @internal
|
* @internal
|
||||||
*/
|
*/
|
||||||
function decodeSet<V extends Codec> (registry: Registry, valType: CodecClass<V> | string, value?: Uint8Array | string | string[] | Set<any>): [Set<V>, number] {
|
function decodeSet<V extends Codec> (registry: Registry, valType: CodecClass<V> | string, value?: Uint8Array | string | string[] | Set<any>): [CodecClass<V>, Set<V>, number] {
|
||||||
if (!value) {
|
|
||||||
return [new Set<V>(), 0];
|
|
||||||
}
|
|
||||||
|
|
||||||
const ValClass = typeToConstructor(registry, valType);
|
const ValClass = typeToConstructor(registry, valType);
|
||||||
|
|
||||||
if (isU8a(value) || isHex(value)) {
|
if (!value) {
|
||||||
|
return [ValClass, new Set<V>(), 0];
|
||||||
|
} else if (isU8a(value) || isHex(value)) {
|
||||||
return decodeSetFromU8a<V>(registry, ValClass, u8aToU8a(value));
|
return decodeSetFromU8a<V>(registry, ValClass, u8aToU8a(value));
|
||||||
} else if (Array.isArray(value) || value instanceof Set) {
|
} else if (Array.isArray(value) || value instanceof Set) {
|
||||||
return decodeSetFromSet<V>(registry, ValClass, value);
|
return decodeSetFromSet<V>(registry, ValClass, value);
|
||||||
@@ -80,13 +78,13 @@ export class BTreeSet<V extends Codec = Codec> extends Set<V> implements ISet<V>
|
|||||||
readonly #ValClass: CodecClass<V>;
|
readonly #ValClass: CodecClass<V>;
|
||||||
|
|
||||||
constructor (registry: Registry, valType: CodecClass<V> | string, rawValue?: Uint8Array | string | string[] | Set<any>) {
|
constructor (registry: Registry, valType: CodecClass<V> | string, rawValue?: Uint8Array | string | string[] | Set<any>) {
|
||||||
const [values, decodedLength] = decodeSet(registry, valType, rawValue);
|
const [ValClass, values, decodedLength] = decodeSet(registry, valType, rawValue);
|
||||||
|
|
||||||
super(sortSet(values));
|
super(sortSet(values));
|
||||||
|
|
||||||
this.registry = registry;
|
this.registry = registry;
|
||||||
this.initialU8aLength = decodedLength;
|
this.initialU8aLength = decodedLength;
|
||||||
this.#ValClass = typeToConstructor(registry, valType);
|
this.#ValClass = ValClass;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static with<V extends Codec> (valType: CodecClass<V> | string): CodecClass<BTreeSet<V>> {
|
public static with<V extends Codec> (valType: CodecClass<V> | string): CodecClass<BTreeSet<V>> {
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
import type { AnyU8a, Inspect, Registry } from '../types';
|
import type { AnyU8a, Inspect, Registry } from '../types';
|
||||||
|
|
||||||
import { assert, compactAddLength, compactFromU8a, compactToU8a, isString, isU8a, u8aToU8a } from '@polkadot/util';
|
import { assert, compactAddLength, compactFromU8a, compactToU8a, isCodec, isString, isU8a, u8aToU8a } from '@polkadot/util';
|
||||||
|
|
||||||
import { Raw } from '../native/Raw';
|
import { Raw } from '../native/Raw';
|
||||||
|
|
||||||
@@ -26,19 +26,6 @@ function decodeBytesU8a (value: Uint8Array): [Uint8Array, number] {
|
|||||||
return [value.subarray(offset, total), total];
|
return [value.subarray(offset, total), total];
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
|
||||||
function decodeBytes (value?: AnyU8a): [Uint8Array | undefined, number] {
|
|
||||||
if (Array.isArray(value) || isString(value)) {
|
|
||||||
return [u8aToU8a(value), 0];
|
|
||||||
} else if (!(value instanceof Raw) && isU8a(value)) {
|
|
||||||
// We are ensuring we are not a Raw instance. In the case of a Raw we already have gotten
|
|
||||||
// rid of the length, i.e. new Bytes(new Bytes(...)) will work as expected
|
|
||||||
return decodeBytesU8a(value);
|
|
||||||
}
|
|
||||||
|
|
||||||
return [value, 0];
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @name Bytes
|
* @name Bytes
|
||||||
* @description
|
* @description
|
||||||
@@ -48,7 +35,11 @@ function decodeBytes (value?: AnyU8a): [Uint8Array | undefined, number] {
|
|||||||
*/
|
*/
|
||||||
export class Bytes extends Raw {
|
export class Bytes extends Raw {
|
||||||
constructor (registry: Registry, value?: AnyU8a) {
|
constructor (registry: Registry, value?: AnyU8a) {
|
||||||
const [u8a, decodedLength] = decodeBytes(value);
|
const [u8a, decodedLength] = isU8a(value) && !(isCodec(value) && value instanceof Raw)
|
||||||
|
? decodeBytesU8a(value)
|
||||||
|
: Array.isArray(value) || isString(value)
|
||||||
|
? [u8aToU8a(value), 0]
|
||||||
|
: [value, 0];
|
||||||
|
|
||||||
super(registry, u8a, decodedLength);
|
super(registry, u8a, decodedLength);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ import { compareMap, decodeU8a, sortMap, typeToConstructor } from '../utils';
|
|||||||
const l = logger('Map');
|
const l = logger('Map');
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
function decodeMapFromU8a<K extends Codec, V extends Codec> (registry: Registry, KeyClass: CodecClass<K>, ValClass: CodecClass<V>, u8a: Uint8Array): [Map<K, V>, number] {
|
function decodeMapFromU8a<K extends Codec, V extends Codec> (registry: Registry, KeyClass: CodecClass<K>, ValClass: CodecClass<V>, u8a: Uint8Array): [CodecClass<K>, CodecClass<V>, Map<K, V>, number] {
|
||||||
const output = new Map<K, V>();
|
const output = new Map<K, V>();
|
||||||
const [offset, length] = compactFromU8a(u8a);
|
const [offset, length] = compactFromU8a(u8a);
|
||||||
const count = length.toNumber();
|
const count = length.toNumber();
|
||||||
@@ -30,11 +30,11 @@ function decodeMapFromU8a<K extends Codec, V extends Codec> (registry: Registry,
|
|||||||
output.set(values[i] as K, values[i + 1] as V);
|
output.set(values[i] as K, values[i + 1] as V);
|
||||||
}
|
}
|
||||||
|
|
||||||
return [output, offset + decodedLength];
|
return [KeyClass, ValClass, output, offset + decodedLength];
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
function decodeMapFromMap<K extends Codec, V extends Codec> (registry: Registry, KeyClass: CodecClass<K>, ValClass: CodecClass<V>, value: Map<any, any>): [Map<K, V>, number] {
|
function decodeMapFromMap<K extends Codec, V extends Codec> (registry: Registry, KeyClass: CodecClass<K>, ValClass: CodecClass<V>, value: Map<any, any>): [CodecClass<K>, CodecClass<V>, Map<K, V>, number] {
|
||||||
const output = new Map<K, V>();
|
const output = new Map<K, V>();
|
||||||
|
|
||||||
for (const [key, val] of value.entries()) {
|
for (const [key, val] of value.entries()) {
|
||||||
@@ -58,7 +58,7 @@ function decodeMapFromMap<K extends Codec, V extends Codec> (registry: Registry,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return [output, 0];
|
return [KeyClass, ValClass, output, 0];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -76,12 +76,12 @@ function decodeMapFromMap<K extends Codec, V extends Codec> (registry: Registry,
|
|||||||
* @param jsonMap
|
* @param jsonMap
|
||||||
* @internal
|
* @internal
|
||||||
*/
|
*/
|
||||||
function decodeMap<K extends Codec, V extends Codec> (registry: Registry, keyType: CodecClass<K> | string, valType: CodecClass<V> | string, value?: Uint8Array | string | Map<any, any>): [Map<K, V>, number] {
|
function decodeMap<K extends Codec, V extends Codec> (registry: Registry, keyType: CodecClass<K> | string, valType: CodecClass<V> | string, value?: Uint8Array | string | Map<any, any>): [CodecClass<K>, CodecClass<V>, Map<K, V>, number] {
|
||||||
const KeyClass = typeToConstructor(registry, keyType);
|
const KeyClass = typeToConstructor(registry, keyType);
|
||||||
const ValClass = typeToConstructor(registry, valType);
|
const ValClass = typeToConstructor(registry, valType);
|
||||||
|
|
||||||
if (!value) {
|
if (!value) {
|
||||||
return [new Map<K, V>(), 0];
|
return [KeyClass, ValClass, new Map<K, V>(), 0];
|
||||||
} else if (isU8a(value) || isHex(value)) {
|
} else if (isU8a(value) || isHex(value)) {
|
||||||
return decodeMapFromU8a<K, V>(registry, KeyClass, ValClass, u8aToU8a(value));
|
return decodeMapFromU8a<K, V>(registry, KeyClass, ValClass, u8aToU8a(value));
|
||||||
} else if (value instanceof Map) {
|
} else if (value instanceof Map) {
|
||||||
@@ -107,14 +107,14 @@ export class CodecMap<K extends Codec = Codec, V extends Codec = Codec> extends
|
|||||||
readonly #type: string;
|
readonly #type: string;
|
||||||
|
|
||||||
constructor (registry: Registry, keyType: CodecClass<K> | string, valType: CodecClass<V> | string, rawValue: Uint8Array | string | Map<any, any> | undefined, type: 'BTreeMap' | 'HashMap' = 'HashMap') {
|
constructor (registry: Registry, keyType: CodecClass<K> | string, valType: CodecClass<V> | string, rawValue: Uint8Array | string | Map<any, any> | undefined, type: 'BTreeMap' | 'HashMap' = 'HashMap') {
|
||||||
const [decoded, decodedLength] = decodeMap(registry, keyType, valType, rawValue);
|
const [KeyClass, ValClass, decoded, decodedLength] = decodeMap(registry, keyType, valType, rawValue);
|
||||||
|
|
||||||
super(type === 'BTreeMap' ? sortMap(decoded) : decoded);
|
super(type === 'BTreeMap' ? sortMap(decoded) : decoded);
|
||||||
|
|
||||||
this.registry = registry;
|
this.registry = registry;
|
||||||
this.initialU8aLength = decodedLength;
|
this.initialU8aLength = decodedLength;
|
||||||
this.#KeyClass = typeToConstructor(registry, keyType);
|
this.#KeyClass = KeyClass;
|
||||||
this.#ValClass = typeToConstructor(registry, valType);
|
this.#ValClass = ValClass;
|
||||||
this.#type = type;
|
this.#type = type;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -6,17 +6,6 @@ import type { Codec, Inspect, IU8a, Registry } from '../types';
|
|||||||
|
|
||||||
import { isU8a, u8aToHex } from '@polkadot/util';
|
import { isU8a, u8aToHex } from '@polkadot/util';
|
||||||
|
|
||||||
/** @internal */
|
|
||||||
function decodeBool (value: any): boolean {
|
|
||||||
if (isU8a(value)) {
|
|
||||||
return value[0] === 1;
|
|
||||||
} else if (value instanceof Boolean) {
|
|
||||||
return value.valueOf();
|
|
||||||
}
|
|
||||||
|
|
||||||
return !!value;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @name bool
|
* @name bool
|
||||||
* @description
|
* @description
|
||||||
@@ -30,7 +19,13 @@ export class bool extends Boolean implements Codec {
|
|||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-types
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
||||||
constructor (registry: Registry, value: bool | Boolean | Uint8Array | boolean | number = false) {
|
constructor (registry: Registry, value: bool | Boolean | Uint8Array | boolean | number = false) {
|
||||||
super(decodeBool(value));
|
super(
|
||||||
|
isU8a(value)
|
||||||
|
? value[0] === 1
|
||||||
|
: value instanceof Boolean
|
||||||
|
? value.valueOf()
|
||||||
|
: !!value
|
||||||
|
);
|
||||||
|
|
||||||
this.registry = registry;
|
this.registry = registry;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ const BITLENGTH: UIntBitLength = 64;
|
|||||||
|
|
||||||
function decodeDate (value: CodecDate | Date | AnyNumber): Date {
|
function decodeDate (value: CodecDate | Date | AnyNumber): Date {
|
||||||
if (isU8a(value)) {
|
if (isU8a(value)) {
|
||||||
value = u8aToBn(value.subarray(0, BITLENGTH / 8), true);
|
value = u8aToBn(value.subarray(0, BITLENGTH / 8));
|
||||||
} else if (value instanceof Date) {
|
} else if (value instanceof Date) {
|
||||||
return value;
|
return value;
|
||||||
} else if (isString(value)) {
|
} else if (isString(value)) {
|
||||||
|
|||||||
@@ -111,8 +111,8 @@ export class CodecSet extends Set<string> implements ISet<string> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return class extends CodecSet {
|
return class extends CodecSet {
|
||||||
constructor (registry: Registry, value?: unknown) {
|
constructor (registry: Registry, value?: string[] | Set<string> | Uint8Array | BN | number | string) {
|
||||||
super(registry, values, value as undefined, bitLength);
|
super(registry, values, value, bitLength);
|
||||||
|
|
||||||
objectProperties(this, isKeys, (_, i) => this.strings.includes(keys[i]));
|
objectProperties(this, isKeys, (_, i) => this.strings.includes(keys[i]));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { HexString } from '@polkadot/util/types';
|
import type { HexString } from '@polkadot/util/types';
|
||||||
import type { AnyU8a, Codec, Inspect, IU8a, Registry } from '../types';
|
import type { AnyU8a, Inspect, IText, IU8a, Registry } from '../types';
|
||||||
|
|
||||||
import { assert, compactAddLength, compactFromU8a, compactToU8a, hexToU8a, isHex, isString, isU8a, stringToU8a, u8aToHex, u8aToString } from '@polkadot/util';
|
import { assert, compactAddLength, compactFromU8a, compactToU8a, hexToU8a, isHex, isString, isU8a, stringToU8a, u8aToHex, u8aToString } from '@polkadot/util';
|
||||||
|
|
||||||
@@ -45,9 +45,7 @@ function decodeText (value?: null | Text | string | AnyU8a | { toString: () => s
|
|||||||
* object, inheriting all methods exposed from `String`.
|
* object, inheriting all methods exposed from `String`.
|
||||||
* @noInheritDoc
|
* @noInheritDoc
|
||||||
*/
|
*/
|
||||||
// TODO
|
export class Text extends String implements IText {
|
||||||
// - Strings should probably be trimmed (docs do come through with extra padding)
|
|
||||||
export class Text extends String implements Codec {
|
|
||||||
public readonly registry: Registry;
|
public readonly registry: Registry;
|
||||||
|
|
||||||
public createdAtHash?: IU8a;
|
public createdAtHash?: IU8a;
|
||||||
|
|||||||
@@ -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: '8.3.1' };
|
export const packageInfo = { name: '@polkadot/types-codec', path: 'auto', type: 'auto', version: '8.4.1' };
|
||||||
|
|||||||
@@ -61,6 +61,10 @@ export interface IStruct<K = string, V extends Codec = Codec> extends Map<K, V>,
|
|||||||
toArray (): Codec[];
|
toArray (): Codec[];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface IText extends String, Codec {
|
||||||
|
// nothing additional
|
||||||
|
}
|
||||||
|
|
||||||
export type ITuple<T extends AnyTuple = Codec[]> = T & Codec;
|
export type ITuple<T extends AnyTuple = Codec[]> = T & Codec;
|
||||||
|
|
||||||
export interface IU8a extends Uint8Array, Codec {
|
export interface IU8a extends Uint8Array, Codec {
|
||||||
|
|||||||
@@ -88,8 +88,8 @@ export function cleanupCompact (): Mapper {
|
|||||||
if (value[index] === '<') {
|
if (value[index] === '<') {
|
||||||
const end = findClosing(value, index + 1) - 14;
|
const end = findClosing(value, index + 1) - 14;
|
||||||
|
|
||||||
if (value.substr(end, 14) === ' as HasCompact') {
|
if (value.substring(end, end + 14) === ' as HasCompact') {
|
||||||
value = `Compact<${value.substr(index + 1, end - index - 1)}>`;
|
value = `Compact<${value.substring(index + 1, end)}>`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -126,7 +126,7 @@ function replaceTagWith (value: string, matcher: string, replacer: (inner: strin
|
|||||||
const start = index + matcher.length;
|
const start = index + matcher.length;
|
||||||
const end = findClosing(value, start);
|
const end = findClosing(value, start);
|
||||||
|
|
||||||
value = `${value.substr(0, index)}${replacer(value.substr(start, end - start))}${value.substr(end + 1)}`;
|
value = `${value.substring(0, index)}${replacer(value.substring(start, end))}${value.substring(end + 1)}`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -157,7 +157,7 @@ export function removeColons (): Mapper {
|
|||||||
index = value.indexOf('::');
|
index = value.indexOf('::');
|
||||||
|
|
||||||
if (index === 0) {
|
if (index === 0) {
|
||||||
value = value.substr(2);
|
value = value.substring(2);
|
||||||
} else if (index !== -1) {
|
} else if (index !== -1) {
|
||||||
if (allowNamespaces) {
|
if (allowNamespaces) {
|
||||||
return value;
|
return value;
|
||||||
@@ -169,7 +169,7 @@ export function removeColons (): Mapper {
|
|||||||
start--;
|
start--;
|
||||||
}
|
}
|
||||||
|
|
||||||
value = `${value.substr(0, start + 1)}${value.substr(index + 2)}`;
|
value = `${value.substring(0, start + 1)}${value.substring(index + 2)}`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -185,7 +185,7 @@ export function removeGenerics (): Mapper {
|
|||||||
const box = ALLOWED_BOXES.find((box): boolean => {
|
const box = ALLOWED_BOXES.find((box): boolean => {
|
||||||
const start = index - box.length;
|
const start = index - box.length;
|
||||||
|
|
||||||
return (start >= 0 && value.substr(start, box.length) === box) && (
|
return (start >= 0 && value.substring(start, start + box.length) === box) && (
|
||||||
// make sure it is stand-alone, i.e. don't catch ElectionResult<...> as Result<...>
|
// make sure it is stand-alone, i.e. don't catch ElectionResult<...> as Result<...>
|
||||||
start === 0 || BOX_PRECEDING.includes(value[start - 1])
|
start === 0 || BOX_PRECEDING.includes(value[start - 1])
|
||||||
);
|
);
|
||||||
@@ -195,7 +195,7 @@ export function removeGenerics (): Mapper {
|
|||||||
if (!box) {
|
if (!box) {
|
||||||
const end = findClosing(value, index + 1);
|
const end = findClosing(value, index + 1);
|
||||||
|
|
||||||
value = `${value.substr(0, index)}${value.substr(end + 1)}`;
|
value = `${value.substring(0, index)}${value.substring(end + 1)}`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,14 +20,14 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "8.3.1",
|
"version": "8.4.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.17.9",
|
"@babel/runtime": "^7.17.9",
|
||||||
"@polkadot/types-codec": "8.3.1",
|
"@polkadot/types-codec": "8.4.1",
|
||||||
"@polkadot/util": "^9.1.1"
|
"@polkadot/util": "^9.2.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/types": "8.3.1"
|
"@polkadot/types": "8.4.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: '8.3.1' };
|
export const packageInfo = { name: '@polkadot/types-create', path: 'auto', type: 'auto', version: '8.4.1' };
|
||||||
|
|||||||
@@ -128,8 +128,8 @@ function _decodeFixedVec (value: TypeDef, type: string, _: string, count: number
|
|||||||
|
|
||||||
assert(index !== -1, () => `${type}: Unable to extract location of ';'`);
|
assert(index !== -1, () => `${type}: Unable to extract location of ';'`);
|
||||||
|
|
||||||
const vecType = type.substr(1, index - 1);
|
const vecType = type.substring(1, index);
|
||||||
const [strLength, displayName] = type.substr(index + 1, max - index - 1).split(';');
|
const [strLength, displayName] = type.substring(index + 1, max).split(';');
|
||||||
const length = parseInt(strLength.trim(), 10);
|
const length = parseInt(strLength.trim(), 10);
|
||||||
|
|
||||||
// as a first round, only u8 via u8aFixed, we can add more support
|
// as a first round, only u8 via u8aFixed, we can add more support
|
||||||
@@ -154,7 +154,7 @@ function _decodeTuple (value: TypeDef, _: string, subType: string, count: number
|
|||||||
// decode a Int/UInt<bitLength[, name]>
|
// decode a Int/UInt<bitLength[, name]>
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||||
function _decodeAnyInt (value: TypeDef, type: string, _: string, clazz: 'Int' | 'UInt'): TypeDef {
|
function _decodeAnyInt (value: TypeDef, type: string, _: string, clazz: 'Int' | 'UInt'): TypeDef {
|
||||||
const [strLength, displayName] = type.substr(clazz.length + 1, type.length - clazz.length - 1 - 1).split(',');
|
const [strLength, displayName] = type.substring(clazz.length + 1, type.length - 1).split(',');
|
||||||
const length = parseInt(strLength.trim(), 10);
|
const length = parseInt(strLength.trim(), 10);
|
||||||
|
|
||||||
// as a first round, only u8 via u8aFixed, we can add more support
|
// as a first round, only u8 via u8aFixed, we can add more support
|
||||||
@@ -178,13 +178,13 @@ function _decodeUInt (value: TypeDef, type: string, subType: string): TypeDef {
|
|||||||
function _decodeDoNotConstruct (value: TypeDef, type: string, _: string): TypeDef {
|
function _decodeDoNotConstruct (value: TypeDef, type: string, _: string): TypeDef {
|
||||||
const NAME_LENGTH = 'DoNotConstruct'.length;
|
const NAME_LENGTH = 'DoNotConstruct'.length;
|
||||||
|
|
||||||
value.displayName = type.substr(NAME_LENGTH + 1, type.length - NAME_LENGTH - 1 - 1);
|
value.displayName = type.substring(NAME_LENGTH + 1, type.length - 1);
|
||||||
|
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
function hasWrapper (type: string, [start, end]: [string, string, TypeDefInfo, any?]): boolean {
|
function hasWrapper (type: string, [start, end]: [string, string, TypeDefInfo, any?]): boolean {
|
||||||
return (type.substr(0, start.length) === start) && (type.substr(-1 * end.length) === end);
|
return (type.substring(0, start.length) === start) && (type.slice(-1 * end.length) === end);
|
||||||
}
|
}
|
||||||
|
|
||||||
const nestedExtraction: [string, string, TypeDefInfo, (value: TypeDef, type: string, subType: string, count: number) => TypeDef][] = [
|
const nestedExtraction: [string, string, TypeDefInfo, (value: TypeDef, type: string, subType: string, count: number) => TypeDef][] = [
|
||||||
@@ -213,7 +213,7 @@ const wrappedExtraction: [string, string, TypeDefInfo][] = [
|
|||||||
];
|
];
|
||||||
|
|
||||||
function extractSubType (type: string, [start, end]: [string, string, TypeDefInfo, any?]): string {
|
function extractSubType (type: string, [start, end]: [string, string, TypeDefInfo, any?]): string {
|
||||||
return type.substr(start.length, type.length - start.length - end.length);
|
return type.substring(start.length, type.length - end.length);
|
||||||
}
|
}
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-types
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ export function typeSplit (type: string): string[] {
|
|||||||
|
|
||||||
const extract = (index: number): void => {
|
const extract = (index: number): void => {
|
||||||
if (isNotNested(cDepth, fDepth, sDepth, tDepth)) {
|
if (isNotNested(cDepth, fDepth, sDepth, tDepth)) {
|
||||||
result.push(type.substr(start, index - start).trim());
|
result.push(type.substring(start, index).trim());
|
||||||
start = index + 1;
|
start = index + 1;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -45,7 +45,7 @@ export function typeSplit (type: string): string[] {
|
|||||||
assert(isNotNested(cDepth, fDepth, sDepth, tDepth), () => `Invalid definition (missing terminators) found in ${type}`);
|
assert(isNotNested(cDepth, fDepth, sDepth, tDepth), () => `Invalid definition (missing terminators) found in ${type}`);
|
||||||
|
|
||||||
// the final leg of the journey
|
// the final leg of the journey
|
||||||
result.push(type.substr(start, type.length - start).trim());
|
result.push(type.substring(start, type.length).trim());
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,14 +20,14 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "8.3.1",
|
"version": "8.4.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.17.9",
|
"@babel/runtime": "^7.17.9",
|
||||||
"@polkadot/networks": "^9.1.1",
|
"@polkadot/networks": "^9.2.1",
|
||||||
"@polkadot/types": "8.3.1",
|
"@polkadot/types": "8.4.1",
|
||||||
"@polkadot/types-codec": "8.3.1",
|
"@polkadot/types-codec": "8.4.1",
|
||||||
"@polkadot/types-create": "8.3.1",
|
"@polkadot/types-create": "8.4.1",
|
||||||
"@polkadot/util": "^9.1.1"
|
"@polkadot/util": "^9.2.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: '8.3.1' };
|
export const packageInfo = { name: '@polkadot/types-known', path: 'auto', type: 'auto', version: '8.4.1' };
|
||||||
|
|||||||
@@ -15,7 +15,8 @@ const upgrades: ChainUpgradesRaw = [
|
|||||||
[6137912, 2028], [6561855, 2029], [7100891, 2030], [7468792, 9010], [7668600, 9030],
|
[6137912, 2028], [6561855, 2029], [7100891, 2030], [7468792, 9010], [7668600, 9030],
|
||||||
[7812476, 9040], [8010981, 9050], [8073833, 9070], [8555825, 9080], [8945245, 9090],
|
[7812476, 9040], [8010981, 9050], [8073833, 9070], [8555825, 9080], [8945245, 9090],
|
||||||
[9611377, 9100], [9625129, 9111], [9866422, 9122], [10403784, 9130], [10960765, 9150],
|
[9611377, 9100], [9625129, 9111], [9866422, 9122], [10403784, 9130], [10960765, 9150],
|
||||||
[11006614, 9151], [11404482, 9160], [11601803, 9170], [12008022, 9180], [12405451, 9190]
|
[11006614, 9151], [11404482, 9160], [11601803, 9170], [12008022, 9180], [12405451, 9190],
|
||||||
|
[12665416, 9200]
|
||||||
];
|
];
|
||||||
|
|
||||||
export default upgrades;
|
export default upgrades;
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ const upgrades: ChainUpgradesRaw = [
|
|||||||
[1205128, 18], [1603423, 23], [1733218, 24], [2005673, 25], [2436698, 26],
|
[1205128, 18], [1603423, 23], [1733218, 24], [2005673, 25], [2436698, 26],
|
||||||
[3613564, 27], [3899547, 28], [4345767, 29], [4876134, 30], [5661442, 9050],
|
[3613564, 27], [3899547, 28], [4345767, 29], [4876134, 30], [5661442, 9050],
|
||||||
[6321619, 9080], [6713249, 9090], [7217907, 9100], [7229126, 9110], [7560558, 9122],
|
[6321619, 9080], [6713249, 9090], [7217907, 9100], [7229126, 9110], [7560558, 9122],
|
||||||
[8115869, 9140], [8638103, 9151], [9280179, 9170], [9738717, 9180]
|
[8115869, 9140], [8638103, 9151], [9280179, 9170], [9738717, 9180], [10156856, 9190]
|
||||||
];
|
];
|
||||||
|
|
||||||
export default upgrades;
|
export default upgrades;
|
||||||
|
|||||||
@@ -13,7 +13,8 @@ const upgrades: ChainUpgradesRaw = [
|
|||||||
[5879822, 9031], [5896856, 9032], [5897316, 9033], [6117927, 9050], [6210274, 9070],
|
[5879822, 9031], [5896856, 9032], [5897316, 9033], [6117927, 9050], [6210274, 9070],
|
||||||
[6379314, 9080], [6979141, 9090], [7568453, 9100], [7766394, 9111], [7911691, 9120],
|
[6379314, 9080], [6979141, 9090], [7568453, 9100], [7766394, 9111], [7911691, 9120],
|
||||||
[7968866, 9121], [7982889, 9122], [8514322, 9130], [9091726, 9140], [9091774, 9150],
|
[7968866, 9121], [7982889, 9122], [8514322, 9130], [9091726, 9140], [9091774, 9150],
|
||||||
[9406726, 9160], [9921066, 9170], [10007115, 9180], [10480973, 9190], [10578091, 9200]
|
[9406726, 9160], [9921066, 9170], [10007115, 9180], [10480973, 9190], [10578091, 9200],
|
||||||
|
[10678509, 9210], [10811001, 9220]
|
||||||
];
|
];
|
||||||
|
|
||||||
export default upgrades;
|
export default upgrades;
|
||||||
|
|||||||
@@ -20,10 +20,10 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "8.3.1",
|
"version": "8.4.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.17.9",
|
"@babel/runtime": "^7.17.9",
|
||||||
"@polkadot/util": "^9.1.1"
|
"@polkadot/util": "^9.2.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/types-support', path: 'auto', type: 'auto', version: '8.3.1' };
|
export const packageInfo = { name: '@polkadot/types-support', path: 'auto', type: 'auto', version: '8.4.1' };
|
||||||
|
|||||||
@@ -20,20 +20,20 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "8.3.1",
|
"version": "8.4.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.17.9",
|
"@babel/runtime": "^7.17.9",
|
||||||
"@polkadot/keyring": "^9.1.1",
|
"@polkadot/keyring": "^9.2.1",
|
||||||
"@polkadot/types-augment": "8.3.1",
|
"@polkadot/types-augment": "8.4.1",
|
||||||
"@polkadot/types-codec": "8.3.1",
|
"@polkadot/types-codec": "8.4.1",
|
||||||
"@polkadot/types-create": "8.3.1",
|
"@polkadot/types-create": "8.4.1",
|
||||||
"@polkadot/util": "^9.1.1",
|
"@polkadot/util": "^9.2.1",
|
||||||
"@polkadot/util-crypto": "^9.1.1",
|
"@polkadot/util-crypto": "^9.2.1",
|
||||||
"rxjs": "^7.5.5"
|
"rxjs": "^7.5.5"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/keyring": "^9.1.1",
|
"@polkadot/keyring": "^9.2.1",
|
||||||
"@polkadot/types-support": "8.3.1"
|
"@polkadot/types-support": "8.4.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,13 +1,12 @@
|
|||||||
// Copyright 2017-2022 @polkadot/types authors & contributors
|
// Copyright 2017-2022 @polkadot/types authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { Compact } from '@polkadot/types-codec';
|
|
||||||
import type { AnyJson, AnyTuple, AnyU8a, ArgsDef, IMethod, Inspect } from '@polkadot/types-codec/types';
|
import type { AnyJson, AnyTuple, AnyU8a, ArgsDef, IMethod, Inspect } from '@polkadot/types-codec/types';
|
||||||
import type { HexString } from '@polkadot/util/types';
|
import type { HexString } from '@polkadot/util/types';
|
||||||
import type { EcdsaSignature, Ed25519Signature, ExtrinsicUnknown, ExtrinsicV4, Sr25519Signature } from '../interfaces/extrinsics';
|
import type { EcdsaSignature, Ed25519Signature, ExtrinsicUnknown, ExtrinsicV4, Sr25519Signature } from '../interfaces/extrinsics';
|
||||||
import type { FunctionMetadataLatest } from '../interfaces/metadata';
|
import type { FunctionMetadataLatest } from '../interfaces/metadata';
|
||||||
import type { Address, Balance, Call, CodecHash, Index } from '../interfaces/runtime';
|
import type { Address, Call, CodecHash } from '../interfaces/runtime';
|
||||||
import type { CallBase, ExtrinsicPayloadValue, IExtrinsic, IKeyringPair, Registry, SignatureOptions } from '../types';
|
import type { CallBase, ExtrinsicPayloadValue, ICompact, IExtrinsic, IKeyringPair, INumber, Registry, SignatureOptions } from '../types';
|
||||||
import type { GenericExtrinsicEra } from './ExtrinsicEra';
|
import type { GenericExtrinsicEra } from './ExtrinsicEra';
|
||||||
import type { ExtrinsicValueV4 } from './v4/Extrinsic';
|
import type { ExtrinsicValueV4 } from './v4/Extrinsic';
|
||||||
|
|
||||||
@@ -164,7 +163,7 @@ abstract class ExtrinsicBase<A extends AnyTuple> extends Base<ExtrinsicVx | Extr
|
|||||||
/**
|
/**
|
||||||
* @description The nonce for this extrinsic
|
* @description The nonce for this extrinsic
|
||||||
*/
|
*/
|
||||||
public get nonce (): Compact<Index> {
|
public get nonce (): ICompact<INumber> {
|
||||||
return this.inner.signature.nonce;
|
return this.inner.signature.nonce;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -189,7 +188,7 @@ abstract class ExtrinsicBase<A extends AnyTuple> extends Base<ExtrinsicVx | Extr
|
|||||||
/**
|
/**
|
||||||
* @description Forwards compat
|
* @description Forwards compat
|
||||||
*/
|
*/
|
||||||
public get tip (): Compact<Balance> {
|
public get tip (): ICompact<INumber> {
|
||||||
return this.inner.signature.tip;
|
return this.inner.signature.tip;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,15 +2,14 @@
|
|||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { AnyU8a, Registry } from '@polkadot/types-codec/types';
|
import type { AnyU8a, Registry } from '@polkadot/types-codec/types';
|
||||||
import type { BN } from '@polkadot/util';
|
import type { IExtrinsicEra, INumber } from '../types';
|
||||||
import type { IExtrinsicEra } from '../types';
|
|
||||||
|
|
||||||
import { Enum, Raw, Tuple, U64 } from '@polkadot/types-codec';
|
import { Enum, Raw, Tuple, U64 } from '@polkadot/types-codec';
|
||||||
import { assert, bnToBn, formatNumber, hexToU8a, isHex, isObject, isU8a, u8aToBn, u8aToU8a } from '@polkadot/util';
|
import { assert, bnToBn, formatNumber, hexToU8a, isHex, isObject, isU8a, u8aToBn, u8aToU8a } from '@polkadot/util';
|
||||||
|
|
||||||
import { IMMORTAL_ERA } from './constants';
|
import { IMMORTAL_ERA } from './constants';
|
||||||
|
|
||||||
type MortalEraValue = [U64, U64];
|
type MortalEraValue = [INumber, INumber];
|
||||||
|
|
||||||
interface MortalMethod {
|
interface MortalMethod {
|
||||||
current: number;
|
current: number;
|
||||||
@@ -147,15 +146,15 @@ export class MortalEra extends Tuple {
|
|||||||
/**
|
/**
|
||||||
* @description The period of this Mortal wraps as a [[U64]]
|
* @description The period of this Mortal wraps as a [[U64]]
|
||||||
*/
|
*/
|
||||||
public get period (): U64 {
|
public get period (): INumber {
|
||||||
return this[0] as U64;
|
return this[0] as INumber;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @description The phase of this Mortal wraps as a [[U64]]
|
* @description The phase of this Mortal wraps as a [[U64]]
|
||||||
*/
|
*/
|
||||||
public get phase (): U64 {
|
public get phase (): INumber {
|
||||||
return this[1] as U64;
|
return this[1] as INumber;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -201,7 +200,7 @@ export class MortalEra extends Tuple {
|
|||||||
/**
|
/**
|
||||||
* @description Get the block number of the start of the era whose properties this object describes that `current` belongs to.
|
* @description Get the block number of the start of the era whose properties this object describes that `current` belongs to.
|
||||||
*/
|
*/
|
||||||
public birth (current: BN | number): number {
|
public birth (current: INumber | number): number {
|
||||||
// FIXME No toNumber() here
|
// FIXME No toNumber() here
|
||||||
return Math.floor(
|
return Math.floor(
|
||||||
(
|
(
|
||||||
@@ -213,7 +212,7 @@ export class MortalEra extends Tuple {
|
|||||||
/**
|
/**
|
||||||
* @description Get the block number of the first block at which the era has ended.
|
* @description Get the block number of the first block at which the era has ended.
|
||||||
*/
|
*/
|
||||||
public death (current: BN | number): number {
|
public death (current: INumber | number): number {
|
||||||
// FIXME No toNumber() here
|
// FIXME No toNumber() here
|
||||||
return this.birth(current) + this.period.toNumber();
|
return this.birth(current) + this.period.toNumber();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,10 +4,10 @@
|
|||||||
import type { AnyJson, BareOpts, Registry } from '@polkadot/types-codec/types';
|
import type { AnyJson, BareOpts, Registry } from '@polkadot/types-codec/types';
|
||||||
import type { HexString } from '@polkadot/util/types';
|
import type { HexString } from '@polkadot/util/types';
|
||||||
import type { ExtrinsicPayloadV4 } from '../interfaces/extrinsics';
|
import type { ExtrinsicPayloadV4 } from '../interfaces/extrinsics';
|
||||||
import type { Balance, Hash, Index } from '../interfaces/runtime';
|
import type { Hash } from '../interfaces/runtime';
|
||||||
import type { ExtrinsicPayloadValue, IKeyringPair } from '../types';
|
import type { ExtrinsicPayloadValue, ICompact, IKeyringPair, INumber } from '../types';
|
||||||
|
|
||||||
import { Base, Compact, Raw, u32 } from '@polkadot/types-codec';
|
import { Base, Raw } from '@polkadot/types-codec';
|
||||||
import { u8aToHex } from '@polkadot/util';
|
import { u8aToHex } from '@polkadot/util';
|
||||||
|
|
||||||
import { DEFAULT_VERSION } from './constants';
|
import { DEFAULT_VERSION } from './constants';
|
||||||
@@ -80,14 +80,14 @@ export class GenericExtrinsicPayload extends Base<ExtrinsicPayloadVx> {
|
|||||||
/**
|
/**
|
||||||
* @description The [[Index]]
|
* @description The [[Index]]
|
||||||
*/
|
*/
|
||||||
public get nonce (): Compact<Index> {
|
public get nonce (): ICompact<INumber> {
|
||||||
return this.inner.nonce;
|
return this.inner.nonce;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @description The specVersion as a [[u32]] for this payload
|
* @description The specVersion as a [[u32]] for this payload
|
||||||
*/
|
*/
|
||||||
public get specVersion (): u32 {
|
public get specVersion (): INumber {
|
||||||
// NOTE only v3+
|
// NOTE only v3+
|
||||||
return this.inner.specVersion || this.registry.createTypeUnsafe('u32', []);
|
return this.inner.specVersion || this.registry.createTypeUnsafe('u32', []);
|
||||||
}
|
}
|
||||||
@@ -95,7 +95,7 @@ export class GenericExtrinsicPayload extends Base<ExtrinsicPayloadVx> {
|
|||||||
/**
|
/**
|
||||||
* @description The [[Balance]]
|
* @description The [[Balance]]
|
||||||
*/
|
*/
|
||||||
public get tip (): Compact<Balance> {
|
public get tip (): ICompact<INumber> {
|
||||||
// NOTE from v2+
|
// NOTE from v2+
|
||||||
return this.inner.tip || this.registry.createTypeUnsafe('Compact<Balance>', []);
|
return this.inner.tip || this.registry.createTypeUnsafe('Compact<Balance>', []);
|
||||||
}
|
}
|
||||||
@@ -103,7 +103,7 @@ export class GenericExtrinsicPayload extends Base<ExtrinsicPayloadVx> {
|
|||||||
/**
|
/**
|
||||||
* @description The transaction version as a [[u32]] for this payload
|
* @description The transaction version as a [[u32]] for this payload
|
||||||
*/
|
*/
|
||||||
public get transactionVersion (): u32 {
|
public get transactionVersion (): INumber {
|
||||||
// NOTE only v4+
|
// NOTE only v4+
|
||||||
return this.inner.transactionVersion || this.registry.createTypeUnsafe('u32', []);
|
return this.inner.transactionVersion || this.registry.createTypeUnsafe('u32', []);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,24 +3,24 @@
|
|||||||
|
|
||||||
import type { Registry } from '@polkadot/types-codec/types';
|
import type { Registry } from '@polkadot/types-codec/types';
|
||||||
import type { HexString } from '@polkadot/util/types';
|
import type { HexString } from '@polkadot/util/types';
|
||||||
import type { Address, Balance, BlockNumber, Call, ExtrinsicEra, Hash, Index, RuntimeVersion } from '../interfaces';
|
import type { Address, Call, ExtrinsicEra, Hash } from '../interfaces';
|
||||||
import type { Codec, ISignerPayload, SignerPayloadJSON, SignerPayloadRaw } from '../types';
|
import type { Codec, ICompact, INumber, IRuntimeVersion, ISignerPayload, SignerPayloadJSON, SignerPayloadRaw } from '../types';
|
||||||
|
|
||||||
import { Compact, Option, Struct, Text, u8, Vec } from '@polkadot/types-codec';
|
import { Option, Struct, Text, Vec } from '@polkadot/types-codec';
|
||||||
import { objectProperty, objectSpread, u8aToHex } from '@polkadot/util';
|
import { objectProperty, objectSpread, u8aToHex } from '@polkadot/util';
|
||||||
|
|
||||||
export interface SignerPayloadType extends Codec {
|
export interface SignerPayloadType extends Codec {
|
||||||
address: Address;
|
address: Address;
|
||||||
blockHash: Hash;
|
blockHash: Hash;
|
||||||
blockNumber: BlockNumber;
|
blockNumber: INumber;
|
||||||
era: ExtrinsicEra;
|
era: ExtrinsicEra;
|
||||||
genesisHash: Hash;
|
genesisHash: Hash;
|
||||||
method: Call;
|
method: Call;
|
||||||
nonce: Compact<Index>;
|
nonce: ICompact<INumber>;
|
||||||
runtimeVersion: RuntimeVersion;
|
runtimeVersion: IRuntimeVersion;
|
||||||
signedExtensions: Vec<Text>;
|
signedExtensions: Vec<Text>;
|
||||||
tip: Compact<Balance>;
|
tip: ICompact<INumber>;
|
||||||
version: u8;
|
version: INumber;
|
||||||
}
|
}
|
||||||
|
|
||||||
const knownTypes: Record<string, string> = {
|
const knownTypes: Record<string, string> = {
|
||||||
@@ -71,7 +71,7 @@ export class GenericSignerPayload extends Struct implements ISignerPayload, Sign
|
|||||||
return this.getT('blockHash');
|
return this.getT('blockHash');
|
||||||
}
|
}
|
||||||
|
|
||||||
get blockNumber (): BlockNumber {
|
get blockNumber (): INumber {
|
||||||
return this.getT('blockNumber');
|
return this.getT('blockNumber');
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -87,11 +87,11 @@ export class GenericSignerPayload extends Struct implements ISignerPayload, Sign
|
|||||||
return this.getT('method');
|
return this.getT('method');
|
||||||
}
|
}
|
||||||
|
|
||||||
get nonce (): Compact<Index> {
|
get nonce (): ICompact<INumber> {
|
||||||
return this.getT('nonce');
|
return this.getT('nonce');
|
||||||
}
|
}
|
||||||
|
|
||||||
get runtimeVersion (): RuntimeVersion {
|
get runtimeVersion (): IRuntimeVersion {
|
||||||
return this.getT('runtimeVersion');
|
return this.getT('runtimeVersion');
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -99,11 +99,11 @@ export class GenericSignerPayload extends Struct implements ISignerPayload, Sign
|
|||||||
return this.getT('signedExtensions');
|
return this.getT('signedExtensions');
|
||||||
}
|
}
|
||||||
|
|
||||||
get tip (): Compact<Balance> {
|
get tip (): ICompact<INumber> {
|
||||||
return this.getT('tip');
|
return this.getT('tip');
|
||||||
}
|
}
|
||||||
|
|
||||||
get version (): u8 {
|
get version (): INumber {
|
||||||
return this.getT('version');
|
return this.getT('version');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -5,10 +5,10 @@ import type { SignOptions } from '@polkadot/keyring/types';
|
|||||||
import type { Registry } from '@polkadot/types-codec/types';
|
import type { Registry } from '@polkadot/types-codec/types';
|
||||||
import type { HexString } from '@polkadot/util/types';
|
import type { HexString } from '@polkadot/util/types';
|
||||||
import type { ExtrinsicEra } from '../../interfaces/extrinsics';
|
import type { ExtrinsicEra } from '../../interfaces/extrinsics';
|
||||||
import type { AssetId, Balance, Hash, Index } from '../../interfaces/runtime';
|
import type { Hash } from '../../interfaces/runtime';
|
||||||
import type { ExtrinsicPayloadValue, IKeyringPair } from '../../types';
|
import type { ExtrinsicPayloadValue, ICompact, IKeyringPair, INumber, IOption } from '../../types';
|
||||||
|
|
||||||
import { Bytes, Compact, Enum, Option, Struct, u32 } from '@polkadot/types-codec';
|
import { Bytes, Enum, Struct } from '@polkadot/types-codec';
|
||||||
import { objectSpread } from '@polkadot/util';
|
import { objectSpread } from '@polkadot/util';
|
||||||
|
|
||||||
import { sign } from '../util';
|
import { sign } from '../util';
|
||||||
@@ -68,28 +68,28 @@ export class GenericExtrinsicPayloadV4 extends Struct {
|
|||||||
/**
|
/**
|
||||||
* @description The [[Index]]
|
* @description The [[Index]]
|
||||||
*/
|
*/
|
||||||
public get nonce (): Compact<Index> {
|
public get nonce (): ICompact<INumber> {
|
||||||
return this.getT('nonce');
|
return this.getT('nonce');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @description The specVersion for this signature
|
* @description The specVersion for this signature
|
||||||
*/
|
*/
|
||||||
public get specVersion (): u32 {
|
public get specVersion (): INumber {
|
||||||
return this.getT('specVersion');
|
return this.getT('specVersion');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @description The tip [[Balance]]
|
* @description The tip [[Balance]]
|
||||||
*/
|
*/
|
||||||
public get tip (): Compact<Balance> {
|
public get tip (): ICompact<INumber> {
|
||||||
return this.getT('tip');
|
return this.getT('tip');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @description The transactionVersion for this signature
|
* @description The transactionVersion for this signature
|
||||||
*/
|
*/
|
||||||
public get transactionVersion (): u32 {
|
public get transactionVersion (): INumber {
|
||||||
return this.getT('transactionVersion');
|
return this.getT('transactionVersion');
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -97,7 +97,7 @@ export class GenericExtrinsicPayloadV4 extends Struct {
|
|||||||
* @description
|
* @description
|
||||||
* The (optional) asset id for this signature for chains that support transaction fees in assets
|
* The (optional) asset id for this signature for chains that support transaction fees in assets
|
||||||
*/
|
*/
|
||||||
public get assetId (): Option<AssetId> {
|
public get assetId (): IOption<INumber> {
|
||||||
return this.getT('assetId');
|
return this.getT('assetId');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3,11 +3,11 @@
|
|||||||
|
|
||||||
import type { HexString } from '@polkadot/util/types';
|
import type { HexString } from '@polkadot/util/types';
|
||||||
import type { EcdsaSignature, Ed25519Signature, ExtrinsicEra, ExtrinsicSignature, Sr25519Signature } from '../../interfaces/extrinsics';
|
import type { EcdsaSignature, Ed25519Signature, ExtrinsicEra, ExtrinsicSignature, Sr25519Signature } from '../../interfaces/extrinsics';
|
||||||
import type { Address, Balance, Call, Index } from '../../interfaces/runtime';
|
import type { Address, Call } from '../../interfaces/runtime';
|
||||||
import type { ExtrinsicPayloadValue, IExtrinsicSignature, IKeyringPair, Registry, SignatureOptions } from '../../types';
|
import type { ExtrinsicPayloadValue, ICompact, IExtrinsicSignature, IKeyringPair, INumber, Registry, SignatureOptions } from '../../types';
|
||||||
import type { ExtrinsicSignatureOptions } from '../types';
|
import type { ExtrinsicSignatureOptions } from '../types';
|
||||||
|
|
||||||
import { Compact, Struct } from '@polkadot/types-codec';
|
import { Struct } from '@polkadot/types-codec';
|
||||||
import { assert, isU8a, isUndefined, objectProperties, objectSpread, stringify, u8aToHex } from '@polkadot/util';
|
import { assert, isU8a, isUndefined, objectProperties, objectSpread, stringify, u8aToHex } from '@polkadot/util';
|
||||||
|
|
||||||
import { EMPTY_U8A, IMMORTAL_ERA } from '../constants';
|
import { EMPTY_U8A, IMMORTAL_ERA } from '../constants';
|
||||||
@@ -85,7 +85,7 @@ export class GenericExtrinsicSignatureV4 extends Struct implements IExtrinsicSig
|
|||||||
/**
|
/**
|
||||||
* @description The [[Index]] for the signature
|
* @description The [[Index]] for the signature
|
||||||
*/
|
*/
|
||||||
public get nonce (): Compact<Index> {
|
public get nonce (): ICompact<INumber> {
|
||||||
return this.getT('nonce');
|
return this.getT('nonce');
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -118,7 +118,7 @@ export class GenericExtrinsicSignatureV4 extends Struct implements IExtrinsicSig
|
|||||||
/**
|
/**
|
||||||
* @description The [[Balance]] tip
|
* @description The [[Balance]] tip
|
||||||
*/
|
*/
|
||||||
public get tip (): Compact<Balance> {
|
public get tip (): ICompact<INumber> {
|
||||||
return this.getT('tip');
|
return this.getT('tip');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user