😶🌫️ Mystery Factor in Gas Estimation Script
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 45/100
- Tipo di issue
- Documentazione
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- typescript
- Ambito
- blockchain, documentation
Direzione di ricerca
Start with packages/gas-estimation/scripts/exec.ts, especially the gas formula documentation around lines 29–40 and the l1EstimatedPrice calculation near line 92. Trace the source and units of the factor of 16 before choosing a descriptive constant. Done means the constant and its purpose are documented in gasEstimator() and the tutorial remains understandable.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
📄 Summary
following refers to
arbitrum-tutorials/packages/gas-estimation/scripts/exec.ts
After a thorough review of the gas-estimation script tutorial, including an analysis of the commit history and an organization-wide search, I have been unable to locate a clear explanation for why the following variable is multiplied by a factor of 16:
const l1EstimatedPrice = gasEstimateComponents.l1BaseFeeEstimate.mul(16);
I have examined the detailed documentation (👏) related to the gas formula and the section titled How do we get all parts of that equation. However, the documentation repeatedly states, "and multiply by 16" without providing a precise explanation for this multiplication.
🔎 Interpretation
This factor likely pertains to unit conversion, such as converting from units of size to units of gas. However, neither the tutorial nor the repository offers a clear and specific explanation for this multiplication.
💊 Remedy
To improve clarity, I suggest the following steps:
- Define a constant with a descriptive name for this factor.
- Provide sufficient documentation explaining the purpose and usage of the new constant.
- Update the detailed documentation within
gasEstimator()to reference the factor of 16 and clearly explain its purpose.
- Lingua principale
- JavaScript
- Stelle
- 508
- Fork
- 314
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di OffchainLabs/arbitrum-tutorials
-
destAddress in the eth-deposit-to-different-address could be an argument to pass to the script instead of being hardcodedForse già presa @mahsamoosavi l’ha presa 995 giorni fa. Aperta
OffchainLabs/arbitrum-tutorials#115 · 1 assegnatario ·
-
add typescript config and convert js scripts to typescriptForse di nuovo libera @mahsamoosavi l’ha presa 1401 giorni fa e non c’è nessuna pull request aperta. Apertaenhancement
OffchainLabs/arbitrum-tutorials#88 · 1 commento · 1 assegnatario ·
Tutte le issue di OffchainLabs/arbitrum-tutorials
Issue simili
-
Add: &TV LogoApertacheck:passed logos:add
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 74/100
-
BUG: Appointment time renders blank and PM appointment slots miscalculate vertical position in CalendarScreenForse già presa @aryanpatil-07 l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
AOSSIE-Org/BabyNest#297 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Onboarding form: instructor radio never pre-selected "Yes" (permission vs permissions typo)Forse già presa @ThakuraAnki l’ha presa oggi. Apertabug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
WikiEducationFoundation/WikiEduDashboard#7235 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
-
Component: Frontend Component: Web Component Type: Maintenance
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
it-at-m/refarch-templates#1944 ·
I maintainer di solito rispondono entro 2 giorni