TaskRequest.Payload
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 25/100
- Issue 类型
- 文档
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- go, solidity
调研方向
从 cmd/main.go 的 HandleTask、hourglass 模板以及 issue 中引用的 devkit avs call 示例开始。追踪 TaskRequest.Payload 的使用方式,并将文档中 HelloWorld.sol 的输入与 CLI 签名示例进行比较。当提交流程和 ABI payload 得到解释,并包含一个用于简单计算的可运行 Go 示例时,即视为完成。
由索引模型根据 Issue 内容生成。
描述
I have some questions about the task submission process.
-
When I run
devkit avs call, is it callingTaskMailBoxcontract? -
why in the example on website, the call is
devkit avs call -- signature="(uint256,string)" args='(5,"hello")', whileHelloWorld.solfunctions take as input only a string? -
I am going through the hourglass template, and in cmd/main.go I see
HandleTaskfunction, with inputt *performerV1.TaskRequest, which is defined as
type TaskRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
TaskId []byte `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
}
from what I see, Payload is Abi encoded, for the example on the github with hello world, this is abi encoding of (5, "hello") arguments?
- And does anyone has a sample go function that actually does something (like squaring a number) and return it? It would be helpful for me.
- 主要语言
- Go
- 星标
- 28
- 派生
- 10
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Layr-Labs/devkit-cli 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 35/100
Layr-Labs/devkit-cli#300 ·
-
难度 3/5 1-2 天 新手友好度 38/100
Layr-Labs/devkit-cli#237 ·
-
难度 3/5 1-2 天 新手友好度 35/100
Layr-Labs/devkit-cli#231 · 3 条评论 · 1 个 reaction ·
-
难度 3/5 1-2 天 新手友好度 42/100
Layr-Labs/devkit-cli#221 · 2 条评论 ·
-
难度 4/5 3-5 天 新手友好度 35/100
Layr-Labs/devkit-cli#217 ·
查看 Layr-Labs/devkit-cli 的全部 Issue
相似的 Issue
-
bug docs
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
bug needs-acceptance wg/evaluation-quality
难度 2/5 1-3 小时 新手友好度 76/100
vllm-project/semantic-router#4424 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 90/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
NVIDIA/k8s-device-plugin#2076 ·
维护者通常 1 天内回复
-
Documentation help wanted
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复