-
Notifications
You must be signed in to change notification settings - Fork 0
/
Ingredient.sol
183 lines (144 loc) · 3.95 KB
/
Ingredient.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
// SPDX-License-Identifier: Unlicense
// Creator: Mr. Masterchef
pragma solidity ^0.8.9;
// __|__ |___| |\
// |o__| |___| | \
// |___| |___| |o \
// _|___| |___| |__o\
// /...\_____|___|____\___/
// \ o * o * * o * o /
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// ~~~ ~~~~ ~~~ ~~
// ~~ ~~~~~ ~~~ ~~ ~ ~~
//
// K
// mb
// ewk
// wpqb
// ttfkx
// wloj
// cct
// dx
// blad
// dqlpti
// dewqibmw
// pjlhbflBmw
// lkpktdzp
// mdgbro
// tdew
// lkwqyjwl
// xdeadkhddqbs
// swedqkbtbqedlldq
// kwbtsxbqydlBsswedqkb
// tsxbqydlbmdpqdlk
// xbkepqkmdljt
// kwqbsxbq
// ydwqbqpavdsklwed
// qkwkfbzkdmkxdsxbqydljsxb
// lhxdqbxpjldwlobwqkdepmpqdlxbwmkj
// mqlymbfdksBmwlkpktdkxpjyxkpzkxdldblsxbqy
// dlwqkxdbsswedqkbtompodmkwdlpzbkx
// wqyDlldqkwbtsxbqydlafspq
// kmblkbmdkxpldhxw
// sxepqkomdldmidkxdwedqkwkfpzkxdpa
// vdskhxdqwksxbqydlljsxblhxdqbxpjldajmqlkpkxdympjq
// ebqeadsprdlblxdlpmhxdqlprdpqdewdlBmrdehwkxkxdldewlkwqskwpqlBmwlk
// pktdhpjtekxdqlbfkxbkwqkxdsbldpzbsswedqkbtsxbqydlwlzbtldbsxbqywqykxwqysbqmdbttfsx
// bqydpqdpzwklbsswedqkbtompodmkwdlbqefdktwkdmbttfmdrbwqpqdbqekxdlb
// rdkxwqyadzpmdbqebzkdmkxdsxbqydPzspjmldkxwllptjkw
// pqkpkxdojcctdedodqelpqkxdmdadwqy
// bspxdmdqkewlkwqs
// kwpqadkhddqbsswedqkbtbqe
// dlldqkwbtsxbqydlbqeadkhddqbsswed
// qkbtbqedlldqkwbtompodmkwdlLprdoxwtplpoxd
// mlzwqekxwlewlkwqskwpqompatdrbkws
// bqexbidedidtpodepkxdmlpt
// jkwpqlkxbkepqkmd
// njwmdkxw
// lewlkwqskwpq
// Wqhxbkzpttphlhde
// wlsjllkxdldlptjkwpql
// kpkxdojcctdbtpqy
// hwkxpkxdmojc
// ctdlkxbk
// bmwl
// dhxdqs
// pqlwedmw
// qykxdwedqk
// wkfpzpav
// dsklpi
// dmkw
// rd
//
// P
// P /\ P
// /\| |/\
// [] ||_/\_|| []
// ||_||____||_||
// ||____[]____||
// ___ {:: \__ } ___
// ( \v: .'" _V -- )_
// (__--- \_ __/ --- )
// ( |::\ :/ ----- ___)
// (______ \::\/ _____)
// (____ \ / _____)
// V
import "./ERC721TopLevel.sol";
contract Ingredient is ERC721TopLevel {
bytes32 public solvesyWordz;
uint256 private howManyWordz;
string private _notSolveddd = "";
string private _ooooShinyy = "";
mapping(address => bool) public isRevealed;
constructor(
address werIzDaInfo,
string memory name_,
string memory symbol_,
string memory description_,
string memory image_
) ERC721TopLevel() {
ERC721StorageProto(werIzDaInfo).registerTopLevel(name_, symbol_, description_, image_);
setStorageLayer(werIzDaInfo);
}
//////////
function setSolutionHash(bytes32 wotWurdz_, uint256 howManyyy_) public onlyOwner {
solvesyWordz = wotWurdz_;
howManyWordz = howManyyy_;
}
function youreekcar(string[] memory whoaa) public {
require(howManyWordz > 0, "nw0");
require(whoaa.length == howManyWordz, "nw");
bytes32 amIRiteOrWut = keccak256(abi.encodePacked("eggzzz"));
for (uint256 i = 0; i < whoaa.length; i++) {
amIRiteOrWut = keccak256(abi.encodePacked(amIRiteOrWut, whoaa[i]));
}
require(amIRiteOrWut == solvesyWordz, "sln");
isRevealed[msg.sender] = true;
}
function hmmmHmmmmm(string memory hmmm___) public onlyOwner {
_notSolveddd = hmmm___;
}
function AHA(string memory ahhh___) public onlyOwner {
_ooooShinyy = ahhh___;
}
//////////
function tokenURI(uint256 tokenId) public view returns (string memory) {
if (isRevealed[ownerOf(tokenId)]) {
return _ooooShinyy;
}
else {
return _notSolveddd;
}
}
//////////
function urBlocced(address whomst) public onlyOwner {
_restrictOperator(whomst);
}
function unbloccc(address whomst) public onlyOwner {
_releaseOperator(whomst);
}
function noMoarBlok() public onlyOwner {
_preventNewRestrictions();
}
}
////////////////////////////////////////