Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

TaskRequest.Payload

未关闭
#202 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
25/100
Issue 类型
文档
描述清晰度
需要澄清
活跃度
停滞
技术栈
go, solidity
领域
documentation

调研方向

从 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.

  1. When I run devkit avs call , is it calling TaskMailBox contract?

  2. why in the example on website, the call is devkit avs call -- signature="(uint256,string)" args='(5,"hello")' , while HelloWorld.sol functions take as input only a string?

  3. I am going through the hourglass template, and in cmd/main.go I see HandleTask function, with input t *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?

  1. 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 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Layr-Labs/devkit-cli 的其他 Issue

查看 Layr-Labs/devkit-cli 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。