Skip to content

Commit 5f13a63

Browse files
committed
[CI Skip] release/stable 4.5.1
skip-checks: true
1 parent 40af520 commit 5f13a63

File tree

23 files changed

+163
-87
lines changed

23 files changed

+163
-87
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@
3434
"@types/jest": "^26.0.22",
3535
"copyfiles": "^2.4.1"
3636
},
37-
"version": "4.5.0"
37+
"version": "4.5.1"
3838
}

packages/api-contract/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@polkadot/api-contract",
3-
"version": "4.5.0",
3+
"version": "4.5.1",
44
"type": "module",
55
"description": "Interfaces for interacting with contracts and contract ABIs",
66
"main": "index.js",
@@ -17,8 +17,8 @@
1717
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-contract#readme",
1818
"dependencies": {
1919
"@babel/runtime": "^7.13.10",
20-
"@polkadot/api": "4.5.0",
21-
"@polkadot/types": "4.5.0",
20+
"@polkadot/api": "4.5.1",
21+
"@polkadot/types": "4.5.1",
2222
"@polkadot/util": "^6.1.1",
2323
"@polkadot/x-rxjs": "^6.1.1",
2424
"bn.js": "^4.11.9"

packages/api-contract/src/packageInfo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33

44
// Auto-generated by @polkadot/dev, do not edit
55

6-
export const packageInfo = { name: '@polkadot/api-contract', version: '4.4.2-7' };
6+
export const packageInfo = { name: '@polkadot/api-contract', version: '4.5.1' };

packages/api-derive/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@polkadot/api-derive",
3-
"version": "4.5.0",
3+
"version": "4.5.1",
44
"type": "module",
55
"description": "Common functions used across Polkadot, derived from RPC calls and storage queries.",
66
"main": "index.js",
@@ -17,16 +17,16 @@
1717
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme",
1818
"dependencies": {
1919
"@babel/runtime": "^7.13.10",
20-
"@polkadot/api": "4.5.0",
21-
"@polkadot/rpc-core": "4.5.0",
22-
"@polkadot/types": "4.5.0",
20+
"@polkadot/api": "4.5.1",
21+
"@polkadot/rpc-core": "4.5.1",
22+
"@polkadot/types": "4.5.1",
2323
"@polkadot/util": "^6.1.1",
2424
"@polkadot/util-crypto": "^6.1.1",
2525
"@polkadot/x-rxjs": "^6.1.1",
2626
"bn.js": "^4.11.9"
2727
},
2828
"devDependencies": {
2929
"@polkadot/keyring": "^6.1.1",
30-
"@polkadot/rpc-provider": "4.5.0"
30+
"@polkadot/rpc-provider": "4.5.1"
3131
}
3232
}

packages/api-derive/src/packageInfo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33

44
// Auto-generated by @polkadot/dev, do not edit
55

6-
export const packageInfo = { name: '@polkadot/api-derive', version: '4.4.2-7' };
6+
export const packageInfo = { name: '@polkadot/api-derive', version: '4.5.1' };

