Layr-Labs / Layr-Labs/devkit-cli
TaskRequest.Payload
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Go
- Sterne
- 27
- Forks
- 10
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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?
4. 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.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne mit HandleTask in cmd/main.go, der hourglass-Vorlage und dem im Issue referenzierten devkit avs call-Beispiel. Verfolge, wie TaskRequest.Payload verwendet wird, und vergleiche die dokumentierten Eingaben von HelloWorld.sol mit dem CLI-Signaturbeispiel. Als abgeschlossen gilt die Aufgabe, wenn der Submission-Flow und das ABI-Payload erklärt sind und ein funktionierendes Go-Beispiel für eine einfache Berechnung enthalten ist.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- go, solidity
- Bereich
- documentation
- Issue-Typ
- Dokumentation
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100