Layr-Labs / Layr-Labs/devkit-cli
TaskRequest.Payload
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 27
- Forks
- 10
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with cmd/main.go's HandleTask, the hourglass template, and the devkit avs call example referenced in the issue. Trace how TaskRequest.Payload is used and compare the documented HelloWorld.sol inputs with the CLI signature example. Done means the submission flow and ABI payload are explained and a working Go example for a simple computation is included.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, solidity
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100