ETH Price: $2,139.90 (-1.95%)

Contract

0xFab34fD377F0CFE9703e2D84477076B64B42B845
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
Age
From
To
Set Approval For...212371162024-11-21 15:51:47106 days ago1732204307IN
0xFab34fD3...64B42B845
0 ETH0.0014648824.63105923
Set Approval For...211144562024-11-04 13:02:59123 days ago1730725379IN
0xFab34fD3...64B42B845
0 ETH0.000352385.93344648
Safe Transfer Fr...206283502024-08-28 16:42:23191 days ago1724863343IN
0xFab34fD3...64B42B845
0 ETH0.000308964.4663746
Set Approval For...203230382024-07-17 1:43:47234 days ago1721180627IN
0xFab34fD3...64B42B845
0 ETH0.000379566.39124297
Set Approval For...199254852024-05-22 12:41:35289 days ago1716381695IN
0xFab34fD3...64B42B845
0 ETH0.0008239713.87423532
Set Approval For...198795312024-05-16 2:22:59296 days ago1715826179IN
0xFab34fD3...64B42B845
0 ETH0.000152613.86471196
Set Approval For...198795312024-05-16 2:22:59296 days ago1715826179IN
0xFab34fD3...64B42B845
0 ETH0.000229523.86471196
Set Approval For...198643992024-05-13 23:33:11298 days ago1715643191IN
0xFab34fD3...64B42B845
0 ETH0.000134673.59366235
Set Approval For...198640692024-05-13 22:26:35298 days ago1715639195IN
0xFab34fD3...64B42B845
0 ETH0.000143963.84134847
Set Approval For...198576372024-05-13 0:52:11299 days ago1715561531IN
0xFab34fD3...64B42B845
0 ETH0.000213043.58723012
Set Approval For...196545972024-04-14 15:14:11327 days ago1713107651IN
0xFab34fD3...64B42B845
0 ETH0.0006609911.11637888
Set Approval For...196137332024-04-08 21:50:11333 days ago1712613011IN
0xFab34fD3...64B42B845
0 ETH0.0013979723.5392513
Set Approval For...196064782024-04-07 21:26:11334 days ago1712525171IN
0xFab34fD3...64B42B845
0 ETH0.0009304615.6673058
Set Approval For...195382312024-03-29 7:39:23343 days ago1711697963IN
0xFab34fD3...64B42B845
0 ETH0.0011098718.68828293
Set Approval For...195033082024-03-24 8:45:59348 days ago1711269959IN
0xFab34fD3...64B42B845
0 ETH0.0009274715.61701893
Set Approval For...193182792024-02-27 10:25:35374 days ago1709029535IN
0xFab34fD3...64B42B845
0 ETH0.0022948938.6417054
Set Approval For...190788212024-01-24 20:16:59408 days ago1706127419IN
0xFab34fD3...64B42B845
0 ETH0.000651510.97009412
Set Approval For...189693652024-01-09 12:20:35423 days ago1704802835IN
0xFab34fD3...64B42B845
0 ETH0.0009867516.61514854
Set Approval For...189537982024-01-07 7:40:59425 days ago1704613259IN
0xFab34fD3...64B42B845
0 ETH0.0017726429.84811236
Safe Transfer Fr...189062342023-12-31 15:04:23432 days ago1704035063IN
0xFab34fD3...64B42B845
0 ETH0.0009730118.68487775
Safe Transfer Fr...189035902023-12-31 6:10:35432 days ago1704003035IN
0xFab34fD3...64B42B845
0 ETH0.0006318811.64233519
Set Approval For...188818692023-12-28 4:55:11436 days ago1703739311IN
0xFab34fD3...64B42B845
0 ETH0.0018058630.40741698
Set Approval For...188675542023-12-26 4:42:11438 days ago1703565731IN
0xFab34fD3...64B42B845
0 ETH0.0007400712.46150732
Set Approval For...188612242023-12-25 7:19:11438 days ago1703488751IN
0xFab34fD3...64B42B845
0 ETH0.0011142918.76270493
Set Approval For...188611972023-12-25 7:13:23438 days ago1703488403IN
0xFab34fD3...64B42B845
0 ETH0.0011367419.1174533
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
DiamondExhibitionRegularPass

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 9999 runs