packages/api/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@polkadot/api",
3-
"version": "4.5.0",
3+
"version": "4.5.1",
44
"type": "module",
55
"description": "Promise and RxJS wrappers around the Polkadot JS RPC",
66
"main": "index.js",
@@ -17,13 +17,13 @@
1717
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme",
1818
"dependencies": {
1919
"@babel/runtime": "^7.13.10",
20-
"@polkadot/api-derive": "4.5.0",
20+
"@polkadot/api-derive": "4.5.1",
2121
"@polkadot/keyring": "^6.1.1",
22-
"@polkadot/metadata": "4.5.0",
23-
"@polkadot/rpc-core": "4.5.0",
24-
"@polkadot/rpc-provider": "4.5.0",
25-
"@polkadot/types": "4.5.0",
26-
"@polkadot/types-known": "4.5.0",
22+
"@polkadot/metadata": "4.5.1",
23+
"@polkadot/rpc-core": "4.5.1",
24+
"@polkadot/rpc-provider": "4.5.1",
25+
"@polkadot/types": "4.5.1",
26+
"@polkadot/types-known": "4.5.1",
2727
"@polkadot/util": "^6.1.1",
2828
"@polkadot/util-crypto": "^6.1.1",
2929
"@polkadot/x-rxjs": "^6.1.1",

packages/api/src/augment/consts.ts

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
import type { Vec, u16, u32, u64, u8 } from '@polkadot/types';
55
import type { Codec } from '@polkadot/types/types';
6-
import type { Balance, BalanceOf, BlockNumber, LockIdentifier, ModuleId, Moment, Perbill, Percent, Permill, RuntimeDbWeight, Weight } from '@polkadot/types/interfaces/runtime';
6+
import type { Balance, BalanceOf, BlockNumber, LockIdentifier, Moment, PalletId, Perbill, Percent, Permill, RuntimeDbWeight, Weight } from '@polkadot/types/interfaces/runtime';
77
import type { SessionIndex } from '@polkadot/types/interfaces/session';
88
import type { EraIndex } from '@polkadot/types/interfaces/staking';
99
import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
@@ -203,7 +203,7 @@ declare module '@polkadot/api/types/consts' {
203203
candidacyBond: BalanceOf & AugmentedConst<ApiType>;
204204
desiredMembers: u32 & AugmentedConst<ApiType>;
205205
desiredRunnersUp: u32 & AugmentedConst<ApiType>;
206-
moduleId: LockIdentifier & AugmentedConst<ApiType>;
206+
palletId: LockIdentifier & AugmentedConst<ApiType>;
207207
termDuration: BlockNumber & AugmentedConst<ApiType>;
208208
votingBondBase: BalanceOf & AugmentedConst<ApiType>;
209209
votingBondFactor: BalanceOf & AugmentedConst<ApiType>;
@@ -295,7 +295,7 @@ declare module '@polkadot/api/types/consts' {
295295
lottery: {
296296
[key: string]: Codec;
297297
maxCalls: u32 & AugmentedConst<ApiType>;
298-
moduleId: ModuleId & AugmentedConst<ApiType>;
298+
palletId: PalletId & AugmentedConst<ApiType>;
299299
};
300300
multisig: {
301301
[key: string]: Codec;
@@ -381,6 +381,10 @@ declare module '@polkadot/api/types/consts' {
381381
* The number of blocks between membership challenges.
382382
**/
383383
challengePeriod: BlockNumber & AugmentedConst<ApiType>;
384+
/**
385+
* Maximum candidate intake per round.
386+
**/
387+
maxCandidateIntake: u32 & AugmentedConst<ApiType>;
384388
/**
385389
* The number of times a member may vote the wrong way (or not at all, when they are a skeptic)
386390
* before they become suspended.
@@ -389,7 +393,7 @@ declare module '@polkadot/api/types/consts' {
389393
/**
390394
* The societies's module id
391395
**/
392-
moduleId: ModuleId & AugmentedConst<ApiType>;
396+
palletId: PalletId & AugmentedConst<ApiType>;
393397
/**
394398
* The amount of incentive paid within each period. Doesn't include VoterTip.
395399
**/
@@ -410,6 +414,10 @@ declare module '@polkadot/api/types/consts' {
410414
* Number of eras that staked funds must remain bonded for.
411415
**/
412416
bondingDuration: EraIndex & AugmentedConst<ApiType>;
417+
/**
418+
* Maximum number of nominations per nominator.
419+
**/
420+
maxNominations: u32 & AugmentedConst<ApiType>;
413421
/**
414422
* The maximum number of nominators rewarded for each validator.
415423
*
@@ -514,7 +522,7 @@ declare module '@polkadot/api/types/consts' {
514522
/**
515523
* The treasury's module id, used for deriving its sovereign account ID.
516524
**/
517-
moduleId: ModuleId & AugmentedConst<ApiType>;
525+
palletId: PalletId & AugmentedConst<ApiType>;
518526
/**
519527
* Fraction of a proposal's value that should be bonded in order to place the proposal.
520528
* An accepted proposal gets these back. A rejected proposal does not.
@@ -532,7 +540,7 @@ declare module '@polkadot/api/types/consts' {
532540
vesting: {
533541
[key: string]: Codec;
534542
/**
535-
* The minimum amount to be transferred to create a new vesting schedule.
543+
* The minimum amount transferred to call `vested_transfer`.
536544
**/
537545
minVestedTransfer: BalanceOf & AugmentedConst<ApiType>;
538546
};

packages/api/src/augment/errors.ts

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -743,6 +743,64 @@ declare module '@polkadot/api/types/errors' {
743743
**/
744744
InvalidKey: AugmentedError<ApiType>;
745745
};
746+
indices: {
747+
[key: string]: AugmentedError<ApiType>;
748+
/**
749+
* The index was not available.
750+
**/
751+
InUse: AugmentedError<ApiType>;
752+
/**
753+
* The index was not already assigned.
754+
**/
755+
NotAssigned: AugmentedError<ApiType>;
756+
/**
757+
* The index is assigned to another account.
758+
**/
759+
NotOwner: AugmentedError<ApiType>;
760+
/**
761+
* The source and destination accounts are identical.
762+
**/
763+
NotTransfer: AugmentedError<ApiType>;
764+
/**
765+
* The index is permanent and may not be freed/changed.
766+
**/
767+
Permanent: AugmentedError<ApiType>;
768+
};
769+
lottery: {
770+
[key: string]: AugmentedError<ApiType>;
771+
/**
772+
* A lottery has already ended.
773+
**/
774+
AlreadyEnded: AugmentedError<ApiType>;
775+
/**
776+
* You are already participating in the lottery with this call.
777+
**/
778+
AlreadyParticipating: AugmentedError<ApiType>;
779+
/**
780+
* Failed to encode calls
781+
**/
782+
EncodingFailed: AugmentedError<ApiType>;
783+
/**
784+
* A lottery is already in progress.
785+
**/
786+
InProgress: AugmentedError<ApiType>;
787+
/**
788+
* The call is not valid for an open lottery.
789+
**/
790+
InvalidCall: AugmentedError<ApiType>;
791+
/**
792+
* A lottery has not been configured.
793+
**/
794+
NotConfigured: AugmentedError<ApiType>;
795+
/**
796+
* An overflow has occurred.
797+
**/
798+
Overflow: AugmentedError<ApiType>;
799+
/**
800+
* Too many calls for a single lottery.
801+
**/
802+
TooManyCalls: AugmentedError<ApiType>;
803+
};
746804
multisig: {
747805
[key: string]: AugmentedError<ApiType>;
748806
/**
@@ -1185,6 +1243,17 @@ declare module '@polkadot/api/types/errors' {
11851243
**/
11861244
WrongProposalWeight: AugmentedError<ApiType>;
11871245
};
1246+
technicalMembership: {
1247+
[key: string]: AugmentedError<ApiType>;
1248+
/**
1249+
* Already a member.
1250+
**/
1251+
AlreadyMember: AugmentedError<ApiType>;
1252+
/**
1253+
* Not a member.
1254+
**/
1255+
NotMember: AugmentedError<ApiType>;
1256+
};
11881257
tips: {
11891258
[key: string]: AugmentedError<ApiType>;
11901259
/**

packages/api/src/augment/tx.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,7 @@ declare module '@polkadot/api/types/submittable' {
108108
*
109109
* The origin must be Signed and the sender must have sufficient funds free.
110110
*
111-
* Funds of sender are reserved according to the formula:
112-
* `AssetDepositBase + AssetDepositPerZombie * max_zombies`.
111+
* Funds of sender are reserved by `AssetDeposit`.
113112
*
114113
* Parameters:
115114
* - `id`: The identifier of the new asset. This must not be currently in use to identify
@@ -713,7 +712,7 @@ declare module '@polkadot/api/types/submittable' {
713712
* * `gas_limit`: The gas limit enforced when executing the constructor.
714713
* * `code`: The contract code to deploy in raw bytes.
715714
* * `data`: The input data to pass to the contract constructor.
716-
* * `salt`: Used for the address derivation. See [`Self::contract_address`].
715+
* * `salt`: Used for the address derivation. See [`Pallet::contract_address`].
717716
*
718717
* Instantiation is executed as follows:
719718
*
@@ -3875,7 +3874,7 @@ declare module '@polkadot/api/types/submittable' {
38753874
* Unlock any vested funds of the sender account.
38763875
*
38773876
* The dispatch origin for this call must be _Signed_ and the sender must have funds still
3878-
* locked under this module.
3877+
* locked under this pallet.
38793878
*
38803879
* Emits either `VestingCompleted` or `VestingUpdated`.
38813880
*
@@ -3893,7 +3892,7 @@ declare module '@polkadot/api/types/submittable' {
38933892
* The dispatch origin for this call must be _Signed_.
38943893
*
38953894
* - `target`: The account whose vested funds should be unlocked. Must have funds still
3896-
* locked under this module.
3895+
* locked under this pallet.
38973896
*
38983897
* Emits either `VestingCompleted` or `VestingUpdated`.
38993898
*

packages/api/src/packageInfo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33

44
// Auto-generated by @polkadot/dev, do not edit
55

6-
export const packageInfo = { name: '@polkadot/api', version: '4.4.2-7' };
6+
export const packageInfo = { name: '@polkadot/api', version: '4.5.1' };

0 commit comments

Comments
 (0)