web3go-xyz / web3go.xyz

Discovery data value of Web3
Apache License 2.0
10 stars 4 forks source link

OAK dApp #104

Closed happyJ2024 closed 2 years ago

happyJ2024 commented 2 years ago

https://oak-network.notion.site/DApp-Contest-Automation-8be2537371da4f978f1d1805acd33de7

主要工作: 1.用他们的js sdk 做个功能性的dashboard, 展示/添加/取消任务. 2.用我们的moonpush 去监视它链上的事件 automationTime.SuccesfullyTransferredFunds 以确定定时任务确实被执行了.

happyJ2024 commented 2 years ago

Prototype Design: https://rp.mockplus.cn/run/m9UpWfpp-ip9/OFb9CXQZPfv/dMbSLosDRvmA?nav=1&cps=expand&rps=collapse&ha=0&la=0&fc=0&out=1&rt=1

happyJ2024 commented 2 years ago

Development Swagger API: http://16.163.5.216:18080/api/

happyJ2024 commented 2 years ago

Task:

/getTaskSummaryInfo 显示首页上的 我的任务统计 /list 任务列表, 支持分页 /getTasks 获取指定的任务的详情 /interact 前端使用js-sdk 签名好数据后, 将 hex数据发送给后端, 后端发到链上 /scheduleLog 创建Task时调用/interact接口后, 再调用这个接口, 记下操作日志 /cancelLog 取消Task时调用/interact接口后, 再调用这个接口, 记下操作日志

happyJ2024 commented 2 years ago

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}."
}
happyJ2024 commented 2 years ago

e1e836a5878a31b4f4237befb39f570 taskIds 现在还没有, 留着给页面增加 过滤条件的=> 输入 taskId show_only_running_task => 这个关联那个 show finished tasks, 值是反向的 filter_by_current_address 是关联 show whole on-chain tasks , 值是反向的

happyJ2024 commented 2 years ago

history