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

refactor: move llm bots to separate package #4629

Conversation

md0x
Copy link
Contributor

@md0x md0x commented Aug 30, 2023

Motivation

Move LLM bots to a separate package

Signed-off-by: Pablo Maldonado <pablo@umaproject.org>
@linear
Copy link

linear bot commented Aug 30, 2023

UMA-1702 Create a separate package for llm-bot in protocol repo

Move the llm-bot from packages/monitor-v2 to a separate package packages/llm-bot

@md0x md0x marked this pull request as ready for review August 30, 2023 10:32
Signed-off-by: Pablo Maldonado <pablo@umaproject.org>
Signed-off-by: Pablo Maldonado <pablo@umaproject.org>
@md0x md0x mentioned this pull request Aug 30, 2023
5 tasks
@md0x md0x requested a review from daywiss August 30, 2023 16:06
Copy link
Member

@mrice32 mrice32 left a comment

Choose a reason for hiding this comment

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

LGTM! Only nits and minor comments

@@ -0,0 +1,24 @@
import { formatBytes32String, parseUnits } from "./utils";
Copy link
Member

Choose a reason for hiding this comment

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

Are some/all of these test utilities files copied? If so, could you comment that in the PR so we know which to review as fresh code?

const optimisticOracleV2UIBaseUrl = "https://oracle.uma.xyz";
const testnetOptimisticOracleV2UIBaseUrl = "https://testnet.oracle.uma.xyz";

// monitor-v2 package is only using Optimistic Oracle V3, so currently there is no need to generalize this.
Copy link
Member

Choose a reason for hiding this comment

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

nit: outdated comment

Comment on lines 13 to 28
export const createSnapshotProposalLink = (baseUrl: string, space: string, proposalId: string): string => {
return `<${baseUrl}/#/${space}/proposal/${proposalId}|Snapshot UI>`;
};

export const createTenderlySimulationLink = (simulationResult?: TenderlySimulationResult): string => {
if (simulationResult === undefined) {
return "No Tenderly simulation available";
} else if (simulationResult.status) {
return `<${simulationResult.resultUrl.url}|Tenderly simulation successful${
!simulationResult.resultUrl.public ? " (private)" : ""
}>`;
} else {
return `<${simulationResult.resultUrl.url}|Tenderly simulation reverted${
!simulationResult.resultUrl.public ? " (private)" : ""
}>`;
}
Copy link
Member

Choose a reason for hiding this comment

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

Was a little surprised to see this code here? Is this used (or placed to be used) in the LLC bit codebase? If so, no problem, just wanted to call it out!

Copy link
Contributor

@daywiss daywiss left a comment

Choose a reason for hiding this comment

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

im assuming this is just moving stuff, but i dont see why the changes from old location arent showing

Signed-off-by: Pablo Maldonado <pablo@umaproject.org>
@md0x md0x merged commit b7890f8 into master Sep 3, 2023
8 checks passed
@md0x md0x deleted the pablo/uma-1702-create-a-separate-package-for-llm-bot-in-protocol-repo branch September 3, 2023 18:52
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.

3 participants