Class: NounsDescriptorV2
- Inherits:
-
Ethlite::Contract
- Object
- Ethlite::Contract
- NounsDescriptorV2
- Defined in:
- lib/ethlite/contracts/nouns_descriptor_v2.rb
Instance Method Summary collapse
-
#accessories(index) ⇒ Object
function accessories(uint256 index) ⇒ (bytes _) readonly.
-
#accessoryCount ⇒ Object
function accessoryCount() ⇒ (uint256 _) readonly.
-
#arePartsLocked ⇒ Object
function arePartsLocked() ⇒ (bool _) readonly.
-
#art ⇒ Object
function art() ⇒ (contract INounsArt _) readonly.
-
#backgroundCount ⇒ Object
function backgroundCount() ⇒ (uint256 _) readonly.
-
#backgrounds(index) ⇒ Object
function backgrounds(uint256 index) ⇒ (string _) readonly.
-
#baseURI ⇒ Object
function baseURI() ⇒ (string _) readonly.
-
#bodies(index) ⇒ Object
function bodies(uint256 index) ⇒ (bytes _) readonly.
-
#bodyCount ⇒ Object
function bodyCount() ⇒ (uint256 _) readonly.
-
#dataURI(tokenId, seed) ⇒ Object
function dataURI(uint256 tokenId, struct INounsSeeder.Seed seed) ⇒ (string _) readonly.
-
#generateSVGImage(seed) ⇒ Object
function generateSVGImage(struct INounsSeeder.Seed seed) ⇒ (string _) readonly.
-
#genericDataURI(name, description, seed) ⇒ Object
function genericDataURI(string name, string description, struct INounsSeeder.Seed seed) ⇒ (string _) readonly.
-
#getPartsForSeed(seed) ⇒ Object
function getPartsForSeed(struct INounsSeeder.Seed seed) ⇒ (struct ISVGRenderer.Part[] _) readonly.
-
#glasses(index) ⇒ Object
function glasses(uint256 index) ⇒ (bytes _) readonly.
-
#glassesCount ⇒ Object
function glassesCount() ⇒ (uint256 _) readonly.
-
#headCount ⇒ Object
function headCount() ⇒ (uint256 _) readonly.
-
#heads(index) ⇒ Object
function heads(uint256 index) ⇒ (bytes _) readonly.
-
#isDataURIEnabled ⇒ Object
function isDataURIEnabled() ⇒ (bool _) readonly.
-
#owner ⇒ Object
function owner() ⇒ (address _) readonly.
-
#palettes(index) ⇒ Object
function palettes(uint8 index) ⇒ (bytes _) readonly.
-
#renderer ⇒ Object
function renderer() ⇒ (contract ISVGRenderer _) readonly.
-
#tokenURI(tokenId, seed) ⇒ Object
function tokenURI(uint256 tokenId, struct INounsSeeder.Seed seed) ⇒ (string _) readonly.
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
#accessories(index) ⇒ Object
function accessories(uint256 index) ⇒ (bytes _) readonly
13 14 15 |
# File 'lib/ethlite/contracts/nouns_descriptor_v2.rb', line 13 def accessories(index) do_call("accessories", index) end |
#accessoryCount ⇒ Object
function accessoryCount() ⇒ (uint256 _) readonly
19 20 21 |
# File 'lib/ethlite/contracts/nouns_descriptor_v2.rb', line 19 def accessoryCount() do_call("accessoryCount") end |
#arePartsLocked ⇒ Object
function arePartsLocked() ⇒ (bool _) readonly
25 26 27 |
# File 'lib/ethlite/contracts/nouns_descriptor_v2.rb', line 25 def arePartsLocked() do_call("arePartsLocked") end |
#art ⇒ Object
function art() ⇒ (contract INounsArt _) readonly
31 32 33 |
# File 'lib/ethlite/contracts/nouns_descriptor_v2.rb', line 31 def art() do_call("art") end |
#backgroundCount ⇒ Object
function backgroundCount() ⇒ (uint256 _) readonly
37 38 39 |
# File 'lib/ethlite/contracts/nouns_descriptor_v2.rb', line 37 def backgroundCount() do_call("backgroundCount") end |
#backgrounds(index) ⇒ Object
function backgrounds(uint256 index) ⇒ (string _) readonly
43 44 45 |
# File 'lib/ethlite/contracts/nouns_descriptor_v2.rb', line 43 def backgrounds(index) do_call("backgrounds", index) end |
#baseURI ⇒ Object
function baseURI() ⇒ (string _) readonly
49 50 51 |
# File 'lib/ethlite/contracts/nouns_descriptor_v2.rb', line 49 def baseURI() do_call("baseURI") end |
#bodies(index) ⇒ Object
function bodies(uint256 index) ⇒ (bytes _) readonly
55 56 57 |
# File 'lib/ethlite/contracts/nouns_descriptor_v2.rb', line 55 def bodies(index) do_call("bodies", index) end |
#bodyCount ⇒ Object
function bodyCount() ⇒ (uint256 _) readonly
61 62 63 |
# File 'lib/ethlite/contracts/nouns_descriptor_v2.rb', line 61 def bodyCount() do_call("bodyCount") end |
#dataURI(tokenId, seed) ⇒ Object
function dataURI(uint256 tokenId, struct INounsSeeder.Seed seed) ⇒ (string _) readonly
67 68 69 |
# File 'lib/ethlite/contracts/nouns_descriptor_v2.rb', line 67 def dataURI(tokenId, seed) do_call("dataURI", tokenId, seed) end |
#generateSVGImage(seed) ⇒ Object
function generateSVGImage(struct INounsSeeder.Seed seed) ⇒ (string _) readonly
73 74 75 |
# File 'lib/ethlite/contracts/nouns_descriptor_v2.rb', line 73 def generateSVGImage(seed) do_call("generateSVGImage", seed) end |
#genericDataURI(name, description, seed) ⇒ Object
function genericDataURI(string name, string description, struct INounsSeeder.Seed seed) ⇒ (string _) readonly
79 80 81 |
# File 'lib/ethlite/contracts/nouns_descriptor_v2.rb', line 79 def genericDataURI(name, description, seed) do_call("genericDataURI", name, description, seed) end |
#getPartsForSeed(seed) ⇒ Object
function getPartsForSeed(struct INounsSeeder.Seed seed) ⇒ (struct ISVGRenderer.Part[] _) readonly
85 86 87 |
# File 'lib/ethlite/contracts/nouns_descriptor_v2.rb', line 85 def getPartsForSeed(seed) do_call("getPartsForSeed", seed) end |
#glasses(index) ⇒ Object
function glasses(uint256 index) ⇒ (bytes _) readonly
91 92 93 |
# File 'lib/ethlite/contracts/nouns_descriptor_v2.rb', line 91 def glasses(index) do_call("glasses", index) end |
#glassesCount ⇒ Object
function glassesCount() ⇒ (uint256 _) readonly
97 98 99 |
# File 'lib/ethlite/contracts/nouns_descriptor_v2.rb', line 97 def glassesCount() do_call("glassesCount") end |
#headCount ⇒ Object
function headCount() ⇒ (uint256 _) readonly
103 104 105 |
# File 'lib/ethlite/contracts/nouns_descriptor_v2.rb', line 103 def headCount() do_call("headCount") end |
#heads(index) ⇒ Object
function heads(uint256 index) ⇒ (bytes _) readonly
109 110 111 |
# File 'lib/ethlite/contracts/nouns_descriptor_v2.rb', line 109 def heads(index) do_call("heads", index) end |
#isDataURIEnabled ⇒ Object
function isDataURIEnabled() ⇒ (bool _) readonly
115 116 117 |
# File 'lib/ethlite/contracts/nouns_descriptor_v2.rb', line 115 def isDataURIEnabled() do_call("isDataURIEnabled") end |
#owner ⇒ Object
function owner() ⇒ (address _) readonly
121 122 123 |
# File 'lib/ethlite/contracts/nouns_descriptor_v2.rb', line 121 def owner() do_call("owner") end |
#palettes(index) ⇒ Object
function palettes(uint8 index) ⇒ (bytes _) readonly
127 128 129 |
# File 'lib/ethlite/contracts/nouns_descriptor_v2.rb', line 127 def palettes(index) do_call("palettes", index) end |
#renderer ⇒ Object
function renderer() ⇒ (contract ISVGRenderer _) readonly
133 134 135 |
# File 'lib/ethlite/contracts/nouns_descriptor_v2.rb', line 133 def renderer() do_call("renderer") end |
#tokenURI(tokenId, seed) ⇒ Object
function tokenURI(uint256 tokenId, struct INounsSeeder.Seed seed) ⇒ (string _) readonly
139 140 141 |
# File 'lib/ethlite/contracts/nouns_descriptor_v2.rb', line 139 def tokenURI(tokenId, seed) do_call("tokenURI", tokenId, seed) end |