Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
69c129595e | ||
|
|
3f79415e02 | ||
|
|
8747cd4682 | ||
|
|
dd9e96c3e7 | ||
|
|
1c93388de7 | ||
|
|
7a87034f0e | ||
|
|
9e4db51dd7 | ||
|
|
5382cb60b0 | ||
|
|
d6b2760de5 | ||
|
|
2ee89b8c72 | ||
|
|
802da709f0 | ||
|
|
836346909f | ||
|
|
8ec5c2abc3 | ||
|
|
cc953efd58 | ||
|
|
857b9cbaea | ||
|
|
4551093fe7 | ||
|
|
69afe1a203 | ||
|
|
f5600afa31 | ||
|
|
3f0a471484 | ||
|
|
bc0e2cfc14 | ||
|
|
3e9d2d6b8f | ||
|
|
3b48825fe6 | ||
|
|
5e4e5cbaa7 | ||
|
|
255b8047b7 | ||
|
|
87edaa5bed | ||
|
|
8a58f018a7 | ||
|
|
e39be09c97 | ||
|
|
007b4aa6c1 | ||
|
|
cc2a4dbfdd | ||
|
|
e2cde32cba | ||
|
|
2a5f584f42 | ||
|
|
cc60eeb663 | ||
|
|
edb0a40843 | ||
|
|
f0c45733ee | ||
|
|
a40028a1e4 | ||
|
|
789089c80d | ||
|
|
41925a9893 | ||
|
|
4ac3a1fa80 | ||
|
|
5025e3656d | ||
|
|
e0a7ff8c8d | ||
|
|
36aea69b75 | ||
|
|
74c7925491 | ||
|
|
f1edf476e8 | ||
|
|
b321a4adbc | ||
|
|
d7f87defee | ||
|
|
420b1d9724 | ||
|
|
bc0391ef3e | ||
|
|
296cffa266 | ||
|
|
77a9b2bfdf | ||
|
|
b0109c1c83 | ||
|
|
37033f5068 | ||
|
|
ed9a760bcb | ||
|
|
b4eda7d137 | ||
|
|
830871515b |
@@ -17,7 +17,6 @@ jobs:
|
||||
deno-version: vx.x.x
|
||||
- name: ${{ matrix.step }}
|
||||
if: always()
|
||||
continue-on-error: true
|
||||
run: |
|
||||
yarn install --immutable | grep -v 'YN0013'
|
||||
yarn ${{ matrix.step }}
|
||||
|
||||
@@ -1,5 +1,46 @@
|
||||
# CHANGELOG
|
||||
|
||||
## 9.2.2 Aug 16, 2022
|
||||
|
||||
Changes:
|
||||
|
||||
- Replace `rpc.payment.queryInfo` usage with `call.transactionPaymentApi.queryInfo`
|
||||
- Ensure that `api.call.*` is decorated on historic blocks
|
||||
|
||||
|
||||
## 9.2.1 Aug 13, 2022
|
||||
|
||||
- **Important** If using `import { WellKnownChain } from '@polkadot/rpc-provider'` it is recommended that you rather use `ScProvider.WellKnownChain` (the import may be dropped in a future major version)
|
||||
|
||||
Changes:
|
||||
|
||||
- Don't assume non-empty path specifiers on portable variant/composites
|
||||
- Explicit param length checks for all generic portable overrides
|
||||
- Re-export `ScProvider` in `@polkadot/api`, aligning with `{Http, Ws}Provider`
|
||||
- Expose `WellKnownChain` as static on `ScProvider.WellKnownChain`
|
||||
- Checks for non-available interface types & runtime/rpc definitions
|
||||
- Ensure `.entries/.keys` arguments is less than map-entry query
|
||||
- Add Polkadot 9260 upgrade block
|
||||
- Add Westend 9271 upgrade block
|
||||
- Update to latest Substrate metadata
|
||||
|
||||
|
||||
## 9.1.1 Aug 6, 2022
|
||||
|
||||
Contributed:
|
||||
|
||||
- Update `@substrate/connect` to latest (Thanks to https://github.com/wirednkod)
|
||||
- Handle both string and object keys in `CodecMap` (Thanks to https://github.com/CertainLach)
|
||||
|
||||
Changes:
|
||||
|
||||
- Add `noInitWarn: boolean` flag to API options, disabling runtime & RPC warnings
|
||||
- Only log missing runtime calls on new (detected) specVersion
|
||||
- Add shallow/one-blockHash cache for `api.at(...)` instances
|
||||
- Add Westend 9270 upgrade block
|
||||
- Update to latest Substrate, Polkadot & Kusama metadata
|
||||
|
||||
|
||||
## 9.0.1 Jul 30, 2022
|
||||
|
||||
- **Breaking change** The decorated field getters on `Struct` were moved to the prototype class for performance reasons. While `struct.<field>` access still behaves in the same way, with the same results, this does mean that the prototype getters are not visible when doing an `Object.keys(struct)` or when doing an object spread.
|
||||
|
||||
+3
-3
@@ -1,4 +1,4 @@
|
||||
3166 Jaco 9.0.1 (#5119)
|
||||
3192 Jaco 9.2.2 (#5166)
|
||||
83 Amaury Martiny StatementKind: Regular and Saft (#2303)
|
||||
37 Keith Ingram Update contract types and rpc (#4541)
|
||||
35 Stefanie Doll Updated child storage parameters (#1709)
|
||||
@@ -7,7 +7,7 @@
|
||||
15 Jeremías Díaz feat(types): add correct tuple type to storage key (#3054)
|
||||
11 Ian He HttpProvider support clone() (#3949)
|
||||
10 Axel Chalon Make Enum/Tuple constructor use value directly if instance (#1954)
|
||||
7 Nikos Kontakis Bump substrate connect to 0.7.9 (Add CommonJS Support) (#5088)
|
||||
8 Nikos Kontakis Bump substrate connect to 0.7.10; Fixes #5120 (#5123)
|
||||
5 Chevdor Fix metadata package link (#3458)
|
||||
5 Jake Naviasky Fixing approvalFlagsToBools. (#1250)
|
||||
4 Alex D Use derive customAccount and customLocks for balance overrides (#3248)
|
||||
@@ -41,6 +41,7 @@
|
||||
2 sung wu Update tx.md (#2485)
|
||||
2 Veliko Abi constructor takes different parameters (#3347)
|
||||
2 Wei Tang Use /usr/bin/env bash instead of /bin/bash (#2053)
|
||||
2 Yaroslav Bolyukin feat: allow objects to be supplied as map keys (#5128)
|
||||
2 Zannis Kalampoukis fix: Typegen handles structs and vectors of structs without erroring (#4743)
|
||||
2 扩散性百万甜面包 Typo, deocrateMethod -> decorateMethod (#1594)
|
||||
1 Alan Sapede Adds Eth feeHistory & maxPriorityFeePerGas rpc (#4956)
|
||||
@@ -101,7 +102,6 @@
|
||||
1 Sergei Pepyakin INK! -> ink! (#1347)
|
||||
1 WoeOm adapt Darwinia, Crab Network types (#3498)
|
||||
1 Xat_MassacrE Fix packages/types/src/codec/utils/encodeTypes.ts encodeSubTypes bug (#1544)
|
||||
1 Yaroslav Bolyukin Support BTreeMap/BTreeSet in typegen (#4682)
|
||||
1 yjh fix MetadataVersioned.asV12 (#2983)
|
||||
1 Yuri fixes #3693 Fix uniques return types (#3694)
|
||||
1 Zeke Mostov fix: Allow sudo for polkadot indexed proxy enum (#3286)
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"imports": {
|
||||
"https://esm.sh/v90/@types/bn.js@~5.2/index.d.ts": "https://esm.sh/v90/@types/bn.js@5.1.0/index.d.ts"
|
||||
}
|
||||
}
|
||||
+7
-6
@@ -11,10 +11,10 @@
|
||||
},
|
||||
"sideEffects": false,
|
||||
"type": "module",
|
||||
"version": "9.0.1",
|
||||
"version": "9.2.2",
|
||||
"versions": {
|
||||
"git": "9.0.1",
|
||||
"npm": "9.0.1"
|
||||
"git": "9.2.2",
|
||||
"npm": "9.2.2"
|
||||
},
|
||||
"workspaces": [
|
||||
"packages/*"
|
||||
@@ -23,6 +23,7 @@
|
||||
"build": "yarn build:interfaces && polkadot-dev-build-ts",
|
||||
"build:extra": "(cd packages/typegen && copyfiles scripts/* build)",
|
||||
"build:interfaces": "polkadot-types-internal-interfaces",
|
||||
"build:metadata": "yarn build:interfaces && yarn test:one packages/types/src/metadata/v14",
|
||||
"build:release": "polkadot-ci-ghact-build",
|
||||
"build:rollup": "polkadot-exec-rollup --config",
|
||||
"chain:info": "polkadot-types-chain-info",
|
||||
@@ -34,12 +35,12 @@
|
||||
"test:one": "NODE_OPTIONS=--experimental-vm-modules polkadot-dev-run-test --detectOpenHandles --forceExit"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.18.9",
|
||||
"@babel/core": "^7.18.10",
|
||||
"@babel/register": "^7.18.9",
|
||||
"@babel/runtime": "^7.18.9",
|
||||
"@polkadot/dev": "^0.67.86",
|
||||
"@polkadot/dev": "^0.67.97",
|
||||
"@polkadot/typegen": "workspace:packages/typegen",
|
||||
"@types/jest": "^28.1.6",
|
||||
"@types/jest": "^28.1.7",
|
||||
"copyfiles": "^2.4.1"
|
||||
},
|
||||
"resolutions": {
|
||||
|
||||
@@ -20,18 +20,18 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.0.1",
|
||||
"version": "9.2.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.18.9",
|
||||
"@polkadot/api-base": "9.0.1",
|
||||
"@polkadot/rpc-augment": "9.0.1",
|
||||
"@polkadot/types": "9.0.1",
|
||||
"@polkadot/types-augment": "9.0.1",
|
||||
"@polkadot/types-codec": "9.0.1",
|
||||
"@polkadot/util": "^10.1.2"
|
||||
"@polkadot/api-base": "9.2.2",
|
||||
"@polkadot/rpc-augment": "9.2.2",
|
||||
"@polkadot/types": "9.2.2",
|
||||
"@polkadot/types-augment": "9.2.2",
|
||||
"@polkadot/types-codec": "9.2.2",
|
||||
"@polkadot/util": "^10.1.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/types-support": "9.0.1"
|
||||
"@polkadot/types-support": "9.2.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '9.0.1' };
|
||||
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '9.2.2' };
|
||||
|
||||
@@ -1791,7 +1791,11 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
};
|
||||
stateTrieMigration: {
|
||||
/**
|
||||
* bad witness data provided.
|
||||
* Bad child root provided.
|
||||
**/
|
||||
BadChildRoot: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Bad witness data provided.
|
||||
**/
|
||||
BadWitness: AugmentedError<ApiType>;
|
||||
/**
|
||||
@@ -1805,7 +1809,7 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
KeyTooLong: AugmentedError<ApiType>;
|
||||
/**
|
||||
* max signed limits not respected.
|
||||
* Max signed limits not respected.
|
||||
**/
|
||||
MaxSignedLimits: AugmentedError<ApiType>;
|
||||
/**
|
||||
@@ -1816,10 +1820,6 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* Signed migration is not allowed because the maximum limit is not set yet.
|
||||
**/
|
||||
SignedMigrationNotAllowed: AugmentedError<ApiType>;
|
||||
/**
|
||||
* upper bound of size is exceeded,
|
||||
**/
|
||||
SizeUpperBoundExceeded: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Generic error
|
||||
**/
|
||||
@@ -2085,6 +2085,12 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* The provided max supply is less to the amount of items a collection already has.
|
||||
**/
|
||||
MaxSupplyTooSmall: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The `CollectionId` in `NextCollectionId` is not being used.
|
||||
*
|
||||
* This means that you can directly proceed to call `create`.
|
||||
**/
|
||||
NextIdNotUsed: AugmentedError<ApiType>;
|
||||
/**
|
||||
* There is no delegate approved.
|
||||
**/
|
||||
|
||||
@@ -9,7 +9,7 @@ import type { ApiTypes, AugmentedEvent } from '@polkadot/api-base/types';
|
||||
import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||
import type { ITuple } from '@polkadot/types-codec/types';
|
||||
import type { AccountId32, H256 } from '@polkadot/types/interfaces/runtime';
|
||||
import type { FrameSupportScheduleLookupError, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, FrameSupportWeightsPostDispatchInfo, NodeRuntimeProxyType, PalletAllianceCid, PalletAllianceUnscrupulousItem, PalletConvictionVotingTally, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletStakingExposure, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationCompute, SpFinalityGrandpaAppPublic, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo } from '@polkadot/types/lookup';
|
||||
import type { FrameSupportScheduleLookupError, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, FrameSupportWeightsPostDispatchInfo, KitchensinkRuntimeProxyType, PalletAllianceCid, PalletAllianceUnscrupulousItem, PalletConvictionVotingTally, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletStakingExposure, PalletStakingValidatorPrefs, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, SpFinalityGrandpaAppPublic, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo } from '@polkadot/types/lookup';
|
||||
|
||||
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
|
||||
|
||||
@@ -176,6 +176,17 @@ declare module '@polkadot/api-base/types/events' {
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
assetTxPayment: {
|
||||
/**
|
||||
* A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee,
|
||||
* has been paid by `who` in an asset `asset_id`.
|
||||
**/
|
||||
AssetTxFeePaid: AugmentedEvent<ApiType, [who: AccountId32, actualFee: u128, tip: u128, assetId: Option<u32>], { who: AccountId32, actualFee: u128, tip: u128, assetId: Option<u32> }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
bagsList: {
|
||||
/**
|
||||
* Moved an account from one bag to another.
|
||||
@@ -818,11 +829,11 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* Anonymous account has been created by new proxy with given
|
||||
* disambiguation index and proxy type.
|
||||
**/
|
||||
AnonymousCreated: AugmentedEvent<ApiType, [anonymous: AccountId32, who: AccountId32, proxyType: NodeRuntimeProxyType, disambiguationIndex: u16], { anonymous: AccountId32, who: AccountId32, proxyType: NodeRuntimeProxyType, disambiguationIndex: u16 }>;
|
||||
AnonymousCreated: AugmentedEvent<ApiType, [anonymous: AccountId32, who: AccountId32, proxyType: KitchensinkRuntimeProxyType, disambiguationIndex: u16], { anonymous: AccountId32, who: AccountId32, proxyType: KitchensinkRuntimeProxyType, disambiguationIndex: u16 }>;
|
||||
/**
|
||||
* A proxy was added.
|
||||
**/
|
||||
ProxyAdded: AugmentedEvent<ApiType, [delegator: AccountId32, delegatee: AccountId32, proxyType: NodeRuntimeProxyType, delay: u32], { delegator: AccountId32, delegatee: AccountId32, proxyType: NodeRuntimeProxyType, delay: u32 }>;
|
||||
ProxyAdded: AugmentedEvent<ApiType, [delegator: AccountId32, delegatee: AccountId32, proxyType: KitchensinkRuntimeProxyType, delay: u32], { delegator: AccountId32, delegatee: AccountId32, proxyType: KitchensinkRuntimeProxyType, delay: u32 }>;
|
||||
/**
|
||||
* A proxy was executed correctly, with the given.
|
||||
**/
|
||||
@@ -830,7 +841,7 @@ declare module '@polkadot/api-base/types/events' {
|
||||
/**
|
||||
* A proxy was removed.
|
||||
**/
|
||||
ProxyRemoved: AugmentedEvent<ApiType, [delegator: AccountId32, delegatee: AccountId32, proxyType: NodeRuntimeProxyType, delay: u32], { delegator: AccountId32, delegatee: AccountId32, proxyType: NodeRuntimeProxyType, delay: u32 }>;
|
||||
ProxyRemoved: AugmentedEvent<ApiType, [delegator: AccountId32, delegatee: AccountId32, proxyType: KitchensinkRuntimeProxyType, delay: u32], { delegator: AccountId32, delegatee: AccountId32, proxyType: KitchensinkRuntimeProxyType, delay: u32 }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
@@ -1184,7 +1195,7 @@ declare module '@polkadot/api-base/types/events' {
|
||||
/**
|
||||
* Migration got halted due to an error or miss-configuration.
|
||||
**/
|
||||
Halted: AugmentedEvent<ApiType, []>;
|
||||
Halted: AugmentedEvent<ApiType, [error: PalletStateTrieMigrationError], { error: PalletStateTrieMigrationError }>;
|
||||
/**
|
||||
* Given number of `(top, child)` keys were migrated respectively, with the given
|
||||
* `compute`.
|
||||
@@ -1493,6 +1504,10 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* New metadata has been set for an item.
|
||||
**/
|
||||
MetadataSet: AugmentedEvent<ApiType, [collection: u32, item: u32, data: Bytes, isFrozen: bool], { collection: u32, item: u32, data: Bytes, isFrozen: bool }>;
|
||||
/**
|
||||
* Event gets emmited when the `NextCollectionId` gets incremented.
|
||||
**/
|
||||
NextCollectionIdIncremented: AugmentedEvent<ApiType, [nextId: u32], { nextId: u32 }>;
|
||||
/**
|
||||
* The owner changed.
|
||||
**/
|
||||
|
||||
@@ -10,7 +10,7 @@ import type { Data } from '@polkadot/types';
|
||||
import type { BTreeMap, Bytes, Null, Option, U8aFixed, Vec, WrapperKeepOpaque, WrapperOpaque, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
||||
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
||||
import type { FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, NodeRuntimeSessionKeys, PalletAllianceCid, PalletAllianceMemberRole, 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, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSchedulerScheduledV3, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTransactionStorageTransactionInfo, PalletTreasuryProposal, PalletUniquesCollectionDetails, PalletUniquesCollectionMetadata, PalletUniquesItemDetails, PalletUniquesItemMetadata, PalletVestingReleases, PalletVestingVestingInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails } from '@polkadot/types/lookup';
|
||||
import type { FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceMemberRole, 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, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSchedulerScheduledV3, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTransactionStorageTransactionInfo, PalletTreasuryProposal, PalletUniquesCollectionDetails, PalletUniquesCollectionMetadata, PalletUniquesItemDetails, PalletUniquesItemMetadata, PalletVestingReleases, PalletVestingVestingInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails } from '@polkadot/types/lookup';
|
||||
import type { Observable } from '@polkadot/types/types';
|
||||
|
||||
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
||||
@@ -1153,7 +1153,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
/**
|
||||
* The next session keys for a validator.
|
||||
**/
|
||||
nextKeys: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<NodeRuntimeSessionKeys>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
nextKeys: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<KitchensinkRuntimeSessionKeys>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
* True if the underlying economic identities or weighting behind the validators
|
||||
* has changed in the queued validator set.
|
||||
@@ -1163,7 +1163,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* The queued keys for the next session. When the next session begins, these keys
|
||||
* will be used to determine the validator's session keys.
|
||||
**/
|
||||
queuedKeys: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[AccountId32, NodeRuntimeSessionKeys]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
queuedKeys: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[AccountId32, KitchensinkRuntimeSessionKeys]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The current set of validators.
|
||||
**/
|
||||
@@ -1779,6 +1779,11 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* Price of an asset instance.
|
||||
**/
|
||||
itemPriceOf: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<ITuple<[u128, Option<AccountId32>]>>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
|
||||
/**
|
||||
* Stores the `CollectionId` that is going to be used for the next collection.
|
||||
* This gets incremented by 1 whenever a new collection is created.
|
||||
**/
|
||||
nextCollectionId: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The collection, if any, of which an account is willing to take ownership.
|
||||
**/
|
||||
|
||||
@@ -7,7 +7,7 @@ import '@polkadot/api-base/types/calls';
|
||||
|
||||
import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-base/types';
|
||||
import type { Bytes, Null, Option, Result, Vec, u32, u64 } 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 { BabeEquivocationProof, BabeGenesisConfiguration, Epoch, OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
|
||||
import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfaces/blockbuilder';
|
||||
import type { BlockHash } from '@polkadot/types/interfaces/chain';
|
||||
@@ -19,7 +19,7 @@ import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
|
||||
import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError, MmrLeafIndex, MmrProof } from '@polkadot/types/interfaces/mmr';
|
||||
import type { NpApiError } from '@polkadot/types/interfaces/nompools';
|
||||
import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
|
||||
import type { AccountId, Balance, Block, Hash, Header, Index, KeyTypeId, Slot } from '@polkadot/types/interfaces/runtime';
|
||||
import type { AccountId, Balance, Block, Call, Hash, Header, Index, KeyTypeId, Slot } from '@polkadot/types/interfaces/runtime';
|
||||
import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
|
||||
import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system';
|
||||
import type { TransactionSource, TransactionValidity } from '@polkadot/types/interfaces/txqueue';
|
||||
@@ -280,5 +280,20 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0xf3ff14d5ab527059/1 */
|
||||
transactionPaymentCallApi: {
|
||||
/**
|
||||
* The call fee details
|
||||
**/
|
||||
queryCallFeeDetails: AugmentedCall<ApiType, (call: Call | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<FeeDetails>>;
|
||||
/**
|
||||
* The call info
|
||||
**/
|
||||
queryCallInfo: AugmentedCall<ApiType, (call: Call | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<RuntimeDispatchInfo>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
} // AugmentedCalls
|
||||
} // declare module
|
||||
|
||||
@@ -10,7 +10,7 @@ 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 { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
||||
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
|
||||
import type { FrameSupportScheduleDispatchTime, FrameSupportScheduleMaybeHashed, NodeRuntimeOriginCaller, NodeRuntimeProxyType, NodeRuntimeSessionKeys, PalletAllianceCid, PalletAllianceUnscrupulousItem, PalletAssetsDestroyWitness, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsConfigOpAccountId32, 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, KitchensinkRuntimeOriginCaller, KitchensinkRuntimeProxyType, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceUnscrupulousItem, PalletAssetsDestroyWitness, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsConfigOpAccountId32, 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';
|
||||
|
||||
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
|
||||
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
|
||||
@@ -2940,7 +2940,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* Weight is a function of the number of proxies the user has (P).
|
||||
* # </weight>
|
||||
**/
|
||||
addProxy: AugmentedSubmittable<(delegate: AccountId32 | string | Uint8Array, proxyType: NodeRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, NodeRuntimeProxyType, u32]>;
|
||||
addProxy: AugmentedSubmittable<(delegate: AccountId32 | string | Uint8Array, proxyType: KitchensinkRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, KitchensinkRuntimeProxyType, u32]>;
|
||||
/**
|
||||
* Publish the hash of a proxy-call that will be made in the future.
|
||||
*
|
||||
@@ -2990,7 +2990,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* # </weight>
|
||||
* TODO: Might be over counting 1 read
|
||||
**/
|
||||
anonymous: AugmentedSubmittable<(proxyType: NodeRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array, index: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [NodeRuntimeProxyType, u32, u16]>;
|
||||
anonymous: AugmentedSubmittable<(proxyType: KitchensinkRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array, index: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [KitchensinkRuntimeProxyType, u32, u16]>;
|
||||
/**
|
||||
* Removes a previously spawned anonymous proxy.
|
||||
*
|
||||
@@ -3013,7 +3013,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* Weight is a function of the number of proxies the user has (P).
|
||||
* # </weight>
|
||||
**/
|
||||
killAnonymous: AugmentedSubmittable<(spawner: AccountId32 | string | Uint8Array, proxyType: NodeRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | number | Uint8Array, index: u16 | AnyNumber | Uint8Array, height: Compact<u32> | AnyNumber | Uint8Array, extIndex: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, NodeRuntimeProxyType, u16, Compact<u32>, Compact<u32>]>;
|
||||
killAnonymous: AugmentedSubmittable<(spawner: AccountId32 | string | Uint8Array, proxyType: KitchensinkRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | number | Uint8Array, index: u16 | AnyNumber | Uint8Array, height: Compact<u32> | AnyNumber | Uint8Array, extIndex: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, KitchensinkRuntimeProxyType, u16, Compact<u32>, Compact<u32>]>;
|
||||
/**
|
||||
* Dispatch the given `call` from an account that the sender is authorised for through
|
||||
* `add_proxy`.
|
||||
@@ -3031,7 +3031,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* Weight is a function of the number of proxies the user has (P).
|
||||
* # </weight>
|
||||
**/
|
||||
proxy: AugmentedSubmittable<(real: AccountId32 | string | Uint8Array, forceProxyType: Option<NodeRuntimeProxyType> | null | Uint8Array | NodeRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, Option<NodeRuntimeProxyType>, Call]>;
|
||||
proxy: AugmentedSubmittable<(real: AccountId32 | string | Uint8Array, forceProxyType: Option<KitchensinkRuntimeProxyType> | null | Uint8Array | KitchensinkRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, Option<KitchensinkRuntimeProxyType>, Call]>;
|
||||
/**
|
||||
* Dispatch the given `call` from an account that the sender is authorized for through
|
||||
* `add_proxy`.
|
||||
@@ -3051,7 +3051,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* - P: the number of proxies the user has.
|
||||
* # </weight>
|
||||
**/
|
||||
proxyAnnounced: AugmentedSubmittable<(delegate: AccountId32 | string | Uint8Array, real: AccountId32 | string | Uint8Array, forceProxyType: Option<NodeRuntimeProxyType> | null | Uint8Array | NodeRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, AccountId32, Option<NodeRuntimeProxyType>, Call]>;
|
||||
proxyAnnounced: AugmentedSubmittable<(delegate: AccountId32 | string | Uint8Array, real: AccountId32 | string | Uint8Array, forceProxyType: Option<KitchensinkRuntimeProxyType> | null | Uint8Array | KitchensinkRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, AccountId32, Option<KitchensinkRuntimeProxyType>, Call]>;
|
||||
/**
|
||||
* Remove the given announcement of a delegate.
|
||||
*
|
||||
@@ -3116,7 +3116,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* Weight is a function of the number of proxies the user has (P).
|
||||
* # </weight>
|
||||
**/
|
||||
removeProxy: AugmentedSubmittable<(delegate: AccountId32 | string | Uint8Array, proxyType: NodeRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, NodeRuntimeProxyType, u32]>;
|
||||
removeProxy: AugmentedSubmittable<(delegate: AccountId32 | string | Uint8Array, proxyType: KitchensinkRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, KitchensinkRuntimeProxyType, u32]>;
|
||||
/**
|
||||
* Generic tx
|
||||
**/
|
||||
@@ -3264,7 +3264,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
*
|
||||
* Emits `Submitted`.
|
||||
**/
|
||||
submit: AugmentedSubmittable<(proposalOrigin: NodeRuntimeOriginCaller | { system: any } | { Void: any } | { Council: any } | { TechnicalCommittee: any } | { AllianceMotion: any } | string | Uint8Array, proposalHash: H256 | string | Uint8Array, enactmentMoment: FrameSupportScheduleDispatchTime | { At: any } | { After: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [NodeRuntimeOriginCaller, H256, FrameSupportScheduleDispatchTime]>;
|
||||
submit: AugmentedSubmittable<(proposalOrigin: KitchensinkRuntimeOriginCaller | { system: any } | { Void: any } | { Council: any } | { TechnicalCommittee: any } | { AllianceMotion: any } | string | Uint8Array, proposalHash: H256 | string | Uint8Array, enactmentMoment: FrameSupportScheduleDispatchTime | { At: any } | { After: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [KitchensinkRuntimeOriginCaller, H256, FrameSupportScheduleDispatchTime]>;
|
||||
/**
|
||||
* Generic tx
|
||||
**/
|
||||
@@ -3466,7 +3466,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
*
|
||||
* Emits `Submitted`.
|
||||
**/
|
||||
submit: AugmentedSubmittable<(proposalOrigin: NodeRuntimeOriginCaller | { system: any } | { Void: any } | { Council: any } | { TechnicalCommittee: any } | { AllianceMotion: any } | string | Uint8Array, proposalHash: H256 | string | Uint8Array, enactmentMoment: FrameSupportScheduleDispatchTime | { At: any } | { After: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [NodeRuntimeOriginCaller, H256, FrameSupportScheduleDispatchTime]>;
|
||||
submit: AugmentedSubmittable<(proposalOrigin: KitchensinkRuntimeOriginCaller | { system: any } | { Void: any } | { Council: any } | { TechnicalCommittee: any } | { AllianceMotion: any } | string | Uint8Array, proposalHash: H256 | string | Uint8Array, enactmentMoment: FrameSupportScheduleDispatchTime | { At: any } | { After: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [KitchensinkRuntimeOriginCaller, H256, FrameSupportScheduleDispatchTime]>;
|
||||
/**
|
||||
* Generic tx
|
||||
**/
|
||||
@@ -3556,7 +3556,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* - DbWrites per key id: `KeyOwner`
|
||||
* # </weight>
|
||||
**/
|
||||
setKeys: AugmentedSubmittable<(keys: NodeRuntimeSessionKeys | { grandpa?: any; babe?: any; imOnline?: any; authorityDiscovery?: any } | string | Uint8Array, proof: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [NodeRuntimeSessionKeys, Bytes]>;
|
||||
setKeys: AugmentedSubmittable<(keys: KitchensinkRuntimeSessionKeys | { grandpa?: any; babe?: any; imOnline?: any; authorityDiscovery?: any } | string | Uint8Array, proof: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [KitchensinkRuntimeSessionKeys, Bytes]>;
|
||||
/**
|
||||
* Generic tx
|
||||
**/
|
||||
@@ -5084,7 +5084,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* `ItemDeposit` funds of sender are reserved.
|
||||
*
|
||||
* Parameters:
|
||||
* - `collection`: The identifier of the new collection. This must not be currently in use.
|
||||
* - `admin`: The admin of this collection. The admin is the initial address of each
|
||||
* member of the collection's admin team.
|
||||
*
|
||||
@@ -5092,7 +5091,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
*
|
||||
* Weight: `O(1)`
|
||||
**/
|
||||
create: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, admin: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, MultiAddress]>;
|
||||
create: AugmentedSubmittable<(admin: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
||||
/**
|
||||
* Destroy a collection of fungible items.
|
||||
*
|
||||
@@ -5120,7 +5119,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
*
|
||||
* Unlike `create`, no funds are reserved.
|
||||
*
|
||||
* - `collection`: The identifier of the new item. This must not be currently in use.
|
||||
* - `owner`: The owner of this collection of items. The owner has full superuser
|
||||
* permissions
|
||||
* over this item, but may later change and configure the permissions using
|
||||
@@ -5130,7 +5128,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
*
|
||||
* Weight: `O(1)`
|
||||
**/
|
||||
forceCreate: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, owner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, freeHolding: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, MultiAddress, bool]>;
|
||||
forceCreate: AugmentedSubmittable<(owner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, freeHolding: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, bool]>;
|
||||
/**
|
||||
* Alter the attributes of a given item.
|
||||
*
|
||||
@@ -5381,6 +5379,20 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* Weight: `O(1)`
|
||||
**/
|
||||
transferOwnership: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, owner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, MultiAddress]>;
|
||||
/**
|
||||
* Increments the `CollectionId` stored in `NextCollectionId`.
|
||||
*
|
||||
* This is only callable when the next `CollectionId` is already being
|
||||
* used for some other collection.
|
||||
*
|
||||
* The origin must be Signed and the sender must have sufficient funds
|
||||
* free.
|
||||
*
|
||||
* Emits `NextCollectionIdIncremented` event when successful.
|
||||
*
|
||||
* Weight: `O(1)`
|
||||
**/
|
||||
tryIncrementId: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
||||
/**
|
||||
* Generic tx
|
||||
**/
|
||||
@@ -5454,7 +5466,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* - Weight of derivative `call` execution + T::WeightInfo::dispatch_as().
|
||||
* # </weight>
|
||||
**/
|
||||
dispatchAs: AugmentedSubmittable<(asOrigin: NodeRuntimeOriginCaller | { system: any } | { Void: any } | { Council: any } | { TechnicalCommittee: any } | { AllianceMotion: any } | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [NodeRuntimeOriginCaller, Call]>;
|
||||
dispatchAs: AugmentedSubmittable<(asOrigin: KitchensinkRuntimeOriginCaller | { system: any } | { Void: any } | { Council: any } | { TechnicalCommittee: any } | { AllianceMotion: any } | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [KitchensinkRuntimeOriginCaller, Call]>;
|
||||
/**
|
||||
* Send a batch of dispatch calls.
|
||||
* Unlike `batch`, it allows errors and won't interrupt.
|
||||
|
||||
@@ -20,13 +20,13 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.0.1",
|
||||
"version": "9.2.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.18.9",
|
||||
"@polkadot/rpc-core": "9.0.1",
|
||||
"@polkadot/types": "9.0.1",
|
||||
"@polkadot/util": "^10.1.2",
|
||||
"@polkadot/rpc-core": "9.2.2",
|
||||
"@polkadot/types": "9.2.2",
|
||||
"@polkadot/util": "^10.1.4",
|
||||
"rxjs": "^7.5.6"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '9.0.1' };
|
||||
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '9.2.2' };
|
||||
|
||||
@@ -10,7 +10,7 @@ import type { Registry, Signer } from '@polkadot/types/types';
|
||||
|
||||
// A smaller interface of ApiRx, used in derive and in SubmittableExtrinsic
|
||||
export interface ApiInterfaceRx {
|
||||
call: QueryableCalls<'rxjs'>,
|
||||
call: QueryableCalls<'rxjs'>;
|
||||
consts: QueryableConsts<'rxjs'>;
|
||||
extrinsicType: number;
|
||||
genesisHash?: Hash;
|
||||
@@ -19,9 +19,11 @@ export interface ApiInterfaceRx {
|
||||
runtimeMetadata: Metadata;
|
||||
runtimeVersion: RuntimeVersion;
|
||||
query: QueryableStorage<'rxjs'>;
|
||||
queryAt: (blockHash: Uint8Array | string, knownVersion?: RuntimeVersion) => Observable<QueryableStorage<'rxjs'>>;
|
||||
queryMulti: QueryableStorageMulti<'rxjs'>;
|
||||
rpc: DecoratedRpc<'rxjs', RpcInterface>;
|
||||
tx: SubmittableExtrinsics<'rxjs'>;
|
||||
signer?: Signer;
|
||||
|
||||
callAt: (blockHash: Uint8Array | string, knownVersion?: RuntimeVersion) => Observable<QueryableCalls<'rxjs'>>;
|
||||
queryAt: (blockHash: Uint8Array | string, knownVersion?: RuntimeVersion) => Observable<QueryableStorage<'rxjs'>>;
|
||||
}
|
||||
|
||||
@@ -20,20 +20,20 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.0.1",
|
||||
"version": "9.2.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.18.9",
|
||||
"@polkadot/api": "9.0.1",
|
||||
"@polkadot/types": "9.0.1",
|
||||
"@polkadot/types-codec": "9.0.1",
|
||||
"@polkadot/types-create": "9.0.1",
|
||||
"@polkadot/util": "^10.1.2",
|
||||
"@polkadot/util-crypto": "^10.1.2",
|
||||
"@polkadot/api": "9.2.2",
|
||||
"@polkadot/types": "9.2.2",
|
||||
"@polkadot/types-codec": "9.2.2",
|
||||
"@polkadot/types-create": "9.2.2",
|
||||
"@polkadot/util": "^10.1.4",
|
||||
"@polkadot/util-crypto": "^10.1.4",
|
||||
"rxjs": "^7.5.6"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api-augment": "9.0.1",
|
||||
"@polkadot/keyring": "^10.1.2"
|
||||
"@polkadot/api-augment": "9.2.2",
|
||||
"@polkadot/keyring": "^10.1.4"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '9.0.1' };
|
||||
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '9.2.2' };
|
||||
|
||||
@@ -0,0 +1,71 @@
|
||||
[
|
||||
{
|
||||
"info": "Plain",
|
||||
"lookupIndex": 0,
|
||||
"type": "u8",
|
||||
"docs": [],
|
||||
"namespace": ""
|
||||
},
|
||||
{
|
||||
"info": "Plain",
|
||||
"lookupIndex": 1,
|
||||
"type": "Text",
|
||||
"docs": [],
|
||||
"namespace": ""
|
||||
},
|
||||
{
|
||||
"info": "VecFixed",
|
||||
"lookupIndex": 2,
|
||||
"type": "[u8;32]",
|
||||
"docs": [],
|
||||
"namespace": "",
|
||||
"length": 32,
|
||||
"sub": {
|
||||
"info": "Plain",
|
||||
"lookupIndex": 0,
|
||||
"type": "u8",
|
||||
"docs": [],
|
||||
"namespace": ""
|
||||
}
|
||||
},
|
||||
{
|
||||
"info": "Struct",
|
||||
"lookupIndex": 3,
|
||||
"type": "{\"inner\":\"[u8;32]\"}",
|
||||
"docs": [],
|
||||
"namespace": "",
|
||||
"sub": [
|
||||
{
|
||||
"docs": [],
|
||||
"name": "inner",
|
||||
"info": "VecFixed",
|
||||
"lookupIndex": 2,
|
||||
"type": "[u8;32]",
|
||||
"namespace": "",
|
||||
"length": 32,
|
||||
"sub": {
|
||||
"info": "Plain",
|
||||
"lookupIndex": 0,
|
||||
"type": "u8",
|
||||
"docs": [],
|
||||
"namespace": ""
|
||||
},
|
||||
"typeName": "FixedArray32"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"info": "Plain",
|
||||
"lookupIndex": 4,
|
||||
"type": "u128",
|
||||
"docs": [],
|
||||
"namespace": ""
|
||||
},
|
||||
{
|
||||
"info": "Plain",
|
||||
"lookupIndex": 5,
|
||||
"type": "bool",
|
||||
"docs": [],
|
||||
"namespace": ""
|
||||
}
|
||||
]
|
||||
@@ -3,5 +3,6 @@
|
||||
|
||||
import { createVersionedExport } from '../util';
|
||||
import * as v0 from './v0';
|
||||
import * as v3 from './v3';
|
||||
|
||||
export default createVersionedExport({ v0 });
|
||||
export default createVersionedExport({ v0, v3 });
|
||||
|
||||
@@ -0,0 +1,550 @@
|
||||
{
|
||||
"source": {
|
||||
"hash": "",
|
||||
"language": "Ask! 0.4.0",
|
||||
"compiler": "asc 0.19.23"
|
||||
},
|
||||
"contract": {
|
||||
"name": "",
|
||||
"version": "",
|
||||
"authors": []
|
||||
},
|
||||
"V3": {
|
||||
"spec": {
|
||||
"constructors": [
|
||||
{
|
||||
"args": [
|
||||
{
|
||||
"type": {
|
||||
"type": 1,
|
||||
"displayName": [
|
||||
"string"
|
||||
]
|
||||
},
|
||||
"label": "name"
|
||||
},
|
||||
{
|
||||
"type": {
|
||||
"type": 1,
|
||||
"displayName": [
|
||||
"string"
|
||||
]
|
||||
},
|
||||
"label": "symbol"
|
||||
}
|
||||
],
|
||||
"docs": [],
|
||||
"label": "default",
|
||||
"payable": false,
|
||||
"selector": "0xed4b9d1b"
|
||||
}
|
||||
],
|
||||
"messages": [
|
||||
{
|
||||
"mutates": true,
|
||||
"payable": true,
|
||||
"args": [
|
||||
{
|
||||
"type": {
|
||||
"type": 3,
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
]
|
||||
},
|
||||
"label": "to"
|
||||
},
|
||||
{
|
||||
"type": {
|
||||
"type": 4,
|
||||
"displayName": [
|
||||
"u128"
|
||||
]
|
||||
},
|
||||
"label": "amount"
|
||||
}
|
||||
],
|
||||
"docs": [],
|
||||
"label": "mint",
|
||||
"selector": "0xcfdd9aa2"
|
||||
},
|
||||
{
|
||||
"mutates": true,
|
||||
"payable": true,
|
||||
"args": [
|
||||
{
|
||||
"type": {
|
||||
"type": 3,
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
]
|
||||
},
|
||||
"label": "from"
|
||||
},
|
||||
{
|
||||
"type": {
|
||||
"type": 4,
|
||||
"displayName": [
|
||||
"u128"
|
||||
]
|
||||
},
|
||||
"label": "amount"
|
||||
}
|
||||
],
|
||||
"docs": [],
|
||||
"label": "burn",
|
||||
"selector": "0xb1efc17b"
|
||||
},
|
||||
{
|
||||
"mutates": false,
|
||||
"payable": false,
|
||||
"args": [],
|
||||
"returnType": {
|
||||
"type": 1,
|
||||
"displayName": [
|
||||
"string"
|
||||
]
|
||||
},
|
||||
"docs": [],
|
||||
"label": "name",
|
||||
"selector": "0x3adaf70d"
|
||||
},
|
||||
{
|
||||
"mutates": false,
|
||||
"payable": false,
|
||||
"args": [],
|
||||
"returnType": {
|
||||
"type": 1,
|
||||
"displayName": [
|
||||
"string"
|
||||
]
|
||||
},
|
||||
"docs": [],
|
||||
"label": "symbol",
|
||||
"selector": "0x9bd1933e"
|
||||
},
|
||||
{
|
||||
"mutates": false,
|
||||
"payable": false,
|
||||
"args": [],
|
||||
"returnType": {
|
||||
"type": 0,
|
||||
"displayName": [
|
||||
"u8"
|
||||
]
|
||||
},
|
||||
"docs": [],
|
||||
"label": "decimal",
|
||||
"selector": "0xcc3fec6d"
|
||||
},
|
||||
{
|
||||
"mutates": false,
|
||||
"payable": false,
|
||||
"args": [],
|
||||
"returnType": {
|
||||
"type": 4,
|
||||
"displayName": [
|
||||
"u128"
|
||||
]
|
||||
},
|
||||
"docs": [],
|
||||
"label": "totalSupply",
|
||||
"selector": "0xcae60595"
|
||||
},
|
||||
{
|
||||
"mutates": false,
|
||||
"payable": false,
|
||||
"args": [
|
||||
{
|
||||
"type": {
|
||||
"type": 3,
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
]
|
||||
},
|
||||
"label": "account"
|
||||
}
|
||||
],
|
||||
"returnType": {
|
||||
"type": 4,
|
||||
"displayName": [
|
||||
"u128"
|
||||
]
|
||||
},
|
||||
"docs": [],
|
||||
"label": "balanceOf",
|
||||
"selector": "0xf48def67"
|
||||
},
|
||||
{
|
||||
"mutates": true,
|
||||
"payable": true,
|
||||
"args": [
|
||||
{
|
||||
"type": {
|
||||
"type": 3,
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
]
|
||||
},
|
||||
"label": "recipient"
|
||||
},
|
||||
{
|
||||
"type": {
|
||||
"type": 4,
|
||||
"displayName": [
|
||||
"u128"
|
||||
]
|
||||
},
|
||||
"label": "amount"
|
||||
}
|
||||
],
|
||||
"returnType": {
|
||||
"type": 5,
|
||||
"displayName": [
|
||||
"bool"
|
||||
]
|
||||
},
|
||||
"docs": [],
|
||||
"label": "transfer",
|
||||
"selector": "0x84a15da1"
|
||||
},
|
||||
{
|
||||
"mutates": false,
|
||||
"payable": false,
|
||||
"args": [
|
||||
{
|
||||
"type": {
|
||||
"type": 3,
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
]
|
||||
},
|
||||
"label": "owner"
|
||||
},
|
||||
{
|
||||
"type": {
|
||||
"type": 3,
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
]
|
||||
},
|
||||
"label": "spender"
|
||||
}
|
||||
],
|
||||
"returnType": {
|
||||
"type": 4,
|
||||
"displayName": [
|
||||
"u128"
|
||||
]
|
||||
},
|
||||
"docs": [],
|
||||
"label": "allowance",
|
||||
"selector": "0x6a00165e"
|
||||
},
|
||||
{
|
||||
"mutates": true,
|
||||
"payable": true,
|
||||
"args": [
|
||||
{
|
||||
"type": {
|
||||
"type": 3,
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
]
|
||||
},
|
||||
"label": "spender"
|
||||
},
|
||||
{
|
||||
"type": {
|
||||
"type": 4,
|
||||
"displayName": [
|
||||
"u128"
|
||||
]
|
||||
},
|
||||
"label": "amount"
|
||||
}
|
||||
],
|
||||
"returnType": {
|
||||
"type": 5,
|
||||
"displayName": [
|
||||
"bool"
|
||||
]
|
||||
},
|
||||
"docs": [],
|
||||
"label": "approve",
|
||||
"selector": "0x681266a0"
|
||||
},
|
||||
{
|
||||
"mutates": true,
|
||||
"payable": true,
|
||||
"args": [
|
||||
{
|
||||
"type": {
|
||||
"type": 3,
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
]
|
||||
},
|
||||
"label": "sender"
|
||||
},
|
||||
{
|
||||
"type": {
|
||||
"type": 3,
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
]
|
||||
},
|
||||
"label": "recipient"
|
||||
},
|
||||
{
|
||||
"type": {
|
||||
"type": 4,
|
||||
"displayName": [
|
||||
"u128"
|
||||
]
|
||||
},
|
||||
"label": "amount"
|
||||
}
|
||||
],
|
||||
"returnType": {
|
||||
"type": 5,
|
||||
"displayName": [
|
||||
"bool"
|
||||
]
|
||||
},
|
||||
"docs": [],
|
||||
"label": "transferFrom",
|
||||
"selector": "0x02a6e0d5"
|
||||
},
|
||||
{
|
||||
"mutates": true,
|
||||
"payable": true,
|
||||
"args": [
|
||||
{
|
||||
"type": {
|
||||
"type": 3,
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
]
|
||||
},
|
||||
"label": "spender"
|
||||
},
|
||||
{
|
||||
"type": {
|
||||
"type": 4,
|
||||
"displayName": [
|
||||
"u128"
|
||||
]
|
||||
},
|
||||
"label": "addedValue"
|
||||
}
|
||||
],
|
||||
"returnType": {
|
||||
"type": 5,
|
||||
"displayName": [
|
||||
"bool"
|
||||
]
|
||||
},
|
||||
"docs": [],
|
||||
"label": "increaseAllowance",
|
||||
"selector": "0xcb005356"
|
||||
},
|
||||
{
|
||||
"mutates": true,
|
||||
"payable": true,
|
||||
"args": [
|
||||
{
|
||||
"type": {
|
||||
"type": 3,
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
]
|
||||
},
|
||||
"label": "spender"
|
||||
},
|
||||
{
|
||||
"type": {
|
||||
"type": 4,
|
||||
"displayName": [
|
||||
"u128"
|
||||
]
|
||||
},
|
||||
"label": "subtractedValue"
|
||||
}
|
||||
],
|
||||
"returnType": {
|
||||
"type": 5,
|
||||
"displayName": [
|
||||
"bool"
|
||||
]
|
||||
},
|
||||
"docs": [],
|
||||
"label": "decreaseAllowance",
|
||||
"selector": "0xe19fabb4"
|
||||
}
|
||||
],
|
||||
"events": [
|
||||
{
|
||||
"id": 1,
|
||||
"label": "Transfer",
|
||||
"args": [
|
||||
{
|
||||
"label": "from",
|
||||
"indexed": false,
|
||||
"type": {
|
||||
"type": 3,
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
]
|
||||
},
|
||||
"docs": [
|
||||
""
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "to",
|
||||
"indexed": false,
|
||||
"type": {
|
||||
"type": 3,
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
]
|
||||
},
|
||||
"docs": [
|
||||
""
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "value",
|
||||
"indexed": false,
|
||||
"type": {
|
||||
"type": 4,
|
||||
"displayName": [
|
||||
"u128"
|
||||
]
|
||||
},
|
||||
"docs": [
|
||||
""
|
||||
]
|
||||
}
|
||||
],
|
||||
"docs": [
|
||||
""
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"label": "Approval",
|
||||
"args": [
|
||||
{
|
||||
"label": "owner",
|
||||
"indexed": false,
|
||||
"type": {
|
||||
"type": 3,
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
]
|
||||
},
|
||||
"docs": [
|
||||
""
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "spender",
|
||||
"indexed": false,
|
||||
"type": {
|
||||
"type": 3,
|
||||
"displayName": [
|
||||
"AccountId"
|
||||
]
|
||||
},
|
||||
"docs": [
|
||||
""
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "value",
|
||||
"indexed": false,
|
||||
"type": {
|
||||
"type": 4,
|
||||
"displayName": [
|
||||
"u128"
|
||||
]
|
||||
},
|
||||
"docs": [
|
||||
""
|
||||
]
|
||||
}
|
||||
],
|
||||
"docs": [
|
||||
""
|
||||
]
|
||||
}
|
||||
],
|
||||
"docs": [
|
||||
""
|
||||
]
|
||||
},
|
||||
"types": [
|
||||
{
|
||||
"id": 0,
|
||||
"type": {
|
||||
"def": {
|
||||
"primitive": "u8"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 1,
|
||||
"type": {
|
||||
"def": {
|
||||
"primitive": "str"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"type": {
|
||||
"def": {
|
||||
"array": {
|
||||
"len": 32,
|
||||
"type": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"type": {
|
||||
"def": {
|
||||
"composite": {
|
||||
"fields": [
|
||||
{
|
||||
"name": "inner",
|
||||
"type": 2,
|
||||
"typeName": "FixedArray32<u8>"
|
||||
}
|
||||
]
|
||||
},
|
||||
"path": []
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"type": {
|
||||
"def": {
|
||||
"primitive": "u128"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"type": {
|
||||
"def": {
|
||||
"primitive": "bool"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
// Copyright 2017-2022 @polkadot/api-contract authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
export { default as ask } from './ask.json' assert { type: 'json' };
|
||||
@@ -20,25 +20,25 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.0.1",
|
||||
"version": "9.2.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.18.9",
|
||||
"@polkadot/api": "9.0.1",
|
||||
"@polkadot/api-augment": "9.0.1",
|
||||
"@polkadot/api-base": "9.0.1",
|
||||
"@polkadot/rpc-core": "9.0.1",
|
||||
"@polkadot/types": "9.0.1",
|
||||
"@polkadot/types-codec": "9.0.1",
|
||||
"@polkadot/util": "^10.1.2",
|
||||
"@polkadot/util-crypto": "^10.1.2",
|
||||
"@polkadot/api": "9.2.2",
|
||||
"@polkadot/api-augment": "9.2.2",
|
||||
"@polkadot/api-base": "9.2.2",
|
||||
"@polkadot/rpc-core": "9.2.2",
|
||||
"@polkadot/types": "9.2.2",
|
||||
"@polkadot/types-codec": "9.2.2",
|
||||
"@polkadot/util": "^10.1.4",
|
||||
"@polkadot/util-crypto": "^10.1.4",
|
||||
"rxjs": "^7.5.6"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api": "9.0.1",
|
||||
"@polkadot/api-augment": "9.0.1",
|
||||
"@polkadot/rpc-augment": "9.0.1",
|
||||
"@polkadot/rpc-provider": "9.0.1",
|
||||
"@polkadot/types-support": "9.0.1"
|
||||
"@polkadot/api": "9.2.2",
|
||||
"@polkadot/api-augment": "9.2.2",
|
||||
"@polkadot/rpc-augment": "9.2.2",
|
||||
"@polkadot/rpc-provider": "9.2.2",
|
||||
"@polkadot/types-support": "9.2.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '9.0.1' };
|
||||
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '9.2.2' };
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
import type { Observable } from 'rxjs';
|
||||
import type { Option } from '@polkadot/types';
|
||||
import type { AccountId } from '@polkadot/types/interfaces';
|
||||
import type { NodeRuntimeSessionKeys } from '@polkadot/types/lookup';
|
||||
import type { KitchensinkRuntimeSessionKeys } from '@polkadot/types/lookup';
|
||||
import type { DeriveApi } from '../types';
|
||||
import type { DeriveStakingKeys } from './types';
|
||||
|
||||
@@ -12,7 +12,7 @@ import { combineLatest, map, of, switchMap } from 'rxjs';
|
||||
|
||||
import { firstMemo, memo } from '../util';
|
||||
|
||||
function extractsIds (stashId: Uint8Array | string, queuedKeys: [AccountId, NodeRuntimeSessionKeys | AccountId[]][], nextKeys: Option<NodeRuntimeSessionKeys>): DeriveStakingKeys {
|
||||
function extractsIds (stashId: Uint8Array | string, queuedKeys: [AccountId, KitchensinkRuntimeSessionKeys | AccountId[]][], nextKeys: Option<KitchensinkRuntimeSessionKeys>): DeriveStakingKeys {
|
||||
const sessionIds = (queuedKeys.find(([currentId]) => currentId.eq(stashId)) || [undefined, [] as AccountId[]])[1];
|
||||
const nextSessionIds = nextKeys.unwrapOr([] as AccountId[]);
|
||||
|
||||
|
||||
+17
-17
@@ -20,29 +20,29 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.0.1",
|
||||
"version": "9.2.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.18.9",
|
||||
"@polkadot/api-augment": "9.0.1",
|
||||
"@polkadot/api-base": "9.0.1",
|
||||
"@polkadot/api-derive": "9.0.1",
|
||||
"@polkadot/keyring": "^10.1.2",
|
||||
"@polkadot/rpc-augment": "9.0.1",
|
||||
"@polkadot/rpc-core": "9.0.1",
|
||||
"@polkadot/rpc-provider": "9.0.1",
|
||||
"@polkadot/types": "9.0.1",
|
||||
"@polkadot/types-augment": "9.0.1",
|
||||
"@polkadot/types-codec": "9.0.1",
|
||||
"@polkadot/types-create": "9.0.1",
|
||||
"@polkadot/types-known": "9.0.1",
|
||||
"@polkadot/util": "^10.1.2",
|
||||
"@polkadot/util-crypto": "^10.1.2",
|
||||
"@polkadot/api-augment": "9.2.2",
|
||||
"@polkadot/api-base": "9.2.2",
|
||||
"@polkadot/api-derive": "9.2.2",
|
||||
"@polkadot/keyring": "^10.1.4",
|
||||
"@polkadot/rpc-augment": "9.2.2",
|
||||
"@polkadot/rpc-core": "9.2.2",
|
||||
"@polkadot/rpc-provider": "9.2.2",
|
||||
"@polkadot/types": "9.2.2",
|
||||
"@polkadot/types-augment": "9.2.2",
|
||||
"@polkadot/types-codec": "9.2.2",
|
||||
"@polkadot/types-create": "9.2.2",
|
||||
"@polkadot/types-known": "9.2.2",
|
||||
"@polkadot/util": "^10.1.4",
|
||||
"@polkadot/util-crypto": "^10.1.4",
|
||||
"eventemitter3": "^4.0.7",
|
||||
"rxjs": "^7.5.6"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api-augment": "9.0.1",
|
||||
"@polkadot/types-support": "9.0.1"
|
||||
"@polkadot/api-augment": "9.2.2",
|
||||
"@polkadot/types-support": "9.2.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -40,6 +40,7 @@ interface MetaDecoration {
|
||||
}
|
||||
|
||||
interface FullDecoration<ApiType extends ApiTypes> {
|
||||
createdAt?: Uint8Array;
|
||||
decoratedApi: ApiDecoration<ApiType>;
|
||||
decoratedMeta: DecoratedMeta;
|
||||
}
|
||||
@@ -62,6 +63,8 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
|
||||
|
||||
#registry: Registry;
|
||||
|
||||
readonly #runtimeLog: Record<string, boolean> = {};
|
||||
|
||||
#storageGetQ: [Observable<Codec[]>, [StorageEntry, unknown[]][]][] = [];
|
||||
|
||||
#storageSubQ: [Observable<Codec[]>, [StorageEntry, unknown[]][]][] = [];
|
||||
@@ -157,6 +160,8 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
|
||||
|
||||
this.#instanceId = `${++instanceCounter}`;
|
||||
this.#registry = options.source?.registry || options.registry || new TypeRegistry();
|
||||
this._rx.callAt = (blockHash: Uint8Array | string, knownVersion?: RuntimeVersion) =>
|
||||
from(this.at(blockHash, knownVersion)).pipe(map((a) => a.rx.call));
|
||||
this._rx.queryAt = (blockHash: Uint8Array | string, knownVersion?: RuntimeVersion) =>
|
||||
from(this.at(blockHash, knownVersion)).pipe(map((a) => a.rx.query));
|
||||
this._rx.registry = this.#registry;
|
||||
@@ -260,6 +265,7 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
|
||||
decoratedApi.runtimeVersion = registry.runtimeVersion;
|
||||
|
||||
return {
|
||||
createdAt: blockHash,
|
||||
decoratedApi,
|
||||
decoratedMeta: registry.decoratedMeta
|
||||
};
|
||||
@@ -303,7 +309,7 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
|
||||
* backwards compatible endpoint for metadata injection, may be removed in the future (However, it is still useful for testing injection)
|
||||
*/
|
||||
public injectMetadata (metadata: Metadata, fromEmpty?: boolean, registry?: Registry): void {
|
||||
this._injectMetadata({ metadata, registry: registry || this.#registry, runtimeVersion: this.#registry.createType('RuntimeVersionPartial') }, fromEmpty);
|
||||
this._injectMetadata({ counter: 0, metadata, registry: registry || this.#registry, runtimeVersion: this.#registry.createType('RuntimeVersionPartial') }, fromEmpty);
|
||||
}
|
||||
|
||||
private _decorateFunctionMeta (input: MetaDecoration, output: MetaDecoration): MetaDecoration {
|
||||
@@ -385,7 +391,7 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
|
||||
const filterKey = (k: string) => !allKeys.includes(k);
|
||||
const unknown = exposed.filter(filterKey);
|
||||
|
||||
if (unknown.length) {
|
||||
if (unknown.length && !this._options.noInitWarn) {
|
||||
l.warn(`RPC methods not decorated: ${unknown.join(', ')}`);
|
||||
}
|
||||
|
||||
@@ -494,12 +500,16 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
|
||||
}
|
||||
|
||||
// pre-metadata decoration
|
||||
protected _decorateCalls<ApiType extends ApiTypes> ({ registry, runtimeVersion: { apis, specName } }: VersionedRegistry<any>, decorateMethod: DecorateMethod<ApiType>, blockHash?: Uint8Array | string | null): QueryableCalls<ApiType> {
|
||||
protected _decorateCalls<ApiType extends ApiTypes> ({ registry, runtimeVersion: { apis, specName, specVersion } }: VersionedRegistry<any>, decorateMethod: DecorateMethod<ApiType>, blockHash?: Uint8Array | string | null): QueryableCalls<ApiType> {
|
||||
const result = {} as QueryableCalls<ApiType>;
|
||||
const named: Record<string, Record<string, DefinitionCallNamed>> = {};
|
||||
const hashes: Record<HexString, boolean> = {};
|
||||
const sections = this._getRuntimeDefs(registry, specName, this._runtimeChain);
|
||||
const older: string[] = [];
|
||||
const implName = `${specName.toString()}/${specVersion.toString()}`;
|
||||
const hasLogged = this.#runtimeLog[implName] || false;
|
||||
|
||||
this.#runtimeLog[implName] = true;
|
||||
|
||||
for (let i = 0; i < sections.length; i++) {
|
||||
const [_section, secs] = sections[i];
|
||||
@@ -540,12 +550,14 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
|
||||
.filter(([a]) => !hashes[a])
|
||||
.map(([a, v]) => `${this._runtimeMap[a] || a}/${v}`);
|
||||
|
||||
if (older.length) {
|
||||
l.warn(`Not decorating runtime apis without matching versions: ${older.join(', ')}`);
|
||||
}
|
||||
if (!this._options.noInitWarn && !hasLogged) {
|
||||
if (older.length) {
|
||||
l.warn(`${implName}: Not decorating runtime apis without matching versions: ${older.join(', ')}`);
|
||||
}
|
||||
|
||||
if (notFound.length) {
|
||||
l.warn(`Not decorating unknown runtime apis: ${notFound.join(', ')}`);
|
||||
if (notFound.length) {
|
||||
l.warn(`${implName}: Not decorating unknown runtime apis: ${notFound.join(', ')}`);
|
||||
}
|
||||
}
|
||||
|
||||
const stateCall = blockHash
|
||||
|
||||
@@ -21,6 +21,7 @@ import { cryptoWaitReady } from '@polkadot/util-crypto';
|
||||
import { Decorate } from './Decorate';
|
||||
|
||||
const KEEPALIVE_INTERVAL = 10000;
|
||||
const WITH_VERSION_SHORTCUT = false;
|
||||
|
||||
const l = logger('api/init');
|
||||
|
||||
@@ -29,6 +30,8 @@ function textToString (t: Text): string {
|
||||
}
|
||||
|
||||
export abstract class Init<ApiType extends ApiTypes> extends Decorate<ApiType> {
|
||||
#atLast: [string, ApiDecoration<ApiType>] | null = null;
|
||||
|
||||
#healthTimer: ReturnType<typeof setInterval> | null = null;
|
||||
|
||||
#registries: VersionedRegistry<ApiType>[] = [];
|
||||
@@ -70,7 +73,7 @@ export abstract class Init<ApiType extends ApiTypes> extends Decorate<ApiType> {
|
||||
this._rpcCore.provider.on('disconnected', () => this.#onProviderDisconnect());
|
||||
this._rpcCore.provider.on('error', (e: Error) => this.#onProviderError(e));
|
||||
this._rpcCore.provider.on('connected', () => this.#onProviderConnect());
|
||||
} else {
|
||||
} else if (!this._options.noInitWarn) {
|
||||
l.warn('Api will be available in a limited mode since the provider does not support subscriptions');
|
||||
}
|
||||
|
||||
@@ -113,11 +116,16 @@ export abstract class Init<ApiType extends ApiTypes> extends Decorate<ApiType> {
|
||||
*/
|
||||
public async at (blockHash: Uint8Array | string, knownVersion?: RuntimeVersion): Promise<ApiDecoration<ApiType>> {
|
||||
const u8aHash = u8aToU8a(blockHash);
|
||||
const u8aHex = u8aToHex(u8aHash);
|
||||
const registry = await this.getBlockRegistry(u8aHash, knownVersion);
|
||||
|
||||
// always create a new decoration - since we are pointing to a specific hash, this
|
||||
// means that all queries needs to use that hash (not a previous one already existing)
|
||||
return this._createDecorated(registry, true, null, u8aHash).decoratedApi;
|
||||
if (!this.#atLast || this.#atLast[0] !== u8aHex) {
|
||||
// always create a new decoration - since we are pointing to a specific hash, this
|
||||
// means that all queries needs to use that hash (not a previous one already existing)
|
||||
this.#atLast = [u8aHex, this._createDecorated(registry, true, null, u8aHash).decoratedApi];
|
||||
}
|
||||
|
||||
return this.#atLast[1];
|
||||
}
|
||||
|
||||
private async _createBlockRegistry (blockHash: Uint8Array, header: HeaderPartial, version: RuntimeVersionPartial): Promise<VersionedRegistry<ApiType>> {
|
||||
@@ -129,7 +137,7 @@ export abstract class Init<ApiType extends ApiTypes> extends Decorate<ApiType> {
|
||||
this._initRegistry(registry, this._runtimeChain as Text, version, metadata);
|
||||
|
||||
// add our new registry
|
||||
const result = { lastBlockHash: blockHash, metadata, registry, runtimeVersion: version };
|
||||
const result = { counter: 0, lastBlockHash: blockHash, metadata, registry, runtimeVersion: version };
|
||||
|
||||
this.#registries.push(result);
|
||||
|
||||
@@ -168,6 +176,7 @@ export abstract class Init<ApiType extends ApiTypes> extends Decorate<ApiType> {
|
||||
);
|
||||
|
||||
if (existingViaVersion) {
|
||||
existingViaVersion.counter++;
|
||||
existingViaVersion.lastBlockHash = blockHash;
|
||||
|
||||
return existingViaVersion;
|
||||
@@ -198,8 +207,13 @@ export abstract class Init<ApiType extends ApiTypes> extends Decorate<ApiType> {
|
||||
// get the runtime version, either on-chain or via an known upgrade history
|
||||
const [firstVersion, lastVersion] = getUpgradeVersion(this._genesisHash, header.number);
|
||||
const version = this.registry.createType('RuntimeVersionPartial',
|
||||
(firstVersion && (lastVersion || firstVersion.specVersion.eq(this._runtimeVersion.specVersion)))
|
||||
? { specName: this._runtimeVersion.specName, specVersion: firstVersion.specVersion }
|
||||
WITH_VERSION_SHORTCUT && (
|
||||
firstVersion && (
|
||||
lastVersion ||
|
||||
firstVersion.specVersion.eq(this._runtimeVersion.specVersion)
|
||||
)
|
||||
)
|
||||
? { apis: firstVersion.apis, specName: this._runtimeVersion.specName, specVersion: firstVersion.specVersion }
|
||||
: await firstValueFrom(this._rpcCore.state.getRuntimeVersion.raw(header.parentHash))
|
||||
);
|
||||
|
||||
@@ -337,7 +351,7 @@ export abstract class Init<ApiType extends ApiTypes> extends Decorate<ApiType> {
|
||||
|
||||
// setup the initial registry, when we have none
|
||||
if (!this.#registries.length) {
|
||||
this.#registries.push({ isDefault: true, metadata, registry: this.registry, runtimeVersion });
|
||||
this.#registries.push({ counter: 0, isDefault: true, metadata, registry: this.registry, runtimeVersion });
|
||||
}
|
||||
|
||||
// get unique types & validate
|
||||
|
||||
@@ -8,6 +8,7 @@ import type { Registry } from '@polkadot/types/types';
|
||||
import type { ApiDecoration, ApiTypes } from '../types';
|
||||
|
||||
export interface VersionedRegistry<ApiType extends ApiTypes> {
|
||||
counter: number;
|
||||
decoratedApi?: ApiDecoration<ApiType>;
|
||||
decoratedMeta?: DecoratedMeta;
|
||||
isDefault?: boolean;
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
import '@polkadot/rpc-augment';
|
||||
|
||||
export { Keyring } from '@polkadot/keyring';
|
||||
export { WsProvider, HttpProvider } from '@polkadot/rpc-provider';
|
||||
export { HttpProvider, ScProvider, WsProvider } from '@polkadot/rpc-provider';
|
||||
|
||||
export { packageInfo } from './packageInfo';
|
||||
export { SubmittableResult } from './submittable';
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '9.0.1' };
|
||||
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '9.2.2' };
|
||||
|
||||
@@ -102,6 +102,10 @@ export function createClass <ApiType extends ApiTypes> ({ api, apiType, blockHas
|
||||
|
||||
// dry run an extrinsic
|
||||
public dryRun (account: AddressOrPair, optionsOrHash?: Partial<SignerOptions> | Uint8Array | string): SubmittableDryRunResult<ApiType> {
|
||||
if (!api.rpc.system || !api.rpc.system.dryRun) {
|
||||
throw new Error('The system.dryRun RPC call is not available in your environment');
|
||||
}
|
||||
|
||||
if (blockHash || isString(optionsOrHash) || isU8a(optionsOrHash)) {
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
||||
return decorateMethod(
|
||||
@@ -120,11 +124,21 @@ export function createClass <ApiType extends ApiTypes> ({ api, apiType, blockHas
|
||||
|
||||
// calculate the payment info for this transaction (if signed and submitted)
|
||||
public paymentInfo (account: AddressOrPair, optionsOrHash?: Partial<SignerOptions> | Uint8Array | string): SubmittablePaymentResult<ApiType> {
|
||||
if (!api.call.transactionPaymentApi || !api.call.transactionPaymentApi.queryInfo) {
|
||||
throw new Error('The transactionPaymentApi.queryInfo runtime call is not available in your environment');
|
||||
}
|
||||
|
||||
if (blockHash || isString(optionsOrHash) || isU8a(optionsOrHash)) {
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
||||
return decorateMethod(
|
||||
(): Observable<RuntimeDispatchInfo> =>
|
||||
api.rpc.payment.queryInfo(this.toHex(), blockHash || optionsOrHash as string)
|
||||
api.callAt(blockHash || optionsOrHash as string).pipe(
|
||||
switchMap((callAt): Observable<RuntimeDispatchInfo> => {
|
||||
const u8a = this.toU8a();
|
||||
|
||||
return callAt.transactionPaymentApi.queryInfo(u8a, u8a.length);
|
||||
})
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
@@ -140,12 +154,11 @@ export function createClass <ApiType extends ApiTypes> ({ api, apiType, blockHas
|
||||
// setup our options (same way as in signAndSend)
|
||||
const eraOptions = makeEraOptions(api, this.registry, allOptions, signingInfo);
|
||||
const signOptions = makeSignOptions(api, eraOptions, {});
|
||||
const u8a = this.isSigned
|
||||
? api.tx(this).signFake(address, signOptions).toU8a()
|
||||
: this.signFake(address, signOptions).toU8a();
|
||||
|
||||
return api.rpc.payment.queryInfo(
|
||||
this.isSigned
|
||||
? api.tx(this).signFake(address, signOptions).toHex()
|
||||
: this.signFake(address, signOptions).toHex()
|
||||
);
|
||||
return api.call.transactionPaymentApi.queryInfo(u8a, u8a.length);
|
||||
})
|
||||
)
|
||||
)();
|
||||
|
||||
@@ -49,6 +49,10 @@ export interface ApiOptions extends RegisteredTypes {
|
||||
* if genesis hash and runtime spec version matches, then use metadata, else fetch it from chain
|
||||
*/
|
||||
metadata?: Record<string, HexString>;
|
||||
/**
|
||||
* @description Don't display any warnings on initialization (missing RPC methods & runtime calls)
|
||||
*/
|
||||
noInitWarn?: boolean;
|
||||
/**
|
||||
* @description Transport Provider from rpc-provider. If not specified, it will default to
|
||||
* connecting to a WsProvider connecting localhost with the default port, i.e. `ws://127.0.0.1:9944`
|
||||
|
||||
@@ -20,13 +20,13 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.0.1",
|
||||
"version": "9.2.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.18.9",
|
||||
"@polkadot/rpc-core": "9.0.1",
|
||||
"@polkadot/types": "9.0.1",
|
||||
"@polkadot/types-codec": "9.0.1",
|
||||
"@polkadot/util": "^10.1.2"
|
||||
"@polkadot/rpc-core": "9.2.2",
|
||||
"@polkadot/types": "9.2.2",
|
||||
"@polkadot/types-codec": "9.2.2",
|
||||
"@polkadot/util": "^10.1.4"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '9.0.1' };
|
||||
export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '9.2.2' };
|
||||
|
||||
@@ -20,18 +20,18 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.0.1",
|
||||
"version": "9.2.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.18.9",
|
||||
"@polkadot/rpc-augment": "9.0.1",
|
||||
"@polkadot/rpc-provider": "9.0.1",
|
||||
"@polkadot/types": "9.0.1",
|
||||
"@polkadot/util": "^10.1.2",
|
||||
"@polkadot/rpc-augment": "9.2.2",
|
||||
"@polkadot/rpc-provider": "9.2.2",
|
||||
"@polkadot/types": "9.2.2",
|
||||
"@polkadot/util": "^10.1.4",
|
||||
"rxjs": "^7.5.6"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^10.1.2",
|
||||
"@polkadot/rpc-augment": "9.0.1"
|
||||
"@polkadot/keyring": "^10.1.4",
|
||||
"@polkadot/rpc-augment": "9.2.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '9.0.1' };
|
||||
export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '9.2.2' };
|
||||
|
||||
@@ -20,19 +20,19 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.0.1",
|
||||
"version": "9.2.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.18.9",
|
||||
"@polkadot/keyring": "^10.1.2",
|
||||
"@polkadot/types": "9.0.1",
|
||||
"@polkadot/types-support": "9.0.1",
|
||||
"@polkadot/util": "^10.1.2",
|
||||
"@polkadot/util-crypto": "^10.1.2",
|
||||
"@polkadot/x-fetch": "^10.1.2",
|
||||
"@polkadot/x-global": "^10.1.2",
|
||||
"@polkadot/x-ws": "^10.1.2",
|
||||
"@substrate/connect": "0.7.9",
|
||||
"@polkadot/keyring": "^10.1.4",
|
||||
"@polkadot/types": "9.2.2",
|
||||
"@polkadot/types-support": "9.2.2",
|
||||
"@polkadot/util": "^10.1.4",
|
||||
"@polkadot/util-crypto": "^10.1.4",
|
||||
"@polkadot/x-fetch": "^10.1.4",
|
||||
"@polkadot/x-global": "^10.1.4",
|
||||
"@polkadot/x-ws": "^10.1.4",
|
||||
"@substrate/connect": "0.7.10",
|
||||
"eventemitter3": "^4.0.7",
|
||||
"mock-socket": "^9.1.5",
|
||||
"nock": "^13.2.9"
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '9.0.1' };
|
||||
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '9.2.2' };
|
||||
|
||||
@@ -7,7 +7,7 @@ import type { JsonRpcResponse, ProviderInterface, ProviderInterfaceCallback, Pro
|
||||
import { Chain, createScClient, ScClient, WellKnownChain } from '@substrate/connect';
|
||||
import EventEmitter from 'eventemitter3';
|
||||
|
||||
import { isError } from '@polkadot/util';
|
||||
import { isError, objectSpread } from '@polkadot/util';
|
||||
|
||||
import { RpcCoder } from '../coder';
|
||||
import { healthChecker } from './Health';
|
||||
@@ -36,20 +36,19 @@ const wellKnownChains = new Set(Object.values(WellKnownChain));
|
||||
const scClients = new WeakMap<ScProvider, ScClient>();
|
||||
|
||||
export { WellKnownChain };
|
||||
|
||||
export class ScProvider implements ProviderInterface {
|
||||
readonly #coder: RpcCoder = new RpcCoder();
|
||||
readonly #spec: string | WellKnownChain;
|
||||
readonly #sharedSandbox?: ScProvider;
|
||||
readonly #subscriptions: Map<
|
||||
string,
|
||||
[ResponseCallback, { unsubscribeMethod: string; id: string | number }]
|
||||
> = new Map();
|
||||
|
||||
readonly #subscriptions: Map<string, [ResponseCallback, { unsubscribeMethod: string; id: string | number }]> = new Map();
|
||||
readonly #requests: Map<number, ResponseCallback> = new Map();
|
||||
readonly #eventemitter: EventEmitter = new EventEmitter();
|
||||
#chain: Promise<Chain> | null = null;
|
||||
#isChainReady = false;
|
||||
|
||||
static WellKnownChain = WellKnownChain;
|
||||
|
||||
public constructor (spec: string | WellKnownChain, sharedSandbox?: ScProvider) {
|
||||
this.#spec = spec;
|
||||
this.#sharedSandbox = sharedSandbox;
|
||||
@@ -215,15 +214,14 @@ export class ScProvider implements ProviderInterface {
|
||||
this.#eventemitter.emit(isReady ? 'connected' : 'disconnected');
|
||||
});
|
||||
|
||||
return {
|
||||
...chain,
|
||||
return objectSpread({}, chain, {
|
||||
remove: () => {
|
||||
hc.stop();
|
||||
chain.remove();
|
||||
cleanup();
|
||||
},
|
||||
sendJsonRpc: hc.sendJsonRpc.bind(hc)
|
||||
};
|
||||
});
|
||||
});
|
||||
|
||||
try {
|
||||
@@ -252,10 +250,7 @@ export class ScProvider implements ProviderInterface {
|
||||
this.#eventemitter.emit('disconnected');
|
||||
}
|
||||
|
||||
public on (
|
||||
type: ProviderInterfaceEmitted,
|
||||
sub: ProviderInterfaceEmitCb
|
||||
): () => void {
|
||||
public on (type: ProviderInterfaceEmitted, sub: ProviderInterfaceEmitCb): () => void {
|
||||
// It's possible. Although, quite unlikely, that by the time that polkadot
|
||||
// subscribes to the `connected` event, the Provider is already connected.
|
||||
// In that case, we must emit to let the consumer know that we are connected.
|
||||
@@ -305,12 +300,7 @@ export class ScProvider implements ProviderInterface {
|
||||
}
|
||||
}
|
||||
|
||||
public async subscribe (
|
||||
type: string,
|
||||
method: string,
|
||||
params: any[],
|
||||
callback: ProviderInterfaceCallback
|
||||
): Promise<number | string> {
|
||||
public async subscribe (type: string, method: string, params: any[], callback: ProviderInterfaceCallback): Promise<number | string> {
|
||||
if (!subscriptionUnsubscriptionMethods.has(method)) {
|
||||
throw new Error(`Unsupported subscribe method: ${method}`);
|
||||
}
|
||||
@@ -337,11 +327,7 @@ export class ScProvider implements ProviderInterface {
|
||||
return id;
|
||||
}
|
||||
|
||||
public unsubscribe (
|
||||
type: string,
|
||||
method: string,
|
||||
id: number | string
|
||||
): Promise<boolean> {
|
||||
public unsubscribe (type: string, method: string, id: number | string): Promise<boolean> {
|
||||
if (!this.isConnected) {
|
||||
throw new Error('Provider is not connected');
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.0.1",
|
||||
"version": "9.2.2",
|
||||
"main": "index.js",
|
||||
"bin": {
|
||||
"polkadot-types-chain-info": "./scripts/polkadot-types-chain-info.cjs",
|
||||
@@ -30,27 +30,27 @@
|
||||
"polkadot-types-internal-metadata": "./scripts/polkadot-types-internal-metadata.cjs"
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/core": "^7.18.9",
|
||||
"@babel/core": "^7.18.10",
|
||||
"@babel/register": "^7.18.9",
|
||||
"@babel/runtime": "^7.18.9",
|
||||
"@polkadot/api": "9.0.1",
|
||||
"@polkadot/api-augment": "9.0.1",
|
||||
"@polkadot/rpc-augment": "9.0.1",
|
||||
"@polkadot/rpc-provider": "9.0.1",
|
||||
"@polkadot/types": "9.0.1",
|
||||
"@polkadot/types-augment": "9.0.1",
|
||||
"@polkadot/types-codec": "9.0.1",
|
||||
"@polkadot/types-create": "9.0.1",
|
||||
"@polkadot/types-support": "9.0.1",
|
||||
"@polkadot/util": "^10.1.2",
|
||||
"@polkadot/util-crypto": "^10.1.2",
|
||||
"@polkadot/x-ws": "^10.1.2",
|
||||
"@polkadot/api": "9.2.2",
|
||||
"@polkadot/api-augment": "9.2.2",
|
||||
"@polkadot/rpc-augment": "9.2.2",
|
||||
"@polkadot/rpc-provider": "9.2.2",
|
||||
"@polkadot/types": "9.2.2",
|
||||
"@polkadot/types-augment": "9.2.2",
|
||||
"@polkadot/types-codec": "9.2.2",
|
||||
"@polkadot/types-create": "9.2.2",
|
||||
"@polkadot/types-support": "9.2.2",
|
||||
"@polkadot/util": "^10.1.4",
|
||||
"@polkadot/util-crypto": "^10.1.4",
|
||||
"@polkadot/x-ws": "^10.1.4",
|
||||
"handlebars": "^4.7.7",
|
||||
"websocket": "^1.0.34",
|
||||
"yargs": "^17.5.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/websocket": "^1.0.5",
|
||||
"@types/yargs": "^17.0.10"
|
||||
"@types/yargs": "^17.0.11"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '9.0.1' };
|
||||
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '9.2.2' };
|
||||
|
||||
@@ -20,12 +20,12 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.0.1",
|
||||
"version": "9.2.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.18.9",
|
||||
"@polkadot/types": "9.0.1",
|
||||
"@polkadot/types-codec": "9.0.1",
|
||||
"@polkadot/util": "^10.1.2"
|
||||
"@polkadot/types": "9.2.2",
|
||||
"@polkadot/types-codec": "9.2.2",
|
||||
"@polkadot/util": "^10.1.4"
|
||||
}
|
||||
}
|
||||
|
||||
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
|
||||
|
||||
export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '9.0.1' };
|
||||
export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '9.2.2' };
|
||||
|
||||
@@ -15,7 +15,7 @@ import type { UncleEntryItem } from '@polkadot/types/interfaces/authorship';
|
||||
import type { AllowedSlots, BabeAuthorityWeight, BabeBlockWeight, BabeEpochConfiguration, BabeEquivocationProof, BabeGenesisConfiguration, BabeGenesisConfigurationV1, BabeWeight, Epoch, EpochAuthorship, MaybeRandomness, MaybeVrf, NextConfigDescriptor, NextConfigDescriptorV1, OpaqueKeyOwnershipProof, Randomness, RawBabePreDigest, RawBabePreDigestCompat, RawBabePreDigestPrimary, RawBabePreDigestPrimaryTo159, RawBabePreDigestSecondaryPlain, RawBabePreDigestSecondaryTo159, RawBabePreDigestSecondaryVRF, RawBabePreDigestTo159, SlotNumber, VrfData, VrfOutput, VrfProof } from '@polkadot/types/interfaces/babe';
|
||||
import type { AccountData, BalanceLock, BalanceLockTo212, BalanceStatus, Reasons, ReserveData, ReserveIdentifier, VestingSchedule, WithdrawReasons } from '@polkadot/types/interfaces/balances';
|
||||
import type { BeefyAuthoritySet, BeefyCommitment, BeefyId, BeefyNextAuthoritySet, BeefyPayload, BeefyPayloadId, BeefySignedCommitment, MmrRootHash, ValidatorSet, ValidatorSetId } from '@polkadot/types/interfaces/beefy';
|
||||
import type { BenchmarkConfig, BenchmarkList, BenchmarkMetadata, BenchmarkParameter } from '@polkadot/types/interfaces/benchmark';
|
||||
import type { BenchmarkBatch, BenchmarkConfig, BenchmarkList, BenchmarkMetadata, BenchmarkParameter, BenchmarkResult } from '@polkadot/types/interfaces/benchmark';
|
||||
import type { CheckInherentsResult, InherentData, InherentIdentifier } from '@polkadot/types/interfaces/blockbuilder';
|
||||
import type { BridgeMessageId, BridgedBlockHash, BridgedBlockNumber, BridgedHeader, CallOrigin, ChainId, DeliveredMessages, DispatchFeePayment, InboundLaneData, InboundRelayer, InitializationData, LaneId, MessageData, MessageKey, MessageNonce, MessagesDeliveryProofOf, MessagesProofOf, OperatingMode, OutboundLaneData, OutboundMessageFee, OutboundPayload, Parameter, RelayerId, UnrewardedRelayer, UnrewardedRelayersState } from '@polkadot/types/interfaces/bridges';
|
||||
import type { BlockHash } from '@polkadot/types/interfaces/chain';
|
||||
@@ -155,10 +155,12 @@ declare module '@polkadot/types/types/registry' {
|
||||
BeefyPayload: BeefyPayload;
|
||||
BeefyPayloadId: BeefyPayloadId;
|
||||
BeefySignedCommitment: BeefySignedCommitment;
|
||||
BenchmarkBatch: BenchmarkBatch;
|
||||
BenchmarkConfig: BenchmarkConfig;
|
||||
BenchmarkList: BenchmarkList;
|
||||
BenchmarkMetadata: BenchmarkMetadata;
|
||||
BenchmarkParameter: BenchmarkParameter;
|
||||
BenchmarkResult: BenchmarkResult;
|
||||
Bid: Bid;
|
||||
Bidder: Bidder;
|
||||
BidKind: BidKind;
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -20,17 +20,17 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.0.1",
|
||||
"version": "9.2.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.18.9",
|
||||
"@polkadot/util": "^10.1.2",
|
||||
"@polkadot/x-bigint": "^10.1.2"
|
||||
"@polkadot/util": "^10.1.4",
|
||||
"@polkadot/x-bigint": "^10.1.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/types": "9.0.1",
|
||||
"@polkadot/types-augment": "9.0.1",
|
||||
"@polkadot/types-support": "9.0.1",
|
||||
"@polkadot/util-crypto": "^10.1.2"
|
||||
"@polkadot/types": "9.2.2",
|
||||
"@polkadot/types-augment": "9.2.2",
|
||||
"@polkadot/types-support": "9.2.2",
|
||||
"@polkadot/util-crypto": "^10.1.4"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -46,7 +46,7 @@ function decodeMapFromMap<K extends Codec, V extends Codec> (registry: Registry,
|
||||
output.set(
|
||||
key instanceof KeyClass
|
||||
? key
|
||||
: new KeyClass(registry, isComplex ? JSON.parse(key as string) : key),
|
||||
: new KeyClass(registry, isComplex && typeof key === 'string' ? JSON.parse(key) : key),
|
||||
val instanceof ValClass
|
||||
? val
|
||||
: new ValClass(registry, val)
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/types-codec', path: 'auto', type: 'auto', version: '9.0.1' };
|
||||
export const packageInfo = { name: '@polkadot/types-codec', path: 'auto', type: 'auto', version: '9.2.2' };
|
||||
|
||||
@@ -20,14 +20,14 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.0.1",
|
||||
"version": "9.2.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.18.9",
|
||||
"@polkadot/types-codec": "9.0.1",
|
||||
"@polkadot/util": "^10.1.2"
|
||||
"@polkadot/types-codec": "9.2.2",
|
||||
"@polkadot/util": "^10.1.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/types": "9.0.1"
|
||||
"@polkadot/types": "9.2.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/types-create', path: 'auto', type: 'auto', version: '9.0.1' };
|
||||
export const packageInfo = { name: '@polkadot/types-create', path: 'auto', type: 'auto', version: '9.2.2' };
|
||||
|
||||
@@ -20,14 +20,17 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.0.1",
|
||||
"version": "9.2.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.18.9",
|
||||
"@polkadot/networks": "^10.1.2",
|
||||
"@polkadot/types": "9.0.1",
|
||||
"@polkadot/types-codec": "9.0.1",
|
||||
"@polkadot/types-create": "9.0.1",
|
||||
"@polkadot/util": "^10.1.2"
|
||||
"@polkadot/networks": "^10.1.4",
|
||||
"@polkadot/types": "9.2.2",
|
||||
"@polkadot/types-codec": "9.2.2",
|
||||
"@polkadot/types-create": "9.2.2",
|
||||
"@polkadot/util": "^10.1.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api": "9.2.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/types-known', path: 'auto', type: 'auto', version: '9.0.1' };
|
||||
export const packageInfo = { name: '@polkadot/types-known', path: 'auto', type: 'auto', version: '9.2.2' };
|
||||
|
||||
@@ -0,0 +1,59 @@
|
||||
// Copyright 2017-2022 @polkadot/types-known authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { HexString } from '@polkadot/util/types';
|
||||
import type { ChainUpgradesGenerated } from '../types';
|
||||
|
||||
import fs from 'fs';
|
||||
|
||||
import { ApiPromise, WsProvider } from '@polkadot/api';
|
||||
|
||||
import * as allMan from '../manual';
|
||||
import * as allGen from '.';
|
||||
|
||||
const keys = <const> ['kusama', 'polkadot', 'westend'];
|
||||
const urls = {
|
||||
kusama: 'wss://kusama-rpc.polkadot.io',
|
||||
polkadot: 'wss://rpc.polkadot.io',
|
||||
westend: 'wss://westend-rpc.polkadot.io'
|
||||
};
|
||||
|
||||
describe.each(keys)('generate %s', (chain): void => {
|
||||
const avail = allGen[chain];
|
||||
const final: ChainUpgradesGenerated = [];
|
||||
let api: ApiPromise;
|
||||
|
||||
beforeAll(async (): Promise<void> => {
|
||||
api = await ApiPromise.create({ provider: new WsProvider(urls[chain]) });
|
||||
});
|
||||
|
||||
afterAll(async (): Promise<void> => {
|
||||
fs.writeFileSync(`packages/types-known/src/upgrades/e2e/${chain}.ts`, `// Copyright 2017-${new Date().getFullYear()} @polkadot/types-known authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Auto-generated from on-chain data & manual definitions, do not edit
|
||||
/* eslint-disable quotes, comma-spacing */
|
||||
|
||||
import type { ChainUpgradesGenerated } from '../types';
|
||||
|
||||
const upgrades: ChainUpgradesGenerated = ${JSON.stringify(final)};
|
||||
|
||||
export default upgrades;
|
||||
`);
|
||||
await api.disconnect();
|
||||
});
|
||||
|
||||
it.each(allMan[chain])('%s', async (blockNumber, specVersion): Promise<void> => {
|
||||
const found = avail.find(([n, s]) => n === blockNumber && s === specVersion);
|
||||
|
||||
if (found) {
|
||||
final.push(found);
|
||||
} else {
|
||||
const blockHash = await api.rpc.chain.getBlockHash(blockNumber + 1);
|
||||
const runtime = await api.rpc.state.getRuntimeVersion(blockHash);
|
||||
const apis = runtime.apis.map(([api, version]): [HexString, number] => [api.toHex(), version.toNumber()]);
|
||||
|
||||
final.push([blockNumber, specVersion, apis]);
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,6 @@
|
||||
// Copyright 2017-2022 @polkadot/types-known authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
export { default as kusama } from './kusama';
|
||||
export { default as polkadot } from './polkadot';
|
||||
export { default as westend } from './westend';
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -3,6 +3,8 @@
|
||||
|
||||
import { u8aEq } from '@polkadot/util';
|
||||
|
||||
import * as allGen from './e2e';
|
||||
import * as allMan from './manual';
|
||||
import all from '.';
|
||||
|
||||
interface TestDef {
|
||||
@@ -38,6 +40,27 @@ const TESTS: TestDef[] = [
|
||||
}
|
||||
];
|
||||
|
||||
describe('generated', (): void => {
|
||||
it('should have all the chains', (): void => {
|
||||
expect(Object.keys(allMan).sort()).toEqual(Object.keys(allGen).sort());
|
||||
});
|
||||
|
||||
describe.each(Object.keys(allMan))('%s', (chain): void => {
|
||||
it('should have all generated', (): void => {
|
||||
const missing = allMan[chain as keyof typeof allMan].filter(([na, sa]) =>
|
||||
!allGen[chain as keyof typeof allGen].some(([nb, sb]) =>
|
||||
nb === na &&
|
||||
sb === sa
|
||||
)
|
||||
);
|
||||
|
||||
if (missing.length !== 0) {
|
||||
throw new Error(`${chain}:: missing generated apis found, run yarn test:one packages/types-known/src/upgrades/e2e`);
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe('upgrades', (): void => {
|
||||
TESTS.forEach(({ genesisHash, network, versions }): void => {
|
||||
describe(network, (): void => {
|
||||
|
||||
@@ -2,16 +2,12 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { ChainUpgrades } from '@polkadot/types/types';
|
||||
import type { ChainUpgradesRaw } from './types';
|
||||
import type { ChainUpgradesGenerated } from './types';
|
||||
|
||||
import { selectableNetworks } from '@polkadot/networks';
|
||||
import { BN, hexToU8a, stringify } from '@polkadot/util';
|
||||
|
||||
import kusama from './kusama';
|
||||
import polkadot from './polkadot';
|
||||
import westend from './westend';
|
||||
|
||||
const allKnown = { kusama, polkadot, westend };
|
||||
import * as allKnown from './e2e';
|
||||
|
||||
// testnets are not available in the networks map
|
||||
const NET_EXTRA: Record<string, { genesisHash: string[] }> = {
|
||||
@@ -21,7 +17,7 @@ const NET_EXTRA: Record<string, { genesisHash: string[] }> = {
|
||||
};
|
||||
|
||||
/** @internal */
|
||||
function checkOrder (network: string, versions: ChainUpgradesRaw): [number, number][] {
|
||||
function checkOrder (network: string, versions: ChainUpgradesGenerated): ChainUpgradesGenerated {
|
||||
const ooo = versions.filter((curr, index): boolean => {
|
||||
const prev = versions[index - 1];
|
||||
|
||||
@@ -38,7 +34,7 @@ function checkOrder (network: string, versions: ChainUpgradesRaw): [number, numb
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
function mapRaw ([network, versions]: [string, ChainUpgradesRaw]): ChainUpgrades {
|
||||
function mapRaw ([network, versions]: [string, ChainUpgradesGenerated]): ChainUpgrades {
|
||||
const chain = selectableNetworks.find((n) => n.network === network) || NET_EXTRA[network];
|
||||
|
||||
if (!chain) {
|
||||
@@ -48,7 +44,8 @@ function mapRaw ([network, versions]: [string, ChainUpgradesRaw]): ChainUpgrades
|
||||
return {
|
||||
genesisHash: hexToU8a(chain.genesisHash[0]),
|
||||
network,
|
||||
versions: checkOrder(network, versions).map(([blockNumber, specVersion]) => ({
|
||||
versions: checkOrder(network, versions).map(([blockNumber, specVersion, apis]) => ({
|
||||
apis,
|
||||
blockNumber: new BN(blockNumber),
|
||||
specVersion: new BN(specVersion)
|
||||
}))
|
||||
@@ -56,6 +53,6 @@ function mapRaw ([network, versions]: [string, ChainUpgradesRaw]): ChainUpgrades
|
||||
}
|
||||
|
||||
// Type overrides for specific spec types & versions as given in runtimeVersion
|
||||
const upgrades = Object.entries(allKnown).map(mapRaw);
|
||||
const upgrades = Object.entries<ChainUpgradesGenerated>(allKnown).map(mapRaw);
|
||||
|
||||
export default upgrades;
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
// Copyright 2017-2022 @polkadot/types-known authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
export { default as kusama } from './kusama';
|
||||
export { default as polkadot } from './polkadot';
|
||||
export { default as westend } from './westend';
|
||||
+2
-2
@@ -1,9 +1,9 @@
|
||||
// Copyright 2017-2022 @polkadot/types-known authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { ChainUpgradesRaw } from './types';
|
||||
import type { ChainUpgradesManual } from '../types';
|
||||
|
||||
const upgrades: ChainUpgradesRaw = [
|
||||
const upgrades: ChainUpgradesManual = [
|
||||
[0, 1020], [26669, 1021], [38245, 1022], [54248, 1023], [59659, 1024],
|
||||
[67651, 1025], [82191, 1027], [83238, 1028], [101503, 1029], [203466, 1030],
|
||||
[295787, 1031], [461692, 1032], [504329, 1033], [569327, 1038], [587687, 1039],
|
||||
+3
-3
@@ -1,9 +1,9 @@
|
||||
// Copyright 2017-2022 @polkadot/types-known authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { ChainUpgradesRaw } from './types';
|
||||
import type { ChainUpgradesManual } from '../types';
|
||||
|
||||
const upgrades: ChainUpgradesRaw = [
|
||||
const upgrades: ChainUpgradesManual = [
|
||||
[0, 0], [29231, 1], [188836, 5], [199405, 6], [214264, 7],
|
||||
[244358, 8], [303079, 9], [314201, 10], [342400, 11], [443963, 12],
|
||||
[528470, 13], [687751, 14], [746085, 15], [787923, 16], [799302, 17],
|
||||
@@ -11,7 +11,7 @@ const upgrades: ChainUpgradesRaw = [
|
||||
[3613564, 27], [3899547, 28], [4345767, 29], [4876134, 30], [5661442, 9050],
|
||||
[6321619, 9080], [6713249, 9090], [7217907, 9100], [7229126, 9110], [7560558, 9122],
|
||||
[8115869, 9140], [8638103, 9151], [9280179, 9170], [9738717, 9180], [10156856, 9190],
|
||||
[10458576, 9200], [10655116, 9220], [10879371, 9230], [11328884, 9250]
|
||||
[10458576, 9200], [10655116, 9220], [10879371, 9230], [11328884, 9250], [11532856, 9260]
|
||||
];
|
||||
|
||||
export default upgrades;
|
||||
+3
-3
@@ -1,9 +1,9 @@
|
||||
// Copyright 2017-2022 @polkadot/types-known authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { ChainUpgradesRaw } from './types';
|
||||
import type { ChainUpgradesManual } from '../types';
|
||||
|
||||
const upgrades: ChainUpgradesRaw = [
|
||||
const upgrades: ChainUpgradesManual = [
|
||||
[214356, 4], [392764, 7], [409740, 8], [809976, 20], [877581, 24],
|
||||
[879238, 25], [889472, 26], [902937, 27], [932751, 28], [991142, 29],
|
||||
[1030162, 31], [1119657, 32], [1199282, 33], [1342534, 34], [1392263, 35],
|
||||
@@ -15,7 +15,7 @@ const upgrades: ChainUpgradesRaw = [
|
||||
[7968866, 9121], [7982889, 9122], [8514322, 9130], [9091726, 9140], [9091774, 9150],
|
||||
[9406726, 9160], [9921066, 9170], [10007115, 9180], [10480973, 9190], [10578091, 9200],
|
||||
[10678509, 9210], [10811001, 9220], [11096116, 9230], [11409279, 9250], [11584820, 9251],
|
||||
[11716837, 9260], [11876919, 9261]
|
||||
[11716837, 9260], [11876919, 9261], [11987927, 9270], [12077324, 9271]
|
||||
];
|
||||
|
||||
export default upgrades;
|
||||
@@ -1,4 +1,10 @@
|
||||
// Copyright 2017-2022 @polkadot/types-known authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { HexString } from '@polkadot/util/types';
|
||||
|
||||
export type ChainUpgradesRaw = [number, number][];
|
||||
|
||||
export type ChainUpgradesGenerated = [number, number, [HexString, number][]][];
|
||||
|
||||
export type ChainUpgradesManual = [number, number][];
|
||||
|
||||
@@ -5,6 +5,9 @@
|
||||
"outDir": "./build",
|
||||
"rootDir": "./src"
|
||||
},
|
||||
"exclude": [
|
||||
"**/*.spec.ts"
|
||||
],
|
||||
"references": [
|
||||
{ "path": "../types/tsconfig.build.json" },
|
||||
{ "path": "../types-codec/tsconfig.build.json" },
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"baseUrl": "..",
|
||||
"outDir": "./build",
|
||||
"rootDir": "./src",
|
||||
"emitDeclarationOnly": false,
|
||||
"resolveJsonModule": true,
|
||||
"noEmit": true
|
||||
},
|
||||
"include": [
|
||||
"**/*.spec.ts"
|
||||
],
|
||||
"references": [
|
||||
{ "path": "../api/tsconfig.build.json" },
|
||||
{ "path": "../types/tsconfig.build.json" },
|
||||
{ "path": "../types-codec/tsconfig.build.json" },
|
||||
{ "path": "../types-create/tsconfig.build.json" }
|
||||
]
|
||||
}
|
||||
@@ -20,10 +20,10 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.0.1",
|
||||
"version": "9.2.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.18.9",
|
||||
"@polkadot/util": "^10.1.2"
|
||||
"@polkadot/util": "^10.1.4"
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -236,7 +236,7 @@
|
||||
{
|
||||
"name": "BlockWeights",
|
||||
"type": 167,
|
||||
"value": "0xc8bd0a6e0100000000204aa9d101000088f82405000000000178d7ba9158010000010098f73e5d01000001000000000000000088f824050000000001785f0dfccc0100000100204aa9d1010000010088526a7400000088f8240500000000000000",
|
||||
"value": "0x68f7096d0100000000204aa9d101000088f82405000000000178d7ba9158010000010098f73e5d01000001000000000000000088f824050000000001785f0dfccc0100000100204aa9d1010000010088526a7400000088f8240500000000000000",
|
||||
"docs": [
|
||||
" Block & extrinsics weights: base values and limits."
|
||||
]
|
||||
@@ -4533,7 +4533,7 @@
|
||||
{
|
||||
"name": "SignedMaxWeight",
|
||||
"type": 8,
|
||||
"value": "0xb019b02357010000",
|
||||
"value": "0x10e0b02457010000",
|
||||
"docs": [
|
||||
" Maximum weight of a signed solution.",
|
||||
"",
|
||||
|
||||
@@ -1584,7 +1584,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -1849,7 +1849,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -1934,7 +1934,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -2210,7 +2210,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -2380,7 +2380,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -2431,7 +2431,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -2569,7 +2569,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -3191,7 +3191,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -3589,7 +3589,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -3791,7 +3791,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -3928,7 +3928,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -4032,7 +4032,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -4211,7 +4211,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -4264,7 +4264,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -4398,7 +4398,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -4640,7 +4640,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -4960,7 +4960,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -5167,7 +5167,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -5540,7 +5540,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -5773,7 +5773,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -5877,7 +5877,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -6035,7 +6035,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -6162,7 +6162,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -6290,7 +6290,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -6429,7 +6429,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -6661,7 +6661,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -6738,7 +6738,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -7260,7 +7260,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -7748,7 +7748,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -7941,7 +7941,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -8318,7 +8318,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -8451,7 +8451,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -8611,7 +8611,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -8699,7 +8699,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -8905,7 +8905,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -9124,7 +9124,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -9585,7 +9585,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -13931,7 +13931,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -14274,7 +14274,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -14934,7 +14934,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -15230,7 +15230,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -17157,7 +17157,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -18288,7 +18288,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -18756,7 +18756,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -20289,7 +20289,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -36808,7 +36808,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -36951,7 +36951,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -37213,7 +37213,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -37300,7 +37300,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -37616,7 +37616,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -37649,7 +37649,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -38092,7 +38092,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -38499,7 +38499,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -38788,7 +38788,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -39104,7 +39104,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -39411,7 +39411,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -39631,7 +39631,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -39830,7 +39830,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -40149,7 +40149,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -40341,7 +40341,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -40494,7 +40494,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -41247,7 +41247,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -41400,7 +41400,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -42095,7 +42095,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -42485,7 +42485,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -42882,7 +42882,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -43052,7 +43052,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -43916,7 +43916,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -44068,7 +44068,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -44493,7 +44493,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -44758,7 +44758,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -44942,7 +44942,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -44997,7 +44997,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -45162,7 +45162,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -45522,7 +45522,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -45989,7 +45989,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -236,7 +236,7 @@
|
||||
{
|
||||
"name": "BlockWeights",
|
||||
"type": 161,
|
||||
"value": "0x5096715b0100000000204aa9d1010000603b14050000000001a094cb9158010000010098f73e5d010000010000000000000000603b14050000000001a01c1efccc0100000100204aa9d1010000010088526a74000000603b140500000000000000",
|
||||
"value": "0x5872d25c0100000000204aa9d1010000603b14050000000001a094cb9158010000010098f73e5d010000010000000000000000603b14050000000001a01c1efccc0100000100204aa9d1010000010088526a74000000603b140500000000000000",
|
||||
"docs": [
|
||||
" Block & extrinsics weights: base values and limits."
|
||||
]
|
||||
@@ -4092,7 +4092,7 @@
|
||||
{
|
||||
"name": "SignedMaxWeight",
|
||||
"type": 8,
|
||||
"value": "0x50fe593657010000",
|
||||
"value": "0x4822f93457010000",
|
||||
"docs": [
|
||||
" Maximum weight of a signed solution.",
|
||||
"",
|
||||
|
||||
@@ -1788,7 +1788,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -1870,7 +1870,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -2135,7 +2135,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -2220,7 +2220,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -2496,7 +2496,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -2666,7 +2666,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -2717,7 +2717,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -2855,7 +2855,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -3477,7 +3477,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -3813,7 +3813,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -4015,7 +4015,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -4152,7 +4152,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -4256,7 +4256,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -4435,7 +4435,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -4488,7 +4488,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -4588,7 +4588,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -4684,7 +4684,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -4926,7 +4926,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -5093,7 +5093,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -5320,7 +5320,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -5512,7 +5512,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -5639,7 +5639,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -5767,7 +5767,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -5906,7 +5906,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -6070,7 +6070,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -6189,7 +6189,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -6677,7 +6677,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -6870,7 +6870,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -7247,7 +7247,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -7380,7 +7380,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -7540,7 +7540,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -7628,7 +7628,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -7834,7 +7834,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -8053,7 +8053,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -8514,7 +8514,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
"\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -30295,7 +30295,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -30494,7 +30494,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -30939,7 +30939,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -31019,7 +31019,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -31348,7 +31348,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -31591,7 +31591,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -32460,7 +32460,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -32882,7 +32882,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -33129,7 +33129,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -33919,7 +33919,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -34118,7 +34118,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -34261,7 +34261,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -34523,7 +34523,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -34610,7 +34610,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -34926,7 +34926,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -35101,7 +35101,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -35544,7 +35544,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -35851,7 +35851,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -36071,7 +36071,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -36390,7 +36390,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -36582,7 +36582,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -36735,7 +36735,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -37329,7 +37329,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -37713,7 +37713,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -38110,7 +38110,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -38280,7 +38280,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -39144,7 +39144,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -39296,7 +39296,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -39721,7 +39721,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -39986,7 +39986,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -40170,7 +40170,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -40225,7 +40225,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -40390,7 +40390,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -40750,7 +40750,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -41217,7 +41217,7 @@
|
||||
}
|
||||
},
|
||||
"docs": [
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
"\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"
|
||||
]
|
||||
}
|
||||
},
|
||||
|
||||
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
|
||||
|
||||
export const packageInfo = { name: '@polkadot/types-support', path: 'auto', type: 'auto', version: '9.0.1' };
|
||||
export const packageInfo = { name: '@polkadot/types-support', path: 'auto', type: 'auto', version: '9.2.2' };
|
||||
|
||||
@@ -20,20 +20,20 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.0.1",
|
||||
"version": "9.2.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.18.9",
|
||||
"@polkadot/keyring": "^10.1.2",
|
||||
"@polkadot/types-augment": "9.0.1",
|
||||
"@polkadot/types-codec": "9.0.1",
|
||||
"@polkadot/types-create": "9.0.1",
|
||||
"@polkadot/util": "^10.1.2",
|
||||
"@polkadot/util-crypto": "^10.1.2",
|
||||
"@polkadot/keyring": "^10.1.4",
|
||||
"@polkadot/types-augment": "9.2.2",
|
||||
"@polkadot/types-codec": "9.2.2",
|
||||
"@polkadot/types-create": "9.2.2",
|
||||
"@polkadot/util": "^10.1.4",
|
||||
"@polkadot/util-crypto": "^10.1.4",
|
||||
"rxjs": "^7.5.6"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^10.1.2",
|
||||
"@polkadot/types-support": "9.0.1"
|
||||
"@polkadot/keyring": "^10.1.4",
|
||||
"@polkadot/types-support": "9.2.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,6 +12,12 @@ export default {
|
||||
rpc: {},
|
||||
runtime,
|
||||
types: {
|
||||
BenchmarkBatch: {
|
||||
pallet: 'Text',
|
||||
instance: 'Text',
|
||||
benchmark: 'Text',
|
||||
results: 'Vec<BenchmarkResult>'
|
||||
},
|
||||
BenchmarkConfig: {
|
||||
pallet: 'Bytes',
|
||||
benchmark: 'Bytes',
|
||||
@@ -30,6 +36,17 @@ export default {
|
||||
},
|
||||
BenchmarkParameter: {
|
||||
_enum: ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']
|
||||
},
|
||||
BenchmarkResult: {
|
||||
components: 'Vec<(BenchmarkParameter, u32)>',
|
||||
extrinsicTime: 'u128',
|
||||
storageRootTime: 'u128',
|
||||
reads: 'u32',
|
||||
repeatReads: 'u32',
|
||||
writes: 'u32',
|
||||
repeatWrites: 'u32',
|
||||
proofSize: 'u32',
|
||||
benchKeys: 'Vec<(Vec<u8>, u32, u32, bool)>'
|
||||
}
|
||||
}
|
||||
} as Definitions;
|
||||
|
||||
@@ -1,9 +1,17 @@
|
||||
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
|
||||
/* eslint-disable */
|
||||
|
||||
import type { Bytes, Enum, Struct, Vec, bool, u32 } from '@polkadot/types-codec';
|
||||
import type { Bytes, Enum, Struct, Text, Vec, bool, u128, u32 } from '@polkadot/types-codec';
|
||||
import type { ITuple } from '@polkadot/types-codec/types';
|
||||
|
||||
/** @name BenchmarkBatch */
|
||||
export interface BenchmarkBatch extends Struct {
|
||||
readonly pallet: Text;
|
||||
readonly instance: Text;
|
||||
readonly benchmark: Text;
|
||||
readonly results: Vec<BenchmarkResult>;
|
||||
}
|
||||
|
||||
/** @name BenchmarkConfig */
|
||||
export interface BenchmarkConfig extends Struct {
|
||||
readonly pallet: Bytes;
|
||||
@@ -57,4 +65,17 @@ export interface BenchmarkParameter extends Enum {
|
||||
readonly type: 'A' | 'B' | 'C' | 'D' | 'E' | 'F' | 'G' | 'H' | 'I' | 'J' | 'K' | 'L' | 'M' | 'N' | 'O' | 'P' | 'Q' | 'R' | 'S' | 'T' | 'U' | 'V' | 'W' | 'X' | 'Y' | 'Z';
|
||||
}
|
||||
|
||||
/** @name BenchmarkResult */
|
||||
export interface BenchmarkResult extends Struct {
|
||||
readonly components: Vec<ITuple<[BenchmarkParameter, u32]>>;
|
||||
readonly extrinsicTime: u128;
|
||||
readonly storageRootTime: u128;
|
||||
readonly reads: u32;
|
||||
readonly repeatReads: u32;
|
||||
readonly writes: u32;
|
||||
readonly repeatWrites: u32;
|
||||
readonly proofSize: u32;
|
||||
readonly benchKeys: Vec<ITuple<[Bytes, u32, u32, bool]>>;
|
||||
}
|
||||
|
||||
export type PHANTOM_BENCHMARK = 'benchmark';
|
||||
|
||||
@@ -0,0 +1,129 @@
|
||||
// Copyright 2017-2022 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { DefinitionsCall, DefinitionsRpc, DefinitionsTypes, RegistryTypes } from '../types';
|
||||
|
||||
import rpcMetadata from '@polkadot/types-support/metadata/static-substrate';
|
||||
|
||||
import { getTypeDef, TypeRegistry } from '../create';
|
||||
import { Metadata } from '../metadata';
|
||||
import * as all from './definitions';
|
||||
|
||||
interface CheckDef {
|
||||
rpc: DefinitionsRpc;
|
||||
runtime: DefinitionsCall;
|
||||
types: DefinitionsTypes;
|
||||
}
|
||||
|
||||
const registry = new TypeRegistry();
|
||||
const types = Object.values(all).reduce<Record<string, unknown>>((r, { types = {} }) => {
|
||||
Object.entries(types).forEach(([k, v]) => {
|
||||
r[k] = v;
|
||||
});
|
||||
|
||||
return r;
|
||||
}, {});
|
||||
|
||||
registry.register(types as RegistryTypes);
|
||||
registry.setMetadata(new Metadata(registry, rpcMetadata));
|
||||
|
||||
function inspectType (type: string): void {
|
||||
try {
|
||||
// get the definition
|
||||
const { sub } = getTypeDef(registry.createType(type).toRawType());
|
||||
|
||||
// inspect the subs
|
||||
if (Array.isArray(sub)) {
|
||||
for (let i = 0; i < sub.length; i++) {
|
||||
inspectType(sub[i].type);
|
||||
}
|
||||
} else if (sub) {
|
||||
inspectType(sub.type);
|
||||
}
|
||||
} catch (error) {
|
||||
throw new Error(`${type}:: ${(error as Error).message}`);
|
||||
}
|
||||
}
|
||||
|
||||
describe('type definitions', (): void => {
|
||||
const types = Object.entries(all).filter((v): v is [string, CheckDef] =>
|
||||
!!v[1].types &&
|
||||
Object.keys(v[1].types).length !== 0 &&
|
||||
v[0] === 'benchmark'
|
||||
);
|
||||
|
||||
describe.each(types)('%s', (_, { types }): void => {
|
||||
const typesKeys = Object.keys(types).filter((type) =>
|
||||
// meant to fail
|
||||
type !== 'ExtrinsicUnknown' &&
|
||||
type !== 'ExtrinsicPayloadUnknown' &&
|
||||
// injected at runtime
|
||||
type !== 'Origin' &&
|
||||
// it will fail of MetadataV0
|
||||
type !== 'MetadataAll'
|
||||
);
|
||||
|
||||
it.each(typesKeys)('%s is known', (type): void => {
|
||||
expect(() => inspectType(type)).not.toThrow();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe('rpc definitions', (): void => {
|
||||
const rpcs = Object.entries(all).filter((v): v is [string, CheckDef] =>
|
||||
!!v[1].rpc &&
|
||||
Object.keys(v[1].rpc).length !== 0
|
||||
);
|
||||
|
||||
describe.each(rpcs)('%s', (section, { rpc }): void => {
|
||||
const methodsEntries = Object.entries(rpc);
|
||||
|
||||
describe.each(methodsEntries)('%s', (method, { params, type }): void => {
|
||||
// We cannot constuct V0, so just ignore
|
||||
if (section !== 'state' || method !== 'getMetadata') {
|
||||
it(`output ${type} is known`, (): void => {
|
||||
expect(() => inspectType(type)).not.toThrow();
|
||||
});
|
||||
}
|
||||
|
||||
if (params.length) {
|
||||
describe('params', (): void => {
|
||||
it.each(params)('$name: $type is known', ({ type }): void => {
|
||||
expect(() => inspectType(type)).not.toThrow();
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe('runtime definitions', (): void => {
|
||||
const runtimes = Object.entries(all).filter((v): v is [string, CheckDef] =>
|
||||
!!v[1].runtime &&
|
||||
Object.keys(v[1].runtime).length !== 0
|
||||
);
|
||||
|
||||
describe.each(runtimes)('%s', (_, { runtime }): void => {
|
||||
const versionsEntries = Object.entries(runtime);
|
||||
|
||||
describe.each(versionsEntries)('%s', (_, versions): void => {
|
||||
describe.each(versions)('version $version', ({ methods }): void => {
|
||||
const methodsEntries = Object.entries(methods);
|
||||
|
||||
describe.each(methodsEntries)('%s', (_, { params, type }): void => {
|
||||
it(`output ${type} is known`, (): void => {
|
||||
expect(() => inspectType(type)).not.toThrow();
|
||||
});
|
||||
|
||||
if (params.length) {
|
||||
describe('params', (): void => {
|
||||
it.each(params)('$name: $type is known', ({ type }): void => {
|
||||
expect(() => inspectType(type)).not.toThrow();
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
@@ -19,13 +19,13 @@ const netRpc: DefinitionsRpc = {
|
||||
aliasSection: 'net',
|
||||
description: 'Returns number of peers connected to node.',
|
||||
params: [],
|
||||
type: 'String'
|
||||
type: 'Text'
|
||||
},
|
||||
version: {
|
||||
aliasSection: 'net',
|
||||
description: 'Returns protocol version.',
|
||||
params: [],
|
||||
type: 'String'
|
||||
type: 'Text'
|
||||
}
|
||||
};
|
||||
const web3Rpc: DefinitionsRpc = {
|
||||
@@ -33,7 +33,7 @@ const web3Rpc: DefinitionsRpc = {
|
||||
aliasSection: 'web3',
|
||||
description: 'Returns current client version.',
|
||||
params: [],
|
||||
type: 'String'
|
||||
type: 'Text'
|
||||
},
|
||||
sha3: {
|
||||
aliasSection: 'web3',
|
||||
|
||||
@@ -180,7 +180,7 @@ export const runtime: DefinitionsCall = {
|
||||
current_all: {
|
||||
description: 'Return all the current data for a block in a single runtime call.',
|
||||
params: [],
|
||||
type: '(Option<BlockV2>, Option<Vec<ReceiptV0>>, Option<Vec<TransactionStatus>>)'
|
||||
type: '(Option<BlockV2>, Option<Vec<EthReceiptV3>>, Option<Vec<EthTransactionStatus>>)'
|
||||
},
|
||||
current_block: {
|
||||
description: 'Return the current block.',
|
||||
|
||||
@@ -707,35 +707,53 @@ export class PortableRegistry extends Struct implements ILookup {
|
||||
}
|
||||
|
||||
#extractComposite (lookupIndex: number, { params, path }: SiType, { fields }: SiTypeDefComposite): TypeDef {
|
||||
const pathFirst = path[0].toString();
|
||||
const pathLast = path[path.length - 1].toString();
|
||||
if (path.length) {
|
||||
const pathFirst = path[0].toString();
|
||||
const pathLast = path[path.length - 1].toString();
|
||||
|
||||
if (path.length === 1 && pathFirst === 'BTreeMap') {
|
||||
return withTypeString(this.registry, {
|
||||
info: TypeDefInfo.BTreeMap,
|
||||
sub: params.map(({ type }) => this.#createSiDef(type.unwrap()))
|
||||
});
|
||||
} else if (path.length === 1 && pathFirst === 'BTreeSet') {
|
||||
return withTypeString(this.registry, {
|
||||
info: TypeDefInfo.BTreeSet,
|
||||
sub: this.#createSiDef(params[0].type.unwrap())
|
||||
});
|
||||
} else if (['Range', 'RangeInclusive'].includes(pathFirst)) {
|
||||
return withTypeString(this.registry, {
|
||||
info: pathFirst === 'Range'
|
||||
? TypeDefInfo.Range
|
||||
: TypeDefInfo.RangeInclusive,
|
||||
sub: this.#createSiDef(params[0].type.unwrap()),
|
||||
type: pathFirst
|
||||
});
|
||||
} else if (['WrapperKeepOpaque', 'WrapperOpaque'].includes(pathLast)) {
|
||||
return withTypeString(this.registry, {
|
||||
info: pathLast === 'WrapperKeepOpaque'
|
||||
? TypeDefInfo.WrapperKeepOpaque
|
||||
: TypeDefInfo.WrapperOpaque,
|
||||
sub: this.#createSiDef(params[0].type.unwrap()),
|
||||
type: pathLast
|
||||
});
|
||||
if (path.length === 1 && pathFirst === 'BTreeMap') {
|
||||
if (params.length !== 2) {
|
||||
throw new Error(`BTreeMap requires 2 parameters, found ${params.length}`);
|
||||
}
|
||||
|
||||
return withTypeString(this.registry, {
|
||||
info: TypeDefInfo.BTreeMap,
|
||||
sub: params.map(({ type }) => this.#createSiDef(type.unwrap()))
|
||||
});
|
||||
} else if (path.length === 1 && pathFirst === 'BTreeSet') {
|
||||
if (params.length !== 1) {
|
||||
throw new Error(`BTreeSet requires 1 parameter, found ${params.length}`);
|
||||
}
|
||||
|
||||
return withTypeString(this.registry, {
|
||||
info: TypeDefInfo.BTreeSet,
|
||||
sub: this.#createSiDef(params[0].type.unwrap())
|
||||
});
|
||||
} else if (['Range', 'RangeInclusive'].includes(pathFirst)) {
|
||||
if (params.length !== 1) {
|
||||
throw new Error(`Range requires 1 parameter, found ${params.length}`);
|
||||
}
|
||||
|
||||
return withTypeString(this.registry, {
|
||||
info: pathFirst === 'Range'
|
||||
? TypeDefInfo.Range
|
||||
: TypeDefInfo.RangeInclusive,
|
||||
sub: this.#createSiDef(params[0].type.unwrap()),
|
||||
type: pathFirst
|
||||
});
|
||||
} else if (['WrapperKeepOpaque', 'WrapperOpaque'].includes(pathLast)) {
|
||||
if (params.length !== 1) {
|
||||
throw new Error(`WrapperOpaque requires 1 parameter, found ${params.length}`);
|
||||
}
|
||||
|
||||
return withTypeString(this.registry, {
|
||||
info: pathLast === 'WrapperKeepOpaque'
|
||||
? TypeDefInfo.WrapperKeepOpaque
|
||||
: TypeDefInfo.WrapperOpaque,
|
||||
sub: this.#createSiDef(params[0].type.unwrap()),
|
||||
type: pathLast
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
return PATHS_SET.some((p) => matchParts(p, path))
|
||||
@@ -916,33 +934,43 @@ export class PortableRegistry extends Struct implements ILookup {
|
||||
}
|
||||
|
||||
#extractVariant (lookupIndex: number, { params, path }: SiType, { variants }: SiTypeDefVariant): TypeDef {
|
||||
const specialVariant = path[0].toString();
|
||||
if (path.length) {
|
||||
const specialVariant = path[0].toString();
|
||||
|
||||
if (specialVariant === 'Option') {
|
||||
const sub = this.#createSiDef(params[0].type.unwrap());
|
||||
if (specialVariant === 'Option') {
|
||||
if (params.length !== 1) {
|
||||
throw new Error(`Option requires 1 parameter, found ${params.length}`);
|
||||
}
|
||||
|
||||
// NOTE This is opt-in (unhandled), not by default
|
||||
// if (sub.type === 'bool') {
|
||||
// return withTypeString(this.registry, {
|
||||
// info: TypeDefInfo.Plain,
|
||||
// type: 'OptionBool'
|
||||
// });
|
||||
// }
|
||||
// NOTE This is opt-in (unhandled), not by default
|
||||
// if (sub.type === 'bool') {
|
||||
// return withTypeString(this.registry, {
|
||||
// info: TypeDefInfo.Plain,
|
||||
// type: 'OptionBool'
|
||||
// });
|
||||
// }
|
||||
|
||||
return withTypeString(this.registry, {
|
||||
info: TypeDefInfo.Option,
|
||||
sub
|
||||
});
|
||||
} else if (specialVariant === 'Result') {
|
||||
return withTypeString(this.registry, {
|
||||
info: TypeDefInfo.Result,
|
||||
sub: params.map(({ type }, index) =>
|
||||
objectSpread({
|
||||
name: ['Ok', 'Error'][index]
|
||||
}, this.#createSiDef(type.unwrap()))
|
||||
)
|
||||
});
|
||||
} else if (variants.length === 0) {
|
||||
return withTypeString(this.registry, {
|
||||
info: TypeDefInfo.Option,
|
||||
sub: this.#createSiDef(params[0].type.unwrap())
|
||||
});
|
||||
} else if (specialVariant === 'Result') {
|
||||
if (params.length !== 2) {
|
||||
throw new Error(`Result requires 2 parameters, found ${params.length}`);
|
||||
}
|
||||
|
||||
return withTypeString(this.registry, {
|
||||
info: TypeDefInfo.Result,
|
||||
sub: params.map(({ type }, index) =>
|
||||
objectSpread({
|
||||
name: ['Ok', 'Error'][index]
|
||||
}, this.#createSiDef(type.unwrap()))
|
||||
)
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
if (variants.length === 0) {
|
||||
return {
|
||||
info: TypeDefInfo.Null,
|
||||
type: 'Null'
|
||||
|
||||
@@ -219,8 +219,8 @@ function extendPrefixedMap (registry: Registry, itemFn: CreateItemFn, storageFn:
|
||||
const { meta: { type }, method, section } = itemFn;
|
||||
|
||||
storageFn.iterKey = extendHeadMeta(registry, itemFn, storageFn, (...args: unknown[]): Raw => {
|
||||
if (args.length && (type.isPlain || (args.length > type.asMap.hashers.length))) {
|
||||
throw new Error(`Iteration ${stringCamelCase(section || 'unknown')}.${stringCamelCase(method || 'unknown')} needs arguments to be at least one less than the full arguments, found [${args.join(', ')}]`);
|
||||
if (args.length && (type.isPlain || (args.length >= type.asMap.hashers.length))) {
|
||||
throw new Error(`Iteration of ${stringCamelCase(section || 'unknown')}.${stringCamelCase(method || 'unknown')} needs arguments to be at least one less than the full arguments, found [${args.join(', ')}]`);
|
||||
}
|
||||
|
||||
if (args.length) {
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/types', path: 'auto', type: 'auto', version: '9.0.1' };
|
||||
export const packageInfo = { name: '@polkadot/types', path: 'auto', type: 'auto', version: '9.2.2' };
|
||||
|
||||
@@ -5,6 +5,7 @@ import type { Observable } from 'rxjs';
|
||||
import type { BitVec, Bool, bool, Bytes, F32, f32, F64, f64, I8, i8, I16, i16, I32, i32, I64, i64, I128, i128, I256, i256, Json, Null, OptionBool, Raw, Text, Type, U8, u8, U16, u16, U32, u32, U64, u64, U128, u128, U256, u256, USize, usize } from '@polkadot/types-codec';
|
||||
import type { RegistryTypes } from '@polkadot/types-codec/types';
|
||||
import type { BN } from '@polkadot/util';
|
||||
import type { HexString } from '@polkadot/util/types';
|
||||
import type { GenericExtrinsic, GenericExtrinsicEra, GenericExtrinsicPayload, GenericSignerPayload } from '../extrinsic';
|
||||
import type { ExtDef } from '../extrinsic/signedExtensions/types';
|
||||
import type { GenericCall } from '../generic';
|
||||
@@ -38,6 +39,7 @@ export interface InterfaceTypes {
|
||||
export type CodecHasher = (data: Uint8Array) => Uint8Array;
|
||||
|
||||
export interface ChainUpgradeVersion {
|
||||
apis: [HexString, number][];
|
||||
blockNumber: BN;
|
||||
specVersion: BN;
|
||||
}
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
{ "path": "./packages/types-create/tsconfig.build.json" },
|
||||
{ "path": "./packages/types-create/tsconfig.spec.json" },
|
||||
{ "path": "./packages/types-known/tsconfig.build.json" },
|
||||
{ "path": "./packages/types-known/tsconfig.spec.json" },
|
||||
{ "path": "./packages/types-support/tsconfig.build.json" }
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user