I have some questions about the task submission process.
-
When I run devkit avs call , is it calling TaskMailBox contract?
-
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?
-
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?
- 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.
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 asfrom what I see, Payload is Abi encoded, for the example on the github with hello world, this is abi encoding of (5, "hello") arguments?