UNPKG

@goat-sdk/plugin-modespray

Version:

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

2 lines (1 loc) 1.44 kB
import{a as t}from"./chunk-YSXGDEY5.mjs";import{createToolParameters as a}from"@goat-sdk/core";import{z as e}from"zod";var r=class extends a(e.object({recipients:e.array(e.string().regex(/^0x[a-fA-F0-9]{40}$/,"Each recipient must be a valid Ethereum address 42 hexadecimal characters included 0x-prefixed.")).nonempty({message:"The recipients array must have at least one valid Ethereum address."}),amounts:e.array(e.string().regex(/^\d+$/,"Each amount must be a positive in gwei units")).nonempty({message:"The amounts array must have at least one valid amount specified"})})){static{t(this,"SprayEtherParams")}},i=class extends a(e.object({token:e.string().describe("The address of the erc20 token suported by modespray."),recipients:e.array(e.string().regex(/^0x[a-fA-F0-9]{40}$/,"Each recipient must be a valid Ethereum address 42 hexadecimal characters included 0x-prefixed.")).nonempty({message:"The recipients array must have at least one valid Ethereum address."}),amounts:e.array(e.string().regex(/^\d+$/,"Each amount must be a positive integer in the token unit.")).nonempty({message:"The amounts array must have at least one valid amount specified in the token unit."})})){static{t(this,"SprayErc20TokenParams")}},n=class extends a(e.object({token:e.string().describe("The symbol of the erc20 token to get info for tokens suported by modespray.")})){static{t(this,"GetInfoModeSprayTokensParams")}};export{r as a,i as b,n as c};