Class: SynthPunks

Inherits:
Ethlite::Contract show all
Defined in:
lib/ethlite/contracts/synth_punks.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

#_getAttributes(_address) ⇒ Object

function _getAttributes(address _address) ⇒ (uint256[] _) readonly



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

def _getAttributes(_address)
  do_call("_getAttributes", _address)
end

#_tokenURI(_address) ⇒ Object

function _tokenURI(address _address) ⇒ (string _) readonly



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

def _tokenURI(_address)
  do_call("_tokenURI", _address)
end

#assetsObject

function assets() ⇒ (contract ISyntheticPunksAssets _) readonly



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

def assets()
  do_call("assets")
end

#balanceOf(arg0) ⇒ Object

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



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

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

#claimed(arg0) ⇒ Object

function claimed(address _) ⇒ (bool _) readonly



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

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

#claimMessageObject

function claimMessage() ⇒ (string _) readonly



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

def claimMessage()
  do_call("claimMessage")
end

#claimPriceObject

function claimPrice() ⇒ (uint256 _) readonly



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

def claimPrice()
  do_call("claimPrice")
end

#generatePunkSVG(layers) ⇒ Object

function generatePunkSVG(uint256[] layers) ⇒ (string _) readonly



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

def generatePunkSVG(layers)
  do_call("generatePunkSVG", layers)
end

#getAddress(id) ⇒ Object

function getAddress(uint256 id) ⇒ (address _) readonly



134
135
136
# File 'lib/ethlite/contracts/synth_punks.rb', line 134

def getAddress(id)
  do_call("getAddress", id)
end

#getApproved(arg0) ⇒ Object

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



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

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

#getAttribute(id, _attributeId) ⇒ Object

function getAttribute(uint256 id, uint256 _attributeId) ⇒ (uint256 _) readonly



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

def getAttribute(id, _attributeId)
  do_call("getAttribute", id, _attributeId)
end

#getAttributeCategories(id) ⇒ Object

function getAttributeCategories(uint256 id) ⇒ (uint256[] _) readonly



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

def getAttributeCategories(id)
  do_call("getAttributeCategories", id)
end

#getAttributes(id) ⇒ Object

function getAttributes(uint256 id) ⇒ (uint256[] _) readonly



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

def getAttributes(id)
  do_call("getAttributes", id)
end

#getEthSignedMessageHash(_messageHash) ⇒ Object

function getEthSignedMessageHash(bytes32 _messageHash) ⇒ (bytes32 _) readonly



140
141
142
# File 'lib/ethlite/contracts/synth_punks.rb', line 140

def getEthSignedMessageHash(_messageHash)
  do_call("getEthSignedMessageHash", _messageHash)
end

#getGender(id) ⇒ Object

function getGender(uint256 id) ⇒ (enum SyntheticPunks.Gender _) readonly



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

def getGender(id)
  do_call("getGender", id)
end

#getMessageHash(_message) ⇒ Object

function getMessageHash(string _message) ⇒ (bytes32 _) readonly



146
147
148
# File 'lib/ethlite/contracts/synth_punks.rb', line 146

def getMessageHash(_message)
  do_call("getMessageHash", _message)
end

#getTokenID(_address) ⇒ Object

function getTokenID(address _address) ⇒ (uint256 _) readonly



152
153
154
# File 'lib/ethlite/contracts/synth_punks.rb', line 152

def getTokenID(_address)
  do_call("getTokenID", _address)
end

#isApprovedForAll(arg0, arg1) ⇒ Object

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



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

def isApprovedForAll(arg0, arg1)
  do_call("isApprovedForAll", arg0, arg1)
end

#nameObject

function name() ⇒ (string _) readonly



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

def name()
  do_call("name")
end

#ownerOf(arg0) ⇒ Object

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



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

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

#randomUint(seed, offset) ⇒ Object

function randomUint(uint256 seed, uint256 offset) ⇒ (uint256 _) readonly



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

def randomUint(seed, offset)
  do_call("randomUint", seed, offset)
end

#recoverSigner(_ethSignedMessageHash, _signature) ⇒ Object

function recoverSigner(bytes32 _ethSignedMessageHash, bytes _signature) ⇒ (address _) readonly



158
159
160
# File 'lib/ethlite/contracts/synth_punks.rb', line 158

def recoverSigner(_ethSignedMessageHash, _signature)
  do_call("recoverSigner", _ethSignedMessageHash, _signature)
end

#splitSignature(sig) ⇒ Object

function splitSignature(bytes sig) ⇒ (bytes32 r, bytes32 s, uint8 v) readonly



164
165
166
# File 'lib/ethlite/contracts/synth_punks.rb', line 164

def splitSignature(sig)
  do_call("splitSignature", sig)
end

#supportsInterface(interfaceId) ⇒ Object

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



170
171
172
# File 'lib/ethlite/contracts/synth_punks.rb', line 170

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

#symbolObject

function symbol() ⇒ (string _) readonly



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

def symbol()
  do_call("symbol")
end

#tokenURI(id) ⇒ Object

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



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

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

#verify(_signer, _message, signature) ⇒ Object

function verify(address _signer, string _message, bytes signature) ⇒ (bool _) readonly



176
177
178
# File 'lib/ethlite/contracts/synth_punks.rb', line 176

def verify(_signer, _message, signature)
  do_call("verify", _signer, _message, signature)
end

#withdrawAddressObject

function withdrawAddress() ⇒ (address _) readonly



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

def withdrawAddress()
  do_call("withdrawAddress")
end