Class: EvmTxInput::Function
- Inherits:
-
Object
- Object
- EvmTxInput::Function
- Defined in:
- lib/evm_tx_input/function.rb
Overview
Represent decoded smart contract function call
Instance Attribute Summary collapse
-
#arguments ⇒ Array<EvmTxInput::Argument>
readonly
a list of function arguments.
-
#id ⇒ String
readonly
first 8 symbols of transaction input data.
-
#name ⇒ String
readonly
name of smart contract function.
Instance Method Summary collapse
-
#initialize(id, name, arguments = []) ⇒ Function
constructor
A new instance of Function.
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
#arguments ⇒ Array<EvmTxInput::Argument> (readonly)
a list of function arguments
9 10 11 |
# File 'lib/evm_tx_input/function.rb', line 9 def arguments @arguments end |
#id ⇒ String (readonly)
first 8 symbols of transaction input data
9 10 11 |
# File 'lib/evm_tx_input/function.rb', line 9 def id @id end |
#name ⇒ String (readonly)
name of smart contract function
9 10 11 |
# File 'lib/evm_tx_input/function.rb', line 9 def name @name end |