repeating setup steps

オープン
#119 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
rust
領域
testing

調査の方向性

まず、[[setup]] ステップを解析して実行する Rust コードを見つけ、次に関数パラメーターの値がどのように渡されるかをたどります。指定された回数だけ setup ステップを繰り返し、指定された開始値、増加値、または減少値を生成できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

enhancement

Is your feature request related to a problem? Please describe.

Sometimes you need to call a setup step lots of times. The easy approach to this is to write a helper smart contract that loops your setup operations for you, so in contender, you can just call one function that does a lot of setup work. But if your target function uses too much gas, you're limited to some number of iterations before you run out of gas.

If we could just repeat setup steps and provide each step with a value from an iterator that provides new args (i.e. the index of the token to mint from the array of tokens you have), then this problem would be solved.

Describe the solution you'd like

Add a field to [[setup]] steps:

repeat = { param = "x", start_value = 0, increment ?= 1, decrement ?= 0, count = 5 }

that makes the step repeat count number of times, incrementing the argument to param (a function parameter name) by increment, or decrementing by decrement, with the value starting at start_value.

主要言語
Rust
スター
144
フォーク
58
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

flashbots/contender のほかの issue

flashbots/contender の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。