Formatting
This commit is contained in:
parent
2f8f0ac4cf
commit
68723201a7
@ -113,31 +113,31 @@ impl InstructionInfo {
|
||||
pub fn get_info (instruction: Instruction) -> InstructionInfo {
|
||||
match instruction {
|
||||
STOP => InstructionInfo::new("STOP", 0, 0, 0, true, GasPriceTier::ZeroTier),
|
||||
ADD => InstructionInfo::new("ADD", 0, 2, 1, false, GasPriceTier::VeryLowTier),
|
||||
SUB => InstructionInfo::new("SUB", 0, 2, 1, false, GasPriceTier::VeryLowTier),
|
||||
MUL => InstructionInfo::new("MUL", 0, 2, 1, false, GasPriceTier::LowTier),
|
||||
DIV => InstructionInfo::new("DIV", 0, 2, 1, false, GasPriceTier::LowTier),
|
||||
ADD => InstructionInfo::new("ADD", 0, 2, 1, false, GasPriceTier::VeryLowTier),
|
||||
SUB => InstructionInfo::new("SUB", 0, 2, 1, false, GasPriceTier::VeryLowTier),
|
||||
MUL => InstructionInfo::new("MUL", 0, 2, 1, false, GasPriceTier::LowTier),
|
||||
DIV => InstructionInfo::new("DIV", 0, 2, 1, false, GasPriceTier::LowTier),
|
||||
SDIV => InstructionInfo::new("SDIV", 0, 2, 1, false, GasPriceTier::LowTier),
|
||||
MOD => InstructionInfo::new("MOD", 0, 2, 1, false, GasPriceTier::LowTier),
|
||||
MOD => InstructionInfo::new("MOD", 0, 2, 1, false, GasPriceTier::LowTier),
|
||||
SMOD => InstructionInfo::new("SMOD", 0, 2, 1, false, GasPriceTier::LowTier),
|
||||
EXP => InstructionInfo::new("EXP", 0, 2, 1, false, GasPriceTier::SpecialTier),
|
||||
NOT => InstructionInfo::new("NOT", 0, 1, 1, false, GasPriceTier::VeryLowTier),
|
||||
EXP => InstructionInfo::new("EXP", 0, 2, 1, false, GasPriceTier::SpecialTier),
|
||||
NOT => InstructionInfo::new("NOT", 0, 1, 1, false, GasPriceTier::VeryLowTier),
|
||||
LT => InstructionInfo::new("LT", 0, 2, 1, false, GasPriceTier::VeryLowTier),
|
||||
GT => InstructionInfo::new("GT", 0, 2, 1, false, GasPriceTier::VeryLowTier),
|
||||
SLT => InstructionInfo::new("SLT", 0, 2, 1, false, GasPriceTier::VeryLowTier),
|
||||
SGT => InstructionInfo::new("SGT", 0, 2, 1, false, GasPriceTier::VeryLowTier),
|
||||
SLT => InstructionInfo::new("SLT", 0, 2, 1, false, GasPriceTier::VeryLowTier),
|
||||
SGT => InstructionInfo::new("SGT", 0, 2, 1, false, GasPriceTier::VeryLowTier),
|
||||
EQ => InstructionInfo::new("EQ", 0, 2, 1, false, GasPriceTier::VeryLowTier),
|
||||
ISZERO => InstructionInfo::new("ISZERO", 0, 1, 1, false, GasPriceTier::VeryLowTier),
|
||||
AND => InstructionInfo::new("AND", 0, 2, 1, false, GasPriceTier::VeryLowTier),
|
||||
AND => InstructionInfo::new("AND", 0, 2, 1, false, GasPriceTier::VeryLowTier),
|
||||
OR => InstructionInfo::new("OR", 0, 2, 1, false, GasPriceTier::VeryLowTier),
|
||||
XOR => InstructionInfo::new("XOR", 0, 2, 1, false, GasPriceTier::VeryLowTier),
|
||||
XOR => InstructionInfo::new("XOR", 0, 2, 1, false, GasPriceTier::VeryLowTier),
|
||||
BYTE => InstructionInfo::new("BYTE", 0, 2, 1, false, GasPriceTier::VeryLowTier),
|
||||
ADDMOD => InstructionInfo::new("ADDMOD", 0, 3, 1, false, GasPriceTier::MidTier),
|
||||
MULMOD => InstructionInfo::new("MULMOD", 0, 3, 1, false, GasPriceTier::MidTier),
|
||||
SIGNEXTEND => InstructionInfo::new("SIGNEXTEND", 0, 2, 1, false, GasPriceTier::LowTier),
|
||||
SHA3 => InstructionInfo::new("SHA3", 0, 2, 1, false, GasPriceTier::SpecialTier),
|
||||
ADDRESS => InstructionInfo::new("ADDRESS", 0, 0, 1, false, GasPriceTier::BaseTier),
|
||||
BALANCE => InstructionInfo::new("BALANCE", 0, 1, 1, false, GasPriceTier::ExtTier),
|
||||
ADDRESS => InstructionInfo::new("ADDRESS", 0, 0, 1, false, GasPriceTier::BaseTier),
|
||||
BALANCE => InstructionInfo::new("BALANCE", 0, 1, 1, false, GasPriceTier::ExtTier),
|
||||
ORIGIN => InstructionInfo::new("ORIGIN", 0, 0, 1, false, GasPriceTier::BaseTier),
|
||||
CALLER => InstructionInfo::new("CALLER", 0, 0, 1, false, GasPriceTier::BaseTier),
|
||||
CALLVALUE => InstructionInfo::new("CALLVALUE", 0, 0, 1, false, GasPriceTier::BaseTier),
|
||||
@ -147,25 +147,25 @@ pub fn get_info (instruction: Instruction) -> InstructionInfo {
|
||||
CODESIZE => InstructionInfo::new("CODESIZE", 0, 0, 1, false, GasPriceTier::BaseTier),
|
||||
CODECOPY => InstructionInfo::new("CODECOPY", 0, 3, 0, true, GasPriceTier::VeryLowTier),
|
||||
GASPRICE => InstructionInfo::new("GASPRICE", 0, 0, 1, false, GasPriceTier::BaseTier),
|
||||
EXTCODESIZE => InstructionInfo::new("EXTCODESIZE", 0, 1, 1, false, GasPriceTier::ExtTier),
|
||||
EXTCODECOPY => InstructionInfo::new("EXTCODECOPY", 0, 4, 0, true, GasPriceTier::ExtTier),
|
||||
EXTCODESIZE => InstructionInfo::new("EXTCODESIZE", 0, 1, 1, false, GasPriceTier::ExtTier),
|
||||
EXTCODECOPY => InstructionInfo::new("EXTCODECOPY", 0, 4, 0, true, GasPriceTier::ExtTier),
|
||||
BLOCKHASH => InstructionInfo::new("BLOCKHASH", 0, 1, 1, false, GasPriceTier::ExtTier),
|
||||
COINBASE => InstructionInfo::new("COINBASE", 0, 0, 1, false, GasPriceTier::BaseTier),
|
||||
TIMESTAMP => InstructionInfo::new("TIMESTAMP", 0, 0, 1, false, GasPriceTier::BaseTier),
|
||||
NUMBER => InstructionInfo::new("NUMBER", 0, 0, 1, false, GasPriceTier::BaseTier),
|
||||
DIFFICULTY => InstructionInfo::new("DIFFICULTY", 0, 0, 1, false, GasPriceTier::BaseTier),
|
||||
GASLIMIT => InstructionInfo::new("GASLIMIT", 0, 0, 1, false, GasPriceTier::BaseTier),
|
||||
POP => InstructionInfo::new("POP", 0, 1, 0, false, GasPriceTier::BaseTier),
|
||||
POP => InstructionInfo::new("POP", 0, 1, 0, false, GasPriceTier::BaseTier),
|
||||
MLOAD => InstructionInfo::new("MLOAD", 0, 1, 1, false, GasPriceTier::VeryLowTier),
|
||||
MSTORE => InstructionInfo::new("MSTORE", 0, 2, 0, true, GasPriceTier::VeryLowTier),
|
||||
MSTORE8 => InstructionInfo::new("MSTORE8", 0, 2, 0, true, GasPriceTier::VeryLowTier),
|
||||
MSTORE8 => InstructionInfo::new("MSTORE8", 0, 2, 0, true, GasPriceTier::VeryLowTier),
|
||||
SLOAD => InstructionInfo::new("SLOAD", 0, 1, 1, false, GasPriceTier::SpecialTier),
|
||||
SSTORE => InstructionInfo::new("SSTORE", 0, 2, 0, true, GasPriceTier::SpecialTier),
|
||||
JUMP => InstructionInfo::new("JUMP", 0, 1, 0, true, GasPriceTier::MidTier),
|
||||
JUMPI => InstructionInfo::new("JUMPI", 0, 2, 0, true, GasPriceTier::HighTier),
|
||||
PC => InstructionInfo::new("PC", 0, 0, 1, false, GasPriceTier::BaseTier),
|
||||
MSIZE => InstructionInfo::new("MSIZE", 0, 0, 1, false, GasPriceTier::BaseTier),
|
||||
GAS => InstructionInfo::new("GAS", 0, 0, 1, false, GasPriceTier::BaseTier),
|
||||
GAS => InstructionInfo::new("GAS", 0, 0, 1, false, GasPriceTier::BaseTier),
|
||||
JUMPDEST => InstructionInfo::new("JUMPDEST", 0, 0, 0, true, GasPriceTier::SpecialTier),
|
||||
PUSH1 => InstructionInfo::new("PUSH1", 1, 0, 1, false, GasPriceTier::VeryLowTier),
|
||||
PUSH2 => InstructionInfo::new("PUSH2", 2, 0, 1, false, GasPriceTier::VeryLowTier),
|
||||
@ -241,7 +241,7 @@ pub fn get_info (instruction: Instruction) -> InstructionInfo {
|
||||
CALLCODE => InstructionInfo::new("CALLCODE", 0, 7, 1, true, GasPriceTier::SpecialTier),
|
||||
RETURN => InstructionInfo::new("RETURN", 0, 2, 0, true, GasPriceTier::ZeroTier),
|
||||
DELEGATECALL => InstructionInfo::new("DELEGATECALL", 0, 6, 1, true, GasPriceTier::SpecialTier),
|
||||
SUICIDE => InstructionInfo::new("SUICIDE", 0, 1, 0, true, GasPriceTier::ZeroTier),
|
||||
SUICIDE => InstructionInfo::new("SUICIDE", 0, 1, 0, true, GasPriceTier::ZeroTier),
|
||||
_ => panic!(format!("Undefined instruction: {}", instruction))
|
||||
}
|
||||
}
|
||||
@ -249,142 +249,142 @@ pub fn get_info (instruction: Instruction) -> InstructionInfo {
|
||||
// Virtual machine bytecode instruction.
|
||||
pub const STOP: Instruction = 0x00; //< halts execution
|
||||
pub const ADD: Instruction = 0x01; //< addition operation
|
||||
pub const MUL: Instruction = 0x02; //< mulitplication operation
|
||||
pub const SUB: Instruction = 0x03; //< subtraction operation
|
||||
pub const DIV: Instruction = 0x04; //< integer division operation
|
||||
pub const SDIV: Instruction = 0x05; //< signed integer division operation
|
||||
pub const MOD: Instruction = 0x06; //< modulo remainder operation
|
||||
pub const SMOD: Instruction = 0x07; //< signed modulo remainder operation
|
||||
pub const ADDMOD: Instruction = 0x08; //< unsigned modular addition
|
||||
pub const MULMOD: Instruction = 0x09; //< unsigned modular multiplication
|
||||
pub const EXP: Instruction = 0x0a; //< exponential operation
|
||||
pub const SIGNEXTEND: Instruction = 0x0b; //< extend length of signed integer
|
||||
pub const MUL: Instruction = 0x02; //< mulitplication operation
|
||||
pub const SUB: Instruction = 0x03; //< subtraction operation
|
||||
pub const DIV: Instruction = 0x04; //< integer division operation
|
||||
pub const SDIV: Instruction = 0x05; //< signed integer division operation
|
||||
pub const MOD: Instruction = 0x06; //< modulo remainder operation
|
||||
pub const SMOD: Instruction = 0x07; //< signed modulo remainder operation
|
||||
pub const ADDMOD: Instruction = 0x08; //< unsigned modular addition
|
||||
pub const MULMOD: Instruction = 0x09; //< unsigned modular multiplication
|
||||
pub const EXP: Instruction = 0x0a; //< exponential operation
|
||||
pub const SIGNEXTEND: Instruction = 0x0b; //< extend length of signed integer
|
||||
|
||||
pub const LT: Instruction = 0x10; //< less-than comparision
|
||||
pub const GT: Instruction = 0x11; //< greater-than comparision
|
||||
pub const SLT: Instruction = 0x12; //< signed less-than comparision
|
||||
pub const SGT: Instruction = 0x13; //< signed greater-than comparision
|
||||
pub const EQ: Instruction = 0x14; //< equality comparision
|
||||
pub const ISZERO: Instruction = 0x15; //< simple not operator
|
||||
pub const AND: Instruction = 0x16; //< bitwise AND operation
|
||||
pub const OR: Instruction = 0x17; //< bitwise OR operation
|
||||
pub const XOR: Instruction = 0x18; //< bitwise XOR operation
|
||||
pub const NOT: Instruction = 0x19; //< bitwise NOT opertation
|
||||
pub const BYTE: Instruction = 0x1a; //< retrieve single byte from word
|
||||
pub const LT: Instruction = 0x10; //< less-than comparision
|
||||
pub const GT: Instruction = 0x11; //< greater-than comparision
|
||||
pub const SLT: Instruction = 0x12; //< signed less-than comparision
|
||||
pub const SGT: Instruction = 0x13; //< signed greater-than comparision
|
||||
pub const EQ: Instruction = 0x14; //< equality comparision
|
||||
pub const ISZERO: Instruction = 0x15; //< simple not operator
|
||||
pub const AND: Instruction = 0x16; //< bitwise AND operation
|
||||
pub const OR: Instruction = 0x17; //< bitwise OR operation
|
||||
pub const XOR: Instruction = 0x18; //< bitwise XOR operation
|
||||
pub const NOT: Instruction = 0x19; //< bitwise NOT opertation
|
||||
pub const BYTE: Instruction = 0x1a; //< retrieve single byte from word
|
||||
|
||||
pub const SHA3: Instruction = 0x20; //< compute SHA3-256 hash
|
||||
pub const SHA3: Instruction = 0x20; //< compute SHA3-256 hash
|
||||
|
||||
pub const ADDRESS: Instruction = 0x30; //< get address of currently executing account
|
||||
pub const BALANCE: Instruction = 0x31; //< get balance of the given account
|
||||
pub const ORIGIN: Instruction = 0x32; //< get execution origination address
|
||||
pub const CALLER: Instruction = 0x33; //< get caller address
|
||||
pub const CALLVALUE: Instruction = 0x34; //< get deposited value by the instruction/transaction responsible for this execution
|
||||
pub const CALLDATALOAD: Instruction = 0x35; //< get input data of current environment
|
||||
pub const CALLDATASIZE: Instruction = 0x36; //< get size of input data in current environment
|
||||
pub const CALLDATACOPY: Instruction = 0x37; //< copy input data in current environment to memory
|
||||
pub const CODESIZE: Instruction = 0x38; //< get size of code running in current environment
|
||||
pub const CODECOPY: Instruction = 0x39; //< copy code running in current environment to memory
|
||||
pub const GASPRICE: Instruction = 0x3a; //< get price of gas in current environment
|
||||
pub const EXTCODESIZE: Instruction = 0x3b; //< get external code size (from another contract)
|
||||
pub const EXTCODECOPY: Instruction = 0x3c; //< copy external code (from another contract)
|
||||
pub const ADDRESS: Instruction = 0x30; //< get address of currently executing account
|
||||
pub const BALANCE: Instruction = 0x31; //< get balance of the given account
|
||||
pub const ORIGIN: Instruction = 0x32; //< get execution origination address
|
||||
pub const CALLER: Instruction = 0x33; //< get caller address
|
||||
pub const CALLVALUE: Instruction = 0x34; //< get deposited value by the instruction/transaction responsible for this execution
|
||||
pub const CALLDATALOAD: Instruction = 0x35; //< get input data of current environment
|
||||
pub const CALLDATASIZE: Instruction = 0x36; //< get size of input data in current environment
|
||||
pub const CALLDATACOPY: Instruction = 0x37; //< copy input data in current environment to memory
|
||||
pub const CODESIZE: Instruction = 0x38; //< get size of code running in current environment
|
||||
pub const CODECOPY: Instruction = 0x39; //< copy code running in current environment to memory
|
||||
pub const GASPRICE: Instruction = 0x3a; //< get price of gas in current environment
|
||||
pub const EXTCODESIZE: Instruction = 0x3b; //< get external code size (from another contract)
|
||||
pub const EXTCODECOPY: Instruction = 0x3c; //< copy external code (from another contract)
|
||||
|
||||
pub const BLOCKHASH: Instruction = 0x40; //< get hash of most recent complete block
|
||||
pub const COINBASE: Instruction = 0x41; //< get the block's coinbase address
|
||||
pub const TIMESTAMP: Instruction = 0x42; //< get the block's timestamp
|
||||
pub const NUMBER: Instruction = 0x43; //< get the block's number
|
||||
pub const DIFFICULTY: Instruction = 0x44; //< get the block's difficulty
|
||||
pub const GASLIMIT: Instruction = 0x45; //< get the block's gas limit
|
||||
pub const BLOCKHASH: Instruction = 0x40; //< get hash of most recent complete block
|
||||
pub const COINBASE: Instruction = 0x41; //< get the block's coinbase address
|
||||
pub const TIMESTAMP: Instruction = 0x42; //< get the block's timestamp
|
||||
pub const NUMBER: Instruction = 0x43; //< get the block's number
|
||||
pub const DIFFICULTY: Instruction = 0x44; //< get the block's difficulty
|
||||
pub const GASLIMIT: Instruction = 0x45; //< get the block's gas limit
|
||||
|
||||
pub const POP: Instruction = 0x50; //< remove item from stack
|
||||
pub const MLOAD: Instruction = 0x51; //< load word from memory
|
||||
pub const MSTORE: Instruction = 0x52; //< save word to memory
|
||||
pub const MSTORE8: Instruction = 0x53; //< save byte to memory
|
||||
pub const SLOAD: Instruction = 0x54; //< load word from storage
|
||||
pub const SSTORE: Instruction = 0x55; //< save word to storage
|
||||
pub const JUMP: Instruction = 0x56; //< alter the program counter
|
||||
pub const JUMPI: Instruction = 0x57; //< conditionally alter the program counter
|
||||
pub const PC: Instruction = 0x58; //< get the program counter
|
||||
pub const MSIZE: Instruction = 0x59; //< get the size of active memory
|
||||
pub const GAS: Instruction = 0x5a; //< get the amount of available gas
|
||||
pub const JUMPDEST: Instruction = 0x5b; //< set a potential jump destination
|
||||
pub const POP: Instruction = 0x50; //< remove item from stack
|
||||
pub const MLOAD: Instruction = 0x51; //< load word from memory
|
||||
pub const MSTORE: Instruction = 0x52; //< save word to memory
|
||||
pub const MSTORE8: Instruction = 0x53; //< save byte to memory
|
||||
pub const SLOAD: Instruction = 0x54; //< load word from storage
|
||||
pub const SSTORE: Instruction = 0x55; //< save word to storage
|
||||
pub const JUMP: Instruction = 0x56; //< alter the program counter
|
||||
pub const JUMPI: Instruction = 0x57; //< conditionally alter the program counter
|
||||
pub const PC: Instruction = 0x58; //< get the program counter
|
||||
pub const MSIZE: Instruction = 0x59; //< get the size of active memory
|
||||
pub const GAS: Instruction = 0x5a; //< get the amount of available gas
|
||||
pub const JUMPDEST: Instruction = 0x5b; //< set a potential jump destination
|
||||
|
||||
pub const PUSH1: Instruction = 0x60; //< place 1 byte item on stack
|
||||
pub const PUSH2: Instruction = 0x61; //< place 2 byte item on stack
|
||||
pub const PUSH3: Instruction = 0x62; //< place 3 byte item on stack
|
||||
pub const PUSH4: Instruction = 0x63; //< place 4 byte item on stack
|
||||
pub const PUSH5: Instruction = 0x64; //< place 5 byte item on stack
|
||||
pub const PUSH6: Instruction = 0x65; //< place 6 byte item on stack
|
||||
pub const PUSH7: Instruction = 0x66; //< place 7 byte item on stack
|
||||
pub const PUSH8: Instruction = 0x67; //< place 8 byte item on stack
|
||||
pub const PUSH9: Instruction = 0x68; //< place 9 byte item on stack
|
||||
pub const PUSH10: Instruction = 0x69; //< place 10 byte item on stack
|
||||
pub const PUSH11: Instruction = 0x6a; //< place 11 byte item on stack
|
||||
pub const PUSH12: Instruction = 0x6b; //< place 12 byte item on stack
|
||||
pub const PUSH13: Instruction = 0x6c; //< place 13 byte item on stack
|
||||
pub const PUSH14: Instruction = 0x6d; //< place 14 byte item on stack
|
||||
pub const PUSH15: Instruction = 0x6e; //< place 15 byte item on stack
|
||||
pub const PUSH16: Instruction = 0x6f; //< place 16 byte item on stack
|
||||
pub const PUSH17: Instruction = 0x70; //< place 17 byte item on stack
|
||||
pub const PUSH18: Instruction = 0x71; //< place 18 byte item on stack
|
||||
pub const PUSH19: Instruction = 0x72; //< place 19 byte item on stack
|
||||
pub const PUSH20: Instruction = 0x73; //< place 20 byte item on stack
|
||||
pub const PUSH21: Instruction = 0x74; //< place 21 byte item on stack
|
||||
pub const PUSH22: Instruction = 0x75; //< place 22 byte item on stack
|
||||
pub const PUSH23: Instruction = 0x76; //< place 23 byte item on stack
|
||||
pub const PUSH24: Instruction = 0x77; //< place 24 byte item on stack
|
||||
pub const PUSH25: Instruction = 0x78; //< place 25 byte item on stack
|
||||
pub const PUSH26: Instruction = 0x79; //< place 26 byte item on stack
|
||||
pub const PUSH27: Instruction = 0x7a; //< place 27 byte item on stack
|
||||
pub const PUSH28: Instruction = 0x7b; //< place 28 byte item on stack
|
||||
pub const PUSH29: Instruction = 0x7c; //< place 29 byte item on stack
|
||||
pub const PUSH30: Instruction = 0x7d; //< place 30 byte item on stack
|
||||
pub const PUSH31: Instruction = 0x7e; //< place 31 byte item on stack
|
||||
pub const PUSH32: Instruction = 0x7f; //< place 32 byte item on stack
|
||||
pub const PUSH1: Instruction = 0x60; //< place 1 byte item on stack
|
||||
pub const PUSH2: Instruction = 0x61; //< place 2 byte item on stack
|
||||
pub const PUSH3: Instruction = 0x62; //< place 3 byte item on stack
|
||||
pub const PUSH4: Instruction = 0x63; //< place 4 byte item on stack
|
||||
pub const PUSH5: Instruction = 0x64; //< place 5 byte item on stack
|
||||
pub const PUSH6: Instruction = 0x65; //< place 6 byte item on stack
|
||||
pub const PUSH7: Instruction = 0x66; //< place 7 byte item on stack
|
||||
pub const PUSH8: Instruction = 0x67; //< place 8 byte item on stack
|
||||
pub const PUSH9: Instruction = 0x68; //< place 9 byte item on stack
|
||||
pub const PUSH10: Instruction = 0x69; //< place 10 byte item on stack
|
||||
pub const PUSH11: Instruction = 0x6a; //< place 11 byte item on stack
|
||||
pub const PUSH12: Instruction = 0x6b; //< place 12 byte item on stack
|
||||
pub const PUSH13: Instruction = 0x6c; //< place 13 byte item on stack
|
||||
pub const PUSH14: Instruction = 0x6d; //< place 14 byte item on stack
|
||||
pub const PUSH15: Instruction = 0x6e; //< place 15 byte item on stack
|
||||
pub const PUSH16: Instruction = 0x6f; //< place 16 byte item on stack
|
||||
pub const PUSH17: Instruction = 0x70; //< place 17 byte item on stack
|
||||
pub const PUSH18: Instruction = 0x71; //< place 18 byte item on stack
|
||||
pub const PUSH19: Instruction = 0x72; //< place 19 byte item on stack
|
||||
pub const PUSH20: Instruction = 0x73; //< place 20 byte item on stack
|
||||
pub const PUSH21: Instruction = 0x74; //< place 21 byte item on stack
|
||||
pub const PUSH22: Instruction = 0x75; //< place 22 byte item on stack
|
||||
pub const PUSH23: Instruction = 0x76; //< place 23 byte item on stack
|
||||
pub const PUSH24: Instruction = 0x77; //< place 24 byte item on stack
|
||||
pub const PUSH25: Instruction = 0x78; //< place 25 byte item on stack
|
||||
pub const PUSH26: Instruction = 0x79; //< place 26 byte item on stack
|
||||
pub const PUSH27: Instruction = 0x7a; //< place 27 byte item on stack
|
||||
pub const PUSH28: Instruction = 0x7b; //< place 28 byte item on stack
|
||||
pub const PUSH29: Instruction = 0x7c; //< place 29 byte item on stack
|
||||
pub const PUSH30: Instruction = 0x7d; //< place 30 byte item on stack
|
||||
pub const PUSH31: Instruction = 0x7e; //< place 31 byte item on stack
|
||||
pub const PUSH32: Instruction = 0x7f; //< place 32 byte item on stack
|
||||
|
||||
pub const DUP1: Instruction = 0x80; //< copies the highest item in the stack to the top of the stack
|
||||
pub const DUP2: Instruction = 0x81; //< copies the second highest item in the stack to the top of the stack
|
||||
pub const DUP3: Instruction = 0x82; //< copies the third highest item in the stack to the top of the stack
|
||||
pub const DUP4: Instruction = 0x83; //< copies the 4th highest item in the stack to the top of the stack
|
||||
pub const DUP5: Instruction = 0x84; //< copies the 5th highest item in the stack to the top of the stack
|
||||
pub const DUP6: Instruction = 0x85; //< copies the 6th highest item in the stack to the top of the stack
|
||||
pub const DUP7: Instruction = 0x86; //< copies the 7th highest item in the stack to the top of the stack
|
||||
pub const DUP8: Instruction = 0x87; //< copies the 8th highest item in the stack to the top of the stack
|
||||
pub const DUP9: Instruction = 0x88; //< copies the 9th highest item in the stack to the top of the stack
|
||||
pub const DUP10: Instruction = 0x89; //< copies the 10th highest item in the stack to the top of the stack
|
||||
pub const DUP11: Instruction = 0x8a; //< copies the 11th highest item in the stack to the top of the stack
|
||||
pub const DUP12: Instruction = 0x8b; //< copies the 12th highest item in the stack to the top of the stack
|
||||
pub const DUP13: Instruction = 0x8c; //< copies the 13th highest item in the stack to the top of the stack
|
||||
pub const DUP14: Instruction = 0x8d; //< copies the 14th highest item in the stack to the top of the stack
|
||||
pub const DUP15: Instruction = 0x8e; //< copies the 15th highest item in the stack to the top of the stack
|
||||
pub const DUP16: Instruction = 0x8f; //< copies the 16th highest item in the stack to the top of the stack
|
||||
pub const DUP1: Instruction = 0x80; //< copies the highest item in the stack to the top of the stack
|
||||
pub const DUP2: Instruction = 0x81; //< copies the second highest item in the stack to the top of the stack
|
||||
pub const DUP3: Instruction = 0x82; //< copies the third highest item in the stack to the top of the stack
|
||||
pub const DUP4: Instruction = 0x83; //< copies the 4th highest item in the stack to the top of the stack
|
||||
pub const DUP5: Instruction = 0x84; //< copies the 5th highest item in the stack to the top of the stack
|
||||
pub const DUP6: Instruction = 0x85; //< copies the 6th highest item in the stack to the top of the stack
|
||||
pub const DUP7: Instruction = 0x86; //< copies the 7th highest item in the stack to the top of the stack
|
||||
pub const DUP8: Instruction = 0x87; //< copies the 8th highest item in the stack to the top of the stack
|
||||
pub const DUP9: Instruction = 0x88; //< copies the 9th highest item in the stack to the top of the stack
|
||||
pub const DUP10: Instruction = 0x89; //< copies the 10th highest item in the stack to the top of the stack
|
||||
pub const DUP11: Instruction = 0x8a; //< copies the 11th highest item in the stack to the top of the stack
|
||||
pub const DUP12: Instruction = 0x8b; //< copies the 12th highest item in the stack to the top of the stack
|
||||
pub const DUP13: Instruction = 0x8c; //< copies the 13th highest item in the stack to the top of the stack
|
||||
pub const DUP14: Instruction = 0x8d; //< copies the 14th highest item in the stack to the top of the stack
|
||||
pub const DUP15: Instruction = 0x8e; //< copies the 15th highest item in the stack to the top of the stack
|
||||
pub const DUP16: Instruction = 0x8f; //< copies the 16th highest item in the stack to the top of the stack
|
||||
|
||||
pub const SWAP1: Instruction = 0x90; //< swaps the highest and second highest value on the stack
|
||||
pub const SWAP2: Instruction = 0x91; //< swaps the highest and third highest value on the stack
|
||||
pub const SWAP3: Instruction = 0x92; //< swaps the highest and 4th highest value on the stack
|
||||
pub const SWAP4: Instruction = 0x93; //< swaps the highest and 5th highest value on the stack
|
||||
pub const SWAP5: Instruction = 0x94; //< swaps the highest and 6th highest value on the stack
|
||||
pub const SWAP6: Instruction = 0x95; //< swaps the highest and 7th highest value on the stack
|
||||
pub const SWAP7: Instruction = 0x96; //< swaps the highest and 8th highest value on the stack
|
||||
pub const SWAP8: Instruction = 0x97; //< swaps the highest and 9th highest value on the stack
|
||||
pub const SWAP9: Instruction = 0x98; //< swaps the highest and 10th highest value on the stack
|
||||
pub const SWAP10: Instruction = 0x99; //< swaps the highest and 11th highest value on the stack
|
||||
pub const SWAP11: Instruction = 0x9a; //< swaps the highest and 12th highest value on the stack
|
||||
pub const SWAP12: Instruction = 0x9b; //< swaps the highest and 13th highest value on the stack
|
||||
pub const SWAP13: Instruction = 0x9c; //< swaps the highest and 14th highest value on the stack
|
||||
pub const SWAP14: Instruction = 0x9d; //< swaps the highest and 15th highest value on the stack
|
||||
pub const SWAP15: Instruction = 0x9e; //< swaps the highest and 16th highest value on the stack
|
||||
pub const SWAP16: Instruction = 0x9f; //< swaps the highest and 17th highest value on the stack
|
||||
pub const SWAP1: Instruction = 0x90; //< swaps the highest and second highest value on the stack
|
||||
pub const SWAP2: Instruction = 0x91; //< swaps the highest and third highest value on the stack
|
||||
pub const SWAP3: Instruction = 0x92; //< swaps the highest and 4th highest value on the stack
|
||||
pub const SWAP4: Instruction = 0x93; //< swaps the highest and 5th highest value on the stack
|
||||
pub const SWAP5: Instruction = 0x94; //< swaps the highest and 6th highest value on the stack
|
||||
pub const SWAP6: Instruction = 0x95; //< swaps the highest and 7th highest value on the stack
|
||||
pub const SWAP7: Instruction = 0x96; //< swaps the highest and 8th highest value on the stack
|
||||
pub const SWAP8: Instruction = 0x97; //< swaps the highest and 9th highest value on the stack
|
||||
pub const SWAP9: Instruction = 0x98; //< swaps the highest and 10th highest value on the stack
|
||||
pub const SWAP10: Instruction = 0x99; //< swaps the highest and 11th highest value on the stack
|
||||
pub const SWAP11: Instruction = 0x9a; //< swaps the highest and 12th highest value on the stack
|
||||
pub const SWAP12: Instruction = 0x9b; //< swaps the highest and 13th highest value on the stack
|
||||
pub const SWAP13: Instruction = 0x9c; //< swaps the highest and 14th highest value on the stack
|
||||
pub const SWAP14: Instruction = 0x9d; //< swaps the highest and 15th highest value on the stack
|
||||
pub const SWAP15: Instruction = 0x9e; //< swaps the highest and 16th highest value on the stack
|
||||
pub const SWAP16: Instruction = 0x9f; //< swaps the highest and 17th highest value on the stack
|
||||
|
||||
pub const LOG0: Instruction = 0xa0; //< Makes a log entry; no topics.
|
||||
pub const LOG1: Instruction = 0xa1; //< Makes a log entry; 1 topic.
|
||||
pub const LOG2: Instruction = 0xa2; //< Makes a log entry; 2 topics.
|
||||
pub const LOG3: Instruction = 0xa3; //< Makes a log entry; 3 topics.
|
||||
pub const LOG4: Instruction = 0xa4; //< Makes a log entry; 4 topics.
|
||||
pub const LOG0: Instruction = 0xa0; //< Makes a log entry; no topics.
|
||||
pub const LOG1: Instruction = 0xa1; //< Makes a log entry; 1 topic.
|
||||
pub const LOG2: Instruction = 0xa2; //< Makes a log entry; 2 topics.
|
||||
pub const LOG3: Instruction = 0xa3; //< Makes a log entry; 3 topics.
|
||||
pub const LOG4: Instruction = 0xa4; //< Makes a log entry; 4 topics.
|
||||
|
||||
pub const CREATE: Instruction = 0xf0; //< create a new account with associated code
|
||||
pub const CALL: Instruction = 0xf1; //< message-call into an account
|
||||
pub const CALLCODE: Instruction = 0xf2; //< message-call with another account's code only
|
||||
pub const RETURN: Instruction = 0xf3; //< halt execution returning output data
|
||||
pub const DELEGATECALL: Instruction = 0xf4; //< like CALLCODE but keeps caller's value and sender
|
||||
pub const SUICIDE: Instruction = 0xff; //< halt execution and register account for later deletion
|
||||
pub const CREATE: Instruction = 0xf0; //< create a new account with associated code
|
||||
pub const CALL: Instruction = 0xf1; //< message-call into an account
|
||||
pub const CALLCODE: Instruction = 0xf2; //< message-call with another account's code only
|
||||
pub const RETURN: Instruction = 0xf3; //< halt execution returning output data
|
||||
pub const DELEGATECALL: Instruction = 0xf4; //< like CALLCODE but keeps caller's value and sender
|
||||
pub const SUICIDE: Instruction = 0xff; //< halt execution and register account for later deletion
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user