Skip to content

Commit

Permalink
Revert "slash extrinsic (tests + automatic top ups) and top_up extrin…
Browse files Browse the repository at this point in the history
…sic (untested)"

This reverts commit 2238f0b.
  • Loading branch information
snowmead committed Nov 12, 2024
1 parent 8008ca2 commit 13a2f55
Show file tree
Hide file tree
Showing 33 changed files with 338 additions and 920 deletions.
2 changes: 0 additions & 2 deletions Cargo.lock

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

87 changes: 36 additions & 51 deletions api-augment/dist/interfaces/lookup.js

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

2 changes: 1 addition & 1 deletion api-augment/dist/interfaces/lookup.js.map

Large diffs are not rendered by default.

6 changes: 0 additions & 6 deletions api-augment/dist/types/interfaces/augment-api-consts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -453,12 +453,6 @@ declare module "@polkadot/api-base/types/consts" {
* Starting reputation weight for a newly registered BSP.
**/
startingReputationWeight: u32 & AugmentedConst<ApiType>;
/**
* Period of time for a provider to top up their deposit after being slashed.
*
* If the provider does not top up their deposit within this period, they will be marked as insolvent.
**/
topUpGracePeriod: u32 & AugmentedConst<ApiType>;
/**
* The Treasury AccountId.
* The account to which:
Expand Down
8 changes: 0 additions & 8 deletions api-augment/dist/types/interfaces/augment-api-errors.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1034,10 +1034,6 @@ declare module "@polkadot/api-base/types/errors" {
* Error thrown when the runtime cannot hold the required deposit from the account to register it as a SP or change its capacity.
**/
CannotHoldDeposit: AugmentedError<ApiType>;
/**
* Deposit too low to determine capacity.
**/
DepositTooLow: AugmentedError<ApiType>;
/**
* Error thrown when a fixed payment stream is not found.
**/
Expand Down Expand Up @@ -1154,10 +1150,6 @@ declare module "@polkadot/api-base/types/errors" {
* Error thrown when a user tries to sign up or change its capacity to store less storage than the minimum required by the runtime.
**/
StorageTooLow: AugmentedError<ApiType>;
/**
* Error thrown when a provider attempted to top up their deposit when they are not required to.
**/
TopUpNotRequired: AugmentedError<ApiType>;
/**
* Error thrown when value proposition under a given id already exists.
**/
Expand Down
21 changes: 4 additions & 17 deletions api-augment/dist/types/interfaces/augment-api-events.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2243,27 +2243,14 @@ declare module "@polkadot/api-base/types/events" {
}
>;
/**
* Event emitted when a provider has been slashed, signaling the end of the grace period and the current
* top up outstanding top up slash amount.
* Event emitted when an SP has been slashed.
**/
SlashedAndAwaitingTopUp: AugmentedEvent<
ApiType,
[providerId: H256, endBlockGracePeriod: u32, outstandingSlashAmount: u128],
{
providerId: H256;
endBlockGracePeriod: u32;
outstandingSlashAmount: u128;
}
>;
/**
* Event emitted when an SP has topped up its deposit based on slash amount.
**/
TopUpFulfilled: AugmentedEvent<
Slashed: AugmentedEvent<
ApiType,
[providerId: H256, amount: u128],
[providerId: H256, amountSlashed: u128],
{
providerId: H256;
amount: u128;
amountSlashed: u128;
}
>;
/**
Expand Down
Loading

0 comments on commit 13a2f55

Please sign in to comment.