Returns the Wave User Stats data.
Usage
import { getWaveStats } from '@azuro-org/toolkit'
const stats = await getWaveStats({
account: '0xkn123k...'
})
Props
{
account: Address
waveId?: WaveId
chainId?: ChainId
}
type WaveId = number | 'active'
type ChainId =
| 100 // Gnosis
| 137 // Polygon
| 80002 // Polygon Amoy
| 88888 // Chiliz
| 88882 // Chiliz Spicy
| 8453 // Base
| 84532 // Base Sepolia
Return Value
{
address: Address
waveId: number
levelActivated: boolean
initialLevel: number
level: number
// points by categories
betPoints: string
dexPoints: string
liqudityPoints: string
stakingPoints: string
leaderboardPoints: string
manualPoints: string
points: string // "2.100000", final points without level multiplier
multipliedPoints: string // "2.100000", final points with level multiplier ('boost')
sharePercent: string
levelDescription: WaveLevelData
} | null
{
level: number
name: WaveLevelName
boost: string
pointsNeeded: string
comment: string
}
enum WaveLevelName {
Grey = 'Grey',
Mist = 'Mist',
Sky = 'Sky',
Blue = 'Blue',
Ultramarine = 'Ultramarine',
Bright = 'Bright',
Brilliant = 'Brilliant',
Royal = 'Royal',
}