Source Code
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
Latest 25 internal transactions (View All)
Advanced mode:
Cross-Chain Transactions
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
Wrapped1155Factory
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: LGPL-3.0-or-later
pragma solidity >=0.6.0;
import { Address } from "@openzeppelin/contracts/utils/Address.sol";
import { ERC20 } from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import { IERC1155 } from "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import { ERC1155Receiver } from "@openzeppelin/contracts/token/ERC1155/ERC1155Receiver.sol";
import { SafeMath } from "@openzeppelin/contracts/math/SafeMath.sol";
contract Wrapped1155Metadata {
// workaround which also arranges first storage slots of Wrapped1155
Wrapped1155Factory public factory;
IERC1155 public multiToken;
uint256 public tokenId;
modifier onlyFactory() {
require(msg.sender == address(factory), "Wrapped1155: only factory allowed to perform operation");
_;
}
}
contract Wrapped1155 is Wrapped1155Metadata, ERC20 {
constructor() public ERC20("Wrapped ERC-1155 Implementation", "WMT*") {}
function mint(address account, uint256 amount) external onlyFactory {
_mint(account, amount);
}
function burn(address account, uint256 amount) external onlyFactory {
_burn(account, amount);
}
}
contract Wrapped1155Factory is ERC1155Receiver {
using Address for address;
using SafeMath for uint;
Wrapped1155 public erc20Implementation;
constructor() public {
erc20Implementation = new Wrapped1155();
}
function onERC1155Received(
address operator,
address /* from */,
uint256 id,
uint256 value,
bytes calldata data
)
external
override
returns (bytes4)
{
address recipient = operator;
// address recipient = data.length > 65 ?
// abi.decode(data[65:], (address)) :
// operator;
Wrapped1155 wrapped1155 = requireWrapped1155(IERC1155(msg.sender), id, data);
wrapped1155.mint(recipient, value);
return this.onERC1155Received.selector;
}
function onERC1155BatchReceived(
address operator,
address /* from */,
uint256[] calldata ids,
uint256[] calldata values,
bytes calldata data
)
external
override
returns (bytes4)
{
require(ids.length.mul(65) == data.length, "Wrapped1155Factory: data bytes should be ids size");
address recipient = operator;
// address recipient = (data.length > 65) ?
// abi.decode(bytes(data[64:]), (address)) :
// operator;
for (uint i = 0; i < ids.length; i++) {
uint first = i.mul(65);
uint next = first.add(65);
requireWrapped1155(IERC1155(msg.sender), ids[i], bytes(data[first:next])).mint(recipient, values[i]);
}
return this.onERC1155BatchReceived.selector;
}
function unwrap(
IERC1155 multiToken,
uint256 tokenId,
uint256 amount,
address recipient,
bytes calldata data
)
external
{
getWrapped1155(multiToken, tokenId, data).burn(msg.sender, amount);
multiToken.safeTransferFrom(address(this), recipient, tokenId, amount, data);
}
function batchUnwrap(
IERC1155 multiToken,
uint256[] calldata tokenIds,
uint256[] calldata amounts,
address recipient,
bytes calldata data
)
external
{
require(tokenIds.length == amounts.length, "Wrapped1155Factory: mismatched input arrays");
require(tokenIds.length.mul(65) == data.length, "Wrapped1155Factory: data bytes should be ids size");
for (uint i = 0; i < tokenIds.length; i++) {
uint first = i.mul(65);
uint next = first.add(65);
getWrapped1155(multiToken, tokenIds[i], bytes(data[first:next])).burn(msg.sender, amounts[i]);
}
multiToken.safeBatchTransferFrom(address(this), recipient, tokenIds, amounts, data);
}
function getWrapped1155DeployBytecode(
IERC1155 multiToken,
uint256 tokenId,
bytes calldata data
)
public
view
returns (bytes memory)
{
bytes memory tokenName = bytes(data[:32]);
bytes memory tokenSymbol = bytes(data[32:64]);
bytes memory tokenDecimal = bytes(data[64:65]);
return abi.encodePacked(
// assign factory
hex"73",
this,
hex"3d55",
// assign multiToken
hex"73",
multiToken,
hex"600155",
// assign tokenId
hex"7f",
tokenId,
hex"600255",
// assign name
hex"7f",
tokenName,
hex"600655",
// assign symbol
hex"7f",
tokenSymbol,
hex"600755",
// assign decimals
hex"60",
tokenDecimal,
hex"600855",
// push 44 (length of runtime)
hex"60", uint8(44),
// load free memory pointer
hex"604051",
// dup runtime length
hex"81",
// push offset in this calldata to runtime object,
hex"60", uint8(171),
// dup free memory pointer
hex"82"
// codecopy runtime to memory and return
hex"39f3",
// greetz 0age for More-Minimal Proxy runtime bytecode
// @link [Minimal Proxy Contract](https://eips.ethereum.org/EIPS/eip-1167)
// @link [More-Minimal Proxy](https://medium.com/coinmonks/the-more-minimal-proxy-5756ae08ee48)
hex"3d3d3d3d363d3d37363d73",
address(erc20Implementation),
hex"5af43d3d93803e602a57fd5bf3"
);
}
function getWrapped1155(
IERC1155 multiToken,
uint256 tokenId,
bytes calldata data
)
public
view
returns (Wrapped1155)
{
return Wrapped1155(address(uint256(keccak256(abi.encodePacked(
uint8(0xff),
this,
uint256(1155),
keccak256(getWrapped1155DeployBytecode(multiToken, tokenId, data))
)))));
}
event Wrapped1155Creation(
IERC1155 indexed multiToken,
uint256 indexed tokenId,
Wrapped1155 indexed wrappedToken
);
function requireWrapped1155(
IERC1155 multiToken,
uint256 tokenId,
bytes calldata data
)
public
returns (Wrapped1155)
{
bytes memory deployBytecode = getWrapped1155DeployBytecode(multiToken, tokenId, data);
address wrapped1155Address = address(uint256(keccak256(abi.encodePacked(
uint8(0xff),
this,
uint256(1155),
keccak256(deployBytecode)
))));
if (!wrapped1155Address.isContract()) {
address addr;
assembly {
addr := create2(0, add(deployBytecode, 0x20), mload(deployBytecode), 1155)
}
require(wrapped1155Address == addr, "Wrapped1155Factory: failed to deploy");
emit Wrapped1155Creation(
multiToken,
tokenId,
Wrapped1155(wrapped1155Address)
);
}
return Wrapped1155(wrapped1155Address);
}
}// SPDX-License-Identifier: MIT
pragma solidity >=0.6.2 <0.8.0;
/**
* @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
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize, which returns 0 for contracts in
// construction, since the code is only stored at the end of the
// constructor execution.
uint256 size;
// solhint-disable-next-line no-inline-assembly
assembly { size := extcodesize(account) }
return size > 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");
// solhint-disable-next-line avoid-low-level-calls, avoid-call-value
(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");
// solhint-disable-next-line avoid-low-level-calls
(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");
// solhint-disable-next-line avoid-low-level-calls
(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");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.delegatecall(data);
return _verifyCallResult(success, returndata, errorMessage);
}
function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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
// solhint-disable-next-line no-inline-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
import "../../utils/Context.sol";
import "./IERC20.sol";
import "../../math/SafeMath.sol";
/**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
* https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
* to implement supply mechanisms].
*
* We have followed general OpenZeppelin guidelines: functions revert instead
* of returning `false` on failure. This behavior is nonetheless conventional
* and does not conflict with the expectations of ERC20 applications.
*
* Additionally, an {Approval} event is emitted on calls to {transferFrom}.
* This allows applications to reconstruct the allowance for all accounts just
* by listening to said events. Other implementations of the EIP may not emit
* these events, as it isn't required by the specification.
*
* Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
* functions have been added to mitigate the well-known issues around setting
* allowances. See {IERC20-approve}.
*/
contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 private _decimals;
/**
* @dev Sets the values for {name} and {symbol}, initializes {decimals} with
* a default value of 18.
*
* To select a different value for {decimals}, use {_setupDecimals}.
*
* All three of these values are immutable: they can only be set once during
* construction.
*/
constructor (string memory name_, string memory symbol_) public {
_name = name_;
_symbol = symbol_;
_decimals = 18;
}
/**
* @dev Returns the name of the token.
*/
function name() public view virtual returns (string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() public view virtual returns (string memory) {
return _symbol;
}
/**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5,05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is
* called.
*
* NOTE: This information is only used for _display_ purposes: it in
* no way affects any of the arithmetic of the contract, including
* {IERC20-balanceOf} and {IERC20-transfer}.
*/
function decimals() public view virtual returns (uint8) {
return _decimals;
}
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
/**
* @dev See {IERC20-balanceOf}.
*/
function balanceOf(address account) public view virtual override returns (uint256) {
return _balances[account];
}
/**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `recipient` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/
function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(_msgSender(), recipient, amount);
return true;
}
/**
* @dev See {IERC20-allowance}.
*/
function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
/**
* @dev See {IERC20-approve}.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function approve(address spender, uint256 amount) public virtual override returns (bool) {
_approve(_msgSender(), spender, amount);
return true;
}
/**
* @dev See {IERC20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20}.
*
* Requirements:
*
* - `sender` and `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `amount`.
* - the caller must have allowance for ``sender``'s tokens of at least
* `amount`.
*/
function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(sender, recipient, amount);
_approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
return true;
}
/**
* @dev Atomically increases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
return true;
}
/**
* @dev Atomically decreases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `spender` must have allowance for the caller of at least
* `subtractedValue`.
*/
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
return true;
}
/**
* @dev Moves tokens `amount` from `sender` to `recipient`.
*
* This is internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* Requirements:
*
* - `sender` cannot be the zero address.
* - `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `amount`.
*/
function _transfer(address sender, address recipient, uint256 amount) internal virtual {
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(sender, recipient, amount);
_balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
_balances[recipient] = _balances[recipient].add(amount);
emit Transfer(sender, recipient, amount);
}
/** @dev Creates `amount` tokens and assigns them to `account`, increasing
* the total supply.
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* Requirements:
*
* - `to` cannot be the zero address.
*/
function _mint(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_beforeTokenTransfer(address(0), account, amount);
_totalSupply = _totalSupply.add(amount);
_balances[account] = _balances[account].add(amount);
emit Transfer(address(0), account, amount);
}
/**
* @dev Destroys `amount` tokens from `account`, reducing the
* total supply.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
* - `account` must have at least `amount` tokens.
*/
function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
_balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
_totalSupply = _totalSupply.sub(amount);
emit Transfer(account, address(0), amount);
}
/**
* @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
*
* This internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero address.
* - `spender` cannot be the zero address.
*/
function _approve(address owner, address spender, uint256 amount) internal virtual {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amount);
}
/**
* @dev Sets {decimals} to a value other than the default one of 18.
*
* WARNING: This function should only be called from the constructor. Most
* applications that interact with token contracts will not expect
* {decimals} to ever change, and may work incorrectly if it does.
*/
function _setupDecimals(uint8 decimals_) internal virtual {
_decimals = decimals_;
}
/**
* @dev Hook that is called before any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* will be to transferred to `to`.
* - when `from` is zero, `amount` tokens will be minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens will be burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }
}// SPDX-License-Identifier: MIT
pragma solidity >=0.6.2 <0.8.0;
import "../../introspection/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 be 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
pragma solidity >=0.6.0 <0.8.0;
import "./IERC1155Receiver.sol";
import "../../introspection/ERC165.sol";
/**
* @dev _Available since v3.1._
*/
abstract contract ERC1155Receiver is ERC165, IERC1155Receiver {
constructor() internal {
_registerInterface(
ERC1155Receiver(address(0)).onERC1155Received.selector ^
ERC1155Receiver(address(0)).onERC1155BatchReceived.selector
);
}
}// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming languages.
* `SafeMath` restores this intuition by reverting the transaction when an
* operation overflows.
*
* Using this library instead of the unchecked operations eliminates an entire
* class of bugs, so it's recommended to use it always.
*/
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
/**
* @dev Returns the substraction of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
if (b > a) return (false, 0);
return (true, a - b);
}
/**
* @dev Returns the multiplication of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) return (true, 0);
uint256 c = a * b;
if (c / a != b) return (false, 0);
return (true, c);
}
/**
* @dev Returns the division of two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
if (b == 0) return (false, 0);
return (true, a / b);
}
/**
* @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
if (b == 0) return (false, 0);
return (true, a % b);
}
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
require(b <= a, "SafeMath: subtraction overflow");
return a - b;
}
/**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) return 0;
uint256 c = a * b;
require(c / a == b, "SafeMath: multiplication overflow");
return c;
}
/**
* @dev Returns the integer division of two unsigned integers, reverting on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
require(b > 0, "SafeMath: division by zero");
return a / b;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
require(b > 0, "SafeMath: modulo by zero");
return a % b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {trySub}.
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b <= a, errorMessage);
return a - b;
}
/**
* @dev Returns the integer division of two unsigned integers, reverting with custom message on
* division by zero. The result is rounded towards zero.
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {tryDiv}.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b > 0, errorMessage);
return a / b;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting with custom message when dividing by zero.
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {tryMod}.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b > 0, errorMessage);
return a % b;
}
}// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <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 GSN 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 payable) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes memory) {
this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
return msg.data;
}
}// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address recipient, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
}// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <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.6.0 <0.8.0;
import "../../introspection/IERC165.sol";
/**
* _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.
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. 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
pragma solidity >=0.6.0 <0.8.0;
import "./IERC165.sol";
/**
* @dev Implementation of the {IERC165} interface.
*
* Contracts may inherit from this and call {_registerInterface} to declare
* their support of an interface.
*/
abstract contract ERC165 is IERC165 {
/*
* bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7
*/
bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7;
/**
* @dev Mapping of interface ids to whether or not it's supported.
*/
mapping(bytes4 => bool) private _supportedInterfaces;
constructor () internal {
// Derived contracts need only register support for their own interfaces,
// we register support for ERC165 itself here
_registerInterface(_INTERFACE_ID_ERC165);
}
/**
* @dev See {IERC165-supportsInterface}.
*
* Time complexity O(1), guaranteed to always use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return _supportedInterfaces[interfaceId];
}
/**
* @dev Registers the contract as an implementer of the interface defined by
* `interfaceId`. Support of the actual ERC165 interface is automatic and
* registering its interface id is not required.
*
* See {IERC165-supportsInterface}.
*
* Requirements:
*
* - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`).
*/
function _registerInterface(bytes4 interfaceId) internal virtual {
require(interfaceId != 0xffffffff, "ERC165: invalid interface id");
_supportedInterfaces[interfaceId] = true;
}
}{
"remappings": [
"@ensdomains/=node_modules/@ensdomains/",
"@gnosis.pm/=node_modules/@gnosis.pm/",
"@nomiclabs/=node_modules/@nomiclabs/",
"@openzeppelin/=node_modules/@openzeppelin/",
"@solidity-parser/=node_modules/@solidity-parser/",
"openzeppelin-solidity/=node_modules/openzeppelin-solidity/",
"truffle/=node_modules/truffle/",
"forge-std/=lib/forge-std/src/"
],
"optimizer": {
"enabled": true,
"runs": 200
},
"metadata": {
"useLiteralContent": false,
"bytecodeHash": "ipfs"
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"abi"
]
}
},
"evmVersion": "istanbul",
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract IERC1155","name":"multiToken","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"contract Wrapped1155","name":"wrappedToken","type":"address"}],"name":"Wrapped1155Creation","type":"event"},{"inputs":[{"internalType":"contract IERC1155","name":"multiToken","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"batchUnwrap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"erc20Implementation","outputs":[{"internalType":"contract Wrapped1155","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC1155","name":"multiToken","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"getWrapped1155","outputs":[{"internalType":"contract Wrapped1155","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC1155","name":"multiToken","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"getWrapped1155DeployBytecode","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"onERC1155BatchReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC1155","name":"multiToken","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"requireWrapped1155","outputs":[{"internalType":"contract Wrapped1155","name":"","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC1155","name":"multiToken","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"unwrap","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
608060405234801561001057600080fd5b506100216301ffc9a760e01b61007f565b610031630271189760e51b61007f565b60405161003d90610103565b604051809103906000f080158015610059573d6000803e3d6000fd5b50600180546001600160a01b0319166001600160a01b0392909216919091179055610110565b6001600160e01b031980821614156100de576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b610fa68061142f83390190565b6113108061011f6000396000f3fe608060405234801561001057600080fd5b50600436106100935760003560e01c8063901be04111610066578063901be04114610289578063a7eaa18614610291578063bad7b714146103bc578063bc197c81146104b4578063f23a6e61146105f857610093565b806301ffc9a71461009857806308b2ea5e146100d35780633125810e1461017257806352aecb24146101f5575b600080fd5b6100bf600480360360208110156100ae57600080fd5b50356001600160e01b03191661068b565b604080519115158252519081900360200190f35b610156600480360360608110156100e957600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b81111561011857600080fd5b82018360208201111561012a57600080fd5b803590602001918460018302840111600160201b8311171561014b57600080fd5b5090925090506106aa565b604080516001600160a01b039092168252519081900360200190f35b6101566004803603606081101561018857600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b8111156101b757600080fd5b8201836020820111156101c957600080fd5b803590602001918460018302840111600160201b831117156101ea57600080fd5b50909250905061071f565b610287600480360360a081101561020b57600080fd5b6001600160a01b038235811692602081013592604082013592606083013516919081019060a081016080820135600160201b81111561024957600080fd5b82018360208201111561025b57600080fd5b803590602001918460018302840111600160201b8311171561027c57600080fd5b50909250905061083f565b005b61015661097d565b610287600480360360a08110156102a757600080fd5b6001600160a01b038235169190810190604081016020820135600160201b8111156102d157600080fd5b8201836020820111156102e357600080fd5b803590602001918460208302840111600160201b8311171561030457600080fd5b919390929091602081019035600160201b81111561032157600080fd5b82018360208201111561033357600080fd5b803590602001918460208302840111600160201b8311171561035457600080fd5b919390926001600160a01b0383351692604081019060200135600160201b81111561037e57600080fd5b82018360208201111561039057600080fd5b803590602001918460018302840111600160201b831117156103b157600080fd5b50909250905061098c565b61043f600480360360608110156103d257600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b81111561040157600080fd5b82018360208201111561041357600080fd5b803590602001918460018302840111600160201b8311171561043457600080fd5b509092509050610c0a565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610479578181015183820152602001610461565b50505050905090810190601f1680156104a65780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6105db600480360360a08110156104ca57600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b8111156104fd57600080fd5b82018360208201111561050f57600080fd5b803590602001918460208302840111600160201b8311171561053057600080fd5b919390929091602081019035600160201b81111561054d57600080fd5b82018360208201111561055f57600080fd5b803590602001918460208302840111600160201b8311171561058057600080fd5b919390929091602081019035600160201b81111561059d57600080fd5b8201836020820111156105af57600080fd5b803590602001918460018302840111600160201b831117156105d057600080fd5b509092509050610f75565b604080516001600160e01b03199092168252519081900360200190f35b6105db600480360360a081101561060e57600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a081016080820135600160201b81111561064d57600080fd5b82018360208201111561065f57600080fd5b803590602001918460018302840111600160201b8311171561068057600080fd5b5090925090506110b9565b6001600160e01b03191660009081526020819052604090205460ff1690565b600060ff306104836106be88888888610c0a565b80519060200120604051602001808560ff1660f81b8152600101846001600160a01b031660601b81526014018381526020018281526020019450505050506040516020818303038152906040528051906020012060001c9050949350505050565b6000606061072f86868686610c0a565b8051602080830191909120604080516001600160f81b0319818501523060601b60218201526104836035820152605580820193909352815180820390930183526075019052805191012090915061078e6001600160a01b03821661114f565b6108355760006104838351602085016000f59050806001600160a01b0316826001600160a01b0316146107f25760405162461bcd60e51b81526004018080602001828103825260248152602001806112656024913960400191505060405180910390fd5b816001600160a01b031687896001600160a01b03167f5cf3a4006b0dcb221517555192a3e5df5e19783c22ea769c1ef46dd421ae2d3260405160405180910390a4505b9695505050505050565b61084b868684846106aa565b6001600160a01b0316639dc29fac33866040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b1580156108a157600080fd5b505af11580156108b5573d6000803e3d6000fd5b50505050856001600160a01b031663f242432a3085888887876040518763ffffffff1660e01b815260040180876001600160a01b03168152602001866001600160a01b03168152602001858152602001848152602001806020018281038252848482818152602001925080828437600081840152601f19601f820116905080830192505050975050505050505050600060405180830381600087803b15801561095d57600080fd5b505af1158015610971573d6000803e3d6000fd5b50505050505050505050565b6001546001600160a01b031681565b8584146109ca5760405162461bcd60e51b815260040180806020018281038252602b81526020018061123a602b913960400191505060405180910390fd5b806109d6876041611155565b14610a125760405162461bcd60e51b81526004018080602001828103825260318152602001806112aa6031913960400191505060405180910390fd5b60005b86811015610af4576000610a2a826041611155565b90506000610a398260416111b7565b9050610a668b8b8b86818110610a4b57fe5b60200291909101359050610a618486898b611211565b6106aa565b6001600160a01b0316639dc29fac338a8a87818110610a8157fe5b905060200201356040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b158015610ace57600080fd5b505af1158015610ae2573d6000803e3d6000fd5b505060019094019350610a1592505050565b50876001600160a01b0316632eb2c2d630858a8a8a8a89896040518963ffffffff1660e01b815260040180896001600160a01b03168152602001886001600160a01b0316815260200180602001806020018060200184810384528a8a82818152602001925060200280828437600083820152601f01601f19169091018581038452888152602090810191508990890280828437600083820152601f01601f191690910185810383528681526020019050868680828437600081840152601f19601f8201169050808301925050509b505050505050505050505050600060405180830381600087803b158015610be857600080fd5b505af1158015610bfc573d6000803e3d6000fd5b505050505050505050505050565b606080610c1b602060008587611211565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092935060609250610c6591506040905060208688611211565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092935060609250610caf91506041905060408789611211565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509050308888858585602c60ab600160009054906101000a90046001600160a01b03166040516020018080607360f81b8152506001018a6001600160a01b031660601b815260140180613d5560f01b81525060020180607360f81b815250600101896001600160a01b031660601b8152601401806260015560e81b81525060030180607f60f81b815250600101888152602001806260025560e81b81525060030180607f60f81b81525060010187805190602001908083835b60208310610dc95780518252601f199092019160209182019101610daa565b51815160209384036101000a60001901801990921691161790526260065560e81b91909301908152607f60f81b60038201528851600490910192890191508083835b60208310610e2a5780518252601f199092019160209182019101610e0b565b51815160209384036101000a60001901801990921691161790526260075560e81b91909301908152600360fd1b60038201528751600490910192880191508083835b60208310610e8b5780518252601f199092019160209182019101610e6c565b5181516020939093036101000a60001901801990911692169190911790526260085560e81b920191825250600360fd1b6003820181905260f895861b6001600160f81b031990811660048401526260405160e81b6005840152608160f81b600884015260098301919091529390941b909216600a840152628239f360e81b600b8401526a3d3d3d3d363d3d37363d7360a81b600e84015260601b6bffffffffffffffffffffffff19166019830152506c5af43d3d93803e602a57fd5bf360981b602d82015260408051808303601a018152603a90920190529e9d5050505050505050505050505050565b600081610f83876041611155565b14610fbf5760405162461bcd60e51b81526004018080602001828103825260318152602001806112aa6031913960400191505060405180910390fd5b8860005b878110156110a2576000610fd8826041611155565b90506000610fe78260416111b7565b9050611014338c8c86818110610ff957fe5b6020029190910135905061100f84868b8d611211565b61071f565b6001600160a01b03166340c10f19858b8b8781811061102f57fe5b905060200201356040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b15801561107c57600080fd5b505af1158015611090573d6000803e3d6000fd5b505060019094019350610fc392505050565b5063bc197c8160e01b9a9950505050505050505050565b600086816110c93388878761071f565b9050806001600160a01b03166340c10f1983886040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b15801561112257600080fd5b505af1158015611136573d6000803e3d6000fd5b5063f23a6e6160e01b9c9b505050505050505050505050565b3b151590565b600082611164575060006111b1565b8282028284828161117157fe5b04146111ae5760405162461bcd60e51b81526004018080602001828103825260218152602001806112896021913960400191505060405180910390fd5b90505b92915050565b6000828201838110156111ae576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60008085851115611220578182fd5b8386111561122c578182fd5b505082019391909203915056fe5772617070656431313535466163746f72793a206d69736d61746368656420696e707574206172726179735772617070656431313535466163746f72793a206661696c656420746f206465706c6f79536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775772617070656431313535466163746f72793a20646174612062797465732073686f756c64206265206964732073697a65a2646970667358221220d5ee0c67a9091ed5ea6f11d3a635866fb80e075ccd3825b040b716666fbad99564736f6c634300060c0033608060405234801561001057600080fd5b50604080518082018252601f81527f57726170706564204552432d3131353520496d706c656d656e746174696f6e006020808301918252835180850190945260048452632ba6aa1560e11b90840152815191929161007091600691610099565b508051610084906007906020840190610099565b50506008805460ff191660121790555061012c565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106100da57805160ff1916838001178555610107565b82800160010185558215610107579182015b828111156101075782518255916020019190600101906100ec565b50610113929150610117565b5090565b5b808211156101135760008155600101610118565b610e6b8061013b6000396000f3fe608060405234801561001057600080fd5b50600436106101005760003560e01c806340c10f1911610097578063a457c2d711610066578063a457c2d714610310578063a9059cbb1461033c578063c45a015514610368578063dd62ed3e1461037057610100565b806340c10f191461028857806370a08231146102b657806395d89b41146102dc5780639dc29fac146102e457610100565b80631904e5c9116100d35780631904e5c9146101e457806323b872dd14610208578063313ce5671461023e578063395093511461025c57610100565b806306fdde0314610105578063095ea7b31461018257806317d70f7c146101c257806318160ddd146101dc575b600080fd5b61010d61039e565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561014757818101518382015260200161012f565b50505050905090810190601f1680156101745780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101ae6004803603604081101561019857600080fd5b506001600160a01b038135169060200135610434565b604080519115158252519081900360200190f35b6101ca610451565b60408051918252519081900360200190f35b6101ca610457565b6101ec61045d565b604080516001600160a01b039092168252519081900360200190f35b6101ae6004803603606081101561021e57600080fd5b506001600160a01b0381358116916020810135909116906040013561046c565b6102466104f3565b6040805160ff9092168252519081900360200190f35b6101ae6004803603604081101561027257600080fd5b506001600160a01b0381351690602001356104fc565b6102b46004803603604081101561029e57600080fd5b506001600160a01b03813516906020013561054a565b005b6101ca600480360360208110156102cc57600080fd5b50356001600160a01b03166105a1565b61010d6105bc565b6102b4600480360360408110156102fa57600080fd5b506001600160a01b03813516906020013561061d565b6101ae6004803603604081101561032657600080fd5b506001600160a01b038135169060200135610670565b6101ae6004803603604081101561035257600080fd5b506001600160a01b0381351690602001356106d8565b6101ec6106ec565b6101ca6004803603604081101561038657600080fd5b506001600160a01b03813581169160200135166106fb565b60068054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561042a5780601f106103ff5761010080835404028352916020019161042a565b820191906000526020600020905b81548152906001019060200180831161040d57829003601f168201915b5050505050905090565b6000610448610441610726565b848461072a565b50600192915050565b60025481565b60055490565b6001546001600160a01b031681565b6000610479848484610816565b6104e984610485610726565b6104e485604051806060016040528060288152602001610d49602891396001600160a01b038a166000908152600460205260408120906104c3610726565b6001600160a01b031681526020810191909152604001600020549190610973565b61072a565b5060019392505050565b60085460ff1690565b6000610448610509610726565b846104e4856004600061051a610726565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610a0a565b6000546001600160a01b031633146105935760405162461bcd60e51b8152600401808060200182810382526036815260200180610d926036913960400191505060405180910390fd5b61059d8282610a6b565b5050565b6001600160a01b031660009081526003602052604090205490565b60078054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561042a5780601f106103ff5761010080835404028352916020019161042a565b6000546001600160a01b031633146106665760405162461bcd60e51b8152600401808060200182810382526036815260200180610d926036913960400191505060405180910390fd5b61059d8282610b5d565b600061044861067d610726565b846104e485604051806060016040528060258152602001610e1160259139600460006106a7610726565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190610973565b60006104486106e5610726565b8484610816565b6000546001600160a01b031681565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205490565b3390565b6001600160a01b03831661076f5760405162461bcd60e51b8152600401808060200182810382526024815260200180610ded6024913960400191505060405180910390fd5b6001600160a01b0382166107b45760405162461bcd60e51b8152600401808060200182810382526022815260200180610d016022913960400191505060405180910390fd5b6001600160a01b03808416600081815260046020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b03831661085b5760405162461bcd60e51b8152600401808060200182810382526025815260200180610dc86025913960400191505060405180910390fd5b6001600160a01b0382166108a05760405162461bcd60e51b8152600401808060200182810382526023815260200180610cbc6023913960400191505060405180910390fd5b6108ab838383610c59565b6108e881604051806060016040528060268152602001610d23602691396001600160a01b0386166000908152600360205260409020549190610973565b6001600160a01b0380851660009081526003602052604080822093909355908416815220546109179082610a0a565b6001600160a01b0380841660008181526003602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60008184841115610a025760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156109c75781810151838201526020016109af565b50505050905090810190601f1680156109f45780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610a64576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b038216610ac6576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b610ad260008383610c59565b600554610adf9082610a0a565b6005556001600160a01b038216600090815260036020526040902054610b059082610a0a565b6001600160a01b03831660008181526003602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6001600160a01b038216610ba25760405162461bcd60e51b8152600401808060200182810382526021815260200180610d716021913960400191505060405180910390fd5b610bae82600083610c59565b610beb81604051806060016040528060228152602001610cdf602291396001600160a01b0385166000908152600360205260409020549190610973565b6001600160a01b038316600090815260036020526040902055600554610c119082610c5e565b6005556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b505050565b600082821115610cb5576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b5090039056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737357726170706564313135353a206f6e6c7920666163746f727920616c6c6f77656420746f20706572666f726d206f7065726174696f6e45524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa264697066735822122035a093f03c17c2df125066ebc4e4503fc6f5c3c1d5ec6f4f0c99ead494ee308264736f6c634300060c0033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100935760003560e01c8063901be04111610066578063901be04114610289578063a7eaa18614610291578063bad7b714146103bc578063bc197c81146104b4578063f23a6e61146105f857610093565b806301ffc9a71461009857806308b2ea5e146100d35780633125810e1461017257806352aecb24146101f5575b600080fd5b6100bf600480360360208110156100ae57600080fd5b50356001600160e01b03191661068b565b604080519115158252519081900360200190f35b610156600480360360608110156100e957600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b81111561011857600080fd5b82018360208201111561012a57600080fd5b803590602001918460018302840111600160201b8311171561014b57600080fd5b5090925090506106aa565b604080516001600160a01b039092168252519081900360200190f35b6101566004803603606081101561018857600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b8111156101b757600080fd5b8201836020820111156101c957600080fd5b803590602001918460018302840111600160201b831117156101ea57600080fd5b50909250905061071f565b610287600480360360a081101561020b57600080fd5b6001600160a01b038235811692602081013592604082013592606083013516919081019060a081016080820135600160201b81111561024957600080fd5b82018360208201111561025b57600080fd5b803590602001918460018302840111600160201b8311171561027c57600080fd5b50909250905061083f565b005b61015661097d565b610287600480360360a08110156102a757600080fd5b6001600160a01b038235169190810190604081016020820135600160201b8111156102d157600080fd5b8201836020820111156102e357600080fd5b803590602001918460208302840111600160201b8311171561030457600080fd5b919390929091602081019035600160201b81111561032157600080fd5b82018360208201111561033357600080fd5b803590602001918460208302840111600160201b8311171561035457600080fd5b919390926001600160a01b0383351692604081019060200135600160201b81111561037e57600080fd5b82018360208201111561039057600080fd5b803590602001918460018302840111600160201b831117156103b157600080fd5b50909250905061098c565b61043f600480360360608110156103d257600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b81111561040157600080fd5b82018360208201111561041357600080fd5b803590602001918460018302840111600160201b8311171561043457600080fd5b509092509050610c0a565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610479578181015183820152602001610461565b50505050905090810190601f1680156104a65780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6105db600480360360a08110156104ca57600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b8111156104fd57600080fd5b82018360208201111561050f57600080fd5b803590602001918460208302840111600160201b8311171561053057600080fd5b919390929091602081019035600160201b81111561054d57600080fd5b82018360208201111561055f57600080fd5b803590602001918460208302840111600160201b8311171561058057600080fd5b919390929091602081019035600160201b81111561059d57600080fd5b8201836020820111156105af57600080fd5b803590602001918460018302840111600160201b831117156105d057600080fd5b509092509050610f75565b604080516001600160e01b03199092168252519081900360200190f35b6105db600480360360a081101561060e57600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a081016080820135600160201b81111561064d57600080fd5b82018360208201111561065f57600080fd5b803590602001918460018302840111600160201b8311171561068057600080fd5b5090925090506110b9565b6001600160e01b03191660009081526020819052604090205460ff1690565b600060ff306104836106be88888888610c0a565b80519060200120604051602001808560ff1660f81b8152600101846001600160a01b031660601b81526014018381526020018281526020019450505050506040516020818303038152906040528051906020012060001c9050949350505050565b6000606061072f86868686610c0a565b8051602080830191909120604080516001600160f81b0319818501523060601b60218201526104836035820152605580820193909352815180820390930183526075019052805191012090915061078e6001600160a01b03821661114f565b6108355760006104838351602085016000f59050806001600160a01b0316826001600160a01b0316146107f25760405162461bcd60e51b81526004018080602001828103825260248152602001806112656024913960400191505060405180910390fd5b816001600160a01b031687896001600160a01b03167f5cf3a4006b0dcb221517555192a3e5df5e19783c22ea769c1ef46dd421ae2d3260405160405180910390a4505b9695505050505050565b61084b868684846106aa565b6001600160a01b0316639dc29fac33866040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b1580156108a157600080fd5b505af11580156108b5573d6000803e3d6000fd5b50505050856001600160a01b031663f242432a3085888887876040518763ffffffff1660e01b815260040180876001600160a01b03168152602001866001600160a01b03168152602001858152602001848152602001806020018281038252848482818152602001925080828437600081840152601f19601f820116905080830192505050975050505050505050600060405180830381600087803b15801561095d57600080fd5b505af1158015610971573d6000803e3d6000fd5b50505050505050505050565b6001546001600160a01b031681565b8584146109ca5760405162461bcd60e51b815260040180806020018281038252602b81526020018061123a602b913960400191505060405180910390fd5b806109d6876041611155565b14610a125760405162461bcd60e51b81526004018080602001828103825260318152602001806112aa6031913960400191505060405180910390fd5b60005b86811015610af4576000610a2a826041611155565b90506000610a398260416111b7565b9050610a668b8b8b86818110610a4b57fe5b60200291909101359050610a618486898b611211565b6106aa565b6001600160a01b0316639dc29fac338a8a87818110610a8157fe5b905060200201356040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b158015610ace57600080fd5b505af1158015610ae2573d6000803e3d6000fd5b505060019094019350610a1592505050565b50876001600160a01b0316632eb2c2d630858a8a8a8a89896040518963ffffffff1660e01b815260040180896001600160a01b03168152602001886001600160a01b0316815260200180602001806020018060200184810384528a8a82818152602001925060200280828437600083820152601f01601f19169091018581038452888152602090810191508990890280828437600083820152601f01601f191690910185810383528681526020019050868680828437600081840152601f19601f8201169050808301925050509b505050505050505050505050600060405180830381600087803b158015610be857600080fd5b505af1158015610bfc573d6000803e3d6000fd5b505050505050505050505050565b606080610c1b602060008587611211565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092935060609250610c6591506040905060208688611211565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092935060609250610caf91506041905060408789611211565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509050308888858585602c60ab600160009054906101000a90046001600160a01b03166040516020018080607360f81b8152506001018a6001600160a01b031660601b815260140180613d5560f01b81525060020180607360f81b815250600101896001600160a01b031660601b8152601401806260015560e81b81525060030180607f60f81b815250600101888152602001806260025560e81b81525060030180607f60f81b81525060010187805190602001908083835b60208310610dc95780518252601f199092019160209182019101610daa565b51815160209384036101000a60001901801990921691161790526260065560e81b91909301908152607f60f81b60038201528851600490910192890191508083835b60208310610e2a5780518252601f199092019160209182019101610e0b565b51815160209384036101000a60001901801990921691161790526260075560e81b91909301908152600360fd1b60038201528751600490910192880191508083835b60208310610e8b5780518252601f199092019160209182019101610e6c565b5181516020939093036101000a60001901801990911692169190911790526260085560e81b920191825250600360fd1b6003820181905260f895861b6001600160f81b031990811660048401526260405160e81b6005840152608160f81b600884015260098301919091529390941b909216600a840152628239f360e81b600b8401526a3d3d3d3d363d3d37363d7360a81b600e84015260601b6bffffffffffffffffffffffff19166019830152506c5af43d3d93803e602a57fd5bf360981b602d82015260408051808303601a018152603a90920190529e9d5050505050505050505050505050565b600081610f83876041611155565b14610fbf5760405162461bcd60e51b81526004018080602001828103825260318152602001806112aa6031913960400191505060405180910390fd5b8860005b878110156110a2576000610fd8826041611155565b90506000610fe78260416111b7565b9050611014338c8c86818110610ff957fe5b6020029190910135905061100f84868b8d611211565b61071f565b6001600160a01b03166340c10f19858b8b8781811061102f57fe5b905060200201356040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b15801561107c57600080fd5b505af1158015611090573d6000803e3d6000fd5b505060019094019350610fc392505050565b5063bc197c8160e01b9a9950505050505050505050565b600086816110c93388878761071f565b9050806001600160a01b03166340c10f1983886040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b15801561112257600080fd5b505af1158015611136573d6000803e3d6000fd5b5063f23a6e6160e01b9c9b505050505050505050505050565b3b151590565b600082611164575060006111b1565b8282028284828161117157fe5b04146111ae5760405162461bcd60e51b81526004018080602001828103825260218152602001806112896021913960400191505060405180910390fd5b90505b92915050565b6000828201838110156111ae576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60008085851115611220578182fd5b8386111561122c578182fd5b505082019391909203915056fe5772617070656431313535466163746f72793a206d69736d61746368656420696e707574206172726179735772617070656431313535466163746f72793a206661696c656420746f206465706c6f79536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775772617070656431313535466163746f72793a20646174612062797465732073686f756c64206265206964732073697a65a2646970667358221220d5ee0c67a9091ed5ea6f11d3a635866fb80e075ccd3825b040b716666fbad99564736f6c634300060c0033
Deployed Bytecode Sourcemap
1188:6244:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;965:148:1;;;;;;;;;;;;;;;;-1:-1:-1;965:148:1;-1:-1:-1;;;;;;965:148:1;;:::i;:::-;;;;;;;;;;;;;;;;;;5881:417:0;;;;;;;;;;;;;;;;-1:-1:-1;;;;;5881:417:0;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;5881:417:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;5881:417:0;;;;;;;;;;-1:-1:-1;5881:417:0;;-1:-1:-1;5881:417:0;-1:-1:-1;5881:417:0;:::i;:::-;;;;-1:-1:-1;;;;;5881:417:0;;;;;;;;;;;;;;6454:976;;;;;;;;;;;;;;;;-1:-1:-1;;;;;6454:976:0;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;6454:976:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;6454:976:0;;;;;;;;;;-1:-1:-1;6454:976:0;;-1:-1:-1;6454:976:0;-1:-1:-1;6454:976:0;:::i;2860:346::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;2860:346:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;2860:346:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;2860:346:0;;;;;;;;;;-1:-1:-1;2860:346:0;;-1:-1:-1;2860:346:0;-1:-1:-1;2860:346:0;:::i;:::-;;1302:38;;;:::i;3212:760::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;3212:760:0;;;;;;;;;;;;;;;-1:-1:-1;;;3212:760:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;3212:760:0;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;3212:760:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;3212:760:0;;;;;;;;;;;;;;-1:-1:-1;;;;;3212:760:0;;;;;;;;;;;-1:-1:-1;;;3212:760:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;3212:760:0;;;;;;;;;;-1:-1:-1;3212:760:0;;-1:-1:-1;3212:760:0;-1:-1:-1;3212:760:0;:::i;3978:1893::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;3978:1893:0;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;3978:1893:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;3978:1893:0;;;;;;;;;;-1:-1:-1;3978:1893:0;;-1:-1:-1;3978:1893:0;-1:-1:-1;3978:1893:0;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2009:845;;;;;;;;;;;;;;;;-1:-1:-1;;;;;2009:845:0;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;2009:845:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;2009:845:0;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;2009:845:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;2009:845:0;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;2009:845:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;2009:845:0;;;;;;;;;;-1:-1:-1;2009:845:0;;-1:-1:-1;2009:845:0;-1:-1:-1;2009:845:0;:::i;:::-;;;;-1:-1:-1;;;;;;2009:845:0;;;;;;;;;;;;;;1430:573;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1430:573:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;1430:573:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;1430:573:0;;;;;;;;;;-1:-1:-1;1430:573:0;;-1:-1:-1;1430:573:0;-1:-1:-1;1430:573:0;:::i;965:148:1:-;-1:-1:-1;;;;;;1073:33:1;1050:4;1073:33;;;;;;;;;;;;;;965:148::o;5881:417:0:-;6039:11;6147:4;6166;6192;6221:55;6250:10;6262:7;6271:4;;6221:28;:55::i;:::-;6211:66;;;;;;6111:176;;;;;;;;;;;;;;;-1:-1:-1;;;;;6111:176:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6101:187;;;;;;6093:196;;6066:225;;5881:417;;;;;;:::o;6454:976::-;6603:11;6630:27;6660:55;6689:10;6701:7;6710:4;;6660:28;:55::i;:::-;6881:25;;;;;;;;;;6781:135;;;-1:-1:-1;;;;;;6781:135:0;;;;6836:4;6781:135;;;;;;6862:4;6781:135;;;;;;;;;;;;;;;;;;;;;;;;;;6771:146;;;;;6630:85;;-1:-1:-1;6935:31:0;-1:-1:-1;;;;;6935:29:0;;;:31::i;:::-;6930:445;;6982:12;7102:4;7085:14;7079:21;7072:4;7056:14;7052:25;7049:1;7041:66;7033:74;;7164:4;-1:-1:-1;;;;;7142:26:0;:18;-1:-1:-1;;;;;7142:26:0;;7134:75;;;;-1:-1:-1;;;7134:75:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7331:18;-1:-1:-1;;;;;7229:135:0;7294:7;7266:10;-1:-1:-1;;;;;7229:135:0;;;;;;;;;;;6930:445;;7404:18;6454:976;-1:-1:-1;;;;;;6454:976:0:o;2860:346::-;3047:41;3062:10;3074:7;3083:4;;3047:14;:41::i;:::-;-1:-1:-1;;;;;3047:46:0;;3094:10;3106:6;3047:66;;;;;;;;;;;;;-1:-1:-1;;;;;3047:66:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3123:10;-1:-1:-1;;;;;3123:27:0;;3159:4;3166:9;3177:7;3186:6;3194:4;;3123:76;;;;;;;;;;;;;-1:-1:-1;;;;;3123:76:0;;;;;;-1:-1:-1;;;;;3123:76:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2860:346;;;;;;:::o;1302:38::-;;;-1:-1:-1;;;;;1302:38:0;;:::o;3212:760::-;3436:33;;;3428:89;;;;-1:-1:-1;;;3428:89:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3562:4;3535:23;:8;3555:2;3535:19;:23::i;:::-;:38;3527:100;;;;-1:-1:-1;;;3527:100:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3642:6;3637:236;3654:19;;;3637:236;;;3694:10;3707:9;:1;3713:2;3707:5;:9::i;:::-;3694:22;-1:-1:-1;3730:9:0;3742:13;3694:22;3752:2;3742:9;:13::i;:::-;3730:25;;3769:64;3784:10;3796:8;;3805:1;3796:11;;;;;;;;;;;;;;;-1:-1:-1;3815:16:0;3826:4;3820:5;3815:4;;:16;:::i;:::-;3769:14;:64::i;:::-;-1:-1:-1;;;;;3769:69:0;;3839:10;3851:7;;3859:1;3851:10;;;;;;;;;;;;;3769:93;;;;;;;;;;;;;-1:-1:-1;;;;;3769:93:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;3675:3:0;;;;;-1:-1:-1;3637:236:0;;-1:-1:-1;;;3637:236:0;;;3882:10;-1:-1:-1;;;;;3882:32:0;;3923:4;3930:9;3941:8;;3951:7;;3960:4;;3882:83;;;;;;;;;;;;;-1:-1:-1;;;;;3882:83:0;;;;;;-1:-1:-1;;;;;3882:83:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;3882:83:0;;;;;;;;;;;;;;;;;-1:-1:-1;3882:83:0;;;;;;;;;;;;;;;-1:-1:-1;;3882:83:0;;;;;;;;;;;;;;;-1:-1:-1;3882:83:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3212:760;;;;;;;;:::o;3978:1893::-;4152:12;;4211:9;4217:2;4211:9;:4;;:9;:::i;:::-;4180:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;4180:41:0;;-1:-1:-1;4231:24:0;;-1:-1:-1;4264:11:0;;-1:-1:-1;4272:2:0;;-1:-1:-1;4269:2:0;4264:4;;:11;:::i;:::-;4231:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;4231:45:0;;-1:-1:-1;4286:25:0;;-1:-1:-1;4320:11:0;;-1:-1:-1;4328:2:0;;-1:-1:-1;4325:2:0;4320:4;;:11;:::i;:::-;4286:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4430:4;4538:10;4651:7;4758:9;4869:11;4984:12;5095:2;5311:3;5789:19;;;;;;;;;-1:-1:-1;;;;;5789:19:0;4349:1515;;;;;;-1:-1:-1;;;4349:1515:0;;;;;;-1:-1:-1;;;;;4349:1515:0;;;;;;;;-1:-1:-1;;;4349:1515:0;;;;;;-1:-1:-1;;;4349:1515:0;;;;;;-1:-1:-1;;;;;4349:1515:0;;;;;;;;-1:-1:-1;;;4349:1515:0;;;;;;-1:-1:-1;;;4349:1515:0;;;;;;;;;;;-1:-1:-1;;;4349:1515:0;;;;;;-1:-1:-1;;;4349:1515:0;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;4349:1515:0;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;4349:1515:0;;;;;;;;;;;-1:-1:-1;;;4349:1515:0;;;;;;;-1:-1:-1;;;4349:1515:0;;;;;;;;;;;;;;-1:-1:-1;4349:1515:0;;;;;;;;;;;;;-1:-1:-1;;4349:1515:0;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;4349:1515:0;;;;;;;;;;;-1:-1:-1;;;4349:1515:0;;;;;;;-1:-1:-1;;;4349:1515:0;;;;;;;;;;;;;;-1:-1:-1;4349:1515:0;;;;;;;;;;;;;-1:-1:-1;;4349:1515:0;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;4349:1515:0;;;;;;;;;;;;;;-1:-1:-1;;;4349:1515:0;;;;;-1:-1:-1;;;;4349:1515:0;;;;;;;;;;-1:-1:-1;;;;;;4349:1515:0;;;;;;;-1:-1:-1;;;4349:1515:0;;;;-1:-1:-1;;;4349:1515:0;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;4349:1515:0;;;;-1:-1:-1;;;4349:1515:0;;;;;;-1:-1:-1;;4349:1515:0;;;;;-1:-1:-1;;;;4349:1515:0;;;;;;;;;;;;;;;;;;;;;3978:1893;-1:-1:-1;;;;;;;;;;;;;;3978:1893:0:o;2009:845::-;2248:6;2300:4;2278:18;:3;2293:2;2278:14;:18::i;:::-;:33;2270:95;;;;-1:-1:-1;;;2270:95:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2395:8;2375:17;2548:238;2565:14;;;2548:238;;;2600:10;2613:9;:1;2619:2;2613:5;:9::i;:::-;2600:22;-1:-1:-1;2636:9:0;2648:13;2600:22;2658:2;2648:9;:13::i;:::-;2636:25;;2675:73;2703:10;2716:3;;2720:1;2716:6;;;;;;;;;;;;;;;-1:-1:-1;2730:16:0;2741:4;2735:5;2730:4;;:16;:::i;:::-;2675:18;:73::i;:::-;-1:-1:-1;;;;;2675:78:0;;2754:9;2765:6;;2772:1;2765:9;;;;;;;;;;;;;2675:100;;;;;;;;;;;;;-1:-1:-1;;;;;2675:100:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;2581:3:0;;;;;-1:-1:-1;2548:238:0;;-1:-1:-1;;;2548:238:0;;-1:-1:-1;;;;2811:36:0;2009:845;-1:-1:-1;;;;;;;;;;2009:845:0:o;1430:573::-;1640:6;1682:8;1640:6;1853:50;1881:10;1894:2;1898:4;;1853:18;:50::i;:::-;1827:76;;1913:11;-1:-1:-1;;;;;1913:16:0;;1930:9;1941:5;1913:34;;;;;;;;;;;;;-1:-1:-1;;;;;1913:34:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;1965:31:0;1430:573;-1:-1:-1;;;;;;;;;;;;1430:573:0:o;726:413:9:-;1086:20;1124:8;;;726:413::o;3538:215:3:-;3596:7;3619:6;3615:20;;-1:-1:-1;3634:1:3;3627:8;;3615:20;3657:5;;;3661:1;3657;:5;:1;3680:5;;;;;:10;3672:56;;;;-1:-1:-1;;;3672:56:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3745:1;-1:-1:-1;3538:215:3;;;;;:::o;2690:175::-;2748:7;2779:5;;;2802:6;;;;2794:46;;;;;-1:-1:-1;;;2794:46:3;;;;;;;;;;;;;;;;;;;;;;;;;;;5:318:-1;;;155:8;143:10;140:24;137:2;;;-1:-1;;167:12;137:2;202:6;192:8;189:20;186:2;;;-1:-1;;212:12;186:2;-1:-1;;244:31;;;293:25;;;;;-1:-1;131:192::o
Swarm Source
ipfs://35a093f03c17c2df125066ebc4e4503fc6f5c3c1d5ec6f4f0c99ead494ee3082
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
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.