├── README.md ├── LICENSE ├── genesis.json └── params.json /README.md: -------------------------------------------------------------------------------- 1 | # common 2 | Resources common to all Ethereum implementations 3 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | 23 | -------------------------------------------------------------------------------- /genesis.json: -------------------------------------------------------------------------------- 1 | { 2 | "0000000000000000000000000000000000000001": { "wei": "1" }, 3 | "0000000000000000000000000000000000000002": { "wei": "1" }, 4 | "0000000000000000000000000000000000000003": { "wei": "1" }, 5 | "0000000000000000000000000000000000000004": { "wei": "1" }, 6 | "dbdbdb2cbd23b783741e8d7fcf51e459b497e4a6": { "wei": "1606938044258990275541962092341162602522202993782792835301376" }, 7 | "e6716f9544a56c530d868e4bfbacb172315bdead": { "wei": "1606938044258990275541962092341162602522202993782792835301376" }, 8 | "b9c015918bdaba24b4ff057a92a3873d6eb201be": { "wei": "1606938044258990275541962092341162602522202993782792835301376" }, 9 | "1a26338f0d905e295fccb71fa9ea849ffa12aaf4": { "wei": "1606938044258990275541962092341162602522202993782792835301376" }, 10 | "2ef47100e0787b915105fd5e3f4ff6752079d5cb": { "wei": "1606938044258990275541962092341162602522202993782792835301376" }, 11 | "cd2a3d9f938e13cd947ec05abc7fe734df8dd826": { "wei": "1606938044258990275541962092341162602522202993782792835301376" }, 12 | "6c386a4b26f73c802f34673f7248bb118f97424a": { "wei": "1606938044258990275541962092341162602522202993782792835301376" }, 13 | "e4157b34ea9615cfbde6b4fda419828124b70c78": { "wei": "1606938044258990275541962092341162602522202993782792835301376" }, 14 | } 15 | -------------------------------------------------------------------------------- /params.json: -------------------------------------------------------------------------------- 1 | { 2 | "genesisGasLimit": { "v": 5000, "d": "Gas limit of the Genesis block." }, 3 | "minGasLimit": { "v": 5000, "d": "Minimum the gas limit may ever be." }, 4 | "gasLimitBoundDivisor": { "v": 1024, "d": "The bound divisor of the gas limit, used in update calculations." }, 5 | "genesisDifficulty": { "v": 131072, "d": "Difficulty of the Genesis block." }, 6 | "minimumDifficulty": { "v": 131072, "d": "The minimum that the difficulty may ever be." }, 7 | "difficultyBoundDivisor": { "v": 2048, "d": "The bound divisor of the difficulty, used in the update calculations." }, 8 | "durationLimit": { "v": 13, "d": "The decision boundary on the blocktime duration used to determine whether difficulty should go up or not." }, 9 | "maximumExtraDataSize": { "v": 32, "d": "Maximum size extra data may be after Genesis." }, 10 | "epochDuration": { "v": 30000, "d": "Duration between proof-of-work epochs." }, 11 | "stackLimit": { "v": 1024, "d": "Maximum size of VM stack allowed." }, 12 | "callCreateDepth": { "v": 1024, "d": "Maximum depth of call/create stack." }, 13 | 14 | "tierStepGas": { "v": [ 0, 2, 3, 5, 8, 10, 20 ], "d": "Once per operation, for a selection of them." }, 15 | "expGas": { "v": 10, "d": "Once per EXP instuction." }, 16 | "expByteGas": { "v": 10, "d": "Times ceil(log256(exponent)) for the EXP instruction." }, 17 | 18 | "sha3Gas": { "v": 30, "d": "Once per SHA3 operation." }, 19 | "sha3WordGas": { "v": 6, "d": "Once per word of the SHA3 operation's data." }, 20 | "sloadGas": { "v": 50, "d": "Once per SLOAD operation." }, 21 | "sstoreSetGas": { "v": 20000, "d": "Once per SSTORE operation if the zeroness changes from zero." }, 22 | "sstoreResetGas": { "v": 5000, "d": "Once per SSTORE operation if the zeroness does not change from zero." }, 23 | "sstoreRefundGas": { "v": 15000, "d": "Once per SSTORE operation if the zeroness changes to zero." }, 24 | "jumpdestGas": { "v": 1, "d": "Refunded gas, once per SSTORE operation if the zeroness changes to zero." }, 25 | 26 | "logGas": { "v": 375, "d": "Per LOG* operation." }, 27 | "logDataGas": { "v": 8, "d": "Per byte in a LOG* operation's data." }, 28 | "logTopicGas": { "v": 375, "d": "Multiplied by the * of the LOG*, per LOG transaction. e.g. LOG0 incurs 0 * c_txLogTopicGas, LOG4 incurs 4 * c_txLogTopicGas." }, 29 | 30 | "createGas": { "v": 32000, "d": "Once per CREATE operation & contract-creation transaction." }, 31 | 32 | "callGas": { "v": 40, "d": "Once per CALL operation & message call transaction." }, 33 | "callStipend": { "v": 2300, "d": "Free gas given at beginning of call." }, 34 | "callValueTransferGas": { "v": 9000, "d": "Paid for CALL when the value transfor is non-zero." }, 35 | "callNewAccountGas": { "v": 25000, "d": "Paid for CALL when the destination address didn't exist prior." }, 36 | 37 | "suicideRefundGas": { "v": 24000, "d": "Refunded following a suicide operation." }, 38 | 39 | "memoryGas": { "v": 3, "d": "Times the address of the (highest referenced byte in memory + 1). NOTE: referencing happens on read, write and in instructions such as RETURN and CALL." }, 40 | "quadCoeffDiv": { "v": 512, "d": "Divisor for the quadratic particle of the memory cost equation." }, 41 | 42 | "createDataGas": { "v": 200, "d": "" }, 43 | "txGas": { "v": 21000, "d": "Per transaction. NOTE: Not payable on data of calls between transactions." }, 44 | "txDataZeroGas": { "v": 4, "d": "Per byte of data attached to a transaction that equals zero. NOTE: Not payable on data of calls between transactions." }, 45 | "txDataNonZeroGas": { "v": 68, "d": "Per byte of data attached to a transaction that is not equal to zero. NOTE: Not payable on data of calls between transactions." }, 46 | 47 | "copyGas": { "v": 3, "d": "Multiplied by the number of 32-byte words that are copied (round up) for any *COPY operation and added." }, 48 | 49 | "ecrecoverGas": { "v": 3000, "d": "" }, 50 | "sha256Gas": { "v": 60, "d": "" }, 51 | "sha256WordGas": { "v": 12, "d": "" }, 52 | "ripemd160Gas": { "v": 600, "d": "" }, 53 | "ripemd160WordGas": { "v": 120, "d": "" }, 54 | "identityGas": { "v": 15, "d": "" }, 55 | "identityWordGas": { "v": 3, "d": ""} 56 | } 57 | 58 | --------------------------------------------------------------------------------