Layr-Labs / Layr-Labs/devkit-cli
TaskRequest.Payload
- 主要言語
- Go
- スター
- 27
- フォーク
- 10
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
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.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
cmd/main.go の HandleTask、hourglass テンプレート、および issue で参照されている devkit avs call の例から始めます。TaskRequest.Payload がどのように使用されているかを追跡し、文書化されている HelloWorld.sol の入力と CLI シグネチャの例を比較します。提出フローと ABI payload が説明され、単純な計算の動作する Go の例が含まれていれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- go, solidity
- 領域
- documentation
- issue の種類
- ドキュメント
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100