Returns the Wave Periods data.
Usage
import { getWavePeriods } from '@azuro-org/toolkit'
const periods = await getWavePeriods()
Props
{
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
Array<{
id: number
startsAt: string // ISO String "2024-05-13T00:00:00.000Z"
endsAt: string // ISO String "2024-05-20T00:00:00.000Z". It's a startsAt of next period
totalPoints: string
waveId: number
}> | null