UNPKG

@goat-sdk/plugin-betswirl

Version:

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

72 lines (69 loc) 2.29 kB
import { EVMWalletClient } from '@goat-sdk/wallet-evm'; import { z } from 'zod'; declare function createDiceTool(walletClient: EVMWalletClient, theGraphKey?: string): { execute(parameters: { number: number; betAmount: string; betCount?: number | undefined; token?: string | undefined; stopGain?: string | undefined; stopLoss?: string | undefined; receiver?: string | undefined; }): { id: string; input: any; betTxnHash: `0x${string}`; betTxnLink: string; betAmount: string; token: string; isWin: boolean | undefined; payoutMultiplier: number | undefined; rolled: any[] | undefined; payout: string | undefined; rollTxnHash: `0x${string}` | undefined; rollTxnLink: string | null; linkOnBetSwirl: string; } | Promise<{ id: string; input: any; betTxnHash: `0x${string}`; betTxnLink: string; betAmount: string; token: string; isWin: boolean | undefined; payoutMultiplier: number | undefined; rolled: any[] | undefined; payout: string | undefined; rollTxnHash: `0x${string}` | undefined; rollTxnLink: string | null; linkOnBetSwirl: string; }>; readonly name: string; readonly description: string; readonly parameters: z.ZodObject<{ betCount: z.ZodOptional<z.ZodDefault<z.ZodNumber>>; betAmount: z.ZodString; token: z.ZodOptional<z.ZodString>; stopGain: z.ZodOptional<z.ZodString>; stopLoss: z.ZodOptional<z.ZodString>; receiver: z.ZodOptional<z.ZodString>; number: z.ZodNumber; }, "strip", z.ZodTypeAny, { number: number; betAmount: string; betCount?: number | undefined; token?: string | undefined; stopGain?: string | undefined; stopLoss?: string | undefined; receiver?: string | undefined; }, { number: number; betAmount: string; betCount?: number | undefined; token?: string | undefined; stopGain?: string | undefined; stopLoss?: string | undefined; receiver?: string | undefined; }>; }; export { createDiceTool };