repeating setup steps

Aperta
#119 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
rust
Ambito
testing

Direzione di ricerca

Inizia individuando il codice Rust che analizza ed esegue i passaggi [[setup]], quindi segui come vengono forniti i valori dei parametri delle funzioni. Il lavoro è completato quando un passaggio di setup può essere ripetuto per il numero di volte richiesto producendo i valori di partenza, incremento o decremento specificati.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Rust
Stelle
144
Fork
58
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di flashbots/contender

Tutte le issue di flashbots/contender

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.