UNPKG

@goat-sdk/plugin-betswirl

Version:

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

2 lines (1 loc) 937 B
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkEI7MMDWYjs = require('./chunk-EI7MMDWY.js');var _sdkcore = require('@betswirl/sdk-core');var _zod = require('zod');var r=_zod.z.string().regex(/^0x[a-fA-F0-9]{40}$/,"The address must be a valid EVM address"),p= exports.b ={betAmount:_zod.z.string().describe("The bet amount"),token:_zod.z.string().describe("Token symbol").optional().describe("The token to bet with"),stopGain:_zod.z.string().optional().describe("The profit amount to stop betting"),stopLoss:_zod.z.string().optional().describe("The loss amount to stop betting"),receiver:r.optional().describe("The payout receiver address")};function b(o){return{betCount:_zod.z.number().positive().max(_sdkcore.maxGameBetCountByType[o]).default(1).optional().describe("The number of bets to place")}}_chunkEI7MMDWYjs.a.call(void 0, b,"getMaxBetCountParam");exports.a = r; exports.b = p; exports.c = b;