UNPKG

@goat-sdk/plugin-betswirl

Version:

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

2 lines (1 loc) 742 B
import{a as t}from"./chunk-YSXGDEY5.mjs";import{maxGameBetCountByType as s}from"@betswirl/sdk-core";import{z as e}from"zod";var r=e.string().regex(/^0x[a-fA-F0-9]{40}$/,"The address must be a valid EVM address"),b={betAmount:e.string().describe("The bet amount"),token:e.string().describe("Token symbol").optional().describe("The token to bet with"),stopGain:e.string().optional().describe("The profit amount to stop betting"),stopLoss:e.string().optional().describe("The loss amount to stop betting"),receiver:r.optional().describe("The payout receiver address")};function d(o){return{betCount:e.number().positive().max(s[o]).default(1).optional().describe("The number of bets to place")}}t(d,"getMaxBetCountParam");export{r as a,b,d as c};