Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CSUB-845][hotfix] Split cleanup of expired entries across multiple blocks #1352

Merged
merged 12 commits into from
Oct 9, 2023
26 changes: 13 additions & 13 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ members = [
resolver = "2"

[workspace.package]
version = '2.230.2'
version = '2.231.0'
authors = ['Gluwa Inc.', 'Nathan Whitaker <nathan.whitaker@gluwa.com>']
edition = '2021'
license = 'Unlicense'
Expand Down
2 changes: 1 addition & 1 deletion creditcoin-js/creditcoin.json

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions creditcoin-js/src/interfaces/augment-api-consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,13 @@ declare module '@polkadot/api-base/types/consts' {
**/
[key: string]: Codec;
};
creditcoin: {
perBlockCleanupLimit: u32 & AugmentedConst<ApiType>;
/**
* Generic const
**/
[key: string]: Codec;
};
fastUnstake: {
/**
* Deposit to take for unstaking, to make sure we're able to slash the it in order to cover
Expand Down
7 changes: 7 additions & 0 deletions creditcoin-js/src/interfaces/augment-api-query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import type {
PalletCreditcoinAddress,
PalletCreditcoinAskOrder,
PalletCreditcoinBidOrder,
PalletCreditcoinCleanupStorageCleanupState,
PalletCreditcoinCollectCoinsCollectedCoins,
PalletCreditcoinDealOrder,
PalletCreditcoinLegacySighash,
Expand Down Expand Up @@ -333,6 +334,12 @@ declare module '@polkadot/api-base/types/storage' {
[u32, H256]
> &
QueryableStorageEntry<ApiType, [u32, H256]>;
cleanupState: AugmentedQuery<
ApiType,
() => Observable<Option<PalletCreditcoinCleanupStorageCleanupState>>,
[]
> &
QueryableStorageEntry<ApiType, []>;
collectCoinsContract: AugmentedQuery<
ApiType,
() => Observable<PalletCreditcoinOcwTasksCollectCoinsGCreContract>,
Expand Down
Loading
Loading