|
| 1 | +######################### |
| 2 | +# PunkBlocks contract / (blockchain) services / function calls |
| 3 | +# auto-generated via abigen (see https://rubygems.org/gems/abigen) on 2023-01-09 17:48:57 UTC |
| 4 | +# - 8 query functions(s) |
| 5 | + |
| 6 | +class PunkBlocks < Ethlite::Contract |
| 7 | + |
| 8 | + address "0x58e90596c2065befd3060767736c829c18f3474c" |
| 9 | + |
| 10 | +# function **blocks**(bytes32 _) ⇒ (enum PunkBlocks.Layer layer, bytes dataMale, bytes dataFemale) _readonly_ |
| 11 | +sig "blocks", inputs: ["bytes32"], outputs: ["uint8","bytes","bytes"] |
| 12 | +def blocks(arg0) |
| 13 | + do_call("blocks", arg0) |
| 14 | +end |
| 15 | + |
| 16 | +# function **getBlocks**(uint256 _fromID, uint256 _count) ⇒ (struct PunkBlocks.Block[] _, uint256 _) _readonly_ |
| 17 | +sig "getBlocks", inputs: ["uint256","uint256"], outputs: ["(uint8,bytes,bytes)[]","uint256"] |
| 18 | +def getBlocks(_fromID, _count) |
| 19 | + do_call("getBlocks", _fromID, _count) |
| 20 | +end |
| 21 | + |
| 22 | +# function **index**(uint256 _) ⇒ (bytes32 _) _readonly_ |
| 23 | +sig "index", inputs: ["uint256"], outputs: ["bytes32"] |
| 24 | +def index(arg0) |
| 25 | + do_call("index", arg0) |
| 26 | +end |
| 27 | + |
| 28 | +# function **nextId**() ⇒ (uint256 _) _readonly_ |
| 29 | +sig "nextId", outputs: ["uint256"] |
| 30 | +def nextId() |
| 31 | + do_call("nextId") |
| 32 | +end |
| 33 | + |
| 34 | +# function **svgFromIDs**(uint256[] _ids) ⇒ (string _) _readonly_ |
| 35 | +sig "svgFromIDs", inputs: ["uint256[]"], outputs: ["string"] |
| 36 | +def svgFromIDs(_ids) |
| 37 | + do_call("svgFromIDs", _ids) |
| 38 | +end |
| 39 | + |
| 40 | +# function **svgFromKeys**(bytes32[] _attributeKeys) ⇒ (string _) _readonly_ |
| 41 | +sig "svgFromKeys", inputs: ["bytes32[]"], outputs: ["string"] |
| 42 | +def svgFromKeys(_attributeKeys) |
| 43 | + do_call("svgFromKeys", _attributeKeys) |
| 44 | +end |
| 45 | + |
| 46 | +# function **svgFromNames**(string[] _attributeNames) ⇒ (string _) _readonly_ |
| 47 | +sig "svgFromNames", inputs: ["string[]"], outputs: ["string"] |
| 48 | +def svgFromNames(_attributeNames) |
| 49 | + do_call("svgFromNames", _attributeNames) |
| 50 | +end |
| 51 | + |
| 52 | +# function **svgFromPunkID**(uint256 _tokenID) ⇒ (string _) _readonly_ |
| 53 | +sig "svgFromPunkID", inputs: ["uint256"], outputs: ["string"] |
| 54 | +def svgFromPunkID(_tokenID) |
| 55 | + do_call("svgFromPunkID", _tokenID) |
| 56 | +end |
| 57 | + |
| 58 | +end ## class PunkBlocks |
| 59 | + |
0 commit comments