Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00Latest 25 from a total of 72 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Public Mint | 17880254 | 959 days ago | IN | 0.08 ETH | 0.00207676 | ||||
| Public Mint | 17879891 | 959 days ago | IN | 0.08 ETH | 0.00281874 | ||||
| Public Mint | 17874197 | 960 days ago | IN | 0.08 ETH | 0.00223294 | ||||
| Public Mint | 16399362 | 1168 days ago | IN | 0.08 ETH | 0.00447369 | ||||
| Public Mint | 16362920 | 1173 days ago | IN | 0.16 ETH | 0.00247246 | ||||
| Public Mint | 16351344 | 1174 days ago | IN | 0.08 ETH | 0.00199539 | ||||
| Public Mint | 16349687 | 1174 days ago | IN | 0.08 ETH | 0.00374234 | ||||
| Public Mint | 16343665 | 1175 days ago | IN | 0.08 ETH | 0.00305022 | ||||
| Public Mint | 16343438 | 1175 days ago | IN | 0.08 ETH | 0.00408057 | ||||
| Public Mint | 16342188 | 1176 days ago | IN | 0.08 ETH | 0.00265818 | ||||
| Public Mint | 16340543 | 1176 days ago | IN | 0.08 ETH | 0.00303589 | ||||
| Public Mint | 16340224 | 1176 days ago | IN | 0.32 ETH | 0.00179248 | ||||
| Public Mint | 16339486 | 1176 days ago | IN | 0.08 ETH | 0.00122239 | ||||
| Public Mint | 16339426 | 1176 days ago | IN | 0.08 ETH | 0.00169249 | ||||
| Public Mint | 16338291 | 1176 days ago | IN | 0.08 ETH | 0.00225395 | ||||
| Public Mint | 16338251 | 1176 days ago | IN | 0.08 ETH | 0.00166798 | ||||
| Public Mint | 16338210 | 1176 days ago | IN | 0.08 ETH | 0.00186406 | ||||
| Public Mint | 16337778 | 1176 days ago | IN | 0.16 ETH | 0.0021971 | ||||
| Public Mint | 16337663 | 1176 days ago | IN | 0.08 ETH | 0.00195103 | ||||
| Public Mint | 16337559 | 1176 days ago | IN | 0.08 ETH | 0.0032621 | ||||
| Public Mint | 16337559 | 1176 days ago | IN | 0.08 ETH | 0.0032621 | ||||
| Public Mint | 16337559 | 1176 days ago | IN | 0.08 ETH | 0.0032621 | ||||
| Public Mint | 16337559 | 1176 days ago | IN | 0.08 ETH | 0.0032621 | ||||
| Public Mint | 16337559 | 1176 days ago | IN | 0.08 ETH | 0.0032621 | ||||
| Public Mint | 16337559 | 1176 days ago | IN | 0.08 ETH | 0.0032621 |
Latest 25 internal transactions (View All)
Advanced mode:
| Parent Transaction Hash | Method | Block |
From
|
|
To
|
||
|---|---|---|---|---|---|---|---|
| Transfer | 17880254 | 959 days ago | 0.08 ETH | ||||
| Transfer | 17879891 | 959 days ago | 0.08 ETH | ||||
| Transfer | 17874197 | 960 days ago | 0.08 ETH | ||||
| Transfer | 16399362 | 1168 days ago | 0.08 ETH | ||||
| Transfer | 16362920 | 1173 days ago | 0.16 ETH | ||||
| Transfer | 16351344 | 1174 days ago | 0.08 ETH | ||||
| Transfer | 16349687 | 1174 days ago | 0.08 ETH | ||||
| Transfer | 16343665 | 1175 days ago | 0.08 ETH | ||||
| Transfer | 16343438 | 1175 days ago | 0.08 ETH | ||||
| Transfer | 16342188 | 1176 days ago | 0.08 ETH | ||||
| Transfer | 16340543 | 1176 days ago | 0.08 ETH | ||||
| Transfer | 16340224 | 1176 days ago | 0.32 ETH | ||||
| Transfer | 16339486 | 1176 days ago | 0.08 ETH | ||||
| Transfer | 16339426 | 1176 days ago | 0.08 ETH | ||||
| Transfer | 16338291 | 1176 days ago | 0.08 ETH | ||||
| Transfer | 16338251 | 1176 days ago | 0.08 ETH | ||||
| Transfer | 16338210 | 1176 days ago | 0.08 ETH | ||||
| Transfer | 16337778 | 1176 days ago | 0.16 ETH | ||||
| Transfer | 16337663 | 1176 days ago | 0.08 ETH | ||||
| Transfer | 16337559 | 1176 days ago | 0.08 ETH | ||||
| Transfer | 16337559 | 1176 days ago | 0.08 ETH | ||||
| Transfer | 16337559 | 1176 days ago | 0.08 ETH | ||||
| Transfer | 16337559 | 1176 days ago | 0.08 ETH | ||||
| Transfer | 16337559 | 1176 days ago | 0.08 ETH | ||||
| Transfer | 16337559 | 1176 days ago | 0.08 ETH |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
MultivariaOpenMint
Compiler Version
v0.8.17+commit.8df45f5f
Contract Source Code (Solidity Multiple files format)
// SPDX-License-Identifier: MIT
pragma solidity >= 0.8.13;
import "./IERC1155.sol";
import "./Multivaria.sol";
contract MultivariaOpenMint{
uint256 public _price = 0.08 ether;
uint256 public _maxSupply = 200;
uint256 public _supply;
address public _multivariaAddress;
address public _recipient;
bool public _mintOpened;
mapping(address => bool) public _isAdmin;
constructor(){
_isAdmin[msg.sender]=true;
}
modifier adminOnly(){
require(_isAdmin[msg.sender], "Admins only");
_;
}
function setAdmin (address admin) external adminOnly{
_isAdmin[admin]= !_isAdmin[admin];
}
function setRecipient (address recipient) external adminOnly{
_recipient = recipient;
}
function setPrice (uint256 price) external adminOnly{
_price = price;
}
function setMultivariaAddress(address multivariaAddress) external adminOnly{
_multivariaAddress = multivariaAddress;
}
function toggleMintOpened() external adminOnly{
_mintOpened = !_mintOpened;
}
function updateSupply(uint256 supply) external adminOnly{
_supply = supply;
}
function publicMint(uint256 quantity)external payable{
require(_mintOpened, "Public mint is currently closed");
require(_supply + quantity <= _maxSupply,"Max supply reached");
require(msg.value >= _price * quantity, "Not enough funds");
payable(_recipient).transfer(_price * quantity);
Multivaria(_multivariaAddress).mint(msg.sender, 12, quantity);
Multivaria(_multivariaAddress).mint(msg.sender, 13, quantity);
_supply += quantity;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)
pragma solidity ^0.8.1;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*
* [IMPORTANT]
* ====
* You shouldn't rely on `isContract` to protect against flash loan attacks!
*
* Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
* constructor.
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize/address.code.length, which returns 0
// for contracts in construction, since the code is only stored at the end
// of the constructor execution.
return account.code.length > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
/// @solidity memory-safe-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/// @author: manifold.xyz
import "./ERC165.sol";
import "./EnumerableSet.sol";
import "./Ownable.sol";
import "./IAdminControl.sol";
abstract contract AdminControl is Ownable, IAdminControl, ERC165 {
using EnumerableSet for EnumerableSet.AddressSet;
// Track registered admins
EnumerableSet.AddressSet private _admins;
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
return interfaceId == type(IAdminControl).interfaceId
|| super.supportsInterface(interfaceId);
}
/**
* @dev Only allows approved admins to call the specified function
*/
modifier adminRequired() {
require(owner() == msg.sender || _admins.contains(msg.sender), "AdminControl: Must be owner or admin");
_;
}
/**
* @dev See {IAdminControl-getAdmins}.
*/
function getAdmins() external view override returns (address[] memory admins) {
admins = new address[](_admins.length());
for (uint i = 0; i < _admins.length(); i++) {
admins[i] = _admins.at(i);
}
return admins;
}
/**
* @dev See {IAdminControl-approveAdmin}.
*/
function approveAdmin(address admin) external override onlyOwner {
if (!_admins.contains(admin)) {
emit AdminApproved(admin, msg.sender);
_admins.add(admin);
}
}
/**
* @dev See {IAdminControl-revokeAdmin}.
*/
function revokeAdmin(address admin) external override onlyOwner {
if (_admins.contains(admin)) {
emit AdminRevoked(admin, msg.sender);
_admins.remove(admin);
}
}
/**
* @dev See {IAdminControl-isAdmin}.
*/
function isAdmin(address admin) public override view returns (bool) {
return (owner() == admin || _admins.contains(admin));
}
}// 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;
}
}
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/structs/EnumerableSet.sol)
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;
* }
* ```
*
* As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
* and `uint256` (`UintSet`) are supported.
*
* [WARNING]
* ====
* Trying to delete such a structure from storage will likely result in data corruption, rendering the structure unusable.
* See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.
*
* In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an array of EnumerableSet.
* ====
*/
library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are just wrappers around the
// underlying Set.
// This means that we can only create new EnumerableSets for types that fit
// in bytes32.
struct Set {
// Storage of set values
bytes32[] _values;
// Position of the value in the `values` array, plus 1 because index 0
// means a value is not in the set.
mapping(bytes32 => uint256) _indexes;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function _add(Set storage set, bytes32 value) private returns (bool) {
if (!_contains(set, value)) {
set._values.push(value);
// The value is stored at length-1, but we add 1 to all indexes
// and use 0 as a sentinel value
set._indexes[value] = set._values.length;
return true;
} else {
return false;
}
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function _remove(Set storage set, bytes32 value) private returns (bool) {
// We read and store the value's index to prevent multiple reads from the same storage slot
uint256 valueIndex = set._indexes[value];
if (valueIndex != 0) {
// Equivalent to contains(set, value)
// To delete an element from the _values array in O(1), we swap the element to delete with the last one in
// the array, and then remove the last element (sometimes called as 'swap and pop').
// This modifies the order of the array, as noted in {at}.
uint256 toDeleteIndex = valueIndex - 1;
uint256 lastIndex = set._values.length - 1;
if (lastIndex != toDeleteIndex) {
bytes32 lastValue = set._values[lastIndex];
// Move the last value to the index where the value to delete is
set._values[toDeleteIndex] = lastValue;
// Update the index for the moved value
set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex
}
// Delete the slot where the moved value was stored
set._values.pop();
// Delete the index for the deleted slot
delete set._indexes[value];
return true;
} else {
return false;
}
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function _contains(Set storage set, bytes32 value) private view returns (bool) {
return set._indexes[value] != 0;
}
/**
* @dev Returns the number of values on the set. O(1).
*/
function _length(Set storage set) private view returns (uint256) {
return set._values.length;
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function _at(Set storage set, uint256 index) private view returns (bytes32) {
return set._values[index];
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function _values(Set storage set) private view returns (bytes32[] memory) {
return set._values;
}
// Bytes32Set
struct Bytes32Set {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
return _add(set._inner, value);
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
return _remove(set._inner, value);
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
return _contains(set._inner, value);
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(Bytes32Set storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
return _at(set._inner, index);
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
return _values(set._inner);
}
// AddressSet
struct AddressSet {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(AddressSet storage set, address value) internal returns (bool) {
return _add(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(AddressSet storage set, address value) internal returns (bool) {
return _remove(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(AddressSet storage set, address value) internal view returns (bool) {
return _contains(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(AddressSet storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(AddressSet storage set, uint256 index) internal view returns (address) {
return address(uint160(uint256(_at(set._inner, index))));
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function values(AddressSet storage set) internal view returns (address[] memory) {
bytes32[] memory store = _values(set._inner);
address[] memory result;
/// @solidity memory-safe-assembly
assembly {
result := store
}
return result;
}
// UintSet
struct UintSet {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(UintSet storage set, uint256 value) internal returns (bool) {
return _add(set._inner, bytes32(value));
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(UintSet storage set, uint256 value) internal returns (bool) {
return _remove(set._inner, bytes32(value));
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(UintSet storage set, uint256 value) internal view returns (bool) {
return _contains(set._inner, bytes32(value));
}
/**
* @dev Returns the number of values on the set. O(1).
*/
function length(UintSet storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(UintSet storage set, uint256 index) internal view returns (uint256) {
return uint256(_at(set._inner, index));
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function values(UintSet storage set) internal view returns (uint256[] memory) {
bytes32[] memory store = _values(set._inner);
uint256[] memory result;
/// @solidity memory-safe-assembly
assembly {
result := store
}
return result;
}
}
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/ERC1155.sol)
pragma solidity ^0.8.0;
import "./IERC1155.sol";
import "./IERC1155Receiver.sol";
import "./IERC1155MetadataURI.sol";
import "./Address.sol";
import "./Context.sol";
import "./ERC165.sol";
/**
* @dev Implementation of the basic standard multi-token.
* See https://eips.ethereum.org/EIPS/eip-1155
* Originally based on code by Enjin: https://github.com/enjin/erc-1155
*
* _Available since v3.1._
*/
contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
using Address for address;
// Mapping from token ID to account balances
mapping(uint256 => mapping(address => uint256)) private _balances;
// Mapping from account to operator approvals
mapping(address => mapping(address => bool)) private _operatorApprovals;
// Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json
string private _uri;
/**
* @dev See {_setURI}.
*/
constructor(string memory uri_) {
_setURI(uri_);
}
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
return
interfaceId == type(IERC1155).interfaceId ||
interfaceId == type(IERC1155MetadataURI).interfaceId ||
super.supportsInterface(interfaceId);
}
/**
* @dev See {IERC1155MetadataURI-uri}.
*
* This implementation returns the same URI for *all* token types. It relies
* on the token type ID substitution mechanism
* https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
*
* Clients calling this function must replace the `\{id\}` substring with the
* actual token type ID.
*/
function uri(uint256) public view virtual override returns (string memory) {
return _uri;
}
/**
* @dev See {IERC1155-balanceOf}.
*
* Requirements:
*
* - `account` cannot be the zero address.
*/
function balanceOf(address account, uint256 id) public view virtual override returns (uint256) {
require(account != address(0), "ERC1155: address zero is not a valid owner");
return _balances[id][account];
}
/**
* @dev See {IERC1155-balanceOfBatch}.
*
* Requirements:
*
* - `accounts` and `ids` must have the same length.
*/
function balanceOfBatch(address[] memory accounts, uint256[] memory ids)
public
view
virtual
override
returns (uint256[] memory)
{
require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch");
uint256[] memory batchBalances = new uint256[](accounts.length);
for (uint256 i = 0; i < accounts.length; ++i) {
batchBalances[i] = balanceOf(accounts[i], ids[i]);
}
return batchBalances;
}
/**
* @dev See {IERC1155-setApprovalForAll}.
*/
function setApprovalForAll(address operator, bool approved) public virtual override {
_setApprovalForAll(_msgSender(), operator, approved);
}
/**
* @dev See {IERC1155-isApprovedForAll}.
*/
function isApprovedForAll(address account, address operator) public view virtual override returns (bool) {
return _operatorApprovals[account][operator];
}
/**
* @dev See {IERC1155-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 id,
uint256 amount,
bytes memory data
) public virtual override {
require(
from == _msgSender() || isApprovedForAll(from, _msgSender()),
"ERC1155: caller is not token owner nor approved"
);
_safeTransferFrom(from, to, id, amount, data);
}
/**
* @dev See {IERC1155-safeBatchTransferFrom}.
*/
function safeBatchTransferFrom(
address from,
address to,
uint256[] memory ids,
uint256[] memory amounts,
bytes memory data
) public virtual override {
require(
from == _msgSender() || isApprovedForAll(from, _msgSender()),
"ERC1155: caller is not token owner nor approved"
);
_safeBatchTransferFrom(from, to, ids, amounts, data);
}
/**
* @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
*
* Emits a {TransferSingle} event.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `from` must have a balance of tokens of type `id` of at least `amount`.
* - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
* acceptance magic value.
*/
function _safeTransferFrom(
address from,
address to,
uint256 id,
uint256 amount,
bytes memory data
) internal virtual {
require(to != address(0), "ERC1155: transfer to the zero address");
address operator = _msgSender();
uint256[] memory ids = _asSingletonArray(id);
uint256[] memory amounts = _asSingletonArray(amount);
_beforeTokenTransfer(operator, from, to, ids, amounts, data);
uint256 fromBalance = _balances[id][from];
require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
unchecked {
_balances[id][from] = fromBalance - amount;
}
_balances[id][to] += amount;
emit TransferSingle(operator, from, to, id, amount);
_afterTokenTransfer(operator, from, to, ids, amounts, data);
_doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data);
}
/**
* @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}.
*
* Emits a {TransferBatch} event.
*
* Requirements:
*
* - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
* acceptance magic value.
*/
function _safeBatchTransferFrom(
address from,
address to,
uint256[] memory ids,
uint256[] memory amounts,
bytes memory data
) internal virtual {
require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");
require(to != address(0), "ERC1155: transfer to the zero address");
address operator = _msgSender();
_beforeTokenTransfer(operator, from, to, ids, amounts, data);
for (uint256 i = 0; i < ids.length; ++i) {
uint256 id = ids[i];
uint256 amount = amounts[i];
uint256 fromBalance = _balances[id][from];
require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
unchecked {
_balances[id][from] = fromBalance - amount;
}
_balances[id][to] += amount;
}
emit TransferBatch(operator, from, to, ids, amounts);
_afterTokenTransfer(operator, from, to, ids, amounts, data);
_doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data);
}
/**
* @dev Sets a new URI for all token types, by relying on the token type ID
* substitution mechanism
* https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
*
* By this mechanism, any occurrence of the `\{id\}` substring in either the
* URI or any of the amounts in the JSON file at said URI will be replaced by
* clients with the token type ID.
*
* For example, the `https://token-cdn-domain/\{id\}.json` URI would be
* interpreted by clients as
* `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json`
* for token type ID 0x4cce0.
*
* See {uri}.
*
* Because these URIs cannot be meaningfully represented by the {URI} event,
* this function emits no events.
*/
function _setURI(string memory newuri) internal virtual {
_uri = newuri;
}
/**
* @dev Creates `amount` tokens of token type `id`, and assigns them to `to`.
*
* Emits a {TransferSingle} event.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
* acceptance magic value.
*/
function _mint(
address to,
uint256 id,
uint256 amount,
bytes memory data
) internal virtual {
require(to != address(0), "ERC1155: mint to the zero address");
address operator = _msgSender();
uint256[] memory ids = _asSingletonArray(id);
uint256[] memory amounts = _asSingletonArray(amount);
_beforeTokenTransfer(operator, address(0), to, ids, amounts, data);
_balances[id][to] += amount;
emit TransferSingle(operator, address(0), to, id, amount);
_afterTokenTransfer(operator, address(0), to, ids, amounts, data);
_doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data);
}
/**
* @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}.
*
* Emits a {TransferBatch} event.
*
* Requirements:
*
* - `ids` and `amounts` must have the same length.
* - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
* acceptance magic value.
*/
function _mintBatch(
address to,
uint256[] memory ids,
uint256[] memory amounts,
bytes memory data
) internal virtual {
require(to != address(0), "ERC1155: mint to the zero address");
require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");
address operator = _msgSender();
_beforeTokenTransfer(operator, address(0), to, ids, amounts, data);
for (uint256 i = 0; i < ids.length; i++) {
_balances[ids[i]][to] += amounts[i];
}
emit TransferBatch(operator, address(0), to, ids, amounts);
_afterTokenTransfer(operator, address(0), to, ids, amounts, data);
_doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data);
}
/**
* @dev Destroys `amount` tokens of token type `id` from `from`
*
* Emits a {TransferSingle} event.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `from` must have at least `amount` tokens of token type `id`.
*/
function _burn(
address from,
uint256 id,
uint256 amount
) internal virtual {
require(from != address(0), "ERC1155: burn from the zero address");
address operator = _msgSender();
uint256[] memory ids = _asSingletonArray(id);
uint256[] memory amounts = _asSingletonArray(amount);
_beforeTokenTransfer(operator, from, address(0), ids, amounts, "");
uint256 fromBalance = _balances[id][from];
require(fromBalance >= amount, "ERC1155: burn amount exceeds balance");
unchecked {
_balances[id][from] = fromBalance - amount;
}
emit TransferSingle(operator, from, address(0), id, amount);
_afterTokenTransfer(operator, from, address(0), ids, amounts, "");
}
/**
* @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}.
*
* Emits a {TransferBatch} event.
*
* Requirements:
*
* - `ids` and `amounts` must have the same length.
*/
function _burnBatch(
address from,
uint256[] memory ids,
uint256[] memory amounts
) internal virtual {
require(from != address(0), "ERC1155: burn from the zero address");
require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");
address operator = _msgSender();
_beforeTokenTransfer(operator, from, address(0), ids, amounts, "");
for (uint256 i = 0; i < ids.length; i++) {
uint256 id = ids[i];
uint256 amount = amounts[i];
uint256 fromBalance = _balances[id][from];
require(fromBalance >= amount, "ERC1155: burn amount exceeds balance");
unchecked {
_balances[id][from] = fromBalance - amount;
}
}
emit TransferBatch(operator, from, address(0), ids, amounts);
_afterTokenTransfer(operator, from, address(0), ids, amounts, "");
}
/**
* @dev Approve `operator` to operate on all of `owner` tokens
*
* Emits an {ApprovalForAll} event.
*/
function _setApprovalForAll(
address owner,
address operator,
bool approved
) internal virtual {
require(owner != operator, "ERC1155: setting approval status for self");
_operatorApprovals[owner][operator] = approved;
emit ApprovalForAll(owner, operator, approved);
}
/**
* @dev Hook that is called before any token transfer. This includes minting
* and burning, as well as batched variants.
*
* The same hook is called on both single and batched variants. For single
* transfers, the length of the `ids` and `amounts` arrays will be 1.
*
* Calling conditions (for each `id` and `amount` pair):
*
* - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* of token type `id` will be transferred to `to`.
* - When `from` is zero, `amount` tokens of token type `id` will be minted
* for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens of token type `id`
* will be burned.
* - `from` and `to` are never both zero.
* - `ids` and `amounts` have the same, non-zero length.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(
address operator,
address from,
address to,
uint256[] memory ids,
uint256[] memory amounts,
bytes memory data
) internal virtual {}
/**
* @dev Hook that is called after any token transfer. This includes minting
* and burning, as well as batched variants.
*
* The same hook is called on both single and batched variants. For single
* transfers, the length of the `id` and `amount` arrays will be 1.
*
* Calling conditions (for each `id` and `amount` pair):
*
* - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* of token type `id` will be transferred to `to`.
* - When `from` is zero, `amount` tokens of token type `id` will be minted
* for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens of token type `id`
* will be burned.
* - `from` and `to` are never both zero.
* - `ids` and `amounts` have the same, non-zero length.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _afterTokenTransfer(
address operator,
address from,
address to,
uint256[] memory ids,
uint256[] memory amounts,
bytes memory data
) internal virtual {}
function _doSafeTransferAcceptanceCheck(
address operator,
address from,
address to,
uint256 id,
uint256 amount,
bytes memory data
) private {
if (to.isContract()) {
try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) {
if (response != IERC1155Receiver.onERC1155Received.selector) {
revert("ERC1155: ERC1155Receiver rejected tokens");
}
} catch Error(string memory reason) {
revert(reason);
} catch {
revert("ERC1155: transfer to non ERC1155Receiver implementer");
}
}
}
function _doSafeBatchTransferAcceptanceCheck(
address operator,
address from,
address to,
uint256[] memory ids,
uint256[] memory amounts,
bytes memory data
) private {
if (to.isContract()) {
try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns (
bytes4 response
) {
if (response != IERC1155Receiver.onERC1155BatchReceived.selector) {
revert("ERC1155: ERC1155Receiver rejected tokens");
}
} catch Error(string memory reason) {
revert(reason);
} catch {
revert("ERC1155: transfer to non ERC1155Receiver implementer");
}
}
}
function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) {
uint256[] memory array = new uint256[](1);
array[0] = element;
return array;
}
}
// 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) {
return interfaceId == type(IERC165).interfaceId;
}
}
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/// @author: manifold.xyz
import "./IERC165.sol";
/**
* @dev Interface for admin control
*/
interface IAdminControl is IERC165 {
event AdminApproved(address indexed account, address indexed sender);
event AdminRevoked(address indexed account, address indexed sender);
/**
* @dev gets address of all admins
*/
function getAdmins() external view returns (address[] memory);
/**
* @dev add an admin. Can only be called by contract owner.
*/
function approveAdmin(address admin) external;
/**
* @dev remove an admin. Can only be called by contract owner.
*/
function revokeAdmin(address admin) external;
/**
* @dev checks whether or not given address is an admin
* Returns True if they are
*/
function isAdmin(address admin) external view returns (bool);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* EIP-2981
*/
interface IEIP2981 {
/**
* bytes4(keccak256("royaltyInfo(uint256,uint256)")) == 0x2a55205a
*
* => 0x2a55205a = 0x2a55205a
*/
function royaltyInfo(uint256 tokenId, uint256 value) external view returns (address, uint256);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/IERC1155.sol)
pragma solidity ^0.8.0;
import "./IERC165.sol";
/**
* @dev Required interface of an ERC1155 compliant contract, as defined in the
* https://eips.ethereum.org/EIPS/eip-1155[EIP].
*
* _Available since v3.1._
*/
interface IERC1155 is IERC165 {
/**
* @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
*/
event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);
/**
* @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
* transfers.
*/
event TransferBatch(
address indexed operator,
address indexed from,
address indexed to,
uint256[] ids,
uint256[] values
);
/**
* @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
* `approved`.
*/
event ApprovalForAll(address indexed account, address indexed operator, bool approved);
/**
* @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
*
* If an {URI} event was emitted for `id`, the standard
* https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
* returned by {IERC1155MetadataURI-uri}.
*/
event URI(string value, uint256 indexed id);
/**
* @dev Returns the amount of tokens of token type `id` owned by `account`.
*
* Requirements:
*
* - `account` cannot be the zero address.
*/
function balanceOf(address account, uint256 id) external view returns (uint256);
/**
* @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
*
* Requirements:
*
* - `accounts` and `ids` must have the same length.
*/
function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids)
external
view
returns (uint256[] memory);
/**
* @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
*
* Emits an {ApprovalForAll} event.
*
* Requirements:
*
* - `operator` cannot be the caller.
*/
function setApprovalForAll(address operator, bool approved) external;
/**
* @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
*
* See {setApprovalForAll}.
*/
function isApprovedForAll(address account, address operator) external view returns (bool);
/**
* @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
*
* Emits a {TransferSingle} event.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - If the caller is not `from`, it must have been approved to spend ``from``'s tokens via {setApprovalForAll}.
* - `from` must have a balance of tokens of type `id` of at least `amount`.
* - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
* acceptance magic value.
*/
function safeTransferFrom(
address from,
address to,
uint256 id,
uint256 amount,
bytes calldata data
) external;
/**
* @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
*
* Emits a {TransferBatch} event.
*
* Requirements:
*
* - `ids` and `amounts` must have the same length.
* - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
* acceptance magic value.
*/
function safeBatchTransferFrom(
address from,
address to,
uint256[] calldata ids,
uint256[] calldata amounts,
bytes calldata data
) external;
}
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol)
pragma solidity ^0.8.0;
import "./IERC1155.sol";
/**
* @dev Interface of the optional ERC1155MetadataExtension interface, as defined
* in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP].
*
* _Available since v3.1._
*/
interface IERC1155MetadataURI is IERC1155 {
/**
* @dev Returns the URI for token type `id`.
*
* If the `\{id\}` substring is present in the URI, it must be replaced by
* clients with the actual token type ID.
*/
function uri(uint256 id) external view returns (string memory);
}
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol)
pragma solidity ^0.8.0;
import "./IERC165.sol";
/**
* @dev _Available since v3.1._
*/
interface IERC1155Receiver is IERC165 {
/**
* @dev Handles the receipt of a single ERC1155 token type. This function is
* called at the end of a `safeTransferFrom` after the balance has been updated.
*
* NOTE: To accept the transfer, this must return
* `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
* (i.e. 0xf23a6e61, or its own function selector).
*
* @param operator The address which initiated the transfer (i.e. msg.sender)
* @param from The address which previously owned the token
* @param id The ID of the token being transferred
* @param value The amount of tokens being transferred
* @param data Additional data with no specified format
* @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
*/
function onERC1155Received(
address operator,
address from,
uint256 id,
uint256 value,
bytes calldata data
) external returns (bytes4);
/**
* @dev Handles the receipt of a multiple ERC1155 token types. This function
* is called at the end of a `safeBatchTransferFrom` after the balances have
* been updated.
*
* NOTE: To accept the transfer(s), this must return
* `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
* (i.e. 0xbc197c81, or its own function selector).
*
* @param operator The address which initiated the batch transfer (i.e. msg.sender)
* @param from The address which previously owned the token
* @param ids An array containing ids of each token being transferred (order and length must match values array)
* @param values An array containing amounts of each token being transferred (order and length must match ids array)
* @param data Additional data with no specified format
* @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed
*/
function onERC1155BatchReceived(
address operator,
address from,
uint256[] calldata ids,
uint256[] calldata values,
bytes calldata data
) external returns (bytes4);
}
// 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);
}
// SPDX-License-Identifier: MIT
pragma solidity >= 0.8.13;
import "./ERC1155.sol";
import "./IEIP2981.sol";
import "./AdminControl.sol";
import "./Strings.sol";
contract Multivaria is ERC1155, AdminControl {
address payable private _royalties_recipient;
mapping (uint256 => uint256) _tokenMaxSupply;
mapping (uint256 => uint256) _tokenTier;
uint256 public _editionsLeft = 200;
uint256 private _royaltyAmount; //in %
uint256 [10] _ubs;
string public _name = "Multivaria";
string _uri;
bool public _shiftActivated;
bool public _advancedCardShifted;
constructor () ERC1155("") {
_royalties_recipient = payable(msg.sender);
_royaltyAmount = 10;
_ubs = [2,5,10,20,35,55,80,110,150,200];
}
function supportsInterface(bytes4 interfaceId)
public
view
virtual
override(ERC1155, AdminControl)
returns (bool)
{
return
AdminControl.supportsInterface(interfaceId) ||
ERC1155.supportsInterface(interfaceId) ||
interfaceId == type(IEIP2981).interfaceId ||
super.supportsInterface(interfaceId);
}
function name() public view returns (string memory) {
return _name;
}
function getPseudoRndTier() public returns (uint256){
bool tierFound = false;
uint [10] memory ubs = _ubs;
uint256 tier=0;
uint256 editionsLeft = _editionsLeft;
uint256 rnd = uint256(keccak256(abi.encodePacked(block.timestamp, msg.sender))) % editionsLeft;
for(uint256 i=0; i<= ubs.length-1; i++){
if(rnd < ubs[i] && tier == 0){
tierFound = true;
tier = i+2;
}
if(tierFound){
ubs[i]--;
}
}
editionsLeft--;
_ubs = ubs;
_editionsLeft = editionsLeft;
return tier;
}
function mint(
address to,
uint256 id,
uint256 amount
) external adminRequired{
_mint(to, id, amount, "0x0");
}
function mintBatch(
address to,
uint256[] memory ids,
uint256[] memory amounts
)external adminRequired{
_mintBatch(to, ids, amounts, "0x0");
}
function toggleShiftActivated()external adminRequired{
_shiftActivated = !_shiftActivated;
}
function adminShift(uint256 multivariaId, uint256 shiftCardId, uint256 shiftedTier) external adminRequired{
require(multivariaId <= 12 && multivariaId > 1, "Incorrect MultivariaId");
require(shiftCardId == 13, "Incorrect ShiftCardId");
require(shiftedTier < 12 , "Incorrect shiftedTier");
_burn(msg.sender, multivariaId, 1);
_burn(msg.sender, shiftCardId, 1);
_mint(msg.sender, shiftedTier, 1, "0x0");
}
function shift() external {
require(_shiftActivated, "Shift disabled");
require(ERC1155.balanceOf(msg.sender, 12)>=1,"Multivaria Tier 12 missing for the shift");
require(ERC1155.balanceOf(msg.sender, 13)>=1,"Shift card missing for the shift");
uint256 shiftedTier = getPseudoRndTier();
_burn(msg.sender, 12, 1);
_burn(msg.sender, 13, 1);
_mint(msg.sender, shiftedTier, 1, "0x0");
}
function uniqueShift(uint256 multivariaId) external {
require(_shiftActivated, "Shift disabled");
require(multivariaId <= 12 && multivariaId >=2, "A Multivaria Tier 2 needs to be burnt for this shift");
require(ERC1155.balanceOf(msg.sender, multivariaId) >= 1,"Multivaria missing for the shift");
require(ERC1155.balanceOf(msg.sender, 1) >= 1,"Advanced Shift card missing for the shift");
_advancedCardShifted = true;
_burn(msg.sender, multivariaId, 1);
// Need to iterate on the token 1
}
function setURI(
string calldata updatedURI
) external adminRequired{
_uri = updatedURI;
}
function uri(uint256 tokenId) public view virtual override returns (string memory) {
if(tokenId == 1 && !_advancedCardShifted){
return string(abi.encodePacked(_uri, Strings.toString(14), ".json"));
}
return string(abi.encodePacked(_uri, Strings.toString(tokenId), ".json"));
}
function burn(uint256 tokenId, uint256 quantity) public {
_burn(msg.sender, tokenId, quantity);
}
function burnBatch(
uint256[] memory ids,
uint256[] memory amounts
)external{
_burnBatch(msg.sender, ids, amounts);
}
function setRoyalties(address payable _recipient, uint256 _royaltyPerCent) external adminRequired {
_royalties_recipient = _recipient;
_royaltyAmount = _royaltyPerCent;
}
function royaltyInfo(uint256 salePrice) external view returns (address, uint256) {
if(_royalties_recipient != address(0)){
return (_royalties_recipient, (salePrice * _royaltyAmount) / 100 );
}
return (address(0), 0);
}
function withdraw(address recipient) external adminRequired {
payable(recipient).transfer(address(this).balance);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)
pragma solidity ^0.8.0;
import "./Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)
pragma solidity ^0.8.0;
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _HEX_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) {
// Inspired by OraclizeAPI's implementation - MIT licence
// https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol
if (value == 0) {
return "0";
}
uint256 temp = value;
uint256 digits;
while (temp != 0) {
digits++;
temp /= 10;
}
bytes memory buffer = new bytes(digits);
while (value != 0) {
digits -= 1;
buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
value /= 10;
}
return string(buffer);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
*/
function toHexString(uint256 value) internal pure returns (string memory) {
if (value == 0) {
return "0x00";
}
uint256 temp = value;
uint256 length = 0;
while (temp != 0) {
length++;
temp >>= 8;
}
return toHexString(value, length);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
*/
function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
bytes memory buffer = new bytes(2 * length + 2);
buffer[0] = "0";
buffer[1] = "x";
for (uint256 i = 2 * length + 1; i > 1; --i) {
buffer[i] = _HEX_SYMBOLS[value & 0xf];
value >>= 4;
}
require(value == 0, "Strings: hex length insufficient");
return string(buffer);
}
/**
* @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
*/
function toHexString(address addr) internal pure returns (string memory) {
return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
}
}
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_isAdmin","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_mintOpened","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_multivariaAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_recipient","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_supply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"admin","type":"address"}],"name":"setAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"multivariaAddress","type":"address"}],"name":"setMultivariaAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"}],"name":"setRecipient","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleMintOpened","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"supply","type":"uint256"}],"name":"updateSupply","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
608060405267011c37937e08000060005560c860015534801561002157600080fd5b50336000908152600560205260409020805460ff191660011790556107928061004b6000396000f3fe6080604052600436106100dd5760003560e01c8063704b6c021161007f578063ba0ca15b11610059578063ba0ca15b1461021d578063d4cca5f114610255578063dccee69b14610275578063e9e43f1f1461028a57600080fd5b8063704b6c02146101bd5780638315edc8146101dd57806391b7f5ed146101fd57600080fd5b8063235b6ea1116100bb578063235b6ea1146101525780632db11544146101685780633bbed4a01461017d5780636bd080491461019d57600080fd5b806315945790146100e257806319981dd11461010b57806322f4596f1461013c575b600080fd5b3480156100ee57600080fd5b506100f860025481565b6040519081526020015b60405180910390f35b34801561011757600080fd5b5060045461012c90600160a01b900460ff1681565b6040519015158152602001610102565b34801561014857600080fd5b506100f860015481565b34801561015e57600080fd5b506100f860005481565b61017b6101763660046106a8565b6102ba565b005b34801561018957600080fd5b5061017b6101983660046106c1565b6104f6565b3480156101a957600080fd5b5061017b6101b83660046106a8565b610547565b3480156101c957600080fd5b5061017b6101d83660046106c1565b61057b565b3480156101e957600080fd5b5061017b6101f83660046106c1565b6105d3565b34801561020957600080fd5b5061017b6102183660046106a8565b610624565b34801561022957600080fd5b5060035461023d906001600160a01b031681565b6040516001600160a01b039091168152602001610102565b34801561026157600080fd5b5060045461023d906001600160a01b031681565b34801561028157600080fd5b5061017b610658565b34801561029657600080fd5b5061012c6102a53660046106c1565b60056020526000908152604090205460ff1681565b600454600160a01b900460ff166103185760405162461bcd60e51b815260206004820152601f60248201527f5075626c6963206d696e742069732063757272656e746c7920636c6f7365640060448201526064015b60405180910390fd5b600154816002546103299190610707565b111561036c5760405162461bcd60e51b815260206004820152601260248201527113585e081cdd5c1c1b1e481c995858da195960721b604482015260640161030f565b8060005461037a9190610720565b3410156103bc5760405162461bcd60e51b815260206004820152601060248201526f4e6f7420656e6f7567682066756e647360801b604482015260640161030f565b6004546000546001600160a01b03909116906108fc906103dd908490610720565b6040518115909202916000818181858888f19350505050158015610405573d6000803e3d6000fd5b50600354604051630ab714fb60e11b8152336004820152600c6024820152604481018390526001600160a01b039091169063156e29f690606401600060405180830381600087803b15801561045957600080fd5b505af115801561046d573d6000803e3d6000fd5b5050600354604051630ab714fb60e11b8152336004820152600d6024820152604481018590526001600160a01b03909116925063156e29f69150606401600060405180830381600087803b1580156104c457600080fd5b505af11580156104d8573d6000803e3d6000fd5b5050505080600260008282546104ee9190610707565b909155505050565b3360009081526005602052604090205460ff166105255760405162461bcd60e51b815260040161030f90610737565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b3360009081526005602052604090205460ff166105765760405162461bcd60e51b815260040161030f90610737565b600255565b3360009081526005602052604090205460ff166105aa5760405162461bcd60e51b815260040161030f90610737565b6001600160a01b03166000908152600560205260409020805460ff19811660ff90911615179055565b3360009081526005602052604090205460ff166106025760405162461bcd60e51b815260040161030f90610737565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b3360009081526005602052604090205460ff166106535760405162461bcd60e51b815260040161030f90610737565b600055565b3360009081526005602052604090205460ff166106875760405162461bcd60e51b815260040161030f90610737565b6004805460ff60a01b198116600160a01b9182900460ff1615909102179055565b6000602082840312156106ba57600080fd5b5035919050565b6000602082840312156106d357600080fd5b81356001600160a01b03811681146106ea57600080fd5b9392505050565b634e487b7160e01b600052601160045260246000fd5b8082018082111561071a5761071a6106f1565b92915050565b808202811582820484141761071a5761071a6106f1565b6020808252600b908201526a41646d696e73206f6e6c7960a81b60408201526060019056fea2646970667358221220ea99cfffdfac7d32109a2511ec6f6ab94935e80f01642e7c255e59539d7d629e64736f6c63430008110033
Deployed Bytecode
0x6080604052600436106100dd5760003560e01c8063704b6c021161007f578063ba0ca15b11610059578063ba0ca15b1461021d578063d4cca5f114610255578063dccee69b14610275578063e9e43f1f1461028a57600080fd5b8063704b6c02146101bd5780638315edc8146101dd57806391b7f5ed146101fd57600080fd5b8063235b6ea1116100bb578063235b6ea1146101525780632db11544146101685780633bbed4a01461017d5780636bd080491461019d57600080fd5b806315945790146100e257806319981dd11461010b57806322f4596f1461013c575b600080fd5b3480156100ee57600080fd5b506100f860025481565b6040519081526020015b60405180910390f35b34801561011757600080fd5b5060045461012c90600160a01b900460ff1681565b6040519015158152602001610102565b34801561014857600080fd5b506100f860015481565b34801561015e57600080fd5b506100f860005481565b61017b6101763660046106a8565b6102ba565b005b34801561018957600080fd5b5061017b6101983660046106c1565b6104f6565b3480156101a957600080fd5b5061017b6101b83660046106a8565b610547565b3480156101c957600080fd5b5061017b6101d83660046106c1565b61057b565b3480156101e957600080fd5b5061017b6101f83660046106c1565b6105d3565b34801561020957600080fd5b5061017b6102183660046106a8565b610624565b34801561022957600080fd5b5060035461023d906001600160a01b031681565b6040516001600160a01b039091168152602001610102565b34801561026157600080fd5b5060045461023d906001600160a01b031681565b34801561028157600080fd5b5061017b610658565b34801561029657600080fd5b5061012c6102a53660046106c1565b60056020526000908152604090205460ff1681565b600454600160a01b900460ff166103185760405162461bcd60e51b815260206004820152601f60248201527f5075626c6963206d696e742069732063757272656e746c7920636c6f7365640060448201526064015b60405180910390fd5b600154816002546103299190610707565b111561036c5760405162461bcd60e51b815260206004820152601260248201527113585e081cdd5c1c1b1e481c995858da195960721b604482015260640161030f565b8060005461037a9190610720565b3410156103bc5760405162461bcd60e51b815260206004820152601060248201526f4e6f7420656e6f7567682066756e647360801b604482015260640161030f565b6004546000546001600160a01b03909116906108fc906103dd908490610720565b6040518115909202916000818181858888f19350505050158015610405573d6000803e3d6000fd5b50600354604051630ab714fb60e11b8152336004820152600c6024820152604481018390526001600160a01b039091169063156e29f690606401600060405180830381600087803b15801561045957600080fd5b505af115801561046d573d6000803e3d6000fd5b5050600354604051630ab714fb60e11b8152336004820152600d6024820152604481018590526001600160a01b03909116925063156e29f69150606401600060405180830381600087803b1580156104c457600080fd5b505af11580156104d8573d6000803e3d6000fd5b5050505080600260008282546104ee9190610707565b909155505050565b3360009081526005602052604090205460ff166105255760405162461bcd60e51b815260040161030f90610737565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b3360009081526005602052604090205460ff166105765760405162461bcd60e51b815260040161030f90610737565b600255565b3360009081526005602052604090205460ff166105aa5760405162461bcd60e51b815260040161030f90610737565b6001600160a01b03166000908152600560205260409020805460ff19811660ff90911615179055565b3360009081526005602052604090205460ff166106025760405162461bcd60e51b815260040161030f90610737565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b3360009081526005602052604090205460ff166106535760405162461bcd60e51b815260040161030f90610737565b600055565b3360009081526005602052604090205460ff166106875760405162461bcd60e51b815260040161030f90610737565b6004805460ff60a01b198116600160a01b9182900460ff1615909102179055565b6000602082840312156106ba57600080fd5b5035919050565b6000602082840312156106d357600080fd5b81356001600160a01b03811681146106ea57600080fd5b9392505050565b634e487b7160e01b600052601160045260246000fd5b8082018082111561071a5761071a6106f1565b92915050565b808202811582820484141761071a5761071a6106f1565b6020808252600b908201526a41646d696e73206f6e6c7960a81b60408201526060019056fea2646970667358221220ea99cfffdfac7d32109a2511ec6f6ab94935e80f01642e7c255e59539d7d629e64736f6c63430008110033
Deployed Bytecode Sourcemap
114:1574:13:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;224:22;;;;;;;;;;;;;;;;;;;160:25:16;;;148:2;133:18;224:22:13;;;;;;;;324:23;;;;;;;;;;-1:-1:-1;324:23:13;;;;-1:-1:-1;;;324:23:13;;;;;;;;;361:14:16;;354:22;336:41;;324:2;309:18;324:23:13;196:187:16;187:31:13;;;;;;;;;;;;;;;;147:34;;;;;;;;;;;;;;;;1188:498;;;;;;:::i;:::-;;:::i;:::-;;668:99;;;;;;;;;;-1:-1:-1;668:99:13;;;;;:::i;:::-;;:::i;1093:89::-;;;;;;;;;;-1:-1:-1;1093:89:13;;;;;:::i;:::-;;:::i;560:102::-;;;;;;;;;;-1:-1:-1;560:102:13;;;;;:::i;:::-;;:::i;862:130::-;;;;;;;;;;-1:-1:-1;862:130:13;;;;;:::i;:::-;;:::i;773:83::-;;;;;;;;;;-1:-1:-1;773:83:13;;;;;:::i;:::-;;:::i;253:33::-;;;;;;;;;;-1:-1:-1;253:33:13;;;;-1:-1:-1;;;;;253:33:13;;;;;;-1:-1:-1;;;;;1028:32:16;;;1010:51;;998:2;983:18;253:33:13;864:203:16;292:25:13;;;;;;;;;;-1:-1:-1;292:25:13;;;;-1:-1:-1;;;;;292:25:13;;;998:89;;;;;;;;;;;;;:::i;354:40::-;;;;;;;;;;-1:-1:-1;354:40:13;;;;;:::i;:::-;;;;;;;;;;;;;;;;1188:498;1259:11;;-1:-1:-1;;;1259:11:13;;;;1251:55;;;;-1:-1:-1;;;1251:55:13;;1274:2:16;1251:55:13;;;1256:21:16;1313:2;1293:18;;;1286:30;1352:33;1332:18;;;1325:61;1403:18;;1251:55:13;;;;;;;;;1350:10;;1338:8;1328:7;;:18;;;;:::i;:::-;:32;;1320:62;;;;-1:-1:-1;;;1320:62:13;;1896:2:16;1320:62:13;;;1878:21:16;1935:2;1915:18;;;1908:30;-1:-1:-1;;;1954:18:16;;;1947:48;2012:18;;1320:62:13;1694:342:16;1320:62:13;1422:8;1413:6;;:17;;;;:::i;:::-;1400:9;:30;;1392:59;;;;-1:-1:-1;;;1392:59:13;;2416:2:16;1392:59:13;;;2398:21:16;2455:2;2435:18;;;2428:30;-1:-1:-1;;;2474:18:16;;;2467:46;2530:18;;1392:59:13;2214:340:16;1392:59:13;1469:10;;;1490:6;-1:-1:-1;;;;;1469:10:13;;;;1461:47;;1490:17;;1499:8;;1490:17;:::i;:::-;1461:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1529:18:13;;1518:61;;-1:-1:-1;;;1518:61:13;;1554:10;1518:61;;;2770:51:16;1566:2:13;2837:18:16;;;2830:34;2880:18;;;2873:34;;;-1:-1:-1;;;;;1529:18:13;;;;1518:35;;2743:18:16;;1518:61:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;1600:18:13;;1589:61;;-1:-1:-1;;;1589:61:13;;1625:10;1589:61;;;2770:51:16;1637:2:13;2837:18:16;;;2830:34;2880:18;;;2873:34;;;-1:-1:-1;;;;;1600:18:13;;;;-1:-1:-1;1589:35:13;;-1:-1:-1;2743:18:16;;1589:61:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1671:8;1660:7;;:19;;;;;;;:::i;:::-;;;;-1:-1:-1;;;1188:498:13:o;668:99::-;509:10;500:20;;;;:8;:20;;;;;;;;492:44;;;;-1:-1:-1;;;492:44:13;;;;;;;:::i;:::-;738:10:::1;:22:::0;;-1:-1:-1;;;;;;738:22:13::1;-1:-1:-1::0;;;;;738:22:13;;;::::1;::::0;;;::::1;::::0;;668:99::o;1093:89::-;509:10;500:20;;;;:8;:20;;;;;;;;492:44;;;;-1:-1:-1;;;492:44:13;;;;;;;:::i;:::-;1159:7:::1;:16:::0;1093:89::o;560:102::-;509:10;500:20;;;;:8;:20;;;;;;;;492:44;;;;-1:-1:-1;;;492:44:13;;;;;;;:::i;:::-;-1:-1:-1;;;;;640:15:13::1;;::::0;;;:8:::1;:15;::::0;;;;;;-1:-1:-1;;622:33:13;::::1;640:15;::::0;;::::1;639:16;622:33;::::0;;560:102::o;862:130::-;509:10;500:20;;;;:8;:20;;;;;;;;492:44;;;;-1:-1:-1;;;492:44:13;;;;;;;:::i;:::-;947:18:::1;:38:::0;;-1:-1:-1;;;;;;947:38:13::1;-1:-1:-1::0;;;;;947:38:13;;;::::1;::::0;;;::::1;::::0;;862:130::o;773:83::-;509:10;500:20;;;;:8;:20;;;;;;;;492:44;;;;-1:-1:-1;;;492:44:13;;;;;;;:::i;:::-;835:6:::1;:14:::0;773:83::o;998:89::-;509:10;500:20;;;;:8;:20;;;;;;;;492:44;;;;-1:-1:-1;;;492:44:13;;;;;;;:::i;:::-;1069:11:::1;::::0;;-1:-1:-1;;;;1054:26:13;::::1;-1:-1:-1::0;;;1069:11:13;;;::::1;;;1068:12;1054:26:::0;;::::1;;::::0;;998:89::o;388:180:16:-;447:6;500:2;488:9;479:7;475:23;471:32;468:52;;;516:1;513;506:12;468:52;-1:-1:-1;539:23:16;;388:180;-1:-1:-1;388:180:16:o;573:286::-;632:6;685:2;673:9;664:7;660:23;656:32;653:52;;;701:1;698;691:12;653:52;727:23;;-1:-1:-1;;;;;779:31:16;;769:42;;759:70;;825:1;822;815:12;759:70;848:5;573:286;-1:-1:-1;;;573:286:16:o;1432:127::-;1493:10;1488:3;1484:20;1481:1;1474:31;1524:4;1521:1;1514:15;1548:4;1545:1;1538:15;1564:125;1629:9;;;1650:10;;;1647:36;;;1663:18;;:::i;:::-;1564:125;;;;:::o;2041:168::-;2114:9;;;2145;;2162:15;;;2156:22;;2142:37;2132:71;;2183:18;;:::i;3277:335::-;3479:2;3461:21;;;3518:2;3498:18;;;3491:30;-1:-1:-1;;;3552:2:16;3537:18;;3530:41;3603:2;3588:18;;3277:335::o
Swarm Source
ipfs://ea99cfffdfac7d32109a2511ec6f6ab94935e80f01642e7c255e59539d7d629e
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ 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.