// Numbas version: finer_feedback_settings {"name": "EIP-7623 \u306e calldata \u30ac\u30b9\u4e0b\u9650\u3092\u76e3\u67fb\u3059\u308b", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "feedback": {"showactualmarkwhen": "always", "showtotalmarkwhen": "always", "showanswerstatewhen": "always", "showpartfeedbackmessageswhen": "always", "allowrevealanswer": true, "showexpectedanswerswhen": "inreview", "showadvicewhen": "inreview"}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "EIP-7623 \u306e calldata \u30ac\u30b9\u4e0b\u9650\u3092\u76e3\u67fb\u3059\u308b", "tags": ["blockchain", "calldata", "EIP-7623", "Ethereum", "gas accounting", "Pectra"], "metadata": {"description": "

EIP-7623 \u306b\u57fa\u3065\u304d\u3001calldata \u306e token \u6570\u3001\u6a19\u6e96\u30ac\u30b9\u5206\u5c90\u3001\u4e0b\u9650\u5206\u5c90\u3092\u6bd4\u8f03\u3059\u308b\u6c7a\u5b9a\u8ad6\u7684\u306a\u6570\u5024\u6f14\u7fd2\u3067\u3059\u3002Pectra \u53d6\u5f15\u306e\u30ac\u30b9\u4f1a\u8a08\u3092\u4ed5\u69d8\u304b\u3089\u691c\u8a3c\u3057\u307e\u3059\u3002

", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "

\u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u4f5c\u6210\u3067\u306f\u306a\u3044 Pectra \u53d6\u5f15\u306b\u3001\u30bc\u30ed\u30d0\u30a4\u30c8\u304c 120 \u500b\u3001\u975e\u30bc\u30ed\u30d0\u30a4\u30c8\u304c 70 \u500b\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002\u8fd4\u91d1\u63a7\u9664\u5f8c\u306e EVM \u5b9f\u884c\u30ac\u30b9\u306f 900 \u3067\u3059\u3002EIP-7623 \u306b\u5f93\u3044\u3001tokens = zero_bytes + 4 × nonzero_bytes\u3001\u6a19\u6e96\u5206\u5c90 = 4 × tokens + execution_gas_used\u3001\u4e0b\u9650\u5206\u5c90 = 10 × tokens\u3001tx.gasUsed = 21,000 + max(\u6a19\u6e96\u5206\u5c90, \u4e0b\u9650\u5206\u5c90) \u3068\u3057\u307e\u3059\u3002tx.gasUsed \u3092\u6c42\u3081\u3066\u304f\u3060\u3055\u3044\u3002

", "advice": "

\u89e3\u7b54

\n

tokens = 120 + 4 × 70 = 400\u3002\u6a19\u6e96\u5206\u5c90\u306f 4 × 400 + 900 = 2,500\u3002\u4e0b\u9650\u5206\u5c90\u306f 10 × 400 = 4,000\u3002\u5927\u304d\u3044\u65b9\u306f 4,000 \u306a\u306e\u3067\u3001tx.gasUsed = 21,000 + 4,000 = 25,000\u3002calldata \u306e tokens \u3092\u5148\u306b\u8a08\u7b97\u3057\u3001\u4e8c\u3064\u306e\u5206\u5c90\u3092\u6bd4\u8f03\u3057\u3066\u304b\u3089\u57fa\u672c\u30ac\u30b9\u3092\u52a0\u3048\u307e\u3059\u3002

\n

\u4e00\u6b21\u8cc7\u6599

\n\n

Mushegh Manukyan\uff08ARMCP Founder & CEO\uff09\u304c\u4f5c\u6210\u3057\u305f\u72ec\u7acb\u6559\u80b2\u8cc7\u6599\u3002CC BY 4.0\u3002\u6295\u8cc7\u52a9\u8a00\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": true, "customName": "\u53d6\u5f15\u306e\u30ac\u30b9\u4f7f\u7528\u91cf", "marks": "10", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "adaptiveMarkingUseCondition": "", "adaptiveMarkingNotUsedMessage": "", "exploreObjective": null, "prompt": "

tx.gasUsed \u3092\u6574\u6570\u3067\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002

", "minValue": "25000", "maxValue": "25000", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "25000", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "showAllParts": false, "contributors": [{"name": "Mushegh Manukyan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/39968/"}], "resources": []}]}], "contributors": [{"name": "Mushegh Manukyan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/39968/"}]}