Class: PhunksV2

Inherits:
Ethlite::Contract show all
Defined in:
lib/ethlite/contracts/phunks_v2.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(owner) ⇒ Object

function balanceOf(address owner) ⇒ (uint256 _) readonly



19
20
21
# File 'lib/ethlite/contracts/phunks_v2.rb', line 19

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

#contractURIObject

function contractURI() ⇒ (string _) readonly



25
26
27
# File 'lib/ethlite/contracts/phunks_v2.rb', line 25

def contractURI()
  do_call("contractURI")
end

#freeRollPhunks(arg0) ⇒ Object

function freeRollPhunks(address _) ⇒ (uint256 _) readonly



31
32
33
# File 'lib/ethlite/contracts/phunks_v2.rb', line 31

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

#getApproved(tokenId) ⇒ Object

function getApproved(uint256 tokenId) ⇒ (address _) readonly



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

def getApproved(tokenId)
  do_call("getApproved", tokenId)
end

#getCostForMintingPhunks(_numToMint) ⇒ Object

function getCostForMintingPhunks(uint256 _numToMint) ⇒ (uint256 _) readonly



43
44
45
# File 'lib/ethlite/contracts/phunks_v2.rb', line 43

def getCostForMintingPhunks(_numToMint)
  do_call("getCostForMintingPhunks", _numToMint)
end

#getNumFreeRollPhunks(owner) ⇒ Object

function getNumFreeRollPhunks(address owner) ⇒ (uint256 _) readonly



49
50
51
# File 'lib/ethlite/contracts/phunks_v2.rb', line 49

def getNumFreeRollPhunks(owner)
  do_call("getNumFreeRollPhunks", owner)
end

#getPhunksBelongingToOwner(_owner) ⇒ Object

function getPhunksBelongingToOwner(address _owner) ⇒ (uint256[] _) readonly



55
56
57
# File 'lib/ethlite/contracts/phunks_v2.rb', line 55

def getPhunksBelongingToOwner(_owner)
  do_call("getPhunksBelongingToOwner", _owner)
end

#imageHashObject

function imageHash() ⇒ (string _) readonly



61
62
63
# File 'lib/ethlite/contracts/phunks_v2.rb', line 61

def imageHash()
  do_call("imageHash")
end

#isApprovedForAll(owner, operator) ⇒ Object

function isApprovedForAll(address owner, address operator) ⇒ (bool _) readonly



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

def isApprovedForAll(owner, operator)
  do_call("isApprovedForAll", owner, operator)
end

#isSaleOnObject

function isSaleOn() ⇒ (bool _) readonly



73
74
75
# File 'lib/ethlite/contracts/phunks_v2.rb', line 73

def isSaleOn()
  do_call("isSaleOn")
end

#MAX_MINTABLE_AT_ONCEObject

function MAX_MINTABLE_AT_ONCE() ⇒ (uint256 _) readonly



13
14
15
# File 'lib/ethlite/contracts/phunks_v2.rb', line 13

def MAX_MINTABLE_AT_ONCE()
  do_call("MAX_MINTABLE_AT_ONCE")
end

#nameObject

function name() ⇒ (string _) readonly



79
80
81
# File 'lib/ethlite/contracts/phunks_v2.rb', line 79

def name()
  do_call("name")
end

#numTotalPhunksObject

function numTotalPhunks() ⇒ (uint256 _) readonly



85
86
87
# File 'lib/ethlite/contracts/phunks_v2.rb', line 85

def numTotalPhunks()
  do_call("numTotalPhunks")
end

#ownerObject

function owner() ⇒ (address _) readonly



91
92
93
# File 'lib/ethlite/contracts/phunks_v2.rb', line 91

def owner()
  do_call("owner")
end

#ownerOf(tokenId) ⇒ Object

function ownerOf(uint256 tokenId) ⇒ (address _) readonly



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

def ownerOf(tokenId)
  do_call("ownerOf", tokenId)
end

#saleHasBeenStartedObject

function saleHasBeenStarted() ⇒ (bool _) readonly



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

def saleHasBeenStarted()
  do_call("saleHasBeenStarted")
end

#supportsInterface(interfaceId) ⇒ Object

function supportsInterface(bytes4 interfaceId) ⇒ (bool _) readonly



109
110
111
# File 'lib/ethlite/contracts/phunks_v2.rb', line 109

def supportsInterface(interfaceId)
  do_call("supportsInterface", interfaceId)
end

#symbolObject

function symbol() ⇒ (string _) readonly



115
116
117
# File 'lib/ethlite/contracts/phunks_v2.rb', line 115

def symbol()
  do_call("symbol")
end

#tokenByIndex(index) ⇒ Object

function tokenByIndex(uint256 index) ⇒ (uint256 _) readonly



121
122
123
# File 'lib/ethlite/contracts/phunks_v2.rb', line 121

def tokenByIndex(index)
  do_call("tokenByIndex", index)
end

#tokenOfOwnerByIndex(owner, index) ⇒ Object

function tokenOfOwnerByIndex(address owner, uint256 index) ⇒ (uint256 _) readonly



127
128
129
# File 'lib/ethlite/contracts/phunks_v2.rb', line 127

def tokenOfOwnerByIndex(owner, index)
  do_call("tokenOfOwnerByIndex", owner, index)
end

#tokenURI(_tokenId) ⇒ Object

function tokenURI(uint256 _tokenId) ⇒ (string _) readonly



133
134
135
# File 'lib/ethlite/contracts/phunks_v2.rb', line 133

def tokenURI(_tokenId)
  do_call("tokenURI", _tokenId)
end

#totalSupplyObject

function totalSupply() ⇒ (uint256 _) readonly



139
140
141
# File 'lib/ethlite/contracts/phunks_v2.rb', line 139

def totalSupply()
  do_call("totalSupply")
end