coordinape = {
const players = Array.from({ length: 4 }).map((_, idx) => ({
type: 'player',
id: idx + 6,
name: `Player #${idx + 1}`,
}))
const guilds = [
{
type: 'guild',
id: 3,
name: 'Guild #1',
distribution: [
{ destination: players[0], cost: 20 },
{ destination: players[1], cost: 20 },
{ destination: players[2], cost: 20 },
],
},
{
type: 'guild',
id: 4,
name: 'Guild #2',
distribution: [
{ destination: players[1], cost: 20 },
{ destination: players[2], cost: 20 },
{ destination: players[3], cost: 20 },
],
},
{
type: 'guild',
id: 5,
name: 'Guild #3',
distribution: [
{ destination: players[0], cost: 20 },
{ destination: players[3], cost: 20 },
],
},
]
const top = {
type: 'top',
id: 2,
distribution: [
{ destination: guilds[0], cost: 50 },
{ destination: guilds[1], cost: 50 },
{ destination: guilds[2], cost: 50 },
],
}
return ({
getEpochs: () => ([
{
type: 'epoch',
id: 1,
startTime: (() => {
const now = new Date()
const monthAgo = new Date()
monthAgo.setMonth(now.getMonth() - 1)
return monthAgo
})(),
endTime: new Date(),
top,
},
]),
getPlayers: () => players,
})
}