UNPKG

@goat-sdk/plugin-mode-governance

Version:

<div align="center"> <a href="https://github.com/goat-sdk/goat">

2 lines (1 loc) 1.22 kB
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkEI7MMDWYjs = require('./chunk-EI7MMDWY.js');var _core = require('@goat-sdk/core');var _zod = require('zod');var d=_zod.z.enum(["MODE","BPT"]),a=_zod.z.enum(["MODE","BPT","veMode","veBPT"]),T=_zod.z.object({amount:_zod.z.string().describe("The amount of tokens to stake in base units (18 decimals)"),tokenType:d}),i=_zod.z.object({tokenType:d.describe("The type of token to get info for (MODE or BPT)")}),p=_zod.z.object({tokenType:a.describe("The type of token to get balance for: 'veMode'/'veBPT' for voting power, 'MODE'/'BPT' for token balances"),address:_zod.z.string().optional().describe("The address to check balance for. If not provided, uses the wallet's address")}),s= exports.a =class extends _core.createToolParameters.call(void 0, T){static{_chunkEI7MMDWYjs.a.call(void 0, this,"StakeParameters")}},c= exports.b =class extends _core.createToolParameters.call(void 0, i){static{_chunkEI7MMDWYjs.a.call(void 0, this,"GetStakeInfoParameters")}},r= exports.c =class extends _core.createToolParameters.call(void 0, p){static{_chunkEI7MMDWYjs.a.call(void 0, this,"GetBalanceParameters")}};exports.a = s; exports.b = c; exports.c = r;