Skip to content

Commit

Permalink
Add support for Voting on Mode Network (#164)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
sunosuporno and 0xaguspunk authored Jan 13, 2025
1 parent c154f58 commit f1cdc3b
Show file tree
Hide file tree
Showing 15 changed files with 3,653 additions and 1 deletion.
4 changes: 4 additions & 0 deletions goat.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@
"name": "[Plugin] 📊 mode governance",
"path": "./typescript/packages/plugins/mode-governance"
},
{
"name": "[Plugin] 📊 mode voting",
"path": "./typescript/packages/plugins/mode-voting"
},
{
"name": "[Plugin] ☄️ meteora",
"path": "./typescript/packages/plugins/meteora"
Expand Down
2 changes: 1 addition & 1 deletion typescript/examples/virtuals-game/viem/toolCalling.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { mode } from "viem/chains";

import { openai } from "@ai-sdk/openai";
import { getOnChainTools } from "@goat-sdk/adapter-vercel-ai";
import { MODE, PEPE, USDC, erc20 } from "@goat-sdk/plugin-erc20";
import { MODE, USDC, erc20 } from "@goat-sdk/plugin-erc20";
import { kim } from "@goat-sdk/plugin-kim";
import { sendETH } from "@goat-sdk/wallet-evm";
import { viem } from "@goat-sdk/wallet-viem";
Expand Down
34 changes: 34 additions & 0 deletions typescript/packages/plugins/mode-voting/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"name": "@goat-sdk/plugin-mode-voting",
"version": "0.1.0",
"files": ["dist/**/*", "README.md", "package.json"],
"scripts": {
"build": "tsup",
"clean": "rm -rf dist",
"test": "vitest run --passWithNoTests"
},
"sideEffects": false,
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"dependencies": {
"@goat-sdk/core": "workspace:*",
"@goat-sdk/wallet-evm": "workspace:*",
"viem": "catalog:",
"zod": "catalog:"
},
"peerDependencies": {
"@goat-sdk/core": "workspace:*",
"viem": "catalog:"
},
"homepage": "https://ohmygoat.dev",
"repository": {
"type": "git",
"url": "git+https://github.com/goat-sdk/goat.git"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/goat-sdk/goat/issues"
},
"keywords": ["ai", "agents", "web3"]
}
Loading

0 comments on commit f1cdc3b

Please sign in to comment.