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

[WIP] CLI #1

Merged
merged 25 commits into from
Jan 31, 2025
Merged

[WIP] CLI #1

merged 25 commits into from
Jan 31, 2025

Conversation

ev-d
Copy link
Contributor

@ev-d ev-d commented Dec 20, 2024

Description

Demo

Code review notes

Testing notes

Checklist:

  • Checked the changes locally.
  • Created/updated unit tests.
  • Created/updated README.md.

@ev-d ev-d requested a review from a team as a code owner December 20, 2024 10:34
@@ -1,2 +1,21 @@
import { Command } from "commander";
export const program = new Command();
// import { setAdvancedConfig } from "@features";
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we still need this?

export * from "./Delegation";
export * from "./StEth";
export * from "./LidoLocator";
export * from "./TokenManager";
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we need this contract?

export const voteLastVoting = async () => {
const { contract } = getVotingContract();
const votesLength = await contract.read.votesLength();
const lastVoteId = votesLength - 1n;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we use only the last vote?

}, {} as Record<string, any>);
}

// export const checkTmCanForward = async () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

comments

const dashboard = program.command("dashboard").description("dashboard contract");

dashboard
.command("info")
Copy link
Contributor

Choose a reason for hiding this comment

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

Not blocker:
Looks like we need separate files for different commands by type

@DiRaiks DiRaiks merged commit 68db792 into develop Jan 31, 2025
1 check passed
@DiRaiks DiRaiks deleted the feature/si-1686-cli branch January 31, 2025 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants