|
@@ -25,7 +25,7 @@ async function startCheck(concurrency) {
|
|
|
const axios = getAxiosClient(true)
|
|
|
|
|
|
return await axios.get(
|
|
|
- `https://xp-api.initiation-1.initia.xyz/xp/weekly/${account.address}/9`,
|
|
|
+ `https://xp-api.initiation-1.initia.xyz/xp/weekly/${account.address}/10`,
|
|
|
)
|
|
|
})
|
|
|
|
|
@@ -37,25 +37,25 @@ async function startCheck(concurrency) {
|
|
|
return
|
|
|
}
|
|
|
//bridge_op_deposit
|
|
|
- if (res.data.finished_tasks.includes(`bridge_op_deposit`)) {
|
|
|
+ if (res.data.finished_tasks.includes(`bridge_provide_stable`)) {
|
|
|
account.task1 = 1
|
|
|
} else {
|
|
|
account.task1 = 0
|
|
|
}
|
|
|
//
|
|
|
- if (res.data.finished_tasks.includes(`bridge_op_withdraw`)) {
|
|
|
+ if (res.data.finished_tasks.includes(`bridge_provide_virtual`)) {
|
|
|
account.task2 = 1
|
|
|
} else {
|
|
|
account.task2 = 0
|
|
|
}
|
|
|
//bridge_ibc_transfer
|
|
|
- if (res.data.finished_tasks.includes(`bridge_ibc_transfer`)) {
|
|
|
+ if (res.data.finished_tasks.includes(`bridge_swap_init`)) {
|
|
|
account.task3 = 1
|
|
|
} else {
|
|
|
account.task3 = 0
|
|
|
}
|
|
|
//milkyway_mint_milk_init
|
|
|
- if (res.data.finished_tasks.includes(`milkyway_mint_milk_init`)) {
|
|
|
+ if (res.data.finished_tasks.includes(`provide_liquidity_milk`)) {
|
|
|
account.task4 = 1
|
|
|
} else {
|
|
|
account.task4 = 0
|
|
@@ -112,62 +112,62 @@ async function startCheck(concurrency) {
|
|
|
`${index}/${accountsRaw.length}: processing ${account.address},task1`,
|
|
|
)
|
|
|
|
|
|
- const bool = await client.questBridge()
|
|
|
+ const bool = await client.quest2Task1()
|
|
|
console.log(
|
|
|
`${index}/${accountsRaw.length}: processing ${account.address},task1`,
|
|
|
bool,
|
|
|
)
|
|
|
- if (bool === `done`) {
|
|
|
- await DBClient.instance.randomTask2.update({
|
|
|
- where: { id: account.id },
|
|
|
- data: account,
|
|
|
- })
|
|
|
- }
|
|
|
+ // if (bool === `done`) {
|
|
|
+ // await DBClient.instance.randomTask2.update({
|
|
|
+ // where: { id: account.id },
|
|
|
+ // data: account,
|
|
|
+ // })
|
|
|
+ // }
|
|
|
} else if (randomPick === 2) {
|
|
|
console.log(
|
|
|
`${index}/${accountsRaw.length}: processing ${account.address},task2`,
|
|
|
)
|
|
|
- const bool = await client.questTask2()
|
|
|
+ const bool = await client.quest2Task2()
|
|
|
console.log(
|
|
|
`${index}/${accountsRaw.length}: processing ${account.address},task2`,
|
|
|
bool,
|
|
|
)
|
|
|
- if (bool === `done`) {
|
|
|
- await DBClient.instance.randomTask2.update({
|
|
|
- where: { id: account.id },
|
|
|
- data: account,
|
|
|
- })
|
|
|
- }
|
|
|
+ // if (bool === `done`) {
|
|
|
+ // await DBClient.instance.randomTask2.update({
|
|
|
+ // where: { id: account.id },
|
|
|
+ // data: account,
|
|
|
+ // })
|
|
|
+ // }
|
|
|
} else if (randomPick === 3) {
|
|
|
console.log(
|
|
|
`${index}/${accountsRaw.length}: processing ${account.address},task3`,
|
|
|
)
|
|
|
- const bool = await client.questTask3()
|
|
|
+ const bool = await client.quest2Task3()
|
|
|
console.log(
|
|
|
`${index}/${accountsRaw.length}: processing ${account.address},task3`,
|
|
|
bool,
|
|
|
)
|
|
|
- if (bool === `done`) {
|
|
|
- await DBClient.instance.randomTask2.update({
|
|
|
- where: { id: account.id },
|
|
|
- data: account,
|
|
|
- })
|
|
|
- }
|
|
|
+ // if (bool === `done`) {
|
|
|
+ // await DBClient.instance.randomTask2.update({
|
|
|
+ // where: { id: account.id },
|
|
|
+ // data: account,
|
|
|
+ // })
|
|
|
+ // }
|
|
|
} else if (randomPick === 4) {
|
|
|
console.log(
|
|
|
`${index}/${accountsRaw.length}: processing ${account.address},task4`,
|
|
|
)
|
|
|
- const bool = await client.questTask4()
|
|
|
+ const bool = await client.quest2Task4()
|
|
|
console.log(
|
|
|
`${index}/${accountsRaw.length}: processing ${account.address},task4`,
|
|
|
bool,
|
|
|
)
|
|
|
- if (bool === `done`) {
|
|
|
- await DBClient.instance.randomTask2.update({
|
|
|
- where: { id: account.id },
|
|
|
- data: { task4: 1 },
|
|
|
- })
|
|
|
- }
|
|
|
+ // if (bool === `done`) {
|
|
|
+ // await DBClient.instance.randomTask2.update({
|
|
|
+ // where: { id: account.id },
|
|
|
+ // data: { task4: 1 },
|
|
|
+ // })
|
|
|
+ // }
|
|
|
} else if (randomPick === 5) {
|
|
|
console.log(
|
|
|
`${index}/${accountsRaw.length}: processing ${account.address},task5`,
|