ERC-721
Overview
Max Total Supply
208 DUDEDUDE
Holders
24
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
0 DUDEDUDELoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
TheDudeDudes
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ // SPDX-License-Identifier: MIT // File: solady/src/utils/MerkleProofLib.sol pragma solidity ^0.8.4; /// @notice Gas optimized verification of proof of inclusion for a leaf in a Merkle tree. /// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/MerkleProofLib.sol) /// @author Modified from Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/MerkleProofLib.sol) /// @author Modified from OpenZeppelin (https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/cryptography/MerkleProof.sol) library MerkleProofLib { /// @dev Returns whether `leaf` exists in the Merkle tree with `root`, given `proof`. function verify( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool isValid) { assembly { if proof.length { // Left shift by 5 is equivalent to multiplying by 0x20. let end := add(proof.offset, shl(5, proof.length)) // Initialize `offset` to the offset of `proof` in the calldata. let offset := proof.offset // Iterate over proof elements to compute root hash. // prettier-ignore for {} 1 {} { // Slot of `leaf` in scratch space. // If the condition is true: 0x20, otherwise: 0x00. let scratch := shl(5, gt(leaf, calldataload(offset))) // Store elements to hash contiguously in scratch space. // Scratch space is 64 bytes (0x00 - 0x3f) and both elements are 32 bytes. mstore(scratch, leaf) mstore(xor(scratch, 0x20), calldataload(offset)) // Reuse `leaf` to store the hash to reduce stack operations. leaf := keccak256(0x00, 0x40) offset := add(offset, 0x20) // prettier-ignore if iszero(lt(offset, end)) { break } } } isValid := eq(leaf, root) } } /// @dev Returns whether all `leafs` exist in the Merkle tree with `root`, /// given `proof` and `flags`. function verifyMultiProof( bytes32[] calldata proof, bytes32 root, bytes32[] calldata leafs, bool[] calldata flags ) internal pure returns (bool isValid) { // Rebuilds the root by consuming and producing values on a queue. // The queue starts with the `leafs` array, and goes into a `hashes` array. // After the process, the last element on the queue is verified // to be equal to the `root`. // // The `flags` array denotes whether the sibling // should be popped from the queue (`flag == true`), or // should be popped from the `proof` (`flag == false`). assembly { // If the number of flags is correct. // prettier-ignore for {} eq(add(leafs.length, proof.length), add(flags.length, 1)) {} { // For the case where `proof.length + leafs.length == 1`. if iszero(flags.length) { // `isValid = (proof.length == 1 ? proof[0] : leafs[0]) == root`. isValid := eq( calldataload( xor(leafs.offset, mul(xor(proof.offset, leafs.offset), proof.length)) ), root ) break } // We can use the free memory space for the queue. // We don't need to allocate, since the queue is temporary. let hashesFront := mload(0x40) // Copy the leafs into the hashes. // Sometimes, a little memory expansion costs less than branching. // Should cost less, even with a high free memory offset of 0x7d00. // Left shift by 5 is equivalent to multiplying by 0x20. calldatacopy(hashesFront, leafs.offset, shl(5, leafs.length)) // Compute the back of the hashes. let hashesBack := add(hashesFront, shl(5, leafs.length)) // This is the end of the memory for the queue. // We recycle `flags.length` to save on stack variables // (this trick may not always save gas). flags.length := add(hashesBack, shl(5, flags.length)) // We don't need to make a copy of `proof.offset` or `flags.offset`, // as they are pass-by-value (this trick may not always save gas). // prettier-ignore for {} 1 {} { // Pop from `hashes`. let a := mload(hashesFront) // Pop from `hashes`. let b := mload(add(hashesFront, 0x20)) hashesFront := add(hashesFront, 0x40) // If the flag is false, load the next proof, // else, pops from the queue. if iszero(calldataload(flags.offset)) { // Loads the next proof. b := calldataload(proof.offset) proof.offset := add(proof.offset, 0x20) // Unpop from `hashes`. hashesFront := sub(hashesFront, 0x20) } // Advance to the next flag offset. flags.offset := add(flags.offset, 0x20) // Slot of `a` in scratch space. // If the condition is true: 0x20, otherwise: 0x00. let scratch := shl(5, gt(a, b)) // Hash the scratch space and push the result onto the queue. mstore(scratch, a) mstore(xor(scratch, 0x20), b) mstore(hashesBack, keccak256(0x00, 0x40)) hashesBack := add(hashesBack, 0x20) // prettier-ignore if iszero(lt(hashesBack, flags.length)) { break } } // Checks if the last value in the queue is same as the root. isValid := eq(mload(sub(hashesBack, 0x20)), root) break } } } } // File: solady/src/utils/LibBit.sol pragma solidity ^0.8.4; /// @notice Library for bit twiddling operations. /// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/LibBit.sol) /// @author Inspired by (https://graphics.stanford.edu/~seander/bithacks.html) library LibBit { /// @dev Find last set. /// Returns the index of the most significant bit of `x`, /// counting from the least significant bit position. /// If `x` is zero, returns 256. /// Equivalent to `log2(x)`, but without reverting for the zero case. function fls(uint256 x) internal pure returns (uint256 r) { assembly { r := shl(8, iszero(x)) r := or(r, shl(7, lt(0xffffffffffffffffffffffffffffffff, x))) r := or(r, shl(6, lt(0xffffffffffffffff, shr(r, x)))) r := or(r, shl(5, lt(0xffffffff, shr(r, x)))) // For the remaining 32 bits, use a De Bruijn lookup. x := shr(r, x) x := or(x, shr(1, x)) x := or(x, shr(2, x)) x := or(x, shr(4, x)) x := or(x, shr(8, x)) x := or(x, shr(16, x)) // prettier-ignore r := or(r, byte(shr(251, mul(x, shl(224, 0x07c4acdd))), 0x0009010a0d15021d0b0e10121619031e080c141c0f111807131b17061a05041f)) } } /// @dev Count leading zeros. /// Returns the number of zeros preceding the most significant one bit. /// If `x` is zero, returns 256. function clz(uint256 x) internal pure returns (uint256 r) { assembly { let t := add(iszero(x), 255) r := shl(7, lt(0xffffffffffffffffffffffffffffffff, x)) r := or(r, shl(6, lt(0xffffffffffffffff, shr(r, x)))) r := or(r, shl(5, lt(0xffffffff, shr(r, x)))) // For the remaining 32 bits, use a De Bruijn lookup. x := shr(r, x) x := or(x, shr(1, x)) x := or(x, shr(2, x)) x := or(x, shr(4, x)) x := or(x, shr(8, x)) x := or(x, shr(16, x)) // prettier-ignore r := sub(t, or(r, byte(shr(251, mul(x, shl(224, 0x07c4acdd))), 0x0009010a0d15021d0b0e10121619031e080c141c0f111807131b17061a05041f))) } } /// @dev Find first set. /// Returns the index of the least significant bit of `x`, /// counting from the least significant bit position. /// If `x` is zero, returns 256. /// Equivalent to `ctz` (count trailing zeros), which gives /// the number of zeros following the least significant one bit. function ffs(uint256 x) internal pure returns (uint256 r) { assembly { r := shl(8, iszero(x)) // Isolate the least significant bit. x := and(x, add(not(x), 1)) r := or(r, shl(7, lt(0xffffffffffffffffffffffffffffffff, x))) r := or(r, shl(6, lt(0xffffffffffffffff, shr(r, x)))) r := or(r, shl(5, lt(0xffffffff, shr(r, x)))) // For the remaining 32 bits, use a De Bruijn lookup. // prettier-ignore r := or(r, byte(shr(251, mul(shr(r, x), shl(224, 0x077cb531))), 0x00011c021d0e18031e16140f191104081f1b0d17151310071a0c12060b050a09)) } } /// @dev Returns the number of set bits in `x`. function popCount(uint256 x) internal pure returns (uint256 c) { assembly { let max := not(0) let isMax := eq(x, max) x := sub(x, and(shr(1, x), div(max, 3))) x := add(and(x, div(max, 5)), and(shr(2, x), div(max, 5))) x := and(add(x, shr(4, x)), div(max, 17)) c := or(shl(8, isMax), shr(248, mul(x, div(max, 255)))) } } /// @dev Returns whether `x` is a power of 2. function isPo2(uint256 x) internal pure returns (bool result) { assembly { // Equivalent to `x && !(x & (x - 1))`. result := iszero(add(and(x, sub(x, 1)), iszero(x))) } } } // File: solady/src/utils/LibBitmap.sol pragma solidity ^0.8.4; /// @notice Efficient bitmap library for mapping integers to single bit booleans. /// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/LibBitmap.sol) /// @author Modified from Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/LibBitmap.sol) /// @author Modified from Solidity-Bits (https://github.com/estarriolvetch/solidity-bits/blob/main/contracts/BitMaps.sol) library LibBitmap { /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/ /* CONSTANTS */ /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/ /// @dev The constant returned when a bitmap scan does not find a result. uint256 internal constant NOT_FOUND = type(uint256).max; /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/ /* STRUCTS */ /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/ /// @dev A bitmap in storage. struct Bitmap { mapping(uint256 => uint256) map; } /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/ /* OPERATIONS */ /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/ /// @dev Returns the boolean value of the bit at `index` in `bitmap`. function get(Bitmap storage bitmap, uint256 index) internal view returns (bool isSet) { // It is better to set `isSet` to either 0 or 1, than zero vs non-zero. // Both cost the same amount of gas, but the former allows the returned value // to be reused without cleaning the upper bits. uint256 b = (bitmap.map[index >> 8] >> (index & 0xff)) & 1; assembly { isSet := b } } /// @dev Updates the bit at `index` in `bitmap` to true. function set(Bitmap storage bitmap, uint256 index) internal { bitmap.map[index >> 8] |= (1 << (index & 0xff)); } /// @dev Updates the bit at `index` in `bitmap` to false. function unset(Bitmap storage bitmap, uint256 index) internal { bitmap.map[index >> 8] &= ~(1 << (index & 0xff)); } /// @dev Flips the bit at `index` in `bitmap`. /// Returns the boolean result of the flipped bit. function toggle(Bitmap storage bitmap, uint256 index) internal returns (bool newIsSet) { assembly { mstore(0x00, shr(8, index)) mstore(0x20, bitmap.slot) let storageSlot := keccak256(0x00, 0x40) let shift := and(index, 0xff) let storageValue := sload(storageSlot) let mask := shl(shift, 1) storageValue := xor(storageValue, mask) // It makes sense to return the `newIsSet`, // as it allow us to skip an additional warm `sload`, // and it costs minimal gas (about 15), // which may be optimized away if the returned value is unused. newIsSet := iszero(iszero(and(storageValue, mask))) sstore(storageSlot, storageValue) } } /// @dev Updates the bit at `index` in `bitmap` to `shouldSet`. function setTo( Bitmap storage bitmap, uint256 index, bool shouldSet ) internal { assembly { mstore(0x20, bitmap.slot) mstore(0x00, shr(8, index)) let storageSlot := keccak256(0x00, 0x40) let storageValue := sload(storageSlot) let shift := and(index, 0xff) sstore( storageSlot, // Unsets the bit at `shift` via `and`, then sets its new value via `or`. or(and(storageValue, not(shl(shift, 1))), shl(shift, iszero(iszero(shouldSet)))) ) } } /// @dev Consecutively sets `amount` of bits starting from the bit at `start`. function setBatch( Bitmap storage bitmap, uint256 start, uint256 amount ) internal { assembly { let max := not(0) let shift := and(start, 0xff) mstore(0x20, bitmap.slot) mstore(0x00, shr(8, start)) if iszero(lt(add(shift, amount), 257)) { let storageSlot := keccak256(0x00, 0x40) sstore(storageSlot, or(sload(storageSlot), shl(shift, max))) let bucket := add(mload(0x00), 1) let bucketEnd := add(mload(0x00), shr(8, add(amount, shift))) amount := and(add(amount, shift), 0xff) shift := 0 // prettier-ignore for {} iszero(eq(bucket, bucketEnd)) { bucket := add(bucket, 1) } { mstore(0x00, bucket) sstore(keccak256(0x00, 0x40), max) } mstore(0x00, bucket) } let storageSlot := keccak256(0x00, 0x40) sstore(storageSlot, or(sload(storageSlot), shl(shift, shr(sub(256, amount), max)))) } } /// @dev Consecutively unsets `amount` of bits starting from the bit at `start`. function unsetBatch( Bitmap storage bitmap, uint256 start, uint256 amount ) internal { assembly { let shift := and(start, 0xff) mstore(0x20, bitmap.slot) mstore(0x00, shr(8, start)) if iszero(lt(add(shift, amount), 257)) { let storageSlot := keccak256(0x00, 0x40) sstore(storageSlot, and(sload(storageSlot), not(shl(shift, not(0))))) let bucket := add(mload(0x00), 1) let bucketEnd := add(mload(0x00), shr(8, add(amount, shift))) amount := and(add(amount, shift), 0xff) shift := 0 // prettier-ignore for {} iszero(eq(bucket, bucketEnd)) { bucket := add(bucket, 1) } { mstore(0x00, bucket) sstore(keccak256(0x00, 0x40), 0) } mstore(0x00, bucket) } let storageSlot := keccak256(0x00, 0x40) sstore(storageSlot, and(sload(storageSlot), not(shl(shift, shr(sub(256, amount), not(0)))))) } } /// @dev Returns number of set bits within a range by /// scanning `amount` of bits starting from the bit at `start`. function popCount( Bitmap storage bitmap, uint256 start, uint256 amount ) internal view returns (uint256 count) { unchecked { uint256 bucket = start >> 8; uint256 shift = start & 0xff; if (!(amount + shift < 257)) { count = LibBit.popCount(bitmap.map[bucket] >> shift); uint256 bucketEnd = bucket + ((amount + shift) >> 8); amount = (amount + shift) & 0xff; shift = 0; for (++bucket; bucket != bucketEnd; ++bucket) { count += LibBit.popCount(bitmap.map[bucket]); } } count += LibBit.popCount((bitmap.map[bucket] >> shift) << (256 - amount)); } } /// @dev Returns the index of the most significant set bit before the bit at `before`. /// If no set bit is found, returns `NOT_FOUND`. function findLastSet(Bitmap storage bitmap, uint256 before) internal view returns (uint256 setBitIndex) { uint256 bucket; uint256 bucketBits; assembly { setBitIndex := not(0) bucket := shr(8, before) mstore(0x00, bucket) mstore(0x20, bitmap.slot) let offset := xor(0xff, and(0xff, before)) // `256 - (255 & before) - 1`. bucketBits := shr(offset, shl(offset, sload(keccak256(0x00, 0x40)))) if iszero(bucketBits) { // prettier-ignore for {} bucket {} { bucket := sub(bucket, 1) mstore(0x00, bucket) bucketBits := sload(keccak256(0x00, 0x40)) // prettier-ignore if bucketBits { break } } } } if (bucketBits != 0) { setBitIndex = (bucket << 8) | LibBit.fls(bucketBits); assembly { setBitIndex := or(setBitIndex, sub(0, gt(setBitIndex, before))) } } } } // File: solmate/src/auth/Owned.sol pragma solidity >=0.8.0; /// @notice Simple single owner authorization mixin. /// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/auth/Owned.sol) abstract contract Owned { /*////////////////////////////////////////////////////////////// EVENTS //////////////////////////////////////////////////////////////*/ event OwnerUpdated(address indexed user, address indexed newOwner); /*////////////////////////////////////////////////////////////// OWNERSHIP STORAGE //////////////////////////////////////////////////////////////*/ address public owner; modifier onlyOwner() virtual { require(msg.sender == owner, "UNAUTHORIZED"); _; } /*////////////////////////////////////////////////////////////// CONSTRUCTOR //////////////////////////////////////////////////////////////*/ constructor(address _owner) { owner = _owner; emit OwnerUpdated(address(0), _owner); } /*////////////////////////////////////////////////////////////// OWNERSHIP LOGIC //////////////////////////////////////////////////////////////*/ function setOwner(address newOwner) public virtual onlyOwner { owner = newOwner; emit OwnerUpdated(msg.sender, newOwner); } } // File: erc721a/contracts/IERC721A.sol // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables * (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, * checking first that contract recipients are aware of the ERC721 protocol * to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move * this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Transfers `tokenId` from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} * whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external payable; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); } // File: erc721a/contracts/ERC721A.sol // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) public payable virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) public virtual override { _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) public payable virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public payable virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public payable virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. // The duplicated `log4` removes an extra check and reduces stack juggling. // The assembly, together with the surrounding Solidity code, have been // delicately arranged to nudge the compiler into producing optimized opcodes. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) // The `iszero(eq(,))` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. // The compiler will optimize the `iszero` away for performance. for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), but // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. let m := add(mload(0x40), 0xa0) // Update the free memory pointer to allocate. mstore(0x40, m) // Assign the `str` to the end. str := sub(m, 0x20) // Zeroize the slot after the string. mstore(str, 0) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } } // File: contracts/TheDudeDudesRaw.sol pragma solidity ^0.8.0; contract TheDudeDudes is ERC721A, Owned(msg.sender) { /*////////////////////////////////////////////////////////////// ERRORS //////////////////////////////////////////////////////////////*/ error ExtractFailed(); error NotEnoughPower(); error PublicFactoryClosed(); error PrivateFactoryClosed(); error NotDudeEnough(); error FactoryLimit(); error TooMuchPower(); error PrivateFactoryOpened(); error PublicFactoryOpened(); error UltimateDudeness(); error OutOfDudeJuice(); error FailedUpdateDudeState(); error NoChangeInDudeState(); /*////////////////////////////////////////////////////////////// VARIABLES //////////////////////////////////////////////////////////////*/ using LibBitmap for LibBitmap.Bitmap; LibBitmap.Bitmap bitmap; address private constant _DUDE_DEV_ADDRESS = 0x7787CF7FA044f751AD055C92A4BE4EA6cF4D0851; address private constant _DUDE_COUNCIL_ADDRESS = 0x56E7483D12F22f4759f8BdA80b9AfFEBC25D74EA; address private constant _DUDE_FOUNDERS_ADDRESS = 0x4f24d74F78cB2F97a8B7824dd7CABC2767756455; uint256 private constant _PRIVATE_FACTORY_INDEX = 1; uint256 private constant _PUBLIC_FACTORY_INDEX = 2; uint256 private constant _DUDE_INDEX = 3; uint256 private constant _CHOSEN_DUDES = 33; uint256 public maxDudenessPerMint = 2; uint256 public POWER_REQUIRED = 0.042069 ether; uint256 public FACTORY_LIMIT = 3333; bytes32 public dudeRoot; string private baseTokenURI; /*////////////////////////////////////////////////////////////// CONSTRUCTOR //////////////////////////////////////////////////////////////*/ constructor( string memory baseURI, bytes32 dudeRoot_ ) ERC721A("thedudedudes", "DUDEDUDE") { baseTokenURI = baseURI; dudeRoot = dudeRoot_; } /*////////////////////////////////////////////////////////////// MODIFIER //////////////////////////////////////////////////////////////*/ modifier makeDude(uint256 dudesToMint) { if (!LibBitmap.get(bitmap, _DUDE_INDEX)) revert OutOfDudeJuice(); unchecked { if (totalSupply() + dudesToMint > FACTORY_LIMIT) revert FactoryLimit(); if ( _numberMinted(msg.sender) + dudesToMint > maxDudenessPerMint ) revert UltimateDudeness(); if (msg.value != POWER_REQUIRED * dudesToMint) revert NotEnoughPower(); } _; } /*////////////////////////////////////////////////////////////// MINT FUNCTIONS //////////////////////////////////////////////////////////////*/ function privateDudeFactory( bytes32[] calldata dudeProof, uint256 dudesToMint ) external payable makeDude(dudesToMint) { if (!LibBitmap.get(bitmap, _PRIVATE_FACTORY_INDEX)) revert PrivateFactoryClosed(); if (LibBitmap.get(bitmap, _PUBLIC_FACTORY_INDEX)) revert PublicFactoryOpened(); if (!symbolOfTheDude(dudeProof, msg.sender)) revert NotDudeEnough(); _mint(msg.sender, dudesToMint); } function publicDudeFactory(uint256 dudesToMint) external payable makeDude(dudesToMint) { if (LibBitmap.get(bitmap, _PRIVATE_FACTORY_INDEX)) revert PrivateFactoryOpened(); if (!LibBitmap.get(bitmap, _PUBLIC_FACTORY_INDEX)) revert PublicFactoryClosed(); _safeMint(msg.sender, dudesToMint); } /*////////////////////////////////////////////////////////////// UI FUNCTIONS //////////////////////////////////////////////////////////////*/ function dudesMinted(address owner) external view returns (uint256) { return _numberMinted(owner); } function getDudeState(uint256 index) external view returns (bool) { return LibBitmap.get(bitmap, index); } function verifyDude(bytes32[] calldata dudeProof, address sender) external view returns (bool) { bool proof = symbolOfTheDude(dudeProof, sender); return proof; } /*////////////////////////////////////////////////////////////// INTERNAL FUNCTIONS //////////////////////////////////////////////////////////////*/ function _baseURI() internal view virtual override returns (string memory) { return baseTokenURI; } function symbolOfTheDude(bytes32[] calldata dudeProof, address sender) internal view returns (bool) { bytes32 leaf = keccak256(abi.encodePacked(sender)); bool proof = MerkleProofLib.verify(dudeProof, dudeRoot, leaf); return proof; } function _extract(address _address, uint256 _amount) private { (bool success, ) = _address.call{value: _amount}(""); if (!success) revert ExtractFailed(); } function _powerSplit(uint256 balance) private { _extract(_DUDE_DEV_ADDRESS, (balance * 12) / 100); _extract(_DUDE_COUNCIL_ADDRESS, (balance * 59) / 100); _extract(_DUDE_FOUNDERS_ADDRESS, (balance * 29) / 100); } /*////////////////////////////////////////////////////////////// ADMIN FUNCTIONS //////////////////////////////////////////////////////////////*/ function setFactoryLimit(uint256 _factoryLimit) external onlyOwner { FACTORY_LIMIT = _factoryLimit; } function setPowerRequired(uint256 _power) external onlyOwner { POWER_REQUIRED = _power; } function setDudeRoot(bytes32 dudeRoot_) external onlyOwner { dudeRoot = dudeRoot_; } function setMaxDudenessPerMint(uint256 _maxDudenessPerMint) external onlyOwner { maxDudenessPerMint = _maxDudenessPerMint; } function makeMarketingDudes() external onlyOwner { unchecked { if (totalSupply() + _CHOSEN_DUDES > FACTORY_LIMIT) revert FactoryLimit(); } _mint(_DUDE_COUNCIL_ADDRESS, _CHOSEN_DUDES); } function giftDude(uint256 totalTokensToGift, address giftAddress) external onlyOwner { unchecked { if (totalSupply() + totalTokensToGift > FACTORY_LIMIT) revert FactoryLimit(); } _mint(giftAddress, totalTokensToGift); } function extractPower(uint256 amount) external onlyOwner { if (amount > address(this).balance) revert TooMuchPower(); _powerSplit(amount); } function extractPowerAll() external onlyOwner { uint256 balance = address(this).balance; if (balance == 0) revert NotEnoughPower(); _extract(_DUDE_COUNCIL_ADDRESS, balance); } function setBaseURI(string memory baseURI) external onlyOwner { baseTokenURI = baseURI; } //Index 1 - Controls Private Factory, //Index 2 - Controls Public Factory, //Index 3 - Controls Dude Juice, function toogleDudeState(uint256 index) external onlyOwner returns (bool pauseState){ pauseState = LibBitmap.toggle(bitmap, index); } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"baseURI","type":"string"},{"internalType":"bytes32","name":"dudeRoot_","type":"bytes32"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"ExtractFailed","type":"error"},{"inputs":[],"name":"FactoryLimit","type":"error"},{"inputs":[],"name":"FailedUpdateDudeState","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"NoChangeInDudeState","type":"error"},{"inputs":[],"name":"NotDudeEnough","type":"error"},{"inputs":[],"name":"NotEnoughPower","type":"error"},{"inputs":[],"name":"OutOfDudeJuice","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"PrivateFactoryClosed","type":"error"},{"inputs":[],"name":"PrivateFactoryOpened","type":"error"},{"inputs":[],"name":"PublicFactoryClosed","type":"error"},{"inputs":[],"name":"PublicFactoryOpened","type":"error"},{"inputs":[],"name":"TooMuchPower","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"UltimateDudeness","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"FACTORY_LIMIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"POWER_REQUIRED","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dudeRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"dudesMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"extractPower","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"extractPowerAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getDudeState","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"totalTokensToGift","type":"uint256"},{"internalType":"address","name":"giftAddress","type":"address"}],"name":"giftDude","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"makeMarketingDudes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxDudenessPerMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"dudeProof","type":"bytes32[]"},{"internalType":"uint256","name":"dudesToMint","type":"uint256"}],"name":"privateDudeFactory","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"dudesToMint","type":"uint256"}],"name":"publicDudeFactory","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"dudeRoot_","type":"bytes32"}],"name":"setDudeRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_factoryLimit","type":"uint256"}],"name":"setFactoryLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxDudenessPerMint","type":"uint256"}],"name":"setMaxDudenessPerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"setOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_power","type":"uint256"}],"name":"setPowerRequired","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"toogleDudeState","outputs":[{"internalType":"bool","name":"pauseState","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"dudeProof","type":"bytes32[]"},{"internalType":"address","name":"sender","type":"address"}],"name":"verifyDude","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040526002600a5566957588590e5000600b55610d05600c553480156200002757600080fd5b5060405162003ab138038062003ab183398181016040528101906200004d919062000313565b336040518060400160405280600c81526020017f74686564756465647564657300000000000000000000000000000000000000008152506040518060400160405280600881526020017f44554445445544450000000000000000000000000000000000000000000000008152508160029080519060200190620000d2929190620001ce565b508060039080519060200190620000eb929190620001ce565b50620000fc620001c960201b60201c565b600081905550505080600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d7660405160405180910390a35081600e9080519060200190620001b9929190620001ce565b5080600d81905550505062000521565b600090565b828054620001dc9062000418565b90600052602060002090601f0160209004810192826200020057600085556200024c565b82601f106200021b57805160ff19168380011785556200024c565b828001600101855582156200024c579182015b828111156200024b5782518255916020019190600101906200022e565b5b5090506200025b91906200025f565b5090565b5b808211156200027a57600081600090555060010162000260565b5090565b6000620002956200028f84620003a2565b62000379565b905082815260208101848484011115620002b457620002b3620004e7565b5b620002c1848285620003e2565b509392505050565b600081519050620002da8162000507565b92915050565b600082601f830112620002f857620002f7620004e2565b5b81516200030a8482602086016200027e565b91505092915050565b600080604083850312156200032d576200032c620004f1565b5b600083015167ffffffffffffffff8111156200034e576200034d620004ec565b5b6200035c85828601620002e0565b92505060206200036f85828601620002c9565b9150509250929050565b60006200038562000398565b90506200039382826200044e565b919050565b6000604051905090565b600067ffffffffffffffff821115620003c057620003bf620004b3565b5b620003cb82620004f6565b9050602081019050919050565b6000819050919050565b60005b8381101562000402578082015181840152602081019050620003e5565b8381111562000412576000848401525b50505050565b600060028204905060018216806200043157607f821691505b6020821081141562000448576200044762000484565b5b50919050565b6200045982620004f6565b810181811067ffffffffffffffff821117156200047b576200047a620004b3565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b6200051281620003d8565b81146200051e57600080fd5b50565b61358080620005316000396000f3fe6080604052600436106102045760003560e01c806370a0823111610118578063a3c286e8116100a0578063c87b56dd1161006f578063c87b56dd146106ff578063cd50990f1461073c578063cda58d5114610767578063d5cba9b614610790578063e985e9c5146107cd57610204565b8063a3c286e814610687578063a56b5852146106a3578063b88d4fde146106cc578063bfded78f146106e857610204565b806390ab6205116100e757806390ab6205146105b157806391802872146105da57806395d89b41146105f6578063978f6c5f14610621578063a22cb4651461065e57610204565b806370a08231146104f35780637b169fe7146105305780637fa123a01461055b5780638da5cb5b1461058657610204565b806323b872dd1161019b578063501939c41161016a578063501939c41461041057806355f804b3146104395780636352211e1461046257806369f310d71461049f5780636ebe89be146104ca57610204565b806323b872dd1461037257806332022b051461038e57806342842e0e146103b75780634e1480c9146103d357610204565b8063095ea7b3116101d7578063095ea7b3146102eb57806313af4035146103075780631686a6f11461033057806318160ddd1461034757610204565b806301ffc9a71461020957806306fdde03146102465780630724604d14610271578063081812fc146102ae575b600080fd5b34801561021557600080fd5b50610230600480360381019061022b9190612d72565b61080a565b60405161023d9190613079565b60405180910390f35b34801561025257600080fd5b5061025b61089c565b60405161026891906130af565b60405180910390f35b34801561027d57600080fd5b5061029860048036038101906102939190612c85565b61092e565b6040516102a59190613079565b60405180910390f35b3480156102ba57600080fd5b506102d560048036038101906102d09190612e15565b610949565b6040516102e29190613012565b60405180910390f35b61030560048036038101906103009190612c45565b6109c8565b005b34801561031357600080fd5b5061032e60048036038101906103299190612ac2565b610b0c565b005b34801561033c57600080fd5b50610345610c3a565b005b34801561035357600080fd5b5061035c610d31565b60405161036991906130f1565b60405180910390f35b61038c60048036038101906103879190612b2f565b610d48565b005b34801561039a57600080fd5b506103b560048036038101906103b09190612e15565b61106d565b005b6103d160048036038101906103cc9190612b2f565b611107565b005b3480156103df57600080fd5b506103fa60048036038101906103f59190612e15565b611127565b6040516104079190613079565b60405180910390f35b34801561041c57600080fd5b5061043760048036038101906104329190612e15565b61113b565b005b34801561044557600080fd5b50610460600480360381019061045b9190612dcc565b6111d5565b005b34801561046e57600080fd5b5061048960048036038101906104849190612e15565b61127f565b6040516104969190613012565b60405180910390f35b3480156104ab57600080fd5b506104b4611291565b6040516104c191906130f1565b60405180910390f35b3480156104d657600080fd5b506104f160048036038101906104ec9190612e42565b611297565b005b3480156104ff57600080fd5b5061051a60048036038101906105159190612ac2565b61137a565b60405161052791906130f1565b60405180910390f35b34801561053c57600080fd5b50610545611433565b60405161055291906130f1565b60405180910390f35b34801561056757600080fd5b50610570611439565b60405161057d91906130f1565b60405180910390f35b34801561059257600080fd5b5061059b61143f565b6040516105a89190613012565b60405180910390f35b3480156105bd57600080fd5b506105d860048036038101906105d39190612e15565b611465565b005b6105f460048036038101906105ef9190612ce5565b61153b565b005b34801561060257600080fd5b5061060b61171c565b60405161061891906130af565b60405180910390f35b34801561062d57600080fd5b5061064860048036038101906106439190612e15565b6117ae565b6040516106559190613079565b60405180910390f35b34801561066a57600080fd5b5061068560048036038101906106809190612c05565b611852565b005b6106a1600480360381019061069c9190612e15565b61195d565b005b3480156106af57600080fd5b506106ca60048036038101906106c59190612e15565b611afb565b005b6106e660048036038101906106e19190612b82565b611b95565b005b3480156106f457600080fd5b506106fd611c08565b005b34801561070b57600080fd5b5061072660048036038101906107219190612e15565b611cf9565b60405161073391906130af565b60405180910390f35b34801561074857600080fd5b50610751611d98565b60405161075e9190613094565b60405180910390f35b34801561077357600080fd5b5061078e60048036038101906107899190612d45565b611d9e565b005b34801561079c57600080fd5b506107b760048036038101906107b29190612ac2565b611e38565b6040516107c491906130f1565b60405180910390f35b3480156107d957600080fd5b506107f460048036038101906107ef9190612aef565b611e4a565b6040516108019190613079565b60405180910390f35b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061086557506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806108955750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6060600280546108ab9061332c565b80601f01602080910402602001604051908101604052809291908181526020018280546108d79061332c565b80156109245780601f106108f957610100808354040283529160200191610924565b820191906000526020600020905b81548152906001019060200180831161090757829003601f168201915b5050505050905090565b60008061093c858585611ede565b9050809150509392505050565b600061095482611f28565b61098a576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006109d38261127f565b90508073ffffffffffffffffffffffffffffffffffffffff166109f4611f87565b73ffffffffffffffffffffffffffffffffffffffff1614610a5757610a2081610a1b611f87565b611e4a565b610a56576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610b9c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b93906130d1565b60405180910390fd5b80600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d7660405160405180910390a350565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610cca576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cc1906130d1565b60405180910390fd5b600c546021610cd7610d31565b011115610d10576040517fdc5013cd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610d2f7356e7483d12f22f4759f8bda80b9affebc25d74ea6021611f8f565b565b6000610d3b61214c565b6001546000540303905090565b6000610d5382612151565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610dba576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610dc68461221f565b91509150610ddc8187610dd7611f87565b612246565b610e2857610df186610dec611f87565b611e4a565b610e27576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415610e8f576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610e9c868686600161228a565b8015610ea757600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610f7585610f51888887612290565b7c0200000000000000000000000000000000000000000000000000000000176122b8565b600460008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084161415610ffd576000600185019050600060046000838152602001908152602001600020541415610ffb576000548114610ffa578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461106586868660016122e3565b505050505050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146110fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110f4906130d1565b60405180910390fd5b80600b8190555050565b61112283838360405180602001604052806000815250611b95565b505050565b60006111346009836122e9565b9050919050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146111cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111c2906130d1565b60405180910390fd5b80600c8190555050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611265576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161125c906130d1565b60405180910390fd5b80600e908051906020019061127b92919061286b565b5050565b600061128a82612151565b9050919050565b600c5481565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611327576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161131e906130d1565b60405180910390fd5b600c5482611333610d31565b01111561136c576040517fdc5013cd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6113768183611f8f565b5050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156113e2576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b600a5481565b600b5481565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146114f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114ec906130d1565b60405180910390fd5b4781111561152f576040517fb513488700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6115388161231b565b50565b80611548600960036122e9565b61157e576040517f25ee900f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600c548161158a610d31565b0111156115c3576040517fdc5013cd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a54816115d0336123c0565b011115611609576040517fff794c3900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600b54023414611646576040517ff65faf4600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611652600960016122e9565b611688576040517f90e4bbb700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611694600960026122e9565b156116cb576040517ff8618c6100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6116d6848433611ede565b61170c576040517f8b4bbb6300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6117163383611f8f565b50505050565b60606003805461172b9061332c565b80601f01602080910402602001604051908101604052809291908181526020018280546117579061332c565b80156117a45780601f10611779576101008083540402835291602001916117a4565b820191906000526020600020905b81548152906001019060200180831161178757829003601f168201915b5050505050905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611840576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611837906130d1565b60405180910390fd5b61184b600983612417565b9050919050565b806007600061185f611f87565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661190c611f87565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516119519190613079565b60405180910390a35050565b8061196a600960036122e9565b6119a0576040517f25ee900f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600c54816119ac610d31565b0111156119e5576040517fdc5013cd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a54816119f2336123c0565b011115611a2b576040517fff794c3900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600b54023414611a68576040517ff65faf4600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611a74600960016122e9565b15611aab576040517fea9da1ca00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611ab7600960026122e9565b611aed576040517f67a2f35600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611af7338361244c565b5050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611b8b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b82906130d1565b60405180910390fd5b80600a8190555050565b611ba0848484610d48565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611c0257611bcb8484848461246a565b611c01576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611c98576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c8f906130d1565b60405180910390fd5b60004790506000811415611cd8576040517ff65faf4600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611cf67356e7483d12f22f4759f8bda80b9affebc25d74ea826125ca565b50565b6060611d0482611f28565b611d3a576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611d44612672565b9050600081511415611d655760405180602001604052806000815250611d90565b80611d6f84612704565b604051602001611d80929190612fd9565b6040516020818303038152906040525b915050919050565b600d5481565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611e2e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e25906130d1565b60405180910390fd5b80600d8190555050565b6000611e43826123c0565b9050919050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60008082604051602001611ef29190612fbe565b6040516020818303038152906040528051906020012090506000611f1a8686600d548561275d565b905080925050509392505050565b600081611f3361214c565b11158015611f42575060005482105b8015611f80575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b6000805490506000821415611fd0576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611fdd600084838561228a565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612054836120456000866000612290565b61204e856127b5565b176122b8565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b8181146120f557808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001810190506120ba565b506000821415612131576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600081905550505061214760008483856122e3565b505050565b600090565b6000808290508061216061214c565b116121e8576000548110156121e75760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821614156121e5575b60008114156121db5760046000836001900393508381526020019081526020016000205490506121b0565b809250505061221a565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e86122a78686846127c5565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b600080600160ff8416856000016000600887901c815260200190815260200160002054901c1690508091505092915050565b612351737787cf7fa044f751ad055c92a4be4ea6cf4d08516064600c846123429190613212565b61234c91906131e1565b6125ca565b6123877356e7483d12f22f4759f8bda80b9affebc25d74ea6064603b846123789190613212565b61238291906131e1565b6125ca565b6123bd734f24d74f78cb2f97a8b7824dd7cabc27677564556064601d846123ae9190613212565b6123b891906131e1565b6125ca565b50565b600067ffffffffffffffff6040600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c169050919050565b60008160081c60005282602052604060002060ff831681546001821b8082189150808216151594508184555050505092915050565b6124668282604051806020016040528060008152506127ce565b5050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612490611f87565b8786866040518563ffffffff1660e01b81526004016124b2949392919061302d565b602060405180830381600087803b1580156124cc57600080fd5b505af19250505080156124fd57506040513d601f19601f820116820180604052508101906124fa9190612d9f565b60015b612577573d806000811461252d576040519150601f19603f3d011682016040523d82523d6000602084013e612532565b606091505b5060008151141561256f576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b60008273ffffffffffffffffffffffffffffffffffffffff16826040516125f090612ffd565b60006040518083038185875af1925050503d806000811461262d576040519150601f19603f3d011682016040523d82523d6000602084013e612632565b606091505b505090508061266d576040517fa966b2bc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505050565b6060600e80546126819061332c565b80601f01602080910402602001604051908101604052809291908181526020018280546126ad9061332c565b80156126fa5780601f106126cf576101008083540402835291602001916126fa565b820191906000526020600020905b8154815290600101906020018083116126dd57829003601f168201915b5050505050905090565b606060a060405101806040526020810391506000825281835b60011561274857600184039350600a81066030018453600a810490508061274357612748565b61271d565b50828103602084039350808452505050919050565b600083156127a8578360051b8501855b6001156127a5578035841160051b848152813560208218526040600020945060208201915082821061279f57506127a5565b5061276d565b50505b8282149050949350505050565b60006001821460e11b9050919050565b60009392505050565b6127d88383611f8f565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461286657600080549050600083820390505b612818600086838060010194508661246a565b61284e576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81811061280557816000541461286357600080fd5b50505b505050565b8280546128779061332c565b90600052602060002090601f01602090048101928261289957600085556128e0565b82601f106128b257805160ff19168380011785556128e0565b828001600101855582156128e0579182015b828111156128df5782518255916020019190600101906128c4565b5b5090506128ed91906128f1565b5090565b5b8082111561290a5760008160009055506001016128f2565b5090565b600061292161291c84613131565b61310c565b90508281526020810184848401111561293d5761293c61347e565b5b6129488482856132ea565b509392505050565b600061296361295e84613162565b61310c565b90508281526020810184848401111561297f5761297e61347e565b5b61298a8482856132ea565b509392505050565b6000813590506129a1816134d7565b92915050565b60008083601f8401126129bd576129bc613474565b5b8235905067ffffffffffffffff8111156129da576129d961346f565b5b6020830191508360208202830111156129f6576129f5613479565b5b9250929050565b600081359050612a0c816134ee565b92915050565b600081359050612a2181613505565b92915050565b600081359050612a368161351c565b92915050565b600081519050612a4b8161351c565b92915050565b600082601f830112612a6657612a65613474565b5b8135612a7684826020860161290e565b91505092915050565b600082601f830112612a9457612a93613474565b5b8135612aa4848260208601612950565b91505092915050565b600081359050612abc81613533565b92915050565b600060208284031215612ad857612ad7613488565b5b6000612ae684828501612992565b91505092915050565b60008060408385031215612b0657612b05613488565b5b6000612b1485828601612992565b9250506020612b2585828601612992565b9150509250929050565b600080600060608486031215612b4857612b47613488565b5b6000612b5686828701612992565b9350506020612b6786828701612992565b9250506040612b7886828701612aad565b9150509250925092565b60008060008060808587031215612b9c57612b9b613488565b5b6000612baa87828801612992565b9450506020612bbb87828801612992565b9350506040612bcc87828801612aad565b925050606085013567ffffffffffffffff811115612bed57612bec613483565b5b612bf987828801612a51565b91505092959194509250565b60008060408385031215612c1c57612c1b613488565b5b6000612c2a85828601612992565b9250506020612c3b858286016129fd565b9150509250929050565b60008060408385031215612c5c57612c5b613488565b5b6000612c6a85828601612992565b9250506020612c7b85828601612aad565b9150509250929050565b600080600060408486031215612c9e57612c9d613488565b5b600084013567ffffffffffffffff811115612cbc57612cbb613483565b5b612cc8868287016129a7565b93509350506020612cdb86828701612992565b9150509250925092565b600080600060408486031215612cfe57612cfd613488565b5b600084013567ffffffffffffffff811115612d1c57612d1b613483565b5b612d28868287016129a7565b93509350506020612d3b86828701612aad565b9150509250925092565b600060208284031215612d5b57612d5a613488565b5b6000612d6984828501612a12565b91505092915050565b600060208284031215612d8857612d87613488565b5b6000612d9684828501612a27565b91505092915050565b600060208284031215612db557612db4613488565b5b6000612dc384828501612a3c565b91505092915050565b600060208284031215612de257612de1613488565b5b600082013567ffffffffffffffff811115612e0057612dff613483565b5b612e0c84828501612a7f565b91505092915050565b600060208284031215612e2b57612e2a613488565b5b6000612e3984828501612aad565b91505092915050565b60008060408385031215612e5957612e58613488565b5b6000612e6785828601612aad565b9250506020612e7885828601612992565b9150509250929050565b612e8b8161326c565b82525050565b612ea2612e9d8261326c565b61338f565b82525050565b612eb18161327e565b82525050565b612ec08161328a565b82525050565b6000612ed182613193565b612edb81856131a9565b9350612eeb8185602086016132f9565b612ef48161348d565b840191505092915050565b6000612f0a8261319e565b612f1481856131c5565b9350612f248185602086016132f9565b612f2d8161348d565b840191505092915050565b6000612f438261319e565b612f4d81856131d6565b9350612f5d8185602086016132f9565b80840191505092915050565b6000612f76600c836131c5565b9150612f81826134ab565b602082019050919050565b6000612f996000836131ba565b9150612fa4826134d4565b600082019050919050565b612fb8816132e0565b82525050565b6000612fca8284612e91565b60148201915081905092915050565b6000612fe58285612f38565b9150612ff18284612f38565b91508190509392505050565b600061300882612f8c565b9150819050919050565b60006020820190506130276000830184612e82565b92915050565b60006080820190506130426000830187612e82565b61304f6020830186612e82565b61305c6040830185612faf565b818103606083015261306e8184612ec6565b905095945050505050565b600060208201905061308e6000830184612ea8565b92915050565b60006020820190506130a96000830184612eb7565b92915050565b600060208201905081810360008301526130c98184612eff565b905092915050565b600060208201905081810360008301526130ea81612f69565b9050919050565b60006020820190506131066000830184612faf565b92915050565b6000613116613127565b9050613122828261335e565b919050565b6000604051905090565b600067ffffffffffffffff82111561314c5761314b613440565b5b6131558261348d565b9050602081019050919050565b600067ffffffffffffffff82111561317d5761317c613440565b5b6131868261348d565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b60006131ec826132e0565b91506131f7836132e0565b925082613207576132066133e2565b5b828204905092915050565b600061321d826132e0565b9150613228836132e0565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613261576132606133b3565b5b828202905092915050565b6000613277826132c0565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b838110156133175780820151818401526020810190506132fc565b83811115613326576000848401525b50505050565b6000600282049050600182168061334457607f821691505b6020821081141561335857613357613411565b5b50919050565b6133678261348d565b810181811067ffffffffffffffff8211171561338657613385613440565b5b80604052505050565b600061339a826133a1565b9050919050565b60006133ac8261349e565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f554e415554484f52495a45440000000000000000000000000000000000000000600082015250565b50565b6134e08161326c565b81146134eb57600080fd5b50565b6134f78161327e565b811461350257600080fd5b50565b61350e8161328a565b811461351957600080fd5b50565b61352581613294565b811461353057600080fd5b50565b61353c816132e0565b811461354757600080fd5b5056fea2646970667358221220d14524e2354317fb0d088bf4b1bb5566bb267f9e7f27a1b34c02c8503ce04b9064736f6c634300080700330000000000000000000000000000000000000000000000000000000000000040a8610dd834c74250029fab900207255cb879387fbbadcda9e57deb4c5ead5cee0000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d58536a3343335662666e746b59347546424b334e374c4b4e61564b654673675732585546714b4d4c7363474a2f00000000000000000000
Deployed Bytecode
0x6080604052600436106102045760003560e01c806370a0823111610118578063a3c286e8116100a0578063c87b56dd1161006f578063c87b56dd146106ff578063cd50990f1461073c578063cda58d5114610767578063d5cba9b614610790578063e985e9c5146107cd57610204565b8063a3c286e814610687578063a56b5852146106a3578063b88d4fde146106cc578063bfded78f146106e857610204565b806390ab6205116100e757806390ab6205146105b157806391802872146105da57806395d89b41146105f6578063978f6c5f14610621578063a22cb4651461065e57610204565b806370a08231146104f35780637b169fe7146105305780637fa123a01461055b5780638da5cb5b1461058657610204565b806323b872dd1161019b578063501939c41161016a578063501939c41461041057806355f804b3146104395780636352211e1461046257806369f310d71461049f5780636ebe89be146104ca57610204565b806323b872dd1461037257806332022b051461038e57806342842e0e146103b75780634e1480c9146103d357610204565b8063095ea7b3116101d7578063095ea7b3146102eb57806313af4035146103075780631686a6f11461033057806318160ddd1461034757610204565b806301ffc9a71461020957806306fdde03146102465780630724604d14610271578063081812fc146102ae575b600080fd5b34801561021557600080fd5b50610230600480360381019061022b9190612d72565b61080a565b60405161023d9190613079565b60405180910390f35b34801561025257600080fd5b5061025b61089c565b60405161026891906130af565b60405180910390f35b34801561027d57600080fd5b5061029860048036038101906102939190612c85565b61092e565b6040516102a59190613079565b60405180910390f35b3480156102ba57600080fd5b506102d560048036038101906102d09190612e15565b610949565b6040516102e29190613012565b60405180910390f35b61030560048036038101906103009190612c45565b6109c8565b005b34801561031357600080fd5b5061032e60048036038101906103299190612ac2565b610b0c565b005b34801561033c57600080fd5b50610345610c3a565b005b34801561035357600080fd5b5061035c610d31565b60405161036991906130f1565b60405180910390f35b61038c60048036038101906103879190612b2f565b610d48565b005b34801561039a57600080fd5b506103b560048036038101906103b09190612e15565b61106d565b005b6103d160048036038101906103cc9190612b2f565b611107565b005b3480156103df57600080fd5b506103fa60048036038101906103f59190612e15565b611127565b6040516104079190613079565b60405180910390f35b34801561041c57600080fd5b5061043760048036038101906104329190612e15565b61113b565b005b34801561044557600080fd5b50610460600480360381019061045b9190612dcc565b6111d5565b005b34801561046e57600080fd5b5061048960048036038101906104849190612e15565b61127f565b6040516104969190613012565b60405180910390f35b3480156104ab57600080fd5b506104b4611291565b6040516104c191906130f1565b60405180910390f35b3480156104d657600080fd5b506104f160048036038101906104ec9190612e42565b611297565b005b3480156104ff57600080fd5b5061051a60048036038101906105159190612ac2565b61137a565b60405161052791906130f1565b60405180910390f35b34801561053c57600080fd5b50610545611433565b60405161055291906130f1565b60405180910390f35b34801561056757600080fd5b50610570611439565b60405161057d91906130f1565b60405180910390f35b34801561059257600080fd5b5061059b61143f565b6040516105a89190613012565b60405180910390f35b3480156105bd57600080fd5b506105d860048036038101906105d39190612e15565b611465565b005b6105f460048036038101906105ef9190612ce5565b61153b565b005b34801561060257600080fd5b5061060b61171c565b60405161061891906130af565b60405180910390f35b34801561062d57600080fd5b5061064860048036038101906106439190612e15565b6117ae565b6040516106559190613079565b60405180910390f35b34801561066a57600080fd5b5061068560048036038101906106809190612c05565b611852565b005b6106a1600480360381019061069c9190612e15565b61195d565b005b3480156106af57600080fd5b506106ca60048036038101906106c59190612e15565b611afb565b005b6106e660048036038101906106e19190612b82565b611b95565b005b3480156106f457600080fd5b506106fd611c08565b005b34801561070b57600080fd5b5061072660048036038101906107219190612e15565b611cf9565b60405161073391906130af565b60405180910390f35b34801561074857600080fd5b50610751611d98565b60405161075e9190613094565b60405180910390f35b34801561077357600080fd5b5061078e60048036038101906107899190612d45565b611d9e565b005b34801561079c57600080fd5b506107b760048036038101906107b29190612ac2565b611e38565b6040516107c491906130f1565b60405180910390f35b3480156107d957600080fd5b506107f460048036038101906107ef9190612aef565b611e4a565b6040516108019190613079565b60405180910390f35b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061086557506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806108955750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6060600280546108ab9061332c565b80601f01602080910402602001604051908101604052809291908181526020018280546108d79061332c565b80156109245780601f106108f957610100808354040283529160200191610924565b820191906000526020600020905b81548152906001019060200180831161090757829003601f168201915b5050505050905090565b60008061093c858585611ede565b9050809150509392505050565b600061095482611f28565b61098a576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006109d38261127f565b90508073ffffffffffffffffffffffffffffffffffffffff166109f4611f87565b73ffffffffffffffffffffffffffffffffffffffff1614610a5757610a2081610a1b611f87565b611e4a565b610a56576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610b9c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b93906130d1565b60405180910390fd5b80600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d7660405160405180910390a350565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610cca576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cc1906130d1565b60405180910390fd5b600c546021610cd7610d31565b011115610d10576040517fdc5013cd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610d2f7356e7483d12f22f4759f8bda80b9affebc25d74ea6021611f8f565b565b6000610d3b61214c565b6001546000540303905090565b6000610d5382612151565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610dba576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610dc68461221f565b91509150610ddc8187610dd7611f87565b612246565b610e2857610df186610dec611f87565b611e4a565b610e27576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415610e8f576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610e9c868686600161228a565b8015610ea757600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610f7585610f51888887612290565b7c0200000000000000000000000000000000000000000000000000000000176122b8565b600460008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084161415610ffd576000600185019050600060046000838152602001908152602001600020541415610ffb576000548114610ffa578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461106586868660016122e3565b505050505050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146110fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110f4906130d1565b60405180910390fd5b80600b8190555050565b61112283838360405180602001604052806000815250611b95565b505050565b60006111346009836122e9565b9050919050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146111cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111c2906130d1565b60405180910390fd5b80600c8190555050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611265576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161125c906130d1565b60405180910390fd5b80600e908051906020019061127b92919061286b565b5050565b600061128a82612151565b9050919050565b600c5481565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611327576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161131e906130d1565b60405180910390fd5b600c5482611333610d31565b01111561136c576040517fdc5013cd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6113768183611f8f565b5050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156113e2576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b600a5481565b600b5481565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146114f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114ec906130d1565b60405180910390fd5b4781111561152f576040517fb513488700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6115388161231b565b50565b80611548600960036122e9565b61157e576040517f25ee900f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600c548161158a610d31565b0111156115c3576040517fdc5013cd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a54816115d0336123c0565b011115611609576040517fff794c3900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600b54023414611646576040517ff65faf4600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611652600960016122e9565b611688576040517f90e4bbb700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611694600960026122e9565b156116cb576040517ff8618c6100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6116d6848433611ede565b61170c576040517f8b4bbb6300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6117163383611f8f565b50505050565b60606003805461172b9061332c565b80601f01602080910402602001604051908101604052809291908181526020018280546117579061332c565b80156117a45780601f10611779576101008083540402835291602001916117a4565b820191906000526020600020905b81548152906001019060200180831161178757829003601f168201915b5050505050905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611840576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611837906130d1565b60405180910390fd5b61184b600983612417565b9050919050565b806007600061185f611f87565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661190c611f87565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516119519190613079565b60405180910390a35050565b8061196a600960036122e9565b6119a0576040517f25ee900f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600c54816119ac610d31565b0111156119e5576040517fdc5013cd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a54816119f2336123c0565b011115611a2b576040517fff794c3900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600b54023414611a68576040517ff65faf4600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611a74600960016122e9565b15611aab576040517fea9da1ca00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611ab7600960026122e9565b611aed576040517f67a2f35600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611af7338361244c565b5050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611b8b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b82906130d1565b60405180910390fd5b80600a8190555050565b611ba0848484610d48565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611c0257611bcb8484848461246a565b611c01576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611c98576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c8f906130d1565b60405180910390fd5b60004790506000811415611cd8576040517ff65faf4600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611cf67356e7483d12f22f4759f8bda80b9affebc25d74ea826125ca565b50565b6060611d0482611f28565b611d3a576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611d44612672565b9050600081511415611d655760405180602001604052806000815250611d90565b80611d6f84612704565b604051602001611d80929190612fd9565b6040516020818303038152906040525b915050919050565b600d5481565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611e2e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e25906130d1565b60405180910390fd5b80600d8190555050565b6000611e43826123c0565b9050919050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60008082604051602001611ef29190612fbe565b6040516020818303038152906040528051906020012090506000611f1a8686600d548561275d565b905080925050509392505050565b600081611f3361214c565b11158015611f42575060005482105b8015611f80575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b6000805490506000821415611fd0576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611fdd600084838561228a565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612054836120456000866000612290565b61204e856127b5565b176122b8565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b8181146120f557808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001810190506120ba565b506000821415612131576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600081905550505061214760008483856122e3565b505050565b600090565b6000808290508061216061214c565b116121e8576000548110156121e75760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821614156121e5575b60008114156121db5760046000836001900393508381526020019081526020016000205490506121b0565b809250505061221a565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e86122a78686846127c5565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b600080600160ff8416856000016000600887901c815260200190815260200160002054901c1690508091505092915050565b612351737787cf7fa044f751ad055c92a4be4ea6cf4d08516064600c846123429190613212565b61234c91906131e1565b6125ca565b6123877356e7483d12f22f4759f8bda80b9affebc25d74ea6064603b846123789190613212565b61238291906131e1565b6125ca565b6123bd734f24d74f78cb2f97a8b7824dd7cabc27677564556064601d846123ae9190613212565b6123b891906131e1565b6125ca565b50565b600067ffffffffffffffff6040600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c169050919050565b60008160081c60005282602052604060002060ff831681546001821b8082189150808216151594508184555050505092915050565b6124668282604051806020016040528060008152506127ce565b5050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612490611f87565b8786866040518563ffffffff1660e01b81526004016124b2949392919061302d565b602060405180830381600087803b1580156124cc57600080fd5b505af19250505080156124fd57506040513d601f19601f820116820180604052508101906124fa9190612d9f565b60015b612577573d806000811461252d576040519150601f19603f3d011682016040523d82523d6000602084013e612532565b606091505b5060008151141561256f576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b60008273ffffffffffffffffffffffffffffffffffffffff16826040516125f090612ffd565b60006040518083038185875af1925050503d806000811461262d576040519150601f19603f3d011682016040523d82523d6000602084013e612632565b606091505b505090508061266d576040517fa966b2bc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505050565b6060600e80546126819061332c565b80601f01602080910402602001604051908101604052809291908181526020018280546126ad9061332c565b80156126fa5780601f106126cf576101008083540402835291602001916126fa565b820191906000526020600020905b8154815290600101906020018083116126dd57829003601f168201915b5050505050905090565b606060a060405101806040526020810391506000825281835b60011561274857600184039350600a81066030018453600a810490508061274357612748565b61271d565b50828103602084039350808452505050919050565b600083156127a8578360051b8501855b6001156127a5578035841160051b848152813560208218526040600020945060208201915082821061279f57506127a5565b5061276d565b50505b8282149050949350505050565b60006001821460e11b9050919050565b60009392505050565b6127d88383611f8f565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461286657600080549050600083820390505b612818600086838060010194508661246a565b61284e576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81811061280557816000541461286357600080fd5b50505b505050565b8280546128779061332c565b90600052602060002090601f01602090048101928261289957600085556128e0565b82601f106128b257805160ff19168380011785556128e0565b828001600101855582156128e0579182015b828111156128df5782518255916020019190600101906128c4565b5b5090506128ed91906128f1565b5090565b5b8082111561290a5760008160009055506001016128f2565b5090565b600061292161291c84613131565b61310c565b90508281526020810184848401111561293d5761293c61347e565b5b6129488482856132ea565b509392505050565b600061296361295e84613162565b61310c565b90508281526020810184848401111561297f5761297e61347e565b5b61298a8482856132ea565b509392505050565b6000813590506129a1816134d7565b92915050565b60008083601f8401126129bd576129bc613474565b5b8235905067ffffffffffffffff8111156129da576129d961346f565b5b6020830191508360208202830111156129f6576129f5613479565b5b9250929050565b600081359050612a0c816134ee565b92915050565b600081359050612a2181613505565b92915050565b600081359050612a368161351c565b92915050565b600081519050612a4b8161351c565b92915050565b600082601f830112612a6657612a65613474565b5b8135612a7684826020860161290e565b91505092915050565b600082601f830112612a9457612a93613474565b5b8135612aa4848260208601612950565b91505092915050565b600081359050612abc81613533565b92915050565b600060208284031215612ad857612ad7613488565b5b6000612ae684828501612992565b91505092915050565b60008060408385031215612b0657612b05613488565b5b6000612b1485828601612992565b9250506020612b2585828601612992565b9150509250929050565b600080600060608486031215612b4857612b47613488565b5b6000612b5686828701612992565b9350506020612b6786828701612992565b9250506040612b7886828701612aad565b9150509250925092565b60008060008060808587031215612b9c57612b9b613488565b5b6000612baa87828801612992565b9450506020612bbb87828801612992565b9350506040612bcc87828801612aad565b925050606085013567ffffffffffffffff811115612bed57612bec613483565b5b612bf987828801612a51565b91505092959194509250565b60008060408385031215612c1c57612c1b613488565b5b6000612c2a85828601612992565b9250506020612c3b858286016129fd565b9150509250929050565b60008060408385031215612c5c57612c5b613488565b5b6000612c6a85828601612992565b9250506020612c7b85828601612aad565b9150509250929050565b600080600060408486031215612c9e57612c9d613488565b5b600084013567ffffffffffffffff811115612cbc57612cbb613483565b5b612cc8868287016129a7565b93509350506020612cdb86828701612992565b9150509250925092565b600080600060408486031215612cfe57612cfd613488565b5b600084013567ffffffffffffffff811115612d1c57612d1b613483565b5b612d28868287016129a7565b93509350506020612d3b86828701612aad565b9150509250925092565b600060208284031215612d5b57612d5a613488565b5b6000612d6984828501612a12565b91505092915050565b600060208284031215612d8857612d87613488565b5b6000612d9684828501612a27565b91505092915050565b600060208284031215612db557612db4613488565b5b6000612dc384828501612a3c565b91505092915050565b600060208284031215612de257612de1613488565b5b600082013567ffffffffffffffff811115612e0057612dff613483565b5b612e0c84828501612a7f565b91505092915050565b600060208284031215612e2b57612e2a613488565b5b6000612e3984828501612aad565b91505092915050565b60008060408385031215612e5957612e58613488565b5b6000612e6785828601612aad565b9250506020612e7885828601612992565b9150509250929050565b612e8b8161326c565b82525050565b612ea2612e9d8261326c565b61338f565b82525050565b612eb18161327e565b82525050565b612ec08161328a565b82525050565b6000612ed182613193565b612edb81856131a9565b9350612eeb8185602086016132f9565b612ef48161348d565b840191505092915050565b6000612f0a8261319e565b612f1481856131c5565b9350612f248185602086016132f9565b612f2d8161348d565b840191505092915050565b6000612f438261319e565b612f4d81856131d6565b9350612f5d8185602086016132f9565b80840191505092915050565b6000612f76600c836131c5565b9150612f81826134ab565b602082019050919050565b6000612f996000836131ba565b9150612fa4826134d4565b600082019050919050565b612fb8816132e0565b82525050565b6000612fca8284612e91565b60148201915081905092915050565b6000612fe58285612f38565b9150612ff18284612f38565b91508190509392505050565b600061300882612f8c565b9150819050919050565b60006020820190506130276000830184612e82565b92915050565b60006080820190506130426000830187612e82565b61304f6020830186612e82565b61305c6040830185612faf565b818103606083015261306e8184612ec6565b905095945050505050565b600060208201905061308e6000830184612ea8565b92915050565b60006020820190506130a96000830184612eb7565b92915050565b600060208201905081810360008301526130c98184612eff565b905092915050565b600060208201905081810360008301526130ea81612f69565b9050919050565b60006020820190506131066000830184612faf565b92915050565b6000613116613127565b9050613122828261335e565b919050565b6000604051905090565b600067ffffffffffffffff82111561314c5761314b613440565b5b6131558261348d565b9050602081019050919050565b600067ffffffffffffffff82111561317d5761317c613440565b5b6131868261348d565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b60006131ec826132e0565b91506131f7836132e0565b925082613207576132066133e2565b5b828204905092915050565b600061321d826132e0565b9150613228836132e0565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613261576132606133b3565b5b828202905092915050565b6000613277826132c0565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b838110156133175780820151818401526020810190506132fc565b83811115613326576000848401525b50505050565b6000600282049050600182168061334457607f821691505b6020821081141561335857613357613411565b5b50919050565b6133678261348d565b810181811067ffffffffffffffff8211171561338657613385613440565b5b80604052505050565b600061339a826133a1565b9050919050565b60006133ac8261349e565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f554e415554484f52495a45440000000000000000000000000000000000000000600082015250565b50565b6134e08161326c565b81146134eb57600080fd5b50565b6134f78161327e565b811461350257600080fd5b50565b61350e8161328a565b811461351957600080fd5b50565b61352581613294565b811461353057600080fd5b50565b61353c816132e0565b811461354757600080fd5b5056fea2646970667358221220d14524e2354317fb0d088bf4b1bb5566bb267f9e7f27a1b34c02c8503ce04b9064736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000040a8610dd834c74250029fab900207255cb879387fbbadcda9e57deb4c5ead5cee0000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d58536a3343335662666e746b59347546424b334e374c4b4e61564b654673675732585546714b4d4c7363474a2f00000000000000000000
-----Decoded View---------------
Arg [0] : baseURI (string): ipfs://QmXSj3C3VbfntkY4uFBK3N7LKNaVKeFsgW2XUFqKMLscGJ/
Arg [1] : dudeRoot_ (bytes32): 0xa8610dd834c74250029fab900207255cb879387fbbadcda9e57deb4c5ead5cee
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : a8610dd834c74250029fab900207255cb879387fbbadcda9e57deb4c5ead5cee
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [3] : 697066733a2f2f516d58536a3343335662666e746b59347546424b334e374c4b
Arg [4] : 4e61564b654673675732585546714b4d4c7363474a2f00000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.