Other Settings:
default evmVersion
File 1 of 37 : DiamondExhibitionRegularPass.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// SPDX-License-Identifier: MIT
// Copyright 2023 PROOF Holdings Inc
pragma solidity ^0.8.15;
import {ERC721ACommon, BaseTokenURI} from "ethier/erc721/BaseTokenURI.sol";
import {SellableRedeemableRestrictableERC721} from "./SellableRedeemableRestrictableERC721.sol";
/**
* @title Diamond Exhibition: Regular Pass
* @notice A token claimable by all diamond nested Moonbirds that did not receive a Day One Pass, redeemable for
* diamond exhibition artworks.
*/
contract DiamondExhibitionRegularPass is SellableRedeemableRestrictableERC721 {
constructor(address admin, address steerer, address payable secondaryReceiver)
ERC721ACommon(admin, steerer, "Diamond Exhibition: Regular Pass", "REGULAR", secondaryReceiver, 500)
BaseTokenURI("https://metadata.proof.xyz/diamond-exhibition-pass/regular/")
{}
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 2 of 37 : BaseTokenURI.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT
// Copyright (c) 2023 the ethier authors (github.com/divergencetech/ethier)
pragma solidity >=0.8.0 <0.9.0;
import {AccessControlEnumerable} from "../utils/AccessControlEnumerable.sol";
import {ERC721A, ERC721ACommon} from "./ERC721ACommon.sol";
/**
* @notice ERC721 extension that implements a commonly used _baseURI() function
* to return an URL prefix that can be set by the contract steerer.
*/
contract BaseTokenURI is AccessControlEnumerable {
/**
* @notice Base token URI used as a prefix by tokenURI().
*/
string private _baseTokenURI;
constructor(string memory baseTokenURI_) {
_setBaseTokenURI(baseTokenURI_);
}
/**
* @notice Sets the base token URI prefix.
* @dev Only callable by the contract steerer.
*/
function setBaseTokenURI(string memory baseTokenURI_)
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 3 of 37 : SellableRedeemableRestrictableERC721.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT
// Copyright 2023 PROOF Holdings Inc
pragma solidity ^0.8.15;
import {ERC721A, ERC721ACommon, BaseTokenURI, ERC721ACommonBaseTokenURI} from "ethier/erc721/BaseTokenURI.sol";
import {OperatorFilterOS} from "ethier/erc721/OperatorFilterOS.sol";
import {
TransferRestrictedRedeemableERC721ACommon,
TransferRestriction
} from "proof/redemption/voucher/TransferRestrictedRedeemableERC721ACommon.sol";
import {SellableERC721ACommon} from "proof/sellers/sellable/SellableERC721ACommon.sol";
/**
* @notice A redeemable and sellable ERC721 token with operator filtering and transfer restrictions.
* @dev The contract name should be sung to the tune of "Modern Major-General"
*/
abstract contract SellableRedeemableRestrictableERC721 is
ERC721ACommonBaseTokenURI,
OperatorFilterOS,
SellableERC721ACommon,
TransferRestrictedRedeemableERC721ACommon
{
// =================================================================================================================
// Inheritance Resolution
// =================================================================================================================
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 4 of 37 : AccessControlEnumerable.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// SPDX-License-Identifier: MIT
// Copyright (c) 2023 the ethier authors (github.com/divergencetech/ethier)
pragma solidity >=0.8.0 <0.9.0;
import {AccessControlEnumerable as ACE} from "@openzeppelin/contracts/access/AccessControlEnumerable.sol";
contract AccessControlEnumerable is ACE {
/// @notice The default role intended to perform access-restricted actions.
/// @dev We are using this instead of DEFAULT_ADMIN_ROLE because the latter
/// is intended to grant/revoke roles and will be secured differently.
bytes32 public constant DEFAULT_STEERING_ROLE =
keccak256("DEFAULT_STEERING_ROLE");
/// @dev Overrides supportsInterface so that inheriting contracts can
/// reference this contract instead of OZ's version for further overrides.
function supportsInterface(bytes4 interfaceId)
public
view
virtual
override(ACE)
returns (bool)
{
return ACE.supportsInterface(interfaceId);
}
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 5 of 37 : ERC721ACommon.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT
// Copyright (c) 2022 the ethier authors (github.com/divergencetech/ethier)
pragma solidity >=0.8.0 <0.9.0;
import {ERC721A} from "erc721a/contracts/ERC721A.sol";
import {ERC2981} from "@openzeppelin/contracts/token/common/ERC2981.sol";
import {AccessControlEnumerable} from "../utils/AccessControlEnumerable.sol";
import {AccessControlPausable} from "../utils/AccessControlPausable.sol";
import {ERC4906} from "./ERC4906.sol";
/**
@notice An ERC721A contract with common functionality:
- Pausable with toggling functions exposed to Owner only
- ERC2981 royalties
*/
contract ERC721ACommon is ERC721A, AccessControlPausable, ERC2981, ERC4906 {
constructor(
address admin,
address steerer,
string memory name,
string memory symbol,
address payable royaltyReciever,
uint96 royaltyBasisPoints
) ERC721A(name, symbol) {
_setDefaultRoyalty(royaltyReciever, royaltyBasisPoints);
_grantRole(DEFAULT_ADMIN_ROLE, admin);
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 6 of 37 : OperatorFilterOS.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT
// Copyright (c) 2023 the ethier authors (github.com/divergencetech/ethier)
pragma solidity >=0.8.0 <0.9.0;
import {Address} from "@openzeppelin/contracts/utils/Address.sol";
import {DefaultOperatorFilterer} from "operator-filter-registry/src/DefaultOperatorFilterer.sol";
import {ERC721A, ERC721ACommon} from "./ERC721ACommon.sol";
/**
* @notice ERC721ACommon extension that adds Opensea's operator filtering.
*/
abstract contract OperatorFilterOS is ERC721ACommon, DefaultOperatorFilterer {
using Address for address;
/**
* @notice Calling the operator filter registry with given calldata.
* @dev The registry contract did not foresee role-based contract access
* control -- only the contract itself, or its (EIP-173) owner is allowed to
* change subscription settings. To work around this, we enforce
* authorisation here and forward arbitrary calldata to the registry.
* Use with care!
*/
function callOperatorFilterRegistry(bytes calldata cdata)
external
onlyRole(DEFAULT_STEERING_ROLE)
returns (bytes memory)
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 7 of 37 : TransferRestrictedRedeemableERC721ACommon.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT
// Copyright 2023 PROOF Holdings Inc
pragma solidity ^0.8.16;
import {ERC721A, ERC721ACommon} from "ethier/erc721/ERC721ACommon.sol";
import {RedeemableERC721ACommon} from "./RedeemableERC721ACommon.sol";
import {
TransferRestriction,
ERC721ATransferRestrictedBase,
ERC721ATransferRestricted
} from "../restricted/ERC721ATransferRestricted.sol";
/**
* @notice An ERC721 token intended to act as freely tradeable voucher.
* @dev This is mainly a convenience wrapper.
*/
abstract contract TransferRestrictedRedeemableERC721ACommon is RedeemableERC721ACommon, ERC721ATransferRestricted {
/**
* @notice Overrides supportsInterface as required by inheritance.
*/
function supportsInterface(bytes4 interfaceId)
public
view
virtual
override(RedeemableERC721ACommon, ERC721ACommon)
returns (bool)
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 8 of 37 : SellableERC721ACommon.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT
// Copyright 2023 PROOF Holdings Inc
pragma solidity >=0.8.0 <0.9.0;
import {ERC721ACommon} from "ethier/erc721/ERC721ACommon.sol";
import {AccessControlEnumerable, BaseSellable} from "./BaseSellable.sol";
/**
* @notice Base contract for sellable ERC721ACommon tokens.
*/
abstract contract SellableERC721ACommon is BaseSellable, ERC721ACommon {
/**
* @inheritdoc BaseSellable
*/
function _handleSale(address to, uint64 num, bytes calldata) internal virtual override {
_mint(to, num);
}
function supportsInterface(bytes4 interfaceId)
public
view
virtual
override(ERC721ACommon, AccessControlEnumerable)
returns (bool)
{
return ERC721ACommon.supportsInterface(interfaceId) || AccessControlEnumerable.supportsInterface(interfaceId);
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 9 of 37 : AccessControlEnumerable.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControlEnumerable.sol)
pragma solidity ^0.8.0;
import "./IAccessControlEnumerable.sol";
import "./AccessControl.sol";
import "../utils/structs/EnumerableSet.sol";
/**
* @dev Extension of {AccessControl} that allows enumerating the members of each role.
*/
abstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessControl {
using EnumerableSet for EnumerableSet.AddressSet;
mapping(bytes32 => EnumerableSet.AddressSet) private _roleMembers;
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IAccessControlEnumerable).interfaceId || super.supportsInterface(interfaceId);
}
/**
* @dev Returns one of the accounts that have `role`. `index` must be a
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 10 of 37 : ERC721A.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs
pragma solidity ^0.8.4;
import './IERC721A.sol';
/**
* @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.
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 11 of 37 : ERC2981.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol)
pragma solidity ^0.8.0;
import "../../interfaces/IERC2981.sol";
import "../../utils/introspection/ERC165.sol";
/**
* @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information.
*
* Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
* specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
*
* Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the
* fee is specified in basis points by default.
*
* IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
* https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
* voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
*
* _Available since v4.5._
*/
abstract contract ERC2981 is IERC2981, ERC165 {
struct RoyaltyInfo {
address receiver;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 12 of 37 : AccessControlPausable.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// SPDX-License-Identifier: MIT
// Copyright (c) 2021 the ethier authors (github.com/divergencetech/ethier)
pragma solidity >=0.8.0 <0.9.0;
import {Pausable} from "@openzeppelin/contracts/security/Pausable.sol";
import {AccessControlEnumerable} from "./AccessControlEnumerable.sol";
/// @notice A Pausable contract that can only be toggled by a member of the
/// STEERING role.
contract AccessControlPausable is AccessControlEnumerable, Pausable {
/// @notice Pauses the contract.
function pause() public onlyRole(DEFAULT_STEERING_ROLE) {
Pausable._pause();
}
/// @notice Unpauses the contract.
function unpause() public onlyRole(DEFAULT_STEERING_ROLE) {
Pausable._unpause();
}
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 13 of 37 : ERC4906.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: CC0-1.0
pragma solidity ^0.8.0;
import {IERC165, ERC165} from "@openzeppelin/contracts/utils/introspection/ERC165.sol";
interface IERC4906Events {
/// @dev This event emits when the metadata of a token is changed.
/// So that the third-party platforms such as NFT market could
/// timely update the images and related attributes of the NFT.
event MetadataUpdate(uint256 _tokenId);
/// @dev This event emits when the metadata of a range of tokens is changed.
/// So that the third-party platforms such as NFT market could
/// timely update the images and related attributes of the NFTs.
event BatchMetadataUpdate(uint256 _fromTokenId, uint256 _toTokenId);
}
/// @title EIP-721 Metadata Update Extension
// solhint-disable-next-line no-empty-blocks
interface IERC4906 is IERC165, IERC4906Events {
}
contract ERC4906 is IERC4906, ERC165 {
function _refreshMetadata(uint256 tokenId) internal {
emit MetadataUpdate(tokenId);
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 14 of 37 : Address.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)
pragma solidity ^0.8.1;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 15 of 37 : DefaultOperatorFilterer.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
import {OperatorFilterer} from "./OperatorFilterer.sol";
import {CANONICAL_CORI_SUBSCRIPTION} from "./lib/Constants.sol";
/**
* @title DefaultOperatorFilterer
* @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription.
* @dev Please note that if your token contract does not provide an owner with EIP-173, it must provide
* administration methods on the contract itself to interact with the registry otherwise the subscription
* will be locked to the options set during construction.
*/
abstract contract DefaultOperatorFilterer is OperatorFilterer {
/// @dev The constructor that is called when the contract is being deployed.
constructor() OperatorFilterer(CANONICAL_CORI_SUBSCRIPTION, true) {}
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 16 of 37 : RedeemableERC721ACommon.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT
// Copyright 2023 PROOF Holdings Inc
pragma solidity ^0.8.16;
import {ERC721ACommon} from "ethier/erc721/ERC721ACommon.sol";
import {BaseRedeemableToken} from "./BaseRedeemableToken.sol";
/**
* @notice An ERC721 token intended to act as freely tradeable voucher.
* @dev This is mainly a convenience wrapper.
*/
abstract contract RedeemableERC721ACommon is BaseRedeemableToken, ERC721ACommon {
// =========================================================================
// Internals
// =========================================================================
/**
* @notice Allows spending if the sender is the owner of or approved for
* transfers of a given token.
*/
function _isSenderAllowedToSpend(address sender, uint256 tokenId)
internal
view
virtual
override
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 17 of 37 : ERC721ATransferRestricted.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.16 <0.9.0;
import {ERC721ATransferRestrictedBase, TransferRestriction} from "./ERC721ATransferRestrictedBase.sol";
/**
* @notice Extension of ERC721 transfer restrictions with manual restriction
* setter.
*/
abstract contract ERC721ATransferRestricted is ERC721ATransferRestrictedBase {
// =========================================================================
// Error
// =========================================================================
error TransferRestrictionLocked();
error TransferRestrictionCheckFailed(TransferRestriction want);
// =========================================================================
// Storage
// =========================================================================
/**
* @notice The current restrictions.
*/
TransferRestriction private _transferRestriction;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 18 of 37 : BaseSellable.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT
// Copyright 2023 PROOF Holdings Inc
pragma solidity >=0.8.0 <0.9.0;
import {AccessControlEnumerable} from "ethier/utils/AccessControlEnumerable.sol";
import {ISellable} from "../interfaces/ISellable.sol";
/**
* @notice A base contract for selling content via authorised sellers.
*/
abstract contract BaseSellable is ISellable, AccessControlEnumerable {
/**
* @notice Authorised sellers.
*/
bytes32 public constant AUTHORISED_SELLER_ROLE = keccak256("AUTHORISED_SELLER_ROLE");
/**
* @notice A role that cannot be granted or revoked.
* @dev Used to lock in members of the `AUTHORISED_SELLER_ROLE` role.
*/
bytes32 private constant _NOOP_ROLE = keccak256("NOOP_ROLE");
constructor() {
_setRoleAdmin(AUTHORISED_SELLER_ROLE, DEFAULT_STEERING_ROLE);
_setRoleAdmin(_NOOP_ROLE, _NOOP_ROLE);
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 19 of 37 : IAccessControlEnumerable.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControlEnumerable.sol)
pragma solidity ^0.8.0;
import "./IAccessControl.sol";
/**
* @dev External interface of AccessControlEnumerable declared to support ERC165 detection.
*/
interface IAccessControlEnumerable is IAccessControl {
/**
* @dev Returns one of the accounts that have `role`. `index` must be a
* value between 0 and {getRoleMemberCount}, non-inclusive.
*
* Role bearers are not sorted in any particular way, and their ordering may
* change at any point.
*
* WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
* you perform all queries on the same block. See the following
* https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
* for more information.
*/
function getRoleMember(bytes32 role, uint256 index) external view returns (address);
/**
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 20 of 37 : AccessControl.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (access/AccessControl.sol)
pragma solidity ^0.8.0;
import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";
/**
* @dev Contract module that allows children to implement role-based access
* control mechanisms. This is a lightweight version that doesn't allow enumerating role
* members except through off-chain means by accessing the contract event logs. Some
* applications may benefit from on-chain enumerability, for those cases see
* {AccessControlEnumerable}.
*
* Roles are referred to by their `bytes32` identifier. These should be exposed
* in the external API and be unique. The best way to achieve this is by
* using `public constant` hash digests:
*
* ```
* bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
* ```
*
* Roles can be used to represent a set of permissions. To restrict access to a
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 21 of 37 : EnumerableSet.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/structs/EnumerableSet.sol)
// This file was procedurally generated from scripts/generate/templates/EnumerableSet.js.
pragma solidity ^0.8.0;
/**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are made on the ordering.
*
* ```
* contract Example {
* // Add the library methods
* using EnumerableSet for EnumerableSet.AddressSet;
*
* // Declare a set state variable
* EnumerableSet.AddressSet private mySet;
* }
* ```
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 22 of 37 : IERC721A.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT
// 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();
/**
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 23 of 37 : IERC2981.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol)
pragma solidity ^0.8.0;
import "../utils/introspection/IERC165.sol";
/**
* @dev Interface for the NFT Royalty Standard.
*
* A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
* support for royalty payments across all NFT marketplaces and ecosystem participants.
*
* _Available since v4.5._
*/
interface IERC2981 is IERC165 {
/**
* @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
* exchange. The royalty amount is denominated and should be paid in that same unit of exchange.
*/
function royaltyInfo(uint256 tokenId, uint256 salePrice)
external
view
returns (address receiver, uint256 royaltyAmount);
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 24 of 37 : ERC165.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)
pragma solidity ^0.8.0;
import "./IERC165.sol";
/**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
* for the additional interface id that will be supported. For example:
*
* ```solidity
* function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
* return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
* }
* ```
*
* Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
*/
abstract contract ERC165 is IERC165 {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 25 of 37 : Pausable.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which allows children to implement an emergency stop
* mechanism that can be triggered by an authorized account.
*
* This module is used through inheritance. It will make available the
* modifiers `whenNotPaused` and `whenPaused`, which can be applied to
* the functions of your contract. Note that they will not be pausable by
* simply including this module, only once the modifiers are put in place.
*/
abstract contract Pausable is Context {
/**
* @dev Emitted when the pause is triggered by `account`.
*/
event Paused(address account);
/**
* @dev Emitted when the pause is lifted by `account`.
*/
event Unpaused(address account);
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 26 of 37 : OperatorFilterer.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol";
import {CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS} from "./lib/Constants.sol";
/**
* @title OperatorFilterer
* @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another
* registrant's entries in the OperatorFilterRegistry.
* @dev This smart contract is meant to be inherited by token contracts so they can use the following:
* - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods.
* - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods.
* Please note that if your token contract does not provide an owner with EIP-173, it must provide
* administration methods on the contract itself to interact with the registry otherwise the subscription
* will be locked to the options set during construction.
*/
abstract contract OperatorFilterer {
/// @dev Emitted when an operator is not allowed.
error OperatorNotAllowed(address operator);
IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY =
IOperatorFilterRegistry(CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS);
/// @dev The constructor that is called when the contract is being deployed.
constructor(address subscriptionOrRegistrantToCopy, bool subscribe) {
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 27 of 37 : Constants.sol
1
2
3
4
5
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
address constant CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS = 0x000000000000AAeB6D7670E522A718067333cd4E;
address constant CANONICAL_CORI_SUBSCRIPTION = 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 28 of 37 : BaseRedeemableToken.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT
// Copyright 2023 PROOF Holdings Inc
pragma solidity ^0.8.16;
import {AccessControlEnumerable} from "ethier/utils/AccessControlEnumerable.sol";
import {IRedeemableToken} from "../interfaces/IRedeemableToken.sol";
/**
* @notice Base implementation of a voucher token with approvable redeemer contracts.
*/
abstract contract BaseRedeemableToken is IRedeemableToken, AccessControlEnumerable {
/**
* @notice Authorised redeemers.
*/
bytes32 public constant REDEEMER_ROLE = keccak256("REDEEMER_ROLE");
/**
* @notice A role that cannot be granted or revoked.
* @dev Used to lock in members of the `REDEEMER_ROLE` role.
*/
bytes32 private constant _NOOP_ROLE = keccak256("NOOP_ROLE");
constructor() {
_setRoleAdmin(REDEEMER_ROLE, DEFAULT_STEERING_ROLE);
_setRoleAdmin(_NOOP_ROLE, _NOOP_ROLE);
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 29 of 37 : ERC721ATransferRestrictedBase.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT
// Copyright 2023 PROOF Holdings Inc
pragma solidity >=0.8.16 <0.9.0;
import {ERC721ACommon} from "ethier/erc721/ERC721ACommon.sol";
/**
* @notice Possible transfer restrictions.
*/
enum TransferRestriction {
None,
OnlyMint,
OnlyBurn,
Frozen
}
/**
* @notice Implements restrictions for ERC721 transfers.
* @dev This is intended to facilitate a soft expiry for voucher tokens, having an intermediate stage that still allows
* voucher to be redeemed but not traded before closing all activity indefinitely.
* @dev The activation of restrictions is left to the extending contract.
*/
abstract contract ERC721ATransferRestrictedBase is ERC721ACommon {
// =========================================================================
// Errors
// =========================================================================
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 30 of 37 : ISellable.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// SPDX-License-Identifier: MIT
// Copyright 2023 PROOF Holdings Inc
pragma solidity >=0.8.0 <0.9.0;
/**
* @notice Basic interface for a contract providing sellable content.
*/
interface ISellable {
/**
* @notice Handles the sale of sellable content.
* @dev This is usually only callable by Sellers.
*/
function handleSale(address to, uint64 num, bytes calldata data) external payable;
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 31 of 37 : IAccessControl.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)
pragma solidity ^0.8.0;
/**
* @dev External interface of AccessControl declared to support ERC165 detection.
*/
interface IAccessControl {
/**
* @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
*
* `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
* {RoleAdminChanged} not being emitted signaling this.
*
* _Available since v3.1._
*/
event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);
/**
* @dev Emitted when `account` is granted `role`.
*
* `sender` is the account that originated the contract call, an admin role
* bearer except when using {AccessControl-_setupRole}.
*/
event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 32 of 37 : Context.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 33 of 37 : Strings.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)
pragma solidity ^0.8.0;
import "./math/Math.sol";
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _SYMBOLS = "0123456789abcdef";
uint8 private constant _ADDRESS_LENGTH = 20;
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
unchecked {
uint256 length = Math.log10(value) + 1;
string memory buffer = new string(length);
uint256 ptr;
/// @solidity memory-safe-assembly
assembly {
ptr := add(buffer, add(32, length))
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 34 of 37 : IERC165.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 35 of 37 : IOperatorFilterRegistry.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
interface IOperatorFilterRegistry {
/**
* @notice Returns true if operator is not filtered for a given token, either by address or codeHash. Also returns
* true if supplied registrant address is not registered.
*/
function isOperatorAllowed(address registrant, address operator) external view returns (bool);
/**
* @notice Registers an address with the registry. May be called by address itself or by EIP-173 owner.
*/
function register(address registrant) external;
/**
* @notice Registers an address with the registry and "subscribes" to another address's filtered operators and codeHashes.
*/
function registerAndSubscribe(address registrant, address subscription) external;
/**
* @notice Registers an address with the registry and copies the filtered operators and codeHashes from another
* address without subscribing.
*/
function registerAndCopyEntries(address registrant, address registrantToCopy) external;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 36 of 37 : IRedeemableToken.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT
// Copyright 2023 PROOF Holdings Inc
pragma solidity ^0.8.0;
/**
* @notice Interface for a redeemable Voucher token preventing double spending
* through internal book-keeping (e.g. burning the token, token property, etc.).
* @dev Voucher tokens are intendent to be redeemed through a redeemer contract.
*/
interface IRedeemableToken {
/**
* @notice Thrown if the redemption caller is not allowed to spend a given
* voucher.
*/
error RedeemerCallerNotAllowedToSpendVoucher(address sender, uint256 tokenId);
/**
* @notice Interface through which a `IRedeemer` contract informs the
* voucher about its redemption.
* @param sender The address that initiate the redemption on the
* redeemer contract.
* @param tokenId The voucher token to be redeemed.
* @dev This function MUST be called by redeemer contracts.
* @dev MUST revert with `RedeemerNotApproved` if the calling redeemer
* contract is not approved to spend this voucher.
* @dev MUST revert with `RedeemerCallerNotAllowedToSpendVoucher` if
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 37 of 37 : Math.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)
pragma solidity ^0.8.0;
/**
* @dev Standard math utilities missing in the Solidity language.
*/
library Math {
enum Rounding {
Down, // Toward negative infinity
Up, // Toward infinity
Zero // Toward zero
}
/**
* @dev Returns the largest of two numbers.
*/
function max(uint256 a, uint256 b) internal pure returns (uint256) {
return a > b ? a : b;
}
/**
* @dev Returns the smallest of two numbers.
*/
function min(uint256 a, uint256 b) internal pure returns (uint256) {
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Settings
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{
"remappings": [
"@divergencetech/ethier/=/home/dave/.cache/bazel/_bazel_dave/b9a57168317213f9241a484d2ee2d038/external/ethier_0-55-0/",
"@openzeppelin-4-7-0/=/home/dave/.cache/bazel/_bazel_dave/b9a57168317213f9241a484d2ee2d038/external/openzeppelin-contracts_4-7-0_exact_remap/",
"@openzeppelin-4.7/=/home/dave/.cache/bazel/_bazel_dave/b9a57168317213f9241a484d2ee2d038/external/openzeppelin-contracts_4-7-0_exact_remap/",
"@openzeppelin/=/home/dave/.cache/bazel/_bazel_dave/b9a57168317213f9241a484d2ee2d038/external/openzeppelin-contracts_4-8-1/",
"ERC721A/=/home/dave/.cache/bazel/_bazel_dave/b9a57168317213f9241a484d2ee2d038/external/ERC721A_4-2-3/contracts/",
"ERC721A_root/=/home/dave/.cache/bazel/_bazel_dave/b9a57168317213f9241a484d2ee2d038/external/ERC721A_4-2-3/",
"artblocks-contracts/=/home/dave/.cache/bazel/_bazel_dave/b9a57168317213f9241a484d2ee2d038/external/artblocks-contracts_fa1dc466/contracts/",
"artblocks-contracts_root/=/home/dave/.cache/bazel/_bazel_dave/b9a57168317213f9241a484d2ee2d038/external/artblocks-contracts_fa1dc466/",
"delegation-registry/=/home/dave/.cache/bazel/_bazel_dave/b9a57168317213f9241a484d2ee2d038/external/delegation-registry_2d1a158b/src/",
"delegation-registry_root/=/home/dave/.cache/bazel/_bazel_dave/b9a57168317213f9241a484d2ee2d038/external/delegation-registry_2d1a158b/",
"ds-test/=/home/dave/.cache/bazel/_bazel_dave/b9a57168317213f9241a484d2ee2d038/external/ds-test_013e6c64/src/",
"ds-test_root/=/home/dave/.cache/bazel/_bazel_dave/b9a57168317213f9241a484d2ee2d038/external/ds-test_013e6c64/",
"erc721a/=/home/dave/.cache/bazel/_bazel_dave/b9a57168317213f9241a484d2ee2d038/external/ERC721A_4-2-3/",
"ethier/=/home/dave/.cache/bazel/_bazel_dave/b9a57168317213f9241a484d2ee2d038/external/ethier_0-55-0/contracts/",
"ethier_root/=/home/dave/.cache/bazel/_bazel_dave/b9a57168317213f9241a484d2ee2d038/external/ethier_0-55-0/",
"forge-std/=/home/dave/.cache/bazel/_bazel_dave/b9a57168317213f9241a484d2ee2d038/external/forge-std_1-4-0/src/",
"openzeppelin-contracts-4-7-0/=/home/dave/.cache/bazel/_bazel_dave/b9a57168317213f9241a484d2ee2d038/external/openzeppelin-contracts_4-7
        -0_exact_remap/contracts/",
"openzeppelin-contracts/=/home/dave/.cache/bazel/_bazel_dave/b9a57168317213f9241a484d2ee2d038/external/openzeppelin-contracts_4-8-1/contracts/",
"openzeppelin-contracts/contracts/=/home/dave/.cache/bazel/_bazel_dave/b9a57168317213f9241a484d2ee2d038/external/openzeppelin-contracts_4-8-1
        /contracts/",
"openzeppelin-contracts_root-4-7-0/=/home/dave/.cache/bazel/_bazel_dave/b9a57168317213f9241a484d2ee2d038/external/openzeppelin-contracts_4-7
        -0_exact_remap/",
"openzeppelin-contracts_root/=/home/dave/.cache/bazel/_bazel_dave/b9a57168317213f9241a484d2ee2d038/external/openzeppelin-contracts_4-8-1/",
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"admin","type":"address"},{"internalType":"address","name":"steerer","type":"address"},{"internalType":"address payable","name":"secondaryReceiver","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[{"internalType":"enum TransferRestriction","name":"","type":"uint8"}],"name":"DisallowedByTransferRestriction","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"RedeemerCallerNotAllowedToSpendVoucher","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[{"internalType":"enum TransferRestriction","name":"want","type":"uint8"}],"name":"TransferRestrictionCheckFailed","type":"error"},{"inputs":[],"name":"TransferRestrictionLocked","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","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":false,"internalType":"uint256","name":"_fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_toTokenId","type":"uint256"}],"name":"BatchMetadataUpdate","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":false,"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"MetadataUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"AUTHORISED_SELLER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_STEERING_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REDEEMER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","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":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"cdata","type":"bytes"}],"name":"callOperatorFilterRegistry","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"emitMetadataUpdateForAll","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":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint64","name":"num","type":"uint64"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"handleSale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"lockRedeemers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lockSellers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum TransferRestriction","name":"restriction","type":"uint8"}],"name":"lockTransferRestriction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"redeem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"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":"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":"baseTokenURI_","type":"string"}],"name":"setBaseTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"basisPoints","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum TransferRestriction","name":"restriction","type":"uint8"}],"name":"setTransferRestriction","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":[],"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":[],"name":"transferRestriction","outputs":[{"internalType":"enum TransferRestriction","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b5060405162003f1f38038062003f1f833981016040819052620000349162000608565b733cc6cdda760b79bafa08df41ecfa224f810dceb660016040518060600160405280603b815260200162003ec4603b913960408051808201825260208082527f4469616d6f6e642045786869626974696f6e3a20526567756c6172205061737381830152825180840190935260078352662922a3aaa620a960c91b908301528791879190876101f483836002620000cc838262000700565b506003620000db828262000700565b505060008055506200011d7fe0fb75b40f2731fce9fd08fd8e51c7db44b9ffb2e43369a2734fc1a121a6b30760008051602062003ea483398151915262000334565b6200013860008051602062003eff8339815191528062000334565b620001737f44ac9762eec3a11893fefb11d028bb3102560094137c3ed4518712475b2577cc60008051602062003ea483398151915262000334565b6200018e60008051602062003eff8339815191528062000334565b600a805460ff19169055620001a482826200037f565b620001b160008762000484565b620001cc60008051602062003ea48339815191528662000484565b505050505050620001e381620004c760201b60201c565b506daaeb6d7670e522a718067333cd4e3b15620003295780156200027757604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b1580156200025857600080fd5b505af11580156200026d573d6000803e3d6000fd5b5050505062000329565b6001600160a01b03821615620002c85760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af2903906044016200023d565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b1580156200030f57600080fd5b505af115801562000324573d6000803e3d6000fd5b505050505b5050505050620007cc565b600082815260086020526040808220600101805490849055905190918391839186917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a4505050565b6127106001600160601b0382161115620003f35760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084015b60405180910390fd5b6001600160a01b0382166200044b5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401620003ea565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600b55565b6200049b8282620004d960201b620010f31760201c565b6000828152600960209081526040909120620004c2918390620011956200057d821b17901c565b505050565b600d620004d5828262000700565b5050565b60008281526008602090815260408083206001600160a01b038516845290915290205460ff16620004d55760008281526008602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620005393390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600062000594836001600160a01b0384166200059d565b90505b92915050565b6000818152600183016020526040812054620005e65750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915562000597565b50600062000597565b6001600160a01b03811681146200060557600080fd5b50565b6000806000606084860312156200061e57600080fd5b83516200062b81620005ef565b60208501519093506200063e81620005ef565b60408501519092506200065181620005ef565b809150509250925092565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200068757607f821691505b602082108103620006a857634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620004c257600081815260208120601f850160051c81016020861015620006d75750805b601f850160051c820191505b81811015620006f857828155600101620006e3565b505050505050565b81516001600160401b038111156200071c576200071c6200065c565b62000734816200072d845462000672565b84620006ae565b602080601f8311600181146200076c5760008415620007535750858301515b600019600386901b1c1916600185901b178555620006f8565b600085815260208120601f198616915b828110156200079d578886015182559484019460019091019084016200077c565b5085821015620007bc5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6136c880620007dc6000396000f3fe6080604052600436106102d15760003560e01c806342842e0e1161017957806391d14854116100d6578063c16272971161008a578063d547741f11610064578063d547741f146107eb578063d547cfb71461080b578063e985e9c51461082057600080fd5b8063c162729714610796578063c87b56dd146107ab578063ca15c873146107cb57600080fd5b8063a217fddf116100bb578063a217fddf1461074e578063a22cb46514610763578063b88d4fde1461078357600080fd5b806391d14854146106f357806395d89b411461073957600080fd5b806370a082311161012d5780638222b7d7116101125780638222b7d7146106a95780638456cb59146106be5780639010d07c146106d357600080fd5b806370a08231146106555780637fa46ab41461067557600080fd5b80635ada5c551161015e5780635ada5c551461060a5780635c975abb1461061d5780636352211e1461063557600080fd5b806342842e0e146105d7578063461d338c146105ea57600080fd5b80631e9a69501161023257806330176e13116101e65780633dcc23a0116101c05780633dcc23a0146105805780633f4ba83a146105a057806341f43434146105b557600080fd5b806330176e131461050c57806331c23d201461052c57806336568abe1461056057600080fd5b8063248a9ca311610217578063248a9ca31461047d5780632a55205a146104ad5780632f2ff15d146104ec57600080fd5b80631e9a69501461044a57806323b872dd1461046a57600080fd5b80630dc3b9091161028957806318160ddd1161026e57806318160ddd146103fc5780631b38388e146104155780631d23354a1461043557600080fd5b80630dc3b9091461039a578063117ad57a146103dc57600080fd5b806306fdde03116102ba57806306fdde031461032d578063081812fc1461034f578063095ea7b31461038757600080fd5b806301ffc9a7146102d657806304634d8d1461030b575b600080fd5b3480156102e257600080fd5b506102f66102f1366004612dc0565b610869565b60405190151581526020015b60405180910390f35b34801561031757600080fd5b5061032b610326366004612df9565b610898565b005b34801561033957600080fd5b506103426108d1565b6040516103029190612e91565b34801561035b57600080fd5b5061036f61036a366004612ea4565b610963565b6040516001600160a01b039091168152602001610302565b61032b610395366004612ebd565b6109c0565b3480156103a657600080fd5b506103ce7fe0fb75b40f2731fce9fd08fd8e51c7db44b9ffb2e43369a2734fc1a121a6b30781565b604051908152602001610302565b3480156103e857600080fd5b5061032b6103f7366004612ee7565b6109ce565b34801561040857600080fd5b50600154600054036103ce565b34801561042157600080fd5b5061032b610430366004612ee7565b610a43565b34801561044157600080fd5b5061032b610b0d565b34801561045657600080fd5b5061032b610465366004612ebd565b610b42565b61032b610478366004612f08565b610bc8565b34801561048957600080fd5b506103ce610498366004612ea4565b60009081526008602052604090206001015490565b3480156104b957600080fd5b506104cd6104c8366004612f44565b610bd3565b604080516001600160a01b039093168352602083019190915201610302565b3480156104f857600080fd5b5061032b610507366004612f66565b610cb2565b34801561051857600080fd5b5061032b610527366004613037565b610cd7565b34801561053857600080fd5b506103ce7f1e4c11efbd6a865b1cba79eea33d1b33c1394d834190605ed6a14c71c480bf7681565b34801561056c57600080fd5b5061032b61057b366004612f66565b610d0a565b34801561058c57600080fd5b5061034261059b3660046130c2565b610dac565b3480156105ac57600080fd5b5061032b610e30565b3480156105c157600080fd5b5061036f6daaeb6d7670e522a718067333cd4e81565b61032b6105e5366004612f08565b610e62565b3480156105f657600080fd5b50600e5460ff166040516103029190613133565b61032b610618366004613174565b610e6d565b34801561062957600080fd5b50600a5460ff166102f6565b34801561064157600080fd5b5061036f610650366004612ea4565b610eaa565b34801561066157600080fd5b506103ce6106703660046131e0565b610eb5565b34801561068157600080fd5b506103ce7f44ac9762eec3a11893fefb11d028bb3102560094137c3ed4518712475b2577cc81565b3480156106b557600080fd5b5061032b610f1d565b3480156106ca57600080fd5b5061032b610f5e565b3480156106df57600080fd5b5061036f6106ee366004612f44565b610f90565b3480156106ff57600080fd5b506102f661070e366004612f66565b60009182526008602090815260408084206001600160a01b0393909316845291905290205460ff1690565b34801561074557600080fd5b50610342610faf565b34801561075a57600080fd5b506103ce600081565b34801561076f57600080fd5b5061032b61077e366004613209565b610fbe565b61032b610791366004613235565b610fc8565b3480156107a257600080fd5b5061032b610fda565b3480156107b757600080fd5b506103426107c6366004612ea4565b61100c565b3480156107d757600080fd5b506103ce6107e6366004612ea4565b6110a8565b3480156107f757600080fd5b5061032b610806366004612f66565b6110bf565b34801561081757600080fd5b506103426110e4565b34801561082c57600080fd5b506102f661083b3660046132b1565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b6000610874826111aa565b806108835750610883826111b5565b806108925750610892826111b5565b92915050565b7f1e4c11efbd6a865b1cba79eea33d1b33c1394d834190605ed6a14c71c480bf766108c2816111cf565b6108cc83836111d9565b505050565b6060600280546108e0906132db565b80601f016020809104026020016040519081016040528092919081815260200182805461090c906132db565b80156109595780601f1061092e57610100808354040283529160200191610959565b820191906000526020600020905b81548152906001019060200180831161093c57829003601f168201915b5050505050905090565b600061096e82611338565b6109a4576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6109ca8282611378565b5050565b7f1e4c11efbd6a865b1cba79eea33d1b33c1394d834190605ed6a14c71c480bf766109f8816111cf565b600e54610100900460ff1615610a3a576040517fc5dbcbf100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6109ca8261138c565b7f1e4c11efbd6a865b1cba79eea33d1b33c1394d834190605ed6a14c71c480bf76610a6d816111cf565b600e5460ff166003811115610a8457610a84613104565b826003811115610a9657610a96613104565b14610add57600e546040517f6e7074f2000000000000000000000000000000000000000000000000000000008152610ad49160ff1690600401613133565b60405180910390fd5b5050600e80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff16610100179055565b7f1e4c11efbd6a865b1cba79eea33d1b33c1394d834190605ed6a14c71c480bf76610b37816111cf565b610b3f6113b3565b50565b7f44ac9762eec3a11893fefb11d028bb3102560094137c3ed4518712475b2577cc610b6c816111cf565b610b7683836113ff565b610bbe576040517f262f0dbe0000000000000000000000000000000000000000000000000000000081526001600160a01b038416600482015260248101839052604401610ad4565b6108cc838361147e565b6108cc838383611487565b6000828152600c602090815260408083208151808301909252546001600160a01b038116808352740100000000000000000000000000000000000000009091046bffffffffffffffffffffffff16928201929092528291610c74575060408051808201909152600b546001600160a01b03811682527401000000000000000000000000000000000000000090046bffffffffffffffffffffffff1660208201525b602081015160009061271090610c98906bffffffffffffffffffffffff168761335d565b610ca29190613374565b91519350909150505b9250929050565b600082815260086020526040902060010154610ccd816111cf565b6108cc83836114ac565b7f1e4c11efbd6a865b1cba79eea33d1b33c1394d834190605ed6a14c71c480bf76610d01816111cf565b6109ca826114ce565b6001600160a01b0381163314610da2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610ad4565b6109ca82826114da565b60607f1e4c11efbd6a865b1cba79eea33d1b33c1394d834190605ed6a14c71c480bf76610dd8816111cf565b610e2884848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506daaeb6d7670e522a718067333cd4e939250506114fc9050565b949350505050565b7f1e4c11efbd6a865b1cba79eea33d1b33c1394d834190605ed6a14c71c480bf76610e5a816111cf565b610b3f611540565b6108cc838383611592565b7fe0fb75b40f2731fce9fd08fd8e51c7db44b9ffb2e43369a2734fc1a121a6b307610e97816111cf565b610ea3858585856115b7565b5050505050565b6000610892826115cb565b60006001600160a01b038216610ef7576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b7f1e4c11efbd6a865b1cba79eea33d1b33c1394d834190605ed6a14c71c480bf76610f47816111cf565b610b3f6000610f596001546000540390565b611664565b7f1e4c11efbd6a865b1cba79eea33d1b33c1394d834190605ed6a14c71c480bf76610f88816111cf565b610b3f6116a1565b6000828152600960205260408120610fa890836116de565b9392505050565b6060600380546108e0906132db565b6109ca82826116ea565b610fd4848484846116fe565b50505050565b7f1e4c11efbd6a865b1cba79eea33d1b33c1394d834190605ed6a14c71c480bf76611004816111cf565b610b3f611724565b606061101782611338565b61104d576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061105761176e565b905080516000036110775760405180602001604052806000815250610fa8565b806110818461177d565b6040516020016110929291906133af565b6040516020818303038152906040529392505050565b6000818152600960205260408120610892906117c1565b6000828152600860205260409020600101546110da816111cf565b6108cc83836114da565b6060600d80546108e0906132db565b60008281526008602090815260408083206001600160a01b038516845290915290205460ff166109ca5760008281526008602090815260408083206001600160a01b03851684529091529020805460ff191660011790556111513390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000610fa8836001600160a01b0384166117cb565b60006108928261181a565b60006111c082611830565b80610892575061089282611868565b610b3f8133611873565b6127106bffffffffffffffffffffffff82161115611279576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c2065786365656460448201527f2073616c655072696365000000000000000000000000000000000000000000006064820152608401610ad4565b6001600160a01b0382166112e9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610ad4565b604080518082019091526001600160a01b039092168083526bffffffffffffffffffffffff90911660209092018290527401000000000000000000000000000000000000000090910217600b55565b60008054821080156108925750506000908152600460205260409020547c0100000000000000000000000000000000000000000000000000000000161590565b8161138281611902565b6108cc83836119ed565b600e805482919060ff191660018360038111156113ab576113ab613104565b021790555050565b6113fd7fe0fb75b40f2731fce9fd08fd8e51c7db44b9ffb2e43369a2734fc1a121a6b3077fd83ac62169e315c6fc3ecdb2c5b6ae75284053b2c2f2fb9fc715ba380283e942611abe565b565b60008061140b83610eaa565b9050806001600160a01b0316846001600160a01b0316148061145257506001600160a01b0380821660009081526007602090815260408083209388168352929052205460ff165b80610e28575061146183610963565b6001600160a01b0316846001600160a01b03161491505092915050565b6109ca81611b09565b826001600160a01b03811633146114a1576114a133611902565b610fd4848484611b14565b6114b682826110f3565b60008281526009602052604090206108cc9082611195565b600d6109ca8282613424565b6114e48282611d42565b60008281526009602052604090206108cc9082611dc5565b6060610fa8838360006040518060400160405280601e81526020017f416464726573733a206c6f772d6c6576656c2063616c6c206661696c65640000815250611dda565b611548611ee6565b600a805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b826001600160a01b03811633146115ac576115ac33611902565b610fd4848484611f52565b610fd4848467ffffffffffffffff16611f6d565b60008160005481101561163257600081815260046020526040812054907c010000000000000000000000000000000000000000000000000000000082169003611630575b80600003610fa857506000190160008181526004602052604090205461160f565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60408051838152602081018390527f6bd5c950a8d8df17f772f5af37cb3655737899cbf903264b9795592da439661c910160405180910390a15050565b6116a96120ab565b600a805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586115753390565b6000610fa88383612118565b816116f481611902565b6108cc8383612142565b836001600160a01b03811633146117185761171833611902565b610ea3858585856121ae565b6113fd7f44ac9762eec3a11893fefb11d028bb3102560094137c3ed4518712475b2577cc7fd83ac62169e315c6fc3ecdb2c5b6ae75284053b2c2f2fb9fc715ba380283e942611abe565b606061177861220b565b905090565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a9004806117975750819003601f19909101908152919050565b6000610892825490565b600081815260018301602052604081205461181257508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610892565b506000610892565b600061182582612215565b806108925750610892825b600061183b8261226b565b8061184a575061184a8261234c565b80611859575061185982611868565b806108925750610892826123a2565b600061089282612439565b60008281526008602090815260408083206001600160a01b038516845290915290205460ff166109ca576118a68161248f565b6118b18360206124a1565b6040516020016118c29291906134e4565b60408051601f19818403018152908290527f08c379a0000000000000000000000000000000000000000000000000000000008252610ad491600401612e91565b6daaeb6d7670e522a718067333cd4e3b15610b3f576040517fc61711340000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611988573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119ac9190613565565b610b3f576040517fede71dcc0000000000000000000000000000000000000000000000000000000081526001600160a01b0382166004820152602401610ad4565b60006119f882610eaa565b9050336001600160a01b03821614611a4a57611a14813361083b565b611a4a576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008281526006602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600082815260086020526040808220600101805490849055905190918391839186917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a4505050565b610b3f8160006126e4565b6000611b1f826115cb565b9050836001600160a01b0316816001600160a01b031614611b6c576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008281526006602052604090208054611b988187335b6001600160a01b039081169116811491141790565b611bdc57611ba6863361083b565b611bdc576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038516611c1c576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611c298686866001612887565b8015611c3457600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b177c0200000000000000000000000000000000000000000000000000000000176000858152600460205260408120919091557c020000000000000000000000000000000000000000000000000000000084169003611cf857600184016000818152600460205260408120549003611cf6576000548114611cf65760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b60008281526008602090815260408083206001600160a01b038516845290915290205460ff16156109ca5760008281526008602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000610fa8836001600160a01b038416612893565b606082471015611e6c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610ad4565b600080866001600160a01b03168587604051611e889190613582565b60006040518083038185875af1925050503d8060008114611ec5576040519150601f19603f3d011682016040523d82523d6000602084013e611eca565b606091505b5091509150611edb87838387612986565b979650505050505050565b600a5460ff166113fd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610ad4565b6108cc83838360405180602001604052806000815250610fc8565b6000805490829003611fab576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611fb86000848385612887565b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461206757808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a460010161202f565b50816000036120a2576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005550505050565b600a5460ff16156113fd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610ad4565b600082600001828154811061212f5761212f61359e565b9060005260206000200154905092915050565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6121b9848484610bc8565b6001600160a01b0383163b15610fd4576121d584848484612a19565b610fd4576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60606117786110e4565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f1e9a6950000000000000000000000000000000000000000000000000000000001480610892575061089282611868565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614806122fe57507f80ac58cd000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b806108925750507fffffffff00000000000000000000000000000000000000000000000000000000167f5b5e139f000000000000000000000000000000000000000000000000000000001490565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f2a55205a000000000000000000000000000000000000000000000000000000001480610892575061089282612215565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f4906490600000000000000000000000000000000000000000000000000000000148061089257507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610892565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f5a05180f000000000000000000000000000000000000000000000000000000001480610892575061089282612b64565b60606108926001600160a01b03831660145b606060006124b083600261335d565b6124bb9060026135cd565b67ffffffffffffffff8111156124d3576124d3612f92565b6040519080825280601f01601f1916602001820160405280156124fd576020820181803683370190505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106125345761253461359e565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106125975761259761359e565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006125d384600261335d565b6125de9060016135cd565b90505b600181111561267b577f303132333435363738396162636465660000000000000000000000000000000085600f166010811061261f5761261f61359e565b1a60f81b8282815181106126355761263561359e565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c93612674816135e0565b90506125e1565b508315610fa8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610ad4565b60006126ef836115cb565b90508060008061270d86600090815260066020526040902080549091565b91509150841561276657612722818433611b83565b61276657612730833361083b565b612766576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612774836000886001612887565b801561277f57600082555b6001600160a01b038316600081815260056020526040902080546fffffffffffffffffffffffffffffffff0190554260a01b177c0300000000000000000000000000000000000000000000000000000000176000878152600460205260408120919091557c02000000000000000000000000000000000000000000000000000000008516900361283f5760018601600081815260046020526040812054900361283d57600054811461283d5760008181526004602052604090208590555b505b60405186906000906001600160a01b038616907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050600180548101905550505050565b610fd484848484612bfb565b6000818152600183016020526040812054801561297c5760006128b76001836135f7565b85549091506000906128cb906001906135f7565b90508181146129305760008660000182815481106128eb576128eb61359e565b906000526020600020015490508087600001848154811061290e5761290e61359e565b6000918252602080832090910192909255918252600188019052604090208390555b85548690806129415761294161360a565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610892565b6000915050610892565b60608315612a0f578251600003612a08576001600160a01b0385163b612a08576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610ad4565b5081610e28565b610e288383612c07565b6040517f150b7a020000000000000000000000000000000000000000000000000000000081526000906001600160a01b0385169063150b7a0290612a67903390899088908890600401613639565b6020604051808303816000875af1925050508015612aa2575060408051601f3d908101601f19168201909252612a9f91810190613675565b60015b612b19573d808015612ad0576040519150601f19603f3d011682016040523d82523d6000602084013e612ad5565b606091505b508051600003612b11576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050610e28565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b00000000000000000000000000000000000000000000000000000000148061089257507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610892565b610fd484848484612c4b565b815115612c175781518083602001fd5b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ad49190612e91565b612c5784848484612d20565b6000612c65600e5460ff1690565b90506000816003811115612c7b57612c7b613104565b03612c865750610fd4565b6001816003811115612c9a57612c9a613104565b148015612cae57506001600160a01b038516155b15612cb95750610fd4565b6002816003811115612ccd57612ccd613104565b148015612ce157506001600160a01b038416155b15612cec5750610fd4565b806040517ffc40c881000000000000000000000000000000000000000000000000000000008152600401610ad49190613133565b600a5460ff1615612d8d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f45524337323141436f6d6d6f6e3a2070617573656400000000000000000000006044820152606401610ad4565b610fd4565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114610b3f57600080fd5b600060208284031215612dd257600080fd5b8135610fa881612d92565b80356001600160a01b0381168114612df457600080fd5b919050565b60008060408385031215612e0c57600080fd5b612e1583612ddd565b915060208301356bffffffffffffffffffffffff81168114612e3657600080fd5b809150509250929050565b60005b83811015612e5c578181015183820152602001612e44565b50506000910152565b60008151808452612e7d816020860160208601612e41565b601f01601f19169290920160200192915050565b602081526000610fa86020830184612e65565b600060208284031215612eb657600080fd5b5035919050565b60008060408385031215612ed057600080fd5b612ed983612ddd565b946020939093013593505050565b600060208284031215612ef957600080fd5b813560048110610fa857600080fd5b600080600060608486031215612f1d57600080fd5b612f2684612ddd565b9250612f3460208501612ddd565b9150604084013590509250925092565b60008060408385031215612f5757600080fd5b50508035926020909101359150565b60008060408385031215612f7957600080fd5b82359150612f8960208401612ddd565b90509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600067ffffffffffffffff80841115612fdc57612fdc612f92565b604051601f8501601f19908116603f0116810190828211818310171561300457613004612f92565b8160405280935085815286868601111561301d57600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561304957600080fd5b813567ffffffffffffffff81111561306057600080fd5b8201601f8101841361307157600080fd5b610e2884823560208401612fc1565b60008083601f84011261309257600080fd5b50813567ffffffffffffffff8111156130aa57600080fd5b602083019150836020828501011115610cab57600080fd5b600080602083850312156130d557600080fd5b823567ffffffffffffffff8111156130ec57600080fd5b6130f885828601613080565b90969095509350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b602081016004831061316e577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b91905290565b6000806000806060858703121561318a57600080fd5b61319385612ddd565b9350602085013567ffffffffffffffff80821682146131b157600080fd5b909350604086013590808211156131c757600080fd5b506131d487828801613080565b95989497509550505050565b6000602082840312156131f257600080fd5b610fa882612ddd565b8015158114610b3f57600080fd5b6000806040838503121561321c57600080fd5b61322583612ddd565b91506020830135612e36816131fb565b6000806000806080858703121561324b57600080fd5b61325485612ddd565b935061326260208601612ddd565b925060408501359150606085013567ffffffffffffffff81111561328557600080fd5b8501601f8101871361329657600080fd5b6132a587823560208401612fc1565b91505092959194509250565b600080604083850312156132c457600080fd5b6132cd83612ddd565b9150612f8960208401612ddd565b600181811c908216806132ef57607f821691505b602082108103613328577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b80820281158282048414176108925761089261332e565b6000826133aa577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b600083516133c1818460208801612e41565b8351908301906133d5818360208801612e41565b01949350505050565b601f8211156108cc57600081815260208120601f850160051c810160208610156134055750805b601f850160051c820191505b81811015611d3a57828155600101613411565b815167ffffffffffffffff81111561343e5761343e612f92565b6134528161344c84546132db565b846133de565b602080601f831160018114613487576000841561346f5750858301515b600019600386901b1c1916600185901b178555611d3a565b600085815260208120601f198616915b828110156134b657888601518255948401946001909101908401613497565b50858210156134d45787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161351c816017850160208801612e41565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351613559816028840160208801612e41565b01602801949350505050565b60006020828403121561357757600080fd5b8151610fa8816131fb565b60008251613594818460208701612e41565b9190910192915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b808201808211156108925761089261332e565b6000816135ef576135ef61332e565b506000190190565b818103818111156108925761089261332e565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b60006001600160a01b0380871683528086166020840152508360408301526080606083015261366b6080830184612e65565b9695505050505050565b60006020828403121561368757600080fd5b8151610fa881612d9256fea264697066735822122056447b4551c80b1698b24fd74886f0c6197bc01c561f0941c9bf3edfc38d59c464736f6c634300081100331e4c11efbd6a865b1cba79eea33d1b33c1394d834190605ed6a14c71c480bf7668747470733a2f2f6d657461646174612e70726f6f662e78797a2f6469616d6f6e642d65786869626974696f6e2d706173732f726567756c61722fd83ac62169e315c6fc3ecdb2c5b6ae75284053b2c2f2fb9fc715ba380283e94200000000000000000000000070c71b539bdcb5b59edd42a500fd95bdec96265000000000000000000000000032220f07dbcd18149f619f28cd09fd911cc0372d0000000000000000000000002ed939a9285b42eb5cdb3cfd3b0bb9a48ab1c5b7

Deployed Bytecode

0x6080604052600436106102d15760003560e01c806342842e0e1161017957806391d14854116100d6578063c16272971161008a578063d547741f11610064578063d547741f146107eb578063d547cfb71461080b578063e985e9c51461082057600080fd5b8063c162729714610796578063c87b56dd146107ab578063ca15c873146107cb57600080fd5b8063a217fddf116100bb578063a217fddf1461074e578063a22cb46514610763578063b88d4fde1461078357600080fd5b806391d14854146106f357806395d89b411461073957600080fd5b806370a082311161012d5780638222b7d7116101125780638222b7d7146106a95780638456cb59146106be5780639010d07c146106d357600080fd5b806370a08231146106555780637fa46ab41461067557600080fd5b80635ada5c551161015e5780635ada5c551461060a5780635c975abb1461061d5780636352211e1461063557600080fd5b806342842e0e146105d7578063461d338c146105ea57600080fd5b80631e9a69501161023257806330176e13116101e65780633dcc23a0116101c05780633dcc23a0146105805780633f4ba83a146105a057806341f43434146105b557600080fd5b806330176e131461050c57806331c23d201461052c57806336568abe1461056057600080fd5b8063248a9ca311610217578063248a9ca31461047d5780632a55205a146104ad5780632f2ff15d146104ec57600080fd5b80631e9a69501461044a57806323b872dd1461046a57600080fd5b80630dc3b9091161028957806318160ddd1161026e57806318160ddd146103fc5780631b38388e146104155780631d23354a1461043557600080fd5b80630dc3b9091461039a578063117ad57a146103dc57600080fd5b806306fdde03116102ba57806306fdde031461032d578063081812fc1461034f578063095ea7b31461038757600080fd5b806301ffc9a7146102d657806304634d8d1461030b575b600080fd5b3480156102e257600080fd5b506102f66102f1366004612dc0565b610869565b60405190151581526020015b60405180910390f35b34801561031757600080fd5b5061032b610326366004612df9565b610898565b005b34801561033957600080fd5b506103426108d1565b6040516103029190612e91565b34801561035b57600080fd5b5061036f61036a366004612ea4565b610963565b6040516001600160a01b039091168152602001610302565b61032b610395366004612ebd565b6109c0565b3480156103a657600080fd5b506103ce7fe0fb75b40f2731fce9fd08fd8e51c7db44b9ffb2e43369a2734fc1a121a6b30781565b604051908152602001610302565b3480156103e857600080fd5b5061032b6103f7366004612ee7565b6109ce565b34801561040857600080fd5b50600154600054036103ce565b34801561042157600080fd5b5061032b610430366004612ee7565b610a43565b34801561044157600080fd5b5061032b610b0d565b34801561045657600080fd5b5061032b610465366004612ebd565b610b42565b61032b610478366004612f08565b610bc8565b34801561048957600080fd5b506103ce610498366004612ea4565b60009081526008602052604090206001015490565b3480156104b957600080fd5b506104cd6104c8366004612f44565b610bd3565b604080516001600160a01b039093168352602083019190915201610302565b3480156104f857600080fd5b5061032b610507366004612f66565b610cb2565b34801561051857600080fd5b5061032b610527366004613037565b610cd7565b34801561053857600080fd5b506103ce7f1e4c11efbd6a865b1cba79eea33d1b33c1394d834190605ed6a14c71c480bf7681565b34801561056c57600080fd5b5061032b61057b366004612f66565b610d0a565b34801561058c57600080fd5b5061034261059b3660046130c2565b610dac565b3480156105ac57600080fd5b5061032b610e30565b3480156105c157600080fd5b5061036f6daaeb6d7670e522a718067333cd4e81565b61032b6105e5366004612f08565b610e62565b3480156105f657600080fd5b50600e5460ff166040516103029190613133565b61032b610618366004613174565b610e6d565b34801561062957600080fd5b50600a5460ff166102f6565b34801561064157600080fd5b5061036f610650366004612ea4565b610eaa565b34801561066157600080fd5b506103ce6106703660046131e0565b610eb5565b34801561068157600080fd5b506103ce7f44ac9762eec3a11893fefb11d028bb3102560094137c3ed4518712475b2577cc81565b3480156106b557600080fd5b5061032b610f1d565b3480156106ca57600080fd5b5061032b610f5e565b3480156106df57600080fd5b5061036f6106ee366004612f44565b610f90565b3480156106ff57600080fd5b506102f661070e366004612f66565b60009182526008602090815260408084206001600160a01b0393909316845291905290205460ff1690565b34801561074557600080fd5b50610342610faf565b34801561075a57600080fd5b506103ce600081565b34801561076f57600080fd5b5061032b61077e366004613209565b610fbe565b61032b610791366004613235565b610fc8565b3480156107a257600080fd5b5061032b610fda565b3480156107b757600080fd5b506103426107c6366004612ea4565b61100c565b3480156107d757600080fd5b506103ce6107e6366004612ea4565b6110a8565b3480156107f757600080fd5b5061032b610806366004612f66565b6110bf565b34801561081757600080fd5b506103426110e4565b34801561082c57600080fd5b506102f661083b3660046132b1565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b6000610874826111aa565b806108835750610883826111b5565b806108925750610892826111b5565b92915050565b7f1e4c11efbd6a865b1cba79eea33d1b33c1394d834190605ed6a14c71c480bf766108c2816111cf565b6108cc83836111d9565b505050565b6060600280546108e0906132db565b80601f016020809104026020016040519081016040528092919081815260200182805461090c906132db565b80156109595780601f1061092e57610100808354040283529160200191610959565b820191906000526020600020905b81548152906001019060200180831161093c57829003601f168201915b5050505050905090565b600061096e82611338565b6109a4576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6109ca8282611378565b5050565b7f1e4c11efbd6a865b1cba79eea33d1b33c1394d834190605ed6a14c71c480bf766109f8816111cf565b600e54610100900460ff1615610a3a576040517fc5dbcbf100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6109ca8261138c565b7f1e4c11efbd6a865b1cba79eea33d1b33c1394d834190605ed6a14c71c480bf76610a6d816111cf565b600e5460ff166003811115610a8457610a84613104565b826003811115610a9657610a96613104565b14610add57600e546040517f6e7074f2000000000000000000000000000000000000000000000000000000008152610ad49160ff1690600401613133565b60405180910390fd5b5050600e80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff16610100179055565b7f1e4c11efbd6a865b1cba79eea33d1b33c1394d834190605ed6a14c71c480bf76610b37816111cf565b610b3f6113b3565b50565b7f44ac9762eec3a11893fefb11d028bb3102560094137c3ed4518712475b2577cc610b6c816111cf565b610b7683836113ff565b610bbe576040517f262f0dbe0000000000000000000000000000000000000000000000000000000081526001600160a01b038416600482015260248101839052604401610ad4565b6108cc838361147e565b6108cc838383611487565b6000828152600c602090815260408083208151808301909252546001600160a01b038116808352740100000000000000000000000000000000000000009091046bffffffffffffffffffffffff16928201929092528291610c74575060408051808201909152600b546001600160a01b03811682527401000000000000000000000000000000000000000090046bffffffffffffffffffffffff1660208201525b602081015160009061271090610c98906bffffffffffffffffffffffff168761335d565b610ca29190613374565b91519350909150505b9250929050565b600082815260086020526040902060010154610ccd816111cf565b6108cc83836114ac565b7f1e4c11efbd6a865b1cba79eea33d1b33c1394d834190605ed6a14c71c480bf76610d01816111cf565b6109ca826114ce565b6001600160a01b0381163314610da2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610ad4565b6109ca82826114da565b60607f1e4c11efbd6a865b1cba79eea33d1b33c1394d834190605ed6a14c71c480bf76610dd8816111cf565b610e2884848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506daaeb6d7670e522a718067333cd4e939250506114fc9050565b949350505050565b7f1e4c11efbd6a865b1cba79eea33d1b33c1394d834190605ed6a14c71c480bf76610e5a816111cf565b610b3f611540565b6108cc838383611592565b7fe0fb75b40f2731fce9fd08fd8e51c7db44b9ffb2e43369a2734fc1a121a6b307610e97816111cf565b610ea3858585856115b7565b5050505050565b6000610892826115cb565b60006001600160a01b038216610ef7576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b7f1e4c11efbd6a865b1cba79eea33d1b33c1394d834190605ed6a14c71c480bf76610f47816111cf565b610b3f6000610f596001546000540390565b611664565b7f1e4c11efbd6a865b1cba79eea33d1b33c1394d834190605ed6a14c71c480bf76610f88816111cf565b610b3f6116a1565b6000828152600960205260408120610fa890836116de565b9392505050565b6060600380546108e0906132db565b6109ca82826116ea565b610fd4848484846116fe565b50505050565b7f1e4c11efbd6a865b1cba79eea33d1b33c1394d834190605ed6a14c71c480bf76611004816111cf565b610b3f611724565b606061101782611338565b61104d576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061105761176e565b905080516000036110775760405180602001604052806000815250610fa8565b806110818461177d565b6040516020016110929291906133af565b6040516020818303038152906040529392505050565b6000818152600960205260408120610892906117c1565b6000828152600860205260409020600101546110da816111cf565b6108cc83836114da565b6060600d80546108e0906132db565b60008281526008602090815260408083206001600160a01b038516845290915290205460ff166109ca5760008281526008602090815260408083206001600160a01b03851684529091529020805460ff191660011790556111513390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000610fa8836001600160a01b0384166117cb565b60006108928261181a565b60006111c082611830565b80610892575061089282611868565b610b3f8133611873565b6127106bffffffffffffffffffffffff82161115611279576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c2065786365656460448201527f2073616c655072696365000000000000000000000000000000000000000000006064820152608401610ad4565b6001600160a01b0382166112e9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610ad4565b604080518082019091526001600160a01b039092168083526bffffffffffffffffffffffff90911660209092018290527401000000000000000000000000000000000000000090910217600b55565b60008054821080156108925750506000908152600460205260409020547c0100000000000000000000000000000000000000000000000000000000161590565b8161138281611902565b6108cc83836119ed565b600e805482919060ff191660018360038111156113ab576113ab613104565b021790555050565b6113fd7fe0fb75b40f2731fce9fd08fd8e51c7db44b9ffb2e43369a2734fc1a121a6b3077fd83ac62169e315c6fc3ecdb2c5b6ae75284053b2c2f2fb9fc715ba380283e942611abe565b565b60008061140b83610eaa565b9050806001600160a01b0316846001600160a01b0316148061145257506001600160a01b0380821660009081526007602090815260408083209388168352929052205460ff165b80610e28575061146183610963565b6001600160a01b0316846001600160a01b03161491505092915050565b6109ca81611b09565b826001600160a01b03811633146114a1576114a133611902565b610fd4848484611b14565b6114b682826110f3565b60008281526009602052604090206108cc9082611195565b600d6109ca8282613424565b6114e48282611d42565b60008281526009602052604090206108cc9082611dc5565b6060610fa8838360006040518060400160405280601e81526020017f416464726573733a206c6f772d6c6576656c2063616c6c206661696c65640000815250611dda565b611548611ee6565b600a805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b826001600160a01b03811633146115ac576115ac33611902565b610fd4848484611f52565b610fd4848467ffffffffffffffff16611f6d565b60008160005481101561163257600081815260046020526040812054907c010000000000000000000000000000000000000000000000000000000082169003611630575b80600003610fa857506000190160008181526004602052604090205461160f565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60408051838152602081018390527f6bd5c950a8d8df17f772f5af37cb3655737899cbf903264b9795592da439661c910160405180910390a15050565b6116a96120ab565b600a805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586115753390565b6000610fa88383612118565b816116f481611902565b6108cc8383612142565b836001600160a01b03811633146117185761171833611902565b610ea3858585856121ae565b6113fd7f44ac9762eec3a11893fefb11d028bb3102560094137c3ed4518712475b2577cc7fd83ac62169e315c6fc3ecdb2c5b6ae75284053b2c2f2fb9fc715ba380283e942611abe565b606061177861220b565b905090565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a9004806117975750819003601f19909101908152919050565b6000610892825490565b600081815260018301602052604081205461181257508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610892565b506000610892565b600061182582612215565b806108925750610892825b600061183b8261226b565b8061184a575061184a8261234c565b80611859575061185982611868565b806108925750610892826123a2565b600061089282612439565b60008281526008602090815260408083206001600160a01b038516845290915290205460ff166109ca576118a68161248f565b6118b18360206124a1565b6040516020016118c29291906134e4565b60408051601f19818403018152908290527f08c379a0000000000000000000000000000000000000000000000000000000008252610ad491600401612e91565b6daaeb6d7670e522a718067333cd4e3b15610b3f576040517fc61711340000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611988573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119ac9190613565565b610b3f576040517fede71dcc0000000000000000000000000000000000000000000000000000000081526001600160a01b0382166004820152602401610ad4565b60006119f882610eaa565b9050336001600160a01b03821614611a4a57611a14813361083b565b611a4a576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008281526006602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600082815260086020526040808220600101805490849055905190918391839186917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a4505050565b610b3f8160006126e4565b6000611b1f826115cb565b9050836001600160a01b0316816001600160a01b031614611b6c576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008281526006602052604090208054611b988187335b6001600160a01b039081169116811491141790565b611bdc57611ba6863361083b565b611bdc576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038516611c1c576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611c298686866001612887565b8015611c3457600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b177c0200000000000000000000000000000000000000000000000000000000176000858152600460205260408120919091557c020000000000000000000000000000000000000000000000000000000084169003611cf857600184016000818152600460205260408120549003611cf6576000548114611cf65760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b60008281526008602090815260408083206001600160a01b038516845290915290205460ff16156109ca5760008281526008602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000610fa8836001600160a01b038416612893565b606082471015611e6c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610ad4565b600080866001600160a01b03168587604051611e889190613582565b60006040518083038185875af1925050503d8060008114611ec5576040519150601f19603f3d011682016040523d82523d6000602084013e611eca565b606091505b5091509150611edb87838387612986565b979650505050505050565b600a5460ff166113fd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610ad4565b6108cc83838360405180602001604052806000815250610fc8565b6000805490829003611fab576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611fb86000848385612887565b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461206757808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a460010161202f565b50816000036120a2576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005550505050565b600a5460ff16156113fd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610ad4565b600082600001828154811061212f5761212f61359e565b9060005260206000200154905092915050565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6121b9848484610bc8565b6001600160a01b0383163b15610fd4576121d584848484612a19565b610fd4576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60606117786110e4565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f1e9a6950000000000000000000000000000000000000000000000000000000001480610892575061089282611868565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614806122fe57507f80ac58cd000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b806108925750507fffffffff00000000000000000000000000000000000000000000000000000000167f5b5e139f000000000000000000000000000000000000000000000000000000001490565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f2a55205a000000000000000000000000000000000000000000000000000000001480610892575061089282612215565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f4906490600000000000000000000000000000000000000000000000000000000148061089257507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610892565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f5a05180f000000000000000000000000000000000000000000000000000000001480610892575061089282612b64565b60606108926001600160a01b03831660145b606060006124b083600261335d565b6124bb9060026135cd565b67ffffffffffffffff8111156124d3576124d3612f92565b6040519080825280601f01601f1916602001820160405280156124fd576020820181803683370190505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106125345761253461359e565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106125975761259761359e565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006125d384600261335d565b6125de9060016135cd565b90505b600181111561267b577f303132333435363738396162636465660000000000000000000000000000000085600f166010811061261f5761261f61359e565b1a60f81b8282815181106126355761263561359e565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c93612674816135e0565b90506125e1565b508315610fa8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610ad4565b60006126ef836115cb565b90508060008061270d86600090815260066020526040902080549091565b91509150841561276657612722818433611b83565b61276657612730833361083b565b612766576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612774836000886001612887565b801561277f57600082555b6001600160a01b038316600081815260056020526040902080546fffffffffffffffffffffffffffffffff0190554260a01b177c0300000000000000000000000000000000000000000000000000000000176000878152600460205260408120919091557c02000000000000000000000000000000000000000000000000000000008516900361283f5760018601600081815260046020526040812054900361283d57600054811461283d5760008181526004602052604090208590555b505b60405186906000906001600160a01b038616907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050600180548101905550505050565b610fd484848484612bfb565b6000818152600183016020526040812054801561297c5760006128b76001836135f7565b85549091506000906128cb906001906135f7565b90508181146129305760008660000182815481106128eb576128eb61359e565b906000526020600020015490508087600001848154811061290e5761290e61359e565b6000918252602080832090910192909255918252600188019052604090208390555b85548690806129415761294161360a565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610892565b6000915050610892565b60608315612a0f578251600003612a08576001600160a01b0385163b612a08576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610ad4565b5081610e28565b610e288383612c07565b6040517f150b7a020000000000000000000000000000000000000000000000000000000081526000906001600160a01b0385169063150b7a0290612a67903390899088908890600401613639565b6020604051808303816000875af1925050508015612aa2575060408051601f3d908101601f19168201909252612a9f91810190613675565b60015b612b19573d808015612ad0576040519150601f19603f3d011682016040523d82523d6000602084013e612ad5565b606091505b508051600003612b11576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050610e28565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b00000000000000000000000000000000000000000000000000000000148061089257507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610892565b610fd484848484612c4b565b815115612c175781518083602001fd5b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ad49190612e91565b612c5784848484612d20565b6000612c65600e5460ff1690565b90506000816003811115612c7b57612c7b613104565b03612c865750610fd4565b6001816003811115612c9a57612c9a613104565b148015612cae57506001600160a01b038516155b15612cb95750610fd4565b6002816003811115612ccd57612ccd613104565b148015612ce157506001600160a01b038416155b15612cec5750610fd4565b806040517ffc40c881000000000000000000000000000000000000000000000000000000008152600401610ad49190613133565b600a5460ff1615612d8d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f45524337323141436f6d6d6f6e3a2070617573656400000000000000000000006044820152606401610ad4565b610fd4565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114610b3f57600080fd5b600060208284031215612dd257600080fd5b8135610fa881612d92565b80356001600160a01b0381168114612df457600080fd5b919050565b60008060408385031215612e0c57600080fd5b612e1583612ddd565b915060208301356bffffffffffffffffffffffff81168114612e3657600080fd5b809150509250929050565b60005b83811015612e5c578181015183820152602001612e44565b50506000910152565b60008151808452612e7d816020860160208601612e41565b601f01601f19169290920160200192915050565b602081526000610fa86020830184612e65565b600060208284031215612eb657600080fd5b5035919050565b60008060408385031215612ed057600080fd5b612ed983612ddd565b946020939093013593505050565b600060208284031215612ef957600080fd5b813560048110610fa857600080fd5b600080600060608486031215612f1d57600080fd5b612f2684612ddd565b9250612f3460208501612ddd565b9150604084013590509250925092565b60008060408385031215612f5757600080fd5b50508035926020909101359150565b60008060408385031215612f7957600080fd5b82359150612f8960208401612ddd565b90509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600067ffffffffffffffff80841115612fdc57612fdc612f92565b604051601f8501601f19908116603f0116810190828211818310171561300457613004612f92565b8160405280935085815286868601111561301d57600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561304957600080fd5b813567ffffffffffffffff81111561306057600080fd5b8201601f8101841361307157600080fd5b610e2884823560208401612fc1565b60008083601f84011261309257600080fd5b50813567ffffffffffffffff8111156130aa57600080fd5b602083019150836020828501011115610cab57600080fd5b600080602083850312156130d557600080fd5b823567ffffffffffffffff8111156130ec57600080fd5b6130f885828601613080565b90969095509350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b602081016004831061316e577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b91905290565b6000806000806060858703121561318a57600080fd5b61319385612ddd565b9350602085013567ffffffffffffffff80821682146131b157600080fd5b909350604086013590808211156131c757600080fd5b506131d487828801613080565b95989497509550505050565b6000602082840312156131f257600080fd5b610fa882612ddd565b8015158114610b3f57600080fd5b6000806040838503121561321c57600080fd5b61322583612ddd565b91506020830135612e36816131fb565b6000806000806080858703121561324b57600080fd5b61325485612ddd565b935061326260208601612ddd565b925060408501359150606085013567ffffffffffffffff81111561328557600080fd5b8501601f8101871361329657600080fd5b6132a587823560208401612fc1565b91505092959194509250565b600080604083850312156132c457600080fd5b6132cd83612ddd565b9150612f8960208401612ddd565b600181811c908216806132ef57607f821691505b602082108103613328577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b80820281158282048414176108925761089261332e565b6000826133aa577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b600083516133c1818460208801612e41565b8351908301906133d5818360208801612e41565b01949350505050565b601f8211156108cc57600081815260208120601f850160051c810160208610156134055750805b601f850160051c820191505b81811015611d3a57828155600101613411565b815167ffffffffffffffff81111561343e5761343e612f92565b6134528161344c84546132db565b846133de565b602080601f831160018114613487576000841561346f5750858301515b600019600386901b1c1916600185901b178555611d3a565b600085815260208120601f198616915b828110156134b657888601518255948401946001909101908401613497565b50858210156134d45787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161351c816017850160208801612e41565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351613559816028840160208801612e41565b01602801949350505050565b60006020828403121561357757600080fd5b8151610fa8816131fb565b60008251613594818460208701612e41565b9190910192915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b808201808211156108925761089261332e565b6000816135ef576135ef61332e565b506000190190565b818103818111156108925761089261332e565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b60006001600160a01b0380871683528086166020840152508360408301526080606083015261366b6080830184612e65565b9695505050505050565b60006020828403121561368757600080fd5b8151610fa881612d9256fea264697066735822122056447b4551c80b1698b24fd74886f0c6197bc01c561f0941c9bf3edfc38d59c464736f6c63430008110033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

00000000000000000000000070c71b539bdcb5b59edd42a500fd95bdec96265000000000000000000000000032220f07dbcd18149f619f28cd09fd911cc0372d0000000000000000000000002ed939a9285b42eb5cdb3cfd3b0bb9a48ab1c5b7

-----Decoded View---------------
Arg [0] : admin (address): 0x70c71b539BDcB5b59Edd42a500Fd95bdeC962650
Arg [1] : steerer (address): 0x32220f07DBcd18149f619F28cD09FD911cc0372D
Arg [2] : secondaryReceiver (address): 0x2eD939a9285B42EB5CdB3cfD3B0bb9a48aB1c5b7

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 00000000000000000000000070c71b539bdcb5b59edd42a500fd95bdec962650
Arg [1] : 00000000000000000000000032220f07dbcd18149f619f28cd09fd911cc0372d
Arg [2] : 0000000000000000000000002ed939a9285b42eb5cdb3cfd3b0bb9a48ab1c5b7


Block Age Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Age Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Age Amount
View All Withdrawals

Transaction Hash Block Age Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.