Skip to content

TaskRequest.Payload #202

@mahzoun

Description

@mahzoun

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions