class EthereumContractABI::ContractInterface::EIP::ERC721MetadataInterface

Public Class Methods

functions() click to toggle source
# File lib/ethereum-contract-abi/contract/eip/erc721_metadata_interface.rb, line 40
def self.functions
  [self.name, self.symbol, self.tokenURI]
end
is_implemented_by?(contract) click to toggle source
# File lib/ethereum-contract-abi/contract/eip/erc721_metadata_interface.rb, line 13
def self.is_implemented_by?(contract)
  contract.has_function?(self.name) &&
    contract.has_function?(self.symbol) &&
    contract.has_function?(self.tokenURI)
end
name() click to toggle source
# File lib/ethereum-contract-abi/contract/eip/erc721_metadata_interface.rb, line 19
def self.name
  function_name = 'name'
  inputs = []
  outputs = [Output.new(AbiTypes::String.new, '_name')]
  Function.new(function_name, inputs, outputs)
end
symbol() click to toggle source
# File lib/ethereum-contract-abi/contract/eip/erc721_metadata_interface.rb, line 26
def self.symbol
  function_name = 'symbol'
  inputs = []
  outputs = [Output.new(AbiTypes::String.new, '_symbol')]
  Function.new(function_name, inputs, outputs)
end
tokenURI() click to toggle source
# File lib/ethereum-contract-abi/contract/eip/erc721_metadata_interface.rb, line 33
def self.tokenURI
  function_name = 'tokenURI'
  inputs = [Input.new('_tokenId', AbiTypes::Uint.new)]
  outputs = [Output.new(AbiTypes::String.new)]
  Function.new(function_name, inputs, outputs)
end