Class: PunksV1

Inherits:
Ethlite::Contract show all
Defined in:
lib/ethlite/contracts/punks_v1.rb

Instance Method Summary collapse

Methods inherited from Ethlite::Contract

address, at, default_address, #do_call, #initialize, methods, sig

Constructor Details

This class inherits a constructor from Ethlite::Contract

Instance Method Details

#balanceOf(arg0) ⇒ Object

storage - mapping (address => uint256) public balanceOf

This creates an array with all balances


96
97
98
# File 'lib/ethlite/contracts/punks_v1.rb', line 96

def balanceOf(arg0)
  do_call("balanceOf", arg0)
end

#decimalsObject

storage - uint8 public decimals



59
60
61
# File 'lib/ethlite/contracts/punks_v1.rb', line 59

def decimals()
  do_call("decimals")
end

#imageHashObject

storage - string public imageHash

You can use this hash to verify the image file containing all the punks


67
68
69
# File 'lib/ethlite/contracts/punks_v1.rb', line 67

def imageHash()
  do_call("imageHash")
end

#nameObject

storage - string public name



37
38
39
# File 'lib/ethlite/contracts/punks_v1.rb', line 37

def name()
  do_call("name")
end

#nextPunkIndexToAssignObject

storage - uint public nextPunkIndexToAssign



74
75
76
# File 'lib/ethlite/contracts/punks_v1.rb', line 74

def nextPunkIndexToAssign()
  do_call("nextPunkIndexToAssign")
end

#numberOfPunksReservedObject

storage - uint public numberOfPunksReserved



117
118
119
# File 'lib/ethlite/contracts/punks_v1.rb', line 117

def numberOfPunksReserved()
  do_call("numberOfPunksReserved")
end

#numberOfPunksToReserveObject

storage - uint public numberOfPunksToReserve



110
111
112
# File 'lib/ethlite/contracts/punks_v1.rb', line 110

def numberOfPunksToReserve()
  do_call("numberOfPunksToReserve")
end

#pendingWithdrawals(arg0) ⇒ Object

storage - mapping (address => uint) public pendingWithdrawals



131
132
133
# File 'lib/ethlite/contracts/punks_v1.rb', line 131

def pendingWithdrawals(arg0)
  do_call("pendingWithdrawals", arg0)
end

#punkIndexToAddress(arg0) ⇒ Object

storage - mapping (uint => address) public punkIndexToAddress



81
82
83
# File 'lib/ethlite/contracts/punks_v1.rb', line 81

def punkIndexToAddress(arg0)
  do_call("punkIndexToAddress", arg0)
end

#punksOfferedForSale(arg0) ⇒ Object

storage - mapping (uint => Offer) public punksOfferedForSale

A record of punks that are offered for sale at a specific minimum value, and perhaps to a specific person


45
46
47
# File 'lib/ethlite/contracts/punks_v1.rb', line 45

def punksOfferedForSale(arg0)
  do_call("punksOfferedForSale", arg0)
end

#punksRemainingToAssignObject

storage - uint public punksRemainingToAssign



124
125
126
# File 'lib/ethlite/contracts/punks_v1.rb', line 124

def punksRemainingToAssign()
  do_call("punksRemainingToAssign")
end

#standardObject

storage - string public standard



88
89
90
# File 'lib/ethlite/contracts/punks_v1.rb', line 88

def standard()
  do_call("standard")
end

#symbolObject

storage - string public symbol



103
104
105
# File 'lib/ethlite/contracts/punks_v1.rb', line 103

def symbol()
  do_call("symbol")
end

#totalSupplyObject

storage - uint256 public totalSupply



52
53
54
# File 'lib/ethlite/contracts/punks_v1.rb', line 52

def totalSupply()
  do_call("totalSupply")
end