cryptopunks 2.0.0 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -1,32 +1,40 @@
1
- require 'hoe'
2
- require './lib/cryptopunks/version.rb'
3
-
4
- Hoe.spec 'cryptopunks' do
5
-
6
- self.version = Cryptopunks::VERSION
7
-
8
- self.summary = "cryptopunks - mint your own 24×24 pixel punk images off chain from the True Official Genuine CryptoPunks™ sha256-verified original 10 000 unique character collection; incl. 2x/4x/8x zoom for bigger sizes"
9
- self.description = summary
10
-
11
- self.urls = { home: 'https://github.com/cryptopunksnotdead/cryptopunks' }
12
-
13
- self.author = 'Gerald Bauer'
14
- self.email = 'wwwmake@googlegroups.com'
15
-
16
- # switch extension to .markdown for gihub formatting
17
- self.readme_file = 'README.md'
18
- self.history_file = 'CHANGELOG.md'
19
-
20
- self.extra_deps = [
21
- ['pixelart'],
22
- ['csvreader'],
23
- ['gli'],
24
- ]
25
-
26
- self.licenses = ['Public Domain']
27
-
28
- self.spec_extras = {
29
- required_ruby_version: '>= 2.3'
30
- }
31
-
32
- end
1
+ require 'hoe'
2
+ require './lib/cryptopunks/version.rb'
3
+
4
+ ###
5
+ # hack/ quick fix for broken intuit_values - overwrite with dummy
6
+ class Hoe
7
+ def intuit_values( input ); end
8
+ end
9
+
10
+
11
+
12
+ Hoe.spec 'cryptopunks' do
13
+
14
+ self.version = Pixelart::Module::Cryptopunks::VERSION
15
+
16
+ self.summary = "cryptopunks - generate your own 24×24 pixel punk images (off-chain) from the Official Genuine Matt & John's® Punks sha256-verified original 10 000 unique character collection; incl. 2x/4x/8x zoom for bigger sizes"
17
+ self.description = summary
18
+
19
+ self.urls = { home: 'https://github.com/cryptopunksnotdead/cryptopunks' }
20
+
21
+ self.author = 'Gerald Bauer'
22
+ self.email = 'wwwmake@googlegroups.com'
23
+
24
+ # switch extension to .markdown for gihub formatting
25
+ self.readme_file = 'README.md'
26
+ self.history_file = 'CHANGELOG.md'
27
+
28
+ self.extra_deps = [
29
+ ['pixelart', '>= 1.3.2'],
30
+ ['punks', '>= 0.2.0'],
31
+ ['gli'],
32
+ ]
33
+
34
+ self.licenses = ['Public Domain']
35
+
36
+ self.spec_extras = {
37
+ required_ruby_version: '>= 2.3'
38
+ }
39
+
40
+ end
data/bin/cryptopunk CHANGED
@@ -1,17 +1,17 @@
1
- #!/usr/bin/env ruby
2
-
3
- ###################
4
- # == DEV TIPS:
5
- #
6
- # For local testing run like:
7
- #
8
- # ruby -Ilib bin/cryptopunk
9
- #
10
- # Set the executable bit in Linux. Example:
11
- #
12
- # % chmod a+x bin/cryptopunk
13
- #
14
-
15
- require 'cryptopunks'
16
-
17
- Cryptopunks.main
1
+ #!/usr/bin/env ruby
2
+
3
+ ###################
4
+ # == DEV TIPS:
5
+ #
6
+ # For local testing run like:
7
+ #
8
+ # ruby -Ilib bin/cryptopunk
9
+ #
10
+ # Set the executable bit in Linux. Example:
11
+ #
12
+ # % chmod a+x bin/cryptopunk
13
+ #
14
+
15
+ require 'cryptopunks'
16
+
17
+ Punk.main
data/bin/punk CHANGED
@@ -1,17 +1,17 @@
1
- #!/usr/bin/env ruby
2
-
3
- ###################
4
- # == DEV TIPS:
5
- #
6
- # For local testing run like:
7
- #
8
- # ruby -Ilib bin/punk
9
- #
10
- # Set the executable bit in Linux. Example:
11
- #
12
- # % chmod a+x bin/punk
13
- #
14
-
15
- require 'cryptopunks'
16
-
17
- Cryptopunks.main
1
+ #!/usr/bin/env ruby
2
+
3
+ ###################
4
+ # == DEV TIPS:
5
+ #
6
+ # For local testing run like:
7
+ #
8
+ # ruby -Ilib bin/punk
9
+ #
10
+ # Set the executable bit in Linux. Example:
11
+ #
12
+ # % chmod a+x bin/punk
13
+ #
14
+
15
+ require 'cryptopunks'
16
+
17
+ Punk.main
@@ -1,147 +1,147 @@
1
- module Cryptopunks
2
-
3
- ##################
4
- ## 5 punk types
5
- TYPES = [
6
- { name: 'Alien', limit: 9 },
7
- { name: 'Ape', limit: 24 },
8
- { name: 'Zombie', limit: 88 },
9
- { name: 'Female', limit: 3840 },
10
- { name: 'Male', limit: 6039 },
11
- ]
12
-
13
-
14
- ###
15
- ## categories used from:
16
- ## https://cryptoslam.io/cryptopunks/checklist
17
- ## see categories in urls e.g.
18
- ## - cryptopunks/eyes/horned-rim-glasses
19
- ## - cryptopunks/hair/peak-spike
20
- ## - cryptopunks/emotion/smile
21
- ## - etc.
22
- ##
23
-
24
- #######
25
- ## 87 attributes / accessories
26
- ##
27
- ## note: does NOT include 5 punk types (that is, alien, ape, zombie, female, male)
28
-
29
-
30
- ACCESSORY_TYPES = [
31
- { name: 'Mouth', accessories: [ { name: 'Cigarette', limit: 961 },
32
- { name: 'Pipe', limit: 317 },
33
- { name: 'Vape', limit: 272 },
34
- { name: 'Medical Mask', limit: 175 }]
35
- },
36
- { name: 'Nose', accessories: [ { name: 'Clown Nose', limit: 212 }]
37
- },
38
- {
39
- name: 'Hair',
40
- accessories: [ { name: 'Wild Blonde', limit: 144 },
41
- { name: 'Wild Hair', limit: 447 },
42
- { name: 'Dark Hair', limit: 157 },
43
- { name: 'Stringy Hair', limit: 463 },
44
- { name: 'Crazy Hair', limit: 414 },
45
- { name: 'Messy Hair', limit: 460 },
46
- { name: 'Mohawk', limit: 441 },
47
- { name: 'Mohawk Thin', limit: 441 },
48
- { name: 'Mohawk Dark', limit: 429 },
49
- { name: 'Peak Spike', limit: 303 },
50
- { name: 'Frumpy Hair', limit: 442 },
51
- { name: 'Clown Hair Green', limit: 148 },
52
- { name: 'Shaved Head', limit: 300 },
53
- { name: 'Vampire Hair', limit: 147 },
54
- { name: 'Red Mohawk', limit: 147 },
55
- { name: 'Blonde Bob', limit: 147 },
56
- { name: 'Straight Hair Dark', limit: 148 },
57
- { name: 'Straight Hair', limit: 151 },
58
- { name: 'Purple Hair', limit: 165 },
59
- { name: 'Straight Hair Blonde', limit: 144 },
60
- { name: 'Wild White Hair', limit: 136 },
61
- { name: 'Half Shaved', limit: 147 },
62
- { name: 'Pigtails', limit: 94 },
63
- { name: 'Orange Side', limit: 68 },
64
- { name: 'Do-rag', limit: 300 },
65
- { name: 'Tiara', limit: 55 },
66
- { name: 'Blonde Short', limit: 129 },
67
- { name: 'Pink With Hat', limit: 95 },
68
- { name: 'Beanie', limit: 44 },
69
- { name: 'Headband', limit: 406 },
70
- { name: 'Bandana', limit: 481 },
71
- { name: 'Hoodie', limit: 259 },
72
- { name: 'Top Hat', limit: 115 },
73
- { name: 'Tassle Hat', limit: 178 },
74
- { name: 'Cap', limit: 351 },
75
- { name: 'Knitted Cap', limit: 419 },
76
- { name: 'Cap Forward', limit: 254 },
77
- { name: 'Police Cap', limit: 203 },
78
- { name: 'Fedora', limit: 186 },
79
- { name: 'Pilot Helmet', limit: 54 },
80
- { name: 'Cowboy Hat', limit: 142 }]
81
- },
82
- {
83
- name: 'Beard',
84
- accessories: [{ name: 'Normal Beard', limit: 292 },
85
- { name: 'Normal Beard Black', limit: 289 },
86
- { name: 'Front Beard Dark', limit: 260 },
87
- { name: 'Front Beard', limit: 273 },
88
- { name: 'Shadow Beard', limit: 526 },
89
- { name: 'Luxurious Beard', limit: 286 },
90
- { name: 'Big Beard', limit: 146 },
91
- { name: 'Chinstrap', limit: 282 },
92
- { name: 'Mustache', limit: 288 },
93
- { name: 'Muttonchops', limit: 303 },
94
- { name: 'Handlebars', limit: 263 },
95
- { name: 'Goat', limit: 295 }]
96
- },
97
- {
98
- name: 'Ears',
99
- accessories: [{ name: 'Earring', limit: 2459 }]
100
- },
101
- {
102
- name: 'Eyes',
103
- accessories: [{ name: 'Blue Eye Shadow', limit: 266 },
104
- { name: 'Purple Eye Shadow', limit: 262 },
105
- { name: 'Green Eye Shadow', limit: 271 },
106
- { name: 'Welding Goggles', limit: 86 },
107
- { name: 'VR', limit: 332 },
108
- { name: '3D Glasses', limit: 286 },
109
- { name: 'Clown Eyes Blue', limit: 384 },
110
- { name: 'Clown Eyes Green', limit: 382 },
111
- { name: 'Small Shades', limit: 378 },
112
- { name: 'Regular Shades', limit: 527 },
113
- { name: 'Big Shades', limit: 535 },
114
- { name: 'Classic Shades', limit: 502 },
115
- { name: 'Nerd Glasses', limit: 572 },
116
- { name: 'Horned Rim Glasses', limit: 535 },
117
- { name: 'Eye Mask', limit: 293 },
118
- { name: 'Eye Patch', limit: 461 }]
119
- },
120
- {
121
- name: 'Lips',
122
- accessories: [{ name: 'Purple Lipstick', limit: 655 },
123
- { name: 'Black Lipstick', limit: 617 },
124
- { name: 'Hot Lipstick', limit: 696 } ]
125
- },
126
- {
127
- name: 'Face',
128
- accessories: [{ name: 'Spots', limit: 124 },
129
- { name: 'Mole', limit: 644 }]
130
- },
131
- {
132
- name: 'Neck',
133
- accessories: [{ name: 'Choker', limit: 48 },
134
- { name: 'Silver Chain', limit: 156 },
135
- { name: 'Gold Chain', limit: 169 }]
136
- },
137
- { name: 'Cheeks', accessories: [{ name: 'Rosy Cheeks', limit: 128 }]
138
- },
139
- { name: 'Teeth', accessories: [{ name: 'Buck Teeth', limit: 78 }]
140
- },
141
- { name: 'Emotion', accessories: [{ name: 'Frown', limit: 261 },
142
- { name: 'Smile', limit: 238 }]
143
- }
144
- ]
145
-
146
-
147
- end # module Cryptopunks
1
+ module Punk
2
+
3
+ ##################
4
+ ## 5 punk types
5
+ TYPES = [
6
+ { name: 'Alien', limit: 9 },
7
+ { name: 'Ape', limit: 24 },
8
+ { name: 'Zombie', limit: 88 },
9
+ { name: 'Female', limit: 3840 },
10
+ { name: 'Male', limit: 6039 },
11
+ ]
12
+
13
+
14
+ ###
15
+ ## categories used from:
16
+ ## https://cryptoslam.io/cryptopunks/checklist
17
+ ## see categories in urls e.g.
18
+ ## - cryptopunks/eyes/horned-rim-glasses
19
+ ## - cryptopunks/hair/peak-spike
20
+ ## - cryptopunks/emotion/smile
21
+ ## - etc.
22
+ ##
23
+
24
+ #######
25
+ ## 87 attributes / accessories
26
+ ##
27
+ ## note: does NOT include 5 punk types (that is, alien, ape, zombie, female, male)
28
+
29
+
30
+ ACCESSORY_TYPES = [
31
+ { name: 'Mouth', accessories: [ { name: 'Cigarette', limit: 961 },
32
+ { name: 'Pipe', limit: 317 },
33
+ { name: 'Vape', limit: 272 },
34
+ { name: 'Medical Mask', limit: 175 }]
35
+ },
36
+ { name: 'Nose', accessories: [ { name: 'Clown Nose', limit: 212 }]
37
+ },
38
+ {
39
+ name: 'Hair',
40
+ accessories: [ { name: 'Wild Blonde', limit: 144 },
41
+ { name: 'Wild Hair', limit: 447 },
42
+ { name: 'Dark Hair', limit: 157 },
43
+ { name: 'Stringy Hair', limit: 463 },
44
+ { name: 'Crazy Hair', limit: 414 },
45
+ { name: 'Messy Hair', limit: 460 },
46
+ { name: 'Mohawk', limit: 441 },
47
+ { name: 'Mohawk Thin', limit: 441 },
48
+ { name: 'Mohawk Dark', limit: 429 },
49
+ { name: 'Peak Spike', limit: 303 },
50
+ { name: 'Frumpy Hair', limit: 442 },
51
+ { name: 'Clown Hair Green', limit: 148 },
52
+ { name: 'Shaved Head', limit: 300 },
53
+ { name: 'Vampire Hair', limit: 147 },
54
+ { name: 'Red Mohawk', limit: 147 },
55
+ { name: 'Blonde Bob', limit: 147 },
56
+ { name: 'Straight Hair Dark', limit: 148 },
57
+ { name: 'Straight Hair', limit: 151 },
58
+ { name: 'Purple Hair', limit: 165 },
59
+ { name: 'Straight Hair Blonde', limit: 144 },
60
+ { name: 'Wild White Hair', limit: 136 },
61
+ { name: 'Half Shaved', limit: 147 },
62
+ { name: 'Pigtails', limit: 94 },
63
+ { name: 'Orange Side', limit: 68 },
64
+ { name: 'Do-rag', limit: 300 },
65
+ { name: 'Tiara', limit: 55 },
66
+ { name: 'Blonde Short', limit: 129 },
67
+ { name: 'Pink With Hat', limit: 95 },
68
+ { name: 'Beanie', limit: 44 },
69
+ { name: 'Headband', limit: 406 },
70
+ { name: 'Bandana', limit: 481 },
71
+ { name: 'Hoodie', limit: 259 },
72
+ { name: 'Top Hat', limit: 115 },
73
+ { name: 'Tassle Hat', limit: 178 },
74
+ { name: 'Cap', limit: 351 },
75
+ { name: 'Knitted Cap', limit: 419 },
76
+ { name: 'Cap Forward', limit: 254 },
77
+ { name: 'Police Cap', limit: 203 },
78
+ { name: 'Fedora', limit: 186 },
79
+ { name: 'Pilot Helmet', limit: 54 },
80
+ { name: 'Cowboy Hat', limit: 142 }]
81
+ },
82
+ {
83
+ name: 'Beard',
84
+ accessories: [{ name: 'Normal Beard', limit: 292 },
85
+ { name: 'Normal Beard Black', limit: 289 },
86
+ { name: 'Front Beard Dark', limit: 260 },
87
+ { name: 'Front Beard', limit: 273 },
88
+ { name: 'Shadow Beard', limit: 526 },
89
+ { name: 'Luxurious Beard', limit: 286 },
90
+ { name: 'Big Beard', limit: 146 },
91
+ { name: 'Chinstrap', limit: 282 },
92
+ { name: 'Mustache', limit: 288 },
93
+ { name: 'Muttonchops', limit: 303 },
94
+ { name: 'Handlebars', limit: 263 },
95
+ { name: 'Goat', limit: 295 }]
96
+ },
97
+ {
98
+ name: 'Ears',
99
+ accessories: [{ name: 'Earring', limit: 2459 }]
100
+ },
101
+ {
102
+ name: 'Eyes',
103
+ accessories: [{ name: 'Blue Eye Shadow', limit: 266 },
104
+ { name: 'Purple Eye Shadow', limit: 262 },
105
+ { name: 'Green Eye Shadow', limit: 271 },
106
+ { name: 'Welding Goggles', limit: 86 },
107
+ { name: 'VR', limit: 332 },
108
+ { name: '3D Glasses', limit: 286 },
109
+ { name: 'Clown Eyes Blue', limit: 384 },
110
+ { name: 'Clown Eyes Green', limit: 382 },
111
+ { name: 'Small Shades', limit: 378 },
112
+ { name: 'Regular Shades', limit: 527 },
113
+ { name: 'Big Shades', limit: 535 },
114
+ { name: 'Classic Shades', limit: 502 },
115
+ { name: 'Nerd Glasses', limit: 572 },
116
+ { name: 'Horned Rim Glasses', limit: 535 },
117
+ { name: 'Eye Mask', limit: 293 },
118
+ { name: 'Eye Patch', limit: 461 }]
119
+ },
120
+ {
121
+ name: 'Lips',
122
+ accessories: [{ name: 'Purple Lipstick', limit: 655 },
123
+ { name: 'Black Lipstick', limit: 617 },
124
+ { name: 'Hot Lipstick', limit: 696 } ]
125
+ },
126
+ {
127
+ name: 'Face',
128
+ accessories: [{ name: 'Spots', limit: 124 },
129
+ { name: 'Mole', limit: 644 }]
130
+ },
131
+ {
132
+ name: 'Neck',
133
+ accessories: [{ name: 'Choker', limit: 48 },
134
+ { name: 'Silver Chain', limit: 156 },
135
+ { name: 'Gold Chain', limit: 169 }]
136
+ },
137
+ { name: 'Cheeks', accessories: [{ name: 'Rosy Cheeks', limit: 128 }]
138
+ },
139
+ { name: 'Teeth', accessories: [{ name: 'Buck Teeth', limit: 78 }]
140
+ },
141
+ { name: 'Emotion', accessories: [{ name: 'Frown', limit: 261 },
142
+ { name: 'Smile', limit: 238 }]
143
+ }
144
+ ]
145
+
146
+
147
+ end # module Punk