Skip to content

Commit

Permalink
feat(plugin-starknet): migrate generateObjectDeprecated to generateOb…
Browse files Browse the repository at this point in the history
…ject
  • Loading branch information
9547 committed Jan 2, 2025
1 parent a3262fb commit 0edc90b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions packages/plugin-starknet/src/actions/subdomain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
State,
type Action,
composeContext,
generateObjectDeprecated,
generateObject,
Content,
elizaLogger,
} from "@elizaos/core";
Expand Down Expand Up @@ -107,7 +107,7 @@ export default {
});

// Generate transfer content
const content = await generateObjectDeprecated({
const content = await generateObject({
runtime,
context: transferContext,
modelClass: ModelClass.MEDIUM,
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-starknet/src/actions/swap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
ActionExample,
composeContext,
elizaLogger,
generateObjectDeprecated,
generateObject,
HandlerCallback,
IAgentRuntime,
Memory,
Expand Down Expand Up @@ -105,7 +105,7 @@ export const executeSwap: Action = {
template: swapTemplate,
});

const response = await generateObjectDeprecated({
const response = await generateObject({
runtime,
context: swapContext,
modelClass: ModelClass.MEDIUM,
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-starknet/src/actions/transfer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
composeContext,
Content,
elizaLogger,
generateObjectDeprecated,
generateObject,
HandlerCallback,
IAgentRuntime,
Memory,
Expand Down Expand Up @@ -136,7 +136,7 @@ export default {
});

// Generate transfer content
const content = await generateObjectDeprecated({
const content = await generateObject({
runtime,
context: transferContext,
modelClass: ModelClass.MEDIUM,
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-starknet/src/actions/unruggable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
ActionExample,
composeContext,
elizaLogger,
generateObjectDeprecated,
generateObject,
HandlerCallback,
IAgentRuntime,
Memory,
Expand Down Expand Up @@ -110,7 +110,7 @@ export const deployToken: Action = {
template: deployTemplate,
});

const response = await generateObjectDeprecated({
const response = await generateObject({
runtime,
context: deployContext,
modelClass: ModelClass.MEDIUM,
Expand Down

0 comments on commit 0edc90b

Please sign in to comment.