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

Add staking plugin to replace other system checks #10912

Merged
merged 3 commits into from
Jan 6, 2025

Conversation

raymondjacobson
Copy link
Member

@raymondjacobson raymondjacobson commented Jan 3, 2025

Description

New plugin replaces functionality previously held in sauron repo.
Endpoints will return 400 if criteria is not met.

http://localhost:6004/init-round

{
status: "Last funded block is recent enough",
lastFundedBlockNumber: 21533381,
latestBlock: 21547265,
fundingRoundBlockDiff: 46523,
blockDiff: 13884
}

http://localhost:6004/balance?address=redacted&chain=eth&minBalance=100000000000000000

{
balance: "252261215123204715",
eth: "0.252261215123204715",
minBalance: "100000000000000000",
status: "above min balance"
}

http://localhost:6004/balance?address=redacted&chain=solana&minBalance=10000000000

{
balance: "42223956324",
sol: "42.223956324",
minBalance: "10000000000",
status: "above min balance"
}

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide repro instructions & any configuration.

npm run dev

per instructions in readme

Copy link

changeset-bot bot commented Jan 3, 2025

⚠️ No Changeset found

Latest commit: d367624

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Contributor

@alecsavvy alecsavvy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sweet!

@raymondjacobson raymondjacobson merged commit fbd27b7 into main Jan 6, 2025
15 checks passed
@raymondjacobson raymondjacobson deleted the rj-staking-check branch January 6, 2025 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants