Contract Source Code:
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/// @title: Cake Nygard Editions
/// @author: manifold.xyz
import "./ERC1155Creator.sol";
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// //
// //
// <!DOCTYPE html><head><meta charset="utf-8"></head><body style="font: 9px monospace; line-height:9px; background-color:white;"><span></span><span style="color:#3c2459">▓</span><span style="color:#3a2357">▓▓</span><span style="color:#232240">▓</span><span style="color:#201a3e">█</span><span style="color:#22143e">█</span><span style="color:#1e0c38">███</span><span style="color:#3f1146">█</span><span style="color:#72145a">▓</span><span style="color:#a73977">▒</span><span style="color:#9b5275">░ </span><span style="color:#5a7b8c">` </span><span style="color:#839253">░</span><span style="color:#8f8453">></span><span style="color:#7d905c">"</span><span style="color:#7d8d5f">ⁿ, »</span><span style="color:#84a848">∩ </span><span style="color:#819d51">∩ </span><span style="color:#819d50">] </span><span style="color:#82a548">░; </span><span style="color:#787d66">.</span><span style="color:#7b8b5a">∩ .~ , ^ </span><span style="color:#7c6d6b">' </span><span style="color:#8a626e">' - ' </span><span style="color:#62797a">,</span><span style="color:#739a47">╚</span><span style="color:#369fb5">░</span><span style="color:#49879e">░</span><span style="color:#449086">░</span><span style="color:#578e71">`</span><span style="color:#528b94">"</span><span style="color:#5bae3c">╠</span><span style="color:#8fcb27">░</span><br><span style="color:#2e1a4a">▓</span><span style="color:#301d4c">▓█</span><span style="color:#1f1a3c">█</span><span style="color:#1e163c">██</span><span style="color:#21123e">█</span><span style="color:#291845">███</span><span style="color:#52114e">▓</span><span style="color:#832663">▒</span><span style="color:#8e5a71">░ </span><span style="color:#918557">'</span><span style="color:#85aa45">½ </span><span style="color:#81a14b">]</span><span style="color:#829f4e">! </span><span style="color:#87b53e">░ «</span><span style="color:#7c8c5e">,</span><span style="color:#7a8069">~:-=^</span><span style="color:#79944b">≥</span><span style="color:#7a9351">=</span><span style="color:#788362">'</span><span style="color:#74736a">!</span><span style="color:#717a59">░</span><span style="color:#7b8d55">≥</span><span style="color:#7b8760">⌐ </span><span style="color:#7c8b5e">'</span><span style="color:#809558">»~</span><span style="color:#85ad42">░ " ;</span><span style="color:#7a855f">,</span><span style="color:#7d9351">░</span><span style="color:#81a14b">░ </span><span style="color:#86b23d">≥</span><span style="color:#7c8e5c">ⁿ</span><span style="color:#7d8f5c">» </span><span style="color:#79706c">.</span><span style="color:#7f696c">,^</span><span style="color:#4b8a9b">░</span><span style="color:#3f83ac">░</span><span style="color:#766b54">░</span><span style="color:#6e6d54">░</span><span style="color:#3d8cab">░</span><span style="color:#678559">░</span><span style="color:#6fad3a">▒</span><span style="color:#7fab3b">░</span><span style="color:#749241">░</span><br><span style="color:#382054">▓</span><span style="color:#301c4d">▓</span><span style="color:#291a4a">▓▓▓▓</span><span style="color:#1f163d">█</span><span style="color:#21163f">███</span><span style="color:#390d3f">█</span><span style="color:#751459">▓</span><span style="color:#84576b">░ </span><span style="color:#777769">. </span><span style="color:#75716d">. . ,</span><span style="color:#717165">░</span><span style="color:#7d586d">╔</span><span style="color:#7b5970">░</span><span style="color:#78706b">.</span><span style="color:#6d6c63">∩</span><span style="color:#696060">░░</span><span style="color:#716e69">∩ </span><span style="color:#819b4f">[ \</span><span style="color:#777f5b">"</span><span style="color:#727068">'!\</span><span style="color:#747469">.</span><span style="color:#7c8d5b">^ </span><span style="color:#81a04b">░</span><span style="color:#84666c">'</span><span style="color:#85646d">ⁿ</span><span style="color:#8e5e6f">ⁿ'' " </span><span style="color:#4b899c">"</span><span style="color:#437da6">5</span><span style="color:#5a6655">░</span><span style="color:#546664">░</span><span style="color:#3f8cac">░</span><span style="color:#518e57">░</span><span style="color:#7d8a5b">«</span><span style="color:#7ea739">╠</span><span style="color:#7f973d">░</span><br><span style="color:#331c4e">▓</span><span style="color:#311e4c">▓</span><span style="color:#241540">█</span><span style="color:#1e1a3b">████</span><span style="color:#1d1239">██</span><span style="color:#301849">██</span><span style="color:#671357">▓</span><span style="color:#824567">▒ </span><span style="color:#78706a">.</span><span style="color:#766c6a">' .'</span><span style="color:#77656d">¡</span><span style="color:#77626d">░;</span><span style="color:#716465">░</span><span style="color:#6e6d63">░∩ </span><span style="color:#666479">" </span><span style="color:#746161">░</span><span style="color:#8e4076">╠</span><span style="color:#7a5471">░</span><span style="color:#6b6166">░</span><span style="color:#636a77">!</span><span style="color:#82616e">,</span><span style="color:#7d666a">»</span><span style="color:#736c6b">.;</span><span style="color:#7c9050">≥</span><span style="color:#7a875b">»</span><span style="color:#7b895a">² </span><span style="color:#736c6a">¡</span><span style="color:#736669">░</span><span style="color:#646871">░;░░░</span><span style="color:#637b79">, </span><span style="color:#8d6272">»</span><span style="color:#5c7a88">"</span><span style="color:#647770">^</span><span style="color:#699453">░ </span><span style="color:#7da449">░</span><span style="color:#67865b">Γ</span><span style="color:#78805e">:</span><br><span style="color:#301848">█</span><span style="color:#2e1946">▓█</span><span style="color:#20193b">█</span><span style="color:#221b3c">█</span><span style="color:#251d41">▓██</span><span style="color:#1f153a">█</span><span style="color:#2b1543">██</span><span style="color:#48134b">█</span><span style="color:#702556">▓</span><span style="color:#726167">µ </span><span style="color:#786e6d">.</span><span style="color:#766b6c">.</span><span style="color:#76696d">.</span><span style="color:#76656d">\</span><span style="color:#76636f">░░░</span><span style="color:#785e70">░</span><span style="color:#76586d">░</span><span style="color:#735669">░≥</span><span style="color:#6c5e5b">¼</span><span style="color:#666158">#</span><span style="color:#6d685f">░</span><span style="color:#845f68">░</span><span style="color:#6e756e">.</span><span style="color:#6a7470">.</span><span style="color:#785649">▒</span><span style="color:#955037">║</span><span style="color:#82424e">▒</span><span style="color:#715762">╚</span><span style="color:#655b60">░</span><span style="color:#62676f">░</span><span style="color:#665477">░</span><span style="color:#6e6166">░</span><span style="color:#6e606b">░</span><span style="color:#6f596e">░░░░░</span><span style="color:#586f82">░</span><span style="color:#43859e">░</span><span style="color:#5a6279">░</span><span style="color:#4a7b94">░</span><span style="color:#487995">░░</span><span style="color:#705c70">░</span><span style="color:#5b707c">░</span><span style="color:#547d86">░</span><span style="color:#636e73">░</span><span style="color:#428da2">░</span><span style="color:#507b8e">≥</span><span style="color:#4c8394">░</span><span style="color:#4c8998">░</span><span style="color:#518e94">∩</span><span style="color:#667c78">,</span><span style="color:#5e8184">ⁿⁿ[ ,.</span><span style="color:#5b8e64">^</span><span style="color:#799a52">»</span><br><span style="color:#24113f">█</span><span style="color:#301a47">█</span><span style="color:#432d5b">╣</span><span style="color:#2e2246">▓</span><span style="color:#281f42">█</span><span style="color:#271d41">█</span><span style="color:#302548">▓█</span><span style="color:#1b1436">█</span><span style="color:#26143f">█</span><span style="color:#28113f">█</span><span style="color:#3d104a">█</span><span style="color:#671752">▓</span><span style="color:#534751">▒</span><span style="color:#72676e">⌐ </span><span style="color:#766c6b">.;</span><span style="color:#74616e">≥</span><span style="color:#725a6e">≥</span><span style="color:#72586e">≥</span><span style="color:#6c4c6a">#</span><span style="color:#684469">▒</span><span style="color:#68426a">▒▒╠</span><span style="color:#623863">╬</span><span style="color:#623964">╬╬</span><span style="color:#5a4054">╠</span><span style="color:#615757">░</span><span style="color:#67645f">░</span><span style="color:#72706a">'</span><span style="color:#7c6c65">/</span><span style="color:#8e5c4d">╙</span><span style="color:#975440">╩</span><span style="color:#8f514a">╚</span><span style="color:#83534d">╚</span><span style="color:#785857">∩</span><span style="color:#67655e">░</span><span style="color:#8f4d69">░░</span><span style="color:#6d5b6a">░</span><span style="color:#6f586b">░</span><span style="color:#70536d">░</span><span style="color:#704d70">░</span><span style="color:#704c71">░</span><span style="color:#6d496e">╠▒</span><span style="color:#39799d">╠</span><span style="color:#466487">░</span><span style="color:#3f648e">╠</span><span style="color:#554b74">▒</span><span style="color:#614b75">╠</span><span style="color:#47537e">▒╠</span><span style="color:#654672">╠</span><span style="color:#4d4975">╠▒</span><span style="color:#495679">▒▒</span><span style="color:#5a5170">▒</span><span style="color:#447290">░</span><span style="color:#566b7c">╔</span><span style="color:#507788">░</span><span style="color:#4b899b">░</span><span style="color:#6e686f">,░</span><span style="color:#578365">≥</span><span style="color:#4c8b9b">∩</span><span style="color:#4196a4">≥</span><span style="color:#3ca7a9">░░</span><span style="color:#5d7c6b">░</span><span style="color:#678562">,</span><span style="color:#7c8c5d">;</span><br><span style="color:#2d1946">█</span><span style="color:#3f2754">╬</span><span style="color:#3b2552">▓</span><span style="color:#2b1c44">▓</span><span style="color:#21183b">█</span><span style="color:#20193a">████</span><span style="color:#1b1136">█</span><span style="color:#1f1039">█</span><span style="color:#2f1440">█</span><span style="color:#4c224b">▓</span><span style="color:#534553">▒ </span><span style="color:#786373">░</span><span style="color:#735c6d">≥</span><span style="color:#6e5468">▒</span><span style="color:#71526c">╦</span><span style="color:#704a70">╦</span><span style="color:#6b396f">╢</span><span style="color:#66306c">▒</span><span style="color:#63286e">╣</span><span style="color:#60266d">╢╣╬╣</span><span style="color:#51255f">▓╬</span><span style="color:#622e6e">╬</span><span style="color:#683371">╢</span><span style="color:#674168">╠</span><span style="color:#715e63">░</span><span style="color:#845774">░ </span><span style="color:#866951">#</span><span style="color:#8a495f">▒ </span><span style="color:#766165">░</span><span style="color:#696166">░</span><span style="color:#6d5a6d">░</span><span style="color:#6c4b6c">░</span><span style="color:#694667">╠</span><span style="color:#6d4070">╠</span><span style="color:#6b3971">╢</span><span style="color:#593c76">╠╠</span><span style="color:#644072">╠</span><span style="color:#5a4377">╠</span><span style="color:#49477a">╠▒</span><span style="color:#44427b">╠</span><span style="color:#593877">╢</span><span style="color:#5e2f73">╣</span><span style="color:#473076">╬</span><span style="color:#483375">╢╬╣╣╣╢</span><span style="color:#53356d">╢</span><span style="color:#68386e">╬</span><span style="color:#4a4173">▒</span><span style="color:#534d71">▒</span><span style="color:#98434e">▒</span><span style="color:#8c6050">░</span><span style="color:#756568">░</span><span style="color:#854f5b">╠</span><span style="color:#cf9525">░</span><span style="color:#896265">⌐ </span><span style="color:#866c4f">╠</span><span style="color:#c1aa26">░</span><span style="color:#818e58">∩</span><br><span style="color:#2c1a45">█</span><span style="color:#301d48">▓█</span><span style="color:#21173c">█</span><span style="color:#14132f">█</span><span style="color:#141131">█████</span><span style="color:#24133b">█</span><span style="color:#261438">█</span><span style="color:#2d213a">█</span><span style="color:#675d6e">∩</span><span style="color:#78657d">,</span><span style="color:#705373">╔</span><span style="color:#6b466f">╠</span><span style="color:#66386b">╣</span><span style="color:#6b3670">╬</span><span style="color:#612a6b">╣</span><span style="color:#582366">╣</span><span style="color:#4e205e">▓</span><span style="color:#411e50">▓</span><span style="color:#452050">▓</span><span style="color:#4b284f">▓▓▓</span><span style="color:#3b2340">▓</span><span style="color:#402047">▓</span><span style="color:#4e1f58">▓</span><span style="color:#582166">▓</span><span style="color:#652871">╢</span><span style="color:#67376b">▒</span><span style="color:#74526a">░</span><span style="color:#7c5873">░</span><span style="color:#6f5e72">░</span><span style="color:#73636e">░</span><span style="color:#835464">]</span><span style="color:#80566b">░ </span><span style="color:#6f6278">«</span><span style="color:#655487">░</span><span style="color:#74666e">;</span><span style="color:#6e656b">░</span><span style="color:#6d606c">░</span><span style="color:#69506a">╠</span><span style="color:#6d4571">╠</span><span style="color:#6b4172">╠</span><span style="color:#5f3368">╣</span><span style="color:#343d76">▒</span><span style="color:#4b3074">╣</span><span style="color:#582e70">╣</span><span style="color:#363577">╬╣╣</span><span style="color:#463364">╢</span><span style="color:#563560">╬</span><span style="color:#5a345a">╢</span><span style="color:#513458">╣</span><span style="color:#403456">╫</span><span style="color:#3d324a">▓</span><span style="color:#443148">▓</span><span style="color:#3e2d42">▓</span><span style="color:#402c42">▓</span><span style="color:#372842">▓</span><span style="color:#332544">▓</span><span style="color:#452b50">▓</span><span style="color:#572a5b">╬</span><span style="color:#5a2767">╬</span><span style="color:#5d2d6f">╢</span><span style="color:#4d326d">╣</span><span style="color:#5c3556">╣</span><span style="color:#6a6a2e">╣</span><span style="color:#7d6334">╠</span><span style="color:#7a7838">╠</span><span style="color:#848034">╠</span><span style="c //
// //
// //
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
contract CAKE is ERC1155Creator {
constructor() ERC1155Creator() {}
}
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/// @author: manifold.xyz
import "@openzeppelin/contracts/proxy/Proxy.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/StorageSlot.sol";
contract ERC1155Creator is Proxy {
constructor() {
assert(_IMPLEMENTATION_SLOT == bytes32(uint256(keccak256("eip1967.proxy.implementation")) - 1));
StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = 0x142FD5b9d67721EfDA3A5E2E9be47A96c9B724A4;
Address.functionDelegateCall(
0x142FD5b9d67721EfDA3A5E2E9be47A96c9B724A4,
abi.encodeWithSignature("initialize()")
);
}
/**
* @dev Storage slot with the address of the current implementation.
* This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1, and is
* validated in the constructor.
*/
bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
/**
* @dev Returns the current implementation address.
*/
function implementation() public view returns (address) {
return _implementation();
}
function _implementation() internal override view returns (address) {
return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
}
}
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (proxy/Proxy.sol)
pragma solidity ^0.8.0;
/**
* @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM
* instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to
* be specified by overriding the virtual {_implementation} function.
*
* Additionally, delegation to the implementation can be triggered manually through the {_fallback} function, or to a
* different contract through the {_delegate} function.
*
* The success and return data of the delegated call will be returned back to the caller of the proxy.
*/
abstract contract Proxy {
/**
* @dev Delegates the current call to `implementation`.
*
* This function does not return to its internal call site, it will return directly to the external caller.
*/
function _delegate(address implementation) internal virtual {
assembly {
// Copy msg.data. We take full control of memory in this inline assembly
// block because it will not return to Solidity code. We overwrite the
// Solidity scratch pad at memory position 0.
calldatacopy(0, 0, calldatasize())
// Call the implementation.
// out and outsize are 0 because we don't know the size yet.
let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0)
// Copy the returned data.
returndatacopy(0, 0, returndatasize())
switch result
// delegatecall returns 0 on error.
case 0 {
revert(0, returndatasize())
}
default {
return(0, returndatasize())
}
}
}
/**
* @dev This is a virtual function that should be overridden so it returns the address to which the fallback function
* and {_fallback} should delegate.
*/
function _implementation() internal view virtual returns (address);
/**
* @dev Delegates the current call to the address returned by `_implementation()`.
*
* This function does not return to its internal call site, it will return directly to the external caller.
*/
function _fallback() internal virtual {
_beforeFallback();
_delegate(_implementation());
}
/**
* @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if no other
* function in the contract matches the call data.
*/
fallback() external payable virtual {
_fallback();
}
/**
* @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if call data
* is empty.
*/
receive() external payable virtual {
_fallback();
}
/**
* @dev Hook that is called before falling back to the implementation. Can happen as part of a manual `_fallback`
* call, or as part of the Solidity `fallback` or `receive` functions.
*
* If overridden should call `super._beforeFallback()`.
*/
function _beforeFallback() internal virtual {}
}
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)
pragma solidity ^0.8.1;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*
* [IMPORTANT]
* ====
* You shouldn't rely on `isContract` to protect against flash loan attacks!
*
* Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
* constructor.
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize/address.code.length, which returns 0
// for contracts in construction, since the code is only stored at the end
// of the constructor execution.
return account.code.length > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
/// @solidity memory-safe-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/StorageSlot.sol)
pragma solidity ^0.8.0;
/**
* @dev Library for reading and writing primitive types to specific storage slots.
*
* Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.
* This library helps with reading and writing to such slots without the need for inline assembly.
*
* The functions in this library return Slot structs that contain a `value` member that can be used to read or write.
*
* Example usage to set ERC1967 implementation slot:
* ```
* contract ERC1967 {
* bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
*
* function _getImplementation() internal view returns (address) {
* return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
* }
*
* function _setImplementation(address newImplementation) internal {
* require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract");
* StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
* }
* }
* ```
*
* _Available since v4.1 for `address`, `bool`, `bytes32`, and `uint256`._
*/
library StorageSlot {
struct AddressSlot {
address value;
}
struct BooleanSlot {
bool value;
}
struct Bytes32Slot {
bytes32 value;
}
struct Uint256Slot {
uint256 value;
}
/**
* @dev Returns an `AddressSlot` with member `value` located at `slot`.
*/
function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `BooleanSlot` with member `value` located at `slot`.
*/
function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `Bytes32Slot` with member `value` located at `slot`.
*/
function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `Uint256Slot` with member `value` located at `slot`.
*/
function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
}