@goat-sdk/plugin-betswirl
Version:
<div align="center"> <a href="https://github.com/goat-sdk/goat">
72 lines (69 loc) • 2.33 kB
TypeScript
import { EVMWalletClient } from '@goat-sdk/wallet-evm';
import { z } from 'zod';
declare function createRouletteTool(walletClient: EVMWalletClient, theGraphKey?: string): {
execute(parameters: {
betAmount: string;
numbers: number[];
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>;
numbers: z.ZodArray<z.ZodNumber, "many">;
}, "strip", z.ZodTypeAny, {
betAmount: string;
numbers: number[];
betCount?: number | undefined;
token?: string | undefined;
stopGain?: string | undefined;
stopLoss?: string | undefined;
receiver?: string | undefined;
}, {
betAmount: string;
numbers: number[];
betCount?: number | undefined;
token?: string | undefined;
stopGain?: string | undefined;
stopLoss?: string | undefined;
receiver?: string | undefined;
}>;
};
export { createRouletteTool };