File tree 3 files changed +20
-27
lines changed
plugin-starknet/src/actions
3 files changed +20
-27
lines changed Original file line number Diff line number Diff line change @@ -78,13 +78,20 @@ export class GitHubClient {
78
78
while ( retries < maxRetries ) {
79
79
try {
80
80
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
+ ) ;
82
84
return ;
83
85
} 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
+ ) ;
85
90
retries ++ ;
86
91
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
+ ) ;
88
95
}
89
96
}
90
97
}
Original file line number Diff line number Diff line change @@ -21,20 +21,13 @@ export const EmbeddingProvider = {
21
21
BGE : "BGE" ,
22
22
} as const ;
23
23
24
- export type EmbeddingProvider =
24
+ export type EmbeddingProviderType =
25
25
( typeof EmbeddingProvider ) [ keyof typeof EmbeddingProvider ] ;
26
26
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
-
34
27
export type EmbeddingConfig = {
35
28
readonly dimensions : number ;
36
29
readonly model : string ;
37
- readonly provider : EmbeddingProvider ;
30
+ readonly provider : EmbeddingProviderType ;
38
31
} ;
39
32
40
33
export const getEmbeddingConfig = ( ) : EmbeddingConfig => ( {
Original file line number Diff line number Diff line change @@ -9,28 +9,21 @@ import {
9
9
Memory ,
10
10
ModelClass ,
11
11
State ,
12
- type Action ,
13
12
} from "@elizaos/core" ;
14
13
import { Percent } from "@uniswap/sdk-core" ;
15
14
import { createMemecoin , launchOnEkubo } from "unruggable-sdk" ;
16
- import { constants } from "starknet" ;
17
15
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";
26
19
import { ACCOUNTS , TOKENS } from "../utils/constants.ts" ;
27
20
import { validateStarknetConfig } from "../environment.ts" ;
28
21
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
+ // }
34
27
35
28
interface DeployTokenContent {
36
29
name : string ;
You can’t perform that action at this time.
0 commit comments