Class: EvmTxInput::Function

Inherits:
Object
  • Object
show all
Defined in:
lib/evm_tx_input/function.rb

Overview

Represent decoded smart contract function call

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id, name, arguments = []) ⇒ Function

Returns a new instance of Function.



12
13
14
15
16
# File 'lib/evm_tx_input/function.rb', line 12

def initialize(id, name, arguments = [])
  @id = id
  @name = name
  @arguments = arguments
end

Instance Attribute Details

#argumentsArray<EvmTxInput::Argument> (readonly)

a list of function arguments

Returns:



9
10
11
# File 'lib/evm_tx_input/function.rb', line 9

def arguments
  @arguments
end

#idString (readonly)

first 8 symbols of transaction input data

Returns:

  • (String)

    the current value of id



9
10
11
# File 'lib/evm_tx_input/function.rb', line 9

def id
  @id
end

#nameString (readonly)

name of smart contract function

Returns:

  • (String)

    the current value of name



9
10
11
# File 'lib/evm_tx_input/function.rb', line 9

def name
  @name
end