Skip to content

Commit 98c8240

Browse files
committed
[CI Skip] release/stable 2.0.1
skip-checks: true
1 parent ff59962 commit 98c8240

File tree

15 files changed

+315
-255
lines changed

15 files changed

+315
-255
lines changed

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
"packages": [
1010
"packages/*"
1111
],
12-
"version": "2.0.0"
12+
"version": "2.0.1"
1313
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@
3838
"typedoc-plugin-markdown": "^3.0.2",
3939
"typedoc-plugin-no-inherit": "^1.2.0"
4040
},
41-
"version": "2.0.0"
41+
"version": "2.0.1"
4242
}

packages/api-contract/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@polkadot/api-contract",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"description": "Interfaces for interacting with contracts and contract ABIs",
55
"main": "index.js",
66
"keywords": [
@@ -27,9 +27,9 @@
2727
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-contract#readme",
2828
"dependencies": {
2929
"@babel/runtime": "^7.11.2",
30-
"@polkadot/api": "2.0.0",
31-
"@polkadot/rpc-core": "2.0.0",
32-
"@polkadot/types": "2.0.0",
30+
"@polkadot/api": "2.0.1",
31+
"@polkadot/rpc-core": "2.0.1",
32+
"@polkadot/types": "2.0.1",
3333
"@polkadot/util": "^3.5.1",
3434
"bn.js": "^5.1.3",
3535
"rxjs": "^6.6.3"

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": "2.0.0",
3+
"version": "2.0.1",
44
"description": "Common functions used across Polkadot, derived from RPC calls and storage queries.",
55
"main": "index.js",
66
"keywords": [
@@ -28,10 +28,10 @@
2828
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme",
2929
"dependencies": {
3030
"@babel/runtime": "^7.11.2",
31-
"@polkadot/api": "2.0.0",
32-
"@polkadot/rpc-core": "2.0.0",
33-
"@polkadot/rpc-provider": "2.0.0",
34-
"@polkadot/types": "2.0.0",
31+
"@polkadot/api": "2.0.1",
32+
"@polkadot/rpc-core": "2.0.1",
33+
"@polkadot/rpc-provider": "2.0.1",
34+
"@polkadot/types": "2.0.1",
3535
"@polkadot/util": "^3.5.1",
3636
"@polkadot/util-crypto": "^3.5.1",
3737
"bn.js": "^5.1.3",

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": "2.0.0",
3+
"version": "2.0.1",
44
"description": "Promise and RxJS wrappers around the Polkadot JS RPC",
55
"main": "index.js",
66
"keywords": [
@@ -27,13 +27,13 @@
2727
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme",
2828
"dependencies": {
2929
"@babel/runtime": "^7.11.2",
30-
"@polkadot/api-derive": "2.0.0",
30+
"@polkadot/api-derive": "2.0.1",
3131
"@polkadot/keyring": "^3.5.1",
32-
"@polkadot/metadata": "2.0.0",
33-
"@polkadot/rpc-core": "2.0.0",
34-
"@polkadot/rpc-provider": "2.0.0",
35-
"@polkadot/types": "2.0.0",
36-
"@polkadot/types-known": "2.0.0",
32+
"@polkadot/metadata": "2.0.1",
33+
"@polkadot/rpc-core": "2.0.1",
34+
"@polkadot/rpc-provider": "2.0.1",
35+
"@polkadot/types": "2.0.1",
36+
"@polkadot/types-known": "2.0.1",
3737
"@polkadot/util": "^3.5.1",
3838
"@polkadot/util-crypto": "^3.5.1",
3939
"bn.js": "^5.1.3",

packages/api/src/augment/consts.ts

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -374,10 +374,31 @@ declare module '@polkadot/api/types/consts' {
374374
};
375375
treasury: {
376376
[key: string]: Codec;
377+
/**
378+
* Percentage of the curator fee that will be reserved upfront as deposit for bounty curator.
379+
**/
380+
bountyCuratorDeposit: Permill & AugmentedConst<ApiType>;
381+
/**
382+
* The amount held on deposit for placing a bounty proposal.
383+
**/
384+
bountyDepositBase: BalanceOf & AugmentedConst<ApiType>;
385+
/**
386+
* The delay period for which a bounty beneficiary need to wait before claim the payout.
387+
**/
388+
bountyDepositPayoutDelay: BlockNumber & AugmentedConst<ApiType>;
389+
bountyValueMinimum: BalanceOf & AugmentedConst<ApiType>;
377390
/**
378391
* Percentage of spare funds (if any) that are burnt per spend period.
379392
**/
380393
burn: Permill & AugmentedConst<ApiType>;
394+
/**
395+
* The amount held on deposit per byte within the tip report reason or bounty description.
396+
**/
397+
dataDepositPerByte: BalanceOf & AugmentedConst<ApiType>;
398+
/**
399+
* Maximum acceptable reason length.
400+
**/
401+
maximumReasonLength: u32 & AugmentedConst<ApiType>;
381402
/**
382403
* The treasury's module id, used for deriving its sovereign account ID.
383404
**/
@@ -407,10 +428,6 @@ declare module '@polkadot/api/types/consts' {
407428
* The amount held on deposit for placing a tip report.
408429
**/
409430
tipReportDepositBase: BalanceOf & AugmentedConst<ApiType>;
410-
/**
411-
* The amount held on deposit per byte within the tip report reason.
412-
**/
413-
tipReportDepositPerByte: BalanceOf & AugmentedConst<ApiType>;
414431
};
415432
vesting: {
416433
[key: string]: Codec;

packages/api/src/augment/query.ts

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import { Keys, SessionIndex } from '@polkadot/types/interfaces/session';
2424
import { Bid, BidKind, SocietyVote, StrikeCount, VouchingStatus } from '@polkadot/types/interfaces/society';
2525
import { ActiveEraInfo, ElectionResult, ElectionScore, ElectionStatus, EraIndex, EraRewardPoints, Exposure, Forcing, Nominations, RewardDestination, SlashingSpans, SpanIndex, SpanRecord, StakingLedger, UnappliedSlash, ValidatorPrefs } from '@polkadot/types/interfaces/staking';
2626
import { AccountInfo, DigestOf, EventIndex, EventRecord, LastRuntimeUpgradeInfo, Phase } from '@polkadot/types/interfaces/system';
27-
import { OpenTip, TreasuryProposal } from '@polkadot/types/interfaces/treasury';
27+
import { Bounty, BountyIndex, OpenTip, TreasuryProposal } from '@polkadot/types/interfaces/treasury';
2828
import { Multiplier } from '@polkadot/types/interfaces/txpayment';
2929
import { Multisig } from '@polkadot/types/interfaces/utility';
3030
import { VestingInfo } from '@polkadot/types/interfaces/vesting';
@@ -173,8 +173,7 @@ declare module '@polkadot/api/types/storage' {
173173
**/
174174
members: AugmentedQuery<ApiType, () => Observable<Vec<AccountId>>> & QueryableStorageEntry<ApiType>;
175175
/**
176-
* The member who provides the default vote for any other members that do not vote before
177-
* the timeout. If None, then no member has that privilege.
176+
* The prime member that helps determine the default vote behavior in case of absentations.
178177
**/
179178
prime: AugmentedQuery<ApiType, () => Observable<Option<AccountId>>> & QueryableStorageEntry<ApiType>;
180179
/**
@@ -288,7 +287,7 @@ declare module '@polkadot/api/types/storage' {
288287
**/
289288
members: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[AccountId, BalanceOf]>>>> & QueryableStorageEntry<ApiType>;
290289
/**
291-
* The current runners_up. Sorted based on low to high merit (worse to best runner).
290+
* The current runners_up. Sorted based on low to high merit (worse to best).
292291
**/
293292
runnersUp: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[AccountId, BalanceOf]>>>> & QueryableStorageEntry<ApiType>;
294293
/**
@@ -860,6 +859,10 @@ declare module '@polkadot/api/types/storage' {
860859
* Hash of the previous block.
861860
**/
862861
parentHash: AugmentedQuery<ApiType, () => Observable<Hash>> & QueryableStorageEntry<ApiType>;
862+
/**
863+
* True if we have upgraded so that `type RefCount` is `u32`. False (default) if not.
864+
**/
865+
upgradedToU32RefCount: AugmentedQuery<ApiType, () => Observable<bool>> & QueryableStorageEntry<ApiType>;
863866
};
864867
technicalCommittee: {
865868
[key: string]: QueryableStorageEntry<ApiType>;
@@ -868,8 +871,7 @@ declare module '@polkadot/api/types/storage' {
868871
**/
869872
members: AugmentedQuery<ApiType, () => Observable<Vec<AccountId>>> & QueryableStorageEntry<ApiType>;
870873
/**
871-
* The member who provides the default vote for any other members that do not vote before
872-
* the timeout. If None, then no member has that privilege.
874+
* The prime member that helps determine the default vote behavior in case of absentations.
873875
**/
874876
prime: AugmentedQuery<ApiType, () => Observable<Option<AccountId>>> & QueryableStorageEntry<ApiType>;
875877
/**
@@ -922,6 +924,22 @@ declare module '@polkadot/api/types/storage' {
922924
* Proposal indices that have been approved but not yet awarded.
923925
**/
924926
approvals: AugmentedQuery<ApiType, () => Observable<Vec<ProposalIndex>>> & QueryableStorageEntry<ApiType>;
927+
/**
928+
* Bounties that have been made.
929+
**/
930+
bounties: AugmentedQuery<ApiType, (arg: BountyIndex | AnyNumber | Uint8Array) => Observable<Option<Bounty>>> & QueryableStorageEntry<ApiType>;
931+
/**
932+
* Bounty indices that have been approved but not yet funded.
933+
**/
934+
bountyApprovals: AugmentedQuery<ApiType, () => Observable<Vec<BountyIndex>>> & QueryableStorageEntry<ApiType>;
935+
/**
936+
* Number of bounty proposals that have been made.
937+
**/
938+
bountyCount: AugmentedQuery<ApiType, () => Observable<BountyIndex>> & QueryableStorageEntry<ApiType>;
939+
/**
940+
* The description of each bounty.
941+
**/
942+
bountyDescriptions: AugmentedQuery<ApiType, (arg: BountyIndex | AnyNumber | Uint8Array) => Observable<Option<Bytes>>> & QueryableStorageEntry<ApiType>;
925943
/**
926944
* Number of proposals that have been made.
927945
**/

0 commit comments

Comments
 (0)