Skip to content

Commit

Permalink
fix: srmodules types
Browse files Browse the repository at this point in the history
  • Loading branch information
eddort committed Jan 17, 2024
1 parent 06f8422 commit bc82967
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 8 deletions.
3 changes: 0 additions & 3 deletions src/http/db.fixtures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export const curatedModule: StakingModule = {
lastDepositBlock: 9,
exitedValidatorsCount: 0,
active: true,
lastChangedBlockHash: '',
};

export const dvtModule: StakingModule = {
Expand All @@ -33,7 +32,6 @@ export const dvtModule: StakingModule = {
lastDepositBlock: 10,
exitedValidatorsCount: 0,
active: true,
lastChangedBlockHash: '',
};

export const updatedCuratedModule: StakingModule = {
Expand All @@ -49,7 +47,6 @@ export const updatedCuratedModule: StakingModule = {
lastDepositBlock: 10,
exitedValidatorsCount: 1,
active: false,
lastChangedBlockHash: '',
};
export const srModules = [curatedModule, dvtModule];

Expand Down
2 changes: 0 additions & 2 deletions src/jobs/keys-update/test/keys-update.fixtures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export const stakingModuleFixture: StakingModule = {
exitedValidatorsCount: 10,
type: 'curated',
active: true,
lastChangedBlockHash: '',
};

export const stakingModuleFixtures: StakingModule[] = [
Expand All @@ -31,6 +30,5 @@ export const stakingModuleFixtures: StakingModule[] = [
exitedValidatorsCount: 5,
type: 'dvt',
active: false,
lastChangedBlockHash: '',
},
];
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ export class StakingRouterFetchService {
lastDepositBlock: stakingModule.lastDepositBlock.toNumber(),
exitedValidatorsCount: stakingModule.exitedValidatorsCount.toNumber(),
active: isActive,
lastChangedBlockHash: '',
};
}),
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ export interface StakingModule {
type: string; //STAKING_MODULE_TYPE;
// is module active
active: boolean;
// last changed block hash
lastChangedBlockHash: string;
}

export interface StakingModuleInterface {
Expand Down

0 comments on commit bc82967

Please sign in to comment.