Class: PunksV1
- Inherits:
-
Ethlite::Contract
- Object
- Ethlite::Contract
- PunksV1
- Defined in:
- lib/ethlite/contracts/punks_v1.rb
Instance Method Summary collapse
-
#balanceOf(arg0) ⇒ Object
storage - mapping (address => uint256) public balanceOf.
-
#decimals ⇒ Object
storage - uint8 public decimals.
-
#imageHash ⇒ Object
storage - string public imageHash.
-
#name ⇒ Object
storage - string public name.
-
#nextPunkIndexToAssign ⇒ Object
storage - uint public nextPunkIndexToAssign.
-
#numberOfPunksReserved ⇒ Object
storage - uint public numberOfPunksReserved.
-
#numberOfPunksToReserve ⇒ Object
storage - uint public numberOfPunksToReserve.
-
#pendingWithdrawals(arg0) ⇒ Object
storage - mapping (address => uint) public pendingWithdrawals.
-
#punkIndexToAddress(arg0) ⇒ Object
storage - mapping (uint => address) public punkIndexToAddress.
-
#punksOfferedForSale(arg0) ⇒ Object
storage - mapping (uint => Offer) public punksOfferedForSale.
-
#punksRemainingToAssign ⇒ Object
storage - uint public punksRemainingToAssign.
-
#standard ⇒ Object
storage - string public standard.
-
#symbol ⇒ Object
storage - string public symbol.
-
#totalSupply ⇒ Object
storage - uint256 public totalSupply.
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 |
#decimals ⇒ Object
storage - uint8 public decimals
59 60 61 |
# File 'lib/ethlite/contracts/punks_v1.rb', line 59 def decimals() do_call("decimals") end |
#imageHash ⇒ Object
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 |
#name ⇒ Object
storage - string public name
37 38 39 |
# File 'lib/ethlite/contracts/punks_v1.rb', line 37 def name() do_call("name") end |
#nextPunkIndexToAssign ⇒ Object
storage - uint public nextPunkIndexToAssign
74 75 76 |
# File 'lib/ethlite/contracts/punks_v1.rb', line 74 def nextPunkIndexToAssign() do_call("nextPunkIndexToAssign") end |
#numberOfPunksReserved ⇒ Object
storage - uint public numberOfPunksReserved
117 118 119 |
# File 'lib/ethlite/contracts/punks_v1.rb', line 117 def numberOfPunksReserved() do_call("numberOfPunksReserved") end |
#numberOfPunksToReserve ⇒ Object
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 |
#punksRemainingToAssign ⇒ Object
storage - uint public punksRemainingToAssign
124 125 126 |
# File 'lib/ethlite/contracts/punks_v1.rb', line 124 def punksRemainingToAssign() do_call("punksRemainingToAssign") end |
#standard ⇒ Object
storage - string public standard
88 89 90 |
# File 'lib/ethlite/contracts/punks_v1.rb', line 88 def standard() do_call("standard") end |
#symbol ⇒ Object
storage - string public symbol
103 104 105 |
# File 'lib/ethlite/contracts/punks_v1.rb', line 103 def symbol() do_call("symbol") end |
#totalSupply ⇒ Object
storage - uint256 public totalSupply
52 53 54 |
# File 'lib/ethlite/contracts/punks_v1.rb', line 52 def totalSupply() do_call("totalSupply") end |