Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/plugin-b2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"type": "module",
"types": "dist/index.d.ts",
"dependencies": {
"@elizaos/core": "workspace:*"
"@elizaos/core": "workspace:*",
"tsup": "8.3.5"
},
"devDependencies": {
"tsup": "8.3.5",
Expand Down
111 changes: 0 additions & 111 deletions packages/plugin-b2/src/actions/sampleAction.ts

This file was deleted.

20 changes: 20 additions & 0 deletions packages/plugin-b2/src/actions/transfer.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { Action , type IAgentRuntime, type Memory, type State, type HandlerCallback } from "@elizaos/core";

export const transferAction: Action = {
name: "B2_TRANSFER",
description: "Transfer B2 gas token between addresses on the B2 network",
handler: async (
runtime: IAgentRuntime,
message: Memory,
state?: State,
option?: any,
callback?: HandlerCallback
) => {
return true;
},
validate: async (runtime: IAgentRuntime) => {
return true;
},
examples: [],
similes: ["SEND_B2_TOKEN", "TRANSFER_B2_TOKEN", "MOVE_B2_TOKEN"],
};
53 changes: 0 additions & 53 deletions packages/plugin-b2/src/evaluators/sampleEvalutor.ts

This file was deleted.

16 changes: 12 additions & 4 deletions packages/plugin-b2/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
import { samplePlugin } from "./plugins/samplePlugin";
import { Plugin } from "@elizaos/core";
import { transferAction } from "./actions/transfer";
import { walletProvider } from "./providers/walletProvider";

export * from "./plugins/samplePlugin";

export default samplePlugin;
export const b2Plugin: Plugin = {
name: "b2",
description: "B2 network plugin for Eliza",
actions: [transferAction],
providers: [walletProvider],
evaluators: [],
services: [],
clients: [],
};
15 changes: 0 additions & 15 deletions packages/plugin-b2/src/plugins/samplePlugin.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ import {
elizaLogger,
} from "@elizaos/core";

export const sampleProvider: Provider = {
export const walletProvider: Provider = {
get: async (runtime: IAgentRuntime, message: Memory, state: State) => {
// Data retrieval logic for the provider
elizaLogger.log("Retrieving data in sampleProvider...");
elizaLogger.log("Retrieving data in walletProvider...");
},
};
60 changes: 0 additions & 60 deletions packages/plugin-b2/src/templates.ts

This file was deleted.

55 changes: 0 additions & 55 deletions packages/plugin-b2/src/types.ts

This file was deleted.

Loading