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
97 98 99 |
# File 'lib/ethlite/contracts/punks_v1.rb', line 97 def balanceOf(arg0) do_call("balanceOf", arg0) end |
#decimals ⇒ Object
storage - uint8 public decimals
60 61 62 |
# File 'lib/ethlite/contracts/punks_v1.rb', line 60 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
68 69 70 |
# File 'lib/ethlite/contracts/punks_v1.rb', line 68 def imageHash() do_call("imageHash") end |
#name ⇒ Object
storage - string public name
38 39 40 |
# File 'lib/ethlite/contracts/punks_v1.rb', line 38 def name() do_call("name") end |
#nextPunkIndexToAssign ⇒ Object
storage - uint public nextPunkIndexToAssign
75 76 77 |
# File 'lib/ethlite/contracts/punks_v1.rb', line 75 def nextPunkIndexToAssign() do_call("nextPunkIndexToAssign") end |
#numberOfPunksReserved ⇒ Object
storage - uint public numberOfPunksReserved
118 119 120 |
# File 'lib/ethlite/contracts/punks_v1.rb', line 118 def numberOfPunksReserved() do_call("numberOfPunksReserved") end |
#numberOfPunksToReserve ⇒ Object
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 |
#punksRemainingToAssign ⇒ Object
storage - uint public punksRemainingToAssign
125 126 127 |
# File 'lib/ethlite/contracts/punks_v1.rb', line 125 def punksRemainingToAssign() do_call("punksRemainingToAssign") end |
#standard ⇒ Object
storage - string public standard
89 90 91 |
# File 'lib/ethlite/contracts/punks_v1.rb', line 89 def standard() do_call("standard") end |
#symbol ⇒ Object
storage - string public symbol
104 105 106 |
# File 'lib/ethlite/contracts/punks_v1.rb', line 104 def symbol() do_call("symbol") end |
#totalSupply ⇒ Object
storage - uint256 public totalSupply
53 54 55 |
# File 'lib/ethlite/contracts/punks_v1.rb', line 53 def totalSupply() do_call("totalSupply") end |