Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
aafd0a90c7 | ||
|
|
e64eb91ba9 | ||
|
|
02947a1c08 | ||
|
|
5a44d3b6e0 | ||
|
|
0bac3d4915 | ||
|
|
ab3f0253bd | ||
|
|
6f199db86a | ||
|
|
a95bca939d | ||
|
|
c5446d6fef | ||
|
|
b1ec8d160a | ||
|
|
b0acdbd96c | ||
|
|
af3d20ebe1 | ||
|
|
5897fb7e3b | ||
|
|
bdafcd9e97 | ||
|
|
095710349a | ||
|
|
586f02f831 | ||
|
|
5ca873b501 | ||
|
|
058a3ac640 | ||
|
|
5a4d11cb39 | ||
|
|
fb0796d408 | ||
|
|
e21b101ef7 | ||
|
|
79e828837f | ||
|
|
21aeb17a34 | ||
|
|
642414295c | ||
|
|
28c2e5524d | ||
|
|
5e1ccd177e | ||
|
|
c300e1b63d | ||
|
|
e2859e4761 | ||
|
|
4f06d6d2c5 | ||
|
|
67d617ce11 | ||
|
|
ab3a22a207 | ||
|
|
7b00fd3925 | ||
|
|
2b703062d0 | ||
|
|
0bca92cdb8 | ||
|
|
a437f98b31 | ||
|
|
8666d580df | ||
|
|
651bb35acf | ||
|
|
f78a00cd7f | ||
|
|
e55c9d248c | ||
|
|
986355b56f | ||
|
|
dd9123f790 | ||
|
|
d28d2b5f48 | ||
|
|
0b3cad94bc | ||
|
|
2b29dda2ad | ||
|
|
3d3af779c1 | ||
|
|
d04cc7b940 | ||
|
|
2ef84c5dcd | ||
|
|
36c24826ec | ||
|
|
184f702efd | ||
|
|
b392c19922 | ||
|
|
38de00d8d8 | ||
|
|
f9c58203a0 | ||
|
|
baaa27ba9e | ||
|
|
365fde895a | ||
|
|
b17a6d3920 | ||
|
|
0d8df6380e | ||
|
|
52cd797488 | ||
|
|
a71d401f1d | ||
|
|
61b68393e7 | ||
|
|
7d6933ed39 |
+295
-294
File diff suppressed because one or more lines are too long
+1
-1
@@ -12,4 +12,4 @@ logFilters:
|
||||
|
||||
nodeLinker: node-modules
|
||||
|
||||
yarnPath: .yarn/releases/yarn-4.1.1.cjs
|
||||
yarnPath: .yarn/releases/yarn-4.2.2.cjs
|
||||
|
||||
@@ -1,5 +1,74 @@
|
||||
# CHANGELOG
|
||||
|
||||
## 12.0.2 June 27, 2024
|
||||
|
||||
**Important Changes**:
|
||||
|
||||
- `withSignedTransaction`: This option has been added to `SignerOptions`. When using `signAndSend`, `signAsync`, and `dryRun` you may now enable or disable the use of the `signedTransaction` field by adding the `withSignedTransaction` option. When withSignedTransaction is not enabled but the signer adds a signedTransaction the api will error.
|
||||
- Always disabled by default.
|
||||
- This ensures no big breaking changes happen to the interface of `signPayload`.
|
||||
- `withSignedTransaction` has also been added to the `SignerPayload` type which allows for `payload.toPayload()` to include the option.
|
||||
- `signAsync`: now accepts the `signedTransaction` field as well. This means that if `withSignedTransaction` is enabled, and `signedTransaction` is present the api will adjust the current payload attached to the SubmittableExtrinsic, and add the signature. Then the user can call `.send()` as they please.
|
||||
- `dryRun`: All steps will be the same as signAsync with the exception that .send() has never needed to be called.
|
||||
|
||||
Contributed:
|
||||
|
||||
- Add LocationToAccountApi::convert_location runtime API (Thanks to https://github.com/bkontur)
|
||||
|
||||
|
||||
## 12.0.1 June 24, 2024
|
||||
|
||||
**Important Changes**:
|
||||
|
||||
- Addition of an optional `signedTransaction` field to the [`SignerResult`](https://github.com/polkadot-js/api/blob/586f02f8310529f16e4047fd94e31bc6c6573366/packages/types/src/types/extrinsic.ts#L138-L158) response for injected signers. This only applies to the `signPayload` method exposed in the [`Signer`](https://github.com/polkadot-js/api/blob/586f02f8310529f16e4047fd94e31bc6c6573366/packages/types/src/types/extrinsic.ts#L160-L175) interface for polkadot-js. As the name suggests the field expects a signed transaction (extrinsic) when inputted. When its present, the api will not add the signature to the payload, but instead broadcast the inputted signed transaction. This means the signer may modify the payload it's given. The only part of the payload that may not be modified is the call data. This is verified on the api, and will throw an error if it does not match the initial payloads call data.
|
||||
- This is very useful for signers that want to adjust the `mode` and `metadataHash` field for the `CheckMetadataHash` signed extension.
|
||||
- Note that this is not your traditional breaking change since it more-so acts as an addition, but since this is a high magnitude change it is going to be considered a MAJOR bump.
|
||||
- For more info please review the following PR [(#5914)](https://github.com/polkadot-js/api/pull/5914)
|
||||
|
||||
Changes:
|
||||
|
||||
- Replace `system_accountNextIndex` with runtime api call `accountNonceApi` for `api.derive.tx.signingInfo`
|
||||
- Sanitize `eras` for `api.derive.staking._stakerRewards`
|
||||
|
||||
|
||||
## 11.3.1 June 17, 2024
|
||||
|
||||
Changes:
|
||||
|
||||
- Fix period assumption on signingInfo (derive)
|
||||
- Bump dev to 0.79.3
|
||||
- Update {Polkadot, Kusama, Westend} types-known
|
||||
- Bump Substrate metadata to latest
|
||||
- NOTE: Moving forward when bumping the metadata for {Polkadot, Kusama, Substrate} the version will
|
||||
always be a minor bump since it can add, modify, remove augmented types.
|
||||
|
||||
|
||||
## 11.2.1 May 28, 2024
|
||||
|
||||
Contributed:
|
||||
|
||||
- fix: Re-subscribe to chain updates on reconnection if not a clone (Thanks to https://github.com/F-OBrien)
|
||||
|
||||
Changes:
|
||||
|
||||
- Add support for AuraUnincludedSegmentApi (Thanks to https://github.com/bee344)
|
||||
- Add support for ParachainHost v11 Api
|
||||
- Update Kusama and Westend block upgrades
|
||||
- Update Substrate metadata to latest
|
||||
|
||||
|
||||
## 11.1.1 May 21, 2024
|
||||
|
||||
Changes
|
||||
|
||||
- Dedupe nextElected accountIds in `api.derive.staking.nextElected`
|
||||
- Bump @polkadot/dev to 0.79.1 w/ topo sort
|
||||
- Bump yarn to 4.2.2
|
||||
- fix: updated extrinsics' assetId `toHuman` (Thanks to https://github.com/bee344)
|
||||
- fix `api.derive.accounts.{info && identity}`
|
||||
- feat: Add support for `CheckMetadataHash` signedExtension (Thanks to https://github.com/bee344)
|
||||
|
||||
|
||||
## 11.0.3 May 8, 2024
|
||||
|
||||
Changes
|
||||
|
||||
+4
-3
@@ -1,6 +1,6 @@
|
||||
3512 Jaco Bump deps (#5785)
|
||||
83 Amaury Martiny StatementKind: Regular and Saft (#2303)
|
||||
43 Tarik Gul 11.0.3 (#5873)
|
||||
67 Tarik Gul 12.0.2 (#5924)
|
||||
37 Keith Ingram Update contract types and rpc (#4541)
|
||||
35 Stefanie Doll Updated child storage parameters (#1709)
|
||||
20 Luke Schoen fix: Fixes TypeError: Cannot read property 'vesting' of undefined (#1970)
|
||||
@@ -10,6 +10,8 @@
|
||||
11 Ian He HttpProvider support clone() (#3949)
|
||||
10 Axel Chalon Make Enum/Tuple constructor use value directly if instance (#1954)
|
||||
6 Andreea Eftene Update check for contract instantiation (#5699)
|
||||
5 Alberto Nicolas Penayo added use of accountNonceApi (#5915)
|
||||
5 Branislav Kontur Adjusted `LocationToAccountApi` (#5919)
|
||||
5 Chevdor Fix metadata package link (#3458)
|
||||
5 Jake Naviasky Fixing approvalFlagsToBools. (#1250)
|
||||
5 Julien Eluard General WsProvider extensibility improvements (#5467)
|
||||
@@ -24,7 +26,6 @@
|
||||
3 André Silva add support for ValidationCodeHash (#3640)
|
||||
3 Antoine Estienne Adapted to display moonbeam author (#3108)
|
||||
3 Arjan Zijderveld Added `Emergency` to `ElectionPhase` (#3707)
|
||||
3 Branislav Kontur Added FungiblesApi version 2 (#5687)
|
||||
3 Ewa Kowalska Handle no council for bounties proposals (#3062)
|
||||
3 hamidra add support for n key entries for NMaps (#3886)
|
||||
3 Hamza Tokuchi more typos (#2532)
|
||||
@@ -33,7 +34,6 @@
|
||||
3 Miguel Hervas Adding RT4 Types (#3007)
|
||||
3 Shawn Tabrizi Add `isReadyOrError` when connecting to API (#2577)
|
||||
3 YJ feat: Vote interface as U8a (#1061)
|
||||
2 Alberto Nicolas Penayo updated remaining assetId for ChargeAssetTxPayment (#5763)
|
||||
2 Alexander Krupenkin Add [u8; 33] type width for U8aFixed type (#2391)
|
||||
2 Branan Riley Add proxy type for Centrifuge (#3940)
|
||||
2 Caio Add `Range` and `RangeInclusive` types (#3791)
|
||||
@@ -75,6 +75,7 @@
|
||||
1 Ermal Kaleci fix cache key (rpc-provider) (#5745)
|
||||
1 flex Change BeefySignedCommitment signatures type to EcdsaSignature (#4204)
|
||||
1 Florian Franzen metadataMd: use endpoint for rpc and runtime details too (#5628)
|
||||
1 Francis O'Brien fix: Re-subscribe to chain updates on reconnection if not a clone (#5794)
|
||||
1 Furqan A fix: fixed 404 to the docs from the api readme (#3985)
|
||||
1 Gérard Dethier Fix LRUCache memory leak. (#4520)
|
||||
1 Gerben van de Wiel Adding some extra notes on changes in the specname (#2329)
|
||||
|
||||
+5
-5
@@ -6,7 +6,7 @@
|
||||
},
|
||||
"homepage": "https://github.com/polkadot-js/api#readme",
|
||||
"license": "Apache-2.0",
|
||||
"packageManager": "yarn@4.1.1",
|
||||
"packageManager": "yarn@4.2.2",
|
||||
"private": true,
|
||||
"repository": {
|
||||
"type": "git",
|
||||
@@ -14,10 +14,10 @@
|
||||
},
|
||||
"sideEffects": false,
|
||||
"type": "module",
|
||||
"version": "11.0.3",
|
||||
"version": "12.0.2",
|
||||
"versions": {
|
||||
"git": "11.0.3",
|
||||
"npm": "11.0.3"
|
||||
"git": "12.0.2",
|
||||
"npm": "12.0.2"
|
||||
},
|
||||
"workspaces": [
|
||||
"packages/*"
|
||||
@@ -40,7 +40,7 @@
|
||||
"test:one": "polkadot-dev-run-test --env node"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/dev": "^0.78.9",
|
||||
"@polkadot/dev": "^0.79.3",
|
||||
"@polkadot/typegen": "workspace:packages/typegen",
|
||||
"@types/node": "^20.11.6"
|
||||
},
|
||||
|
||||
@@ -18,14 +18,14 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "11.0.3",
|
||||
"version": "12.0.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/api-base": "11.0.3",
|
||||
"@polkadot/rpc-augment": "11.0.3",
|
||||
"@polkadot/types": "11.0.3",
|
||||
"@polkadot/types-augment": "11.0.3",
|
||||
"@polkadot/types-codec": "11.0.3",
|
||||
"@polkadot/api-base": "12.0.2",
|
||||
"@polkadot/rpc-augment": "12.0.2",
|
||||
"@polkadot/types": "12.0.2",
|
||||
"@polkadot/types-augment": "12.0.2",
|
||||
"@polkadot/types-codec": "12.0.2",
|
||||
"@polkadot/util": "^12.6.2",
|
||||
"tslib": "^2.6.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: '11.0.3' };
|
||||
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '12.0.2' };
|
||||
|
||||
@@ -399,6 +399,12 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
* The maximum size in bytes submitted evidence is allowed to be.
|
||||
**/
|
||||
evidenceSize: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Represents the highest possible rank in this pallet.
|
||||
*
|
||||
* Increasing this value is supported, but decreasing it may lead to a broken state.
|
||||
**/
|
||||
maxRank: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Generic const
|
||||
**/
|
||||
|
||||
@@ -812,6 +812,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* contract code execution which is not supported.
|
||||
**/
|
||||
ReentranceDenied: AugmentedError<ApiType>;
|
||||
/**
|
||||
* A contract attempted to invoke a state modifying API while being in read-only mode.
|
||||
**/
|
||||
StateChangeDenied: AugmentedError<ApiType>;
|
||||
/**
|
||||
* More storage was created than allowed by the storage deposit limit.
|
||||
**/
|
||||
@@ -1914,6 +1918,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* pool at a time.
|
||||
**/
|
||||
AccountBelongsToOtherPool: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The pool or member delegation has already migrated to delegate stake.
|
||||
**/
|
||||
AlreadyMigrated: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Bonding extra is restricted to the exact pending reward amount.
|
||||
**/
|
||||
@@ -2005,10 +2013,18 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* No imbalance in the ED deposit for the pool.
|
||||
**/
|
||||
NothingToAdjust: AugmentedError<ApiType>;
|
||||
/**
|
||||
* No slash pending that can be applied to the member.
|
||||
**/
|
||||
NothingToSlash: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Either a) the caller cannot make a valid kick or b) the pool is not destroying.
|
||||
**/
|
||||
NotKickerOrDestroying: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The pool or member delegation has not migrated yet to delegate stake.
|
||||
**/
|
||||
NotMigrated: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The caller does not have nominating permissions for the pool.
|
||||
**/
|
||||
@@ -2017,6 +2033,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* The pool is not open to join
|
||||
**/
|
||||
NotOpen: AugmentedError<ApiType>;
|
||||
/**
|
||||
* This call is not allowed in the current state of the pallet.
|
||||
**/
|
||||
NotSupported: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The transaction could not be executed due to overflow risk for the pool.
|
||||
**/
|
||||
@@ -2873,6 +2893,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* staking settings to keep things safe for the runtime.
|
||||
**/
|
||||
TooManyValidators: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Operation not allowed for virtual stakers.
|
||||
**/
|
||||
VirtualStakerNotAllowed: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Generic error
|
||||
**/
|
||||
|
||||
@@ -219,6 +219,10 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* Some asset class was created.
|
||||
**/
|
||||
Created: AugmentedEvent<ApiType, [assetId: u32, creator: AccountId32, owner: AccountId32], { assetId: u32, creator: AccountId32, owner: AccountId32 }>;
|
||||
/**
|
||||
* Some assets were deposited (e.g. for transaction fees).
|
||||
**/
|
||||
Deposited: AugmentedEvent<ApiType, [assetId: u32, who: AccountId32, amount: u128], { assetId: u32, who: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* An asset class was destroyed.
|
||||
**/
|
||||
@@ -272,6 +276,10 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* the approved `delegate`.
|
||||
**/
|
||||
TransferredApproved: AugmentedEvent<ApiType, [assetId: u32, owner: AccountId32, delegate: AccountId32, destination: AccountId32, amount: u128], { assetId: u32, owner: AccountId32, delegate: AccountId32, destination: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* Some assets were withdrawn from the account (e.g. for transaction fees).
|
||||
**/
|
||||
Withdrawn: AugmentedEvent<ApiType, [assetId: u32, who: AccountId32, amount: u128], { assetId: u32, who: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
@@ -435,10 +443,6 @@ declare module '@polkadot/api-base/types/events' {
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
broker: {
|
||||
/**
|
||||
* Some historical Instantaneous Core Pool payment record has been dropped.
|
||||
**/
|
||||
AllowedRenewalDropped: AugmentedEvent<ApiType, [when: u32, core: u16], { when: u32, core: u16 }>;
|
||||
/**
|
||||
* A Region has been assigned to a particular task.
|
||||
**/
|
||||
@@ -500,6 +504,10 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* A Region has been added to the Instantaneous Coretime Pool.
|
||||
**/
|
||||
Pooled: AugmentedEvent<ApiType, [regionId: PalletBrokerRegionId, duration: u32], { regionId: PalletBrokerRegionId, duration: u32 }>;
|
||||
/**
|
||||
* Some historical Instantaneous Core Pool payment record has been dropped.
|
||||
**/
|
||||
PotentialRenewalDropped: AugmentedEvent<ApiType, [when: u32, core: u16], { when: u32, core: u16 }>;
|
||||
/**
|
||||
* A Region of Bulk Coretime has been purchased.
|
||||
**/
|
||||
@@ -539,7 +547,7 @@ declare module '@polkadot/api-base/types/events' {
|
||||
/**
|
||||
* A new sale has been initialized.
|
||||
**/
|
||||
SaleInitialized: AugmentedEvent<ApiType, [saleStart: u32, leadinLength: u32, startPrice: u128, regularPrice: u128, regionBegin: u32, regionEnd: u32, idealCoresSold: u16, coresOffered: u16], { saleStart: u32, leadinLength: u32, startPrice: u128, regularPrice: u128, regionBegin: u32, regionEnd: u32, idealCoresSold: u16, coresOffered: u16 }>;
|
||||
SaleInitialized: AugmentedEvent<ApiType, [saleStart: u32, leadinLength: u32, startPrice: u128, endPrice: u128, regionBegin: u32, regionEnd: u32, idealCoresSold: u16, coresOffered: u16], { saleStart: u32, leadinLength: u32, startPrice: u128, endPrice: u128, regionBegin: u32, regionEnd: u32, idealCoresSold: u16, coresOffered: u16 }>;
|
||||
/**
|
||||
* The sale rotation has been started and a new sale is imminent.
|
||||
**/
|
||||
@@ -1558,6 +1566,10 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* Some asset class was created.
|
||||
**/
|
||||
Created: AugmentedEvent<ApiType, [assetId: u32, creator: AccountId32, owner: AccountId32], { assetId: u32, creator: AccountId32, owner: AccountId32 }>;
|
||||
/**
|
||||
* Some assets were deposited (e.g. for transaction fees).
|
||||
**/
|
||||
Deposited: AugmentedEvent<ApiType, [assetId: u32, who: AccountId32, amount: u128], { assetId: u32, who: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* An asset class was destroyed.
|
||||
**/
|
||||
@@ -1611,6 +1623,10 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* the approved `delegate`.
|
||||
**/
|
||||
TransferredApproved: AugmentedEvent<ApiType, [assetId: u32, owner: AccountId32, delegate: AccountId32, destination: AccountId32, amount: u128], { assetId: u32, owner: AccountId32, delegate: AccountId32, destination: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* Some assets were withdrawn from the account (e.g. for transaction fees).
|
||||
**/
|
||||
Withdrawn: AugmentedEvent<ApiType, [assetId: u32, who: AccountId32, amount: u128], { assetId: u32, who: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
|
||||
@@ -10,7 +10,7 @@ import type { Data } from '@polkadot/types';
|
||||
import type { BTreeSet, Bytes, Null, Option, U8aFixed, Vec, 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 { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KitchensinkRuntimeRuntimeParametersKey, KitchensinkRuntimeRuntimeParametersValue, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceMemberRole, PalletAssetConversionPoolInfo, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesIdAmountRuntimeFreezeReason, PalletBalancesIdAmountRuntimeHoldReason, PalletBalancesReserveData, PalletBountiesBounty, PalletBrokerAllowedRenewalId, PalletBrokerAllowedRenewalRecord, PalletBrokerConfigRecord, PalletBrokerContributionRecord, PalletBrokerInstaPoolHistoryRecord, PalletBrokerLeaseRecordItem, PalletBrokerPoolIoRecord, PalletBrokerRegionId, PalletBrokerRegionRecord, PalletBrokerSaleInfoRecord, PalletBrokerScheduleItem, PalletBrokerStatusRecord, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageContractInfo, PalletContractsStorageDeletionQueueManager, PalletContractsWasmCodeInfo, PalletConvictionVotingVoteVoting, PalletCoreFellowshipMemberStatus, PalletCoreFellowshipParamsType, PalletCoreFellowshipWish, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityAuthorityProperties, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMigrationsMigrationCursor, PalletMixnetBoundedMixnode, PalletMultisigMultisig, PalletNftFractionalizationDetails, PalletNftsAttributeDeposit, PalletNftsAttributeNamespace, PalletNftsCollectionConfig, PalletNftsCollectionDetails, PalletNftsCollectionMetadata, PalletNftsItemConfig, PalletNftsItemDetails, PalletNftsItemMetadata, PalletNftsPendingSwap, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageOldRequestStatus, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSalaryClaimantStatus, PalletSalaryStatusType, PalletSchedulerRetryConfig, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyCandidacy, PalletSocietyGroupParams, PalletSocietyIntakeRecord, PalletSocietyMemberRecord, PalletSocietyPayoutRecord, PalletSocietyTally, PalletSocietyVote, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTransactionStorageTransactionInfo, PalletTreasuryProposal, PalletTreasurySpendStatus, PalletUniquesCollectionDetails, PalletUniquesCollectionMetadata, PalletUniquesItemDetails, PalletUniquesItemMetadata, PalletVestingReleases, PalletVestingVestingInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyMmrBeefyAuthoritySet, SpConsensusGrandpaAppPublic, SpCoreCryptoKeyTypeId, SpMixnetAppPublic, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingExposure, SpStakingExposurePage, SpStakingOffenceOffenceDetails, SpStakingPagedExposureMetadata } from '@polkadot/types/lookup';
|
||||
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KitchensinkRuntimeRuntimeParametersKey, KitchensinkRuntimeRuntimeParametersValue, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceMemberRole, PalletAssetConversionPoolInfo, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesIdAmountRuntimeFreezeReason, PalletBalancesIdAmountRuntimeHoldReason, PalletBalancesReserveData, PalletBountiesBounty, PalletBrokerConfigRecord, PalletBrokerContributionRecord, PalletBrokerInstaPoolHistoryRecord, PalletBrokerLeaseRecordItem, PalletBrokerPoolIoRecord, PalletBrokerPotentialRenewalId, PalletBrokerPotentialRenewalRecord, PalletBrokerRegionId, PalletBrokerRegionRecord, PalletBrokerSaleInfoRecord, PalletBrokerScheduleItem, PalletBrokerStatusRecord, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageContractInfo, PalletContractsStorageDeletionQueueManager, PalletContractsWasmCodeInfo, PalletConvictionVotingVoteVoting, PalletCoreFellowshipMemberStatus, PalletCoreFellowshipParamsType, PalletCoreFellowshipWish, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityAuthorityProperties, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMigrationsMigrationCursor, PalletMixnetBoundedMixnode, PalletMultisigMultisig, PalletNftFractionalizationDetails, PalletNftsAttributeDeposit, PalletNftsAttributeNamespace, PalletNftsCollectionConfig, PalletNftsCollectionDetails, PalletNftsCollectionMetadata, PalletNftsItemConfig, PalletNftsItemDetails, PalletNftsItemMetadata, PalletNftsPendingSwap, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageOldRequestStatus, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSalaryClaimantStatus, PalletSalaryStatusType, PalletSchedulerRetryConfig, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyCandidacy, PalletSocietyGroupParams, PalletSocietyIntakeRecord, PalletSocietyMemberRecord, PalletSocietyPayoutRecord, PalletSocietyTally, PalletSocietyVote, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTransactionStorageTransactionInfo, PalletTreasuryProposal, PalletTreasurySpendStatus, PalletUniquesCollectionDetails, PalletUniquesCollectionMetadata, PalletUniquesItemDetails, PalletUniquesItemMetadata, PalletVestingReleases, PalletVestingVestingInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyMmrBeefyAuthoritySet, SpConsensusGrandpaAppPublic, SpCoreCryptoKeyTypeId, SpMixnetAppPublic, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingExposure, SpStakingExposurePage, SpStakingOffenceOffenceDetails, SpStakingPagedExposureMetadata } from '@polkadot/types/lookup';
|
||||
import type { Observable } from '@polkadot/types/types';
|
||||
|
||||
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
||||
@@ -396,10 +396,6 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
broker: {
|
||||
/**
|
||||
* Records of allowed renewals.
|
||||
**/
|
||||
allowedRenewals: AugmentedQuery<ApiType, (arg: PalletBrokerAllowedRenewalId | { core?: any; when?: any } | string | Uint8Array) => Observable<Option<PalletBrokerAllowedRenewalRecord>>, [PalletBrokerAllowedRenewalId]> & QueryableStorageEntry<ApiType, [PalletBrokerAllowedRenewalId]>;
|
||||
/**
|
||||
* The current configuration of this pallet.
|
||||
**/
|
||||
@@ -424,6 +420,12 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* The Polkadot Core legacy leases.
|
||||
**/
|
||||
leases: AugmentedQuery<ApiType, () => Observable<Vec<PalletBrokerLeaseRecordItem>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Records of potential renewals.
|
||||
*
|
||||
* Renewals will only actually be allowed if `CompletionStatus` is actually `Complete`.
|
||||
**/
|
||||
potentialRenewals: AugmentedQuery<ApiType, (arg: PalletBrokerPotentialRenewalId | { core?: any; when?: any } | string | Uint8Array) => Observable<Option<PalletBrokerPotentialRenewalRecord>>, [PalletBrokerPotentialRenewalId]> & QueryableStorageEntry<ApiType, [PalletBrokerPotentialRenewalId]>;
|
||||
/**
|
||||
* The current (unassigned or provisionally assigend) Regions.
|
||||
**/
|
||||
@@ -1413,7 +1415,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
/**
|
||||
* Stored parameters.
|
||||
**/
|
||||
parameters: AugmentedQuery<ApiType, (arg: KitchensinkRuntimeRuntimeParametersKey | { Storage: any } | { Contracts: any } | string | Uint8Array) => Observable<Option<KitchensinkRuntimeRuntimeParametersValue>>, [KitchensinkRuntimeRuntimeParametersKey]> & QueryableStorageEntry<ApiType, [KitchensinkRuntimeRuntimeParametersKey]>;
|
||||
parameters: AugmentedQuery<ApiType, (arg: KitchensinkRuntimeRuntimeParametersKey | { Storage: any } | string | Uint8Array) => Observable<Option<KitchensinkRuntimeRuntimeParametersValue>>, [KitchensinkRuntimeRuntimeParametersKey]> & QueryableStorageEntry<ApiType, [KitchensinkRuntimeRuntimeParametersKey]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
@@ -1888,6 +1890,16 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* This is basically in sync with the call to [`pallet_session::SessionManager::new_session`].
|
||||
**/
|
||||
currentPlannedSession: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Indices of validators that have offended in the active era. The offenders are disabled for a
|
||||
* whole era. For this reason they are kept here - only staking pallet knows about eras. The
|
||||
* implementor of [`DisablingStrategy`] defines if a validator should be disabled which
|
||||
* implicitly means that the implementor also controls the max number of disabled validators.
|
||||
*
|
||||
* The vec is always kept sorted so that we can find whether a given validator has previously
|
||||
* offended using binary search.
|
||||
**/
|
||||
disabledValidators: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Rewards for the last [`Config::HistoryDepth`] eras.
|
||||
* If reward hasn't been set or has been removed then 0 reward is returned.
|
||||
@@ -2056,18 +2068,6 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* All slashing events on nominators, mapped by era to the highest slash value of the era.
|
||||
**/
|
||||
nominatorSlashInEra: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<u128>>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
|
||||
/**
|
||||
* Indices of validators that have offended in the active era and whether they are currently
|
||||
* disabled.
|
||||
*
|
||||
* This value should be a superset of disabled validators since not all offences lead to the
|
||||
* validator being disabled (if there was no slash). This is needed to track the percentage of
|
||||
* validators that have offended in the current era, ensuring a new era is forced if
|
||||
* `OffendingValidatorsThreshold` is reached. The vec is always kept sorted so that we can find
|
||||
* whether a given validator has previously offended using binary search. It gets cleared when
|
||||
* the era ends.
|
||||
**/
|
||||
offendingValidators: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, bool]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Where the reward payment should be made. Keyed by stash.
|
||||
*
|
||||
|
||||
@@ -10,7 +10,7 @@ import type { Data } from '@polkadot/types';
|
||||
import type { Bytes, Compact, Option, U8aFixed, Vec, 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 { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, FrameSupportTokensFungibleUnionOfNativeOrWithId, KitchensinkRuntimeOriginCaller, KitchensinkRuntimeProxyType, KitchensinkRuntimeRuntimeParameters, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceDisbandWitness, PalletAllianceUnscrupulousItem, PalletBalancesAdjustmentDirection, PalletBrokerConfigRecord, PalletBrokerCoreMask, PalletBrokerFinality, PalletBrokerRegionId, PalletBrokerScheduleItem, PalletContractsWasmDeterminism, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletCoreFellowshipParamsType, PalletCoreFellowshipWish, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityJudgement, PalletIdentityLegacyIdentityInfo, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMigrationsHistoricCleanupSelector, PalletMigrationsMigrationCursor, PalletMixnetRegistration, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsCancelAttributesApprovalWitness, PalletNftsCollectionConfig, PalletNftsDestroyWitness, PalletNftsItemConfig, PalletNftsItemTip, PalletNftsMintSettings, PalletNftsMintWitness, PalletNftsPreSignedAttributes, PalletNftsPreSignedMint, PalletNftsPriceWithDirection, PalletNominationPoolsBondExtra, PalletNominationPoolsClaimPermission, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpPerbill, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingUnlockChunk, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBeefyEquivocationProof, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpMixnetAppSignature, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
||||
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, FrameSupportTokensFungibleUnionOfNativeOrWithId, KitchensinkRuntimeOriginCaller, KitchensinkRuntimeProxyType, KitchensinkRuntimeRuntimeParameters, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceDisbandWitness, PalletAllianceUnscrupulousItem, PalletBalancesAdjustmentDirection, PalletBrokerConfigRecord, PalletBrokerCoreMask, PalletBrokerFinality, PalletBrokerRegionId, PalletBrokerScheduleItem, PalletContractsWasmDeterminism, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletCoreFellowshipParamsType, PalletCoreFellowshipWish, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityJudgement, PalletIdentityLegacyIdentityInfo, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMigrationsHistoricCleanupSelector, PalletMigrationsMigrationCursor, PalletMixnetRegistration, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsCancelAttributesApprovalWitness, PalletNftsCollectionConfig, PalletNftsDestroyWitness, PalletNftsItemConfig, PalletNftsItemTip, PalletNftsMintSettings, PalletNftsMintWitness, PalletNftsPreSignedAttributes, PalletNftsPreSignedMint, PalletNftsPriceWithDirection, PalletNominationPoolsBondExtra, PalletNominationPoolsClaimPermission, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpPerbill, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingUnlockChunk, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBeefyDoubleVotingProof, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpMixnetAppSignature, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
||||
|
||||
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
|
||||
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
|
||||
@@ -893,6 +893,16 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||
};
|
||||
balances: {
|
||||
/**
|
||||
* Burn the specified liquid free balance from the origin account.
|
||||
*
|
||||
* If the origin's account ends up below the existential deposit as a result
|
||||
* of the burn and `keep_alive` is false, the account will be reaped.
|
||||
*
|
||||
* Unlike sending funds to a _burn_ address, which merely makes the funds inaccessible,
|
||||
* this `burn` operation will reduce total issuance by the amount _burned_.
|
||||
**/
|
||||
burn: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, keepAlive: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, bool]>;
|
||||
/**
|
||||
* Adjust the total issuance in a saturating way.
|
||||
*
|
||||
@@ -978,7 +988,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* against the extracted offender. If both are valid, the offence
|
||||
* will be reported.
|
||||
**/
|
||||
reportEquivocation: AugmentedSubmittable<(equivocationProof: SpConsensusBeefyEquivocationProof | { first?: any; second?: any } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusBeefyEquivocationProof, SpSessionMembershipProof]>;
|
||||
reportEquivocation: AugmentedSubmittable<(equivocationProof: SpConsensusBeefyDoubleVotingProof | { first?: any; second?: any } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusBeefyDoubleVotingProof, SpSessionMembershipProof]>;
|
||||
/**
|
||||
* Report voter equivocation/misbehavior. This method will verify the
|
||||
* equivocation proof and validate the given key ownership proof
|
||||
@@ -990,7 +1000,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* if the block author is defined it will be defined as the equivocation
|
||||
* reporter.
|
||||
**/
|
||||
reportEquivocationUnsigned: AugmentedSubmittable<(equivocationProof: SpConsensusBeefyEquivocationProof | { first?: any; second?: any } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusBeefyEquivocationProof, SpSessionMembershipProof]>;
|
||||
reportEquivocationUnsigned: AugmentedSubmittable<(equivocationProof: SpConsensusBeefyDoubleVotingProof | { first?: any; second?: any } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusBeefyDoubleVotingProof, SpSessionMembershipProof]>;
|
||||
/**
|
||||
* Reset BEEFY consensus by setting a new BEEFY genesis at `delay_in_blocks` blocks in the
|
||||
* future.
|
||||
@@ -1265,14 +1275,14 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* Begin the Bulk Coretime sales rotation.
|
||||
*
|
||||
* - `origin`: Must be Root or pass `AdminOrigin`.
|
||||
* - `initial_price`: The price of Bulk Coretime in the first sale.
|
||||
* - `end_price`: The price after the leadin period of Bulk Coretime in the first sale.
|
||||
* - `extra_cores`: Number of extra cores that should be requested on top of the cores
|
||||
* required for `Reservations` and `Leases`.
|
||||
*
|
||||
* This will call [`Self::request_core_count`] internally to set the correct core count on
|
||||
* the relay chain.
|
||||
**/
|
||||
startSales: AugmentedSubmittable<(initialPrice: u128 | AnyNumber | Uint8Array, extraCores: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u128, u16]>;
|
||||
startSales: AugmentedSubmittable<(endPrice: u128 | AnyNumber | Uint8Array, extraCores: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u128, u16]>;
|
||||
swapLeases: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array, other: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
|
||||
/**
|
||||
* Transfer a Bulk Coretime Region to a new owner.
|
||||
@@ -3820,6 +3830,16 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* pool by either topping up the deficit or claiming the excess.
|
||||
**/
|
||||
adjustPoolDeposit: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
||||
/**
|
||||
* Apply a pending slash on a member.
|
||||
*
|
||||
* Fails unless [`crate::pallet::Config::StakeAdapter`] is of strategy type:
|
||||
* [`adapter::StakeStrategyType::Delegate`].
|
||||
*
|
||||
* This call can be dispatched permissionlessly (i.e. by any account). If the member has
|
||||
* slash to be applied, caller may be rewarded with the part of the slash.
|
||||
**/
|
||||
applySlash: AugmentedSubmittable<(memberAccount: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
||||
/**
|
||||
* Bond `extra` more funds from `origin` into the pool to which they already belong.
|
||||
*
|
||||
@@ -3929,6 +3949,30 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* * Only a pool with [`PoolState::Open`] can be joined
|
||||
**/
|
||||
join: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, u32]>;
|
||||
/**
|
||||
* Migrates delegated funds from the pool account to the `member_account`.
|
||||
*
|
||||
* Fails unless [`crate::pallet::Config::StakeAdapter`] is of strategy type:
|
||||
* [`adapter::StakeStrategyType::Delegate`].
|
||||
*
|
||||
* This is a permission-less call and refunds any fee if claim is successful.
|
||||
*
|
||||
* If the pool has migrated to delegation based staking, the staked tokens of pool members
|
||||
* can be moved and held in their own account. See [`adapter::DelegateStake`]
|
||||
**/
|
||||
migrateDelegation: AugmentedSubmittable<(memberAccount: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
||||
/**
|
||||
* Migrate pool from [`adapter::StakeStrategyType::Transfer`] to
|
||||
* [`adapter::StakeStrategyType::Delegate`].
|
||||
*
|
||||
* Fails unless [`crate::pallet::Config::StakeAdapter`] is of strategy type:
|
||||
* [`adapter::StakeStrategyType::Delegate`].
|
||||
*
|
||||
* This call can be dispatched permissionlessly, and refunds any fee if successful.
|
||||
*
|
||||
* If the pool has already migrated to delegation based staking, this call will fail.
|
||||
**/
|
||||
migratePoolToDelegateStake: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
||||
/**
|
||||
* Nominate on behalf of the pool.
|
||||
*
|
||||
@@ -4090,7 +4134,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
*
|
||||
* # Note
|
||||
*
|
||||
* If the target is the depositor, the pool will be destroyed.
|
||||
* - If the target is the depositor, the pool will be destroyed.
|
||||
* - If the pool has any pending slash, we also try to slash the member before letting them
|
||||
* withdraw. This calculation adds some weight overhead and is only defensive. In reality,
|
||||
* pool slashes must have been already applied via permissionless [`Call::apply_slash`].
|
||||
**/
|
||||
withdrawUnbonded: AugmentedSubmittable<(memberAccount: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, u32]>;
|
||||
/**
|
||||
@@ -4105,7 +4152,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* The dispatch origin of this call must be `AdminOrigin` for the given `key`. Values be
|
||||
* deleted by setting them to `None`.
|
||||
**/
|
||||
setParameter: AugmentedSubmittable<(keyValue: KitchensinkRuntimeRuntimeParameters | { Storage: any } | { Contracts: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [KitchensinkRuntimeRuntimeParameters]>;
|
||||
setParameter: AugmentedSubmittable<(keyValue: KitchensinkRuntimeRuntimeParameters | { Storage: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [KitchensinkRuntimeRuntimeParameters]>;
|
||||
/**
|
||||
* Generic tx
|
||||
**/
|
||||
@@ -5737,7 +5784,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* - Three extra DB entries.
|
||||
*
|
||||
* NOTE: Two of the storage writes (`Self::bonded`, `Self::payee`) are _never_ cleaned
|
||||
* unless the `origin` falls below _existential deposit_ and gets removed as dust.
|
||||
* unless the `origin` falls below _existential deposit_ (or equal to 0) and gets removed
|
||||
* as dust.
|
||||
**/
|
||||
bond: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, payee: PalletStakingRewardDestination | { Staked: any } | { Stash: any } | { Controller: any } | { Account: any } | { None: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, PalletStakingRewardDestination]>;
|
||||
/**
|
||||
@@ -5958,6 +6006,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
*
|
||||
* 1. the `total_balance` of the stash is below existential deposit.
|
||||
* 2. or, the `ledger.total` of the stash is below existential deposit.
|
||||
* 3. or, existential deposit is zero and either `total_balance` or `ledger.total` is zero.
|
||||
*
|
||||
* The former can happen in cases like a slash; the latter when a fully unbonded account
|
||||
* is still receiving staking rewards in `RewardDestination::Staked`.
|
||||
|
||||
@@ -18,11 +18,11 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "11.0.3",
|
||||
"version": "12.0.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/rpc-core": "11.0.3",
|
||||
"@polkadot/types": "11.0.3",
|
||||
"@polkadot/rpc-core": "12.0.2",
|
||||
"@polkadot/types": "12.0.2",
|
||||
"@polkadot/util": "^12.6.2",
|
||||
"rxjs": "^7.8.1",
|
||||
"tslib": "^2.6.2"
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '11.0.3' };
|
||||
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '12.0.2' };
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
import type { Observable } from 'rxjs';
|
||||
import type { AccountId, Address, ApplyExtrinsicResult, BlockNumber, Call, DispatchError, DispatchInfo, EventRecord, Extrinsic, ExtrinsicStatus, Hash, RuntimeDispatchInfo } from '@polkadot/types/interfaces';
|
||||
import type { AnyFunction, AnyNumber, AnyTuple, Callback, CallBase, Codec, IExtrinsicEra, IKeyringPair, ISubmittableResult, Signer } from '@polkadot/types/types';
|
||||
import type { AnyFunction, AnyNumber, AnyTuple, AnyU8a, Callback, CallBase, Codec, IExtrinsicEra, IKeyringPair, ISubmittableResult, Signer } from '@polkadot/types/types';
|
||||
import type { ApiTypes, EmptyBase, PromiseOrObs } from './base.js';
|
||||
|
||||
export type AugmentedSubmittable<T extends AnyFunction, A extends AnyTuple = AnyTuple> = T & CallBase<A>;
|
||||
@@ -17,6 +17,9 @@ export interface SignerOptions {
|
||||
signer?: Signer;
|
||||
tip?: AnyNumber;
|
||||
assetId?: AnyNumber | object;
|
||||
mode?: AnyNumber;
|
||||
metadataHash?: AnyU8a;
|
||||
withSignedTransaction?: boolean;
|
||||
}
|
||||
|
||||
export type SubmittableDryRunResult<ApiType extends ApiTypes> =
|
||||
@@ -64,8 +67,27 @@ export interface SubmittableExtrinsic<ApiType extends ApiTypes, R extends ISubmi
|
||||
|
||||
send (statusCb: Callback<R>): SubmittableResultSubscription<ApiType, R>;
|
||||
|
||||
/**
|
||||
* @description Sign and broadcast the constructued transaction.
|
||||
*
|
||||
* Note for injected signers:
|
||||
* As of v12.0.2 and up the `SignerResult` return type for `signPayload` allows for the `signedTransaction` field.
|
||||
* This allows the signer to input a signed transaction that will modify the payload. This
|
||||
* The api will ensure that the Call Data is not changed. This allows for the signer to modify the payload to add
|
||||
* things like `mode`, and `metadataHash` for signedExtensions such as `CheckMetadataHash`.
|
||||
*/
|
||||
signAsync (account: AddressOrPair, _options?: Partial<SignerOptions>): PromiseOrObs<ApiType, this>;
|
||||
|
||||
/**
|
||||
* @description Sign and broadcast the constructued transaction.
|
||||
*
|
||||
* Note for injected signers:
|
||||
* As of v12.0.1 and up the `SignerResult` return type for `signPayload` allows for the `signedTransaction` field.
|
||||
* This allows the signer to input a signed transaction that will be directly broadcasted. This
|
||||
* bypasses the api adding the signature to the payload. The api will ensure that the Call Data is not changed before it broadcasts the
|
||||
* transaction. This allows for the signer to modify the payload to add things like `mode`, and `metadataHash` for
|
||||
* signedExtensions such as `CheckMetadataHash`.
|
||||
*/
|
||||
signAndSend (account: AddressOrPair, options?: Partial<SignerOptions>): SubmittableResultResult<ApiType, R>;
|
||||
|
||||
signAndSend (account: AddressOrPair, statusCb: Callback<R>): SubmittableResultSubscription<ApiType>;
|
||||
|
||||
@@ -18,22 +18,22 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "11.0.3",
|
||||
"version": "12.0.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/api": "11.0.3",
|
||||
"@polkadot/api-augment": "11.0.3",
|
||||
"@polkadot/types": "11.0.3",
|
||||
"@polkadot/types-codec": "11.0.3",
|
||||
"@polkadot/types-create": "11.0.3",
|
||||
"@polkadot/api": "12.0.2",
|
||||
"@polkadot/api-augment": "12.0.2",
|
||||
"@polkadot/types": "12.0.2",
|
||||
"@polkadot/types-codec": "12.0.2",
|
||||
"@polkadot/types-create": "12.0.2",
|
||||
"@polkadot/util": "^12.6.2",
|
||||
"@polkadot/util-crypto": "^12.6.2",
|
||||
"rxjs": "^7.8.1",
|
||||
"tslib": "^2.6.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api-augment": "11.0.3",
|
||||
"@polkadot/api-augment": "12.0.2",
|
||||
"@polkadot/keyring": "^12.6.2",
|
||||
"@polkadot/types-support": "11.0.3"
|
||||
"@polkadot/types-support": "12.0.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '11.0.3' };
|
||||
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '12.0.2' };
|
||||
|
||||
@@ -18,25 +18,25 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "11.0.3",
|
||||
"version": "12.0.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/api": "11.0.3",
|
||||
"@polkadot/api-augment": "11.0.3",
|
||||
"@polkadot/api-base": "11.0.3",
|
||||
"@polkadot/rpc-core": "11.0.3",
|
||||
"@polkadot/types": "11.0.3",
|
||||
"@polkadot/types-codec": "11.0.3",
|
||||
"@polkadot/api": "12.0.2",
|
||||
"@polkadot/api-augment": "12.0.2",
|
||||
"@polkadot/api-base": "12.0.2",
|
||||
"@polkadot/rpc-core": "12.0.2",
|
||||
"@polkadot/types": "12.0.2",
|
||||
"@polkadot/types-codec": "12.0.2",
|
||||
"@polkadot/util": "^12.6.2",
|
||||
"@polkadot/util-crypto": "^12.6.2",
|
||||
"rxjs": "^7.8.1",
|
||||
"tslib": "^2.6.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api": "11.0.3",
|
||||
"@polkadot/api-augment": "11.0.3",
|
||||
"@polkadot/rpc-augment": "11.0.3",
|
||||
"@polkadot/rpc-provider": "11.0.3",
|
||||
"@polkadot/types-support": "11.0.3"
|
||||
"@polkadot/api": "12.0.2",
|
||||
"@polkadot/api-augment": "12.0.2",
|
||||
"@polkadot/rpc-augment": "12.0.2",
|
||||
"@polkadot/rpc-provider": "12.0.2",
|
||||
"@polkadot/types-support": "12.0.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Observable } from 'rxjs';
|
||||
import type { Bytes, Data } from '@polkadot/types';
|
||||
import type { AccountId } from '@polkadot/types/interfaces';
|
||||
import type { Bytes, Data, Struct } from '@polkadot/types';
|
||||
import type { AccountId, H160 } from '@polkadot/types/interfaces';
|
||||
import type { PalletIdentityLegacyIdentityInfo, PalletIdentityRegistration } from '@polkadot/types/lookup';
|
||||
import type { Option } from '@polkadot/types-codec';
|
||||
import type { ITuple } from '@polkadot/types-codec/types';
|
||||
@@ -17,9 +17,26 @@ import { firstMemo, memo } from '../util/index.js';
|
||||
|
||||
type IdentityInfoAdditional = PalletIdentityLegacyIdentityInfo['additional'][0];
|
||||
|
||||
interface PeopleIdentityInfo extends Struct {
|
||||
display: Data;
|
||||
legal: Data;
|
||||
web: Data;
|
||||
matrix: Data;
|
||||
email: Data;
|
||||
pgpFingerprint: Option<H160>;
|
||||
image: Data;
|
||||
twitter: Data;
|
||||
github: Data;
|
||||
discord: Data;
|
||||
}
|
||||
|
||||
const UNDEF_HEX = { toHex: () => undefined };
|
||||
|
||||
function dataAsString (data: Data): string | undefined {
|
||||
if (!data) {
|
||||
return data;
|
||||
}
|
||||
|
||||
return data.isRaw
|
||||
? u8aToString(data.asRaw.toU8a(true))
|
||||
: data.isNone
|
||||
@@ -58,13 +75,16 @@ function extractIdentity (identityOfOpt?: Option<ITuple<[PalletIdentityRegistrat
|
||||
const topDisplay = dataAsString(info.display);
|
||||
|
||||
return {
|
||||
discord: dataAsString((info as unknown as PeopleIdentityInfo).discord),
|
||||
display: (superOf && dataAsString(superOf[1])) || topDisplay,
|
||||
displayParent: superOf && topDisplay,
|
||||
email: dataAsString(info.email),
|
||||
github: dataAsString((info as unknown as PeopleIdentityInfo).github),
|
||||
image: dataAsString(info.image),
|
||||
judgements,
|
||||
legal: dataAsString(info.legal),
|
||||
other: extractOther(info.additional),
|
||||
matrix: dataAsString((info as unknown as PeopleIdentityInfo).matrix),
|
||||
other: info.additional ? extractOther(info.additional) : {},
|
||||
parent: superOf?.[0],
|
||||
pgp: info.pgpFingerprint.unwrapOr(UNDEF_HEX).toHex(),
|
||||
riot: dataAsString(info.riot),
|
||||
|
||||
@@ -8,11 +8,14 @@ export type AccountIdAndIndex = [AccountId | undefined, AccountIndex | undefined
|
||||
export type AccountIndexes = Record<string, AccountIndex>;
|
||||
|
||||
export interface DeriveAccountRegistration {
|
||||
discord?: string | undefined;
|
||||
display?: string | undefined;
|
||||
displayParent?: string | undefined;
|
||||
email?: string | undefined;
|
||||
github?: string | undefined;
|
||||
image?: string | undefined;
|
||||
legal?: string | undefined;
|
||||
matrix?: string | undefined;
|
||||
other?: Record<string, string> | undefined;
|
||||
parent?: AccountId | undefined;
|
||||
pgp?: string | undefined;
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '11.0.3' };
|
||||
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '12.0.2' };
|
||||
|
||||
@@ -168,11 +168,15 @@ export function _stakerRewardsEras (instanceId: string, api: DeriveApi): (eras:
|
||||
}
|
||||
|
||||
export function _stakerRewards (instanceId: string, api: DeriveApi): (accountIds: (Uint8Array | string)[], eras: EraIndex[], withActive?: boolean) => Observable<DeriveStakerReward[][]> {
|
||||
return memo(instanceId, (accountIds: (Uint8Array | string)[], eras: EraIndex[], withActive = false): Observable<DeriveStakerReward[][]> =>
|
||||
combineLatest([
|
||||
return memo(instanceId, (accountIds: (Uint8Array | string)[], eras: EraIndex[], withActive = false): Observable<DeriveStakerReward[][]> => {
|
||||
// Ensures that when number or string types are passed in they are sanitized
|
||||
// Ref: https://github.com/polkadot-js/api/issues/5910
|
||||
const sanitizedEras: EraIndex[] = eras.map((e) => typeof e === 'number' || typeof e === 'string' ? api.registry.createType('u32', e) : e);
|
||||
|
||||
return combineLatest([
|
||||
api.derive.staking.queryMulti(accountIds, { withClaimedRewardsEras: true, withLedger: true }),
|
||||
api.derive.staking._stakerExposures(accountIds, eras, withActive),
|
||||
api.derive.staking._stakerRewardsEras(eras, withActive)
|
||||
api.derive.staking._stakerExposures(accountIds, sanitizedEras, withActive),
|
||||
api.derive.staking._stakerRewardsEras(sanitizedEras, withActive)
|
||||
]).pipe(
|
||||
switchMap(([queries, exposures, erasResult]): Observable<DeriveStakerReward[][]> => {
|
||||
const allRewards = queries.map(({ claimedRewardsEras, stakingLedger, stashId }, index): DeriveStakerReward[] =>
|
||||
@@ -208,7 +212,8 @@ export function _stakerRewards (instanceId: string, api: DeriveApi): (accountIds
|
||||
)
|
||||
);
|
||||
})
|
||||
)
|
||||
);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -17,14 +17,16 @@ export function nextElected (instanceId: string, api: DeriveApi): () => Observab
|
||||
// only populate for next era in the last session, so track both here - entries are not
|
||||
// subscriptions, so we need a trigger - currentIndex acts as that trigger to refresh
|
||||
switchMap(({ currentEra }) => api.query.staking.erasStakersPaged.keys(currentEra)),
|
||||
map((keys) => keys.map(({ args: [, accountId] }) => accountId))
|
||||
// Dedupe any duplicates
|
||||
map((keys) => [...new Set(keys.map(({ args: [, accountId] }) => accountId.toString()))].map((a) => api.registry.createType('AccountId', a)))
|
||||
)
|
||||
: api.query.staking.erasStakers
|
||||
? api.derive.session.indexes().pipe(
|
||||
// only populate for next era in the last session, so track both here - entries are not
|
||||
// subscriptions, so we need a trigger - currentIndex acts as that trigger to refresh
|
||||
switchMap(({ currentEra }) => api.query.staking.erasStakers.keys(currentEra)),
|
||||
map((keys) => keys.map(({ args: [, accountId] }) => accountId))
|
||||
// Dedupe any duplicates
|
||||
map((keys) => [...new Set(keys.map(({ args: [, accountId] }) => accountId.toString()))].map((a) => api.registry.createType('AccountId', a)))
|
||||
)
|
||||
: api.query.staking['currentElected']<AccountId[]>()
|
||||
);
|
||||
|
||||
@@ -29,9 +29,13 @@ function latestNonce (api: DeriveApi, address: string): Observable<Index> {
|
||||
}
|
||||
|
||||
function nextNonce (api: DeriveApi, address: string): Observable<Index> {
|
||||
return api.rpc.system?.accountNextIndex
|
||||
? api.rpc.system.accountNextIndex(address)
|
||||
: latestNonce(api, address);
|
||||
if (api.call.accountNonceApi) {
|
||||
return api.call.accountNonceApi.accountNonce(address);
|
||||
} else {
|
||||
return api.rpc.system?.accountNextIndex
|
||||
? api.rpc.system.accountNextIndex(address)
|
||||
: latestNonce(api, address);
|
||||
}
|
||||
}
|
||||
|
||||
function signingHeader (api: DeriveApi): Observable<Header> {
|
||||
@@ -76,7 +80,7 @@ function babeOrAuraPeriod (api: DeriveApi): BN | undefined {
|
||||
(api.consts['aura'] as unknown as Aura)?.slotDuration ||
|
||||
api.consts.timestamp?.minimumPeriod.muln(2);
|
||||
|
||||
return !period.isZero() ? period : undefined;
|
||||
return period && period.isZero && !period.isZero() ? period : undefined;
|
||||
}
|
||||
|
||||
export function signingInfo (_instanceId: string, api: DeriveApi): (address: string, nonce?: AnyNumber | Codec, era?: IExtrinsicEra | number) => Observable<Result> {
|
||||
|
||||
+14
-14
@@ -18,21 +18,21 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "11.0.3",
|
||||
"version": "12.0.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/api-augment": "11.0.3",
|
||||
"@polkadot/api-base": "11.0.3",
|
||||
"@polkadot/api-derive": "11.0.3",
|
||||
"@polkadot/api-augment": "12.0.2",
|
||||
"@polkadot/api-base": "12.0.2",
|
||||
"@polkadot/api-derive": "12.0.2",
|
||||
"@polkadot/keyring": "^12.6.2",
|
||||
"@polkadot/rpc-augment": "11.0.3",
|
||||
"@polkadot/rpc-core": "11.0.3",
|
||||
"@polkadot/rpc-provider": "11.0.3",
|
||||
"@polkadot/types": "11.0.3",
|
||||
"@polkadot/types-augment": "11.0.3",
|
||||
"@polkadot/types-codec": "11.0.3",
|
||||
"@polkadot/types-create": "11.0.3",
|
||||
"@polkadot/types-known": "11.0.3",
|
||||
"@polkadot/rpc-augment": "12.0.2",
|
||||
"@polkadot/rpc-core": "12.0.2",
|
||||
"@polkadot/rpc-provider": "12.0.2",
|
||||
"@polkadot/types": "12.0.2",
|
||||
"@polkadot/types-augment": "12.0.2",
|
||||
"@polkadot/types-codec": "12.0.2",
|
||||
"@polkadot/types-create": "12.0.2",
|
||||
"@polkadot/types-known": "12.0.2",
|
||||
"@polkadot/util": "^12.6.2",
|
||||
"@polkadot/util-crypto": "^12.6.2",
|
||||
"eventemitter3": "^5.0.1",
|
||||
@@ -40,7 +40,7 @@
|
||||
"tslib": "^2.6.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api-augment": "11.0.3",
|
||||
"@polkadot/types-support": "11.0.3"
|
||||
"@polkadot/api-augment": "12.0.2",
|
||||
"@polkadot/types-support": "12.0.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -244,6 +244,11 @@ export abstract class Init<ApiType extends ApiTypes> extends Decorate<ApiType> {
|
||||
protected async _loadMeta (): Promise<boolean> {
|
||||
// on re-connection to the same chain, we don't want to re-do everything from chain again
|
||||
if (this._isReady) {
|
||||
// on re-connection only re-subscribe to chain updates if we are not a clone
|
||||
if (!this._options.source) {
|
||||
this._subscribeUpdates();
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '11.0.3' };
|
||||
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '12.0.2' };
|
||||
|
||||
@@ -15,7 +15,7 @@ import { hexToU8a } from '@polkadot/util';
|
||||
import { SingleAccountSigner } from '../test/index.js';
|
||||
import { ApiPromise } from './index.js';
|
||||
|
||||
const TRANSFER_SIG = '0xcc277eb341d3801c08f149508221583fa3185cc3944e6cb376cd061640305edd7dc24dfd754adb24768f1d8547389b7720e6f626bc81f5593fba1141e7f7ba07';
|
||||
const TRANSFER_SIG = '0xbb861f9c905d860d303101dfd23a6042251721ca65fb1a58e317d628f08484767a3604afeaede64a4116d08daae3c285ea2ea97c8b6c7b3548e90df327c4e60c';
|
||||
|
||||
describe('ApiPromise', (): void => {
|
||||
const registry = new TypeRegistry();
|
||||
|
||||
@@ -7,6 +7,7 @@ import type { Observable } from 'rxjs';
|
||||
import type { Address, ApplyExtrinsicResult, Call, Extrinsic, ExtrinsicEra, ExtrinsicStatus, Hash, Header, Index, RuntimeDispatchInfo, SignerPayload } from '@polkadot/types/interfaces';
|
||||
import type { Callback, Codec, CodecClass, ISubmittableResult, SignatureOptions } from '@polkadot/types/types';
|
||||
import type { Registry } from '@polkadot/types-codec/types';
|
||||
import type { HexString } from '@polkadot/util/types';
|
||||
import type { ApiBase } from '../base/index.js';
|
||||
import type { ApiInterfaceRx, ApiTypes, PromiseOrObs, SignerResult } from '../types/index.js';
|
||||
import type { AddressOrPair, SignerOptions, SubmittableDryRunResult, SubmittableExtrinsic, SubmittablePaymentResult, SubmittableResultResult, SubmittableResultSubscription } from './types.js';
|
||||
@@ -28,6 +29,12 @@ interface SubmittableOptions<ApiType extends ApiTypes> {
|
||||
interface UpdateInfo {
|
||||
options: SignatureOptions;
|
||||
updateId: number;
|
||||
signedTransaction: HexString | Uint8Array | null;
|
||||
}
|
||||
|
||||
interface SignerInfo {
|
||||
id: number;
|
||||
signedTransaction?: HexString | Uint8Array;
|
||||
}
|
||||
|
||||
function makeEraOptions (api: ApiInterfaceRx, registry: Registry, partialOptions: Partial<SignerOptions>, { header, mortalLength, nonce }: { header: Header | null; mortalLength: number; nonce: Index }): SignatureOptions {
|
||||
@@ -246,14 +253,21 @@ export function createClass <ApiType extends ApiTypes> ({ api, apiType, blockHas
|
||||
mergeMap(async (signingInfo): Promise<UpdateInfo> => {
|
||||
const eraOptions = makeEraOptions(api, this.registry, options, signingInfo);
|
||||
let updateId = -1;
|
||||
let signedTx = null;
|
||||
|
||||
if (isKeyringPair(account)) {
|
||||
this.sign(account, eraOptions);
|
||||
} else {
|
||||
updateId = await this.#signViaSigner(address, eraOptions, signingInfo.header);
|
||||
const result = await this.#signViaSigner(address, eraOptions, signingInfo.header);
|
||||
|
||||
updateId = result.id;
|
||||
|
||||
if (result.signedTransaction) {
|
||||
signedTx = result.signedTransaction;
|
||||
}
|
||||
}
|
||||
|
||||
return { options: eraOptions, updateId };
|
||||
return { options: eraOptions, signedTransaction: signedTx, updateId };
|
||||
})
|
||||
);
|
||||
};
|
||||
@@ -288,18 +302,18 @@ export function createClass <ApiType extends ApiTypes> ({ api, apiType, blockHas
|
||||
);
|
||||
};
|
||||
|
||||
#observeSend = (info: UpdateInfo): Observable<Hash> => {
|
||||
return api.rpc.author.submitExtrinsic(this).pipe(
|
||||
#observeSend = (info?: UpdateInfo): Observable<Hash> => {
|
||||
return api.rpc.author.submitExtrinsic(info?.signedTransaction || this).pipe(
|
||||
tap((hash): void => {
|
||||
this.#updateSigner(hash, info);
|
||||
})
|
||||
);
|
||||
};
|
||||
|
||||
#observeSubscribe = (info: UpdateInfo): Observable<ISubmittableResult> => {
|
||||
#observeSubscribe = (info?: UpdateInfo): Observable<ISubmittableResult> => {
|
||||
const txHash = this.hash;
|
||||
|
||||
return api.rpc.author.submitAndWatchExtrinsic(this).pipe(
|
||||
return api.rpc.author.submitAndWatchExtrinsic(info?.signedTransaction || this).pipe(
|
||||
switchMap((status): Observable<ISubmittableResult> =>
|
||||
this.#observeStatus(txHash, status)
|
||||
),
|
||||
@@ -309,7 +323,7 @@ export function createClass <ApiType extends ApiTypes> ({ api, apiType, blockHas
|
||||
);
|
||||
};
|
||||
|
||||
#signViaSigner = async (address: Address | string | Uint8Array, options: SignatureOptions, header: Header | null): Promise<number> => {
|
||||
#signViaSigner = async (address: Address | string | Uint8Array, options: SignatureOptions, header: Header | null): Promise<SignerInfo> => {
|
||||
const signer = options.signer || api.signer;
|
||||
|
||||
if (!signer) {
|
||||
@@ -325,6 +339,41 @@ export function createClass <ApiType extends ApiTypes> ({ api, apiType, blockHas
|
||||
|
||||
if (isFunction(signer.signPayload)) {
|
||||
result = await signer.signPayload(payload.toPayload());
|
||||
|
||||
if (result.signedTransaction && !options.withSignedTransaction) {
|
||||
throw new Error('The `signedTransaction` field may not be submitted when `withSignedTransaction` is disabled');
|
||||
}
|
||||
|
||||
if (result.signedTransaction && options.withSignedTransaction) {
|
||||
const ext = this.registry.createTypeUnsafe<Extrinsic>('Extrinsic', [result.signedTransaction]);
|
||||
const newSignerPayload = this.registry.createTypeUnsafe<SignerPayload>('SignerPayload', [objectSpread({}, {
|
||||
address,
|
||||
assetId: ext.assetId ? ext.assetId.toHex() : null,
|
||||
blockHash: payload.blockHash,
|
||||
blockNumber: header ? header.number : 0,
|
||||
era: ext.era.toHex(),
|
||||
genesisHash: payload.genesisHash,
|
||||
metadataHash: ext.metadataHash ? ext.metadataHash.toHex() : null,
|
||||
method: ext.method.toHex(),
|
||||
mode: ext.mode ? ext.mode.toHex() : null,
|
||||
nonce: ext.nonce.toHex(),
|
||||
runtimeVersion: payload.runtimeVersion,
|
||||
signedExtensions: payload.signedExtensions,
|
||||
tip: ext.tip.toHex(),
|
||||
version: payload.version
|
||||
})]);
|
||||
|
||||
if (!ext.isSigned) {
|
||||
throw new Error(`When using the signedTransaction field, the transaction must be signed. Recieved isSigned: ${ext.isSigned}`);
|
||||
}
|
||||
|
||||
this.#validateSignedTransaction(payload, ext);
|
||||
// This is only used for signAsync - signAndSend does not need to adjust the super payload or
|
||||
// add the signature.
|
||||
super.addSignature(address, result.signature, newSignerPayload.toPayload());
|
||||
|
||||
return { id: result.id, signedTransaction: result.signedTransaction };
|
||||
}
|
||||
} else if (isFunction(signer.signRaw)) {
|
||||
result = await signer.signRaw(payload.toRaw());
|
||||
} else {
|
||||
@@ -336,7 +385,7 @@ export function createClass <ApiType extends ApiTypes> ({ api, apiType, blockHas
|
||||
// payload data is not modified from our inputs, but the signer
|
||||
super.addSignature(address, result.signature, payload.toPayload());
|
||||
|
||||
return result.id;
|
||||
return { id: result.id };
|
||||
};
|
||||
|
||||
#updateSigner = (status: Hash | ISubmittableResult, info?: UpdateInfo): void => {
|
||||
@@ -349,6 +398,20 @@ export function createClass <ApiType extends ApiTypes> ({ api, apiType, blockHas
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* When a signer includes `signedTransaction` within the SignerResult this will validate
|
||||
* specific fields within the signed extrinsic against the original payload that was passed
|
||||
* to the signer.
|
||||
*/
|
||||
#validateSignedTransaction = (signerPayload: SignerPayload, signedExt: Extrinsic): void => {
|
||||
const payload = signerPayload.toPayload();
|
||||
const errMsg = (field: string) => `signAndSend: ${field} does not match the original payload`;
|
||||
|
||||
if (payload.method !== signedExt.method.toHex()) {
|
||||
throw new Error(errMsg('call data'));
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
return Submittable;
|
||||
|
||||
@@ -18,12 +18,12 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "11.0.3",
|
||||
"version": "12.0.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/rpc-core": "11.0.3",
|
||||
"@polkadot/types": "11.0.3",
|
||||
"@polkadot/types-codec": "11.0.3",
|
||||
"@polkadot/rpc-core": "12.0.2",
|
||||
"@polkadot/types": "12.0.2",
|
||||
"@polkadot/types-codec": "12.0.2",
|
||||
"@polkadot/util": "^12.6.2",
|
||||
"tslib": "^2.6.2"
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '11.0.3' };
|
||||
export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '12.0.2' };
|
||||
|
||||
@@ -18,18 +18,18 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "11.0.3",
|
||||
"version": "12.0.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/rpc-augment": "11.0.3",
|
||||
"@polkadot/rpc-provider": "11.0.3",
|
||||
"@polkadot/types": "11.0.3",
|
||||
"@polkadot/rpc-augment": "12.0.2",
|
||||
"@polkadot/rpc-provider": "12.0.2",
|
||||
"@polkadot/types": "12.0.2",
|
||||
"@polkadot/util": "^12.6.2",
|
||||
"rxjs": "^7.8.1",
|
||||
"tslib": "^2.6.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^12.6.2",
|
||||
"@polkadot/rpc-augment": "11.0.3"
|
||||
"@polkadot/rpc-augment": "12.0.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: '11.0.3' };
|
||||
export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '12.0.2' };
|
||||
|
||||
@@ -18,12 +18,12 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "11.0.3",
|
||||
"version": "12.0.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/keyring": "^12.6.2",
|
||||
"@polkadot/types": "11.0.3",
|
||||
"@polkadot/types-support": "11.0.3",
|
||||
"@polkadot/types": "12.0.2",
|
||||
"@polkadot/types-support": "12.0.2",
|
||||
"@polkadot/util": "^12.6.2",
|
||||
"@polkadot/util-crypto": "^12.6.2",
|
||||
"@polkadot/x-fetch": "^12.6.2",
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '11.0.3' };
|
||||
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '12.0.2' };
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "11.0.3",
|
||||
"version": "12.0.2",
|
||||
"main": "index.js",
|
||||
"bin": {
|
||||
"polkadot-types-chain-info": "./scripts/polkadot-types-chain-info.mjs",
|
||||
@@ -28,15 +28,15 @@
|
||||
"polkadot-types-internal-metadata": "./scripts/polkadot-types-internal-metadata.mjs"
|
||||
},
|
||||
"dependencies": {
|
||||
"@polkadot/api": "11.0.3",
|
||||
"@polkadot/api-augment": "11.0.3",
|
||||
"@polkadot/rpc-augment": "11.0.3",
|
||||
"@polkadot/rpc-provider": "11.0.3",
|
||||
"@polkadot/types": "11.0.3",
|
||||
"@polkadot/types-augment": "11.0.3",
|
||||
"@polkadot/types-codec": "11.0.3",
|
||||
"@polkadot/types-create": "11.0.3",
|
||||
"@polkadot/types-support": "11.0.3",
|
||||
"@polkadot/api": "12.0.2",
|
||||
"@polkadot/api-augment": "12.0.2",
|
||||
"@polkadot/rpc-augment": "12.0.2",
|
||||
"@polkadot/rpc-provider": "12.0.2",
|
||||
"@polkadot/types": "12.0.2",
|
||||
"@polkadot/types-augment": "12.0.2",
|
||||
"@polkadot/types-codec": "12.0.2",
|
||||
"@polkadot/types-create": "12.0.2",
|
||||
"@polkadot/types-support": "12.0.2",
|
||||
"@polkadot/util": "^12.6.2",
|
||||
"@polkadot/util-crypto": "^12.6.2",
|
||||
"@polkadot/x-ws": "^12.6.2",
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '11.0.3' };
|
||||
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '12.0.2' };
|
||||
|
||||
@@ -18,11 +18,11 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "11.0.3",
|
||||
"version": "12.0.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/types": "11.0.3",
|
||||
"@polkadot/types-codec": "11.0.3",
|
||||
"@polkadot/types": "12.0.2",
|
||||
"@polkadot/types-codec": "12.0.2",
|
||||
"@polkadot/util": "^12.6.2",
|
||||
"tslib": "^2.6.2"
|
||||
}
|
||||
|
||||
@@ -2261,6 +2261,13 @@ export default {
|
||||
Para: 'u32'
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup451: sp_consensus_beefy::EquivocationProof<Number, sp_consensus_beefy::ecdsa_crypto::Public, sp_consensus_beefy::ecdsa_crypto::Signature>
|
||||
**/
|
||||
SpConsensusBeefyEquivocationProof: {
|
||||
first: 'SpConsensusBeefyVoteMessage',
|
||||
second: 'SpConsensusBeefyVoteMessage'
|
||||
},
|
||||
/**
|
||||
* Lookup466: polkadot_runtime_common::claims::pallet::Event<T>
|
||||
**/
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -2248,6 +2248,12 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Para';
|
||||
}
|
||||
|
||||
/** @name SpConsensusBeefyEquivocationProof (451) */
|
||||
interface SpConsensusBeefyEquivocationProof extends Struct {
|
||||
readonly first: SpConsensusBeefyVoteMessage;
|
||||
readonly second: SpConsensusBeefyVoteMessage;
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeCommonClaimsPalletEvent (466) */
|
||||
interface PolkadotRuntimeCommonClaimsPalletEvent extends Enum {
|
||||
readonly isClaimed: boolean;
|
||||
|
||||
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: '11.0.3' };
|
||||
export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '12.0.2' };
|
||||
|
||||
@@ -74,6 +74,7 @@ import type { ClassDetails, ClassId, ClassMetadata, DepositBalance, DepositBalan
|
||||
import type { Multisig, Timepoint } from '@polkadot/types/interfaces/utility';
|
||||
import type { VestingInfo } from '@polkadot/types/interfaces/vesting';
|
||||
import type { AssetInstance, AssetInstanceV0, AssetInstanceV1, AssetInstanceV2, BodyId, BodyPart, DoubleEncodedCall, Fungibility, FungibilityV0, FungibilityV1, FungibilityV2, InboundStatus, InstructionV2, InteriorMultiLocation, Junction, JunctionV0, JunctionV1, JunctionV2, Junctions, JunctionsV1, JunctionsV2, MultiAsset, MultiAssetFilter, MultiAssetFilterV1, MultiAssetFilterV2, MultiAssetV0, MultiAssetV1, MultiAssetV2, MultiAssets, MultiAssetsV1, MultiAssetsV2, MultiLocation, MultiLocationV0, MultiLocationV1, MultiLocationV2, NetworkId, OriginKindV0, OriginKindV1, OriginKindV2, OutboundStatus, Outcome, QueryId, QueryStatus, QueueConfigData, Response, ResponseV0, ResponseV1, ResponseV2, ResponseV2Error, ResponseV2Result, VersionMigrationStage, VersionedMultiAsset, VersionedMultiAssets, VersionedMultiLocation, VersionedResponse, VersionedXcm, WeightLimitV2, WildFungibility, WildFungibilityV0, WildFungibilityV1, WildFungibilityV2, WildMultiAsset, WildMultiAssetV1, WildMultiAssetV2, Xcm, XcmAssetId, XcmError, XcmErrorV0, XcmErrorV1, XcmErrorV2, XcmOrder, XcmOrderV0, XcmOrderV1, XcmOrderV2, XcmOrigin, XcmOriginKind, XcmV0, XcmV1, XcmV2, XcmVersion, XcmpMessageFormat } from '@polkadot/types/interfaces/xcm';
|
||||
import type { Error } from '@polkadot/types/interfaces/xcmRuntimeApi';
|
||||
|
||||
declare module '@polkadot/types/types/registry' {
|
||||
interface InterfaceTypes {
|
||||
@@ -400,6 +401,7 @@ declare module '@polkadot/types/types/registry' {
|
||||
EraPoints: EraPoints;
|
||||
EraRewardPoints: EraRewardPoints;
|
||||
EraRewards: EraRewards;
|
||||
Error: Error;
|
||||
ErrorMetadataLatest: ErrorMetadataLatest;
|
||||
ErrorMetadataV10: ErrorMetadataV10;
|
||||
ErrorMetadataV11: ErrorMetadataV11;
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -18,7 +18,7 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "11.0.3",
|
||||
"version": "12.0.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/util": "^12.6.2",
|
||||
@@ -26,9 +26,9 @@
|
||||
"tslib": "^2.6.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/types": "11.0.3",
|
||||
"@polkadot/types-augment": "11.0.3",
|
||||
"@polkadot/types-support": "11.0.3",
|
||||
"@polkadot/types": "12.0.2",
|
||||
"@polkadot/types-augment": "12.0.2",
|
||||
"@polkadot/types-support": "12.0.2",
|
||||
"@polkadot/util-crypto": "^12.6.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/types-codec', path: 'auto', type: 'auto', version: '11.0.3' };
|
||||
export const packageInfo = { name: '@polkadot/types-codec', path: 'auto', type: 'auto', version: '12.0.2' };
|
||||
|
||||
@@ -18,14 +18,14 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "11.0.3",
|
||||
"version": "12.0.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/types-codec": "11.0.3",
|
||||
"@polkadot/types-codec": "12.0.2",
|
||||
"@polkadot/util": "^12.6.2",
|
||||
"tslib": "^2.6.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/types": "11.0.3"
|
||||
"@polkadot/types": "12.0.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: '11.0.3' };
|
||||
export const packageInfo = { name: '@polkadot/types-create', path: 'auto', type: 'auto', version: '12.0.2' };
|
||||
|
||||
@@ -18,17 +18,17 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "11.0.3",
|
||||
"version": "12.0.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/networks": "^12.6.2",
|
||||
"@polkadot/types": "11.0.3",
|
||||
"@polkadot/types-codec": "11.0.3",
|
||||
"@polkadot/types-create": "11.0.3",
|
||||
"@polkadot/types": "12.0.2",
|
||||
"@polkadot/types-codec": "12.0.2",
|
||||
"@polkadot/types-create": "12.0.2",
|
||||
"@polkadot/util": "^12.6.2",
|
||||
"tslib": "^2.6.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api": "11.0.3"
|
||||
"@polkadot/api": "12.0.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: '11.0.3' };
|
||||
export const packageInfo = { name: '@polkadot/types-known', path: 'auto', type: 'auto', version: '12.0.2' };
|
||||
|
||||
@@ -4860,5 +4860,333 @@ export const upgrades: ChainUpgradesExpanded = [
|
||||
1
|
||||
]
|
||||
]
|
||||
],
|
||||
[
|
||||
22790000,
|
||||
1002000,
|
||||
[
|
||||
[
|
||||
"0xdf6acb689907609b",
|
||||
4
|
||||
],
|
||||
[
|
||||
"0x37e397fc7c91f5e4",
|
||||
2
|
||||
],
|
||||
[
|
||||
"0x40fe3ad401f8959a",
|
||||
6
|
||||
],
|
||||
[
|
||||
"0xd2bc9897eed08f15",
|
||||
3
|
||||
],
|
||||
[
|
||||
"0xf78b278be53f454c",
|
||||
2
|
||||
],
|
||||
[
|
||||
"0xaf2c0297a23e6d3d",
|
||||
10
|
||||
],
|
||||
[
|
||||
"0x49eaaf1b548a0cb0",
|
||||
3
|
||||
],
|
||||
[
|
||||
"0x91d5df18b0d2cf58",
|
||||
2
|
||||
],
|
||||
[
|
||||
"0x2a5e924655399e60",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0xed99c5acb25eedf5",
|
||||
3
|
||||
],
|
||||
[
|
||||
"0xcbca25e39f142387",
|
||||
2
|
||||
],
|
||||
[
|
||||
"0x687ad44ad37f03c2",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0xab3c0572291feb8b",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0xbc9d89904f5b923f",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0x37c8bb1350a9a2a8",
|
||||
4
|
||||
],
|
||||
[
|
||||
"0xf3ff14d5ab527059",
|
||||
3
|
||||
],
|
||||
[
|
||||
"0x17a6bc0d0062aeb3",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0x18ef58a3b67ba770",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0xfbc577b9d747efd6",
|
||||
1
|
||||
]
|
||||
]
|
||||
],
|
||||
[
|
||||
23176015,
|
||||
1002001,
|
||||
[
|
||||
[
|
||||
"0xdf6acb689907609b",
|
||||
4
|
||||
],
|
||||
[
|
||||
"0x37e397fc7c91f5e4",
|
||||
2
|
||||
],
|
||||
[
|
||||
"0x40fe3ad401f8959a",
|
||||
6
|
||||
],
|
||||
[
|
||||
"0xd2bc9897eed08f15",
|
||||
3
|
||||
],
|
||||
[
|
||||
"0xf78b278be53f454c",
|
||||
2
|
||||
],
|
||||
[
|
||||
"0xaf2c0297a23e6d3d",
|
||||
10
|
||||
],
|
||||
[
|
||||
"0x49eaaf1b548a0cb0",
|
||||
3
|
||||
],
|
||||
[
|
||||
"0x91d5df18b0d2cf58",
|
||||
2
|
||||
],
|
||||
[
|
||||
"0x2a5e924655399e60",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0xed99c5acb25eedf5",
|
||||
3
|
||||
],
|
||||
[
|
||||
"0xcbca25e39f142387",
|
||||
2
|
||||
],
|
||||
[
|
||||
"0x687ad44ad37f03c2",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0xab3c0572291feb8b",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0xbc9d89904f5b923f",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0x37c8bb1350a9a2a8",
|
||||
4
|
||||
],
|
||||
[
|
||||
"0xf3ff14d5ab527059",
|
||||
3
|
||||
],
|
||||
[
|
||||
"0x17a6bc0d0062aeb3",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0x18ef58a3b67ba770",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0xfbc577b9d747efd6",
|
||||
1
|
||||
]
|
||||
]
|
||||
],
|
||||
[
|
||||
23450253,
|
||||
1002004,
|
||||
[
|
||||
[
|
||||
"0xdf6acb689907609b",
|
||||
4
|
||||
],
|
||||
[
|
||||
"0x37e397fc7c91f5e4",
|
||||
2
|
||||
],
|
||||
[
|
||||
"0x40fe3ad401f8959a",
|
||||
6
|
||||
],
|
||||
[
|
||||
"0xd2bc9897eed08f15",
|
||||
3
|
||||
],
|
||||
[
|
||||
"0xf78b278be53f454c",
|
||||
2
|
||||
],
|
||||
[
|
||||
"0xaf2c0297a23e6d3d",
|
||||
10
|
||||
],
|
||||
[
|
||||
"0x49eaaf1b548a0cb0",
|
||||
3
|
||||
],
|
||||
[
|
||||
"0x91d5df18b0d2cf58",
|
||||
2
|
||||
],
|
||||
[
|
||||
"0x2a5e924655399e60",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0xed99c5acb25eedf5",
|
||||
3
|
||||
],
|
||||
[
|
||||
"0xcbca25e39f142387",
|
||||
2
|
||||
],
|
||||
[
|
||||
"0x687ad44ad37f03c2",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0xab3c0572291feb8b",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0xbc9d89904f5b923f",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0x37c8bb1350a9a2a8",
|
||||
4
|
||||
],
|
||||
[
|
||||
"0xf3ff14d5ab527059",
|
||||
3
|
||||
],
|
||||
[
|
||||
"0x17a6bc0d0062aeb3",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0x18ef58a3b67ba770",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0xfbc577b9d747efd6",
|
||||
1
|
||||
]
|
||||
]
|
||||
],
|
||||
[
|
||||
23565293,
|
||||
1002005,
|
||||
[
|
||||
[
|
||||
"0xdf6acb689907609b",
|
||||
4
|
||||
],
|
||||
[
|
||||
"0x37e397fc7c91f5e4",
|
||||
2
|
||||
],
|
||||
[
|
||||
"0x40fe3ad401f8959a",
|
||||
6
|
||||
],
|
||||
[
|
||||
"0xd2bc9897eed08f15",
|
||||
3
|
||||
],
|
||||
[
|
||||
"0xf78b278be53f454c",
|
||||
2
|
||||
],
|
||||
[
|
||||
"0xaf2c0297a23e6d3d",
|
||||
10
|
||||
],
|
||||
[
|
||||
"0x49eaaf1b548a0cb0",
|
||||
3
|
||||
],
|
||||
[
|
||||
"0x91d5df18b0d2cf58",
|
||||
2
|
||||
],
|
||||
[
|
||||
"0x2a5e924655399e60",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0xed99c5acb25eedf5",
|
||||
3
|
||||
],
|
||||
[
|
||||
"0xcbca25e39f142387",
|
||||
2
|
||||
],
|
||||
[
|
||||
"0x687ad44ad37f03c2",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0xab3c0572291feb8b",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0xbc9d89904f5b923f",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0x37c8bb1350a9a2a8",
|
||||
4
|
||||
],
|
||||
[
|
||||
"0xf3ff14d5ab527059",
|
||||
3
|
||||
],
|
||||
[
|
||||
"0x17a6bc0d0062aeb3",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0x18ef58a3b67ba770",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0xfbc577b9d747efd6",
|
||||
1
|
||||
]
|
||||
]
|
||||
]
|
||||
];
|
||||
|
||||
@@ -3380,5 +3380,87 @@ export const upgrades: ChainUpgradesExpanded = [
|
||||
1
|
||||
]
|
||||
]
|
||||
],
|
||||
[
|
||||
21169168,
|
||||
1002004,
|
||||
[
|
||||
[
|
||||
"0xdf6acb689907609b",
|
||||
4
|
||||
],
|
||||
[
|
||||
"0x37e397fc7c91f5e4",
|
||||
2
|
||||
],
|
||||
[
|
||||
"0x40fe3ad401f8959a",
|
||||
6
|
||||
],
|
||||
[
|
||||
"0x17a6bc0d0062aeb3",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0x18ef58a3b67ba770",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0xd2bc9897eed08f15",
|
||||
3
|
||||
],
|
||||
[
|
||||
"0xf78b278be53f454c",
|
||||
2
|
||||
],
|
||||
[
|
||||
"0xaf2c0297a23e6d3d",
|
||||
10
|
||||
],
|
||||
[
|
||||
"0x49eaaf1b548a0cb0",
|
||||
3
|
||||
],
|
||||
[
|
||||
"0x91d5df18b0d2cf58",
|
||||
2
|
||||
],
|
||||
[
|
||||
"0x2a5e924655399e60",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0xed99c5acb25eedf5",
|
||||
3
|
||||
],
|
||||
[
|
||||
"0xcbca25e39f142387",
|
||||
2
|
||||
],
|
||||
[
|
||||
"0x687ad44ad37f03c2",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0xab3c0572291feb8b",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0xbc9d89904f5b923f",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0x37c8bb1350a9a2a8",
|
||||
4
|
||||
],
|
||||
[
|
||||
"0xf3ff14d5ab527059",
|
||||
3
|
||||
],
|
||||
[
|
||||
"0xfbc577b9d747efd6",
|
||||
1
|
||||
]
|
||||
]
|
||||
]
|
||||
];
|
||||
|
||||
@@ -5502,5 +5502,177 @@ export const upgrades: ChainUpgradesExpanded = [
|
||||
1
|
||||
]
|
||||
]
|
||||
],
|
||||
[
|
||||
20649086,
|
||||
1011000,
|
||||
[
|
||||
[
|
||||
"0xdf6acb689907609b",
|
||||
5
|
||||
],
|
||||
[
|
||||
"0x37e397fc7c91f5e4",
|
||||
2
|
||||
],
|
||||
[
|
||||
"0x40fe3ad401f8959a",
|
||||
6
|
||||
],
|
||||
[
|
||||
"0xd2bc9897eed08f15",
|
||||
3
|
||||
],
|
||||
[
|
||||
"0xf78b278be53f454c",
|
||||
2
|
||||
],
|
||||
[
|
||||
"0xaf2c0297a23e6d3d",
|
||||
11
|
||||
],
|
||||
[
|
||||
"0x49eaaf1b548a0cb0",
|
||||
3
|
||||
],
|
||||
[
|
||||
"0x91d5df18b0d2cf58",
|
||||
2
|
||||
],
|
||||
[
|
||||
"0x2a5e924655399e60",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0xed99c5acb25eedf5",
|
||||
3
|
||||
],
|
||||
[
|
||||
"0xcbca25e39f142387",
|
||||
2
|
||||
],
|
||||
[
|
||||
"0x687ad44ad37f03c2",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0xab3c0572291feb8b",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0xbc9d89904f5b923f",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0x37c8bb1350a9a2a8",
|
||||
4
|
||||
],
|
||||
[
|
||||
"0xf3ff14d5ab527059",
|
||||
3
|
||||
],
|
||||
[
|
||||
"0x6ff52ee858e6c5bd",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0x17a6bc0d0062aeb3",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0x18ef58a3b67ba770",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0xfbc577b9d747efd6",
|
||||
1
|
||||
]
|
||||
]
|
||||
],
|
||||
[
|
||||
21217837,
|
||||
1011001,
|
||||
[
|
||||
[
|
||||
"0xdf6acb689907609b",
|
||||
5
|
||||
],
|
||||
[
|
||||
"0x37e397fc7c91f5e4",
|
||||
2
|
||||
],
|
||||
[
|
||||
"0x40fe3ad401f8959a",
|
||||
6
|
||||
],
|
||||
[
|
||||
"0xd2bc9897eed08f15",
|
||||
3
|
||||
],
|
||||
[
|
||||
"0xf78b278be53f454c",
|
||||
2
|
||||
],
|
||||
[
|
||||
"0xaf2c0297a23e6d3d",
|
||||
11
|
||||
],
|
||||
[
|
||||
"0x49eaaf1b548a0cb0",
|
||||
3
|
||||
],
|
||||
[
|
||||
"0x91d5df18b0d2cf58",
|
||||
2
|
||||
],
|
||||
[
|
||||
"0x2a5e924655399e60",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0xed99c5acb25eedf5",
|
||||
3
|
||||
],
|
||||
[
|
||||
"0xcbca25e39f142387",
|
||||
2
|
||||
],
|
||||
[
|
||||
"0x687ad44ad37f03c2",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0xab3c0572291feb8b",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0xbc9d89904f5b923f",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0x37c8bb1350a9a2a8",
|
||||
4
|
||||
],
|
||||
[
|
||||
"0xf3ff14d5ab527059",
|
||||
3
|
||||
],
|
||||
[
|
||||
"0x6ff52ee858e6c5bd",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0x17a6bc0d0062aeb3",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0x18ef58a3b67ba770",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0xfbc577b9d747efd6",
|
||||
1
|
||||
]
|
||||
]
|
||||
]
|
||||
];
|
||||
|
||||
@@ -21,5 +21,5 @@ export const upgrades: ChainUpgradesRaw = [
|
||||
// we have 9340 via system.setStorage (whitelist.WhitelistedCallDispatched event)
|
||||
[15680713, 9340], [15756296, 9350], [15912007, 9360], [16356547, 9370], [17335450, 9381],
|
||||
[18062739, 9420], [18625000, 9430], [20465806, 1000000], [21570000, 1001000], [21786291, 1001002],
|
||||
[22515962, 1001003]
|
||||
[22515962, 1001003], [22790000, 1002000], [23176015, 1002001], [23450253, 1002004], [23565293, 1002005]
|
||||
];
|
||||
|
||||
@@ -15,5 +15,5 @@ export const upgrades: ChainUpgradesRaw = [
|
||||
[11933818, 9270], [12217535, 9280], [12245277, 9281], [12532644, 9291], [12876189, 9300],
|
||||
[13800015, 9340], [14188833, 9360], [14543918, 9370], [15978362, 9420], [16450000, 9430],
|
||||
[17840000, 9431], [18407475, 1000001], [19551000, 1001002], [20181758, 1001003],
|
||||
[20438530, 1002000]
|
||||
[20438530, 1002000], [21169168, 1002004]
|
||||
];
|
||||
|
||||
@@ -21,5 +21,5 @@ export const upgrades: ChainUpgradesRaw = [
|
||||
[14849830, 9390], [15146832, 9400], [15332317, 9401], [15661793, 9420], [16165469, 9430],
|
||||
[18293984, 102000], [18293991, 103000], [18451783, 104000], [18679741, 1005000], [19166695, 1006000],
|
||||
[19234157, 1006001], [19542944, 1007000], [19621258, 1007001], [19761406, 1008000], [20056997, 1009000],
|
||||
[20368318, 1010000]
|
||||
[20368318, 1010000], [20649086, 1011000], [21217837, 1011001]
|
||||
];
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "11.0.3",
|
||||
"version": "12.0.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/util": "^12.6.2",
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/types-support', path: 'auto', type: 'auto', version: '11.0.3' };
|
||||
export const packageInfo = { name: '@polkadot/types-support', path: 'auto', type: 'auto', version: '12.0.2' };
|
||||
|
||||
@@ -18,13 +18,13 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "11.0.3",
|
||||
"version": "12.0.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/keyring": "^12.6.2",
|
||||
"@polkadot/types-augment": "11.0.3",
|
||||
"@polkadot/types-codec": "11.0.3",
|
||||
"@polkadot/types-create": "11.0.3",
|
||||
"@polkadot/types-augment": "12.0.2",
|
||||
"@polkadot/types-codec": "12.0.2",
|
||||
"@polkadot/types-create": "12.0.2",
|
||||
"@polkadot/util": "^12.6.2",
|
||||
"@polkadot/util-crypto": "^12.6.2",
|
||||
"rxjs": "^7.8.1",
|
||||
@@ -32,6 +32,6 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^12.6.2",
|
||||
"@polkadot/types-support": "11.0.3"
|
||||
"@polkadot/types-support": "12.0.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ import type { AnyJson, AnyTuple, AnyU8a, ArgsDef, IMethod, Inspect, IOption } fr
|
||||
import type { HexString } from '@polkadot/util/types';
|
||||
import type { EcdsaSignature, Ed25519Signature, ExtrinsicUnknown, ExtrinsicV4, Sr25519Signature } from '../interfaces/extrinsics/index.js';
|
||||
import type { FunctionMetadataLatest } from '../interfaces/metadata/index.js';
|
||||
import type { Address, Call, CodecHash } from '../interfaces/runtime/index.js';
|
||||
import type { Address, Call, CodecHash, Hash } from '../interfaces/runtime/index.js';
|
||||
import type { MultiLocation } from '../interfaces/types.js';
|
||||
import type { CallBase, ExtrinsicPayloadValue, ICompact, IExtrinsic, IKeyringPair, INumber, Registry, SignatureOptions } from '../types/index.js';
|
||||
import type { GenericExtrinsicEra } from './ExtrinsicEra.js';
|
||||
@@ -195,10 +195,24 @@ abstract class ExtrinsicBase<A extends AnyTuple> extends AbstractBase<ExtrinsicV
|
||||
/**
|
||||
* @description Forward compat
|
||||
*/
|
||||
public get assetId (): IOption<INumber> | IOption<MultiLocation> {
|
||||
public get assetId (): IOption<INumber | MultiLocation> {
|
||||
return this.inner.signature.assetId;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description Forward compat
|
||||
*/
|
||||
public get metadataHash (): IOption<Hash> {
|
||||
return this.inner.signature.metadataHash;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description Forward compat
|
||||
*/
|
||||
public get mode (): INumber {
|
||||
return this.inner.signature.mode;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description Returns the raw transaction version (not flagged with signing information)
|
||||
*/
|
||||
@@ -324,8 +338,10 @@ export class GenericExtrinsic<A extends AnyTuple = AnyTuple> extends ExtrinsicBa
|
||||
},
|
||||
this.isSigned
|
||||
? {
|
||||
assetId: this.assetId.toHuman(isExpanded, disableAscii),
|
||||
assetId: this.assetId ? this.assetId.toHuman(isExpanded, disableAscii) : null,
|
||||
era: this.era.toHuman(isExpanded, disableAscii),
|
||||
metadataHash: this.metadataHash ? this.metadataHash.toHex() : null,
|
||||
mode: this.mode.toHuman(),
|
||||
nonce: this.nonce.toHuman(isExpanded, disableAscii),
|
||||
signature: this.signature.toHex(),
|
||||
signer: this.signer.toHuman(isExpanded, disableAscii),
|
||||
|
||||
@@ -6,7 +6,7 @@ import type { AnyJson, BareOpts, Registry } from '@polkadot/types-codec/types';
|
||||
import type { HexString } from '@polkadot/util/types';
|
||||
import type { BlockHash } from '../interfaces/chain/index.js';
|
||||
import type { ExtrinsicPayloadV4 } from '../interfaces/extrinsics/index.js';
|
||||
import type { MultiLocation } from '../interfaces/types.js';
|
||||
import type { Hash, MultiLocation } from '../interfaces/types.js';
|
||||
import type { ExtrinsicPayloadValue, ICompact, IKeyringPair, INumber, IOption } from '../types/index.js';
|
||||
import type { GenericExtrinsicEra } from './ExtrinsicEra.js';
|
||||
|
||||
@@ -113,10 +113,17 @@ export class GenericExtrinsicPayload extends AbstractBase<ExtrinsicPayloadVx> {
|
||||
/**
|
||||
* @description The (optional) asset id as a [[u32]] or [[MultiLocation]] for this payload
|
||||
*/
|
||||
public get assetId (): IOption<INumber | IOption<MultiLocation>> {
|
||||
public get assetId (): IOption<INumber | MultiLocation> {
|
||||
return this.inner.assetId;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description The (optional) [[Hash]] of the genesis metadata for this payload
|
||||
*/
|
||||
public get metadataHash (): IOption<Hash> {
|
||||
return this.inner.metadataHash;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description Compares the value of the input to see if there is a match
|
||||
*/
|
||||
|
||||
@@ -17,46 +17,61 @@ registry.setMetadata(metadata);
|
||||
describe('SignerPayload', (): void => {
|
||||
const TEST = {
|
||||
address: '5DTestUPts3kjeXSTMyerHihn1uwMfLj8vU8sqF7qYrFabHE',
|
||||
// eslint-disable-next-line sort-keys
|
||||
assetId: { parents: 0, interior: { x2: [{ palletInstance: 50 }, { generalIndex: 123 }] } },
|
||||
blockHash: '0xde8f69eeb5e065e18c6950ff708d7e551f68dc9bf59a07c52367c0280f805ec7',
|
||||
blockNumber: '0x00231d30',
|
||||
era: '0x0703',
|
||||
genesisHash: '0xdcd1346701ca8396496e52aa2785b1748deb6db09551b72159dcb3e08991025b',
|
||||
metadataHash: '0xdcd1346701ca8396496e52aa2785b1748deb6db09551b72159dcb3e08991025b',
|
||||
method: '0x060000d7568e5f0a7eda67a82691ff379ac4bba4f9c9b859fe779b5d46363b61ad2db9e56c',
|
||||
mode: 1,
|
||||
nonce: '0x00001234',
|
||||
signedExtensions: ['CheckNonce', 'CheckWeight'],
|
||||
specVersion: '0x00000006',
|
||||
tip: '0x00000000000000000000000000005678',
|
||||
transactionVersion: '0x00000007',
|
||||
version: 4
|
||||
version: 4,
|
||||
withSignedTransaction: false
|
||||
};
|
||||
|
||||
it('creates a valid JSON output', (): void => {
|
||||
expect(
|
||||
new SignerPayload(registry, {
|
||||
address: '5DTestUPts3kjeXSTMyerHihn1uwMfLj8vU8sqF7qYrFabHE',
|
||||
// eslint-disable-next-line sort-keys
|
||||
assetId: { parents: 0, interior: { x2: [{ palletInstance: 50 }, { generalIndex: 123 }] } },
|
||||
blockHash: '0xde8f69eeb5e065e18c6950ff708d7e551f68dc9bf59a07c52367c0280f805ec7',
|
||||
blockNumber: '0x231d30',
|
||||
era: registry.createType('ExtrinsicEra', { current: 2301232, period: 200 }),
|
||||
genesisHash: '0xdcd1346701ca8396496e52aa2785b1748deb6db09551b72159dcb3e08991025b',
|
||||
metadataHash: '0xdcd1346701ca8396496e52aa2785b1748deb6db09551b72159dcb3e08991025b',
|
||||
method: registry.createType('Call', '0x060000d7568e5f0a7eda67a82691ff379ac4bba4f9c9b859fe779b5d46363b61ad2db9e56c'),
|
||||
mode: 1,
|
||||
nonce: 0x1234,
|
||||
signedExtensions: ['CheckNonce'],
|
||||
tip: 0x5678,
|
||||
version: 4
|
||||
version: 4,
|
||||
withSignedTransaction: true
|
||||
}).toPayload()
|
||||
).toEqual({
|
||||
address: '5DTestUPts3kjeXSTMyerHihn1uwMfLj8vU8sqF7qYrFabHE',
|
||||
// eslint-disable-next-line sort-keys
|
||||
assetId: { parents: 0, interior: { x2: [{ palletInstance: 50 }, { generalIndex: 123 }] } },
|
||||
blockHash: '0xde8f69eeb5e065e18c6950ff708d7e551f68dc9bf59a07c52367c0280f805ec7',
|
||||
blockNumber: '0x00231d30',
|
||||
era: '0x0703',
|
||||
genesisHash: '0xdcd1346701ca8396496e52aa2785b1748deb6db09551b72159dcb3e08991025b',
|
||||
metadataHash: '0xdcd1346701ca8396496e52aa2785b1748deb6db09551b72159dcb3e08991025b',
|
||||
method: '0x060000d7568e5f0a7eda67a82691ff379ac4bba4f9c9b859fe779b5d46363b61ad2db9e56c',
|
||||
mode: 1,
|
||||
nonce: '0x00001234',
|
||||
signedExtensions: ['CheckNonce'],
|
||||
specVersion: '0x00000000',
|
||||
tip: '0x00000000000000000000000000005678',
|
||||
transactionVersion: '0x00000000',
|
||||
version: 4
|
||||
version: 4,
|
||||
withSignedTransaction: true
|
||||
});
|
||||
});
|
||||
|
||||
@@ -71,25 +86,14 @@ describe('SignerPayload', (): void => {
|
||||
).toEqual(true);
|
||||
|
||||
expect(
|
||||
// @ts-expect-error We don't have getters for this field
|
||||
test.toPayload().assetId
|
||||
).toEqual({
|
||||
// eslint-disable-next-line sort-keys
|
||||
parents: 0, interior: { x2: [{ palletInstance: 50 }, { generalIndex: 123 }] }
|
||||
});
|
||||
).toEqual({ parents: 0, interior: { x2: [{ palletInstance: 50 }, { generalIndex: 123 }] } });
|
||||
|
||||
expect(
|
||||
// @ts-expect-error We don't have getters for this field
|
||||
new SignerPayload(registry, { assetId: 0 }).toPayload().assetId
|
||||
).toEqual({
|
||||
// eslint-disable-next-line sort-keys
|
||||
parents: 0, interior: { here: null }
|
||||
});
|
||||
|
||||
expect(
|
||||
// @ts-expect-error We don't have getters for this field
|
||||
new SignerPayload(registry, TEST).toPayload().assetId
|
||||
).toBeUndefined();
|
||||
).toEqual({ parents: 0, interior: { here: null } });
|
||||
});
|
||||
|
||||
it('re-constructs from JSON', (): void => {
|
||||
@@ -126,11 +130,56 @@ describe('SignerPayload', (): void => {
|
||||
expect(payload.blockHash.toHex()).toEqual(TEST.blockHash);
|
||||
expect(payload.nonce.eq(TEST.nonce)).toBe(true);
|
||||
expect(payload.tip.eq(TEST.tip)).toBe(true);
|
||||
// @ts-expect-error assetId is of unknown type, so we don't know about "isSome"
|
||||
expect(payload.inner?.get('assetId')?.isSome && payload.inner?.get('assetId')
|
||||
expect(payload.assetId.isSome && payload.assetId
|
||||
?.eq(registry.createType('MultiLocation', {
|
||||
// eslint-disable-next-line sort-keys
|
||||
parents: 0, interior: { X2: [{ palletInstance: 50 }, { generalIndex: 123 }] }
|
||||
}))).toBe(true);
|
||||
});
|
||||
|
||||
const TEST_WITHOUT_CHECK = {
|
||||
address: '5DTestUPts3kjeXSTMyerHihn1uwMfLj8vU8sqF7qYrFabHE',
|
||||
blockHash: '0xde8f69eeb5e065e18c6950ff708d7e551f68dc9bf59a07c52367c0280f805ec7',
|
||||
blockNumber: '0x00231d30',
|
||||
era: '0x0703',
|
||||
genesisHash: '0xdcd1346701ca8396496e52aa2785b1748deb6db09551b72159dcb3e08991025b',
|
||||
method: '0x060000d7568e5f0a7eda67a82691ff379ac4bba4f9c9b859fe779b5d46363b61ad2db9e56c',
|
||||
nonce: '0x00001234',
|
||||
signedExtensions: [],
|
||||
specVersion: '0x00000006',
|
||||
tip: '0x00000000000000000000000000005678',
|
||||
transactionVersion: '0x00000007',
|
||||
version: 4
|
||||
};
|
||||
|
||||
const PAYLOAD_WITHOUT_CHECK = {
|
||||
address: '5DTestUPts3kjeXSTMyerHihn1uwMfLj8vU8sqF7qYrFabHE',
|
||||
assetId: null,
|
||||
blockHash: '0xde8f69eeb5e065e18c6950ff708d7e551f68dc9bf59a07c52367c0280f805ec7',
|
||||
blockNumber: '0x00231d30',
|
||||
era: '0x0703',
|
||||
genesisHash: '0xdcd1346701ca8396496e52aa2785b1748deb6db09551b72159dcb3e08991025b',
|
||||
metadataHash: null,
|
||||
method: '0x060000d7568e5f0a7eda67a82691ff379ac4bba4f9c9b859fe779b5d46363b61ad2db9e56c',
|
||||
mode: 0,
|
||||
nonce: '0x00001234',
|
||||
signedExtensions: [],
|
||||
specVersion: '0x00000006',
|
||||
tip: '0x00000000000000000000000000005678',
|
||||
transactionVersion: '0x00000007',
|
||||
version: 4,
|
||||
withSignedTransaction: false
|
||||
};
|
||||
|
||||
it('can build SignerPayload without additional SignedExtensions', (): void => {
|
||||
expect(
|
||||
new SignerPayload(
|
||||
registry,
|
||||
{
|
||||
...TEST_WITHOUT_CHECK,
|
||||
runtimeVersion: { specVersion: 0x06, transactionVersion: 0x07 }
|
||||
}
|
||||
).toPayload()
|
||||
).toEqual(PAYLOAD_WITHOUT_CHECK);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2024 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Text, Vec } from '@polkadot/types-codec';
|
||||
import type { bool, Text, Vec } from '@polkadot/types-codec';
|
||||
import type { AnyJson, Registry } from '@polkadot/types-codec/types';
|
||||
import type { HexString } from '@polkadot/util/types';
|
||||
import type { Address, BlockHash, Call, ExtrinsicEra, Hash, MultiLocation } from '../interfaces/index.js';
|
||||
@@ -12,11 +12,14 @@ import { objectProperty, objectSpread, u8aToHex } from '@polkadot/util';
|
||||
|
||||
export interface SignerPayloadType extends Codec {
|
||||
address: Address;
|
||||
assetId: IOption<INumber | MultiLocation>;
|
||||
blockHash: Hash;
|
||||
blockNumber: INumber;
|
||||
era: ExtrinsicEra;
|
||||
genesisHash: Hash;
|
||||
metadataHash: IOption<Hash>;
|
||||
method: Call;
|
||||
mode: INumber;
|
||||
nonce: ICompact<INumber>;
|
||||
runtimeVersion: IRuntimeVersion;
|
||||
signedExtensions: Vec<Text>;
|
||||
@@ -26,11 +29,14 @@ export interface SignerPayloadType extends Codec {
|
||||
|
||||
const knownTypes: Record<string, string> = {
|
||||
address: 'Address',
|
||||
assetId: 'Option<TAssetConversion>',
|
||||
blockHash: 'Hash',
|
||||
blockNumber: 'BlockNumber',
|
||||
era: 'ExtrinsicEra',
|
||||
genesisHash: 'Hash',
|
||||
metadataHash: 'Option<[u8;32]>',
|
||||
method: 'Call',
|
||||
mode: 'u8',
|
||||
nonce: 'Compact<Index>',
|
||||
runtimeVersion: 'RuntimeVersion',
|
||||
signedExtensions: 'Vec<Text>',
|
||||
@@ -49,7 +55,7 @@ export class GenericSignerPayload extends Struct implements ISignerPayload, Sign
|
||||
constructor (registry: Registry, value?: HexString | Record<string, unknown> | Map<unknown, unknown> | unknown[]) {
|
||||
const extensionTypes = objectSpread<Record<string, string>>({}, registry.getSignedExtensionTypes(), registry.getSignedExtensionExtra());
|
||||
|
||||
super(registry, objectSpread<Record<string, string>>({}, extensionTypes, knownTypes), value);
|
||||
super(registry, objectSpread<Record<string, string>>({}, extensionTypes, knownTypes, { withSignedTransaction: 'bool' }), value);
|
||||
|
||||
this.#extraTypes = {};
|
||||
const getter = (key: string) => this.get(key);
|
||||
@@ -104,7 +110,7 @@ export class GenericSignerPayload extends Struct implements ISignerPayload, Sign
|
||||
return this.getT('tip');
|
||||
}
|
||||
|
||||
get assetId (): IOption<INumber> | IOption<MultiLocation> {
|
||||
get assetId (): IOption<INumber | MultiLocation> {
|
||||
return this.getT('assetId');
|
||||
}
|
||||
|
||||
@@ -112,6 +118,20 @@ export class GenericSignerPayload extends Struct implements ISignerPayload, Sign
|
||||
return this.getT('version');
|
||||
}
|
||||
|
||||
get mode (): INumber {
|
||||
return this.getT('mode');
|
||||
}
|
||||
|
||||
get metadataHash (): IOption<Hash> {
|
||||
return this.getT('metadataHash');
|
||||
}
|
||||
|
||||
get withSignedTransaction (): boolean {
|
||||
const val: bool = this.getT('withSignedTransaction');
|
||||
|
||||
return val.isTrue;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description Creates an representation of the structure as an ISignerPayload JSON
|
||||
*/
|
||||
@@ -139,17 +159,21 @@ export class GenericSignerPayload extends Struct implements ISignerPayload, Sign
|
||||
// the known defaults as managed explicitly and has different
|
||||
// formatting in cases, e.g. we mostly expose a hex format here
|
||||
address: this.address.toString(),
|
||||
assetId: this.assetId ? this.assetId.toJSON() : null,
|
||||
blockHash: this.blockHash.toHex(),
|
||||
blockNumber: this.blockNumber.toHex(),
|
||||
era: this.era.toHex(),
|
||||
genesisHash: this.genesisHash.toHex(),
|
||||
metadataHash: this.metadataHash.isSome ? this.metadataHash.toHex() : null,
|
||||
method: this.method.toHex(),
|
||||
mode: this.mode.toNumber(),
|
||||
nonce: this.nonce.toHex(),
|
||||
signedExtensions: this.signedExtensions.map((e) => e.toString()),
|
||||
specVersion: this.runtimeVersion.specVersion.toHex(),
|
||||
tip: this.tip.toHex(),
|
||||
transactionVersion: this.runtimeVersion.transactionVersion.toHex(),
|
||||
version: this.version.toNumber()
|
||||
version: this.version.toNumber(),
|
||||
withSignedTransaction: this.withSignedTransaction
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -5,6 +5,15 @@ import type { ExtDef, ExtInfo } from './types.js';
|
||||
|
||||
import { emptyCheck } from './emptyCheck.js';
|
||||
|
||||
const CheckMetadataHash: ExtInfo = {
|
||||
extrinsic: {
|
||||
mode: 'u8'
|
||||
},
|
||||
payload: {
|
||||
metadataHash: 'Option<[u8;32]>'
|
||||
}
|
||||
};
|
||||
|
||||
const CheckMortality: ExtInfo = {
|
||||
extrinsic: {
|
||||
era: 'ExtrinsicEra'
|
||||
@@ -31,6 +40,7 @@ export const substrate: ExtDef = {
|
||||
genesisHash: 'Hash'
|
||||
}
|
||||
},
|
||||
CheckMetadataHash,
|
||||
CheckMortality,
|
||||
CheckNonZeroSender: emptyCheck,
|
||||
CheckNonce: {
|
||||
|
||||
@@ -56,6 +56,7 @@ describe('ExtrinsicV4', (): void => {
|
||||
).sign(keyring.alice, {
|
||||
blockHash: '0xec7afaf1cca720ce88c1d1b689d81f0583cc15a97d621cf046dd9abf605ef22f',
|
||||
genesisHash: '0xdcd1346701ca8396496e52aa2785b1748deb6db09551b72159dcb3e08991025b',
|
||||
mode: 0,
|
||||
nonce: 1,
|
||||
runtimeVersion: {
|
||||
apis: [],
|
||||
@@ -73,9 +74,9 @@ describe('ExtrinsicV4', (): void => {
|
||||
'00' +
|
||||
'd172a74cda4c865912c32ba0a80a57ae69abae410e5ccb59dee84e2f4432db4f' +
|
||||
'00' + // ed25519
|
||||
'eb58b10100923b73df92010db6f9363300ea3947d4c7c92ce669da93931853e8' +
|
||||
'a2f21c8a7c73035b3ddd8cdd47ef5db3092aad09d15e6f5ed9d32d7864821409' +
|
||||
'00040800' + // era. nonce, tip
|
||||
'bac8e442c7d6e6827fe3b72a2dee6bd036e059e1b0a2a5cfb00ec39184d60536' +
|
||||
'a4f3b5f3bfcd31e6e5b5cf6482914dc989fbe9483043a13c90376dfe28c5e00f' +
|
||||
'0004080000' + // era. nonce, tip, mode
|
||||
'0600' +
|
||||
'00' +
|
||||
'd7568e5f0a7eda67a82691ff379ac4bba4f9c9b859fe779b5d46363b61ad2db9' +
|
||||
|
||||
@@ -27,10 +27,12 @@ describe('ExtrinsicPayload', (): void => {
|
||||
{ name: 'nonce', outer: [new Uint8Array([0])] },
|
||||
{ name: 'tip', outer: [new Uint8Array([0])] },
|
||||
{ name: 'assetId', outer: [new Uint8Array([0])] },
|
||||
{ name: 'mode', outer: [new Uint8Array([0])] },
|
||||
{ name: 'specVersion', outer: [new Uint8Array([0, 0, 0, 0])] },
|
||||
{ name: 'transactionVersion', outer: [new Uint8Array([0, 0, 0, 0])] },
|
||||
{ name: 'genesisHash', outer: [new Uint8Array(32)] },
|
||||
{ name: 'blockHash', outer: [new Uint8Array(32)] }
|
||||
{ name: 'blockHash', outer: [new Uint8Array(32)] },
|
||||
{ name: 'metadataHash', outer: [new Uint8Array([0])] }
|
||||
]
|
||||
});
|
||||
});
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { SignOptions } from '@polkadot/keyring/types';
|
||||
import type { MultiLocation } from '@polkadot/types/interfaces';
|
||||
import type { Hash, MultiLocation } from '@polkadot/types/interfaces';
|
||||
import type { Bytes } from '@polkadot/types-codec';
|
||||
import type { Inspect, Registry } from '@polkadot/types-codec/types';
|
||||
import type { HexString } from '@polkadot/util/types';
|
||||
@@ -105,10 +105,17 @@ export class GenericExtrinsicPayloadV4 extends Struct {
|
||||
/**
|
||||
* @description The (optional) asset id for this signature for chains that support transaction fees in assets
|
||||
*/
|
||||
public get assetId (): IOption<INumber | IOption<MultiLocation>> {
|
||||
public get assetId (): IOption<INumber | MultiLocation> {
|
||||
return this.getT('assetId');
|
||||
}
|
||||
|
||||
/**
|
||||
* @description The (optional) asset id for this signature for chains that support transaction fees in assets
|
||||
*/
|
||||
public get metadataHash (): IOption<Hash> {
|
||||
return this.getT('metadataHash');
|
||||
}
|
||||
|
||||
/**
|
||||
* @description Sign the payload with the keypair
|
||||
*/
|
||||
|
||||
@@ -72,7 +72,8 @@ describe('ExtrinsicSignatureV4', (): void => {
|
||||
'01' +
|
||||
'0101010101010101010101010101010101010101010101010101010101010101' +
|
||||
'0101010101010101010101010101010101010101010101010101010101010101' +
|
||||
'00a5010000'
|
||||
'00a5010000' +
|
||||
'00' // Mode
|
||||
);
|
||||
});
|
||||
|
||||
@@ -99,7 +100,8 @@ describe('ExtrinsicSignatureV4', (): void => {
|
||||
// This is a prefix-less signature, anySignture as opposed to Multi above
|
||||
'0101010101010101010101010101010101010101010101010101010101010101' +
|
||||
'0101010101010101010101010101010101010101010101010101010101010101' +
|
||||
'00a5010000'
|
||||
'00a5010000' +
|
||||
'00' // mode
|
||||
);
|
||||
});
|
||||
|
||||
@@ -127,7 +129,8 @@ describe('ExtrinsicSignatureV4', (): void => {
|
||||
'01' +
|
||||
'0101010101010101010101010101010101010101010101010101010101010101' +
|
||||
'0101010101010101010101010101010101010101010101010101010101010101' +
|
||||
'00a5010000'
|
||||
'00a5010000' +
|
||||
'00' // mode
|
||||
);
|
||||
});
|
||||
|
||||
@@ -150,7 +153,8 @@ describe('ExtrinsicSignatureV4', (): void => {
|
||||
'01' +
|
||||
'0101010101010101010101010101010101010101010101010101010101010101' +
|
||||
'0101010101010101010101010101010101010101010101010101010101010101' +
|
||||
'00000000'
|
||||
'00000000' +
|
||||
'00' // mode
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
import type { MultiLocation } from '@polkadot/types/interfaces';
|
||||
import type { HexString } from '@polkadot/util/types';
|
||||
import type { EcdsaSignature, Ed25519Signature, ExtrinsicEra, ExtrinsicSignature, Sr25519Signature } from '../../interfaces/extrinsics/index.js';
|
||||
import type { Address, Call } from '../../interfaces/runtime/index.js';
|
||||
import type { Address, Call, Hash } from '../../interfaces/runtime/index.js';
|
||||
import type { ExtrinsicPayloadValue, ICompact, IExtrinsicSignature, IKeyringPair, INumber, IOption, Registry, SignatureOptions } from '../../types/index.js';
|
||||
import type { ExtrinsicSignatureOptions } from '../types.js';
|
||||
|
||||
@@ -122,10 +122,24 @@ export class GenericExtrinsicSignatureV4 extends Struct implements IExtrinsicSig
|
||||
/**
|
||||
* @description The [[u32]] or [[MultiLocation]] assetId
|
||||
*/
|
||||
public get assetId (): IOption<INumber> | IOption<MultiLocation> {
|
||||
public get assetId (): IOption<INumber | MultiLocation> {
|
||||
return this.getT('assetId');
|
||||
}
|
||||
|
||||
/**
|
||||
* @description the [[u32]] mode
|
||||
*/
|
||||
public get mode (): INumber {
|
||||
return this.getT('mode');
|
||||
}
|
||||
|
||||
/**
|
||||
* @description The [[Hash]] for the metadata
|
||||
*/
|
||||
public get metadataHash (): IOption<Hash> {
|
||||
return this.getT('metadataHash');
|
||||
}
|
||||
|
||||
protected _injectSignature (signer: Address, signature: ExtrinsicSignature, payload: GenericExtrinsicPayloadV4): IExtrinsicSignature {
|
||||
// use the fields exposed to guide the getters
|
||||
for (let i = 0, count = this.#signKeys.length; i < count; i++) {
|
||||
|
||||
@@ -4,6 +4,27 @@
|
||||
import type { DefinitionsCall } from '../../types/index.js';
|
||||
|
||||
export const runtime: DefinitionsCall = {
|
||||
AuraUnincludedSegmentApi: [
|
||||
{
|
||||
methods: {
|
||||
can_build_upon: {
|
||||
description: 'Whether it is legal to extend the chain',
|
||||
params: [
|
||||
{
|
||||
name: 'includedHash',
|
||||
type: 'BlockHash'
|
||||
},
|
||||
{
|
||||
name: 'slot',
|
||||
type: 'Slot'
|
||||
}
|
||||
],
|
||||
type: 'bool'
|
||||
}
|
||||
},
|
||||
version: 1
|
||||
}
|
||||
],
|
||||
CollectCollationInfo: [
|
||||
{
|
||||
methods: {
|
||||
|
||||
@@ -122,7 +122,7 @@ describe('runtime definitions', (): void => {
|
||||
for (const { methods, version } of versions) {
|
||||
describe(`version ${version}`, (): void => {
|
||||
const methodsEntries = Object.entries<DefinitionCall>(methods);
|
||||
const skipInspectTypes = ['StagingXcmV3MultiLocation', 'StagingXcmV3MultiLocation', 'Result<Vec<XcmV3MultiAsset>, FungiblesAccessError>', 'Result<XcmVersionedMultiAssets, FungiblesAccessError>'];
|
||||
const skipInspectTypes = ['StagingXcmV3MultiLocation', 'StagingXcmV4Location', 'Result<Vec<XcmV3MultiAsset>, FungiblesAccessError>', 'Result<XcmVersionedMultiAssets, FungiblesAccessError>', 'XcmVersionedLocation'];
|
||||
|
||||
for (const [key, { params, type }] of methodsEntries) {
|
||||
describe(`${key}`, (): void => {
|
||||
|
||||
@@ -64,7 +64,10 @@ export { default as finality } from './finality/definitions.js';
|
||||
export { default as parachains } from './parachains/definitions.js';
|
||||
export { default as poll } from './poll/definitions.js';
|
||||
export { default as purchase } from './purchase/definitions.js';
|
||||
|
||||
// XCM related types
|
||||
export { default as xcm } from './xcm/definitions.js';
|
||||
export { default as xcmRuntimeApi } from './xcmRuntimeApi/definitions.js';
|
||||
|
||||
// other useful types
|
||||
export { default as contractsAbi } from './contractsAbi/definitions.js';
|
||||
|
||||
@@ -281,8 +281,32 @@ const PH_V10: DefinitionsCallEntry['methods'] = {
|
||||
}
|
||||
};
|
||||
|
||||
const PH_V11: DefinitionsCallEntry['methods'] = {
|
||||
claim_queue: {
|
||||
description: 'Claim queue',
|
||||
params: [],
|
||||
type: 'BTreeMap<CoreIndex, Vec<u32>>'
|
||||
}
|
||||
};
|
||||
|
||||
export const runtime: DefinitionsCall = {
|
||||
ParachainHost: [
|
||||
{
|
||||
methods: {
|
||||
...PH_V1_TO_V2,
|
||||
...PH_V2_TO_V3,
|
||||
...PH_V3,
|
||||
...PH_V4,
|
||||
...PH_V5,
|
||||
...PH_V6,
|
||||
...PH_V7,
|
||||
...PH_V8,
|
||||
...PH_V9,
|
||||
...PH_V10,
|
||||
...PH_V11
|
||||
},
|
||||
version: 11
|
||||
},
|
||||
{
|
||||
methods: {
|
||||
...PH_V1_TO_V2,
|
||||
|
||||
@@ -75,3 +75,4 @@ export * from './uniques/types.js';
|
||||
export * from './utility/types.js';
|
||||
export * from './vesting/types.js';
|
||||
export * from './xcm/types.js';
|
||||
export * from './xcmRuntimeApi/types.js';
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
// Copyright 2017-2024 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// order important in structs... :)
|
||||
/* eslint-disable sort-keys */
|
||||
|
||||
import type { Definitions } from '../../types/index.js';
|
||||
|
||||
import { runtime } from './runtime.js';
|
||||
|
||||
export default {
|
||||
rpc: {},
|
||||
runtime,
|
||||
types: {
|
||||
Error: {
|
||||
_enum: ['Unsupported', 'VersionedConversionFailed']
|
||||
}
|
||||
}
|
||||
} as Definitions;
|
||||
@@ -0,0 +1,4 @@
|
||||
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
|
||||
/* eslint-disable */
|
||||
|
||||
export * from './types.js';
|
||||
@@ -0,0 +1,24 @@
|
||||
// Copyright 2017-2024 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { DefinitionsCall } from '../../types/index.js';
|
||||
|
||||
export const runtime: DefinitionsCall = {
|
||||
LocationToAccountApi: [
|
||||
{
|
||||
methods: {
|
||||
convert_location: {
|
||||
description: 'Converts `Location` to `AccountId`',
|
||||
params: [
|
||||
{
|
||||
name: 'location',
|
||||
type: 'XcmVersionedLocation'
|
||||
}
|
||||
],
|
||||
type: 'Result<AccountId, Error>'
|
||||
}
|
||||
},
|
||||
version: 1
|
||||
}
|
||||
]
|
||||
};
|
||||
@@ -0,0 +1,13 @@
|
||||
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
|
||||
/* eslint-disable */
|
||||
|
||||
import type { Enum } from '@polkadot/types-codec';
|
||||
|
||||
/** @name Error */
|
||||
export interface Error extends Enum {
|
||||
readonly isUnsupported: boolean;
|
||||
readonly isVersionedConversionFailed: boolean;
|
||||
readonly type: 'Unsupported' | 'VersionedConversionFailed';
|
||||
}
|
||||
|
||||
export type PHANTOM_XCMRUNTIMEAPI = 'xcmRuntimeApi';
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/types', path: 'auto', type: 'auto', version: '11.0.3' };
|
||||
export const packageInfo = { name: '@polkadot/types', path: 'auto', type: 'auto', version: '12.0.2' };
|
||||
|
||||
@@ -35,6 +35,11 @@ export interface SignerPayloadJSON {
|
||||
*/
|
||||
address: string;
|
||||
|
||||
/**
|
||||
* @description The id of the asset used to pay fees, in hex
|
||||
*/
|
||||
assetId?: number | object;
|
||||
|
||||
/**
|
||||
* @description The checkpoint hash of the block, in hex
|
||||
*/
|
||||
@@ -55,11 +60,21 @@ export interface SignerPayloadJSON {
|
||||
*/
|
||||
genesisHash: HexString;
|
||||
|
||||
/**
|
||||
* @description The metadataHash for the CheckMetadataHash SignedExtension, as hex
|
||||
*/
|
||||
metadataHash?: HexString;
|
||||
|
||||
/**
|
||||
* @description The encoded method (with arguments) in hex
|
||||
*/
|
||||
method: string;
|
||||
|
||||
/**
|
||||
* @description The mode for the CheckMetadataHash SignedExtension, in hex
|
||||
*/
|
||||
mode?: number;
|
||||
|
||||
/**
|
||||
* @description The nonce for this transaction, in hex
|
||||
*/
|
||||
@@ -89,6 +104,12 @@ export interface SignerPayloadJSON {
|
||||
* @description The version of the extrinsic we are dealing with
|
||||
*/
|
||||
version: number;
|
||||
|
||||
/**
|
||||
* @description Optional flag that enables the use of the `signedTransaction` field in
|
||||
* `singAndSend`, `signAsync`, and `dryRun`.
|
||||
*/
|
||||
withSignedTransaction?: boolean;
|
||||
}
|
||||
|
||||
export interface SignerPayloadRawBase {
|
||||
@@ -130,6 +151,18 @@ export interface SignerResult {
|
||||
* @description The resulting signature in hex
|
||||
*/
|
||||
signature: HexString;
|
||||
|
||||
/**
|
||||
* @description The payload constructed by the signer. This allows the
|
||||
* inputted signed transaction to bypass `signAndSend` from adding the signature to the payload,
|
||||
* and instead broadcasting the transaction directly. There is a small validation layer. Please refer
|
||||
* to the implementation for more information. If the inputted signed transaction is not actually signed, it will fail with an error.
|
||||
*
|
||||
* This will also work for `signAsync`. The new payload will be added to the Extrinsic, and will be sent once the consumer calls `.send()`.
|
||||
*
|
||||
* NOTE: This is only implemented for `signPayload`, and will only work when the `withSignedTransaction` option is enabled as an option.
|
||||
*/
|
||||
signedTransaction?: HexString | Uint8Array;
|
||||
}
|
||||
|
||||
export interface Signer {
|
||||
@@ -164,6 +197,9 @@ export interface SignatureOptions {
|
||||
signer?: Signer;
|
||||
tip?: AnyNumber;
|
||||
assetId?: AnyNumber | object;
|
||||
mode?: AnyNumber;
|
||||
metadataHash?: Uint8Array | string;
|
||||
withSignedTransaction?: boolean;
|
||||
}
|
||||
|
||||
interface ExtrinsicSignatureBase {
|
||||
@@ -185,6 +221,8 @@ export interface ExtrinsicPayloadValue {
|
||||
tip: AnyNumber;
|
||||
transactionVersion: AnyNumber;
|
||||
assetId?: AnyNumber | object;
|
||||
mode?: AnyNumber;
|
||||
metadataHash?: AnyU8a;
|
||||
}
|
||||
|
||||
export interface IExtrinsicSignature extends ExtrinsicSignatureBase, Codec {
|
||||
|
||||
@@ -444,26 +444,26 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/api-augment@npm:11.0.3, @polkadot/api-augment@workspace:packages/api-augment":
|
||||
"@polkadot/api-augment@npm:12.0.2, @polkadot/api-augment@workspace:packages/api-augment":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/api-augment@workspace:packages/api-augment"
|
||||
dependencies:
|
||||
"@polkadot/api-base": "npm:11.0.3"
|
||||
"@polkadot/rpc-augment": "npm:11.0.3"
|
||||
"@polkadot/types": "npm:11.0.3"
|
||||
"@polkadot/types-augment": "npm:11.0.3"
|
||||
"@polkadot/types-codec": "npm:11.0.3"
|
||||
"@polkadot/api-base": "npm:12.0.2"
|
||||
"@polkadot/rpc-augment": "npm:12.0.2"
|
||||
"@polkadot/types": "npm:12.0.2"
|
||||
"@polkadot/types-augment": "npm:12.0.2"
|
||||
"@polkadot/types-codec": "npm:12.0.2"
|
||||
"@polkadot/util": "npm:^12.6.2"
|
||||
tslib: "npm:^2.6.2"
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/api-base@npm:11.0.3, @polkadot/api-base@workspace:packages/api-base":
|
||||
"@polkadot/api-base@npm:12.0.2, @polkadot/api-base@workspace:packages/api-base":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/api-base@workspace:packages/api-base"
|
||||
dependencies:
|
||||
"@polkadot/rpc-core": "npm:11.0.3"
|
||||
"@polkadot/types": "npm:11.0.3"
|
||||
"@polkadot/rpc-core": "npm:12.0.2"
|
||||
"@polkadot/types": "npm:12.0.2"
|
||||
"@polkadot/util": "npm:^12.6.2"
|
||||
rxjs: "npm:^7.8.1"
|
||||
tslib: "npm:^2.6.2"
|
||||
@@ -474,13 +474,13 @@ __metadata:
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/api-contract@workspace:packages/api-contract"
|
||||
dependencies:
|
||||
"@polkadot/api": "npm:11.0.3"
|
||||
"@polkadot/api-augment": "npm:11.0.3"
|
||||
"@polkadot/api": "npm:12.0.2"
|
||||
"@polkadot/api-augment": "npm:12.0.2"
|
||||
"@polkadot/keyring": "npm:^12.6.2"
|
||||
"@polkadot/types": "npm:11.0.3"
|
||||
"@polkadot/types-codec": "npm:11.0.3"
|
||||
"@polkadot/types-create": "npm:11.0.3"
|
||||
"@polkadot/types-support": "npm:11.0.3"
|
||||
"@polkadot/types": "npm:12.0.2"
|
||||
"@polkadot/types-codec": "npm:12.0.2"
|
||||
"@polkadot/types-create": "npm:12.0.2"
|
||||
"@polkadot/types-support": "npm:12.0.2"
|
||||
"@polkadot/util": "npm:^12.6.2"
|
||||
"@polkadot/util-crypto": "npm:^12.6.2"
|
||||
rxjs: "npm:^7.8.1"
|
||||
@@ -488,19 +488,19 @@ __metadata:
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/api-derive@npm:11.0.3, @polkadot/api-derive@workspace:packages/api-derive":
|
||||
"@polkadot/api-derive@npm:12.0.2, @polkadot/api-derive@workspace:packages/api-derive":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/api-derive@workspace:packages/api-derive"
|
||||
dependencies:
|
||||
"@polkadot/api": "npm:11.0.3"
|
||||
"@polkadot/api-augment": "npm:11.0.3"
|
||||
"@polkadot/api-base": "npm:11.0.3"
|
||||
"@polkadot/rpc-augment": "npm:11.0.3"
|
||||
"@polkadot/rpc-core": "npm:11.0.3"
|
||||
"@polkadot/rpc-provider": "npm:11.0.3"
|
||||
"@polkadot/types": "npm:11.0.3"
|
||||
"@polkadot/types-codec": "npm:11.0.3"
|
||||
"@polkadot/types-support": "npm:11.0.3"
|
||||
"@polkadot/api": "npm:12.0.2"
|
||||
"@polkadot/api-augment": "npm:12.0.2"
|
||||
"@polkadot/api-base": "npm:12.0.2"
|
||||
"@polkadot/rpc-augment": "npm:12.0.2"
|
||||
"@polkadot/rpc-core": "npm:12.0.2"
|
||||
"@polkadot/rpc-provider": "npm:12.0.2"
|
||||
"@polkadot/types": "npm:12.0.2"
|
||||
"@polkadot/types-codec": "npm:12.0.2"
|
||||
"@polkadot/types-support": "npm:12.0.2"
|
||||
"@polkadot/util": "npm:^12.6.2"
|
||||
"@polkadot/util-crypto": "npm:^12.6.2"
|
||||
rxjs: "npm:^7.8.1"
|
||||
@@ -508,23 +508,23 @@ __metadata:
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/api@npm:11.0.3, @polkadot/api@workspace:packages/api":
|
||||
"@polkadot/api@npm:12.0.2, @polkadot/api@workspace:packages/api":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/api@workspace:packages/api"
|
||||
dependencies:
|
||||
"@polkadot/api-augment": "npm:11.0.3"
|
||||
"@polkadot/api-base": "npm:11.0.3"
|
||||
"@polkadot/api-derive": "npm:11.0.3"
|
||||
"@polkadot/api-augment": "npm:12.0.2"
|
||||
"@polkadot/api-base": "npm:12.0.2"
|
||||
"@polkadot/api-derive": "npm:12.0.2"
|
||||
"@polkadot/keyring": "npm:^12.6.2"
|
||||
"@polkadot/rpc-augment": "npm:11.0.3"
|
||||
"@polkadot/rpc-core": "npm:11.0.3"
|
||||
"@polkadot/rpc-provider": "npm:11.0.3"
|
||||
"@polkadot/types": "npm:11.0.3"
|
||||
"@polkadot/types-augment": "npm:11.0.3"
|
||||
"@polkadot/types-codec": "npm:11.0.3"
|
||||
"@polkadot/types-create": "npm:11.0.3"
|
||||
"@polkadot/types-known": "npm:11.0.3"
|
||||
"@polkadot/types-support": "npm:11.0.3"
|
||||
"@polkadot/rpc-augment": "npm:12.0.2"
|
||||
"@polkadot/rpc-core": "npm:12.0.2"
|
||||
"@polkadot/rpc-provider": "npm:12.0.2"
|
||||
"@polkadot/types": "npm:12.0.2"
|
||||
"@polkadot/types-augment": "npm:12.0.2"
|
||||
"@polkadot/types-codec": "npm:12.0.2"
|
||||
"@polkadot/types-create": "npm:12.0.2"
|
||||
"@polkadot/types-known": "npm:12.0.2"
|
||||
"@polkadot/types-support": "npm:12.0.2"
|
||||
"@polkadot/util": "npm:^12.6.2"
|
||||
"@polkadot/util-crypto": "npm:^12.6.2"
|
||||
eventemitter3: "npm:^5.0.1"
|
||||
@@ -533,34 +533,34 @@ __metadata:
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/dev-test@npm:^0.78.9":
|
||||
version: 0.78.9
|
||||
resolution: "@polkadot/dev-test@npm:0.78.9"
|
||||
"@polkadot/dev-test@npm:^0.79.3":
|
||||
version: 0.79.3
|
||||
resolution: "@polkadot/dev-test@npm:0.79.3"
|
||||
dependencies:
|
||||
jsdom: "npm:^24.0.0"
|
||||
tslib: "npm:^2.6.2"
|
||||
checksum: 10/84d70e797a2d8c5cce12db044308548151cf4289e94ec9569f3852d7cf7ea545abaa595018e4cb14f57bab6c1b050792ed2b788c8d985ae8c594ae9b964a20ac
|
||||
checksum: 10/30c3145c174e09416d713bcd5eb93e13c6f90f71f2d75defbdc11aa09d87d88aad222ef8ca33e8372317692aa51eb976fbf60c9ccf0901f6db0275a550915c69
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/dev-ts@npm:^0.78.9":
|
||||
version: 0.78.9
|
||||
resolution: "@polkadot/dev-ts@npm:0.78.9"
|
||||
"@polkadot/dev-ts@npm:^0.79.3":
|
||||
version: 0.79.3
|
||||
resolution: "@polkadot/dev-ts@npm:0.79.3"
|
||||
dependencies:
|
||||
json5: "npm:^2.2.3"
|
||||
tslib: "npm:^2.6.2"
|
||||
typescript: "npm:^5.3.3"
|
||||
checksum: 10/04294e766f492e4eb0447e6516487be4643da8b70054ad925f360b8110c2549e0e55821e8ebaa9141cf7795fe1ea814fb6151a6c0d1967377704ab90974a9825
|
||||
checksum: 10/097d579647abda70fe71c98c5c9aa79488a25af27a5d17c754dc70aad33770a49637a1d297aa0d50863b6db2e606dffa005c4336886b0030c73eef34180c6863
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/dev@npm:^0.78.9":
|
||||
version: 0.78.9
|
||||
resolution: "@polkadot/dev@npm:0.78.9"
|
||||
"@polkadot/dev@npm:^0.79.3":
|
||||
version: 0.79.3
|
||||
resolution: "@polkadot/dev@npm:0.79.3"
|
||||
dependencies:
|
||||
"@eslint/js": "npm:^8.56.0"
|
||||
"@polkadot/dev-test": "npm:^0.78.9"
|
||||
"@polkadot/dev-ts": "npm:^0.78.9"
|
||||
"@polkadot/dev-test": "npm:^0.79.3"
|
||||
"@polkadot/dev-ts": "npm:^0.79.3"
|
||||
"@rollup/plugin-alias": "npm:^5.1.0"
|
||||
"@rollup/plugin-commonjs": "npm:^25.0.7"
|
||||
"@rollup/plugin-dynamic-import-vars": "npm:^2.1.2"
|
||||
@@ -625,7 +625,7 @@ __metadata:
|
||||
polkadot-exec-rollup: scripts/polkadot-exec-rollup.mjs
|
||||
polkadot-exec-tsc: scripts/polkadot-exec-tsc.mjs
|
||||
polkadot-exec-webpack: scripts/polkadot-exec-webpack.mjs
|
||||
checksum: 10/0658fda631302a895e1fdf0a4cf60baba0fd52e78ebed4df5e3c2555ad6dd78e9982e9514ca54e8f5a0d85a6d7049c9684136012c8751ae30ec095d3fad72d00
|
||||
checksum: 10/fa7b6834ce28e16f2287d26cad481e43ec047d015ba38ffb3b2953326e087191a7393d1d55cb5973dd3803bc07258312946dec98a2cf0956c657283a7c49341d
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -654,39 +654,39 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/rpc-augment@npm:11.0.3, @polkadot/rpc-augment@workspace:packages/rpc-augment":
|
||||
"@polkadot/rpc-augment@npm:12.0.2, @polkadot/rpc-augment@workspace:packages/rpc-augment":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/rpc-augment@workspace:packages/rpc-augment"
|
||||
dependencies:
|
||||
"@polkadot/rpc-core": "npm:11.0.3"
|
||||
"@polkadot/types": "npm:11.0.3"
|
||||
"@polkadot/types-codec": "npm:11.0.3"
|
||||
"@polkadot/rpc-core": "npm:12.0.2"
|
||||
"@polkadot/types": "npm:12.0.2"
|
||||
"@polkadot/types-codec": "npm:12.0.2"
|
||||
"@polkadot/util": "npm:^12.6.2"
|
||||
tslib: "npm:^2.6.2"
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/rpc-core@npm:11.0.3, @polkadot/rpc-core@workspace:packages/rpc-core":
|
||||
"@polkadot/rpc-core@npm:12.0.2, @polkadot/rpc-core@workspace:packages/rpc-core":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/rpc-core@workspace:packages/rpc-core"
|
||||
dependencies:
|
||||
"@polkadot/keyring": "npm:^12.6.2"
|
||||
"@polkadot/rpc-augment": "npm:11.0.3"
|
||||
"@polkadot/rpc-provider": "npm:11.0.3"
|
||||
"@polkadot/types": "npm:11.0.3"
|
||||
"@polkadot/rpc-augment": "npm:12.0.2"
|
||||
"@polkadot/rpc-provider": "npm:12.0.2"
|
||||
"@polkadot/types": "npm:12.0.2"
|
||||
"@polkadot/util": "npm:^12.6.2"
|
||||
rxjs: "npm:^7.8.1"
|
||||
tslib: "npm:^2.6.2"
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/rpc-provider@npm:11.0.3, @polkadot/rpc-provider@workspace:packages/rpc-provider":
|
||||
"@polkadot/rpc-provider@npm:12.0.2, @polkadot/rpc-provider@workspace:packages/rpc-provider":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/rpc-provider@workspace:packages/rpc-provider"
|
||||
dependencies:
|
||||
"@polkadot/keyring": "npm:^12.6.2"
|
||||
"@polkadot/types": "npm:11.0.3"
|
||||
"@polkadot/types-support": "npm:11.0.3"
|
||||
"@polkadot/types": "npm:12.0.2"
|
||||
"@polkadot/types-support": "npm:12.0.2"
|
||||
"@polkadot/util": "npm:^12.6.2"
|
||||
"@polkadot/util-crypto": "npm:^12.6.2"
|
||||
"@polkadot/x-fetch": "npm:^12.6.2"
|
||||
@@ -707,15 +707,15 @@ __metadata:
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/typegen@workspace:packages/typegen"
|
||||
dependencies:
|
||||
"@polkadot/api": "npm:11.0.3"
|
||||
"@polkadot/api-augment": "npm:11.0.3"
|
||||
"@polkadot/rpc-augment": "npm:11.0.3"
|
||||
"@polkadot/rpc-provider": "npm:11.0.3"
|
||||
"@polkadot/types": "npm:11.0.3"
|
||||
"@polkadot/types-augment": "npm:11.0.3"
|
||||
"@polkadot/types-codec": "npm:11.0.3"
|
||||
"@polkadot/types-create": "npm:11.0.3"
|
||||
"@polkadot/types-support": "npm:11.0.3"
|
||||
"@polkadot/api": "npm:12.0.2"
|
||||
"@polkadot/api-augment": "npm:12.0.2"
|
||||
"@polkadot/rpc-augment": "npm:12.0.2"
|
||||
"@polkadot/rpc-provider": "npm:12.0.2"
|
||||
"@polkadot/types": "npm:12.0.2"
|
||||
"@polkadot/types-augment": "npm:12.0.2"
|
||||
"@polkadot/types-codec": "npm:12.0.2"
|
||||
"@polkadot/types-create": "npm:12.0.2"
|
||||
"@polkadot/types-support": "npm:12.0.2"
|
||||
"@polkadot/util": "npm:^12.6.2"
|
||||
"@polkadot/util-crypto": "npm:^12.6.2"
|
||||
"@polkadot/x-ws": "npm:^12.6.2"
|
||||
@@ -732,24 +732,24 @@ __metadata:
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/types-augment@npm:11.0.3, @polkadot/types-augment@workspace:packages/types-augment":
|
||||
"@polkadot/types-augment@npm:12.0.2, @polkadot/types-augment@workspace:packages/types-augment":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/types-augment@workspace:packages/types-augment"
|
||||
dependencies:
|
||||
"@polkadot/types": "npm:11.0.3"
|
||||
"@polkadot/types-codec": "npm:11.0.3"
|
||||
"@polkadot/types": "npm:12.0.2"
|
||||
"@polkadot/types-codec": "npm:12.0.2"
|
||||
"@polkadot/util": "npm:^12.6.2"
|
||||
tslib: "npm:^2.6.2"
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/types-codec@npm:11.0.3, @polkadot/types-codec@workspace:packages/types-codec":
|
||||
"@polkadot/types-codec@npm:12.0.2, @polkadot/types-codec@workspace:packages/types-codec":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/types-codec@workspace:packages/types-codec"
|
||||
dependencies:
|
||||
"@polkadot/types": "npm:11.0.3"
|
||||
"@polkadot/types-augment": "npm:11.0.3"
|
||||
"@polkadot/types-support": "npm:11.0.3"
|
||||
"@polkadot/types": "npm:12.0.2"
|
||||
"@polkadot/types-augment": "npm:12.0.2"
|
||||
"@polkadot/types-support": "npm:12.0.2"
|
||||
"@polkadot/util": "npm:^12.6.2"
|
||||
"@polkadot/util-crypto": "npm:^12.6.2"
|
||||
"@polkadot/x-bigint": "npm:^12.6.2"
|
||||
@@ -757,32 +757,32 @@ __metadata:
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/types-create@npm:11.0.3, @polkadot/types-create@workspace:packages/types-create":
|
||||
"@polkadot/types-create@npm:12.0.2, @polkadot/types-create@workspace:packages/types-create":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/types-create@workspace:packages/types-create"
|
||||
dependencies:
|
||||
"@polkadot/types": "npm:11.0.3"
|
||||
"@polkadot/types-codec": "npm:11.0.3"
|
||||
"@polkadot/types": "npm:12.0.2"
|
||||
"@polkadot/types-codec": "npm:12.0.2"
|
||||
"@polkadot/util": "npm:^12.6.2"
|
||||
tslib: "npm:^2.6.2"
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/types-known@npm:11.0.3, @polkadot/types-known@workspace:packages/types-known":
|
||||
"@polkadot/types-known@npm:12.0.2, @polkadot/types-known@workspace:packages/types-known":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/types-known@workspace:packages/types-known"
|
||||
dependencies:
|
||||
"@polkadot/api": "npm:11.0.3"
|
||||
"@polkadot/api": "npm:12.0.2"
|
||||
"@polkadot/networks": "npm:^12.6.2"
|
||||
"@polkadot/types": "npm:11.0.3"
|
||||
"@polkadot/types-codec": "npm:11.0.3"
|
||||
"@polkadot/types-create": "npm:11.0.3"
|
||||
"@polkadot/types": "npm:12.0.2"
|
||||
"@polkadot/types-codec": "npm:12.0.2"
|
||||
"@polkadot/types-create": "npm:12.0.2"
|
||||
"@polkadot/util": "npm:^12.6.2"
|
||||
tslib: "npm:^2.6.2"
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/types-support@npm:11.0.3, @polkadot/types-support@workspace:packages/types-support":
|
||||
"@polkadot/types-support@npm:12.0.2, @polkadot/types-support@workspace:packages/types-support":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/types-support@workspace:packages/types-support"
|
||||
dependencies:
|
||||
@@ -791,15 +791,15 @@ __metadata:
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/types@npm:11.0.3, @polkadot/types@workspace:packages/types":
|
||||
"@polkadot/types@npm:12.0.2, @polkadot/types@workspace:packages/types":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/types@workspace:packages/types"
|
||||
dependencies:
|
||||
"@polkadot/keyring": "npm:^12.6.2"
|
||||
"@polkadot/types-augment": "npm:11.0.3"
|
||||
"@polkadot/types-codec": "npm:11.0.3"
|
||||
"@polkadot/types-create": "npm:11.0.3"
|
||||
"@polkadot/types-support": "npm:11.0.3"
|
||||
"@polkadot/types-augment": "npm:12.0.2"
|
||||
"@polkadot/types-codec": "npm:12.0.2"
|
||||
"@polkadot/types-create": "npm:12.0.2"
|
||||
"@polkadot/types-support": "npm:12.0.2"
|
||||
"@polkadot/util": "npm:^12.6.2"
|
||||
"@polkadot/util-crypto": "npm:^12.6.2"
|
||||
rxjs: "npm:^7.8.1"
|
||||
@@ -7942,7 +7942,7 @@ __metadata:
|
||||
version: 0.0.0-use.local
|
||||
resolution: "root-workspace-0b6124@workspace:."
|
||||
dependencies:
|
||||
"@polkadot/dev": "npm:^0.78.9"
|
||||
"@polkadot/dev": "npm:^0.79.3"
|
||||
"@polkadot/typegen": "workspace:packages/typegen"
|
||||
"@types/node": "npm:^20.11.6"
|
||||
languageName: unknown
|
||||
|
||||
Reference in New Issue
Block a user