Compare commits

...
34 Commits
Author SHA1 Message Date
github-actions[bot] 0bfa069f1b [CI Skip] release/stable 12.4.2
skip-checks: true
2024-08-21 11:52:56 +00:00
Tarik Gul a204048320 12.4.2 (#5962) 2024-08-21 14:45:16 +03:00
github-actions[bot] a887cd0159 [CI Skip] bump/beta 12.4.2-0-x
skip-checks: true
2024-08-21 11:33:25 +00:00
Tarik Gul 8cddcd2513 Fix derive.balances.all when data is undefined (#5961) 2024-08-21 14:25:48 +03:00
github-actions[bot] 72d1326de6 [CI Skip] release/stable 12.4.1
skip-checks: true
2024-08-19 18:49:45 +00:00
Tarik Gul 27de09999c 12.4.1 (#5958)
* 12.4.1

* Extra info in the changelog
2024-08-19 21:42:10 +03:00
github-actions[bot] 55c6a4f267 [CI Skip] bump/beta 12.3.2-5-x
skip-checks: true
2024-08-19 17:54:03 +00:00
Tarik Gul 92dfe00851 Revise api.derive.balances.all to include ED when necessary (#5957) 2024-08-19 13:46:21 -04:00
github-actions[bot] f82c572704 [CI Skip] bump/beta 12.3.2-4-x
skip-checks: true
2024-08-19 02:21:32 +00:00
Tarik Gul 119f88e6d2 Fix transferable formula (#5956)
* Fix transferable formula

* nits
2024-08-19 05:13:50 +03:00
github-actions[bot] e5dc4065ff [CI Skip] bump/beta 12.3.2-3-x
skip-checks: true
2024-08-18 21:58:52 +00:00
Tarik Gul e2b4e0d3e6 Rework api.derive.balance.{account, all} to work with the new frame account data (#5955)
* Rework api.derive.balance.account to work with the new frame account data

* Ensure api.derive.balances.all correctly returns transferable

* Remove null from transferable

* set back to null
2024-08-19 00:51:19 +03:00
github-actions[bot] 1921d75d01 [CI Skip] bump/beta 12.3.2-2-x
skip-checks: true
2024-08-17 01:22:11 +00:00
Tarik Gul 216435e1a1 Update general deps (patch only) (#5954) 2024-08-17 04:14:29 +03:00
github-actions[bot] 86398e21f8 [CI Skip] bump/beta 12.3.2-1-x
skip-checks: true
2024-08-15 12:04:20 +00:00
gupnikandNikhil Gupta fd84892dac Adds a check for tip in Submittable (#5953)
Co-authored-by: Nikhil Gupta <>
2024-08-15 07:56:47 -04:00
github-actions[bot] 2329af239e [CI Skip] bump/beta 12.3.2-0-x
skip-checks: true
2024-08-09 14:17:05 +00:00
Tarik Gul f95f36110f Bump yarn to 4.4.0 (#5952) 2024-08-09 17:09:30 +03:00
github-actions[bot] 3b7b44f048 [CI Skip] release/stable 12.3.1
skip-checks: true
2024-08-05 19:02:40 +00:00
Tarik Gul a1e7566114 12.3.1 (#5951) 2024-08-05 21:54:54 +03:00
github-actions[bot] ec4ec4fa5e [CI Skip] bump/beta 12.2.4-4-x
skip-checks: true
2024-08-05 17:23:01 +00:00
Tarik Gul cf26e34008 Support for BeefyApi v4 (#5950) 2024-08-05 20:15:13 +03:00
github-actions[bot] 15c440d72f [CI Skip] bump/beta 12.2.4-3-x
skip-checks: true
2024-08-05 15:42:49 +00:00
Tarik Gul 9b9c621265 Update substrate types via metadata (#5949) 2024-08-05 18:35:16 +03:00
github-actions[bot] eb7fd94c20 [CI Skip] bump/beta 12.2.4-2-x
skip-checks: true
2024-08-01 12:08:05 +00:00
Tarik Gul 54baf26d4f Upgrade known Polkadot and Westend CodeUpdated blocks (#5948) 2024-08-01 15:00:25 +03:00
github-actions[bot] 1ab7475a58 [CI Skip] bump/beta 12.2.4-1-x
skip-checks: true
2024-08-01 11:11:41 +00:00
Przemek Rzad b5adbe72f8 Increase Vec max length (#5947) 2024-08-01 07:03:57 -04:00
github-actions[bot] 778d79a9a5 [CI Skip] bump/beta 12.2.4-0-x
skip-checks: true
2024-07-30 03:15:35 +00:00
Jeeyong Um cd4b5e36dd Revert "Alias for Noir types (#5678)" (#5946)
This reverts commit d946a99a35.
2024-07-29 23:08:02 -04:00
github-actions[bot] 9de00f5a46 [CI Skip] release/stable 12.2.3
skip-checks: true
2024-07-29 19:44:17 +00:00
Tarik Gul 60e8148e8c 12.2.3 (#5945) 2024-07-29 22:36:39 +03:00
github-actions[bot] 56358b1016 [CI Skip] bump/beta 12.2.3-0-x
skip-checks: true
2024-07-29 11:36:06 +00:00
Branislav Kontur 68ce512573 Fix for fungiblesApi (#5944) 2024-07-29 07:28:13 -04:00
61 changed files with 4647 additions and 3664 deletions
-894
View File
File diff suppressed because one or more lines are too long
+925
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -12,4 +12,4 @@ logFilters:
nodeLinker: node-modules nodeLinker: node-modules
yarnPath: .yarn/releases/yarn-4.3.1.cjs yarnPath: .yarn/releases/yarn-4.4.0.cjs
+45
View File
@@ -1,5 +1,50 @@
# CHANGELOG # CHANGELOG
## 12.4.2 Aug 21, 2024
Changes:
- Fix derive.balances.all when data is undefined ([#5961](https://github.com/polkadot-js/api/pull/5961))
## 12.4.1 Aug 19, 2024
Contributed:
- Add a check for tip in Submittable (Thanks to https://github.com/gupnik) ([#5953](https://github.com/polkadot-js/api/pull/5953))
Changes:
- Bump yarn to 4.4.0 ([#5952](https://github.com/polkadot-js/api/pull/5952))
- Update General Deps (patch only) ([#5954](https://github.com/polkadot-js/api/pull/5954))
- Rework api.derive.balance.{account, all} to work with the new frame account data ([#5955](https://github.com/polkadot-js/api/pull/5955))
- Adds `transferable` and `frameSystemAccountInfo` to the output of `api.derive.balance.all`
- Revise api.derive.balances.all to include ED when necessary ([#5957](https://github.com/polkadot-js/api/pull/5957))
- Fixes the formula used for transferable balance
## 12.3.1 Aug 5, 2024
Contributed:
- Revert alias for Noir types (Thanks to https://github.com/conr2d) ([#5946](https://github.com/polkadot-js/api/pull/5946))
- Increase Vec Max Length (Thanks to https://github.com/rzadp) ([#5947](https://github.com/polkadot-js/api/pull/5947))
Changes:
- Upgrade known Polkadot and Westend CodeUpdated blocks ([#5948](https://github.com/polkadot-js/api/pull/5948))
- Update substrate types via metadata ([#5949](https://github.com/polkadot-js/api/pull/5949))
- Note: Please review the above PR for any changes to the augmented types.
- Support for BeefyApi v4 ([#5950](https://github.com/polkadot-js/api/pull/5950))
## 12.2.3 July 29, 2024
Contributed:
- Fix Fungible Api (Thanks to https://github.com/bkontur)
## 12.2.2 July 25, 2024 ## 12.2.2 July 25, 2024
Changes: Changes:
+5 -3
View File
@@ -1,6 +1,6 @@
3512 Jaco Bump deps (#5785) 3512 Jaco Bump deps (#5785)
92 Tarik Gul 12.4.2 (#5962)
83 Amaury Martiny StatementKind: Regular and Saft (#2303) 83 Amaury Martiny StatementKind: Regular and Saft (#2303)
79 Tarik Gul 12.2.2 (#5943)
37 Keith Ingram Update contract types and rpc (#4541) 37 Keith Ingram Update contract types and rpc (#4541)
35 Stefanie Doll Updated child storage parameters (#1709) 35 Stefanie Doll Updated child storage parameters (#1709)
20 Luke Schoen fix: Fixes TypeError: Cannot read property 'vesting' of undefined (#1970) 20 Luke Schoen fix: Fixes TypeError: Cannot read property 'vesting' of undefined (#1970)
@@ -10,8 +10,8 @@
11 Ian He HttpProvider support clone() (#3949) 11 Ian He HttpProvider support clone() (#3949)
10 Axel Chalon Make Enum/Tuple constructor use value directly if instance (#1954) 10 Axel Chalon Make Enum/Tuple constructor use value directly if instance (#1954)
6 Andreea Eftene Update check for contract instantiation (#5699) 6 Andreea Eftene Update check for contract instantiation (#5699)
6 Branislav Kontur Fix for fungiblesApi (#5944)
5 Alberto Nicolas Penayo added use of accountNonceApi (#5915) 5 Alberto Nicolas Penayo added use of accountNonceApi (#5915)
5 Branislav Kontur Adjusted `LocationToAccountApi` (#5919)
5 Chevdor Fix metadata package link (#3458) 5 Chevdor Fix metadata package link (#3458)
5 Jake Naviasky Fixing approvalFlagsToBools. (#1250) 5 Jake Naviasky Fixing approvalFlagsToBools. (#1250)
5 Julien Eluard General WsProvider extensibility improvements (#5467) 5 Julien Eluard General WsProvider extensibility improvements (#5467)
@@ -29,6 +29,7 @@
3 Ewa Kowalska Handle no council for bounties proposals (#3062) 3 Ewa Kowalska Handle no council for bounties proposals (#3062)
3 hamidra add support for n key entries for NMaps (#3886) 3 hamidra add support for n key entries for NMaps (#3886)
3 Hamza Tokuchi more typos (#2532) 3 Hamza Tokuchi more typos (#2532)
3 Jeeyong Um Revert "Alias for Noir types (#5678)" (#5946)
3 Josep M Sobrepere docs: improve rpc-provider README (#4719) 3 Josep M Sobrepere docs: improve rpc-provider README (#4719)
3 KarishmaBothara Backward compatibility thing (#3511) 3 KarishmaBothara Backward compatibility thing (#3511)
3 Miguel Hervas Adding RT4 Types (#3007) 3 Miguel Hervas Adding RT4 Types (#3007)
@@ -42,7 +43,6 @@
2 Jakub Pánik All heads subscription (#1899) 2 Jakub Pánik All heads subscription (#1899)
2 James Lefrère Add `.eq()` usage to docs and fix docs typos (#1405) 2 James Lefrère Add `.eq()` usage to docs and fix docs typos (#1405)
2 Javier Viola add muln(2), as was in the old code (#5829) 2 Javier Viola add muln(2), as was in the old code (#5829)
2 Jeeyong Um Alias for Noir types (#5678)
2 Jegor Sidorenko Use Box<XcmV3MultiLocation> instead of MultiAssetId (#5700) 2 Jegor Sidorenko Use Box<XcmV3MultiLocation> instead of MultiAssetId (#5700)
2 Keith Yeung Allow keyPrefix to accept an additional argument for double maps (#2230) 2 Keith Yeung Allow keyPrefix to accept an additional argument for double maps (#2230)
2 MOZGIII Follow-up fix after #4665 (#4666) 2 MOZGIII Follow-up fix after #4665 (#4666)
@@ -80,6 +80,7 @@
1 Gérard Dethier Fix LRUCache memory leak. (#4520) 1 Gérard Dethier Fix LRUCache memory leak. (#4520)
1 Gerben van de Wiel Adding some extra notes on changes in the specname (#2329) 1 Gerben van de Wiel Adding some extra notes on changes in the specname (#2329)
1 girazoki Implement xcm payment api (#5911) 1 girazoki Implement xcm payment api (#5911)
1 gupnik Adds a check for tip in Submittable (#5953)
1 HackFisher fix OutboundLaneData types (#3992) 1 HackFisher fix OutboundLaneData types (#3992)
1 Hoani Bryson Multiple Endpoint support for WsProvider (#2234) 1 Hoani Bryson Multiple Endpoint support for WsProvider (#2234)
1 Hyungsuk Kang Update fees.ts (#1014) 1 Hyungsuk Kang Update fees.ts (#1014)
@@ -112,6 +113,7 @@
1 philipstanislaus Update types for centrifuge chain v1.2.0 (#2424) 1 philipstanislaus Update types for centrifuge chain v1.2.0 (#2424)
1 Pierre Krieger Update substrate/connect to 0.7.6 (#4940) 1 Pierre Krieger Update substrate/connect to 0.7.6 (#4940)
1 polymath-eric Allow unset external signer (#5649) 1 polymath-eric Allow unset external signer (#5649)
1 Przemek Rzad Increase Vec max length (#5947)
1 Qinxuan Chen Add fp_account::AccountId20 mapping (#5551) 1 Qinxuan Chen Add fp_account::AccountId20 mapping (#5551)
1 qiuhao update DeriveCustom type (#2581) 1 qiuhao update DeriveCustom type (#2581)
1 r0t0r-r0t0r Fix memory leak on raw rpc call (#4505) 1 r0t0r-r0t0r Fix memory leak on raw rpc call (#4505)
+5 -5
View File
@@ -6,7 +6,7 @@
}, },
"homepage": "https://github.com/polkadot-js/api#readme", "homepage": "https://github.com/polkadot-js/api#readme",
"license": "Apache-2.0", "license": "Apache-2.0",
"packageManager": "yarn@4.3.1", "packageManager": "yarn@4.4.0",
"private": true, "private": true,
"repository": { "repository": {
"type": "git", "type": "git",
@@ -14,10 +14,10 @@
}, },
"sideEffects": false, "sideEffects": false,
"type": "module", "type": "module",
"version": "12.2.2", "version": "12.4.2",
"versions": { "versions": {
"git": "12.2.2", "git": "12.4.2",
"npm": "12.2.2" "npm": "12.4.2"
}, },
"workspaces": [ "workspaces": [
"packages/*" "packages/*"
@@ -42,7 +42,7 @@
"devDependencies": { "devDependencies": {
"@polkadot/dev": "^0.79.3", "@polkadot/dev": "^0.79.3",
"@polkadot/typegen": "workspace:packages/typegen", "@polkadot/typegen": "workspace:packages/typegen",
"@types/node": "^20.11.6" "@types/node": "^20.15.0"
}, },
"resolutions": { "resolutions": {
"typescript": "^5.3.3" "typescript": "^5.3.3"
+7 -7
View File
@@ -18,15 +18,15 @@
"./packageDetect.cjs" "./packageDetect.cjs"
], ],
"type": "module", "type": "module",
"version": "12.2.2", "version": "12.4.2",
"main": "index.js", "main": "index.js",
"dependencies": { "dependencies": {
"@polkadot/api-base": "12.2.2", "@polkadot/api-base": "12.4.2",
"@polkadot/rpc-augment": "12.2.2", "@polkadot/rpc-augment": "12.4.2",
"@polkadot/types": "12.2.2", "@polkadot/types": "12.4.2",
"@polkadot/types-augment": "12.2.2", "@polkadot/types-augment": "12.4.2",
"@polkadot/types-codec": "12.2.2", "@polkadot/types-codec": "12.4.2",
"@polkadot/util": "^13.0.2", "@polkadot/util": "^13.0.2",
"tslib": "^2.6.2" "tslib": "^2.6.3"
} }
} }
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev // Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '12.2.2' }; export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '12.4.2' };
@@ -353,6 +353,11 @@ declare module '@polkadot/api-base/types/consts' {
* The maximum allowable length in bytes for storage keys. * The maximum allowable length in bytes for storage keys.
**/ **/
maxStorageKeyLen: u32 & AugmentedConst<ApiType>; maxStorageKeyLen: u32 & AugmentedConst<ApiType>;
/**
* The maximum size of the transient storage in bytes.
* This includes keys, values, and previous entries used for storage rollback.
**/
maxTransientStorageSize: u32 & AugmentedConst<ApiType>;
/** /**
* Cost schedule and limits. * Cost schedule and limits.
**/ **/
+18 -2
View File
@@ -484,9 +484,21 @@ declare module '@polkadot/api-base/types/errors' {
**/ **/
InvalidConfiguration: AugmentedError<ApiType>; InvalidConfiguration: AugmentedError<ApiType>;
/** /**
* An equivocation proof provided as part of an equivocation report is invalid. * A double voting proof provided as part of an equivocation report is invalid.
**/ **/
InvalidEquivocationProof: AugmentedError<ApiType>; InvalidDoubleVotingProof: AugmentedError<ApiType>;
/**
* The session of the equivocation proof is invalid
**/
InvalidEquivocationProofSession: AugmentedError<ApiType>;
/**
* A fork voting proof provided as part of an equivocation report is invalid.
**/
InvalidForkVotingProof: AugmentedError<ApiType>;
/**
* A future block voting proof provided as part of an equivocation report is invalid.
**/
InvalidFutureBlockVotingProof: AugmentedError<ApiType>;
/** /**
* A key ownership proof provided as part of an equivocation report is invalid. * A key ownership proof provided as part of an equivocation report is invalid.
**/ **/
@@ -801,6 +813,10 @@ declare module '@polkadot/api-base/types/errors' {
* The executed contract exhausted its gas limit. * The executed contract exhausted its gas limit.
**/ **/
OutOfGas: AugmentedError<ApiType>; OutOfGas: AugmentedError<ApiType>;
/**
* Can not add more data to transient storage.
**/
OutOfTransientStorage: AugmentedError<ApiType>;
/** /**
* The output buffer supplied to a contract API call was too small. * The output buffer supplied to a contract API call was too small.
**/ **/
@@ -10,7 +10,7 @@ import type { Bytes, Null, Option, Result, U64, Vec, bool, u128, u32 } from '@po
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types'; import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
import type { TAssetBalance } from '@polkadot/types/interfaces/assets'; import type { TAssetBalance } from '@polkadot/types/interfaces/assets';
import type { BabeEquivocationProof, BabeGenesisConfiguration, Epoch, OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe'; import type { BabeEquivocationProof, BabeGenesisConfiguration, Epoch, OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
import type { BeefyEquivocationProof, ValidatorSet, ValidatorSetId } from '@polkadot/types/interfaces/beefy'; import type { ValidatorSet, ValidatorSetId } from '@polkadot/types/interfaces/beefy';
import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfaces/blockbuilder'; import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfaces/blockbuilder';
import type { BlockHash } from '@polkadot/types/interfaces/chain'; import type { BlockHash } from '@polkadot/types/interfaces/chain';
import type { AuthorityId } from '@polkadot/types/interfaces/consensus'; import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
@@ -29,7 +29,7 @@ import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
import type { StatementStoreInvalidStatement, StatementStoreStatementSource, StatementStoreValidStatement } from '@polkadot/types/interfaces/statement'; import type { StatementStoreInvalidStatement, StatementStoreStatementSource, StatementStoreValidStatement } from '@polkadot/types/interfaces/statement';
import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system'; import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system';
import type { TransactionSource, TransactionValidity } from '@polkadot/types/interfaces/txqueue'; import type { TransactionSource, TransactionValidity } from '@polkadot/types/interfaces/txqueue';
import type { SpStatementStoreStatement, StagingXcmV3MultiLocation } from '@polkadot/types/lookup'; import type { SpConsensusBeefyDoubleVotingProof, SpStatementStoreStatement, StagingXcmV3MultiLocation } from '@polkadot/types/lookup';
import type { IExtrinsic, Observable } from '@polkadot/types/types'; import type { IExtrinsic, Observable } from '@polkadot/types/types';
export type __AugmentedCall<ApiType extends ApiTypes> = AugmentedCall<ApiType>; export type __AugmentedCall<ApiType extends ApiTypes> = AugmentedCall<ApiType>;
@@ -120,7 +120,7 @@ declare module '@polkadot/api-base/types/calls' {
**/ **/
[key: string]: DecoratedCallBase<ApiType>; [key: string]: DecoratedCallBase<ApiType>;
}; };
/** 0x49eaaf1b548a0cb0/3 */ /** 0x49eaaf1b548a0cb0/4 */
beefyApi: { beefyApi: {
/** /**
* Return the block number where BEEFY consensus is enabled/started * Return the block number where BEEFY consensus is enabled/started
@@ -131,9 +131,9 @@ declare module '@polkadot/api-base/types/calls' {
**/ **/
generateKeyOwnershipProof: AugmentedCall<ApiType, (setId: ValidatorSetId | AnyNumber | Uint8Array, authorityId: AuthorityId | string | Uint8Array) => Observable<Option<OpaqueKeyOwnershipProof>>>; generateKeyOwnershipProof: AugmentedCall<ApiType, (setId: ValidatorSetId | AnyNumber | Uint8Array, authorityId: AuthorityId | string | Uint8Array) => Observable<Option<OpaqueKeyOwnershipProof>>>;
/** /**
* Submits an unsigned extrinsic to report an equivocation. * Submits an unsigned extrinsic to report a double voting equivocation.
**/ **/
submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocationProof: BeefyEquivocationProof | { first?: any; second?: any } | string | Uint8Array, keyOwnerProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>; submitReportDoubleVotingUnsignedExtrinsic: AugmentedCall<ApiType, (equivocationProof: SpConsensusBeefyDoubleVotingProof | { first?: any; second?: any } | string | Uint8Array, keyOwnerProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
/** /**
* Return the current active BEEFY validator set * Return the current active BEEFY validator set
**/ **/
+37 -3
View File
@@ -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 { 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 { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime'; import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, FrameSupportTokensFungibleUnionOfNativeOrWithId, KitchensinkRuntimeOriginCaller, KitchensinkRuntimeProxyType, KitchensinkRuntimeRuntimeParameters, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceDisbandWitness, PalletAllianceUnscrupulousItem, PalletBalancesAdjustmentDirection, PalletBrokerConfigRecord, PalletBrokerCoreMask, PalletBrokerFinality, PalletBrokerOnDemandRevenueRecord, PalletBrokerRegionId, PalletBrokerScheduleItem, PalletContractsWasmDeterminism, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletCoreFellowshipParamsTypeOption, PalletCoreFellowshipParamsTypeU128, 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'; import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, FrameSupportTokensFungibleUnionOfNativeOrWithId, KitchensinkRuntimeOriginCaller, KitchensinkRuntimeProxyType, KitchensinkRuntimeRuntimeParameters, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceDisbandWitness, PalletAllianceUnscrupulousItem, PalletBalancesAdjustmentDirection, PalletBrokerConfigRecord, PalletBrokerCoreMask, PalletBrokerFinality, PalletBrokerOnDemandRevenueRecord, PalletBrokerRegionId, PalletBrokerScheduleItem, PalletContractsWasmDeterminism, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletCoreFellowshipParamsTypeOption, PalletCoreFellowshipParamsTypeU128, 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, SpConsensusBeefyForkVotingProof, SpConsensusBeefyFutureBlockVotingProof, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpMixnetAppSignature, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>; export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>; export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
@@ -988,7 +988,7 @@ declare module '@polkadot/api-base/types/submittable' {
* against the extracted offender. If both are valid, the offence * against the extracted offender. If both are valid, the offence
* will be reported. * will be reported.
**/ **/
reportEquivocation: AugmentedSubmittable<(equivocationProof: SpConsensusBeefyDoubleVotingProof | { first?: any; second?: any } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusBeefyDoubleVotingProof, SpSessionMembershipProof]>; reportDoubleVoting: 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 * Report voter equivocation/misbehavior. This method will verify the
* equivocation proof and validate the given key ownership proof * equivocation proof and validate the given key ownership proof
@@ -1000,7 +1000,41 @@ declare module '@polkadot/api-base/types/submittable' {
* if the block author is defined it will be defined as the equivocation * if the block author is defined it will be defined as the equivocation
* reporter. * reporter.
**/ **/
reportEquivocationUnsigned: AugmentedSubmittable<(equivocationProof: SpConsensusBeefyDoubleVotingProof | { first?: any; second?: any } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusBeefyDoubleVotingProof, SpSessionMembershipProof]>; reportDoubleVotingUnsigned: AugmentedSubmittable<(equivocationProof: SpConsensusBeefyDoubleVotingProof | { first?: any; second?: any } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusBeefyDoubleVotingProof, SpSessionMembershipProof]>;
/**
* Report fork voting equivocation. This method will verify the equivocation proof
* and validate the given key ownership proof against the extracted offender.
* If both are valid, the offence will be reported.
**/
reportForkVoting: AugmentedSubmittable<(equivocationProof: SpConsensusBeefyForkVotingProof | { vote?: any; ancestryProof?: any; header?: any } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusBeefyForkVotingProof, SpSessionMembershipProof]>;
/**
* Report fork voting equivocation. This method will verify the equivocation proof
* and validate the given key ownership proof against the extracted offender.
* If both are valid, the offence will be reported.
*
* This extrinsic must be called unsigned and it is expected that only
* block authors will call it (validated in `ValidateUnsigned`), as such
* if the block author is defined it will be defined as the equivocation
* reporter.
**/
reportForkVotingUnsigned: AugmentedSubmittable<(equivocationProof: SpConsensusBeefyForkVotingProof | { vote?: any; ancestryProof?: any; header?: any } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusBeefyForkVotingProof, SpSessionMembershipProof]>;
/**
* Report future block voting equivocation. This method will verify the equivocation proof
* and validate the given key ownership proof against the extracted offender.
* If both are valid, the offence will be reported.
**/
reportFutureBlockVoting: AugmentedSubmittable<(equivocationProof: SpConsensusBeefyFutureBlockVotingProof | { vote?: any } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusBeefyFutureBlockVotingProof, SpSessionMembershipProof]>;
/**
* Report future block voting equivocation. This method will verify the equivocation proof
* and validate the given key ownership proof against the extracted offender.
* If both are valid, the offence will be reported.
*
* This extrinsic must be called unsigned and it is expected that only
* block authors will call it (validated in `ValidateUnsigned`), as such
* if the block author is defined it will be defined as the equivocation
* reporter.
**/
reportFutureBlockVotingUnsigned: AugmentedSubmittable<(equivocationProof: SpConsensusBeefyFutureBlockVotingProof | { vote?: any } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusBeefyFutureBlockVotingProof, SpSessionMembershipProof]>;
/** /**
* Reset BEEFY consensus by setting a new BEEFY genesis at `delay_in_blocks` blocks in the * Reset BEEFY consensus by setting a new BEEFY genesis at `delay_in_blocks` blocks in the
* future. * future.
+4 -4
View File
@@ -18,13 +18,13 @@
"./packageDetect.cjs" "./packageDetect.cjs"
], ],
"type": "module", "type": "module",
"version": "12.2.2", "version": "12.4.2",
"main": "index.js", "main": "index.js",
"dependencies": { "dependencies": {
"@polkadot/rpc-core": "12.2.2", "@polkadot/rpc-core": "12.4.2",
"@polkadot/types": "12.2.2", "@polkadot/types": "12.4.2",
"@polkadot/util": "^13.0.2", "@polkadot/util": "^13.0.2",
"rxjs": "^7.8.1", "rxjs": "^7.8.1",
"tslib": "^2.6.2" "tslib": "^2.6.3"
} }
} }
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev // Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '12.2.2' }; export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '12.4.2' };
+9 -9
View File
@@ -18,22 +18,22 @@
"./packageDetect.cjs" "./packageDetect.cjs"
], ],
"type": "module", "type": "module",
"version": "12.2.2", "version": "12.4.2",
"main": "index.js", "main": "index.js",
"dependencies": { "dependencies": {
"@polkadot/api": "12.2.2", "@polkadot/api": "12.4.2",
"@polkadot/api-augment": "12.2.2", "@polkadot/api-augment": "12.4.2",
"@polkadot/types": "12.2.2", "@polkadot/types": "12.4.2",
"@polkadot/types-codec": "12.2.2", "@polkadot/types-codec": "12.4.2",
"@polkadot/types-create": "12.2.2", "@polkadot/types-create": "12.4.2",
"@polkadot/util": "^13.0.2", "@polkadot/util": "^13.0.2",
"@polkadot/util-crypto": "^13.0.2", "@polkadot/util-crypto": "^13.0.2",
"rxjs": "^7.8.1", "rxjs": "^7.8.1",
"tslib": "^2.6.2" "tslib": "^2.6.3"
}, },
"devDependencies": { "devDependencies": {
"@polkadot/api-augment": "12.2.2", "@polkadot/api-augment": "12.4.2",
"@polkadot/keyring": "^13.0.2", "@polkadot/keyring": "^13.0.2",
"@polkadot/types-support": "12.2.2" "@polkadot/types-support": "12.4.2"
} }
} }
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev // Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '12.2.2' }; export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '12.4.2' };
+13 -13
View File
@@ -18,25 +18,25 @@
"./packageDetect.cjs" "./packageDetect.cjs"
], ],
"type": "module", "type": "module",
"version": "12.2.2", "version": "12.4.2",
"main": "index.js", "main": "index.js",
"dependencies": { "dependencies": {
"@polkadot/api": "12.2.2", "@polkadot/api": "12.4.2",
"@polkadot/api-augment": "12.2.2", "@polkadot/api-augment": "12.4.2",
"@polkadot/api-base": "12.2.2", "@polkadot/api-base": "12.4.2",
"@polkadot/rpc-core": "12.2.2", "@polkadot/rpc-core": "12.4.2",
"@polkadot/types": "12.2.2", "@polkadot/types": "12.4.2",
"@polkadot/types-codec": "12.2.2", "@polkadot/types-codec": "12.4.2",
"@polkadot/util": "^13.0.2", "@polkadot/util": "^13.0.2",
"@polkadot/util-crypto": "^13.0.2", "@polkadot/util-crypto": "^13.0.2",
"rxjs": "^7.8.1", "rxjs": "^7.8.1",
"tslib": "^2.6.2" "tslib": "^2.6.3"
}, },
"devDependencies": { "devDependencies": {
"@polkadot/api": "12.2.2", "@polkadot/api": "12.4.2",
"@polkadot/api-augment": "12.2.2", "@polkadot/api-augment": "12.4.2",
"@polkadot/rpc-augment": "12.2.2", "@polkadot/rpc-augment": "12.4.2",
"@polkadot/rpc-provider": "12.2.2", "@polkadot/rpc-provider": "12.4.2",
"@polkadot/types-support": "12.2.2" "@polkadot/types-support": "12.4.2"
} }
} }
+49 -14
View File
@@ -4,6 +4,7 @@
import type { Observable } from 'rxjs'; import type { Observable } from 'rxjs';
import type { QueryableStorageEntry } from '@polkadot/api-base/types'; import type { QueryableStorageEntry } from '@polkadot/api-base/types';
import type { AccountData, AccountId, AccountIndex, AccountInfo, Address, Balance, Index } from '@polkadot/types/interfaces'; import type { AccountData, AccountId, AccountIndex, AccountInfo, Address, Balance, Index } from '@polkadot/types/interfaces';
import type { FrameSystemAccountInfo, PalletBalancesAccountData } from '@polkadot/types/lookup';
import type { ITuple } from '@polkadot/types/types'; import type { ITuple } from '@polkadot/types/types';
import type { DeriveApi, DeriveBalancesAccount, DeriveBalancesAccountData } from '../types.js'; import type { DeriveApi, DeriveBalancesAccount, DeriveBalancesAccountData } from '../types.js';
@@ -15,7 +16,9 @@ import { memo } from '../util/index.js';
type BalanceResult = [Balance, Balance, Balance, Balance]; type BalanceResult = [Balance, Balance, Balance, Balance];
type Result = [Index, BalanceResult[]]; type Result = [Index, BalanceResult[], AccountType];
interface AccountType { isFrameAccountData: boolean }
type DeriveCustomAccount = DeriveApi['derive'] & Record<string, { type DeriveCustomAccount = DeriveApi['derive'] & Record<string, {
customAccount?: DeriveApi['query']['balances']['account'] customAccount?: DeriveApi['query']['balances']['account']
@@ -25,24 +28,38 @@ function zeroBalance (api: DeriveApi) {
return api.registry.createType('Balance'); return api.registry.createType('Balance');
} }
function getBalance (api: DeriveApi, [freeBalance, reservedBalance, frozenFee, frozenMisc]: BalanceResult): DeriveBalancesAccountData { function getBalance (api: DeriveApi, [freeBalance, reservedBalance, frozenFeeOrFrozen, frozenMiscOrFlags]: BalanceResult, accType: AccountType): DeriveBalancesAccountData {
const votingBalance = api.registry.createType('Balance', freeBalance.toBn()); const votingBalance = api.registry.createType('Balance', freeBalance.toBn());
if (accType.isFrameAccountData) {
return {
frameSystemAccountInfo: {
flags: frozenMiscOrFlags,
frozen: frozenFeeOrFrozen
},
freeBalance,
frozenFee: api.registry.createType('Balance', 0),
frozenMisc: api.registry.createType('Balance', 0),
reservedBalance,
votingBalance
};
}
return { return {
freeBalance, freeBalance,
frozenFee, frozenFee: frozenFeeOrFrozen,
frozenMisc, frozenMisc: frozenMiscOrFlags,
reservedBalance, reservedBalance,
votingBalance votingBalance
}; };
} }
function calcBalances (api: DeriveApi, [accountId, [accountNonce, [primary, ...additional]]]: [AccountId, Result]): DeriveBalancesAccount { function calcBalances (api: DeriveApi, [accountId, [accountNonce, [primary, ...additional], accType]]: [AccountId, Result]): DeriveBalancesAccount {
return objectSpread({ return objectSpread({
accountId, accountId,
accountNonce, accountNonce,
additional: additional.map((b) => getBalance(api, b)) additional: additional.map((b) => getBalance(api, b, accType))
}, getBalance(api, primary)); }, getBalance(api, primary, accType));
} }
// old // old
@@ -54,7 +71,8 @@ function queryBalancesFree (api: DeriveApi, accountId: AccountId): Observable<Re
]).pipe( ]).pipe(
map(([freeBalance, reservedBalance, accountNonce]): Result => [ map(([freeBalance, reservedBalance, accountNonce]): Result => [
accountNonce, accountNonce,
[[freeBalance, reservedBalance, zeroBalance(api), zeroBalance(api)]] [[freeBalance, reservedBalance, zeroBalance(api), zeroBalance(api)]],
{ isFrameAccountData: false }
]) ])
); );
} }
@@ -62,7 +80,8 @@ function queryBalancesFree (api: DeriveApi, accountId: AccountId): Observable<Re
function queryNonceOnly (api: DeriveApi, accountId: AccountId): Observable<Result> { function queryNonceOnly (api: DeriveApi, accountId: AccountId): Observable<Result> {
const fill = (nonce: Index): Result => [ const fill = (nonce: Index): Result => [
nonce, nonce,
[[zeroBalance(api), zeroBalance(api), zeroBalance(api), zeroBalance(api)]] [[zeroBalance(api), zeroBalance(api), zeroBalance(api), zeroBalance(api)]],
{ isFrameAccountData: false }
]; ];
return isFunction(api.query.system.account) return isFunction(api.query.system.account)
@@ -83,7 +102,8 @@ function queryBalancesAccount (api: DeriveApi, accountId: AccountId, modules: st
const extract = (nonce: Index, data: AccountData[]): Result => [ const extract = (nonce: Index, data: AccountData[]): Result => [
nonce, nonce,
data.map(({ feeFrozen, free, miscFrozen, reserved }): BalanceResult => [free, reserved, feeFrozen, miscFrozen]) data.map(({ feeFrozen, free, miscFrozen, reserved }): BalanceResult => [free, reserved, feeFrozen, miscFrozen]),
{ isFrameAccountData: false }
]; ];
// NOTE this is for the first case where we do have instances specified // NOTE this is for the first case where we do have instances specified
@@ -106,7 +126,7 @@ function queryBalancesAccount (api: DeriveApi, accountId: AccountId, modules: st
function querySystemAccount (api: DeriveApi, accountId: AccountId): Observable<Result> { function querySystemAccount (api: DeriveApi, accountId: AccountId): Observable<Result> {
// AccountInfo is current, support old, eg. Edgeware // AccountInfo is current, support old, eg. Edgeware
return api.query.system.account<AccountInfo | ITuple<[Index, AccountData]>>(accountId).pipe( return api.query.system.account<AccountInfo | FrameSystemAccountInfo | ITuple<[Index, AccountData]>>(accountId).pipe(
map((infoOrTuple): Result => { map((infoOrTuple): Result => {
const data = (infoOrTuple as AccountInfo).nonce const data = (infoOrTuple as AccountInfo).nonce
? (infoOrTuple as AccountInfo).data ? (infoOrTuple as AccountInfo).data
@@ -117,16 +137,30 @@ function querySystemAccount (api: DeriveApi, accountId: AccountId): Observable<R
if (!data || data.isEmpty) { if (!data || data.isEmpty) {
return [ return [
nonce, nonce,
[[zeroBalance(api), zeroBalance(api), zeroBalance(api), zeroBalance(api)]] [[zeroBalance(api), zeroBalance(api), zeroBalance(api), zeroBalance(api)]],
{ isFrameAccountData: false }
]; ];
} }
const isFrameType = !!(infoOrTuple as FrameSystemAccountInfo).data.frozen;
if (isFrameType) {
const { flags, free, frozen, reserved } = (data as unknown as PalletBalancesAccountData);
return [
nonce,
[[free, reserved, frozen, flags]],
{ isFrameAccountData: true }
];
} else {
const { feeFrozen, free, miscFrozen, reserved } = data; const { feeFrozen, free, miscFrozen, reserved } = data;
return [ return [
nonce, nonce,
[[free, reserved, feeFrozen, miscFrozen]] [[free, reserved, feeFrozen, miscFrozen]],
{ isFrameAccountData: false }
]; ];
}
}) })
); );
} }
@@ -168,7 +202,8 @@ export function account (instanceId: string, api: DeriveApi): (address: AccountI
]) ])
: of([api.registry.createType('AccountId'), [ : of([api.registry.createType('AccountId'), [
api.registry.createType('Index'), api.registry.createType('Index'),
[[zeroBalance(api), zeroBalance(api), zeroBalance(api), zeroBalance(api)]] [[zeroBalance(api), zeroBalance(api), zeroBalance(api), zeroBalance(api)]],
{ isFrameAccountData: false }
]]) ]])
) )
), ),
+17
View File
@@ -54,11 +54,28 @@ function calcLocked (api: DeriveApi, bestNumber: BlockNumber, locks: (PalletBala
function calcShared (api: DeriveApi, bestNumber: BlockNumber, data: DeriveBalancesAccountData, locks: (PalletBalancesBalanceLock | BalanceLockTo212)[]): DeriveBalancesAllAccountData { function calcShared (api: DeriveApi, bestNumber: BlockNumber, data: DeriveBalancesAccountData, locks: (PalletBalancesBalanceLock | BalanceLockTo212)[]): DeriveBalancesAllAccountData {
const { allLocked, lockedBalance, lockedBreakdown, vestingLocked } = calcLocked(api, bestNumber, locks); const { allLocked, lockedBalance, lockedBreakdown, vestingLocked } = calcLocked(api, bestNumber, locks);
let transferable = null;
if (data?.frameSystemAccountInfo?.frozen) {
const { frameSystemAccountInfo, freeBalance, reservedBalance } = data;
const noFrozenReserved = frameSystemAccountInfo.frozen.isZero() && reservedBalance.isZero();
const ED = api.consts.balances.existentialDeposit;
const maybeED = noFrozenReserved ? new BN(0) : ED;
const frozenReserveDif = frameSystemAccountInfo.frozen.sub(reservedBalance);
transferable = api.registry.createType(
'Balance',
allLocked
? 0
: freeBalance.sub(bnMax(maybeED, frozenReserveDif))
);
}
return objectSpread({}, data, { return objectSpread({}, data, {
availableBalance: api.registry.createType('Balance', allLocked ? 0 : bnMax(new BN(0), data?.freeBalance ? data.freeBalance.sub(lockedBalance) : new BN(0))), availableBalance: api.registry.createType('Balance', allLocked ? 0 : bnMax(new BN(0), data?.freeBalance ? data.freeBalance.sub(lockedBalance) : new BN(0))),
lockedBalance, lockedBalance,
lockedBreakdown, lockedBreakdown,
transferable,
vestingLocked vestingLocked
}); });
} }
+29
View File
@@ -6,6 +6,10 @@ import type { PalletBalancesBalanceLock, PalletBalancesReserveData } from '@polk
import type { BN } from '@polkadot/util'; import type { BN } from '@polkadot/util';
export interface DeriveBalancesAccountData { export interface DeriveBalancesAccountData {
frameSystemAccountInfo?: {
frozen: Balance;
flags: Balance;
}
freeBalance: Balance; freeBalance: Balance;
frozenFee: Balance; frozenFee: Balance;
frozenMisc: Balance; frozenMisc: Balance;
@@ -20,9 +24,34 @@ export interface DeriveBalancesAccount extends DeriveBalancesAccountData {
} }
export interface DeriveBalancesAllAccountData extends DeriveBalancesAccountData { export interface DeriveBalancesAllAccountData extends DeriveBalancesAccountData {
/**
* Calculated available balance. This uses the formula: max(0, free - locked)
* This is only correct when the return type of `api.query.system.account` is `AccountInfo` which was replaced by `FrameSystemAccountInfo`.
* See `transferable` for the correct balance calculation.
*
* ref: https://github.com/paritytech/substrate/pull/12951
*/
availableBalance: Balance; availableBalance: Balance;
/**
* The amount of balance locked away.
*/
lockedBalance: Balance; lockedBalance: Balance;
/**
* The breakdown of locked balances.
*/
lockedBreakdown: (PalletBalancesBalanceLock | BalanceLockTo212)[]; lockedBreakdown: (PalletBalancesBalanceLock | BalanceLockTo212)[];
/**
* Calculated transferable balance. This uses the formula: free - max(maybeEd, frozen - reserve)
* Where `maybeEd` means if there is no frozen and reserves it will be zero, else it will be the existential deposit.
* This is only correct when the return type of `api.query.system.account` is `FrameSystemAccountInfo`.
* Which is the most up to date calulcation for transferrable balances.
*
* ref: https://github.com/paritytech/polkadot-sdk/issues/1833
*/
transferable: Balance | null;
/**
* Amount locked in vesting.
*/
vestingLocked: Balance; vestingLocked: Balance;
} }
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev // Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '12.2.2' }; export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '12.4.2' };
+15 -15
View File
@@ -18,29 +18,29 @@
"./packageDetect.cjs" "./packageDetect.cjs"
], ],
"type": "module", "type": "module",
"version": "12.2.2", "version": "12.4.2",
"main": "index.js", "main": "index.js",
"dependencies": { "dependencies": {
"@polkadot/api-augment": "12.2.2", "@polkadot/api-augment": "12.4.2",
"@polkadot/api-base": "12.2.2", "@polkadot/api-base": "12.4.2",
"@polkadot/api-derive": "12.2.2", "@polkadot/api-derive": "12.4.2",
"@polkadot/keyring": "^13.0.2", "@polkadot/keyring": "^13.0.2",
"@polkadot/rpc-augment": "12.2.2", "@polkadot/rpc-augment": "12.4.2",
"@polkadot/rpc-core": "12.2.2", "@polkadot/rpc-core": "12.4.2",
"@polkadot/rpc-provider": "12.2.2", "@polkadot/rpc-provider": "12.4.2",
"@polkadot/types": "12.2.2", "@polkadot/types": "12.4.2",
"@polkadot/types-augment": "12.2.2", "@polkadot/types-augment": "12.4.2",
"@polkadot/types-codec": "12.2.2", "@polkadot/types-codec": "12.4.2",
"@polkadot/types-create": "12.2.2", "@polkadot/types-create": "12.4.2",
"@polkadot/types-known": "12.2.2", "@polkadot/types-known": "12.4.2",
"@polkadot/util": "^13.0.2", "@polkadot/util": "^13.0.2",
"@polkadot/util-crypto": "^13.0.2", "@polkadot/util-crypto": "^13.0.2",
"eventemitter3": "^5.0.1", "eventemitter3": "^5.0.1",
"rxjs": "^7.8.1", "rxjs": "^7.8.1",
"tslib": "^2.6.2" "tslib": "^2.6.3"
}, },
"devDependencies": { "devDependencies": {
"@polkadot/api-augment": "12.2.2", "@polkadot/api-augment": "12.4.2",
"@polkadot/types-support": "12.2.2" "@polkadot/types-support": "12.4.2"
} }
} }
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev // Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '12.2.2' }; export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '12.4.2' };
+1 -1
View File
@@ -359,7 +359,7 @@ export function createClass <ApiType extends ApiTypes> ({ api, apiType, blockHas
nonce: ext.nonce.toHex(), nonce: ext.nonce.toHex(),
runtimeVersion: payload.runtimeVersion, runtimeVersion: payload.runtimeVersion,
signedExtensions: payload.signedExtensions, signedExtensions: payload.signedExtensions,
tip: ext.tip.toHex(), tip: ext.tip ? ext.tip.toHex() : null,
version: payload.version version: payload.version
})]); })]);
+5 -5
View File
@@ -18,13 +18,13 @@
"./packageDetect.cjs" "./packageDetect.cjs"
], ],
"type": "module", "type": "module",
"version": "12.2.2", "version": "12.4.2",
"main": "index.js", "main": "index.js",
"dependencies": { "dependencies": {
"@polkadot/rpc-core": "12.2.2", "@polkadot/rpc-core": "12.4.2",
"@polkadot/types": "12.2.2", "@polkadot/types": "12.4.2",
"@polkadot/types-codec": "12.2.2", "@polkadot/types-codec": "12.4.2",
"@polkadot/util": "^13.0.2", "@polkadot/util": "^13.0.2",
"tslib": "^2.6.2" "tslib": "^2.6.3"
} }
} }
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev // Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '12.2.2' }; export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '12.4.2' };
+6 -6
View File
@@ -18,18 +18,18 @@
"./packageDetect.cjs" "./packageDetect.cjs"
], ],
"type": "module", "type": "module",
"version": "12.2.2", "version": "12.4.2",
"main": "index.js", "main": "index.js",
"dependencies": { "dependencies": {
"@polkadot/rpc-augment": "12.2.2", "@polkadot/rpc-augment": "12.4.2",
"@polkadot/rpc-provider": "12.2.2", "@polkadot/rpc-provider": "12.4.2",
"@polkadot/types": "12.2.2", "@polkadot/types": "12.4.2",
"@polkadot/util": "^13.0.2", "@polkadot/util": "^13.0.2",
"rxjs": "^7.8.1", "rxjs": "^7.8.1",
"tslib": "^2.6.2" "tslib": "^2.6.3"
}, },
"devDependencies": { "devDependencies": {
"@polkadot/keyring": "^13.0.2", "@polkadot/keyring": "^13.0.2",
"@polkadot/rpc-augment": "12.2.2" "@polkadot/rpc-augment": "12.4.2"
} }
} }
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev // Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '12.2.2' }; export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '12.4.2' };
+7 -7
View File
@@ -18,12 +18,12 @@
"./packageDetect.cjs" "./packageDetect.cjs"
], ],
"type": "module", "type": "module",
"version": "12.2.2", "version": "12.4.2",
"main": "index.js", "main": "index.js",
"dependencies": { "dependencies": {
"@polkadot/keyring": "^13.0.2", "@polkadot/keyring": "^13.0.2",
"@polkadot/types": "12.2.2", "@polkadot/types": "12.4.2",
"@polkadot/types-support": "12.2.2", "@polkadot/types-support": "12.4.2",
"@polkadot/util": "^13.0.2", "@polkadot/util": "^13.0.2",
"@polkadot/util-crypto": "^13.0.2", "@polkadot/util-crypto": "^13.0.2",
"@polkadot/x-fetch": "^13.0.2", "@polkadot/x-fetch": "^13.0.2",
@@ -31,13 +31,13 @@
"@polkadot/x-ws": "^13.0.2", "@polkadot/x-ws": "^13.0.2",
"eventemitter3": "^5.0.1", "eventemitter3": "^5.0.1",
"mock-socket": "^9.3.1", "mock-socket": "^9.3.1",
"nock": "^13.5.0", "nock": "^13.5.4",
"tslib": "^2.6.2" "tslib": "^2.6.3"
}, },
"devDependencies": { "devDependencies": {
"@substrate/connect": "0.8.10" "@substrate/connect": "0.8.11"
}, },
"optionalDependencies": { "optionalDependencies": {
"@substrate/connect": "0.8.10" "@substrate/connect": "0.8.11"
} }
} }
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev // Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '12.2.2' }; export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '12.4.2' };
+12 -12
View File
@@ -18,7 +18,7 @@
"./packageDetect.cjs" "./packageDetect.cjs"
], ],
"type": "module", "type": "module",
"version": "12.2.2", "version": "12.4.2",
"main": "index.js", "main": "index.js",
"bin": { "bin": {
"polkadot-types-chain-info": "./scripts/polkadot-types-chain-info.mjs", "polkadot-types-chain-info": "./scripts/polkadot-types-chain-info.mjs",
@@ -28,23 +28,23 @@
"polkadot-types-internal-metadata": "./scripts/polkadot-types-internal-metadata.mjs" "polkadot-types-internal-metadata": "./scripts/polkadot-types-internal-metadata.mjs"
}, },
"dependencies": { "dependencies": {
"@polkadot/api": "12.2.2", "@polkadot/api": "12.4.2",
"@polkadot/api-augment": "12.2.2", "@polkadot/api-augment": "12.4.2",
"@polkadot/rpc-augment": "12.2.2", "@polkadot/rpc-augment": "12.4.2",
"@polkadot/rpc-provider": "12.2.2", "@polkadot/rpc-provider": "12.4.2",
"@polkadot/types": "12.2.2", "@polkadot/types": "12.4.2",
"@polkadot/types-augment": "12.2.2", "@polkadot/types-augment": "12.4.2",
"@polkadot/types-codec": "12.2.2", "@polkadot/types-codec": "12.4.2",
"@polkadot/types-create": "12.2.2", "@polkadot/types-create": "12.4.2",
"@polkadot/types-support": "12.2.2", "@polkadot/types-support": "12.4.2",
"@polkadot/util": "^13.0.2", "@polkadot/util": "^13.0.2",
"@polkadot/util-crypto": "^13.0.2", "@polkadot/util-crypto": "^13.0.2",
"@polkadot/x-ws": "^13.0.2", "@polkadot/x-ws": "^13.0.2",
"handlebars": "^4.7.8", "handlebars": "^4.7.8",
"tslib": "^2.6.2", "tslib": "^2.6.3",
"yargs": "^17.7.2" "yargs": "^17.7.2"
}, },
"devDependencies": { "devDependencies": {
"@types/yargs": "^17.0.32" "@types/yargs": "^17.0.33"
} }
} }
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev // Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '12.2.2' }; export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '12.4.2' };
+4 -4
View File
@@ -18,12 +18,12 @@
"./packageDetect.cjs" "./packageDetect.cjs"
], ],
"type": "module", "type": "module",
"version": "12.2.2", "version": "12.4.2",
"main": "index.js", "main": "index.js",
"dependencies": { "dependencies": {
"@polkadot/types": "12.2.2", "@polkadot/types": "12.4.2",
"@polkadot/types-codec": "12.2.2", "@polkadot/types-codec": "12.4.2",
"@polkadot/util": "^13.0.2", "@polkadot/util": "^13.0.2",
"tslib": "^2.6.2" "tslib": "^2.6.3"
} }
} }
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev // Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '12.2.2' }; export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '12.4.2' };
File diff suppressed because one or more lines are too long
+5 -5
View File
@@ -18,17 +18,17 @@
"./packageDetect.cjs" "./packageDetect.cjs"
], ],
"type": "module", "type": "module",
"version": "12.2.2", "version": "12.4.2",
"main": "index.js", "main": "index.js",
"dependencies": { "dependencies": {
"@polkadot/util": "^13.0.2", "@polkadot/util": "^13.0.2",
"@polkadot/x-bigint": "^13.0.2", "@polkadot/x-bigint": "^13.0.2",
"tslib": "^2.6.2" "tslib": "^2.6.3"
}, },
"devDependencies": { "devDependencies": {
"@polkadot/types": "12.2.2", "@polkadot/types": "12.4.2",
"@polkadot/types-augment": "12.2.2", "@polkadot/types-augment": "12.4.2",
"@polkadot/types-support": "12.2.2", "@polkadot/types-support": "12.4.2",
"@polkadot/util-crypto": "^13.0.2" "@polkadot/util-crypto": "^13.0.2"
} }
} }
+1 -1
View File
@@ -9,7 +9,7 @@ import { compactFromU8aLim, identity, isHex, isU8a, logger, stringify, u8aToU8a
import { AbstractArray } from '../abstract/Array.js'; import { AbstractArray } from '../abstract/Array.js';
import { decodeU8aVec, typeToConstructor } from '../utils/index.js'; import { decodeU8aVec, typeToConstructor } from '../utils/index.js';
const MAX_LENGTH = 64 * 1024; const MAX_LENGTH = 512 * 1024;
const l = logger('Vec'); const l = logger('Vec');
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev // Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types-codec', path: 'auto', type: 'auto', version: '12.2.2' }; export const packageInfo = { name: '@polkadot/types-codec', path: 'auto', type: 'auto', version: '12.4.2' };
+4 -4
View File
@@ -18,14 +18,14 @@
"./packageDetect.cjs" "./packageDetect.cjs"
], ],
"type": "module", "type": "module",
"version": "12.2.2", "version": "12.4.2",
"main": "index.js", "main": "index.js",
"dependencies": { "dependencies": {
"@polkadot/types-codec": "12.2.2", "@polkadot/types-codec": "12.4.2",
"@polkadot/util": "^13.0.2", "@polkadot/util": "^13.0.2",
"tslib": "^2.6.2" "tslib": "^2.6.3"
}, },
"devDependencies": { "devDependencies": {
"@polkadot/types": "12.2.2" "@polkadot/types": "12.4.2"
} }
} }
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev // Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types-create', path: 'auto', type: 'auto', version: '12.2.2' }; export const packageInfo = { name: '@polkadot/types-create', path: 'auto', type: 'auto', version: '12.4.2' };
+6 -6
View File
@@ -18,17 +18,17 @@
"./packageDetect.cjs" "./packageDetect.cjs"
], ],
"type": "module", "type": "module",
"version": "12.2.2", "version": "12.4.2",
"main": "index.js", "main": "index.js",
"dependencies": { "dependencies": {
"@polkadot/networks": "^13.0.2", "@polkadot/networks": "^13.0.2",
"@polkadot/types": "12.2.2", "@polkadot/types": "12.4.2",
"@polkadot/types-codec": "12.2.2", "@polkadot/types-codec": "12.4.2",
"@polkadot/types-create": "12.2.2", "@polkadot/types-create": "12.4.2",
"@polkadot/util": "^13.0.2", "@polkadot/util": "^13.0.2",
"tslib": "^2.6.2" "tslib": "^2.6.3"
}, },
"devDependencies": { "devDependencies": {
"@polkadot/api": "12.2.2" "@polkadot/api": "12.4.2"
} }
} }
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev // Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types-known', path: 'auto', type: 'auto', version: '12.2.2' }; export const packageInfo = { name: '@polkadot/types-known', path: 'auto', type: 'auto', version: '12.4.2' };
@@ -3626,5 +3626,87 @@ export const upgrades: ChainUpgradesExpanded = [
1 1
] ]
] ]
],
[
21800141,
1002007,
[
[
"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
]
]
] ]
]; ];
@@ -5674,5 +5674,283 @@ export const upgrades: ChainUpgradesExpanded = [
1 1
] ]
] ]
],
[
21300429,
1013000,
[
[
"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
],
[
"0x91b1c8b16328eb92",
1
],
[
"0x17a6bc0d0062aeb3",
1
],
[
"0x18ef58a3b67ba770",
1
],
[
"0xfbc577b9d747efd6",
1
]
]
],
[
21460051,
1014000,
[
[
"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
],
[
"0x91b1c8b16328eb92",
1
],
[
"0x9ffb505aa738d69c",
1
],
[
"0x17a6bc0d0062aeb3",
1
],
[
"0x18ef58a3b67ba770",
1
],
[
"0xfbc577b9d747efd6",
1
]
]
],
[
21925427,
1015000,
[
[
"0xdf6acb689907609b",
5
],
[
"0x37e397fc7c91f5e4",
2
],
[
"0x40fe3ad401f8959a",
6
],
[
"0xd2bc9897eed08f15",
3
],
[
"0xf78b278be53f454c",
2
],
[
"0xaf2c0297a23e6d3d",
11
],
[
"0x49eaaf1b548a0cb0",
4
],
[
"0x91d5df18b0d2cf58",
2
],
[
"0x2a5e924655399e60",
1
],
[
"0xed99c5acb25eedf5",
3
],
[
"0xcbca25e39f142387",
2
],
[
"0x687ad44ad37f03c2",
1
],
[
"0xab3c0572291feb8b",
1
],
[
"0xbc9d89904f5b923f",
1
],
[
"0x37c8bb1350a9a2a8",
4
],
[
"0xf3ff14d5ab527059",
3
],
[
"0x6ff52ee858e6c5bd",
1
],
[
"0x91b1c8b16328eb92",
1
],
[
"0x9ffb505aa738d69c",
1
],
[
"0x17a6bc0d0062aeb3",
1
],
[
"0x18ef58a3b67ba770",
1
],
[
"0xfbc577b9d747efd6",
1
]
]
] ]
]; ];
@@ -15,5 +15,5 @@ export const upgrades: ChainUpgradesRaw = [
[11933818, 9270], [12217535, 9280], [12245277, 9281], [12532644, 9291], [12876189, 9300], [11933818, 9270], [12217535, 9280], [12245277, 9281], [12532644, 9291], [12876189, 9300],
[13800015, 9340], [14188833, 9360], [14543918, 9370], [15978362, 9420], [16450000, 9430], [13800015, 9340], [14188833, 9360], [14543918, 9370], [15978362, 9420], [16450000, 9430],
[17840000, 9431], [18407475, 1000001], [19551000, 1001002], [20181758, 1001003], [17840000, 9431], [18407475, 1000001], [19551000, 1001002], [20181758, 1001003],
[20438530, 1002000], [21169168, 1002004], [21455374, 1002005], [21558004, 1002006] [20438530, 1002000], [21169168, 1002004], [21455374, 1002005], [21558004, 1002006], [21800141, 1002007]
]; ];
@@ -21,5 +21,6 @@ export const upgrades: ChainUpgradesRaw = [
[14849830, 9390], [15146832, 9400], [15332317, 9401], [15661793, 9420], [16165469, 9430], [14849830, 9390], [15146832, 9400], [15332317, 9401], [15661793, 9420], [16165469, 9430],
[18293984, 102000], [18293991, 103000], [18451783, 104000], [18679741, 1005000], [19166695, 1006000], [18293984, 102000], [18293991, 103000], [18451783, 104000], [18679741, 1005000], [19166695, 1006000],
[19234157, 1006001], [19542944, 1007000], [19621258, 1007001], [19761406, 1008000], [20056997, 1009000], [19234157, 1006001], [19542944, 1007000], [19621258, 1007001], [19761406, 1008000], [20056997, 1009000],
[20368318, 1010000], [20649086, 1011000], [21217837, 1011001] [20368318, 1010000], [20649086, 1011000], [21217837, 1011001], [21300429, 1013000], [21460051, 1014000],
[21925427, 1015000]
]; ];
+2 -2
View File
@@ -18,10 +18,10 @@
"./packageDetect.cjs" "./packageDetect.cjs"
], ],
"type": "module", "type": "module",
"version": "12.2.2", "version": "12.4.2",
"main": "index.js", "main": "index.js",
"dependencies": { "dependencies": {
"@polkadot/util": "^13.0.2", "@polkadot/util": "^13.0.2",
"tslib": "^2.6.2" "tslib": "^2.6.3"
} }
} }
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
@@ -86,7 +86,7 @@ export default {
], ],
[ [
"0x49eaaf1b548a0cb0", "0x49eaaf1b548a0cb0",
3 4
], ],
[ [
"0x91d5df18b0d2cf58", "0x91d5df18b0d2cf58",
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev // Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types-support', path: 'auto', type: 'auto', version: '12.2.2' }; export const packageInfo = { name: '@polkadot/types-support', path: 'auto', type: 'auto', version: '12.4.2' };
+6 -6
View File
@@ -18,20 +18,20 @@
"./packageDetect.cjs" "./packageDetect.cjs"
], ],
"type": "module", "type": "module",
"version": "12.2.2", "version": "12.4.2",
"main": "index.js", "main": "index.js",
"dependencies": { "dependencies": {
"@polkadot/keyring": "^13.0.2", "@polkadot/keyring": "^13.0.2",
"@polkadot/types-augment": "12.2.2", "@polkadot/types-augment": "12.4.2",
"@polkadot/types-codec": "12.2.2", "@polkadot/types-codec": "12.4.2",
"@polkadot/types-create": "12.2.2", "@polkadot/types-create": "12.4.2",
"@polkadot/util": "^13.0.2", "@polkadot/util": "^13.0.2",
"@polkadot/util-crypto": "^13.0.2", "@polkadot/util-crypto": "^13.0.2",
"rxjs": "^7.8.1", "rxjs": "^7.8.1",
"tslib": "^2.6.2" "tslib": "^2.6.3"
}, },
"devDependencies": { "devDependencies": {
"@polkadot/keyring": "^13.0.2", "@polkadot/keyring": "^13.0.2",
"@polkadot/types-support": "12.2.2" "@polkadot/types-support": "12.4.2"
} }
} }
+31 -5
View File
@@ -3,7 +3,7 @@
import type { DefinitionCall, DefinitionsCall } from '../../types/index.js'; import type { DefinitionCall, DefinitionsCall } from '../../types/index.js';
const BEEFY_V1_V3: Record<string, DefinitionCall> = { const BEEFY_V3: Record<string, DefinitionCall> = {
beefy_genesis: { beefy_genesis: {
description: 'Return the block number where BEEFY consensus is enabled/started', description: 'Return the block number where BEEFY consensus is enabled/started',
params: [], params: [],
@@ -23,6 +23,15 @@ const BEEFY_V1_V3: Record<string, DefinitionCall> = {
], ],
type: 'Option<OpaqueKeyOwnershipProof>' type: 'Option<OpaqueKeyOwnershipProof>'
}, },
validator_set: {
description: 'Return the current active BEEFY validator set',
params: [],
type: 'Option<ValidatorSet>'
}
};
const BEEFY_V1_V3: Record<string, DefinitionCall> = {
...BEEFY_V3,
submit_report_equivocation_unsigned_extrinsic: { submit_report_equivocation_unsigned_extrinsic: {
description: 'Submits an unsigned extrinsic to report an equivocation.', description: 'Submits an unsigned extrinsic to report an equivocation.',
params: [ params: [
@@ -36,11 +45,24 @@ const BEEFY_V1_V3: Record<string, DefinitionCall> = {
} }
], ],
type: 'Option<Null>' type: 'Option<Null>'
}
};
const BEEFY_V4: Record<string, DefinitionCall> = {
...BEEFY_V3,
submit_report_double_voting_unsigned_extrinsic: {
description: 'Submits an unsigned extrinsic to report a double voting equivocation.',
params: [
{
name: 'equivocationProof',
type: 'SpConsensusBeefyDoubleVotingProof'
}, },
validator_set: { {
description: 'Return the current active BEEFY validator set', name: 'keyOwnerProof',
params: [], type: 'OpaqueKeyOwnershipProof'
type: 'Option<ValidatorSet>' }
],
type: 'Option<Null>'
} }
}; };
@@ -59,6 +81,10 @@ const BEEFY_MMR_V1: Record<string, DefinitionCall> = {
export const runtime: DefinitionsCall = { export const runtime: DefinitionsCall = {
BeefyApi: [ BeefyApi: [
{
methods: BEEFY_V4,
version: 4
},
{ {
methods: BEEFY_V1_V3, methods: BEEFY_V1_V3,
version: 3 version: 3
@@ -122,7 +122,7 @@ describe('runtime definitions', (): void => {
for (const { methods, version } of versions) { for (const { methods, version } of versions) {
describe(`version ${version}`, (): void => { describe(`version ${version}`, (): void => {
const methodsEntries = Object.entries<DefinitionCall>(methods); const methodsEntries = Object.entries<DefinitionCall>(methods);
const skipInspectTypes = ['StagingXcmV3MultiLocation', 'StagingXcmV4Location', 'Result<Vec<XcmV3MultiAsset>, FungiblesAccessError>', 'Result<XcmVersionedMultiAssets, FungiblesAccessError>', 'XcmVersionedLocation', 'XcmVersionedAssetId', 'XcmVersionedXcm', 'Result<Vec<XcmVersionedAssetId>, XcmPaymentApiError>']; const skipInspectTypes = ['StagingXcmV3MultiLocation', 'StagingXcmV4Location', 'Result<Vec<XcmV3MultiAsset>, FungiblesAccessError>', 'Result<XcmVersionedAssets, FungiblesAccessError>', 'XcmVersionedLocation', 'XcmVersionedAssetId', 'XcmVersionedXcm', 'Result<Vec<XcmVersionedAssetId>, XcmPaymentApiError>'];
for (const [key, { params, type }] of methodsEntries) { for (const [key, { params, type }] of methodsEntries) {
describe(`${key}`, (): void => { describe(`${key}`, (): void => {
@@ -30,7 +30,7 @@ export const runtime: DefinitionsCall = {
type: 'AccountId' type: 'AccountId'
} }
], ],
type: 'Result<XcmVersionedMultiAssets, FungiblesAccessError>' type: 'Result<XcmVersionedAssets, FungiblesAccessError>'
} }
}, },
version: 2 version: 2
@@ -83,10 +83,7 @@ const PATHS_ALIAS = splitNamespace([
'ink::env::types::*', 'ink::env::types::*',
'ink::primitives::types::*', 'ink::primitives::types::*',
'ink_env::types::*', 'ink_env::types::*',
'ink_primitives::types::*', 'ink_primitives::types::*'
// noir
'np_runtime::accountname::AccountName',
'np_runtime::universaladdress::UniversalAddress'
]); ]);
// Mappings for types that should be converted to set via BitVec // Mappings for types that should be converted to set via BitVec
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev // Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types', path: 'auto', type: 'auto', version: '12.2.2' }; export const packageInfo = { name: '@polkadot/types', path: 'auto', type: 'auto', version: '12.4.2' };
+178 -175
View File
@@ -380,93 +380,96 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@polkadot-api/json-rpc-provider-proxy@npm:0.0.1": "@polkadot-api/json-rpc-provider-proxy@npm:^0.1.0":
version: 0.0.1 version: 0.1.0
resolution: "@polkadot-api/json-rpc-provider-proxy@npm:0.0.1" resolution: "@polkadot-api/json-rpc-provider-proxy@npm:0.1.0"
checksum: 10/6ee0916504ab702ac40eb1f983c21246738c1cd8624b35886a075430271800543d32ba5a7f9e6a0cb078880f9756db1bdc83cb86c42b39d326e780a8cf9bf22a checksum: 10/1a232337a4f6f32f3ec0350d5aaceaab21547ccee3cca63318d4b9238982efa5ff2406b033c320318c72d067b73508c0a1af21eb47acabaff714c1c21477bafa
languageName: node languageName: node
linkType: hard linkType: hard
"@polkadot-api/json-rpc-provider@npm:0.0.1": "@polkadot-api/json-rpc-provider@npm:0.0.1, @polkadot-api/json-rpc-provider@npm:^0.0.1":
version: 0.0.1 version: 0.0.1
resolution: "@polkadot-api/json-rpc-provider@npm:0.0.1" resolution: "@polkadot-api/json-rpc-provider@npm:0.0.1"
checksum: 10/1f315bdadcba7def7145011132e6127b983c6f91f976be217ad7d555bb96a67f3a270fe4a46e427531822c5d54d353d84a6439d112a99cdfc07013d3b662ee3c checksum: 10/1f315bdadcba7def7145011132e6127b983c6f91f976be217ad7d555bb96a67f3a270fe4a46e427531822c5d54d353d84a6439d112a99cdfc07013d3b662ee3c
languageName: node languageName: node
linkType: hard linkType: hard
"@polkadot-api/metadata-builders@npm:0.0.1": "@polkadot-api/metadata-builders@npm:0.3.2":
version: 0.0.1 version: 0.3.2
resolution: "@polkadot-api/metadata-builders@npm:0.0.1" resolution: "@polkadot-api/metadata-builders@npm:0.3.2"
dependencies: dependencies:
"@polkadot-api/substrate-bindings": "npm:0.0.1" "@polkadot-api/substrate-bindings": "npm:0.6.0"
"@polkadot-api/utils": "npm:0.0.1" "@polkadot-api/utils": "npm:0.1.0"
checksum: 10/e7bf0ad10cbddf75012eaaa1b30060fb1eb142c02f7dfd8edc5a1d78a40ef078b09c85d36bf9f2ac4ab309970ba01dc648ef46745412b006e62e4ddf4f334339 checksum: 10/874b38e1fb92beea99b98b889143f25671f137e54113767aeabb79ff5cdf7d61cadb0121f08c7a9a40718b924d7c9a1dd700f81e7e287bc55923b0129e2a6160
languageName: node languageName: node
linkType: hard linkType: hard
"@polkadot-api/observable-client@npm:0.1.0": "@polkadot-api/observable-client@npm:^0.3.0":
version: 0.1.0 version: 0.3.2
resolution: "@polkadot-api/observable-client@npm:0.1.0" resolution: "@polkadot-api/observable-client@npm:0.3.2"
dependencies: dependencies:
"@polkadot-api/metadata-builders": "npm:0.0.1" "@polkadot-api/metadata-builders": "npm:0.3.2"
"@polkadot-api/substrate-bindings": "npm:0.0.1" "@polkadot-api/substrate-bindings": "npm:0.6.0"
"@polkadot-api/substrate-client": "npm:0.0.1" "@polkadot-api/utils": "npm:0.1.0"
"@polkadot-api/utils": "npm:0.0.1"
peerDependencies: peerDependencies:
"@polkadot-api/substrate-client": 0.1.4
rxjs: ">=7.8.0" rxjs: ">=7.8.0"
checksum: 10/822b4b24e8b2522fa2b0d88d68d098862d36e9ef285dba7468a6ac9084a37670ef0782a9b8a00c2c4d5510a0af90b3611ea097f530bdad1b07bef63234341bf5 checksum: 10/91b95a06e3ddd477c2489110d7cffdcfaf87a222054b437013c701dc43eac6a5d30438b1ac8fb130166ba039a67808e6199ccb3b2eaac7dcf8d2ef7a835f047b
languageName: node languageName: node
linkType: hard linkType: hard
"@polkadot-api/substrate-bindings@npm:0.0.1": "@polkadot-api/substrate-bindings@npm:0.6.0":
version: 0.0.1 version: 0.6.0
resolution: "@polkadot-api/substrate-bindings@npm:0.0.1" resolution: "@polkadot-api/substrate-bindings@npm:0.6.0"
dependencies: dependencies:
"@noble/hashes": "npm:^1.3.1" "@noble/hashes": "npm:^1.3.1"
"@polkadot-api/utils": "npm:0.0.1" "@polkadot-api/utils": "npm:0.1.0"
"@scure/base": "npm:^1.1.1" "@scure/base": "npm:^1.1.1"
scale-ts: "npm:^1.6.0" scale-ts: "npm:^1.6.0"
checksum: 10/9a1a70bd571f1cf262796b445c7a005b425e8e6f855b11757442c6bbe398d4a90575cd3973c9b1918202d3c7ff7162675c349c014677a31cc70cd84f7f973f90 checksum: 10/01926a9083f608514a55c3d23563ebef139e2963d4adbebe7dcd99b65e1a08f1551fc0e147e787a31c749402767333c96eb1399f85a6c71654cfa1cc9d26e445
languageName: node languageName: node
linkType: hard linkType: hard
"@polkadot-api/substrate-client@npm:0.0.1": "@polkadot-api/substrate-client@npm:^0.1.2":
version: 0.0.1 version: 0.1.4
resolution: "@polkadot-api/substrate-client@npm:0.0.1" resolution: "@polkadot-api/substrate-client@npm:0.1.4"
checksum: 10/a00521dbda6e87a2d0e860c1608dc164269c62748d60a51326452d3573abfa1d01ed79644f103f1d989c49e8c61169ed04b155d466ec9e6f09f6e424572dea48 dependencies:
"@polkadot-api/json-rpc-provider": "npm:0.0.1"
"@polkadot-api/utils": "npm:0.1.0"
checksum: 10/e7172696db404676d297cd5661b195de110593769f9ce37f32bdb5576ca00c56d32fcb04172a91102986fdda27a13962d909ad9466869a2991611d658ee6ac92
languageName: node languageName: node
linkType: hard linkType: hard
"@polkadot-api/utils@npm:0.0.1": "@polkadot-api/utils@npm:0.1.0":
version: 0.0.1 version: 0.1.0
resolution: "@polkadot-api/utils@npm:0.0.1" resolution: "@polkadot-api/utils@npm:0.1.0"
checksum: 10/4bf89955ccf4dafb2ef34f007fc0a12bd6d983a10c4219464a6b1c07e7bfe80ff26f156fa201b3f11ad53adca0abb261fc7ee43b86dcdc10fa0f5325788359ae checksum: 10/c557daea91ddb03e16b93c7c5a75533495c7b77cbbbdc2b4f5e97af0c1e1132a47e434c9c729a08241bd7b3624b6644ac0950f914aa8b29a0f419bf0fd224c7c
languageName: node languageName: node
linkType: hard linkType: hard
"@polkadot/api-augment@npm:12.2.2, @polkadot/api-augment@workspace:packages/api-augment": "@polkadot/api-augment@npm:12.4.2, @polkadot/api-augment@workspace:packages/api-augment":
version: 0.0.0-use.local version: 0.0.0-use.local
resolution: "@polkadot/api-augment@workspace:packages/api-augment" resolution: "@polkadot/api-augment@workspace:packages/api-augment"
dependencies: dependencies:
"@polkadot/api-base": "npm:12.2.2" "@polkadot/api-base": "npm:12.4.2"
"@polkadot/rpc-augment": "npm:12.2.2" "@polkadot/rpc-augment": "npm:12.4.2"
"@polkadot/types": "npm:12.2.2" "@polkadot/types": "npm:12.4.2"
"@polkadot/types-augment": "npm:12.2.2" "@polkadot/types-augment": "npm:12.4.2"
"@polkadot/types-codec": "npm:12.2.2" "@polkadot/types-codec": "npm:12.4.2"
"@polkadot/util": "npm:^13.0.2" "@polkadot/util": "npm:^13.0.2"
tslib: "npm:^2.6.2" tslib: "npm:^2.6.3"
languageName: unknown languageName: unknown
linkType: soft linkType: soft
"@polkadot/api-base@npm:12.2.2, @polkadot/api-base@workspace:packages/api-base": "@polkadot/api-base@npm:12.4.2, @polkadot/api-base@workspace:packages/api-base":
version: 0.0.0-use.local version: 0.0.0-use.local
resolution: "@polkadot/api-base@workspace:packages/api-base" resolution: "@polkadot/api-base@workspace:packages/api-base"
dependencies: dependencies:
"@polkadot/rpc-core": "npm:12.2.2" "@polkadot/rpc-core": "npm:12.4.2"
"@polkadot/types": "npm:12.2.2" "@polkadot/types": "npm:12.4.2"
"@polkadot/util": "npm:^13.0.2" "@polkadot/util": "npm:^13.0.2"
rxjs: "npm:^7.8.1" rxjs: "npm:^7.8.1"
tslib: "npm:^2.6.2" tslib: "npm:^2.6.3"
languageName: unknown languageName: unknown
linkType: soft linkType: soft
@@ -474,62 +477,62 @@ __metadata:
version: 0.0.0-use.local version: 0.0.0-use.local
resolution: "@polkadot/api-contract@workspace:packages/api-contract" resolution: "@polkadot/api-contract@workspace:packages/api-contract"
dependencies: dependencies:
"@polkadot/api": "npm:12.2.2" "@polkadot/api": "npm:12.4.2"
"@polkadot/api-augment": "npm:12.2.2" "@polkadot/api-augment": "npm:12.4.2"
"@polkadot/keyring": "npm:^13.0.2" "@polkadot/keyring": "npm:^13.0.2"
"@polkadot/types": "npm:12.2.2" "@polkadot/types": "npm:12.4.2"
"@polkadot/types-codec": "npm:12.2.2" "@polkadot/types-codec": "npm:12.4.2"
"@polkadot/types-create": "npm:12.2.2" "@polkadot/types-create": "npm:12.4.2"
"@polkadot/types-support": "npm:12.2.2" "@polkadot/types-support": "npm:12.4.2"
"@polkadot/util": "npm:^13.0.2" "@polkadot/util": "npm:^13.0.2"
"@polkadot/util-crypto": "npm:^13.0.2" "@polkadot/util-crypto": "npm:^13.0.2"
rxjs: "npm:^7.8.1" rxjs: "npm:^7.8.1"
tslib: "npm:^2.6.2" tslib: "npm:^2.6.3"
languageName: unknown languageName: unknown
linkType: soft linkType: soft
"@polkadot/api-derive@npm:12.2.2, @polkadot/api-derive@workspace:packages/api-derive": "@polkadot/api-derive@npm:12.4.2, @polkadot/api-derive@workspace:packages/api-derive":
version: 0.0.0-use.local version: 0.0.0-use.local
resolution: "@polkadot/api-derive@workspace:packages/api-derive" resolution: "@polkadot/api-derive@workspace:packages/api-derive"
dependencies: dependencies:
"@polkadot/api": "npm:12.2.2" "@polkadot/api": "npm:12.4.2"
"@polkadot/api-augment": "npm:12.2.2" "@polkadot/api-augment": "npm:12.4.2"
"@polkadot/api-base": "npm:12.2.2" "@polkadot/api-base": "npm:12.4.2"
"@polkadot/rpc-augment": "npm:12.2.2" "@polkadot/rpc-augment": "npm:12.4.2"
"@polkadot/rpc-core": "npm:12.2.2" "@polkadot/rpc-core": "npm:12.4.2"
"@polkadot/rpc-provider": "npm:12.2.2" "@polkadot/rpc-provider": "npm:12.4.2"
"@polkadot/types": "npm:12.2.2" "@polkadot/types": "npm:12.4.2"
"@polkadot/types-codec": "npm:12.2.2" "@polkadot/types-codec": "npm:12.4.2"
"@polkadot/types-support": "npm:12.2.2" "@polkadot/types-support": "npm:12.4.2"
"@polkadot/util": "npm:^13.0.2" "@polkadot/util": "npm:^13.0.2"
"@polkadot/util-crypto": "npm:^13.0.2" "@polkadot/util-crypto": "npm:^13.0.2"
rxjs: "npm:^7.8.1" rxjs: "npm:^7.8.1"
tslib: "npm:^2.6.2" tslib: "npm:^2.6.3"
languageName: unknown languageName: unknown
linkType: soft linkType: soft
"@polkadot/api@npm:12.2.2, @polkadot/api@workspace:packages/api": "@polkadot/api@npm:12.4.2, @polkadot/api@workspace:packages/api":
version: 0.0.0-use.local version: 0.0.0-use.local
resolution: "@polkadot/api@workspace:packages/api" resolution: "@polkadot/api@workspace:packages/api"
dependencies: dependencies:
"@polkadot/api-augment": "npm:12.2.2" "@polkadot/api-augment": "npm:12.4.2"
"@polkadot/api-base": "npm:12.2.2" "@polkadot/api-base": "npm:12.4.2"
"@polkadot/api-derive": "npm:12.2.2" "@polkadot/api-derive": "npm:12.4.2"
"@polkadot/keyring": "npm:^13.0.2" "@polkadot/keyring": "npm:^13.0.2"
"@polkadot/rpc-augment": "npm:12.2.2" "@polkadot/rpc-augment": "npm:12.4.2"
"@polkadot/rpc-core": "npm:12.2.2" "@polkadot/rpc-core": "npm:12.4.2"
"@polkadot/rpc-provider": "npm:12.2.2" "@polkadot/rpc-provider": "npm:12.4.2"
"@polkadot/types": "npm:12.2.2" "@polkadot/types": "npm:12.4.2"
"@polkadot/types-augment": "npm:12.2.2" "@polkadot/types-augment": "npm:12.4.2"
"@polkadot/types-codec": "npm:12.2.2" "@polkadot/types-codec": "npm:12.4.2"
"@polkadot/types-create": "npm:12.2.2" "@polkadot/types-create": "npm:12.4.2"
"@polkadot/types-known": "npm:12.2.2" "@polkadot/types-known": "npm:12.4.2"
"@polkadot/types-support": "npm:12.2.2" "@polkadot/types-support": "npm:12.4.2"
"@polkadot/util": "npm:^13.0.2" "@polkadot/util": "npm:^13.0.2"
"@polkadot/util-crypto": "npm:^13.0.2" "@polkadot/util-crypto": "npm:^13.0.2"
eventemitter3: "npm:^5.0.1" eventemitter3: "npm:^5.0.1"
rxjs: "npm:^7.8.1" rxjs: "npm:^7.8.1"
tslib: "npm:^2.6.2" tslib: "npm:^2.6.3"
languageName: unknown languageName: unknown
linkType: soft linkType: soft
@@ -654,49 +657,49 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@polkadot/rpc-augment@npm:12.2.2, @polkadot/rpc-augment@workspace:packages/rpc-augment": "@polkadot/rpc-augment@npm:12.4.2, @polkadot/rpc-augment@workspace:packages/rpc-augment":
version: 0.0.0-use.local version: 0.0.0-use.local
resolution: "@polkadot/rpc-augment@workspace:packages/rpc-augment" resolution: "@polkadot/rpc-augment@workspace:packages/rpc-augment"
dependencies: dependencies:
"@polkadot/rpc-core": "npm:12.2.2" "@polkadot/rpc-core": "npm:12.4.2"
"@polkadot/types": "npm:12.2.2" "@polkadot/types": "npm:12.4.2"
"@polkadot/types-codec": "npm:12.2.2" "@polkadot/types-codec": "npm:12.4.2"
"@polkadot/util": "npm:^13.0.2" "@polkadot/util": "npm:^13.0.2"
tslib: "npm:^2.6.2" tslib: "npm:^2.6.3"
languageName: unknown languageName: unknown
linkType: soft linkType: soft
"@polkadot/rpc-core@npm:12.2.2, @polkadot/rpc-core@workspace:packages/rpc-core": "@polkadot/rpc-core@npm:12.4.2, @polkadot/rpc-core@workspace:packages/rpc-core":
version: 0.0.0-use.local version: 0.0.0-use.local
resolution: "@polkadot/rpc-core@workspace:packages/rpc-core" resolution: "@polkadot/rpc-core@workspace:packages/rpc-core"
dependencies: dependencies:
"@polkadot/keyring": "npm:^13.0.2" "@polkadot/keyring": "npm:^13.0.2"
"@polkadot/rpc-augment": "npm:12.2.2" "@polkadot/rpc-augment": "npm:12.4.2"
"@polkadot/rpc-provider": "npm:12.2.2" "@polkadot/rpc-provider": "npm:12.4.2"
"@polkadot/types": "npm:12.2.2" "@polkadot/types": "npm:12.4.2"
"@polkadot/util": "npm:^13.0.2" "@polkadot/util": "npm:^13.0.2"
rxjs: "npm:^7.8.1" rxjs: "npm:^7.8.1"
tslib: "npm:^2.6.2" tslib: "npm:^2.6.3"
languageName: unknown languageName: unknown
linkType: soft linkType: soft
"@polkadot/rpc-provider@npm:12.2.2, @polkadot/rpc-provider@workspace:packages/rpc-provider": "@polkadot/rpc-provider@npm:12.4.2, @polkadot/rpc-provider@workspace:packages/rpc-provider":
version: 0.0.0-use.local version: 0.0.0-use.local
resolution: "@polkadot/rpc-provider@workspace:packages/rpc-provider" resolution: "@polkadot/rpc-provider@workspace:packages/rpc-provider"
dependencies: dependencies:
"@polkadot/keyring": "npm:^13.0.2" "@polkadot/keyring": "npm:^13.0.2"
"@polkadot/types": "npm:12.2.2" "@polkadot/types": "npm:12.4.2"
"@polkadot/types-support": "npm:12.2.2" "@polkadot/types-support": "npm:12.4.2"
"@polkadot/util": "npm:^13.0.2" "@polkadot/util": "npm:^13.0.2"
"@polkadot/util-crypto": "npm:^13.0.2" "@polkadot/util-crypto": "npm:^13.0.2"
"@polkadot/x-fetch": "npm:^13.0.2" "@polkadot/x-fetch": "npm:^13.0.2"
"@polkadot/x-global": "npm:^13.0.2" "@polkadot/x-global": "npm:^13.0.2"
"@polkadot/x-ws": "npm:^13.0.2" "@polkadot/x-ws": "npm:^13.0.2"
"@substrate/connect": "npm:0.8.10" "@substrate/connect": "npm:0.8.11"
eventemitter3: "npm:^5.0.1" eventemitter3: "npm:^5.0.1"
mock-socket: "npm:^9.3.1" mock-socket: "npm:^9.3.1"
nock: "npm:^13.5.0" nock: "npm:^13.5.4"
tslib: "npm:^2.6.2" tslib: "npm:^2.6.3"
dependenciesMeta: dependenciesMeta:
"@substrate/connect": "@substrate/connect":
optional: true optional: true
@@ -707,21 +710,21 @@ __metadata:
version: 0.0.0-use.local version: 0.0.0-use.local
resolution: "@polkadot/typegen@workspace:packages/typegen" resolution: "@polkadot/typegen@workspace:packages/typegen"
dependencies: dependencies:
"@polkadot/api": "npm:12.2.2" "@polkadot/api": "npm:12.4.2"
"@polkadot/api-augment": "npm:12.2.2" "@polkadot/api-augment": "npm:12.4.2"
"@polkadot/rpc-augment": "npm:12.2.2" "@polkadot/rpc-augment": "npm:12.4.2"
"@polkadot/rpc-provider": "npm:12.2.2" "@polkadot/rpc-provider": "npm:12.4.2"
"@polkadot/types": "npm:12.2.2" "@polkadot/types": "npm:12.4.2"
"@polkadot/types-augment": "npm:12.2.2" "@polkadot/types-augment": "npm:12.4.2"
"@polkadot/types-codec": "npm:12.2.2" "@polkadot/types-codec": "npm:12.4.2"
"@polkadot/types-create": "npm:12.2.2" "@polkadot/types-create": "npm:12.4.2"
"@polkadot/types-support": "npm:12.2.2" "@polkadot/types-support": "npm:12.4.2"
"@polkadot/util": "npm:^13.0.2" "@polkadot/util": "npm:^13.0.2"
"@polkadot/util-crypto": "npm:^13.0.2" "@polkadot/util-crypto": "npm:^13.0.2"
"@polkadot/x-ws": "npm:^13.0.2" "@polkadot/x-ws": "npm:^13.0.2"
"@types/yargs": "npm:^17.0.32" "@types/yargs": "npm:^17.0.33"
handlebars: "npm:^4.7.8" handlebars: "npm:^4.7.8"
tslib: "npm:^2.6.2" tslib: "npm:^2.6.3"
yargs: "npm:^17.7.2" yargs: "npm:^17.7.2"
bin: bin:
polkadot-types-chain-info: ./scripts/polkadot-types-chain-info.mjs polkadot-types-chain-info: ./scripts/polkadot-types-chain-info.mjs
@@ -732,78 +735,78 @@ __metadata:
languageName: unknown languageName: unknown
linkType: soft linkType: soft
"@polkadot/types-augment@npm:12.2.2, @polkadot/types-augment@workspace:packages/types-augment": "@polkadot/types-augment@npm:12.4.2, @polkadot/types-augment@workspace:packages/types-augment":
version: 0.0.0-use.local version: 0.0.0-use.local
resolution: "@polkadot/types-augment@workspace:packages/types-augment" resolution: "@polkadot/types-augment@workspace:packages/types-augment"
dependencies: dependencies:
"@polkadot/types": "npm:12.2.2" "@polkadot/types": "npm:12.4.2"
"@polkadot/types-codec": "npm:12.2.2" "@polkadot/types-codec": "npm:12.4.2"
"@polkadot/util": "npm:^13.0.2" "@polkadot/util": "npm:^13.0.2"
tslib: "npm:^2.6.2" tslib: "npm:^2.6.3"
languageName: unknown languageName: unknown
linkType: soft linkType: soft
"@polkadot/types-codec@npm:12.2.2, @polkadot/types-codec@workspace:packages/types-codec": "@polkadot/types-codec@npm:12.4.2, @polkadot/types-codec@workspace:packages/types-codec":
version: 0.0.0-use.local version: 0.0.0-use.local
resolution: "@polkadot/types-codec@workspace:packages/types-codec" resolution: "@polkadot/types-codec@workspace:packages/types-codec"
dependencies: dependencies:
"@polkadot/types": "npm:12.2.2" "@polkadot/types": "npm:12.4.2"
"@polkadot/types-augment": "npm:12.2.2" "@polkadot/types-augment": "npm:12.4.2"
"@polkadot/types-support": "npm:12.2.2" "@polkadot/types-support": "npm:12.4.2"
"@polkadot/util": "npm:^13.0.2" "@polkadot/util": "npm:^13.0.2"
"@polkadot/util-crypto": "npm:^13.0.2" "@polkadot/util-crypto": "npm:^13.0.2"
"@polkadot/x-bigint": "npm:^13.0.2" "@polkadot/x-bigint": "npm:^13.0.2"
tslib: "npm:^2.6.2" tslib: "npm:^2.6.3"
languageName: unknown languageName: unknown
linkType: soft linkType: soft
"@polkadot/types-create@npm:12.2.2, @polkadot/types-create@workspace:packages/types-create": "@polkadot/types-create@npm:12.4.2, @polkadot/types-create@workspace:packages/types-create":
version: 0.0.0-use.local version: 0.0.0-use.local
resolution: "@polkadot/types-create@workspace:packages/types-create" resolution: "@polkadot/types-create@workspace:packages/types-create"
dependencies: dependencies:
"@polkadot/types": "npm:12.2.2" "@polkadot/types": "npm:12.4.2"
"@polkadot/types-codec": "npm:12.2.2" "@polkadot/types-codec": "npm:12.4.2"
"@polkadot/util": "npm:^13.0.2" "@polkadot/util": "npm:^13.0.2"
tslib: "npm:^2.6.2" tslib: "npm:^2.6.3"
languageName: unknown languageName: unknown
linkType: soft linkType: soft
"@polkadot/types-known@npm:12.2.2, @polkadot/types-known@workspace:packages/types-known": "@polkadot/types-known@npm:12.4.2, @polkadot/types-known@workspace:packages/types-known":
version: 0.0.0-use.local version: 0.0.0-use.local
resolution: "@polkadot/types-known@workspace:packages/types-known" resolution: "@polkadot/types-known@workspace:packages/types-known"
dependencies: dependencies:
"@polkadot/api": "npm:12.2.2" "@polkadot/api": "npm:12.4.2"
"@polkadot/networks": "npm:^13.0.2" "@polkadot/networks": "npm:^13.0.2"
"@polkadot/types": "npm:12.2.2" "@polkadot/types": "npm:12.4.2"
"@polkadot/types-codec": "npm:12.2.2" "@polkadot/types-codec": "npm:12.4.2"
"@polkadot/types-create": "npm:12.2.2" "@polkadot/types-create": "npm:12.4.2"
"@polkadot/util": "npm:^13.0.2" "@polkadot/util": "npm:^13.0.2"
tslib: "npm:^2.6.2" tslib: "npm:^2.6.3"
languageName: unknown languageName: unknown
linkType: soft linkType: soft
"@polkadot/types-support@npm:12.2.2, @polkadot/types-support@workspace:packages/types-support": "@polkadot/types-support@npm:12.4.2, @polkadot/types-support@workspace:packages/types-support":
version: 0.0.0-use.local version: 0.0.0-use.local
resolution: "@polkadot/types-support@workspace:packages/types-support" resolution: "@polkadot/types-support@workspace:packages/types-support"
dependencies: dependencies:
"@polkadot/util": "npm:^13.0.2" "@polkadot/util": "npm:^13.0.2"
tslib: "npm:^2.6.2" tslib: "npm:^2.6.3"
languageName: unknown languageName: unknown
linkType: soft linkType: soft
"@polkadot/types@npm:12.2.2, @polkadot/types@workspace:packages/types": "@polkadot/types@npm:12.4.2, @polkadot/types@workspace:packages/types":
version: 0.0.0-use.local version: 0.0.0-use.local
resolution: "@polkadot/types@workspace:packages/types" resolution: "@polkadot/types@workspace:packages/types"
dependencies: dependencies:
"@polkadot/keyring": "npm:^13.0.2" "@polkadot/keyring": "npm:^13.0.2"
"@polkadot/types-augment": "npm:12.2.2" "@polkadot/types-augment": "npm:12.4.2"
"@polkadot/types-codec": "npm:12.2.2" "@polkadot/types-codec": "npm:12.4.2"
"@polkadot/types-create": "npm:12.2.2" "@polkadot/types-create": "npm:12.4.2"
"@polkadot/types-support": "npm:12.2.2" "@polkadot/types-support": "npm:12.4.2"
"@polkadot/util": "npm:^13.0.2" "@polkadot/util": "npm:^13.0.2"
"@polkadot/util-crypto": "npm:^13.0.2" "@polkadot/util-crypto": "npm:^13.0.2"
rxjs: "npm:^7.8.1" rxjs: "npm:^7.8.1"
tslib: "npm:^2.6.2" tslib: "npm:^2.6.3"
languageName: unknown languageName: unknown
linkType: soft linkType: soft
@@ -1224,39 +1227,39 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@substrate/connect-known-chains@npm:^1.1.4": "@substrate/connect-known-chains@npm:^1.1.5":
version: 1.1.4 version: 1.3.0
resolution: "@substrate/connect-known-chains@npm:1.1.4" resolution: "@substrate/connect-known-chains@npm:1.3.0"
checksum: 10/17fdce09bf2ba042371910a5e1c701d7db7e40b7c021eb67f36ed2d28175b8846e01eb2438be03827e2cd2654d35be5a1a248c36e9588ccdbe4545da0bee5047 checksum: 10/8d3e08fd0fbd411989f13223ee679978de91c41b366541e7fbb0201307314cf776d8255eaf19bd8cb6c678ad06e3e7c488c4f7bc1789098452616aa8e8d67333
languageName: node languageName: node
linkType: hard linkType: hard
"@substrate/connect@npm:0.8.10": "@substrate/connect@npm:0.8.11":
version: 0.8.10 version: 0.8.11
resolution: "@substrate/connect@npm:0.8.10" resolution: "@substrate/connect@npm:0.8.11"
dependencies: dependencies:
"@substrate/connect-extension-protocol": "npm:^2.0.0" "@substrate/connect-extension-protocol": "npm:^2.0.0"
"@substrate/connect-known-chains": "npm:^1.1.4" "@substrate/connect-known-chains": "npm:^1.1.5"
"@substrate/light-client-extension-helpers": "npm:^0.0.6" "@substrate/light-client-extension-helpers": "npm:^1.0.0"
smoldot: "npm:2.0.22" smoldot: "npm:2.0.26"
checksum: 10/078c08d12eb12b55b2c8ee0e0c335284db07d13b48cc5329db68a6376173f1fb6b2357fb47f8ec4da7b66f4230d9bc2c3873beb66d755c475969d1cdbbec316f checksum: 10/380ba85aa3aec4439fae2ee42173376615ca60262d9c37e6e43d1d65d0d0f63f38c009bb476e9a612b0b9985c1b5808c4d9a75aff9e1828c77e75c8b7584d824
languageName: node languageName: node
linkType: hard linkType: hard
"@substrate/light-client-extension-helpers@npm:^0.0.6": "@substrate/light-client-extension-helpers@npm:^1.0.0":
version: 0.0.6 version: 1.0.0
resolution: "@substrate/light-client-extension-helpers@npm:0.0.6" resolution: "@substrate/light-client-extension-helpers@npm:1.0.0"
dependencies: dependencies:
"@polkadot-api/json-rpc-provider": "npm:0.0.1" "@polkadot-api/json-rpc-provider": "npm:^0.0.1"
"@polkadot-api/json-rpc-provider-proxy": "npm:0.0.1" "@polkadot-api/json-rpc-provider-proxy": "npm:^0.1.0"
"@polkadot-api/observable-client": "npm:0.1.0" "@polkadot-api/observable-client": "npm:^0.3.0"
"@polkadot-api/substrate-client": "npm:0.0.1" "@polkadot-api/substrate-client": "npm:^0.1.2"
"@substrate/connect-extension-protocol": "npm:^2.0.0" "@substrate/connect-extension-protocol": "npm:^2.0.0"
"@substrate/connect-known-chains": "npm:^1.1.4" "@substrate/connect-known-chains": "npm:^1.1.5"
rxjs: "npm:^7.8.1" rxjs: "npm:^7.8.1"
peerDependencies: peerDependencies:
smoldot: 2.x smoldot: 2.x
checksum: 10/1a3576019538c8150dd56ddae3ec6ed7b6272af72cd6d17cbb5de76d6ae554af2a0bf72bbb9ffd4b9c64c9eb9ee3f13caaad57e01c5173e35a0cb799fd27574a checksum: 10/ca0726e8271aa9eb4f1edbb13e7f6986d45c9a4ae9a73a1a14aa9a41552821ca291a33459b7e8fc1ec1bde1ead9336a8bca4fb8781c060d5cbdd7e59ca96cb2d
languageName: node languageName: node
linkType: hard linkType: hard
@@ -1419,12 +1422,12 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@types/node@npm:*, @types/node@npm:^20.11.6": "@types/node@npm:*, @types/node@npm:^20.15.0":
version: 20.11.6 version: 20.15.0
resolution: "@types/node@npm:20.11.6" resolution: "@types/node@npm:20.15.0"
dependencies: dependencies:
undici-types: "npm:~5.26.4" undici-types: "npm:~6.13.0"
checksum: 10/375dfc75f0aa8b7fb99382d84c317e5dab2969dcc3f54d8490b119151060923eae6483839552347bc78262bbcefb2951ee131e15372f4e80b755be2dda9afe80 checksum: 10/bec475ee6c54dc575ec4d322753df484af2b96e3afdd3f6f8e594353b3918ca5f420e7c30845225661a14a7522fa421d15294fbf68ed7ae16f4ae7942ca809bd
languageName: node languageName: node
linkType: hard linkType: hard
@@ -1516,12 +1519,12 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@types/yargs@npm:^17.0.32": "@types/yargs@npm:^17.0.33":
version: 17.0.32 version: 17.0.33
resolution: "@types/yargs@npm:17.0.32" resolution: "@types/yargs@npm:17.0.33"
dependencies: dependencies:
"@types/yargs-parser": "npm:*" "@types/yargs-parser": "npm:*"
checksum: 10/1e2b2673847011ce43607df690d392f137d95a2d6ea85aa319403eadda2ef4277365efd4982354d8843f2611ef3846c88599660aaeb537fa9ccddae83c2a89de checksum: 10/16f6681bf4d99fb671bf56029141ed01db2862e3db9df7fc92d8bea494359ac96a1b4b1c35a836d1e95e665fb18ad753ab2015fc0db663454e8fd4e5d5e2ef91
languageName: node languageName: node
linkType: hard linkType: hard
@@ -6676,14 +6679,14 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"nock@npm:^13.5.0": "nock@npm:^13.5.4":
version: 13.5.0 version: 13.5.4
resolution: "nock@npm:13.5.0" resolution: "nock@npm:13.5.4"
dependencies: dependencies:
debug: "npm:^4.1.0" debug: "npm:^4.1.0"
json-stringify-safe: "npm:^5.0.1" json-stringify-safe: "npm:^5.0.1"
propagate: "npm:^2.0.0" propagate: "npm:^2.0.0"
checksum: 10/347e6804d3eadb2ec81e3a0808b4cf8d826e5a6b52aa91b31db9c78c9afb58f0af0d1c941dff13d78ff99968b025dea9593f341cc515463270cb69d8e293c9cf checksum: 10/75bad391bae4efb81b742734af5f2d87309cd93d3ca6b78372fd37946d78ccb254d79104676619866915e6734abfc1b00fee2aa42073a4843ca3c746aad35a4d
languageName: node languageName: node
linkType: hard linkType: hard
@@ -7944,7 +7947,7 @@ __metadata:
dependencies: dependencies:
"@polkadot/dev": "npm:^0.79.3" "@polkadot/dev": "npm:^0.79.3"
"@polkadot/typegen": "workspace:packages/typegen" "@polkadot/typegen": "workspace:packages/typegen"
"@types/node": "npm:^20.11.6" "@types/node": "npm:^20.15.0"
languageName: unknown languageName: unknown
linkType: soft linkType: soft
@@ -8329,12 +8332,12 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"smoldot@npm:2.0.22": "smoldot@npm:2.0.26":
version: 2.0.22 version: 2.0.26
resolution: "smoldot@npm:2.0.22" resolution: "smoldot@npm:2.0.26"
dependencies: dependencies:
ws: "npm:^8.8.1" ws: "npm:^8.8.1"
checksum: 10/8d63720ff7aee9ff4cbfb3d6952c68781aaaecf49fcb20d8b76919e854975b029071778c4c3bd50a18a4c3e0c96857b2b6daa526bbad4a3bee20f2aad8dfe388 checksum: 10/b975c8ef16e2286b2eddc8c19c18080bd528f27e9abc0e2731304823e67ebe1fc71b01bed2c070d00da1f7e2f69e25c159c976d27eb1796de4a978362dae701e
languageName: node languageName: node
linkType: hard linkType: hard
@@ -8925,10 +8928,10 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"tslib@npm:^2.1.0, tslib@npm:^2.3.1, tslib@npm:^2.6.2": "tslib@npm:^2.1.0, tslib@npm:^2.3.1, tslib@npm:^2.6.2, tslib@npm:^2.6.3":
version: 2.6.2 version: 2.6.3
resolution: "tslib@npm:2.6.2" resolution: "tslib@npm:2.6.3"
checksum: 10/bd26c22d36736513980091a1e356378e8b662ded04204453d353a7f34a4c21ed0afc59b5f90719d4ba756e581a162ecbf93118dc9c6be5acf70aa309188166ca checksum: 10/52109bb681f8133a2e58142f11a50e05476de4f075ca906d13b596ae5f7f12d30c482feb0bff167ae01cfc84c5803e575a307d47938999246f5a49d174fc558c
languageName: node languageName: node
linkType: hard linkType: hard
@@ -9112,10 +9115,10 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"undici-types@npm:~5.26.4": "undici-types@npm:~6.13.0":
version: 5.26.5 version: 6.13.0
resolution: "undici-types@npm:5.26.5" resolution: "undici-types@npm:6.13.0"
checksum: 10/0097779d94bc0fd26f0418b3a05472410408877279141ded2bd449167be1aed7ea5b76f756562cb3586a07f251b90799bab22d9019ceba49c037c76445f7cddd checksum: 10/da52e37cbc6da3a75da86fa08dd795ca8924430deb91005eb884b840e46e19013ccd4c1c289f70018e8cf0c338add24a500e7c3acfcd49b1ffb27ff9f91e38b9
languageName: node languageName: node
linkType: hard linkType: hard