Closed happyJ2024 closed 2 years ago
Development Swagger API: http://16.163.5.216:18080/api/
Task:
/getTaskSummaryInfo 显示首页上的 我的任务统计 /list 任务列表, 支持分页 /getTasks 获取指定的任务的详情 /interact 前端使用js-sdk 签名好数据后, 将 hex数据发送给后端, 后端发到链上 /scheduleLog 创建Task时调用/interact接口后, 再调用这个接口, 记下操作日志 /cancelLog 取消Task时调用/interact接口后, 再调用这个接口, 记下操作日志
notify config format
{
"notify_type": "Email",
"email": "byj626680108@gmail.com",
"format_subject": "",
"format_content": "the ${amount_formatted} ${symbol} was transfered from ${from} to ${to} at block ${blockNumber} on chain ${chain} at ${timestamp}, over the threshold ${threshold_formatted} ${symbol}. View the tx: ${tx}."
}
{
"notify_type": "Telegram",
"bot_token": "5377339602:AAElnu2lYmSRBMdwCo5bh7XU-G3c3UBkyA4",
"chat_id": "-769947223",
"parse_mode": "HTML",
"format_content": "the ${amount_formatted} ${symbol} was transfered from ${from} to ${to} at block ${blockNumber} on chain ${chain} at ${timestamp}, over the threshold ${threshold_formatted} ${symbol}. View the tx: ${tx}."
}
{
"notify_type": "Webhook",
"api": "",
"format_content": "the ${amount_formatted} ${symbol} was transfered from ${from} to ${to} at block ${blockNumber} on chain ${chain} at ${timestamp}, over the threshold ${threshold_formatted} ${symbol}. View the tx: ${tx}."
}
taskIds 现在还没有, 留着给页面增加 过滤条件的=> 输入 taskId show_only_running_task => 这个关联那个 show finished tasks, 值是反向的 filter_by_current_address 是关联 show whole on-chain tasks , 值是反向的
history
https://oak-network.notion.site/DApp-Contest-Automation-8be2537371da4f978f1d1805acd33de7
主要工作: 1.用他们的js sdk 做个功能性的dashboard, 展示/添加/取消任务. 2.用我们的moonpush 去监视它链上的事件 automationTime.SuccesfullyTransferredFunds 以确定定时任务确实被执行了.