Skip to content

Commit 88ea84a

Browse files
authored
Merge branch 'develop' into 1510--add-fuel-plugin
2 parents 9ae1b44 + ca528a2 commit 88ea84a

File tree

3 files changed

+20
-27
lines changed

3 files changed

+20
-27
lines changed

packages/client-github/src/index.ts

+10-3
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,20 @@ export class GitHubClient {
7878
while (retries < maxRetries) {
7979
try {
8080
await this.git.clone(repositoryUrl, this.repoPath);
81-
elizaLogger.log(`Successfully cloned repository from ${repositoryUrl}`);
81+
elizaLogger.log(
82+
`Successfully cloned repository from ${repositoryUrl}`
83+
);
8284
return;
8385
} catch (error) {
84-
elizaLogger.error(`Failed to clone repository from ${repositoryUrl}. Retrying...`);
86+
elizaLogger.error(
87+
`Failed to clone repository from ${repositoryUrl}. Retrying...`,
88+
error
89+
);
8590
retries++;
8691
if (retries === maxRetries) {
87-
throw new Error(`Unable to clone repository from ${repositoryUrl} after ${maxRetries} retries.`);
92+
throw new Error(
93+
`Unable to clone repository from ${repositoryUrl} after ${maxRetries} retries.`
94+
);
8895
}
8996
}
9097
}

packages/core/src/embedding.ts

+2-9
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,13 @@ export const EmbeddingProvider = {
2121
BGE: "BGE",
2222
} as const;
2323

24-
export type EmbeddingProvider =
24+
export type EmbeddingProviderType =
2525
(typeof EmbeddingProvider)[keyof typeof EmbeddingProvider];
2626

27-
export namespace EmbeddingProvider {
28-
export type OpenAI = typeof EmbeddingProvider.OpenAI;
29-
export type Ollama = typeof EmbeddingProvider.Ollama;
30-
export type GaiaNet = typeof EmbeddingProvider.GaiaNet;
31-
export type BGE = typeof EmbeddingProvider.BGE;
32-
}
33-
3427
export type EmbeddingConfig = {
3528
readonly dimensions: number;
3629
readonly model: string;
37-
readonly provider: EmbeddingProvider;
30+
readonly provider: EmbeddingProviderType;
3831
};
3932

4033
export const getEmbeddingConfig = (): EmbeddingConfig => ({

packages/plugin-starknet/src/actions/unruggable.ts

+8-15
Original file line numberDiff line numberDiff line change
@@ -9,28 +9,21 @@ import {
99
Memory,
1010
ModelClass,
1111
State,
12-
type Action,
1312
} from "@elizaos/core";
1413
import { Percent } from "@uniswap/sdk-core";
1514
import { createMemecoin, launchOnEkubo } from "unruggable-sdk";
16-
import { constants } from "starknet";
1715

18-
import {
19-
getStarknetAccount,
20-
getStarknetProvider,
21-
parseFormatedAmount,
22-
parseFormatedPercentage,
23-
} from "../utils/index.ts";
24-
import { DeployData, Factory } from "@unruggable_starknet/core";
25-
import { AMM, QUOTE_TOKEN_SYMBOL } from "@unruggable_starknet/core/constants";
16+
import { getStarknetAccount, getStarknetProvider } from "../utils/index.ts";
17+
// import { DeployData, Factory } from "@unruggable_starknet/core";
18+
// import { AMM, QUOTE_TOKEN_SYMBOL } from "@unruggable_starknet/core/constants";
2619
import { ACCOUNTS, TOKENS } from "../utils/constants.ts";
2720
import { validateStarknetConfig } from "../environment.ts";
2821

29-
interface SwapContent {
30-
sellTokenAddress: string;
31-
buyTokenAddress: string;
32-
sellAmount: string;
33-
}
22+
// interface SwapContent {
23+
// sellTokenAddress: string;
24+
// buyTokenAddress: string;
25+
// sellAmount: string;
26+
// }
3427

3528
interface DeployTokenContent {
3629
name: string;

0 commit comments

Comments
 (0)