UNPKG

@goat-sdk/plugin-betswirl

Version:

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

33 lines (30 loc) 1.29 kB
import { Token, CASINO_GAME_TYPE, GameEncodedInput } from '@betswirl/sdk-core'; import { EVMWalletClient } from '@goat-sdk/wallet-evm'; import { Hex } from 'viem'; declare function getBetToken(wallet: EVMWalletClient, tokenSymbolInput?: string): Promise<Token>; declare function getBetAmountInWei(betAmount: string, token: Token): bigint; declare function placeBet(walletClient: EVMWalletClient, game: CASINO_GAME_TYPE, gameEncodedInput: GameEncodedInput, gameMultiplier: number, casinoGameParams: { betAmount: bigint; betToken: Token; betCount: number; receiver: Hex; stopGain: bigint; stopLoss: bigint; }): Promise<`0x${string}`>; declare function getBet(walletClient: EVMWalletClient, txHash: Hex, theGraphKey?: 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; }>; declare function getCasinoTokens(walletClient: EVMWalletClient): Promise<Token[]>; export { getBet, getBetAmountInWei, getBetToken, getCasinoTokens, placeBet };