class EthereumContractABI::ContractInterface::AbiTypes::BaseType
Public Class Methods
from_string(string_type)
click to toggle source
# File lib/ethereum-contract-abi/contract/abi_types/base_type.rb, line 25 def self.from_string(string_type) raise NotImplementedError.new('from_string not implemented on type') end
Public Instance Methods
bytesize()
click to toggle source
# File lib/ethereum-contract-abi/contract/abi_types/base_type.rb, line 13 def bytesize 32 end
decode_value(value)
click to toggle source
# File lib/ethereum-contract-abi/contract/abi_types/base_type.rb, line 21 def decode_value(value) raise NotImplementedError.new('decode_value not implemented on type') end
encode_value(value)
click to toggle source
# File lib/ethereum-contract-abi/contract/abi_types/base_type.rb, line 17 def encode_value(value) raise NotImplementedError.new('encode_value not implemented on type') end
is_dynamic()
click to toggle source
# File lib/ethereum-contract-abi/contract/abi_types/base_type.rb, line 9 def is_dynamic true end
is_type_equal(type)
click to toggle source
# File lib/ethereum-contract-abi/contract/abi_types/base_type.rb, line 29 def is_type_equal(type) to_s == type.to_s end
to_s()
click to toggle source
# File lib/ethereum-contract-abi/contract/abi_types/base_type.rb, line 5 def to_s raise NotImplementedError.new('to_s not implemented on type') end