class EthereumContractABI::ContractInterface::EIP::ERC165Interface

Public Class Methods

functions() click to toggle source
# File lib/ethereum-contract-abi/contract/eip/erc165_interface.rb, line 17
def self.functions
  [self.supportsInterface]
end
is_implemented_by?(contract) click to toggle source
# File lib/ethereum-contract-abi/contract/eip/erc165_interface.rb, line 13
def self.is_implemented_by?(contract)
  contract.has_function?(self.supportsInterface)
end
supportsInterface() click to toggle source
# File lib/ethereum-contract-abi/contract/eip/erc165_interface.rb, line 21
def self.supportsInterface
  function_name = 'supportsInterface'
  inputs = [Input.new( 'interfaceID', AbiTypes::Bytes.new(4))]
  outputs = [Output.new(AbiTypes::Bool.new)]
  Function.new(function_name, inputs, outputs)
end