diff --git a/package.json b/package.json index 9b07304ba5..799eeea656 100644 --- a/package.json +++ b/package.json @@ -35,6 +35,6 @@ "@types/jest": "^27.0.1", "copyfiles": "^2.4.1" }, - "version": "5.9.2-3", + "version": "5.9.2-4", "packageManager": "yarn@3.0.1" } diff --git a/packages/api-contract/package.json b/packages/api-contract/package.json index 438653d3d5..9a93e80e93 100644 --- a/packages/api-contract/package.json +++ b/packages/api-contract/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api-contract", - "version": "5.9.2-3", + "version": "5.9.2-4", "type": "module", "description": "Interfaces for interacting with contracts and contract ABIs", "main": "index.js", @@ -20,8 +20,8 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-contract#readme", "dependencies": { "@babel/runtime": "^7.15.4", - "@polkadot/api": "5.9.2-3", - "@polkadot/types": "5.9.2-3", + "@polkadot/api": "5.9.2-4", + "@polkadot/types": "5.9.2-4", "@polkadot/util": "^7.3.1", "rxjs": "^7.3.0" } diff --git a/packages/api-contract/src/packageInfo.ts b/packages/api-contract/src/packageInfo.ts index 405f573eab..b053dda95a 100644 --- a/packages/api-contract/src/packageInfo.ts +++ b/packages/api-contract/src/packageInfo.ts @@ -3,4 +3,4 @@ // Auto-generated by @polkadot/dev, do not edit -export const packageInfo = { name: '@polkadot/api-contract', version: '5.9.2-3' }; +export const packageInfo = { name: '@polkadot/api-contract', version: '5.9.2-4' }; diff --git a/packages/api-derive/package.json b/packages/api-derive/package.json index dcfeff8751..1f86bfbaaa 100644 --- a/packages/api-derive/package.json +++ b/packages/api-derive/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api-derive", - "version": "5.9.2-3", + "version": "5.9.2-4", "type": "module", "description": "Common functions used across Polkadot, derived from RPC calls and storage queries.", "main": "index.js", @@ -20,15 +20,15 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme", "dependencies": { "@babel/runtime": "^7.15.4", - "@polkadot/api": "5.9.2-3", - "@polkadot/rpc-core": "5.9.2-3", - "@polkadot/types": "5.9.2-3", + "@polkadot/api": "5.9.2-4", + "@polkadot/rpc-core": "5.9.2-4", + "@polkadot/types": "5.9.2-4", "@polkadot/util": "^7.3.1", "@polkadot/util-crypto": "^7.3.1", "rxjs": "^7.3.0" }, "devDependencies": { "@polkadot/keyring": "^7.3.1", - "@polkadot/rpc-provider": "5.9.2-3" + "@polkadot/rpc-provider": "5.9.2-4" } } diff --git a/packages/api-derive/src/packageInfo.ts b/packages/api-derive/src/packageInfo.ts index 0eb1f45a58..4e5be834e7 100644 --- a/packages/api-derive/src/packageInfo.ts +++ b/packages/api-derive/src/packageInfo.ts @@ -3,4 +3,4 @@ // Auto-generated by @polkadot/dev, do not edit -export const packageInfo = { name: '@polkadot/api-derive', version: '5.9.2-3' }; +export const packageInfo = { name: '@polkadot/api-derive', version: '5.9.2-4' }; diff --git a/packages/api/package.json b/packages/api/package.json index 99ca08ba78..63375cbd66 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api", - "version": "5.9.2-3", + "version": "5.9.2-4", "type": "module", "description": "Promise and RxJS wrappers around the Polkadot JS RPC", "main": "index.js", @@ -20,12 +20,12 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme", "dependencies": { "@babel/runtime": "^7.15.4", - "@polkadot/api-derive": "5.9.2-3", + "@polkadot/api-derive": "5.9.2-4", "@polkadot/keyring": "^7.3.1", - "@polkadot/rpc-core": "5.9.2-3", - "@polkadot/rpc-provider": "5.9.2-3", - "@polkadot/types": "5.9.2-3", - "@polkadot/types-known": "5.9.2-3", + "@polkadot/rpc-core": "5.9.2-4", + "@polkadot/rpc-provider": "5.9.2-4", + "@polkadot/types": "5.9.2-4", + "@polkadot/types-known": "5.9.2-4", "@polkadot/util": "^7.3.1", "@polkadot/util-crypto": "^7.3.1", "eventemitter3": "^4.0.7", diff --git a/packages/api/src/augment/consts.ts b/packages/api/src/augment/consts.ts index c2afbee32d..0d0fc771d4 100644 --- a/packages/api/src/augment/consts.ts +++ b/packages/api/src/augment/consts.ts @@ -128,6 +128,13 @@ declare module '@polkadot/api/types/consts' { [key: string]: Codec; }; contracts: { + /** + * The deposit that must be placed into the contract's account to instantiate it. + * This is in **addition** to the [`pallet_balances::Pallet::ExistenialDeposit`]. + * The minimum balance for a contract's account can be queried using + * [`Pallet::subsistence_threshold`]. + **/ + contractDeposit: BalanceOf & AugmentedConst; /** * The maximum number of tries that can be queued for deletion. **/ @@ -136,61 +143,10 @@ declare module '@polkadot/api/types/consts' { * The maximum amount of weight that can be consumed per block for lazy trie removal. **/ deletionWeightLimit: Weight & AugmentedConst; - /** - * The balance every contract needs to deposit to stay alive indefinitely. - * - * This is different from the [`Self::TombstoneDeposit`] because this only needs to be - * deposited while the contract is alive. Costs for additional storage are added to - * this base cost. - * - * This is a simple way to ensure that contracts with empty storage eventually get deleted - * by making them pay rent. This creates an incentive to remove them early in order to save - * rent. - **/ - depositPerContract: BalanceOf & AugmentedConst; - /** - * The balance a contract needs to deposit per storage byte to stay alive indefinitely. - * - * Let's suppose the deposit is 1,000 BU (balance units)/byte and the rent is 1 - * BU/byte/day, then a contract with 1,000,000 BU that uses 1,000 bytes of storage would - * pay no rent. But if the balance reduced to 500,000 BU and the storage stayed the same at - * 1,000, then it would pay 500 BU/day. - **/ - depositPerStorageByte: BalanceOf & AugmentedConst; - /** - * The balance a contract needs to deposit per storage item to stay alive indefinitely. - * - * It works the same as [`Self::DepositPerStorageByte`] but for storage items. - **/ - depositPerStorageItem: BalanceOf & AugmentedConst; - /** - * The fraction of the deposit that should be used as rent per block. - * - * When a contract hasn't enough balance deposited to stay alive indefinitely it needs - * to pay per block for the storage it consumes that is not covered by the deposit. - * This determines how high this rent payment is per block as a fraction of the deposit. - **/ - rentFraction: Perbill & AugmentedConst; /** * Cost schedule and limits. **/ schedule: Schedule & AugmentedConst; - /** - * Number of block delay an extrinsic claim surcharge has. - * - * When claim surcharge is called by an extrinsic the rent is checked - * for current_block - delay - **/ - signedClaimHandicap: BlockNumber & AugmentedConst; - /** - * Reward that is received by the party whose touch has led - * to removal of a contract. - **/ - surchargeReward: BalanceOf & AugmentedConst; - /** - * The minimum amount required to generate a tombstone. - **/ - tombstoneDeposit: BalanceOf & AugmentedConst; /** * Generic const **/ @@ -259,11 +215,6 @@ declare module '@polkadot/api/types/consts' { [key: string]: Codec; }; electionProviderMultiPhase: { - /** - * Maximum number of iteration of balancing that will be executed in the embedded miner of - * the pallet. - **/ - minerMaxIterations: u32 & AugmentedConst; /** * Maximum length (bytes) that the mined solution should consume. * @@ -746,7 +697,7 @@ declare module '@polkadot/api/types/consts' { }; tips: { /** - * The amount held on deposit per byte within the tip report reason. + * The amount held on deposit per byte within the tip report reason or bounty description. **/ dataDepositPerByte: BalanceOf & AugmentedConst; /** @@ -758,7 +709,7 @@ declare module '@polkadot/api/types/consts' { **/ tipCountdown: BlockNumber & AugmentedConst; /** - * The amount of the final tip which goes to the original reporter of the tip. + * The percent of the final tip which goes to the original reporter of the tip. **/ tipFindersFee: Percent & AugmentedConst; /** diff --git a/packages/api/src/augment/errors.ts b/packages/api/src/augment/errors.ts index a3753a548c..7ed5c02234 100644 --- a/packages/api/src/augment/errors.ts +++ b/packages/api/src/augment/errors.ts @@ -196,9 +196,8 @@ declare module '@polkadot/api/types/errors' { contracts: { /** * Performing the requested transfer would have brought the contract below - * the subsistence threshold. No transfer is allowed to do this in order to allow - * for a tombstone to be created. Use `seal_terminate` to remove a contract without - * leaving a tombstone behind. + * the subsistence threshold. No transfer is allowed to do this. Use `seal_terminate` + * to recover a deposit. **/ BelowSubsistenceThreshold: AugmentedError; /** @@ -210,20 +209,6 @@ declare module '@polkadot/api/types/errors' { * current schedule. **/ CodeTooLarge: AugmentedError; - /** - * A tombstone exist at the specified address. - * - * Tombstone cannot be called. Anyone can use `seal_restore_to` in order to revive - * the contract, though. - **/ - ContractIsTombstone: AugmentedError; - /** - * A contract could not be evicted because it has enough balance to pay rent. - * - * This can be returned from [`Pallet::claim_surcharge`] because the target - * contract has enough balance to pay for its rent. - **/ - ContractNotEvictable: AugmentedError; /** * No contract was found at the specified address. **/ @@ -243,7 +228,7 @@ declare module '@polkadot/api/types/errors' { /** * Removal of a contract failed because the deletion queue is full. * - * This can happen when either calling [`Pallet::claim_surcharge`] or `seal_terminate`. + * This can happen when calling `seal_terminate`. * The queue is filled by deleting contracts and emptied by a fixed amount each block. * Trying again during another block is the only way to resolve this issue. **/ @@ -260,30 +245,10 @@ declare module '@polkadot/api/types/errors' { * `seal_call` forwarded this contracts input. It therefore is no longer available. **/ InputForwarded: AugmentedError; - /** - * An origin TrieId written in the current block. - **/ - InvalidContractOrigin: AugmentedError; - /** - * Cannot restore to nonexisting or alive contract. - **/ - InvalidDestinationContract: AugmentedError; /** * A new schedule must have a greater version than the current one. **/ InvalidScheduleVersion: AugmentedError; - /** - * Cannot restore from nonexisting or tombstone contract. - **/ - InvalidSourceContract: AugmentedError; - /** - * An origin must be signed or inherent and auxiliary sender only provided on inherent. - **/ - InvalidSurchargeClaim: AugmentedError; - /** - * Tombstones don't match. - **/ - InvalidTombstone: AugmentedError; /** * Performing a call was denied because the calling depth reached the limit * of what is specified in the schedule. @@ -320,15 +285,6 @@ declare module '@polkadot/api/types/errors' { * A call tried to invoke a contract that is flagged as non-reentrant. **/ ReentranceDenied: AugmentedError; - /** - * The called contract does not have enough balance to pay for its storage. - * - * The contract ran out of balance and is therefore eligible for eviction into a - * tombstone. Anyone can evict the contract by submitting a `claim_surcharge` - * extrinsic. Alternatively, a plain balance transfer can be used in order to - * increase the contracts funds so that it can be called again. - **/ - RentNotPaid: AugmentedError; /** * A storage modification exhausted the 32bit type that holds the storage size. * @@ -339,12 +295,12 @@ declare module '@polkadot/api/types/errors' { /** * A contract self destructed in its constructor. * - * This can be triggered by a call to `seal_terminate` or `seal_restore_to`. + * This can be triggered by a call to `seal_terminate`. **/ TerminatedInConstructor: AugmentedError; /** * Termination of a contract is not allowed while the contract is already - * on the call stack. Can be triggered by `seal_terminate` or `seal_restore_to. + * on the call stack. Can be triggered by `seal_terminate`. **/ TerminatedWhileReentrant: AugmentedError; /** diff --git a/packages/api/src/augment/events.ts b/packages/api/src/augment/events.ts index dff3284017..8982411516 100644 --- a/packages/api/src/augment/events.ts +++ b/packages/api/src/augment/events.ts @@ -190,7 +190,7 @@ declare module '@polkadot/api/types/events' { * A code with the specified hash was removed. * \[code_hash\] * - * This happens when the last contract that uses this code hash was removed or evicted. + * This happens when the last contract that uses this code hash was removed. **/ CodeRemoved: AugmentedEvent; /** @@ -208,26 +208,10 @@ declare module '@polkadot/api/types/events' { * is needed to decode it. **/ ContractEmitted: AugmentedEvent; - /** - * Contract has been evicted and is now in tombstone state. \[contract\] - **/ - Evicted: AugmentedEvent; /** * Contract deployed by address at the specified address. \[deployer, contract\] **/ Instantiated: AugmentedEvent; - /** - * Restoration of a contract has been successful. - * \[restorer, dest, code_hash, rent_allowance\] - * - * # Params - * - * - `restorer`: Account ID of the restoring contract. - * - `dest`: Account ID of the restored contract. - * - `code_hash`: Code hash of the restored contract. - * - `rent_allowance`: Rent allowance of the restored contract. - **/ - Restored: AugmentedEvent; /** * Triggered when the current schedule is updated. * \[version\] @@ -238,7 +222,7 @@ declare module '@polkadot/api/types/events' { **/ ScheduleUpdated: AugmentedEvent; /** - * Contract has been terminated without leaving a tombstone. + * Contract has been removed. * \[contract, beneficiary\] * * # Params @@ -248,8 +232,8 @@ declare module '@polkadot/api/types/events' { * * # Note * - * The only way for a contract to be removed without a tombstone and emitting - * this event is by calling `seal_terminate`. + * The only way for a contract to be removed and emitting this event is by calling + * `seal_terminate`. **/ Terminated: AugmentedEvent; /** diff --git a/packages/api/src/augment/tx.ts b/packages/api/src/augment/tx.ts index c851482587..67116c3131 100644 --- a/packages/api/src/augment/tx.ts +++ b/packages/api/src/augment/tx.ts @@ -718,18 +718,6 @@ declare module '@polkadot/api/types/submittable' { * a regular account will be created and any value will be transferred. **/ call: AugmentedSubmittable<(dest: LookupSource | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact | AnyNumber | Uint8Array, gasLimit: Compact | AnyNumber | Uint8Array, data: Bytes | string | Uint8Array) => SubmittableExtrinsic, [LookupSource, Compact, Compact, Bytes]>; - /** - * Allows block producers to claim a small reward for evicting a contract. If a block - * producer fails to do so, a regular users will be allowed to claim the reward. - * - * In case of a successful eviction no fees are charged from the sender. However, the - * reward is capped by the total amount of rent that was paid by the contract while - * it was alive. - * - * If contract is not evicted as a result of this call, [`Error::ContractNotEvictable`] - * is returned and the sender is not eligible for the reward. - **/ - claimSurcharge: AugmentedSubmittable<(dest: AccountId | string | Uint8Array, auxSender: Option | null | object | string | Uint8Array) => SubmittableExtrinsic, [AccountId, Option]>; /** * Instantiates a contract from a previously deployed wasm binary. * @@ -783,7 +771,8 @@ declare module '@polkadot/api/types/submittable' { * If the close operation completes successfully with disapproval, the transaction fee will * be waived. Otherwise execution of the approved operation will be charged to the caller. * - * + `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed proposal. + * + `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed + * proposal. * + `length_bound`: The upper bound for the length of the proposal in storage. Checked via * `storage::read` so it is `size_of::() == 4` larger than the pure length. * @@ -796,14 +785,16 @@ declare module '@polkadot/api/types/submittable' { * - `P2` is proposal-count (code-bounded) * - DB: * - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`) - * - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec `O(P2)`) + * - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec + * `O(P2)`) * - any mutations done while executing `proposal` (`P1`) * - up to 3 events * # **/ close: AugmentedSubmittable<(proposalHash: Hash | string | Uint8Array, index: Compact | AnyNumber | Uint8Array, proposalWeightBound: Compact | AnyNumber | Uint8Array, lengthBound: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Hash, Compact, Compact, Compact]>; /** - * Disapprove a proposal, close, and remove it from the system, regardless of its current state. + * Disapprove a proposal, close, and remove it from the system, regardless of its current + * state. * * Must be called by the Root origin. * @@ -825,7 +816,8 @@ declare module '@polkadot/api/types/submittable' { * * # * ## Weight - * - `O(M + P)` where `M` members-count (code-bounded) and `P` complexity of dispatching `proposal` + * - `O(M + P)` where `M` members-count (code-bounded) and `P` complexity of dispatching + * `proposal` * - DB: 1 read (codec `O(M)`) + DB access of `proposal` * - 1 event * # @@ -866,8 +858,8 @@ declare module '@polkadot/api/types/submittable' { * * - `new_members`: The new member list. Be nice to the chain and provide it sorted. * - `prime`: The prime member whose vote sets the default. - * - `old_count`: The upper bound for the previous number of members in storage. - * Used for weight estimation. + * - `old_count`: The upper bound for the previous number of members in storage. Used for + * weight estimation. * * Requires root origin. * @@ -881,7 +873,8 @@ declare module '@polkadot/api/types/submittable' { * - `N` new-members-count (code- and governance-bounded) * - `P` proposals-count (code-bounded) * - DB: - * - 1 storage mutation (codec `O(M)` read, `O(N)` write) for reading and writing the members + * - 1 storage mutation (codec `O(M)` read, `O(N)` write) for reading and writing the + * members * - 1 storage read (codec `O(P)`) for reading the proposals * - `P` storage mutations (codec `O(M)`) for updating the votes for each proposal * - 1 storage write (codec `O(1)`) for deleting the old `prime` and setting the new one @@ -894,7 +887,8 @@ declare module '@polkadot/api/types/submittable' { * Requires the sender to be a member. * * Transaction fees will be waived if the member is voting on any particular proposal - * for the first time and the call is successful. Subsequent vote changes will charge a fee. + * for the first time and the call is successful. Subsequent vote changes will charge a + * fee. * # * ## Weight * - `O(M)` where `M` is members-count (code- and governance-bounded) @@ -3529,7 +3523,8 @@ declare module '@polkadot/api/types/submittable' { * If the close operation completes successfully with disapproval, the transaction fee will * be waived. Otherwise execution of the approved operation will be charged to the caller. * - * + `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed proposal. + * + `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed + * proposal. * + `length_bound`: The upper bound for the length of the proposal in storage. Checked via * `storage::read` so it is `size_of::() == 4` larger than the pure length. * @@ -3542,14 +3537,16 @@ declare module '@polkadot/api/types/submittable' { * - `P2` is proposal-count (code-bounded) * - DB: * - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`) - * - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec `O(P2)`) + * - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec + * `O(P2)`) * - any mutations done while executing `proposal` (`P1`) * - up to 3 events * # **/ close: AugmentedSubmittable<(proposalHash: Hash | string | Uint8Array, index: Compact | AnyNumber | Uint8Array, proposalWeightBound: Compact | AnyNumber | Uint8Array, lengthBound: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Hash, Compact, Compact, Compact]>; /** - * Disapprove a proposal, close, and remove it from the system, regardless of its current state. + * Disapprove a proposal, close, and remove it from the system, regardless of its current + * state. * * Must be called by the Root origin. * @@ -3571,7 +3568,8 @@ declare module '@polkadot/api/types/submittable' { * * # * ## Weight - * - `O(M + P)` where `M` members-count (code-bounded) and `P` complexity of dispatching `proposal` + * - `O(M + P)` where `M` members-count (code-bounded) and `P` complexity of dispatching + * `proposal` * - DB: 1 read (codec `O(M)`) + DB access of `proposal` * - 1 event * # @@ -3612,8 +3610,8 @@ declare module '@polkadot/api/types/submittable' { * * - `new_members`: The new member list. Be nice to the chain and provide it sorted. * - `prime`: The prime member whose vote sets the default. - * - `old_count`: The upper bound for the previous number of members in storage. - * Used for weight estimation. + * - `old_count`: The upper bound for the previous number of members in storage. Used for + * weight estimation. * * Requires root origin. * @@ -3627,7 +3625,8 @@ declare module '@polkadot/api/types/submittable' { * - `N` new-members-count (code- and governance-bounded) * - `P` proposals-count (code-bounded) * - DB: - * - 1 storage mutation (codec `O(M)` read, `O(N)` write) for reading and writing the members + * - 1 storage mutation (codec `O(M)` read, `O(N)` write) for reading and writing the + * members * - 1 storage read (codec `O(P)`) for reading the proposals * - `P` storage mutations (codec `O(M)`) for updating the votes for each proposal * - 1 storage write (codec `O(1)`) for deleting the old `prime` and setting the new one @@ -3640,7 +3639,8 @@ declare module '@polkadot/api/types/submittable' { * Requires the sender to be a member. * * Transaction fees will be waived if the member is voting on any particular proposal - * for the first time and the call is successful. Subsequent vote changes will charge a fee. + * for the first time and the call is successful. Subsequent vote changes will charge a + * fee. * # * ## Weight * - `O(M)` where `M` is members-count (code- and governance-bounded) @@ -3746,10 +3746,9 @@ declare module '@polkadot/api/types/submittable' { * as the hash of the tuple of the original tip `reason` and the beneficiary account ID. * * # - * - Complexity: `O(T)` where `T` is the number of tippers. - * decoding `Tipper` vec of length `T`. - * `T` is charged as upper bound given by `ContainsLengthBound`. - * The actual cost depends on the implementation of `T::Tippers`. + * - Complexity: `O(T)` where `T` is the number of tippers. decoding `Tipper` vec of length + * `T`. `T` is charged as upper bound given by `ContainsLengthBound`. The actual cost + * depends on the implementation of `T::Tippers`. * - DbReads: `Tips`, `Tippers`, `tip finder` * - DbWrites: `Reasons`, `Tips`, `Tippers`, `tip finder` * # @@ -3830,10 +3829,9 @@ declare module '@polkadot/api/types/submittable' { * has started. * * # - * - Complexity: `O(T)` where `T` is the number of tippers. - * decoding `Tipper` vec of length `T`, insert tip and check closing, - * `T` is charged as upper bound given by `ContainsLengthBound`. - * The actual cost depends on the implementation of `T::Tippers`. + * - Complexity: `O(T)` where `T` is the number of tippers. decoding `Tipper` vec of length + * `T`, insert tip and check closing, `T` is charged as upper bound given by + * `ContainsLengthBound`. The actual cost depends on the implementation of `T::Tippers`. * * Actually weight could be lower as it depends on how many tips are in `OpenTip` but it * is weighted as if almost full i.e of length `T-1`. @@ -3858,9 +3856,9 @@ declare module '@polkadot/api/types/submittable' { * * # * - Complexity: `O(R + T)` where `R` length of `reason`, `T` is the number of tippers. - * - `O(T)`: decoding `Tipper` vec of length `T` - * `T` is charged as upper bound given by `ContainsLengthBound`. - * The actual cost depends on the implementation of `T::Tippers`. + * - `O(T)`: decoding `Tipper` vec of length `T`. `T` is charged as upper bound given by + * `ContainsLengthBound`. The actual cost depends on the implementation of + * `T::Tippers`. * - `O(R)`: hashing and encoding of reason of length `R` * - DbReads: `Tippers`, `Reasons` * - DbWrites: `Reasons`, `Tips` diff --git a/packages/api/src/packageInfo.ts b/packages/api/src/packageInfo.ts index 02fd58f5df..e980a45d81 100644 --- a/packages/api/src/packageInfo.ts +++ b/packages/api/src/packageInfo.ts @@ -3,4 +3,4 @@ // Auto-generated by @polkadot/dev, do not edit -export const packageInfo = { name: '@polkadot/api', version: '5.9.2-3' }; +export const packageInfo = { name: '@polkadot/api', version: '5.9.2-4' }; diff --git a/packages/rpc-core/package.json b/packages/rpc-core/package.json index 8d1f056e5e..18d4d43b0a 100644 --- a/packages/rpc-core/package.json +++ b/packages/rpc-core/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/rpc-core", - "version": "5.9.2-3", + "version": "5.9.2-4", "type": "module", "description": "A JavaScript wrapper for the Polkadot JsonRPC interface", "main": "index.js", @@ -20,8 +20,8 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-core#readme", "dependencies": { "@babel/runtime": "^7.15.4", - "@polkadot/rpc-provider": "5.9.2-3", - "@polkadot/types": "5.9.2-3", + "@polkadot/rpc-provider": "5.9.2-4", + "@polkadot/types": "5.9.2-4", "@polkadot/util": "^7.3.1", "rxjs": "^7.3.0" }, diff --git a/packages/rpc-core/src/packageInfo.ts b/packages/rpc-core/src/packageInfo.ts index 3df477512b..daf542d8bb 100644 --- a/packages/rpc-core/src/packageInfo.ts +++ b/packages/rpc-core/src/packageInfo.ts @@ -3,4 +3,4 @@ // Auto-generated by @polkadot/dev, do not edit -export const packageInfo = { name: '@polkadot/rpc-core', version: '5.9.2-3' }; +export const packageInfo = { name: '@polkadot/rpc-core', version: '5.9.2-4' }; diff --git a/packages/rpc-provider/package.json b/packages/rpc-provider/package.json index 59a937c2ec..435d5917df 100644 --- a/packages/rpc-provider/package.json +++ b/packages/rpc-provider/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/rpc-provider", - "version": "5.9.2-3", + "version": "5.9.2-4", "type": "module", "description": "Transport providers for the API", "main": "index.js", @@ -20,7 +20,7 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme", "dependencies": { "@babel/runtime": "^7.15.4", - "@polkadot/types": "5.9.2-3", + "@polkadot/types": "5.9.2-4", "@polkadot/util": "^7.3.1", "@polkadot/util-crypto": "^7.3.1", "@polkadot/x-fetch": "^7.3.1", @@ -30,7 +30,7 @@ }, "devDependencies": { "@polkadot/keyring": "^7.3.1", - "@polkadot/types": "5.9.2-3", + "@polkadot/types": "5.9.2-4", "mock-socket": "^9.0.3", "nock": "^13.1.3" } diff --git a/packages/rpc-provider/src/packageInfo.ts b/packages/rpc-provider/src/packageInfo.ts index ba57df5ac2..f1b87bc8c1 100644 --- a/packages/rpc-provider/src/packageInfo.ts +++ b/packages/rpc-provider/src/packageInfo.ts @@ -3,4 +3,4 @@ // Auto-generated by @polkadot/dev, do not edit -export const packageInfo = { name: '@polkadot/rpc-provider', version: '5.9.2-3' }; +export const packageInfo = { name: '@polkadot/rpc-provider', version: '5.9.2-4' }; diff --git a/packages/typegen/package.json b/packages/typegen/package.json index 8b73593580..9389dbdb50 100644 --- a/packages/typegen/package.json +++ b/packages/typegen/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/typegen", - "version": "5.9.2-3", + "version": "5.9.2-4", "type": "module", "description": "Type generation scripts", "main": "index.js", @@ -29,10 +29,10 @@ "@babel/core": "^7.15.5", "@babel/register": "^7.15.3", "@babel/runtime": "^7.15.4", - "@polkadot/api": "5.9.2-3", - "@polkadot/rpc-provider": "5.9.2-3", - "@polkadot/types": "5.9.2-3", - "@polkadot/types-support": "5.9.2-3", + "@polkadot/api": "5.9.2-4", + "@polkadot/rpc-provider": "5.9.2-4", + "@polkadot/types": "5.9.2-4", + "@polkadot/types-support": "5.9.2-4", "@polkadot/util": "^7.3.1", "handlebars": "^4.7.7", "websocket": "^1.0.34", diff --git a/packages/typegen/src/packageInfo.ts b/packages/typegen/src/packageInfo.ts index e42b55f798..ad105f283f 100644 --- a/packages/typegen/src/packageInfo.ts +++ b/packages/typegen/src/packageInfo.ts @@ -3,4 +3,4 @@ // Auto-generated by @polkadot/dev, do not edit -export const packageInfo = { name: '@polkadot/typegen', version: '5.9.2-3' }; +export const packageInfo = { name: '@polkadot/typegen', version: '5.9.2-4' }; diff --git a/packages/types-known/package.json b/packages/types-known/package.json index c9bf32243b..3c79f19e12 100644 --- a/packages/types-known/package.json +++ b/packages/types-known/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/types-known", - "version": "5.9.2-3", + "version": "5.9.2-4", "type": "module", "description": "Known type definitions", "main": "index.js", @@ -21,7 +21,7 @@ "dependencies": { "@babel/runtime": "^7.15.4", "@polkadot/networks": "^7.3.1", - "@polkadot/types": "5.9.2-3", + "@polkadot/types": "5.9.2-4", "@polkadot/util": "^7.3.1" } } diff --git a/packages/types-known/src/packageInfo.ts b/packages/types-known/src/packageInfo.ts index a598328b9a..0f909325d9 100644 --- a/packages/types-known/src/packageInfo.ts +++ b/packages/types-known/src/packageInfo.ts @@ -3,4 +3,4 @@ // Auto-generated by @polkadot/dev, do not edit -export const packageInfo = { name: '@polkadot/types-known', version: '5.9.2-3' }; +export const packageInfo = { name: '@polkadot/types-known', version: '5.9.2-4' }; diff --git a/packages/types-support/package.json b/packages/types-support/package.json index d3e5def3b1..649e9e998d 100644 --- a/packages/types-support/package.json +++ b/packages/types-support/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/types-support", - "version": "5.9.2-3", + "version": "5.9.2-4", "type": "module", "description": "Supporting files for types, mostly for testing", "main": "index.js", diff --git a/packages/types-support/src/packageInfo.ts b/packages/types-support/src/packageInfo.ts index 20d648f28d..14cb72dc4a 100644 --- a/packages/types-support/src/packageInfo.ts +++ b/packages/types-support/src/packageInfo.ts @@ -3,4 +3,4 @@ // Auto-generated by @polkadot/dev, do not edit -export const packageInfo = { name: '@polkadot/types-support', version: '5.9.2-3' }; +export const packageInfo = { name: '@polkadot/types-support', version: '5.9.2-4' }; diff --git a/packages/types/package.json b/packages/types/package.json index a35c7abca5..7927894eb9 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/types", - "version": "5.9.2-3", + "version": "5.9.2-4", "type": "module", "description": "Implementation of the Parity codec", "main": "index.js", @@ -26,7 +26,7 @@ }, "devDependencies": { "@polkadot/keyring": "^7.3.1", - "@polkadot/types-support": "5.9.2-3", + "@polkadot/types-support": "5.9.2-4", "@types/bn.js": "^4.11.6", "bn.js": "^4.12.0" } diff --git a/packages/types/src/packageInfo.ts b/packages/types/src/packageInfo.ts index 6c09101e2c..addc312491 100644 --- a/packages/types/src/packageInfo.ts +++ b/packages/types/src/packageInfo.ts @@ -3,4 +3,4 @@ // Auto-generated by @polkadot/dev, do not edit -export const packageInfo = { name: '@polkadot/types', version: '5.9.2-3' }; +export const packageInfo = { name: '@polkadot/types', version: '5.9.2-4' }; diff --git a/yarn.lock b/yarn.lock index 30013df6b2..442f291d99 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1854,40 +1854,40 @@ __metadata: resolution: "@polkadot/api-contract@workspace:packages/api-contract" dependencies: "@babel/runtime": ^7.15.4 - "@polkadot/api": 5.9.2-3 - "@polkadot/types": 5.9.2-3 + "@polkadot/api": 5.9.2-4 + "@polkadot/types": 5.9.2-4 "@polkadot/util": ^7.3.1 rxjs: ^7.3.0 languageName: unknown linkType: soft -"@polkadot/api-derive@5.9.2-3, @polkadot/api-derive@workspace:packages/api-derive": +"@polkadot/api-derive@5.9.2-4, @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.15.4 - "@polkadot/api": 5.9.2-3 + "@polkadot/api": 5.9.2-4 "@polkadot/keyring": ^7.3.1 - "@polkadot/rpc-core": 5.9.2-3 - "@polkadot/rpc-provider": 5.9.2-3 - "@polkadot/types": 5.9.2-3 + "@polkadot/rpc-core": 5.9.2-4 + "@polkadot/rpc-provider": 5.9.2-4 + "@polkadot/types": 5.9.2-4 "@polkadot/util": ^7.3.1 "@polkadot/util-crypto": ^7.3.1 rxjs: ^7.3.0 languageName: unknown linkType: soft -"@polkadot/api@5.9.2-3, @polkadot/api@workspace:packages/api": +"@polkadot/api@5.9.2-4, @polkadot/api@workspace:packages/api": version: 0.0.0-use.local resolution: "@polkadot/api@workspace:packages/api" dependencies: "@babel/runtime": ^7.15.4 - "@polkadot/api-derive": 5.9.2-3 + "@polkadot/api-derive": 5.9.2-4 "@polkadot/keyring": ^7.3.1 - "@polkadot/rpc-core": 5.9.2-3 - "@polkadot/rpc-provider": 5.9.2-3 - "@polkadot/types": 5.9.2-3 - "@polkadot/types-known": 5.9.2-3 + "@polkadot/rpc-core": 5.9.2-4 + "@polkadot/rpc-provider": 5.9.2-4 + "@polkadot/types": 5.9.2-4 + "@polkadot/types-known": 5.9.2-4 "@polkadot/util": ^7.3.1 "@polkadot/util-crypto": ^7.3.1 eventemitter3: ^4.0.7 @@ -2012,26 +2012,26 @@ __metadata: languageName: node linkType: hard -"@polkadot/rpc-core@5.9.2-3, @polkadot/rpc-core@workspace:packages/rpc-core": +"@polkadot/rpc-core@5.9.2-4, @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.15.4 "@polkadot/keyring": ^7.3.1 - "@polkadot/rpc-provider": 5.9.2-3 - "@polkadot/types": 5.9.2-3 + "@polkadot/rpc-provider": 5.9.2-4 + "@polkadot/types": 5.9.2-4 "@polkadot/util": ^7.3.1 rxjs: ^7.3.0 languageName: unknown linkType: soft -"@polkadot/rpc-provider@5.9.2-3, @polkadot/rpc-provider@workspace:packages/rpc-provider": +"@polkadot/rpc-provider@5.9.2-4, @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.15.4 "@polkadot/keyring": ^7.3.1 - "@polkadot/types": 5.9.2-3 + "@polkadot/types": 5.9.2-4 "@polkadot/util": ^7.3.1 "@polkadot/util-crypto": ^7.3.1 "@polkadot/x-fetch": ^7.3.1 @@ -2059,10 +2059,10 @@ __metadata: "@babel/core": ^7.15.5 "@babel/register": ^7.15.3 "@babel/runtime": ^7.15.4 - "@polkadot/api": 5.9.2-3 - "@polkadot/rpc-provider": 5.9.2-3 - "@polkadot/types": 5.9.2-3 - "@polkadot/types-support": 5.9.2-3 + "@polkadot/api": 5.9.2-4 + "@polkadot/rpc-provider": 5.9.2-4 + "@polkadot/types": 5.9.2-4 + "@polkadot/types-support": 5.9.2-4 "@polkadot/util": ^7.3.1 "@types/websocket": ^1.0.4 "@types/yargs": ^17.0.2 @@ -2078,18 +2078,18 @@ __metadata: languageName: unknown linkType: soft -"@polkadot/types-known@5.9.2-3, @polkadot/types-known@workspace:packages/types-known": +"@polkadot/types-known@5.9.2-4, @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.15.4 "@polkadot/networks": ^7.3.1 - "@polkadot/types": 5.9.2-3 + "@polkadot/types": 5.9.2-4 "@polkadot/util": ^7.3.1 languageName: unknown linkType: soft -"@polkadot/types-support@5.9.2-3, @polkadot/types-support@workspace:packages/types-support": +"@polkadot/types-support@5.9.2-4, @polkadot/types-support@workspace:packages/types-support": version: 0.0.0-use.local resolution: "@polkadot/types-support@workspace:packages/types-support" dependencies: @@ -2098,13 +2098,13 @@ __metadata: languageName: unknown linkType: soft -"@polkadot/types@5.9.2-3, @polkadot/types@workspace:packages/types": +"@polkadot/types@5.9.2-4, @polkadot/types@workspace:packages/types": version: 0.0.0-use.local resolution: "@polkadot/types@workspace:packages/types" dependencies: "@babel/runtime": ^7.15.4 "@polkadot/keyring": ^7.3.1 - "@polkadot/types-support": 5.9.2-3 + "@polkadot/types-support": 5.9.2-4 "@polkadot/util": ^7.3.1 "@polkadot/util-crypto": ^7.3.1 "@types/bn.js": ^4.11.6