Skip to content

Commit

Permalink
fix: update types (#360)
Browse files Browse the repository at this point in the history
  • Loading branch information
1xstj authored Dec 22, 2023
1 parent fd5cfd8 commit 023dcc1
Show file tree
Hide file tree
Showing 12 changed files with 2,992 additions and 456 deletions.
2 changes: 1 addition & 1 deletion types/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@webb-tools/tangle-substrate-types",
"version": "0.5.0",
"version": "0.5.1",
"description": "Polkadot.js type definitions required for interacting with Webb's tangle network",
"main": "./build/index.js",
"author": "Webb Developers <[email protected]>",
Expand Down
55 changes: 55 additions & 0 deletions types/src/interfaces/augment-api-consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,34 @@ export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>

declare module '@polkadot/api-base/types/consts' {
interface AugmentedConsts<ApiType extends ApiTypes> {
babe: {
/**
* The amount of time, in slots, that each epoch should last.
* NOTE: Currently it is not possible to change the epoch duration after
* the chain has started. Attempting to do so will brick block production.
**/
epochDuration: u64 & AugmentedConst<ApiType>;
/**
* The expected average block time at which BABE should be creating
* blocks. Since BABE is probabilistic it is not trivial to figure out
* what the expected average block time should be based on the slot
* duration and the security parameter `c` (where `1 - c` represents
* the probability of a slot being empty).
**/
expectedBlockTime: u64 & AugmentedConst<ApiType>;
/**
* Max number of authorities allowed
**/
maxAuthorities: u32 & AugmentedConst<ApiType>;
/**
* The maximum number of nominators for each validator.
**/
maxNominators: u32 & AugmentedConst<ApiType>;
/**
* Generic const
**/
[key: string]: Codec;
};
bagsList: {
/**
* The list of thresholds separating the various bags.
Expand Down Expand Up @@ -393,6 +421,13 @@ declare module '@polkadot/api-base/types/consts' {
**/
[key: string]: Codec;
};
eth2Client: {
palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
/**
* Generic const
**/
[key: string]: Codec;
};
grandpa: {
/**
* Max Authorities in use
Expand Down Expand Up @@ -473,6 +508,16 @@ declare module '@polkadot/api-base/types/consts' {
**/
[key: string]: Codec;
};
jobs: {
/**
* `PalletId` for the jobs pallet.
**/
palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
/**
* Generic const
**/
[key: string]: Codec;
};
nominationPools: {
/**
* The maximum pool points-to-balance ratio that an `open` pool can have.
Expand All @@ -498,6 +543,16 @@ declare module '@polkadot/api-base/types/consts' {
**/
[key: string]: Codec;
};
roles: {
/**
* Max roles per account.
**/
maxRolesPerAccount: u32 & AugmentedConst<ApiType>;
/**
* Generic const
**/
[key: string]: Codec;
};
scheduler: {
/**
* The maximum weight that may be scheduled per block for any dispatchables.
Expand Down
Loading

0 comments on commit 023dcc1

Please sign in to comment.