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


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

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

#decimalsObject

storage - uint8 public decimals



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

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


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

def imageHash()
  do_call("imageHash")
end

#nameObject

storage - string public name



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

def name()
  do_call("name")
end

#nextPunkIndexToAssignObject

storage - uint public nextPunkIndexToAssign



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

def nextPunkIndexToAssign()
  do_call("nextPunkIndexToAssign")
end

#numberOfPunksReservedObject

storage - uint public numberOfPunksReserved



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

def numberOfPunksReserved()
  do_call("numberOfPunksReserved")
end

#numberOfPunksToReserveObject

storage - uint public numberOfPunksToReserve



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

def numberOfPunksToReserve()
  do_call("numberOfPunksToReserve")
end

#pendingWithdrawals(arg0) ⇒ Object

storage - mapping (address => uint) public pendingWithdrawals



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

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

#punkIndexToAddress(arg0) ⇒ Object

storage - mapping (uint => address) public punkIndexToAddress



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

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


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

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

#punksRemainingToAssignObject

storage - uint public punksRemainingToAssign



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

def punksRemainingToAssign()
  do_call("punksRemainingToAssign")
end

#standardObject

storage - string public standard



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

def standard()
  do_call("standard")
end

#symbolObject

storage - string public symbol



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

def symbol()
  do_call("symbol")
end

#totalSupplyObject

storage - uint256 public totalSupply



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

def totalSupply()
  do_call("totalSupply")
end