Compare commits

...
8 Commits
Author SHA1 Message Date
github-actions[bot] f80286f0f8 [CI Skip] release/stable 15.4.1
skip-checks: true
2025-01-20 21:25:42 +00:00
Tarik Gul abc7a9e0e7 15.4.1 (#6071) 2025-01-20 23:20:17 +02:00
github-actions[bot] a8ae91d36b [CI Skip] bump/beta 15.3.2-2-x
skip-checks: true
2025-01-20 16:49:39 +00:00
Valentin Fernandez 3c457940ff Add ElectionResult type override (#6067) 2025-01-20 11:44:09 -05:00
github-actions[bot] 157b3124e3 [CI Skip] bump/beta 15.3.2-1-x
skip-checks: true
2025-01-17 17:55:39 +00:00
Tarik Gul c21090e6e9 Bump dev to 0.83.2 (#6069) 2025-01-17 19:50:03 +02:00
github-actions[bot] e6f1cb80b8 [CI Skip] bump/beta 15.3.2-0-x
skip-checks: true
2025-01-14 20:08:40 +00:00
Valentin Fernandez 4323c6fd95 Allow api.derive.accounts.identity() to obtain SubIdentities (#6066)
* Allow api.derive.accounts.identity to obtain subidentities

* Fix subs type
2025-01-14 15:00:38 -05:00
41 changed files with 264 additions and 203 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ jobs:
node-version: 'lts/*'
- uses: denoland/setup-deno@v1
with:
deno-version: v1.42.x
deno-version: v1.46.3
- name: ${{ matrix.step }}
if: always()
run: |
+9
View File
@@ -1,5 +1,14 @@
# CHANGELOG
## 15.4.1 Jan 20, 2024
- Allow api.derive.accounts.identity() to obtain SubIdentities ([#6066](https://github.com/polkadot-js/api/pull/6066))
- Adds a new field `subs` to the `DeriveAccountRegistration` output of `api.derive.accounts.identity()`
- Add ElectionResult type override ([#6067](https://github.com/polkadot-js/api/pull/6067))
- Bump dev to 0.83.2 ([#6069](https://github.com/polkadot-js/api/pull/6069))
- Increases performance of the test-runner, both locally, and in the CI
## 15.3.1 Jan 11, 2024
- Set typegen scripts for Docs to use v15 ([#6060](https://github.com/polkadot-js/api/pull/6060))
+2 -1
View File
@@ -1,5 +1,5 @@
3512 Jaco Bump deps (#5785)
152 Tarik Gul 15.3.1 (#6064)
154 Tarik Gul 15.4.1 (#6071)
83 Amaury Martiny StatementKind: Regular and Saft (#2303)
37 Keith Ingram Update contract types and rpc (#4541)
35 Stefanie Doll Updated child storage parameters (#1709)
@@ -50,6 +50,7 @@
2 peetzweg/ feat: ink! v5 (#5791)
2 rob thijssen nimbus author mapping correction (#5590)
2 sung wu Update tx.md (#2485)
2 Valentin Fernandez Add ElectionResult type override (#6067)
2 Veliko Abi constructor takes different parameters (#3347)
2 Wei Tang Use /usr/bin/env bash instead of /bin/bash (#2053)
2 Yaroslav Bolyukin feat: allow objects to be supplied as map keys (#5128)
+4 -4
View File
@@ -14,10 +14,10 @@
},
"sideEffects": false,
"type": "module",
"version": "15.3.1",
"version": "15.4.1",
"versions": {
"git": "15.3.1",
"npm": "15.3.1"
"git": "15.4.1",
"npm": "15.4.1"
},
"workspaces": [
"packages/*"
@@ -40,7 +40,7 @@
"test:one": "polkadot-dev-run-test --env node"
},
"devDependencies": {
"@polkadot/dev": "^0.82.4",
"@polkadot/dev": "^0.83.2",
"@polkadot/typegen": "workspace:packages/typegen",
"@types/node": "^22.10.5"
},
+6 -6
View File
@@ -18,14 +18,14 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "15.3.1",
"version": "15.4.1",
"main": "index.js",
"dependencies": {
"@polkadot/api-base": "15.3.1",
"@polkadot/rpc-augment": "15.3.1",
"@polkadot/types": "15.3.1",
"@polkadot/types-augment": "15.3.1",
"@polkadot/types-codec": "15.3.1",
"@polkadot/api-base": "15.4.1",
"@polkadot/rpc-augment": "15.4.1",
"@polkadot/types": "15.4.1",
"@polkadot/types-augment": "15.4.1",
"@polkadot/types-codec": "15.4.1",
"@polkadot/util": "^13.3.1",
"tslib": "^2.8.1"
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '15.3.1' };
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '15.4.1' };
+3 -3
View File
@@ -18,11 +18,11 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "15.3.1",
"version": "15.4.1",
"main": "index.js",
"dependencies": {
"@polkadot/rpc-core": "15.3.1",
"@polkadot/types": "15.3.1",
"@polkadot/rpc-core": "15.4.1",
"@polkadot/types": "15.4.1",
"@polkadot/util": "^13.3.1",
"rxjs": "^7.8.1",
"tslib": "^2.8.1"
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '15.3.1' };
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '15.4.1' };
+8 -8
View File
@@ -18,22 +18,22 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "15.3.1",
"version": "15.4.1",
"main": "index.js",
"dependencies": {
"@polkadot/api": "15.3.1",
"@polkadot/api-augment": "15.3.1",
"@polkadot/types": "15.3.1",
"@polkadot/types-codec": "15.3.1",
"@polkadot/types-create": "15.3.1",
"@polkadot/api": "15.4.1",
"@polkadot/api-augment": "15.4.1",
"@polkadot/types": "15.4.1",
"@polkadot/types-codec": "15.4.1",
"@polkadot/types-create": "15.4.1",
"@polkadot/util": "^13.3.1",
"@polkadot/util-crypto": "^13.3.1",
"rxjs": "^7.8.1",
"tslib": "^2.8.1"
},
"devDependencies": {
"@polkadot/api-augment": "15.3.1",
"@polkadot/api-augment": "15.4.1",
"@polkadot/keyring": "^13.3.1",
"@polkadot/types-support": "15.3.1"
"@polkadot/types-support": "15.4.1"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '15.3.1' };
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '15.4.1' };
+12 -12
View File
@@ -18,25 +18,25 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "15.3.1",
"version": "15.4.1",
"main": "index.js",
"dependencies": {
"@polkadot/api": "15.3.1",
"@polkadot/api-augment": "15.3.1",
"@polkadot/api-base": "15.3.1",
"@polkadot/rpc-core": "15.3.1",
"@polkadot/types": "15.3.1",
"@polkadot/types-codec": "15.3.1",
"@polkadot/api": "15.4.1",
"@polkadot/api-augment": "15.4.1",
"@polkadot/api-base": "15.4.1",
"@polkadot/rpc-core": "15.4.1",
"@polkadot/types": "15.4.1",
"@polkadot/types-codec": "15.4.1",
"@polkadot/util": "^13.3.1",
"@polkadot/util-crypto": "^13.3.1",
"rxjs": "^7.8.1",
"tslib": "^2.8.1"
},
"devDependencies": {
"@polkadot/api": "15.3.1",
"@polkadot/api-augment": "15.3.1",
"@polkadot/rpc-augment": "15.3.1",
"@polkadot/rpc-provider": "15.3.1",
"@polkadot/types-support": "15.3.1"
"@polkadot/api": "15.4.1",
"@polkadot/api-augment": "15.4.1",
"@polkadot/rpc-augment": "15.4.1",
"@polkadot/rpc-provider": "15.4.1",
"@polkadot/types-support": "15.4.1"
}
}
@@ -135,11 +135,36 @@ export function identity (instanceId: string, api: DeriveApi): (accountId?: Acco
),
map(([identityOfOpt, superOf]) =>
extractIdentity(identityOfOpt, superOf)
),
switchMap((identity) =>
getSubIdentities(identity, api, accountId)
)
)
);
}
// if an account has no parents it will extract its subidentities
// otherwise if the account is a subidentity, obtain all subidentities of its parent.
function getSubIdentities (identity: DeriveAccountRegistration, api: DeriveApi, accountId?: AccountId | Uint8Array | string): Observable<DeriveAccountRegistration> {
const targetAccount = identity.parent || accountId;
if (!targetAccount) {
// No valid accountId return the identity as-is
return of(identity);
}
return api.query.identity.subsOf(targetAccount).pipe(
map((subsResponse) => {
const subs = subsResponse[1];
return {
...identity,
subs
};
})
);
}
export const hasIdentity = /*#__PURE__*/ firstMemo(
(api: DeriveApi, accountId: AccountId | Uint8Array | string) =>
api.derive.accounts.hasIdentityMulti([accountId])
@@ -2,6 +2,7 @@
// SPDX-License-Identifier: Apache-2.0
import type { AccountId, AccountIndex, RegistrationJudgement } from '@polkadot/types/interfaces';
import type { Vec } from '@polkadot/types-codec';
export type AccountIdAndIndex = [AccountId | undefined, AccountIndex | undefined];
@@ -20,6 +21,7 @@ export interface DeriveAccountRegistration {
parent?: AccountId | undefined;
pgp?: string | undefined;
riot?: string | undefined;
subs?: Vec<AccountId> | undefined;
twitter?: string | undefined;
web?: string | undefined;
judgements: RegistrationJudgement[];
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '15.3.1' };
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '15.4.1' };
+14 -14
View File
@@ -18,21 +18,21 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "15.3.1",
"version": "15.4.1",
"main": "index.js",
"dependencies": {
"@polkadot/api-augment": "15.3.1",
"@polkadot/api-base": "15.3.1",
"@polkadot/api-derive": "15.3.1",
"@polkadot/api-augment": "15.4.1",
"@polkadot/api-base": "15.4.1",
"@polkadot/api-derive": "15.4.1",
"@polkadot/keyring": "^13.3.1",
"@polkadot/rpc-augment": "15.3.1",
"@polkadot/rpc-core": "15.3.1",
"@polkadot/rpc-provider": "15.3.1",
"@polkadot/types": "15.3.1",
"@polkadot/types-augment": "15.3.1",
"@polkadot/types-codec": "15.3.1",
"@polkadot/types-create": "15.3.1",
"@polkadot/types-known": "15.3.1",
"@polkadot/rpc-augment": "15.4.1",
"@polkadot/rpc-core": "15.4.1",
"@polkadot/rpc-provider": "15.4.1",
"@polkadot/types": "15.4.1",
"@polkadot/types-augment": "15.4.1",
"@polkadot/types-codec": "15.4.1",
"@polkadot/types-create": "15.4.1",
"@polkadot/types-known": "15.4.1",
"@polkadot/util": "^13.3.1",
"@polkadot/util-crypto": "^13.3.1",
"eventemitter3": "^5.0.1",
@@ -40,7 +40,7 @@
"tslib": "^2.8.1"
},
"devDependencies": {
"@polkadot/api-augment": "15.3.1",
"@polkadot/types-support": "15.3.1"
"@polkadot/api-augment": "15.4.1",
"@polkadot/types-support": "15.4.1"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '15.3.1' };
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '15.4.1' };
+4 -4
View File
@@ -18,12 +18,12 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "15.3.1",
"version": "15.4.1",
"main": "index.js",
"dependencies": {
"@polkadot/rpc-core": "15.3.1",
"@polkadot/types": "15.3.1",
"@polkadot/types-codec": "15.3.1",
"@polkadot/rpc-core": "15.4.1",
"@polkadot/types": "15.4.1",
"@polkadot/types-codec": "15.4.1",
"@polkadot/util": "^13.3.1",
"tslib": "^2.8.1"
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '15.3.1' };
export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '15.4.1' };
+5 -5
View File
@@ -18,18 +18,18 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "15.3.1",
"version": "15.4.1",
"main": "index.js",
"dependencies": {
"@polkadot/rpc-augment": "15.3.1",
"@polkadot/rpc-provider": "15.3.1",
"@polkadot/types": "15.3.1",
"@polkadot/rpc-augment": "15.4.1",
"@polkadot/rpc-provider": "15.4.1",
"@polkadot/types": "15.4.1",
"@polkadot/util": "^13.3.1",
"rxjs": "^7.8.1",
"tslib": "^2.8.1"
},
"devDependencies": {
"@polkadot/keyring": "^13.3.1",
"@polkadot/rpc-augment": "15.3.1"
"@polkadot/rpc-augment": "15.4.1"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '15.3.1' };
export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '15.4.1' };
+3 -3
View File
@@ -18,12 +18,12 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "15.3.1",
"version": "15.4.1",
"main": "index.js",
"dependencies": {
"@polkadot/keyring": "^13.3.1",
"@polkadot/types": "15.3.1",
"@polkadot/types-support": "15.3.1",
"@polkadot/types": "15.4.1",
"@polkadot/types-support": "15.4.1",
"@polkadot/util": "^13.3.1",
"@polkadot/util-crypto": "^13.3.1",
"@polkadot/x-fetch": "^13.3.1",
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '15.3.1' };
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '15.4.1' };
+10 -10
View File
@@ -18,7 +18,7 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "15.3.1",
"version": "15.4.1",
"main": "index.js",
"bin": {
"polkadot-types-chain-info": "./scripts/polkadot-types-chain-info.mjs",
@@ -28,15 +28,15 @@
"polkadot-types-internal-metadata": "./scripts/polkadot-types-internal-metadata.mjs"
},
"dependencies": {
"@polkadot/api": "15.3.1",
"@polkadot/api-augment": "15.3.1",
"@polkadot/rpc-augment": "15.3.1",
"@polkadot/rpc-provider": "15.3.1",
"@polkadot/types": "15.3.1",
"@polkadot/types-augment": "15.3.1",
"@polkadot/types-codec": "15.3.1",
"@polkadot/types-create": "15.3.1",
"@polkadot/types-support": "15.3.1",
"@polkadot/api": "15.4.1",
"@polkadot/api-augment": "15.4.1",
"@polkadot/rpc-augment": "15.4.1",
"@polkadot/rpc-provider": "15.4.1",
"@polkadot/types": "15.4.1",
"@polkadot/types-augment": "15.4.1",
"@polkadot/types-codec": "15.4.1",
"@polkadot/types-create": "15.4.1",
"@polkadot/types-support": "15.4.1",
"@polkadot/util": "^13.3.1",
"@polkadot/util-crypto": "^13.3.1",
"@polkadot/x-ws": "^13.3.1",
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '15.3.1' };
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '15.4.1' };
+3 -3
View File
@@ -18,11 +18,11 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "15.3.1",
"version": "15.4.1",
"main": "index.js",
"dependencies": {
"@polkadot/types": "15.3.1",
"@polkadot/types-codec": "15.3.1",
"@polkadot/types": "15.4.1",
"@polkadot/types-codec": "15.4.1",
"@polkadot/util": "^13.3.1",
"tslib": "^2.8.1"
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '15.3.1' };
export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '15.4.1' };
@@ -63,7 +63,7 @@ import type { Si0Field, Si0LookupTypeId, Si0Path, Si0Type, Si0TypeDef, Si0TypeDe
import type { Period, Priority, SchedulePeriod, SchedulePriority, Scheduled, ScheduledTo254, TaskAddress } from '@polkadot/types/interfaces/scheduler';
import type { BeefyKey, FullIdentification, IdentificationTuple, Keys, MembershipProof, SessionIndex, SessionKeys1, SessionKeys10, SessionKeys10B, SessionKeys2, SessionKeys3, SessionKeys4, SessionKeys5, SessionKeys6, SessionKeys6B, SessionKeys7, SessionKeys7B, SessionKeys8, SessionKeys8B, SessionKeys9, SessionKeys9B, ValidatorCount } from '@polkadot/types/interfaces/session';
import type { Bid, BidKind, SocietyJudgement, SocietyVote, StrikeCount, VouchingStatus } from '@polkadot/types/interfaces/society';
import type { ActiveEraInfo, CompactAssignments, CompactAssignmentsTo257, CompactAssignmentsTo265, CompactAssignmentsWith16, CompactAssignmentsWith24, CompactScore, CompactScoreCompact, ElectionCompute, ElectionPhase, ElectionResult, ElectionScore, ElectionSize, ElectionStatus, EraIndex, EraPoints, EraRewardPoints, EraRewards, Exposure, ExtendedBalance, Forcing, IndividualExposure, KeyType, MomentOf, Nominations, NominatorIndex, NominatorIndexCompact, OffchainAccuracy, OffchainAccuracyCompact, PhragmenScore, Points, RawSolution, RawSolutionTo265, RawSolutionWith16, RawSolutionWith24, ReadySolution, RewardDestination, RewardPoint, RoundSnapshot, SeatHolder, SignedSubmission, SignedSubmissionOf, SignedSubmissionTo276, SlashJournalEntry, SlashingSpans, SlashingSpansTo204, SolutionOrSnapshotSize, SolutionSupport, SolutionSupports, SpanIndex, SpanRecord, StakingLedger, StakingLedgerTo223, StakingLedgerTo240, SubmissionIndicesOf, Supports, UnappliedSlash, UnappliedSlashOther, UnlockChunk, ValidatorIndex, ValidatorIndexCompact, ValidatorPrefs, ValidatorPrefsTo145, ValidatorPrefsTo196, ValidatorPrefsWithBlocked, ValidatorPrefsWithCommission, VoteWeight, Voter } from '@polkadot/types/interfaces/staking';
import type { ActiveEraInfo, CompactAssignments, CompactAssignmentsTo257, CompactAssignmentsTo265, CompactAssignmentsWith16, CompactAssignmentsWith24, CompactScore, CompactScoreCompact, ElectionCompute, ElectionPhase, ElectionResult, ElectionResultToSpec10, ElectionScore, ElectionSize, ElectionStatus, EraIndex, EraPoints, EraRewardPoints, EraRewards, Exposure, ExtendedBalance, Forcing, IndividualExposure, KeyType, MomentOf, Nominations, NominatorIndex, NominatorIndexCompact, OffchainAccuracy, OffchainAccuracyCompact, PhragmenScore, Points, RawSolution, RawSolutionTo265, RawSolutionWith16, RawSolutionWith24, ReadySolution, RewardDestination, RewardPoint, RoundSnapshot, SeatHolder, SignedSubmission, SignedSubmissionOf, SignedSubmissionTo276, SlashJournalEntry, SlashingSpans, SlashingSpansTo204, SolutionOrSnapshotSize, SolutionSupport, SolutionSupports, SpanIndex, SpanRecord, StakingLedger, StakingLedgerTo223, StakingLedgerTo240, SubmissionIndicesOf, Supports, UnappliedSlash, UnappliedSlashOther, UnlockChunk, ValidatorIndex, ValidatorIndexCompact, ValidatorPrefs, ValidatorPrefsTo145, ValidatorPrefsTo196, ValidatorPrefsWithBlocked, ValidatorPrefsWithCommission, VoteWeight, Voter } from '@polkadot/types/interfaces/staking';
import type { ApiId, BlockTrace, BlockTraceEvent, BlockTraceEventData, BlockTraceSpan, KeyValueOption, MigrationStatusResult, ReadProof, RuntimeVersion, RuntimeVersionApi, RuntimeVersionPartial, RuntimeVersionPre3, RuntimeVersionPre4, SpecVersion, StorageChangeSet, TraceBlockResponse, TraceError } from '@polkadot/types/interfaces/state';
import type { StatementStoreInvalidStatement, StatementStoreStatementSource, StatementStoreValidStatement } from '@polkadot/types/interfaces/statement';
import type { WeightToFeeCoefficient } from '@polkadot/types/interfaces/support';
@@ -402,6 +402,7 @@ declare module '@polkadot/types/types/registry' {
ElectionCompute: ElectionCompute;
ElectionPhase: ElectionPhase;
ElectionResult: ElectionResult;
ElectionResultToSpec10: ElectionResultToSpec10;
ElectionScore: ElectionScore;
ElectionSize: ElectionSize;
ElectionStatus: ElectionStatus;
+4 -4
View File
@@ -18,7 +18,7 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "15.3.1",
"version": "15.4.1",
"main": "index.js",
"dependencies": {
"@polkadot/util": "^13.3.1",
@@ -26,9 +26,9 @@
"tslib": "^2.8.1"
},
"devDependencies": {
"@polkadot/types": "15.3.1",
"@polkadot/types-augment": "15.3.1",
"@polkadot/types-support": "15.3.1",
"@polkadot/types": "15.4.1",
"@polkadot/types-augment": "15.4.1",
"@polkadot/types-support": "15.4.1",
"@polkadot/util-crypto": "^13.3.1"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types-codec', path: 'auto', type: 'auto', version: '15.3.1' };
export const packageInfo = { name: '@polkadot/types-codec', path: 'auto', type: 'auto', version: '15.4.1' };
+3 -3
View File
@@ -18,14 +18,14 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "15.3.1",
"version": "15.4.1",
"main": "index.js",
"dependencies": {
"@polkadot/types-codec": "15.3.1",
"@polkadot/types-codec": "15.4.1",
"@polkadot/util": "^13.3.1",
"tslib": "^2.8.1"
},
"devDependencies": {
"@polkadot/types": "15.3.1"
"@polkadot/types": "15.4.1"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types-create', path: 'auto', type: 'auto', version: '15.3.1' };
export const packageInfo = { name: '@polkadot/types-create', path: 'auto', type: 'auto', version: '15.4.1' };
+5 -5
View File
@@ -18,17 +18,17 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "15.3.1",
"version": "15.4.1",
"main": "index.js",
"dependencies": {
"@polkadot/networks": "^13.3.1",
"@polkadot/types": "15.3.1",
"@polkadot/types-codec": "15.3.1",
"@polkadot/types-create": "15.3.1",
"@polkadot/types": "15.4.1",
"@polkadot/types-codec": "15.4.1",
"@polkadot/types-create": "15.4.1",
"@polkadot/util": "^13.3.1",
"tslib": "^2.8.1"
},
"devDependencies": {
"@polkadot/api": "15.3.1"
"@polkadot/api": "15.4.1"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types-known', path: 'auto', type: 'auto', version: '15.3.1' };
export const packageInfo = { name: '@polkadot/types-known', path: 'auto', type: 'auto', version: '15.4.1' };
+12 -1
View File
@@ -37,7 +37,18 @@ const addrAccountIdTypes = {
// these are override types for Polkadot
export const versioned: OverrideVersionedType[] = [
{
minmax: [0, 12],
minmax: [0, 10],
types: {
...sharedTypes,
...addrAccountIdTypes,
CompactAssignments: 'CompactAssignmentsTo257',
OpenTip: 'OpenTipTo225',
RefCount: 'RefCountTo259',
ElectionResult: 'ElectionResultToSpec10'
}
},
{
minmax: [11, 12],
types: {
...sharedTypes,
...addrAccountIdTypes,
+1 -1
View File
@@ -18,7 +18,7 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "15.3.1",
"version": "15.4.1",
"main": "index.js",
"dependencies": {
"@polkadot/util": "^13.3.1",
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types-support', path: 'auto', type: 'auto', version: '15.3.1' };
export const packageInfo = { name: '@polkadot/types-support', path: 'auto', type: 'auto', version: '15.4.1' };
+5 -5
View File
@@ -18,13 +18,13 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "15.3.1",
"version": "15.4.1",
"main": "index.js",
"dependencies": {
"@polkadot/keyring": "^13.3.1",
"@polkadot/types-augment": "15.3.1",
"@polkadot/types-codec": "15.3.1",
"@polkadot/types-create": "15.3.1",
"@polkadot/types-augment": "15.4.1",
"@polkadot/types-codec": "15.4.1",
"@polkadot/types-create": "15.4.1",
"@polkadot/util": "^13.3.1",
"@polkadot/util-crypto": "^13.3.1",
"rxjs": "^7.8.1",
@@ -32,6 +32,6 @@
},
"devDependencies": {
"@polkadot/keyring": "^13.3.1",
"@polkadot/types-support": "15.3.1"
"@polkadot/types-support": "15.4.1"
}
}
@@ -102,6 +102,11 @@ const phragmen = {
electedStashes: 'Vec<AccountId>',
exposures: 'Vec<(AccountId, Exposure)>'
},
ElectionResultToSpec10: {
electedStashes: 'Vec<AccountId>',
exposures: 'Vec<(AccountId, Exposure<AccountId, Balance>)>',
compute: 'ElectionCompute'
},
ElectionScore: '[u128; 3]',
ElectionSize: {
validators: 'Compact<ValidatorIndex>',
@@ -117,6 +117,13 @@ export interface ElectionResult extends Struct {
readonly exposures: Vec<ITuple<[AccountId, Exposure]>>;
}
/** @name ElectionResultToSpec10 */
export interface ElectionResultToSpec10 extends Struct {
readonly electedStashes: Vec<AccountId>;
readonly exposures: Vec<ITuple<[AccountId, Exposure]>>;
readonly compute: ElectionCompute;
}
/** @name ElectionScore */
export interface ElectionScore extends Vec<u128> {}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types', path: 'auto', type: 'auto', version: '15.3.1' };
export const packageInfo = { name: '@polkadot/types', path: 'auto', type: 'auto', version: '15.4.1' };
+94 -94
View File
@@ -447,26 +447,26 @@ __metadata:
languageName: node
linkType: hard
"@polkadot/api-augment@npm:15.3.1, @polkadot/api-augment@workspace:packages/api-augment":
"@polkadot/api-augment@npm:15.4.1, @polkadot/api-augment@workspace:packages/api-augment":
version: 0.0.0-use.local
resolution: "@polkadot/api-augment@workspace:packages/api-augment"
dependencies:
"@polkadot/api-base": "npm:15.3.1"
"@polkadot/rpc-augment": "npm:15.3.1"
"@polkadot/types": "npm:15.3.1"
"@polkadot/types-augment": "npm:15.3.1"
"@polkadot/types-codec": "npm:15.3.1"
"@polkadot/api-base": "npm:15.4.1"
"@polkadot/rpc-augment": "npm:15.4.1"
"@polkadot/types": "npm:15.4.1"
"@polkadot/types-augment": "npm:15.4.1"
"@polkadot/types-codec": "npm:15.4.1"
"@polkadot/util": "npm:^13.3.1"
tslib: "npm:^2.8.1"
languageName: unknown
linkType: soft
"@polkadot/api-base@npm:15.3.1, @polkadot/api-base@workspace:packages/api-base":
"@polkadot/api-base@npm:15.4.1, @polkadot/api-base@workspace:packages/api-base":
version: 0.0.0-use.local
resolution: "@polkadot/api-base@workspace:packages/api-base"
dependencies:
"@polkadot/rpc-core": "npm:15.3.1"
"@polkadot/types": "npm:15.3.1"
"@polkadot/rpc-core": "npm:15.4.1"
"@polkadot/types": "npm:15.4.1"
"@polkadot/util": "npm:^13.3.1"
rxjs: "npm:^7.8.1"
tslib: "npm:^2.8.1"
@@ -477,13 +477,13 @@ __metadata:
version: 0.0.0-use.local
resolution: "@polkadot/api-contract@workspace:packages/api-contract"
dependencies:
"@polkadot/api": "npm:15.3.1"
"@polkadot/api-augment": "npm:15.3.1"
"@polkadot/api": "npm:15.4.1"
"@polkadot/api-augment": "npm:15.4.1"
"@polkadot/keyring": "npm:^13.3.1"
"@polkadot/types": "npm:15.3.1"
"@polkadot/types-codec": "npm:15.3.1"
"@polkadot/types-create": "npm:15.3.1"
"@polkadot/types-support": "npm:15.3.1"
"@polkadot/types": "npm:15.4.1"
"@polkadot/types-codec": "npm:15.4.1"
"@polkadot/types-create": "npm:15.4.1"
"@polkadot/types-support": "npm:15.4.1"
"@polkadot/util": "npm:^13.3.1"
"@polkadot/util-crypto": "npm:^13.3.1"
rxjs: "npm:^7.8.1"
@@ -491,19 +491,19 @@ __metadata:
languageName: unknown
linkType: soft
"@polkadot/api-derive@npm:15.3.1, @polkadot/api-derive@workspace:packages/api-derive":
"@polkadot/api-derive@npm:15.4.1, @polkadot/api-derive@workspace:packages/api-derive":
version: 0.0.0-use.local
resolution: "@polkadot/api-derive@workspace:packages/api-derive"
dependencies:
"@polkadot/api": "npm:15.3.1"
"@polkadot/api-augment": "npm:15.3.1"
"@polkadot/api-base": "npm:15.3.1"
"@polkadot/rpc-augment": "npm:15.3.1"
"@polkadot/rpc-core": "npm:15.3.1"
"@polkadot/rpc-provider": "npm:15.3.1"
"@polkadot/types": "npm:15.3.1"
"@polkadot/types-codec": "npm:15.3.1"
"@polkadot/types-support": "npm:15.3.1"
"@polkadot/api": "npm:15.4.1"
"@polkadot/api-augment": "npm:15.4.1"
"@polkadot/api-base": "npm:15.4.1"
"@polkadot/rpc-augment": "npm:15.4.1"
"@polkadot/rpc-core": "npm:15.4.1"
"@polkadot/rpc-provider": "npm:15.4.1"
"@polkadot/types": "npm:15.4.1"
"@polkadot/types-codec": "npm:15.4.1"
"@polkadot/types-support": "npm:15.4.1"
"@polkadot/util": "npm:^13.3.1"
"@polkadot/util-crypto": "npm:^13.3.1"
rxjs: "npm:^7.8.1"
@@ -511,23 +511,23 @@ __metadata:
languageName: unknown
linkType: soft
"@polkadot/api@npm:15.3.1, @polkadot/api@workspace:packages/api":
"@polkadot/api@npm:15.4.1, @polkadot/api@workspace:packages/api":
version: 0.0.0-use.local
resolution: "@polkadot/api@workspace:packages/api"
dependencies:
"@polkadot/api-augment": "npm:15.3.1"
"@polkadot/api-base": "npm:15.3.1"
"@polkadot/api-derive": "npm:15.3.1"
"@polkadot/api-augment": "npm:15.4.1"
"@polkadot/api-base": "npm:15.4.1"
"@polkadot/api-derive": "npm:15.4.1"
"@polkadot/keyring": "npm:^13.3.1"
"@polkadot/rpc-augment": "npm:15.3.1"
"@polkadot/rpc-core": "npm:15.3.1"
"@polkadot/rpc-provider": "npm:15.3.1"
"@polkadot/types": "npm:15.3.1"
"@polkadot/types-augment": "npm:15.3.1"
"@polkadot/types-codec": "npm:15.3.1"
"@polkadot/types-create": "npm:15.3.1"
"@polkadot/types-known": "npm:15.3.1"
"@polkadot/types-support": "npm:15.3.1"
"@polkadot/rpc-augment": "npm:15.4.1"
"@polkadot/rpc-core": "npm:15.4.1"
"@polkadot/rpc-provider": "npm:15.4.1"
"@polkadot/types": "npm:15.4.1"
"@polkadot/types-augment": "npm:15.4.1"
"@polkadot/types-codec": "npm:15.4.1"
"@polkadot/types-create": "npm:15.4.1"
"@polkadot/types-known": "npm:15.4.1"
"@polkadot/types-support": "npm:15.4.1"
"@polkadot/util": "npm:^13.3.1"
"@polkadot/util-crypto": "npm:^13.3.1"
eventemitter3: "npm:^5.0.1"
@@ -536,34 +536,34 @@ __metadata:
languageName: unknown
linkType: soft
"@polkadot/dev-test@npm:^0.82.4":
version: 0.82.4
resolution: "@polkadot/dev-test@npm:0.82.4"
"@polkadot/dev-test@npm:^0.83.2":
version: 0.83.2
resolution: "@polkadot/dev-test@npm:0.83.2"
dependencies:
jsdom: "npm:^24.0.0"
tslib: "npm:^2.7.0"
checksum: 10/2db7c46be1869541d6a9f4689cfd29fedfea7c6563ae88f5356176815129d56bd55aa87f4c525b123733308dd3101712cc42a9925ad1e3fb7de7e418c19a0c51
checksum: 10/afe60165272a09d5c9f08e3aec0015621350dc7394ee8ff121d5803c576c7601b176b753716203abba4a81a142b529da066fe4c73f39387b018bdde69fef7a10
languageName: node
linkType: hard
"@polkadot/dev-ts@npm:^0.82.4":
version: 0.82.4
resolution: "@polkadot/dev-ts@npm:0.82.4"
"@polkadot/dev-ts@npm:^0.83.2":
version: 0.83.2
resolution: "@polkadot/dev-ts@npm:0.83.2"
dependencies:
json5: "npm:^2.2.3"
tslib: "npm:^2.7.0"
typescript: "npm:^5.5.4"
checksum: 10/8599b022df6c30c2be843eb772ee91147814e839f2d9ce0c3fef8091b418a4bdb465da4510901e8703ba0afa56e95f3f3eeda9bb35f1f68d6b8e65a9fd8bbe78
checksum: 10/abca4df87a0682285bf5e5644ab8522820d53e0dffc124bfe540b7fccc55532057d1912629584bb04648e855e110896b36e55536d53556a166fc3d33bcc27b39
languageName: node
linkType: hard
"@polkadot/dev@npm:^0.82.4":
version: 0.82.4
resolution: "@polkadot/dev@npm:0.82.4"
"@polkadot/dev@npm:^0.83.2":
version: 0.83.2
resolution: "@polkadot/dev@npm:0.83.2"
dependencies:
"@eslint/js": "npm:^8.56.0"
"@polkadot/dev-test": "npm:^0.82.4"
"@polkadot/dev-ts": "npm:^0.82.4"
"@polkadot/dev-test": "npm:^0.83.2"
"@polkadot/dev-ts": "npm:^0.83.2"
"@rollup/plugin-alias": "npm:^5.1.1"
"@rollup/plugin-commonjs": "npm:^25.0.8"
"@rollup/plugin-dynamic-import-vars": "npm:^2.1.5"
@@ -628,7 +628,7 @@ __metadata:
polkadot-exec-rollup: scripts/polkadot-exec-rollup.mjs
polkadot-exec-tsc: scripts/polkadot-exec-tsc.mjs
polkadot-exec-webpack: scripts/polkadot-exec-webpack.mjs
checksum: 10/16a896fcada4987d0b7661dc81675ad728063d435925b41f92124c144bdb23c81280257c451dce302146829d8f732910e91e49b2f9bb84518636f544760a6bec
checksum: 10/42a67e0f2401fc13bdffff86398958e326613461eaa294fb5b435037d636b94cbbbce81b1fadbdf3c0553798d3bc5df43ef6af2250f75e312f01e52b665eddfe
languageName: node
linkType: hard
@@ -657,39 +657,39 @@ __metadata:
languageName: node
linkType: hard
"@polkadot/rpc-augment@npm:15.3.1, @polkadot/rpc-augment@workspace:packages/rpc-augment":
"@polkadot/rpc-augment@npm:15.4.1, @polkadot/rpc-augment@workspace:packages/rpc-augment":
version: 0.0.0-use.local
resolution: "@polkadot/rpc-augment@workspace:packages/rpc-augment"
dependencies:
"@polkadot/rpc-core": "npm:15.3.1"
"@polkadot/types": "npm:15.3.1"
"@polkadot/types-codec": "npm:15.3.1"
"@polkadot/rpc-core": "npm:15.4.1"
"@polkadot/types": "npm:15.4.1"
"@polkadot/types-codec": "npm:15.4.1"
"@polkadot/util": "npm:^13.3.1"
tslib: "npm:^2.8.1"
languageName: unknown
linkType: soft
"@polkadot/rpc-core@npm:15.3.1, @polkadot/rpc-core@workspace:packages/rpc-core":
"@polkadot/rpc-core@npm:15.4.1, @polkadot/rpc-core@workspace:packages/rpc-core":
version: 0.0.0-use.local
resolution: "@polkadot/rpc-core@workspace:packages/rpc-core"
dependencies:
"@polkadot/keyring": "npm:^13.3.1"
"@polkadot/rpc-augment": "npm:15.3.1"
"@polkadot/rpc-provider": "npm:15.3.1"
"@polkadot/types": "npm:15.3.1"
"@polkadot/rpc-augment": "npm:15.4.1"
"@polkadot/rpc-provider": "npm:15.4.1"
"@polkadot/types": "npm:15.4.1"
"@polkadot/util": "npm:^13.3.1"
rxjs: "npm:^7.8.1"
tslib: "npm:^2.8.1"
languageName: unknown
linkType: soft
"@polkadot/rpc-provider@npm:15.3.1, @polkadot/rpc-provider@workspace:packages/rpc-provider":
"@polkadot/rpc-provider@npm:15.4.1, @polkadot/rpc-provider@workspace:packages/rpc-provider":
version: 0.0.0-use.local
resolution: "@polkadot/rpc-provider@workspace:packages/rpc-provider"
dependencies:
"@polkadot/keyring": "npm:^13.3.1"
"@polkadot/types": "npm:15.3.1"
"@polkadot/types-support": "npm:15.3.1"
"@polkadot/types": "npm:15.4.1"
"@polkadot/types-support": "npm:15.4.1"
"@polkadot/util": "npm:^13.3.1"
"@polkadot/util-crypto": "npm:^13.3.1"
"@polkadot/x-fetch": "npm:^13.3.1"
@@ -710,15 +710,15 @@ __metadata:
version: 0.0.0-use.local
resolution: "@polkadot/typegen@workspace:packages/typegen"
dependencies:
"@polkadot/api": "npm:15.3.1"
"@polkadot/api-augment": "npm:15.3.1"
"@polkadot/rpc-augment": "npm:15.3.1"
"@polkadot/rpc-provider": "npm:15.3.1"
"@polkadot/types": "npm:15.3.1"
"@polkadot/types-augment": "npm:15.3.1"
"@polkadot/types-codec": "npm:15.3.1"
"@polkadot/types-create": "npm:15.3.1"
"@polkadot/types-support": "npm:15.3.1"
"@polkadot/api": "npm:15.4.1"
"@polkadot/api-augment": "npm:15.4.1"
"@polkadot/rpc-augment": "npm:15.4.1"
"@polkadot/rpc-provider": "npm:15.4.1"
"@polkadot/types": "npm:15.4.1"
"@polkadot/types-augment": "npm:15.4.1"
"@polkadot/types-codec": "npm:15.4.1"
"@polkadot/types-create": "npm:15.4.1"
"@polkadot/types-support": "npm:15.4.1"
"@polkadot/util": "npm:^13.3.1"
"@polkadot/util-crypto": "npm:^13.3.1"
"@polkadot/x-ws": "npm:^13.3.1"
@@ -735,24 +735,24 @@ __metadata:
languageName: unknown
linkType: soft
"@polkadot/types-augment@npm:15.3.1, @polkadot/types-augment@workspace:packages/types-augment":
"@polkadot/types-augment@npm:15.4.1, @polkadot/types-augment@workspace:packages/types-augment":
version: 0.0.0-use.local
resolution: "@polkadot/types-augment@workspace:packages/types-augment"
dependencies:
"@polkadot/types": "npm:15.3.1"
"@polkadot/types-codec": "npm:15.3.1"
"@polkadot/types": "npm:15.4.1"
"@polkadot/types-codec": "npm:15.4.1"
"@polkadot/util": "npm:^13.3.1"
tslib: "npm:^2.8.1"
languageName: unknown
linkType: soft
"@polkadot/types-codec@npm:15.3.1, @polkadot/types-codec@workspace:packages/types-codec":
"@polkadot/types-codec@npm:15.4.1, @polkadot/types-codec@workspace:packages/types-codec":
version: 0.0.0-use.local
resolution: "@polkadot/types-codec@workspace:packages/types-codec"
dependencies:
"@polkadot/types": "npm:15.3.1"
"@polkadot/types-augment": "npm:15.3.1"
"@polkadot/types-support": "npm:15.3.1"
"@polkadot/types": "npm:15.4.1"
"@polkadot/types-augment": "npm:15.4.1"
"@polkadot/types-support": "npm:15.4.1"
"@polkadot/util": "npm:^13.3.1"
"@polkadot/util-crypto": "npm:^13.3.1"
"@polkadot/x-bigint": "npm:^13.3.1"
@@ -760,32 +760,32 @@ __metadata:
languageName: unknown
linkType: soft
"@polkadot/types-create@npm:15.3.1, @polkadot/types-create@workspace:packages/types-create":
"@polkadot/types-create@npm:15.4.1, @polkadot/types-create@workspace:packages/types-create":
version: 0.0.0-use.local
resolution: "@polkadot/types-create@workspace:packages/types-create"
dependencies:
"@polkadot/types": "npm:15.3.1"
"@polkadot/types-codec": "npm:15.3.1"
"@polkadot/types": "npm:15.4.1"
"@polkadot/types-codec": "npm:15.4.1"
"@polkadot/util": "npm:^13.3.1"
tslib: "npm:^2.8.1"
languageName: unknown
linkType: soft
"@polkadot/types-known@npm:15.3.1, @polkadot/types-known@workspace:packages/types-known":
"@polkadot/types-known@npm:15.4.1, @polkadot/types-known@workspace:packages/types-known":
version: 0.0.0-use.local
resolution: "@polkadot/types-known@workspace:packages/types-known"
dependencies:
"@polkadot/api": "npm:15.3.1"
"@polkadot/api": "npm:15.4.1"
"@polkadot/networks": "npm:^13.3.1"
"@polkadot/types": "npm:15.3.1"
"@polkadot/types-codec": "npm:15.3.1"
"@polkadot/types-create": "npm:15.3.1"
"@polkadot/types": "npm:15.4.1"
"@polkadot/types-codec": "npm:15.4.1"
"@polkadot/types-create": "npm:15.4.1"
"@polkadot/util": "npm:^13.3.1"
tslib: "npm:^2.8.1"
languageName: unknown
linkType: soft
"@polkadot/types-support@npm:15.3.1, @polkadot/types-support@workspace:packages/types-support":
"@polkadot/types-support@npm:15.4.1, @polkadot/types-support@workspace:packages/types-support":
version: 0.0.0-use.local
resolution: "@polkadot/types-support@workspace:packages/types-support"
dependencies:
@@ -794,15 +794,15 @@ __metadata:
languageName: unknown
linkType: soft
"@polkadot/types@npm:15.3.1, @polkadot/types@workspace:packages/types":
"@polkadot/types@npm:15.4.1, @polkadot/types@workspace:packages/types":
version: 0.0.0-use.local
resolution: "@polkadot/types@workspace:packages/types"
dependencies:
"@polkadot/keyring": "npm:^13.3.1"
"@polkadot/types-augment": "npm:15.3.1"
"@polkadot/types-codec": "npm:15.3.1"
"@polkadot/types-create": "npm:15.3.1"
"@polkadot/types-support": "npm:15.3.1"
"@polkadot/types-augment": "npm:15.4.1"
"@polkadot/types-codec": "npm:15.4.1"
"@polkadot/types-create": "npm:15.4.1"
"@polkadot/types-support": "npm:15.4.1"
"@polkadot/util": "npm:^13.3.1"
"@polkadot/util-crypto": "npm:^13.3.1"
rxjs: "npm:^7.8.1"
@@ -7942,7 +7942,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "root-workspace-0b6124@workspace:."
dependencies:
"@polkadot/dev": "npm:^0.82.4"
"@polkadot/dev": "npm:^0.83.2"
"@polkadot/typegen": "workspace:packages/typegen"
"@types/node": "npm:^22.10.5"
languageName: unknown