diff --git a/lerna.json b/lerna.json index b6c87dcb70..ffad0a3322 100644 --- a/lerna.json +++ b/lerna.json @@ -9,5 +9,5 @@ "packages": [ "packages/*" ], - "version": "1.34.1" + "version": "1.35.0-beta.0" } diff --git a/package.json b/package.json index e20c55cca4..82b561a4cf 100644 --- a/package.json +++ b/package.json @@ -38,5 +38,5 @@ "typedoc-plugin-markdown": "^2.4.2", "typedoc-plugin-no-inherit": "^1.2.0" }, - "version": "1.34.1" + "version": "1.35.0-beta.0" } diff --git a/packages/api-contract/package.json b/packages/api-contract/package.json index 1634430fc3..229c79215c 100644 --- a/packages/api-contract/package.json +++ b/packages/api-contract/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api-contract", - "version": "1.34.1", + "version": "1.35.0-beta.0", "description": "Interfaces for interacting with contracts and contract ABIs", "main": "index.js", "keywords": [ @@ -27,9 +27,9 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-contract#readme", "dependencies": { "@babel/runtime": "^7.11.2", - "@polkadot/api": "1.34.1", - "@polkadot/rpc-core": "1.34.1", - "@polkadot/types": "1.34.1", + "@polkadot/api": "1.35.0-beta.0", + "@polkadot/rpc-core": "1.35.0-beta.0", + "@polkadot/types": "1.35.0-beta.0", "@polkadot/util": "^3.4.1", "bn.js": "^5.1.3", "rxjs": "^6.6.3" diff --git a/packages/api-derive/package.json b/packages/api-derive/package.json index a30ff5ebd4..40c2091c3c 100644 --- a/packages/api-derive/package.json +++ b/packages/api-derive/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api-derive", - "version": "1.34.1", + "version": "1.35.0-beta.0", "description": "Common functions used across Polkadot, derived from RPC calls and storage queries.", "main": "index.js", "keywords": [ @@ -28,10 +28,10 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme", "dependencies": { "@babel/runtime": "^7.11.2", - "@polkadot/api": "1.34.1", - "@polkadot/rpc-core": "1.34.1", - "@polkadot/rpc-provider": "1.34.1", - "@polkadot/types": "1.34.1", + "@polkadot/api": "1.35.0-beta.0", + "@polkadot/rpc-core": "1.35.0-beta.0", + "@polkadot/rpc-provider": "1.35.0-beta.0", + "@polkadot/types": "1.35.0-beta.0", "@polkadot/util": "^3.4.1", "@polkadot/util-crypto": "^3.4.1", "bn.js": "^5.1.3", diff --git a/packages/api/package.json b/packages/api/package.json index 1c70cdc3b1..8058c0d9a6 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api", - "version": "1.34.1", + "version": "1.35.0-beta.0", "description": "Promise and RxJS wrappers around the Polkadot JS RPC", "main": "index.js", "keywords": [ @@ -27,13 +27,13 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme", "dependencies": { "@babel/runtime": "^7.11.2", - "@polkadot/api-derive": "1.34.1", + "@polkadot/api-derive": "1.35.0-beta.0", "@polkadot/keyring": "^3.4.1", - "@polkadot/metadata": "1.34.1", - "@polkadot/rpc-core": "1.34.1", - "@polkadot/rpc-provider": "1.34.1", - "@polkadot/types": "1.34.1", - "@polkadot/types-known": "1.34.1", + "@polkadot/metadata": "1.35.0-beta.0", + "@polkadot/rpc-core": "1.35.0-beta.0", + "@polkadot/rpc-provider": "1.35.0-beta.0", + "@polkadot/types": "1.35.0-beta.0", + "@polkadot/types-known": "1.35.0-beta.0", "@polkadot/util": "^3.4.1", "@polkadot/util-crypto": "^3.4.1", "bn.js": "^5.1.3", diff --git a/packages/metadata/package.json b/packages/metadata/package.json index 8623f962ee..6d562ef567 100644 --- a/packages/metadata/package.json +++ b/packages/metadata/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/metadata", - "version": "1.34.1", + "version": "1.35.0-beta.0", "description": "Helpers to extract information from runtime metadata", "main": "index.js", "publishConfig": { @@ -27,8 +27,8 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/type-metadata#readme", "dependencies": { "@babel/runtime": "^7.11.2", - "@polkadot/types": "1.34.1", - "@polkadot/types-known": "1.34.1", + "@polkadot/types": "1.35.0-beta.0", + "@polkadot/types-known": "1.35.0-beta.0", "@polkadot/util": "^3.4.1", "@polkadot/util-crypto": "^3.4.1", "bn.js": "^5.1.3" diff --git a/packages/rpc-core/package.json b/packages/rpc-core/package.json index 6ea905b732..11d025c72b 100644 --- a/packages/rpc-core/package.json +++ b/packages/rpc-core/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/rpc-core", - "version": "1.34.1", + "version": "1.35.0-beta.0", "description": "A JavaScript wrapper for the Polkadot JsonRPC interface", "main": "index.js", "keywords": [ @@ -27,9 +27,9 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-core#readme", "dependencies": { "@babel/runtime": "^7.11.2", - "@polkadot/metadata": "1.34.1", - "@polkadot/rpc-provider": "1.34.1", - "@polkadot/types": "1.34.1", + "@polkadot/metadata": "1.35.0-beta.0", + "@polkadot/rpc-provider": "1.35.0-beta.0", + "@polkadot/types": "1.35.0-beta.0", "@polkadot/util": "^3.4.1", "memoizee": "^0.4.14", "rxjs": "^6.6.3" diff --git a/packages/rpc-provider/package.json b/packages/rpc-provider/package.json index de7841fc82..4d88ef26db 100644 --- a/packages/rpc-provider/package.json +++ b/packages/rpc-provider/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/rpc-provider", - "version": "1.34.1", + "version": "1.35.0-beta.0", "description": "Transport providers for the API", "main": "index.js", "keywords": [ @@ -27,8 +27,8 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme", "dependencies": { "@babel/runtime": "^7.11.2", - "@polkadot/metadata": "1.34.1", - "@polkadot/types": "1.34.1", + "@polkadot/metadata": "1.35.0-beta.0", + "@polkadot/types": "1.35.0-beta.0", "@polkadot/util": "^3.4.1", "@polkadot/util-crypto": "^3.4.1", "@polkadot/x-fetch": "^0.3.2", diff --git a/packages/typegen/package.json b/packages/typegen/package.json index 89deb2cd60..9dfb6e721b 100644 --- a/packages/typegen/package.json +++ b/packages/typegen/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/typegen", - "version": "1.34.1", + "version": "1.35.0-beta.0", "description": "Type generation scripts", "main": "index.js", "bin": { @@ -36,10 +36,10 @@ "@babel/core": "^7.11.6", "@babel/register": "^7.11.5", "@babel/runtime": "^7.11.2", - "@polkadot/api": "1.34.1", - "@polkadot/metadata": "1.34.1", - "@polkadot/rpc-provider": "1.34.1", - "@polkadot/types": "1.34.1", + "@polkadot/api": "1.35.0-beta.0", + "@polkadot/metadata": "1.35.0-beta.0", + "@polkadot/rpc-provider": "1.35.0-beta.0", + "@polkadot/types": "1.35.0-beta.0", "@polkadot/util": "^3.4.1", "handlebars": "^4.7.6", "websocket": "^1.0.32", diff --git a/packages/types-known/package.json b/packages/types-known/package.json index e49883c4a7..61ed918e50 100644 --- a/packages/types-known/package.json +++ b/packages/types-known/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/types-known", - "version": "1.34.1", + "version": "1.35.0-beta.0", "description": "A JavaScript wrapper for the Polkadot JsonRPC interface", "main": "index.js", "keywords": [ @@ -27,7 +27,7 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/types-known#readme", "dependencies": { "@babel/runtime": "^7.11.2", - "@polkadot/types": "1.34.1", + "@polkadot/types": "1.35.0-beta.0", "@polkadot/util": "^3.4.1", "bn.js": "^5.1.3" }, diff --git a/packages/types/package.json b/packages/types/package.json index 203a99eab1..b90c56d9cb 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/types", - "version": "1.34.1", + "version": "1.35.0-beta.0", "description": "Implementation of the Parity codec", "main": "index.js", "keywords": [ @@ -27,7 +27,7 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/types#readme", "dependencies": { "@babel/runtime": "^7.11.2", - "@polkadot/metadata": "1.34.1", + "@polkadot/metadata": "1.35.0-beta.0", "@polkadot/util": "^3.4.1", "@polkadot/util-crypto": "^3.4.1", "@types/bn.js": "^4.11.6", diff --git a/packages/types/src/augment/registry.ts b/packages/types/src/augment/registry.ts index 4874084e06..b612011ea7 100644 --- a/packages/types/src/augment/registry.ts +++ b/packages/types/src/augment/registry.ts @@ -43,7 +43,7 @@ import { ActiveEraInfo, CompactAssignments, CompactAssignmentsTo257, CompactScor import { ApiId, KeyValueOption, ReadProof, RuntimeVersion, RuntimeVersionApi, StorageChangeSet } from '@polkadot/types/interfaces/state'; import { WeightToFeeCoefficient } from '@polkadot/types/interfaces/support'; import { AccountInfo, ApplyExtrinsicResult, ChainProperties, ChainType, DigestOf, DispatchClass, DispatchError, DispatchErrorModule, DispatchErrorTo198, DispatchInfo, DispatchInfoTo190, DispatchInfoTo244, DispatchOutcome, DispatchResult, DispatchResultOf, DispatchResultTo198, Event, EventId, EventIndex, EventRecord, EventRecordTo76, Health, InvalidTransaction, Key, LastRuntimeUpgradeInfo, NetworkState, NetworkStatePeerset, NetworkStatePeersetInfo, NodeRole, NotConnectedPeer, Peer, PeerEndpoint, PeerEndpointAddr, PeerInfo, PeerPing, Phase, RefCount, TransactionValidityError, UnknownTransaction } from '@polkadot/types/interfaces/system'; -import { OpenTip, OpenTipFinderTo225, OpenTipTip, OpenTipTo225, TreasuryProposal } from '@polkadot/types/interfaces/treasury'; +import { Bounty, BountyIndex, BountyStatus, BountyStatusActive, BountyStatusCuratorProposed, BountyStatusPendingPayout, OpenTip, OpenTipFinderTo225, OpenTipTip, OpenTipTo225, TreasuryProposal } from '@polkadot/types/interfaces/treasury'; import { Multiplier } from '@polkadot/types/interfaces/txpayment'; import { Multisig, Timepoint } from '@polkadot/types/interfaces/utility'; import { VestingInfo } from '@polkadot/types/interfaces/vesting'; @@ -1180,6 +1180,25 @@ declare module '@polkadot/types/types/registry' { UnknownTransaction: UnknownTransaction; 'Option': Option; 'Vec': Vec; + Bounty: Bounty; + 'Option': Option; + 'Vec': Vec; + BountyIndex: BountyIndex; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + BountyStatus: BountyStatus; + 'Option': Option; + 'Vec': Vec; + BountyStatusActive: BountyStatusActive; + 'Option': Option; + 'Vec': Vec; + BountyStatusCuratorProposed: BountyStatusCuratorProposed; + 'Option': Option; + 'Vec': Vec; + BountyStatusPendingPayout: BountyStatusPendingPayout; + 'Option': Option; + 'Vec': Vec; OpenTip: OpenTip; 'Option': Option; 'Vec': Vec; diff --git a/packages/types/src/interfaces/treasury/types.ts b/packages/types/src/interfaces/treasury/types.ts index cfd875827c..fba8d5478f 100644 --- a/packages/types/src/interfaces/treasury/types.ts +++ b/packages/types/src/interfaces/treasury/types.ts @@ -2,10 +2,54 @@ /* eslint-disable */ import { ITuple } from '@polkadot/types/types'; -import { Option, Struct, Vec } from '@polkadot/types/codec'; -import { bool } from '@polkadot/types/primitive'; +import { Enum, Option, Struct, Vec } from '@polkadot/types/codec'; +import { bool, u32 } from '@polkadot/types/primitive'; import { AccountId, Balance, BlockNumber, Hash } from '@polkadot/types/interfaces/runtime'; +/** @name Bounty */ +export interface Bounty extends Struct { + readonly proposer: AccountId; + readonly value: Balance; + readonly fee: Balance; + readonly curatorDeposit: Balance; + readonly bond: Balance; + readonly status: BountyStatus; +} + +/** @name BountyIndex */ +export interface BountyIndex extends u32 {} + +/** @name BountyStatus */ +export interface BountyStatus extends Enum { + readonly isProposed: boolean; + readonly isApproved: boolean; + readonly isFunded: boolean; + readonly isCuratorProposed: boolean; + readonly asCuratorProposed: BountyStatusCuratorProposed; + readonly isActive: boolean; + readonly asActive: BountyStatusActive; + readonly isPendingPayout: boolean; + readonly asPendingPayout: BountyStatusPendingPayout; +} + +/** @name BountyStatusActive */ +export interface BountyStatusActive extends Struct { + readonly curator: AccountId; + readonly updateDue: BlockNumber; +} + +/** @name BountyStatusCuratorProposed */ +export interface BountyStatusCuratorProposed extends Struct { + readonly curator: AccountId; +} + +/** @name BountyStatusPendingPayout */ +export interface BountyStatusPendingPayout extends Struct { + readonly curator: AccountId; + readonly beneficiary: AccountId; + readonly unlockAt: BlockNumber; +} + /** @name OpenTip */ export interface OpenTip extends Struct { readonly reason: Hash; diff --git a/yarn.lock b/yarn.lock index d355339556..5bc5badd08 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2756,25 +2756,25 @@ __metadata: resolution: "@polkadot/api-contract@workspace:packages/api-contract" dependencies: "@babel/runtime": ^7.11.2 - "@polkadot/api": 1.34.1 - "@polkadot/rpc-core": 1.34.1 - "@polkadot/types": 1.34.1 + "@polkadot/api": 1.35.0-beta.0 + "@polkadot/rpc-core": 1.35.0-beta.0 + "@polkadot/types": 1.35.0-beta.0 "@polkadot/util": ^3.4.1 bn.js: ^5.1.3 rxjs: ^6.6.3 languageName: unknown linkType: soft -"@polkadot/api-derive@1.34.1, @polkadot/api-derive@workspace:packages/api-derive": +"@polkadot/api-derive@1.35.0-beta.0, @polkadot/api-derive@workspace:packages/api-derive": version: 0.0.0-use.local resolution: "@polkadot/api-derive@workspace:packages/api-derive" dependencies: "@babel/runtime": ^7.11.2 - "@polkadot/api": 1.34.1 + "@polkadot/api": 1.35.0-beta.0 "@polkadot/keyring": ^3.4.1 - "@polkadot/rpc-core": 1.34.1 - "@polkadot/rpc-provider": 1.34.1 - "@polkadot/types": 1.34.1 + "@polkadot/rpc-core": 1.35.0-beta.0 + "@polkadot/rpc-provider": 1.35.0-beta.0 + "@polkadot/types": 1.35.0-beta.0 "@polkadot/util": ^3.4.1 "@polkadot/util-crypto": ^3.4.1 bn.js: ^5.1.3 @@ -2783,18 +2783,18 @@ __metadata: languageName: unknown linkType: soft -"@polkadot/api@1.34.1, @polkadot/api@workspace:packages/api": +"@polkadot/api@1.35.0-beta.0, @polkadot/api@workspace:packages/api": version: 0.0.0-use.local resolution: "@polkadot/api@workspace:packages/api" dependencies: "@babel/runtime": ^7.11.2 - "@polkadot/api-derive": 1.34.1 + "@polkadot/api-derive": 1.35.0-beta.0 "@polkadot/keyring": ^3.4.1 - "@polkadot/metadata": 1.34.1 - "@polkadot/rpc-core": 1.34.1 - "@polkadot/rpc-provider": 1.34.1 - "@polkadot/types": 1.34.1 - "@polkadot/types-known": 1.34.1 + "@polkadot/metadata": 1.35.0-beta.0 + "@polkadot/rpc-core": 1.35.0-beta.0 + "@polkadot/rpc-provider": 1.35.0-beta.0 + "@polkadot/types": 1.35.0-beta.0 + "@polkadot/types-known": 1.35.0-beta.0 "@polkadot/util": ^3.4.1 "@polkadot/util-crypto": ^3.4.1 bn.js: ^5.1.3 @@ -2910,43 +2910,43 @@ __metadata: languageName: node linkType: hard -"@polkadot/metadata@1.34.1, @polkadot/metadata@workspace:packages/metadata": +"@polkadot/metadata@1.35.0-beta.0, @polkadot/metadata@workspace:packages/metadata": version: 0.0.0-use.local resolution: "@polkadot/metadata@workspace:packages/metadata" dependencies: "@babel/runtime": ^7.11.2 "@polkadot/keyring": ^3.4.1 - "@polkadot/types": 1.34.1 - "@polkadot/types-known": 1.34.1 + "@polkadot/types": 1.35.0-beta.0 + "@polkadot/types-known": 1.35.0-beta.0 "@polkadot/util": ^3.4.1 "@polkadot/util-crypto": ^3.4.1 bn.js: ^5.1.3 languageName: unknown linkType: soft -"@polkadot/rpc-core@1.34.1, @polkadot/rpc-core@workspace:packages/rpc-core": +"@polkadot/rpc-core@1.35.0-beta.0, @polkadot/rpc-core@workspace:packages/rpc-core": version: 0.0.0-use.local resolution: "@polkadot/rpc-core@workspace:packages/rpc-core" dependencies: "@babel/runtime": ^7.11.2 "@polkadot/keyring": ^3.4.1 - "@polkadot/metadata": 1.34.1 - "@polkadot/rpc-provider": 1.34.1 - "@polkadot/types": 1.34.1 + "@polkadot/metadata": 1.35.0-beta.0 + "@polkadot/rpc-provider": 1.35.0-beta.0 + "@polkadot/types": 1.35.0-beta.0 "@polkadot/util": ^3.4.1 memoizee: ^0.4.14 rxjs: ^6.6.3 languageName: unknown linkType: soft -"@polkadot/rpc-provider@1.34.1, @polkadot/rpc-provider@workspace:packages/rpc-provider": +"@polkadot/rpc-provider@1.35.0-beta.0, @polkadot/rpc-provider@workspace:packages/rpc-provider": version: 0.0.0-use.local resolution: "@polkadot/rpc-provider@workspace:packages/rpc-provider" dependencies: "@babel/runtime": ^7.11.2 "@polkadot/keyring": ^3.4.1 - "@polkadot/metadata": 1.34.1 - "@polkadot/types": 1.34.1 + "@polkadot/metadata": 1.35.0-beta.0 + "@polkadot/types": 1.35.0-beta.0 "@polkadot/util": ^3.4.1 "@polkadot/util-crypto": ^3.4.1 "@polkadot/x-fetch": ^0.3.2 @@ -2974,10 +2974,10 @@ __metadata: "@babel/core": ^7.11.6 "@babel/register": ^7.11.5 "@babel/runtime": ^7.11.2 - "@polkadot/api": 1.34.1 - "@polkadot/metadata": 1.34.1 - "@polkadot/rpc-provider": 1.34.1 - "@polkadot/types": 1.34.1 + "@polkadot/api": 1.35.0-beta.0 + "@polkadot/metadata": 1.35.0-beta.0 + "@polkadot/rpc-provider": 1.35.0-beta.0 + "@polkadot/types": 1.35.0-beta.0 "@polkadot/util": ^3.4.1 "@types/websocket": ^1.0.1 "@types/yargs": ^15.0.5 @@ -2993,25 +2993,25 @@ __metadata: languageName: unknown linkType: soft -"@polkadot/types-known@1.34.1, @polkadot/types-known@workspace:packages/types-known": +"@polkadot/types-known@1.35.0-beta.0, @polkadot/types-known@workspace:packages/types-known": version: 0.0.0-use.local resolution: "@polkadot/types-known@workspace:packages/types-known" dependencies: "@babel/runtime": ^7.11.2 - "@polkadot/types": 1.34.1 + "@polkadot/types": 1.35.0-beta.0 "@polkadot/util": ^3.4.1 "@types/bn.js": ^4.11.6 bn.js: ^5.1.3 languageName: unknown linkType: soft -"@polkadot/types@1.34.1, @polkadot/types@workspace:packages/types": +"@polkadot/types@1.35.0-beta.0, @polkadot/types@workspace:packages/types": version: 0.0.0-use.local resolution: "@polkadot/types@workspace:packages/types" dependencies: "@babel/runtime": ^7.11.2 "@polkadot/keyring": ^3.4.1 - "@polkadot/metadata": 1.34.1 + "@polkadot/metadata": 1.35.0-beta.0 "@polkadot/util": ^3.4.1 "@polkadot/util-crypto": ^3.4.1 "@types/bn.js": ^4.11.6