class EthereumContractABI::ContractInterface::EIP::ERC721EnumerableInterface

Public Class Methods

functions() click to toggle source
# File lib/ethereum-contract-abi/contract/eip/erc721_enumerable_interface.rb, line 40
def self.functions
  [self.totalSupply, self.tokenByIndex, self.tokenOfOwnerByIndex]
end
is_implemented_by?(contract) click to toggle source
# File lib/ethereum-contract-abi/contract/eip/erc721_enumerable_interface.rb, line 13
def self.is_implemented_by?(contract)
  contract.has_function?(self.totalSupply) &&
    contract.has_function?(self.tokenByIndex) &&
    contract.has_function?(self.tokenOfOwnerByIndex)
end
tokenByIndex() click to toggle source
# File lib/ethereum-contract-abi/contract/eip/erc721_enumerable_interface.rb, line 26
def self.tokenByIndex
  function_name = 'tokenByIndex'
  inputs = [Input.new('_index', AbiTypes::Uint.new)]
  outputs = [Output.new(AbiTypes::Uint.new)]
  Function.new(function_name, inputs, outputs)
end
tokenOfOwnerByIndex() click to toggle source
# File lib/ethereum-contract-abi/contract/eip/erc721_enumerable_interface.rb, line 33
def self.tokenOfOwnerByIndex
  function_name = 'tokenOfOwnerByIndex'
  inputs = [Input.new('_owner', AbiTypes::Address.new), Input.new('_index', AbiTypes::Uint.new)]
  outputs = [Output.new(AbiTypes::Uint.new)]
  Function.new(function_name, inputs, outputs)
end
totalSupply() click to toggle source
# File lib/ethereum-contract-abi/contract/eip/erc721_enumerable_interface.rb, line 19
def self.totalSupply
  function_name = 'totalSupply'
  inputs = []
  outputs = [Output.new(AbiTypes::Uint.new)]
  Function.new(function_name, inputs, outputs)
end