-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #228 from lidofinance/develop
Develop to main
- Loading branch information
Showing
17 changed files
with
202 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<!--- If any section below doesn't make sense for your pull request, delete it please. --> | ||
|
||
### Description | ||
|
||
<!--- Briefly note most valuable changes in what you did and why we need it, even if the task was described in detail in the task tracker. --> | ||
|
||
### Demo | ||
|
||
<!--- If thee are visual changes, attach a link to a specific section on preview stand / add screenshots / record a [loom](https://www.loom.com/). --> | ||
|
||
### Code review notes | ||
|
||
<!--- Describe all uncertain decisions you made code-wise, e.g. readability vs performance. --> | ||
|
||
### Testing notes | ||
|
||
<!--- List all possible edge cases and how to test them. --> | ||
|
||
### Checklist: | ||
|
||
- [ ] Checked the changes locally. | ||
- [ ] Created / updated analytics events. | ||
- [ ] Created / updated the technical documentation (README.md / [docs](https://docs.lido.fi/) / etc.). | ||
- [ ] Affects / requires changes in other services (Matomo / Sentry / CloudFlare / etc.). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
## Contributing Guidelines | ||
|
||
Thank you for your interest in contributing to the project! Your enthusiasm and support are appreciated. Comprehensive contributing guidelines are actively being developed to ensure a smooth and collaborative contribution process. | ||
|
||
**Note:** At this moment, there is no guarantee that pull requests or issues will be processed, as the workflow and guidelines are still being established to make participation easier for everyone in the project. The importance of community involvement is understood, and an inclusive and comfortable environment for all contributors is being created. | ||
|
||
Rest assured, as soon as the contributing guide is ready, contributions and any encountered issues will be welcomed and addressed. An announcement will be made when the guidelines are finalized and open for contributions. | ||
|
||
In the meantime, exploring the project, familiarizing yourself with the codebase, and providing valuable feedback or suggestions during this development phase are encouraged. | ||
|
||
Thank you for your patience and understanding. Future contributions are eagerly anticipated once the contributing guidelines are in place! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,41 @@ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
import { WaitingTimeStatus } from '../../../waiting-time'; | ||
|
||
export class RequestTimeDto { | ||
@ApiProperty({ | ||
example: 5, | ||
description: 'Maximum waiting days', | ||
}) | ||
days: number; | ||
days?: number; | ||
|
||
@ApiProperty({ | ||
example: 0, | ||
description: 'Queue ETH last update timestamp', | ||
}) | ||
stethLastUpdate: number; | ||
stethLastUpdate?: number; | ||
|
||
@ApiProperty({ | ||
example: 0, | ||
description: 'Validators last update timestamp', | ||
}) | ||
validatorsLastUpdate: number; | ||
validatorsLastUpdate?: number; | ||
|
||
@ApiProperty({ | ||
example: 10, | ||
description: 'Queue requests count', | ||
}) | ||
requests: number; | ||
requests?: number; | ||
|
||
@ApiProperty({ | ||
example: 0, | ||
description: 'Queue steth amount', | ||
}) | ||
steth: string; | ||
steth?: string; | ||
|
||
@ApiProperty({ | ||
type: 'string', | ||
description: 'Status of request calculation', | ||
enum: Object.values(WaitingTimeStatus), | ||
}) | ||
status: WaitingTimeStatus; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,11 @@ | ||
import { BigNumber } from '@ethersproject/bignumber'; | ||
import { CHAINS } from '@lido-nestjs/constants'; | ||
import { CronExpression } from '@nestjs/schedule'; | ||
|
||
export const FAR_FUTURE_EPOCH = BigNumber.from(2).pow(64).sub(1); | ||
export const MAX_SEED_LOOKAHEAD = 4; | ||
|
||
export const ORACLE_REPORTS_CRON_BY_CHAIN_ID = { | ||
[CHAINS.Mainnet]: '30 4/8 * * *', // 4 utc, 12 utc, 20 utc | ||
[CHAINS.Holesky]: CronExpression.EVERY_3_HOURS, // happens very often, not necessary sync in testnet | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
export * from './validators.module'; | ||
export * from './validators.service'; | ||
export * from './validators-cache.service'; |
Oops, something went wrong.