Skip to content

Commit f1cdc3b

Browse files
Add support for Voting on Mode Network (#164)
* Add Mode voting Plugin * Fix getting gauges, gauge details, and vote on gauges * Finish testing functions * Add plugin in Goat workspace * Revert example mode file to original state * Remove console logs * Regenerate pnpm * pnpm lint fix in mode-voting * Fix pnpm-lock * Fix PR --------- Co-authored-by: Agustin Armellini Fischer <[email protected]>
1 parent c154f58 commit f1cdc3b

File tree

15 files changed

+3653
-1
lines changed

15 files changed

+3653
-1
lines changed

goat.code-workspace

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@
9898
"name": "[Plugin] 📊 mode governance",
9999
"path": "./typescript/packages/plugins/mode-governance"
100100
},
101+
{
102+
"name": "[Plugin] 📊 mode voting",
103+
"path": "./typescript/packages/plugins/mode-voting"
104+
},
101105
{
102106
"name": "[Plugin] ☄️ meteora",
103107
"path": "./typescript/packages/plugins/meteora"

typescript/examples/virtuals-game/viem/toolCalling.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { mode } from "viem/chains";
1313

1414
import { openai } from "@ai-sdk/openai";
1515
import { getOnChainTools } from "@goat-sdk/adapter-vercel-ai";
16-
import { MODE, PEPE, USDC, erc20 } from "@goat-sdk/plugin-erc20";
16+
import { MODE, USDC, erc20 } from "@goat-sdk/plugin-erc20";
1717
import { kim } from "@goat-sdk/plugin-kim";
1818
import { sendETH } from "@goat-sdk/wallet-evm";
1919
import { viem } from "@goat-sdk/wallet-viem";
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"name": "@goat-sdk/plugin-mode-voting",
3+
"version": "0.1.0",
4+
"files": ["dist/**/*", "README.md", "package.json"],
5+
"scripts": {
6+
"build": "tsup",
7+
"clean": "rm -rf dist",
8+
"test": "vitest run --passWithNoTests"
9+
},
10+
"sideEffects": false,
11+
"main": "./dist/index.js",
12+
"module": "./dist/index.mjs",
13+
"types": "./dist/index.d.ts",
14+
"dependencies": {
15+
"@goat-sdk/core": "workspace:*",
16+
"@goat-sdk/wallet-evm": "workspace:*",
17+
"viem": "catalog:",
18+
"zod": "catalog:"
19+
},
20+
"peerDependencies": {
21+
"@goat-sdk/core": "workspace:*",
22+
"viem": "catalog:"
23+
},
24+
"homepage": "https://ohmygoat.dev",
25+
"repository": {
26+
"type": "git",
27+
"url": "git+https://github.com/goat-sdk/goat.git"
28+
},
29+
"license": "MIT",
30+
"bugs": {
31+
"url": "https://github.com/goat-sdk/goat/issues"
32+
},
33+
"keywords": ["ai", "agents", "web3"]
34+
}

0 commit comments

Comments
 (0)